@deephaven/code-studio 1.23.0 → 1.23.1-legacy-table-plugin.bbf55c8.0

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 (41) hide show
  1. package/build/assets/{AppRoot-DbQCWZTt.js → AppRoot-BuL0lHHY.js} +4 -4
  2. package/build/assets/{AppRoot-DbQCWZTt.js.map → AppRoot-BuL0lHHY.js.map} +1 -1
  3. package/build/assets/{Chart-DcAu2C8r.js → Chart-DKqBjFyT.js} +2 -2
  4. package/build/assets/{Chart-DcAu2C8r.js.map → Chart-DKqBjFyT.js.map} +1 -1
  5. package/build/assets/{ControlType-Befg12ds.js → ControlType-BLIWbm69.js} +4 -4
  6. package/build/assets/{ControlType-Befg12ds.js.map → ControlType-BLIWbm69.js.map} +1 -1
  7. package/build/assets/{FormatterUtils-MUBvtVZH.js → FormatterUtils-twHdmGXI.js} +2 -2
  8. package/build/assets/{FormatterUtils-MUBvtVZH.js.map → FormatterUtils-twHdmGXI.js.map} +1 -1
  9. package/build/assets/{Grid-NISpLPEC.js → Grid-CMnbHmCk.js} +2 -2
  10. package/build/assets/{Grid-NISpLPEC.js.map → Grid-CMnbHmCk.js.map} +1 -1
  11. package/build/assets/{GridTokenMouseHandler-DYoFGIB4.js → GridTokenMouseHandler-B-shYgV-.js} +2 -2
  12. package/build/assets/{GridTokenMouseHandler-DYoFGIB4.js.map → GridTokenMouseHandler-B-shYgV-.js.map} +1 -1
  13. package/build/assets/{IrisGrid-DNjLcT3l.js → IrisGrid-DKZ2yZaM.js} +2 -2
  14. package/build/assets/{IrisGrid-DNjLcT3l.js.map → IrisGrid-DKZ2yZaM.js.map} +1 -1
  15. package/build/assets/{IrisGridModel-DR8-Pxhc.js → IrisGridModel-6f53dQlx.js} +4 -4
  16. package/build/assets/{IrisGridModel-DR8-Pxhc.js.map → IrisGridModel-6f53dQlx.js.map} +1 -1
  17. package/build/assets/{IrisGridShortcuts-CvKofD7x.js → IrisGridShortcuts-DaLHHBjg.js} +2 -2
  18. package/build/assets/{IrisGridShortcuts-CvKofD7x.js.map → IrisGridShortcuts-DaLHHBjg.js.map} +1 -1
  19. package/build/assets/{IrisGridThemeProvider-5LSst4dQ.js → IrisGridThemeProvider-Btc8nPE1.js} +2 -2
  20. package/build/assets/{IrisGridThemeProvider-5LSst4dQ.js.map → IrisGridThemeProvider-Btc8nPE1.js.map} +1 -1
  21. package/build/assets/{LocalWorkspaceStorage-BnIfiumx.js → LocalWorkspaceStorage-CBqyfbb5.js} +2 -2
  22. package/build/assets/{LocalWorkspaceStorage-BnIfiumx.js.map → LocalWorkspaceStorage-CBqyfbb5.js.map} +1 -1
  23. package/build/assets/{MarkdownEditor-CE0PRr71.js → MarkdownEditor-BjlY3grl.js} +2 -2
  24. package/build/assets/{MarkdownEditor-CE0PRr71.js.map → MarkdownEditor-BjlY3grl.js.map} +1 -1
  25. package/build/assets/{MarkdownNotebook-_mAIkamc.js → MarkdownNotebook-_1cGWk6_.js} +2 -2
  26. package/build/assets/{MarkdownNotebook-_mAIkamc.js.map → MarkdownNotebook-_1cGWk6_.js.map} +1 -1
  27. package/build/assets/{MissingPartitionError-COQPMoCk.js → MissingPartitionError-ChbZu1r1.js} +2 -2
  28. package/build/assets/{MissingPartitionError-COQPMoCk.js.map → MissingPartitionError-ChbZu1r1.js.map} +1 -1
  29. package/build/assets/{MockChartModel-B1CLYsnL.js → MockChartModel-DWwBoX83.js} +2 -2
  30. package/build/assets/{MockChartModel-B1CLYsnL.js.map → MockChartModel-DWwBoX83.js.map} +1 -1
  31. package/build/assets/{StyleGuideRoot-dA2xCRM4.js → StyleGuideRoot-BZZo0CSl.js} +2 -2
  32. package/build/assets/{StyleGuideRoot-dA2xCRM4.js.map → StyleGuideRoot-BZZo0CSl.js.map} +1 -1
  33. package/build/assets/{index-CjKdwP8V.js → index-B1f5OcJG.js} +2 -2
  34. package/build/assets/{index-CjKdwP8V.js.map → index-B1f5OcJG.js.map} +1 -1
  35. package/build/assets/{index-CNYwQhEi.js → index-BDMrCE1B.js} +3 -3
  36. package/build/assets/{index-CNYwQhEi.js.map → index-BDMrCE1B.js.map} +1 -1
  37. package/build/assets/{index-CeeM9lsZ.js → index-BIgOr0yI.js} +25 -25
  38. package/build/assets/index-BIgOr0yI.js.map +1 -0
  39. package/build/index.html +1 -1
  40. package/package.json +31 -31
  41. package/build/assets/index-CeeM9lsZ.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import{ab as Mt,bA as Bt,r as c,I as d,bB as Wt,a7 as Yt,K as V,L as Gt,U as xe,bC as qt,M as K,bD as Ht,bE as zt,aw as Kt,H as Xt,aX as Qt,a8 as Jt,a9 as Vt,bF as Zt,bG as Pt,a3 as en,a0 as tn,bH as nn}from"./vendor-CLIsHur_.js";import{J as rn,s as H,a$ as R,K as D,t as on,B,aw as wt,at as an,_ as sn,U as Se,au as ln,u as un,aN as se,R as dn,aP as cn,c7 as pn,G as fn,c0 as hn,b0 as mn,Q as yn,c8 as gn,dr as bn,ds as vn,cj as Pn,cg as wn,dt as xn,ch as Sn,aa as Tn,$ as On,a0 as En,d7 as Cn,da as ke,ay as Ln,dp as Rn,bH as kn,ad as _n,du as q,P as ce,dq as Fn,dv as An,dw as In,dx as _e,dy as Fe,dz as Ae,dA as Ie,I as Dn,D as jn,a as De}from"./ControlType-Befg12ds.js";import{k as Nn,aJ as Un,aK as $n,aL as Mn,aC as xt,L as Z,aF as Bn,e as Wn,M as Yn,b as Gn,aM as qn,aN as Hn,c as zn,N as Te,s as Kn,l as Xn}from"./index-CNYwQhEi.js";import{l as St,p as je,k as Qn}from"./IrisGridShortcuts-CvKofD7x.js";import{e as Jn,U as Vn,l as Ne}from"./monaco-DaE0jI-i.js";function Ue(e,t,n,i,r,s,a){try{var l=e[s](a),o=l.value}catch(u){return void n(u)}l.done?t(o):Promise.resolve(o).then(i,r)}function Zn(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var s=e.apply(t,n);function a(o){Ue(s,i,r,a,l,"next",o)}function l(o){Ue(s,i,r,a,l,"throw",o)}a(void 0)})}}var ei=[["api"],["client"],["dashboardData","*","connection"],["dashboardData","*","sessionWrapper"],["dashboardData","*","openedMap"],["layoutStorage"],["storage"]],Tt=10;function ti(e){var t=new Map;return function(i,r){var s,a=[...(s=t.get(this))!==null&&s!==void 0?s:[],i];if(r===Object(r)&&t.set(r,[...a]),a.shift(),!ni(a,e))return r instanceof Map?Array.from(r.entries()):r}}function ni(e,t){for(var n=function(a){if(e.length===t[a].length&&e.every((l,o)=>t[a][o]==="*"||l===t[a][o]))return{v:!0}},i,r=0;r<t.length;r+=1)if(i=n(r),i)return i.v;return!1}function ii(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Tt,r=Bt({maximumDepth:i});return(t=r(e,ti(n),2))!==null&&t!==void 0?t:""}function ri(e){return JSON.stringify(e,null,2)}function oi(e){var t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),i=String(e.getDate()).padStart(2,"0"),r=String(e.getHours()).padStart(2,"0"),s=String(e.getMinutes()).padStart(2,"0"),a=String(e.getSeconds()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(i,"-").concat(r).concat(s).concat(a)}function ai(e,t,n){return me.apply(this,arguments)}function me(){return me=Zn(function*(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ei,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"".concat(oi(new Date),"_support_logs"),s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:Tt,a=new Mt,l=a.folder(r);l.file("console.txt",e.getFormattedHistory()),t!=null&&l.file("metadata.json",ri(t)),n!=null&&l.file("redux.json",ii(n,i,s));var o=yield a.generateAsync({type:"blob"}),u=document.createElement("a");u.href=URL.createObjectURL(o),u.download="".concat(r,".zip"),u.click()}),me.apply(this,arguments)}function oo(){var e=rn(),t=e.selectedThemeKey,n=e.setSelectedThemeKey,i=e.themes,r=c.useCallback(s=>{s!=null&&n("".concat(s))},[n]);return d.jsx(Wt,{label:"Pick a color scheme",items:i,selectedKey:t,onSelectionChange:r,children:s=>d.jsx(Yt,{children:s.name},s.themeKey)})}function ao(e){var t=e.className,n=e.style;return d.jsx("div",{className:V("dh-logo",t),style:n})}function Ot(e,t,n){return(t=si(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function si(e){var t=li(e,"string");return typeof t=="symbol"?t:t+""}function li(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class ae extends c.Component{static getHeight(t){var n=t.scrollWidth-t.clientWidth;return t.scrollHeight-n}constructor(t){super(t),Ot(this,"nodeRef",xe.createRef()),this.handleEntered=this.handleEntered.bind(this)}handleEntered(){var t=this.nodeRef.current;if(t){t.style.height="";var n=this.props.autoFocusOnShow;if(n!==void 0&&n){var i=t.querySelector("input, select, textarea");i!=null&&i.focus()}}}handleEnter(){var t=this.nodeRef.current;t&&(t.style.height="0")}handleEntering(){var t=this.nodeRef.current;t&&(t.style.height="".concat(ae.getHeight(t),"px"))}handleExiting(){var t=this.nodeRef.current;t&&(t.style.height="0")}handleExit(){var t=this.nodeRef.current;t&&(t.style.height="".concat(ae.getHeight(t),"px"))}render(){var t=this.props,n=t.children,i=t.className,r=t.in,s=t["data-testid"];return d.jsx(Gt,{in:r,classNames:{enterActive:"collapsing",enterDone:"collapse show",exitActive:"collapsing",exitDone:"collapse"},onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered,onExit:this.handleExit,onExiting:this.handleExiting,timeout:350,nodeRef:this.nodeRef,children:a=>d.jsx("div",{ref:this.nodeRef,className:V({collapse:a==="exited"},i),"data-testid":s,children:n})})}}Ot(ae,"defaultProps",{className:"",autoFocusOnShow:!1,"data-testid":void 0});var so={CYCLE_TO_NEXT_STACK:H.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_STACK",name:"Cycle To Next Stack",shortcut:[R.CTRL,D.SINGLE_QUOTE],macShortcut:[R.CMD,D.SINGLE_QUOTE],isEditable:!0}),CYCLE_TO_PREVIOUS_STACK:H.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_STACK",name:"Cycle To Previous Stack",shortcut:[R.CTRL,D.SEMICOLON],macShortcut:[R.CMD,D.SEMICOLON],isEditable:!0}),CYCLE_TO_NEXT_TAB:H.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_TAB",name:"Cycle To Next Tab",shortcut:[R.CTRL,R.SHIFT,D.DOUBLE_QUOTE],macShortcut:[R.CMD,R.SHIFT,D.SINGLE_QUOTE],isEditable:!0}),CYCLE_TO_PREVIOUS_TAB:H.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_TAB",name:"Cycle To Previous Tab",shortcut:[R.CTRL,R.SHIFT,D.COLON],macShortcut:[R.CMD,R.SHIFT,D.SEMICOLON],isEditable:!0}),CYCLE_TO_NEXT_DASHBOARD:H.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_DASHBOARD",name:"Cycle To Next Dashboard",shortcut:[R.CTRL,D.PERIOD],macShortcut:[R.CMD,D.PERIOD],isEditable:!0}),CYCLE_TO_PREVIOUS_DASHBOARD:H.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_DASHBOARD",name:"Cycle To Previous Dashboard",shortcut:[R.CTRL,D.COMMA],macShortcut:[R.CMD,D.COMMA],isEditable:!0})};function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$e(Object(n),!0).forEach(function(i){ui(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function ui(e,t,n){return(t=di(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function di(e){var t=ci(e,"string");return typeof t=="symbol"?t:t+""}function ci(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Et=c.memo(e=>{var t=e.tab,n=e.onClose,i=e.onSelect,r=e.isActive,s=e.activeRef,a=e.index,l=e.isDraggable,o=e.contextActions,u=e.renderAfterTabContent,p=t.key,m=t.isClosable,x=m===void 0?n!=null:m,C=t.title,S=t.icon,L;return S!=null&&(L=xe.isValidElement(S)?S:d.jsx(K,{icon:S})),d.jsx(qt,{draggableId:p,index:a,isDragDisabled:!l,children:(T,k)=>d.jsxs("div",{className:"context-menu-wrapper",ref:r?s:null,children:[d.jsxs("div",pe(pe(pe({ref:T.innerRef},T.draggableProps),T.dragHandleProps),{},{className:V("btn btn-link btn-nav-tab",{active:r},{dragging:k.isDragging}),"data-testid":"btn-nav-tab-".concat(C),role:"tab",tabIndex:0,onAuxClick:y=>{x&&y.button===1&&y.buttons===0&&(n==null||n(p))},onClick:y=>{if(x&&y.button===1&&y.buttons===0){n==null||n(p);return}y.button===0&&y.buttons===0&&(y.target.focus(),i(p))},onKeyPress:y=>{y.key==="Enter"&&i(p)},children:[L,d.jsxs("span",{className:"btn-nav-tab-title",children:[C,d.jsx(on,{children:C})]}),u==null?void 0:u(t),x&&d.jsx(B,{kind:"ghost",className:"btn-nav-tab-close",onClick:y=>{n==null||n(p),y.stopPropagation(),y.preventDefault()},icon:Nn,tooltip:"Close"})]})),d.jsx(wt,{actions:o})]})},p)});Et.displayName="NavTab";function Me(e,t){return mi(e)||hi(e,t)||fi(e,t)||pi()}function pi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{ab as Mt,bA as Bt,r as c,I as d,bB as Wt,a7 as Yt,K as V,L as Gt,U as xe,bC as qt,M as K,bD as Ht,bE as zt,aw as Kt,H as Xt,aX as Qt,a8 as Jt,a9 as Vt,bF as Zt,bG as Pt,a3 as en,a0 as tn,bH as nn}from"./vendor-CLIsHur_.js";import{J as rn,s as H,a$ as R,K as D,t as on,B,aw as wt,at as an,_ as sn,U as Se,au as ln,u as un,aN as se,R as dn,aP as cn,c7 as pn,G as fn,c0 as hn,b0 as mn,Q as yn,c8 as gn,dr as bn,ds as vn,cj as Pn,cg as wn,dt as xn,ch as Sn,aa as Tn,$ as On,a0 as En,d7 as Cn,da as ke,ay as Ln,dp as Rn,bH as kn,ad as _n,du as q,P as ce,dq as Fn,dv as An,dw as In,dx as _e,dy as Fe,dz as Ae,dA as Ie,I as Dn,D as jn,a as De}from"./ControlType-BLIWbm69.js";import{k as Nn,aJ as Un,aK as $n,aL as Mn,aC as xt,L as Z,aF as Bn,e as Wn,M as Yn,b as Gn,aM as qn,aN as Hn,c as zn,N as Te,s as Kn,l as Xn}from"./index-BDMrCE1B.js";import{l as St,p as je,k as Qn}from"./IrisGridShortcuts-DaLHHBjg.js";import{e as Jn,U as Vn,l as Ne}from"./monaco-DaE0jI-i.js";function Ue(e,t,n,i,r,s,a){try{var l=e[s](a),o=l.value}catch(u){return void n(u)}l.done?t(o):Promise.resolve(o).then(i,r)}function Zn(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var s=e.apply(t,n);function a(o){Ue(s,i,r,a,l,"next",o)}function l(o){Ue(s,i,r,a,l,"throw",o)}a(void 0)})}}var ei=[["api"],["client"],["dashboardData","*","connection"],["dashboardData","*","sessionWrapper"],["dashboardData","*","openedMap"],["layoutStorage"],["storage"]],Tt=10;function ti(e){var t=new Map;return function(i,r){var s,a=[...(s=t.get(this))!==null&&s!==void 0?s:[],i];if(r===Object(r)&&t.set(r,[...a]),a.shift(),!ni(a,e))return r instanceof Map?Array.from(r.entries()):r}}function ni(e,t){for(var n=function(a){if(e.length===t[a].length&&e.every((l,o)=>t[a][o]==="*"||l===t[a][o]))return{v:!0}},i,r=0;r<t.length;r+=1)if(i=n(r),i)return i.v;return!1}function ii(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Tt,r=Bt({maximumDepth:i});return(t=r(e,ti(n),2))!==null&&t!==void 0?t:""}function ri(e){return JSON.stringify(e,null,2)}function oi(e){var t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),i=String(e.getDate()).padStart(2,"0"),r=String(e.getHours()).padStart(2,"0"),s=String(e.getMinutes()).padStart(2,"0"),a=String(e.getSeconds()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(i,"-").concat(r).concat(s).concat(a)}function ai(e,t,n){return me.apply(this,arguments)}function me(){return me=Zn(function*(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ei,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"".concat(oi(new Date),"_support_logs"),s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:Tt,a=new Mt,l=a.folder(r);l.file("console.txt",e.getFormattedHistory()),t!=null&&l.file("metadata.json",ri(t)),n!=null&&l.file("redux.json",ii(n,i,s));var o=yield a.generateAsync({type:"blob"}),u=document.createElement("a");u.href=URL.createObjectURL(o),u.download="".concat(r,".zip"),u.click()}),me.apply(this,arguments)}function oo(){var e=rn(),t=e.selectedThemeKey,n=e.setSelectedThemeKey,i=e.themes,r=c.useCallback(s=>{s!=null&&n("".concat(s))},[n]);return d.jsx(Wt,{label:"Pick a color scheme",items:i,selectedKey:t,onSelectionChange:r,children:s=>d.jsx(Yt,{children:s.name},s.themeKey)})}function ao(e){var t=e.className,n=e.style;return d.jsx("div",{className:V("dh-logo",t),style:n})}function Ot(e,t,n){return(t=si(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function si(e){var t=li(e,"string");return typeof t=="symbol"?t:t+""}function li(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class ae extends c.Component{static getHeight(t){var n=t.scrollWidth-t.clientWidth;return t.scrollHeight-n}constructor(t){super(t),Ot(this,"nodeRef",xe.createRef()),this.handleEntered=this.handleEntered.bind(this)}handleEntered(){var t=this.nodeRef.current;if(t){t.style.height="";var n=this.props.autoFocusOnShow;if(n!==void 0&&n){var i=t.querySelector("input, select, textarea");i!=null&&i.focus()}}}handleEnter(){var t=this.nodeRef.current;t&&(t.style.height="0")}handleEntering(){var t=this.nodeRef.current;t&&(t.style.height="".concat(ae.getHeight(t),"px"))}handleExiting(){var t=this.nodeRef.current;t&&(t.style.height="0")}handleExit(){var t=this.nodeRef.current;t&&(t.style.height="".concat(ae.getHeight(t),"px"))}render(){var t=this.props,n=t.children,i=t.className,r=t.in,s=t["data-testid"];return d.jsx(Gt,{in:r,classNames:{enterActive:"collapsing",enterDone:"collapse show",exitActive:"collapsing",exitDone:"collapse"},onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered,onExit:this.handleExit,onExiting:this.handleExiting,timeout:350,nodeRef:this.nodeRef,children:a=>d.jsx("div",{ref:this.nodeRef,className:V({collapse:a==="exited"},i),"data-testid":s,children:n})})}}Ot(ae,"defaultProps",{className:"",autoFocusOnShow:!1,"data-testid":void 0});var so={CYCLE_TO_NEXT_STACK:H.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_STACK",name:"Cycle To Next Stack",shortcut:[R.CTRL,D.SINGLE_QUOTE],macShortcut:[R.CMD,D.SINGLE_QUOTE],isEditable:!0}),CYCLE_TO_PREVIOUS_STACK:H.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_STACK",name:"Cycle To Previous Stack",shortcut:[R.CTRL,D.SEMICOLON],macShortcut:[R.CMD,D.SEMICOLON],isEditable:!0}),CYCLE_TO_NEXT_TAB:H.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_TAB",name:"Cycle To Next Tab",shortcut:[R.CTRL,R.SHIFT,D.DOUBLE_QUOTE],macShortcut:[R.CMD,R.SHIFT,D.SINGLE_QUOTE],isEditable:!0}),CYCLE_TO_PREVIOUS_TAB:H.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_TAB",name:"Cycle To Previous Tab",shortcut:[R.CTRL,R.SHIFT,D.COLON],macShortcut:[R.CMD,R.SHIFT,D.SEMICOLON],isEditable:!0}),CYCLE_TO_NEXT_DASHBOARD:H.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_DASHBOARD",name:"Cycle To Next Dashboard",shortcut:[R.CTRL,D.PERIOD],macShortcut:[R.CMD,D.PERIOD],isEditable:!0}),CYCLE_TO_PREVIOUS_DASHBOARD:H.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_DASHBOARD",name:"Cycle To Previous Dashboard",shortcut:[R.CTRL,D.COMMA],macShortcut:[R.CMD,D.COMMA],isEditable:!0})};function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$e(Object(n),!0).forEach(function(i){ui(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function ui(e,t,n){return(t=di(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function di(e){var t=ci(e,"string");return typeof t=="symbol"?t:t+""}function ci(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Et=c.memo(e=>{var t=e.tab,n=e.onClose,i=e.onSelect,r=e.isActive,s=e.activeRef,a=e.index,l=e.isDraggable,o=e.contextActions,u=e.renderAfterTabContent,p=t.key,m=t.isClosable,x=m===void 0?n!=null:m,C=t.title,S=t.icon,L;return S!=null&&(L=xe.isValidElement(S)?S:d.jsx(K,{icon:S})),d.jsx(qt,{draggableId:p,index:a,isDragDisabled:!l,children:(T,k)=>d.jsxs("div",{className:"context-menu-wrapper",ref:r?s:null,children:[d.jsxs("div",pe(pe(pe({ref:T.innerRef},T.draggableProps),T.dragHandleProps),{},{className:V("btn btn-link btn-nav-tab",{active:r},{dragging:k.isDragging}),"data-testid":"btn-nav-tab-".concat(C),role:"tab",tabIndex:0,onAuxClick:y=>{x&&y.button===1&&y.buttons===0&&(n==null||n(p))},onClick:y=>{if(x&&y.button===1&&y.buttons===0){n==null||n(p);return}y.button===0&&y.buttons===0&&(y.target.focus(),i(p))},onKeyPress:y=>{y.key==="Enter"&&i(p)},children:[L,d.jsxs("span",{className:"btn-nav-tab-title",children:[C,d.jsx(on,{children:C})]}),u==null?void 0:u(t),x&&d.jsx(B,{kind:"ghost",className:"btn-nav-tab-close",onClick:y=>{n==null||n(p),y.stopPropagation(),y.preventDefault()},icon:Nn,tooltip:"Close"})]})),d.jsx(wt,{actions:o})]})},p)});Et.displayName="NavTab";function Me(e,t){return mi(e)||hi(e,t)||fi(e,t)||pi()}function pi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fi(e,t){if(e){if(typeof e=="string")return Be(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Be(e,t):void 0}}function Be(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function hi(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,r,s,a,l=[],o=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(o=(i=s.call(n)).done)&&(l.push(i.value),l.length!==t);o=!0);}catch(p){u=!0,r=p}finally{try{if(!o&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}function mi(e){if(Array.isArray(e))return e}function yi(e){var t=e.onSelect,n=e.tabs,i=n===void 0?an:n,r=c.useState(""),s=Me(r,2),a=s[0],l=s[1],o=c.useState(0),u=Me(o,2),p=u[0],m=u[1],x=c.useRef(null),C=c.useRef(null),S=c.useRef([]);c.useEffect(()=>{var f;(f=x.current)===null||f===void 0||f.focus()},[]),c.useEffect(()=>{m(0)},[a]),c.useEffect(()=>{if(p>=0&&S.current[p]){var f;(f=S.current[p])===null||f===void 0||f.scrollIntoView({behavior:"auto",block:"nearest"})}},[p]);var L=c.useCallback(f=>{l(f.target.value)},[]),T=c.useCallback(f=>{t(f)},[t]),k=c.useCallback(f=>{f.preventDefault()},[]),y=c.useMemo(()=>i.filter(f=>f.title.toLowerCase().includes(a.toLowerCase())),[a,i]).sort((f,v)=>{var P;return(P=f.title.localeCompare(v.title))!==null&&P!==void 0?P:0}),I=c.useCallback(f=>{if(f.key==="ArrowDown"&&y.length>0)f.preventDefault(),m(P=>P===-1?0:(P+1)%y.length);else if(f.key==="ArrowUp"&&y.length>0)f.preventDefault(),m(P=>P===-1?y.length-1:(P-1+y.length)%y.length);else if(f.key==="Enter"&&y.length>0){f.preventDefault();var v=p>=0?p:0;T(y[v])}else f.key==="Tab"&&f.preventDefault()},[y,p,T]),j=c.useMemo(()=>y.map((f,v)=>{var P;return d.jsx("li",{ref:W=>{S.current[v]=W},onMouseDown:k,children:d.jsxs(B,{kind:"ghost","data-testid":"dashboard-list-item-".concat((P=f.key)!==null&&P!==void 0?P:"","-button"),onClick:()=>T(f),className:p===v?"focused":"",style:{transition:"none"},children:[f.icon?d.jsx("span",{className:"dashboard-list-item-icon",children:xe.isValidElement(f.icon)?f.icon:d.jsx(K,{icon:f.icon})}):null,f.title]})},f.key)}),[y,T,p,k]),N=c.useMemo(()=>j.length===0?d.jsx("span",{children:"No open dashboard found."}):null,[j]);return d.jsxs("div",{className:"dashboard-list-container d-flex flex-column",children:[d.jsx("div",{className:"dashboard-list-header",children:d.jsx(sn,{value:a,placeholder:"Find open dashboard",endPlaceholder:Se.OPEN_DASHBOARD_LIST.getDisplayText(),onChange:L,onKeyDown:I,ref:x})}),d.jsxs("ul",{className:"dashboard-list flex-grow-1",ref:C,children:[N&&d.jsx("li",{className:"dashboard-list-message",children:N}),!N&&j]})]})}function We(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function Ye(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?We(Object(n),!0).forEach(function(i){gi(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function gi(e,t,n){return(t=bi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bi(e){var t=vi(e,"string");return typeof t=="symbol"?t:t+""}function vi(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ie(e,t){return Si(e)||xi(e,t)||wi(e,t)||Pi()}function Pi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wi(e,t){if(e){if(typeof e=="string")return Ge(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ge(e,t):void 0}}function Ge(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function xi(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,r,s,a,l=[],o=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(o=(i=s.call(n)).done)&&(l.push(i.value),l.length!==t);o=!0);}catch(p){u=!0,r=p}finally{try{if(!o&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}function Si(e){if(Array.isArray(e))return e}var Ti=500,Oi=.01,Ei=5e-4;function qe(e){return e.scrollLeft===0}function He(e){return Math.abs(e.scrollLeft+e.clientWidth-e.scrollWidth)<=1||e.scrollWidth===0}function Ci(e,t,n){var i=e.isClosable,r=i===void 0?!1:i,s=e.key,a=[];if(r&&n!=null){a.push({title:"Close",order:10,group:20,action:()=>{n(s)}});for(var l=!0,o=t.length-1;o>0&&t[o].key!==e.key;o-=1)if(t[o].isClosable===!0){l=!1;break}a.push({title:"Close to the Right",order:20,group:20,action:()=>{for(var u=t.length-1;u>0&&t[u].key!==s;u-=1)t[u].isClosable===!0&&n(t[u].key)},disabled:l}),a.push({title:"Close All",order:30,group:20,action:()=>{t.forEach(u=>{u.isClosable===!0&&n(u.key)})}})}return a}function lo(e){var t=e.activeKey,n=e.tabs,i=e.onSelect,r=e.onReorder,s=e.onClose,a=e.makeContextActions,l=e.renderAfterTabContent,o=c.useRef(),u=c.useState(!0),p=ie(u,2),m=p[0],x=p[1],C=c.useState(!1),S=ie(C,2),L=S[0],T=S[1],k=c.useState(!0),y=ie(k,2),I=y[0],j=y[1],N=c.useState(!0),f=ie(N,2),v=f[0],P=f[1],W=c.useCallback(()=>{o.current!=null&&(o.current.clientWidth<o.current.scrollWidth&&n.length>0?x(!0):x(!1),j(qe(o.current)),P(He(o.current)))},[n]);St(o.current,W);var A=c.useCallback(h=>{je.stopDragging(),h.destination&&(r==null||r(h.source.index,h.destination.index))},[r]),G=c.useCallback(()=>{if(o.current!=null){var h=qe(o.current);h!==I&&j(h);var g=He(o.current);g!==v&&P(g)}},[I,v]),_=c.useRef({cancelClick:!1}),ee=c.useCallback(()=>{if(!(o.current==null||_.current.cancelClick))for(var h=o.current.children,g=h.length-1;g>=0;g-=1){var w=h[g];if(w.offsetLeft<o.current.scrollLeft-5){w.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"});return}}},[]),F=c.useCallback(()=>{if(!(o.current==null||_.current.cancelClick))for(var h=o.current.children,g=0;g<h.length;g+=1){var w=h[g];if(w.offsetLeft+w.offsetWidth-5>o.current.scrollLeft+o.current.offsetWidth){w.scrollIntoView({behavior:"smooth",block:"nearest",inline:"end"});return}}},[]),b=c.useCallback(function(h,g){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,O=arguments.length>3?arguments[3]:void 0,$=o.current;$!=null&&(_.current.cancelClick=!0,h==="left"?$.scrollLeft=g-w:h==="right"&&($.scrollLeft=g+w),_.current.rAF=requestAnimationFrame(ne=>{var Le=O??ne,Re=ne-Le,de=Oi*Re+.5*Ei*Re**2;de=Math.min(de,$.scrollWidth),b(h,g,de,Le)}))},[]),U=c.useCallback(()=>{var h=_.current,g=h.holdTimer,w=h.rAF;g!=null&&(clearTimeout(g),_.current.holdTimer=void 0),w!=null&&(cancelAnimationFrame(w),_.current.rAF=void 0),window.removeEventListener("mouseup",U)},[]);c.useEffect(()=>()=>window.removeEventListener("mouseup",U),[U]);var te=c.useCallback(h=>{o.current!=null&&(_.current.holdTimer=window.setTimeout(b,Ti,h,o.current.scrollLeft)),_.current.cancelClick=!1,window.addEventListener("mouseup",U)},[U,b]),Ft=c.useCallback(()=>{te("left")},[te]),At=c.useCallback(()=>{te("right")},[te]);c.useEffect(function(){var g,w=O=>{O.stopPropagation(),O.preventDefault();var $=O.currentTarget,ne=Math.abs(O.deltaY)>Math.abs(O.deltaX)?O.deltaY:O.deltaX;$.scrollLeft+=Kt(ne,-30,30)};return(g=o.current)===null||g===void 0||g.addEventListener("wheel",w),()=>{var O;(O=o.current)===null||O===void 0||O.removeEventListener("wheel",w)}},[]);var It=c.useMemo(()=>{var h=new Map;return n.forEach(g=>{var w=g.key,O=[()=>Ci(g,n,s),()=>{var $;return($=a==null?void 0:a(g))!==null&&$!==void 0?$:[]}];h.set(w,O)}),h},[a,n,s]),ue=c.useRef(null),Dt=n.find(h=>h.key===t),jt=n.map((h,g)=>{var w=h.key,O=h===Dt;return d.jsx(Et,{tab:h,index:g,isActive:O,activeRef:ue,onSelect:i,onClose:s,isDraggable:r!=null,contextActions:It.get(w),renderAfterTabContent:l},w)});c.useEffect(function(){ue.current!=null&&ue.current.scrollIntoView({block:"nearest",inline:"nearest"})},[t]);var Nt=()=>{T(!L)},Ut=h=>{T(!1),i(h.key)},$t=()=>{T(!1)};return d.jsxs("nav",{className:"nav-container",children:[m&&d.jsx(B,{kind:"ghost",icon:d.jsx(K,{icon:Un,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-left",tooltip:"Scroll left",onClick:ee,onMouseDown:Ft,disabled:I}),d.jsx(Ht,{onDragStart:je.startDragging,onDragEnd:A,children:d.jsx(zt,{droppableId:"droppable-tab-navigation",direction:"horizontal",children:(h,g)=>d.jsxs("div",Ye(Ye({ref:w=>{w!=null&&(o.current=w,h.innerRef(w))}},h.droppableProps),{},{className:V("nav nav-tabs",{dragging:g.draggingFromThisWith}),role:"tablist",onScroll:G,children:[jt,h.placeholder]}))})}),m&&d.jsx(B,{kind:"ghost",icon:d.jsx(K,{icon:$n,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-right",tooltip:"Scroll right",onClick:F,onMouseDown:At,disabled:v}),d.jsx(B,{kind:"ghost",icon:d.jsx(K,{icon:Mn,transform:"grow-4"}),className:"btn-dashboard-list-menu btn-show-dashboard-list",tooltip:"Search open dashboards",onClick:Nt,disabled:n.length<2,style:{visibility:m?"visible":"hidden",marginLeft:"auto"},children:d.jsx(ln,{isShown:L,className:"dashboard-list-menu-popper",onExited:$t,options:{placement:"bottom-start"},closeOnBlur:!0,interactive:!0,children:d.jsx(yi,{tabs:n,onSelect:Ut})})}),d.jsx(wt,{actions:[{action:()=>{T(!L)},shortcut:Se.OPEN_DASHBOARD_LIST,isGlobal:!0}]})]})}function Li(e,t){var n=un(),i=c.useMemo(()=>new n.CoreClient(e,t),[n,e,t]);return c.useEffect(()=>()=>{i.disconnect()},[i]),i}var Oe=c.createContext(null);Oe.displayName="ClientContext";function uo(e){var t=e.serverUrl,n=e.options,i=e.children,r=Li(t,n);return d.jsx(Oe.Provider,{value:r,children:i})}function Ri(){return se(Oe,"No Client available in useClient. Was code wrapped in ClientBootstrap or ClientContext.Provider?")}var co="io.deephaven.message.LoginOptions.request",ki="io.deephaven.message.SessionDetails.request",po="io.deephaven.broadcast",_i="io.deephaven.broadcast.Login",Fi="io.deephaven.broadcast.Logout";function fo(e){return xt(e)&&e.message===_i}function ho(e){return xt(e)&&e.message===Fi}function Ai(e,t,n){return(t=Ii(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ii(e){var t=Di(e,"string");return typeof t=="symbol"?t:t+""}function Di(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class ji extends Error{constructor(){super(...arguments),Ai(this,"isNoConsolesError",!0)}}function Ni(e){return e.isNoConsolesError}function ze(e,t,n,i,r,s,a){try{var l=e[s](a),o=l.value}catch(u){return void n(u)}l.done?t(o):Promise.resolve(o).then(i,r)}function le(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var s=e.apply(t,n);function a(o){ze(s,i,r,a,l,"next",o)}function l(o){ze(s,i,r,a,l,"throw",o)}a(void 0)})}}var Q=Z.module("SessionUtils");function Ui(e,t,n){return ye.apply(this,arguments)}function ye(){return ye=le(function*(e,t,n){Q.info("Getting console types...");var i=yield t.getConsoleTypes();if(i.length===0)throw new ji("No console types available");Q.info("Available types:",i);var r=i[0];Q.info("Starting session with type",r);var s=yield t.startSession(r),a={type:r,id:Xt()};return Q.info("Console session established",a),{session:s,config:a,connection:t,details:n,dh:e}}),ye.apply(this,arguments)}function mo(e,t,n){return Q.info("createCoreClient",t),new e.CoreClient(t,n)}function $i(e){return e!=null&&typeof e=="object"}function Mi(){return ge.apply(this,arguments)}function ge(){return ge=le(function*(){var e=yield Bn(ki);if(!$i(e))throw new Error("Unexpected session details response: ".concat(e));return e}),ge.apply(this,arguments)}function yo(){return be.apply(this,arguments)}function be(){return be=le(function*(){var e=new URLSearchParams(window.location.search);switch(e.get("authProvider")){case"parent":return Mi()}return{}}),be.apply(this,arguments)}function go(e,t,n){return ve.apply(this,arguments)}function ve(){return ve=le(function*(e,t,n){var i;try{i=yield Ui(e,t,n)}catch(r){if(!Ni(r))throw r}return i}),ve.apply(this,arguments)}var Bi={$schema:"http://json-schema.org/draft-07/schema#",title:"Options",type:"object",properties:{"allowed-confusables":{description:'A list of allowed "confusable" Unicode characters to ignore when enforcing `RUF001`, `RUF002`, and `RUF003`.',deprecated:!0,type:["array","null"],items:{type:"string",maxLength:1,minLength:1}},builtins:{description:"A list of builtins to treat as defined references, in addition to the system builtins.",type:["array","null"],items:{type:"string"}},"cache-dir":{description:"A path to the cache directory.\n\nBy default, Ruff stores cache results in a `.ruff_cache` directory in the current project root.\n\nHowever, Ruff will also respect the `RUFF_CACHE_DIR` environment variable, which takes precedence over that default.\n\nThis setting will override even the `RUFF_CACHE_DIR` environment variable, if set.",type:["string","null"]},"dummy-variable-rgx":{description:'A regular expression used to identify "dummy" variables, or those which should be ignored when enforcing (e.g.) unused-variable rules. The default expression matches `_`, `__`, and `_var`, but not `_var_`.',deprecated:!0,type:["string","null"]},exclude:{description:"A list of file patterns to exclude from formatting and linting.\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory named `.mypy_cache` in the tree), `foo.py` (to exclude any file named `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ). - Relative patterns, like `directory/foo.py` (to exclude that specific file) or `directory/*.py` (to exclude any Python files in `directory`). Note that these paths are relative to the project root (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).\n\nNote that you'll typically want to use [`extend-exclude`](#extend-exclude) to modify the excluded paths.",type:["array","null"],items:{type:"string"}},"explicit-preview-rules":{description:"Whether to require exact codes to select preview rules. When enabled, preview rules will not be selected by prefixes — the full code of each preview rule will be required to enable the rule.",deprecated:!0,type:["boolean","null"]},extend:{description:"A path to a local `pyproject.toml` file to merge into this configuration. User home directory and environment variables will be expanded.\n\nTo resolve the current `pyproject.toml` file, Ruff will first resolve this base configuration file, then merge in any properties defined in the current configuration file.",type:["string","null"]},"extend-exclude":{description:"A list of file patterns to omit from formatting and linting, in addition to those specified by [`exclude`](#exclude).\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory named `.mypy_cache` in the tree), `foo.py` (to exclude any file named `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ). - Relative patterns, like `directory/foo.py` (to exclude that specific file) or `directory/*.py` (to exclude any Python files in `directory`). Note that these paths are relative to the project root (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"extend-fixable":{description:"A list of rule codes or prefixes to consider fixable, in addition to those specified by [`fixable`](#lint_fixable).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-ignore":{description:"A list of rule codes or prefixes to ignore, in addition to those specified by `ignore`.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-include":{description:"A list of file patterns to include when linting, in addition to those specified by [`include`](#include).\n\nInclusion are based on globs, and should be single-path patterns, like `*.pyw`, to include any file with the `.pyw` extension.\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"extend-per-file-ignores":{description:"A list of mappings from file pattern to rule codes or prefixes to exclude, in addition to any rules excluded by [`per-file-ignores`](#lint_per-file-ignores).",deprecated:!0,type:["object","null"],additionalProperties:{type:"array",items:{$ref:"#/definitions/RuleSelector"}}},"extend-safe-fixes":{description:"A list of rule codes or prefixes for which unsafe fixes should be considered safe.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-select":{description:"A list of rule codes or prefixes to enable, in addition to those specified by [`select`](#lint_select).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-unfixable":{description:"A list of rule codes or prefixes to consider non-auto-fixable, in addition to those specified by [`unfixable`](#lint_unfixable).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-unsafe-fixes":{description:"A list of rule codes or prefixes for which safe fixes should be considered unsafe.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},external:{description:"A list of rule codes or prefixes that are unsupported by Ruff, but should be preserved when (e.g.) validating `# noqa` directives. Useful for retaining `# noqa` directives that cover plugins not yet implemented by Ruff.",deprecated:!0,type:["array","null"],items:{type:"string"}},fix:{description:"Enable fix behavior by-default when running `ruff` (overridden by the `--fix` and `--no-fix` command-line flags). Only includes automatic fixes unless `--unsafe-fixes` is provided.",type:["boolean","null"]},"fix-only":{description:"Like [`fix`](#fix), but disables reporting on leftover violation. Implies [`fix`](#fix).",type:["boolean","null"]},fixable:{description:"A list of rule codes or prefixes to consider fixable. By default, all rules are considered fixable.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"flake8-annotations":{description:"Options for the `flake8-annotations` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8AnnotationsOptions"},{type:"null"}]},"flake8-bandit":{description:"Options for the `flake8-bandit` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BanditOptions"},{type:"null"}]},"flake8-boolean-trap":{description:"Options for the `flake8-boolean-trap` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BooleanTrapOptions"},{type:"null"}]},"flake8-bugbear":{description:"Options for the `flake8-bugbear` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BugbearOptions"},{type:"null"}]},"flake8-builtins":{description:"Options for the `flake8-builtins` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BuiltinsOptions"},{type:"null"}]},"flake8-comprehensions":{description:"Options for the `flake8-comprehensions` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ComprehensionsOptions"},{type:"null"}]},"flake8-copyright":{description:"Options for the `flake8-copyright` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8CopyrightOptions"},{type:"null"}]},"flake8-errmsg":{description:"Options for the `flake8-errmsg` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ErrMsgOptions"},{type:"null"}]},"flake8-gettext":{description:"Options for the `flake8-gettext` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8GetTextOptions"},{type:"null"}]},"flake8-implicit-str-concat":{description:"Options for the `flake8-implicit-str-concat` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ImplicitStrConcatOptions"},{type:"null"}]},"flake8-import-conventions":{description:"Options for the `flake8-import-conventions` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ImportConventionsOptions"},{type:"null"}]},"flake8-pytest-style":{description:"Options for the `flake8-pytest-style` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8PytestStyleOptions"},{type:"null"}]},"flake8-quotes":{description:"Options for the `flake8-quotes` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8QuotesOptions"},{type:"null"}]},"flake8-self":{description:"Options for the `flake8_self` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8SelfOptions"},{type:"null"}]},"flake8-tidy-imports":{description:"Options for the `flake8-tidy-imports` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8TidyImportsOptions"},{type:"null"}]},"flake8-type-checking":{description:"Options for the `flake8-type-checking` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8TypeCheckingOptions"},{type:"null"}]},"flake8-unused-arguments":{description:"Options for the `flake8-unused-arguments` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8UnusedArgumentsOptions"},{type:"null"}]},"force-exclude":{description:"Whether to enforce [`exclude`](#exclude) and [`extend-exclude`](#extend-exclude) patterns, even for paths that are passed to Ruff explicitly. Typically, Ruff will lint any paths passed in directly, even if they would typically be excluded. Setting `force-exclude = true` will cause Ruff to respect these exclusions unequivocally.\n\nThis is useful for [`pre-commit`](https://pre-commit.com/), which explicitly passes all changed files to the [`ruff-pre-commit`](https://github.com/astral-sh/ruff-pre-commit) plugin, regardless of whether they're marked as excluded by Ruff's own settings.",type:["boolean","null"]},format:{description:"Options to configure code formatting.",anyOf:[{$ref:"#/definitions/FormatOptions"},{type:"null"}]},ignore:{description:"A list of rule codes or prefixes to ignore. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"ignore-init-module-imports":{description:"Avoid automatically removing unused imports in `__init__.py` files. Such imports will still be flagged, but with a dedicated message suggesting that the import is either added to the module's `__all__` symbol, or re-exported with a redundant alias (e.g., `import os as os`).\n\nThis option is enabled by default, but you can opt-in to removal of imports via an unsafe fix.",deprecated:!0,type:["boolean","null"]},include:{description:"A list of file patterns to include when linting.\n\nInclusion are based on globs, and should be single-path patterns, like `*.pyw`, to include any file with the `.pyw` extension. `pyproject.toml` is included here not for configuration but because we lint whether e.g. the `[project]` matches the schema.\n\nNotebook files (`.ipynb` extension) are included by default on Ruff 0.6.0+.\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"indent-width":{description:`The number of spaces per indentation level (tab).
4
4
 
@@ -86,4 +86,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
86
86
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pr(e,t){if(e){if(typeof e=="string")return tt(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tt(e,t):void 0}}function tt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function fr(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,r,s,a,l=[],o=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(o=(i=s.call(n)).done)&&(l.push(i.value),l.length!==t);o=!0);}catch(p){u=!0,r=p}finally{try{if(!o&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}function hr(e){if(Array.isArray(e))return e}function mr(e,t){if(e==null)return{};var n,i,r=yr(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yr(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function gr(e){var t=e.id,n=e.isActive,i=e.plugins,r=mr(e,ar),s=c.useState(n),a=dr(s,2),l=a[0],o=a[1],u=en(),p=c.useCallback(m=>{u(t===Tn?On({layoutConfig:m}):En(t,{layoutConfig:m}))},[t,u]);return!l&&n&&o(!0),l?d.jsx(or,et(et({id:t,onLayoutConfigChange:p},r),{},{children:i})):d.jsx(Te,{"data-testid":"lazy-dashboard-loading"})}function nt(e,t){return wr(e)||Pr(e,t)||vr(e,t)||br()}function br(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
87
87
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vr(e,t){if(e){if(typeof e=="string")return it(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?it(e,t):void 0}}function it(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Pr(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,r,s,a,l=[],o=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(o=(i=s.call(n)).done)&&(l.push(i.value),l.length!==t);o=!0);}catch(p){u=!0,r=p}finally{try{if(!o&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}function wr(e){if(Array.isArray(e))return e}function xr(e){var t=[...e.entries()].filter(n=>{var i=nt(n,2),r=i[1];return Cn(r)||ke(r)});return t.map(n=>{var i=nt(n,2),r=i[0],s=i[1];if(ke(s)){var a=s.DashboardPlugin;return d.jsx(a,{},r)}var l=s.component;return d.jsx(l,{},r)})}function vo(){var e=Ln(),t=c.useMemo(()=>xr(e),[e]);return t}var Po=c.createContext({}),Sr=c.createContext({});Sr.displayName="UserPermissionsOverrideContext";var Lt=c.createContext(null);Lt.displayName="UserContext";var Rt=c.createContext(null);Rt.displayName="ConnectionContext";function rt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function ot(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rt(Object(n),!0).forEach(function(i){Tr(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rt(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Tr(e,t,n){return(t=Or(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Or(e){var t=Er(e,"string");return typeof t=="symbol"?t:t+""}function Er(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{action:()=>{ai(Xn,ot(ot({},e),{},{userAgent:navigator.userAgent}),Kn.getState())},shortcut:Se.EXPORT_LOGS,isGlobal:t}}function at(e,t,n,i,r,s,a){try{var l=e[s](a),o=l.value}catch(u){return void n(u)}l.done?t(o):Promise.resolve(o).then(i,r)}function Cr(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var s=e.apply(t,n);function a(o){at(s,i,r,a,l,"next",o)}function l(o){at(s,i,r,a,l,"throw",o)}a(void 0)})}}function st(e,t){return _r(e)||kr(e,t)||Rr(e,t)||Lr()}function Lr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
88
88
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rr(e,t){if(e){if(typeof e=="string")return lt(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lt(e,t):void 0}}function lt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function kr(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,r,s,a,l=[],o=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(o=(i=s.call(n)).done)&&(l.push(i.value),l.length!==t);o=!0);}catch(p){u=!0,r=p}finally{try{if(!o&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}function _r(e){if(Array.isArray(e))return e}var Ee=c.createContext(null);Ee.displayName="ServerConfigContext";function xo(e){var t=e.children,n=Ri(),i=c.useState(),r=st(i,2),s=r[0],a=r[1],l=c.useState(),o=st(l,2),u=o[0],p=o[1];c.useEffect(function(){var C=!1;function S(){return L.apply(this,arguments)}function L(){return L=Cr(function*(){try{var T=yield n.getServerConfigValues();C||a(new Map(T))}catch(k){C||p(k)}}),L.apply(this,arguments)}return S(),()=>{C=!0}},[n]);var m=s==null;return m||u!=null?d.jsx(Te,{"data-testid":"server-config-bootstrap-loading",isLoading:m&&u==null,errorMessage:Rn(u)}):d.jsx(Ee.Provider,{value:s,children:t})}function So(){return se(Ee,"No server config available in useServerConfig. Was code wrapped in ServerConfigBootstrap or ServerConfigContext.Provider?")}function ut(e,t,n,i,r,s,a){try{var l=e[s](a),o=l.value}catch(u){return void n(u)}l.done?t(o):Promise.resolve(o).then(i,r)}function Fr(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var s=e.apply(t,n);function a(o){ut(s,i,r,a,l,"next",o)}function l(o){ut(s,i,r,a,l,"throw",o)}a(void 0)})}}function dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function ct(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dt(Object(n),!0).forEach(function(i){Ar(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dt(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Ar(e,t,n){return(t=Ir(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ir(e){var t=Dr(e,"string");return typeof t=="symbol"?t:t+""}function Dr(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function To(e){var t=e.dashboards,n=e.activeDashboard,i=e.onLayoutInitialized,r=e.onGoldenLayoutChange,s=e.plugins,a=e.emptyDashboard,l=a===void 0?d.jsx(Te,{"data-testid":"app-dashboards-loading"}):a,o=kn(),u=c.useCallback((p,m)=>{var x=p.metadata;try{if(x!=null)return ct(ct({fetch:function(){var C=Fr(function*(){return o(x)});function S(){return C.apply(this,arguments)}return S}()},p),{},{localDashboardId:m})}catch{}return _n.hydrate(p,m)},[o]);return d.jsx("div",{className:"tab-content",children:t.map(p=>d.jsx("div",{className:V("tab-pane",{active:p.id===n}),children:d.jsx(gr,{id:p.id,isActive:p.id===n,emptyDashboard:l,layoutConfig:p.layoutConfig,layoutSettings:p.layoutSettings,onLayoutInitialized:i,onGoldenLayoutChange:r,hydrate:u,plugins:s},p.key)},p.id))})}function Oo(){return se(Rt,"No IdeConnection available in useConnection. Was code wrapped in ConnectionContext.Provider?")}function Eo(){return se(Lt,"No user available in useUser. Was code wrapped in UserBootstrap or UserContext.Provider?")}function pt(e,t,n,i,r,s,a){try{var l=e[s](a),o=l.value}catch(u){return void n(u)}l.done?t(o):Promise.resolve(o).then(i,r)}function jr(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var s=e.apply(t,n);function a(o){pt(s,i,r,a,l,"next",o)}function l(o){pt(s,i,r,a,l,"throw",o)}a(void 0)})}}function M(e,t,n){return(t=Nr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nr(e){var t=Ur(e,"string");return typeof t=="symbol"?t:t+""}function Ur(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var X=Z.module("GrpcFileStorageTable");class J{constructor(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:n;M(this,"storageService",void 0),M(this,"baseRoot",void 0),M(this,"root",void 0),M(this,"currentSize",0),M(this,"currentViewport",void 0),M(this,"listeners",[]),M(this,"viewportUpdatePromise",void 0),M(this,"currentViewportData",void 0),M(this,"childTables",new Map),this.storageService=t,this.baseRoot=n,this.root=i,i===n&&(this.doRefresh=tn(this.doRefresh.bind(this),J.REFRESH_DEBOUNCE))}removeBaseRoot(t){return q.removeRoot(this.baseRoot,t)}getViewportData(){var t;return this.viewportUpdatePromise||this.refreshInternal(),(t=this.viewportUpdatePromise)!==null&&t!==void 0?t:Promise.resolve({items:[],offset:0})}getSnapshot(t){throw new Error("Method not implemented.")}get size(){return this.currentSize}setExpanded(t,n){var i=t.split("/"),r=i.shift();if((r===void 0||r==="")&&(r=i.shift()),r===void 0||r==="")throw new Error("Invalid path: ".concat(t));var s=i.join("/");if(n){if(!this.childTables.has(r)){var a=new J(this.storageService,this.baseRoot,"".concat(this.root,"/").concat(r));this.childTables.set(r,a)}if(s){var l=this.childTables.get(r);l==null||l.setExpanded(s,n)}}else if(this.childTables.has(r))if(s){var o=this.childTables.get(r);o==null||o.setExpanded(s,n)}else this.childTables.delete(r);this.currentViewport&&this.refreshInternal()}collapseAll(){this.childTables.clear(),this.currentViewport&&this.refreshInternal()}setSearch(t){throw new Error("Method not implemented.")}setViewport(t){this.currentViewport=t,this.refreshInternal()}setFilters(){throw new Error("Method not implemented.")}setSorts(){throw new Error("Method not implemented.")}setReversed(){throw new Error("Method not implemented.")}close(){this.listeners=[]}onUpdate(t){return this.listeners=[...this.listeners,t],()=>{this.listeners=this.listeners.filter(n=>n!==t)}}doRefresh(t){X.debug2("doRefresh",this.root),t(this.fetchData())}refresh(){var t;X.debug2("refresh",this.root),(t=this.viewportUpdatePromise)===null||t===void 0||t.cancel();var n=new Promise(r=>{this.doRefresh(r)}),i=ce.makeCancelable(n.then(r=>{if(this.viewportUpdatePromise!==i)throw new Fn;return this.currentViewportData=r,this.sendUpdate(),r}));i.catch(r=>{ce.isCanceled(r)||X.error("Error updating viewport",r)}),this.viewportUpdatePromise=i}refreshInternal(){try{this.refresh()}catch(t){ce.isCanceled(t)||X.error("Unable to refresh data",t)}}fetchData(){var t=this;return jr(function*(){var n=t.currentViewport;if(!n)throw new Error("No viewport set");for(var i=yield t.storageService.listItems(t.root),r=i.map(m=>({type:m.type,filename:t.removeBaseRoot(m.filename),basename:m.basename,id:t.removeBaseRoot(m.filename),isExpanded:m.type==="directory"?t.childTables.has(m.basename):void 0})).sort((m,x)=>m.type!==x.type?m.type==="directory"?-1:1:m.basename.localeCompare(x.basename)),s=0;s<r.length;s+=1){var a=r[s],l=a.basename,o=a.filename;if(o===t.removeBaseRoot("".concat(t.root,"/").concat(l))&&a.type==="directory"){var u=t.childTables.get(l);if(u!=null){u.setViewport({top:0,bottom:n.bottom-s});var p=yield u.getViewportData();r.splice(s+1,0,...p.items)}}}return t.currentSize=r.length,X.debug2(t.root,"items",r,n),r=r.slice(n.top,n.bottom),{items:r,offset:n.top}})()}sendUpdate(){for(var t,n=this.listeners,i=(t=this.currentViewportData)!==null&&t!==void 0?t:{items:[],offset:0},r=0;r<n.length;r+=1)n[r](i)}}M(J,"REFRESH_DEBOUNCE",50);function ft(e,t,n,i,r,s,a){try{var l=e[s](a),o=l.value}catch(u){return void n(u)}l.done?t(o):Promise.resolve(o).then(i,r)}function Y(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var s=e.apply(t,n);function a(o){ft(s,i,r,a,l,"next",o)}function l(o){ft(s,i,r,a,l,"throw",o)}a(void 0)})}}function z(e,t,n){return(t=$r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $r(e){var t=Mr(e,"string");return typeof t=="symbol"?t:t+""}function Mr(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Br=Z.module("GrpcFileStorage");class Ce{constructor(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";z(this,"dh",void 0),z(this,"storageService",void 0),z(this,"tables",[]),z(this,"root",void 0),z(this,"refreshTables",Pt(()=>{this.tables.forEach(r=>r.refresh())},Ce.REFRESH_THROTTLE)),this.dh=t,this.storageService=n,this.root=i}removeRoot(t){return q.removeRoot(this.root,t)}addRoot(t){return q.addRoot(this.root,t)}createDirectory(t){var n=this;return Y(function*(){return yield n.storageService.createDirectory(n.addRoot(t)),n.refreshTables(),{type:"directory",id:t,filename:t,basename:q.getBaseName(t)}})()}getTable(){var t=this;return Y(function*(){var n=new J(t.storageService,t.root);return t.tables.push(n),n})()}saveFile(t){var n=this;return Y(function*(){var i=n.dh.storage.FileContents.text(t.content);return yield n.storageService.saveFile(n.addRoot(t.filename),i,!0),n.refreshTables(),t})()}loadFile(t){var n=this;return Y(function*(){var i=yield n.storageService.loadFile(n.addRoot(t)),r=yield i.text();return{filename:t,basename:q.getBaseName(t),content:r}})()}copyFile(t,n){var i=this;return Y(function*(){var r=yield i.storageService.loadFile(i.addRoot(t));yield i.storageService.saveFile(i.addRoot(n),r,!1),i.refreshTables()})()}deleteFile(t){var n=this;return Y(function*(){yield n.storageService.deleteItem(n.addRoot(t)),n.refreshTables()})()}moveFile(t,n){var i=this;return Y(function*(){yield i.storageService.moveItem(i.addRoot(t),i.addRoot(n)),i.refreshTables()})()}info(t){var n=this;return Y(function*(){var i=yield n.storageService.listItems(n.addRoot(q.getPath(t)),q.getBaseName(t));if(i.length===0)throw new An;if(i.length>1)throw Br.error("More than one matching file found, should never happen.",i),new Error("More than one matching file found");var r=i[0];if(!In(r.type))throw new Error("Unexpected file type: ".concat(r.type));return{filename:n.removeRoot(r.filename),basename:r.basename,id:n.removeRoot(r.filename),type:r.type}})()}}z(Ce,"REFRESH_THROTTLE",150);function ht(e,t,n,i,r,s,a){try{var l=e[s](a),o=l.value}catch(u){return void n(u)}l.done?t(o):Promise.resolve(o).then(i,r)}function mt(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var s=e.apply(t,n);function a(o){ht(s,i,r,a,l,"next",o)}function l(o){ht(s,i,r,a,l,"throw",o)}a(void 0)})}}function yt(e,t,n){return(t=Wr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wr(e){var t=Yr(e,"string");return typeof t=="symbol"?t:t+""}function Yr(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Co{constructor(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";yt(this,"storageService",void 0),yt(this,"root",void 0),this.storageService=t,this.root=n}getLayouts(){var t=this;return mt(function*(){var n=yield t.storageService.listItems(t.root,"*.json");return n.map(i=>i.basename)})()}getLayout(t){var n=this;return mt(function*(){var i=yield n.storageService.loadFile("".concat(n.root,"/").concat(t)),r=yield i.text();return JSON.parse(r)})()}}function Gr(e){return e.version===2}function qr(e){return Array.isArray(e)}function gt(e,t,n,i,r,s,a){try{var l=e[s](a),o=l.value}catch(u){return void n(u)}l.done?t(o):Promise.resolve(o).then(i,r)}function Hr(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var s=e.apply(t,n);function a(o){gt(s,i,r,a,l,"next",o)}function l(o){gt(s,i,r,a,l,"throw",o)}a(void 0)})}}var re=Z.module("UserLayoutUtils"),zr={layoutConfig:[{type:"column",content:[{type:"row",height:40,content:[{type:"stack",content:[{type:"react-component",component:_e.COMPONENT,title:_e.TITLE,isClosable:!1},{type:"react-component",component:Fe.COMPONENT,title:Fe.TITLE,isClosable:!1}]},{type:"stack",width:25,content:[{type:"react-component",component:Ae.COMPONENT,title:Ae.TITLE,isClosable:!1},{type:"react-component",component:Ie.COMPONENT,title:Ie.TITLE,isClosable:!1}]}]},{type:"row",content:[{type:"stack",title:"Notebooks",content:[]}]}]}],links:[],filterSets:[],version:2},Kr={layoutConfig:[],links:[],filterSets:[],version:2};function kt(e){if(Gr(e))return e;if(qr(e)){var t=e;return{layoutConfig:t,links:[],filterSets:[],version:2}}throw new Error("Unexpected layout import format: ".concat(e))}function Xr(e){return we.apply(this,arguments)}function we(){return we=Hr(function*(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;try{var n=yield e.getLayouts();if(n.length>0)try{var i=yield e.getLayout(n[0]);return kt(i)}catch(r){re.error("Unable to load layout",n[0],":",r),re.warn("No valid layouts found, falling back to default layout")}}catch(r){re.error("Unable to fetch layout list",r),re.warn("Falling back to default layout")}return t?zr:Kr}),we.apply(this,arguments)}function Qr(e){var t=e,n=t.filterSets,i=t.layoutConfig,r=t.links,s=t.pluginDataMap,a={filterSets:n,layoutConfig:i,links:r,pluginDataMap:s,version:2};return a}const Jr={exportLayout:Qr,getDefaultLayout:Xr,normalizeLayout:kt};function bt(e,t,n,i,r,s,a){try{var l=e[s](a),o=l.value}catch(u){return void n(u)}l.done?t(o):Promise.resolve(o).then(i,r)}function oe(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var s=e.apply(t,n);function a(o){bt(s,i,r,a,l,"next",o)}function l(o){bt(s,i,r,a,l,"throw",o)}a(void 0)})}}function _t(e,t,n){return(t=Vr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vr(e){var t=Zr(e,"string");return typeof t=="symbol"?t:t+""}function Zr(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vt=Z.module("LocalWorkspaceStorage");class E{static getBooleanServerConfig(t,n){var i,r;if((t==null||(i=t.get(n))===null||i===void 0?void 0:i.toLowerCase())==="true")return!0;if((t==null||(r=t.get(n))===null||r===void 0?void 0:r.toLowerCase())==="false")return!1}static getJSONServerConfig(t,n){var i=t==null?void 0:t.get(n);if(i!=null)try{return JSON.parse(i)}catch{vt.error("Unable to parse JSON server config for key ".concat(n,". Value: ").concat(i));return}}static makeDefaultWorkspaceSettings(t){var n={defaultDateTimeFormat:De.DEFAULT_DATETIME_FORMAT_STRING,formatter:[],timeZone:De.DEFAULT_TIME_ZONE_ID,showTimeZone:!1,showTSeparator:!0,disableMoveConfirmation:!1,defaultDecimalFormatOptions:{defaultFormatString:jn.DEFAULT_FORMAT_STRING},defaultIntegerFormatOptions:{defaultFormatString:Dn.DEFAULT_FORMAT_STRING},truncateNumbersWithPound:!1,showEmptyStrings:!0,showNullStrings:!0,showExtraGroupColumn:!0,notebookSettings:{isMinimapEnabled:!1,formatOnSave:!1,python:{linter:{isEnabled:!0}}},webgl:!0,webglEditable:!0,gridDensity:"regular"},i={defaultDateTimeFormat:t==null?void 0:t.get("dateTimeFormat"),formatter:[],timeZone:t==null?void 0:t.get("timeZone"),showTimeZone:E.getBooleanServerConfig(t,"showTimeZone"),showTSeparator:E.getBooleanServerConfig(t,"showTSeparator"),disableMoveConfirmation:E.getBooleanServerConfig(t,"disableMoveConfirmation"),defaultDecimalFormatOptions:(t==null?void 0:t.get("decimalFormat"))!==void 0?{defaultFormatString:t==null?void 0:t.get("decimalFormat")}:void 0,defaultIntegerFormatOptions:(t==null?void 0:t.get("integerFormat"))!==void 0?{defaultFormatString:t==null?void 0:t.get("integerFormat")}:void 0,truncateNumbersWithPound:E.getBooleanServerConfig(t,"truncateNumbersWithPound"),showEmptyStrings:E.getBooleanServerConfig(t,"showEmptyStrings"),showNullStrings:E.getBooleanServerConfig(t,"showNullStrings"),showExtraGroupColumn:E.getBooleanServerConfig(t,"showExtraGroupColumn"),notebookSettings:{isMinimapEnabled:E.getBooleanServerConfig(t,"web.user.notebookSettings.isMinimapEnabled"),formatOnSave:E.getBooleanServerConfig(t,"web.user.notebookSettings.formatOnSave"),python:{linter:{isEnabled:E.getBooleanServerConfig(t,"web.user.notebookSettings.python.linter.isEnabled"),config:E.getJSONServerConfig(t,"web.user.notebookSettings.python.linter.config")}}},webgl:E.getBooleanServerConfig(t,"web.webgl"),webglEditable:E.getBooleanServerConfig(t,"web.webgl.editable")};return nn({},n,i)}static makeWorkspaceData(t,n){return oe(function*(){var i=yield Jr.getDefaultLayout(t,n==null?void 0:n.isConsoleAvailable),r=i.filterSets,s=i.links,a=i.layoutConfig,l=i.pluginDataMap,o=l===void 0?{}:l;return{settings:{},layoutConfig:a,closed:[{}],links:s,filterSets:r,pluginDataMap:o}})()}static makeDefaultWorkspace(t,n){return oe(function*(){return{data:yield E.makeWorkspaceData(t,n)}})()}constructor(t){_t(this,"layoutStorage",void 0),this.layoutStorage=t}load(t){var n=this;return oe(function*(){try{var i,r=JSON.parse((i=localStorage.getItem(E.STORAGE_KEY))!==null&&i!==void 0?i:"");return r}catch{return vt.info("Unable to load workspace data, initializing to default data"),E.makeDefaultWorkspace(n.layoutStorage,t)}})()}save(t){return oe(function*(){return localStorage.setItem(E.STORAGE_KEY,JSON.stringify(t)),t})()}}_t(E,"STORAGE_KEY","deephaven.WorkspaceStorage");export{To as A,po as B,ae as C,yi as D,Sr as E,Lt as F,Co as G,Po as H,Rt as I,xo as J,zr as K,ao as L,Kr as M,so as N,J as O,Qr as P,Xr as Q,bo as R,ki as S,oo as T,Jr as U,qr as V,Gr as W,kt as X,Fi as a,lo as b,wo as c,Oo as d,ai as e,So as f,xr as g,Eo as h,yo as i,Ce as j,E as k,go as l,_i as m,co as n,ji as o,mo as p,Ui as q,fo as r,ho as s,Ni as t,Ri as u,uo as v,Oe as w,or as x,gr as y,vo as z};
89
- //# sourceMappingURL=LocalWorkspaceStorage-BnIfiumx.js.map
89
+ //# sourceMappingURL=LocalWorkspaceStorage-CBqyfbb5.js.map