@deephaven/embed-widget 0.58.1-beta.3 → 0.58.1-beta.4

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.
@@ -12,5 +12,5 @@ import{r as m,R as O,C as s,D as N,E as b,F as qo,_ as y,G as B}from"./vendor-d0
12
12
  `,o9=`:root{--dh-color-grid-bg: var(--dh-color-content-bg);--dh-color-grid-header-bg: var(--dh-color-gray-100);--dh-color-grid-header-text: var(--dh-color-heading-text);--dh-color-grid-header-separator: var(--dh-color-gray-50);--dh-color-grid-header-separator-hover: var(--dh-color-gray-600);--dh-color-grid-header-separator-hidden-hover: var(--dh-color-accent-700);--dh-color-grid-header-sort-bar: var(--dh-color-visual-purple);--dh-color-grid-header-reverse-bar: var(--dh-color-visual-green);--dh-color-grid-header-bar-casing: var(--dh-color-gray-50);--dh-color-grid-row-0-bg: var(--dh-color-gray-50);--dh-color-grid-row-1-bg: var(--dh-color-gray-100);--dh-color-grid-row-hover-bg: var(--dh-color-highlight-hover);--dh-color-grid-row-hover-bg-selected: var( --dh-color-highlight-selected-hover );--dh-color-grid-row-shadow-alpha: 0.07;--dh-color-grid-selection: var(--dh-color-highlight-selected);--dh-color-grid-selection-outline: var(--dh-color-accent-900);--dh-color-grid-selection-outline-casing: var(--dh-color-gray-50);--dh-color-grid-scroll-bar-active-selection-tick: var(--dh-color-accent-400);--dh-color-grid-scroll-bar-bg: var(--dh-color-gray-100);--dh-color-grid-scroll-bar-hover-bg: var(--dh-color-gray-200);--dh-color-grid-scroll-bar-casing: var(--dh-color-gray-400);--dh-color-grid-scroll-bar-corner: var(--dh-color-gray-100);--dh-color-grid-scroll-bar: var(--dh-color-gray-500);--dh-color-grid-scroll-bar-hover: var(--dh-color-gray-600);--dh-color-grid-scroll-bar-active: var(--dh-color-gray-700);--dh-color-grid-text: var(--dh-color-text);--dh-color-grid-text-hyperlink: var(--dh-color-accent-1000);--dh-color-grid-text-pending: var(--dh-color-modified);--dh-color-grid-text-error: var(--dh-color-visual-negative);--dh-color-grid-date: var(--dh-color-visual-purple);--dh-color-grid-number-positive: var(--dh-color-visual-positive);--dh-color-grid-number-negative: var(--dh-color-visual-negative);--dh-color-grid-number-zero: var(--dh-color-visual-purple);--dh-color-grid-string-null: var(--dh-color-gray-600);--dh-color-grid-filter-bar-active-bg: hsla( var(--dh-color-accent-700-hsl), 0.5 );--dh-color-grid-filter-bar-active: var(--dh-color-accent-100);--dh-color-grid-filter-bar-expanded-bg: var(--dh-color-gray-50);--dh-color-grid-filter-bar-expanded-active-bg: hsla( var(--dh-color-accent-1000-hsl), 0.19 );--dh-color-grid-filter-bar-expanded-active-cell-bg: hsla( var(--dh-color-accent-700-hsl), 0.32 );--dh-color-grid-filter-bar-separator: var(--dh-color-gray-600);--dh-color-grid-filter-bar-error: var(--dh-color-visual-negative);--dh-color-grid-filter-icon: var(--dh-color-accent-600);--dh-color-grid-context-menu-sort-icon: var(--dh-color-visual-purple);--dh-color-grid-context-menu-reverse-icon: var(--dh-color-visual-green);--dh-color-grid-column-linker-hover-bg: var( --dh-color-highlight-selected-hover );--dh-color-grid-column-grouped-divider: var(--dh-color-gray-50);--dh-color-grid-tree-line: var(--dh-color-gray-500);--dh-color-grid-tree-marker: var(--dh-color-gray-700);--dh-color-grid-tree-marker-hover: var(--dh-color-gray-900);--dh-color-grid-floating-row: var(--dh-color-gray-300);--dh-color-grid-floating-row-bg: var(--dh-color-gray-200);--dh-color-grid-floating-divider-inner: var(--dh-color-gray-200);--dh-color-grid-floating-divider-outer: var(--dh-color-gray-50);--dh-color-grid-overflow-button: var(--dh-color-gray-700);--dh-color-grid-overflow-button-hover: var(--dh-color-gray-900);--dh-color-grid-data-bar-positive: var(--dh-color-visual-positive);--dh-color-grid-data-bar-negative: var(--dh-color-visual-negative);--dh-color-grid-data-bar-marker: var(--dh-color-white);--dh-color-grid-data-bar-zero-line: var(--dh-color-gray-300);--dh-color-grid-scrim: var(--dh-color-gray-200)}/*# sourceMappingURL=theme-light-semantic-grid.css.map */
13
13
  `,l9=`:root{--dh-color-loading-spinner-primary: var(--dh-color-accent-bg);--dh-color-loading-spinner-secondary: hsla(var(--dh-color-gray-800-hsl), 0.5);--dh-color-quickactions-bg: hsla(var(--dh-color-visual-gray-hsl), 0.9);--dh-color-radial-reaction: hsla(var(--dh-color-visual-gray-hsl), 0.6);--dh-color-colorpicker-border: hsla(var(--dh-color-visual-gray-hsl), 0.1);--dh-logo-img: var(--dh-logo-light-img);--dh-color-login-form-bg: var(--dh-color-gray-200);--dh-color-login-status-message: var(--dh-color-gray-600);--dh-color-login-logo-bg: var(--dh-color-gray-50);--dh-color-login-footer-fg: var(--dh-color-gray-700);--dh-color-random-area-plot-animation-fg-fill: hsla( var(--dh-color-accent-hsl), 0.08 );--dh-color-random-area-plot-animation-fg-stroke: hsla( var(--dh-color-accent-hsl), 0.2 );--dh-color-random-area-plot-animation-bg: var(--dh-color-gray-75);--dh-color-random-area-plot-animation-grid: var(--dh-color-gray-300);--dh-color-action-bg: var(--dh-color-gray-75);--dh-color-action-fg: var(--dh-color-text);--dh-color-action-border: var(--dh-color-border);--dh-color-action-down-bg: var(--dh-color-gray-300);--dh-color-action-hover-bg: var(--dh-color-gray-50);--dh-color-action-hover-fg: var(--dh-color-text-hover);--dh-color-action-hover-border: var(--dh-color-hover-border);--dh-color-action-active-bg: var(--dh-color-accent-bg);--dh-color-action-active-fg: var(--dh-color-accent-contrast);--dh-color-action-active-border: var(--dh-color-accent-bg);--dh-color-action-active-hover-bg: var(--dh-color-accent-hover-bg);--dh-color-action-active-hover-fg: var(--dh-color-accent-contrast);--dh-color-action-active-hover-border: var(--dh-color-accent-hover-bg);--dh-color-action-disabled-bg: transparent;--dh-color-action-disabled-fg: var(--dh-color-text-disabled);--dh-color-action-disabled-border: var(--dh-color-gray-300);--dh-color-icon-fg: var(--dh-color-gray-700);--dh-color-icon-disabled-fg: var(--dh-color-gray-400);--dh-color-input-bg: var(--dh-color-gray-50);--dh-color-input-fg: var(--dh-color-text);--dh-color-input-border: var(--dh-color-border);--dh-color-input-placeholder: var(--dh-color-gray-600);--dh-color-input-active-bg: var(--dh-color-input-bg);--dh-color-input-disabled-bg: var(--dh-color-disabled-bg);--dh-color-input-disabled-border: transparent;--dh-color-input-disabled-fg: var(--dh-color-text-disabled);--dh-color-input-hover-border: var(--dh-color-gray-600);--dh-color-input-focus-border: var(--dh-color-border-focus);--dh-color-search-icon: var(--dh-color-fg);--dh-color-form-control-error: hsl(var(--dh-color-visual-negative-hsl));--dh-color-form-control-error-shadow: hsla( var(--dh-color-visual-negative-hsl), 0.25 );--dh-color-label-text: var(--dh-color-gray-700);--dh-color-selector-fg: var(--dh-color-icon-fg);--dh-color-selector-bg: var(--dh-color-gray-75);--dh-color-selector-hover-bg: var(--dh-color-gray-50);--dh-color-selector-hover-fg: var(--dh-color-gray-900);--dh-color-selector-disabled-fg: var(--dh-color-icon-disabled-fg);--dh-color-item-list-bg: transparent;--dh-color-item-list-active-bg: var(--dh-color-highlight-active);--dh-color-item-list-hover-bg: var(--dh-color-highlight-hover);--dh-color-item-list-selected-fg: var(--dh-color-text);--dh-color-item-list-selected-bg: var(--dh-color-highlight-selected);--dh-color-item-list-selected-hover-bg: var( --dh-color-highlight-selected-hover );--dh-color-item-list-selected-inactive-bg: var(--dh-color-gray-200);--dh-color-item-list-selected-border: hsla(var(--dh-color-accent-hsl), 0.6);--dh-color-item-list-drop-target-fg: var(--dh-color-white);--dh-color-item-list-keyboard-selected-bg: hsla( var(--dh-color-accent-hsl), 0.5 );--dh-color-golden-layout-tab-header-bg: var(--dh-color-gray-200);--dh-color-golden-layout-tab-bg: var(--dh-color-gray-100);--dh-color-golden-layout-tab-selected-bg: var(--dh-color-content-bg);--dh-color-menu-item-fg: var(--dh-color-gray-700);--dh-color-hr: var(--dh-color-gray-300);--dh-color-dialog-title-fg: var(--dh-color-heading-text);--dh-color-dialog-fg: var(--dh-color-text);--dh-color-popover-bg: var(--dh-color-gray-50);--dh-color-tooltip-bg: var(--dh-color-gray-50);--dh-color-tooltip-fg: var(--dh-color-fg);--dh-color-tooltip-box-shadow: var(--dh-color-dropshadow);--dh-color-well-bg: hsla(var(--dh-color-visual-gray-hsl), 0.02);--dh-color-well-border: hsla(var(--dh-color-visual-gray-hsl), 0.05)}/*# sourceMappingURL=theme-light-components.css.map */
14
14
  `;var r9=[Jl,Xl,Ql,Yl,o9,l9].join(`
15
- `),w="default-dark",h9="default-light",d={blue:{500:"#2f5bc0",400:"#254ba4",600:"#3b6bda"},red:{600:"#c73f61"},gray:{50:"#1a171a",75:"#211f22",300:"#373438",400:"#403e41",500:"#5b5a5c",600:"#929192",700:"#c0bfbf",800:"#f0f0ee",900:"#fcfcfa"}},Bo={"--dh-color-accent-contrast":d.gray[900],"--dh-color-accent-bg":d.blue[600],"--dh-color-accent-hover-bg":d.blue[500],"--dh-color-accent-down-bg":d.blue[400],"--dh-color-accent-key-focus-bg":d.blue[500],"--dh-color-negative-bg":d.red[600],"--dh-color-loading-spinner-primary":d.blue[600],"--dh-color-loading-spinner-secondary":"".concat(d.gray[800],"80"),"--dh-color-bg":d.gray[50],"--dh-color-fg":d.gray[800],"--dh-color-input-bg":d.gray[500],"--dh-color-input-fg":d.gray[800],"--dh-color-input-disabled-bg":d.gray[300],"--dh-color-input-border":d.gray[600],"--dh-color-input-placeholder":d.gray[600],"--dh-color-input-focus-border":"".concat(d.blue[600],"d9"),"--dh-color-login-form-bg":d.gray[400],"--dh-color-login-status-message":d.gray[600],"--dh-color-login-logo-bg":d.gray[900],"--dh-color-login-footer-fg":d.gray[700],"--dh-color-random-area-plot-animation-fg-fill":"".concat(d.blue[600],"14"),"--dh-color-random-area-plot-animation-fg-stroke":"".concat(d.blue[600],"33"),"--dh-color-random-area-plot-animation-bg":d.gray[75],"--dh-color-random-area-plot-animation-grid":d.gray[300]},c9={"--dh-svg-icon-select-indicator":"--dh-color-selector-fg","--dh-svg-icon-select-indicator-hover":"--dh-color-selector-hover-fg","--dh-svg-icon-select-indicator-disabled":"--dh-color-selector-disabled-fg","--dh-svg-icon-error":"--dh-color-form-control-error"},Uo="deephaven.themeCache",V=To.module("ThemeUtils"),Go="var(--",P="dh-tmp",a9=/\S/,E=/\s/;function e9(){var l=Io(document.body),o=Object.keys(Bo).map(r=>"".concat(r,":").concat(l(r)));return":root{".concat(o.join(";"),"}")}function Io(l){var o=getComputedStyle(l);return function(h){var a,c=o.getPropertyValue(h);return c!==""?c:(a=Bo[h])!==null&&a!==void 0?a:""}}function s9(l){var o=new Set;return Object.values(l).forEach(r=>{_o(r).forEach(h=>{var[a,c]=h,e=r.substring(a,c+1);e.includes(Go)&&o.add(e)})}),o}function L9(l,o){var r,h=o.custom.find(e=>e.themeKey===l),a=(r=h==null?void 0:h.baseThemeKey)!==null&&r!==void 0?r:l,c=o.base.find(e=>e.themeKey===a);return c==null&&(V.error("No registered base theme found for theme key: '".concat(a,"'"),"Registered:",o.base.map(e=>e.themeKey),o.custom.map(e=>e.themeKey)),c=o.base.find(e=>e.themeKey===w),ol(c,"Default base theme '".concat(w,"' is not registered"))),V.debug("Applied themes:",c.themeKey,h==null?void 0:h.themeKey),h==null?[c]:[c,h]}function M9(){return[{name:"Default Dark",themeKey:w,styleContent:$l},{name:"Default Light",themeKey:h9,styleContent:r9}]}function v9(){var l=localStorage.getItem(Uo);try{return l==null?null:JSON.parse(l)}catch{}return null}function _o(l){for(var o,r,h=[],a=(o=(r=a9.exec(l))===null||r===void 0?void 0:r.index)!==null&&o!==void 0?o:0,c=0,e=0;e<l.length;e+=1)if(l[e]==="("?c+=1:l[e]===")"&&(c-=1),e===l.length-1||E.test(l[e+1])&&c===0){for(h.push([a,e]);e<l.length-1&&E.test(l[e+1]);)e+=1;a=e+1}return c!==0?(V.error("Unbalanced parentheses in css var expression",l),[]):h}function d9(l,o){return l.replace(/fill='.*?'/,"fill='".concat(encodeURIComponent(o),"'"))}function x9(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.body,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,h=performance.now(),a=document.createElement("div");o.appendChild(a);var c=[...s9(l)];c.forEach((t,n)=>{var u="--".concat(P,"-").concat(n);a.style.setProperty(u,t)});var e={},v=window.getComputedStyle(a),i=t=>{var n="--".concat(P,"-").concat(c.indexOf(t)),u=v.getPropertyValue(n);return $o.normalizeCssColor(u,r)};return Object.entries(l).forEach(t=>{var[n,u]=t;e[n]=i9(i,u)}),a.remove(),V.debug("Resolved css variables",performance.now()-h,"ms"),e}function i9(l,o){var r=[],h=0;return _o(o).forEach(a=>{var[c,e]=a;h<c&&(r.push(o.substring(h,c)),h+=c-h);var v=o.substring(c,e+1);r.push(v.includes(Go)?l(v):v),h+=e-c+1}),r.length===0?o:r.join("")}function N9(l){localStorage.setItem(Uo,JSON.stringify(l))}function A9(l,o){return"".concat(l,"_").concat(o)}function n9(){var l,o,r=(l=(o=v9())===null||o===void 0?void 0:o.preloadStyleContent)!==null&&l!==void 0?l:e9();V.debug("Preloading theme content:","'".concat(r,"'"));var h=document.createElement("style");h.id="theme-preload",h.innerHTML=r,document.head.appendChild(h)}function w9(){var l=Io(document.body);Object.entries(c9).forEach(o=>{var[r,h]=o;document.body.style.removeProperty(r);var a=l(r),c=l(h),e=d9(a,c);document.body.style.setProperty(r,e)})}function F(l,o,r,h,a,c,e){try{var v=l[c](e),i=v.value}catch(t){r(t);return}v.done?o(i):Promise.resolve(i).then(h,a)}function t9(l){return function(){var o=this,r=arguments;return new Promise(function(h,a){var c=l.apply(o,r);function e(i){F(c,h,a,e,v,"next",i)}function v(i){F(c,h,a,e,v,"throw",i)}e(void 0)})}}var x=To.module("@deephaven/jsapi-bootstrap.ApiBootstrap"),m9=m.createContext(null);function g9(l){var{apiUrl:o,children:r,failureElement:h,setGlobally:a=!1}=l,[c,e]=m.useState(!0),[v,i]=m.useState();return m.useEffect(()=>{function t(){return n.apply(this,arguments)}function n(){return n=t9(function*(){try{var u=(yield y(()=>import(o),[],import.meta.url)).default;x.info("API bootstrapped from",o),i(u),a&&(x.debug("API set globally"),globalThis.dh=u)}catch(g){x.error("Unable to bootstrap API",g)}e(!1)}),n.apply(this,arguments)}t()},[o,a]),c?s.jsx(Oo,{}):v==null?h??s.jsxs(Ol,{isOpen:!0,className:"modal-dialog-centered",children:[s.jsx(Ul,{closeButton:!1,children:"Error: Unable to load API"}),s.jsx(Bl,{children:s.jsxs("p",{className:"text-break",children:["Ensure the server is running and you are able to reach ",o,", then refresh the page."]})})]}):s.jsx(m9.Provider,{value:v,children:r})}n9();const f9=B.lazy(()=>y(()=>import("./App-5f922961.js"),["./App-5f922961.js","./vendor-d09ca476.js","./helpers-042e6b4d.js","./vendor-32c669a5.css","./usePlugins-ca5fc621.js","./WidgetView-d3bc3727.js","./App-bad0fe82.css"],import.meta.url)),u9=B.lazy(async()=>({default:(await y(()=>import("./index-4da606f1.js"),["./index-4da606f1.js","./vendor-d09ca476.js","./helpers-042e6b4d.js","./vendor-32c669a5.css","./usePlugins-ca5fc621.js","./IrisGridModelFactory-43eb2394.js","./plotly-6980623c.js","./IrisGridModelFactory-c4d15a8e.css","./WidgetView-d3bc3727.js","./index-25ae9ab5.css"],import.meta.url)).AppBootstrap})),T=new URL("../../jsapi/dh-core.js",document.baseURI),z9=new URL("/js-plugins",document.baseURI);async function p9(){const l=await y(()=>import("./index-d8481437.js"),["./index-d8481437.js","./vendor-d09ca476.js","./helpers-042e6b4d.js","./vendor-32c669a5.css","./IrisGridModelFactory-43eb2394.js","./usePlugins-ca5fc621.js","./plotly-6980623c.js","./IrisGridModelFactory-c4d15a8e.css","./index-52da8ae8.css"],import.meta.url),{GridPluginConfig:o,PandasPluginConfig:r,ChartPluginConfig:h}=l;return[o,r,h]}O.render(s.jsx(g9,{apiUrl:T.href,setGlobally:!0,children:s.jsx(m.Suspense,{fallback:s.jsx(Oo,{}),children:s.jsx(u9,{getCorePlugins:p9,serverUrl:T.origin,pluginsUrl:z9.href,children:s.jsx(f9,{})})})}),document.getElementById("root"));export{$5 as $,w9 as A,n9 as B,Go as C,w as D,d9 as E,i9 as F,N9 as G,$l as H,r9 as I,g9 as J,m9 as K,To as L,Ol as M,a9 as N,b9 as O,X4 as P,vo as Q,e6 as R,c9 as S,A as T,wo as U,l5 as V,E as W,h5 as X,W2 as Y,j5 as Z,M0 as _,Oo as a,C2 as a$,q5 as a0,S as a1,N6 as a2,O2 as a3,X as a4,N0 as a5,K3 as a6,K4 as a7,p0 as a8,N4 as a9,Eo as aA,e4 as aB,lo as aC,$o as aD,y9 as aE,J5 as aF,w0 as aG,Yo as aH,g8 as aI,Lo as aJ,bo as aK,X6 as aL,yo as aM,Q5 as aN,d4 as aO,Vo as aP,po as aQ,Ho as aR,Zo as aS,R2 as aT,No as aU,T4 as aV,I5 as aW,G5 as aX,i8 as aY,Z3 as aZ,D2 as a_,So as aa,F0 as ab,B4 as ac,P0 as ad,E0 as ae,Y2 as af,no as ag,t6 as ah,A4 as ai,F8 as aj,U2 as ak,c0 as al,to as am,$1 as an,ao,r2 as ap,go as aq,K5 as ar,i1 as as,ho as at,s6 as au,Q as av,G8 as aw,O4 as ax,Q6 as ay,U5 as az,Bl as b,E5 as b0,P5 as b1,Po as b2,Y5 as b3,F5 as b4,mo as b5,Mo as b6,l4 as b7,x6 as b8,c2 as b9,J as ba,ro as bb,r3 as bc,Co as bd,N3 as be,C8 as bf,J2 as bg,Y3 as bh,z8 as bi,p4 as bj,w2 as c,I as d,$2 as e,k2 as f,Z2 as g,ol as h,Xo as i,s0 as j,h9 as k,Bo as l,Gl as m,Ul as n,Uo as o,P as p,e9 as q,x9 as r,Io as s,s9 as t,L9 as u,o5 as v,M9 as w,_o as x,A9 as y,v9 as z};
16
- //# sourceMappingURL=index-3418b04c.js.map
15
+ `),w="default-dark",h9="default-light",d={blue:{500:"#2f5bc0",400:"#254ba4",600:"#3b6bda"},red:{600:"#c73f61"},gray:{50:"#1a171a",75:"#211f22",300:"#373438",400:"#403e41",500:"#5b5a5c",600:"#929192",700:"#c0bfbf",800:"#f0f0ee",900:"#fcfcfa"}},Bo={"--dh-color-accent-contrast":d.gray[900],"--dh-color-accent-bg":d.blue[600],"--dh-color-accent-hover-bg":d.blue[500],"--dh-color-accent-down-bg":d.blue[400],"--dh-color-accent-key-focus-bg":d.blue[500],"--dh-color-negative-bg":d.red[600],"--dh-color-loading-spinner-primary":d.blue[600],"--dh-color-loading-spinner-secondary":"".concat(d.gray[800],"80"),"--dh-color-bg":d.gray[50],"--dh-color-fg":d.gray[800],"--dh-color-input-bg":d.gray[500],"--dh-color-input-fg":d.gray[800],"--dh-color-input-disabled-bg":d.gray[300],"--dh-color-input-border":d.gray[600],"--dh-color-input-placeholder":d.gray[600],"--dh-color-input-focus-border":"".concat(d.blue[600],"d9"),"--dh-color-login-form-bg":d.gray[400],"--dh-color-login-status-message":d.gray[600],"--dh-color-login-logo-bg":d.gray[900],"--dh-color-login-footer-fg":d.gray[700],"--dh-color-random-area-plot-animation-fg-fill":"".concat(d.blue[600],"14"),"--dh-color-random-area-plot-animation-fg-stroke":"".concat(d.blue[600],"33"),"--dh-color-random-area-plot-animation-bg":d.gray[75],"--dh-color-random-area-plot-animation-grid":d.gray[300]},c9={"--dh-svg-icon-select-indicator":"--dh-color-selector-fg","--dh-svg-icon-select-indicator-hover":"--dh-color-selector-hover-fg","--dh-svg-icon-select-indicator-disabled":"--dh-color-selector-disabled-fg","--dh-svg-icon-error":"--dh-color-form-control-error"},Uo="deephaven.themeCache",V=To.module("ThemeUtils"),Go="var(--",P="dh-tmp",a9=/\S/,E=/\s/;function e9(){var l=Io(document.body),o=Object.keys(Bo).map(r=>"".concat(r,":").concat(l(r)));return":root{".concat(o.join(";"),"}")}function Io(l){var o=getComputedStyle(l);return function(h){var a,c=o.getPropertyValue(h);return c!==""?c:(a=Bo[h])!==null&&a!==void 0?a:""}}function s9(l){var o=new Set;return Object.values(l).forEach(r=>{_o(r).forEach(h=>{var[a,c]=h,e=r.substring(a,c+1);e.includes(Go)&&o.add(e)})}),o}function L9(l,o){var r,h=o.custom.find(e=>e.themeKey===l),a=(r=h==null?void 0:h.baseThemeKey)!==null&&r!==void 0?r:l,c=o.base.find(e=>e.themeKey===a);return c==null&&(V.error("No registered base theme found for theme key: '".concat(a,"'"),"Registered:",o.base.map(e=>e.themeKey),o.custom.map(e=>e.themeKey)),c=o.base.find(e=>e.themeKey===w),ol(c,"Default base theme '".concat(w,"' is not registered"))),V.debug("Applied themes:",c.themeKey,h==null?void 0:h.themeKey),h==null?[c]:[c,h]}function M9(){return[{name:"Default Dark",themeKey:w,styleContent:$l},{name:"Default Light",themeKey:h9,styleContent:r9}]}function v9(){var l=localStorage.getItem(Uo);try{return l==null?null:JSON.parse(l)}catch{}return null}function _o(l){for(var o,r,h=[],a=(o=(r=a9.exec(l))===null||r===void 0?void 0:r.index)!==null&&o!==void 0?o:0,c=0,e=0;e<l.length;e+=1)if(l[e]==="("?c+=1:l[e]===")"&&(c-=1),e===l.length-1||E.test(l[e+1])&&c===0){for(h.push([a,e]);e<l.length-1&&E.test(l[e+1]);)e+=1;a=e+1}return c!==0?(V.error("Unbalanced parentheses in css var expression",l),[]):h}function d9(l,o){return l.replace(/fill='.*?'/,"fill='".concat(encodeURIComponent(o),"'"))}function x9(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.body,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,h=performance.now(),a=document.createElement("div");o.appendChild(a);var c=[...s9(l)];c.forEach((t,n)=>{var u="--".concat(P,"-").concat(n);a.style.setProperty(u,t)});var e={},v=window.getComputedStyle(a),i=t=>{var n="--".concat(P,"-").concat(c.indexOf(t)),u=v.getPropertyValue(n);return $o.normalizeCssColor(u,r)};return Object.entries(l).forEach(t=>{var[n,u]=t;e[n]=i9(i,u)}),a.remove(),V.debug("Resolved css variables",performance.now()-h,"ms"),e}function i9(l,o){var r=[],h=0;return _o(o).forEach(a=>{var[c,e]=a;h<c&&(r.push(o.substring(h,c)),h+=c-h);var v=o.substring(c,e+1);r.push(v.includes(Go)?l(v):v),h+=e-c+1}),r.length===0?o:r.join("")}function N9(l){localStorage.setItem(Uo,JSON.stringify(l))}function A9(l,o){return"".concat(l,"_").concat(o)}function n9(){var l,o,r=(l=(o=v9())===null||o===void 0?void 0:o.preloadStyleContent)!==null&&l!==void 0?l:e9();V.debug("Preloading theme content:","'".concat(r,"'"));var h=document.createElement("style");h.id="theme-preload",h.innerHTML=r,document.head.appendChild(h)}function w9(){var l=Io(document.body);Object.entries(c9).forEach(o=>{var[r,h]=o;document.body.style.removeProperty(r);var a=l(r),c=l(h),e=d9(a,c);document.body.style.setProperty(r,e)})}function F(l,o,r,h,a,c,e){try{var v=l[c](e),i=v.value}catch(t){r(t);return}v.done?o(i):Promise.resolve(i).then(h,a)}function t9(l){return function(){var o=this,r=arguments;return new Promise(function(h,a){var c=l.apply(o,r);function e(i){F(c,h,a,e,v,"next",i)}function v(i){F(c,h,a,e,v,"throw",i)}e(void 0)})}}var x=To.module("@deephaven/jsapi-bootstrap.ApiBootstrap"),m9=m.createContext(null);function g9(l){var{apiUrl:o,children:r,failureElement:h,setGlobally:a=!1}=l,[c,e]=m.useState(!0),[v,i]=m.useState();return m.useEffect(()=>{function t(){return n.apply(this,arguments)}function n(){return n=t9(function*(){try{var u=(yield y(()=>import(o),[],import.meta.url)).default;x.info("API bootstrapped from",o),i(u),a&&(x.debug("API set globally"),globalThis.dh=u)}catch(g){x.error("Unable to bootstrap API",g)}e(!1)}),n.apply(this,arguments)}t()},[o,a]),c?s.jsx(Oo,{}):v==null?h??s.jsxs(Ol,{isOpen:!0,className:"modal-dialog-centered",children:[s.jsx(Ul,{closeButton:!1,children:"Error: Unable to load API"}),s.jsx(Bl,{children:s.jsxs("p",{className:"text-break",children:["Ensure the server is running and you are able to reach ",o,", then refresh the page."]})})]}):s.jsx(m9.Provider,{value:v,children:r})}n9();const f9=B.lazy(()=>y(()=>import("./App-95dca4a0.js"),["./App-95dca4a0.js","./vendor-d09ca476.js","./helpers-042e6b4d.js","./vendor-32c669a5.css","./usePlugins-1cc28997.js","./WidgetView-9c85e10d.js","./App-bad0fe82.css"],import.meta.url)),u9=B.lazy(async()=>({default:(await y(()=>import("./index-516cdf86.js"),["./index-516cdf86.js","./vendor-d09ca476.js","./helpers-042e6b4d.js","./vendor-32c669a5.css","./usePlugins-1cc28997.js","./IrisGridModelFactory-7d7fb53c.js","./plotly-6980623c.js","./IrisGridModelFactory-c4d15a8e.css","./WidgetView-9c85e10d.js","./index-25ae9ab5.css"],import.meta.url)).AppBootstrap})),T=new URL("../../jsapi/dh-core.js",document.baseURI),z9=new URL("/js-plugins",document.baseURI);async function p9(){const l=await y(()=>import("./index-3388a4fe.js"),["./index-3388a4fe.js","./vendor-d09ca476.js","./helpers-042e6b4d.js","./vendor-32c669a5.css","./IrisGridModelFactory-7d7fb53c.js","./usePlugins-1cc28997.js","./plotly-6980623c.js","./IrisGridModelFactory-c4d15a8e.css","./index-52da8ae8.css"],import.meta.url),{GridPluginConfig:o,PandasPluginConfig:r,ChartPluginConfig:h}=l;return[o,r,h]}O.render(s.jsx(g9,{apiUrl:T.href,setGlobally:!0,children:s.jsx(m.Suspense,{fallback:s.jsx(Oo,{}),children:s.jsx(u9,{getCorePlugins:p9,serverUrl:T.origin,pluginsUrl:z9.href,children:s.jsx(f9,{})})})}),document.getElementById("root"));export{$5 as $,w9 as A,n9 as B,Go as C,w as D,d9 as E,i9 as F,N9 as G,$l as H,r9 as I,g9 as J,m9 as K,To as L,Ol as M,a9 as N,b9 as O,X4 as P,vo as Q,e6 as R,c9 as S,A as T,wo as U,l5 as V,E as W,h5 as X,W2 as Y,j5 as Z,M0 as _,Oo as a,C2 as a$,q5 as a0,S as a1,N6 as a2,O2 as a3,X as a4,N0 as a5,K3 as a6,K4 as a7,p0 as a8,N4 as a9,Eo as aA,e4 as aB,lo as aC,$o as aD,y9 as aE,J5 as aF,w0 as aG,Yo as aH,g8 as aI,Lo as aJ,bo as aK,X6 as aL,yo as aM,Q5 as aN,d4 as aO,Vo as aP,po as aQ,Ho as aR,Zo as aS,R2 as aT,No as aU,T4 as aV,I5 as aW,G5 as aX,i8 as aY,Z3 as aZ,D2 as a_,So as aa,F0 as ab,B4 as ac,P0 as ad,E0 as ae,Y2 as af,no as ag,t6 as ah,A4 as ai,F8 as aj,U2 as ak,c0 as al,to as am,$1 as an,ao,r2 as ap,go as aq,K5 as ar,i1 as as,ho as at,s6 as au,Q as av,G8 as aw,O4 as ax,Q6 as ay,U5 as az,Bl as b,E5 as b0,P5 as b1,Po as b2,Y5 as b3,F5 as b4,mo as b5,Mo as b6,l4 as b7,x6 as b8,c2 as b9,J as ba,ro as bb,r3 as bc,Co as bd,N3 as be,C8 as bf,J2 as bg,Y3 as bh,z8 as bi,p4 as bj,w2 as c,I as d,$2 as e,k2 as f,Z2 as g,ol as h,Xo as i,s0 as j,h9 as k,Bo as l,Gl as m,Ul as n,Uo as o,P as p,e9 as q,x9 as r,Io as s,s9 as t,L9 as u,o5 as v,M9 as w,_o as x,A9 as y,v9 as z};
16
+ //# sourceMappingURL=index-67af88e1.js.map