@deephaven/code-studio 0.108.0 → 0.108.1-beta.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/build/assets/{AppRoot-BHX6rR80.js → AppRoot-jU8aRAi9.js} +4 -4
- package/build/assets/{AppRoot-BHX6rR80.js.map → AppRoot-jU8aRAi9.js.map} +1 -1
- package/build/assets/{Chart-BBkJjT2H.js → Chart-DnBG6nlV.js} +2 -2
- package/build/assets/{Chart-BBkJjT2H.js.map → Chart-DnBG6nlV.js.map} +1 -1
- package/build/assets/{ControlType-D_cd-7R2.js → ControlType-DRmb7fzB.js} +4 -4
- package/build/assets/{ControlType-D_cd-7R2.js.map → ControlType-DRmb7fzB.js.map} +1 -1
- package/build/assets/{FontBootstrap-BeNbZEcS.js → FontBootstrap-3v1k6EPU.js} +2 -2
- package/build/assets/{FontBootstrap-BeNbZEcS.js.map → FontBootstrap-3v1k6EPU.js.map} +1 -1
- package/build/assets/{FormatterUtils-BFWPNsZt.js → FormatterUtils-9rncw5Wy.js} +2 -2
- package/build/assets/{FormatterUtils-BFWPNsZt.js.map → FormatterUtils-9rncw5Wy.js.map} +1 -1
- package/build/assets/{Grid-DGP3t0Td.js → Grid-BtxQU7Rt.js} +2 -2
- package/build/assets/{Grid-DGP3t0Td.js.map → Grid-BtxQU7Rt.js.map} +1 -1
- package/build/assets/{GridTokenMouseHandler-D9kJ4M0e.js → GridTokenMouseHandler-HKpbB91t.js} +2 -2
- package/build/assets/{GridTokenMouseHandler-D9kJ4M0e.js.map → GridTokenMouseHandler-HKpbB91t.js.map} +1 -1
- package/build/assets/{IrisGrid-BWWA8TJL.js → IrisGrid-DwxZ_CFl.js} +2 -2
- package/build/assets/{IrisGrid-BWWA8TJL.js.map → IrisGrid-DwxZ_CFl.js.map} +1 -1
- package/build/assets/IrisGridModel-BLMs8eQH.js +3 -0
- package/build/assets/IrisGridModel-BLMs8eQH.js.map +1 -0
- package/build/assets/{IrisGridShortcuts-ox1f30im.js → IrisGridShortcuts-CNZfuqcn.js} +2 -2
- package/build/assets/{IrisGridShortcuts-ox1f30im.js.map → IrisGridShortcuts-CNZfuqcn.js.map} +1 -1
- package/build/assets/{IrisGridThemeProvider-BMLRqYBk.js → IrisGridThemeProvider-7x914MPE.js} +2 -2
- package/build/assets/{IrisGridThemeProvider-BMLRqYBk.js.map → IrisGridThemeProvider-7x914MPE.js.map} +1 -1
- package/build/assets/{LocalWorkspaceStorage-CQUtDXPW.js → LocalWorkspaceStorage-Dta5awl7.js} +2 -2
- package/build/assets/{LocalWorkspaceStorage-CQUtDXPW.js.map → LocalWorkspaceStorage-Dta5awl7.js.map} +1 -1
- package/build/assets/{MarkdownEditor-DtVvr9WS.js → MarkdownEditor-BgIXdpvl.js} +2 -2
- package/build/assets/{MarkdownEditor-DtVvr9WS.js.map → MarkdownEditor-BgIXdpvl.js.map} +1 -1
- package/build/assets/{MarkdownNotebook-q20o8eYX.js → MarkdownNotebook-BvdeQxKe.js} +2 -2
- package/build/assets/{MarkdownNotebook-q20o8eYX.js.map → MarkdownNotebook-BvdeQxKe.js.map} +1 -1
- package/build/assets/{MissingPartitionError-Dxv9KxQs.js → MissingPartitionError-umDjfBke.js} +2 -2
- package/build/assets/{MissingPartitionError-Dxv9KxQs.js.map → MissingPartitionError-umDjfBke.js.map} +1 -1
- package/build/assets/{StyleGuideRoot-k4PV1Fpy.js → StyleGuideRoot-CP_J9HU3.js} +2 -2
- package/build/assets/{StyleGuideRoot-k4PV1Fpy.js.map → StyleGuideRoot-CP_J9HU3.js.map} +1 -1
- package/build/assets/{index-DMDRUwm0.js → index-B28-VEVu.js} +3 -3
- package/build/assets/{index-DMDRUwm0.js.map → index-B28-VEVu.js.map} +1 -1
- package/build/assets/{index-DURkWcJK.js → index-BI08WEr4.js} +4 -4
- package/build/assets/{index-DURkWcJK.js.map → index-BI08WEr4.js.map} +1 -1
- package/build/assets/index-DzityFxF.js +2 -0
- package/build/assets/index-DzityFxF.js.map +1 -0
- package/build/index.html +1 -1
- package/package.json +31 -31
- package/build/assets/IrisGridModel-CadrI4-V.js +0 -3
- package/build/assets/IrisGridModel-CadrI4-V.js.map +0 -1
- package/build/assets/index-CMmdx_07.js +0 -2
- package/build/assets/index-CMmdx_07.js.map +0 -1
package/build/index.html
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<link rel="manifest" href="./manifest.json" />
|
|
13
13
|
<link rel="icon" href="./favicon-cc-app.svg" />
|
|
14
14
|
<title>Deephaven</title>
|
|
15
|
-
<script type="module" crossorigin src="./assets/index-
|
|
15
|
+
<script type="module" crossorigin src="./assets/index-B28-VEVu.js"></script>
|
|
16
16
|
<link rel="modulepreload" crossorigin href="./assets/monaco-CsU3t3B1.js">
|
|
17
17
|
<link rel="modulepreload" crossorigin href="./assets/helpers-BosuxZz1.js">
|
|
18
18
|
<link rel="modulepreload" crossorigin href="./assets/vendor-C0qKObwo.js">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/code-studio",
|
|
3
|
-
"version": "0.108.
|
|
3
|
+
"version": "0.108.1-beta.1+728ad95f",
|
|
4
4
|
"description": "Deephaven Code Studio",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -12,31 +12,31 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@adobe/react-spectrum": "3.38.0",
|
|
15
|
-
"@deephaven/app-utils": "^0.108.
|
|
16
|
-
"@deephaven/auth-plugins": "^0.108.
|
|
17
|
-
"@deephaven/chart": "^0.108.
|
|
18
|
-
"@deephaven/components": "^0.108.
|
|
19
|
-
"@deephaven/console": "^0.108.
|
|
20
|
-
"@deephaven/dashboard": "^0.108.
|
|
21
|
-
"@deephaven/dashboard-core-plugins": "^0.108.
|
|
22
|
-
"@deephaven/file-explorer": "^0.108.
|
|
23
|
-
"@deephaven/filters": "^0.108.
|
|
24
|
-
"@deephaven/golden-layout": "^0.108.
|
|
25
|
-
"@deephaven/grid": "^0.108.
|
|
26
|
-
"@deephaven/icons": "^0.108.
|
|
27
|
-
"@deephaven/iris-grid": "^0.108.
|
|
28
|
-
"@deephaven/jsapi-bootstrap": "^0.108.
|
|
29
|
-
"@deephaven/jsapi-components": "^0.108.
|
|
30
|
-
"@deephaven/jsapi-shim": "^0.108.
|
|
15
|
+
"@deephaven/app-utils": "^0.108.1-beta.1+728ad95f",
|
|
16
|
+
"@deephaven/auth-plugins": "^0.108.1-beta.1+728ad95f",
|
|
17
|
+
"@deephaven/chart": "^0.108.1-beta.1+728ad95f",
|
|
18
|
+
"@deephaven/components": "^0.108.1-beta.1+728ad95f",
|
|
19
|
+
"@deephaven/console": "^0.108.1-beta.1+728ad95f",
|
|
20
|
+
"@deephaven/dashboard": "^0.108.1-beta.1+728ad95f",
|
|
21
|
+
"@deephaven/dashboard-core-plugins": "^0.108.1-beta.1+728ad95f",
|
|
22
|
+
"@deephaven/file-explorer": "^0.108.1-beta.1+728ad95f",
|
|
23
|
+
"@deephaven/filters": "^0.108.1-beta.1+728ad95f",
|
|
24
|
+
"@deephaven/golden-layout": "^0.108.1-beta.1+728ad95f",
|
|
25
|
+
"@deephaven/grid": "^0.108.1-beta.1+728ad95f",
|
|
26
|
+
"@deephaven/icons": "^0.108.1-beta.1+728ad95f",
|
|
27
|
+
"@deephaven/iris-grid": "^0.108.1-beta.1+728ad95f",
|
|
28
|
+
"@deephaven/jsapi-bootstrap": "^0.108.1-beta.1+728ad95f",
|
|
29
|
+
"@deephaven/jsapi-components": "^0.108.1-beta.1+728ad95f",
|
|
30
|
+
"@deephaven/jsapi-shim": "^0.108.1-beta.1+728ad95f",
|
|
31
31
|
"@deephaven/jsapi-types": "^1.0.0-dev0.37.2",
|
|
32
|
-
"@deephaven/jsapi-utils": "^0.108.
|
|
33
|
-
"@deephaven/log": "^0.108.
|
|
34
|
-
"@deephaven/plugin": "^0.108.
|
|
35
|
-
"@deephaven/pouch-storage": "^0.108.
|
|
36
|
-
"@deephaven/react-hooks": "^0.108.
|
|
37
|
-
"@deephaven/redux": "^0.108.
|
|
38
|
-
"@deephaven/storage": "^0.108.
|
|
39
|
-
"@deephaven/utils": "^0.108.
|
|
32
|
+
"@deephaven/jsapi-utils": "^0.108.1-beta.1+728ad95f",
|
|
33
|
+
"@deephaven/log": "^0.108.1-beta.1+728ad95f",
|
|
34
|
+
"@deephaven/plugin": "^0.108.1-beta.1+728ad95f",
|
|
35
|
+
"@deephaven/pouch-storage": "^0.108.1-beta.1+728ad95f",
|
|
36
|
+
"@deephaven/react-hooks": "^0.108.1-beta.1+728ad95f",
|
|
37
|
+
"@deephaven/redux": "^0.108.1-beta.1+728ad95f",
|
|
38
|
+
"@deephaven/storage": "^0.108.1-beta.1+728ad95f",
|
|
39
|
+
"@deephaven/utils": "^0.108.1-beta.1+728ad95f",
|
|
40
40
|
"@fortawesome/fontawesome-svg-core": "^6.2.1",
|
|
41
41
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
42
42
|
"bowser": "^2.11.0",
|
|
@@ -74,15 +74,15 @@
|
|
|
74
74
|
"update-licenses": "npm-license > licenses.txt"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@deephaven/eslint-config": "^0.108.
|
|
78
|
-
"@deephaven/mocks": "^0.108.
|
|
79
|
-
"@deephaven/prettier-config": "^0.108.
|
|
80
|
-
"@deephaven/stylelint-config": "^0.108.
|
|
81
|
-
"@deephaven/test-utils": "^0.108.
|
|
77
|
+
"@deephaven/eslint-config": "^0.108.1-beta.1+728ad95f",
|
|
78
|
+
"@deephaven/mocks": "^0.108.1-beta.1+728ad95f",
|
|
79
|
+
"@deephaven/prettier-config": "^0.108.1-beta.1+728ad95f",
|
|
80
|
+
"@deephaven/stylelint-config": "^0.108.1-beta.1+728ad95f",
|
|
81
|
+
"@deephaven/test-utils": "^0.108.1-beta.1+728ad95f",
|
|
82
82
|
"autoprefixer": "^10.4.8"
|
|
83
83
|
},
|
|
84
84
|
"publishConfig": {
|
|
85
85
|
"access": "public"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "728ad95fe43ea966fb47632015572b5e901228d8"
|
|
88
88
|
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Chart-BBkJjT2H.js","./vendor-C0qKObwo.js","./helpers-BosuxZz1.js","./vendor-BQ4VJl3N.css","./index-DMDRUwm0.js","./monaco-CsU3t3B1.js","./monaco-CgHo24-M.css","./index-CDBsexMR.css","./Plotly-BRvRG_XS.js","./plotly-3rFF6MGX.js","./ControlType-D_cd-7R2.js","./ControlType-CsvY3566.css","./DownsamplingError-CG8EVVqo.js","./useMergeRef-DqmYpRMS.js","./FormatterUtils-BFWPNsZt.js","./Chart-CTDcF-lR.css","./IrisGrid-BWWA8TJL.js","./MissingPartitionError-Dxv9KxQs.js","./IrisGridThemeProvider-BMLRqYBk.js","./IrisGridShortcuts-ox1f30im.js","./IrisGridShortcuts-CJtrNKDP.css","./GridTokenMouseHandler-D9kJ4M0e.js","./GridTokenMouseHandler-DTMTgCrk.css","./IrisGridThemeProvider-CPQIFFFz.css","./Grid-DGP3t0Td.js","./Grid-DPUNpG8i.css","./IrisGrid-D9d4SPGX.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{V as ye,bC as Te,J as k,M as we,N as ae,r as Z,bz as be,ar as X,bJ as Se,a1 as Ae,H as Oe}from"./vendor-C0qKObwo.js";import{y as Ce,bw as Re,K as de,L as Ie,e as z,be as B}from"./index-DMDRUwm0.js";import{_ as me}from"./monaco-CsU3t3B1.js";import{ab as Ne,c as ee,an as H}from"./ControlType-D_cd-7R2.js";var ge=ye.forwardRef((o,e)=>{var{children:t,className:r,disabled:n,id:a,isLinked:i,isLinkedSource:l,isInvalid:s,onClick:u,onMouseEnter:v,onMouseLeave:c,style:f,"data-testid":g}=o,{UNSAFE_className:m}=Te({},"button");return k.jsxs("button",{ref:e,type:"button",className:we("btn-socketed",{"btn-socketed-linked":i!==void 0&&i||l},{"btn-socketed-linked-source":l},{"is-invalid":s},r,m),id:a,onClick:u,onMouseEnter:v,onMouseLeave:c,style:f,disabled:n,"data-testid":g,children:[t,k.jsx(ae,{icon:Ce,className:"linked btn-socketed-icon",transform:"down-1"}),k.jsx(ae,{icon:Re,className:"is-invalid btn-socketed-icon"})]})});ge.displayName="SocketedButton";ge.defaultProps={children:void 0,className:"",disabled:!1,id:void 0,isLinked:!1,isLinkedSource:!1,isInvalid:!1,onClick:void 0,onMouseEnter:void 0,onMouseLeave:void 0,style:void 0,"data-testid":void 0};function oe(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function Pe(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?oe(Object(t),!0).forEach(function(r){De(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):oe(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function De(o,e,t){return(e=Le(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function Le(o){var e=xe(o,"string");return typeof e=="symbol"?e:e+""}function xe(o,e){if(typeof o!="object"||!o)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var r=t.call(o,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}var Me=Z.lazy(()=>me(()=>import("./Chart-BBkJjT2H.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url));function Tt(o){return k.jsx(Z.Suspense,{fallback:k.jsx(de,{}),children:k.jsx(Me,Pe({},o))})}function le(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function q(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?le(Object(t),!0).forEach(function(r){x(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):le(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function x(o,e,t){return(e=Fe(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function Fe(o){var e=ke(o,"string");return typeof e=="symbol"?e:e+""}function ke(o,e){if(typeof o!="object"||!o)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var r=t.call(o,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}var $=Ie.module("ChartUtils"),ie="io.deephaven.time.DateTime",He=36e5,je=1e6;function _e(o){return o.asDate!==void 0}function Be(o){return o.asNumber!==void 0}function ue(o){return o.dhTimeZone!==void 0}function We(o){return o!=null&&o.range!=null&&(o.autorange===!1||o.autorange===void 0)}function Ve(){var o=document.createElement("canvas"),e=o.getContext("webgl")||o.getContext("experimental-webgl");return e!=null&&e instanceof WebGLRenderingContext}var Xe=Ve();class d{static getPlotlyErrorBars(e,t,r){var n=r.map((i,l)=>i-e[l]),a=t.map((i,l)=>e[l]-i);return{type:"data",symmetric:!1,array:n,arrayminus:a}}static convertNumberPrefix(e){return e.replace(/\u00A4\u00A4/g,"USD").replace(/\u00A4/g,"$")}static getPlotlyNumberFormat(e,t,r){if(r==null||r==="")return null;var n=r.split(";"),a=n[0].match(/^([^#,0.]*)([#,]*)([0,]*)(\.?)(0*)(#*)(E?0*)(%?)(.*)/);z(a);var[,i,l,s,,u,v,c,f,g]=a,m=s.replace(",","").length,E=l.indexOf(",")>=0||s.indexOf(",")>=0,h=E?",":"",y=c!=null&&c!==""?"e":"f",A=f!==""?f:y,w=u.length+v.length,S="",b="0".concat(m).concat(h,".").concat(w).concat(S).concat(A),O=d.convertNumberPrefix(i),N=d.convertNumberPrefix(g);return{tickformat:b,tickprefix:O,ticksuffix:N,automargin:!0}}static addTickSpacing(e,t,r){var{gapBetweenMajorTicks:n}=t;if(n!=null&&n>0){var a=e||{},i=n;return r&&(i=n/je),t.log&&(i=Math.log(i)),a.tickmode="linear",a.dtick=i,a}return e}static getSourceForAxis(e,t){for(var r=0;r<e.series.length;r+=1)for(var n=e.series[r],a=0;a<n.sources.length;a+=1){var i=n.sources[a];if(i.axis===t)return i}return null}static getSeriesVisibility(e,t){return t!=null&&t.hiddenSeries!=null&&t.hiddenSeries.includes(e)?"legendonly":!0}static getHiddenLabels(e){return e!=null&&e.hiddenSeries?[...e.hiddenSeries]:[]}static makeSeriesData(e,t,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:d.ORIENTATION.VERTICAL;return{type:e,mode:t,name:r,orientation:a,showlegend:n??void 0}}static getMarkerSymbol(e){switch(e){case"SQUARE":return"square";case"CIRCLE":return"circle";case"DIAMOND":return"diamond";case"UP_TRIANGLE":return"triangle-up";case"DOWN_TRIANGLE":return"triangle-down";case"RIGHT_TRIANGLE":return"triangle-right";case"LEFT_TRIANGLE":return"triangle-left";case"ELLIPSE":case"HORIZONTAL_RECTANGLE":case"VERTICAL_RECTANGLE":default:throw new Error("Unrecognized shape ".concat(e))}}static getAllAxes(e){return e.charts.reduce((t,r)=>[...t,...r.axes],[])}static getAxisTypeMap(e){var t=d.getAllAxes(e);return d.groupArray(t,"type")}static getChartForSeries(e,t){for(var{charts:r}=e,n=0;n<r.length;n+=1)for(var a=r[n],i=0;i<a.series.length;i+=1)if(t===a.series[i])return a;return null}static getLayoutRanges(e){for(var t={},r=Object.keys(e).filter(l=>l.indexOf("axis")>=0),n=0;n<r.length;n+=1){var a=r[n],i=e[a];We(i)&&(t[a]=[...i.range])}return t}static getAxisLayoutProperty(e,t){var r=t>0?"".concat(t+1):"";return"".concat(e??"","axis").concat(r)}static periodToDecimal(e){var t=e.split(":");return Number(t[0])+Number(t[1])/60}static decimalToPeriod(e){var t=Math.floor(e),r=Math.round((e-t)*60);return"".concat(t.toString().padStart(2,"0"),":").concat(r.toString().padStart(2,"0"))}static groupArray(e,t){return e.reduce((r,n)=>{var a,i=n[t],l=(a=r.get(i))!==null&&a!==void 0?a:[];return l.push(n),r.set(i,l),r},new Map)}static normalizeColorway(e){if(e!=null){if(Array.isArray(e))return e;if(typeof e=="string")return e.split(" ");$.warn("Unexpected colorway format: ".concat(e))}}static titleFromSettings(e){var{series:t,xAxis:r,title:n="".concat((t??[]).join(", ")," by ").concat(r)}=e;return n}static getTimeZoneDiff(e,t){return t?(e.standardOffset-t.standardOffset)/60:0}static createClosedRangesForPartialHoliday(e,t){var r=t.map(c=>[d.periodToDecimal(c.open),d.periodToDecimal(c.close)]);r.sort((c,f)=>c[0]-f[0]),r.length===0&&r.push([0,24]);var n=e.map(c=>[d.periodToDecimal(c.open),d.periodToDecimal(c.close)]);n.sort((c,f)=>c[0]-f[0]);for(var a=[],i=0;i<r.length;i+=1){for(var l=r[i],s=l[0],u=0;u<n.length;u+=1){var v=n[u];v[1]>s&&v[0]<l[1]&&(v[0]>s&&a.push([s,v[0]]),s=v[1])}s<l[1]&&a.push([s,l[1]])}return a}constructor(e){x(this,"dh",void 0),x(this,"daysOfWeek",void 0),this.dh=e,this.daysOfWeek=Object.freeze(e.calendar.DayOfWeek.values()),Ne(this)}getAxisFormats(e,t){for(var r=new Map,n={tickformat:null,ticksuffix:null},a=d.getAllAxes(e),i=d.groupArray(a,"type"),{charts:l}=e,s=0;s<l.length;s+=1)for(var u=l[s],v=0;v<u.series.length;v+=1)for(var c=u.series[v],{sources:f}=c,g=f.filter(P=>P.axis),m=0;m<g.length;m+=1){var E=g[m],{axis:h}=E,{type:y}=h,A=i.get(y);z(A);var w=A.indexOf(h),S=this.getAxisPropertyName(y);if(S!=null){var b=d.getAxisLayoutProperty(S,w);if(r.has(b))$.debug("".concat(b," already added."));else{$.debug("Adding ".concat(b," to axisFormats."));var O=this.getPlotlyAxisFormat(E,t);if(O===null)r.set(b,n);else{r.set(b,O);var{businessCalendar:N}=h;if(N!=null&&(O.rangebreaks=this.createRangeBreaksFromBusinessCalendar(N,t)),r.size===u.axes.length)return r}}}}return r}getPlotlyChartType(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,{dh:n}=this;switch(e){case n.plot.SeriesPlotStyle.SCATTER:case n.plot.SeriesPlotStyle.LINE:return!t&&Xe&&r?"scattergl":"scatter";case n.plot.SeriesPlotStyle.BAR:case n.plot.SeriesPlotStyle.STACKED_BAR:return"bar";case n.plot.SeriesPlotStyle.PIE:return"pie";case n.plot.SeriesPlotStyle.TREEMAP:return"treemap";case n.plot.SeriesPlotStyle.HISTOGRAM:return"histogram";case n.plot.SeriesPlotStyle.OHLC:return"ohlc";default:return}}getPlotlyChartMode(e,t,r){var{dh:n}=this,a=new Set;switch(e){case n.plot.SeriesPlotStyle.SCATTER:(t??!1)&&a.add(d.MODE_LINES),(r??!0)&&a.add(d.MODE_MARKERS);break;case n.plot.SeriesPlotStyle.LINE:(t??!0)&&a.add(d.MODE_LINES),(r??!1)&&a.add(d.MODE_MARKERS);break}return a.size>0?[...a].join("+"):void 0}getPlotlyProperty(e,t){var{dh:r}=this;switch(e){case r.plot.SeriesPlotStyle.PIE:switch(t){case r.plot.SourceType.X:return"labels";case r.plot.SourceType.Y:return"values"}break;case r.plot.SeriesPlotStyle.OHLC:switch(t){case r.plot.SourceType.TIME:return"x"}break;case r.plot.SeriesPlotStyle.TREEMAP:switch(t){case r.plot.SourceType.X:return"ids";case r.plot.SourceType.Y:return"values";case r.plot.SourceType.LABEL:return"labels";case r.plot.SourceType.PARENT:return"parents";case r.plot.SourceType.COLOR:return"marker.colors"}break}switch(t){case r.plot.SourceType.X:return"x";case r.plot.SourceType.Y:return"y";case r.plot.SourceType.Z:return"z";case r.plot.SourceType.X_LOW:return"xLow";case r.plot.SourceType.X_HIGH:return"xHigh";case r.plot.SourceType.Y_LOW:return"yLow";case r.plot.SourceType.Y_HIGH:return"yHigh";case r.plot.SourceType.TIME:return"time";case r.plot.SourceType.OPEN:return"open";case r.plot.SourceType.HIGH:return"high";case r.plot.SourceType.LOW:return"low";case r.plot.SourceType.CLOSE:return"close";case r.plot.SourceType.SHAPE:return"shape";case r.plot.SourceType.SIZE:return"size";case r.plot.SourceType.LABEL:return"label";case r.plot.SourceType.COLOR:return"color";case r.plot.SourceType.PARENT:return"parent";case r.plot.SourceType.HOVER_TEXT:return"hovertext";case r.plot.SourceType.TEXT:return"text";default:throw new Error("Unrecognized source type: ".concat(t))}}getPlotlySeriesOrientation(e){var t,r,{dh:n}=this,{sources:a}=e;return a.length===2&&((t=a[0])===null||t===void 0||(r=t.axis)===null||r===void 0?void 0:r.type)===n.plot.AxisType.Y?d.ORIENTATION.HORIZONTAL:d.ORIENTATION.VERTICAL}makeSeriesDataFromSeries(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,{name:i,isLinesVisible:l,isShapesVisible:s,plotStyle:u,lineColor:v,shapeColor:c,sources:f,shape:g,shapeSize:m}=e,E=f.some(S=>{var b;return(b=S.axis)===null||b===void 0?void 0:b.businessCalendar}),h=this.getChartType(u,E,a),y=this.getPlotlyChartMode(u,l??void 0,s??void 0),A=this.getPlotlySeriesOrientation(e),w=d.makeSeriesData(h,y,i,n,A);return this.addSourcesToSeriesData(w,u,f,t),this.addStylingToSeriesData(w,u,v,c,g,m,r),w}addSourcesToSeriesData(e,t,r,n){for(var a=e,i=0;i<r.length;i+=1){var l=r[i],{axis:s,type:u}=l,v=this.getPlotlyProperty(t,u);be(a,v,[]);var c=s!=null?this.getAxisPropertyName(s.type):null;if(c!=null){var f=n.get(s.type);if(f){var g=f.indexOf(s),m=g>0?"".concat(g+1):"";a["".concat(c,"axis")]="".concat(c).concat(m)}}}}addStylingToSeriesData(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,{dh:s}=this,u=e;if(u.marker={line:{}},u.line={width:1},t===s.plot.SeriesPlotStyle.AREA?u.fill="tozeroy":t===s.plot.SeriesPlotStyle.STACKED_AREA?u.stackgroup="stack":t===s.plot.SeriesPlotStyle.STEP?u.line.shape="hv":t===s.plot.SeriesPlotStyle.HISTOGRAM?u.width=[]:t===s.plot.SeriesPlotStyle.PIE?u.textinfo="label+percent":t===s.plot.SeriesPlotStyle.TREEMAP&&(u.hoverinfo="text",u.textinfo="label+text",u.tiling={packing:"squarify",pad:0},u.textposition="middle center"),r!=null&&(t===s.plot.SeriesPlotStyle.BAR?u.marker.color=r:u.line.color=r),n!=null&&(u.marker.color=n),a!=null&&a.length>0)try{u.marker.symbol=d.getMarkerSymbol(a)}catch(v){$.warn("Unable to handle shape",a,":",v)}i!=null&&(u.marker.size=i*d.DEFAULT_MARKER_SIZE),l!=null&&t!==s.plot.SeriesPlotStyle.PIE&&(u.visible=l)}getChartType(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,{dh:n}=this;switch(e){case n.plot.SeriesPlotStyle.HISTOGRAM:return"bar";default:return this.getPlotlyChartType(e,t,r)}}getAxisPropertyName(e){var{dh:t}=this;switch(e){case t.plot.AxisType.X:return"x";case t.plot.AxisType.Y:return"y";default:return null}}getAxisSide(e){var{dh:t}=this;switch(e){case t.plot.AxisPosition.BOTTOM:return"bottom";case t.plot.AxisPosition.TOP:return"top";case t.plot.AxisPosition.LEFT:return"left";case t.plot.AxisPosition.RIGHT:return"right";default:return}}updateFigureAxes(e,t,r){for(var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,i=e,l=d.getAllAxes(t),s=0;s<t.charts.length;s+=1){var u=t.charts[s],v=r==null?void 0:r(u),c=this.getChartBounds(t,u,n,a);this.updateLayoutAxes(i,u.axes,l,n,a,c,v)}this.removeStaleAxes(i,l)}getChartBounds(e,t,r,n){var a,{dh:i}=this,{cols:l,rows:s}=e,{column:u,colspan:v,row:c,rowspan:f}=t,g=u+v,m=c+f,E=1/l,h=1/s,y=d.AXIS_SIZE_PX/r,A=d.AXIS_SIZE_PX/n,w={bottom:(s-m)*h+(m<s?A/2:0),top:(s-c)*h-(c>0?A/2:0),left:u*E+(u>0?y/2:0),right:g*E-(g<l?y/2:0)},S=d.groupArray(t.axes,"position"),b=(a=S.get(i.plot.AxisPosition.RIGHT))!==null&&a!==void 0?a:[];return b.length>0&&(r>0?w.right-=(w.right-w.left)*Math.max(0,Math.min(d.LEGEND_WIDTH_PX/r,d.MAX_LEGEND_SIZE)):w.right-=(w.right-w.left)*d.DEFAULT_AXIS_SIZE),w}getPlotlyDateFormat(e,t,r){var{dh:n}=this,a=r==null?void 0:r.replace("%","%%").replace(/S{9}/g,"%9f").replace(/S{8}/g,"%8f").replace(/S{7}/g,"%7f").replace(/S{6}/g,"%6f").replace(/S{5}/g,"%5f").replace(/S{4}/g,"%4f").replace(/S{3}/g,"%3f").replace(/S{2}/g,"%2f").replace(/S{1}/g,"%1f").replace(/y{4}/g,"%Y").replace(/y{2}/g,"%y").replace(/M{4}/g,"%B").replace(/M{3}/g,"%b").replace(/M{2}/g,"%m").replace(/M{1}/g,"%-m").replace(/E{4,}/g,"%A").replace(/E{1,}/g,"%a").replace(/d{2}/g,"%d").replace(/([^%]|^)d{1}/g,"$1%-d").replace(/H{2}/g,"%H").replace(/h{2}/g,"%I").replace(/h{1}/g,"%-I").replace(/m{2}/g,"%M").replace(/s{2}/g,"%S").replace("'T'","T").replace(" z",""),i,l=e==null?void 0:e.getColumnTypeFormatter(t);return l!=null&&ue(l)&&l.dhTimeZone!=null&&l.showTimeZone&&(i=n.i18n.DateTimeFormat.format(" z",new Date,l.dhTimeZone)),{tickformat:a,ticksuffix:i,automargin:!0}}getPlotlyAxisFormat(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,{dh:r}=this,{axis:n,columnType:a}=e,{formatPattern:i}=n,l=null;return ee.isDateType(a)?(l=this.getPlotlyDateFormat(t,a,i),l=d.addTickSpacing(l,n,!0)):ee.isNumberType(a)&&(l=d.getPlotlyNumberFormat(t,a,i),l=d.addTickSpacing(l,n,!1)),n.formatType===r.plot.AxisFormatType.CATEGORY&&(l?l.type="category":l={type:"category",tickformat:void 0,ticksuffix:void 0}),l}updateLayoutAxes(e,t,r){for(var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{left:0,top:0,right:1,bottom:1},l=arguments.length>6?arguments[6]:void 0,{dh:s}=this,u=n>0?Math.max(d.MIN_AXIS_SIZE,Math.min(d.AXIS_SIZE_PX/a,d.MAX_AXIS_SIZE)):d.DEFAULT_AXIS_SIZE,v=a>0?Math.max(d.MIN_AXIS_SIZE,Math.min(d.AXIS_SIZE_PX/n,d.MAX_AXIS_SIZE)):d.DEFAULT_AXIS_SIZE,c=e,f=d.groupArray(t,"position"),g=d.groupArray(t,"type"),m=[...g.keys()],E=d.groupArray(r,"type"),h=0;h<m.length;h+=1){var y=m[h],A=this.getAxisPropertyName(y);if(A!=null){var w=g.get(y),S=E.get(y),b=y===s.plot.AxisType.Y,O=b?a:n;z(w),z(S);for(var N=0;N<w.length;N+=1){var P=w[N],M=S.indexOf(P),F=d.getAxisLayoutProperty(A,M);c[F]==null&&(c[F]={});var R=c[F];if(R!=null){this.updateLayoutAxis(R,P,N,f,u,v,i);var{range:I,autorange:L}=R;if(l!=null&&I!==void 0&&(L===void 0||L===!1)){var W=l(P),[_,V]=W(I);$.debug("Setting downsample range",O,_,V),P.range(O,_,V)}else P.range(O)}}}}}removeStaleAxes(e,t){for(var r=e,n=d.groupArray(t,"type"),a=[...n.keys()],i=0;i<a.length;i+=1){var l=a[i],s=n.get(l);z(s);var u=s.length,v=this.getAxisPropertyName(l);if(v!=null)for(var c=d.getAxisLayoutProperty(v,u);r[c]!=null;)delete r[c],u+=1,c=d.getAxisLayoutProperty(v,u)}}updateLayoutAxis(e,t,r,n,a,i,l){var s,{dh:u}=this,v=t.type===u.plot.AxisType.Y,c=v?i:a,f=e,g=(s=t.label)!==null&&s!==void 0?s:"";if(f.title!==void 0&&typeof f.title!="string"?f.title.text=g:f.title={text:g},t.log&&(f.type="log"),f.side=this.getAxisSide(t.position),r>0){var m,E;f.overlaying=(m=this.getAxisPropertyName(t.type))!==null&&m!==void 0?m:void 0;var h=(E=n.get(t.position))!==null&&E!==void 0?E:[],y=h.indexOf(t);y>0&&(f.anchor="free",t.position===u.plot.AxisPosition.RIGHT?f.position=l.right+(y-h.length+1)*c:t.position===u.plot.AxisPosition.TOP?f.position=l.top+(y-h.length+1)*c:t.position===u.plot.AxisPosition.BOTTOM?f.position=l.bottom+(h.length-y+1)*c:t.position===u.plot.AxisPosition.LEFT&&(f.position=l.left+(h.length-y+1)*c))}else if(t.type===u.plot.AxisType.X){var A=n.get(u.plot.AxisPosition.LEFT)||[],w=n.get(u.plot.AxisPosition.RIGHT)||[],S=Math.max(l.left,l.left+(A.length-1)*i),b=Math.min(l.right-(w.length-1)*i,l.right);f.domain=[S,b]}else if(t.type===u.plot.AxisType.Y){var O=n.get(u.plot.AxisPosition.BOTTOM)||[],N=n.get(u.plot.AxisPosition.TOP)||[],P=Math.max(l.bottom,l.bottom+(O.length-1)*a),M=Math.min(l.top-(N.length-1)*a,l.top);f.domain=[P,M]}}createBoundsFromPeriods(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(e.length===0)return[];for(var r=e.map(s=>[(d.periodToDecimal(s.open)+t)%24,(d.periodToDecimal(s.close)+t)%24]).sort((s,u)=>s[0]-u[0]),n=[],a=0;a<r.length;a+=1){var i=r[a],l=r[(a+1)%r.length];n.push([i[1],l[0]])}return n}createBreaksFromPeriods(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=this.createBoundsFromPeriods(e,t);return r.map(n=>({pattern:"hour",bounds:n}))}createBoundsFromDays(e){var t=this.daysOfWeek.length;if(e.length===t)return[];for(var r=e.map(s=>this.daysOfWeek.indexOf(s)),n=new Set(r),a=new Set,i=0;i<t;i+=1)!n.has(i)&&n.has((i-1+t)%t)&&a.add(i);var l=[];return a.forEach(s=>{for(var u=0;u<t;u+=1){var v=(s+u)%t;if(n.has(v)){l.push([s,v]);return}}throw new Error("Unable to find open day for closed day ".concat(s,", businessDays: ").concat(e))}),l}createBreaksFromDays(e){var t=this.createBoundsFromDays(e);return t.map(r=>({pattern:"day of week",bounds:r}))}createRangeBreaksFromBusinessCalendar(e,t){var r=[],{businessPeriods:n,businessDays:a,holidays:i,timeZone:l}=e,s=t==null?void 0:t.getColumnTypeFormatter(ie),u;ue(s)&&(u=s.dhTimeZone);var v=d.getTimeZoneDiff(l,u);return i.length>0&&r.push(...this.createRangeBreakValuesFromHolidays(i,l,u,e)),r.push(...this.createBreaksFromPeriods(n,v)),r.push(...this.createBreaksFromDays(a)),r}createRangeBreakValuesFromHolidays(e,t,r,n){var a=[],i=[];return e.forEach(l=>{l.businessPeriods.length>0?i.push(...this.createPartialHoliday(l,t,r,n)):a.push(this.createFullHoliday(l,t,r))}),[{values:a},...i]}createFullHoliday(e,t,r){return this.adjustDateForTimeZone("".concat(e.date.toString()," 00:00:00.000000"),t,r)}createPartialHoliday(e,t,r,n){var a;if(e.businessPeriods.length===0)return[];var i=e.date.toString();if(n){var l=new Date(i).getDay(),s=n.businessDays.includes(this.daysOfWeek[l]);if(!s)return[]}for(var u=d.createClosedRangesForPartialHoliday(e.businessPeriods,(a=n==null?void 0:n.businessPeriods)!==null&&a!==void 0?a:[]),v=[],c=0;c<u.length;c+=1){var[f,g]=u[c];if(f!==g){var m=[this.adjustDateForTimeZone("".concat(i," ").concat(d.decimalToPeriod(f),":00.000000"),t,r)],E=He*(g-f);v.push({values:m,dvalue:E})}}return v}adjustDateForTimeZone(e,t,r){return r&&r.standardOffset!==t.standardOffset?this.unwrapValue(this.wrapValue(e,ie,t),r):e}makeFigureSettings(e,t){var{dh:r}=this,{series:n,xAxis:a,type:i}=e,l=d.titleFromSettings(e),s={formatType:"".concat(r.plot.AxisFormatType.NUMBER),type:"".concat(r.plot.AxisType.X),position:"".concat(r.plot.AxisPosition.BOTTOM)},u={formatType:"".concat(r.plot.AxisFormatType.NUMBER),type:"".concat(r.plot.AxisType.Y),position:"".concat(r.plot.AxisPosition.LEFT)};return{charts:[{chartType:"".concat(r.plot.ChartType.XY),axes:[s,u],series:(n??[]).map(v=>({plotStyle:"".concat(i),name:v,dataSources:[{type:"".concat(r.plot.SourceType.X),columnName:a??"",axis:s,table:t},{type:"".concat(r.plot.SourceType.Y),columnName:v,axis:u,table:t}]}))}],title:l}}unwrapValue(e,t){var{dh:r}=this;if(e!=null){if(_e(e))return r.i18n.DateTimeFormat.format(d.DATE_FORMAT,e,t);if(Be(e))return e.asNumber()}return e}wrapValue(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,{dh:n}=this;if(ee.isDateType(t)&&typeof e=="string"){var a=e,i=d.DATE_FORMAT.substr(0,e.length),l=n.i18n.DateTimeFormat.parse(i,a);if(!r)return l;var s="".concat(i," Z"),u=n.i18n.DateTimeFormat.format("Z",l,r),v=n.i18n.DateTimeFormat.parse(s,"".concat(a," ").concat(u)),c=n.i18n.DateTimeFormat.format("Z",v,r);return n.i18n.DateTimeFormat.parse(s,"".concat(a," ").concat(c))}return e}makeLayoutAxis(e,t){var{dh:r}=this,n={automargin:!0,gridcolor:t.gridcolor,linecolor:t.linecolor,rangeslider:{visible:!1},showline:!0,ticks:"outside",ticklen:5,tickcolor:t.paper_bgcolor,tickfont:{color:t.zerolinecolor},title:{font:{color:t.title_color}},legend:{font:{color:t.legend_color}}};return e===r.plot.AxisType.X?Object.assign(n,{showgrid:!0}):e===r.plot.AxisType.Y&&Object.assign(n,{zerolinecolor:t.zerolinecolor,zerolinewidth:2}),n}makeDefaultTemplate(e){var{error_band_line_color:t,ohlc_increasing:r,ohlc_decreasing:n,title_color:a,indicator_increasing:i,indicator_decreasing:l,indicator_gauge:s}=e;return{data:{bar:[{marker:{line:{color:"transparent"}}}],scatter:[{error_x:{color:t},error_y:{color:t}}],ohlc:[{increasing:{line:{color:r}},decreasing:{line:{color:n}}}],pie:[{outsidetextfont:{color:a}}],treemap:[{outsidetextfont:{color:a}}],indicator:[{title:{font:{color:a}},delta:{decreasing:{color:l},increasing:{color:i}},gauge:{bar:{color:s}}}]},layout:this.makeDefaultLayout(e)}}makeDefaultLayout(e){var{dh:t}=this,{paper_bgcolor:r,plot_bgcolor:n,title_color:a,coastline_color:i,land_color:l,ocean_color:s,lake_color:u,river_color:v}=e,c={paper_bgcolor:r,plot_bgcolor:n,autosize:!0,colorway:d.normalizeColorway(e==null?void 0:e.colorway),font:{family:"'Fira Sans', sans-serif",color:a},title:{font:{color:a},xanchor:"center",xref:"paper",yanchor:"top",pad:q({},d.DEFAULT_TITLE_PADDING),y:1},legend:{font:{color:a}},margin:q({},d.DEFAULT_MARGIN),xaxis:this.makeLayoutAxis(t.plot.AxisType.X,e),yaxis:this.makeLayoutAxis(t.plot.AxisType.Y,e),polar:{angularaxis:this.makeLayoutAxis(t.plot.AxisType.SHAPE,e),radialaxis:this.makeLayoutAxis(t.plot.AxisType.SHAPE,e),bgcolor:e.plot_bgcolor},scene:{xaxis:this.makeLayoutAxis(t.plot.AxisType.X,e),yaxis:this.makeLayoutAxis(t.plot.AxisType.Y,e),zaxis:this.makeLayoutAxis(null,e)},geo:{showcoastlines:!0,showframe:!1,showland:!0,showocean:!0,showlakes:!0,showrivers:!0,bgcolor:r,coastlinecolor:i,landcolor:l,oceancolor:s,lakecolor:u,rivercolor:v}};return c.datarevision=0,c}hydrateSettings(e){var{dh:t}=this;return q(q({},e),{},{type:e.type!=null?t.plot.SeriesPlotStyle[e.type]:void 0})}}x(d,"DEFAULT_AXIS_SIZE",.15);x(d,"MIN_AXIS_SIZE",.025);x(d,"MAX_AXIS_SIZE",.2);x(d,"AXIS_SIZE_PX",75);x(d,"LEGEND_WIDTH_PX",50);x(d,"MAX_LEGEND_SIZE",.25);x(d,"ORIENTATION",Object.freeze({HORIZONTAL:"h",VERTICAL:"v"}));x(d,"DATE_FORMAT","yyyy-MM-dd HH:mm:ss.SSSSSS");x(d,"DEFAULT_MARGIN",Object.freeze({l:60,r:50,t:30,b:60,pad:0}));x(d,"DEFAULT_TITLE_PADDING",Object.freeze({t:8}));x(d,"SUBTITLE_LINE_HEIGHT",25);x(d,"DEFAULT_MARKER_SIZE",6);x(d,"MODE_MARKERS","markers");x(d,"MODE_LINES","lines");function D(o,e,t){return(e=ze(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function ze(o){var e=$e(o,"string");return typeof e=="symbol"?e:e+""}function $e(o,e){if(typeof o!="object"||!o)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var r=t.call(o,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}class C{constructor(e){D(this,"dh",void 0),D(this,"listeners",void 0),D(this,"formatter",void 0),D(this,"renderOptions",void 0),D(this,"rect",void 0),D(this,"isDownsamplingDisabled",void 0),D(this,"title",void 0),this.dh=e,this.listeners=[],this.isDownsamplingDisabled=!1}getData(){return[]}getDefaultTitle(){return""}getLayout(){return{}}getFilterColumnMap(){return new Map}isFilterRequired(){return!1}setFilter(e){}close(){}setFormatter(e){this.formatter=e}setRenderOptions(e){this.renderOptions=e}setDownsamplingDisabled(e){this.isDownsamplingDisabled=e}setDimensions(e){this.rect=e}setTitle(e){this.title=e}subscribe(e){this.listeners.push(e)}unsubscribe(e){this.listeners=this.listeners.filter(t=>t!==e)}fireEvent(e){for(var t=0;t<this.listeners.length;t+=1)this.listeners[t](e)}fireUpdate(e){this.fireEvent(new CustomEvent(C.EVENT_UPDATED,{detail:e}))}fireDisconnect(){this.fireEvent(new CustomEvent(C.EVENT_DISCONNECT))}fireReconnect(){this.fireEvent(new CustomEvent(C.EVENT_RECONNECT))}fireDownsampleStart(e){this.fireEvent(new CustomEvent(C.EVENT_DOWNSAMPLESTARTED,{detail:e}))}fireDownsampleFinish(e){this.fireEvent(new CustomEvent(C.EVENT_DOWNSAMPLEFINISHED,{detail:e}))}fireDownsampleFail(e){this.fireEvent(new CustomEvent(C.EVENT_DOWNSAMPLEFAILED,{detail:e}))}fireDownsampleNeeded(e){this.fireEvent(new CustomEvent(C.EVENT_DOWNSAMPLENEEDED,{detail:e}))}fireLoadFinished(){this.fireEvent(new CustomEvent(C.EVENT_LOADFINISHED))}fireError(e){this.fireEvent(new CustomEvent(C.EVENT_ERROR,{detail:e}))}fireBlocker(e){this.fireEvent(new CustomEvent(C.EVENT_BLOCKER,{detail:e}))}fireBlockerClear(){this.fireEvent(new CustomEvent(C.EVENT_BLOCKER_CLEAR))}fireLayoutUpdated(e){this.fireEvent(new CustomEvent(C.EVENT_LAYOUT_UPDATED,{detail:e}))}}D(C,"EVENT_UPDATED","ChartModel.EVENT_UPDATED");D(C,"EVENT_DISCONNECT","ChartModel.EVENT_DISCONNECT");D(C,"EVENT_RECONNECT","ChartModel.EVENT_RECONNECT");D(C,"EVENT_DOWNSAMPLESTARTED","ChartModel.EVENT_DOWNSAMPLESTARTED");D(C,"EVENT_DOWNSAMPLEFINISHED","ChartModel.EVENT_DOWNSAMPLEFINISHED");D(C,"EVENT_DOWNSAMPLEFAILED","ChartModel.EVENT_DOWNSAMPLEFAILED");D(C,"EVENT_DOWNSAMPLENEEDED","ChartModel.EVENT_DOWNSAMPLENEEDED");D(C,"EVENT_LOADFINISHED","ChartModel.EVENT_LOADFINISHED");D(C,"EVENT_ERROR","ChartModel.EVENT_ERROR");D(C,"EVENT_BLOCKER","ChartModel.EVENT_BLOCKER");D(C,"EVENT_BLOCKER_CLEAR","ChartModel.EVENT_BLOCKER_CLEAR");D(C,"EVENT_LAYOUT_UPDATED","ChartModel.EVENT_LAYOUT_UPDATED");function se(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function Ye(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?se(Object(t),!0).forEach(function(r){Ze(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):se(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function Ze(o,e,t){return(e=Ke(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function Ke(o){var e=qe(o,"string");return typeof e=="symbol"?e:e+""}function qe(o,e){if(typeof o!="object"||!o)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var r=t.call(o,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}var Qe=Z.lazy(()=>me(()=>import("./IrisGrid-BWWA8TJL.js"),__vite__mapDeps([16,1,2,3,4,5,6,7,10,11,17,14,18,19,20,21,13,22,23,24,25,26]),import.meta.url)),Je=Z.forwardRef((o,e)=>k.jsx(Z.Suspense,{fallback:k.jsx(de,{}),children:k.jsx(Qe,Ye({ref:e},o))}));Je.displayName="LazyIrisGrid";function Ge(o){return(o==null?void 0:o.hasExpandableRows)!==void 0}function Y(o,e,t){return(e=Ue(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function Ue(o){var e=et(o,"string");return typeof e=="symbol"?e:e+""}function et(o,e){if(typeof o!="object"||!o)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var r=t.call(o,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}var re;(function(o){o.DOWN="DOWN",o.UP="UP",o.LEFT="LEFT",o.RIGHT="RIGHT"})(re||(re={}));class p{static normalize(e,t,r,n){var a=e,i=t,l=r,s=n;return a!=null&&l!=null&&l<a&&(a=l,l=e),i!=null&&s!=null&&s<i&&(i=s,s=t),[a,i,l,s]}static makeNormalized(e,t,r,n){return new p(...p.normalize(e,t,r,n))}static makeCell(e,t){return new p(e,t,e,t)}static makeColumn(e){return new p(e,null,e,null)}static makeRow(e){return new p(null,e,null,e)}static minOrNull(e,t){return e==null||t==null?null:Math.min(e,t)}static maxOrNull(e,t){return e==null||t==null?null:Math.max(e,t)}static consolidate(e){for(var t=e.slice(),r=!0;r;){r=!1;for(var n=0;n<t.length&&!r;n+=1)for(var a=t[n],i=t.length-1;i>n;i-=1){var l=t[i];if(a.contains(l))t.splice(i,1);else if(l.contains(a)){r=!0,t[n]=l,t.splice(i,1);break}else if(a.startRow===l.startRow&&a.endRow===l.endRow){if(a.touches(l)){var{startRow:s,endRow:u}=a,v=p.minOrNull(a.startColumn,l.startColumn),c=p.maxOrNull(a.endColumn,l.endColumn);r=!0,t[n]=new p(v,s,c,u),t.splice(i,1);break}}else if(a.startColumn===l.startColumn&&a.endColumn===l.endColumn&&a.touches(l)){var{startColumn:f,endColumn:g}=a,m=p.minOrNull(a.startRow,l.startRow),E=p.maxOrNull(a.endRow,l.endRow);r=!0,t[n]=new p(f,m,g,E),t.splice(i,1);break}}}return t}static isAxisRangeTouching(e,t,r,n){return e==null?t==null||r==null?!0:r<=t+1:t==null?n==null?!0:n>=e-1:r==null?n==null?!0:e<=n+1:n==null?t>=r-1:r>=e-1?r<=t+1:n>=e-1}static rangeArraysEqual(e,t){if(e===t)return!0;if(e==null||t==null||e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!e[r].equals(t[r]))return!1;return!0}static intersection(e,t){var r,n,a,i,l,s;if(e.equals(t))return e;var{startColumn:u,startRow:v,endColumn:c,endRow:f}=e;return u=u!=null&&t.startColumn!=null?Math.max(u,t.startColumn):(r=u)!==null&&r!==void 0?r:t.startColumn,c=c!=null&&t.endColumn!=null?Math.min(c,t.endColumn):(n=c)!==null&&n!==void 0?n:t.endColumn,v=v!=null&&t.startRow!=null?Math.max(v,t.startRow):(a=v)!==null&&a!==void 0?a:t.startRow,f=f!=null&&t.endRow!=null?Math.min(f,t.endRow):(i=f)!==null&&i!==void 0?i:t.endRow,u!=null&&u>((l=c)!==null&&l!==void 0?l:-1)||v!=null&&v>((s=f)!==null&&s!==void 0?s:-1)?null:new p(u,v,c,f)}static subtractFromRange(e,t){var r=[],n=p.intersection(e,t);return n==null?[e]:(n.startRow!=null&&(e.startRow==null||e.startRow<n.startRow)&&r.push(new p(e.startColumn,e.startRow,e.endColumn,n.startRow-1)),n.startColumn!=null&&(e.startColumn==null||e.startColumn<n.startColumn)&&r.push(new p(e.startColumn,n.startRow,n.startColumn-1,n.endRow)),n.endColumn!=null&&(e.endColumn==null||e.endColumn>n.endColumn)&&r.push(new p(n.endColumn+1,n.startRow,e.endColumn,n.endRow)),n.endRow!=null&&(e.endRow==null||e.endRow>n.endRow)&&r.push(new p(e.startColumn,n.endRow+1,e.endColumn,e.endRow)),r)}static subtractFromRanges(e,t){for(var r=[],n=0;n<e.length;n+=1)r.push(...p.subtractFromRange(e[n],t));return r}static subtractRangesFromRanges(e,t){for(var r=[...e],n=0;n<t.length;n+=1)r=p.subtractFromRanges(r,t[n]);return r}static isBounded(e){return e.startRow!=null&&e.startColumn!=null&&e.endRow!=null&&e.endColumn!=null}static boundedRange(e,t,r){var n,a,i,l;return p.isBounded(e)?e:new p((n=e.startColumn)!==null&&n!==void 0?n:0,(a=e.startRow)!==null&&a!==void 0?a:0,(i=e.endColumn)!==null&&i!==void 0?i:t-1,(l=e.endRow)!==null&&l!==void 0?l:r-1)}static boundedRanges(e,t,r){return e.map(n=>p.boundedRange(n,t,r))}static offset(e,t,r){return new p(e.startColumn!=null?e.startColumn+t:null,e.startRow!=null?e.startRow+r:null,e.endColumn!=null?e.endColumn+t:null,e.endRow!=null?e.endRow+r:null)}static nextCell(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:p.SELECTION_DIRECTION.DOWN;if(e.length===0)return null;var a=-1;if(t!=null&&r!=null&&(a=e.findIndex(f=>f.containsCell(t,r)),a>=0)){var i=e[a],l=i.nextCell(t,r,n);if(l!=null)return l}switch(n){case p.SELECTION_DIRECTION.DOWN:case p.SELECTION_DIRECTION.RIGHT:{var s=a<e.length-1?a+1:0,u=e[s];return u.startCell(n)}case p.SELECTION_DIRECTION.LEFT:case p.SELECTION_DIRECTION.UP:{var v=a>0?a-1:e.length-1,c=e[v];return c.startCell(n)}default:throw new Error("Invalid direction: ".concat(n))}}static cellCount(e){return e.reduce((t,r)=>{var n,a,i,l;return t+(((n=r.endRow)!==null&&n!==void 0?n:NaN)-((a=r.startRow)!==null&&a!==void 0?a:NaN)+1)*(((i=r.endColumn)!==null&&i!==void 0?i:NaN)-((l=r.startColumn)!==null&&l!==void 0?l:NaN)+1)},0)}static rowCount(e){return e.reduce((t,r)=>{var n,a;return t+((n=r.endRow)!==null&&n!==void 0?n:NaN)-((a=r.startRow)!==null&&a!==void 0?a:NaN)+1},0)}static columnCount(e){return e.reduce((t,r)=>{var n,a;return t+((n=r.endColumn)!==null&&n!==void 0?n:NaN)-((a=r.startColumn)!==null&&a!==void 0?a:NaN)+1},0)}static containsCell(e,t,r){for(var n=0;n<e.length;n+=1){var a=e[n];if(a.containsCell(t,r))return!0}return!1}static forEachCell(e,t){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p.SELECTION_DIRECTION.RIGHT,n=0;n<e.length;n+=1)e[n].forEach(t,r)}constructor(e,t,r,n){Y(this,"startColumn",void 0),Y(this,"startRow",void 0),Y(this,"endColumn",void 0),Y(this,"endRow",void 0),this.startColumn=e,this.startRow=t,this.endColumn=r,this.endRow=n}equals(e){return this.startColumn===e.startColumn&&this.startRow===e.startRow&&this.endColumn===e.endColumn&&this.endRow===e.endRow}contains(e){return(this.startColumn==null||e.startColumn!=null&&this.startColumn<=e.startColumn)&&(this.startRow==null||e.startRow!=null&&this.startRow<=e.startRow)&&(this.endColumn==null||e.endColumn!=null&&this.endColumn>=e.endColumn)&&(this.endRow==null||e.endRow!=null&&this.endRow>=e.endRow)}containsCell(e,t){return e==null||t==null?!1:(this.startColumn==null||this.startColumn<=e)&&(this.endColumn==null||this.endColumn>=e)&&(this.startRow==null||this.startRow<=t)&&(this.endRow==null||this.endRow>=t)}touches(e){return p.isAxisRangeTouching(this.startRow,this.endRow,e.startRow,e.endRow)&&p.isAxisRangeTouching(this.startColumn,this.endColumn,e.startColumn,e.endColumn)}subtract(e){return p.subtractFromRange(this,e)}startCell(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p.SELECTION_DIRECTION.DOWN;if(!p.isBounded(this))throw new Error("Cannot get the startCell of an unbounded range");switch(e){case p.SELECTION_DIRECTION.DOWN:case p.SELECTION_DIRECTION.RIGHT:return{column:this.startColumn,row:this.startRow};case p.SELECTION_DIRECTION.LEFT:case p.SELECTION_DIRECTION.UP:return{column:this.endColumn,row:this.endRow};default:throw new Error("Invalid direction: ".concat(e))}}nextCell(e,t,r){if(!p.isBounded(this))throw new Error("Bounded range required");if(e==null||t==null)throw new Error("Require a non-null cursor");var{startColumn:n,endColumn:a,startRow:i,endRow:l}=this;switch(r){case p.SELECTION_DIRECTION.DOWN:if(t<l)return{column:e,row:Math.max(t+1,i)};if(e<a)return{column:Math.max(e+1,n),row:i};break;case p.SELECTION_DIRECTION.UP:if(t>i)return{column:e,row:Math.min(t-1,l)};if(e>n)return{column:Math.min(e-1,a),row:l};break;case p.SELECTION_DIRECTION.RIGHT:if(e<a)return{column:Math.max(e+1,n),row:t};if(t<l)return{column:n,row:Math.max(t+1,i)};break;case p.SELECTION_DIRECTION.LEFT:if(e>n)return{column:Math.min(e-1,a),row:t};if(t>i)return{column:a,row:Math.min(t-1,l)};break;default:throw new Error("Invalid direction: ".concat(r))}return null}forEach(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p.SELECTION_DIRECTION.RIGHT,r=0,{column:n,row:a}=this.startCell(t);n!=null&&a!=null;){var i;e(n,a,r),r+=1,{column:n,row:a}=(i=this.nextCell(n,a,t))!==null&&i!==void 0?i:{}}}}Y(p,"SELECTION_DIRECTION",re);function tt(o){return Array.isArray(o)&&o.length===2&&(o[0]===null||typeof o[0]=="number")&&(o[1]===null||typeof o[1]=="number")}function Q(o){return tt(o)&&o[0]!=null&&o[1]!=null}function ce(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function J(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ce(Object(t),!0).forEach(function(r){pe(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):ce(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function pe(o,e,t){return(e=rt(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function rt(o){var e=nt(o,"string");return typeof e=="symbol"?e:e+""}function nt(o,e){if(typeof o!="object"||!o)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var r=t.call(o,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function wt(o){return(o==null?void 0:o.href)!==void 0}class T{static getGridPointFromXY(e,t,r){var n=T.getColumnAtX(e,r),a=T.getRowAtY(t,r),i=T.getColumnHeaderDepthAtY(t,r);return{x:e,y:t,row:a,column:n,columnHeaderDepth:i}}static getCellInfoFromXY(e,t,r){var{row:n,column:a}=T.getGridPointFromXY(e,t,r),{allColumnWidths:i,allRowHeights:l,allColumnXs:s,allRowYs:u,modelColumns:v,modelRows:c}=r,f=n!==null?c.get(n):null,g=a!==null?v.get(a):null,m=a!==null?s.get(a):null,E=n!==null?u.get(n):null,h=a!==null?i.get(a):null,y=n!==null?l.get(n):null;return{row:n,column:a,modelRow:f??null,modelColumn:g??null,left:m??null,top:E??null,columnWidth:h??null,rowHeight:y??null}}static getColumnHeaderDepthAtY(e,t){var r=T.getRowAtY(e,t),{columnHeaderHeight:n,columnHeaderMaxDepth:a}=t;if(r===null&&e<=n*a)return X(a-Math.ceil(e/n),0,a-1)}static iterateFloatingStart(e,t,r){for(var n=0;n<e&&n<t;n+=1){var a=r(n);if(a!==void 0)return a}}static iterateFloatingEnd(e,t,r){for(var n=0;n<e&&t-(e-n)>=0;n+=1){var a=r(t-(e-n));if(a!==void 0)return a}}static iterateFloating(e,t,r,n){var a=T.iterateFloatingStart(e,r,n);return a!==void 0?a:T.iterateFloatingEnd(t,r,n)}static iterateAllItems(e,t,r,n,a,i){var l=Math.max(e,r),s=Math.min(t,a-n-1),u=T.iterateFloating(r,n,a,i);if(u!==void 0)return u;for(var v=l;v<=s;v+=1)if(u=i(v),u!==void 0)return u}static isInItem(e,t,r,n){var a,i,l=(a=t.get(e))!==null&&a!==void 0?a:0,s=(i=r.get(e))!==null&&i!==void 0?i:0;return l<=n&&n<=l+s}static getItemAtOffset(e,t,r,n,a,i,l){var s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,u=s?void 0:T.iterateFloating(r,n,t,f=>{if(T.isInItem(f,i,l,e))return f});if(!s&&u!==void 0)return u;for(var v=0;v<a.length;v+=1){var c=a[v];if(T.isInItem(c,i,l,e))return c}return null}static getColumnAtX(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,{columnCount:n,floatingLeftColumnCount:a,floatingRightColumnCount:i,visibleColumns:l,allColumnXs:s,allColumnWidths:u,gridX:v}=t;return e<v?null:this.getItemAtOffset(e-v,n,a,i,l,s,u,r)}static getRowAtY(e,t){var{floatingTopRowCount:r,floatingBottomRowCount:n,rowCount:a,visibleRows:i,allRowYs:l,allRowHeights:s,gridY:u}=t;return e<u?null:this.getItemAtOffset(e-u,a,r,n,i,l,s)}static getNextShownItem(e,t,r,n){var a=r.findIndex(s=>s===e)||0;for(a-=1;a!=null&&a>=0;){var i=r[a],l=t.get(i);if(l!=null&&n.get(l)!==0)return i;a-=1}return null}static getNextShownColumn(e,t){var{modelColumns:r,visibleColumns:n,userColumnWidths:a}=t;return T.getNextShownItem(e,r,n,a)}static getNextShownRow(e,t){var{modelRows:r,visibleRows:n,userRowHeights:a}=t;return T.getNextShownItem(e,r,n,a)}static getColumnSeparatorIndex(e,t,r,n){var{rowHeaderWidth:a,columnHeaderHeight:i,floatingColumns:l,floatingLeftWidth:s,visibleColumns:u,allColumnXs:v,allColumnWidths:c,columnHeaderMaxDepth:f}=r,{allowColumnResize:g,headerSeparatorHandleSize:m}=n;if(f*i<t||!g||m<=0)return null;for(var E=e-a,h=m*.5,y=!1,A=l.length-1;A>=0;A-=1){var w,S,b=l[A],O=(w=v.get(b))!==null&&w!==void 0?w:0,N=(S=c.get(b))!==null&&S!==void 0?S:0,P=N===0;if(!y||!P){var M=O+N;P?M+=h:y&&(M-=h);var F=M-h,R=M+h;if(F<=E&&E<=R)return b;y=P}}y=!1;for(var I=u.length-1;I>=0;I-=1){var L,W,_=u[I],V=(L=v.get(_))!==null&&L!==void 0?L:0,G=(W=c.get(_))!==null&&W!==void 0?W:0,U=G===0;if(V<s-G)return null;if(!y||!U){var K=V+G;U?K+=h:y&&(K-=h);var he=K-h,Ee=K+h;if(he<=E&&E<=Ee)return _;y=U}}return null}static isItemHidden(e,t){return t.get(e)===0}static isColumnHidden(e,t){var{allColumnWidths:r}=t;return T.isItemHidden(e,r)}static isFloatingRow(e,t){if(e==null)return!1;var{floatingTopRowCount:r,floatingBottomRowCount:n,rowCount:a}=t;return e<r||e>=a-n}static isFloatingColumn(e,t){if(e==null)return!1;var{floatingLeftColumnCount:r,floatingRightColumnCount:n,columnCount:a}=t;return e<r||e>=a-n}static getHiddenItems(e,t,r){if(!T.isItemHidden(e,t))return[];for(var n=[e],a=r.findIndex(s=>s===e),i=a-1;i>=0;i-=1){var l=r[i];if(!T.isItemHidden(l,t))break;n.push(l)}return n}static getHiddenColumns(e,t){var{visibleColumns:r,allColumnWidths:n}=t;return T.getHiddenItems(e,n,r)}static getRowSeparatorIndex(e,t,r,n){var{rowHeaderWidth:a,columnHeaderHeight:i,visibleRows:l,allRowYs:s,allRowHeights:u}=r,{allowRowResize:v,headerSeparatorHandleSize:c}=n;if(a<e||!v||c<=0)return null;for(var f=t-i,g=c*.5,m=!1,E=l.length-1;E>=0;E-=1){var h,y,A=l[E],w=(h=s.get(A))!==null&&h!==void 0?h:0,S=(y=u.get(A))!==null&&y!==void 0?y:0,b=S===0;if(!m||!b){var O=w+S;b?O+=g:m&&(O-=g);var N=O-g,P=O+g;if(N<=f&&f<=P)return A;m=b}}return null}static isRowHidden(e,t){var{allRowHeights:r}=t;return T.isItemHidden(e,r)}static getHiddenRows(e,t){var{visibleRows:r,allRowHeights:n}=t;return T.getHiddenItems(e,n,r)}static moveItem(e,t,r){if(e===t)return[...r];var n=[...r],a=n[n.length-1];return a!=null&&!Q(a.from)&&a.to===e?a.from===t?n.pop():n[n.length-1]=J(J({},a),{},{to:t}):n.push({from:e,to:t}),n}static moveRange(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e[0]===e[1])return T.moveItem(e[0],t,r);var a=t;if(n&&e[0]<t&&(a-=e[1]-e[0]),e[0]===a)return[...r];var i=[...r],l=i[i.length-1];l!=null&&Q(l.from)&&l.from[1]-l.from[0]===e[1]-e[0]&&l.to===e[0]?i[i.length-1]=J(J({},l),{},{to:a}):i.push({from:e,to:a});var s=i[i.length-1];return Q(s.from)&&s.from[0]===s.to&&i.pop(),i}static moveItemOrRange(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Array.isArray(e)?T.moveRange(e,t,r,n):T.moveItem(e,t,r)}static applyItemMoves(e,t,r){for(var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=[[e,t]],i=function(){var{from:u,to:v}=r[l],c=1,f;Q(u)?(c=u[1]-u[0]+1,[f]=u):f=u;for(var g=n?v:f,m=g+c-1,E=n?f:v,h=E-g,y=[],A=function(){var b,O,N=(b=a[w][0])!==null&&b!==void 0?b:Number.NEGATIVE_INFINITY,P=(O=a[w][1])!==null&&O!==void 0?O:Number.POSITIVE_INFINITY,M,F=[[N,g-1],[g,m],[m+1,P]].map(R=>{var[I,L]=R;return[Math.max(I,N),Math.min(L,P)]}).filter(R=>{var[I,L]=R;return I<=L}).map(R=>{var[I,L]=R;return g<=I&&m>=L?(M=[I+h,L+h],M):m<I?[I-c,L-c]:R}).map(R=>{var[I,L]=R;return E>I&&E<=L?[[I,E-1],[E+c,L+c]]:R===M?[R]:E<=I?[[I+c,L+c]]:[R]}).flat();y.push(...F)},w=0;w<a.length;w+=1)A();a=y.map(S=>{var[b,O]=S;return[Number.isFinite(b)?b:null,Number.isFinite(O)?O:null]})},l=n?r.length-1:0;n?l>=0:l<r.length;n?l-=1:l+=1)i();return a}static translateRange(e,t,r,n){for(var a=T.applyItemMoves(e.startColumn,e.endColumn,t,n),i=T.applyItemMoves(e.startRow,e.endRow,r,n),l=[],s=0;s<a.length;s+=1)for(var u=a[s],v=0;v<i.length;v+=1){var c=i[v];l.push(new p(u[0],c[0],u[1],c[1]))}return l}static getModelIndex(e,t){var r=T.applyItemMoves(e,e,t,!0)[0][0];return r}static getModelIndexes(e,t){return e.map(r=>T.getModelIndex(r,t))}static getModelRangeIndexes(e,t,r){return T.applyItemMoves(e,t,r,!0)}static getModelRange(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:H,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:H;return T.translateRange(e,t,r,!0)}static getModelRanges(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:H,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:H,n=[],a=0;a<e.length;a+=1)n.push(...T.getModelRange(e[a],t,r));return n}static getVisibleRangeIndexes(e,t,r){return T.applyItemMoves(e,t,r,!1)}static getVisibleRange(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:H,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:H;return this.translateRange(e,t,r,!1)}static getVisibleRanges(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:H,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:H,n=[],a=0;a<e.length;a+=1)n.push(...T.getVisibleRange(e[a],t,r));return n}static getVisibleIndex(e,t){var r=T.applyItemMoves(e,e,t)[0][0];return r}static getVisibleIndexes(e,t){return e.map(r=>T.getVisibleIndex(r,t))}static isMacPlatform(){var{platform:e}=window.navigator;return e.startsWith("Mac")}static getModifierKey(){return T.isMacPlatform()?"metaKey":"ctrlKey"}static isModifierKeyDown(e){var t=T.getModifierKey();return e[t]}static checkColumnHidden(e,t){return t.get(e)===0}static checkAllColumnsHidden(e,t){return t.size===0?!1:e.every(r=>t.get(r)===0)}static getScrollDragBounds(e,t,r){var{gridX:n,gridY:a,width:i,height:l,floatingTopRowCount:s,floatingBottomRowCount:u,floatingLeftColumnCount:v,floatingRightColumnCount:c,floatingLeftWidth:f,floatingRightWidth:g,floatingTopHeight:m,floatingBottomHeight:E,columnCount:h,rowCount:y}=e,A=n,w=a,S=i,b=l;return r!=null&&(r>v&&(A+=f),r<h-c&&(S-=g)),t!=null&&(t>s&&(w+=m),t<y-u&&(b-=E)),{x1:A,y1:w,x2:S,y2:b}}static getScrollDelta(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1024,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:768,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:20,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:20,{deltaX:i,deltaY:l}=e;return!T.isMacPlatform()&&e.shiftKey&&e.deltaX===0&&e.deltaY!==0&&(i=e.deltaY,l=e.deltaX),(e==null?void 0:e.deltaMode)===WheelEvent.DOM_DELTA_PAGE?(i*=t,l*=r):(e==null?void 0:e.deltaMode)===WheelEvent.DOM_DELTA_LINE&&(T.isMacPlatform()?(i=Math.round(i*n),l=Math.round(l*a)):(i=Math.round(i*this.PIXELS_PER_LINE),l=Math.round(l*this.PIXELS_PER_LINE))),{deltaX:i,deltaY:l}}static compareRanges(e,t){return e[0]==null||e[1]==null||t[0]==null||t[1]==null?0:e[0]!==t[0]?e[0]-t[0]:e[1]-t[1]}static mergeSortedRanges(e){for(var t=[],r=0;r<e.length;r+=1){var n=e[r],a=n[0],i=n[1];r===0?t.push([a,i]):a-1<=t[t.length-1][1]?t[t.length-1][1]=Math.max(t[t.length-1][1],i):t.push([a,i])}return t}static translateTokenBox(e,t){var{x1:r,y1:n,x2:a,y2:i}=e,{gridX:l,gridY:s,width:u,height:v,verticalBarWidth:c,horizontalBarHeight:f}=t,g=X(l+r,l,u-c),m=X(l+a,l,u-c),E=X(s+n,s,v-f),h=X(s+i,s,v-f);return{x1:g,y1:E,x2:m,y2:h,token:e.token}}static getTextRenderMetrics(e,t,r){var{metrics:n,model:a,theme:i}=e,{firstColumn:l,allColumnXs:s,allColumnWidths:u,allRowYs:v,allRowHeights:c,modelRows:f,modelColumns:g}=n,{cellHorizontalPadding:m,treeDepthIndent:E,treeHorizontalPadding:h}=i,y=B(f,r),A=B(g,t),w=a.textAlignForCell(A,y),S=B(s,t),b=B(v,r),O=B(u,t),N=B(c,r),P=t===l,M=0;Ge(a)&&a.hasExpandableRows&&P&&(M=E*(a.depthForRow(r)+1)+h);var F=O-M,R=S+m,I=b+N*.5;return w==="right"?R=S+F-m:w==="center"&&(R=S+F*.5),R+=M,{width:F-m*2,x:R,y:I}}static findTokensWithProtocolInText(e){var t=Se(e);return t.filter(r=>r.type==="url"?/^https?:\/\//.test(r.value):!0)}}pe(T,"PIXELS_PER_LINE",100/3);function ve(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function fe(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ve(Object(t),!0).forEach(function(r){at(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):ve(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function at(o,e,t){return(e=ot(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function ot(o){var e=lt(o,"string");return typeof e=="symbol"?e:e+""}function lt(o,e){if(typeof o!="object"||!o)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var r=t.call(o,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function it(o,e){var t=!1,r=Ae(o,fe(fe({},e),{},{dispose:()=>{t||(t=!0,r.clear(),t=!1)}}));return r}function ut(o,e,t){return(e=st(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function st(o){var e=ct(o,"string");return typeof e=="symbol"?e:e+""}function ct(o,e){if(typeof o!="object"||!o)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var r=t.call(o,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}var te=5e3;class vt extends Oe{constructor(){super(...arguments),ut(this,"getCachedTokensInText",it((e,t)=>{if(t>=e.length)return T.findTokensWithProtocolInText(e);var r=e.slice(t-1,te).search(/\s/),n=t+r;r===-1&&(n=Math.min(te,e.length));var a=e.substring(0,n);return T.findTokensWithProtocolInText(a)},{max:1e4}))}get floatingTopRowCount(){return 0}get floatingBottomRowCount(){return 0}get floatingLeftColumnCount(){return 0}get floatingRightColumnCount(){return 0}get columnHeaderMaxDepth(){return 1}truncationCharForCell(e,t){}textAlignForCell(e,t){return"left"}colorForCell(e,t,r){return r.textColor}backgroundColorForCell(e,t,r){return null}colorForColumnHeader(e){return null}textForRowHeader(e){return""}textForRowFooter(e){return""}isColumnMovable(e){return!0}isRowMovable(e){return!0}getColumnHeaderGroup(e,t){}getColumnHeaderParentGroup(e,t){}tokensForCell(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:te,n=this.textForCell(e,t);return this.getCachedTokensInText(n,r)}renderTypeForCell(e,t){return"text"}}function ne(o,e,t){return(e=ft(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function ft(o){var e=dt(o,"string");return typeof e=="symbol"?e:e+""}function dt(o,e){if(typeof o!="object"||!o)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var r=t.call(o,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}var j=[],mt=new Set;class gt extends vt{constructor(e){super(),ne(this,"dh",void 0),ne(this,"listenerCount",void 0),this.dh=e,this.listenerCount=0}addEventListener(e,t,r){super.addEventListener(e,t,r),this.listenerCount+=1,this.listenerCount===1&&this.startListening()}removeEventListener(e,t,r){super.removeEventListener(e,t,r),this.listenerCount-=1,this.listenerCount===0&&this.stopListening()}startListening(){}stopListening(){}get groupedColumns(){return j}get originalColumns(){return this.columns}sourceForCell(e,t){return{column:e,row:t}}getClearFilterRange(e){return this.isFilterable(e)?[e,e]:null}get initialMovedColumns(){return j}get initialMovedRows(){return j}get initialColumnHeaderGroups(){return j}get layoutHints(){return null}get frontColumns(){return j}get backColumns(){return j}get keyColumnSet(){return mt}get frozenColumns(){return j}isColumnFrozen(e){return!1}isColumnSortable(e){return!1}get isFilterRequired(){return!1}get isReversible(){return!0}get isColumnStatisticsAvailable(){return!1}get description(){return""}get isCustomColumnsAvailable(){return!1}get isFormatColumnsAvailable(){return!1}get isExportAvailable(){return!1}get isValuesTableAvailable(){return!1}get isChartBuilderAvailable(){return!1}get isOrganizeColumnsAvailable(){return!1}get isRollupAvailable(){return!1}get isSelectDistinctAvailable(){return!1}get isTotalsAvailable(){return!1}get isViewportPending(){return!1}isFilterable(e){return!1}close(){}isRowMovable(){return!1}get isSeekRowAvailable(){return!1}dataBarOptionsForCell(e,t,r){throw new Error("Method not implemented.")}tooltipForCell(e,t){return null}}ne(gt,"EVENT",Object.freeze({UPDATED:"UPDATED",FORMATTER_UPDATED:"FORMATTER_UPDATED",REQUEST_FAILED:"REQUEST_FAILED",COLUMNS_CHANGED:"COLUMNS_CHANGED",TABLE_CHANGED:"TABLE_CHANGED",FILTERS_CHANGED:"FILTERS_CHANGED",SORTS_CHANGED:"SORTS_CHANGED",DISCONNECT:"DISCONNECT",RECONNECT:"RECONNECT",TOTALS_UPDATED:"TOTALS_UPDATED",PENDING_DATA_UPDATED:"PENDING_DATA_UPDATED",VIEWPORT_UPDATED:"VIEWPORT_UPDATED"}));export{C,p as G,gt as I,Tt as L,ge as S,d as a,Je as b,vt as c,T as d,wt as e,re as f,Ge as i,it as m};
|
|
3
|
-
//# sourceMappingURL=IrisGridModel-CadrI4-V.js.map
|