@turquoisehealth/pit-viper 2.81.0 → 2.81.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pv-components/dist/vue/base/pv-components-base.js +1 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +1 -1
- package/pv-components/dist/vue/base/pv-components-base.umd.js +1 -1
- package/pv-components/dist/vue/charts/pv-components-charts.js +2 -2
- package/pv-components/dist/vue/charts/pv-components-charts.mjs +5 -5
- package/pv-components/dist/vue/charts/pv-components-charts.umd.js +2 -2
- package/pv-components/dist/web/pv-components.iife.js +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.pv-chart-loading[data-v-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.pv-chart-loading[data-v-0b683b8e]{position:absolute;text-align:center;justify-content:center;align-items:center;top:0;left:0;width:100%;height:100%;opacity:1;background-color:#fff;z-index:4}.pv-chart-loading-icon[data-v-0b683b8e]{color:#16696d;animation:pulse-0b683b8e 1.5s infinite ease-in-out}@keyframes pulse-0b683b8e{0%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}.pv-popover-list[data-v-cda1af8c]{font-size:14px}.pv-icon-button[data-v-79a7def3]{background-color:transparent;border:none}.pv-icon-button[data-v-79a7def3]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-79a7def3]{padding-top:4px;padding-bottom:4px}.pv-badge-md[data-v-fc3c1104]{--inset-size: 2px 2px;min-height:20px;max-height:20px;min-width:20px;font-weight:500}.pv-badge-sm[data-v-fc3c1104]{--inset-size: 0 2px;min-height:16px;max-height:16px;min-width:16px;font-weight:500}.pv-surface-lighten-5[data-v-fc3c1104]{background-color:#e0e5e4}.pv-text-secondary[data-v-fc3c1104]{color:#4b595c}.pv-menu-item-disabled[data-v-f0f5eb5f]{pointer-events:none;background:#ececec}.pv-menu-item[data-v-f0f5eb5f]{cursor:pointer}.pv-table-row-count{position:absolute;right:12px;top:6px;opacity:1;background-color:#f7f8f8;transition:opacity .3s ease}.pv-table-group-cell:hover .pv-table-row-count{opacity:0}.pv-table-row-number{padding:8px 12px 8px 0;text-align:center;color:#89989b}.focus-button{opacity:0;transition:opacity .2s ease;position:absolute;right:0;top:50%;transform:translateY(-50%)}.option-label:hover .focus-button{opacity:1;background-color:#e8f2f4}.suggested-label[data-v-7f711413]:hover{color:#16696d}.ag-custom-header-cell[data-v-08855a14]{height:100%;align-items:center}.ag-header-actions .ag-header-cell-menu-button[data-v-08855a14]{opacity:0;transition:opacity .2s ease-in-out}.ag-header-cell-menu-button:hover .ag-header-actions .ag-header-cell-menu-button[data-v-08855a14]{opacity:1}.ag-header-cell-menu-button:focus .ag-header-actions .ag-header-cell-menu-button[data-v-08855a14]{opacity:1}.pv-table-row-number[data-v-706ed5a9]{padding:8px 12px 8px 0;text-align:center;color:#89989b}.pv-text-tertiary[data-v-a5c1e2d6]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-f23d0721]{display:flex;align-items:center;position:relative;width:100%;background:#f7f8f8;padding:.25rem;border-radius:.5rem;border:2px solid transparent;font-size:.75rem;min-height:2.25rem;cursor:text}.pv-query-builder-input[data-v-f23d0721]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-f23d0721]{border:none;background:transparent;outline:none;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-f23d0721]:focus-within{border:2px solid #36c5ba}.pv-table-overlay{position:absolute;z-index:2;background:#fff;width:100%;height:calc(100% - 40px);top:80px;pointer-events:none}.ag-header-cell-resize{border:none!important}.ag-row-group-leaf-indent{padding-left:7px;margin-left:0}.ag-custom-loading-cell{width:100%;height:40%;margin:15px;background-color:#ccc;border-radius:4px}.ag-group-value{width:100%}.ag-menu-option:hover{background-color:#f7f8f8}.ag-menu-option:active{background-color:#e8f2f4}.ag-menu-option-text{font-family:Inter,sans-serif}.pv-text-tertiary[data-v-08e3ce8f]{color:#89989b}.pv-button-placeholder[data-v-08e3ce8f]{height:24px;width:24px}.pv-sort-option[data-v-08e3ce8f]{--flex-gap: 4px;cursor:grab;min-height:24px}.pv-menu-item-disabled[data-v-08e3ce8f]{pointer-events:none;color:#7d898d}.placeholder-zone[data-v-08e3ce8f]{transition:background-color .2s ease}.pv-placeholder-dropzone[data-v-08e3ce8f]{padding:8px 4px;border-style:dashed!important;border-color:#e3e7ea!important;justify-content:center;align-items:center;transition:all .2s ease}.placeholder-zone.placeholder-drag-over .pv-placeholder-dropzone[data-v-08e3ce8f]{border-color:#16696d!important;background:#f0f9f9}.sort-divider-container[data-v-08e3ce8f]{display:flex}.sort-divider[data-v-08e3ce8f]{position:relative;border-top:1px solid #e3e7ea;margin:1rem 0;flex:1}.sort-divider[data-v-08e3ce8f]:after{content:attr(data-label);display:inline-block;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#fff;padding:0 .5em;font-size:inherit;white-space:nowrap}.pv-menu-nested[data-v-3502bb6d]:after{content:"›"}.pv-tooltip a[data-v-3502bb6d]{color:inherit}.pv-chart-overlay{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}.ag-charts-tooltip{background-color:#fffffff2}.ag-charts-floating-toolbar{display:none!important}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("vue");var PK=Object.defineProperty,tz=(e,t)=>{for(var i in t)PK(e,i,{get:t[i],enumerable:!0})},he={};tz(he,{error:()=>iz,errorOnce:()=>NK,log:()=>EK,logGroup:()=>BK,reset:()=>OK,table:()=>FK,warn:()=>FT,warnOnce:()=>Ny});var GA=new Set;function EK(...e){console.log(...e)}function FT(e,...t){console.warn(`AG Charts - ${e}`,...t)}function iz(e,...t){typeof e=="object"?console.error("AG Charts error",e,...t):console.error(`AG Charts - ${e}`,...t)}function FK(...e){console.table(...e)}function oz(e,t,i){let o;e instanceof Error?o=e.message:typeof e=="string"?o=e:typeof e=="object"?o=JSON.stringify(e):o=String(e);const s=`${t}: ${o}`;GA.has(s)||(i(e),GA.add(s))}function Ny(e,...t){oz(e,"Logger.warn",i=>FT(i,...t))}function NK(e,...t){oz(e,"Logger.error",i=>iz(i,...t))}function OK(){GA.clear()}function BK(e,t){console.groupCollapsed(e);try{return t()}finally{console.groupEnd()}}var Ks={};tz(Ks,{detectChartDefinition:()=>HK,getAxisModule:()=>$K,getPresetModule:()=>WK,getSeriesModule:()=>jK,hasModule:()=>VK,listModulesByType:()=>_K,register:()=>sz,registerMany:()=>GK,reset:()=>zK});var N0=(e=>(e.Axis="axis",e.Chart="chart",e.Preset="preset",e.Plugin="plugin",e.Series="series",e))(N0||{}),ml=new Map;function sz(e,t){const{def:i,version:o}=ml.get(e.name)??{};if(!i){ml.set(e.name,{def:e,version:t});return}if(!i.enterprise&&e.enterprise&&t===o){ml.set(e.name,{def:e,version:t});return}if(o===t){FT([`AG Charts - Module '${e.name}' already registered,',
|
|
3
3
|
'ignoring (version: ${o}).`,"Check your code for duplicate loading of charts NPM modules."].join(" "));return}throw new Error([`AG Charts - Module '${e.name}' already registered with different version:`,`${o} vs ${t}`,"","Check your package.json for conflicting dependencies - depending on your package manager","one of these commands may help:","- npm ls ag-charts-community","- yarn why ag-charts-community"].join(`
|
|
4
4
|
`))}function GK(e,t){for(const i of e)sz(i,t)}function zK(){ml.clear()}function VK(e){return ml.has(e)}function*_K(e){for(const t of ml.values())Gv(e,t.def)&&(yield t.def)}function HK(e){for(const t of ml.values())if(Gv("chart",t.def)&&t.def.detect(e))return t.def;throw new Error("AG Charts - Unknown chart type; Check options are correctly structured and series types are specified")}function $K(e){const t=ml.get(e);if(Gv("axis",t?.def))return t?.def}function WK(e){const t=ml.get(e);if(Gv("preset",t?.def))return t?.def}function jK(e){const t=ml.get(e);if(Gv("series",t?.def))return t?.def}function Gv(e,t){return t?.type===e}var Fa=class{constructor(){this.events=new Map}on(e,t){return this.events.has(e)||this.events.set(e,new Set),this.events.get(e)?.add(t),()=>this.off(e,t)}off(e,t){const i=this.events.get(e);i&&(i.delete(t),i.size===0&&this.events.delete(e))}emit(e,t){this.events.get(e)?.forEach(i=>i(t))}clear(e){e?this.events.delete(e):this.events.clear()}},Ml={};typeof window<"u"?Ml.window=window:typeof global<"u"&&(Ml.window=global.window);typeof document<"u"?Ml.document=document:typeof global<"u"&&(Ml.document=global.document);function kl(e){return e?Ml.document?.[e]:Ml.document}function kt(e){return e?Ml.window?.[e]:Ml.window}function UK(e){Ml.document=e}function KK(e){Ml.window=e}function He(e,t,i){const o=kl().createElement(e);if(typeof t=="object"&&(i=t,t=void 0),t)for(const s of t.split(" "))o.classList.add(s);return i&&Object.assign(o.style,i),o}function Ui(e){return kl().createElementNS("http://www.w3.org/2000/svg",e)}function YK(e,t){const i=kl("body"),o=He("a",{display:"none"});o.href=e,o.download=t,i.appendChild(o),o.click(),setTimeout(()=>i.removeChild(o))}function Vt(e,t,i,o){return e.addEventListener(t,i,o),()=>e.removeEventListener(t,i,o)}var oC;function XK(e){if(oC==null){const t=kt("Option");oC=new t().style}return oC.color=e,oC.color||null}function Wi(e){return e!=null}function St(e){return Array.isArray(e)}function ZK(e){return typeof e=="boolean"}function Al(e){return e instanceof Date}function kg(e){return Al(e)&&!isNaN(Number(e))}function qK(e){return e instanceof RegExp}function Gc(e){return typeof e=="function"}function lt(e){return typeof e=="object"&&e!==null&&!St(e)}function kS(e){return St(e)||Lt(e)}function Lt(e){return typeof e=="object"&&e!==null&&e.constructor?.name==="Object"}function $M(e){if(typeof e!="object"||e===null)return!1;for(const t in e)return!1;return!0}function ko(e){return typeof e=="string"}function io(e){return typeof e=="number"}function Ct(e){return Number.isFinite(e)}function QK(e){return typeof window<"u"&&e instanceof HTMLElement}function O0(e){return typeof e=="symbol"}function JK(e){return ko(e)&&(e==="none"||XK(e)!=null)}function eY(e,t){return e in t}function tY(e,t=0,i){const{leading:o=!1,trailing:s=!0,maxWait:n=1/0}={};let r,a;if(n<t)throw new Error("Value of maxWait cannot be lower than waitMs.");function l(...c){if(o&&!a){a=Date.now(),r=setTimeout(()=>a=null,t),e(...c);return}let d=t;if(n!==1/0&&a){const u=Date.now()-a;t>n-u&&(d=n-u)}clearTimeout(r),a??(a=Date.now()),r=setTimeout(()=>{a=null,s&&e(...c)},d)}return Object.assign(l,{cancel(){clearTimeout(r),a=null}})}function I2(e,t,i){const{leading:o=!0,trailing:s=!0}=i??{};let n,r,a=!1;function l(){s&&r?(n=setTimeout(l,t),e(...r)):a=!1,r=null}function c(...d){a?r=d:(a=!0,n=setTimeout(l,t),o?e(...d):r=d)}return Object.assign(c,{cancel(){clearTimeout(n),a=!1,r=null}})}function nz(e,t,i=""){try{return e(...t)}catch(o){const s=i?` \`${i}\``:"";Ny(`Uncaught exception in user callback${s}`,o)}}function Oy(e,t="and",i=String,o=1/0){if(e.length===0)return"";if(e.length===1)return i(e[0]);e=e.map(i);const s=e.pop();if(e.length>=o){const n=e.length-(o-1);return`${e.slice(0,o-1).join(", ")}, and ${n} more ${t} ${s}`}return`${e.join(", ")} ${t} ${s}`}function NT(e,t=1/0){if(typeof e=="number"){if(isNaN(e))return"NaN";if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity"}const i=JSON.stringify(e)??typeof e;return i.length>t?`${i.slice(0,t)}... (+${i.length-t} characters)`:i}function iY(e){let t=1;for(let i=0;i<e.length;i++)e.charCodeAt(i)===10&&t++;return t}function oY(e,t){if(e===t)return 0;const[i,o]=e.length<t.length?[e,t]:[t,e],s=i.length,n=o.length;let r=new Array(s+1).fill(0).map((l,c)=>c),a=new Array(s+1);for(let l=1;l<=n;l++){a[0]=l;for(let c=1;c<=s;c++){const d=o[l-1]===i[c-1]?0:1;a[c]=Math.min(r[c]+1,a[c-1]+1,r[c-1]+d)}[r,a]=[a,r]}return r[s]}function sY(e){return e.replace(nY,(t,i)=>(i>0?"-":"")+t.toLowerCase())}var nY=/[A-Z]+(?![a-z])|[A-Z]/g;function zA(e){return St(e)?e.map(t=>t.text).join(""):e??""}var qn=Symbol("description"),rz=Symbol("required"),AS=Symbol("marked"),az=Symbol("undocumented"),IS=Symbol("union"),rY=[["placement","position"],["padding","spacing","gap"],["color","fill","stroke"],["whisker","wick"],["nodeClick","seriesNodeClick"],["nodeDoubleClick","seriesNodeDoubleClick"],["src","url"]].reduce((e,t)=>{for(const i of t)e.set(i.toLowerCase(),new Set(t.filter(o=>o!==i)));return e},new Map),OT=(e=>(e.Invalid="invalid",e.Required="required",e.Unknown="unknown",e))(OT||{});function By(e,t){return Ct(t)?`${e}[${t}]`:e?`${e}.${t}`:t}var Hd=class{constructor(e,t,i,o,s){this.type=e,this.description=t,this.value=i,this.path=o,this.key=s}setUnionType(e,t){if(this.path.startsWith(t)){const i=this.path.slice(t.length);this.altPath=`${t}[type=${e}]${i}`}}getPrefix(){const{altPath:e=this.path,key:t}=this;return!e&&!t?"Value":`Option \`${t?By(e,t):e}\``}toString(){const{description:e="unknown",type:t,value:i}=this;return t==="required"&&i==null?`${this.getPrefix()} is required and has not been provided; expecting ${e}, ignoring.`:`${this.getPrefix()} cannot be set to \`${NT(i,50)}\`; expecting ${e}, ignoring.`}},BT=class extends Hd{constructor(e,t,i,o){super("unknown",void 0,t,i,o),this.suggestions=e,this.key=o}getPrefix(){return`Unknown option \`${By(this.altPath??this.path,this.key)}\``}getPostfix(){const e=Oy(aY(this.key,this.suggestions),"or",t=>`\`${t}\``);return e?`; Did you mean ${e}? Ignoring.`:", ignoring."}toString(){return`${this.getPrefix()}${this.getPostfix()}`}};function hs(e,t,i=""){if(!lt(e))return{cleared:null,invalid:[new Hd("required","an object",e,i)]};const o={},s=[],n=new Set(Object.keys(e)),r=[];if(IS in t){const a=Object.keys(t),l=t[IS];if(e.type!=null&&a.includes(e.type)||e.type==null&&l!=null){const{type:c=l,...d}=e,u=hs(d,t[c],i);Object.assign(o,{type:c},u.cleared);for(const h of u.invalid)h.setUnionType(c,i);s.push(...u.invalid)}else{const c=Oy(a,"or",d=>`'${d}'`);s.push(new Hd("required",`a keyword such as ${c}`,e.type,i,"type"))}return{cleared:o,invalid:s}}for(const a of Object.keys(t)){const l=t[a],c=l[rz],d=e[a];if(n.delete(a),typeof d>"u"&&(l[az]||r.push(a),!c))continue;const u=By(i,a);if(Gc(l)){const p=l(d,{options:e,path:u});if(typeof p=="object"){if(s.push(...p.invalid),p.valid){o[a]=p.cleared;continue}else if(Ag(p.invalid,u))continue}else if(p){o[a]=d;continue}s.push(new Hd(c?"required":"invalid",l[qn],d,i,a))}else{const h=hs(d,l,u);h.cleared!=null&&(o[a]=h.cleared),s.push(...h.invalid)}}for(const a of n){const l=e[a];typeof l>"u"||s.push(new BT(r,l,i,a))}return{cleared:o,invalid:s}}function aY(e,t,i=2){const o=[],s=e.toLowerCase(),n=rY.get(s);for(const r of t){const a=r.toLowerCase();(n?.has(r)||a.includes(s)||oY(s,a)<=i)&&o.push(r)}return o}function At(e,t){if(Gc(e)){let i=function(o,s){return e(o,s)};return i[qn]=t,i}else return{...e,[qn]:t}}function ee(e){return Object.assign(Gc(e)?(t,i)=>e(t,i):Fi(e),{[rz]:!0,[qn]:e[qn]})}function Oe(e){return Object.assign(Gc(e)?(t,i)=>e(t,i):Fi(e),{[az]:!0,[qn]:e[qn]})}var Fi=(e,t="an object")=>At((i,o)=>{const s=hs(i,e,o.path);return{valid:!Ag(s.invalid,o.path),cleared:s.cleared,invalid:s.invalid}},t),op=(e,t,i)=>({...e,[qn]:t,[IS]:i}),_t=(...e)=>At((t,i)=>{const o=[];for(const s of e){const n=s(t,i);if(typeof n=="object"){if(o.push(...n.invalid),!n.valid)return{valid:!1,cleared:t,invalid:o};t=n.cleared}else if(!n)return!1}return{valid:!0,cleared:t,invalid:o}},e.map(t=>t[qn]).filter(Boolean).join(" and ")),We=(...e)=>At((t,i)=>{for(const o of e){const s=o(t,i);if(typeof s=="object"?s.valid:s)return s}return!1},e.map(t=>t[qn]).filter(Boolean).join(" or ")),TS=e=>Ct(e)||kg(e),lY=e=>Al(e)||(Ct(e)||ko(e))&&kg(new Date(e)),Na=At(St,"an array"),U=At(ZK,"a boolean"),zt=At(Gc,"a function"),ke=At(JK,"a color string"),eu=At(lY,"a date"),$e=At(Wi,"a defined value"),ne=At(Ct,"a number"),Xx=At(lt,"an object"),H=At(ko,"a string"),lz=At(e=>typeof HTMLElement>"u"||e instanceof HTMLElement,"an html element"),cu=(e,t=1/0)=>{let i;return t===1/0?i=`an array of at least ${e} items`:e===t?i=`an array of exactly ${e} items`:e===0?i=`an array of no more than ${t} items`:i=`an array of at least ${e} and no more than ${t} items`,At(o=>St(o)&&o.length>=e&&o.length<=t,i)},cz=(e,t=1/0)=>{let i;return t===1/0?i=`a string of at least ${e} characters`:e===t?i=`an string of exactly ${e} characters`:i=`an string of at least ${e} and no more than ${t} characters`,At(o=>ko(o)&&o.length>=e&&o.length<=t,i)},dz=(e,t=!0)=>At(i=>Ct(i)&&(i>e||t&&i===e),`a number greater than ${t?"or equal to ":""}${e}`),uz=(e,t)=>At(i=>Ct(i)&&i>=e&&i<=t,`a number between ${e} and ${t} inclusive`),Y=dz(0),Gy=dz(0,!1),Ee=uz(0,1),Er=e=>At((t,{options:i})=>!TS(t)||!TS(i[e])||t<i[e],`the value to be less than \`${e}\``),Fr=e=>At((t,{options:i})=>!TS(t)||!TS(i[e])||t>i[e],`the value to be greater than \`${e}\``);function ve(...e){lt(e[0])&&(e=Object.values(e[0]));const t=Oy(e,"or",i=>`'${i}'`);return At(i=>e.includes(i),`a keyword such as ${t}`)}var Ye=e=>At(t=>e===t,`the value ${JSON.stringify(e)}`),_e=(e,t,i=!0)=>At((o,s)=>{if(!St(o))return!1;let n=i;const r=[],a=[],l=c=>n=i?n&&c:n||c;if(o.length===0)return{valid:!0,cleared:r,invalid:a};for(let c=0;c<o.length;c++){const d=o[c],u=e(d,{options:d,path:`${s.path}[${c}]`});typeof u=="object"?(n=l(u.valid),a.push(...u.invalid),u.cleared!=null&&r.push(u.cleared)):(n=l(u),u&&r.push(d))}return{valid:n,cleared:n||!i?r:null,invalid:a}},t??`${e[qn]} array`),no=(e,t="an object array")=>At((i,o)=>{if(!St(i))return!1;const s=[],n=[];for(let r=0;r<i.length;r++){const a=`${o.path}[${r}]`,l=hs(i[r],e,a);Ag(l.invalid,a)||s.push(l.cleared),n.push(...l.invalid)}return{valid:!0,cleared:s,invalid:n}},t),_h=(e,t)=>At((i,o)=>Gc(i)?AS in i?!0:{valid:!0,cleared:Object.assign((...n)=>{const r=nz(i,n);if(r==null)return;const a=e(r,{options:r,path:""});if(typeof a=="object"){if(a.invalid.forEach(hz(o,e[qn])),a.valid)return a.cleared}else{if(a)return r;Ny(`Callback \`${o.path}\` returned an invalid value \`${NT(r,50)}\`; expecting ${e[qn]}, ignoring.`)}},{[AS]:!0}),invalid:[]}:!1,"a function"),oi=(e,t="an object")=>At((i,o)=>Gc(i)?AS in i?!0:{valid:!0,cleared:Object.assign((...n)=>{const r=nz(i,n,o.path);if(r==null)return;const a=hs(r,e);return a.invalid.forEach(hz(o,t)),a.cleared},{[AS]:!0}),invalid:[]}:!1,"a function");function Ag(e,t){return e.some(i=>i.type==="required"&&i.path===t)}function hz(e,t){return i=>{if(i instanceof BT)return Ny(`Callback \`${e.path}\` returned an unknown property \`${By(i.path,i.key)}\`${i.getPostfix()}`);const o=NT(i.value,50);Ny(i.key?`Callback \`${e.path}\` returned an invalid property \`${By(i.path,i.key)}\`: \`${o}\`; expecting ${i.description}, ignoring.`:`Callback \`${e.path}\` returned an invalid value \`${o}\`; expecting ${t??i.description}, ignoring.`)}}var RS=e=>{if(!lt(e))return!1;const t=Object.keys(e);return t.length===1&&t[0].startsWith("$")},cY=Fi({color:ke,stop:Ee},""),pz=At(e=>{let t=-1/0;for(const i of e)if(i?.stop!=null){if(i.stop<t)return!1;t=i.stop}return!0},"color stops to be defined in ascending order"),GT=_t(cu(2),_e(cY),pz),zT=ve("axis","item","series"),WM=Fi({type:ee(Ye("gradient")),colorStops:ee(GT),rotation:ne,gradient:Oe(ve("linear","radial","conic")),bounds:Oe(zT),reverse:Oe(U)},"a gradient object with color stops"),xe={stroke:ke,strokeWidth:Y,strokeOpacity:Ee},Zx=Fi({type:ee(Ye("gradient")),gradient:ee(ve("linear","radial","conic")),bounds:ee(zT),colorStops:ee(We(GT,_t(cu(2),_e(ke)))),rotation:ee(ne),reverse:ee(U)}),qx=Fi({type:ee(Ye("pattern")),pattern:ee(ve("vertical-lines","horizontal-lines","forward-slanted-lines","backward-slanted-lines","circles","squares","triangles","diamonds","stars","hearts","crosses")),path:cz(2),width:ee(Y),height:ee(Y),fill:ee(ke),fillOpacity:ee(Ee),backgroundFill:ee(ke),backgroundFillOpacity:ee(Ee),padding:ee(Y),rotation:ee(ne),scale:ee(Y),stroke:ee(ke),strokeWidth:ee(Y),strokeOpacity:ee(Ee)}),Qx=Fi({type:ee(Ye("image")),url:H,width:Y,height:Y,rotation:ee(ne),backgroundFill:ee(ke),backgroundFillOpacity:Ee,fit:ee(ve("stretch","contain","cover")),repeat:ee(ve("repeat","repeat-x","repeat-y","no-repeat"))}),dY=op({gradient:{colorStops:GT,rotation:ne,gradient:Oe(ve("linear","radial","conic")),bounds:Oe(zT),reverse:Oe(U)},pattern:{pattern:ve("vertical-lines","horizontal-lines","forward-slanted-lines","backward-slanted-lines","circles","squares","triangles","diamonds","stars","hearts","crosses"),path:cz(2),width:Y,height:Y,rotation:ne,scale:Y,fill:ke,fillOpacity:Ee,backgroundFill:ke,backgroundFillOpacity:Ee,...xe,padding:Oe(Y)},image:{url:ee(H),backgroundFill:ke,backgroundFillOpacity:Ee,width:Y,height:Y,fit:ve("stretch","contain","cover","none"),repeat:ve("repeat","repeat-x","repeat-y","no-repeat"),rotation:ne}},"a color object"),Vr=We(ke,Fi(dY,"a color object")),Pe={fill:Vr,fillOpacity:Ee};Pe.fillGradientDefaults=Oe(Zx);Pe.fillPatternDefaults=Oe(qx);Pe.fillImageDefaults=Oe(Qx);var Ne={lineDash:_e(Y),lineDashOffset:ne},Il={...Pe,...xe,...Ne,opacity:Ee,cornerRadius:Y},Hh={...xe,...Ne,opacity:Ee},ai={...Pe,...xe,...Ne,opacity:Ee};function gz(e){return{enabled:U,range:ve("tooltip","node"),highlightedItem:e,unhighlightedItem:e}}function Ki(e,t){return{enabled:U,range:ve("tooltip","node"),highlightedItem:e,unhighlightedItem:e,highlightedSeries:t,unhighlightedSeries:t,bringToFront:U}}var T2=Fi({googleFont:H},"google font"),VA=We(H,RS,T2,_e(We(H,T2))),$t={color:ke,fontFamily:VA,fontSize:Y,fontStyle:ve("normal","italic","oblique"),fontWeight:We(Y,ve("normal","bold","bolder","lighter"))},uY=Fi({top:ne,right:ne,bottom:ne,left:ne},"padding object"),B0=We(ne,uY),G0={enabled:U,stroke:ke,strokeWidth:Y,strokeOpacity:Ee},Da={border:{...G0},cornerRadius:ne,padding:B0,...Pe};function hY(e,t,i=1/0){const o=t,s=i,n=e%180*(Math.PI/180),r=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));if(r===0)return{width:o,height:s};if(a===0)return{width:s,height:o};if(!isFinite(s)){const c=a/r,d=o/(a+c*r);return{width:d,height:c*d}}const l=a*a-r*r;if(l===0){const c=Math.min(o,s)/Math.SQRT2;return{width:c,height:c}}return{width:Math.abs((o*a-s*r)/l),height:Math.abs((s*a-o*r)/l)}}function LS(e){return typeof e>"u"?[]:Array.isArray(e)?e:[e]}function _A(e){return Array.from(new Set(e))}function VT(e,t){return e.reduce((i,o)=>{const s=t(o);return i[s]??(i[s]=[]),i[s].push(o),i},{})}function Nr(e,t){if(e==null||t==null||e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(Array.isArray(e[i])&&Array.isArray(t[i])){if(!Nr(e[i],t[i]))return!1}else if(e[i]!==t[i])return!1;return!0}function al(e,t,i=0){if(e.length===0)return[];const o=[];for(let s=0;s<t;s++)o.push(e.at((s+i)%e.length));return o}function pY(e,t){const i=new Map;return t.forEach((o,s)=>{i.set(o,s)}),e.sort((o,s)=>{const n=i.get(o)??1/0,r=i.get(s)??1/0;return n-r})}function gY(e,t){let i=0;for(;i<e.length&&t(e[i]);)i+=1;const o=i;o!==0&&e.splice(0,o)}function fY(e,t){let i=e.length-1;for(;i>=0&&t(e[i]);)i-=1;const o=e.length-1-i;o!==0&&e.splice(e.length-o,o)}var HA=class{constructor(){this.queue=[]}await(e=50){return new Promise(t=>{const i=()=>{clearTimeout(s),t(!0)},s=setTimeout(()=>{const n=this.queue.indexOf(i);n<0||(this.queue.splice(n,1),t(!1))},e);this.queue.push(i)})}notify(){this.queue.splice(0).forEach(e=>e())}};function R2(e=0){return new Promise(t=>{setTimeout(t,e)})}function*fh(...e){for(const t of e)yield*t}function mY(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e?e:[e]}function fm(e){for(const t of e)return t;throw new Error("AG Charts - no first() value found")}function*gi(e){const t=[void 0,void 0];for(const i of Object.keys(e))t[0]=i,t[1]=e[i],yield t}function sd(e){return e==="true"}function yY(e){return Number(e)}function Pn(e){return e}var vY={role:Pn,"aria-checked":sd,"aria-controls":Pn,"aria-describedby":Pn,"aria-disabled":sd,"aria-expanded":sd,"aria-haspopup":Pn,"aria-hidden":sd,"aria-label":Pn,"aria-labelledby":Pn,"aria-live":Pn,"aria-orientation":Pn,"aria-selected":sd,"data-focus-override":sd,"data-focus-visible-override":sd,"data-preventdefault":sd,class:Pn,for:Pn,id:Pn,tabindex:yY,title:Pn,placeholder:Pn};function ut(e,t,i){i==null||i===""||i===""?e?.removeAttribute(t):e?.setAttribute(t,i.toString())}function yl(e,t){if(t!=null)for(const[i,o]of gi(t))i!=="class"&&ut(e,i,o)}function Ig(e,t,i){if(!(e instanceof HTMLElement))return;const o=e.getAttribute(t);return o===null?i:vY[t]?.(o)??void 0}function cl(e,t,i){e!=null&&(i==null?e.style.removeProperty(t):e.style.setProperty(t,i.toString()))}function bY(e,t){for(const[i,o]of gi(t))cl(e,i,o)}function fz(e,t,i,o,s){return t<e.x+e.width&&t+o>e.x&&i<e.y+e.height&&i+s>e.y}function _T(e,t,i,o=0,s=0){return t>=e.x&&t+o<=e.x+e.width&&i>=e.y&&i+s<=e.y+e.height}function CY(e){return e==null||e.height===0||e.width===0||isNaN(e.height)||isNaN(e.width)}function SY(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function mh(e,t,i){if(e>t)return;let o;for(;t>=e;){const s=Math.floor((t+e)/2);i(s)?(o=s,e=s+1):t=s-1}return o}function zy(e,t,i){if(e>t)return;let o;for(;t>=e;){const s=Math.floor((t+e)/2);i(s)?(o=s,t=s-1):e=s+1}return o}function mz(e,t,i){if(e>t)return;let o;for(;t>=e;){const s=Math.floor((t+e)/2),n=i(s);n==null?t=s-1:(o=n,e=s+1)}return o}var xY=class{constructor(e){this.getter=e}get(){let e=this.result?.deref();return e||(e=this.getter(),this.result=new WeakRef(e),e)}clear(){this.result=void 0}},Qt=class{constructor(){this.callbacks=new Set}flush(){for(const e of this.callbacks)e();this.callbacks.clear()}merge(e){for(const t of e.callbacks)this.callbacks.add(t)}register(...e){for(const t of e)t&&this.callbacks.add(t)}};function wY(e,t){const i=Math.max(e.length,t.length),o=new Set,s=new Set;for(let n=0;n<i;n++){const r=e[n],a=t[n];r!==a&&(s.has(a)?s.delete(a):a&&o.add(a),o.has(r)?o.delete(r):r&&s.add(r))}return{changed:o.size>0||s.size>0,added:o,removed:s}}function Be(e,t,i){return Math.min(i,Math.max(e,t))}function DY(e,t,i=1e-10){return e>=t[0]-i&&e<=t[1]+i}function Ht(e,t,i=1e-10){return e===t||Math.abs(e-t)<i}function HT(e){return Math.sign(e)===-1||Object.is(e,-0)}function MY(e){return e%1===0}function $A(e,t=2){const i=10**t;return Math.round(e*i)/i}function kY(e,t){return Math.floor(e%t+(e<0?Math.abs(t):0))}function zv(e){if(Math.floor(e)===e)return 0;let t=String(e),i=0;if(e<1e-6||e>=1e21){let s;[t,s]=t.split("e"),s!=null&&(i=Number(s))}const o=t.split(".")[1]?.length??0;return Math.max(o-i,0)}function yz(e){return Array.isArray(e)&&e.length>=2&&e.every(Ct)}function z0(e){return Array.isArray(e)&&e.length>=2&&e.every(yz)}function AY(e){const t=e[0],i=e[e.length-1];return Ht(t[0],i[0],.001)&&Ht(t[1],i[1],.001)}function L2(e){return Array.isArray(e)&&e.every(z0)&&e.every(AY)}function vz(e){if(e===null)return!0;if(!lt(e)||e.type==null)return!1;const{type:t,coordinates:i}=e;switch(t){case"GeometryCollection":return Array.isArray(e.geometries)&&e.geometries.every(vz);case"MultiPolygon":return Array.isArray(i)&&i.every(L2);case"Polygon":return L2(i);case"MultiLineString":return Array.isArray(i)&&i.every(z0);case"LineString":return z0(i);case"MultiPoint":return z0(i);case"Point":return yz(i);default:return!1}}function IY(e){return lt(e)&&e.type==="Feature"&&vz(e.geometry)}function TY(e){return lt(e)&&e.type==="FeatureCollection"&&Array.isArray(e.features)&&e.features.every(IY)}var mf=At(TY,"a GeoJSON object"),RY=class{constructor(e,t){this._vertexCount=0,this.pendingProcessingEdgesFrom=[],this.pendingProcessingEdgesTo=[],this.cachedNeighboursEdge=e,this.processedEdge=t}clear(){this._vertexCount=0,this.pendingProcessingEdgesFrom=[],this.pendingProcessingEdgesTo=[]}addVertex(e){const t=new LY(e);return this._vertexCount++,t}addEdge(e,t,i){i===this.cachedNeighboursEdge?e.updateCachedNeighbours().set(t.value,t):i===this.processedEdge&&(this.pendingProcessingEdgesFrom.push(e),this.pendingProcessingEdgesTo.push(t));const{edges:o}=e,s=o.get(i);s?s.indexOf(t)===-1&&s.push(t):o.set(i,[t])}removeVertex(e){this._vertexCount--;const t=e.edges;if(t){for(const[i,o]of t)this._vertexCount-=o.length;e.clear()}}removeEdge(e,t){for(const[i,o]of e.edges){const s=o.indexOf(t);o.splice(s,1),o.length===0&&e.edges.delete(i)}}removeEdges(e,t){e.edges.delete(t)}getVertexValue(e){return e.value}*neighbours(e){for(const[t,i]of e.edges)for(const o of i)yield o}*neighboursAndEdges(e){for(const[t,i]of e.edges)for(const o of i)yield[o,t]}neighboursWithEdgeValue(e,t){return e.edges.get(t)}findNeighbour(e,t){return e.edges.get(t)?.[0]}findNeighbourValue(e,t){const i=this.findNeighbour(e,t);if(i)return this.getVertexValue(i)}findNeighbourWithValue(e,t,i){const o=i==null?this.neighbours(e):this.neighboursWithEdgeValue(e,i);if(o){for(const s of o)if(this.getVertexValue(s)===t)return s}}findVertexAlongEdge(e,t,i){if(i===this.cachedNeighboursEdge){let s;for(const n of t)if(s=(s??e).readCachedNeighbours()?.get(n),!s)return;return s}if(t.length===0)return;let o=e;for(const s of t){const n=o?this.neighboursWithEdgeValue(o,i):void 0;if(!n)return;o=n.find(r=>r.value===s)}return o}adjacent(e,t){for(const[i,o]of e.edges)if(o.includes(t))return!0;return!1}},LY=class{constructor(e){this.value=e,this.edges=new Map}readCachedNeighbours(){return this._cachedNeighbours}updateCachedNeighbours(){return this._cachedNeighbours??(this._cachedNeighbours=new Map),this._cachedNeighbours}clear(){this.edges.clear(),this._cachedNeighbours?.clear()}},P2=new Map,PY=1;function vs(e){const t=e.constructor,i=Object.hasOwn(t,"className")?t.className:t.name;if(!i)throw new Error(`The ${t} is missing the 'className' property.`);const o=(P2.get(i)??0)+1;return P2.set(i,o),`${i}-${o}`}function kh(){return`ag-charts-${PY++}`}function V0(){return crypto.randomUUID?.()??EY()}function EY(){const e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let t="";for(let i=0;i<e.length;i++)(i===4||i===6||i===8||i===10)&&(t+="-"),t+=e[i].toString(16).padStart(2,"0");return t}var bz=(e,t,i)=>{let o=e,s=o;for(const n of t)if(o==null||i(o.value,n)>0)o={value:n,next:o},s=o;else{for(s=s;s.next!=null&&i(s.next.value,n)<=0;)s=s.next;s.next={value:n,next:s.next}}return o},Cz=/^(?:(.)?([<>=^]))?([+\-( ])?([$€£¥₣₹#])?(0)?(\d+)?(,)?(?:\.(\d+))?(~)?([%a-z])?$/i,Sz=/^((?:[^#]|#[^{])*)#{([^}]+)}(.*)$/;function FY(e){if(!ko(e))return!1;const t=Sz.exec(e);return Cz.test(t?t[2]:e)}function $T(e){let t,i;const o=Sz.exec(e);o&&([,t,e,i]=o);const s=Cz.exec(e);if(!s){he.warnOnce(`The number formatter is invalid: ${e}`);return}const[,n,r,a,l,c,d,u,h,p,g]=s;return{fill:n,align:r,sign:a,symbol:l,zero:c,width:parseInt(d),comma:u,precision:parseInt(h),trim:!!p,type:g,prefix:t,suffix:i}}function xz(e){const t=typeof e=="string"?$T(e):e;if(t==null)return;const{fill:i,align:o,sign:s="-",symbol:n,zero:r,width:a,comma:l,type:c,prefix:d="",suffix:u="",precision:h}=t;let{trim:p}=t;const g=h==null||isNaN(h);let f;if(!c)f=Sr.g,p=!0;else if(c in Sr&&c in yg)f=g?yg[c]:Sr[c];else if(c in Sr)f=Sr[c];else if(c in yg)f=yg[c];else throw new Error(`The number formatter type is invalid: ${c}`);const y=c?6:12;let v;return g||(v=h),(b,C)=>{let x=f(b,v??C??y);return p&&(x=BY(x)),l&&(x=GY(x,l)),x=VY(b,x,s),n&&n!=="#"&&(x=`${n}${x}`),n==="#"&&c==="x"&&(x=`0x${x}`),c==="s"&&(x=`${x}${zY(b)}`),(c==="%"||c==="p")&&(x=`${x}%`),a!=null&&!isNaN(a)&&(x=_Y(x,a,i??r,o)),x=`${d}${x}${u}`,x}}var yg={b:e=>sC(e).toString(2),c:e=>String.fromCharCode(e),d:e=>Math.round(Math.abs(e)).toFixed(0),o:e=>sC(e).toString(8),x:e=>sC(e).toString(16),X:e=>yg.x(e).toUpperCase(),n:e=>yg.d(e),"%":e=>`${sC(e*100).toFixed(0)}`},Sr={e:(e,t)=>Math.abs(e).toExponential(t),E:(e,t)=>Sr.e(e,t).toUpperCase(),f:(e,t)=>Math.abs(e).toFixed(t),F:(e,t)=>Sr.f(e,t).toUpperCase(),g:(e,t)=>{if(e===0)return"0";const i=Math.abs(e),o=Math.floor(Math.log10(i));return o>=-4&&o<t?i.toFixed(t-1-o):i.toExponential(t-1)},G:(e,t)=>Sr.g(e,t).toUpperCase(),n:(e,t)=>Sr.g(e,t),p:(e,t)=>Sr.r(e*100,t),r:(e,t)=>{if(e===0)return"0";const i=Math.abs(e),s=Math.floor(Math.log10(i))-(t-1);if(s<=0)return i.toFixed(-s);const n=10**s;return(Math.round(i/n)*n).toFixed()},s:(e,t)=>{const i=Mz(e);return Sr.r(e/10**i,t)},"%":(e,t)=>Sr.f(e*100,t)},wz=-24,Dz=24,NY={[wz]:"y",[-21]:"z",[-18]:"a",[-15]:"f",[-12]:"p",[-9]:"n",[-6]:"µ",[-3]:"m",0:"",3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",[Dz]:"Y"},OY="−";function sC(e){return Math.floor(Math.abs(e))}function BY(e){if(!e.endsWith("0")||e.indexOf(".")===-1)return e;let t=e.length-1;for(;t>0;)if(e[t]=="0")t-=1;else if(e[t]=="."){t-=1;break}else break;return e.substring(0,t+1)}function GY(e,t){let i=e.indexOf(".");i<0&&(i=e.length);const o=e.substring(0,i).split(""),s=e.substring(i);for(let n=o.length-3;n>0;n-=3)o.splice(n,0,t);return`${o.join("")}${s}`}function zY(e){return NY[Mz(e)]}function Mz(e){return Be(wz,e?Math.floor(Math.log10(Math.abs(e))/3)*3:0,Dz)}function VY(e,t,i=""){if(i==="(")return e>=0?t:`(${t})`;const o=i==="+"?"+":"";return`${e>=0?o:OY}${t}`}function _Y(e,t,i=" ",o=">"){let s=e;if(o===">"||!o)s=s.padStart(t,i);else if(o==="<")s=s.padEnd(t,i);else if(o==="^"){const n=Math.max(0,t-s.length),r=Math.ceil(n/2),a=Math.floor(n/2);s=s.padStart(r+s.length,i),s=s.padEnd(a+s.length,i)}return s}var kz=Object.defineProperty,HY=Object.getOwnPropertyDescriptor,Fl=(e,t)=>{for(var i in t)kz(e,i,{get:t[i],enumerable:!0})},I=(e,t,i,o)=>{for(var s=o>1?void 0:o?HY(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(s=(o?r(t,i,s):r(s))||s);return o&&s&&kz(t,i,s),s},Jx=class{constructor(){this.cleanup=new Qt}destroy(){this.cleanup.flush()}},$Y=class{constructor(){this.modules=[],this.dependencies=new Map,this.modulesByOptionKey=new Map}register(...t){for(const i of t){this.registerDependencies(i);const o=this.modules.find(s=>i.type===s.type&&("optionsKey"in i&&"optionsKey"in s?i.optionsKey===s.optionsKey:!0)&&i.identifier===s.identifier);if(o){if(i.packageType==="enterprise"&&o.packageType==="community"){const s=this.modules.indexOf(o);this.modules.splice(s,1,i),"optionsKey"in i&&this.modulesByOptionKey.set(i.optionsKey,i)}}else this.modules.push(i),"optionsKey"in i&&this.modulesByOptionKey.set(i.optionsKey,i)}}hasEnterpriseModules(){return this.modules.some(t=>t.packageType==="enterprise")}*byType(...t){const i=new Set,o=this.modules.filter(r=>t.includes(r.type)),s=r=>{const a=this.dependencies.get(r);return a?.flatMap(s).concat(a)??[]},n=[];for(const r of o){const a="optionsKey"in r?r.optionsKey:r.contextKey;if(!i.has(a)){for(const l of s(a)){if(i.has(l))continue;const c=this.modulesByOptionKey.get(l);if(!c){n.push(l);continue}t.includes(c.type)&&(yield c,i.add(l))}yield r,i.add(a)}}if(n.length>0)throw new Error(`Could not resolve module dependencies: ${n}`)}registerDependencies(t){if(t.dependencies==null||t.dependencies.length===0)return;const i="optionsKey"in t?t.optionsKey:t.contextKey;this.dependencies.set(i,t.dependencies)}},vl=new $Y,ew=Symbol("interpolate"),PS=e=>e[ew]!=null;function tw(e,t,i,o=1/0){const s={nearest:void 0,distanceSquared:o};for(const n of i){const r=n.distanceSquared(e,t);if(r===0)return{nearest:n,distanceSquared:0};r<s.distanceSquared&&(s.nearest=n,s.distanceSquared=r)}return s}function WY(e,t,i,o=1/0){const{x:s=e,y:n=t}=i.transformPoint?.(e,t)??{},r={nearest:void 0,distanceSquared:o};for(const a of i.children){const{nearest:l,distanceSquared:c}=a.nearestSquared(s,n,r.distanceSquared);if(c===0)return{nearest:l,distanceSquared:c};c<r.distanceSquared&&(r.nearest=l,r.distanceSquared=c)}return r}var Vy=class tg{constructor(t,i,o,s){this.x=t,this.y=i,this.width=o,this.height=s}static fromDOMRect({x:t,y:i,width:o,height:s}){return new tg(t,i,o,s)}static merge(t){let i=1/0,o=1/0,s=-1/0,n=-1/0;for(const r of t)r.x<i&&(i=r.x),r.y<o&&(o=r.y),r.x+r.width>s&&(s=r.x+r.width),r.y+r.height>n&&(n=r.y+r.height);return new tg(i,o,s-i,n-o)}static nearestBox(t,i,o){return tw(t,i,o)}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(){const{x:t,y:i,width:o,height:s}=this;return new tg(t,i,o,s)}equals(t){return SY(this,t)}containsPoint(t,i){return _T(this,t,i)}intersection(t){if(!this.collidesBBox(t))return;const i=Be(t.x,this.x,t.x+t.width),o=Be(t.y,this.y,t.y+t.height),s=Be(t.x,this.x+this.width,t.x+t.width),n=Be(t.y,this.y+this.height,t.y+t.height);return new tg(i,o,s-i,n-o)}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,i){if(this.containsPoint(t,i))return 0;const o=t-Be(this.x,t,this.x+this.width),s=i-Be(this.y,i,this.y+this.height);return o*o+s*s}shrink(t,i){if(typeof t=="number")this.applyMargin(t,i);else for(const o of Object.keys(t)){const s=t[o];typeof s=="number"&&this.applyMargin(s,o)}return this.width<0&&(this.width=0),this.height<0&&(this.height=0),this}grow(t,i){if(typeof t=="number")this.applyMargin(-t,i);else for(const o of Object.keys(t)){const s=t[o];typeof s=="number"&&this.applyMargin(-s,o)}return this}applyMargin(t,i){switch(i){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,i){return this.x+=t,this.y+=i,this}[ew](t,i){return new tg(this.x*(1-i)+t.x*i,this.y*(1-i)+t.y*i,this.width*(1-i)+t.width*i,this.height*(1-i)+t.height*i)}};Vy.zero=Object.freeze(new Vy(0,0,0,0));Vy.NaN=Object.freeze(new Vy(NaN,NaN,NaN,NaN));var Ie=Vy,jY=2e3,E2=Date.now(),UY=()=>{const e=Date.now()-E2;if(e>jY){const t=(Math.floor(e/100)/10).toFixed(1);he.log(`**** ${t}s since last log message ****`)}E2=Date.now()},rt={create(...e){return Object.assign((...i)=>{rt.check(...e)&&(typeof i[0]=="function"&&(i=LS(i[0]())),UY(),he.log(...i))},{check:()=>rt.check(...e),group:(i,o)=>rt.check(...e)?he.logGroup(i,o):o()})},check(...e){return e.length===0&&e.push(!0),LS(kt("agChartsDebug")).some(i=>e.includes(i))},inDevelopmentMode(e){if(rt.check("dev"))return e()}};function Az({context:e,pixelRatio:t,width:i,height:o}){e.save();try{e.resetTransform(),e.clearRect(0,0,Math.ceil(i*t),Math.ceil(o*t))}finally{e.restore()}}function Iz(e){if(rt.check("canvas")){const t=e.save.bind(e),i=e.restore.bind(e);let o=0;Object.assign(e,{save(){t(),o++},restore(){if(o===0)throw new Error("AG Charts - Unable to restore() past depth 0");i(),o--},verifyDepthZero(){if(o!==0)throw new Error(`AG Charts - Save/restore depth is non-zero: ${o}`)}})}}function F2(e,t,i){return[Math.floor(e*i),Math.floor(t*i)]}var WT=class{constructor(e){const{width:t,height:i,pixelRatio:o,willReadFrequently:s=!1}=e;this.width=t,this.height=i,this.pixelRatio=o;const[n,r]=F2(t,i,o);this.canvas=new OffscreenCanvas(n,r),this.context=this.canvas.getContext("2d",{willReadFrequently:s}),this.context.setTransform(o,0,0,o,0,0),Iz(this.context)}drawImage(e,t=0,i=0){return e.drawImage(this.canvas,t,i)}transferToImageBitmap(){return this.canvas.transferToImageBitmap()}resize(e,t,i){if(!(e>0&&t>0))return;const{canvas:o,context:s}=this;if(e!==this.width||t!==this.height||i!==this.pixelRatio){const[n,r]=F2(e,t,i);o.width=n,o.height=r}s.setTransform(i,0,0,i,0,0),this.width=e,this.height=t,this.pixelRatio=i}clear(){Az(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)}},WA=Symbol("BREAK"),cy="__decorator_config",nC="__decorator_accessors";function KY(e,t){jT(e,t).optional=!0}function jT(e,t){if(Object.getOwnPropertyDescriptor(e,cy)==null&&Object.defineProperty(e,cy,{value:{}}),Object.getOwnPropertyDescriptor(e,nC)==null){const d=Object.getPrototypeOf(e)?.[nC]?.slice()??[];Object.defineProperty(e,nC,{value:d})}const i=e[cy],o=t.toString();if(i[o]!=null)return i[o];i[o]={setters:[],getters:[],observers:[]};const s=Object.getOwnPropertyDescriptor(e,t);let n=s?.get,r=s?.set;if(n==null||r==null){const c=e[nC];let d=c.indexOf(t);d===-1&&(d=c.push(t)-1),n??(n=function(){let u=this.__accessors;return u==null&&(u=c.slice().fill(void 0),Object.defineProperty(this,"__accessors",{value:u})),u[d]}),r??(r=function(u){let h=this.__accessors;h==null&&(h=c.slice().fill(void 0),Object.defineProperty(this,"__accessors",{value:h})),h[d]=u})}return Object.defineProperty(e,t,{set:function(c){const{setters:d,observers:u}=i[o];let h;d.some(p=>p.length>2)&&(h=n.call(this));for(const p of d)if(c=p(this,t,c,h),c===WA)return;r.call(this,c);for(const p of u)p(this,c,h)},get:function(){let c=n.call(this);for(const d of i[o].getters)if(c=d(this,t,c),c===WA)return;return c},enumerable:!0,configurable:!1}),i[o]}function $h(e,t,i){return(o,s)=>{const n=jT(o,s);n.setters.push(e),t&&n.getters.unshift(t),i&&Object.assign(n,i)}}function Tz(e){return(t,i)=>{jT(t,i).observers.push(e)}}function iw(e){return typeof e<"u"&&cy in e}function $d(e){const t=new Set;for(;iw(e);)t.add(e?.[cy]),e=Object.getPrototypeOf(e);return Array.from(t).flatMap(i=>Object.keys(i))}function Rz(e){return $d(e).reduce((t,i)=>(t[String(i)]=e[i]??null,t),{})}function en(e,t){return Array.isArray(e)?!Array.isArray(t)||e.length!==t.length?!1:e.every((i,o)=>en(i,t[o])):Lt(e)?Lt(t)?UT(e,t,en):!1:e===t}function UT(e,t,i){if(Object.is(e,t))return!0;for(const o of Object.keys(t))if(!(o in e))return!1;for(const o of Object.keys(e))if(!(o in t)||!i(e[o],t[o]))return!1;return!0}function Rt(...e){const t={};for(const i of e){if(!lt(i))continue;const o=iw(i)?$d(i):Object.keys(i);for(const s of o)Lt(t[s])&&Lt(i[s])?t[s]=Rt(t[s],i[s]):t[s]??(t[s]=i[s])}return t}function _y(...e){const t={};for(const i of e){if(!lt(i))continue;const o=iw(i)?$d(i):Object.keys(i);for(const s of o)Lt(t[s])&&Lt(i[s])?t[s]=_y(t[s],i[s]):s in t||(t[s]??(t[s]=i[s]))}return t}function Lz(e,...t){return t&&St(e)?e.map(i=>Rt(i,...t)):e}function Pz(e,t){const i={};for(const[o,s]of gi(e))i[o]=t(s,o,e);return i}function Ae(e,t){const i={...e};for(const o of t)delete i[o];return i}function jA(e,t){if(e==null)return;const i={};for(const o of t)Object.hasOwn(e,o)&&(i[o]=e[o]);return i}function KT(e,t){return(St(t)?t:t.split(".")).reduce((o,s)=>o[s],e)}var YT=new Set(["__proto__","constructor","prototype"]);function XT(e,t,i){const o=St(t)?t.slice():t.split("."),s=o.pop();if(o.some(r=>YT.has(r)))return;const n=o.reduce((r,a)=>r[a],e);return n[s]=i,n[s]}function UA(e,t,i){if(i===void 0)return t;for(const o of e){const s=i[o];s!==void 0&&(t[o]=s)}return t}function fc(e){return e==null||typeof e!="object"||!Lt(e)||(Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const i=e[t];i!==null&&(typeof i=="object"||typeof i=="function")&&!Object.isFrozen(i)&&fc(i)})),e}function Ez(e,t){return Lt(e)&&t in e}function YY(e,t){return Ez(e,t)&&typeof e[t]=="string"}var Fz=(e,t)=>e===t;function Se(e){return function(t,i){const o=`__${i}`;t[i]||XY(t,i,o,e)}}function Nz(e){return Se(e)}function tr(e){return Se(e)}function ZT(e){const t=e??{};return t.equals=Nr,Se(e)}function XY(e,t,i,o){const{changeCb:s,convertor:n,checkDirtyOnAssignment:r=!1}=o??{},a={changeCb:s,checkDirtyOnAssignment:r,convertor:n},l=QY(i,qY(ZY(JY(i,a),a),a),a);Object.defineProperty(e,t,{set:l,get:function(){return this[i]},enumerable:!0,configurable:!0})}function ZY(e,t){const{convertor:i}=t;return i?function(o){e.call(this,i(o))}:e}var Oz=Symbol("no-change");function qY(e,t){const{changeCb:i}=t;return i?function(o){const s=e.call(this,o);return s!==Oz&&i.call(this,this),s}:e}function QY(e,t,i){const{checkDirtyOnAssignment:o}=i;return o?function(s){const n=t.call(this,s);return s?._dirty===!0&&this.markDirty(e),n}:t}function JY(e,t){const{equals:i=Fz}=t;return function(o){const s=this[e];return i(o,s)?Oz:(this[e]=o,this.onChangeDetection(e),o)}}var jM=(e,t)=>Math.sign(e-t);function Bz(e,t){if(typeof e=="number"&&typeof t=="number")return jM(e,t);const i=typeof e=="number"?[e]:e,o=typeof t=="number"?[t]:t,s=Math.min(i.length,o.length);for(let n=0;n<s;n+=1){const r=jM(i[n],o[n]);if(r!==0)return r}return jM(i.length,o.length)}var Gz=(e=>(e[e.All=0]="All",e[e.None=1]="None",e))(Gz||{}),eX=5,Vv=class KA{constructor(t){this.serialNumber=KA._nextSerialNumber++,this.childNodeCounts={groups:0,nonGroups:0,thisComplexity:0,complexity:0},this.id=vs(this),this.name=void 0,this.transitionOut=void 0,this.pointerEvents=0,this._datum=void 0,this._previousDatum=void 0,this.scene=void 0,this._debugDirtyProperties=void 0,this.parentNode=void 0,this.cachedBBox=void 0,this.isContainerNode=!1,this.visible=!0,this.zIndex=0,this.batchLevel=0,this.batchDirty=!1,this.name=t?.name,this.tag=t?.tag??NaN,this.zIndex=t?.zIndex??0,this.scene=t?.scene,(t?.debugDirty??KA._debugEnabled)&&(this._debugDirtyProperties=new Map([["__first__",[]]]))}static toSVG(t,i,o){const s=t?.toSVG();if(s==null||!s.elements.length&&!s.defs?.length)return;const n=Ui("svg");if(n.setAttribute("width",String(i)),n.setAttribute("height",String(o)),n.setAttribute("viewBox",`0 0 ${i} ${o}`),n.setAttribute("overflow","visible"),s.defs?.length){const r=Ui("defs");r.append(...s.defs),n.append(r)}return n.append(...s.elements),n.outerHTML}static*extractBBoxes(t,i){for(const o of t)if(!i||o.visible&&!o.transitionOut){const s=o.getBBox();s&&(yield s)}}get datum(){return this._datum}set datum(t){this._datum!==t&&(this._previousDatum=this._datum,this._datum=t)}get previousDatum(){return this._previousDatum}get layerManager(){return this.scene?.layersManager}get imageLoader(){return this.scene?.imageLoader}closestDatum(){for(const{datum:t}of this.traverseUp(!0))if(t!=null)return t}preRender(t,i=1){if(this.childNodeCounts.groups=0,this.childNodeCounts.nonGroups=1,this.childNodeCounts.complexity=i,this.childNodeCounts.thisComplexity=i,this.batchLevel>0||this.batchDirty)throw new Error("AG Charts - illegal rendering state; batched update in progress");return this.childNodeCounts}isolatedRender(t){t.ctx.save();try{this.render(t)}catch(i){const o=i.errorCount??1;if(o>=eX)throw i.errorCount=o,i;he.warnOnce("Error during rendering",i,i.stack)}finally{t.ctx.restore()}}render(t){const{stats:i}=t;if(this.debugDirtyProperties(),t.debugNodeSearch){const o=this.name??this.id;t.debugNodeSearch.some(s=>typeof s=="string"?s===o:s.test(o))&&(t.debugNodes[this.name??this.id]=this)}i&&(i.nodesRendered++,i.opsPerformed+=this.childNodeCounts.thisComplexity)}setScene(t){this.scene=t}*traverseUp(t){let i=this;for(t&&(yield i);i=i.parentNode;)yield i}isRoot(){return!this.parentNode}removeChild(t){throw new Error(`AG Charts - internal error, unknown child node ${t.name??t.id} in $${this.name??this.id}`)}remove(){this.parentNode?.removeChild(this)}destroy(){this.parentNode?.removeChild(this)}batchedUpdate(t){this.batchLevel++,t(),this.batchLevel--,this.batchLevel===0&&this.batchDirty&&(this.markDirty(),this.batchDirty=!1)}setProperties(t){return this.batchLevel++,Object.assign(this,t),this.batchLevel--,this.batchLevel===0&&this.batchDirty&&(this.markDirty(),this.batchDirty=!1),this}containsPoint(t,i){return!1}pickNode(t,i){if(this.containsPoint(t,i))return this}pickNodes(t,i,o=[]){return this.containsPoint(t,i)&&o.push(this),o}getBBox(){return this.cachedBBox??(this.cachedBBox=Object.freeze(this.computeBBox())),this.cachedBBox}computeBBox(){}onChangeDetection(t){this.markDirty(t)}markDirtyChildrenOrder(){this.cachedBBox=void 0}markDirty(t){if(this.batchLevel>0){this.batchDirty=!0;return}t!=null&&this._debugDirtyProperties&&this.markDebugProperties(t),this.cachedBBox=void 0,this.parentNode?.markDirty()}markDebugProperties(t){const i=this._debugDirtyProperties?.get(t)??[],o=new Error().stack?.split(`
|
|
@@ -23,7 +23,7 @@ ${n.join(`
|
|
|
23
23
|
`),n=Vye.getMeasurer({font:o}),r=i.interval.values??e.ticks({nice:!1,interval:i.interval.step,minTickCount:0,maxTickCount:6,tickCount:5})?.ticks??[],l=(s??r?.map(c=>yv(this.id,this.ctx,this.labelDatum(o,c))??"")).reduce((c,d)=>{const{width:u}=n.measureText(d);return Math.max(c,u)},0);return o.spacing+l}createNodeData(){const{id:e,properties:t,horizontal:i,scale:o,seriesRect:s}=this,{value:n,segmentation:r,thickness:a,cornerRadius:l,cornerMode:c,bar:d,scale:u,label:h}=t;o.domain=[u.min,u.max],o.range=i?[0,s.width]:[s.height,0];let p,g;i?(g=1,p=Math.PI/2):u.label.placement==="before"?(g=1,p=0):(g=-1,p=0);const f=p-Math.PI/2;let y,v,b,C;i?(y=0,v=s.width,b=(s.height-a)/2,C=b+a,h.placement==="outside-start"?y+=this.horizontalLabelInset():h.placement==="outside-end"&&(v-=this.horizontalLabelInset())):(y=(s.width-a)/2,v=y+a,C=0,b=s.height,h.placement==="outside-start"?b-=this.verticalLabelInset():h.placement==="outside-end"&&(C+=this.verticalLabelInset())),this.gaugeRect=new hd(Math.min(y,v),Math.min(b,C),Math.abs(v-y),Math.abs(C-b));const x=0,D=0;o.domain=[u.min,u.max],o.range=i?[y,v]:[b,C];const{ticks:k}=this.tickGenerator.generateTicks({domain:o.domain,range:this.range,reverse:!1,primaryTickCount:void 0,defaultTickMinSpacing:0,visibleRange:[0,1],niceMode:Uye.Off,labelX:0,parallelFlipRotation:p,regularFlipRotation:f,sideFlag:g,sizeLimit:void 0,removeOverflowLabels:!1}).tickData,A=this.getTargets(),w=[],M=[],T=[],L=[],[N,O]=o.range,F=Math.abs(O-N),E=i?o.convert(n):v,G=i?C:o.convert(n),B=r.enabled?r.spacing/2:0,z=i?B:0,V=i?0:B,$=Math.min(d.thickness??Math.round(d.thicknessRatio*a),a),_=-(a-$)/2,W=i?0:_,j=i?_:0,X=c==="item",q=Math.ceil(F);let Q=r.enabled?r.interval.getSegments(o,q):void 0;const ue=d.fill??this.createLinearGradient(o,d.fills,d.fillMode),de=u.fill??(d.enabled&&u.fills.length===0?u.defaultFill:void 0)??this.createLinearGradient(o,u.fills,u.fillMode);if(Q==null&&X){const se=Math.min(...o.domain),ie=Math.max(...o.domain),le={value:n,segmentStart:se,segmentEnd:ie};if(d.enabled){const ce=Math.min(l,$/2,F/2)*1,be=i?ce:0,oe=i?0:ce;w.push({series:this,itemId:"value",datum:le,datumIndex:{type:0},type:0,x0:x+y-be-W,y0:D+b-oe-j,x1:x+E+be+W,y1:D+G+oe+j,clipX0:void 0,clipY0:void 0,clipX1:void 0,clipY1:void 0,topLeftCornerRadius:l,topRightCornerRadius:l,bottomRightCornerRadius:l,bottomLeftCornerRadius:l,fill:ue,horizontalInset:z,verticalInset:V})}const Me=Math.min(l,a/2,F/2)*1,De=i?Me:0,ge=i?0:Me;L.push({series:this,itemId:"scale",datum:le,datumIndex:{type:0},type:0,x0:x+y-De,y0:D+b-ge,x1:x+v+De,y1:D+C+ge,clipX0:void 0,clipY0:void 0,clipX1:void 0,clipY1:void 0,topLeftCornerRadius:l,topRightCornerRadius:l,bottomRightCornerRadius:l,bottomLeftCornerRadius:l,fill:de,horizontalInset:z,verticalInset:V})}else{Q??(Q=o.domain);const se=x+y-W,ie=D+b-j,le=x+E+W,ye=D+G+j;for(let Me=0;Me<Q.length-1;Me+=1){const De=Q[Me+0],ge=Q[Me+1],Ge={value:n,segmentStart:De,segmentEnd:ge},ce=Me===0,be=Me===Q.length-2,oe=o.convert(De),pe=o.convert(ge),we=X||ce?l:0,ze=X||be?l:0,je=i?we:ze,dt=ze,ct=i?ze:we,vt=we;d.enabled&&w.push({series:this,itemId:`value-${Me}`,datum:Ge,datumIndex:{type:0},type:0,x0:x+(i?oe:y),y0:D+(i?b:oe),x1:x+(i?pe:v),y1:D+(i?C:pe),clipX0:se,clipY0:ie,clipX1:le,clipY1:ye,topLeftCornerRadius:je,topRightCornerRadius:dt,bottomRightCornerRadius:ct,bottomLeftCornerRadius:vt,fill:ue,horizontalInset:z,verticalInset:V}),L.push({series:this,itemId:`scale-${Me}`,datum:Ge,datumIndex:{type:0},type:0,x0:x+(i?oe:y),y0:D+(i?b:oe),x1:x+(i?pe:v),y1:D+(i?C:pe),clipX0:void 0,clipY0:void 0,clipX1:void 0,clipY1:void 0,topLeftCornerRadius:je,topRightCornerRadius:dt,bottomRightCornerRadius:ct,bottomLeftCornerRadius:vt,fill:de,horizontalInset:z,verticalInset:V})}}h.enabled&&T.push(this.labelDatum(h,n));const te=i?Jye:eve;for(let se=0;se<A.length;se+=1){const ie=A[se],{value:le,text:ye,shape:Me,size:De,fill:ge,fillOpacity:Ge,stroke:ce,strokeWidth:be,strokeOpacity:oe,lineDash:pe,lineDashOffset:we}=ie,ze=this.getTargetPoint(ie),je=FB(ie.rotation+te[ie.placement]);M.push({series:this,itemId:`target-${se}`,midPoint:ze,datum:{value:le},datumIndex:{type:1,index:se},type:1,value:le,text:ye,x:ze.x,y:ze.y,shape:Me,size:De,rotation:je,fill:ge,fillOpacity:Ge,stroke:ce,strokeOpacity:oe,strokeWidth:be,lineDash:pe,lineDashOffset:we,label:this.getTargetLabel(ie)})}return{itemId:e,nodeData:w,tickData:k,targetData:M,labelData:T,scaleData:L}}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}){const{datumSelection:t,labelSelection:i,targetSelection:o,targetLabelSelection:s,scaleSelection:n,highlightTargetSelection:r,tickSelection:a}=this;this.seriesRect=e??hd.NaN;const l=this.checkResize(e);this.updateSelections(l),this.contentGroup.visible=this.visible,this.contentGroup.opacity=this.getOpacity();const c=this.contextNodeData?.nodeData??[],d=this.contextNodeData?.labelData??[],u=this.contextNodeData?.targetData??[],h=this.contextNodeData?.scaleData??[],p=this.contextNodeData?.tickData??[],g=this.highlightDatum(this.ctx.highlightManager.getActiveHighlight());this.scaleSelection=this.updateScaleSelection({scaleData:h,scaleSelection:n}),this.updateScaleNodes({scaleSelection:n}),this.targetSelection=this.updateTargetSelection({targetData:u,targetSelection:o}),this.updateTargetNodes({targetSelection:o,isHighlight:!1}),this.targetLabelSelection=this.updateTargetLabelSelection({targetData:u,targetLabelSelection:s}),this.updateTargetLabelNodes({targetLabelSelection:s}),this.datumSelection=this.updateDatumSelection({nodeData:c,datumSelection:t}),this.updateDatumNodes({datumSelection:t}),this.labelSelection=this.updateLabelSelection({labelData:d,labelSelection:i}),this.updateLabelNodes({labelSelection:i}),this.highlightTargetSelection=this.updateTargetSelection({targetData:g!=null?[g]:[],targetSelection:r}),this.updateTargetNodes({targetSelection:r,isHighlight:!0}),this.tickSelection=this.updateTickSelection({tickData:p,tickSelection:a}),this.updateTickNodes({tickSelection:a}),l&&this.animationState.transition("resize"),this.animationState.transition("update")}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>EB(e.nodeData.length,t.itemId))}updateDatumNodes(e){const{datumSelection:t}=e,{ctx:i,properties:o}=this,{bar:s}=o,{fillOpacity:n,stroke:r,strokeOpacity:a,lineDash:l,lineDashOffset:c}=s,d=s.strokeWidth,u=i.animationManager.isSkipped(),h=this.getShapeFillBBox();t.each((p,g)=>{const{topLeftCornerRadius:f,topRightCornerRadius:y,bottomRightCornerRadius:v,bottomLeftCornerRadius:b,fill:C}=g;p.fill=C,p.fillBBox=h,p.fillOpacity=n,p.stroke=r,p.strokeOpacity=a,p.strokeWidth=d,p.lineDash=l,p.lineDashOffset=c,p.topLeftCornerRadius=f,p.topRightCornerRadius=y,p.bottomRightCornerRadius=v,p.bottomLeftCornerRadius=b,p.pointerEvents=this.properties.bar.enabled?R.PointerEvents.All:R.PointerEvents.None,(u||p.previousDatum==null)&&p.setProperties(oS(p,g))}),this.datumUnion.update(t,this.itemGroup,R.Rect,(p,g,f)=>{p.pointerEvents=R.PointerEvents.None,p.clipBBox??(p.clipBBox=new hd(NaN,NaN,NaN,NaN)),p.x=g.x,p.y=g.y,p.clipBBox.x=g.clipBBox?.x??g.x,p.clipBBox.y=g.clipBBox?.y??g.y,this.horizontal?(p.height=p.clipBBox.height=f.height,p.width=f===g?f.width:f.x+f.width,p.clipBBox.width=p.width-(f.width-(f.clipBBox?.width??f.width)),p.topLeftCornerRadius=g.topLeftCornerRadius,p.bottomLeftCornerRadius=g.bottomLeftCornerRadius,p.topRightCornerRadius=f.topRightCornerRadius,p.bottomRightCornerRadius=f.bottomRightCornerRadius):(p.width=p.clipBBox.width=f.width,p.height=f===g?f.height:f.x+f.height,p.clipBBox.height=p.height-(f.height-(f.clipBBox?.height??f.height)),p.topLeftCornerRadius=g.topLeftCornerRadius,p.topRightCornerRadius=g.topRightCornerRadius,p.bottomLeftCornerRadius=f.bottomLeftCornerRadius,p.bottomRightCornerRadius=f.bottomRightCornerRadius)})}updateScaleSelection(e){return e.scaleSelection.update(e.scaleData,void 0,t=>EB(e.scaleData.length,t.itemId))}updateScaleNodes(e){const{scaleSelection:t}=e,{scale:i}=this.properties,{fillOpacity:o,stroke:s,strokeOpacity:n,strokeWidth:r,lineDash:a,lineDashOffset:l}=i,c=this.getShapeFillBBox();t.each((d,u)=>{const{topLeftCornerRadius:h,topRightCornerRadius:p,bottomRightCornerRadius:g,bottomLeftCornerRadius:f,fill:y}=u;d.fill=y,d.fillBBox=c,d.fillOpacity=o,d.stroke=s,d.strokeOpacity=n,d.strokeWidth=r,d.lineDash=a,d.lineDashOffset=l,d.topLeftCornerRadius=h,d.topRightCornerRadius=p,d.bottomRightCornerRadius=g,d.bottomLeftCornerRadius=f,d.setProperties(oS(d,u))})}updateTargetSelection(e){return e.targetSelection.update(e.targetData,void 0,t=>t.itemId)}updateTargetNodes(e){const{targetSelection:t,isHighlight:i}=e;t.each((o,s)=>{const{x:n,y:r,shape:a,size:l,rotation:c,fill:d,fillOpacity:u,stroke:h,strokeOpacity:p,strokeWidth:g,lineDash:f,lineDashOffset:y}=s,v=this.getHighlightStyle(i,s.datumIndex),b=qye(v,{fill:d,fillOpacity:u,stroke:h,strokeOpacity:p,strokeWidth:g,lineDash:f,lineDashOffset:y,opacity:1});Qye(o,b),o.size=l,o.shape=a==="line"?H7:a,o.translationX=n,o.translationY=r,o.rotation=c})}updateTargetLabelSelection(e){return e.targetLabelSelection.update(e.targetData)}updateTargetLabelNodes(e){const{targetLabelSelection:t}=e;t.each((i,o)=>{const{x:s,y:n,text:r}=o,{offsetX:a,offsetY:l,fill:c,fontStyle:d,fontWeight:u,fontSize:h,fontFamily:p,textAlign:g,textBaseline:f}=o.label;i.visible=!0,i.x=s+a,i.y=n+l,i.text=r,i.fill=c,i.fontStyle=d,i.fontWeight=u,i.fontSize=h,i.fontFamily=p,i.textAlign=g,i.textBaseline=f})}updateTickSelection(e){return e.tickSelection.update(e.tickData,void 0,t=>t.tickId)}updateTickNodes(e){const{gaugeRect:t,properties:i}=this,o=i.defaultScale,{enabled:s,color:n,fontFamily:r=o.label.fontFamily,fontSize:a=o.label.fontSize,fontStyle:l,fontWeight:c=o.label.fontWeight,spacing:d}=i.scale.label;let{placement:u}=i.scale.label;const h=FB(i.scale.label.rotation??0);let p,g,f,y;this.horizontal?(u??(u="after"),p="center",g=u==="before"?"bottom":"top",y=this.originY+t.y+(u==="before"?-d:t.height+d)):(u??(u="before"),p=u==="before"?"end":"start",g="middle",f=this.originX+t.x+(u==="before"?-d:t.width+d)),e.tickSelection.each((v,b)=>{if(!s){v.visible=!1;return}const C=f??b.translation,x=y??b.translation;v.visible=!0,v.text=b.tickLabel,v.fill=n,v.fontFamily=r,v.fontSize=a,v.fontStyle=l,v.fontWeight=c,v.textBaseline=g,v.textAlign=p,v.x=C,v.y=x,v.rotationCenterX=C,v.rotationCenterY=x,v.rotation=h})}updateLabelSelection(e){return e.labelSelection.update(e.labelData,void 0,t=>"primary")}updateLabelNodes(e){const{labelSelection:t}=e,i=this.ctx.animationManager.isSkipped();t.each((o,s)=>{o.fill=s.fill,o.fontStyle=s.fontStyle,o.fontWeight=s.fontWeight,o.fontFamily=s.fontFamily}),(i||this.labelsHaveExplicitText())&&this.formatLabelText()}labelsHaveExplicitText(){for(const{datum:e}of this.labelSelection)if(e.text==null)return!1;return!0}formatLabelText(e){const{labelSelection:t,horizontal:i,scale:o,seriesRect:s,gaugeRect:n}=this,{x:r,y:a,width:l,height:c}=n,d=e?.label??this.properties.value;let u;if(i){const g=o.convert(d);u=new hd(r,a,g-r,c)}else{const g=o.convert(d);u=new hd(r,g,l,c-g)}const h={seriesRect:s,gaugeRect:n,barRect:u},{margin:p}=this.properties;Bye(this,this.ctx,t,{padding:p,horizontal:i},h,e)}resetAllAnimation(){this.ctx.animationManager.stopByAnimationGroupId(this.id),Gye([this.datumSelection],oS),this.formatLabelText()}resetAnimation(e){e==="initial"?this.animationState.transition("reset"):e==="ready"&&this.animationState.transition("skip")}animateLabelText(e={}){const{animationManager:t}=this.ctx;let i=0,o=0;if(this.labelSelection.each((s,n)=>{s.opacity=1,i=s.previousDatum?.value??e.from??n.value,o=n.value}),!this.labelsHaveExplicitText())if(i===o)this.formatLabelText({label:o});else{const s=`${this.id}_labels`;t.animate({id:s,groupId:"label",from:{label:i},to:{label:o},phase:e.phase??"update",ease:Kye.easeOut,onUpdate:n=>this.formatLabelText(n),onStop:()=>this.formatLabelText({label:o})})}}animateEmptyUpdateReady(){const{animationManager:e}=this.ctx,{node:t}=LB(!0,this.horizontal);bk(this.id,"node",e,[this.datumSelection],t,(i,o)=>o.itemId),bk(this.id,"label",e,[this.labelSelection],V7,()=>"primary"),this.animateLabelText({from:0,phase:"initial"})}animateWaitingUpdateReady(){const{animationManager:e}=this.ctx,{node:t}=LB(!1,this.horizontal);bk(this.id,"node",e,[this.datumSelection],t,(i,o)=>o.itemId),this.animateLabelText()}animateReadyResize(){this.resetAllAnimation()}getSeriesDomain(){return[0,1]}dataCount(){return NaN}getSeriesRange(e,t){return[NaN,NaN]}getLegendData(){return[]}getTooltipContent(e){const{id:t,properties:i}=this,{tooltip:o}=i;let s,n;if(e.type===0?(s=i.value,n=i.label.text):{value:s,text:n}=i.targets[e.index],s!=null)return this.formatTooltipWithContext(o,{data:[{label:n,fallbackLabel:"Value",value:this.formatLabel(s)}]},{seriesId:t,title:void 0,datum:void 0,value:s})}pickNodeClosestDatum(e){return $7(this,e)}pickFocus(e){return W7(this,e)}getCaptionText(){return this.formatLabel(this.properties.value)}getCategoryValue(e){}datumIndexForCategoryValue(e){}hasItemStylers(){return!1}};sM.className="LinearGaugeSeries";sM.type="linear-gauge";var ive={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["standalone"],identifier:"linear-gauge",moduleFactory:e=>new sM(e),themeTemplate:{minWidth:200,minHeight:200,tooltip:{enabled:!1},series:{thickness:50,defaultColorRange:{$if:[{$eq:[{$palette:"type"},"inbuilt"]},{$interpolate:[{$palette:"secondDivergingColors"},5]},R.SAFE_RANGE2_OPERATION]},scale:{defaultFill:{$path:["/1",{$palette:"fill"},{$palette:"hierarchyColors"}]},stroke:{$path:["/2",R.SAFE_STROKE_FILL_OPERATION,{$palette:"hierarchyColors"}]},strokeWidth:{$isUserOption:["./stroke",2,0]},label:{spacing:11}},bar:{strokeWidth:{$isUserOption:["./stroke",2,0]}},segmentation:{enabled:!1,interval:{},spacing:1},defaultTarget:{fill:{$ref:"foregroundColor"},stroke:{$ref:"foregroundColor"},size:10,shape:"triangle",placement:"after",spacing:5,label:{enabled:!0,fontWeight:{$ref:"fontWeight"},fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},color:{$ref:"textColor"},spacing:5}},defaultScale:{label:{fontWeight:{$ref:"fontWeight"},fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},color:{$ref:"textColor"}}},label:{...R.LABEL_BOXING_DEFAULTS,enabled:!1,placement:"inside-start",fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},fontSize:{$rem:2},minimumFontSize:R.FONT_SIZE.SMALL,spacing:18,color:{$ref:"chartBackgroundColor"}},margin:4,tooltip:{range:{$path:["/tooltip/range",10]}}}}},ove={type:"series",name:"linear-gauge",chartType:"standalone",enterprise:!0,options:R.linearGaugeSeriesOptionsDef,create:e=>new sM(e)},jb={zoom:{axes:"xy",anchorPointX:"pointer",anchorPointY:"pointer",buttons:{anchorPointX:"middle",anchorPointY:"middle"}},legend:{enabled:!1},gradientLegend:{enabled:!1,...R.LEGEND_CONTAINER_THEME}};function Rs(e){const t=R.deepClone(e);return R.jsonWalk(t,i=>{typeof i=="object"&&"$palette"in i&&(i.$mapPalette=i.$palette,delete i.$palette)}),t}var sve=1e-9;function Y7(e,t,i,o){const[s,n]=e,[r,a]=t,l=r-s,c=a-n,d=l*l+c*c;let u,h;if(Math.abs(d)<sve)u=s,h=n;else{let f=((i-s)*l+(o-n)*c)/d;f=Math.max(0,Math.min(1,f)),u=s+f*(r-s),h=n+f*(a-n)}const p=i-u,g=o-h;return p*p+g*g}function BB(e,t,i){let o=1/0,s=e[e.length-1];for(const n of e)o=Math.min(o,Y7(s,n,t,i)),s=n;return Math.sqrt(o)}function YI(e){let[t,i]=e[0],o=0;for(let s=1;s<e.length;s+=1){const[n,r]=e[s],a=Math.hypot(n-t,r-i);o+=a,t=n,i=r}return o}function gx(e){if(e.length===0)return;const t=YI(e)/2;let[i,o]=e[0],s=0;for(let n=1;n<e.length;n+=1){const[r,a]=e[n],l=Math.hypot(r-i,a-o),c=s+l;if(c>t){const d=(t-s)/l,u=[i+(r-i)*d,o+(a-o)*d],h=Math.atan2(a-o,r-i);return{point:u,angle:h}}s=c,i=r,o=a}}var{LonLatBBox:nve}=R;function wh(e,t){return e.forEach(i=>{const[o,s]=i;t=nve.extend(t,o,s,o,s)}),t}function rve(e){if(e.length===0)return;let t=0,i=0,o=0,[s,n]=e[e.length-1];for(const[r,a]of e){const l=s*a-r*n;o+=l,t+=(s+r)*l,i+=(n+a)*l,s=r,n=a}return o*=3,[t/o,i/o]}function fx(e,t,i){let o=!1,s=1/0;for(const n of e){let r=n[n.length-1],[a,l]=r;for(const c of n){const[d,u]=c;u>i!=l>i&&t<(a-d)*(i-u)/(l-u)+d&&(o=!o),s=Math.min(s,Y7(r,c,t,i)),r=c,a=d,l=u}}return(o?-1:1)*Math.sqrt(s)}var{Path:ave,ExtendedPath2D:lve,BBox:cve,SceneChangeDetection:dve,SceneObjectChangeDetection:uve,objectsEqual:hve}=R,rm=class extends ave{constructor(){super(...arguments),this.projectedGeometry=void 0,this.renderMode=3,this.strokePath=new lve}computeBBox(){return(this.dirtyPath||this.isDirtyPath())&&(this.updatePath(),this.dirtyPath=!1),this.bbox?.clone()}updatePath(){const{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){const{projectedGeometry:i}=this;return i==null||!this.getBBox().containsPoint(e,t)?!1:this.geometryDistance(i,e,t)<=0}distanceSquared(e,t){const{projectedGeometry:i}=this;if(i==null)return 1/0;const o=this.geometryDistance(i,e,t);return o>0?o*o:0}geometryDistance(e,t,i){const{renderMode:o,strokeWidth:s}=this,n=(o&1)!==0,r=(o&2)!==0,a=Math.max(s/2,1)+1;switch(e.type){case"GeometryCollection":return e.geometries.reduce((l,c)=>Math.min(l,this.geometryDistance(c,t,i)),1/0);case"MultiPolygon":return n?e.coordinates.reduce((l,c)=>Math.min(l,Math.max(fx(c,t,i),0)),1/0):1/0;case"Polygon":return n?Math.max(fx(e.coordinates,t,i),0):1/0;case"MultiLineString":return r?e.coordinates.reduce((l,c)=>Math.min(l,Math.max(BB(c,t,i)-a,0)),1/0):1/0;case"LineString":return r?Math.max(BB(e.coordinates,t,i)-a,0):1/0;case"MultiPoint":case"Point":default:return 1/0}}drawGeometry(e,t){const{renderMode:i,path:o,strokePath:s}=this,n=(i&1)!==0,r=(i&2)!==0;switch(e.type){case"GeometryCollection":e.geometries.forEach(a=>{t=this.drawGeometry(a,t)});break;case"MultiPolygon":n&&e.coordinates.forEach(a=>{t=this.drawPolygon(o,a,t)});break;case"Polygon":n&&(t=this.drawPolygon(o,e.coordinates,t));break;case"LineString":r&&(t=this.drawLineString(s,e.coordinates,t,!1));break;case"MultiLineString":r&&e.coordinates.forEach(a=>{t=this.drawLineString(s,a,t,!1)});break}return t}drawPolygon(e,t,i){if(t.length<1)return i;i=this.drawLineString(e,t[0],i,!0);for(let o=1;o<t.length;o+=1){const s=t[o];this.drawLineString(e,s,void 0,!0)}return i}drawLineString(e,t,i,o){if(t.length<2)return i;const s=o?t.length-1:t.length;for(let n=0;n<s;n+=1){const[r,a]=t[n];if(n===0?e.moveTo(r,a):e.lineTo(r,a),i==null)i=new cve(r,a,0,0);else{const{x:l,y:c}=i,d=l+i.width,u=c+i.height;i.x=Math.min(l,r),i.y=Math.min(c,a),i.width=Math.max(d,r)-i.x,i.height=Math.max(u,a)-i.y}}return o&&e.closePath(),i}};S([uve({equals:hve})],rm.prototype,"projectedGeometry");S([dve()],rm.prototype,"renderMode");var{LonLatBBox:Ck}=R;function am(e,t){if(e.bbox!=null){const[i,o,s,n]=e.bbox;return t=Ck.extend(t,i,o,s,n),t}switch(e.type){case"GeometryCollection":e.geometries.forEach(i=>{t=am(i,t)});break;case"MultiPolygon":e.coordinates.forEach(i=>{i.length>0&&(t=wh(i[0],t))});break;case"Polygon":e.coordinates.length>0&&(t=wh(e.coordinates[0],t));break;case"MultiLineString":e.coordinates.forEach(i=>{t=wh(i,t)});break;case"LineString":t=wh(e.coordinates,t);break;case"MultiPoint":e.coordinates.forEach(i=>{const[o,s]=i;t=Ck.extend(t,o,s,o,s)});break;case"Point":{const[i,o]=e.coordinates;t=Ck.extend(t,i,o,i,o);break}}return t}function mx(e){switch(e.type){case"GeometryCollection":{let t,i;return e.geometries.forEach(o=>{const s=mx(o);if(s==null)return;const n=wh(s[0],void 0);if(n==null)return;const r=Math.abs(n.lat1-n.lat0)*Math.abs(n.lon1-n.lon0);(t==null||r>t)&&(t=r,i=s)}),i}case"MultiPolygon":{let t,i;return e.coordinates.forEach(o=>{const s=wh(o[0],void 0);if(s==null)return;const n=Math.abs(s.lat1-s.lat0)*Math.abs(s.lon1-s.lon0);(t==null||n>t)&&(t=n,i=o)}),i}case"Polygon":return e.coordinates;case"MultiLineString":case"LineString":case"MultiPoint":case"Point":return}}function yx(e){switch(e.type){case"GeometryCollection":{let t,i;return e.geometries.forEach(o=>{const s=yx(o);if(s==null)return;const n=YI(s);n!=null&&(t==null||n>t)&&(t=n,i=s)}),i}case"MultiLineString":{let t=0,i;return e.coordinates.forEach(o=>{const s=YI(o);s>t&&(t=s,i=o)}),i}case"LineString":return e.coordinates;case"MultiPolygon":case"Polygon":case"MultiPoint":case"Point":return}}function uE(e,t){if(e==null)return!1;switch(e.type){case"GeometryCollection":return e.geometries.some(i=>uE(i,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 ru(e,t){switch(e.type){case"GeometryCollection":return{type:"GeometryCollection",geometries:e.geometries.map(i=>ru(i,t))};case"Polygon":return{type:"Polygon",coordinates:XI(e.coordinates,t)};case"MultiPolygon":return{type:"MultiPolygon",coordinates:pve(e.coordinates,t)};case"MultiLineString":return{type:"MultiLineString",coordinates:XI(e.coordinates,t)};case"LineString":return{type:"LineString",coordinates:ZI(e.coordinates,t)};case"MultiPoint":return{type:"MultiPoint",coordinates:ZI(e.coordinates,t)};case"Point":return{type:"Point",coordinates:t.convert(e.coordinates)}}}function pve(e,t){return e.map(i=>XI(i,t))}function XI(e,t){return e.map(i=>ZI(i,t))}function ZI(e,t){return e.map(i=>t.convert(i))}function gve(){return{fromFn:(i,o,s)=>s==="removed"?{scalingX:1,scalingY:1}:i.previousDatum==null?{scalingX:0,scalingY:0}:{scalingX:i.scalingX,scalingY:i.scalingY},toFn:(i,o,s)=>s==="removed"?{scalingX:0,scalingY:0}:{scalingX:1,scalingY:1}}}function X7(e,t){const i=e.contextNodeData?.nodeData[t.datumIndex];if(i!==void 0){for(const o of e.datumSelection.nodes())if(o.datum===i)return o}}(class extends R.SeriesProperties{});var Ub=class extends R.DataModelSeries{addChartEventListeners(){this.cleanup.register(this.ctx.eventsHub.on("legend:item-click",e=>{this.onLegendItemClick(e)}),this.ctx.eventsHub.on("legend:item-double-click",e=>{this.onLegendItemDoubleClick(e)}))}getSeriesDomain(){return[NaN,NaN]}getSeriesRange(e,t){return[NaN,NaN]}},{Property:zi,SeriesProperties:fve,makeSeriesTooltip:mve,Label:yve}=R,Ci=class extends fve{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 yve,this.tooltip=mve()}};S([zi],Ci.prototype,"topology");S([zi],Ci.prototype,"title");S([zi],Ci.prototype,"legendItemName");S([zi],Ci.prototype,"idKey");S([zi],Ci.prototype,"topologyIdKey");S([zi],Ci.prototype,"idName");S([zi],Ci.prototype,"labelKey");S([zi],Ci.prototype,"labelName");S([zi],Ci.prototype,"sizeKey");S([zi],Ci.prototype,"sizeName");S([zi],Ci.prototype,"colorKey");S([zi],Ci.prototype,"colorName");S([zi],Ci.prototype,"sizeDomain");S([zi],Ci.prototype,"colorRange");S([zi],Ci.prototype,"maxStrokeWidth");S([zi],Ci.prototype,"stroke");S([zi],Ci.prototype,"strokeOpacity");S([zi],Ci.prototype,"strokeWidth");S([zi],Ci.prototype,"lineDash");S([zi],Ci.prototype,"lineDashOffset");S([zi],Ci.prototype,"itemStyler");S([zi],Ci.prototype,"label");S([zi],Ci.prototype,"tooltip");var{getMissCount:vve,getLabelStyles:bve,createDatumId:GB,SeriesNodePickMode:zB,valueProperty:Om,CachedTextMeasurerPool:Cve,ColorScale:Sve,LinearScale:xve,Selection:Sk,Text:wve,Transformable:Dve}=R,nM=class extends Ub{constructor(e){super({moduleCtx:e,categoryKey:void 0,propertyKeys:{size:["colorKey"],color:["colorKey"],label:["labelKey"]},propertyNames:{size:["sizeName"],color:["colorName"],label:["labelName"]},pickModes:[zB.EXACT_SHAPE_MATCH,zB.NEAREST_NODE],usesPlacedLabels:!0}),this.properties=new Ci,this._chartTopology=void 0,this.colorScale=new Sve,this.sizeScale=new xve,this.datumSelection=Sk.select(this.contentGroup,()=>this.nodeFactory()),this.labelSelection=Sk.select(this.labelGroup,wve),this.highlightDatumSelection=Sk.select(this.highlightGroup,()=>this.nodeFactory()),this._previousDatumMidPoint=void 0}getNodeData(){return this.contextNodeData?.nodeData}get topology(){return this.properties.topology??this._chartTopology}get hasData(){return super.hasData&&this.topology!=null}renderToOffscreenCanvas(){return!0}setZIndex(e){return super.setZIndex(e),this.contentGroup.zIndex=[1,e],this.highlightGroup.zIndex=[2,e],!0}setChartTopology(e){this._chartTopology=e,this.topology===e&&(this.nodeDataRefresh=!0)}isLabelEnabled(){return this.properties.labelKey!=null&&this.properties.label.enabled}nodeFactory(){const e=new rm;return e.renderMode=2,e.lineJoin="round",e.lineCap="round",e}async processData(e){if(this.data==null)return;const{data:t,topology:i,sizeScale:o,colorScale:s}=this,{topologyIdKey:n,idKey:r,sizeKey:a,colorKey:l,labelKey:c,sizeDomain:d,colorRange:u}=this.properties,h=new Map;i?.features.forEach(C=>{const x=C.properties?.[n];x==null||!uE(C.geometry,2)||h.set(x,C)});const p=this.sizeScale.type,g=this.colorScale.type,f=this.scale?.type,{dataModel:y,processedData:v}=await this.requestDataModel(e,t,{props:[Om(r,f,{id:"idValue",includeProperty:!1}),Om(r,f,{id:"featureValue",includeProperty:!1,processor:()=>C=>h.get(C)}),...c!=null?[Om(c,"category",{id:"labelValue"})]:[],...a!=null?[Om(a,p,{id:"sizeValue"})]:[],...l!=null?[Om(l,g,{id:"colorValue"})]:[]]}),b=y.resolveColumnById(this,"featureValue",v);if(this.topologyBounds=b.reduce((C,x)=>{const D=x?.geometry;return D==null?C:am(D,C)},void 0),a!=null){const C=y.resolveProcessedDataIndexById(this,"sizeValue"),x=v.domain.values[C]??[];o.domain=d??x}if(u!=null&&this.isColorScaleValid()){const C=y.resolveProcessedDataIndexById(this,"colorValue");s.domain=v.domain.values[C],s.range=u,s.update()}i==null&&he.warnOnce("no topology was provided for [MapLineSeries]; nothing will be rendered.")}isColorScaleValid(){const{colorKey:e}=this.properties;if(!e)return!1;const{dataModel:t,processedData:i}=this;if(!t||!i)return!1;const o=t.resolveProcessedDataIndexById(this,"colorValue"),s=i.input.count,n=vve(this,i.defs.values[o].missing);return!(s===0||s===n)}getLabelDatum(e,t,i,o){if(t==null||i==null)return;const s=yx(i);if(s==null)return;const{idKey:n,idName:r,sizeKey:a,sizeName:l,colorKey:c,colorName:d,labelKey:u,labelName:h,label:p}=this.properties;if(u==null||!p.enabled)return;const g=this.getLabelText(t,e,u,"label",[],p,{value:t,datum:e,idKey:n,idName:r,sizeKey:a,sizeName:l,colorKey:c,colorName:d,labelKey:u,labelName:h});if(g==null)return;const f=o.measureText(String(g)),y=gx(s);if(y==null)return;const[v,b]=y.point,{width:C,height:x}=f;return{point:{x:v,y:b,size:0},label:{width:C,height:x,text:g},anchor:void 0,placement:void 0}}createNodeData(){const{id:e,dataModel:t,processedData:i,sizeScale:o,properties:s,scale:n}=this,{idKey:r,sizeKey:a,colorKey:l,labelKey:c,label:d,legendItemName:u}=s;if(t==null||i==null)return;const h=t.resolveColumnById(this,"idValue",i),p=t.resolveColumnById(this,"featureValue",i),g=c!=null?t.resolveColumnById(this,"labelValue",i):void 0,f=a!=null?t.resolveColumnById(this,"sizeValue",i):void 0,y=l!=null?t.resolveColumnById(this,"colorValue",i):void 0,v=s.maxStrokeWidth??s.strokeWidth;o.range=[Math.min(s.strokeWidth,v),v];const b=Cve.getMeasurer({font:d}),C=new Map;i.dataSources.get(this.id)?.forEach((M,T)=>{const L=h[T],N=p[T]?.geometry??void 0,O=N!=null&&n!=null?ru(N,n):void 0;L!=null&&O!=null&&C.set(L,O)});const x=[],D=[],k=[];(i.dataSources.get(this.id)??[]).forEach((M,T)=>{const L=h[T],N=y?.[T],O=f?.[T],F=g?.[T],E=C.get(L);E==null&&k.push(L);const G=this.getLabelDatum(M,F,E,b);G!=null&&D.push(G),x.push({series:this,itemId:r,datum:M,datumIndex:T,idValue:L,labelValue:F,colorValue:N,sizeValue:O,projectedGeometry:E,legendItemName:u})});const w=10;if(k.length>w){const M=k.length-w;k.length=w,k.push(`(+${M} more)`)}return k.length>0&&he.warnOnce("some data items do not have matches in the provided topology",k),{itemId:e,nodeData:x,labelData:D}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update(){const{datumSelection:e,highlightDatumSelection:t}=this;this.updateSelections(),this.contentGroup.visible=this.visible,this.labelGroup.visible=this.visible;let i=this.ctx.highlightManager?.getActiveHighlight();const{legendItemName:o}=this.properties,s=o!=null&&i?.datum==null&&o===i?.legendItemName;i!=null&&(i.series!==this&&!s||i.datum==null)&&(i=void 0);const n=this.contextNodeData?.nodeData??[];this.datumSelection=this.updateDatumSelection({nodeData:n,datumSelection:e}),this.updateDatumNodes({datumSelection:e,isHighlight:!1}),this.highlightDatumSelection=this.updateDatumSelection({nodeData:i!=null?[i]:[],datumSelection:t}),this.updateDatumNodes({datumSelection:t,isHighlight:!0})}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>GB(t.idValue))}getItemBaseStyle(e,t){const{properties:i}=this,o=this.getHighlightStyle(e,t?.datumIndex);return{stroke:o?.stroke??i.stroke,strokeWidth:o?.strokeWidth??i.strokeWidth,strokeOpacity:o?.strokeOpacity??i.strokeOpacity,lineDash:o?.lineDash??i.lineDash,lineDashOffset:o?.lineDashOffset??i.lineDashOffset,opacity:o?.opacity??1}}getItemStyleOverrides(e,t,i,o,s,n,r){const{id:a,properties:l,colorScale:c,sizeScale:d}=this,{colorRange:u,itemStyler:h}=l;let p;if(!n&&i!=null&&(p??(p={}),p.stroke=this.isColorScaleValid()?c.convert(i):u?.[0]??l.stroke),o!=null&&(p??(p={}),p.strokeWidth=d.convert(o,{clamp:!0})),h!=null){const g=this.cachedDatumCallback(GB(e,n?"highlight":"node"),()=>{const f=this.ctx.highlightManager?.getActiveHighlight(),y=this.getHighlightStateString(f,n,r);return this.callWithContext(h,{seriesId:a,datum:t,highlighted:n,highlightState:y,...s,...p})});p??(p={}),Object.assign(p,g)}return p}updateDatumNodes(e){const{datumSelection:t,isHighlight:i}=e;t.each((o,s)=>{const{datum:n,datumIndex:r,colorValue:a,sizeValue:l,projectedGeometry:c}=s;if(c==null){o.visible=!1,o.projectedGeometry=void 0;return}const d=this.getItemBaseStyle(i,s),u=this.getItemStyleOverrides(String(r),n,a,l,d,i,r);o.visible=!0,o.projectedGeometry=c,o.stroke=u?.stroke??d.stroke,o.strokeWidth=u?.strokeWidth??d.strokeWidth,o.strokeOpacity=u?.strokeOpacity??d.strokeOpacity,o.lineDash=u?.lineDash??d.lineDash,o.lineDashOffset=u?.lineDashOffset??d.lineDashOffset})}updatePlacedLabelData(e){this.labelSelection=this.labelSelection.update(e,t=>{t.pointerEvents=R.PointerEvents.None}),this.updateLabelNodes({labelSelection:this.labelSelection})}updateLabelNodes(e){e.labelSelection.each((t,{x:i,y:o,width:s,height:n,text:r},a)=>{const l=bve(this,void 0,this.properties,this.properties.label),{color:c,fontStyle:d,fontWeight:u,fontSize:h,fontFamily:p}=l;t.visible=!0,t.x=i+s/2,t.y=o+n/2,t.text=r,t.fill=c,t.fontStyle=d,t.fontWeight=u,t.fontSize=h,t.fontFamily=p,t.textAlign="center",t.textBaseline="middle",t.fillOpacity=this.getHighlightStyle(!1,a).opacity??1,t.setBoxing(l)})}resetAnimation(){}getLabelData(){return this.isLabelEnabled()?this.contextNodeData?.labelData??[]:[]}pickNodeClosestDatum({x:e,y:t}){let i=1/0,o;return this.datumSelection.each((s,n)=>{const r=s.distanceSquared(e,t);r<i&&(i=r,o=n)}),o!=null?{datum:o,distance:Math.sqrt(i)}:void 0}datumMidPoint(e){const{_previousDatumMidPoint:t}=this;if(t?.datum===e)return t.point;const i=e.projectedGeometry,o=i!=null?yx(i):void 0,s=o!=null?gx(o)?.point:void 0,n=s!=null?{x:s[0],y:s[1]}:void 0;return this._previousDatumMidPoint={datum:e,point:n},n}legendItemSymbol(e){const{dataModel:t,processedData:i,properties:o}=this,{strokeWidth:s,strokeOpacity:n,lineDash:r}=o;let{stroke:a}=o;if(e!=null&&this.isColorScaleValid()){const c=t.resolveColumnById(this,"colorValue",i)[e];a=this.colorScale.convert(c)}return{marker:{fill:void 0,fillOpacity:0,stroke:void 0,strokeWidth:0,strokeOpacity:0,lineDash:[0],lineDashOffset:0,enabled:!1},line:{stroke:a,strokeWidth:s,strokeOpacity:n,lineDash:r}}}getLegendData(e){const{processedData:t,dataModel:i}=this;if(t==null||i==null)return[];const{id:o,visible:s}=this,{title:n,legendItemName:r,idKey:a,idName:l,colorKey:c,colorRange:d,showInLegend:u}=this.properties;if(e==="gradient"&&c!=null&&d!=null){const h=t.domain.values[i.resolveProcessedDataIndexById(this,"colorValue")];return[{legendType:"gradient",enabled:s,seriesId:o,series:this.getFormatterContext("color"),colorRange:d,colorDomain:h}]}else return e==="category"?[{legendType:"category",id:o,itemId:o,seriesId:o,enabled:s,label:{text:r??n??l??a},symbol:this.legendItemSymbol(),legendItemName:r,hideInLegend:!u}]:[]}getTooltipContent(e){const{id:t,dataModel:i,processedData:o,properties:s,ctx:{formatManager:n}}=this,{idKey:r,idName:a,colorKey:l,colorName:c,sizeKey:d,sizeName:u,labelKey:h,labelName:p,title:g,legendItemName:f,tooltip:y}=s;if(!i||!o)return;const v=o.dataSources.get(this.id)?.[e],b=i.resolveColumnById(this,"idValue",o),C=d!=null?i.resolveColumnById(this,"sizeValue",o)[e]:void 0,x=l!=null?i.resolveColumnById(this,"colorValue",o)[e]:void 0,D=[];if(this.isLabelEnabled()&&h!=null&&h!==r){const A=i.resolveColumnById(this,"labelValue",o)[e],w=n.format(this.callWithContext.bind(this),{type:"category",value:A,datum:v,seriesId:t,legendItemName:f,key:h,source:"tooltip",property:"label",domain:[],boundSeries:this.getFormatterContext("label")});D.push({label:p,fallbackLabel:h,value:w??A})}if(C!=null&&d!=null){const A=i.getDomain(this,"sizeValue","value",o),w=n.format(this.callWithContext.bind(this),{type:"number",value:C,datum:v,seriesId:t,legendItemName:f,key:d,source:"tooltip",property:"size",domain:A,boundSeries:this.getFormatterContext("size"),fractionDigits:void 0});D.push({label:u,fallbackLabel:d,value:w??String(C)})}if(x!=null&&l!=null){const A=i.getDomain(this,"colorValue","value",o),w=n.format(this.callWithContext.bind(this),{type:"number",value:x,datum:v,seriesId:t,legendItemName:f,key:l,source:"tooltip",property:"color",domain:A,boundSeries:this.getFormatterContext("color"),fractionDigits:void 0});D.push({label:c,fallbackLabel:l,value:w??String(x)})}const k=this.getItemBaseStyle(!1);return Object.assign(k,this.getItemStyleOverrides(String(e),e,x,C,k,!1,e)),this.formatTooltipWithContext(y,{heading:b[e],title:g??f,symbol:this.legendItemSymbol(e),data:D},{seriesId:t,datum:v,title:g,idKey:r,idName:a,colorKey:l,colorName:c,sizeKey:d,sizeName:u,labelKey:h,labelName:p,...k})}computeFocusBounds(e){const t=X7(this,e);return t?Dve.toCanvas(this.contentGroup,t.getBBox()):void 0}hasItemStylers(){return this.properties.itemStyler!=null}};nM.className="MapLineSeries";nM.type="map-line";var{commonSeriesOptionsDefs:Mve,mapLineSeriesThemeableOptionsDef:kve,without:Ave}=R,Z7={...Ave(Mve,["highlightStyle","highlight"]),...kve,type:ee(Ye("map-line")),idKey:ee(H),sizeKey:H,colorKey:H,labelKey:H,idName:H,sizeName:H,colorName:H,labelName:H,topology:mf,topologyIdKey:H,legendItemName:H,title:H};Z7.colorRange=Oe(_t(_e(ke),cu(1)));var Ive={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-line",moduleFactory:e=>new nM(e),themeTemplate:{...jb,series:{stroke:Rs(R.SAFE_STROKE_FILL_OPERATION),colorRange:{$if:[{$eq:[{$mapPalette:"type"},"inbuilt"]},{$mapPalette:"divergingColors"},Rs(R.SAFE_RANGE2_OPERATION)]},strokeWidth:1,maxStrokeWidth:3,lineDash:[0],lineDashOffset:0,label:{...R.LABEL_BOXING_DEFAULTS,enabled:!0,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"textColor"}},highlight:Rs(R.multiSeriesHighlightStyle(!1))},tooltip:{range:"exact"}}},Tve={type:"series",name:"map-line",chartType:"topology",enterprise:!0,options:Z7,create:e=>new nM(e)},{Property:Lp,SeriesProperties:Rve,makeSeriesTooltip:Lve}=R,Lu=class extends Rve{constructor(){super(...arguments),this.topology=void 0,this.stroke="black",this.strokeOpacity=1,this.strokeWidth=0,this.lineDash=[0],this.lineDashOffset=0,this.tooltip=Lve()}};S([Lp],Lu.prototype,"topology");S([Lp],Lu.prototype,"stroke");S([Lp],Lu.prototype,"strokeOpacity");S([Lp],Lu.prototype,"strokeWidth");S([Lp],Lu.prototype,"lineDash");S([Lp],Lu.prototype,"lineDashOffset");S([Lp],Lu.prototype,"tooltip");var{createDatumId:Pve,Group:Eve,Selection:Fve,PointerEvents:VB}=R,rM=class extends Ub{constructor(e){super({moduleCtx:e,categoryKey:void 0,pickModes:[]}),this.properties=new Lu,this._chartTopology=void 0,this.itemGroup=this.contentGroup.appendChild(new Eve({name:"itemGroup"})),this.datumSelection=Fve.select(this.itemGroup,()=>this.nodeFactory()),this.itemGroup.pointerEvents=VB.None}getNodeData(){return this.contextNodeData?.nodeData}get topology(){return this.properties.topology??this._chartTopology}get focusable(){return!1}setOptionsData(){}setChartData(){}get hasData(){return!1}renderToOffscreenCanvas(){return!0}setChartTopology(e){this._chartTopology=e,this.topology===e&&(this.nodeDataRefresh=!0)}setZIndex(e){return super.setZIndex(e),this.contentGroup.zIndex=[0,e,0],this.highlightGroup.zIndex=[0,e,1],!0}nodeFactory(){const e=new rm;return e.renderMode=2,e.lineJoin="round",e.lineCap="round",e.pointerEvents=VB.None,e}processData(){const{topology:e}=this;this.topologyBounds=e?.features.reduce((t,i)=>{const o=i.geometry;return o==null?t:am(o,t)},void 0),e==null&&he.warnOnce("no topology was provided for [MapShapeBackgroundSeries]; nothing will be rendered.")}createNodeData(){const{id:e,topology:t,scale:i}=this;if(t==null)return;const o=[],s=[];return t.features.forEach((n,r)=>{const{geometry:a}=n,l=a!=null&&i!=null?ru(a,i):void 0;l!=null&&o.push({series:this,itemId:r,datum:n,datumIndex:0,index:r,projectedGeometry:l})}),{itemId:e,nodeData:o,labelData:s}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update(){const{datumSelection:e}=this;this.updateSelections(),this.contentGroup.visible=this.visible,this.labelGroup.visible=this.visible;const{nodeData:t=[]}=this.contextNodeData??{};this.datumSelection=this.updateDatumSelection({nodeData:t,datumSelection:e}),this.updateDatumNodes({datumSelection:e})}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>Pve(t.index))}updateDatumNodes(e){const{properties:t}=this,{datumSelection:i}=e,{stroke:o,strokeOpacity:s,lineDash:n,lineDashOffset:r}=t,a=t.strokeWidth;i.each((l,c)=>{const{projectedGeometry:d}=c;if(d==null){l.visible=!1,l.projectedGeometry=void 0;return}l.visible=!0,l.projectedGeometry=d,l.stroke=o,l.strokeWidth=a,l.strokeOpacity=s,l.lineDash=n,l.lineDashOffset=r})}resetAnimation(){}getLegendData(){return[]}getTooltipContent(e){}computeFocusBounds(e){}hasItemStylers(){return!1}};rM.className="MapLineBackgroundSeries";rM.type="map-line-background";var{mapLineBackgroundSeriesThemeableOptionsDef:Nve}=R,Ove={...Nve,type:ee(Ye("map-line-background")),topology:mf},Bve={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-line-background",moduleFactory:e=>new rM(e),themeTemplate:{...jb,series:{stroke:{$path:["/1",{$mapPalette:"stroke"},{$mapPalette:"secondHierarchyColors"}]},strokeWidth:1,lineDash:[0],lineDashOffset:0}}},Gve={type:"series",name:"map-line-background",chartType:"topology",enterprise:!0,options:Ove,create:e=>new rM(e)};function q7(e,t,i){const o=wh(e[0],void 0);if(o==null)return;const s=(o.lon0+o.lon1)/2,n=(o.lat0+o.lat1)/2,r=Math.abs(o.lon1-o.lon0),a=Math.abs(o.lat1-o.lat0),l=rve(e[0]),[c,d]=l,u=-fx(e,c,d);let h;const p=(D,k)=>{const w=Math.max(k-u,0);return D-.5*w},g=(D,k,A)=>{const{distance:w,maxDistance:M}=i(e,D,k,A),T=Math.hypot(c-D,d-k),L=Math.min(Math.max(c,D-A/2),D+A/2),N=Math.min(Math.max(d,k-A/2),k+A/2),O=Math.hypot(c-L,d-N),F=p(w,T),E=p(M,O);return{distance:w,maxDistance:M,value:F,maxValue:E,x:D,y:k,stride:A}},f=(D,k,A,w)=>{const M=g(k,A,w);M.maxDistance>=0&&D.push(M)},y=Math.min(r,a)/2;let v={value:g(s,n,y),next:null};for(;v!=null;){const D=v.value,{distance:k,value:A,maxValue:w,x:M,y:T,stride:L}=D;if(v=v.next,k>0&&(h==null||A>h.value)&&(h=D),h!=null&&w-h.value<=t)continue;const N=L/2,O=[];f(O,M-N,T-N,N),f(O,M+N,T-N,N),f(O,M-N,T+N,N),f(O,M+N,T+N,N),O.sort(_B),v=bz(v,O,_B)}if(h==null)return;const{distance:b,x:C,y:x}=h;return{x:C,y:x,distance:b}}var _B=(e,t)=>t.maxValue-e.maxValue;function qI(e,t){const i=q7(e,t,(n,r,a,l)=>{const c=-fx(n,r,a),d=c+l*Math.SQRT2;return{distance:c,maxDistance:d}});if(i==null)return;const{x:o,y:s}=i;return[o,s]}function Q7(e,t){let i;switch(e.type){case"GeometryCollection":return e.geometries.flatMap(o=>Q7(o,t));case"MultiPoint":return e.coordinates;case"Point":return[e.coordinates];case"MultiPolygon":{const o=mx(e);i=o!=null?qI(o,t):void 0;break}case"Polygon":{const o=e.coordinates;i=o!=null?qI(o,t):void 0;break}case"MultiLineString":{const o=yx(e);i=o!=null?gx(o)?.point:void 0;break}case"LineString":{const o=e.coordinates;i=gx(o)?.point;break}}return i!=null?[i]:[]}var{BBox:zve}=R;function J7(e){if(!e)return;const{range:t}=e,i=t[0][0],o=t[0][1],s=t[1][0]-i,n=t[1][1]-o,r=new zve(i,o,s,n);return{series:r,axis:r}}var{FillGradientDefaults:Vve,FillPatternDefaults:_ve,FillImageDefaults:Hve,Property:It,SeriesProperties:$ve,makeSeriesTooltip:Wve,Label:jve}=R,e$=class extends jve{constructor(){super(...arguments),this.placement="bottom"}};S([It],e$.prototype,"placement");var Tt=class extends $ve{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.fillGradientDefaults=new Vve,this.fillPatternDefaults=new _ve,this.fillImageDefaults=new Hve,this.fillOpacity=1,this.stroke="black",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.label=new e$,this.tooltip=Wve()}getStyle(){const{size:e,shape:t,fill:i,fillOpacity:o,stroke:s,strokeWidth:n,strokeOpacity:r,lineDash:a,lineDashOffset:l}=this;return{size:e,shape:t,fill:i,fillOpacity:o,opacity:1,stroke:s,strokeWidth:n,strokeOpacity:r,lineDash:a,lineDashOffset:l}}};S([It],Tt.prototype,"topology");S([It],Tt.prototype,"title");S([It],Tt.prototype,"legendItemName");S([It],Tt.prototype,"idKey");S([It],Tt.prototype,"topologyIdKey");S([It],Tt.prototype,"idName");S([It],Tt.prototype,"latitudeKey");S([It],Tt.prototype,"latitudeName");S([It],Tt.prototype,"longitudeKey");S([It],Tt.prototype,"longitudeName");S([It],Tt.prototype,"labelKey");S([It],Tt.prototype,"labelName");S([It],Tt.prototype,"sizeKey");S([It],Tt.prototype,"sizeName");S([It],Tt.prototype,"colorKey");S([It],Tt.prototype,"colorName");S([It],Tt.prototype,"colorRange");S([It],Tt.prototype,"shape");S([It],Tt.prototype,"size");S([It],Tt.prototype,"maxSize");S([It],Tt.prototype,"sizeDomain");S([It],Tt.prototype,"fill");S([It],Tt.prototype,"fillGradientDefaults");S([It],Tt.prototype,"fillPatternDefaults");S([It],Tt.prototype,"fillImageDefaults");S([It],Tt.prototype,"fillOpacity");S([It],Tt.prototype,"stroke");S([It],Tt.prototype,"strokeWidth");S([It],Tt.prototype,"strokeOpacity");S([It],Tt.prototype,"lineDash");S([It],Tt.prototype,"lineDashOffset");S([It],Tt.prototype,"itemStyler");S([It],Tt.prototype,"label");S([It],Tt.prototype,"tooltip");var{CachedTextMeasurerPool:Uve,fromToMotion:Kve,StateMachine:Yve,getMissCount:Xve,createDatumId:HB,SeriesNodePickMode:$B,valueProperty:ih,computeMarkerFocusBounds:Zve,ColorScale:qve,LinearScale:Qve,Group:Jve,Selection:xk,Text:ebe,Marker:wk,applyShapeStyle:tbe,getShapeStyle:Dk,getLabelStyles:ibe,LonLatBBox:obe,mergeDefaults:WB}=R,aM=class extends Ub{constructor(e){super({moduleCtx:e,categoryKey:void 0,propertyKeys:{size:["colorKey"],color:["colorKey"],label:["labelKey"]},propertyNames:{size:["sizeName"],color:["colorName"],label:["labelName"]},pickModes:[$B.EXACT_SHAPE_MATCH,$B.NEAREST_NODE],usesPlacedLabels:!0}),this.properties=new Tt,this._chartTopology=void 0,this.colorScale=new qve,this.sizeScale=new Qve,this.markerGroup=this.contentGroup.appendChild(new Jve({name:"markerGroup"})),this.labelSelection=xk.select(this.labelGroup,ebe,!1),this.markerSelection=xk.select(this.markerGroup,wk,!1),this.highlightMarkerSelection=xk.select(this.highlightGroup,wk),this.animationState=new Yve("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(){return this.contextNodeData?.nodeData}get topology(){return this.properties.topology??this._chartTopology}get hasData(){const 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)}setZIndex(e){return super.setZIndex(e),this.contentGroup.zIndex=[3,e],this.highlightGroup.zIndex=[4,e],!0}isLabelEnabled(){return this.properties.labelKey!=null&&this.properties.label.enabled}async processData(e){if(this.data==null)return;const{data:t,topology:i,sizeScale:o,colorScale:s}=this,{topologyIdKey:n,idKey:r,latitudeKey:a,longitudeKey:l,sizeKey:c,colorKey:d,labelKey:u,sizeDomain:h,colorRange:p}=this.properties,g=new Map;i?.features.forEach(w=>{const M=w.properties?.[n];M!=null&&g.set(M,w)});const f=this.sizeScale.type,y=this.colorScale.type,v=this.scale?.type,b=a!=null&&l!=null,{dataModel:C,processedData:x}=await this.requestDataModel(e,t,{props:[...r!=null?[ih(r,v,{id:"idValue",includeProperty:!1}),ih(r,v,{id:"featureValue",includeProperty:!1,processor:()=>w=>g.get(w)})]:[],...b?[ih(a,v,{id:"latValue"}),ih(l,v,{id:"lonValue"})]:[],...u?[ih(u,"category",{id:"labelValue"})]:[],...c?[ih(c,f,{id:"sizeValue"})]:[],...d?[ih(d,y,{id:"colorValue"})]:[]]}),D=r!=null?C.resolveColumnById(this,"featureValue",x):void 0,k=b?C.resolveColumnById(this,"latValue",x):void 0,A=b?C.resolveColumnById(this,"lonValue",x):void 0;if(this.topologyBounds=x.dataSources.get(this.id)?.reduce((w,M,T)=>{const N=D?.[T]?.geometry;if(N!=null&&(w=am(N,w)),k!=null&&A!=null){const O=A[T],F=k[T];w=obe.extend(w,O,F,O,F)}return w},void 0),c!=null){const w=C.resolveProcessedDataIndexById(this,"sizeValue"),M=x.domain.values[w]??[];o.domain=h??M}if(p!=null&&this.isColorScaleValid()){const w=C.resolveProcessedDataIndexById(this,"colorValue");s.domain=x.domain.values[w],s.range=p,s.update()}this.animationState.transition("updateData")}isColorScaleValid(){const{colorKey:e}=this.properties;if(!e)return!1;const{dataModel:t,processedData:i}=this;if(!t||!i)return!1;const o=t.resolveProcessedDataIndexById(this,"colorValue"),s=i.input.count,n=Xve(this,i.defs.values[o].missing);return!(s===0||s===n)}getLabelDatum(e,t,i,o,s,n){if(t==null)return;const{idKey:r,idName:a,latitudeKey:l,latitudeName:c,longitudeKey:d,longitudeName:u,sizeKey:h,sizeName:p,colorKey:g,colorName:f,labelKey:y,labelName:v,label:b,shape:C}=this.properties;if(y==null||!b.enabled)return;const{placement:x}=b,D=this.getLabelText(t,e,y,"label",[],b,{value:t,datum:e,idKey:r,idName:a,latitudeKey:l,latitudeName:c,longitudeKey:d,longitudeName:u,sizeKey:h,sizeName:p,colorKey:g,colorName:f,labelKey:y,labelName:v});if(D==null)return;const{width:k,height:A}=n.measureText(String(D)),w=wk.anchor(C);return{point:{x:i,y:o,size:s},label:{width:k,height:A,text:D},anchor:w,placement:x}}createNodeData(){const{id:e,dataModel:t,processedData:i,sizeScale:o,properties:s,scale:n}=this,{idKey:r,latitudeKey:a,longitudeKey:l,sizeKey:c,colorKey:d,labelKey:u,label:h,legendItemName:p}=s;if(t==null||i==null||n==null)return;const g=a!=null&&l!=null,f=r!=null?t.resolveColumnById(this,"idValue",i):void 0,y=r!=null?t.resolveColumnById(this,"featureValue",i):void 0,v=g?t.resolveColumnById(this,"latValue",i):void 0,b=g?t.resolveColumnById(this,"lonValue",i):void 0,C=u!=null?t.resolveColumnById(this,"labelValue",i):void 0,x=c!=null?t.resolveColumnById(this,"sizeValue",i):void 0,D=d!=null?t.resolveColumnById(this,"colorValue",i):void 0,k=s.maxSize??s.size;o.range=[Math.min(s.size,k),k];const A=Uve.getMeasurer({font:h});let w;f!=null&&y!=null&&(w=new Map,i.dataSources.get(this.id)?.forEach((F,E)=>{const G=f[E],B=y[E]?.geometry??void 0,z=B!=null&&n!=null?ru(B,n):void 0;G!=null&&z!=null&&w.set(G,z)}));const M=[],T=[],L=[];(i.dataSources.get(this.id)??[]).forEach((F,E)=>{const G=f?.[E],B=b?.[E],z=v?.[E],V=D?.[E],$=x?.[E],_=C?.[E],W=$!=null?o.convert($,{clamp:!0}):s.size,j=G!=null?w?.get(G):void 0;if(G!=null&&ru==null&&L.push(G),B!=null&&z!=null){const[X,q]=n.convert([B,z]),Q=this.getLabelDatum(F,_,X,q,W,A);Q&&T.push(Q),M.push({series:this,itemId:a,datum:F,datumIndex:E,index:-1,idValue:G,lonValue:B,latValue:z,labelValue:_,sizeValue:$,colorValue:V,point:{x:X,y:q,size:W},midPoint:{x:X,y:q},legendItemName:p})}else j!=null&&Q7(j,1).forEach(([X,q],Q)=>{const ue=this.getLabelDatum(F,_,X,q,W,A);ue&&T.push(ue),M.push({series:this,itemId:a,datum:F,datumIndex:E,index:Q,idValue:G,lonValue:B,latValue:z,labelValue:_,sizeValue:$,colorValue:V,point:{x:X,y:q,size:W},midPoint:{x:X,y:q},legendItemName:p})})});const O=10;if(L.length>O){const F=L.length-O;L.length=O,L.push(`(+${F} more)`)}return L.length>0&&he.warnOnce("some data items do not have matches in the provided topology",L),{itemId:e,nodeData:M,labelData:T}}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}){const t=this.checkResize(e),i=this.checkScaleChange(),{markerSelection:o,highlightMarkerSelection:s}=this;this.updateSelections(),this.contentGroup.visible=this.visible,this.labelGroup.visible=this.visible;let n=this.ctx.highlightManager?.getActiveHighlight();const{legendItemName:r}=this.properties,a=r!=null&&n?.datum==null&&r===n?.legendItemName;n!=null&&(n.series!==this&&!a||n.datum==null)&&(n=void 0);const l=this.contextNodeData?.nodeData??[];this.markerSelection=this.updateMarkerSelection({markerData:l,markerSelection:o}),this.updateMarkerNodes({markerSelection:o,isHighlight:!1,highlightedDatum:n}),this.highlightMarkerSelection=this.updateMarkerSelection({markerData:n!=null?[n]:[],markerSelection:s}),this.updateMarkerNodes({markerSelection:s,isHighlight:!0,highlightedDatum:n}),(i||t)&&this.animationState.transition("resize"),this.animationState.transition("update")}updatePlacedLabelData(e){this.labelSelection=this.labelSelection.update(e,t=>{t.pointerEvents=R.PointerEvents.None}),this.updateLabelNodes({labelSelection:this.labelSelection})}updateLabelNodes(e){e.labelSelection.each((t,{x:i,y:o,width:s,height:n,text:r},a)=>{const l=ibe(this,void 0,this.properties,this.properties.label),{color:c,fontStyle:d,fontWeight:u,fontSize:h,fontFamily:p}=l;t.visible=!0,t.x=i+s/2,t.y=o+n/2,t.text=r,t.fill=c,t.fontStyle=d,t.fontWeight=u,t.fontSize=h,t.fontFamily=p,t.textAlign="center",t.textBaseline="middle",t.fillOpacity=this.getHighlightStyle(!1,a).opacity??1,t.setBoxing(l)})}updateMarkerSelection(e){const{markerData:t,markerSelection:i}=e;return i.update(t,void 0,o=>HB([o.index,o.idValue,o.lonValue,o.latValue]))}getMarkerItemStyle({datumIndex:e,datum:t,colorValue:i,sizeValue:o},s){const{id:n,properties:r,colorScale:a,sizeScale:l}=this,{colorRange:c,itemStyler:d,fillGradientDefaults:u,fillPatternDefaults:h,fillImageDefaults:p}=r,g=this.getHighlightStyle(s,e),f=WB(g,r.getStyle());!s&&i!=null&&(f.fill=this.isColorScaleValid()?a.convert(i):c?.[0]??f.fill),o!=null&&(f.size=l.convert(o,{clamp:!0}));let y=Dk(f,u,h,p);if(d!=null&&e!=null){const v=this.cachedDatumCallback(HB(e,s?"highlight":"node"),()=>{const b=this.ctx.highlightManager?.getActiveHighlight(),C=this.getHighlightStateString(b,s,e);return this.callWithContext(d,{seriesId:n,datum:t,highlighted:s,highlightState:C,...y})});v&&(y=Dk(WB(v,f),u,h,p))}return y}updateMarkerNodes(e){const{markerSelection:t,isHighlight:i,highlightedDatum:o}=e,s=J7(this.scale);t.each((n,r)=>{const{datum:a,point:l}=r,c=this.getMarkerItemStyle(r,i);n.shape=c.shape,n.size=c.size,tbe(n,c,s),n.x=l.x,n.y=l.y,n.scalingCenterX=l.x,n.scalingCenterY=l.y,n.zIndex=!i&&o!=null&&a===o.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(){const{animationManager:e}=this.ctx,t=gve();Kve(this.id,"markers",e,[this.markerSelection,this.highlightMarkerSelection],t)}getLabelData(){return this.isLabelEnabled()?this.contextNodeData?.labelData??[]:[]}pickNodeClosestDatum(e){const{x:t,y:i}=e;let o=1/0,s;return this.contextNodeData?.nodeData.forEach(n=>{const{x:r,y:a,size:l}=n.point,c=Math.max(Math.abs(r-t)-l,0),d=Math.max(Math.abs(a-i)-l,0),u=c*c+d*d;u<o&&(o=u,s=n)}),s!=null?{datum:s,distance:Math.sqrt(o)}:void 0}legendItemSymbol(e){const{dataModel:t,processedData:i,properties:o}=this,{shape:s,fillOpacity:n,stroke:r,strokeWidth:a,strokeOpacity:l,lineDash:c,lineDashOffset:d}=o;let{fill:u}=o;if(e!=null&&this.isColorScaleValid()){const p=t.resolveColumnById(this,"colorValue",i)[e];u=this.colorScale.convert(p)}return{marker:Dk({shape:s,fill:u,fillOpacity:n,stroke:r,strokeWidth:a,strokeOpacity:l,lineDash:c,lineDashOffset:d},this.properties.fillGradientDefaults,this.properties.fillPatternDefaults,this.properties.fillImageDefaults)}}getLegendData(e){const{processedData:t,dataModel:i}=this;if(t==null||i==null)return[];const{id:o,visible:s}=this,{title:n,legendItemName:r,idName:a,idKey:l,colorKey:c,colorRange:d,showInLegend:u}=this.properties;if(e==="gradient"&&c!=null&&d!=null){const h=t.domain.values[i.resolveProcessedDataIndexById(this,"colorValue")];return[{legendType:"gradient",enabled:s,seriesId:o,series:this.getFormatterContext("color"),colorRange:d,colorDomain:h}]}else return e==="category"?[{legendType:"category",id:o,itemId:o,seriesId:o,enabled:s,label:{text:r??n??a??l??o},symbol:this.legendItemSymbol(),legendItemName:r,hideInLegend:!u}]:[]}getTooltipContent(e){const{id:t,dataModel:i,processedData:o,properties:s,ctx:{formatManager:n}}=this,{idKey:r,idName:a,latitudeKey:l,latitudeName:c,longitudeKey:d,longitudeName:u,colorKey:h,colorName:p,sizeKey:g,sizeName:f,labelKey:y,labelName:v,title:b,legendItemName:C,tooltip:x}=s;if(!i||!o)return;const D=o.dataSources.get(this.id)?.[e],k=g!=null?i.resolveColumnById(this,"sizeValue",o)[e]:void 0,A=h!=null?i.resolveColumnById(this,"colorValue",o)[e]:void 0,w=[];if(this.isLabelEnabled()&&y!=null&&y!==r){const L=i.resolveColumnById(this,"labelValue",o)[e],N=n.format(this.callWithContext.bind(this),{type:"category",value:L,datum:D,seriesId:t,legendItemName:C,key:y,source:"tooltip",property:"label",domain:[],boundSeries:this.getFormatterContext("label")});w.push({label:v,fallbackLabel:y,value:N??L})}if(g!=null&&k!=null){const L=i.getDomain(this,"sizeValue","value",o),N=n.format(this.callWithContext.bind(this),{type:"number",value:k,datum:D,seriesId:t,legendItemName:C,key:g,source:"tooltip",property:"size",domain:L,boundSeries:this.getFormatterContext("size"),fractionDigits:void 0});w.push({label:f,fallbackLabel:g,value:N??String(k)})}if(h!=null&&A!=null){const L=i.getDomain(this,"colorValue","value",o),N=n.format(this.callWithContext.bind(this),{type:"number",value:A,datum:D,seriesId:t,legendItemName:C,key:h,source:"tooltip",property:"color",domain:L,boundSeries:this.getFormatterContext("color"),fractionDigits:void 0});w.push({label:p,fallbackLabel:h,value:N??String(A)})}let M;if(r!=null)M=i.resolveColumnById(this,"idValue",o)[e];else if(l!=null&&d!=null){const L=i.resolveColumnById(this,"latValue",o)[e],N=i.resolveColumnById(this,"lonValue",o)[e];M=`${Math.abs(L).toFixed(4)}° ${L>=0?"N":"S"}, ${Math.abs(N).toFixed(4)}° ${N>=0?"W":"E"}`}const T=this.getMarkerItemStyle({datumIndex:e,datum:D,colorValue:A,sizeValue:k},!1);return this.formatTooltipWithContext(x,{heading:M,title:b??C,symbol:this.legendItemSymbol(e),data:w},{seriesId:t,datum:D,title:b,idKey:r,idName:a,latitudeKey:l,latitudeName:c,longitudeKey:d,longitudeName:u,colorKey:h,colorName:p,sizeKey:g,sizeName:f,labelKey:y,labelName:v,...T})}getFormattedMarkerStyle(e){const t=this.getMarkerItemStyle(e,!1);return{size:t.size,shape:t.shape}}computeFocusBounds(e){return Zve(this,e)}hasItemStylers(){return this.properties.itemStyler!=null}};aM.className="MapMarkerSeries";aM.type="map-marker";var{commonSeriesOptionsDefs:sbe,mapMarkerSeriesThemeableOptionsDef:nbe,without:rbe}=R,abe={...rbe(sbe,["highlightStyle","highlight"]),...nbe,type:ee(Ye("map-marker")),idKey:H,latitudeKey:H,longitudeKey:H,sizeKey:H,colorKey:H,labelKey:H,idName:H,latitudeName:H,longitudeName:H,sizeName:H,colorName:H,labelName:H,topology:mf,topologyIdKey:H,legendItemName:H,title:H},lbe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-marker",moduleFactory:e=>new aM(e),themeTemplate:{...jb,series:{shape:"circle",maxSize:30,fill:{$mapPalette:"fill"},stroke:{$mapPalette:"stroke"},colorRange:{$if:[{$eq:[{$mapPalette:"type"},"inbuilt"]},{$mapPalette:"divergingColors"},Rs(R.SAFE_RANGE2_OPERATION)]},fillGradientDefaults:Rs(R.FILL_GRADIENT_RADIAL_REVERSED_DEFAULTS),fillPatternDefaults:Rs(R.FILL_PATTERN_DEFAULTS),fillImageDefaults:Rs(R.FILL_IMAGE_DEFAULTS),fillOpacity:.5,label:{...R.LABEL_BOXING_DEFAULTS,enabled:!1,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"textColor"}},highlight:Rs(R.multiSeriesHighlightStyle())},tooltip:{range:"exact"}}},cbe={type:"series",name:"map-marker",chartType:"topology",enterprise:!0,options:abe,create:e=>new aM(e),validate(e,t,i){const o=hs(e,t,i),{cleared:s,invalid:n}=o;if(s?.idKey==null&&(s?.latitudeKey==null||s?.longitudeKey==null)){const r=l=>i?`${i}.${l}`:l,a=`Either \`${r("idKey")}\` or both \`${r("latitudeKey")}\` and \`${r("longitudeKey")}\` are required.`;n.push(new Hd("required",a,null,i))}return o}};function dbe(e,{aspectRatio:t,precision:i}){const o=q7(e,i,(l,c,d,u)=>{const h=hbe(l,c,d,t),p=h+2*u*t,g=h*Math.SQRT2,f=p*Math.SQRT2;return{distance:g,maxDistance:f}});if(o==null)return;const{x:s,y:n,distance:r}=o,a=r/Math.SQRT2;return{x:s,y:n,maxWidth:a}}function ube(e,t,i,o,s){const[n,r]=e,[a,l]=t,c=1/s,d=a-n,u=l-r,[h,p]=r<=l?e:t,[g,f]=n<=a?e:t,[y,v]=r<=l?t:e,[b,C]=n<=a?t:e;let x=1/0;if(d!==0){const T=u/d;for(let L=0;L<=1;L+=1){const N=L===0?c:-c,O=(T*n-r-N*i+o)/(T-N);if(O>=g&&O<=b){const F=Math.abs(i-O)*2;x=Math.min(x,F)}}}else for(let T=0;T<=1;T+=1){const N=(T===0?c:-c)*(n-i)+o;if(N>=p&&N<=v){const F=Math.abs(o-N)*2*s;x=Math.min(x,F)}}const D=s,k=Math.abs((h-i)/(p-o)),A=Math.abs((y-i)/(v-o));if(v<o&&A<D){const L=Math.abs(o-v)*2*s;x=Math.min(x,L)}else if(p>o&&k<D){const L=Math.abs(o-p)*2*s;x=Math.min(x,L)}const w=Math.abs((f-o)/(g-i)),M=Math.abs((C-o)/(b-i));if(b<i&&M<c){const T=Math.abs(i-b)*2;x=Math.min(x,T)}else if(g>i&&w<c){const T=Math.abs(i-g)*2;x=Math.min(x,T)}return x}function hbe(e,t,i,o){let s=!1,n=1/0;for(const r of e){let a=r[r.length-1],[l,c]=a;for(const d of r){const[u,h]=d;h>i!=c>i&&t<(l-u)*(i-h)/(c-h)+u&&(s=!s);const p=ube(a,d,t,i,o);n=Math.min(n,p),a=d,l=u,c=h}}return(s?1:-1)*n}function n0(e,t,i){i>=t&&(e.maxX=Math.min(e.maxX,i-t)),i<=t&&(e.minX=Math.max(e.minX,i-t))}function pbe(e,t,i,o,s,n){const r=s-n/2,a=s+n/2,[l,c]=t,[d,u]=i,h=d-l,p=u-c,[g,f]=l<=d?t:i,[y,v]=l<=d?i:t;if(h!==0){const b=p/h;for(let C=0;C<=1;C+=1){const D=((C===0?r:a)-c)/b+l;D>=g&&D<=y&&n0(e,o,D)}}else Math.max(r,Math.min(c,u))<=Math.min(a,Math.max(c,u))&&n0(e,o,l);return y<o&&v>=r&&v<=a?n0(e,o,y):g>o&&f>=r&&f<=a&&n0(e,o,g),e}function gbe(e,t,i,o){const s={minX:-1/0,maxX:1/0};for(const a of e){let l=a[a.length-1];for(const c of a)pbe(s,l,c,t,i,o),l=c}const{minX:n,maxX:r}=s;return Number.isFinite(n)&&Number.isFinite(r)?{x:t+(n+r)/2,width:r-n}:{x:t,width:0}}var{Property:ui,SeriesProperties:fbe,makeSeriesTooltip:mbe,FillGradientDefaults:ybe,FillPatternDefaults:vbe,FillImageDefaults:bbe}=R,ri=class extends fbe{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.fillGradientDefaults=new ybe,this.fillPatternDefaults=new vbe,this.fillImageDefaults=new bbe,this.fillOpacity=1,this.stroke="black",this.strokeOpacity=1,this.strokeWidth=0,this.lineDash=[0],this.lineDashOffset=0,this.padding=0,this.label=new _b,this.tooltip=mbe()}getStyle(){const{fill:e,fillOpacity:t,stroke:i,strokeWidth:o,strokeOpacity:s,lineDash:n,lineDashOffset:r}=this;return{fill:e,fillOpacity:t,stroke:i,strokeWidth:o,strokeOpacity:s,lineDash:n,lineDashOffset:r,opacity:1}}};S([ui],ri.prototype,"topology");S([ui],ri.prototype,"title");S([ui],ri.prototype,"legendItemName");S([ui],ri.prototype,"idKey");S([ui],ri.prototype,"idName");S([ui],ri.prototype,"topologyIdKey");S([ui],ri.prototype,"labelKey");S([ui],ri.prototype,"labelName");S([ui],ri.prototype,"colorKey");S([ui],ri.prototype,"colorName");S([ui],ri.prototype,"colorRange");S([ui],ri.prototype,"fill");S([ui],ri.prototype,"fillGradientDefaults");S([ui],ri.prototype,"fillPatternDefaults");S([ui],ri.prototype,"fillImageDefaults");S([ui],ri.prototype,"fillOpacity");S([ui],ri.prototype,"stroke");S([ui],ri.prototype,"strokeOpacity");S([ui],ri.prototype,"strokeWidth");S([ui],ri.prototype,"lineDash");S([ui],ri.prototype,"lineDashOffset");S([ui],ri.prototype,"padding");S([ui],ri.prototype,"itemStyler");S([ui],ri.prototype,"label");S([ui],ri.prototype,"tooltip");var{getMissCount:Cbe,createDatumId:jB,SeriesNodePickMode:UB,valueProperty:r0,CachedTextMeasurerPool:Sbe,TextUtils:KB,ColorScale:xbe,Group:YB,Selection:Mk,Text:wbe,PointerEvents:Dbe,applyShapeStyle:Mbe,getShapeStyle:kk,getLabelStyles:kbe,mergeDefaults:XB}=R,ZB=R.MercatorScale.fixedScale(),lM=class extends Ub{constructor(e){super({moduleCtx:e,categoryKey:void 0,propertyKeys:{color:["colorKey"],label:["labelKey"]},propertyNames:{color:["colorName"],label:["labelName"]},pickModes:[UB.EXACT_SHAPE_MATCH,UB.NEAREST_NODE]}),this.properties=new ri,this._chartTopology=void 0,this.colorScale=new xbe,this.itemGroup=this.contentGroup.appendChild(new YB({name:"itemGroup"})),this.itemLabelGroup=this.contentGroup.appendChild(new YB({name:"itemLabelGroup"})),this.datumSelection=Mk.select(this.itemGroup,()=>this.nodeFactory()),this.labelSelection=Mk.select(this.itemLabelGroup,wbe),this.highlightDatumSelection=Mk.select(this.highlightGroup,()=>this.nodeFactory()),this.previousLabelLayouts=void 0,this._previousDatumMidPoint=void 0,this.itemLabelGroup.pointerEvents=Dbe.None}getNodeData(){return this.contextNodeData?.nodeData}get topology(){return this.properties.topology??this._chartTopology}get hasData(){return super.hasData&&this.topology!=null}renderToOffscreenCanvas(){return!0}setChartTopology(e){this._chartTopology=e,this.topology===e&&(this.nodeDataRefresh=!0)}setZIndex(e){return super.setZIndex(e),this.contentGroup.zIndex=[1,e],this.highlightGroup.zIndex=[2,e],!0}isLabelEnabled(){return this.properties.labelKey!=null&&this.properties.label.enabled}nodeFactory(){const e=new rm;return e.renderMode=1,e.lineJoin="round",e}async processData(e){if(this.data==null)return;const{data:t,topology:i,colorScale:o}=this,{topologyIdKey:s,idKey:n,colorKey:r,labelKey:a,colorRange:l}=this.properties,c=new Map;i?.features.forEach(f=>{const y=f.properties?.[s];y==null||!uE(f.geometry,1)||c.set(y,f)});const d=this.colorScale.type,u=this.scale?.type,{dataModel:h,processedData:p}=await this.requestDataModel(e,t,{props:[r0(n,u,{id:"idValue",includeProperty:!1}),r0(n,u,{id:"featureValue",includeProperty:!1,processor:()=>f=>c.get(f)}),...a?[r0(a,"category",{id:"labelValue"})]:[],...r?[r0(r,d,{id:"colorValue"})]:[]]}),g=h.resolveColumnById(this,"featureValue",p);if(this.topologyBounds=g.reduce((f,y)=>{const v=y?.geometry;return v==null?f:am(v,f)},void 0),l!=null&&this.isColorScaleValid()){const f=h.resolveProcessedDataIndexById(this,"colorValue");o.domain=p.domain.values[f],o.range=l,o.update()}i==null&&he.warnOnce("no topology was provided for [MapShapeSeries]; nothing will be rendered.")}isColorScaleValid(){const{colorKey:e}=this.properties;if(!e)return!1;const{dataModel:t,processedData:i}=this;if(!t||!i)return!1;const o=t.resolveProcessedDataIndexById(this,"colorValue"),s=i.input.count,n=Cbe(this,i.defs.values[o].missing);return!(s===0||s===n)}getLabelLayout(e,t,i,o,s){if(t==null||o==null)return;const{idKey:n,idName:r,colorKey:a,colorName:l,labelKey:c,labelName:d,padding:u,label:h}=this.properties;if(c==null||!h.enabled)return;const p=this.getLabelText(t,e,c,"label",[],h,{value:t,datum:e,idKey:n,idName:r,colorKey:a,colorName:l,labelKey:c,labelName:d});if(p==null)return;const g=i.measureText(String(p)),f=p.split(`
|
|
24
24
|
`).length,y=(g.width+2*u)/(f*KB.getLineHeight(h.fontSize)+2*u);if(s?.geometry===o&&s?.labelText===p&&s?.aspectRatio===y)return s;const v=ru(o,ZB),b=mx(v);if(b==null)return;const C=dbe(b,{aspectRatio:y,precision:.001});if(C==null)return;const{x,y:D,maxWidth:k}=C;return{geometry:o,labelText:p,aspectRatio:y,x,y:D,maxWidth:k,fixedPolygon:b}}getLabelDatum(e,t){const{scale:i}=this;if(i==null)return;const{padding:o,label:s}=this.properties,{labelText:n,aspectRatio:r,x:a,y:l,maxWidth:c,fixedPolygon:d}=e,u={width:Math.ceil(c*t),height:Math.ceil(c*t/r),meta:a},h=gv(n,s,{padding:o},(x,D)=>{if(!D)return u;const k=gbe(d,a,l,x/t);return{width:k.width*t,height:x,meta:k.x}});if(h==null)return;const[{text:p,fontSize:g,lineHeight:f,width:y},v]=h;if(p===KB.EllipsisChar)return;const b=y<u.width?a:v,C=this.scale.convert(ZB.invert([b,l]));return{x:C[0],y:C[1],text:p,fontSize:g,lineHeight:f}}createNodeData(){const{id:e,dataModel:t,processedData:i,properties:o,scale:s,previousLabelLayouts:n}=this,{idKey:r,colorKey:a,labelKey:l,label:c,legendItemName:d}=o;if(t==null||i==null)return;const u=s!=null?(s.range[1][0]-s.range[0][0])/s.bounds.width:NaN,h=t.resolveColumnById(this,"idValue",i),p=t.resolveColumnById(this,"featureValue",i),g=l!=null?t.resolveColumnById(this,"labelValue",i):void 0,f=a!=null?t.resolveColumnById(this,"colorValue",i):void 0,y=Sbe.getMeasurer({font:c}),v=new Map;this.previousLabelLayouts=v;const b=[],C=[],x=[];(i.dataSources.get(this.id)??[]).forEach((A,w)=>{const M=h[w],T=f?.[w],L=g?.[w],N=p[w]?.geometry??void 0;N==null&&x.push(M);const O=this.getLabelLayout(A,L,y,N,n?.get(M));O!=null&&v.set(M,O);const F=O!=null&&s!=null?this.getLabelDatum(O,u):void 0;F!=null&&C.push(F);const E=N!=null&&s!=null?ru(N,s):void 0;b.push({series:this,itemId:r,datum:A,datumIndex:w,idValue:M,colorValue:T,labelValue:L,projectedGeometry:E,legendItemName:d})});const k=10;if(x.length>k){const A=x.length-k;x.length=k,x.push(`(+${A} more)`)}return x.length>0&&he.warnOnce("some data items do not have matches in the provided topology",x),{itemId:e,nodeData:b,labelData:C}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update(){const{datumSelection:e,labelSelection:t,highlightDatumSelection:i}=this;this.updateSelections(),this.contentGroup.visible=this.visible,this.labelGroup.visible=this.visible;let o=this.ctx.highlightManager?.getActiveHighlight();const{legendItemName:s}=this.properties,n=s!=null&&o?.datum==null&&s===o?.legendItemName;o!=null&&(o.series!==this&&!n||o.datum==null)&&(o=void 0);const r=this.contextNodeData?.nodeData??[],a=this.contextNodeData?.labelData??[];this.datumSelection=this.updateDatumSelection({nodeData:r,datumSelection:e}),this.updateDatumNodes({datumSelection:e,isHighlight:!1}),this.labelSelection=this.updateLabelSelection({labelData:a,labelSelection:t}),this.updateLabelNodes({labelSelection:t}),this.highlightDatumSelection=this.updateDatumSelection({nodeData:o!=null?[o]:[],datumSelection:i}),this.updateDatumNodes({datumSelection:i,isHighlight:!0})}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>jB(t.idValue))}getItemStyle({datumIndex:e,datum:t,colorValue:i},o){const{id:s,properties:n,colorScale:r}=this,{colorRange:a,itemStyler:l}=n,c=this.getHighlightStyle(o,e),d=XB(c,n.getStyle());!o&&i!=null&&(d.fill=this.isColorScaleValid()?r.convert(i):a?.[0]??d.fill);let u=kk(d,this.properties.fillGradientDefaults,this.properties.fillPatternDefaults,this.properties.fillImageDefaults);if(l!=null&&e!=null){const h=this.cachedDatumCallback(jB(e,o?"highlight":"node"),()=>{const p=this.ctx.highlightManager?.getActiveHighlight(),g=this.getHighlightStateString(p,o,e);return this.callWithContext(l,{seriesId:s,datum:t,highlighted:o,highlightState:g,...u})});h&&(u=kk(XB(h,u),this.properties.fillGradientDefaults,this.properties.fillPatternDefaults,this.properties.fillImageDefaults))}return u}updateDatumNodes(e){const{datumSelection:t,isHighlight:i}=e,o=J7(this.scale);t.each((s,n)=>{const{projectedGeometry:r}=n;if(r==null){s.visible=!1,s.projectedGeometry=void 0;return}const a=this.getItemStyle(n,i);s.visible=!0,s.projectedGeometry=r,Mbe(s,a,o)})}updateLabelSelection(e){const t=this.isLabelEnabled()?e.labelData:[];return e.labelSelection.update(t)}updateLabelNodes(e){e.labelSelection.each((t,{x:i,y:o,text:s,fontSize:n,lineHeight:r},a)=>{const l=kbe(this,void 0,this.properties,this.properties.label),{color:c,fontStyle:d,fontWeight:u,fontFamily:h}=l;t.visible=!0,t.x=i,t.y=o,t.text=s,t.fill=c,t.fontStyle=d,t.fontWeight=u,t.fontSize=n,t.lineHeight=r,t.fontFamily=h,t.textAlign="center",t.textBaseline="middle",t.fillOpacity=this.getHighlightStyle(!1,a).opacity??1,t.setBoxing(l)})}resetAnimation(){}pickNodeClosestDatum({x:e,y:t}){let i=1/0,o;return this.datumSelection.each((s,n)=>{const r=s.distanceSquared(e,t);r<i&&(i=r,o=n)}),o!=null?{datum:o,distance:Math.sqrt(i)}:void 0}datumMidPoint(e){const{_previousDatumMidPoint:t}=this;if(t?.datum===e)return t.point;const i=e.projectedGeometry,o=i!=null?mx(i):void 0,s=o!=null?qI(o,2):void 0,n=s!=null?{x:s[0],y:s[1]}:void 0;return this._previousDatumMidPoint={datum:e,point:n},n}legendItemSymbol(e){const{dataModel:t,processedData:i,properties:o}=this,{fillOpacity:s,stroke:n,strokeWidth:r,strokeOpacity:a,lineDash:l,lineDashOffset:c}=o;let{fill:d}=o;if(e!=null&&this.isColorScaleValid()){const h=t.resolveColumnById(this,"colorValue",i)[e];d=this.colorScale.convert(h)}return{marker:kk({fill:d,fillOpacity:s,stroke:n,strokeWidth:r,strokeOpacity:a,lineDash:l,lineDashOffset:c},this.properties.fillGradientDefaults,this.properties.fillPatternDefaults,this.properties.fillImageDefaults)}}getLegendData(e){const{processedData:t,dataModel:i}=this;if(t==null||i==null)return[];const{id:o,visible:s}=this,{title:n,legendItemName:r,idKey:a,idName:l,colorKey:c,colorRange:d,showInLegend:u}=this.properties;if(e==="gradient"&&c!=null&&d!=null){const h=t.domain.values[i.resolveProcessedDataIndexById(this,"colorValue")];return[{legendType:"gradient",enabled:s,seriesId:o,series:this.getFormatterContext("color"),colorRange:d,colorDomain:h}]}else return e==="category"?[{legendType:"category",id:o,itemId:o,seriesId:o,enabled:s,label:{text:r??n??l??a},symbol:this.legendItemSymbol(),legendItemName:r,hideInLegend:!u}]:[]}getTooltipContent(e){const{id:t,dataModel:i,processedData:o,properties:s,ctx:{formatManager:n}}=this,{idKey:r,idName:a,colorKey:l,colorName:c,labelKey:d,labelName:u,legendItemName:h,title:p,tooltip:g}=s;if(!i||!o)return;const f=o.dataSources.get(this.id)?.[e],y=i.resolveColumnById(this,"idValue",o)[e],v=l!=null?i.resolveColumnById(this,"colorValue",o)[e]:void 0,b=[];if(this.isLabelEnabled()&&d!=null&&d!==r){const x=i.resolveColumnById(this,"labelValue",o)[e],D=n.format(this.callWithContext.bind(this),{type:"category",value:x,datum:f,seriesId:t,legendItemName:h,key:d,source:"tooltip",property:"label",domain:[],boundSeries:this.getFormatterContext("label")});b.push({label:u,fallbackLabel:d,value:D??x})}if(v!=null){const x=i.getDomain(this,"colorValue","value",o),D=n.format(this.callWithContext.bind(this),{type:"number",value:v,datum:f,seriesId:t,legendItemName:h,key:l,source:"tooltip",property:"color",domain:x,boundSeries:this.getFormatterContext("color"),fractionDigits:void 0});b.push({label:c,fallbackLabel:l,value:D??String(v)})}const C=this.getItemStyle({datum:f,datumIndex:e,colorValue:v},!1);return this.formatTooltipWithContext(g,{heading:y,title:p??h,symbol:this.legendItemSymbol(e),data:b},{seriesId:t,datum:f,title:p,idKey:r,idName:a,colorKey:l,colorName:c,labelKey:d,labelName:u,...C})}computeFocusBounds(e){return X7(this,e)}hasItemStylers(){return this.properties.itemStyler!=null}};lM.className="MapShapeSeries";lM.type="map-shape";var{commonSeriesOptionsDefs:Abe,mapShapeSeriesThemeableOptionsDef:Ibe,without:Tbe}=R,Rbe={...Tbe(Abe,["highlightStyle","highlight"]),...Ibe,type:ee(Ye("map-shape")),idKey:ee(H),colorKey:H,labelKey:H,idName:H,colorName:H,labelName:H,topology:mf,topologyIdKey:H,legendItemName:H,title:H},Lbe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-shape",moduleFactory:e=>new lM(e),themeTemplate:{...jb,series:{fill:{$mapPalette:"fill"},stroke:{$ref:"chartBackgroundColor"},colorRange:{$if:[{$eq:[{$mapPalette:"type"},"inbuilt"]},{$mapPalette:"divergingColors"},Rs(R.SAFE_RANGE2_OPERATION)]},fillGradientDefaults:Rs(R.FILL_GRADIENT_LINEAR_DEFAULTS),fillPatternDefaults:Rs(R.FILL_PATTERN_DEFAULTS),fillImageDefaults:Rs(R.FILL_IMAGE_DEFAULTS),fillOpacity:1,strokeWidth:1,lineDash:[0],lineDashOffset:0,padding:2,label:{...R.LABEL_BOXING_DEFAULTS,color:{$ref:"chartBackgroundColor"},fontFamily:{$ref:"fontFamily"},fontSize:{$ref:"fontSize"},fontWeight:"bold",overflowStrategy:"hide"},highlight:Rs(R.multiSeriesHighlightStyle(!0))},tooltip:{range:"exact"}}},Pbe={type:"series",name:"map-shape",chartType:"topology",enterprise:!0,options:Rbe,create:e=>new lM(e)},{FillGradientDefaults:Ebe,FillPatternDefaults:Fbe,FillImageDefaults:Nbe,Property:Jr,SeriesProperties:Obe,makeSeriesTooltip:Bbe}=R,ar=class extends Obe{constructor(){super(...arguments),this.topology=void 0,this.fill="black",this.fillGradientDefaults=new Ebe,this.fillPatternDefaults=new Fbe,this.fillImageDefaults=new Nbe,this.fillOpacity=1,this.stroke="black",this.strokeOpacity=1,this.strokeWidth=0,this.lineDash=[0],this.lineDashOffset=0,this.tooltip=Bbe()}};S([Jr],ar.prototype,"topology");S([Jr],ar.prototype,"fill");S([Jr],ar.prototype,"fillGradientDefaults");S([Jr],ar.prototype,"fillPatternDefaults");S([Jr],ar.prototype,"fillImageDefaults");S([Jr],ar.prototype,"fillOpacity");S([Jr],ar.prototype,"stroke");S([Jr],ar.prototype,"strokeOpacity");S([Jr],ar.prototype,"strokeWidth");S([Jr],ar.prototype,"lineDash");S([Jr],ar.prototype,"lineDashOffset");S([Jr],ar.prototype,"tooltip");var{createDatumId:Gbe,Selection:zbe,Group:Vbe,PointerEvents:qB,getShapeStyle:_be}=R,cM=class extends Ub{constructor(e){super({moduleCtx:e,categoryKey:void 0,pickModes:[]}),this.properties=new ar,this._chartTopology=void 0,this.itemGroup=this.contentGroup.appendChild(new Vbe({name:"itemGroup"})),this.datumSelection=zbe.select(this.itemGroup,()=>this.nodeFactory()),this.itemGroup.pointerEvents=qB.None}get topology(){return this.properties.topology??this._chartTopology}get focusable(){return!1}setOptionsData(){}setChartData(){}getNodeData(){}get hasData(){return!1}renderToOffscreenCanvas(){return!0}setChartTopology(e){this._chartTopology=e,this.topology===e&&(this.nodeDataRefresh=!0)}setZIndex(e){return super.setZIndex(e),this.contentGroup.zIndex=[0,e,0],this.highlightGroup.zIndex=[0,e,1],!0}nodeFactory(){const e=new rm;return e.renderMode=1,e.lineJoin="round",e.pointerEvents=qB.None,e}processData(){const{topology:e}=this;this.topologyBounds=e?.features.reduce((t,i)=>{const o=i.geometry;return o==null?t:am(o,t)},void 0),e==null&&he.warnOnce("no topology was provided for [MapShapeBackgroundSeries]; nothing will be rendered.")}createNodeData(){const{id:e,topology:t,scale:i}=this;if(t==null)return;const o=[],s=[];return t.features.forEach((n,r)=>{const{geometry:a}=n,l=a!=null&&i!=null?ru(a,i):void 0;l!=null&&o.push({series:this,itemId:r,datum:n,datumIndex:0,index:r,projectedGeometry:l})}),{itemId:e,nodeData:o,labelData:s}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update(){const{datumSelection:e}=this;this.updateSelections(),this.contentGroup.visible=this.visible,this.labelGroup.visible=this.visible;const{nodeData:t=[]}=this.contextNodeData??{};this.datumSelection=this.updateDatumSelection({nodeData:t,datumSelection:e}),this.updateDatumNodes({datumSelection:e})}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>Gbe(t.index))}updateDatumNodes(e){const{properties:t}=this,{datumSelection:i}=e,{fill:o,fillOpacity:s,stroke:n,strokeOpacity:r,lineDash:a,lineDashOffset:l}=t,c=t.strokeWidth;i.each((d,u)=>{const{projectedGeometry:h}=u;if(h==null){d.visible=!1,d.projectedGeometry=void 0;return}d.visible=!0,d.projectedGeometry=h;const p=_be({fill:o,fillOpacity:s,stroke:n,strokeWidth:c,strokeOpacity:r,lineDash:a,lineDashOffset:l},this.properties.fillGradientDefaults,this.properties.fillPatternDefaults,this.properties.fillImageDefaults);d.setProperties(p)})}resetAnimation(){}getLegendData(){return[]}getTooltipContent(e){}pickFocus(){}computeFocusBounds(e){}hasItemStylers(){return!1}};cM.className="MapShapeBackgroundSeries";cM.type="map-shape-background";var{commonSeriesOptionsDefs:Hbe,mapShapeBackgroundSeriesThemeableOptionsDef:$be}=R,Wbe={...$be,...Hbe,type:ee(Ye("map-shape-background")),topology:mf},jbe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-shape-background",moduleFactory:e=>new cM(e),themeTemplate:{...jb,series:{fill:{$path:["/1",{$mapPalette:"fill"},{$mapPalette:"hierarchyColors"}]},stroke:{$ref:"chartBackgroundColor"},strokeWidth:1,fillGradientDefaults:Rs(R.FILL_GRADIENT_LINEAR_HIERARCHY_DEFAULTS),fillPatternDefaults:Rs(R.FILL_PATTERN_HIERARCHY_DEFAULTS),fillImageDefaults:Rs(R.FILL_IMAGE_DEFAULTS)}}},Ube={type:"series",name:"map-shape-background",chartType:"topology",enterprise:!0,options:Wbe,create:e=>new cM(e)},{DEFAULT_POLAR_DIRECTION_KEYS:Kbe,DEFAULT_POLAR_DIRECTION_NAMES:Ybe,ChartAxisDirection:Qa,PolarAxis:Xbe,diff:Zbe,fixNumericExtent:qbe,groupAccumulativeValueProperty:QB,keyProperty:Qbe,normaliseGroupTo:Jbe,resetLabelFn:eCe,seriesLabelFadeInAnimation:tCe,seriesLabelFadeOutAnimation:iCe,valueProperty:oCe,animationValidation:sCe,createDatumId:JB,SeriesNodePickMode:e3,normalizeAngle360:t3,CategoryScale:nCe,motion:i3,applyShapeStyle:rCe,isGradientFill:aCe,getShapeStyle:Ak,updateLabelNode:lCe,mergeDefaults:o3}=R,cCe=class extends R.SeriesNodeEvent{constructor(e,t,i,o){super(e,t,i,o),this.angleKey=o.properties.angleKey,this.radiusKey=o.properties.radiusKey}},t$=class extends R.PolarSeries{constructor(e,{animationResetFns:t}){super({moduleCtx:e,categoryKey:"angleValue",propertyKeys:Kbe,propertyNames:Ybe,canHaveAxes:!0,pickModes:[e3.NEAREST_NODE,e3.EXACT_SHAPE_MATCH],animationResetFns:{...t,label:eCe}}),this.NodeEvent=cCe,this.groupScale=new nCe,this.circleCache={r:0,cx:0,cy:0}}getSeriesDomain(e){const{dataModel:t,processedData:i}=this;if(!i||!t)return[];if(e===Qa.Angle)return t.getDomain(this,"angleValue","key",i);{const o=t.getDomain(this,"radiusValue-end","value",i),s=Number.isFinite(o[1]-o[0])?[o[0]>0?0:o[0],o[1]<0?0:o[1]]:[];return qbe(s)}}async processData(e){const{angleKey:t,radiusKey:i,normalizedTo:o}=this.properties,s=!this.ctx.animationManager.isSkipped(),n=this.getStackId(),r=`${n}-trailing`,a=[];Wi(o)&&a.push(Jbe([n,r],Math.abs(o))),s&&this.processedData&&a.push(Zbe(this.id,this.processedData)),s&&a.push(sCe());const l=this.visible?{}:{forceValue:0},c=this.axes[Qa.Radius]?.scale.type,d=this.axes[Qa.Angle]?.scale.type;await this.requestDataModel(e,this.data,{props:[Qbe(t,d,{id:"angleValue"}),oCe(i,c,{id:"radiusValue-raw",invalidValue:null,...l}),...QB(i,"normal","current",{id:"radiusValue-end",rangeId:"radiusValue-range",invalidValue:null,groupId:n,separateNegative:!0,...l},c),...QB(i,"trailing","current",{id:"radiusValue-start",invalidValue:null,groupId:r,separateNegative:!0,...l},c),...a],groupByKeys:!0,groupByData:!1}),this.animationState.transition("updateData")}didCircleChange(){const e=this.radius,t=this.centerX,i=this.centerY,o=this.circleCache;return e!==o.r||t!==o.cx||i!==o.cy?(this.circleCache={r:e,cx:t,cy:i},!0):!1}isRadiusAxisReversed(){return this.axes[Qa.Radius]?.isReversed()}maybeRefreshNodeData(){if(!this.didCircleChange()&&!this.nodeDataRefresh)return;const{nodeData:t=[]}=this.createNodeData()??{};this.nodeData=t,this.nodeDataRefresh=!1}getAxisInnerRadius(){const e=this.axes[Qa.Radius];return e instanceof Xbe?this.radius*e.innerRadiusRatio:0}createNodeData(){const{processedData:e,dataModel:t,groupScale:i}=this;if(!t||!e||e.type!=="grouped")return;const o=this.axes[Qa.Angle],s=this.axes[Qa.Radius],n=o?.scale,r=s?.scale;if(!n||!r)return;const a=t.resolveKeysById(this,"angleValue",e),l=t.resolveColumnById(this,"radiusValue-start",e),c=t.resolveColumnById(this,"radiusValue-end",e),d=t.resolveColumnById(this,"radiusValue-raw",e),u=t.resolveProcessedDataIndexById(this,"radiusValue-range");let h=0,p=0;o instanceof Cu&&(h=o.groupPaddingInner,p=o.paddingInner);const f=(n.bandwidth??0)*(1-p),{index:y,visibleGroupCount:v}=this.ctx.seriesStateManager.getVisiblePeerGroupIndex(this);i.domain=Array.from({length:v}).map((B,z)=>String(z)),i.range=[-f/2,f/2],i.paddingInner=v>1?h:0;const b=this.isRadiusAxisReversed(),C=b?this.radius:this.getAxisInnerRadius(),x=b?this.getAxisInnerRadius():this.radius,D=x+C,{angleKey:k,radiusKey:A,angleName:w,radiusName:M,label:T}=this.properties,L=this.getSeriesDomain(Qa.Radius),N=(B,z,V,$)=>{const _=this.getLabelText(z,B,A,"radius",L,T,{value:z,datum:B,angleKey:k,radiusKey:A,angleName:w,radiusName:M});if(_)return{x:V,y:$,text:_,textAlign:"center",textBaseline:"middle"}},O=[],F={itemId:A,nodeData:O,labelData:O};if(!this.visible)return F;const{dataSources:E}=e,G=E.get(this.id)??[];for(const{datumIndex:B,group:z}of t.forEachGroupDatum(this,e)){const V=G[B],$=a[B];if($==null)return;const _=d[B],W=_>=0&&!Object.is(_,-0),j=l[B],X=c[B],q=z.aggregation[u][W?1:0]??0,Q=W===b;if(j===void 0||X===void 0)return;let ue,de;if(G.length===1)ue=-.5*Math.PI,de=1.5*Math.PI;else{const be=n.convert($);ue=t3(be+i.convert(String(y))),de=t3(ue+i.bandwidth)}const te=ue+i.bandwidth/2,se=D-r.convert(j),ie=D-r.convert(X),le=(se+ie)/2,ye=D-r.convert(0),Me=D-r.convert(q),De=Math.cos(te)*le,ge=Math.sin(te)*le,Ge=this.properties.label.enabled?N(V,_,De,ge):void 0,ce=this.getColumnWidth(ue,de);O.push({series:this,datum:V,datumIndex:B,point:{x:De,y:ge,size:0},midPoint:{x:De,y:ge},label:Ge,angleValue:$,radiusValue:_,negative:Q,innerRadius:se,outerRadius:ie,stackInnerRadius:ye,stackOuterRadius:Me,startAngle:ue,endAngle:de,midAngle:te,axisInnerRadius:C,axisOuterRadius:x,columnWidth:ce,index:B})}return{itemId:A,nodeData:O,labelData:O}}getColumnWidth(e,t){return NaN}update({seriesRect:e}){const 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")}getItemStyle(e,t){const{id:i,properties:o}=this,{angleKey:s,radiusKey:n,itemStyler:r,fillGradientDefaults:a,fillPatternDefaults:l,fillImageDefaults:c}=o,d=this.getHighlightStyle(t,e.datumIndex),u=o3(d,o.getStyle());let h=Ak(u,a,l,c);if(r!=null&&e!=null){const p=this.cachedDatumCallback(JB(this.getDatumId(e),t?"highlight":"node"),()=>{const g=this.ctx.highlightManager?.getActiveHighlight(),f=this.getHighlightStateString(g,t,e.datumIndex);return this.callWithContext(r,{seriesId:i,datum:e.datum,highlighted:t,highlightState:f,angleKey:s,radiusKey:n,...h})});p&&(h=Ak(o3(p,h),a,l,c))}return h}updateSectorSelection(e,t){let i=[];if(t){const a=this.ctx.highlightManager?.getActiveHighlight();a?.datum&&a.series===this&&i.push(a)}else i=this.nodeData;const o=this.isRadiusAxisReversed(),s=o?this.radius:this.getAxisInnerRadius(),n=o?this.getAxisInnerRadius():this.radius,r=this.getShapeFillBBox();e.update(i,void 0,a=>this.getDatumId(a)).each((a,l)=>{const{midPoint:c}=l,d=this.getItemStyle(l,t),u=d.fill,p=aCe(u)&&u.bounds==="item"?{centerX:c?.x??0,centerY:c?.y??0}:{centerX:0,centerY:0,innerRadius:s,outerRadius:n};this.updateItemPath(a,l,t),rCe(a,d,r,p),a.cornerRadius=d.cornerRadius,a.lineJoin="round"})}updateLabels(){const e=this.ctx.highlightManager?.getActiveHighlight();this.labelSelection.update(this.nodeData).each((t,i)=>{const o=this.getHighlightStateString(e,!1,i.datumIndex);lCe(this,t,this.properties,this.properties.label,i.label,!1,o),t.fillOpacity=this.getHighlightStyle(!1,i.datumIndex).opacity??1})}animateEmptyUpdateReady(){const{labelSelection:e}=this,t=this.getColumnTransitionFunctions();i3.fromToMotion(this.id,"datums",this.ctx.animationManager,[this.itemSelection],t),tCe(this,"labels",this.ctx.animationManager,e)}animateClearingUpdateEmpty(){const{itemSelection:e}=this,{animationManager:t}=this.ctx,i=this.getColumnTransitionFunctions();i3.fromToMotion(this.id,"datums",t,[e],i),iCe(this,"labels",t,this.labelSelection)}getTooltipContent(e){const{id:t,dataModel:i,processedData:o,axes:s,properties:n}=this,{angleKey:r,angleName:a,radiusKey:l,radiusName:c,tooltip:d}=n,u=s[Qa.Angle],h=s[Qa.Radius],p=this.nodeData?.[e];if(!i||!o||!u||!h||!p)return;const g=o.dataSources.get(this.id)?.[e],f=i.resolveKeysById(this,"angleValue",o)[e],y=i.resolveColumnById(this,"radiusValue-raw",o)[e];if(f==null)return;const v=this.getItemStyle(p,!1);return this.formatTooltipWithContext(d,{heading:this.getAxisValueText(u,"tooltip",f,g,r,void 0),symbol:this.legendItemSymbol(),data:[{label:c,fallbackLabel:l,value:this.getAxisValueText(h,"tooltip",y,g,l,void 0)}]},{seriesId:t,datum:g,title:a,angleKey:r,angleName:a,radiusKey:l,radiusName:c,...v})}pickNodeClosestDatum(e){return this.pickNodeNearestDistantObject(e,this.itemSelection.nodes())}legendItemSymbol(){const{fill:e,stroke:t,fillOpacity:i,strokeOpacity:o,strokeWidth:s,lineDash:n,lineDashOffset:r,fillGradientDefaults:a,fillPatternDefaults:l,fillImageDefaults:c}=this.properties,d=Ak({fill:e??"rgba(0, 0, 0, 0)",stroke:t??"rgba(0, 0, 0, 0)",fillOpacity:i,strokeOpacity:o,strokeWidth:s,lineDash:n,lineDashOffset:r},a,l,c);return R.isGradientFill(d.fill)&&(d.fill={...d.fill,gradient:"linear",rotation:0,reverse:!1}),{marker:d}}getLegendData(e){if(e!=="category")return[];const{id:t,visible:i}=this,{radiusKey:o,radiusName:s,showInLegend:n}=this.properties;return[{legendType:"category",id:t,itemId:o,seriesId:t,enabled:i,label:{text:s??o},symbol:this.legendItemSymbol(),hideInLegend:!n}]}getDatumId(e){return JB(e.angleValue)}computeLabelsBBox(){return null}},{SeriesProperties:dCe,FillGradientDefaults:uCe,FillPatternDefaults:hCe,FillImageDefaults:pCe,makeSeriesTooltip:gCe,Property:ho,Label:fCe}=R,Vi=class extends dCe{constructor(){super(...arguments),this.fill="black",this.fillGradientDefaults=new uCe,this.fillPatternDefaults=new hCe,this.fillImageDefaults=new pCe,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 fCe,this.tooltip=gCe()}getStyle(){const{fill:e,fillOpacity:t,stroke:i,strokeWidth:o,strokeOpacity:s,lineDash:n,lineDashOffset:r,cornerRadius:a}=this;return{fill:e,fillOpacity:t,stroke:i,strokeWidth:o,strokeOpacity:s,lineDash:n,lineDashOffset:r,cornerRadius:a,opacity:1}}};S([ho],Vi.prototype,"angleKey");S([ho],Vi.prototype,"angleName");S([ho],Vi.prototype,"radiusKey");S([ho],Vi.prototype,"radiusName");S([ho],Vi.prototype,"fill");S([ho],Vi.prototype,"fillGradientDefaults");S([ho],Vi.prototype,"fillPatternDefaults");S([ho],Vi.prototype,"fillImageDefaults");S([ho],Vi.prototype,"fillOpacity");S([ho],Vi.prototype,"stroke");S([ho],Vi.prototype,"strokeWidth");S([ho],Vi.prototype,"strokeOpacity");S([ho],Vi.prototype,"lineDash");S([ho],Vi.prototype,"lineDashOffset");S([ho],Vi.prototype,"cornerRadius");S([ho],Vi.prototype,"itemStyler");S([ho],Vi.prototype,"rotation");S([ho],Vi.prototype,"stackGroup");S([ho],Vi.prototype,"normalizedTo");S([ho],Vi.prototype,"label");S([ho],Vi.prototype,"tooltip");var{motion:mCe}=R;function i$(){const e={startAngle:new Map,endAngle:new Map},t=["startAngle","endAngle"],i=(r,a,l)=>{t.forEach(c=>{const d=e[c];let u=(l==="removed"||l==="updated"?r:a)[c],h=(l==="removed"?r:a)[c];isNaN(h)&&(h=r.previousDatum?.[c]??NaN);const p=u-h;Math.abs(p)>Math.PI&&(u-=Math.sign(p)*2*Math.PI),d.set(a,{from:u,to:h})})},o=(r,a)=>({startAngle:e.startAngle.get(r)[a],endAngle:e.endAngle.get(r)[a]});return{calculate:i,from:r=>o(r,"from"),to:r=>o(r,"to")}}function o$(e,t,i){if(i==="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 i==="added"&&e.previousDatum!=null?"updated":i}function yCe(e){const t=i$();return{toFn:(s,n,r)=>{const{startAngle:a,endAngle:l}=t.to(n);let c,d,u,h,p;return r==="removed"?(c=s.innerRadius,d=s.innerRadius,u=s.columnWidth,h=s.axisInnerRadius,p=s.axisOuterRadius):(c=isNaN(n.innerRadius)?e:n.innerRadius,d=isNaN(n.outerRadius)?e:n.outerRadius,u=isNaN(n.columnWidth)?s.columnWidth:n.columnWidth,h=n.axisInnerRadius,p=n.axisOuterRadius),{innerRadius:c,outerRadius:d,columnWidth:u,axisInnerRadius:h,axisOuterRadius:p,startAngle:a,endAngle:l}},fromFn:(s,n,r)=>{r=o$(s,n,r),t.calculate(s,n,r);const{startAngle:a,endAngle:l}=t.from(n);let c,d,u,h,p;r==="removed"||r==="updated"?(c=s.innerRadius,d=s.outerRadius,u=s.columnWidth,h=s.axisInnerRadius,p=s.axisOuterRadius):(c=e,d=e,u=n.columnWidth,h=n.axisInnerRadius,p=n.axisOuterRadius);const g=mCe.NODE_UPDATE_STATE_TO_PHASE_MAPPING[r];return{innerRadius:c,outerRadius:d,columnWidth:u,axisInnerRadius:h,axisOuterRadius:p,startAngle:a,endAngle:l,phase:g}}}}function vCe(e,{innerRadius:t,outerRadius:i,columnWidth:o,axisInnerRadius:s,axisOuterRadius:n,startAngle:r,endAngle:a}){return{innerRadius:t,outerRadius:i,columnWidth:o,axisInnerRadius:s,axisOuterRadius:n,startAngle:r,endAngle:a}}var{SectorBox:sS,motion:bCe}=R;function hE(e){const{negative:t,innerRadius:i,outerRadius:o,stackInnerRadius:s,stackOuterRadius:n}=e;return{innerRadius:t?n:s,outerRadius:t?s:n,clipInnerRadius:t?o:i,clipOuterRadius:t?i:o}}function CCe(e){const t=i$();return{toFn:(s,n,r)=>{const{startAngle:a,endAngle:l}=t.to(n);let c,d,u;if(r==="removed")c=e,d=e,u=new sS(a,l,c,d);else{let h,p;({innerRadius:c,outerRadius:d,clipInnerRadius:h,clipOuterRadius:p}=hE(n)),isNaN(c)&&(c=e),isNaN(d)&&(d=e),isNaN(h)&&(h=e),isNaN(p)&&(p=e),u=new sS(a,l,h,p)}return{innerRadius:c,outerRadius:d,startAngle:a,endAngle:l,clipSector:u}},fromFn:(s,n,r)=>{r=o$(s,n,r),t.calculate(s,n,r);const{startAngle:a,endAngle:l}=t.from(n);let c,d,u;r==="removed"||r==="updated"?(c=s.innerRadius,d=s.outerRadius,u=s.clipSector):(c=e,d=e),u??(u=new sS(a,l,c,d));const h=bCe.NODE_UPDATE_STATE_TO_PHASE_MAPPING[r];return{innerRadius:c,outerRadius:d,startAngle:a,endAngle:l,clipSector:u,phase:h}}}}function SCe(e,t){const{startAngle:i,endAngle:o}=t,{innerRadius:s,outerRadius:n,clipInnerRadius:r,clipOuterRadius:a}=hE(t),l=new sS(i,o,r,a);return{innerRadius:s,outerRadius:n,startAngle:i,endAngle:o,clipSector:l}}var{Sector:xCe,SectorBox:wCe,PolarZIndexMap:Ik}=R,dM=class extends t${constructor(e){super(e,{animationResetFns:{item:SCe}}),this.properties=new Vi}setZIndex(e){return super.setZIndex(e),this.contentGroup.zIndex=[0,Ik.FOREGROUND,e],this.highlightGroup.zIndex=[0,Ik.HIGHLIGHT,e],this.labelGroup.zIndex=[0,Ik.LABEL,e],!0}getStackId(){return`nightingale-stack-${this.seriesGrouping?.groupIndex??this.id}-yValues`}nodeFactory(){return new xCe}updateItemPath(e,t,i){const{negative:o}=t;if(e.centerX=0,e.centerY=0,e.startOuterCornerRadius=o?0:this.properties.cornerRadius,e.endOuterCornerRadius=o?0:this.properties.cornerRadius,e.startInnerCornerRadius=o?this.properties.cornerRadius:0,e.endInnerCornerRadius=o?this.properties.cornerRadius:0,i){const{startAngle:s,endAngle:n}=t,{innerRadius:r,outerRadius:a,clipInnerRadius:l,clipOuterRadius:c}=hE(t);e.innerRadius=r,e.outerRadius=a,e.startAngle=s,e.endAngle=n,e.clipSector=new wCe(s,n,l,c)}}getColumnTransitionFunctions(){const e=this.isRadiusAxisReversed()?this.radius:this.getAxisInnerRadius();return CCe(e)}hasItemStylers(){return this.properties.itemStyler!=null}};dM.className="NightingaleSeries";dM.type="nightingale";var{commonSeriesOptionsDefs:DCe,nightingaleSeriesThemeableOptionsDef:MCe}=R,kCe={...DCe,...MCe,type:ee(Ye("nightingale")),angleKey:ee(H),radiusKey:ee(H),angleName:H,radiusName:H,grouped:U,stacked:U,stackGroup:H,normalizedTo:ne},{ThemeConstants:{POLAR_AXIS_TYPE:s3,POLAR_AXIS_SHAPE:n3}}=R,ACe={series:{fill:{$palette:"fill"},stroke:{$if:[{$eq:[{$palette:"type"},"inbuilt"]},{$ref:"chartBackgroundColor"},{$palette:"stroke"}]},fillGradientDefaults:R.FILL_GRADIENT_RADIAL_SERIES_DEFAULTS,fillPatternDefaults:R.FILL_PATTERN_DEFAULTS,fillImageDefaults:R.FILL_IMAGE_DEFAULTS,strokeWidth:1,label:{...R.LABEL_BOXING_DEFAULTS,enabled:!1,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"textColor"}},highlight:R.multiSeriesHighlightStyle()},axes:{[s3.ANGLE_CATEGORY]:{shape:{$findFirstSiblingNotOperation:n3.CIRCLE},groupPaddingInner:0,paddingInner:0,label:{spacing:10}},[s3.RADIUS_NUMBER]:{shape:{$findFirstSiblingNotOperation:n3.CIRCLE}}}},{ThemeConstants:{POLAR_AXIS_TYPE:r3}}=R,ICe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"nightingale",moduleFactory:e=>new dM(e),defaultAxes:[{type:r3.ANGLE_CATEGORY},{type:r3.RADIUS_NUMBER}],themeTemplate:ACe,stackable:!0,groupable:!0,stackedByDefault:!0},TCe={type:"series",name:"nightingale",chartType:"polar",enterprise:!0,options:kCe,create:e=>new dM(e)},{SeriesProperties:RCe,FillGradientDefaults:LCe,FillPatternDefaults:PCe,FillImageDefaults:ECe,makeSeriesTooltip:FCe,Property:_i,Label:s$,DropShadow:NCe}=R,OCe=class extends s${},pE=class extends s${constructor(){super(...arguments),this.spacing=0}};S([_i],pE.prototype,"spacing");S([_i],pE.prototype,"placement");var Qi=class extends RCe{constructor(){super(...arguments),this.fills=[],this.fillGradientDefaults=new LCe,this.fillPatternDefaults=new PCe,this.fillImageDefaults=new ECe,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 NCe().set({enabled:!1}),this.label=new OCe,this.stageLabel=new pE,this.tooltip=FCe()}getStyle(e=0){const{fills:t,strokes:i,fillOpacity:o,strokeWidth:s,strokeOpacity:n,lineDash:r,lineDashOffset:a}=this;return{fill:t[e%t.length],fillOpacity:o,stroke:i[e%i.length],strokeWidth:s,strokeOpacity:n,lineDash:r,lineDashOffset:a,opacity:1}}};S([_i],Qi.prototype,"stageKey");S([_i],Qi.prototype,"valueKey");S([_i],Qi.prototype,"fills");S([_i],Qi.prototype,"fillGradientDefaults");S([_i],Qi.prototype,"fillPatternDefaults");S([_i],Qi.prototype,"fillImageDefaults");S([_i],Qi.prototype,"fillOpacity");S([_i],Qi.prototype,"strokes");S([_i],Qi.prototype,"strokeWidth");S([_i],Qi.prototype,"strokeOpacity");S([_i],Qi.prototype,"lineDash");S([_i],Qi.prototype,"lineDashOffset");S([_i],Qi.prototype,"direction");S([_i],Qi.prototype,"reverse");S([_i],Qi.prototype,"spacing");S([_i],Qi.prototype,"aspectRatio");S([_i],Qi.prototype,"itemStyler");S([_i],Qi.prototype,"shadow");S([_i],Qi.prototype,"label");S([_i],Qi.prototype,"stageLabel");S([_i],Qi.prototype,"tooltip");function n$(e,{x:t,y:i,top:o,right:s,bottom:n,left:r}){e.x0=t-o/2,e.x1=t+o/2,e.x2=t+n/2,e.x3=t-n/2,e.y0=i-r/2,e.y1=i-s/2,e.y2=i+s/2,e.y3=i+r/2}function BCe(e){return{fromFn:(s,n)=>{const{x:r,y:a}=n;let{top:l,right:c,bottom:d,left:u}=n;return e==="vertical"?(l=0,d=0):(u=0,c=0),{x:r,y:a,top:l,right:c,bottom:d,left:u}},toFn:(s,n)=>{const{x:r,y:a,top:l,right:c,bottom:d,left:u}=n;return{x:r,y:a,top:l,right:c,bottom:d,left:u}},applyFn:n$}}var{StateMachine:GCe,valueProperty:a3,SeriesNodePickMode:l3,CachedTextMeasurerPool:zCe,TextUtils:VCe,createDatumId:_Ce,BBox:Tk,Group:Rk,Selection:a0,Text:c3,PointerEvents:d3,applyShapeStyle:HCe,mergeDefaults:u3,fromToMotion:$Ce,seriesLabelFadeInAnimation:WCe,getShapeStyle:Lk,getLabelStyles:jCe}=R,uM=class extends R.DataModelSeries{constructor(e){super({moduleCtx:e,categoryKey:void 0,pickModes:[l3.EXACT_SHAPE_MATCH,l3.NEAREST_NODE]}),this.properties=new Qi,this.itemGroup=this.contentGroup.appendChild(new Rk({name:"itemGroup"})),this.itemLabelGroup=this.contentGroup.appendChild(new Rk({name:"itemLabelGroup"})),this.stageLabelGroup=this.contentGroup.appendChild(new Rk({name:"stageLabelGroup"})),this.datumSelection=a0.select(this.itemGroup,()=>this.nodeFactory()),this.labelSelection=a0.select(this.itemLabelGroup,c3),this.stageLabelSelection=a0.select(this.stageLabelGroup,c3),this.highlightDatumSelection=a0.select(this.highlightGroup,()=>this.nodeFactory()),this.animationState=new GCe("empty",{empty:{update:{target:"ready",action:()=>this.animateEmptyUpdateReady()},reset:"empty",skip:"ready"},ready:{clear:"empty",reset:"empty",skip:"ready"}},()=>this.checkProcessedDataAnimatable()),this.itemLabelGroup.pointerEvents=d3.None,this.stageLabelGroup.pointerEvents=d3.None}addChartEventListeners(){this.cleanup.register(this.ctx.eventsHub.on("legend:item-click",e=>this.onLegendItemClick(e)))}nodeFactory(){return new Kl}getNodeData(){return this.contextNodeData?.nodeData}resetAnimation(e){e==="initial"?this.animationState.transition("reset"):e==="ready"&&this.animationState.transition("skip")}async processData(e){if(this.data==null)return;const{id:t,visible:i,ctx:{legendManager:o}}=this,{stageKey:s,valueKey:n}=this.properties,r="category",a="number",l=(d,u,h)=>i&&o.getItemEnabled({seriesId:t,itemId:h}),c=this.visible?{}:{forceValue:0};await this.requestDataModel(e,this.data,{props:[a3(s,r,{id:"xValue"}),a3(n,a,{id:"yValue",...c,validation:l,invalidValue:0})]})}createNodeData(){const{id:e,dataModel:t,processedData:i,properties:o,visible:s,ctx:{legendManager:n}}=this,{stageKey:r,valueKey:a,direction:l,reverse:c=l==="horizontal",spacing:d,aspectRatio:u,label:h,stageLabel:p}=o;if(t==null||i==null)return;const g=l==="horizontal",f=t.resolveColumnById(this,"xValue",i),y=t.resolveColumnById(this,"yValue",i),v=t.getDomain(this,"xValue","value",i),b=t.getDomain(this,"yValue","value",i),C=zCe.getMeasurer({font:p});let x,D;g?(x="center",D=p.placement==="before"?"bottom":"top"):(x=p.placement==="after"?"left":"right",D="middle");const k=p.enabled?[]:void 0;let A=0,w=0,M=0;const T=i.dataSources.get(this.id)??[];T.forEach((W,j)=>{const X=f[j],q=y[j],Q=s&&n.getItemEnabled({seriesId:e,itemId:j});if(M+=q,k==null)return;const ue=this.getLabelText(X,W,r,"x",v,this.properties.stageLabel,{datum:W,value:q,stageKey:r,valueKey:a}),{width:de}=C.measureText(ue),te=ue.split(`
|
|
25
25
|
`).length*VCe.getLineHeight(h.fontSize);A=Math.max(A,de),w=Math.max(w,te),k.push({x:NaN,y:NaN,text:ue,textAlign:x,textBaseline:D,visible:Q})});const L=this._nodeDataDependencies?.seriesRectWidth??0,N=this._nodeDataDependencies?.seriesRectHeight??0,O=d*(i.input.count-1);let F;if(g){const W=w+p.spacing;F=new Tk(0,p.placement==="before"?W:0,L,N-W)}else{const W=A+p.spacing;F=new Tk(p.placement==="after"?0:W,0,L-W,N)}if(u!=null&&u!==0){const W=l==="horizontal"?1/u:u,j=Math.min(F.width,F.height*W),X=j/W;F=new Tk(F.x+(F.width-j)/2,F.y+(F.height-X)/2,j,X)}let E,G;g?G=p.placement==="before"?F.y-p.spacing:F.y+F.height+p.spacing:E=p.placement==="after"?F.x+F.width+p.spacing:F.x-p.spacing;const B=F.width-(g?O:0),z=F.height-(g?0:O);if(B<0||z<0)return;const V=[],$=[];let _=0;return T.forEach((W,j)=>{const X=f[j],q=y[j],Q=s&&n.getItemEnabled({seriesId:e,itemId:j}),ue=_+q,de=(_+ue)/(2*M),te=(ue-_)/M,se=g?B*de+d*j:B*.5,ie=g?z*.5:z*de+d*j,le=F.x+se,ye=F.y+ie;if(k!=null){const oe=k[j];oe.x=E??le,oe.y=G??ye}let Me,De,ge,Ge;if(g){const oe=B*te;Me=oe,ge=oe;const pe=(se+oe/2)*(z/F.width),we=(se-oe/2)*(z/F.width);De=c?F.height-pe:pe,Ge=c?F.height-we:we}else{const oe=z*te;De=oe,Ge=oe;const pe=(ie-oe/2)*(B/F.height),we=(ie+oe/2)*(B/F.height);Me=c?F.width-pe:pe,ge=c?F.width-we:we}const ce=this.getLabelText(q,W,a,"y",b,h,{datum:W,value:q,stageKey:r,valueKey:a}),be={x:le,y:ye,text:ce,textAlign:"center",textBaseline:"middle",visible:Q};$.push(be),V.push({series:this,itemId:a,datum:W,datumIndex:j,index:j,xValue:X,yValue:q,x:le,y:ye,top:Me,right:De,bottom:ge,left:Ge,label:be,enabled:Q,midPoint:{x:le,y:ye}}),_=ue}),{itemId:e,nodeData:V,labelData:$,stageLabelData:k,bounds:F}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update({seriesRect:e}){this.checkResize(e);const{datumSelection:t,labelSelection:i,stageLabelSelection:o,highlightDatumSelection:s}=this;this.updateSelections(),this.contentGroup.visible=this.visible,this.contentGroup.opacity=this.getOpacity();let n=this.ctx.highlightManager?.getActiveHighlight();n!=null&&(n.series!==this||n.datum==null)&&(n=void 0);const r=this.contextNodeData?.nodeData??[],a=this.contextNodeData?.labelData??[],l=this.contextNodeData?.stageLabelData??[];this.datumSelection=this.updateDatumSelection({nodeData:r,datumSelection:t}),this.updateDatumNodes({datumSelection:t,isHighlight:!1}),this.labelSelection=this.updateLabelSelection({labelData:a,labelSelection:i}),this.updateLabelNodes({labelSelection:i,labelProperties:this.properties.label}),this.stageLabelSelection=this.updateStageLabelSelection({stageLabelData:l,stageLabelSelection:o}),this.updateLabelNodes({labelSelection:o,labelProperties:this.properties.stageLabel}),this.highlightDatumSelection=this.updateDatumSelection({nodeData:n!=null?[n]:[],datumSelection:s}),this.updateDatumNodes({datumSelection:s,isHighlight:!0}),this.animationState.transition("update")}updateDatumSelection(e){return e.datumSelection.update(e.nodeData)}getItemStyle({datumIndex:e,datum:t},i){const{id:o,properties:s}=this,{stageKey:n,valueKey:r,itemStyler:a,fillGradientDefaults:l,fillPatternDefaults:c,fillImageDefaults:d}=s,u=this.getHighlightStyle(i,e),h=u3(u,s.getStyle(e));let p=Lk(h,l,c,d);if(a!=null&&e!=null){const g=this.ctx.highlightManager?.getActiveHighlight(),f=this.cachedDatumCallback(_Ce(e,i?"highlight":"node"),()=>{const y=this.getHighlightStateString(g,i,e);return this.callWithContext(a,{seriesId:o,datum:t,stageKey:n,valueKey:r,highlighted:i,highlightState:y,...p})});f&&(p=Lk(u3(f,p),l,c,d))}return p}updateDatumNodes(e){const{datumSelection:t,isHighlight:i}=e,{properties:o}=this,{shadow:s}=o,n=this.contextNodeData?.bounds,r=n?{series:n,axis:n}:void 0;t.each((a,l)=>{const c=this.getItemStyle(l,i);HCe(a,c,r),n$(a,l),a.fillShadow=s})}updateLabelSelection(e){return e.labelSelection.update(this.properties.label.enabled?e.labelData:[])}updateStageLabelSelection(e){return e.stageLabelSelection.update(e.stageLabelData)}updateLabelNodes(e){e.labelSelection.each((t,i,o)=>{const{visible:s,x:n,y:r,text:a,textAlign:l,textBaseline:c}=i,d=jCe(this,void 0,this.properties,e.labelProperties),{color:u,fontSize:h,fontStyle:p,fontWeight:g,fontFamily:f}=d;t.visible=s,t.x=n,t.y=r,t.text=a,t.fill=u,t.fillOpacity=this.getHighlightStyle(!1,o).opacity??1,t.fontStyle=p,t.fontWeight=g,t.fontSize=h,t.fontFamily=f,t.textAlign=l,t.textBaseline=c,t.setBoxing(d)})}computeFocusBounds(e){const t=this.getNodeData()?.[e.datumIndex];if(t!==void 0){for(const i of this.datumSelection)if(i.datum===t)return i.node}}getTooltipContent(e){const{id:t,dataModel:i,processedData:o,properties:s}=this,{stageKey:n,valueKey:r,tooltip:a}=s;if(!i||!o)return;const l=o.dataSources.get(this.id)?.[e],c=i.resolveColumnById(this,"xValue",o)[e],d=i.resolveColumnById(this,"yValue",o)[e];if(c==null)return;const u=this.getLabelText(c,l,n,"x",i.getDomain(this,"xValue","value",o),this.properties.stageLabel,{datum:l,value:c,stageKey:n,valueKey:r}),h=this.getLabelText(d,l,r,"y",i.getDomain(this,"yValue","value",o),this.properties.stageLabel,{datum:l,value:d,stageKey:n,valueKey:r}),p=this.getItemStyle({datumIndex:e,datum:l},!1);return this.formatTooltipWithContext(a,{symbol:this.legendItemSymbol(e),data:[{label:u,value:h}]},{seriesId:t,datum:l,title:void 0,stageKey:n,valueKey:r,...p})}getSeriesDomain(){return[NaN,NaN]}getSeriesRange(e,t){return[NaN,NaN]}pickNodeClosestDatum({x:e,y:t}){let i=1/0,o;return this.datumSelection.each((s,n)=>{const r=s.distanceSquared(e,t);r<i&&(i=r,o=n)}),o!=null?{datum:o,distance:Math.sqrt(i)}:void 0}legendItemSymbol(e){const{fills:t,strokes:i,strokeWidth:o,fillOpacity:s,strokeOpacity:n,lineDash:r,lineDashOffset:a}=this.properties,l=t[e%t.length]??"black",c=i[e%i.length]??"black";return{marker:Lk({fill:l,fillOpacity:s,stroke:c,strokeWidth:o,strokeOpacity:n,lineDash:r,lineDashOffset:a},this.properties.fillGradientDefaults,this.properties.fillPatternDefaults,this.properties.fillImageDefaults)}}getLegendData(e){const{processedData:t,dataModel:i,id:o,ctx:{legendManager:s},visible:n}=this;if(!i||!t||e!=="category")return[];const{showInLegend:r}=this.properties,a=[],l=i.resolveColumnById(this,"xValue",t);return(t.dataSources.get(this.id)??[]).forEach((d,u)=>{const h=l[u];a.push({legendType:"category",id:o,itemId:u,seriesId:o,enabled:n&&s.getItemEnabled({seriesId:o,itemId:u}),label:{text:h},symbol:this.legendItemSymbol(u),hideInLegend:!r})}),a}animateReset(){this.ctx.animationManager.skipCurrentBatch(),this.ctx.animationManager.stopByAnimationGroupId(this.id)}animateEmptyUpdateReady(){const{datumSelection:e,labelSelection:t,properties:i}=this,o=BCe(i.direction);$Ce(this.id,"nodes",this.ctx.animationManager,[e],o),WCe(this,"labels",this.ctx.animationManager,t)}hasItemStylers(){return this.properties.itemStyler!=null}};uM.className="PyramidSeries";uM.type="pyramid";var{commonSeriesOptionsDefs:UCe,pyramidSeriesThemeableOptionsDef:KCe}=R,YCe={...KCe,...UCe,type:ee(Ye("pyramid")),stageKey:ee(H),valueKey:ee(H)},{ThemeSymbols:{DEFAULT_SHADOW_COLOUR:XCe}}=R,ZCe={series:{direction:"vertical",strokeWidth:{$isUserOption:["./strokes/0",2,0]},spacing:2,fills:{$palette:"fills"},strokes:{$palette:"strokes"},fillGradientDefaults:R.FILL_GRADIENT_LINEAR_DEFAULTS,fillPatternDefaults:R.FILL_PATTERN_DEFAULTS,fillImageDefaults:R.FILL_IMAGE_DEFAULTS,label:{...R.LABEL_BOXING_DEFAULTS,enabled:!0,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"chartBackgroundColor"}},stageLabel:{...R.LABEL_BOXING_DEFAULTS,enabled:!0,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"textColor"},spacing:12},shadow:{enabled:!1,color:XCe,xOffset:3,yOffset:3,blur:5},highlight:R.singleSeriesHighlightStyle()}},qCe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["standalone"],identifier:"pyramid",moduleFactory:e=>new uM(e),solo:!0,themeTemplate:ZCe},QCe={type:"series",name:"pyramid",chartType:"standalone",enterprise:!0,options:YCe,create:e=>new uM(e)},{ThemeConstants:{POLAR_AXIS_TYPE:JCe}}=R,r$={series:{stroke:{$palette:"stroke"},label:{...R.LABEL_BOXING_DEFAULTS,enabled:!1,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"textColor"}},marker:{enabled:!0,fill:{$palette:"fill"},stroke:{$palette:"stroke"},fillGradientDefaults:R.FILL_GRADIENT_RADIAL_REVERSED_DEFAULTS,fillPatternDefaults:R.FILL_PATTERN_DEFAULTS,fillImageDefaults:R.FILL_IMAGE_DEFAULTS,fillOpacity:1,shape:"circle",size:6,strokeOpacity:1,strokeWidth:{$isUserOption:["./stroke",1,0]}},highlight:R.multiSeriesHighlightStyle(),tooltip:{range:{$path:["/tooltip/range","nearest"]}}},axes:{[JCe.ANGLE_CATEGORY]:{label:{spacing:10}}}},e0e=R.mergeDefaults({series:{stroke:R.SAFE_STROKE_FILL_OPERATION,strokeWidth:2}},r$),t0e=R.mergeDefaults({series:{fill:{$palette:"fill"},fillGradientDefaults:R.FILL_GRADIENT_LINEAR_DEFAULTS,fillPatternDefaults:R.FILL_PATTERN_DEFAULTS,fillImageDefaults:R.FILL_IMAGE_DEFAULTS,fillOpacity:.8,strokeWidth:2,marker:{enabled:!1}}},r$),{Label:i0e,SeriesMarker:o0e,SeriesProperties:s0e,makeSeriesTooltip:n0e,Property:Rn}=R,Hs=class extends s0e{constructor(){super(...arguments),this.stroke="black",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.rotation=0,this.marker=new o0e,this.label=new i0e,this.tooltip=n0e(),this.connectMissingData=!1}};S([Rn],Hs.prototype,"angleKey");S([Rn],Hs.prototype,"radiusKey");S([Rn],Hs.prototype,"angleName");S([Rn],Hs.prototype,"radiusName");S([Rn],Hs.prototype,"stroke");S([Rn],Hs.prototype,"strokeWidth");S([Rn],Hs.prototype,"strokeOpacity");S([Rn],Hs.prototype,"lineDash");S([Rn],Hs.prototype,"lineDashOffset");S([Rn],Hs.prototype,"rotation");S([Rn],Hs.prototype,"marker");S([Rn],Hs.prototype,"label");S([Rn],Hs.prototype,"tooltip");S([Rn],Hs.prototype,"connectMissingData");var{DEFAULT_POLAR_DIRECTION_KEYS:r0e,DEFAULT_POLAR_DIRECTION_NAMES:a0e,ChartAxisDirection:fr,PolarAxis:l0e,SeriesNodePickMode:h3,valueProperty:p3,fixNumericExtent:c0e,seriesLabelFadeInAnimation:d0e,markerFadeInAnimation:u0e,resetMarkerFn:h0e,animationValidation:p0e,computeMarkerFocusBounds:g0e,extent:f0e,BBox:m0e,Group:y0e,Path:v0e,PointerEvents:b0e,Selection:g3,Text:C0e,Marker:S0e,mergeDefaults:x0e,getShapeStyle:w0e,updateLabelNode:D0e}=R,M0e=class extends R.SeriesNodeEvent{constructor(e,t,i,o){super(e,t,i,o),this.angleKey=o.properties.angleKey,this.radiusKey=o.properties.radiusKey}},gE=class extends R.PolarSeries{constructor(e){super({moduleCtx:e,categoryKey:"angleValue",propertyKeys:r0e,propertyNames:a0e,pickModes:[h3.NEAREST_NODE,h3.EXACT_SHAPE_MATCH],canHaveAxes:!0,animationResetFns:{item:h0e},clipFocusBox:!1}),this.properties=new Hs,this.NodeEvent=M0e,this.lineGroup=this.contentGroup.appendChild(new y0e({name:"radar-line"})),this.lineSelection=g3.select(this.lineGroup,v0e),this.resetInvalidToZero=!1,this.circleCache={r:0,cx:0,cy:0},this.lineGroup.zIndex=0,this.itemGroup.zIndex=1}nodeFactory(){return new S0e}getSeriesDomain(e){const{dataModel:t,processedData:i}=this;if(!i||!t)return[];if(e===fr.Angle)return t.getDomain(this,"angleValue","value",i);{const o=t.getDomain(this,"radiusValue","value",i),s=f0e(o.length===0?o:[0].concat(o));return c0e(s)}}async processData(e){const{angleKey:t,radiusKey:i}=this.properties,o=[];this.ctx.animationManager.isSkipped()||o.push(p0e());const s=this.axes[fr.Radius]?.scale.type,n=this.axes[fr.Angle]?.scale.type;await this.requestDataModel(e,this.data,{props:[p3(t,n,{id:"angleValue"}),p3(i,s,{id:"radiusValue",invalidValue:void 0}),...o]}),this.animationState.transition("updateData")}didCircleChange(){const e=this.radius,t=this.centerX,i=this.centerY,o=this.circleCache;return e===o.r&&t===o.cx&&i===o.cy?!1:(this.circleCache={r:e,cx:t,cy:i},!0)}getAxisInnerRadius(){const e=this.axes[fr.Radius];return e instanceof l0e?this.radius*e.innerRadiusRatio:0}maybeRefreshNodeData(){if(!this.didCircleChange()&&!this.nodeDataRefresh)return;const{nodeData:t=[]}=this.createNodeData()??{};this.nodeData=t,this.nodeDataRefresh=!1}createNodeData(){const{processedData:e,dataModel:t}=this;if(!e||!t)return;const{angleKey:i,radiusKey:o,angleName:s,radiusName:n,marker:r,label:a}=this.properties,l=this.axes[fr.Angle]?.scale,c=this.axes[fr.Radius]?.scale;if(!l||!c)return;const d=t.resolveColumnById(this,"angleValue",e),u=t.resolveColumnById(this,"radiusValue",e),h=this.getAxisInnerRadius(),p=this.getSeriesDomain(fr.Radius),f=(e.dataSources.get(this.id)??[]).map((y,v)=>{const b=d[v],C=u[v],x=l.convert(b),D=this.radius+h-c.convert(C),k=Math.cos(x),A=Math.sin(x),w=k*D,M=A*D;let T;if(a.enabled){const L=this.getLabelText(C,y,o,"radius",p,a,{value:C,datum:y,angleKey:i,radiusKey:o,angleName:s,radiusName:n});if(L){let N="right";Ht(k,0)?N="center":k>0&&(N="left");let O="bottom";Ht(A,0)?O="middle":A>0&&(O="top"),T={x:w+k*r.size,y:M+A*r.size,text:L,textAlign:N,textBaseline:O}}}return{series:this,datum:y,datumIndex:v,index:v,point:{x:w,y:M,size:r.size},midPoint:{x:w,y:M},label:T,angleValue:b,radiusValue:C,missing:!Ct(x)||!Ct(D)}});return{itemId:o,nodeData:f,labelData:f}}update({seriesRect:e}){const t=this.checkResize(e),i=!this.ctx.animationManager.isSkipped(),{series:o}=this.ctx.highlightManager?.getActiveHighlight()??{};this.highlightGroup.visible=(i||this.visible)&&o===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.updatePathNodes(),this.updateMarkers(this.itemSelection,!1),this.updateMarkers(this.highlightSelection,!0),this.updateLabels(),t&&this.animationState.transition("resize"),this.animationState.transition("update")}updatePathSelections(){const e=this.visible?[!0]:[];this.lineSelection.update(e)}updateMarkerSelection(){this.properties.marker.isDirty()&&(this.itemSelection.clear(),this.itemSelection.cleanup(),this.itemSelection=g3.select(this.itemGroup,()=>this.nodeFactory(),!1)),this.itemSelection.update(this.properties.marker.enabled?this.nodeData:[])}getMarkerFill(e){return e?.fill??this.properties.marker.fill}getDatumStylerProperties(e){const{id:t,properties:i}=this,{angleKey:o,radiusKey:s}=i;return{seriesId:t,datum:e,angleKey:o,radiusKey:s}}updateMarkers(e,t){const{visible:i}=this,{marker:o,stroke:s,strokeWidth:n,strokeOpacity:r}=this.properties;let a=[];if(i&&o.shape&&o.enabled)if(t){const c=this.ctx.highlightManager?.getActiveHighlight();c?.datum&&(a=[c])}else a=this.nodeData;const l=this.getShapeFillBBox();e.update(a).each((c,d)=>{const u=this.getMarkerStyle(o,d,this.getDatumStylerProperties(d),t,void 0,{stroke:s,strokeWidth:n,strokeOpacity:r});this.applyMarkerStyle(u,c,d.point,l)})}updateLabels(){this.labelSelection.update(this.nodeData).each((e,t)=>{if(t.label){e.fillOpacity=this.getHighlightStyle(!1,t.datumIndex).opacity??1;const o=this.ctx.highlightManager?.getActiveHighlight(),s=this.getHighlightStateString(o,!1,t.datumIndex);D0e(this,e,this.properties,this.properties.label,t.label,!1,s)}})}getTooltipContent(e){const{id:t,dataModel:i,processedData:o,axes:s,properties:n}=this,{angleKey:r,angleName:a,radiusKey:l,radiusName:c,tooltip:d,marker:u}=n,h=s[fr.Angle],p=s[fr.Radius];if(!i||!o||!h||!p)return;const g=o.dataSources.get(this.id)?.[e],f=i.resolveColumnById(this,"angleValue",o)[e],y=i.resolveColumnById(this,"radiusValue",o)[e];if(f==null)return;const v=this.getMarkerStyle(u,{datum:g,datumIndex:e},this.getDatumStylerProperties(g),!1);return this.formatTooltipWithContext(d,{heading:this.getAxisValueText(h,"tooltip",f,g,r,void 0),symbol:this.legendItemSymbol(),data:[{label:c,fallbackLabel:l,value:this.getAxisValueText(p,"tooltip",y,g,l,void 0)}]},{seriesId:t,datum:g,title:a,angleKey:r,radiusKey:l,angleName:a,radiusName:c,...v})}legendItemSymbol(){const{stroke:e,strokeWidth:t,strokeOpacity:i,lineDash:o,marker:s}=this.properties;return{marker:w0e({shape:s.shape,enabled:s.enabled||t<=0,fill:this.getMarkerFill()??s.stroke??e??"rgba(0, 0, 0, 0)",stroke:s.stroke??e??"rgba(0, 0, 0, 0)",fillOpacity:s.fillOpacity,strokeOpacity:s.strokeOpacity,strokeWidth:s.strokeWidth,lineDash:s.lineDash,lineDashOffset:s.lineDashOffset},s.fillGradientDefaults,s.fillPatternDefaults,s.fillImageDefaults),line:{stroke:e,strokeOpacity:i,strokeWidth:t,lineDash:o}}}getLegendData(e){if(e!=="category")return[];const{id:t,ctx:{legendManager:i},visible:o}=this,{radiusKey:s,radiusName:n,showInLegend:r}=this.properties;return[{legendType:"category",id:t,itemId:s,seriesId:t,enabled:o&&i.getItemEnabled({seriesId:t,itemId:s}),label:{text:n??s},symbol:this.legendItemSymbol(),hideInLegend:!r}]}pickNodeClosestDatum(e){const{nodeData:t,centerX:i,centerY:o}=this,{x:s,y:n}=e,r=this.radius;if(Math.sqrt((s-i)**2+(n-o)**2)>r+this.properties.marker.size)return;let l=1/0,c;for(const d of t){const{point:{x:u=NaN,y:h=NaN}={}}=d;if(isNaN(u)||isNaN(h))continue;const p=Math.sqrt((e.x-u-i)**2+(e.y-h-o)**2);p<l&&(l=p,c=d)}if(c){const d=Math.max(l-(c.point?.size??0),0);return{datum:c,distance:d}}}computeLabelsBBox(){const{label:e}=this.properties;this.maybeRefreshNodeData();const t=[],i=new C0e;return this.nodeData.forEach(o=>{if(!e.enabled||!o.label)return;i.text=o.label.text,i.x=o.label.x,i.y=o.label.y,i.setFont(e),i.setAlign(o.label);const s=i.getBBox();t.push(s)}),t.length===0?null:m0e.merge(t)}getLineNode(){return this.lineSelection?.at(0)}beforePathAnimation(){this.updatePathNodes()}updatePathNodes(){const e=this.getLineNode();if(!e)return;const{strokeWidth:t,stroke:i,strokeOpacity:o,lineDash:s,lineDashOffset:n,opacity:r}=x0e(this.getHighlightStyle(),this.properties);e.setProperties({fill:void 0,lineJoin:"round",lineCap:"round",pointerEvents:b0e.None,opacity:r,stroke:i,strokeWidth:t,strokeOpacity:o,lineDash:s,lineDashOffset:n})}getLinePoints(){const{nodeData:e,resetInvalidToZero:t}=this,{connectMissingData:i}=this.properties;if(e.length===0)return[];const o=this.axes[fr.Radius],n=this.axes[fr.Angle]?.isReversed(),a=o?.isReversed()&&!n?[...e].reverse():e,l=[];let c=!1,d;return a.forEach((u,h)=>{let{x:p,y:g}=u.point;const f=isNaN(p)||isNaN(g);f||(d??(d=u)),f&&!i&&(p=0,g=0);const y=h===0||!t&&!i&&(f||c);l.push({x:p,y:g,moveTo:y}),c=f}),d!==void 0&&l.push({x:d.point.x,y:d.point.y,moveTo:!1}),l}animateSinglePath(e,t,i){const{path:o}=e;o.clear(!0);const s=this.getAxisInnerRadius(),n=this.axes[fr.Radius],a=n?.isReversed()?this.radius+s-n?.scale.convert(0):s;t.forEach(l=>{const{x:c,y:d,arc:u,radius:h=0,startAngle:p=0,endAngle:g=0,moveTo:f}=l,y=Math.atan2(d,c),v=a*Math.cos(y),b=a*Math.sin(y),C=i,x=v*(1-C)+c*C,D=b*(1-C)+d*C;u?o.arc(c,d,h,p,g):f?o.moveTo(x,D):o.lineTo(x,D)}),e.checkPathDirty()}animatePaths(e){const t=this.getLinePoints(),i=this.getLineNode();i&&this.animateSinglePath(i,t,e)}animateEmptyUpdateReady(){const{itemSelection:e,labelSelection:t}=this,{animationManager:i}=this.ctx;this.beforePathAnimation(),i.animate({id:`${this.id}_'path`,groupId:this.id,from:0,to:1,phase:"initial",collapsable:!1,onUpdate:o=>this.animatePaths(o),onStop:()=>this.animatePaths(1)}),u0e(this,i,"added",e),d0e(this,"labels",i,t)}animateWaitingUpdateReady(e){super.animateWaitingUpdateReady(e),this.resetPaths()}animateReadyResize(e){super.animateReadyResize(e),this.resetPaths()}resetPaths(){const e=this.getLineNode();if(e){const{path:t}=e,i=this.getLinePoints();e.fill=void 0,e.stroke=this.properties.stroke,e.strokeWidth=this.properties.strokeWidth,e.strokeOpacity=this.properties.strokeOpacity,e.lineDash=this.properties.lineDash,e.lineDashOffset=this.properties.lineDashOffset,t.clear(!0);for(const{x:o,y:s,moveTo:n}of i)n?t.moveTo(o,s):t.lineTo(o,s);e.checkPathDirty()}}getFormattedMarkerStyle(e){const{angleKey:t,radiusKey:i}=this.properties;return this.getMarkerStyle(this.properties.marker,e,{angleKey:t,radiusKey:i},!0)}computeFocusBounds(e){return g0e(this,e)}};gE.className="RadarSeries";var{FillGradientDefaults:k0e,FillPatternDefaults:A0e,FillImageDefaults:I0e,Property:Kb}=R,lm=class extends Hs{constructor(){super(...arguments),this.fill="black",this.fillGradientDefaults=new k0e,this.fillPatternDefaults=new A0e,this.fillImageDefaults=new I0e,this.fillOpacity=1}};S([Kb],lm.prototype,"fill");S([Kb],lm.prototype,"fillGradientDefaults");S([Kb],lm.prototype,"fillPatternDefaults");S([Kb],lm.prototype,"fillImageDefaults");S([Kb],lm.prototype,"fillOpacity");var{Group:T0e,Path:R0e,PointerEvents:L0e,Selection:P0e,ChartAxisDirection:f3,applyShapeStyle:m3,getShapeFill:E0e,getShapeStyle:F0e,mergeDefaults:N0e}=R,hM=class extends gE{constructor(e){super(e),this.properties=new lm,this.areaGroup=this.contentGroup.appendChild(new T0e({name:"radar-area"})),this.areaSelection=P0e.select(this.areaGroup,R0e),this.resetInvalidToZero=!0,this.areaGroup.zIndex=-1}updatePathSelections(){const e=this.visible?[!0]:[];this.areaSelection.update(e),super.updatePathSelections()}getAreaNode(){return this.areaSelection.at(0)}getMarkerFill(e){return e?.fill??this.properties.marker.fill??this.properties.fill}updatePathNodes(){super.updatePathNodes();const{fill:e,fillOpacity:t,opacity:i}=N0e(this.getHighlightStyle(),this.properties),{fill:o,fillOpacity:s}=F0e({fill:e,fillOpacity:t},this.properties.fillGradientDefaults,this.properties.fillPatternDefaults,this.properties.fillImageDefaults),n=this.getAreaNode();n&&(m3(n,{fill:o,fillOpacity:s,stroke:void 0},this.getShapeFillBBox()),n.setProperties({lineJoin:"round",pointerEvents:L0e.None,opacity:i}))}animatePaths(e){super.animatePaths(e);const t=this.getAreaNode();t&&this.animateSinglePath(t,this.getAreaPoints(),e)}getAreaPoints(){const e=this.getLinePoints(),t=r=>{const a=this.axes[r];return a instanceof R.PolarAxis?a:void 0},i=t(f3.Radius),o=t(f3.Angle);if(!i?.isReversed())return e;const n=o?.getAxisLinePoints()?.points??[];return e.concat(...n)}hasItemStylers(){return this.properties.marker.itemStyler!=null||this.properties.label.itemStyler!=null}resetPaths(){super.resetPaths();const e=this.getAreaNode();if(e){const{path:t}=e,i=this.getAreaPoints(),o=E0e(this.properties.fill,this.properties.fillGradientDefaults,this.properties.fillPatternDefaults,this.properties.fillImageDefaults),s=this.getShapeFillBBox();m3(e,{fill:o,stroke:void 0,fillOpacity:this.properties.fillOpacity,lineDash:this.properties.lineDash,lineDashOffset:this.properties.lineDashOffset},s),e.lineJoin=e.lineCap="round",t.clear(!0),i.forEach(({x:n,y:r,moveTo:a,arc:l,radius:c=0,startAngle:d=0,endAngle:u=0})=>{l?t.arc(n,r,c,d,u):a?t.moveTo(n,r):t.lineTo(n,r)}),t.closePath(),e.checkPathDirty()}}};hM.className="RadarAreaSeries";hM.type="radar-area";var{commonSeriesOptionsDefs:O0e,radarAreaSeriesThemeableOptionsDef:B0e}=R,G0e={...O0e,...B0e,type:ee(Ye("radar-area")),angleKey:ee(H),radiusKey:ee(H),angleName:H,radiusName:H},{ThemeConstants:{POLAR_AXIS_TYPE:y3}}=R,z0e={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"radar-area",moduleFactory:e=>new hM(e),defaultAxes:[{type:y3.ANGLE_CATEGORY},{type:y3.RADIUS_NUMBER}],themeTemplate:t0e},V0e={type:"series",name:"radar-area",chartType:"polar",enterprise:!0,options:G0e,create:e=>new hM(e)},pM=class extends gE{hasItemStylers(){return this.properties.marker.itemStyler!=null||this.properties.label.itemStyler!=null}updatePathSelections(){this.lineSelection.update(this.visible?[!0]:[])}};pM.className="RadarLineSeries";pM.type="radar-line";var{commonSeriesOptionsDefs:_0e,radarLineSeriesThemeableOptionsDef:H0e}=R,$0e={..._0e,...H0e,type:ee(Ye("radar-line")),angleKey:ee(H),radiusKey:ee(H),angleName:H,radiusName:H},{POLAR_AXIS_TYPE:v3}=R.ThemeConstants,W0e={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"radar-line",moduleFactory:e=>new pM(e),defaultAxes:[{type:v3.ANGLE_CATEGORY},{type:v3.RADIUS_NUMBER}],themeTemplate:e0e},j0e={type:"series",name:"radar-line",chartType:"polar",enterprise:!0,options:$0e,create:e=>new pM(e)},{SeriesProperties:U0e,FillGradientDefaults:K0e,FillPatternDefaults:Y0e,FillImageDefaults:X0e,makeSeriesTooltip:Z0e,Property:po,Label:q0e}=R,Ji=class extends U0e{constructor(){super(...arguments),this.fill="black",this.fillGradientDefaults=new K0e,this.fillPatternDefaults=new Y0e,this.fillImageDefaults=new X0e,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 q0e,this.tooltip=Z0e()}getStyle(){const{fill:e,fillOpacity:t,stroke:i,strokeWidth:o,strokeOpacity:s,lineDash:n,lineDashOffset:r,cornerRadius:a}=this;return{fill:e,fillOpacity:t,stroke:i,strokeWidth:o,strokeOpacity:s,lineDash:n,lineDashOffset:r,cornerRadius:a,opacity:1}}};S([po],Ji.prototype,"angleKey");S([po],Ji.prototype,"radiusKey");S([po],Ji.prototype,"angleName");S([po],Ji.prototype,"radiusName");S([po],Ji.prototype,"fill");S([po],Ji.prototype,"fillGradientDefaults");S([po],Ji.prototype,"fillPatternDefaults");S([po],Ji.prototype,"fillImageDefaults");S([po],Ji.prototype,"fillOpacity");S([po],Ji.prototype,"stroke");S([po],Ji.prototype,"strokeWidth");S([po],Ji.prototype,"strokeOpacity");S([po],Ji.prototype,"lineDash");S([po],Ji.prototype,"lineDashOffset");S([po],Ji.prototype,"cornerRadius");S([po],Ji.prototype,"itemStyler");S([po],Ji.prototype,"rotation");S([po],Ji.prototype,"stackGroup");S([po],Ji.prototype,"normalizedTo");S([po],Ji.prototype,"label");S([po],Ji.prototype,"tooltip");var{SectorBox:b3,motion:Q0e}=R;function J0e(e,t,i){if(i==="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 i==="added"&&e.previousDatum!=null?"updated":i}function C3(e){return{toFn:(o,s,n)=>{let r,a,l,c,d;return n==="removed"?(r=e,a=e,l=s.innerRadius,c=s.outerRadius,d=new b3(r,a,l,c)):(r=s.startAngle,a=s.endAngle,l=isNaN(s.innerRadius)?o.innerRadius:s.innerRadius,c=isNaN(s.outerRadius)?o.outerRadius:s.outerRadius,d=s.clipSector),{startAngle:r,endAngle:a,innerRadius:l,outerRadius:c,clipSector:d}},fromFn:(o,s,n)=>{n=J0e(o,s,n);let r,a,l,c,d;n==="removed"||n==="updated"?(r=o.startAngle,a=o.endAngle,l=o.innerRadius,c=o.outerRadius,d=o.clipSector):(r=e,a=e,l=s.innerRadius,c=s.outerRadius),d??(d=new b3(r,a,l,c));const u=Q0e.NODE_UPDATE_STATE_TO_PHASE_MAPPING[n];return{startAngle:r,endAngle:a,innerRadius:l,outerRadius:c,clipSector:d,phase:u}}}}function eSe(e,t){return{centerX:0,centerY:0,innerRadius:t.innerRadius,outerRadius:t.outerRadius,startAngle:t.startAngle,endAngle:t.endAngle,clipSector:t.clipSector}}var{DEFAULT_POLAR_DIRECTION_KEYS:tSe,DEFAULT_POLAR_DIRECTION_NAMES:iSe,ChartAxisDirection:da,PolarAxis:oSe,diff:sSe,groupAccumulativeValueProperty:S3,keyProperty:nSe,normaliseGroupTo:rSe,valueProperty:aSe,fixNumericExtent:lSe,resetLabelFn:cSe,seriesLabelFadeInAnimation:dSe,seriesLabelFadeOutAnimation:uSe,animationValidation:hSe,angleBetween:pSe,createDatumId:x3,CategoryScale:gSe,Sector:fSe,SectorBox:mSe,motion:w3,isGradientFill:ySe,applyShapeStyle:vSe,getShapeStyle:Pk,updateLabelNode:bSe,mergeDefaults:D3}=R,CSe=class extends R.SeriesNodeEvent{constructor(e,t,i,o){super(e,t,i,o),this.angleKey=o.properties.angleKey,this.radiusKey=o.properties.radiusKey}},gM=class extends R.PolarSeries{constructor(e){super({moduleCtx:e,categoryKey:"radiusValue",propertyKeys:tSe,propertyNames:iSe,canHaveAxes:!0,animationResetFns:{item:eSe,label:cSe}}),this.properties=new Ji,this.NodeEvent=CSe,this.groupScale=new gSe,this.circleCache={r:0,cx:0,cy:0}}get defaultShapeStyle(){const e=this.axes[da.Angle]?.scale;return{...this.properties.fillGradientDefaults.toJson(),rotation:R.toDegrees(e.range[0])+90}}nodeFactory(){return new fSe}getSeriesDomain(e){const{dataModel:t,processedData:i}=this;if(!i||!t)return[];if(e===da.Angle){const o=t.getDomain(this,"angleValue-end","value",i),s=[o[0]>0?0:o[0],o[1]<0?0:o[1]];return lSe(s)}else return t.getDomain(this,"radiusValue","key",i)}async processData(e){const{angleKey:t,radiusKey:i,normalizedTo:o}=this.properties,s=!this.ctx.animationManager.isSkipped(),n=this.getStackId(),r=`${n}-trailing`,a=[];Wi(o)&&a.push(rSe([n,r],Math.abs(o))),s&&(this.processedData&&a.push(sSe(this.id,this.processedData)),a.push(hSe()));const l=this.visible?{}:{forceValue:0},c=this.axes[da.Radius]?.scale.type,d=this.axes[da.Angle]?.scale.type;await this.requestDataModel(e,this.data,{props:[nSe(i,c,{id:"radiusValue"}),aSe(t,d,{id:"angleValue-raw",invalidValue:null,...l}),...S3(t,"normal","current",{id:"angleValue-end",rangeId:"angleValue-range",invalidValue:null,groupId:n,separateNegative:!0,...l},d),...S3(t,"trailing","current",{id:"angleValue-start",invalidValue:null,groupId:r,separateNegative:!0,...l},d),...a],groupByKeys:!0,groupByData:!1}),this.animationState.transition("updateData")}didCircleChange(){const e=this.radius,t=this.centerX,i=this.centerY,o=this.circleCache;return e===o.r&&t===o.cx&&i===o.cy?!1:(this.circleCache={r:e,cx:t,cy:i},!0)}maybeRefreshNodeData(){if(!this.didCircleChange()&&!this.nodeDataRefresh)return;const{nodeData:t=[]}=this.createNodeData()??{};this.nodeData=t,this.nodeDataRefresh=!1}getAxisInnerRadius(){const e=this.axes[da.Radius];return e instanceof oSe?this.radius*e.innerRadiusRatio:0}createNodeData(){const{processedData:e,dataModel:t}=this;if(!t||!e||e.type!=="grouped")return;const i=this.axes[da.Angle],o=this.axes[da.Radius],s=i?.scale,n=o?.scale;if(!s||!n)return;const r=t.resolveKeysById(this,"radiusValue",e),a=t.resolveColumnById(this,"angleValue-start",e),l=t.resolveColumnById(this,"angleValue-end",e),c=t.resolveColumnById(this,"angleValue-raw",e),d=t.resolveProcessedDataIndexById(this,"angleValue-range");let u=0;o instanceof Su&&(u=o.groupPaddingInner);const{groupScale:h}=this,{index:p,visibleGroupCount:g}=this.ctx.seriesStateManager.getVisiblePeerGroupIndex(this);h.domain=Array.from({length:g}).map((G,B)=>String(B)),h.range=[0,Math.abs(n.bandwidth??0)],h.paddingInner=g>1?u:0;const f=h.bandwidth>=1?h.bandwidth:h.rawBandwidth,y=i.isReversed(),v=o.isReversed(),b=v?this.radius:this.getAxisInnerRadius(),x=(v?this.getAxisInnerRadius():this.radius)+b,D=this.getSeriesDomain(da.Angle),{angleKey:k,radiusKey:A,angleName:w,radiusName:M,label:T}=this.properties,L=(G,B,z,V)=>{const $=this.getLabelText(B,G,k,"angle",D,T,{value:B,datum:G,angleKey:k,radiusKey:A,angleName:w,radiusName:M});if($)return{x:z,y:V,text:$,textAlign:"center",textBaseline:"middle"}},N=[],O={itemId:A,nodeData:N,labelData:N};if(!this.visible)return O;const{dataSources:F}=e,E=F.get(this.id)??[];for(const{datumIndex:G,group:B}of t.forEachGroupDatum(this,e)){const z=E[G],V=r[G];if(V==null)return;const $=c[G],_=a[G],W=l[G],j=$>=0&&!Object.is($,-0),X=B.aggregation[d][j?1:0],q=j===y;let Q=s.convert(_,{clamp:!0}),ue=s.convert(W,{clamp:!0}),de=s.convert(0,{clamp:!0}),te=s.convert(X,{clamp:!0});q&&([de,te]=[te,de],[Q,ue]=[ue,Q]);const ie=x-n.convert(V)+h.convert(String(p)),le=ie+f,ye=(ie+le)/2,Me=Q+pSe(Q,ue)/2,De=Math.cos(Me)*ye,ge=Math.sin(Me)*ye,Ge=this.properties.label.enabled?L(z,$,De,ge):void 0,ce=new mSe(Q,ue,ie,le);N.push({series:this,datum:z,datumIndex:G,point:{x:De,y:ge,size:0},midPoint:{x:De,y:ge},label:Ge,angleValue:$,radiusValue:V,innerRadius:ie,outerRadius:le,startAngle:de,endAngle:te,clipSector:ce,reversed:q,index:G})}return O}update({seriesRect:e}){const 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")}getItemStyle(e,t){const{id:i,properties:o}=this,{angleKey:s,radiusKey:n,itemStyler:r,fillGradientDefaults:a,fillPatternDefaults:l,fillImageDefaults:c}=o,d=this.getHighlightStyle(t,e.datumIndex),u=D3(d,o.getStyle());let h=Pk(u,a,l,c);if(r!=null&&e!=null){const p=this.cachedDatumCallback(x3(this.getDatumId(e),t?"highlight":"node"),()=>{const g=this.ctx.highlightManager?.getActiveHighlight(),f=this.getHighlightStateString(g,t,e.datumIndex);return this.callWithContext(r,{seriesId:i,datum:e.datum,highlighted:t,highlightState:f,angleKey:s,radiusKey:n,...h})});p&&(h=Pk(D3(p,h),a,l,c))}return h}updateSectorSelection(e,t){let i=[];if(t){const s=this.ctx.highlightManager?.getActiveHighlight();s?.datum&&s.series===this&&i.push(s)}else i=this.nodeData;const o=this.getShapeFillBBox();e.update(i,void 0,s=>this.getDatumId(s)).each((s,n)=>{const r=pv(n);if(r==null)return;const a=this.getItemStyle(n,t),l=a.cornerRadius,c=a.fill,d=R.isGradientFill(c)&&c.bounds!=="item"?{centerX:0,centerY:0}:void 0;vSe(s,a,o,d),s.lineJoin="round",s.inset=s.stroke!=null?s.strokeWidth/2:0,s.startInnerCornerRadius=r.reversed?l:0,s.startOuterCornerRadius=r.reversed?l:0,s.endInnerCornerRadius=r.reversed?0:l,s.endOuterCornerRadius=r.reversed?0:l,t&&(s.startAngle=n.startAngle,s.endAngle=n.endAngle,s.clipSector=n.clipSector,s.innerRadius=n.innerRadius,s.outerRadius=n.outerRadius)})}updateLabels(){this.labelSelection.update(this.nodeData).each((e,t)=>{const o=this.ctx.highlightManager?.getActiveHighlight(),s=this.getHighlightStateString(o,!1,t.datumIndex);bSe(this,e,this.properties,this.properties.label,t.label,!1,s),e.fillOpacity=this.getHighlightStyle(!1,t.datumIndex).opacity??1})}getBarTransitionFunctions(){const e=this.axes[da.Angle]?.scale;let t=0;if(!e)return C3(t);const i=Math.min(e.domain[0],e.domain[1]),o=Math.max(e.domain[0],e.domain[1]);return i<=0&&o>=0&&(t=e.convert(0)),C3(t)}animateEmptyUpdateReady(){const{labelSelection:e}=this,t=this.getBarTransitionFunctions();w3.fromToMotion(this.id,"datums",this.ctx.animationManager,[this.itemSelection],t),dSe(this,"labels",this.ctx.animationManager,e)}animateClearingUpdateEmpty(){const{itemSelection:e}=this,{animationManager:t}=this.ctx,i=this.getBarTransitionFunctions();w3.fromToMotion(this.id,"datums",t,[e],i),uSe(this,"labels",t,this.labelSelection)}getTooltipContent(e){const{id:t,dataModel:i,processedData:o,axes:s,properties:n}=this,{angleKey:r,angleName:a,radiusKey:l,radiusName:c,tooltip:d}=n,u=s[da.Angle],h=s[da.Radius],p=this.nodeData?.[e];if(!i||!o||!u||!h||!p)return;const g=o.dataSources.get(this.id)?.[e],f=i.resolveKeysById(this,"radiusValue",o)[e],y=i.resolveColumnById(this,"angleValue-raw",o)[e];if(f==null)return;const v=this.getItemStyle(p,!1);return this.formatTooltipWithContext(d,{heading:this.getAxisValueText(h,"tooltip",f,g,l,void 0),symbol:this.legendItemSymbol(),data:[{label:a,fallbackLabel:r,value:this.getAxisValueText(u,"tooltip",y,g,r,void 0)}]},{seriesId:t,datum:g,title:a,angleKey:r,angleName:a,radiusKey:l,radiusName:c,...v})}pickNodeClosestDatum(e){return this.pickNodeNearestDistantObject(e,this.itemSelection.nodes())}legendItemSymbol(){const{fill:e,stroke:t,fillOpacity:i,strokeOpacity:o,strokeWidth:s,lineDash:n,lineDashOffset:r,fillPatternDefaults:a,fillImageDefaults:l}=this.properties,c=Pk({fill:e??"rgba(0, 0, 0, 0)",stroke:t??"rgba(0, 0, 0, 0)",fillOpacity:i,strokeOpacity:o,strokeWidth:s,lineDash:n,lineDashOffset:r},this.defaultShapeStyle,a,l);return ySe(c.fill)&&(c.fill={...c.fill,gradient:"linear",rotation:0,reverse:!1}),{marker:c}}getLegendData(e){if(e!=="category")return[];const{id:t,visible:i}=this,{angleKey:o,angleName:s,showInLegend:n}=this.properties;return[{legendType:"category",id:t,itemId:o,seriesId:t,enabled:i,label:{text:s??o},symbol:this.legendItemSymbol(),hideInLegend:!n}]}getDatumId(e){return x3(e.radiusValue)}computeLabelsBBox(){return null}getStackId(){return`radialBar-stack-${this.seriesGrouping?.groupIndex??this.id}-xValues`}hasItemStylers(){return this.properties.itemStyler!=null}};gM.className="RadialBarSeries";gM.type="radial-bar";var{commonSeriesOptionsDefs:SSe,radialBarSeriesThemeableOptionsDef:xSe}=R,wSe={...SSe,...xSe,type:ee(Ye("radial-bar")),angleKey:ee(H),radiusKey:ee(H),angleName:H,radiusName:H,grouped:U,stacked:U,stackGroup:H,normalizedTo:ne},{ThemeConstants:{POLAR_AXIS_TYPE:DSe}}=R,MSe={series:{fill:{$palette:"fill"},stroke:{$palette:"stroke"},fillGradientDefaults:R.FILL_GRADIENT_CONIC_DEFAULTS,fillPatternDefaults:R.FILL_PATTERN_DEFAULTS,fillImageDefaults:R.FILL_IMAGE_DEFAULTS,strokeWidth:{$isUserOption:["./stroke",1,0]},label:{...R.LABEL_BOXING_DEFAULTS,enabled:!1,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"chartBackgroundColor"}},highlight:R.multiSeriesHighlightStyle()},axes:{[DSe.RADIUS_CATEGORY]:{innerRadiusRatio:.2,groupPaddingInner:.2,paddingInner:.2,paddingOuter:.1}}},{POLAR_AXIS_TYPE:M3}=R.ThemeConstants,kSe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"radial-bar",moduleFactory:e=>new gM(e),defaultAxes:[{type:M3.ANGLE_NUMBER},{type:M3.RADIUS_CATEGORY}],themeTemplate:MSe,stackable:!0,groupable:!0},ASe={type:"series",name:"radial-bar",chartType:"polar",enterprise:!0,options:wSe,create:e=>new gM(e)},{Property:a$}=R,fE=class extends Vi{};S([a$],fE.prototype,"columnWidthRatio");S([a$],fE.prototype,"maxColumnWidthRatio");var{ChartAxisDirection:ISe,PolarAxis:TSe,RadialColumnShape:RSe,getRadialColumnWidth:LSe}=R,fM=class extends t${constructor(e){super(e,{animationResetFns:{item:vCe}}),this.properties=new fE}getStackId(){return`radarColumn-stack-${this.seriesGrouping?.groupIndex??this.id}-yValues`}nodeFactory(){return new RSe}getColumnTransitionFunctions(){const e=this.isRadiusAxisReversed()?this.radius:this.getAxisInnerRadius();return yCe(e)}isRadiusAxisCircle(){const e=this.axes[ISe.Radius];return e instanceof TSe?e.shape==="circle":!1}updateItemPath(e,t,i){e.isBeveled=this.isRadiusAxisCircle(),e.isRadiusAxisReversed=this.isRadiusAxisReversed(),i&&(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){const{columnWidthRatio:i=.5,maxColumnWidthRatio:o=.5}=this.properties;return LSe(e,t,this.radius,i,o)}hasItemStylers(){return this.properties.itemStyler!=null}};fM.className="RadialColumnSeries";fM.type="radial-column";var{commonSeriesOptionsDefs:PSe,radialColumnSeriesThemeableOptionsDef:ESe}=R,FSe={...PSe,...ESe,type:ee(Ye("radial-column")),angleKey:ee(H),radiusKey:ee(H),angleName:H,radiusName:H,grouped:U,stacked:U,stackGroup:H,normalizedTo:ne},{ThemeConstants:{POLAR_AXIS_TYPE:k3,POLAR_AXIS_SHAPE:A3}}=R,NSe={series:{fill:{$palette:"fill"},stroke:{$palette:"stroke"},fillGradientDefaults:R.FILL_GRADIENT_RADIAL_SERIES_DEFAULTS,fillPatternDefaults:R.FILL_PATTERN_DEFAULTS,fillImageDefaults:R.FILL_IMAGE_DEFAULTS,columnWidthRatio:.5,maxColumnWidthRatio:.5,strokeWidth:{$isUserOption:["./stroke",1,0]},label:{...R.LABEL_BOXING_DEFAULTS,enabled:!1,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"textColor"}},highlight:R.multiSeriesHighlightStyle()},axes:{[k3.ANGLE_CATEGORY]:{shape:{$findFirstSiblingNotOperation:A3.CIRCLE},groupPaddingInner:0,paddingInner:0,label:{spacing:10}},[k3.RADIUS_NUMBER]:{shape:{$findFirstSiblingNotOperation:A3.CIRCLE},innerRadiusRatio:.5}}},{POLAR_AXIS_TYPE:I3}=R.ThemeConstants,OSe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"radial-column",moduleFactory:e=>new fM(e),defaultAxes:[{type:I3.ANGLE_CATEGORY},{type:I3.RADIUS_NUMBER}],themeTemplate:NSe,stackable:!0,groupable:!0},BSe={type:"series",name:"radial-column",chartType:"polar",enterprise:!0,options:FSe,create:e=>new fM(e)},{SvgPath:GSe,Rotatable:zSe,Translatable:VSe,Scalable:_Se}=R,QI=class extends zSe(_Se(VSe(GSe))){constructor(){super(...arguments),this.scalingCenterX=.5,this.scalingCenterY=.5,this.rotationCenterX=.5,this.rotationCenterY=.5}};QI.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{BaseProperties:Yb,makeSeriesTooltip:HSe,SeriesProperties:$Se,PropertiesArray:mE,AxisLabel:WSe,Property:Fe,Label:jSe}=R,l$=class extends jSe{};S([Fe],l$.prototype,"spacing");var ys=class extends Yb{constructor(){super(...arguments),this.label=new l$}};S([Fe],ys.prototype,"text");S([Fe],ys.prototype,"value");S([Fe],ys.prototype,"shape");S([Fe],ys.prototype,"placement");S([Fe],ys.prototype,"spacing");S([Fe],ys.prototype,"size");S([Fe],ys.prototype,"rotation");S([Fe],ys.prototype,"fill");S([Fe],ys.prototype,"fillOpacity");S([Fe],ys.prototype,"stroke");S([Fe],ys.prototype,"strokeWidth");S([Fe],ys.prototype,"strokeOpacity");S([Fe],ys.prototype,"lineDash");S([Fe],ys.prototype,"lineDashOffset");S([Fe],ys.prototype,"label");var $a=class extends Yb{constructor(){super(...arguments),this.enabled=!0,this.fills=new mE(R.StopProperties),this.fillMode="continuous",this.fillOpacity=1,this.stroke="black",this.strokeWidth=0,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0}};S([Fe],$a.prototype,"enabled");S([Fe],$a.prototype,"fills");S([Fe],$a.prototype,"fillMode");S([Fe],$a.prototype,"fill");S([Fe],$a.prototype,"fillOpacity");S([Fe],$a.prototype,"stroke");S([Fe],$a.prototype,"strokeWidth");S([Fe],$a.prototype,"strokeOpacity");S([Fe],$a.prototype,"lineDash");S([Fe],$a.prototype,"lineDashOffset");var Xb=class extends Yb{constructor(){super(...arguments),this.values=void 0,this.step=void 0,this.minSpacing=0,this.maxSpacing=1e3}};S([Fe],Xb.prototype,"values");S([Fe],Xb.prototype,"step");S([Fe],Xb.prototype,"minSpacing");S([Fe],Xb.prototype,"maxSpacing");var USe=class extends WSe{},an=class extends Yb{constructor(){super(...arguments),this.min=0,this.max=1,this.fills=new mE(R.StopProperties),this.fillMode="continuous",this.fillOpacity=1,this.stroke="black",this.strokeWidth=0,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.defaultFill="black",this.interval=new Xb,this.label=new USe}};S([Fe],an.prototype,"min");S([Fe],an.prototype,"max");S([Fe],an.prototype,"fills");S([Fe],an.prototype,"fillMode");S([Fe],an.prototype,"fill");S([Fe],an.prototype,"fillOpacity");S([Fe],an.prototype,"stroke");S([Fe],an.prototype,"strokeWidth");S([Fe],an.prototype,"strokeOpacity");S([Fe],an.prototype,"lineDash");S([Fe],an.prototype,"lineDashOffset");S([Fe],an.prototype,"defaultFill");S([Fe],an.prototype,"interval");S([Fe],an.prototype,"label");var Wa=class extends Yb{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}};S([Fe],Wa.prototype,"enabled");S([Fe],Wa.prototype,"radiusRatio");S([Fe],Wa.prototype,"spacing");S([Fe],Wa.prototype,"fill");S([Fe],Wa.prototype,"fillOpacity");S([Fe],Wa.prototype,"stroke");S([Fe],Wa.prototype,"strokeWidth");S([Fe],Wa.prototype,"strokeOpacity");S([Fe],Wa.prototype,"lineDash");S([Fe],Wa.prototype,"lineDashOffset");var c$=class extends Tl{};S([Fe],c$.prototype,"text");var d$=class extends _b{};S([Fe],d$.prototype,"text");var go=class extends $Se{constructor(){super(...arguments),this.startAngle=0,this.endAngle=0,this.segmentation=new $b,this.defaultColorRange=[],this.targets=new mE(ys),this.defaultTarget=new ys,this.outerRadiusRatio=1,this.innerRadiusRatio=1,this.cornerRadius=0,this.cornerMode="container",this.spacing=0,this.scale=new an,this.bar=new $a,this.needle=new Wa,this.label=new c$,this.secondaryLabel=new d$,this.tooltip=HSe()}};S([Fe],go.prototype,"value");S([Fe],go.prototype,"startAngle");S([Fe],go.prototype,"endAngle");S([Fe],go.prototype,"segmentation");S([Fe],go.prototype,"defaultColorRange");S([Fe],go.prototype,"targets");S([Fe],go.prototype,"defaultTarget");S([Fe],go.prototype,"outerRadiusRatio");S([Fe],go.prototype,"innerRadiusRatio");S([Fe],go.prototype,"outerRadius");S([Fe],go.prototype,"innerRadius");S([Fe],go.prototype,"cornerRadius");S([Fe],go.prototype,"cornerMode");S([Fe],go.prototype,"spacing");S([Fe],go.prototype,"scale");S([Fe],go.prototype,"bar");S([Fe],go.prototype,"needle");S([Fe],go.prototype,"label");S([Fe],go.prototype,"secondaryLabel");S([Fe],go.prototype,"tooltip");var{SectorBox:yE}=R;function KSe(e){const{startAngle:t,endAngle:i,clipStartAngle:o,clipEndAngle:s,innerRadius:n,outerRadius:r}=e;if(!(o==null||s==null))return new yE(Math.max(o,t),Math.min(s,i),n,r)}function u$(e,t,i){return Math.max(e,i.startAngle)<=Math.min(t,i.endAngle)}function Ek(e){return e.clipStartAngle!=null&&e.clipEndAngle!=null}function Fk(e,t){const{clipStartAngle:i,clipEndAngle:o,innerRadius:s,outerRadius:n}=e;return new yE(i,t?i:o,s,n)}function T3(e,t){const i=e?"initial":"update";return{node:{fromFn(n,r){const a=n.previousDatum;let{startAngle:l,endAngle:c}=a??r;const d=a!=null&&Ek(a)?Fk(a,e):void 0,u=Ek(r)?Fk(r,e):void 0;let h;return d!=null&&u!=null?h=d:d==null&&u!=null?(h=u,l=r.startAngle,c=r.endAngle):d!=null&&u==null?(h=void 0,l=r.startAngle,c=r.endAngle):e&&(c=l),{startAngle:l,endAngle:c,clipSector:h,phase:i}},toFn(n,r){const{startAngle:a,endAngle:l}=r;let c;return Ek(r)&&(c=Fk(r,!1)),{startAngle:a,endAngle:l,clipSector:c}},applyFn(n,r){const{startAngle:a,endAngle:l}=r;let{clipSector:c}=r;c!=null&&(c=new yE(Math.max(a,c.startAngle),Math.min(l,c.endAngle),c.innerRadius,c.outerRadius));const d=c==null||u$(a,l,c);n.startAngle=a,n.endAngle=l,n.clipSector=c,n.visible=d}},needle:{fromFn(n){let{angle:r}=n.previousDatum??n.datum;return e&&(r=t),{rotation:r,phase:i}},toFn(n,r){const{angle:a}=r;return{rotation:a}}}}}function Nk(e,t){const{startAngle:i,endAngle:o}=t,s=KSe(t),n=s==null||u$(i,o,s);return{startAngle:i,endAngle:o,clipSector:s,visible:n}}function R3(e,t){const{angle:i}=t;return{rotation:i}}var YSe={top:0,middle:.5,bottom:1};function XSe(e,t,i,o,s,n){const{padding:r,textAlign:a,verticalAlign:l}=o;let c,d;if(i.each((D,k)=>{k.label==="primary"?c=k:k.label==="secondary"&&(d=k)}),c==null)return;const u=yv(e.id,t,c,n?.label);if(u==null)return;const h=d!=null?yv(e.id,t,d,n?.secondaryLabel):void 0,p={padding:r},g=a==="center"?2:1,f=l==="middle"?2:1,y=D=>({width:Math.sqrt(Math.max(s**2-(D/f)**2,0))*g,height:Math.min(D,f*s),meta:null});let v,b,C;if(d!=null&&h!=null){const D=n7(u,c,h,d,p,y);v=D?.label,b=D?.secondaryLabel,C=D?.height??0}else{const D=gv(u,c,p,y);v=D?.[0],b=void 0,C=D?.[0].height??0}const x=C*YSe[l];i.each((D,k)=>{let A;if(k.label==="primary"?A=v:k.label==="secondary"&&(A=b),A==null){D.visible=!1;return}D.visible=!0,D.text=A.text,D.fontSize=A.fontSize,D.lineHeight=A.lineHeight,D.textAlign=a,D.textBaseline="middle";const w=k.label==="primary"?A.height/2:C-A.height/2;D.y=k.centerY+w-x,D.x=k.centerX})}var{fromToMotion:Bm,resetMotion:L3,CachedTextMeasurerPool:ZSe,SeriesNodePickMode:P3,StateMachine:qSe,createDatumId:Ok,normalizeAngle360:E3,normalizeAngle360Inclusive:Bk,isBetweenAngles:l0,sectorBox:QSe,toDegrees:JSe,toRadians:c0,BBox:exe,Group:pd,PointerEvents:d0,Selection:gd,Sector:txe,SectorBox:ixe,Text:F3,Marker:oxe,getColorStops:sxe,tickFormat:nxe,applyShapeStyle:rxe,mergeDefaults:axe}=R,lxe={inside:90,middle:0,outside:-90},cxe=[{textAlign:"left",textBaseline:"top"},{textAlign:"right",textBaseline:"top"},{textAlign:"right",textBaseline:"bottom"},{textAlign:"left",textBaseline:"bottom"}],dxe=[{textAlign:"right",textBaseline:"bottom"},{textAlign:"left",textBaseline:"bottom"},{textAlign:"left",textBaseline:"top"},{textAlign:"right",textBaseline:"top"}],mM=class extends R.Series{constructor(e){super({moduleCtx:e,pickModes:[P3.EXACT_SHAPE_MATCH,P3.NEAREST_NODE]}),this.centerX=0,this.centerY=0,this.radius=0,this.textAlign="center",this.verticalAlign="middle",this.properties=new go,this.scale=new _9,this.scaleGroup=this.contentGroup.appendChild(new pd({name:"scaleGroup"})),this.itemGroup=this.contentGroup.appendChild(new pd({name:"itemGroup"})),this.itemNeedleGroup=this.contentGroup.appendChild(new pd({name:"itemNeedleGroup"})),this.itemTargetGroup=this.contentGroup.appendChild(new pd({name:"itemTargetGroup"})),this.itemTargetLabelGroup=this.contentGroup.appendChild(new pd({name:"itemTargetLabelGroup"})),this.itemLabelGroup=this.contentGroup.appendChild(new pd({name:"itemLabelGroup"})),this.highlightTargetGroup=this.highlightGroup.appendChild(new pd({name:"itemTargetLabelGroup"})),this.tickGroup=this.contentGroup.appendChild(new pd({name:"tickGroup"})),this.scaleSelection=gd.select(this.scaleGroup,()=>this.nodeFactory()),this.datumSelection=gd.select(this.itemGroup,()=>this.nodeFactory()),this.needleSelection=gd.select(this.itemNeedleGroup,QI),this.targetSelection=gd.select(this.itemTargetGroup,()=>this.markerFactory()),this.targetLabelSelection=gd.select(this.itemTargetLabelGroup,F3),this.labelSelection=gd.select(this.itemLabelGroup,F3),this.highlightTargetSelection=gd.select(this.highlightTargetGroup,()=>this.markerFactory()),this.tickSelection=gd.select(this.tickGroup,R.TransformableText),this.datumUnion=new z7,this.animationState=new qSe("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.scaleGroup.pointerEvents=d0.None,this.tickGroup.pointerEvents=d0.None,this.itemNeedleGroup.pointerEvents=d0.None,this.itemLabelGroup.pointerEvents=d0.None}get hasData(){return this.properties.value!=null}nodeFactory(){return new txe}markerFactory(){const e=new oxe;return e.size=1,e}processData(){this.nodeDataRefresh=!0,this.animationState.transition("updateData")}formatLabel(e){const{min:t,max:i}=this.properties.scale;return _7(e,{min:t,max:i})}layoutScale(){const{scale:e,properties:t}=this,{seriesRectWidth:i,seriesRectHeight:o}=this.nodeDataDependencies,{scale:s,outerRadius:n}=this.properties,{min:r,max:a,label:l,interval:c}=s,d=c0(t.startAngle-90),u=c0(t.endAngle-90),p=Bk(u-d)>Math.PI,g=p||l0(1.5*Math.PI,d,u),f=p||l0(0*Math.PI,d,u),y=p||l0(.5*Math.PI,d,u),v=p||l0(1*Math.PI,d,u);let b;v&&!f?b="right":!v&&f?b="left":b="center";let C;g&&!y?C="bottom":!g&&y?C="top":C="middle";const x=QSe({startAngle:d,endAngle:u,innerRadius:0,outerRadius:.5}),D=-(x.x+x.width/2)*2,k=-(x.y+x.height/2)*2,A=Math.min(i/x.width,o/x.height);e.domain=[r,a],e.range=[d,u],e.arcLength=A/2;const{maxSpacing:w,minSpacing:M}=c,{arcLength:T}=e,L=w?Math.floor(T/w):1,N=M?Math.floor(T/M):1/0,O=Math.floor(4/Math.PI*Math.abs(e.range[0]-e.range[1])),F=Math.max(L,Math.min(N,O)),E=c.values??e.ticks({nice:!1,interval:c.step,minTickCount:L,maxTickCount:N,tickCount:F})?.ticks??[],G=nxe(E,typeof l.format=="string"?l.format:void 0),B=ZSe.getMeasurer({font:l}),z=E.map((X,q)=>{let Q;if(l.formatter&&(Q=mv(this.ctx,l.formatter,{value:X,index:q,domain:e.domain,boundSeries:void 0})),Q??(Q=G?.(X)),Q==null)return;const{width:ue,height:de}=B.measureText(Q);return{index:q,value:X,text:Q,width:ue,height:de}}).filter(X=>X!=null),V=z.reduce((X,q)=>Math.max(X,q.width),0),$=z.reduce((X,q)=>Math.max(X,q.height),0),_=l.enabled?Math.max(V,$)+l.spacing:0,W=Math.max(.5*A-_,0),j=n??W;return this.centerX=i/2+D*j,this.centerY=o/2+k*j,this.radius=j,this.textAlign=b,this.verticalAlign=C,z}createConicGradient(e,t){const{scale:i}=this,{domain:o,range:s}=i,[n,r]=s,{defaultColorRange:a}=this.properties,l=E3((n+r)/2+Math.PI),c=Bk(r-n);return{type:"gradient",gradient:"conic",colorSpace:"oklch",colorStops:sxe(e,a,o,t).map(({color:u,stop:h})=>(h=Math.min(Math.max(h,0),1),h=(n+c*h-l)/(2*Math.PI),h=(h%1+1)%1,{stop:h,color:u})),rotation:JSe(l)+90}}getShapeFillBBox(){const{centerX:e,centerY:t,radius:i}=this;return new exe(e-i,t-i,2*i,2*i)}getTargets(){const{properties:e}=this,t=e.defaultTarget;return Array.from(e.targets).map(i=>{const{text:o=t.text,value:s=t.value??0,shape:n=t.shape??"triangle",rotation:r=t.rotation??0,strokeWidth:a=t.strokeWidth??0,placement:l=t.placement??"middle",spacing:c=t.spacing??0,size:d=t.size??0,fill:u=t.fill??"black",fillOpacity:h=t.fillOpacity??1,stroke:p=t.stroke??"black",strokeOpacity:g=t.strokeOpacity??1,lineDash:f=t.lineDash??[0],lineDashOffset:y=t.lineDashOffset??0}=i,{enabled:v=t.label.enabled,color:b=t.label.color??"black",fontStyle:C=t.label.fontStyle??"normal",fontWeight:x=t.label.fontWeight??"normal",fontSize:D=t.label.fontSize,fontFamily:k=t.label.fontFamily,spacing:A=t.label.spacing??0}=i.label;return{text:o,value:s,shape:n,placement:l,spacing:c,size:d,rotation:r,fill:u,fillOpacity:h,stroke:p,strokeWidth:a,strokeOpacity:g,lineDash:f,lineDashOffset:y,label:{enabled:v,color:b,fontStyle:C,fontWeight:x,fontSize:D,fontFamily:k,spacing:A}}})}getTargetRadius(e){const{radius:t,properties:i}=this,{innerRadiusRatio:o,outerRadiusRatio:s}=i,{placement:n,spacing:r,size:a}=e,l=t*s,c=t*o;switch(n){case"inside":return Math.max(c-r-a/2,0);case"outside":return l+r+a/2;default:return(c+l)/2}}getTargetLabel(e){const{scale:t}=this,{value:i,size:o,placement:s,label:n}=e,{spacing:r,color:a,fontStyle:l,fontWeight:c,fontSize:d,fontFamily:u}=n,h=void 0,p=t.convert(i),g=E3(p)/(Math.PI/2)|0,f=o/2+r;let y,v,b,C;switch(s){case"outside":({textAlign:y,textBaseline:v}=cxe[g]),b=f*Math.cos(p),C=f*Math.sin(p);break;case"inside":({textAlign:y,textBaseline:v}=dxe[g]),b=-f*Math.cos(p),C=-f*Math.sin(p);break;default:y="center",v="bottom",b=0,C=-f;break}return{offsetX:b,offsetY:C,fill:a,textAlign:y,textBaseline:v,fontStyle:l,fontWeight:c,fontSize:d,fontFamily:u,lineHeight:h}}createNodeData(){const e=this.layoutScale(),{id:t,scale:i,properties:o,radius:s,centerX:n,centerY:r}=this,{value:a,innerRadiusRatio:l,outerRadiusRatio:c,segmentation:d,cornerRadius:u,cornerMode:h,needle:p,bar:g,scale:f,label:y,secondaryLabel:v}=o,{outerRadius:b=s*c,innerRadius:C=s*l}=o,x=this.getTargets(),D=[],k=[],A=[],w=[],M=[],T=h==="item",L=i.convert(i.domain[0]),N=i.convert(a),O=Math.ceil(Bk(N-L)*s);let F=d.enabled?d.interval.getSegments(i,O):void 0;const E=g.enabled?g.fill??this.createConicGradient(g.fills,g.fillMode):"rgba(0,0,0,0)",G=f.fill??(g.enabled&&f.fills.length===0?f.defaultFill:void 0)??this.createConicGradient(f.fills,f.fillMode);if(F==null&&T){const B=Math.min(...i.domain),z=Math.max(...i.domain),V={value:a,segmentStart:B,segmentEnd:z},_=Math.min(u,(b-C)/2)/((C+b)/2);D.push({series:this,itemId:"value",datum:V,datumIndex:{type:0},type:0,centerX:n,centerY:r,outerRadius:b,innerRadius:C,startAngle:L-_,endAngle:N+_,clipStartAngle:void 0,clipEndAngle:void 0,startCornerRadius:u,endCornerRadius:u,fill:E}),M.push({series:this,itemId:"scale",datum:V,datumIndex:{type:0},type:0,centerX:n,centerY:r,outerRadius:b,innerRadius:C,startAngle:i.range[0]-_,endAngle:i.range[1]+_,clipStartAngle:void 0,clipEndAngle:void 0,startCornerRadius:u,endCornerRadius:u,fill:G})}else{F??(F=i.domain);for(let B=0;B<F.length-1;B++){const z=F[B],V=F[B+1],$={value:a,segmentStart:z,segmentEnd:V},_=B===0,W=B===F.length-2,j=i.convert(z),X=i.convert(V);D.push({series:this,itemId:`value-${B}`,datum:$,datumIndex:{type:0},type:0,centerX:n,centerY:r,outerRadius:b,innerRadius:C,startAngle:j,endAngle:X,clipStartAngle:L,clipEndAngle:N,startCornerRadius:T||_?u:0,endCornerRadius:T||W?u:0,fill:E}),M.push({series:this,itemId:`scale-${B}`,datum:$,datumIndex:{type:0},type:0,centerX:n,centerY:r,outerRadius:b,innerRadius:C,startAngle:j,endAngle:X,clipStartAngle:void 0,clipEndAngle:void 0,startCornerRadius:T||_?u:0,endCornerRadius:T||W?u:0,fill:G})}}if(!p.enabled&&y.enabled){const{text:B,color:z,fontSize:V,minimumFontSize:$,fontStyle:_,fontWeight:W,fontFamily:j,lineHeight:X,formatter:q=Q=>this.formatLabel(Q.value)}=y;w.push({label:"primary",centerX:n,centerY:r,text:B,value:a,fill:z,fontSize:V,minimumFontSize:$,fontStyle:_,fontWeight:W,fontFamily:j,lineHeight:X,formatter:q})}if(!p.enabled&&v.enabled){const{text:B,color:z,fontSize:V,minimumFontSize:$,fontStyle:_,fontWeight:W,fontFamily:j,lineHeight:X,formatter:q}=v;w.push({label:"secondary",centerX:n,centerY:r,text:B,value:a,fill:z,fontSize:V,minimumFontSize:$,fontStyle:_,fontWeight:W,fontFamily:j,lineHeight:X,formatter:q})}if(p.enabled){let B=p.radiusRatio!=null?s*p.radiusRatio:C;B=Math.max(B-p.spacing,0);const z=i.convert(a);A.push({centerX:n,centerY:r,radius:B,angle:z,series:this})}for(let B=0;B<x.length;B+=1){const z=x[B],{value:V,text:$,size:_,shape:W,fill:j,fillOpacity:X,stroke:q,strokeWidth:Q,strokeOpacity:ue,lineDash:de,lineDashOffset:te}=z;if(V<Math.min(...i.domain)||V>Math.max(...i.domain))continue;const se=this.getTargetRadius(z),ie=i.convert(V),le=c0(z.rotation+lxe[z.placement]);k.push({series:this,itemId:`target-${B}`,midPoint:{x:se*Math.cos(ie)+n,y:se*Math.sin(ie)+r},datum:{value:V},datumIndex:{type:1,index:B},type:1,value:V,text:$,centerX:n,centerY:r,shape:W,radius:se,angle:ie,rotation:le,size:_,fill:j,fillOpacity:X,stroke:q,strokeOpacity:ue,strokeWidth:Q,lineDash:de,lineDashOffset:te,label:this.getTargetLabel(z)})}return{itemId:t,nodeData:D,needleData:A,targetData:k,labelData:w,scaleData:M,tickData:e}}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}){const{datumSelection:t,labelSelection:i,needleSelection:o,targetSelection:s,targetLabelSelection:n,scaleSelection:r,highlightTargetSelection:a,tickSelection:l}=this,c=this.checkResize(e);this.updateSelections(c),this.contentGroup.visible=this.visible,this.contentGroup.opacity=this.getOpacity();const d=this.contextNodeData?.nodeData??[],u=this.contextNodeData?.labelData??[],h=this.contextNodeData?.needleData??[],p=this.contextNodeData?.targetData??[],g=this.contextNodeData?.scaleData??[],f=this.contextNodeData?.tickData??[],y=this.highlightDatum(this.ctx.highlightManager.getActiveHighlight());this.scaleSelection=this.updateScaleSelection({scaleData:g,scaleSelection:r}),this.updateScaleNodes({scaleSelection:r}),this.needleSelection=this.updateNeedleSelection({needleData:h,needleSelection:o}),this.updateNeedleNodes({needleSelection:o}),this.targetSelection=this.updateTargetSelection({targetData:p,targetSelection:s}),this.updateTargetNodes({targetSelection:s,isHighlight:!1}),this.targetLabelSelection=this.updateTargetLabelSelection({targetData:p,targetLabelSelection:n}),this.updateTargetLabelNodes({targetLabelSelection:n}),this.datumSelection=this.updateDatumSelection({nodeData:d,datumSelection:t}),this.updateDatumNodes({datumSelection:t}),this.labelSelection=this.updateLabelSelection({labelData:u,labelSelection:i}),this.updateLabelNodes({labelSelection:i}),this.highlightTargetSelection=this.updateTargetSelection({targetData:y!=null?[y]:[],targetSelection:a}),this.updateTargetNodes({targetSelection:a,isHighlight:!0}),this.tickSelection=this.updateTickSelection({tickData:f,tickSelection:l}),this.updateTickNodes({tickSelection:l}),c&&this.animationState.transition("resize"),this.animationState.transition("update")}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>Ok(e.nodeData.length,t.itemId))}updateDatumNodes(e){const{datumSelection:t}=e,{ctx:i,properties:o}=this,{bar:s,segmentation:n}=o,r=n.spacing??0,{fillOpacity:a,stroke:l,strokeOpacity:c,lineDash:d,lineDashOffset:u}=s,h=s.strokeWidth,p=i.animationManager.isSkipped(),g=this.getShapeFillBBox();t.each((f,y)=>{const{centerX:v,centerY:b,innerRadius:C,outerRadius:x,startCornerRadius:D,endCornerRadius:k,fill:A}=y;f.centerX=v,f.centerY=b,f.innerRadius=C,f.outerRadius=x,f.pointerEvents=this.properties.bar.enabled?R.PointerEvents.All:R.PointerEvents.None,f.fill=A,f.fillBBox=g,f.fillOpacity=a,f.stroke=l,f.strokeOpacity=c,f.strokeWidth=h,f.lineDash=d,f.lineDashOffset=u,f.startOuterCornerRadius=D,f.startInnerCornerRadius=D,f.endOuterCornerRadius=k,f.endInnerCornerRadius=k,f.radialEdgeInset=(r+f.strokeWidth)/2,f.concentricEdgeInset=f.strokeWidth/2,(p||f.previousDatum==null)&&f.setProperties(Nk(f,y))}),this.datumUnion.update(t,this.itemGroup,R.Sector,(f,y,v)=>{f.clipSector??(f.clipSector=new ixe(NaN,NaN,NaN,NaN)),f.centerX=y.centerX,f.centerY=y.centerY,f.outerRadius=f.clipSector.outerRadius=y.outerRadius,f.innerRadius=f.clipSector.innerRadius=y.innerRadius,f.startAngle=f.clipSector.startAngle=y.startAngle,f.startInnerCornerRadius=y.startInnerCornerRadius,f.startOuterCornerRadius=y.startOuterCornerRadius,f.endAngle=v.endAngle,f.clipSector.endAngle=v.clipSector?.endAngle??v.endAngle,f.endInnerCornerRadius=v.endInnerCornerRadius,f.endOuterCornerRadius=v.endOuterCornerRadius,f.pointerEvents=R.PointerEvents.None})}updateScaleSelection(e){return e.scaleSelection.update(e.scaleData,void 0,t=>Ok(e.scaleData.length,t.itemId))}updateScaleNodes(e){const{scaleSelection:t}=e,{scale:i,segmentation:o}=this.properties,s=o.spacing??0,{fillOpacity:n,stroke:r,strokeOpacity:a,strokeWidth:l,lineDash:c,lineDashOffset:d}=i,u=this.getShapeFillBBox();t.each((h,p)=>{const{centerX:g,centerY:f,innerRadius:y,outerRadius:v,startCornerRadius:b,endCornerRadius:C,fill:x}=p;h.centerX=g,h.centerY=f,h.innerRadius=y,h.outerRadius=v,h.fill=x,h.fillBBox=u,h.fillOpacity=n,h.stroke=r,h.strokeOpacity=a,h.strokeWidth=l,h.lineDash=c,h.lineDashOffset=d,h.startOuterCornerRadius=b,h.startInnerCornerRadius=b,h.endOuterCornerRadius=C,h.endInnerCornerRadius=C,h.radialEdgeInset=(s+h.strokeWidth)/2,h.concentricEdgeInset=h.strokeWidth/2,h.setProperties(Nk(h,p))})}updateNeedleSelection(e){return e.needleSelection.update(e.needleData,void 0,()=>Ok([]))}updateNeedleNodes(e){const{needleSelection:t}=e,{fill:i,fillOpacity:o,stroke:s,strokeOpacity:n,strokeWidth:r,lineDash:a,lineDashOffset:l}=this.properties.needle,c=this.ctx.animationManager.isSkipped();t.each((d,u)=>{const{centerX:h,centerY:p,radius:g}=u,f=g*2;d.d=QI.defaultPathData,d.fill=i,d.fillOpacity=o,d.stroke=s,d.strokeOpacity=n,d.strokeWidth=r/f,d.lineDash=a.map(y=>y/f),d.lineDashOffset=l/f,d.translationX=h,d.translationY=p,d.scalingX=f,d.scalingY=f,c&&d.setProperties(R3(d,u))})}updateTargetSelection(e){return e.targetSelection.update(e.targetData,void 0,t=>t.itemId)}updateTargetNodes(e){const{targetSelection:t,isHighlight:i}=e;t.each((o,s)=>{const{centerX:n,centerY:r,angle:a,radius:l,shape:c,size:d,rotation:u,fill:h,fillOpacity:p,stroke:g,strokeOpacity:f,strokeWidth:y,lineDash:v,lineDashOffset:b}=s,C=this.getHighlightStyle(i,s.datumIndex),x=axe(C,{fill:h,fillOpacity:p,stroke:g,strokeOpacity:f,strokeWidth:y,lineDash:v,lineDashOffset:b,opacity:1});rxe(o,x),o.size=d,o.shape=c==="line"?H7:c,o.translationX=n+l*Math.cos(a),o.translationY=r+l*Math.sin(a),o.rotation=a+u})}updateTargetLabelSelection(e){return e.targetLabelSelection.update(e.targetData,void 0,t=>t.itemId)}updateTargetLabelNodes(e){const{targetLabelSelection:t}=e;t.each((i,o)=>{const{centerX:s,centerY:n,radius:r,angle:a,text:l}=o,{offsetX:c,offsetY:d,fill:u,fontStyle:h,fontWeight:p,fontSize:g,fontFamily:f,textAlign:y,textBaseline:v}=o.label;if(l==null){i.visible=!1;return}i.visible=!0,i.x=s+r*Math.cos(a)+c,i.y=n+r*Math.sin(a)+d,i.text=l,i.fill=u,i.fontStyle=h,i.fontWeight=p,i.fontSize=g,i.fontFamily=f,i.textAlign=y,i.textBaseline=v})}updateLabelSelection(e){return e.labelSelection.update(e.labelData,void 0,t=>t.label)}updateLabelNodes(e){const{labelSelection:t}=e,i=this.ctx.animationManager.isSkipped();t.each((o,s)=>{o.fill=s.fill,o.fontStyle=s.fontStyle,o.fontWeight=s.fontWeight,o.fontFamily=s.fontFamily}),(i||this.labelsHaveExplicitText())&&this.formatLabelText()}updateTickSelection(e){return e.tickSelection.update(e.tickData,void 0,t=>t.index)}updateTickNodes(e){const{scale:t,radius:i,centerX:o,centerY:s,properties:n}=this,{enabled:r,color:a,fontFamily:l,fontSize:c,fontStyle:d,fontWeight:u,spacing:h}=n.scale.label,p=c0(n.scale.label.rotation??0);e.tickSelection.each((g,f)=>{if(!r){g.visible=!1;return}g.visible=!0,g.text=f.text,g.fill=a,g.fontFamily=l,g.fontSize=c,g.fontStyle=d,g.fontWeight=u,g.textAlign="center",g.textBaseline="middle";const y=t.convert(f.value),{width:v,height:b}=f,C=Math.abs(i*Math.cos(y)),x=Math.abs(i*Math.sin(y)),D=Math.min(Math.max(Math.abs(i/Math.tan(y)),C-v/2),C+v/2),k=Math.min(Math.max(Math.abs(i*Math.tan(y)),x-b/2),x+b/2),A=Math.hypot(D,k),w=o+(A+h)*Math.cos(y),M=s+(A+h)*Math.sin(y);g.x=w,g.y=M,g.rotationCenterX=w,g.rotationCenterY=M,g.rotation=p})}labelsHaveExplicitText(){for(const{datum:e}of this.labelSelection)if(e.text==null)return!1;return!0}formatLabelText(e){const{labelSelection:t,radius:i,textAlign:o,verticalAlign:s}=this,{spacing:n,innerRadiusRatio:r}=this.properties;XSe(this,this.ctx,t,{padding:n,textAlign:o,verticalAlign:s},i*r,e)}resetAllAnimation(){this.ctx.animationManager.stopByAnimationGroupId(this.id),L3([this.datumSelection],Nk),L3([this.needleSelection],R3),this.formatLabelText()}resetAnimation(e){e==="initial"?this.animationState.transition("reset"):e==="ready"&&this.animationState.transition("skip")}animateLabelText(e={}){const{animationManager:t}=this.ctx;let i,o,s,n;if(this.labelSelection.each((r,a)=>{r.opacity=1,a.label==="primary"?(i=r.previousDatum?.value??e.from??a.value,o=a.value):a.label==="secondary"&&(s=r.previousDatum?.value??e.from??a.value,n=a.value)}),!this.labelsHaveExplicitText())if(o==null||n==null)this.formatLabelText();else if(i===o&&s===n)this.formatLabelText({label:o,secondaryLabel:n});else{const r=`${this.id}_labels`;t.animate({id:r,groupId:"label",from:{label:i,secondaryLabel:s},to:{label:o,secondaryLabel:n},phase:e.phase??"update",onUpdate:a=>this.formatLabelText(a),onStop:()=>this.formatLabelText({label:o,secondaryLabel:n})})}}animateEmptyUpdateReady(){const{animationManager:e}=this.ctx,{node:t,needle:i}=T3(!0,this.scale.range[0]);Bm(this.id,"node",e,[this.datumSelection],t,(o,s)=>s.itemId),Bm(this.id,"needle",e,[this.needleSelection],i,()=>"needle"),Bm(this.id,"label",e,[this.labelSelection],V7,(o,s)=>s.label),this.animateLabelText({from:this.properties.scale.min,phase:"initial"})}animateWaitingUpdateReady(){const{animationManager:e}=this.ctx,{node:t,needle:i}=T3(!1,this.scale.range[0]);Bm(this.id,"node",e,[this.datumSelection],t,(o,s)=>s.itemId),Bm(this.id,"needle",e,[this.needleSelection],i,()=>"needle"),this.animateLabelText()}animateReadyResize(){this.resetAllAnimation()}dataCount(){return NaN}getSeriesDomain(){return[NaN,NaN]}getSeriesRange(e,t){return[NaN,NaN]}getLegendData(){return[]}getTooltipContent(e){const{id:t,properties:i}=this,{tooltip:o}=i;let s,n;if(e.type===0?(s=i.value,n=i.label.text):{value:s,text:n}=i.targets[e.index],s!=null)return this.formatTooltipWithContext(o,{data:[{label:n,fallbackLabel:"Value",value:this.formatLabel(s)}]},{seriesId:t,title:void 0,datum:void 0,value:s})}pickNodeClosestDatum(e){return $7(this,e)}pickFocus(e){return W7(this,e)}getCaptionText(){const{value:e}=this.properties,t=[];return t.push(this.formatLabel(e)),this.labelSelection.each((i,o)=>{const s=yv(this.id,this.ctx,o);s!=null&&t.push(s)}),t.join(". ")}getCategoryValue(e){}datumIndexForCategoryValue(e){}hasItemStylers(){return!1}};mM.className="RadialGaugeSeries";mM.type="radial-gauge";var{FONT_SIZE_RATIO:uxe}=R,hxe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["standalone"],identifier:"radial-gauge",moduleFactory:e=>new mM(e),themeTemplate:{minWidth:200,minHeight:200,tooltip:{enabled:!1},series:{outerRadiusRatio:1,innerRadiusRatio:.8,startAngle:270,endAngle:450,defaultColorRange:{$if:[{$eq:[{$palette:"type"},"inbuilt"]},{$interpolate:[{$palette:"secondDivergingColors"},5]},R.SAFE_RANGE2_OPERATION]},scale:{defaultFill:{$path:["/1",{$palette:"fill"},{$palette:"hierarchyColors"}]},stroke:{$path:["/2",R.SAFE_STROKE_FILL_OPERATION,{$palette:"hierarchyColors"}]},strokeWidth:{$isUserOption:["./stroke",2,0]},label:{fontWeight:{$ref:"fontWeight"},fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},color:{$ref:"textColor"},spacing:12}},bar:{strokeWidth:{$isUserOption:["./stroke",2,0]}},segmentation:{enabled:!1,interval:{},spacing:2},defaultTarget:{fill:{$ref:"foregroundColor"},stroke:{$ref:"foregroundColor"},size:10,shape:"triangle",placement:"outside",spacing:5,label:{enabled:!0,fontWeight:{$ref:"fontWeight"},fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},color:{$ref:"textColor"},spacing:5}},needle:{enabled:!1,fill:{$ref:"foregroundColor"},spacing:10},label:{...R.LABEL_BOXING_DEFAULTS,enabled:!0,fontWeight:{$ref:"fontWeight"},fontSize:56,minimumFontSize:18/56,fontFamily:{$ref:"fontFamily"},color:{$ref:"textColor"}},secondaryLabel:{...R.LABEL_BOXING_DEFAULTS,enabled:!0,fontWeight:{$ref:"fontWeight"},fontSize:{$rem:uxe.LARGE},minimumFontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},color:{$ref:"subtleTextColor"}},tooltip:{range:{$path:["/tooltip/range",10]}}}}},pxe={type:"series",name:"radial-gauge",chartType:"standalone",enterprise:!0,options:R.radialGaugeSeriesOptionsDef,create:e=>new mM(e)};function h$(e){e.nodes.sort((t,i)=>Math.round((t.datum.y-i.datum.y)*100)/100||-(t.datum.size-i.datum.size))}function gxe({nodes:e,size:t},{seriesRectHeight:i,nodeSpacing:o,sizeScale:s}){const n=i*t*s;let r=(i-(n+o*(e.length-1)))/2;e.forEach(({datum:a})=>{const l=i*a.size*s;a.y=r,a.height=l,r+=l+o})}function fxe(e,t){const{nodes:i}=e,{seriesRectHeight:o,nodeSpacing:s}=t;h$(e);let n=0,r=0;for(const{datum:c}of i){const d=Math.max(r-c.y,0);c.y+=d,n+=d,r=c.y+c.height+s}if(r-s<o)return n>0;let l=o;for(let c=i.length-1;c>=0;c-=1){const{datum:d}=i[c],u=d.y+d.height,h=Math.min(l-u,0);d.y+=h,n+=h,l=d.y-s}return!0}function Gk(e,t,i,o,s,n,r,a){const l=(i-e)/(o-t),c=(r-s)/(a-n),d=((n-t)*(l*c)+e*c-s*l)/(c-l);return e<i?d>e&&d<Math.min(i,r):d<e&&d>Math.max(i,r)}function N3(e,t){let i=!1;const o=e.nodes.filter(n=>t(n).length===1);let s=!0;for(let n=0;s&&n<o.length;n+=1){s=!1;for(let r=0;r<o.length-1;r+=1){const{datum:a}=o[r],l=t(o[r])[0].node.datum,{datum:c}=o[r+1],d=t(o[r+1])[0].node.datum;if(!(Gk(a.x,a.y,l.x,l.y,c.x,c.y,d.x,d.y)||Gk(a.x,a.y+a.height/2,l.x,l.y+l.height/2,c.x,c.y+c.height/2,d.x,d.y+d.height/2)||Gk(a.x,a.y+a.height,l.x,l.y+l.height,c.x,c.y+c.height,d.x,d.y+d.height)))continue;const h=o[r];o[r]=o[r+1],o[r+1]=h;const p=a.y;a.y=c.y+c.height-a.height,c.y=p,i=!0,s=!0}}return i}function mxe(e){let t=!1;return h$(e),t=N3(e,i=>i.linksBefore)||t,t=N3(e,i=>i.linksAfter)||t,t}function yxe(e){if(e.length===0)return;let t=0,i=0;for(const{node:{datum:o}}of e)t+=o.y*o.size,i+=o.size;return t/i}function p$(e,t,i,o){return e.nodes.forEach(({datum:s,linksBefore:n,linksAfter:r})=>{const a=o===1?n:r,l=o===1?r:n,c=yxe(a);if(c!=null){const d=l.length!==0?i:1;s.y=s.y+(c-s.y)*d}}),fxe(e,t)}function O3(e,t,i){let o=!1;for(const s of e)o=p$(s,t,i,1)||o;return o}function vxe(e,t,i){let o=!1;for(let s=e.length-1;s>=0;s-=1)o=p$(e[s],t,i,-1)||o;return o}function B3(e){let t=!1;for(let i=e.length-1;i>=0;i-=1)t=mxe(e[i])||t;return t}function bxe(e,t){e.forEach(o=>{gxe(o,t)});let i=!1;for(let o=0;o<6;o+=1){const s=O3(e,t,1);i=vxe(e,t,.5);const n=B3(e);if(!s&&!i&&!n)break}i&&(O3(e,t,1),B3(e))}var{BBox:Cxe,Path:Sxe,SceneChangeDetection:cm,splitBezier2D:xxe}=R;function u0(e,t,i,o,s,n,r,a,l,c){let d,u;if(s!==i&&l!==r){const k=-(o-t)/(s-i),A=-(a-n)/(l-r);d=(r-i+k*t-A*n)/(k-A),u=k*(d-t)+i}else if(s===i&&l!==r)d=t,u=-(a-n)/(l-r)*(d-a)+l;else if(s!==i&&l===r)d=a,u=-(o-t)/(s-i)*(d-t)+i;else throw new Error("Offsetting flat bezier curve");const h=Math.hypot(i-u,t-d),p=(h+c)/h,g=Math.hypot(l-u,a-d),f=(g+c)/g,y=d+(o-d)*p,v=u+(s-u)*p,b=d+(n-d)*f,C=u+(r-u)*f,x=d+(a-d)*f,D=u+(l-u)*f;e.cubicCurveTo(y,v,b,C,x,D)}var Pp=class extends Sxe{constructor(){super(...arguments),this.x1=0,this.x2=0,this.y1=0,this.y2=0,this.height=0,this.inset=0}computeBBox(){const e=Math.min(this.x1,this.x2),t=Math.max(this.x1,this.x2)-e,i=Math.min(this.y1,this.y2),o=Math.max(this.y1,this.y2)-i+this.height;return new Cxe(e,i,t,o)}updatePath(){const{path:e,inset:t}=this;e.clear();const i=this.x1+t,o=this.x2-t,s=this.y1+t,n=this.y2+t,r=this.height-2*t;if(r<0||i>o)return;const a=i,l=s+r/2,c=(i+o)/2,d=s+r/2,u=(i+o)/2,h=n+r/2,p=o,g=n+r/2;if(e.moveTo(a,l-r/2),Math.abs(this.y2-this.y1)<1||this.x2-this.x1<this.height*Math.SQRT2)e.cubicCurveTo(c,d-r/2,u,h-r/2,p,g-r/2),e.lineTo(p,g+r/2),e.cubicCurveTo(u,h+r/2,c,d+r/2,a,l+r/2);else{const[f,y]=xxe(a,l,c,d,u,h,p,g,.5),v=(n>s?1:-1)*r/2;u0(e,f[0].x,f[0].y,f[1].x,f[1].y,f[2].x,f[2].y,f[3].x,f[3].y,v),u0(e,y[0].x,y[0].y,y[1].x,y[1].y,y[2].x,y[2].y,y[3].x,y[3].y,-v),e.lineTo(p,g+r/2),u0(e,y[3].x,y[3].y,y[2].x,y[2].y,y[1].x,y[1].y,y[0].x,y[0].y,v),u0(e,f[3].x,f[3].y,f[2].x,f[2].y,f[1].x,f[1].y,f[0].x,f[0].y,-v)}e.closePath()}};S([cm()],Pp.prototype,"x1");S([cm()],Pp.prototype,"x2");S([cm()],Pp.prototype,"y1");S([cm()],Pp.prototype,"y2");S([cm()],Pp.prototype,"height");S([cm()],Pp.prototype,"inset");var{BaseProperties:g$,FillGradientDefaults:wxe,FillPatternDefaults:Dxe,FillImageDefaults:Mxe,makeSeriesTooltip:kxe,SeriesProperties:Axe,Property:pt,Label:Ixe}=R,f$=class extends Ixe{constructor(){super(...arguments),this.spacing=1}};S([pt],f$.prototype,"spacing");var td=class extends g${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}};S([pt],td.prototype,"fill");S([pt],td.prototype,"fillOpacity");S([pt],td.prototype,"stroke");S([pt],td.prototype,"strokeOpacity");S([pt],td.prototype,"strokeWidth");S([pt],td.prototype,"lineDash");S([pt],td.prototype,"lineDashOffset");S([pt],td.prototype,"itemStyler");var ea=class extends g${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}};S([pt],ea.prototype,"spacing");S([pt],ea.prototype,"width");S([pt],ea.prototype,"alignment");S([pt],ea.prototype,"fill");S([pt],ea.prototype,"fillOpacity");S([pt],ea.prototype,"stroke");S([pt],ea.prototype,"strokeOpacity");S([pt],ea.prototype,"strokeWidth");S([pt],ea.prototype,"lineDash");S([pt],ea.prototype,"lineDashOffset");S([pt],ea.prototype,"itemStyler");var fo=class extends Axe{constructor(){super(),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.fillGradientDefaults=new wxe,this.fillPatternDefaults=new Dxe,this.fillImageDefaults=new Mxe,this.defaultColorRange=[],this.defaultPatternFills=[],this.fills=[],this.strokes=[],this.label=new f$,this.link=new td,this.node=new ea,this.tooltip=kxe(),this.highlightStyle.deprecated=!1}getStyle(e,t,i,o){const{fillOpacity:s,strokeWidth:n,strokeOpacity:r,lineDash:a,lineDashOffset:l,fill:c=t[o%t.length],stroke:d=i[o%t.length]}=e?this.link:this.node;return{fill:c,fillOpacity:s,stroke:d,strokeWidth:n,strokeOpacity:r,lineDash:a,lineDashOffset:l}}};S([pt],fo.prototype,"nodes");S([pt],fo.prototype,"fromKey");S([pt],fo.prototype,"toKey");S([pt],fo.prototype,"idKey");S([pt],fo.prototype,"idName");S([pt],fo.prototype,"labelKey");S([pt],fo.prototype,"labelName");S([pt],fo.prototype,"sizeKey");S([pt],fo.prototype,"sizeName");S([pt],fo.prototype,"fillGradientDefaults");S([pt],fo.prototype,"fillPatternDefaults");S([pt],fo.prototype,"fillImageDefaults");S([pt],fo.prototype,"defaultColorRange");S([pt],fo.prototype,"defaultPatternFills");S([pt],fo.prototype,"fills");S([pt],fo.prototype,"strokes");S([pt],fo.prototype,"label");S([pt],fo.prototype,"link");S([pt],fo.prototype,"node");S([pt],fo.prototype,"tooltip");var{Transformable:Txe,applyShapeStyle:G3,SeriesNodePickMode:z3,CachedTextMeasurerPool:Rxe,TextWrapper:V3,TextUtils:_3,createDatumId:h0,getShapeStyle:zk,getLabelStyles:Lxe,Rect:H3,BBox:$3,mergeDefaults:p0}=R,yM=class extends E7{constructor(e){super({moduleCtx:e,pickModes:[z3.NEAREST_NODE,z3.EXACT_SHAPE_MATCH]}),this.properties=new fo}isLabelEnabled(){return(this.properties.labelKey!=null||this.nodes==null)&&this.properties.label.enabled}linkFactory(){return new Pp}nodeFactory(){return new H3}createNodeData(){const{id:e,_nodeDataDependencies:{seriesRectWidth:t,seriesRectHeight:i}={seriesRectWidth:0,seriesRectHeight:0}}=this,{fromKey:o,toKey:s,sizeKey:n,labelKey:r,label:{spacing:a},node:{spacing:l,width:c,alignment:d}}=this.properties,{nodeGraph:u,links:h,maxPathLength:p}=this.getNodeGraph(w=>({...w,x:NaN,y:NaN,width:c,height:NaN}),w=>({...w,x1:NaN,x2:NaN,y1:NaN,y2:NaN,height:NaN}),{includeCircularReferences:!1}),g=u,f=this.isLabelEnabled()?(t-c)*(1-p/(p+1)):0,y=(t-c-2*f)/(p-1),v=[];for(let w=0;w<p;w+=1){const M=f+w*y;v.push({index:w,size:0,nodes:[],x:M})}g.forEach(w=>{const{datum:M,linksBefore:T,linksAfter:L,maxPathLengthBefore:N,maxPathLengthAfter:O}=w,F=Math.max(T.reduce((z,{link:V})=>z+V.size,0),L.reduce((z,{link:V})=>z+V.size,0));if(T.length===0&&L.length===0||F===0){w.columnIndex=-1;return}let E;switch(d){case"left":E=v[N];break;case"right":E=v[p-1-O];break;case"center":{if(T.length!==0)E=v[N];else if(L.length!==0){const z=L.reduce((V,$)=>Math.min(V,$.node.maxPathLengthBefore),p)-1;E=v[z]}else E=v[0];break}case"justify":{E=L.length===0?v[p-1]:v[N];break}}M.x=E.x,M.size=F;const{label:G}=this.properties,B=G.enabled?this.getLabelText(M.label,M.datum,r,"label",[],this.properties.label,{datum:M.datum,value:M.label,fromKey:o,toKey:s,sizeKey:n,size:F}):void 0;M.label=B,E.nodes.push(w),E.size+=F,w.columnIndex=E.index}),g.forEach(w=>{let M=1/0,T=0;w.linksAfter.forEach(L=>{const N=L.node,{columnIndex:O}=N;O<M?(M=O,T=N.datum.size):O===M&&(T=Math.max(T,N.datum.size))}),w.closestColumnIndex=M,w.maxSizeOfClosestNodesAfter=T});const b=v.reduce((w,{size:M,nodes:T})=>{const L=(1-(T.length-1)*(l/i))/M;return Math.min(w,L)},1/0);for(let w=v.length-1;w>=0;w-=1)v[w].nodes.sort((T,L)=>T.closestColumnIndex-L.closestColumnIndex||T.maxSizeOfClosestNodesAfter-L.maxSizeOfClosestNodesAfter||T.datum.size-L.datum.size);bxe(v,{seriesRectHeight:i,nodeSpacing:l,sizeScale:b});let C=!1;if(g.forEach(({datum:w,linksBefore:M,linksAfter:T})=>{C||(C=w.height<0);const L=w.y+w.height,N=E=>E.sort((G,B)=>{const z=G.node.datum,V=B.node.datum,$=z.y+z.height,_=V.y+V.height,W=Math.atan2(z.y-w.y,Math.abs(z.x-w.x))-Math.atan2(V.y-w.y,Math.abs(V.x-w.x)),j=Math.atan2($-L,Math.abs(z.x-w.x))-Math.atan2(_-L,Math.abs(V.x-w.x));return W+j});let O=w.y;N(M).forEach(({link:E})=>{E.y2=O,O+=E.size*i*b});let F=w.y;N(T).forEach(({link:E})=>{E.y1=F,F+=E.size*i*b})}),C){he.warnOnce("There was insufficient space to display the Sankey Series. Reduce the node spacing, or provide a larger container.");return}const x=[],D=[],{fontSize:k}=this.properties.label,A=Rxe.getMeasurer({font:this.properties.label});return v.forEach((w,M)=>{const T=M===0,L=M===v.length-1;let N=-1/0;w.nodes.sort((O,F)=>O.datum.y-F.datum.y),w.nodes.forEach(({datum:O})=>{if(O.midPoint={x:O.x+O.width/2,y:O.y+O.height/2},x.push(O),O.label==null)return;const F=T?O.x-a:O.x+O.width+a,E=O.y+O.height/2;let G;if(!T&&!L){const $=E-_3.getLineHeight(k),_=E+_3.getLineHeight(k);let W=t;g.forEach(({datum:X})=>{X.x>O.x&&Math.max(X.y,$)<=Math.min(X.y+X.height,_)&&(W=Math.min(W,X.x-a))});const j=W-O.x-2*a;G=V3.wrapText(O.label,{maxWidth:j,maxHeight:O.height,font:this.properties.label,textWrap:"never",overflow:"hide"})}if(G==null||G===""){const $=T||L?a:a*2;G=V3.wrapText(O.label,{maxWidth:y-$,maxHeight:O.height,font:this.properties.label,textWrap:"never"})}if(G==="")return;const{height:B}=A.measureText(G),z=E-B/2,V=E+B/2;z>=N&&(D.push({x:F,y:E,leading:T,text:G,size:O.size}),N=V)})}),h.forEach(w=>{const{fromNode:M,toNode:T,size:L}=w;w.height=i*L*b,w.x1=M.x+c,w.x2=T.x,w.midPoint={x:(w.x1+w.x2)/2,y:(w.y1+w.y2)/2+w.height/2},x.push(w)}),{itemId:e,nodeData:x,labelData:D}}updateLabelSelection(e){const t=this.isLabelEnabled()?e.labelData:[];return e.labelSelection.update(t)}updateLabelNodes(e){e.labelSelection.each((t,i)=>{const{x:o,y:s,leading:n,text:r}=i,l=Lxe(this,void 0,i,this.properties.label),{color:c,fontStyle:d,fontWeight:u,fontSize:h,fontFamily:p}=l;t.visible=!0,t.x=o,t.y=s,t.text=r,t.fill=c,t.fontStyle=d,t.fontWeight=u,t.fontSize=h,t.fontFamily=p,t.textAlign=n?"right":"left",t.textBaseline="middle",t.setBoxing(l)})}updateNodeSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>h0([t.type,t.id]))}getNodeStyle({datumIndex:e,datum:t,size:i=0,label:o},s,n){const{id:r,properties:a}=this,{fills:l,strokes:c,defaultColorRange:d,defaultPatternFills:u,fillGradientDefaults:h,fillPatternDefaults:p,fillImageDefaults:g}=a,{itemStyler:f}=a.node,y=d[s%d.length].map(k=>({color:k})),v=u[s%u.length],b=this.getHighlightStyle(n,e),C=p0(b,a.getStyle(!1,l,c,s)),x=a.node.fill!=null;let D=zk(C,x?h:{...h.toJson(),colorStops:y},x?p:{...p.toJson(),fill:v,stroke:v},g);if(f!=null&&e!=null){const k=this.cachedDatumCallback(h0(e.index,"link",n?"highlight":"node"),()=>{const A=this.ctx.highlightManager?.getActiveHighlight(),w=this.getHighlightStateString(A,n,e);return this.callWithContext(f,{seriesId:r,datum:t,highlighted:n,highlightState:w,...D,size:i,label:o})});k&&(D=zk(p0(k,D),{...h.toJson(),colorStops:y},{...p.toJson(),fill:v,stroke:v},g))}return D.opacity=1,D}updateNodeNodes(e){const{datumSelection:t,isHighlight:i}=e,o=this.getShapeFillBBox();t.each((s,n)=>{const{datumIndex:r}=n,a=this.getNodeStyle(n,r.index,i);s.x=n.x,s.y=n.y,s.width=Math.max(n.width,0),s.height=Math.max(n.height,0),G3(s,a,o)})}getShapeFillBBox(){const e=this._nodeDataDependencies?.seriesRectWidth??0,t=this._nodeDataDependencies?.seriesRectHeight??0,i=new $3(0,0,e,t);return{series:i,axis:i}}updateLinkSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>h0([t.type,t.index,t.fromNode.id,t.toNode.id]))}getLinkStyle({datumIndex:e,datum:t},i,o){const{id:s,properties:n}=this,{fills:r,strokes:a,defaultColorRange:l,defaultPatternFills:c,fillGradientDefaults:d,fillPatternDefaults:u,fillImageDefaults:h}=n,{itemStyler:p}=n.link,g=l[i%l.length].map(x=>({color:x})),f=c[i%c.length],y=this.getHighlightStyle(o,e),v=p0(y,n.getStyle(!0,r,a,i)),b=n.link.fill!=null;let C=zk(v,b?d:{...d.toJson(),colorStops:g},b?u:{...u.toJson(),fill:f,stroke:f},h);if(p!=null&&e!=null){const x=this.cachedDatumCallback(h0(e.index,"link",o?"highlight":"node"),()=>{const D=this.ctx.highlightManager?.getActiveHighlight(),k=this.getHighlightStateString(D,o,e);return this.callWithContext(p,{seriesId:s,datum:t,highlighted:o,highlightState:k,...C})});x&&(C=p0(C,x,{...d.toJson(),colorStops:g},{...u.toJson(),fill:f,stroke:f},h))}return C.opacity=1,C}updateLinkNodes(e){const{datumSelection:t,isHighlight:i}=e,o=this.getShapeFillBBox();t.each((s,n)=>{const r=n.fromNode.datumIndex.index,a=this.getLinkStyle(n,r,i);s.x1=n.x1,s.y1=n.y1,s.x2=n.x2,s.y2=n.y2,s.height=n.height,G3(s,a,o),s.inset=s.strokeWidth/2})}getTooltipContent(e){const{id:t,linksProcessedData:i,nodesProcessedData:o,properties:s,ctx:{formatManager:n}}=this,{fromKey:r,toKey:a,sizeKey:l,sizeName:c,tooltip:d}=s,u=this.contextNodeData?.nodeData.find(b=>b.datumIndex.type===e.type&&b.datumIndex.index===e.index);if(u==null)return;const h=u.type===0?u.fromNode.index:u.index,p=u.type===0?`${u.fromNode.label} - ${u.toNode.label}`:u.label,g=e.type===0?i?.dataSources.get(this.id)?.[e.index]:o?.dataSources.get(this.id)?.[e.index],f=u.size;let y;if(u.type===0){const b=u.fromNode.datumIndex;y=this.getLinkStyle({datumIndex:e,datum:g},b.index,!1)}else y=this.getNodeStyle({datumIndex:e,datum:g},e.index,!1);const v=[];if(l!=null){const b=n.format(this.callWithContext.bind(this),{type:"number",value:f,datum:g,seriesId:t,legendItemName:void 0,key:l,source:"tooltip",property:"size",domain:[],boundSeries:this.getFormatterContext("size"),fractionDigits:void 0});v.push({label:c,fallbackLabel:l,value:b??String(f)})}return this.formatTooltipWithContext(d,{title:p,symbol:this.legendItemSymbol(u.type,h,y),data:v},{seriesId:t,datum:g,title:p,fromKey:r,toKey:a,sizeKey:l,sizeName:c,size:f,...y})}computeFocusBounds(e){if(e instanceof H3){const{x:t,y:i,width:o,height:s}=e,n=new $3(t,i,o,s);return Txe.toCanvas(this.contentGroup,n)}return e}hasItemStylers(){return this.properties.node.itemStyler!=null||this.properties.link.itemStyler!=null}};yM.className="SankeySeries";yM.type="sankey";var{commonSeriesOptionsDefs:Pxe,sankeySeriesThemeableOptionsDef:Exe}=R,dm={...Exe,...Pxe,type:ee(Ye("sankey")),fromKey:ee(H),toKey:ee(H),sizeKey:H,sizeName:H};dm.fillGradientDefaults=Oe(Zx);dm.fillPatternDefaults=Oe(qx);dm.fillImageDefaults=Oe(Qx);dm.defaultColorRange=Oe(_e(_e(ke)));dm.defaultPatternFills=Oe(_e(ke));var Fxe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["standalone"],solo:!0,identifier:"sankey",moduleFactory:e=>new yM(e),themeTemplate:{seriesArea:{padding:{top:10,bottom:10}},series:{fills:{$palette:"fills"},strokes:{$palette:"strokes"},fillGradientDefaults:R.FILL_GRADIENT_LINEAR_DEFAULTS,fillPatternDefaults:R.FILL_PATTERN_DEFAULTS,fillImageDefaults:R.FILL_IMAGE_DEFAULTS,defaultColorRange:{$palette:"gradients"},defaultPatternFills:R.SAFE_FILLS_OPERATION,highlightStyle:{series:{dimOpacity:.2}},highlight:{...R.singleSeriesHighlightStyle()},label:{...R.LABEL_BOXING_DEFAULTS,fontFamily:{$ref:"fontFamily"},fontSize:{$ref:"fontSize"},fontWeight:{$ref:"fontWeight"},color:{$ref:"textColor"},spacing:10},node:{spacing:20,width:10,strokeWidth:{$isUserOption:["./stroke",2,0]}},link:{fillOpacity:.5,strokeWidth:{$isUserOption:["./stroke",2,0]}}},legend:{enabled:!1,toggleSeries:!1}}},Nxe={type:"series",name:"sankey",chartType:"standalone",enterprise:!0,options:dm,create:e=>new yM(e)},{HierarchySeriesProperties:Oxe,HighlightStyle:Bxe,makeSeriesTooltip:Gxe,Property:mo}=R,Pu=class extends Bxe{constructor(){super(!1),this.label=new Tl,this.secondaryLabel=new Tl}};S([mo],Pu.prototype,"fill");S([mo],Pu.prototype,"fillOpacity");S([mo],Pu.prototype,"stroke");S([mo],Pu.prototype,"strokeWidth");S([mo],Pu.prototype,"strokeOpacity");S([mo],Pu.prototype,"label");S([mo],Pu.prototype,"secondaryLabel");var ln=class extends Oxe{constructor(){super(...arguments),this.fillOpacity=1,this.strokeWidth=0,this.strokeOpacity=1,this.cornerRadius=0,this.highlightStyle=new Pu,this.label=new Tl,this.secondaryLabel=new _b,this.tooltip=Gxe()}getStyle(e){const{fills:t,strokes:i,fillOpacity:o,strokeWidth:s,strokeOpacity:n}=this;return{fill:t[e%t.length],fillOpacity:o,stroke:i[e%i.length],strokeWidth:s,strokeOpacity:n,opacity:1}}};S([mo],ln.prototype,"sizeName");S([mo],ln.prototype,"labelKey");S([mo],ln.prototype,"secondaryLabelKey");S([mo],ln.prototype,"fillOpacity");S([mo],ln.prototype,"strokeWidth");S([mo],ln.prototype,"strokeOpacity");S([mo],ln.prototype,"cornerRadius");S([mo],ln.prototype,"sectorSpacing");S([mo],ln.prototype,"padding");S([mo],ln.prototype,"itemStyler");S([mo],ln.prototype,"highlightStyle");S([mo],ln.prototype,"label");S([mo],ln.prototype,"secondaryLabel");S([mo],ln.prototype,"tooltip");var{fromToMotion:zxe,normalizeAngle360:Vxe,createDatumId:_xe,PointerEvents:Hxe,Sector:W3,Group:g0,ScalableGroup:$xe,Selection:Vk,TransformableText:_k,BBox:j3,applyShapeStyle:Wxe,getShapeStyle:Hk,mergeDefaults:U3}=R,jxe=class extends R.HierarchyNode{constructor(){super(...arguments),this.label=void 0,this.secondaryLabel=void 0,this.contentHeight=0,this.bbox=void 0,this.startAngle=0,this.endAngle=0}};function m$(e,t=0,i=2*Math.PI/e.sumSize){for(const o of e.children){const s=t+o.sumSize*i;o.startAngle=t,o.endAngle=s,m$(o,t,i),t=s}}var vM=class extends R.HierarchySeries{constructor(e){super(e),this.NodeClass=jxe,this.properties=new ln,this.scalingGroup=this.contentGroup.appendChild(new $xe),this.sectorGroup=this.scalingGroup.appendChild(new g0),this.sectorLabelGroup=this.scalingGroup.appendChild(new g0),this.highlightSectorGroup=this.scalingGroup.appendChild(new g0),this.datumSelection=Vk.select(this.sectorGroup,W3),this.labelSelection=Vk.select(this.sectorLabelGroup,g0),this.highlightSelection=Vk.select(this.highlightSectorGroup,W3),this.sectorLabelGroup.pointerEvents=Hxe.None}processData(){super.processData(),m$(this.rootNode)}updateSelections(){const e=this.ctx.highlightManager?.getActiveHighlight();if(this.highlightSelection.update(e!=null?[e]:[],void 0,n=>this.getDatumId(n)),!this.nodeDataRefresh)return;this.nodeDataRefresh=!1;const{chart:t}=this;if(t==null||t.seriesRect==null)return;const o=Array.from(this.rootNode),s=n=>{n.append([new _k({tag:0}),new _k({tag:1})])};this.datumSelection.update(o,void 0,n=>this.getDatumId(n)),this.labelSelection.update(o,s,n=>this.getDatumId(n))}getItemStyle(e,t){const{id:i,properties:o,colorScale:s}=this,{itemStyler:n,fillGradientDefaults:r,fillPatternDefaults:a,fillImageDefaults:l}=o,c=e.datumIndex?.[0]??0,d=t?o.highlightStyle:void 0,u=U3(d,o.getStyle(c));!t&&e.colorValue!=null&&(u.fill=s.convert(e.colorValue));let h=Hk(u,r,a,l);if(n!=null&&e!=null){const p=this.ctx.highlightManager?.getActiveHighlight(),g=this.cachedDatumCallback(_xe(this.getDatumId(e),t?"highlight":"node"),()=>{const f=this.getHighlightStateString(p,t,e.datumIndex);return this.callWithContext(n,{seriesId:i,datum:e.datum,depth:e.depth??0,highlighted:t,highlightState:f,...h})});g&&(h=Hk(U3(g,h),r,a,l))}return h}updateNodes(){const{chart:e,data:t,maxDepth:i}=this;if(e==null||t==null)return;const{width:o,height:s}=e.seriesRect,{sectorSpacing:n=0,padding:r=0,cornerRadius:a,childrenKey:l,colorKey:c,colorName:d,labelKey:u,secondaryLabelKey:h,sizeKey:p,sizeName:g}=this.properties;this.contentGroup.translationX=o/2,this.contentGroup.translationY=s/2;const f=n*.5,y=Math.min(o,s)/2,v=y/(i+1),b=-Math.PI/2,C={series:new j3(-y,-y,2*y,2*y),axis:new j3(-y,-y,2*y,2*y)};this.rootNode?.walk(A=>{const{startAngle:w,endAngle:M}=A;if(A.depth!=null){const T=(w+M)/2+b,L=(A.depth+.5)*v;A.midPoint.x=Math.cos(T)*L,A.midPoint.y=Math.sin(T)*L}}),this.rootNode?.walk(A=>{const{datum:w,depth:M,startAngle:T,endAngle:L,parent:N,sumSize:O}=A;A.label=void 0,A.secondaryLabel=void 0,A.contentHeight=0;let F;if(w!=null&&M!=null&&u!=null){const ce=w[u];F=this.getLabelText(ce,w,u,"label",[],this.properties.label,{depth:M,datum:w,childrenKey:l,colorKey:c,colorName:d,labelKey:u,secondaryLabelKey:h,sizeKey:p,sizeName:g,value:ce})}F===""&&(F=void 0);let E;if(w!=null&&M!=null&&h!=null){const ce=w[h];E=this.getLabelText(ce,w,h,"secondaryLabel",[],this.properties.secondaryLabel,{depth:M,datum:w,childrenKey:l,colorKey:c,colorName:d,labelKey:u,secondaryLabelKey:h,sizeKey:p,sizeName:g,value:ce})}if(E===""&&(E=void 0),M==null)return;const G=M*v+f,B=(M+1)*v-f,z=G>f?f/G:f,V=B>f?f/B:f,$=T+z,W=L+z-$,j=T+V,q=L+V-j,Q=ce=>{if(M===0&&N?.sumSize===O)return{width:2*Math.sqrt(B**2-(ce*.5)**2),height:ce,meta:0};const oe=ce,pe=2*Math.sqrt(B**2-(G+oe)**2),we=W<Math.PI?2*G*Math.tan(W*.5):1/0,ze=Math.min(pe,we),je=Math.PI/4;let dt,ct;return M===0?(dt=ce,ct=Math.sqrt(B**2-(dt/2)**2)-ce/(2*Math.tan(q*.5))):Vxe(W)<je?(dt=2*G*Math.tan(W*.5),ct=Math.sqrt(B**2-(dt/2)**2)-G):(ct=0,dt=0),ze>=ct?{width:ze,height:oe,meta:1}:{width:ct,height:dt,meta:2}},ue=jP(F,this.properties.label,E,this.properties.secondaryLabel,{padding:r},Q);if(ue==null)return;const{width:de,height:te,meta:se,label:ie,secondaryLabel:le}=ue,ye=b+(T+L)/2,Me=Math.sin(ye)>=0,De=Math.cos(ye)>=0,ge=(Me?3:12)&(De?6:9);let Ge;switch(se){case 0:Ge=0;break;case 1:{const be=B-(v-te)*.58,oe=Math.sqrt((B-r)**2-(de/2)**2);Ge=Math.min(be,oe);break}case 2:if(M===0){const ce=te/(2*Math.tan(W*.5))+de*.5,be=Math.sqrt(B**2-(te*.5)**2)-de*.5;Ge=(ce+be)*.5}else Ge=(G+B)*.5;break}if(ie!=null){const{fontStyle:ce="normal",fontFamily:be,fontWeight:oe="normal",color:pe="black"}=this.properties.label;A.label={...ie,fontStyle:ce,fontFamily:be,fontWeight:oe,color:pe,labelPlacement:se,circleQuarter:ge,radius:Ge,theta:ye}}if(le!=null){const{fontStyle:ce="normal",fontFamily:be,fontWeight:oe="normal",color:pe="black"}=this.properties.secondaryLabel;A.secondaryLabel={...le,fontStyle:ce,fontFamily:be,fontWeight:oe,color:pe,labelPlacement:se,circleQuarter:ge,radius:Ge,theta:ye}}A.contentHeight=ue.height});const x=(A,w,M)=>{const{depth:T,startAngle:L,endAngle:N}=A;if(T==null){w.visible=!1;return}w.visible=!0;const O=this.getItemStyle(A,M),F=O.fill,E=O.strokeWidth,G=R.isGradientFill(F)&&F.bounds!=="item"?C:void 0;Wxe(w,O,G),w.centerX=0,w.centerY=0,w.innerRadius=T*v,w.outerRadius=(T+1)*v,w.startAngle=L+b,w.endAngle=N+b,w.inset=f+E*.5,w.cornerRadius=a};this.datumSelection.each((A,w)=>{x(w,A,!1)}),this.highlightSelection.each((A,w)=>{x(w,A,!0)});const D=(A,w,M,T)=>{const{depth:L,contentHeight:N}=A,O=M===0,F=O?A.label:A.secondaryLabel;if(L==null||F==null){w.visible=!1;return}const{labelPlacement:E,circleQuarter:G,radius:B,theta:z}=F;let V;switch(T&&(V=(O?this.properties.highlightStyle.label:this.properties.highlightStyle.secondaryLabel).color),w.text=F.text,w.fontSize=F.fontSize,w.lineHeight=F.lineHeight,w.fontStyle=F.fontStyle,w.fontFamily=F.fontFamily,w.fontWeight=F.fontWeight,w.fill=V??F.color,w.fillOpacity=this.getHighlightStyle(T,A.datumIndex)?.opacity??1,E){case 0:w.textAlign="center",w.textBaseline="top",w.translationX=0,w.translationY=(O?0:N-F.height)-N*.5,w.rotation=0;break;case 1:{const $=(G&3)!==0,_=O===!$?B:B-(N-F.height);w.textAlign="center",w.textBaseline=$?"bottom":"top",w.translationX=Math.cos(z)*_,w.translationY=Math.sin(z)*_,w.rotation=$?z-Math.PI*.5:z+Math.PI*.5;break}case 2:{const $=(G&6)!==0,_=O===!$?(N-F.height)*.5:(F.height-N)*.5;w.textAlign="center",w.textBaseline="middle",w.translationX=Math.cos(z)*B+Math.cos(z+Math.PI/2)*_,w.translationY=Math.sin(z)*B+Math.sin(z+Math.PI/2)*_,w.rotation=$?z:z+Math.PI;break}}w.visible=!0},k=this.ctx.highlightManager?.getActiveHighlight();this.labelSelection.selectByClass(_k).forEach(A=>{const w=A.closestDatum();D(w,A,A.tag,w===k)})}getTooltipContent(e){const{id:t,properties:i}=this,{labelKey:o,secondaryLabelKey:s,childrenKey:n,sizeKey:r,sizeName:a,colorKey:l,colorName:c,tooltip:d}=i,u=e.reduce((x,D)=>x?.children[D],this.rootNode);if(u==null)return;const{datum:h,depth:p}=u;if(h==null||p==null)return;const g=[],f=r!=null?h[r]:void 0;f!=null&&g.push({label:a,fallbackLabel:r,value:f});const y=l!=null?h[l]:void 0;y!=null&&g.push({label:c,fallbackLabel:l,value:y});const v=this.getItemStyle({...u,colorValue:y??u.colorValue},!1),b=v.fill,C=Hk({shape:"square",fill:b,fillOpacity:1,stroke:void 0,strokeWidth:0,strokeOpacity:1,lineDash:[0],lineDashOffset:0},i.fillGradientDefaults,i.fillPatternDefaults,i.fillImageDefaults);return R.isGradientFill(C.fill)&&(C.fill={...C.fill,gradient:"linear",rotation:0,reverse:!1}),this.formatTooltipWithContext(d,{title:o!=null?h[o]:void 0,symbol:{marker:C},data:g},{seriesId:t,datum:h,title:void 0,depth:p,labelKey:o,secondaryLabelKey:s,childrenKey:n,sizeKey:r,sizeName:a,colorKey:l,colorName:c,...v})}createNodeData(){}pickNodeClosestDatum(e){return this.pickNodeNearestDistantObject(e,this.datumSelection.nodes())}animateEmptyUpdateReady(){zxe(this.id,"nodes",this.ctx.animationManager,[this.scalingGroup],{toFn(){return{scalingX:1,scalingY:1}},fromFn(){return{scalingX:0,scalingY:0}}})}computeFocusBounds(e){return e}hasItemStylers(){return this.properties.itemStyler!=null}};vM.className="SunburstSeries";vM.type="sunburst";var{commonSeriesOptionsDefs:Uxe,sunburstSeriesThemeableOptionsDef:Kxe,without:Yxe}=R,Xxe={...Kxe,...Yxe(Uxe,["highlightStyle","highlight","showInLegend"]),type:ee(Ye("sunburst")),labelKey:H,secondaryLabelKey:H,childrenKey:H,sizeKey:H,colorKey:H,sizeName:H,colorName:H},{BASE_FONT_SIZE:K3,FONT_SIZE_RATIO:Y3}=R,Zxe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["standalone"],identifier:"sunburst",moduleFactory:e=>new vM(e),solo:!0,themeTemplate:{series:{fills:{$palette:"fills"},strokes:{$palette:"strokes"},colorRange:{$palette:"divergingColors"},fillGradientDefaults:R.FILL_GRADIENT_RADIAL_REVERSED_SERIES_DEFAULTS,fillPatternDefaults:R.FILL_PATTERN_DEFAULTS,fillImageDefaults:R.FILL_IMAGE_DEFAULTS,strokeWidth:{$isUserOption:["./strokes/0",2,0]},label:{...R.LABEL_BOXING_DEFAULTS,fontFamily:{$ref:"fontFamily"},fontSize:{$rem:Y3.LARGE},minimumFontSize:{$rem:9/K3},fontWeight:{$ref:"fontWeight"},color:{$ref:"chartBackgroundColor"},overflowStrategy:"ellipsis",wrapping:"never",spacing:2},secondaryLabel:{...R.LABEL_BOXING_DEFAULTS,fontFamily:{$ref:"fontFamily"},fontSize:{$rem:Y3.SMALLEST},minimumFontSize:{$rem:7/K3},fontWeight:{$ref:"fontWeight"},color:{$ref:"chartBackgroundColor"},overflowStrategy:"ellipsis",wrapping:"never"},sectorSpacing:2,padding:3,highlightStyle:{label:{color:{$ref:"chartBackgroundColor"}},secondaryLabel:{color:{$ref:"chartBackgroundColor"}},fill:"rgba(255,255,255, 0.33)",stroke:"rgba(0, 0, 0, 0.4)",strokeWidth:2}},gradientLegend:{enabled:!0,...R.LEGEND_CONTAINER_THEME}}},qxe={type:"series",name:"sunburst",chartType:"standalone",enterprise:!0,options:Xxe,create:e=>new vM(e)},{BaseProperties:bM,HierarchySeriesProperties:Qxe,HighlightStyle:Jxe,makeSeriesTooltip:ewe,Property:Je,Label:twe}=R,y$=class extends twe{constructor(){super(...arguments),this.spacing=0}};S([Je],y$.prototype,"spacing");var ta=class extends bM{constructor(){super(...arguments),this.fill=void 0,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 y$}};S([Je],ta.prototype,"fill");S([Je],ta.prototype,"fillOpacity");S([Je],ta.prototype,"stroke");S([Je],ta.prototype,"strokeWidth");S([Je],ta.prototype,"strokeOpacity");S([Je],ta.prototype,"cornerRadius");S([Je],ta.prototype,"textAlign");S([Je],ta.prototype,"gap");S([Je],ta.prototype,"padding");S([Je],ta.prototype,"interactive");S([Je],ta.prototype,"label");var lr=class extends bM{constructor(){super(...arguments),this.fill=void 0,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 Tl,this.secondaryLabel=new _b}};S([Je],lr.prototype,"fill");S([Je],lr.prototype,"fillOpacity");S([Je],lr.prototype,"stroke");S([Je],lr.prototype,"strokeWidth");S([Je],lr.prototype,"strokeOpacity");S([Je],lr.prototype,"cornerRadius");S([Je],lr.prototype,"textAlign");S([Je],lr.prototype,"verticalAlign");S([Je],lr.prototype,"gap");S([Je],lr.prototype,"padding");S([Je],lr.prototype,"label");S([Je],lr.prototype,"secondaryLabel");var Ep=class extends bM{constructor(){super(...arguments),this.label=new Tl}};S([Je],Ep.prototype,"fill");S([Je],Ep.prototype,"fillOpacity");S([Je],Ep.prototype,"stroke");S([Je],Ep.prototype,"strokeWidth");S([Je],Ep.prototype,"strokeOpacity");S([Je],Ep.prototype,"label");var Eu=class extends bM{constructor(){super(...arguments),this.label=new Tl,this.secondaryLabel=new _b}};S([Je],Eu.prototype,"fill");S([Je],Eu.prototype,"fillOpacity");S([Je],Eu.prototype,"stroke");S([Je],Eu.prototype,"strokeWidth");S([Je],Eu.prototype,"strokeOpacity");S([Je],Eu.prototype,"label");S([Je],Eu.prototype,"secondaryLabel");var vE=class extends Jxe{constructor(){super(!1),this.group=new Ep,this.tile=new Eu}getStyle(e){return e?this.tile:this.group}};S([Je],vE.prototype,"group");S([Je],vE.prototype,"tile");var ja=class extends Qxe{constructor(){super(...arguments),this.highlightStyle=new vE,this.tooltip=ewe(),this.group=new ta,this.tile=new lr,this.undocumentedGroupFills=[],this.undocumentedGroupStrokes=[]}getStyle(e,t,i,o){const{fillOpacity:s,strokeWidth:n,strokeOpacity:r,fill:a=e?t[o%t.length]:t[Math.min(o,t.length)],stroke:l=e?i[o%t.length]:i[Math.min(o,i.length)]}=e?this.tile:this.group;return{fill:a,fillOpacity:s,stroke:l,strokeWidth:n,strokeOpacity:r,opacity:1}}};S([Je],ja.prototype,"sizeName");S([Je],ja.prototype,"labelKey");S([Je],ja.prototype,"secondaryLabelKey");S([Je],ja.prototype,"itemStyler");S([Je],ja.prototype,"highlightStyle");S([Je],ja.prototype,"tooltip");S([Je],ja.prototype,"group");S([Je],ja.prototype,"tile");S([Je],ja.prototype,"undocumentedGroupFills");S([Je],ja.prototype,"undocumentedGroupStrokes");var{TextUtils:iwe,TextWrapper:owe,createDatumId:swe,Rect:X3,Group:Z3,BBox:Zp,Selection:$k,Text:nS,Transformable:nwe,applyShapeStyle:rwe,getShapeStyle:Wk,getLabelStyles:awe,mergeDefaults:q3}=R,lwe=class extends R.HierarchyNode{constructor(){super(...arguments),this.labelValue=void 0,this.secondaryLabelValue=void 0,this.label=void 0,this.secondaryLabel=void 0,this.bbox=void 0,this.padding=void 0}},Q3=new nS;function cwe(e,t){const{fontStyle:i,fontWeight:o,fontSize:s,fontFamily:n}=t;Q3.setProperties({text:e,fontStyle:i,fontWeight:o,fontSize:s,fontFamily:n,textAlign:"left",textBaseline:"top"});const{width:r,height:a}=Q3.getBBox();return{width:r,height:a}}function fd(e){return e.children.length>0?e.sumSize-e.sizeValue:e.sizeValue}var J3={left:0,center:.5,right:1},dwe={top:0,middle:.5,bottom:1};(class extends R.Group{distanceSquared(e,t){return this.getBBox().distanceSquared(e,t)}});var CM=class extends R.HierarchySeries{constructor(){super(...arguments),this.NodeClass=lwe,this.properties=new ja,this.rectGroup=this.contentGroup.appendChild(new Z3),this.datumSelection=$k.select(this.rectGroup,X3),this.labelSelection=$k.select(this.labelGroup,Z3),this.highlightSelection=$k.select(this.rectGroup,X3)}groupTitleHeight(e,t){const{labelValue:i}=e,{label:o}=this.properties.group,s=3;if(i!=null){if(o.fontSize>t.width/s||o.fontSize>t.height/s)return;{const{height:n}=cwe(i,o);return Math.max(n,o.fontSize)}}}getNodePadding(e,t){if(e.parent==null)return{top:0,right:0,bottom:0,left:0};if(e.children.length===0){const{padding:r}=this.properties.tile;return{top:r,right:r,bottom:r,left:r}}const{label:{spacing:i},padding:o}=this.properties.group,s=this.groupTitleHeight(e,t),n=s!=null?s+i:0;return{top:o+n,right:o,bottom:o,left:o}}sortChildren({children:e}){const t=Array.from(e,(o,s)=>s).filter(o=>fd(e[o])>0).sort((o,s)=>fd(e[s])-fd(e[o]));return{sortedChildrenIndices:t,childAt:o=>{const s=t[o];return e[s]}}}squarify(e,t){const{datum:i,children:o}=e;if(t.width<=0||t.height<=0){e.bbox=void 0,e.padding=void 0,e.midPoint.x=NaN,e.midPoint.y=NaN;return}const s=i!=null?this.getNodePadding(e,t):{top:0,right:0,bottom:0,left:0};e.parent==null?(e.bbox=void 0,e.padding=void 0,e.midPoint.x=NaN,e.midPoint.y=NaN):(e.bbox=t,e.padding=s,e.midPoint.x=t.x+t.width/2,e.midPoint.y=t.y);const{sortedChildrenIndices:n,childAt:r}=this.sortChildren(e),a=n.every(D=>o[D].children.length===0),l=1,c=t.width-s.left-s.right,d=t.height-s.top-s.bottom;if(c<=0||d<=0)return;const u=n.length;let h=0,p=0,g=1/0,f=n.reduce((D,k)=>D+fd(o[k]),0);const y=new Zp(t.x+s.left,t.y+s.top,c,d),v=y.clone();let b=0;for(;b<u;){const D=fd(r(b)),k=fd(r(p)),A=v.width<v.height;h+=D;const w=A?v.height:v.width,M=A?v.width:v.height,T=M*k/h;let L=w*h/f;const N=Math.max(T,L)/Math.min(T,L),O=Math.abs(l-N);if(O<g){g=O,b++;continue}h-=D,L=w*h/f;let F=A?v.x:v.y;for(let E=p;E<b;E++){const G=r(E),B=fd(G),z=A?F:v.x,V=A?v.y:F,$=M*B/h,_=A?$:L,W=A?L:$,j=new Zp(z,V,_,W);this.applyGap(y,j,a),this.squarify(G,j),f-=B,F+=$}A?(v.y+=L,v.height-=L):(v.x+=L,v.width-=L),p=b,h=0,g=1/0}const C=v.width<v.height;let x=C?v.x:v.y;for(let D=p;D<u;D++){const k=r(D),A=C?x:v.x,w=C?v.y:x,M=fd(k)/f,T=v.width*(C?M:1),L=v.height*(C?1:M),N=new Zp(A,w,T,L);this.applyGap(y,N,a),this.squarify(k,N),x+=C?T:L}}applyGap(e,t,i){const o=i?this.properties.tile.gap*.5:this.properties.group.gap*.5,s=l=>({left:l.x,top:l.y,right:l.x+l.width,bottom:l.y+l.height}),n=s(e),r=s(t);["top","right","bottom","left"].forEach(l=>{Ht(n[l],r[l])||t.shrink(o,l)})}createNodeData(){}getItemStyle(e,t,i){const{id:o,properties:s,colorScale:n,ctx:r}=this,{itemStyler:a,fillGradientDefaults:l,fillPatternDefaults:c,fillImageDefaults:d}=s,u=e.datumIndex?.[0]??0,h=t?s.fills:s.undocumentedGroupFills,p=t?s.strokes:s.undocumentedGroupStrokes,g=t?u:e.depth??-1,f=i?s.highlightStyle.getStyle(t):void 0,y=q3(f,s.getStyle(t,h,p,g));!i&&t&&e.colorValue!=null&&(y.fill=n.convert(e.colorValue));let v=Wk(y,l,c,d);if(a!=null&&e!=null){const b=this.cachedDatumCallback(swe(this.getDatumId(e),i?"highlight":"node"),()=>{const C=r.highlightManager?.getActiveHighlight(),x=this.getHighlightStateString(C,i,e.datumIndex);return this.callWithContext(a,{seriesId:o,datum:e.datum,depth:e.depth??-1,highlighted:i,highlightState:x,...v})});b&&(v=Wk(q3(b,v),l,c,d))}return v}updateSelections(){let e=this.ctx.highlightManager?.getActiveHighlight();if(e!=null&&!this.properties.group.interactive&&e.children.length!==0&&(e=void 0),this.highlightSelection.update(e!=null?[e]:[],void 0,s=>this.getDatumId(s)),!this.nodeDataRefresh)return;this.nodeDataRefresh=!1;const{seriesRect:t}=this.chart??{};if(!t)return;const i=Array.from(this.rootNode),o=s=>{s.append([new nS({tag:0}),new nS({tag:1})])};this.datumSelection.update(i,void 0,s=>this.getDatumId(s)),this.labelSelection.update(i,o,s=>this.getDatumId(s))}updateNodes(){const{rootNode:e,data:t}=this,{childrenKey:i,colorKey:o,colorName:s,labelKey:n,secondaryLabelKey:r,sizeKey:a,sizeName:l,highlightStyle:c,tile:d,group:u}=this.properties,{seriesRect:h}=this.chart??{};if(!h||!t)return;this.rootNode?.walk(C=>{const{datum:x,depth:D,children:k}=C,A=k.length===0,w=A?d.label:u.label;let M;if(w.enabled&&x!=null&&D!=null&&n!=null){const L=x[n];M=this.getLabelText(L,x,n,"label",[],w,{depth:D,datum:x,childrenKey:i,colorKey:o,colorName:s,labelKey:n,secondaryLabelKey:r,sizeKey:a,sizeName:l,value:L})}M===""&&(M=void 0);let T;if(d.secondaryLabel.enabled&&A&&x!=null&&D!=null&&r!=null){const L=x[r];T=this.getLabelText(L,x,r,"secondaryLabel",[],d.secondaryLabel,{depth:D,datum:x,childrenKey:i,colorKey:o,colorName:s,labelKey:n,secondaryLabelKey:r,sizeKey:a,sizeName:l,value:L})}T===""&&(T=void 0),C.labelValue=M,C.secondaryLabelValue=T});const{width:p,height:g}=h;this.squarify(e,new Zp(0,0,p,g)),this.rootNode?.walk(C=>{const{bbox:x,children:D,labelValue:k,secondaryLabelValue:A}=C;if(C.label=void 0,C.secondaryLabel=void 0,x!=null)if(D.length===0){const w={width:x.width,height:x.height,meta:null},M=jP(k,this.properties.tile.label,A,this.properties.tile.secondaryLabel,{padding:d.padding},()=>w);if(M==null)return;const{height:T,label:L,secondaryLabel:N}=M,{textAlign:O,verticalAlign:F,padding:E}=d,G=J3[O]??.5,B=x.x+E+(x.width-2*E)*G,z=dwe[F]??.5,V=x.y+E+T*.5+(x.height-2*E-T)*z;if(L!=null){const{fontStyle:$="normal",fontFamily:_,fontWeight:W="normal",color:j="black"}=this.properties.tile.label;C.label={text:L.text,fontSize:L.fontSize,lineHeight:L.lineHeight,fontStyle:$,fontFamily:_,fontWeight:W,color:j,textAlign:O,verticalAlign:"middle",x:B,y:V-(T-L.height)*.5}}if(N!=null){const{fontStyle:$="normal",fontFamily:_,fontWeight:W="normal",color:j="black"}=this.properties.tile.secondaryLabel;C.secondaryLabel={text:N.text,fontSize:N.fontSize,lineHeight:N.fontSize,fontStyle:$,fontFamily:_,fontWeight:W,color:j,textAlign:O,verticalAlign:"middle",x:B,y:V+(T-N.height)*.5}}}else{if(k==null)return;{const{padding:w,textAlign:M}=u,T=this.groupTitleHeight(C,x);if(T==null)return;const L=x.width-2*w,N=owe.wrapText(k,{maxWidth:x.width-2*w,font:u.label,textWrap:"never"}),O=J3[M]??.5,{fontStyle:F="normal",fontFamily:E,fontWeight:G="normal",color:B="black"}=this.properties.group.label;C.label={text:N,fontSize:u.label.fontSize,lineHeight:iwe.getLineHeight(u.label.fontSize),fontStyle:F,fontFamily:E,fontWeight:G,color:B,textAlign:M,verticalAlign:"middle",x:x.x+w+L*O,y:x.y+w+T*.5}}}});const f={series:new Zp(0,0,p,g),axis:new Zp(0,0,p,g)},y=(C,x,D)=>{const{bbox:k}=C;if(k==null){x.visible=!1;return}const{depth:A=-1}=C,w=C.children.length===0,M=this.getItemStyle(C,w,D);x.crisp=!0,rwe(x,M,f),x.cornerRadius=w?d.cornerRadius:u.cornerRadius,x.zIndex=[0,A,D?1:0];const T=C.parent?.children.every(O=>O.children.length===0),L=C.parent!=null?C.parent.bbox:void 0,N=C.parent!=null?C.parent.padding:void 0;T===!0&&L!=null&&N!=null?(x.clipBBox=k,x.x=L.x+N.left,x.y=L.y+N.top,x.width=L.width-(N.left+N.right),x.height=L.height-(N.top+N.bottom)):(x.clipBBox=void 0,x.x=k.x,x.y=k.y,x.width=k.width,x.height=k.height),x.visible=!0};this.datumSelection.each((C,x)=>y(x,C,!1)),this.highlightSelection.each((C,x)=>{y(x,C,!0)});const v=(C,x,D,k)=>{const A=C.children.length===0,w=D===0?C.label:C.secondaryLabel;if(w==null){x.visible=!1;return}const M=D===0?d.label:d.secondaryLabel;let T;if(k){const{tile:E,group:G}=c;T=E.secondaryLabel.color,A?D===0&&(T=E.label.color):T=G.label.color}const L={childrenKey:this.properties.childrenKey,colorKey:this.properties.colorKey,colorName:this.properties.colorName??this.properties.colorKey,depth:C.depth??NaN,labelKey:this.properties.labelKey,secondaryLabelKey:this.properties.secondaryLabelKey,sizeKey:this.properties.sizeKey,sizeName:this.properties.sizeName??this.properties.sizeKey},N=this.ctx.highlightManager?.getActiveHighlight(),O=this.getHighlightStateString(N,k,C.datumIndex),F=awe(this,C,L,M,k,O);x.text=w.text,x.fontSize=w.fontSize,x.lineHeight=w.lineHeight,x.fontStyle=w.fontStyle,x.fontFamily=w.fontFamily,x.fontWeight=w.fontWeight,x.fill=T??w.color,x.fillOpacity=this.getHighlightStyle(k,C.datumIndex)?.opacity??1,x.textAlign=w.textAlign,x.textBaseline=w.verticalAlign,x.x=w.x,x.y=w.y,x.setBoxing(F),x.visible=!0,x.zIndex=1},b=this.ctx.highlightManager?.getActiveHighlight();this.labelSelection.selectByClass(nS).forEach(C=>{const x=C.closestDatum();v(x,C,C.tag,x===b)})}pickNodesExactShape(e){const t=super.pickNodesExactShape(e);return t.sort((i,o)=>o.datumIndex.length-i.datumIndex.length),t}pickNodeClosestDatum(e){const t=this.pickNodesExactShape(e);return t.length!==0?{datum:t[0],distance:0}:this.pickNodeNearestDistantObject(e,this.datumSelection.nodes())}getTooltipContent(e){const{id:t,properties:i}=this,{labelKey:o,secondaryLabelKey:s,childrenKey:n,sizeKey:r,sizeName:a,colorKey:l,colorName:c,tooltip:d}=i,u=e.reduce((A,w)=>A?.children[w],this.rootNode);if(u==null)return;const{datum:h,depth:p,children:g}=u;if(h==null||p==null)return;const f=g.length===0,y=[],v=r!=null?h[r]:void 0;v!=null&&y.push({label:a,fallbackLabel:r,value:v});const b=l!=null?h[l]:void 0;b!=null&&y.push({label:c,fallbackLabel:l,value:b});const C=this.getItemStyle({...u,colorValue:b??u.colorValue},f,!1),x=C.fill,D=Wk({shape:"square",fill:x,fillOpacity:1,stroke:void 0,strokeWidth:0,strokeOpacity:1,lineDash:[0],lineDashOffset:0},this.properties.fillGradientDefaults,this.properties.fillPatternDefaults,this.properties.fillImageDefaults);R.isGradientFill(D.fill)&&(D.fill={...D.fill,gradient:"linear",rotation:0,reverse:!1});const k=f?{marker:D}:void 0;return this.formatTooltipWithContext(d,{title:o!=null?h[o]:void 0,symbol:k,data:y},{seriesId:t,datum:h,title:void 0,depth:p,labelKey:o,secondaryLabelKey:s,childrenKey:n,sizeKey:r,sizeName:a,colorKey:l,colorName:c,...C})}computeFocusBounds(e){return nwe.toCanvas(this.contentGroup,e.getBBox())}hasItemStylers(){return this.properties.itemStyler!=null}};CM.className="TreemapSeries";CM.type="treemap";var{commonSeriesOptionsDefs:uwe,treemapSeriesThemeableOptionsDef:hwe,without:pwe}=R,um={...hwe,...pwe(uwe,["highlightStyle","highlight","showInLegend"]),type:ee(Ye("treemap")),labelKey:H,secondaryLabelKey:H,childrenKey:H,sizeKey:H,colorKey:H,sizeName:H,colorName:H};um.fillGradientDefaults=Oe(Zx);um.fillPatternDefaults=Oe(qx);um.fillImageDefaults=Oe(Qx);um.undocumentedGroupFills=Oe(_e(ke));um.undocumentedGroupStrokes=Oe(_e(ke));var{FONT_SIZE_RATIO:e5}=R,gwe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["standalone"],identifier:"treemap",moduleFactory:e=>new CM(e),solo:!0,themeTemplate:{series:{fills:{$palette:"fills"},strokes:{$palette:"strokes"},colorRange:{$palette:"divergingColors"},fillGradientDefaults:R.FILL_GRADIENT_LINEAR_DEFAULTS,fillPatternDefaults:R.FILL_PATTERN_DEFAULTS,fillImageDefaults:R.FILL_IMAGE_DEFAULTS,undocumentedGroupFills:{$palette:"hierarchyColors"},undocumentedGroupStrokes:{$palette:"secondHierarchyColors"},group:{label:{...R.LABEL_BOXING_DEFAULTS,enabled:!0,color:{$ref:"textColor"},fontStyle:void 0,fontWeight:{$ref:"fontWeight"},fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},spacing:4},fill:void 0,stroke:void 0,strokeWidth:1,padding:4,gap:2,textAlign:"left"},tile:{label:{...R.LABEL_BOXING_DEFAULTS,enabled:!0,color:{$ref:"chartBackgroundColor"},fontStyle:void 0,fontWeight:{$ref:"fontWeight"},fontSize:{$rem:1.5},minimumFontSize:{$rem:e5.SMALLER},fontFamily:{$ref:"fontFamily"},wrapping:"on-space",overflowStrategy:"ellipsis",spacing:2},secondaryLabel:{...R.LABEL_BOXING_DEFAULTS,enabled:!0,color:{$ref:"chartBackgroundColor"},fontStyle:void 0,fontWeight:void 0,fontSize:{$ref:"fontSize"},minimumFontSize:{$rem:e5.SMALLER},fontFamily:{$ref:"fontFamily"},wrapping:"never",overflowStrategy:"ellipsis"},fill:void 0,stroke:void 0,strokeWidth:{$isUserOption:["../strokes/0",2,{$isUserOption:["./stroke",2,0]}]},padding:3,gap:1},highlightStyle:{group:{label:{color:{$ref:"textColor"}},fill:"rgba(255,255,255, 0.33)",stroke:"rgba(0, 0, 0, 0.4)",strokeWidth:2},tile:{label:{color:{$ref:"chartBackgroundColor"}},secondaryLabel:{color:{$ref:"chartBackgroundColor"}},fill:"rgba(255,255,255, 0.33)",stroke:"rgba(0, 0, 0, 0.4)",strokeWidth:2}}},gradientLegend:{enabled:!0,...R.LEGEND_CONTAINER_THEME}}},fwe={type:"series",name:"treemap",chartType:"standalone",enterprise:!0,options:um,create:e=>new CM(e)};R.ModuleRegistry;var mwe=[yfe,J6,i7,sye,Dye,r7,a7,d7,u7,p7],ywe=[vfe,bfe,Cfe,Sfe,TCe,V0e,j0e,ASe,BSe],vwe=[Mfe,QCe,ove,pxe,qxe,fwe,gme,Nxe],bwe=[Rfe,Tve,Gve,cbe,Pbe,Ube],Cwe=[...mwe,...ywe,...vwe,...bwe,Hfe,$fe,Wfe],Swe=`.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,PHN2ZyB3aWR0aD0iMjU4IiBoZWlnaHQ9IjQwIiB2aWV3Qm94PSIwIDAgMjU4IDQwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMjUuNzc5IDI4LjY1N0gxMy4zNTlMMTEuMTczIDM0LjAxMkg1LjY3Mjk3TDE3LjE4MiA3LjA1OTk5SDIxLjk1M0wzMy40NjIgMzQuMDEySDI3Ljk2MkwyNS43NzYgMjguNjU3SDI1Ljc3OVpNMjQuMDY4IDI0LjM5N0wxOS41ODggMTMuNDM0TDE1LjEwNyAyNC4zOTdIMjQuMDY4Wk02Mi4wOTIgMTguODIzSDQ5LjgxN1YyMy4wODZINTYuNzc1QzU2LjU1NSAyNS4yMjIgNTUuNzU1IDI2LjkyNyA1NC4zNzIgMjguMjAyQzUyLjk4OSAyOS40NzYgNTEuMTY2IDMwLjExNSA0OC45MDkgMzAuMTE1QzQ3LjYyMiAzMC4xMTUgNDYuNDUgMjkuODg1IDQ1LjM5MyAyOS40MjNDNDQuMzU4MyAyOC45NzgxIDQzLjQzMjYgMjguMzEzOCA0Mi42OCAyNy40NzZDNDEuOTI3IDI2LjYzOSA0MS4zNDQgMjUuNjMxIDQwLjkzMSAyNC40NTNDNDAuNTE5IDIzLjI3NSA0MC4zMTEgMjEuOTcgNDAuMzExIDIwLjUzN0M0MC4zMTEgMTkuMTA1IDQwLjUxNiAxNy44IDQwLjkzMSAxNi42MjFDNDEuMzQ0IDE1LjQ0MyA0MS45MjcgMTQuNDM2IDQyLjY4IDEzLjU5OEM0My40Mzc2IDEyLjc1NzcgNDQuMzY5NiAxMi4wOTMyIDQ1LjQxMSAxMS42NTFDNDYuNDc4IDExLjE4OSA0Ny42NTYgMTAuOTYgNDguOTQ2IDEwLjk2QzUxLjYxMiAxMC45NiA1My42MzcgMTEuNjAyIDU1LjAyIDEyLjg4NUw1OC4zIDkuNjA0OTlDNTUuODE3IDcuNjY5OTkgNTIuNjc2IDYuNjk5OTkgNDguODcyIDYuNjk5OTlDNDYuNzYgNi42OTk5OSA0NC44NTMgNy4wMzQ5OSA0My4xNTQgNy43MDA5OUM0MS40NTUgOC4zNjc5OSAzOS45OTggOS4zMDM5OSAzOC43ODMgMTAuNTA0QzM3LjU2NyAxMS43MDcgMzYuNjM0IDEzLjE1OCAzNS45NzcgMTQuODU3QzM1LjMxOSAxNi41NTYgMzQuOTk0IDE4LjQ1MSAzNC45OTQgMjAuNTRDMzQuOTk0IDIyLjYzIDM1LjMyOSAyNC40OTQgMzUuOTk1IDI2LjIwNUMzNi42NjIgMjcuOTE2IDM3LjYwNSAyOS4zNzQgMzguODE3IDMwLjU3N0M0MC4wMzIgMzEuNzggNDEuNDg2IDMyLjcxMyA0My4xODggMzMuMzgzQzQ0Ljg4OCAzNC4wNDkgNDYuNzgyIDM0LjM4NCA0OC44NzIgMzQuMzg0QzUwLjk2MSAzNC4zODQgNTIuNzUgMzQuMDQ5IDU0LjM5IDMzLjM4M0M1Ni4wMzEgMzIuNzE2IDU3LjQyNiAzMS43OCA1OC41NzkgMzAuNTc3QzU5LjczMyAyOS4zNzQgNjAuNjE5IDI3LjkxNiA2MS4yMzkgMjYuMjA1QzYxLjg2IDI0LjQ5NCA2Mi4xNyAyMi42MDUgNjIuMTcgMjAuNTRDNjIuMTY5NiAxOS45Njg4IDYyLjE0NDUgMTkuMzk4IDYyLjA5NSAxOC44MjlMNjIuMDkyIDE4LjgyM1pNMTUxLjgxIDE2Ljk4MUMxNTMuNDEgMTQuNjA5IDE1Ny40MTkgMTQuMzU4IDE1OS4wMjIgMTQuMzU4VjE4LjkxQzE1Ni45NTcgMTguOTEgMTU0Ljk4NSAxOC45OTYgMTUzLjc1NyAxOS44OTJDMTUyLjUyOSAyMC43OTIgMTUxLjkxOSAyMS45ODIgMTUxLjkxOSAyMy40NjRWMzMuOTlIMTQ2Ljk2NFYxNC4zNThIMTUxLjczNkwxNTEuODEgMTYuOTgxWk0xNDMuMDExIDE0LjM2MVYzNC4wMzFIMTM4LjI0TDEzOC4xMzEgMzEuMDQ1QzEzNy40NjYgMzIuMDc2IDEzNi41NTEgMzIuOTIxOSAxMzUuNDcxIDMzLjUwNEMxMzQuMzc2IDM0LjA5OSAxMzMuMDY4IDM0LjM5NiAxMzEuNTM2IDM0LjM5NkMxMzAuMiAzNC4zOTYgMTI4Ljk2MyAzNC4xNTIgMTI3LjgyMiAzMy42NjhDMTI2LjcgMzMuMTk2NCAxMjUuNjg5IDMyLjQ5NSAxMjQuODU1IDMxLjYwOUMxMjQuMDE4IDMwLjcyMiAxMjMuMzU0IDI5LjY2MiAxMjIuODcxIDI4LjQyMkMxMjIuMzg0IDI3LjE4NSAxMjIuMTQyIDI1LjgxMSAxMjIuMTQyIDI0LjMwNEMxMjIuMTQyIDIyLjc5OCAxMjIuMzg0IDIxLjM3OCAxMjIuODcxIDIwLjExNkMxMjMuMzU3IDE4Ljg1NCAxMjQuMDE4IDE3Ljc3MiAxMjQuODU1IDE2Ljg3M0MxMjUuNjg4IDE1Ljk3NjQgMTI2LjY5OCAxNS4yNjM2IDEyNy44MjIgMTQuNzhDMTI4Ljk2MyAxNC4yODEgMTMwLjIwMyAxNC4wMzMgMTMxLjUzNiAxNC4wMzNDMTMzLjA0MyAxNC4wMzMgMTM0LjMzIDE0LjMxOCAxMzUuMzk3IDE0Ljg4OEMxMzYuNDYyIDE1LjQ1ODkgMTM3LjM3NSAxNi4yNzggMTM4LjA1NyAxNy4yNzZWMTQuMzYxSDE0My4wMTFaTTEzMi42MzEgMzAuMTMzQzEzNC4yNTYgMzAuMTMzIDEzNS41NjcgMjkuNTk0IDEzNi41NjUgMjguNTEyQzEzNy41NjEgMjcuNDMgMTM4LjA2IDI1Ljk5MSAxMzguMDYgMjQuMTk2QzEzOC4wNiAyMi40MDEgMTM3LjU2MSAyMC45OSAxMzYuNTY1IDE5Ljg5OUMxMzUuNTcgMTguODA3IDEzNC4yNTkgMTguMjU4IDEzMi42MzEgMTguMjU4QzEzMS4wMDMgMTguMjU4IDEyOS43MjkgMTguODA0IDEyOC43MzQgMTkuODk5QzEyNy43MzggMjAuOTkzIDEyNy4yMzkgMjIuNDM4IDEyNy4yMzkgMjQuMjMzQzEyNy4yMzkgMjYuMDI4IDEyNy43MzUgMjcuNDMzIDEyOC43MzQgMjguNTE1QzEyOS43MjkgMjkuNTk0IDEzMS4wMjggMzAuMTM2IDEzMi42MzEgMzAuMTM2VjMwLjEzM1pNOTMuNjk4IDI3Ljg3NkM5My41Nzk1IDI4LjAwMjUgOTMuNDU2NCAyOC4xMjQ2IDkzLjMyOSAyOC4yNDJDOTEuOTQ3IDI5LjUxNiA5MC4xMjMgMzAuMTU1IDg3Ljg2NiAzMC4xNTVDODYuNTggMzAuMTU1IDg1LjQwOCAyOS45MjYgODQuMzUgMjkuNDY0QzgzLjMxNTUgMjkuMDE4OSA4Mi4zODk4IDI4LjM1NDYgODEuNjM3IDI3LjUxN0M4MC44ODQgMjYuNjc5IDgwLjMwMSAyNS42NzIgNzkuODg5IDI0LjQ5NEM3OS40NzYgMjMuMzE1IDc5LjI2OSAyMi4wMSA3OS4yNjkgMjAuNTc4Qzc5LjI2OSAxOS4xNDUgNzkuNDczIDE3Ljg0IDc5Ljg4OSAxNi42NjJDODAuMzAxIDE1LjQ4NCA4MC44ODQgMTQuNDc2IDgxLjYzNyAxMy42MzlDODIuMzk0OSAxMi43OTg3IDgzLjMyNzMgMTIuMTM0MiA4NC4zNjkgMTEuNjkyQzg1LjQzNiAxMS4yMyA4Ni42MTQgMTEgODcuOTAzIDExQzkwLjU3IDExIDkyLjU5NSAxMS42NDIgOTMuOTc3IDEyLjkyNkw5Ny4yNTggOS42NDQ5OUM5NC43NzQgNy43MTA5OSA5MS42MzMgNi43Mzk5OSA4Ny44MjkgNi43Mzk5OUM4NS43MTggNi43Mzk5OSA4My44MTEgNy4wNzQ5OSA4Mi4xMTIgNy43NDE5OUM4MC40MTMgOC40MDc5OSA3OC45NTYgOS4zNDQ5OSA3Ny43NCAxMC41NDVDNzYuNTI1IDExLjc0NyA3NS41OTIgMTMuMTk5IDc0LjkzNCAxNC44OThDNzQuMjc3IDE2LjU5NyA3My45NTEgMTguNDkxIDczLjk1MSAyMC41ODFDNzMuOTUxIDIyLjY3IDc0LjI4NiAyNC41MzQgNzQuOTUzIDI2LjI0NUM3NS42MTkgMjcuOTU3IDc2LjU2MiAyOS40MTQgNzcuNzc0IDMwLjYxN0M3OC45OSAzMS44MiA4MC40NDQgMzIuNzUzIDgyLjE0NiAzMy40MjNDODMuODQ1IDM0LjA5IDg1LjczOSAzNC40MjQgODcuODI5IDM0LjQyNEM4OS45MTkgMzQuNDI0IDkxLjcwOCAzNC4wOSA5My4zNDggMzMuNDIzQzk0LjcxOCAzMi44NjUgOTUuOTE4IDMyLjEyMSA5Ni45NDggMzEuMTkxQzk3LjE0OSAzMS4wMDggOTcuMzQ4IDMwLjgxNSA5Ny41MzcgMzAuNjJMOTMuNzAxIDI3Ljg4NUw5My42OTggMjcuODc2Wk0xMTAuODAyIDE0LjAxNUMxMDkuMTk5IDE0LjAxNSAxMDYuODM2IDE0LjQ3MSAxMDUuNjExIDE2LjE1OEwxMDUuNTM3IDYuMDE1OTlIMTAwLjc2NVYzMy45MzlIMTA1LjcyVjIyLjY0MUMxMDUuNzcxIDIxLjQ2MDcgMTA2LjI4OCAyMC4zNDg4IDEwNy4xNTcgMTkuNTQ4OUMxMDguMDI3IDE4Ljc0OTEgMTA5LjE3OCAxOC4zMjY2IDExMC4zNTggMTguMzc0QzExMy4zOTcgMTguMzc0IDExNC4yNjggMjEuMTU5IDExNC4yNjggMjIuNjQxVjMzLjkzOUgxMTkuMjIzVjIxLjA1OUMxMTkuMjIzIDIxLjA1OSAxMTkuMTQyIDE0LjAxNSAxMTAuODAyIDE0LjAxNVpNMTczLjc2MyAxNC4zNThIMTY5Ljk5OVY4LjcxNDk5SDE2NS4wNDhWMTQuMzU4SDE2MS4yODRWMTguOTE2SDE2NS4wNDhWMzQuMDAzSDE2OS45OTlWMTguOTE2SDE3My43NjNWMTQuMzU4Wk0xOTAuNzg3IDI1LjI2MkMxOTAuMTI5IDI0LjUwMTQgMTg5LjMwNyAyMy44OTk0IDE4OC4zODQgMjMuNTAxQzE4Ny40ODggMjMuMTE3IDE4Ni4zMzEgMjIuNzMyIDE4NC45NDggMjIuMzY0QzE4NC4xNjUgMjIuMTQzOSAxODMuMzkgMjEuODk3OCAxODIuNjIzIDIxLjYyNkMxODIuMTYzIDIxLjQ2MjEgMTgxLjc0MSAyMS4yMDY2IDE4MS4zODMgMjAuODc1QzE4MS4yMzUgMjAuNzQyMSAxODEuMTE4IDIwLjU3ODkgMTgxLjAzOSAyMC4zOTY0QzE4MC45NjEgMjAuMjE0IDE4MC45MjIgMjAuMDE2NiAxODAuOTI3IDE5LjgxOEMxODAuOTI3IDE5LjI3MiAxODEuMTU2IDE4Ljg0NCAxODEuNjI1IDE4LjUxQzE4Mi4xMjEgMTguMTU2IDE4Mi44NjIgMTcuOTc2IDE4My44MjYgMTcuOTc2QzE4NC43OSAxNy45NzYgMTg1LjU4NyAxOC4yMDkgMTg2LjE0OCAxOC42NjhDMTg2LjcwNiAxOS4xMjQgMTg3LjAwNyAxOS43MjUgMTg3LjA3MiAyMC41TDE4Ny4wOTQgMjAuNzgySDE5MS42MzNMMTkxLjYxNyAyMC40NkMxOTEuNTIxIDE4LjQ4NSAxOTAuNzcxIDE2LjkgMTg5LjM4NSAxNS43NUMxODguMDEyIDE0LjYxMiAxODYuMTg1IDE0LjAzMyAxODMuOTYyIDE0LjAzM0MxODIuNDc3IDE0LjAzMyAxODEuMTQxIDE0LjI4NyAxNzkuOTk0IDE0Ljc4NkMxNzguODMxIDE1LjI5MSAxNzcuOTI2IDE1Ljk5NSAxNzcuMjk2IDE2Ljg4MkMxNzYuNjczIDE3Ljc0NTUgMTc2LjMzOCAxOC43ODQgMTc2LjM0MSAxOS44NDlDMTc2LjM0MSAyMS4xNjcgMTc2LjY5OCAyMi4yNDkgMTc3LjM5OSAyMy4wNjRDMTc4LjA2IDIzLjg0MzIgMTc4Ljg5OCAyNC40NTM0IDE3OS44NDIgMjQuODQ0QzE4MC43NDQgMjUuMjE2IDE4MS45MjggMjUuNjA3IDE4My4zNjEgMjZDMTg0LjgwNiAyNi40MSAxODUuODcyIDI2Ljc4NSAxODYuNTMgMjcuMTIzQzE4Ny4xIDI3LjQxNCAxODcuMzc5IDI3Ljg0NSAxODcuMzc5IDI4LjQ0NEMxODcuMzc5IDI5LjA0MiAxODcuMTIyIDI5LjQ2NyAxODYuNTk1IDI5LjgzOUMxODYuMDQzIDMwLjIyNiAxODUuMjM3IDMwLjQyNSAxODQuMjAxIDMwLjQyNUMxODMuMTY2IDMwLjQyNSAxODIuMzk0IDMwLjE3NCAxODEuNzQ5IDI5LjY3NEMxODEuMTEzIDI5LjE4MSAxODAuNzcyIDI4LjU4OSAxODAuNzEgMjcuODY0TDE4MC42ODUgMjcuNTgySDE3Ni4wMTNMMTc2LjAyNSAyNy45MDFDMTc2LjA2NyAyOS4wOTU1IDE3Ni40NzIgMzAuMjQ4NyAxNzcuMTg4IDMxLjIwNkMxNzcuOTA3IDMyLjE4IDE3OC44OTMgMzIuOTU4IDE4MC4xMTggMzMuNTE5QzE4MS4zMzYgMzQuMDc3IDE4Mi43MzIgMzQuMzYyIDE4NC4yNjYgMzQuMzYyQzE4NS44MDEgMzQuMzYyIDE4Ny4xMDkgMzQuMTA4IDE4OC4yMzggMzMuNjA5QzE4OS4zNzYgMzMuMTA0IDE5MC4yNzIgMzIuMzk0IDE5MC45MDEgMzEuNDk0QzE5MS41MzQgMzAuNTkyIDE5MS44NTMgMjkuNTU0IDE5MS44NTMgMjguNDAzQzE5MS44MjggMjcuMTEgMTkxLjQ2NiAyNi4wNTMgMTkwLjc3NyAyNS4yNjJIMTkwLjc4N1oiIGZpbGw9IiM5QjlCOUIiLz4KPHBhdGggZD0iTTI0MS45ODIgMjUuNjU4MlYxNy43MTE3SDIyOC40NDFMMjIwLjQ5NCAyNS42NTgySDI0MS45ODJaIiBmaWxsPSIjOUI5QjlCIi8+CjxwYXRoIGQ9Ik0yNTcuMjM5IDUuOTUwODFIMjQwLjI2NUwyMzIuMjU1IDEzLjg5NzNIMjU3LjIzOVY1Ljk1MDgxWiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMjEyLjYxMSAzMy42MDQ4TDIxNi42OCAyOS41MzYxSDIzMC40MTJWMzcuNDgyN0gyMTIuNjExVjMzLjYwNDhaIiBmaWxsPSIjOUI5QjlCIi8+CjxwYXRoIGQ9Ik0yMTUuNTk5IDIxLjc4MDNIMjI0LjM3MkwyMzIuMzgyIDEzLjgzMzdIMjE1LjU5OVYyMS43ODAzWiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMjA2IDMzLjYwNDdIMjEyLjYxMUwyMjAuNDk0IDI1LjY1ODJIMjA2VjMzLjYwNDdaIiBmaWxsPSIjOUI5QjlCIi8+CjxwYXRoIGQ9Ik0yNDAuMjY1IDUuOTUwODFMMjM2LjE5NyAxMC4wMTk0SDIxMC4yNTlWMi4wNzI4OEgyNDAuMjY1VjUuOTUwODFaIiBmaWxsPSIjOUI5QjlCIi8+Cjwvc3ZnPgo=);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:var(--ag-charts-chrome-font-size-large)}.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:calc(var(--ag-charts-spacing) * 2)}.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-panel-subtle-text-color);margin-bottom:-1px;padding:var(--input-padding) calc(var(--input-padding) / 2)}.ag-charts-dialog__tab-button:hover{background:none}.ag-charts-dialog__tab-button--active{border-color:var(--ag-charts-accent-color);color:inherit}.ag-charts-dialog__drag-handle+.ag-charts-dialog__tab-button{margin-left:calc(var(--ag-charts-spacing) * -2)}.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-spacing) * 4);margin:0 calc(var(--ag-charts-spacing) * 4);padding:calc(var(--ag-charts-spacing) * 4) 0}.ag-charts-dialog__tab-panel--active{display:flex}.ag-charts-dialog__input-group-line{display:flex;gap:16px 18px;flex-wrap:wrap}.ag-charts-dialog__input-group{align-items:center;display:flex;font-size:var(--ag-charts-chrome-font-size)}.ag-charts-dialog__input-group-label{color:var(--ag-charts-panel-subtle-text-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-button-focus-background-color);border-color:var(--ag-charts-input-focus-border-color);color:var(--ag-charts-input-focus-text-color);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;cursor:default;--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:calc(var(--ag-charts-border-radius) * 1.5);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:calc(var(--ag-charts-border-radius) * 99);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::-moz-range-thumb,.ag-charts-color-picker__alpha-input::-moz-range-thumb{appearance:none;width:var(--thumb-size);height:var(--thumb-size);border-radius:calc(var(--ag-charts-border-radius) * 99);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__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:calc(var(--ag-charts-border-radius) * 99);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::-moz-range-thumb{background:hsl(var(--h),100%,50%)}.ag-charts-color-picker__hue-input::-webkit-slider-thumb{background:hsl(var(--h),100%,50%)}.ag-charts-color-picker__alpha-input::-moz-range-thumb{background:transparent}.ag-charts-color-picker__alpha-input::-webkit-slider-thumb{background:transparent}.ag-charts-color-picker__alpha-input--opaque::-moz-range-thumb{background:var(--color)}.ag-charts-color-picker__alpha-input--opaque::-webkit-slider-thumb{background:var(--color)}.ag-charts-color-picker__hue-input:focus-visible::-moz-range-thumb,.ag-charts-color-picker__alpha-input:focus-visible::-moz-range-thumb{outline:var(--ag-charts-focus-border);box-shadow:var(--box-shadow),var(--ag-charts-focus-border-shadow)}.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::-moz-range-track,.ag-charts-color-picker__alpha-input::-moz-range-track{position:absolute;content:"";display:block;top:calc(50% - var(--track-height) / 2);left:var(--inset);right:var(--inset);height:var(--track-height);border-radius:calc(var(--ag-charts-border-radius) * 99);box-shadow:inset 0 0 0 1px #0003}.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:calc(var(--ag-charts-border-radius) * 99);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:calc(var(--ag-charts-border-radius) * 99);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::-moz-range-track{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__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::-moz-range-track{background:linear-gradient(to right,transparent,var(--color)),var(--checker) top left / 4px 4px}.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:var(--ag-charts-border-radius);overflow:hidden}.ag-charts-color-picker__color-field:has(:focus-visible){border-color:var(--ag-charts-accent-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:calc(var(--ag-charts-border-radius) / 2);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{border-top-left-radius:0;border-top-right-radius:0;.ag-charts-menu__row:first-child{border-radius:0}}.ag-charts-annotations__text-size-menu{--item-padding: 4px 8px;min-width:34px;text-align:center}.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__stroke-width-button:before{background:var(--ag-charts-foreground-color);content:"";margin-right:var(--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__axis-button--hidden{display:none}.ag-charts-annotations__axis-button{background-color:var(--ag-charts-crosshair-label-background-color);border-radius:calc(var(--ag-charts-border-radius) / 2);border:none;box-sizing:border-box;color:var(--ag-charts-crosshair-label-text-color);cursor:pointer;font-family:var(--ag-charts-button-font-family);font-size:var(--ag-charts-button-font-size);font-weight:var(--ag-charts-button-font-weight);left:0;line-height:16px;overflow:hidden;padding:0;position:absolute;top:0;user-select:none;white-space:nowrap;z-index:var(--ag-charts-layer-annotations)}.ag-charts-annotations__axis-button:hover{opacity:.8;color:var(--ag-charts-background-color)}.ag-charts-dialog--annotation-settings{min-height:233px;width:289px}.ag-charts-dialog--annotation-settings .ag-charts-textarea{height:calc(10px * 2 + var(--textarea-line-height) * 1em * 3 + 2px);overflow-y:auto;resize:vertical}.ag-charts-context-menu{font-family:var(--ag-charts-chrome-font-family);font-size:var(--ag-charts-chrome-font-size);font-weight:var(--ag-charts-chrome-font-weight);z-index:var(--ag-charts-layer-ui-overlay)}.ag-charts-context-menu__cover{position:fixed;left:0;top:0}.ag-charts-context-menu__menu{background:var(--ag-charts-menu-background-color);border-radius:var(--ag-charts-border-radius);border:var(--ag-charts-menu-border);box-shadow:var(--ag-charts-popup-shadow);color:var(--ag-charts-menu-text-color);display:flex;flex-direction:column;padding:.5em 0;transition:transform .1s ease;white-space:nowrap}.ag-charts-context-menu__menu:focus{outline:none}.ag-charts-context-menu__item{align-items:center;background:none;border:none;box-sizing:border-box;color:inherit;cursor:pointer;display:flex;font:inherit;justify-content:space-between;text-align:left;width:100%;-webkit-appearance:none;-moz-appearance:none}.ag-charts-context-menu__icon>img{width:var(--ag-charts-icon-size);height:var(--ag-charts-icon-size)}.ag-charts-context-menu__icon,.ag-charts-context-menu__cell{display:flex;align-items:center;flex-shrink:0}.ag-charts-context-menu__cell{flex-grow:1}.ag-charts-context-menu__cellpadding{padding:.5em 1em}.ag-charts-context-menu__icon{padding-right:0}.ag-charts-context-menu__item[data-focus-override=true],.ag-charts-context-menu__item:focus,.ag-charts-context-menu__item:active{background:var(--ag-charts-focus-color)}.ag-charts-context-menu__item[data-focus-override=false]{background:inherit}.ag-charts-context-menu__item[data-focus-visible-override=true]:focus,.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[data-focus-visible-override=false]{outline:inherit;box-shadow:inherit;z-index:inherit}.ag-charts-context-menu__item[aria-disabled=true]{border:none;color:color-mix(in srgb,var(--ag-charts-input-text-color) 50%,transparent)}.ag-charts-context-menu__item[aria-disabled=true]:focus{background:inherit;cursor:inherit}.ag-charts-context-menu__divider{padding:5px 0}.ag-charts-context-menu__divider:after{content:"";display:block;border-top:1px solid var(--ag-charts-border-color)}.ag-charts-crosshair-label{position:absolute;left:0;top:0;user-select:none;pointer-events:none;font-family:var(--ag-charts-font-family);font-size:var(--ag-charts-font-size);font-weight:var(--ag-charts-font-weight);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:calc(var(--ag-charts-border-radius) / 2);line-height:calc(var(--ag-charts-font-size) + 8px);background-color:var(--ag-charts-crosshair-label-background-color);color:var(--ag-charts-crosshair-label-text-color)}.ag-charts-crosshair-label--hidden{visibility:hidden!important}.ag-charts-text-input{position:absolute}.ag-charts-text-input__textarea{--placeholder-text-color: var(--ag-charts-input-placeholder-text-color);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(--placeholder-text-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(--toolbar-button-padding) calc(var(--toolbar-button-padding) * 1.5)}.ag-charts-zoom-buttons{align-items:center;display:flex;height:44px;justify-content:center;overflow:hidden;padding-bottom:10px;pointer-events:none;width:100%;.ag-charts-toolbar{--toolbar-size: 24px;--toolbar-button-padding: 1px;display:flex;font-size:var(--ag-charts-chrome-font-size);height:var(--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-border-radius);border-top-left-radius:var(--ag-charts-border-radius)}.ag-charts-toolbar__button--last{border-bottom-right-radius:var(--ag-charts-border-radius);border-top-right-radius:var(--ag-charts-border-radius)}.ag-charts-toolbar__label{padding-left:var(--ag-charts-spacing);padding-right:var(--ag-charts-spacing)}.ag-charts-toolbar__icon+.ag-charts-toolbar__label{padding-left:0}.ag-charts-toolbar__button--gap{margin-left:var(--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(--toolbar-gap);.ag-charts-toolbar__button{border-radius:var(--ag-charts-border-radius);margin:0}}
|
|
26
|
-
`;R.ModuleRegistry.registerMany(Cwe,Xg);function xwe(){R.moduleRegistry.register(ene,nne,Fne,yle,Dle,fce,ode,Wde,pme,oye,wye,bue,zle,Wle,Qle,Fle,Jle,hce,ive,Ive,Bve,lbe,Lbe,jbe,Upe,uge,dfe,gue,ICe,pne,z0e,W0e,kSe,OSe,Rne,hxe,Ene,ipe,ghe,Jpe,qCe,Fxe,tge,Zxe,bge,gwe,Fpe,Vge),R.enterpriseModule.isEnterprise=!0,R.enterpriseModule.styles=Swe,R.enterpriseModule.licenseManager=e=>new Cg(e.container?.ownerDocument??(typeof document>"u"?void 0:document)),R.enterpriseModule.injectWatermark=ufe}xwe();var wwe={setLicenseKey(e){Cg.setLicenseKey(e)}};Lr.create.bind(Lr),Lr.__createSparkline.bind(Lr),Cg.setGridContext.bind(Cg),Cg.setLicenseKey.bind(Cg);function bE(e){const t=e.value?.value!=null?e.value.value:e.value;return t==null||t===""?"":t}function CE(e,t){const i=Number(e);return isFinite(i)?i.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:t}):String(e)}function v$(e){return typeof e!="number"?2:Math.min(Math.max(0,e),20)}function b$(e,t){const i=bE(e);return i===""?"":"$"+CE(i,v$(t))}function Dwe(e,t){return bE(e)===""?"":CE(e.value*100,v$(t))+"%"}function Mwe(e){const t=bE(e);return t===""?"":CE(t,0)}function kwe(e,t){return e.value}const rS=123e-6,Awe={key:0,class:"pv-flex pv-chart-loading"},Iwe=m.defineComponent({__name:"PvChart",props:{options:{},seriesFormatType:{default:"none"},isLoading:{type:Boolean,default:!1},enableFocusView:{type:Boolean,default:!1},minHeight:{default:450},translateNullValues:{type:Boolean,default:!0}},emits:["series-visibility-change"],setup(e,{expose:t,emit:i}){const o=e,s=i;wwe.setLicenseKey("Using_this_{AG_Charts}_Enterprise_key_{AG-087886}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Turquoise_Health}_is_granted_a_{Multiple_Applications}_Developer_License_for_{3}_Front-End_JavaScript_developers___All_Front-End_JavaScript_developers_need_to_be_licensed_in_addition_to_the_ones_working_with_{AG_Charts}_Enterprise___This_key_has_been_granted_a_Deployment_License_Add-on_for_{2}_Production_Environments___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{9_May_2026}____[v3]_[02]_MTc3ODI4MTIwMDAwMA==b240799c3daa50107bb7f3adff911d8f");const r={seriesVisibilityChange:f=>{s("series-visibility-change",f)}},a=m.ref(null),l=m.computed(()=>(g.value?.series||[]).some(y=>y.type==="map-shape")),c=m.computed(()=>{const f=g.value?.series||[];let y=!1;return f.forEach(v=>{v.type==="bar"&&v.direction==="horizontal"&&(y=!0)}),y}),d=f=>{const y=f.xName,v=f.yKey,b=f.datum[v];if(console.log("tooltip",b),b==null||b===rS)return{heading:y,data:[]};let C=String(b)||"";const D=g.value?.series?.find(k=>k.yKey===v);if(D&&D?.label?.formatter){const k=D?.label?.formatter;C=k({value:b})||C}return{heading:y,data:[{label:f.yName,value:C}]}},u=f=>{if(!f||!o.translateNullValues)return f;const y=new Set;return f.forEach(v=>{Object.keys(v).forEach(b=>y.add(b))}),f.map(v=>{const b={...v};return y.forEach(C=>{C in b?b[C]===null&&(b[C]=rS):b[C]=rS}),b})},h=f=>f&&f.map(y=>{const v={...y};return v.tooltip||(v.tooltip={}),v.tooltip.renderer||(v.tooltip.renderer=d),v}),p=m.computed(()=>{if(o.seriesFormatType==="currency")return b$;if(o.seriesFormatType==="percent")return 0}),g=m.computed(()=>{const f={...o.options};return f.theme||(f.theme=Lse),f.data=u(f.data),f.series=h(f.series),f.overlays||(f.overlays={noData:{text:"No data to display"},noVisibleSeries:{text:"No visible series"}}),f.axes||(f.axes=[{type:"category",position:c.value?"left":"bottom"},{type:"number",position:c.value?"bottom":"left",label:{formatter:p.value}}]),f.contextMenu||(f.contextMenu={enabled:!1}),f.listeners={...f.listeners||{},...r},f});return t({getChartImageDataURL:f=>a.value?.chart?.getImageDataURL({width:f?.width,height:f?.height})}),(f,y)=>(m.openBlock(),m.createElementBlock("div",null,[m.createVNode(m.unref(Ase),{ref_key:"chartRef",ref:a,style:m.normalizeStyle([{height:"100%"},l.value?"":`min-height: ${f.minHeight}px`]),options:g.value},null,8,["style","options"]),f.isLoading?(m.openBlock(),m.createElementBlock("div",Awe,[m.createVNode(hD,{size:"xl"})])):m.createCommentVNode("",!0)]))}}),Ln=(e,t)=>{const i=e.__vccOpts||e;for(const[o,s]of t)i[o]=s;return i},SE=Ln(Iwe,[["__scopeId","data-v-98f8e317"]]);var Ec=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,i){const o=t?this.allAsyncListeners:this.allSyncListeners;let s=o.get(e);return!s&&i&&(s=new Set,o.set(e,s)),s}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,i=!1){this.getListeners(e,i,!0).add(t)}removeEventListener(e,t,i=!1){const o=this.getListeners(e,i,!1);o&&(o.delete(t),o.size===0&&(i?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)}removeGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)}dispatchEvent(e){const t=e;this.dispatchToListeners(t,!0),this.dispatchToListeners(t,!1),this.firedEvents[t.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){const i=e.type;if(t&&"event"in e){const a=e.event;a instanceof Event&&(e.eventPath=a.composedPath())}const o=(a,l)=>a.forEach(c=>{if(!l.has(c))return;const d=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>c(e)):()=>c(e);t?this.dispatchAsync(d):d()}),s=this.getListeners(i,t,!1)??new Set,n=new Set(s);n.size>0&&o(n,s),new Set(t?this.globalAsyncListeners:this.globalSyncListeners).forEach(a=>{const l=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>a(i,e)):()=>a(i,e);t?this.dispatchAsync(l):l()})}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){const t=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach(t=>t())}};function Twe(e,t){return t}function xE(e){return e?.getLocaleTextFunc()??Twe}function ia(e,t,i){i==null||typeof i=="string"&&i==""?wE(e,t):oa(e,t,i)}function oa(e,t,i){e.setAttribute(C$(t),i.toString())}function wE(e,t){e.removeAttribute(C$(t))}function C$(e){return`aria-${e}`}function Es(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function Rwe(e){let t;return e==="asc"?t="ascending":e==="desc"?t="descending":e==="mixed"?t="other":t="none",t}function Lwe(e){return parseInt(e.getAttribute("aria-posinset"),10)}function Pwe(e){return e.getAttribute("aria-label")}function Qn(e,t){ia(e,"label",t)}function lf(e,t){ia(e,"labelledby",t)}function DE(e,t){ia(e,"describedby",t)}function S$(e,t){ia(e,"live",t)}function Ewe(e,t){ia(e,"atomic",t)}function Fwe(e,t){ia(e,"relevant",t)}function x$(e,t){ia(e,"level",t)}function w$(e,t){ia(e,"disabled",t)}function D$(e,t){ia(e,"hidden",t)}function Rl(e,t){oa(e,"expanded",t)}function Nwe(e){wE(e,"expanded")}function M$(e,t){oa(e,"setsize",t)}function k$(e,t){oa(e,"posinset",t)}function Owe(e,t){oa(e,"multiselectable",t)}function Bwe(e,t){oa(e,"rowcount",t)}function A$(e,t){oa(e,"rowindex",t)}function Gwe(e,t){oa(e,"colcount",t)}function I$(e,t){oa(e,"colindex",t)}function zwe(e,t){oa(e,"colspan",t)}function Vwe(e,t){oa(e,"sort",t)}function _we(e){wE(e,"sort")}function JI(e,t){ia(e,"selected",t)}function T$(e,t){oa(e,"checked",t===void 0?"mixed":t)}function Hwe(e,t){ia(e,"controls",t.id),lf(t,e.id)}function $we(e,t){ia(e,"haspopup",t===!1?null:t)}function R$(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var jk,Uk,Kk,Yk,eT,tT,Xk;function SM(){return jk===void 0&&(jk=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),jk}function ME(){return Uk===void 0&&(Uk=/(firefox)/i.test(navigator.userAgent)),Uk}function L$(){return Kk===void 0&&(Kk=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),Kk}function Ph(){return Yk===void 0&&(Yk=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),Yk}function t5(e){if(!e)return null;const t=e.tabIndex,i=e.getAttribute("tabIndex");return t===-1&&(i===null||i===""&&!ME())?null:t.toString()}function Wwe(){if(Xk!==void 0)return Xk;if(!document.body)return-1;let e=1e6;const t=ME()?6e6:1e9,i=document.createElement("div");for(document.body.appendChild(i);;){const o=e*2;if(i.style.height=o+"px",o>t||i.clientHeight!==o)break;e=o}return document.body.removeChild(i),Xk=e,e}function jwe(){return tT==null&&P$(),tT}function P$(){const e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);let i=t.offsetWidth-t.clientWidth;i===0&&t.clientWidth===0&&(i=null),t.parentNode&&t.parentNode.removeChild(t),i!=null&&(tT=i,eT=i===0)}function E$(){return eT==null&&P$(),eT}function i5(e,t,i){const o=e.parentElement;let s=o&&o.firstChild;for(;s;)t&&s.classList.toggle(t,s===e),s=s.nextSibling}var Uwe="[tabindex], input, select, button, textarea, [href]",F$="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function kE(e){const t=Element.prototype.matches||Element.prototype.msMatchesSelector,o=t.call(e,"input, select, button, textarea"),s=t.call(e,F$),n=Jn(e);return o&&!s&&n}function Ue(e,t,i={}){const{skipAriaHidden:o}=i;e.classList.toggle("ag-hidden",!t),o||D$(e,!t)}function Kwe(e,t,i={}){const{skipAriaHidden:o}=i;e.classList.toggle("ag-invisible",!t),o||D$(e,!t)}function vv(e,t){const i="disabled",o=t?n=>n.setAttribute(i,""):n=>n.removeAttribute(i);o(e);const s=e.querySelectorAll("input")??[];for(const n of s)o(n)}function Eh(e,t,i){let o=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof i=="number"){if(++o>i)break}else if(e===i)break}return!1}function hm(e){const{height:t,width:i,borderTopWidth:o,borderRightWidth:s,borderBottomWidth:n,borderLeftWidth:r,paddingTop:a,paddingRight:l,paddingBottom:c,paddingLeft:d,marginTop:u,marginRight:h,marginBottom:p,marginLeft:g,boxSizing:f}=window.getComputedStyle(e);return{height:parseFloat(t||"0"),width:parseFloat(i||"0"),borderTopWidth:parseFloat(o||"0"),borderRightWidth:parseFloat(s||"0"),borderBottomWidth:parseFloat(n||"0"),borderLeftWidth:parseFloat(r||"0"),paddingTop:parseFloat(a||"0"),paddingRight:parseFloat(l||"0"),paddingBottom:parseFloat(c||"0"),paddingLeft:parseFloat(d||"0"),marginTop:parseFloat(u||"0"),marginRight:parseFloat(h||"0"),marginBottom:parseFloat(p||"0"),marginLeft:parseFloat(g||"0"),boxSizing:f}}function xM(e){const t=hm(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom:t.height}function bv(e){const t=hm(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight:t.width}function N$(e){const{height:t,marginBottom:i,marginTop:o}=hm(e);return Math.floor(t+i+o)}function vx(e){const{width:t,marginLeft:i,marginRight:o}=hm(e);return Math.floor(t+i+o)}function O$(e){const t=e.getBoundingClientRect(),{borderTopWidth:i,borderLeftWidth:o,borderRightWidth:s,borderBottomWidth:n}=hm(e);return{top:t.top+(i||0),left:t.left+(o||0),right:t.right+(s||0),bottom:t.bottom+(n||0)}}function bx(e,t){let i=e.scrollLeft;return t&&(i=Math.abs(i)),i}function Cx(e,t,i){i&&(t*=-1),e.scrollLeft=t}function Qs(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function Pr(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function B$(e){return!!e.offsetParent}function Jn(e){const t=e;return t.checkVisibility?t.checkVisibility({checkVisibilityCSS:!0}):!(!B$(e)||window.getComputedStyle(e).visibility!=="visible")}function wM(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function G$(e,t,i){i&&i.nextSibling===t||(e.firstChild?i?i.nextSibling?e.insertBefore(t,i.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t):e.appendChild(t))}function z$(e,t){for(let i=0;i<t.length;i++){const o=t[i],s=e.children[i];s!==o&&e.insertBefore(o,s)}}function Ywe(e){return e.replace(/[A-Z]/g,t=>`-${t.toLocaleLowerCase()}`)}function Zb(e,t){if(t)for(const i of Object.keys(t)){const o=t[i];if(!i||!i.length||o==null)continue;const s=Ywe(i),n=o.toString(),r=n.replace(/\s*!important/g,""),a=r.length!=n.length?"important":void 0;e.style.setProperty(s,r,a)}}function Xwe(e){return e.clientWidth<e.scrollWidth}function Zwe(e){return e.clientHeight<e.scrollHeight}function Sx(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):wl(e,t)}function wl(e,t){t=AE(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function by(e,t){t=AE(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function AE(e){return typeof e=="number"?`${e}px`:e}function DM(e){return e instanceof Node||e instanceof HTMLElement}function Og(e,t,i){i==null||i===""?e.removeAttribute(t):e.setAttribute(t,i.toString())}function Fu(e,t,i){const s=Z$(e).ResizeObserver,n=s?new s(i):null;return n?.observe(t),()=>n?.disconnect()}function qwe(e){const t=df(e),i="getSelection"in t?t.getSelection():null,o=[];for(let s=0;s<(i?.rangeCount??0);s++){const n=i?.getRangeAt(s);n&&o.push(n)}return{selection:i,ranges:o}}function V$(e,t){if(!e.gos.get("enableCellTextSelection")||!ME()&&!SM())return t();const{selection:o,ranges:s}=qwe(e);t(),o?.removeAllRanges();for(const n of s)o?.addRange(n)}function Ea(e,t){const i=Z$(e);i.requestAnimationFrame?i.requestAnimationFrame(t):i.webkitRequestAnimationFrame?i.webkitRequestAnimationFrame(t):i.setTimeout(t,0)}var _$="data-ref",Zk;function o5(){return Zk??(Zk=document.createTextNode(" ")),Zk.cloneNode()}function Ut(e){const{attrs:t,children:i,cls:o,ref:s,role:n,tag:r}=e,a=document.createElement(r);if(o&&(a.className=o),s&&a.setAttribute(_$,s),n&&a.setAttribute("role",n),t)for(const l of Object.keys(t))a.setAttribute(l,t[l]);if(i)if(typeof i=="string")a.textContent=i;else{let l=!0;for(const c of i)c&&(typeof c=="string"?(a.appendChild(document.createTextNode(c)),l=!1):(l&&(a.appendChild(o5()),l=!1),a.append(Ut(c)),a.appendChild(o5())))}return a}function Js(e){return e==null||e===""?null:e}function Te(e){return e!=null&&e!==""}function qt(e){return!Te(e)}function Sc(e){return e!=null&&typeof e.toString=="function"?e.toString():null}function Cv(e,t){const i=e?JSON.stringify(e):null,o=t?JSON.stringify(t):null;return i===o}function aS(e,t,i=!1){const o=e==null,s=t==null;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),o&&s)return 0;if(o)return-1;if(s)return 1;function n(r,a){return r>a?1:r<a?-1:0}if(typeof e!="string"||!i)return n(e,t);try{return e.localeCompare(t)}catch{return n(e,t)}}var H$="https://www.ag-grid.com",s5={};function IE(e,t){s5[t]||(e(),s5[t]=!0)}function Sv(e,t,...i){e.get("debug")&&console.log("AG Grid: "+t,...i)}function Cy(e,...t){IE(()=>console.warn("AG Grid: "+e,...t),e+t?.join(""))}function Bg(e,...t){IE(()=>console.error("AG Grid: "+e,...t),e+t?.join(""))}var Qwe={pending:!1,funcs:[]},Jwe={pending:!1,funcs:[]};function iT(e,t="setTimeout",i){const o=t==="raf"?Jwe:Qwe;if(o.funcs.push(e),o.pending)return;o.pending=!0;const s=()=>{const n=o.funcs.slice();o.funcs.length=0,o.pending=!1,n.forEach(r=>r())};t==="raf"?Ea(i,s):window.setTimeout(s,0)}function qs(e,t,i){let o;return function(...s){const n=this;window.clearTimeout(o),o=window.setTimeout(function(){e.isAlive()&&t.apply(n,s)},i)}}function n5(e,t){let i=0;return function(...o){const s=this,n=Date.now();n-i<t||(i=n,e.apply(s,o))}}function $$(e,t,i=100,o){const s=Date.now();let n=null,r=!1;const a=()=>{const l=Date.now()-s>i;(e()||l)&&(t(),r=!0,n!=null&&(window.clearInterval(n),n=null))};a(),r||(n=window.setInterval(a,10))}var et="33.2.4",r5=2e3,a5=100,W$="_version_",j$=null,Fh=`${H$}/javascript-data-grid`;function eDe(e){j$=e}function tDe(e){Fh=e}function U$(e,t,i){return j$?.getConsoleMessage(e,t)??[nDe(e,t,i)]}function TE(e,t,i,o){e(`error #${t}`,...U$(t,i,o))}function iDe(e){if(!e)return String(e);const t={};for(const i of Object.keys(e))typeof e[i]!="object"&&typeof e[i]!="function"&&(t[i]=e[i]);return JSON.stringify(t)}function oDe(e){let t=e;return e instanceof Error?t=e.toString():typeof e=="object"&&(t=iDe(e)),t}function xx(e){return e===void 0?"undefined":e===null?"null":e}function oT(e,t){return`${e}?${t.toString()}`}function sDe(e,t,i){const o=Array.from(t.entries()).sort((n,r)=>r[1].length-n[1].length);let s=oT(e,t);for(const[n,r]of o){if(n===W$)continue;const a=s.length-i;if(a<=0)break;const l="...",c=a+l.length,d=r.length-c>a5?r.slice(0,r.length-c)+l:r.slice(0,a5)+l;t.set(n,d),s=oT(e,t)}return s}function K$(e,t){const i=new URLSearchParams;if(i.append(W$,et),t)for(const n of Object.keys(t))i.append(n,oDe(t[n]));const o=`${Fh}/errors/${e}`,s=oT(o,i);return s.length<=r5?s:sDe(o,i,r5)}var nDe=(e,t,i)=>{const o=K$(e,t);return`${i?i+`
|
|
26
|
+
`;R.ModuleRegistry.registerMany(Cwe,Xg);function xwe(){R.moduleRegistry.register(ene,nne,Fne,yle,Dle,fce,ode,Wde,pme,oye,wye,bue,zle,Wle,Qle,Fle,Jle,hce,ive,Ive,Bve,lbe,Lbe,jbe,Upe,uge,dfe,gue,ICe,pne,z0e,W0e,kSe,OSe,Rne,hxe,Ene,ipe,ghe,Jpe,qCe,Fxe,tge,Zxe,bge,gwe,Fpe,Vge),R.enterpriseModule.isEnterprise=!0,R.enterpriseModule.styles=Swe,R.enterpriseModule.licenseManager=e=>new Cg(e.container?.ownerDocument??(typeof document>"u"?void 0:document)),R.enterpriseModule.injectWatermark=ufe}xwe();var wwe={setLicenseKey(e){Cg.setLicenseKey(e)}};Lr.create.bind(Lr),Lr.__createSparkline.bind(Lr),Cg.setGridContext.bind(Cg),Cg.setLicenseKey.bind(Cg);function bE(e){const t=e.value?.value!=null?e.value.value:e.value;return t==null||t===""?"":t}function CE(e,t){const i=Number(e);return isFinite(i)?i.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:t}):String(e)}function v$(e){return typeof e!="number"?2:Math.min(Math.max(0,e),20)}function b$(e,t){const i=bE(e);return i===""?"":"$"+CE(i,v$(t))}function Dwe(e,t){return bE(e)===""?"":CE(e.value*100,v$(t))+"%"}function Mwe(e){const t=bE(e);return t===""?"":CE(t,0)}function kwe(e,t){return e.value}const rS=123e-6,Awe={key:0,class:"pv-flex pv-chart-loading"},Iwe=m.defineComponent({__name:"PvChart",props:{options:{},seriesFormatType:{default:"none"},isLoading:{type:Boolean,default:!1},enableFocusView:{type:Boolean,default:!1},minHeight:{default:450},translateNullValues:{type:Boolean,default:!0}},emits:["series-visibility-change"],setup(e,{expose:t,emit:i}){const o=e,s=i;wwe.setLicenseKey("Using_this_{AG_Charts}_Enterprise_key_{AG-087886}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Turquoise_Health}_is_granted_a_{Multiple_Applications}_Developer_License_for_{3}_Front-End_JavaScript_developers___All_Front-End_JavaScript_developers_need_to_be_licensed_in_addition_to_the_ones_working_with_{AG_Charts}_Enterprise___This_key_has_been_granted_a_Deployment_License_Add-on_for_{2}_Production_Environments___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{9_May_2026}____[v3]_[02]_MTc3ODI4MTIwMDAwMA==b240799c3daa50107bb7f3adff911d8f");const r={seriesVisibilityChange:f=>{s("series-visibility-change",f)}},a=m.ref(null),l=m.computed(()=>(g.value?.series||[]).some(y=>y.type==="map-shape")),c=m.computed(()=>{const f=g.value?.series||[];let y=!1;return f.forEach(v=>{v.type==="bar"&&v.direction==="horizontal"&&(y=!0)}),y}),d=f=>{const y=f.xName,v=f.yKey,b=f.datum[v];if(b==null||b===rS)return{heading:y,data:[]};let C=String(b)||"";const D=g.value?.series?.find(k=>k.yKey===v);if(D&&D?.label?.formatter){const k=D.label.formatter;C=k({value:b,datum:f.datum})||C}return{heading:y,data:[{label:f.yName,value:C}]}},u=f=>{if(!f||!o.translateNullValues)return f;const y=new Set;return f.forEach(v=>{Object.keys(v).forEach(b=>y.add(b))}),f.map(v=>{const b={...v};return y.forEach(C=>{C in b?b[C]===null&&(b[C]=rS):b[C]=rS}),b})},h=f=>f&&f.map(y=>{const v={...y};return v.tooltip||(v.tooltip={}),v.tooltip.renderer||(v.tooltip.renderer=d),v}),p=m.computed(()=>{if(o.seriesFormatType==="currency")return b$;if(o.seriesFormatType==="percent")return 0}),g=m.computed(()=>{const f={...o.options};return f.theme||(f.theme=Lse),f.data=u(f.data),f.series=h(f.series),f.overlays||(f.overlays={noData:{text:"No data to display"},noVisibleSeries:{text:"No visible series"}}),f.axes||(f.axes=[{type:"category",position:c.value?"left":"bottom"},{type:"number",position:c.value?"bottom":"left",label:{formatter:p.value}}]),f.contextMenu||(f.contextMenu={enabled:!1}),f.listeners={...f.listeners||{},...r},f});return t({getChartImageDataURL:f=>a.value?.chart?.getImageDataURL({width:f?.width,height:f?.height})}),(f,y)=>(m.openBlock(),m.createElementBlock("div",null,[m.createVNode(m.unref(Ase),{ref_key:"chartRef",ref:a,style:m.normalizeStyle([{height:"100%"},l.value?"":`min-height: ${f.minHeight}px`]),options:g.value},null,8,["style","options"]),f.isLoading?(m.openBlock(),m.createElementBlock("div",Awe,[m.createVNode(hD,{size:"xl"})])):m.createCommentVNode("",!0)]))}}),Ln=(e,t)=>{const i=e.__vccOpts||e;for(const[o,s]of t)i[o]=s;return i},SE=Ln(Iwe,[["__scopeId","data-v-0b683b8e"]]);var Ec=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,i){const o=t?this.allAsyncListeners:this.allSyncListeners;let s=o.get(e);return!s&&i&&(s=new Set,o.set(e,s)),s}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,i=!1){this.getListeners(e,i,!0).add(t)}removeEventListener(e,t,i=!1){const o=this.getListeners(e,i,!1);o&&(o.delete(t),o.size===0&&(i?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)}removeGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)}dispatchEvent(e){const t=e;this.dispatchToListeners(t,!0),this.dispatchToListeners(t,!1),this.firedEvents[t.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){const i=e.type;if(t&&"event"in e){const a=e.event;a instanceof Event&&(e.eventPath=a.composedPath())}const o=(a,l)=>a.forEach(c=>{if(!l.has(c))return;const d=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>c(e)):()=>c(e);t?this.dispatchAsync(d):d()}),s=this.getListeners(i,t,!1)??new Set,n=new Set(s);n.size>0&&o(n,s),new Set(t?this.globalAsyncListeners:this.globalSyncListeners).forEach(a=>{const l=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>a(i,e)):()=>a(i,e);t?this.dispatchAsync(l):l()})}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){const t=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach(t=>t())}};function Twe(e,t){return t}function xE(e){return e?.getLocaleTextFunc()??Twe}function ia(e,t,i){i==null||typeof i=="string"&&i==""?wE(e,t):oa(e,t,i)}function oa(e,t,i){e.setAttribute(C$(t),i.toString())}function wE(e,t){e.removeAttribute(C$(t))}function C$(e){return`aria-${e}`}function Es(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function Rwe(e){let t;return e==="asc"?t="ascending":e==="desc"?t="descending":e==="mixed"?t="other":t="none",t}function Lwe(e){return parseInt(e.getAttribute("aria-posinset"),10)}function Pwe(e){return e.getAttribute("aria-label")}function Qn(e,t){ia(e,"label",t)}function lf(e,t){ia(e,"labelledby",t)}function DE(e,t){ia(e,"describedby",t)}function S$(e,t){ia(e,"live",t)}function Ewe(e,t){ia(e,"atomic",t)}function Fwe(e,t){ia(e,"relevant",t)}function x$(e,t){ia(e,"level",t)}function w$(e,t){ia(e,"disabled",t)}function D$(e,t){ia(e,"hidden",t)}function Rl(e,t){oa(e,"expanded",t)}function Nwe(e){wE(e,"expanded")}function M$(e,t){oa(e,"setsize",t)}function k$(e,t){oa(e,"posinset",t)}function Owe(e,t){oa(e,"multiselectable",t)}function Bwe(e,t){oa(e,"rowcount",t)}function A$(e,t){oa(e,"rowindex",t)}function Gwe(e,t){oa(e,"colcount",t)}function I$(e,t){oa(e,"colindex",t)}function zwe(e,t){oa(e,"colspan",t)}function Vwe(e,t){oa(e,"sort",t)}function _we(e){wE(e,"sort")}function JI(e,t){ia(e,"selected",t)}function T$(e,t){oa(e,"checked",t===void 0?"mixed":t)}function Hwe(e,t){ia(e,"controls",t.id),lf(t,e.id)}function $we(e,t){ia(e,"haspopup",t===!1?null:t)}function R$(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var jk,Uk,Kk,Yk,eT,tT,Xk;function SM(){return jk===void 0&&(jk=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),jk}function ME(){return Uk===void 0&&(Uk=/(firefox)/i.test(navigator.userAgent)),Uk}function L$(){return Kk===void 0&&(Kk=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),Kk}function Ph(){return Yk===void 0&&(Yk=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),Yk}function t5(e){if(!e)return null;const t=e.tabIndex,i=e.getAttribute("tabIndex");return t===-1&&(i===null||i===""&&!ME())?null:t.toString()}function Wwe(){if(Xk!==void 0)return Xk;if(!document.body)return-1;let e=1e6;const t=ME()?6e6:1e9,i=document.createElement("div");for(document.body.appendChild(i);;){const o=e*2;if(i.style.height=o+"px",o>t||i.clientHeight!==o)break;e=o}return document.body.removeChild(i),Xk=e,e}function jwe(){return tT==null&&P$(),tT}function P$(){const e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);let i=t.offsetWidth-t.clientWidth;i===0&&t.clientWidth===0&&(i=null),t.parentNode&&t.parentNode.removeChild(t),i!=null&&(tT=i,eT=i===0)}function E$(){return eT==null&&P$(),eT}function i5(e,t,i){const o=e.parentElement;let s=o&&o.firstChild;for(;s;)t&&s.classList.toggle(t,s===e),s=s.nextSibling}var Uwe="[tabindex], input, select, button, textarea, [href]",F$="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function kE(e){const t=Element.prototype.matches||Element.prototype.msMatchesSelector,o=t.call(e,"input, select, button, textarea"),s=t.call(e,F$),n=Jn(e);return o&&!s&&n}function Ue(e,t,i={}){const{skipAriaHidden:o}=i;e.classList.toggle("ag-hidden",!t),o||D$(e,!t)}function Kwe(e,t,i={}){const{skipAriaHidden:o}=i;e.classList.toggle("ag-invisible",!t),o||D$(e,!t)}function vv(e,t){const i="disabled",o=t?n=>n.setAttribute(i,""):n=>n.removeAttribute(i);o(e);const s=e.querySelectorAll("input")??[];for(const n of s)o(n)}function Eh(e,t,i){let o=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof i=="number"){if(++o>i)break}else if(e===i)break}return!1}function hm(e){const{height:t,width:i,borderTopWidth:o,borderRightWidth:s,borderBottomWidth:n,borderLeftWidth:r,paddingTop:a,paddingRight:l,paddingBottom:c,paddingLeft:d,marginTop:u,marginRight:h,marginBottom:p,marginLeft:g,boxSizing:f}=window.getComputedStyle(e);return{height:parseFloat(t||"0"),width:parseFloat(i||"0"),borderTopWidth:parseFloat(o||"0"),borderRightWidth:parseFloat(s||"0"),borderBottomWidth:parseFloat(n||"0"),borderLeftWidth:parseFloat(r||"0"),paddingTop:parseFloat(a||"0"),paddingRight:parseFloat(l||"0"),paddingBottom:parseFloat(c||"0"),paddingLeft:parseFloat(d||"0"),marginTop:parseFloat(u||"0"),marginRight:parseFloat(h||"0"),marginBottom:parseFloat(p||"0"),marginLeft:parseFloat(g||"0"),boxSizing:f}}function xM(e){const t=hm(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom:t.height}function bv(e){const t=hm(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight:t.width}function N$(e){const{height:t,marginBottom:i,marginTop:o}=hm(e);return Math.floor(t+i+o)}function vx(e){const{width:t,marginLeft:i,marginRight:o}=hm(e);return Math.floor(t+i+o)}function O$(e){const t=e.getBoundingClientRect(),{borderTopWidth:i,borderLeftWidth:o,borderRightWidth:s,borderBottomWidth:n}=hm(e);return{top:t.top+(i||0),left:t.left+(o||0),right:t.right+(s||0),bottom:t.bottom+(n||0)}}function bx(e,t){let i=e.scrollLeft;return t&&(i=Math.abs(i)),i}function Cx(e,t,i){i&&(t*=-1),e.scrollLeft=t}function Qs(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function Pr(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function B$(e){return!!e.offsetParent}function Jn(e){const t=e;return t.checkVisibility?t.checkVisibility({checkVisibilityCSS:!0}):!(!B$(e)||window.getComputedStyle(e).visibility!=="visible")}function wM(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function G$(e,t,i){i&&i.nextSibling===t||(e.firstChild?i?i.nextSibling?e.insertBefore(t,i.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t):e.appendChild(t))}function z$(e,t){for(let i=0;i<t.length;i++){const o=t[i],s=e.children[i];s!==o&&e.insertBefore(o,s)}}function Ywe(e){return e.replace(/[A-Z]/g,t=>`-${t.toLocaleLowerCase()}`)}function Zb(e,t){if(t)for(const i of Object.keys(t)){const o=t[i];if(!i||!i.length||o==null)continue;const s=Ywe(i),n=o.toString(),r=n.replace(/\s*!important/g,""),a=r.length!=n.length?"important":void 0;e.style.setProperty(s,r,a)}}function Xwe(e){return e.clientWidth<e.scrollWidth}function Zwe(e){return e.clientHeight<e.scrollHeight}function Sx(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):wl(e,t)}function wl(e,t){t=AE(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function by(e,t){t=AE(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function AE(e){return typeof e=="number"?`${e}px`:e}function DM(e){return e instanceof Node||e instanceof HTMLElement}function Og(e,t,i){i==null||i===""?e.removeAttribute(t):e.setAttribute(t,i.toString())}function Fu(e,t,i){const s=Z$(e).ResizeObserver,n=s?new s(i):null;return n?.observe(t),()=>n?.disconnect()}function qwe(e){const t=df(e),i="getSelection"in t?t.getSelection():null,o=[];for(let s=0;s<(i?.rangeCount??0);s++){const n=i?.getRangeAt(s);n&&o.push(n)}return{selection:i,ranges:o}}function V$(e,t){if(!e.gos.get("enableCellTextSelection")||!ME()&&!SM())return t();const{selection:o,ranges:s}=qwe(e);t(),o?.removeAllRanges();for(const n of s)o?.addRange(n)}function Ea(e,t){const i=Z$(e);i.requestAnimationFrame?i.requestAnimationFrame(t):i.webkitRequestAnimationFrame?i.webkitRequestAnimationFrame(t):i.setTimeout(t,0)}var _$="data-ref",Zk;function o5(){return Zk??(Zk=document.createTextNode(" ")),Zk.cloneNode()}function Ut(e){const{attrs:t,children:i,cls:o,ref:s,role:n,tag:r}=e,a=document.createElement(r);if(o&&(a.className=o),s&&a.setAttribute(_$,s),n&&a.setAttribute("role",n),t)for(const l of Object.keys(t))a.setAttribute(l,t[l]);if(i)if(typeof i=="string")a.textContent=i;else{let l=!0;for(const c of i)c&&(typeof c=="string"?(a.appendChild(document.createTextNode(c)),l=!1):(l&&(a.appendChild(o5()),l=!1),a.append(Ut(c)),a.appendChild(o5())))}return a}function Js(e){return e==null||e===""?null:e}function Te(e){return e!=null&&e!==""}function qt(e){return!Te(e)}function Sc(e){return e!=null&&typeof e.toString=="function"?e.toString():null}function Cv(e,t){const i=e?JSON.stringify(e):null,o=t?JSON.stringify(t):null;return i===o}function aS(e,t,i=!1){const o=e==null,s=t==null;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),o&&s)return 0;if(o)return-1;if(s)return 1;function n(r,a){return r>a?1:r<a?-1:0}if(typeof e!="string"||!i)return n(e,t);try{return e.localeCompare(t)}catch{return n(e,t)}}var H$="https://www.ag-grid.com",s5={};function IE(e,t){s5[t]||(e(),s5[t]=!0)}function Sv(e,t,...i){e.get("debug")&&console.log("AG Grid: "+t,...i)}function Cy(e,...t){IE(()=>console.warn("AG Grid: "+e,...t),e+t?.join(""))}function Bg(e,...t){IE(()=>console.error("AG Grid: "+e,...t),e+t?.join(""))}var Qwe={pending:!1,funcs:[]},Jwe={pending:!1,funcs:[]};function iT(e,t="setTimeout",i){const o=t==="raf"?Jwe:Qwe;if(o.funcs.push(e),o.pending)return;o.pending=!0;const s=()=>{const n=o.funcs.slice();o.funcs.length=0,o.pending=!1,n.forEach(r=>r())};t==="raf"?Ea(i,s):window.setTimeout(s,0)}function qs(e,t,i){let o;return function(...s){const n=this;window.clearTimeout(o),o=window.setTimeout(function(){e.isAlive()&&t.apply(n,s)},i)}}function n5(e,t){let i=0;return function(...o){const s=this,n=Date.now();n-i<t||(i=n,e.apply(s,o))}}function $$(e,t,i=100,o){const s=Date.now();let n=null,r=!1;const a=()=>{const l=Date.now()-s>i;(e()||l)&&(t(),r=!0,n!=null&&(window.clearInterval(n),n=null))};a(),r||(n=window.setInterval(a,10))}var et="33.2.4",r5=2e3,a5=100,W$="_version_",j$=null,Fh=`${H$}/javascript-data-grid`;function eDe(e){j$=e}function tDe(e){Fh=e}function U$(e,t,i){return j$?.getConsoleMessage(e,t)??[nDe(e,t,i)]}function TE(e,t,i,o){e(`error #${t}`,...U$(t,i,o))}function iDe(e){if(!e)return String(e);const t={};for(const i of Object.keys(e))typeof e[i]!="object"&&typeof e[i]!="function"&&(t[i]=e[i]);return JSON.stringify(t)}function oDe(e){let t=e;return e instanceof Error?t=e.toString():typeof e=="object"&&(t=iDe(e)),t}function xx(e){return e===void 0?"undefined":e===null?"null":e}function oT(e,t){return`${e}?${t.toString()}`}function sDe(e,t,i){const o=Array.from(t.entries()).sort((n,r)=>r[1].length-n[1].length);let s=oT(e,t);for(const[n,r]of o){if(n===W$)continue;const a=s.length-i;if(a<=0)break;const l="...",c=a+l.length,d=r.length-c>a5?r.slice(0,r.length-c)+l:r.slice(0,a5)+l;t.set(n,d),s=oT(e,t)}return s}function K$(e,t){const i=new URLSearchParams;if(i.append(W$,et),t)for(const n of Object.keys(t))i.append(n,oDe(t[n]));const o=`${Fh}/errors/${e}`,s=oT(o,i);return s.length<=r5?s:sDe(o,i,r5)}var nDe=(e,t,i)=>{const o=K$(e,t);return`${i?i+`
|
|
27
27
|
`:""}Visit ${o}${i?"":`
|
|
28
28
|
Alternatively register the ValidationModule to see the full message in the console.`}`};function me(...e){TE(Cy,e[0],e[1])}function nt(...e){TE(Bg,e[0],e[1])}function sT(e,t,i){TE(Bg,e,t,i)}function rDe(e,t){const i=t[0];return`error #${i} `+U$(i,t[1],e).join(" ")}function Qd(...e){return rDe(void 0,e)}function Y$(e,t){return e.get("rowModelType")===t}function Ua(e,t){return Y$(e,"clientSide")}function er(e,t){return Y$(e,"serverSide")}function Fs(e,t){return e.get("domLayout")===t}function pl(e){return wx(e)!==void 0}function RE(e){return typeof e.get("getRowHeight")=="function"}function aDe(e,t){return t?!e.get("enableStrictPivotColumnOrder"):e.get("maintainColumnOrder")}function Tr(e,t,i=!1,o){const{gos:s,environment:n}=e;if(o==null&&(o=n.getDefaultRowHeight()),RE(s)){if(i)return{height:o,estimated:!0};const l={node:t,data:t.data},c=s.getCallback("getRowHeight")(l);if(nT(c))return c===0&&me(23),{height:Math.max(1,c),estimated:!1}}if(t.detail&&s.get("masterDetail"))return lDe(s);const r=s.get("rowHeight");return{height:r&&nT(r)?r:o,estimated:!1}}function lDe(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");return nT(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}function au(e){const{environment:t,gos:i}=e,o=i.get("rowHeight");if(!o||qt(o))return t.getDefaultRowHeight();const s=t.refreshRowHeightVariable();return s!==-1?s:(me(24),t.getDefaultRowHeight())}function nT(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)}function X$(e,t,i){const o=t[e.getDomDataKey()];return o?o[i]:void 0}function cf(e,t,i,o){const s=e.getDomDataKey();let n=t[s];qt(n)&&(n={},t[s]=n),n[i]=o}function Ti(e){const{gos:t,eGridDiv:i}=e;let o=null;const s=t.get("getDocument");return s&&Te(s)?o=s():i&&(o=i.ownerDocument),o&&Te(o)?o:document}function Z$(e){return Ti(e).defaultView||window}function df(e){return e.eGridDiv.getRootNode()}function Jt(e){return df(e).activeElement}function LE(e){let t=null,i=null;try{t=Ti(e).fullscreenElement}catch{}finally{t||(t=df(e));const o=t.querySelector("body");o?i=o:t instanceof ShadowRoot?i=t:t instanceof Document?i=t?.documentElement:i=t}return i}function cDe(e){return LE(e)?.clientWidth??(window.innerHeight||-1)}function dDe(e){return LE(e)?.clientHeight??(window.innerHeight||-1)}function uDe(e,t,i){const s=e.getBoundingClientRect().height,n=cDe(i)-2,r=dDe(i)-2;if(!e.offsetParent)return;const l=O$(e.offsetParent),{clientY:c,clientX:d}=t;let u=c-l.top-s/2,h=d-l.left-10;const p=Ti(i),g=p.defaultView||window,f=g.pageYOffset||p.documentElement.scrollTop,y=g.pageXOffset||p.documentElement.scrollLeft;n>0&&h+e.clientWidth>n+y&&(h=n+y-e.clientWidth),h<0&&(h=0),r>0&&u+e.clientHeight>r+f&&(u=r+f-e.clientHeight),u<0&&(u=0),e.style.left=`${h}px`,e.style.top=`${u}px`}function xv(e){const t=Ti(e),i=Jt(e);return i===null||i===t.body}function Gg(e){return e.get("ensureDomOrder")?!1:e.get("animateRows")}function MM(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||Fs(e,"print"))}function wa(e){return!e.get("autoGroupColumnDef")?.comparator&&!e.get("treeData")}function wv(e){const t=e.get("groupAggFiltering");if(typeof t=="function")return e.getCallback("groupAggFiltering");if(t===!0)return()=>!0}function PE(e){return e.get("grandTotalRow")}function uf(e){const t=e.get("groupTotalRow");return typeof t=="function"?e.getCallback("groupTotalRow"):()=>t??void 0}function EE(e){return e.get("groupHideOpenParents")?!0:e.get("groupDisplayType")==="multipleColumns"}function kM(e,t){return t?!1:e.get("groupDisplayType")==="groupRows"}function Dv(e){const t=e.getCallback("getRowId");return t===void 0?t:i=>{let o=t(i);return typeof o!="string"&&(me(25,{id:o}),o=String(o)),o}}function hDe(e,t){const i=e.get("groupHideParentOfSingleChild");return!!(i===!0||i==="leafGroupsOnly"&&t.leafGroup||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")&&t.leafGroup)}function pDe(e){const t=e.get("maxConcurrentDatasourceRequests");return t>0?t:void 0}function gDe(e,t){const i=e.get("suppressGroupChangesColumnVisibility");if(i===!0||t&&i==="suppressHideOnGroup"||!t&&i==="suppressShowOnUngroup")return!1;const o=e.get("suppressRowGroupHidesColumns");if(t&&o===!0)return!1;const s=e.get("suppressMakeColumnVisibleAfterUnGroup");return!(!t&&s===!0)}function Nh(e){return e?.checkboxes??!0}function lS(e){return e?.mode==="multiRow"&&(e.headerCheckbox??!0)}function Mv(e){if(typeof e=="object")return e.checkboxLocation??"selectionColumn"}function qk(e){return e?.hideDisabledCheckboxes??!1}function q$(e){return typeof e.get("rowSelection")!="string"}function Qh(e){const t=e.get("cellSelection");return t!==void 0?!!t:e.get("enableRangeSelection")}function Q$(e){const t=e.get("rowSelection")??"single";if(typeof t=="string"){const i=e.get("suppressRowClickSelection"),o=e.get("suppressRowDeselection");return i&&o?!1:i?"enableDeselection":o?"enableSelection":!0}return t.mode==="singleRow"||t.mode==="multiRow"?t.enableClickSelection??!1:!1}function fDe(e){const t=Q$(e);return t===!0||t==="enableSelection"}function mDe(e){const t=Q$(e);return t===!0||t==="enableDeselection"}function rT(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("isRowSelectable"):t?.isRowSelectable}function wx(e){const t="beanName"in e&&e.beanName==="gos"?e.get("rowSelection"):e.rowSelection;if(typeof t=="string")switch(t){case"multiple":return"multiRow";case"single":return"singleRow";default:return}switch(t?.mode){case"multiRow":case"singleRow":return t.mode;default:return}}function Jh(e){return wx(e)==="multiRow"}function yDe(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("rowMultiSelectWithClick"):t?.enableSelectionWithoutKeys??!1}function J$(e){const t=e.get("rowSelection");if(typeof t=="string"){const i=e.get("groupSelectsChildren"),o=e.get("groupSelectsFiltered");return i&&o?"filteredDescendants":i?"descendants":"self"}return t?.mode==="multiRow"?t.groupSelects:void 0}function eW(e,t=!0){const i=e.get("rowSelection");return typeof i!="object"?t?"all":void 0:i.mode==="multiRow"?i.selectAll:"all"}function kv(e){const t=J$(e);return t==="descendants"||t==="filteredDescendants"}function Qk(e){return e.isModuleRegistered("SetFilter")&&!e.get("suppressSetFilterByDefault")}function Ko(e){return e.get("columnMenu")==="legacy"}function tW(e){return!Ko(e)}function FE(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)}function vDe(e,t,i){typeof e!="object"&&(e={});const o={...e};return i.forEach(s=>{const n=t[s];typeof n<"u"&&(o[s]=n)}),o}function bDe(e,t){if(!e)return;const i={};let o=!1;if(Object.keys(e).forEach(r=>{i[r]=e[r],o=!0}),!o)return;const s={type:"gridOptionsChanged",options:i};t.dispatchEvent(s);const n={type:"componentStateChanged",...i};t.dispatchEvent(n)}function Ke(e,t){return e.addGridCommonParams(t)}function iW(e){return e.get("treeData")?e.get("treeDataParentIdField")?"treeSelfRef":e.get("treeDataChildrenField")?"treeNested":"treePath":"group"}var oW="__ag_Grid_Stop_Propagation",CDe=["touchstart","touchend","touchmove","touchcancel","scroll"],SDe=["wheel"],Jk={};function Fc(e){e[oW]=!0}function Ta(e){return e[oW]===!0}var sW=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return i=>{if(typeof Jk[i]=="boolean")return Jk[i];const o=document.createElement(e[i]||"div");return i="on"+i,Jk[i]=i in o}})();function nW(e,t,i){let o=t;for(;o;){const s=X$(e,o,i);if(s)return s;o=o.parentElement}return null}function aT(e,t){return!t||!e?!1:wDe(t).indexOf(e)>=0}function xDe(e){const t=[];let i=e.target;for(;i;)t.push(i),i=i.parentElement;return t}function wDe(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():xDe(t)}function DDe(e,t,i,o){const s=rW(i);let n;s!=null&&(n={passive:s}),e&&e.addEventListener&&e.addEventListener(t,i,o,n)}var rW=e=>{const t=CDe.includes(e),i=SDe.includes(e);if(t)return!0;if(i)return!1},ae=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(e){this.beans=e,this.stubContext=e.context,this.eventSvc=e.eventSvc,this.gos=e.gos}destroy(){const{destroyFunctions:e}=this;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:"destroyed"})}addEventListener(e,t,i){this.localEventService||(this.localEventService=new Ec),this.localEventService.addEventListener(e,t,i)}removeEventListener(e,t,i){this.localEventService?.removeEventListener(e,t,i)}dispatchLocalEvent(e){this.localEventService?.dispatchEvent(e)}addManagedElementListeners(e,t){return this._setupListeners(e,t)}addManagedEventListeners(e){return this._setupListeners(this.eventSvc,e)}addManagedListeners(e,t){return this._setupListeners(e,t)}_setupListeners(e,t){const i=[];for(const o of Object.keys(t)){const s=t[o];s&&i.push(this._setupListener(e,o,s))}return i}_setupListener(e,t,i){if(this.destroyed)return()=>null;let o;return MDe(e)?(e.__addEventListener(t,i),o=()=>(e.__removeEventListener(t,i),null)):(e instanceof HTMLElement?DDe(this.beans.frameworkOverrides,e,t,i):e.addEventListener(t,i),o=()=>(e.removeEventListener(t,i),null)),this.destroyFunctions.push(o),()=>(o(),this.destroyFunctions=this.destroyFunctions.filter(s=>s!==o),null)}setupGridOptionListener(e,t){const{gos:i}=this;i.addPropertyEventListener(e,t);const o=()=>(i.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(o),()=>(o(),this.destroyFunctions=this.destroyFunctions.filter(s=>s!==o),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupGridOptionListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const i=e.join("-")+this.propertyListenerId++,o=s=>{if(s.changeSet){if(s.changeSet&&s.changeSet.id===this.lastChangeSetIdLookup[i])return;this.lastChangeSetIdLookup[i]=s.changeSet.id}const n={type:"gridPropertyChanged",changeSet:s.changeSet,source:s.source};t(n)};e.forEach(s=>this.setupGridOptionListener(s,o))}getLocaleTextFunc(){return xE(this.beans.localeSvc)}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createOptionalManagedBean(e,t){return e?this.createManagedBean(e,t):void 0}createManagedBean(e,t){const i=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),i}createBean(e,t,i){return(t||this.stubContext).createBean(e,i)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}};function MDe(e){return e.__addEventListener!==void 0}var aW=new Set(["__proto__","constructor","prototype"]);function kDe(e,t){if(e!=null){if(Array.isArray(e)){for(let i=0;i<e.length;i++)t(i.toString(),e[i]);return}for(const i of Object.keys(e))t(i,e[i])}}function fs(e,t,i=!0,o=!1){Te(t)&&kDe(t,(s,n)=>{if(aW.has(s))return;let r=e[s];r!==n&&(o&&r==null&&n!=null&&typeof n=="object"&&n.constructor===Object&&(r={},e[s]=r),l5(n)&&l5(r)&&!Array.isArray(r)?fs(r,n,i,o):(i||n!==void 0)&&(e[s]=n))})}function Sy(e,t,i){if(!t||!e)return;if(!i)return e[t];const o=t.split(".");let s=e;for(let n=0;n<o.length;n++){if(s==null)return;s=s[o[n]]}return s}function l5(e){return typeof e=="object"&&e!==null}var ADe=/[&<>"']/g,IDe={"&":"&","<":"<",">":">",'"':""","'":"'"};function Gr(e,t){if(e==null)return null;const i=e.toString().toString();return t?i:i.replace(ADe,o=>IDe[o])}var TDe={resizable:!0,sortable:!0},RDe=0;function lW(){return RDe++}function Ll(e){return e instanceof AM}var AM=class extends ae{constructor(e,t,i,o){super(),this.colDef=e,this.userProvidedColDef=t,this.colId=i,this.primary=o,this.isColumn=!0,this.instanceId=lW(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.colEventSvc=new Ec,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null,this.colIdSanitised=Gr(i)}destroy(){super.destroy(),this.beans.rowSpanSvc?.deregister(this)}getInstanceId(){return this.instanceId}setState(){const{colDef:e,beans:{sortSvc:t,pinnedCols:i,colFlex:o}}=this;t?.initCol(this);const s=e.hide;s!==void 0?this.visible=!s:this.visible=!e.initialHide,i?.initCol(this),o?.initCol(this)}setColDef(e,t,i){const o=e.spanRows!==this.colDef.spanRows;this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),o&&(this.beans.rowSpanSvc?.deregister(this),this.initRowSpan()),this.dispatchColEvent("colDefChanged",i)}getUserProvidedColDef(){return this.userProvidedColDef}getParent(){return this.parent}getOriginalParent(){return this.originalParent}postConstruct(){this.setState(),this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip(),this.initRowSpan()}initDotNotation(){const{gos:e,colDef:{field:t,tooltipField:i}}=this,o=e.get("suppressFieldDotNotation");this.fieldContainsDots=Te(t)&&t.indexOf(".")>=0&&!o,this.tooltipFieldContainsDots=Te(i)&&i.indexOf(".")>=0&&!o}initMinAndMaxWidths(){const e=this.colDef;this.minWidth=e.minWidth??this.beans.environment.getDefaultColumnMinWidth(),this.maxWidth=e.maxWidth??Number.MAX_SAFE_INTEGER}initTooltip(){this.beans.tooltipSvc?.initCol(this)}initRowSpan(){this.colDef.spanRows&&this.beans.rowSpanSvc?.register(this)}resetActualWidth(e){const t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}calculateColInitialWidth(e){let t;const i=e.width,o=e.initialWidth;return i!=null?t=i:o!=null?t=o:t=200,Math.max(Math.min(t,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(e){return this.beans.showRowGroupCols?.isRowGroupDisplayed(this,e)??!1}isPrimary(){return this.primary}isFilterAllowed(){return!!this.colDef.filter}isFieldContainsDots(){return this.fieldContainsDots}isTooltipEnabled(){return this.tooltipEnabled}isTooltipFieldContainsDots(){return this.tooltipFieldContainsDots}getHighlighted(){return this.highlighted}__addEventListener(e,t){this.colEventSvc.addEventListener(e,t)}__removeEventListener(e,t){this.colEventSvc.removeEventListener(e,t)}addEventListener(e,t){this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,this.colEventSvc);const i=this.frameworkEventListenerService?.wrap(t)??t;this.colEventSvc.addEventListener(e,i)}removeEventListener(e,t){const i=this.frameworkEventListenerService?.unwrap(t)??t;this.colEventSvc.removeEventListener(e,i)}createColumnFunctionCallbackParams(e){return Ke(this.gos,{node:e,data:e.data,column:this,colDef:this.colDef})}isSuppressNavigable(e){return this.beans.cellNavigation?.isSuppressNavigable(this,e)??!1}isCellEditable(e){return this.beans.editSvc?.isCellEditable(this,e)??!1}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(e){return this.isColumnFunc(e,this.colDef.rowDrag)}isDndSource(e){return this.isColumnFunc(e,this.colDef.dndSource)}isCellCheckboxSelection(e){return this.beans.selectionSvc?.isCellCheckboxSelection(this,e)??!1}isSuppressPaste(e){return this.isColumnFunc(e,this.colDef?.suppressPaste??null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(e){return this.colDef[e]??TDe[e]}isColumnFunc(e,t){if(typeof t=="boolean")return t;if(typeof t=="function"){const i=this.createColumnFunctionCallbackParams(e);return t(i)}return!1}createColumnEvent(e,t){return Ke(this.gos,{type:e,column:this,columns:[this],source:t})}isMoving(){return this.moving}getSort(){return this.sort}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return this.sort==="asc"}isSortDescending(){return this.sort==="desc"}isSortNone(){return qt(this.sort)}isSorting(){return Te(this.sort)}getSortIndex(){return this.sortIndex}isMenuVisible(){return this.menuVisible}getAggFunc(){return this.aggFunc}getLeft(){return this.left}getOldLeft(){return this.oldLeft}getRight(){return this.left+this.actualWidth}setLeft(e,t){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchColEvent("leftChanged",t))}isFilterActive(){return this.filterActive}isHovered(){return me(261),!!this.beans.colHover?.isHovered(this)}setFirstRightPinned(e,t){this.firstRightPinned!==e&&(this.firstRightPinned=e,this.dispatchColEvent("firstRightPinnedChanged",t))}setLastLeftPinned(e,t){this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.dispatchColEvent("lastLeftPinnedChanged",t))}isFirstRightPinned(){return this.firstRightPinned}isLastLeftPinned(){return this.lastLeftPinned}isPinned(){return this.pinned==="left"||this.pinned==="right"}isPinnedLeft(){return this.pinned==="left"}isPinnedRight(){return this.pinned==="right"}getPinned(){return this.pinned}setVisible(e,t){const i=e===!0;this.visible!==i&&(this.visible=i,this.dispatchColEvent("visibleChanged",t)),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}isSpanHeaderHeight(){return!this.getColDef().suppressSpanHeaderHeight}getColumnGroupPaddingInfo(){let e=this.getParent();if(!e||!e.isPadding())return{numberOfParents:0,isSpanningTotal:!1};const t=e.getPaddingLevel()+1;let i=!0;for(;e;){if(!e.isPadding()){i=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:i}}getColDef(){return this.colDef}getDefinition(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getActualWidth(){return this.actualWidth}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}createBaseColDefParams(e){return Ke(this.gos,{node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(qt(this.colDef.colSpan))return 1;const t=this.createBaseColDefParams(e),i=this.colDef.colSpan(t);return Math.max(i,1)}getRowSpan(e){if(qt(this.colDef.rowSpan))return 1;const t=this.createBaseColDefParams(e),i=this.colDef.rowSpan(t);return Math.max(i,1)}setActualWidth(e,t,i=!1){e=Math.max(e,this.minWidth),e=Math.min(e,this.maxWidth),this.actualWidth!==e&&(this.actualWidth=e,this.flex!=null&&t!=="flex"&&t!=="gridInitializing"&&(this.flex=null),i||this.fireColumnWidthChangedEvent(t)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(e){this.dispatchColEvent("widthChanged",e)}isGreaterThanMax(e){return e>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex}isRowGroupActive(){return this.rowGroupActive}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}isValueActive(){return this.aggregationActive}isAllowPivot(){return this.colDef.enablePivot===!0}isAllowValue(){return this.colDef.enableValue===!0}isAllowRowGroup(){return this.colDef.enableRowGroup===!0}dispatchColEvent(e,t,i){const o=this.createColumnEvent(e,t);i&&fs(o,i),this.colEventSvc.dispatchEvent(o)}dispatchStateUpdatedEvent(e){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:e})}};function Bo(e){return e instanceof xy}var xy=class extends ae{constructor(e,t,i,o){super(),this.colGroupDef=e,this.groupId=t,this.padding=i,this.level=o,this.isColumn=!1,this.expandable=!1,this.instanceId=lW(),this.expandableListenerRemoveCallback=null,this.expanded=!!e?.openByDefault}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0),super.destroy()}reset(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0}getInstanceId(){return this.instanceId}getOriginalParent(){return this.originalParent}getLevel(){return this.level}isVisible(){return this.children?this.children.some(e=>e.isVisible()):!1}isPadding(){return this.padding}setExpanded(e){this.expanded=e===void 0?!1:e,this.dispatchLocalEvent({type:"expandedChanged"})}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(e){this.children=e}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}addLeafColumns(e){this.children&&this.children.forEach(t=>{Ll(t)?e.push(t):Bo(t)&&t.addLeafColumns(e)})}getColumnGroupShow(){const e=this.colGroupDef;if(e)return e.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();const e=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach(t=>t.__addEventListener("visibleChanged",e)),this.expandableListenerRemoveCallback=()=>{this.getLeafColumns().forEach(t=>t.__removeEventListener("visibleChanged",e)),this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let e=!1,t=!1,i=!1;const o=this.findChildrenRemovingPadding();for(let n=0,r=o.length;n<r;n++){const a=o[n];if(!a.isVisible())continue;const l=a.getColumnGroupShow();l==="open"?(e=!0,i=!0):l==="closed"?(t=!0,i=!0):(e=!0,t=!0)}const s=e&&t&&i;this.expandable!==s&&(this.expandable=s,this.dispatchLocalEvent({type:"expandableChanged"}))}findChildrenRemovingPadding(){const e=[],t=i=>{i.forEach(o=>{Bo(o)&&o.isPadding()?t(o.children):e.push(o)})};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},LDe={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},PDe=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=Sc(e);let i=0;for(;;){let o=e??t;if(o?i!==0&&(o+="_"+i):o=i,!this.existingKeys[o])return this.existingKeys[o]=!0,String(o);i++}}},lT=Object.freeze([]);function Dt(e){if(e?.length)return e[e.length-1]}function zr(e,t,i){return e==null&&t==null?!0:e!=null&&t!=null&&e.length===t.length&&e.every((o,s)=>i?i(o,t[s]):t[s]===o)}function f0(e,t){if(e)for(const i of e)t(i)}function on(e,t){const i=e.indexOf(t);i>=0&&e.splice(i,1)}function c5(e,t,i){for(let o=0;o<t.length;o++)on(e,t[o]);for(let o=t.length-1;o>=0;o--)e.splice(i,0,t[o])}var ep="ag-Grid-AutoColumn",cW="ag-Grid-SelectionColumn",EDe="ag-Grid-RowNumbersColumn";function NE(e){const t=[],i=o=>{for(let s=0;s<o.length;s++){const n=o[s];Ll(n)?t.push(n):Bo(n)&&i(n.getChildren())}};return i(e),t}function qp(e){return e.reduce((t,i)=>t+i.getActualWidth(),0)}function lu(e,t,i){const o={};if(!t)return;xc(null,t,n=>{o[n.getInstanceId()]=n}),i&&xc(null,i,n=>{o[n.getInstanceId()]=null});const s=Object.values(o).filter(n=>n!=null);e.context.destroyBeans(s)}function IM(e){return e.getId().startsWith(ep)}function Nc(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(cW)??!1}function Av(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(EDe)??!1}function Dx(e){let t=[];return e instanceof Array?t=e:typeof e=="string"&&(t=e.split(",")),t}function dW(e,t){return zr(e,t,(i,o)=>i.getColId()===o.getColId())}function uW(e){e.map={},e.list.forEach(t=>e.map[t.getId()]=t)}function Oh(e){return e==="gridOptionsUpdated"?"gridOptionsChanged":e}function OE(e,t){const i=e===t,o=e.getColDef()===t,s=e.getColId()==t;return i||o||s}var FDe=(e,t)=>(i,o)=>{const s={value1:void 0,value2:void 0};let n=!1;return e&&(e[i]!==void 0&&(s.value1=e[i],n=!0),Te(o)&&e[o]!==void 0&&(s.value2=e[o],n=!0)),!n&&t&&(t[i]!==void 0&&(s.value1=t[i]),Te(o)&&t[o]!==void 0&&(s.value2=t[o])),s};function hW(e,t=null,i,o,s){const n=new PDe,{existingCols:r,existingGroups:a,existingColKeys:l}=NDe(o);n.addExistingKeys(l);const c=pW(e,t,0,i,r,n,a,s),{colGroupSvc:d}=e,u=d?.findMaxDepth(c,0)??0,h=d?d.balanceColumnTree(c,0,u,n):c;return xc(null,h,(g,f)=>{Bo(g)&&g.setupExpandable(),g.originalParent=f}),{columnTree:h,treeDept:u}}function NDe(e){const t=[],i=[],o=[];return e&&xc(null,e,s=>{if(Bo(s)){const n=s;i.push(n)}else{const n=s;o.push(n.getId()),t.push(n)}}),{existingCols:t,existingGroups:i,existingColKeys:o}}function pW(e,t,i,o,s,n,r,a){if(!t)return[];const{colGroupSvc:l}=e,c=new Array(t.length);for(let d=0;d<c.length;d++){const u=t[d];l&&_De(u)?c[d]=l.createProvidedColumnGroup(o,u,i,s,n,r,a):c[d]=ODe(e,o,u,s,n,a)}return c}function ODe(e,t,i,o,s,n){const r=GDe(i,o);r&&o?.splice(r.idx,1);let a=r?.column;if(a){const l=Mx(e,i,a.getColId());a.setColDef(l,i,n),BDe(e,a,l,n)}else{const l=s.getUniqueKey(i.colId,i.field),c=Mx(e,i,l);a=new AM(c,i,l,t),e.context.createBean(a)}return e.dataTypeSvc?.addColumnListeners(a),a}function gW(e,t,i,o,s,n,r,a){const{sortSvc:l,pinnedCols:c,colFlex:d}=e;i!==void 0&&t.setVisible(!i,a),l&&(l.updateColSort(t,o,a),s!==void 0&&l.setColSortIndex(t,s)),n!==void 0&&c?.setColPinned(t,n),r!==void 0&&d?.setColFlex(t,r)}function BDe(e,t,i,o){gW(e,t,i.hide,i.sort,i.sortIndex,i.pinned,i.flex,o);const s=t.getFlex();if(!(s!=null&&s>0))if(i.width!=null)t.setActualWidth(i.width,o);else{const n=t.getActualWidth();t.setActualWidth(n,o)}}function GDe(e,t){if(t)for(let i=0;i<t.length;i++){const o=t[i].getUserProvidedColDef();if(!o)continue;if(e.colId!=null){if(t[i].getId()===e.colId)return{idx:i,column:t[i]};continue}if(e.field!=null){if(o.field===e.field)return{idx:i,column:t[i]};continue}if(o===e)return{idx:i,column:t[i]}}}function Mx(e,t,i,o){const{gos:s,dataTypeSvc:n,validation:r}=e,a={},l=s.get("defaultColDef");fs(a,l,!1,!0);const c=zDe(e,a,t,i);c&&VDe(e,c,a),fs(a,t,!1,!0);const d=s.get("autoGroupColumnDef"),u=wa(s);return t.rowGroup&&d&&u&&fs(a,{sort:d.sort,initialSort:d.initialSort},!1,!0),n?.validateColDef(a),r?.validateColDef(a,i,o),a}function zDe(e,t,i,o){const s=e.dataTypeSvc?.updateColDefAndGetColumnType(t,i,o),n=i.type??s??t.type;return t.type=n,n?Dx(n):void 0}function VDe(e,t,i){if(!t.length)return;const o=Object.assign({},LDe),s=e.gos.get("columnTypes")||{};for(const n of Object.keys(s)){const r=s[n];n in o?me(34,{key:n}):(r.type&&me(35),o[n]=r)}t.forEach(n=>{const r=o[n.trim()];r?fs(i,r,!1,!0):me(36,{t:n})})}function _De(e){return e.children!==void 0}function xc(e,t,i){if(t)for(let o=0;o<t.length;o++){const s=t[o];Bo(s)&&xc(s,s.getChildren(),i),i(s,e)}}function fW(e,t){const i=[],o=[],s=[];return e.forEach(r=>{const a=r.getColDef().lockPosition;a==="right"?s.push(r):a==="left"||a===!0?i.push(r):o.push(r)}),t.get("enableRtl")?[...s,...o,...i]:[...i,...o,...s]}function mW(e,t){let i=!0;return xc(null,t,o=>{if(!Bo(o))return;const s=o,n=s.getColGroupDef();if(!(n&&n.marryChildren))return;const a=[];s.getLeafColumns().forEach(h=>{const p=e.indexOf(h);a.push(p)});const l=Math.max.apply(Math,a),c=Math.min.apply(Math,a),d=l-c,u=s.getLeafColumns().length-1;d>u&&(i=!1)}),i}function yW(e,t){if(!e||e.length==0)return;const i=t(e[0]);for(let o=1;o<e.length;o++)if(i!==t(e[o]))return;return i}function vW(e,t,i){if(!t.length)return;const o=t.length===1?t[0]:null,s=yW(t,n=>n.getPinned());e.dispatchEvent({type:"columnPinned",pinned:s??null,columns:t,column:o,source:i})}function HDe(e,t,i){if(!t.length)return;const o=t.length===1?t[0]:null,s=yW(t,n=>n.isVisible());e.dispatchEvent({type:"columnVisible",visible:s,columns:t,column:o,source:i})}function bW(e,t,i,o){e.dispatchEvent({type:t,columns:i,column:i&&i.length==1?i[0]:null,source:o})}function kx(e,t,i,o,s=null){t?.length&&e.dispatchEvent({type:"columnResized",columns:t,column:t.length===1?t[0]:null,flexColumns:s,finished:i,source:o})}function Dn(e,t,i){const{colModel:o,rowGroupColsSvc:s,pivotColsSvc:n,autoColSvc:r,selectionColSvc:a,colAnimation:l,visibleCols:c,pivotResultCols:d,environment:u,valueColsSvc:h,eventSvc:p,gos:g}=e,f=o.getColDefCols()||[];if(!f?.length)return!1;if(t?.state&&!t.state.forEach)return me(32),!1;const y=(x,D,k,A,w)=>{if(!x)return;const M=FDe(D,t.defaultState),T=M("flex").value1;if(gW(e,x,M("hide").value1,M("sort").value1,M("sortIndex").value1,M("pinned").value1,T,i),T==null){const L=M("width").value1;if(L!=null){const N=x.getColDef().minWidth??u.getDefaultColumnMinWidth();N!=null&&L>=N&&x.setActualWidth(L,i)}}w||!x.isPrimary()||(h?.syncColumnWithState(x,i,M),s?.syncColumnWithState(x,i,M,k),n?.syncColumnWithState(x,i,M,A))},v=(x,D,k)=>{const A=SW(e,i),w=D.slice(),M={},T={},L=[],N=[],O=[];let F=0;const E=s?.columns.slice()??[],G=n?.columns.slice()??[];x.forEach(V=>{const $=V.colId;if($.startsWith(ep)){L.push(V),O.push(V);return}if(Nc($)){N.push(V),O.push(V);return}const W=k($);W?(y(W,V,M,T,!1),on(w,W)):(O.push(V),F+=1)});const B=V=>y(V,null,M,T,!1);w.forEach(B),s?.sortColumns(d5.bind(s,M,E)),n?.sortColumns(d5.bind(n,T,G)),o.refreshCols(!1);const z=(V,$,_=[])=>{$.forEach(W=>{const j=V(W.colId);on(_,j),y(j,W,null,null,!0)}),_.forEach(B)};return z(V=>r?.getColumn(V)??null,L,r?.getColumns()?.slice()),z(V=>a?.getColumn(V)??null,N,a?.getColumns()?.slice()),$De(t,o,g),c.refresh(i),p.dispatchEvent({type:"columnEverythingChanged",source:i}),A(),{unmatchedAndAutoStates:O,unmatchedCount:F}};l?.start();let{unmatchedAndAutoStates:b,unmatchedCount:C}=v(t.state||[],f,x=>o.getColDefCol(x));if(b.length>0||Te(t.defaultState)){const x=d?.getPivotResultCols()?.list??[];C=v(b,x,D=>d?.getPivotResultCol(D)??null).unmatchedCount}return l?.finish(),C===0}function CW(e,t){const{colModel:i,autoColSvc:o,selectionColSvc:s}=e,n=i.getColDefCols();if(!n?.length)return;const r=i.getColDefColTree(),a=NE(r),l=[];let c=1e3,d=1e3;const u=y=>{const v=xW(y);qt(v.rowGroupIndex)&&v.rowGroup&&(v.rowGroupIndex=c++),qt(v.pivotIndex)&&v.pivot&&(v.pivotIndex=d++),l.push(v)};o?.getColumns()?.forEach(u),s?.getColumns()?.forEach(u),a?.forEach(u),Dn(e,{state:l},t);const h=o?.getColumns()??[],f=[...s?.getColumns()??[],...h,...n].map(y=>({colId:y.colId}));Dn(e,{state:f,applyOrder:!0},t)}function SW(e,t){const{rowGroupColsSvc:i,pivotColsSvc:o,valueColsSvc:s,colModel:n,sortSvc:r,eventSvc:a}=e,l={rowGroupColumns:i?.columns.slice()??[],pivotColumns:o?.columns.slice()??[],valueColumns:s?.columns.slice()??[]},c=Iv(e),d={};return c.forEach(u=>{d[u.colId]=u}),()=>{const u=(k,A,w,M)=>{const T=A.map(M),L=w.map(M);if(zr(T,L))return;const O=new Set(A);w.forEach(E=>{O.delete(E)||O.add(E)});const F=[...O];a.dispatchEvent({type:k,columns:F,column:F.length===1?F[0]:null,source:t})},h=k=>{const A=[];return n.forAllCols(w=>{const M=d[w.getColId()];M&&k(M,w)&&A.push(w)}),A},p=k=>k.getColId();u("columnRowGroupChanged",l.rowGroupColumns,i?.columns??[],p),u("columnPivotChanged",l.pivotColumns,o?.columns??[],p);const f=h((k,A)=>{const w=k.aggFunc!=null,M=w!=A.isValueActive(),T=w&&k.aggFunc!=A.getAggFunc();return M||T});f.length>0&&bW(a,"columnValueChanged",f,t),kx(a,h((k,A)=>k.width!=A.getActualWidth()),!0,t),vW(a,h((k,A)=>k.pinned!=A.getPinned()),t),HDe(a,h((k,A)=>k.hide==A.isVisible()),t);const x=h((k,A)=>k.sort!=A.getSort()||k.sortIndex!=A.getSortIndex());x.length>0&&r?.dispatchSortChangedEvents(t,x);const D=Iv(e);jDe(c,D,t,n,a)}}function Iv(e){const{colModel:t,rowGroupColsSvc:i,pivotColsSvc:o}=e,s=t.getColDefCols();if(qt(s)||!t.isAlive())return[];const n=i?.columns,r=o?.columns,a=[],l=d=>{const u=d.isRowGroupActive()&&n?n.indexOf(d):null,h=d.isPivotActive()&&r?r.indexOf(d):null,p=d.isValueActive()?d.getAggFunc():null,g=d.getSort()!=null?d.getSort():null,f=d.getSortIndex()!=null?d.getSortIndex():null;a.push({colId:d.getColId(),width:d.getActualWidth(),hide:!d.isVisible(),pinned:d.getPinned(),sort:g,sortIndex:f,aggFunc:p,rowGroup:d.isRowGroupActive(),rowGroupIndex:u,pivot:d.isPivotActive(),pivotIndex:h,flex:d.getFlex()??null})};t.forAllCols(d=>l(d));const c=new Map(t.getCols().map((d,u)=>[d.getColId(),u]));return a.sort((d,u)=>{const h=c.has(d.colId)?c.get(d.colId):-1,p=c.has(u.colId)?c.get(u.colId):-1;return h-p}),a}function xW(e){const t=(g,f)=>g??f??null,i=e.getColDef(),o=t(i.sort,i.initialSort),s=t(i.sortIndex,i.initialSortIndex),n=t(i.hide,i.initialHide),r=t(i.pinned,i.initialPinned),a=t(i.width,i.initialWidth),l=t(i.flex,i.initialFlex);let c=t(i.rowGroupIndex,i.initialRowGroupIndex),d=t(i.rowGroup,i.initialRowGroup);c==null&&(d==null||d==!1)&&(c=null,d=null);let u=t(i.pivotIndex,i.initialPivotIndex),h=t(i.pivot,i.initialPivot);u==null&&(h==null||h==!1)&&(u=null,h=null);const p=t(i.aggFunc,i.initialAggFunc);return{colId:e.getColId(),sort:o,sortIndex:s,hide:n,pinned:r,width:a,flex:l,rowGroup:d,rowGroupIndex:c,pivot:h,pivotIndex:u,aggFunc:p}}function $De(e,t,i){if(!e.applyOrder||!e.state)return;const o=[];e.state.forEach(s=>{s.colId!=null&&o.push(s.colId)}),WDe(t.cols,o,t,i)}function WDe(e,t,i,o){if(e==null)return;let s=[];const n={};t.forEach(a=>{if(n[a])return;const l=e.map[a];l&&(s.push(l),n[a]=!0)});let r=0;if(e.list.forEach(a=>{const l=a.getColId();if(n[l]!=null)return;l.startsWith(ep)?s.splice(r++,0,a):s.push(a)}),s=fW(s,o),!mW(s,i.getColTree())){me(39);return}e.list=s}function jDe(e,t,i,o,s){const n={};t.forEach(d=>n[d.colId]=d);const r={};e.forEach(d=>{n[d.colId]&&(r[d.colId]=!0)});const a=e.filter(d=>r[d.colId]),l=t.filter(d=>r[d.colId]),c=[];l.forEach((d,u)=>{const h=a&&a[u];if(h&&h.colId!==d.colId){const p=o.getCol(h.colId);p&&c.push(p)}}),c.length&&s.dispatchEvent({type:"columnMoved",columns:c,column:c.length===1?c[0]:null,finished:!0,source:i})}var d5=(e,t,i,o)=>{const s=e[i.getId()],n=e[o.getId()],r=s!=null,a=n!=null;if(r&&a)return s-n;if(r)return-1;if(a)return 1;const l=t.indexOf(i),c=t.indexOf(o),d=l>=0,u=c>=0;return d&&u?l-c:d?-1:1},UDe=class extends ae{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"],e=>this.refreshAll(Oh(e.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],this.recreateColumnDefs.bind(this)),this.addManagedPropertyListener("pivotMode",e=>this.setPivotMode(this.gos.get("pivotMode"),Oh(e.source)))}createColsFromColDefs(e){const{beans:t}=this,{valueCache:i,colAutosize:o,rowGroupColsSvc:s,pivotColsSvc:n,valueColsSvc:r,visibleCols:a,colViewport:l,eventSvc:c}=t,d=this.colDefs?SW(t,e):void 0;i?.expire();const u=this.colDefCols?.list,h=this.colDefCols?.tree,p=hW(t,this.colDefs,!0,h,e);lu(t,this.colDefCols?.tree,p.columnTree);const g=p.columnTree,f=p.treeDept,y=NE(g),v={};y.forEach(b=>v[b.getId()]=b),this.colDefCols={tree:g,treeDepth:f,list:y,map:v},s?.extractCols(e,u),n?.extractCols(e,u),r?.extractCols(e,u),this.ready=!0,this.refreshCols(!0),a.refresh(e),l.checkViewportColumns(),c.dispatchEvent({type:"columnEverythingChanged",source:e}),d&&(this.changeEventsDispatching=!0,d(),this.changeEventsDispatching=!1),c.dispatchEvent({type:"newColumnsLoaded",source:e}),e==="gridInitializing"&&o?.applyAutosizeStrategy()}refreshCols(e){if(!this.colDefCols)return;const t=this.cols?.tree;this.saveColOrder();const{autoColSvc:i,selectionColSvc:o,rowNumbersSvc:s,quickFilter:n,pivotResultCols:r,showRowGroupCols:a,rowAutoHeight:l,visibleCols:c,colViewport:d,eventSvc:u}=this.beans,h=this.selectCols(r,this.colDefCols);this.createColumnsForService([i,o,s],h);const p=aDe(this.gos,this.showingPivotResult);(!e||p)&&this.restoreColOrder(h),this.positionLockedCols(h),a?.refresh(),n?.refreshCols(),this.setColSpanActive(),l?.setAutoHeightActive(h),c.clear(),d.clear(),!zr(t,this.cols.tree)&&u.dispatchEvent({type:"gridColumnsChanged"})}createColumnsForService(e,t){for(const i of e)i&&(i.createColumns(t,o=>{this.lastOrder=o(this.lastOrder),this.lastPivotOrder=o(this.lastPivotOrder)}),i.addColumns(t))}selectCols(e,t){const i=e?.getPivotResultCols()??null;this.showingPivotResult=i!=null;const{map:o,list:s,tree:n,treeDepth:r}=i??t;return this.cols={list:s.slice(),map:{...o},tree:n.slice(),treeDepth:r},i&&(i.list.some(l=>this.cols?.map[l.getColId()]!==void 0)||(this.lastPivotOrder=null)),this.cols}getColsToShow(){if(!this.cols)return[];const e=this.isPivotMode()&&!this.showingPivotResult,t=this.beans.valueColsSvc?.columns;return this.cols.list.filter(o=>{const s=IM(o);if(e){const n=t?.includes(o);return s||n}else return s||o.isVisible()})}refreshAll(e){this.ready&&(this.refreshCols(!1),this.beans.visibleCols.refresh(e))}setColsVisible(e,t=!1,i){Dn(this.beans,{state:e.map(o=>({colId:typeof o=="string"?o:o.getColId(),hide:!t}))},i)}restoreColOrder(e){const t=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!t)return;const i=new Map(t.map((c,d)=>[c,d]));if(!e.list.some(c=>i.has(c)))return;const s=new Map(e.list.map(c=>[c,!0])),n=t.filter(c=>s.has(c)),r=new Map(n.map(c=>[c,!0])),a=e.list.filter(c=>!r.has(c)),l=n.slice();a.forEach(c=>{let d=c.getOriginalParent();if(!d){l.push(c);return}const u=[];for(;!u.length&&d;)d.getLeafColumns().forEach(f=>{const y=l.indexOf(f)>=0,v=u.indexOf(f)<0;y&&v&&u.push(f)}),d=d.getOriginalParent();if(!u.length){l.push(c);return}const h=u.map(g=>l.indexOf(g)),p=Math.max(...h);l.splice(p+1,0,c)}),e.list=l}positionLockedCols(e){e.list=fW(e.list,this.gos)}saveColOrder(){this.showingPivotResult?this.lastPivotOrder=this.cols?.list??null:this.lastOrder=this.cols?.list??null}getColumnDefs(){return this.colDefCols?this.beans.colDefFactory?.getColumnDefs(this.colDefCols.list,this.showingPivotResult,this.lastOrder,this.cols?.list??[]):void 0}setColSpanActive(){this.colSpanActive=!!this.cols?.list.some(e=>e.getColDef().colSpan!=null)}isPivotMode(){return this.pivotMode}setPivotMode(e,t){if(e===this.pivotMode||(this.pivotMode=e,!this.ready))return;this.refreshCols(!1);const{visibleCols:i,eventSvc:o}=this.beans;i.refresh(t),o.dispatchEvent({type:"columnPivotModeChanged"})}isPivotActive(){const e=this.beans.pivotColsSvc?.columns;return this.pivotMode&&!!e?.length}recreateColumnDefs(e){if(!this.cols)return;this.beans.autoColSvc?.updateColumns(e);const t=Oh(e.source);this.createColsFromColDefs(t)}setColumnDefs(e,t){this.colDefs=e,this.createColsFromColDefs(t)}destroy(){lu(this.beans,this.colDefCols?.tree),super.destroy()}getColTree(){return this.cols?.tree??[]}getColDefColTree(){return this.colDefCols?.tree??[]}getColDefCols(){return this.colDefCols?.list??null}getCols(){return this.cols?.list??[]}forAllCols(e){const{pivotResultCols:t,autoColSvc:i,selectionColSvc:o}=this.beans;f0(this.colDefCols?.list,e),f0(i?.columns?.list,e),f0(o?.columns?.list,e),f0(t?.getPivotResultCols()?.list,e)}getColsForKeys(e){return e?e.map(t=>this.getCol(t)).filter(t=>t!=null):[]}getColDefCol(e){return this.colDefCols?.list?this.getColFromCollection(e,this.colDefCols):null}getCol(e){return e==null?null:this.getColFromCollection(e,this.cols)}getColFromCollection(e,t){if(t==null)return null;const{map:i,list:o}=t;if(typeof e=="string"&&i[e])return i[e];for(let s=0;s<o.length;s++)if(OE(o[s],e))return o[s];return this.beans.autoColSvc?.getColumn(e)??this.beans.selectionColSvc?.getColumn(e)??null}},BE=class extends ae{constructor(){super(...arguments),this.dispatchColumnChangedEvent=bW,this.columns=[],this.columnIndexMap={},this.updateIndexMap=()=>{this.columnIndexMap={},this.columns.forEach((e,t)=>this.columnIndexMap[e.getId()]=t)}}wireBeans(e){this.colModel=e.colModel,this.aggFuncSvc=e.aggFuncSvc,this.visibleCols=e.visibleCols}sortColumns(e){this.columns.sort(e),this.updateIndexMap()}setColumns(e,t){this.setColList(e,this.columns,this.eventName,!0,!0,this.columnProcessors.set,t)}addColumns(e,t){this.updateColList(e,this.columns,!0,!0,this.columnProcessors.add,this.eventName,t)}removeColumns(e,t){this.updateColList(e,this.columns,!1,!0,this.columnProcessors.remove,this.eventName,t)}getColumnIndex(e){return this.columnIndexMap[e]}setColList(e=[],t,i,o,s,n,r){const a=this.colModel.getCols();if(!a||a.length===0)return;const l=new Map;t.forEach((d,u)=>l.set(d,u)),t.length=0,Te(e)&&e.forEach(d=>{const u=this.colModel.getColDefCol(d);u&&t.push(u)}),t.forEach((d,u)=>{const h=l.get(d);if(h===void 0){l.set(d,0);return}o&&h!==u||l.delete(d)}),this.updateIndexMap(),(this.colModel.getColDefCols()||[]).forEach(d=>{const u=t.indexOf(d)>=0;n(d,u,r)}),s&&this.colModel.refreshCols(!1),this.visibleCols.refresh(r),this.dispatchColumnChangedEvent(this.eventSvc,i,[...l.keys()],r)}updateColList(e=[],t,i,o,s,n,r){if(!e||e.length===0)return;let a=!1;const l=new Set;if(e.forEach(d=>{if(!d)return;const u=this.colModel.getColDefCol(d);if(u){if(l.add(u),i){if(t.indexOf(u)>=0)return;t.push(u)}else{const h=t.indexOf(u);if(h<0)return;for(let p=h+1;p<t.length;p++)l.add(t[p]);on(t,u)}s(u,i,r),a=!0}}),!a)return;this.updateIndexMap(),o&&this.colModel.refreshCols(!1),this.visibleCols.refresh(r);const c=Array.from(l);this.eventSvc.dispatchEvent({type:n,columns:c,column:c.length===1?c[0]:null,source:r})}extractCols(e,t=[]){const i=this.columns,o=[],s=[],{setFlagFunc:n,getIndexFunc:r,getInitialIndexFunc:a,getValueFunc:l,getInitialValueFunc:c}=this.columnExtractors;(this.colModel.getColDefCols()||[]).forEach(p=>{const g=t.indexOf(p)<0,f=p.getColDef(),y=l(f),v=c(f),b=r(f),C=a(f);let x;y!==void 0?x=y:b!==void 0?b===null?x=!1:x=b>=0:g?v!==void 0?x=v:C!==void 0?x=C!=null&&C>=0:x=!1:x=i.indexOf(p)>=0,x&&((g?b!=null||C!=null:b!=null)?o.push(p):s.push(p))});const u=p=>{const g=r(p.getColDef()),f=a(p.getColDef());return g??f};o.sort((p,g)=>{const f=u(p),y=u(g);return f===y?0:f<y?-1:1});const h=[].concat(o);return i.forEach(p=>{s.indexOf(p)>=0&&h.push(p)}),s.forEach(p=>{h.indexOf(p)<0&&h.push(p)}),i.forEach(p=>{h.indexOf(p)<0&&n(p,!1,e)}),h.forEach(p=>{i.indexOf(p)<0&&n(p,!0,e)}),this.columns=h,this.updateIndexMap(),this.columns}restoreColumnOrder(e,t){const i=this.columns,o=this.colModel.getColDefCols();if(!i.length||!o)return e;const s=Object.keys(t),n=new Set(s),r=new Set(s),a=new Set(i.map(C=>{const x=C.getColId();return r.delete(x),x}).concat(s)),l=[],c={};let d=0;for(let C=0;C<o.length;C++){const x=o[C].getColId();a.has(x)&&(l.push(x),c[x]=d++)}let u=1e3,h=!1,p=0;const g=this.columnOrdering.enableProp,f=this.columnOrdering.initialEnableProp,y=this.columnOrdering.indexProp,v=this.columnOrdering.initialIndexProp,b=C=>{const x=c[C];for(let D=p;D<x;D++){const k=l[D];r.has(k)&&(t[k][y]=u++,r.delete(k))}p=x};return i.forEach(C=>{const x=C.getColId();if(n.has(x))b(x),t[x][y]=u++;else{const D=C.getColDef();(D[y]===null||D[y]===void 0&&D[v]==null)&&(h||(D[g]||D[g]===void 0&&D[f]?b(x):(r.forEach(w=>{t[w][y]=u+c[w]}),u+=l.length,h=!0)),e[x]||(e[x]={colId:x}),e[x][y]=u++)}}),e}},wW=class{constructor(){this.existingIds={}}getInstanceIdForKey(e){const t=this.existingIds[e];let i;return typeof t!="number"?i=0:i=t+1,this.existingIds[e]=i,i}};function qb(e,t,i){return i&&e.addDestroyFunc(()=>t.destroyBean(i)),i??e}var DW=class{constructor(e){this.cssClassStates={},this.getGui=e}addCssClass(e){this.addOrRemoveCssClass(e,!0)}removeCssClass(e){this.addOrRemoveCssClass(e,!1)}containsCssClass(e){const t=this.getGui();return t?t.classList.contains(e):!1}addOrRemoveCssClass(e,t){if(!e)return;if(e.indexOf(" ")>=0){const o=(e||"").split(" ");if(o.length>1){o.forEach(s=>this.addOrRemoveCssClass(s,t));return}}if(this.cssClassStates[e]!==t&&e.length){const o=this.getGui();o&&o.classList.toggle(e,t),this.cssClassStates[e]=t}}},KDe=0,fe=null,Qe=class extends ae{constructor(e,t){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=KDe++,this.cssClassManager=new DW(()=>this.eGui),this.componentSelectors=new Map((t??[]).map(i=>[i.selector,i])),e&&this.setTemplate(e)}preConstruct(){this.wireTemplate(this.getGui());const e="component-"+Object.getPrototypeOf(this)?.constructor?.name;this.css?.forEach(t=>this.beans.environment.addGlobalCSS(t,e))}wireTemplate(e,t){e&&this.gos&&(this.applyElementsToComponent(e),this.createChildComponentsFromTags(e,t))}getCompId(){return this.compId}getDataRefAttribute(e){return e.getAttribute?e.getAttribute(_$):null}applyElementsToComponent(e,t,i,o=null){if(t===void 0&&(t=this.getDataRefAttribute(e)),t){const s=this[t];if(s===fe)this[t]=o??e;else{const n=i&&i[t];if(!this.suppressDataRefValidation&&!n)throw new Error(`data-ref: ${t} on ${this.constructor.name} with ${s}`)}}}createChildComponentsFromTags(e,t){const i=[];for(const o of e.childNodes??[])i.push(o);i.forEach(o=>{if(!(o instanceof HTMLElement))return;const s=this.createComponentFromElement(o,n=>{const r=n.getGui();if(r)for(const a of o.attributes??[])r.setAttribute(a.name,a.value)},t);if(s){if(s.addItems&&o.children.length){this.createChildComponentsFromTags(o,t);const n=Array.prototype.slice.call(o.children);s.addItems(n)}this.swapComponentForNode(s,e,o)}else o.childNodes&&this.createChildComponentsFromTags(o,t)})}createComponentFromElement(e,t,i){const o=e.nodeName,s=this.getDataRefAttribute(e),n=o.indexOf("AG-")===0,r=n?this.componentSelectors.get(o):null;let a=null;if(r){const l=i&&s?i[s]:void 0;a=new r.component(l),a.setParentComponent(this),this.createBean(a,null,t)}else if(n)throw new Error(`selector: ${o}`);return this.applyElementsToComponent(e,s,i,a),a}swapComponentForNode(e,t,i){const o=e.getGui();t.replaceChild(o,i),t.insertBefore(document.createComment(i.nodeName),o),this.addDestroyFunc(this.destroyBean.bind(this,e))}activateTabIndex(e){const t=this.gos.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui()),e.forEach(i=>i.setAttribute("tabindex",t.toString()))}setTemplate(e,t,i){let o;typeof e=="string"||e==null?o=wM(e):o=Ut(e),this.setTemplateFromElement(o,t,i)}setTemplateFromElement(e,t,i,o=!1){if(this.eGui=e,this.suppressDataRefValidation=o,t)for(let s=0;s<t.length;s++){const n=t[s];this.componentSelectors.set(n.selector,n)}this.wireTemplate(e,i)}getGui(){return this.eGui}getFocusableElement(){return this.eGui}getAriaElement(){return this.getFocusableElement()}setParentComponent(e){this.parentComponent=e}getParentComponent(){return this.parentComponent}setGui(e){this.eGui=e}queryForHtmlElement(e){return this.eGui.querySelector(e)}getContainerAndElement(e,t){let i=t;return e==null?null:(i||(i=this.eGui),DM(e)?{element:e,parent:i}:{element:e.getGui(),parent:i})}prependChild(e,t){const{element:i,parent:o}=this.getContainerAndElement(e,t)||{};!i||!o||o.insertAdjacentElement("afterbegin",i)}appendChild(e,t){const{element:i,parent:o}=this.getContainerAndElement(e,t)||{};!i||!o||o.appendChild(i)}isDisplayed(){return this.displayed}setVisible(e,t={}){if(e!==this.visible){this.visible=e;const{skipAriaHidden:i}=t;Kwe(this.eGui,e,{skipAriaHidden:i})}}setDisplayed(e,t={}){if(e!==this.displayed){this.displayed=e;const{skipAriaHidden:i}=t;Ue(this.eGui,e,{skipAriaHidden:i});const o={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(o)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),super.destroy()}addGuiEventListener(e,t,i){this.eGui.addEventListener(e,t,i),this.addDestroyFunc(()=>this.eGui.removeEventListener(e,t))}addCssClass(e){this.cssClassManager.addCssClass(e)}removeCssClass(e){this.cssClassManager.removeCssClass(e)}containsCssClass(e){return this.cssClassManager.containsCssClass(e)}addOrRemoveCssClass(e,t){this.cssClassManager.addOrRemoveCssClass(e,t)}registerCSS(e){this.css||(this.css=[]),this.css.push(e)}},ht=class iy{constructor(t){this.status=0,this.resolution=null,this.waiters=[],t(i=>this.onDone(i),i=>this.onReject(i))}static all(t){return t.length?new iy(i=>{let o=t.length;const s=new Array(o);t.forEach((n,r)=>{n.then(a=>{s[r]=a,o--,o===0&&i(s)})})}):iy.resolve()}static resolve(t=null){return new iy(i=>i(t))}then(t){return new iy(i=>{this.status===1?i(t(this.resolution)):this.waiters.push(o=>i(t(o)))})}onDone(t){this.status=1,this.resolution=t,this.waiters.forEach(i=>i(t))}onReject(t){}};function YDe(e){return e?e.prototype&&"getGui"in e.prototype:!1}function MW(e,t,i,o){const{name:s}=i;let n,r,a,l,c,d;if(t){const u=t,h=u[s+"Selector"],p=h?h(o):null,g=f=>{typeof f=="string"?n=f:f!=null&&f!==!0&&(e.isFrameworkComponent(f)?a=f:r=f)};p?(g(p.component),l=p.params,c=p.popup,d=p.popupPosition):g(u[s])}return{compName:n,jsComp:r,fwComp:a,paramsFromSelector:l,popupFromSelector:c,popupPositionFromSelector:d}}var XDe=class extends ae{constructor(){super(...arguments),this.beanName="userCompFactory"}wireBeans(e){this.agCompUtils=e.agCompUtils,this.registry=e.registry,this.frameworkCompWrapper=e.frameworkCompWrapper,this.gridOptions=e.gridOptions}getCompDetailsFromGridOptions(e,t,i,o=!1){return this.getCompDetails(this.gridOptions,e,t,i,o)}getCompDetails(e,t,i,o,s=!1){const{name:n,cellRenderer:r}=t;let{compName:a,jsComp:l,fwComp:c,paramsFromSelector:d,popupFromSelector:u,popupPositionFromSelector:h}=MW(this.beans.frameworkOverrides,e,t,o),p;const g=b=>{const C=this.registry.getUserComponent(n,b);C&&(l=C.componentFromFramework?void 0:C.component,c=C.componentFromFramework?C.component:void 0,p=C.params)};if(a!=null&&g(a),l==null&&c==null&&i!=null&&g(i),l&&r&&!YDe(l)&&(l=this.agCompUtils?.adaptFunction(t,l)),!l&&!c){const{validation:b}=this.beans;s&&(a!==i||!i)?a?b?.isProvidedUserComp(a)||nt(50,{compName:a}):i?b||nt(260,{...this.gos.getModuleErrorParams(),propName:n,compName:i}):nt(216,{name:n}):i&&!b&&nt(146,{comp:i});return}const f=this.mergeParams(e,t,o,d,p),y=l==null,v=l??c;return{componentFromFramework:y,componentClass:v,params:f,type:t,popupFromSelector:u,popupPositionFromSelector:h,newAgStackInstance:()=>this.newAgStackInstance(v,y,f,t)}}newAgStackInstance(e,t,i,o){const s=!t;let n;s?n=new e:n=this.frameworkCompWrapper.wrap(e,o.mandatoryMethods,o.optionalMethods,o),this.createBean(n);const r=n.init?.(i);return r==null?ht.resolve(n):r.then(()=>n)}mergeParams(e,t,i,o=null,s){const n={...i,...s},r=e,a=r&&r[t.name+"Params"];if(typeof a=="function"){const l=a(i);fs(n,l)}else typeof a=="object"&&fs(n,a);return fs(n,o),n}},ZDe={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"]},qDe={name:"headerComponent",optionalMethods:["refresh"]},QDe={name:"innerHeaderComponent"},JDe={name:"innerHeaderGroupComponent"},eMe={name:"headerGroupComponent"},tMe={name:"innerRenderer",cellRenderer:!0,optionalMethods:["afterGuiAttached"]},iMe={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},oMe={name:"loadingCellRenderer",cellRenderer:!0},sMe={name:"loadingOverlayComponent",optionalMethods:["refresh"]},nMe={name:"noRowsOverlayComponent",optionalMethods:["refresh"]},rMe={name:"tooltipComponent"},GE={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},aMe={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},lMe={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},cMe={name:"loadingCellRenderer",cellRenderer:!0},dMe={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],cellRenderer:!0},uMe={name:"detailCellRenderer",optionalMethods:["refresh"],cellRenderer:!0};function hMe(e,t){return e.getCompDetailsFromGridOptions(ZDe,"agDragAndDropImage",t,!0)}function m0(e,t,i){return e.getCompDetails(t,tMe,void 0,i)}function pMe(e,t,i){return e.getCompDetails(t,qDe,"agColumnHeader",i)}function gMe(e,t,i){return e.getCompDetails(t,QDe,void 0,i)}function fMe(e,t){const i=t.columnGroup.getColGroupDef();return e.getCompDetails(i,eMe,"agColumnGroupHeader",t)}function mMe(e,t,i){return e.getCompDetails(t,JDe,void 0,i)}function yMe(e,t){return e.getCompDetailsFromGridOptions(lMe,void 0,t,!0)}function vMe(e,t){return e.getCompDetailsFromGridOptions(cMe,"agLoadingCellRenderer",t,!0)}function bMe(e,t){return e.getCompDetailsFromGridOptions(dMe,"agGroupRowRenderer",t,!0)}function CMe(e,t){return e.getCompDetailsFromGridOptions(uMe,"agDetailCellRenderer",t,!0)}function hf(e,t,i){return e.getCompDetails(t,iMe,void 0,i)}function SMe(e,t,i){return e.getCompDetails(t,oMe,"agSkeletonCellRenderer",i,!0)}function kW(e,t,i,o){return e.getCompDetails(t,GE,o,i,!0)}function xMe(e,t){return e.getCompDetailsFromGridOptions(sMe,"agLoadingOverlay",t,!0)}function wMe(e,t){return e.getCompDetailsFromGridOptions(nMe,"agNoRowsOverlay",t,!0)}function DMe(e,t){return e.getCompDetails(t.colDef,rMe,"agTooltipComponent",t,!0)}function AW(e,t,i,o){return e.getCompDetails(t,aMe,o,i)}function MMe(e,t){return MW(e,t,GE)}function kMe(e,t,i){return e.mergeParams(t,GE,i)}function u5(e){const t=e;return t!=null&&t.getFrameworkComponentInstance!=null?t.getFrameworkComponentInstance():e}var IW=new Set,Ax={},zg={},cS,TW=!1,AMe=!1;function IMe(e){const[t,i]=e.version.split(".")||[],[o,s]=cS.split(".")||[];return t===o&&i===s}function TMe(e){cS||(cS=e.version);const t=i=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${i} Please update all modules to the same version.`;if(e.version?IMe(e)||Bg(t(`'${e.moduleName}' is version ${e.version} but the other modules are version ${cS}.`)):Bg(t(`'${e.moduleName}' is incompatible.`)),e.validate){const i=e.validate();i.isValid||Bg(`${i.message}`)}}function Tv(e,t){TMe(e);const i=e.rowModels??["all"];IW.add(e);let o;t!==void 0?(TW=!0,zg[t]===void 0&&(zg[t]={}),o=zg[t]):o=Ax,i.forEach(s=>{o[s]===void 0&&(o[s]={}),o[s][e.moduleName]=e}),e.dependsOn&&e.dependsOn.forEach(s=>Tv(s,t))}function RMe(e){delete zg[e]}function RW(e,t,i){const o=s=>!!Ax[s]?.[e]||!!zg[t]?.[s]?.[e];return o(i)||o("all")}function zE(){return TW}function LMe(e,t){const i=zg[e]??{};return[...Object.values(Ax.all??{}),...Object.values(i.all??{}),...Object.values(Ax[t]??{}),...Object.values(i[t]??{})]}function PMe(){return new Set(IW)}function EMe(){return AMe}var LW=class{static register(e){Tv(e,void 0)}static registerModules(e){e.forEach(t=>Tv(t,void 0))}},FMe=class{constructor(e){this.beans={},this.createdBeans=[],this.destroyed=!1,!(!e||!e.beanClasses)&&(this.beanDestroyComparator=e.beanDestroyComparator,this.init(e))}init(e){for(const t of Object.keys(e.providedBeanInstances))this.beans[t]=e.providedBeanInstances[t];e.beanClasses.forEach(t=>{const i=new t;i.beanName?this.beans[i.beanName]=i:console.error(`Bean ${t.name} is missing beanName`),this.createdBeans.push(i)}),e.derivedBeans?.forEach(t=>{const{beanName:i,bean:o}=t(this);this.beans[i]=o,this.createdBeans.push(o)}),e.beanInitComparator&&this.createdBeans.sort(e.beanInitComparator),this.initBeans(this.createdBeans)}getBeanInstances(){return Object.values(this.beans)}createBean(e,t){if(!e)throw Error("null bean");return this.initBeans([e],t),e}initBeans(e,t){e.forEach(i=>{i.preWireBeans?.(this.beans),i.wireBeans?.(this.beans)}),e.forEach(i=>i.preConstruct?.()),t&&e.forEach(t),e.forEach(i=>i.postConstruct?.())}getBeans(){return this.beans}getBean(e){return this.beans[e]}destroy(){if(this.destroyed)return;this.destroyed=!0;const e=this.getBeanInstances();this.beanDestroyComparator&&e.sort(this.beanDestroyComparator),this.destroyBeans(e),this.beans={},this.createdBeans=[]}destroyBean(e){e?.destroy?.()}destroyBeans(e){if(e)for(let t=0;t<e.length;t++)this.destroyBean(e[t]);return[]}isDestroyed(){return this.destroyed}},NMe=class extends FMe{init(e){this.gridId=e.gridId,this.beans.context=this,this.destroyCallback=e.destroyCallback,super.init(e)}destroy(){super.destroy(),RMe(this.gridId),this.destroyCallback?.()}getGridId(){return this.gridId}},OMe="ag-column-first",BMe="ag-column-last";function PW(e,t,i,o){return qt(e)?[]:NW(e.headerClass,e,t,i,o)}function EW(e,t,i,o){return qt(e)?[]:NW(e.toolPanelClass,e,t,i,o)}function FW(e,t,i){e.addOrRemoveCssClass(OMe,i.isColAtEdge(t,"first")),e.addOrRemoveCssClass(BMe,i.isColAtEdge(t,"last"))}function GMe(e,t,i,o){return Ke(t,{colDef:e,column:i,columnGroup:o})}function NW(e,t,i,o,s){if(qt(e))return[];let n;if(typeof e=="function"){const r=GMe(t,i,o,s);n=e(r)}else n=e;return typeof n=="string"?[n]:Array.isArray(n)?[...n]:[]}var Z={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"},cT=!1,Ix=0;function zMe(e){Ix>0||(e.addEventListener("keydown",Tx),e.addEventListener("mousedown",Tx))}function VMe(e){Ix>0||(e.removeEventListener("keydown",Tx),e.removeEventListener("mousedown",Tx))}function Tx(e){const t=cT,i=e.type==="keydown";i&&(e.ctrlKey||e.metaKey||e.altKey)||t!==i&&(cT=i)}function _Me(e){const t=Ti(e);return zMe(t),Ix++,()=>{Ix--,VMe(t)}}function OW(){return cT}function HMe(e,t,i){t.addManagedElementListeners(i,{keydown:o=>{if(!o.defaultPrevented&&o.key===Z.TAB){const s=o.shiftKey;Yl(e,i,!1,s)||tp(e,s)&&o.preventDefault()}}})}function Bh(e,t,i=!1){const o=Uwe;let s=F$;t&&(s+=", "+t),i&&(s+=', [tabindex="-1"]');const n=Array.prototype.slice.apply(e.querySelectorAll(o)).filter(l=>Jn(l)),r=Array.prototype.slice.apply(e.querySelectorAll(s));return r.length?((l,c)=>l.filter(d=>c.indexOf(d)===-1))(n,r):n}function jr(e,t=!1,i=!1,o=!1){const s=Bh(e,o?".ag-tab-guard":null,i),n=t?Dt(s):s[0];return n?(n.focus({preventScroll:!0}),!0):!1}function Yl(e,t,i,o){const s=Bh(t,i?':not([tabindex="-1"])':null),n=Jt(e);let r;i?r=s.findIndex(l=>l.contains(n)):r=s.indexOf(n);const a=r+(o?-1:1);return a<0||a>=s.length?null:s[a]}function VE(e,t=5){let i=0;for(;e&&t5(e)===null&&++i<=t;)e=e.parentElement;return t5(e)===null?null:e}function $Me(e,t){return e.ctrlsSvc.get("gridCtrl").focusInnerElement(t)}function Gh(e){return e.gos.get("suppressHeaderFocus")||!!e.overlays?.isExclusive()}function _E(e){return e.gos.get("suppressCellFocus")||!!e.overlays?.isExclusive()}function tp(e,t,i=!1){const o=e.ctrlsSvc.get("gridCtrl");return!i&&o.focusNextInnerContainer(t)?!0:((i||!t&&!o.isDetailGrid())&&o.forceFocusOutOfContainer(t),!1)}function WMe(e,t=!1){return e===Z.DELETE?!0:!t&&e===Z.BACKSPACE?L$():!1}var jMe=class extends ae{constructor(e,t,i,o){super(),this.cellCtrl=e,this.rowNode=i,this.rowCtrl=o,this.beans=t}init(){this.eGui=this.cellCtrl.eGui}onKeyDown(e){const t=e.key;switch(t){case Z.ENTER:this.onEnterKeyDown(e);break;case Z.F2:this.onF2KeyDown(e);break;case Z.ESCAPE:this.onEscapeKeyDown(e);break;case Z.TAB:this.onTabKeyDown(e);break;case Z.BACKSPACE:case Z.DELETE:this.onBackspaceOrDeleteKeyDown(t,e);break;case Z.DOWN:case Z.UP:case Z.RIGHT:case Z.LEFT:this.onNavigationKeyDown(e,t);break}}onNavigationKeyDown(e,t){if(!this.cellCtrl.editing){if(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled())this.onShiftRangeSelect(e);else{const i=this.cellCtrl.getFocusedCellPosition();this.beans.navigation?.navigateToNextCell(e,t,i,!0)}e.preventDefault()}}onShiftRangeSelect(e){const{rangeSvc:t,navigation:i}=this.beans;if(!t)return;const o=t.extendLatestRangeInDirection(e);o&&i?.ensureCellVisible(o)}onTabKeyDown(e){this.beans.navigation?.onTabKeyDown(this.cellCtrl,e)}onBackspaceOrDeleteKeyDown(e,t){const{cellCtrl:i,beans:o,rowNode:s}=this,{gos:n,rangeSvc:r,eventSvc:a}=o;if(!i.editing){if(a.dispatchEvent({type:"keyShortcutChangedCellStart"}),WMe(e,n.get("enableCellEditingOnBackspace"))){if(r&&Qh(n))r.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(i.isCellEditable()){const{column:l}=i,c=this.beans.valueSvc.getDeleteValue(l,s);s.setDataValue(l,c,"cellClear")}}else o.editSvc?.startRowOrCellEdit(i,e,t);a.dispatchEvent({type:"keyShortcutChangedCellEnd"})}}onEnterKeyDown(e){const{cellCtrl:t,beans:i}=this;if(t.editing||this.rowCtrl.editing)this.beans.editSvc?.stopRowOrCellEdit(t,!1,!1,e.shiftKey);else if(i.gos.get("enterNavigatesVertically")){const o=e.shiftKey?Z.UP:Z.DOWN;i.navigation?.navigateToNextCell(null,o,t.cellPosition,!1)}else i.editSvc?.startRowOrCellEdit(t,Z.ENTER,e),t.editing&&e.preventDefault()}onF2KeyDown(e){const{cellCtrl:t,beans:i}=this;t.editing||i.editSvc?.startRowOrCellEdit(t,Z.F2,e)}onEscapeKeyDown(e){const{cellCtrl:t,beans:i}=this;t.editing&&i.editSvc?.stopRowOrCellEdit(t,!0)}processCharacter(e){if(e.target!==this.eGui||this.cellCtrl.editing)return;const o=e.key;o===Z.SPACE?this.onSpaceKeyDown(e):this.beans.editSvc?.startRowOrCellEdit(this.cellCtrl,o,e)&&e.preventDefault()}onSpaceKeyDown(e){const{gos:t}=this.beans;!this.cellCtrl.editing&&pl(t)&&this.beans.selectionSvc?.handleSelectionEvent(e,this.rowNode,"spaceKey"),e.preventDefault()}destroy(){super.destroy()}},UMe=class extends ae{constructor(e,t,i){super(),this.cellCtrl=e,this.column=i,this.beans=t}onMouseEvent(e,t){if(!Ta(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t);break}}onCellClicked(e){if(this.beans.touchSvc?.handleCellDoubleClick(this,e))return;const{eventSvc:t,rangeSvc:i,gos:o,editSvc:s}=this.beans,n=e.ctrlKey||e.metaKey;i&&n&&i.getCellRangeCount(this.cellCtrl.cellPosition)>1&&i.intersectLastRange(!0);const r=this.cellCtrl.createEvent(e,"cellClicked");t.dispatchEvent(r);const a=this.column.getColDef();a.onCellClicked&&window.setTimeout(()=>{this.beans.frameworkOverrides.wrapOutgoing(()=>{a.onCellClicked(r)})},0),(o.get("singleClickEdit")||a.singleClickEdit)&&!o.get("suppressClickEdit")&&!(e.shiftKey&&i?.getCellRanges().length!=0)&&s?.startRowOrCellEdit(this.cellCtrl,void 0,e)}onCellDoubleClicked(e){const{column:t,beans:i,cellCtrl:o}=this,{eventSvc:s,frameworkOverrides:n,gos:r,editSvc:a}=i,l=t.getColDef(),c=o.createEvent(e,"cellDoubleClicked");s.dispatchEvent(c),typeof l.onCellDoubleClicked=="function"&&window.setTimeout(()=>{n.wrapOutgoing(()=>{l.onCellDoubleClicked(c)})},0),!r.get("singleClickEdit")&&!r.get("suppressClickEdit")&&a?.startRowOrCellEdit(o,null,e)}onMouseDown(e){const{ctrlKey:t,metaKey:i,shiftKey:o}=e,s=e.target,{cellCtrl:n,beans:r}=this,{eventSvc:a,rangeSvc:l,rowNumbersSvc:c,focusSvc:d,gos:u}=r;if(this.isRightClickInExistingRange(e))return;const h=l&&!l.isEmpty(),p=this.containsWidget(s),{cellPosition:g}=n,f=Av(g.column);if(c&&f&&!c.handleMouseDownOnCell(g,e)){l&&e.preventDefault(),e.stopImmediatePropagation();return}if(!o||!h){const v=u.get("enableCellTextSelection")&&e.defaultPrevented,b=(SM()||v)&&!n.editing&&!kE(s)&&!p;n.focusCell(b)}if(o&&h&&!d.isCellFocused(g)){e.preventDefault();const y=d.getFocusedCell();if(y){const{column:v,rowIndex:b,rowPinned:C}=y,D=r.rowRenderer.getRowByPosition({rowIndex:b,rowPinned:C})?.getCellCtrl(v);D?.editing&&D.stopEditing(),d.setFocusedCell({column:v,rowIndex:b,rowPinned:C,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!p){if(l)if(f&&e.preventDefault(),o)l.extendLatestRangeToCell(g);else{const y=t||i;l.setRangeToCell(g,y)}a.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseDown"))}}isRightClickInExistingRange(e){const{rangeSvc:t}=this.beans;if(t){const i=t.isCellInAnyRange(this.cellCtrl.cellPosition),o=e.button===2||e.ctrlKey&&this.beans.gos.get("allowContextMenuWithControlKey");if(i&&o)return!0}return!1}containsWidget(e){return Eh(e,"ag-selection-checkbox",3)||Eh(e,"ag-drag-handle",3)}onMouseOut(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:i}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOut")),i?.clearMouseOver()}onMouseOver(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:i}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOver")),i?.setMouseOver([this.column])}mouseStayingInsideCell(e){if(!e.target||!e.relatedTarget)return!1;const t=this.cellCtrl.eGui,i=t.contains(e.target),o=t.contains(e.relatedTarget);return i&&o}destroy(){super.destroy()}},KMe=class extends ae{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.column=e.column,this.rowNode=e.rowNode}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:()=>this.onNewColumnsLoaded()})}init(){this.eSetLeft=this.cellCtrl.getRootElement(),this.eContent=this.cellCtrl.eGui;const e=this.cellCtrl.getCellSpan();e||(this.setupColSpan(),this.setupRowSpan()),this.onLeftChanged(),this.onWidthChanged(),e||this._legacyApplyRowSpan(),e&&(this.refreshSpanHeight(e),this.addManagedListeners(this.beans.eventSvc,{paginationChanged:this.refreshSpanHeight.bind(this,e),recalculateRowBounds:this.refreshSpanHeight.bind(this,e)}))}refreshSpanHeight(e){const t=e.getCellHeight();t!=null&&(this.eContent.style.height=`${t}px`)}onNewColumnsLoaded(){const e=this.column.getRowSpan(this.rowNode);this.rowSpan!==e&&(this.rowSpan=e,this._legacyApplyRowSpan(!0))}onDisplayColumnsChanged(){const e=this.getColSpanningList();zr(this.colsSpanning,e)||(this.colsSpanning=e,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.eContent)return;const e=this.getCellWidth();this.eContent.style.width=`${e}px`}getCellWidth(){return this.colsSpanning?this.colsSpanning.reduce((e,t)=>e+t.getActualWidth(),0):this.column.getActualWidth()}getColSpanningList(){const{column:e,rowNode:t}=this,i=e.getColSpan(t),o=[];if(i===1)o.push(e);else{let s=e;const n=e.getPinned();for(let r=0;s&&r<i&&(o.push(s),s=this.beans.visibleCols.getColAfter(s),!(!s||qt(s)||n!==s.getPinned()));r++);}return o}onLeftChanged(){if(!this.eSetLeft)return;const e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eSetLeft.style.left=e+"px"}getCellLeft(){let e;return this.beans.gos.get("enableRtl")&&this.colsSpanning?e=Dt(this.colsSpanning):e=this.column,e.getLeft()}modifyLeftForPrintLayout(e){if(!this.cellCtrl.printLayout||this.column.getPinned()==="left")return e;const{visibleCols:t}=this.beans,i=t.getColsLeftWidth();if(this.column.getPinned()==="right"){const o=t.bodyWidth;return i+o+(e||0)}return i+(e||0)}_legacyApplyRowSpan(e){if(this.rowSpan===1&&!e)return;const i=au(this.beans)*this.rowSpan;this.eContent.style.height=`${i}px`,this.eContent.style.zIndex="1"}destroy(){super.destroy()}},YMe="ag-cell",XMe="ag-cell-auto-height",ZMe="ag-cell-normal-height",qMe="ag-cell-focus",QMe="ag-cell-first-right-pinned",JMe="ag-cell-last-left-pinned",e1e="ag-cell-not-inline-editing",t1e="ag-cell-wrap-text",Rx="cellCtrl";function BW(e,t){return nW(e,t,Rx)}var i1e=0,dS=class extends ae{constructor(e,t,i,o){super(),this.column=e,this.rowNode=t,this.rowCtrl=o,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.focusEventWhileNotReady=null,this.hasBeenFocused=!1,this.beans=i;const{colId:s,colIdSanitised:n}=e;this.instanceId=s+"-"+i1e++,this.colIdSanitised=n,this.createCellPosition(),this.updateAndFormatValue(!1)}addFeatures(){const{beans:e}=this;this.positionFeature=new KMe(this,e),this.customStyleFeature=e.cellStyles?.createCellCustomStyleFeature(this,e),this.mouseListener=new UMe(this,e,this.column),this.keyboardListener=new jMe(this,e,this.rowNode,this.rowCtrl),this.column.isTooltipEnabled()&&this.enableTooltipFeature();const{rangeSvc:t}=e;t&&Qh(e.gos)&&(this.rangeFeature=t.createCellRangeFeature(e,this))}isCellSpanning(){return!1}getCellSpan(){}removeFeatures(){const e=this.beans.context;this.positionFeature=e.destroyBean(this.positionFeature),this.customStyleFeature=e.destroyBean(this.customStyleFeature),this.mouseListener=e.destroyBean(this.mouseListener),this.keyboardListener=e.destroyBean(this.keyboardListener),this.rangeFeature=e.destroyBean(this.rangeFeature),this.disableTooltipFeature()}enableTooltipFeature(e,t){this.tooltipFeature=this.beans.tooltipSvc?.enableCellTooltipFeature(this,e,t)}disableTooltipFeature(){this.tooltipFeature=this.beans.context.destroyBean(this.tooltipFeature)}setComp(e,t,i,o,s,n,r){this.comp=e,this.eGui=t,this.printLayout=s,r??(r=this),this.addDomData(r),this.addFeatures(),r.addDestroyFunc(()=>this.removeFeatures()),this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.setupFocus(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(o,r),this.refreshFirstAndLastStyles(),this.refreshAriaColIndex(),this.positionFeature?.init(),this.customStyleFeature?.setComp(e),this.tooltipFeature?.refreshTooltip(),this.keyboardListener?.init(),this.rangeFeature?.setComp(e),n&&this.isCellEditable()?this.beans.editSvc?.startEditing(this):this.showValue(!1,!0),this.onCompAttachedFuncs.length&&(this.onCompAttachedFuncs.forEach(a=>a()),this.onCompAttachedFuncs=[])}setupAutoHeight(e,t){this.isAutoHeight=this.beans.rowAutoHeight?.setupCellAutoHeight(this,e,t)??!1}getCellAriaRole(){return this.column.getColDef().cellAriaRole??"gridcell"}isCellRenderer(){const e=this.column.getColDef();return e.cellRenderer!=null||e.cellRendererSelector!=null}getValueToDisplay(){return this.valueFormatted??this.value}showValue(e,t){const{beans:i,column:o,rowNode:s,rangeFeature:n}=this,{userCompFactory:r}=i,a=this.getValueToDisplay();let l;const c=s.stub&&s.groupData?.[o.getId()]==null,d=o.getColDef();if(c||this.isCellRenderer()){const u=this.createCellRendererParams();!c||Av(o)?l=hf(r,d,u):l=SMe(r,d,u)}if(!l&&!c&&i.findSvc?.isMatch(s,o)){const u=this.createCellRendererParams();l=hf(r,{...o.getColDef(),cellRenderer:"agFindCellRenderer"},u)}this.comp.setRenderDetails(l,a,e),!t&&n&&Ea(i,()=>n?.refreshHandle())}setupControlComps(){const e=this.column.getColDef();this.includeSelection=this.isIncludeControl(this.isCheckboxSelection(e)),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.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(e){return this.rowNode.rowPinned!=null?!1:typeof e=="function"||e===!0}isCheckboxSelection(e){const{rowSelection:t,groupDisplayType:i}=this.beans.gridOptions,o=Mv(t),s=Nc(this.column);return i==="custom"&&o!=="selectionColumn"&&s?!1:e.checkboxSelection||s&&typeof t=="object"&&Nh(t)}refreshShouldDestroy(){const e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(e)),i=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),o=this.includeDndSource!=this.isIncludeControl(e.dndSource),s=this.isAutoHeight!=this.column.isAutoHeight();return t||i||o||s}onPopupEditorClosed(){this.editing&&this.beans.editSvc?.stopRowOrCellEdit(this)}stopEditing(e=!1){return this.beans.editSvc?.stopEditing(this,e)??!1}createCellRendererParams(){const{value:e,valueFormatted:t,column:i,rowNode:o,comp:s,eGui:n,beans:{valueSvc:r,gos:a}}=this;return Ke(a,{value:e,valueFormatted:t,getValue:()=>r.getValueForDisplay(i,o),setValue:c=>r.setValue(o,i,c),formatValue:this.formatValue.bind(this),data:o.data,node:o,pinned:i.getPinned(),colDef:i.getColDef(),column:i,refreshCell:this.refreshCell.bind(this),eGridCell:n,eParentOfValue:s.getParentOfValue(),registerRowDragger:(c,d,u,h)=>this.registerRowDragger(c,d,h),setTooltip:(c,d)=>{a.assertModuleRegistered("Tooltip",3),this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(c,d),this.tooltipFeature?.refreshTooltip()}})}onCellChanged(e){e.column===this.column&&this.refreshCell({})}refreshOrDestroyCell(e){this.refreshShouldDestroy()?this.rowCtrl?.recreateCell(this):this.refreshCell(e)}refreshCell(e){if(this.suppressRefreshCell||this.editing)return;const t=this.column.getColDef(),i=e!=null&&!!e.newData,o=e!=null&&!!e.suppressFlash,s=t.field==null&&t.valueGetter==null&&t.showRowGroup==null,n=e&&e.forceRefresh||s||i,r=!!this.comp,a=this.updateAndFormatValue(r),l=n||a;if(r){if(l){this.showValue(i,!1);const c=this.beans.filterManager?.isSuppressFlashingCellsBecauseFiltering();!o&&!c&&t.enableCellChangeFlash&&this.beans.cellFlashSvc?.flashCell(this),this.customStyleFeature?.applyUserStyles(),this.customStyleFeature?.applyClassesFromColDef()}this.tooltipFeature?.refreshTooltip(),this.customStyleFeature?.applyCellClassRules()}}isCellEditable(){return this.column.isCellEditable(this.rowNode)}formatValue(e){return this.callValueFormatter(e)??e}callValueFormatter(e){return this.beans.valueSvc.formatValue(this.column,this.rowNode,e)}updateAndFormatValue(e){const t=this.value,i=this.valueFormatted;return this.value=this.beans.valueSvc.getValueForDisplay(this.column,this.rowNode),this.valueFormatted=this.callValueFormatter(this.value),e?!this.valuesAreEqual(t,this.value)||this.valueFormatted!=i:!0}valuesAreEqual(e,t){const i=this.column.getColDef();return i.equals?i.equals(e,t):e===t}addDomData(e){const t=this.eGui;cf(this.beans.gos,t,Rx,this),e.addDestroyFunc(()=>cf(this.beans.gos,t,Rx,null))}createEvent(e,t){const{rowNode:i,column:o,value:s,beans:n}=this;return Ke(n.gos,{type:t,node:i,data:i.data,value:s,column:o,colDef:o.getColDef(),rowPinned:i.rowPinned,event:e,rowIndex:i.rowIndex})}processCharacter(e){this.keyboardListener?.processCharacter(e)}onKeyDown(e){this.keyboardListener?.onKeyDown(e)}onMouseEvent(e,t){this.mouseListener?.onMouseEvent(e,t)}getColSpanningList(){return this.positionFeature.getColSpanningList()}onLeftChanged(){this.comp&&this.positionFeature?.onLeftChanged()}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())}refreshFirstAndLastStyles(){const{comp:e,column:t,beans:i}=this;FW(e,t,i.visibleCols)}refreshAriaColIndex(){const e=this.beans.visibleCols.getAriaColIndex(this.column);I$(this.eGui,e)}onWidthChanged(){return this.positionFeature?.onWidthChanged()}getRowPosition(){const{rowIndex:e,rowPinned:t}=this.cellPosition;return{rowIndex:e,rowPinned:t}}updateRangeBordersIfRangeCount(){this.comp&&this.rangeFeature?.updateRangeBordersIfRangeCount()}onCellSelectionChanged(){this.comp&&this.rangeFeature?.onCellSelectionChanged()}isRangeSelectionEnabled(){return this.rangeFeature!=null}focusCell(e=!1){this.beans.focusSvc.setFocusedCell({...this.getFocusedCellPosition(),forceBrowserFocus:e})}restoreFocus(e=!1){if(!this.comp||this.editing||!this.isCellFocused()||!this.beans.focusSvc.shouldTakeFocus())return;const t=()=>{if(!this.isAlive())return;const i=this.comp.getFocusableElement();this.isCellFocused()&&i.focus({preventScroll:!0})};if(e){setTimeout(t,0);return}t()}onRowIndexChanged(){this.createCellPosition(),this.onCellFocused(),this.restoreFocus(),this.rangeFeature?.onCellSelectionChanged()}onSuppressCellFocusChanged(e){const t=this.eGui;t&&(Av(this.column)&&(e=!0),Og(t,"tabindex",e?void 0:-1))}onFirstRightPinnedChanged(){if(!this.comp)return;const e=this.column.isFirstRightPinned();this.comp.addOrRemoveCssClass(QMe,e)}onLastLeftPinnedChanged(){if(!this.comp)return;const e=this.column.isLastLeftPinned();this.comp.addOrRemoveCssClass(JMe,e)}checkCellFocused(){return this.beans.focusSvc.isCellFocused(this.cellPosition)}isCellFocused(){const e=this.checkCellFocused();return this.hasBeenFocused||(this.hasBeenFocused=e),e}setupFocus(){this.restoreFocus(!0),this.onCellFocused(this.focusEventWhileNotReady??void 0)}onCellFocused(e){const{beans:t}=this;if(_E(t))return;if(!this.comp){e&&(this.focusEventWhileNotReady=e);return}const i=this.isCellFocused();if(this.comp.addOrRemoveCssClass(qMe,i),i&&e&&e.forceBrowserFocus){let s=this.comp.getFocusableElement();if(this.editing){const n=Bh(s,null,!0);n.length&&(s=n[0])}s.focus({preventScroll:!!e.preventScrollOnBrowserFocus})}const o=t.gos.get("editType")==="fullRow";!i&&!o&&this.editing&&t.editSvc?.stopRowOrCellEdit(this),i&&this.rowCtrl.announceDescription()}createCellPosition(){const{rowIndex:e,rowPinned:t}=this.rowNode;this.cellPosition={rowIndex:e,rowPinned:Js(t),column:this.column}}setInlineEditingCss(){this.beans.editSvc?.setInlineEditingCss(this.rowCtrl)}applyStaticCssClasses(){const{comp:e}=this;e.addOrRemoveCssClass(YMe,!0),e.addOrRemoveCssClass(e1e,!0);const t=this.column.isAutoHeight()==!0;e.addOrRemoveCssClass(XMe,t),e.addOrRemoveCssClass(ZMe,!t)}onColumnHover(){this.beans.colHover?.onCellColumnHover(this.column,this.comp)}onColDefChanged(){this.comp&&(this.column.isTooltipEnabled()?(this.disableTooltipFeature(),this.enableTooltipFeature()):this.disableTooltipFeature(),this.setWrapText(),this.editing?this.beans.editSvc?.handleColDefChanged(this):this.refreshOrDestroyCell({forceRefresh:!0,suppressFlash:!0}))}setWrapText(){const e=this.column.getColDef().wrapText==!0;this.comp.addOrRemoveCssClass(t1e,e)}dispatchCellContextMenuEvent(e){const t=this.column.getColDef(),i=this.createEvent(e,"cellContextMenu"),{beans:o}=this;o.eventSvc.dispatchEvent(i),t.onCellContextMenu&&window.setTimeout(()=>{o.frameworkOverrides.wrapOutgoing(()=>{t.onCellContextMenu(i)})},0)}getCellRenderer(){return this.comp?.getCellRenderer()??null}destroy(){this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.isCellFocused()&&this.hasBrowserFocus()&&this.beans.focusSvc.attemptToRecoverFocus(),super.destroy()}hasBrowserFocus(){return this.eGui?.contains(Jt(this.beans))??!1}createSelectionCheckbox(){const e=this.beans.selectionSvc?.createCheckboxSelectionComponent();if(e)return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e}createDndSource(){const e=this.beans.registry.createDynamicBean("dndSourceComp",!1,this.rowNode,this.column,this.eGui);return e&&this.beans.context.createBean(e),e}registerRowDragger(e,t,i){if(this.customRowDragComp){this.customRowDragComp.setDragElement(e,t);return}const o=this.createRowDragComp(e,t,i);o&&(this.customRowDragComp=o,this.addDestroyFunc(()=>{this.beans.context.destroyBean(o),this.customRowDragComp=null}))}createRowDragComp(e,t,i){const o=this.beans.rowDragSvc?.createRowDragCompForCell(this.rowNode,this.column,()=>this.value,e,t,i);if(o)return this.beans.context.createBean(o),o}cellEditorAttached(){this.onEditorAttachedFuncs.forEach(e=>e()),this.onEditorAttachedFuncs=[]}setFocusedCellPosition(e){}getFocusedCellPosition(){return this.cellPosition}refreshAriaRowIndex(){}getRootElement(){return this.eGui}},GW="__ag_grid_instance";function zW(e,t){t[GW]=e.gridInstanceId}function Rv(e,t){return o1e(e,t.target)}function o1e(e,t){let i=t;for(;i;){const o=i[GW];if(Te(o))return o===e.gridInstanceId;i=i.parentElement}return!1}function s1e(e,t){return BW(e,t.target)?.getFocusedCellPosition()??null}var TM=(e=>(e[e.ToolPanel=0]="ToolPanel",e[e.HeaderCell=1]="HeaderCell",e[e.RowDrag=2]="RowDrag",e[e.ChartPanel=3]="ChartPanel",e[e.AdvancedFilterBuilder=4]="AdvancedFilterBuilder",e))(TM||{}),n1e=class extends ae{constructor(){super(...arguments),this.beanName="dragAndDrop",this.dragSourceAndParamsList=[],this.dropTargets=[]}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.dragSvc=e.dragSvc,this.environment=e.environment,this.userCompFactory=e.userCompFactory}addDragSource(e,t=!1){const i={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:t};this.dragSourceAndParamsList.push({params:i,dragSource:e}),this.dragSvc.addDragSource(i)}getDragAndDropImageComponent(){const{dragAndDropImageComp:e}=this;return!e||!e.comp?null:e.comp}removeDragSource(e){const{dragSourceAndParamsList:t,dragSvc:i}=this,o=t.find(s=>s.dragSource===e);o&&(i.removeDragSource(o.params),on(t,o))}destroy(){const{dragSourceAndParamsList:e,dragSvc:t,dropTargets:i}=this;e.forEach(o=>t.removeDragSource(o.params)),e.length=0,i.length=0,this.clearDragAndDropProperties(),super.destroy()}nudge(){this.dragging&&this.onDragging(this.eventLastTime,!0)}onDragStart(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=e.getDragItem(),e.onDragStarted?.(),this.createDragAndDropImageComponent()}onDragStop(e){this.dragSource?.onDragStopped?.();const{lastDropTarget:t}=this;if(t?.onDragStop){const i=this.createDropTargetEvent(t,e,null,null,!1);t.onDragStop(i)}this.clearDragAndDropProperties()}onDragCancel(){const{dragSource:e,lastDropTarget:t}=this;e?.onDragCancelled?.(),t?.onDragCancel&&t.onDragCancel(this.createDropTargetEvent(t,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(e,t=!1){const i=this.getHorizontalDirection(e),o=this.getVerticalDirection(e);this.eventLastTime=e,this.positionDragAndDropImageComp(e);const s=this.dropTargets.filter(d=>this.isMouseOnDropTarget(e,d)),n=this.findCurrentDropTarget(e,s),{lastDropTarget:r,dragSource:a,dragAndDropImageComp:l,dragItem:c}=this;if(n!==r){if(this.leaveLastTargetIfExists(e,i,o,t),r!==null&&n===null&&a?.onGridExit?.(c),r===null&&n!==null&&a?.onGridEnter?.(c),this.enterDragTargetIfExists(n,e,i,o,t),n&&l){const{comp:d,promise:u}=l;d?d.setIcon(n.getIconName?n.getIconName():null,!1):u.then(h=>{h&&h.setIcon(n.getIconName?n.getIconName():null,!1)})}this.lastDropTarget=n}else if(n&&n.onDragging){const d=this.createDropTargetEvent(n,e,i,o,t);n.onDragging(d)}}getAllContainersFromDropTarget(e){const t=e.getSecondaryContainers?e.getSecondaryContainers():null,i=[[e.getContainer()]];return t?i.concat(t):i}isMouseOnDropTarget(e,t){const i=this.getAllContainersFromDropTarget(t);let o=!1;const s=(a,l)=>{for(const c of l){const{width:d,height:u,left:h,right:p,top:g,bottom:f}=c.getBoundingClientRect();if(d===0||u===0)return!1;const y=a.clientX>=h&&a.clientX<p,v=a.clientY>=g&&a.clientY<f;if(!y||!v)return!1}return!0};for(const a of i)if(s(e,a)){o=!0;break}const{eElement:n,type:r}=this.dragSource;return t.targetContainsSource&&!t.getContainer().contains(n)?!1:o&&t.isInterestedIn(r,n)}findCurrentDropTarget(e,t){const i=t.length;if(i===0)return null;if(i===1)return t[0];const s=df(this.beans).elementsFromPoint(e.clientX,e.clientY);for(const n of s)for(const r of t)if(this.getAllContainersFromDropTarget(r).flatMap(l=>l).indexOf(n)!==-1)return r;return null}enterDragTargetIfExists(e,t,i,o,s){if(e&&e.onDragEnter){const n=this.createDropTargetEvent(e,t,i,o,s);e.onDragEnter(n)}}leaveLastTargetIfExists(e,t,i,o){const{lastDropTarget:s}=this;if(!s)return;if(s.onDragLeave){const r=this.createDropTargetEvent(s,e,t,i,o);s.onDragLeave(r)}const n=this.getDragAndDropImageComponent();n&&n.setIcon(null,!1)}addDropTarget(e){this.dropTargets.push(e)}removeDropTarget(e){this.dropTargets=this.dropTargets.filter(t=>t.getContainer()!==e.getContainer())}hasExternalDropZones(){return this.dropTargets.some(e=>e.external)}findExternalZone(e){return this.dropTargets.filter(i=>i.external).find(i=>i.getContainer()===e.getContainer())||null}isDropZoneWithinThisGrid(e){const i=this.ctrlsSvc.getGridBodyCtrl().eGridBody,{dropZoneTarget:o}=e;return i.contains(o)}getHorizontalDirection(e){const t=this.eventLastTime?.clientX,i=e.clientX;return t===i?null:t>i?"left":"right"}getVerticalDirection(e){const t=this.eventLastTime?.clientY,i=e.clientY;return t===i?null:t>i?"up":"down"}createDropTargetEvent(e,t,i,o,s){const n=e.getContainer(),r=n.getBoundingClientRect(),{dragItem:a,dragSource:l,gos:c}=this,d=t.clientX-r.left,u=t.clientY-r.top;return Ke(c,{event:t,x:d,y:u,vDirection:o,hDirection:i,dragSource:l,fromNudge:s,dragItem:a,dropZoneTarget:n})}positionDragAndDropImageComp(e){const t=this.getDragAndDropImageComponent();t&&uDe(t.getGui(),e,this.beans)}removeDragAndDropImageComponent(){const{dragAndDropImageComp:e}=this;if(e){const{comp:t}=e;if(t){const i=t.getGui();this.dragAndDropImageParent?.removeChild(i),this.destroyBean(t)}}this.dragAndDropImageComp=null}createDragAndDropImageComponent(){const{dragSource:e,gos:t,userCompFactory:i}=this;if(!e)return;const o=hMe(i,Ke(t,{dragSource:e}));if(!o)return;const s=o.newAgStackInstance();this.dragAndDropImageComp={promise:s},s.then(n=>{!n||!this.isAlive()||(this.processDragAndDropImageComponent(n),this.dragAndDropImageComp.comp=n)})}processDragAndDropImageComponent(e){const{dragSource:t,environment:i}=this;if(!t)return;const o=e.getGui();o.style.setProperty("position","absolute"),o.style.setProperty("z-index","9999"),zW(this.gos,o),i.applyThemeClasses(o),e.setIcon(null,!1);let{dragItemName:s}=t;typeof s=="function"&&(s=s()),e.setLabel(s||""),o.style.top="20px",o.style.left="20px";const n=LE(this.beans);this.dragAndDropImageParent=n,n?n.appendChild(o):me(54)}registerGridDropTarget(e,t){const i={getContainer:e,isInterestedIn:o=>o===1||o===0,getIconName:()=>"notAllowed"};this.addDropTarget(i),t.addDestroyFunc(()=>this.removeDropTarget(i))}},r1e=class{constructor(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=e.scrollAxis.indexOf("x")!==-1,this.scrollVertically=e.scrollAxis.indexOf("y")!==-1,this.scrollByTick=e.scrollByTick!=null?e.scrollByTick:20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||(()=>!1),this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||(()=>!1)}check(e,t=!1){const i=t||this.shouldSkipVerticalScroll();if(i&&this.shouldSkipHorizontalScroll())return;const o=this.scrollContainer.getBoundingClientRect(),s=this.scrollByTick;this.tickLeft=e.clientX<o.left+s,this.tickRight=e.clientX>o.right-s,this.tickUp=e.clientY<o.top+s&&!i,this.tickDown=e.clientY>o.bottom-s&&!i,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++;const e=this.tickCount>20?200:this.tickCount>10?80:40;if(this.scrollVertically){const t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){const t=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(t-e),this.tickRight&&this.setHorizontalPosition(t+e)}this.onScrollCallback&&this.onScrollCallback()}ensureCleared(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)}};function a1e(e,t){const i=e.column===t.column,o=e.rowPinned===t.rowPinned,s=e.rowIndex===t.rowIndex;return i&&o&&s}function l1e(e,t){switch(e.rowPinned){case"top":if(t.rowPinned!=="top")return!0;break;case"bottom":if(t.rowPinned!=="bottom")return!1;break;default:if(Te(t.rowPinned))return t.rowPinned!=="top";break}return e.rowIndex<t.rowIndex}function c1e(e){let t=0,i;const{pinnedRowModel:o,rowModel:s,pageBounds:n}=e;return o?.getPinnedTopRowCount()?i="top":s.getRowCount()?(i=null,t=n.getFirstRow()):o?.getPinnedBottomRowCount()&&(i="bottom"),i===void 0?null:{rowIndex:t,rowPinned:i}}function d1e(e){let t,i=null;const{pinnedRowModel:o,pageBounds:s}=e,n=o?.getPinnedBottomRowCount(),r=o?.getPinnedTopRowCount();return n?(i="bottom",t=n-1):e.rowModel.getRowCount()?(i=null,t=s.getLastRow()):r&&(i="top",t=r-1),t===void 0?null:{rowIndex:t,rowPinned:i}}function HE(e,t){switch(t.rowPinned){case"top":return e.pinnedRowModel?.getPinnedTopRow(t.rowIndex);case"bottom":return e.pinnedRowModel?.getPinnedBottomRow(t.rowIndex);default:return e.rowModel.getRow(t.rowIndex)}}function y0(e,t){const i=e.spannedRowRenderer?.getCellByPosition(t);if(i)return i;const o=e.rowRenderer.getRowByPosition(t);return o?o.getCellCtrl(t.column):null}function Lx(e,t){const{rowIndex:i,rowPinned:o}=t,{pageBounds:s,pinnedRowModel:n,rowModel:r}=e;if(i===0)return o==="top"?null:o==="bottom"&&r.isRowsToRender()?{rowIndex:s.getLastRow(),rowPinned:null}:n?.isRowsToRender("top")?{rowIndex:n.getPinnedTopRowCount()-1,rowPinned:"top"}:null;const a=o?void 0:r.getRow(i);return VW(e,a,!0)??{rowIndex:i-1,rowPinned:o}}function h5(e,t){const{rowIndex:i,rowPinned:o}=t,{pageBounds:s,pinnedRowModel:n,rowModel:r}=e;if(u1e(e,t))return o==="bottom"?null:o==="top"&&r.isRowsToRender()?{rowIndex:s.getFirstRow(),rowPinned:null}:n?.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;const a=o?void 0:r.getRow(i);return VW(e,a)??{rowIndex:i+1,rowPinned:o}}function VW(e,t,i){const{gos:o,rowRenderer:s}=e;if(!t?.sticky||!MM(o))return;const n=i?s.getStickyTopRowCtrls():s.getStickyBottomRowCtrls();let r;for(let a=0;a<n.length;a++)if(n[a].rowNode.rowIndex===t.rowIndex){r=n[a+(i?-1:1)];break}return r?{rowIndex:r.rowNode.rowIndex,rowPinned:null}:void 0}function u1e(e,t){const{rowPinned:i,rowIndex:o}=t,{pinnedRowModel:s,pageBounds:n}=e;return i==="top"?(s?.getPinnedTopRowCount()??0)-1<=o:i==="bottom"?(s?.getPinnedBottomRowCount()??0)-1<=o:n.getLastRow()<=o}function _W(e,t,i){if(i===0)return!1;const o=Math.abs(e.clientX-t.clientX),s=Math.abs(e.clientY-t.clientY);return Math.max(o,s)<=i}var h1e=class extends ae{constructor(){super(...arguments),this.beanName="dragSvc",this.dragEndFunctions=[],this.dragSources=[]}destroy(){const{dragSources:e}=this;e.forEach(this.removeListener.bind(this)),e.length=0,super.destroy()}removeListener(e){const t=e.dragSource.eElement,i=e.mouseDownListener;if(t.removeEventListener("mousedown",i),e.touchEnabled){const o=e.touchStartListener;t.removeEventListener("touchstart",o,{passive:!0})}}removeDragSource(e){const{dragSources:t}=this,i=t.find(o=>o.dragSource===e);i&&(this.removeListener(i),on(t,i))}addDragSource(e){const t=this.onMouseDown.bind(this,e),{eElement:i,includeTouch:o,stopPropagationForTouch:s}=e;i.addEventListener("mousedown",t);let n=null;const r=this.gos.get("suppressTouch");o&&!r&&(n=a=>{kE(a.target)||(s&&a.stopPropagation(),this.onTouchStart(e,a))},i.addEventListener("touchstart",n,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:t,touchStartListener:n,touchEnabled:!!o})}onTouchStart(e,t){this.currentDragParams=e,this.dragging=!1;const i=t.touches[0];this.touchLastTime=i,this.touchStart=i;const o=l=>this.onTouchMove(l,e.eElement),s=l=>this.onTouchUp(l,e.eElement),n=l=>{l.cancelable&&l.preventDefault()},r=t.target,a=[{target:df(this.beans),type:"touchmove",listener:n,options:{passive:!1}},{target:r,type:"touchmove",listener:o,options:{passive:!0}},{target:r,type:"touchend",listener:s,options:{passive:!0}},{target:r,type:"touchcancel",listener:s,options:{passive:!0}}];this.addTemporaryEvents(a),e.dragStartPixels===0&&this.onCommonMove(i,this.touchStart,e.eElement)}onMouseDown(e,t){const i=t;if(e.skipMouseEvent&&e.skipMouseEvent(t)||i._alreadyProcessedByDragService||(i._alreadyProcessedByDragService=!0,t.button!==0))return;this.shouldPreventMouseEvent(t)&&t.preventDefault(),this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t,this.startTarget=t.target;const o=c=>this.onMouseMove(c,e.eElement),s=c=>this.onMouseUp(c,e.eElement),n=c=>c.preventDefault(),r=c=>{c.key===Z.ESCAPE&&this.cancelDrag(e.eElement)},a=df(this.beans),l=[{target:a,type:"mousemove",listener:o},{target:a,type:"mouseup",listener:s},{target:a,type:"contextmenu",listener:n},{target:a,type:"keydown",listener:r}];this.addTemporaryEvents(l),e.dragStartPixels===0&&this.onMouseMove(t,e.eElement)}addTemporaryEvents(e){e.forEach(t=>{const{target:i,type:o,listener:s,options:n}=t;i.addEventListener(o,s,n)}),this.dragEndFunctions.push(()=>{e.forEach(t=>{const{target:i,type:o,listener:s,options:n}=t;i.removeEventListener(o,s,n)})})}isEventNearStartEvent(e,t){const{dragStartPixels:i}=this.currentDragParams,o=Te(i)?i:4;return _W(e,t,o)}getFirstActiveTouch(e){for(let t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null}onCommonMove(e,t,i){if(!this.dragging){if(this.isEventNearStartEvent(e,t))return;if(this.dragging=!0,this.eventSvc.dispatchEvent({type:"dragStarted",target:i}),this.currentDragParams.onDragStart(t),!this.currentDragParams){this.dragging=!1;return}this.currentDragParams.onDragging(t)}this.currentDragParams?.onDragging(e)}onTouchMove(e,t){const i=this.getFirstActiveTouch(e.touches);i&&this.onCommonMove(i,this.touchStart,t)}onMouseMove(e,t){SM()&&Ti(this.beans).getSelection()?.removeAllRanges(),this.shouldPreventMouseEvent(e)&&e.preventDefault(),this.onCommonMove(e,this.mouseStartEvent,t)}shouldPreventMouseEvent(e){const{gos:t}=this,i=t.get("enableCellTextSelection"),o=e.type==="mousemove",s=n=>!!n.target?.tagName.toLocaleLowerCase()?.match("^a$|textarea|input|select|button");return i&&o&&e.cancelable&&Rv(t,e)&&!s(e)}onTouchUp(e,t){let i=this.getFirstActiveTouch(e.changedTouches);i||(i=this.touchLastTime),this.onUpCommon(i,t)}onMouseUp(e,t){this.onUpCommon(e,t)}onUpCommon(e,t){this.dragging&&(this.dragging=!1,this.currentDragParams.onDragStop(e),this.eventSvc.dispatchEvent({type:"dragStopped",target:t})),this.resetDragProperties()}cancelDrag(e){this.eventSvc.dispatchEvent({type:"dragCancelled",target:e}),this.currentDragParams?.onDragCancel?.(),this.resetDragProperties()}resetDragProperties(){this.mouseStartEvent=null,this.startTarget=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null;const{dragEndFunctions:e}=this;e.forEach(t=>t()),e.length=0}};function HW(e,t){return e+"_"+t}function Ai(e){return e instanceof $W}var $W=class extends ae{constructor(e,t,i,o){super(),this.providedColumnGroup=e,this.groupId=t,this.partId=i,this.pinned=o,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 HW(this.groupId,this.partId)}isEmptyGroup(){return this.displayedChildren.length===0}isMoving(){const e=this.getProvidedColumnGroup().getLeafColumns();return!e||e.length===0?!1:e.every(t=>t.isMoving())}checkLeft(){if(this.displayedChildren.forEach(e=>{Ai(e)&&e.checkLeft()}),this.displayedChildren.length>0)if(this.gos.get("enableRtl")){const t=Dt(this.displayedChildren).getLeft();this.setLeft(t)}else{const e=this.displayedChildren[0].getLeft();this.setLeft(e)}else this.setLeft(null)}getLeft(){return this.left}getOldLeft(){return this.oldLeft}setLeft(e){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchLocalEvent({type:"leftChanged"}))}getPinned(){return this.pinned}getGroupId(){return this.groupId}getPartId(){return this.partId}getActualWidth(){let e=0;return this.displayedChildren?.forEach(t=>{e+=t.getActualWidth()}),e}isResizable(){if(!this.displayedChildren)return!1;let e=!1;return this.displayedChildren.forEach(t=>{t.isResizable()&&(e=!0)}),e}getMinWidth(){let e=0;return this.displayedChildren.forEach(t=>{e+=t.getMinWidth()}),e}addChild(e){this.children||(this.children=[]),this.children.push(e)}getDisplayedChildren(){return this.displayedChildren}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}getDisplayedLeafColumns(){const e=[];return this.addDisplayedLeafColumns(e),e}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(e){this.providedColumnGroup.setExpanded(e)}isAutoHeaderHeight(){return!!this.getColGroupDef()?.autoHeaderHeight}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}addDisplayedLeafColumns(e){this.displayedChildren.forEach(t=>{Ll(t)?e.push(t):Ai(t)&&t.addDisplayedLeafColumns(e)})}addLeafColumns(e){this.children.forEach(t=>{Ll(t)?e.push(t):Ai(t)&&t.addLeafColumns(e)})}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){const e=this.getParent();return!this.isPadding()||!e||!e.isPadding()?0:1+e.getPaddingLevel()}calculateDisplayedColumns(){this.displayedChildren=[];let e=this;for(;e!=null&&e.isPadding();)e=e.getParent();if(!(e?e.getProvidedColumnGroup().isExpandable():!1)){this.displayedChildren=this.children,this.dispatchLocalEvent({type:"displayedChildrenChanged"});return}this.children.forEach(i=>{if(Ai(i)&&(!i.displayedChildren||!i.displayedChildren.length))return;switch(i.getColumnGroupShow()){case"open":e.getProvidedColumnGroup().isExpanded()&&this.displayedChildren.push(i);break;case"closed":e.getProvidedColumnGroup().isExpanded()||this.displayedChildren.push(i);break;default:this.displayedChildren.push(i);break}}),this.dispatchLocalEvent({type:"displayedChildrenChanged"})}},Px="row-group-",p1e="t-",g1e="b-",f1e=0,Fp=class{constructor(e){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=f1e++,this.alreadyRendered=!1,this.highlighted=null,this.hovered=!1,this.__selected=!1,this.beans=e}setData(e){this.setDataCommon(e,!1)}updateData(e){this.setDataCommon(e,!0)}setDataCommon(e,t){const{valueCache:i,selectionSvc:o,eventSvc:s}=this.beans,n=this.data;this.data=e,i?.onDataChanged(),this.updateDataOnDetailNode(),o?.updateRowSelectable(this),this.resetQuickFilterAggregateText();const r=this.createDataChangedEvent(e,n,t);this.__localEventService?.dispatchEvent(r),s.dispatchEvent({type:"rowNodeDataChanged",node:this})}updateDataOnDetailNode(){this.detailNode&&(this.detailNode.data=this.data)}createDataChangedEvent(e,t,i){return{type:"dataChanged",node:this,oldData:t,newData:e,update:i}}getRowIndexString(){return this.rowIndex==null?(nt(13),null):this.rowPinned==="top"?p1e+this.rowIndex:this.rowPinned==="bottom"?g1e+this.rowIndex:this.rowIndex.toString()}setDataAndId(e,t){const{selectionSvc:i}=this.beans,o=i?.createDaemonNode?.(this),s=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),i&&(i.updateRowSelectable(this),i.syncInRowNode(this,o));const n=this.createDataChangedEvent(e,s,!1);this.__localEventService?.dispatchEvent(n)}setId(e){const t=Dv(this.beans.gos);if(t)if(this.data){const i=this.parent?.getRoute()??[];this.id=t({data:this.data,parentKeys:i.length>0?i:void 0,level:this.level,rowPinned:this.rowPinned}),this.id.startsWith(Px)&&nt(14,{groupPrefix:Px})}else this.id=void 0;else this.id=e}setRowTop(e){this.oldRowTop=this.rowTop,this.rowTop!==e&&(this.rowTop=e,this.dispatchRowEvent("topChanged"),this.setDisplayed(e!==null))}clearRowTopAndRowIndex(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)}setHovered(e){this.hovered=e}isHovered(){return this.hovered}setRowHeight(e,t=!1){this.rowHeight=e,this.rowHeightEstimated=t,this.dispatchRowEvent("heightChanged")}setExpanded(e,t,i){this.beans.expansionSvc?.setExpanded(this,e,t,i)}setDataValue(e,t,i){const{colModel:o,valueSvc:s,gos:n,selectionSvc:r}=this.beans,a=typeof e!="string"?e:o.getCol(e)??o.getColDefCol(e);if(!a)return!1;const l=s.getValueForDisplay(a,this);if(n.get("readOnlyEdit")){const{beans:{eventSvc:d},data:u,rowIndex:h,rowPinned:p}=this;return d.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:h,rowPinned:p,column:a,colDef:a.colDef,data:u,node:this,oldValue:l,newValue:t,value:t,source:i}),!1}const c=s.setValue(this,a,t,i);return this.dispatchCellChangedEvent(a,t,l),r?.updateRowSelectable(this),c}updateHasChildren(){let e=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;const{rowChildrenSvc:t}=this.beans;t&&(e=t.getHasChildrenValue(this)),e!==this.__hasChildren&&(this.__hasChildren=!!e,this.dispatchRowEvent("hasChildrenChanged"))}hasChildren(){return this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren}dispatchCellChangedEvent(e,t,i){const o={type:"cellChanged",node:this,column:e,newValue:t,oldValue:i};this.__localEventService?.dispatchEvent(o)}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){return this.beans.expansionSvc?.isExpandable(this)??!1}isSelected(){return this.footer?this.sibling.isSelected():this.__selected}depthFirstSearch(e){this.childrenAfterGroup?.forEach(t=>t.depthFirstSearch(e)),e(this)}dispatchRowEvent(e){this.__localEventService?.dispatchEvent({type:e,node:this})}setSelected(e,t=!1,i="api"){this.beans.selectionSvc?.setNodesSelected({nodes:[this],newValue:e,clearSelection:t,source:i})}isRowPinned(){return!!this.rowPinned}__addEventListener(e,t){this.__localEventService||(this.__localEventService=new Ec),this.__localEventService.addEventListener(e,t)}__removeEventListener(e,t){this.removeLocalListener(e,t)}addEventListener(e,t){this.beans.validation?.checkRowEvents(e),this.__localEventService||(this.__localEventService=new Ec),this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,this.__localEventService);const i=this.frameworkEventListenerService?.wrap(t)??t;this.__localEventService.addEventListener(e,i)}removeEventListener(e,t){const i=this.frameworkEventListenerService?.unwrap(t)??t;this.removeLocalListener(e,i)}removeLocalListener(e,t){this.__localEventService?.removeEventListener(e,t),this.__localEventService?.noRegisteredListenersExist()&&(this.__localEventService=null)}isFullWidthCell(){if(me(61),this.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return e?e({rowNode:this}):!1}getRoute(){if(this.level===-1)return[];if(this.key==null)return;const e=[];let t=this;for(;t&&t.key!=null;)e.push(t.key),t=t.parent;return e.reverse()}setFirstChild(e){this.firstChild!==e&&(this.firstChild=e,this.dispatchRowEvent("firstChildChanged"))}setDisplayed(e){this.displayed!==e&&(this.displayed=e,this.dispatchRowEvent("displayedChanged"))}setRowIndex(e){this.rowIndex!==e&&(this.rowIndex=e,this.dispatchRowEvent("rowIndexChanged"))}setAllChildrenCount(e){this.allChildrenCount!==e&&(this.allChildrenCount=e,this.dispatchRowEvent("allChildrenCountChanged"))}setUiLevel(e){this.uiLevel!==e&&(this.uiLevel=e,this.dispatchRowEvent("uiLevelChanged"))}};function WW(e,t,i){return Ke(t,{type:i,node:e,data:e.data,rowIndex:e.rowIndex,rowPinned:e.rowPinned})}var m1e={tag:"div",cls:"ag-filter"},jW=class extends Qe{constructor(e,t){super(m1e),this.column=e,this.source=t,this.filterWrapper=null}postConstruct(){this.createFilter(!0),this.addManagedEventListeners({filterDestroyed:this.onFilterDestroyed.bind(this)})}hasFilter(){return!!this.filterWrapper}getFilter(){return this.filterWrapper?.filterPromise??null}afterInit(){return this.filterWrapper?.filterPromise?.then(()=>{})??ht.resolve()}afterGuiAttached(e){this.filterWrapper?.filterPromise?.then(t=>{t?.afterGuiAttached?.(e)})}afterGuiDetached(){this.filterWrapper?.filterPromise?.then(e=>{e?.afterGuiDetached?.()})}createFilter(e){const{column:t,source:i}=this;this.filterWrapper=this.beans.filterManager?.getOrCreateFilterWrapper(t)??null,this.filterWrapper?.filterPromise&&this.filterWrapper.filterPromise.then(o=>{const s=o.getGui();Te(s)||me(69,{guiFromFilter:s}),this.appendChild(s),e&&this.eventSvc.dispatchEvent({type:"filterOpened",column:t,source:i,eGui:this.getGui()})})}onFilterDestroyed(e){(e.source==="api"||e.source==="paramsUpdated")&&e.column.getId()===this.column.getId()&&this.beans.colModel.getColDefCol(this.column)&&(Qs(this.getGui()),this.createFilter())}destroy(){this.filterWrapper=null,super.destroy()}},UW="ag-resizer-wrapper",md=(e,t)=>({tag:"div",ref:`${e}Resizer`,cls:`ag-resizer ag-resizer-${t}`}),y1e={tag:"div",cls:UW,children:[md("eTopLeft","topLeft"),md("eTop","top"),md("eTopRight","topRight"),md("eRight","right"),md("eBottomRight","bottomRight"),md("eBottom","bottom"),md("eBottomLeft","bottomLeft"),md("eLeft","left")]},$E=class extends ae{constructor(e,t){super(),this.element=e,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},t)}wireBeans(e){this.popupSvc=e.popupSvc,this.dragSvc=e.dragSvc}center(){const{clientHeight:e,clientWidth:t}=this.offsetParent,i=t/2-this.getWidth()/2,o=e/2-this.getHeight()/2;this.offsetElement(i,o)}initialisePosition(){if(this.positioned)return;const{centered:e,forcePopupParentAsOffsetParent:t,minWidth:i,width:o,minHeight:s,height:n,x:r,y:a}=this.config;this.offsetParent||this.setOffsetParent();let l=0,c=0;const d=Jn(this.element);if(d){const u=this.findBoundaryElement(),h=window.getComputedStyle(u);if(h.minWidth!=null){const p=u.offsetWidth-this.element.offsetWidth;c=parseInt(h.minWidth,10)-p}if(h.minHeight!=null){const p=u.offsetHeight-this.element.offsetHeight;l=parseInt(h.minHeight,10)-p}}if(this.minHeight=s||l,this.minWidth=i||c,o&&this.setWidth(o),n&&this.setHeight(n),(!o||!n)&&this.refreshSize(),e)this.center();else if(r||a)this.offsetElement(r,a);else if(d&&t){let u=this.boundaryEl,h=!0;if(u||(u=this.findBoundaryElement(),h=!1),u){const p=parseFloat(u.style.top),g=parseFloat(u.style.left);h?this.offsetElement(isNaN(g)?0:g,isNaN(p)?0:p):this.setPosition(g,p)}}this.positioned=!!this.offsetParent}isPositioned(){return this.positioned}getPosition(){return this.position}setMovable(e,t){if(!this.config.popup||e===this.movable)return;this.movable=e;const i=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragSvc?.addDragSource(i),this.moveElementDragListener=i):(this.dragSvc?.removeDragSource(i),this.moveElementDragListener=void 0)}setResizable(e){if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),typeof e=="boolean"){if(e===!1)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach(t=>{const o=!!e[t],s=this.getResizerElement(t),n={dragStartPixels:0,eElement:s,onDragStart:r=>this.onResizeStart(r,t),onDragging:this.onResize.bind(this),onDragStop:r=>this.onResizeEnd(r,t)};(o||!this.isAlive()&&!o)&&(o?(this.dragSvc?.addDragSource(n),this.resizeListeners.push(n),s.style.pointerEvents="all"):s.style.pointerEvents="none",this.resizable[t]=o)})}removeSizeFromEl(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")}restoreLastSize(){this.element.style.flex="0 0 auto";const{height:e,width:t}=this.lastSize;t!==-1&&(this.element.style.width=`${t}px`),e!==-1&&(this.element.style.height=`${e}px`)}getHeight(){return this.element.offsetHeight}setHeight(e){const{popup:t}=this.config,i=this.element;let o=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)by(i,e),e=N$(i),o=!0;else if(e=Math.max(this.minHeight,e),this.positioned){const s=this.getAvailableHeight();s&&e>s&&(e=s)}this.getHeight()!==e&&(o?(i.style.maxHeight="unset",i.style.minHeight="unset"):t?by(i,e):(i.style.height=`${e}px`,i.style.flex="0 0 auto",this.lastSize.height=typeof e=="number"?e:parseFloat(e)))}getAvailableHeight(){const{popup:e,forcePopupParentAsOffsetParent:t}=this.config;this.positioned||this.initialisePosition();const{clientHeight:i}=this.offsetParent;if(!i)return null;const o=this.element.getBoundingClientRect(),s=this.offsetParent.getBoundingClientRect(),n=e?this.position.y:o.top,r=e?0:s.top;let a=0;if(t){const c=this.element.parentElement;if(c){const{bottom:d}=c.getBoundingClientRect();a=d-o.bottom}}return i+r-n-a}getWidth(){return this.element.offsetWidth}setWidth(e){const t=this.element,{popup:i}=this.config;let o=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)wl(t,e),e=vx(t),o=!0;else if(this.positioned){e=Math.max(this.minWidth,e);const{clientWidth:s}=this.offsetParent,n=i?this.position.x:this.element.getBoundingClientRect().left;s&&e+n>s&&(e=s-n)}this.getWidth()!==e&&(o?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?wl(t,e):(t.style.width=`${e}px`,t.style.flex=" unset",this.lastSize.width=typeof e=="number"?e:parseFloat(e)))}offsetElement(e=0,t=0){const{forcePopupParentAsOffsetParent:i}=this.config,o=i?this.boundaryEl:this.element;o&&(this.popupSvc?.positionPopup({ePopup:o,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:e,y:t})}),this.setPosition(parseFloat(o.style.left),parseFloat(o.style.top)))}constrainSizeToAvailableHeight(e){if(!this.config.forcePopupParentAsOffsetParent)return;const t=()=>{const i=this.getAvailableHeight();this.element.style.setProperty("max-height",`${i}px`)};e&&this.popupSvc?this.resizeObserverSubscriber=Fu(this.beans,this.popupSvc?.getPopupParent(),t):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}setPosition(e,t){this.position.x=e,this.position.y=t}updateDragStartPosition(e,t){this.dragStartPosition={x:e,y:t}}calculateMouseMovement(e){const{e:t,isLeft:i,isTop:o,anywhereWithin:s,topBuffer:n}=e,r=t.clientX-this.dragStartPosition.x,a=t.clientY-this.dragStartPosition.y,l=this.shouldSkipX(t,!!i,!!s,r)?0:r,c=this.shouldSkipY(t,!!o,n,a)?0:a;return{movementX:l,movementY:c}}shouldSkipX(e,t,i,o){const s=this.element.getBoundingClientRect(),n=this.offsetParent.getBoundingClientRect(),r=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:s.left;let l=a<=0&&n.left>=e.clientX||n.right<=e.clientX&&n.right<=r.right;return l?!0:(t?l=o<0&&e.clientX>a+n.left||o>0&&e.clientX<a+n.left:i?l=o<0&&e.clientX>r.right||o>0&&e.clientX<a+n.left:l=o<0&&e.clientX>r.right||o>0&&e.clientX<r.right,l)}shouldSkipY(e,t,i=0,o){const s=this.element.getBoundingClientRect(),n=this.offsetParent.getBoundingClientRect(),r=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.y:s.top;let l=a<=0&&n.top>=e.clientY||n.bottom<=e.clientY&&n.bottom<=r.bottom;return l?!0:(t?l=o<0&&e.clientY>a+n.top+i||o>0&&e.clientY<a+n.top:l=o<0&&e.clientY>r.bottom||o>0&&e.clientY<r.bottom,l)}createResizeMap(){const e=t=>({element:this.element.querySelector(`[data-ref=${t}Resizer]`)});this.resizerMap={topLeft:e("eTopLeft"),top:e("eTop"),topRight:e("eTopRight"),right:e("eRight"),bottomRight:e("eBottomRight"),bottom:e("eBottom"),bottomLeft:e("eBottomLeft"),left:e("eLeft")}}addResizers(){if(this.resizersAdded)return;const e=this.element;e&&(e.appendChild(Ut(y1e)),this.createResizeMap(),this.resizersAdded=!0)}removeResizers(){this.resizerMap=void 0;const e=this.element.querySelector(`.${UW}`);e&&this.element.removeChild(e),this.resizersAdded=!1}getResizerElement(e){return this.resizerMap[e].element}onResizeStart(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[t].element.classList.add("ag-active");const{popup:i,forcePopupParentAsOffsetParent:o}=this.config;!i&&!o&&this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)}getSiblings(){const t=this.element.parentElement;return t?Array.prototype.slice.call(t.children).filter(i=>!i.classList.contains("ag-hidden")):null}getMinSizeOfSiblings(){const e=this.getSiblings()||[];let t=0,i=0;for(let o=0;o<e.length;o++){const s=e[o],n=!!s.style.flex&&s.style.flex!=="0 0 auto";if(s===this.element)continue;let r=this.minHeight||0,a=this.minWidth||0;if(n){const l=window.getComputedStyle(s);l.minHeight&&(r=parseInt(l.minHeight,10)),l.minWidth&&(a=parseInt(l.minWidth,10))}else r=s.offsetHeight,a=s.offsetWidth;t+=r,i+=a}return{height:t,width:i}}applySizeToSiblings(e){let t=null;const i=this.getSiblings();if(i){for(let o=0;o<i.length;o++){const s=i[o];s!==t&&(e?s.style.height=`${s.offsetHeight}px`:s.style.width=`${s.offsetWidth}px`,s.style.flex="0 0 auto",s===this.element&&(t=i[o+1]))}t&&(t.style.removeProperty("height"),t.style.removeProperty("min-height"),t.style.removeProperty("max-height"),t.style.flex="1 1 auto")}}isResizable(){return Object.values(this.resizable).some(e=>e)}onResize(e){if(!this.isResizing||!this.currentResizer)return;const{popup:t,forcePopupParentAsOffsetParent:i}=this.config,{isTop:o,isRight:s,isBottom:n,isLeft:r}=this.currentResizer,a=s||r,l=n||o,{movementX:c,movementY:d}=this.calculateMouseMovement({e,isLeft:r,isTop:o}),u=this.position.x,h=this.position.y;let p=0,g=0;if(a&&c){const f=r?-1:1,y=this.getWidth(),v=y+c*f;let b=!1;r&&(p=y-v,(u+p<=0||v<=this.minWidth)&&(b=!0,p=0)),b||this.setWidth(v)}if(l&&d){const f=o?-1:1,y=this.getHeight(),v=y+d*f;let b=!1;o?(g=y-v,(h+g<=0||v<=this.minHeight)&&(b=!0,g=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&y<v&&this.getMinSizeOfSiblings().height+v>this.element.parentElement.offsetHeight&&(b=!0),b||this.setHeight(v)}this.updateDragStartPosition(e.clientX,e.clientY),((t||i)&&p||g)&&this.offsetElement(u+p,h+g)}onResizeEnd(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null,this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchLocalEvent({type:"resize"})}refreshSize(){const e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))}onMoveStart(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)}onMove(e){if(!this.isMoving)return;const{x:t,y:i}=this.position;let o;this.config.calculateTopBuffer&&(o=this.config.calculateTopBuffer());const{movementX:s,movementY:n}=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:o});this.offsetElement(t+s,i+n),this.updateDragStartPosition(e.clientX,e.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 e=this.element;for(;e;){if(window.getComputedStyle(e).position!=="static")return e;e=e.parentElement}return this.element}clearResizeListeners(){for(;this.resizeListeners.length;){const e=this.resizeListeners.pop();this.dragSvc?.removeDragSource(e)}}destroy(){super.destroy(),this.moveElementDragListener&&this.dragSvc?.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()}},KW="ag-focus-managed",pm=class extends ae{constructor(e,t={}){super(),this.eFocusable=e,this.callbacks=t,this.callbacks={shouldStopEventPropagation:()=>!1,onTabKeyDown:i=>{if(i.defaultPrevented)return;const o=Yl(this.beans,this.eFocusable,!1,i.shiftKey);o&&(o.focus(),i.preventDefault())},...t}}postConstruct(){const{eFocusable:e,callbacks:{onFocusIn:t,onFocusOut:i}}=this;e.classList.add(KW),this.addKeyDownListeners(e),t&&this.addManagedElementListeners(e,{focusin:t}),i&&this.addManagedElementListeners(e,{focusout:i})}addKeyDownListeners(e){this.addManagedElementListeners(e,{keydown:t=>{if(t.defaultPrevented||Ta(t))return;const{callbacks:i}=this;if(i.shouldStopEventPropagation(t)){Fc(t);return}t.key===Z.TAB?i.onTabKeyDown(t):i.handleKeyDown&&i.handleKeyDown(t)}})}},YW={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 XW(e,t){const{debounceMs:i}=e;return Ex(e)?(i!=null&&me(71),0):i??t}function Ex(e){return(e.buttons?.indexOf("apply")??-1)>=0}var RM=class extends Qe{constructor(e){super(),this.filterNameKey=e,this.applyActive=!1,this.hidePopup=null,this.debouncePending=!1,this.appliedModel=null,this.eFilterBody=fe,this.buttonListeners=[],this.defaultDebounceMs=0}postConstruct(){this.resetTemplate(),this.createManagedBean(new pm(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new $E(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)}handleKeyDown(e){}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return!!this.appliedModel}resetTemplate(e){let t=this.getGui();t?.removeEventListener("submit",this.onFormSubmit);const i={tag:"form",cls:"ag-filter-wrapper",children:[{tag:"div",ref:"eFilterBody",cls:`ag-filter-body-wrapper ag-${this.getCssIdentifier()}-body-wrapper`,children:[this.createBodyTemplate()]}]};this.setTemplate(i,this.getAgComponents(),e),t=this.getGui(),t?.addEventListener("submit",this.onFormSubmit)}isReadOnly(){return!!this.params.readOnly}init(e){this.setParams(e),this.resetUiToDefaults(!0).then(()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}setParams(e){this.params=e,this.applyActive=Ex(e),this.resetButtonsPanel(e)}updateParams(e){this.params=e,this.applyActive=Ex(e),this.resetUiToActiveModel(this.getModel(),()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}resetButtonsPanel(e,t){const{buttons:i,readOnly:o}=t??{},{buttons:s,readOnly:n}=e;if(o===n&&Cv(i,s))return;const r=s&&s.length>0&&!this.isReadOnly();if(this.eButtonsPanel?(Qs(this.eButtonsPanel),this.buttonListeners.forEach(c=>c()),this.buttonListeners=[]):r&&(this.eButtonsPanel=Ut({tag:"div",cls:"ag-filter-apply-panel"})),!r){this.eButtonsPanel&&Pr(this.eButtonsPanel);return}const a=document.createDocumentFragment(),l=c=>{let d;const u=c?this.translate(`${c}Filter`):void 0;switch(c){case"apply":d=g=>this.onBtApply(!1,!1,g);break;case"clear":d=()=>this.onBtClear();break;case"reset":d=()=>this.onBtReset();break;case"cancel":d=g=>{this.onBtCancel(g)};break;default:me(75);return}const p=wM(`<button
|
|
29
29
|
type="${c==="apply"?"submit":"button"}"
|