@deephaven/code-studio 0.49.1-beta.0 → 0.49.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/assets/{AppRoot-60733ec5.js → AppRoot-849aca92.js} +2 -2
- package/build/assets/AppRoot-849aca92.js.map +1 -0
- package/build/assets/{index-b9b6fa2b.js → index-3d1a4a9d.js} +2 -2
- package/build/assets/{index-b9b6fa2b.js.map → index-3d1a4a9d.js.map} +1 -1
- package/build/assets/{index-aa8686d2.js → index-75c6742f.js} +2 -2
- package/build/assets/{index-aa8686d2.js.map → index-75c6742f.js.map} +1 -1
- package/build/assets/useUser-a4e18b16.js +5 -0
- package/build/assets/useUser-a4e18b16.js.map +1 -0
- package/build/index.html +1 -1
- package/package.json +31 -31
- package/build/assets/AppRoot-60733ec5.js.map +0 -1
- package/build/assets/useUser-b57587c8.js +0 -5
- package/build/assets/useUser-b57587c8.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as u,G as te,r as y,I as CS,P as Y,F as J,J as et,K as qg,H as he,L as Ce,M as Jo,N as Xi,O as tt,Q as Pe,S as Xg,T as ct,U as Sh,V as bS,W as SS,X as wS,Y as yS,$ as me,R as wh,Z as Bc,_ as yh,a0 as ES,a1 as Ue,a2 as ju,E as TS,D as Lr,a3 as td,a4 as Qg,a5 as Eh,a6 as PS,a7 as Mn,a8 as OS,a9 as DS,aa as RS,ab as NS,ac as Hu,ad as FS,ae as IS,af as _S,ag as Vc,ah as xS,ai as Gc,aj as MS,ak as AS,al as LS,am as kS,an as jS,ao as HS,ap as Ht,aq as Zg,ar as $S,as as Jg,at as US,au as ep,av as BS,aw as VS,ax as GS,ay as WS,az as Wc,aA as zS,aB as KS}from"./vendor-a1e39f4e.js";import{e as fn,l as _n,K as Nr,a as ni,b as zc,R as YS,W as qS}from"./monaco-3857fcdf.js";import{v as $u,d as XS,a as tp,b as Th,L as kn,c as bs,e as ti,f as rp,g as ae,h as Kc,i as QS,j as ZS,k as JS,l as ew,m as jr,n as Yi,o as np,p as ii,q as rd,r as no,s as tw,t as rw,u as Yc,w as xl,x as qc,y as ip,z as nw,A as Ss,B as ap,C as iw,D as aw,T as Ze,E as Ph,F as Oh,G as Ml,H as Vn,I as ow,J as sw,K as lw,M as dw,N as uw,O as hw,P as Dh,Q as Zi,R as Xc,S as ws,U as Rh,V as Nh,W as op,X as cw,Y as nd,Z as mw,_ as ds,$ as vw,a0 as Fh,a1 as sp,a2 as ga,a3 as fw,a4 as gw,a5 as pw,a6 as Cw,a7 as bw,a8 as Sw,a9 as Qc,aa as au,ab as ww,ac as yw,ad as Ew,ae as id,af as ad,ag as Tw,ah as Pw,ai as od,aj as lp,ak as Ow,al as Dw,am as Rw,an as dp,ao as Nw,ap as Fw,aq as Iw,ar as _w,as as xw,at as Mw,au as Aw,av as Lw,aw as kw,ax as jw,ay as Hw,az as $w,aA as Uw,aB as up,aC as Bw,aD as Uu,aE as Bu,aF as Vw,aG as Gw,aH as Ww,aI as zw,aJ as Kw,aK as Yw,aL as qw,aM as Xw,aN as Qw,aO as Zw,aP as Jw,aQ as ey,aR as ty,aS as Zc,aT as ry,aU as ny,aV as Jc}from"./index-b9b6fa2b.js";import{P as Te,u as Da,T as sd,B as G,a as A,S as qe,M as we,K as Oe,G as ui,C as oe,b as Qr,c as tn,D as ai,d as go,e as ld,f as pt,g as ys,I as io,U as iy,h as pe,i as H,F as oi,j as Sn,k as Ta,l as ay,m as Ih,n as $,E as ke,o as Zn,p as Qi,q as oy,r as Tl,s as Tt,t as Je,v as Et,w as dd,x as sy,O as ei,y as ly,z as Cn,A as cn,H as dy,J as uy,R as ud,L as si,N as hd,Q as hp,V as cp,W as hy,X as cy,Y as em,Z as Qe,_ as tm,$ as mp,a0 as _h,a1 as rm,a2 as us,a3 as vp,a4 as my,a5 as fp,a6 as vy,a7 as dn,a8 as fy,a9 as gy,aa as py,ab as Cy,ac as by,ad as Sy,ae as wy,af as yy,ag as Ey,ah as Ty,ai as Py,aj as Oy,ak as Dy,al as Ry,am as Ny,an as Fy}from"./useUser-b57587c8.js";import{P as Al,b as Iy,h as _y,p as xy,o as My,s as Ay,t as Ly,c as Pl}from"./plotly-fd13a16f.js";import"./helpers-042e6b4d.js";class xh{static isDark(e){var t=document.createElement("div");t.style.display="none",t.style.color=e;var r=getComputedStyle(document.body.appendChild(t)).color,i=r.match(/\d+/g),a=[];if(i)a=i.map(s=>parseInt(s,10));else throw new Error("Invalid color received. Got ".concat(r));document.body.removeChild(t);var o=xh.getBrightness(a);return o<125}static getBrightness(e){return Math.round((e[0]*299+e[1]*587+e[2]*114)/1e3)}}const gp=xh;function po(n,e,t){return e=ky(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function ky(n){var e=jy(n,"string");return typeof e=="symbol"?e:String(e)}function jy(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var Hy="table_",pp="column_",$y=new Set(["in","not","i","ii","k"]),Uy=new Set(["abstract","continue","for","new","switch","assert","default","if","package","synchronized","boolean","do","goto","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","null","true","false"]),By=/[^a-zA-Z0-9_$+@-]/g,Vy=/[^A-Za-z0-9_$]/g;class rn{}po(rn,"legalize",(n,e,t,r,i)=>{var a=n.trim().replace(/[- ]/g,"_");return r&&($y.has(a)||Uy.has(a))&&(a=e+a),a=a.replace(t,""),a||(a=e+i),Number.isNaN(Number(a.charAt(0)))||(a=e+a),a});po(rn,"legalizeTableName",n=>rn.legalize(n,Hy,By,!1,0));po(rn,"legalizeColumnNames",n=>{var e=[];return n.forEach((t,r)=>{var i=rn.legalizeColumnName(t,r);e.includes(i)&&(i=pp+r),e.push(i)}),e});po(rn,"legalizeColumnName",function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return rn.legalize(n,pp,Vy,!0,e)});po(rn,"isValidTableName",n=>rn.legalizeTableName(n)===n);po(rn,"isValidColumnName",n=>rn.legalizeColumnName(n)===n);const Co=rn;function nm(n,e,t){return e=Gy(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Gy(n){var e=Wy(n,"string");return typeof e=="symbol"?e:String(e)}function Wy(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}class zy{constructor(){nm(this,"pending",[]),nm(this,"resolved",[])}add(e,t){var r=Te.makeCancelable(e,t);return this.pending.push(r),r.then(()=>{this.resolve(r)},()=>{this.resolve(r)}),r}remove(e){for(var t=0;t<this.pending.length;t+=1)if(this.pending[t]===e){this.pending.splice(t,1);return}}resolve(e){this.remove(e),this.resolved.push(e)}cancel(){for(var e=[...this.pending,...this.resolved],t=0;t<e.length;t+=1)e[t].cancel();this.pending=[],this.resolved=[]}}const hi=zy;function Ky(n,e,t){return e=Yy(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Yy(n){var e=qy(n,"string");return typeof e=="symbol"?e:String(e)}function qy(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}class Xy extends Error{constructor(){super(...arguments),Ky(this,"isInvalid",!0)}}const eo=Xy;function Cp(n){var{type:e}=n,t=Da();switch(e){case t.VariableType.TABLE:case t.VariableType.TABLEMAP:case t.VariableType.TREETABLE:case t.VariableType.HIERARCHICALTABLE:return u.jsx(te,{icon:Th});case t.VariableType.FIGURE:return u.jsx(te,{icon:tp});case t.VariableType.PANDAS:return u.jsx(te,{icon:XS});default:return u.jsx(te,{icon:$u})}}function Qy(n,e,t){return e=Zy(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Zy(n){var e=Jy(n,"string");return typeof e=="symbol"?e:String(e)}function Jy(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}class e0 extends y.Component{constructor(e){super(e),Qy(this,"container",void 0),this.container=null}componentDidMount(){this.colorize()}colorize(){var{children:e}=this.props;this.container&&e!=null&&fn.colorizeElement(this.container,{theme:"dh-dark"})}render(){var{children:e,language:t}=this.props;return u.jsx("div",{children:u.jsx("div",{"data-lang":t,ref:r=>{this.container=r},style:{pointerEvents:"none"},children:e})})}}const cd=e0;class t0{static get LANGUAGE_MAP(){return new Map([["python","Python"],["groovy","Groovy"],["scala","Scala"]])}}const bp=t0;class Ll{static hasComment(e){return e.comment!==void 0}static hasPattern(e){return e.pattern!==void 0}static hasOp(e){return e.op!==void 0}static parseArguments(e){return e==null||!(typeof e=="string"||e instanceof String)?[]:CS.parse(e).filter(t=>!this.hasComment(t)).map(t=>this.hasPattern(t)?t.pattern:this.hasOp(t)?t.op:"".concat(t))}static formatTimestamp(e){if(e==null||!(e instanceof Date))return null;var t="".concat(e.getHours()).padStart(2,"0"),r="".concat(e.getMinutes()).padStart(2,"0"),i="".concat(e.getSeconds()).padStart(2,"0"),a="".concat(e.getMilliseconds()).padStart(3,"0");return"".concat(t,":").concat(r,":").concat(i,".").concat(a)}static isTableType(e,t){return t===e.VariableType.TABLE||t===e.VariableType.TREETABLE||t===e.VariableType.HIERARCHICALTABLE}static isWidgetType(e,t){return t===e.VariableType.FIGURE||t===e.VariableType.OTHERWIDGET||t===e.VariableType.PANDAS}static isOpenableType(e,t){return Ll.isTableType(e,t)||Ll.isWidgetType(e,t)}static isFigureType(e,t){return t===e.VariableType.FIGURE}static isPandas(e,t){return t===e.VariableType.PANDAS}}const Vu=Ll;function Sp(n){var{children:e}=n;return u.jsxs("div",{className:"console-history-item-result",children:[u.jsx("div",{className:"console-history-gutter",children:"-"}),u.jsx("div",{className:"console-history-content",children:e})]})}Sp.propTypes={children:Y.node.isRequired};function Gu(n,e,t){return e=r0(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function r0(n){var e=n0(n,"string");return typeof e=="symbol"?e:String(e)}function n0(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}class wp extends y.Component{constructor(e){super(e),Gu(this,"timer",void 0),Gu(this,"startTime",void 0),this.updateElapsed=this.updateElapsed.bind(this),this.startTime=Date.now(),this.state={elapsed:0}}componentDidMount(){this.timer=setInterval(this.updateElapsed,1e3)}componentWillUnmount(){this.timer&&clearInterval(this.timer),this.timer=void 0}updateElapsed(){this.setState({elapsed:Math.round((Date.now()-this.startTime)/1e3)})}render(){var{disabled:e,onCancelClick:t}=this.props,{elapsed:r}=this.state;return u.jsx("div",{className:J("console-history-result-in-progress",{disabled:e}),children:u.jsxs("span",{className:"badge",children:[u.jsx(kn,{})," Running... ",sd.formatElapsedTime(r)," ",u.jsx(G,{className:"console-history-result-in-progress-cancel",kind:"ghost",icon:bs,tooltip:"Cancel",onClick:t,disabled:e})]})})}}Gu(wp,"defaultProps",{disabled:!1});const i0=wp;function es(n,e,t){return e=a0(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function a0(n){var e=o0(n,"string");return typeof e=="symbol"?e:String(e)}function o0(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}class ao extends y.PureComponent{constructor(e){super(e),es(this,"mouseX",void 0),es(this,"mouseY",void 0),es(this,"isClicking",void 0),this.handleKeyPress=this.handleKeyPress.bind(this),this.handleMouseDown=this.handleMouseDown.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this),this.handleToggleError=this.handleToggleError.bind(this),this.handleMouseEnter=this.handleMouseEnter.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this),this.mouseX=null,this.mouseY=null,this.isClicking=!1,this.state={isExpanded:!1,isTriggerHovered:!1}}handleKeyPress(e){switch(e.key){case"Enter":case" ":this.handleToggleError(),e.stopPropagation(),e.preventDefault();break}}handleMouseDown(e){this.mouseX=e.clientX,this.mouseY=e.clientY,this.isClicking=!0}handleMouseMove(e){this.mouseX!=null&&this.mouseY!=null?(Math.abs(e.clientX-this.mouseX)>=ao.mouseDragThreshold||Math.abs(e.clientY-this.mouseY)>=ao.mouseDragThreshold)&&(this.isClicking=!1):this.isClicking&&(this.isClicking=!1)}handleMouseUp(e){this.isClicking&&!e.shiftKey&&!e.metaKey&&!e.altKey&&this.handleToggleError(),this.mouseX=null,this.mouseY=null,this.isClicking=!1}handleToggleError(){this.setState(e=>({isExpanded:!e.isExpanded}))}handleMouseEnter(){this.setState({isTriggerHovered:!0})}handleMouseLeave(){this.setState({isTriggerHovered:!1})}render(){var{isExpanded:e,isTriggerHovered:t}=this.state,{message:r}=this.props;A(r);var i=r.indexOf(`
|
|
1
|
+
import{C as u,G as te,r as y,I as CS,P as Y,F as J,J as et,K as qg,H as he,L as Ce,M as Jo,N as Xi,O as tt,Q as Pe,S as Xg,T as ct,U as Sh,V as bS,W as SS,X as wS,Y as yS,$ as me,R as wh,Z as Bc,_ as yh,a0 as ES,a1 as Ue,a2 as ju,E as TS,D as Lr,a3 as td,a4 as Qg,a5 as Eh,a6 as PS,a7 as Mn,a8 as OS,a9 as DS,aa as RS,ab as NS,ac as Hu,ad as FS,ae as IS,af as _S,ag as Vc,ah as xS,ai as Gc,aj as MS,ak as AS,al as LS,am as kS,an as jS,ao as HS,ap as Ht,aq as Zg,ar as $S,as as Jg,at as US,au as ep,av as BS,aw as VS,ax as GS,ay as WS,az as Wc,aA as zS,aB as KS}from"./vendor-a1e39f4e.js";import{e as fn,l as _n,K as Nr,a as ni,b as zc,R as YS,W as qS}from"./monaco-3857fcdf.js";import{v as $u,d as XS,a as tp,b as Th,L as kn,c as bs,e as ti,f as rp,g as ae,h as Kc,i as QS,j as ZS,k as JS,l as ew,m as jr,n as Yi,o as np,p as ii,q as rd,r as no,s as tw,t as rw,u as Yc,w as xl,x as qc,y as ip,z as nw,A as Ss,B as ap,C as iw,D as aw,T as Ze,E as Ph,F as Oh,G as Ml,H as Vn,I as ow,J as sw,K as lw,M as dw,N as uw,O as hw,P as Dh,Q as Zi,R as Xc,S as ws,U as Rh,V as Nh,W as op,X as cw,Y as nd,Z as mw,_ as ds,$ as vw,a0 as Fh,a1 as sp,a2 as ga,a3 as fw,a4 as gw,a5 as pw,a6 as Cw,a7 as bw,a8 as Sw,a9 as Qc,aa as au,ab as ww,ac as yw,ad as Ew,ae as id,af as ad,ag as Tw,ah as Pw,ai as od,aj as lp,ak as Ow,al as Dw,am as Rw,an as dp,ao as Nw,ap as Fw,aq as Iw,ar as _w,as as xw,at as Mw,au as Aw,av as Lw,aw as kw,ax as jw,ay as Hw,az as $w,aA as Uw,aB as up,aC as Bw,aD as Uu,aE as Bu,aF as Vw,aG as Gw,aH as Ww,aI as zw,aJ as Kw,aK as Yw,aL as qw,aM as Xw,aN as Qw,aO as Zw,aP as Jw,aQ as ey,aR as ty,aS as Zc,aT as ry,aU as ny,aV as Jc}from"./index-3d1a4a9d.js";import{P as Te,u as Da,T as sd,B as G,a as A,S as qe,M as we,K as Oe,G as ui,C as oe,b as Qr,c as tn,D as ai,d as go,e as ld,f as pt,g as ys,I as io,U as iy,h as pe,i as H,F as oi,j as Sn,k as Ta,l as ay,m as Ih,n as $,E as ke,o as Zn,p as Qi,q as oy,r as Tl,s as Tt,t as Je,v as Et,w as dd,x as sy,O as ei,y as ly,z as Cn,A as cn,H as dy,J as uy,R as ud,L as si,N as hd,Q as hp,V as cp,W as hy,X as cy,Y as em,Z as Qe,_ as tm,$ as mp,a0 as _h,a1 as rm,a2 as us,a3 as vp,a4 as my,a5 as fp,a6 as vy,a7 as dn,a8 as fy,a9 as gy,aa as py,ab as Cy,ac as by,ad as Sy,ae as wy,af as yy,ag as Ey,ah as Ty,ai as Py,aj as Oy,ak as Dy,al as Ry,am as Ny,an as Fy}from"./useUser-a4e18b16.js";import{P as Al,b as Iy,h as _y,p as xy,o as My,s as Ay,t as Ly,c as Pl}from"./plotly-fd13a16f.js";import"./helpers-042e6b4d.js";class xh{static isDark(e){var t=document.createElement("div");t.style.display="none",t.style.color=e;var r=getComputedStyle(document.body.appendChild(t)).color,i=r.match(/\d+/g),a=[];if(i)a=i.map(s=>parseInt(s,10));else throw new Error("Invalid color received. Got ".concat(r));document.body.removeChild(t);var o=xh.getBrightness(a);return o<125}static getBrightness(e){return Math.round((e[0]*299+e[1]*587+e[2]*114)/1e3)}}const gp=xh;function po(n,e,t){return e=ky(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function ky(n){var e=jy(n,"string");return typeof e=="symbol"?e:String(e)}function jy(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var Hy="table_",pp="column_",$y=new Set(["in","not","i","ii","k"]),Uy=new Set(["abstract","continue","for","new","switch","assert","default","if","package","synchronized","boolean","do","goto","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","null","true","false"]),By=/[^a-zA-Z0-9_$+@-]/g,Vy=/[^A-Za-z0-9_$]/g;class rn{}po(rn,"legalize",(n,e,t,r,i)=>{var a=n.trim().replace(/[- ]/g,"_");return r&&($y.has(a)||Uy.has(a))&&(a=e+a),a=a.replace(t,""),a||(a=e+i),Number.isNaN(Number(a.charAt(0)))||(a=e+a),a});po(rn,"legalizeTableName",n=>rn.legalize(n,Hy,By,!1,0));po(rn,"legalizeColumnNames",n=>{var e=[];return n.forEach((t,r)=>{var i=rn.legalizeColumnName(t,r);e.includes(i)&&(i=pp+r),e.push(i)}),e});po(rn,"legalizeColumnName",function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return rn.legalize(n,pp,Vy,!0,e)});po(rn,"isValidTableName",n=>rn.legalizeTableName(n)===n);po(rn,"isValidColumnName",n=>rn.legalizeColumnName(n)===n);const Co=rn;function nm(n,e,t){return e=Gy(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Gy(n){var e=Wy(n,"string");return typeof e=="symbol"?e:String(e)}function Wy(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}class zy{constructor(){nm(this,"pending",[]),nm(this,"resolved",[])}add(e,t){var r=Te.makeCancelable(e,t);return this.pending.push(r),r.then(()=>{this.resolve(r)},()=>{this.resolve(r)}),r}remove(e){for(var t=0;t<this.pending.length;t+=1)if(this.pending[t]===e){this.pending.splice(t,1);return}}resolve(e){this.remove(e),this.resolved.push(e)}cancel(){for(var e=[...this.pending,...this.resolved],t=0;t<e.length;t+=1)e[t].cancel();this.pending=[],this.resolved=[]}}const hi=zy;function Ky(n,e,t){return e=Yy(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Yy(n){var e=qy(n,"string");return typeof e=="symbol"?e:String(e)}function qy(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}class Xy extends Error{constructor(){super(...arguments),Ky(this,"isInvalid",!0)}}const eo=Xy;function Cp(n){var{type:e}=n,t=Da();switch(e){case t.VariableType.TABLE:case t.VariableType.TABLEMAP:case t.VariableType.TREETABLE:case t.VariableType.HIERARCHICALTABLE:return u.jsx(te,{icon:Th});case t.VariableType.FIGURE:return u.jsx(te,{icon:tp});case t.VariableType.PANDAS:return u.jsx(te,{icon:XS});default:return u.jsx(te,{icon:$u})}}function Qy(n,e,t){return e=Zy(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Zy(n){var e=Jy(n,"string");return typeof e=="symbol"?e:String(e)}function Jy(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}class e0 extends y.Component{constructor(e){super(e),Qy(this,"container",void 0),this.container=null}componentDidMount(){this.colorize()}colorize(){var{children:e}=this.props;this.container&&e!=null&&fn.colorizeElement(this.container,{theme:"dh-dark"})}render(){var{children:e,language:t}=this.props;return u.jsx("div",{children:u.jsx("div",{"data-lang":t,ref:r=>{this.container=r},style:{pointerEvents:"none"},children:e})})}}const cd=e0;class t0{static get LANGUAGE_MAP(){return new Map([["python","Python"],["groovy","Groovy"],["scala","Scala"]])}}const bp=t0;class Ll{static hasComment(e){return e.comment!==void 0}static hasPattern(e){return e.pattern!==void 0}static hasOp(e){return e.op!==void 0}static parseArguments(e){return e==null||!(typeof e=="string"||e instanceof String)?[]:CS.parse(e).filter(t=>!this.hasComment(t)).map(t=>this.hasPattern(t)?t.pattern:this.hasOp(t)?t.op:"".concat(t))}static formatTimestamp(e){if(e==null||!(e instanceof Date))return null;var t="".concat(e.getHours()).padStart(2,"0"),r="".concat(e.getMinutes()).padStart(2,"0"),i="".concat(e.getSeconds()).padStart(2,"0"),a="".concat(e.getMilliseconds()).padStart(3,"0");return"".concat(t,":").concat(r,":").concat(i,".").concat(a)}static isTableType(e,t){return t===e.VariableType.TABLE||t===e.VariableType.TREETABLE||t===e.VariableType.HIERARCHICALTABLE}static isWidgetType(e,t){return t===e.VariableType.FIGURE||t===e.VariableType.OTHERWIDGET||t===e.VariableType.PANDAS}static isOpenableType(e,t){return Ll.isTableType(e,t)||Ll.isWidgetType(e,t)}static isFigureType(e,t){return t===e.VariableType.FIGURE}static isPandas(e,t){return t===e.VariableType.PANDAS}}const Vu=Ll;function Sp(n){var{children:e}=n;return u.jsxs("div",{className:"console-history-item-result",children:[u.jsx("div",{className:"console-history-gutter",children:"-"}),u.jsx("div",{className:"console-history-content",children:e})]})}Sp.propTypes={children:Y.node.isRequired};function Gu(n,e,t){return e=r0(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function r0(n){var e=n0(n,"string");return typeof e=="symbol"?e:String(e)}function n0(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}class wp extends y.Component{constructor(e){super(e),Gu(this,"timer",void 0),Gu(this,"startTime",void 0),this.updateElapsed=this.updateElapsed.bind(this),this.startTime=Date.now(),this.state={elapsed:0}}componentDidMount(){this.timer=setInterval(this.updateElapsed,1e3)}componentWillUnmount(){this.timer&&clearInterval(this.timer),this.timer=void 0}updateElapsed(){this.setState({elapsed:Math.round((Date.now()-this.startTime)/1e3)})}render(){var{disabled:e,onCancelClick:t}=this.props,{elapsed:r}=this.state;return u.jsx("div",{className:J("console-history-result-in-progress",{disabled:e}),children:u.jsxs("span",{className:"badge",children:[u.jsx(kn,{})," Running... ",sd.formatElapsedTime(r)," ",u.jsx(G,{className:"console-history-result-in-progress-cancel",kind:"ghost",icon:bs,tooltip:"Cancel",onClick:t,disabled:e})]})})}}Gu(wp,"defaultProps",{disabled:!1});const i0=wp;function es(n,e,t){return e=a0(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function a0(n){var e=o0(n,"string");return typeof e=="symbol"?e:String(e)}function o0(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}class ao extends y.PureComponent{constructor(e){super(e),es(this,"mouseX",void 0),es(this,"mouseY",void 0),es(this,"isClicking",void 0),this.handleKeyPress=this.handleKeyPress.bind(this),this.handleMouseDown=this.handleMouseDown.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this),this.handleToggleError=this.handleToggleError.bind(this),this.handleMouseEnter=this.handleMouseEnter.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this),this.mouseX=null,this.mouseY=null,this.isClicking=!1,this.state={isExpanded:!1,isTriggerHovered:!1}}handleKeyPress(e){switch(e.key){case"Enter":case" ":this.handleToggleError(),e.stopPropagation(),e.preventDefault();break}}handleMouseDown(e){this.mouseX=e.clientX,this.mouseY=e.clientY,this.isClicking=!0}handleMouseMove(e){this.mouseX!=null&&this.mouseY!=null?(Math.abs(e.clientX-this.mouseX)>=ao.mouseDragThreshold||Math.abs(e.clientY-this.mouseY)>=ao.mouseDragThreshold)&&(this.isClicking=!1):this.isClicking&&(this.isClicking=!1)}handleMouseUp(e){this.isClicking&&!e.shiftKey&&!e.metaKey&&!e.altKey&&this.handleToggleError(),this.mouseX=null,this.mouseY=null,this.isClicking=!1}handleToggleError(){this.setState(e=>({isExpanded:!e.isExpanded}))}handleMouseEnter(){this.setState({isTriggerHovered:!0})}handleMouseLeave(){this.setState({isTriggerHovered:!1})}render(){var{isExpanded:e,isTriggerHovered:t}=this.state,{message:r}=this.props;A(r);var i=r.indexOf(`
|
|
2
2
|
`),a=i>-1,o=r;a&&(o=r.slice(0,i));var s=r.slice(i),l=t?"error-btn-link error-btn-link--active":"error-btn-link";return u.jsxs("div",{className:J("error-message",{expanded:e}),children:[a&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"error-gutter",children:u.jsx("button",{type:"button",onClick:this.handleToggleError,className:l,tabIndex:-1,children:u.jsx(te,{icon:e?ti:rp,transform:"left-3"})})}),u.jsxs("div",{className:"error-content",children:[u.jsx("div",{className:"console-error-text-trigger",role:"button",tabIndex:0,onKeyPress:this.handleKeyPress,onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onMouseUp:this.handleMouseUp,children:o}),e?s:""]})]}),!a&&u.jsx("div",{className:"error-content",children:u.jsx("div",{className:"console-error-text",children:o})})]},"error")}}es(ao,"defaultProps",{message:""});es(ao,"mouseDragThreshold",5);const s0=ao;function l0(n,e,t){return e=d0(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function d0(n){var e=u0(n,"string");return typeof e=="symbol"?e:String(e)}function u0(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var im=ae.module("ConsoleHistoryItem");class yp extends y.PureComponent{constructor(e){super(e),this.handleCancelClick=this.handleCancelClick.bind(this),this.handleObjectClick=this.handleObjectClick.bind(this)}handleObjectClick(e){im.debug("handleObjectClick",e);var{openObject:t}=this.props;t(e)}handleCancelClick(){var{item:e}=this.props;e!=null&&e.cancelResult&&(im.debug("Cancelling command: ".concat(e.command)),e.cancelResult())}render(){var{disabled:e,item:t,language:r}=this.props,{disabledObjects:i,result:a}=t,o=t.command!=null&&t.command!=="",s=null;o&&(s=u.jsxs("div",{className:"console-history-item-command",children:[u.jsx("div",{className:"console-history-gutter",children:">"}),u.jsx("div",{className:"console-history-content",children:u.jsx(cd,{language:r,children:t.command})})]}));var l=[],d=!1;if(a){var{error:h,message:c,changes:m}=a;if(m){var{created:v,updated:f}=m;[...v,...f].forEach(E=>{d=!0;var{title:T}=E,P="".concat(T),D=e===void 0||e||(i??[]).indexOf(P)>=0,O=u.jsx(G,{kind:"primary",onClick:()=>this.handleObjectClick(E),className:"btn-console-object",disabled:D,icon:u.jsx(Cp,{type:E.type}),children:T},P);l.push(O)})}if(h!=null&&!o){var g,p="".concat((g=h.message)!==null&&g!==void 0?g:h);p||(p=h);var C=u.jsx(s0,{message:p},"result-error");l.push(C)}if(c!==void 0&&c!==""){var b=u.jsx("div",{className:"log-message",children:c},"log-message");l.push(b)}}else{d=!0;var S=u.jsx(i0,{onCancelClick:this.handleCancelClick,disabled:e},"in_progress");l.push(S)}var w=null;return l.length>0&&(w=u.jsx(Sp,{children:l})),u.jsxs("div",{className:J("console-command-result",{"console-result-buttons":d}),children:[s,w]})}}l0(yp,"defaultProps",{disabled:!1});const h0=yp;function c0(n,e,t){return e=m0(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function m0(n){var e=v0(n,"string");return typeof e=="symbol"?e:String(e)}function v0(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}class md extends y.Component{static itemKey(e,t){return"".concat(e,".").concat(t.command,".").concat(t.result&&t.result.message,".").concat(t.result&&t.result.error)}render(){for(var{disabled:e,items:t,language:r,openObject:i}=this.props,a=[],o=0;o<t.length;o+=1){var s=t[o],l=u.jsx(h0,{disabled:e,item:s,openObject:i,language:r},md.itemKey(o,s));a.push(l)}return u.jsx("div",{className:"container-fluid console-history",children:a})}}c0(md,"defaultProps",{disabled:!1});const f0=md;var g0={name:"Console",CLEAR:qe.createAndAdd({id:"CONSOLE.CLEAR",name:"Clear",shortcut:[we.CTRL,Oe.L],macShortcut:[we.CTRL,Oe.C]}),FOCUS_HISTORY:qe.createAndAdd({id:"CONSOLE.FOCUS_HISTORY",name:"Focus History",shortcut:[we.CTRL,Oe.H],macShortcut:[we.CTRL,we.OPTION,Oe.H]})},p0={name:"Command History",FOCUS_HISTORY:qe.createAndAdd({id:"COMMAND_HISTORY.FOCUS_HISTORY",name:"Focus History Search",shortcut:[we.CTRL,Oe.H],macShortcut:[we.CTRL,we.OPTION,Oe.H]}),SEND_TO_CONSOLE:qe.createAndAdd({id:"COMMAND_HISTORY.SEND_TO_CONSOLE",name:"Send to Console",shortcut:[Oe.ENTER],macShortcut:[Oe.ENTER]}),SEND_TO_NOTEBOOK:qe.createAndAdd({id:"COMMAND_HISTORY.SEND_TO_NOTEBOOK",name:"Send to Notebook",shortcut:[we.CTRL,Oe.ENTER],macShortcut:[we.CMD,Oe.ENTER]}),RUN:qe.createAndAdd({id:"COMMAND_HISTORY.RUN",name:"Run",shortcut:[we.ALT,Oe.R],macShortcut:[we.OPTION,Oe.R]})},C0={name:"Notebook",RUN:qe.createAndAdd({id:"NOTEBOOK.RUN",name:"Run",shortcut:[we.ALT,Oe.R],macShortcut:[we.OPTION,Oe.R]}),RUN_SELECTED:qe.createAndAdd({id:"NOTEBOOK.RUN_SELECTED",name:"Run Selected",shortcut:[we.ALT,we.SHIFT,Oe.R],macShortcut:[we.OPTION,we.SHIFT,Oe.R]}),FIND:qe.createAndAdd({id:"NOTEBOOK.FIND",name:"Find",shortcut:[we.CTRL,Oe.F],macShortcut:[we.CMD,Oe.F],isEditable:!1}),MINIMAP:qe.createAndAdd({id:"NOTEBOOK.MINIMAP",name:"Show Minimap",shortcut:[we.ALT,Oe.M],macShortcut:[we.OPTION,Oe.M]}),WORDWRAP:qe.createAndAdd({id:"NOTEBOOK.WORDWRAP",name:"Word Wrap",shortcut:[we.ALT,Oe.Z],macShortcut:[we.OPTION,Oe.Z]})},b0={CONSOLE:g0,COMMAND_HISTORY:p0,NOTEBOOK:C0};const or=b0,Lt=Object.freeze({FATAL:"FATAL",STDERR:"STDERR",ERROR:"ERROR",WARN:"WARN",STDOUT:"STDOUT",INFO:"INFO",DEBUG:"DEBUG",TRACE:"TRACE"}),S0="#2d2a2e",w0="#fcfcfa",y0="#fcd65b",E0="#b2b1b2",T0="#9edc6f",P0="#76d9e4",O0="#f95d84",D0="#aa9af4",R0="#f95d84",N0="#fcfcfa",F0="#7c7b7c",be={"error-foreground":"#f95d84",background:S0,foreground:w0,"line-height":"19px",string:y0,"string-delim":"#929192",delimiter:E0,predefined:T0,keyword:P0,storage:O0,number:D0,operator:R0,identifier:N0,"namespace-identifier":"#f95d84","identifier-js":"#fcd65b",comment:F0,"input-option-active-border":"#929192","focus-border":"rgba(72, 120, 234, 0.85)","input-background":"#555356","input-foreground":"#f0f0ee","input-border":"#929192","editor-line-number-foreground":"#929192","editor-selection-background":"#676368","editor-line-highlight-bg":"#373438","context-menu-background":"#555356","context-menu-foreground":"#f0f0ee","menu-selection-background":"#4878ea","log-date":"#929192","log-error":"#f95d84","log-info":"#76d9e4","log-stdout":"#f0f0ee","log-warn":"#fcd65b","log-debug":"#aa9af4","log-trace":"#9edc6f","editor-find-match-background":"#3c5595","editor-find-match-highlight-background":"#343e5d","editor-widget-background":"#403e41","input-option-active-background":"#4878ea","input-option-active-foreground":"#f0f0ee","editor-suggest-widget-background":"#403e41","editor-suggest-widget-border":"#5b5a5c","editor-suggest-widget-foreground":"#f0f0ee","editor-suggest-widget-selected-background":"#41475a","editor-suggest-widget-highlightForeground":"#4878ea","list-hover-background":"#555356","text-link-foreground":"#929192","text-link-active-foreground":"#f0f0ee","editor-link-active-foreground":"#f0f0ee"};var I0="python",_0={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:/^\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async).*?:\s*$/,action:{indentAction:1}}],folding:{offSide:!0,markers:{start:/^\s*#region\b/,end:/^\s*#endregion\b/}}},x0={keywords:["and","del","from","not","while","as","elif","global","or","with","assert","else","if","pass","yield","break","except","import","print","exec","in","raise","continue","finally","is","return","for","try",":","=","isinstance","__debug__"],storage:["class","def","async","lambda"],operators:["+","-","*","**","/","//","%","<<",">>","&","|","^","~","<",">","<=",">=","==","!=","<>","+=","-=","*=","/","//=","%=","&=","|=","^=",">>=","<<=","**="],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=><!~&|+\-*/^%]+/,delimiters:/[;=.@:,`]/,escapes:/\\(?:[abfnrtv\\"'\n\r]|x[0-9A-Fa-f]{2}|[0-7]{3}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8}|N\{\w+\})/,rawpre:/(?:[rR]|ur|Ur|uR|UR|br|Br|bR|BR)/,strpre:/(?:[buBU])/,tokenizer:{root:[[/@strpre?("""|''')/,{token:"string.delim",bracket:"@open",next:"@mstring.$1"}],[/@strpre?"([^"\\]|\\.)*$/,"string.invalid"],[/@strpre?'([^'\\]|\\.)*$/,"string.invalid"],[/@strpre?(["])/,{token:"string.delim",bracket:"@open",next:"@sstring.$1",nextEmbedded:"deephavenDb"}],[/@strpre?(["'])/,{token:"string.delim",bracket:"@open",next:"@string.$1"}],[/@rawpre("""|''')/,{token:"string.delim",bracket:"@open",next:"@mrawstring.$1"}],[/@rawpre"([^"\\]|\\.)*$/,"string.invalid"],[/@rawpre'([^'\\]|\\.)*$/,"string.invalid"],[/@rawpre(["'])/,{token:"string.delim",bracket:"@open",next:"@rawstring.$1"}],[/__[\w$]*/,"predefined"],[/[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@storage":"storage","@default":"identifier"}}],[/[A-Z][\w]*/,{cases:{"~[A-Z0-9_]+":"constructor.identifier","@default":"namespace.identifier"}}],{include:"@whitespace"},[/[{}()[\]]/,"@brackets"],[/@symbols/,{cases:{"@keywords":"keyword","@operators":"operator","@default":""}}],[/\d*\.\d+([eE][-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+[lL]?/,"number.hex"],[/0[bB][0-1]+[lL]?/,"number.binary"],[/(0[oO][0-7]+|0[0-7]+)[lL]?/,"number.octal"],[/(0|[1-9]\d*)[lL]?/,"number"],[":",{token:"keyword",bracket:"@open"}],[/@delimiters/,{cases:{"@keywords":"keyword","@default":"delimiter"}}]],comment:[[/[^/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[/*]/,"comment"]],mstring:[{include:"@strcontent"},[/"""|'''/,{cases:{"$#==$S2":{token:"string.delim",bracket:"@close",next:"@pop"},"@default":{token:"string"}}}],[/["']/,"string"],[/./,"string.invalid"]],sstring:[{include:"@strcontent"},[/["]/,{token:"string.delim",bracket:"@close",next:"@pop",nextEmbedded:"@pop"}],[/./,"string.invalid"]],string:[{include:"@strcontent"},[/[']/,{token:"string.delim",bracket:"@close",next:"@pop"}],[/./,"string.invalid"]],strcontent:[[/[^\\"']+/,"string"],[/\\$/,"string.escape"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"]],mrawstring:[{include:"@rawstrcontent"},[/"""|'''/,{cases:{"$#==$S2":{token:"string.delim",bracket:"@close",next:"@pop"},"@default":{token:"string"}}}],[/["']/,"string"],[/./,"string.invalid"]],rawstring:[{include:"@rawstrcontent"},[/["']/,{cases:{"$#==$S2":{token:"string.delim",bracket:"@close",next:"@pop"},"@default":{token:"string"}}}],[/./,"string.invalid"]],rawstrcontent:[[/[^\\"']+/,"string"],[/\\["']/,"string"],[/\\u[0-9A-Fa-f]{4}/,"string.escape"],[/\\/,"string"]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]]}},M0={id:I0,conf:_0,language:x0};const A0=M0;var L0="groovy",k0={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:/^\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async).*?:\s*$/,action:{indentAction:1}}],folding:{offSide:!0,markers:{start:/^\s*#region\b/,end:/^\s*#endregion\b/}}},j0={keywords:["and","del","from","not","while","as","elif","global","or","with","assert","else","if","pass","yield","break","except","import","print","println","class","exec","in","raise","continue","finally","is","return","def","for","lambda","try",":","=","isinstance","__debug__"],operators:["+","-","*","**","/","//","%","<<",">>","&","|","^","~","<",">","<=",">=","==","!=","<>","+=","-=","*=","/","//=","%=","&=","|=","^=",">>=","<<=","**="],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=><!~&|+\-*/^%]+/,delimiters:/[;=.@:,`]/,escapes:/\\(?:[abfnrtv\\"'\n\r]|x[0-9A-Fa-f]{2}|[0-7]{3}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8}|N\{\w+\})/,rawpre:/(?:[rR]|ur|Ur|uR|UR|br|Br|bR|BR)/,strpre:/(?:[buBU])/,tokenizer:{root:[[/@strpre?("""|''')/,{token:"string.delim",bracket:"@open",next:"@mstring.$1"}],[/@strpre?"([^"\\]|\\.)*$/,"string.invalid"],[/@strpre?'([^'\\]|\\.)*$/,"string.invalid"],[/@strpre?(["])/,{token:"string.delim",bracket:"@open",next:"@sstring.$1",nextEmbedded:"deephavenDb"}],[/@strpre?(["'])/,{token:"string.delim",bracket:"@open",next:"@string.$1"}],[/@rawpre("""|''')/,{token:"string.delim",bracket:"@open",next:"@mrawstring.$1"}],[/@rawpre"([^"\\]|\\.)*$/,"string.invalid"],[/@rawpre'([^'\\]|\\.)*$/,"string.invalid"],[/@rawpre(["'])/,{token:"string.delim",bracket:"@open",next:"@rawstring.$1"}],[/__[\w$]*/,"predefined"],[/[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w]*/,{cases:{"~[A-Z0-9_]+":"constructor.identifier","@default":"namespace.identifier"}}],{include:"@whitespace"},[/[{}()[\]]/,"@brackets"],[/@symbols/,{cases:{"@keywords":"keyword","@operators":"operator","@default":""}}],[/\d*\.\d+([eE][-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+[lL]?/,"number.hex"],[/0[bB][0-1]+[lL]?/,"number.binary"],[/(0[oO][0-7]+|0[0-7]+)[lL]?/,"number.octal"],[/(0|[1-9]\d*)[lL]?/,"number"],[":",{token:"keyword",bracket:"@open"}],[/@delimiters/,{cases:{"@keywords":"keyword","@default":"delimiter"}}]],mstring:[{include:"@strcontent"},[/"""|'''/,{cases:{"$#==$S2":{token:"string.delim",bracket:"@close",next:"@pop"},"@default":{token:"string"}}}],[/["']/,"string"],[/./,"string.invalid"]],sstring:[{include:"@strcontent"},[/["]/,{token:"string.delim",bracket:"@close",next:"@pop",nextEmbedded:"@pop"}],[/./,"string.invalid"]],string:[{include:"@strcontent"},[/[']/,{token:"string.delim",bracket:"@close",next:"@pop"}],[/./,"string.invalid"]],strcontent:[[/[^\\"']+/,"string"],[/\\$/,"string.escape"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"]],mrawstring:[{include:"@rawstrcontent"},[/"""|'''/,{cases:{"$#==$S2":{token:"string.delim",bracket:"@close",next:"@pop"},"@default":{token:"string"}}}],[/["']/,"string"],[/./,"string.invalid"]],rawstring:[{include:"@rawstrcontent"},[/["']/,{cases:{"$#==$S2":{token:"string.delim",bracket:"@close",next:"@pop"},"@default":{token:"string"}}}],[/./,"string.invalid"]],rawstrcontent:[[/[^\\"']+/,"string"],[/\\["']/,"string"],[/\\u[0-9A-Fa-f]{4}/,"string.escape"],[/\\/,"string"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[/*]/,"comment"]],doccomment:[[/[^/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[/*]/,"comment.doc"]]}},H0={id:L0,conf:k0,language:j0};const $0=H0;var U0="scala",B0={wordPattern:/(unary_[@~!#%^&*()\-=+\\|:<>/?]+)|([a-zA-Z_$][\w$]*?_=)|(`[^`]+`)|([a-zA-Z_$][\w$]*)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:/^\s*\/\/\s*(?:(?:#?region\b)|(?:<editor-fold\b))/,end:/^\s*\/\/\s*(?:(?:#?endregion\b)|(?:<\/editor-fold>))/}}},V0={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],softKeywords:["as","export","extension","end","derives","on"],constants:["true","false","null","this","super"],modifiers:["abstract","final","implicit","lazy","override","private","protected","sealed"],softModifiers:["inline","opaque","open","transparent","using"],name:/(?:[a-z_$][\w$]*|`[^`]+`)/,type:/(?:[A-Z][\w$]*)/,symbols:/[=><!~?:&|+\-*/^\\%@#]+/,digits:/\d+(_+\d+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,escapes:/\\(?:[btnfr\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,fstring_conv:/[bBhHsScCdoxXeEfgGaAt]|[Tn](?:[HIklMSLNpzZsQ]|[BbhAaCYyjmde]|[RTrDFC])/,tokenizer:{root:[[/\braw"""/,{token:"string.quote",bracket:"@open",next:"@rawstringt"}],[/\braw"/,{token:"string.quote",bracket:"@open",next:"@rawstring"}],[/\bs"""/,{token:"string.quote",bracket:"@open",next:"@sstringt"}],[/\bs"/,{token:"string.quote",bracket:"@open",next:"@sstring"}],[/\bf""""/,{token:"string.quote",bracket:"@open",next:"@fstringt"}],[/\bf"/,{token:"string.quote",bracket:"@open",next:"@fstring"}],[/"""/,{token:"string.quote",bracket:"@open",next:"@stringt"}],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],[/(@digits)[eE]([-+]?(@digits))?[fFdD]?/,"number.float","@allowMethod"],[/(@digits)\.(@digits)([eE][-+]?(@digits))?[fFdD]?/,"number.float","@allowMethod"],[/0[xX](@hexdigits)[Ll]?/,"number.hex","@allowMethod"],[/(@digits)[fFdD]/,"number.float","@allowMethod"],[/(@digits)[lL]?/,"number","@allowMethod"],[/\b_\*/,"key"],[/\b(_)\b/,"keyword","@allowMethod"],[/\bimport\b/,"keyword","@import"],[/\b(case)([ \t]+)(class)\b/,["keyword.modifier","white","keyword"]],[/\bcase\b/,"keyword","@case"],[/\bva[lr]\b/,"keyword","@vardef"],[/\b(def)([ \t]+)((?:unary_)?@symbols|@name(?:_=)|@name)/,["keyword","white","identifier"]],[/@name(?=[ \t]*:(?!:))/,"variable"],[/(\.)(@name|@symbols)/,[{token:"operator"},{token:"@rematch",next:"@allowMethod"}]],[/([{(])(\s*)(@name(?=\s*=>))/,["@brackets","white","variable"]],[/@name/,{cases:{"@keywords":"keyword","@softKeywords":"keyword","@modifiers":"keyword.modifier","@softModifiers":"keyword.modifier","@constants":{token:"constant",next:"@allowMethod"},"@default":{token:"identifier",next:"@allowMethod"}}}],[/@type/,"type","@allowMethod"],{include:"@whitespace"},[/@[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*/,"annotation"],[/[{(]/,"@brackets"],[/[})]/,"@brackets","@allowMethod"],[/\[/,"operator.square"],[/](?!\s*(?:va[rl]|def|type)\b)/,"operator.square","@allowMethod"],[/]/,"operator.square"],[/([=-]>|<-|>:|<:|:>|<%)(?=[\s\w()[\]{},."'`])/,"keyword"],[/@symbols/,"operator"],[/[;,.]/,"delimiter"],[/'[a-zA-Z$][\w$]*(?!')/,"attribute.name"],[/'[^\\']'/,"string","@allowMethod"],[/(')(@escapes)(')/,[{token:"string"},{token:"string.escape"},{token:"string",next:"@allowMethod"}]],[/'/,"string.invalid"]],import:[[/;/,"delimiter","@pop"],[/^|$/,"","@pop"],[/[ \t]+/,"white"],[/[\n\r]+/,"white","@pop"],[/\/\*/,"comment","@comment"],[/@name|@type/,"type"],[/[(){}]/,"@brackets"],[/[[\]]/,"operator.square"],[/[.,]/,"delimiter"]],allowMethod:[[/^|$/,"","@pop"],[/[ \t]+/,"white"],[/[\n\r]+/,"white","@pop"],[/\/\*/,"comment","@comment"],[/(?==>[\s\w([{])/,"keyword","@pop"],[/(@name|@symbols)(?=[ \t]*[[({"'`]|[ \t]+(?:[+-]?\.?\d|\w))/,{cases:{"@keywords":{token:"keyword",next:"@pop"},"->|<-|>:|<:|<%":{token:"keyword",next:"@pop"},"@default":{token:"@rematch",next:"@pop"}}}],["","","@pop"]],comment:[[/[^/*]+/,"comment"],[/\/\*/,"comment","@push"],[/\*\//,"comment","@pop"],[/[/*]/,"comment"]],case:[[/\b_\*/,"key"],[/\b(_|true|false|null|this|super)\b/,"keyword","@allowMethod"],[/\bif\b|=>/,"keyword","@pop"],[/`[^`]+`/,"identifier","@allowMethod"],[/@name/,"variable","@allowMethod"],[/:::?|\||@(?![a-z_$])/,"keyword"],{include:"@root"}],vardef:[[/\b_\*/,"key"],[/\b(_|true|false|null|this|super)\b/,"keyword"],[/@name/,"variable"],[/:::?|\||@(?![a-z_$])/,"keyword"],[/=|:(?!:)/,"operator","@pop"],[/$/,"white","@pop"],{include:"@root"}],string:[[/[^\\"\n\r]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}]],stringt:[[/[^\\"\n\r]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/"/,"string"]],fstring:[[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/%%/,"string"],[/(%)([-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","keyword.modifier","number","metatag"]],[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","number","metatag"]],[/(%)([-#+ 0,(])(@fstring_conv)/,["metatag","keyword.modifier","metatag"]],[/(%)(@fstring_conv)/,["metatag","metatag"]],[/./,"string"]],fstringt:[[/@escapes/,"string.escape"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/%%/,"string"],[/(%)([-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","keyword.modifier","number","metatag"]],[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","number","metatag"]],[/(%)([-#+ 0,(])(@fstring_conv)/,["metatag","keyword.modifier","metatag"]],[/(%)(@fstring_conv)/,["metatag","metatag"]],[/./,"string"]],sstring:[[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/./,"string"]],sstringt:[[/@escapes/,"string.escape"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/./,"string"]],interp:[[/{/,"operator","@push"],[/}/,"operator","@pop"],{include:"@root"}],rawstring:[[/[^"]/,"string"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}]],rawstringt:[[/[^"]/,"string"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/"/,"string"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}},G0={id:U0,conf:B0,language:V0};const W0=G0;var z0="deephavenDb",K0={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:/^\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async).*?:\s*$/,action:{indentAction:1}}],folding:{offSide:!0,markers:{start:/^\s*#region\b/,end:/^\s*#endregion\b/}}},Y0={tokenPostfix:".js",keywords:["boolean","break","byte","case","catch","char","class","const","continue","debugger","default","delete","do","double","else","enum","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","long","native","new","null","package","private","protected","public","return","short","static","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","volatile","while","with"],builtins:["define","require","window","document","undefined"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[~!@#%\^&*-+=|\\:`<>.?\/]+/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,exponent:/[eE][\-+]?[0-9]+/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/([a-zA-Z_\$][\w\$]*)(\s*)(:?)/,{cases:{"$1@keywords":["keyword","white","delimiter"],$3:["key.identifier","white","delimiter"],"$1@builtins":["predefined.identifier","white","delimiter"],"@default":["identifier","white","delimiter"]}}],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/)/,{token:"regexp.slash",bracket:"@open",next:"@regexp"}],[/[{}()\[\]]/,"@brackets"],[/[;,.]/,"delimiter"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d+\.\d*(@exponent)?/,"number.float"],[/\.\d+(@exponent)?/,"number.float"],[/\d+@exponent/,"number.float"],[/0[xX][\da-fA-F]+/,"number.hex"],[/0[0-7]+/,"number.octal"],[/\d+/,"number"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment.invalid"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["@brackets.regexp.escape.control","regexp.escape.control","@brackets.regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,[{token:"@brackets.regexp.escape.control"},{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["@brackets.regexp.escape.control","regexp.escape.control"]],[/[()]/,"@brackets.regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],["/",{token:"regexp.slash",bracket:"@close"},"@pop"]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,"@brackets.regexp.escape.control","@pop"]]}},q0={id:z0,conf:K0,language:Y0};const X0=q0;var Q0="log",Z0={},J0={tokenizer:{root:[[/ FATAL[\s\S]*/,{token:"error",next:"@error"}],[/ ERROR[\s\S]*/,{token:"error",next:"@error"}],[/ STDERR[\s\S]*/,{token:"error",next:"@error"}],[/ STDOUT.*/,{token:"stdout",next:"@stdout"}],[/ INFO[\s\S]*/,{token:"info",next:"@info"}],[/ WARN.*/,{token:"warn",next:"@warn"}],[/ TRACE[\s\S]*/,{token:"trace",next:"@trace"}],[/ DEBUG[.\s\S]*/,{token:"debug",next:"@debug"}],[/^\d{2}:\d{2}:\d{2}.\d{3}/,"date"]],error:[{include:"@body"}],info:[{include:"@body"}],warn:[{include:"@body"}],stdout:[{include:"@body"}],trace:[{include:"@body"}],debug:[{include:"@body"}],body:[[/^\d{2}:\d{2}:\d{2}.\d{3}/,{token:"date",next:"@pop"}],[/[\s\S]*/,{token:"$S0"}]]}},eE={id:Q0,conf:Z0,language:J0};const tE=eE;function am(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function om(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?am(Object(t),!0).forEach(function(r){rE(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):am(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function rE(n,e,t){return e=nE(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function nE(n){var e=iE(n,"string");return typeof e=="symbol"?e:String(e)}function iE(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var ia=ae.module("MonacoUtils");class Li{static init(){var{getWorker:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ia.debug("Initializing Monaco..."),e!==void 0&&Li.registerGetWorker(e);var{registerLanguages:t,removeHashtag:r}=Li,i=[{token:"",foreground:r(be.foreground)},{token:"string",foreground:r(be.string)},{token:"string.delim",foreground:r(be["string-delim"])},{token:"keyword",foreground:r(be.keyword)},{token:"identifier.js",foreground:r(be["identifier-js"])},{token:"delimiter",foreground:r(be.delimiter)},{token:"comment",foreground:r(be.comment)},{token:"number",foreground:r(be.number)},{token:"storage",foreground:r(be.storage)},{token:"identifier",foreground:r(be.identifier)},{token:"namespace.identifier",foreground:r(be["namespace-identifier"])},{token:"operator",foreground:r(be.operator)},{token:"predefined",foreground:r(be.predefined)},{token:"error.log",foreground:be["log-error"].substring(1)},{token:"warn.log",foreground:r(be["log-warn"])},{token:"info.log",foreground:r(be["log-info"])},{token:"stdout.log",foreground:r(be["log-stdout"])},{token:"trace.log",foreground:r(be["log-trace"])},{token:"debug.log",foreground:r(be["log-debug"])},{token:"date.log",foreground:r(be["log-date"])}],a={errorForeground:be["error-foreground"],"inputOption.activeBorder":be["input-option-active-border"],"editor.background":be.background,"editor.foreground":be.foreground,"editor.lineHighlightBackground":be["editor-line-highlight-bg"],"editorLineNumber.foreground":be["editor-line-number-foreground"],"editor.selectionBackground":be["editor-selection-background"],"editor.findMatchBackground":be["editor-find-match-background"],"editor.findMatchHighlightBackground":be["editor-find-match-highlight-background"],"editorSuggestWidget.background":be["editor-suggest-widget-background"],"editorSuggestWidget.border":be["editor-suggest-widget-border"],"editorSuggestWidget.foreground":be["editor-suggest-widget-foreground"],"editorSuggestWidget.selectedBackground":be["editor-suggest-widget-selected-background"],"editorSuggestWidget.highlightForeground":be["editor-suggest-widget-highlightForeground"],"list.hoverBackground":be["list-hover-background"],"dropdown.background":be["context-menu-background"],"dropdown.foreground":be["context-menu-foreground"],"menu.selectionBackground":be["menu-selection-background"],"list.focusBackground":be["menu-selection-background"],"editorWidget.background":be["editor-widget-background"],"inputOption.activeBackground":be["input-option-active-background"],"inputOption.activeForeground":be["input-option-active-foreground"],focusBorder:be["focus-border"],"input.background":be["input-background"],"input.foreground":be["input-foreground"],"input.border":be["input-border"],"textLink.foreground":be["text-link-foreground"],"textLink.activeForeground":be["text-link-active-foreground"],"editorLink.activeForeground":be["editor-link-active-foreground"]};fn.defineTheme("dh-dark",{base:"vs-dark",inherit:!0,rules:i,colors:a}),ia.debug2("monaco theme: ",be),fn.setTheme("dh-dark"),t([X0,A0,$0,tE,W0]),Li.removeConflictingKeybindings(),ia.debug("Monaco initialized.")}static registerGetWorker(e){window.MonacoEnvironment=om(om({},window.MonacoEnvironment),{},{getWorker:e})}static removeHashtag(e){return e.substring(1)}static registerLanguages(e){var t=e.map(r=>{var{id:i}=r;return i});_n.getLanguages().filter(r=>{var{id:i}=r;return t.includes(i)}).forEach(r=>{var i=r;ia.debug2("Overriding default language loader:",i.id)}),e.forEach(r=>{Li.registerLanguage(r)})}static registerLanguage(e){ia.debug2("Registering language: ",e.id),_n.register(e),_n.onLanguage(e.id,()=>{_n.setLanguageConfiguration(e.id,e.conf),_n.setMonarchTokensProvider(e.id,e.language)})}static setEOL(e){var t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fn.EndOfLineSequence.LF;(t=e.getModel())===null||t===void 0||t.setEOL(r)}static openDocument(e,t){var r=e.getModel();A(r);var i={textDocument:{uri:"".concat(r.uri),languageId:r.getLanguageId(),version:r.getVersionId(),text:r.getValue()}};ia.debug2("didOpenDocumentParams: ",i),t.openDocument(i);var a=e.onDidChangeModelContent(o=>{for(var{changes:s,versionId:l}=o,d=[],h=0;h<s.length;h+=1){var c=s[h],{range:m,rangeLength:v,text:f}=c,g={range:{start:{line:m.startLineNumber-1,character:m.startColumn-1},end:{line:m.endLineNumber-1,character:m.endColumn-1}},rangeLength:v,text:f};d.push(g)}if(d.length>0){var p={textDocument:{version:l,uri:"".concat(r.uri)},contentChanges:d};ia.debug2("didChangeDocumentParams",p),t.changeDocument(p)}});return a}static closeDocument(e,t){var r=e.getModel();A(r);var i={textDocument:{uri:"".concat(r.uri)}};t.closeDocument(i)}static registerPasteHandler(e){e.onDidPaste(t=>{var r=/“|”/g,i=/\u200b/g,a=/\u00A0/g,o=e.getModel();A(o);var s=o.getValueInRange(t.range);(r.test(s)||i.test(s)||a.test(s))&&o.applyEdits([{range:t.range,text:s.replace(r,'"').replace(i,"").replace(a," ")}])})}static isMacPlatform(){var{platform:e}=window.navigator;return e.startsWith("Mac")}static removeConflictingKeybindings(){fn.addKeybindingRule({keybinding:Nr.CtrlCmd|ni.KeyD,command:null}),Li.isMacPlatform()||fn.addKeybindingRule({keybinding:Nr.CtrlCmd|ni.KeyH,command:null})}static disableKeyBindings(e,t){e.addAction({id:"disable-keybindings-".concat(et()),label:"",keybindings:t,run:()=>{}})}static getMonacoKeyCodeFromShortcut(e){var{keyState:t}=e,{keyValue:r}=t;if(r===null)return 0;var i=Li.isMacPlatform();return i?(t.metaKey?Nr.CtrlCmd:0)|(t.shiftKey?Nr.Shift:0)|(t.altKey?Nr.Alt:0)|(t.ctrlKey?Nr.WinCtrl:0)|zc.fromString(r):(t.ctrlKey?Nr.CtrlCmd:0)|(t.shiftKey?Nr.Shift:0)|(t.altKey?Nr.Alt:0)|(t.metaKey?Nr.WinCtrl:0)|zc.fromString(r)}static provideLinks(e){for(var t=[],r=function(o){var s=e.getLineContent(o),l=qg(s),d=l.filter(h=>h.type==="url"?/^https?:\/\//.test(h.value):!0);d.forEach(h=>{t.push({url:h.href,range:new YS(o,h.start+1,o,h.end+1)})})},i=1;i<=e.getLineCount();i+=1)r(i);return{links:t}}}const Cr=Li;function ou(n,e,t){return e=aE(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function aE(n){var e=oE(n,"string");return typeof e=="symbol"?e:String(e)}function oE(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var Gn=ae.module("MonacoCompletionProvider");class ca extends y.PureComponent{static lspToMonacoKind(e){var t=_n.CompletionItemKind;switch(e){case 1:return t.Text;case 2:return t.Method;case 3:return t.Function;case 4:return t.Constructor;case 5:return t.Field;case 6:return t.Variable;case 7:return t.Class;case 8:return t.Interface;case 9:return t.Module;case 10:return t.Property;case 11:return t.Unit;case 12:return t.Value;case 13:return t.Enum;case 14:return t.Keyword;case 15:return t.Snippet;case 16:return t.Color;case 17:return t.File;case 18:return t.Reference;case 19:return t.Folder;case 20:return t.EnumMember;case 21:return t.Constant;case 22:return t.Struct;case 23:return t.Event;case 24:return t.Operator;case 25:return t.TypeParameter;default:return t.Variable}}static lspToMonacoRange(e){var{start:t,end:r}=e;return{startLineNumber:t.line+1,startColumn:t.character+1,endLineNumber:r.line+1,endColumn:r.character+1}}static monacoToLspPosition(e){return{line:e.lineNumber-1,character:e.column-1}}constructor(e){super(e),ou(this,"registeredCompletionProvider",void 0),ou(this,"registeredSignatureProvider",void 0),ou(this,"registeredHoverProvider",void 0),this.handleCompletionRequest=this.handleCompletionRequest.bind(this),this.handleSignatureRequest=this.handleSignatureRequest.bind(this),this.handleHoverRequest=this.handleHoverRequest.bind(this)}componentDidMount(){var{language:e,session:t}=this.props;this.registeredCompletionProvider=_n.registerCompletionItemProvider(e,{provideCompletionItems:this.handleCompletionRequest,triggerCharacters:[".",'"',"'"]}),t.getSignatureHelp&&(this.registeredSignatureProvider=_n.registerSignatureHelpProvider(e,{provideSignatureHelp:this.handleSignatureRequest,signatureHelpTriggerCharacters:["(",","]})),t.getHover&&(this.registeredHoverProvider=_n.registerHoverProvider(e,{provideHover:this.handleHoverRequest}))}componentWillUnmount(){var e,t,r;(e=this.registeredCompletionProvider)===null||e===void 0||e.dispose(),(t=this.registeredSignatureProvider)===null||t===void 0||t.dispose(),(r=this.registeredHoverProvider)===null||r===void 0||r.dispose()}handleCompletionRequest(e,t,r){var{model:i,session:a}=this.props;if(e!==i)return null;var o={textDocument:{uri:"".concat(e.uri),version:e.getVersionId()},position:ca.monacoToLspPosition(t),context:r},s=a.getCompletionItems(o);Gn.debug("Requested completion items",o);var l=s.then(d=>{Gn.debug("Completion items received: ",o,d);var h=d.map(c=>{var{label:m,kind:v,detail:f,documentation:g,sortText:p,filterText:C,textEdit:b,insertTextFormat:S}=c;return{label:m,kind:ca.lspToMonacoKind(v),detail:f,documentation:g?.kind==="markdown"?g:g?.value,sortText:p,filterText:C,insertText:b.text,insertTextRules:S===2?4:S,range:ca.lspToMonacoRange(b.range)}});return{incomplete:!0,suggestions:h}}).catch(d=>(Gn.error("There was an error retrieving completion items",d),{suggestions:[]}));return l}handleSignatureRequest(e,t,r,i){var a={value:{signatures:[],activeSignature:0,activeParameter:0},dispose:()=>{}},{model:o,session:s}=this.props;if(e!==o||!s.getSignatureHelp)return null;var l={textDocument:{uri:"".concat(e.uri),version:e.getVersionId()},position:ca.monacoToLspPosition(t),context:i},d=s.getSignatureHelp(l);Gn.debug("Requested signature help",l);var h=d.then(c=>{Gn.debug("Signatures received: ",l,d);var m=c.map(f=>{var{label:g,documentation:p,parameters:C}=f;return{documentation:p?.kind==="markdown"?p:p?.value,label:g,parameters:C??[]}});if(m.length===0)return a;var v=0;return{value:{signatures:m,activeSignature:v,activeParameter:c[v].activeParameter},dispose:()=>{}}}).catch(c=>(Gn.error("There was an error retrieving completion items",c),a));return h}handleHoverRequest(e,t){var{model:r,session:i}=this.props;if(e!==r||!i.getHover)return null;var a={textDocument:{uri:"".concat(e.uri),version:e.getVersionId()},position:ca.monacoToLspPosition(t)},o=i.getHover(a);Gn.debug("Requested hover",a);var s=o.then(l=>{Gn.debug("Hover received: ",a,l);var{contents:d}=l;return{contents:d?[d]:[]}}).catch(l=>(Gn.error("There was an error retrieving hover",l),{contents:[]}));return s}render(){return null}}const Ep=ca;function sm(n,e,t,r,i,a,o){try{var s=n[a](o),l=s.value}catch(d){t(d);return}s.done?e(l):Promise.resolve(l).then(r,i)}function sE(n){return function(){var e=this,t=arguments;return new Promise(function(r,i){var a=n.apply(e,t);function o(l){sm(a,r,i,o,s,"next",l)}function s(l){sm(a,r,i,o,s,"throw",l)}o(void 0)})}}function Kr(n,e,t){return e=lE(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function lE(n){var e=dE(n,"string");return typeof e=="symbol"?e:String(e)}function dE(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var su=ae.module("ConsoleInput"),kl=parseInt(be["line-height"],10),Tp=6,Pp=6,uE=kl+Tp+Pp,lu=100;class Es extends y.PureComponent{constructor(e){super(e),Kr(this,"cancelListener",void 0),Kr(this,"commandContainer",void 0),Kr(this,"commandEditor",void 0),Kr(this,"commandHistoryIndex",void 0),Kr(this,"commandSuggestionContainer",void 0),Kr(this,"loadingPromise",void 0),Kr(this,"timestamp",void 0),Kr(this,"bufferIndex",void 0),Kr(this,"history",void 0),Kr(this,"modifiedCommands",void 0),this.handleWindowResize=this.handleWindowResize.bind(this),this.commandContainer=he.createRef(),this.commandHistoryIndex=null,this.timestamp=Date.now(),this.bufferIndex=0,this.history=[],this.modifiedCommands=new Map,this.state={commandEditorHeight:kl,isFocused:!1,model:null}}componentDidMount(){this.initCommandEditor(),window.addEventListener("resize",this.handleWindowResize),this.loadMoreHistory()}componentDidUpdate(){this.layoutEditor()}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.loadingPromise!=null&&this.loadingPromise.cancel(),this.destroyCommandEditor()}setConsoleText(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(e){if(su.debug("Command received: ",e),!r){var i;this.commandHistoryIndex=null,(i=this.commandEditor)===null||i===void 0||i.setValue(e)}t&&this.focusEnd(),this.updateDimensions(),r&&this.processCommand(e)}}initCommandEditor(){var{language:e,session:t}=this.props,r={copyWithSyntaxHighlighting:!1,cursorStyle:"block",fixedOverflowWidgets:!0,folding:!1,fontFamily:"Fira Mono",glyphMargin:!1,language:e,lineHeight:kl,lineDecorationsWidth:3,lineNumbers:"off",minimap:{enabled:!1},renderLineHighlight:"none",scrollBeyondLastLine:!1,scrollbar:{arrowSize:0,horizontal:"hidden",horizontalScrollbarSize:0},padding:{top:Tp,bottom:Pp},tabCompletion:"on",value:"",wordWrap:"on"},i=this.commandContainer.current;A(i),this.commandEditor=fn.create(i,r),Cr.setEOL(this.commandEditor),Cr.openDocument(this.commandEditor,t),this.commandEditor.onDidChangeModelContent(()=>{var a,o=(a=this.commandEditor)===null||a===void 0?void 0:a.getValue();this.modifiedCommands.set(this.commandHistoryIndex,o??null),this.updateDimensions()}),this.commandEditor.onDidFocusEditorText(()=>{this.setState({isFocused:!0})}),this.commandEditor.onDidBlurEditorText(()=>{this.setState({isFocused:!1})}),this.commandEditor.onKeyDown(a=>{var{commandEditor:o,commandHistoryIndex:s}=this,l=o?.getPosition();A(l);var{lineNumber:d}=l,h=o?.getModel();if(a.code==="ArrowUp"&&!this.isSuggestionMenuPopulated()&&d===1){s!=null?this.loadCommand(s+1):this.loadCommand(0),this.focusStart(),a.stopPropagation(),a.preventDefault();return}if(a.code==="ArrowDown"&&!this.isSuggestionMenuPopulated()&&d===h?.getLineCount()){s!=null&&s>0?this.loadCommand(s-1):this.loadCommand(null),this.focusEnd(),a.stopPropagation(),a.preventDefault();return}if(!a.altKey&&!a.shiftKey&&!a.metaKey){if(a.keyCode===ni.Enter){if(!this.isSuggestionMenuPopulated()){var c;a.stopPropagation(),a.preventDefault();var m=(c=this.commandEditor)===null||c===void 0?void 0:c.getValue().trim();if(m!==void 0){var v;this.processCommand(m),(v=this.commandEditor)===null||v===void 0||v.setValue("")}}}else if(a.keyCode===ni.Tab)if(this.isSuggestionMenuActive())this.isSuggestionMenuPopulated()||(a.stopPropagation(),a.preventDefault());else{var f;a.stopPropagation(),a.preventDefault(),(f=this.commandEditor)===null||f===void 0||f.trigger("Tab key trigger suggestions","editor.action.triggerSuggest",{})}}}),Cr.disableKeyBindings(this.commandEditor,[Nr.CtrlCmd|ni.KeyF]),Cr.registerPasteHandler(this.commandEditor),this.commandEditor.focus(),this.updateDimensions(),this.setState({model:this.commandEditor.getModel()})}destroyCommandEditor(){var{session:e}=this.props;this.commandEditor&&(Cr.closeDocument(this.commandEditor,e),this.commandEditor.dispose(),this.commandEditor=void 0)}handleWindowResize(){this.updateDimensions()}isSuggestionMenuActive(){var e;if(!this.commandSuggestionContainer){var t,r;this.commandSuggestionContainer=(t=this.commandEditor)===null||t===void 0||(r=t.getDomNode())===null||r===void 0?void 0:r.querySelector(".suggest-widget")}return(e=this.commandSuggestionContainer&&this.commandSuggestionContainer.classList.contains("visible"))!==null&&e!==void 0?e:!1}isSuggestionMenuPopulated(){var e,t,r;return this.isSuggestionMenuActive()&&((e=(t=this.commandSuggestionContainer)===null||t===void 0||(r=t.querySelector(".monaco-list-rows"))===null||r===void 0?void 0:r.childElementCount)!==null&&e!==void 0?e:0)>0}focus(){var e;(e=this.commandEditor)===null||e===void 0||e.focus()}focusStart(){var e,t,r,i,a,o=(e=this.commandEditor)===null||e===void 0?void 0:e.getModel();A(o);var s=o.getLineLength(1)+1,l=(t=this.commandEditor)===null||t===void 0?void 0:t.getTopForPosition(1,s);A(l),(r=this.commandEditor)===null||r===void 0||r.setPosition({lineNumber:1,column:s}),(i=this.commandEditor)===null||i===void 0||i.setScrollTop(l),(a=this.commandEditor)===null||a===void 0||a.focus()}focusEnd(){var e,t,r,i,a,o=(e=this.commandEditor)===null||e===void 0?void 0:e.getModel();A(o);var s=o.getLineCount(),l=o.getLineLength(s)+1,d=(t=this.commandEditor)===null||t===void 0?void 0:t.getTopForPosition(s,l);A(d),(r=this.commandEditor)===null||r===void 0||r.setPosition({lineNumber:s,column:l}),(i=this.commandEditor)===null||i===void 0||i.setScrollTop(d),(a=this.commandEditor)===null||a===void 0||a.focus()}clear(){var e,t,r;(e=this.commandEditor)===null||e===void 0||e.focus(),(t=this.commandEditor)===null||t===void 0||(r=t.getModel())===null||r===void 0||r.setValue(""),this.commandHistoryIndex=null}layoutEditor(){this.commandEditor&&this.commandEditor.layout()}loadCommand(e){var t,r;if(!(e!==null&&e>=this.history.length)){var i=this.modifiedCommands.get(e),a=e===null?"":this.history[this.history.length-e-1];this.commandHistoryIndex=e,(t=this.commandEditor)===null||t===void 0||(r=t.getModel())===null||r===void 0||r.setValue(i??a),e!==null&&e>this.history.length-lu&&this.loadMoreHistory()}}loadMoreHistory(){var e=this;return sE(function*(){try{if(e.loadingPromise!=null||e.bufferIndex==null)return;var{commandHistoryStorage:t,language:r,scope:i}=e.props;e.loadingPromise=Te.makeCancelable(t.getTable(r,i??"",e.timestamp),s=>s.close());var a=yield e.loadingPromise;a.setReversed(!0),a.setViewport({top:e.bufferIndex,bottom:e.bufferIndex+lu-1}),e.loadingPromise=Te.makeCancelable(a.getViewportData(),()=>a.close());var o=yield e.loadingPromise;e.bufferIndex+=lu,e.bufferIndex>=a.size&&(e.bufferIndex=null),e.history=[...o.items.filter((s,l,d)=>{var{name:h}=s;return l===0||h!==d[l-1].name}).map(s=>{var{name:l}=s;return l}).reverse(),...e.history],e.loadingPromise=void 0,a.close()}catch(s){if(e.loadingPromise=void 0,Te.isCanceled(s)){su.debug2("Promise canceled, not loading history");return}su.error("Error fetching history",s)}})()}processCommand(e){this.commandHistoryIndex=null,this.modifiedCommands.clear(),A(e),e!==""&&(this.history.length===0||e!==this.history[this.history.length-1])&&this.history.push(e),this.updateDimensions();var{onSubmit:t}=this.props;t(e)}updateDimensions(){if(this.commandEditor){var{maxHeight:e}=this.props;A(e);var t=this.commandEditor.getContentHeight(),r=Math.max(Math.min(t,e),uE),i=t>r,a={overviewRulerLanes:i?void 0:0};this.setState({commandEditorHeight:r},()=>{var o,s;(o=this.commandEditor)===null||o===void 0||o.updateOptions(a),(s=this.commandEditor)===null||s===void 0||s.layout()})}}render(){var{disabled:e,language:t,session:r}=this.props,{commandEditorHeight:i,isFocused:a,model:o}=this.state;return u.jsx("div",{className:J("console-input-wrapper",{disabled:e}),children:u.jsxs("div",{className:J("console-input-inner-wrapper",{focus:a}),children:[u.jsx("div",{className:Es.INPUT_CLASS_NAME,ref:this.commandContainer,style:{height:i}}),o&&u.jsx(Ep,{model:o,language:t,session:r})]})})}}Kr(Es,"defaultProps",{maxHeight:kl*10,scope:null,disabled:!1});Kr(Es,"INPUT_CLASS_NAME","console-input");const lm=Es;function $i(n,e,t){return e=hE(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function hE(n){var e=cE(n,"string");return typeof e=="symbol"?e:String(e)}function cE(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var dm="pasted values",mE=[/^audio.*/,/^font.*/,/^image.*/,/^video.*/],du=[".csv",".tsv",".tab",".psv",".dsv",".txt"],um=[".zip"];class xn extends y.Component{static isValidDropItem(e){return e!=null&&e.kind==="file"&&!mE.find(t=>t.test(e.type))}static isValidExtension(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return du.some(r=>e.endsWith(r))||t&&um.some(r=>e.endsWith(r))}static handleDragOver(e){e.preventDefault(),e.stopPropagation()}static getIcon(e){return e===dm?Kc:e.endsWith(".csv")?QS:e.endsWith(".zip")?ZS:JS}constructor(e){super(e),$i(this,"fileElem",void 0),$i(this,"divElem",void 0),$i(this,"getValidExtensions",Ce(t=>t?[...du,...um]:[...du])),$i(this,"getAcceptString",Ce(t=>this.getValidExtensions(t).join(", "))),$i(this,"getFileTypeErrorString",Ce(t=>Qr.join(this.getValidExtensions(t),"or"))),this.handleSelectFile=this.handleSelectFile.bind(this),this.handleFiles=this.handleFiles.bind(this),this.handleDrop=this.handleDrop.bind(this),this.unstageFile=this.unstageFile.bind(this),this.handleMenuPaste=this.handleMenuPaste.bind(this),this.handlePasteEvent=this.handlePasteEvent.bind(this),this.fileElem=he.createRef(),this.divElem=he.createRef(),this.state={selectedFileName:""}}componentDidMount(){var e,t;(e=this.divElem.current)===null||e===void 0||e.addEventListener("paste",this.handlePasteEvent),(t=this.divElem.current)===null||t===void 0||t.focus()}componentWillUnmount(){var e;(e=this.divElem.current)===null||e===void 0||e.removeEventListener("paste",this.handlePasteEvent)}handleSelectFile(){if(this.fileElem.current){var e;this.fileElem.current.value="",(e=this.fileElem.current)===null||e===void 0||e.click()}}handleFiles(e){e.stopPropagation(),e.preventDefault();var{files:t}=e.target;t!=null&&this.handleFile(t[0])}handleDrop(e){var{allowZip:t,clearDragError:r,dragError:i}=this.props;if(e.preventDefault(),e.stopPropagation(),i!=null){r();return}if(!(e.dataTransfer==null||e.dataTransfer.items==null||e.dataTransfer.items.length===0)){var a=e.dataTransfer.items[0].getAsFile();A(a),xn.isValidExtension(a.name,t)?this.handleFile(a):this.setState({dropError:xn.FILE_TYPE_ERROR})}}unstageFile(e){var{onCancel:t}=this.props;e.stopPropagation(),e.preventDefault(),t(),this.setState({selectedFileName:"",dropError:void 0})}handleFile(e){var{onFileOpened:t}=this.props;t(e),this.setState({selectedFileName:e.name,dropError:void 0})}handleMenuPaste(){var{onPaste:e,onError:t,uploadInProgress:r}=this.props;r||navigator.clipboard.readText().then(i=>{e(i),this.setState({selectedFileName:dm,dropError:void 0})}).catch(i=>t(i))}handlePasteEvent(e){e.stopPropagation(),e.preventDefault(),this.handleMenuPaste()}makeContextMenuItems(){var{uploadInProgress:e}=this.props;return[{title:"Paste",icon:Kc,action:this.handleMenuPaste,shortcut:ui.PASTE,disabled:e}]}render(){var{allowZip:e,dragError:t,uploadInProgress:r}=this.props,{selectedFileName:i,dropError:a}=this.state,o=t??a,s=this.makeContextMenuItems();return u.jsxs("div",{ref:this.divElem,className:"csv-overlay fill-parent-absolute",onDragOver:xn.handleDragOver,onDrop:this.handleDrop,tabIndex:-1,children:[u.jsx(oe,{actions:s}),u.jsx("input",{ref:this.fileElem,type:"file",id:"fileElem",accept:this.getAcceptString(e),style:{display:"none"},onChange:this.handleFiles,"data-testid":"fileElem"}),!i&&(o===void 0||o==="")&&u.jsxs("div",{className:"message-content",children:[u.jsx("div",{className:"message-icon",children:u.jsx(te,{icon:ew})}),u.jsx("label",{children:"Drop file (or paste values) here to import"}),u.jsx("div",{className:"message-small",children:u.jsx("label",{children:"or"})}),u.jsx(G,{kind:"primary",onClick:this.handleSelectFile,children:"Select File..."})]}),i&&(o===void 0||o==="")&&u.jsxs("div",{className:"selected-content",children:[u.jsx("div",{className:"selected-icon",children:u.jsx(te,{icon:xn.getIcon(i)})}),u.jsxs("div",{className:"selected-text",children:[u.jsx("label",{children:"Selected File"}),u.jsxs("label",{className:"selected-name",children:[i,!r&&u.jsx(G,{kind:"ghost",className:"ml-2",onClick:this.unstageFile,icon:jr,tooltip:"Remove"})]})]})]}),!!o&&u.jsxs("div",{className:"message-content",children:[u.jsx("div",{className:"message-icon",children:u.jsx(te,{icon:Yi})}),u.jsx("label",{children:o}),o===xn.FILE_TYPE_ERROR&&u.jsx("div",{className:"message-small",children:u.jsx("label",{children:this.getFileTypeErrorString(e)})})]})]})}}$i(xn,"defaultProps",{allowZip:!1,dragError:null});$i(xn,"MULTIPLE_FILE_ERROR","Please select only one file");$i(xn,"FILE_TYPE_ERROR","Filetype not supported.");const za=xn;function Ra(n,e,t){return e=vE(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function vE(n){var e=fE(n,"string");return typeof e=="symbol"?e:String(e)}function fE(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}class Ji{}Ra(Ji,"INTEGER","int");Ra(Ji,"LONG","long");Ra(Ji,"DOUBLE","double");Ra(Ji,"BOOLEAN","bool");Ra(Ji,"STRING","string");Ra(Ji,"DATE_TIME","datetime");Ra(Ji,"LOCAL_TIME","localtime");const Be=Ji;function Op(n,e){var t=n.internalStream("string");return t.readable=!0,t.read=()=>!1,t.removeListener=()=>!1,t.on("data",(r,i)=>e(i)),t}function hm(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function cm(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?hm(Object(t),!0).forEach(function(r){er(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):hm(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function er(n,e,t){return e=gE(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function gE(n){var e=pE(n,"string");return typeof e=="symbol"?e:String(e)}function pE(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var mm="unknown",CE=2147483647,bE=-2147483648,vm=/^[0-9]{4}-[0-1][0-9]-[0-3][0-9][ T][0-2][0-9]:[0-5][0-9]:[0-6][0-9](?:\.[0-9]{1,9})?(?: [a-zA-Z]+)?$/,fm=/^([0-9]+T)?([0-9]+):([0-9]+)(:[0-9]+)?(?:\.[0-9]{1,9})?$/;class zt{static determineType(e,t,r){if(!e||e===r)return t;switch(t){case Be.STRING:return Be.STRING;case Be.INTEGER:return zt.checkInteger(e);case Be.LONG:return zt.checkLong(e);case Be.DOUBLE:return zt.checkDouble(e);case Be.BOOLEAN:return zt.checkBoolean(e);case Be.DATE_TIME:return zt.checkDateTime(e);case Be.LOCAL_TIME:return zt.checkLocalTime(e);default:return zt.getTypeFromUnknown(e)}}static isNotParsableNumber(e){return isNaN(e)||e==="Infinity"||e==="-Infinity"}static checkInteger(e){var t=e.replace(/,/g,"");return zt.isNotParsableNumber(t)?Be.STRING:zt.getNumberType(t)}static checkLong(e){var t=e.replace(/,/g,"");return zt.isNotParsableNumber(t)?Be.STRING:t.includes(".")?Be.DOUBLE:Be.LONG}static checkDouble(e){var t=e.replace(/,/g,"");return zt.isNotParsableNumber(t)?Be.STRING:Be.DOUBLE}static checkBoolean(e){var t=e.toLowerCase();return t==="true"||t==="false"?Be.BOOLEAN:Be.STRING}static checkDateTime(e){return vm.test(e)?Be.DATE_TIME:Be.STRING}static checkLocalTime(e){return fm.test(e)?Be.LOCAL_TIME:Be.STRING}static getTypeFromUnknown(e){var t=e.replace(/,/g,"");if(zt.isNotParsableNumber(t)){var r=e.toLowerCase();return r==="true"||r==="false"?Be.BOOLEAN:vm.test(e)&&e.includes(":")?Be.DATE_TIME:fm.test(e)?Be.LOCAL_TIME:Be.STRING}return zt.getNumberType(t)}static getNumberType(e){if(e.includes("."))return Be.DOUBLE;var t=e.startsWith("-")?11:10;if(e.length>t)return Be.LONG;var r=parseInt(e,10);return r>CE||r<bE?Be.LONG:Be.INTEGER}constructor(e,t,r,i,a,o,s,l,d,h){er(this,"onFileCompleted",void 0),er(this,"file",void 0),er(this,"readHeaders",void 0),er(this,"nullString",void 0),er(this,"onProgress",void 0),er(this,"onError",void 0),er(this,"types",void 0),er(this,"chunks",void 0),er(this,"totalChunks",void 0),er(this,"rowCount",void 0),er(this,"isZip",void 0),er(this,"shouldTrim",void 0),er(this,"zipProgress",void 0),er(this,"config",void 0),this.onFileCompleted=e,this.file=t,this.readHeaders=r,this.nullString=a,this.onProgress=o,this.onError=s,this.chunks=0,this.totalChunks=l,this.rowCount=0,this.isZip=d,this.shouldTrim=h,this.zipProgress=0,this.handleChunk=this.handleChunk.bind(this),this.handleComplete=this.handleComplete.bind(this),this.handleError=this.handleError.bind(this),this.handleNodeUpdate=this.handleNodeUpdate.bind(this),this.config=cm(cm({},i),{},{error:this.handleError,chunk:this.handleChunk,complete:this.handleComplete})}parse(){if(this.file instanceof File||this.file instanceof Blob)Jo.parse(this.file,this.config);else{var e=Op(this.file,this.handleNodeUpdate);Jo.parse(e,this.config),e.resume()}}handleChunk(e,t){var{data:r}=e;if(!this.types){if(r==null||r.length===0){t.abort(),this.onError("Error parsing CSV: no data in file.");return}this.types=new Array(r[0].length).fill(mm),this.readHeaders&&(r=r.slice(1))}this.rowCount+=r.length,A(this.types);var i=[...this.types];r.forEach(s=>{if(s.length>=i.length){for(var l=0;l<i.length;l+=1)i[l]=zt.determineType(this.shouldTrim?s[l].trim():s[l],i[l],this.nullString);this.types=i}else t.abort(),this.onError(`Error parsing CSV: Insufficient data in row.
|
|
3
3
|
Expected length `.concat(i.length," but found ").concat(s.length,`.
|
|
4
4
|
Row = `).concat(s))}),this.chunks+=1;var a=0;this.totalChunks>0?a=Math.round(this.chunks/this.totalChunks*50):a=Math.round(this.zipProgress/2);var o=this.onProgress(a);o&&t.abort()}handleComplete(e){var{types:t,onFileCompleted:r}=this;A(t),(e==null||!e.meta.aborted)&&r(t.map(i=>i===mm||i===Be.LOCAL_TIME?Be.STRING:i),this.rowCount)}handleError(e){var{onError:t}=this;t(e)}handleNodeUpdate(e){this.zipProgress=e.percent}}const SE=zt;function st(n,e,t){return e=wE(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function wE(n){var e=yE(n,"string");return typeof e=="symbol"?e:String(e)}function yE(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var Bs=ae.module("CsvParser"),EE=650;class oo{static generateHeaderRecursive(e){var t="",r=e;return e>=26&&(t=t.concat(oo.generateHeaderRecursive(Math.floor(e/26)-1)),r=e%26),t.concat(String.fromCharCode(65+r))}constructor(e){var{onFileCompleted:t,session:r,file:i,type:a,readHeaders:o=!0,onProgress:s,onError:l,timeZone:d,isZip:h}=e;st(this,"onFileCompleted",void 0),st(this,"session",void 0),st(this,"file",void 0),st(this,"isZip",void 0),st(this,"type",void 0),st(this,"readHeaders",void 0),st(this,"timeZone",void 0),st(this,"onProgress",void 0),st(this,"onError",void 0),st(this,"tables",void 0),st(this,"headers",void 0),st(this,"types",void 0),st(this,"rowCount",void 0),st(this,"rowsProcessed",void 0),st(this,"chunks",void 0),st(this,"totalChunks",void 0),st(this,"isComplete",void 0),st(this,"zipProgress",void 0),st(this,"consolidatedChunks",void 0),st(this,"numConsolidated",void 0),st(this,"isCancelled",void 0),st(this,"config",void 0),this.onFileCompleted=t,this.session=r,this.file=i,this.isZip=h,this.type=a,this.readHeaders=o,this.timeZone=d,this.onProgress=s,this.onError=l,this.tables=[],this.rowCount=0,this.rowsProcessed=0,this.chunks=0,this.totalChunks=h?0:Math.ceil(i.size/Jo.LocalChunkSize),this.isComplete=!1,this.zipProgress=0,this.numConsolidated=0,this.isCancelled=!1,this.handleChunk=this.handleChunk.bind(this),this.handleError=this.handleError.bind(this),this.handleComplete=this.handleComplete.bind(this),this.handleNodeUpdate=this.handleNodeUpdate.bind(this),this.handleCreateTable=this.handleCreateTable.bind(this),this.config={delimiter:a.delimiter,newline:a.newline,escapeChar:a.escapeChar,dynamicTyping:!1,error:this.handleError,skipEmptyLines:a.skipEmptyLines,chunk:this.handleChunk,complete:this.handleComplete,fastMode:!1}}cancel(){this.isCancelled=!0}transpose(e,t){for(var r=t.length,i=new Array(e).fill(null).map(()=>new Array(r)),a=0;a<r;a+=1){var o=t[a];if(o.length<e)throw new Error("Insufficient columns. Expected ".concat(e," but found ").concat(o.length,`
|
|
@@ -41,4 +41,4 @@ This note can be edited using **markdown** for styling.`);const xu=fo;function X
|
|
|
41
41
|
Web UI Version: ${e}
|
|
42
42
|
Java Version: ${s}
|
|
43
43
|
Barrage Version: ${o}`,children:"Copy Versions"})]})]})]}),u.jsx("div",{className:"app-settings-footer-item",children:u.jsx(FH,{})})]}),u.jsx("div",{className:"app-settings-footer-section",children:u.jsx("div",{className:"logo",children:u.jsx("a",{target:"_blank",rel:"noreferrer noopener",href:"https://deephaven.io",className:"d-inline-block custom-link p-1",children:u.jsx("img",{src:zb,alt:"Deephaven Data Labs",width:"230px"})})})})]})]})]})}}const zg=10;function Qa(n){const{forwardedProps:{menuItem:{action:e,title:t,disabled:r},iconElement:i,displayShortcut:a,isMouseSelected:o,isKeyboardSelected:s,closeMenu:l}}=n,d=y.useRef(),h=y.useRef(),c=y.useRef(null),[m,v]=y.useState(!1),f=y.useCallback(C=>{d.current!=null&&h.current!=null&&c.current&&(Math.abs(d.current-C.clientX)>=zg||Math.abs(h.current-C.clientY)>=zg)&&(v(!0),window.removeEventListener("mousemove",f),l(),e(C),c.current=null)},[e,l]);function g(C){d.current=C.clientX,h.current=C.clientY,c.current=C.target,window.addEventListener("mousemove",f)}function p(C){c.current===C.target&&(v(!0),l(),e(),window.removeEventListener("mousemove",f)),c.current=null}return y.useEffect(function(){return function(){return window.removeEventListener("mousemove",f)}},[f]),u.jsxs("button",{type:"button",className:J("btn-context-menu",{disabled:r},{active:o&&!r},{"keyboard-active":s&&!r}),onMouseDown:g,onMouseUp:p,disabled:m,children:[u.jsx("span",{className:J("icon"),children:i}),u.jsx("span",{className:"title",children:t}),u.jsx("span",{className:"shortcut",children:a})]})}function Tc(n){const{handleControlSelect:e,handleToolSelect:t,onClearFilter:r}=n,i=y.useMemo(()=>[{title:"Input Filter",icon:Jw,menuElement:u.jsx(Qa,{}),action:a=>{e(zi.INPUT_FILTER,a)},order:10},{title:"Dropdown Filter",icon:dp,menuElement:u.jsx(Qa,{}),action:a=>{e(zi.DROPDOWN_FILTER,a)},order:15},{title:"Markdown Widget",icon:ey,menuElement:u.jsx(Qa,{}),action:a=>{e(zi.MARKDOWN,a)},order:20},{title:"Filter Sets",icon:Uu,menuElement:u.jsx(Qa,{}),action:a=>{e(zi.FILTER_SET_MANAGER,a)},order:25},{disabled:!0,menuElement:u.jsx("div",{className:"context-menu-group-header",children:"Tools"}),order:30},{title:"Linker",icon:op,action:()=>{t(Sr.LINKER)},order:40,shortcut:ui.LINKER},{disabled:!0,menuElement:u.jsx("div",{className:"context-menu-group-header",children:"Actions"}),order:50},{title:"Clear All Filters",icon:ty,action:()=>{r()},order:60,shortcut:xr.TABLE.CLEAR_ALL_FILTERS}],[e,t,r]);return u.jsx(ai,{popperClassName:"controls-menu-popper",actions:i})}Tc.propTypes={handleControlSelect:Y.func,handleToolSelect:Y.func,onClearFilter:Y.func};Tc.defaultProps={handleControlSelect:()=>{},handleToolSelect:()=>{},onClearFilter:()=>{}};Qa.propTypes={forwardedProps:Y.shape({iconElement:Y.node,displayShortcut:Y.string,isMouseSelected:Y.bool.isRequired,isKeyboardSelected:Y.bool.isRequired,closeMenu:Y.func.isRequired,menuItem:Y.shape({action:Y.func,title:Y.string,disabled:Y.bool}).isRequired})};Qa.defaultProps={forwardedProps:null};const WH=ea(Wb,null),zH={layoutStorage:WH},KH=n=>n.layoutStorage,YH=n=>n.serverConfigValues;Object.entries(zH).map(([n,e])=>Ps.register(n,e));const Kg=10;function qH(n){const{onExportLayout:e,onImportLayout:t,onResetLayout:r,onSelect:i,widgets:a=[]}=n,[o,s]=y.useState(!1),[l,d]=y.useState(""),h=y.useRef(null),c=y.useRef(),m=y.useCallback((w,E)=>{w!=null&&i(w,E)},[i]),v=y.useCallback(w=>{d(w.target.value)},[]),f=y.useCallback(w=>{c.current!=null&&(Math.abs(c.current.x-w.clientX)>=Kg||Math.abs(c.current.y-w.clientY)>=Kg)&&(s(!0),window.removeEventListener("mousemove",f),m(c.current.widget,w),c.current=void 0)},[c,m]),g=y.useCallback((w,E)=>{c.current={x:w.clientX,y:w.clientY,widget:E},window.addEventListener("mousemove",f)},[f]),p=y.useCallback((w,E)=>{window.removeEventListener("mousemove",f),c.current?.widget===E&&(s(!0),m(E)),c.current=void 0},[f,c,m]),C=y.useMemo(()=>a.filter(w=>l?w.name?.toLowerCase().includes(l.toLowerCase()):!0),[l,a]).sort((w,E)=>w.name?.localeCompare(E.name??"")??0),b=y.useMemo(()=>C.map(w=>u.jsx("li",{children:u.jsxs(G,{kind:"ghost","data-testid":`panel-list-item-${w.name??""}-button`,onMouseDown:E=>{g(E,w)},onMouseUp:E=>{p(E,w)},onKeyDown:E=>{(E.key==="Enter"||E.key===" ")&&m(w)},disabled:o,onClick:()=>{},children:[u.jsx(Cp,{type:w.type})," ",w.name??""]})},w.name)),[C,o,g,p,m]),S=y.useMemo(()=>b.length===0?u.jsx("span",{children:"No bound variables found."}):null,[b]);return u.jsxs("div",{className:"widget-list-container d-flex flex-column",children:[u.jsx("div",{className:"widget-list-header",children:u.jsx(go,{value:l,placeholder:"Find Table, Plot or Widget",onChange:v,ref:h})}),u.jsxs("ul",{className:"widget-list flex-grow-1",children:[S&&u.jsx("li",{className:"widget-list-message",children:S}),!S&&b]}),u.jsx("div",{children:u.jsx("hr",{})}),u.jsxs("div",{className:"widget-list-footer",children:[u.jsxs(G,{kind:"ghost",onClick:e,children:[u.jsxs("div",{className:"fa-md fa-layers",children:[u.jsx(te,{mask:$u,icon:Zc,transform:"right-5 down-5"}),u.jsx(te,{icon:Zc,transform:"right-8 down-6"})]}),"Export Layout"]}),u.jsxs(G,{kind:"ghost",onClick:t,children:[u.jsxs("div",{className:"fa-md fa-layers",children:[u.jsx(te,{mask:$u,icon:Bu,transform:"right-5 down-5"}),u.jsx(te,{icon:Bu,transform:"right-8 down-6"})]}),"Import Layout"]}),u.jsx(G,{kind:"ghost",icon:ga,onClick:r,tooltip:"Reset Layout"})]})]})}async function XH(n,e,t,r){let i,a,o,s;if(Nl(t)?(i=t.settings,a=t.table,o=void 0,s=t.tableSettings):(i={},a="",o=t.name??t.figure,s={}),r!=null&&(r.tableSettings!=null&&(s=r.tableSettings),r.table!=null&&(a=r.table),r.figure!=null&&(o=r.figure),r.settings!=null&&(i={...i,...r.settings})),o!=null){const h={title:o,name:o,type:n.VariableType.FIGURE},c=await e.getObject(h);return zu.makeModel(n,i,c)}const l={title:o,name:a,type:n.VariableType.TABLE},d=await e.getObject(l);return new ye(n).applyTableSettings(d,s,Ts(Hh.getState())),zu.makeModelFromSettings(n,i,d)}const QH=async(n,e,t)=>{const{name:r,type:i}=t,a={title:r,name:r,type:i},o=await e.getObject(a);return $L.makeModel(n,o)};function ZH({onAutoFillClick:n=()=>{}}){return u.jsxs("div",{className:"empty-dashboard-container",children:[u.jsxs("div",{className:"hint-container",children:[u.jsx(te,{icon:lp})," ",u.jsx("br",{}),"Use the panel list to add objects from a query."]}),u.jsxs("div",{className:"empty-dashboard",children:[u.jsx("div",{className:"add-panels-hint",children:"Drag Panels Here"}),u.jsx(G,{kind:"tertiary",onClick:n,children:"Auto fill objects"})]})]})}function JH(n){return n.version===2}function e$(n){return Array.isArray(n)}const yl=ae.module("UserLayoutUtils"),t$={layoutConfig:[{type:"column",content:[{type:"row",height:40,content:[{type:"stack",content:[{type:"react-component",component:is.COMPONENT,title:is.TITLE,isClosable:!1},{type:"react-component",component:gh.COMPONENT,title:gh.TITLE,isClosable:!1}]},{type:"stack",width:25,content:[{type:"react-component",component:ch.COMPONENT,title:ch.TITLE,isClosable:!1},{type:"react-component",component:fh.COMPONENT,title:fh.TITLE,isClosable:!1}]}]},{type:"row",content:[{type:"stack",title:"Notebooks",content:[]}]}]}],links:[],filterSets:[],version:2},r$={layoutConfig:[],links:[],filterSets:[],version:2};function Jb(n){if(JH(n))return n;if(e$(n))return{layoutConfig:n,links:[],filterSets:[],version:2};throw new Error(`Unexpected layout import format: ${n}`)}async function n$(n,e=!0){try{const t=await n.getLayouts();if(t.length>0)try{const r=await n.getLayout(t[0]);return Jb(r)}catch(r){yl.error("Unable to load layout",t[0],":",r),yl.warn("No valid layouts found, falling back to default layout")}}catch(t){yl.error("Unable to fetch layout list",t),yl.warn("Falling back to default layout")}return e?t$:r$}function i$(n){const{filterSets:e,layoutConfig:t,links:r}=n;return{filterSets:e,layoutConfig:t,links:r,version:2}}const _l={exportLayout:i$,getDefaultLayout:n$,normalizeLayout:Jb},El=ae.module("DownloadServiceWorkerUtils");class Vi{static SERVICE_WORKER_URL=new URL("./download/serviceWorker.js",document.baseURI);static serviceWorkerRegistration=null;static registerOnLoaded(){new URL("./",window.location.href).origin===window.location.origin&&("serviceWorker"in navigator?navigator.serviceWorker.register(Vi.SERVICE_WORKER_URL).then(t=>{t.update(),Vi.serviceWorkerRegistration=t,El.info("Registering service worker on ",Vi.SERVICE_WORKER_URL,t)}).catch(t=>{El.error("Failed to register service worker",t)}):El.info("Service worker is not supported."))}static async getServiceWorker(){if("serviceWorker"in navigator){const e=Vi.serviceWorkerRegistration;if(e&&e.active)return El.info("Download service worker is active."),e.active;throw new Error("Can not find download service worker.")}throw new Error("Download service worker is not available.")}static unregisterSW(){Vi.serviceWorkerRegistration?.unregister()}}const St=ae.module("AppMainContainer");class Za extends y.Component{static handleWindowBeforeUnload(e){e.preventDefault(),e.returnValue=""}static hydrateConsole(e,t){return eh.hydrate({...e,unzip:r=>ep.loadAsync(r).then(i=>Object.values(i.files))},t)}static handleRefresh(){St.info("Refreshing application"),window.location.reload()}constructor(e){super(e),this.handleSettingsMenuHide=this.handleSettingsMenuHide.bind(this),this.handleSettingsMenuShow=this.handleSettingsMenuShow.bind(this),this.handleError=this.handleError.bind(this),this.handleControlSelect=this.handleControlSelect.bind(this),this.handleToolSelect=this.handleToolSelect.bind(this),this.handleClearFilter=this.handleClearFilter.bind(this),this.handleDataChange=this.handleDataChange.bind(this),this.handleAutoFillClick=this.handleAutoFillClick.bind(this),this.handleGoldenLayoutChange=this.handleGoldenLayoutChange.bind(this),this.handleLayoutConfigChange=this.handleLayoutConfigChange.bind(this),this.handleExportLayoutClick=this.handleExportLayoutClick.bind(this),this.handleImportLayoutClick=this.handleImportLayoutClick.bind(this),this.handleImportLayoutFiles=this.handleImportLayoutFiles.bind(this),this.handleLoadTablePlugin=this.handleLoadTablePlugin.bind(this),this.handleResetLayoutClick=this.handleResetLayoutClick.bind(this),this.handleWidgetMenuClick=this.handleWidgetMenuClick.bind(this),this.handleWidgetsMenuClose=this.handleWidgetsMenuClose.bind(this),this.handleWidgetSelect=this.handleWidgetSelect.bind(this),this.handlePaste=this.handlePaste.bind(this),this.hydrateChart=this.hydrateChart.bind(this),this.hydrateTable=this.hydrateTable.bind(this),this.hydrateDefault=this.hydrateDefault.bind(this),this.openNotebookFromURL=this.openNotebookFromURL.bind(this),this.handleDisconnect=this.handleDisconnect.bind(this),this.handleReconnect=this.handleReconnect.bind(this),this.handleReconnectAuthFailed=this.handleReconnectAuthFailed.bind(this),this.importElement=he.createRef(),this.state={contextActions:[{action:()=>{this.handleToolSelect(Sr.LINKER)},shortcut:ui.LINKER,isGlobal:!0},{action:()=>{this.sendClearFilter()},shortcut:xr.TABLE.CLEAR_ALL_FILTERS,isGlobal:!0},{action:()=>{St.debug("Consume unhandled save shortcut")},shortcut:ui.SAVE,isGlobal:!0}],isAuthFailed:!1,isDisconnected:!1,isPanelsMenuShown:!1,isSettingsMenuShown:!1,widgets:[]}}componentDidMount(){this.initWidgets(),this.startListeningForDisconnect(),window.addEventListener("beforeunload",Za.handleWindowBeforeUnload)}componentDidUpdate(e){const{dashboardData:t}=this.props;e.dashboardData!==t&&this.handleDataChange(t)}componentWillUnmount(){this.deinitWidgets(),this.stopListeningForDisconnect(),window.removeEventListener("beforeunload",Za.handleWindowBeforeUnload)}goldenLayout;importElement;widgetListenerRemover;initWidgets(){const{connection:e}=this.props;if(e.subscribeToFieldUpdates==null){St.warn("subscribeToFieldUpdates not supported, not initializing widgets");return}this.widgetListenerRemover=e.subscribeToFieldUpdates(t=>{St.debug("Got updates",t),this.setState(({widgets:r})=>{const{updated:i,created:a,removed:o}=t,s=[...i,...o],l=r.filter(h=>!s.some(c=>c.name===h.name));return[...i,...a].forEach(h=>{h.name!=null&&h.name!==""&&l.push(h)}),{widgets:l}})})}deinitWidgets(){this.widgetListenerRemover?.()}openNotebookFromURL(){const{match:e}=this.props,{notebookPath:t}=e.params;if(t){const{session:r,sessionConfig:i}=this.props;if(r==null||i==null){St.error("No session available to open notebook URL",t);return}const a={id:`/${t}`,itemName:`/${t}`},o=i.type,s={value:null,language:o};this.emitLayoutEvent(Ke.SELECT_NOTEBOOK,r,o,s,a,!0)}}sendClearFilter(){this.emitLayoutEvent(at.CLEAR_ALL_FILTERS)}emitLayoutEvent(e,...t){this.goldenLayout?.eventHub.emit(e,...t)}handleError(e){Te.isCanceled(e)||St.error(e)}handleSettingsMenuHide(){this.setState({isSettingsMenuShown:!1})}handleSettingsMenuShow(){this.setState({isSettingsMenuShown:!0})}handleControlSelect(e,t){switch(St.debug("handleControlSelect",e),e){case zi.DROPDOWN_FILTER:this.emitLayoutEvent(at.OPEN_DROPDOWN,{title:"DropdownFilter",type:e,createNewStack:!0,dragEvent:t});break;case zi.INPUT_FILTER:this.emitLayoutEvent(at.OPEN_INPUT,{title:"InputFilter",type:e,createNewStack:!0,dragEvent:t});break;case zi.MARKDOWN:this.emitLayoutEvent(fb.OPEN,{title:"Markdown",type:e,dragEvent:t});break;case zi.FILTER_SET_MANAGER:this.emitLayoutEvent(at.OPEN_FILTER_SET_MANAGER,{title:"FilterSets",type:e,dragEvent:t});break;default:throw new Error(`Unrecognized control type ${e}`)}}handleToolSelect(e){St.debug("handleToolSelect",e);const{activeTool:t,setActiveTool:r}=this.props;r(t===e?Sr.DEFAULT:e)}handleClearFilter(){this.sendClearFilter()}handleDataChange(e){const{updateWorkspaceData:t}=this.props,{closed:r,filterSets:i,links:a}=e;t({closed:r,filterSets:i,links:a})}handleGoldenLayoutChange(e){this.goldenLayout=e}handleLayoutConfigChange(e){const{updateWorkspaceData:t}=this.props;t({layoutConfig:e})}handleWidgetMenuClick(){this.setState(({isPanelsMenuShown:e})=>({isPanelsMenuShown:!e}))}handleWidgetSelect(e,t){this.setState({isPanelsMenuShown:!1}),St.debug("handleWidgetSelect",e,t),this.openWidget(e,t)}handleWidgetsMenuClose(){this.setState({isPanelsMenuShown:!1})}handleAutoFillClick(){const{widgets:e}=this.state;St.debug("handleAutoFillClick",e);const t=e.sort((r,i)=>r.title!=null&&i.title!=null?r.title.localeCompare(i.title):0);for(let r=0;r<t.length;r+=1)this.openWidget(t[r])}handleExportLayoutClick(){St.info("handleExportLayoutClick"),this.setState({isPanelsMenuShown:!1});try{const{workspace:e}=this.props,{data:t}=e,r=_l.exportLayout(t);St.info("handleExportLayoutClick exportedConfig",r);const i=new Blob([JSON.stringify(r)],{type:"application/json"}),a=ln.i18n.DateTimeFormat.format("yyyy-MM-dd-HHmmss",new Date),o=document.createElement("a");o.href=URL.createObjectURL(i),o.download=`deephaven-app-layout-${a}.json`,o.click()}catch(e){St.error("Unable to export layout",e)}}handleImportLayoutClick(){St.info("handleImportLayoutClick"),this.setState({isPanelsMenuShown:!1}),this.importElement.current!=null&&(this.importElement.current.value="",this.importElement.current.click())}handleResetLayoutClick(){St.info("handleResetLayoutClick"),this.setState({isPanelsMenuShown:!1}),this.resetLayout()}handleImportLayoutFiles(e){e.stopPropagation(),e.preventDefault(),e.target.files!=null&&this.importLayoutFile(e.target.files?.[0])}handleDisconnect(){St.info("Disconnected from server"),this.setState({isDisconnected:!0})}handleReconnect(){St.info("Reconnected to server"),this.setState({isDisconnected:!1})}handleReconnectAuthFailed(){St.warn("Reconnect authentication failed"),this.setState({isAuthFailed:!0})}async importLayoutFile(e){try{const{updateDashboardData:t,updateWorkspaceData:r}=this.props,i=await e.text(),a=JSON.parse(i),{filterSets:o,layoutConfig:s,links:l}=_l.normalizeLayout(a);r({layoutConfig:s}),t(bn,{filterSets:o,links:l})}catch(t){St.error("Unable to import layout",t)}}async resetLayout(){const{layoutStorage:e,session:t}=this.props,{filterSets:r,layoutConfig:i,links:a}=await _l.getDefaultLayout(e,t!==void 0),{updateDashboardData:o,updateWorkspaceData:s}=this.props;s({layoutConfig:i}),o(bn,{filterSets:r,links:a})}handlePaste(e){if(e.target instanceof HTMLElement&&e.target.closest(".monaco-editor"))return;const{clipboardData:t}=e,r=t.getData("Text"),i=/“|”/g;i.test(r)&&(e.preventDefault(),e.stopPropagation(),document.execCommand("insertText",!1,r.replace(i,'"')))}handleLoadTablePlugin(e){const{plugins:t}=this.props,r=t.get(e);if(r!=null){if(Cy(r))return r.component;if(by(r))return r.TablePlugin}const i=`Unable to find table plugin ${e}.`;throw St.error(i),new Error(i)}startListeningForDisconnect(){const{connection:e}=this.props;e.addEventListener(ln.IdeConnection.EVENT_DISCONNECT,this.handleDisconnect),e.addEventListener(ln.IdeConnection.EVENT_RECONNECT,this.handleReconnect),e.addEventListener(ln.CoreClient.EVENT_RECONNECT_AUTH_FAILED,this.handleReconnectAuthFailed)}stopListeningForDisconnect(){const{connection:e}=this.props;e.removeEventListener(ln.IdeConnection.EVENT_DISCONNECT,this.handleDisconnect),e.removeEventListener(ln.IdeConnection.EVENT_RECONNECT,this.handleReconnect),e.removeEventListener(ln.CoreClient.EVENT_RECONNECT_AUTH_FAILED,this.handleReconnectAuthFailed)}hydrateDefault(e,t){const{connection:r}=this.props,{metadata:i}=e;if(i?.type!=null&&(i?.id!=null||i?.name!=null)){const a=i.id!=null?{type:i.type,id:i.id}:{type:i.type,name:i.name,title:i.name};return{fetch:()=>r.getObject(a),...e,localDashboardId:t}}return eh.hydrate(e,t)}hydrateTable(e,t){const{connection:r}=this.props;let i;if(Fb(e.metadata))i=e.metadata;else if(Nb(e.metadata))i={name:e.metadata.table,type:e.metadata.type??ln.VariableType.TABLE};else throw new Error("Metadata is required for table panel");return{...e,getDownloadWorker:Vi.getServiceWorker,loadPlugin:this.handleLoadTablePlugin,localDashboardId:t,makeModel:()=>QH(ln,r,i)}}hydrateChart(e,t){const{connection:r}=this.props;return{...e,localDashboardId:t,makeModel:()=>{const{metadata:i}=e,a=w1(e)?e.panelState:void 0;if(i==null)throw new Error("Metadata is required for chart panel");return XH(ln,r,i,a)}}}openWidget(e,t){const{connection:r}=this.props;this.emitLayoutEvent(Ee.OPEN,{dragEvent:t,fetch:()=>r.getObject(e),widget:e})}getDashboardPlugins=Ce(e=>[...e.entries()].filter(([,r])=>yy(r)).map(([r,{DashboardPlugin:i}])=>u.jsx(i,{},r)).concat([...e.values()].filter(Ey).map(({component:r,name:i})=>u.jsx(r,{},i))));render(){const{activeTool:e,plugins:t,user:r,workspace:i,serverConfigValues:a}=this.props,{data:o}=i,{layoutConfig:s}=o,{permissions:l}=r,{canUsePanels:d}=l,{contextActions:h,isAuthFailed:c,isDisconnected:m,isPanelsMenuShown:v,isSettingsMenuShown:f,widgets:g}=this.state,p=this.getDashboardPlugins(t);return u.jsxs("div",{className:J("app-main-tabs","w-100","h-100","d-flex","flex-column",e?`active-tool-${e.toLowerCase()}`:""),onPaste:this.handlePaste,tabIndex:-1,children:[u.jsx("nav",{className:"nav-container",children:u.jsxs("div",{className:"app-main-top-nav-menus",children:[u.jsx("img",{src:zb,alt:"Deephaven Data Labs",width:"115px",className:"ml-1"}),u.jsxs("div",{children:[u.jsxs(G,{kind:"ghost",className:"btn-panels-menu",icon:ry,onClick:()=>{},children:["Controls",u.jsx(Tc,{handleControlSelect:this.handleControlSelect,handleToolSelect:this.handleToolSelect,onClearFilter:this.handleClearFilter})]}),d&&u.jsxs(G,{kind:"ghost",className:"btn-panels-menu btn-show-panels","data-testid":"app-main-panels-button",onClick:this.handleWidgetMenuClick,icon:ny,children:["Panels",u.jsx(hd,{isShown:v,className:"panels-menu-popper",onExited:this.handleWidgetsMenuClose,options:{placement:"bottom"},closeOnBlur:!0,interactive:!0,children:u.jsx(qH,{widgets:g,onExportLayout:this.handleExportLayoutClick,onImportLayout:this.handleImportLayoutClick,onResetLayout:this.handleResetLayoutClick,onSelect:this.handleWidgetSelect})})]}),u.jsx(G,{kind:"ghost",className:J("btn-settings-menu",{"text-warning":r.operateAs!=null&&r.operateAs!==r.name}),onClick:this.handleSettingsMenuShow,icon:u.jsxs("span",{className:"fa-layers",children:[u.jsx(te,{icon:Ss,transform:"grow-3 right-1 down-1"}),m&&!c&&u.jsxs(u.Fragment,{children:[u.jsx(te,{icon:ds,color:Ze.background,transform:"grow-2 right-8 down-8.5 rotate-45"}),u.jsx(te,{icon:Jc,color:Ze.danger,transform:"shrink-5 right-6 down-6"})]})]}),tooltip:m&&!c?"Server disconnected":"User Settings"})]})]})}),u.jsxs(KD,{emptyDashboard:u.jsx(ZH,{onAutoFillClick:this.handleAutoFillClick}),id:bn,layoutConfig:s,onGoldenLayoutChange:this.handleGoldenLayoutChange,onLayoutConfigChange:this.handleLayoutConfigChange,onLayoutInitialized:this.openNotebookFromURL,hydrate:this.hydrateDefault,children:[u.jsx(Fj,{hydrate:this.hydrateTable}),u.jsx(yj,{hydrate:this.hydrateChart}),u.jsx(Ej,{}),u.jsx(Rj,{hydrateConsole:Za.hydrateConsole,notebooksUrl:new URL("notebooks/",document.baseURI).href}),u.jsx(Nj,{}),u.jsx(Qj,{hydrate:this.hydrateTable}),u.jsx(Xj,{}),u.jsx(Kj,{}),p]}),u.jsx(Lr,{in:f,timeout:Ze.transitionMidMs,classNames:"slide-left",mountOnEnter:!0,unmountOnExit:!0,children:u.jsx(Nn,{serverConfigValues:a,onDone:this.handleSettingsMenuHide,user:r})}),u.jsx(oe,{actions:h}),u.jsx("input",{ref:this.importElement,type:"file",accept:".json",style:{display:"none"},onChange:this.handleImportLayoutFiles}),u.jsx(Sy,{isOpen:m&&!c,debounceMs:1e3,children:u.jsx(wy,{icon:Jc,title:u.jsxs(u.Fragment,{children:[u.jsx(kn,{})," Attempting to reconnect..."]}),subtitle:"Please check your network connection."})}),u.jsx(us,{confirmButtonText:"Refresh",onConfirm:Za.handleRefresh,isOpen:c,headerText:"Authentication failed",bodyText:"Credentials are invalid. Please refresh your browser to try and reconnect."})]})}}const a$=n=>({activeTool:bd(n),dashboardData:yr(n,bn),layoutStorage:KH(n),plugins:$T(n),connection:c1(n,bn),session:Oa(n,bn)?.session,sessionConfig:Oa(n,bn)?.config,user:kp(n),workspace:Cd(n),serverConfigValues:YH(n)}),o$=Ht(a$,{setActiveTool:wd,updateDashboardData:jn,updateWorkspaceData:nC})(VS(Za));function s$(){return u.jsxs("div",{className:"app",children:[u.jsx(o$,{}),u.jsx(fp,{})]})}const l$=ae.module("LocalWorkspaceStorage");class Ja{static STORAGE_KEY="deephaven.WorkspaceStorage";static async makeDefaultWorkspaceData(e,t){const{filterSets:r,links:i,layoutConfig:a}=await _l.getDefaultLayout(e,t?.isConsoleAvailable);return{settings:{defaultDateTimeFormat:Tt.DEFAULT_DATETIME_FORMAT_STRING,formatter:[],timeZone:Tt.DEFAULT_TIME_ZONE_ID,showTimeZone:!1,showTSeparator:!0,disableMoveConfirmation:!1,defaultDecimalFormatOptions:{defaultFormatString:Je.DEFAULT_FORMAT_STRING},defaultIntegerFormatOptions:{defaultFormatString:Et.DEFAULT_FORMAT_STRING},truncateNumbersWithPound:!1,defaultNotebookSettings:{isMinimapEnabled:!1}},layoutConfig:a,closed:[{}],links:i,filterSets:r}}static async makeDefaultWorkspace(e,t){return{data:await Ja.makeDefaultWorkspaceData(e,t)}}layoutStorage;constructor(e){this.layoutStorage=e}async load(e){try{return JSON.parse(localStorage.getItem(Ja.STORAGE_KEY)??"")}catch{return l$.info("Unable to load workspace data, initializing to default data"),Ja.makeDefaultWorkspace(this.layoutStorage,e)}}async save(e){return localStorage.setItem(Ja.STORAGE_KEY,JSON.stringify(e)),e}}class d${storageService;root;constructor(e,t=""){this.storageService=e,this.root=t}async getLayouts(){return(await this.storageService.listItems(this.root,"*.json")).map(t=>t.basename)}async getLayout(e){const r=await(await this.storageService.loadFile(`${this.root}/${e}`)).text();return JSON.parse(r)}}const Wo=ae.module("GrpcFileStorageTable");class ed{static REFRESH_DEBOUNCE=50;storageService;baseRoot;root;currentSize=0;currentViewport;listeners=[];viewportUpdatePromise;currentViewportData;childTables=new Map;constructor(e,t="",r=t){this.storageService=e,this.baseRoot=t,this.root=r,r===t&&(this.doRefresh=tt(this.doRefresh.bind(this),ed.REFRESH_DEBOUNCE))}removeBaseRoot(e){return ge.removeRoot(this.baseRoot,e)}getViewportData(){return this.viewportUpdatePromise||this.refreshInternal(),this.viewportUpdatePromise??Promise.resolve({items:[],offset:0})}getSnapshot(e){throw new Error("Method not implemented.")}get size(){return this.currentSize}setExpanded(e,t){const r=e.split("/");let i=r.shift();if((i===void 0||i==="")&&(i=r.shift()),i===void 0||i==="")throw new Error(`Invalid path: ${e}`);const a=r.join("/");if(t){if(!this.childTables.has(i)){const o=new ed(this.storageService,this.baseRoot,`${this.root}/${i}`);this.childTables.set(i,o)}a&&this.childTables.get(i)?.setExpanded(a,t)}else this.childTables.has(i)&&(a?this.childTables.get(i)?.setExpanded(a,t):this.childTables.delete(i));this.currentViewport&&this.refreshInternal()}collapseAll(){this.childTables.clear(),this.currentViewport&&this.refreshInternal()}setSearch(e){throw new Error("Method not implemented.")}setViewport(e){this.currentViewport=e,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(e){return this.listeners=[...this.listeners,e],()=>{this.listeners=this.listeners.filter(t=>t!==e)}}doRefresh(e){Wo.debug2("doRefresh",this.root),e(this.fetchData())}refresh(){Wo.debug2("refresh",this.root),this.viewportUpdatePromise?.cancel();const e=new Promise(r=>{this.doRefresh(r)}),t=Te.makeCancelable(e.then(r=>{if(this.viewportUpdatePromise!==t)throw new ld;return this.currentViewportData=r,this.sendUpdate(),r}));t.catch(r=>{Te.isCanceled(r)||Wo.error("Error updating viewport",r)}),this.viewportUpdatePromise=t}refreshInternal(){try{this.refresh()}catch(e){Te.isCanceled(e)||Wo.error("Unable to refresh data",e)}}async fetchData(){const{currentViewport:e}=this;if(!e)throw new Error("No viewport set");let r=(await this.storageService.listItems(this.root)).map(i=>({type:i.type,filename:this.removeBaseRoot(i.filename),basename:i.basename,id:this.removeBaseRoot(i.filename),isExpanded:i.type==="directory"?this.childTables.has(i.basename):void 0})).sort((i,a)=>i.type!==a.type?i.type==="directory"?-1:1:i.basename.localeCompare(a.basename));for(let i=0;i<r.length;i+=1){const a=r[i],{basename:o,filename:s}=a;if(s===this.removeBaseRoot(`${this.root}/${o}`)&&a.type==="directory"){const l=this.childTables.get(o);if(l!=null){l.setViewport({top:0,bottom:e.bottom-i});const d=await l.getViewportData();r.splice(i+1,0,...d.items)}}}return this.currentSize=r.length,Wo.debug2(this.root,"items",r,e),r=r.slice(e.top,e.bottom),{items:r,offset:e.top}}sendUpdate(){const{listeners:e}=this,t=this.currentViewportData??{items:[],offset:0};for(let r=0;r<e.length;r+=1)e[r](t)}}const u$=ae.module("GrpcFileStorage");class Pc{static REFRESH_THROTTLE=150;storageService;tables=[];root;constructor(e,t=""){this.storageService=e,this.root=t}removeRoot(e){return ge.removeRoot(this.root,e)}addRoot(e){return ge.addRoot(this.root,e)}async createDirectory(e){return await this.storageService.createDirectory(this.addRoot(e)),this.refreshTables(),{type:"directory",id:e,filename:e,basename:ge.getBaseName(e)}}async getTable(){const e=new ed(this.storageService,this.root);return this.tables.push(e),e}async saveFile(e){const t=dh.storage.FileContents.text(e.content);return await this.storageService.saveFile(this.addRoot(e.filename),t,!0),this.refreshTables(),e}async loadFile(e){const r=await(await this.storageService.loadFile(this.addRoot(e))).text();return{filename:e,basename:ge.getBaseName(e),content:r}}async copyFile(e,t){const r=await this.storageService.loadFile(this.addRoot(e));await this.storageService.saveFile(this.addRoot(t),r,!1),this.refreshTables()}async deleteFile(e){await this.storageService.deleteItem(this.addRoot(e)),this.refreshTables()}async moveFile(e,t){await this.storageService.moveItem(this.addRoot(e),this.addRoot(t)),this.refreshTables()}async info(e){const t=await this.storageService.listItems(this.addRoot(ge.getPath(e)),ge.getBaseName(e));if(t.length===0)throw new fc;if(t.length>1)throw u$.error("More than one matching file found, should never happen.",t),new Error("More than one matching file found");const r=t[0];return{filename:this.removeRoot(r.filename),basename:r.basename,id:this.removeRoot(r.filename),type:r.type}}refreshTables=Xi(()=>{this.tables.forEach(e=>e.refresh())},Pc.REFRESH_THROTTLE)}const h$=ae.module("AppInit");function Oc(n){const{workspace:e,setActiveTool:t,setApi:r,setCommandHistoryStorage:i,setDashboardData:a,setFileStorage:o,setLayoutStorage:s,setDashboardConnection:l,setDashboardSessionWrapper:d,setPlugins:h,setUser:c,setWorkspace:m,setWorkspaceStorage:v,setServerConfigValues:f}=n,g=Da(),p=Ty(),C=Py(),b=Oy(),S=Dy(),w=Ry(),[E,T]=y.useState();y.useEffect(function(){h(b)},[b,h]),y.useEffect(function(){async function _(){try{const F=await Ny(),I=await Fy(g,C,F),k=p.getStorageService(),x=new d$(k,"/layouts"),U=new Pc(k,"/notebooks"),V=new Ja(x),K=new SH,q=await V.load({isConsoleAvailable:I!==void 0}),{data:Z}=q,{settings:M}=Z;M.defaultDecimalFormatOptions===void 0&&(M.defaultDecimalFormatOptions={defaultFormatString:Je.DEFAULT_FORMAT_STRING}),M.defaultIntegerFormatOptions===void 0&&(M.defaultIntegerFormatOptions={defaultFormatString:Et.DEFAULT_FORMAT_STRING}),M.truncateNumbersWithPound===void 0&&(M.truncateNumbersWithPound=!1);const{shortcutOverrides:R={}}=M,j=dn.isMacPlatform?R.mac??{}:R.windows??{};Object.entries(j).forEach(([re,W])=>{qe.get(re)?.setKeyState(W)});const z={filterSets:Z.filterSets,links:Z.links};r(g),t(Sr.DEFAULT),f(S),i(K),a(bn,z),o(U),s(x),l(bn,C),I!==void 0&&d(bn,I),c(w),v(V),m(q)}catch(F){h$.error(F),T(F)}}_()},[g,p,C,S,t,r,i,a,o,s,l,d,c,m,v,f,w]);const P=e==null&&E==null,D=!P&&E==null,O=E!=null?`${E}`:null;return u.jsxs(u.Fragment,{children:[D&&u.jsx(s$,{}),u.jsx(rd,{isLoading:P&&O==null,isLoaded:D,errorMessage:O})]})}Oc.propTypes={workspace:Y.shape({}),workspaceStorage:Y.shape({close:Y.func}),setActiveTool:Y.func.isRequired,setApi:Y.func.isRequired,setCommandHistoryStorage:Y.func.isRequired,setDashboardData:Y.func.isRequired,setFileStorage:Y.func.isRequired,setLayoutStorage:Y.func.isRequired,setDashboardConnection:Y.func.isRequired,setDashboardSessionWrapper:Y.func.isRequired,setPlugins:Y.func.isRequired,setUser:Y.func.isRequired,setWorkspace:Y.func.isRequired,setWorkspaceStorage:Y.func.isRequired};Oc.defaultProps={workspace:null,workspaceStorage:null};const c$=n=>({workspace:Cd(n),workspaceStorage:kT(n)}),Yg=Ht(c$,{setActiveTool:wd,setApi:WT,setCommandHistoryStorage:KT,setDashboardData:RC,setFileStorage:YT,setLayoutStorage:wH,setDashboardConnection:m1,setDashboardSessionWrapper:v1,setPlugins:XT,setUser:GT,setWorkspace:rC,setWorkspaceStorage:zT,setServerConfigValues:QT})(Oc),m$=document.location.pathname;function v$(){return u.jsx(GS,{basename:m$,children:u.jsxs(WS,{children:[u.jsx(Wc,{exact:!0,path:"/",component:Yg}),u.jsx(Wc,{path:"/notebooks/:notebookPath+",component:Yg}),u.jsx(zS,{from:"*",to:"/"})]})})}function y$(){return Vi.registerOnLoaded(),Cr.init({getWorker:()=>new qS}),window["__react-beautiful-dnd-disable-dev-warnings"]=!0,u.jsx(KS,{store:Hh,children:u.jsx(v$,{})})}export{y$ as AppRoot,y$ as default};
|
|
44
|
-
//# sourceMappingURL=AppRoot-
|
|
44
|
+
//# sourceMappingURL=AppRoot-849aca92.js.map
|