@deephaven/embed-widget 0.109.1-beta.9 → 1.0.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/assets/{App-UKuSo92O.js → App-B4QjOWOB.js} +2 -2
- package/build/assets/{App-UKuSo92O.js.map → App-B4QjOWOB.js.map} +1 -1
- package/build/assets/{Chart-DNr693pG.js → Chart-CESsUjf5.js} +2 -2
- package/build/assets/{Chart-DNr693pG.js.map → Chart-CESsUjf5.js.map} +1 -1
- package/build/assets/{IrisGrid-DdHJ0Mqz.js → IrisGrid-V4Cw9OL3.js} +2 -2
- package/build/assets/{IrisGrid-DdHJ0Mqz.js.map → IrisGrid-V4Cw9OL3.js.map} +1 -1
- package/build/assets/{IrisGridThemeProvider-C84JBZjc.js → IrisGridThemeProvider-CLFUkbnY.js} +4 -4
- package/build/assets/{IrisGridThemeProvider-C84JBZjc.js.map → IrisGridThemeProvider-CLFUkbnY.js.map} +1 -1
- package/build/assets/{LocalWorkspaceStorage-dFUPqx-J.js → LocalWorkspaceStorage-DD_T9MUf.js} +2 -2
- package/build/assets/{LocalWorkspaceStorage-dFUPqx-J.js.map → LocalWorkspaceStorage-DD_T9MUf.js.map} +1 -1
- package/build/assets/{LogPanel-DvaK8Aaq.js → LogPanel-DkFAPGd0.js} +12 -12
- package/build/assets/LogPanel-DkFAPGd0.js.map +1 -0
- package/build/assets/{MarkdownEditor-DLkkj0qU.js → MarkdownEditor-dS-p89A_.js} +2 -2
- package/build/assets/{MarkdownEditor-DLkkj0qU.js.map → MarkdownEditor-dS-p89A_.js.map} +1 -1
- package/build/assets/{MarkdownNotebook-DTkHgYmG.js → MarkdownNotebook-apDyh4da.js} +2 -2
- package/build/assets/{MarkdownNotebook-DTkHgYmG.js.map → MarkdownNotebook-apDyh4da.js.map} +1 -1
- package/build/assets/Plot-CjmKATG6.js +2 -0
- package/build/assets/{Plot-COuXoRaA.js.map → Plot-CjmKATG6.js.map} +1 -1
- package/build/assets/{Plotly-Btj8VoUh.js → Plotly-0UxsCNzT.js} +2 -2
- package/build/assets/{Plotly-Btj8VoUh.js.map → Plotly-0UxsCNzT.js.map} +1 -1
- package/build/assets/{index-BojjweUd.js → index-C-mAR5e8.js} +4 -4
- package/build/assets/{index-BojjweUd.js.map → index-C-mAR5e8.js.map} +1 -1
- package/build/assets/{index-CZp4mWfj.js → index-CDO0dq5q.js} +10 -10
- package/build/assets/{index-CZp4mWfj.js.map → index-CDO0dq5q.js.map} +1 -1
- package/build/assets/{index-BPSMgs4w.js → index-qut3a5WU.js} +3 -3
- package/build/assets/{index-BPSMgs4w.js.map → index-qut3a5WU.js.map} +1 -1
- package/build/assets/plotly-DDD8Llll.js +7 -0
- package/build/assets/{plotly-Bi-TI-TG.js.map → plotly-DDD8Llll.js.map} +1 -1
- package/build/index.html +2 -2
- package/package.json +17 -17
- package/build/assets/LogPanel-DvaK8Aaq.js.map +0 -1
- package/build/assets/Plot-COuXoRaA.js +0 -2
- package/build/assets/plotly-Bi-TI-TG.js +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{r as c,K as U,O as So,F as u,P as Eo,Q as Ge,S as Co,T as To,U as jo,D as Lt,V as Io,I as A,W as Ft,X as Br,Y as ko,Z as _o,a0 as Ro,a1 as Do,a2 as ut,a3 as Lo,a4 as Wr,a5 as Ke,a6 as _e,J as Q,a7 as Hr,a8 as Vr,a9 as At,aa as Yr,ab as Gr,ac as ct,ad as Fo,ae as Ee,af as $,ag as Kr,H as qr,ah as zr,ai as Ao,aj as No,ak as $o,al as Xr,am as Mo,an as Uo,ao as Bo,ap as Wo,aq as Ho,ar as Vo,as as Yo,at as Go,au as Ko,av as qo,aw as zo,ax as Xo,ay as Qo,az as Jo,aA as Zo,aB as es,aC as ts,aD as ns,aE as rs,aF as is,aG as as,aH as os,aI as ss,aJ as ls,aK as Qr,aL as us,aM as cs,aN as ds,aO as ps,aP as fs,aQ as hs,aR as ms,aS as gs,aT as vs,aU as ys,aV as bs,aW as Ps,aX as xs,aY as ws,aZ as Os,a_ as Ss,a$ as Es,b0 as Cs,b1 as Ts,b2 as js,b3 as Is,b4 as ks,N as _s,b5 as Rs,b6 as Ds,b7 as Ls,b8 as Fs,b9 as As,ba as Ns,bb as dt,L as $s,M as Ms,bc as Us,bd as Bs,be as mn,bf as Ws,R as Hs,bg as Vs,bh as Ys,bi as Gs,bj as Ks,bk as qs,bl as Jr,bm as zs,bn as Xs}from"./vendor-CiEcCTfT.js";import{i as Zr,L as H,b as Nt,p as ei,r as ti,M as ni,c as ri,g as $t,v as ii,d as Mt,e as Ut,f as qe,h as Qs,j as Js,k as Zs,l as el,m as tl,n as ai,o as nl,q as rl,s as oi,t as ze,u as il,T as pt,C as al,D as ol,w as sl,x as ll,y as ul,z as cl,A as dl,E as pl,a as fe,B as fl,F as si,N as hl,P as ml,S as gl,G as vl,H as yl,I as bl,J as Pl,W as xl,K as wl,O as Ol,Q as Sl,R as El,U as Cl,V as Tl,X as jl,Y as Il,Z as kl,_ as _l,$ as Rl,a0 as Dl,a1 as Ll,a2 as Fl,a3 as Al,a4 as Nl,a5 as $l,a6 as Ml,a7 as Ul,a8 as Bl,a9 as Wl,aa as Hl,ab as Bt,ac as Vl,ad as Wt,ae as Ht,af as Yl,ag as li,ah as Gl,ai as Kl,aj as ql,ak as zl,al as Xl,am as Ql}from"./index-BPSMgs4w.js";import{e as Xe,C as ui,g as Jl,a as Re,F as Zl,f as eu,h as tu,d as nu,U as Qe,i as ci,j as di,D as gn,k as ru,l as iu,c as au,S as ou}from"./LocalWorkspaceStorage-dFUPqx-J.js";import{A as _b,p as Rb,q as Db,G as Lb,L as Fb,m as Ab,t as Nb,s as $b,o as Mb,n as Ub,r as Bb,u as Wb,b as Hb}from"./LocalWorkspaceStorage-dFUPqx-J.js";import{k as su,l as lu,m as uu,n as Ce,o as cu,p as du,q as pu,t as fu,v as Je,w as Ze,x as hu,T as De,P as Vt,C as le,y as pe,z as pi,A as We,D as fi,R as vn,I as ft,B as G,F as ht,G as Yt,H as hi,J as mu,c as gu,K as mi,L as vu,M as yu,N as bu,O as gi,Q as vi,U as yi,S as Pu,r as xu,V as wu,W as Ou,X as bi,Y as Su,Z as Eu,_ as Cu,$ as Pi,a0 as Tu,a1 as ju,a2 as Iu,a3 as xi,a4 as ku,a5 as wi,g as _u,a6 as Ru,a7 as Du,a8 as Lu,a9 as Oi,u as xe,aa as Fu,ab as Au,ac as Nu,ad as $u,ae as Mu,af as Uu,E as Bu,ag as Si,ah as Ei,ai as Ci,aj as Ti,ak as et,al as Wu,am as ji,an as Hu,ao as mt,ap as Vu,aq as Ii,ar as Yu,as as gt,at as Gu,au as Ku,av as qu,aw as Te,ax as ki,ay as _i,az as zu,aA as Ri,aB as Xu,aC as Qu,aD as Di,aE as Li,aF as Fi,s as Ai,aG as yn,aH as Ju,aI as Zu,aJ as ec,aK as tc,aL as nc,aM as rc,aN as ic,aO as ac,aP as oc,aQ as sc,aR as lc,aS as uc,aT as cc,aU as dc,aV as pc,aW as fc,aX as hc,aY as mc,e as gc,b as vc,aZ as yc,a_ as bc,a$ as Pc,b0 as xc,b1 as wc,b2 as Oc,b3 as Sc,b4 as Ec,b5 as Cc,b6 as Tc,b7 as jc,b8 as Ic,b9 as Ni,ba as kc,bb as _c,a as Rc,bc as Dc,bd as Lc,be as Fc,bf as $i,bg as Mi,bh as Ui,bi as bn,bj as Ac,bk as Nc,bl as $c,bm as Mc,bn as Uc,bo as Bc,bp as Wc,bq as Hc,br as Vc,bs as Yc,bt as Gc,bu as Kc,bv as qc,bw as zc,bx as Xc,by as Qc,bz as Jc,bA as Zc,bB as ed,bC as td,bD as de,bE as nd,bF as rd}from"./LogPanel-DvaK8Aaq.js";import{u as id,C as Bi,F as Gt,a as ad,S as od,b as Wi,D as sd,B as ld,c as ud,d as cd,e as dd,f as Kt,g as vt,I as pd,h as fd,T as hd,i as md,j as qt,k as gd,l as Hi,m as Vi,n as vd,o as Yi,p as zt,q as Gi,r as Ki,s as yd,t as bd,v as Pd,w as xd,x as wd,y as qi,z as Od,A as Sd,E as Ed,P as Cd,G as Td,H as jd,J as zi,K as Xi,L as Id,M as kd,N as _d,O as Rd,Q as Dd,R as Qi,U as Ld,V as Fd,W as Ad,X as Ji,Y as Nd,Z as $d,_ as Md,$ as Pn,a0 as Ud,a1 as Bd,a2 as Wd,a3 as Hd,a4 as Vd,a5 as Yd,a6 as Gd,a7 as Kd,a8 as qd,a9 as zd,aa as Xd,ab as Qd,ac as Jd,ad as Zd,ae as ep,af as tp,ag as np,ah as rp,ai as ip,aj as ap,ak as Zi}from"./index-CZp4mWfj.js";import{D as op}from"./DownsamplingError-CG8EVVqo.js";import{e as Ye,c as sp,d as lp,a as up,f as cp,b as dp,g as pp,h as fp,i as hp,j as ea,u as mp,k as gp,l as vp,m as yp,n as Pe,o as bp,p as He,q as yt,r as ta,s as Xt,t as Qt,w as na,v as ra,x as X,T as tt,y as Jt,A as Zt,M as en,D as ia,z as Pp,B as bt,C as xp,E as wp,F as Op,G as Sp,H as Ep,I as Cp,J as Tp,K as jp,L as Ip,N as aa,O as kp,P as _p,Q as Rp,R as Dp,S as oa,U as Lp,V as Fp,W as Ap,X as Np,Y as $p,Z as Mp,_ as sa,$ as Up,a0 as Bp,a1 as Wp,a2 as Hp,a3 as Vp,a4 as Yp,a5 as Gp,a6 as Kp,a7 as qp,a8 as zp,a9 as Xp,aa as Qp,ab as Jp,ac as Zp,ad as ef,ae as la,af as tf,ag as nf,ah as rf,ai as af,aj as of,ak as sf,al as Ve,am as lf,an as ua,ao as uf,ap as tn,aq as ce,ar as xn,as as ca,at as da,au as cf,av as df,aw as pf,ax as ff,ay as hf,az as mf,aA as gf,aB as vf,aC as yf,aD as bf,aE as Pf,aF as xf,aG as wf,aH as Of,aI as Sf,aJ as Ef,aK as Cf,aL as Tf,aM as jf,aN as If,aO as kf,aP as _f,aQ as Rf,aR as Df,aS as Lf,aT as Ff,aU as Af,aV as Nf,aW as $f,aX as Mf,aY as Uf,aZ as pa,a_ as Bf,a$ as Wf,b0 as Hf,b1 as Vf,b2 as Yf,b3 as Gf,b4 as Kf,b5 as qf,b6 as zf,b7 as Xf,b8 as Qf,b9 as Jf}from"./IrisGridThemeProvider-C84JBZjc.js";import{m as Zf,u as eh}from"./useMergeRef-D2wjRM4J.js";import"./helpers-BosuxZz1.js";var th=["children","keepMounted"];function wn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function On(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?wn(Object(n),!0).forEach(function(r){nh(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function nh(t,e,n){return(e=rh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rh(t){var e=ih(t,"string");return typeof e=="symbol"?e:e+""}function ih(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ah(t,e){if(t==null)return{};var n,r,i=oh(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function oh(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function sh(t){var{children:e,keepMounted:n=!1}=t,r=ah(t,th),i=n&&typeof e!="function",a=c.useRef(new Map),o=c.useMemo(()=>{var l=[],d=new Map;return i?(U.Children.forEach(e,f=>{if(!(f==null||f.key==null)){var p=a.current.get(f.key);p==null&&(p=So({attributes:{style:"display: contents"}})),d.set(f.key,p),l.push(u.jsx(Eo,{node:p,children:f.props.children},f.key))}}),a.current=d,l):(a.current=d,l)},[e,i]),s=c.useMemo(()=>{var l=[];return i&&U.Children.forEach(e,d=>{if(d==null||d.key==null){l.push(d);return}var f=a.current.get(d.key);if(f==null){l.push(d);return}l.push(u.jsx(Ge,{children:u.jsx(Co,{node:f})},d.key))}),l},[e,i]);return u.jsxs(u.Fragment,{children:[i&&o,u.jsx(To,On(On({},r),{},{children:i?s:e}))]})}function Sn(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function lh(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Sn(a,r,i,o,s,"next",l)}function s(l){Sn(a,r,i,o,s,"throw",l)}o(void 0)})}}var uh=[["api"],["client"],["dashboardData","*","connection"],["dashboardData","*","sessionWrapper"],["layoutStorage"],["storage"]];function fa(t){var e=new Map;return function(r,i){var a,o=[...(a=e.get(this))!==null&&a!==void 0?a:[],r];if(i===Object(i)&&e.set(i,[...o]),o.shift(),!ha(o,t))return i instanceof Map?Array.from(i.entries()):i}}function ha(t,e){for(var n=function(o){if(t.length===e[o].length&&t.every((s,l)=>e[o][l]==="*"||s===e[o][l]))return{v:!0}},r=0;r<e.length;r+=1){var i=n(r);if(typeof i=="object")return i.v}return!1}function ma(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"root",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new Map([[t,"root"]]),i={};return Object.entries(t).forEach(a=>{var[o,s]=a;try{JSON.stringify(s,fa(e)),i[o]=s}catch{var l=s;if(typeof s=="bigint")i[o]=s.toString();else if(r.has(l))i[o]="Circular ref to ".concat(r.get(l));else{var d="".concat(n,".").concat(o);r.set(l,d);var f=d.split(".").slice(1);ha(f,e)||(i[o]=ma(s,e,d,r))}}}),i}function ch(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return JSON.stringify(ma(t,e),fa(e),2)}function dh(t){return JSON.stringify(t,null,2)}function ph(t){var e=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0"),i=String(t.getHours()).padStart(2,"0"),a=String(t.getMinutes()).padStart(2,"0"),o=String(t.getSeconds()).padStart(2,"0");return"".concat(e,"-").concat(n,"-").concat(r,"-").concat(i).concat(a).concat(o)}function fh(t,e,n){return Pt.apply(this,arguments)}function Pt(){return Pt=lh(function*(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:uh,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"".concat(ph(new Date),"_support_logs"),a=new jo,o=a.folder(i);o.file("console.txt",t.getFormattedHistory()),e!=null&&o.file("metadata.json",dh(e)),n!=null&&o.file("redux.json",ch(n,r));var s=yield a.generateAsync({type:"blob"}),l=document.createElement("a");l.href=URL.createObjectURL(s),l.download="".concat(i,".zip"),l.click()}),Pt.apply(this,arguments)}function hh(t,e){return t===0?0:e==="all"||t===e.size?"all":e.size}function ga(t,e){return t===e?!0:t==="all"||e==="all"||t.size!==e.size?!1:[...t.keys()].every(n=>e.has(n))}function va(t,e){return t.isInverted===e.isInverted&&ga(t.selection,e.selection)}function ya(t,e,n){if(t==="all")return"all";var r=[...t.keys()];return new Set(r.map(i=>{var a=e(i);if(a===void 0)throw new Error("Could not find item with key ".concat(i));return n(a)}))}function ba(t,e,n){var r=t==="all"||t.size>e/2,i=t;return r&&(i=t==="all"?new Set:new Set([...su(0,e-1)].map(n).filter(a=>!t.has(a)))),{selection:i,isInverted:r}}function mh(t,e){return c.useCallback(function(){var n=t(...arguments);return e(),n},[e,t])}function gh(t){return c.useCallback(e=>{t(e.target.value)},[t])}function nn(t,e){return c.useCallback(n=>{typeof t=="function"?t(e(n)):t.current=e(n)},[e,t])}function Pa(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zr,[e,n]=c.useState(0),[r,i]=c.useState(0),[a,o]=c.useState(0),[s,l]=c.useState(0),d=c.useMemo(()=>new DOMRect(e,r,a,s),[s,a,e,r]),[f,p]=c.useState(null),h=nn(p,t),m=c.useCallback(g=>{var x,[v]=g,b=(x=v==null?void 0:v.contentRect)!==null&&x!==void 0?x:{x:0,y:0,width:0,height:0};n(b.x),i(b.y),o(b.width),l(b.height)},[]);return Xe(f,m),{ref:h,contentRect:d}}function vh(t){var[e,n]=c.useState(!0);return c.useEffect(()=>{var r=setTimeout(()=>{n(!1)},t);return()=>{clearTimeout(r)}},[t]),e}function yh(t){var[e,n]=c.useState(t);return c.useEffect(()=>{n(t)},[t]),[e,n]}function bh(t,e,n,r){var i=c.useRef(0);c.useEffect(()=>{i.current>=n||r&&(i.current+=1,t())},[n,r,...e])}function xa(t,e){var n=c.useRef(t),r=e(n.current,t)?n.current:t;return n.current=r,r}function Ph(t){t.preventDefault()}function wa(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=c.useMemo(()=>"useSubmitButtonRef-".concat(Lt()),[]),n=c.useCallback(a=>{var o;a==null||(o=a.UNSAFE_getDOMNode())===null||o===void 0||o.setAttribute("form",e)},[e]),r=c.useMemo(()=>({id:e,onSubmit:t?void 0:Ph}),[e,t]),i=c.useMemo(()=>({form:e,ref:n}),[e,n]);return{formProps:r,submitButtonProps:i}}function Oa(t,e,n){var{getItem:r,selectedKeys:i,items:a}=t;return c.useMemo(()=>{var{selection:o,isInverted:s}=ba(i,a.length,n);return{selection:ya(o,r,e),isInverted:s}},[i,a.length,n,r,e])}function Sa(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zr,n=c.useRef();return c.useEffect(()=>()=>{var r;return(r=n.current)===null||r===void 0?void 0:r.call(n)},[]),c.useCallback(r=>{var i;(i=n.current)===null||i===void 0||i.call(n);var a=e(r);a&&(a.addEventListener("scroll",t),n.current=()=>{a.removeEventListener("scroll",t),n.current=void 0})},[e,t])}function En(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Cn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?En(Object(n),!0).forEach(function(r){xh(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):En(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function xh(t,e,n){return(e=wh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wh(t){var e=Oh(t,"string");return typeof e=="symbol"?e:e+""}function Oh(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Sh(t,e,n,r){var i=arguments.length===4;return c.useCallback(a=>{var o=i?a??r:a;n(Cn(Cn({},t),{},{[e]:o}))},[n,t,e,i,r])}function Le(t,e){var[n,r]=c.useState(!0),[i,a]=c.useState(t),[o,s]=c.useState(t),[l,d]=c.useState(e);return(t!==o||e!==l)&&(r(!0),s(t),d(e)),c.useEffect(()=>{var f=!1,p=setTimeout(()=>{f||(r(!1),a(t))},e);return()=>{f=!0,clearTimeout(p)}},[t,e]),{isDebouncing:n,value:i}}function Ea(t,e){return c.useCallback(n=>{if(n!=null){var r=e==null?[n]:n.querySelectorAll(e);r.forEach(i=>{Object.entries(t).forEach(a=>{var[o,s]=a;i.setAttribute(o,s)})})}},[t,e])}var Ca={spellCheck:!1};function Eh(t){var e=Ea(Ca,t);return nn(e,Ye)}const Ch=Object.freeze(Object.defineProperty({__proto__:null,SPELLCHECK_FALSE_ATTRIBUTE:Ca,createValidationProps:sp,defaultGetKey:lp,extractSpectrumHTMLElement:Ye,extractSpectrumLastChildHTMLElement:up,findSpectrumComboBoxScrollArea:cp,findSpectrumPickerScrollArea:dp,findSpectrumPopoverScrollArea:pp,getPositionOfSelectedItem:fp,getSelectedItemCountOrAll:hh,identityExtractHTMLElement:hp,isElementOfType:ea,isSelectionEqual:ga,isSelectionMaybeInvertedEqual:va,mapSelection:ya,mergeRefs:Zf,optimizeSelection:ba,useAsyncInterval:lu,useCallbackWithAction:mh,useChangeEventValueCallback:gh,useCheckOverflow:mp,useContentRect:Pa,useContextOrThrow:uu,useCopyToClipboard:id,useDebouncedCallback:Ce,useDebouncedValue:Le,useDelay:vh,useDependentState:yh,useEffectNTimesWhen:bh,useFormWithDetachedSubmitButton:wa,useForwardedRef:cu,useIsEqualMemo:xa,useIsMountedRef:du,useMappedRef:nn,useMappedSelection:Oa,useMergeRef:eh,useOnChange:gp,useOnScrollOffsetChangeCallback:vp,useOnScrollRef:Sa,usePopoverOnScrollRef:yp,usePrevious:pu,usePromiseFactory:Pe,usePropChangeCallback:Sh,useResizeObserver:Xe,useSetAttributesCallback:Ea,useSpectrumDisableSpellcheckRef:Eh,useThrottledCallback:fu,useWindowedListData:bp},Symbol.toStringTag,{value:"Module"}));var Th=["aria-label","aria-labelledby","aria-describedby","aria-details","marginX","marginY","width","height","minWidth","minHeight","maxWidth","maxHeight","flex","flexGrow","flexShrink","flexBasis","justifySelf","alignSelf","order","gridArea","gridColumn","gridRow","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","position","zIndex","top","bottom","start","end","left","right","isHidden"];function jh(t,e){if(t==null)return{};var n,r,i=Ih(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Ih(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Ta(t){var{"aria-label":e,"aria-labelledby":n,"aria-describedby":r,"aria-details":i,marginX:a,marginY:o,width:s,height:l,minWidth:d,minHeight:f,maxWidth:p,maxHeight:h,flex:m,flexGrow:g,flexShrink:x,flexBasis:v,justifySelf:b,alignSelf:P,order:T,gridArea:j,gridColumn:y,gridRow:S,gridColumnStart:I,gridColumnEnd:k,gridRowStart:F,gridRowEnd:L,position:V,zIndex:E,top:w,bottom:O,start:_,end:N,left:W,right:Y,isHidden:K}=t,C=jh(t,Th);return{ariaLabelProps:{"aria-label":e,"aria-labelledby":n,"aria-describedby":r,"aria-details":i},styleProps:{marginX:a,marginY:o,width:s,height:l,minWidth:d,minHeight:f,maxWidth:p,maxHeight:h,flex:m,flexGrow:g,flexShrink:x,flexBasis:v,justifySelf:b,alignSelf:P,order:T,gridArea:j,gridColumn:y,gridRow:S,gridColumnStart:I,gridColumnEnd:k,gridRowStart:F,gridRowEnd:L,position:V,zIndex:E,top:w,bottom:O,start:_,end:N,left:W,right:Y,isHidden:K},componentProps:C}}function ja(t){var{normalizedItems:e,defaultSelectedKeys:n,disabledKeys:r,selectedKeys:i,onChange:a}=t,o=c.useMemo(()=>He(i),[i]),s=c.useMemo(()=>He(n),[n]),l=c.useMemo(()=>He(r),[r]),d=c.useCallback(f=>{if(a!=null){if(f==="all"){a("all");return}var p=new Set;e.forEach(h=>{f.has(String(yt(h)))&&p.add(yt(h))}),a(p)}},[e,a]);return{selectedStringKeys:o,defaultSelectedStringKeys:s,disabledStringKeys:l,onStringSelectionChange:d}}function kh(){var{selectedThemeKey:t,setSelectedThemeKey:e,themes:n}=Je(),r=c.useCallback(i=>{e(i)},[e]);return u.jsx(Io,{label:"Pick a color scheme",items:n,selectedKey:t,onSelectionChange:r,children:i=>u.jsx(Ge,{children:i.name},i.themeKey)})}function _h(t){var{className:e,style:n}=t;return u.jsx("div",{className:A("dh-logo",e),style:n})}var Tn=H.module("useExternalTheme");function Ia(){var[t,e]=c.useState(()=>{var r=Nt();return{isEnabled:r,isPending:r}}),n=c.useCallback(r=>{var i=ei(r);e({isEnabled:!0,isPending:!1,themeData:i})},[]);return c.useEffect(()=>{if(!t.isEnabled)return;Tn.debug("Requesting external theme data");function r(i){var a=$t();i.source!==window&&i.source!==a||i.data.message===ni&&ri(i.data.payload)&&n(i.data.payload)}return window.addEventListener("message",r),ti().then(n).catch(i=>{Tn.error(i),e({isEnabled:!0,isPending:!1})}),()=>{window.removeEventListener("message",r)}},[n,t.isEnabled]),t}var Rh=["UNSAFE_className"],Dh=["forceRerenderKey","ref"];function jn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function In(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?jn(Object(n),!0).forEach(function(r){Lh(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Lh(t,e,n){return(e=Fh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fh(t){var e=Ah(t,"string");return typeof e=="symbol"?e:e+""}function Ah(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function kn(t,e){if(t==null)return{};var n,r,i=Nh(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Nh(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function ka(t){var{UNSAFE_className:e}=t,n=kn(t,Rh),r=ta(n),{forceRerenderKey:i,ref:a}=r,o=kn(r,Dh);return c.createElement(Ft,In(In({},o),{},{key:i,ref:a,UNSAFE_className:A("dh-combobox","dh-combobox-normalized",e)}))}var $h=["onScroll"];function _n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Fe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_n(Object(n),!0).forEach(function(r){Mh(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_n(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Mh(t,e,n){return(e=Uh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Uh(t){var e=Bh(t,"string");return typeof e=="symbol"?e:e+""}function Bh(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Wh(t,e){if(t==null)return{};var n,r,i=Hh(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Hh(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function rn(t){var e,n,{ariaLabelProps:r,componentProps:i,styleProps:a}=Ta(t),{onScroll:o=Ze}=i,s=Wh(i,$h),{scale:l}=Xt(),d=Sa(o,Ye),{ref:f,contentRect:p}=Pa(Ye);return u.jsx(Br,Fe(Fe({direction:"column",ref:f},a),{},{minHeight:(e=a.minHeight)!==null&&e!==void 0?e:1,UNSAFE_className:A("dh-list-view-wrapper","dh-list-view-wrapper-density-".concat((n=s.density)!==null&&n!==void 0?n:"regular"),"dh-list-view-wrapper-scale-".concat(l),a.UNSAFE_className),children:p.height===0?null:u.jsx(ko,Fe(Fe({ref:d},r),s))}))}var Vh=["children","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","UNSAFE_className","onChange","onScroll","onSelectionChange"];function Rn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Dn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Rn(Object(n),!0).forEach(function(r){Yh(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Rn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Yh(t,e,n){return(e=Gh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gh(t){var e=Kh(t,"string");return typeof e=="symbol"?e:e+""}function Kh(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function qh(t,e){if(t==null)return{};var n,r,i=zh(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function zh(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Xh(t){var{children:e,tooltip:n=!0,selectedKeys:r,defaultSelectedKeys:i,disabledKeys:a,UNSAFE_className:o,onChange:s,onScroll:l=Ze,onSelectionChange:d}=t,f=qh(t,Vh),p=c.useMemo(()=>Qt(n,"bottom"),[n]),h=c.useMemo(()=>na(e,p),[e,p]);return u.jsx(rn,Dn(Dn({},f),{},{UNSAFE_className:A("dh-list-view",o),selectedKeys:r,defaultSelectedKeys:i,disabledKeys:a,onScroll:l,onSelectionChange:s??d,children:h}))}var Qh=["normalizedItems","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","showItemIcons","actions","UNSAFE_className","onChange","onSelectionChange"];function Ln(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Fn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ln(Object(n),!0).forEach(function(r){Jh(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ln(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Jh(t,e,n){return(e=Zh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zh(t){var e=em(t,"string");return typeof e=="symbol"?e:e+""}function em(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function tm(t,e){if(t==null)return{};var n,r,i=nm(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function nm(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function _a(t){var{normalizedItems:e,tooltip:n=!0,selectedKeys:r,defaultSelectedKeys:i,disabledKeys:a,showItemIcons:o,actions:s,UNSAFE_className:l,onChange:d,onSelectionChange:f}=t,p=tm(t,Qh),h=c.useMemo(()=>Qt(n,"bottom"),[n]),m=ra({itemIconSlot:"illustration",showItemDescriptions:!1,showItemIcons:o,tooltipOptions:h,actions:s}),g="".concat(o,"-").concat(h==null?void 0:h.placement),{selectedStringKeys:x,defaultSelectedStringKeys:v,disabledStringKeys:b,onStringSelectionChange:P}=ja({normalizedItems:e,selectedKeys:r,defaultSelectedKeys:i,disabledKeys:a,onChange:d??f});return c.createElement(rn,Fn(Fn({},p),{},{UNSAFE_className:A("dh-list-view-normalized",l),key:g,items:e,selectedKeys:x,defaultSelectedKeys:v,disabledKeys:b,onSelectionChange:P}),m)}var rm=["color","UNSAFE_style"];function An(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ae(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?An(Object(n),!0).forEach(function(r){im(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function im(t,e,n){return(e=am(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function am(t){var e=om(t,"string");return typeof e=="symbol"?e:e+""}function om(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function sm(t,e){if(t==null)return{};var n,r,i=lm(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function lm(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var nt=c.forwardRef((t,e)=>{var{color:n,UNSAFE_style:r}=t,i=sm(t,rm),a=c.useMemo(()=>Ae(Ae({},r),{},{color:X(n)}),[n,r]);return u.jsx(_o,Ae(Ae({},i),{},{ref:e,UNSAFE_style:a}))});nt.displayName="Heading";var um=["backgroundColor","borderColor","borderStartColor","borderEndColor","borderTopColor","borderBottomColor","borderXColor","borderYColor","UNSAFE_style"];function Nn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ne(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Nn(Object(n),!0).forEach(function(r){cm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function cm(t,e,n){return(e=dm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dm(t){var e=pm(t,"string");return typeof e=="symbol"?e:e+""}function pm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function fm(t,e){if(t==null)return{};var n,r,i=hm(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function hm(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var Ra=c.forwardRef((t,e)=>{var{backgroundColor:n,borderColor:r,borderStartColor:i,borderEndColor:a,borderTopColor:o,borderBottomColor:s,borderXColor:l,borderYColor:d,UNSAFE_style:f}=t,p=fm(t,um),{direction:h}=Ro(),m=c.useMemo(()=>{var g={};return r!==void 0&&(g.borderColor=X(r)),l!==void 0&&(g.borderLeftColor=X(l),g.borderRightColor=X(l)),d!==void 0&&(g.borderTopColor=X(d),g.borderBottomColor=X(d)),i!==void 0&&(g[h==="rtl"?"borderRightColor":"borderLeftColor"]=X(i)),a!==void 0&&(g[h==="rtl"?"borderLeftColor":"borderRightColor"]=X(a)),o!==void 0&&(g.borderTopColor=X(o)),s!==void 0&&(g.borderBottomColor=X(s)),Ne(Ne({},f),{},{backgroundColor:X(n)},g)},[n,f,r,i,a,o,s,l,d,h]);return u.jsx(Do,Ne(Ne({},p),{},{ref:e,UNSAFE_style:m}))});Ra.displayName="View";var mm=["children"];function $n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Mn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$n(Object(n),!0).forEach(function(r){gm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$n(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function gm(t,e,n){return(e=vm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vm(t){var e=ym(t,"string");return typeof e=="symbol"?e:e+""}function ym(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function bm(t,e){if(t==null)return{};var n,r,i=Pm(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Pm(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function xm(t){var{children:e}=t,n=bm(t,mm),r=c.useMemo(()=>hu(e).map(i=>ea(i,ut)?i:u.jsx(ut,{value:String(i),children:String(i)},String(i))),[e]);return u.jsx(Lo,Mn(Mn({},n),{},{children:r}))}var wm=["ariaLabel","icon","isQuiet","labelText","children","onOpenChange","tooltip"];function Un(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Bn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Un(Object(n),!0).forEach(function(r){Om(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Un(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Om(t,e,n){return(e=Sm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sm(t){var e=Em(t,"string");return typeof e=="symbol"?e:e+""}function Em(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Cm(t,e){if(t==null)return{};var n,r,i=Tm(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Tm(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Da(t){var{ariaLabel:e,icon:n,isQuiet:r,labelText:i,children:a,onOpenChange:o,tooltip:s}=t,l=Cm(t,wm),d=i==null&&s!=null?"action-button-icon-with-tooltip":void 0;return u.jsxs(Wr,{type:"popover",onOpenChange:o,children:[u.jsxs(Ke,Bn(Bn({},l),{},{"aria-label":e??i,isQuiet:r,children:[u.jsx(_e,{UNSAFE_className:d,children:u.jsx(Q,{icon:n})}),i==null?null:u.jsx(tt,{children:i}),s==null?null:u.jsx(De,{children:s})]})),a]})}function Wn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function $e(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Wn(Object(n),!0).forEach(function(r){jm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function jm(t,e,n){return(e=Im(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Im(t){var e=km(t,"string");return typeof e=="symbol"?e:e+""}function km(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function La(t){var{heading:e,confirmationButtonLabel:n,children:r,onCancel:i,onConfirm:a}=t,{formProps:o,submitButtonProps:s}=wa();return u.jsxs(Hr,{children:[u.jsx(nt,{level:3,UNSAFE_className:Jt.spectrumDialogComponentHeading,children:e}),u.jsx(Vr,{}),u.jsx(At,{children:u.jsx(Yr,$e($e({},o),{},{children:r}))}),u.jsxs(Gr,{children:[u.jsx(ct,{variant:"secondary",onPress:i,children:"Cancel"}),u.jsx(ct,$e($e({},s),{},{style:"fill",variant:"negative",onPress:a,type:"submit",children:n}))]})]})}function _m(t){var{ariaLabel:e,heading:n,confirmationButtonLabel:r,isHidden:i,children:a,tooltip:o,onConfirm:s}=t,l=c.useCallback(d=>u.jsx(La,{heading:n,confirmationButtonLabel:r,onCancel:d,onConfirm:()=>{d(),s()},children:a}),[a,r,n,s]);return u.jsx(Da,{ariaLabel:e,icon:ii,isHidden:i,isQuiet:!0,height:Zt,tooltip:o,children:l})}var Rm=["icon","label","tooltip"];function Hn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Vn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Hn(Object(n),!0).forEach(function(r){Dm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Dm(t,e,n){return(e=Lm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Lm(t){var e=Fm(t,"string");return typeof e=="symbol"?e:e+""}function Fm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Am(t,e){if(t==null)return{};var n,r,i=Nm(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Nm(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Fa(t){var{icon:e,label:n,tooltip:r}=t,i=Am(t,Rm);return u.jsxs(Ke,Vn(Vn({},i),{},{"aria-label":n,isQuiet:!0,height:Zt,children:[u.jsx(_e,{UNSAFE_className:r==null?void 0:"action-button-icon-with-tooltip",children:u.jsx(Q,{icon:e})}),r==null?null:u.jsx(De,{children:r})]}))}Fa.displayName="IconActionButton";function Yn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function $m(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Yn(Object(n),!0).forEach(function(r){ne(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ne(t,e,n){return(e=Mm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Mm(t){var e=Um(t,"string");return typeof e=="symbol"?e:e+""}function Um(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Bm=100,xt;(function(t){t.UP="UP",t.DOWN="DOWN"})(xt||(xt={}));class J extends c.Component{constructor(e){super(e),ne(this,"popper",void 0),ne(this,"cbContainer",void 0),ne(this,"menuContainer",void 0),ne(this,"input",void 0),ne(this,"getCachedFilteredOptions",Fo((r,i)=>r.filter(a=>a.title.toLowerCase().indexOf(i.toLowerCase())>=0),{max:1e3}));var{popperOptions:n}=this.props;n=$m({placement:"bottom-end",modifiers:{preventOverflow:{enabled:!1}}},n),this.state={title:"",filteredOptions:[],keyboardOptionIndex:0,menuIsOpen:!1,inputWidth:100,invalid:!1,popperOptions:n},this.handleMenuKeyDown=this.handleMenuKeyDown.bind(this),this.handleMenuBlur=this.handleMenuBlur.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleInputKeyDown=this.handleInputKeyDown.bind(this),this.handleInputBlur=this.handleInputBlur.bind(this),this.handelInputFocus=this.handelInputFocus.bind(this),this.handleInputClick=this.handleInputClick.bind(this),this.updateInputValue=Ee(this.updateInputValue,Bm),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleMenuOpened=this.handleMenuOpened.bind(this),this.handleMenuExited=this.handleMenuExited.bind(this),this.popper=U.createRef(),this.cbContainer=U.createRef(),this.menuContainer=U.createRef(),this.input=U.createRef()}setInputWidth(){this.cbContainer.current&&this.setState({inputWidth:this.cbContainer.current.getBoundingClientRect().width})}getValueAndValidate(e){if(!e)return this.setState({invalid:!1}),{value:e,isValid:!1};var{options:n}=this.props,r=n.filter(i=>i.title.toLowerCase()===e.toLowerCase());return r.length<1?(this.setState({invalid:!0}),{value:e,isValid:!1}):(this.setState({invalid:!1}),{value:r[0].value,isValid:!0})}updateInputValue(e){var{menuIsOpen:n}=this.state,{value:r,isValid:i}=this.getValueAndValidate(e);n&&this.processFilterChange(e),this.fireOnChange(r,i)}fireOnChange(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,{onChange:r}=this.props;r(e,n)}processFilterChange(e){var n,{options:r}=this.props,{menuIsOpen:i}=this.state,a=e?this.getCachedFilteredOptions(r,e):r,o=a.length===1&&a[0].title===e;if(this.setState({filteredOptions:a,keyboardOptionIndex:0}),o&&i){this.closeMenu();return}(n=this.popper.current)===null||n===void 0||n.scheduleUpdate()}resetValue(){this.setState({title:""}),this.fireOnChange("")}handleResize(){this.setInputWidth()}handleMenuKeyDown(e){var n,{filteredOptions:r,keyboardOptionIndex:i}=this.state,a=r[i];switch(e.key){case"Enter":case"ArrowRight":e.stopPropagation(),e.preventDefault(),a!=null&&(this.setState({title:a.title,invalid:!1}),this.fireOnChange(a.value)),this.closeMenu(),(n=this.input.current)===null||n===void 0||n.focus();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.navigateMenu(J.MENU_NAVIGATION_DIRECTION.UP);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.navigateMenu(J.MENU_NAVIGATION_DIRECTION.DOWN);break;case"Tab":if(e.stopPropagation(),e.preventDefault(),e.shiftKey){this.navigateMenu(J.MENU_NAVIGATION_DIRECTION.UP);break}this.navigateMenu(J.MENU_NAVIGATION_DIRECTION.DOWN);break;case"Escape":e.preventDefault(),e.stopPropagation(),this.closeMenu();break}}navigateMenu(e){var{filteredOptions:n,keyboardOptionIndex:r}=this.state,i=r;e===J.MENU_NAVIGATION_DIRECTION.UP?r>0?(i=(i-1)%n.length,this.setState({keyboardOptionIndex:i})):r===0&&(i=n.length-1,this.setState({keyboardOptionIndex:i})):e===J.MENU_NAVIGATION_DIRECTION.DOWN&&r<n.length&&(i=(i+1)%n.length,this.setState({keyboardOptionIndex:i})),this.scrollOptionIntoView(i)}handleInputKeyDown(e){var{onEnter:n}=this.props,{menuIsOpen:r}=this.state;r?this.handleMenuKeyDown(e):e.key==="Enter"?n():e.key==="Escape"?(this.resetValue(),e.preventDefault(),e.stopPropagation()):e.key==="ArrowRight"||e.key==="ArrowLeft"||e.key==="Tab"||e.key==="Shift"||this.openMenu()}handleInputChange(e){this.setState({title:e.target.value}),this.updateInputValue(e.target.value)}handleOptionClick(e){var n;this.setState({title:e.title,invalid:!1}),this.fireOnChange(e.value),this.closeMenu(),(n=this.input.current)===null||n===void 0||n.focus()}handelInputFocus(){var{menuIsOpen:e}=this.state;e||this.openMenu()}handleInputClick(){var{menuIsOpen:e}=this.state;e||this.openMenu()}handleInputBlur(e){var{menuIsOpen:n}=this.state;n&&e.relatedTarget instanceof Element&&this.popper.current!==null&&this.popper.current.element.contains(e.relatedTarget)||this.closeMenu(!1)}handleMenuBlur(e){e.relatedTarget===this.input.current||e.relatedTarget instanceof Element&&this.popper.current!==null&&this.popper.current.element.contains(e.relatedTarget)||this.closeMenu(!1)}handleMenuOpened(){var e;(e=this.input.current)===null||e===void 0||e.focus()}handleMenuExited(){var{menuIsOpen:e}=this.state;e&&this.setState({menuIsOpen:!1,keyboardOptionIndex:0})}openMenu(){var{title:e}=this.state;this.processFilterChange(e),this.setInputWidth(),this.setState({menuIsOpen:!0}),window.requestAnimationFrame(()=>{var n;(n=this.popper.current)===null||n===void 0||n.show()})}closeMenu(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(this.setState({menuIsOpen:!1,keyboardOptionIndex:0}),n){var r;(r=this.input.current)===null||r===void 0||r.focus()}(e=this.popper.current)===null||e===void 0||e.hide()}scrollOptionIntoView(e){if(this.menuContainer.current){var n;(n=this.menuContainer.current.children.item(e))===null||n===void 0||n.scrollIntoView({behavior:"smooth",block:"nearest"})}}renderMenuElement(){var{inputWidth:e}=this.state;return u.jsx("div",{className:A("aci-options"),ref:this.menuContainer,role:"presentation",onKeyDown:this.handleMenuKeyDown,style:{width:e},onBlur:this.handleMenuBlur,children:this.renderOptions()})}renderOptions(){var{noMatchText:e}=this.props,{title:n,filteredOptions:r}=this.state;return n&&r.length===0?u.jsx("div",{className:"no-match",children:e}):r.map((i,a)=>this.renderOption(i,a))}renderOption(e,n){var{keyboardOptionIndex:r}=this.state,i="option-".concat(n,"-").concat(e.value);return u.jsx("button",{type:"button",className:A("aci-option-btn",{"keyboard-active":r===n}),onClick:()=>this.handleOptionClick(e),onFocus:()=>this.setState({keyboardOptionIndex:n}),children:e.title},i)}render(){var{options:e,inputPlaceholder:n,disabled:r,className:i,defaultTitle:a,spellCheck:o,"data-testid":s}=this.props,{title:l,menuIsOpen:d,popperOptions:f,invalid:p}=this.state;return u.jsxs("div",{className:"aci-container",ref:this.cbContainer,children:[u.jsx("input",{value:l||a,className:A("form-control",i,"aci-input",{"is-invalid":p&&!d}),ref:this.input,onChange:this.handleInputChange,placeholder:n||e[0].title,disabled:r,onFocus:this.handelInputFocus,onClick:this.handleInputClick,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,spellCheck:o,"data-testid":s}),u.jsx(Vt,{ref:this.popper,options:f,className:A("aci-options-popper interactive"),onEntered:this.handleMenuOpened,onExited:this.handleMenuExited,children:this.renderMenuElement()})]})}}ne(J,"propTypes",{options:$.arrayOf($.shape({title:$.string.isRequired,value:$.string.isRequired})).isRequired,popperOptions:$.shape({}),onChange:$.func,inputPlaceholder:$.string,disabled:$.bool,className:$.string,defaultTitle:$.string,spellCheck:$.bool,onEnter:$.func,noMatchText:$.string,"data-testid":$.string});ne(J,"defaultProps",{onChange(){},inputPlaceholder:"",disabled:!1,className:"",defaultTitle:"",popperOptions:null,spellCheck:!0,onEnter(){},noMatchText:"No matching items found","data-testid":void 0});ne(J,"MENU_NAVIGATION_DIRECTION",xt);function an(t){var{className:e="",value:n,onChange:r,spellCheck:i=!1,placeholder:a="",disabled:o=!1,delimiter:s="",id:l="","data-testid":d}=t,[f,p]=c.useState(n),[h,m]=c.useState(!1),g=c.useRef(null);c.useEffect(function(){p(n)},[n]);function x(I){return I.trim().split(s).filter(k=>k).join(`
|
|
1
|
+
import{r as c,K as U,O as So,F as u,P as Eo,Q as Ge,S as Co,T as To,U as jo,D as Lt,V as Io,I as A,W as Ft,X as Br,Y as ko,Z as _o,a0 as Ro,a1 as Do,a2 as ut,a3 as Lo,a4 as Wr,a5 as Ke,a6 as _e,J as Q,a7 as Hr,a8 as Vr,a9 as At,aa as Yr,ab as Gr,ac as ct,ad as Fo,ae as Ee,af as $,ag as Kr,H as qr,ah as zr,ai as Ao,aj as No,ak as $o,al as Xr,am as Mo,an as Uo,ao as Bo,ap as Wo,aq as Ho,ar as Vo,as as Yo,at as Go,au as Ko,av as qo,aw as zo,ax as Xo,ay as Qo,az as Jo,aA as Zo,aB as es,aC as ts,aD as ns,aE as rs,aF as is,aG as as,aH as os,aI as ss,aJ as ls,aK as Qr,aL as us,aM as cs,aN as ds,aO as ps,aP as fs,aQ as hs,aR as ms,aS as gs,aT as vs,aU as ys,aV as bs,aW as Ps,aX as xs,aY as ws,aZ as Os,a_ as Ss,a$ as Es,b0 as Cs,b1 as Ts,b2 as js,b3 as Is,b4 as ks,N as _s,b5 as Rs,b6 as Ds,b7 as Ls,b8 as Fs,b9 as As,ba as Ns,bb as dt,L as $s,M as Ms,bc as Us,bd as Bs,be as mn,bf as Ws,R as Hs,bg as Vs,bh as Ys,bi as Gs,bj as Ks,bk as qs,bl as Jr,bm as zs,bn as Xs}from"./vendor-CiEcCTfT.js";import{i as Zr,L as H,b as Nt,p as ei,r as ti,M as ni,c as ri,g as $t,v as ii,d as Mt,e as Ut,f as qe,h as Qs,j as Js,k as Zs,l as el,m as tl,n as ai,o as nl,q as rl,s as oi,t as ze,u as il,T as pt,C as al,D as ol,w as sl,x as ll,y as ul,z as cl,A as dl,E as pl,a as fe,B as fl,F as si,N as hl,P as ml,S as gl,G as vl,H as yl,I as bl,J as Pl,W as xl,K as wl,O as Ol,Q as Sl,R as El,U as Cl,V as Tl,X as jl,Y as Il,Z as kl,_ as _l,$ as Rl,a0 as Dl,a1 as Ll,a2 as Fl,a3 as Al,a4 as Nl,a5 as $l,a6 as Ml,a7 as Ul,a8 as Bl,a9 as Wl,aa as Hl,ab as Bt,ac as Vl,ad as Wt,ae as Ht,af as Yl,ag as li,ah as Gl,ai as Kl,aj as ql,ak as zl,al as Xl,am as Ql}from"./index-qut3a5WU.js";import{e as Xe,C as ui,g as Jl,a as Re,F as Zl,f as eu,h as tu,d as nu,U as Qe,i as ci,j as di,D as gn,k as ru,l as iu,c as au,S as ou}from"./LocalWorkspaceStorage-DD_T9MUf.js";import{A as Rb,p as Db,q as Lb,G as Fb,L as Ab,m as Nb,t as $b,s as Mb,o as Ub,n as Bb,r as Wb,u as Hb,b as Vb}from"./LocalWorkspaceStorage-DD_T9MUf.js";import{k as su,l as lu,m as uu,n as Ce,o as cu,p as du,q as pu,t as fu,v as Je,w as Ze,x as hu,T as De,P as Vt,C as le,y as pe,z as pi,A as We,D as fi,R as vn,I as ft,B as G,F as ht,G as Yt,H as hi,J as mu,c as gu,K as mi,L as vu,M as yu,N as bu,O as gi,Q as vi,U as yi,S as Pu,r as xu,V as wu,W as Ou,X as bi,Y as Su,Z as Eu,_ as Cu,$ as Pi,a0 as Tu,a1 as ju,a2 as Iu,a3 as xi,a4 as ku,a5 as wi,g as _u,a6 as Ru,a7 as Du,a8 as Lu,a9 as Oi,u as xe,aa as Fu,ab as Au,ac as Nu,ad as $u,ae as Mu,af as Uu,E as Bu,ag as Si,ah as Ei,ai as Ci,aj as Ti,ak as et,al as Wu,am as ji,an as Hu,ao as mt,ap as Vu,aq as Ii,ar as Yu,as as gt,at as Gu,au as Ku,av as qu,aw as Te,ax as ki,ay as _i,az as zu,aA as Ri,aB as Xu,aC as Qu,aD as Di,aE as Li,aF as Fi,s as Ai,aG as yn,aH as Ju,aI as Zu,aJ as ec,aK as tc,aL as nc,aM as rc,aN as ic,aO as ac,aP as oc,aQ as sc,aR as lc,aS as uc,aT as cc,aU as dc,aV as pc,aW as fc,aX as hc,aY as mc,e as gc,b as vc,aZ as yc,a_ as bc,a$ as Pc,b0 as xc,b1 as wc,b2 as Oc,b3 as Sc,b4 as Ec,b5 as Cc,b6 as Tc,b7 as jc,b8 as Ic,b9 as Ni,ba as kc,bb as _c,a as Rc,bc as Dc,bd as Lc,be as Fc,bf as Ac,bg as $i,bh as Mi,bi as Ui,bj as bn,bk as Nc,bl as $c,bm as Mc,bn as Uc,bo as Bc,bp as Wc,bq as Hc,br as Vc,bs as Yc,bt as Gc,bu as Kc,bv as qc,bw as zc,bx as Xc,by as Qc,bz as Jc,bA as Zc,bB as ed,bC as td,bD as nd,bE as de,bF as rd,bG as id}from"./LogPanel-DkFAPGd0.js";import{u as ad,C as Bi,F as Gt,a as od,S as sd,b as Wi,D as ld,B as ud,c as cd,d as dd,e as pd,f as Kt,g as vt,I as fd,h as hd,T as md,i as gd,j as qt,k as vd,l as Hi,m as Vi,n as yd,o as Yi,p as zt,q as Gi,r as Ki,s as bd,t as Pd,v as xd,w as wd,x as Od,y as qi,z as Sd,A as Ed,E as Cd,P as Td,G as jd,H as Id,J as zi,K as Xi,L as kd,M as _d,N as Rd,O as Dd,Q as Ld,R as Qi,U as Fd,V as Ad,W as Nd,X as Ji,Y as $d,Z as Md,_ as Ud,$ as Pn,a0 as Bd,a1 as Wd,a2 as Hd,a3 as Vd,a4 as Yd,a5 as Gd,a6 as Kd,a7 as qd,a8 as zd,a9 as Xd,aa as Qd,ab as Jd,ac as Zd,ad as ep,ae as tp,af as np,ag as rp,ah as ip,ai as ap,aj as op,ak as Zi}from"./index-CDO0dq5q.js";import{D as sp}from"./DownsamplingError-CG8EVVqo.js";import{e as Ye,c as lp,d as up,a as cp,f as dp,b as pp,g as fp,h as hp,i as mp,j as ea,u as gp,k as vp,l as yp,m as bp,n as Pe,o as Pp,p as He,q as yt,r as ta,s as Xt,t as Qt,w as na,v as ra,x as X,T as tt,y as Jt,A as Zt,M as en,D as ia,z as xp,B as bt,C as wp,E as Op,F as Sp,G as Ep,H as Cp,I as Tp,J as jp,K as Ip,L as kp,N as aa,O as _p,P as Rp,Q as Dp,R as Lp,S as oa,U as Fp,V as Ap,W as Np,X as $p,Y as Mp,Z as Up,_ as sa,$ as Bp,a0 as Wp,a1 as Hp,a2 as Vp,a3 as Yp,a4 as Gp,a5 as Kp,a6 as qp,a7 as zp,a8 as Xp,a9 as Qp,aa as Jp,ab as Zp,ac as ef,ad as tf,ae as la,af as nf,ag as rf,ah as af,ai as of,aj as sf,ak as lf,al as Ve,am as uf,an as ua,ao as cf,ap as tn,aq as ce,ar as xn,as as ca,at as da,au as df,av as pf,aw as ff,ax as hf,ay as mf,az as gf,aA as vf,aB as yf,aC as bf,aD as Pf,aE as xf,aF as wf,aG as Of,aH as Sf,aI as Ef,aJ as Cf,aK as Tf,aL as jf,aM as If,aN as kf,aO as _f,aP as Rf,aQ as Df,aR as Lf,aS as Ff,aT as Af,aU as Nf,aV as $f,aW as Mf,aX as Uf,aY as Bf,aZ as pa,a_ as Wf,a$ as Hf,b0 as Vf,b1 as Yf,b2 as Gf,b3 as Kf,b4 as qf,b5 as zf,b6 as Xf,b7 as Qf,b8 as Jf,b9 as Zf}from"./IrisGridThemeProvider-CLFUkbnY.js";import{m as eh,u as th}from"./useMergeRef-D2wjRM4J.js";import"./helpers-BosuxZz1.js";var nh=["children","keepMounted"];function wn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function On(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?wn(Object(n),!0).forEach(function(r){rh(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function rh(t,e,n){return(e=ih(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ih(t){var e=ah(t,"string");return typeof e=="symbol"?e:e+""}function ah(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function oh(t,e){if(t==null)return{};var n,r,i=sh(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function sh(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function lh(t){var{children:e,keepMounted:n=!1}=t,r=oh(t,nh),i=n&&typeof e!="function",a=c.useRef(new Map),o=c.useMemo(()=>{var l=[],d=new Map;return i?(U.Children.forEach(e,f=>{if(!(f==null||f.key==null)){var p=a.current.get(f.key);p==null&&(p=So({attributes:{style:"display: contents"}})),d.set(f.key,p),l.push(u.jsx(Eo,{node:p,children:f.props.children},f.key))}}),a.current=d,l):(a.current=d,l)},[e,i]),s=c.useMemo(()=>{var l=[];return i&&U.Children.forEach(e,d=>{if(d==null||d.key==null){l.push(d);return}var f=a.current.get(d.key);if(f==null){l.push(d);return}l.push(u.jsx(Ge,{children:u.jsx(Co,{node:f})},d.key))}),l},[e,i]);return u.jsxs(u.Fragment,{children:[i&&o,u.jsx(To,On(On({},r),{},{children:i?s:e}))]})}function Sn(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function uh(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Sn(a,r,i,o,s,"next",l)}function s(l){Sn(a,r,i,o,s,"throw",l)}o(void 0)})}}var ch=[["api"],["client"],["dashboardData","*","connection"],["dashboardData","*","sessionWrapper"],["layoutStorage"],["storage"]];function fa(t){var e=new Map;return function(r,i){var a,o=[...(a=e.get(this))!==null&&a!==void 0?a:[],r];if(i===Object(i)&&e.set(i,[...o]),o.shift(),!ha(o,t))return i instanceof Map?Array.from(i.entries()):i}}function ha(t,e){for(var n=function(o){if(t.length===e[o].length&&t.every((s,l)=>e[o][l]==="*"||s===e[o][l]))return{v:!0}},r=0;r<e.length;r+=1){var i=n(r);if(typeof i=="object")return i.v}return!1}function ma(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"root",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new Map([[t,"root"]]),i={};return Object.entries(t).forEach(a=>{var[o,s]=a;try{JSON.stringify(s,fa(e)),i[o]=s}catch{var l=s;if(typeof s=="bigint")i[o]=s.toString();else if(r.has(l))i[o]="Circular ref to ".concat(r.get(l));else{var d="".concat(n,".").concat(o);r.set(l,d);var f=d.split(".").slice(1);ha(f,e)||(i[o]=ma(s,e,d,r))}}}),i}function dh(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return JSON.stringify(ma(t,e),fa(e),2)}function ph(t){return JSON.stringify(t,null,2)}function fh(t){var e=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0"),i=String(t.getHours()).padStart(2,"0"),a=String(t.getMinutes()).padStart(2,"0"),o=String(t.getSeconds()).padStart(2,"0");return"".concat(e,"-").concat(n,"-").concat(r,"-").concat(i).concat(a).concat(o)}function hh(t,e,n){return Pt.apply(this,arguments)}function Pt(){return Pt=uh(function*(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ch,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"".concat(fh(new Date),"_support_logs"),a=new jo,o=a.folder(i);o.file("console.txt",t.getFormattedHistory()),e!=null&&o.file("metadata.json",ph(e)),n!=null&&o.file("redux.json",dh(n,r));var s=yield a.generateAsync({type:"blob"}),l=document.createElement("a");l.href=URL.createObjectURL(s),l.download="".concat(i,".zip"),l.click()}),Pt.apply(this,arguments)}function mh(t,e){return t===0?0:e==="all"||t===e.size?"all":e.size}function ga(t,e){return t===e?!0:t==="all"||e==="all"||t.size!==e.size?!1:[...t.keys()].every(n=>e.has(n))}function va(t,e){return t.isInverted===e.isInverted&&ga(t.selection,e.selection)}function ya(t,e,n){if(t==="all")return"all";var r=[...t.keys()];return new Set(r.map(i=>{var a=e(i);if(a===void 0)throw new Error("Could not find item with key ".concat(i));return n(a)}))}function ba(t,e,n){var r=t==="all"||t.size>e/2,i=t;return r&&(i=t==="all"?new Set:new Set([...su(0,e-1)].map(n).filter(a=>!t.has(a)))),{selection:i,isInverted:r}}function gh(t,e){return c.useCallback(function(){var n=t(...arguments);return e(),n},[e,t])}function vh(t){return c.useCallback(e=>{t(e.target.value)},[t])}function nn(t,e){return c.useCallback(n=>{typeof t=="function"?t(e(n)):t.current=e(n)},[e,t])}function Pa(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zr,[e,n]=c.useState(0),[r,i]=c.useState(0),[a,o]=c.useState(0),[s,l]=c.useState(0),d=c.useMemo(()=>new DOMRect(e,r,a,s),[s,a,e,r]),[f,p]=c.useState(null),h=nn(p,t),m=c.useCallback(g=>{var x,[v]=g,b=(x=v==null?void 0:v.contentRect)!==null&&x!==void 0?x:{x:0,y:0,width:0,height:0};n(b.x),i(b.y),o(b.width),l(b.height)},[]);return Xe(f,m),{ref:h,contentRect:d}}function yh(t){var[e,n]=c.useState(!0);return c.useEffect(()=>{var r=setTimeout(()=>{n(!1)},t);return()=>{clearTimeout(r)}},[t]),e}function bh(t){var[e,n]=c.useState(t);return c.useEffect(()=>{n(t)},[t]),[e,n]}function Ph(t,e,n,r){var i=c.useRef(0);c.useEffect(()=>{i.current>=n||r&&(i.current+=1,t())},[n,r,...e])}function xa(t,e){var n=c.useRef(t),r=e(n.current,t)?n.current:t;return n.current=r,r}function xh(t){t.preventDefault()}function wa(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=c.useMemo(()=>"useSubmitButtonRef-".concat(Lt()),[]),n=c.useCallback(a=>{var o;a==null||(o=a.UNSAFE_getDOMNode())===null||o===void 0||o.setAttribute("form",e)},[e]),r=c.useMemo(()=>({id:e,onSubmit:t?void 0:xh}),[e,t]),i=c.useMemo(()=>({form:e,ref:n}),[e,n]);return{formProps:r,submitButtonProps:i}}function Oa(t,e,n){var{getItem:r,selectedKeys:i,items:a}=t;return c.useMemo(()=>{var{selection:o,isInverted:s}=ba(i,a.length,n);return{selection:ya(o,r,e),isInverted:s}},[i,a.length,n,r,e])}function Sa(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zr,n=c.useRef();return c.useEffect(()=>()=>{var r;return(r=n.current)===null||r===void 0?void 0:r.call(n)},[]),c.useCallback(r=>{var i;(i=n.current)===null||i===void 0||i.call(n);var a=e(r);a&&(a.addEventListener("scroll",t),n.current=()=>{a.removeEventListener("scroll",t),n.current=void 0})},[e,t])}function En(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Cn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?En(Object(n),!0).forEach(function(r){wh(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):En(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function wh(t,e,n){return(e=Oh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Oh(t){var e=Sh(t,"string");return typeof e=="symbol"?e:e+""}function Sh(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Eh(t,e,n,r){var i=arguments.length===4;return c.useCallback(a=>{var o=i?a??r:a;n(Cn(Cn({},t),{},{[e]:o}))},[n,t,e,i,r])}function Le(t,e){var[n,r]=c.useState(!0),[i,a]=c.useState(t),[o,s]=c.useState(t),[l,d]=c.useState(e);return(t!==o||e!==l)&&(r(!0),s(t),d(e)),c.useEffect(()=>{var f=!1,p=setTimeout(()=>{f||(r(!1),a(t))},e);return()=>{f=!0,clearTimeout(p)}},[t,e]),{isDebouncing:n,value:i}}function Ea(t,e){return c.useCallback(n=>{if(n!=null){var r=e==null?[n]:n.querySelectorAll(e);r.forEach(i=>{Object.entries(t).forEach(a=>{var[o,s]=a;i.setAttribute(o,s)})})}},[t,e])}var Ca={spellCheck:!1};function Ch(t){var e=Ea(Ca,t);return nn(e,Ye)}const Th=Object.freeze(Object.defineProperty({__proto__:null,SPELLCHECK_FALSE_ATTRIBUTE:Ca,createValidationProps:lp,defaultGetKey:up,extractSpectrumHTMLElement:Ye,extractSpectrumLastChildHTMLElement:cp,findSpectrumComboBoxScrollArea:dp,findSpectrumPickerScrollArea:pp,findSpectrumPopoverScrollArea:fp,getPositionOfSelectedItem:hp,getSelectedItemCountOrAll:mh,identityExtractHTMLElement:mp,isElementOfType:ea,isSelectionEqual:ga,isSelectionMaybeInvertedEqual:va,mapSelection:ya,mergeRefs:eh,optimizeSelection:ba,useAsyncInterval:lu,useCallbackWithAction:gh,useChangeEventValueCallback:vh,useCheckOverflow:gp,useContentRect:Pa,useContextOrThrow:uu,useCopyToClipboard:ad,useDebouncedCallback:Ce,useDebouncedValue:Le,useDelay:yh,useDependentState:bh,useEffectNTimesWhen:Ph,useFormWithDetachedSubmitButton:wa,useForwardedRef:cu,useIsEqualMemo:xa,useIsMountedRef:du,useMappedRef:nn,useMappedSelection:Oa,useMergeRef:th,useOnChange:vp,useOnScrollOffsetChangeCallback:yp,useOnScrollRef:Sa,usePopoverOnScrollRef:bp,usePrevious:pu,usePromiseFactory:Pe,usePropChangeCallback:Eh,useResizeObserver:Xe,useSetAttributesCallback:Ea,useSpectrumDisableSpellcheckRef:Ch,useThrottledCallback:fu,useWindowedListData:Pp},Symbol.toStringTag,{value:"Module"}));var jh=["aria-label","aria-labelledby","aria-describedby","aria-details","marginX","marginY","width","height","minWidth","minHeight","maxWidth","maxHeight","flex","flexGrow","flexShrink","flexBasis","justifySelf","alignSelf","order","gridArea","gridColumn","gridRow","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","position","zIndex","top","bottom","start","end","left","right","isHidden"];function Ih(t,e){if(t==null)return{};var n,r,i=kh(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function kh(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Ta(t){var{"aria-label":e,"aria-labelledby":n,"aria-describedby":r,"aria-details":i,marginX:a,marginY:o,width:s,height:l,minWidth:d,minHeight:f,maxWidth:p,maxHeight:h,flex:m,flexGrow:g,flexShrink:x,flexBasis:v,justifySelf:b,alignSelf:P,order:T,gridArea:j,gridColumn:y,gridRow:S,gridColumnStart:I,gridColumnEnd:k,gridRowStart:F,gridRowEnd:L,position:V,zIndex:E,top:w,bottom:O,start:_,end:N,left:W,right:Y,isHidden:K}=t,C=Ih(t,jh);return{ariaLabelProps:{"aria-label":e,"aria-labelledby":n,"aria-describedby":r,"aria-details":i},styleProps:{marginX:a,marginY:o,width:s,height:l,minWidth:d,minHeight:f,maxWidth:p,maxHeight:h,flex:m,flexGrow:g,flexShrink:x,flexBasis:v,justifySelf:b,alignSelf:P,order:T,gridArea:j,gridColumn:y,gridRow:S,gridColumnStart:I,gridColumnEnd:k,gridRowStart:F,gridRowEnd:L,position:V,zIndex:E,top:w,bottom:O,start:_,end:N,left:W,right:Y,isHidden:K},componentProps:C}}function ja(t){var{normalizedItems:e,defaultSelectedKeys:n,disabledKeys:r,selectedKeys:i,onChange:a}=t,o=c.useMemo(()=>He(i),[i]),s=c.useMemo(()=>He(n),[n]),l=c.useMemo(()=>He(r),[r]),d=c.useCallback(f=>{if(a!=null){if(f==="all"){a("all");return}var p=new Set;e.forEach(h=>{f.has(String(yt(h)))&&p.add(yt(h))}),a(p)}},[e,a]);return{selectedStringKeys:o,defaultSelectedStringKeys:s,disabledStringKeys:l,onStringSelectionChange:d}}function _h(){var{selectedThemeKey:t,setSelectedThemeKey:e,themes:n}=Je(),r=c.useCallback(i=>{e(i)},[e]);return u.jsx(Io,{label:"Pick a color scheme",items:n,selectedKey:t,onSelectionChange:r,children:i=>u.jsx(Ge,{children:i.name},i.themeKey)})}function Rh(t){var{className:e,style:n}=t;return u.jsx("div",{className:A("dh-logo",e),style:n})}var Tn=H.module("useExternalTheme");function Ia(){var[t,e]=c.useState(()=>{var r=Nt();return{isEnabled:r,isPending:r}}),n=c.useCallback(r=>{var i=ei(r);e({isEnabled:!0,isPending:!1,themeData:i})},[]);return c.useEffect(()=>{if(!t.isEnabled)return;Tn.debug("Requesting external theme data");function r(i){var a=$t();i.source!==window&&i.source!==a||i.data.message===ni&&ri(i.data.payload)&&n(i.data.payload)}return window.addEventListener("message",r),ti().then(n).catch(i=>{Tn.error(i),e({isEnabled:!0,isPending:!1})}),()=>{window.removeEventListener("message",r)}},[n,t.isEnabled]),t}var Dh=["UNSAFE_className"],Lh=["forceRerenderKey","ref"];function jn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function In(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?jn(Object(n),!0).forEach(function(r){Fh(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Fh(t,e,n){return(e=Ah(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ah(t){var e=Nh(t,"string");return typeof e=="symbol"?e:e+""}function Nh(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function kn(t,e){if(t==null)return{};var n,r,i=$h(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function $h(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function ka(t){var{UNSAFE_className:e}=t,n=kn(t,Dh),r=ta(n),{forceRerenderKey:i,ref:a}=r,o=kn(r,Lh);return c.createElement(Ft,In(In({},o),{},{key:i,ref:a,UNSAFE_className:A("dh-combobox","dh-combobox-normalized",e)}))}var Mh=["onScroll"];function _n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Fe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_n(Object(n),!0).forEach(function(r){Uh(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_n(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Uh(t,e,n){return(e=Bh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bh(t){var e=Wh(t,"string");return typeof e=="symbol"?e:e+""}function Wh(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Hh(t,e){if(t==null)return{};var n,r,i=Vh(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Vh(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function rn(t){var e,n,{ariaLabelProps:r,componentProps:i,styleProps:a}=Ta(t),{onScroll:o=Ze}=i,s=Hh(i,Mh),{scale:l}=Xt(),d=Sa(o,Ye),{ref:f,contentRect:p}=Pa(Ye);return u.jsx(Br,Fe(Fe({direction:"column",ref:f},a),{},{minHeight:(e=a.minHeight)!==null&&e!==void 0?e:1,UNSAFE_className:A("dh-list-view-wrapper","dh-list-view-wrapper-density-".concat((n=s.density)!==null&&n!==void 0?n:"regular"),"dh-list-view-wrapper-scale-".concat(l),a.UNSAFE_className),children:p.height===0?null:u.jsx(ko,Fe(Fe({ref:d},r),s))}))}var Yh=["children","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","UNSAFE_className","onChange","onScroll","onSelectionChange"];function Rn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Dn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Rn(Object(n),!0).forEach(function(r){Gh(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Rn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Gh(t,e,n){return(e=Kh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Kh(t){var e=qh(t,"string");return typeof e=="symbol"?e:e+""}function qh(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function zh(t,e){if(t==null)return{};var n,r,i=Xh(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Xh(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Qh(t){var{children:e,tooltip:n=!0,selectedKeys:r,defaultSelectedKeys:i,disabledKeys:a,UNSAFE_className:o,onChange:s,onScroll:l=Ze,onSelectionChange:d}=t,f=zh(t,Yh),p=c.useMemo(()=>Qt(n,"bottom"),[n]),h=c.useMemo(()=>na(e,p),[e,p]);return u.jsx(rn,Dn(Dn({},f),{},{UNSAFE_className:A("dh-list-view",o),selectedKeys:r,defaultSelectedKeys:i,disabledKeys:a,onScroll:l,onSelectionChange:s??d,children:h}))}var Jh=["normalizedItems","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","showItemIcons","actions","UNSAFE_className","onChange","onSelectionChange"];function Ln(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Fn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ln(Object(n),!0).forEach(function(r){Zh(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ln(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Zh(t,e,n){return(e=em(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function em(t){var e=tm(t,"string");return typeof e=="symbol"?e:e+""}function tm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function nm(t,e){if(t==null)return{};var n,r,i=rm(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function rm(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function _a(t){var{normalizedItems:e,tooltip:n=!0,selectedKeys:r,defaultSelectedKeys:i,disabledKeys:a,showItemIcons:o,actions:s,UNSAFE_className:l,onChange:d,onSelectionChange:f}=t,p=nm(t,Jh),h=c.useMemo(()=>Qt(n,"bottom"),[n]),m=ra({itemIconSlot:"illustration",showItemDescriptions:!1,showItemIcons:o,tooltipOptions:h,actions:s}),g="".concat(o,"-").concat(h==null?void 0:h.placement),{selectedStringKeys:x,defaultSelectedStringKeys:v,disabledStringKeys:b,onStringSelectionChange:P}=ja({normalizedItems:e,selectedKeys:r,defaultSelectedKeys:i,disabledKeys:a,onChange:d??f});return c.createElement(rn,Fn(Fn({},p),{},{UNSAFE_className:A("dh-list-view-normalized",l),key:g,items:e,selectedKeys:x,defaultSelectedKeys:v,disabledKeys:b,onSelectionChange:P}),m)}var im=["color","UNSAFE_style"];function An(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ae(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?An(Object(n),!0).forEach(function(r){am(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function am(t,e,n){return(e=om(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function om(t){var e=sm(t,"string");return typeof e=="symbol"?e:e+""}function sm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function lm(t,e){if(t==null)return{};var n,r,i=um(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function um(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var nt=c.forwardRef((t,e)=>{var{color:n,UNSAFE_style:r}=t,i=lm(t,im),a=c.useMemo(()=>Ae(Ae({},r),{},{color:X(n)}),[n,r]);return u.jsx(_o,Ae(Ae({},i),{},{ref:e,UNSAFE_style:a}))});nt.displayName="Heading";var cm=["backgroundColor","borderColor","borderStartColor","borderEndColor","borderTopColor","borderBottomColor","borderXColor","borderYColor","UNSAFE_style"];function Nn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ne(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Nn(Object(n),!0).forEach(function(r){dm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function dm(t,e,n){return(e=pm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pm(t){var e=fm(t,"string");return typeof e=="symbol"?e:e+""}function fm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function hm(t,e){if(t==null)return{};var n,r,i=mm(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function mm(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var Ra=c.forwardRef((t,e)=>{var{backgroundColor:n,borderColor:r,borderStartColor:i,borderEndColor:a,borderTopColor:o,borderBottomColor:s,borderXColor:l,borderYColor:d,UNSAFE_style:f}=t,p=hm(t,cm),{direction:h}=Ro(),m=c.useMemo(()=>{var g={};return r!==void 0&&(g.borderColor=X(r)),l!==void 0&&(g.borderLeftColor=X(l),g.borderRightColor=X(l)),d!==void 0&&(g.borderTopColor=X(d),g.borderBottomColor=X(d)),i!==void 0&&(g[h==="rtl"?"borderRightColor":"borderLeftColor"]=X(i)),a!==void 0&&(g[h==="rtl"?"borderLeftColor":"borderRightColor"]=X(a)),o!==void 0&&(g.borderTopColor=X(o)),s!==void 0&&(g.borderBottomColor=X(s)),Ne(Ne({},f),{},{backgroundColor:X(n)},g)},[n,f,r,i,a,o,s,l,d,h]);return u.jsx(Do,Ne(Ne({},p),{},{ref:e,UNSAFE_style:m}))});Ra.displayName="View";var gm=["children"];function $n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Mn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$n(Object(n),!0).forEach(function(r){vm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$n(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function vm(t,e,n){return(e=ym(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ym(t){var e=bm(t,"string");return typeof e=="symbol"?e:e+""}function bm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Pm(t,e){if(t==null)return{};var n,r,i=xm(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function xm(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function wm(t){var{children:e}=t,n=Pm(t,gm),r=c.useMemo(()=>hu(e).map(i=>ea(i,ut)?i:u.jsx(ut,{value:String(i),children:String(i)},String(i))),[e]);return u.jsx(Lo,Mn(Mn({},n),{},{children:r}))}var Om=["ariaLabel","icon","isQuiet","labelText","children","onOpenChange","tooltip"];function Un(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Bn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Un(Object(n),!0).forEach(function(r){Sm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Un(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Sm(t,e,n){return(e=Em(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Em(t){var e=Cm(t,"string");return typeof e=="symbol"?e:e+""}function Cm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Tm(t,e){if(t==null)return{};var n,r,i=jm(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function jm(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Da(t){var{ariaLabel:e,icon:n,isQuiet:r,labelText:i,children:a,onOpenChange:o,tooltip:s}=t,l=Tm(t,Om),d=i==null&&s!=null?"action-button-icon-with-tooltip":void 0;return u.jsxs(Wr,{type:"popover",onOpenChange:o,children:[u.jsxs(Ke,Bn(Bn({},l),{},{"aria-label":e??i,isQuiet:r,children:[u.jsx(_e,{UNSAFE_className:d,children:u.jsx(Q,{icon:n})}),i==null?null:u.jsx(tt,{children:i}),s==null?null:u.jsx(De,{children:s})]})),a]})}function Wn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function $e(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Wn(Object(n),!0).forEach(function(r){Im(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Im(t,e,n){return(e=km(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function km(t){var e=_m(t,"string");return typeof e=="symbol"?e:e+""}function _m(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function La(t){var{heading:e,confirmationButtonLabel:n,children:r,onCancel:i,onConfirm:a}=t,{formProps:o,submitButtonProps:s}=wa();return u.jsxs(Hr,{children:[u.jsx(nt,{level:3,UNSAFE_className:Jt.spectrumDialogComponentHeading,children:e}),u.jsx(Vr,{}),u.jsx(At,{children:u.jsx(Yr,$e($e({},o),{},{children:r}))}),u.jsxs(Gr,{children:[u.jsx(ct,{variant:"secondary",onPress:i,children:"Cancel"}),u.jsx(ct,$e($e({},s),{},{style:"fill",variant:"negative",onPress:a,type:"submit",children:n}))]})]})}function Rm(t){var{ariaLabel:e,heading:n,confirmationButtonLabel:r,isHidden:i,children:a,tooltip:o,onConfirm:s}=t,l=c.useCallback(d=>u.jsx(La,{heading:n,confirmationButtonLabel:r,onCancel:d,onConfirm:()=>{d(),s()},children:a}),[a,r,n,s]);return u.jsx(Da,{ariaLabel:e,icon:ii,isHidden:i,isQuiet:!0,height:Zt,tooltip:o,children:l})}var Dm=["icon","label","tooltip"];function Hn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Vn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Hn(Object(n),!0).forEach(function(r){Lm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Lm(t,e,n){return(e=Fm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fm(t){var e=Am(t,"string");return typeof e=="symbol"?e:e+""}function Am(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Nm(t,e){if(t==null)return{};var n,r,i=$m(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function $m(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Fa(t){var{icon:e,label:n,tooltip:r}=t,i=Nm(t,Dm);return u.jsxs(Ke,Vn(Vn({},i),{},{"aria-label":n,isQuiet:!0,height:Zt,children:[u.jsx(_e,{UNSAFE_className:r==null?void 0:"action-button-icon-with-tooltip",children:u.jsx(Q,{icon:e})}),r==null?null:u.jsx(De,{children:r})]}))}Fa.displayName="IconActionButton";function Yn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Mm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Yn(Object(n),!0).forEach(function(r){ne(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ne(t,e,n){return(e=Um(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Um(t){var e=Bm(t,"string");return typeof e=="symbol"?e:e+""}function Bm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Wm=100,xt;(function(t){t.UP="UP",t.DOWN="DOWN"})(xt||(xt={}));class J extends c.Component{constructor(e){super(e),ne(this,"popper",void 0),ne(this,"cbContainer",void 0),ne(this,"menuContainer",void 0),ne(this,"input",void 0),ne(this,"getCachedFilteredOptions",Fo((r,i)=>r.filter(a=>a.title.toLowerCase().indexOf(i.toLowerCase())>=0),{max:1e3}));var{popperOptions:n}=this.props;n=Mm({placement:"bottom-end",modifiers:{preventOverflow:{enabled:!1}}},n),this.state={title:"",filteredOptions:[],keyboardOptionIndex:0,menuIsOpen:!1,inputWidth:100,invalid:!1,popperOptions:n},this.handleMenuKeyDown=this.handleMenuKeyDown.bind(this),this.handleMenuBlur=this.handleMenuBlur.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleInputKeyDown=this.handleInputKeyDown.bind(this),this.handleInputBlur=this.handleInputBlur.bind(this),this.handelInputFocus=this.handelInputFocus.bind(this),this.handleInputClick=this.handleInputClick.bind(this),this.updateInputValue=Ee(this.updateInputValue,Wm),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleMenuOpened=this.handleMenuOpened.bind(this),this.handleMenuExited=this.handleMenuExited.bind(this),this.popper=U.createRef(),this.cbContainer=U.createRef(),this.menuContainer=U.createRef(),this.input=U.createRef()}setInputWidth(){this.cbContainer.current&&this.setState({inputWidth:this.cbContainer.current.getBoundingClientRect().width})}getValueAndValidate(e){if(!e)return this.setState({invalid:!1}),{value:e,isValid:!1};var{options:n}=this.props,r=n.filter(i=>i.title.toLowerCase()===e.toLowerCase());return r.length<1?(this.setState({invalid:!0}),{value:e,isValid:!1}):(this.setState({invalid:!1}),{value:r[0].value,isValid:!0})}updateInputValue(e){var{menuIsOpen:n}=this.state,{value:r,isValid:i}=this.getValueAndValidate(e);n&&this.processFilterChange(e),this.fireOnChange(r,i)}fireOnChange(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,{onChange:r}=this.props;r(e,n)}processFilterChange(e){var n,{options:r}=this.props,{menuIsOpen:i}=this.state,a=e?this.getCachedFilteredOptions(r,e):r,o=a.length===1&&a[0].title===e;if(this.setState({filteredOptions:a,keyboardOptionIndex:0}),o&&i){this.closeMenu();return}(n=this.popper.current)===null||n===void 0||n.scheduleUpdate()}resetValue(){this.setState({title:""}),this.fireOnChange("")}handleResize(){this.setInputWidth()}handleMenuKeyDown(e){var n,{filteredOptions:r,keyboardOptionIndex:i}=this.state,a=r[i];switch(e.key){case"Enter":case"ArrowRight":e.stopPropagation(),e.preventDefault(),a!=null&&(this.setState({title:a.title,invalid:!1}),this.fireOnChange(a.value)),this.closeMenu(),(n=this.input.current)===null||n===void 0||n.focus();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.navigateMenu(J.MENU_NAVIGATION_DIRECTION.UP);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.navigateMenu(J.MENU_NAVIGATION_DIRECTION.DOWN);break;case"Tab":if(e.stopPropagation(),e.preventDefault(),e.shiftKey){this.navigateMenu(J.MENU_NAVIGATION_DIRECTION.UP);break}this.navigateMenu(J.MENU_NAVIGATION_DIRECTION.DOWN);break;case"Escape":e.preventDefault(),e.stopPropagation(),this.closeMenu();break}}navigateMenu(e){var{filteredOptions:n,keyboardOptionIndex:r}=this.state,i=r;e===J.MENU_NAVIGATION_DIRECTION.UP?r>0?(i=(i-1)%n.length,this.setState({keyboardOptionIndex:i})):r===0&&(i=n.length-1,this.setState({keyboardOptionIndex:i})):e===J.MENU_NAVIGATION_DIRECTION.DOWN&&r<n.length&&(i=(i+1)%n.length,this.setState({keyboardOptionIndex:i})),this.scrollOptionIntoView(i)}handleInputKeyDown(e){var{onEnter:n}=this.props,{menuIsOpen:r}=this.state;r?this.handleMenuKeyDown(e):e.key==="Enter"?n():e.key==="Escape"?(this.resetValue(),e.preventDefault(),e.stopPropagation()):e.key==="ArrowRight"||e.key==="ArrowLeft"||e.key==="Tab"||e.key==="Shift"||this.openMenu()}handleInputChange(e){this.setState({title:e.target.value}),this.updateInputValue(e.target.value)}handleOptionClick(e){var n;this.setState({title:e.title,invalid:!1}),this.fireOnChange(e.value),this.closeMenu(),(n=this.input.current)===null||n===void 0||n.focus()}handelInputFocus(){var{menuIsOpen:e}=this.state;e||this.openMenu()}handleInputClick(){var{menuIsOpen:e}=this.state;e||this.openMenu()}handleInputBlur(e){var{menuIsOpen:n}=this.state;n&&e.relatedTarget instanceof Element&&this.popper.current!==null&&this.popper.current.element.contains(e.relatedTarget)||this.closeMenu(!1)}handleMenuBlur(e){e.relatedTarget===this.input.current||e.relatedTarget instanceof Element&&this.popper.current!==null&&this.popper.current.element.contains(e.relatedTarget)||this.closeMenu(!1)}handleMenuOpened(){var e;(e=this.input.current)===null||e===void 0||e.focus()}handleMenuExited(){var{menuIsOpen:e}=this.state;e&&this.setState({menuIsOpen:!1,keyboardOptionIndex:0})}openMenu(){var{title:e}=this.state;this.processFilterChange(e),this.setInputWidth(),this.setState({menuIsOpen:!0}),window.requestAnimationFrame(()=>{var n;(n=this.popper.current)===null||n===void 0||n.show()})}closeMenu(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(this.setState({menuIsOpen:!1,keyboardOptionIndex:0}),n){var r;(r=this.input.current)===null||r===void 0||r.focus()}(e=this.popper.current)===null||e===void 0||e.hide()}scrollOptionIntoView(e){if(this.menuContainer.current){var n;(n=this.menuContainer.current.children.item(e))===null||n===void 0||n.scrollIntoView({behavior:"smooth",block:"nearest"})}}renderMenuElement(){var{inputWidth:e}=this.state;return u.jsx("div",{className:A("aci-options"),ref:this.menuContainer,role:"presentation",onKeyDown:this.handleMenuKeyDown,style:{width:e},onBlur:this.handleMenuBlur,children:this.renderOptions()})}renderOptions(){var{noMatchText:e}=this.props,{title:n,filteredOptions:r}=this.state;return n&&r.length===0?u.jsx("div",{className:"no-match",children:e}):r.map((i,a)=>this.renderOption(i,a))}renderOption(e,n){var{keyboardOptionIndex:r}=this.state,i="option-".concat(n,"-").concat(e.value);return u.jsx("button",{type:"button",className:A("aci-option-btn",{"keyboard-active":r===n}),onClick:()=>this.handleOptionClick(e),onFocus:()=>this.setState({keyboardOptionIndex:n}),children:e.title},i)}render(){var{options:e,inputPlaceholder:n,disabled:r,className:i,defaultTitle:a,spellCheck:o,"data-testid":s}=this.props,{title:l,menuIsOpen:d,popperOptions:f,invalid:p}=this.state;return u.jsxs("div",{className:"aci-container",ref:this.cbContainer,children:[u.jsx("input",{value:l||a,className:A("form-control",i,"aci-input",{"is-invalid":p&&!d}),ref:this.input,onChange:this.handleInputChange,placeholder:n||e[0].title,disabled:r,onFocus:this.handelInputFocus,onClick:this.handleInputClick,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,spellCheck:o,"data-testid":s}),u.jsx(Vt,{ref:this.popper,options:f,className:A("aci-options-popper interactive"),onEntered:this.handleMenuOpened,onExited:this.handleMenuExited,children:this.renderMenuElement()})]})}}ne(J,"propTypes",{options:$.arrayOf($.shape({title:$.string.isRequired,value:$.string.isRequired})).isRequired,popperOptions:$.shape({}),onChange:$.func,inputPlaceholder:$.string,disabled:$.bool,className:$.string,defaultTitle:$.string,spellCheck:$.bool,onEnter:$.func,noMatchText:$.string,"data-testid":$.string});ne(J,"defaultProps",{onChange(){},inputPlaceholder:"",disabled:!1,className:"",defaultTitle:"",popperOptions:null,spellCheck:!0,onEnter(){},noMatchText:"No matching items found","data-testid":void 0});ne(J,"MENU_NAVIGATION_DIRECTION",xt);function an(t){var{className:e="",value:n,onChange:r,spellCheck:i=!1,placeholder:a="",disabled:o=!1,delimiter:s="",id:l="","data-testid":d}=t,[f,p]=c.useState(n),[h,m]=c.useState(!1),g=c.useRef(null);c.useEffect(function(){p(n)},[n]);function x(I){return I.trim().split(s).filter(k=>k).join(`
|
|
2
2
|
`.concat(s.trim()))}function v(I){return I.split(`
|
|
3
|
-
`).map(k=>k.trim()).join(" ")}function b(){if(g.current){g.current.style.height="0";var I=g.current.scrollHeight+(g.current.offsetHeight-g.current.clientHeight);I>0&&(g.current.style.height="".concat(I,"px"))}}function P(I){var k=I.target.value;h&&(s&&(k=x(k)),m(!1)),p(k),r(k)}function T(){g.current&&(s&&(p(x(f)),b()),g.current.scrollLeft=0)}function j(){g.current&&document.activeElement!==g.current&&g.current.focus()}function y(){s&&(p(v(f)),r(v(f)))}function S(){m(!0)}return c.useEffect(function(){b()},[f]),u.jsx("textarea",{ref:g,id:l,className:A(e,"auto-resize-textarea form-control"),placeholder:a,value:f,rows:1,onChange:P,onFocus:T,onMouseDown:j,onBlur:y,onPaste:S,spellCheck:i,disabled:o,"data-testid":d})}an.propTypes={value:$.string.isRequired,onChange:$.func.isRequired,className:$.string,placeholder:$.string,spellCheck:$.bool,disabled:$.bool,delimiter:$.string,id:$.string,"data-testid":$.string};an.defaultProps={className:"",id:"",placeholder:"",disabled:!1,spellCheck:!1,delimiter:"","data-testid":void 0};function Aa(t){var{blockInteraction:e=!0,children:n,debounceMs:r,isOpen:i=!1}=t,{value:a}=Le(i,r);return u.jsxs(u.Fragment,{children:[e&&i&&u.jsx("div",{className:"modal-backdrop",style:{backgroundColor:"transparent"},"data-testid":"debounced-modal-backdrop"}),U.cloneElement(n,{isOpen:i&&a})]})}function Na(t){var{className:e,icon:n,isOpen:r=!1,subtitle:i,title:a}=t;return u.jsx(Mt,{isOpen:r,className:e,children:u.jsx(Ut,{children:u.jsxs("div",{className:"info-modal",children:[n!=null&&u.jsx("div",{className:"message-icon",children:u.jsx(Q,{icon:n})}),u.jsx("div",{className:"message-header",children:a}),i!=null&&u.jsx("div",{className:"message-content",children:i})]})})})}function Gn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Kn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Gn(Object(n),!0).forEach(function(r){Wm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Wm(t,e,n){return(e=Hm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hm(t){var e=Vm(t,"string");return typeof e=="symbol"?e:e+""}function Vm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ym=[];function Gm(t){var{styleProps:e,selectedItemCount:n,onClearSelection:r}=t;return u.jsx(Kr,Kn(Kn({UNSAFE_className:Jt.spectrumActionBar},e),{},{isEmphasized:!0,selectedItemCount:n,onClearSelection:r,children:Ym}))}function qn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Km(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qn(Object(n),!0).forEach(function(r){oe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function oe(t,e,n){return(e=qm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qm(t){var e=zm(t,"string");return typeof e=="symbol"?e:e+""}function zm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var zn=H.module("ContextMenu");class je extends c.PureComponent{static handleContextMenu(e){e.metaKey||(e.stopPropagation(),e.preventDefault())}constructor(e){super(e),oe(this,"container",void 0),oe(this,"oldFocus",void 0),oe(this,"activeSubMenuRef",void 0),oe(this,"subMenuTimer",void 0),oe(this,"rAF",void 0),oe(this,"initialPosition",void 0),this.handleBlur=this.handleBlur.bind(this),this.handleCloseSubMenu=this.handleCloseSubMenu.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleMenuItemClick=this.handleMenuItemClick.bind(this),this.handleMenuItemContextMenu=this.handleMenuItemContextMenu.bind(this),this.handleMenuItemMouseMove=this.handleMenuItemMouseMove.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this),this.handleWindowResize=this.handleWindowResize.bind(this),this.container=U.createRef(),this.oldFocus=document.activeElement,this.activeSubMenuRef=U.createRef(),this.subMenuTimer=0,this.rAF=0,this.initialPosition={top:e.top,left:e.left},this.state={menuItems:[],pendingItems:[],activeSubMenu:null,hasOverflow:!1,subMenuTop:null,subMenuLeft:null,subMenuParentWidth:0,subMenuParentHeight:0,keyboardIndex:-1,mouseIndex:-1}}componentDidMount(){this.initMenu(),this.verifyPosition(),window.addEventListener("resize",this.handleWindowResize),this.rAF=window.requestAnimationFrame(()=>{var e;(e=this.container.current)===null||e===void 0||e.focus();var{onMenuOpened:n}=this.props;n(this)})}componentDidUpdate(e,n){var{actions:r}=this.props,{activeSubMenu:i}=this.state;if(i!==n.activeSubMenu)if(i==null){var a;(a=this.container.current)===null||a===void 0||a.focus()}else this.setActiveSubMenuPosition();if(e.actions!==r&&(this.initMenu(),this.container.current==null||!this.container.current.contains(document.activeElement))){var o;(o=this.container.current)===null||o===void 0||o.focus()}this.verifyPosition()}componentWillUnmount(){this.cancelPromises(),window.removeEventListener("resize",this.handleWindowResize),cancelAnimationFrame(this.rAF)}getKeyboardIndex(){var{options:e}=this.props;if(e.separateKeyboardMouse!==void 0&&e.separateKeyboardMouse){var{keyboardIndex:n}=this.state;return n}return this.getMouseIndex()}setKeyboardIndex(e){var{options:n}=this.props;n.separateKeyboardMouse!==void 0&&n.separateKeyboardMouse?this.setState({keyboardIndex:e}):this.setMouseIndex(e)}getMouseIndex(){var{mouseIndex:e}=this.state;return e}setMouseIndex(e){this.setState({mouseIndex:e})}initMenu(){this.cancelPromises(),cancelAnimationFrame(this.rAF);var{options:e}=this.props,n=e.initialKeyboardIndex;n===void 0&&(n=-1);for(var{actions:r}=this.props,i=le.getMenuItems(r),a=[],o=i.length-1;o>=0;o-=1){var s=i[o];s instanceof Promise?this.initMenuPromise(s):a.push(s)}this.setState({mouseIndex:-1,keyboardIndex:n,activeSubMenu:null,menuItems:le.sortActions(a)})}initMenuPromise(e){var n=pe.makeCancelable(e);this.setState(r=>({pendingItems:r.pendingItems.concat(n)})),n.then(r=>{this.setState(i=>{var a=i.pendingItems.indexOf(n);if(a>=0){var o=i.pendingItems.slice();return o.splice(a,1),{menuItems:le.sortActions(i.menuItems.concat(r)),pendingItems:o}}return null})},r=>{pe.isCanceled(r)||(this.setState(i=>{var a=i.pendingItems.indexOf(n);if(a>=0){var o=i.pendingItems.slice();return o.splice(a,1),{pendingItems:o}}return null}),zn.error(r))})}cancelPromises(){var{pendingItems:e}=this.state;e.map(n=>n.cancel())}setActiveSubMenuPosition(){if(this.activeSubMenuRef.current!==null){var e=this.activeSubMenuRef.current.getBoundingClientRect();this.setState({subMenuTop:e.top,subMenuLeft:e.right,subMenuParentHeight:e.height,subMenuParentWidth:e.width})}}verifyPosition(){var e,n,r,i,{options:a,updatePosition:o,subMenuParentWidth:s,subMenuParentHeight:l,top:d,left:f}=this.props;if(!(!this.container.current||a.doNotVerifyPosition!=null&&a.doNotVerifyPosition)){var{top:p,left:h}=this.initialPosition,{width:m,height:g}=(e=(n=this.container.current)===null||n===void 0?void 0:n.getBoundingClientRect())!==null&&e!==void 0?e:{width:0,height:0},x=((r=(i=this.container.current)===null||i===void 0?void 0:i.scrollHeight)!==null&&r!==void 0?r:0)>window.innerHeight;g===0||m===0||(p+g>window.innerHeight&&(p-g-l>0?p-=g-l:p=window.innerHeight-g),h+m>window.innerWidth&&(h=h-m-s),(f!==h||d!==p)&&(this.setState({hasOverflow:x}),o(p,h)))}}handleWindowResize(){this.container.current&&this.closeMenu(!0)}handleBlur(e){if(!this.container.current){zn.warn("Container is null!");return}if(!this.container.current.contains(e.relatedTarget)){for(var n=e.relatedTarget,r=!1;n&&!r;)r=n.hasAttribute("data-dh-context-menu"),n=n.parentElement;r||this.closeMenu(!0)}}isEscapeKey(e){var{left:n}=this.props;return e==="Escape"||n<0&&e==="ArrowRight"||e==="ArrowLeft"}handleKeyDown(e){var{menuItems:n}=this.state,r=this.getKeyboardIndex(),i=r,a=!1;if(e.key==="Enter"||e.key===" "){r>=0&&r<n.length&&this.handleMenuItemClick(n[r],e);return}if(e.key==="ArrowRight"?r>=0&&r<=n.length?a=!0:i=0:this.isEscapeKey(e.key)?i=null:e.key==="ArrowUp"||e.shiftKey&&e.key==="Tab"?i=le.getNextMenuItem(i,-1,n):(e.key==="ArrowDown"||e.key==="Tab")&&(i=le.getNextMenuItem(i,1,n)),a){this.openSubMenu(r),e.preventDefault(),e.stopPropagation();return}r!==i&&(i!==null?this.setKeyboardIndex(i):(this.closeMenu(),this.oldFocus instanceof HTMLElement&&this.oldFocus.focus()),e.preventDefault(),e.stopPropagation())}openSubMenu(e){var{menuItems:n,activeSubMenu:r}=this.state,i=n[e].actions?e:null;r!==i&&this.setState({activeSubMenu:i,subMenuTop:null,subMenuLeft:null})}closeMenu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,{closeMenu:n,onMenuClosed:r}=this.props;cancelAnimationFrame(this.rAF),this.rAF=window.requestAnimationFrame(()=>{n(e),r(this)})}closeSubMenu(){this.setState({activeSubMenu:null})}handleCloseSubMenu(e){e?this.closeMenu(!0):this.closeSubMenu()}handleMenuItemClick(e,n){n.preventDefault(),n.stopPropagation();var{menuItems:r}=this.state;e!=null&&(e.disabled===void 0||!e.disabled)&&(e.actions!=null?this.openSubMenu(r.indexOf(e)):e.action!=null&&(e.action(n.nativeEvent),this.closeMenu(!0)))}handleMenuItemContextMenu(e,n){n.metaKey||this.handleMenuItemClick(e,n)}handleMenuItemMouseMove(e){var{menuItems:n}=this.state,r=n.indexOf(e);this.setMouseIndex(r),r>=0&&r<n.length&&(e.disabled===void 0||!e.disabled)&&this.openSubMenu(r)}handleMouseLeave(){this.setMouseIndex(-1)}render(){for(var e=[],{top:n,left:r}=this.props,{activeSubMenu:i,hasOverflow:a,keyboardIndex:o,menuItems:s,mouseIndex:l,pendingItems:d,subMenuTop:f,subMenuLeft:p,subMenuParentWidth:h,subMenuParentHeight:m}=this.state,g=0;g<s.length;g+=1){var x=s[g];g>0&&x.group!==s[g-1].group&&e.push(u.jsx("hr",{},"".concat(g,".separator")));var v=u.jsx(pi,{ref:i===g?this.activeSubMenuRef:null,isKeyboardSelected:o===g,isMouseSelected:l===g,menuItem:x,closeMenu:this.handleCloseSubMenu,onMenuItemClick:this.handleMenuItemClick,onMenuItemMouseMove:this.handleMenuItemMouseMove,onMenuItemContextMenu:this.handleMenuItemContextMenu},g);e.push(v)}var b=null;d.length>0&&(b=u.jsx("div",{className:"loading",children:u.jsx(qe,{className:"loading-spinner-vertical-align"})}));var{menuStyle:P,"data-testid":T}=this.props,j=i!==null&&f!==null&&p!==null;return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:A({"has-overflow":a},"context-menu-container"),style:Km({top:n,left:r},P),ref:this.container,"data-dh-context-menu":!0,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseLeave:this.handleMouseLeave,onContextMenu:je.handleContextMenu,role:"menuitem",tabIndex:0,"data-testid":T,children:[e,b]}),j&&i!==null&&f!==null&&p!==null&&u.jsx(je,{actions:s[i].actions||[],closeMenu:this.handleCloseSubMenu,top:f,left:p,updatePosition:(y,S)=>{this.setState({subMenuTop:y,subMenuLeft:S})},subMenuParentWidth:h,subMenuParentHeight:m},"sub-".concat(i))]})}}oe(je,"defaultProps",{subMenuParentWidth:0,subMenuParentHeight:0,closeMenu(){},onMenuOpened(){},onMenuClosed(){},options:{},menuStyle:{},"data-testid":void 0});function Xn(t,e,n){return(e=Xm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xm(t){var e=Qm(t,"string");return typeof e=="symbol"?e:e+""}function Qm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class $a extends c.Component{constructor(e){super(e),Xn(this,"container",void 0),Xn(this,"openMenu",void 0),this.handleMenuClose=this.handleMenuClose.bind(this),this.handleContextMenu=this.handleContextMenu.bind(this),this.container=U.createRef(),this.openMenu=U.createRef(),this.state={actions:null,left:0,top:0}}componentDidMount(){var e;(e=this.container.current)!==null&&e!==void 0&&e.parentElement&&this.container.current.parentElement.addEventListener("contextmenu",this.handleContextMenu)}componentWillUnmount(){var e;(e=this.container.current)!==null&&e!==void 0&&e.parentElement&&this.container.current.parentElement.removeEventListener("contextmenu",this.handleContextMenu)}handleContextMenu(e){if(this.container.current){var n=this.container.current.getBoundingClientRect(),r=e.clientY-n.top,i=e.clientX-n.left,{actions:a}=this.state;if(a!=null&&e.target===this.container.current){e.preventDefault(),this.setState({actions:null},()=>{var s=document.elementFromPoint(i,r),l=new MouseEvent("contextmenu",{clientX:e.clientX,clientY:e.clientY,bubbles:!0,cancelable:!0});s==null||s.dispatchEvent(l)});return}if(le.isContextActionEvent(e)&&!(e.metaKey||e.ctrlKey)){var o=le.getMenuItems(e.contextActions);o.length!==0&&(e.preventDefault(),this.setState({actions:o,top:r,left:i}))}}}handleMenuClose(e){e===this.openMenu.current&&this.setState({actions:null})}render(){var e=null,{"data-testid":n}=this.props,{actions:r,top:i,left:a}=this.state;return r&&(e=u.jsx(je,{ref:this.openMenu,actions:r,onMenuClosed:this.handleMenuClose,top:i,left:a,updatePosition:(o,s)=>{this.setState({top:o,left:s})},"data-testid":n})),u.jsx("div",{className:A("context-menu-root",{active:r}),ref:this.container,children:e})}}function Ma(t,e,n){return(e=Jm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Jm(t){var e=Zm(t,"string");return typeof e=="symbol"?e:e+""}function Zm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class ee extends c.Component{static handleEnter(e){var n=e;n.style.height="0"}static handleEntering(e){var n=e;n.style.height="".concat(ee.getHeight(n),"px")}static handleExiting(e){var n=e;n.style.height="0"}static handleExit(e){var n=e;n.style.height="".concat(ee.getHeight(n),"px")}static getHeight(e){var n=e.scrollWidth-e.clientWidth;return e.scrollHeight-n}constructor(e){super(e),this.handleEntered=this.handleEntered.bind(this)}handleEntered(e){var n=e;n.style.height="";var{autoFocusOnShow:r}=this.props;if(r!==void 0&&r){var i=n.querySelector("input, select, textarea");i!=null&&i.focus()}}render(){var{children:e,className:n,in:r,"data-testid":i}=this.props;return u.jsx(qr,{in:r,classNames:{enterActive:"collapsing",enterDone:"collapse show",exitActive:"collapsing",exitDone:"collapse"},onEnter:ee.handleEnter,onEntering:ee.handleEntering,onEntered:this.handleEntered,onExit:ee.handleExit,onExiting:ee.handleExiting,timeout:350,children:a=>u.jsx("div",{className:A({collapse:a==="exited"},n),"data-testid":i,children:e})})}}Ma(ee,"propTypes",{className:$.string,in:$.bool.isRequired,children:$.node.isRequired,autoFocusOnShow:$.bool,"data-testid":$.string});Ma(ee,"defaultProps",{className:"",autoFocusOnShow:!1,"data-testid":void 0});var eg=H.module("TimeInput"),tg="([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]",ng=["00:00:00","12:34:56","23:59:59"];function Qn(t){return t!=null?"".concat(t.substring(0,8).replace(/\u2007/g,"0")).concat("00:00:00".substring(t.length)):t}var Ie=U.forwardRef((t,e)=>{var{allowValueWrapping:n=!0,className:r="",onChange:i=()=>!1,value:a=0,onFocus:o=()=>!1,onBlur:s=()=>!1,onSelect:l=()=>!1,"data-testid":d}=t,[f,p]=c.useState(We.formatTime(a)),h=c.useRef(a),[m,g]=c.useState(),x=c.useRef(null);c.useImperativeHandle(e,()=>({focus:()=>{var y;(y=x.current)===null||y===void 0||y.focus()},setSelection:y=>{var S;(S=x.current)===null||S===void 0||S.focus(),g(y)}}),[]),c.useEffect(function(){h.current!==a&&(p(We.formatTime(a)),h.current=a)},[h,a]);function v(y,S,I){var k=y.selectionStart===0?24:60,F=parseInt(I,10)-S;return Number.isNaN(F)?F=0:n?F=(F%k+k)%k:F=Math.min(Math.max(0,F),k-1),"".concat(F).padStart(2,"0")}function b(y,S,I,k,F){return k===0&&F===2&&S===1&&parseInt(I,10)>1?"0".concat(I).concat(y.substring(2)):ia(y,S,I)}var P=c.useCallback(y=>{eg.debug("handleChange",y),p(y),h.current=We.parseTime(Qn(y)),i(h.current)},[i]),T=c.useCallback(()=>{var y=Qn(f);y!==f&&p(y),s()},[f,s]),j=c.useCallback(y=>{g(y),l(y)},[l]);return u.jsx(en,{ref:x,className:r,example:ng,getNextSegmentValue:v,getPreferredReplacementString:b,onChange:P,onSelect:j,pattern:tg,selection:m,value:f,onFocus:o,onBlur:T,"data-testid":d})});Ie.defaultProps={allowValueWrapping:!0,className:"",onChange:()=>!1,onSelect:()=>!1,value:0,onFocus:()=>!1,onBlur:()=>!1,"data-testid":void 0};function Jn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function rg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Jn(Object(n),!0).forEach(function(r){ue(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ue(t,e,n){return(e=ig(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ig(t){var e=ag(t,"string");return typeof e=="symbol"?e:e+""}function ag(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Zn=-1,wt;(function(t){t.UP="UP",t.DOWN="DOWN"})(wt||(wt={}));class q extends c.Component{constructor(e){super(e),ue(this,"csContainer",void 0),ue(this,"menuContainer",void 0),ue(this,"button",void 0),ue(this,"input",void 0);var{value:n,valueToTime:r}=e;this.toggleMenu=this.toggleMenu.bind(this),this.handleMenuKeyDown=this.handleMenuKeyDown.bind(this),this.closeMenu=this.closeMenu.bind(this),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleOptionFocus=this.handleOptionFocus.bind(this),this.handleMenuOpened=this.handleMenuOpened.bind(this),this.handleMenuExited=this.handleMenuExited.bind(this),this.handleCustomInput=this.handleCustomInput.bind(this),this.csContainer=U.createRef(),this.menuContainer=U.createRef(),this.button=U.createRef(),this.input=U.createRef(),this.state={keyboardOptionIndex:0,menuIsOpen:!1,inputWidth:100,customTime:r(n),inputFocused:!1}}getSelectedText(){var{options:e,value:n,placeholder:r}=this.props,{customTime:i}=this.state;if(n===null)return r;for(var a=0;a<e.length;a+=1){var o=e[a];if(o.value===n)return o.title}return We.formatTime(i)}setInputWidth(){this.csContainer.current&&this.setState({inputWidth:this.csContainer.current.getBoundingClientRect().width})}focus(){var e;(e=this.button.current)===null||e===void 0||e.focus()}updateInputValue(e){var{onChange:n}=this.props;n(e)}handleResize(){this.setInputWidth()}handleMenuKeyDown(e){var n,{keyboardOptionIndex:r,inputFocused:i}=this.state,{options:a}=this.props;switch(e.key){case"Enter":case" ":i?this.updateFromCustom():this.updateInputValue(a[r].value),this.closeMenu(),(n=this.button.current)===null||n===void 0||n.focus(),e.stopPropagation(),e.preventDefault();break;case"Tab":e.shiftKey?this.handleMenuNavigation(q.MENU_NAVIGATION_DIRECTION.UP):this.handleMenuNavigation(q.MENU_NAVIGATION_DIRECTION.DOWN),e.stopPropagation(),e.preventDefault();break;case"ArrowUp":this.handleMenuNavigation(q.MENU_NAVIGATION_DIRECTION.UP),e.stopPropagation(),e.preventDefault();break;case"ArrowDown":this.handleMenuNavigation(q.MENU_NAVIGATION_DIRECTION.DOWN),e.stopPropagation(),e.preventDefault();break;case"Escape":this.closeMenu();break}}handleMenuNavigation(e){var{keyboardOptionIndex:n,inputFocused:r}=this.state,{options:i}=this.props,a=i.length,o=n;switch(e){case q.MENU_NAVIGATION_DIRECTION.UP:if(!r&&n===0){this.focusInput();break}else r&&this.focusOption(n);n>0&&!r?(o=(o-1)%a,this.setState({keyboardOptionIndex:o})):n===0&&(o=a-1,this.setState({keyboardOptionIndex:o})),this.scrollOptionIntoView(o);break;case q.MENU_NAVIGATION_DIRECTION.DOWN:if(!r&&n===a-1){this.focusInput();break}else r&&this.focusOption(n);n<a&&!(r&&n===0)&&(o=(o+1)%a,this.setState({keyboardOptionIndex:o})),this.scrollOptionIntoView(o);break}}handleOptionClick(e){var n=Number(e.currentTarget.value),{options:r,timeToValue:i}=this.props,{customTime:a}=this.state;if(n===Zn){var o=i(a);this.updateAndClose(o)}else this.updateAndClose(r[n].value)}updateAndClose(e){var n;this.updateInputValue(e),this.closeMenu(),(n=this.button.current)===null||n===void 0||n.focus()}handleOptionFocus(e){this.setState({keyboardOptionIndex:Number(e.target.value)})}handleMenuOpened(){var e,{options:n,value:r}=this.props,{keyboardOptionIndex:i}=this.state;this.scrollOptionIntoView(i);var a=(e=this.menuContainer.current)===null||e===void 0?void 0:e.querySelector(".cs-option-btn.keyboard-active");if(a instanceof HTMLElement&&a.focus(),r!==null){var o=n.map(s=>s.value).indexOf(r);o<0&&this.focusInput()}}focusInput(){var e;(e=this.input.current)===null||e===void 0||e.focus()}focusOption(e){var n,r=(n=this.menuContainer.current)===null||n===void 0?void 0:n.querySelector(".cs-options");if(r&&r.children!=null){var i=r.children.item(e);i instanceof HTMLElement&&i.focus()}}handleMenuExited(){var{menuIsOpen:e}=this.state;e&&this.setState({menuIsOpen:!1,keyboardOptionIndex:0})}handleCustomInput(e){var{timeToValue:n}=this.props,r=n(e);this.updateInputValue(r),this.setState({customTime:e})}updateFromCustom(){var{timeToValue:e}=this.props,{customTime:n}=this.state,r=e(n);this.updateInputValue(r)}toggleMenu(e){var{menuIsOpen:n}=this.state;n?this.closeMenu():this.openMenu(),e.stopPropagation()}openMenu(){this.updateKeyboardIndex(),this.setInputWidth(),this.setState({menuIsOpen:!0})}closeMenu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(this.setState({menuIsOpen:!1}),e){var n;(n=this.button.current)===null||n===void 0||n.focus()}}updateKeyboardIndex(){var{options:e,value:n}=this.props;if(n!==null){var r=e.map(i=>i.value).indexOf(n);r>0&&this.setState({keyboardOptionIndex:r})}}scrollOptionIntoView(e){var n,r=(n=this.menuContainer.current)===null||n===void 0?void 0:n.querySelector(".cs-options");if(r&&r.children!=null){var i=r.children.item(e);i instanceof HTMLElement&&i.offsetTop>q.DROP_DOWN_MENU_HEIGHT?r.scrollTop=i.offsetTop-q.DROP_DOWN_MENU_HEIGHT:(i instanceof HTMLElement&&i.offsetTop<0||e===0)&&(r.scrollTop=0)}}renderMenuElement(){var{inputWidth:e}=this.state;return u.jsx("div",{className:"cs-menu-container",ref:this.menuContainer,role:"presentation",onKeyDown:this.handleMenuKeyDown,onClick:n=>{n.stopPropagation()},style:{width:e},children:u.jsx("div",{className:"cs-options-container",children:u.jsx("div",{className:"cs-options",children:this.renderOptions()})})})}renderOptions(){for(var{options:e,value:n,icon:r,customText:i}=this.props,{keyboardOptionIndex:a,customTime:o,inputFocused:s}=this.state,l=!1,d=[],f=0;f<e.length;f+=1){var p=e[f],h="option-".concat(f,"-").concat(p.value);l=l||p.value===n,d.push(u.jsxs("button",{type:"button",value:f,className:A("cs-option-btn",{"keyboard-active":a===f&&!s}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[p.value===n&&u.jsx(Q,{icon:r,className:"mr-2"}),p.value!==n&&u.jsx("span",{className:"mr-4"}),p.title]},h))}return d.push(u.jsx("hr",{className:"cs-divider"},"option-divider")),d.push(u.jsxs("button",{type:"button",value:Zn,className:A("cs-option-btn",{"keyboard-active":s}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[!l&&n!==null?u.jsx(Q,{icon:r,className:"mr-2"}):u.jsx("span",{className:"mr-4"}),i]},"option-custom-label")),d.push(u.jsxs("div",{className:"cs-custom-container",children:[u.jsx("span",{className:"mr-2"}),u.jsx(Ie,{ref:this.input,onChange:this.handleCustomInput,value:o,onFocus:()=>this.setState({inputFocused:!0}),onBlur:()=>this.setState({inputFocused:!1})},"option-input"),u.jsx("span",{className:"ml-2"})]},"cs-custom-container")),d.push(u.jsx("hr",{className:"mb-2"},"option-end")),d}render(){var{disabled:e,invalid:n,value:r,"data-testid":i}=this.props,{menuIsOpen:a}=this.state,{popperOptions:o}=this.props;return o=rg({placement:"bottom-end",modifiers:{preventOverflow:{enabled:!1}}},o),u.jsx("div",{className:"input-group cs-container context-menu",ref:this.csContainer,"data-testid":i,children:u.jsx("div",{className:A("input-group-append cs-dropdown",{"cs-dropdown-invalid":n}),children:u.jsxs("button",{type:"button",className:A("btn cs-btn form-control",{"cs-btn-invalid":n}),ref:this.button,onClick:this.toggleMenu,disabled:e,children:[u.jsx("span",{className:A({"text-muted":r===null}),children:this.getSelectedText()}),u.jsx("span",{className:"cs-caret"}),u.jsx(fi,{isShown:a,actions:{menuElement:this.renderMenuElement()},popperOptions:o,popperClassName:"CustomTimeSelect",onMenuOpened:this.handleMenuOpened,onMenuClosed:this.handleMenuExited,menuStyle:{maxWidth:"100rem"}})]})})})}}ue(q,"MENU_NAVIGATION_DIRECTION",wt);ue(q,"DROP_DOWN_MENU_HEIGHT",125);ue(q,"defaultProps",{onChange(){},value:null,disabled:!1,popperOptions:{},icon:Qs,customText:"Custom",placeholder:"Select a time",valueToTime:t=>t===null?0:Math.round(t/1e3),timeToValue:t=>t*1e3,invalid:!1,"data-testid":void 0});var og=H.module("DateInput"),sg="[12][0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])",lg=["2000-01-01","2022-12-31"],ug="YYYY-MM-DD",Ua=U.forwardRef((t,e)=>{var{className:n="",onChange:r=()=>{},defaultValue:i="",onFocus:a=()=>{},onBlur:o=()=>{},"data-testid":s}=t,[l,d]=c.useState(i),[f,p]=c.useState(),h=c.useCallback(m=>{og.debug("handleChange",m),d(m),r(m)},[r]);return u.jsx("div",{className:"d-flex flex-row align-items-center",children:u.jsx(en,{ref:e,className:A(n),example:lg,getNextSegmentValue:Pp,onChange:h,onSelect:p,pattern:sg,placeholder:ug,selection:f,value:l,onFocus:a,onBlur:o,"data-testid":s})})});Ua.displayName="DateInput";function cg(t){var{isInvalid:e=!1,items:n,onAdd:r=()=>{},onDelete:i=()=>{},validate:a=()=>null}=t,[o,s]=c.useState(null),[l,d]=c.useState([]),[f,p]=c.useState(""),h=c.useCallback(T=>{d(T)},[]),m=c.useCallback(()=>{i(vn.getItemsInRanges(n,l)),d([])},[n,l,i]),g=c.useCallback(()=>{if(f!==""){var T=a(f);T==null?(r(f),p("")):s(T)}},[f,r,a]),x=c.useCallback(T=>{var{value:j}=T.target;p(j),s(j===""?null:a(j))},[a]),v=c.useCallback(()=>{d([])},[]),b=c.useCallback(T=>{T.key==="Enter"&&g()},[g]),P=c.useMemo(()=>14+zr(n.length,1,6)*ft.DEFAULT_ROW_HEIGHT,[n.length]);return u.jsxs("div",{className:A("editable-item-list-container",{"is-invalid":e}),children:[u.jsx("div",{style:{height:P},children:u.jsx(ft,{itemCount:n.length,items:n.map((T,j)=>({value:T,isSelected:vn.isSelected(l,j)})),offset:0,selectedRanges:l,onSelectionChange:h,isMultiSelect:!0})}),u.jsxs("div",{className:"d-flex flex-row pt-2",children:[u.jsx("div",{className:"d-flex flex-grow-1",children:u.jsx("input",{className:A("form-control",{"is-invalid":o!=null}),placeholder:"Enter value",type:"text",value:f,onChange:x,onFocus:v,onKeyDown:b})}),u.jsxs("div",{className:"d-flex align-items-start mt-1 ml-2",children:[u.jsx(G,{kind:"ghost",onClick:g,disabled:o!=null||f==="",icon:Js,tooltip:"Add new item","data-testid":"add-item-button"}),u.jsx(G,{kind:"ghost",onClick:m,disabled:l.length===0,icon:ii,tooltip:"Delete selected items","data-testid":"delete-item-button"})]})]})]})}function dg(t){var{message:e,isExpanded:n=!1,type:r="Error"}=t,[i,a]=c.useState(!1),[o,s]=c.useState(!1),l=c.useRef(null),d=c.useRef(null),f=c.useCallback(()=>{if(!(o||n||d.current==null)){var h=d.current.scrollHeight>d.current.clientHeight;a(h)}},[o,n]),p=Ce(f,100);return Xe(l.current,p),c.useLayoutEffect(p,[p]),u.jsxs("div",{className:A("error-view",{expanded:o||n}),ref:l,children:[u.jsxs("div",{className:"error-view-header",children:[u.jsxs("div",{className:"error-view-header-text",children:[u.jsx(Q,{icon:Zs}),u.jsx("span",{children:r})]}),u.jsxs("div",{className:"error-view-buttons",children:[u.jsx(Bi,{kind:"danger",className:"error-view-copy-button",tooltip:"Copy exception contents",copy:"".concat(r,": ").concat(e).trim()}),(i||o)&&!n&&u.jsx(G,{kind:"danger",className:"error-view-expand-button",onClick:()=>{s(!o)},icon:o?el:tl,children:o?"Show Less":"Show More"})]})]}),u.jsx("pre",{className:"error-view-text",ref:d,children:e})]})}function pg(t,e,n){return(e=fg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fg(t){var e=hg(t,"string");return typeof e=="symbol"?e:e+""}function hg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class ve extends c.Component{static isParentSelected(e,n){var r=n.get(e);if(r===void 0)return!1;if(typeof r=="boolean")return r;var i=Array.from(r.values()).includes(!0),a=Array.from(r.values()).includes(!1);return i&&a?null:i}constructor(e){super(e),this.toggleMenu=this.toggleMenu.bind(this),this.toggleValueFor=this.toggleValueFor.bind(this),this.selectAll=this.selectAll.bind(this),this.clear=this.clear.bind(this),this.state={menuIsOpen:!1}}toggleMenu(e){e.stopPropagation(),e.preventDefault(),this.setState(n=>{var{menuIsOpen:r}=n;return{menuIsOpen:!r}})}toggleValueFor(e,n){var{valueMap:r,onUpdateValueMap:i}=this.props,a=new Map(r),o=a.get(e);if(o instanceof Map){var s=new Map(o);if(n!=null)s.set(n,o.get(n)!==!0);else{var l=ve.isParentSelected(e,a),d=l==null||!l;o.forEach((h,m)=>s.set(m,d))}a.set(e,s)}else a.set(e,o==null||!o);var f=a.get(e);if(n===void 0&&f!==void 0&&typeof f!="boolean"){var p=ve.isParentSelected(e,r);p!=null&&p?f.forEach((h,m)=>f.set(m,!1)):f.forEach((h,m)=>f.set(m,!0))}i(a)}setAllValues(e){var{valueMap:n,onUpdateValueMap:r}=this.props,i=new Map;n.forEach((a,o)=>{if(typeof a=="boolean")i.set(o,e);else{var s=new Map;a.forEach((l,d)=>s.set(d,e)),i.set(o,s)}}),r(i)}selectAll(){this.setAllValues(!0)}clear(){this.setAllValues(!1)}renderMenuElement(){var{valueMap:e,"data-testid":n}=this.props;return u.jsxs("div",{className:"hcm-menu-container",children:[Array.from(e.entries()).map(r=>{var[i,a]=r;return u.jsxs("div",{children:[u.jsx(ht,{className:"hcm-parent",checked:ve.isParentSelected(i,e),onChange:()=>this.toggleValueFor(i),children:i}),a!==void 0&&typeof a!="boolean"&&Array.from(a.entries()).map(o=>{var[s,l]=o;return u.jsx(ht,{className:"hcm-child",checked:l,onChange:()=>this.toggleValueFor(i,s),children:s},s)})]},i)}),u.jsx(G,{kind:"ghost",onClick:this.selectAll,"data-testid":n!==void 0?"".concat(n,"-btn-select-all"):void 0,children:"Select All"}),u.jsx(G,{kind:"ghost",onClick:this.clear,"data-testid":n!==void 0?"".concat(n,"-btn-clear"):void 0,children:"Clear"})]})}render(){var{menuText:e,className:n,icon:r,id:i,"data-testid":a}=this.props,{menuIsOpen:o}=this.state;return u.jsxs("button",{type:"button",className:A("btn hcm-btn",n),onClick:this.toggleMenu,id:i,"data-testid":a,children:[u.jsxs("span",{children:[r&&u.jsx(Q,{icon:r,className:"hcm-icon mr-1"}),e]}),u.jsx("span",{className:"cs-caret"}),u.jsx(Vt,{options:{placement:"bottom"},isShown:o,onExited:()=>{this.setState({menuIsOpen:!1})},closeOnBlur:!0,interactive:!0,children:this.renderMenuElement()})]})}}pg(ve,"defaultProps",{className:"",icon:null,id:"","data-testid":void 0});function er(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function it(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?er(Object(n),!0).forEach(function(r){mg(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function mg(t,e,n){return(e=gg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gg(t){var e=vg(t,"string");return typeof e=="symbol"?e:e+""}function vg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ba=c.memo(t=>{var{tab:e,onClose:n,onSelect:r,isActive:i,activeRef:a,index:o,isDraggable:s,contextActions:l}=t,{key:d,isClosable:f=n!=null,title:p,icon:h}=e,m;return h!=null&&(m=U.isValidElement(h)?h:u.jsx(Q,{icon:h})),u.jsx(Ao,{draggableId:d,index:o,isDragDisabled:!s,children:(g,x)=>u.jsxs("div",{className:"context-menu-wrapper",ref:i?a:null,children:[u.jsxs("div",it(it(it({ref:g.innerRef},g.draggableProps),g.dragHandleProps),{},{className:A("btn btn-link btn-nav-tab",{active:i},{dragging:x.isDragging}),"data-testid":"btn-nav-tab-".concat(p),role:"tab",tabIndex:0,onAuxClick:v=>{f&&v.button===1&&v.buttons===0&&(n==null||n(d))},onClick:v=>{if(f&&v.button===1&&v.buttons===0){n==null||n(d);return}v.button===0&&v.buttons===0&&(v.target.focus(),r(d))},onKeyPress:v=>{v.key==="Enter"&&r(d)},children:[m,u.jsxs("span",{className:"btn-nav-tab-title",children:[p,u.jsx(De,{children:p})]}),f&&u.jsx(G,{kind:"ghost",className:"btn-nav-tab-close",onClick:v=>{n==null||n(d),v.stopPropagation(),v.preventDefault()},icon:ai,tooltip:"Close"})]})),u.jsx(Yt,{actions:l})]})},d)});Ba.displayName="NavTab";function tr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function nr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tr(Object(n),!0).forEach(function(r){yg(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function yg(t,e,n){return(e=bg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bg(t){var e=Pg(t,"string");return typeof e=="symbol"?e:e+""}function Pg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var xg=500,wg=.01,Og=5e-4;function rr(t){return t.scrollLeft===0}function ir(t){return t.scrollLeft+t.clientWidth===t.scrollWidth||t.scrollWidth===0}function Sg(t,e,n){var{isClosable:r=!1,key:i}=t,a=[];if(r&&n!=null){a.push({title:"Close",order:10,group:20,action:()=>{n(i)}});for(var o=!0,s=e.length-1;s>0&&e[s].key!==t.key;s-=1)if(e[s].isClosable===!0){o=!1;break}a.push({title:"Close to the Right",order:20,group:20,action:()=>{for(var l=e.length-1;l>0&&e[l].key!==i;l-=1)e[l].isClosable===!0&&n(e[l].key)},disabled:o}),a.push({title:"Close All",order:30,group:20,action:()=>{e.forEach(l=>{l.isClosable===!0&&n(l.key)})}})}return a}function Eg(t){var{activeKey:e,tabs:n,onSelect:r,onReorder:i,onClose:a,makeContextActions:o}=t,s=c.useRef(),[l,d]=c.useState(!0),[f,p]=c.useState(!0),[h,m]=c.useState(!0),g=c.useCallback(()=>{s.current!=null&&(s.current.clientWidth<s.current.scrollWidth&&n.length>0?d(!0):d(!1),p(rr(s.current)),m(ir(s.current)))},[n]);Xe(s.current,g);var x=c.useCallback(w=>{bt.stopDragging(),w.destination&&(i==null||i(w.source.index,w.destination.index))},[i]),v=c.useCallback(()=>{if(s.current!=null){var w=rr(s.current);w!==f&&p(w);var O=ir(s.current);O!==h&&m(O)}},[f,h]),b=c.useRef({cancelClick:!1}),P=c.useCallback(()=>{if(!(s.current==null||b.current.cancelClick))for(var{children:w}=s.current,O=w.length-1;O>=0;O-=1){var _=w[O];if(_.offsetLeft<s.current.scrollLeft-5){_.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"});return}}},[]),T=c.useCallback(()=>{if(!(s.current==null||b.current.cancelClick))for(var{children:w}=s.current,O=0;O<w.length;O+=1){var _=w[O];if(_.offsetLeft+5>s.current.scrollLeft+s.current.offsetWidth){_.scrollIntoView({behavior:"smooth",block:"nearest",inline:"end"});return}}},[]),j=c.useCallback(function(w,O){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,N=arguments.length>3?arguments[3]:void 0,W=s.current;W!=null&&(b.current.cancelClick=!0,w==="left"?W.scrollLeft=O-_:w==="right"&&(W.scrollLeft=O+_),b.current.rAF=requestAnimationFrame(Y=>{var K=N??Y,C=Y-K,R=wg*C+.5*Og*C**2;R=Math.min(R,W.scrollWidth),j(w,O,R,K)}))},[]),y=c.useCallback(()=>{var{holdTimer:w,rAF:O}=b.current;w!=null&&(clearTimeout(w),b.current.holdTimer=void 0),O!=null&&(cancelAnimationFrame(O),b.current.rAF=void 0),window.removeEventListener("mouseup",y)},[]);c.useEffect(()=>()=>window.removeEventListener("mouseup",y),[y]);var S=c.useCallback(w=>{s.current!=null&&(b.current.holdTimer=window.setTimeout(j,xg,w,s.current.scrollLeft)),b.current.cancelClick=!1,window.addEventListener("mouseup",y)},[y,j]),I=c.useCallback(()=>{S("left")},[S]),k=c.useCallback(()=>{S("right")},[S]);c.useEffect(function(){var O,_=N=>{N.stopPropagation(),N.preventDefault();var W=N.currentTarget,Y=Math.abs(N.deltaY)>Math.abs(N.deltaX)?N.deltaY:N.deltaX;W.scrollLeft+=zr(Y,-30,30)};return(O=s.current)===null||O===void 0||O.addEventListener("wheel",_),()=>{var N;(N=s.current)===null||N===void 0||N.removeEventListener("wheel",_)}},[]);var F=c.useMemo(()=>{var w=new Map;return n.forEach(O=>{var{key:_}=O,N=[()=>Sg(O,n,a),()=>{var W;return(W=o==null?void 0:o(O))!==null&&W!==void 0?W:[]}];w.set(_,N)}),w},[o,n,a]),L=c.useRef(null),V=n.find(w=>w.key===e),E=n.map((w,O)=>{var{key:_}=w,N=w===V;return u.jsx(Ba,{tab:w,index:O,isActive:N,activeRef:L,onSelect:r,onClose:a,isDraggable:i!=null,contextActions:F.get(_)},_)});return c.useEffect(function(){L.current!=null&&L.current.scrollIntoView({block:"nearest",inline:"nearest"})},[e]),u.jsxs("nav",{className:"nav-container",children:[l&&u.jsx(G,{kind:"ghost",icon:u.jsx(Q,{icon:nl,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-left",tooltip:"Scroll left",onClick:P,onMouseDown:I,disabled:f}),u.jsx(No,{onDragStart:bt.startDragging,onDragEnd:x,children:u.jsx($o,{droppableId:"droppable-tab-navigation",direction:"horizontal",children:(w,O)=>u.jsxs("div",nr(nr({ref:_=>{_!=null&&(s.current=_,w.innerRef(_))}},w.droppableProps),{},{className:A("nav nav-tabs",{dragging:O.draggingFromThisWith}),role:"tablist",onScroll:v,children:[E,w.placeholder]}))})}),l&&u.jsx(G,{kind:"ghost",icon:u.jsx(Q,{icon:rl,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-right",tooltip:"Scroll right",onClick:T,onMouseDown:k,disabled:h})]})}var Cg=.025,Tg=.9,jg=.1,Ig=.618,ar=80,he={SIZE:8,DOT_SIZE:2},ie=18,kg=250,_g=60*1e3,Rg={background:"var(--dh-color-random-area-plot-animation-bg)",foregroundFill:"var(--dh-color-random-area-plot-animation-fg-fill)",foregroundStroke:"var(--dh-color-random-area-plot-animation-fg-stroke)",gridColor:"var(--dh-color-random-area-plot-animation-grid)"};function Dg(){return oi(Rg)}var Wa=U.memo(()=>{var{activeThemes:t}=Je(),e=c.useMemo(Dg,[t]),n=c.useRef(null),r=c.useRef(null),[i,a]=c.useState(!1),o=window.devicePixelRatio,s,l,d,f,p,h=null,m=[];function g(){var E;r.current!=null&&(d=r.current.offsetWidth,f=r.current.offsetHeight),n.current!=null&&(n.current.style.width="".concat(d,"px"),n.current.style.height="".concat(f,"px"),n.current.width=d*o,n.current.height=f*o),(E=s)===null||E===void 0||E.scale(o,o)}function x(){var{foregroundFill:E,foregroundStroke:w}=e,O=document.createElement("canvas");O.width=he.SIZE,O.height=he.SIZE;var _=O.getContext("2d");return _!=null&&(_.fillStyle=w,_.fillRect(0,0,he.DOT_SIZE,he.DOT_SIZE),_.fillStyle=E,_.fillRect(0,0,he.SIZE,he.SIZE)),_==null?void 0:_.createPattern(O,"repeat")}function v(E){var w=Math.random()-.5,O=Cg*w;return E<jg?O=Math.abs(O):E>Tg&&(O=-Math.abs(O)),E+O}function b(){for(var E=[],w=Ig,O=0;O<d+ie;O+=1)w=v(w),E.push(w);return E}function P(){for(;m.length>=d+ie;)m.pop();for(;m.length<d+ie;)m.push(v(m[m.length-1]))}function T(E,w){w.beginPath(),w.moveTo(-1,f+1),w.lineTo(-1,f*E[0]);for(var O=0;O<E.length;O+=1)w.lineTo(O,f*E[O]);w.lineTo(d+ie,f*E[E.length-1]),w.lineTo(d+ie,f+1),w.closePath()}function j(E){E.beginPath();for(var w=1;w<d;w+=ar)E.moveTo(w,0),E.lineTo(w,f);for(var O=1;O<f;O+=ar)E.moveTo(0,O),E.lineTo(d,O)}function y(E){var w,O,_;h=(w=h)!==null&&w!==void 0?w:E;var{background:N,foregroundStroke:W,gridColor:Y}=e;ze(s),s.fillStyle=N,s.fillRect(0,0,d,f),j(s),s.lineWidth=1,s.strokeStyle=Y,s.stroke();var K=(((O=h)!==null&&O!==void 0?O:0)-(E??0))/(1e3/ie);if(s.translate(K,0),T(m,s),s.lineWidth=2,s.strokeStyle=W,s.stroke(),s.translate(-K,0),l!=null&&(s.fillStyle=l),s.fill(),s.setTransform(o,0,0,o,0,0),(E??0)-((_=h)!==null&&_!==void 0?_:0)>1e3/ie){for(var C,R=Math.floor(((E??0)-((C=h)!==null&&C!==void 0?C:0))/(1e3/ie)),D=0;D<R;D+=1)m.shift(),m.push(v(m[m.length-1]));h=E}p!=null&&cancelAnimationFrame(p),p=requestAnimationFrame(y)}var S=Ee(()=>{p=requestAnimationFrame(E=>{g(),P(),a(!1),y(E)})},kg,{leading:!0});function I(){a(!0),p!=null&&cancelAnimationFrame(p),p=null,h=null}var k=Ee(()=>{I()},_g);function F(){p==null&&(a(!1),g(),P(),p=requestAnimationFrame(y)),k()}function L(){document.hasFocus()&&F()}function V(){p!=null&&cancelAnimationFrame(p),k(),S()}return c.useEffect(()=>{var E;return s=(E=n.current)===null||E===void 0?void 0:E.getContext("2d",{alpha:!1}),g(),m=b(),l=x(),y(),k(),window.addEventListener("resize",V),window.addEventListener("focus",F),window.addEventListener("blur",I),window.addEventListener("mousemove",L),window.addEventListener("keydown",L),()=>{p!=null&&cancelAnimationFrame(p),window.removeEventListener("resize",V),window.removeEventListener("focus",F),window.removeEventListener("blur",I),window.removeEventListener("mousemove",L),window.removeEventListener("keydown",L),k.cancel(),S.cancel()}},[e]),u.jsx("div",{className:"random-area-plot-animation-container",ref:r,children:u.jsx("canvas",{ref:n,className:i?"shade":""})})});function Ha(t){var{text:e,placement:n="top-start"}=t,r=c.useMemo(()=>({placement:n}),[n]);return u.jsxs(u.Fragment,{children:[u.jsx(tt,{UNSAFE_className:Jt.spectrumEllipsis,children:e??u.jsx(u.Fragment,{children:" "})}),e==null||e===""?null:u.jsx(De,{options:r,children:e})]})}var Lg=["scrollRef","getItemDisplayText","getKey"];function or(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function sr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?or(Object(n),!0).forEach(function(r){Fg(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Fg(t,e,n){return(e=Ag(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ag(t){var e=Ng(t,"string");return typeof e=="symbol"?e:e+""}function Ng(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function $g(t,e){if(t==null)return{};var n,r,i=Mg(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Mg(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Ug(t){var{scrollRef:e,getItemDisplayText:n,getKey:r}=t,i=$g(t,Lg),a=c.useCallback(o=>{var s=r(o),l=n(o);return u.jsx(Ge,{textValue:l??String(s),children:u.jsx(Ha,{text:l})},s)},[n,r]);return u.jsx(Ft,sr(sr({},i),{},{ref:e,menuTrigger:"focus",onSelectionChange:i.onSelectionChange,children:a}))}var Bg=500;function Wg(t){var{heading:e,content:n,delayMs:r=Bg}=t,[i,a]=c.useState(!1);return c.useEffect(()=>{window.setTimeout(()=>{a(!0)},r)},[r]),i?u.jsxs(Xr,{children:[u.jsx(_e,{size:"XXL",children:u.jsx(Q,{icon:il})}),u.jsx(nt,{children:e}),n==null?null:u.jsx(At,{children:n})]}):null}const Hg="_modified_5rbci_24",Vg="_track_5rbci_35",Yg="_handle_5rbci_15",Gg="_ticks_5rbci_103",Va={"handle-size":"15px","popover-width":"90px","time-slider":"_time-slider_5rbci_5","time-slider-popovers":"_time-slider-popovers_5rbci_10","handle-popper":"_handle-popper_5rbci_15",modified:Hg,"flex-spacer":"_flex-spacer_5rbci_31",track:Vg,"track-fills":"_track-fills_5rbci_42","track-fill":"_track-fill_5rbci_42","track-fill-start":"_track-fill-start_5rbci_60","track-fill-middle":"_track-fill-middle_5rbci_61","track-fill-end":"_track-fill-end_5rbci_64","handle-track":"_handle-track_5rbci_67",handle:Yg,ticks:Gg,"tick-labels":"_tick-labels_5rbci_121","tick-label":"_tick-label_5rbci_121","tick-label-wrapper":"_tick-label-wrapper_5rbci_137"};var Me=parseInt(Va["handle-size"],10),lr=parseInt(Va["popover-width"],10),z=24*60*60-1,ur=5*60;function Kg(t){var{startTime:e,endTime:n,onChange:r,isStartModified:i=!1,isEndModified:a=!1,"data-testid":o}=t,[s,l]=c.useState(e),[d,f]=c.useState(n),p=c.useRef(null);c.useEffect(function(){l(e),f(n)},[e,n]);var h=c.useCallback((x,v)=>{var b=x,P=v;b===P&&(P<z?P+=1:b-=1),l(b),f(P),r({startTime:b,endTime:P})},[l,f,r]),m=c.useCallback(x=>{h(x,d)},[h,d]),g=c.useCallback(x=>{h(s,x)},[h,s]);return u.jsxs("div",{className:"time-slider","data-testid":o,children:[u.jsx(qg,{startTime:s,endTime:d,onStartTimeChange:m,onEndTimeChange:g,isStartModified:i,isEndModified:a}),u.jsxs("div",{className:"track",ref:p,children:[u.jsx(zg,{startTime:s,endTime:d}),u.jsx("div",{className:"ticks",children:Array(24).fill(null).map((x,v)=>u.jsx("div",{className:"tick"},v))}),u.jsx(cr,{track:p,time:s,setTime:m}),u.jsx(cr,{track:p,time:d,setTime:g})]}),u.jsxs("div",{className:"tick-labels",children:[u.jsx("div",{className:"tick-label",children:"0:00"}),u.jsx("div",{className:"tick-label-wrapper",children:Array(24).fill(null).map((x,v)=>u.jsx("div",{className:"tick-label",children:"".concat(v+1,":00")},v))})]})]})}function qg(t){var{startTime:e,endTime:n,onStartTimeChange:r,onEndTimeChange:i,isStartModified:a,isEndModified:o,"data-testid":s}=t,l=e>n,[d,f]=c.useState(l?n:e),[p,h]=c.useState(l?e:n),m=c.useRef(null),g=c.useRef(null),x=c.useRef(null),v=c.useRef(null);c.useEffect(function(){f(e>n?n:e),h(e>n?e:n)},[e,n]),c.useEffect(function(){if(x.current!==null){var S;(S=g.current)===null||S===void 0||S.setSelection(x.current)}if(v.current!==null){var I;(I=m.current)===null||I===void 0||I.setSelection(v.current)}},[l]);function b(y){e<=n?r(y):i(y)}function P(y){e<=n?i(y):r(y)}var T=c.useCallback(y=>{x.current=y,v.current=null},[]),j=c.useCallback(y=>{x.current=null,v.current=y},[]);return u.jsxs("div",{className:"time-slider-popovers",children:[u.jsx("div",{className:"flex",style:{flexBasis:"calc(".concat(d/z*100,"% - ").concat(lr/2,"px)")}}),u.jsxs("div",{className:"handle-popper",children:[u.jsx("label",{className:A({modified:l?o:a}),children:l?"End Time":"Start Time"}),u.jsx(Ie,{ref:m,allowValueWrapping:!1,value:d,onChange:b,onSelect:T,"data-testid":s!==void 0?"".concat(s,"-input-1"):void 0})]}),u.jsx("div",{className:"flex-spacer"}),u.jsxs("div",{className:"handle-popper",children:[u.jsx("label",{className:A({modified:l?a:o}),children:l?"Start Time":"End Time"}),u.jsx(Ie,{ref:g,allowValueWrapping:!1,value:p,onChange:P,onSelect:j,"data-testid":s!==void 0?"".concat(s,"-input-2"):void 0})]}),u.jsx("div",{className:"flex",style:{flexBasis:"calc(".concat((z-p)/z*100,"% - ").concat(lr/2,"px)")}})]})}function zg(t){var{startTime:e,endTime:n,"data-testid":r}=t;return u.jsxs("div",{className:"track-fills","data-testid":r,children:[e>n&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"track-fill track-fill-start",style:{transform:"scaleX(".concat(n/z,")")}}),u.jsx("div",{className:"track-fill track-fill-end",style:{transform:"scaleX(".concat((z-e)/z,")")}})]}),e<n&&u.jsx("div",{className:"track-fill track-fill-middle",style:{transform:"translateX(".concat(e/z*100,"%) scaleX(").concat((n-e)/z,")")}})]})}function cr(t){var{track:e,time:n,setTime:r,"data-testid":i}=t,a=c.useMemo(()=>{var h=3600,m=Me/2;return n<h?m=n/h*(Me/2):n>23*h&&(m=Me/2+1/(z-23*h)*(n-23*h)*(Me/2)),"translateX(calc(".concat(n/z*100,"% - ").concat(m,"px))")},[n]),o=c.useCallback(h=>{if(!e.current)return 0;var m=e.current.getBoundingClientRect(),g=Math.max(h-m.left,0),x=z*Math.min(1,g/m.width),v=ur*Math.round(x/ur),b=Math.min(z,v);return b},[e]),s=c.useCallback(h=>{var{clientX:m}=h;r(o(m))},[r,o]),l=c.useCallback(h=>{var{clientX:m}=h;r(o(m)),window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",l),document.documentElement.classList.remove("drag-pointer-events-none")},[r,o,s]),d=c.useCallback(()=>{window.addEventListener("mousemove",s),window.addEventListener("mouseup",l),document.documentElement.classList.add("drag-pointer-events-none")},[s,l]),f=c.useCallback(()=>{window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",l),document.documentElement.classList.remove("drag-pointer-events-none")},[s,l]),p=c.useCallback(()=>{d()},[d]);return c.useEffect(function(){return()=>{f()}},[f]),u.jsx("div",{className:"handle-track",style:{transform:a},children:u.jsx("button",{className:"handle",type:"button","aria-label":"Change time",onMouseDown:p,"data-testid":i})})}function Ya(t){var{buttons:e,isShown:n=!1,classNames:r,message:i,type:a,onClick:o,onDismiss:s,"data-testid":l}=t,d=e&&e.length!==0;return u.jsx(qr,{in:n,timeout:pt.transitionMs,classNames:"toast-notification-slide-up",mountOnEnter:!0,unmountOnExit:!0,children:u.jsxs("div",{className:A("toast-notification",r,a),role:"presentation",onClick:o,onKeyPress:o,"data-testid":l,children:[u.jsx("div",{className:"message-container",children:u.jsx("span",{className:"message",children:i})}),u.jsx(Gt,{in:d,timeout:pt.transitionSlowMs,mountOnEnter:!0,unmountOnExit:!0,children:u.jsx("div",{className:"buttons-container",children:e})}),s&&u.jsx(G,{kind:"ghost",icon:ai,tooltip:"Close notification",className:"my-2",onClick:s})]})})}Ya.TYPE=Object.freeze({ERROR:"error"});const Xg=Object.freeze(Object.defineProperty({__proto__:null,ACTION_ICON_HEIGHT:Zt,Accordion:Mo,ActionBar:Kr,ActionButton:Ke,ActionButtonDialogTrigger:Da,ActionGroup:xp,ActionMenu:wp,AlertDialog:Uo,AutoCompleteInput:J,AutoResizeTextarea:an,Avatar:Bo,Badge:Wo,BasicModal:hi,Breadcrumbs:Ho,BulkActionBar:Gm,Button:G,ButtonGroup:Gr,CSS_VAR_EXPRESSION_PREFIX:al,Calendar:Vo,CardFlip:ad,Checkbox:ht,CheckboxGroup:xm,Collapse:ee,ColorEditor:Yo,ColorPicker:Go,ColorValues:Op,ComboBox:Sp,ComboBoxNormalized:ka,ConfirmActionButton:_m,ConfirmationDialog:La,Content:At,ContextActionUtils:le,ContextActions:Yt,ContextMenuItem:pi,ContextMenuRoot:$a,ContextualHelp:Ko,ContextualHelpTrigger:qo,CopyButton:Bi,CustomTimeSelect:q,DEFAULT_DARK_THEME_KEY:ol,DEFAULT_DARK_THEME_PALETTE:sl,DEFAULT_GET_PREFERRED_REPLACEMENT_STRING:ia,DEFAULT_LIGHT_THEME_KEY:ll,DEFAULT_PRELOAD_DATA_VARIABLES:ul,DH_CSS_VAR_NAME_REGEXP:cl,DH_VAR_PREFIX:dl,DateField:zo,DateInput:Ua,DatePicker:Xo,DateRangePicker:Qo,DateTimeInput:Ep,DebouncedModal:Aa,DebouncedSearchInput:mu,Dialog:Hr,DialogContainer:Jo,DialogTrigger:Wr,Disclosure:Zo,DisclosurePanel:es,DisclosureTitle:ts,Divider:Vr,DragUtils:bt,DraggableItemList:Cp,DropdownMenu:fi,EXTERNAL_THEME_KEY:pl,EditableItemList:cg,ErrorBoundary:gu,ErrorView:dg,FadeTransition:Gt,Flex:Br,Footer:ns,Form:Yr,GLOBAL_SHORTCUTS:mi,Grid:rs,Header:is,Heading:nt,HierarchicalCheckboxMenu:ve,ITEM_EMPTY_STRING_TEXT_VALUE:Tp,Icon:_e,IconActionButton:Fa,IllustratedMessage:Xr,Image:as,InfoModal:Na,InlineAlert:os,Item:Ge,ItemContent:jp,ItemList:ft,ItemListItem:vu,ItemTooltip:Ip,get KEY(){return yu},Keyboard:ss,LIST_VIEW_ROW_HEIGHTS:aa,LabeledValue:ls,Link:Qr,ListActionGroup:kp,ListActionMenu:_p,ListView:Xh,ListViewNormalized:_a,ListViewWrapper:rn,LoadingOverlay:fe,LoadingSpinner:qe,LogicButton:us,Logo:_h,get MODIFIER(){return bu},MSG_REQUEST_GET_THEME:fl,MSG_REQUEST_SET_THEME:ni,MaskedInput:en,Menu:Rp,MenuItem:Dp,MenuTrigger:cs,Meter:ds,Modal:Mt,ModalBody:Ut,ModalFooter:gi,ModalHeader:si,NON_WHITESPACE_REGEX:hl,NavTabList:Eg,NumberField:ps,Option:oa,PICKER_ITEM_HEIGHTS:Lp,PICKER_TOP_OFFSET:Fp,PRELOAD_TRANSPARENT_THEME_QUERY_PARAM:ml,Page:Ap,Picker:Np,PickerNormalized:$p,Popper:Vt,ProgressBar:fs,ProgressCircle:hs,Radio:ms,RadioGroup:gs,RandomAreaPlotAnimation:Wa,RangeCalendar:vs,RangeSlider:ys,SVG_ICON_MANUAL_COLOR_MAP:gl,SearchField:bs,SearchInput:vi,SearchableCombobox:Ug,Section:Mp,Select:yi,SelectValueList:sa,Shortcut:Pu,ShortcutRegistry:xu,SlideTransition:Up,Slider:Ps,SocketedButton:od,SpectrumButton:ct,SpectrumCheckbox:ut,SpectrumComboBox:Ft,SpectrumMenu:xs,SplitButtonGroup:wu,Stack:Bp,StatusLight:ws,SubmenuTrigger:Os,Switch:Ss,TABLE_ROW_HEIGHT:Wp,THEME_CACHE_LOCAL_STORAGE_KEY:vl,THEME_KEY_OVERRIDE_QUERY_PARAM:yl,TMP_CSS_PROP_PREFIX:bl,TRANSPARENT_PRELOAD_DATA_VARIABLES:Pl,TabList:Es,TabPanels:sh,TableViewEmptyState:Wg,Tabs:Cs,TagGroup:Ts,Text:tt,TextArea:js,TextField:Is,TextWithTooltip:Ha,ThemeContext:Ou,ThemeExport:pt,ThemePicker:kh,ThemeProvider:bi,TimeField:ks,TimeInput:Ie,TimeSlider:Kg,ToastContainer:_s,ToastNotification:Ya,ToastQueue:Rs,ToggleButton:Ds,Tooltip:De,UISwitch:Su,View:Ra,WHITESPACE_REGEX:xl,Well:Ls,XComponentMapContext:Eu,XComponentMapProvider:Cu,baseStyleProps:Fs,calculatePreloadStyleContent:wl,canHaveRef:Pi,colorValueStyle:X,createCssVariableResolver:Ol,createPreloadStyleElement:Sl,createXComponent:Tu,extractDistinctCssVariableExpressions:El,fillToLength:Hp,getActiveThemes:Cl,getDefaultBaseThemes:Tl,getDefaultSelectedThemeKey:jl,getExpressionRanges:Il,getItemKey:yt,getItemTextValue:Vp,getPositionOfSelectedItemElement:Yp,getThemeKey:kl,getThemeKeyOverride:_l,getThemePreloadData:Rl,isBaseThemeKey:Dl,isClassComponent:ju,isDHColorValue:Gp,isExternalThemeData:ri,isExternalThemeEnabled:Nt,isForwardRefComponentType:Iu,isItemElement:Kp,isItemElementWithDescription:qp,isItemOrSection:zp,isNormalizedItemsWithKeysList:Xp,isNormalizedSection:Qp,isPreloadTransparentTheme:Ll,isSectionElement:Jp,isValidColorVar:Fl,isWrappedComponent:xi,itemSelectionToStringSet:He,normalizeTooltipOptions:Qt,overrideSVGFillColors:Al,parseExternalThemeData:ei,preloadTheme:Nl,replaceSVGFillColor:$l,requestExternalThemeData:ti,resolveCssVariablesInRecord:oi,resolveCssVariablesInString:Ml,separateSpectrumProps:Ta,setThemePreloadData:Ul,themeDHDefault:Bl,themeDark:Wl,themeLight:Hl,trimTrailingMask:Zp,useExternalTheme:Ia,useOnChangeTrackUncontrolled:ef,usePickerItemScale:la,usePickerNormalizedProps:ta,usePickerProps:tf,usePickerScrollOnOpen:nf,useRenderNormalizedItem:ra,useSpectrumThemeProvider:Xt,useStaticItemInitialScrollPosition:rf,useStringifiedMultiSelection:ja,useStringifiedSelection:af,useStyleProps:As,useTheme:Je,useXComponent:ku,viewStyleProps:Ns,wrapIcon:of,wrapItemChildren:na,wrapPrimitiveWithText:sf},Symbol.toStringTag,{value:"Module"}));var Ga=U.memo(t=>{var{children:e,onError:n,widget:r}=t,[i,a]=Wi(r);return a!=null?(n==null||n(a),null):i==null?null:u.jsx(Bt.Provider,{value:i,children:e})});Ga.displayName="DeferredApiBootstrap";var on=c.createContext(null);function Ka(t){var[e,n]=c.useState({status:"loading"}),r=c.useContext(on);return c.useEffect(()=>{if(r==null){n({error:new Error("No ObjectFetchManager available in context"),status:"error"});return}return n(i=>i.status==="loading"?i:{status:"loading"}),r.subscribe(t,n)},[t,r]),e}function dr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function Qg(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){dr(a,r,i,o,s,"next",l)}function s(l){dr(a,r,i,o,s,"throw",l)}o(void 0)})}}var Ue=H.module("useWidget");function Jg(t){var[e,n]=c.useState(()=>({widget:null,error:null})),r=Ka(t);return c.useEffect(function(){Ue.debug("loadWidget",t);var{status:a}=r;if(a==="error"){n({widget:null,error:r.error});return}if(a==="loading"){n({widget:null,error:null});return}var{fetch:o}=r,s=!1;function l(){return d.apply(this,arguments)}function d(){return d=Qg(function*(){try{ze(o);var f=yield o();if(s){Ue.debug2("loadWidgetInternal cancelled",t,f),f.close(),"exportedObjects"in f&&f.exportedObjects.forEach(p=>{p.close()});return}Ue.debug("loadWidgetInternal done",t,f),n({widget:f,error:null})}catch(p){if(s)return;Ue.error("loadWidgetInternal error",t,p),n({widget:null,error:p??new Error("Null error")})}}),d.apply(this,arguments)}return l(),()=>{s=!0}},[t,r]),e}const Zg=Object.freeze(Object.defineProperty({__proto__:null,ApiBootstrap:Vl,ApiContext:Bt,ClientBootstrap:ui,ClientContext:Jl,DeferredApiBootstrap:Ga,DeferredApiContext:sd,ObjectFetchManagerContext:on,ObjectFetcherContext:wi,getVariableDescriptor:_u,isIdVariableDescriptor:Ru,isNameVariableDescriptor:Du,isVariableDescriptor:Lu,sanitizeVariableDescriptor:Oi,useApi:xe,useClient:Re,useDeferredApi:Wi,useObjectFetch:Ka,useObjectFetcher:Fu,useWidget:Jg},Symbol.toStringTag,{value:"Module"}));function ev(t){return function(n){var{children:r}=n;return u.jsx(Bt.Provider,{value:t,children:r})}}var qa="io.deephaven.message.LoginOptions.request",za="io.deephaven.message.SessionDetails.request",Xa="io.deephaven.broadcast",sn="io.deephaven.broadcast.Login",Qa="io.deephaven.broadcast.Logout";function Ja(t){return Wt(t)&&t.message===sn}function Za(t){return Wt(t)&&t.message===Qa}function tv(t,e,n){return(e=nv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nv(t){var e=rv(t,"string");return typeof e=="symbol"?e:e+""}function rv(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class eo extends Error{constructor(){super(...arguments),tv(this,"isNoConsolesError",!0)}}function to(t){return t.isNoConsolesError}function pr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function rt(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){pr(a,r,i,o,s,"next",l)}function s(l){pr(a,r,i,o,s,"throw",l)}o(void 0)})}}var Se=H.module("SessionUtils");function no(t,e,n){return Ot.apply(this,arguments)}function Ot(){return Ot=rt(function*(t,e,n){Se.info("Getting console types...");var r=yield e.getConsoleTypes();if(r.length===0)throw new eo("No console types available");Se.info("Available types:",r);var i=r[0];Se.info("Starting session with type",i);var a=yield e.startSession(i),o={type:i,id:Lt()};return Se.info("Console session established",o),{session:a,config:o,connection:e,details:n,dh:t}}),Ot.apply(this,arguments)}function iv(t,e,n){return Se.info("createCoreClient",e),new t.CoreClient(e,n)}function av(t){return t!=null&&typeof t=="object"}function ov(){return St.apply(this,arguments)}function St(){return St=rt(function*(){var t=yield Ht(za);if(!av(t))throw new Error("Unexpected session details response: ".concat(t));return t}),St.apply(this,arguments)}function sv(){return Et.apply(this,arguments)}function Et(){return Et=rt(function*(){var t=new URLSearchParams(window.location.search);switch(t.get("authProvider")){case"parent":return ov()}return{}}),Et.apply(this,arguments)}function lv(t,e,n){return Ct.apply(this,arguments)}function Ct(){return Ct=rt(function*(t,e,n){var r;try{r=yield no(t,e,n)}catch(i){if(!to(i))throw i}return r}),Ct.apply(this,arguments)}const uv=Object.freeze(Object.defineProperty({__proto__:null,BROADCAST_CHANNEL_NAME:Xa,BROADCAST_LOGIN_MESSAGE:sn,BROADCAST_LOGOUT_MESSAGE:Qa,BooleanColumnFormatter:ld,CharColumnFormatter:ud,DateTimeColumnFormatter:Au,DateUtils:cd,DecimalColumnFormatter:Nu,DefaultColumnFormatter:dd,FETCH_TIMEOUT:Zl,Formatter:Kt,FormatterUtils:vt,ITEM_KEY_PREFIX:pd,IntegerColumnFormatter:$u,LOGIN_OPTIONS_REQUEST:qa,NewTableColumnTypes:Mu,NoConsolesError:eo,SESSION_DETAILS_REQUEST:za,StringColumnFormatter:fd,TableColumnFormatter:Uu,TableUtils:hd,createComboboxFilterArgs:md,createCoreClient:iv,createFilterConditionFactory:qt,createFormatterFromSettings:gd,createKeyedItemKey:Hi,createNotNullOrEmptyFilterCondition:Vi,createOnTableUpdatedHandler:vd,createSearchTextFilter:Yi,createSelectedValuesFilter:zt,createSessionWrapper:no,createShowOnlyEmptyFilterCondition:Gi,createValueFilter:Ki,defaultRowDeserializer:yd,fetchVariableDefinition:eu,generateEmptyKeyedItems:bd,getColumnFormats:Pd,getDateTimeFormatterOptions:xd,getSessionDetails:sv,getSize:wd,getWindowParent:$t,isBroadcastLoginMessage:Ja,isBroadcastLogoutMessage:Za,isClosed:qi,isCustomColumnFormatDefined:Od,isNoConsolesError:to,isResponse:Yl,isSortDirection:Sd,loadSessionWrapper:lv,makeMessage:li,makeResponse:Gl,padFirstAndLastRow:Ed,requestParentResponse:Ht},Symbol.toStringTag,{value:"Module"}));function cv(t,e,n){return(e=dv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dv(t){var e=pv(t,"string");return typeof e=="symbol"?e:e+""}function pv(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class fv extends Error{constructor(){super(...arguments),cv(this,"isColumnNameError",!0)}}function hv(t,e,n){return(e=mv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mv(t){var e=gv(t,"string");return typeof e=="symbol"?e:e+""}function gv(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class vv extends Error{constructor(){super(...arguments),hv(this,"isTableDisconnectError",!0)}}var Be=H.module("useTable"),ro=(t,e,n,r)=>{var i=xe(),[a,o]=c.useState(void 0),[s,l]=c.useState([]),[d,f]=c.useState(null),[p,h]=c.useState(null);c.useEffect(()=>{if(r===void 0){o(t==null?void 0:t.columns),f(null);return}try{o(t==null?void 0:t.findColumns(r)),f(null)}catch(v){Be.error("Column not found",v,r),f(new fv("Invalid columnNames argument"))}},[t,r]),c.useEffect(()=>{if(!a||!t){Be.debug2("Table or column not initialized, skip viewport update.");return}Be.debug2("Setting viewport",e,n),t.setViewport(e,n,a)},[a,t,e,n]);var m=c.useCallback(v=>{var{detail:b}=v;if(!a){Be.error("Columns not initialized.");return}var P=a.map(T=>b.rows.map(j=>j.get(T)));l(P)},[a]),g=c.useCallback(()=>{h(new vv("Table disconnected"))},[]),x=c.useCallback(()=>{h(null)},[]);return Ve(t,i.Table.EVENT_UPDATED,m),Ve(t,i.Table.EVENT_DISCONNECT,g),Ve(t,i.Table.EVENT_RECONNECT,x),{columns:a,data:s,error:p??d}},io=(t,e,n,r)=>{var i=c.useMemo(()=>[r],[r]),{columns:a=[],data:o=[],error:s}=ro(t,e,n,i);return{column:a[0],data:o[0],error:s}};function fr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function yv(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){fr(a,r,i,o,s,"next",l)}function s(l){fr(a,r,i,o,s,"throw",l)}o(void 0)})}}var te=H.module("TableInput"),at=250;function ln(t){var e,n,{className:r=void 0,columnName:i,settings:a,defaultValue:o=[],isInvalid:s=!1,onChange:l=()=>!1,onBlur:d=()=>!1,table:f}=t,p=c.useRef(null),h=xe(),m=c.useMemo(()=>{var C=vt.getColumnFormats(a),R=vt.getDateTimeFormatterOptions(a),{defaultDecimalFormatOptions:D={},defaultIntegerFormatOptions:B={}}=a;return new Kt(h,C,R,D,B)},[h,a]),[g,x]=c.useState(""),[v,b]=c.useState(new Set(o)),[P,T]=c.useState(),j=c.useRef(null),y=Math.min((e=P==null?void 0:P.size)!==null&&e!==void 0?e:0,at),{column:S,data:I,error:k}=io(P,0,at-1,i),F=c.useCallback(C=>S?m.getFormattedString(C,S.type,S.name):"".concat(C),[S,m]),[L,V]=c.useMemo(()=>{var C=new Set(v),R=[];if(I==null)return[R,null];if(I.forEach(B=>{var re="".concat(B),hn=v.has(re);hn&&C.delete(re),R.push({value:re,displayValue:F(B),isSelected:hn})}),C.size>0){te.debug2("Selection has items that are missing from the viewport");var D=new Set(v);return Array.from(C).forEach(B=>{D.delete(B)}),[R,D]}return[R,null]},[I,v,F]);c.useEffect(()=>{V!==null&&(b(V),l(Array.from(V)))},[l,V]);var E=c.useCallback(function(){var C=yv(function*(R){try{var D=yield R;te.debug("Table resolved",D),T(D)}catch(B){if(pe.isCanceled(B))return;te.error(B)}});return function(R){return C.apply(this,arguments)}}(),[]);c.useEffect(()=>{var C=pe.makeCancelable(f);return E(C),()=>{te.debug2("Cancel table promise"),C.cancel()}},[f,E]);var w=c.useCallback(C=>{var{value:R}=C.target;x(R);var D=L.findIndex(re=>re.displayValue.includes(R));if(D>-1){var B;te.debug2("Found ".concat(R," at index ").concat(D)),(B=j.current)===null||B===void 0||B.scrollIntoView(D)}else te.debug2("".concat(R," not found"))},[L,j]),O=c.useCallback(C=>{if(te.debug("handleSelect",C),C>=L.length){te.error("Invalid index",C);return}var R=L[C].value,D=new Set(v);L[C].isSelected?D.delete(R):D.add(R),b(D),l(Array.from(D))},[l,L,v]),_=c.useCallback(()=>{var C=L.map(D=>D.value),R=new Set(C);b(R),l(C)},[L,l]),N=c.useCallback(()=>{b(new Set),l([])},[l]),W=c.useCallback(()=>{},[]),Y=c.useCallback(C=>{var R,{relatedTarget:D}=C;te.debug("handleChildBlur",D,D instanceof HTMLElement,p.current,(R=p.current)===null||R===void 0?void 0:R.contains(D)),(!D||p.current&&D instanceof HTMLElement&&!p.current.contains(D))&&d()},[d]),K=L.length===0;return u.jsxs("div",{ref:p,className:A("table-input-container d-flex flex-column position-relative",r),children:[u.jsx(vi,{disabled:!!k||K,value:g,placeholder:"Search",onChange:w,className:"mb-2 d-flex",onBlur:Y}),u.jsx(sa,{className:"table-input-list",disabled:P===void 0||K,isInvalid:s,items:K?[{value:"Empty",isSelected:!1}]:L,itemCount:y,offset:0,onSelect:O,onViewportChange:W,ref:j,onBlur:Y}),P&&u.jsxs("div",{className:"meta-row",children:[u.jsx("div",{className:"d-flex align-items-center text-muted small",children:P!=null&&P.size>y&&u.jsxs(u.Fragment,{children:["Table is too large, showing the first ",at," items."]})}),u.jsxs("div",{children:[u.jsx("button",{type:"button",className:"btn btn-link",onBlur:Y,onClick:_,children:"Select All"}),u.jsx("button",{type:"button",className:"btn btn-link mr-a",onBlur:Y,onClick:N,children:"Clear"})]})]}),P==null||k&&u.jsx("div",{className:"h-100 w-100 position-absolute",children:u.jsx(fe,{isLoaded:P!=null,isLoading:P==null&&k==null,errorMessage:(n=k==null?void 0:k.message)!==null&&n!==void 0?n:null})})]})}ln.displayName="TableInput";ln.defaultProps={isInvalid:!1,className:void 0};var bv=["onInputChange","onSearchTextChange"];function hr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function mr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hr(Object(n),!0).forEach(function(r){Pv(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Pv(t,e,n){return(e=xv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xv(t){var e=wv(t,"string");return typeof e=="symbol"?e:e+""}function wv(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ov(t,e){if(t==null)return{};var n,r,i=Sv(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Sv(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Ev(t){var e=lf(t),{onInputChange:n,onSearchTextChange:r}=e,i=Ov(e,bv),a=c.useRef(!1),o=c.useRef(""),s=c.useCallback(d=>{n==null||n(d),a.current?r(d):(r(""),o.current=d)},[n,r]),l=c.useCallback((d,f)=>{var p;(p=i.onOpenChange)===null||p===void 0||p.call(i,d),d?f==="input"&&r(o.current):r(""),a.current=d},[r,i]);return u.jsx(ka,mr(mr({},i),{},{onInputChange:s,onOpenChange:l}))}var Cv=["table","keyColumn","labelColumn","iconColumn","settings"];function gr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function vr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gr(Object(n),!0).forEach(function(r){Tv(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Tv(t,e,n){return(e=jv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jv(t){var e=Iv(t,"string");return typeof e=="symbol"?e:e+""}function Iv(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function kv(t,e){if(t==null)return{};var n,r,i=_v(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function _v(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Rv(t){var e,{table:n,keyColumn:r,labelColumn:i,iconColumn:a,settings:o}=t,s=kv(t,Cv),{scale:l}=Xt(),d=aa[(e=s.density)!==null&&e!==void 0?e:"regular"][l],{getFormattedString:f}=ua(o),p=uf({table:n,iconColumnName:a,keyColumnName:r,labelColumnName:i,formatValue:f}),{viewportData:h,onScroll:m}=tn({reuseItemsOnTableResize:!0,table:n,itemHeight:d,deserializeRow:p});return u.jsx(_a,vr(vr({},s),{},{normalizedItems:h.items,showItemIcons:a!=null,onScroll:m}))}function Dv(t){return typeof t=="object"&&t!=null&&"equals"in t&&typeof t.equals=="function"}function Lv(t){return"".concat(t)}function Fv(t){var{column:e,table:n,filter:r=Bu,onChange:i,selectedValue:a,disabled:o,className:s,formatValue:l=Lv,maxSize:d=1e3}=t,f=xe(),[p,h]=c.useState([]);c.useEffect(()=>{if(n==null){h([]);return}var v=e??n.columns[0];n.applyFilter(r);var b=n.setViewport(0,d,[v]);return b.addEventListener(f.Table.EVENT_UPDATED,P=>{var{detail:T}=P,j=T.rows.map(y=>{var S;return(S=y.get(v))!==null&&S!==void 0?S:null});h(j)}),()=>{b.close()}},[e,f,r,d,n]);var m=c.useMemo(()=>a===void 0?[void 0,...p]:p,[a,p]),g=c.useMemo(()=>m.findIndex(v=>v===a||Dv(v)&&v.equals(a)),[a,m]),x=c.useCallback(v=>{i(m[v])},[i,m]);return u.jsx(yi,{className:s,value:g,onChange:x,disabled:o,children:m.map((v,b)=>u.jsx(oa,{value:b,children:l(v)},"".concat(b)))})}var yr=H.module("useBroadcastChannel");function un(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ze,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xa,n=c.useMemo(()=>new BroadcastChannel(e),[e]);return c.useEffect(()=>()=>{n.close()},[n]),c.useEffect(()=>{function r(i){var{data:a}=i;if(!Wt(a)){yr.debug("Ignoring non-deephaven message",a);return}yr.debug("event received",a),t(i)}return n.addEventListener("message",r),()=>{n.removeEventListener("message",r)}},[n,t]),n}function cn(t,e){var n=c.useCallback(r=>{Ja(r.data)?t==null||t(r.data):Za(r.data)&&(e==null||e(r.data))},[t,e]);un(n)}function Av(t,e,n,r){var i=ce(),[a,o]=c.useState(""),{value:s}=Le(a,n),l=c.useCallback(h=>{o(h.trim())},[]),{data:d,isLoading:f}=Pe(i.doesColumnValueExist,[t,e,s,r]),p=f||a!==s?null:d;return{valueTrimmed:a,valueTrimmedDebounced:s,valueExists:p,trimAndUpdateValue:l}}var br=H.module("useDebouncedViewportSearch"),Nv=200;function $v(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Nv,r=ce(),{table:i,applyFiltersAndRefresh:a}=t,o=c.useMemo(()=>Ee(s=>{if(br.debug("Applying debounced searchText '".concat(s,"'")),i!=null){var l=s.trim();if(l===""){a([]);return}var d=i.findColumn(e),f=r.makeFilterValue(d.type,l),p=[d.filter().contains(f)];a(p)}},n),[a,e,n,i,r]);return c.useEffect(()=>()=>{br.debug("Cancelling debounced search function"),o.cancel()},[o]),o}var ao=300;function Mv(t){var{viewportData:e,columnName:n,shouldSelectAllOnNoSelection:r,mapItemToValue:i}=t,a=ce(),o=Oa(e,i,Hi),{value:s}=Le(o,ao),l=xa(s,va);return c.useMemo(()=>zt(a,n,l.selection,r,l.isInverted),[n,l,r,a])}function Uv(t,e,n,r){var i=c.useRef("");return i.current=n,c.useMemo(()=>{var a=t.length>0&&t[0].item==null;return!a&&r!=null&&(i.current===""||r.toLowerCase().includes(i.current.toLowerCase()))?[{key:r,item:{[e]:r}},...t]:t},[r,e,t])}function Pr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function Bv(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Pr(a,r,i,o,s,"next",l)}function s(l){Pr(a,r,i,o,s,"throw",l)}o(void 0)})}}function Wv(t){var{table:e,columnName:n,defaultValue:r,itemHeight:i,topOffset:a=0,value:o}=t;return c.useCallback(Bv(function*(){if(e==null||o===""||o===r)return a;var s=e.findColumn(n),l=yield e.seekRow(0,s,"String",o),d=r==null?0:1;return(l+d)*i+a}),[n,r,i,e,a,o])}function Hv(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"or",n=ce(),r=c.useMemo(()=>Vi(n),[n]);return c.useMemo(()=>qt(t,r,e),[t,e,r])}function oo(t){c.useEffect(()=>()=>{t!=null&&(qi(t)||t.close())},[t])}function Vv(t){var{maybeTable:e,columnName:n,mapItemToValue:r,filterConditionFactories:i=[],trimSearchText:a=!1,timeZone:o}=t,{itemHeight:s}=la(),l=ce(),[d,f]=c.useState(""),[p,h]=c.useState(""),m=c.useCallback(C=>{h(a?C.trim():C)},[a]),g=c.useMemo(()=>a?d.trim():d,[d,a]),[x,v]=c.useState(null),[b,P]=c.useState(()=>new Map),{data:T,isLoading:j}=Pe(l.doesColumnValueExist,[e,n,p,!1]),{isDebouncing:y}=Le(p,xn),S=y||j?null:T,I=c.useMemo(()=>Yi(l,n,p,o),[p,n,l,o]),k=c.useMemo(()=>zt(l,n,new Set(b.keys()),!1,!0),[n,b,l]),{data:F}=Pe(l.createDistinctSortedColumnTable,[e,n,"asc",...i]);oo(F);var L=tn({table:F,itemHeight:s,viewportSize:cf,viewportPadding:df}),V=g.length>0&&L.size===0,E=b.has(g),w=Ce(m,xn),O=c.useCallback(C=>{f(C),w(C)},[w]),_=Ce(v,0),N=c.useCallback(C=>{if(f(""),m(""),v(C),_(null),C!=null){var R=L.viewportData.findItem(C);if(R!=null){var D=r(R);P(B=>{var re=new Map(B);return re.set(D,{value:D}),re})}}},[m,_,L.viewportData,r]),W=c.useCallback(C=>{P(R=>{if(C.size===0)return R;var D=new Map(R);for(var B of C)D.set(B,{value:B});return D})},[]),Y=c.useCallback(C=>{P(R=>{if(C==="all")return new Map;var D=new Map(R);for(var B of C)D.delete(B);return D})},[]),K=ca(L.table,I,k);return da(L,K),c.useMemo(()=>({list:L,hasSearchTextWithZeroResults:V,searchText:d,searchTextExists:S,searchTextIsInSelectedValues:E,selectedKey:x,selectedValueMap:b,onSearchTextChange:O,onSelectKey:N,onAddValues:W,onRemoveValues:Y}),[V,L,W,Y,O,N,d,S,E,x,b])}function xr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function Yv(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){xr(a,r,i,o,s,"next",l)}function s(l){xr(a,r,i,o,s,"throw",l)}o(void 0)})}}function Gv(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=c.useCallback(Yv(function*(){var d;return(d=t==null?void 0:t.selectDistinct(t.findColumns(n)))!==null&&d!==void 0?d:null}),[t,...n]),{data:a,error:o,isError:s,isLoading:l}=Pe(i,[]);return c.useEffect(()=>()=>{a==null||a.close()},[a]),{distinctTable:a,error:o,isError:s,isLoading:l}}function Kv(t,e){var n=ce(),r=c.useMemo(()=>Gi(n,t),[t,n]);return c.useMemo(()=>qt(e,r),[e,r])}function qv(t,e,n){var r=ce();return c.useMemo(()=>Ki(r,t,e,n),[t,n,r,e])}const zv=Object.freeze(Object.defineProperty({__proto__:null,ComboBox:Ev,DEBOUNCE_MS:ao,ListView:Rv,Picker:pf,TableDropdown:Fv,TableInput:ln,makeApiContextWrapper:ev,useBroadcastChannel:un,useBroadcastLoginListener:cn,useCheckIfExistsValue:Av,useDebouncedViewportSearch:$v,useDebouncedViewportSelectionFilter:Mv,useFilterConditionFactories:ca,useFilteredItemsWithDefaultValue:Uv,useFormatter:ua,useGetItemIndexByValue:ff,useGetItemPosition:Wv,useInitializeViewportData:hf,useNotNullOrEmptyFilter:Hv,usePickerWithSelectedValues:Vv,useSearchableViewportData:mf,useSelectDistinctTable:Gv,useSetPaddedViewportCallback:gf,useShowOnlyEmptyFilter:Kv,useTable:ro,useTableClose:oo,useTableColumn:io,useTableListener:Ve,useTableSize:vf,useTableUtils:ce,useValueFilter:qv,useViewportData:tn,useViewportFilter:da},Symbol.toStringTag,{value:"Module"}));var so=c.createContext(!1);function Xv(t){var{fontClassNames:e=["fira-sans-regular","fira-sans-semibold","fira-mono"],children:n}=t,[r,i]=c.useState(!1);return c.useEffect(function(){document.fonts.ready.then(()=>{i(!0)})},[]),u.jsxs(u.Fragment,{children:[u.jsx(so.Provider,{value:r,children:n}),u.jsx("div",{id:"preload-fonts",style:{visibility:"hidden",position:"absolute",top:-1e4},children:e.map(a=>u.jsx("p",{className:a,children:"preload"},a))})]})}function lo(t){var{isEnabled:e,isPending:n,themeData:r}=Ia();return c.useMemo(()=>e?n?null:r?[r]:[]:t==null?null:Si(t),[e,n,r,t])}function Qv(t){var{fetch:e,type:n}=t,r=Ei(),i=c.useMemo(()=>[...r.values()].filter(Ci).find(o=>[o.supportedTypes].flat().includes(n)),[r,n]);if(i!=null){var a=i.component;return u.jsx(a,{fetch:e})}throw new Error("Unknown widget type '".concat(n,"'"))}const Jv=Object.freeze(Object.defineProperty({__proto__:null,PersistentStateContext:Cd,PersistentStateProvider:Td,PluginType:Ti,PluginsContext:et,WidgetView:Qv,getDashboardPlugins:tu,getIconForPlugin:Wu,getThemeDataFromPlugins:Si,isAuthPlugin:ji,isDashboardPlugin:Hu,isLegacyAuthPlugin:mt,isLegacyDashboardPlugin:Vu,isLegacyPlugin:Ii,isLegacyTablePlugin:Yu,isPlugin:gt,isTablePlugin:Gu,isThemePlugin:Ku,isWidgetPlugin:Ci,pluginSupportsType:qu,useCustomThemes:lo,useDashboardPlugins:nu,usePersistentState:jd,usePlugins:Ei},Symbol.toStringTag,{value:"Module"}));function Zv(t){if(t==null)return!1;var e=t;return e.Component!==void 0&&typeof e.isAvailable=="function"}var uo="io.deephaven.auth.AnonymousAuthenticationHandler",ey="io.deephaven.authentication.psk.PskAuthenticationHandler";function wr(t,e,n){return(e=ty(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ty(t){var e=ny(t,"string");return typeof e=="symbol"?e:e+""}function ny(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class co extends Error{constructor(){super(...arguments),wr(this,"name","AuthenticationError"),wr(this,"isAuthenticationError",!0)}}function Or(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function ry(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Or(a,r,i,o,s,"next",l)}function s(l){Or(a,r,i,o,s,"throw",l)}o(void 0)})}}var Sr=H.module("AuthPluginBase");function dn(t){var{children:e,getLoginOptions:n}=t,r=Re(),[i,a]=c.useState(),[o,s]=c.useState(!1);return c.useEffect(()=>{var l=!1;function d(){if(l)throw new ki("Login canceled.")}function f(){return p.apply(this,arguments)}function p(){return p=ry(function*(){try{var h=yield n();d(),Sr.info("Logging in..."),yield r.login(h),d(),s(!0)}catch(x){if(!l){var m;Sr.error("Unable to login:",x);var g=(m=Te(x))!==null&&m!==void 0?m:"Unable to login. Verify credentials.";a(new co(g)),s(!1)}}}),p.apply(this,arguments)}return f(),()=>{l=!0}},[r,n]),o?u.jsx(u.Fragment,{children:e}):u.jsx(fe,{"data-testid":"auth-base-loading",isLoading:i==null,isLoaded:!1,errorMessage:Te(i)})}var iy={canLogout:!1};function ay(t){var{children:e}=t,n=xe(),r=c.useCallback(()=>({type:n.CoreClient.LOGIN_TYPE_ANONYMOUS}),[n]);return u.jsx(dn,{getLoginOptions:r,children:u.jsx(Qe.Provider,{value:iy,children:e})})}var po={Component:ay,isAvailable:t=>t.includes(uo)};function Er(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function oy(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Er(a,r,i,o,s,"next",l)}function s(l){Er(a,r,i,o,s,"throw",l)}o(void 0)})}}var sy=H.module("AuthPluginParent"),ly={canLogout:!1};function uy(t){return t!=null&&typeof t.type=="string"}function cy(){return Tt.apply(this,arguments)}function Tt(){return Tt=oy(function*(){sy.info("Logging in by delegating to parent window...");var t=yield Ht(qa);if(!uy(t))throw new Error("Unexpected login options response: ".concat(t));return t}),Tt.apply(this,arguments)}function dy(){var t;return(t=new URLSearchParams(window.location.search).get("authProvider"))!==null&&t!==void 0?t:""}function py(t){var{children:e}=t;return u.jsx(dn,{getLoginOptions:cy,children:u.jsx(Qe.Provider,{value:ly,children:e})})}var fo={Component:py,isAvailable:()=>$t()!=null&&dy()==="parent"};function ho(t){var{children:e,errorMessage:n,isLoggingIn:r=!1,onSubmit:i}=t;return u.jsxs("form",{className:"login-form",onSubmit:a=>{a.preventDefault(),a.stopPropagation(),i==null||i(a)},children:[u.jsx("div",{className:"flex-spacer"}),u.jsxs("div",{className:"flex-wrapper",children:[u.jsx("fieldset",{disabled:r,className:"container-fluid",children:e}),u.jsx("div",{className:"form-group d-flex justify-content-end align-items-center mb-0",children:u.jsxs("button",{type:"submit",className:A("btn btn-primary",{"btn-spinner":r},{"btn-cancelable":r}),"data-testid":"btn-login",children:[r&&u.jsxs("span",{children:[u.jsx(qe,{className:"mr-2 loading-spinner-vertical-align"}),u.jsx("span",{className:"btn-normal-content",children:"Logging in"}),u.jsx("span",{className:"btn-hover-content",children:"Cancel"})]}),!r&&"Login"]})})]}),u.jsx("div",{className:"flex-spacer",children:n!=null&&u.jsx("p",{className:"error-message mb-0",role:"alert",children:"".concat(n)})})]})}function mo(t){var{children:e,logoPath:n="./logo.png"}=t;return u.jsxs("div",{className:"login-container",children:[u.jsx(Wa,{}),u.jsxs("div",{className:"login-box",children:[u.jsx("div",{className:"logo",children:u.jsx("img",{src:n,alt:"Deephaven Data Labs"})}),e,u.jsxs("p",{className:"footer",children:["© 2016-",new Date().getFullYear()," Deephaven Data Labs LLC. Patent Pending."]})]})]})}function Cr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function ot(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Cr(a,r,i,o,s,"next",l)}function s(l){Cr(a,r,i,o,s,"throw",l)}o(void 0)})}}var jt="io.deephaven.authentication.psk.PskAuthenticationHandler",go="psk",It="io.deephaven.web.client.auth.psk.token",ge=H.module("AuthPluginPsk");function fy(){return new URLSearchParams(window.location.search).get(go)}function hy(){ge.debug2("clearWindowToken");var t=new URL(window.location.href);t.searchParams.delete(go),window.history.replaceState(null,"",t.href)}function Tr(){var t;return(t=dt.get(It))!==null&&t!==void 0?t:null}function st(t){ge.debug2("Storing token in cookie",t),t!=null?dt.set(It,t,{secure:!0,sameSite:"strict"}):dt.remove(It)}function my(t){var{children:e,logoPath:n}=t,r=Re(),i=c.useRef(null),a=c.useRef(null),[o,s]=c.useState(),[l,d]=c.useState(!1),[f,p]=c.useState(!1),[h,m]=c.useState(!1),[g,x]=c.useState(""),v=c.useCallback(function(){var y=ot(function*(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;ge.info("Logging in..."),m(!0);var k=null;try{if(k=r.login({type:jt,token:S}),a.current=k,yield k,ge.info("Logged in successfully"),a.current!==k)return;st(S),p(!0)}catch(V){if(a.current!==k)return;if(d(!0),I){var F;ge.error("Unable to login",V);var L=(F=Te(V))!==null&&F!==void 0?F:"Unable to login: Verify credentials.";s(new co(L))}}m(!1)});return function(S){return y.apply(this,arguments)}}(),[r]),b=c.useCallback(()=>{a.current=null,m(!1)},[]),P=c.useCallback(ot(function*(){ge.debug("onLogin");var y=Tr();f||h||y==null||v(y,!1)}),[f,h,v]),T=c.useCallback(()=>{st(null)},[]);cn(P,T),c.useEffect(()=>{var y=!1;function S(){return I.apply(this,arguments)}function I(){return I=ot(function*(){var k,F=(k=fy())!==null&&k!==void 0?k:Tr();if(hy(),F==null){d(!0);return}m(!0);try{yield r.login({type:jt,token:F}),y||(st(F),p(!0),m(!1))}catch{y||(d(!0),m(!1))}}),I.apply(this,arguments)}return S(),()=>{y=!0}},[r]);var j=c.useCallback(()=>{h?b():v(g)},[b,h,v,g]);return c.useEffect(function(){var S;(S=i.current)===null||S===void 0||S.focus()},[i,l]),u.jsxs(u.Fragment,{children:[f&&e,l&&u.jsx(Gt,{in:!f,mountOnEnter:!0,unmountOnExit:!0,children:u.jsx(mo,{logoPath:n,children:u.jsx(ho,{errorMessage:Te(o),isLoggingIn:h,onSubmit:j,children:u.jsxs("div",{className:"form-group",children:[u.jsx("label",{htmlFor:"auth-psk-token-input",children:"Token"}),u.jsx("input",{id:"auth-psk-token-input",name:"token",className:"input-token form-control",type:"text",autoComplete:"username",autoCapitalize:"none",autoCorrect:"off",spellCheck:"false",ref:i,value:g,onChange:y=>{s(void 0),x(y.target.value)}})]})})})}),u.jsx(fe,{"data-testid":"auth-psk-loading",isLoaded:f||l,isLoading:!f&&!l})]})}var vo={Component:my,isAvailable:t=>t.includes(jt)};function jr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function lt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?jr(Object(n),!0).forEach(function(r){gy(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function gy(t,e,n){return(e=vy(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vy(t){var e=yy(t,"string");return typeof e=="symbol"?e:e+""}function yy(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var by=H.module("UserUtils");function yo(t,e){return t.get("internal.webClient.appInit.".concat(e))}function bo(t){var e,n,r,i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};function s(v){return yo(t,v)}function l(v,b){var P=s(v);return P==="true"?!0:P==="false"?!1:(P!==void 0&&by.warn("Unexpected value for ".concat(v,": ").concat(P)),b)}var d=(e=s("name"))!==null&&e!==void 0?e:"",f=(n=s("operateAs"))!==null&&n!==void 0?n:d,p=(r=(i=s("groups"))===null||i===void 0?void 0:i.split(","))!==null&&r!==void 0?r:[],h=l("canCopy",!0),m=l("canDownloadCsv",!0),g=l("canUsePanels",!0),x=l("canLogout",!0);return lt(lt({name:d,operateAs:f,groups:p},a),{},{permissions:lt({canUsePanels:g,canCopy:h,canDownloadCsv:m,canLogout:x},o)})}const Py=Object.freeze(Object.defineProperty({__proto__:null,AUTH_HANDLER_TYPE_ANONYMOUS:uo,AUTH_HANDLER_TYPE_PSK:ey,AuthPluginAnonymous:po,AuthPluginBase:dn,AuthPluginParent:fo,AuthPluginPsk:vo,Login:mo,LoginForm:ho,UserContext:ci,UserOverrideContext:di,UserPermissionsOverrideContext:Qe,getAppInitValue:yo,getUserFromConfig:bo,isAuthPlugin:Zv},Symbol.toStringTag,{value:"Module"}));function ye(t,e,n){return(e=xy(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xy(t){var e=wy(t,"string");return typeof e=="symbol"?e:e+""}function wy(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class M extends zi{static get theme(){return M._theme==null&&(M._theme=_i()),M._theme}static makeRandomSeries(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:100,i=[],a=[],o=[],s=[],l=new Date("2018-06-01"),d=0;d<r;d+=1){var f=new Date(l.getFullYear(),l.getMonth(),l.getDate()+d-r);i.push("".concat(f.getFullYear(),"-").concat(f.getMonth()+1,"-").concat(f.getDate()));var p=(Math.sin(d/r*e)*r/3+Math.cos(d*.2)*r/6+Math.sin(d*.5)*r/10+M.random()*r/5+d*M.smoothing)*n;p=Math.round(p*100)/100,a.push(p),s.push(40+d*M.smoothing),o.push(Math.sin(d/r*e)*r/3+M.random()*r/10+d*M.smoothing)}return{x:i,y:a,s:o,l:s}}static makeScatter(e){return{name:"SCTR",x:e.x,y:e.y,type:"scatter",mode:"markers",hoverinfo:"skip",marker:{size:5}}}static makeArea(e){return{name:"AREA",x:e.x,y:e.s,type:"scatter",mode:"line",fill:"tozeroy",hoverinfo:"all",line:{width:3}}}static makeTrendline(e){return{name:"Trendline <br>R<sup>2</sup> = 0.91",x:e.x,y:e.l,type:"scatter",mode:"line",hoverinfo:"skip",line:{width:3,dash:"dot"}}}static makeErrorBand(e){for(var n=[],r=[],i=0;i<e.y.length;i+=1){var a=e.y[i];n[i]=Math.round((a+18)*100)/100,r[i]=Math.round((a-18)*100)/100}var o=n.concat(r.reverse());return{name:"error",x:e.x.concat(e.x.slice().reverse()),y:o,type:"scatter",mode:"line",hoverinfo:"skip",fill:"toself",line:{width:0,color:M.theme.error_band_line_color,shape:"spline"}}}static makeLine(e){return{name:"LINE",x:e.x,y:e.y,type:"scatter",mode:"line",hoverinfo:"x+y+text+name",line:{width:3}}}static makeRandomData(){var e=M.makeRandomSeries(6),n=M.makeArea(e),r=M.makeTrendline(e),i=M.makeRandomSeries(2),a=M.makeLine(i),o=M.makeErrorBand(i);return[n,r,a,o]}static makeDefaultLayout(e){var n={template:new Xi(e).makeDefaultTemplate(M.theme)};return n.title="Chart",n.xaxis={title:"Datestamp"},n.yaxis={title:"Price"},n}constructor(e){var{data:n=M.makeRandomData(),layout:r=M.makeDefaultLayout(e),filterFields:i=[]}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(e),ye(this,"data",void 0),ye(this,"filterFields",void 0),ye(this,"layout",void 0),this.data=n,this.layout=r,this.filterFields=i}getData(){return this.data}getLayout(){return this.layout}getFilterColumnMap(){for(var e=new Map,n=0;n<this.filterFields.length;n+=1){var r=this.filterFields[n],i="java.lang.String";e.set(r,{name:r,type:i})}return e}isFilterRequired(){return this.filterFields.length>0}setFilter(){this.fireUpdate(this.data)}}ye(M,"random",Math.random.bind(Math));ye(M,"smoothing",1.5);ye(M,"_theme",void 0);const Oy=Object.freeze(Object.defineProperty({__proto__:null,Chart:Id,ChartModel:zi,ChartModelFactory:kd,ChartThemeContext:zu,ChartThemeProvider:Ri,ChartUtils:Xi,DownsamplingError:op,FigureChartModel:_d,MockChartModel:M,Plot:Xu,defaultChartTheme:_i,isFigureChartModel:Rd,isWebGLSupported:Dd,useChartTheme:Qu},Symbol.toStringTag,{value:"Module"}));function Sy(t){var{dashboardProps:e,componentName:n,component:r,supportedTypes:i,hydrate:a,dehydrate:o}=t,{id:s,layout:l,registerComponent:d}=e,f=c.useCallback(p=>{var{dragEvent:h,panelId:m=Lt(),widget:g}=p,{name:x,type:v}=g,b=v!=null&&(Array.isArray(i)&&i.includes(v)||v===i);if(b){var P={localDashboardId:s,metadata:g};a!=null&&(P=a(P,s));var T={type:"react-component",component:n,props:P,title:x??void 0,id:m},{root:j}=l;Di.openComponent({root:j,config:T,dragEvent:h})}},[n,a,s,l,i]);Qi(d,r,a,o),Li(l.eventHub,f)}function Ey(t,e){var n=$s(),r=Ms(a=>Fi(a,t,e)),i=c.useCallback(a=>n(Ai(t,e,a)),[t,e,n]);return[r,i]}const Cy=Object.freeze(Object.defineProperty({__proto__:null,BasePanel:yn,CLOSE_DASHBOARD:Ju,CREATE_DASHBOARD:Zu,DEFAULT_DASHBOARD_ID:ec,DH_ID_PROP:tc,Dashboard:gn,DashboardIdContext:nc,DashboardLayout:rc,DashboardUtils:ic,DhIdContext:ac,GLPropTypes:oc,LayoutManagerContext:sc,LayoutUtils:Di,LazyDashboard:ru,Panel:yn,PanelErrorBoundary:lc,PanelEvent:uc,PanelManager:cc,SET_DASHBOARD_DATA:dc,TabEvent:pc,assertIsDashboardPluginProps:Ld,canHaveRef:Pi,default:gn,dehydrate:fc,emitCloseDashboard:hc,emitCreateDashboard:mc,emitPanelOpen:gc,getAllDashboardsData:vc,getClosedPanelsForDashboard:yc,getDashboardData:bc,getOpenedPanelMapForDashboard:Pc,getPluginDataForDashboard:Fi,getPluginDataMapForDashboard:xc,hydrate:wc,isDashboardPluginProps:Fd,isWrappedComponent:xi,listenForCloseDashboard:Oc,listenForCreateDashboard:Sc,listenForPanelOpen:Ec,reducers:Cc,setDashboardData:Tc,setDashboardPluginData:Ai,updateDashboardData:jc,useAppDispatch:Ic,useAppSelector:Ni,useAppStore:kc,useCloseDashboardListener:_c,useCreateDashboardListener:Rc,useDashboardId:Dc,useDashboardPanel:Sy,useDashboardPluginData:Ey,useDhId:Lc,useLayoutManager:Ad,useListener:Fc,usePanelOpenListener:Li,usePanelRegistration:Qi},Symbol.toStringTag,{value:"Module"}));function Po(t){var{children:e}=t,{activeThemes:n}=Je();return c.useEffect(function(){n!=null&&$i.initTheme()},[n]),u.jsx(u.Fragment,{children:e})}var Ty={$schema:"http://json-schema.org/draft-07/schema#",title:"Options",type:"object",properties:{"allowed-confusables":{description:'A list of allowed "confusable" Unicode characters to ignore when enforcing `RUF001`, `RUF002`, and `RUF003`.',deprecated:!0,type:["array","null"],items:{type:"string",maxLength:1,minLength:1}},builtins:{description:"A list of builtins to treat as defined references, in addition to the system builtins.",type:["array","null"],items:{type:"string"}},"cache-dir":{description:"A path to the cache directory.\n\nBy default, Ruff stores cache results in a `.ruff_cache` directory in the current project root.\n\nHowever, Ruff will also respect the `RUFF_CACHE_DIR` environment variable, which takes precedence over that default.\n\nThis setting will override even the `RUFF_CACHE_DIR` environment variable, if set.",type:["string","null"]},"dummy-variable-rgx":{description:'A regular expression used to identify "dummy" variables, or those which should be ignored when enforcing (e.g.) unused-variable rules. The default expression matches `_`, `__`, and `_var`, but not `_var_`.',deprecated:!0,type:["string","null"]},exclude:{description:"A list of file patterns to exclude from formatting and linting.\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory named `.mypy_cache` in the tree), `foo.py` (to exclude any file named `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ). - Relative patterns, like `directory/foo.py` (to exclude that specific file) or `directory/*.py` (to exclude any Python files in `directory`). Note that these paths are relative to the project root (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).\n\nNote that you'll typically want to use [`extend-exclude`](#extend-exclude) to modify the excluded paths.",type:["array","null"],items:{type:"string"}},"explicit-preview-rules":{description:"Whether to require exact codes to select preview rules. When enabled, preview rules will not be selected by prefixes — the full code of each preview rule will be required to enable the rule.",deprecated:!0,type:["boolean","null"]},extend:{description:"A path to a local `pyproject.toml` file to merge into this configuration. User home directory and environment variables will be expanded.\n\nTo resolve the current `pyproject.toml` file, Ruff will first resolve this base configuration file, then merge in any properties defined in the current configuration file.",type:["string","null"]},"extend-exclude":{description:"A list of file patterns to omit from formatting and linting, in addition to those specified by [`exclude`](#exclude).\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory named `.mypy_cache` in the tree), `foo.py` (to exclude any file named `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ). - Relative patterns, like `directory/foo.py` (to exclude that specific file) or `directory/*.py` (to exclude any Python files in `directory`). Note that these paths are relative to the project root (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"extend-fixable":{description:"A list of rule codes or prefixes to consider fixable, in addition to those specified by [`fixable`](#lint_fixable).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-ignore":{description:"A list of rule codes or prefixes to ignore, in addition to those specified by `ignore`.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-include":{description:"A list of file patterns to include when linting, in addition to those specified by [`include`](#include).\n\nInclusion are based on globs, and should be single-path patterns, like `*.pyw`, to include any file with the `.pyw` extension.\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"extend-per-file-ignores":{description:"A list of mappings from file pattern to rule codes or prefixes to exclude, in addition to any rules excluded by [`per-file-ignores`](#lint_per-file-ignores).",deprecated:!0,type:["object","null"],additionalProperties:{type:"array",items:{$ref:"#/definitions/RuleSelector"}}},"extend-safe-fixes":{description:"A list of rule codes or prefixes for which unsafe fixes should be considered safe.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-select":{description:"A list of rule codes or prefixes to enable, in addition to those specified by [`select`](#lint_select).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-unfixable":{description:"A list of rule codes or prefixes to consider non-auto-fixable, in addition to those specified by [`unfixable`](#lint_unfixable).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-unsafe-fixes":{description:"A list of rule codes or prefixes for which safe fixes should be considered unsafe.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},external:{description:"A list of rule codes or prefixes that are unsupported by Ruff, but should be preserved when (e.g.) validating `# noqa` directives. Useful for retaining `# noqa` directives that cover plugins not yet implemented by Ruff.",deprecated:!0,type:["array","null"],items:{type:"string"}},fix:{description:"Enable fix behavior by-default when running `ruff` (overridden by the `--fix` and `--no-fix` command-line flags). Only includes automatic fixes unless `--unsafe-fixes` is provided.",type:["boolean","null"]},"fix-only":{description:"Like [`fix`](#fix), but disables reporting on leftover violation. Implies [`fix`](#fix).",type:["boolean","null"]},fixable:{description:"A list of rule codes or prefixes to consider fixable. By default, all rules are considered fixable.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"flake8-annotations":{description:"Options for the `flake8-annotations` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8AnnotationsOptions"},{type:"null"}]},"flake8-bandit":{description:"Options for the `flake8-bandit` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BanditOptions"},{type:"null"}]},"flake8-boolean-trap":{description:"Options for the `flake8-boolean-trap` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BooleanTrapOptions"},{type:"null"}]},"flake8-bugbear":{description:"Options for the `flake8-bugbear` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BugbearOptions"},{type:"null"}]},"flake8-builtins":{description:"Options for the `flake8-builtins` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BuiltinsOptions"},{type:"null"}]},"flake8-comprehensions":{description:"Options for the `flake8-comprehensions` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ComprehensionsOptions"},{type:"null"}]},"flake8-copyright":{description:"Options for the `flake8-copyright` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8CopyrightOptions"},{type:"null"}]},"flake8-errmsg":{description:"Options for the `flake8-errmsg` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ErrMsgOptions"},{type:"null"}]},"flake8-gettext":{description:"Options for the `flake8-gettext` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8GetTextOptions"},{type:"null"}]},"flake8-implicit-str-concat":{description:"Options for the `flake8-implicit-str-concat` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ImplicitStrConcatOptions"},{type:"null"}]},"flake8-import-conventions":{description:"Options for the `flake8-import-conventions` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ImportConventionsOptions"},{type:"null"}]},"flake8-pytest-style":{description:"Options for the `flake8-pytest-style` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8PytestStyleOptions"},{type:"null"}]},"flake8-quotes":{description:"Options for the `flake8-quotes` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8QuotesOptions"},{type:"null"}]},"flake8-self":{description:"Options for the `flake8_self` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8SelfOptions"},{type:"null"}]},"flake8-tidy-imports":{description:"Options for the `flake8-tidy-imports` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8TidyImportsOptions"},{type:"null"}]},"flake8-type-checking":{description:"Options for the `flake8-type-checking` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8TypeCheckingOptions"},{type:"null"}]},"flake8-unused-arguments":{description:"Options for the `flake8-unused-arguments` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8UnusedArgumentsOptions"},{type:"null"}]},"force-exclude":{description:"Whether to enforce [`exclude`](#exclude) and [`extend-exclude`](#extend-exclude) patterns, even for paths that are passed to Ruff explicitly. Typically, Ruff will lint any paths passed in directly, even if they would typically be excluded. Setting `force-exclude = true` will cause Ruff to respect these exclusions unequivocally.\n\nThis is useful for [`pre-commit`](https://pre-commit.com/), which explicitly passes all changed files to the [`ruff-pre-commit`](https://github.com/astral-sh/ruff-pre-commit) plugin, regardless of whether they're marked as excluded by Ruff's own settings.",type:["boolean","null"]},format:{description:"Options to configure code formatting.",anyOf:[{$ref:"#/definitions/FormatOptions"},{type:"null"}]},ignore:{description:"A list of rule codes or prefixes to ignore. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"ignore-init-module-imports":{description:"Avoid automatically removing unused imports in `__init__.py` files. Such imports will still be flagged, but with a dedicated message suggesting that the import is either added to the module's `__all__` symbol, or re-exported with a redundant alias (e.g., `import os as os`).\n\nThis option is enabled by default, but you can opt-in to removal of imports via an unsafe fix.",deprecated:!0,type:["boolean","null"]},include:{description:"A list of file patterns to include when linting.\n\nInclusion are based on globs, and should be single-path patterns, like `*.pyw`, to include any file with the `.pyw` extension. `pyproject.toml` is included here not for configuration but because we lint whether e.g. the `[project]` matches the schema.\n\nNotebook files (`.ipynb` extension) are included by default on Ruff 0.6.0+.\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"indent-width":{description:`The number of spaces per indentation level (tab).
|
|
3
|
+
`).map(k=>k.trim()).join(" ")}function b(){if(g.current){g.current.style.height="0";var I=g.current.scrollHeight+(g.current.offsetHeight-g.current.clientHeight);I>0&&(g.current.style.height="".concat(I,"px"))}}function P(I){var k=I.target.value;h&&(s&&(k=x(k)),m(!1)),p(k),r(k)}function T(){g.current&&(s&&(p(x(f)),b()),g.current.scrollLeft=0)}function j(){g.current&&document.activeElement!==g.current&&g.current.focus()}function y(){s&&(p(v(f)),r(v(f)))}function S(){m(!0)}return c.useEffect(function(){b()},[f]),u.jsx("textarea",{ref:g,id:l,className:A(e,"auto-resize-textarea form-control"),placeholder:a,value:f,rows:1,onChange:P,onFocus:T,onMouseDown:j,onBlur:y,onPaste:S,spellCheck:i,disabled:o,"data-testid":d})}an.propTypes={value:$.string.isRequired,onChange:$.func.isRequired,className:$.string,placeholder:$.string,spellCheck:$.bool,disabled:$.bool,delimiter:$.string,id:$.string,"data-testid":$.string};an.defaultProps={className:"",id:"",placeholder:"",disabled:!1,spellCheck:!1,delimiter:"","data-testid":void 0};function Aa(t){var{blockInteraction:e=!0,children:n,debounceMs:r,isOpen:i=!1}=t,{value:a}=Le(i,r);return u.jsxs(u.Fragment,{children:[e&&i&&u.jsx("div",{className:"modal-backdrop",style:{backgroundColor:"transparent"},"data-testid":"debounced-modal-backdrop"}),U.cloneElement(n,{isOpen:i&&a})]})}function Na(t){var{className:e,icon:n,isOpen:r=!1,subtitle:i,title:a}=t;return u.jsx(Mt,{isOpen:r,className:e,children:u.jsx(Ut,{children:u.jsxs("div",{className:"info-modal",children:[n!=null&&u.jsx("div",{className:"message-icon",children:u.jsx(Q,{icon:n})}),u.jsx("div",{className:"message-header",children:a}),i!=null&&u.jsx("div",{className:"message-content",children:i})]})})})}function Gn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Kn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Gn(Object(n),!0).forEach(function(r){Hm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Hm(t,e,n){return(e=Vm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vm(t){var e=Ym(t,"string");return typeof e=="symbol"?e:e+""}function Ym(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Gm=[];function Km(t){var{styleProps:e,selectedItemCount:n,onClearSelection:r}=t;return u.jsx(Kr,Kn(Kn({UNSAFE_className:Jt.spectrumActionBar},e),{},{isEmphasized:!0,selectedItemCount:n,onClearSelection:r,children:Gm}))}function qn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function qm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qn(Object(n),!0).forEach(function(r){oe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function oe(t,e,n){return(e=zm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zm(t){var e=Xm(t,"string");return typeof e=="symbol"?e:e+""}function Xm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var zn=H.module("ContextMenu");class je extends c.PureComponent{static handleContextMenu(e){e.metaKey||(e.stopPropagation(),e.preventDefault())}constructor(e){super(e),oe(this,"container",void 0),oe(this,"oldFocus",void 0),oe(this,"activeSubMenuRef",void 0),oe(this,"subMenuTimer",void 0),oe(this,"rAF",void 0),oe(this,"initialPosition",void 0),this.handleBlur=this.handleBlur.bind(this),this.handleCloseSubMenu=this.handleCloseSubMenu.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleMenuItemClick=this.handleMenuItemClick.bind(this),this.handleMenuItemContextMenu=this.handleMenuItemContextMenu.bind(this),this.handleMenuItemMouseMove=this.handleMenuItemMouseMove.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this),this.handleWindowResize=this.handleWindowResize.bind(this),this.container=U.createRef(),this.oldFocus=document.activeElement,this.activeSubMenuRef=U.createRef(),this.subMenuTimer=0,this.rAF=0,this.initialPosition={top:e.top,left:e.left},this.state={menuItems:[],pendingItems:[],activeSubMenu:null,hasOverflow:!1,subMenuTop:null,subMenuLeft:null,subMenuParentWidth:0,subMenuParentHeight:0,keyboardIndex:-1,mouseIndex:-1}}componentDidMount(){this.initMenu(),this.verifyPosition(),window.addEventListener("resize",this.handleWindowResize),this.rAF=window.requestAnimationFrame(()=>{var e;(e=this.container.current)===null||e===void 0||e.focus();var{onMenuOpened:n}=this.props;n(this)})}componentDidUpdate(e,n){var{actions:r}=this.props,{activeSubMenu:i}=this.state;if(i!==n.activeSubMenu)if(i==null){var a;(a=this.container.current)===null||a===void 0||a.focus()}else this.setActiveSubMenuPosition();if(e.actions!==r&&(this.initMenu(),this.container.current==null||!this.container.current.contains(document.activeElement))){var o;(o=this.container.current)===null||o===void 0||o.focus()}this.verifyPosition()}componentWillUnmount(){this.cancelPromises(),window.removeEventListener("resize",this.handleWindowResize),cancelAnimationFrame(this.rAF)}getKeyboardIndex(){var{options:e}=this.props;if(e.separateKeyboardMouse!==void 0&&e.separateKeyboardMouse){var{keyboardIndex:n}=this.state;return n}return this.getMouseIndex()}setKeyboardIndex(e){var{options:n}=this.props;n.separateKeyboardMouse!==void 0&&n.separateKeyboardMouse?this.setState({keyboardIndex:e}):this.setMouseIndex(e)}getMouseIndex(){var{mouseIndex:e}=this.state;return e}setMouseIndex(e){this.setState({mouseIndex:e})}initMenu(){this.cancelPromises(),cancelAnimationFrame(this.rAF);var{options:e}=this.props,n=e.initialKeyboardIndex;n===void 0&&(n=-1);for(var{actions:r}=this.props,i=le.getMenuItems(r),a=[],o=i.length-1;o>=0;o-=1){var s=i[o];s instanceof Promise?this.initMenuPromise(s):a.push(s)}this.setState({mouseIndex:-1,keyboardIndex:n,activeSubMenu:null,menuItems:le.sortActions(a)})}initMenuPromise(e){var n=pe.makeCancelable(e);this.setState(r=>({pendingItems:r.pendingItems.concat(n)})),n.then(r=>{this.setState(i=>{var a=i.pendingItems.indexOf(n);if(a>=0){var o=i.pendingItems.slice();return o.splice(a,1),{menuItems:le.sortActions(i.menuItems.concat(r)),pendingItems:o}}return null})},r=>{pe.isCanceled(r)||(this.setState(i=>{var a=i.pendingItems.indexOf(n);if(a>=0){var o=i.pendingItems.slice();return o.splice(a,1),{pendingItems:o}}return null}),zn.error(r))})}cancelPromises(){var{pendingItems:e}=this.state;e.map(n=>n.cancel())}setActiveSubMenuPosition(){if(this.activeSubMenuRef.current!==null){var e=this.activeSubMenuRef.current.getBoundingClientRect();this.setState({subMenuTop:e.top,subMenuLeft:e.right,subMenuParentHeight:e.height,subMenuParentWidth:e.width})}}verifyPosition(){var e,n,r,i,{options:a,updatePosition:o,subMenuParentWidth:s,subMenuParentHeight:l,top:d,left:f}=this.props;if(!(!this.container.current||a.doNotVerifyPosition!=null&&a.doNotVerifyPosition)){var{top:p,left:h}=this.initialPosition,{width:m,height:g}=(e=(n=this.container.current)===null||n===void 0?void 0:n.getBoundingClientRect())!==null&&e!==void 0?e:{width:0,height:0},x=((r=(i=this.container.current)===null||i===void 0?void 0:i.scrollHeight)!==null&&r!==void 0?r:0)>window.innerHeight;g===0||m===0||(p+g>window.innerHeight&&(p-g-l>0?p-=g-l:p=window.innerHeight-g),h+m>window.innerWidth&&(h=h-m-s),(f!==h||d!==p)&&(this.setState({hasOverflow:x}),o(p,h)))}}handleWindowResize(){this.container.current&&this.closeMenu(!0)}handleBlur(e){if(!this.container.current){zn.warn("Container is null!");return}if(!this.container.current.contains(e.relatedTarget)){for(var n=e.relatedTarget,r=!1;n&&!r;)r=n.hasAttribute("data-dh-context-menu"),n=n.parentElement;r||this.closeMenu(!0)}}isEscapeKey(e){var{left:n}=this.props;return e==="Escape"||n<0&&e==="ArrowRight"||e==="ArrowLeft"}handleKeyDown(e){var{menuItems:n}=this.state,r=this.getKeyboardIndex(),i=r,a=!1;if(e.key==="Enter"||e.key===" "){r>=0&&r<n.length&&this.handleMenuItemClick(n[r],e);return}if(e.key==="ArrowRight"?r>=0&&r<=n.length?a=!0:i=0:this.isEscapeKey(e.key)?i=null:e.key==="ArrowUp"||e.shiftKey&&e.key==="Tab"?i=le.getNextMenuItem(i,-1,n):(e.key==="ArrowDown"||e.key==="Tab")&&(i=le.getNextMenuItem(i,1,n)),a){this.openSubMenu(r),e.preventDefault(),e.stopPropagation();return}r!==i&&(i!==null?this.setKeyboardIndex(i):(this.closeMenu(),this.oldFocus instanceof HTMLElement&&this.oldFocus.focus()),e.preventDefault(),e.stopPropagation())}openSubMenu(e){var{menuItems:n,activeSubMenu:r}=this.state,i=n[e].actions?e:null;r!==i&&this.setState({activeSubMenu:i,subMenuTop:null,subMenuLeft:null})}closeMenu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,{closeMenu:n,onMenuClosed:r}=this.props;cancelAnimationFrame(this.rAF),this.rAF=window.requestAnimationFrame(()=>{n(e),r(this)})}closeSubMenu(){this.setState({activeSubMenu:null})}handleCloseSubMenu(e){e?this.closeMenu(!0):this.closeSubMenu()}handleMenuItemClick(e,n){n.preventDefault(),n.stopPropagation();var{menuItems:r}=this.state;e!=null&&(e.disabled===void 0||!e.disabled)&&(e.actions!=null?this.openSubMenu(r.indexOf(e)):e.action!=null&&(e.action(n.nativeEvent),this.closeMenu(!0)))}handleMenuItemContextMenu(e,n){n.metaKey||this.handleMenuItemClick(e,n)}handleMenuItemMouseMove(e){var{menuItems:n}=this.state,r=n.indexOf(e);this.setMouseIndex(r),r>=0&&r<n.length&&(e.disabled===void 0||!e.disabled)&&this.openSubMenu(r)}handleMouseLeave(){this.setMouseIndex(-1)}render(){for(var e=[],{top:n,left:r}=this.props,{activeSubMenu:i,hasOverflow:a,keyboardIndex:o,menuItems:s,mouseIndex:l,pendingItems:d,subMenuTop:f,subMenuLeft:p,subMenuParentWidth:h,subMenuParentHeight:m}=this.state,g=0;g<s.length;g+=1){var x=s[g];g>0&&x.group!==s[g-1].group&&e.push(u.jsx("hr",{},"".concat(g,".separator")));var v=u.jsx(pi,{ref:i===g?this.activeSubMenuRef:null,isKeyboardSelected:o===g,isMouseSelected:l===g,menuItem:x,closeMenu:this.handleCloseSubMenu,onMenuItemClick:this.handleMenuItemClick,onMenuItemMouseMove:this.handleMenuItemMouseMove,onMenuItemContextMenu:this.handleMenuItemContextMenu},g);e.push(v)}var b=null;d.length>0&&(b=u.jsx("div",{className:"loading",children:u.jsx(qe,{className:"loading-spinner-vertical-align"})}));var{menuStyle:P,"data-testid":T}=this.props,j=i!==null&&f!==null&&p!==null;return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:A({"has-overflow":a},"context-menu-container"),style:qm({top:n,left:r},P),ref:this.container,"data-dh-context-menu":!0,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseLeave:this.handleMouseLeave,onContextMenu:je.handleContextMenu,role:"menuitem",tabIndex:0,"data-testid":T,children:[e,b]}),j&&i!==null&&f!==null&&p!==null&&u.jsx(je,{actions:s[i].actions||[],closeMenu:this.handleCloseSubMenu,top:f,left:p,updatePosition:(y,S)=>{this.setState({subMenuTop:y,subMenuLeft:S})},subMenuParentWidth:h,subMenuParentHeight:m},"sub-".concat(i))]})}}oe(je,"defaultProps",{subMenuParentWidth:0,subMenuParentHeight:0,closeMenu(){},onMenuOpened(){},onMenuClosed(){},options:{},menuStyle:{},"data-testid":void 0});function Xn(t,e,n){return(e=Qm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qm(t){var e=Jm(t,"string");return typeof e=="symbol"?e:e+""}function Jm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class $a extends c.Component{constructor(e){super(e),Xn(this,"container",void 0),Xn(this,"openMenu",void 0),this.handleMenuClose=this.handleMenuClose.bind(this),this.handleContextMenu=this.handleContextMenu.bind(this),this.container=U.createRef(),this.openMenu=U.createRef(),this.state={actions:null,left:0,top:0}}componentDidMount(){var e;(e=this.container.current)!==null&&e!==void 0&&e.parentElement&&this.container.current.parentElement.addEventListener("contextmenu",this.handleContextMenu)}componentWillUnmount(){var e;(e=this.container.current)!==null&&e!==void 0&&e.parentElement&&this.container.current.parentElement.removeEventListener("contextmenu",this.handleContextMenu)}handleContextMenu(e){if(this.container.current){var n=this.container.current.getBoundingClientRect(),r=e.clientY-n.top,i=e.clientX-n.left,{actions:a}=this.state;if(a!=null&&e.target===this.container.current){e.preventDefault(),this.setState({actions:null},()=>{var s=document.elementFromPoint(i,r),l=new MouseEvent("contextmenu",{clientX:e.clientX,clientY:e.clientY,bubbles:!0,cancelable:!0});s==null||s.dispatchEvent(l)});return}if(le.isContextActionEvent(e)&&!(e.metaKey||e.ctrlKey)){var o=le.getMenuItems(e.contextActions);o.length!==0&&(e.preventDefault(),this.setState({actions:o,top:r,left:i}))}}}handleMenuClose(e){e===this.openMenu.current&&this.setState({actions:null})}render(){var e=null,{"data-testid":n}=this.props,{actions:r,top:i,left:a}=this.state;return r&&(e=u.jsx(je,{ref:this.openMenu,actions:r,onMenuClosed:this.handleMenuClose,top:i,left:a,updatePosition:(o,s)=>{this.setState({top:o,left:s})},"data-testid":n})),u.jsx("div",{className:A("context-menu-root",{active:r}),ref:this.container,children:e})}}function Ma(t,e,n){return(e=Zm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zm(t){var e=eg(t,"string");return typeof e=="symbol"?e:e+""}function eg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class ee extends c.Component{static handleEnter(e){var n=e;n.style.height="0"}static handleEntering(e){var n=e;n.style.height="".concat(ee.getHeight(n),"px")}static handleExiting(e){var n=e;n.style.height="0"}static handleExit(e){var n=e;n.style.height="".concat(ee.getHeight(n),"px")}static getHeight(e){var n=e.scrollWidth-e.clientWidth;return e.scrollHeight-n}constructor(e){super(e),this.handleEntered=this.handleEntered.bind(this)}handleEntered(e){var n=e;n.style.height="";var{autoFocusOnShow:r}=this.props;if(r!==void 0&&r){var i=n.querySelector("input, select, textarea");i!=null&&i.focus()}}render(){var{children:e,className:n,in:r,"data-testid":i}=this.props;return u.jsx(qr,{in:r,classNames:{enterActive:"collapsing",enterDone:"collapse show",exitActive:"collapsing",exitDone:"collapse"},onEnter:ee.handleEnter,onEntering:ee.handleEntering,onEntered:this.handleEntered,onExit:ee.handleExit,onExiting:ee.handleExiting,timeout:350,children:a=>u.jsx("div",{className:A({collapse:a==="exited"},n),"data-testid":i,children:e})})}}Ma(ee,"propTypes",{className:$.string,in:$.bool.isRequired,children:$.node.isRequired,autoFocusOnShow:$.bool,"data-testid":$.string});Ma(ee,"defaultProps",{className:"",autoFocusOnShow:!1,"data-testid":void 0});var tg=H.module("TimeInput"),ng="([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]",rg=["00:00:00","12:34:56","23:59:59"];function Qn(t){return t!=null?"".concat(t.substring(0,8).replace(/\u2007/g,"0")).concat("00:00:00".substring(t.length)):t}var Ie=U.forwardRef((t,e)=>{var{allowValueWrapping:n=!0,className:r="",onChange:i=()=>!1,value:a=0,onFocus:o=()=>!1,onBlur:s=()=>!1,onSelect:l=()=>!1,"data-testid":d}=t,[f,p]=c.useState(We.formatTime(a)),h=c.useRef(a),[m,g]=c.useState(),x=c.useRef(null);c.useImperativeHandle(e,()=>({focus:()=>{var y;(y=x.current)===null||y===void 0||y.focus()},setSelection:y=>{var S;(S=x.current)===null||S===void 0||S.focus(),g(y)}}),[]),c.useEffect(function(){h.current!==a&&(p(We.formatTime(a)),h.current=a)},[h,a]);function v(y,S,I){var k=y.selectionStart===0?24:60,F=parseInt(I,10)-S;return Number.isNaN(F)?F=0:n?F=(F%k+k)%k:F=Math.min(Math.max(0,F),k-1),"".concat(F).padStart(2,"0")}function b(y,S,I,k,F){return k===0&&F===2&&S===1&&parseInt(I,10)>1?"0".concat(I).concat(y.substring(2)):ia(y,S,I)}var P=c.useCallback(y=>{tg.debug("handleChange",y),p(y),h.current=We.parseTime(Qn(y)),i(h.current)},[i]),T=c.useCallback(()=>{var y=Qn(f);y!==f&&p(y),s()},[f,s]),j=c.useCallback(y=>{g(y),l(y)},[l]);return u.jsx(en,{ref:x,className:r,example:rg,getNextSegmentValue:v,getPreferredReplacementString:b,onChange:P,onSelect:j,pattern:ng,selection:m,value:f,onFocus:o,onBlur:T,"data-testid":d})});Ie.defaultProps={allowValueWrapping:!0,className:"",onChange:()=>!1,onSelect:()=>!1,value:0,onFocus:()=>!1,onBlur:()=>!1,"data-testid":void 0};function Jn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ig(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Jn(Object(n),!0).forEach(function(r){ue(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ue(t,e,n){return(e=ag(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ag(t){var e=og(t,"string");return typeof e=="symbol"?e:e+""}function og(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Zn=-1,wt;(function(t){t.UP="UP",t.DOWN="DOWN"})(wt||(wt={}));class q extends c.Component{constructor(e){super(e),ue(this,"csContainer",void 0),ue(this,"menuContainer",void 0),ue(this,"button",void 0),ue(this,"input",void 0);var{value:n,valueToTime:r}=e;this.toggleMenu=this.toggleMenu.bind(this),this.handleMenuKeyDown=this.handleMenuKeyDown.bind(this),this.closeMenu=this.closeMenu.bind(this),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleOptionFocus=this.handleOptionFocus.bind(this),this.handleMenuOpened=this.handleMenuOpened.bind(this),this.handleMenuExited=this.handleMenuExited.bind(this),this.handleCustomInput=this.handleCustomInput.bind(this),this.csContainer=U.createRef(),this.menuContainer=U.createRef(),this.button=U.createRef(),this.input=U.createRef(),this.state={keyboardOptionIndex:0,menuIsOpen:!1,inputWidth:100,customTime:r(n),inputFocused:!1}}getSelectedText(){var{options:e,value:n,placeholder:r}=this.props,{customTime:i}=this.state;if(n===null)return r;for(var a=0;a<e.length;a+=1){var o=e[a];if(o.value===n)return o.title}return We.formatTime(i)}setInputWidth(){this.csContainer.current&&this.setState({inputWidth:this.csContainer.current.getBoundingClientRect().width})}focus(){var e;(e=this.button.current)===null||e===void 0||e.focus()}updateInputValue(e){var{onChange:n}=this.props;n(e)}handleResize(){this.setInputWidth()}handleMenuKeyDown(e){var n,{keyboardOptionIndex:r,inputFocused:i}=this.state,{options:a}=this.props;switch(e.key){case"Enter":case" ":i?this.updateFromCustom():this.updateInputValue(a[r].value),this.closeMenu(),(n=this.button.current)===null||n===void 0||n.focus(),e.stopPropagation(),e.preventDefault();break;case"Tab":e.shiftKey?this.handleMenuNavigation(q.MENU_NAVIGATION_DIRECTION.UP):this.handleMenuNavigation(q.MENU_NAVIGATION_DIRECTION.DOWN),e.stopPropagation(),e.preventDefault();break;case"ArrowUp":this.handleMenuNavigation(q.MENU_NAVIGATION_DIRECTION.UP),e.stopPropagation(),e.preventDefault();break;case"ArrowDown":this.handleMenuNavigation(q.MENU_NAVIGATION_DIRECTION.DOWN),e.stopPropagation(),e.preventDefault();break;case"Escape":this.closeMenu();break}}handleMenuNavigation(e){var{keyboardOptionIndex:n,inputFocused:r}=this.state,{options:i}=this.props,a=i.length,o=n;switch(e){case q.MENU_NAVIGATION_DIRECTION.UP:if(!r&&n===0){this.focusInput();break}else r&&this.focusOption(n);n>0&&!r?(o=(o-1)%a,this.setState({keyboardOptionIndex:o})):n===0&&(o=a-1,this.setState({keyboardOptionIndex:o})),this.scrollOptionIntoView(o);break;case q.MENU_NAVIGATION_DIRECTION.DOWN:if(!r&&n===a-1){this.focusInput();break}else r&&this.focusOption(n);n<a&&!(r&&n===0)&&(o=(o+1)%a,this.setState({keyboardOptionIndex:o})),this.scrollOptionIntoView(o);break}}handleOptionClick(e){var n=Number(e.currentTarget.value),{options:r,timeToValue:i}=this.props,{customTime:a}=this.state;if(n===Zn){var o=i(a);this.updateAndClose(o)}else this.updateAndClose(r[n].value)}updateAndClose(e){var n;this.updateInputValue(e),this.closeMenu(),(n=this.button.current)===null||n===void 0||n.focus()}handleOptionFocus(e){this.setState({keyboardOptionIndex:Number(e.target.value)})}handleMenuOpened(){var e,{options:n,value:r}=this.props,{keyboardOptionIndex:i}=this.state;this.scrollOptionIntoView(i);var a=(e=this.menuContainer.current)===null||e===void 0?void 0:e.querySelector(".cs-option-btn.keyboard-active");if(a instanceof HTMLElement&&a.focus(),r!==null){var o=n.map(s=>s.value).indexOf(r);o<0&&this.focusInput()}}focusInput(){var e;(e=this.input.current)===null||e===void 0||e.focus()}focusOption(e){var n,r=(n=this.menuContainer.current)===null||n===void 0?void 0:n.querySelector(".cs-options");if(r&&r.children!=null){var i=r.children.item(e);i instanceof HTMLElement&&i.focus()}}handleMenuExited(){var{menuIsOpen:e}=this.state;e&&this.setState({menuIsOpen:!1,keyboardOptionIndex:0})}handleCustomInput(e){var{timeToValue:n}=this.props,r=n(e);this.updateInputValue(r),this.setState({customTime:e})}updateFromCustom(){var{timeToValue:e}=this.props,{customTime:n}=this.state,r=e(n);this.updateInputValue(r)}toggleMenu(e){var{menuIsOpen:n}=this.state;n?this.closeMenu():this.openMenu(),e.stopPropagation()}openMenu(){this.updateKeyboardIndex(),this.setInputWidth(),this.setState({menuIsOpen:!0})}closeMenu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(this.setState({menuIsOpen:!1}),e){var n;(n=this.button.current)===null||n===void 0||n.focus()}}updateKeyboardIndex(){var{options:e,value:n}=this.props;if(n!==null){var r=e.map(i=>i.value).indexOf(n);r>0&&this.setState({keyboardOptionIndex:r})}}scrollOptionIntoView(e){var n,r=(n=this.menuContainer.current)===null||n===void 0?void 0:n.querySelector(".cs-options");if(r&&r.children!=null){var i=r.children.item(e);i instanceof HTMLElement&&i.offsetTop>q.DROP_DOWN_MENU_HEIGHT?r.scrollTop=i.offsetTop-q.DROP_DOWN_MENU_HEIGHT:(i instanceof HTMLElement&&i.offsetTop<0||e===0)&&(r.scrollTop=0)}}renderMenuElement(){var{inputWidth:e}=this.state;return u.jsx("div",{className:"cs-menu-container",ref:this.menuContainer,role:"presentation",onKeyDown:this.handleMenuKeyDown,onClick:n=>{n.stopPropagation()},style:{width:e},children:u.jsx("div",{className:"cs-options-container",children:u.jsx("div",{className:"cs-options",children:this.renderOptions()})})})}renderOptions(){for(var{options:e,value:n,icon:r,customText:i}=this.props,{keyboardOptionIndex:a,customTime:o,inputFocused:s}=this.state,l=!1,d=[],f=0;f<e.length;f+=1){var p=e[f],h="option-".concat(f,"-").concat(p.value);l=l||p.value===n,d.push(u.jsxs("button",{type:"button",value:f,className:A("cs-option-btn",{"keyboard-active":a===f&&!s}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[p.value===n&&u.jsx(Q,{icon:r,className:"mr-2"}),p.value!==n&&u.jsx("span",{className:"mr-4"}),p.title]},h))}return d.push(u.jsx("hr",{className:"cs-divider"},"option-divider")),d.push(u.jsxs("button",{type:"button",value:Zn,className:A("cs-option-btn",{"keyboard-active":s}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[!l&&n!==null?u.jsx(Q,{icon:r,className:"mr-2"}):u.jsx("span",{className:"mr-4"}),i]},"option-custom-label")),d.push(u.jsxs("div",{className:"cs-custom-container",children:[u.jsx("span",{className:"mr-2"}),u.jsx(Ie,{ref:this.input,onChange:this.handleCustomInput,value:o,onFocus:()=>this.setState({inputFocused:!0}),onBlur:()=>this.setState({inputFocused:!1})},"option-input"),u.jsx("span",{className:"ml-2"})]},"cs-custom-container")),d.push(u.jsx("hr",{className:"mb-2"},"option-end")),d}render(){var{disabled:e,invalid:n,value:r,"data-testid":i}=this.props,{menuIsOpen:a}=this.state,{popperOptions:o}=this.props;return o=ig({placement:"bottom-end",modifiers:{preventOverflow:{enabled:!1}}},o),u.jsx("div",{className:"input-group cs-container context-menu",ref:this.csContainer,"data-testid":i,children:u.jsx("div",{className:A("input-group-append cs-dropdown",{"cs-dropdown-invalid":n}),children:u.jsxs("button",{type:"button",className:A("btn cs-btn form-control",{"cs-btn-invalid":n}),ref:this.button,onClick:this.toggleMenu,disabled:e,children:[u.jsx("span",{className:A({"text-muted":r===null}),children:this.getSelectedText()}),u.jsx("span",{className:"cs-caret"}),u.jsx(fi,{isShown:a,actions:{menuElement:this.renderMenuElement()},popperOptions:o,popperClassName:"CustomTimeSelect",onMenuOpened:this.handleMenuOpened,onMenuClosed:this.handleMenuExited,menuStyle:{maxWidth:"100rem"}})]})})})}}ue(q,"MENU_NAVIGATION_DIRECTION",wt);ue(q,"DROP_DOWN_MENU_HEIGHT",125);ue(q,"defaultProps",{onChange(){},value:null,disabled:!1,popperOptions:{},icon:Qs,customText:"Custom",placeholder:"Select a time",valueToTime:t=>t===null?0:Math.round(t/1e3),timeToValue:t=>t*1e3,invalid:!1,"data-testid":void 0});var sg=H.module("DateInput"),lg="[12][0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])",ug=["2000-01-01","2022-12-31"],cg="YYYY-MM-DD",Ua=U.forwardRef((t,e)=>{var{className:n="",onChange:r=()=>{},defaultValue:i="",onFocus:a=()=>{},onBlur:o=()=>{},"data-testid":s}=t,[l,d]=c.useState(i),[f,p]=c.useState(),h=c.useCallback(m=>{sg.debug("handleChange",m),d(m),r(m)},[r]);return u.jsx("div",{className:"d-flex flex-row align-items-center",children:u.jsx(en,{ref:e,className:A(n),example:ug,getNextSegmentValue:xp,onChange:h,onSelect:p,pattern:lg,placeholder:cg,selection:f,value:l,onFocus:a,onBlur:o,"data-testid":s})})});Ua.displayName="DateInput";function dg(t){var{isInvalid:e=!1,items:n,onAdd:r=()=>{},onDelete:i=()=>{},validate:a=()=>null}=t,[o,s]=c.useState(null),[l,d]=c.useState([]),[f,p]=c.useState(""),h=c.useCallback(T=>{d(T)},[]),m=c.useCallback(()=>{i(vn.getItemsInRanges(n,l)),d([])},[n,l,i]),g=c.useCallback(()=>{if(f!==""){var T=a(f);T==null?(r(f),p("")):s(T)}},[f,r,a]),x=c.useCallback(T=>{var{value:j}=T.target;p(j),s(j===""?null:a(j))},[a]),v=c.useCallback(()=>{d([])},[]),b=c.useCallback(T=>{T.key==="Enter"&&g()},[g]),P=c.useMemo(()=>14+zr(n.length,1,6)*ft.DEFAULT_ROW_HEIGHT,[n.length]);return u.jsxs("div",{className:A("editable-item-list-container",{"is-invalid":e}),children:[u.jsx("div",{style:{height:P},children:u.jsx(ft,{itemCount:n.length,items:n.map((T,j)=>({value:T,isSelected:vn.isSelected(l,j)})),offset:0,selectedRanges:l,onSelectionChange:h,isMultiSelect:!0})}),u.jsxs("div",{className:"d-flex flex-row pt-2",children:[u.jsx("div",{className:"d-flex flex-grow-1",children:u.jsx("input",{className:A("form-control",{"is-invalid":o!=null}),placeholder:"Enter value",type:"text",value:f,onChange:x,onFocus:v,onKeyDown:b})}),u.jsxs("div",{className:"d-flex align-items-start mt-1 ml-2",children:[u.jsx(G,{kind:"ghost",onClick:g,disabled:o!=null||f==="",icon:Js,tooltip:"Add new item","data-testid":"add-item-button"}),u.jsx(G,{kind:"ghost",onClick:m,disabled:l.length===0,icon:ii,tooltip:"Delete selected items","data-testid":"delete-item-button"})]})]})]})}function pg(t){var{message:e,isExpanded:n=!1,type:r="Error"}=t,[i,a]=c.useState(!1),[o,s]=c.useState(!1),l=c.useRef(null),d=c.useRef(null),f=c.useCallback(()=>{if(!(o||n||d.current==null)){var h=d.current.scrollHeight>d.current.clientHeight;a(h)}},[o,n]),p=Ce(f,100);return Xe(l.current,p),c.useLayoutEffect(p,[p]),u.jsxs("div",{className:A("error-view",{expanded:o||n}),ref:l,children:[u.jsxs("div",{className:"error-view-header",children:[u.jsxs("div",{className:"error-view-header-text",children:[u.jsx(Q,{icon:Zs}),u.jsx("span",{children:r})]}),u.jsxs("div",{className:"error-view-buttons",children:[u.jsx(Bi,{kind:"danger",className:"error-view-copy-button",tooltip:"Copy exception contents",copy:"".concat(r,": ").concat(e).trim()}),(i||o)&&!n&&u.jsx(G,{kind:"danger",className:"error-view-expand-button",onClick:()=>{s(!o)},icon:o?el:tl,children:o?"Show Less":"Show More"})]})]}),u.jsx("pre",{className:"error-view-text",ref:d,children:e})]})}function fg(t,e,n){return(e=hg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hg(t){var e=mg(t,"string");return typeof e=="symbol"?e:e+""}function mg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class ve extends c.Component{static isParentSelected(e,n){var r=n.get(e);if(r===void 0)return!1;if(typeof r=="boolean")return r;var i=Array.from(r.values()).includes(!0),a=Array.from(r.values()).includes(!1);return i&&a?null:i}constructor(e){super(e),this.toggleMenu=this.toggleMenu.bind(this),this.toggleValueFor=this.toggleValueFor.bind(this),this.selectAll=this.selectAll.bind(this),this.clear=this.clear.bind(this),this.state={menuIsOpen:!1}}toggleMenu(e){e.stopPropagation(),e.preventDefault(),this.setState(n=>{var{menuIsOpen:r}=n;return{menuIsOpen:!r}})}toggleValueFor(e,n){var{valueMap:r,onUpdateValueMap:i}=this.props,a=new Map(r),o=a.get(e);if(o instanceof Map){var s=new Map(o);if(n!=null)s.set(n,o.get(n)!==!0);else{var l=ve.isParentSelected(e,a),d=l==null||!l;o.forEach((h,m)=>s.set(m,d))}a.set(e,s)}else a.set(e,o==null||!o);var f=a.get(e);if(n===void 0&&f!==void 0&&typeof f!="boolean"){var p=ve.isParentSelected(e,r);p!=null&&p?f.forEach((h,m)=>f.set(m,!1)):f.forEach((h,m)=>f.set(m,!0))}i(a)}setAllValues(e){var{valueMap:n,onUpdateValueMap:r}=this.props,i=new Map;n.forEach((a,o)=>{if(typeof a=="boolean")i.set(o,e);else{var s=new Map;a.forEach((l,d)=>s.set(d,e)),i.set(o,s)}}),r(i)}selectAll(){this.setAllValues(!0)}clear(){this.setAllValues(!1)}renderMenuElement(){var{valueMap:e,"data-testid":n}=this.props;return u.jsxs("div",{className:"hcm-menu-container",children:[Array.from(e.entries()).map(r=>{var[i,a]=r;return u.jsxs("div",{children:[u.jsx(ht,{className:"hcm-parent",checked:ve.isParentSelected(i,e),onChange:()=>this.toggleValueFor(i),children:i}),a!==void 0&&typeof a!="boolean"&&Array.from(a.entries()).map(o=>{var[s,l]=o;return u.jsx(ht,{className:"hcm-child",checked:l,onChange:()=>this.toggleValueFor(i,s),children:s},s)})]},i)}),u.jsx(G,{kind:"ghost",onClick:this.selectAll,"data-testid":n!==void 0?"".concat(n,"-btn-select-all"):void 0,children:"Select All"}),u.jsx(G,{kind:"ghost",onClick:this.clear,"data-testid":n!==void 0?"".concat(n,"-btn-clear"):void 0,children:"Clear"})]})}render(){var{menuText:e,className:n,icon:r,id:i,"data-testid":a}=this.props,{menuIsOpen:o}=this.state;return u.jsxs("button",{type:"button",className:A("btn hcm-btn",n),onClick:this.toggleMenu,id:i,"data-testid":a,children:[u.jsxs("span",{children:[r&&u.jsx(Q,{icon:r,className:"hcm-icon mr-1"}),e]}),u.jsx("span",{className:"cs-caret"}),u.jsx(Vt,{options:{placement:"bottom"},isShown:o,onExited:()=>{this.setState({menuIsOpen:!1})},closeOnBlur:!0,interactive:!0,children:this.renderMenuElement()})]})}}fg(ve,"defaultProps",{className:"",icon:null,id:"","data-testid":void 0});function er(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function it(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?er(Object(n),!0).forEach(function(r){gg(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function gg(t,e,n){return(e=vg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vg(t){var e=yg(t,"string");return typeof e=="symbol"?e:e+""}function yg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ba=c.memo(t=>{var{tab:e,onClose:n,onSelect:r,isActive:i,activeRef:a,index:o,isDraggable:s,contextActions:l}=t,{key:d,isClosable:f=n!=null,title:p,icon:h}=e,m;return h!=null&&(m=U.isValidElement(h)?h:u.jsx(Q,{icon:h})),u.jsx(Ao,{draggableId:d,index:o,isDragDisabled:!s,children:(g,x)=>u.jsxs("div",{className:"context-menu-wrapper",ref:i?a:null,children:[u.jsxs("div",it(it(it({ref:g.innerRef},g.draggableProps),g.dragHandleProps),{},{className:A("btn btn-link btn-nav-tab",{active:i},{dragging:x.isDragging}),"data-testid":"btn-nav-tab-".concat(p),role:"tab",tabIndex:0,onAuxClick:v=>{f&&v.button===1&&v.buttons===0&&(n==null||n(d))},onClick:v=>{if(f&&v.button===1&&v.buttons===0){n==null||n(d);return}v.button===0&&v.buttons===0&&(v.target.focus(),r(d))},onKeyPress:v=>{v.key==="Enter"&&r(d)},children:[m,u.jsxs("span",{className:"btn-nav-tab-title",children:[p,u.jsx(De,{children:p})]}),f&&u.jsx(G,{kind:"ghost",className:"btn-nav-tab-close",onClick:v=>{n==null||n(d),v.stopPropagation(),v.preventDefault()},icon:ai,tooltip:"Close"})]})),u.jsx(Yt,{actions:l})]})},d)});Ba.displayName="NavTab";function tr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function nr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tr(Object(n),!0).forEach(function(r){bg(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function bg(t,e,n){return(e=Pg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pg(t){var e=xg(t,"string");return typeof e=="symbol"?e:e+""}function xg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var wg=500,Og=.01,Sg=5e-4;function rr(t){return t.scrollLeft===0}function ir(t){return t.scrollLeft+t.clientWidth===t.scrollWidth||t.scrollWidth===0}function Eg(t,e,n){var{isClosable:r=!1,key:i}=t,a=[];if(r&&n!=null){a.push({title:"Close",order:10,group:20,action:()=>{n(i)}});for(var o=!0,s=e.length-1;s>0&&e[s].key!==t.key;s-=1)if(e[s].isClosable===!0){o=!1;break}a.push({title:"Close to the Right",order:20,group:20,action:()=>{for(var l=e.length-1;l>0&&e[l].key!==i;l-=1)e[l].isClosable===!0&&n(e[l].key)},disabled:o}),a.push({title:"Close All",order:30,group:20,action:()=>{e.forEach(l=>{l.isClosable===!0&&n(l.key)})}})}return a}function Cg(t){var{activeKey:e,tabs:n,onSelect:r,onReorder:i,onClose:a,makeContextActions:o}=t,s=c.useRef(),[l,d]=c.useState(!0),[f,p]=c.useState(!0),[h,m]=c.useState(!0),g=c.useCallback(()=>{s.current!=null&&(s.current.clientWidth<s.current.scrollWidth&&n.length>0?d(!0):d(!1),p(rr(s.current)),m(ir(s.current)))},[n]);Xe(s.current,g);var x=c.useCallback(w=>{bt.stopDragging(),w.destination&&(i==null||i(w.source.index,w.destination.index))},[i]),v=c.useCallback(()=>{if(s.current!=null){var w=rr(s.current);w!==f&&p(w);var O=ir(s.current);O!==h&&m(O)}},[f,h]),b=c.useRef({cancelClick:!1}),P=c.useCallback(()=>{if(!(s.current==null||b.current.cancelClick))for(var{children:w}=s.current,O=w.length-1;O>=0;O-=1){var _=w[O];if(_.offsetLeft<s.current.scrollLeft-5){_.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"});return}}},[]),T=c.useCallback(()=>{if(!(s.current==null||b.current.cancelClick))for(var{children:w}=s.current,O=0;O<w.length;O+=1){var _=w[O];if(_.offsetLeft+5>s.current.scrollLeft+s.current.offsetWidth){_.scrollIntoView({behavior:"smooth",block:"nearest",inline:"end"});return}}},[]),j=c.useCallback(function(w,O){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,N=arguments.length>3?arguments[3]:void 0,W=s.current;W!=null&&(b.current.cancelClick=!0,w==="left"?W.scrollLeft=O-_:w==="right"&&(W.scrollLeft=O+_),b.current.rAF=requestAnimationFrame(Y=>{var K=N??Y,C=Y-K,R=Og*C+.5*Sg*C**2;R=Math.min(R,W.scrollWidth),j(w,O,R,K)}))},[]),y=c.useCallback(()=>{var{holdTimer:w,rAF:O}=b.current;w!=null&&(clearTimeout(w),b.current.holdTimer=void 0),O!=null&&(cancelAnimationFrame(O),b.current.rAF=void 0),window.removeEventListener("mouseup",y)},[]);c.useEffect(()=>()=>window.removeEventListener("mouseup",y),[y]);var S=c.useCallback(w=>{s.current!=null&&(b.current.holdTimer=window.setTimeout(j,wg,w,s.current.scrollLeft)),b.current.cancelClick=!1,window.addEventListener("mouseup",y)},[y,j]),I=c.useCallback(()=>{S("left")},[S]),k=c.useCallback(()=>{S("right")},[S]);c.useEffect(function(){var O,_=N=>{N.stopPropagation(),N.preventDefault();var W=N.currentTarget,Y=Math.abs(N.deltaY)>Math.abs(N.deltaX)?N.deltaY:N.deltaX;W.scrollLeft+=zr(Y,-30,30)};return(O=s.current)===null||O===void 0||O.addEventListener("wheel",_),()=>{var N;(N=s.current)===null||N===void 0||N.removeEventListener("wheel",_)}},[]);var F=c.useMemo(()=>{var w=new Map;return n.forEach(O=>{var{key:_}=O,N=[()=>Eg(O,n,a),()=>{var W;return(W=o==null?void 0:o(O))!==null&&W!==void 0?W:[]}];w.set(_,N)}),w},[o,n,a]),L=c.useRef(null),V=n.find(w=>w.key===e),E=n.map((w,O)=>{var{key:_}=w,N=w===V;return u.jsx(Ba,{tab:w,index:O,isActive:N,activeRef:L,onSelect:r,onClose:a,isDraggable:i!=null,contextActions:F.get(_)},_)});return c.useEffect(function(){L.current!=null&&L.current.scrollIntoView({block:"nearest",inline:"nearest"})},[e]),u.jsxs("nav",{className:"nav-container",children:[l&&u.jsx(G,{kind:"ghost",icon:u.jsx(Q,{icon:nl,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-left",tooltip:"Scroll left",onClick:P,onMouseDown:I,disabled:f}),u.jsx(No,{onDragStart:bt.startDragging,onDragEnd:x,children:u.jsx($o,{droppableId:"droppable-tab-navigation",direction:"horizontal",children:(w,O)=>u.jsxs("div",nr(nr({ref:_=>{_!=null&&(s.current=_,w.innerRef(_))}},w.droppableProps),{},{className:A("nav nav-tabs",{dragging:O.draggingFromThisWith}),role:"tablist",onScroll:v,children:[E,w.placeholder]}))})}),l&&u.jsx(G,{kind:"ghost",icon:u.jsx(Q,{icon:rl,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-right",tooltip:"Scroll right",onClick:T,onMouseDown:k,disabled:h})]})}var Tg=.025,jg=.9,Ig=.1,kg=.618,ar=80,he={SIZE:8,DOT_SIZE:2},ie=18,_g=250,Rg=60*1e3,Dg={background:"var(--dh-color-random-area-plot-animation-bg)",foregroundFill:"var(--dh-color-random-area-plot-animation-fg-fill)",foregroundStroke:"var(--dh-color-random-area-plot-animation-fg-stroke)",gridColor:"var(--dh-color-random-area-plot-animation-grid)"};function Lg(){return oi(Dg)}var Wa=U.memo(()=>{var{activeThemes:t}=Je(),e=c.useMemo(Lg,[t]),n=c.useRef(null),r=c.useRef(null),[i,a]=c.useState(!1),o=window.devicePixelRatio,s,l,d,f,p,h=null,m=[];function g(){var E;r.current!=null&&(d=r.current.offsetWidth,f=r.current.offsetHeight),n.current!=null&&(n.current.style.width="".concat(d,"px"),n.current.style.height="".concat(f,"px"),n.current.width=d*o,n.current.height=f*o),(E=s)===null||E===void 0||E.scale(o,o)}function x(){var{foregroundFill:E,foregroundStroke:w}=e,O=document.createElement("canvas");O.width=he.SIZE,O.height=he.SIZE;var _=O.getContext("2d");return _!=null&&(_.fillStyle=w,_.fillRect(0,0,he.DOT_SIZE,he.DOT_SIZE),_.fillStyle=E,_.fillRect(0,0,he.SIZE,he.SIZE)),_==null?void 0:_.createPattern(O,"repeat")}function v(E){var w=Math.random()-.5,O=Tg*w;return E<Ig?O=Math.abs(O):E>jg&&(O=-Math.abs(O)),E+O}function b(){for(var E=[],w=kg,O=0;O<d+ie;O+=1)w=v(w),E.push(w);return E}function P(){for(;m.length>=d+ie;)m.pop();for(;m.length<d+ie;)m.push(v(m[m.length-1]))}function T(E,w){w.beginPath(),w.moveTo(-1,f+1),w.lineTo(-1,f*E[0]);for(var O=0;O<E.length;O+=1)w.lineTo(O,f*E[O]);w.lineTo(d+ie,f*E[E.length-1]),w.lineTo(d+ie,f+1),w.closePath()}function j(E){E.beginPath();for(var w=1;w<d;w+=ar)E.moveTo(w,0),E.lineTo(w,f);for(var O=1;O<f;O+=ar)E.moveTo(0,O),E.lineTo(d,O)}function y(E){var w,O,_;h=(w=h)!==null&&w!==void 0?w:E;var{background:N,foregroundStroke:W,gridColor:Y}=e;ze(s),s.fillStyle=N,s.fillRect(0,0,d,f),j(s),s.lineWidth=1,s.strokeStyle=Y,s.stroke();var K=(((O=h)!==null&&O!==void 0?O:0)-(E??0))/(1e3/ie);if(s.translate(K,0),T(m,s),s.lineWidth=2,s.strokeStyle=W,s.stroke(),s.translate(-K,0),l!=null&&(s.fillStyle=l),s.fill(),s.setTransform(o,0,0,o,0,0),(E??0)-((_=h)!==null&&_!==void 0?_:0)>1e3/ie){for(var C,R=Math.floor(((E??0)-((C=h)!==null&&C!==void 0?C:0))/(1e3/ie)),D=0;D<R;D+=1)m.shift(),m.push(v(m[m.length-1]));h=E}p!=null&&cancelAnimationFrame(p),p=requestAnimationFrame(y)}var S=Ee(()=>{p=requestAnimationFrame(E=>{g(),P(),a(!1),y(E)})},_g,{leading:!0});function I(){a(!0),p!=null&&cancelAnimationFrame(p),p=null,h=null}var k=Ee(()=>{I()},Rg);function F(){p==null&&(a(!1),g(),P(),p=requestAnimationFrame(y)),k()}function L(){document.hasFocus()&&F()}function V(){p!=null&&cancelAnimationFrame(p),k(),S()}return c.useEffect(()=>{var E;return s=(E=n.current)===null||E===void 0?void 0:E.getContext("2d",{alpha:!1}),g(),m=b(),l=x(),y(),k(),window.addEventListener("resize",V),window.addEventListener("focus",F),window.addEventListener("blur",I),window.addEventListener("mousemove",L),window.addEventListener("keydown",L),()=>{p!=null&&cancelAnimationFrame(p),window.removeEventListener("resize",V),window.removeEventListener("focus",F),window.removeEventListener("blur",I),window.removeEventListener("mousemove",L),window.removeEventListener("keydown",L),k.cancel(),S.cancel()}},[e]),u.jsx("div",{className:"random-area-plot-animation-container",ref:r,children:u.jsx("canvas",{ref:n,className:i?"shade":""})})});function Ha(t){var{text:e,placement:n="top-start"}=t,r=c.useMemo(()=>({placement:n}),[n]);return u.jsxs(u.Fragment,{children:[u.jsx(tt,{UNSAFE_className:Jt.spectrumEllipsis,children:e??u.jsx(u.Fragment,{children:" "})}),e==null||e===""?null:u.jsx(De,{options:r,children:e})]})}var Fg=["scrollRef","getItemDisplayText","getKey"];function or(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function sr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?or(Object(n),!0).forEach(function(r){Ag(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ag(t,e,n){return(e=Ng(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ng(t){var e=$g(t,"string");return typeof e=="symbol"?e:e+""}function $g(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Mg(t,e){if(t==null)return{};var n,r,i=Ug(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Ug(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Bg(t){var{scrollRef:e,getItemDisplayText:n,getKey:r}=t,i=Mg(t,Fg),a=c.useCallback(o=>{var s=r(o),l=n(o);return u.jsx(Ge,{textValue:l??String(s),children:u.jsx(Ha,{text:l})},s)},[n,r]);return u.jsx(Ft,sr(sr({},i),{},{ref:e,menuTrigger:"focus",onSelectionChange:i.onSelectionChange,children:a}))}var Wg=500;function Hg(t){var{heading:e,content:n,delayMs:r=Wg}=t,[i,a]=c.useState(!1);return c.useEffect(()=>{window.setTimeout(()=>{a(!0)},r)},[r]),i?u.jsxs(Xr,{children:[u.jsx(_e,{size:"XXL",children:u.jsx(Q,{icon:il})}),u.jsx(nt,{children:e}),n==null?null:u.jsx(At,{children:n})]}):null}const Vg="_modified_5rbci_24",Yg="_track_5rbci_35",Gg="_handle_5rbci_15",Kg="_ticks_5rbci_103",Va={"handle-size":"15px","popover-width":"90px","time-slider":"_time-slider_5rbci_5","time-slider-popovers":"_time-slider-popovers_5rbci_10","handle-popper":"_handle-popper_5rbci_15",modified:Vg,"flex-spacer":"_flex-spacer_5rbci_31",track:Yg,"track-fills":"_track-fills_5rbci_42","track-fill":"_track-fill_5rbci_42","track-fill-start":"_track-fill-start_5rbci_60","track-fill-middle":"_track-fill-middle_5rbci_61","track-fill-end":"_track-fill-end_5rbci_64","handle-track":"_handle-track_5rbci_67",handle:Gg,ticks:Kg,"tick-labels":"_tick-labels_5rbci_121","tick-label":"_tick-label_5rbci_121","tick-label-wrapper":"_tick-label-wrapper_5rbci_137"};var Me=parseInt(Va["handle-size"],10),lr=parseInt(Va["popover-width"],10),z=24*60*60-1,ur=5*60;function qg(t){var{startTime:e,endTime:n,onChange:r,isStartModified:i=!1,isEndModified:a=!1,"data-testid":o}=t,[s,l]=c.useState(e),[d,f]=c.useState(n),p=c.useRef(null);c.useEffect(function(){l(e),f(n)},[e,n]);var h=c.useCallback((x,v)=>{var b=x,P=v;b===P&&(P<z?P+=1:b-=1),l(b),f(P),r({startTime:b,endTime:P})},[l,f,r]),m=c.useCallback(x=>{h(x,d)},[h,d]),g=c.useCallback(x=>{h(s,x)},[h,s]);return u.jsxs("div",{className:"time-slider","data-testid":o,children:[u.jsx(zg,{startTime:s,endTime:d,onStartTimeChange:m,onEndTimeChange:g,isStartModified:i,isEndModified:a}),u.jsxs("div",{className:"track",ref:p,children:[u.jsx(Xg,{startTime:s,endTime:d}),u.jsx("div",{className:"ticks",children:Array(24).fill(null).map((x,v)=>u.jsx("div",{className:"tick"},v))}),u.jsx(cr,{track:p,time:s,setTime:m}),u.jsx(cr,{track:p,time:d,setTime:g})]}),u.jsxs("div",{className:"tick-labels",children:[u.jsx("div",{className:"tick-label",children:"0:00"}),u.jsx("div",{className:"tick-label-wrapper",children:Array(24).fill(null).map((x,v)=>u.jsx("div",{className:"tick-label",children:"".concat(v+1,":00")},v))})]})]})}function zg(t){var{startTime:e,endTime:n,onStartTimeChange:r,onEndTimeChange:i,isStartModified:a,isEndModified:o,"data-testid":s}=t,l=e>n,[d,f]=c.useState(l?n:e),[p,h]=c.useState(l?e:n),m=c.useRef(null),g=c.useRef(null),x=c.useRef(null),v=c.useRef(null);c.useEffect(function(){f(e>n?n:e),h(e>n?e:n)},[e,n]),c.useEffect(function(){if(x.current!==null){var S;(S=g.current)===null||S===void 0||S.setSelection(x.current)}if(v.current!==null){var I;(I=m.current)===null||I===void 0||I.setSelection(v.current)}},[l]);function b(y){e<=n?r(y):i(y)}function P(y){e<=n?i(y):r(y)}var T=c.useCallback(y=>{x.current=y,v.current=null},[]),j=c.useCallback(y=>{x.current=null,v.current=y},[]);return u.jsxs("div",{className:"time-slider-popovers",children:[u.jsx("div",{className:"flex",style:{flexBasis:"calc(".concat(d/z*100,"% - ").concat(lr/2,"px)")}}),u.jsxs("div",{className:"handle-popper",children:[u.jsx("label",{className:A({modified:l?o:a}),children:l?"End Time":"Start Time"}),u.jsx(Ie,{ref:m,allowValueWrapping:!1,value:d,onChange:b,onSelect:T,"data-testid":s!==void 0?"".concat(s,"-input-1"):void 0})]}),u.jsx("div",{className:"flex-spacer"}),u.jsxs("div",{className:"handle-popper",children:[u.jsx("label",{className:A({modified:l?a:o}),children:l?"Start Time":"End Time"}),u.jsx(Ie,{ref:g,allowValueWrapping:!1,value:p,onChange:P,onSelect:j,"data-testid":s!==void 0?"".concat(s,"-input-2"):void 0})]}),u.jsx("div",{className:"flex",style:{flexBasis:"calc(".concat((z-p)/z*100,"% - ").concat(lr/2,"px)")}})]})}function Xg(t){var{startTime:e,endTime:n,"data-testid":r}=t;return u.jsxs("div",{className:"track-fills","data-testid":r,children:[e>n&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"track-fill track-fill-start",style:{transform:"scaleX(".concat(n/z,")")}}),u.jsx("div",{className:"track-fill track-fill-end",style:{transform:"scaleX(".concat((z-e)/z,")")}})]}),e<n&&u.jsx("div",{className:"track-fill track-fill-middle",style:{transform:"translateX(".concat(e/z*100,"%) scaleX(").concat((n-e)/z,")")}})]})}function cr(t){var{track:e,time:n,setTime:r,"data-testid":i}=t,a=c.useMemo(()=>{var h=3600,m=Me/2;return n<h?m=n/h*(Me/2):n>23*h&&(m=Me/2+1/(z-23*h)*(n-23*h)*(Me/2)),"translateX(calc(".concat(n/z*100,"% - ").concat(m,"px))")},[n]),o=c.useCallback(h=>{if(!e.current)return 0;var m=e.current.getBoundingClientRect(),g=Math.max(h-m.left,0),x=z*Math.min(1,g/m.width),v=ur*Math.round(x/ur),b=Math.min(z,v);return b},[e]),s=c.useCallback(h=>{var{clientX:m}=h;r(o(m))},[r,o]),l=c.useCallback(h=>{var{clientX:m}=h;r(o(m)),window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",l),document.documentElement.classList.remove("drag-pointer-events-none")},[r,o,s]),d=c.useCallback(()=>{window.addEventListener("mousemove",s),window.addEventListener("mouseup",l),document.documentElement.classList.add("drag-pointer-events-none")},[s,l]),f=c.useCallback(()=>{window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",l),document.documentElement.classList.remove("drag-pointer-events-none")},[s,l]),p=c.useCallback(()=>{d()},[d]);return c.useEffect(function(){return()=>{f()}},[f]),u.jsx("div",{className:"handle-track",style:{transform:a},children:u.jsx("button",{className:"handle",type:"button","aria-label":"Change time",onMouseDown:p,"data-testid":i})})}function Ya(t){var{buttons:e,isShown:n=!1,classNames:r,message:i,type:a,onClick:o,onDismiss:s,"data-testid":l}=t,d=e&&e.length!==0;return u.jsx(qr,{in:n,timeout:pt.transitionMs,classNames:"toast-notification-slide-up",mountOnEnter:!0,unmountOnExit:!0,children:u.jsxs("div",{className:A("toast-notification",r,a),role:"presentation",onClick:o,onKeyPress:o,"data-testid":l,children:[u.jsx("div",{className:"message-container",children:u.jsx("span",{className:"message",children:i})}),u.jsx(Gt,{in:d,timeout:pt.transitionSlowMs,mountOnEnter:!0,unmountOnExit:!0,children:u.jsx("div",{className:"buttons-container",children:e})}),s&&u.jsx(G,{kind:"ghost",icon:ai,tooltip:"Close notification",className:"my-2",onClick:s})]})})}Ya.TYPE=Object.freeze({ERROR:"error"});const Qg=Object.freeze(Object.defineProperty({__proto__:null,ACTION_ICON_HEIGHT:Zt,Accordion:Mo,ActionBar:Kr,ActionButton:Ke,ActionButtonDialogTrigger:Da,ActionGroup:wp,ActionMenu:Op,AlertDialog:Uo,AutoCompleteInput:J,AutoResizeTextarea:an,Avatar:Bo,Badge:Wo,BasicModal:hi,Breadcrumbs:Ho,BulkActionBar:Km,Button:G,ButtonGroup:Gr,CSS_VAR_EXPRESSION_PREFIX:al,Calendar:Vo,CardFlip:od,Checkbox:ht,CheckboxGroup:wm,Collapse:ee,ColorEditor:Yo,ColorPicker:Go,ColorValues:Sp,ComboBox:Ep,ComboBoxNormalized:ka,ConfirmActionButton:Rm,ConfirmationDialog:La,Content:At,ContextActionUtils:le,ContextActions:Yt,ContextMenuItem:pi,ContextMenuRoot:$a,ContextualHelp:Ko,ContextualHelpTrigger:qo,CopyButton:Bi,CustomTimeSelect:q,DEFAULT_DARK_THEME_KEY:ol,DEFAULT_DARK_THEME_PALETTE:sl,DEFAULT_GET_PREFERRED_REPLACEMENT_STRING:ia,DEFAULT_LIGHT_THEME_KEY:ll,DEFAULT_PRELOAD_DATA_VARIABLES:ul,DH_CSS_VAR_NAME_REGEXP:cl,DH_VAR_PREFIX:dl,DateField:zo,DateInput:Ua,DatePicker:Xo,DateRangePicker:Qo,DateTimeInput:Cp,DebouncedModal:Aa,DebouncedSearchInput:mu,Dialog:Hr,DialogContainer:Jo,DialogTrigger:Wr,Disclosure:Zo,DisclosurePanel:es,DisclosureTitle:ts,Divider:Vr,DragUtils:bt,DraggableItemList:Tp,DropdownMenu:fi,EXTERNAL_THEME_KEY:pl,EditableItemList:dg,ErrorBoundary:gu,ErrorView:pg,FadeTransition:Gt,Flex:Br,Footer:ns,Form:Yr,GLOBAL_SHORTCUTS:mi,Grid:rs,Header:is,Heading:nt,HierarchicalCheckboxMenu:ve,ITEM_EMPTY_STRING_TEXT_VALUE:jp,Icon:_e,IconActionButton:Fa,IllustratedMessage:Xr,Image:as,InfoModal:Na,InlineAlert:os,Item:Ge,ItemContent:Ip,ItemList:ft,ItemListItem:vu,ItemTooltip:kp,get KEY(){return yu},Keyboard:ss,LIST_VIEW_ROW_HEIGHTS:aa,LabeledValue:ls,Link:Qr,ListActionGroup:_p,ListActionMenu:Rp,ListView:Qh,ListViewNormalized:_a,ListViewWrapper:rn,LoadingOverlay:fe,LoadingSpinner:qe,LogicButton:us,Logo:Rh,get MODIFIER(){return bu},MSG_REQUEST_GET_THEME:fl,MSG_REQUEST_SET_THEME:ni,MaskedInput:en,Menu:Dp,MenuItem:Lp,MenuTrigger:cs,Meter:ds,Modal:Mt,ModalBody:Ut,ModalFooter:gi,ModalHeader:si,NON_WHITESPACE_REGEX:hl,NavTabList:Cg,NumberField:ps,Option:oa,PICKER_ITEM_HEIGHTS:Fp,PICKER_TOP_OFFSET:Ap,PRELOAD_TRANSPARENT_THEME_QUERY_PARAM:ml,Page:Np,Picker:$p,PickerNormalized:Mp,Popper:Vt,ProgressBar:fs,ProgressCircle:hs,Radio:ms,RadioGroup:gs,RandomAreaPlotAnimation:Wa,RangeCalendar:vs,RangeSlider:ys,SVG_ICON_MANUAL_COLOR_MAP:gl,SearchField:bs,SearchInput:vi,SearchableCombobox:Bg,Section:Up,Select:yi,SelectValueList:sa,Shortcut:Pu,ShortcutRegistry:xu,SlideTransition:Bp,Slider:Ps,SocketedButton:sd,SpectrumButton:ct,SpectrumCheckbox:ut,SpectrumComboBox:Ft,SpectrumMenu:xs,SplitButtonGroup:wu,Stack:Wp,StatusLight:ws,SubmenuTrigger:Os,Switch:Ss,TABLE_ROW_HEIGHT:Hp,THEME_CACHE_LOCAL_STORAGE_KEY:vl,THEME_KEY_OVERRIDE_QUERY_PARAM:yl,TMP_CSS_PROP_PREFIX:bl,TRANSPARENT_PRELOAD_DATA_VARIABLES:Pl,TabList:Es,TabPanels:lh,TableViewEmptyState:Hg,Tabs:Cs,TagGroup:Ts,Text:tt,TextArea:js,TextField:Is,TextWithTooltip:Ha,ThemeContext:Ou,ThemeExport:pt,ThemePicker:_h,ThemeProvider:bi,TimeField:ks,TimeInput:Ie,TimeSlider:qg,ToastContainer:_s,ToastNotification:Ya,ToastQueue:Rs,ToggleButton:Ds,Tooltip:De,UISwitch:Su,View:Ra,WHITESPACE_REGEX:xl,Well:Ls,XComponentMapContext:Eu,XComponentMapProvider:Cu,baseStyleProps:Fs,calculatePreloadStyleContent:wl,canHaveRef:Pi,colorValueStyle:X,createCssVariableResolver:Ol,createPreloadStyleElement:Sl,createXComponent:Tu,extractDistinctCssVariableExpressions:El,fillToLength:Vp,getActiveThemes:Cl,getDefaultBaseThemes:Tl,getDefaultSelectedThemeKey:jl,getExpressionRanges:Il,getItemKey:yt,getItemTextValue:Yp,getPositionOfSelectedItemElement:Gp,getThemeKey:kl,getThemeKeyOverride:_l,getThemePreloadData:Rl,isBaseThemeKey:Dl,isClassComponent:ju,isDHColorValue:Kp,isExternalThemeData:ri,isExternalThemeEnabled:Nt,isForwardRefComponentType:Iu,isItemElement:qp,isItemElementWithDescription:zp,isItemOrSection:Xp,isNormalizedItemsWithKeysList:Qp,isNormalizedSection:Jp,isPreloadTransparentTheme:Ll,isSectionElement:Zp,isValidColorVar:Fl,isWrappedComponent:xi,itemSelectionToStringSet:He,normalizeTooltipOptions:Qt,overrideSVGFillColors:Al,parseExternalThemeData:ei,preloadTheme:Nl,replaceSVGFillColor:$l,requestExternalThemeData:ti,resolveCssVariablesInRecord:oi,resolveCssVariablesInString:Ml,separateSpectrumProps:Ta,setThemePreloadData:Ul,themeDHDefault:Bl,themeDark:Wl,themeLight:Hl,trimTrailingMask:ef,useExternalTheme:Ia,useOnChangeTrackUncontrolled:tf,usePickerItemScale:la,usePickerNormalizedProps:ta,usePickerProps:nf,usePickerScrollOnOpen:rf,useRenderNormalizedItem:ra,useSpectrumThemeProvider:Xt,useStaticItemInitialScrollPosition:af,useStringifiedMultiSelection:ja,useStringifiedSelection:of,useStyleProps:As,useTheme:Je,useXComponent:ku,viewStyleProps:Ns,wrapIcon:sf,wrapItemChildren:na,wrapPrimitiveWithText:lf},Symbol.toStringTag,{value:"Module"}));var Ga=U.memo(t=>{var{children:e,onError:n,widget:r}=t,[i,a]=Wi(r);return a!=null?(n==null||n(a),null):i==null?null:u.jsx(Bt.Provider,{value:i,children:e})});Ga.displayName="DeferredApiBootstrap";var on=c.createContext(null);function Ka(t){var[e,n]=c.useState({status:"loading"}),r=c.useContext(on);return c.useEffect(()=>{if(r==null){n({error:new Error("No ObjectFetchManager available in context"),status:"error"});return}return n(i=>i.status==="loading"?i:{status:"loading"}),r.subscribe(t,n)},[t,r]),e}function dr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function Jg(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){dr(a,r,i,o,s,"next",l)}function s(l){dr(a,r,i,o,s,"throw",l)}o(void 0)})}}var Ue=H.module("useWidget");function Zg(t){var[e,n]=c.useState(()=>({widget:null,error:null})),r=Ka(t);return c.useEffect(function(){Ue.debug("loadWidget",t);var{status:a}=r;if(a==="error"){n({widget:null,error:r.error});return}if(a==="loading"){n({widget:null,error:null});return}var{fetch:o}=r,s=!1;function l(){return d.apply(this,arguments)}function d(){return d=Jg(function*(){try{ze(o);var f=yield o();if(s){Ue.debug2("loadWidgetInternal cancelled",t,f),f.close(),"exportedObjects"in f&&f.exportedObjects.forEach(p=>{p.close()});return}Ue.debug("loadWidgetInternal done",t,f),n({widget:f,error:null})}catch(p){if(s)return;Ue.error("loadWidgetInternal error",t,p),n({widget:null,error:p??new Error("Null error")})}}),d.apply(this,arguments)}return l(),()=>{s=!0}},[t,r]),e}const ev=Object.freeze(Object.defineProperty({__proto__:null,ApiBootstrap:Vl,ApiContext:Bt,ClientBootstrap:ui,ClientContext:Jl,DeferredApiBootstrap:Ga,DeferredApiContext:ld,ObjectFetchManagerContext:on,ObjectFetcherContext:wi,getVariableDescriptor:_u,isIdVariableDescriptor:Ru,isNameVariableDescriptor:Du,isVariableDescriptor:Lu,sanitizeVariableDescriptor:Oi,useApi:xe,useClient:Re,useDeferredApi:Wi,useObjectFetch:Ka,useObjectFetcher:Fu,useWidget:Zg},Symbol.toStringTag,{value:"Module"}));function tv(t){return function(n){var{children:r}=n;return u.jsx(Bt.Provider,{value:t,children:r})}}var qa="io.deephaven.message.LoginOptions.request",za="io.deephaven.message.SessionDetails.request",Xa="io.deephaven.broadcast",sn="io.deephaven.broadcast.Login",Qa="io.deephaven.broadcast.Logout";function Ja(t){return Wt(t)&&t.message===sn}function Za(t){return Wt(t)&&t.message===Qa}function nv(t,e,n){return(e=rv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rv(t){var e=iv(t,"string");return typeof e=="symbol"?e:e+""}function iv(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class eo extends Error{constructor(){super(...arguments),nv(this,"isNoConsolesError",!0)}}function to(t){return t.isNoConsolesError}function pr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function rt(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){pr(a,r,i,o,s,"next",l)}function s(l){pr(a,r,i,o,s,"throw",l)}o(void 0)})}}var Se=H.module("SessionUtils");function no(t,e,n){return Ot.apply(this,arguments)}function Ot(){return Ot=rt(function*(t,e,n){Se.info("Getting console types...");var r=yield e.getConsoleTypes();if(r.length===0)throw new eo("No console types available");Se.info("Available types:",r);var i=r[0];Se.info("Starting session with type",i);var a=yield e.startSession(i),o={type:i,id:Lt()};return Se.info("Console session established",o),{session:a,config:o,connection:e,details:n,dh:t}}),Ot.apply(this,arguments)}function av(t,e,n){return Se.info("createCoreClient",e),new t.CoreClient(e,n)}function ov(t){return t!=null&&typeof t=="object"}function sv(){return St.apply(this,arguments)}function St(){return St=rt(function*(){var t=yield Ht(za);if(!ov(t))throw new Error("Unexpected session details response: ".concat(t));return t}),St.apply(this,arguments)}function lv(){return Et.apply(this,arguments)}function Et(){return Et=rt(function*(){var t=new URLSearchParams(window.location.search);switch(t.get("authProvider")){case"parent":return sv()}return{}}),Et.apply(this,arguments)}function uv(t,e,n){return Ct.apply(this,arguments)}function Ct(){return Ct=rt(function*(t,e,n){var r;try{r=yield no(t,e,n)}catch(i){if(!to(i))throw i}return r}),Ct.apply(this,arguments)}const cv=Object.freeze(Object.defineProperty({__proto__:null,BROADCAST_CHANNEL_NAME:Xa,BROADCAST_LOGIN_MESSAGE:sn,BROADCAST_LOGOUT_MESSAGE:Qa,BooleanColumnFormatter:ud,CharColumnFormatter:cd,DateTimeColumnFormatter:Au,DateUtils:dd,DecimalColumnFormatter:Nu,DefaultColumnFormatter:pd,FETCH_TIMEOUT:Zl,Formatter:Kt,FormatterUtils:vt,ITEM_KEY_PREFIX:fd,IntegerColumnFormatter:$u,LOGIN_OPTIONS_REQUEST:qa,NewTableColumnTypes:Mu,NoConsolesError:eo,SESSION_DETAILS_REQUEST:za,StringColumnFormatter:hd,TableColumnFormatter:Uu,TableUtils:md,createComboboxFilterArgs:gd,createCoreClient:av,createFilterConditionFactory:qt,createFormatterFromSettings:vd,createKeyedItemKey:Hi,createNotNullOrEmptyFilterCondition:Vi,createOnTableUpdatedHandler:yd,createSearchTextFilter:Yi,createSelectedValuesFilter:zt,createSessionWrapper:no,createShowOnlyEmptyFilterCondition:Gi,createValueFilter:Ki,defaultRowDeserializer:bd,fetchVariableDefinition:eu,generateEmptyKeyedItems:Pd,getColumnFormats:xd,getDateTimeFormatterOptions:wd,getSessionDetails:lv,getSize:Od,getWindowParent:$t,isBroadcastLoginMessage:Ja,isBroadcastLogoutMessage:Za,isClosed:qi,isCustomColumnFormatDefined:Sd,isNoConsolesError:to,isResponse:Yl,isSortDirection:Ed,loadSessionWrapper:uv,makeMessage:li,makeResponse:Gl,padFirstAndLastRow:Cd,requestParentResponse:Ht},Symbol.toStringTag,{value:"Module"}));function dv(t,e,n){return(e=pv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pv(t){var e=fv(t,"string");return typeof e=="symbol"?e:e+""}function fv(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class hv extends Error{constructor(){super(...arguments),dv(this,"isColumnNameError",!0)}}function mv(t,e,n){return(e=gv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gv(t){var e=vv(t,"string");return typeof e=="symbol"?e:e+""}function vv(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class yv extends Error{constructor(){super(...arguments),mv(this,"isTableDisconnectError",!0)}}var Be=H.module("useTable"),ro=(t,e,n,r)=>{var i=xe(),[a,o]=c.useState(void 0),[s,l]=c.useState([]),[d,f]=c.useState(null),[p,h]=c.useState(null);c.useEffect(()=>{if(r===void 0){o(t==null?void 0:t.columns),f(null);return}try{o(t==null?void 0:t.findColumns(r)),f(null)}catch(v){Be.error("Column not found",v,r),f(new hv("Invalid columnNames argument"))}},[t,r]),c.useEffect(()=>{if(!a||!t){Be.debug2("Table or column not initialized, skip viewport update.");return}Be.debug2("Setting viewport",e,n),t.setViewport(e,n,a)},[a,t,e,n]);var m=c.useCallback(v=>{var{detail:b}=v;if(!a){Be.error("Columns not initialized.");return}var P=a.map(T=>b.rows.map(j=>j.get(T)));l(P)},[a]),g=c.useCallback(()=>{h(new yv("Table disconnected"))},[]),x=c.useCallback(()=>{h(null)},[]);return Ve(t,i.Table.EVENT_UPDATED,m),Ve(t,i.Table.EVENT_DISCONNECT,g),Ve(t,i.Table.EVENT_RECONNECT,x),{columns:a,data:s,error:p??d}},io=(t,e,n,r)=>{var i=c.useMemo(()=>[r],[r]),{columns:a=[],data:o=[],error:s}=ro(t,e,n,i);return{column:a[0],data:o[0],error:s}};function fr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function bv(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){fr(a,r,i,o,s,"next",l)}function s(l){fr(a,r,i,o,s,"throw",l)}o(void 0)})}}var te=H.module("TableInput"),at=250;function ln(t){var e,n,{className:r=void 0,columnName:i,settings:a,defaultValue:o=[],isInvalid:s=!1,onChange:l=()=>!1,onBlur:d=()=>!1,table:f}=t,p=c.useRef(null),h=xe(),m=c.useMemo(()=>{var C=vt.getColumnFormats(a),R=vt.getDateTimeFormatterOptions(a),{defaultDecimalFormatOptions:D={},defaultIntegerFormatOptions:B={}}=a;return new Kt(h,C,R,D,B)},[h,a]),[g,x]=c.useState(""),[v,b]=c.useState(new Set(o)),[P,T]=c.useState(),j=c.useRef(null),y=Math.min((e=P==null?void 0:P.size)!==null&&e!==void 0?e:0,at),{column:S,data:I,error:k}=io(P,0,at-1,i),F=c.useCallback(C=>S?m.getFormattedString(C,S.type,S.name):"".concat(C),[S,m]),[L,V]=c.useMemo(()=>{var C=new Set(v),R=[];if(I==null)return[R,null];if(I.forEach(B=>{var re="".concat(B),hn=v.has(re);hn&&C.delete(re),R.push({value:re,displayValue:F(B),isSelected:hn})}),C.size>0){te.debug2("Selection has items that are missing from the viewport");var D=new Set(v);return Array.from(C).forEach(B=>{D.delete(B)}),[R,D]}return[R,null]},[I,v,F]);c.useEffect(()=>{V!==null&&(b(V),l(Array.from(V)))},[l,V]);var E=c.useCallback(function(){var C=bv(function*(R){try{var D=yield R;te.debug("Table resolved",D),T(D)}catch(B){if(pe.isCanceled(B))return;te.error(B)}});return function(R){return C.apply(this,arguments)}}(),[]);c.useEffect(()=>{var C=pe.makeCancelable(f);return E(C),()=>{te.debug2("Cancel table promise"),C.cancel()}},[f,E]);var w=c.useCallback(C=>{var{value:R}=C.target;x(R);var D=L.findIndex(re=>re.displayValue.includes(R));if(D>-1){var B;te.debug2("Found ".concat(R," at index ").concat(D)),(B=j.current)===null||B===void 0||B.scrollIntoView(D)}else te.debug2("".concat(R," not found"))},[L,j]),O=c.useCallback(C=>{if(te.debug("handleSelect",C),C>=L.length){te.error("Invalid index",C);return}var R=L[C].value,D=new Set(v);L[C].isSelected?D.delete(R):D.add(R),b(D),l(Array.from(D))},[l,L,v]),_=c.useCallback(()=>{var C=L.map(D=>D.value),R=new Set(C);b(R),l(C)},[L,l]),N=c.useCallback(()=>{b(new Set),l([])},[l]),W=c.useCallback(()=>{},[]),Y=c.useCallback(C=>{var R,{relatedTarget:D}=C;te.debug("handleChildBlur",D,D instanceof HTMLElement,p.current,(R=p.current)===null||R===void 0?void 0:R.contains(D)),(!D||p.current&&D instanceof HTMLElement&&!p.current.contains(D))&&d()},[d]),K=L.length===0;return u.jsxs("div",{ref:p,className:A("table-input-container d-flex flex-column position-relative",r),children:[u.jsx(vi,{disabled:!!k||K,value:g,placeholder:"Search",onChange:w,className:"mb-2 d-flex",onBlur:Y}),u.jsx(sa,{className:"table-input-list",disabled:P===void 0||K,isInvalid:s,items:K?[{value:"Empty",isSelected:!1}]:L,itemCount:y,offset:0,onSelect:O,onViewportChange:W,ref:j,onBlur:Y}),P&&u.jsxs("div",{className:"meta-row",children:[u.jsx("div",{className:"d-flex align-items-center text-muted small",children:P!=null&&P.size>y&&u.jsxs(u.Fragment,{children:["Table is too large, showing the first ",at," items."]})}),u.jsxs("div",{children:[u.jsx("button",{type:"button",className:"btn btn-link",onBlur:Y,onClick:_,children:"Select All"}),u.jsx("button",{type:"button",className:"btn btn-link mr-a",onBlur:Y,onClick:N,children:"Clear"})]})]}),P==null||k&&u.jsx("div",{className:"h-100 w-100 position-absolute",children:u.jsx(fe,{isLoaded:P!=null,isLoading:P==null&&k==null,errorMessage:(n=k==null?void 0:k.message)!==null&&n!==void 0?n:null})})]})}ln.displayName="TableInput";ln.defaultProps={isInvalid:!1,className:void 0};var Pv=["onInputChange","onSearchTextChange"];function hr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function mr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hr(Object(n),!0).forEach(function(r){xv(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function xv(t,e,n){return(e=wv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wv(t){var e=Ov(t,"string");return typeof e=="symbol"?e:e+""}function Ov(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Sv(t,e){if(t==null)return{};var n,r,i=Ev(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Ev(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Cv(t){var e=uf(t),{onInputChange:n,onSearchTextChange:r}=e,i=Sv(e,Pv),a=c.useRef(!1),o=c.useRef(""),s=c.useCallback(d=>{n==null||n(d),a.current?r(d):(r(""),o.current=d)},[n,r]),l=c.useCallback((d,f)=>{var p;(p=i.onOpenChange)===null||p===void 0||p.call(i,d),d?f==="input"&&r(o.current):r(""),a.current=d},[r,i]);return u.jsx(ka,mr(mr({},i),{},{onInputChange:s,onOpenChange:l}))}var Tv=["table","keyColumn","labelColumn","iconColumn","settings"];function gr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function vr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gr(Object(n),!0).forEach(function(r){jv(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function jv(t,e,n){return(e=Iv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Iv(t){var e=kv(t,"string");return typeof e=="symbol"?e:e+""}function kv(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _v(t,e){if(t==null)return{};var n,r,i=Rv(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Rv(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Dv(t){var e,{table:n,keyColumn:r,labelColumn:i,iconColumn:a,settings:o}=t,s=_v(t,Tv),{scale:l}=Xt(),d=aa[(e=s.density)!==null&&e!==void 0?e:"regular"][l],{getFormattedString:f}=ua(o),p=cf({table:n,iconColumnName:a,keyColumnName:r,labelColumnName:i,formatValue:f}),{viewportData:h,onScroll:m}=tn({reuseItemsOnTableResize:!0,table:n,itemHeight:d,deserializeRow:p});return u.jsx(_a,vr(vr({},s),{},{normalizedItems:h.items,showItemIcons:a!=null,onScroll:m}))}function Lv(t){return typeof t=="object"&&t!=null&&"equals"in t&&typeof t.equals=="function"}function Fv(t){return"".concat(t)}function Av(t){var{column:e,table:n,filter:r=Bu,onChange:i,selectedValue:a,disabled:o,className:s,formatValue:l=Fv,maxSize:d=1e3}=t,f=xe(),[p,h]=c.useState([]);c.useEffect(()=>{if(n==null){h([]);return}var v=e??n.columns[0];n.applyFilter(r);var b=n.setViewport(0,d,[v]);return b.addEventListener(f.Table.EVENT_UPDATED,P=>{var{detail:T}=P,j=T.rows.map(y=>{var S;return(S=y.get(v))!==null&&S!==void 0?S:null});h(j)}),()=>{b.close()}},[e,f,r,d,n]);var m=c.useMemo(()=>a===void 0?[void 0,...p]:p,[a,p]),g=c.useMemo(()=>m.findIndex(v=>v===a||Lv(v)&&v.equals(a)),[a,m]),x=c.useCallback(v=>{i(m[v])},[i,m]);return u.jsx(yi,{className:s,value:g,onChange:x,disabled:o,children:m.map((v,b)=>u.jsx(oa,{value:b,children:l(v)},"".concat(b)))})}var yr=H.module("useBroadcastChannel");function un(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ze,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xa,n=c.useMemo(()=>new BroadcastChannel(e),[e]);return c.useEffect(()=>()=>{n.close()},[n]),c.useEffect(()=>{function r(i){var{data:a}=i;if(!Wt(a)){yr.debug("Ignoring non-deephaven message",a);return}yr.debug("event received",a),t(i)}return n.addEventListener("message",r),()=>{n.removeEventListener("message",r)}},[n,t]),n}function cn(t,e){var n=c.useCallback(r=>{Ja(r.data)?t==null||t(r.data):Za(r.data)&&(e==null||e(r.data))},[t,e]);un(n)}function Nv(t,e,n,r){var i=ce(),[a,o]=c.useState(""),{value:s}=Le(a,n),l=c.useCallback(h=>{o(h.trim())},[]),{data:d,isLoading:f}=Pe(i.doesColumnValueExist,[t,e,s,r]),p=f||a!==s?null:d;return{valueTrimmed:a,valueTrimmedDebounced:s,valueExists:p,trimAndUpdateValue:l}}var br=H.module("useDebouncedViewportSearch"),$v=200;function Mv(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$v,r=ce(),{table:i,applyFiltersAndRefresh:a}=t,o=c.useMemo(()=>Ee(s=>{if(br.debug("Applying debounced searchText '".concat(s,"'")),i!=null){var l=s.trim();if(l===""){a([]);return}var d=i.findColumn(e),f=r.makeFilterValue(d.type,l),p=[d.filter().contains(f)];a(p)}},n),[a,e,n,i,r]);return c.useEffect(()=>()=>{br.debug("Cancelling debounced search function"),o.cancel()},[o]),o}var ao=300;function Uv(t){var{viewportData:e,columnName:n,shouldSelectAllOnNoSelection:r,mapItemToValue:i}=t,a=ce(),o=Oa(e,i,Hi),{value:s}=Le(o,ao),l=xa(s,va);return c.useMemo(()=>zt(a,n,l.selection,r,l.isInverted),[n,l,r,a])}function Bv(t,e,n,r){var i=c.useRef("");return i.current=n,c.useMemo(()=>{var a=t.length>0&&t[0].item==null;return!a&&r!=null&&(i.current===""||r.toLowerCase().includes(i.current.toLowerCase()))?[{key:r,item:{[e]:r}},...t]:t},[r,e,t])}function Pr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function Wv(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Pr(a,r,i,o,s,"next",l)}function s(l){Pr(a,r,i,o,s,"throw",l)}o(void 0)})}}function Hv(t){var{table:e,columnName:n,defaultValue:r,itemHeight:i,topOffset:a=0,value:o}=t;return c.useCallback(Wv(function*(){if(e==null||o===""||o===r)return a;var s=e.findColumn(n),l=yield e.seekRow(0,s,"String",o),d=r==null?0:1;return(l+d)*i+a}),[n,r,i,e,a,o])}function Vv(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"or",n=ce(),r=c.useMemo(()=>Vi(n),[n]);return c.useMemo(()=>qt(t,r,e),[t,e,r])}function oo(t){c.useEffect(()=>()=>{t!=null&&(qi(t)||t.close())},[t])}function Yv(t){var{maybeTable:e,columnName:n,mapItemToValue:r,filterConditionFactories:i=[],trimSearchText:a=!1,timeZone:o}=t,{itemHeight:s}=la(),l=ce(),[d,f]=c.useState(""),[p,h]=c.useState(""),m=c.useCallback(C=>{h(a?C.trim():C)},[a]),g=c.useMemo(()=>a?d.trim():d,[d,a]),[x,v]=c.useState(null),[b,P]=c.useState(()=>new Map),{data:T,isLoading:j}=Pe(l.doesColumnValueExist,[e,n,p,!1]),{isDebouncing:y}=Le(p,xn),S=y||j?null:T,I=c.useMemo(()=>Yi(l,n,p,o),[p,n,l,o]),k=c.useMemo(()=>zt(l,n,new Set(b.keys()),!1,!0),[n,b,l]),{data:F}=Pe(l.createDistinctSortedColumnTable,[e,n,"asc",...i]);oo(F);var L=tn({table:F,itemHeight:s,viewportSize:df,viewportPadding:pf}),V=g.length>0&&L.size===0,E=b.has(g),w=Ce(m,xn),O=c.useCallback(C=>{f(C),w(C)},[w]),_=Ce(v,0),N=c.useCallback(C=>{if(f(""),m(""),v(C),_(null),C!=null){var R=L.viewportData.findItem(C);if(R!=null){var D=r(R);P(B=>{var re=new Map(B);return re.set(D,{value:D}),re})}}},[m,_,L.viewportData,r]),W=c.useCallback(C=>{P(R=>{if(C.size===0)return R;var D=new Map(R);for(var B of C)D.set(B,{value:B});return D})},[]),Y=c.useCallback(C=>{P(R=>{if(C==="all")return new Map;var D=new Map(R);for(var B of C)D.delete(B);return D})},[]),K=ca(L.table,I,k);return da(L,K),c.useMemo(()=>({list:L,hasSearchTextWithZeroResults:V,searchText:d,searchTextExists:S,searchTextIsInSelectedValues:E,selectedKey:x,selectedValueMap:b,onSearchTextChange:O,onSelectKey:N,onAddValues:W,onRemoveValues:Y}),[V,L,W,Y,O,N,d,S,E,x,b])}function xr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function Gv(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){xr(a,r,i,o,s,"next",l)}function s(l){xr(a,r,i,o,s,"throw",l)}o(void 0)})}}function Kv(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=c.useCallback(Gv(function*(){var d;return(d=t==null?void 0:t.selectDistinct(t.findColumns(n)))!==null&&d!==void 0?d:null}),[t,...n]),{data:a,error:o,isError:s,isLoading:l}=Pe(i,[]);return c.useEffect(()=>()=>{a==null||a.close()},[a]),{distinctTable:a,error:o,isError:s,isLoading:l}}function qv(t,e){var n=ce(),r=c.useMemo(()=>Gi(n,t),[t,n]);return c.useMemo(()=>qt(e,r),[e,r])}function zv(t,e,n){var r=ce();return c.useMemo(()=>Ki(r,t,e,n),[t,n,r,e])}const Xv=Object.freeze(Object.defineProperty({__proto__:null,ComboBox:Cv,DEBOUNCE_MS:ao,ListView:Dv,Picker:ff,TableDropdown:Av,TableInput:ln,makeApiContextWrapper:tv,useBroadcastChannel:un,useBroadcastLoginListener:cn,useCheckIfExistsValue:Nv,useDebouncedViewportSearch:Mv,useDebouncedViewportSelectionFilter:Uv,useFilterConditionFactories:ca,useFilteredItemsWithDefaultValue:Bv,useFormatter:ua,useGetItemIndexByValue:hf,useGetItemPosition:Hv,useInitializeViewportData:mf,useNotNullOrEmptyFilter:Vv,usePickerWithSelectedValues:Yv,useSearchableViewportData:gf,useSelectDistinctTable:Kv,useSetPaddedViewportCallback:vf,useShowOnlyEmptyFilter:qv,useTable:ro,useTableClose:oo,useTableColumn:io,useTableListener:Ve,useTableSize:yf,useTableUtils:ce,useValueFilter:zv,useViewportData:tn,useViewportFilter:da},Symbol.toStringTag,{value:"Module"}));var so=c.createContext(!1);function Qv(t){var{fontClassNames:e=["fira-sans-regular","fira-sans-semibold","fira-mono"],children:n}=t,[r,i]=c.useState(!1);return c.useEffect(function(){document.fonts.ready.then(()=>{i(!0)})},[]),u.jsxs(u.Fragment,{children:[u.jsx(so.Provider,{value:r,children:n}),u.jsx("div",{id:"preload-fonts",style:{visibility:"hidden",position:"absolute",top:-1e4},children:e.map(a=>u.jsx("p",{className:a,children:"preload"},a))})]})}function lo(t){var{isEnabled:e,isPending:n,themeData:r}=Ia();return c.useMemo(()=>e?n?null:r?[r]:[]:t==null?null:Si(t),[e,n,r,t])}function Jv(t){var{fetch:e,type:n}=t,r=Ei(),i=c.useMemo(()=>[...r.values()].filter(Ci).find(o=>[o.supportedTypes].flat().includes(n)),[r,n]);if(i!=null){var a=i.component;return u.jsx(a,{fetch:e})}throw new Error("Unknown widget type '".concat(n,"'"))}const Zv=Object.freeze(Object.defineProperty({__proto__:null,PersistentStateContext:Td,PersistentStateProvider:jd,PluginType:Ti,PluginsContext:et,WidgetView:Jv,getDashboardPlugins:tu,getIconForPlugin:Wu,getThemeDataFromPlugins:Si,isAuthPlugin:ji,isDashboardPlugin:Hu,isLegacyAuthPlugin:mt,isLegacyDashboardPlugin:Vu,isLegacyPlugin:Ii,isLegacyTablePlugin:Yu,isPlugin:gt,isTablePlugin:Gu,isThemePlugin:Ku,isWidgetPlugin:Ci,pluginSupportsType:qu,useCustomThemes:lo,useDashboardPlugins:nu,usePersistentState:Id,usePlugins:Ei},Symbol.toStringTag,{value:"Module"}));function ey(t){if(t==null)return!1;var e=t;return e.Component!==void 0&&typeof e.isAvailable=="function"}var uo="io.deephaven.auth.AnonymousAuthenticationHandler",ty="io.deephaven.authentication.psk.PskAuthenticationHandler";function wr(t,e,n){return(e=ny(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ny(t){var e=ry(t,"string");return typeof e=="symbol"?e:e+""}function ry(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class co extends Error{constructor(){super(...arguments),wr(this,"name","AuthenticationError"),wr(this,"isAuthenticationError",!0)}}function Or(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function iy(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Or(a,r,i,o,s,"next",l)}function s(l){Or(a,r,i,o,s,"throw",l)}o(void 0)})}}var Sr=H.module("AuthPluginBase");function dn(t){var{children:e,getLoginOptions:n}=t,r=Re(),[i,a]=c.useState(),[o,s]=c.useState(!1);return c.useEffect(()=>{var l=!1;function d(){if(l)throw new ki("Login canceled.")}function f(){return p.apply(this,arguments)}function p(){return p=iy(function*(){try{var h=yield n();d(),Sr.info("Logging in..."),yield r.login(h),d(),s(!0)}catch(x){if(!l){var m;Sr.error("Unable to login:",x);var g=(m=Te(x))!==null&&m!==void 0?m:"Unable to login. Verify credentials.";a(new co(g)),s(!1)}}}),p.apply(this,arguments)}return f(),()=>{l=!0}},[r,n]),o?u.jsx(u.Fragment,{children:e}):u.jsx(fe,{"data-testid":"auth-base-loading",isLoading:i==null,isLoaded:!1,errorMessage:Te(i)})}var ay={canLogout:!1};function oy(t){var{children:e}=t,n=xe(),r=c.useCallback(()=>({type:n.CoreClient.LOGIN_TYPE_ANONYMOUS}),[n]);return u.jsx(dn,{getLoginOptions:r,children:u.jsx(Qe.Provider,{value:ay,children:e})})}var po={Component:oy,isAvailable:t=>t.includes(uo)};function Er(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function sy(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Er(a,r,i,o,s,"next",l)}function s(l){Er(a,r,i,o,s,"throw",l)}o(void 0)})}}var ly=H.module("AuthPluginParent"),uy={canLogout:!1};function cy(t){return t!=null&&typeof t.type=="string"}function dy(){return Tt.apply(this,arguments)}function Tt(){return Tt=sy(function*(){ly.info("Logging in by delegating to parent window...");var t=yield Ht(qa);if(!cy(t))throw new Error("Unexpected login options response: ".concat(t));return t}),Tt.apply(this,arguments)}function py(){var t;return(t=new URLSearchParams(window.location.search).get("authProvider"))!==null&&t!==void 0?t:""}function fy(t){var{children:e}=t;return u.jsx(dn,{getLoginOptions:dy,children:u.jsx(Qe.Provider,{value:uy,children:e})})}var fo={Component:fy,isAvailable:()=>$t()!=null&&py()==="parent"};function ho(t){var{children:e,errorMessage:n,isLoggingIn:r=!1,onSubmit:i}=t;return u.jsxs("form",{className:"login-form",onSubmit:a=>{a.preventDefault(),a.stopPropagation(),i==null||i(a)},children:[u.jsx("div",{className:"flex-spacer"}),u.jsxs("div",{className:"flex-wrapper",children:[u.jsx("fieldset",{disabled:r,className:"container-fluid",children:e}),u.jsx("div",{className:"form-group d-flex justify-content-end align-items-center mb-0",children:u.jsxs("button",{type:"submit",className:A("btn btn-primary",{"btn-spinner":r},{"btn-cancelable":r}),"data-testid":"btn-login",children:[r&&u.jsxs("span",{children:[u.jsx(qe,{className:"mr-2 loading-spinner-vertical-align"}),u.jsx("span",{className:"btn-normal-content",children:"Logging in"}),u.jsx("span",{className:"btn-hover-content",children:"Cancel"})]}),!r&&"Login"]})})]}),u.jsx("div",{className:"flex-spacer",children:n!=null&&u.jsx("p",{className:"error-message mb-0",role:"alert",children:"".concat(n)})})]})}function mo(t){var{children:e,logoPath:n="./logo.png"}=t;return u.jsxs("div",{className:"login-container",children:[u.jsx(Wa,{}),u.jsxs("div",{className:"login-box",children:[u.jsx("div",{className:"logo",children:u.jsx("img",{src:n,alt:"Deephaven Data Labs"})}),e,u.jsxs("p",{className:"footer",children:["© 2016-",new Date().getFullYear()," Deephaven Data Labs LLC. Patent Pending."]})]})]})}function Cr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function ot(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Cr(a,r,i,o,s,"next",l)}function s(l){Cr(a,r,i,o,s,"throw",l)}o(void 0)})}}var jt="io.deephaven.authentication.psk.PskAuthenticationHandler",go="psk",It="io.deephaven.web.client.auth.psk.token",ge=H.module("AuthPluginPsk");function hy(){return new URLSearchParams(window.location.search).get(go)}function my(){ge.debug2("clearWindowToken");var t=new URL(window.location.href);t.searchParams.delete(go),window.history.replaceState(null,"",t.href)}function Tr(){var t;return(t=dt.get(It))!==null&&t!==void 0?t:null}function st(t){ge.debug2("Storing token in cookie",t),t!=null?dt.set(It,t,{secure:!0,sameSite:"strict"}):dt.remove(It)}function gy(t){var{children:e,logoPath:n}=t,r=Re(),i=c.useRef(null),a=c.useRef(null),[o,s]=c.useState(),[l,d]=c.useState(!1),[f,p]=c.useState(!1),[h,m]=c.useState(!1),[g,x]=c.useState(""),v=c.useCallback(function(){var y=ot(function*(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;ge.info("Logging in..."),m(!0);var k=null;try{if(k=r.login({type:jt,token:S}),a.current=k,yield k,ge.info("Logged in successfully"),a.current!==k)return;st(S),p(!0)}catch(V){if(a.current!==k)return;if(d(!0),I){var F;ge.error("Unable to login",V);var L=(F=Te(V))!==null&&F!==void 0?F:"Unable to login: Verify credentials.";s(new co(L))}}m(!1)});return function(S){return y.apply(this,arguments)}}(),[r]),b=c.useCallback(()=>{a.current=null,m(!1)},[]),P=c.useCallback(ot(function*(){ge.debug("onLogin");var y=Tr();f||h||y==null||v(y,!1)}),[f,h,v]),T=c.useCallback(()=>{st(null)},[]);cn(P,T),c.useEffect(()=>{var y=!1;function S(){return I.apply(this,arguments)}function I(){return I=ot(function*(){var k,F=(k=hy())!==null&&k!==void 0?k:Tr();if(my(),F==null){d(!0);return}m(!0);try{yield r.login({type:jt,token:F}),y||(st(F),p(!0),m(!1))}catch{y||(d(!0),m(!1))}}),I.apply(this,arguments)}return S(),()=>{y=!0}},[r]);var j=c.useCallback(()=>{h?b():v(g)},[b,h,v,g]);return c.useEffect(function(){var S;(S=i.current)===null||S===void 0||S.focus()},[i,l]),u.jsxs(u.Fragment,{children:[f&&e,l&&u.jsx(Gt,{in:!f,mountOnEnter:!0,unmountOnExit:!0,children:u.jsx(mo,{logoPath:n,children:u.jsx(ho,{errorMessage:Te(o),isLoggingIn:h,onSubmit:j,children:u.jsxs("div",{className:"form-group",children:[u.jsx("label",{htmlFor:"auth-psk-token-input",children:"Token"}),u.jsx("input",{id:"auth-psk-token-input",name:"token",className:"input-token form-control",type:"text",autoComplete:"username",autoCapitalize:"none",autoCorrect:"off",spellCheck:"false",ref:i,value:g,onChange:y=>{s(void 0),x(y.target.value)}})]})})})}),u.jsx(fe,{"data-testid":"auth-psk-loading",isLoaded:f||l,isLoading:!f&&!l})]})}var vo={Component:gy,isAvailable:t=>t.includes(jt)};function jr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function lt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?jr(Object(n),!0).forEach(function(r){vy(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function vy(t,e,n){return(e=yy(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yy(t){var e=by(t,"string");return typeof e=="symbol"?e:e+""}function by(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Py=H.module("UserUtils");function yo(t,e){return t.get("internal.webClient.appInit.".concat(e))}function bo(t){var e,n,r,i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};function s(v){return yo(t,v)}function l(v,b){var P=s(v);return P==="true"?!0:P==="false"?!1:(P!==void 0&&Py.warn("Unexpected value for ".concat(v,": ").concat(P)),b)}var d=(e=s("name"))!==null&&e!==void 0?e:"",f=(n=s("operateAs"))!==null&&n!==void 0?n:d,p=(r=(i=s("groups"))===null||i===void 0?void 0:i.split(","))!==null&&r!==void 0?r:[],h=l("canCopy",!0),m=l("canDownloadCsv",!0),g=l("canUsePanels",!0),x=l("canLogout",!0);return lt(lt({name:d,operateAs:f,groups:p},a),{},{permissions:lt({canUsePanels:g,canCopy:h,canDownloadCsv:m,canLogout:x},o)})}const xy=Object.freeze(Object.defineProperty({__proto__:null,AUTH_HANDLER_TYPE_ANONYMOUS:uo,AUTH_HANDLER_TYPE_PSK:ty,AuthPluginAnonymous:po,AuthPluginBase:dn,AuthPluginParent:fo,AuthPluginPsk:vo,Login:mo,LoginForm:ho,UserContext:ci,UserOverrideContext:di,UserPermissionsOverrideContext:Qe,getAppInitValue:yo,getUserFromConfig:bo,isAuthPlugin:ey},Symbol.toStringTag,{value:"Module"}));function ye(t,e,n){return(e=wy(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wy(t){var e=Oy(t,"string");return typeof e=="symbol"?e:e+""}function Oy(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class M extends zi{static get theme(){return M._theme==null&&(M._theme=_i()),M._theme}static makeRandomSeries(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:100,i=[],a=[],o=[],s=[],l=new Date("2018-06-01"),d=0;d<r;d+=1){var f=new Date(l.getFullYear(),l.getMonth(),l.getDate()+d-r);i.push("".concat(f.getFullYear(),"-").concat(f.getMonth()+1,"-").concat(f.getDate()));var p=(Math.sin(d/r*e)*r/3+Math.cos(d*.2)*r/6+Math.sin(d*.5)*r/10+M.random()*r/5+d*M.smoothing)*n;p=Math.round(p*100)/100,a.push(p),s.push(40+d*M.smoothing),o.push(Math.sin(d/r*e)*r/3+M.random()*r/10+d*M.smoothing)}return{x:i,y:a,s:o,l:s}}static makeScatter(e){return{name:"SCTR",x:e.x,y:e.y,type:"scatter",mode:"markers",hoverinfo:"skip",marker:{size:5}}}static makeArea(e){return{name:"AREA",x:e.x,y:e.s,type:"scatter",mode:"line",fill:"tozeroy",hoverinfo:"all",line:{width:3}}}static makeTrendline(e){return{name:"Trendline <br>R<sup>2</sup> = 0.91",x:e.x,y:e.l,type:"scatter",mode:"line",hoverinfo:"skip",line:{width:3,dash:"dot"}}}static makeErrorBand(e){for(var n=[],r=[],i=0;i<e.y.length;i+=1){var a=e.y[i];n[i]=Math.round((a+18)*100)/100,r[i]=Math.round((a-18)*100)/100}var o=n.concat(r.reverse());return{name:"error",x:e.x.concat(e.x.slice().reverse()),y:o,type:"scatter",mode:"line",hoverinfo:"skip",fill:"toself",line:{width:0,color:M.theme.error_band_line_color,shape:"spline"}}}static makeLine(e){return{name:"LINE",x:e.x,y:e.y,type:"scatter",mode:"line",hoverinfo:"x+y+text+name",line:{width:3}}}static makeRandomData(){var e=M.makeRandomSeries(6),n=M.makeArea(e),r=M.makeTrendline(e),i=M.makeRandomSeries(2),a=M.makeLine(i),o=M.makeErrorBand(i);return[n,r,a,o]}static makeDefaultLayout(e){var n={template:new Xi(e).makeDefaultTemplate(M.theme)};return n.title="Chart",n.xaxis={title:"Datestamp"},n.yaxis={title:"Price"},n}constructor(e){var{data:n=M.makeRandomData(),layout:r=M.makeDefaultLayout(e),filterFields:i=[]}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(e),ye(this,"data",void 0),ye(this,"filterFields",void 0),ye(this,"layout",void 0),this.data=n,this.layout=r,this.filterFields=i}getData(){return this.data}getLayout(){return this.layout}getFilterColumnMap(){for(var e=new Map,n=0;n<this.filterFields.length;n+=1){var r=this.filterFields[n],i="java.lang.String";e.set(r,{name:r,type:i})}return e}isFilterRequired(){return this.filterFields.length>0}setFilter(){this.fireUpdate(this.data)}}ye(M,"random",Math.random.bind(Math));ye(M,"smoothing",1.5);ye(M,"_theme",void 0);const Sy=Object.freeze(Object.defineProperty({__proto__:null,Chart:kd,ChartModel:zi,ChartModelFactory:_d,ChartThemeContext:zu,ChartThemeProvider:Ri,ChartUtils:Xi,DownsamplingError:sp,FigureChartModel:Rd,MockChartModel:M,Plot:Xu,defaultChartTheme:_i,isFigureChartModel:Dd,isWebGLSupported:Ld,useChartTheme:Qu},Symbol.toStringTag,{value:"Module"}));function Ey(t){var{dashboardProps:e,componentName:n,component:r,supportedTypes:i,hydrate:a,dehydrate:o}=t,{id:s,layout:l,registerComponent:d}=e,f=c.useCallback(p=>{var{dragEvent:h,panelId:m=Lt(),widget:g}=p,{name:x,type:v}=g,b=v!=null&&(Array.isArray(i)&&i.includes(v)||v===i);if(b){var P={localDashboardId:s,metadata:g};a!=null&&(P=a(P,s));var T={type:"react-component",component:n,props:P,title:x??void 0,id:m},{root:j}=l;Di.openComponent({root:j,config:T,dragEvent:h})}},[n,a,s,l,i]);Qi(d,r,a,o),Li(l.eventHub,f)}function Cy(t,e){var n=$s(),r=Ms(a=>Fi(a,t,e)),i=c.useCallback(a=>n(Ai(t,e,a)),[t,e,n]);return[r,i]}const Ty=Object.freeze(Object.defineProperty({__proto__:null,BasePanel:yn,CLOSE_DASHBOARD:Ju,CREATE_DASHBOARD:Zu,DEFAULT_DASHBOARD_ID:ec,DH_ID_PROP:tc,Dashboard:gn,DashboardIdContext:nc,DashboardLayout:rc,DashboardUtils:ic,GLPropTypes:ac,LayoutManagerContext:oc,LayoutUtils:Di,LazyDashboard:ru,Panel:yn,PanelErrorBoundary:sc,PanelEvent:lc,PanelIdContext:uc,PanelManager:cc,SET_DASHBOARD_DATA:dc,TabEvent:pc,assertIsDashboardPluginProps:Fd,canHaveRef:Pi,default:gn,dehydrate:fc,emitCloseDashboard:hc,emitCreateDashboard:mc,emitPanelOpen:gc,getAllDashboardsData:vc,getClosedPanelsForDashboard:yc,getDashboardData:bc,getOpenedPanelMapForDashboard:Pc,getPluginDataForDashboard:Fi,getPluginDataMapForDashboard:xc,hydrate:wc,isDashboardPluginProps:Ad,isWrappedComponent:xi,listenForCloseDashboard:Oc,listenForCreateDashboard:Sc,listenForPanelOpen:Ec,reducers:Cc,setDashboardData:Tc,setDashboardPluginData:Ai,updateDashboardData:jc,useAppDispatch:Ic,useAppSelector:Ni,useAppStore:kc,useCloseDashboardListener:_c,useCreateDashboardListener:Rc,useDashboardId:Dc,useDashboardPanel:Ey,useDashboardPluginData:Cy,useDhId:Lc,useLayoutManager:Nd,useListener:Fc,usePanelId:Ac,usePanelOpenListener:Li,usePanelRegistration:Qi},Symbol.toStringTag,{value:"Module"}));function Po(t){var{children:e}=t,{activeThemes:n}=Je();return c.useEffect(function(){n!=null&&$i.initTheme()},[n]),u.jsx(u.Fragment,{children:e})}var jy={$schema:"http://json-schema.org/draft-07/schema#",title:"Options",type:"object",properties:{"allowed-confusables":{description:'A list of allowed "confusable" Unicode characters to ignore when enforcing `RUF001`, `RUF002`, and `RUF003`.',deprecated:!0,type:["array","null"],items:{type:"string",maxLength:1,minLength:1}},builtins:{description:"A list of builtins to treat as defined references, in addition to the system builtins.",type:["array","null"],items:{type:"string"}},"cache-dir":{description:"A path to the cache directory.\n\nBy default, Ruff stores cache results in a `.ruff_cache` directory in the current project root.\n\nHowever, Ruff will also respect the `RUFF_CACHE_DIR` environment variable, which takes precedence over that default.\n\nThis setting will override even the `RUFF_CACHE_DIR` environment variable, if set.",type:["string","null"]},"dummy-variable-rgx":{description:'A regular expression used to identify "dummy" variables, or those which should be ignored when enforcing (e.g.) unused-variable rules. The default expression matches `_`, `__`, and `_var`, but not `_var_`.',deprecated:!0,type:["string","null"]},exclude:{description:"A list of file patterns to exclude from formatting and linting.\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory named `.mypy_cache` in the tree), `foo.py` (to exclude any file named `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ). - Relative patterns, like `directory/foo.py` (to exclude that specific file) or `directory/*.py` (to exclude any Python files in `directory`). Note that these paths are relative to the project root (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).\n\nNote that you'll typically want to use [`extend-exclude`](#extend-exclude) to modify the excluded paths.",type:["array","null"],items:{type:"string"}},"explicit-preview-rules":{description:"Whether to require exact codes to select preview rules. When enabled, preview rules will not be selected by prefixes — the full code of each preview rule will be required to enable the rule.",deprecated:!0,type:["boolean","null"]},extend:{description:"A path to a local `pyproject.toml` file to merge into this configuration. User home directory and environment variables will be expanded.\n\nTo resolve the current `pyproject.toml` file, Ruff will first resolve this base configuration file, then merge in any properties defined in the current configuration file.",type:["string","null"]},"extend-exclude":{description:"A list of file patterns to omit from formatting and linting, in addition to those specified by [`exclude`](#exclude).\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory named `.mypy_cache` in the tree), `foo.py` (to exclude any file named `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ). - Relative patterns, like `directory/foo.py` (to exclude that specific file) or `directory/*.py` (to exclude any Python files in `directory`). Note that these paths are relative to the project root (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"extend-fixable":{description:"A list of rule codes or prefixes to consider fixable, in addition to those specified by [`fixable`](#lint_fixable).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-ignore":{description:"A list of rule codes or prefixes to ignore, in addition to those specified by `ignore`.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-include":{description:"A list of file patterns to include when linting, in addition to those specified by [`include`](#include).\n\nInclusion are based on globs, and should be single-path patterns, like `*.pyw`, to include any file with the `.pyw` extension.\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"extend-per-file-ignores":{description:"A list of mappings from file pattern to rule codes or prefixes to exclude, in addition to any rules excluded by [`per-file-ignores`](#lint_per-file-ignores).",deprecated:!0,type:["object","null"],additionalProperties:{type:"array",items:{$ref:"#/definitions/RuleSelector"}}},"extend-safe-fixes":{description:"A list of rule codes or prefixes for which unsafe fixes should be considered safe.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-select":{description:"A list of rule codes or prefixes to enable, in addition to those specified by [`select`](#lint_select).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-unfixable":{description:"A list of rule codes or prefixes to consider non-auto-fixable, in addition to those specified by [`unfixable`](#lint_unfixable).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-unsafe-fixes":{description:"A list of rule codes or prefixes for which safe fixes should be considered unsafe.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},external:{description:"A list of rule codes or prefixes that are unsupported by Ruff, but should be preserved when (e.g.) validating `# noqa` directives. Useful for retaining `# noqa` directives that cover plugins not yet implemented by Ruff.",deprecated:!0,type:["array","null"],items:{type:"string"}},fix:{description:"Enable fix behavior by-default when running `ruff` (overridden by the `--fix` and `--no-fix` command-line flags). Only includes automatic fixes unless `--unsafe-fixes` is provided.",type:["boolean","null"]},"fix-only":{description:"Like [`fix`](#fix), but disables reporting on leftover violation. Implies [`fix`](#fix).",type:["boolean","null"]},fixable:{description:"A list of rule codes or prefixes to consider fixable. By default, all rules are considered fixable.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"flake8-annotations":{description:"Options for the `flake8-annotations` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8AnnotationsOptions"},{type:"null"}]},"flake8-bandit":{description:"Options for the `flake8-bandit` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BanditOptions"},{type:"null"}]},"flake8-boolean-trap":{description:"Options for the `flake8-boolean-trap` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BooleanTrapOptions"},{type:"null"}]},"flake8-bugbear":{description:"Options for the `flake8-bugbear` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BugbearOptions"},{type:"null"}]},"flake8-builtins":{description:"Options for the `flake8-builtins` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BuiltinsOptions"},{type:"null"}]},"flake8-comprehensions":{description:"Options for the `flake8-comprehensions` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ComprehensionsOptions"},{type:"null"}]},"flake8-copyright":{description:"Options for the `flake8-copyright` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8CopyrightOptions"},{type:"null"}]},"flake8-errmsg":{description:"Options for the `flake8-errmsg` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ErrMsgOptions"},{type:"null"}]},"flake8-gettext":{description:"Options for the `flake8-gettext` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8GetTextOptions"},{type:"null"}]},"flake8-implicit-str-concat":{description:"Options for the `flake8-implicit-str-concat` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ImplicitStrConcatOptions"},{type:"null"}]},"flake8-import-conventions":{description:"Options for the `flake8-import-conventions` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ImportConventionsOptions"},{type:"null"}]},"flake8-pytest-style":{description:"Options for the `flake8-pytest-style` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8PytestStyleOptions"},{type:"null"}]},"flake8-quotes":{description:"Options for the `flake8-quotes` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8QuotesOptions"},{type:"null"}]},"flake8-self":{description:"Options for the `flake8_self` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8SelfOptions"},{type:"null"}]},"flake8-tidy-imports":{description:"Options for the `flake8-tidy-imports` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8TidyImportsOptions"},{type:"null"}]},"flake8-type-checking":{description:"Options for the `flake8-type-checking` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8TypeCheckingOptions"},{type:"null"}]},"flake8-unused-arguments":{description:"Options for the `flake8-unused-arguments` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8UnusedArgumentsOptions"},{type:"null"}]},"force-exclude":{description:"Whether to enforce [`exclude`](#exclude) and [`extend-exclude`](#extend-exclude) patterns, even for paths that are passed to Ruff explicitly. Typically, Ruff will lint any paths passed in directly, even if they would typically be excluded. Setting `force-exclude = true` will cause Ruff to respect these exclusions unequivocally.\n\nThis is useful for [`pre-commit`](https://pre-commit.com/), which explicitly passes all changed files to the [`ruff-pre-commit`](https://github.com/astral-sh/ruff-pre-commit) plugin, regardless of whether they're marked as excluded by Ruff's own settings.",type:["boolean","null"]},format:{description:"Options to configure code formatting.",anyOf:[{$ref:"#/definitions/FormatOptions"},{type:"null"}]},ignore:{description:"A list of rule codes or prefixes to ignore. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"ignore-init-module-imports":{description:"Avoid automatically removing unused imports in `__init__.py` files. Such imports will still be flagged, but with a dedicated message suggesting that the import is either added to the module's `__all__` symbol, or re-exported with a redundant alias (e.g., `import os as os`).\n\nThis option is enabled by default, but you can opt-in to removal of imports via an unsafe fix.",deprecated:!0,type:["boolean","null"]},include:{description:"A list of file patterns to include when linting.\n\nInclusion are based on globs, and should be single-path patterns, like `*.pyw`, to include any file with the `.pyw` extension. `pyproject.toml` is included here not for configuration but because we lint whether e.g. the `[project]` matches the schema.\n\nNotebook files (`.ipynb` extension) are included by default on Ruff 0.6.0+.\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"indent-width":{description:`The number of spaces per indentation level (tab).
|
|
4
4
|
|
|
5
5
|
Used by the formatter and when enforcing long-line violations (like \`E501\`) to determine the visual width of a tab.
|
|
6
6
|
|
|
@@ -80,5 +80,5 @@ foo, bar, quux = this_is_a_long_line(lion, hippo, lemur, bear) ''' pass \`\`\`
|
|
|
80
80
|
|
|
81
81
|
( foo, bar, quux, ) = this_is_a_long_line( lion, hippo, lemur, bear, ) """ pass \`\`\``,anyOf:[{$ref:"#/definitions/DocstringCodeLineWidth"},{type:"null"}]},exclude:{description:"A list of file patterns to exclude from formatting in addition to the files excluded globally (see [`exclude`](#exclude), and [`extend-exclude`](#extend-exclude)).\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory named `.mypy_cache` in the tree), `foo.py` (to exclude any file named `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ). - Relative patterns, like `directory/foo.py` (to exclude that specific file) or `directory/*.py` (to exclude any Python files in `directory`). Note that these paths are relative to the project root (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"indent-style":{description:'Whether to use spaces or tabs for indentation.\n\n`indent-style = "space"` (default):\n\n```python def f(): print("Hello") # Spaces indent the `print` statement. ```\n\n`indent-style = "tab"`:\n\n```python def f(): print("Hello") # A tab `\\t` indents the `print` statement. ```\n\nPEP 8 recommends using spaces for [indentation](https://peps.python.org/pep-0008/#indentation). We care about accessibility; if you do not need tabs for accessibility, we do not recommend you use them.\n\nSee [`indent-width`](#indent-width) to configure the number of spaces per indentation and the tab width.',anyOf:[{$ref:"#/definitions/IndentStyle"},{type:"null"}]},"line-ending":{description:"The character Ruff uses at the end of a line.\n\n* `auto`: The newline style is detected automatically on a file per file basis. Files with mixed line endings will be converted to the first detected line ending. Defaults to `\\n` for files that contain no line endings. * `lf`: Line endings will be converted to `\\n`. The default line ending on Unix. * `cr-lf`: Line endings will be converted to `\\r\\n`. The default line ending on Windows. * `native`: Line endings will be converted to `\\n` on Unix and `\\r\\n` on Windows.",anyOf:[{$ref:"#/definitions/LineEnding"},{type:"null"}]},preview:{description:"Whether to enable the unstable preview style formatting.",type:["boolean","null"]},"quote-style":{description:'Configures the preferred quote character for strings. The recommended options are\n\n* `double` (default): Use double quotes `"` * `single`: Use single quotes `\'`\n\nIn compliance with [PEP 8](https://peps.python.org/pep-0008/) and [PEP 257](https://peps.python.org/pep-0257/), Ruff prefers double quotes for triple quoted strings and docstrings even when using `quote-style = "single"`.\n\nRuff deviates from using the configured quotes if doing so prevents the need for escaping quote characters inside the string:\n\n```python a = "a string without any quotes" b = "It\'s monday morning" ```\n\nRuff will change the quotes of the string assigned to `a` to single quotes when using `quote-style = "single"`. However, Ruff uses double quotes for the string assigned to `b` because using single quotes would require escaping the `\'`, which leads to the less readable code: `\'It\\\'s monday morning\'`.\n\nIn addition, Ruff supports the quote style `preserve` for projects that already use a mixture of single and double quotes and can\'t migrate to the `double` or `single` style. The quote style `preserve` leaves the quotes of all strings unchanged.',anyOf:[{$ref:"#/definitions/QuoteStyle"},{type:"null"}]},"skip-magic-trailing-comma":{description:"Ruff uses existing trailing commas as an indication that short lines should be left separate. If this option is set to `true`, the magic trailing comma is ignored.\n\nFor example, Ruff leaves the arguments separate even though collapsing the arguments to a single line doesn't exceed the line length if `skip-magic-trailing-comma = false`:\n\n```python # The arguments remain on separate lines because of the trailing comma after `b` def test( a, b, ): pass ```\n\nSetting `skip-magic-trailing-comma = true` changes the formatting to:\n\n```python # The arguments remain on separate lines because of the trailing comma after `b` def test(a, b): pass ```",type:["boolean","null"]}},additionalProperties:!1},ImportSection:{anyOf:[{$ref:"#/definitions/ImportType"},{type:"string"}]},ImportType:{type:"string",enum:["future","standard-library","third-party","first-party","local-folder"]},IndentStyle:{oneOf:[{description:"Use tabs to indent code.",type:"string",enum:["tab"]},{description:"Use [`IndentWidth`] spaces to indent code.",type:"string",enum:["space"]}]},IndentWidth:{description:"The size of a tab.",type:"integer",format:"uint8",minimum:1},IsortOptions:{type:"object",properties:{"case-sensitive":{description:"Sort imports taking into account case sensitivity.",type:["boolean","null"]},classes:{description:"An override list of tokens to always recognize as a Class for [`order-by-type`](#lint_isort_order-by-type) regardless of casing.",type:["array","null"],items:{type:"string"}},"combine-as-imports":{description:"Combines as imports on the same line. See isort's [`combine-as-imports`](https://pycqa.github.io/isort/docs/configuration/options.html#combine-as-imports) option.",type:["boolean","null"]},constants:{description:"An override list of tokens to always recognize as a CONSTANT for [`order-by-type`](#lint_isort_order-by-type) regardless of casing.",type:["array","null"],items:{type:"string"}},"default-section":{description:"Define a default section for any imports that don't fit into the specified [`section-order`](#lint_isort_section-order).",anyOf:[{$ref:"#/definitions/ImportSection"},{type:"null"}]},"detect-same-package":{description:"Whether to automatically mark imports from within the same package as first-party. For example, when `detect-same-package = true`, then when analyzing files within the `foo` package, any imports from within the `foo` package will be considered first-party.\n\nThis heuristic is often unnecessary when `src` is configured to detect all first-party sources; however, if `src` is _not_ configured, this heuristic can be useful to detect first-party imports from _within_ (but not _across_) first-party packages.",type:["boolean","null"]},"extra-standard-library":{description:"A list of modules to consider standard-library, in addition to those known to Ruff in advance.\n\nSupports glob patterns. For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"force-single-line":{description:"Forces all from imports to appear on their own line.",type:["boolean","null"]},"force-sort-within-sections":{description:"Don't sort straight-style imports (like `import sys`) before from-style imports (like `from itertools import groupby`). Instead, sort the imports by module, independent of import style.",type:["boolean","null"]},"force-to-top":{description:"Force specific imports to the top of their appropriate section.",type:["array","null"],items:{type:"string"}},"force-wrap-aliases":{description:"Force `import from` statements with multiple members and at least one alias (e.g., `import A as B`) to wrap such that every line contains exactly one member. For example, this formatting would be retained, rather than condensing to a single line:\n\n```python from .utils import ( test_directory as test_directory, test_id as test_id ) ```\n\nNote that this setting is only effective when combined with `combine-as-imports = true`. When [`combine-as-imports`](#lint_isort_combine-as-imports) isn't enabled, every aliased `import from` will be given its own line, in which case, wrapping is not necessary.\n\nWhen using the formatter, ensure that [`format.skip-magic-trailing-comma`](#format_skip-magic-trailing-comma) is set to `false` (default) when enabling `force-wrap-aliases` to avoid that the formatter collapses members if they all fit on a single line.",type:["boolean","null"]},"forced-separate":{description:"A list of modules to separate into auxiliary block(s) of imports, in the order specified.",type:["array","null"],items:{type:"string"}},"from-first":{description:"Whether to place `import from` imports before straight imports when sorting.\n\nFor example, by default, imports will be sorted such that straight imports appear before `import from` imports, as in: ```python import os import sys from typing import List ```\n\nSetting `from-first = true` will instead sort such that `import from` imports appear before straight imports, as in: ```python from typing import List import os import sys ```",type:["boolean","null"]},"known-first-party":{description:"A list of modules to consider first-party, regardless of whether they can be identified as such via introspection of the local filesystem.\n\nSupports glob patterns. For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"known-local-folder":{description:"A list of modules to consider being a local folder. Generally, this is reserved for relative imports (`from . import module`).\n\nSupports glob patterns. For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"known-third-party":{description:"A list of modules to consider third-party, regardless of whether they can be identified as such via introspection of the local filesystem.\n\nSupports glob patterns. For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"length-sort":{description:"Sort imports by their string length, such that shorter imports appear before longer imports. For example, by default, imports will be sorted alphabetically, as in: ```python import collections import os ```\n\nSetting `length-sort = true` will instead sort such that shorter imports appear before longer imports, as in: ```python import os import collections ```",type:["boolean","null"]},"length-sort-straight":{description:"Sort straight imports by their string length. Similar to [`length-sort`](#lint_isort_length-sort), but applies only to straight imports and doesn't affect `from` imports.",type:["boolean","null"]},"lines-after-imports":{description:"The number of blank lines to place after imports. Use `-1` for automatic determination.\n\nRuff uses at most one blank line after imports in typing stub files (files with `.pyi` extension) in accordance to the typing style recommendations ([source](https://typing.readthedocs.io/en/latest/source/stubs.html#blank-lines)).\n\nWhen using the formatter, only the values `-1`, `1`, and `2` are compatible because it enforces at least one empty and at most two empty lines after imports.",type:["integer","null"],format:"int"},"lines-between-types":{description:'The number of lines to place between "direct" and `import from` imports.\n\nWhen using the formatter, only the values `0` and `1` are compatible because it preserves up to one empty line after imports in nested blocks.',type:["integer","null"],format:"uint",minimum:0},"no-lines-before":{description:"A list of sections that should _not_ be delineated from the previous section via empty lines.",type:["array","null"],items:{$ref:"#/definitions/ImportSection"}},"no-sections":{description:"Put all imports into the same section bucket.\n\nFor example, rather than separating standard library and third-party imports, as in: ```python import os import sys\n\nimport numpy import pandas ```\n\nSetting `no-sections = true` will instead group all imports into a single section: ```python import numpy import os import pandas import sys ```",type:["boolean","null"]},"order-by-type":{description:"Order imports by type, which is determined by case, in addition to alphabetically.",type:["boolean","null"]},"relative-imports-order":{description:'Whether to place "closer" imports (fewer `.` characters, most local) before "further" imports (more `.` characters, least local), or vice versa.\n\nThe default ("furthest-to-closest") is equivalent to isort\'s [`reverse-relative`](https://pycqa.github.io/isort/docs/configuration/options.html#reverse-relative) default (`reverse-relative = false`); setting this to "closest-to-furthest" is equivalent to isort\'s `reverse-relative = true`.',anyOf:[{$ref:"#/definitions/RelativeImportsOrder"},{type:"null"}]},"required-imports":{description:"Add the specified import line to all files.",type:["array","null"],items:{$ref:"#/definitions/NameImports"}},"section-order":{description:"Override in which order the sections should be output. Can be used to move custom sections.",type:["array","null"],items:{$ref:"#/definitions/ImportSection"}},sections:{description:'A list of mappings from section names to modules.\n\nBy default, imports are categorized according to their type (e.g., `future`, `third-party`, and so on). This setting allows you to group modules into custom sections, to augment or override the built-in sections.\n\nFor example, to group all testing utilities, you could create a `testing` section: ```toml testing = ["pytest", "hypothesis"] ```\n\nThe values in the list are treated as glob patterns. For example, to match all packages in the LangChain ecosystem (`langchain-core`, `langchain-openai`, etc.): ```toml langchain = ["langchain-*"] ```\n\nCustom sections should typically be inserted into the [`section-order`](#lint_isort_section-order) list to ensure that they\'re displayed as a standalone group and in the intended order, as in: ```toml section-order = [ "future", "standard-library", "third-party", "first-party", "local-folder", "testing" ] ```\n\nIf a custom section is omitted from [`section-order`](#lint_isort_section-order), imports in that section will be assigned to the [`default-section`](#lint_isort_default-section) (which defaults to `third-party`).',type:["object","null"],additionalProperties:{type:"array",items:{type:"string"}}},"single-line-exclusions":{description:"One or more modules to exclude from the single line rule.",type:["array","null"],items:{type:"string"}},"split-on-trailing-comma":{description:"If a comma is placed after the last member in a multi-line import, then the imports will never be folded into one line.\n\nSee isort's [`split-on-trailing-comma`](https://pycqa.github.io/isort/docs/configuration/options.html#split-on-trailing-comma) option.\n\nWhen using the formatter, ensure that [`format.skip-magic-trailing-comma`](#format_skip-magic-trailing-comma) is set to `false` (default) when enabling `split-on-trailing-comma` to avoid that the formatter removes the trailing commas.",type:["boolean","null"]},variables:{description:"An override list of tokens to always recognize as a var for [`order-by-type`](#lint_isort_order-by-type) regardless of casing.",type:["array","null"],items:{type:"string"}}},additionalProperties:!1},LineEnding:{oneOf:[{description:"The newline style is detected automatically on a file per file basis. Files with mixed line endings will be converted to the first detected line ending. Defaults to [`LineEnding::Lf`] for a files that contain no line endings.",type:"string",enum:["auto"]},{description:"Line endings will be converted to `\\n` as is common on Unix.",type:"string",enum:["lf"]},{description:"Line endings will be converted to `\\r\\n` as is common on Windows.",type:"string",enum:["cr-lf"]},{description:"Line endings will be converted to `\\n` on Unix and `\\r\\n` on Windows.",type:"string",enum:["native"]}]},LineLength:{description:`The length of a line of text that is considered too long.
|
|
82
82
|
|
|
83
|
-
The allowed range of values is 1..=320`,type:"integer",format:"uint16",maximum:320,minimum:1},LineWidth:{description:"The maximum visual width to which the formatter should try to limit a line.",type:"integer",format:"uint16",minimum:1},LintOptions:{description:"Configures how Ruff checks your code.\n\nOptions specified in the `lint` section take precedence over the deprecated top-level settings.",type:"object",properties:{"allowed-confusables":{description:'A list of allowed "confusable" Unicode characters to ignore when enforcing `RUF001`, `RUF002`, and `RUF003`.',type:["array","null"],items:{type:"string",maxLength:1,minLength:1}},"dummy-variable-rgx":{description:'A regular expression used to identify "dummy" variables, or those which should be ignored when enforcing (e.g.) unused-variable rules. The default expression matches `_`, `__`, and `_var`, but not `_var_`.',type:["string","null"]},exclude:{description:"A list of file patterns to exclude from linting in addition to the files excluded globally (see [`exclude`](#exclude), and [`extend-exclude`](#extend-exclude)).\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory named `.mypy_cache` in the tree), `foo.py` (to exclude any file named `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ). - Relative patterns, like `directory/foo.py` (to exclude that specific file) or `directory/*.py` (to exclude any Python files in `directory`). Note that these paths are relative to the project root (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"explicit-preview-rules":{description:"Whether to require exact codes to select preview rules. When enabled, preview rules will not be selected by prefixes — the full code of each preview rule will be required to enable the rule.",type:["boolean","null"]},"extend-fixable":{description:"A list of rule codes or prefixes to consider fixable, in addition to those specified by [`fixable`](#lint_fixable).",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-ignore":{description:"A list of rule codes or prefixes to ignore, in addition to those specified by `ignore`.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-per-file-ignores":{description:"A list of mappings from file pattern to rule codes or prefixes to exclude, in addition to any rules excluded by [`per-file-ignores`](#lint_per-file-ignores).",type:["object","null"],additionalProperties:{type:"array",items:{$ref:"#/definitions/RuleSelector"}}},"extend-safe-fixes":{description:"A list of rule codes or prefixes for which unsafe fixes should be considered safe.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-select":{description:"A list of rule codes or prefixes to enable, in addition to those specified by [`select`](#lint_select).",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-unfixable":{description:"A list of rule codes or prefixes to consider non-auto-fixable, in addition to those specified by [`unfixable`](#lint_unfixable).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-unsafe-fixes":{description:"A list of rule codes or prefixes for which safe fixes should be considered unsafe.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},external:{description:"A list of rule codes or prefixes that are unsupported by Ruff, but should be preserved when (e.g.) validating `# noqa` directives. Useful for retaining `# noqa` directives that cover plugins not yet implemented by Ruff.",type:["array","null"],items:{type:"string"}},fixable:{description:"A list of rule codes or prefixes to consider fixable. By default, all rules are considered fixable.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"flake8-annotations":{description:"Options for the `flake8-annotations` plugin.",anyOf:[{$ref:"#/definitions/Flake8AnnotationsOptions"},{type:"null"}]},"flake8-bandit":{description:"Options for the `flake8-bandit` plugin.",anyOf:[{$ref:"#/definitions/Flake8BanditOptions"},{type:"null"}]},"flake8-boolean-trap":{description:"Options for the `flake8-boolean-trap` plugin.",anyOf:[{$ref:"#/definitions/Flake8BooleanTrapOptions"},{type:"null"}]},"flake8-bugbear":{description:"Options for the `flake8-bugbear` plugin.",anyOf:[{$ref:"#/definitions/Flake8BugbearOptions"},{type:"null"}]},"flake8-builtins":{description:"Options for the `flake8-builtins` plugin.",anyOf:[{$ref:"#/definitions/Flake8BuiltinsOptions"},{type:"null"}]},"flake8-comprehensions":{description:"Options for the `flake8-comprehensions` plugin.",anyOf:[{$ref:"#/definitions/Flake8ComprehensionsOptions"},{type:"null"}]},"flake8-copyright":{description:"Options for the `flake8-copyright` plugin.",anyOf:[{$ref:"#/definitions/Flake8CopyrightOptions"},{type:"null"}]},"flake8-errmsg":{description:"Options for the `flake8-errmsg` plugin.",anyOf:[{$ref:"#/definitions/Flake8ErrMsgOptions"},{type:"null"}]},"flake8-gettext":{description:"Options for the `flake8-gettext` plugin.",anyOf:[{$ref:"#/definitions/Flake8GetTextOptions"},{type:"null"}]},"flake8-implicit-str-concat":{description:"Options for the `flake8-implicit-str-concat` plugin.",anyOf:[{$ref:"#/definitions/Flake8ImplicitStrConcatOptions"},{type:"null"}]},"flake8-import-conventions":{description:"Options for the `flake8-import-conventions` plugin.",anyOf:[{$ref:"#/definitions/Flake8ImportConventionsOptions"},{type:"null"}]},"flake8-pytest-style":{description:"Options for the `flake8-pytest-style` plugin.",anyOf:[{$ref:"#/definitions/Flake8PytestStyleOptions"},{type:"null"}]},"flake8-quotes":{description:"Options for the `flake8-quotes` plugin.",anyOf:[{$ref:"#/definitions/Flake8QuotesOptions"},{type:"null"}]},"flake8-self":{description:"Options for the `flake8_self` plugin.",anyOf:[{$ref:"#/definitions/Flake8SelfOptions"},{type:"null"}]},"flake8-tidy-imports":{description:"Options for the `flake8-tidy-imports` plugin.",anyOf:[{$ref:"#/definitions/Flake8TidyImportsOptions"},{type:"null"}]},"flake8-type-checking":{description:"Options for the `flake8-type-checking` plugin.",anyOf:[{$ref:"#/definitions/Flake8TypeCheckingOptions"},{type:"null"}]},"flake8-unused-arguments":{description:"Options for the `flake8-unused-arguments` plugin.",anyOf:[{$ref:"#/definitions/Flake8UnusedArgumentsOptions"},{type:"null"}]},ignore:{description:"A list of rule codes or prefixes to ignore. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"ignore-init-module-imports":{description:"Avoid automatically removing unused imports in `__init__.py` files. Such imports will still be flagged, but with a dedicated message suggesting that the import is either added to the module's `__all__` symbol, or re-exported with a redundant alias (e.g., `import os as os`).\n\nThis option is enabled by default, but you can opt-in to removal of imports via an unsafe fix.",deprecated:!0,type:["boolean","null"]},isort:{description:"Options for the `isort` plugin.",anyOf:[{$ref:"#/definitions/IsortOptions"},{type:"null"}]},"logger-objects":{description:'A list of objects that should be treated equivalently to a `logging.Logger` object.\n\nThis is useful for ensuring proper diagnostics (e.g., to identify `logging` deprecations and other best-practices) for projects that re-export a `logging.Logger` object from a common module.\n\nFor example, if you have a module `logging_setup.py` with the following contents: ```python import logging\n\nlogger = logging.getLogger(__name__) ```\n\nAdding `"logging_setup.logger"` to `logger-objects` will ensure that `logging_setup.logger` is treated as a `logging.Logger` object when imported from other modules (e.g., `from logging_setup import logger`).',type:["array","null"],items:{type:"string"}},mccabe:{description:"Options for the `mccabe` plugin.",anyOf:[{$ref:"#/definitions/McCabeOptions"},{type:"null"}]},"pep8-naming":{description:"Options for the `pep8-naming` plugin.",anyOf:[{$ref:"#/definitions/Pep8NamingOptions"},{type:"null"}]},"per-file-ignores":{description:"A list of mappings from file pattern to rule codes or prefixes to exclude, when considering any matching files. An initial '!' negates the file pattern.",type:["object","null"],additionalProperties:{type:"array",items:{$ref:"#/definitions/RuleSelector"}}},preview:{description:"Whether to enable preview mode. When preview mode is enabled, Ruff will use unstable rules and fixes.",type:["boolean","null"]},pycodestyle:{description:"Options for the `pycodestyle` plugin.",anyOf:[{$ref:"#/definitions/PycodestyleOptions"},{type:"null"}]},pydocstyle:{description:"Options for the `pydocstyle` plugin.",anyOf:[{$ref:"#/definitions/PydocstyleOptions"},{type:"null"}]},pyflakes:{description:"Options for the `pyflakes` plugin.",anyOf:[{$ref:"#/definitions/PyflakesOptions"},{type:"null"}]},pylint:{description:"Options for the `pylint` plugin.",anyOf:[{$ref:"#/definitions/PylintOptions"},{type:"null"}]},pyupgrade:{description:"Options for the `pyupgrade` plugin.",anyOf:[{$ref:"#/definitions/PyUpgradeOptions"},{type:"null"}]},ruff:{description:"Options for the `ruff` plugin",anyOf:[{$ref:"#/definitions/RuffOptions"},{type:"null"}]},select:{description:"A list of rule codes or prefixes to enable. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"task-tags":{description:'A list of task tags to recognize (e.g., "TODO", "FIXME", "XXX").\n\nComments starting with these tags will be ignored by commented-out code detection (`ERA`), and skipped by line-length rules (`E501`) if [`ignore-overlong-task-comments`](#lint_pycodestyle_ignore-overlong-task-comments) is set to `true`.',type:["array","null"],items:{type:"string"}},"typing-modules":{description:"A list of modules whose exports should be treated equivalently to members of the `typing` module.\n\nThis is useful for ensuring proper type annotation inference for projects that re-export `typing` and `typing_extensions` members from a compatibility module. If omitted, any members imported from modules apart from `typing` and `typing_extensions` will be treated as ordinary Python objects.",type:["array","null"],items:{type:"string"}},unfixable:{description:"A list of rule codes or prefixes to consider non-fixable.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}}},additionalProperties:!1},McCabeOptions:{type:"object",properties:{"max-complexity":{description:"The maximum McCabe complexity to allow before triggering `C901` errors.",type:["integer","null"],format:"uint",minimum:0}},additionalProperties:!1},NameImports:{type:"string"},OutputFormat:{oneOf:[{type:"string",enum:["concise","full","json","json-lines","junit","grouped","github","gitlab","pylint","rdjson","azure","sarif"]},{deprecated:!0,type:"string",enum:["text"]}]},ParametrizeNameType:{type:"string",enum:["csv","tuple","list"]},ParametrizeValuesRowType:{type:"string",enum:["tuple","list"]},ParametrizeValuesType:{type:"string",enum:["tuple","list"]},Pep8NamingOptions:{type:"object",properties:{"classmethod-decorators":{description:"A list of decorators that, when applied to a method, indicate that the method should be treated as a class method (in addition to the builtin `@classmethod`).\n\nFor example, Ruff will expect that any method decorated by a decorator in this list takes a `cls` argument as its first argument.\n\nExpects to receive a list of fully-qualified names (e.g., `pydantic.validator`, rather than `validator`) or alternatively a plain name which is then matched against the last segment in case the decorator itself consists of a dotted name.",type:["array","null"],items:{type:"string"}},"extend-ignore-names":{description:'Additional names (or patterns) to ignore when considering `pep8-naming` violations, in addition to those included in [`ignore-names`](#lint_pep8-naming_ignore-names).\n\nSupports glob patterns. For example, to ignore all names starting with `test_` or ending with `_test`, you could use `ignore-names = ["test_*", "*_test"]`. For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).',type:["array","null"],items:{type:"string"}},"ignore-names":{description:'A list of names (or patterns) to ignore when considering `pep8-naming` violations.\n\nSupports glob patterns. For example, to ignore all names starting with `test_` or ending with `_test`, you could use `ignore-names = ["test_*", "*_test"]`. For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).',type:["array","null"],items:{type:"string"}},"staticmethod-decorators":{description:"A list of decorators that, when applied to a method, indicate that the method should be treated as a static method (in addition to the builtin `@staticmethod`).\n\nFor example, Ruff will expect that any method decorated by a decorator in this list has no `self` or `cls` argument.\n\nExpects to receive a list of fully-qualified names (e.g., `belay.Device.teardown`, rather than `teardown`) or alternatively a plain name which is then matched against the last segment in case the decorator itself consists of a dotted name.",type:["array","null"],items:{type:"string"}}},additionalProperties:!1},PyUpgradeOptions:{type:"object",properties:{"keep-runtime-typing":{description:"Whether to avoid [PEP 585](https://peps.python.org/pep-0585/) (`List[int]` -> `list[int]`) and [PEP 604](https://peps.python.org/pep-0604/) (`Union[str, int]` -> `str | int`) rewrites even if a file imports `from __future__ import annotations`.\n\nThis setting is only applicable when the target Python version is below 3.9 and 3.10 respectively, and is most commonly used when working with libraries like Pydantic and FastAPI, which rely on the ability to parse type annotations at runtime. The use of `from __future__ import annotations` causes Python to treat the type annotations as strings, which typically allows for the use of language features that appear in later Python versions but are not yet supported by the current version (e.g., `str | int`). However, libraries that rely on runtime type annotations will break if the annotations are incompatible with the current Python version.\n\nFor example, while the following is valid Python 3.8 code due to the presence of `from __future__ import annotations`, the use of `str | int` prior to Python 3.10 will cause Pydantic to raise a `TypeError` at runtime:\n\n```python from __future__ import annotations\n\nimport pydantic\n\nclass Foo(pydantic.BaseModel): bar: str | int ```",type:["boolean","null"]}},additionalProperties:!1},PycodestyleOptions:{type:"object",properties:{"ignore-overlong-task-comments":{description:'Whether line-length violations (`E501`) should be triggered for comments starting with [`task-tags`](#lint_task-tags) (by default: "TODO", "FIXME", and "XXX").',type:["boolean","null"]},"max-doc-length":{description:"The maximum line length to allow for [`doc-line-too-long`](https://docs.astral.sh/ruff/rules/doc-line-too-long/) violations within documentation (`W505`), including standalone comments. By default, this is set to `null` which disables reporting violations.\n\nThe length is determined by the number of characters per line, except for lines containing Asian characters or emojis. For these lines, the [unicode width](https://unicode.org/reports/tr11/) of each character is added up to determine the length.\n\nSee the [`doc-line-too-long`](https://docs.astral.sh/ruff/rules/doc-line-too-long/) rule for more information.",anyOf:[{$ref:"#/definitions/LineLength"},{type:"null"}]},"max-line-length":{description:"The maximum line length to allow for [`line-too-long`](https://docs.astral.sh/ruff/rules/line-too-long/) violations. By default, this is set to the value of the [`line-length`](#line-length) option.\n\nUse this option when you want to detect extra-long lines that the formatter can't automatically split by setting `pycodestyle.line-length` to a value larger than [`line-length`](#line-length).\n\n```toml # The formatter wraps lines at a length of 88. line-length = 88\n\n[pycodestyle] # E501 reports lines that exceed the length of 100. max-line-length = 100 ```\n\nThe length is determined by the number of characters per line, except for lines containing East Asian characters or emojis. For these lines, the [unicode width](https://unicode.org/reports/tr11/) of each character is added up to determine the length.\n\nSee the [`line-too-long`](https://docs.astral.sh/ruff/rules/line-too-long/) rule for more information.",anyOf:[{$ref:"#/definitions/LineLength"},{type:"null"}]}},additionalProperties:!1},PydocstyleOptions:{type:"object",properties:{convention:{description:'Whether to use Google-style, NumPy-style conventions, or the [PEP 257](https://peps.python.org/pep-0257/) defaults when analyzing docstring sections.\n\nEnabling a convention will disable all rules that are not included in the specified convention. As such, the intended workflow is to enable a convention and then selectively enable or disable any additional rules on top of it.\n\nFor example, to use Google-style conventions but avoid requiring documentation for every function parameter:\n\n```toml [tool.ruff.lint] # Enable all `pydocstyle` rules, limiting to those that adhere to the # Google convention via `convention = "google"`, below. select = ["D"]\n\n# On top of the Google convention, disable `D417`, which requires # documentation for every function parameter. ignore = ["D417"]\n\n[tool.ruff.lint.pydocstyle] convention = "google" ```\n\nTo enable an additional rule that\'s excluded from the convention, select the desired rule via its fully qualified rule code (e.g., `D400` instead of `D4` or `D40`):\n\n```toml [tool.ruff.lint] # Enable D400 on top of the Google convention. extend-select = ["D400"]\n\n[tool.ruff.lint.pydocstyle] convention = "google" ```',anyOf:[{$ref:"#/definitions/Convention"},{type:"null"}]},"ignore-decorators":{description:"Ignore docstrings for functions or methods decorated with the specified fully-qualified decorators.",type:["array","null"],items:{type:"string"}},"property-decorators":{description:"A list of decorators that, when applied to a method, indicate that the method should be treated as a property (in addition to the builtin `@property` and standard-library `@functools.cached_property`).\n\nFor example, Ruff will expect that any method decorated by a decorator in this list can use a non-imperative summary line.",type:["array","null"],items:{type:"string"}}},additionalProperties:!1},PyflakesOptions:{type:"object",properties:{"extend-generics":{description:'Additional functions or classes to consider generic, such that any subscripts should be treated as type annotation (e.g., `ForeignKey` in `django.db.models.ForeignKey["User"]`.\n\nExpects to receive a list of fully-qualified names (e.g., `django.db.models.ForeignKey`, rather than `ForeignKey`).',type:["array","null"],items:{type:"string"}}},additionalProperties:!1},PylintOptions:{type:"object",properties:{"allow-dunder-method-names":{description:"Dunder methods name to allow, in addition to the default set from the Python standard library (see `PLW3201`).",type:["array","null"],items:{type:"string"},uniqueItems:!0},"allow-magic-value-types":{description:'Constant types to ignore when used as "magic values" (see `PLR2004`).',type:["array","null"],items:{$ref:"#/definitions/ConstantType"}},"max-args":{description:"Maximum number of arguments allowed for a function or method definition (see `PLR0913`).",type:["integer","null"],format:"uint",minimum:0},"max-bool-expr":{description:"Maximum number of Boolean expressions allowed within a single `if` statement (see `PLR0916`).",type:["integer","null"],format:"uint",minimum:0},"max-branches":{description:"Maximum number of branches allowed for a function or method body (see `PLR0912`).",type:["integer","null"],format:"uint",minimum:0},"max-locals":{description:"Maximum number of local variables allowed for a function or method body (see `PLR0914`).",type:["integer","null"],format:"uint",minimum:0},"max-nested-blocks":{description:"Maximum number of nested blocks allowed within a function or method body (see `PLR1702`).",type:["integer","null"],format:"uint",minimum:0},"max-positional-args":{description:"Maximum number of positional arguments allowed for a function or method definition (see `PLR0917`).\n\nIf not specified, defaults to the value of `max-args`.",type:["integer","null"],format:"uint",minimum:0},"max-public-methods":{description:"Maximum number of public methods allowed for a class (see `PLR0904`).",type:["integer","null"],format:"uint",minimum:0},"max-returns":{description:"Maximum number of return statements allowed for a function or method body (see `PLR0911`)",type:["integer","null"],format:"uint",minimum:0},"max-statements":{description:"Maximum number of statements allowed for a function or method body (see `PLR0915`).",type:["integer","null"],format:"uint",minimum:0}},additionalProperties:!1},PythonVersion:{type:"string",enum:["py37","py38","py39","py310","py311","py312","py313"]},Quote:{oneOf:[{description:"Use double quotes.",type:"string",enum:["double"]},{description:"Use single quotes.",type:"string",enum:["single"]}]},QuoteStyle:{type:"string",enum:["single","double","preserve"]},RelativeImportsOrder:{oneOf:[{description:'Place "closer" imports (fewer `.` characters, most local) before "further" imports (more `.` characters, least local).',type:"string",enum:["closest-to-furthest"]},{description:'Place "further" imports (more `.` characters, least local) imports before "closer" imports (fewer `.` characters, most local).',type:"string",enum:["furthest-to-closest"]}]},RequiredVersion:{type:"string"},RuffOptions:{type:"object",properties:{"parenthesize-tuple-in-subscript":{description:"Whether to prefer accessing items keyed by tuples with parentheses around the tuple (see `RUF031`).",type:["boolean","null"]}},additionalProperties:!1},RuleSelector:{type:"string",enum:["A","A0","A00","A001","A002","A003","A004","A005","A006","AIR","AIR0","AIR00","AIR001","ALL","ANN","ANN0","ANN00","ANN001","ANN002","ANN003","ANN1","ANN10","ANN101","ANN102","ANN2","ANN20","ANN201","ANN202","ANN204","ANN205","ANN206","ANN4","ANN40","ANN401","ARG","ARG0","ARG00","ARG001","ARG002","ARG003","ARG004","ARG005","ASYNC","ASYNC1","ASYNC10","ASYNC100","ASYNC105","ASYNC109","ASYNC11","ASYNC110","ASYNC115","ASYNC116","ASYNC2","ASYNC21","ASYNC210","ASYNC22","ASYNC220","ASYNC221","ASYNC222","ASYNC23","ASYNC230","ASYNC25","ASYNC251","B","B0","B00","B002","B003","B004","B005","B006","B007","B008","B009","B01","B010","B011","B012","B013","B014","B015","B016","B017","B018","B019","B02","B020","B021","B022","B023","B024","B025","B026","B027","B028","B029","B03","B030","B031","B032","B033","B034","B035","B039","B9","B90","B901","B904","B905","B909","BLE","BLE0","BLE00","BLE001","C","C4","C40","C400","C401","C402","C403","C404","C405","C406","C408","C409","C41","C410","C411","C413","C414","C415","C416","C417","C418","C419","C42","C420","C9","C90","C901","COM","COM8","COM81","COM812","COM818","COM819","CPY","CPY0","CPY00","CPY001","D","D1","D10","D100","D101","D102","D103","D104","D105","D106","D107","D2","D20","D200","D201","D202","D203","D204","D205","D206","D207","D208","D209","D21","D210","D211","D212","D213","D214","D215","D3","D30","D300","D301","D4","D40","D400","D401","D402","D403","D404","D405","D406","D407","D408","D409","D41","D410","D411","D412","D413","D414","D415","D416","D417","D418","D419","DJ","DJ0","DJ00","DJ001","DJ003","DJ006","DJ007","DJ008","DJ01","DJ012","DJ013","DOC","DOC2","DOC20","DOC201","DOC202","DOC4","DOC40","DOC402","DOC403","DOC5","DOC50","DOC501","DOC502","DTZ","DTZ0","DTZ00","DTZ001","DTZ002","DTZ003","DTZ004","DTZ005","DTZ006","DTZ007","DTZ01","DTZ011","DTZ012","E","E1","E10","E101","E11","E111","E112","E113","E114","E115","E116","E117","E2","E20","E201","E202","E203","E204","E21","E211","E22","E221","E222","E223","E224","E225","E226","E227","E228","E23","E231","E24","E241","E242","E25","E251","E252","E26","E261","E262","E265","E266","E27","E271","E272","E273","E274","E275","E3","E30","E301","E302","E303","E304","E305","E306","E4","E40","E401","E402","E5","E50","E501","E502","E7","E70","E701","E702","E703","E71","E711","E712","E713","E714","E72","E721","E722","E73","E731","E74","E741","E742","E743","E9","E90","E902","E99","E999","EM","EM1","EM10","EM101","EM102","EM103","ERA","ERA0","ERA00","ERA001","EXE","EXE0","EXE00","EXE001","EXE002","EXE003","EXE004","EXE005","F","F4","F40","F401","F402","F403","F404","F405","F406","F407","F5","F50","F501","F502","F503","F504","F505","F506","F507","F508","F509","F52","F521","F522","F523","F524","F525","F54","F541","F6","F60","F601","F602","F62","F621","F622","F63","F631","F632","F633","F634","F7","F70","F701","F702","F704","F706","F707","F72","F722","F8","F81","F811","F82","F821","F822","F823","F84","F841","F842","F9","F90","F901","FA","FA1","FA10","FA100","FA102","FAST","FAST0","FAST00","FAST001","FAST002","FAST003","FBT","FBT0","FBT00","FBT001","FBT002","FBT003","FIX","FIX0","FIX00","FIX001","FIX002","FIX003","FIX004","FLY","FLY0","FLY00","FLY002","FURB","FURB1","FURB10","FURB101","FURB103","FURB105","FURB11","FURB110","FURB113","FURB116","FURB118","FURB12","FURB129","FURB13","FURB131","FURB132","FURB136","FURB14","FURB140","FURB142","FURB145","FURB148","FURB15","FURB152","FURB154","FURB157","FURB16","FURB161","FURB163","FURB164","FURB166","FURB167","FURB168","FURB169","FURB17","FURB171","FURB177","FURB18","FURB180","FURB181","FURB187","FURB19","FURB192","G","G0","G00","G001","G002","G003","G004","G01","G010","G1","G10","G101","G2","G20","G201","G202","I","I0","I00","I001","I002","ICN","ICN0","ICN00","ICN001","ICN002","ICN003","INP","INP0","INP00","INP001","INT","INT0","INT00","INT001","INT002","INT003","ISC","ISC0","ISC00","ISC001","ISC002","ISC003","LOG","LOG0","LOG00","LOG001","LOG002","LOG007","LOG009","N","N8","N80","N801","N802","N803","N804","N805","N806","N807","N81","N811","N812","N813","N814","N815","N816","N817","N818","N9","N99","N999","NPY","NPY0","NPY00","NPY001","NPY002","NPY003","NPY2","NPY20","NPY201","PD","PD0","PD00","PD002","PD003","PD004","PD007","PD008","PD009","PD01","PD010","PD011","PD012","PD013","PD015","PD1","PD10","PD101","PD9","PD90","PD901","PERF","PERF1","PERF10","PERF101","PERF102","PERF2","PERF20","PERF203","PERF4","PERF40","PERF401","PERF402","PERF403","PGH","PGH0","PGH00","PGH003","PGH004","PGH005","PIE","PIE7","PIE79","PIE790","PIE794","PIE796","PIE8","PIE80","PIE800","PIE804","PIE807","PIE808","PIE81","PIE810","PL","PLC","PLC0","PLC01","PLC010","PLC0105","PLC013","PLC0131","PLC0132","PLC02","PLC020","PLC0205","PLC0206","PLC0208","PLC04","PLC041","PLC0414","PLC0415","PLC1","PLC19","PLC190","PLC1901","PLC2","PLC24","PLC240","PLC2401","PLC2403","PLC27","PLC270","PLC2701","PLC28","PLC280","PLC2801","PLC3","PLC30","PLC300","PLC3002","PLE","PLE0","PLE01","PLE010","PLE0100","PLE0101","PLE011","PLE0115","PLE0116","PLE0117","PLE0118","PLE02","PLE023","PLE0237","PLE024","PLE0241","PLE03","PLE030","PLE0302","PLE0303","PLE0304","PLE0305","PLE0307","PLE0308","PLE0309","PLE06","PLE060","PLE0604","PLE0605","PLE064","PLE0643","PLE07","PLE070","PLE0704","PLE1","PLE11","PLE113","PLE1132","PLE114","PLE1141","PLE1142","PLE12","PLE120","PLE1205","PLE1206","PLE13","PLE130","PLE1300","PLE1307","PLE131","PLE1310","PLE15","PLE150","PLE1507","PLE151","PLE1519","PLE152","PLE1520","PLE17","PLE170","PLE1700","PLE2","PLE25","PLE250","PLE2502","PLE251","PLE2510","PLE2512","PLE2513","PLE2514","PLE2515","PLE4","PLE47","PLE470","PLE4703","PLR","PLR0","PLR01","PLR012","PLR0124","PLR013","PLR0133","PLR02","PLR020","PLR0202","PLR0203","PLR0206","PLR04","PLR040","PLR0402","PLR09","PLR090","PLR0904","PLR091","PLR0911","PLR0912","PLR0913","PLR0914","PLR0915","PLR0916","PLR0917","PLR1","PLR17","PLR170","PLR1702","PLR1704","PLR171","PLR1711","PLR1714","PLR172","PLR1722","PLR173","PLR1730","PLR1733","PLR1736","PLR2","PLR20","PLR200","PLR2004","PLR204","PLR2044","PLR5","PLR55","PLR550","PLR5501","PLR6","PLR61","PLR610","PLR6104","PLR62","PLR620","PLR6201","PLR63","PLR630","PLR6301","PLW","PLW0","PLW01","PLW010","PLW0108","PLW012","PLW0120","PLW0127","PLW0128","PLW0129","PLW013","PLW0131","PLW0133","PLW017","PLW0177","PLW02","PLW021","PLW0211","PLW024","PLW0245","PLW04","PLW040","PLW0406","PLW06","PLW060","PLW0602","PLW0603","PLW0604","PLW064","PLW0642","PLW07","PLW071","PLW0711","PLW1","PLW15","PLW150","PLW1501","PLW1508","PLW1509","PLW151","PLW1510","PLW1514","PLW16","PLW164","PLW1641","PLW2","PLW21","PLW210","PLW2101","PLW29","PLW290","PLW2901","PLW3","PLW32","PLW320","PLW3201","PLW33","PLW330","PLW3301","PT","PT0","PT00","PT001","PT002","PT003","PT004","PT005","PT006","PT007","PT008","PT009","PT01","PT010","PT011","PT012","PT013","PT014","PT015","PT016","PT017","PT018","PT019","PT02","PT020","PT021","PT022","PT023","PT024","PT025","PT026","PT027","PTH","PTH1","PTH10","PTH100","PTH101","PTH102","PTH103","PTH104","PTH105","PTH106","PTH107","PTH108","PTH109","PTH11","PTH110","PTH111","PTH112","PTH113","PTH114","PTH115","PTH116","PTH117","PTH118","PTH119","PTH12","PTH120","PTH121","PTH122","PTH123","PTH124","PTH2","PTH20","PTH201","PTH202","PTH203","PTH204","PTH205","PTH206","PTH207","PYI","PYI0","PYI00","PYI001","PYI002","PYI003","PYI004","PYI005","PYI006","PYI007","PYI008","PYI009","PYI01","PYI010","PYI011","PYI012","PYI013","PYI014","PYI015","PYI016","PYI017","PYI018","PYI019","PYI02","PYI020","PYI021","PYI024","PYI025","PYI026","PYI029","PYI03","PYI030","PYI032","PYI033","PYI034","PYI035","PYI036","PYI04","PYI041","PYI042","PYI043","PYI044","PYI045","PYI046","PYI047","PYI048","PYI049","PYI05","PYI050","PYI051","PYI052","PYI053","PYI054","PYI055","PYI056","PYI057","PYI058","PYI059","PYI06","PYI062","PYI063","PYI064","PYI066","Q","Q0","Q00","Q000","Q001","Q002","Q003","Q004","RET","RET5","RET50","RET501","RET502","RET503","RET504","RET505","RET506","RET507","RET508","RSE","RSE1","RSE10","RSE102","RUF","RUF0","RUF00","RUF001","RUF002","RUF003","RUF005","RUF006","RUF007","RUF008","RUF009","RUF01","RUF010","RUF012","RUF013","RUF015","RUF016","RUF017","RUF018","RUF019","RUF02","RUF020","RUF021","RUF022","RUF023","RUF024","RUF026","RUF027","RUF028","RUF029","RUF03","RUF030","RUF031","RUF032","RUF033","RUF034","RUF1","RUF10","RUF100","RUF101","RUF2","RUF20","RUF200","S","S1","S10","S101","S102","S103","S104","S105","S106","S107","S108","S11","S110","S112","S113","S2","S20","S201","S202","S3","S30","S301","S302","S303","S304","S305","S306","S307","S308","S31","S310","S311","S312","S313","S314","S315","S316","S317","S318","S319","S32","S320","S321","S323","S324","S4","S40","S401","S402","S403","S404","S405","S406","S407","S408","S409","S41","S411","S412","S413","S415","S5","S50","S501","S502","S503","S504","S505","S506","S507","S508","S509","S6","S60","S601","S602","S603","S604","S605","S606","S607","S608","S609","S61","S610","S611","S612","S7","S70","S701","S702","SIM","SIM1","SIM10","SIM101","SIM102","SIM103","SIM105","SIM107","SIM108","SIM109","SIM11","SIM110","SIM112","SIM113","SIM114","SIM115","SIM116","SIM117","SIM118","SIM2","SIM20","SIM201","SIM202","SIM208","SIM21","SIM210","SIM211","SIM212","SIM22","SIM220","SIM221","SIM222","SIM223","SIM3","SIM30","SIM300","SIM4","SIM40","SIM401","SIM9","SIM91","SIM910","SIM911","SLF","SLF0","SLF00","SLF001","SLOT","SLOT0","SLOT00","SLOT000","SLOT001","SLOT002","T","T1","T10","T100","T2","T20","T201","T203","TCH","TCH0","TCH00","TCH001","TCH002","TCH003","TCH004","TCH005","TCH01","TCH010","TD","TD0","TD00","TD001","TD002","TD003","TD004","TD005","TD006","TD007","TID","TID2","TID25","TID251","TID252","TID253","TRY","TRY0","TRY00","TRY002","TRY003","TRY004","TRY2","TRY20","TRY201","TRY3","TRY30","TRY300","TRY301","TRY302","TRY4","TRY40","TRY400","TRY401","UP","UP0","UP00","UP001","UP003","UP004","UP005","UP006","UP007","UP008","UP009","UP01","UP010","UP011","UP012","UP013","UP014","UP015","UP017","UP018","UP019","UP02","UP020","UP021","UP022","UP023","UP024","UP025","UP026","UP027","UP028","UP029","UP03","UP030","UP031","UP032","UP033","UP034","UP035","UP036","UP037","UP038","UP039","UP04","UP040","UP041","UP042","UP043","W","W1","W19","W191","W2","W29","W291","W292","W293","W3","W39","W391","W5","W50","W505","W6","W60","W605","YTT","YTT1","YTT10","YTT101","YTT102","YTT103","YTT2","YTT20","YTT201","YTT202","YTT203","YTT204","YTT3","YTT30","YTT301","YTT302","YTT303"]},Strictness:{oneOf:[{description:"Ban imports that extend into the parent module or beyond.",type:"string",enum:["parents"]},{description:"Ban all relative imports.",type:"string",enum:["all"]}]}}};function Ir(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function jy(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Ir(a,r,i,o,s,"next",l)}function s(l){Ir(a,r,i,o,s,"throw",l)}o(void 0)})}}var xo=Bs.parse("inmemory://dh-config/ruff-settings.json");function Iy(){var{schemas:t=[]}=mn.json.jsonDefaults.diagnosticsOptions;t.some(e=>e.uri==="json://ruff-schema")||mn.json.jsonDefaults.setDiagnosticsOptions({schemas:[...t,{uri:"json://ruff-schema",fileMatch:[xo.toString()],schema:Ty}]})}function ky(){return kt.apply(this,arguments)}function kt(){return kt=jy(function*(){return yield Ui.initRuff(),"v".concat(Ws.version())}),kt.apply(this,arguments)}function _y(t){var{text:e,isOpen:n,onClose:r,onSave:i,readOnly:a=!1,defaultSettings:o=Mi}=t,[s,l]=c.useState(!1),[d,f]=c.useState(!1),p=c.useRef(),h=c.useMemo(()=>JSON.stringify(o,null,2),[o]),{data:m}=Pe(ky),[g]=c.useState(()=>Us.createModel(e,"json",xo)),x=c.useCallback(()=>{n&&(r(),p.current=void 0,g.dispose())},[n,r,g]),v=c.useCallback(()=>{if(n){try{var y,S,I;i(JSON.parse((y=(S=p.current)===null||S===void 0||(I=S.getModel())===null||I===void 0?void 0:I.getValue())!==null&&y!==void 0?y:""))}catch{}x()}},[n,x,i]),b=c.useCallback(()=>{ze(g),g.setValue(h)},[g,h]),P=c.useCallback(y=>{var S,I;try{JSON.parse(y),l(!0)}catch{l(!1)}f(((S=p.current)===null||S===void 0||(I=S.getModel())===null||I===void 0?void 0:I.getValue())===h)},[h]),T=Ce(P,500,{leading:!0}),j=c.useCallback(y=>{p.current=y,g.onDidChangeContent(()=>{T(g.getValue())}),Iy(),T(g.getValue())},[T,g]);return n?u.jsxs(Mt,{isOpen:n,centered:!0,keyboard:!0,clickOutside:!1,toggle:x,size:"lg",className:"ruff-settings-modal",children:[u.jsxs(si,{closeButton:!1,children:[u.jsxs("span",{className:"settings-modal-title mr-auto",children:["Ruff ",m," Settings"]}),u.jsx(Qr,{href:"https://docs.astral.sh/ruff/settings/",target:"_blank",children:u.jsx(G,{kind:"ghost",onClick:Ze,icon:Kl,children:"Settings Docs"})}),u.jsxs(Ke,{isDisabled:d,onPress:b,children:[u.jsx(_e,{children:u.jsx(Q,{icon:ql})}),u.jsx(tt,{children:"Reset to default"})]})]}),u.jsx(Ut,{style:{height:"80vh"},children:u.jsx(Ji,{onEditorInitialized:j,settings:{readOnly:a,value:e,language:"json",folding:!0,padding:{bottom:16},lineNumbers:"on",overviewRulerLanes:0,model:g}})}),u.jsx(gi,{children:a?u.jsx(G,{kind:"secondary","data-dismiss":"modal",onClick:x,children:"Close"}):u.jsxs(u.Fragment,{children:[u.jsx(G,{kind:"secondary","data-dismiss":"modal",onClick:x,children:"Cancel"}),u.jsx(G,{kind:"primary","data-dismiss":"modal",tooltip:s?void 0:"Cannot save invalid JSON",disabled:!s,onClick:v,children:"Save"})]})})]}):null}const Ry=Object.freeze(Object.defineProperty({__proto__:null,Code:Ac,CommandHistory:Nc,CommandHistoryActions:$c,CommandHistoryItem:Mc,CommandHistoryItemTooltip:Uc,Console:bn,ConsoleConstants:Bc,ConsoleHistory:Wc,ConsoleHistoryItem:Hc,ConsoleHistoryItemResult:Vc,ConsoleHistoryResultErrorMessage:Yc,ConsoleHistoryResultInProgress:Gc,ConsoleInput:Kc,ConsoleStatusBar:qc,ConsoleUtils:zc,Editor:Ji,HeapUsage:Xc,LogView:Qc,MonacoProviders:Ui,MonacoTheme:Jc,MonacoThemeProvider:Po,MonacoUtils:$i,ObjectIcon:Zc,RUFF_DEFAULT_SETTINGS:Mi,RuffSettingsModal:_y,SHORTCUTS:ed,ScriptEditor:Nd,ScriptEditorUtils:$d,default:bn},Symbol.toStringTag,{value:"Module"}));function wo(t,e,n){return(e=Dy(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Dy(t){var e=Ly(t,"string");return typeof e=="symbol"?e:e+""}function Ly(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class be{static valueForCell(e,n,r){var i="".concat(e,",").concat(n);return r!==void 0&&r&&(i="(".concat(i,")")),i}constructor(e){wo(this,"dh",void 0),this.dh=e}makeColumn(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:be.DEFAULT_TYPE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return new this.dh.Column({index:r,name:e,type:n})}makeRollupTableConfig(){return new this.dh.RollupTableConfig}makeColumns(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=[],i=0;i<e;i+=1)r.push(this.makeColumn("".concat(n).concat(i),be.DEFAULT_TYPE,i));return r}static makeUserColumnWidths(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5,n=new Map,r=0;r<e;r+=1)n.set(r.toString(),100);return n}makeRow(e){var n=new this.dh.Row({index:e,name:"".concat(e)});return n.get=jest.fn(r=>be.valueForCell(e,r.index)),n}makeFilter(){return new this.dh.FilterCondition}makeSort(){return new this.dh.Sort}makeTable(){var{columns:e=this.makeColumns(),size:n=1e9,sort:r=[],layoutHints:i={}}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new this.dh.Table({columns:e,size:n,sort:r});return a.copy=jest.fn(()=>Promise.resolve(a)),a.freeze=jest.fn(()=>Promise.resolve(a)),a.layoutHints=i,a}makeTreeTable(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.makeColumns(),n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1e9,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],a=arguments.length>4?arguments[4]:void 0,o=new this.dh.TreeTable({columns:e,groupedColumns:n,size:r,sort:i,layoutHints:a});return o.copy=jest.fn(()=>Promise.resolve(o)),o}makeInputTable(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return new this.dh.InputTable(e)}makeSubscription(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.makeTable();return new this.dh.TableViewportSubscription({table:e})}makeModel(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.makeTable(),n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,{dh:i}=this;return new Md(i,e,n??new Kt(i),r)}}wo(be,"DEFAULT_TYPE","java.lang.String");const Fy=Object.freeze(Object.defineProperty({__proto__:null,AdvancedSettings:Ud,AdvancedSettingsType:Bd,AggregationEdit:yf,AggregationOperation:Wd,AggregationUtils:Hd,Aggregations:bf,BarIcon:Pf,ChartBuilder:xf,ColumnHeaderGroup:Vd,CustomColumnBuilder:wf,DownloadServiceWorkerUtils:Of,FormatColumnWhereIcon:Sf,FormatRowWhereIcon:Ef,HistogramIcon:Cf,InputEditor:Tf,IrisGrid:Pn,IrisGridCacheUtils:Yd,IrisGridCellOverflowMouseHandler:jf,IrisGridColumnSelectMouseHandler:If,IrisGridColumnTooltipMouseHandler:kf,IrisGridContextMenuHandler:_f,IrisGridCopyCellMouseHandler:Rf,IrisGridDataSelectMouseHandler:Df,IrisGridFilterMouseHandler:Lf,IrisGridMetricCalculator:Ff,IrisGridModel:Gd,IrisGridModelFactory:Kd,IrisGridPartitionedTableModel:qd,IrisGridPartitionedTableMouseHandler:Af,IrisGridRenderer:Nf,IrisGridRowTreeMouseHandler:$f,IrisGridSortMouseHandler:Mf,IrisGridTableModel:zd,IrisGridTableModelTemplate:Xd,IrisGridTestUtils:be,IrisGridThemeContext:Uf,IrisGridThemeProvider:pa,IrisGridTokenMouseHandler:Bf,IrisGridTreeTableModel:Qd,IrisGridUtils:Jd,LineIcon:Wf,OptionType:Hf,PendingMouseHandler:Vf,PieIcon:Yf,RollupRows:Gf,SHORTCUTS:Kf,ScatterIcon:qf,TableCsvExporter:zf,TableSaver:Xf,VisibilityOrderingBuilder:Qf,createDefaultIrisGridTheme:Jf,default:Pn,isIrisGridTableModelTemplate:Zd,isIrisGridTreeTableModel:ep,isPanelStateV1:tp,isPanelStateV2:np,isPartitionedGridModel:rp,isPartitionedGridModelProvider:ip},Symbol.toStringTag,{value:"Module"}));var Oo={react:U,"react-dom":Hs,redux:Vs,"react-redux":Ys,"@adobe/react-spectrum":Gs,"@deephaven/auth-plugins":Py,"@deephaven/chart":Oy,"@deephaven/components":Xg,"@deephaven/console":Ry,"@deephaven/dashboard":Cy,"@deephaven/dashboard-core-plugins":ap,"@deephaven/icons":zl,"@deephaven/iris-grid":Fy,"@deephaven/jsapi-bootstrap":Zg,"@deephaven/jsapi-components":zv,"@deephaven/jsapi-utils":uv,"@deephaven/log":H,"@deephaven/plugin":Jv,"@deephaven/react-hooks":Ch},Ay=Ks.createRequires(Oo),Ny=qs({requires:Ay});function kr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function _r(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?kr(Object(n),!0).forEach(function(r){$y(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function $y(t,e,n){return(e=My(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function My(t){var e=Uy(t,"string");return typeof e=="symbol"?e:e+""}function Uy(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Rr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function pn(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Rr(a,r,i,o,s,"next",l)}function s(l){Rr(a,r,i,o,s,"throw",l)}o(void 0)})}}var se=H.module("@deephaven/app-utils.PluginUtils");function By(t){return _t.apply(this,arguments)}function _t(){return _t=pn(function*(t){var e=yield Ny(t);return e}),_t.apply(this,arguments)}function Wy(t){return Rt.apply(this,arguments)}function Rt(){return Rt=pn(function*(t){var e=yield fetch(t);if(!e.ok)throw new Error(e.statusText);try{return yield e.json()}catch{throw new Error("Could not be parsed as JSON")}}),Rt.apply(this,arguments)}function Hy(t){return typeof t=="object"&&t!=null&&typeof t.default=="object"}function Vy(t){return gt(t)?t:Hy(t)&>(t.default)?t.default:Ii(t)?t:null}function Yy(t){return Dt.apply(this,arguments)}function Dt(){return Dt=pn(function*(t){se.debug("Loading plugins...");try{var e=yield Wy("".concat(t,"/manifest.json"));if(!Array.isArray(e.plugins))throw new Error("Plugin manifest JSON does not contain plugins array");se.debug("Plugin manifest loaded:",e);for(var n=[],r=0;r<e.plugins.length;r+=1){var{name:i,main:a}=e.plugins[r],o="".concat(t,"/").concat(i,"/").concat(a);n.push(By(o))}for(var s=yield Promise.allSettled(n),l=new Map,d=0;d<s.length;d+=1){var f=s[d],{name:p,version:h}=e.plugins[d];if(f.status==="fulfilled"){var m=Vy(f.value);m==null?se.error("Plugin '".concat(p,"' is missing an exported value.")):l.set(p,_r(_r({},m),{},{version:h}))}else se.error("Unable to load plugin '".concat(p,"'"),f.reason)}return se.info("Plugins loaded:",l),l}catch(g){return se.error("Unable to load plugins:",g),new Map}}),Dt.apply(this,arguments)}function Gy(t){var e,n;return(e=(n=t.get("AuthHandlers"))===null||n===void 0?void 0:n.split(","))!==null&&e!==void 0?e:[]}function Ky(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Map,r=Gy(e),i=[...t.entries(),...n.entries()].filter(l=>{var[,d]=l;return ji(d)||mt(d)}).map(l=>{var[d,f]=l;return mt(f)?{type:Ti.AUTH_PLUGIN,name:d,component:f.AuthPlugin.Component,isAvailable:f.AuthPlugin.isAvailable}:f}),a=i.filter(l=>{var{isAvailable:d}=l;return d(r,e)});if(a.length===0)throw new Error("No login plugins found, please register a login plugin for auth handlers: ".concat(r));a.length>1&&se.warn("More than one login plugin available, will use the first one: ",a.map(l=>{var{name:d}=l;return d}).join(", "));var{name:o,component:s}=a[0];return se.info("Using LoginPlugin",o),s}var qy=Jr.createRequires(()=>Oo),Cb=Jr.createRemoteComponent({requires:qy});function Dr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function zy(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Dr(a,r,i,o,s,"next",l)}function s(l){Dr(a,r,i,o,s,"throw",l)}o(void 0)})}}function Xy(t){var{pluginsUrl:e,getCorePlugins:n,children:r}=t,[i,a]=c.useState(null);return c.useEffect(function(){var s=!1;function l(){return d.apply(this,arguments)}function d(){return d=zy(function*(){var f,p=(f=yield n==null?void 0:n())!==null&&f!==void 0?f:[],h=yield Yy(e);if(!s){var m=p.map(g=>[g.name,g]);a(new Map([...m,...h]))}}),d.apply(this,arguments)}return l(),()=>{s=!0}},[e,n]),u.jsx(et.Provider,{value:i,children:r})}function Qy(){var t=un();return c.useEffect(function(){t.postMessage(li(sn))},[t]),null}function Lr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function Jy(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Lr(a,r,i,o,s,"next",l)}function s(l){Lr(a,r,i,o,s,"throw",l)}o(void 0)})}}var Zy=new Map([["@deephaven/auth-plugins.AuthPluginParent",{AuthPlugin:fo}],["@deephaven/auth-plugins.AuthPluginPsk",{AuthPlugin:vo}],["@deephaven/auth-plugins.AuthPluginAnonymous",{AuthPlugin:po}]]);function eb(t){var{children:e}=t,n=Re(),r=c.useContext(et),[i,a]=c.useState(),[o,s]=c.useState();c.useEffect(function(){var p=!1;function h(){return m.apply(this,arguments)}function m(){return m=Jy(function*(){try{var g=yield n.getAuthConfigValues();p||a(new Map(g))}catch(x){p||s(x)}}),m.apply(this,arguments)}return h(),()=>{p=!0}},[n]);var l=c.useMemo(()=>{if(!(r==null||i==null))try{return Ky(r,i,Zy)}catch(f){s(f)}},[i,r]),d=l==null||i==null;return d||o!=null?u.jsx(fe,{isLoading:d&&o==null,errorMessage:Te(o)}):u.jsx(l,{authConfigValues:i,children:u.jsxs(u.Fragment,{children:[u.jsx(Qy,{}),e]})})}function Fr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function Ar(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Fr(a,r,i,o,s,"next",l)}function s(l){Fr(a,r,i,o,s,"throw",l)}o(void 0)})}}var we=H.module("@deephaven/app-utils.ConnectionBootstrap");function tb(t){var{children:e}=t,n=xe(),r=Re(),[i,a]=c.useState(),[o,s]=c.useState(),[l,d]=c.useState("connecting"),f=l==="failed",p=l==="shutdown",h=l==="reconnecting",m=l==="not_connecting";c.useEffect(function(){var P=!1;function T(){return j.apply(this,arguments)}function j(){return j=Ar(function*(){try{var y=yield r.getAsIdeConnection();if(P)return;s(y),d("connected")}catch(S){if(P)return;a(S),d("not_connecting")}}),j.apply(this,arguments)}return T(),()=>{P=!0}},[n,r]),c.useEffect(function(){if(o==null||p)return;function P(j){var{detail:y}=j;we.info("Disconnect","".concat(JSON.stringify(y))),d("reconnecting")}var T=o.addEventListener(n.IdeConnection.EVENT_DISCONNECT,P);return T},[n,o,p]),c.useEffect(function(){if(o==null||p)return;function P(j){var{detail:y}=j;we.info("Reconnect","".concat(JSON.stringify(y))),d("connected")}var T=o.addEventListener(n.CoreClient.EVENT_RECONNECT,P);return T},[n,o,p]),c.useEffect(function(){if(o==null)return;function P(j){var{detail:y}=j;we.info("Shutdown","".concat(JSON.stringify(y))),a("Server shutdown: ".concat(y??"Unknown reason")),d("shutdown")}var T=o.addEventListener(n.IdeConnection.EVENT_SHUTDOWN,P);return T},[n,o]),c.useEffect(function(){if(o==null||p)return;function P(j){var{detail:y}=j;we.warn("Reconnect authentication failed","".concat(JSON.stringify(y))),a("Reconnect authentication failed: ".concat(y??"Unknown reason")),d("failed")}var T=o.addEventListener(n.CoreClient.EVENT_RECONNECT_AUTH_FAILED,P);return T},[n,o,p]);var g=c.useCallback(function(){var b=Ar(function*(P){return ze(o,"No connection available to fetch object with"),o.getObject(Oi(P))});return function(P){return b.apply(this,arguments)}}(),[o]),x=c.useMemo(()=>({subscribe:(b,P)=>(P({fetch:()=>g(b),status:"ready"}),()=>{})}),[g]);function v(){we.info("Refreshing application"),window.location.reload()}return p||l==="connecting"||m?u.jsx(fe,{"data-testid":"connection-bootstrap-loading",isLoading:!1,errorMessage:i!=null?"".concat(i):void 0}):u.jsx(iu.Provider,{value:o??null,children:u.jsx(wi.Provider,{value:g,children:u.jsxs(on.Provider,{value:x,children:[e,u.jsx(Aa,{isOpen:h,debounceMs:1e3,children:u.jsx(Na,{icon:Xl,title:u.jsxs(u.Fragment,{children:[u.jsx(qe,{})," Attempting to reconnect..."]}),subtitle:"Please check your network connection."})}),u.jsx(hi,{confirmButtonText:"Refresh",onConfirm:v,isOpen:f,headerText:"Authentication failed",bodyText:"Credentials are invalid. Please refresh your browser to try and reconnect."})]})})})}function Tb(t){return new URL(t,"".concat(window.location))}function nb(){var t=new URLSearchParams(window.location.search);return t.get("envoyPrefix")}function rb(){var t=nb();return t!=null?{headers:{"envoy-prefix":t}}:{headers:{}}}function Nr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function $r(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Nr(Object(n),!0).forEach(function(r){ib(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ib(t,e,n){return(e=ab(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ab(t){var e=ob(t,"string");return typeof e=="symbol"?e:e+""}function ob(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function sb(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{action:()=>{fh(Ql,$r($r({},t),{},{userAgent:navigator.userAgent}),Zi.getState())},shortcut:mi.EXPORT_LOGS,isGlobal:e}}function lb(t){var{children:e}=t,n=c.useContext(so);return n?u.jsx(u.Fragment,{children:e}):u.jsx(fe,{"data-testid":"fonts-loaded-loading"})}function ub(t){var{children:e}=t,n=au(),r=c.useContext(di),i=c.useContext(Qe),a=bo(n,r,i);return u.jsx(ci.Provider,{value:a,children:e})}function cb(t){var{children:e}=t,n=Ni(td),r=c.useContext(et),i=lo(r),a=Nt();return u.jsx(bi,{themes:i,waitForActivation:a,children:u.jsx(Ri,{children:u.jsx(Po,{children:u.jsx(pa,{density:n.gridDensity,children:e})})})})}function jb(t){var{fontClassNames:e,pluginsUrl:n,getCorePlugins:r,serverUrl:i,logMetadata:a,children:o}=t,s=c.useMemo(()=>rb(),[]),[l,d]=c.useState(0),f=c.useCallback(()=>{},[]),p=c.useCallback(()=>{requestAnimationFrame(()=>{d(m=>m+1)})},[]);cn(f,p);var h=c.useMemo(()=>[sb(a,!0)],[a]);return u.jsxs(zs,{store:Zi,children:[u.jsx(Xv,{fontClassNames:e,children:u.jsx(Xy,{getCorePlugins:r,pluginsUrl:n,children:u.jsx(cb,{children:u.jsxs(ui,{serverUrl:i,options:s,children:[u.jsx(eb,{children:u.jsx(ou,{children:u.jsx(ub,{children:u.jsx(tb,{children:u.jsx(lb,{children:o})})})})}),u.jsx(Yt,{actions:h})]},l)})})}),u.jsx($a,{})]})}function Mr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function db(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Mr(a,r,i,o,s,"next",l)}function s(l){Mr(a,r,i,o,s,"throw",l)}o(void 0)})}}function Z(t,e,n){return(e=pb(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pb(t){var e=fb(t,"string");return typeof e=="symbol"?e:e+""}function fb(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Oe=H.module("GrpcFileStorageTable");class ke{constructor(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:n;Z(this,"storageService",void 0),Z(this,"baseRoot",void 0),Z(this,"root",void 0),Z(this,"currentSize",0),Z(this,"currentViewport",void 0),Z(this,"listeners",[]),Z(this,"viewportUpdatePromise",void 0),Z(this,"currentViewportData",void 0),Z(this,"childTables",new Map),this.storageService=e,this.baseRoot=n,this.root=r,r===n&&(this.doRefresh=Ee(this.doRefresh.bind(this),ke.REFRESH_DEBOUNCE))}removeBaseRoot(e){return de.removeRoot(this.baseRoot,e)}getViewportData(){var e;return this.viewportUpdatePromise||this.refreshInternal(),(e=this.viewportUpdatePromise)!==null&&e!==void 0?e:Promise.resolve({items:[],offset:0})}getSnapshot(e){throw new Error("Method not implemented.")}get size(){return this.currentSize}setExpanded(e,n){var r=e.split("/"),i=r.shift();if((i===void 0||i==="")&&(i=r.shift()),i===void 0||i==="")throw new Error("Invalid path: ".concat(e));var a=r.join("/");if(n){if(!this.childTables.has(i)){var o=new ke(this.storageService,this.baseRoot,"".concat(this.root,"/").concat(i));this.childTables.set(i,o)}if(a){var s=this.childTables.get(i);s==null||s.setExpanded(a,n)}}else if(this.childTables.has(i))if(a){var l=this.childTables.get(i);l==null||l.setExpanded(a,n)}else 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(n=>n!==e)}}doRefresh(e){Oe.debug2("doRefresh",this.root),e(this.fetchData())}refresh(){var e;Oe.debug2("refresh",this.root),(e=this.viewportUpdatePromise)===null||e===void 0||e.cancel();var n=new Promise(i=>{this.doRefresh(i)}),r=pe.makeCancelable(n.then(i=>{if(this.viewportUpdatePromise!==r)throw new ki;return this.currentViewportData=i,this.sendUpdate(),i}));r.catch(i=>{pe.isCanceled(i)||Oe.error("Error updating viewport",i)}),this.viewportUpdatePromise=r}refreshInternal(){try{this.refresh()}catch(e){pe.isCanceled(e)||Oe.error("Unable to refresh data",e)}}fetchData(){var e=this;return db(function*(){var{currentViewport:n}=e;if(!n)throw new Error("No viewport set");for(var r=yield e.storageService.listItems(e.root),i=r.map(p=>({type:p.type,filename:e.removeBaseRoot(p.filename),basename:p.basename,id:e.removeBaseRoot(p.filename),isExpanded:p.type==="directory"?e.childTables.has(p.basename):void 0})).sort((p,h)=>p.type!==h.type?p.type==="directory"?-1:1:p.basename.localeCompare(h.basename)),a=0;a<i.length;a+=1){var o=i[a],{basename:s,filename:l}=o;if(l===e.removeBaseRoot("".concat(e.root,"/").concat(s))&&o.type==="directory"){var d=e.childTables.get(s);if(d!=null){d.setViewport({top:0,bottom:n.bottom-a});var f=yield d.getViewportData();i.splice(a+1,0,...f.items)}}}return e.currentSize=i.length,Oe.debug2(e.root,"items",i,n),i=i.slice(n.top,n.bottom),{items:i,offset:n.top}})()}sendUpdate(){for(var e,{listeners:n}=this,r=(e=this.currentViewportData)!==null&&e!==void 0?e:{items:[],offset:0},i=0;i<n.length;i+=1)n[i](r)}}Z(ke,"REFRESH_DEBOUNCE",50);function Ur(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function ae(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Ur(a,r,i,o,s,"next",l)}function s(l){Ur(a,r,i,o,s,"throw",l)}o(void 0)})}}function me(t,e,n){return(e=hb(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hb(t){var e=mb(t,"string");return typeof e=="symbol"?e:e+""}function mb(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var gb=H.module("GrpcFileStorage");class fn{constructor(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";me(this,"dh",void 0),me(this,"storageService",void 0),me(this,"tables",[]),me(this,"root",void 0),me(this,"refreshTables",Xs(()=>{this.tables.forEach(i=>i.refresh())},fn.REFRESH_THROTTLE)),this.dh=e,this.storageService=n,this.root=r}removeRoot(e){return de.removeRoot(this.root,e)}addRoot(e){return de.addRoot(this.root,e)}createDirectory(e){var n=this;return ae(function*(){return yield n.storageService.createDirectory(n.addRoot(e)),n.refreshTables(),{type:"directory",id:e,filename:e,basename:de.getBaseName(e)}})()}getTable(){var e=this;return ae(function*(){var n=new ke(e.storageService,e.root);return e.tables.push(n),n})()}saveFile(e){var n=this;return ae(function*(){var r=n.dh.storage.FileContents.text(e.content);return yield n.storageService.saveFile(n.addRoot(e.filename),r,!0),n.refreshTables(),e})()}loadFile(e){var n=this;return ae(function*(){var r=yield n.storageService.loadFile(n.addRoot(e)),i=yield r.text();return{filename:e,basename:de.getBaseName(e),content:i}})()}copyFile(e,n){var r=this;return ae(function*(){var i=yield r.storageService.loadFile(r.addRoot(e));yield r.storageService.saveFile(r.addRoot(n),i,!1),r.refreshTables()})()}deleteFile(e){var n=this;return ae(function*(){yield n.storageService.deleteItem(n.addRoot(e)),n.refreshTables()})()}moveFile(e,n){var r=this;return ae(function*(){yield r.storageService.moveItem(r.addRoot(e),r.addRoot(n)),r.refreshTables()})()}info(e){var n=this;return ae(function*(){var r=yield n.storageService.listItems(n.addRoot(de.getPath(e)),de.getBaseName(e));if(r.length===0)throw new nd;if(r.length>1)throw gb.error("More than one matching file found, should never happen.",r),new Error("More than one matching file found");var i=r[0];if(!rd(i.type))throw new Error("Unexpected file type: ".concat(i.type));return{filename:n.removeRoot(i.filename),basename:i.basename,id:n.removeRoot(i.filename),type:i.type}})()}}me(fn,"REFRESH_THROTTLE",150);export{jb as AppBootstrap,_b as AppDashboards,eb as AuthBootstrap,tb as ConnectionBootstrap,iu as ConnectionContext,Rb as DEFAULT_LAYOUT_CONFIG,Db as DEFAULT_LAYOUT_CONFIG_NO_CONSOLE,Xv as FontBootstrap,lb as FontsLoaded,so as FontsLoadedContext,fn as GrpcFileStorage,ke as GrpcFileStorageTable,Lb as GrpcLayoutStorage,Fb as LocalWorkspaceStorage,Xy as PluginsBootstrap,Cb as RemoteComponent,cb as ThemeBootstrap,Ab as UserLayoutUtils,sb as createExportLogsContextAction,Nb as exportLayout,Gy as getAuthHandlers,Ky as getAuthPluginComponent,Tb as getBaseUrl,rb as getConnectOptions,$b as getDefaultLayout,nb as getEnvoyPrefix,Vy as getPluginModuleValue,Mb as isLayoutV1,Ub as isLayoutV2,Wy as loadJson,By as loadModulePlugin,Yy as loadModulePlugins,Bb as normalizeLayout,Wb as useConnection,au as useServerConfig,Hb as useUser};
|
|
84
|
-
//# sourceMappingURL=index-
|
|
83
|
+
The allowed range of values is 1..=320`,type:"integer",format:"uint16",maximum:320,minimum:1},LineWidth:{description:"The maximum visual width to which the formatter should try to limit a line.",type:"integer",format:"uint16",minimum:1},LintOptions:{description:"Configures how Ruff checks your code.\n\nOptions specified in the `lint` section take precedence over the deprecated top-level settings.",type:"object",properties:{"allowed-confusables":{description:'A list of allowed "confusable" Unicode characters to ignore when enforcing `RUF001`, `RUF002`, and `RUF003`.',type:["array","null"],items:{type:"string",maxLength:1,minLength:1}},"dummy-variable-rgx":{description:'A regular expression used to identify "dummy" variables, or those which should be ignored when enforcing (e.g.) unused-variable rules. The default expression matches `_`, `__`, and `_var`, but not `_var_`.',type:["string","null"]},exclude:{description:"A list of file patterns to exclude from linting in addition to the files excluded globally (see [`exclude`](#exclude), and [`extend-exclude`](#extend-exclude)).\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory named `.mypy_cache` in the tree), `foo.py` (to exclude any file named `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ). - Relative patterns, like `directory/foo.py` (to exclude that specific file) or `directory/*.py` (to exclude any Python files in `directory`). Note that these paths are relative to the project root (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"explicit-preview-rules":{description:"Whether to require exact codes to select preview rules. When enabled, preview rules will not be selected by prefixes — the full code of each preview rule will be required to enable the rule.",type:["boolean","null"]},"extend-fixable":{description:"A list of rule codes or prefixes to consider fixable, in addition to those specified by [`fixable`](#lint_fixable).",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-ignore":{description:"A list of rule codes or prefixes to ignore, in addition to those specified by `ignore`.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-per-file-ignores":{description:"A list of mappings from file pattern to rule codes or prefixes to exclude, in addition to any rules excluded by [`per-file-ignores`](#lint_per-file-ignores).",type:["object","null"],additionalProperties:{type:"array",items:{$ref:"#/definitions/RuleSelector"}}},"extend-safe-fixes":{description:"A list of rule codes or prefixes for which unsafe fixes should be considered safe.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-select":{description:"A list of rule codes or prefixes to enable, in addition to those specified by [`select`](#lint_select).",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-unfixable":{description:"A list of rule codes or prefixes to consider non-auto-fixable, in addition to those specified by [`unfixable`](#lint_unfixable).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-unsafe-fixes":{description:"A list of rule codes or prefixes for which safe fixes should be considered unsafe.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},external:{description:"A list of rule codes or prefixes that are unsupported by Ruff, but should be preserved when (e.g.) validating `# noqa` directives. Useful for retaining `# noqa` directives that cover plugins not yet implemented by Ruff.",type:["array","null"],items:{type:"string"}},fixable:{description:"A list of rule codes or prefixes to consider fixable. By default, all rules are considered fixable.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"flake8-annotations":{description:"Options for the `flake8-annotations` plugin.",anyOf:[{$ref:"#/definitions/Flake8AnnotationsOptions"},{type:"null"}]},"flake8-bandit":{description:"Options for the `flake8-bandit` plugin.",anyOf:[{$ref:"#/definitions/Flake8BanditOptions"},{type:"null"}]},"flake8-boolean-trap":{description:"Options for the `flake8-boolean-trap` plugin.",anyOf:[{$ref:"#/definitions/Flake8BooleanTrapOptions"},{type:"null"}]},"flake8-bugbear":{description:"Options for the `flake8-bugbear` plugin.",anyOf:[{$ref:"#/definitions/Flake8BugbearOptions"},{type:"null"}]},"flake8-builtins":{description:"Options for the `flake8-builtins` plugin.",anyOf:[{$ref:"#/definitions/Flake8BuiltinsOptions"},{type:"null"}]},"flake8-comprehensions":{description:"Options for the `flake8-comprehensions` plugin.",anyOf:[{$ref:"#/definitions/Flake8ComprehensionsOptions"},{type:"null"}]},"flake8-copyright":{description:"Options for the `flake8-copyright` plugin.",anyOf:[{$ref:"#/definitions/Flake8CopyrightOptions"},{type:"null"}]},"flake8-errmsg":{description:"Options for the `flake8-errmsg` plugin.",anyOf:[{$ref:"#/definitions/Flake8ErrMsgOptions"},{type:"null"}]},"flake8-gettext":{description:"Options for the `flake8-gettext` plugin.",anyOf:[{$ref:"#/definitions/Flake8GetTextOptions"},{type:"null"}]},"flake8-implicit-str-concat":{description:"Options for the `flake8-implicit-str-concat` plugin.",anyOf:[{$ref:"#/definitions/Flake8ImplicitStrConcatOptions"},{type:"null"}]},"flake8-import-conventions":{description:"Options for the `flake8-import-conventions` plugin.",anyOf:[{$ref:"#/definitions/Flake8ImportConventionsOptions"},{type:"null"}]},"flake8-pytest-style":{description:"Options for the `flake8-pytest-style` plugin.",anyOf:[{$ref:"#/definitions/Flake8PytestStyleOptions"},{type:"null"}]},"flake8-quotes":{description:"Options for the `flake8-quotes` plugin.",anyOf:[{$ref:"#/definitions/Flake8QuotesOptions"},{type:"null"}]},"flake8-self":{description:"Options for the `flake8_self` plugin.",anyOf:[{$ref:"#/definitions/Flake8SelfOptions"},{type:"null"}]},"flake8-tidy-imports":{description:"Options for the `flake8-tidy-imports` plugin.",anyOf:[{$ref:"#/definitions/Flake8TidyImportsOptions"},{type:"null"}]},"flake8-type-checking":{description:"Options for the `flake8-type-checking` plugin.",anyOf:[{$ref:"#/definitions/Flake8TypeCheckingOptions"},{type:"null"}]},"flake8-unused-arguments":{description:"Options for the `flake8-unused-arguments` plugin.",anyOf:[{$ref:"#/definitions/Flake8UnusedArgumentsOptions"},{type:"null"}]},ignore:{description:"A list of rule codes or prefixes to ignore. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"ignore-init-module-imports":{description:"Avoid automatically removing unused imports in `__init__.py` files. Such imports will still be flagged, but with a dedicated message suggesting that the import is either added to the module's `__all__` symbol, or re-exported with a redundant alias (e.g., `import os as os`).\n\nThis option is enabled by default, but you can opt-in to removal of imports via an unsafe fix.",deprecated:!0,type:["boolean","null"]},isort:{description:"Options for the `isort` plugin.",anyOf:[{$ref:"#/definitions/IsortOptions"},{type:"null"}]},"logger-objects":{description:'A list of objects that should be treated equivalently to a `logging.Logger` object.\n\nThis is useful for ensuring proper diagnostics (e.g., to identify `logging` deprecations and other best-practices) for projects that re-export a `logging.Logger` object from a common module.\n\nFor example, if you have a module `logging_setup.py` with the following contents: ```python import logging\n\nlogger = logging.getLogger(__name__) ```\n\nAdding `"logging_setup.logger"` to `logger-objects` will ensure that `logging_setup.logger` is treated as a `logging.Logger` object when imported from other modules (e.g., `from logging_setup import logger`).',type:["array","null"],items:{type:"string"}},mccabe:{description:"Options for the `mccabe` plugin.",anyOf:[{$ref:"#/definitions/McCabeOptions"},{type:"null"}]},"pep8-naming":{description:"Options for the `pep8-naming` plugin.",anyOf:[{$ref:"#/definitions/Pep8NamingOptions"},{type:"null"}]},"per-file-ignores":{description:"A list of mappings from file pattern to rule codes or prefixes to exclude, when considering any matching files. An initial '!' negates the file pattern.",type:["object","null"],additionalProperties:{type:"array",items:{$ref:"#/definitions/RuleSelector"}}},preview:{description:"Whether to enable preview mode. When preview mode is enabled, Ruff will use unstable rules and fixes.",type:["boolean","null"]},pycodestyle:{description:"Options for the `pycodestyle` plugin.",anyOf:[{$ref:"#/definitions/PycodestyleOptions"},{type:"null"}]},pydocstyle:{description:"Options for the `pydocstyle` plugin.",anyOf:[{$ref:"#/definitions/PydocstyleOptions"},{type:"null"}]},pyflakes:{description:"Options for the `pyflakes` plugin.",anyOf:[{$ref:"#/definitions/PyflakesOptions"},{type:"null"}]},pylint:{description:"Options for the `pylint` plugin.",anyOf:[{$ref:"#/definitions/PylintOptions"},{type:"null"}]},pyupgrade:{description:"Options for the `pyupgrade` plugin.",anyOf:[{$ref:"#/definitions/PyUpgradeOptions"},{type:"null"}]},ruff:{description:"Options for the `ruff` plugin",anyOf:[{$ref:"#/definitions/RuffOptions"},{type:"null"}]},select:{description:"A list of rule codes or prefixes to enable. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"task-tags":{description:'A list of task tags to recognize (e.g., "TODO", "FIXME", "XXX").\n\nComments starting with these tags will be ignored by commented-out code detection (`ERA`), and skipped by line-length rules (`E501`) if [`ignore-overlong-task-comments`](#lint_pycodestyle_ignore-overlong-task-comments) is set to `true`.',type:["array","null"],items:{type:"string"}},"typing-modules":{description:"A list of modules whose exports should be treated equivalently to members of the `typing` module.\n\nThis is useful for ensuring proper type annotation inference for projects that re-export `typing` and `typing_extensions` members from a compatibility module. If omitted, any members imported from modules apart from `typing` and `typing_extensions` will be treated as ordinary Python objects.",type:["array","null"],items:{type:"string"}},unfixable:{description:"A list of rule codes or prefixes to consider non-fixable.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}}},additionalProperties:!1},McCabeOptions:{type:"object",properties:{"max-complexity":{description:"The maximum McCabe complexity to allow before triggering `C901` errors.",type:["integer","null"],format:"uint",minimum:0}},additionalProperties:!1},NameImports:{type:"string"},OutputFormat:{oneOf:[{type:"string",enum:["concise","full","json","json-lines","junit","grouped","github","gitlab","pylint","rdjson","azure","sarif"]},{deprecated:!0,type:"string",enum:["text"]}]},ParametrizeNameType:{type:"string",enum:["csv","tuple","list"]},ParametrizeValuesRowType:{type:"string",enum:["tuple","list"]},ParametrizeValuesType:{type:"string",enum:["tuple","list"]},Pep8NamingOptions:{type:"object",properties:{"classmethod-decorators":{description:"A list of decorators that, when applied to a method, indicate that the method should be treated as a class method (in addition to the builtin `@classmethod`).\n\nFor example, Ruff will expect that any method decorated by a decorator in this list takes a `cls` argument as its first argument.\n\nExpects to receive a list of fully-qualified names (e.g., `pydantic.validator`, rather than `validator`) or alternatively a plain name which is then matched against the last segment in case the decorator itself consists of a dotted name.",type:["array","null"],items:{type:"string"}},"extend-ignore-names":{description:'Additional names (or patterns) to ignore when considering `pep8-naming` violations, in addition to those included in [`ignore-names`](#lint_pep8-naming_ignore-names).\n\nSupports glob patterns. For example, to ignore all names starting with `test_` or ending with `_test`, you could use `ignore-names = ["test_*", "*_test"]`. For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).',type:["array","null"],items:{type:"string"}},"ignore-names":{description:'A list of names (or patterns) to ignore when considering `pep8-naming` violations.\n\nSupports glob patterns. For example, to ignore all names starting with `test_` or ending with `_test`, you could use `ignore-names = ["test_*", "*_test"]`. For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).',type:["array","null"],items:{type:"string"}},"staticmethod-decorators":{description:"A list of decorators that, when applied to a method, indicate that the method should be treated as a static method (in addition to the builtin `@staticmethod`).\n\nFor example, Ruff will expect that any method decorated by a decorator in this list has no `self` or `cls` argument.\n\nExpects to receive a list of fully-qualified names (e.g., `belay.Device.teardown`, rather than `teardown`) or alternatively a plain name which is then matched against the last segment in case the decorator itself consists of a dotted name.",type:["array","null"],items:{type:"string"}}},additionalProperties:!1},PyUpgradeOptions:{type:"object",properties:{"keep-runtime-typing":{description:"Whether to avoid [PEP 585](https://peps.python.org/pep-0585/) (`List[int]` -> `list[int]`) and [PEP 604](https://peps.python.org/pep-0604/) (`Union[str, int]` -> `str | int`) rewrites even if a file imports `from __future__ import annotations`.\n\nThis setting is only applicable when the target Python version is below 3.9 and 3.10 respectively, and is most commonly used when working with libraries like Pydantic and FastAPI, which rely on the ability to parse type annotations at runtime. The use of `from __future__ import annotations` causes Python to treat the type annotations as strings, which typically allows for the use of language features that appear in later Python versions but are not yet supported by the current version (e.g., `str | int`). However, libraries that rely on runtime type annotations will break if the annotations are incompatible with the current Python version.\n\nFor example, while the following is valid Python 3.8 code due to the presence of `from __future__ import annotations`, the use of `str | int` prior to Python 3.10 will cause Pydantic to raise a `TypeError` at runtime:\n\n```python from __future__ import annotations\n\nimport pydantic\n\nclass Foo(pydantic.BaseModel): bar: str | int ```",type:["boolean","null"]}},additionalProperties:!1},PycodestyleOptions:{type:"object",properties:{"ignore-overlong-task-comments":{description:'Whether line-length violations (`E501`) should be triggered for comments starting with [`task-tags`](#lint_task-tags) (by default: "TODO", "FIXME", and "XXX").',type:["boolean","null"]},"max-doc-length":{description:"The maximum line length to allow for [`doc-line-too-long`](https://docs.astral.sh/ruff/rules/doc-line-too-long/) violations within documentation (`W505`), including standalone comments. By default, this is set to `null` which disables reporting violations.\n\nThe length is determined by the number of characters per line, except for lines containing Asian characters or emojis. For these lines, the [unicode width](https://unicode.org/reports/tr11/) of each character is added up to determine the length.\n\nSee the [`doc-line-too-long`](https://docs.astral.sh/ruff/rules/doc-line-too-long/) rule for more information.",anyOf:[{$ref:"#/definitions/LineLength"},{type:"null"}]},"max-line-length":{description:"The maximum line length to allow for [`line-too-long`](https://docs.astral.sh/ruff/rules/line-too-long/) violations. By default, this is set to the value of the [`line-length`](#line-length) option.\n\nUse this option when you want to detect extra-long lines that the formatter can't automatically split by setting `pycodestyle.line-length` to a value larger than [`line-length`](#line-length).\n\n```toml # The formatter wraps lines at a length of 88. line-length = 88\n\n[pycodestyle] # E501 reports lines that exceed the length of 100. max-line-length = 100 ```\n\nThe length is determined by the number of characters per line, except for lines containing East Asian characters or emojis. For these lines, the [unicode width](https://unicode.org/reports/tr11/) of each character is added up to determine the length.\n\nSee the [`line-too-long`](https://docs.astral.sh/ruff/rules/line-too-long/) rule for more information.",anyOf:[{$ref:"#/definitions/LineLength"},{type:"null"}]}},additionalProperties:!1},PydocstyleOptions:{type:"object",properties:{convention:{description:'Whether to use Google-style, NumPy-style conventions, or the [PEP 257](https://peps.python.org/pep-0257/) defaults when analyzing docstring sections.\n\nEnabling a convention will disable all rules that are not included in the specified convention. As such, the intended workflow is to enable a convention and then selectively enable or disable any additional rules on top of it.\n\nFor example, to use Google-style conventions but avoid requiring documentation for every function parameter:\n\n```toml [tool.ruff.lint] # Enable all `pydocstyle` rules, limiting to those that adhere to the # Google convention via `convention = "google"`, below. select = ["D"]\n\n# On top of the Google convention, disable `D417`, which requires # documentation for every function parameter. ignore = ["D417"]\n\n[tool.ruff.lint.pydocstyle] convention = "google" ```\n\nTo enable an additional rule that\'s excluded from the convention, select the desired rule via its fully qualified rule code (e.g., `D400` instead of `D4` or `D40`):\n\n```toml [tool.ruff.lint] # Enable D400 on top of the Google convention. extend-select = ["D400"]\n\n[tool.ruff.lint.pydocstyle] convention = "google" ```',anyOf:[{$ref:"#/definitions/Convention"},{type:"null"}]},"ignore-decorators":{description:"Ignore docstrings for functions or methods decorated with the specified fully-qualified decorators.",type:["array","null"],items:{type:"string"}},"property-decorators":{description:"A list of decorators that, when applied to a method, indicate that the method should be treated as a property (in addition to the builtin `@property` and standard-library `@functools.cached_property`).\n\nFor example, Ruff will expect that any method decorated by a decorator in this list can use a non-imperative summary line.",type:["array","null"],items:{type:"string"}}},additionalProperties:!1},PyflakesOptions:{type:"object",properties:{"extend-generics":{description:'Additional functions or classes to consider generic, such that any subscripts should be treated as type annotation (e.g., `ForeignKey` in `django.db.models.ForeignKey["User"]`.\n\nExpects to receive a list of fully-qualified names (e.g., `django.db.models.ForeignKey`, rather than `ForeignKey`).',type:["array","null"],items:{type:"string"}}},additionalProperties:!1},PylintOptions:{type:"object",properties:{"allow-dunder-method-names":{description:"Dunder methods name to allow, in addition to the default set from the Python standard library (see `PLW3201`).",type:["array","null"],items:{type:"string"},uniqueItems:!0},"allow-magic-value-types":{description:'Constant types to ignore when used as "magic values" (see `PLR2004`).',type:["array","null"],items:{$ref:"#/definitions/ConstantType"}},"max-args":{description:"Maximum number of arguments allowed for a function or method definition (see `PLR0913`).",type:["integer","null"],format:"uint",minimum:0},"max-bool-expr":{description:"Maximum number of Boolean expressions allowed within a single `if` statement (see `PLR0916`).",type:["integer","null"],format:"uint",minimum:0},"max-branches":{description:"Maximum number of branches allowed for a function or method body (see `PLR0912`).",type:["integer","null"],format:"uint",minimum:0},"max-locals":{description:"Maximum number of local variables allowed for a function or method body (see `PLR0914`).",type:["integer","null"],format:"uint",minimum:0},"max-nested-blocks":{description:"Maximum number of nested blocks allowed within a function or method body (see `PLR1702`).",type:["integer","null"],format:"uint",minimum:0},"max-positional-args":{description:"Maximum number of positional arguments allowed for a function or method definition (see `PLR0917`).\n\nIf not specified, defaults to the value of `max-args`.",type:["integer","null"],format:"uint",minimum:0},"max-public-methods":{description:"Maximum number of public methods allowed for a class (see `PLR0904`).",type:["integer","null"],format:"uint",minimum:0},"max-returns":{description:"Maximum number of return statements allowed for a function or method body (see `PLR0911`)",type:["integer","null"],format:"uint",minimum:0},"max-statements":{description:"Maximum number of statements allowed for a function or method body (see `PLR0915`).",type:["integer","null"],format:"uint",minimum:0}},additionalProperties:!1},PythonVersion:{type:"string",enum:["py37","py38","py39","py310","py311","py312","py313"]},Quote:{oneOf:[{description:"Use double quotes.",type:"string",enum:["double"]},{description:"Use single quotes.",type:"string",enum:["single"]}]},QuoteStyle:{type:"string",enum:["single","double","preserve"]},RelativeImportsOrder:{oneOf:[{description:'Place "closer" imports (fewer `.` characters, most local) before "further" imports (more `.` characters, least local).',type:"string",enum:["closest-to-furthest"]},{description:'Place "further" imports (more `.` characters, least local) imports before "closer" imports (fewer `.` characters, most local).',type:"string",enum:["furthest-to-closest"]}]},RequiredVersion:{type:"string"},RuffOptions:{type:"object",properties:{"parenthesize-tuple-in-subscript":{description:"Whether to prefer accessing items keyed by tuples with parentheses around the tuple (see `RUF031`).",type:["boolean","null"]}},additionalProperties:!1},RuleSelector:{type:"string",enum:["A","A0","A00","A001","A002","A003","A004","A005","A006","AIR","AIR0","AIR00","AIR001","ALL","ANN","ANN0","ANN00","ANN001","ANN002","ANN003","ANN1","ANN10","ANN101","ANN102","ANN2","ANN20","ANN201","ANN202","ANN204","ANN205","ANN206","ANN4","ANN40","ANN401","ARG","ARG0","ARG00","ARG001","ARG002","ARG003","ARG004","ARG005","ASYNC","ASYNC1","ASYNC10","ASYNC100","ASYNC105","ASYNC109","ASYNC11","ASYNC110","ASYNC115","ASYNC116","ASYNC2","ASYNC21","ASYNC210","ASYNC22","ASYNC220","ASYNC221","ASYNC222","ASYNC23","ASYNC230","ASYNC25","ASYNC251","B","B0","B00","B002","B003","B004","B005","B006","B007","B008","B009","B01","B010","B011","B012","B013","B014","B015","B016","B017","B018","B019","B02","B020","B021","B022","B023","B024","B025","B026","B027","B028","B029","B03","B030","B031","B032","B033","B034","B035","B039","B9","B90","B901","B904","B905","B909","BLE","BLE0","BLE00","BLE001","C","C4","C40","C400","C401","C402","C403","C404","C405","C406","C408","C409","C41","C410","C411","C413","C414","C415","C416","C417","C418","C419","C42","C420","C9","C90","C901","COM","COM8","COM81","COM812","COM818","COM819","CPY","CPY0","CPY00","CPY001","D","D1","D10","D100","D101","D102","D103","D104","D105","D106","D107","D2","D20","D200","D201","D202","D203","D204","D205","D206","D207","D208","D209","D21","D210","D211","D212","D213","D214","D215","D3","D30","D300","D301","D4","D40","D400","D401","D402","D403","D404","D405","D406","D407","D408","D409","D41","D410","D411","D412","D413","D414","D415","D416","D417","D418","D419","DJ","DJ0","DJ00","DJ001","DJ003","DJ006","DJ007","DJ008","DJ01","DJ012","DJ013","DOC","DOC2","DOC20","DOC201","DOC202","DOC4","DOC40","DOC402","DOC403","DOC5","DOC50","DOC501","DOC502","DTZ","DTZ0","DTZ00","DTZ001","DTZ002","DTZ003","DTZ004","DTZ005","DTZ006","DTZ007","DTZ01","DTZ011","DTZ012","E","E1","E10","E101","E11","E111","E112","E113","E114","E115","E116","E117","E2","E20","E201","E202","E203","E204","E21","E211","E22","E221","E222","E223","E224","E225","E226","E227","E228","E23","E231","E24","E241","E242","E25","E251","E252","E26","E261","E262","E265","E266","E27","E271","E272","E273","E274","E275","E3","E30","E301","E302","E303","E304","E305","E306","E4","E40","E401","E402","E5","E50","E501","E502","E7","E70","E701","E702","E703","E71","E711","E712","E713","E714","E72","E721","E722","E73","E731","E74","E741","E742","E743","E9","E90","E902","E99","E999","EM","EM1","EM10","EM101","EM102","EM103","ERA","ERA0","ERA00","ERA001","EXE","EXE0","EXE00","EXE001","EXE002","EXE003","EXE004","EXE005","F","F4","F40","F401","F402","F403","F404","F405","F406","F407","F5","F50","F501","F502","F503","F504","F505","F506","F507","F508","F509","F52","F521","F522","F523","F524","F525","F54","F541","F6","F60","F601","F602","F62","F621","F622","F63","F631","F632","F633","F634","F7","F70","F701","F702","F704","F706","F707","F72","F722","F8","F81","F811","F82","F821","F822","F823","F84","F841","F842","F9","F90","F901","FA","FA1","FA10","FA100","FA102","FAST","FAST0","FAST00","FAST001","FAST002","FAST003","FBT","FBT0","FBT00","FBT001","FBT002","FBT003","FIX","FIX0","FIX00","FIX001","FIX002","FIX003","FIX004","FLY","FLY0","FLY00","FLY002","FURB","FURB1","FURB10","FURB101","FURB103","FURB105","FURB11","FURB110","FURB113","FURB116","FURB118","FURB12","FURB129","FURB13","FURB131","FURB132","FURB136","FURB14","FURB140","FURB142","FURB145","FURB148","FURB15","FURB152","FURB154","FURB157","FURB16","FURB161","FURB163","FURB164","FURB166","FURB167","FURB168","FURB169","FURB17","FURB171","FURB177","FURB18","FURB180","FURB181","FURB187","FURB19","FURB192","G","G0","G00","G001","G002","G003","G004","G01","G010","G1","G10","G101","G2","G20","G201","G202","I","I0","I00","I001","I002","ICN","ICN0","ICN00","ICN001","ICN002","ICN003","INP","INP0","INP00","INP001","INT","INT0","INT00","INT001","INT002","INT003","ISC","ISC0","ISC00","ISC001","ISC002","ISC003","LOG","LOG0","LOG00","LOG001","LOG002","LOG007","LOG009","N","N8","N80","N801","N802","N803","N804","N805","N806","N807","N81","N811","N812","N813","N814","N815","N816","N817","N818","N9","N99","N999","NPY","NPY0","NPY00","NPY001","NPY002","NPY003","NPY2","NPY20","NPY201","PD","PD0","PD00","PD002","PD003","PD004","PD007","PD008","PD009","PD01","PD010","PD011","PD012","PD013","PD015","PD1","PD10","PD101","PD9","PD90","PD901","PERF","PERF1","PERF10","PERF101","PERF102","PERF2","PERF20","PERF203","PERF4","PERF40","PERF401","PERF402","PERF403","PGH","PGH0","PGH00","PGH003","PGH004","PGH005","PIE","PIE7","PIE79","PIE790","PIE794","PIE796","PIE8","PIE80","PIE800","PIE804","PIE807","PIE808","PIE81","PIE810","PL","PLC","PLC0","PLC01","PLC010","PLC0105","PLC013","PLC0131","PLC0132","PLC02","PLC020","PLC0205","PLC0206","PLC0208","PLC04","PLC041","PLC0414","PLC0415","PLC1","PLC19","PLC190","PLC1901","PLC2","PLC24","PLC240","PLC2401","PLC2403","PLC27","PLC270","PLC2701","PLC28","PLC280","PLC2801","PLC3","PLC30","PLC300","PLC3002","PLE","PLE0","PLE01","PLE010","PLE0100","PLE0101","PLE011","PLE0115","PLE0116","PLE0117","PLE0118","PLE02","PLE023","PLE0237","PLE024","PLE0241","PLE03","PLE030","PLE0302","PLE0303","PLE0304","PLE0305","PLE0307","PLE0308","PLE0309","PLE06","PLE060","PLE0604","PLE0605","PLE064","PLE0643","PLE07","PLE070","PLE0704","PLE1","PLE11","PLE113","PLE1132","PLE114","PLE1141","PLE1142","PLE12","PLE120","PLE1205","PLE1206","PLE13","PLE130","PLE1300","PLE1307","PLE131","PLE1310","PLE15","PLE150","PLE1507","PLE151","PLE1519","PLE152","PLE1520","PLE17","PLE170","PLE1700","PLE2","PLE25","PLE250","PLE2502","PLE251","PLE2510","PLE2512","PLE2513","PLE2514","PLE2515","PLE4","PLE47","PLE470","PLE4703","PLR","PLR0","PLR01","PLR012","PLR0124","PLR013","PLR0133","PLR02","PLR020","PLR0202","PLR0203","PLR0206","PLR04","PLR040","PLR0402","PLR09","PLR090","PLR0904","PLR091","PLR0911","PLR0912","PLR0913","PLR0914","PLR0915","PLR0916","PLR0917","PLR1","PLR17","PLR170","PLR1702","PLR1704","PLR171","PLR1711","PLR1714","PLR172","PLR1722","PLR173","PLR1730","PLR1733","PLR1736","PLR2","PLR20","PLR200","PLR2004","PLR204","PLR2044","PLR5","PLR55","PLR550","PLR5501","PLR6","PLR61","PLR610","PLR6104","PLR62","PLR620","PLR6201","PLR63","PLR630","PLR6301","PLW","PLW0","PLW01","PLW010","PLW0108","PLW012","PLW0120","PLW0127","PLW0128","PLW0129","PLW013","PLW0131","PLW0133","PLW017","PLW0177","PLW02","PLW021","PLW0211","PLW024","PLW0245","PLW04","PLW040","PLW0406","PLW06","PLW060","PLW0602","PLW0603","PLW0604","PLW064","PLW0642","PLW07","PLW071","PLW0711","PLW1","PLW15","PLW150","PLW1501","PLW1508","PLW1509","PLW151","PLW1510","PLW1514","PLW16","PLW164","PLW1641","PLW2","PLW21","PLW210","PLW2101","PLW29","PLW290","PLW2901","PLW3","PLW32","PLW320","PLW3201","PLW33","PLW330","PLW3301","PT","PT0","PT00","PT001","PT002","PT003","PT004","PT005","PT006","PT007","PT008","PT009","PT01","PT010","PT011","PT012","PT013","PT014","PT015","PT016","PT017","PT018","PT019","PT02","PT020","PT021","PT022","PT023","PT024","PT025","PT026","PT027","PTH","PTH1","PTH10","PTH100","PTH101","PTH102","PTH103","PTH104","PTH105","PTH106","PTH107","PTH108","PTH109","PTH11","PTH110","PTH111","PTH112","PTH113","PTH114","PTH115","PTH116","PTH117","PTH118","PTH119","PTH12","PTH120","PTH121","PTH122","PTH123","PTH124","PTH2","PTH20","PTH201","PTH202","PTH203","PTH204","PTH205","PTH206","PTH207","PYI","PYI0","PYI00","PYI001","PYI002","PYI003","PYI004","PYI005","PYI006","PYI007","PYI008","PYI009","PYI01","PYI010","PYI011","PYI012","PYI013","PYI014","PYI015","PYI016","PYI017","PYI018","PYI019","PYI02","PYI020","PYI021","PYI024","PYI025","PYI026","PYI029","PYI03","PYI030","PYI032","PYI033","PYI034","PYI035","PYI036","PYI04","PYI041","PYI042","PYI043","PYI044","PYI045","PYI046","PYI047","PYI048","PYI049","PYI05","PYI050","PYI051","PYI052","PYI053","PYI054","PYI055","PYI056","PYI057","PYI058","PYI059","PYI06","PYI062","PYI063","PYI064","PYI066","Q","Q0","Q00","Q000","Q001","Q002","Q003","Q004","RET","RET5","RET50","RET501","RET502","RET503","RET504","RET505","RET506","RET507","RET508","RSE","RSE1","RSE10","RSE102","RUF","RUF0","RUF00","RUF001","RUF002","RUF003","RUF005","RUF006","RUF007","RUF008","RUF009","RUF01","RUF010","RUF012","RUF013","RUF015","RUF016","RUF017","RUF018","RUF019","RUF02","RUF020","RUF021","RUF022","RUF023","RUF024","RUF026","RUF027","RUF028","RUF029","RUF03","RUF030","RUF031","RUF032","RUF033","RUF034","RUF1","RUF10","RUF100","RUF101","RUF2","RUF20","RUF200","S","S1","S10","S101","S102","S103","S104","S105","S106","S107","S108","S11","S110","S112","S113","S2","S20","S201","S202","S3","S30","S301","S302","S303","S304","S305","S306","S307","S308","S31","S310","S311","S312","S313","S314","S315","S316","S317","S318","S319","S32","S320","S321","S323","S324","S4","S40","S401","S402","S403","S404","S405","S406","S407","S408","S409","S41","S411","S412","S413","S415","S5","S50","S501","S502","S503","S504","S505","S506","S507","S508","S509","S6","S60","S601","S602","S603","S604","S605","S606","S607","S608","S609","S61","S610","S611","S612","S7","S70","S701","S702","SIM","SIM1","SIM10","SIM101","SIM102","SIM103","SIM105","SIM107","SIM108","SIM109","SIM11","SIM110","SIM112","SIM113","SIM114","SIM115","SIM116","SIM117","SIM118","SIM2","SIM20","SIM201","SIM202","SIM208","SIM21","SIM210","SIM211","SIM212","SIM22","SIM220","SIM221","SIM222","SIM223","SIM3","SIM30","SIM300","SIM4","SIM40","SIM401","SIM9","SIM91","SIM910","SIM911","SLF","SLF0","SLF00","SLF001","SLOT","SLOT0","SLOT00","SLOT000","SLOT001","SLOT002","T","T1","T10","T100","T2","T20","T201","T203","TCH","TCH0","TCH00","TCH001","TCH002","TCH003","TCH004","TCH005","TCH01","TCH010","TD","TD0","TD00","TD001","TD002","TD003","TD004","TD005","TD006","TD007","TID","TID2","TID25","TID251","TID252","TID253","TRY","TRY0","TRY00","TRY002","TRY003","TRY004","TRY2","TRY20","TRY201","TRY3","TRY30","TRY300","TRY301","TRY302","TRY4","TRY40","TRY400","TRY401","UP","UP0","UP00","UP001","UP003","UP004","UP005","UP006","UP007","UP008","UP009","UP01","UP010","UP011","UP012","UP013","UP014","UP015","UP017","UP018","UP019","UP02","UP020","UP021","UP022","UP023","UP024","UP025","UP026","UP027","UP028","UP029","UP03","UP030","UP031","UP032","UP033","UP034","UP035","UP036","UP037","UP038","UP039","UP04","UP040","UP041","UP042","UP043","W","W1","W19","W191","W2","W29","W291","W292","W293","W3","W39","W391","W5","W50","W505","W6","W60","W605","YTT","YTT1","YTT10","YTT101","YTT102","YTT103","YTT2","YTT20","YTT201","YTT202","YTT203","YTT204","YTT3","YTT30","YTT301","YTT302","YTT303"]},Strictness:{oneOf:[{description:"Ban imports that extend into the parent module or beyond.",type:"string",enum:["parents"]},{description:"Ban all relative imports.",type:"string",enum:["all"]}]}}};function Ir(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function Iy(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Ir(a,r,i,o,s,"next",l)}function s(l){Ir(a,r,i,o,s,"throw",l)}o(void 0)})}}var xo=Bs.parse("inmemory://dh-config/ruff-settings.json");function ky(){var{schemas:t=[]}=mn.json.jsonDefaults.diagnosticsOptions;t.some(e=>e.uri==="json://ruff-schema")||mn.json.jsonDefaults.setDiagnosticsOptions({schemas:[...t,{uri:"json://ruff-schema",fileMatch:[xo.toString()],schema:jy}]})}function _y(){return kt.apply(this,arguments)}function kt(){return kt=Iy(function*(){return yield Ui.initRuff(),"v".concat(Ws.version())}),kt.apply(this,arguments)}function Ry(t){var{text:e,isOpen:n,onClose:r,onSave:i,readOnly:a=!1,defaultSettings:o=Mi}=t,[s,l]=c.useState(!1),[d,f]=c.useState(!1),p=c.useRef(),h=c.useMemo(()=>JSON.stringify(o,null,2),[o]),{data:m}=Pe(_y),[g]=c.useState(()=>Us.createModel(e,"json",xo)),x=c.useCallback(()=>{n&&(r(),p.current=void 0,g.dispose())},[n,r,g]),v=c.useCallback(()=>{if(n){try{var y,S,I;i(JSON.parse((y=(S=p.current)===null||S===void 0||(I=S.getModel())===null||I===void 0?void 0:I.getValue())!==null&&y!==void 0?y:""))}catch{}x()}},[n,x,i]),b=c.useCallback(()=>{ze(g),g.setValue(h)},[g,h]),P=c.useCallback(y=>{var S,I;try{JSON.parse(y),l(!0)}catch{l(!1)}f(((S=p.current)===null||S===void 0||(I=S.getModel())===null||I===void 0?void 0:I.getValue())===h)},[h]),T=Ce(P,500,{leading:!0}),j=c.useCallback(y=>{p.current=y,g.onDidChangeContent(()=>{T(g.getValue())}),ky(),T(g.getValue())},[T,g]);return n?u.jsxs(Mt,{isOpen:n,centered:!0,keyboard:!0,clickOutside:!1,toggle:x,size:"lg",className:"ruff-settings-modal",children:[u.jsxs(si,{closeButton:!1,children:[u.jsxs("span",{className:"settings-modal-title mr-auto",children:["Ruff ",m," Settings"]}),u.jsx(Qr,{href:"https://docs.astral.sh/ruff/settings/",target:"_blank",children:u.jsx(G,{kind:"ghost",onClick:Ze,icon:Kl,children:"Settings Docs"})}),u.jsxs(Ke,{isDisabled:d,onPress:b,children:[u.jsx(_e,{children:u.jsx(Q,{icon:ql})}),u.jsx(tt,{children:"Reset to default"})]})]}),u.jsx(Ut,{style:{height:"80vh"},children:u.jsx(Ji,{onEditorInitialized:j,settings:{readOnly:a,value:e,language:"json",folding:!0,padding:{bottom:16},lineNumbers:"on",overviewRulerLanes:0,model:g}})}),u.jsx(gi,{children:a?u.jsx(G,{kind:"secondary","data-dismiss":"modal",onClick:x,children:"Close"}):u.jsxs(u.Fragment,{children:[u.jsx(G,{kind:"secondary","data-dismiss":"modal",onClick:x,children:"Cancel"}),u.jsx(G,{kind:"primary","data-dismiss":"modal",tooltip:s?void 0:"Cannot save invalid JSON",disabled:!s,onClick:v,children:"Save"})]})})]}):null}const Dy=Object.freeze(Object.defineProperty({__proto__:null,Code:Nc,CommandHistory:$c,CommandHistoryActions:Mc,CommandHistoryItem:Uc,CommandHistoryItemTooltip:Bc,Console:bn,ConsoleConstants:Wc,ConsoleHistory:Hc,ConsoleHistoryItem:Vc,ConsoleHistoryItemResult:Yc,ConsoleHistoryResultErrorMessage:Gc,ConsoleHistoryResultInProgress:Kc,ConsoleInput:qc,ConsoleStatusBar:zc,ConsoleUtils:Xc,Editor:Ji,HeapUsage:Qc,LogView:Jc,MonacoProviders:Ui,MonacoTheme:Zc,MonacoThemeProvider:Po,MonacoUtils:$i,ObjectIcon:ed,RUFF_DEFAULT_SETTINGS:Mi,RuffSettingsModal:Ry,SHORTCUTS:td,ScriptEditor:$d,ScriptEditorUtils:Md,default:bn},Symbol.toStringTag,{value:"Module"}));function wo(t,e,n){return(e=Ly(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ly(t){var e=Fy(t,"string");return typeof e=="symbol"?e:e+""}function Fy(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class be{static valueForCell(e,n,r){var i="".concat(e,",").concat(n);return r!==void 0&&r&&(i="(".concat(i,")")),i}constructor(e){wo(this,"dh",void 0),this.dh=e}makeColumn(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:be.DEFAULT_TYPE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return new this.dh.Column({index:r,name:e,type:n})}makeRollupTableConfig(){return new this.dh.RollupTableConfig}makeColumns(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=[],i=0;i<e;i+=1)r.push(this.makeColumn("".concat(n).concat(i),be.DEFAULT_TYPE,i));return r}static makeUserColumnWidths(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5,n=new Map,r=0;r<e;r+=1)n.set(r.toString(),100);return n}makeRow(e){var n=new this.dh.Row({index:e,name:"".concat(e)});return n.get=jest.fn(r=>be.valueForCell(e,r.index)),n}makeFilter(){return new this.dh.FilterCondition}makeSort(){return new this.dh.Sort}makeTable(){var{columns:e=this.makeColumns(),size:n=1e9,sort:r=[],layoutHints:i={}}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new this.dh.Table({columns:e,size:n,sort:r});return a.copy=jest.fn(()=>Promise.resolve(a)),a.freeze=jest.fn(()=>Promise.resolve(a)),a.layoutHints=i,a}makeTreeTable(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.makeColumns(),n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1e9,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],a=arguments.length>4?arguments[4]:void 0,o=new this.dh.TreeTable({columns:e,groupedColumns:n,size:r,sort:i,layoutHints:a});return o.copy=jest.fn(()=>Promise.resolve(o)),o}makeInputTable(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return new this.dh.InputTable(e)}makeSubscription(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.makeTable();return new this.dh.TableViewportSubscription({table:e})}makeModel(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.makeTable(),n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,{dh:i}=this;return new Ud(i,e,n??new Kt(i),r)}}wo(be,"DEFAULT_TYPE","java.lang.String");const Ay=Object.freeze(Object.defineProperty({__proto__:null,AdvancedSettings:Bd,AdvancedSettingsType:Wd,AggregationEdit:bf,AggregationOperation:Hd,AggregationUtils:Vd,Aggregations:Pf,BarIcon:xf,ChartBuilder:wf,ColumnHeaderGroup:Yd,CustomColumnBuilder:Of,DownloadServiceWorkerUtils:Sf,FormatColumnWhereIcon:Ef,FormatRowWhereIcon:Cf,HistogramIcon:Tf,InputEditor:jf,IrisGrid:Pn,IrisGridCacheUtils:Gd,IrisGridCellOverflowMouseHandler:If,IrisGridColumnSelectMouseHandler:kf,IrisGridColumnTooltipMouseHandler:_f,IrisGridContextMenuHandler:Rf,IrisGridCopyCellMouseHandler:Df,IrisGridDataSelectMouseHandler:Lf,IrisGridFilterMouseHandler:Ff,IrisGridMetricCalculator:Af,IrisGridModel:Kd,IrisGridModelFactory:qd,IrisGridPartitionedTableModel:zd,IrisGridPartitionedTableMouseHandler:Nf,IrisGridRenderer:$f,IrisGridRowTreeMouseHandler:Mf,IrisGridSortMouseHandler:Uf,IrisGridTableModel:Xd,IrisGridTableModelTemplate:Qd,IrisGridTestUtils:be,IrisGridThemeContext:Bf,IrisGridThemeProvider:pa,IrisGridTokenMouseHandler:Wf,IrisGridTreeTableModel:Jd,IrisGridUtils:Zd,LineIcon:Hf,OptionType:Vf,PendingMouseHandler:Yf,PieIcon:Gf,RollupRows:Kf,SHORTCUTS:qf,ScatterIcon:zf,TableCsvExporter:Xf,TableSaver:Qf,VisibilityOrderingBuilder:Jf,createDefaultIrisGridTheme:Zf,default:Pn,isIrisGridTableModelTemplate:ep,isIrisGridTreeTableModel:tp,isPanelStateV1:np,isPanelStateV2:rp,isPartitionedGridModel:ip,isPartitionedGridModelProvider:ap},Symbol.toStringTag,{value:"Module"}));var Oo={react:U,"react-dom":Hs,redux:Vs,"react-redux":Ys,"@adobe/react-spectrum":Gs,"@deephaven/auth-plugins":xy,"@deephaven/chart":Sy,"@deephaven/components":Qg,"@deephaven/console":Dy,"@deephaven/dashboard":Ty,"@deephaven/dashboard-core-plugins":op,"@deephaven/icons":zl,"@deephaven/iris-grid":Ay,"@deephaven/jsapi-bootstrap":ev,"@deephaven/jsapi-components":Xv,"@deephaven/jsapi-utils":cv,"@deephaven/log":H,"@deephaven/plugin":Zv,"@deephaven/react-hooks":Th},Ny=Ks.createRequires(Oo),$y=qs({requires:Ny});function kr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function _r(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?kr(Object(n),!0).forEach(function(r){My(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function My(t,e,n){return(e=Uy(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Uy(t){var e=By(t,"string");return typeof e=="symbol"?e:e+""}function By(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Rr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function pn(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Rr(a,r,i,o,s,"next",l)}function s(l){Rr(a,r,i,o,s,"throw",l)}o(void 0)})}}var se=H.module("@deephaven/app-utils.PluginUtils");function Wy(t){return _t.apply(this,arguments)}function _t(){return _t=pn(function*(t){var e=yield $y(t);return e}),_t.apply(this,arguments)}function Hy(t){return Rt.apply(this,arguments)}function Rt(){return Rt=pn(function*(t){var e=yield fetch(t);if(!e.ok)throw new Error(e.statusText);try{return yield e.json()}catch{throw new Error("Could not be parsed as JSON")}}),Rt.apply(this,arguments)}function Vy(t){return typeof t=="object"&&t!=null&&typeof t.default=="object"}function Yy(t){return gt(t)?t:Vy(t)&>(t.default)?t.default:Ii(t)?t:null}function Gy(t){return Dt.apply(this,arguments)}function Dt(){return Dt=pn(function*(t){se.debug("Loading plugins...");try{var e=yield Hy("".concat(t,"/manifest.json"));if(!Array.isArray(e.plugins))throw new Error("Plugin manifest JSON does not contain plugins array");se.debug("Plugin manifest loaded:",e);for(var n=[],r=0;r<e.plugins.length;r+=1){var{name:i,main:a}=e.plugins[r],o="".concat(t,"/").concat(i,"/").concat(a);n.push(Wy(o))}for(var s=yield Promise.allSettled(n),l=new Map,d=0;d<s.length;d+=1){var f=s[d],{name:p,version:h}=e.plugins[d];if(f.status==="fulfilled"){var m=Yy(f.value);m==null?se.error("Plugin '".concat(p,"' is missing an exported value.")):l.set(p,_r(_r({},m),{},{version:h}))}else se.error("Unable to load plugin '".concat(p,"'"),f.reason)}return se.info("Plugins loaded:",l),l}catch(g){return se.error("Unable to load plugins:",g),new Map}}),Dt.apply(this,arguments)}function Ky(t){var e,n;return(e=(n=t.get("AuthHandlers"))===null||n===void 0?void 0:n.split(","))!==null&&e!==void 0?e:[]}function qy(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Map,r=Ky(e),i=[...t.entries(),...n.entries()].filter(l=>{var[,d]=l;return ji(d)||mt(d)}).map(l=>{var[d,f]=l;return mt(f)?{type:Ti.AUTH_PLUGIN,name:d,component:f.AuthPlugin.Component,isAvailable:f.AuthPlugin.isAvailable}:f}),a=i.filter(l=>{var{isAvailable:d}=l;return d(r,e)});if(a.length===0)throw new Error("No login plugins found, please register a login plugin for auth handlers: ".concat(r));a.length>1&&se.warn("More than one login plugin available, will use the first one: ",a.map(l=>{var{name:d}=l;return d}).join(", "));var{name:o,component:s}=a[0];return se.info("Using LoginPlugin",o),s}var zy=Jr.createRequires(()=>Oo),Tb=Jr.createRemoteComponent({requires:zy});function Dr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function Xy(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Dr(a,r,i,o,s,"next",l)}function s(l){Dr(a,r,i,o,s,"throw",l)}o(void 0)})}}function Qy(t){var{pluginsUrl:e,getCorePlugins:n,children:r}=t,[i,a]=c.useState(null);return c.useEffect(function(){var s=!1;function l(){return d.apply(this,arguments)}function d(){return d=Xy(function*(){var f,p=(f=yield n==null?void 0:n())!==null&&f!==void 0?f:[],h=yield Gy(e);if(!s){var m=p.map(g=>[g.name,g]);a(new Map([...m,...h]))}}),d.apply(this,arguments)}return l(),()=>{s=!0}},[e,n]),u.jsx(et.Provider,{value:i,children:r})}function Jy(){var t=un();return c.useEffect(function(){t.postMessage(li(sn))},[t]),null}function Lr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function Zy(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Lr(a,r,i,o,s,"next",l)}function s(l){Lr(a,r,i,o,s,"throw",l)}o(void 0)})}}var eb=new Map([["@deephaven/auth-plugins.AuthPluginParent",{AuthPlugin:fo}],["@deephaven/auth-plugins.AuthPluginPsk",{AuthPlugin:vo}],["@deephaven/auth-plugins.AuthPluginAnonymous",{AuthPlugin:po}]]);function tb(t){var{children:e}=t,n=Re(),r=c.useContext(et),[i,a]=c.useState(),[o,s]=c.useState();c.useEffect(function(){var p=!1;function h(){return m.apply(this,arguments)}function m(){return m=Zy(function*(){try{var g=yield n.getAuthConfigValues();p||a(new Map(g))}catch(x){p||s(x)}}),m.apply(this,arguments)}return h(),()=>{p=!0}},[n]);var l=c.useMemo(()=>{if(!(r==null||i==null))try{return qy(r,i,eb)}catch(f){s(f)}},[i,r]),d=l==null||i==null;return d||o!=null?u.jsx(fe,{isLoading:d&&o==null,errorMessage:Te(o)}):u.jsx(l,{authConfigValues:i,children:u.jsxs(u.Fragment,{children:[u.jsx(Jy,{}),e]})})}function Fr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function Ar(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Fr(a,r,i,o,s,"next",l)}function s(l){Fr(a,r,i,o,s,"throw",l)}o(void 0)})}}var we=H.module("@deephaven/app-utils.ConnectionBootstrap");function nb(t){var{children:e}=t,n=xe(),r=Re(),[i,a]=c.useState(),[o,s]=c.useState(),[l,d]=c.useState("connecting"),f=l==="failed",p=l==="shutdown",h=l==="reconnecting",m=l==="not_connecting";c.useEffect(function(){var P=!1;function T(){return j.apply(this,arguments)}function j(){return j=Ar(function*(){try{var y=yield r.getAsIdeConnection();if(P)return;s(y),d("connected")}catch(S){if(P)return;a(S),d("not_connecting")}}),j.apply(this,arguments)}return T(),()=>{P=!0}},[n,r]),c.useEffect(function(){if(o==null||p)return;function P(j){var{detail:y}=j;we.info("Disconnect","".concat(JSON.stringify(y))),d("reconnecting")}var T=o.addEventListener(n.IdeConnection.EVENT_DISCONNECT,P);return T},[n,o,p]),c.useEffect(function(){if(o==null||p)return;function P(j){var{detail:y}=j;we.info("Reconnect","".concat(JSON.stringify(y))),d("connected")}var T=o.addEventListener(n.CoreClient.EVENT_RECONNECT,P);return T},[n,o,p]),c.useEffect(function(){if(o==null)return;function P(j){var{detail:y}=j;we.info("Shutdown","".concat(JSON.stringify(y))),a("Server shutdown: ".concat(y??"Unknown reason")),d("shutdown")}var T=o.addEventListener(n.IdeConnection.EVENT_SHUTDOWN,P);return T},[n,o]),c.useEffect(function(){if(o==null||p)return;function P(j){var{detail:y}=j;we.warn("Reconnect authentication failed","".concat(JSON.stringify(y))),a("Reconnect authentication failed: ".concat(y??"Unknown reason")),d("failed")}var T=o.addEventListener(n.CoreClient.EVENT_RECONNECT_AUTH_FAILED,P);return T},[n,o,p]);var g=c.useCallback(function(){var b=Ar(function*(P){return ze(o,"No connection available to fetch object with"),o.getObject(Oi(P))});return function(P){return b.apply(this,arguments)}}(),[o]),x=c.useMemo(()=>({subscribe:(b,P)=>(P({fetch:()=>g(b),status:"ready"}),()=>{})}),[g]);function v(){we.info("Refreshing application"),window.location.reload()}return p||l==="connecting"||m?u.jsx(fe,{"data-testid":"connection-bootstrap-loading",isLoading:!1,errorMessage:i!=null?"".concat(i):void 0}):u.jsx(iu.Provider,{value:o??null,children:u.jsx(wi.Provider,{value:g,children:u.jsxs(on.Provider,{value:x,children:[e,u.jsx(Aa,{isOpen:h,debounceMs:1e3,children:u.jsx(Na,{icon:Xl,title:u.jsxs(u.Fragment,{children:[u.jsx(qe,{})," Attempting to reconnect..."]}),subtitle:"Please check your network connection."})}),u.jsx(hi,{confirmButtonText:"Refresh",onConfirm:v,isOpen:f,headerText:"Authentication failed",bodyText:"Credentials are invalid. Please refresh your browser to try and reconnect."})]})})})}function jb(t){return new URL(t,"".concat(window.location))}function rb(){var t=new URLSearchParams(window.location.search);return t.get("envoyPrefix")}function ib(){var t=rb();return t!=null?{headers:{"envoy-prefix":t}}:{headers:{}}}function Nr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function $r(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Nr(Object(n),!0).forEach(function(r){ab(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ab(t,e,n){return(e=ob(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ob(t){var e=sb(t,"string");return typeof e=="symbol"?e:e+""}function sb(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function lb(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{action:()=>{hh(Ql,$r($r({},t),{},{userAgent:navigator.userAgent}),Zi.getState())},shortcut:mi.EXPORT_LOGS,isGlobal:e}}function ub(t){var{children:e}=t,n=c.useContext(so);return n?u.jsx(u.Fragment,{children:e}):u.jsx(fe,{"data-testid":"fonts-loaded-loading"})}function cb(t){var{children:e}=t,n=au(),r=c.useContext(di),i=c.useContext(Qe),a=bo(n,r,i);return u.jsx(ci.Provider,{value:a,children:e})}function db(t){var{children:e}=t,n=Ni(nd),r=c.useContext(et),i=lo(r),a=Nt();return u.jsx(bi,{themes:i,waitForActivation:a,children:u.jsx(Ri,{children:u.jsx(Po,{children:u.jsx(pa,{density:n.gridDensity,children:e})})})})}function Ib(t){var{fontClassNames:e,pluginsUrl:n,getCorePlugins:r,serverUrl:i,logMetadata:a,children:o}=t,s=c.useMemo(()=>ib(),[]),[l,d]=c.useState(0),f=c.useCallback(()=>{},[]),p=c.useCallback(()=>{requestAnimationFrame(()=>{d(m=>m+1)})},[]);cn(f,p);var h=c.useMemo(()=>[lb(a,!0)],[a]);return u.jsxs(zs,{store:Zi,children:[u.jsx(Qv,{fontClassNames:e,children:u.jsx(Qy,{getCorePlugins:r,pluginsUrl:n,children:u.jsx(db,{children:u.jsxs(ui,{serverUrl:i,options:s,children:[u.jsx(tb,{children:u.jsx(ou,{children:u.jsx(cb,{children:u.jsx(nb,{children:u.jsx(ub,{children:o})})})})}),u.jsx(Yt,{actions:h})]},l)})})}),u.jsx($a,{})]})}function Mr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function pb(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Mr(a,r,i,o,s,"next",l)}function s(l){Mr(a,r,i,o,s,"throw",l)}o(void 0)})}}function Z(t,e,n){return(e=fb(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fb(t){var e=hb(t,"string");return typeof e=="symbol"?e:e+""}function hb(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Oe=H.module("GrpcFileStorageTable");class ke{constructor(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:n;Z(this,"storageService",void 0),Z(this,"baseRoot",void 0),Z(this,"root",void 0),Z(this,"currentSize",0),Z(this,"currentViewport",void 0),Z(this,"listeners",[]),Z(this,"viewportUpdatePromise",void 0),Z(this,"currentViewportData",void 0),Z(this,"childTables",new Map),this.storageService=e,this.baseRoot=n,this.root=r,r===n&&(this.doRefresh=Ee(this.doRefresh.bind(this),ke.REFRESH_DEBOUNCE))}removeBaseRoot(e){return de.removeRoot(this.baseRoot,e)}getViewportData(){var e;return this.viewportUpdatePromise||this.refreshInternal(),(e=this.viewportUpdatePromise)!==null&&e!==void 0?e:Promise.resolve({items:[],offset:0})}getSnapshot(e){throw new Error("Method not implemented.")}get size(){return this.currentSize}setExpanded(e,n){var r=e.split("/"),i=r.shift();if((i===void 0||i==="")&&(i=r.shift()),i===void 0||i==="")throw new Error("Invalid path: ".concat(e));var a=r.join("/");if(n){if(!this.childTables.has(i)){var o=new ke(this.storageService,this.baseRoot,"".concat(this.root,"/").concat(i));this.childTables.set(i,o)}if(a){var s=this.childTables.get(i);s==null||s.setExpanded(a,n)}}else if(this.childTables.has(i))if(a){var l=this.childTables.get(i);l==null||l.setExpanded(a,n)}else 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(n=>n!==e)}}doRefresh(e){Oe.debug2("doRefresh",this.root),e(this.fetchData())}refresh(){var e;Oe.debug2("refresh",this.root),(e=this.viewportUpdatePromise)===null||e===void 0||e.cancel();var n=new Promise(i=>{this.doRefresh(i)}),r=pe.makeCancelable(n.then(i=>{if(this.viewportUpdatePromise!==r)throw new ki;return this.currentViewportData=i,this.sendUpdate(),i}));r.catch(i=>{pe.isCanceled(i)||Oe.error("Error updating viewport",i)}),this.viewportUpdatePromise=r}refreshInternal(){try{this.refresh()}catch(e){pe.isCanceled(e)||Oe.error("Unable to refresh data",e)}}fetchData(){var e=this;return pb(function*(){var{currentViewport:n}=e;if(!n)throw new Error("No viewport set");for(var r=yield e.storageService.listItems(e.root),i=r.map(p=>({type:p.type,filename:e.removeBaseRoot(p.filename),basename:p.basename,id:e.removeBaseRoot(p.filename),isExpanded:p.type==="directory"?e.childTables.has(p.basename):void 0})).sort((p,h)=>p.type!==h.type?p.type==="directory"?-1:1:p.basename.localeCompare(h.basename)),a=0;a<i.length;a+=1){var o=i[a],{basename:s,filename:l}=o;if(l===e.removeBaseRoot("".concat(e.root,"/").concat(s))&&o.type==="directory"){var d=e.childTables.get(s);if(d!=null){d.setViewport({top:0,bottom:n.bottom-a});var f=yield d.getViewportData();i.splice(a+1,0,...f.items)}}}return e.currentSize=i.length,Oe.debug2(e.root,"items",i,n),i=i.slice(n.top,n.bottom),{items:i,offset:n.top}})()}sendUpdate(){for(var e,{listeners:n}=this,r=(e=this.currentViewportData)!==null&&e!==void 0?e:{items:[],offset:0},i=0;i<n.length;i+=1)n[i](r)}}Z(ke,"REFRESH_DEBOUNCE",50);function Ur(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function ae(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Ur(a,r,i,o,s,"next",l)}function s(l){Ur(a,r,i,o,s,"throw",l)}o(void 0)})}}function me(t,e,n){return(e=mb(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mb(t){var e=gb(t,"string");return typeof e=="symbol"?e:e+""}function gb(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var vb=H.module("GrpcFileStorage");class fn{constructor(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";me(this,"dh",void 0),me(this,"storageService",void 0),me(this,"tables",[]),me(this,"root",void 0),me(this,"refreshTables",Xs(()=>{this.tables.forEach(i=>i.refresh())},fn.REFRESH_THROTTLE)),this.dh=e,this.storageService=n,this.root=r}removeRoot(e){return de.removeRoot(this.root,e)}addRoot(e){return de.addRoot(this.root,e)}createDirectory(e){var n=this;return ae(function*(){return yield n.storageService.createDirectory(n.addRoot(e)),n.refreshTables(),{type:"directory",id:e,filename:e,basename:de.getBaseName(e)}})()}getTable(){var e=this;return ae(function*(){var n=new ke(e.storageService,e.root);return e.tables.push(n),n})()}saveFile(e){var n=this;return ae(function*(){var r=n.dh.storage.FileContents.text(e.content);return yield n.storageService.saveFile(n.addRoot(e.filename),r,!0),n.refreshTables(),e})()}loadFile(e){var n=this;return ae(function*(){var r=yield n.storageService.loadFile(n.addRoot(e)),i=yield r.text();return{filename:e,basename:de.getBaseName(e),content:i}})()}copyFile(e,n){var r=this;return ae(function*(){var i=yield r.storageService.loadFile(r.addRoot(e));yield r.storageService.saveFile(r.addRoot(n),i,!1),r.refreshTables()})()}deleteFile(e){var n=this;return ae(function*(){yield n.storageService.deleteItem(n.addRoot(e)),n.refreshTables()})()}moveFile(e,n){var r=this;return ae(function*(){yield r.storageService.moveItem(r.addRoot(e),r.addRoot(n)),r.refreshTables()})()}info(e){var n=this;return ae(function*(){var r=yield n.storageService.listItems(n.addRoot(de.getPath(e)),de.getBaseName(e));if(r.length===0)throw new rd;if(r.length>1)throw vb.error("More than one matching file found, should never happen.",r),new Error("More than one matching file found");var i=r[0];if(!id(i.type))throw new Error("Unexpected file type: ".concat(i.type));return{filename:n.removeRoot(i.filename),basename:i.basename,id:n.removeRoot(i.filename),type:i.type}})()}}me(fn,"REFRESH_THROTTLE",150);export{Ib as AppBootstrap,Rb as AppDashboards,tb as AuthBootstrap,nb as ConnectionBootstrap,iu as ConnectionContext,Db as DEFAULT_LAYOUT_CONFIG,Lb as DEFAULT_LAYOUT_CONFIG_NO_CONSOLE,Qv as FontBootstrap,ub as FontsLoaded,so as FontsLoadedContext,fn as GrpcFileStorage,ke as GrpcFileStorageTable,Fb as GrpcLayoutStorage,Ab as LocalWorkspaceStorage,Qy as PluginsBootstrap,Tb as RemoteComponent,db as ThemeBootstrap,Nb as UserLayoutUtils,lb as createExportLogsContextAction,$b as exportLayout,Ky as getAuthHandlers,qy as getAuthPluginComponent,jb as getBaseUrl,ib as getConnectOptions,Mb as getDefaultLayout,rb as getEnvoyPrefix,Yy as getPluginModuleValue,Ub as isLayoutV1,Bb as isLayoutV2,Hy as loadJson,Wy as loadModulePlugin,Gy as loadModulePlugins,Wb as normalizeLayout,Hb as useConnection,au as useServerConfig,Vb as useUser};
|
|
84
|
+
//# sourceMappingURL=index-C-mAR5e8.js.map
|