@deephaven/code-studio 0.85.3-beta.3 → 0.85.3

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.
Files changed (44) hide show
  1. package/build/assets/{AppRoot-6d5376cb.js → AppRoot-2c3d8ba6.js} +3 -3
  2. package/build/assets/{AppRoot-6d5376cb.js.map → AppRoot-2c3d8ba6.js.map} +1 -1
  3. package/build/assets/{Chart-3228fe10.js → Chart-193dc89e.js} +2 -2
  4. package/build/assets/{Chart-3228fe10.js.map → Chart-193dc89e.js.map} +1 -1
  5. package/build/assets/{ControlType-4d792bd5.js → ControlType-7a96d66b.js} +13 -13
  6. package/build/assets/ControlType-7a96d66b.js.map +1 -0
  7. package/build/assets/{FontBootstrap-f59066a5.js → FontBootstrap-acd62e74.js} +2 -2
  8. package/build/assets/{FontBootstrap-f59066a5.js.map → FontBootstrap-acd62e74.js.map} +1 -1
  9. package/build/assets/{FormatterUtils-59256d3e.js → FormatterUtils-f9c9a814.js} +2 -2
  10. package/build/assets/{FormatterUtils-59256d3e.js.map → FormatterUtils-f9c9a814.js.map} +1 -1
  11. package/build/assets/{Grid-1381e53d.js → Grid-f62da059.js} +3 -3
  12. package/build/assets/{Grid-1381e53d.js.map → Grid-f62da059.js.map} +1 -1
  13. package/build/assets/{IrisGrid-91aadac3.js → IrisGrid-bdc67971.js} +2 -2
  14. package/build/assets/{IrisGrid-91aadac3.js.map → IrisGrid-bdc67971.js.map} +1 -1
  15. package/build/assets/{IrisGridModel-2a36e41a.js → IrisGridModel-7513b4f9.js} +2 -2
  16. package/build/assets/{IrisGridModel-2a36e41a.js.map → IrisGridModel-7513b4f9.js.map} +1 -1
  17. package/build/assets/{IrisGridShortcuts-eb66acf2.js → IrisGridShortcuts-1ac3bc80.js} +2 -2
  18. package/build/assets/{IrisGridShortcuts-eb66acf2.js.map → IrisGridShortcuts-1ac3bc80.js.map} +1 -1
  19. package/build/assets/IrisGridThemeProvider-417b77f6.js +11 -0
  20. package/build/assets/IrisGridThemeProvider-417b77f6.js.map +1 -0
  21. package/build/assets/{LocalWorkspaceStorage-1a534d33.js → LocalWorkspaceStorage-fc4bc35d.js} +2 -2
  22. package/build/assets/{LocalWorkspaceStorage-1a534d33.js.map → LocalWorkspaceStorage-fc4bc35d.js.map} +1 -1
  23. package/build/assets/{MarkdownEditor-3dd90750.js → MarkdownEditor-d37a0743.js} +2 -2
  24. package/build/assets/{MarkdownEditor-3dd90750.js.map → MarkdownEditor-d37a0743.js.map} +1 -1
  25. package/build/assets/{MarkdownNotebook-c90d577f.js → MarkdownNotebook-1e09c624.js} +2 -2
  26. package/build/assets/{MarkdownNotebook-c90d577f.js.map → MarkdownNotebook-1e09c624.js.map} +1 -1
  27. package/build/assets/{MissingPartitionError-746bb023.js → MissingPartitionError-8b86a8cd.js} +2 -2
  28. package/build/assets/{MissingPartitionError-746bb023.js.map → MissingPartitionError-8b86a8cd.js.map} +1 -1
  29. package/build/assets/{StyleGuideRoot-389d3c67.js → StyleGuideRoot-1e8c8954.js} +2 -2
  30. package/build/assets/{StyleGuideRoot-389d3c67.js.map → StyleGuideRoot-1e8c8954.js.map} +1 -1
  31. package/build/assets/{TokenBoxCellRenderer-f517060c.js → TokenBoxCellRenderer-758c4877.js} +2 -2
  32. package/build/assets/{TokenBoxCellRenderer-f517060c.js.map → TokenBoxCellRenderer-758c4877.js.map} +1 -1
  33. package/build/assets/{index-37d8f201.js → index-86fc9ab4.js} +5 -5
  34. package/build/assets/index-86fc9ab4.js.map +1 -0
  35. package/build/assets/{index-0868e7f5.js → index-a5f0f1ea.js} +2 -2
  36. package/build/assets/{index-0868e7f5.js.map → index-a5f0f1ea.js.map} +1 -1
  37. package/build/assets/{index-7d62d702.js → index-cb5be03d.js} +2 -2
  38. package/build/assets/{index-7d62d702.js.map → index-cb5be03d.js.map} +1 -1
  39. package/build/index.html +2 -2
  40. package/package.json +30 -30
  41. package/build/assets/ControlType-4d792bd5.js.map +0 -1
  42. package/build/assets/IrisGridThemeProvider-4378584b.js +0 -11
  43. package/build/assets/IrisGridThemeProvider-4378584b.js.map +0 -1
  44. package/build/assets/index-37d8f201.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import{M as we,bj as Oe,I as k,K as Ae,L as oe,r as J,be as Ce,ai as K,bn as Ie,U as be,H as Re}from"./vendor-e600113a.js";import{w as Ne,bc as Pe,G as pe,L as De,e as Z,aW as Y}from"./index-0868e7f5.js";import{_ as he}from"./monaco-b5248072.js";import{a8 as xe,c as te,ah as $}from"./ControlType-4d792bd5.js";var le=we.forwardRef((l,e)=>{var{children:t,className:r,disabled:n,id:a,isLinked:i,isLinkedSource:o,isInvalid:s,onClick:u,onMouseEnter:f,onMouseLeave:c,style:d,"data-testid":h}=l,{UNSAFE_className:g}=Oe({},"button");return k.jsxs("button",{ref:e,type:"button",className:Ae("btn-socketed",{"btn-socketed-linked":i!==void 0&&i||o},{"btn-socketed-linked-source":o},{"is-invalid":s},r,g),id:a,onClick:u,onMouseEnter:f,onMouseLeave:c,style:d,disabled:n,"data-testid":h,children:[t,k.jsx(oe,{icon:Ne,className:"linked btn-socketed-icon",transform:"down-1"}),k.jsx(oe,{icon:Pe,className:"is-invalid btn-socketed-icon"})]})});le.displayName="SocketedButton";le.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};const Ot=le;function ie(l,e){var t=Object.keys(l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(l);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(l,n).enumerable})),t.push.apply(t,r)}return t}function Le(l){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ie(Object(t),!0).forEach(function(r){Me(l,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(t)):ie(Object(t)).forEach(function(r){Object.defineProperty(l,r,Object.getOwnPropertyDescriptor(t,r))})}return l}function Me(l,e,t){return e=Fe(e),e in l?Object.defineProperty(l,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):l[e]=t,l}function Fe(l){var e=He(l,"string");return typeof e=="symbol"?e:String(e)}function He(l,e){if(typeof l!="object"||l===null)return l;var t=l[Symbol.toPrimitive];if(t!==void 0){var r=t.call(l,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(l)}var ke=J.lazy(()=>he(()=>import("./Chart-3228fe10.js"),["./Chart-3228fe10.js","./vendor-e600113a.js","./helpers-de833af9.js","./vendor-fb3fd713.css","./index-0868e7f5.js","./monaco-b5248072.js","./monaco-f18fde03.css","./index-13e1b819.css","./Plotly-63b44574.js","./plotly-96591286.js","./ControlType-4d792bd5.js","./ControlType-5545c569.css","./DownsamplingError-8e6bdb73.js","./FormatterUtils-59256d3e.js","./Chart-d34ffe5c.css"],import.meta.url));function At(l){return k.jsx(J.Suspense,{fallback:k.jsx(pe,{}),children:k.jsx(ke,Le({},l))})}function ue(l,e){var t=Object.keys(l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(l);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(l,n).enumerable})),t.push.apply(t,r)}return t}function G(l){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ue(Object(t),!0).forEach(function(r){L(l,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(t)):ue(Object(t)).forEach(function(r){Object.defineProperty(l,r,Object.getOwnPropertyDescriptor(t,r))})}return l}function L(l,e,t){return e=_e(e),e in l?Object.defineProperty(l,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):l[e]=t,l}function _e(l){var e=We(l,"string");return typeof e=="symbol"?e:String(e)}function We(l,e){if(typeof l!="object"||l===null)return l;var t=l[Symbol.toPrimitive];if(t!==void 0){var r=t.call(l,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(l)}var q=De.module("ChartUtils"),se="io.deephaven.time.DateTime",je=36e5,$e=1e6;function Xe(l){return l.asDate!==void 0}function ze(l){return l.asNumber!==void 0}function ce(l){return l.dhTimeZone!==void 0}function Be(l){return l!=null&&l.range!=null&&(l.autorange===!1||l.autorange===void 0)}function Ve(){var l=document.createElement("canvas"),e=l.getContext("webgl")||l.getContext("experimental-webgl");return e!=null&&e instanceof WebGLRenderingContext}var Ye=Ve();class v{static getPlotlyErrorBars(e,t,r){var n=r.map((i,o)=>i-e[o]),a=t.map((i,o)=>e[o]-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,o,s,,u,f,c,d,h]=a,g=s.replace(",","").length,y=o.indexOf(",")>=0||s.indexOf(",")>=0,p=y?",":"",E=c!=null&&c!==""?"e":"f",A=d!==""?d:E,S=u.length+f.length,O="",w="0".concat(g).concat(p,".").concat(S).concat(O).concat(A),I=v.convertNumberPrefix(i),P=v.convertNumberPrefix(h);return{tickformat:w,tickprefix:I,ticksuffix:P,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/$e),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]:v.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=v.getAllAxes(e);return v.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(o=>o.indexOf("axis")>=0),n=0;n<r.length;n+=1){var a=r[n],i=e[a];Be(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 groupArray(e,t){return e.reduce((r,n)=>{var a,i=n[t],o=(a=r.get(i))!==null&&a!==void 0?a:[];return o.push(n),r.set(i,o),r},new Map)}static normalizeColorway(e){if(e!=null){if(Array.isArray(e))return e;if(typeof e=="string")return e.split(" ");q.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}constructor(e){L(this,"dh",void 0),L(this,"daysOfWeek",void 0),this.dh=e,this.daysOfWeek=Object.freeze(e.calendar.DayOfWeek.values()),xe(this)}getAxisFormats(e,t){for(var r=this,n=new Map,a={tickformat:null,ticksuffix:null},i=v.getAllAxes(e),o=v.groupArray(i,"type"),{charts:s}=e,u=0;u<s.length;u+=1)for(var f=s[u],c=0;c<f.series.length;c+=1)for(var d=f.series[c],{sources:h}=d,g=h.filter(A=>A.axis),y=function(){var S=g[p],{axis:O}=S,{type:w}=O,I=o.get(w);Z(I);var P=I.indexOf(O),N=r.getAxisPropertyName(w);if(N!=null){var R=v.getAxisLayoutProperty(N,P);if(n.has(R))q.debug("".concat(R," already added."));else{q.debug("Adding ".concat(R," to axisFormats."));var F=r.getPlotlyAxisFormat(S,t);if(F===null)n.set(R,a);else{n.set(R,F);var{businessCalendar:b}=O;if(b!=null){var C=[],{businessPeriods:D,businessDays:_,holidays:H,timeZone:W}=b,B=t?.getColumnTypeFormatter(se),j;ce(B)&&(j=B.dhTimeZone);var X=j?(W.standardOffset-j.standardOffset)/60:0;H.length>0&&C.push(...r.createRangeBreakValuesFromHolidays(H,W,j)),D.forEach(V=>C.push({pattern:"hour",bounds:[v.periodToDecimal(V.close)+X,v.periodToDecimal(V.open)+X]})),_.length<r.daysOfWeek.length&&r.createBoundsFromDays(_).forEach(V=>C.push({pattern:"day of week",bounds:V})),F.rangebreaks=C}if(n.size===f.axes.length)return{v:n}}}}},p=0;p<g.length;p+=1){var E=y();if(typeof E=="object")return E.v}return n}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&&Ye&&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(v.MODE_LINES),(r??!0)&&a.add(v.MODE_MARKERS);break;case n.plot.SeriesPlotStyle.LINE:(t??!0)&&a.add(v.MODE_LINES),(r??!1)&&a.add(v.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?v.ORIENTATION.HORIZONTAL:v.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:o,isShapesVisible:s,plotStyle:u,lineColor:f,shapeColor:c,sources:d,shape:h,shapeSize:g}=e,y=d.some(O=>{var w;return(w=O.axis)===null||w===void 0?void 0:w.businessCalendar}),p=this.getChartType(u,y,a),E=this.getPlotlyChartMode(u,o??void 0,s??void 0),A=this.getPlotlySeriesOrientation(e),S=v.makeSeriesData(p,E,i,n,A);return this.addSourcesToSeriesData(S,u,d,t),this.addStylingToSeriesData(S,u,f,c,h,g,r),S}addSourcesToSeriesData(e,t,r,n){for(var a=e,i=0;i<r.length;i+=1){var o=r[i],{axis:s,type:u}=o,f=this.getPlotlyProperty(t,u);Ce(a,f,[]);var c=s!=null?this.getAxisPropertyName(s.type):null;if(c!=null){var d=n.get(s.type);if(d){var h=d.indexOf(s),g=h>0?"".concat(h+1):"";a["".concat(c,"axis")]="".concat(c).concat(g)}}}}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,o=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=v.getMarkerSymbol(a)}catch(f){q.warn("Unable to handle shape",a,":",f)}i!=null&&(u.marker.size=i*v.DEFAULT_MARKER_SIZE),o!=null&&t!==s.plot.SeriesPlotStyle.PIE&&(u.visible=o)}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,o=v.getAllAxes(t),s=0;s<t.charts.length;s+=1){var u=t.charts[s],f=r?.(u),c=this.getChartBounds(t,u,n,a);this.updateLayoutAxes(i,u.axes,o,n,a,c,f)}this.removeStaleAxes(i,o)}getChartBounds(e,t,r,n){var a,{dh:i}=this,{cols:o,rows:s}=e,{column:u,colspan:f,row:c,rowspan:d}=t,h=u+f,g=c+d,y=1/o,p=1/s,E=v.AXIS_SIZE_PX/r,A=v.AXIS_SIZE_PX/n,S={bottom:(s-g)*p+(g<s?A/2:0),top:(s-c)*p-(c>0?A/2:0),left:u*y+(u>0?E/2:0),right:h*y-(h<o?E/2:0)},O=v.groupArray(t.axes,"position"),w=(a=O.get(i.plot.AxisPosition.RIGHT))!==null&&a!==void 0?a:[];return w.length>0&&(r>0?S.right-=(S.right-S.left)*Math.max(0,Math.min(v.LEGEND_WIDTH_PX/r,v.MAX_LEGEND_SIZE)):S.right-=(S.right-S.left)*v.DEFAULT_AXIS_SIZE),S}getPlotlyDateFormat(e,t,r){var{dh:n}=this,a=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,o=e?.getColumnTypeFormatter(t);return o!=null&&ce(o)&&o.dhTimeZone!=null&&o.showTimeZone&&(i=n.i18n.DateTimeFormat.format(" z",new Date,o.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,o=null;return te.isDateType(a)?(o=this.getPlotlyDateFormat(t,a,i),o=v.addTickSpacing(o,n,!0)):te.isNumberType(a)&&(o=v.getPlotlyNumberFormat(t,a,i),o=v.addTickSpacing(o,n,!1)),n.formatType===r.plot.AxisFormatType.CATEGORY&&(o?o.type="category":o={type:"category",tickformat:void 0,ticksuffix:void 0}),o}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},o=arguments.length>6?arguments[6]:void 0,{dh:s}=this,u=n>0?Math.max(v.MIN_AXIS_SIZE,Math.min(v.AXIS_SIZE_PX/a,v.MAX_AXIS_SIZE)):v.DEFAULT_AXIS_SIZE,f=a>0?Math.max(v.MIN_AXIS_SIZE,Math.min(v.AXIS_SIZE_PX/n,v.MAX_AXIS_SIZE)):v.DEFAULT_AXIS_SIZE,c=e,d=v.groupArray(t,"position"),h=v.groupArray(t,"type"),g=[...h.keys()],y=v.groupArray(r,"type"),p=0;p<g.length;p+=1){var E=g[p],A=this.getAxisPropertyName(E);if(A!=null){var S=h.get(E),O=y.get(E),w=E===s.plot.AxisType.Y,I=w?a:n;Z(S),Z(O);for(var P=0;P<S.length;P+=1){var N=S[P],R=O.indexOf(N),F=v.getAxisLayoutProperty(A,R);c[F]==null&&(c[F]={});var b=c[F];if(b!=null){this.updateLayoutAxis(b,N,P,d,u,f,i);var{range:C,autorange:D}=b;if(o!=null&&C!==void 0&&(D===void 0||D===!1)){var _=o(N),[H,W]=_(C);q.debug("Setting downsample range",I,H,W),N.range(I,H,W)}else N.range(I)}}}}}removeStaleAxes(e,t){for(var r=e,n=v.groupArray(t,"type"),a=[...n.keys()],i=0;i<a.length;i+=1){var o=a[i],s=n.get(o);Z(s);var u=s.length,f=this.getAxisPropertyName(o);if(f!=null)for(var c=v.getAxisLayoutProperty(f,u);r[c]!=null;)delete r[c],u+=1,c=v.getAxisLayoutProperty(f,u)}}updateLayoutAxis(e,t,r,n,a,i,o){var s,{dh:u}=this,f=t.type===u.plot.AxisType.Y,c=f?i:a,d=e,h=(s=t.label)!==null&&s!==void 0?s:"";if(d.title!==void 0&&typeof d.title!="string"?d.title.text=h:d.title={text:h},t.log&&(d.type="log"),d.side=this.getAxisSide(t.position),r>0){var g,y;d.overlaying=(g=this.getAxisPropertyName(t.type))!==null&&g!==void 0?g:void 0;var p=(y=n.get(t.position))!==null&&y!==void 0?y:[],E=p.indexOf(t);E>0&&(d.anchor="free",t.position===u.plot.AxisPosition.RIGHT?d.position=o.right+(E-p.length+1)*c:t.position===u.plot.AxisPosition.TOP?d.position=o.top+(E-p.length+1)*c:t.position===u.plot.AxisPosition.BOTTOM?d.position=o.bottom+(p.length-E+1)*c:t.position===u.plot.AxisPosition.LEFT&&(d.position=o.left+(p.length-E+1)*c))}else if(t.type===u.plot.AxisType.X){var A=n.get(u.plot.AxisPosition.LEFT)||[],S=n.get(u.plot.AxisPosition.RIGHT)||[],O=Math.max(o.left,o.left+(A.length-1)*i),w=Math.min(o.right-(S.length-1)*i,o.right);d.domain=[O,w]}else if(t.type===u.plot.AxisType.Y){var I=n.get(u.plot.AxisPosition.BOTTOM)||[],P=n.get(u.plot.AxisPosition.TOP)||[],N=Math.max(o.bottom,o.bottom+(I.length-1)*a),R=Math.min(o.top-(P.length-1)*a,o.top);d.domain=[N,R]}}createBoundsFromDays(e){var t=e.map(i=>this.daysOfWeek.indexOf(i)),r=this.daysOfWeek.filter(i=>!e.includes(i)).map(i=>this.daysOfWeek.indexOf(i)),n=new Set;r.forEach(i=>{for(var o=i+1;o<i+this.daysOfWeek.length;o+=1){var s=o%this.daysOfWeek.length;if(t.includes(s)){n.add(s);break}}});var a=[];return n.forEach(i=>{for(var o=i-1;o>i-this.daysOfWeek.length;o-=1){var s=o<0?o+this.daysOfWeek.length:o;if(t.includes(s)){var u=(s+1)%7;a.push([u,i]);break}}}),a}createRangeBreakValuesFromHolidays(e,t,r){var n=[],a=[];return e.forEach(i=>{i.businessPeriods.length>0?a.push(...this.createPartialHoliday(i,t,r)):n.push(this.createFullHoliday(i,t,r))}),[{values:n},...a]}createFullHoliday(e,t,r){return this.adjustDateForTimeZone("".concat(e.date.toString()," 00:00:00.000000"),t,r)}createPartialHoliday(e,t,r){var n=e.date.toString(),a=["00:00"];e.businessPeriods.forEach(d=>{a.push(d.open),a.push(d.close)}),a.push("24:00");for(var i=[],o=0;o<a.length;o+=2){var s=a[o],u=a[o+1];if(s!==u){var f=[this.adjustDateForTimeZone("".concat(n," ").concat(s,":00.000000"),t,r)],c=je*(v.periodToDecimal(u)-v.periodToDecimal(s));i.push({values:f,dvalue:c})}}return i}adjustDateForTimeZone(e,t,r){return r&&r.standardOffset!==t.standardOffset?this.unwrapValue(this.wrapValue(e,se,t),r):e}makeFigureSettings(e,t){var{dh:r}=this,{series:n,xAxis:a,type:i}=e,o=v.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(f=>({plotStyle:"".concat(i),name:f,dataSources:[{type:"".concat(r.plot.SourceType.X),columnName:a??"",axis:s,table:t},{type:"".concat(r.plot.SourceType.Y),columnName:f,axis:u,table:t}]}))}],title:o}}unwrapValue(e,t){var{dh:r}=this;if(e!=null){if(Xe(e))return r.i18n.DateTimeFormat.format(v.DATE_FORMAT,e,t);if(ze(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(te.isDateType(t)&&typeof e=="string"){var a=e,i=v.DATE_FORMAT.substr(0,e.length),o=n.i18n.DateTimeFormat.parse(i,a);if(!r)return o;var s="".concat(i," Z"),u=n.i18n.DateTimeFormat.format("Z",o,r),f=n.i18n.DateTimeFormat.parse(s,"".concat(a," ").concat(u)),c=n.i18n.DateTimeFormat.format("Z",f,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}=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}}]},layout:this.makeDefaultLayout(e)}}makeDefaultLayout(e){var{dh:t}=this,{paper_bgcolor:r,plot_bgcolor:n,title_color:a,coastline_color:i,land_color:o,ocean_color:s,lake_color:u,river_color:f}=e,c={paper_bgcolor:r,plot_bgcolor:n,autosize:!0,colorway:v.normalizeColorway(e?.colorway),font:{family:"'Fira Sans', sans-serif",color:a},title:{font:{color:a},xanchor:"center",xref:"paper",yanchor:"top",pad:G({},v.DEFAULT_TITLE_PADDING),y:1},legend:{font:{color:a}},margin:G({},v.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:o,oceancolor:s,lakecolor:u,rivercolor:f}};return c.datarevision=0,c}hydrateSettings(e){var{dh:t}=this;return G(G({},e),{},{type:e.type!=null?t.plot.SeriesPlotStyle[e.type]:void 0})}}L(v,"DEFAULT_AXIS_SIZE",.15);L(v,"MIN_AXIS_SIZE",.025);L(v,"MAX_AXIS_SIZE",.2);L(v,"AXIS_SIZE_PX",75);L(v,"LEGEND_WIDTH_PX",50);L(v,"MAX_LEGEND_SIZE",.25);L(v,"ORIENTATION",Object.freeze({HORIZONTAL:"h",VERTICAL:"v"}));L(v,"DATE_FORMAT","yyyy-MM-dd HH:mm:ss.SSSSSS");L(v,"DEFAULT_MARGIN",Object.freeze({l:60,r:50,t:30,b:60,pad:0}));L(v,"DEFAULT_TITLE_PADDING",Object.freeze({t:8}));L(v,"SUBTITLE_LINE_HEIGHT",25);L(v,"DEFAULT_MARKER_SIZE",6);L(v,"MODE_MARKERS","markers");L(v,"MODE_LINES","lines");const Ct=v;function M(l,e,t){return e=Ke(e),e in l?Object.defineProperty(l,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):l[e]=t,l}function Ke(l){var e=Ze(l,"string");return typeof e=="symbol"?e:String(e)}function Ze(l,e){if(typeof l!="object"||l===null)return l;var t=l[Symbol.toPrimitive];if(t!==void 0){var r=t.call(l,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(l)}class x{constructor(e){M(this,"dh",void 0),M(this,"listeners",void 0),M(this,"formatter",void 0),M(this,"renderOptions",void 0),M(this,"rect",void 0),M(this,"isDownsamplingDisabled",void 0),M(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(x.EVENT_UPDATED,{detail:e}))}fireDisconnect(){this.fireEvent(new CustomEvent(x.EVENT_DISCONNECT))}fireReconnect(){this.fireEvent(new CustomEvent(x.EVENT_RECONNECT))}fireDownsampleStart(e){this.fireEvent(new CustomEvent(x.EVENT_DOWNSAMPLESTARTED,{detail:e}))}fireDownsampleFinish(e){this.fireEvent(new CustomEvent(x.EVENT_DOWNSAMPLEFINISHED,{detail:e}))}fireDownsampleFail(e){this.fireEvent(new CustomEvent(x.EVENT_DOWNSAMPLEFAILED,{detail:e}))}fireDownsampleNeeded(e){this.fireEvent(new CustomEvent(x.EVENT_DOWNSAMPLENEEDED,{detail:e}))}fireLoadFinished(){this.fireEvent(new CustomEvent(x.EVENT_LOADFINISHED))}fireError(e){this.fireEvent(new CustomEvent(x.EVENT_ERROR,{detail:e}))}}M(x,"EVENT_UPDATED","ChartModel.EVENT_UPDATED");M(x,"EVENT_DISCONNECT","ChartModel.EVENT_DISCONNECT");M(x,"EVENT_RECONNECT","ChartModel.EVENT_RECONNECT");M(x,"EVENT_DOWNSAMPLESTARTED","ChartModel.EVENT_DOWNSAMPLESTARTED");M(x,"EVENT_DOWNSAMPLEFINISHED","ChartModel.EVENT_DOWNSAMPLEFINISHED");M(x,"EVENT_DOWNSAMPLEFAILED","ChartModel.EVENT_DOWNSAMPLEFAILED");M(x,"EVENT_DOWNSAMPLENEEDED","ChartModel.EVENT_DOWNSAMPLENEEDED");M(x,"EVENT_LOADFINISHED","ChartModel.EVENT_LOADFINISHED");M(x,"EVENT_ERROR","ChartModel.EVENT_ERROR");const It=x;function fe(l,e){var t=Object.keys(l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(l);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(l,n).enumerable})),t.push.apply(t,r)}return t}function qe(l){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?fe(Object(t),!0).forEach(function(r){Qe(l,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(t)):fe(Object(t)).forEach(function(r){Object.defineProperty(l,r,Object.getOwnPropertyDescriptor(t,r))})}return l}function Qe(l,e,t){return e=Je(e),e in l?Object.defineProperty(l,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):l[e]=t,l}function Je(l){var e=Ge(l,"string");return typeof e=="symbol"?e:String(e)}function Ge(l,e){if(typeof l!="object"||l===null)return l;var t=l[Symbol.toPrimitive];if(t!==void 0){var r=t.call(l,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(l)}var Ue=J.lazy(()=>he(()=>import("./IrisGrid-91aadac3.js"),["./IrisGrid-91aadac3.js","./vendor-e600113a.js","./helpers-de833af9.js","./vendor-fb3fd713.css","./index-0868e7f5.js","./monaco-b5248072.js","./monaco-f18fde03.css","./index-13e1b819.css","./ControlType-4d792bd5.js","./ControlType-5545c569.css","./MissingPartitionError-746bb023.js","./FormatterUtils-59256d3e.js","./IrisGridThemeProvider-4378584b.js","./IrisGridShortcuts-eb66acf2.js","./TokenBoxCellRenderer-f517060c.js","./TokenBoxCellRenderer-8152a7a1.css","./IrisGridThemeProvider-15ce00be.css","./Grid-1381e53d.js","./Grid-6b71b6c4.css","./IrisGrid-4424e8a8.css"],import.meta.url)),Ee=J.forwardRef((l,e)=>k.jsx(J.Suspense,{fallback:k.jsx(pe,{}),children:k.jsx(Ue,qe({ref:e},l))}));Ee.displayName="LazyIrisGrid";const bt=Ee;function et(l){return l?.hasExpandableRows!==void 0}function Q(l,e,t){return e=tt(e),e in l?Object.defineProperty(l,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):l[e]=t,l}function tt(l){var e=rt(l,"string");return typeof e=="symbol"?e:String(e)}function rt(l,e){if(typeof l!="object"||l===null)return l;var t=l[Symbol.toPrimitive];if(t!==void 0){var r=t.call(l,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(l)}var ne;(function(l){l.DOWN="DOWN",l.UP="UP",l.LEFT="LEFT",l.RIGHT="RIGHT"})(ne||(ne={}));class m{static normalize(e,t,r,n){var a=e,i=t,o=r,s=n;return a!=null&&o!=null&&o<a&&(a=o,o=e),i!=null&&s!=null&&s<i&&(i=s,s=t),[a,i,o,s]}static makeNormalized(e,t,r,n){return new m(...m.normalize(e,t,r,n))}static makeCell(e,t){return new m(e,t,e,t)}static makeColumn(e){return new m(e,null,e,null)}static makeRow(e){return new m(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 o=t[i];if(a.contains(o))t.splice(i,1);else if(o.contains(a)){r=!0,t[n]=o,t.splice(i,1);break}else if(a.startRow===o.startRow&&a.endRow===o.endRow){if(a.touches(o)){var{startRow:s,endRow:u}=a,f=m.minOrNull(a.startColumn,o.startColumn),c=m.maxOrNull(a.endColumn,o.endColumn);r=!0,t[n]=new m(f,s,c,u),t.splice(i,1);break}}else if(a.startColumn===o.startColumn&&a.endColumn===o.endColumn&&a.touches(o)){var{startColumn:d,endColumn:h}=a,g=m.minOrNull(a.startRow,o.startRow),y=m.maxOrNull(a.endRow,o.endRow);r=!0,t[n]=new m(d,g,h,y),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,o,s;if(e.equals(t))return e;var{startColumn:u,startRow:f,endColumn:c,endRow:d}=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,f=f!=null&&t.startRow!=null?Math.max(f,t.startRow):(a=f)!==null&&a!==void 0?a:t.startRow,d=d!=null&&t.endRow!=null?Math.min(d,t.endRow):(i=d)!==null&&i!==void 0?i:t.endRow,u!=null&&u>((o=c)!==null&&o!==void 0?o:-1)||f!=null&&f>((s=d)!==null&&s!==void 0?s:-1)?null:new m(u,f,c,d)}static subtractFromRange(e,t){var r=[],n=m.intersection(e,t);return n==null?[e]:(n.startRow!=null&&(e.startRow==null||e.startRow<n.startRow)&&r.push(new m(e.startColumn,e.startRow,e.endColumn,n.startRow-1)),n.startColumn!=null&&(e.startColumn==null||e.startColumn<n.startColumn)&&r.push(new m(e.startColumn,n.startRow,n.startColumn-1,n.endRow)),n.endColumn!=null&&(e.endColumn==null||e.endColumn>n.endColumn)&&r.push(new m(n.endColumn+1,n.startRow,e.endColumn,n.endRow)),n.endRow!=null&&(e.endRow==null||e.endRow>n.endRow)&&r.push(new m(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(...m.subtractFromRange(e[n],t));return r}static subtractRangesFromRanges(e,t){for(var r=[...e],n=0;n<t.length;n+=1)r=m.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,o;return m.isBounded(e)?e:new m((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,(o=e.endRow)!==null&&o!==void 0?o:r-1)}static boundedRanges(e,t,r){return e.map(n=>m.boundedRange(n,t,r))}static offset(e,t,r){return new m(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]:m.SELECTION_DIRECTION.DOWN;if(e.length===0)return null;var a=-1;if(t!=null&&r!=null&&(a=e.findIndex(d=>d.containsCell(t,r)),a>=0)){var i=e[a],o=i.nextCell(t,r,n);if(o!=null)return o}switch(n){case m.SELECTION_DIRECTION.DOWN:case m.SELECTION_DIRECTION.RIGHT:{var s=a<e.length-1?a+1:0,u=e[s];return u.startCell(n)}case m.SELECTION_DIRECTION.LEFT:case m.SELECTION_DIRECTION.UP:{var f=a>0?a-1:e.length-1,c=e[f];return c.startCell(n)}default:throw new Error("Invalid direction: ".concat(n))}}static cellCount(e){return e.reduce((t,r)=>{var n,a,i,o;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)-((o=r.startColumn)!==null&&o!==void 0?o: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]:m.SELECTION_DIRECTION.RIGHT,n=0;n<e.length;n+=1)e[n].forEach(t,r)}constructor(e,t,r,n){Q(this,"startColumn",void 0),Q(this,"startRow",void 0),Q(this,"endColumn",void 0),Q(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 m.isAxisRangeTouching(this.startRow,this.endRow,e.startRow,e.endRow)&&m.isAxisRangeTouching(this.startColumn,this.endColumn,e.startColumn,e.endColumn)}subtract(e){return m.subtractFromRange(this,e)}startCell(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m.SELECTION_DIRECTION.DOWN;if(!m.isBounded(this))throw new Error("Cannot get the startCell of an unbounded range");switch(e){case m.SELECTION_DIRECTION.DOWN:case m.SELECTION_DIRECTION.RIGHT:return{column:this.startColumn,row:this.startRow};case m.SELECTION_DIRECTION.LEFT:case m.SELECTION_DIRECTION.UP:return{column:this.endColumn,row:this.endRow};default:throw new Error("Invalid direction: ".concat(e))}}nextCell(e,t,r){if(!m.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:o}=this;switch(r){case m.SELECTION_DIRECTION.DOWN:if(t<o)return{column:e,row:Math.max(t+1,i)};if(e<a)return{column:Math.max(e+1,n),row:i};break;case m.SELECTION_DIRECTION.UP:if(t>i)return{column:e,row:Math.min(t-1,o)};if(e>n)return{column:Math.min(e-1,a),row:o};break;case m.SELECTION_DIRECTION.RIGHT:if(e<a)return{column:Math.max(e+1,n),row:t};if(t<o)return{column:n,row:Math.max(t+1,i)};break;case m.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,o)};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]:m.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:{}}}}Q(m,"SELECTION_DIRECTION",ne);function nt(l){return Array.isArray(l)&&l.length===2&&(l[0]===null||typeof l[0]=="number")&&(l[1]===null||typeof l[1]=="number")}function U(l){return nt(l)&&l[0]!=null&&l[1]!=null}function de(l,e){var t=Object.keys(l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(l);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(l,n).enumerable})),t.push.apply(t,r)}return t}function ee(l){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?de(Object(t),!0).forEach(function(r){ye(l,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(t)):de(Object(t)).forEach(function(r){Object.defineProperty(l,r,Object.getOwnPropertyDescriptor(t,r))})}return l}function ye(l,e,t){return e=at(e),e in l?Object.defineProperty(l,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):l[e]=t,l}function at(l){var e=lt(l,"string");return typeof e=="symbol"?e:String(e)}function lt(l,e){if(typeof l!="object"||l===null)return l;var t=l[Symbol.toPrimitive];if(t!==void 0){var r=t.call(l,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(l)}function Rt(l){return l?.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:o,allColumnXs:s,allRowYs:u,modelColumns:f,modelRows:c}=r,d=n!==null?c.get(n):null,h=a!==null?f.get(a):null,g=a!==null?s.get(a):null,y=n!==null?u.get(n):null,p=a!==null?i.get(a):null,E=n!==null?o.get(n):null;return{row:n,column:a,modelRow:d??null,modelColumn:h??null,left:g??null,top:y??null,columnWidth:p??null,rowHeight:E??null}}static getColumnHeaderDepthAtY(e,t){var r=T.getRowAtY(e,t),{columnHeaderHeight:n,columnHeaderMaxDepth:a}=t;if(r===null&&e<=n*a)return K(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 o=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 f=o;f<=s;f+=1)if(u=i(f),u!==void 0)return u}static isInItem(e,t,r,n){var a,i,o=(a=t.get(e))!==null&&a!==void 0?a:0,s=(i=r.get(e))!==null&&i!==void 0?i:0;return o<=n&&n<=o+s}static getItemAtOffset(e,t,r,n,a,i,o){var s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,u=s?void 0:T.iterateFloating(r,n,t,d=>{if(T.isInItem(d,i,o,e))return d});if(!s&&u!==void 0)return u;for(var f=0;f<a.length;f+=1){var c=a[f];if(T.isInItem(c,i,o,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:o,allColumnXs:s,allColumnWidths:u,gridX:f}=t;return e<f?null:this.getItemAtOffset(e-f,n,a,i,o,s,u,r)}static getRowAtY(e,t){var{floatingTopRowCount:r,floatingBottomRowCount:n,rowCount:a,visibleRows:i,allRowYs:o,allRowHeights:s,gridY:u}=t;return e<u?null:this.getItemAtOffset(e-u,a,r,n,i,o,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],o=t.get(i);if(o!=null&&n.get(o)!==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:o,floatingLeftWidth:s,visibleColumns:u,allColumnXs:f,allColumnWidths:c,columnHeaderMaxDepth:d}=r,{allowColumnResize:h,headerSeparatorHandleSize:g}=n;if(d*i<t||!h||g<=0)return null;for(var y=e-a,p=g*.5,E=!1,A=o.length-1;A>=0;A-=1){var S,O,w=o[A],I=(S=f.get(w))!==null&&S!==void 0?S:0,P=(O=c.get(w))!==null&&O!==void 0?O:0,N=P===0;if(!E||!N){var R=I+P;N?R+=p:E&&(R-=p);var F=R-p,b=R+p;if(F<=y&&y<=b)return w;E=N}}E=!1;for(var C=u.length-1;C>=0;C-=1){var D,_,H=u[C],W=(D=f.get(H))!==null&&D!==void 0?D:0,B=(_=c.get(H))!==null&&_!==void 0?_:0,j=B===0;if(W<s-B)return null;if(!E||!j){var X=W+B;j?X+=p:E&&(X-=p);var V=X-p,Se=X+p;if(V<=y&&y<=Se)return H;E=j}}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 o=r[i];if(!T.isItemHidden(o,t))break;n.push(o)}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:o,allRowYs:s,allRowHeights:u}=r,{allowRowResize:f,headerSeparatorHandleSize:c}=n;if(a<e||!f||c<=0)return null;for(var d=t-i,h=c*.5,g=!1,y=o.length-1;y>=0;y-=1){var p,E,A=o[y],S=(p=s.get(A))!==null&&p!==void 0?p:0,O=(E=u.get(A))!==null&&E!==void 0?E:0,w=O===0;if(!g||!w){var I=S+O;w?I+=h:g&&(I-=h);var P=I-h,N=I+h;if(P<=d&&d<=N)return A;g=w}}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&&!U(a.from)&&a.to===e?a.from===t?n.pop():n[n.length-1]=ee(ee({},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],o=i[i.length-1];o!=null&&U(o.from)&&o.from[1]-o.from[0]===e[1]-e[0]&&o.to===e[0]?i[i.length-1]=ee(ee({},o),{},{to:a}):i.push({from:e,to:a});var s=i[i.length-1];return U(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:f}=r[o],c=1,d;U(u)?(c=u[1]-u[0]+1,[d]=u):d=u;for(var h=n?f:d,g=h+c-1,y=n?d:f,p=y-h,E=[],A=function(){var w,I,P=(w=a[S][0])!==null&&w!==void 0?w:Number.NEGATIVE_INFINITY,N=(I=a[S][1])!==null&&I!==void 0?I:Number.POSITIVE_INFINITY,R,F=[[P,h-1],[h,g],[g+1,N]].map(b=>{var[C,D]=b;return[Math.max(C,P),Math.min(D,N)]}).filter(b=>{var[C,D]=b;return C<=D}).map(b=>{var[C,D]=b;return h<=C&&g>=D?(R=[C+p,D+p],R):g<C?[C-c,D-c]:b}).map(b=>{var[C,D]=b;return y>C&&y<=D?[[C,y-1],[y+c,D+c]]:b===R?[b]:y<=C?[[C+c,D+c]]:[b]}).flat();E.push(...F)},S=0;S<a.length;S+=1)A();a=E.map(O=>{var[w,I]=O;return[Number.isFinite(w)?w:null,Number.isFinite(I)?I:null]})},o=n?r.length-1:0;n?o>=0:o<r.length;n?o-=1:o+=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),o=[],s=0;s<a.length;s+=1)for(var u=a[s],f=0;f<i.length;f+=1){var c=i[f];o.push(new m(u[0],c[0],u[1],c[1]))}return o}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]:$,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$;return T.translateRange(e,t,r,!0)}static getModelRanges(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$,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]:$,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$;return this.translateRange(e,t,r,!1)}static getVisibleRanges(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$,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:o,floatingTopRowCount:s,floatingBottomRowCount:u,floatingLeftColumnCount:f,floatingRightColumnCount:c,floatingLeftWidth:d,floatingRightWidth:h,floatingTopHeight:g,floatingBottomHeight:y,columnCount:p,rowCount:E}=e,A=n,S=a,O=i,w=o;return r!=null&&(r>f&&(A+=d),r<p-c&&(O-=h)),t!=null&&(t>s&&(S+=g),t<E-u&&(w-=y)),{x1:A,y1:S,x2:O,y2:w}}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:o}=e;return!T.isMacPlatform()&&e.shiftKey&&e.deltaX===0&&e.deltaY!==0&&(i=e.deltaY,o=e.deltaX),e?.deltaMode===WheelEvent.DOM_DELTA_PAGE?(i*=t,o*=r):e?.deltaMode===WheelEvent.DOM_DELTA_LINE&&(T.isMacPlatform()?(i=Math.round(i*n),o=Math.round(o*a)):(i=Math.round(i*this.PIXELS_PER_LINE),o=Math.round(o*this.PIXELS_PER_LINE))),{deltaX:i,deltaY:o}}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:o,gridY:s,width:u,height:f,verticalBarWidth:c,horizontalBarHeight:d}=t,h=K(o+r,o,u-c),g=K(o+a,o,u-c),y=K(s+n,s,f-d),p=K(s+i,s,f-d);return{x1:h,y1:y,x2:g,y2:p,token:e.token}}static getTextRenderMetrics(e,t,r){var{metrics:n,model:a,theme:i}=e,{firstColumn:o,allColumnXs:s,allColumnWidths:u,allRowYs:f,allRowHeights:c,modelRows:d,modelColumns:h}=n,{cellHorizontalPadding:g,treeDepthIndent:y,treeHorizontalPadding:p}=i,E=Y(d,r),A=Y(h,t),S=a.textAlignForCell(A,E),O=Y(s,t),w=Y(f,r),I=Y(u,t),P=Y(c,r),N=t===o,R=0;et(a)&&a.hasExpandableRows&&N&&(R=y*(a.depthForRow(r)+1)+p);var F=I-R,b=O+g,C=w+P*.5;return S==="right"?b=O+F-g:S==="center"&&(b=O+F*.5),b+=R,{width:F-g*2,x:b,y:C}}static findTokensWithProtocolInText(e){var t=Ie(e);return t.filter(r=>r.type==="url"?/^https?:\/\//.test(r.value):!0)}}ye(T,"PIXELS_PER_LINE",100/3);const ve=T;function me(l,e){var t=Object.keys(l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(l);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(l,n).enumerable})),t.push.apply(t,r)}return t}function ge(l){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?me(Object(t),!0).forEach(function(r){ot(l,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(t)):me(Object(t)).forEach(function(r){Object.defineProperty(l,r,Object.getOwnPropertyDescriptor(t,r))})}return l}function ot(l,e,t){return e=it(e),e in l?Object.defineProperty(l,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):l[e]=t,l}function it(l){var e=ut(l,"string");return typeof e=="symbol"?e:String(e)}function ut(l,e){if(typeof l!="object"||l===null)return l;var t=l[Symbol.toPrimitive];if(t!==void 0){var r=t.call(l,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(l)}var st=(l,e)=>{var t=!1,r=be(l,ge(ge({},e),{},{dispose:()=>{t||(t=!0,r.clear(),t=!1)}}));return r};const ct=st;function ft(l,e,t){return e=dt(e),e in l?Object.defineProperty(l,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):l[e]=t,l}function dt(l){var e=vt(l,"string");return typeof e=="symbol"?e:String(e)}function vt(l,e){if(typeof l!="object"||l===null)return l;var t=l[Symbol.toPrimitive];if(t!==void 0){var r=t.call(l,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(l)}var re=5e3;class mt extends Re{constructor(){super(...arguments),ft(this,"getCachedTokensInText",ct((e,t)=>{if(t>=e.length)return ve.findTokensWithProtocolInText(e);var r=e.slice(t-1,re).search(/\s/),n=t+r;r===-1&&(n=Math.min(re,e.length));var a=e.substring(0,n);return ve.findTokensWithProtocolInText(a)}))}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]:re,n=this.textForCell(e,t);return this.getCachedTokensInText(n,r)}renderTypeForCell(e,t){return"text"}}const gt=mt;function ae(l,e,t){return e=pt(e),e in l?Object.defineProperty(l,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):l[e]=t,l}function pt(l){var e=ht(l,"string");return typeof e=="symbol"?e:String(e)}function ht(l,e){if(typeof l!="object"||l===null)return l;var t=l[Symbol.toPrimitive];if(t!==void 0){var r=t.call(l,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(l)}var z=[],Et=new Set;class Te extends gt{constructor(e){super(),ae(this,"dh",void 0),ae(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 z}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 z}get initialMovedRows(){return z}get initialColumnHeaderGroups(){return z}get layoutHints(){return null}get frontColumns(){return z}get backColumns(){return z}get keyColumnSet(){return Et}get frozenColumns(){return z}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 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.")}}ae(Te,"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"}));const Nt=Te;export{It as C,m as G,bt as I,At as L,Ot as S,Ct as a,Nt as b,gt as c,T as d,Rt as e,ve as f,ne as g,et as i,ct as m};
2
- //# sourceMappingURL=IrisGridModel-2a36e41a.js.map
1
+ import{M as we,bj as Oe,I as k,K as Ae,L as oe,r as J,be as Ce,ai as K,bn as Ie,U as be,H as Re}from"./vendor-e600113a.js";import{w as Ne,bc as Pe,G as pe,L as De,e as Z,aW as Y}from"./index-a5f0f1ea.js";import{_ as he}from"./monaco-b5248072.js";import{a8 as xe,c as te,ah as $}from"./ControlType-7a96d66b.js";var le=we.forwardRef((l,e)=>{var{children:t,className:r,disabled:n,id:a,isLinked:i,isLinkedSource:o,isInvalid:s,onClick:u,onMouseEnter:f,onMouseLeave:c,style:d,"data-testid":h}=l,{UNSAFE_className:g}=Oe({},"button");return k.jsxs("button",{ref:e,type:"button",className:Ae("btn-socketed",{"btn-socketed-linked":i!==void 0&&i||o},{"btn-socketed-linked-source":o},{"is-invalid":s},r,g),id:a,onClick:u,onMouseEnter:f,onMouseLeave:c,style:d,disabled:n,"data-testid":h,children:[t,k.jsx(oe,{icon:Ne,className:"linked btn-socketed-icon",transform:"down-1"}),k.jsx(oe,{icon:Pe,className:"is-invalid btn-socketed-icon"})]})});le.displayName="SocketedButton";le.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};const Ot=le;function ie(l,e){var t=Object.keys(l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(l);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(l,n).enumerable})),t.push.apply(t,r)}return t}function Le(l){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ie(Object(t),!0).forEach(function(r){Me(l,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(t)):ie(Object(t)).forEach(function(r){Object.defineProperty(l,r,Object.getOwnPropertyDescriptor(t,r))})}return l}function Me(l,e,t){return e=Fe(e),e in l?Object.defineProperty(l,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):l[e]=t,l}function Fe(l){var e=He(l,"string");return typeof e=="symbol"?e:String(e)}function He(l,e){if(typeof l!="object"||l===null)return l;var t=l[Symbol.toPrimitive];if(t!==void 0){var r=t.call(l,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(l)}var ke=J.lazy(()=>he(()=>import("./Chart-193dc89e.js"),["./Chart-193dc89e.js","./vendor-e600113a.js","./helpers-de833af9.js","./vendor-fb3fd713.css","./index-a5f0f1ea.js","./monaco-b5248072.js","./monaco-f18fde03.css","./index-13e1b819.css","./Plotly-63b44574.js","./plotly-96591286.js","./ControlType-7a96d66b.js","./ControlType-5545c569.css","./DownsamplingError-8e6bdb73.js","./FormatterUtils-f9c9a814.js","./Chart-d34ffe5c.css"],import.meta.url));function At(l){return k.jsx(J.Suspense,{fallback:k.jsx(pe,{}),children:k.jsx(ke,Le({},l))})}function ue(l,e){var t=Object.keys(l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(l);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(l,n).enumerable})),t.push.apply(t,r)}return t}function G(l){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ue(Object(t),!0).forEach(function(r){L(l,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(t)):ue(Object(t)).forEach(function(r){Object.defineProperty(l,r,Object.getOwnPropertyDescriptor(t,r))})}return l}function L(l,e,t){return e=_e(e),e in l?Object.defineProperty(l,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):l[e]=t,l}function _e(l){var e=We(l,"string");return typeof e=="symbol"?e:String(e)}function We(l,e){if(typeof l!="object"||l===null)return l;var t=l[Symbol.toPrimitive];if(t!==void 0){var r=t.call(l,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(l)}var q=De.module("ChartUtils"),se="io.deephaven.time.DateTime",je=36e5,$e=1e6;function Xe(l){return l.asDate!==void 0}function ze(l){return l.asNumber!==void 0}function ce(l){return l.dhTimeZone!==void 0}function Be(l){return l!=null&&l.range!=null&&(l.autorange===!1||l.autorange===void 0)}function Ve(){var l=document.createElement("canvas"),e=l.getContext("webgl")||l.getContext("experimental-webgl");return e!=null&&e instanceof WebGLRenderingContext}var Ye=Ve();class v{static getPlotlyErrorBars(e,t,r){var n=r.map((i,o)=>i-e[o]),a=t.map((i,o)=>e[o]-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,o,s,,u,f,c,d,h]=a,g=s.replace(",","").length,y=o.indexOf(",")>=0||s.indexOf(",")>=0,p=y?",":"",E=c!=null&&c!==""?"e":"f",A=d!==""?d:E,S=u.length+f.length,O="",w="0".concat(g).concat(p,".").concat(S).concat(O).concat(A),I=v.convertNumberPrefix(i),P=v.convertNumberPrefix(h);return{tickformat:w,tickprefix:I,ticksuffix:P,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/$e),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]:v.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=v.getAllAxes(e);return v.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(o=>o.indexOf("axis")>=0),n=0;n<r.length;n+=1){var a=r[n],i=e[a];Be(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 groupArray(e,t){return e.reduce((r,n)=>{var a,i=n[t],o=(a=r.get(i))!==null&&a!==void 0?a:[];return o.push(n),r.set(i,o),r},new Map)}static normalizeColorway(e){if(e!=null){if(Array.isArray(e))return e;if(typeof e=="string")return e.split(" ");q.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}constructor(e){L(this,"dh",void 0),L(this,"daysOfWeek",void 0),this.dh=e,this.daysOfWeek=Object.freeze(e.calendar.DayOfWeek.values()),xe(this)}getAxisFormats(e,t){for(var r=this,n=new Map,a={tickformat:null,ticksuffix:null},i=v.getAllAxes(e),o=v.groupArray(i,"type"),{charts:s}=e,u=0;u<s.length;u+=1)for(var f=s[u],c=0;c<f.series.length;c+=1)for(var d=f.series[c],{sources:h}=d,g=h.filter(A=>A.axis),y=function(){var S=g[p],{axis:O}=S,{type:w}=O,I=o.get(w);Z(I);var P=I.indexOf(O),N=r.getAxisPropertyName(w);if(N!=null){var R=v.getAxisLayoutProperty(N,P);if(n.has(R))q.debug("".concat(R," already added."));else{q.debug("Adding ".concat(R," to axisFormats."));var F=r.getPlotlyAxisFormat(S,t);if(F===null)n.set(R,a);else{n.set(R,F);var{businessCalendar:b}=O;if(b!=null){var C=[],{businessPeriods:D,businessDays:_,holidays:H,timeZone:W}=b,B=t?.getColumnTypeFormatter(se),j;ce(B)&&(j=B.dhTimeZone);var X=j?(W.standardOffset-j.standardOffset)/60:0;H.length>0&&C.push(...r.createRangeBreakValuesFromHolidays(H,W,j)),D.forEach(V=>C.push({pattern:"hour",bounds:[v.periodToDecimal(V.close)+X,v.periodToDecimal(V.open)+X]})),_.length<r.daysOfWeek.length&&r.createBoundsFromDays(_).forEach(V=>C.push({pattern:"day of week",bounds:V})),F.rangebreaks=C}if(n.size===f.axes.length)return{v:n}}}}},p=0;p<g.length;p+=1){var E=y();if(typeof E=="object")return E.v}return n}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&&Ye&&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(v.MODE_LINES),(r??!0)&&a.add(v.MODE_MARKERS);break;case n.plot.SeriesPlotStyle.LINE:(t??!0)&&a.add(v.MODE_LINES),(r??!1)&&a.add(v.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?v.ORIENTATION.HORIZONTAL:v.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:o,isShapesVisible:s,plotStyle:u,lineColor:f,shapeColor:c,sources:d,shape:h,shapeSize:g}=e,y=d.some(O=>{var w;return(w=O.axis)===null||w===void 0?void 0:w.businessCalendar}),p=this.getChartType(u,y,a),E=this.getPlotlyChartMode(u,o??void 0,s??void 0),A=this.getPlotlySeriesOrientation(e),S=v.makeSeriesData(p,E,i,n,A);return this.addSourcesToSeriesData(S,u,d,t),this.addStylingToSeriesData(S,u,f,c,h,g,r),S}addSourcesToSeriesData(e,t,r,n){for(var a=e,i=0;i<r.length;i+=1){var o=r[i],{axis:s,type:u}=o,f=this.getPlotlyProperty(t,u);Ce(a,f,[]);var c=s!=null?this.getAxisPropertyName(s.type):null;if(c!=null){var d=n.get(s.type);if(d){var h=d.indexOf(s),g=h>0?"".concat(h+1):"";a["".concat(c,"axis")]="".concat(c).concat(g)}}}}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,o=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=v.getMarkerSymbol(a)}catch(f){q.warn("Unable to handle shape",a,":",f)}i!=null&&(u.marker.size=i*v.DEFAULT_MARKER_SIZE),o!=null&&t!==s.plot.SeriesPlotStyle.PIE&&(u.visible=o)}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,o=v.getAllAxes(t),s=0;s<t.charts.length;s+=1){var u=t.charts[s],f=r?.(u),c=this.getChartBounds(t,u,n,a);this.updateLayoutAxes(i,u.axes,o,n,a,c,f)}this.removeStaleAxes(i,o)}getChartBounds(e,t,r,n){var a,{dh:i}=this,{cols:o,rows:s}=e,{column:u,colspan:f,row:c,rowspan:d}=t,h=u+f,g=c+d,y=1/o,p=1/s,E=v.AXIS_SIZE_PX/r,A=v.AXIS_SIZE_PX/n,S={bottom:(s-g)*p+(g<s?A/2:0),top:(s-c)*p-(c>0?A/2:0),left:u*y+(u>0?E/2:0),right:h*y-(h<o?E/2:0)},O=v.groupArray(t.axes,"position"),w=(a=O.get(i.plot.AxisPosition.RIGHT))!==null&&a!==void 0?a:[];return w.length>0&&(r>0?S.right-=(S.right-S.left)*Math.max(0,Math.min(v.LEGEND_WIDTH_PX/r,v.MAX_LEGEND_SIZE)):S.right-=(S.right-S.left)*v.DEFAULT_AXIS_SIZE),S}getPlotlyDateFormat(e,t,r){var{dh:n}=this,a=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,o=e?.getColumnTypeFormatter(t);return o!=null&&ce(o)&&o.dhTimeZone!=null&&o.showTimeZone&&(i=n.i18n.DateTimeFormat.format(" z",new Date,o.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,o=null;return te.isDateType(a)?(o=this.getPlotlyDateFormat(t,a,i),o=v.addTickSpacing(o,n,!0)):te.isNumberType(a)&&(o=v.getPlotlyNumberFormat(t,a,i),o=v.addTickSpacing(o,n,!1)),n.formatType===r.plot.AxisFormatType.CATEGORY&&(o?o.type="category":o={type:"category",tickformat:void 0,ticksuffix:void 0}),o}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},o=arguments.length>6?arguments[6]:void 0,{dh:s}=this,u=n>0?Math.max(v.MIN_AXIS_SIZE,Math.min(v.AXIS_SIZE_PX/a,v.MAX_AXIS_SIZE)):v.DEFAULT_AXIS_SIZE,f=a>0?Math.max(v.MIN_AXIS_SIZE,Math.min(v.AXIS_SIZE_PX/n,v.MAX_AXIS_SIZE)):v.DEFAULT_AXIS_SIZE,c=e,d=v.groupArray(t,"position"),h=v.groupArray(t,"type"),g=[...h.keys()],y=v.groupArray(r,"type"),p=0;p<g.length;p+=1){var E=g[p],A=this.getAxisPropertyName(E);if(A!=null){var S=h.get(E),O=y.get(E),w=E===s.plot.AxisType.Y,I=w?a:n;Z(S),Z(O);for(var P=0;P<S.length;P+=1){var N=S[P],R=O.indexOf(N),F=v.getAxisLayoutProperty(A,R);c[F]==null&&(c[F]={});var b=c[F];if(b!=null){this.updateLayoutAxis(b,N,P,d,u,f,i);var{range:C,autorange:D}=b;if(o!=null&&C!==void 0&&(D===void 0||D===!1)){var _=o(N),[H,W]=_(C);q.debug("Setting downsample range",I,H,W),N.range(I,H,W)}else N.range(I)}}}}}removeStaleAxes(e,t){for(var r=e,n=v.groupArray(t,"type"),a=[...n.keys()],i=0;i<a.length;i+=1){var o=a[i],s=n.get(o);Z(s);var u=s.length,f=this.getAxisPropertyName(o);if(f!=null)for(var c=v.getAxisLayoutProperty(f,u);r[c]!=null;)delete r[c],u+=1,c=v.getAxisLayoutProperty(f,u)}}updateLayoutAxis(e,t,r,n,a,i,o){var s,{dh:u}=this,f=t.type===u.plot.AxisType.Y,c=f?i:a,d=e,h=(s=t.label)!==null&&s!==void 0?s:"";if(d.title!==void 0&&typeof d.title!="string"?d.title.text=h:d.title={text:h},t.log&&(d.type="log"),d.side=this.getAxisSide(t.position),r>0){var g,y;d.overlaying=(g=this.getAxisPropertyName(t.type))!==null&&g!==void 0?g:void 0;var p=(y=n.get(t.position))!==null&&y!==void 0?y:[],E=p.indexOf(t);E>0&&(d.anchor="free",t.position===u.plot.AxisPosition.RIGHT?d.position=o.right+(E-p.length+1)*c:t.position===u.plot.AxisPosition.TOP?d.position=o.top+(E-p.length+1)*c:t.position===u.plot.AxisPosition.BOTTOM?d.position=o.bottom+(p.length-E+1)*c:t.position===u.plot.AxisPosition.LEFT&&(d.position=o.left+(p.length-E+1)*c))}else if(t.type===u.plot.AxisType.X){var A=n.get(u.plot.AxisPosition.LEFT)||[],S=n.get(u.plot.AxisPosition.RIGHT)||[],O=Math.max(o.left,o.left+(A.length-1)*i),w=Math.min(o.right-(S.length-1)*i,o.right);d.domain=[O,w]}else if(t.type===u.plot.AxisType.Y){var I=n.get(u.plot.AxisPosition.BOTTOM)||[],P=n.get(u.plot.AxisPosition.TOP)||[],N=Math.max(o.bottom,o.bottom+(I.length-1)*a),R=Math.min(o.top-(P.length-1)*a,o.top);d.domain=[N,R]}}createBoundsFromDays(e){var t=e.map(i=>this.daysOfWeek.indexOf(i)),r=this.daysOfWeek.filter(i=>!e.includes(i)).map(i=>this.daysOfWeek.indexOf(i)),n=new Set;r.forEach(i=>{for(var o=i+1;o<i+this.daysOfWeek.length;o+=1){var s=o%this.daysOfWeek.length;if(t.includes(s)){n.add(s);break}}});var a=[];return n.forEach(i=>{for(var o=i-1;o>i-this.daysOfWeek.length;o-=1){var s=o<0?o+this.daysOfWeek.length:o;if(t.includes(s)){var u=(s+1)%7;a.push([u,i]);break}}}),a}createRangeBreakValuesFromHolidays(e,t,r){var n=[],a=[];return e.forEach(i=>{i.businessPeriods.length>0?a.push(...this.createPartialHoliday(i,t,r)):n.push(this.createFullHoliday(i,t,r))}),[{values:n},...a]}createFullHoliday(e,t,r){return this.adjustDateForTimeZone("".concat(e.date.toString()," 00:00:00.000000"),t,r)}createPartialHoliday(e,t,r){var n=e.date.toString(),a=["00:00"];e.businessPeriods.forEach(d=>{a.push(d.open),a.push(d.close)}),a.push("24:00");for(var i=[],o=0;o<a.length;o+=2){var s=a[o],u=a[o+1];if(s!==u){var f=[this.adjustDateForTimeZone("".concat(n," ").concat(s,":00.000000"),t,r)],c=je*(v.periodToDecimal(u)-v.periodToDecimal(s));i.push({values:f,dvalue:c})}}return i}adjustDateForTimeZone(e,t,r){return r&&r.standardOffset!==t.standardOffset?this.unwrapValue(this.wrapValue(e,se,t),r):e}makeFigureSettings(e,t){var{dh:r}=this,{series:n,xAxis:a,type:i}=e,o=v.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(f=>({plotStyle:"".concat(i),name:f,dataSources:[{type:"".concat(r.plot.SourceType.X),columnName:a??"",axis:s,table:t},{type:"".concat(r.plot.SourceType.Y),columnName:f,axis:u,table:t}]}))}],title:o}}unwrapValue(e,t){var{dh:r}=this;if(e!=null){if(Xe(e))return r.i18n.DateTimeFormat.format(v.DATE_FORMAT,e,t);if(ze(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(te.isDateType(t)&&typeof e=="string"){var a=e,i=v.DATE_FORMAT.substr(0,e.length),o=n.i18n.DateTimeFormat.parse(i,a);if(!r)return o;var s="".concat(i," Z"),u=n.i18n.DateTimeFormat.format("Z",o,r),f=n.i18n.DateTimeFormat.parse(s,"".concat(a," ").concat(u)),c=n.i18n.DateTimeFormat.format("Z",f,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}=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}}]},layout:this.makeDefaultLayout(e)}}makeDefaultLayout(e){var{dh:t}=this,{paper_bgcolor:r,plot_bgcolor:n,title_color:a,coastline_color:i,land_color:o,ocean_color:s,lake_color:u,river_color:f}=e,c={paper_bgcolor:r,plot_bgcolor:n,autosize:!0,colorway:v.normalizeColorway(e?.colorway),font:{family:"'Fira Sans', sans-serif",color:a},title:{font:{color:a},xanchor:"center",xref:"paper",yanchor:"top",pad:G({},v.DEFAULT_TITLE_PADDING),y:1},legend:{font:{color:a}},margin:G({},v.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:o,oceancolor:s,lakecolor:u,rivercolor:f}};return c.datarevision=0,c}hydrateSettings(e){var{dh:t}=this;return G(G({},e),{},{type:e.type!=null?t.plot.SeriesPlotStyle[e.type]:void 0})}}L(v,"DEFAULT_AXIS_SIZE",.15);L(v,"MIN_AXIS_SIZE",.025);L(v,"MAX_AXIS_SIZE",.2);L(v,"AXIS_SIZE_PX",75);L(v,"LEGEND_WIDTH_PX",50);L(v,"MAX_LEGEND_SIZE",.25);L(v,"ORIENTATION",Object.freeze({HORIZONTAL:"h",VERTICAL:"v"}));L(v,"DATE_FORMAT","yyyy-MM-dd HH:mm:ss.SSSSSS");L(v,"DEFAULT_MARGIN",Object.freeze({l:60,r:50,t:30,b:60,pad:0}));L(v,"DEFAULT_TITLE_PADDING",Object.freeze({t:8}));L(v,"SUBTITLE_LINE_HEIGHT",25);L(v,"DEFAULT_MARKER_SIZE",6);L(v,"MODE_MARKERS","markers");L(v,"MODE_LINES","lines");const Ct=v;function M(l,e,t){return e=Ke(e),e in l?Object.defineProperty(l,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):l[e]=t,l}function Ke(l){var e=Ze(l,"string");return typeof e=="symbol"?e:String(e)}function Ze(l,e){if(typeof l!="object"||l===null)return l;var t=l[Symbol.toPrimitive];if(t!==void 0){var r=t.call(l,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(l)}class x{constructor(e){M(this,"dh",void 0),M(this,"listeners",void 0),M(this,"formatter",void 0),M(this,"renderOptions",void 0),M(this,"rect",void 0),M(this,"isDownsamplingDisabled",void 0),M(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(x.EVENT_UPDATED,{detail:e}))}fireDisconnect(){this.fireEvent(new CustomEvent(x.EVENT_DISCONNECT))}fireReconnect(){this.fireEvent(new CustomEvent(x.EVENT_RECONNECT))}fireDownsampleStart(e){this.fireEvent(new CustomEvent(x.EVENT_DOWNSAMPLESTARTED,{detail:e}))}fireDownsampleFinish(e){this.fireEvent(new CustomEvent(x.EVENT_DOWNSAMPLEFINISHED,{detail:e}))}fireDownsampleFail(e){this.fireEvent(new CustomEvent(x.EVENT_DOWNSAMPLEFAILED,{detail:e}))}fireDownsampleNeeded(e){this.fireEvent(new CustomEvent(x.EVENT_DOWNSAMPLENEEDED,{detail:e}))}fireLoadFinished(){this.fireEvent(new CustomEvent(x.EVENT_LOADFINISHED))}fireError(e){this.fireEvent(new CustomEvent(x.EVENT_ERROR,{detail:e}))}}M(x,"EVENT_UPDATED","ChartModel.EVENT_UPDATED");M(x,"EVENT_DISCONNECT","ChartModel.EVENT_DISCONNECT");M(x,"EVENT_RECONNECT","ChartModel.EVENT_RECONNECT");M(x,"EVENT_DOWNSAMPLESTARTED","ChartModel.EVENT_DOWNSAMPLESTARTED");M(x,"EVENT_DOWNSAMPLEFINISHED","ChartModel.EVENT_DOWNSAMPLEFINISHED");M(x,"EVENT_DOWNSAMPLEFAILED","ChartModel.EVENT_DOWNSAMPLEFAILED");M(x,"EVENT_DOWNSAMPLENEEDED","ChartModel.EVENT_DOWNSAMPLENEEDED");M(x,"EVENT_LOADFINISHED","ChartModel.EVENT_LOADFINISHED");M(x,"EVENT_ERROR","ChartModel.EVENT_ERROR");const It=x;function fe(l,e){var t=Object.keys(l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(l);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(l,n).enumerable})),t.push.apply(t,r)}return t}function qe(l){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?fe(Object(t),!0).forEach(function(r){Qe(l,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(t)):fe(Object(t)).forEach(function(r){Object.defineProperty(l,r,Object.getOwnPropertyDescriptor(t,r))})}return l}function Qe(l,e,t){return e=Je(e),e in l?Object.defineProperty(l,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):l[e]=t,l}function Je(l){var e=Ge(l,"string");return typeof e=="symbol"?e:String(e)}function Ge(l,e){if(typeof l!="object"||l===null)return l;var t=l[Symbol.toPrimitive];if(t!==void 0){var r=t.call(l,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(l)}var Ue=J.lazy(()=>he(()=>import("./IrisGrid-bdc67971.js"),["./IrisGrid-bdc67971.js","./vendor-e600113a.js","./helpers-de833af9.js","./vendor-fb3fd713.css","./index-a5f0f1ea.js","./monaco-b5248072.js","./monaco-f18fde03.css","./index-13e1b819.css","./ControlType-7a96d66b.js","./ControlType-5545c569.css","./MissingPartitionError-8b86a8cd.js","./FormatterUtils-f9c9a814.js","./IrisGridThemeProvider-417b77f6.js","./IrisGridShortcuts-1ac3bc80.js","./TokenBoxCellRenderer-758c4877.js","./TokenBoxCellRenderer-8152a7a1.css","./IrisGridThemeProvider-15ce00be.css","./Grid-f62da059.js","./Grid-6b71b6c4.css","./IrisGrid-4424e8a8.css"],import.meta.url)),Ee=J.forwardRef((l,e)=>k.jsx(J.Suspense,{fallback:k.jsx(pe,{}),children:k.jsx(Ue,qe({ref:e},l))}));Ee.displayName="LazyIrisGrid";const bt=Ee;function et(l){return l?.hasExpandableRows!==void 0}function Q(l,e,t){return e=tt(e),e in l?Object.defineProperty(l,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):l[e]=t,l}function tt(l){var e=rt(l,"string");return typeof e=="symbol"?e:String(e)}function rt(l,e){if(typeof l!="object"||l===null)return l;var t=l[Symbol.toPrimitive];if(t!==void 0){var r=t.call(l,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(l)}var ne;(function(l){l.DOWN="DOWN",l.UP="UP",l.LEFT="LEFT",l.RIGHT="RIGHT"})(ne||(ne={}));class m{static normalize(e,t,r,n){var a=e,i=t,o=r,s=n;return a!=null&&o!=null&&o<a&&(a=o,o=e),i!=null&&s!=null&&s<i&&(i=s,s=t),[a,i,o,s]}static makeNormalized(e,t,r,n){return new m(...m.normalize(e,t,r,n))}static makeCell(e,t){return new m(e,t,e,t)}static makeColumn(e){return new m(e,null,e,null)}static makeRow(e){return new m(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 o=t[i];if(a.contains(o))t.splice(i,1);else if(o.contains(a)){r=!0,t[n]=o,t.splice(i,1);break}else if(a.startRow===o.startRow&&a.endRow===o.endRow){if(a.touches(o)){var{startRow:s,endRow:u}=a,f=m.minOrNull(a.startColumn,o.startColumn),c=m.maxOrNull(a.endColumn,o.endColumn);r=!0,t[n]=new m(f,s,c,u),t.splice(i,1);break}}else if(a.startColumn===o.startColumn&&a.endColumn===o.endColumn&&a.touches(o)){var{startColumn:d,endColumn:h}=a,g=m.minOrNull(a.startRow,o.startRow),y=m.maxOrNull(a.endRow,o.endRow);r=!0,t[n]=new m(d,g,h,y),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,o,s;if(e.equals(t))return e;var{startColumn:u,startRow:f,endColumn:c,endRow:d}=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,f=f!=null&&t.startRow!=null?Math.max(f,t.startRow):(a=f)!==null&&a!==void 0?a:t.startRow,d=d!=null&&t.endRow!=null?Math.min(d,t.endRow):(i=d)!==null&&i!==void 0?i:t.endRow,u!=null&&u>((o=c)!==null&&o!==void 0?o:-1)||f!=null&&f>((s=d)!==null&&s!==void 0?s:-1)?null:new m(u,f,c,d)}static subtractFromRange(e,t){var r=[],n=m.intersection(e,t);return n==null?[e]:(n.startRow!=null&&(e.startRow==null||e.startRow<n.startRow)&&r.push(new m(e.startColumn,e.startRow,e.endColumn,n.startRow-1)),n.startColumn!=null&&(e.startColumn==null||e.startColumn<n.startColumn)&&r.push(new m(e.startColumn,n.startRow,n.startColumn-1,n.endRow)),n.endColumn!=null&&(e.endColumn==null||e.endColumn>n.endColumn)&&r.push(new m(n.endColumn+1,n.startRow,e.endColumn,n.endRow)),n.endRow!=null&&(e.endRow==null||e.endRow>n.endRow)&&r.push(new m(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(...m.subtractFromRange(e[n],t));return r}static subtractRangesFromRanges(e,t){for(var r=[...e],n=0;n<t.length;n+=1)r=m.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,o;return m.isBounded(e)?e:new m((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,(o=e.endRow)!==null&&o!==void 0?o:r-1)}static boundedRanges(e,t,r){return e.map(n=>m.boundedRange(n,t,r))}static offset(e,t,r){return new m(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]:m.SELECTION_DIRECTION.DOWN;if(e.length===0)return null;var a=-1;if(t!=null&&r!=null&&(a=e.findIndex(d=>d.containsCell(t,r)),a>=0)){var i=e[a],o=i.nextCell(t,r,n);if(o!=null)return o}switch(n){case m.SELECTION_DIRECTION.DOWN:case m.SELECTION_DIRECTION.RIGHT:{var s=a<e.length-1?a+1:0,u=e[s];return u.startCell(n)}case m.SELECTION_DIRECTION.LEFT:case m.SELECTION_DIRECTION.UP:{var f=a>0?a-1:e.length-1,c=e[f];return c.startCell(n)}default:throw new Error("Invalid direction: ".concat(n))}}static cellCount(e){return e.reduce((t,r)=>{var n,a,i,o;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)-((o=r.startColumn)!==null&&o!==void 0?o: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]:m.SELECTION_DIRECTION.RIGHT,n=0;n<e.length;n+=1)e[n].forEach(t,r)}constructor(e,t,r,n){Q(this,"startColumn",void 0),Q(this,"startRow",void 0),Q(this,"endColumn",void 0),Q(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 m.isAxisRangeTouching(this.startRow,this.endRow,e.startRow,e.endRow)&&m.isAxisRangeTouching(this.startColumn,this.endColumn,e.startColumn,e.endColumn)}subtract(e){return m.subtractFromRange(this,e)}startCell(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m.SELECTION_DIRECTION.DOWN;if(!m.isBounded(this))throw new Error("Cannot get the startCell of an unbounded range");switch(e){case m.SELECTION_DIRECTION.DOWN:case m.SELECTION_DIRECTION.RIGHT:return{column:this.startColumn,row:this.startRow};case m.SELECTION_DIRECTION.LEFT:case m.SELECTION_DIRECTION.UP:return{column:this.endColumn,row:this.endRow};default:throw new Error("Invalid direction: ".concat(e))}}nextCell(e,t,r){if(!m.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:o}=this;switch(r){case m.SELECTION_DIRECTION.DOWN:if(t<o)return{column:e,row:Math.max(t+1,i)};if(e<a)return{column:Math.max(e+1,n),row:i};break;case m.SELECTION_DIRECTION.UP:if(t>i)return{column:e,row:Math.min(t-1,o)};if(e>n)return{column:Math.min(e-1,a),row:o};break;case m.SELECTION_DIRECTION.RIGHT:if(e<a)return{column:Math.max(e+1,n),row:t};if(t<o)return{column:n,row:Math.max(t+1,i)};break;case m.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,o)};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]:m.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:{}}}}Q(m,"SELECTION_DIRECTION",ne);function nt(l){return Array.isArray(l)&&l.length===2&&(l[0]===null||typeof l[0]=="number")&&(l[1]===null||typeof l[1]=="number")}function U(l){return nt(l)&&l[0]!=null&&l[1]!=null}function de(l,e){var t=Object.keys(l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(l);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(l,n).enumerable})),t.push.apply(t,r)}return t}function ee(l){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?de(Object(t),!0).forEach(function(r){ye(l,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(t)):de(Object(t)).forEach(function(r){Object.defineProperty(l,r,Object.getOwnPropertyDescriptor(t,r))})}return l}function ye(l,e,t){return e=at(e),e in l?Object.defineProperty(l,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):l[e]=t,l}function at(l){var e=lt(l,"string");return typeof e=="symbol"?e:String(e)}function lt(l,e){if(typeof l!="object"||l===null)return l;var t=l[Symbol.toPrimitive];if(t!==void 0){var r=t.call(l,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(l)}function Rt(l){return l?.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:o,allColumnXs:s,allRowYs:u,modelColumns:f,modelRows:c}=r,d=n!==null?c.get(n):null,h=a!==null?f.get(a):null,g=a!==null?s.get(a):null,y=n!==null?u.get(n):null,p=a!==null?i.get(a):null,E=n!==null?o.get(n):null;return{row:n,column:a,modelRow:d??null,modelColumn:h??null,left:g??null,top:y??null,columnWidth:p??null,rowHeight:E??null}}static getColumnHeaderDepthAtY(e,t){var r=T.getRowAtY(e,t),{columnHeaderHeight:n,columnHeaderMaxDepth:a}=t;if(r===null&&e<=n*a)return K(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 o=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 f=o;f<=s;f+=1)if(u=i(f),u!==void 0)return u}static isInItem(e,t,r,n){var a,i,o=(a=t.get(e))!==null&&a!==void 0?a:0,s=(i=r.get(e))!==null&&i!==void 0?i:0;return o<=n&&n<=o+s}static getItemAtOffset(e,t,r,n,a,i,o){var s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,u=s?void 0:T.iterateFloating(r,n,t,d=>{if(T.isInItem(d,i,o,e))return d});if(!s&&u!==void 0)return u;for(var f=0;f<a.length;f+=1){var c=a[f];if(T.isInItem(c,i,o,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:o,allColumnXs:s,allColumnWidths:u,gridX:f}=t;return e<f?null:this.getItemAtOffset(e-f,n,a,i,o,s,u,r)}static getRowAtY(e,t){var{floatingTopRowCount:r,floatingBottomRowCount:n,rowCount:a,visibleRows:i,allRowYs:o,allRowHeights:s,gridY:u}=t;return e<u?null:this.getItemAtOffset(e-u,a,r,n,i,o,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],o=t.get(i);if(o!=null&&n.get(o)!==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:o,floatingLeftWidth:s,visibleColumns:u,allColumnXs:f,allColumnWidths:c,columnHeaderMaxDepth:d}=r,{allowColumnResize:h,headerSeparatorHandleSize:g}=n;if(d*i<t||!h||g<=0)return null;for(var y=e-a,p=g*.5,E=!1,A=o.length-1;A>=0;A-=1){var S,O,w=o[A],I=(S=f.get(w))!==null&&S!==void 0?S:0,P=(O=c.get(w))!==null&&O!==void 0?O:0,N=P===0;if(!E||!N){var R=I+P;N?R+=p:E&&(R-=p);var F=R-p,b=R+p;if(F<=y&&y<=b)return w;E=N}}E=!1;for(var C=u.length-1;C>=0;C-=1){var D,_,H=u[C],W=(D=f.get(H))!==null&&D!==void 0?D:0,B=(_=c.get(H))!==null&&_!==void 0?_:0,j=B===0;if(W<s-B)return null;if(!E||!j){var X=W+B;j?X+=p:E&&(X-=p);var V=X-p,Se=X+p;if(V<=y&&y<=Se)return H;E=j}}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 o=r[i];if(!T.isItemHidden(o,t))break;n.push(o)}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:o,allRowYs:s,allRowHeights:u}=r,{allowRowResize:f,headerSeparatorHandleSize:c}=n;if(a<e||!f||c<=0)return null;for(var d=t-i,h=c*.5,g=!1,y=o.length-1;y>=0;y-=1){var p,E,A=o[y],S=(p=s.get(A))!==null&&p!==void 0?p:0,O=(E=u.get(A))!==null&&E!==void 0?E:0,w=O===0;if(!g||!w){var I=S+O;w?I+=h:g&&(I-=h);var P=I-h,N=I+h;if(P<=d&&d<=N)return A;g=w}}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&&!U(a.from)&&a.to===e?a.from===t?n.pop():n[n.length-1]=ee(ee({},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],o=i[i.length-1];o!=null&&U(o.from)&&o.from[1]-o.from[0]===e[1]-e[0]&&o.to===e[0]?i[i.length-1]=ee(ee({},o),{},{to:a}):i.push({from:e,to:a});var s=i[i.length-1];return U(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:f}=r[o],c=1,d;U(u)?(c=u[1]-u[0]+1,[d]=u):d=u;for(var h=n?f:d,g=h+c-1,y=n?d:f,p=y-h,E=[],A=function(){var w,I,P=(w=a[S][0])!==null&&w!==void 0?w:Number.NEGATIVE_INFINITY,N=(I=a[S][1])!==null&&I!==void 0?I:Number.POSITIVE_INFINITY,R,F=[[P,h-1],[h,g],[g+1,N]].map(b=>{var[C,D]=b;return[Math.max(C,P),Math.min(D,N)]}).filter(b=>{var[C,D]=b;return C<=D}).map(b=>{var[C,D]=b;return h<=C&&g>=D?(R=[C+p,D+p],R):g<C?[C-c,D-c]:b}).map(b=>{var[C,D]=b;return y>C&&y<=D?[[C,y-1],[y+c,D+c]]:b===R?[b]:y<=C?[[C+c,D+c]]:[b]}).flat();E.push(...F)},S=0;S<a.length;S+=1)A();a=E.map(O=>{var[w,I]=O;return[Number.isFinite(w)?w:null,Number.isFinite(I)?I:null]})},o=n?r.length-1:0;n?o>=0:o<r.length;n?o-=1:o+=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),o=[],s=0;s<a.length;s+=1)for(var u=a[s],f=0;f<i.length;f+=1){var c=i[f];o.push(new m(u[0],c[0],u[1],c[1]))}return o}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]:$,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$;return T.translateRange(e,t,r,!0)}static getModelRanges(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$,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]:$,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$;return this.translateRange(e,t,r,!1)}static getVisibleRanges(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$,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:o,floatingTopRowCount:s,floatingBottomRowCount:u,floatingLeftColumnCount:f,floatingRightColumnCount:c,floatingLeftWidth:d,floatingRightWidth:h,floatingTopHeight:g,floatingBottomHeight:y,columnCount:p,rowCount:E}=e,A=n,S=a,O=i,w=o;return r!=null&&(r>f&&(A+=d),r<p-c&&(O-=h)),t!=null&&(t>s&&(S+=g),t<E-u&&(w-=y)),{x1:A,y1:S,x2:O,y2:w}}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:o}=e;return!T.isMacPlatform()&&e.shiftKey&&e.deltaX===0&&e.deltaY!==0&&(i=e.deltaY,o=e.deltaX),e?.deltaMode===WheelEvent.DOM_DELTA_PAGE?(i*=t,o*=r):e?.deltaMode===WheelEvent.DOM_DELTA_LINE&&(T.isMacPlatform()?(i=Math.round(i*n),o=Math.round(o*a)):(i=Math.round(i*this.PIXELS_PER_LINE),o=Math.round(o*this.PIXELS_PER_LINE))),{deltaX:i,deltaY:o}}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:o,gridY:s,width:u,height:f,verticalBarWidth:c,horizontalBarHeight:d}=t,h=K(o+r,o,u-c),g=K(o+a,o,u-c),y=K(s+n,s,f-d),p=K(s+i,s,f-d);return{x1:h,y1:y,x2:g,y2:p,token:e.token}}static getTextRenderMetrics(e,t,r){var{metrics:n,model:a,theme:i}=e,{firstColumn:o,allColumnXs:s,allColumnWidths:u,allRowYs:f,allRowHeights:c,modelRows:d,modelColumns:h}=n,{cellHorizontalPadding:g,treeDepthIndent:y,treeHorizontalPadding:p}=i,E=Y(d,r),A=Y(h,t),S=a.textAlignForCell(A,E),O=Y(s,t),w=Y(f,r),I=Y(u,t),P=Y(c,r),N=t===o,R=0;et(a)&&a.hasExpandableRows&&N&&(R=y*(a.depthForRow(r)+1)+p);var F=I-R,b=O+g,C=w+P*.5;return S==="right"?b=O+F-g:S==="center"&&(b=O+F*.5),b+=R,{width:F-g*2,x:b,y:C}}static findTokensWithProtocolInText(e){var t=Ie(e);return t.filter(r=>r.type==="url"?/^https?:\/\//.test(r.value):!0)}}ye(T,"PIXELS_PER_LINE",100/3);const ve=T;function me(l,e){var t=Object.keys(l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(l);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(l,n).enumerable})),t.push.apply(t,r)}return t}function ge(l){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?me(Object(t),!0).forEach(function(r){ot(l,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(t)):me(Object(t)).forEach(function(r){Object.defineProperty(l,r,Object.getOwnPropertyDescriptor(t,r))})}return l}function ot(l,e,t){return e=it(e),e in l?Object.defineProperty(l,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):l[e]=t,l}function it(l){var e=ut(l,"string");return typeof e=="symbol"?e:String(e)}function ut(l,e){if(typeof l!="object"||l===null)return l;var t=l[Symbol.toPrimitive];if(t!==void 0){var r=t.call(l,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(l)}var st=(l,e)=>{var t=!1,r=be(l,ge(ge({},e),{},{dispose:()=>{t||(t=!0,r.clear(),t=!1)}}));return r};const ct=st;function ft(l,e,t){return e=dt(e),e in l?Object.defineProperty(l,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):l[e]=t,l}function dt(l){var e=vt(l,"string");return typeof e=="symbol"?e:String(e)}function vt(l,e){if(typeof l!="object"||l===null)return l;var t=l[Symbol.toPrimitive];if(t!==void 0){var r=t.call(l,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(l)}var re=5e3;class mt extends Re{constructor(){super(...arguments),ft(this,"getCachedTokensInText",ct((e,t)=>{if(t>=e.length)return ve.findTokensWithProtocolInText(e);var r=e.slice(t-1,re).search(/\s/),n=t+r;r===-1&&(n=Math.min(re,e.length));var a=e.substring(0,n);return ve.findTokensWithProtocolInText(a)}))}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]:re,n=this.textForCell(e,t);return this.getCachedTokensInText(n,r)}renderTypeForCell(e,t){return"text"}}const gt=mt;function ae(l,e,t){return e=pt(e),e in l?Object.defineProperty(l,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):l[e]=t,l}function pt(l){var e=ht(l,"string");return typeof e=="symbol"?e:String(e)}function ht(l,e){if(typeof l!="object"||l===null)return l;var t=l[Symbol.toPrimitive];if(t!==void 0){var r=t.call(l,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(l)}var z=[],Et=new Set;class Te extends gt{constructor(e){super(),ae(this,"dh",void 0),ae(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 z}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 z}get initialMovedRows(){return z}get initialColumnHeaderGroups(){return z}get layoutHints(){return null}get frontColumns(){return z}get backColumns(){return z}get keyColumnSet(){return Et}get frozenColumns(){return z}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 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.")}}ae(Te,"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"}));const Nt=Te;export{It as C,m as G,bt as I,At as L,Ot as S,Ct as a,Nt as b,gt as c,T as d,Rt as e,ve as f,ne as g,et as i,ct as m};
2
+ //# sourceMappingURL=IrisGridModel-7513b4f9.js.map