@deephaven/embed-widget 1.22.2-alpha-pivot-builder.0 → 1.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/build/assets/{App-QAW9iwHs.js → App-BhL456sh.js} +2 -2
  2. package/build/assets/{App-QAW9iwHs.js.map → App-BhL456sh.js.map} +1 -1
  3. package/build/assets/{Chart-CyR_qNOm.js → Chart-Bct1OTF6.js} +2 -2
  4. package/build/assets/{Chart-CyR_qNOm.js.map → Chart-Bct1OTF6.js.map} +1 -1
  5. package/build/assets/IrisGrid-C3IJz6nb.js +20 -0
  6. package/build/assets/IrisGrid-C3IJz6nb.js.map +1 -0
  7. package/build/assets/{IrisGrid-C8fNjOoq.css → IrisGrid-Dzcv4aAu.css} +1 -1
  8. package/build/assets/{IrisGridThemeProvider-Dsd6y6kc.css → IrisGridThemeProvider-CEV9kNOj.css} +1 -1
  9. package/build/assets/{IrisGridThemeProvider-DXMkIkss.js → IrisGridThemeProvider-PGSqEwKh.js} +24 -24
  10. package/build/assets/IrisGridThemeProvider-PGSqEwKh.js.map +1 -0
  11. package/build/assets/{LocalWorkspaceStorage-DEuGH3fb.js → LocalWorkspaceStorage-DblP67AR.js} +3 -3
  12. package/build/assets/LocalWorkspaceStorage-DblP67AR.js.map +1 -0
  13. package/build/assets/{LogPanel-BugwvQ5h.js → LogPanel-C1_6X3ds.js} +7 -7
  14. package/build/assets/LogPanel-C1_6X3ds.js.map +1 -0
  15. package/build/assets/{MarkdownEditor-BuWBDjuH.js → MarkdownEditor-CPmC5it0.js} +2 -2
  16. package/build/assets/{MarkdownEditor-BuWBDjuH.js.map → MarkdownEditor-CPmC5it0.js.map} +1 -1
  17. package/build/assets/{MarkdownNotebook-8NjUVqMc.js → MarkdownNotebook-BsHvrPUA.js} +2 -2
  18. package/build/assets/{MarkdownNotebook-8NjUVqMc.js.map → MarkdownNotebook-BsHvrPUA.js.map} +1 -1
  19. package/build/assets/{index-XqFGszQX.js → index-CgAoPxrH.js} +32 -32
  20. package/build/assets/index-CgAoPxrH.js.map +1 -0
  21. package/build/assets/{index-fqNAcYS8.js → index-DK1KaCOb.js} +3 -3
  22. package/build/assets/{index-fqNAcYS8.js.map → index-DK1KaCOb.js.map} +1 -1
  23. package/build/assets/{index-CrUMbgGb.js → index-sIC4DbFu.js} +45 -45
  24. package/build/assets/index-sIC4DbFu.js.map +1 -0
  25. package/build/index.html +2 -2
  26. package/package.json +17 -17
  27. package/build/assets/IrisGrid-uVH4pXpA.js +0 -20
  28. package/build/assets/IrisGrid-uVH4pXpA.js.map +0 -1
  29. package/build/assets/IrisGridThemeProvider-DXMkIkss.js.map +0 -1
  30. package/build/assets/LocalWorkspaceStorage-DEuGH3fb.js.map +0 -1
  31. package/build/assets/LogPanel-BugwvQ5h.js.map +0 -1
  32. package/build/assets/index-CrUMbgGb.js.map +0 -1
  33. package/build/assets/index-XqFGszQX.js.map +0 -1
@@ -1,40 +1,40 @@
1
- import{r as c,J,P as Gu,D as d,Q as Yu,S as Bt,T as zu,U as qu,V as Xu,W as Qu,C as Vn,X as Ju,G as V,Y as Gn,Z as jo,a0 as Zu,a1 as Ao,a2 as ec,a3 as tc,a4 as nc,a5 as rc,a6 as Hr,a7 as ic,a8 as ac,a9 as $o,aa as oc,ab as sc,ac as lc,ad as uc,ae as cc,af as dc,ag as wn,ah as fc,ai as ko,aj as Kt,ak as pt,I as ce,al as Ro,am as Do,an as Yn,ao as Lo,ap as Mo,aq as On,ar as pc,as as ot,at as Fo,H as No,au as Uo,av as hc,aw as mc,ax as yc,ay as Wo,az as gc,aA as vc,aB as bc,aC as Sc,aD as Pc,aE as wc,aF as Oc,aG as xc,aH as Tc,aI as Cc,aJ as Ec,aK as _c,aL as Ic,aM as jc,aN as Ac,aO as $c,aP as kc,aQ as Rc,aR as Dc,aS as Lc,aT as Mc,aU as Fc,aV as Nc,aW as Uc,aX as Bo,aY as Wc,aZ as Bc,a_ as Kc,a$ as Hc,b0 as Vc,b1 as Gc,b2 as Yc,b3 as zc,b4 as qc,b5 as Xc,b6 as Qc,b7 as Jc,b8 as Zc,b9 as ed,ba as td,bb as nd,bc as rd,bd as id,be as ad,bf as od,bg as sd,bh as ld,O as ud,bi as cd,bj as dd,bk as fd,bl as pd,bm as hd,bn as md,L as yd,N as gd,bo as xn,bp as vd,bq as bd,br as Vr,bs as Sd,bt as Pd,bu as wd,bv as Od,bw as xd,bx as Td,by as Cd,bz as Ed,R as _d,bA as Id,bB as jd,bC as Ko,bD as Ad,bE as $d}from"./vendor-Iv4yoqlt.js";import{i as Ho,b as zn,p as Vo,r as Go,a as re,M as Yo,c as zo,g as qn,L as Ue,v as qo,d as Xn,e as Qn,f as Ht,h as kd,j as Rd,k as Dd,l as Ld,m as Md,n as Jn,o as Fd,q as Nd,s as Ud,t as Xo,u as st,w as Wd,T as Tn,C as Bd,D as Kd,x as Hd,y as Vd,z as Gd,A as Yd,B as zd,E as qd,F as Xd,G as Qo,N as Qd,P as Jd,S as Zd,H as ef,I as tf,J as nf,K as rf,W as af,O as of,Q as sf,R as lf,U as uf,V as cf,X as df,Y as ff,Z as pf,_ as hf,$ as mf,a0 as yf,a1 as gf,a2 as vf,a3 as bf,a4 as Sf,a5 as Pf,a6 as wf,a7 as Of,a8 as xf,a9 as Tf,aa as Cf,ab as Ef,ac as Zn,ad as _f,ae as Vt,af as er,ag as If,ah as Jo,ai as jf,aj as Af,ak as $f,al as kf,am as Rf,an as Df}from"./index-fqNAcYS8.js";import{C as Zo,e as Lf,a as ht,F as Mf,f as Ff,g as es,D as Gr,h as Nf,i as Uf,d as Wf,U as Gt,j as ts,k as ns,l as Bf,c as Kf,S as Hf}from"./LocalWorkspaceStorage-DEuGH3fb.js";import{A as VT,m as GT,n as YT,G as zT,L as qT,o as XT,p as QT,q as JT,r as ZT,s as eC,t as tC,u as nC,b as rC}from"./LocalWorkspaceStorage-DEuGH3fb.js";import{k as Vf,l as Gf,m as Yf,n as zf,o as lt,p as qf,q as Xf,t as Qf,v as Jf,w as Yt,x as ge,y as zt,z as ye,T as qt,A as mt,H as tr,P as Xt,C as Ee,B as Fe,D as rs,F as Rt,G as is,r as De,M as se,K as fe,R as Yr,I as Cn,J as le,L as as,N as En,O as Qt,E as os,Q as nr,U as Jt,V as ss,W as Zf,X as ep,c as tp,Y as np,Z as ls,_ as us,S as rp,$ as ip,a0 as ap,a1 as cs,a2 as op,a3 as sp,a4 as lp,a5 as ds,a6 as up,a7 as cp,a8 as dp,a9 as fp,aa as fs,ab as pp,u as je,ac as ps,g as hp,ad as mp,ae as yp,af as gp,ag as hs,ah as vp,ai as bp,aj as Sp,ak as Pp,al as wp,am as Op,an as ms,ao as ys,ap as gs,aq as vs,s as bs,ar as zr,as as xp,at as Tp,au as Cp,av as Ep,aw as _p,ax as Ip,ay as jp,az as Ap,aA as $p,aB as kp,aC as Rp,aD as Dp,aE as Lp,aF as Mp,aG as Ss,aH as Fp,aI as Np,aJ as Up,aK as Wp,aL as Bp,aM as Kp,aN as Hp,aO as Vp,aP as Gp,aQ as Yp,e as zp,b as qp,aR as Xp,aS as Qp,aT as Jp,aU as Zp,aV as eh,aW as th,aX as nh,aY as rh,aZ as ih,a_ as ah,a$ as oh,b0 as sh,b1 as lh,b2 as uh,b3 as ch,b4 as dh,b5 as fh,b6 as Ps,b7 as ph,b8 as hh,a as mh,b9 as yh,ba as gh,bb as vh,bc as bh,bd as Sh,be as Ph,bf as wh,bg as Oh,bh as xh,bi as ws,bj as Os,bk as xs,bl as Zt,bm as Th,bn as Ch,bo as Eh,bp as _h,bq as Ih,br as jh,bs as Ah,bt as $h,bu as Ts,bv as Cs,bw as kh,bx as Rh,by as _n,bz as Dh,bA as Lh,bB as Mh,bC as Es,bD as Fh,bE as Nh,bF as Uh,bG as Wh,bH as Bh,bI as Kh,bJ as Hh,bK as Vh,bL as _s,bM as Gh,bN as ut,bO as Is,bP as js,bQ as Yh,bR as As,bS as zh,bT as qh,bU as $s,bV as ks,bW as Rs,bX as qr,bY as Xh,bZ as Qh,b_ as Jh,b$ as Zh,c0 as em,c1 as tm,c2 as nm,c3 as rm,c4 as im,c5 as am,c6 as om,c7 as sm,c8 as lm,c9 as um,ca as cm,cb as dm,cc as fm,cd as pm,ce as hm,cf as mm,cg as Le,ch as ym,ci as gm}from"./LogPanel-BugwvQ5h.js";import{F as rr,C as vm,S as bm,u as ir,D as Sm,B as Pm,a as wm,b as Om,c as xm,d as ar,e as In,I as Tm,f as Cm,T as Ds,g as Em,h as or,i as _m,j as sr,k as Ls,l as Im,m as Ms,n as lr,o as Fs,p as Ns,q as jm,r as Am,s as $m,t as km,v as Rm,w as Dm,x as Lm,y as Mm,z as Fm,A as Us,E as Nm,G as Um,H as Wm,J as Ws,K as Bs,L as Ks,M as Bm,N as Km,O as Hm,P as Vm,Q as Gm,R as Hs,U as Ym,V as zm,W as Vs,X as qm,Y as Xr,Z as Xm,_ as Qm,$ as Jm,a0 as Zm,a1 as ey,a2 as ty,a3 as ny,a4 as ry,a5 as iy,a6 as ay,a7 as oy,a8 as sy,a9 as ly,aa as uy,ab as cy,ac as dy,ad as fy,ae as py,af as hy,ag as my,ah as yy,ai as Gs}from"./index-XqFGszQX.js";import{D as gy}from"./DownsamplingError--AAvWHv_.js";import{e as Lt,c as vy,d as by,a as Sy,f as Py,b as wy,g as Oy,h as xy,i as Ty,j as Ys,u as Cy,k as Ey,l as _y,m as Iy,n as Ne,o as jy,p as Ay,q as at,r as Mt,s as zs,t as ur,v as yt,w as cr,x as dr,y as fr,z as Ft,A as qs,B as jn,C as pr,D as hr,M as mr,E as Xs,F as $y,G as An,H as ky,I as Ry,J as Dy,K as Ly,L as My,N as Fy,O as Ny,P as Uy,Q as Qs,R as Wy,S as By,T as Ky,U as Hy,V as Js,W as Vy,X as Gy,Y as Yy,Z as zy,_ as qy,$ as Xy,a0 as Zs,a1 as Qy,a2 as Jy,a3 as Zy,a4 as eg,a5 as tg,a6 as ng,a7 as rg,a8 as ig,a9 as ag,aa as og,ab as yr,ac as sg,ad as lg,ae as ug,af as cg,ag as dg,ah as fg,ai as Dt,aj as gr,ak as vr,al as pg,am as hg,an as el,ao as tl,ap as we,aq as mg,ar as br,as as Qr,at as nl,au as rl,av as yg,aw as gg,ax as vg,ay as bg,az as Sg,aA as Pg,aB as wg,aC as Og,aD as xg,aE as Tg,aF as Cg,aG as Eg,aH as _g,aI as Ig,aJ as jg,aK as Ag,aL as $g,aM as kg,aN as Rg,aO as Dg,aP as Lg,aQ as Mg,aR as Fg,aS as Ng,aT as Ug,aU as Wg,aV as Bg,aW as Kg,aX as Hg,aY as Vg,aZ as Gg,a_ as Yg,a$ as il,b0 as zg,b1 as qg,b2 as Xg,b3 as Qg,b4 as Jg,b5 as Zg,b6 as ev,b7 as tv,b8 as nv,b9 as rv,ba as iv,bb as av}from"./IrisGridThemeProvider-DXMkIkss.js";import{u as en}from"./useResizeObserver-D66yMPy1.js";import{m as ov,u as al}from"./useMergeRef-CQuqzBxC.js";import"./helpers-BosuxZz1.js";var sv=["children","keepMounted"];function Jr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jr(Object(n),!0).forEach(function(r){lv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jr(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lv(e,t,n){return(t=uv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uv(e){var t=cv(e,"string");return typeof t=="symbol"?t:t+""}function cv(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dv(e,t){if(e==null)return{};var n,r,i=fv(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function fv(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function pv(e){var t=e.children,n=e.keepMounted,r=n===void 0?!1:n,i=dv(e,sv),a=r&&typeof t!="function",o=c.useRef(new Map),s=c.useMemo(()=>{var u=[],f=new Map;return a?(J.Children.forEach(t,p=>{if(!(p==null||p.key==null)){if(typeof p.props.children=="function")throw new Error("DHCTabPanels cannot use keepMounted with an ItemRenderer function as its children");var h=o.current.get(p.key);h==null&&(h=Gu({attributes:{style:"display: contents"}})),f.set(p.key,h),u.push(d.jsx(Yu,{node:h,children:p.props.children},p.key))}}),o.current=f,u):(o.current=f,u)},[t,a]),l=c.useMemo(()=>{var u=[];return a&&J.Children.forEach(t,f=>{if(f==null||f.key==null){u.push(f);return}var p=o.current.get(f.key);if(p==null){u.push(f);return}u.push(d.jsx(Bt,{children:d.jsx(zu,{node:p})},f.key))}),u},[t,a]);return d.jsxs(d.Fragment,{children:[a&&s,d.jsx(qu,Zr(Zr({},i),{},{children:a?l:t}))]})}function ei(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function hv(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){ei(a,r,i,o,s,"next",l)}function s(l){ei(a,r,i,o,s,"throw",l)}o(void 0)})}}var mv=[["api"],["client"],["dashboardData","*","connection"],["dashboardData","*","sessionWrapper"],["dashboardData","*","openedMap"],["layoutStorage"],["storage"]],ol=10;function yv(e){var t=new Map;return function(r,i){var a,o=[...(a=t.get(this))!==null&&a!==void 0?a:[],r];if(i===Object(i)&&t.set(i,[...o]),o.shift(),!gv(o,e))return i instanceof Map?Array.from(i.entries()):i}}function gv(e,t){for(var n=function(o){if(e.length===t[o].length&&e.every((s,l)=>t[o][l]==="*"||s===t[o][l]))return{v:!0}},r,i=0;i<t.length;i+=1)if(r=n(i),r)return r.v;return!1}function vv(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ol,i=Qu({maximumDepth:r});return(t=i(e,yv(n),2))!==null&&t!==void 0?t:""}function bv(e){return JSON.stringify(e,null,2)}function Sv(e){var t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),a=String(e.getMinutes()).padStart(2,"0"),o=String(e.getSeconds()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(r,"-").concat(i).concat(a).concat(o)}function Pv(e,t,n){return $n.apply(this,arguments)}function $n(){return $n=hv(function*(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:mv,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"".concat(Sv(new Date),"_support_logs"),a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:ol,o=new Xu,s=o.folder(i);s.file("console.txt",e.getFormattedHistory()),t!=null&&s.file("metadata.json",bv(t)),n!=null&&s.file("redux.json",vv(n,r,a));var l=yield o.generateAsync({type:"blob"}),u=document.createElement("a");u.href=URL.createObjectURL(l),u.download="".concat(i,".zip"),u.click()}),$n.apply(this,arguments)}function wv(e,t){return e===0?0:t==="all"||e===t.size?"all":t.size}function sl(e,t){return e===t?!0:e==="all"||t==="all"||e.size!==t.size?!1:[...e.keys()].every(n=>t.has(n))}function ll(e,t){return e.isInverted===t.isInverted&&sl(e.selection,t.selection)}function ul(e,t,n){if(e==="all")return"all";var r=[...e.keys()];return new Set(r.map(i=>{var a=t(i);if(a===void 0)throw new Error("Could not find item with key ".concat(i));return n(a)}))}function cl(e,t,n){var r=e==="all"||e.size>t/2,i=e;return r&&(i=e==="all"?new Set:new Set([...Vf(0,t-1)].map(n).filter(a=>!e.has(a)))),{selection:i,isInverted:r}}function Ov(e,t){return c.useCallback(function(){var n=e(...arguments);return t(),n},[t,e])}function xv(e){return c.useCallback(t=>{e(t.target.value)},[e])}function Sr(e,t){return c.useCallback(n=>{typeof e=="function"?e(t(n)):e.current=t(n)},[t,e])}function Be(e,t){return _v(e)||Ev(e,t)||Cv(e,t)||Tv()}function Tv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cv(e,t){if(e){if(typeof e=="string")return ti(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ti(e,t):void 0}}function ti(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ev(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function _v(e){if(Array.isArray(e))return e}function dl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ho,t=c.useState(0),n=Be(t,2),r=n[0],i=n[1],a=c.useState(0),o=Be(a,2),s=o[0],l=o[1],u=c.useState(0),f=Be(u,2),p=f[0],h=f[1],m=c.useState(0),v=Be(m,2),g=v[0],y=v[1],S=c.useMemo(()=>new DOMRect(r,s,p,g),[g,p,r,s]),b=c.useState(null),O=Be(b,2),w=O[0],E=O[1],P=Sr(E,e),I=c.useCallback(x=>{var C,A=Be(x,1),R=A[0],_=(C=R==null?void 0:R.contentRect)!==null&&C!==void 0?C:{x:0,y:0,width:0,height:0};i(_.x),l(_.y),h(_.width),y(_.height)},[]);return en(w,I),{ref:P,contentRect:S}}function Iv(e,t){return kv(e)||$v(e,t)||Av(e,t)||jv()}function jv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Av(e,t){if(e){if(typeof e=="string")return ni(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ni(e,t):void 0}}function ni(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $v(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function kv(e){if(Array.isArray(e))return e}function Rv(e){var t=c.useState(!0),n=Iv(t,2),r=n[0],i=n[1];return c.useEffect(()=>{var a=setTimeout(()=>{i(!1)},e);return()=>{clearTimeout(a)}},[e]),r}function Dv(e,t){return Nv(e)||Fv(e,t)||Mv(e,t)||Lv()}function Lv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mv(e,t){if(e){if(typeof e=="string")return ri(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ri(e,t):void 0}}function ri(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Fv(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Nv(e){if(Array.isArray(e))return e}function Uv(e){var t=c.useState(e),n=Dv(t,2),r=n[0],i=n[1];return c.useEffect(()=>{i(e)},[e]),[r,i]}function Wv(e,t,n,r){var i=c.useRef(0);c.useEffect(()=>{i.current>=n||r&&(i.current+=1,e())},[n,r,...t])}function fl(e,t){var n=c.useRef(e),r=t(n.current,e)?n.current:e;return n.current=r,r}function Bv(e){e.preventDefault()}function pl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=c.useMemo(()=>"useSubmitButtonRef-".concat(Vn()),[]),n=c.useCallback(a=>{var o;a==null||(o=a.UNSAFE_getDOMNode())===null||o===void 0||o.setAttribute("form",t)},[t]),r=c.useMemo(()=>({id:t,onSubmit:e?void 0:Bv}),[t,e]),i=c.useMemo(()=>({form:t,ref:n}),[t,n]);return{formProps:r,submitButtonProps:i}}function hl(e,t,n){var r=e.getItem,i=e.selectedKeys,a=e.items;return c.useMemo(()=>{var o=cl(i,a.length,n),s=o.selection,l=o.isInverted;return{selection:ul(s,r,t),isInverted:l}},[i,a.length,n,r,t])}function ml(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ho,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=t(r);a&&(a.addEventListener("scroll",e),n.current=()=>{a.removeEventListener("scroll",e),n.current=void 0})},[t,e])}function ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ai(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ii(Object(n),!0).forEach(function(r){Kv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ii(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kv(e,t,n){return(t=Hv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hv(e){var t=Vv(e,"string");return typeof t=="symbol"?t:t+""}function Vv(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gv(e,t,n,r){var i=arguments.length===4;return c.useCallback(a=>{var o=i?a??r:a;n(ai(ai({},e),{},{[t]:o}))},[n,e,t,i,r])}function Ot(e,t){return Xv(e)||qv(e,t)||zv(e,t)||Yv()}function Yv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zv(e,t){if(e){if(typeof e=="string")return oi(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oi(e,t):void 0}}function oi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qv(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Xv(e){if(Array.isArray(e))return e}function gt(e,t){var n=c.useState(!0),r=Ot(n,2),i=r[0],a=r[1],o=c.useState(e),s=Ot(o,2),l=s[0],u=s[1],f=c.useState(e),p=Ot(f,2),h=p[0],m=p[1],v=c.useState(t),g=Ot(v,2),y=g[0],S=g[1];return(e!==h||t!==y)&&(a(!0),m(e),S(t)),c.useEffect(()=>{var b=!1,O=setTimeout(()=>{b||(a(!1),u(e))},t);return()=>{b=!0,clearTimeout(O)}},[e,t]),{isDebouncing:i,value:l}}function Qv(e,t){return tb(e)||eb(e,t)||Zv(e,t)||Jv()}function Jv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zv(e,t){if(e){if(typeof e=="string")return si(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?si(e,t):void 0}}function si(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eb(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function tb(e){if(Array.isArray(e))return e}function yl(e,t){return c.useCallback(n=>{if(n!=null){var r=t==null?[n]:n.querySelectorAll(t);r.forEach(i=>{Object.entries(e).forEach(a=>{var o=Qv(a,2),s=o[0],l=o[1];i.setAttribute(s,l)})})}},[e,t])}var gl={spellCheck:!1};function nb(e){var t=yl(gl,e);return Sr(t,Lt)}function rb(e,t,n){var r=c.useMemo(()=>typeof e=="string"?[e]:e,[e]);c.useEffect(()=>(r.forEach(i=>window.addEventListener(i,t,n)),()=>r.forEach(i=>window.removeEventListener(i,t,n))),[r,t,n])}const ib=Object.freeze(Object.defineProperty({__proto__:null,SPELLCHECK_FALSE_ATTRIBUTE:gl,createValidationProps:vy,defaultGetKey:by,extractSpectrumHTMLElement:Lt,extractSpectrumLastChildHTMLElement:Sy,findSpectrumComboBoxScrollArea:Py,findSpectrumPickerScrollArea:wy,findSpectrumPopoverScrollArea:Oy,getPositionOfSelectedItem:xy,getSelectedItemCountOrAll:wv,identityExtractHTMLElement:Ty,isElementOfType:Ys,isSelectionEqual:sl,isSelectionMaybeInvertedEqual:ll,mapSelection:ul,mergeRefs:ov,optimizeSelection:cl,useAsyncInterval:Gf,useCallbackWithAction:Ov,useChangeEventValueCallback:xv,useCheckOverflow:Cy,useContentRect:dl,useContextOrThrow:Yf,useCopyToClipboard:zf,useDebouncedCallback:lt,useDebouncedValue:gt,useDelay:Rv,useDependentState:Uv,useEffectNTimesWhen:Wv,useFormWithDetachedSubmitButton:pl,useForwardedRef:qf,useIsEqualMemo:fl,useIsMountedRef:Xf,useMappedRef:Sr,useMappedSelection:hl,useMergeRef:al,useOnChange:Ey,useOnScrollOffsetChangeCallback:_y,useOnScrollRef:ml,usePopoverOnScrollRef:Iy,usePrevious:Qf,usePromiseFactory:Ne,usePropChangeCallback:Gv,useResizeObserver:en,useSetAttributesCallback:yl,useSpectrumDisableSpellcheckRef:nb,useThrottledCallback:Jf,useUndoRedo:jy,useWindowListener:rb,useWindowedListData:Ay},Symbol.toStringTag,{value:"Module"}));var ab=["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 ob(e,t){if(e==null)return{};var n,r,i=sb(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function sb(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function vl(e){var t=e["aria-label"],n=e["aria-labelledby"],r=e["aria-describedby"],i=e["aria-details"],a=e.marginX,o=e.marginY,s=e.width,l=e.height,u=e.minWidth,f=e.minHeight,p=e.maxWidth,h=e.maxHeight,m=e.flex,v=e.flexGrow,g=e.flexShrink,y=e.flexBasis,S=e.justifySelf,b=e.alignSelf,O=e.order,w=e.gridArea,E=e.gridColumn,P=e.gridRow,I=e.gridColumnStart,x=e.gridColumnEnd,C=e.gridRowStart,A=e.gridRowEnd,R=e.position,_=e.zIndex,$=e.top,W=e.bottom,T=e.start,j=e.end,k=e.left,M=e.right,G=e.isHidden,Y=ob(e,ab);return{ariaLabelProps:{"aria-label":t,"aria-labelledby":n,"aria-describedby":r,"aria-details":i},styleProps:{marginX:a,marginY:o,width:s,height:l,minWidth:u,minHeight:f,maxWidth:p,maxHeight:h,flex:m,flexGrow:v,flexShrink:g,flexBasis:y,justifySelf:S,alignSelf:b,order:O,gridArea:w,gridColumn:E,gridRow:P,gridColumnStart:I,gridColumnEnd:x,gridRowStart:C,gridRowEnd:A,position:R,zIndex:_,top:$,bottom:W,start:T,end:j,left:k,right:M,isHidden:G},componentProps:Y}}function Pr(e){var t=e.normalizedItems,n=e.defaultSelectedKeys,r=e.disabledKeys,i=e.selectedKeys,a=e.onChange,o=c.useMemo(()=>at(i),[i]),s=c.useMemo(()=>at(n),[n]),l=c.useMemo(()=>at(r),[r]),u=c.useCallback(f=>{if(a!=null){if(f==="all"){a("all");return}var p=new Set,h=new Set;t.forEach(m=>{var v=String(Mt(m));f.has(v)&&(p.add(Mt(m)),h.add(v))}),f.forEach(m=>{h.has(String(m))||p.add(m)}),a(p)}},[t,a]);return{selectedStringKeys:o,defaultSelectedStringKeys:s,disabledStringKeys:l,onStringSelectionChange:u}}function lb(){var e=Yt(),t=e.selectedThemeKey,n=e.setSelectedThemeKey,r=e.themes,i=c.useCallback(a=>{a!=null&&n("".concat(a))},[n]);return d.jsx(Ju,{label:"Pick a color scheme",items:r,selectedKey:t,onSelectionChange:i,children:a=>d.jsx(Bt,{children:a.name},a.themeKey)})}function ub(e){var t=e.className,n=e.style;return d.jsx("div",{className:V("dh-logo",t),style:n})}function cb(e,t){return hb(e)||pb(e,t)||fb(e,t)||db()}function db(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
7
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fb(e,t){if(e){if(typeof e=="string")return li(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?li(e,t):void 0}}function li(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function pb(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function hb(e){if(Array.isArray(e))return e}var ui=re.module("useExternalTheme");function bl(){var e=c.useState(()=>{var a=zn();return{isEnabled:a,isPending:a}}),t=cb(e,2),n=t[0],r=t[1],i=c.useCallback(a=>{var o=Vo(a);r({isEnabled:!0,isPending:!1,themeData:o})},[]);return c.useEffect(()=>{if(!n.isEnabled)return;ui.debug("Requesting external theme data");function a(o){var s=qn();o.source!==window&&o.source!==s||o.data.message===Yo&&zo(o.data.payload)&&i(o.data.payload)}return window.addEventListener("message",a),Go().then(i).catch(o=>{ui.error(o),r({isEnabled:!0,isPending:!1})}),()=>{window.removeEventListener("message",a)}},[i,n.isEnabled]),n}function mb(e,t){return bb(e)||vb(e,t)||gb(e,t)||yb()}function yb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
8
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gb(e,t){if(e){if(typeof e=="string")return ci(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ci(e,t):void 0}}function ci(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vb(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function bb(e){if(Array.isArray(e))return e}var tn=c.createContext(!1);tn.displayName="FontsLoadedContext";function Sl(e){var t=e.fontClassNames,n=t===void 0?["fira-sans-regular","fira-sans-semibold","fira-mono"]:t,r=e.children,i=c.useState(!1),a=mb(i,2),o=a[0],s=a[1];return c.useEffect(function(){document.fonts.ready.then(()=>{s(!0)})},[]),d.jsxs(d.Fragment,{children:[d.jsx(tn.Provider,{value:o,children:r}),d.jsx("div",{id:"preload-fonts",style:{visibility:"hidden",position:"absolute",top:-1e4},children:n.map(l=>d.jsx("p",{className:l,children:"preload"},l))})]})}function Pl(e){var t=e.children,n=c.useContext(tn);return n?d.jsx(d.Fragment,{children:t}):d.jsx(Ue,{"data-testid":"fonts-loaded-loading"})}var Sb=["UNSAFE_className"],Pb=["forceRerenderKey","ref"];function di(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?di(Object(n),!0).forEach(function(r){wb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):di(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wb(e,t,n){return(t=Ob(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ob(e){var t=xb(e,"string");return typeof t=="symbol"?t:t+""}function xb(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pi(e,t){if(e==null)return{};var n,r,i=Tb(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Tb(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function wl(e){var t=e.UNSAFE_className,n=pi(e,Sb),r=zs(n),i=r.forceRerenderKey,a=r.ref,o=pi(r,Pb);return c.createElement(Gn,fi(fi({},o),{},{key:i,ref:a,UNSAFE_className:V("dh-combobox","dh-combobox-normalized",t)}))}var Cb=["onScroll"];function hi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hi(Object(n),!0).forEach(function(r){Eb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hi(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Eb(e,t,n){return(t=_b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _b(e){var t=Ib(e,"string");return typeof t=="symbol"?t:t+""}function Ib(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jb(e,t){if(e==null)return{};var n,r,i=Ab(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ab(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function wr(e){var t,n,r=vl(e),i=r.ariaLabelProps,a=r.componentProps,o=r.styleProps,s=a.onScroll,l=s===void 0?ge:s,u=jb(a,Cb),f=ur(),p=f.scale,h=ml(l,Lt),m=dl(Lt),v=m.ref,g=m.contentRect;return d.jsx(jo,xt(xt({direction:"column",ref:v},o),{},{minHeight:(t=o.minHeight)!==null&&t!==void 0?t:1,UNSAFE_className:V("dh-list-view-wrapper","dh-list-view-wrapper-density-".concat((n=u.density)!==null&&n!==void 0?n:"regular"),"dh-list-view-wrapper-scale-".concat(p),o.UNSAFE_className),children:g.height===0?null:d.jsx(Zu,xt(xt({ref:h},i),u))}))}var $b=["children","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","UNSAFE_className","onChange","onScroll","onSelectionChange"];function mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mi(Object(n),!0).forEach(function(r){kb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mi(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kb(e,t,n){return(t=Rb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rb(e){var t=Db(e,"string");return typeof t=="symbol"?t:t+""}function Db(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lb(e,t){if(e==null)return{};var n,r,i=Mb(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Mb(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Fb(e){var t=e.children,n=e.tooltip,r=n===void 0?!0:n,i=e.selectedKeys,a=e.defaultSelectedKeys,o=e.disabledKeys,s=e.UNSAFE_className,l=e.onChange,u=e.onScroll,f=u===void 0?ge:u,p=e.onSelectionChange,h=Lb(e,$b),m=c.useMemo(()=>yt(r,"bottom"),[r]),v=c.useMemo(()=>cr(t,m),[t,m]);return d.jsx(wr,yi(yi({},h),{},{UNSAFE_className:V("dh-list-view",s),selectedKeys:i,defaultSelectedKeys:a,disabledKeys:o,onScroll:f,onSelectionChange:l??p,children:v}))}var Nb=["normalizedItems","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","showItemIcons","actions","UNSAFE_className","onChange","onSelectionChange"];function gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gi(Object(n),!0).forEach(function(r){Ub(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gi(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ub(e,t,n){return(t=Wb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wb(e){var t=Bb(e,"string");return typeof t=="symbol"?t:t+""}function Bb(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kb(e,t){if(e==null)return{};var n,r,i=Hb(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Hb(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ol(e){var t=e.normalizedItems,n=e.tooltip,r=n===void 0?!0:n,i=e.selectedKeys,a=e.defaultSelectedKeys,o=e.disabledKeys,s=e.showItemIcons,l=e.actions,u=e.UNSAFE_className,f=e.onChange,p=e.onSelectionChange,h=Kb(e,Nb),m=c.useMemo(()=>yt(r,"bottom"),[r]),v=dr({itemIconSlot:"illustration",showItemDescriptions:!1,showItemIcons:s,tooltipOptions:m,actions:l}),g="".concat(s,"-").concat(m==null?void 0:m.placement),y=Pr({normalizedItems:t,selectedKeys:i,defaultSelectedKeys:a,disabledKeys:o,onChange:f??p}),S=y.selectedStringKeys,b=y.defaultSelectedStringKeys,O=y.disabledStringKeys,w=y.onStringSelectionChange;return c.createElement(wr,vi(vi({},h),{},{UNSAFE_className:V("dh-list-view-normalized",u),key:g,items:t,selectedKeys:S,defaultSelectedKeys:b,disabledKeys:O,onSelectionChange:w}),v)}function bi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Si(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bi(Object(n),!0).forEach(function(r){Vb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bi(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vb(e,t,n){return(t=Gb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gb(e){var t=Yb(e,"string");return typeof t=="symbol"?t:t+""}function Yb(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Or(e){return e.replace(/^\.\$/,"")}function Pi(e){var t;if(e.key==null)return null;var n=Or(String(e.key)),r=(t=qs(e))!==null&&t!==void 0?t:typeof e.props.children=="string"?e.props.children:n;return{kind:"item",key:n,label:r}}function xr(e){return e.kind==="section"}function zb(e){var t=[];return e.forEach(n=>{if(fr(n)){var r=n,i=r.key!=null?Or(String(r.key)):String(t.length),a=[];zt(r.props.children).forEach(s=>{if(Ft(s)){var l=Pi(s);l!=null&&a.push(l)}}),t.push({kind:"section",key:i,title:r.props.title,items:a});return}if(Ft(n)){var o=Pi(n);o!=null&&t.push(o)}}),t}function xl(e){return e.flatMap(t=>xr(t)?t.items:[t])}function qb(e,t,n){var r=[];return e.forEach(i=>{if(xr(i)){var a=i.items.filter(o=>n(o.label,t));a.length>0&&r.push(Si(Si({},i),{},{items:a}))}else n(i.label,t)&&r.push(i)}),r}function Xb(e){var t=new Set;return e.forEach(n=>{xr(n)?n.items.forEach(r=>t.add(r.key)):t.add(n.key)}),t}function Tl(e,t){var n=[];return e.forEach(r=>{if(fr(r)){var i=r,a=Tl(zt(i.props.children).filter(s=>s!=null),t);a.length>0&&n.push(c.cloneElement(i,{children:a}));return}if(Ft(r)){var o=r;o.key!=null&&t.has(Or(String(o.key)))&&n.push(r)}}),n}function wi(e,t){return e==null?new Set:e==="all"?new Set(t):new Set([...e].map(String))}function Qb(e,t){return t0(e)||e0(e,t)||Zb(e,t)||Jb()}function Jb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
9
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zb(e,t){if(e){if(typeof e=="string")return Oi(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oi(e,t):void 0}}function Oi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function e0(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function t0(e){if(Array.isArray(e))return e}function n0(e){var t=e.selectedKeys,n=e.defaultSelectedKeys,r=e.disabledKeys,i=e.onChange,a=e.onSelectionChange,o=e.allKeys,s=c.useMemo(()=>t!==void 0?wi(t,o):void 0,[t,o]),l=c.useCallback(O=>{var w=i??a;w==null||w(O)},[i,a]),u=c.useRef(void 0);u.current===void 0&&(u.current=wi(n,o));var f=Ao(s,u.current,l),p=Qb(f,2),h=p[0],m=p[1],v=c.useRef(h);v.current=h;var g=c.useMemo(()=>at(r),[r]),y=c.useCallback(O=>{var w=new Set(v.current);w.has(O)?w.delete(O):w.add(O),m(w)},[m]),S=c.useCallback((O,w)=>{if(O==="all"){m(new Set(o));return}var E=new Set(w.map(I=>I.key)),P=new Set([...v.current].filter(I=>!E.has(I)));O.forEach(I=>P.add(String(I))),m(P)},[o,m]),b=c.useMemo(()=>[...h],[h]);return{selectedKeys:h,selectedKeyArray:b,listBoxDisabledKeys:g,toggleKey:y,applyListBoxSelection:S}}function r0(e,t){return s0(e)||o0(e,t)||a0(e,t)||i0()}function i0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
10
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a0(e,t){if(e){if(typeof e=="string")return xi(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xi(e,t):void 0}}function xi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o0(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function s0(e){if(Array.isArray(e))return e}function l0(e){var t=e.allEntries,n=e.wrappedChildren,r=e.inputValue,i=e.defaultInputValue,a=e.onInputChange,o=e.onSearchTextChange,s=Ao(r,i,a),l=r0(s,2),u=l[0],f=l[1],p=c.useCallback(b=>{f(b),o==null||o(b)},[f,o]),h=ec({sensitivity:"base"}),m=h.contains,v=o!=null||u==="",g=c.useMemo(()=>v?t:qb(t,u,m),[t,u,m,v]),y=c.useMemo(()=>xl(g),[g]),S=c.useMemo(()=>{if(v)return n;var b=Xb(g);return Tl(n,b)},[n,g,v]);return{searchText:u,setSearchText:p,filteredItems:y,filteredJsxChildren:S}}function u0(e,t){return p0(e)||f0(e,t)||d0(e,t)||c0()}function c0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
11
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d0(e,t){if(e){if(typeof e=="string")return Ti(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ti(e,t):void 0}}function Ti(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f0(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function p0(e){if(Array.isArray(e))return e}function h0(e){return e.replace(/\s+/g,"")}function m0(e){var t=e.filteredItems,n=e.allItems,r=e.shouldFocusWrap,i=e.overlayState,a=e.openOverlay,o=e.closeOverlay,s=e.isReadOnly,l=e.isDisabled,u=e.searchText,f=e.setSearchText,p=e.selectedKeys,h=e.toggleKey,m=e.allowsCustomValue,v=e.menuTrigger,g=e.onKeyDown,y=e.listBoxContainerRef,S=e.inputRef,b=c.useState(null),O=u0(b,2),w=O[0],E=O[1],P=c.useCallback(C=>{var A=t.length;A!==0&&E(R=>{var _=R==null?-1:t.findIndex(W=>W.key===R),$;return C==="down"?_===-1?$=0:r?$=(_+1)%A:$=Math.min(_+1,A-1):_===-1?$=A-1:r?$=(_-1+A)%A:$=Math.max(_-1,0),t[$].key})},[t,r]),I=c.useCallback(C=>{if(!l){switch(C.key){case"ArrowDown":C.preventDefault(),i.isOpen?P("down"):a("manual");break;case"ArrowUp":C.preventDefault(),i.isOpen&&P("up");break;case"Enter":{if(!i.isOpen){C.preventDefault(),a("manual");break}var A=w!=null&&t.some(T=>T.key===w);if(!s&&A)C.preventDefault(),h(w);else if(!s&&m&&u.trim()!==""){C.preventDefault();var R=u.trim(),_=n.find(T=>T.label.toLowerCase()===R.toLowerCase());h(_!=null?_.key:R),f("")}else f(""),o();break}case"Escape":i.isOpen&&(C.preventDefault(),o());break;case"Tab":i.isOpen&&o();break;case"Backspace":if(u===""&&!s&&p.size>0){var $=[...p],W=$[$.length-1];W!=null&&h(W)}break}g==null||g(C)}},[l,i,a,o,P,s,w,t,n,m,h,u,f,p,g]),x=c.useRef(!1);return c.useEffect(()=>{x.current&&!i.isOpen&&(m||f(""),E(null)),x.current=i.isOpen},[i.isOpen,f,m]),c.useEffect(()=>{v!=="manual"&&u!==""&&!i.isOpen&&!l&&a("input")},[u]),c.useEffect(()=>{var C=y.current;if(C==null){var A;(A=S.current)===null||A===void 0||A.removeAttribute("aria-activedescendant");return}var R=C.querySelectorAll('[role="option"]'),_=w!=null?"-option-".concat(h0(w)):null,$;R.forEach(T=>{var j=_!=null&&T.id.endsWith(_);j?(T.setAttribute("data-dh-focused","true"),T.scrollIntoView({block:"nearest"}),$=T.id):T.removeAttribute("data-dh-focused")});var W=S.current;W!=null&&($!=null?W.setAttribute("aria-activedescendant",$):W.removeAttribute("aria-activedescendant"))},[w,t,S,y]),{handleInputKeyDown:I}}function y0(e,t){return S0(e)||b0(e,t)||v0(e,t)||g0()}function g0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
12
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v0(e,t){if(e){if(typeof e=="string")return Ci(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ci(e,t):void 0}}function Ci(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function b0(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function S0(e){if(Array.isArray(e))return e}var P0=500;function w0(e){var t=e.loadingState,n=e.searchText,r=e.isOpen,i=e.menuTrigger,a=c.useState(!1),o=y0(a,2),s=o[0],l=o[1],u=c.useRef(null),f=t==="loading"||t==="filtering",p=c.useRef(n);return c.useEffect(()=>{if(f&&!s){var h=n!==p.current;u.current!==null&&h&&(clearTimeout(u.current),u.current=null),u.current===null&&(u.current=setTimeout(()=>{l(!0)},P0))}else f||(l(!1),u.current!=null&&(clearTimeout(u.current),u.current=null));p.current=n},[f,s,n]),c.useEffect(()=>()=>{u.current!=null&&(clearTimeout(u.current),u.current=null)},[]),s&&(r||i==="manual"||t==="loading")}function O0(e,t){return E0(e)||C0(e,t)||T0(e,t)||x0()}function x0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
13
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T0(e,t){if(e){if(typeof e=="string")return Ei(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ei(e,t):void 0}}function Ei(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function C0(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function E0(e){if(Array.isArray(e))return e}function _0(e){var t=e.containerRef,n=e.isOpen,r=e.onScroll,i=c.useState(null),a=O0(i,2),o=a[0],s=a[1],l=c.useRef(r);l.current=r,c.useEffect(()=>{if(!n){s(null);return}var u=window.requestAnimationFrame(()=>{var f=t.current;if(f!=null){var p=f.querySelector('[role="listbox"]');s(p??f)}});return()=>{window.cancelAnimationFrame(u)}},[n,t]),c.useEffect(()=>{if(o!=null){var u=f=>{l.current(f)};return o.addEventListener("scroll",u),()=>{o.removeEventListener("scroll",u)}}},[o])}function I0(e){var t=e.tagKey,n=e.label,r=e.isDisabled,i=e.isReadOnly,a=e.onRemove;return d.jsxs("span",{className:"dh-multi-select-tag",children:[d.jsx("span",{className:"dh-multi-select-tag-label",children:n}),!r&&!i&&d.jsx("button",{type:"button",className:"dh-multi-select-tag-remove",tabIndex:-1,"aria-label":"Remove ".concat(n),onPointerDown:o=>o.preventDefault(),onClick:()=>a(t),children:d.jsx(tc,{})})]})}function j0(e){var t=e.listBoxRef,n=e.listBoxId,r=e.loadingState,i=e.children,a=e.selectedKeys,o=e.disabledKeys,s=e.onSelectionChange,l=e.ariaLabel,u=e.emptyMessage;return u!=null?d.jsx("div",{className:"dh-multi-select-empty",children:u}):d.jsx(nc,{ref:t,id:n,selectionMode:"multiple",selectedKeys:a,onSelectionChange:s,disabledKeys:o,"aria-label":l,isLoading:r==="loadingMore",UNSAFE_style:{maxHeight:"inherit"},children:i})}var A0=["children","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","onChange","onSelectionChange","onOpenChange","onScroll","label","description","errorMessage","isRequired","isDisabled","isReadOnly","validationState","isQuiet","labelPosition","labelAlign","necessityIndicator","contextualHelp","inputValue","defaultInputValue","onInputChange","shouldFocusWrap","loadingState","menuTrigger","align","direction","shouldFlip","menuWidth","allowsCustomValue","formValue","validationBehavior","autoFocus","name","id","isHidden","onFocus","onBlur","onFocusChange","onKeyDown","onKeyUp","onSearchTextChange","selectedItemLabels","UNSAFE_className","aria-label","aria-labelledby","aria-describedby","aria-details"];function _i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ii(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_i(Object(n),!0).forEach(function(r){$0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_i(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $0(e,t,n){return(t=k0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k0(e){var t=R0(e,"string");return typeof t=="symbol"?t:t+""}function R0(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function D0(e,t){if(e==null)return{};var n,r,i=L0(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function L0(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function M0(e){if(e!=null)return typeof e=="number"?"".concat(e,"px"):/^(size|static-size)-/.test(e)?"var(--spectrum-global-dimension-".concat(e,")"):e}function F0(e,t){var n,r,i,a=e.children,o=e.tooltip,s=o===void 0?!0:o,l=e.selectedKeys,u=e.defaultSelectedKeys,f=e.disabledKeys,p=e.onChange,h=e.onSelectionChange,m=e.onOpenChange,v=e.onScroll,g=v===void 0?ge:v,y=e.label,S=e.description,b=e.errorMessage,O=e.isRequired,w=O===void 0?!1:O,E=e.isDisabled,P=E===void 0?!1:E,I=e.isReadOnly,x=I===void 0?!1:I,C=e.validationState,A=e.isQuiet,R=A===void 0?!1:A,_=e.labelPosition,$=_===void 0?"top":_,W=e.labelAlign,T=e.necessityIndicator,j=e.contextualHelp,k=e.inputValue,M=e.defaultInputValue,G=M===void 0?"":M,Y=e.onInputChange,ie=e.shouldFocusWrap,Se=ie===void 0?!1:ie,oe=e.loadingState,X=e.menuTrigger,Q=X===void 0?"input":X,q=e.align,D=q===void 0?"start":q,N=e.direction,H=N===void 0?"bottom":N,K=e.shouldFlip,Z=K===void 0?!0:K,ne=e.menuWidth,ue=e.allowsCustomValue,L=ue===void 0?!1:ue,F=e.formValue,U=F===void 0?"key":F,z=e.validationBehavior,de=z===void 0?"aria":z,Ae=e.autoFocus,gu=Ae===void 0?!1:Ae,$r=e.name,vu=e.id,kr=e.isHidden,bu=kr===void 0?!1:kr,vt=e.onFocus,$e=e.onBlur,me=e.onFocusChange,Su=e.onKeyDown,Pu=e.onKeyUp,wu=e.onSearchTextChange,bt=e.selectedItemLabels,Ou=e.UNSAFE_className,xu=e["aria-label"],Tu=e["aria-labelledby"],Cu=e["aria-describedby"],Eu=e["aria-details"],_u=D0(e,A0),on=c.useRef(void 0),Iu=c.useCallback(B=>{m==null||m(B,on.current)},[m]),te=rc({onOpenChange:Iu}),ke=c.useCallback(B=>{on.current=B,te.open()},[te]),We=c.useCallback(()=>{on.current=void 0,te.close()},[te]),Rr=c.useId(),ju="".concat(H," ").concat(D),Oe=c.useRef(null),qe=c.useRef(null),Dr=c.useRef(null),Xe=Hr(Dr),Lr=c.useRef(null),Mr=Hr(Lr),St=c.useRef(!1),Au=al(Oe,t),Fr=c.useMemo(()=>yt(s),[s]),sn=c.useMemo(()=>zt(cr(a,Fr)),[a,Fr]),ln=c.useMemo(()=>zb(sn),[sn]),Qe=c.useMemo(()=>xl(ln),[ln]),$u=c.useMemo(()=>Qe.map(B=>B.key),[Qe]),ku=c.useRef(new Map),Nr=c.useMemo(()=>{var B=ku.current;return Qe.forEach(ae=>B.set(ae.key,ae.label)),new Map(B)},[Qe]),Ur=c.useCallback(B=>{var ae,Re;return(ae=(Re=Nr.get(B))!==null&&Re!==void 0?Re:bt==null?void 0:bt.get(B))!==null&&ae!==void 0?ae:B},[Nr,bt]),Pt=l0({allEntries:ln,wrappedChildren:sn,inputValue:k,defaultInputValue:G,onInputChange:Y,onSearchTextChange:wu}),un=Pt.searchText,Wr=Pt.setSearchText,Je=Pt.filteredItems,Ru=Pt.filteredJsxChildren,Du=c.useMemo(()=>{if(!(Je.length>0)){if(oe==="loading")return"Loading...";if(oe!=="loadingMore")return"No results"}},[Je.length,oe]),Ze=n0({selectedKeys:l,defaultSelectedKeys:u,disabledKeys:f,onChange:p,onSelectionChange:h,allKeys:$u}),Br=Ze.selectedKeys,cn=Ze.selectedKeyArray,Lu=Ze.listBoxDisabledKeys,dn=Ze.toggleKey,Kr=Ze.applyListBoxSelection,Mu=m0({filteredItems:Je,allItems:Qe,shouldFocusWrap:Se,overlayState:te,openOverlay:ke,closeOverlay:We,isReadOnly:x,isDisabled:P,searchText:un,setSearchText:Wr,selectedKeys:Br,toggleKey:dn,allowsCustomValue:L,menuTrigger:Q,onKeyDown:Su,listBoxContainerRef:Mr,inputRef:qe}),Fu=Mu.handleInputKeyDown;_0({containerRef:Mr,isOpen:te.isOpen,onScroll:g});var Nu=w0({loadingState:oe,searchText:un,isOpen:te.isOpen,menuTrigger:Q}),wt=c.useCallback(()=>{requestAnimationFrame(()=>{var B;(B=qe.current)===null||B===void 0||B.focus()})},[]),Uu=c.useCallback(B=>{dn(B),wt()},[dn,wt]),Wu=c.useCallback(B=>{x||(Kr(B,Je),wt())},[x,Kr,Je,wt]),Bu=c.useCallback(B=>{St.current||(St.current=!0,Q==="focus"&&!te.isOpen&&!P&&ke("focus"),vt==null||vt(B),me==null||me(!0))},[vt,me,Q,te,P,ke]),Ku=c.useCallback(B=>{var ae=B.relatedTarget;if(ae!=null){if(Oe.current!=null&&Oe.current.contains(ae)||Xe.current!=null&&Xe.current.contains(ae))return}else{requestAnimationFrame(()=>{var Re=document.activeElement;Re!=null&&(Oe.current!=null&&Oe.current.contains(Re)||Xe.current!=null&&Xe.current.contains(Re))||(St.current=!1,te.isOpen&&We(),$e==null||$e(B),me==null||me(!1))});return}St.current=!1,te.isOpen&&We(),$e==null||$e(B),me==null||me(!1)},[$e,me,te,We,Xe]),Hu=c.useCallback(()=>{var B;P||(te.isOpen||ke("manual"),(B=qe.current)===null||B===void 0||B.focus())},[P,te,ke]),Vu=c.useCallback(B=>{var ae;B.stopPropagation(),!P&&(te.isOpen?We():ke("manual"),(ae=qe.current)===null||ae===void 0||ae.focus())},[P,te,ke,We]);return d.jsx(ic,Ii(Ii({},_u),{},{label:y,description:S,errorMessage:C==="invalid"?b:void 0,isRequired:w,isDisabled:P,validationState:C,labelPosition:$,labelAlign:W,necessityIndicator:T,contextualHelp:j,wrapperClassName:V("dh-multi-select",Ou),children:d.jsxs("div",{style:bu?{display:"none"}:void 0,children:[d.jsx(ac,{within:!0,focusRingClass:"focus-ring",focusClass:"is-focused",children:d.jsxs("div",{ref:Au,id:vu,onClick:Hu,className:V("dh-multi-select-trigger",{"is-disabled":P,"is-read-only":x,"is-quiet":R,"is-invalid":C==="invalid"}),children:[d.jsxs("div",{className:"dh-multi-select-content",children:[cn.map(B=>d.jsx(I0,{tagKey:B,label:Ur(B),isDisabled:P,isReadOnly:x,onRemove:Uu},B)),d.jsx("input",{ref:qe,className:"dh-multi-select-input",value:un,onChange:B=>Wr(B.target.value),onFocus:Bu,onBlur:Ku,onKeyDown:Fu,onKeyUp:Pu,disabled:P,readOnly:x,autoFocus:gu,role:"combobox","aria-haspopup":"listbox","aria-expanded":te.isOpen,"aria-controls":te.isOpen?Rr:void 0,"aria-autocomplete":"list","aria-label":xu,"aria-labelledby":Tu,"aria-describedby":Cu,"aria-details":Eu})]}),Nu&&d.jsx("div",{className:"dh-multi-select-loading-circle",children:d.jsx($o,{"aria-label":"Loading",isIndeterminate:!0,size:"S"})}),C==="invalid"&&!P&&d.jsx("div",{className:"dh-multi-select-invalid-icon","aria-hidden":"true",children:d.jsx(oc,{})}),d.jsx("div",{className:V("dh-multi-select-chevron",{"is-open":te.isOpen}),onClick:Vu,onPointerDown:B=>B.preventDefault(),role:"button",tabIndex:-1,"aria-label":"Toggle dropdown",children:d.jsx(sc,{})})]})}),$r!=null&&d.jsx("input",{type:"hidden",name:$r,value:U==="text"?cn.map(Ur).join(","):cn.join(","),required:de==="native"&&w?!0:void 0}),te.isOpen&&!P&&d.jsx(lc,{ref:Dr,triggerRef:Oe,state:te,hideArrow:!0,isNonModal:!0,placement:ju,shouldFlip:Z,shouldCloseOnInteractOutside:B=>{var ae;return((ae=Oe.current)===null||ae===void 0?void 0:ae.contains(B))!==!0},UNSAFE_style:{width:(n=(r=M0(ne))!==null&&r!==void 0?r:(i=Oe.current)===null||i===void 0?void 0:i.offsetWidth)!==null&&n!==void 0?n:void 0},children:d.jsx(j0,{listBoxRef:Lr,listBoxId:Rr,loadingState:oe,selectedKeys:Br,disabledKeys:Lu,onSelectionChange:Wu,ariaLabel:typeof y=="string"?y:"Options",emptyMessage:Du,children:Ru})})]})}))}var Tr=J.forwardRef(F0);Tr.displayName="MultiSelect";var N0=["normalizedItems","showItemIcons","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","onChange","onSelectionChange"];function ji(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ai(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ji(Object(n),!0).forEach(function(r){U0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ji(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function U0(e,t,n){return(t=W0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W0(e){var t=B0(e,"string");return typeof t=="symbol"?t:t+""}function B0(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function K0(e,t){if(e==null)return{};var n,r,i=H0(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function H0(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function V0(e){var t=e.normalizedItems,n=e.showItemIcons,r=e.tooltip,i=r===void 0?!0:r,a=e.selectedKeys,o=e.defaultSelectedKeys,s=e.disabledKeys,l=e.onChange,u=e.onSelectionChange,f=K0(e,N0),p=c.useMemo(()=>yt(i),[i]),h=dr({itemIconSlot:"icon",showItemDescriptions:!1,showItemIcons:n,tooltipOptions:p}),m="".concat(n,"-").concat(p==null?void 0:p.placement),v=c.useMemo(()=>t.flatMap(E=>{var P,I;return jn(E)?(P=(I=E.item)===null||I===void 0?void 0:I.items)!==null&&P!==void 0?P:[]:[E]}),[t]),g=Pr({normalizedItems:v,selectedKeys:a,defaultSelectedKeys:o,disabledKeys:s,onChange:l??u}),y=g.selectedStringKeys,S=g.defaultSelectedStringKeys,b=g.disabledStringKeys,O=g.onStringSelectionChange,w=c.useMemo(()=>t.map(E=>{if(jn(E)){var P,I;return d.jsx(uc,{title:(P=E.item)===null||P===void 0?void 0:P.title,items:(I=E.item)===null||I===void 0?void 0:I.items,children:h},Mt(E))}return h(E)}),[t,h]);return Ai(Ai({},f),{},{children:w,forceRerenderKey:m,selectedKeys:y,defaultSelectedKeys:S,disabledKeys:b,onChange:O})}var G0=["UNSAFE_className"],Y0=["forceRerenderKey","children"];function $i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ki(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$i(Object(n),!0).forEach(function(r){z0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$i(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function z0(e,t,n){return(t=q0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q0(e){var t=X0(e,"string");return typeof t=="symbol"?t:t+""}function X0(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ri(e,t){if(e==null)return{};var n,r,i=Q0(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Q0(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Cl(e){var t=e.UNSAFE_className,n=Ri(e,G0),r=V0(n),i=r.forceRerenderKey,a=r.children,o=Ri(r,Y0);return c.createElement(Tr,ki(ki({},o),{},{key:i,UNSAFE_className:V("dh-multi-select-normalized",t)}),a)}var J0=["backgroundColor","borderColor","borderStartColor","borderEndColor","borderTopColor","borderBottomColor","borderXColor","borderYColor","UNSAFE_style"];function Di(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Tt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Di(Object(n),!0).forEach(function(r){Z0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Di(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Z0(e,t,n){return(t=eS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eS(e){var t=tS(e,"string");return typeof t=="symbol"?t:t+""}function tS(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nS(e,t){if(e==null)return{};var n,r,i=rS(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function rS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var El=c.forwardRef((e,t)=>{var n=e.backgroundColor,r=e.borderColor,i=e.borderStartColor,a=e.borderEndColor,o=e.borderTopColor,s=e.borderBottomColor,l=e.borderXColor,u=e.borderYColor,f=e.UNSAFE_style,p=nS(e,J0),h=cc(),m=h.direction,v=c.useMemo(()=>{var g={};return r!==void 0&&(g.borderColor=ye(r)),l!==void 0&&(g.borderLeftColor=ye(l),g.borderRightColor=ye(l)),u!==void 0&&(g.borderTopColor=ye(u),g.borderBottomColor=ye(u)),i!==void 0&&(g[m==="rtl"?"borderRightColor":"borderLeftColor"]=ye(i)),a!==void 0&&(g[m==="rtl"?"borderLeftColor":"borderRightColor"]=ye(a)),o!==void 0&&(g.borderTopColor=ye(o)),s!==void 0&&(g.borderBottomColor=ye(s)),Tt(Tt({},f),{},{backgroundColor:ye(n)},g)},[n,f,r,i,a,o,s,l,u,m]);return d.jsx(dc,Tt(Tt({},p),{},{ref:t,UNSAFE_style:v}))});El.displayName="View";var iS=["children"];function Li(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Li(Object(n),!0).forEach(function(r){aS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Li(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aS(e,t,n){return(t=oS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oS(e){var t=sS(e,"string");return typeof t=="symbol"?t:t+""}function sS(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lS(e,t){if(e==null)return{};var n,r,i=uS(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function uS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function cS(e){var t=e.children,n=lS(e,iS),r=c.useMemo(()=>zt(t).map(i=>Ys(i,wn)?i:d.jsx(wn,{value:String(i),children:String(i)},String(i))),[t]);return d.jsx(fc,Mi(Mi({},n),{},{children:r}))}var dS=["ariaLabel","icon","isQuiet","labelText","children","onOpenChange","tooltip"];function Fi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ni(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fi(Object(n),!0).forEach(function(r){fS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fi(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fS(e,t,n){return(t=pS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pS(e){var t=hS(e,"string");return typeof t=="symbol"?t:t+""}function hS(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mS(e,t){if(e==null)return{};var n,r,i=yS(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function yS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function _l(e){var t=e.ariaLabel,n=e.icon,r=e.isQuiet,i=e.labelText,a=e.children,o=e.onOpenChange,s=e.tooltip,l=mS(e,dS),u=i==null&&s!=null?"action-button-icon-with-tooltip":void 0;return d.jsxs(ko,{type:"popover",onOpenChange:o,children:[d.jsxs(Kt,Ni(Ni({},l),{},{"aria-label":t??i,isQuiet:r,children:[d.jsx(pt,{UNSAFE_className:u,children:d.jsx(ce,{icon:n})}),i==null?null:d.jsx(qt,{children:i}),s==null?null:d.jsx(mt,{children:s})]})),a]})}function Ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ct(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ui(Object(n),!0).forEach(function(r){gS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ui(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gS(e,t,n){return(t=vS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vS(e){var t=bS(e,"string");return typeof t=="symbol"?t:t+""}function bS(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Il(e){var t=e.heading,n=e.confirmationButtonLabel,r=e.children,i=e.onCancel,a=e.onConfirm,o=pl(),s=o.formProps,l=o.submitButtonProps;return d.jsxs(Ro,{children:[d.jsx(tr,{level:3,UNSAFE_className:pr.spectrumDialogComponentHeading,children:t}),d.jsx(Do,{}),d.jsx(Yn,{children:d.jsx(Lo,Ct(Ct({},s),{},{children:r}))}),d.jsxs(Mo,{children:[d.jsx(On,{variant:"secondary",onPress:i,children:"Cancel"}),d.jsx(On,Ct(Ct({},l),{},{style:"fill",variant:"negative",onPress:a,type:"submit",children:n}))]})]})}function SS(e){var t=e.ariaLabel,n=e.heading,r=e.confirmationButtonLabel,i=e.isHidden,a=e.children,o=e.tooltip,s=e.onConfirm,l=c.useCallback(u=>d.jsx(Il,{heading:n,confirmationButtonLabel:r,onCancel:u,onConfirm:()=>{u(),s()},children:a}),[a,r,n,s]);return d.jsx(_l,{ariaLabel:t,icon:qo,isHidden:i,isQuiet:!0,height:hr,tooltip:o,children:l})}var PS=["icon","label","tooltip"];function Wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Bi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wi(Object(n),!0).forEach(function(r){wS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wi(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wS(e,t,n){return(t=OS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OS(e){var t=xS(e,"string");return typeof t=="symbol"?t:t+""}function xS(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TS(e,t){if(e==null)return{};var n,r,i=CS(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function CS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function jl(e){var t=e.icon,n=e.label,r=e.tooltip,i=TS(e,PS);return d.jsxs(Kt,Bi(Bi({},i),{},{"aria-label":n,isQuiet:!0,height:hr,children:[d.jsx(pt,{UNSAFE_className:r==null?void 0:"action-button-icon-with-tooltip",children:d.jsx(ce,{icon:t})}),r==null?null:d.jsx(mt,{children:r})]}))}jl.displayName="IconActionButton";function Ki(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ES(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ki(Object(n),!0).forEach(function(r){_e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ki(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _e(e,t,n){return(t=_S(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _S(e){var t=IS(e,"string");return typeof t=="symbol"?t:t+""}function IS(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jS=100,Al=function(e){return e.UP="UP",e.DOWN="DOWN",e}(Al||{});class be extends c.Component{constructor(t){super(t),_e(this,"popper",void 0),_e(this,"cbContainer",void 0),_e(this,"menuContainer",void 0),_e(this,"input",void 0),_e(this,"getCachedFilteredOptions",pc((r,i)=>r.filter(a=>a.title.toLowerCase().indexOf(i.toLowerCase())>=0),{max:1e3}));var n=this.props.popperOptions;n=ES({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=ot(this.updateInputValue,jS),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleMenuOpened=this.handleMenuOpened.bind(this),this.handleMenuExited=this.handleMenuExited.bind(this),this.popper=J.createRef(),this.cbContainer=J.createRef(),this.menuContainer=J.createRef(),this.input=J.createRef()}setInputWidth(){this.cbContainer.current&&this.setState({inputWidth:this.cbContainer.current.getBoundingClientRect().width})}getValueAndValidate(t){if(!t)return this.setState({invalid:!1}),{value:t,isValid:!1};var n=this.props.options,r=n.filter(i=>i.title.toLowerCase()===t.toLowerCase());return r.length<1?(this.setState({invalid:!0}),{value:t,isValid:!1}):(this.setState({invalid:!1}),{value:r[0].value,isValid:!0})}updateInputValue(t){var n=this.state.menuIsOpen,r=this.getValueAndValidate(t),i=r.value,a=r.isValid;n&&this.processFilterChange(t),this.fireOnChange(i,a)}fireOnChange(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this.props.onChange;r(t,n)}processFilterChange(t){var n,r=this.props.options,i=this.state.menuIsOpen,a=t?this.getCachedFilteredOptions(r,t):r,o=a.length===1&&a[0].title===t;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(t){var n,r=this.state,i=r.filteredOptions,a=r.keyboardOptionIndex,o=i[a];switch(t.key){case"Enter":case"ArrowRight":t.stopPropagation(),t.preventDefault(),o!=null&&(this.setState({title:o.title,invalid:!1}),this.fireOnChange(o.value)),this.closeMenu(),(n=this.input.current)===null||n===void 0||n.focus();break;case"ArrowUp":t.stopPropagation(),t.preventDefault(),this.navigateMenu(be.MENU_NAVIGATION_DIRECTION.UP);break;case"ArrowDown":t.stopPropagation(),t.preventDefault(),this.navigateMenu(be.MENU_NAVIGATION_DIRECTION.DOWN);break;case"Tab":if(t.stopPropagation(),t.preventDefault(),t.shiftKey){this.navigateMenu(be.MENU_NAVIGATION_DIRECTION.UP);break}this.navigateMenu(be.MENU_NAVIGATION_DIRECTION.DOWN);break;case"Escape":t.preventDefault(),t.stopPropagation(),this.closeMenu();break}}navigateMenu(t){var n=this.state,r=n.filteredOptions,i=n.keyboardOptionIndex,a=i;t===be.MENU_NAVIGATION_DIRECTION.UP?i>0?(a=(a-1)%r.length,this.setState({keyboardOptionIndex:a})):i===0&&(a=r.length-1,this.setState({keyboardOptionIndex:a})):t===be.MENU_NAVIGATION_DIRECTION.DOWN&&i<r.length&&(a=(a+1)%r.length,this.setState({keyboardOptionIndex:a})),this.scrollOptionIntoView(a)}handleInputKeyDown(t){var n=this.props.onEnter,r=this.state.menuIsOpen;r?this.handleMenuKeyDown(t):t.key==="Enter"?n():t.key==="Escape"?(this.resetValue(),t.preventDefault(),t.stopPropagation()):t.key==="ArrowRight"||t.key==="ArrowLeft"||t.key==="Tab"||t.key==="Shift"||this.openMenu()}handleInputChange(t){this.setState({title:t.target.value}),this.updateInputValue(t.target.value)}handleOptionClick(t){var n;this.setState({title:t.title,invalid:!1}),this.fireOnChange(t.value),this.closeMenu(),(n=this.input.current)===null||n===void 0||n.focus()}handelInputFocus(){var t=this.state.menuIsOpen;t||this.openMenu()}handleInputClick(){var t=this.state.menuIsOpen;t||this.openMenu()}handleInputBlur(t){var n=this.state.menuIsOpen;n&&t.relatedTarget instanceof Element&&this.popper.current!==null&&this.popper.current.element.contains(t.relatedTarget)||this.closeMenu(!1)}handleMenuBlur(t){t.relatedTarget===this.input.current||t.relatedTarget instanceof Element&&this.popper.current!==null&&this.popper.current.element.contains(t.relatedTarget)||this.closeMenu(!1)}handleMenuOpened(){var t;(t=this.input.current)===null||t===void 0||t.focus()}handleMenuExited(){var t=this.state.menuIsOpen;t&&this.setState({menuIsOpen:!1,keyboardOptionIndex:0})}openMenu(){var t=this.state.title;this.processFilterChange(t),this.setInputWidth(),this.setState({menuIsOpen:!0}),window.requestAnimationFrame(()=>{var n;(n=this.popper.current)===null||n===void 0||n.show()})}closeMenu(){var t,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()}(t=this.popper.current)===null||t===void 0||t.hide()}scrollOptionIntoView(t){if(this.menuContainer.current){var n;(n=this.menuContainer.current.children.item(t))===null||n===void 0||n.scrollIntoView({behavior:"smooth",block:"nearest"})}}renderMenuElement(){var t=this.state.inputWidth;return d.jsx("div",{className:V("aci-options"),ref:this.menuContainer,role:"presentation",onKeyDown:this.handleMenuKeyDown,style:{width:t},onBlur:this.handleMenuBlur,children:this.renderOptions()})}renderOptions(){var t=this.props.noMatchText,n=this.state,r=n.title,i=n.filteredOptions;return r&&i.length===0?d.jsx("div",{className:"no-match",children:t}):i.map((a,o)=>this.renderOption(a,o))}renderOption(t,n){var r=this.state.keyboardOptionIndex,i="option-".concat(n,"-").concat(t.value);return d.jsx("button",{type:"button",className:V("aci-option-btn",{"keyboard-active":r===n}),onClick:()=>this.handleOptionClick(t),onFocus:()=>this.setState({keyboardOptionIndex:n}),children:t.title},i)}render(){var t=this.props,n=t.options,r=t.inputPlaceholder,i=t.disabled,a=t.className,o=t.defaultTitle,s=t.spellCheck,l=t["data-testid"],u=this.state,f=u.title,p=u.menuIsOpen,h=u.popperOptions,m=u.invalid;return d.jsxs("div",{className:"aci-container",ref:this.cbContainer,children:[d.jsx("input",{value:f||o,className:V("form-control",a,"aci-input",{"is-invalid":m&&!p}),ref:this.input,onChange:this.handleInputChange,placeholder:r||n[0].title,disabled:i,onFocus:this.handelInputFocus,onClick:this.handleInputClick,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,spellCheck:s,"data-testid":l}),d.jsx(Xt,{ref:this.popper,options:h,className:V("aci-options-popper interactive"),onEntered:this.handleMenuOpened,onExited:this.handleMenuExited,children:this.renderMenuElement()})]})}}_e(be,"defaultProps",{onChange(){},inputPlaceholder:"",disabled:!1,className:"",defaultTitle:"",popperOptions:null,spellCheck:!0,onEnter(){},noMatchText:"No matching items found","data-testid":void 0});_e(be,"MENU_NAVIGATION_DIRECTION",Al);function Hi(e,t){return RS(e)||kS(e,t)||$S(e,t)||AS()}function AS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
14
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $S(e,t){if(e){if(typeof e=="string")return Vi(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vi(e,t):void 0}}function Vi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kS(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function RS(e){if(Array.isArray(e))return e}function et(e){return e.split(`
15
- `).map(t=>t.trim()).filter(t=>t).join(" ")}function DS(e,t){for(var n=[],r="",i=null,a=0;a<e.length;){var o=e[a];if(i!==null)r+=o,o===i&&(i=null),a+=1;else if(o==='"'||o==="'"){var s=e.indexOf(o,a+1);s!==-1&&(i=o),r+=o,a+=1}else e.startsWith(t,a)?(n.push(r),r="",a+=t.length):(r+=o,a+=1)}return n.push(r),n}function fn(e,t){return DS(e.trim(),t).filter(n=>n!=="").join(`
16
- `.concat(t.trim()))}function LS(e){var t=e.className,n=t===void 0?"":t,r=e.value,i=e.onChange,a=e.spellCheck,o=a===void 0?!1:a,s=e.placeholder,l=s===void 0?"":s,u=e.disabled,f=u===void 0?!1:u,p=e.delimiter,h=p===void 0?"":p,m=e.id,v=m===void 0?"":m,g=e["data-testid"],y=c.useState(r),S=Hi(y,2),b=S[0],O=S[1],w=c.useState(!1),E=Hi(w,2),P=E[0],I=E[1],x=c.useRef(null),C=c.useRef(!1),A=c.useRef(b);A.current=b,c.useEffect(function(){!C.current||!h?O(r):et(A.current)!==et(r)&&O(fn(r,h))},[r,h]);function R(){if(x.current){x.current.style.height="0";var k=x.current.scrollHeight+(x.current.offsetHeight-x.current.clientHeight);k>0&&(x.current.style.height="".concat(k,"px"))}}function _(k){var M=k.target.value;P&&(h&&(M=fn(M,h)),I(!1)),O(M),i(h?et(M):M)}function $(){x.current&&(C.current=!0,h&&(O(fn(b,h)),R()),x.current.scrollLeft=0)}function W(){x.current&&document.activeElement!==x.current&&x.current.focus()}function T(){C.current=!1,h&&(O(et(b)),i(et(b)))}function j(){I(!0)}return c.useEffect(function(){R()},[b]),d.jsx("textarea",{ref:x,id:v,className:V(n,"auto-resize-textarea form-control"),placeholder:l,value:b,rows:1,onChange:_,onFocus:$,onMouseDown:W,onBlur:T,onPaste:j,spellCheck:o,disabled:f,"data-testid":g})}function $l(e){var t=e.blockInteraction,n=t===void 0?!0:t,r=e.children,i=e.debounceMs,a=e.isOpen,o=a===void 0?!1:a,s=gt(o,i),l=s.value;return d.jsxs(d.Fragment,{children:[n&&o&&d.jsx("div",{className:"modal-backdrop",style:{backgroundColor:"transparent"},"data-testid":"debounced-modal-backdrop"}),J.cloneElement(r,{isOpen:o&&l})]})}function kl(e){var t=e.className,n=e.icon,r=e.isOpen,i=r===void 0?!1:r,a=e.subtitle,o=e.title;return d.jsx(Xn,{isOpen:i,className:t,children:d.jsx(Qn,{children:d.jsxs("div",{className:"info-modal",children:[n!=null&&d.jsx("div",{className:"message-icon",children:d.jsx(ce,{icon:n})}),d.jsx("div",{className:"message-header",children:o}),a!=null&&d.jsx("div",{className:"message-content",children:a})]})})})}function Gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gi(Object(n),!0).forEach(function(r){MS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gi(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function MS(e,t,n){return(t=FS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FS(e){var t=NS(e,"string");return typeof t=="symbol"?t:t+""}function NS(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var US=[];function WS(e){var t=e.styleProps,n=e.selectedItemCount,r=e.onClearSelection;return d.jsx(Fo,Yi(Yi({UNSAFE_className:pr.spectrumActionBar},t),{},{isEmphasized:!0,selectedItemCount:n,onClearSelection:r,children:US}))}function zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function BS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zi(Object(n),!0).forEach(function(r){Ce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zi(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ce(e,t,n){return(t=KS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KS(e){var t=HS(e,"string");return typeof t=="symbol"?t:t+""}function HS(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qi=re.module("ContextMenu");class ct extends c.PureComponent{static handleContextMenu(t){t.metaKey||(t.stopPropagation(),t.preventDefault())}constructor(t){super(t),Ce(this,"container",void 0),Ce(this,"oldFocus",void 0),Ce(this,"activeSubMenuRef",void 0),Ce(this,"subMenuTimer",void 0),Ce(this,"rAF",void 0),Ce(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=J.createRef(),this.oldFocus=document.activeElement,this.activeSubMenuRef=J.createRef(),this.subMenuTimer=0,this.rAF=0,this.initialPosition={top:t.top,left:t.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 t;(t=this.container.current)===null||t===void 0||t.focus();var n=this.props.onMenuOpened;n(this)})}componentDidUpdate(t,n){var r=this.props.actions,i=this.state.activeSubMenu;if(i!==n.activeSubMenu)if(i==null){var a;(a=this.container.current)===null||a===void 0||a.focus()}else this.setActiveSubMenuPosition();if(t.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 t=this.props.options;if(t.separateKeyboardMouse!==void 0&&t.separateKeyboardMouse){var n=this.state.keyboardIndex;return n}return this.getMouseIndex()}setKeyboardIndex(t){var n=this.props.options;n.separateKeyboardMouse!==void 0&&n.separateKeyboardMouse?this.setState({keyboardIndex:t}):this.setMouseIndex(t)}getMouseIndex(){var t=this.state.mouseIndex;return t}setMouseIndex(t){this.setState({mouseIndex:t})}initMenu(){this.cancelPromises(),cancelAnimationFrame(this.rAF);var t=this.props.options,n=t.initialKeyboardIndex;n===void 0&&(n=-1);for(var r=this.props.actions,i=Ee.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:Ee.sortActions(a)})}initMenuPromise(t){var n=Fe.makeCancelable(t);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:Ee.sortActions(i.menuItems.concat(r)),pendingItems:o}}return null})},r=>{Fe.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}),qi.error(r))})}cancelPromises(){var t=this.state.pendingItems;t.map(n=>n.cancel())}setActiveSubMenuPosition(){if(this.activeSubMenuRef.current!==null){var t=this.activeSubMenuRef.current.getBoundingClientRect();this.setState({subMenuTop:t.top,subMenuLeft:t.right,subMenuParentHeight:t.height,subMenuParentWidth:t.width})}}verifyPosition(){var t,n,r,i,a=this.props,o=a.options,s=a.updatePosition,l=a.subMenuParentWidth,u=a.subMenuParentHeight,f=a.top,p=a.left;if(!(!this.container.current||o.doNotVerifyPosition!=null&&o.doNotVerifyPosition)){var h=this.initialPosition,m=h.top,v=h.left,g=(t=(n=this.container.current)===null||n===void 0?void 0:n.getBoundingClientRect())!==null&&t!==void 0?t:{width:0,height:0},y=g.width,S=g.height,b=((r=(i=this.container.current)===null||i===void 0?void 0:i.scrollHeight)!==null&&r!==void 0?r:0)>window.innerHeight;S===0||y===0||(m+S>window.innerHeight&&(m-S-u>0?m-=S-u:m=window.innerHeight-S),v+y>window.innerWidth&&(v=v-y-l),(p!==v||f!==m)&&(this.setState({hasOverflow:b}),s(m,v)))}}handleWindowResize(){this.container.current&&this.closeMenu(!0)}handleBlur(t){if(!this.container.current){qi.warn("Container is null!");return}if(!this.container.current.contains(t.relatedTarget)){for(var n=t.relatedTarget,r=!1;n&&!r;)r=n.hasAttribute("data-dh-context-menu"),n=n.parentElement;r||this.closeMenu(!0)}}isEscapeKey(t){var n=this.props.left;return t==="Escape"||n<0&&t==="ArrowRight"||t==="ArrowLeft"}handleKeyDown(t){var n=this.state.menuItems,r=this.getKeyboardIndex(),i=r,a=!1;if(t.key==="Enter"||t.key===" "){r>=0&&r<n.length&&this.handleMenuItemClick(n[r],t);return}if(t.key==="ArrowRight"?r>=0&&r<=n.length?a=!0:i=0:this.isEscapeKey(t.key)?i=null:t.key==="ArrowUp"||t.shiftKey&&t.key==="Tab"?i=Ee.getNextMenuItem(i,-1,n):(t.key==="ArrowDown"||t.key==="Tab")&&(i=Ee.getNextMenuItem(i,1,n)),a){this.openSubMenu(r),t.preventDefault(),t.stopPropagation();return}r!==i&&(i!==null?this.setKeyboardIndex(i):(this.closeMenu(),this.oldFocus instanceof HTMLElement&&this.oldFocus.focus()),t.preventDefault(),t.stopPropagation())}openSubMenu(t){var n=this.state,r=n.menuItems,i=n.activeSubMenu,a=r[t].actions?t:null;i!==a&&this.setState({activeSubMenu:a,subMenuTop:null,subMenuLeft:null})}closeMenu(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.props,r=n.closeMenu,i=n.onMenuClosed;cancelAnimationFrame(this.rAF),this.rAF=window.requestAnimationFrame(()=>{r(t),i(this)})}closeSubMenu(){this.setState({activeSubMenu:null})}handleCloseSubMenu(t){t?this.closeMenu(!0):this.closeSubMenu()}handleMenuItemClick(t,n){n.preventDefault(),n.stopPropagation();var r=this.state.menuItems;t!=null&&(t.disabled===void 0||!t.disabled)&&(t.actions!=null?this.openSubMenu(r.indexOf(t)):t.action!=null&&(t.action(n.nativeEvent),this.closeMenu(!0)))}handleMenuItemContextMenu(t,n){n.metaKey||this.handleMenuItemClick(t,n)}handleMenuItemMouseMove(t){var n=this.state.menuItems,r=n.indexOf(t);this.setMouseIndex(r),r>=0&&r<n.length&&(t.disabled===void 0||!t.disabled)&&this.openSubMenu(r)}handleMouseLeave(){this.setMouseIndex(-1)}render(){for(var t=[],n=this.props,r=n.top,i=n.left,a=this.state,o=a.activeSubMenu,s=a.hasOverflow,l=a.keyboardIndex,u=a.menuItems,f=a.mouseIndex,p=a.pendingItems,h=a.subMenuTop,m=a.subMenuLeft,v=a.subMenuParentWidth,g=a.subMenuParentHeight,y=0;y<u.length;y+=1){var S=u[y];y>0&&S.group!==u[y-1].group&&t.push(d.jsx("hr",{},"".concat(y,".separator")));var b=d.jsx(rs,{ref:o===y?this.activeSubMenuRef:null,isKeyboardSelected:l===y,isMouseSelected:f===y,menuItem:S,closeMenu:this.handleCloseSubMenu,onMenuItemClick:this.handleMenuItemClick,onMenuItemMouseMove:this.handleMenuItemMouseMove,onMenuItemContextMenu:this.handleMenuItemContextMenu},y);t.push(b)}var O=null;p.length>0&&(O=d.jsx("div",{className:"loading",children:d.jsx(Ht,{className:"loading-spinner-vertical-align"})}));var w=this.props,E=w.menuStyle,P=w["data-testid"],I=o!==null&&h!==null&&m!==null;return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:V({"has-overflow":s},"context-menu-container"),style:BS({top:r,left:i},E),ref:this.container,"data-dh-context-menu":!0,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseLeave:this.handleMouseLeave,onContextMenu:ct.handleContextMenu,role:"menuitem",tabIndex:0,"data-testid":P,children:[t,O]}),I&&o!==null&&h!==null&&m!==null&&d.jsx(ct,{actions:u[o].actions||[],closeMenu:this.handleCloseSubMenu,top:h,left:m,updatePosition:(x,C)=>{this.setState({subMenuTop:x,subMenuLeft:C})},subMenuParentWidth:v,subMenuParentHeight:g},"sub-".concat(o))]})}}Ce(ct,"defaultProps",{subMenuParentWidth:0,subMenuParentHeight:0,closeMenu(){},onMenuOpened(){},onMenuClosed(){},options:{},menuStyle:{},"data-testid":void 0});function Xi(e,t,n){return(t=VS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VS(e){var t=GS(e,"string");return typeof t=="symbol"?t:t+""}function GS(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Rl extends c.Component{constructor(t){super(t),Xi(this,"container",void 0),Xi(this,"openMenu",void 0),this.handleMenuClose=this.handleMenuClose.bind(this),this.handleContextMenu=this.handleContextMenu.bind(this),this.container=J.createRef(),this.openMenu=J.createRef(),this.state={actions:null,left:0,top:0}}componentDidMount(){var t;(t=this.container.current)!==null&&t!==void 0&&t.parentElement&&this.container.current.parentElement.addEventListener("contextmenu",this.handleContextMenu)}componentWillUnmount(){var t;(t=this.container.current)!==null&&t!==void 0&&t.parentElement&&this.container.current.parentElement.removeEventListener("contextmenu",this.handleContextMenu)}handleContextMenu(t){if(this.container.current){var n=this.container.current.getBoundingClientRect(),r=t.clientY-n.top,i=t.clientX-n.left,a=this.state.actions;if(a!=null&&t.target===this.container.current){t.preventDefault(),this.setState({actions:null},()=>{var s=document.elementFromPoint(i,r),l=new MouseEvent("contextmenu",{clientX:t.clientX,clientY:t.clientY,bubbles:!0,cancelable:!0});s==null||s.dispatchEvent(l)});return}if(Ee.isContextActionEvent(t)&&!(t.metaKey||t.ctrlKey)){var o=Ee.getMenuItems(t.contextActions);o.length!==0&&(t.preventDefault(),this.setState({actions:o,top:r,left:i}))}}}handleMenuClose(t){t===this.openMenu.current&&this.setState({actions:null})}render(){var t=null,n=this.props["data-testid"],r=this.state,i=r.actions,a=r.top,o=r.left;return i&&(t=d.jsx(ct,{ref:this.openMenu,actions:i,onMenuClosed:this.handleMenuClose,top:a,left:o,updatePosition:(s,l)=>{this.setState({top:s,left:l})},"data-testid":n})),d.jsx("div",{className:V("context-menu-root",{active:i}),ref:this.container,children:t})}}function Dl(e,t,n){return(t=YS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YS(e){var t=zS(e,"string");return typeof t=="symbol"?t:t+""}function zS(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class dt extends c.Component{static getHeight(t){var n=t.scrollWidth-t.clientWidth;return t.scrollHeight-n}constructor(t){super(t),Dl(this,"nodeRef",J.createRef()),this.handleEntered=this.handleEntered.bind(this)}handleEntered(){var t=this.nodeRef.current;if(t){t.style.height="";var n=this.props.autoFocusOnShow;if(n!==void 0&&n){var r=t.querySelector("input, select, textarea");r!=null&&r.focus()}}}handleEnter(){var t=this.nodeRef.current;t&&(t.style.height="0")}handleEntering(){var t=this.nodeRef.current;t&&(t.style.height="".concat(dt.getHeight(t),"px"))}handleExiting(){var t=this.nodeRef.current;t&&(t.style.height="0")}handleExit(){var t=this.nodeRef.current;t&&(t.style.height="".concat(dt.getHeight(t),"px"))}render(){var t=this.props,n=t.children,r=t.className,i=t.in,a=t["data-testid"];return d.jsx(No,{in:i,classNames:{enterActive:"collapsing",enterDone:"collapse show",exitActive:"collapsing",exitDone:"collapse"},onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered,onExit:this.handleExit,onExiting:this.handleExiting,timeout:350,nodeRef:this.nodeRef,children:o=>d.jsx("div",{ref:this.nodeRef,className:V({collapse:o==="exited"},r),"data-testid":a,children:n})})}}Dl(dt,"defaultProps",{className:"",autoFocusOnShow:!1,"data-testid":void 0});function Qi(e,t){return JS(e)||QS(e,t)||XS(e,t)||qS()}function qS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
17
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XS(e,t){if(e){if(typeof e=="string")return Ji(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ji(e,t):void 0}}function Ji(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function QS(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function JS(e){if(Array.isArray(e))return e}var ZS=re.module("TimeInput"),eP="([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]",tP=["00:00:00","12:34:56","23:59:59"];function Zi(e){return e!=null?"".concat(e.substring(0,8).replace(/\u2007/g,"0")).concat("00:00:00".substring(e.length)):e}var Nt=J.forwardRef((e,t)=>{var n=e.allowValueWrapping,r=n===void 0?!0:n,i=e.className,a=i===void 0?"":i,o=e.onChange,s=o===void 0?ge:o,l=e.value,u=l===void 0?0:l,f=e.onFocus,p=f===void 0?ge:f,h=e.onBlur,m=h===void 0?ge:h,v=e.onSelect,g=v===void 0?ge:v,y=e["data-testid"],S=c.useState(Rt.formatTime(u)),b=Qi(S,2),O=b[0],w=b[1],E=c.useRef(u),P=c.useState(),I=Qi(P,2),x=I[0],C=I[1],A=c.useRef(null);c.useImperativeHandle(t,()=>({focus:()=>{var j;(j=A.current)===null||j===void 0||j.focus()},setSelection:j=>{var k;(k=A.current)===null||k===void 0||k.focus(),C(j)}}),[]),c.useEffect(function(){E.current!==u&&(w(Rt.formatTime(u)),E.current=u)},[E,u]);function R(j,k,M){var G=j.selectionStart===0?24:60,Y=parseInt(M,10)-k;return Number.isNaN(Y)?Y=0:r?Y=(Y%G+G)%G:Y=Math.min(Math.max(0,Y),G-1),"".concat(Y).padStart(2,"0")}function _(j,k,M,G,Y){return G===0&&Y===2&&k===1&&parseInt(M,10)>1?"0".concat(M).concat(j.substring(2)):Xs(j,k,M)}var $=c.useCallback(j=>{ZS.debug("handleChange",j),w(j),E.current=Rt.parseTime(Zi(j)),s(E.current)},[s]),W=c.useCallback(()=>{var j=Zi(O);j!==O&&w(j),m()},[O,m]),T=c.useCallback(j=>{C(j),g(j)},[g]);return d.jsx(mr,{ref:A,className:a,example:tP,getNextSegmentValue:R,getPreferredReplacementString:_,onChange:$,onSelect:T,pattern:eP,selection:x,value:O,onFocus:p,onBlur:W,"data-testid":y})});function ea(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ea(Object(n),!0).forEach(function(r){Ie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ea(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ie(e,t,n){return(t=rP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rP(e){var t=iP(e,"string");return typeof t=="symbol"?t:t+""}function iP(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ta=-1,Ll=function(e){return e.UP="UP",e.DOWN="DOWN",e}(Ll||{});class pe extends c.Component{constructor(t){super(t),Ie(this,"csContainer",void 0),Ie(this,"menuContainer",void 0),Ie(this,"button",void 0),Ie(this,"input",void 0);var n=t.value,r=t.valueToTime;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=J.createRef(),this.menuContainer=J.createRef(),this.button=J.createRef(),this.input=J.createRef(),this.state={keyboardOptionIndex:0,menuIsOpen:!1,inputWidth:100,customTime:r(n),inputFocused:!1}}getSelectedText(){var t=this.props,n=t.options,r=t.value,i=t.placeholder,a=this.state.customTime;if(r===null)return i;for(var o=0;o<n.length;o+=1){var s=n[o];if(s.value===r)return s.title}return Rt.formatTime(a)}setInputWidth(){this.csContainer.current&&this.setState({inputWidth:this.csContainer.current.getBoundingClientRect().width})}focus(){var t;(t=this.button.current)===null||t===void 0||t.focus()}updateInputValue(t){var n=this.props.onChange;n(t)}handleResize(){this.setInputWidth()}handleMenuKeyDown(t){var n,r=this.state,i=r.keyboardOptionIndex,a=r.inputFocused,o=this.props.options;switch(t.key){case"Enter":case" ":a?this.updateFromCustom():this.updateInputValue(o[i].value),this.closeMenu(),(n=this.button.current)===null||n===void 0||n.focus(),t.stopPropagation(),t.preventDefault();break;case"Tab":t.shiftKey?this.handleMenuNavigation(pe.MENU_NAVIGATION_DIRECTION.UP):this.handleMenuNavigation(pe.MENU_NAVIGATION_DIRECTION.DOWN),t.stopPropagation(),t.preventDefault();break;case"ArrowUp":this.handleMenuNavigation(pe.MENU_NAVIGATION_DIRECTION.UP),t.stopPropagation(),t.preventDefault();break;case"ArrowDown":this.handleMenuNavigation(pe.MENU_NAVIGATION_DIRECTION.DOWN),t.stopPropagation(),t.preventDefault();break;case"Escape":this.closeMenu();break}}handleMenuNavigation(t){var n=this.state,r=n.keyboardOptionIndex,i=n.inputFocused,a=this.props.options,o=a.length,s=r;switch(t){case pe.MENU_NAVIGATION_DIRECTION.UP:if(!i&&r===0){this.focusInput();break}else i&&this.focusOption(r);r>0&&!i?(s=(s-1)%o,this.setState({keyboardOptionIndex:s})):r===0&&(s=o-1,this.setState({keyboardOptionIndex:s})),this.scrollOptionIntoView(s);break;case pe.MENU_NAVIGATION_DIRECTION.DOWN:if(!i&&r===o-1){this.focusInput();break}else i&&this.focusOption(r);r<o&&!(i&&r===0)&&(s=(s+1)%o,this.setState({keyboardOptionIndex:s})),this.scrollOptionIntoView(s);break}}handleOptionClick(t){var n=Number(t.currentTarget.value),r=this.props,i=r.options,a=r.timeToValue,o=this.state.customTime;if(n===ta){var s=a(o);this.updateAndClose(s)}else this.updateAndClose(i[n].value)}updateAndClose(t){var n;this.updateInputValue(t),this.closeMenu(),(n=this.button.current)===null||n===void 0||n.focus()}handleOptionFocus(t){this.setState({keyboardOptionIndex:Number(t.target.value)})}handleMenuOpened(){var t,n=this.props,r=n.options,i=n.value,a=this.state.keyboardOptionIndex;this.scrollOptionIntoView(a);var o=(t=this.menuContainer.current)===null||t===void 0?void 0:t.querySelector(".cs-option-btn.keyboard-active");if(o instanceof HTMLElement&&o.focus(),i!==null){var s=r.map(l=>l.value).indexOf(i);s<0&&this.focusInput()}}focusInput(){var t;(t=this.input.current)===null||t===void 0||t.focus()}focusOption(t){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(t);i instanceof HTMLElement&&i.focus()}}handleMenuExited(){var t=this.state.menuIsOpen;t&&this.setState({menuIsOpen:!1,keyboardOptionIndex:0})}handleCustomInput(t){var n=this.props.timeToValue,r=n(t);this.updateInputValue(r),this.setState({customTime:t})}updateFromCustom(){var t=this.props.timeToValue,n=this.state.customTime,r=t(n);this.updateInputValue(r)}toggleMenu(t){var n=this.state.menuIsOpen;n?this.closeMenu():this.openMenu(),t.stopPropagation()}openMenu(){this.updateKeyboardIndex(),this.setInputWidth(),this.setState({menuIsOpen:!0})}closeMenu(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(this.setState({menuIsOpen:!1}),t){var n;(n=this.button.current)===null||n===void 0||n.focus()}}updateKeyboardIndex(){var t=this.props,n=t.options,r=t.value;if(r!==null){var i=n.map(a=>a.value).indexOf(r);i>0&&this.setState({keyboardOptionIndex:i})}}scrollOptionIntoView(t){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(t);i instanceof HTMLElement&&i.offsetTop>pe.DROP_DOWN_MENU_HEIGHT?r.scrollTop=i.offsetTop-pe.DROP_DOWN_MENU_HEIGHT:(i instanceof HTMLElement&&i.offsetTop<0||t===0)&&(r.scrollTop=0)}}renderMenuElement(){var t=this.state.inputWidth;return d.jsx("div",{className:"cs-menu-container",ref:this.menuContainer,role:"presentation",onKeyDown:this.handleMenuKeyDown,onClick:n=>{n.stopPropagation()},style:{width:t},children:d.jsx("div",{className:"cs-options-container",children:d.jsx("div",{className:"cs-options",children:this.renderOptions()})})})}renderOptions(){for(var t=this.props,n=t.options,r=t.value,i=t.icon,a=t.customText,o=this.state,s=o.keyboardOptionIndex,l=o.customTime,u=o.inputFocused,f=!1,p=[],h=0;h<n.length;h+=1){var m=n[h],v="option-".concat(h,"-").concat(m.value);f=f||m.value===r,p.push(d.jsxs("button",{type:"button",value:h,className:V("cs-option-btn",{"keyboard-active":s===h&&!u}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[m.value===r&&d.jsx(ce,{icon:i,className:"mr-2"}),m.value!==r&&d.jsx("span",{className:"mr-4"}),m.title]},v))}return p.push(d.jsx("hr",{className:"cs-divider"},"option-divider")),p.push(d.jsxs("button",{type:"button",value:ta,className:V("cs-option-btn",{"keyboard-active":u}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[!f&&r!==null?d.jsx(ce,{icon:i,className:"mr-2"}):d.jsx("span",{className:"mr-4"}),a]},"option-custom-label")),p.push(d.jsxs("div",{className:"cs-custom-container",children:[d.jsx("span",{className:"mr-2"}),d.jsx(Nt,{ref:this.input,onChange:this.handleCustomInput,value:l,onFocus:()=>this.setState({inputFocused:!0}),onBlur:()=>this.setState({inputFocused:!1})},"option-input"),d.jsx("span",{className:"ml-2"})]},"cs-custom-container")),p.push(d.jsx("hr",{className:"mb-2"},"option-end")),p}render(){var t=this.props,n=t.disabled,r=t.invalid,i=t.value,a=t["data-testid"],o=this.state.menuIsOpen,s=this.props.popperOptions;return s=nP({placement:"bottom-end",modifiers:{preventOverflow:{enabled:!1}}},s),d.jsx("div",{className:"input-group cs-container context-menu",ref:this.csContainer,"data-testid":a,children:d.jsx("div",{className:V("input-group-append cs-dropdown",{"cs-dropdown-invalid":r}),children:d.jsxs("button",{type:"button",className:V("btn cs-btn form-control",{"cs-btn-invalid":r}),ref:this.button,onClick:this.toggleMenu,disabled:n,children:[d.jsx("span",{className:V({"text-muted":i===null}),children:this.getSelectedText()}),d.jsx("span",{className:"cs-caret"}),d.jsx(is,{isShown:o,actions:{menuElement:this.renderMenuElement()},popperOptions:s,popperClassName:"CustomTimeSelect",onMenuOpened:this.handleMenuOpened,onMenuClosed:this.handleMenuExited,menuStyle:{maxWidth:"100rem"}})]})})})}}Ie(pe,"MENU_NAVIGATION_DIRECTION",Ll);Ie(pe,"DROP_DOWN_MENU_HEIGHT",125);Ie(pe,"defaultProps",{onChange(){},value:null,disabled:!1,popperOptions:{},icon:kd,customText:"Custom",placeholder:"Select a time",valueToTime:e=>e===null?0:Math.round(e/1e3),timeToValue:e=>e*1e3,invalid:!1,"data-testid":void 0});function na(e,t){return lP(e)||sP(e,t)||oP(e,t)||aP()}function aP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oP(e,t){if(e){if(typeof e=="string")return ra(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ra(e,t):void 0}}function ra(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function lP(e){if(Array.isArray(e))return e}var uP=re.module("DateInput"),cP="[12][0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])",dP=["2000-01-01","2022-12-31"],fP="YYYY-MM-DD",Ml=J.forwardRef((e,t)=>{var n=e.className,r=n===void 0?"":n,i=e.onChange,a=i===void 0?()=>{}:i,o=e.defaultValue,s=o===void 0?"":o,l=e.onFocus,u=l===void 0?()=>{}:l,f=e.onBlur,p=f===void 0?()=>{}:f,h=e["data-testid"],m=c.useState(s),v=na(m,2),g=v[0],y=v[1],S=c.useState(),b=na(S,2),O=b[0],w=b[1],E=c.useCallback(P=>{uP.debug("handleChange",P),y(P),a(P)},[a]);return d.jsx("div",{className:"d-flex flex-row align-items-center",children:d.jsx(mr,{ref:t,className:V(r),example:dP,getNextSegmentValue:$y,onChange:E,onSelect:w,pattern:cP,placeholder:fP,selection:O,value:g,onFocus:u,onBlur:p,"data-testid":h})})});Ml.displayName="DateInput";var pP={CYCLE_TO_NEXT_STACK:De.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_STACK",name:"Cycle To Next Stack",shortcut:[se.CTRL,fe.SINGLE_QUOTE],macShortcut:[se.CMD,fe.SINGLE_QUOTE],isEditable:!0}),CYCLE_TO_PREVIOUS_STACK:De.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_STACK",name:"Cycle To Previous Stack",shortcut:[se.CTRL,fe.SEMICOLON],macShortcut:[se.CMD,fe.SEMICOLON],isEditable:!0}),CYCLE_TO_NEXT_TAB:De.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_TAB",name:"Cycle To Next Tab",shortcut:[se.CTRL,se.SHIFT,fe.DOUBLE_QUOTE],macShortcut:[se.CMD,se.SHIFT,fe.SINGLE_QUOTE],isEditable:!0}),CYCLE_TO_PREVIOUS_TAB:De.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_TAB",name:"Cycle To Previous Tab",shortcut:[se.CTRL,se.SHIFT,fe.COLON],macShortcut:[se.CMD,se.SHIFT,fe.SEMICOLON],isEditable:!0}),CYCLE_TO_NEXT_DASHBOARD:De.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_DASHBOARD",name:"Cycle To Next Dashboard",shortcut:[se.CTRL,fe.PERIOD],macShortcut:[se.CMD,fe.PERIOD],isEditable:!0}),CYCLE_TO_PREVIOUS_DASHBOARD:De.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_DASHBOARD",name:"Cycle To Previous Dashboard",shortcut:[se.CTRL,fe.COMMA],macShortcut:[se.CMD,fe.COMMA],isEditable:!0})};function pn(e,t){return gP(e)||yP(e,t)||mP(e,t)||hP()}function hP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
19
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mP(e,t){if(e){if(typeof e=="string")return ia(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ia(e,t):void 0}}function ia(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function gP(e){if(Array.isArray(e))return e}function vP(e){var t=e.isInvalid,n=t===void 0?!1:t,r=e.items,i=e.onAdd,a=i===void 0?()=>{}:i,o=e.onDelete,s=o===void 0?()=>{}:o,l=e.validate,u=l===void 0?()=>null:l,f=c.useState(null),p=pn(f,2),h=p[0],m=p[1],v=c.useState([]),g=pn(v,2),y=g[0],S=g[1],b=c.useState(""),O=pn(b,2),w=O[0],E=O[1],P=c.useCallback($=>{S($)},[]),I=c.useCallback(()=>{s(Yr.getItemsInRanges(r,y)),S([])},[r,y,s]),x=c.useCallback(()=>{if(w!==""){var $=u(w);$==null?(a(w),E("")):m($)}},[w,a,u]),C=c.useCallback($=>{var W=$.target.value;E(W),m(W===""?null:u(W))},[u]),A=c.useCallback(()=>{S([])},[]),R=c.useCallback($=>{$.key==="Enter"&&x()},[x]),_=c.useMemo(()=>14+Uo(r.length,1,6)*Cn.DEFAULT_ROW_HEIGHT,[r.length]);return d.jsxs("div",{className:V("editable-item-list-container",{"is-invalid":n}),children:[d.jsx("div",{style:{height:_},children:d.jsx(Cn,{itemCount:r.length,items:r.map(($,W)=>({value:$,isSelected:Yr.isSelected(y,W)})),offset:0,selectedRanges:y,onSelectionChange:P,isMultiSelect:!0})}),d.jsxs("div",{className:"d-flex flex-row pt-2",children:[d.jsx("div",{className:"d-flex flex-grow-1",children:d.jsx("input",{className:V("form-control",{"is-invalid":h!=null}),placeholder:"Enter value",type:"text",value:w,onChange:C,onFocus:A,onKeyDown:R})}),d.jsxs("div",{className:"d-flex align-items-start mt-1 ml-2",children:[d.jsx(le,{kind:"ghost",onClick:x,disabled:h!=null||w==="",icon:Rd,tooltip:"Add new item","data-testid":"add-item-button"}),d.jsx(le,{kind:"ghost",onClick:I,disabled:y.length===0,icon:qo,tooltip:"Delete selected items","data-testid":"delete-item-button"})]})]})]})}function aa(e,t){return wP(e)||PP(e,t)||SP(e,t)||bP()}function bP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
20
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SP(e,t){if(e){if(typeof e=="string")return oa(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oa(e,t):void 0}}function oa(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function PP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function wP(e){if(Array.isArray(e))return e}function OP(e){var t=e.message,n=e.isExpanded,r=n===void 0?!1:n,i=e.type,a=i===void 0?"Error":i,o=e.onDismiss,s=c.useState(!1),l=aa(s,2),u=l[0],f=l[1],p=c.useState(!1),h=aa(p,2),m=h[0],v=h[1],g=c.useRef(null),y=c.useRef(null),S=c.useCallback(()=>{if(!(m||r||y.current==null)){var O=y.current.scrollHeight>y.current.clientHeight;f(O)}},[m,r]),b=lt(S,100);return en(g.current,b),c.useLayoutEffect(b,[b]),d.jsxs("div",{className:V("error-view",{expanded:m||r}),ref:g,children:[d.jsxs("div",{className:"error-view-header",children:[d.jsxs("div",{className:"error-view-header-text",children:[d.jsx(ce,{icon:Dd}),d.jsx("span",{children:a})]}),d.jsxs("div",{className:"error-view-buttons",children:[d.jsx(as,{UNSAFE_className:"error-view-copy-button",tooltip:"Copy error contents",copy:"".concat(a,": ").concat(t).trim()}),(u||m)&&!r&&d.jsx(le,{kind:"danger",className:"error-view-expand-button",onClick:()=>{v(!m)},icon:m?Ld:Md,children:m?"Show Less":"Show More"}),o!=null&&d.jsx(le,{kind:"danger",className:"error-view-dismiss-button",onClick:o,icon:Jn,children:"Dismiss"})]})]}),d.jsx("pre",{className:"error-view-text",ref:y,children:t})]})}function sa(e,t){return EP(e)||CP(e,t)||TP(e,t)||xP()}function xP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
21
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TP(e,t){if(e){if(typeof e=="string")return la(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?la(e,t):void 0}}function la(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function CP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function EP(e){if(Array.isArray(e))return e}function _P(e,t,n){return(t=IP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IP(e){var t=jP(e,"string");return typeof t=="symbol"?t:t+""}function jP(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Ge extends c.Component{static isParentSelected(t,n){var r=n.get(t);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(t){super(t),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(t){t.stopPropagation(),t.preventDefault(),this.setState(n=>{var r=n.menuIsOpen;return{menuIsOpen:!r}})}toggleValueFor(t,n){var r=this.props,i=r.valueMap,a=r.onUpdateValueMap,o=new Map(i),s=o.get(t);if(s instanceof Map){var l=new Map(s);if(n!=null)l.set(n,s.get(n)!==!0);else{var u=Ge.isParentSelected(t,o),f=u==null||!u;s.forEach((m,v)=>l.set(v,f))}o.set(t,l)}else o.set(t,s==null||!s);var p=o.get(t);if(n===void 0&&p!==void 0&&typeof p!="boolean"){var h=Ge.isParentSelected(t,i);h!=null&&h?p.forEach((m,v)=>p.set(v,!1)):p.forEach((m,v)=>p.set(v,!0))}a(o)}setAllValues(t){var n=this.props,r=n.valueMap,i=n.onUpdateValueMap,a=new Map;r.forEach((o,s)=>{if(typeof o=="boolean")a.set(s,t);else{var l=new Map;o.forEach((u,f)=>l.set(f,t)),a.set(s,l)}}),i(a)}selectAll(){this.setAllValues(!0)}clear(){this.setAllValues(!1)}renderMenuElement(){var t=this.props,n=t.valueMap,r=t["data-testid"];return d.jsxs("div",{className:"hcm-menu-container",children:[Array.from(n.entries()).map(i=>{var a=sa(i,2),o=a[0],s=a[1];return d.jsxs("div",{children:[d.jsx(En,{className:"hcm-parent",checked:Ge.isParentSelected(o,n),onChange:()=>this.toggleValueFor(o),children:o}),s!==void 0&&typeof s!="boolean"&&Array.from(s.entries()).map(l=>{var u=sa(l,2),f=u[0],p=u[1];return d.jsx(En,{className:"hcm-child",checked:p,onChange:()=>this.toggleValueFor(o,f),children:f},f)})]},o)}),d.jsx(le,{kind:"ghost",onClick:this.selectAll,"data-testid":r!==void 0?"".concat(r,"-btn-select-all"):void 0,children:"Select All"}),d.jsx(le,{kind:"ghost",onClick:this.clear,"data-testid":r!==void 0?"".concat(r,"-btn-clear"):void 0,children:"Clear"})]})}render(){var t=this.props,n=t.menuText,r=t.className,i=t.icon,a=t.id,o=t["data-testid"],s=this.state.menuIsOpen;return d.jsxs("button",{type:"button",className:V("btn hcm-btn",r),onClick:this.toggleMenu,id:a,"data-testid":o,children:[d.jsxs("span",{children:[i&&d.jsx(ce,{icon:i,className:"hcm-icon mr-1"}),n]}),d.jsx("span",{className:"cs-caret"}),d.jsx(Xt,{options:{placement:"bottom"},isShown:s,onExited:()=>{this.setState({menuIsOpen:!1})},closeOnBlur:!0,interactive:!0,children:this.renderMenuElement()})]})}}_P(Ge,"defaultProps",{className:"",icon:null,id:"","data-testid":void 0});function ua(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ua(Object(n),!0).forEach(function(r){AP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ua(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AP(e,t,n){return(t=$P(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $P(e){var t=kP(e,"string");return typeof t=="symbol"?t:t+""}function kP(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fl=c.memo(e=>{var t=e.tab,n=e.onClose,r=e.onSelect,i=e.isActive,a=e.activeRef,o=e.index,s=e.isDraggable,l=e.contextActions,u=e.renderAfterTabContent,f=t.key,p=t.isClosable,h=p===void 0?n!=null:p,m=t.title,v=t.icon,g;return v!=null&&(g=J.isValidElement(v)?v:d.jsx(ce,{icon:v})),d.jsx(hc,{draggableId:f,index:o,isDragDisabled:!s,children:(y,S)=>d.jsxs("div",{className:"context-menu-wrapper",ref:i?a:null,children:[d.jsxs("div",hn(hn(hn({ref:y.innerRef},y.draggableProps),y.dragHandleProps),{},{className:V("btn btn-link btn-nav-tab",{active:i},{dragging:S.isDragging}),"data-testid":"btn-nav-tab-".concat(m),role:"tab",tabIndex:0,onAuxClick:b=>{h&&b.button===1&&b.buttons===0&&(n==null||n(f))},onClick:b=>{if(h&&b.button===1&&b.buttons===0){n==null||n(f);return}b.button===0&&b.buttons===0&&(b.target.focus(),r(f))},onKeyPress:b=>{b.key==="Enter"&&r(f)},children:[g,d.jsxs("span",{className:"btn-nav-tab-title",children:[m,d.jsx(mt,{children:m})]}),u==null?void 0:u(t),h&&d.jsx(le,{kind:"ghost",className:"btn-nav-tab-close",onClick:b=>{n==null||n(f),b.stopPropagation(),b.preventDefault()},icon:Jn,tooltip:"Close"})]})),d.jsx(Qt,{actions:l})]})},f)});Fl.displayName="NavTab";function ca(e,t){return MP(e)||LP(e,t)||DP(e,t)||RP()}function RP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
22
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DP(e,t){if(e){if(typeof e=="string")return da(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?da(e,t):void 0}}function da(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function LP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function MP(e){if(Array.isArray(e))return e}function Nl(e){var t=e.onSelect,n=e.tabs,r=n===void 0?os:n,i=c.useState(""),a=ca(i,2),o=a[0],s=a[1],l=c.useState(0),u=ca(l,2),f=u[0],p=u[1],h=c.useRef(null),m=c.useRef(null),v=c.useRef([]);c.useEffect(()=>{var P;(P=h.current)===null||P===void 0||P.focus()},[]),c.useEffect(()=>{p(0)},[o]),c.useEffect(()=>{if(f>=0&&v.current[f]){var P;(P=v.current[f])===null||P===void 0||P.scrollIntoView({behavior:"auto",block:"nearest"})}},[f]);var g=c.useCallback(P=>{s(P.target.value)},[]),y=c.useCallback(P=>{t(P)},[t]),S=c.useCallback(P=>{P.preventDefault()},[]),b=c.useMemo(()=>r.filter(P=>P.title.toLowerCase().includes(o.toLowerCase())),[o,r]).sort((P,I)=>{var x;return(x=P.title.localeCompare(I.title))!==null&&x!==void 0?x:0}),O=c.useCallback(P=>{if(P.key==="ArrowDown"&&b.length>0)P.preventDefault(),p(x=>x===-1?0:(x+1)%b.length);else if(P.key==="ArrowUp"&&b.length>0)P.preventDefault(),p(x=>x===-1?b.length-1:(x-1+b.length)%b.length);else if(P.key==="Enter"&&b.length>0){P.preventDefault();var I=f>=0?f:0;y(b[I])}else P.key==="Tab"&&P.preventDefault()},[b,f,y]),w=c.useMemo(()=>b.map((P,I)=>{var x;return d.jsx("li",{ref:C=>{v.current[I]=C},onMouseDown:S,children:d.jsxs(le,{kind:"ghost","data-testid":"dashboard-list-item-".concat((x=P.key)!==null&&x!==void 0?x:"","-button"),onClick:()=>y(P),className:f===I?"focused":"",style:{transition:"none"},children:[P.icon?d.jsx("span",{className:"dashboard-list-item-icon",children:J.isValidElement(P.icon)?P.icon:d.jsx(ce,{icon:P.icon})}):null,P.title]})},P.key)}),[b,y,f,S]),E=c.useMemo(()=>w.length===0?d.jsx("span",{children:"No open dashboard found."}):null,[w]);return d.jsxs("div",{className:"dashboard-list-container d-flex flex-column",children:[d.jsx("div",{className:"dashboard-list-header",children:d.jsx(nr,{value:o,placeholder:"Find open dashboard",endPlaceholder:Jt.OPEN_DASHBOARD_LIST.getDisplayText(),onChange:g,onKeyDown:O,ref:h})}),d.jsxs("ul",{className:"dashboard-list flex-grow-1",ref:m,children:[E&&d.jsx("li",{className:"dashboard-list-message",children:E}),!E&&w]})]})}function fa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fa(Object(n),!0).forEach(function(r){FP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fa(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FP(e,t,n){return(t=NP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NP(e){var t=UP(e,"string");return typeof t=="symbol"?t:t+""}function UP(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Et(e,t){return HP(e)||KP(e,t)||BP(e,t)||WP()}function WP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
23
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BP(e,t){if(e){if(typeof e=="string")return ha(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ha(e,t):void 0}}function ha(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function KP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function HP(e){if(Array.isArray(e))return e}var VP=500,GP=.01,YP=5e-4;function ma(e){return e.scrollLeft===0}function ya(e){return Math.abs(e.scrollLeft+e.clientWidth-e.scrollWidth)<=1||e.scrollWidth===0}function zP(e,t,n){var r=e.isClosable,i=r===void 0?!1:r,a=e.key,o=[];if(i&&n!=null){o.push({title:"Close",order:10,group:20,action:()=>{n(a)}});for(var s=!0,l=t.length-1;l>0&&t[l].key!==e.key;l-=1)if(t[l].isClosable===!0){s=!1;break}o.push({title:"Close to the Right",order:20,group:20,action:()=>{for(var u=t.length-1;u>0&&t[u].key!==a;u-=1)t[u].isClosable===!0&&n(t[u].key)},disabled:s}),o.push({title:"Close All",order:30,group:20,action:()=>{t.forEach(u=>{u.isClosable===!0&&n(u.key)})}})}return o}function qP(e){var t=e.activeKey,n=e.tabs,r=e.onSelect,i=e.onReorder,a=e.onClose,o=e.makeContextActions,s=e.renderAfterTabContent,l=c.useRef(),u=c.useState(!0),f=Et(u,2),p=f[0],h=f[1],m=c.useState(!1),v=Et(m,2),g=v[0],y=v[1],S=c.useState(!0),b=Et(S,2),O=b[0],w=b[1],E=c.useState(!0),P=Et(E,2),I=P[0],x=P[1],C=c.useCallback(()=>{l.current!=null&&(l.current.clientWidth<l.current.scrollWidth&&n.length>0?h(!0):h(!1),w(ma(l.current)),x(ya(l.current)))},[n]);en(l.current,C);var A=c.useCallback(D=>{An.stopDragging(),D.destination&&(i==null||i(D.source.index,D.destination.index))},[i]),R=c.useCallback(()=>{if(l.current!=null){var D=ma(l.current);D!==O&&w(D);var N=ya(l.current);N!==I&&x(N)}},[O,I]),_=c.useRef({cancelClick:!1}),$=c.useCallback(()=>{if(!(l.current==null||_.current.cancelClick))for(var D=l.current.children,N=D.length-1;N>=0;N-=1){var H=D[N];if(H.offsetLeft<l.current.scrollLeft-5){H.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"});return}}},[]),W=c.useCallback(()=>{if(!(l.current==null||_.current.cancelClick))for(var D=l.current.children,N=0;N<D.length;N+=1){var H=D[N];if(H.offsetLeft+H.offsetWidth-5>l.current.scrollLeft+l.current.offsetWidth){H.scrollIntoView({behavior:"smooth",block:"nearest",inline:"end"});return}}},[]),T=c.useCallback(function(D,N){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,K=arguments.length>3?arguments[3]:void 0,Z=l.current;Z!=null&&(_.current.cancelClick=!0,D==="left"?Z.scrollLeft=N-H:D==="right"&&(Z.scrollLeft=N+H),_.current.rAF=requestAnimationFrame(ne=>{var ue=K??ne,L=ne-ue,F=GP*L+.5*YP*L**2;F=Math.min(F,Z.scrollWidth),T(D,N,F,ue)}))},[]),j=c.useCallback(()=>{var D=_.current,N=D.holdTimer,H=D.rAF;N!=null&&(clearTimeout(N),_.current.holdTimer=void 0),H!=null&&(cancelAnimationFrame(H),_.current.rAF=void 0),window.removeEventListener("mouseup",j)},[]);c.useEffect(()=>()=>window.removeEventListener("mouseup",j),[j]);var k=c.useCallback(D=>{l.current!=null&&(_.current.holdTimer=window.setTimeout(T,VP,D,l.current.scrollLeft)),_.current.cancelClick=!1,window.addEventListener("mouseup",j)},[j,T]),M=c.useCallback(()=>{k("left")},[k]),G=c.useCallback(()=>{k("right")},[k]);c.useEffect(function(){var N,H=K=>{K.stopPropagation(),K.preventDefault();var Z=K.currentTarget,ne=Math.abs(K.deltaY)>Math.abs(K.deltaX)?K.deltaY:K.deltaX;Z.scrollLeft+=Uo(ne,-30,30)};return(N=l.current)===null||N===void 0||N.addEventListener("wheel",H),()=>{var K;(K=l.current)===null||K===void 0||K.removeEventListener("wheel",H)}},[]);var Y=c.useMemo(()=>{var D=new Map;return n.forEach(N=>{var H=N.key,K=[()=>zP(N,n,a),()=>{var Z;return(Z=o==null?void 0:o(N))!==null&&Z!==void 0?Z:[]}];D.set(H,K)}),D},[o,n,a]),ie=c.useRef(null),Se=n.find(D=>D.key===t),oe=n.map((D,N)=>{var H=D.key,K=D===Se;return d.jsx(Fl,{tab:D,index:N,isActive:K,activeRef:ie,onSelect:r,onClose:a,isDraggable:i!=null,contextActions:Y.get(H),renderAfterTabContent:s},H)});c.useEffect(function(){ie.current!=null&&ie.current.scrollIntoView({block:"nearest",inline:"nearest"})},[t]);var X=()=>{y(!g)},Q=D=>{y(!1),r(D.key)},q=()=>{y(!1)};return d.jsxs("nav",{className:"nav-container",children:[p&&d.jsx(le,{kind:"ghost",icon:d.jsx(ce,{icon:Fd,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-left",tooltip:"Scroll left",onClick:$,onMouseDown:M,disabled:O}),d.jsx(mc,{onDragStart:An.startDragging,onDragEnd:A,children:d.jsx(yc,{droppableId:"droppable-tab-navigation",direction:"horizontal",children:(D,N)=>d.jsxs("div",pa(pa({ref:H=>{H!=null&&(l.current=H,D.innerRef(H))}},D.droppableProps),{},{className:V("nav nav-tabs",{dragging:N.draggingFromThisWith}),role:"tablist",onScroll:R,children:[oe,D.placeholder]}))})}),p&&d.jsx(le,{kind:"ghost",icon:d.jsx(ce,{icon:Nd,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-right",tooltip:"Scroll right",onClick:W,onMouseDown:G,disabled:I}),d.jsx(le,{kind:"ghost",icon:d.jsx(ce,{icon:Ud,transform:"grow-4"}),className:"btn-dashboard-list-menu btn-show-dashboard-list",tooltip:"Search open dashboards",onClick:X,disabled:n.length<2,style:{visibility:p?"visible":"hidden",marginLeft:"auto"},children:d.jsx(Xt,{isShown:g,className:"dashboard-list-menu-popper",onExited:q,options:{placement:"bottom-start"},closeOnBlur:!0,interactive:!0,children:d.jsx(Nl,{tabs:n,onSelect:Q})})}),d.jsx(Qt,{actions:[{action:()=>{y(!g)},shortcut:Jt.OPEN_DASHBOARD_LIST,isGlobal:!0}]})]})}function XP(e,t){return ew(e)||ZP(e,t)||JP(e,t)||QP()}function QP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
24
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JP(e,t){if(e){if(typeof e=="string")return ga(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ga(e,t):void 0}}function ga(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ZP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function ew(e){if(Array.isArray(e))return e}var tw=.025,nw=.9,rw=.1,iw=.618,va=80,Ke={SIZE:8,DOT_SIZE:2},xe=18,aw=250,ow=60*1e3,sw={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 lw(){return Xo(sw)}var Ul=J.memo(()=>{var e=Yt(),t=e.activeThemes,n=c.useMemo(lw,[t]),r=c.useRef(null),i=c.useRef(null),a=c.useState(!1),o=XP(a,2),s=o[0],l=o[1],u=window.devicePixelRatio,f,p,h,m,v,g=null,y=[];function S(){var T;i.current!=null&&(h=i.current.offsetWidth,m=i.current.offsetHeight),r.current!=null&&(r.current.style.width="".concat(h,"px"),r.current.style.height="".concat(m,"px"),r.current.width=h*u,r.current.height=m*u),(T=f)===null||T===void 0||T.scale(u,u)}function b(){var T=n.foregroundFill,j=n.foregroundStroke,k=document.createElement("canvas");k.width=Ke.SIZE,k.height=Ke.SIZE;var M=k.getContext("2d");return M!=null&&(M.fillStyle=j,M.fillRect(0,0,Ke.DOT_SIZE,Ke.DOT_SIZE),M.fillStyle=T,M.fillRect(0,0,Ke.SIZE,Ke.SIZE)),M==null?void 0:M.createPattern(k,"repeat")}function O(T){var j=Math.random()-.5,k=tw*j;return T<rw?k=Math.abs(k):T>nw&&(k=-Math.abs(k)),T+k}function w(){for(var T=[],j=iw,k=0;k<h+xe;k+=1)j=O(j),T.push(j);return T}function E(){for(;y.length>=h+xe;)y.pop();for(;y.length<h+xe;)y.push(O(y[y.length-1]))}function P(T,j){j.beginPath(),j.moveTo(-1,m+1),j.lineTo(-1,m*T[0]);for(var k=0;k<T.length;k+=1)j.lineTo(k,m*T[k]);j.lineTo(h+xe,m*T[T.length-1]),j.lineTo(h+xe,m+1),j.closePath()}function I(T){T.beginPath();for(var j=1;j<h;j+=va)T.moveTo(j,0),T.lineTo(j,m);for(var k=1;k<m;k+=va)T.moveTo(0,k),T.lineTo(h,k)}function x(T){g=g??T;var j=n.background,k=n.foregroundStroke,M=n.gridColor;st(f),f.fillStyle=j,f.fillRect(0,0,h,m),I(f),f.lineWidth=1,f.strokeStyle=M,f.stroke();var G=((g??0)-(T??0))/(1e3/xe);if(f.translate(G,0),P(y,f),f.lineWidth=2,f.strokeStyle=k,f.stroke(),f.translate(-G,0),p!=null&&(f.fillStyle=p),f.fill(),f.setTransform(u,0,0,u,0,0),(T??0)-(g??0)>1e3/xe){for(var Y=Math.floor(((T??0)-(g??0))/(1e3/xe)),ie=0;ie<Y;ie+=1)y.shift(),y.push(O(y[y.length-1]));g=T}v!=null&&cancelAnimationFrame(v),v=requestAnimationFrame(x)}var C=ot(()=>{v=requestAnimationFrame(T=>{S(),E(),l(!1),x(T)})},aw,{leading:!0});function A(){l(!0),v!=null&&cancelAnimationFrame(v),v=null,g=null}var R=ot(()=>{A()},ow);function _(){v==null&&(l(!1),S(),E(),v=requestAnimationFrame(x)),R()}function $(){document.hasFocus()&&_()}function W(){v!=null&&cancelAnimationFrame(v),R(),C()}return c.useEffect(()=>{var T;return f=(T=r.current)===null||T===void 0?void 0:T.getContext("2d",{alpha:!1}),S(),y=w(),p=b(),x(),R(),window.addEventListener("resize",W),window.addEventListener("focus",_),window.addEventListener("blur",A),window.addEventListener("mousemove",$),window.addEventListener("keydown",$),()=>{v!=null&&cancelAnimationFrame(v),window.removeEventListener("resize",W),window.removeEventListener("focus",_),window.removeEventListener("blur",A),window.removeEventListener("mousemove",$),window.removeEventListener("keydown",$),R.cancel(),C.cancel()}},[n]),d.jsx("div",{className:"random-area-plot-animation-container",ref:i,children:d.jsx("canvas",{ref:r,className:s?"shade":""})})});function Wl(e){var t=e.text,n=e.placement,r=n===void 0?"top-start":n,i=c.useMemo(()=>({placement:r}),[r]);return d.jsxs(d.Fragment,{children:[d.jsx(qt,{UNSAFE_className:pr.spectrumEllipsis,children:t??d.jsx(d.Fragment,{children:" "})}),t==null||t===""?null:d.jsx(mt,{options:i,children:t})]})}var uw=["scrollRef","getItemDisplayText","getKey"];function ba(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ba(Object(n),!0).forEach(function(r){cw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ba(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cw(e,t,n){return(t=dw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dw(e){var t=fw(e,"string");return typeof t=="symbol"?t:t+""}function fw(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pw(e,t){if(e==null)return{};var n,r,i=hw(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function hw(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function mw(e){var t=e.scrollRef,n=e.getItemDisplayText,r=e.getKey,i=pw(e,uw),a=c.useCallback(o=>{var s=r(o),l=n(o);return d.jsx(Bt,{textValue:l??String(s),children:d.jsx(Wl,{text:l})},s)},[n,r]);return d.jsx(Gn,Sa(Sa({},i),{},{ref:t,menuTrigger:"focus",onSelectionChange:i.onSelectionChange,children:a}))}function yw(e,t){return Sw(e)||bw(e,t)||vw(e,t)||gw()}function gw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
25
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vw(e,t){if(e){if(typeof e=="string")return Pa(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pa(e,t):void 0}}function Pa(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bw(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Sw(e){if(Array.isArray(e))return e}var Pw=500;function ww(e){var t=e.heading,n=e.content,r=e.delayMs,i=r===void 0?Pw:r,a=c.useState(!1),o=yw(a,2),s=o[0],l=o[1];return c.useEffect(()=>{window.setTimeout(()=>{l(!0)},i)},[i]),s?d.jsxs(Wo,{children:[d.jsx(pt,{size:"XXL",children:d.jsx(ce,{icon:Wd})}),d.jsx(tr,{children:t}),n==null?null:d.jsx(Yn,{children:n})]}):null}const Bl={"handle-size":"15px","popover-width":"90px"};function Ut(e,t){return Cw(e)||Tw(e,t)||xw(e,t)||Ow()}function Ow(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
26
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xw(e,t){if(e){if(typeof e=="string")return wa(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wa(e,t):void 0}}function wa(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Tw(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Cw(e){if(Array.isArray(e))return e}var _t=parseInt(Bl["handle-size"],10),Oa=parseInt(Bl["popover-width"],10),he=24*60*60-1,xa=5*60;function Ew(e){var t=e.startTime,n=e.endTime,r=e.onChange,i=e.isStartModified,a=i===void 0?!1:i,o=e.isEndModified,s=o===void 0?!1:o,l=e["data-testid"],u=c.useState(t),f=Ut(u,2),p=f[0],h=f[1],m=c.useState(n),v=Ut(m,2),g=v[0],y=v[1],S=c.useRef(null);c.useEffect(function(){h(t),y(n)},[t,n]);var b=c.useCallback((E,P)=>{var I=E,x=P;I===x&&(x<he?x+=1:I-=1),h(I),y(x),r({startTime:I,endTime:x})},[h,y,r]),O=c.useCallback(E=>{b(E,g)},[b,g]),w=c.useCallback(E=>{b(p,E)},[b,p]);return d.jsxs("div",{className:"time-slider","data-testid":l,children:[d.jsx(_w,{startTime:p,endTime:g,onStartTimeChange:O,onEndTimeChange:w,isStartModified:a,isEndModified:s}),d.jsxs("div",{className:"track",ref:S,children:[d.jsx(Iw,{startTime:p,endTime:g}),d.jsx("div",{className:"ticks",children:Array(24).fill(null).map((E,P)=>d.jsx("div",{className:"tick"},P))}),d.jsx(Ta,{track:S,time:p,setTime:O}),d.jsx(Ta,{track:S,time:g,setTime:w})]}),d.jsxs("div",{className:"tick-labels",children:[d.jsx("div",{className:"tick-label",children:"0:00"}),d.jsx("div",{className:"tick-label-wrapper",children:Array(24).fill(null).map((E,P)=>d.jsx("div",{className:"tick-label",children:"".concat(P+1,":00")},P))})]})]})}function _w(e){var t=e.startTime,n=e.endTime,r=e.onStartTimeChange,i=e.onEndTimeChange,a=e.isStartModified,o=e.isEndModified,s=e["data-testid"],l=t>n,u=c.useState(l?n:t),f=Ut(u,2),p=f[0],h=f[1],m=c.useState(l?t:n),v=Ut(m,2),g=v[0],y=v[1],S=c.useRef(null),b=c.useRef(null),O=c.useRef(null),w=c.useRef(null);c.useEffect(function(){h(t>n?n:t),y(t>n?t:n)},[t,n]),c.useEffect(function(){if(O.current!==null){var A;(A=b.current)===null||A===void 0||A.setSelection(O.current)}if(w.current!==null){var R;(R=S.current)===null||R===void 0||R.setSelection(w.current)}},[l]);function E(C){t<=n?r(C):i(C)}function P(C){t<=n?i(C):r(C)}var I=c.useCallback(C=>{O.current=C,w.current=null},[]),x=c.useCallback(C=>{O.current=null,w.current=C},[]);return d.jsxs("div",{className:"time-slider-popovers",children:[d.jsx("div",{className:"flex",style:{flexBasis:"calc(".concat(p/he*100,"% - ").concat(Oa/2,"px)")}}),d.jsxs("div",{className:"handle-popper",children:[d.jsx("label",{className:V({modified:l?o:a}),children:l?"End Time":"Start Time"}),d.jsx(Nt,{ref:S,allowValueWrapping:!1,value:p,onChange:E,onSelect:I,"data-testid":s!==void 0?"".concat(s,"-input-1"):void 0})]}),d.jsx("div",{className:"flex-spacer"}),d.jsxs("div",{className:"handle-popper",children:[d.jsx("label",{className:V({modified:l?a:o}),children:l?"Start Time":"End Time"}),d.jsx(Nt,{ref:b,allowValueWrapping:!1,value:g,onChange:P,onSelect:x,"data-testid":s!==void 0?"".concat(s,"-input-2"):void 0})]}),d.jsx("div",{className:"flex",style:{flexBasis:"calc(".concat((he-g)/he*100,"% - ").concat(Oa/2,"px)")}})]})}function Iw(e){var t=e.startTime,n=e.endTime,r=e["data-testid"];return d.jsxs("div",{className:"track-fills","data-testid":r,children:[t>n&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"track-fill track-fill-start",style:{transform:"scaleX(".concat(n/he,")")}}),d.jsx("div",{className:"track-fill track-fill-end",style:{transform:"scaleX(".concat((he-t)/he,")")}})]}),t<n&&d.jsx("div",{className:"track-fill track-fill-middle",style:{transform:"translateX(".concat(t/he*100,"%) scaleX(").concat((n-t)/he,")")}})]})}function Ta(e){var t=e.track,n=e.time,r=e.setTime,i=e["data-testid"],a=c.useMemo(()=>{var h=3600,m=_t/2;return n<h?m=n/h*(_t/2):n>23*h&&(m=_t/2+1/(he-23*h)*(n-23*h)*(_t/2)),"translateX(calc(".concat(n/he*100,"% - ").concat(m,"px))")},[n]),o=c.useCallback(h=>{if(!t.current)return 0;var m=t.current.getBoundingClientRect(),v=Math.max(h-m.left,0),g=he*Math.min(1,v/m.width),y=xa*Math.round(g/xa),S=Math.min(he,y);return S},[t]),s=c.useCallback(h=>{var m=h.clientX;r(o(m))},[r,o]),l=c.useCallback(h=>{var m=h.clientX;r(o(m)),window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",l),document.documentElement.classList.remove("drag-pointer-events-none")},[r,o,s]),u=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(()=>{u()},[u]);return c.useEffect(function(){return()=>{f()}},[f]),d.jsx("div",{className:"handle-track",style:{transform:a},children:d.jsx("button",{className:"handle",type:"button","aria-label":"Change time",onMouseDown:p,"data-testid":i})})}function Kl(e){var t=e.buttons,n=e.isShown,r=n===void 0?!1:n,i=e.classNames,a=e.message,o=e.type,s=e.onClick,l=e.onDismiss,u=e["data-testid"],f=c.useRef(null),p=t&&t.length!==0;return d.jsx(No,{in:r,timeout:Tn.transitionMs,classNames:"toast-notification-slide-up",mountOnEnter:!0,unmountOnExit:!0,nodeRef:f,children:d.jsxs("div",{ref:f,className:V("toast-notification",i,o),role:"presentation",onClick:s,onKeyPress:s,"data-testid":u,children:[d.jsx("div",{className:"message-container",children:d.jsx("span",{className:"message",children:a})}),d.jsx(rr,{in:p,timeout:Tn.transitionSlowMs,mountOnEnter:!0,unmountOnExit:!0,children:d.jsx("div",{className:"buttons-container",children:t})}),l&&d.jsx(le,{kind:"ghost",icon:Jn,tooltip:"Close notification",className:"my-2",onClick:l})]})})}Kl.TYPE=Object.freeze({ERROR:"error"});const jw=Object.freeze(Object.defineProperty({__proto__:null,ACTION_ICON_HEIGHT:hr,Accordion:gc,ActionBar:Fo,ActionButton:Kt,ActionButtonDialogTrigger:_l,ActionGroup:ky,ActionMenu:Ry,AlertDialog:vc,AutoCompleteInput:be,AutoResizeTextarea:LS,Avatar:bc,Badge:Sc,BasicModal:ss,Breadcrumbs:Pc,BulkActionBar:WS,Button:le,ButtonGroup:Mo,CSS_VAR_EXPRESSION_PREFIX:Bd,Calendar:wc,CardFlip:vm,Checkbox:En,CheckboxGroup:cS,Collapse:dt,ColorEditor:Oc,ColorPicker:xc,ColorValues:Zf,ComboBox:Dy,ComboBoxNormalized:wl,ConfirmActionButton:SS,ConfirmationDialog:Il,Content:Yn,ContextActionUtils:Ee,ContextActions:Qt,ContextMenuItem:rs,ContextMenuRoot:Rl,ContextualHelp:Tc,ContextualHelpTrigger:Cc,CopyButton:as,CustomTimeSelect:pe,DEFAULT_DARK_THEME_KEY:Kd,DEFAULT_DARK_THEME_PALETTE:Hd,DEFAULT_GET_PREFERRED_REPLACEMENT_STRING:Xs,DEFAULT_LIGHT_THEME_KEY:Vd,DEFAULT_PRELOAD_DATA_VARIABLES:Gd,DH_CSS_VAR_NAME_REGEXP:Yd,DH_VAR_PREFIX:zd,DashboardList:Nl,DateField:Ec,DateInput:Ml,DatePicker:_c,DateRangePicker:Ic,DateTimeInput:Ly,DebouncedModal:$l,DebouncedSearchInput:ep,Dialog:Ro,DialogContainer:jc,DialogTrigger:ko,Disclosure:Ac,DisclosurePanel:$c,DisclosureTitle:kc,Divider:Do,DragUtils:An,DraggableItemList:My,DropdownMenu:is,EXTERNAL_THEME_KEY:qd,EditableItemList:vP,ErrorBoundary:tp,ErrorView:OP,FadeTransition:rr,Flex:jo,FontBootstrap:Sl,FontsLoaded:Pl,FontsLoadedContext:tn,Footer:Rc,Form:Lo,GLOBAL_SHORTCUTS:Jt,Grid:Dc,Header:Lc,Heading:tr,HierarchicalCheckboxMenu:Ge,ITEM_EMPTY_STRING_TEXT_VALUE:Fy,Icon:pt,IconActionButton:jl,IllustratedMessage:Wo,Image:Mc,InfoModal:kl,InlineAlert:Fc,Item:Bt,ItemContent:Ny,ItemList:Cn,ItemListItem:np,ItemTooltip:Uy,KEY:fe,Keyboard:Nc,LIST_VIEW_ROW_HEIGHTS:Qs,LabeledValue:Uc,Link:Bo,ListActionGroup:Wy,ListActionMenu:By,ListView:Fb,ListViewNormalized:Ol,ListViewWrapper:wr,LoadingOverlay:Ue,LoadingSpinner:Ht,LogicButton:Wc,Logo:ub,MODIFIER:se,MSG_REQUEST_GET_THEME:Xd,MSG_REQUEST_SET_THEME:Yo,MaskedInput:mr,Menu:Ky,MenuItem:Hy,MenuTrigger:Bc,Meter:Kc,Modal:Xn,ModalBody:Qn,ModalFooter:ls,ModalHeader:Qo,MultiSelect:Tr,MultiSelectNormalized:Cl,NAVIGATION_SHORTCUTS:pP,NON_WHITESPACE_REGEX:Qd,NavTabList:qP,NumberField:Hc,Option:Js,PICKER_ITEM_HEIGHTS:Vy,PICKER_TOP_OFFSET:Gy,PRELOAD_TRANSPARENT_THEME_QUERY_PARAM:Jd,Page:Yy,Picker:zy,PickerNormalized:qy,Popper:Xt,ProgressBar:Vc,ProgressCircle:$o,Radio:Gc,RadioGroup:Yc,RandomAreaPlotAnimation:Ul,RangeCalendar:zc,RangeSlider:qc,ReactFontAwesome:Xc,SVG_ICON_MANUAL_COLOR_MAP:Zd,SearchField:Qc,SearchInput:nr,SearchableCombobox:mw,Section:Xy,Select:us,SelectValueList:Zs,Shortcut:rp,ShortcutRegistry:De,SlideTransition:Qy,Slider:Jc,SocketedButton:bm,SpectrumButton:On,SpectrumCheckbox:wn,SpectrumComboBox:Gn,SpectrumMenu:Zc,SplitButtonGroup:ip,Stack:Jy,StatusLight:ed,SubmenuTrigger:td,Switch:nd,TABLE_ROW_HEIGHT:Zy,THEME_CACHE_LOCAL_STORAGE_KEY:ef,THEME_KEY_OVERRIDE_QUERY_PARAM:tf,TMP_CSS_PROP_PREFIX:nf,TRANSPARENT_PRELOAD_DATA_VARIABLES:rf,TabList:rd,TabPanels:pv,TableViewEmptyState:ww,Tabs:id,TagGroup:ad,Text:qt,TextArea:od,TextField:sd,TextWithTooltip:Wl,ThemeContext:ap,ThemeExport:Tn,ThemePicker:lb,ThemeProvider:cs,TimeField:ld,TimeInput:Nt,TimeSlider:Ew,ToastContainer:ud,ToastNotification:Kl,ToastQueue:cd,ToggleButton:dd,Tooltip:mt,UISwitch:op,View:El,WHITESPACE_REGEX:af,Well:fd,XComponentMapContext:sp,XComponentMapProvider:lp,baseStyleProps:pd,calculatePreloadStyleContent:of,canHaveRef:ds,colorValueStyle:ye,createCssVariableResolver:sf,createPreloadStyleElement:lf,createXComponent:up,extractDistinctCssVariableExpressions:uf,fillToLength:eg,getActiveThemes:cf,getDefaultBaseThemes:df,getDefaultSelectedThemeKey:ff,getExpressionRanges:pf,getItemKey:Mt,getItemTextValue:qs,getPositionOfSelectedItemElement:tg,getThemeKey:hf,getThemeKeyOverride:mf,getThemePreloadData:yf,isBaseThemeKey:gf,isClassComponent:cp,isDHColorValue:dp,isExternalThemeData:zo,isExternalThemeEnabled:zn,isForwardRefComponentType:fp,isItemElement:Ft,isItemElementWithDescription:ng,isItemOrSection:rg,isNormalizedItemsWithKeysList:ig,isNormalizedSection:jn,isPreloadTransparentTheme:vf,isSectionElement:fr,isValidColorVar:bf,isWrappedComponent:fs,itemSelectionToStringSet:at,normalizeTooltipOptions:yt,overrideSVGFillColors:Sf,parseExternalThemeData:Vo,preloadTheme:Pf,replaceSVGFillColor:wf,requestExternalThemeData:Go,resolveCssVariablesInRecord:Xo,resolveCssVariablesInString:Of,separateSpectrumProps:vl,setThemePreloadData:xf,themeDHDefault:Tf,themeDark:Cf,themeLight:Ef,trimTrailingMask:ag,useExternalTheme:bl,useOnChangeTrackUncontrolled:og,usePickerItemScale:yr,usePickerNormalizedProps:zs,usePickerProps:sg,usePickerScrollOnOpen:lg,useRenderNormalizedItem:dr,useSpectrumThemeProvider:ur,useStaticItemInitialScrollPosition:ug,useStringifiedMultiSelection:Pr,useStringifiedSelection:cg,useStyleProps:hd,useTheme:Yt,useXComponent:pp,viewStyleProps:md,wrapIcon:dg,wrapItemChildren:cr,wrapPrimitiveWithText:fg},Symbol.toStringTag,{value:"Module"}));function Aw(e,t){return Dw(e)||Rw(e,t)||kw(e,t)||$w()}function $w(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
27
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kw(e,t){if(e){if(typeof e=="string")return Ca(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ca(e,t):void 0}}function Ca(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Rw(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Dw(e){if(Array.isArray(e))return e}var Hl=J.memo(e=>{var t=e.children,n=e.onError,r=e.widget,i=ir(r),a=Aw(i,2),o=a[0],s=a[1];return s!=null?(n==null||n(s),null):o==null?null:d.jsx(Zn.Provider,{value:o,children:t})});Hl.displayName="DeferredApiBootstrap";var nn=c.createContext(null);nn.displayName="VariableDefinitionFinderContext";function Lw(){return c.useContext(nn)}function Mw(e,t){return Ww(e)||Uw(e,t)||Nw(e,t)||Fw()}function Fw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
28
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nw(e,t){if(e){if(typeof e=="string")return Ea(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ea(e,t):void 0}}function Ea(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Uw(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Ww(e){if(Array.isArray(e))return e}var rn=c.createContext(null);rn.displayName="ObjectFetchManagerContext";function Vl(e){var t=c.useState({status:"loading"}),n=Mw(t,2),r=n[0],i=n[1],a=c.useContext(rn);return c.useEffect(()=>{if(a==null){i({error:new Error("No ObjectFetchManager available in context"),status:"error"});return}return i(o=>o.status==="loading"?o:{status:"loading"}),a.subscribe(e,i)},[e,a]),r}function _a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ia(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_a(Object(n),!0).forEach(function(r){Bw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_a(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bw(e,t,n){return(t=Kw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kw(e){var t=Hw(e,"string");return typeof t=="symbol"?t:t+""}function Hw(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ja(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Vw(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){ja(a,r,i,o,s,"next",l)}function s(l){ja(a,r,i,o,s,"throw",l)}o(void 0)})}}function Aa(e,t){return qw(e)||zw(e,t)||Yw(e,t)||Gw()}function Gw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
29
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yw(e,t){if(e){if(typeof e=="string")return $a(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$a(e,t):void 0}}function $a(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function zw(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function qw(e){if(Array.isArray(e))return e}var It=re.module("useWidget");function Xw(e){var t=c.useState(()=>({widget:null,error:null})),n=Aa(t,2),r=n[0],i=n[1],a=Vl(e),o=ir(e),s=Aa(o,2),l=s[0],u=s[1],f=je(),p=l??f;c.useEffect(function(){It.debug("loadWidget",e);var v=a.status;if(v==="error"){i({widget:null,error:a.error});return}if(v==="loading"){i({widget:null,error:null});return}var g=a.fetch,y=!1;function S(){return b.apply(this,arguments)}function b(){return b=Vw(function*(){try{st(g);var O=yield g();if(y){It.debug2("loadWidgetInternal cancelled",e,O),O.close(),"exportedObjects"in O&&O.exportedObjects.forEach(w=>{w.close()});return}It.debug("loadWidgetInternal done",e,O),i({widget:O,error:null})}catch(w){if(y)return;It.debug("loadWidgetInternal error",e,w),i({widget:null,error:w??new Error("Null error")})}}),b.apply(this,arguments)}return S(),()=>{y=!0}},[e,a]);var h=c.useMemo(()=>{var m;return Ia(Ia({},r),{},{error:(m=r.error)!==null&&m!==void 0?m:u,api:r.widget!=null?p:null})},[r,p,u]);return h}const Qw=Object.freeze(Object.defineProperty({__proto__:null,ApiBootstrap:_f,ApiContext:Zn,ClientBootstrap:Zo,ClientContext:Lf,DeferredApiBootstrap:Hl,DeferredApiContext:Sm,ObjectFetchManagerContext:rn,ObjectFetcherContext:ps,VariableDefinitionFinderContext:nn,getVariableDescriptor:hp,isIdVariableDescriptor:mp,isNameVariableDescriptor:yp,isVariableDescriptor:gp,sanitizeVariableDescriptor:hs,useApi:je,useClient:ht,useDeferredApi:ir,useObjectFetch:Vl,useObjectFetcher:vp,useVariableDefinitionFinder:Lw,useWidget:Xw},Symbol.toStringTag,{value:"Module"}));function Jw(e){return function(n){var r=n.children;return d.jsx(Zn.Provider,{value:e,children:r})}}var Gl="io.deephaven.message.LoginOptions.request",Yl="io.deephaven.message.SessionDetails.request",zl="io.deephaven.broadcast",Cr="io.deephaven.broadcast.Login",ql="io.deephaven.broadcast.Logout";function Xl(e){return Vt(e)&&e.message===Cr}function Ql(e){return Vt(e)&&e.message===ql}function Zw(e,t,n){return(t=eO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eO(e){var t=tO(e,"string");return typeof t=="symbol"?t:t+""}function tO(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Jl extends Error{constructor(){super(...arguments),Zw(this,"isNoConsolesError",!0)}}function Zl(e){return e.isNoConsolesError}function ka(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function an(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){ka(a,r,i,o,s,"next",l)}function s(l){ka(a,r,i,o,s,"throw",l)}o(void 0)})}}var it=re.module("SessionUtils");function eu(e,t,n){return kn.apply(this,arguments)}function kn(){return kn=an(function*(e,t,n){it.info("Getting console types...");var r=yield t.getConsoleTypes();if(r.length===0)throw new Jl("No console types available");it.info("Available types:",r);var i=r[0];it.info("Starting session with type",i);var a=yield t.startSession(i),o={type:i,id:Vn()};return it.info("Console session established",o),{session:a,config:o,connection:t,details:n,dh:e}}),kn.apply(this,arguments)}function nO(e,t,n){return it.info("createCoreClient",t),new e.CoreClient(t,n)}function rO(e){return e!=null&&typeof e=="object"}function iO(){return Rn.apply(this,arguments)}function Rn(){return Rn=an(function*(){var e=yield er(Yl);if(!rO(e))throw new Error("Unexpected session details response: ".concat(e));return e}),Rn.apply(this,arguments)}function aO(){return Dn.apply(this,arguments)}function Dn(){return Dn=an(function*(){var e=new URLSearchParams(window.location.search);switch(e.get("authProvider")){case"parent":return iO()}return{}}),Dn.apply(this,arguments)}function oO(e,t,n){return Ln.apply(this,arguments)}function Ln(){return Ln=an(function*(e,t,n){var r;try{r=yield eu(e,t,n)}catch(i){if(!Zl(i))throw i}return r}),Ln.apply(this,arguments)}const sO=Object.freeze(Object.defineProperty({__proto__:null,BROADCAST_CHANNEL_NAME:zl,BROADCAST_LOGIN_MESSAGE:Cr,BROADCAST_LOGOUT_MESSAGE:ql,BooleanColumnFormatter:Pm,CharColumnFormatter:wm,DateTimeColumnFormatter:bp,DateUtils:Om,DecimalColumnFormatter:Sp,DefaultColumnFormatter:xm,FETCH_TIMEOUT:Mf,Formatter:ar,FormatterUtils:In,ITEM_KEY_PREFIX:Tm,IntegerColumnFormatter:Pp,LOGIN_OPTIONS_REQUEST:Gl,NewTableColumnTypes:wp,NoConsolesError:Jl,SESSION_DETAILS_REQUEST:Yl,StringColumnFormatter:Cm,TableColumnFormatter:Op,TableUtils:Ds,createComboboxFilterArgs:Em,createCoreClient:nO,createFilterConditionFactory:or,createFormatterFromSettings:_m,createKeyedItemKey:sr,createNotNullOrEmptyFilterCondition:Ls,createOnTableUpdatedHandler:Im,createSearchTextFilter:Ms,createSelectedValuesFilter:lr,createSessionWrapper:eu,createShowOnlyEmptyFilterCondition:Fs,createValueFilter:Ns,defaultRowDeserializer:jm,fetchVariableDefinition:Ff,fetchVariableDefinitionByPredicate:es,generateEmptyKeyedItems:Am,getColumnFormats:$m,getDateTimeFormatterOptions:km,getSessionDetails:aO,getSize:Rm,getWindowParent:qn,isBroadcastLoginMessage:Xl,isBroadcastLogoutMessage:Ql,isClosed:Dm,isCustomColumnFormatDefined:Lm,isMessage:Vt,isNoConsolesError:Zl,isResponse:If,isSortDirection:Mm,loadSessionWrapper:oO,makeMessage:Jo,makeResponse:jf,padFirstAndLastRow:Fm,requestParentResponse:er},Symbol.toStringTag,{value:"Module"}));function lO(e,t,n){return(t=uO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uO(e){var t=cO(e,"string");return typeof t=="symbol"?t:t+""}function cO(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class dO extends Error{constructor(){super(...arguments),lO(this,"isColumnNameError",!0)}}function fO(e,t,n){return(t=pO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pO(e){var t=hO(e,"string");return typeof t=="symbol"?t:t+""}function hO(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class mO extends Error{constructor(){super(...arguments),fO(this,"isTableDisconnectError",!0)}}function jt(e,t){return bO(e)||vO(e,t)||gO(e,t)||yO()}function yO(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
30
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gO(e,t){if(e){if(typeof e=="string")return Ra(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ra(e,t):void 0}}function Ra(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vO(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function bO(e){if(Array.isArray(e))return e}var At=re.module("useTable"),tu=(e,t,n,r)=>{var i=je(),a=c.useState(void 0),o=jt(a,2),s=o[0],l=o[1],u=c.useState([]),f=jt(u,2),p=f[0],h=f[1],m=c.useState(null),v=jt(m,2),g=v[0],y=v[1],S=c.useState(null),b=jt(S,2),O=b[0],w=b[1];c.useEffect(()=>{if(r===void 0){l(e==null?void 0:e.columns),y(null);return}try{l(e==null?void 0:e.findColumns(r)),y(null)}catch(x){At.error("Column not found",x,r),y(new dO("Invalid columnNames argument"))}},[e,r]),c.useEffect(()=>{if(!s||!e){At.debug2("Table or column not initialized, skip viewport update.");return}At.debug2("Setting viewport",t,n),e.setViewport(t,n,s)},[s,e,t,n]);var E=c.useCallback(x=>{var C=x.detail;if(!s){At.error("Columns not initialized.");return}var A=s.map(R=>C.rows.map(_=>_.get(R)));h(A)},[s]),P=c.useCallback(()=>{w(new mO("Table disconnected"))},[]),I=c.useCallback(()=>{w(null)},[]);return Dt(e,i.Table.EVENT_UPDATED,E),Dt(e,i.Table.EVENT_DISCONNECT,P),Dt(e,i.Table.EVENT_RECONNECT,I),{columns:s,data:p,error:O??g}},nu=(e,t,n,r)=>{var i=c.useMemo(()=>[r],[r]),a=tu(e,t,n,i),o=a.columns,s=o===void 0?[]:o,l=a.data,u=l===void 0?[]:l,f=a.error;return{column:s[0],data:u[0],error:f}};function Da(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function SO(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){Da(a,r,i,o,s,"next",l)}function s(l){Da(a,r,i,o,s,"throw",l)}o(void 0)})}}function $t(e,t){return xO(e)||OO(e,t)||wO(e,t)||PO()}function PO(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
31
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wO(e,t){if(e){if(typeof e=="string")return La(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?La(e,t):void 0}}function La(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OO(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function xO(e){if(Array.isArray(e))return e}var Pe=re.module("TableInput"),mn=250;function TO(e){var t,n,r=e.className,i=r===void 0?void 0:r,a=e.columnName,o=e.settings,s=e.defaultValue,l=s===void 0?[]:s,u=e.isInvalid,f=u===void 0?!1:u,p=e.onChange,h=p===void 0?ge:p,m=e.onBlur,v=m===void 0?ge:m,g=e.table,y=c.useRef(null),S=je(),b=c.useMemo(()=>{var L=In.getColumnFormats(o),F=In.getDateTimeFormatterOptions(o),U=o.defaultDecimalFormatOptions,z=U===void 0?{}:U,de=o.defaultIntegerFormatOptions,Ae=de===void 0?{}:de;return new ar(S,L,F,z,Ae)},[S,o]),O=c.useState(""),w=$t(O,2),E=w[0],P=w[1],I=c.useState(new Set(l)),x=$t(I,2),C=x[0],A=x[1],R=c.useState(),_=$t(R,2),$=_[0],W=_[1],T=c.useRef(null),j=Math.min((t=$==null?void 0:$.size)!==null&&t!==void 0?t:0,mn),k=nu($,0,mn-1,a),M=k.column,G=k.data,Y=k.error,ie=c.useCallback(L=>M?b.getFormattedString(L,M.type,M.name):"".concat(L),[M,b]),Se=c.useMemo(()=>{var L=new Set(C),F=[];if(G==null)return[F,null];if(G.forEach(z=>{var de="".concat(z),Ae=C.has(de);Ae&&L.delete(de),F.push({value:de,displayValue:ie(z),isSelected:Ae})}),L.size>0){Pe.debug2("Selection has items that are missing from the viewport");var U=new Set(C);return Array.from(L).forEach(z=>{U.delete(z)}),[F,U]}return[F,null]},[G,C,ie]),oe=$t(Se,2),X=oe[0],Q=oe[1];c.useEffect(()=>{Q!==null&&(A(Q),h(Array.from(Q)))},[h,Q]);var q=c.useCallback(function(){var L=SO(function*(F){try{var U=yield F;Pe.debug("Table resolved",U),W(U)}catch(z){if(Fe.isCanceled(z))return;Pe.error(z)}});return function(F){return L.apply(this,arguments)}}(),[]);c.useEffect(()=>{var L=Fe.makeCancelable(g);return q(L),()=>{Pe.debug2("Cancel table promise"),L.cancel()}},[g,q]);var D=c.useCallback(L=>{var F=L.target.value;P(F);var U=X.findIndex(de=>de.displayValue.includes(F));if(U>-1){var z;Pe.debug2("Found ".concat(F," at index ").concat(U)),(z=T.current)===null||z===void 0||z.scrollIntoView(U)}else Pe.debug2("".concat(F," not found"))},[X,T]),N=c.useCallback(L=>{if(Pe.debug("handleSelect",L),L>=X.length){Pe.error("Invalid index",L);return}var F=X[L].value,U=new Set(C);X[L].isSelected?U.delete(F):U.add(F),A(U),h(Array.from(U))},[h,X,C]),H=c.useCallback(()=>{var L=X.map(U=>U.value),F=new Set(L);A(F),h(L)},[X,h]),K=c.useCallback(()=>{A(new Set),h([])},[h]),Z=c.useCallback(()=>{},[]),ne=c.useCallback(L=>{var F,U=L.relatedTarget;Pe.debug("handleChildBlur",U,U instanceof HTMLElement,y.current,(F=y.current)===null||F===void 0?void 0:F.contains(U)),(!U||y.current&&U instanceof HTMLElement&&!y.current.contains(U))&&v()},[v]),ue=X.length===0;return d.jsxs("div",{ref:y,className:V("table-input-container d-flex flex-column position-relative",i),children:[d.jsx(nr,{disabled:!!Y||ue,value:E,placeholder:"Search",onChange:D,className:"mb-2 d-flex",onBlur:ne}),d.jsx(Zs,{className:"table-input-list",disabled:$===void 0||ue,isInvalid:f,items:ue?[{value:"Empty",isSelected:!1}]:X,itemCount:j,offset:0,onSelect:N,onViewportChange:Z,ref:T,onBlur:ne}),$&&d.jsxs("div",{className:"meta-row",children:[d.jsx("div",{className:"d-flex align-items-center text-muted small",children:$!=null&&$.size>j&&d.jsxs(d.Fragment,{children:["Table is too large, showing the first ",mn," items."]})}),d.jsxs("div",{children:[d.jsx("button",{type:"button",className:"btn btn-link",onBlur:ne,onClick:H,children:"Select All"}),d.jsx("button",{type:"button",className:"btn btn-link mr-a",onBlur:ne,onClick:K,children:"Clear"})]})]}),$==null||Y&&d.jsx("div",{className:"h-100 w-100 position-absolute",children:d.jsx(Ue,{isLoaded:$!=null,isLoading:$==null&&Y==null,errorMessage:(n=Y==null?void 0:Y.message)!==null&&n!==void 0?n:null,"data-testid":"table-input-loading"})})]})}var CO=["table","keyColumn","labelColumn","iconColumn","settings","onChange","onSelectionChange"];function Ma(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ma(Object(n),!0).forEach(function(r){EO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ma(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EO(e,t,n){return(t=_O(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _O(e){var t=IO(e,"string");return typeof t=="symbol"?t:t+""}function IO(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Na(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Ua(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){Na(a,r,i,o,s,"next",l)}function s(l){Na(a,r,i,o,s,"throw",l)}o(void 0)})}}function Wa(e,t){return kO(e)||$O(e,t)||AO(e,t)||jO()}function jO(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
32
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AO(e,t){if(e){if(typeof e=="string")return Ba(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ba(e,t):void 0}}function Ba(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $O(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function kO(e){if(Array.isArray(e))return e}function RO(e,t){if(e==null)return{};var n,r,i=DO(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function DO(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var LO=re.module("jsapi-components.useMultiPickerProps");function MO(e){var t,n=e.table,r=e.keyColumn,i=e.labelColumn,a=e.iconColumn,o=e.settings,s=e.onChange,l=e.onSelectionChange,u=RO(e,CO),f=yr(),p=f.itemHeight,h=gr(o),m=h.getFormattedString,v=h.timeZone,g=Ne(Ds.copyTableAndApplyFilters,[n]),y=g.data;vr(y);var S=c.useMemo(()=>y==null?null:pg(y,r),[r,y]),b=c.useMemo(()=>y==null||S==null?null:hg(y,S,i),[S,i,y]),O=c.useMemo(()=>b==null?[]:[b.name],[b]),w=el({table:y,iconColumnName:a,keyColumnName:r,labelColumnName:i,formatValue:m}),E=tl({reuseItemsOnTableResize:!0,table:y,itemHeight:p,deserializeRow:w,searchColumnNames:O,timeZone:v}),P=E.onScroll,I=E.onSearchTextChange,x=E.viewportData,C=je(),A=we(),R=c.useMemo(()=>{if(y==null||S==null)return[];var Q=[S];if(b!=null&&b!==S&&Q.push(b),a!=null)try{var q=y.findColumn(a);Q.push(q)}catch{}return Q},[y,S,b,a]),_=(t=u.selectedKeys)!==null&&t!==void 0?t:u.defaultSelectedKeys,$=c.useRef(new Set),W=c.useState(new Map),T=Wa(W,2),j=T[0],k=T[1];c.useEffect(()=>{$.current=new Set,k(new Map)},[y]),c.useEffect(function(){if(!(y==null||S==null||_==null||_==="all")){var q=[..._].filter(K=>!$.current.has(String(K)));if(q.length!==0){var D=!1,N=y.findColumn(S.name),H=A.getValueType(N.type);return Ua(function*(){try{var K=[];if(yield Promise.all(q.map(function(){var L=Ua(function*(F){if(!D){var U=yield y.seekRow(0,N,H,F);U!==-1&&K.push(U)}});return function(F){return L.apply(this,arguments)}}())),K.sort((L,F)=>L-F),D||K.length===0)return;var Z=C.RangeSet.ofItems(K),ne=yield y.createSnapshot({rows:Z,columns:R});if(D)return;var ue=new Map;ne.rows.forEach((L,F)=>{var U=K[F],z=w(L);ue.set(U,{key:sr(U),item:z})}),D||(q.forEach(L=>$.current.add(String(L))),k(L=>{var F=new Map(L);return ue.forEach((U,z)=>F.set(z,U)),F}))}catch(L){LO.error("Error loading labels for selected keys",L)}})(),()=>{D=!0}}}},[_,y,S,A,C,w,R]);var M=c.useRef(new Map),G=c.useState(new Map),Y=Wa(G,2),ie=Y[0],Se=Y[1],oe=c.useMemo(()=>j.size===0?x.items:x.items.map((Q,q)=>{if(Q.item==null){var D=j.get(q);if(D!=null)return D}return Q}),[x.items,j]);c.useEffect(function(){var q,D=(q=u.selectedKeys)!==null&&q!==void 0?q:u.defaultSelectedKeys,N;D instanceof Array?N=new Set(D.map(String)):D==="all"?N=null:N=new Set;var H=!1;oe.forEach(K=>{if(K.item!=null){var Z=String(K.item.key),ne=K.item.textValue;ne!=null&&(N==null||N.has(Z))&&M.current.get(Z)!==ne&&(M.current.set(Z,ne),H=!0)}}),H&&Se(new Map(M.current))},[oe,u.selectedKeys,u.defaultSelectedKeys]);var X=c.useCallback(Q=>{var q;(q=s??l)===null||q===void 0||q(Q)},[s,l]);return Fa(Fa({},u),{},{normalizedItems:oe,selectedItemLabels:ie,showItemIcons:a!=null,onChange:X,onScroll:P,onSearchTextChange:I})}var FO=["onInputChange","onSearchTextChange"];function Ka(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ha(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ka(Object(n),!0).forEach(function(r){NO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ka(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NO(e,t,n){return(t=UO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UO(e){var t=WO(e,"string");return typeof t=="symbol"?t:t+""}function WO(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function BO(e,t){if(e==null)return{};var n,r,i=KO(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function KO(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function HO(e){var t=mg(e),n=t.onInputChange,r=t.onSearchTextChange,i=BO(t,FO),a=c.useRef(!1),o=c.useRef(""),s=c.useCallback(u=>{n==null||n(u),a.current?r(u):(r(""),o.current=u)},[n,r]),l=c.useCallback((u,f)=>{var p;(p=i.onOpenChange)===null||p===void 0||p.call(i,u),u?f==="input"&&r(o.current):r(""),a.current=u},[r,i]);return d.jsx(wl,Ha(Ha({},i),{},{onInputChange:s,onOpenChange:l}))}var VO=["table","keyColumn","labelColumn","iconColumn","settings"];function Va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ga(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Va(Object(n),!0).forEach(function(r){GO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Va(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function GO(e,t,n){return(t=YO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YO(e){var t=zO(e,"string");return typeof t=="symbol"?t:t+""}function zO(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qO(e,t){if(e==null)return{};var n,r,i=XO(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function XO(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function QO(e){var t,n=e.table,r=e.keyColumn,i=e.labelColumn,a=e.iconColumn,o=e.settings,s=qO(e,VO),l=ur(),u=l.scale,f=Qs[(t=s.density)!==null&&t!==void 0?t:"regular"][u],p=gr(o),h=p.getFormattedString,m=el({table:n,iconColumnName:a,keyColumnName:r,labelColumnName:i,formatValue:h}),v=br({reuseItemsOnTableResize:!0,table:n,itemHeight:f,deserializeRow:m}),g=v.viewportData,y=v.onScroll;return d.jsx(Ol,Ga(Ga({},s),{},{normalizedItems:g.items,showItemIcons:a!=null,onScroll:y}))}var JO=["onInputChange","onOpenChange","onSearchTextChange"];function Ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function za(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ya(Object(n),!0).forEach(function(r){ZO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ya(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZO(e,t,n){return(t=ex(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ex(e){var t=tx(e,"string");return typeof t=="symbol"?t:t+""}function tx(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nx(e,t){if(e==null)return{};var n,r,i=rx(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function rx(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ix(e){var t=MO(e),n=t.onInputChange,r=t.onOpenChange,i=t.onSearchTextChange,a=nx(t,JO),o=c.useRef(!1),s=c.useRef(""),l=c.useCallback(f=>{n==null||n(f),o.current?i(f):(i(""),s.current=f)},[n,i]),u=c.useCallback(f=>{r==null||r(f),f?s.current!==""&&i(s.current):i(""),o.current=f},[i,r]);return d.jsx(Cl,za(za({},a),{},{onInputChange:l,onOpenChange:u}))}function ax(e,t){return ux(e)||lx(e,t)||sx(e,t)||ox()}function ox(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
33
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sx(e,t){if(e){if(typeof e=="string")return qa(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qa(e,t):void 0}}function qa(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lx(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function ux(e){if(Array.isArray(e))return e}function cx(e){return typeof e=="object"&&e!=null&&"equals"in e&&typeof e.equals=="function"}function dx(e){return"".concat(e)}function fx(e){var t=e.column,n=e.table,r=e.filter,i=r===void 0?os:r,a=e.onChange,o=e.selectedValue,s=e.disabled,l=e.className,u=e.formatValue,f=u===void 0?dx:u,p=e.maxSize,h=p===void 0?1e3:p,m=je(),v=c.useState([]),g=ax(v,2),y=g[0],S=g[1];c.useEffect(()=>{if(n==null){S([]);return}var E=t??n.columns[0];n.applyFilter(i);var P=n.setViewport(0,h,[E]);return P.addEventListener(m.Table.EVENT_UPDATED,I=>{var x=I.detail,C=x.rows.map(A=>{var R;return(R=A.get(E))!==null&&R!==void 0?R:null});S(C)}),()=>{P.close()}},[t,m,i,h,n]);var b=c.useMemo(()=>o===void 0?[void 0,...y]:y,[o,y]),O=c.useMemo(()=>b.findIndex(E=>E===o||cx(E)&&E.equals(o)),[o,b]),w=c.useCallback(E=>{var P=parseInt(E,10);a(b[P])},[a,b]);return d.jsx(us,{className:l,value:O,onChange:w,disabled:s,children:b.map((E,P)=>d.jsx(Js,{value:P,children:f(E)},"".concat(P)))})}var Xa=re.module("useBroadcastChannel");function Er(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ge,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zl,n=c.useMemo(()=>new BroadcastChannel(t),[t]);return c.useEffect(()=>()=>{n.close()},[n]),c.useEffect(()=>{function r(i){var a=i.data;if(!Vt(a)){Xa.debug("Ignoring non-deephaven message",a);return}Xa.debug("event received",a),e(i)}return n.addEventListener("message",r),()=>{n.removeEventListener("message",r)}},[n,e]),n}function _r(e,t){var n=c.useCallback(r=>{Xl(r.data)?e==null||e(r.data):Ql(r.data)&&(t==null||t(r.data))},[e,t]);Er(n)}function px(e,t){return gx(e)||yx(e,t)||mx(e,t)||hx()}function hx(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
34
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mx(e,t){if(e){if(typeof e=="string")return Qa(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qa(e,t):void 0}}function Qa(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yx(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function gx(e){if(Array.isArray(e))return e}function vx(e,t,n,r){var i=we(),a=c.useState(""),o=px(a,2),s=o[0],l=o[1],u=gt(s,n),f=u.value,p=c.useCallback(y=>{l(y.trim())},[]),h=Ne(i.doesColumnValueExist,[e,t,f,r]),m=h.data,v=h.isLoading,g=v||s!==f?null:m;return{valueTrimmed:s,valueTrimmedDebounced:f,valueExists:g,trimAndUpdateValue:p}}var Ja=re.module("useDebouncedViewportSearch"),bx=200;function Sx(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:bx,r=we(),i=e.table,a=e.applyFiltersAndRefresh,o=c.useMemo(()=>ot(s=>{if(Ja.debug("Applying debounced searchText '".concat(s,"'")),i!=null){var l=s.trim();if(l===""){a([]);return}var u=i.findColumn(t),f=r.makeFilterValue(u.type,l),p=[u.filter().contains(f)];a(p)}},n),[a,t,n,i,r]);return c.useEffect(()=>()=>{Ja.debug("Cancelling debounced search function"),o.cancel()},[o]),o}var ru=300;function Px(e){var t=e.viewportData,n=e.columnName,r=e.shouldSelectAllOnNoSelection,i=e.mapItemToValue,a=we(),o=hl(t,i,sr),s=gt(o,ru),l=s.value,u=fl(l,ll);return c.useMemo(()=>lr(a,n,u.selection,r,u.isInverted),[n,u,r,a])}function wx(e,t,n,r){var i=c.useRef("");return i.current=n,c.useMemo(()=>{var a=e.length>0&&e[0].item==null;return!a&&r!=null&&(i.current===""||r.toLowerCase().includes(i.current.toLowerCase()))?[{key:r,item:{[t]:r}},...e]:e},[r,t,e])}function Za(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Ox(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){Za(a,r,i,o,s,"next",l)}function s(l){Za(a,r,i,o,s,"throw",l)}o(void 0)})}}function xx(e){var t=e.table,n=e.columnName,r=e.defaultValue,i=e.itemHeight,a=e.topOffset,o=a===void 0?0:a,s=e.value;return c.useCallback(Ox(function*(){if(t==null||s===""||s===r)return o;var l=t.findColumn(n),u=yield t.seekRow(0,l,"String",s),f=r==null?0:1;return(u+f)*i+o}),[n,r,i,t,o,s])}function Tx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"or",n=we(),r=c.useMemo(()=>Ls(n),[n]);return c.useMemo(()=>or(e,r,t),[e,t,r])}function kt(e,t){return Ix(e)||_x(e,t)||Ex(e,t)||Cx()}function Cx(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
35
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ex(e,t){if(e){if(typeof e=="string")return eo(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eo(e,t):void 0}}function eo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _x(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Ix(e){if(Array.isArray(e))return e}function jx(e){var t=e.maybeTable,n=e.columnName,r=e.mapItemToValue,i=e.filterConditionFactories,a=i===void 0?[]:i,o=e.trimSearchText,s=o===void 0?!1:o,l=e.timeZone,u=yr(),f=u.itemHeight,p=we(),h=c.useState(""),m=kt(h,2),v=m[0],g=m[1],y=c.useState(""),S=kt(y,2),b=S[0],O=S[1],w=c.useCallback(L=>{O(s?L.trim():L)},[s]),E=c.useMemo(()=>s?v.trim():v,[v,s]),P=c.useState(null),I=kt(P,2),x=I[0],C=I[1],A=c.useState(()=>new Map),R=kt(A,2),_=R[0],$=R[1],W=Ne(p.doesColumnValueExist,[t,n,b,!1]),T=W.data,j=W.isLoading,k=gt(b,Qr),M=k.isDebouncing,G=M||j?null:T,Y=c.useMemo(()=>Ms(p,n,b,l),[b,n,p,l]),ie=c.useMemo(()=>lr(p,n,new Set(_.keys()),!1,!0),[n,_,p]),Se=Ne(p.createDistinctSortedColumnTable,[t,n,"asc",...a]),oe=Se.data;vr(oe);var X=br({table:oe,itemHeight:f,viewportSize:yg,viewportPadding:gg}),Q=E.length>0&&X.size===0,q=_.has(E),D=lt(w,Qr),N=c.useCallback(L=>{g(L),D(L)},[D]),H=lt(C,0),K=c.useCallback(L=>{if(g(""),w(""),C(L),H(null),L!=null){var F=X.viewportData.findItem(L);if(F!=null){var U=r(F);$(z=>{var de=new Map(z);return de.set(U,{value:U}),de})}}},[w,H,X.viewportData,r]),Z=c.useCallback(L=>{$(F=>{if(L.size===0)return F;var U=new Map(F);for(var z of L)U.set(z,{value:z});return U})},[]),ne=c.useCallback(L=>{$(F=>{if(L==="all")return new Map;var U=new Map(F);for(var z of L)U.delete(z);return U})},[]),ue=nl(X.table,Y,ie);return rl(X,ue),c.useMemo(()=>({list:X,hasSearchTextWithZeroResults:Q,searchText:v,searchTextExists:G,searchTextIsInSelectedValues:q,selectedKey:x,selectedValueMap:_,onSearchTextChange:N,onSelectKey:K,onAddValues:Z,onRemoveValues:ne}),[Q,X,Z,ne,N,K,v,G,q,x,_])}function to(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Ax(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){to(a,r,i,o,s,"next",l)}function s(l){to(a,r,i,o,s,"throw",l)}o(void 0)})}}function $x(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=c.useCallback(Ax(function*(){var f;return(f=e==null?void 0:e.selectDistinct(e.findColumns(n)))!==null&&f!==void 0?f:null}),[e,...n]),a=Ne(i,[]),o=a.data,s=a.error,l=a.isError,u=a.isLoading;return c.useEffect(()=>()=>{o==null||o.close()},[o]),{distinctTable:o,error:s,isError:l,isLoading:u}}function kx(e,t){var n=we(),r=c.useMemo(()=>Fs(n,e),[e,n]);return c.useMemo(()=>or(t,r),[t,r])}function Rx(e,t,n){var r=we();return c.useMemo(()=>Ns(r,e,t,n),[e,n,r,t])}const Dx=Object.freeze(Object.defineProperty({__proto__:null,ComboBox:HO,DEBOUNCE_MS:ru,ListView:QO,MultiSelect:ix,Picker:vg,TableDropdown:fx,TableInput:TO,makeApiContextWrapper:Jw,useBroadcastChannel:Er,useBroadcastLoginListener:_r,useCheckIfExistsValue:vx,useDebouncedViewportSearch:Sx,useDebouncedViewportSelectionFilter:Px,useFilterConditionFactories:nl,useFilteredItemsWithDefaultValue:wx,useFormatter:gr,useGetItemIndexByValue:bg,useGetItemPosition:xx,useInitializeViewportData:Sg,useNotNullOrEmptyFilter:Tx,usePickerWithSelectedValues:jx,useSearchableViewportData:tl,useSelectDistinctTable:$x,useSetPaddedViewportCallback:Pg,useShowOnlyEmptyFilter:kx,useTable:tu,useTableClose:wg,useTableColumn:nu,useTableListener:Dt,useTableSize:Og,useTableUtils:we,useValueFilter:Rx,useViewportData:br,useViewportFilter:rl,useWidgetClose:vr},Symbol.toStringTag,{value:"Module"}));function iu(e){var t=bl(),n=t.isEnabled,r=t.isPending,i=t.themeData;return c.useMemo(()=>n?r?null:i?[i]:[]:e==null?null:ms(e),[n,r,i,e])}function Lx(e){var t=e.dashboardProps,n=e.componentName,r=e.component,i=e.supportedTypes,a=e.hydrate,o=e.dehydrate,s=t.id,l=t.layout,u=t.registerComponent,f=c.useCallback(p=>{var h=p.dragEvent,m=p.panelId,v=m===void 0?Vn():m,g=p.widget,y=g.name,S=g.type,b=S!=null&&(Array.isArray(i)&&i.includes(S)||S===i);if(b){var O={localDashboardId:s,metadata:g};a!=null&&(O=a(O,s));var w={type:"react-component",component:n,props:O,title:y??void 0,id:v},E=l.root;ys.openComponent({root:E,config:w,dragEvent:h})}},[n,a,s,l,i]);Us(u,r,a,o),gs(l.eventHub,f)}function Mx(e,t){var n=yd(),r=gd(a=>vs(a,e,t)),i=c.useCallback(a=>n(bs(e,t,a)),[e,t,n]);return[r,i]}const Fx=Object.freeze(Object.defineProperty({__proto__:null,BasePanel:zr,CLOSE_DASHBOARD:xp,CREATE_DASHBOARD:Tp,DEFAULT_DASHBOARD_ID:Cp,DH_ID_PROP:Ep,Dashboard:Gr,DashboardIdContext:_p,DashboardLayout:Ip,DashboardUtils:jp,GLPropTypes:Ap,LayoutManagerContext:$p,LayoutUtils:ys,LazyDashboard:Nf,Panel:zr,PanelErrorBoundary:kp,PanelEvent:Rp,PanelIdContext:Dp,PanelManager:Lp,PersistentStateContext:Mp,PersistentStateProvider:Ss,SET_DASHBOARD_DATA:Fp,TabEvent:Np,assertIsDashboardPluginProps:Nm,canHaveRef:ds,default:Gr,dehydrate:Up,emitCloseDashboard:Wp,emitCreateDashboard:Bp,emitCycleToNextStack:Kp,emitCycleToNextTab:Hp,emitCycleToPreviousStack:Vp,emitCycleToPreviousTab:Gp,emitPanelClose:Yp,emitPanelOpen:zp,getAllDashboardsData:qp,getClosedPanelsForDashboard:Xp,getDashboardData:Qp,getOpenedPanelMapForDashboard:Jp,getPluginDataForDashboard:vs,getPluginDataMapForDashboard:Zp,hydrate:eh,isDashboardPluginProps:Um,isWrappedComponent:fs,listenForCloseDashboard:th,listenForCreateDashboard:nh,listenForCycleToNextStack:rh,listenForCycleToNextTab:ih,listenForCycleToPreviousStack:ah,listenForCycleToPreviousTab:oh,listenForPanelClose:sh,listenForPanelOpen:lh,reducers:uh,setDashboardData:ch,setDashboardPluginData:bs,updateDashboardData:dh,useAppDispatch:fh,useAppSelector:Ps,useAppStore:ph,useCloseDashboardListener:hh,useCreateDashboardListener:mh,useCycleToNextStackListener:yh,useCycleToNextTabListener:gh,useCycleToPreviousStackListener:vh,useCycleToPreviousTabListener:bh,useDashboardId:Sh,useDashboardPanel:Lx,useDashboardPluginData:Mx,useDhId:Ph,useLayoutManager:Wm,useListener:wh,usePanelCloseListener:Oh,usePanelId:xh,usePanelOpenListener:gs,usePanelRegistration:Us,usePersistentState:Ws},Symbol.toStringTag,{value:"Module"}));function Nx(){var e=ws(),t=c.useMemo(()=>Os(e),[e]);return t}const Ux=Object.freeze(Object.defineProperty({__proto__:null,PersistentStateProvider:Ss,PluginType:xs,PluginsContext:Zt,WidgetView:Th,createChainedComponent:Ch,createChainedPanelComponent:Eh,createPanelMiddleware:_h,createWidgetMiddleware:Ih,getDashboardPlugins:Uf,getIconForPlugin:jh,getPluginModuleValue:Ah,getPluginsElementMap:Os,getThemeDataFromPlugins:ms,getWidgetDashboardPlugin:$h,groupByDependencyLevel:Ts,isAuthPlugin:Cs,isDashboardPlugin:kh,isElementPlugin:Rh,isLegacyAuthPlugin:_n,isLegacyDashboardPlugin:Dh,isLegacyPlugin:Lh,isLegacyTablePlugin:Mh,isMultiPlugin:Es,isPlugin:Fh,isTablePlugin:Nh,isThemePlugin:Uh,isWidgetDashboardPlugin:Wh,isWidgetMiddlewarePlugin:Bh,isWidgetPlugin:Kh,pluginSupportsType:Hh,pluginSupportsTypeAsDashboard:Vh,processLoadedModule:_s,registerPlugin:Gh,useCustomThemes:iu,useDashboardPlugins:Wf,usePersistentState:Ws,usePlugins:ws,usePluginsElementMap:Nx},Symbol.toStringTag,{value:"Module"}));function Wx(e){if(e==null)return!1;var t=e;return t.Component!==void 0&&typeof t.isAvailable=="function"}var au="io.deephaven.auth.AnonymousAuthenticationHandler",Bx="io.deephaven.authentication.psk.PskAuthenticationHandler";function no(e,t,n){return(t=Kx(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kx(e){var t=Hx(e,"string");return typeof t=="symbol"?t:t+""}function Hx(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class ou extends Error{constructor(){super(...arguments),no(this,"name","AuthenticationError"),no(this,"isAuthenticationError",!0)}}function ro(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Vx(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){ro(a,r,i,o,s,"next",l)}function s(l){ro(a,r,i,o,s,"throw",l)}o(void 0)})}}function io(e,t){return qx(e)||zx(e,t)||Yx(e,t)||Gx()}function Gx(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
36
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yx(e,t){if(e){if(typeof e=="string")return ao(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ao(e,t):void 0}}function ao(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function zx(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function qx(e){if(Array.isArray(e))return e}var oo=re.module("AuthPluginBase");function Ir(e){var t=e.children,n=e.getLoginOptions,r=ht(),i=c.useState(),a=io(i,2),o=a[0],s=a[1],l=c.useState(!1),u=io(l,2),f=u[0],p=u[1];return c.useEffect(()=>{var h=!1;function m(){if(h)throw new Is("Login canceled.")}function v(){return g.apply(this,arguments)}function g(){return g=Vx(function*(){try{var y=yield n();m(),oo.info("Logging in..."),yield r.login(y),m(),p(!0)}catch(O){if(!h){var S;oo.error("Unable to login:",O);var b=(S=ut(O))!==null&&S!==void 0?S:"Unable to login. Verify credentials.";s(new ou(b)),p(!1)}}}),g.apply(this,arguments)}return v(),()=>{h=!0}},[r,n]),f?d.jsx(d.Fragment,{children:t}):d.jsx(Ue,{"data-testid":"auth-base-loading",isLoading:o==null,isLoaded:!1,errorMessage:ut(o)})}var Xx={canLogout:!1};function Qx(e){var t=e.children,n=je(),r=c.useCallback(()=>({type:n.CoreClient.LOGIN_TYPE_ANONYMOUS}),[n]);return d.jsx(Ir,{getLoginOptions:r,children:d.jsx(Gt.Provider,{value:Xx,children:t})})}var su={Component:Qx,isAvailable:e=>e.includes(au)};function so(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Jx(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){so(a,r,i,o,s,"next",l)}function s(l){so(a,r,i,o,s,"throw",l)}o(void 0)})}}var Zx=re.module("AuthPluginParent"),e1={canLogout:!1};function t1(e){return e!=null&&typeof e.type=="string"}function n1(){return Mn.apply(this,arguments)}function Mn(){return Mn=Jx(function*(){Zx.info("Logging in by delegating to parent window...");var e=yield er(Gl);if(!t1(e))throw new Error("Unexpected login options response: ".concat(e));return e}),Mn.apply(this,arguments)}function r1(){var e;return(e=new URLSearchParams(window.location.search).get("authProvider"))!==null&&e!==void 0?e:""}function i1(e){var t=e.children;return d.jsx(Ir,{getLoginOptions:n1,children:d.jsx(Gt.Provider,{value:e1,children:t})})}var lu={Component:i1,isAvailable:()=>qn()!=null&&r1()==="parent"};function uu(e){var t=e.children,n=e.errorMessage,r=e.isLoggingIn,i=r===void 0?!1:r,a=e.onSubmit;return d.jsxs("form",{className:"login-form",onSubmit:o=>{o.preventDefault(),o.stopPropagation(),a==null||a(o)},children:[d.jsx("div",{className:"flex-spacer"}),d.jsxs("div",{className:"flex-wrapper",children:[d.jsx("fieldset",{disabled:i,className:"container-fluid",children:t}),d.jsx("div",{className:"form-group d-flex justify-content-end align-items-center mb-0",children:d.jsxs("button",{type:"submit",className:V("btn btn-primary",{"btn-spinner":i},{"btn-cancelable":i}),"data-testid":"btn-login",children:[i&&d.jsxs("span",{children:[d.jsx(Ht,{className:"mr-2 loading-spinner-vertical-align"}),d.jsx("span",{className:"btn-normal-content",children:"Logging in"}),d.jsx("span",{className:"btn-hover-content",children:"Cancel"})]}),!i&&"Login"]})})]}),d.jsx("div",{className:"flex-spacer",children:n!=null&&d.jsx("p",{className:"error-message mb-0",role:"alert",children:"".concat(n)})})]})}function cu(e){var t=e.children,n=e.logoPath,r=n===void 0?"./logo.png":n;return d.jsxs("div",{className:"login-container",children:[d.jsx(Ul,{}),d.jsxs("div",{className:"login-box",children:[d.jsx("div",{className:"logo",children:d.jsx("img",{src:r,alt:"Deephaven Data Labs"})}),t,d.jsxs("p",{className:"footer",children:["© 2016-",new Date().getFullYear()," Deephaven Data Labs LLC. Patent Pending."]})]})]})}function lo(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function yn(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){lo(a,r,i,o,s,"next",l)}function s(l){lo(a,r,i,o,s,"throw",l)}o(void 0)})}}function tt(e,t){return l1(e)||s1(e,t)||o1(e,t)||a1()}function a1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
37
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o1(e,t){if(e){if(typeof e=="string")return uo(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?uo(e,t):void 0}}function uo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s1(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function l1(e){if(Array.isArray(e))return e}var Fn="io.deephaven.authentication.psk.PskAuthenticationHandler",du="psk",Nn="io.deephaven.web.client.auth.psk.token",Ve=re.module("AuthPluginPsk");function u1(){return new URLSearchParams(window.location.search).get(du)}function c1(){Ve.debug2("clearWindowToken");var e=new URL(window.location.href);e.searchParams.delete(du),window.history.replaceState(null,"",e.href)}function co(){var e;return(e=xn.get(Nn))!==null&&e!==void 0?e:null}function gn(e){Ve.debug2("Storing token in cookie",e),e!=null?xn.set(Nn,e,{secure:!0,sameSite:"strict"}):xn.remove(Nn)}function d1(e){var t=e.children,n=e.logoPath,r=ht(),i=c.useRef(null),a=c.useRef(null),o=c.useState(),s=tt(o,2),l=s[0],u=s[1],f=c.useState(!1),p=tt(f,2),h=p[0],m=p[1],v=c.useState(!1),g=tt(v,2),y=g[0],S=g[1],b=c.useState(!1),O=tt(b,2),w=O[0],E=O[1],P=c.useState(""),I=tt(P,2),x=I[0],C=I[1],A=c.useCallback(function(){var T=yn(function*(j){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;Ve.info("Logging in..."),E(!0);var M=null;try{if(M=r.login({type:Fn,token:j}),a.current=M,yield M,Ve.info("Logged in successfully"),a.current!==M)return;gn(j),S(!0)}catch(ie){if(a.current!==M)return;if(m(!0),k){var G;Ve.error("Unable to login",ie);var Y=(G=ut(ie))!==null&&G!==void 0?G:"Unable to login: Verify credentials.";u(new ou(Y))}}E(!1)});return function(j){return T.apply(this,arguments)}}(),[r]),R=c.useCallback(()=>{a.current=null,E(!1)},[]),_=c.useCallback(yn(function*(){Ve.debug("onLogin");var T=co();y||w||T==null||A(T,!1)}),[y,w,A]),$=c.useCallback(()=>{gn(null)},[]);_r(_,$),c.useEffect(()=>{var T=!1;function j(){return k.apply(this,arguments)}function k(){return k=yn(function*(){var M,G=(M=u1())!==null&&M!==void 0?M:co();if(c1(),G==null){m(!0);return}E(!0);try{yield r.login({type:Fn,token:G}),T||(gn(G),S(!0),E(!1))}catch{T||(m(!0),E(!1))}}),k.apply(this,arguments)}return j(),()=>{T=!0}},[r]);var W=c.useCallback(()=>{w?R():A(x)},[R,w,A,x]);return c.useEffect(function(){var j;(j=i.current)===null||j===void 0||j.focus()},[i,h]),d.jsxs(d.Fragment,{children:[y&&t,h&&d.jsx(rr,{in:!y,mountOnEnter:!0,unmountOnExit:!0,children:d.jsx(cu,{logoPath:n,children:d.jsx(uu,{errorMessage:ut(l),isLoggingIn:w,onSubmit:W,children:d.jsxs("div",{className:"form-group",children:[d.jsx("label",{htmlFor:"auth-psk-token-input",children:"Token"}),d.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:x,onChange:T=>{u(void 0),C(T.target.value)}})]})})})}),d.jsx(Ue,{"data-testid":"auth-psk-loading",isLoaded:y||h,isLoading:!y&&!h})]})}var fu={Component:d1,isAvailable:e=>e.includes(Fn)};function fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fo(Object(n),!0).forEach(function(r){f1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fo(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function f1(e,t,n){return(t=p1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p1(e){var t=h1(e,"string");return typeof t=="symbol"?t:t+""}function h1(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var m1=re.module("UserUtils");function pu(e,t){return e.get("internal.webClient.appInit.".concat(t))}function hu(e){var t,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(y){return pu(e,y)}function l(y,S){var b=s(y);return b==="true"?!0:b==="false"?!1:(b!==void 0&&m1.warn("Unexpected value for ".concat(y,": ").concat(b)),S)}var u=(t=s("name"))!==null&&t!==void 0?t:"",f=(n=s("operateAs"))!==null&&n!==void 0?n:u,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),v=l("canUsePanels",!0),g=l("canLogout",!0);return vn(vn({name:u,operateAs:f,groups:p},a),{},{permissions:vn({canUsePanels:v,canCopy:h,canDownloadCsv:m,canLogout:g},o)})}const y1=Object.freeze(Object.defineProperty({__proto__:null,AUTH_HANDLER_TYPE_ANONYMOUS:au,AUTH_HANDLER_TYPE_PSK:Bx,AuthPluginAnonymous:su,AuthPluginBase:Ir,AuthPluginParent:lu,AuthPluginPsk:fu,Login:cu,LoginForm:uu,UserContext:ts,UserOverrideContext:ns,UserPermissionsOverrideContext:Gt,getAppInitValue:pu,getUserFromConfig:hu,isAuthPlugin:Wx},Symbol.toStringTag,{value:"Module"}));function Ye(e,t,n){return(t=g1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g1(e){var t=v1(e,"string");return typeof t=="symbol"?t:t+""}function v1(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class ee extends Bs{static get theme(){return ee._theme==null&&(ee._theme=js()),ee._theme}static makeRandomSeries(t){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"),u=0;u<r;u+=1){var f=new Date(l.getFullYear(),l.getMonth(),l.getDate()+u-r);i.push("".concat(f.getFullYear(),"-").concat(f.getMonth()+1,"-").concat(f.getDate()));var p=(Math.sin(u/r*t)*r/3+Math.cos(u*.2)*r/6+Math.sin(u*.5)*r/10+ee.random()*r/5+u*ee.smoothing)*n;p=Math.round(p*100)/100,a.push(p),s.push(40+u*ee.smoothing),o.push(Math.sin(u/r*t)*r/3+ee.random()*r/10+u*ee.smoothing)}return{x:i,y:a,s:o,l:s}}static makeScatter(t){return{name:"SCTR",x:t.x,y:t.y,type:"scatter",mode:"markers",hoverinfo:"skip",marker:{size:5}}}static makeArea(t){return{name:"AREA",x:t.x,y:t.s,type:"scatter",mode:"line",fill:"tozeroy",hoverinfo:"all",line:{width:3}}}static makeTrendline(t){return{name:"Trendline <br>R<sup>2</sup> = 0.91",x:t.x,y:t.l,type:"scatter",mode:"line",hoverinfo:"skip",line:{width:3,dash:"dot"}}}static makeErrorBand(t){for(var n=[],r=[],i=0;i<t.y.length;i+=1){var a=t.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:t.x.concat(t.x.slice().reverse()),y:o,type:"scatter",mode:"line",hoverinfo:"skip",fill:"toself",line:{width:0,color:ee.theme.error_band_line_color,shape:"spline"}}}static makeLine(t){return{name:"LINE",x:t.x,y:t.y,type:"scatter",mode:"line",hoverinfo:"x+y+text+name",line:{width:3}}}static makeRandomData(){var t=ee.makeRandomSeries(6),n=ee.makeArea(t),r=ee.makeTrendline(t),i=ee.makeRandomSeries(2),a=ee.makeLine(i),o=ee.makeErrorBand(i);return[n,r,a,o]}static makeDefaultLayout(t){var n={template:new Ks(t).makeDefaultTemplate(ee.theme)};return n.title={text:"Chart"},n.xaxis={title:{text:"Datestamp"}},n.yaxis={title:{text:"Price"}},n}constructor(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.data,i=r===void 0?ee.makeRandomData():r,a=n.layout,o=a===void 0?ee.makeDefaultLayout(t):a,s=n.filterFields,l=s===void 0?[]:s;super(t),Ye(this,"data",void 0),Ye(this,"filterFields",void 0),Ye(this,"layout",void 0),this.data=i,this.layout=o,this.filterFields=l}getData(){return this.data}getLayout(){return this.layout}getFilterColumnMap(){for(var t=new Map,n=0;n<this.filterFields.length;n+=1){var r=this.filterFields[n],i="java.lang.String";t.set(r,{name:r,type:i})}return t}isFilterRequired(){return this.filterFields.length>0}setFilter(){this.fireUpdate(this.data)}}Ye(ee,"random",Math.random.bind(Math));Ye(ee,"smoothing",1.5);Ye(ee,"_theme",void 0);const b1=Object.freeze(Object.defineProperty({__proto__:null,Chart:Bm,ChartModel:Bs,ChartModelFactory:Km,ChartThemeContext:Yh,ChartThemeProvider:As,ChartUtils:Ks,DownsamplingError:gy,FigureChartModel:Hm,MockChartModel:ee,Plot:zh,defaultChartTheme:js,isFigureChartModel:Vm,isWebGLSupported:Gm,useChartTheme:qh},Symbol.toStringTag,{value:"Module"}));function mu(e){var t=e.children,n=Yt(),r=n.activeThemes;return c.useEffect(function(){r!=null&&$s.initTheme()},[r]),d.jsx(d.Fragment,{children:t})}var S1={$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).
1
+ import{r as c,J,P as Qu,D as d,Q as Ju,S as Kt,T as Zu,U as ec,V as tc,W as nc,C as zn,X as rc,G as H,Y as qn,Z as Ro,a0 as ic,a1 as Do,a2 as ac,a3 as oc,a4 as sc,a5 as lc,a6 as Yr,a7 as uc,a8 as cc,a9 as Lo,aa as dc,ab as fc,ac as pc,ad as hc,ae as mc,af as yc,ag as xn,ah as gc,ai as Mo,aj as Vt,ak as ft,I as ce,al as Fo,am as No,an as Xn,ao as Uo,ap as Wo,aq as Tn,ar as vc,as as ot,at as Bo,H as Ko,au as Vo,av as bc,aw as Sc,ax as Pc,ay as Ho,az as wc,aA as Oc,aB as xc,aC as Tc,aD as Cc,aE as Ec,aF as _c,aG as Ic,aH as jc,aI as Ac,aJ as $c,aK as kc,aL as Rc,aM as Dc,aN as Lc,aO as Mc,aP as Fc,aQ as Nc,aR as Uc,aS as Wc,aT as Bc,aU as Kc,aV as Vc,aW as Hc,aX as Go,aY as Gc,aZ as Yc,a_ as zc,a$ as qc,b0 as Xc,b1 as Qc,b2 as Jc,b3 as Zc,b4 as ed,b5 as td,b6 as nd,b7 as rd,b8 as id,b9 as ad,ba as od,bb as sd,bc as ld,bd as ud,be as cd,bf as dd,bg as fd,bh as pd,O as hd,bi as md,bj as yd,bk as gd,bl as vd,bm as bd,bn as Sd,L as Pd,N as wd,bo as Cn,bp as Od,bq as xd,br as zr,bs as Td,bt as Cd,bu as Ed,bv as _d,bw as Id,bx as jd,by as Ad,bz as $d,R as kd,bA as Rd,bB as Dd,bC as Yo,bD as Ld,bE as Md}from"./vendor-Iv4yoqlt.js";import{i as zo,b as Qn,p as qo,r as Xo,a as ne,M as Qo,c as Jo,g as Jn,L as Ue,v as Zo,d as Zn,e as er,f as Ht,h as Fd,j as Nd,k as Ud,l as Wd,m as Bd,n as tr,o as Kd,q as Vd,s as Hd,t as es,u as Gt,w as Gd,T as En,C as Yd,D as zd,x as qd,y as Xd,z as Qd,A as Jd,B as Zd,E as ef,F as tf,G as ts,N as nf,P as rf,S as af,H as of,I as sf,J as lf,K as uf,W as cf,O as df,Q as ff,R as pf,U as hf,V as mf,X as yf,Y as gf,Z as vf,_ as bf,$ as Sf,a0 as Pf,a1 as wf,a2 as Of,a3 as xf,a4 as Tf,a5 as Cf,a6 as Ef,a7 as _f,a8 as If,a9 as jf,aa as Af,ab as $f,ac as nr,ad as Yt,ae as rr,af as kf,ag as ns,ah as Rf,ai as Df,aj as Lf,ak as Mf,al as Ff,am as Nf,an as Uf}from"./index-DK1KaCOb.js";import{F as Wf,f as Bf,e as Kf,C as rs,g as Vf,a as pt,D as qr,h as Hf,i as Gf,d as Yf,U as zt,j as is,k as as,l as zf,c as qf,S as Xf}from"./LocalWorkspaceStorage-DblP67AR.js";import{A as JT,m as ZT,n as eC,G as tC,L as nC,o as rC,p as iC,q as aC,r as oC,s as sC,t as lC,u as uC,b as cC}from"./LocalWorkspaceStorage-DblP67AR.js";import{k as Qf,l as Jf,m as Zf,n as ep,o as st,p as tp,q as np,t as rp,v as ip,w as qt,x as ge,y as Xt,z as ye,T as Qt,A as ht,H as ir,P as Jt,C as Ee,B as Fe,D as os,F as Dt,G as ss,r as De,M as se,K as fe,R as Xr,I as _n,J as le,L as ls,N as In,O as Zt,E as us,Q as ar,U as en,V as cs,W as ap,X as op,c as sp,Y as lp,Z as ds,_ as fs,S as up,$ as cp,a0 as dp,a1 as ps,a2 as fp,a3 as pp,a4 as hp,a5 as hs,a6 as mp,a7 as yp,a8 as gp,a9 as vp,aa as ms,ab as bp,u as je,ac as Sp,ad as Pp,ae as wp,af as Op,ag as xp,ah as ys,g as Tp,ai as Cp,aj as Ep,ak as _p,al as gs,am as Ip,an as vs,ao as bs,ap as Ss,aq as Ps,s as ws,ar as Qr,as as jp,at as Ap,au as $p,av as kp,aw as Rp,ax as Dp,ay as Lp,az as Mp,aA as Fp,aB as Np,aC as Up,aD as Wp,aE as Bp,aF as Kp,aG as Os,aH as Vp,aI as Hp,aJ as Gp,aK as Yp,aL as zp,aM as qp,aN as Xp,aO as Qp,aP as Jp,aQ as Zp,e as eh,b as th,aR as nh,aS as rh,aT as ih,aU as ah,aV as oh,aW as sh,aX as lh,aY as uh,aZ as ch,a_ as dh,a$ as fh,b0 as ph,b1 as hh,b2 as mh,b3 as yh,b4 as gh,b5 as vh,b6 as xs,b7 as bh,b8 as Sh,a as Ph,b9 as wh,ba as Oh,bb as xh,bc as Th,bd as Ch,be as Eh,bf as _h,bg as Ih,bh as jh,bi as Ts,bj as Cs,bk as Es,bl as tn,bm as Ah,bn as $h,bo as kh,bp as Rh,bq as Dh,br as Lh,bs as Mh,bt as Fh,bu as _s,bv as Is,bw as Nh,bx as Uh,by as jn,bz as Wh,bA as Bh,bB as Kh,bC as js,bD as Vh,bE as Hh,bF as Gh,bG as Yh,bH as zh,bI as qh,bJ as Xh,bK as Qh,bL as As,bM as Jh,bN as lt,bO as $s,bP as ks,bQ as Zh,bR as Rs,bS as em,bT as tm,bU as Ds,bV as Ls,bW as Ms,bX as Jr,bY as nm,bZ as rm,b_ as im,b$ as am,c0 as om,c1 as sm,c2 as lm,c3 as um,c4 as cm,c5 as dm,c6 as fm,c7 as pm,c8 as hm,c9 as mm,ca as ym,cb as gm,cc as vm,cd as bm,ce as Sm,cf as Pm,cg as Le,ch as wm,ci as Om}from"./LogPanel-C1_6X3ds.js";import{F as or,C as xm,S as Tm,u as sr,B as Cm,a as Em,D as _m,b as Im,c as lr,d as An,I as jm,e as Am,T as Fs,f as $m,g as ur,h as km,i as cr,j as Ns,k as Rm,l as Us,m as dr,n as Ws,o as Bs,p as Dm,q as Lm,r as Mm,s as Fm,t as Nm,v as Um,w as Wm,x as Bm,y as Km,z as Vm,A as Ks,E as Hm,G as Gm,H as Ym,J as Vs,K as Hs,L as Gs,M as zm,N as qm,O as Xm,P as Qm,Q as Jm,R as Ys,U as Zm,V as ey,W as zs,X as ty,Y as Zr,Z as ny,_ as ry,$ as iy,a0 as ay,a1 as oy,a2 as sy,a3 as ly,a4 as uy,a5 as cy,a6 as dy,a7 as fy,a8 as py,a9 as hy,aa as my,ab as yy,ac as gy,ad as vy,ae as by,af as Sy,ag as Py,ah as wy,ai as qs}from"./index-CgAoPxrH.js";import{D as Oy}from"./DownsamplingError--AAvWHv_.js";import{e as Mt,c as xy,d as Ty,a as Cy,f as Ey,b as _y,g as Iy,h as jy,i as Ay,j as Xs,u as $y,k as ky,l as Ry,m as Dy,n as Ne,o as Ly,p as My,q as at,r as Ft,s as Qs,t as fr,v as mt,w as pr,x as hr,y as mr,z as Nt,A as Js,B as $n,C as yr,D as gr,M as vr,E as Zs,F as Fy,G as kn,H as Ny,I as Uy,J as Wy,K as By,L as Ky,N as Vy,O as Hy,P as Gy,Q as el,R as Yy,S as zy,T as qy,U as Xy,V as tl,W as Qy,X as Jy,Y as Zy,Z as eg,_ as tg,$ as ng,a0 as nl,a1 as rg,a2 as ig,a3 as ag,a4 as og,a5 as sg,a6 as lg,a7 as ug,a8 as cg,a9 as dg,aa as fg,ab as br,ac as pg,ad as hg,ae as mg,af as yg,ag as gg,ah as vg,ai as Lt,aj as Sr,ak as Pr,al as bg,am as Sg,an as rl,ao as il,ap as we,aq as Pg,ar as wr,as as ei,at as al,au as ol,av as wg,aw as Og,ax as xg,ay as Tg,az as Cg,aA as Eg,aB as _g,aC as Ig,aD as jg,aE as Ag,aF as $g,aG as kg,aH as Rg,aI as Dg,aJ as Lg,aK as Mg,aL as Fg,aM as Ng,aN as Ug,aO as Wg,aP as Bg,aQ as Kg,aR as Vg,aS as Hg,aT as Gg,aU as Yg,aV as zg,aW as qg,aX as Xg,aY as Qg,aZ as Jg,a_ as Zg,a$ as sl,b0 as ev,b1 as tv,b2 as nv,b3 as rv,b4 as iv,b5 as av,b6 as ov,b7 as sv,b8 as lv,b9 as uv,ba as cv,bb as dv}from"./IrisGridThemeProvider-PGSqEwKh.js";import{u as nn}from"./useResizeObserver-D66yMPy1.js";import{m as fv,u as ll}from"./useMergeRef-CQuqzBxC.js";import"./helpers-BosuxZz1.js";var pv=["children","keepMounted"];function ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ni(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ti(Object(n),!0).forEach(function(r){hv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ti(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hv(e,t,n){return(t=mv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mv(e){var t=yv(e,"string");return typeof t=="symbol"?t:t+""}function yv(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gv(e,t){if(e==null)return{};var n,r,i=vv(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function vv(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function bv(e){var t=e.children,n=e.keepMounted,r=n===void 0?!1:n,i=gv(e,pv),a=r&&typeof t!="function",o=c.useRef(new Map),s=c.useMemo(()=>{var u=[],f=new Map;return a?(J.Children.forEach(t,h=>{if(!(h==null||h.key==null)){if(typeof h.props.children=="function")throw new Error("DHCTabPanels cannot use keepMounted with an ItemRenderer function as its children");var p=o.current.get(h.key);p==null&&(p=Qu({attributes:{style:"display: contents"}})),f.set(h.key,p),u.push(d.jsx(Ju,{node:p,children:h.props.children},h.key))}}),o.current=f,u):(o.current=f,u)},[t,a]),l=c.useMemo(()=>{var u=[];return a&&J.Children.forEach(t,f=>{if(f==null||f.key==null){u.push(f);return}var h=o.current.get(f.key);if(h==null){u.push(f);return}u.push(d.jsx(Kt,{children:d.jsx(Zu,{node:h})},f.key))}),u},[t,a]);return d.jsxs(d.Fragment,{children:[a&&s,d.jsx(ec,ni(ni({},i),{},{children:a?l:t}))]})}function ri(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Sv(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){ri(a,r,i,o,s,"next",l)}function s(l){ri(a,r,i,o,s,"throw",l)}o(void 0)})}}var Pv=[["api"],["client"],["dashboardData","*","connection"],["dashboardData","*","sessionWrapper"],["dashboardData","*","openedMap"],["layoutStorage"],["storage"]],ul=10;function wv(e){var t=new Map;return function(r,i){var a,o=[...(a=t.get(this))!==null&&a!==void 0?a:[],r];if(i===Object(i)&&t.set(i,[...o]),o.shift(),!Ov(o,e))return i instanceof Map?Array.from(i.entries()):i}}function Ov(e,t){for(var n=function(o){if(e.length===t[o].length&&e.every((s,l)=>t[o][l]==="*"||s===t[o][l]))return{v:!0}},r,i=0;i<t.length;i+=1)if(r=n(i),r)return r.v;return!1}function xv(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ul,i=nc({maximumDepth:r});return(t=i(e,wv(n),2))!==null&&t!==void 0?t:""}function Tv(e){return JSON.stringify(e,null,2)}function Cv(e){var t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),a=String(e.getMinutes()).padStart(2,"0"),o=String(e.getSeconds()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(r,"-").concat(i).concat(a).concat(o)}function Ev(e,t,n){return Rn.apply(this,arguments)}function Rn(){return Rn=Sv(function*(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Pv,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"".concat(Cv(new Date),"_support_logs"),a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:ul,o=new tc,s=o.folder(i);s.file("console.txt",e.getFormattedHistory()),t!=null&&s.file("metadata.json",Tv(t)),n!=null&&s.file("redux.json",xv(n,r,a));var l=yield o.generateAsync({type:"blob"}),u=document.createElement("a");u.href=URL.createObjectURL(l),u.download="".concat(i,".zip"),u.click()}),Rn.apply(this,arguments)}function _v(e,t){return e===0?0:t==="all"||e===t.size?"all":t.size}function cl(e,t){return e===t?!0:e==="all"||t==="all"||e.size!==t.size?!1:[...e.keys()].every(n=>t.has(n))}function dl(e,t){return e.isInverted===t.isInverted&&cl(e.selection,t.selection)}function fl(e,t,n){if(e==="all")return"all";var r=[...e.keys()];return new Set(r.map(i=>{var a=t(i);if(a===void 0)throw new Error("Could not find item with key ".concat(i));return n(a)}))}function pl(e,t,n){var r=e==="all"||e.size>t/2,i=e;return r&&(i=e==="all"?new Set:new Set([...Qf(0,t-1)].map(n).filter(a=>!e.has(a)))),{selection:i,isInverted:r}}function Iv(e,t){return c.useCallback(function(){var n=e(...arguments);return t(),n},[t,e])}function jv(e){return c.useCallback(t=>{e(t.target.value)},[e])}function Or(e,t){return c.useCallback(n=>{typeof e=="function"?e(t(n)):e.current=t(n)},[t,e])}function Be(e,t){return Rv(e)||kv(e,t)||$v(e,t)||Av()}function Av(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $v(e,t){if(e){if(typeof e=="string")return ii(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ii(e,t):void 0}}function ii(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kv(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Rv(e){if(Array.isArray(e))return e}function hl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zo,t=c.useState(0),n=Be(t,2),r=n[0],i=n[1],a=c.useState(0),o=Be(a,2),s=o[0],l=o[1],u=c.useState(0),f=Be(u,2),h=f[0],p=f[1],m=c.useState(0),v=Be(m,2),g=v[0],y=v[1],S=c.useMemo(()=>new DOMRect(r,s,h,g),[g,h,r,s]),b=c.useState(null),x=Be(b,2),O=x[0],T=x[1],P=Or(T,e),I=c.useCallback(C=>{var j,R=Be(C,1),k=R[0],E=(j=k==null?void 0:k.contentRect)!==null&&j!==void 0?j:{x:0,y:0,width:0,height:0};i(E.x),l(E.y),p(E.width),y(E.height)},[]);return nn(O,I),{ref:P,contentRect:S}}function Dv(e,t){return Nv(e)||Fv(e,t)||Mv(e,t)||Lv()}function Lv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mv(e,t){if(e){if(typeof e=="string")return ai(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ai(e,t):void 0}}function ai(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Fv(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Nv(e){if(Array.isArray(e))return e}function Uv(e){var t=c.useState(!0),n=Dv(t,2),r=n[0],i=n[1];return c.useEffect(()=>{var a=setTimeout(()=>{i(!1)},e);return()=>{clearTimeout(a)}},[e]),r}function Wv(e,t){return Hv(e)||Vv(e,t)||Kv(e,t)||Bv()}function Bv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kv(e,t){if(e){if(typeof e=="string")return oi(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oi(e,t):void 0}}function oi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Vv(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Hv(e){if(Array.isArray(e))return e}function Gv(e){var t=c.useState(e),n=Wv(t,2),r=n[0],i=n[1];return c.useEffect(()=>{i(e)},[e]),[r,i]}function Yv(e,t,n,r){var i=c.useRef(0);c.useEffect(()=>{i.current>=n||r&&(i.current+=1,e())},[n,r,...t])}function ml(e,t){var n=c.useRef(e),r=t(n.current,e)?n.current:e;return n.current=r,r}function zv(e){e.preventDefault()}function yl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=c.useMemo(()=>"useSubmitButtonRef-".concat(zn()),[]),n=c.useCallback(a=>{var o;a==null||(o=a.UNSAFE_getDOMNode())===null||o===void 0||o.setAttribute("form",t)},[t]),r=c.useMemo(()=>({id:t,onSubmit:e?void 0:zv}),[t,e]),i=c.useMemo(()=>({form:t,ref:n}),[t,n]);return{formProps:r,submitButtonProps:i}}function gl(e,t,n){var r=e.getItem,i=e.selectedKeys,a=e.items;return c.useMemo(()=>{var o=pl(i,a.length,n),s=o.selection,l=o.isInverted;return{selection:fl(s,r,t),isInverted:l}},[i,a.length,n,r,t])}function vl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zo,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=t(r);a&&(a.addEventListener("scroll",e),n.current=()=>{a.removeEventListener("scroll",e),n.current=void 0})},[t,e])}function si(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function li(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?si(Object(n),!0).forEach(function(r){qv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):si(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qv(e,t,n){return(t=Xv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xv(e){var t=Qv(e,"string");return typeof t=="symbol"?t:t+""}function Qv(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jv(e,t,n,r){var i=arguments.length===4;return c.useCallback(a=>{var o=i?a??r:a;n(li(li({},e),{},{[t]:o}))},[n,e,t,i,r])}function wt(e,t){return nb(e)||tb(e,t)||eb(e,t)||Zv()}function Zv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eb(e,t){if(e){if(typeof e=="string")return ui(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ui(e,t):void 0}}function ui(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tb(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function nb(e){if(Array.isArray(e))return e}function yt(e,t){var n=c.useState(!0),r=wt(n,2),i=r[0],a=r[1],o=c.useState(e),s=wt(o,2),l=s[0],u=s[1],f=c.useState(e),h=wt(f,2),p=h[0],m=h[1],v=c.useState(t),g=wt(v,2),y=g[0],S=g[1];return(e!==p||t!==y)&&(a(!0),m(e),S(t)),c.useEffect(()=>{var b=!1,x=setTimeout(()=>{b||(a(!1),u(e))},t);return()=>{b=!0,clearTimeout(x)}},[e,t]),{isDebouncing:i,value:l}}function rb(e,t){return sb(e)||ob(e,t)||ab(e,t)||ib()}function ib(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ab(e,t){if(e){if(typeof e=="string")return ci(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ci(e,t):void 0}}function ci(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ob(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function sb(e){if(Array.isArray(e))return e}function bl(e,t){return c.useCallback(n=>{if(n!=null){var r=t==null?[n]:n.querySelectorAll(t);r.forEach(i=>{Object.entries(e).forEach(a=>{var o=rb(a,2),s=o[0],l=o[1];i.setAttribute(s,l)})})}},[e,t])}var Sl={spellCheck:!1};function lb(e){var t=bl(Sl,e);return Or(t,Mt)}function ub(e,t,n){var r=c.useMemo(()=>typeof e=="string"?[e]:e,[e]);c.useEffect(()=>(r.forEach(i=>window.addEventListener(i,t,n)),()=>r.forEach(i=>window.removeEventListener(i,t,n))),[r,t,n])}const cb=Object.freeze(Object.defineProperty({__proto__:null,SPELLCHECK_FALSE_ATTRIBUTE:Sl,createValidationProps:xy,defaultGetKey:Ty,extractSpectrumHTMLElement:Mt,extractSpectrumLastChildHTMLElement:Cy,findSpectrumComboBoxScrollArea:Ey,findSpectrumPickerScrollArea:_y,findSpectrumPopoverScrollArea:Iy,getPositionOfSelectedItem:jy,getSelectedItemCountOrAll:_v,identityExtractHTMLElement:Ay,isElementOfType:Xs,isSelectionEqual:cl,isSelectionMaybeInvertedEqual:dl,mapSelection:fl,mergeRefs:fv,optimizeSelection:pl,useAsyncInterval:Jf,useCallbackWithAction:Iv,useChangeEventValueCallback:jv,useCheckOverflow:$y,useContentRect:hl,useContextOrThrow:Zf,useCopyToClipboard:ep,useDebouncedCallback:st,useDebouncedValue:yt,useDelay:Uv,useDependentState:Gv,useEffectNTimesWhen:Yv,useFormWithDetachedSubmitButton:yl,useForwardedRef:tp,useIsEqualMemo:ml,useIsMountedRef:np,useMappedRef:Or,useMappedSelection:gl,useMergeRef:ll,useOnChange:ky,useOnScrollOffsetChangeCallback:Ry,useOnScrollRef:vl,usePopoverOnScrollRef:Dy,usePrevious:rp,usePromiseFactory:Ne,usePropChangeCallback:Jv,useResizeObserver:nn,useSetAttributesCallback:bl,useSpectrumDisableSpellcheckRef:lb,useThrottledCallback:ip,useUndoRedo:Ly,useWindowListener:ub,useWindowedListData:My},Symbol.toStringTag,{value:"Module"}));var db=["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 fb(e,t){if(e==null)return{};var n,r,i=pb(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function pb(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Pl(e){var t=e["aria-label"],n=e["aria-labelledby"],r=e["aria-describedby"],i=e["aria-details"],a=e.marginX,o=e.marginY,s=e.width,l=e.height,u=e.minWidth,f=e.minHeight,h=e.maxWidth,p=e.maxHeight,m=e.flex,v=e.flexGrow,g=e.flexShrink,y=e.flexBasis,S=e.justifySelf,b=e.alignSelf,x=e.order,O=e.gridArea,T=e.gridColumn,P=e.gridRow,I=e.gridColumnStart,C=e.gridColumnEnd,j=e.gridRowStart,R=e.gridRowEnd,k=e.position,E=e.zIndex,A=e.top,M=e.bottom,w=e.start,_=e.end,$=e.left,F=e.right,G=e.isHidden,Y=fb(e,db);return{ariaLabelProps:{"aria-label":t,"aria-labelledby":n,"aria-describedby":r,"aria-details":i},styleProps:{marginX:a,marginY:o,width:s,height:l,minWidth:u,minHeight:f,maxWidth:h,maxHeight:p,flex:m,flexGrow:v,flexShrink:g,flexBasis:y,justifySelf:S,alignSelf:b,order:x,gridArea:O,gridColumn:T,gridRow:P,gridColumnStart:I,gridColumnEnd:C,gridRowStart:j,gridRowEnd:R,position:k,zIndex:E,top:A,bottom:M,start:w,end:_,left:$,right:F,isHidden:G},componentProps:Y}}function xr(e){var t=e.normalizedItems,n=e.defaultSelectedKeys,r=e.disabledKeys,i=e.selectedKeys,a=e.onChange,o=c.useMemo(()=>at(i),[i]),s=c.useMemo(()=>at(n),[n]),l=c.useMemo(()=>at(r),[r]),u=c.useCallback(f=>{if(a!=null){if(f==="all"){a("all");return}var h=new Set,p=new Set;t.forEach(m=>{var v=String(Ft(m));f.has(v)&&(h.add(Ft(m)),p.add(v))}),f.forEach(m=>{p.has(String(m))||h.add(m)}),a(h)}},[t,a]);return{selectedStringKeys:o,defaultSelectedStringKeys:s,disabledStringKeys:l,onStringSelectionChange:u}}function hb(){var e=qt(),t=e.selectedThemeKey,n=e.setSelectedThemeKey,r=e.themes,i=c.useCallback(a=>{a!=null&&n("".concat(a))},[n]);return d.jsx(rc,{label:"Pick a color scheme",items:r,selectedKey:t,onSelectionChange:i,children:a=>d.jsx(Kt,{children:a.name},a.themeKey)})}function mb(e){var t=e.className,n=e.style;return d.jsx("div",{className:H("dh-logo",t),style:n})}function yb(e,t){return Sb(e)||bb(e,t)||vb(e,t)||gb()}function gb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
7
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vb(e,t){if(e){if(typeof e=="string")return di(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?di(e,t):void 0}}function di(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bb(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Sb(e){if(Array.isArray(e))return e}var fi=ne.module("useExternalTheme");function wl(){var e=c.useState(()=>{var a=Qn();return{isEnabled:a,isPending:a}}),t=yb(e,2),n=t[0],r=t[1],i=c.useCallback(a=>{var o=qo(a);r({isEnabled:!0,isPending:!1,themeData:o})},[]);return c.useEffect(()=>{if(!n.isEnabled)return;fi.debug("Requesting external theme data");function a(o){var s=Jn();o.source!==window&&o.source!==s||o.data.message===Qo&&Jo(o.data.payload)&&i(o.data.payload)}return window.addEventListener("message",a),Xo().then(i).catch(o=>{fi.error(o),r({isEnabled:!0,isPending:!1})}),()=>{window.removeEventListener("message",a)}},[i,n.isEnabled]),n}function Pb(e,t){return Tb(e)||xb(e,t)||Ob(e,t)||wb()}function wb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
8
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ob(e,t){if(e){if(typeof e=="string")return pi(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pi(e,t):void 0}}function pi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xb(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Tb(e){if(Array.isArray(e))return e}var rn=c.createContext(!1);rn.displayName="FontsLoadedContext";function Ol(e){var t=e.fontClassNames,n=t===void 0?["fira-sans-regular","fira-sans-semibold","fira-mono"]:t,r=e.children,i=c.useState(!1),a=Pb(i,2),o=a[0],s=a[1];return c.useEffect(function(){document.fonts.ready.then(()=>{s(!0)})},[]),d.jsxs(d.Fragment,{children:[d.jsx(rn.Provider,{value:o,children:r}),d.jsx("div",{id:"preload-fonts",style:{visibility:"hidden",position:"absolute",top:-1e4},children:n.map(l=>d.jsx("p",{className:l,children:"preload"},l))})]})}function xl(e){var t=e.children,n=c.useContext(rn);return n?d.jsx(d.Fragment,{children:t}):d.jsx(Ue,{"data-testid":"fonts-loaded-loading"})}var Cb=["UNSAFE_className"],Eb=["forceRerenderKey","ref"];function hi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function mi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hi(Object(n),!0).forEach(function(r){_b(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hi(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _b(e,t,n){return(t=Ib(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ib(e){var t=jb(e,"string");return typeof t=="symbol"?t:t+""}function jb(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yi(e,t){if(e==null)return{};var n,r,i=Ab(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ab(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Tl(e){var t=e.UNSAFE_className,n=yi(e,Cb),r=Qs(n),i=r.forceRerenderKey,a=r.ref,o=yi(r,Eb);return c.createElement(qn,mi(mi({},o),{},{key:i,ref:a,UNSAFE_className:H("dh-combobox","dh-combobox-normalized",t)}))}var $b=["onScroll"];function gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ot(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gi(Object(n),!0).forEach(function(r){kb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gi(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kb(e,t,n){return(t=Rb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rb(e){var t=Db(e,"string");return typeof t=="symbol"?t:t+""}function Db(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lb(e,t){if(e==null)return{};var n,r,i=Mb(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Mb(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Tr(e){var t,n,r=Pl(e),i=r.ariaLabelProps,a=r.componentProps,o=r.styleProps,s=a.onScroll,l=s===void 0?ge:s,u=Lb(a,$b),f=fr(),h=f.scale,p=vl(l,Mt),m=hl(Mt),v=m.ref,g=m.contentRect;return d.jsx(Ro,Ot(Ot({direction:"column",ref:v},o),{},{minHeight:(t=o.minHeight)!==null&&t!==void 0?t:1,UNSAFE_className:H("dh-list-view-wrapper","dh-list-view-wrapper-density-".concat((n=u.density)!==null&&n!==void 0?n:"regular"),"dh-list-view-wrapper-scale-".concat(h),o.UNSAFE_className),children:g.height===0?null:d.jsx(ic,Ot(Ot({ref:p},i),u))}))}var Fb=["children","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","UNSAFE_className","onChange","onScroll","onSelectionChange"];function vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vi(Object(n),!0).forEach(function(r){Nb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vi(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nb(e,t,n){return(t=Ub(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ub(e){var t=Wb(e,"string");return typeof t=="symbol"?t:t+""}function Wb(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bb(e,t){if(e==null)return{};var n,r,i=Kb(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Kb(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Vb(e){var t=e.children,n=e.tooltip,r=n===void 0?!0:n,i=e.selectedKeys,a=e.defaultSelectedKeys,o=e.disabledKeys,s=e.UNSAFE_className,l=e.onChange,u=e.onScroll,f=u===void 0?ge:u,h=e.onSelectionChange,p=Bb(e,Fb),m=c.useMemo(()=>mt(r,"bottom"),[r]),v=c.useMemo(()=>pr(t,m),[t,m]);return d.jsx(Tr,bi(bi({},p),{},{UNSAFE_className:H("dh-list-view",s),selectedKeys:i,defaultSelectedKeys:a,disabledKeys:o,onScroll:f,onSelectionChange:l??h,children:v}))}var Hb=["normalizedItems","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","showItemIcons","actions","UNSAFE_className","onChange","onSelectionChange"];function Si(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Si(Object(n),!0).forEach(function(r){Gb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Si(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gb(e,t,n){return(t=Yb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yb(e){var t=zb(e,"string");return typeof t=="symbol"?t:t+""}function zb(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qb(e,t){if(e==null)return{};var n,r,i=Xb(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Xb(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Cl(e){var t=e.normalizedItems,n=e.tooltip,r=n===void 0?!0:n,i=e.selectedKeys,a=e.defaultSelectedKeys,o=e.disabledKeys,s=e.showItemIcons,l=e.actions,u=e.UNSAFE_className,f=e.onChange,h=e.onSelectionChange,p=qb(e,Hb),m=c.useMemo(()=>mt(r,"bottom"),[r]),v=hr({itemIconSlot:"illustration",showItemDescriptions:!1,showItemIcons:s,tooltipOptions:m,actions:l}),g="".concat(s,"-").concat(m==null?void 0:m.placement),y=xr({normalizedItems:t,selectedKeys:i,defaultSelectedKeys:a,disabledKeys:o,onChange:f??h}),S=y.selectedStringKeys,b=y.defaultSelectedStringKeys,x=y.disabledStringKeys,O=y.onStringSelectionChange;return c.createElement(Tr,Pi(Pi({},p),{},{UNSAFE_className:H("dh-list-view-normalized",u),key:g,items:t,selectedKeys:S,defaultSelectedKeys:b,disabledKeys:x,onSelectionChange:O}),v)}function wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Oi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wi(Object(n),!0).forEach(function(r){Qb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wi(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qb(e,t,n){return(t=Jb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jb(e){var t=Zb(e,"string");return typeof t=="symbol"?t:t+""}function Zb(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cr(e){return e.replace(/^\.\$/,"")}function xi(e){var t;if(e.key==null)return null;var n=Cr(String(e.key)),r=(t=Js(e))!==null&&t!==void 0?t:typeof e.props.children=="string"?e.props.children:n;return{kind:"item",key:n,label:r}}function Er(e){return e.kind==="section"}function e0(e){var t=[];return e.forEach(n=>{if(mr(n)){var r=n,i=r.key!=null?Cr(String(r.key)):String(t.length),a=[];Xt(r.props.children).forEach(s=>{if(Nt(s)){var l=xi(s);l!=null&&a.push(l)}}),t.push({kind:"section",key:i,title:r.props.title,items:a});return}if(Nt(n)){var o=xi(n);o!=null&&t.push(o)}}),t}function El(e){return e.flatMap(t=>Er(t)?t.items:[t])}function t0(e,t,n){var r=[];return e.forEach(i=>{if(Er(i)){var a=i.items.filter(o=>n(o.label,t));a.length>0&&r.push(Oi(Oi({},i),{},{items:a}))}else n(i.label,t)&&r.push(i)}),r}function n0(e){var t=new Set;return e.forEach(n=>{Er(n)?n.items.forEach(r=>t.add(r.key)):t.add(n.key)}),t}function _l(e,t){var n=[];return e.forEach(r=>{if(mr(r)){var i=r,a=_l(Xt(i.props.children).filter(s=>s!=null),t);a.length>0&&n.push(c.cloneElement(i,{children:a}));return}if(Nt(r)){var o=r;o.key!=null&&t.has(Cr(String(o.key)))&&n.push(r)}}),n}function Ti(e,t){return e==null?new Set:e==="all"?new Set(t):new Set([...e].map(String))}function r0(e,t){return s0(e)||o0(e,t)||a0(e,t)||i0()}function i0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
9
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a0(e,t){if(e){if(typeof e=="string")return Ci(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ci(e,t):void 0}}function Ci(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o0(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function s0(e){if(Array.isArray(e))return e}function l0(e){var t=e.selectedKeys,n=e.defaultSelectedKeys,r=e.disabledKeys,i=e.onChange,a=e.onSelectionChange,o=e.allKeys,s=c.useMemo(()=>t!==void 0?Ti(t,o):void 0,[t,o]),l=c.useCallback(x=>{var O=i??a;O==null||O(x)},[i,a]),u=c.useRef(void 0);u.current===void 0&&(u.current=Ti(n,o));var f=Do(s,u.current,l),h=r0(f,2),p=h[0],m=h[1],v=c.useRef(p);v.current=p;var g=c.useMemo(()=>at(r),[r]),y=c.useCallback(x=>{var O=new Set(v.current);O.has(x)?O.delete(x):O.add(x),m(O)},[m]),S=c.useCallback((x,O)=>{if(x==="all"){m(new Set(o));return}var T=new Set(O.map(I=>I.key)),P=new Set([...v.current].filter(I=>!T.has(I)));x.forEach(I=>P.add(String(I))),m(P)},[o,m]),b=c.useMemo(()=>[...p],[p]);return{selectedKeys:p,selectedKeyArray:b,listBoxDisabledKeys:g,toggleKey:y,applyListBoxSelection:S}}function u0(e,t){return p0(e)||f0(e,t)||d0(e,t)||c0()}function c0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
10
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d0(e,t){if(e){if(typeof e=="string")return Ei(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ei(e,t):void 0}}function Ei(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f0(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function p0(e){if(Array.isArray(e))return e}function h0(e){var t=e.allEntries,n=e.wrappedChildren,r=e.inputValue,i=e.defaultInputValue,a=e.onInputChange,o=e.onSearchTextChange,s=Do(r,i,a),l=u0(s,2),u=l[0],f=l[1],h=c.useCallback(b=>{f(b),o==null||o(b)},[f,o]),p=ac({sensitivity:"base"}),m=p.contains,v=o!=null||u==="",g=c.useMemo(()=>v?t:t0(t,u,m),[t,u,m,v]),y=c.useMemo(()=>El(g),[g]),S=c.useMemo(()=>{if(v)return n;var b=n0(g);return _l(n,b)},[n,g,v]);return{searchText:u,setSearchText:h,filteredItems:y,filteredJsxChildren:S}}function m0(e,t){return b0(e)||v0(e,t)||g0(e,t)||y0()}function y0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
11
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g0(e,t){if(e){if(typeof e=="string")return _i(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_i(e,t):void 0}}function _i(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function v0(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function b0(e){if(Array.isArray(e))return e}function S0(e){return e.replace(/\s+/g,"")}function P0(e){var t=e.filteredItems,n=e.allItems,r=e.shouldFocusWrap,i=e.overlayState,a=e.openOverlay,o=e.closeOverlay,s=e.isReadOnly,l=e.isDisabled,u=e.searchText,f=e.setSearchText,h=e.selectedKeys,p=e.toggleKey,m=e.allowsCustomValue,v=e.menuTrigger,g=e.onKeyDown,y=e.listBoxContainerRef,S=e.inputRef,b=c.useState(null),x=m0(b,2),O=x[0],T=x[1],P=c.useCallback(j=>{var R=t.length;R!==0&&T(k=>{var E=k==null?-1:t.findIndex(M=>M.key===k),A;return j==="down"?E===-1?A=0:r?A=(E+1)%R:A=Math.min(E+1,R-1):E===-1?A=R-1:r?A=(E-1+R)%R:A=Math.max(E-1,0),t[A].key})},[t,r]),I=c.useCallback(j=>{if(!l){switch(j.key){case"ArrowDown":j.preventDefault(),i.isOpen?P("down"):a("manual");break;case"ArrowUp":j.preventDefault(),i.isOpen&&P("up");break;case"Enter":{if(!i.isOpen){j.preventDefault(),a("manual");break}var R=O!=null&&t.some(w=>w.key===O);if(!s&&R)j.preventDefault(),p(O);else if(!s&&m&&u.trim()!==""){j.preventDefault();var k=u.trim(),E=n.find(w=>w.label.toLowerCase()===k.toLowerCase());p(E!=null?E.key:k),f("")}else f(""),o();break}case"Escape":i.isOpen&&(j.preventDefault(),o());break;case"Tab":i.isOpen&&o();break;case"Backspace":if(u===""&&!s&&h.size>0){var A=[...h],M=A[A.length-1];M!=null&&p(M)}break}g==null||g(j)}},[l,i,a,o,P,s,O,t,n,m,p,u,f,h,g]),C=c.useRef(!1);return c.useEffect(()=>{C.current&&!i.isOpen&&(m||f(""),T(null)),C.current=i.isOpen},[i.isOpen,f,m]),c.useEffect(()=>{v!=="manual"&&u!==""&&!i.isOpen&&!l&&a("input")},[u]),c.useEffect(()=>{var j=y.current;if(j==null){var R;(R=S.current)===null||R===void 0||R.removeAttribute("aria-activedescendant");return}var k=j.querySelectorAll('[role="option"]'),E=O!=null?"-option-".concat(S0(O)):null,A;k.forEach(w=>{var _=E!=null&&w.id.endsWith(E);_?(w.setAttribute("data-dh-focused","true"),w.scrollIntoView({block:"nearest"}),A=w.id):w.removeAttribute("data-dh-focused")});var M=S.current;M!=null&&(A!=null?M.setAttribute("aria-activedescendant",A):M.removeAttribute("aria-activedescendant"))},[O,t,S,y]),{handleInputKeyDown:I}}function w0(e,t){return C0(e)||T0(e,t)||x0(e,t)||O0()}function O0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
12
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x0(e,t){if(e){if(typeof e=="string")return Ii(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ii(e,t):void 0}}function Ii(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function T0(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function C0(e){if(Array.isArray(e))return e}var E0=500;function _0(e){var t=e.loadingState,n=e.searchText,r=e.isOpen,i=e.menuTrigger,a=c.useState(!1),o=w0(a,2),s=o[0],l=o[1],u=c.useRef(null),f=t==="loading"||t==="filtering",h=c.useRef(n);return c.useEffect(()=>{if(f&&!s){var p=n!==h.current;u.current!==null&&p&&(clearTimeout(u.current),u.current=null),u.current===null&&(u.current=setTimeout(()=>{l(!0)},E0))}else f||(l(!1),u.current!=null&&(clearTimeout(u.current),u.current=null));h.current=n},[f,s,n]),c.useEffect(()=>()=>{u.current!=null&&(clearTimeout(u.current),u.current=null)},[]),s&&(r||i==="manual"||t==="loading")}function I0(e,t){return k0(e)||$0(e,t)||A0(e,t)||j0()}function j0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
13
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A0(e,t){if(e){if(typeof e=="string")return ji(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ji(e,t):void 0}}function ji(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $0(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function k0(e){if(Array.isArray(e))return e}function R0(e){var t=e.containerRef,n=e.isOpen,r=e.onScroll,i=c.useState(null),a=I0(i,2),o=a[0],s=a[1],l=c.useRef(r);l.current=r,c.useEffect(()=>{if(!n){s(null);return}var u=window.requestAnimationFrame(()=>{var f=t.current;if(f!=null){var h=f.querySelector('[role="listbox"]');s(h??f)}});return()=>{window.cancelAnimationFrame(u)}},[n,t]),c.useEffect(()=>{if(o!=null){var u=f=>{l.current(f)};return o.addEventListener("scroll",u),()=>{o.removeEventListener("scroll",u)}}},[o])}function D0(e){var t=e.tagKey,n=e.label,r=e.isDisabled,i=e.isReadOnly,a=e.onRemove;return d.jsxs("span",{className:"dh-multi-select-tag",children:[d.jsx("span",{className:"dh-multi-select-tag-label",children:n}),!r&&!i&&d.jsx("button",{type:"button",className:"dh-multi-select-tag-remove",tabIndex:-1,"aria-label":"Remove ".concat(n),onPointerDown:o=>o.preventDefault(),onClick:()=>a(t),children:d.jsx(oc,{})})]})}function L0(e){var t=e.listBoxRef,n=e.listBoxId,r=e.loadingState,i=e.children,a=e.selectedKeys,o=e.disabledKeys,s=e.onSelectionChange,l=e.ariaLabel,u=e.emptyMessage;return u!=null?d.jsx("div",{className:"dh-multi-select-empty",children:u}):d.jsx(sc,{ref:t,id:n,selectionMode:"multiple",selectedKeys:a,onSelectionChange:s,disabledKeys:o,"aria-label":l,isLoading:r==="loadingMore",UNSAFE_style:{maxHeight:"inherit"},children:i})}var M0=["children","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","onChange","onSelectionChange","onOpenChange","onScroll","label","description","errorMessage","isRequired","isDisabled","isReadOnly","validationState","isQuiet","labelPosition","labelAlign","necessityIndicator","contextualHelp","inputValue","defaultInputValue","onInputChange","shouldFocusWrap","loadingState","menuTrigger","align","direction","shouldFlip","menuWidth","allowsCustomValue","formValue","validationBehavior","autoFocus","name","id","isHidden","onFocus","onBlur","onFocusChange","onKeyDown","onKeyUp","onSearchTextChange","selectedItemLabels","UNSAFE_className","aria-label","aria-labelledby","aria-describedby","aria-details"];function Ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ai(Object(n),!0).forEach(function(r){F0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function F0(e,t,n){return(t=N0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N0(e){var t=U0(e,"string");return typeof t=="symbol"?t:t+""}function U0(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function W0(e,t){if(e==null)return{};var n,r,i=B0(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function B0(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function K0(e){if(e!=null)return typeof e=="number"?"".concat(e,"px"):/^(size|static-size)-/.test(e)?"var(--spectrum-global-dimension-".concat(e,")"):e}function V0(e,t){var n,r,i,a=e.children,o=e.tooltip,s=o===void 0?!0:o,l=e.selectedKeys,u=e.defaultSelectedKeys,f=e.disabledKeys,h=e.onChange,p=e.onSelectionChange,m=e.onOpenChange,v=e.onScroll,g=v===void 0?ge:v,y=e.label,S=e.description,b=e.errorMessage,x=e.isRequired,O=x===void 0?!1:x,T=e.isDisabled,P=T===void 0?!1:T,I=e.isReadOnly,C=I===void 0?!1:I,j=e.validationState,R=e.isQuiet,k=R===void 0?!1:R,E=e.labelPosition,A=E===void 0?"top":E,M=e.labelAlign,w=e.necessityIndicator,_=e.contextualHelp,$=e.inputValue,F=e.defaultInputValue,G=F===void 0?"":F,Y=e.onInputChange,ie=e.shouldFocusWrap,Se=ie===void 0?!1:ie,oe=e.loadingState,X=e.menuTrigger,Q=X===void 0?"input":X,q=e.align,D=q===void 0?"start":q,U=e.direction,V=U===void 0?"bottom":U,K=e.shouldFlip,Z=K===void 0?!0:K,re=e.menuWidth,ue=e.allowsCustomValue,L=ue===void 0?!1:ue,N=e.formValue,W=N===void 0?"key":N,z=e.validationBehavior,de=z===void 0?"aria":z,Ae=e.autoFocus,wu=Ae===void 0?!1:Ae,Dr=e.name,Ou=e.id,Lr=e.isHidden,xu=Lr===void 0?!1:Lr,gt=e.onFocus,$e=e.onBlur,me=e.onFocusChange,Tu=e.onKeyDown,Cu=e.onKeyUp,Eu=e.onSearchTextChange,vt=e.selectedItemLabels,_u=e.UNSAFE_className,Iu=e["aria-label"],ju=e["aria-labelledby"],Au=e["aria-describedby"],$u=e["aria-details"],ku=W0(e,M0),ln=c.useRef(void 0),Ru=c.useCallback(B=>{m==null||m(B,ln.current)},[m]),te=lc({onOpenChange:Ru}),ke=c.useCallback(B=>{ln.current=B,te.open()},[te]),We=c.useCallback(()=>{ln.current=void 0,te.close()},[te]),Mr=c.useId(),Du="".concat(V," ").concat(D),Oe=c.useRef(null),qe=c.useRef(null),Fr=c.useRef(null),Xe=Yr(Fr),Nr=c.useRef(null),Ur=Yr(Nr),bt=c.useRef(!1),Lu=ll(Oe,t),Wr=c.useMemo(()=>mt(s),[s]),un=c.useMemo(()=>Xt(pr(a,Wr)),[a,Wr]),cn=c.useMemo(()=>e0(un),[un]),Qe=c.useMemo(()=>El(cn),[cn]),Mu=c.useMemo(()=>Qe.map(B=>B.key),[Qe]),Fu=c.useRef(new Map),Br=c.useMemo(()=>{var B=Fu.current;return Qe.forEach(ae=>B.set(ae.key,ae.label)),new Map(B)},[Qe]),Kr=c.useCallback(B=>{var ae,Re;return(ae=(Re=Br.get(B))!==null&&Re!==void 0?Re:vt==null?void 0:vt.get(B))!==null&&ae!==void 0?ae:B},[Br,vt]),St=h0({allEntries:cn,wrappedChildren:un,inputValue:$,defaultInputValue:G,onInputChange:Y,onSearchTextChange:Eu}),dn=St.searchText,Vr=St.setSearchText,Je=St.filteredItems,Nu=St.filteredJsxChildren,Uu=c.useMemo(()=>{if(!(Je.length>0)){if(oe==="loading")return"Loading...";if(oe!=="loadingMore")return"No results"}},[Je.length,oe]),Ze=l0({selectedKeys:l,defaultSelectedKeys:u,disabledKeys:f,onChange:h,onSelectionChange:p,allKeys:Mu}),Hr=Ze.selectedKeys,fn=Ze.selectedKeyArray,Wu=Ze.listBoxDisabledKeys,pn=Ze.toggleKey,Gr=Ze.applyListBoxSelection,Bu=P0({filteredItems:Je,allItems:Qe,shouldFocusWrap:Se,overlayState:te,openOverlay:ke,closeOverlay:We,isReadOnly:C,isDisabled:P,searchText:dn,setSearchText:Vr,selectedKeys:Hr,toggleKey:pn,allowsCustomValue:L,menuTrigger:Q,onKeyDown:Tu,listBoxContainerRef:Ur,inputRef:qe}),Ku=Bu.handleInputKeyDown;R0({containerRef:Ur,isOpen:te.isOpen,onScroll:g});var Vu=_0({loadingState:oe,searchText:dn,isOpen:te.isOpen,menuTrigger:Q}),Pt=c.useCallback(()=>{requestAnimationFrame(()=>{var B;(B=qe.current)===null||B===void 0||B.focus()})},[]),Hu=c.useCallback(B=>{pn(B),Pt()},[pn,Pt]),Gu=c.useCallback(B=>{C||(Gr(B,Je),Pt())},[C,Gr,Je,Pt]),Yu=c.useCallback(B=>{bt.current||(bt.current=!0,Q==="focus"&&!te.isOpen&&!P&&ke("focus"),gt==null||gt(B),me==null||me(!0))},[gt,me,Q,te,P,ke]),zu=c.useCallback(B=>{var ae=B.relatedTarget;if(ae!=null){if(Oe.current!=null&&Oe.current.contains(ae)||Xe.current!=null&&Xe.current.contains(ae))return}else{requestAnimationFrame(()=>{var Re=document.activeElement;Re!=null&&(Oe.current!=null&&Oe.current.contains(Re)||Xe.current!=null&&Xe.current.contains(Re))||(bt.current=!1,te.isOpen&&We(),$e==null||$e(B),me==null||me(!1))});return}bt.current=!1,te.isOpen&&We(),$e==null||$e(B),me==null||me(!1)},[$e,me,te,We,Xe]),qu=c.useCallback(()=>{var B;P||(te.isOpen||ke("manual"),(B=qe.current)===null||B===void 0||B.focus())},[P,te,ke]),Xu=c.useCallback(B=>{var ae;B.stopPropagation(),!P&&(te.isOpen?We():ke("manual"),(ae=qe.current)===null||ae===void 0||ae.focus())},[P,te,ke,We]);return d.jsx(uc,$i($i({},ku),{},{label:y,description:S,errorMessage:j==="invalid"?b:void 0,isRequired:O,isDisabled:P,validationState:j,labelPosition:A,labelAlign:M,necessityIndicator:w,contextualHelp:_,wrapperClassName:H("dh-multi-select",_u),children:d.jsxs("div",{style:xu?{display:"none"}:void 0,children:[d.jsx(cc,{within:!0,focusRingClass:"focus-ring",focusClass:"is-focused",children:d.jsxs("div",{ref:Lu,id:Ou,onClick:qu,className:H("dh-multi-select-trigger",{"is-disabled":P,"is-read-only":C,"is-quiet":k,"is-invalid":j==="invalid"}),children:[d.jsxs("div",{className:"dh-multi-select-content",children:[fn.map(B=>d.jsx(D0,{tagKey:B,label:Kr(B),isDisabled:P,isReadOnly:C,onRemove:Hu},B)),d.jsx("input",{ref:qe,className:"dh-multi-select-input",value:dn,onChange:B=>Vr(B.target.value),onFocus:Yu,onBlur:zu,onKeyDown:Ku,onKeyUp:Cu,disabled:P,readOnly:C,autoFocus:wu,role:"combobox","aria-haspopup":"listbox","aria-expanded":te.isOpen,"aria-controls":te.isOpen?Mr:void 0,"aria-autocomplete":"list","aria-label":Iu,"aria-labelledby":ju,"aria-describedby":Au,"aria-details":$u})]}),Vu&&d.jsx("div",{className:"dh-multi-select-loading-circle",children:d.jsx(Lo,{"aria-label":"Loading",isIndeterminate:!0,size:"S"})}),j==="invalid"&&!P&&d.jsx("div",{className:"dh-multi-select-invalid-icon","aria-hidden":"true",children:d.jsx(dc,{})}),d.jsx("div",{className:H("dh-multi-select-chevron",{"is-open":te.isOpen}),onClick:Xu,onPointerDown:B=>B.preventDefault(),role:"button",tabIndex:-1,"aria-label":"Toggle dropdown",children:d.jsx(fc,{})})]})}),Dr!=null&&d.jsx("input",{type:"hidden",name:Dr,value:W==="text"?fn.map(Kr).join(","):fn.join(","),required:de==="native"&&O?!0:void 0}),te.isOpen&&!P&&d.jsx(pc,{ref:Fr,triggerRef:Oe,state:te,hideArrow:!0,isNonModal:!0,placement:Du,shouldFlip:Z,shouldCloseOnInteractOutside:B=>{var ae;return((ae=Oe.current)===null||ae===void 0?void 0:ae.contains(B))!==!0},UNSAFE_style:{width:(n=(r=K0(re))!==null&&r!==void 0?r:(i=Oe.current)===null||i===void 0?void 0:i.offsetWidth)!==null&&n!==void 0?n:void 0},children:d.jsx(L0,{listBoxRef:Nr,listBoxId:Mr,loadingState:oe,selectedKeys:Hr,disabledKeys:Wu,onSelectionChange:Gu,ariaLabel:typeof y=="string"?y:"Options",emptyMessage:Uu,children:Nu})})]})}))}var _r=J.forwardRef(V0);_r.displayName="MultiSelect";var H0=["normalizedItems","showItemIcons","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","onChange","onSelectionChange"];function ki(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ri(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ki(Object(n),!0).forEach(function(r){G0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ki(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function G0(e,t,n){return(t=Y0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y0(e){var t=z0(e,"string");return typeof t=="symbol"?t:t+""}function z0(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function q0(e,t){if(e==null)return{};var n,r,i=X0(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function X0(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Q0(e){var t=e.normalizedItems,n=e.showItemIcons,r=e.tooltip,i=r===void 0?!0:r,a=e.selectedKeys,o=e.defaultSelectedKeys,s=e.disabledKeys,l=e.onChange,u=e.onSelectionChange,f=q0(e,H0),h=c.useMemo(()=>mt(i),[i]),p=hr({itemIconSlot:"icon",showItemDescriptions:!1,showItemIcons:n,tooltipOptions:h}),m="".concat(n,"-").concat(h==null?void 0:h.placement),v=c.useMemo(()=>t.flatMap(T=>{var P,I;return $n(T)?(P=(I=T.item)===null||I===void 0?void 0:I.items)!==null&&P!==void 0?P:[]:[T]}),[t]),g=xr({normalizedItems:v,selectedKeys:a,defaultSelectedKeys:o,disabledKeys:s,onChange:l??u}),y=g.selectedStringKeys,S=g.defaultSelectedStringKeys,b=g.disabledStringKeys,x=g.onStringSelectionChange,O=c.useMemo(()=>t.map(T=>{if($n(T)){var P,I;return d.jsx(hc,{title:(P=T.item)===null||P===void 0?void 0:P.title,items:(I=T.item)===null||I===void 0?void 0:I.items,children:p},Ft(T))}return p(T)}),[t,p]);return Ri(Ri({},f),{},{children:O,forceRerenderKey:m,selectedKeys:y,defaultSelectedKeys:S,disabledKeys:b,onChange:x})}var J0=["UNSAFE_className"],Z0=["forceRerenderKey","children"];function Di(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Li(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Di(Object(n),!0).forEach(function(r){eS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Di(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eS(e,t,n){return(t=tS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tS(e){var t=nS(e,"string");return typeof t=="symbol"?t:t+""}function nS(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mi(e,t){if(e==null)return{};var n,r,i=rS(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function rS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Il(e){var t=e.UNSAFE_className,n=Mi(e,J0),r=Q0(n),i=r.forceRerenderKey,a=r.children,o=Mi(r,Z0);return c.createElement(_r,Li(Li({},o),{},{key:i,UNSAFE_className:H("dh-multi-select-normalized",t)}),a)}var iS=["backgroundColor","borderColor","borderStartColor","borderEndColor","borderTopColor","borderBottomColor","borderXColor","borderYColor","UNSAFE_style"];function Fi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fi(Object(n),!0).forEach(function(r){aS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fi(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aS(e,t,n){return(t=oS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oS(e){var t=sS(e,"string");return typeof t=="symbol"?t:t+""}function sS(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lS(e,t){if(e==null)return{};var n,r,i=uS(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function uS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var jl=c.forwardRef((e,t)=>{var n=e.backgroundColor,r=e.borderColor,i=e.borderStartColor,a=e.borderEndColor,o=e.borderTopColor,s=e.borderBottomColor,l=e.borderXColor,u=e.borderYColor,f=e.UNSAFE_style,h=lS(e,iS),p=mc(),m=p.direction,v=c.useMemo(()=>{var g={};return r!==void 0&&(g.borderColor=ye(r)),l!==void 0&&(g.borderLeftColor=ye(l),g.borderRightColor=ye(l)),u!==void 0&&(g.borderTopColor=ye(u),g.borderBottomColor=ye(u)),i!==void 0&&(g[m==="rtl"?"borderRightColor":"borderLeftColor"]=ye(i)),a!==void 0&&(g[m==="rtl"?"borderLeftColor":"borderRightColor"]=ye(a)),o!==void 0&&(g.borderTopColor=ye(o)),s!==void 0&&(g.borderBottomColor=ye(s)),xt(xt({},f),{},{backgroundColor:ye(n)},g)},[n,f,r,i,a,o,s,l,u,m]);return d.jsx(yc,xt(xt({},h),{},{ref:t,UNSAFE_style:v}))});jl.displayName="View";var cS=["children"];function Ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ui(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ni(Object(n),!0).forEach(function(r){dS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ni(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dS(e,t,n){return(t=fS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fS(e){var t=pS(e,"string");return typeof t=="symbol"?t:t+""}function pS(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hS(e,t){if(e==null)return{};var n,r,i=mS(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function mS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function yS(e){var t=e.children,n=hS(e,cS),r=c.useMemo(()=>Xt(t).map(i=>Xs(i,xn)?i:d.jsx(xn,{value:String(i),children:String(i)},String(i))),[t]);return d.jsx(gc,Ui(Ui({},n),{},{children:r}))}var gS=["ariaLabel","icon","isQuiet","labelText","children","onOpenChange","tooltip"];function Wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Bi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wi(Object(n),!0).forEach(function(r){vS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wi(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vS(e,t,n){return(t=bS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bS(e){var t=SS(e,"string");return typeof t=="symbol"?t:t+""}function SS(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PS(e,t){if(e==null)return{};var n,r,i=wS(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Al(e){var t=e.ariaLabel,n=e.icon,r=e.isQuiet,i=e.labelText,a=e.children,o=e.onOpenChange,s=e.tooltip,l=PS(e,gS),u=i==null&&s!=null?"action-button-icon-with-tooltip":void 0;return d.jsxs(Mo,{type:"popover",onOpenChange:o,children:[d.jsxs(Vt,Bi(Bi({},l),{},{"aria-label":t??i,isQuiet:r,children:[d.jsx(ft,{UNSAFE_className:u,children:d.jsx(ce,{icon:n})}),i==null?null:d.jsx(Qt,{children:i}),s==null?null:d.jsx(ht,{children:s})]})),a]})}function Ki(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Tt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ki(Object(n),!0).forEach(function(r){OS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ki(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OS(e,t,n){return(t=xS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xS(e){var t=TS(e,"string");return typeof t=="symbol"?t:t+""}function TS(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $l(e){var t=e.heading,n=e.confirmationButtonLabel,r=e.children,i=e.onCancel,a=e.onConfirm,o=yl(),s=o.formProps,l=o.submitButtonProps;return d.jsxs(Fo,{children:[d.jsx(ir,{level:3,UNSAFE_className:yr.spectrumDialogComponentHeading,children:t}),d.jsx(No,{}),d.jsx(Xn,{children:d.jsx(Uo,Tt(Tt({},s),{},{children:r}))}),d.jsxs(Wo,{children:[d.jsx(Tn,{variant:"secondary",onPress:i,children:"Cancel"}),d.jsx(Tn,Tt(Tt({},l),{},{style:"fill",variant:"negative",onPress:a,type:"submit",children:n}))]})]})}function CS(e){var t=e.ariaLabel,n=e.heading,r=e.confirmationButtonLabel,i=e.isHidden,a=e.children,o=e.tooltip,s=e.onConfirm,l=c.useCallback(u=>d.jsx($l,{heading:n,confirmationButtonLabel:r,onCancel:u,onConfirm:()=>{u(),s()},children:a}),[a,r,n,s]);return d.jsx(Al,{ariaLabel:t,icon:Zo,isHidden:i,isQuiet:!0,height:gr,tooltip:o,children:l})}var ES=["icon","label","tooltip"];function Vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vi(Object(n),!0).forEach(function(r){_S(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vi(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _S(e,t,n){return(t=IS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IS(e){var t=jS(e,"string");return typeof t=="symbol"?t:t+""}function jS(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AS(e,t){if(e==null)return{};var n,r,i=$S(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function $S(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function kl(e){var t=e.icon,n=e.label,r=e.tooltip,i=AS(e,ES);return d.jsxs(Vt,Hi(Hi({},i),{},{"aria-label":n,isQuiet:!0,height:gr,children:[d.jsx(ft,{UNSAFE_className:r==null?void 0:"action-button-icon-with-tooltip",children:d.jsx(ce,{icon:t})}),r==null?null:d.jsx(ht,{children:r})]}))}kl.displayName="IconActionButton";function Gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gi(Object(n),!0).forEach(function(r){_e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gi(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _e(e,t,n){return(t=RS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RS(e){var t=DS(e,"string");return typeof t=="symbol"?t:t+""}function DS(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LS=100,Rl=function(e){return e.UP="UP",e.DOWN="DOWN",e}(Rl||{});class be extends c.Component{constructor(t){super(t),_e(this,"popper",void 0),_e(this,"cbContainer",void 0),_e(this,"menuContainer",void 0),_e(this,"input",void 0),_e(this,"getCachedFilteredOptions",vc((r,i)=>r.filter(a=>a.title.toLowerCase().indexOf(i.toLowerCase())>=0),{max:1e3}));var n=this.props.popperOptions;n=kS({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=ot(this.updateInputValue,LS),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleMenuOpened=this.handleMenuOpened.bind(this),this.handleMenuExited=this.handleMenuExited.bind(this),this.popper=J.createRef(),this.cbContainer=J.createRef(),this.menuContainer=J.createRef(),this.input=J.createRef()}setInputWidth(){this.cbContainer.current&&this.setState({inputWidth:this.cbContainer.current.getBoundingClientRect().width})}getValueAndValidate(t){if(!t)return this.setState({invalid:!1}),{value:t,isValid:!1};var n=this.props.options,r=n.filter(i=>i.title.toLowerCase()===t.toLowerCase());return r.length<1?(this.setState({invalid:!0}),{value:t,isValid:!1}):(this.setState({invalid:!1}),{value:r[0].value,isValid:!0})}updateInputValue(t){var n=this.state.menuIsOpen,r=this.getValueAndValidate(t),i=r.value,a=r.isValid;n&&this.processFilterChange(t),this.fireOnChange(i,a)}fireOnChange(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this.props.onChange;r(t,n)}processFilterChange(t){var n,r=this.props.options,i=this.state.menuIsOpen,a=t?this.getCachedFilteredOptions(r,t):r,o=a.length===1&&a[0].title===t;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(t){var n,r=this.state,i=r.filteredOptions,a=r.keyboardOptionIndex,o=i[a];switch(t.key){case"Enter":case"ArrowRight":t.stopPropagation(),t.preventDefault(),o!=null&&(this.setState({title:o.title,invalid:!1}),this.fireOnChange(o.value)),this.closeMenu(),(n=this.input.current)===null||n===void 0||n.focus();break;case"ArrowUp":t.stopPropagation(),t.preventDefault(),this.navigateMenu(be.MENU_NAVIGATION_DIRECTION.UP);break;case"ArrowDown":t.stopPropagation(),t.preventDefault(),this.navigateMenu(be.MENU_NAVIGATION_DIRECTION.DOWN);break;case"Tab":if(t.stopPropagation(),t.preventDefault(),t.shiftKey){this.navigateMenu(be.MENU_NAVIGATION_DIRECTION.UP);break}this.navigateMenu(be.MENU_NAVIGATION_DIRECTION.DOWN);break;case"Escape":t.preventDefault(),t.stopPropagation(),this.closeMenu();break}}navigateMenu(t){var n=this.state,r=n.filteredOptions,i=n.keyboardOptionIndex,a=i;t===be.MENU_NAVIGATION_DIRECTION.UP?i>0?(a=(a-1)%r.length,this.setState({keyboardOptionIndex:a})):i===0&&(a=r.length-1,this.setState({keyboardOptionIndex:a})):t===be.MENU_NAVIGATION_DIRECTION.DOWN&&i<r.length&&(a=(a+1)%r.length,this.setState({keyboardOptionIndex:a})),this.scrollOptionIntoView(a)}handleInputKeyDown(t){var n=this.props.onEnter,r=this.state.menuIsOpen;r?this.handleMenuKeyDown(t):t.key==="Enter"?n():t.key==="Escape"?(this.resetValue(),t.preventDefault(),t.stopPropagation()):t.key==="ArrowRight"||t.key==="ArrowLeft"||t.key==="Tab"||t.key==="Shift"||this.openMenu()}handleInputChange(t){this.setState({title:t.target.value}),this.updateInputValue(t.target.value)}handleOptionClick(t){var n;this.setState({title:t.title,invalid:!1}),this.fireOnChange(t.value),this.closeMenu(),(n=this.input.current)===null||n===void 0||n.focus()}handelInputFocus(){var t=this.state.menuIsOpen;t||this.openMenu()}handleInputClick(){var t=this.state.menuIsOpen;t||this.openMenu()}handleInputBlur(t){var n=this.state.menuIsOpen;n&&t.relatedTarget instanceof Element&&this.popper.current!==null&&this.popper.current.element.contains(t.relatedTarget)||this.closeMenu(!1)}handleMenuBlur(t){t.relatedTarget===this.input.current||t.relatedTarget instanceof Element&&this.popper.current!==null&&this.popper.current.element.contains(t.relatedTarget)||this.closeMenu(!1)}handleMenuOpened(){var t;(t=this.input.current)===null||t===void 0||t.focus()}handleMenuExited(){var t=this.state.menuIsOpen;t&&this.setState({menuIsOpen:!1,keyboardOptionIndex:0})}openMenu(){var t=this.state.title;this.processFilterChange(t),this.setInputWidth(),this.setState({menuIsOpen:!0}),window.requestAnimationFrame(()=>{var n;(n=this.popper.current)===null||n===void 0||n.show()})}closeMenu(){var t,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()}(t=this.popper.current)===null||t===void 0||t.hide()}scrollOptionIntoView(t){if(this.menuContainer.current){var n;(n=this.menuContainer.current.children.item(t))===null||n===void 0||n.scrollIntoView({behavior:"smooth",block:"nearest"})}}renderMenuElement(){var t=this.state.inputWidth;return d.jsx("div",{className:H("aci-options"),ref:this.menuContainer,role:"presentation",onKeyDown:this.handleMenuKeyDown,style:{width:t},onBlur:this.handleMenuBlur,children:this.renderOptions()})}renderOptions(){var t=this.props.noMatchText,n=this.state,r=n.title,i=n.filteredOptions;return r&&i.length===0?d.jsx("div",{className:"no-match",children:t}):i.map((a,o)=>this.renderOption(a,o))}renderOption(t,n){var r=this.state.keyboardOptionIndex,i="option-".concat(n,"-").concat(t.value);return d.jsx("button",{type:"button",className:H("aci-option-btn",{"keyboard-active":r===n}),onClick:()=>this.handleOptionClick(t),onFocus:()=>this.setState({keyboardOptionIndex:n}),children:t.title},i)}render(){var t=this.props,n=t.options,r=t.inputPlaceholder,i=t.disabled,a=t.className,o=t.defaultTitle,s=t.spellCheck,l=t["data-testid"],u=this.state,f=u.title,h=u.menuIsOpen,p=u.popperOptions,m=u.invalid;return d.jsxs("div",{className:"aci-container",ref:this.cbContainer,children:[d.jsx("input",{value:f||o,className:H("form-control",a,"aci-input",{"is-invalid":m&&!h}),ref:this.input,onChange:this.handleInputChange,placeholder:r||n[0].title,disabled:i,onFocus:this.handelInputFocus,onClick:this.handleInputClick,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,spellCheck:s,"data-testid":l}),d.jsx(Jt,{ref:this.popper,options:p,className:H("aci-options-popper interactive"),onEntered:this.handleMenuOpened,onExited:this.handleMenuExited,children:this.renderMenuElement()})]})}}_e(be,"defaultProps",{onChange(){},inputPlaceholder:"",disabled:!1,className:"",defaultTitle:"",popperOptions:null,spellCheck:!0,onEnter(){},noMatchText:"No matching items found","data-testid":void 0});_e(be,"MENU_NAVIGATION_DIRECTION",Rl);function Yi(e,t){return US(e)||NS(e,t)||FS(e,t)||MS()}function MS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
14
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FS(e,t){if(e){if(typeof e=="string")return zi(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zi(e,t):void 0}}function zi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function NS(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function US(e){if(Array.isArray(e))return e}function et(e){return e.split(`
15
+ `).map(t=>t.trim()).filter(t=>t).join(" ")}function WS(e,t){for(var n=[],r="",i=null,a=0;a<e.length;){var o=e[a];if(i!==null)r+=o,o===i&&(i=null),a+=1;else if(o==='"'||o==="'"){var s=e.indexOf(o,a+1);s!==-1&&(i=o),r+=o,a+=1}else e.startsWith(t,a)?(n.push(r),r="",a+=t.length):(r+=o,a+=1)}return n.push(r),n}function hn(e,t){return WS(e.trim(),t).filter(n=>n!=="").join(`
16
+ `.concat(t.trim()))}function BS(e){var t=e.className,n=t===void 0?"":t,r=e.value,i=e.onChange,a=e.spellCheck,o=a===void 0?!1:a,s=e.placeholder,l=s===void 0?"":s,u=e.disabled,f=u===void 0?!1:u,h=e.delimiter,p=h===void 0?"":h,m=e.id,v=m===void 0?"":m,g=e["data-testid"],y=c.useState(r),S=Yi(y,2),b=S[0],x=S[1],O=c.useState(!1),T=Yi(O,2),P=T[0],I=T[1],C=c.useRef(null),j=c.useRef(!1),R=c.useRef(b);R.current=b,c.useEffect(function(){!j.current||!p?x(r):et(R.current)!==et(r)&&x(hn(r,p))},[r,p]);function k(){if(C.current){C.current.style.height="0";var $=C.current.scrollHeight+(C.current.offsetHeight-C.current.clientHeight);$>0&&(C.current.style.height="".concat($,"px"))}}function E($){var F=$.target.value;P&&(p&&(F=hn(F,p)),I(!1)),x(F),i(p?et(F):F)}function A(){C.current&&(j.current=!0,p&&(x(hn(b,p)),k()),C.current.scrollLeft=0)}function M(){C.current&&document.activeElement!==C.current&&C.current.focus()}function w(){j.current=!1,p&&(x(et(b)),i(et(b)))}function _(){I(!0)}return c.useEffect(function(){k()},[b]),d.jsx("textarea",{ref:C,id:v,className:H(n,"auto-resize-textarea form-control"),placeholder:l,value:b,rows:1,onChange:E,onFocus:A,onMouseDown:M,onBlur:w,onPaste:_,spellCheck:o,disabled:f,"data-testid":g})}function Dl(e){var t=e.blockInteraction,n=t===void 0?!0:t,r=e.children,i=e.debounceMs,a=e.isOpen,o=a===void 0?!1:a,s=yt(o,i),l=s.value;return d.jsxs(d.Fragment,{children:[n&&o&&d.jsx("div",{className:"modal-backdrop",style:{backgroundColor:"transparent"},"data-testid":"debounced-modal-backdrop"}),J.cloneElement(r,{isOpen:o&&l})]})}function Ll(e){var t=e.className,n=e.icon,r=e.isOpen,i=r===void 0?!1:r,a=e.subtitle,o=e.title;return d.jsx(Zn,{isOpen:i,className:t,children:d.jsx(er,{children:d.jsxs("div",{className:"info-modal",children:[n!=null&&d.jsx("div",{className:"message-icon",children:d.jsx(ce,{icon:n})}),d.jsx("div",{className:"message-header",children:o}),a!=null&&d.jsx("div",{className:"message-content",children:a})]})})})}function qi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qi(Object(n),!0).forEach(function(r){KS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qi(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KS(e,t,n){return(t=VS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VS(e){var t=HS(e,"string");return typeof t=="symbol"?t:t+""}function HS(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var GS=[];function YS(e){var t=e.styleProps,n=e.selectedItemCount,r=e.onClearSelection;return d.jsx(Bo,Xi(Xi({UNSAFE_className:yr.spectrumActionBar},t),{},{isEmphasized:!0,selectedItemCount:n,onClearSelection:r,children:GS}))}function Qi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qi(Object(n),!0).forEach(function(r){Ce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qi(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ce(e,t,n){return(t=qS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qS(e){var t=XS(e,"string");return typeof t=="symbol"?t:t+""}function XS(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ji=ne.module("ContextMenu");class ut extends c.PureComponent{static handleContextMenu(t){t.metaKey||(t.stopPropagation(),t.preventDefault())}constructor(t){super(t),Ce(this,"container",void 0),Ce(this,"oldFocus",void 0),Ce(this,"activeSubMenuRef",void 0),Ce(this,"subMenuTimer",void 0),Ce(this,"rAF",void 0),Ce(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=J.createRef(),this.oldFocus=document.activeElement,this.activeSubMenuRef=J.createRef(),this.subMenuTimer=0,this.rAF=0,this.initialPosition={top:t.top,left:t.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 t;(t=this.container.current)===null||t===void 0||t.focus();var n=this.props.onMenuOpened;n(this)})}componentDidUpdate(t,n){var r=this.props.actions,i=this.state.activeSubMenu;if(i!==n.activeSubMenu)if(i==null){var a;(a=this.container.current)===null||a===void 0||a.focus()}else this.setActiveSubMenuPosition();if(t.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 t=this.props.options;if(t.separateKeyboardMouse!==void 0&&t.separateKeyboardMouse){var n=this.state.keyboardIndex;return n}return this.getMouseIndex()}setKeyboardIndex(t){var n=this.props.options;n.separateKeyboardMouse!==void 0&&n.separateKeyboardMouse?this.setState({keyboardIndex:t}):this.setMouseIndex(t)}getMouseIndex(){var t=this.state.mouseIndex;return t}setMouseIndex(t){this.setState({mouseIndex:t})}initMenu(){this.cancelPromises(),cancelAnimationFrame(this.rAF);var t=this.props.options,n=t.initialKeyboardIndex;n===void 0&&(n=-1);for(var r=this.props.actions,i=Ee.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:Ee.sortActions(a)})}initMenuPromise(t){var n=Fe.makeCancelable(t);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:Ee.sortActions(i.menuItems.concat(r)),pendingItems:o}}return null})},r=>{Fe.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}),Ji.error(r))})}cancelPromises(){var t=this.state.pendingItems;t.map(n=>n.cancel())}setActiveSubMenuPosition(){if(this.activeSubMenuRef.current!==null){var t=this.activeSubMenuRef.current.getBoundingClientRect();this.setState({subMenuTop:t.top,subMenuLeft:t.right,subMenuParentHeight:t.height,subMenuParentWidth:t.width})}}verifyPosition(){var t,n,r,i,a=this.props,o=a.options,s=a.updatePosition,l=a.subMenuParentWidth,u=a.subMenuParentHeight,f=a.top,h=a.left;if(!(!this.container.current||o.doNotVerifyPosition!=null&&o.doNotVerifyPosition)){var p=this.initialPosition,m=p.top,v=p.left,g=(t=(n=this.container.current)===null||n===void 0?void 0:n.getBoundingClientRect())!==null&&t!==void 0?t:{width:0,height:0},y=g.width,S=g.height,b=((r=(i=this.container.current)===null||i===void 0?void 0:i.scrollHeight)!==null&&r!==void 0?r:0)>window.innerHeight;S===0||y===0||(m+S>window.innerHeight&&(m-S-u>0?m-=S-u:m=window.innerHeight-S),v+y>window.innerWidth&&(v=v-y-l),(h!==v||f!==m)&&(this.setState({hasOverflow:b}),s(m,v)))}}handleWindowResize(){this.container.current&&this.closeMenu(!0)}handleBlur(t){if(!this.container.current){Ji.warn("Container is null!");return}if(!this.container.current.contains(t.relatedTarget)){for(var n=t.relatedTarget,r=!1;n&&!r;)r=n.hasAttribute("data-dh-context-menu"),n=n.parentElement;r||this.closeMenu(!0)}}isEscapeKey(t){var n=this.props.left;return t==="Escape"||n<0&&t==="ArrowRight"||t==="ArrowLeft"}handleKeyDown(t){var n=this.state.menuItems,r=this.getKeyboardIndex(),i=r,a=!1;if(t.key==="Enter"||t.key===" "){r>=0&&r<n.length&&this.handleMenuItemClick(n[r],t);return}if(t.key==="ArrowRight"?r>=0&&r<=n.length?a=!0:i=0:this.isEscapeKey(t.key)?i=null:t.key==="ArrowUp"||t.shiftKey&&t.key==="Tab"?i=Ee.getNextMenuItem(i,-1,n):(t.key==="ArrowDown"||t.key==="Tab")&&(i=Ee.getNextMenuItem(i,1,n)),a){this.openSubMenu(r),t.preventDefault(),t.stopPropagation();return}r!==i&&(i!==null?this.setKeyboardIndex(i):(this.closeMenu(),this.oldFocus instanceof HTMLElement&&this.oldFocus.focus()),t.preventDefault(),t.stopPropagation())}openSubMenu(t){var n=this.state,r=n.menuItems,i=n.activeSubMenu,a=r[t].actions?t:null;i!==a&&this.setState({activeSubMenu:a,subMenuTop:null,subMenuLeft:null})}closeMenu(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.props,r=n.closeMenu,i=n.onMenuClosed;cancelAnimationFrame(this.rAF),this.rAF=window.requestAnimationFrame(()=>{r(t),i(this)})}closeSubMenu(){this.setState({activeSubMenu:null})}handleCloseSubMenu(t){t?this.closeMenu(!0):this.closeSubMenu()}handleMenuItemClick(t,n){n.preventDefault(),n.stopPropagation();var r=this.state.menuItems;t!=null&&(t.disabled===void 0||!t.disabled)&&(t.actions!=null?this.openSubMenu(r.indexOf(t)):t.action!=null&&(t.action(n.nativeEvent),this.closeMenu(!0)))}handleMenuItemContextMenu(t,n){n.metaKey||this.handleMenuItemClick(t,n)}handleMenuItemMouseMove(t){var n=this.state.menuItems,r=n.indexOf(t);this.setMouseIndex(r),r>=0&&r<n.length&&(t.disabled===void 0||!t.disabled)&&this.openSubMenu(r)}handleMouseLeave(){this.setMouseIndex(-1)}render(){for(var t=[],n=this.props,r=n.top,i=n.left,a=this.state,o=a.activeSubMenu,s=a.hasOverflow,l=a.keyboardIndex,u=a.menuItems,f=a.mouseIndex,h=a.pendingItems,p=a.subMenuTop,m=a.subMenuLeft,v=a.subMenuParentWidth,g=a.subMenuParentHeight,y=0;y<u.length;y+=1){var S=u[y];y>0&&S.group!==u[y-1].group&&t.push(d.jsx("hr",{},"".concat(y,".separator")));var b=d.jsx(os,{ref:o===y?this.activeSubMenuRef:null,isKeyboardSelected:l===y,isMouseSelected:f===y,menuItem:S,closeMenu:this.handleCloseSubMenu,onMenuItemClick:this.handleMenuItemClick,onMenuItemMouseMove:this.handleMenuItemMouseMove,onMenuItemContextMenu:this.handleMenuItemContextMenu},y);t.push(b)}var x=null;h.length>0&&(x=d.jsx("div",{className:"loading",children:d.jsx(Ht,{className:"loading-spinner-vertical-align"})}));var O=this.props,T=O.menuStyle,P=O["data-testid"],I=o!==null&&p!==null&&m!==null;return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:H({"has-overflow":s},"context-menu-container"),style:zS({top:r,left:i},T),ref:this.container,"data-dh-context-menu":!0,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseLeave:this.handleMouseLeave,onContextMenu:ut.handleContextMenu,role:"menuitem",tabIndex:0,"data-testid":P,children:[t,x]}),I&&o!==null&&p!==null&&m!==null&&d.jsx(ut,{actions:u[o].actions||[],closeMenu:this.handleCloseSubMenu,top:p,left:m,updatePosition:(C,j)=>{this.setState({subMenuTop:C,subMenuLeft:j})},subMenuParentWidth:v,subMenuParentHeight:g},"sub-".concat(o))]})}}Ce(ut,"defaultProps",{subMenuParentWidth:0,subMenuParentHeight:0,closeMenu(){},onMenuOpened(){},onMenuClosed(){},options:{},menuStyle:{},"data-testid":void 0});function Zi(e,t,n){return(t=QS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QS(e){var t=JS(e,"string");return typeof t=="symbol"?t:t+""}function JS(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Ml extends c.Component{constructor(t){super(t),Zi(this,"container",void 0),Zi(this,"openMenu",void 0),this.handleMenuClose=this.handleMenuClose.bind(this),this.handleContextMenu=this.handleContextMenu.bind(this),this.container=J.createRef(),this.openMenu=J.createRef(),this.state={actions:null,left:0,top:0}}componentDidMount(){var t;(t=this.container.current)!==null&&t!==void 0&&t.parentElement&&this.container.current.parentElement.addEventListener("contextmenu",this.handleContextMenu)}componentWillUnmount(){var t;(t=this.container.current)!==null&&t!==void 0&&t.parentElement&&this.container.current.parentElement.removeEventListener("contextmenu",this.handleContextMenu)}handleContextMenu(t){if(this.container.current){var n=this.container.current.getBoundingClientRect(),r=t.clientY-n.top,i=t.clientX-n.left,a=this.state.actions;if(a!=null&&t.target===this.container.current){t.preventDefault(),this.setState({actions:null},()=>{var s=document.elementFromPoint(i,r),l=new MouseEvent("contextmenu",{clientX:t.clientX,clientY:t.clientY,bubbles:!0,cancelable:!0});s==null||s.dispatchEvent(l)});return}if(Ee.isContextActionEvent(t)&&!(t.metaKey||t.ctrlKey)){var o=Ee.getMenuItems(t.contextActions);o.length!==0&&(t.preventDefault(),this.setState({actions:o,top:r,left:i}))}}}handleMenuClose(t){t===this.openMenu.current&&this.setState({actions:null})}render(){var t=null,n=this.props["data-testid"],r=this.state,i=r.actions,a=r.top,o=r.left;return i&&(t=d.jsx(ut,{ref:this.openMenu,actions:i,onMenuClosed:this.handleMenuClose,top:a,left:o,updatePosition:(s,l)=>{this.setState({top:s,left:l})},"data-testid":n})),d.jsx("div",{className:H("context-menu-root",{active:i}),ref:this.container,children:t})}}function Fl(e,t,n){return(t=ZS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZS(e){var t=eP(e,"string");return typeof t=="symbol"?t:t+""}function eP(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class ct extends c.Component{static getHeight(t){var n=t.scrollWidth-t.clientWidth;return t.scrollHeight-n}constructor(t){super(t),Fl(this,"nodeRef",J.createRef()),this.handleEntered=this.handleEntered.bind(this)}handleEntered(){var t=this.nodeRef.current;if(t){t.style.height="";var n=this.props.autoFocusOnShow;if(n!==void 0&&n){var r=t.querySelector("input, select, textarea");r!=null&&r.focus()}}}handleEnter(){var t=this.nodeRef.current;t&&(t.style.height="0")}handleEntering(){var t=this.nodeRef.current;t&&(t.style.height="".concat(ct.getHeight(t),"px"))}handleExiting(){var t=this.nodeRef.current;t&&(t.style.height="0")}handleExit(){var t=this.nodeRef.current;t&&(t.style.height="".concat(ct.getHeight(t),"px"))}render(){var t=this.props,n=t.children,r=t.className,i=t.in,a=t["data-testid"];return d.jsx(Ko,{in:i,classNames:{enterActive:"collapsing",enterDone:"collapse show",exitActive:"collapsing",exitDone:"collapse"},onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered,onExit:this.handleExit,onExiting:this.handleExiting,timeout:350,nodeRef:this.nodeRef,children:o=>d.jsx("div",{ref:this.nodeRef,className:H({collapse:o==="exited"},r),"data-testid":a,children:n})})}}Fl(ct,"defaultProps",{className:"",autoFocusOnShow:!1,"data-testid":void 0});function ea(e,t){return iP(e)||rP(e,t)||nP(e,t)||tP()}function tP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
17
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nP(e,t){if(e){if(typeof e=="string")return ta(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ta(e,t):void 0}}function ta(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function rP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function iP(e){if(Array.isArray(e))return e}var aP=ne.module("TimeInput"),oP="([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]",sP=["00:00:00","12:34:56","23:59:59"];function na(e){return e!=null?"".concat(e.substring(0,8).replace(/\u2007/g,"0")).concat("00:00:00".substring(e.length)):e}var Ut=J.forwardRef((e,t)=>{var n=e.allowValueWrapping,r=n===void 0?!0:n,i=e.className,a=i===void 0?"":i,o=e.onChange,s=o===void 0?ge:o,l=e.value,u=l===void 0?0:l,f=e.onFocus,h=f===void 0?ge:f,p=e.onBlur,m=p===void 0?ge:p,v=e.onSelect,g=v===void 0?ge:v,y=e["data-testid"],S=c.useState(Dt.formatTime(u)),b=ea(S,2),x=b[0],O=b[1],T=c.useRef(u),P=c.useState(),I=ea(P,2),C=I[0],j=I[1],R=c.useRef(null);c.useImperativeHandle(t,()=>({focus:()=>{var _;(_=R.current)===null||_===void 0||_.focus()},setSelection:_=>{var $;($=R.current)===null||$===void 0||$.focus(),j(_)}}),[]),c.useEffect(function(){T.current!==u&&(O(Dt.formatTime(u)),T.current=u)},[T,u]);function k(_,$,F){var G=_.selectionStart===0?24:60,Y=parseInt(F,10)-$;return Number.isNaN(Y)?Y=0:r?Y=(Y%G+G)%G:Y=Math.min(Math.max(0,Y),G-1),"".concat(Y).padStart(2,"0")}function E(_,$,F,G,Y){return G===0&&Y===2&&$===1&&parseInt(F,10)>1?"0".concat(F).concat(_.substring(2)):Zs(_,$,F)}var A=c.useCallback(_=>{aP.debug("handleChange",_),O(_),T.current=Dt.parseTime(na(_)),s(T.current)},[s]),M=c.useCallback(()=>{var _=na(x);_!==x&&O(_),m()},[x,m]),w=c.useCallback(_=>{j(_),g(_)},[g]);return d.jsx(vr,{ref:R,className:a,example:sP,getNextSegmentValue:k,getPreferredReplacementString:E,onChange:A,onSelect:w,pattern:oP,selection:C,value:x,onFocus:h,onBlur:M,"data-testid":y})});function ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ra(Object(n),!0).forEach(function(r){Ie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ra(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ie(e,t,n){return(t=uP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uP(e){var t=cP(e,"string");return typeof t=="symbol"?t:t+""}function cP(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ia=-1,Nl=function(e){return e.UP="UP",e.DOWN="DOWN",e}(Nl||{});class pe extends c.Component{constructor(t){super(t),Ie(this,"csContainer",void 0),Ie(this,"menuContainer",void 0),Ie(this,"button",void 0),Ie(this,"input",void 0);var n=t.value,r=t.valueToTime;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=J.createRef(),this.menuContainer=J.createRef(),this.button=J.createRef(),this.input=J.createRef(),this.state={keyboardOptionIndex:0,menuIsOpen:!1,inputWidth:100,customTime:r(n),inputFocused:!1}}getSelectedText(){var t=this.props,n=t.options,r=t.value,i=t.placeholder,a=this.state.customTime;if(r===null)return i;for(var o=0;o<n.length;o+=1){var s=n[o];if(s.value===r)return s.title}return Dt.formatTime(a)}setInputWidth(){this.csContainer.current&&this.setState({inputWidth:this.csContainer.current.getBoundingClientRect().width})}focus(){var t;(t=this.button.current)===null||t===void 0||t.focus()}updateInputValue(t){var n=this.props.onChange;n(t)}handleResize(){this.setInputWidth()}handleMenuKeyDown(t){var n,r=this.state,i=r.keyboardOptionIndex,a=r.inputFocused,o=this.props.options;switch(t.key){case"Enter":case" ":a?this.updateFromCustom():this.updateInputValue(o[i].value),this.closeMenu(),(n=this.button.current)===null||n===void 0||n.focus(),t.stopPropagation(),t.preventDefault();break;case"Tab":t.shiftKey?this.handleMenuNavigation(pe.MENU_NAVIGATION_DIRECTION.UP):this.handleMenuNavigation(pe.MENU_NAVIGATION_DIRECTION.DOWN),t.stopPropagation(),t.preventDefault();break;case"ArrowUp":this.handleMenuNavigation(pe.MENU_NAVIGATION_DIRECTION.UP),t.stopPropagation(),t.preventDefault();break;case"ArrowDown":this.handleMenuNavigation(pe.MENU_NAVIGATION_DIRECTION.DOWN),t.stopPropagation(),t.preventDefault();break;case"Escape":this.closeMenu();break}}handleMenuNavigation(t){var n=this.state,r=n.keyboardOptionIndex,i=n.inputFocused,a=this.props.options,o=a.length,s=r;switch(t){case pe.MENU_NAVIGATION_DIRECTION.UP:if(!i&&r===0){this.focusInput();break}else i&&this.focusOption(r);r>0&&!i?(s=(s-1)%o,this.setState({keyboardOptionIndex:s})):r===0&&(s=o-1,this.setState({keyboardOptionIndex:s})),this.scrollOptionIntoView(s);break;case pe.MENU_NAVIGATION_DIRECTION.DOWN:if(!i&&r===o-1){this.focusInput();break}else i&&this.focusOption(r);r<o&&!(i&&r===0)&&(s=(s+1)%o,this.setState({keyboardOptionIndex:s})),this.scrollOptionIntoView(s);break}}handleOptionClick(t){var n=Number(t.currentTarget.value),r=this.props,i=r.options,a=r.timeToValue,o=this.state.customTime;if(n===ia){var s=a(o);this.updateAndClose(s)}else this.updateAndClose(i[n].value)}updateAndClose(t){var n;this.updateInputValue(t),this.closeMenu(),(n=this.button.current)===null||n===void 0||n.focus()}handleOptionFocus(t){this.setState({keyboardOptionIndex:Number(t.target.value)})}handleMenuOpened(){var t,n=this.props,r=n.options,i=n.value,a=this.state.keyboardOptionIndex;this.scrollOptionIntoView(a);var o=(t=this.menuContainer.current)===null||t===void 0?void 0:t.querySelector(".cs-option-btn.keyboard-active");if(o instanceof HTMLElement&&o.focus(),i!==null){var s=r.map(l=>l.value).indexOf(i);s<0&&this.focusInput()}}focusInput(){var t;(t=this.input.current)===null||t===void 0||t.focus()}focusOption(t){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(t);i instanceof HTMLElement&&i.focus()}}handleMenuExited(){var t=this.state.menuIsOpen;t&&this.setState({menuIsOpen:!1,keyboardOptionIndex:0})}handleCustomInput(t){var n=this.props.timeToValue,r=n(t);this.updateInputValue(r),this.setState({customTime:t})}updateFromCustom(){var t=this.props.timeToValue,n=this.state.customTime,r=t(n);this.updateInputValue(r)}toggleMenu(t){var n=this.state.menuIsOpen;n?this.closeMenu():this.openMenu(),t.stopPropagation()}openMenu(){this.updateKeyboardIndex(),this.setInputWidth(),this.setState({menuIsOpen:!0})}closeMenu(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(this.setState({menuIsOpen:!1}),t){var n;(n=this.button.current)===null||n===void 0||n.focus()}}updateKeyboardIndex(){var t=this.props,n=t.options,r=t.value;if(r!==null){var i=n.map(a=>a.value).indexOf(r);i>0&&this.setState({keyboardOptionIndex:i})}}scrollOptionIntoView(t){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(t);i instanceof HTMLElement&&i.offsetTop>pe.DROP_DOWN_MENU_HEIGHT?r.scrollTop=i.offsetTop-pe.DROP_DOWN_MENU_HEIGHT:(i instanceof HTMLElement&&i.offsetTop<0||t===0)&&(r.scrollTop=0)}}renderMenuElement(){var t=this.state.inputWidth;return d.jsx("div",{className:"cs-menu-container",ref:this.menuContainer,role:"presentation",onKeyDown:this.handleMenuKeyDown,onClick:n=>{n.stopPropagation()},style:{width:t},children:d.jsx("div",{className:"cs-options-container",children:d.jsx("div",{className:"cs-options",children:this.renderOptions()})})})}renderOptions(){for(var t=this.props,n=t.options,r=t.value,i=t.icon,a=t.customText,o=this.state,s=o.keyboardOptionIndex,l=o.customTime,u=o.inputFocused,f=!1,h=[],p=0;p<n.length;p+=1){var m=n[p],v="option-".concat(p,"-").concat(m.value);f=f||m.value===r,h.push(d.jsxs("button",{type:"button",value:p,className:H("cs-option-btn",{"keyboard-active":s===p&&!u}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[m.value===r&&d.jsx(ce,{icon:i,className:"mr-2"}),m.value!==r&&d.jsx("span",{className:"mr-4"}),m.title]},v))}return h.push(d.jsx("hr",{className:"cs-divider"},"option-divider")),h.push(d.jsxs("button",{type:"button",value:ia,className:H("cs-option-btn",{"keyboard-active":u}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[!f&&r!==null?d.jsx(ce,{icon:i,className:"mr-2"}):d.jsx("span",{className:"mr-4"}),a]},"option-custom-label")),h.push(d.jsxs("div",{className:"cs-custom-container",children:[d.jsx("span",{className:"mr-2"}),d.jsx(Ut,{ref:this.input,onChange:this.handleCustomInput,value:l,onFocus:()=>this.setState({inputFocused:!0}),onBlur:()=>this.setState({inputFocused:!1})},"option-input"),d.jsx("span",{className:"ml-2"})]},"cs-custom-container")),h.push(d.jsx("hr",{className:"mb-2"},"option-end")),h}render(){var t=this.props,n=t.disabled,r=t.invalid,i=t.value,a=t["data-testid"],o=this.state.menuIsOpen,s=this.props.popperOptions;return s=lP({placement:"bottom-end",modifiers:{preventOverflow:{enabled:!1}}},s),d.jsx("div",{className:"input-group cs-container context-menu",ref:this.csContainer,"data-testid":a,children:d.jsx("div",{className:H("input-group-append cs-dropdown",{"cs-dropdown-invalid":r}),children:d.jsxs("button",{type:"button",className:H("btn cs-btn form-control",{"cs-btn-invalid":r}),ref:this.button,onClick:this.toggleMenu,disabled:n,children:[d.jsx("span",{className:H({"text-muted":i===null}),children:this.getSelectedText()}),d.jsx("span",{className:"cs-caret"}),d.jsx(ss,{isShown:o,actions:{menuElement:this.renderMenuElement()},popperOptions:s,popperClassName:"CustomTimeSelect",onMenuOpened:this.handleMenuOpened,onMenuClosed:this.handleMenuExited,menuStyle:{maxWidth:"100rem"}})]})})})}}Ie(pe,"MENU_NAVIGATION_DIRECTION",Nl);Ie(pe,"DROP_DOWN_MENU_HEIGHT",125);Ie(pe,"defaultProps",{onChange(){},value:null,disabled:!1,popperOptions:{},icon:Fd,customText:"Custom",placeholder:"Select a time",valueToTime:e=>e===null?0:Math.round(e/1e3),timeToValue:e=>e*1e3,invalid:!1,"data-testid":void 0});function aa(e,t){return hP(e)||pP(e,t)||fP(e,t)||dP()}function dP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fP(e,t){if(e){if(typeof e=="string")return oa(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oa(e,t):void 0}}function oa(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function pP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function hP(e){if(Array.isArray(e))return e}var mP=ne.module("DateInput"),yP="[12][0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])",gP=["2000-01-01","2022-12-31"],vP="YYYY-MM-DD",Ul=J.forwardRef((e,t)=>{var n=e.className,r=n===void 0?"":n,i=e.onChange,a=i===void 0?()=>{}:i,o=e.defaultValue,s=o===void 0?"":o,l=e.onFocus,u=l===void 0?()=>{}:l,f=e.onBlur,h=f===void 0?()=>{}:f,p=e["data-testid"],m=c.useState(s),v=aa(m,2),g=v[0],y=v[1],S=c.useState(),b=aa(S,2),x=b[0],O=b[1],T=c.useCallback(P=>{mP.debug("handleChange",P),y(P),a(P)},[a]);return d.jsx("div",{className:"d-flex flex-row align-items-center",children:d.jsx(vr,{ref:t,className:H(r),example:gP,getNextSegmentValue:Fy,onChange:T,onSelect:O,pattern:yP,placeholder:vP,selection:x,value:g,onFocus:u,onBlur:h,"data-testid":p})})});Ul.displayName="DateInput";var bP={CYCLE_TO_NEXT_STACK:De.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_STACK",name:"Cycle To Next Stack",shortcut:[se.CTRL,fe.SINGLE_QUOTE],macShortcut:[se.CMD,fe.SINGLE_QUOTE],isEditable:!0}),CYCLE_TO_PREVIOUS_STACK:De.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_STACK",name:"Cycle To Previous Stack",shortcut:[se.CTRL,fe.SEMICOLON],macShortcut:[se.CMD,fe.SEMICOLON],isEditable:!0}),CYCLE_TO_NEXT_TAB:De.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_TAB",name:"Cycle To Next Tab",shortcut:[se.CTRL,se.SHIFT,fe.DOUBLE_QUOTE],macShortcut:[se.CMD,se.SHIFT,fe.SINGLE_QUOTE],isEditable:!0}),CYCLE_TO_PREVIOUS_TAB:De.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_TAB",name:"Cycle To Previous Tab",shortcut:[se.CTRL,se.SHIFT,fe.COLON],macShortcut:[se.CMD,se.SHIFT,fe.SEMICOLON],isEditable:!0}),CYCLE_TO_NEXT_DASHBOARD:De.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_DASHBOARD",name:"Cycle To Next Dashboard",shortcut:[se.CTRL,fe.PERIOD],macShortcut:[se.CMD,fe.PERIOD],isEditable:!0}),CYCLE_TO_PREVIOUS_DASHBOARD:De.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_DASHBOARD",name:"Cycle To Previous Dashboard",shortcut:[se.CTRL,fe.COMMA],macShortcut:[se.CMD,fe.COMMA],isEditable:!0})};function mn(e,t){return OP(e)||wP(e,t)||PP(e,t)||SP()}function SP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
19
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PP(e,t){if(e){if(typeof e=="string")return sa(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sa(e,t):void 0}}function sa(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function OP(e){if(Array.isArray(e))return e}function xP(e){var t=e.isInvalid,n=t===void 0?!1:t,r=e.items,i=e.onAdd,a=i===void 0?()=>{}:i,o=e.onDelete,s=o===void 0?()=>{}:o,l=e.validate,u=l===void 0?()=>null:l,f=c.useState(null),h=mn(f,2),p=h[0],m=h[1],v=c.useState([]),g=mn(v,2),y=g[0],S=g[1],b=c.useState(""),x=mn(b,2),O=x[0],T=x[1],P=c.useCallback(A=>{S(A)},[]),I=c.useCallback(()=>{s(Xr.getItemsInRanges(r,y)),S([])},[r,y,s]),C=c.useCallback(()=>{if(O!==""){var A=u(O);A==null?(a(O),T("")):m(A)}},[O,a,u]),j=c.useCallback(A=>{var M=A.target.value;T(M),m(M===""?null:u(M))},[u]),R=c.useCallback(()=>{S([])},[]),k=c.useCallback(A=>{A.key==="Enter"&&C()},[C]),E=c.useMemo(()=>14+Vo(r.length,1,6)*_n.DEFAULT_ROW_HEIGHT,[r.length]);return d.jsxs("div",{className:H("editable-item-list-container",{"is-invalid":n}),children:[d.jsx("div",{style:{height:E},children:d.jsx(_n,{itemCount:r.length,items:r.map((A,M)=>({value:A,isSelected:Xr.isSelected(y,M)})),offset:0,selectedRanges:y,onSelectionChange:P,isMultiSelect:!0})}),d.jsxs("div",{className:"d-flex flex-row pt-2",children:[d.jsx("div",{className:"d-flex flex-grow-1",children:d.jsx("input",{className:H("form-control",{"is-invalid":p!=null}),placeholder:"Enter value",type:"text",value:O,onChange:j,onFocus:R,onKeyDown:k})}),d.jsxs("div",{className:"d-flex align-items-start mt-1 ml-2",children:[d.jsx(le,{kind:"ghost",onClick:C,disabled:p!=null||O==="",icon:Nd,tooltip:"Add new item","data-testid":"add-item-button"}),d.jsx(le,{kind:"ghost",onClick:I,disabled:y.length===0,icon:Zo,tooltip:"Delete selected items","data-testid":"delete-item-button"})]})]})]})}function la(e,t){return _P(e)||EP(e,t)||CP(e,t)||TP()}function TP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
20
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CP(e,t){if(e){if(typeof e=="string")return ua(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ua(e,t):void 0}}function ua(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function EP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function _P(e){if(Array.isArray(e))return e}function IP(e){var t=e.message,n=e.isExpanded,r=n===void 0?!1:n,i=e.type,a=i===void 0?"Error":i,o=e.onDismiss,s=c.useState(!1),l=la(s,2),u=l[0],f=l[1],h=c.useState(!1),p=la(h,2),m=p[0],v=p[1],g=c.useRef(null),y=c.useRef(null),S=c.useCallback(()=>{if(!(m||r||y.current==null)){var x=y.current.scrollHeight>y.current.clientHeight;f(x)}},[m,r]),b=st(S,100);return nn(g.current,b),c.useLayoutEffect(b,[b]),d.jsxs("div",{className:H("error-view",{expanded:m||r}),ref:g,children:[d.jsxs("div",{className:"error-view-header",children:[d.jsxs("div",{className:"error-view-header-text",children:[d.jsx(ce,{icon:Ud}),d.jsx("span",{children:a})]}),d.jsxs("div",{className:"error-view-buttons",children:[d.jsx(ls,{UNSAFE_className:"error-view-copy-button",tooltip:"Copy error contents",copy:"".concat(a,": ").concat(t).trim()}),(u||m)&&!r&&d.jsx(le,{kind:"danger",className:"error-view-expand-button",onClick:()=>{v(!m)},icon:m?Wd:Bd,children:m?"Show Less":"Show More"}),o!=null&&d.jsx(le,{kind:"danger",className:"error-view-dismiss-button",onClick:o,icon:tr,children:"Dismiss"})]})]}),d.jsx("pre",{className:"error-view-text",ref:y,children:t})]})}function ca(e,t){return kP(e)||$P(e,t)||AP(e,t)||jP()}function jP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
21
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AP(e,t){if(e){if(typeof e=="string")return da(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?da(e,t):void 0}}function da(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $P(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function kP(e){if(Array.isArray(e))return e}function RP(e,t,n){return(t=DP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DP(e){var t=LP(e,"string");return typeof t=="symbol"?t:t+""}function LP(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Ge extends c.Component{static isParentSelected(t,n){var r=n.get(t);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(t){super(t),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(t){t.stopPropagation(),t.preventDefault(),this.setState(n=>{var r=n.menuIsOpen;return{menuIsOpen:!r}})}toggleValueFor(t,n){var r=this.props,i=r.valueMap,a=r.onUpdateValueMap,o=new Map(i),s=o.get(t);if(s instanceof Map){var l=new Map(s);if(n!=null)l.set(n,s.get(n)!==!0);else{var u=Ge.isParentSelected(t,o),f=u==null||!u;s.forEach((m,v)=>l.set(v,f))}o.set(t,l)}else o.set(t,s==null||!s);var h=o.get(t);if(n===void 0&&h!==void 0&&typeof h!="boolean"){var p=Ge.isParentSelected(t,i);p!=null&&p?h.forEach((m,v)=>h.set(v,!1)):h.forEach((m,v)=>h.set(v,!0))}a(o)}setAllValues(t){var n=this.props,r=n.valueMap,i=n.onUpdateValueMap,a=new Map;r.forEach((o,s)=>{if(typeof o=="boolean")a.set(s,t);else{var l=new Map;o.forEach((u,f)=>l.set(f,t)),a.set(s,l)}}),i(a)}selectAll(){this.setAllValues(!0)}clear(){this.setAllValues(!1)}renderMenuElement(){var t=this.props,n=t.valueMap,r=t["data-testid"];return d.jsxs("div",{className:"hcm-menu-container",children:[Array.from(n.entries()).map(i=>{var a=ca(i,2),o=a[0],s=a[1];return d.jsxs("div",{children:[d.jsx(In,{className:"hcm-parent",checked:Ge.isParentSelected(o,n),onChange:()=>this.toggleValueFor(o),children:o}),s!==void 0&&typeof s!="boolean"&&Array.from(s.entries()).map(l=>{var u=ca(l,2),f=u[0],h=u[1];return d.jsx(In,{className:"hcm-child",checked:h,onChange:()=>this.toggleValueFor(o,f),children:f},f)})]},o)}),d.jsx(le,{kind:"ghost",onClick:this.selectAll,"data-testid":r!==void 0?"".concat(r,"-btn-select-all"):void 0,children:"Select All"}),d.jsx(le,{kind:"ghost",onClick:this.clear,"data-testid":r!==void 0?"".concat(r,"-btn-clear"):void 0,children:"Clear"})]})}render(){var t=this.props,n=t.menuText,r=t.className,i=t.icon,a=t.id,o=t["data-testid"],s=this.state.menuIsOpen;return d.jsxs("button",{type:"button",className:H("btn hcm-btn",r),onClick:this.toggleMenu,id:a,"data-testid":o,children:[d.jsxs("span",{children:[i&&d.jsx(ce,{icon:i,className:"hcm-icon mr-1"}),n]}),d.jsx("span",{className:"cs-caret"}),d.jsx(Jt,{options:{placement:"bottom"},isShown:s,onExited:()=>{this.setState({menuIsOpen:!1})},closeOnBlur:!0,interactive:!0,children:this.renderMenuElement()})]})}}RP(Ge,"defaultProps",{className:"",icon:null,id:"","data-testid":void 0});function fa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fa(Object(n),!0).forEach(function(r){MP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fa(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function MP(e,t,n){return(t=FP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FP(e){var t=NP(e,"string");return typeof t=="symbol"?t:t+""}function NP(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wl=c.memo(e=>{var t=e.tab,n=e.onClose,r=e.onSelect,i=e.isActive,a=e.activeRef,o=e.index,s=e.isDraggable,l=e.contextActions,u=e.renderAfterTabContent,f=t.key,h=t.isClosable,p=h===void 0?n!=null:h,m=t.title,v=t.icon,g;return v!=null&&(g=J.isValidElement(v)?v:d.jsx(ce,{icon:v})),d.jsx(bc,{draggableId:f,index:o,isDragDisabled:!s,children:(y,S)=>d.jsxs("div",{className:"context-menu-wrapper",ref:i?a:null,children:[d.jsxs("div",yn(yn(yn({ref:y.innerRef},y.draggableProps),y.dragHandleProps),{},{className:H("btn btn-link btn-nav-tab",{active:i},{dragging:S.isDragging}),"data-testid":"btn-nav-tab-".concat(m),role:"tab",tabIndex:0,onAuxClick:b=>{p&&b.button===1&&b.buttons===0&&(n==null||n(f))},onClick:b=>{if(p&&b.button===1&&b.buttons===0){n==null||n(f);return}b.button===0&&b.buttons===0&&(b.target.focus(),r(f))},onKeyPress:b=>{b.key==="Enter"&&r(f)},children:[g,d.jsxs("span",{className:"btn-nav-tab-title",children:[m,d.jsx(ht,{children:m})]}),u==null?void 0:u(t),p&&d.jsx(le,{kind:"ghost",className:"btn-nav-tab-close",onClick:b=>{n==null||n(f),b.stopPropagation(),b.preventDefault()},icon:tr,tooltip:"Close"})]})),d.jsx(Zt,{actions:l})]})},f)});Wl.displayName="NavTab";function pa(e,t){return KP(e)||BP(e,t)||WP(e,t)||UP()}function UP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
22
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WP(e,t){if(e){if(typeof e=="string")return ha(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ha(e,t):void 0}}function ha(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function BP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function KP(e){if(Array.isArray(e))return e}function Bl(e){var t=e.onSelect,n=e.tabs,r=n===void 0?us:n,i=c.useState(""),a=pa(i,2),o=a[0],s=a[1],l=c.useState(0),u=pa(l,2),f=u[0],h=u[1],p=c.useRef(null),m=c.useRef(null),v=c.useRef([]);c.useEffect(()=>{var P;(P=p.current)===null||P===void 0||P.focus()},[]),c.useEffect(()=>{h(0)},[o]),c.useEffect(()=>{if(f>=0&&v.current[f]){var P;(P=v.current[f])===null||P===void 0||P.scrollIntoView({behavior:"auto",block:"nearest"})}},[f]);var g=c.useCallback(P=>{s(P.target.value)},[]),y=c.useCallback(P=>{t(P)},[t]),S=c.useCallback(P=>{P.preventDefault()},[]),b=c.useMemo(()=>r.filter(P=>P.title.toLowerCase().includes(o.toLowerCase())),[o,r]).sort((P,I)=>{var C;return(C=P.title.localeCompare(I.title))!==null&&C!==void 0?C:0}),x=c.useCallback(P=>{if(P.key==="ArrowDown"&&b.length>0)P.preventDefault(),h(C=>C===-1?0:(C+1)%b.length);else if(P.key==="ArrowUp"&&b.length>0)P.preventDefault(),h(C=>C===-1?b.length-1:(C-1+b.length)%b.length);else if(P.key==="Enter"&&b.length>0){P.preventDefault();var I=f>=0?f:0;y(b[I])}else P.key==="Tab"&&P.preventDefault()},[b,f,y]),O=c.useMemo(()=>b.map((P,I)=>{var C;return d.jsx("li",{ref:j=>{v.current[I]=j},onMouseDown:S,children:d.jsxs(le,{kind:"ghost","data-testid":"dashboard-list-item-".concat((C=P.key)!==null&&C!==void 0?C:"","-button"),onClick:()=>y(P),className:f===I?"focused":"",style:{transition:"none"},children:[P.icon?d.jsx("span",{className:"dashboard-list-item-icon",children:J.isValidElement(P.icon)?P.icon:d.jsx(ce,{icon:P.icon})}):null,P.title]})},P.key)}),[b,y,f,S]),T=c.useMemo(()=>O.length===0?d.jsx("span",{children:"No open dashboard found."}):null,[O]);return d.jsxs("div",{className:"dashboard-list-container d-flex flex-column",children:[d.jsx("div",{className:"dashboard-list-header",children:d.jsx(ar,{value:o,placeholder:"Find open dashboard",endPlaceholder:en.OPEN_DASHBOARD_LIST.getDisplayText(),onChange:g,onKeyDown:x,ref:p})}),d.jsxs("ul",{className:"dashboard-list flex-grow-1",ref:m,children:[T&&d.jsx("li",{className:"dashboard-list-message",children:T}),!T&&O]})]})}function ma(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ya(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ma(Object(n),!0).forEach(function(r){VP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ma(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VP(e,t,n){return(t=HP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HP(e){var t=GP(e,"string");return typeof t=="symbol"?t:t+""}function GP(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ct(e,t){return XP(e)||qP(e,t)||zP(e,t)||YP()}function YP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
23
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zP(e,t){if(e){if(typeof e=="string")return ga(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ga(e,t):void 0}}function ga(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function XP(e){if(Array.isArray(e))return e}var QP=500,JP=.01,ZP=5e-4;function va(e){return e.scrollLeft===0}function ba(e){return Math.abs(e.scrollLeft+e.clientWidth-e.scrollWidth)<=1||e.scrollWidth===0}function ew(e,t,n){var r=e.isClosable,i=r===void 0?!1:r,a=e.key,o=[];if(i&&n!=null){o.push({title:"Close",order:10,group:20,action:()=>{n(a)}});for(var s=!0,l=t.length-1;l>0&&t[l].key!==e.key;l-=1)if(t[l].isClosable===!0){s=!1;break}o.push({title:"Close to the Right",order:20,group:20,action:()=>{for(var u=t.length-1;u>0&&t[u].key!==a;u-=1)t[u].isClosable===!0&&n(t[u].key)},disabled:s}),o.push({title:"Close All",order:30,group:20,action:()=>{t.forEach(u=>{u.isClosable===!0&&n(u.key)})}})}return o}function tw(e){var t=e.activeKey,n=e.tabs,r=e.onSelect,i=e.onReorder,a=e.onClose,o=e.makeContextActions,s=e.renderAfterTabContent,l=c.useRef(),u=c.useState(!0),f=Ct(u,2),h=f[0],p=f[1],m=c.useState(!1),v=Ct(m,2),g=v[0],y=v[1],S=c.useState(!0),b=Ct(S,2),x=b[0],O=b[1],T=c.useState(!0),P=Ct(T,2),I=P[0],C=P[1],j=c.useCallback(()=>{l.current!=null&&(l.current.clientWidth<l.current.scrollWidth&&n.length>0?p(!0):p(!1),O(va(l.current)),C(ba(l.current)))},[n]);nn(l.current,j);var R=c.useCallback(D=>{kn.stopDragging(),D.destination&&(i==null||i(D.source.index,D.destination.index))},[i]),k=c.useCallback(()=>{if(l.current!=null){var D=va(l.current);D!==x&&O(D);var U=ba(l.current);U!==I&&C(U)}},[x,I]),E=c.useRef({cancelClick:!1}),A=c.useCallback(()=>{if(!(l.current==null||E.current.cancelClick))for(var D=l.current.children,U=D.length-1;U>=0;U-=1){var V=D[U];if(V.offsetLeft<l.current.scrollLeft-5){V.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"});return}}},[]),M=c.useCallback(()=>{if(!(l.current==null||E.current.cancelClick))for(var D=l.current.children,U=0;U<D.length;U+=1){var V=D[U];if(V.offsetLeft+V.offsetWidth-5>l.current.scrollLeft+l.current.offsetWidth){V.scrollIntoView({behavior:"smooth",block:"nearest",inline:"end"});return}}},[]),w=c.useCallback(function(D,U){var V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,K=arguments.length>3?arguments[3]:void 0,Z=l.current;Z!=null&&(E.current.cancelClick=!0,D==="left"?Z.scrollLeft=U-V:D==="right"&&(Z.scrollLeft=U+V),E.current.rAF=requestAnimationFrame(re=>{var ue=K??re,L=re-ue,N=JP*L+.5*ZP*L**2;N=Math.min(N,Z.scrollWidth),w(D,U,N,ue)}))},[]),_=c.useCallback(()=>{var D=E.current,U=D.holdTimer,V=D.rAF;U!=null&&(clearTimeout(U),E.current.holdTimer=void 0),V!=null&&(cancelAnimationFrame(V),E.current.rAF=void 0),window.removeEventListener("mouseup",_)},[]);c.useEffect(()=>()=>window.removeEventListener("mouseup",_),[_]);var $=c.useCallback(D=>{l.current!=null&&(E.current.holdTimer=window.setTimeout(w,QP,D,l.current.scrollLeft)),E.current.cancelClick=!1,window.addEventListener("mouseup",_)},[_,w]),F=c.useCallback(()=>{$("left")},[$]),G=c.useCallback(()=>{$("right")},[$]);c.useEffect(function(){var U,V=K=>{K.stopPropagation(),K.preventDefault();var Z=K.currentTarget,re=Math.abs(K.deltaY)>Math.abs(K.deltaX)?K.deltaY:K.deltaX;Z.scrollLeft+=Vo(re,-30,30)};return(U=l.current)===null||U===void 0||U.addEventListener("wheel",V),()=>{var K;(K=l.current)===null||K===void 0||K.removeEventListener("wheel",V)}},[]);var Y=c.useMemo(()=>{var D=new Map;return n.forEach(U=>{var V=U.key,K=[()=>ew(U,n,a),()=>{var Z;return(Z=o==null?void 0:o(U))!==null&&Z!==void 0?Z:[]}];D.set(V,K)}),D},[o,n,a]),ie=c.useRef(null),Se=n.find(D=>D.key===t),oe=n.map((D,U)=>{var V=D.key,K=D===Se;return d.jsx(Wl,{tab:D,index:U,isActive:K,activeRef:ie,onSelect:r,onClose:a,isDraggable:i!=null,contextActions:Y.get(V),renderAfterTabContent:s},V)});c.useEffect(function(){ie.current!=null&&ie.current.scrollIntoView({block:"nearest",inline:"nearest"})},[t]);var X=()=>{y(!g)},Q=D=>{y(!1),r(D.key)},q=()=>{y(!1)};return d.jsxs("nav",{className:"nav-container",children:[h&&d.jsx(le,{kind:"ghost",icon:d.jsx(ce,{icon:Kd,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-left",tooltip:"Scroll left",onClick:A,onMouseDown:F,disabled:x}),d.jsx(Sc,{onDragStart:kn.startDragging,onDragEnd:R,children:d.jsx(Pc,{droppableId:"droppable-tab-navigation",direction:"horizontal",children:(D,U)=>d.jsxs("div",ya(ya({ref:V=>{V!=null&&(l.current=V,D.innerRef(V))}},D.droppableProps),{},{className:H("nav nav-tabs",{dragging:U.draggingFromThisWith}),role:"tablist",onScroll:k,children:[oe,D.placeholder]}))})}),h&&d.jsx(le,{kind:"ghost",icon:d.jsx(ce,{icon:Vd,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-right",tooltip:"Scroll right",onClick:M,onMouseDown:G,disabled:I}),d.jsx(le,{kind:"ghost",icon:d.jsx(ce,{icon:Hd,transform:"grow-4"}),className:"btn-dashboard-list-menu btn-show-dashboard-list",tooltip:"Search open dashboards",onClick:X,disabled:n.length<2,style:{visibility:h?"visible":"hidden",marginLeft:"auto"},children:d.jsx(Jt,{isShown:g,className:"dashboard-list-menu-popper",onExited:q,options:{placement:"bottom-start"},closeOnBlur:!0,interactive:!0,children:d.jsx(Bl,{tabs:n,onSelect:Q})})}),d.jsx(Zt,{actions:[{action:()=>{y(!g)},shortcut:en.OPEN_DASHBOARD_LIST,isGlobal:!0}]})]})}function nw(e,t){return ow(e)||aw(e,t)||iw(e,t)||rw()}function rw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
24
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iw(e,t){if(e){if(typeof e=="string")return Sa(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sa(e,t):void 0}}function Sa(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function aw(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function ow(e){if(Array.isArray(e))return e}var sw=.025,lw=.9,uw=.1,cw=.618,Pa=80,Ke={SIZE:8,DOT_SIZE:2},xe=18,dw=250,fw=60*1e3,pw={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 hw(){return es(pw)}var Kl=J.memo(()=>{var e=qt(),t=e.activeThemes,n=c.useMemo(hw,[t]),r=c.useRef(null),i=c.useRef(null),a=c.useState(!1),o=nw(a,2),s=o[0],l=o[1],u=window.devicePixelRatio,f,h,p,m,v,g=null,y=[];function S(){var w;i.current!=null&&(p=i.current.offsetWidth,m=i.current.offsetHeight),r.current!=null&&(r.current.style.width="".concat(p,"px"),r.current.style.height="".concat(m,"px"),r.current.width=p*u,r.current.height=m*u),(w=f)===null||w===void 0||w.scale(u,u)}function b(){var w=n.foregroundFill,_=n.foregroundStroke,$=document.createElement("canvas");$.width=Ke.SIZE,$.height=Ke.SIZE;var F=$.getContext("2d");return F!=null&&(F.fillStyle=_,F.fillRect(0,0,Ke.DOT_SIZE,Ke.DOT_SIZE),F.fillStyle=w,F.fillRect(0,0,Ke.SIZE,Ke.SIZE)),F==null?void 0:F.createPattern($,"repeat")}function x(w){var _=Math.random()-.5,$=sw*_;return w<uw?$=Math.abs($):w>lw&&($=-Math.abs($)),w+$}function O(){for(var w=[],_=cw,$=0;$<p+xe;$+=1)_=x(_),w.push(_);return w}function T(){for(;y.length>=p+xe;)y.pop();for(;y.length<p+xe;)y.push(x(y[y.length-1]))}function P(w,_){_.beginPath(),_.moveTo(-1,m+1),_.lineTo(-1,m*w[0]);for(var $=0;$<w.length;$+=1)_.lineTo($,m*w[$]);_.lineTo(p+xe,m*w[w.length-1]),_.lineTo(p+xe,m+1),_.closePath()}function I(w){w.beginPath();for(var _=1;_<p;_+=Pa)w.moveTo(_,0),w.lineTo(_,m);for(var $=1;$<m;$+=Pa)w.moveTo(0,$),w.lineTo(p,$)}function C(w){g=g??w;var _=n.background,$=n.foregroundStroke,F=n.gridColor;Gt(f),f.fillStyle=_,f.fillRect(0,0,p,m),I(f),f.lineWidth=1,f.strokeStyle=F,f.stroke();var G=((g??0)-(w??0))/(1e3/xe);if(f.translate(G,0),P(y,f),f.lineWidth=2,f.strokeStyle=$,f.stroke(),f.translate(-G,0),h!=null&&(f.fillStyle=h),f.fill(),f.setTransform(u,0,0,u,0,0),(w??0)-(g??0)>1e3/xe){for(var Y=Math.floor(((w??0)-(g??0))/(1e3/xe)),ie=0;ie<Y;ie+=1)y.shift(),y.push(x(y[y.length-1]));g=w}v!=null&&cancelAnimationFrame(v),v=requestAnimationFrame(C)}var j=ot(()=>{v=requestAnimationFrame(w=>{S(),T(),l(!1),C(w)})},dw,{leading:!0});function R(){l(!0),v!=null&&cancelAnimationFrame(v),v=null,g=null}var k=ot(()=>{R()},fw);function E(){v==null&&(l(!1),S(),T(),v=requestAnimationFrame(C)),k()}function A(){document.hasFocus()&&E()}function M(){v!=null&&cancelAnimationFrame(v),k(),j()}return c.useEffect(()=>{var w;return f=(w=r.current)===null||w===void 0?void 0:w.getContext("2d",{alpha:!1}),S(),y=O(),h=b(),C(),k(),window.addEventListener("resize",M),window.addEventListener("focus",E),window.addEventListener("blur",R),window.addEventListener("mousemove",A),window.addEventListener("keydown",A),()=>{v!=null&&cancelAnimationFrame(v),window.removeEventListener("resize",M),window.removeEventListener("focus",E),window.removeEventListener("blur",R),window.removeEventListener("mousemove",A),window.removeEventListener("keydown",A),k.cancel(),j.cancel()}},[n]),d.jsx("div",{className:"random-area-plot-animation-container",ref:i,children:d.jsx("canvas",{ref:r,className:s?"shade":""})})});function Vl(e){var t=e.text,n=e.placement,r=n===void 0?"top-start":n,i=c.useMemo(()=>({placement:r}),[r]);return d.jsxs(d.Fragment,{children:[d.jsx(Qt,{UNSAFE_className:yr.spectrumEllipsis,children:t??d.jsx(d.Fragment,{children:" "})}),t==null||t===""?null:d.jsx(ht,{options:i,children:t})]})}var mw=["scrollRef","getItemDisplayText","getKey"];function wa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Oa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wa(Object(n),!0).forEach(function(r){yw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wa(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yw(e,t,n){return(t=gw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gw(e){var t=vw(e,"string");return typeof t=="symbol"?t:t+""}function vw(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bw(e,t){if(e==null)return{};var n,r,i=Sw(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Sw(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Pw(e){var t=e.scrollRef,n=e.getItemDisplayText,r=e.getKey,i=bw(e,mw),a=c.useCallback(o=>{var s=r(o),l=n(o);return d.jsx(Kt,{textValue:l??String(s),children:d.jsx(Vl,{text:l})},s)},[n,r]);return d.jsx(qn,Oa(Oa({},i),{},{ref:t,menuTrigger:"focus",onSelectionChange:i.onSelectionChange,children:a}))}function ww(e,t){return Cw(e)||Tw(e,t)||xw(e,t)||Ow()}function Ow(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
25
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xw(e,t){if(e){if(typeof e=="string")return xa(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xa(e,t):void 0}}function xa(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Tw(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Cw(e){if(Array.isArray(e))return e}var Ew=500;function _w(e){var t=e.heading,n=e.content,r=e.delayMs,i=r===void 0?Ew:r,a=c.useState(!1),o=ww(a,2),s=o[0],l=o[1];return c.useEffect(()=>{window.setTimeout(()=>{l(!0)},i)},[i]),s?d.jsxs(Ho,{children:[d.jsx(ft,{size:"XXL",children:d.jsx(ce,{icon:Gd})}),d.jsx(ir,{children:t}),n==null?null:d.jsx(Xn,{children:n})]}):null}const Hl={"handle-size":"15px","popover-width":"90px"};function Wt(e,t){return $w(e)||Aw(e,t)||jw(e,t)||Iw()}function Iw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
26
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jw(e,t){if(e){if(typeof e=="string")return Ta(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ta(e,t):void 0}}function Ta(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Aw(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function $w(e){if(Array.isArray(e))return e}var Et=parseInt(Hl["handle-size"],10),Ca=parseInt(Hl["popover-width"],10),he=24*60*60-1,Ea=5*60;function kw(e){var t=e.startTime,n=e.endTime,r=e.onChange,i=e.isStartModified,a=i===void 0?!1:i,o=e.isEndModified,s=o===void 0?!1:o,l=e["data-testid"],u=c.useState(t),f=Wt(u,2),h=f[0],p=f[1],m=c.useState(n),v=Wt(m,2),g=v[0],y=v[1],S=c.useRef(null);c.useEffect(function(){p(t),y(n)},[t,n]);var b=c.useCallback((T,P)=>{var I=T,C=P;I===C&&(C<he?C+=1:I-=1),p(I),y(C),r({startTime:I,endTime:C})},[p,y,r]),x=c.useCallback(T=>{b(T,g)},[b,g]),O=c.useCallback(T=>{b(h,T)},[b,h]);return d.jsxs("div",{className:"time-slider","data-testid":l,children:[d.jsx(Rw,{startTime:h,endTime:g,onStartTimeChange:x,onEndTimeChange:O,isStartModified:a,isEndModified:s}),d.jsxs("div",{className:"track",ref:S,children:[d.jsx(Dw,{startTime:h,endTime:g}),d.jsx("div",{className:"ticks",children:Array(24).fill(null).map((T,P)=>d.jsx("div",{className:"tick"},P))}),d.jsx(_a,{track:S,time:h,setTime:x}),d.jsx(_a,{track:S,time:g,setTime:O})]}),d.jsxs("div",{className:"tick-labels",children:[d.jsx("div",{className:"tick-label",children:"0:00"}),d.jsx("div",{className:"tick-label-wrapper",children:Array(24).fill(null).map((T,P)=>d.jsx("div",{className:"tick-label",children:"".concat(P+1,":00")},P))})]})]})}function Rw(e){var t=e.startTime,n=e.endTime,r=e.onStartTimeChange,i=e.onEndTimeChange,a=e.isStartModified,o=e.isEndModified,s=e["data-testid"],l=t>n,u=c.useState(l?n:t),f=Wt(u,2),h=f[0],p=f[1],m=c.useState(l?t:n),v=Wt(m,2),g=v[0],y=v[1],S=c.useRef(null),b=c.useRef(null),x=c.useRef(null),O=c.useRef(null);c.useEffect(function(){p(t>n?n:t),y(t>n?t:n)},[t,n]),c.useEffect(function(){if(x.current!==null){var R;(R=b.current)===null||R===void 0||R.setSelection(x.current)}if(O.current!==null){var k;(k=S.current)===null||k===void 0||k.setSelection(O.current)}},[l]);function T(j){t<=n?r(j):i(j)}function P(j){t<=n?i(j):r(j)}var I=c.useCallback(j=>{x.current=j,O.current=null},[]),C=c.useCallback(j=>{x.current=null,O.current=j},[]);return d.jsxs("div",{className:"time-slider-popovers",children:[d.jsx("div",{className:"flex",style:{flexBasis:"calc(".concat(h/he*100,"% - ").concat(Ca/2,"px)")}}),d.jsxs("div",{className:"handle-popper",children:[d.jsx("label",{className:H({modified:l?o:a}),children:l?"End Time":"Start Time"}),d.jsx(Ut,{ref:S,allowValueWrapping:!1,value:h,onChange:T,onSelect:I,"data-testid":s!==void 0?"".concat(s,"-input-1"):void 0})]}),d.jsx("div",{className:"flex-spacer"}),d.jsxs("div",{className:"handle-popper",children:[d.jsx("label",{className:H({modified:l?a:o}),children:l?"Start Time":"End Time"}),d.jsx(Ut,{ref:b,allowValueWrapping:!1,value:g,onChange:P,onSelect:C,"data-testid":s!==void 0?"".concat(s,"-input-2"):void 0})]}),d.jsx("div",{className:"flex",style:{flexBasis:"calc(".concat((he-g)/he*100,"% - ").concat(Ca/2,"px)")}})]})}function Dw(e){var t=e.startTime,n=e.endTime,r=e["data-testid"];return d.jsxs("div",{className:"track-fills","data-testid":r,children:[t>n&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"track-fill track-fill-start",style:{transform:"scaleX(".concat(n/he,")")}}),d.jsx("div",{className:"track-fill track-fill-end",style:{transform:"scaleX(".concat((he-t)/he,")")}})]}),t<n&&d.jsx("div",{className:"track-fill track-fill-middle",style:{transform:"translateX(".concat(t/he*100,"%) scaleX(").concat((n-t)/he,")")}})]})}function _a(e){var t=e.track,n=e.time,r=e.setTime,i=e["data-testid"],a=c.useMemo(()=>{var p=3600,m=Et/2;return n<p?m=n/p*(Et/2):n>23*p&&(m=Et/2+1/(he-23*p)*(n-23*p)*(Et/2)),"translateX(calc(".concat(n/he*100,"% - ").concat(m,"px))")},[n]),o=c.useCallback(p=>{if(!t.current)return 0;var m=t.current.getBoundingClientRect(),v=Math.max(p-m.left,0),g=he*Math.min(1,v/m.width),y=Ea*Math.round(g/Ea),S=Math.min(he,y);return S},[t]),s=c.useCallback(p=>{var m=p.clientX;r(o(m))},[r,o]),l=c.useCallback(p=>{var m=p.clientX;r(o(m)),window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",l),document.documentElement.classList.remove("drag-pointer-events-none")},[r,o,s]),u=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]),h=c.useCallback(()=>{u()},[u]);return c.useEffect(function(){return()=>{f()}},[f]),d.jsx("div",{className:"handle-track",style:{transform:a},children:d.jsx("button",{className:"handle",type:"button","aria-label":"Change time",onMouseDown:h,"data-testid":i})})}function Gl(e){var t=e.buttons,n=e.isShown,r=n===void 0?!1:n,i=e.classNames,a=e.message,o=e.type,s=e.onClick,l=e.onDismiss,u=e["data-testid"],f=c.useRef(null),h=t&&t.length!==0;return d.jsx(Ko,{in:r,timeout:En.transitionMs,classNames:"toast-notification-slide-up",mountOnEnter:!0,unmountOnExit:!0,nodeRef:f,children:d.jsxs("div",{ref:f,className:H("toast-notification",i,o),role:"presentation",onClick:s,onKeyPress:s,"data-testid":u,children:[d.jsx("div",{className:"message-container",children:d.jsx("span",{className:"message",children:a})}),d.jsx(or,{in:h,timeout:En.transitionSlowMs,mountOnEnter:!0,unmountOnExit:!0,children:d.jsx("div",{className:"buttons-container",children:t})}),l&&d.jsx(le,{kind:"ghost",icon:tr,tooltip:"Close notification",className:"my-2",onClick:l})]})})}Gl.TYPE=Object.freeze({ERROR:"error"});const Lw=Object.freeze(Object.defineProperty({__proto__:null,ACTION_ICON_HEIGHT:gr,Accordion:wc,ActionBar:Bo,ActionButton:Vt,ActionButtonDialogTrigger:Al,ActionGroup:Ny,ActionMenu:Uy,AlertDialog:Oc,AutoCompleteInput:be,AutoResizeTextarea:BS,Avatar:xc,Badge:Tc,BasicModal:cs,Breadcrumbs:Cc,BulkActionBar:YS,Button:le,ButtonGroup:Wo,CSS_VAR_EXPRESSION_PREFIX:Yd,Calendar:Ec,CardFlip:xm,Checkbox:In,CheckboxGroup:yS,Collapse:ct,ColorEditor:_c,ColorPicker:Ic,ColorValues:ap,ComboBox:Wy,ComboBoxNormalized:Tl,ConfirmActionButton:CS,ConfirmationDialog:$l,Content:Xn,ContextActionUtils:Ee,ContextActions:Zt,ContextMenuItem:os,ContextMenuRoot:Ml,ContextualHelp:jc,ContextualHelpTrigger:Ac,CopyButton:ls,CustomTimeSelect:pe,DEFAULT_DARK_THEME_KEY:zd,DEFAULT_DARK_THEME_PALETTE:qd,DEFAULT_GET_PREFERRED_REPLACEMENT_STRING:Zs,DEFAULT_LIGHT_THEME_KEY:Xd,DEFAULT_PRELOAD_DATA_VARIABLES:Qd,DH_CSS_VAR_NAME_REGEXP:Jd,DH_VAR_PREFIX:Zd,DashboardList:Bl,DateField:$c,DateInput:Ul,DatePicker:kc,DateRangePicker:Rc,DateTimeInput:By,DebouncedModal:Dl,DebouncedSearchInput:op,Dialog:Fo,DialogContainer:Dc,DialogTrigger:Mo,Disclosure:Lc,DisclosurePanel:Mc,DisclosureTitle:Fc,Divider:No,DragUtils:kn,DraggableItemList:Ky,DropdownMenu:ss,EXTERNAL_THEME_KEY:ef,EditableItemList:xP,ErrorBoundary:sp,ErrorView:IP,FadeTransition:or,Flex:Ro,FontBootstrap:Ol,FontsLoaded:xl,FontsLoadedContext:rn,Footer:Nc,Form:Uo,GLOBAL_SHORTCUTS:en,Grid:Uc,Header:Wc,Heading:ir,HierarchicalCheckboxMenu:Ge,ITEM_EMPTY_STRING_TEXT_VALUE:Vy,Icon:ft,IconActionButton:kl,IllustratedMessage:Ho,Image:Bc,InfoModal:Ll,InlineAlert:Kc,Item:Kt,ItemContent:Hy,ItemList:_n,ItemListItem:lp,ItemTooltip:Gy,KEY:fe,Keyboard:Vc,LIST_VIEW_ROW_HEIGHTS:el,LabeledValue:Hc,Link:Go,ListActionGroup:Yy,ListActionMenu:zy,ListView:Vb,ListViewNormalized:Cl,ListViewWrapper:Tr,LoadingOverlay:Ue,LoadingSpinner:Ht,LogicButton:Gc,Logo:mb,MODIFIER:se,MSG_REQUEST_GET_THEME:tf,MSG_REQUEST_SET_THEME:Qo,MaskedInput:vr,Menu:qy,MenuItem:Xy,MenuTrigger:Yc,Meter:zc,Modal:Zn,ModalBody:er,ModalFooter:ds,ModalHeader:ts,MultiSelect:_r,MultiSelectNormalized:Il,NAVIGATION_SHORTCUTS:bP,NON_WHITESPACE_REGEX:nf,NavTabList:tw,NumberField:qc,Option:tl,PICKER_ITEM_HEIGHTS:Qy,PICKER_TOP_OFFSET:Jy,PRELOAD_TRANSPARENT_THEME_QUERY_PARAM:rf,Page:Zy,Picker:eg,PickerNormalized:tg,Popper:Jt,ProgressBar:Xc,ProgressCircle:Lo,Radio:Qc,RadioGroup:Jc,RandomAreaPlotAnimation:Kl,RangeCalendar:Zc,RangeSlider:ed,ReactFontAwesome:td,SVG_ICON_MANUAL_COLOR_MAP:af,SearchField:nd,SearchInput:ar,SearchableCombobox:Pw,Section:ng,Select:fs,SelectValueList:nl,Shortcut:up,ShortcutRegistry:De,SlideTransition:rg,Slider:rd,SocketedButton:Tm,SpectrumButton:Tn,SpectrumCheckbox:xn,SpectrumComboBox:qn,SpectrumMenu:id,SplitButtonGroup:cp,Stack:ig,StatusLight:ad,SubmenuTrigger:od,Switch:sd,TABLE_ROW_HEIGHT:ag,THEME_CACHE_LOCAL_STORAGE_KEY:of,THEME_KEY_OVERRIDE_QUERY_PARAM:sf,TMP_CSS_PROP_PREFIX:lf,TRANSPARENT_PRELOAD_DATA_VARIABLES:uf,TabList:ld,TabPanels:bv,TableViewEmptyState:_w,Tabs:ud,TagGroup:cd,Text:Qt,TextArea:dd,TextField:fd,TextWithTooltip:Vl,ThemeContext:dp,ThemeExport:En,ThemePicker:hb,ThemeProvider:ps,TimeField:pd,TimeInput:Ut,TimeSlider:kw,ToastContainer:hd,ToastNotification:Gl,ToastQueue:md,ToggleButton:yd,Tooltip:ht,UISwitch:fp,View:jl,WHITESPACE_REGEX:cf,Well:gd,XComponentMapContext:pp,XComponentMapProvider:hp,baseStyleProps:vd,calculatePreloadStyleContent:df,canHaveRef:hs,colorValueStyle:ye,createCssVariableResolver:ff,createPreloadStyleElement:pf,createXComponent:mp,extractDistinctCssVariableExpressions:hf,fillToLength:og,getActiveThemes:mf,getDefaultBaseThemes:yf,getDefaultSelectedThemeKey:gf,getExpressionRanges:vf,getItemKey:Ft,getItemTextValue:Js,getPositionOfSelectedItemElement:sg,getThemeKey:bf,getThemeKeyOverride:Sf,getThemePreloadData:Pf,isBaseThemeKey:wf,isClassComponent:yp,isDHColorValue:gp,isExternalThemeData:Jo,isExternalThemeEnabled:Qn,isForwardRefComponentType:vp,isItemElement:Nt,isItemElementWithDescription:lg,isItemOrSection:ug,isNormalizedItemsWithKeysList:cg,isNormalizedSection:$n,isPreloadTransparentTheme:Of,isSectionElement:mr,isValidColorVar:xf,isWrappedComponent:ms,itemSelectionToStringSet:at,normalizeTooltipOptions:mt,overrideSVGFillColors:Tf,parseExternalThemeData:qo,preloadTheme:Cf,replaceSVGFillColor:Ef,requestExternalThemeData:Xo,resolveCssVariablesInRecord:es,resolveCssVariablesInString:_f,separateSpectrumProps:Pl,setThemePreloadData:If,themeDHDefault:jf,themeDark:Af,themeLight:$f,trimTrailingMask:dg,useExternalTheme:wl,useOnChangeTrackUncontrolled:fg,usePickerItemScale:br,usePickerNormalizedProps:Qs,usePickerProps:pg,usePickerScrollOnOpen:hg,useRenderNormalizedItem:hr,useSpectrumThemeProvider:fr,useStaticItemInitialScrollPosition:mg,useStringifiedMultiSelection:xr,useStringifiedSelection:yg,useStyleProps:bd,useTheme:qt,useXComponent:bp,viewStyleProps:Sd,wrapIcon:gg,wrapItemChildren:pr,wrapPrimitiveWithText:vg},Symbol.toStringTag,{value:"Module"}));function Mw(e,t){return Ww(e)||Uw(e,t)||Nw(e,t)||Fw()}function Fw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
27
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nw(e,t){if(e){if(typeof e=="string")return Ia(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ia(e,t):void 0}}function Ia(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Uw(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Ww(e){if(Array.isArray(e))return e}var Yl=J.memo(e=>{var t=e.children,n=e.onError,r=e.widget,i=sr(r),a=Mw(i,2),o=a[0],s=a[1];return s!=null?(n==null||n(s),null):o==null?null:d.jsx(nr.Provider,{value:o,children:t})});Yl.displayName="DeferredApiBootstrap";function Bw(e,t){return Gw(e)||Hw(e,t)||Vw(e,t)||Kw()}function Kw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
28
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vw(e,t){if(e){if(typeof e=="string")return ja(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ja(e,t):void 0}}function ja(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Hw(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Gw(e){if(Array.isArray(e))return e}var an=c.createContext(null);an.displayName="ObjectFetchManagerContext";function zl(e){var t=c.useState({status:"loading"}),n=Bw(t,2),r=n[0],i=n[1],a=c.useContext(an);return c.useEffect(()=>{if(a==null){i({error:new Error("No ObjectFetchManager available in context"),status:"error"});return}return i(o=>o.status==="loading"?o:{status:"loading"}),a.subscribe(e,i)},[e,a]),r}function Aa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $a(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Aa(Object(n),!0).forEach(function(r){Yw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Aa(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yw(e,t,n){return(t=zw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zw(e){var t=qw(e,"string");return typeof t=="symbol"?t:t+""}function qw(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ka(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Xw(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){ka(a,r,i,o,s,"next",l)}function s(l){ka(a,r,i,o,s,"throw",l)}o(void 0)})}}function Ra(e,t){return eO(e)||Zw(e,t)||Jw(e,t)||Qw()}function Qw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
29
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jw(e,t){if(e){if(typeof e=="string")return Da(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Da(e,t):void 0}}function Da(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Zw(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function eO(e){if(Array.isArray(e))return e}var _t=ne.module("useWidget");function tO(e){var t=c.useState(()=>({widget:null,error:null})),n=Ra(t,2),r=n[0],i=n[1],a=zl(e),o=sr(e),s=Ra(o,2),l=s[0],u=s[1],f=je(),h=l??f;c.useEffect(function(){_t.debug("loadWidget",e);var v=a.status;if(v==="error"){i({widget:null,error:a.error});return}if(v==="loading"){i({widget:null,error:null});return}var g=a.fetch,y=!1;function S(){return b.apply(this,arguments)}function b(){return b=Xw(function*(){try{Gt(g);var x=yield g();if(y){_t.debug2("loadWidgetInternal cancelled",e,x),x.close(),"exportedObjects"in x&&x.exportedObjects.forEach(O=>{O.close()});return}_t.debug("loadWidgetInternal done",e,x),i({widget:x,error:null})}catch(O){if(y)return;_t.debug("loadWidgetInternal error",e,O),i({widget:null,error:O??new Error("Null error")})}}),b.apply(this,arguments)}return S(),()=>{y=!0}},[e,a]);var p=c.useMemo(()=>{var m;return $a($a({},r),{},{error:(m=r.error)!==null&&m!==void 0?m:u,api:r.widget!=null?h:null})},[r,h,u]);return p}var ql="io.deephaven.message.LoginOptions.request",Xl="io.deephaven.message.SessionDetails.request",Ql="io.deephaven.broadcast",Ir="io.deephaven.broadcast.Login",Jl="io.deephaven.broadcast.Logout";function Zl(e){return Yt(e)&&e.message===Ir}function eu(e){return Yt(e)&&e.message===Jl}function nO(e,t,n){return(t=rO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rO(e){var t=iO(e,"string");return typeof t=="symbol"?t:t+""}function iO(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class tu extends Error{constructor(){super(...arguments),nO(this,"isNoConsolesError",!0)}}function nu(e){return e.isNoConsolesError}function La(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function on(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){La(a,r,i,o,s,"next",l)}function s(l){La(a,r,i,o,s,"throw",l)}o(void 0)})}}var it=ne.module("SessionUtils");function ru(e,t,n){return Dn.apply(this,arguments)}function Dn(){return Dn=on(function*(e,t,n){it.info("Getting console types...");var r=yield t.getConsoleTypes();if(r.length===0)throw new tu("No console types available");it.info("Available types:",r);var i=r[0];it.info("Starting session with type",i);var a=yield t.startSession(i),o={type:i,id:zn()};return it.info("Console session established",o),{session:a,config:o,connection:t,details:n,dh:e}}),Dn.apply(this,arguments)}function aO(e,t,n){return it.info("createCoreClient",t),new e.CoreClient(t,n)}function oO(e){return e!=null&&typeof e=="object"}function sO(){return Ln.apply(this,arguments)}function Ln(){return Ln=on(function*(){var e=yield rr(Xl);if(!oO(e))throw new Error("Unexpected session details response: ".concat(e));return e}),Ln.apply(this,arguments)}function lO(){return Mn.apply(this,arguments)}function Mn(){return Mn=on(function*(){var e=new URLSearchParams(window.location.search);switch(e.get("authProvider")){case"parent":return sO()}return{}}),Mn.apply(this,arguments)}function uO(e,t,n){return Fn.apply(this,arguments)}function Fn(){return Fn=on(function*(e,t,n){var r;try{r=yield ru(e,t,n)}catch(i){if(!nu(i))throw i}return r}),Fn.apply(this,arguments)}function Ma(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function cO(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){Ma(a,r,i,o,s,"next",l)}function s(l){Ma(a,r,i,o,s,"throw",l)}o(void 0)})}}var It=ne.module("@deephaven/jsapi-utils.WorkerVariablesStore"),Nn="default";function iu(e){if(e==null)return Nn;var t=e;return typeof t.querySerial=="string"&&t.querySerial.length>0?"q:".concat(t.querySerial):typeof t.queryName=="string"&&t.queryName.length>0?"qn:".concat(t.queryName):typeof t.sessionId=="string"&&t.sessionId.length>0?"s:".concat(t.sessionId):Nn}function gn(e){if(typeof e.id=="string"&&e.id.length>0)return"id:".concat(e.id);if(typeof e.name=="string"&&e.name.length>0)return"name:".concat(e.name);if(typeof e.title=="string"&&e.title.length>0)return"title:".concat(e.title)}function au(e){var t=new Map;function n(h){var p=t.get(h);return p==null&&(p={list:null,listeners:new Set,unsubscribeFieldUpdates:null,resolving:!1,generation:0},t.set(h,p)),p}function r(h){h.listeners.forEach(p=>{try{p()}catch(m){It.error("WorkerVariables listener threw",m)}})}function i(h){var p=t.get(h);if((p==null?void 0:p.unsubscribeFieldUpdates)!=null){try{p.unsubscribeFieldUpdates()}catch(m){It.warn("Error unsubscribing from field updates",m)}p.unsubscribeFieldUpdates=null}}function a(h){return o.apply(this,arguments)}function o(){return o=cO(function*(h){var p=t.get(h);if(!(p==null||p.resolving||p.unsubscribeFieldUpdates!=null)){p.resolving=!0;var m=p.generation;try{var v=yield e(h);if(m!==p.generation||p.listeners.size===0||t.get(h)!==p)return;if(v==null){It.debug("No connection available for worker",h);return}var g=v.subscribeToFieldUpdates(y=>{var S;if(m===p.generation){var b=new Set(y.removed.map(gn).filter(T=>T!=null)),x=new Set(y.updated.map(gn).filter(T=>T!=null)),O=((S=p.list)!==null&&S!==void 0?S:[]).filter(T=>{var P=gn(T);return P==null||!b.has(P)&&!x.has(P)});O.push(...y.updated,...y.created),p.list=O,r(p)}});p.unsubscribeFieldUpdates=g}catch(y){It.error("Failed to resolve worker connection",h,y)}finally{p.resolving=!1,t.get(h)===p&&m!==p.generation&&p.unsubscribeFieldUpdates==null&&p.listeners.size>0&&a(h).catch(()=>{})}}}),o.apply(this,arguments)}function s(h){var p,m;return(p=(m=t.get(h))===null||m===void 0?void 0:m.list)!==null&&p!==void 0?p:null}function l(h,p){var m=n(h);return m.listeners.add(p),m.unsubscribeFieldUpdates==null&&!m.resolving&&a(h).catch(()=>{}),()=>{m.listeners.delete(p),m.listeners.size===0&&(i(h),m.list=null,t.delete(h))}}function u(h){var p=t.get(h);p!=null&&(p.generation+=1,i(h),p.list=null,r(p),p.listeners.size>0&&a(h).catch(()=>{}))}function f(){Array.from(t.keys()).forEach(h=>{i(h)}),t.clear()}return{snapshot:s,subscribe:l,invalidate:u,destroy:f}}const dO=Object.freeze(Object.defineProperty({__proto__:null,BROADCAST_CHANNEL_NAME:Ql,BROADCAST_LOGIN_MESSAGE:Ir,BROADCAST_LOGOUT_MESSAGE:Jl,BooleanColumnFormatter:Cm,CharColumnFormatter:Em,DEFAULT_WORKER_KEY:Nn,DateTimeColumnFormatter:Sp,DateUtils:_m,DecimalColumnFormatter:Pp,DefaultColumnFormatter:Im,FETCH_TIMEOUT:Wf,Formatter:lr,FormatterUtils:An,ITEM_KEY_PREFIX:jm,IntegerColumnFormatter:wp,LOGIN_OPTIONS_REQUEST:ql,NewTableColumnTypes:Op,NoConsolesError:tu,SESSION_DETAILS_REQUEST:Xl,StringColumnFormatter:Am,TableColumnFormatter:xp,TableUtils:Fs,createComboboxFilterArgs:$m,createCoreClient:aO,createFilterConditionFactory:ur,createFormatterFromSettings:km,createKeyedItemKey:cr,createNotNullOrEmptyFilterCondition:Ns,createOnTableUpdatedHandler:Rm,createSearchTextFilter:Us,createSelectedValuesFilter:dr,createSessionWrapper:ru,createShowOnlyEmptyFilterCondition:Ws,createValueFilter:Bs,createWorkerVariablesStore:au,defaultRowDeserializer:Dm,fetchVariableDefinition:Bf,fetchVariableDefinitionByPredicate:Kf,generateEmptyKeyedItems:Lm,getColumnFormats:Mm,getDateTimeFormatterOptions:Fm,getSessionDetails:lO,getSize:Nm,getWindowParent:Jn,getWorkerKey:iu,isBroadcastLoginMessage:Zl,isBroadcastLogoutMessage:eu,isClosed:Um,isCustomColumnFormatDefined:Wm,isMessage:Yt,isNoConsolesError:nu,isResponse:kf,isSortDirection:Bm,loadSessionWrapper:uO,makeMessage:ns,makeResponse:Rf,padFirstAndLastRow:Km,requestParentResponse:rr},Symbol.toStringTag,{value:"Module"}));var sn=c.createContext(null);sn.displayName="WorkerVariablesContext";function fO(e){var t=c.useContext(sn),n=iu(e),r=c.useCallback(a=>t==null?()=>{}:t.subscribe(n,a),[t,n]),i=c.useCallback(()=>t==null?null:t.snapshot(n),[t,n]);return c.useSyncExternalStore(r,i,i)}const pO=Object.freeze(Object.defineProperty({__proto__:null,ApiBootstrap:Df,ApiContext:nr,ClientBootstrap:rs,ClientContext:Vf,DeferredApiBootstrap:Yl,DeferredApiContext:Vm,ObjectFetchManagerContext:an,ObjectFetcherContext:ys,WorkerVariablesContext:sn,getVariableDescriptor:Tp,isIdVariableDescriptor:Cp,isNameVariableDescriptor:Ep,isVariableDescriptor:_p,sanitizeVariableDescriptor:gs,useApi:je,useClient:pt,useDeferredApi:sr,useObjectFetch:zl,useObjectFetcher:Ip,useWidget:tO,useWorkerVariables:fO},Symbol.toStringTag,{value:"Module"}));function hO(e){return function(n){var r=n.children;return d.jsx(nr.Provider,{value:e,children:r})}}function mO(e,t,n){return(t=yO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yO(e){var t=gO(e,"string");return typeof t=="symbol"?t:t+""}function gO(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class vO extends Error{constructor(){super(...arguments),mO(this,"isColumnNameError",!0)}}function bO(e,t,n){return(t=SO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SO(e){var t=PO(e,"string");return typeof t=="symbol"?t:t+""}function PO(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class wO extends Error{constructor(){super(...arguments),bO(this,"isTableDisconnectError",!0)}}function jt(e,t){return CO(e)||TO(e,t)||xO(e,t)||OO()}function OO(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
30
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xO(e,t){if(e){if(typeof e=="string")return Fa(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fa(e,t):void 0}}function Fa(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function TO(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function CO(e){if(Array.isArray(e))return e}var At=ne.module("useTable"),ou=(e,t,n,r)=>{var i=je(),a=c.useState(void 0),o=jt(a,2),s=o[0],l=o[1],u=c.useState([]),f=jt(u,2),h=f[0],p=f[1],m=c.useState(null),v=jt(m,2),g=v[0],y=v[1],S=c.useState(null),b=jt(S,2),x=b[0],O=b[1];c.useEffect(()=>{if(r===void 0){l(e==null?void 0:e.columns),y(null);return}try{l(e==null?void 0:e.findColumns(r)),y(null)}catch(C){At.error("Column not found",C,r),y(new vO("Invalid columnNames argument"))}},[e,r]),c.useEffect(()=>{if(!s||!e){At.debug2("Table or column not initialized, skip viewport update.");return}At.debug2("Setting viewport",t,n),e.setViewport(t,n,s)},[s,e,t,n]);var T=c.useCallback(C=>{var j=C.detail;if(!s){At.error("Columns not initialized.");return}var R=s.map(k=>j.rows.map(E=>E.get(k)));p(R)},[s]),P=c.useCallback(()=>{O(new wO("Table disconnected"))},[]),I=c.useCallback(()=>{O(null)},[]);return Lt(e,i.Table.EVENT_UPDATED,T),Lt(e,i.Table.EVENT_DISCONNECT,P),Lt(e,i.Table.EVENT_RECONNECT,I),{columns:s,data:h,error:x??g}},su=(e,t,n,r)=>{var i=c.useMemo(()=>[r],[r]),a=ou(e,t,n,i),o=a.columns,s=o===void 0?[]:o,l=a.data,u=l===void 0?[]:l,f=a.error;return{column:s[0],data:u[0],error:f}};function Na(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function EO(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){Na(a,r,i,o,s,"next",l)}function s(l){Na(a,r,i,o,s,"throw",l)}o(void 0)})}}function $t(e,t){return AO(e)||jO(e,t)||IO(e,t)||_O()}function _O(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
31
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IO(e,t){if(e){if(typeof e=="string")return Ua(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ua(e,t):void 0}}function Ua(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jO(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function AO(e){if(Array.isArray(e))return e}var Pe=ne.module("TableInput"),vn=250;function $O(e){var t,n,r=e.className,i=r===void 0?void 0:r,a=e.columnName,o=e.settings,s=e.defaultValue,l=s===void 0?[]:s,u=e.isInvalid,f=u===void 0?!1:u,h=e.onChange,p=h===void 0?ge:h,m=e.onBlur,v=m===void 0?ge:m,g=e.table,y=c.useRef(null),S=je(),b=c.useMemo(()=>{var L=An.getColumnFormats(o),N=An.getDateTimeFormatterOptions(o),W=o.defaultDecimalFormatOptions,z=W===void 0?{}:W,de=o.defaultIntegerFormatOptions,Ae=de===void 0?{}:de;return new lr(S,L,N,z,Ae)},[S,o]),x=c.useState(""),O=$t(x,2),T=O[0],P=O[1],I=c.useState(new Set(l)),C=$t(I,2),j=C[0],R=C[1],k=c.useState(),E=$t(k,2),A=E[0],M=E[1],w=c.useRef(null),_=Math.min((t=A==null?void 0:A.size)!==null&&t!==void 0?t:0,vn),$=su(A,0,vn-1,a),F=$.column,G=$.data,Y=$.error,ie=c.useCallback(L=>F?b.getFormattedString(L,F.type,F.name):"".concat(L),[F,b]),Se=c.useMemo(()=>{var L=new Set(j),N=[];if(G==null)return[N,null];if(G.forEach(z=>{var de="".concat(z),Ae=j.has(de);Ae&&L.delete(de),N.push({value:de,displayValue:ie(z),isSelected:Ae})}),L.size>0){Pe.debug2("Selection has items that are missing from the viewport");var W=new Set(j);return Array.from(L).forEach(z=>{W.delete(z)}),[N,W]}return[N,null]},[G,j,ie]),oe=$t(Se,2),X=oe[0],Q=oe[1];c.useEffect(()=>{Q!==null&&(R(Q),p(Array.from(Q)))},[p,Q]);var q=c.useCallback(function(){var L=EO(function*(N){try{var W=yield N;Pe.debug("Table resolved",W),M(W)}catch(z){if(Fe.isCanceled(z))return;Pe.error(z)}});return function(N){return L.apply(this,arguments)}}(),[]);c.useEffect(()=>{var L=Fe.makeCancelable(g);return q(L),()=>{Pe.debug2("Cancel table promise"),L.cancel()}},[g,q]);var D=c.useCallback(L=>{var N=L.target.value;P(N);var W=X.findIndex(de=>de.displayValue.includes(N));if(W>-1){var z;Pe.debug2("Found ".concat(N," at index ").concat(W)),(z=w.current)===null||z===void 0||z.scrollIntoView(W)}else Pe.debug2("".concat(N," not found"))},[X,w]),U=c.useCallback(L=>{if(Pe.debug("handleSelect",L),L>=X.length){Pe.error("Invalid index",L);return}var N=X[L].value,W=new Set(j);X[L].isSelected?W.delete(N):W.add(N),R(W),p(Array.from(W))},[p,X,j]),V=c.useCallback(()=>{var L=X.map(W=>W.value),N=new Set(L);R(N),p(L)},[X,p]),K=c.useCallback(()=>{R(new Set),p([])},[p]),Z=c.useCallback(()=>{},[]),re=c.useCallback(L=>{var N,W=L.relatedTarget;Pe.debug("handleChildBlur",W,W instanceof HTMLElement,y.current,(N=y.current)===null||N===void 0?void 0:N.contains(W)),(!W||y.current&&W instanceof HTMLElement&&!y.current.contains(W))&&v()},[v]),ue=X.length===0;return d.jsxs("div",{ref:y,className:H("table-input-container d-flex flex-column position-relative",i),children:[d.jsx(ar,{disabled:!!Y||ue,value:T,placeholder:"Search",onChange:D,className:"mb-2 d-flex",onBlur:re}),d.jsx(nl,{className:"table-input-list",disabled:A===void 0||ue,isInvalid:f,items:ue?[{value:"Empty",isSelected:!1}]:X,itemCount:_,offset:0,onSelect:U,onViewportChange:Z,ref:w,onBlur:re}),A&&d.jsxs("div",{className:"meta-row",children:[d.jsx("div",{className:"d-flex align-items-center text-muted small",children:A!=null&&A.size>_&&d.jsxs(d.Fragment,{children:["Table is too large, showing the first ",vn," items."]})}),d.jsxs("div",{children:[d.jsx("button",{type:"button",className:"btn btn-link",onBlur:re,onClick:V,children:"Select All"}),d.jsx("button",{type:"button",className:"btn btn-link mr-a",onBlur:re,onClick:K,children:"Clear"})]})]}),A==null||Y&&d.jsx("div",{className:"h-100 w-100 position-absolute",children:d.jsx(Ue,{isLoaded:A!=null,isLoading:A==null&&Y==null,errorMessage:(n=Y==null?void 0:Y.message)!==null&&n!==void 0?n:null,"data-testid":"table-input-loading"})})]})}var kO=["table","keyColumn","labelColumn","iconColumn","settings","onChange","onSelectionChange"];function Wa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ba(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wa(Object(n),!0).forEach(function(r){RO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wa(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function RO(e,t,n){return(t=DO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DO(e){var t=LO(e,"string");return typeof t=="symbol"?t:t+""}function LO(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ka(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Va(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){Ka(a,r,i,o,s,"next",l)}function s(l){Ka(a,r,i,o,s,"throw",l)}o(void 0)})}}function Ha(e,t){return UO(e)||NO(e,t)||FO(e,t)||MO()}function MO(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
32
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FO(e,t){if(e){if(typeof e=="string")return Ga(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ga(e,t):void 0}}function Ga(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function NO(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function UO(e){if(Array.isArray(e))return e}function WO(e,t){if(e==null)return{};var n,r,i=BO(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function BO(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var KO=ne.module("jsapi-components.useMultiPickerProps");function VO(e){var t,n=e.table,r=e.keyColumn,i=e.labelColumn,a=e.iconColumn,o=e.settings,s=e.onChange,l=e.onSelectionChange,u=WO(e,kO),f=br(),h=f.itemHeight,p=Sr(o),m=p.getFormattedString,v=p.timeZone,g=Ne(Fs.copyTableAndApplyFilters,[n]),y=g.data;Pr(y);var S=c.useMemo(()=>y==null?null:bg(y,r),[r,y]),b=c.useMemo(()=>y==null||S==null?null:Sg(y,S,i),[S,i,y]),x=c.useMemo(()=>b==null?[]:[b.name],[b]),O=rl({table:y,iconColumnName:a,keyColumnName:r,labelColumnName:i,formatValue:m}),T=il({reuseItemsOnTableResize:!0,table:y,itemHeight:h,deserializeRow:O,searchColumnNames:x,timeZone:v}),P=T.onScroll,I=T.onSearchTextChange,C=T.viewportData,j=je(),R=we(),k=c.useMemo(()=>{if(y==null||S==null)return[];var Q=[S];if(b!=null&&b!==S&&Q.push(b),a!=null)try{var q=y.findColumn(a);Q.push(q)}catch{}return Q},[y,S,b,a]),E=(t=u.selectedKeys)!==null&&t!==void 0?t:u.defaultSelectedKeys,A=c.useRef(new Set),M=c.useState(new Map),w=Ha(M,2),_=w[0],$=w[1];c.useEffect(()=>{A.current=new Set,$(new Map)},[y]),c.useEffect(function(){if(!(y==null||S==null||E==null||E==="all")){var q=[...E].filter(K=>!A.current.has(String(K)));if(q.length!==0){var D=!1,U=y.findColumn(S.name),V=R.getValueType(U.type);return Va(function*(){try{var K=[];if(yield Promise.all(q.map(function(){var L=Va(function*(N){if(!D){var W=yield y.seekRow(0,U,V,N);W!==-1&&K.push(W)}});return function(N){return L.apply(this,arguments)}}())),K.sort((L,N)=>L-N),D||K.length===0)return;var Z=j.RangeSet.ofItems(K),re=yield y.createSnapshot({rows:Z,columns:k});if(D)return;var ue=new Map;re.rows.forEach((L,N)=>{var W=K[N],z=O(L);ue.set(W,{key:cr(W),item:z})}),D||(q.forEach(L=>A.current.add(String(L))),$(L=>{var N=new Map(L);return ue.forEach((W,z)=>N.set(z,W)),N}))}catch(L){KO.error("Error loading labels for selected keys",L)}})(),()=>{D=!0}}}},[E,y,S,R,j,O,k]);var F=c.useRef(new Map),G=c.useState(new Map),Y=Ha(G,2),ie=Y[0],Se=Y[1],oe=c.useMemo(()=>_.size===0?C.items:C.items.map((Q,q)=>{if(Q.item==null){var D=_.get(q);if(D!=null)return D}return Q}),[C.items,_]);c.useEffect(function(){var q,D=(q=u.selectedKeys)!==null&&q!==void 0?q:u.defaultSelectedKeys,U;D instanceof Array?U=new Set(D.map(String)):D==="all"?U=null:U=new Set;var V=!1;oe.forEach(K=>{if(K.item!=null){var Z=String(K.item.key),re=K.item.textValue;re!=null&&(U==null||U.has(Z))&&F.current.get(Z)!==re&&(F.current.set(Z,re),V=!0)}}),V&&Se(new Map(F.current))},[oe,u.selectedKeys,u.defaultSelectedKeys]);var X=c.useCallback(Q=>{var q;(q=s??l)===null||q===void 0||q(Q)},[s,l]);return Ba(Ba({},u),{},{normalizedItems:oe,selectedItemLabels:ie,showItemIcons:a!=null,onChange:X,onScroll:P,onSearchTextChange:I})}var HO=["onInputChange","onSearchTextChange"];function Ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function za(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ya(Object(n),!0).forEach(function(r){GO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ya(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function GO(e,t,n){return(t=YO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YO(e){var t=zO(e,"string");return typeof t=="symbol"?t:t+""}function zO(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qO(e,t){if(e==null)return{};var n,r,i=XO(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function XO(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function QO(e){var t=Pg(e),n=t.onInputChange,r=t.onSearchTextChange,i=qO(t,HO),a=c.useRef(!1),o=c.useRef(""),s=c.useCallback(u=>{n==null||n(u),a.current?r(u):(r(""),o.current=u)},[n,r]),l=c.useCallback((u,f)=>{var h;(h=i.onOpenChange)===null||h===void 0||h.call(i,u),u?f==="input"&&r(o.current):r(""),a.current=u},[r,i]);return d.jsx(Tl,za(za({},i),{},{onInputChange:s,onOpenChange:l}))}var JO=["table","keyColumn","labelColumn","iconColumn","settings"];function qa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qa(Object(n),!0).forEach(function(r){ZO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qa(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZO(e,t,n){return(t=ex(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ex(e){var t=tx(e,"string");return typeof t=="symbol"?t:t+""}function tx(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nx(e,t){if(e==null)return{};var n,r,i=rx(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function rx(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ix(e){var t,n=e.table,r=e.keyColumn,i=e.labelColumn,a=e.iconColumn,o=e.settings,s=nx(e,JO),l=fr(),u=l.scale,f=el[(t=s.density)!==null&&t!==void 0?t:"regular"][u],h=Sr(o),p=h.getFormattedString,m=rl({table:n,iconColumnName:a,keyColumnName:r,labelColumnName:i,formatValue:p}),v=wr({reuseItemsOnTableResize:!0,table:n,itemHeight:f,deserializeRow:m}),g=v.viewportData,y=v.onScroll;return d.jsx(Cl,Xa(Xa({},s),{},{normalizedItems:g.items,showItemIcons:a!=null,onScroll:y}))}var ax=["onInputChange","onOpenChange","onSearchTextChange"];function Qa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ja(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qa(Object(n),!0).forEach(function(r){ox(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qa(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ox(e,t,n){return(t=sx(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sx(e){var t=lx(e,"string");return typeof t=="symbol"?t:t+""}function lx(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ux(e,t){if(e==null)return{};var n,r,i=cx(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function cx(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function dx(e){var t=VO(e),n=t.onInputChange,r=t.onOpenChange,i=t.onSearchTextChange,a=ux(t,ax),o=c.useRef(!1),s=c.useRef(""),l=c.useCallback(f=>{n==null||n(f),o.current?i(f):(i(""),s.current=f)},[n,i]),u=c.useCallback(f=>{r==null||r(f),f?s.current!==""&&i(s.current):i(""),o.current=f},[i,r]);return d.jsx(Il,Ja(Ja({},a),{},{onInputChange:l,onOpenChange:u}))}function fx(e,t){return yx(e)||mx(e,t)||hx(e,t)||px()}function px(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
33
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hx(e,t){if(e){if(typeof e=="string")return Za(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Za(e,t):void 0}}function Za(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mx(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function yx(e){if(Array.isArray(e))return e}function gx(e){return typeof e=="object"&&e!=null&&"equals"in e&&typeof e.equals=="function"}function vx(e){return"".concat(e)}function bx(e){var t=e.column,n=e.table,r=e.filter,i=r===void 0?us:r,a=e.onChange,o=e.selectedValue,s=e.disabled,l=e.className,u=e.formatValue,f=u===void 0?vx:u,h=e.maxSize,p=h===void 0?1e3:h,m=je(),v=c.useState([]),g=fx(v,2),y=g[0],S=g[1];c.useEffect(()=>{if(n==null){S([]);return}var T=t??n.columns[0];n.applyFilter(i);var P=n.setViewport(0,p,[T]);return P.addEventListener(m.Table.EVENT_UPDATED,I=>{var C=I.detail,j=C.rows.map(R=>{var k;return(k=R.get(T))!==null&&k!==void 0?k:null});S(j)}),()=>{P.close()}},[t,m,i,p,n]);var b=c.useMemo(()=>o===void 0?[void 0,...y]:y,[o,y]),x=c.useMemo(()=>b.findIndex(T=>T===o||gx(T)&&T.equals(o)),[o,b]),O=c.useCallback(T=>{var P=parseInt(T,10);a(b[P])},[a,b]);return d.jsx(fs,{className:l,value:x,onChange:O,disabled:s,children:b.map((T,P)=>d.jsx(tl,{value:P,children:f(T)},"".concat(P)))})}var eo=ne.module("useBroadcastChannel");function jr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ge,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ql,n=c.useMemo(()=>new BroadcastChannel(t),[t]);return c.useEffect(()=>()=>{n.close()},[n]),c.useEffect(()=>{function r(i){var a=i.data;if(!Yt(a)){eo.debug("Ignoring non-deephaven message",a);return}eo.debug("event received",a),e(i)}return n.addEventListener("message",r),()=>{n.removeEventListener("message",r)}},[n,e]),n}function Ar(e,t){var n=c.useCallback(r=>{Zl(r.data)?e==null||e(r.data):eu(r.data)&&(t==null||t(r.data))},[e,t]);jr(n)}function Sx(e,t){return xx(e)||Ox(e,t)||wx(e,t)||Px()}function Px(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
34
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wx(e,t){if(e){if(typeof e=="string")return to(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?to(e,t):void 0}}function to(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ox(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function xx(e){if(Array.isArray(e))return e}function Tx(e,t,n,r){var i=we(),a=c.useState(""),o=Sx(a,2),s=o[0],l=o[1],u=yt(s,n),f=u.value,h=c.useCallback(y=>{l(y.trim())},[]),p=Ne(i.doesColumnValueExist,[e,t,f,r]),m=p.data,v=p.isLoading,g=v||s!==f?null:m;return{valueTrimmed:s,valueTrimmedDebounced:f,valueExists:g,trimAndUpdateValue:h}}var no=ne.module("useDebouncedViewportSearch"),Cx=200;function Ex(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Cx,r=we(),i=e.table,a=e.applyFiltersAndRefresh,o=c.useMemo(()=>ot(s=>{if(no.debug("Applying debounced searchText '".concat(s,"'")),i!=null){var l=s.trim();if(l===""){a([]);return}var u=i.findColumn(t),f=r.makeFilterValue(u.type,l),h=[u.filter().contains(f)];a(h)}},n),[a,t,n,i,r]);return c.useEffect(()=>()=>{no.debug("Cancelling debounced search function"),o.cancel()},[o]),o}var lu=300;function _x(e){var t=e.viewportData,n=e.columnName,r=e.shouldSelectAllOnNoSelection,i=e.mapItemToValue,a=we(),o=gl(t,i,cr),s=yt(o,lu),l=s.value,u=ml(l,dl);return c.useMemo(()=>dr(a,n,u.selection,r,u.isInverted),[n,u,r,a])}function Ix(e,t,n,r){var i=c.useRef("");return i.current=n,c.useMemo(()=>{var a=e.length>0&&e[0].item==null;return!a&&r!=null&&(i.current===""||r.toLowerCase().includes(i.current.toLowerCase()))?[{key:r,item:{[t]:r}},...e]:e},[r,t,e])}function ro(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function jx(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){ro(a,r,i,o,s,"next",l)}function s(l){ro(a,r,i,o,s,"throw",l)}o(void 0)})}}function Ax(e){var t=e.table,n=e.columnName,r=e.defaultValue,i=e.itemHeight,a=e.topOffset,o=a===void 0?0:a,s=e.value;return c.useCallback(jx(function*(){if(t==null||s===""||s===r)return o;var l=t.findColumn(n),u=yield t.seekRow(0,l,"String",s),f=r==null?0:1;return(u+f)*i+o}),[n,r,i,t,o,s])}function $x(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"or",n=we(),r=c.useMemo(()=>Ns(n),[n]);return c.useMemo(()=>ur(e,r,t),[e,t,r])}function kt(e,t){return Lx(e)||Dx(e,t)||Rx(e,t)||kx()}function kx(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
35
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rx(e,t){if(e){if(typeof e=="string")return io(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?io(e,t):void 0}}function io(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Dx(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Lx(e){if(Array.isArray(e))return e}function Mx(e){var t=e.maybeTable,n=e.columnName,r=e.mapItemToValue,i=e.filterConditionFactories,a=i===void 0?[]:i,o=e.trimSearchText,s=o===void 0?!1:o,l=e.timeZone,u=br(),f=u.itemHeight,h=we(),p=c.useState(""),m=kt(p,2),v=m[0],g=m[1],y=c.useState(""),S=kt(y,2),b=S[0],x=S[1],O=c.useCallback(L=>{x(s?L.trim():L)},[s]),T=c.useMemo(()=>s?v.trim():v,[v,s]),P=c.useState(null),I=kt(P,2),C=I[0],j=I[1],R=c.useState(()=>new Map),k=kt(R,2),E=k[0],A=k[1],M=Ne(h.doesColumnValueExist,[t,n,b,!1]),w=M.data,_=M.isLoading,$=yt(b,ei),F=$.isDebouncing,G=F||_?null:w,Y=c.useMemo(()=>Us(h,n,b,l),[b,n,h,l]),ie=c.useMemo(()=>dr(h,n,new Set(E.keys()),!1,!0),[n,E,h]),Se=Ne(h.createDistinctSortedColumnTable,[t,n,"asc",...a]),oe=Se.data;Pr(oe);var X=wr({table:oe,itemHeight:f,viewportSize:wg,viewportPadding:Og}),Q=T.length>0&&X.size===0,q=E.has(T),D=st(O,ei),U=c.useCallback(L=>{g(L),D(L)},[D]),V=st(j,0),K=c.useCallback(L=>{if(g(""),O(""),j(L),V(null),L!=null){var N=X.viewportData.findItem(L);if(N!=null){var W=r(N);A(z=>{var de=new Map(z);return de.set(W,{value:W}),de})}}},[O,V,X.viewportData,r]),Z=c.useCallback(L=>{A(N=>{if(L.size===0)return N;var W=new Map(N);for(var z of L)W.set(z,{value:z});return W})},[]),re=c.useCallback(L=>{A(N=>{if(L==="all")return new Map;var W=new Map(N);for(var z of L)W.delete(z);return W})},[]),ue=al(X.table,Y,ie);return ol(X,ue),c.useMemo(()=>({list:X,hasSearchTextWithZeroResults:Q,searchText:v,searchTextExists:G,searchTextIsInSelectedValues:q,selectedKey:C,selectedValueMap:E,onSearchTextChange:U,onSelectKey:K,onAddValues:Z,onRemoveValues:re}),[Q,X,Z,re,U,K,v,G,q,C,E])}function ao(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Fx(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){ao(a,r,i,o,s,"next",l)}function s(l){ao(a,r,i,o,s,"throw",l)}o(void 0)})}}function Nx(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=c.useCallback(Fx(function*(){var f;return(f=e==null?void 0:e.selectDistinct(e.findColumns(n)))!==null&&f!==void 0?f:null}),[e,...n]),a=Ne(i,[]),o=a.data,s=a.error,l=a.isError,u=a.isLoading;return c.useEffect(()=>()=>{o==null||o.close()},[o]),{distinctTable:o,error:s,isError:l,isLoading:u}}function Ux(e,t){var n=we(),r=c.useMemo(()=>Ws(n,e),[e,n]);return c.useMemo(()=>ur(t,r),[t,r])}function Wx(e,t,n){var r=we();return c.useMemo(()=>Bs(r,e,t,n),[e,n,r,t])}const Bx=Object.freeze(Object.defineProperty({__proto__:null,ComboBox:QO,DEBOUNCE_MS:lu,ListView:ix,MultiSelect:dx,Picker:xg,TableDropdown:bx,TableInput:$O,makeApiContextWrapper:hO,useBroadcastChannel:jr,useBroadcastLoginListener:Ar,useCheckIfExistsValue:Tx,useDebouncedViewportSearch:Ex,useDebouncedViewportSelectionFilter:_x,useFilterConditionFactories:al,useFilteredItemsWithDefaultValue:Ix,useFormatter:Sr,useGetItemIndexByValue:Tg,useGetItemPosition:Ax,useInitializeViewportData:Cg,useNotNullOrEmptyFilter:$x,usePickerWithSelectedValues:Mx,useSearchableViewportData:il,useSelectDistinctTable:Nx,useSetPaddedViewportCallback:Eg,useShowOnlyEmptyFilter:Ux,useTable:ou,useTableClose:_g,useTableColumn:su,useTableListener:Lt,useTableSize:Ig,useTableUtils:we,useValueFilter:Wx,useViewportData:wr,useViewportFilter:ol,useWidgetClose:Pr},Symbol.toStringTag,{value:"Module"}));function uu(e){var t=wl(),n=t.isEnabled,r=t.isPending,i=t.themeData;return c.useMemo(()=>n?r?null:i?[i]:[]:e==null?null:vs(e),[n,r,i,e])}function Kx(e){var t=e.dashboardProps,n=e.componentName,r=e.component,i=e.supportedTypes,a=e.hydrate,o=e.dehydrate,s=t.id,l=t.layout,u=t.registerComponent,f=c.useCallback(h=>{var p=h.dragEvent,m=h.panelId,v=m===void 0?zn():m,g=h.widget,y=g.name,S=g.type,b=S!=null&&(Array.isArray(i)&&i.includes(S)||S===i);if(b){var x={localDashboardId:s,metadata:g};a!=null&&(x=a(x,s));var O={type:"react-component",component:n,props:x,title:y??void 0,id:v},T=l.root;bs.openComponent({root:T,config:O,dragEvent:p})}},[n,a,s,l,i]);Ks(u,r,a,o),Ss(l.eventHub,f)}function Vx(e,t){var n=Pd(),r=wd(a=>Ps(a,e,t)),i=c.useCallback(a=>n(ws(e,t,a)),[e,t,n]);return[r,i]}const Hx=Object.freeze(Object.defineProperty({__proto__:null,BasePanel:Qr,CLOSE_DASHBOARD:jp,CREATE_DASHBOARD:Ap,DEFAULT_DASHBOARD_ID:$p,DH_ID_PROP:kp,Dashboard:qr,DashboardIdContext:Rp,DashboardLayout:Dp,DashboardUtils:Lp,GLPropTypes:Mp,LayoutManagerContext:Fp,LayoutUtils:bs,LazyDashboard:Hf,Panel:Qr,PanelErrorBoundary:Np,PanelEvent:Up,PanelIdContext:Wp,PanelManager:Bp,PersistentStateContext:Kp,PersistentStateProvider:Os,SET_DASHBOARD_DATA:Vp,TabEvent:Hp,assertIsDashboardPluginProps:Hm,canHaveRef:hs,default:qr,dehydrate:Gp,emitCloseDashboard:Yp,emitCreateDashboard:zp,emitCycleToNextStack:qp,emitCycleToNextTab:Xp,emitCycleToPreviousStack:Qp,emitCycleToPreviousTab:Jp,emitPanelClose:Zp,emitPanelOpen:eh,getAllDashboardsData:th,getClosedPanelsForDashboard:nh,getDashboardData:rh,getOpenedPanelMapForDashboard:ih,getPluginDataForDashboard:Ps,getPluginDataMapForDashboard:ah,hydrate:oh,isDashboardPluginProps:Gm,isWrappedComponent:ms,listenForCloseDashboard:sh,listenForCreateDashboard:lh,listenForCycleToNextStack:uh,listenForCycleToNextTab:ch,listenForCycleToPreviousStack:dh,listenForCycleToPreviousTab:fh,listenForPanelClose:ph,listenForPanelOpen:hh,reducers:mh,setDashboardData:yh,setDashboardPluginData:ws,updateDashboardData:gh,useAppDispatch:vh,useAppSelector:xs,useAppStore:bh,useCloseDashboardListener:Sh,useCreateDashboardListener:Ph,useCycleToNextStackListener:wh,useCycleToNextTabListener:Oh,useCycleToPreviousStackListener:xh,useCycleToPreviousTabListener:Th,useDashboardId:Ch,useDashboardPanel:Kx,useDashboardPluginData:Vx,useDhId:Eh,useLayoutManager:Ym,useListener:_h,usePanelCloseListener:Ih,usePanelId:jh,usePanelOpenListener:Ss,usePanelRegistration:Ks,usePersistentState:Vs},Symbol.toStringTag,{value:"Module"}));function Gx(){var e=Ts(),t=c.useMemo(()=>Cs(e),[e]);return t}const Yx=Object.freeze(Object.defineProperty({__proto__:null,PersistentStateProvider:Os,PluginType:Es,PluginsContext:tn,WidgetView:Ah,createChainedComponent:$h,createChainedPanelComponent:kh,createPanelMiddleware:Rh,createWidgetMiddleware:Dh,getDashboardPlugins:Gf,getIconForPlugin:Lh,getPluginModuleValue:Mh,getPluginsElementMap:Cs,getThemeDataFromPlugins:vs,getWidgetDashboardPlugin:Fh,groupByDependencyLevel:_s,isAuthPlugin:Is,isDashboardPlugin:Nh,isElementPlugin:Uh,isLegacyAuthPlugin:jn,isLegacyDashboardPlugin:Wh,isLegacyPlugin:Bh,isLegacyTablePlugin:Kh,isMultiPlugin:js,isPlugin:Vh,isTablePlugin:Hh,isThemePlugin:Gh,isWidgetDashboardPlugin:Yh,isWidgetMiddlewarePlugin:zh,isWidgetPlugin:qh,pluginSupportsType:Xh,pluginSupportsTypeAsDashboard:Qh,processLoadedModule:As,registerPlugin:Jh,useCustomThemes:uu,useDashboardPlugins:Yf,usePersistentState:Vs,usePlugins:Ts,usePluginsElementMap:Gx},Symbol.toStringTag,{value:"Module"}));function zx(e){if(e==null)return!1;var t=e;return t.Component!==void 0&&typeof t.isAvailable=="function"}var cu="io.deephaven.auth.AnonymousAuthenticationHandler",qx="io.deephaven.authentication.psk.PskAuthenticationHandler";function oo(e,t,n){return(t=Xx(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xx(e){var t=Qx(e,"string");return typeof t=="symbol"?t:t+""}function Qx(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class du extends Error{constructor(){super(...arguments),oo(this,"name","AuthenticationError"),oo(this,"isAuthenticationError",!0)}}function so(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Jx(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){so(a,r,i,o,s,"next",l)}function s(l){so(a,r,i,o,s,"throw",l)}o(void 0)})}}function lo(e,t){return n1(e)||t1(e,t)||e1(e,t)||Zx()}function Zx(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
36
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e1(e,t){if(e){if(typeof e=="string")return uo(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?uo(e,t):void 0}}function uo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t1(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function n1(e){if(Array.isArray(e))return e}var co=ne.module("AuthPluginBase");function $r(e){var t=e.children,n=e.getLoginOptions,r=pt(),i=c.useState(),a=lo(i,2),o=a[0],s=a[1],l=c.useState(!1),u=lo(l,2),f=u[0],h=u[1];return c.useEffect(()=>{var p=!1;function m(){if(p)throw new $s("Login canceled.")}function v(){return g.apply(this,arguments)}function g(){return g=Jx(function*(){try{var y=yield n();m(),co.info("Logging in..."),yield r.login(y),m(),h(!0)}catch(x){if(!p){var S;co.error("Unable to login:",x);var b=(S=lt(x))!==null&&S!==void 0?S:"Unable to login. Verify credentials.";s(new du(b)),h(!1)}}}),g.apply(this,arguments)}return v(),()=>{p=!0}},[r,n]),f?d.jsx(d.Fragment,{children:t}):d.jsx(Ue,{"data-testid":"auth-base-loading",isLoading:o==null,isLoaded:!1,errorMessage:lt(o)})}var r1={canLogout:!1};function i1(e){var t=e.children,n=je(),r=c.useCallback(()=>({type:n.CoreClient.LOGIN_TYPE_ANONYMOUS}),[n]);return d.jsx($r,{getLoginOptions:r,children:d.jsx(zt.Provider,{value:r1,children:t})})}var fu={Component:i1,isAvailable:e=>e.includes(cu)};function fo(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function a1(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){fo(a,r,i,o,s,"next",l)}function s(l){fo(a,r,i,o,s,"throw",l)}o(void 0)})}}var o1=ne.module("AuthPluginParent"),s1={canLogout:!1};function l1(e){return e!=null&&typeof e.type=="string"}function u1(){return Un.apply(this,arguments)}function Un(){return Un=a1(function*(){o1.info("Logging in by delegating to parent window...");var e=yield rr(ql);if(!l1(e))throw new Error("Unexpected login options response: ".concat(e));return e}),Un.apply(this,arguments)}function c1(){var e;return(e=new URLSearchParams(window.location.search).get("authProvider"))!==null&&e!==void 0?e:""}function d1(e){var t=e.children;return d.jsx($r,{getLoginOptions:u1,children:d.jsx(zt.Provider,{value:s1,children:t})})}var pu={Component:d1,isAvailable:()=>Jn()!=null&&c1()==="parent"};function hu(e){var t=e.children,n=e.errorMessage,r=e.isLoggingIn,i=r===void 0?!1:r,a=e.onSubmit;return d.jsxs("form",{className:"login-form",onSubmit:o=>{o.preventDefault(),o.stopPropagation(),a==null||a(o)},children:[d.jsx("div",{className:"flex-spacer"}),d.jsxs("div",{className:"flex-wrapper",children:[d.jsx("fieldset",{disabled:i,className:"container-fluid",children:t}),d.jsx("div",{className:"form-group d-flex justify-content-end align-items-center mb-0",children:d.jsxs("button",{type:"submit",className:H("btn btn-primary",{"btn-spinner":i},{"btn-cancelable":i}),"data-testid":"btn-login",children:[i&&d.jsxs("span",{children:[d.jsx(Ht,{className:"mr-2 loading-spinner-vertical-align"}),d.jsx("span",{className:"btn-normal-content",children:"Logging in"}),d.jsx("span",{className:"btn-hover-content",children:"Cancel"})]}),!i&&"Login"]})})]}),d.jsx("div",{className:"flex-spacer",children:n!=null&&d.jsx("p",{className:"error-message mb-0",role:"alert",children:"".concat(n)})})]})}function mu(e){var t=e.children,n=e.logoPath,r=n===void 0?"./logo.png":n;return d.jsxs("div",{className:"login-container",children:[d.jsx(Kl,{}),d.jsxs("div",{className:"login-box",children:[d.jsx("div",{className:"logo",children:d.jsx("img",{src:r,alt:"Deephaven Data Labs"})}),t,d.jsxs("p",{className:"footer",children:["© 2016-",new Date().getFullYear()," Deephaven Data Labs LLC. Patent Pending."]})]})]})}function po(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function bn(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){po(a,r,i,o,s,"next",l)}function s(l){po(a,r,i,o,s,"throw",l)}o(void 0)})}}function tt(e,t){return m1(e)||h1(e,t)||p1(e,t)||f1()}function f1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
37
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p1(e,t){if(e){if(typeof e=="string")return ho(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ho(e,t):void 0}}function ho(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h1(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function m1(e){if(Array.isArray(e))return e}var Wn="io.deephaven.authentication.psk.PskAuthenticationHandler",yu="psk",Bn="io.deephaven.web.client.auth.psk.token",He=ne.module("AuthPluginPsk");function y1(){return new URLSearchParams(window.location.search).get(yu)}function g1(){He.debug2("clearWindowToken");var e=new URL(window.location.href);e.searchParams.delete(yu),window.history.replaceState(null,"",e.href)}function mo(){var e;return(e=Cn.get(Bn))!==null&&e!==void 0?e:null}function Sn(e){He.debug2("Storing token in cookie",e),e!=null?Cn.set(Bn,e,{secure:!0,sameSite:"strict"}):Cn.remove(Bn)}function v1(e){var t=e.children,n=e.logoPath,r=pt(),i=c.useRef(null),a=c.useRef(null),o=c.useState(),s=tt(o,2),l=s[0],u=s[1],f=c.useState(!1),h=tt(f,2),p=h[0],m=h[1],v=c.useState(!1),g=tt(v,2),y=g[0],S=g[1],b=c.useState(!1),x=tt(b,2),O=x[0],T=x[1],P=c.useState(""),I=tt(P,2),C=I[0],j=I[1],R=c.useCallback(function(){var w=bn(function*(_){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;He.info("Logging in..."),T(!0);var F=null;try{if(F=r.login({type:Wn,token:_}),a.current=F,yield F,He.info("Logged in successfully"),a.current!==F)return;Sn(_),S(!0)}catch(ie){if(a.current!==F)return;if(m(!0),$){var G;He.error("Unable to login",ie);var Y=(G=lt(ie))!==null&&G!==void 0?G:"Unable to login: Verify credentials.";u(new du(Y))}}T(!1)});return function(_){return w.apply(this,arguments)}}(),[r]),k=c.useCallback(()=>{a.current=null,T(!1)},[]),E=c.useCallback(bn(function*(){He.debug("onLogin");var w=mo();y||O||w==null||R(w,!1)}),[y,O,R]),A=c.useCallback(()=>{Sn(null)},[]);Ar(E,A),c.useEffect(()=>{var w=!1;function _(){return $.apply(this,arguments)}function $(){return $=bn(function*(){var F,G=(F=y1())!==null&&F!==void 0?F:mo();if(g1(),G==null){m(!0);return}T(!0);try{yield r.login({type:Wn,token:G}),w||(Sn(G),S(!0),T(!1))}catch{w||(m(!0),T(!1))}}),$.apply(this,arguments)}return _(),()=>{w=!0}},[r]);var M=c.useCallback(()=>{O?k():R(C)},[k,O,R,C]);return c.useEffect(function(){var _;(_=i.current)===null||_===void 0||_.focus()},[i,p]),d.jsxs(d.Fragment,{children:[y&&t,p&&d.jsx(or,{in:!y,mountOnEnter:!0,unmountOnExit:!0,children:d.jsx(mu,{logoPath:n,children:d.jsx(hu,{errorMessage:lt(l),isLoggingIn:O,onSubmit:M,children:d.jsxs("div",{className:"form-group",children:[d.jsx("label",{htmlFor:"auth-psk-token-input",children:"Token"}),d.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:C,onChange:w=>{u(void 0),j(w.target.value)}})]})})})}),d.jsx(Ue,{"data-testid":"auth-psk-loading",isLoaded:y||p,isLoading:!y&&!p})]})}var gu={Component:v1,isAvailable:e=>e.includes(Wn)};function yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yo(Object(n),!0).forEach(function(r){b1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yo(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function b1(e,t,n){return(t=S1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S1(e){var t=P1(e,"string");return typeof t=="symbol"?t:t+""}function P1(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var w1=ne.module("UserUtils");function vu(e,t){return e.get("internal.webClient.appInit.".concat(t))}function bu(e){var t,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(y){return vu(e,y)}function l(y,S){var b=s(y);return b==="true"?!0:b==="false"?!1:(b!==void 0&&w1.warn("Unexpected value for ".concat(y,": ").concat(b)),S)}var u=(t=s("name"))!==null&&t!==void 0?t:"",f=(n=s("operateAs"))!==null&&n!==void 0?n:u,h=(r=(i=s("groups"))===null||i===void 0?void 0:i.split(","))!==null&&r!==void 0?r:[],p=l("canCopy",!0),m=l("canDownloadCsv",!0),v=l("canUsePanels",!0),g=l("canLogout",!0);return Pn(Pn({name:u,operateAs:f,groups:h},a),{},{permissions:Pn({canUsePanels:v,canCopy:p,canDownloadCsv:m,canLogout:g},o)})}const O1=Object.freeze(Object.defineProperty({__proto__:null,AUTH_HANDLER_TYPE_ANONYMOUS:cu,AUTH_HANDLER_TYPE_PSK:qx,AuthPluginAnonymous:fu,AuthPluginBase:$r,AuthPluginParent:pu,AuthPluginPsk:gu,Login:mu,LoginForm:hu,UserContext:is,UserOverrideContext:as,UserPermissionsOverrideContext:zt,getAppInitValue:vu,getUserFromConfig:bu,isAuthPlugin:zx},Symbol.toStringTag,{value:"Module"}));function Ye(e,t,n){return(t=x1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x1(e){var t=T1(e,"string");return typeof t=="symbol"?t:t+""}function T1(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class ee extends Hs{static get theme(){return ee._theme==null&&(ee._theme=ks()),ee._theme}static makeRandomSeries(t){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"),u=0;u<r;u+=1){var f=new Date(l.getFullYear(),l.getMonth(),l.getDate()+u-r);i.push("".concat(f.getFullYear(),"-").concat(f.getMonth()+1,"-").concat(f.getDate()));var h=(Math.sin(u/r*t)*r/3+Math.cos(u*.2)*r/6+Math.sin(u*.5)*r/10+ee.random()*r/5+u*ee.smoothing)*n;h=Math.round(h*100)/100,a.push(h),s.push(40+u*ee.smoothing),o.push(Math.sin(u/r*t)*r/3+ee.random()*r/10+u*ee.smoothing)}return{x:i,y:a,s:o,l:s}}static makeScatter(t){return{name:"SCTR",x:t.x,y:t.y,type:"scatter",mode:"markers",hoverinfo:"skip",marker:{size:5}}}static makeArea(t){return{name:"AREA",x:t.x,y:t.s,type:"scatter",mode:"line",fill:"tozeroy",hoverinfo:"all",line:{width:3}}}static makeTrendline(t){return{name:"Trendline <br>R<sup>2</sup> = 0.91",x:t.x,y:t.l,type:"scatter",mode:"line",hoverinfo:"skip",line:{width:3,dash:"dot"}}}static makeErrorBand(t){for(var n=[],r=[],i=0;i<t.y.length;i+=1){var a=t.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:t.x.concat(t.x.slice().reverse()),y:o,type:"scatter",mode:"line",hoverinfo:"skip",fill:"toself",line:{width:0,color:ee.theme.error_band_line_color,shape:"spline"}}}static makeLine(t){return{name:"LINE",x:t.x,y:t.y,type:"scatter",mode:"line",hoverinfo:"x+y+text+name",line:{width:3}}}static makeRandomData(){var t=ee.makeRandomSeries(6),n=ee.makeArea(t),r=ee.makeTrendline(t),i=ee.makeRandomSeries(2),a=ee.makeLine(i),o=ee.makeErrorBand(i);return[n,r,a,o]}static makeDefaultLayout(t){var n={template:new Gs(t).makeDefaultTemplate(ee.theme)};return n.title={text:"Chart"},n.xaxis={title:{text:"Datestamp"}},n.yaxis={title:{text:"Price"}},n}constructor(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.data,i=r===void 0?ee.makeRandomData():r,a=n.layout,o=a===void 0?ee.makeDefaultLayout(t):a,s=n.filterFields,l=s===void 0?[]:s;super(t),Ye(this,"data",void 0),Ye(this,"filterFields",void 0),Ye(this,"layout",void 0),this.data=i,this.layout=o,this.filterFields=l}getData(){return this.data}getLayout(){return this.layout}getFilterColumnMap(){for(var t=new Map,n=0;n<this.filterFields.length;n+=1){var r=this.filterFields[n],i="java.lang.String";t.set(r,{name:r,type:i})}return t}isFilterRequired(){return this.filterFields.length>0}setFilter(){this.fireUpdate(this.data)}}Ye(ee,"random",Math.random.bind(Math));Ye(ee,"smoothing",1.5);Ye(ee,"_theme",void 0);const C1=Object.freeze(Object.defineProperty({__proto__:null,Chart:zm,ChartModel:Hs,ChartModelFactory:qm,ChartThemeContext:Zh,ChartThemeProvider:Rs,ChartUtils:Gs,DownsamplingError:Oy,FigureChartModel:Xm,MockChartModel:ee,Plot:em,defaultChartTheme:ks,isFigureChartModel:Qm,isWebGLSupported:Jm,useChartTheme:tm},Symbol.toStringTag,{value:"Module"}));function Su(e){var t=e.children,n=qt(),r=n.activeThemes;return c.useEffect(function(){r!=null&&Ds.initTheme()},[r]),d.jsx(d.Fragment,{children:t})}var E1={$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).
38
38
 
39
39
  Used by the formatter and when enforcing long-line violations (like \`E501\`) to determine the visual width of a tab.
40
40
 
@@ -114,11 +114,11 @@ foo, bar, quux = this_is_a_long_line(lion, hippo, lemur, bear) ''' pass \`\`\`
114
114
 
115
115
  ( 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.
116
116
 
117
- 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 bn(e,t){return x1(e)||O1(e,t)||w1(e,t)||P1()}function P1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
118
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w1(e,t){if(e){if(typeof e=="string")return po(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?po(e,t):void 0}}function po(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function O1(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function x1(e){if(Array.isArray(e))return e}function ho(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function T1(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){ho(a,r,i,o,s,"next",l)}function s(l){ho(a,r,i,o,s,"throw",l)}o(void 0)})}}var yu=bd.parse("inmemory://dh-config/ruff-settings.json");function C1(){var e=Vr.json.jsonDefaults.diagnosticsOptions.schemas,t=e===void 0?[]:e;t.some(n=>n.uri==="json://ruff-schema")||Vr.json.jsonDefaults.setDiagnosticsOptions({schemas:[...t,{uri:"json://ruff-schema",fileMatch:[yu.toString()],schema:S1}]})}function E1(){return Un.apply(this,arguments)}function Un(){return Un=T1(function*(){return yield Rs.initRuff(),"v".concat(Sd.version())}),Un.apply(this,arguments)}function _1(e){var t=e.text,n=e.isOpen,r=e.onClose,i=e.onSave,a=e.readOnly,o=a===void 0?!1:a,s=e.defaultSettings,l=s===void 0?ks:s,u=c.useState(!1),f=bn(u,2),p=f[0],h=f[1],m=c.useState(!1),v=bn(m,2),g=v[0],y=v[1],S=c.useRef(),b=c.useMemo(()=>JSON.stringify(l,null,2),[l]),O=Ne(E1),w=O.data,E=c.useState(()=>vd.createModel(t,"json",yu)),P=bn(E,1),I=P[0],x=c.useCallback(()=>{n&&(r(),S.current=void 0,I.dispose())},[n,r,I]),C=c.useCallback(()=>{if(n){try{var W,T;i(JSON.parse((W=(T=S.current)===null||T===void 0||(T=T.getModel())===null||T===void 0?void 0:T.getValue())!==null&&W!==void 0?W:""))}catch{}x()}},[n,x,i]),A=c.useCallback(()=>{st(I),I.setValue(b)},[I,b]),R=c.useCallback(W=>{var T;try{JSON.parse(W),h(!0)}catch{h(!1)}y(((T=S.current)===null||T===void 0||(T=T.getModel())===null||T===void 0?void 0:T.getValue())===b)},[b]),_=lt(R,500,{leading:!0}),$=c.useCallback(W=>{S.current=W,I.onDidChangeContent(()=>{_(I.getValue())}),C1(),_(I.getValue())},[_,I]);return n?d.jsxs(Xn,{isOpen:n,centered:!0,keyboard:!0,clickOutside:!1,toggle:x,size:"lg",className:"ruff-settings-modal",children:[d.jsxs(Qo,{closeButton:!1,children:[d.jsxs("span",{className:"settings-modal-title mr-auto",children:["Ruff ",w," Settings"]}),d.jsx(Bo,{href:"https://docs.astral.sh/ruff/settings/",target:"_blank",children:d.jsx(le,{kind:"ghost",onClick:ge,icon:Af,children:"Settings Docs"})}),d.jsxs(Kt,{isDisabled:g,onPress:A,children:[d.jsx(pt,{children:d.jsx(ce,{icon:$f})}),d.jsx(qt,{children:"Reset to default"})]})]}),d.jsx(Qn,{style:{height:"80vh"},children:d.jsx(Hs,{onEditorInitialized:$,settings:{readOnly:o,value:t,language:"json",folding:!0,padding:{bottom:16},lineNumbers:"on",overviewRulerLanes:0,model:I}})}),d.jsx(ls,{children:o?d.jsx(le,{kind:"secondary","data-dismiss":"modal",onClick:x,children:"Close"}):d.jsxs(d.Fragment,{children:[d.jsx(le,{kind:"secondary","data-dismiss":"modal",onClick:x,children:"Cancel"}),d.jsx(le,{kind:"primary","data-dismiss":"modal",tooltip:p?void 0:"Cannot save invalid JSON",disabled:!p,onClick:C,children:"Save"})]})})]}):null}const I1=Object.freeze(Object.defineProperty({__proto__:null,Code:Xh,CommandHistory:Qh,CommandHistoryActions:Jh,CommandHistoryItem:Zh,CommandHistoryItemTooltip:em,Console:qr,ConsoleConstants:tm,ConsoleHistory:nm,ConsoleHistoryItem:rm,ConsoleHistoryItemResult:im,ConsoleHistoryResultErrorMessage:am,ConsoleHistoryResultInProgress:om,ConsoleInput:sm,ConsoleStatusBar:lm,ConsoleUtils:um,Editor:Hs,HeapUsage:cm,LogView:dm,MonacoProviders:Rs,MonacoTheme:fm,MonacoThemeProvider:mu,MonacoUtils:$s,ObjectIcon:pm,RUFF_DEFAULT_SETTINGS:ks,RuffSettingsModal:_1,SHORTCUTS:hm,ScriptEditor:Ym,ScriptEditorUtils:zm,default:qr},Symbol.toStringTag,{value:"Module"}));function Wn(e,t,n){return(t=j1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j1(e){var t=A1(e,"string");return typeof t=="symbol"?t:t+""}function A1(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class ze{static valueForCell(t,n,r){var i="".concat(t,",").concat(n);return r!==void 0&&r&&(i="(".concat(i,")")),i}constructor(t){Wn(this,"dh",void 0),Wn(this,"irisGridUtils",void 0),this.dh=t,this.irisGridUtils=new Vs(t)}makeColumn(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ze.DEFAULT_TYPE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return new this.dh.Column({index:r,name:t,type:n})}makeRollupTableConfig(){return new this.dh.RollupTableConfig}makeColumns(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=[],i=0;i<t;i+=1)r.push(this.makeColumn("".concat(n).concat(i),ze.DEFAULT_TYPE,i));return r}static makeUserColumnWidths(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5,n=new Map,r=0;r<t;r+=1)n.set(r.toString(),100);return n}makeRow(t){var n=new this.dh.Row({index:t,name:"".concat(t)});return n.get=jest.fn(r=>ze.valueForCell(t,r.index)),n}makeFilter(){return new this.dh.FilterCondition}makeSort(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.makeColumn();return new this.dh.Sort({column:t})}hydrateSort(t,n){return this.irisGridUtils.hydrateDhSort(n,t)}makeTable(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.columns,r=n===void 0?this.makeColumns():n,i=t.size,a=i===void 0?1e9:i,o=t.sort,s=o===void 0?[]:o,l=t.layoutHints,u=l===void 0?{}:l,f=new this.dh.Table({columns:r,size:a,sort:s});return f.copy=jest.fn(()=>Promise.resolve(f)),f.freeze=jest.fn(()=>Promise.resolve(f)),f.layoutHints=u,f}makeTreeTable(){var t=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]:[],i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1e9,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5?arguments[5]:void 0,s=new this.dh.TreeTable({columns:t,aggregatedColumns:n,groupedColumns:r,size:i,sort:a,layoutHints:o});return s.copy=jest.fn(()=>Promise.resolve(s)),s}static makeInputTable(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[...t,...n].reduce((o,s)=>(t.includes(s)?o.keys.push(s.name):o.values.push(s.name),o),{keys:[],values:[]}),i=r.keys,a=r.values;return{keys:i,values:a}}makeSubscription(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.makeTable();return new this.dh.TableViewportSubscription({table:t})}makeModel(){var t=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,i=this.dh;return new qm(i,t,n??new ar(i),r)}}Wn(ze,"DEFAULT_TYPE","java.lang.String");const $1=Object.freeze(Object.defineProperty({__proto__:null,AdvancedSettings:Xm,AdvancedSettingsType:Qm,AggregationEdit:xg,AggregationOperation:Jm,AggregationUtils:Zm,Aggregations:Tg,BarIcon:Cg,ChartBuilder:Eg,ColumnHeaderGroup:ey,CustomColumnBuilder:_g,DndKitCore:Pd,DndKitModifiers:wd,DndKitSortable:Od,DndKitUtilities:xd,DownloadServiceWorkerUtils:Ig,FormatColumnWhereIcon:jg,FormatRowWhereIcon:Ag,HistogramIcon:$g,InputEditor:kg,IrisGrid:Xr,IrisGridCacheUtils:ty,IrisGridCellOverflowMouseHandler:Rg,IrisGridCellRendererUtils:Dg,IrisGridColumnSelectMouseHandler:Lg,IrisGridColumnTooltipMouseHandler:Mg,IrisGridContextMenuHandler:Fg,IrisGridCopyCellMouseHandler:Ng,IrisGridDataSelectMouseHandler:Ug,IrisGridFilterMouseHandler:Wg,IrisGridMetricCalculator:Bg,IrisGridModel:ny,IrisGridModelFactory:ry,IrisGridPartitionedTableModel:iy,IrisGridPartitionedTableMouseHandler:Kg,IrisGridRenderer:Hg,IrisGridRowTreeMouseHandler:Vg,IrisGridSortMouseHandler:Gg,IrisGridTableModel:ay,IrisGridTableModelTemplate:oy,IrisGridTestUtils:ze,IrisGridThemeContext:Yg,IrisGridThemeProvider:il,IrisGridTokenMouseHandler:zg,IrisGridTreeTableModel:sy,IrisGridUtils:Vs,LineIcon:qg,OptionType:Xg,PendingMouseHandler:Qg,PieIcon:Jg,RollupRows:Zg,SHORTCUTS:ev,ScatterIcon:tv,TableCsvExporter:nv,TableSaver:rv,VisibilityOrderingBuilder:iv,createDefaultIrisGridTheme:av,default:Xr,isColumnHeaderGroup:ly,isIrisGridTableModelTemplate:uy,isIrisGridTreeTableModel:cy,isPanelStateV1:dy,isPanelStateV2:fy,isPartitionedGridModel:py,isPartitionedGridModelProvider:hy,isUITreeRow:my},Symbol.toStringTag,{value:"Module"}));var jr={react:J,"react-dom":_d,redux:Ed,"react-redux":Cd,"@adobe/react-spectrum":Td,"@deephaven/auth-plugins":y1,"@deephaven/chart":b1,"@deephaven/components":jw,"@deephaven/console":I1,"@deephaven/dashboard":Fx,"@deephaven/dashboard-core-plugins":yy,"@deephaven/icons":kf,"@deephaven/iris-grid":$1,"@deephaven/jsapi-bootstrap":Qw,"@deephaven/jsapi-components":Dx,"@deephaven/jsapi-utils":sO,"@deephaven/log":re,"@deephaven/plugin":Ux,"@deephaven/react-hooks":ib},k1=jd.createRequires(jr),R1=Id({requires:k1});function mo(e,t){return F1(e)||M1(e,t)||L1(e,t)||D1()}function D1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
119
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L1(e,t){if(e){if(typeof e=="string")return yo(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yo(e,t):void 0}}function yo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function M1(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function F1(e){if(Array.isArray(e))return e}function go(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Wt(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){go(a,r,i,o,s,"next",l)}function s(l){go(a,r,i,o,s,"throw",l)}o(void 0)})}}var Me=re.module("@deephaven/app-utils.PluginUtils");function N1(e){return Bn.apply(this,arguments)}function Bn(){return Bn=Wt(function*(e){var t=yield R1(e);return t}),Bn.apply(this,arguments)}function U1(e){return Kn.apply(this,arguments)}function Kn(){return Kn=Wt(function*(e){var t=yield fetch(e);if(!t.ok)throw new Error(t.statusText);try{return yield t.json()}catch{throw new Error("Could not be parsed as JSON")}}),Kn.apply(this,arguments)}function W1(e){return Hn.apply(this,arguments)}function Hn(){return Hn=Wt(function*(e){Me.debug("Loading plugins...");try{var t=yield U1("".concat(e,"/manifest.json"));if(!Array.isArray(t.plugins))throw new Error("Plugin manifest JSON does not contain plugins array");Me.debug("Plugin manifest loaded:",t);for(var n=Ts(t.plugins),r=new Map,i=0;i<n.length;i+=1)for(var a=n[i],o=yield Promise.allSettled(a.map(function(){var v=Wt(function*(g){var y=g.name,S=g.main,b=g.version,O=g.package,w="".concat(e,"/").concat(y,"/").concat(S),E=yield N1(w);return{pluginExports:E,name:y,packageName:O,version:b}});return function(g){return v.apply(this,arguments)}}())),s=0;s<o.length;s+=1){var l=o[s];if(l.status==="fulfilled"){var u=l.value,f=u.pluginExports,p=u.name,h=u.packageName,m=u.version;_s(r,jr,f,p,h,m)}else Me.error("Unable to load plugin '".concat(a[s].name,"'"),l.reason)}return Me.info("Plugins loaded:",r),r}catch(v){return Me.error("Unable to load plugins:",v),new Map}}),Hn.apply(this,arguments)}function B1(e){var t,n;return(t=(n=e.get("AuthHandlers"))===null||n===void 0?void 0:n.split(","))!==null&&t!==void 0?t:[]}function K1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Map,r=B1(t),i=[...e.entries(),...n.entries()].filter(u=>{var f=mo(u,2),p=f[1];return Cs(p)||_n(p)}).map(u=>{var f=mo(u,2),p=f[0],h=f[1];return _n(h)?{type:xs.AUTH_PLUGIN,name:p,component:h.AuthPlugin.Component,isAvailable:h.AuthPlugin.isAvailable}:h}),a=i.filter(u=>{var f=u.isAvailable;return f(r,t)});if(a.length===0)throw new Error("No login plugins found, please register a login plugin for auth handlers: ".concat(r));a.length>1&&Me.warn("More than one login plugin available, will use the first one: ",a.map(u=>{var f=u.name;return f}).join(", "));var o=a[0],s=o.name,l=o.component;return Me.info("Using LoginPlugin",s),l}var H1=Ko.createRequires(()=>jr),UT=Ko.createRemoteComponent({requires:H1});function vo(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function V1(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){vo(a,r,i,o,s,"next",l)}function s(l){vo(a,r,i,o,s,"throw",l)}o(void 0)})}}function G1(e,t){return X1(e)||q1(e,t)||z1(e,t)||Y1()}function Y1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
120
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z1(e,t){if(e){if(typeof e=="string")return bo(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bo(e,t):void 0}}function bo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function q1(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function X1(e){if(Array.isArray(e))return e}function Q1(e){var t=e.pluginsUrl,n=e.getCorePlugins,r=e.children,i=c.useState(null),a=G1(i,2),o=a[0],s=a[1];return c.useEffect(function(){var u=!1;function f(){return p.apply(this,arguments)}function p(){return p=V1(function*(){var h,m=(h=yield n==null?void 0:n())!==null&&h!==void 0?h:[],v=yield W1(t);if(!u){var g=m.flatMap(y=>Es(y)?y.plugins.map(S=>[S.name,S]):[[y.name,y]]);s(new Map([...g,...v]))}}),p.apply(this,arguments)}return f(),()=>{u=!0}},[t,n]),d.jsx(Zt.Provider,{value:o,children:r})}function J1(){var e=Er();return c.useEffect(function(){e.postMessage(Jo(Cr))},[e]),null}function So(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Z1(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){So(a,r,i,o,s,"next",l)}function s(l){So(a,r,i,o,s,"throw",l)}o(void 0)})}}function Po(e,t){return rT(e)||nT(e,t)||tT(e,t)||eT()}function eT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
121
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tT(e,t){if(e){if(typeof e=="string")return wo(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wo(e,t):void 0}}function wo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function nT(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function rT(e){if(Array.isArray(e))return e}var iT=new Map([["@deephaven/auth-plugins.AuthPluginParent",{AuthPlugin:lu}],["@deephaven/auth-plugins.AuthPluginPsk",{AuthPlugin:fu}],["@deephaven/auth-plugins.AuthPluginAnonymous",{AuthPlugin:su}]]);function aT(e){var t=e.children,n=ht(),r=c.useContext(Zt),i=c.useState(),a=Po(i,2),o=a[0],s=a[1],l=c.useState(),u=Po(l,2),f=u[0],p=u[1];c.useEffect(function(){var g=!1;function y(){return S.apply(this,arguments)}function S(){return S=Z1(function*(){try{var b=yield n.getAuthConfigValues();g||s(new Map(b))}catch(O){g||p(O)}}),S.apply(this,arguments)}return y(),()=>{g=!0}},[n]);var h=c.useMemo(()=>{if(!(r==null||o==null))try{return K1(r,o,iT)}catch(v){p(v)}},[o,r]),m=h==null||o==null;return m||f!=null?d.jsx(Ue,{isLoading:m&&f==null,errorMessage:ut(f),"data-testid":"auth-bootstrap-loading-error"}):d.jsx(h,{authConfigValues:o,children:d.jsxs(d.Fragment,{children:[d.jsx(J1,{}),t]})})}function Oo(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Sn(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){Oo(a,r,i,o,s,"next",l)}function s(l){Oo(a,r,i,o,s,"throw",l)}o(void 0)})}}function Pn(e,t){return uT(e)||lT(e,t)||sT(e,t)||oT()}function oT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
122
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sT(e,t){if(e){if(typeof e=="string")return xo(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xo(e,t):void 0}}function xo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lT(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function uT(e){if(Array.isArray(e))return e}var nt=re.module("@deephaven/app-utils.ConnectionBootstrap");function cT(e){var t=e.children,n=je(),r=ht(),i=c.useState(),a=Pn(i,2),o=a[0],s=a[1],l=c.useState(),u=Pn(l,2),f=u[0],p=u[1],h=c.useState("connecting"),m=Pn(h,2),v=m[0],g=m[1],y=v==="failed",S=v==="shutdown",b=v==="reconnecting",O=v==="not_connecting";c.useEffect(function(){var C=!1;function A(){return R.apply(this,arguments)}function R(){return R=Sn(function*(){try{var _=yield r.getAsIdeConnection();if(C)return;p(_),g("connected")}catch($){if(C)return;s($),g("not_connecting")}}),R.apply(this,arguments)}return A(),()=>{C=!0}},[n,r]),c.useEffect(function(){if(f==null||S)return;function C(R){var _=R.detail;nt.info("Disconnect","".concat(JSON.stringify(_))),g("reconnecting")}var A=f.addEventListener(n.IdeConnection.EVENT_DISCONNECT,C);return A},[n,f,S]),c.useEffect(function(){if(f==null||S)return;function C(R){var _=R.detail;nt.info("Reconnect","".concat(JSON.stringify(_))),g("connected")}var A=f.addEventListener(n.CoreClient.EVENT_RECONNECT,C);return A},[n,f,S]),c.useEffect(function(){if(f==null)return;function C(R){var _=R.detail;nt.info("Shutdown","".concat(JSON.stringify(_))),s("Server shutdown: ".concat(_??"Unknown reason")),g("shutdown")}var A=f.addEventListener(n.IdeConnection.EVENT_SHUTDOWN,C);return A},[n,f]),c.useEffect(function(){if(f==null||S)return;function C(R){var _=R.detail;nt.warn("Reconnect authentication failed","".concat(JSON.stringify(_))),s("Reconnect authentication failed: ".concat(_??"Unknown reason")),g("failed")}var A=f.addEventListener(n.CoreClient.EVENT_RECONNECT_AUTH_FAILED,C);return A},[n,f,S]);var w=c.useCallback(function(){var x=Sn(function*(C){if(st(f,"No connection available to fetch object with"),typeof C=="string")throw new Error("No URI resolvers available in Core");return f.getObject(hs(C))});return function(C){return x.apply(this,arguments)}}(),[f]),E=c.useCallback(function(){var x=Sn(function*(C){st(f,"No connection available to find variable with");try{return yield es(f,C)}catch{return null}});return function(C){return x.apply(this,arguments)}}(),[f]),P=c.useMemo(()=>({subscribe:(x,C)=>(C({fetch:()=>w(x),status:"ready"}),()=>{})}),[w]);function I(){nt.info("Refreshing application"),window.location.reload()}return S||v==="connecting"||O?d.jsx(Ue,{"data-testid":"connection-bootstrap-loading",isLoading:o==null,errorMessage:o!=null?"".concat(o):void 0}):d.jsx(Bf.Provider,{value:f??null,children:d.jsx(ps.Provider,{value:w,children:d.jsx(nn.Provider,{value:E,children:d.jsxs(rn.Provider,{value:P,children:[t,d.jsx($l,{isOpen:b,debounceMs:1e3,children:d.jsx(kl,{icon:Rf,title:d.jsxs(d.Fragment,{children:[d.jsx(Ht,{})," Attempting to reconnect..."]}),subtitle:"Please check your network connection."})}),d.jsx(ss,{confirmButtonText:"Refresh",onConfirm:I,isOpen:y,headerText:"Authentication failed",bodyText:"Credentials are invalid. Please refresh your browser to try and reconnect."})]})})})})}function WT(e){return new URL(e,"".concat(window.location))}function dT(){var e=new URLSearchParams(window.location.search);return e.get("envoyPrefix")}function fT(){var e=dT();return e!=null?{headers:{"envoy-prefix":e}}:{headers:{}}}function To(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Co(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?To(Object(n),!0).forEach(function(r){pT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):To(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pT(e,t,n){return(t=hT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hT(e){var t=mT(e,"string");return typeof t=="symbol"?t:t+""}function mT(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{action:()=>{Pv(Df,Co(Co({},e),{},{userAgent:navigator.userAgent}),Gs.getState())},shortcut:Jt.EXPORT_LOGS,isGlobal:t}}function gT(e){var t=e.children,n=Kf(),r=c.useContext(ns),i=c.useContext(Gt),a=hu(n,r,i);return d.jsx(ts.Provider,{value:a,children:t})}function vT(e){var t=e.children,n=Ps(mm),r=c.useContext(Zt),i=iu(r),a=zn();return d.jsx(cs,{themes:i,waitForActivation:a,children:d.jsx(As,{children:d.jsx(mu,{children:d.jsx(il,{density:n.gridDensity,children:t})})})})}function bT(e,t){return OT(e)||wT(e,t)||PT(e,t)||ST()}function ST(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
123
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PT(e,t){if(e){if(typeof e=="string")return Eo(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Eo(e,t):void 0}}function Eo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wT(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function OT(e){if(Array.isArray(e))return e}function BT(e){var t=e.fontClassNames,n=e.pluginsUrl,r=e.getCorePlugins,i=e.serverUrl,a=e.logMetadata,o=e.children,s=c.useMemo(()=>fT(),[]),l=c.useState(0),u=bT(l,2),f=u[0],p=u[1],h=c.useCallback(()=>{},[]),m=c.useCallback(()=>{requestAnimationFrame(()=>{p(g=>g+1)})},[]);_r(h,m);var v=c.useMemo(()=>[yT(a,!0)],[a]);return d.jsxs(Ad,{store:Gs,children:[d.jsx(Sl,{fontClassNames:t,children:d.jsx(Q1,{getCorePlugins:r,pluginsUrl:n,children:d.jsx(vT,{children:d.jsxs(Zo,{serverUrl:i,options:s,children:[d.jsx(aT,{children:d.jsx(Hf,{children:d.jsx(gT,{children:d.jsx(cT,{children:d.jsx(Pl,{children:o})})})})}),d.jsx(Qt,{actions:v})]},f)})})}),d.jsx(Rl,{})]})}function _o(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function xT(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){_o(a,r,i,o,s,"next",l)}function s(l){_o(a,r,i,o,s,"throw",l)}o(void 0)})}}function ve(e,t,n){return(t=TT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TT(e){var t=CT(e,"string");return typeof t=="symbol"?t:t+""}function CT(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rt=re.module("GrpcFileStorageTable");class ft{constructor(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:n;ve(this,"storageService",void 0),ve(this,"baseRoot",void 0),ve(this,"root",void 0),ve(this,"currentSize",0),ve(this,"currentViewport",void 0),ve(this,"listeners",[]),ve(this,"viewportUpdatePromise",void 0),ve(this,"currentViewportData",void 0),ve(this,"childTables",new Map),this.storageService=t,this.baseRoot=n,this.root=r,r===n&&(this.doRefresh=ot(this.doRefresh.bind(this),ft.REFRESH_DEBOUNCE))}removeBaseRoot(t){return Le.removeRoot(this.baseRoot,t)}getViewportData(){var t;return this.viewportUpdatePromise||this.refreshInternal(),(t=this.viewportUpdatePromise)!==null&&t!==void 0?t:Promise.resolve({items:[],offset:0})}getSnapshot(t){throw new Error("Method not implemented.")}get size(){return this.currentSize}setExpanded(t,n){var r=t.split("/"),i=r.shift();if((i===void 0||i==="")&&(i=r.shift()),i===void 0||i==="")throw new Error("Invalid path: ".concat(t));var a=r.join("/");if(n){if(!this.childTables.has(i)){var o=new ft(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(t){throw new Error("Method not implemented.")}setViewport(t){this.currentViewport=t,this.refreshInternal()}setFilters(){throw new Error("Method not implemented.")}setSorts(){throw new Error("Method not implemented.")}setReversed(){throw new Error("Method not implemented.")}close(){this.listeners=[]}onUpdate(t){return this.listeners=[...this.listeners,t],()=>{this.listeners=this.listeners.filter(n=>n!==t)}}doRefresh(t){rt.debug2("doRefresh",this.root),t(this.fetchData())}refresh(){var t;rt.debug2("refresh",this.root),(t=this.viewportUpdatePromise)===null||t===void 0||t.cancel();var n=new Promise(i=>{this.doRefresh(i)}),r=Fe.makeCancelable(n.then(i=>{if(this.viewportUpdatePromise!==r)throw new Is;return this.currentViewportData=i,this.sendUpdate(),i}));r.catch(i=>{Fe.isCanceled(i)||rt.error("Error updating viewport",i)}),this.viewportUpdatePromise=r}refreshInternal(){try{this.refresh()}catch(t){Fe.isCanceled(t)||rt.error("Unable to refresh data",t)}}fetchData(){var t=this;return xT(function*(){var n=t.currentViewport;if(!n)throw new Error("No viewport set");for(var r=yield t.storageService.listItems(t.root),i=r.map(p=>({type:p.type,filename:t.removeBaseRoot(p.filename),basename:p.basename,id:t.removeBaseRoot(p.filename),isExpanded:p.type==="directory"?t.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],s=o.basename,l=o.filename;if(l===t.removeBaseRoot("".concat(t.root,"/").concat(s))&&o.type==="directory"){var u=t.childTables.get(s);if(u!=null){u.setViewport({top:0,bottom:n.bottom-a});var f=yield u.getViewportData();i.splice(a+1,0,...f.items)}}}return t.currentSize=i.length,rt.debug2(t.root,"items",i,n),i=i.slice(n.top,n.bottom),{items:i,offset:n.top}})()}sendUpdate(){for(var t,n=this.listeners,r=(t=this.currentViewportData)!==null&&t!==void 0?t:{items:[],offset:0},i=0;i<n.length;i+=1)n[i](r)}}ve(ft,"REFRESH_DEBOUNCE",50);function Io(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Te(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){Io(a,r,i,o,s,"next",l)}function s(l){Io(a,r,i,o,s,"throw",l)}o(void 0)})}}function He(e,t,n){return(t=ET(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ET(e){var t=_T(e,"string");return typeof t=="symbol"?t:t+""}function _T(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var IT=re.module("GrpcFileStorage");class Ar{constructor(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";He(this,"dh",void 0),He(this,"storageService",void 0),He(this,"tables",[]),He(this,"root",void 0),He(this,"refreshTables",$d(()=>{this.tables.forEach(i=>i.refresh())},Ar.REFRESH_THROTTLE)),this.dh=t,this.storageService=n,this.root=r}removeRoot(t){return Le.removeRoot(this.root,t)}addRoot(t){return Le.addRoot(this.root,t)}createDirectory(t){var n=this;return Te(function*(){return yield n.storageService.createDirectory(n.addRoot(t)),n.refreshTables(),{type:"directory",id:t,filename:t,basename:Le.getBaseName(t)}})()}getTable(){var t=this;return Te(function*(){var n=new ft(t.storageService,t.root);return t.tables.push(n),n})()}saveFile(t){var n=this;return Te(function*(){var r=n.dh.storage.FileContents.text(t.content);return yield n.storageService.saveFile(n.addRoot(t.filename),r,!0),n.refreshTables(),t})()}loadFile(t){var n=this;return Te(function*(){var r=yield n.storageService.loadFile(n.addRoot(t)),i=yield r.text();return{filename:t,basename:Le.getBaseName(t),content:i}})()}copyFile(t,n){var r=this;return Te(function*(){var i=yield r.storageService.loadFile(r.addRoot(t));yield r.storageService.saveFile(r.addRoot(n),i,!1),r.refreshTables()})()}deleteFile(t){var n=this;return Te(function*(){yield n.storageService.deleteItem(n.addRoot(t)),n.refreshTables()})()}moveFile(t,n){var r=this;return Te(function*(){yield r.storageService.moveItem(r.addRoot(t),r.addRoot(n)),r.refreshTables()})()}info(t){var n=this;return Te(function*(){var r=yield n.storageService.listItems(n.addRoot(Le.getPath(t)),Le.getBaseName(t));if(r.length===0)throw new ym;if(r.length>1)throw IT.error("More than one matching file found, should never happen.",r),new Error("More than one matching file found");var i=r[0];if(!gm(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}})()}}He(Ar,"REFRESH_THROTTLE",150);export{BT as AppBootstrap,VT as AppDashboards,aT as AuthBootstrap,cT as ConnectionBootstrap,Bf as ConnectionContext,GT as DEFAULT_LAYOUT_CONFIG,YT as DEFAULT_LAYOUT_CONFIG_NO_CONSOLE,Ar as GrpcFileStorage,ft as GrpcFileStorageTable,zT as GrpcLayoutStorage,qT as LocalWorkspaceStorage,Q1 as PluginsBootstrap,UT as RemoteComponent,vT as ThemeBootstrap,XT as UserLayoutUtils,yT as createExportLogsContextAction,QT as exportLayout,B1 as getAuthHandlers,K1 as getAuthPluginComponent,WT as getBaseUrl,fT as getConnectOptions,JT as getDefaultLayout,dT as getEnvoyPrefix,Ah as getPluginModuleValue,ZT as isLayoutV1,eC as isLayoutV2,U1 as loadJson,N1 as loadModulePlugin,W1 as loadModulePlugins,tC as normalizeLayout,nC as useConnection,Kf as useServerConfig,rC as useUser};
124
- //# sourceMappingURL=index-CrUMbgGb.js.map
117
+ 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 wn(e,t){return A1(e)||j1(e,t)||I1(e,t)||_1()}function _1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
118
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I1(e,t){if(e){if(typeof e=="string")return go(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?go(e,t):void 0}}function go(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function j1(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function A1(e){if(Array.isArray(e))return e}function vo(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function $1(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){vo(a,r,i,o,s,"next",l)}function s(l){vo(a,r,i,o,s,"throw",l)}o(void 0)})}}var Pu=xd.parse("inmemory://dh-config/ruff-settings.json");function k1(){var e=zr.json.jsonDefaults.diagnosticsOptions.schemas,t=e===void 0?[]:e;t.some(n=>n.uri==="json://ruff-schema")||zr.json.jsonDefaults.setDiagnosticsOptions({schemas:[...t,{uri:"json://ruff-schema",fileMatch:[Pu.toString()],schema:E1}]})}function R1(){return Kn.apply(this,arguments)}function Kn(){return Kn=$1(function*(){return yield Ms.initRuff(),"v".concat(Td.version())}),Kn.apply(this,arguments)}function D1(e){var t=e.text,n=e.isOpen,r=e.onClose,i=e.onSave,a=e.readOnly,o=a===void 0?!1:a,s=e.defaultSettings,l=s===void 0?Ls:s,u=c.useState(!1),f=wn(u,2),h=f[0],p=f[1],m=c.useState(!1),v=wn(m,2),g=v[0],y=v[1],S=c.useRef(),b=c.useMemo(()=>JSON.stringify(l,null,2),[l]),x=Ne(R1),O=x.data,T=c.useState(()=>Od.createModel(t,"json",Pu)),P=wn(T,1),I=P[0],C=c.useCallback(()=>{n&&(r(),S.current=void 0,I.dispose())},[n,r,I]),j=c.useCallback(()=>{if(n){try{var M,w;i(JSON.parse((M=(w=S.current)===null||w===void 0||(w=w.getModel())===null||w===void 0?void 0:w.getValue())!==null&&M!==void 0?M:""))}catch{}C()}},[n,C,i]),R=c.useCallback(()=>{Gt(I),I.setValue(b)},[I,b]),k=c.useCallback(M=>{var w;try{JSON.parse(M),p(!0)}catch{p(!1)}y(((w=S.current)===null||w===void 0||(w=w.getModel())===null||w===void 0?void 0:w.getValue())===b)},[b]),E=st(k,500,{leading:!0}),A=c.useCallback(M=>{S.current=M,I.onDidChangeContent(()=>{E(I.getValue())}),k1(),E(I.getValue())},[E,I]);return n?d.jsxs(Zn,{isOpen:n,centered:!0,keyboard:!0,clickOutside:!1,toggle:C,size:"lg",className:"ruff-settings-modal",children:[d.jsxs(ts,{closeButton:!1,children:[d.jsxs("span",{className:"settings-modal-title mr-auto",children:["Ruff ",O," Settings"]}),d.jsx(Go,{href:"https://docs.astral.sh/ruff/settings/",target:"_blank",children:d.jsx(le,{kind:"ghost",onClick:ge,icon:Lf,children:"Settings Docs"})}),d.jsxs(Vt,{isDisabled:g,onPress:R,children:[d.jsx(ft,{children:d.jsx(ce,{icon:Mf})}),d.jsx(Qt,{children:"Reset to default"})]})]}),d.jsx(er,{style:{height:"80vh"},children:d.jsx(Ys,{onEditorInitialized:A,settings:{readOnly:o,value:t,language:"json",folding:!0,padding:{bottom:16},lineNumbers:"on",overviewRulerLanes:0,model:I}})}),d.jsx(ds,{children:o?d.jsx(le,{kind:"secondary","data-dismiss":"modal",onClick:C,children:"Close"}):d.jsxs(d.Fragment,{children:[d.jsx(le,{kind:"secondary","data-dismiss":"modal",onClick:C,children:"Cancel"}),d.jsx(le,{kind:"primary","data-dismiss":"modal",tooltip:h?void 0:"Cannot save invalid JSON",disabled:!h,onClick:j,children:"Save"})]})})]}):null}const L1=Object.freeze(Object.defineProperty({__proto__:null,Code:nm,CommandHistory:rm,CommandHistoryActions:im,CommandHistoryItem:am,CommandHistoryItemTooltip:om,Console:Jr,ConsoleConstants:sm,ConsoleHistory:lm,ConsoleHistoryItem:um,ConsoleHistoryItemResult:cm,ConsoleHistoryResultErrorMessage:dm,ConsoleHistoryResultInProgress:fm,ConsoleInput:pm,ConsoleStatusBar:hm,ConsoleUtils:mm,Editor:Ys,HeapUsage:ym,LogView:gm,MonacoProviders:Ms,MonacoTheme:vm,MonacoThemeProvider:Su,MonacoUtils:Ds,ObjectIcon:bm,RUFF_DEFAULT_SETTINGS:Ls,RuffSettingsModal:D1,SHORTCUTS:Sm,ScriptEditor:Zm,ScriptEditorUtils:ey,default:Jr},Symbol.toStringTag,{value:"Module"}));function Vn(e,t,n){return(t=M1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M1(e){var t=F1(e,"string");return typeof t=="symbol"?t:t+""}function F1(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class ze{static valueForCell(t,n,r){var i="".concat(t,",").concat(n);return r!==void 0&&r&&(i="(".concat(i,")")),i}constructor(t){Vn(this,"dh",void 0),Vn(this,"irisGridUtils",void 0),this.dh=t,this.irisGridUtils=new zs(t)}makeColumn(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ze.DEFAULT_TYPE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return new this.dh.Column({index:r,name:t,type:n})}makeRollupTableConfig(){return new this.dh.RollupTableConfig}makeColumns(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=[],i=0;i<t;i+=1)r.push(this.makeColumn("".concat(n).concat(i),ze.DEFAULT_TYPE,i));return r}static makeUserColumnWidths(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5,n=new Map,r=0;r<t;r+=1)n.set(r.toString(),100);return n}makeRow(t){var n=new this.dh.Row({index:t,name:"".concat(t)});return n.get=jest.fn(r=>ze.valueForCell(t,r.index)),n}makeFilter(){return new this.dh.FilterCondition}makeSort(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.makeColumn();return new this.dh.Sort({column:t})}hydrateSort(t,n){return this.irisGridUtils.hydrateDhSort(n,t)}makeTable(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.columns,r=n===void 0?this.makeColumns():n,i=t.size,a=i===void 0?1e9:i,o=t.sort,s=o===void 0?[]:o,l=t.layoutHints,u=l===void 0?{}:l,f=new this.dh.Table({columns:r,size:a,sort:s});return f.copy=jest.fn(()=>Promise.resolve(f)),f.freeze=jest.fn(()=>Promise.resolve(f)),f.layoutHints=u,f}makeTreeTable(){var t=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]:[],i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1e9,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5?arguments[5]:void 0,s=new this.dh.TreeTable({columns:t,aggregatedColumns:n,groupedColumns:r,size:i,sort:a,layoutHints:o});return s.copy=jest.fn(()=>Promise.resolve(s)),s}static makeInputTable(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[...t,...n].reduce((o,s)=>(t.includes(s)?o.keys.push(s.name):o.values.push(s.name),o),{keys:[],values:[]}),i=r.keys,a=r.values;return{keys:i,values:a}}makeSubscription(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.makeTable();return new this.dh.TableViewportSubscription({table:t})}makeModel(){var t=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,i=this.dh;return new ty(i,t,n??new lr(i),r)}}Vn(ze,"DEFAULT_TYPE","java.lang.String");const N1=Object.freeze(Object.defineProperty({__proto__:null,AdvancedSettings:ny,AdvancedSettingsType:ry,AggregationEdit:jg,AggregationOperation:iy,AggregationUtils:ay,Aggregations:Ag,BarIcon:$g,ChartBuilder:kg,ColumnHeaderGroup:oy,CustomColumnBuilder:Rg,DndKitCore:Cd,DndKitModifiers:Ed,DndKitSortable:_d,DndKitUtilities:Id,DownloadServiceWorkerUtils:Dg,FormatColumnWhereIcon:Lg,FormatRowWhereIcon:Mg,HistogramIcon:Fg,InputEditor:Ng,IrisGrid:Zr,IrisGridCacheUtils:sy,IrisGridCellOverflowMouseHandler:Ug,IrisGridCellRendererUtils:Wg,IrisGridColumnSelectMouseHandler:Bg,IrisGridColumnTooltipMouseHandler:Kg,IrisGridContextMenuHandler:Vg,IrisGridCopyCellMouseHandler:Hg,IrisGridDataSelectMouseHandler:Gg,IrisGridFilterMouseHandler:Yg,IrisGridMetricCalculator:zg,IrisGridModel:ly,IrisGridModelFactory:uy,IrisGridPartitionedTableModel:cy,IrisGridPartitionedTableMouseHandler:qg,IrisGridRenderer:Xg,IrisGridRowTreeMouseHandler:Qg,IrisGridSortMouseHandler:Jg,IrisGridTableModel:dy,IrisGridTableModelTemplate:fy,IrisGridTestUtils:ze,IrisGridThemeContext:Zg,IrisGridThemeProvider:sl,IrisGridTokenMouseHandler:ev,IrisGridTreeTableModel:py,IrisGridUtils:zs,LineIcon:tv,OptionType:nv,PendingMouseHandler:rv,PieIcon:iv,RollupRows:av,SHORTCUTS:ov,ScatterIcon:sv,TableCsvExporter:lv,TableSaver:uv,VisibilityOrderingBuilder:cv,createDefaultIrisGridTheme:dv,default:Zr,isColumnHeaderGroup:hy,isIrisGridTableModelTemplate:my,isIrisGridTreeTableModel:yy,isPanelStateV1:gy,isPanelStateV2:vy,isPartitionedGridModel:by,isPartitionedGridModelProvider:Sy,isUITreeRow:Py},Symbol.toStringTag,{value:"Module"}));var kr={react:J,"react-dom":kd,redux:$d,"react-redux":Ad,"@adobe/react-spectrum":jd,"@deephaven/auth-plugins":O1,"@deephaven/chart":C1,"@deephaven/components":Lw,"@deephaven/console":L1,"@deephaven/dashboard":Hx,"@deephaven/dashboard-core-plugins":wy,"@deephaven/icons":Ff,"@deephaven/iris-grid":N1,"@deephaven/jsapi-bootstrap":pO,"@deephaven/jsapi-components":Bx,"@deephaven/jsapi-utils":dO,"@deephaven/log":ne,"@deephaven/plugin":Yx,"@deephaven/react-hooks":cb},U1=Dd.createRequires(kr),W1=Rd({requires:U1});function bo(e,t){return H1(e)||V1(e,t)||K1(e,t)||B1()}function B1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
119
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K1(e,t){if(e){if(typeof e=="string")return So(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?So(e,t):void 0}}function So(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function V1(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function H1(e){if(Array.isArray(e))return e}function Po(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Bt(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){Po(a,r,i,o,s,"next",l)}function s(l){Po(a,r,i,o,s,"throw",l)}o(void 0)})}}var Me=ne.module("@deephaven/app-utils.PluginUtils");function G1(e){return Hn.apply(this,arguments)}function Hn(){return Hn=Bt(function*(e){var t=yield W1(e);return t}),Hn.apply(this,arguments)}function Y1(e){return Gn.apply(this,arguments)}function Gn(){return Gn=Bt(function*(e){var t=yield fetch(e);if(!t.ok)throw new Error(t.statusText);try{return yield t.json()}catch{throw new Error("Could not be parsed as JSON")}}),Gn.apply(this,arguments)}function z1(e){return Yn.apply(this,arguments)}function Yn(){return Yn=Bt(function*(e){Me.debug("Loading plugins...");try{var t=yield Y1("".concat(e,"/manifest.json"));if(!Array.isArray(t.plugins))throw new Error("Plugin manifest JSON does not contain plugins array");Me.debug("Plugin manifest loaded:",t);for(var n=_s(t.plugins),r=new Map,i=0;i<n.length;i+=1)for(var a=n[i],o=yield Promise.allSettled(a.map(function(){var v=Bt(function*(g){var y=g.name,S=g.main,b=g.version,x=g.package,O="".concat(e,"/").concat(y,"/").concat(S),T=yield G1(O);return{pluginExports:T,name:y,packageName:x,version:b}});return function(g){return v.apply(this,arguments)}}())),s=0;s<o.length;s+=1){var l=o[s];if(l.status==="fulfilled"){var u=l.value,f=u.pluginExports,h=u.name,p=u.packageName,m=u.version;As(r,kr,f,h,p,m)}else Me.error("Unable to load plugin '".concat(a[s].name,"'"),l.reason)}return Me.info("Plugins loaded:",r),r}catch(v){return Me.error("Unable to load plugins:",v),new Map}}),Yn.apply(this,arguments)}function q1(e){var t,n;return(t=(n=e.get("AuthHandlers"))===null||n===void 0?void 0:n.split(","))!==null&&t!==void 0?t:[]}function X1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Map,r=q1(t),i=[...e.entries(),...n.entries()].filter(u=>{var f=bo(u,2),h=f[1];return Is(h)||jn(h)}).map(u=>{var f=bo(u,2),h=f[0],p=f[1];return jn(p)?{type:Es.AUTH_PLUGIN,name:h,component:p.AuthPlugin.Component,isAvailable:p.AuthPlugin.isAvailable}:p}),a=i.filter(u=>{var f=u.isAvailable;return f(r,t)});if(a.length===0)throw new Error("No login plugins found, please register a login plugin for auth handlers: ".concat(r));a.length>1&&Me.warn("More than one login plugin available, will use the first one: ",a.map(u=>{var f=u.name;return f}).join(", "));var o=a[0],s=o.name,l=o.component;return Me.info("Using LoginPlugin",s),l}var Q1=Yo.createRequires(()=>kr),YT=Yo.createRemoteComponent({requires:Q1});function wo(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function J1(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){wo(a,r,i,o,s,"next",l)}function s(l){wo(a,r,i,o,s,"throw",l)}o(void 0)})}}function Z1(e,t){return rT(e)||nT(e,t)||tT(e,t)||eT()}function eT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
120
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tT(e,t){if(e){if(typeof e=="string")return Oo(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oo(e,t):void 0}}function Oo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function nT(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function rT(e){if(Array.isArray(e))return e}function iT(e){var t=e.pluginsUrl,n=e.getCorePlugins,r=e.children,i=c.useState(null),a=Z1(i,2),o=a[0],s=a[1];return c.useEffect(function(){var u=!1;function f(){return h.apply(this,arguments)}function h(){return h=J1(function*(){var p,m=(p=yield n==null?void 0:n())!==null&&p!==void 0?p:[],v=yield z1(t);if(!u){var g=m.flatMap(y=>js(y)?y.plugins.map(S=>[S.name,S]):[[y.name,y]]);s(new Map([...g,...v]))}}),h.apply(this,arguments)}return f(),()=>{u=!0}},[t,n]),d.jsx(tn.Provider,{value:o,children:r})}function aT(){var e=jr();return c.useEffect(function(){e.postMessage(ns(Ir))},[e]),null}function xo(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function oT(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){xo(a,r,i,o,s,"next",l)}function s(l){xo(a,r,i,o,s,"throw",l)}o(void 0)})}}function To(e,t){return cT(e)||uT(e,t)||lT(e,t)||sT()}function sT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
121
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lT(e,t){if(e){if(typeof e=="string")return Co(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Co(e,t):void 0}}function Co(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function uT(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function cT(e){if(Array.isArray(e))return e}var dT=new Map([["@deephaven/auth-plugins.AuthPluginParent",{AuthPlugin:pu}],["@deephaven/auth-plugins.AuthPluginPsk",{AuthPlugin:gu}],["@deephaven/auth-plugins.AuthPluginAnonymous",{AuthPlugin:fu}]]);function fT(e){var t=e.children,n=pt(),r=c.useContext(tn),i=c.useState(),a=To(i,2),o=a[0],s=a[1],l=c.useState(),u=To(l,2),f=u[0],h=u[1];c.useEffect(function(){var g=!1;function y(){return S.apply(this,arguments)}function S(){return S=oT(function*(){try{var b=yield n.getAuthConfigValues();g||s(new Map(b))}catch(x){g||h(x)}}),S.apply(this,arguments)}return y(),()=>{g=!0}},[n]);var p=c.useMemo(()=>{if(!(r==null||o==null))try{return X1(r,o,dT)}catch(v){h(v)}},[o,r]),m=p==null||o==null;return m||f!=null?d.jsx(Ue,{isLoading:m&&f==null,errorMessage:lt(f),"data-testid":"auth-bootstrap-loading-error"}):d.jsx(p,{authConfigValues:o,children:d.jsxs(d.Fragment,{children:[d.jsx(aT,{}),t]})})}function Eo(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function On(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){Eo(a,r,i,o,s,"next",l)}function s(l){Eo(a,r,i,o,s,"throw",l)}o(void 0)})}}function Rt(e,t){return yT(e)||mT(e,t)||hT(e,t)||pT()}function pT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
122
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hT(e,t){if(e){if(typeof e=="string")return _o(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_o(e,t):void 0}}function _o(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mT(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function yT(e){if(Array.isArray(e))return e}var nt=ne.module("@deephaven/app-utils.ConnectionBootstrap");function gT(e){var t=e.children,n=je(),r=pt(),i=c.useState(),a=Rt(i,2),o=a[0],s=a[1],l=c.useState(),u=Rt(l,2),f=u[0],h=u[1],p=c.useState("connecting"),m=Rt(p,2),v=m[0],g=m[1],y=v==="failed",S=v==="shutdown",b=v==="reconnecting",x=v==="not_connecting";c.useEffect(function(){var E=!1;function A(){return M.apply(this,arguments)}function M(){return M=On(function*(){try{var w=yield r.getAsIdeConnection();if(E)return;h(w),g("connected")}catch(_){if(E)return;s(_),g("not_connecting")}}),M.apply(this,arguments)}return A(),()=>{E=!0}},[n,r]),c.useEffect(function(){if(f==null||S)return;function E(M){var w=M.detail;nt.info("Disconnect","".concat(JSON.stringify(w))),g("reconnecting")}var A=f.addEventListener(n.IdeConnection.EVENT_DISCONNECT,E);return A},[n,f,S]),c.useEffect(function(){if(f==null||S)return;function E(M){var w=M.detail;nt.info("Reconnect","".concat(JSON.stringify(w))),g("connected")}var A=f.addEventListener(n.CoreClient.EVENT_RECONNECT,E);return A},[n,f,S]),c.useEffect(function(){if(f==null)return;function E(M){var w=M.detail;nt.info("Shutdown","".concat(JSON.stringify(w))),s("Server shutdown: ".concat(w??"Unknown reason")),g("shutdown")}var A=f.addEventListener(n.IdeConnection.EVENT_SHUTDOWN,E);return A},[n,f]),c.useEffect(function(){if(f==null||S)return;function E(M){var w=M.detail;nt.warn("Reconnect authentication failed","".concat(JSON.stringify(w))),s("Reconnect authentication failed: ".concat(w??"Unknown reason")),g("failed")}var A=f.addEventListener(n.CoreClient.EVENT_RECONNECT_AUTH_FAILED,E);return A},[n,f,S]);var O=c.useCallback(function(){var k=On(function*(E){if(Gt(f,"No connection available to fetch object with"),typeof E=="string")throw new Error("No URI resolvers available in Core");return f.getObject(gs(E))});return function(E){return k.apply(this,arguments)}}(),[f]),T=c.useState(null),P=Rt(T,2),I=P[0],C=P[1];c.useEffect(function(){if(f==null){C(null);return}var E=au(On(function*(){return f}));return C(E),()=>{E.destroy()}},[f]);var j=c.useMemo(()=>({subscribe:(k,E)=>(E({fetch:()=>O(k),status:"ready"}),()=>{})}),[O]);function R(){nt.info("Refreshing application"),window.location.reload()}return S||v==="connecting"||x?d.jsx(Ue,{"data-testid":"connection-bootstrap-loading",isLoading:o==null,errorMessage:o!=null?"".concat(o):void 0}):d.jsx(zf.Provider,{value:f??null,children:d.jsx(ys.Provider,{value:O,children:d.jsx(sn.Provider,{value:I,children:d.jsxs(an.Provider,{value:j,children:[t,d.jsx(Dl,{isOpen:b,debounceMs:1e3,children:d.jsx(Ll,{icon:Nf,title:d.jsxs(d.Fragment,{children:[d.jsx(Ht,{})," Attempting to reconnect..."]}),subtitle:"Please check your network connection."})}),d.jsx(cs,{confirmButtonText:"Refresh",onConfirm:R,isOpen:y,headerText:"Authentication failed",bodyText:"Credentials are invalid. Please refresh your browser to try and reconnect."})]})})})})}function zT(e){return new URL(e,"".concat(window.location))}function vT(){var e=new URLSearchParams(window.location.search);return e.get("envoyPrefix")}function bT(){var e=vT();return e!=null?{headers:{"envoy-prefix":e}}:{headers:{}}}function Io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Io(Object(n),!0).forEach(function(r){ST(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Io(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ST(e,t,n){return(t=PT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PT(e){var t=wT(e,"string");return typeof t=="symbol"?t:t+""}function wT(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{action:()=>{Ev(Uf,jo(jo({},e),{},{userAgent:navigator.userAgent}),qs.getState())},shortcut:en.EXPORT_LOGS,isGlobal:t}}function xT(e){var t=e.children,n=qf(),r=c.useContext(as),i=c.useContext(zt),a=bu(n,r,i);return d.jsx(is.Provider,{value:a,children:t})}function TT(e){var t=e.children,n=xs(Pm),r=c.useContext(tn),i=uu(r),a=Qn();return d.jsx(ps,{themes:i,waitForActivation:a,children:d.jsx(Rs,{children:d.jsx(Su,{children:d.jsx(sl,{density:n.gridDensity,children:t})})})})}function CT(e,t){return jT(e)||IT(e,t)||_T(e,t)||ET()}function ET(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
123
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _T(e,t){if(e){if(typeof e=="string")return Ao(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ao(e,t):void 0}}function Ao(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function IT(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function jT(e){if(Array.isArray(e))return e}function qT(e){var t=e.fontClassNames,n=e.pluginsUrl,r=e.getCorePlugins,i=e.serverUrl,a=e.logMetadata,o=e.children,s=c.useMemo(()=>bT(),[]),l=c.useState(0),u=CT(l,2),f=u[0],h=u[1],p=c.useCallback(()=>{},[]),m=c.useCallback(()=>{requestAnimationFrame(()=>{h(g=>g+1)})},[]);Ar(p,m);var v=c.useMemo(()=>[OT(a,!0)],[a]);return d.jsxs(Ld,{store:qs,children:[d.jsx(Ol,{fontClassNames:t,children:d.jsx(iT,{getCorePlugins:r,pluginsUrl:n,children:d.jsx(TT,{children:d.jsxs(rs,{serverUrl:i,options:s,children:[d.jsx(fT,{children:d.jsx(Xf,{children:d.jsx(xT,{children:d.jsx(gT,{children:d.jsx(xl,{children:o})})})})}),d.jsx(Zt,{actions:v})]},f)})})}),d.jsx(Ml,{})]})}function $o(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function AT(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){$o(a,r,i,o,s,"next",l)}function s(l){$o(a,r,i,o,s,"throw",l)}o(void 0)})}}function ve(e,t,n){return(t=$T(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $T(e){var t=kT(e,"string");return typeof t=="symbol"?t:t+""}function kT(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rt=ne.module("GrpcFileStorageTable");class dt{constructor(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:n;ve(this,"storageService",void 0),ve(this,"baseRoot",void 0),ve(this,"root",void 0),ve(this,"currentSize",0),ve(this,"currentViewport",void 0),ve(this,"listeners",[]),ve(this,"viewportUpdatePromise",void 0),ve(this,"currentViewportData",void 0),ve(this,"childTables",new Map),this.storageService=t,this.baseRoot=n,this.root=r,r===n&&(this.doRefresh=ot(this.doRefresh.bind(this),dt.REFRESH_DEBOUNCE))}removeBaseRoot(t){return Le.removeRoot(this.baseRoot,t)}getViewportData(){var t;return this.viewportUpdatePromise||this.refreshInternal(),(t=this.viewportUpdatePromise)!==null&&t!==void 0?t:Promise.resolve({items:[],offset:0})}getSnapshot(t){throw new Error("Method not implemented.")}get size(){return this.currentSize}setExpanded(t,n){var r=t.split("/"),i=r.shift();if((i===void 0||i==="")&&(i=r.shift()),i===void 0||i==="")throw new Error("Invalid path: ".concat(t));var a=r.join("/");if(n){if(!this.childTables.has(i)){var o=new dt(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(t){throw new Error("Method not implemented.")}setViewport(t){this.currentViewport=t,this.refreshInternal()}setFilters(){throw new Error("Method not implemented.")}setSorts(){throw new Error("Method not implemented.")}setReversed(){throw new Error("Method not implemented.")}close(){this.listeners=[]}onUpdate(t){return this.listeners=[...this.listeners,t],()=>{this.listeners=this.listeners.filter(n=>n!==t)}}doRefresh(t){rt.debug2("doRefresh",this.root),t(this.fetchData())}refresh(){var t;rt.debug2("refresh",this.root),(t=this.viewportUpdatePromise)===null||t===void 0||t.cancel();var n=new Promise(i=>{this.doRefresh(i)}),r=Fe.makeCancelable(n.then(i=>{if(this.viewportUpdatePromise!==r)throw new $s;return this.currentViewportData=i,this.sendUpdate(),i}));r.catch(i=>{Fe.isCanceled(i)||rt.error("Error updating viewport",i)}),this.viewportUpdatePromise=r}refreshInternal(){try{this.refresh()}catch(t){Fe.isCanceled(t)||rt.error("Unable to refresh data",t)}}fetchData(){var t=this;return AT(function*(){var n=t.currentViewport;if(!n)throw new Error("No viewport set");for(var r=yield t.storageService.listItems(t.root),i=r.map(h=>({type:h.type,filename:t.removeBaseRoot(h.filename),basename:h.basename,id:t.removeBaseRoot(h.filename),isExpanded:h.type==="directory"?t.childTables.has(h.basename):void 0})).sort((h,p)=>h.type!==p.type?h.type==="directory"?-1:1:h.basename.localeCompare(p.basename)),a=0;a<i.length;a+=1){var o=i[a],s=o.basename,l=o.filename;if(l===t.removeBaseRoot("".concat(t.root,"/").concat(s))&&o.type==="directory"){var u=t.childTables.get(s);if(u!=null){u.setViewport({top:0,bottom:n.bottom-a});var f=yield u.getViewportData();i.splice(a+1,0,...f.items)}}}return t.currentSize=i.length,rt.debug2(t.root,"items",i,n),i=i.slice(n.top,n.bottom),{items:i,offset:n.top}})()}sendUpdate(){for(var t,n=this.listeners,r=(t=this.currentViewportData)!==null&&t!==void 0?t:{items:[],offset:0},i=0;i<n.length;i+=1)n[i](r)}}ve(dt,"REFRESH_DEBOUNCE",50);function ko(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Te(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){ko(a,r,i,o,s,"next",l)}function s(l){ko(a,r,i,o,s,"throw",l)}o(void 0)})}}function Ve(e,t,n){return(t=RT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RT(e){var t=DT(e,"string");return typeof t=="symbol"?t:t+""}function DT(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LT=ne.module("GrpcFileStorage");class Rr{constructor(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";Ve(this,"dh",void 0),Ve(this,"storageService",void 0),Ve(this,"tables",[]),Ve(this,"root",void 0),Ve(this,"refreshTables",Md(()=>{this.tables.forEach(i=>i.refresh())},Rr.REFRESH_THROTTLE)),this.dh=t,this.storageService=n,this.root=r}removeRoot(t){return Le.removeRoot(this.root,t)}addRoot(t){return Le.addRoot(this.root,t)}createDirectory(t){var n=this;return Te(function*(){return yield n.storageService.createDirectory(n.addRoot(t)),n.refreshTables(),{type:"directory",id:t,filename:t,basename:Le.getBaseName(t)}})()}getTable(){var t=this;return Te(function*(){var n=new dt(t.storageService,t.root);return t.tables.push(n),n})()}saveFile(t){var n=this;return Te(function*(){var r=n.dh.storage.FileContents.text(t.content);return yield n.storageService.saveFile(n.addRoot(t.filename),r,!0),n.refreshTables(),t})()}loadFile(t){var n=this;return Te(function*(){var r=yield n.storageService.loadFile(n.addRoot(t)),i=yield r.text();return{filename:t,basename:Le.getBaseName(t),content:i}})()}copyFile(t,n){var r=this;return Te(function*(){var i=yield r.storageService.loadFile(r.addRoot(t));yield r.storageService.saveFile(r.addRoot(n),i,!1),r.refreshTables()})()}deleteFile(t){var n=this;return Te(function*(){yield n.storageService.deleteItem(n.addRoot(t)),n.refreshTables()})()}moveFile(t,n){var r=this;return Te(function*(){yield r.storageService.moveItem(r.addRoot(t),r.addRoot(n)),r.refreshTables()})()}info(t){var n=this;return Te(function*(){var r=yield n.storageService.listItems(n.addRoot(Le.getPath(t)),Le.getBaseName(t));if(r.length===0)throw new wm;if(r.length>1)throw LT.error("More than one matching file found, should never happen.",r),new Error("More than one matching file found");var i=r[0];if(!Om(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}})()}}Ve(Rr,"REFRESH_THROTTLE",150);export{qT as AppBootstrap,JT as AppDashboards,fT as AuthBootstrap,gT as ConnectionBootstrap,zf as ConnectionContext,ZT as DEFAULT_LAYOUT_CONFIG,eC as DEFAULT_LAYOUT_CONFIG_NO_CONSOLE,Rr as GrpcFileStorage,dt as GrpcFileStorageTable,tC as GrpcLayoutStorage,nC as LocalWorkspaceStorage,iT as PluginsBootstrap,YT as RemoteComponent,TT as ThemeBootstrap,rC as UserLayoutUtils,OT as createExportLogsContextAction,iC as exportLayout,q1 as getAuthHandlers,X1 as getAuthPluginComponent,zT as getBaseUrl,bT as getConnectOptions,aC as getDefaultLayout,vT as getEnvoyPrefix,Mh as getPluginModuleValue,oC as isLayoutV1,sC as isLayoutV2,Y1 as loadJson,G1 as loadModulePlugin,z1 as loadModulePlugins,lC as normalizeLayout,uC as useConnection,qf as useServerConfig,cC as useUser};
124
+ //# sourceMappingURL=index-sIC4DbFu.js.map