@malloy-publisher/sdk 0.9.15 → 0.9.16

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 (65) hide show
  1. package/dist/{RenderedResult-BClN_PG6.cjs.js → RenderedResult-5hOs5XnV.cjs.js} +21 -4
  2. package/dist/{RenderedResult-YBzVMVH2.es.js → RenderedResult-DxmHGZNQ.es.js} +204 -187
  3. package/dist/builder/index.cjs.js +75 -75
  4. package/dist/builder/index.es.js +5329 -5193
  5. package/dist/builder-entry.d.ts +1 -1
  6. package/dist/client/api.d.ts +1 -1
  7. package/dist/components/Dashboard/DashboardGrid.d.ts +2 -0
  8. package/dist/components/Dashboard/DashboardTile.d.ts +3 -1
  9. package/dist/components/RenderedResult/ResultContainer.d.ts +8 -1
  10. package/dist/components/RenderedResult/ResultPanel.d.ts +3 -1
  11. package/dist/components/RenderedResult/resultSizing.d.ts +5 -0
  12. package/dist/components/ReportBuilder/ArrangeMenu.d.ts +9 -0
  13. package/dist/components/ReportBuilder/BuilderGrid.d.ts +5 -7
  14. package/dist/components/ReportBuilder/BuilderToolbar.d.ts +3 -1
  15. package/dist/components/ReportBuilder/ReportBuilder.d.ts +1 -1
  16. package/dist/components/ReportBuilder/TileFrame.d.ts +34 -22
  17. package/dist/components/ReportBuilder/builderControls.d.ts +19 -0
  18. package/dist/components/ReportBuilder/placement.d.ts +48 -2
  19. package/dist/components/ReportBuilder/sortable.d.ts +9 -0
  20. package/dist/components/ReportBuilder/useBuilderSession.d.ts +1 -1
  21. package/dist/components/ReportBuilder/useBuilderShortcuts.d.ts +9 -1
  22. package/dist/components/ReportBuilder/useEdgeResize.d.ts +84 -0
  23. package/dist/components/ReportBuilder/useTileReorder.d.ts +3 -0
  24. package/dist/index.cjs.js +5 -5
  25. package/dist/index.es.js +489 -488
  26. package/dist/theme/classes.d.ts +1 -1
  27. package/dist/{useCompiledDocument-BGk38oaW.es.js → useCompiledDocument-CaYP_OYG.es.js} +4021 -4007
  28. package/dist/{useCompiledDocument-D9t5ry_t.cjs.js → useCompiledDocument-zYEfLogf.cjs.js} +32 -32
  29. package/package.json +1 -1
  30. package/src/builder-entry.ts +1 -0
  31. package/src/components/Dashboard/DashboardGrid.tsx +2 -0
  32. package/src/components/Dashboard/DashboardTile.tsx +4 -0
  33. package/src/components/Dashboard/DashboardView.tsx +1 -0
  34. package/src/components/RenderedResult/RenderedResult.tsx +18 -0
  35. package/src/components/RenderedResult/ResultContainer.tsx +39 -3
  36. package/src/components/RenderedResult/ResultPanel.tsx +4 -0
  37. package/src/components/RenderedResult/resultSizing.ts +6 -0
  38. package/src/components/ReportBuilder/ArrangeMenu.tsx +80 -0
  39. package/src/components/ReportBuilder/BuilderBar.tsx +4 -0
  40. package/src/components/ReportBuilder/BuilderDialogs.tsx +8 -1
  41. package/src/components/ReportBuilder/BuilderGrid.tsx +61 -60
  42. package/src/components/ReportBuilder/BuilderToolbar.tsx +4 -0
  43. package/src/components/ReportBuilder/EditorSurface.tsx +9 -2
  44. package/src/components/ReportBuilder/ReportBuilder.spec.tsx +99 -0
  45. package/src/components/ReportBuilder/ReportBuilder.tsx +110 -30
  46. package/src/components/ReportBuilder/TileFrame.tsx +261 -310
  47. package/src/components/ReportBuilder/builderControls.ts +34 -0
  48. package/src/components/ReportBuilder/placement.spec.ts +208 -0
  49. package/src/components/ReportBuilder/placement.ts +175 -9
  50. package/src/components/ReportBuilder/readDocument.spec.ts +7 -17
  51. package/src/components/ReportBuilder/readDocument.ts +3 -6
  52. package/src/components/ReportBuilder/sortable.tsx +26 -2
  53. package/src/components/ReportBuilder/spliceDocument.spec.ts +0 -40
  54. package/src/components/ReportBuilder/spliceDocument.ts +0 -39
  55. package/src/components/ReportBuilder/useBuilderSession.ts +7 -2
  56. package/src/components/ReportBuilder/useBuilderShortcuts.ts +25 -1
  57. package/src/components/ReportBuilder/useEdgeResize.spec.tsx +324 -0
  58. package/src/components/ReportBuilder/useEdgeResize.ts +397 -0
  59. package/src/components/ReportBuilder/useTileReorder.ts +1 -1
  60. package/src/theme/classes.ts +1 -1
  61. package/dist/components/ReportBuilder/useTileHeight.d.ts +0 -39
  62. package/dist/components/ReportBuilder/useTileResize.d.ts +0 -40
  63. package/src/components/ReportBuilder/useTileHeight.ts +0 -149
  64. package/src/components/ReportBuilder/useTileResize.spec.tsx +0 -146
  65. package/src/components/ReportBuilder/useTileResize.ts +0 -148
package/dist/index.es.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import { jsx as n, jsxs as S, Fragment as be } from "react/jsx-runtime";
2
- import { Link as uu, useMediaQuery as du, Stack as He, Typography as te, Button as bt, Menu as pr, ListSubheader as hu, MenuItem as Un, Dialog as Mi, DialogTitle as Di, Box as ee, IconButton as Yt, DialogContent as Ei, DialogActions as fu, Alert as Ct, Tooltip as wn, TextField as Hn, Grid as ur, Paper as gi, FormControlLabel as Ls, Switch as _s, Divider as hr, List as qs, ListItemButton as Ws, ListItemText as Dn, TableContainer as mu, Table as ko, TableHead as So, TableRow as On, TableCell as Te, TableBody as Co, Snackbar as To, ListItemIcon as gr, Container as Ii, FormGroup as pu, Chip as gu, AlertTitle as yu, ButtonBase as bu, InputBase as vu, InputAdornment as wu, CircularProgress as xu, LinearProgress as ku } from "@mui/material";
2
+ import { Link as uu, useMediaQuery as du, Stack as Ve, Typography as te, Button as bt, Menu as pr, ListSubheader as hu, MenuItem as Un, Dialog as Mi, DialogTitle as Di, Box as ee, IconButton as Yt, DialogContent as Ei, DialogActions as fu, Alert as Ct, Tooltip as wn, TextField as Vn, Grid as ur, Paper as gi, FormControlLabel as Ls, Switch as _s, Divider as hr, List as qs, ListItemButton as Ws, ListItemText as Dn, TableContainer as mu, Table as ko, TableHead as So, TableRow as On, TableCell as Te, TableBody as Co, Snackbar as To, ListItemIcon as gr, Container as Ii, FormGroup as pu, Chip as gu, AlertTitle as yu, ButtonBase as bu, InputBase as vu, InputAdornment as wu, CircularProgress as xu, LinearProgress as ku } from "@mui/material";
3
3
  import * as me from "react";
4
4
  import Se, { useState as K, useCallback as ct, useMemo as qe, useRef as Ot, useEffect as ot, useId as zs } from "react";
5
- import { h as Ye, bh as Zo, bi as Su, bj as Cu, bk as Tu, bl as Ou, bm as Mu, bn as Du, bo as $i, at as Eu, bp as Ni, ag as Gr, bq as Pi, aD as Fi, br as Vs, bs as Iu, bt as Oo, ao as $u, aE as Nu, ar as yi, a6 as Pu, aK as Fu, a7 as Au, G as Ru, bu as Lu, aG as Hs, aI as _u, aJ as qu, aH as Wu, am as zu, P as Vu, ab as Us, aL as Ai, a9 as Bs, Z as Mo, X as fr, ay as it, bv as Ae, aF as Pt, S as Qr, b3 as Dt, bw as Hu, bx as Vn, by as La, bz as js, bA as Uu, bB as Ko, bC as hn, bD as Zt, bE as fn, bF as Gt, bG as mn, bH as Ge, bI as Ri, bJ as Ft, bK as _a, bL as Bu, bM as Nt, bN as ju, bO as Et, bP as dn, bQ as Jr, n as vt, bR as Gu, bS as Yu, bT as Zu, bU as bo, bV as Ve, bW as qa, bX as Ku, bY as Gs, bZ as Li, b_ as Ce, A as Ys, b$ as Do, c0 as pt, c1 as Eo, c2 as Xu, c3 as po, c4 as Qu, c5 as Ju, c6 as Zs, c7 as ed, c8 as sr, c9 as Ln, ca as Wa, cb as Xo, cc as yn, cd as za, ce as Va, cf as Ha, cg as td, ch as Ua, ci as Ba, cj as Qo, ck as nd, cl as Mn, cm as rd, cn as od, co as Ks, cp as id, cq as ja, cr as ad, cs as sd, C as ld, ct as Xs, cu as cd, cv as Yr, cw as Zr, cx as ud, cy as dd, cz as hd, cA as Io, az as fd, cB as Qs, aS as bi, cC as Js, bg as md, p as Jo, b6 as pd, bd as gd, cD as yd, ba as bd, i as el, r as Ga, V as vd, aY as _i, b7 as wd, cE as xd, a$ as tl, aN as nl, aC as kd, b8 as Sd, aV as Cd, x as Td, a_ as $o, cF as Od, cG as Md, cH as vo, cI as rl, cJ as Dd, aP as Ed, a4 as Ya, cK as Id, a5 as $d, cL as Nd, cM as Pd, cN as Za } from "./useCompiledDocument-BGk38oaW.es.js";
6
- import { cO as Bg, cP as jg, cQ as Gg, M as Yg, cR as Zg, cS as Kg, cT as Xg, cU as Qg, cV as Jg, cW as ey, cX as ty, cY as ny, U as ry, d as oy, b4 as iy, g as ay, v as sy, aB as ly, cZ as cy, c_ as uy, c$ as dy, d0 as hy, as as fy, d1 as my, m as py, d2 as gy, F as yy, e as by, b1 as vy, d3 as wy, d4 as xy, d5 as ky, b as Sy, af as Cy, aA as Ty, d6 as Oy, d7 as My, d8 as Dy, d9 as Ey, da as Iy, db as $y, dc as Ny } from "./useCompiledDocument-BGk38oaW.es.js";
5
+ import { n as Ye, bj as Zo, bk as Su, bl as Cu, bm as Tu, bn as Ou, bo as Mu, bp as Du, bq as $i, av as Eu, br as Ni, ak as Gr, bs as Pi, aF as Fi, bt as Hs, bu as Iu, bv as Oo, aq as $u, aG as Nu, at as yi, J as Pu, aM as Fu, ab as Au, G as Ru, bw as Lu, aI as Vs, aK as _u, aL as qu, aJ as Wu, a3 as zu, P as Hu, af as Us, aN as Ai, ad as Bs, a0 as Mo, _ as fr, aA as it, bx as Ae, aH as Pt, S as Qr, b5 as Dt, by as Vu, bz as Hn, bA as La, bB as js, bC as Uu, bD as Ko, bE as hn, bF as Zt, bG as fn, bH as Gt, bI as mn, bJ as Ge, bK as Ri, bL as Ft, bM as _a, bN as Bu, bO as Nt, bP as ju, bQ as Et, bR as dn, bS as Jr, t as vt, bT as Gu, bU as Yu, bV as Zu, bW as bo, bX as He, bY as qa, bZ as Ku, b_ as Gs, b$ as Li, c0 as Ce, A as Ys, c1 as Do, c2 as pt, c3 as Eo, c4 as Xu, c5 as po, c6 as Qu, c7 as Ju, c8 as Zs, c9 as ed, ca as sr, cb as Ln, cc as Wa, cd as Xo, ce as yn, cf as za, cg as Ha, ch as Va, ci as td, cj as Ua, ck as Ba, cl as Qo, cm as nd, cn as Mn, co as rd, cp as od, cq as Ks, cr as id, cs as ja, ct as ad, cu as sd, C as ld, cv as Xs, cw as cd, cx as Yr, cy as Zr, cz as ud, cA as dd, cB as hd, cC as Io, aB as fd, cD as Qs, aU as bi, cE as Js, bi as md, v as Jo, b8 as pd, bf as gd, cF as yd, bc as bd, p as el, r as Ga, V as vd, a_ as _i, b9 as wd, cG as xd, b1 as tl, aP as nl, aE as kd, ba as Sd, aX as Cd, B as Td, b0 as $o, cH as Od, cI as Md, cJ as vo, cK as rl, cL as Dd, aR as Ed, a9 as Ya, cM as Id, aa as $d, cN as Nd, cO as Pd, cP as Za } from "./useCompiledDocument-CaYP_OYG.es.js";
6
+ import { cQ as Bg, cR as jg, cS as Gg, o as Yg, cT as Zg, cU as Kg, cV as Xg, cW as Qg, cX as Jg, cY as ey, cZ as ty, c_ as ny, U as ry, d as oy, b6 as iy, g as ay, z as sy, aD as ly, c$ as cy, d0 as uy, d1 as dy, d2 as hy, au as fy, d3 as my, m as py, d4 as gy, K as yy, e as by, b3 as vy, d5 as wy, d6 as xy, d7 as ky, b as Sy, aj as Cy, aC as Ty, d8 as Oy, d9 as My, da as Dy, db as Ey, dc as Iy, dd as $y, de as Ny } from "./useCompiledDocument-CaYP_OYG.es.js";
7
7
  import { b8 as yr, b9 as We, be as mt, m as Ka, d as ol, bf as qi, a2 as Mt, ao as fo, a1 as Fd, bg as il, bh as al, bi as Ad, bj as sl, bk as Rd, bl as Ld, bm as _n } from "./ServerProvider-D7neZcTk.es.js";
8
- import { bn as Fy, bd as Ay, aS as Ry, bo as Ly, bp as _y, bq as qy, br as Wy, bs as zy, bb as Vy } from "./ServerProvider-D7neZcTk.es.js";
8
+ import { bn as Fy, bd as Ay, aS as Ry, bo as Ly, bp as _y, bq as qy, br as Wy, bs as zy, bb as Hy } from "./ServerProvider-D7neZcTk.es.js";
9
9
  import { useQueryClient as No } from "@tanstack/react-query";
10
10
  import { createBox as _d, createStack as qd, Stack as Wd, Box as ll } from "@mui/system";
11
11
  import { Delete as Po, Edit as Wi, MoreVert as Fo } from "@mui/icons-material";
12
- import { h as zd, j as Xa, n as Vd } from "./text-entry-YKJZbRPo.es.js";
13
- import { D as Uy, R as By, b as jy, a as Gy, d as Yy, m as Zy, r as Ky } from "./RenderedResult-YBzVMVH2.es.js";
14
- import { useNavigate as cl, useSearchParams as Hd, useLocation as Ud } from "react-router-dom";
12
+ import { h as zd, j as Xa, n as Hd } from "./text-entry-YKJZbRPo.es.js";
13
+ import { D as Uy, R as By, b as jy, a as Gy, d as Yy, m as Zy, r as Ky } from "./RenderedResult-DxmHGZNQ.es.js";
14
+ import { useNavigate as cl, useSearchParams as Vd, useLocation as Ud } from "react-router-dom";
15
15
  const Bd = Ye(/* @__PURE__ */ n("path", {
16
16
  d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"
17
17
  }));
@@ -63,7 +63,7 @@ function Gd() {
63
63
  }
64
64
  function ug({ children: e }) {
65
65
  const [r] = K(Gd), [c, o] = K(!1);
66
- return !r || c ? /* @__PURE__ */ n(be, { children: e }) : /* @__PURE__ */ S(He, { sx: { alignItems: "flex-start", gap: 1.5, py: 3 }, children: [
66
+ return !r || c ? /* @__PURE__ */ n(be, { children: e }) : /* @__PURE__ */ S(Ve, { sx: { alignItems: "flex-start", gap: 1.5, py: 3 }, children: [
67
67
  /* @__PURE__ */ n(te, { variant: "h6", children: "Editing works best on a larger screen" }),
68
68
  /* @__PURE__ */ n(te, { variant: "body2", color: "text.secondary", children: "The editor is built for a wider window. You can still try it here." }),
69
69
  /* @__PURE__ */ n(bt, { variant: "outlined", onClick: () => o(!0), children: "Edit anyway" })
@@ -182,7 +182,7 @@ const Yd = (e) => {
182
182
  }), r.current;
183
183
  };
184
184
  function hg() {
185
- const [e] = Hd(), r = cl(), c = Ud(), o = qe(
185
+ const [e] = Vd(), r = cl(), c = Ud(), o = qe(
186
186
  () => Object.fromEntries(e.entries()),
187
187
  [e]
188
188
  ), u = Ot(/* @__PURE__ */ new Set()), a = ct(
@@ -405,16 +405,16 @@ function zi({
405
405
  documentName: u,
406
406
  ...v !== void 0 ? { preamble: v } : {},
407
407
  ...a ? { hostGivens: a } : {}
408
- }), { applied: P, declaredTypes: H, canSelf: A, onSelf: G } = D, $ = Vs(), R = qe(() => {
408
+ }), { applied: P, declaredTypes: V, canSelf: A, onSelf: G } = D, $ = Hs(), R = qe(() => {
409
409
  const B = new Set(
410
410
  (e.tiles ?? []).flatMap((De) => De.givenNames ?? [])
411
411
  );
412
412
  return Object.fromEntries(
413
413
  Object.entries(a ?? {}).filter(
414
- ([De]) => B.has(De) && !H.has(De)
414
+ ([De]) => B.has(De) && !V.has(De)
415
415
  )
416
416
  );
417
- }, [e, a, H]), [V, I] = K(void 0), _ = ct((B) => {
417
+ }, [e, a, V]), [H, I] = K(void 0), _ = ct((B) => {
418
418
  const De = Kd(B.context);
419
419
  De !== void 0 && I({
420
420
  ...De,
@@ -424,10 +424,10 @@ function zi({
424
424
  });
425
425
  }, []), U = qe(
426
426
  () => Iu(
427
- Oo(P, H),
427
+ Oo(P, V),
428
428
  R
429
429
  ),
430
- [P, H, R]
430
+ [P, V, R]
431
431
  ), { drill: X, drillMenu: Q } = dl({
432
432
  onNavigate: m,
433
433
  onSelf: G,
@@ -440,7 +440,7 @@ function zi({
440
440
  onClick: (De) => X.onClick({ ...De, context: B })
441
441
  }),
442
442
  [X]
443
- ), { columns: Z, layout: ae, tileMaxHeight: L, tableMaxHeight: J } = $u(
443
+ ), { columns: Z, layout: se, tileMaxHeight: L, tableMaxHeight: J } = $u(
444
444
  e.layout,
445
445
  e.dashboardColumns
446
446
  ), re = qe(
@@ -451,7 +451,7 @@ function zi({
451
451
  return /* @__PURE__ */ n(
452
452
  yi,
453
453
  {
454
- layout: ae,
454
+ layout: se,
455
455
  header: /* @__PURE__ */ n(
456
456
  Qa,
457
457
  {
@@ -463,11 +463,11 @@ function zi({
463
463
  children: /* @__PURE__ */ n(Ct, { severity: "error", children: e.error })
464
464
  }
465
465
  );
466
- const ce = y ?? e.path, Pe = e.tiles ?? [], se = Pu(Pe);
466
+ const ce = y ?? e.path, Pe = e.tiles ?? [], ie = Pu(Pe);
467
467
  return /* @__PURE__ */ S(
468
468
  yi,
469
469
  {
470
- layout: ae,
470
+ layout: se,
471
471
  header: /* @__PURE__ */ n(
472
472
  Qa,
473
473
  {
@@ -501,7 +501,7 @@ function zi({
501
501
  /* @__PURE__ */ n(
502
502
  ee,
503
503
  {
504
- sx: B.rowspan !== void 0 || se ? { minHeight: 0, overflow: "auto" } : void 0,
504
+ sx: B.rowspan !== void 0 || ie ? { minHeight: 0, overflow: "auto" } : void 0,
505
505
  children: /* @__PURE__ */ n(
506
506
  Jd,
507
507
  {
@@ -512,7 +512,7 @@ function zi({
512
512
  }
513
513
  )
514
514
  ) : /* @__PURE__ */ n(
515
- Hs,
515
+ Vs,
516
516
  {
517
517
  index: De,
518
518
  environmentName: r,
@@ -525,16 +525,17 @@ function zi({
525
525
  borderless: B.borderless,
526
526
  givens: P,
527
527
  hostGivens: R,
528
- declaredTypes: H,
528
+ declaredTypes: V,
529
529
  givenNames: B.givenNames,
530
530
  height: (
531
531
  // A set rowspan, or a placed report's fixed rows, is
532
532
  // the tile's own height; otherwise the layout's cap.
533
- B.rowspan !== void 0 || se ? zu(
534
- B.rowspan ?? Vu.query
535
- ) : ae === "grid" ? d ?? L : L
533
+ B.rowspan !== void 0 || ie ? zu(
534
+ B.rowspan ?? Hu.query
535
+ ) : se === "grid" ? d ?? L : L
536
536
  ),
537
537
  tableMaxHeight: J,
538
+ fixedHeight: B.rowspan !== void 0 || ie,
538
539
  maxResultSize: h,
539
540
  drill: oe(B.query),
540
541
  ignoredFilters: Wu(
@@ -559,7 +560,7 @@ function zi({
559
560
  ce !== void 0 && /* @__PURE__ */ n(
560
561
  Xd,
561
562
  {
562
- request: V,
563
+ request: H,
563
564
  environmentName: r,
564
565
  packageName: c,
565
566
  ...o === void 0 ? {} : { versionId: o },
@@ -567,11 +568,11 @@ function zi({
567
568
  givens: U,
568
569
  onClose: () => I(void 0),
569
570
  onDone: (B, De) => {
570
- V && $.emit({
571
+ H && $.emit({
571
572
  type: "report.rows_shown",
572
- source: V.source,
573
- view: V.view,
574
- field: V.field,
573
+ source: H.source,
574
+ view: H.view,
575
+ field: H.field,
575
576
  ok: B,
576
577
  durationMs: De
577
578
  });
@@ -666,7 +667,7 @@ function fg({ resourceUri: e }) {
666
667
  },
667
668
  children: [
668
669
  /* @__PURE__ */ S(
669
- He,
670
+ Ve,
670
671
  {
671
672
  direction: "row",
672
673
  alignItems: "baseline",
@@ -771,14 +772,14 @@ function nn({
771
772
  const a = zs();
772
773
  return /* @__PURE__ */ S(ee, { component: "section", "aria-labelledby": a, sx: { mb: 4 }, children: [
773
774
  /* @__PURE__ */ S(
774
- He,
775
+ Ve,
775
776
  {
776
777
  direction: "row",
777
778
  alignItems: "center",
778
779
  justifyContent: "space-between",
779
780
  sx: { mb: c ? 0 : 1, minHeight: 40 },
780
781
  children: [
781
- /* @__PURE__ */ S(He, { direction: "row", alignItems: "baseline", spacing: 1, children: [
782
+ /* @__PURE__ */ S(Ve, { direction: "row", alignItems: "baseline", spacing: 1, children: [
782
783
  /* @__PURE__ */ n(
783
784
  te,
784
785
  {
@@ -845,7 +846,7 @@ function ih(e = {}) {
845
846
  onClose: o,
846
847
  open: u,
847
848
  resumeHideDuration: a
848
- } = e, l = Hu();
849
+ } = e, l = Vu();
849
850
  me.useEffect(() => {
850
851
  if (!u)
851
852
  return;
@@ -856,9 +857,9 @@ function ih(e = {}) {
856
857
  document.removeEventListener("keydown", T);
857
858
  };
858
859
  }, [u, o]);
859
- const m = Vn((T, O) => {
860
+ const m = Hn((T, O) => {
860
861
  o?.(T, O);
861
- }), d = Vn((T) => {
862
+ }), d = Hn((T) => {
862
863
  !o || T == null || l.start(T, () => {
863
864
  m(null, "timeout");
864
865
  });
@@ -926,7 +927,7 @@ function sh(e) {
926
927
  }, 0), () => {
927
928
  d.current = !1;
928
929
  }), []);
929
- const p = js(Uu(r), m), v = Vn((w) => {
930
+ const p = js(Uu(r), m), v = Hn((w) => {
930
931
  const x = h.current;
931
932
  h.current = !1;
932
933
  const k = Ko(m.current);
@@ -1160,13 +1161,13 @@ const ph = (e) => {
1160
1161
  onMouseEnter: M,
1161
1162
  onMouseLeave: D,
1162
1163
  open: P,
1163
- resumeHideDuration: H,
1164
+ resumeHideDuration: V,
1164
1165
  slots: A = {},
1165
1166
  slotProps: G = {},
1166
1167
  TransitionComponent: $,
1167
1168
  transitionDuration: R = a,
1168
1169
  TransitionProps: {
1169
- onEnter: V,
1170
+ onEnter: H,
1170
1171
  onExited: I,
1171
1172
  ..._
1172
1173
  } = {},
@@ -1186,10 +1187,10 @@ const ph = (e) => {
1186
1187
  onClickAway: Z
1187
1188
  } = ih({
1188
1189
  ...X
1189
- }), [ae, L] = me.useState(!0), J = (ve) => {
1190
+ }), [se, L] = me.useState(!0), J = (ve) => {
1190
1191
  L(!0), I && I(ve);
1191
1192
  }, re = (ve, Fe) => {
1192
- L(!1), V && V(ve, Fe);
1193
+ L(!1), H && H(ve, Fe);
1193
1194
  }, ce = {
1194
1195
  slots: {
1195
1196
  transition: $,
@@ -1201,7 +1202,7 @@ const ph = (e) => {
1201
1202
  transition: _,
1202
1203
  ...G
1203
1204
  }
1204
- }, [Pe, se] = Nt("root", {
1205
+ }, [Pe, ie] = Nt("root", {
1205
1206
  ref: c,
1206
1207
  className: [Q.root, v],
1207
1208
  elementType: gh,
@@ -1224,7 +1225,7 @@ const ph = (e) => {
1224
1225
  }
1225
1226
  }),
1226
1227
  ownerState: X
1227
- }), [z, ie] = Nt("content", {
1228
+ }), [z, ae] = Nt("content", {
1228
1229
  elementType: fh,
1229
1230
  shouldForwardComponentProp: !0,
1230
1231
  externalForwardedProps: ce,
@@ -1252,17 +1253,17 @@ const ph = (e) => {
1252
1253
  },
1253
1254
  ownerState: X
1254
1255
  });
1255
- return !P && ae ? null : /* @__PURE__ */ n(B, {
1256
+ return !P && se ? null : /* @__PURE__ */ n(B, {
1256
1257
  ...tt,
1257
1258
  ...A.clickAwayListener && {
1258
1259
  ownerState: De
1259
1260
  },
1260
1261
  children: /* @__PURE__ */ n(Pe, {
1261
- ...se,
1262
+ ...ie,
1262
1263
  children: /* @__PURE__ */ n(ge, {
1263
1264
  ...Re,
1264
1265
  children: p || /* @__PURE__ */ n(z, {
1265
- ...ie
1266
+ ...ae
1266
1267
  })
1267
1268
  })
1268
1269
  })
@@ -1429,9 +1430,9 @@ function bh({
1429
1430
  }
1430
1431
  )
1431
1432
  ] }),
1432
- children: /* @__PURE__ */ n("form", { onSubmit: l, id: "package-form", children: /* @__PURE__ */ S(He, { sx: { gap: 2 }, children: [
1433
+ children: /* @__PURE__ */ n("form", { onSubmit: l, id: "package-form", children: /* @__PURE__ */ S(Ve, { sx: { gap: 2 }, children: [
1433
1434
  /* @__PURE__ */ n(
1434
- Hn,
1435
+ Vn,
1435
1436
  {
1436
1437
  autoFocus: !0,
1437
1438
  required: !0,
@@ -1445,7 +1446,7 @@ function bh({
1445
1446
  }
1446
1447
  ),
1447
1448
  /* @__PURE__ */ n(
1448
- Hn,
1449
+ Vn,
1449
1450
  {
1450
1451
  id: "description",
1451
1452
  name: "description",
@@ -1458,7 +1459,7 @@ function bh({
1458
1459
  }
1459
1460
  ),
1460
1461
  /* @__PURE__ */ n(
1461
- Hn,
1462
+ Vn,
1462
1463
  {
1463
1464
  id: "location",
1464
1465
  name: "location",
@@ -1647,7 +1648,7 @@ const ns = Zt("MuiListItemIcon", ["root", "alignItemsFlexStart"]), Sh = (e) => {
1647
1648
  marginTop: 8
1648
1649
  }
1649
1650
  }]
1650
- }))), Vi = /* @__PURE__ */ me.forwardRef(function(r, c) {
1651
+ }))), Hi = /* @__PURE__ */ me.forwardRef(function(r, c) {
1651
1652
  const o = fn({
1652
1653
  props: r,
1653
1654
  name: "MuiListItemIcon"
@@ -1721,7 +1722,7 @@ const dr = Zt("MuiListItemText", ["root", "multiline", "dense", "inset", "primar
1721
1722
  paddingLeft: 56
1722
1723
  }
1723
1724
  }]
1724
- }), Hi = /* @__PURE__ */ me.forwardRef(function(r, c) {
1725
+ }), Vi = /* @__PURE__ */ me.forwardRef(function(r, c) {
1725
1726
  const o = fn({
1726
1727
  props: r,
1727
1728
  name: "MuiListItemText"
@@ -1755,7 +1756,7 @@ const dr = Zt("MuiListItemText", ["root", "multiline", "dense", "inset", "primar
1755
1756
  secondary: v,
1756
1757
  ...g
1757
1758
  }
1758
- }, [P, H] = Nt("root", {
1759
+ }, [P, V] = Nt("root", {
1759
1760
  className: Gt(M.root, a),
1760
1761
  elementType: Mh,
1761
1762
  externalForwardedProps: {
@@ -1766,27 +1767,27 @@ const dr = Zt("MuiListItemText", ["root", "multiline", "dense", "inset", "primar
1766
1767
  ref: c
1767
1768
  }), [A, G] = Nt("primary", {
1768
1769
  className: M.primary,
1769
- elementType: Ve,
1770
+ elementType: He,
1770
1771
  externalForwardedProps: D,
1771
1772
  ownerState: O
1772
1773
  }), [$, R] = Nt("secondary", {
1773
1774
  className: M.secondary,
1774
- elementType: Ve,
1775
+ elementType: He,
1775
1776
  externalForwardedProps: D,
1776
1777
  ownerState: O
1777
1778
  });
1778
- return k != null && k.type !== Ve && !l && (k = /* @__PURE__ */ n(A, {
1779
+ return k != null && k.type !== He && !l && (k = /* @__PURE__ */ n(A, {
1779
1780
  variant: x ? "body2" : "body1",
1780
1781
  component: G?.variant ? void 0 : "span",
1781
1782
  ...G,
1782
1783
  children: k
1783
- })), T != null && T.type !== Ve && !l && (T = /* @__PURE__ */ n($, {
1784
+ })), T != null && T.type !== He && !l && (T = /* @__PURE__ */ n($, {
1784
1785
  variant: "body2",
1785
1786
  color: "textSecondary",
1786
1787
  ...R,
1787
1788
  children: T
1788
1789
  })), /* @__PURE__ */ S(P, {
1789
- ...H,
1790
+ ...V,
1790
1791
  children: [k, T]
1791
1792
  });
1792
1793
  });
@@ -2522,8 +2523,8 @@ function Ah({
2522
2523
  o(!1), m([]), a("postgres"), h("postgres"), v("s3"), g("config");
2523
2524
  }, k = async (D) => {
2524
2525
  D.preventDefault();
2525
- const P = new FormData(D.currentTarget), H = P.get("name")?.toString(), A = P.get("type")?.toString(), G = vn[A];
2526
- if (!H)
2526
+ const P = new FormData(D.currentTarget), V = P.get("name")?.toString(), A = P.get("type")?.toString(), G = vn[A];
2527
+ if (!V)
2527
2528
  throw new Error("Name is required");
2528
2529
  if (!A)
2529
2530
  throw new Error("Type is required");
@@ -2539,10 +2540,10 @@ function Ah({
2539
2540
  throw new Error("DuckLake requires catalog connection");
2540
2541
  R.postgresConnection = U;
2541
2542
  }
2542
- const V = P.get("ducklake_bucketUrl")?.toString();
2543
- if (!V)
2543
+ const H = P.get("ducklake_bucketUrl")?.toString();
2544
+ if (!H)
2544
2545
  throw new Error("DuckLake requires a bucket URL");
2545
- const I = { bucketUrl: V };
2546
+ const I = { bucketUrl: H };
2546
2547
  if (p === "s3") {
2547
2548
  const _ = {};
2548
2549
  if (Kr.forEach((U) => {
@@ -2569,7 +2570,7 @@ function Ah({
2569
2570
  Object.keys(_).length > 0 && (I.gcsConnection = _);
2570
2571
  }
2571
2572
  $ = {
2572
- name: H,
2573
+ name: V,
2573
2574
  type: A,
2574
2575
  ducklakeConnection: {
2575
2576
  catalog: R,
@@ -2582,8 +2583,8 @@ function Ah({
2582
2583
  "DuckDB connection must have at least one attached database"
2583
2584
  );
2584
2585
  const R = l.map(
2585
- (V, I) => {
2586
- const _ = V.dbType, U = P.get(`attachedDb_${I}_name`)?.toString();
2586
+ (H, I) => {
2587
+ const _ = H.dbType, U = P.get(`attachedDb_${I}_name`)?.toString();
2587
2588
  if (!U)
2588
2589
  throw new Error(
2589
2590
  `Attached database at index ${I} must have a name`
@@ -2594,9 +2595,9 @@ function Ah({
2594
2595
  }, Q = wo(_);
2595
2596
  if (Q && Q.length > 0) {
2596
2597
  const oe = {};
2597
- if (Q.forEach((ae) => {
2598
- const L = P.get(`attachedDb_${I}_${ae.name}`)?.toString();
2599
- L && (oe[ae.name] = L);
2598
+ if (Q.forEach((se) => {
2599
+ const L = P.get(`attachedDb_${I}_${se.name}`)?.toString();
2600
+ L && (oe[se.name] = L);
2600
2601
  }), _ === "s3") {
2601
2602
  if (oe.provider === "credential_chain")
2602
2603
  delete oe.accessKeyId, delete oe.secretAccessKey, delete oe.sessionToken;
@@ -2612,7 +2613,7 @@ function Ah({
2612
2613
  }
2613
2614
  );
2614
2615
  $ = {
2615
- name: H,
2616
+ name: V,
2616
2617
  type: A,
2617
2618
  duckdbConnection: {
2618
2619
  attachedDatabases: R
@@ -2620,9 +2621,9 @@ function Ah({
2620
2621
  };
2621
2622
  } else {
2622
2623
  const R = {};
2623
- if (G.forEach((V) => {
2624
- const I = P.get(V.name)?.toString();
2625
- I && (R[V.name] = I);
2624
+ if (G.forEach((H) => {
2625
+ const I = P.get(H.name)?.toString();
2626
+ I && (R[H.name] = I);
2626
2627
  }), A === "postgres") {
2627
2628
  if (!!!R.connectionString?.trim()) {
2628
2629
  const I = [
@@ -2660,25 +2661,25 @@ function Ah({
2660
2661
  "Password is required for HTTPS connections (or use Peaka Key)"
2661
2662
  );
2662
2663
  } else if (A === "mysql") {
2663
- const V = [
2664
+ const H = [
2664
2665
  "host",
2665
2666
  "port",
2666
2667
  "database",
2667
2668
  "user",
2668
2669
  "password"
2669
2670
  ];
2670
- for (const I of V)
2671
+ for (const I of H)
2671
2672
  if (!R[I])
2672
2673
  throw new Error(
2673
2674
  `${G.find((_) => _.name === I)?.label || I} is required`
2674
2675
  );
2675
2676
  } else if (A === "sqlserver") {
2676
- const V = ["server", "database", "user", "password"];
2677
+ const H = ["server", "database", "user", "password"];
2677
2678
  if (!R.instanceName && !R.port)
2678
2679
  throw new Error(
2679
2680
  "Port is required unless an instance name is given"
2680
2681
  );
2681
- for (const I of V)
2682
+ for (const I of H)
2682
2683
  if (!R[I])
2683
2684
  throw new Error(
2684
2685
  `${G.find((_) => _.name === I)?.label || I} is required`
@@ -2691,14 +2692,14 @@ function Ah({
2691
2692
  throw new Error("Host is required");
2692
2693
  if (!R.path)
2693
2694
  throw new Error("HTTP Path is required");
2694
- const V = R.oauthClientId && R.oauthClientSecret;
2695
- if (!R.token && !V)
2695
+ const H = R.oauthClientId && R.oauthClientSecret;
2696
+ if (!R.token && !H)
2696
2697
  throw new Error(
2697
2698
  "Either Access Token or OAuth Client ID + Secret is required"
2698
2699
  );
2699
2700
  }
2700
2701
  $ = {
2701
- name: H,
2702
+ name: V,
2702
2703
  type: A,
2703
2704
  [Ur[A]]: yl(
2704
2705
  A,
@@ -2713,10 +2714,10 @@ function Ah({
2713
2714
  { name: "", dbType: "postgres" }
2714
2715
  ]);
2715
2716
  }, O = (D) => {
2716
- m(l.filter((P, H) => H !== D));
2717
+ m(l.filter((P, V) => V !== D));
2717
2718
  }, M = (D, P) => {
2718
- const H = [...l];
2719
- H[D] = { ...H[D], dbType: P }, m(H);
2719
+ const V = [...l];
2720
+ V[D] = { ...V[D], dbType: P }, m(V);
2720
2721
  };
2721
2722
  return /* @__PURE__ */ S(Se.Fragment, { children: [
2722
2723
  /* @__PURE__ */ n(Jr, { label: "Connection", onClick: w }),
@@ -2781,7 +2782,7 @@ function Ah({
2781
2782
  },
2782
2783
  children: [
2783
2784
  /* @__PURE__ */ n(
2784
- Ve,
2785
+ He,
2785
2786
  {
2786
2787
  variant: "subtitle2",
2787
2788
  sx: { mb: 2 },
@@ -2831,7 +2832,7 @@ function Ah({
2831
2832
  },
2832
2833
  children: [
2833
2834
  /* @__PURE__ */ n(
2834
- Ve,
2835
+ He,
2835
2836
  {
2836
2837
  variant: "subtitle2",
2837
2838
  sx: { mb: 2 },
@@ -2869,7 +2870,7 @@ function Ah({
2869
2870
  ),
2870
2871
  p === "s3" && /* @__PURE__ */ S(be, { children: [
2871
2872
  /* @__PURE__ */ n(
2872
- Ve,
2873
+ He,
2873
2874
  {
2874
2875
  variant: "caption",
2875
2876
  sx: { mt: 2, mb: 1, display: "block" },
@@ -2911,7 +2912,7 @@ function Ah({
2911
2912
  ] }),
2912
2913
  p === "gcs" && /* @__PURE__ */ S(be, { children: [
2913
2914
  /* @__PURE__ */ n(
2914
- Ve,
2915
+ He,
2915
2916
  {
2916
2917
  variant: "caption",
2917
2918
  sx: { mt: 2, mb: 1, display: "block" },
@@ -2947,7 +2948,7 @@ function Ah({
2947
2948
  mb: 2
2948
2949
  },
2949
2950
  children: [
2950
- /* @__PURE__ */ n(Ve, { variant: "subtitle1", fontWeight: 500, children: "Attached Databases" }),
2951
+ /* @__PURE__ */ n(He, { variant: "subtitle1", fontWeight: 500, children: "Attached Databases" }),
2951
2952
  /* @__PURE__ */ n(
2952
2953
  Qr,
2953
2954
  {
@@ -2961,7 +2962,7 @@ function Ah({
2961
2962
  }
2962
2963
  ),
2963
2964
  l.length === 0 && /* @__PURE__ */ n(
2964
- Ve,
2965
+ He,
2965
2966
  {
2966
2967
  variant: "body2",
2967
2968
  color: "text.secondary",
@@ -2970,7 +2971,7 @@ function Ah({
2970
2971
  }
2971
2972
  ),
2972
2973
  l.map((D, P) => {
2973
- const H = wo(
2974
+ const V = wo(
2974
2975
  D.dbType
2975
2976
  );
2976
2977
  return /* @__PURE__ */ S(
@@ -2994,7 +2995,7 @@ function Ah({
2994
2995
  mb: 2
2995
2996
  },
2996
2997
  children: [
2997
- /* @__PURE__ */ S(Ve, { variant: "subtitle2", children: [
2998
+ /* @__PURE__ */ S(He, { variant: "subtitle2", children: [
2998
2999
  "Database ",
2999
3000
  P + 1
3000
3001
  ] }),
@@ -3042,7 +3043,7 @@ function Ah({
3042
3043
  ).map((A) => /* @__PURE__ */ n(et, { value: A, children: A }, A))
3043
3044
  }
3044
3045
  ),
3045
- H.filter((A) => A.visibleWhen ? (D[A.visibleWhen.field] || H.find(
3046
+ V.filter((A) => A.visibleWhen ? (D[A.visibleWhen.field] || V.find(
3046
3047
  ($) => $.name === A.visibleWhen?.field
3047
3048
  )?.selectOptions?.[0]?.value) === A.visibleWhen.value : !0).map((A) => /* @__PURE__ */ n(
3048
3049
  Ce,
@@ -3127,8 +3128,8 @@ function Rh({
3127
3128
  },
3128
3129
  sx: { color: "error.main" },
3129
3130
  children: [
3130
- /* @__PURE__ */ n(Vi, { sx: { color: "inherit" }, children: /* @__PURE__ */ n(Po, { fontSize: "small" }) }),
3131
- /* @__PURE__ */ n(Hi, { children: "Delete" })
3131
+ /* @__PURE__ */ n(Hi, { sx: { color: "inherit" }, children: /* @__PURE__ */ n(Po, { fontSize: "small" }) }),
3132
+ /* @__PURE__ */ n(Vi, { children: "Delete" })
3132
3133
  ]
3133
3134
  }
3134
3135
  ),
@@ -3152,7 +3153,7 @@ function Rh({
3152
3153
  }
3153
3154
  )
3154
3155
  ] }),
3155
- children: /* @__PURE__ */ S(Ve, { variant: "body2", children: [
3156
+ children: /* @__PURE__ */ S(He, { variant: "body2", children: [
3156
3157
  "Delete ",
3157
3158
  /* @__PURE__ */ n("strong", { children: e.name }),
3158
3159
  "? Packages that query through it stop working, and this cannot be undone."
@@ -3209,8 +3210,8 @@ function Lh({
3209
3210
  a(!1), o?.();
3210
3211
  }, M = async ($) => {
3211
3212
  $.preventDefault();
3212
- const R = new FormData($.currentTarget), V = R.get("name")?.toString(), I = R.get("type")?.toString(), _ = vn[I];
3213
- if (!V)
3213
+ const R = new FormData($.currentTarget), H = R.get("name")?.toString(), I = R.get("type")?.toString(), _ = vn[I];
3214
+ if (!H)
3214
3215
  throw new Error("Name is required");
3215
3216
  if (!I)
3216
3217
  throw new Error("Type is required");
@@ -3218,13 +3219,13 @@ function Lh({
3218
3219
  if (I === "ducklake") {
3219
3220
  const X = {};
3220
3221
  if (v === "postgres") {
3221
- const Z = vn.postgres, ae = {};
3222
+ const Z = vn.postgres, se = {};
3222
3223
  if (Z.forEach((L) => {
3223
3224
  const J = R.get(`ducklake_pg_${L.name}`)?.toString();
3224
- J && (ae[L.name] = J);
3225
- }), Object.keys(ae).length === 0)
3225
+ J && (se[L.name] = J);
3226
+ }), Object.keys(se).length === 0)
3226
3227
  throw new Error("DuckLake requires catalog connection");
3227
- X.postgresConnection = ae;
3228
+ X.postgresConnection = se;
3228
3229
  }
3229
3230
  const Q = R.get("ducklake_bucketUrl")?.toString();
3230
3231
  if (!Q)
@@ -3236,8 +3237,8 @@ function Lh({
3236
3237
  const J = R.get(`ducklake_s3_${L.name}`)?.toString();
3237
3238
  J && (Z[L.name] = J);
3238
3239
  });
3239
- const ae = e.ducklakeConnection?.storage?.s3Connection;
3240
- if (ae && (!Z.provider && ae.provider && (Z.provider = ae.provider), !Z.chain && ae.chain && (Z.chain = ae.chain), !Z.accessKeyId && ae.accessKeyId && (Z.accessKeyId = ae.accessKeyId)), Z.provider === "credential_chain")
3240
+ const se = e.ducklakeConnection?.storage?.s3Connection;
3241
+ if (se && (!Z.provider && se.provider && (Z.provider = se.provider), !Z.chain && se.chain && (Z.chain = se.chain), !Z.accessKeyId && se.accessKeyId && (Z.accessKeyId = se.accessKeyId)), Z.provider === "credential_chain")
3241
3242
  delete Z.accessKeyId, delete Z.secretAccessKey, delete Z.sessionToken;
3242
3243
  else if (delete Z.chain, !Z.accessKeyId)
3243
3244
  throw new Error("S3 Access Key ID is required");
@@ -3248,13 +3249,13 @@ function Lh({
3248
3249
  const J = R.get(`ducklake_gcs_${L.name}`)?.toString();
3249
3250
  J && (Z[L.name] = J);
3250
3251
  });
3251
- const ae = e.ducklakeConnection?.storage?.gcsConnection;
3252
- if (ae && !Z.keyId && ae.keyId && (Z.keyId = ae.keyId), !Z.keyId)
3252
+ const se = e.ducklakeConnection?.storage?.gcsConnection;
3253
+ if (se && !Z.keyId && se.keyId && (Z.keyId = se.keyId), !Z.keyId)
3253
3254
  throw new Error("GCS Key ID is required");
3254
3255
  Object.keys(Z).length > 0 && (oe.gcsConnection = Z);
3255
3256
  }
3256
3257
  U = {
3257
- name: V,
3258
+ name: H,
3258
3259
  type: I,
3259
3260
  ducklakeConnection: {
3260
3261
  catalog: X,
@@ -3268,26 +3269,26 @@ function Lh({
3268
3269
  );
3269
3270
  const X = h.map(
3270
3271
  (Q, oe) => {
3271
- const Z = Q.dbType, ae = R.get(`attachedDb_${oe}_name`)?.toString();
3272
- if (!ae)
3272
+ const Z = Q.dbType, se = R.get(`attachedDb_${oe}_name`)?.toString();
3273
+ if (!se)
3273
3274
  throw new Error(
3274
3275
  `Attached database at index ${oe} must have a name`
3275
3276
  );
3276
3277
  const L = {
3277
- name: ae,
3278
+ name: se,
3278
3279
  type: Z
3279
3280
  }, J = wo(Z);
3280
3281
  if (J && J.length > 0) {
3281
3282
  const re = {};
3282
3283
  if (J.forEach((Pe) => {
3283
- const se = R.get(`attachedDb_${oe}_${Pe.name}`)?.toString();
3284
- se && (re[Pe.name] = se);
3284
+ const ie = R.get(`attachedDb_${oe}_${Pe.name}`)?.toString();
3285
+ ie && (re[Pe.name] = ie);
3285
3286
  }), Z === "s3") {
3286
3287
  if (re.provider === "credential_chain")
3287
3288
  delete re.accessKeyId, delete re.secretAccessKey, delete re.sessionToken;
3288
3289
  else if (delete re.chain, !re.accessKeyId || !re.secretAccessKey)
3289
3290
  throw new Error(
3290
- `Attached database "${ae}" requires an S3 Access Key ID and Secret Access Key, or Credential Provider set to the host credential chain`
3291
+ `Attached database "${se}" requires an S3 Access Key ID and Secret Access Key, or Credential Provider set to the host credential chain`
3291
3292
  );
3292
3293
  }
3293
3294
  const ce = wi[Z];
@@ -3297,7 +3298,7 @@ function Lh({
3297
3298
  }
3298
3299
  );
3299
3300
  U = {
3300
- name: V,
3301
+ name: H,
3301
3302
  type: I,
3302
3303
  duckdbConnection: {
3303
3304
  attachedDatabases: X
@@ -3306,8 +3307,8 @@ function Lh({
3306
3307
  } else {
3307
3308
  const X = e[Ur[I]] || {}, Q = {};
3308
3309
  if (_.forEach((oe) => {
3309
- const Z = R.get(oe.name)?.toString(), ae = X[oe.name];
3310
- Z ? Q[oe.name] = Z : rs.has(oe.name) || (Z !== void 0 ? Q[oe.name] = Z : ae && (Q[oe.name] = ae));
3310
+ const Z = R.get(oe.name)?.toString(), se = X[oe.name];
3311
+ Z ? Q[oe.name] = Z : rs.has(oe.name) || (Z !== void 0 ? Q[oe.name] = Z : se && (Q[oe.name] = se));
3311
3312
  }), I === "postgres") {
3312
3313
  const oe = ["host", "port", "databaseName", "userName"], Z = d.has(
3313
3314
  "postgresConnection.connectionString"
@@ -3337,7 +3338,7 @@ function Lh({
3337
3338
  for (const Z of oe)
3338
3339
  if (!Q[Z])
3339
3340
  throw new Error(
3340
- `${_.find((ae) => ae.name === Z)?.label || Z} is required`
3341
+ `${_.find((se) => se.name === Z)?.label || Z} is required`
3341
3342
  );
3342
3343
  } else if (I === "sqlserver") {
3343
3344
  const oe = ["server", "database", "user"];
@@ -3348,7 +3349,7 @@ function Lh({
3348
3349
  for (const Z of oe)
3349
3350
  if (!Q[Z])
3350
3351
  throw new Error(
3351
- `${_.find((ae) => ae.name === Z)?.label || Z} is required`
3352
+ `${_.find((se) => se.name === Z)?.label || Z} is required`
3352
3353
  );
3353
3354
  } else if (I === "databricks") {
3354
3355
  if (!Q.host)
@@ -3357,7 +3358,7 @@ function Lh({
3357
3358
  throw new Error("HTTP Path is required");
3358
3359
  }
3359
3360
  U = {
3360
- name: V,
3361
+ name: H,
3361
3362
  type: I,
3362
3363
  [Ur[I]]: yl(
3363
3364
  I,
@@ -3372,31 +3373,31 @@ function Lh({
3372
3373
  { name: "", dbType: "postgres" }
3373
3374
  ]);
3374
3375
  }, P = ($) => {
3375
- p(h.filter((R, V) => V !== $));
3376
- }, H = ($, R) => {
3377
- const V = [...h];
3378
- V[$] = { ...V[$], dbType: R }, p(V);
3376
+ p(h.filter((R, H) => H !== $));
3377
+ }, V = ($, R) => {
3378
+ const H = [...h];
3379
+ H[$] = { ...H[$], dbType: R }, p(H);
3379
3380
  }, A = ($, R) => {
3380
- const V = e.duckdbConnection?.attachedDatabases;
3381
- if (!V || !V[$]) return "";
3382
- const I = V[$], _ = wi[I.type || ""];
3381
+ const H = e.duckdbConnection?.attachedDatabases;
3382
+ if (!H || !H[$]) return "";
3383
+ const I = H[$], _ = wi[I.type || ""];
3383
3384
  return _ && I[_] ? I[_][R] ?? "" : "";
3384
3385
  }, G = ($) => {
3385
3386
  const R = e.ducklakeConnection;
3386
3387
  if (!R) return "";
3387
3388
  if ($.startsWith("pg_")) {
3388
- const V = $.replace("pg_", "");
3389
- return R.catalog?.postgresConnection?.[V] ?? "";
3389
+ const H = $.replace("pg_", "");
3390
+ return R.catalog?.postgresConnection?.[H] ?? "";
3390
3391
  }
3391
3392
  if ($ === "bucketUrl")
3392
3393
  return R.storage?.bucketUrl ?? "";
3393
3394
  if ($.startsWith("s3_")) {
3394
- const V = $.replace("s3_", "");
3395
- return R.storage?.s3Connection?.[V] ?? "";
3395
+ const H = $.replace("s3_", "");
3396
+ return R.storage?.s3Connection?.[H] ?? "";
3396
3397
  }
3397
3398
  if ($.startsWith("gcs_")) {
3398
- const V = $.replace("gcs_", "");
3399
- return R.storage?.gcsConnection?.[V] ?? "";
3399
+ const H = $.replace("gcs_", "");
3400
+ return R.storage?.gcsConnection?.[H] ?? "";
3400
3401
  }
3401
3402
  return "";
3402
3403
  };
@@ -3409,8 +3410,8 @@ function Lh({
3409
3410
  $.preventDefault(), $.stopPropagation(), T();
3410
3411
  },
3411
3412
  children: [
3412
- /* @__PURE__ */ n(Vi, { children: /* @__PURE__ */ n(Wi, { fontSize: "small" }) }),
3413
- /* @__PURE__ */ n(Hi, { children: "Edit" })
3413
+ /* @__PURE__ */ n(Hi, { children: /* @__PURE__ */ n(Wi, { fontSize: "small" }) }),
3414
+ /* @__PURE__ */ n(Vi, { children: "Edit" })
3414
3415
  ]
3415
3416
  }
3416
3417
  ),
@@ -3476,7 +3477,7 @@ function Lh({
3476
3477
  },
3477
3478
  children: [
3478
3479
  /* @__PURE__ */ n(
3479
- Ve,
3480
+ He,
3480
3481
  {
3481
3482
  variant: "subtitle2",
3482
3483
  sx: { mb: 2 },
@@ -3529,7 +3530,7 @@ function Lh({
3529
3530
  },
3530
3531
  children: [
3531
3532
  /* @__PURE__ */ n(
3532
- Ve,
3533
+ He,
3533
3534
  {
3534
3535
  variant: "subtitle2",
3535
3536
  sx: { mb: 2 },
@@ -3568,7 +3569,7 @@ function Lh({
3568
3569
  ),
3569
3570
  g === "s3" && /* @__PURE__ */ S(be, { children: [
3570
3571
  /* @__PURE__ */ n(
3571
- Ve,
3572
+ He,
3572
3573
  {
3573
3574
  variant: "caption",
3574
3575
  sx: { mt: 2, mb: 1, display: "block" },
@@ -3614,7 +3615,7 @@ function Lh({
3614
3615
  ] }),
3615
3616
  g === "gcs" && /* @__PURE__ */ S(be, { children: [
3616
3617
  /* @__PURE__ */ n(
3617
- Ve,
3618
+ He,
3618
3619
  {
3619
3620
  variant: "caption",
3620
3621
  sx: { mt: 2, mb: 1, display: "block" },
@@ -3656,7 +3657,7 @@ function Lh({
3656
3657
  mb: 2
3657
3658
  },
3658
3659
  children: [
3659
- /* @__PURE__ */ n(Ve, { variant: "subtitle1", fontWeight: 500, children: "Attached Databases" }),
3660
+ /* @__PURE__ */ n(He, { variant: "subtitle1", fontWeight: 500, children: "Attached Databases" }),
3660
3661
  /* @__PURE__ */ n(
3661
3662
  Qr,
3662
3663
  {
@@ -3670,7 +3671,7 @@ function Lh({
3670
3671
  }
3671
3672
  ),
3672
3673
  h.length === 0 && /* @__PURE__ */ n(
3673
- Ve,
3674
+ He,
3674
3675
  {
3675
3676
  variant: "body2",
3676
3677
  color: "text.secondary",
@@ -3679,7 +3680,7 @@ function Lh({
3679
3680
  }
3680
3681
  ),
3681
3682
  h.map(($, R) => {
3682
- const V = wo(
3683
+ const H = wo(
3683
3684
  $.dbType
3684
3685
  );
3685
3686
  return /* @__PURE__ */ S(
@@ -3703,7 +3704,7 @@ function Lh({
3703
3704
  mb: 2
3704
3705
  },
3705
3706
  children: [
3706
- /* @__PURE__ */ S(Ve, { variant: "subtitle2", children: [
3707
+ /* @__PURE__ */ S(He, { variant: "subtitle2", children: [
3707
3708
  "Database ",
3708
3709
  R + 1
3709
3710
  ] }),
@@ -3743,7 +3744,7 @@ function Lh({
3743
3744
  size: "small",
3744
3745
  value: $.dbType,
3745
3746
  select: !0,
3746
- onChange: (I) => H(
3747
+ onChange: (I) => V(
3747
3748
  R,
3748
3749
  I.target.value
3749
3750
  ),
@@ -3752,10 +3753,10 @@ function Lh({
3752
3753
  ).map((I) => /* @__PURE__ */ n(et, { value: I, children: I }, I))
3753
3754
  }
3754
3755
  ),
3755
- V.filter((I) => I.visibleWhen ? ($[I.visibleWhen.field] || A(
3756
+ H.filter((I) => I.visibleWhen ? ($[I.visibleWhen.field] || A(
3756
3757
  R,
3757
3758
  I.visibleWhen.field
3758
- ) || V.find(
3759
+ ) || H.find(
3759
3760
  (U) => U.name === I.visibleWhen?.field
3760
3761
  )?.selectOptions?.[0]?.value) === I.visibleWhen.value : !0).map((I) => /* @__PURE__ */ n(
3761
3762
  Ce,
@@ -3802,7 +3803,7 @@ function Lh({
3802
3803
  );
3803
3804
  })
3804
3805
  ] }) : vn[l].map(($) => {
3805
- const R = e?.[Ur[l] ?? ""]?.[$.name ?? ""] ?? "", V = $.type === "password" || rs.has($.name), I = d.has(
3806
+ const R = e?.[Ur[l] ?? ""]?.[$.name ?? ""] ?? "", H = $.type === "password" || rs.has($.name), I = d.has(
3806
3807
  `${Ur[l] ?? ""}.${$.name}`
3807
3808
  ), _ = $.selectOptions ? R === "" || R === void 0 ? $.selectOptions[0]?.value : String(R) : void 0;
3808
3809
  return /* @__PURE__ */ n(
@@ -3814,11 +3815,11 @@ function Lh({
3814
3815
  type: $.type,
3815
3816
  fullWidth: !0,
3816
3817
  size: "small",
3817
- required: $.required && !V && !R,
3818
+ required: $.required && !H && !R,
3818
3819
  select: !!$.selectOptions,
3819
3820
  defaultValue: $.selectOptions ? _ : R,
3820
3821
  placeholder: I ? "Leave empty to keep existing" : void 0,
3821
- helperText: V ? I ? "Stored value is not shown. Leave empty to keep it." : "No value stored." : void 0,
3822
+ helperText: H ? I ? "Stored value is not shown. Leave empty to keep it." : "No value stored." : void 0,
3822
3823
  children: $.selectOptions?.map((U) => /* @__PURE__ */ n(
3823
3824
  et,
3824
3825
  {
@@ -3926,7 +3927,7 @@ function qh({
3926
3927
  )
3927
3928
  ] }) }),
3928
3929
  /* @__PURE__ */ n(ur, { size: { xs: 12, md: c ? 6 : 4 }, children: d && /* @__PURE__ */ n(gi, { sx: { p: 1, m: 0 }, children: /* @__PURE__ */ n(
3929
- Vh,
3930
+ Hh,
3930
3931
  {
3931
3932
  connectionName: e,
3932
3933
  schemaName: d,
@@ -4029,7 +4030,7 @@ function zh({ table: e, loading: r }) {
4029
4030
  ) }) })
4030
4031
  ] });
4031
4032
  }
4032
- function Vh({
4033
+ function Hh({
4033
4034
  connectionName: e,
4034
4035
  schemaName: r,
4035
4036
  onTableSelect: c,
@@ -4050,7 +4051,7 @@ function Vh({
4050
4051
  /* @__PURE__ */ n(te, { variant: "overline", fontWeight: "bold", children: _h(r) || as(u, r) ? `Files in ${r}` : `Tables in ${r}` }),
4051
4052
  /* @__PURE__ */ n(hr, {}),
4052
4053
  /* @__PURE__ */ n(ee, { sx: { mt: 1, mb: 1 }, children: /* @__PURE__ */ n(
4053
- Hn,
4054
+ Vn,
4054
4055
  {
4055
4056
  size: "small",
4056
4057
  fullWidth: !0,
@@ -4093,7 +4094,7 @@ function Vh({
4093
4094
  ] })
4094
4095
  ] });
4095
4096
  }
4096
- const Hh = {
4097
+ const Vh = {
4097
4098
  bigquery: "BigQuery",
4098
4099
  snowflake: "Snowflake",
4099
4100
  postgres: "PostgreSQL",
@@ -4108,7 +4109,7 @@ const Hh = {
4108
4109
  azure: "Azure"
4109
4110
  };
4110
4111
  function Uh(e) {
4111
- return e ? Hh[e] ?? e : "";
4112
+ return e ? Vh[e] ?? e : "";
4112
4113
  }
4113
4114
  function Bh({ resourceUri: e }) {
4114
4115
  const { apiClients: r, mutable: c } = We(), o = No(), { environmentName: u } = Ae(e), [a, l] = K(""), [m, d] = K(
@@ -4213,7 +4214,7 @@ function Bh({ resourceUri: e }) {
4213
4214
  }
4214
4215
  ),
4215
4216
  v && T.length === 0 && /* @__PURE__ */ n(te, { variant: "body2", color: "text.secondary", children: "No connections yet." }),
4216
- v && T.length > 0 && /* @__PURE__ */ n(He, { children: T.map((M) => /* @__PURE__ */ n(
4217
+ v && T.length > 0 && /* @__PURE__ */ n(Ve, { children: T.map((M) => /* @__PURE__ */ n(
4217
4218
  jh,
4218
4219
  {
4219
4220
  connection: M,
@@ -4377,7 +4378,7 @@ function Yh({
4377
4378
  }
4378
4379
  )
4379
4380
  ] }),
4380
- children: /* @__PURE__ */ S(Ve, { variant: "body2", children: [
4381
+ children: /* @__PURE__ */ S(He, { variant: "body2", children: [
4381
4382
  "Delete ",
4382
4383
  /* @__PURE__ */ n("strong", { children: d }),
4383
4384
  "? The package stops being served and this cannot be undone."
@@ -4449,7 +4450,7 @@ function Zh({
4449
4450
  }
4450
4451
  )
4451
4452
  ] }),
4452
- children: /* @__PURE__ */ n("form", { onSubmit: v, id: "package-form", children: /* @__PURE__ */ S(He, { sx: { gap: 2 }, children: [
4453
+ children: /* @__PURE__ */ n("form", { onSubmit: v, id: "package-form", children: /* @__PURE__ */ S(Ve, { sx: { gap: 2 }, children: [
4453
4454
  /* @__PURE__ */ n(
4454
4455
  Ce,
4455
4456
  {
@@ -4509,7 +4510,7 @@ function Kh({
4509
4510
  // The labelled region is the `PackageSection` above this: a reader can
4510
4511
  // jump to the packages, and a test can name one without catching the
4511
4512
  // same package's name in the materializations table below.
4512
- /* @__PURE__ */ n(He, { children: d.map((h) => {
4513
+ /* @__PURE__ */ n(Ve, { children: d.map((h) => {
4513
4514
  const p = Eo({
4514
4515
  environmentName: o,
4515
4516
  packageName: h.name
@@ -4707,12 +4708,12 @@ function nf(e) {
4707
4708
  getOptionDisabled: M,
4708
4709
  getOptionKey: D,
4709
4710
  getOptionLabel: P = (W) => W.label ?? W,
4710
- groupBy: H,
4711
+ groupBy: V,
4711
4712
  handleHomeEndKeys: A = !e.freeSolo,
4712
4713
  id: G,
4713
4714
  includeInputInList: $ = !1,
4714
4715
  inputValue: R,
4715
- isOptionEqualToValue: V = (W, q) => W === q,
4716
+ isOptionEqualToValue: H = (W, q) => W === q,
4716
4717
  multiple: I = !1,
4717
4718
  onChange: _,
4718
4719
  onClose: U,
@@ -4720,19 +4721,19 @@ function nf(e) {
4720
4721
  onInputChange: Q,
4721
4722
  onOpen: oe,
4722
4723
  open: Z,
4723
- openOnFocus: ae = !1,
4724
+ openOnFocus: se = !1,
4724
4725
  options: L,
4725
4726
  readOnly: J = !1,
4726
4727
  renderValue: re,
4727
4728
  selectOnFocus: ce = !e.freeSolo,
4728
4729
  value: Pe
4729
- } = e, se = Xu(G);
4730
+ } = e, ie = Xu(G);
4730
4731
  let B = P;
4731
4732
  B = (W) => {
4732
4733
  const q = P(W);
4733
4734
  return typeof q != "string" ? String(q) : q;
4734
4735
  };
4735
- const De = me.useRef(!1), tt = me.useRef(!0), z = me.useRef(null), ie = me.useRef(null), [ge, Re] = me.useState(null), [ve, Fe] = me.useState(-1), Oe = u ? 0 : -1, $e = me.useRef(Oe), Ze = me.useRef(us(p ?? Pe, I, B)).current, [de, nt] = po({
4736
+ const De = me.useRef(!1), tt = me.useRef(!0), z = me.useRef(null), ae = me.useRef(null), [ge, Re] = me.useState(null), [ve, Fe] = me.useState(-1), Oe = u ? 0 : -1, $e = me.useRef(Oe), Ze = me.useRef(us(p ?? Pe, I, B)).current, [de, nt] = po({
4736
4737
  controlled: Pe,
4737
4738
  default: p,
4738
4739
  name: h
@@ -4752,7 +4753,7 @@ function nf(e) {
4752
4753
  name: h,
4753
4754
  state: "open"
4754
4755
  }), [En, rn] = me.useState(!0), Kt = !I && de != null && we === B(de), ut = yt && !J, le = ut ? k(
4755
- L.filter((W) => !(T && (I ? de : [de]).some((q) => q !== null && V(W, q)))),
4756
+ L.filter((W) => !(T && (I ? de : [de]).some((q) => q !== null && H(W, q)))),
4756
4757
  // we use the empty string to manipulate `filterOptions` to not filter any options
4757
4758
  // i.e. the filter predicate always returns true
4758
4759
  {
@@ -4768,7 +4769,7 @@ function nf(e) {
4768
4769
  const W = de !== rt.value;
4769
4770
  at && !W || O && !W || Wt(null, de, "reset");
4770
4771
  }, [de, Wt, at, rt.value, O]);
4771
- const Ue = yt && le.length > 0 && !J, wt = Vn((W) => {
4772
+ const Ue = yt && le.length > 0 && !J, wt = Hn((W) => {
4772
4773
  if (W === -1)
4773
4774
  z.current.focus();
4774
4775
  else {
@@ -4780,39 +4781,39 @@ function nf(e) {
4780
4781
  I && ve > de.length - 1 && (Fe(-1), wt(-1));
4781
4782
  }, [de, I, ve, wt]);
4782
4783
  function It(W, q) {
4783
- if (!ie.current || W < 0 || W >= le.length)
4784
+ if (!ae.current || W < 0 || W >= le.length)
4784
4785
  return -1;
4785
4786
  let ne = W;
4786
4787
  for (; ; ) {
4787
- const fe = ie.current.querySelector(`[data-option-index="${ne}"]`), Y = w ? !1 : !fe || fe.disabled || fe.getAttribute("aria-disabled") === "true";
4788
+ const fe = ae.current.querySelector(`[data-option-index="${ne}"]`), Y = w ? !1 : !fe || fe.disabled || fe.getAttribute("aria-disabled") === "true";
4788
4789
  if (fe && fe.hasAttribute("tabindex") && !Y)
4789
4790
  return ne;
4790
4791
  if (q === "next" ? ne = (ne + 1) % le.length : ne = (ne - 1 + le.length) % le.length, ne === W)
4791
4792
  return -1;
4792
4793
  }
4793
4794
  }
4794
- const xt = Vn(({
4795
+ const xt = Hn(({
4795
4796
  event: W,
4796
4797
  index: q,
4797
4798
  reason: ne
4798
4799
  }) => {
4799
- if ($e.current = q, q === -1 ? z.current.removeAttribute("aria-activedescendant") : z.current.setAttribute("aria-activedescendant", `${se}-option-${q}`), X && ["mouse", "keyboard", "touch"].includes(ne) && X(W, q === -1 ? null : le[q], ne), !ie.current)
4800
+ if ($e.current = q, q === -1 ? z.current.removeAttribute("aria-activedescendant") : z.current.setAttribute("aria-activedescendant", `${ie}-option-${q}`), X && ["mouse", "keyboard", "touch"].includes(ne) && X(W, q === -1 ? null : le[q], ne), !ae.current)
4800
4801
  return;
4801
- const fe = ie.current.querySelector(`[role="option"].${c}-focused`);
4802
+ const fe = ae.current.querySelector(`[role="option"].${c}-focused`);
4802
4803
  fe && (fe.classList.remove(`${c}-focused`), fe.classList.remove(`${c}-focusVisible`));
4803
- let Y = ie.current;
4804
- if (ie.current.getAttribute("role") !== "listbox" && (Y = ie.current.parentElement.querySelector('[role="listbox"]')), !Y)
4804
+ let Y = ae.current;
4805
+ if (ae.current.getAttribute("role") !== "listbox" && (Y = ae.current.parentElement.querySelector('[role="listbox"]')), !Y)
4805
4806
  return;
4806
4807
  if (q === -1) {
4807
4808
  Y.scrollTop = 0;
4808
4809
  return;
4809
4810
  }
4810
- const Le = ie.current.querySelector(`[data-option-index="${q}"]`);
4811
+ const Le = ae.current.querySelector(`[data-option-index="${q}"]`);
4811
4812
  if (Le && (Le.classList.add(`${c}-focused`), ne === "keyboard" && Le.classList.add(`${c}-focusVisible`), Y.scrollHeight > Y.clientHeight && ne !== "mouse" && ne !== "touch")) {
4812
4813
  const ze = Le, Lt = Y.clientHeight + Y.scrollTop, Kn = ze.offsetTop + ze.offsetHeight;
4813
- Kn > Lt ? Y.scrollTop = Kn - Y.clientHeight : ze.offsetTop - ze.offsetHeight * (H ? 1.3 : 0) < Y.scrollTop && (Y.scrollTop = ze.offsetTop - ze.offsetHeight * (H ? 1.3 : 0));
4814
+ Kn > Lt ? Y.scrollTop = Kn - Y.clientHeight : ze.offsetTop - ze.offsetHeight * (V ? 1.3 : 0) < Y.scrollTop && (Y.scrollTop = ze.offsetTop - ze.offsetHeight * (V ? 1.3 : 0));
4814
4815
  }
4815
- }), ue = Vn(({
4816
+ }), ue = Hn(({
4816
4817
  event: W,
4817
4818
  diff: q,
4818
4819
  direction: ne = "next",
@@ -4846,7 +4847,7 @@ function nf(e) {
4846
4847
  array1: rt.filteredOptions,
4847
4848
  array2: le,
4848
4849
  parser: B
4849
- }), Vt = () => {
4850
+ }), Ht = () => {
4850
4851
  const W = (q, ne) => {
4851
4852
  const fe = q ? B(q) : "", Y = ne ? B(ne) : "";
4852
4853
  return fe === Y;
@@ -4864,7 +4865,7 @@ function nf(e) {
4864
4865
  }, Rt = me.useCallback(() => {
4865
4866
  if (!ut)
4866
4867
  return;
4867
- const W = Vt();
4868
+ const W = Ht();
4868
4869
  if (W !== -1) {
4869
4870
  $e.current = W;
4870
4871
  return;
@@ -4876,12 +4877,12 @@ function nf(e) {
4876
4877
  });
4877
4878
  return;
4878
4879
  }
4879
- if (ie.current) {
4880
+ if (ae.current) {
4880
4881
  if (q != null) {
4881
4882
  const ne = le[$e.current];
4882
- if (I && ne && de.findIndex((Y) => V(ne, Y)) !== -1)
4883
+ if (I && ne && de.findIndex((Y) => H(ne, Y)) !== -1)
4883
4884
  return;
4884
- const fe = le.findIndex((Y) => V(Y, q));
4885
+ const fe = le.findIndex((Y) => H(Y, q));
4885
4886
  fe === -1 ? ue({
4886
4887
  diff: "reset"
4887
4888
  }) : xt({
@@ -4911,8 +4912,8 @@ function nf(e) {
4911
4912
  ut,
4912
4913
  we,
4913
4914
  I
4914
- ]), dt = Vn((W) => {
4915
- Qu(ie, W), W && Rt();
4915
+ ]), dt = Hn((W) => {
4916
+ Qu(ae, W), W && Rt();
4916
4917
  });
4917
4918
  me.useEffect(() => {
4918
4919
  Ke && Rt();
@@ -4921,7 +4922,7 @@ function nf(e) {
4921
4922
  yt || (zt(!0), rn(!0), oe && oe(W));
4922
4923
  }, ht = (W, q) => {
4923
4924
  yt && (zt(!1), U && U(W, q));
4924
- }, Ht = (W, q, ne, fe) => {
4925
+ }, Vt = (W, q, ne, fe) => {
4925
4926
  if (I) {
4926
4927
  if (de.length === q.length && de.every((Y, Le) => Y === q[Le]))
4927
4928
  return;
@@ -4932,10 +4933,10 @@ function nf(e) {
4932
4933
  let Y = ne, Le = q;
4933
4934
  if (I) {
4934
4935
  Le = Array.isArray(de) ? de.slice() : [];
4935
- const ze = Le.findIndex((Lt) => V(q, Lt));
4936
+ const ze = Le.findIndex((Lt) => H(q, Lt));
4936
4937
  ze === -1 ? Le.push(q) : fe !== "freeSolo" && (Le.splice(ze, 1), Y = "removeOption");
4937
4938
  }
4938
- Wt(W, Le, Y), Ht(W, Le, Y, {
4939
+ Wt(W, Le, Y), Vt(W, Le, Y, {
4939
4940
  option: q
4940
4941
  }), !y && (!W || !W.ctrlKey && !W.metaKey) && ht(W, Y), (l === !0 || l === "touch" && Ut.current || l === "mouse" && !Ut.current) && z.current.blur();
4941
4942
  };
@@ -4960,7 +4961,7 @@ function nf(e) {
4960
4961
  let ne = ve;
4961
4962
  ve === -1 ? we === "" && q === "previous" && (ne = de.length - 1) : (ne += q === "next" ? 1 : -1, ne < 0 && (ne = 0), ne === de.length && (ne = -1)), ne = jn(ne, q), Fe(ne), wt(ne);
4962
4963
  }, In = (W) => {
4963
- De.current = !0, gt(""), Q && Q(W, "", "clear"), Ht(W, I ? [] : null, "clear");
4964
+ De.current = !0, gt(""), Q && Q(W, "", "clear"), Vt(W, I ? [] : null, "clear");
4964
4965
  }, Gn = (W) => (q) => {
4965
4966
  if (W.onKeyDown && W.onKeyDown(q), !q.defaultMuiPrevented && (ve !== -1 && !["ArrowLeft", "ArrowRight"].includes(q.key) && (Fe(-1), wt(-1)), q.which !== 229))
4966
4967
  switch (q.key) {
@@ -5032,7 +5033,7 @@ function nf(e) {
5032
5033
  case "Backspace":
5033
5034
  if (I && !J && we === "" && de.length > 0) {
5034
5035
  const ne = ve === -1 ? de.length - 1 : ve, fe = de.slice();
5035
- fe.splice(ne, 1), Ht(q, fe, "removeOption", {
5036
+ fe.splice(ne, 1), Vt(q, fe, "removeOption", {
5036
5037
  option: de[ne]
5037
5038
  });
5038
5039
  }
@@ -5041,7 +5042,7 @@ function nf(e) {
5041
5042
  case "Delete":
5042
5043
  if (I && !J && we === "" && de.length > 0 && ve !== -1) {
5043
5044
  const ne = ve, fe = de.slice();
5044
- fe.splice(ne, 1), Ht(q, fe, "removeOption", {
5045
+ fe.splice(ne, 1), Vt(q, fe, "removeOption", {
5045
5046
  option: de[ne]
5046
5047
  });
5047
5048
  }
@@ -5049,16 +5050,16 @@ function nf(e) {
5049
5050
  break;
5050
5051
  }
5051
5052
  }, Ne = (W) => {
5052
- At(!0), ae && !De.current && Be(W);
5053
+ At(!0), se && !De.current && Be(W);
5053
5054
  }, ft = (W) => {
5054
- if (r(ie)) {
5055
+ if (r(ae)) {
5055
5056
  z.current.focus();
5056
5057
  return;
5057
5058
  }
5058
5059
  At(!1), tt.current = !0, De.current = !1, a && $e.current !== -1 && ut ? Xt(W, le[$e.current], "blur") : a && O && we !== "" ? Xt(W, we, "blur", "freeSolo") : m && Wt(W, de, "blur"), ht(W, "blur");
5059
5060
  }, xn = (W) => {
5060
5061
  const q = W.target.value;
5061
- we !== q && (gt(q), rn(!1), Q && Q(W, q, "input")), q === "" ? !v && !I && Ht(W, null, "clear") : Be(W);
5062
+ we !== q && (gt(q), rn(!1), Q && Q(W, q, "input")), q === "" ? !v && !I && Vt(W, null, "clear") : Be(W);
5062
5063
  }, Yn = (W) => {
5063
5064
  const q = Number(W.currentTarget.getAttribute("data-option-index"));
5064
5065
  $e.current !== q && xt({
@@ -5077,17 +5078,17 @@ function nf(e) {
5077
5078
  Xt(W, le[q], "selectOption"), Ut.current = !1;
5078
5079
  }, Zn = (W) => (q) => {
5079
5080
  const ne = de.slice();
5080
- ne.splice(W, 1), Ht(q, ne, "removeOption", {
5081
+ ne.splice(W, 1), Vt(q, ne, "removeOption", {
5081
5082
  option: de[W]
5082
5083
  });
5083
5084
  }, kn = (W) => {
5084
- Ht(W, null, "removeOption", {
5085
+ Vt(W, null, "removeOption", {
5085
5086
  option: de
5086
5087
  });
5087
5088
  }, Xe = (W) => {
5088
5089
  yt ? ht(W, "toggleInput") : Be(W);
5089
5090
  }, Qe = (W) => {
5090
- W.currentTarget.contains(W.target) && W.target.getAttribute("id") !== se && W.preventDefault();
5091
+ W.currentTarget.contains(W.target) && W.target.getAttribute("id") !== ie && W.preventDefault();
5091
5092
  }, Qt = (W) => {
5092
5093
  W.currentTarget.contains(W.target) && (z.current.focus(), ce && tt.current && z.current.selectionEnd - z.current.selectionStart === 0 && z.current.select(), tt.current = !1);
5093
5094
  }, Nn = (W) => {
@@ -5096,8 +5097,8 @@ function nf(e) {
5096
5097
  let Sn = O && we.length > 0;
5097
5098
  Sn = Sn || (I ? de.length > 0 : de !== null);
5098
5099
  let Pn = le;
5099
- return H && (Pn = le.reduce((W, q, ne) => {
5100
- const fe = H(q);
5100
+ return V && (Pn = le.reduce((W, q, ne) => {
5101
+ const fe = V(q);
5101
5102
  return W.length > 0 && W[W.length - 1].group === fe ? W[W.length - 1].options.push(q) : W.push({
5102
5103
  key: ne,
5103
5104
  index: ne,
@@ -5112,11 +5113,11 @@ function nf(e) {
5112
5113
  onClick: Qt
5113
5114
  }),
5114
5115
  getInputLabelProps: () => ({
5115
- id: `${se}-label`,
5116
- htmlFor: se
5116
+ id: `${ie}-label`,
5117
+ htmlFor: ie
5117
5118
  }),
5118
5119
  getInputProps: () => ({
5119
- id: se,
5120
+ id: ie,
5120
5121
  value: we,
5121
5122
  onBlur: ft,
5122
5123
  onFocus: Ne,
@@ -5126,7 +5127,7 @@ function nf(e) {
5126
5127
  // only have an opinion about this when closed
5127
5128
  "aria-activedescendant": ut ? "" : null,
5128
5129
  "aria-autocomplete": o ? "both" : "list",
5129
- "aria-controls": Ue ? `${se}-listbox` : void 0,
5130
+ "aria-controls": Ue ? `${ie}-listbox` : void 0,
5130
5131
  "aria-expanded": Ue,
5131
5132
  // Disable browser's suggestion that might overlap with the popup.
5132
5133
  // Handle autocomplete but not autofill.
@@ -5176,8 +5177,8 @@ function nf(e) {
5176
5177
  }),
5177
5178
  getListboxProps: () => ({
5178
5179
  role: "listbox",
5179
- id: `${se}-listbox`,
5180
- "aria-labelledby": `${se}-label`,
5180
+ id: `${ie}-listbox`,
5181
+ "aria-labelledby": `${ie}-label`,
5181
5182
  ref: dt,
5182
5183
  onMouseDown: (W) => {
5183
5184
  W.preventDefault();
@@ -5187,12 +5188,12 @@ function nf(e) {
5187
5188
  index: W,
5188
5189
  option: q
5189
5190
  }) => {
5190
- const ne = (I ? de : [de]).some((Y) => Y != null && V(q, Y)), fe = M ? M(q) : !1;
5191
+ const ne = (I ? de : [de]).some((Y) => Y != null && H(q, Y)), fe = M ? M(q) : !1;
5191
5192
  return {
5192
5193
  key: D?.(q) ?? B(q),
5193
5194
  tabIndex: -1,
5194
5195
  role: "option",
5195
- id: `${se}-option-${W}`,
5196
+ id: `${ie}-option-${W}`,
5196
5197
  onMouseMove: Yn,
5197
5198
  onClick: $n,
5198
5199
  onTouchStart: kt,
@@ -5201,7 +5202,7 @@ function nf(e) {
5201
5202
  "aria-selected": ne
5202
5203
  };
5203
5204
  },
5204
- id: se,
5205
+ id: ie,
5205
5206
  inputValue: we,
5206
5207
  value: de,
5207
5208
  dirty: Sn,
@@ -5705,12 +5706,12 @@ const cf = (e) => {
5705
5706
  disabled: M = !1,
5706
5707
  disabledItemsFocusable: D = !1,
5707
5708
  disableListWrap: P = !1,
5708
- disablePortal: H = !1,
5709
+ disablePortal: V = !1,
5709
5710
  filterOptions: A,
5710
5711
  filterSelectedOptions: G = !1,
5711
5712
  forcePopupIcon: $ = "auto",
5712
5713
  freeSolo: R = !1,
5713
- fullWidth: V = !1,
5714
+ fullWidth: H = !1,
5714
5715
  getLimitTagsText: I = (Me) => `+${Me}`,
5715
5716
  getOptionDisabled: _,
5716
5717
  getOptionKey: U,
@@ -5718,18 +5719,18 @@ const cf = (e) => {
5718
5719
  isOptionEqualToValue: Q,
5719
5720
  groupBy: oe,
5720
5721
  handleHomeEndKeys: Z = !o.freeSolo,
5721
- id: ae,
5722
+ id: se,
5722
5723
  includeInputInList: L = !1,
5723
5724
  inputValue: J,
5724
5725
  limitTags: re = -1,
5725
5726
  ListboxComponent: ce,
5726
5727
  ListboxProps: Pe,
5727
- loading: se = !1,
5728
+ loading: ie = !1,
5728
5729
  loadingText: B = "Loading…",
5729
5730
  multiple: De = !1,
5730
5731
  noOptionsText: tt = "No options",
5731
5732
  onChange: z,
5732
- onClose: ie,
5733
+ onClose: ae,
5733
5734
  onHighlightChange: ge,
5734
5735
  onInputChange: Re,
5735
5736
  onOpen: ve,
@@ -5759,12 +5760,12 @@ const cf = (e) => {
5759
5760
  getPopupIndicatorProps: xt,
5760
5761
  getClearProps: ue,
5761
5762
  getItemProps: Ke,
5762
- getListboxProps: Vt,
5763
+ getListboxProps: Ht,
5763
5764
  getOptionProps: Rt,
5764
5765
  value: dt,
5765
5766
  dirty: Be,
5766
5767
  expanded: ht,
5767
- id: Ht,
5768
+ id: Vt,
5768
5769
  popupOpen: Ut,
5769
5770
  focused: Xt,
5770
5771
  focusedItem: jn,
@@ -5780,12 +5781,12 @@ const cf = (e) => {
5780
5781
  } = wt(), {
5781
5782
  ref: kt,
5782
5783
  ...$n
5783
- } = Vt(), kn = X || ((Me) => Me.label ?? Me), Xe = {
5784
+ } = Ht(), kn = X || ((Me) => Me.label ?? Me), Xe = {
5784
5785
  ...o,
5785
- disablePortal: H,
5786
+ disablePortal: V,
5786
5787
  expanded: ht,
5787
5788
  focused: Xt,
5788
- fullWidth: V,
5789
+ fullWidth: H,
5789
5790
  getOptionLabel: kn,
5790
5791
  hasClearIcon: ft,
5791
5792
  hasPopupIcon: xn,
@@ -5822,7 +5823,7 @@ const cf = (e) => {
5822
5823
  ownerState: Xe,
5823
5824
  className: Qe.popper,
5824
5825
  additionalProps: {
5825
- disablePortal: H,
5826
+ disablePortal: V,
5826
5827
  style: {
5827
5828
  width: on ? on.clientWidth : null
5828
5829
  },
@@ -5898,7 +5899,7 @@ const cf = (e) => {
5898
5899
  ownerState: Xe,
5899
5900
  ...Ue(rt),
5900
5901
  children: At({
5901
- id: Ht,
5902
+ id: Vt,
5902
5903
  disabled: M,
5903
5904
  fullWidth: !0,
5904
5905
  size: rn === "small" ? "small" : void 0,
@@ -5948,11 +5949,11 @@ const cf = (e) => {
5948
5949
  children: /* @__PURE__ */ S(pf, {
5949
5950
  as: Pn,
5950
5951
  ...W,
5951
- children: [se && Ne.length === 0 ? /* @__PURE__ */ n(gf, {
5952
+ children: [ie && Ne.length === 0 ? /* @__PURE__ */ n(gf, {
5952
5953
  className: Qe.loading,
5953
5954
  ownerState: Xe,
5954
5955
  children: B
5955
- }) : null, Ne.length === 0 && !R && !se ? /* @__PURE__ */ n(yf, {
5956
+ }) : null, Ne.length === 0 && !R && !ie ? /* @__PURE__ */ n(yf, {
5956
5957
  className: Qe.noOptions,
5957
5958
  ownerState: Xe,
5958
5959
  role: "presentation",
@@ -6010,7 +6011,7 @@ function gg({
6010
6011
  c?.value2 ?? ""
6011
6012
  ), [y, g] = K(
6012
6013
  []
6013
- ), [w, x] = K(!1), [k, T] = K(""), [O, M] = K(!1), [D, P] = K(!1), H = Ot(null), A = Ot(0), [G, $] = K(!1);
6014
+ ), [w, x] = K(!1), [k, T] = K(""), [O, M] = K(!1), [D, P] = K(!1), V = Ot(null), A = Ot(0), [G, $] = K(!1);
6014
6015
  ot(() => {
6015
6016
  if (e.filterType !== "Retrieval" || !u) return;
6016
6017
  const L = k.trim();
@@ -6018,7 +6019,7 @@ function gg({
6018
6019
  g([]), M(!1);
6019
6020
  return;
6020
6021
  }
6021
- return H.current && clearTimeout(H.current), H.current = setTimeout(async () => {
6022
+ return V.current && clearTimeout(V.current), V.current = setTimeout(async () => {
6022
6023
  A.current += 1;
6023
6024
  const J = A.current;
6024
6025
  x(!0);
@@ -6031,14 +6032,14 @@ function gg({
6031
6032
  J === A.current && (x(!1), M(!0));
6032
6033
  }
6033
6034
  }, 500), () => {
6034
- H.current && clearTimeout(H.current);
6035
+ V.current && clearTimeout(V.current);
6035
6036
  };
6036
6037
  }, [k, e, u]), ot(() => {
6037
6038
  c === null ? (h(""), v(""), m(
6038
6039
  e.defaultMatchType ?? (e.filterType === "DateMinMax" ? "Between" : ti(e.filterType)[0] || "Equals")
6039
6040
  )) : c && (m(c.matchType), h(c.value ?? ""), v(c.value2 ?? ""));
6040
6041
  }, [c, e.filterType, e.defaultMatchType]);
6041
- const R = ti(e.filterType), V = xf(e.filterType), I = ni(l), _ = V && r.length >= 2 && r[0].value instanceof Date ? yn.utc(r[0].value) : void 0, U = V && r.length >= 2 && r[1].value instanceof Date ? yn.utc(r[1].value) : void 0, X = e.filterType === "MinMax" && r.length >= 2 && typeof r[0].value == "number" ? r[0].value : void 0, Q = e.filterType === "MinMax" && r.length >= 2 && typeof r[1].value == "number" ? r[1].value : void 0;
6042
+ const R = ti(e.filterType), H = xf(e.filterType), I = ni(l), _ = H && r.length >= 2 && r[0].value instanceof Date ? yn.utc(r[0].value) : void 0, U = H && r.length >= 2 && r[1].value instanceof Date ? yn.utc(r[1].value) : void 0, X = e.filterType === "MinMax" && r.length >= 2 && typeof r[0].value == "number" ? r[0].value : void 0, Q = e.filterType === "MinMax" && r.length >= 2 && typeof r[1].value == "number" ? r[1].value : void 0;
6042
6043
  if (R.length === 0)
6043
6044
  return null;
6044
6045
  const oe = (L) => {
@@ -6062,7 +6063,7 @@ function gg({
6062
6063
  value: L,
6063
6064
  ...I && J && { value2: J }
6064
6065
  } : null);
6065
- }, ae = () => {
6066
+ }, se = () => {
6066
6067
  h(""), v(""), o(null);
6067
6068
  };
6068
6069
  return /* @__PURE__ */ S(
@@ -6134,9 +6135,9 @@ function gg({
6134
6135
  }
6135
6136
  ),
6136
6137
  e.filterType !== "Boolean" && !e.defaultMatchType && R.length > 1 && /* @__PURE__ */ S(za, { size: "small", fullWidth: !0, children: [
6137
- /* @__PURE__ */ n(Va, { children: "Match Type" }),
6138
+ /* @__PURE__ */ n(Ha, { children: "Match Type" }),
6138
6139
  /* @__PURE__ */ n(
6139
- Ha,
6140
+ Va,
6140
6141
  {
6141
6142
  value: l,
6142
6143
  label: "Match Type",
@@ -6210,15 +6211,15 @@ function gg({
6210
6211
  }
6211
6212
  ),
6212
6213
  e.filterType === "Boolean" && /* @__PURE__ */ S(za, { size: "small", fullWidth: !0, children: [
6213
- /* @__PURE__ */ n(Va, { children: "Value" }),
6214
+ /* @__PURE__ */ n(Ha, { children: "Value" }),
6214
6215
  /* @__PURE__ */ S(
6215
- Ha,
6216
+ Va,
6216
6217
  {
6217
6218
  value: d === !0 ? "true" : d === !1 ? "false" : "",
6218
6219
  label: "Value",
6219
6220
  onChange: (L) => {
6220
6221
  const J = L.target.value;
6221
- J === "true" ? Z(!0) : J === "false" ? Z(!1) : ae();
6222
+ J === "true" ? Z(!0) : J === "false" ? Z(!1) : se();
6222
6223
  },
6223
6224
  MenuProps: {
6224
6225
  PaperProps: {
@@ -6364,7 +6365,7 @@ function gg({
6364
6365
  )
6365
6366
  ] }),
6366
6367
  G && X !== void 0 && Q !== void 0 && /* @__PURE__ */ S(
6367
- Ve,
6368
+ He,
6368
6369
  {
6369
6370
  variant: "caption",
6370
6371
  color: "text.secondary",
@@ -6379,7 +6380,7 @@ function gg({
6379
6380
  }
6380
6381
  )
6381
6382
  ] }),
6382
- V && !I && /* @__PURE__ */ n(Ua, { dateAdapter: Ba, children: /* @__PURE__ */ n(
6383
+ H && !I && /* @__PURE__ */ n(Ua, { dateAdapter: Ba, children: /* @__PURE__ */ n(
6383
6384
  Qo,
6384
6385
  {
6385
6386
  label: "Date",
@@ -6406,7 +6407,7 @@ function gg({
6406
6407
  }
6407
6408
  }
6408
6409
  ) }),
6409
- V && I && /* @__PURE__ */ n(Ua, { dateAdapter: Ba, children: /* @__PURE__ */ S(je, { sx: { display: "flex", flexDirection: "column", gap: 1 }, children: [
6410
+ H && I && /* @__PURE__ */ n(Ua, { dateAdapter: Ba, children: /* @__PURE__ */ S(je, { sx: { display: "flex", flexDirection: "column", gap: 1 }, children: [
6410
6411
  /* @__PURE__ */ S(je, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
6411
6412
  /* @__PURE__ */ n(je, { sx: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ n(
6412
6413
  Qo,
@@ -6467,7 +6468,7 @@ function gg({
6467
6468
  ) })
6468
6469
  ] }),
6469
6470
  G && _ && U && /* @__PURE__ */ S(
6470
- Ve,
6471
+ He,
6471
6472
  {
6472
6473
  variant: "caption",
6473
6474
  color: "text.secondary",
@@ -6807,7 +6808,7 @@ function Tf({
6807
6808
  }
6808
6809
  )
6809
6810
  ] }),
6810
- children: /* @__PURE__ */ S(Ve, { variant: "body2", children: [
6811
+ children: /* @__PURE__ */ S(He, { variant: "body2", children: [
6811
6812
  "Delete ",
6812
6813
  /* @__PURE__ */ n("strong", { children: e.name }),
6813
6814
  "? Its packages stop being served and this cannot be undone."
@@ -7003,7 +7004,7 @@ function Cg({ onClickEnvironment: e }) {
7003
7004
  }
7004
7005
  )
7005
7006
  ] }),
7006
- /* @__PURE__ */ n(ur, { container: !0, spacing: 4, sx: { mb: 5 }, children: Mf.map((d) => /* @__PURE__ */ n(ur, { size: { xs: 12, sm: 6 }, children: /* @__PURE__ */ S(He, { spacing: 1, children: [
7007
+ /* @__PURE__ */ n(ur, { container: !0, spacing: 4, sx: { mb: 5 }, children: Mf.map((d) => /* @__PURE__ */ n(ur, { size: { xs: 12, sm: 6 }, children: /* @__PURE__ */ S(Ve, { spacing: 1, children: [
7007
7008
  /* @__PURE__ */ n(
7008
7009
  te,
7009
7010
  {
@@ -7039,7 +7040,7 @@ function Cg({ onClickEnvironment: e }) {
7039
7040
  count: m.length,
7040
7041
  description: "Published environments available on this server",
7041
7042
  ...c ? { action: /* @__PURE__ */ n(fs, {}) } : {},
7042
- children: /* @__PURE__ */ n(He, { children: m.map((d) => /* @__PURE__ */ n(
7043
+ children: /* @__PURE__ */ n(Ve, { children: m.map((d) => /* @__PURE__ */ n(
7043
7044
  Ef,
7044
7045
  {
7045
7046
  environment: d,
@@ -7582,7 +7583,7 @@ function Af() {
7582
7583
  minute: d,
7583
7584
  second: d,
7584
7585
  hourCycle: "h23"
7585
- }, H = {
7586
+ }, V = {
7586
7587
  hour: d,
7587
7588
  minute: d,
7588
7589
  second: d,
@@ -7613,7 +7614,7 @@ function Af() {
7613
7614
  day: d,
7614
7615
  hour: d,
7615
7616
  minute: d
7616
- }, V = {
7617
+ }, H = {
7617
7618
  year: d,
7618
7619
  month: h,
7619
7620
  day: d,
@@ -7745,13 +7746,13 @@ function Af() {
7745
7746
  }
7746
7747
  }
7747
7748
  let Z = null;
7748
- class ae extends oe {
7749
+ class se extends oe {
7749
7750
  /**
7750
7751
  * Get a singleton instance of the local zone
7751
7752
  * @return {SystemZone}
7752
7753
  */
7753
7754
  static get instance() {
7754
- return Z === null && (Z = new ae()), Z;
7755
+ return Z === null && (Z = new se()), Z;
7755
7756
  }
7756
7757
  /** @override **/
7757
7758
  get type() {
@@ -7828,22 +7829,22 @@ function Af() {
7828
7829
  }
7829
7830
  return f;
7830
7831
  }
7831
- const se = /* @__PURE__ */ new Map();
7832
+ const ie = /* @__PURE__ */ new Map();
7832
7833
  class B extends oe {
7833
7834
  /**
7834
7835
  * @param {string} name - Zone name
7835
7836
  * @return {IANAZone}
7836
7837
  */
7837
7838
  static create(t) {
7838
- let i = se.get(t);
7839
- return i === void 0 && se.set(t, i = new B(t)), i;
7839
+ let i = ie.get(t);
7840
+ return i === void 0 && ie.set(t, i = new B(t)), i;
7840
7841
  }
7841
7842
  /**
7842
7843
  * Reset local caches. Should only be necessary in testing scenarios.
7843
7844
  * @return {void}
7844
7845
  */
7845
7846
  static resetCache() {
7846
- se.clear(), L.clear();
7847
+ ie.clear(), L.clear();
7847
7848
  }
7848
7849
  /**
7849
7850
  * Returns whether the provided string is a valid specifier. This only checks the string's format, not that the specifier identifies a known zone; see isValidZone for that.
@@ -7980,7 +7981,7 @@ function Af() {
7980
7981
  return f || (f = new Intl.ListFormat(s, t), De[i] = f), f;
7981
7982
  }
7982
7983
  const z = /* @__PURE__ */ new Map();
7983
- function ie(s, t = {}) {
7984
+ function ae(s, t = {}) {
7984
7985
  const i = JSON.stringify([s, t]);
7985
7986
  let f = z.get(i);
7986
7987
  return f === void 0 && (f = new Intl.DateTimeFormat(s, t), z.set(i, f)), f;
@@ -8030,10 +8031,10 @@ function Af() {
8030
8031
  {
8031
8032
  let f, b;
8032
8033
  try {
8033
- f = ie(s).resolvedOptions(), b = s;
8034
+ f = ae(s).resolvedOptions(), b = s;
8034
8035
  } catch {
8035
8036
  const F = s.substring(0, i);
8036
- f = ie(F).resolvedOptions(), b = F;
8037
+ f = ae(F).resolvedOptions(), b = F;
8037
8038
  }
8038
8039
  const {
8039
8040
  numberingSystem: C,
@@ -8111,7 +8112,7 @@ function Af() {
8111
8112
  const C = {
8112
8113
  ...this.opts
8113
8114
  };
8114
- C.timeZone = C.timeZone || b, this.dtf = ie(i, C);
8115
+ C.timeZone = C.timeZone || b, this.dtf = ae(i, C);
8115
8116
  }
8116
8117
  format() {
8117
8118
  return this.originalZone ? this.formatToParts().map(({
@@ -8460,7 +8461,7 @@ function Af() {
8460
8461
  return s;
8461
8462
  if (Lt(s)) {
8462
8463
  const i = s.toLowerCase();
8463
- return i === "default" ? t : i === "local" || i === "system" ? ae.instance : i === "utc" || i === "gmt" ? Ue.utcInstance : Ue.parseSpecifier(i) || B.create(s);
8464
+ return i === "default" ? t : i === "local" || i === "system" ? se.instance : i === "utc" || i === "gmt" ? Ue.utcInstance : Ue.parseSpecifier(i) || B.create(s);
8464
8465
  } else return Le(s) ? Ue.instance(s) : typeof s == "object" && "offset" in s && typeof s.offset == "function" ? s : new wt(s);
8465
8466
  }
8466
8467
  const xt = {
@@ -8506,7 +8507,7 @@ function Af() {
8506
8507
  thai: [3664, 3673],
8507
8508
  tibt: [3872, 3881]
8508
8509
  }, Ke = xt.hanidec.replace(/[\[|\]]/g, "").split("");
8509
- function Vt(s) {
8510
+ function Ht(s) {
8510
8511
  let t = parseInt(s, 10);
8511
8512
  if (isNaN(t)) {
8512
8513
  t = "";
@@ -8537,7 +8538,7 @@ function Af() {
8537
8538
  let b = f.get(t);
8538
8539
  return b === void 0 && (b = new RegExp(`${xt[i]}${t}`), f.set(t, b)), b;
8539
8540
  }
8540
- let ht = () => Date.now(), Ht = "system", Ut = null, Xt = null, jn = null, on = 60, In, Gn = null;
8541
+ let ht = () => Date.now(), Vt = "system", Ut = null, Xt = null, jn = null, on = 60, In, Gn = null;
8541
8542
  class Ne {
8542
8543
  /**
8543
8544
  * Get the callback for returning the current timestamp.
@@ -8562,7 +8563,7 @@ function Af() {
8562
8563
  * @type {string}
8563
8564
  */
8564
8565
  static set defaultZone(t) {
8565
- Ht = t;
8566
+ Vt = t;
8566
8567
  }
8567
8568
  /**
8568
8569
  * Get the default time zone object currently used to create DateTimes. Does not affect existing instances.
@@ -8570,7 +8571,7 @@ function Af() {
8570
8571
  * @type {Zone}
8571
8572
  */
8572
8573
  static get defaultZone() {
8573
- return It(Ht, ae.instance);
8574
+ return It(Vt, se.instance);
8574
8575
  }
8575
8576
  /**
8576
8577
  * Get the default locale to create DateTimes with. Does not affect existing instances.
@@ -8997,11 +8998,11 @@ function Af() {
8997
8998
  return null;
8998
8999
  }
8999
9000
  }
9000
- const Ji = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"], ea = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], Vl = ["M", "T", "W", "T", "F", "S", "S"];
9001
+ const Ji = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"], ea = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], Hl = ["M", "T", "W", "T", "F", "S", "S"];
9001
9002
  function ta(s) {
9002
9003
  switch (s) {
9003
9004
  case "narrow":
9004
- return [...Vl];
9005
+ return [...Hl];
9005
9006
  case "short":
9006
9007
  return [...ea];
9007
9008
  case "long":
@@ -9012,7 +9013,7 @@ function Af() {
9012
9013
  return null;
9013
9014
  }
9014
9015
  }
9015
- const na = ["AM", "PM"], Hl = ["Before Christ", "Anno Domini"], Ul = ["BC", "AD"], Bl = ["B", "A"];
9016
+ const na = ["AM", "PM"], Vl = ["Before Christ", "Anno Domini"], Ul = ["BC", "AD"], Bl = ["B", "A"];
9016
9017
  function ra(s) {
9017
9018
  switch (s) {
9018
9019
  case "narrow":
@@ -9020,7 +9021,7 @@ function Af() {
9020
9021
  case "short":
9021
9022
  return [...Ul];
9022
9023
  case "long":
9023
- return [...Hl];
9024
+ return [...Vl];
9024
9025
  default:
9025
9026
  return null;
9026
9027
  }
@@ -9079,14 +9080,14 @@ function Af() {
9079
9080
  tttt: M,
9080
9081
  T: D,
9081
9082
  TT: P,
9082
- TTT: H,
9083
+ TTT: V,
9083
9084
  TTTT: A,
9084
9085
  f: G,
9085
9086
  ff: R,
9086
9087
  fff: _,
9087
9088
  ffff: X,
9088
9089
  F: $,
9089
- FF: V,
9090
+ FF: H,
9090
9091
  FFF: U,
9091
9092
  FFFF: Q
9092
9093
  };
@@ -9480,7 +9481,7 @@ function Af() {
9480
9481
  PDT: -420,
9481
9482
  PST: -480
9482
9483
  };
9483
- function Vo(s, t, i, f, b, C, E) {
9484
+ function Ho(s, t, i, f, b, C, E) {
9484
9485
  const N = {
9485
9486
  year: t.length === 2 ? qo(Cn(t)) : Cn(t),
9486
9487
  month: Xi.indexOf(i) + 1,
@@ -9492,7 +9493,7 @@ function Af() {
9492
9493
  }
9493
9494
  const dc = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;
9494
9495
  function hc(s) {
9495
- const [, t, i, f, b, C, E, N, F, j, he, xe] = s, _e = Vo(t, b, f, i, C, E, N);
9496
+ const [, t, i, f, b, C, E, N, F, j, he, xe] = s, _e = Ho(t, b, f, i, C, E, N);
9496
9497
  let pe;
9497
9498
  return F ? pe = uc[F] : j ? pe = 0 : pe = ro(he, xe), [_e, new Ue(pe)];
9498
9499
  }
@@ -9502,11 +9503,11 @@ function Af() {
9502
9503
  const mc = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/, pc = /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/, gc = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;
9503
9504
  function ua(s) {
9504
9505
  const [, t, i, f, b, C, E, N] = s;
9505
- return [Vo(t, b, f, i, C, E, N), Ue.utcInstance];
9506
+ return [Ho(t, b, f, i, C, E, N), Ue.utcInstance];
9506
9507
  }
9507
9508
  function yc(s) {
9508
9509
  const [, t, i, f, b, C, E, N] = s;
9509
- return [Vo(t, N, i, f, b, C, E), Ue.utcInstance];
9510
+ return [Ho(t, N, i, f, b, C, E), Ue.utcInstance];
9510
9511
  }
9511
9512
  const bc = Qn(Jl, zo), vc = Qn(ec, zo), wc = Qn(tc, zo), xc = Qn(la), da = Jn(ac, nr, Cr, Tr), kc = Jn(nc, nr, Cr, Tr), Sc = Jn(rc, nr, Cr, Tr), Cc = Jn(nr, Cr, Tr);
9512
9513
  function Tc(s) {
@@ -11005,11 +11006,11 @@ function Af() {
11005
11006
  function Ie(s, t = (i) => i) {
11006
11007
  return {
11007
11008
  regex: s,
11008
- deser: ([i]) => t(Vt(i))
11009
+ deser: ([i]) => t(Ht(i))
11009
11010
  };
11010
11011
  }
11011
11012
  const ba = "[  ]", va = new RegExp(ba, "g");
11012
- function Vc(s) {
11013
+ function Hc(s) {
11013
11014
  return s.replace(/\./g, "\\.?").replace(va, ba);
11014
11015
  }
11015
11016
  function wa(s) {
@@ -11017,7 +11018,7 @@ function Af() {
11017
11018
  }
11018
11019
  function Jt(s, t) {
11019
11020
  return s === null ? null : {
11020
- regex: RegExp(s.map(Vc).join("|")),
11021
+ regex: RegExp(s.map(Hc).join("|")),
11021
11022
  deser: ([i]) => s.findIndex((f) => wa(i) === wa(f)) + t
11022
11023
  };
11023
11024
  }
@@ -11034,12 +11035,12 @@ function Af() {
11034
11035
  deser: ([t]) => t
11035
11036
  };
11036
11037
  }
11037
- function Hc(s) {
11038
+ function Vc(s) {
11038
11039
  return s.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
11039
11040
  }
11040
11041
  function Uc(s, t) {
11041
11042
  const i = Be(t), f = Be(t, "{2}"), b = Be(t, "{3}"), C = Be(t, "{4}"), E = Be(t, "{6}"), N = Be(t, "{1,2}"), F = Be(t, "{1,3}"), j = Be(t, "{1,6}"), he = Be(t, "{1,9}"), xe = Be(t, "{2,4}"), _e = Be(t, "{4,6}"), pe = (sn) => ({
11042
- regex: RegExp(Hc(sn.val)),
11043
+ regex: RegExp(Vc(sn.val)),
11043
11044
  deser: ([ar]) => ar,
11044
11045
  literal: !0
11045
11046
  }), en = ((sn) => {
@@ -11288,9 +11289,9 @@ function Af() {
11288
11289
  return N && (C[N] = s[E]), C;
11289
11290
  }, {}), i, f];
11290
11291
  }
11291
- let Ho = null;
11292
+ let Vo = null;
11292
11293
  function Kc() {
11293
- return Ho || (Ho = ye.fromMillis(1555555555555)), Ho;
11294
+ return Vo || (Vo = ye.fromMillis(1555555555555)), Vo;
11294
11295
  }
11295
11296
  function Xc(s, t) {
11296
11297
  if (s.literal)
@@ -13171,7 +13172,7 @@ function Af() {
13171
13172
  * @type {Object}
13172
13173
  */
13173
13174
  static get TIME_24_WITH_SHORT_OFFSET() {
13174
- return H;
13175
+ return V;
13175
13176
  }
13176
13177
  /**
13177
13178
  * {@link DateTime#toLocaleString} format like '09:30:23 Eastern Daylight Time', always 24-hour.
@@ -13206,7 +13207,7 @@ function Af() {
13206
13207
  * @type {Object}
13207
13208
  */
13208
13209
  static get DATETIME_MED_WITH_SECONDS() {
13209
- return V;
13210
+ return H;
13210
13211
  }
13211
13212
  /**
13212
13213
  * {@link DateTime#toLocaleString} format like 'Fri, 14 Oct 1983, 9:30 AM'. Only 12-hour if the locale is.
@@ -13254,7 +13255,7 @@ function Af() {
13254
13255
  throw new l(`Unknown datetime argument: ${s}, of type ${typeof s}`);
13255
13256
  }
13256
13257
  const ou = "3.7.2";
13257
- return $t.DateTime = ye, $t.Duration = Ee, $t.FixedOffsetZone = Ue, $t.IANAZone = B, $t.Info = Or, $t.Interval = Je, $t.InvalidZone = wt, $t.Settings = Ne, $t.SystemZone = ae, $t.VERSION = ou, $t.Zone = oe, $t;
13258
+ return $t.DateTime = ye, $t.Duration = Ee, $t.FixedOffsetZone = Ue, $t.IANAZone = B, $t.Info = Or, $t.Interval = Je, $t.InvalidZone = wt, $t.Settings = Ne, $t.SystemZone = se, $t.VERSION = ou, $t.Zone = oe, $t;
13258
13259
  }
13259
13260
  var xs;
13260
13261
  function Ui() {
@@ -14528,13 +14529,13 @@ function Si() {
14528
14529
  const x = qt.#e(p, y);
14529
14530
  if (!(x.dayOfMonth === "*" || x.dayOfWeek === "*" || !y))
14530
14531
  throw new Error("Cannot use both dayOfMonth and dayOfWeek together in strict mode!");
14531
- const k = qt.#n(a.Second, x.second, o.CronSecond.constraints, w), T = qt.#n(a.Minute, x.minute, o.CronMinute.constraints, w), O = qt.#n(a.Hour, x.hour, o.CronHour.constraints, w), M = qt.#n(a.Month, x.month, o.CronMonth.constraints, w), D = qt.#n(a.DayOfMonth, x.dayOfMonth, o.CronDayOfMonth.constraints, w), { dayOfWeek: P, nthDayOfWeek: H } = qt.#d(x.dayOfWeek), A = qt.#n(a.DayOfWeek, P, o.CronDayOfWeek.constraints, w), G = new e.CronFieldCollection({
14532
+ const k = qt.#n(a.Second, x.second, o.CronSecond.constraints, w), T = qt.#n(a.Minute, x.minute, o.CronMinute.constraints, w), O = qt.#n(a.Hour, x.hour, o.CronHour.constraints, w), M = qt.#n(a.Month, x.month, o.CronMonth.constraints, w), D = qt.#n(a.DayOfMonth, x.dayOfMonth, o.CronDayOfMonth.constraints, w), { dayOfWeek: P, nthDayOfWeek: V } = qt.#d(x.dayOfWeek), A = qt.#n(a.DayOfWeek, P, o.CronDayOfWeek.constraints, w), G = new e.CronFieldCollection({
14532
14533
  second: new o.CronSecond(k, { rawValue: x.second }),
14533
14534
  minute: new o.CronMinute(T, { rawValue: x.minute }),
14534
14535
  hour: new o.CronHour(O, { rawValue: x.hour }),
14535
14536
  dayOfMonth: new o.CronDayOfMonth(D, { rawValue: x.dayOfMonth }),
14536
14537
  month: new o.CronMonth(M, { rawValue: x.month }),
14537
- dayOfWeek: new o.CronDayOfWeek(A, { rawValue: x.dayOfWeek, nthDayOfWeek: H })
14538
+ dayOfWeek: new o.CronDayOfWeek(A, { rawValue: x.dayOfWeek, nthDayOfWeek: V })
14538
14539
  });
14539
14540
  return new r.CronExpression(G, { ...v, expression: p });
14540
14541
  }
@@ -14603,8 +14604,8 @@ function Si() {
14603
14604
  throw new Error(`Invalid range: ${O}-${M}, min > max`);
14604
14605
  if (D <= 0)
14605
14606
  throw new Error(`Invalid step: ${D}, must be positive`);
14606
- const P = Math.max(O, v.min), H = Math.floor(g * D), A = [];
14607
- for (let G = Math.floor(P / D) * D + H; G <= M; G += D)
14607
+ const P = Math.max(O, v.min), V = Math.floor(g * D), A = [];
14608
+ for (let G = Math.floor(P / D) * D + V; G <= M; G += D)
14608
14609
  G >= P && A.push(G);
14609
14610
  return A.join(",");
14610
14611
  } else if (x && k) {
@@ -14857,7 +14858,7 @@ function zf() {
14857
14858
  return tn.CronFileParser = u, tn;
14858
14859
  }
14859
14860
  var $s;
14860
- function Vf() {
14861
+ function Hf() {
14861
14862
  return $s || ($s = 1, (function(e) {
14862
14863
  var r = qn && qn.__createBinding || (Object.create ? (function(h, p, v, y) {
14863
14864
  y === void 0 && (y = v);
@@ -14894,7 +14895,7 @@ function Vf() {
14894
14895
  } }), c(Bi(), e), e.default = o.CronExpressionParser;
14895
14896
  })(qn)), qn;
14896
14897
  }
14897
- var Hf = Vf(), ai = { exports: {} }, Ns;
14898
+ var Vf = Hf(), ai = { exports: {} }, Ns;
14898
14899
  function Uf() {
14899
14900
  return Ns || (Ns = 1, (function(e, r) {
14900
14901
  (function(o, u) {
@@ -14969,8 +14970,8 @@ function Uf() {
14969
14970
  }, v.prototype.normalize = function(y) {
14970
14971
  var g = this;
14971
14972
  if (y[3] = y[3].replace("?", "*"), y[5] = y[5].replace("?", "*"), y[2] = y[2].replace("?", "*"), y[0].indexOf("0/") == 0 && (y[0] = y[0].replace("0/", "*/")), y[1].indexOf("0/") == 0 && (y[1] = y[1].replace("0/", "*/")), y[2].indexOf("0/") == 0 && (y[2] = y[2].replace("0/", "*/")), y[3].indexOf("1/") == 0 && (y[3] = y[3].replace("1/", "*/")), y[4].indexOf("1/") == 0 && (y[4] = y[4].replace("1/", "*/")), y[6].indexOf("1/") == 0 && (y[6] = y[6].replace("1/", "*/")), y[5] = y[5].replace(/(^\d)|([^#/\s]\d)/g, function(P) {
14972
- var H = P.replace(/\D/, ""), A = H;
14973
- return g.dayOfWeekStartIndexZero ? H == "7" && (A = "0") : A = (parseInt(H) - 1).toString(), P.replace(H, A);
14973
+ var V = P.replace(/\D/, ""), A = V;
14974
+ return g.dayOfWeekStartIndexZero ? V == "7" && (A = "0") : A = (parseInt(V) - 1).toString(), P.replace(V, A);
14974
14975
  }), y[5] == "L" && (y[5] = "6"), y[3] == "?" && (y[3] = "*"), y[3].indexOf("W") > -1 && (y[3].indexOf(",") > -1 || y[3].indexOf("-") > -1))
14975
14976
  throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");
14976
14977
  var w = {
@@ -14985,8 +14986,8 @@ function Uf() {
14985
14986
  for (var x in w)
14986
14987
  y[5] = y[5].replace(new RegExp(x, "gi"), w[x].toString());
14987
14988
  y[4] = y[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g, function(P) {
14988
- var H = P.replace(/\D/, ""), A = H;
14989
- return g.monthStartIndexZero && (A = (parseInt(H) + 1).toString()), P.replace(H, A);
14989
+ var V = P.replace(/\D/, ""), A = V;
14990
+ return g.monthStartIndexZero && (A = (parseInt(V) + 1).toString()), P.replace(V, A);
14990
14991
  });
14991
14992
  var k = {
14992
14993
  JAN: 1,
@@ -15057,7 +15058,7 @@ function Uf() {
15057
15058
  this.i18n = y.locales[this.options.locale], w.use24HourTimeFormat === void 0 && (w.use24HourTimeFormat = this.i18n.use24HourTimeFormatByDefault());
15058
15059
  }
15059
15060
  return y.toString = function(g, w) {
15060
- var x = w === void 0 ? {} : w, k = x.throwExceptionOnParseError, T = k === void 0 ? !0 : k, O = x.verbose, M = O === void 0 ? !1 : O, D = x.dayOfWeekStartIndexZero, P = D === void 0 ? !0 : D, H = x.monthStartIndexZero, A = H === void 0 ? !1 : H, G = x.use24HourTimeFormat, $ = x.locale, R = $ === void 0 ? null : $, V = {
15061
+ var x = w === void 0 ? {} : w, k = x.throwExceptionOnParseError, T = k === void 0 ? !0 : k, O = x.verbose, M = O === void 0 ? !1 : O, D = x.dayOfWeekStartIndexZero, P = D === void 0 ? !0 : D, V = x.monthStartIndexZero, A = V === void 0 ? !1 : V, G = x.use24HourTimeFormat, $ = x.locale, R = $ === void 0 ? null : $, H = {
15061
15062
  throwExceptionOnParseError: T,
15062
15063
  verbose: M,
15063
15064
  dayOfWeekStartIndexZero: P,
@@ -15065,8 +15066,8 @@ function Uf() {
15065
15066
  use24HourTimeFormat: G,
15066
15067
  locale: R
15067
15068
  };
15068
- V.tzOffset && console.warn("'tzOffset' option has been deprecated and is no longer supported.");
15069
- var I = new y(g, V);
15069
+ H.tzOffset && console.warn("'tzOffset' option has been deprecated and is no longer supported.");
15070
+ var I = new y(g, H);
15070
15071
  return I.getFullDescription();
15071
15072
  }, y.initialize = function(g, w) {
15072
15073
  w === void 0 && (w = "en"), y.specialCharacters = ["/", "-", ",", "*"], y.defaultLocale = w, g.load(y.locales);
@@ -15078,11 +15079,11 @@ function Uf() {
15078
15079
  return ((w = (g = this.i18n).atReboot) === null || w === void 0 ? void 0 : w.call(g)) || "Run once, at startup";
15079
15080
  var T = this.getTimeOfDayDescription(), O = this.getDayOfMonthDescription(), M = this.getMonthDescription(), D = this.getDayOfWeekDescription(), P = this.getYearDescription();
15080
15081
  x += T + O + D + M + P, x = this.transformVerbosity(x, !!this.options.verbose), x = x.charAt(0).toLocaleUpperCase() + x.substr(1);
15081
- } catch (H) {
15082
+ } catch (V) {
15082
15083
  if (!this.options.throwExceptionOnParseError)
15083
15084
  x = this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();
15084
15085
  else
15085
- throw "".concat(H);
15086
+ throw "".concat(V);
15086
15087
  }
15087
15088
  return x;
15088
15089
  }, y.prototype.getTimeOfDayDescription = function() {
@@ -15098,10 +15099,10 @@ function Uf() {
15098
15099
  for (var M = 0; M < O.length; M++)
15099
15100
  k += " ", k += this.formatTime(O[M], w, ""), M < O.length - 2 && (k += ","), M == O.length - 2 && (k += this.i18n.spaceAnd());
15100
15101
  } else {
15101
- var D = this.getSecondsDescription(), P = this.getMinutesDescription(), H = this.getHoursDescription();
15102
- if (k += D, k && P && (k += ", "), k += P, P === H)
15102
+ var D = this.getSecondsDescription(), P = this.getMinutesDescription(), V = this.getHoursDescription();
15103
+ if (k += D, k && P && (k += ", "), k += P, P === V)
15103
15104
  return k;
15104
- k && H && (k += ", "), k += H;
15105
+ k && V && (k += ", "), k += V;
15105
15106
  }
15106
15107
  return k;
15107
15108
  }, y.prototype.getSecondsDescription = function() {
@@ -15137,8 +15138,8 @@ function Uf() {
15137
15138
  D.length === 2 && k.push({ value: D[1], index: x + 1 }), x += D.length;
15138
15139
  });
15139
15140
  var T = 0, O = this.getSegmentDescription(w, this.i18n.everyHour(), function(M) {
15140
- var D = k.find(function(H) {
15141
- return H.value === M && H.index === T;
15141
+ var D = k.find(function(V) {
15142
+ return V.value === M && V.index === T;
15142
15143
  }), P = D && g.expressionParts[1] !== "0";
15143
15144
  return T++, P ? g.formatTime(M, "59", "") : g.formatTime(M, "0", "");
15144
15145
  }, function(M) {
@@ -15156,8 +15157,8 @@ function Uf() {
15156
15157
  k.indexOf("#") > -1 ? O = k.substring(0, k.indexOf("#")) : k.indexOf("L") > -1 && (O = O.replace("L", ""));
15157
15158
  var M = parseInt(O), D = g.i18n.daysOfTheWeekInCase ? g.i18n.daysOfTheWeekInCase(T)[M] : w[M];
15158
15159
  if (k.indexOf("#") > -1) {
15159
- var P = null, H = k.substring(k.indexOf("#") + 1), A = k.substring(0, k.indexOf("#"));
15160
- switch (H) {
15160
+ var P = null, V = k.substring(k.indexOf("#") + 1), A = k.substring(0, k.indexOf("#"));
15161
+ switch (V) {
15161
15162
  case "1":
15162
15163
  P = g.i18n.first(A);
15163
15164
  break;
@@ -15257,18 +15258,18 @@ function Uf() {
15257
15258
  });
15258
15259
  return w;
15259
15260
  }, y.prototype.getSegmentDescription = function(g, w, x, k, T, O) {
15260
- var M = null, D = g.indexOf("/") > -1, P = g.indexOf("-") > -1, H = g.indexOf(",") > -1;
15261
+ var M = null, D = g.indexOf("/") > -1, P = g.indexOf("-") > -1, V = g.indexOf(",") > -1;
15261
15262
  if (!g)
15262
15263
  M = "";
15263
15264
  else if (g === "*")
15264
15265
  M = w;
15265
- else if (!D && !P && !H)
15266
+ else if (!D && !P && !V)
15266
15267
  M = h.StringUtilities.format(O(g), x(g));
15267
- else if (H) {
15268
+ else if (V) {
15268
15269
  for (var A = g.split(","), G = "", $ = 0; $ < A.length; $++)
15269
15270
  if ($ > 0 && A.length > 2 && (G += ",", $ < A.length - 1 && (G += " ")), $ > 0 && A.length > 1 && ($ == A.length - 1 || A.length == 2) && (G += "".concat(this.i18n.spaceAnd(), " ")), A[$].indexOf("/") > -1 || A[$].indexOf("-") > -1) {
15270
- var R = A[$].indexOf("-") > -1 && A[$].indexOf("/") == -1, V = this.getSegmentDescription(A[$], w, x, k, R ? this.i18n.commaX0ThroughX1 : T, O);
15271
- R && (V = V.replace(", ", "")), G += V;
15271
+ var R = A[$].indexOf("-") > -1 && A[$].indexOf("/") == -1, H = this.getSegmentDescription(A[$], w, x, k, R ? this.i18n.commaX0ThroughX1 : T, O);
15272
+ R && (H = H.replace(", ", "")), G += H;
15272
15273
  } else D ? G += this.getSegmentDescription(A[$], w, x, k, T, O) : G += x(A[$]);
15273
15274
  D ? M = G : M = h.StringUtilities.format(O(g), G);
15274
15275
  } else if (D) {
@@ -15290,8 +15291,8 @@ function Uf() {
15290
15291
  M >= 60 ? (M -= 60, O += 1) : M < 0 && (M += 60, O -= 1), O >= 24 ? O = O - 24 : O < 0 && (O = 24 + O);
15291
15292
  var D = "", P = !1;
15292
15293
  this.options.use24HourTimeFormat || (P = !!(this.i18n.setPeriodBeforeTime && this.i18n.setPeriodBeforeTime()), D = P ? "".concat(this.getPeriod(O), " ") : " ".concat(this.getPeriod(O)), O > 12 && (O -= 12), O === 0 && (O = 12));
15293
- var H = "";
15294
- return x && (H = ":".concat(("00" + x).substring(x.length))), "".concat(P ? D : "").concat(("00" + O.toString()).substring(O.toString().length), ":").concat(("00" + M.toString()).substring(M.toString().length)).concat(H).concat(P ? "" : D);
15294
+ var V = "";
15295
+ return x && (V = ":".concat(("00" + x).substring(x.length))), "".concat(P ? D : "").concat(("00" + O.toString()).substring(O.toString().length), ":").concat(("00" + M.toString()).substring(M.toString().length)).concat(V).concat(P ? "" : D);
15295
15296
  }, y.prototype.transformVerbosity = function(g, w) {
15296
15297
  if (!w && (g = g.replace(new RegExp(", ".concat(this.i18n.everyMinute()), "g"), ""), g = g.replace(new RegExp(", ".concat(this.i18n.everyHour()), "g"), ""), g = g.replace(new RegExp(this.i18n.commaEveryDay(), "g"), ""), g = g.replace(/\, ?$/, ""), this.i18n.conciseVerbosityReplacements))
15297
15298
  for (var x = 0, k = Object.entries(this.i18n.conciseVerbosityReplacements()); x < k.length; x++) {
@@ -15612,7 +15613,7 @@ function ji(e) {
15612
15613
  const c = jf.toString(r, {
15613
15614
  use24HourTimeFormat: !0,
15614
15615
  verbose: !1
15615
- }), o = Hf.CronExpressionParser.parse(r, { tz: "UTC" }).next().toDate();
15616
+ }), o = Vf.CronExpressionParser.parse(r, { tz: "UTC" }).next().toDate();
15616
15617
  return { valid: !0, description: c, nextRun: o };
15617
15618
  } catch (c) {
15618
15619
  return {
@@ -15804,7 +15805,7 @@ function em({ entries: e, builtAt: r }) {
15804
15805
  const c = Object.entries(e ?? {});
15805
15806
  return /* @__PURE__ */ S(ee, { children: [
15806
15807
  /* @__PURE__ */ S(
15807
- He,
15808
+ Ve,
15808
15809
  {
15809
15810
  direction: "row",
15810
15811
  alignItems: "baseline",
@@ -15878,7 +15879,7 @@ function tm({
15878
15879
  id: "materialization-detail-title",
15879
15880
  children: [
15880
15881
  /* @__PURE__ */ S(
15881
- He,
15882
+ Ve,
15882
15883
  {
15883
15884
  direction: "row",
15884
15885
  alignItems: "center",
@@ -15938,7 +15939,7 @@ function tm({
15938
15939
  },
15939
15940
  children: [
15940
15941
  /* @__PURE__ */ n(
15941
- Vr,
15942
+ Hr,
15942
15943
  {
15943
15944
  label: "Started",
15944
15945
  value: Ti(
@@ -15947,14 +15948,14 @@ function tm({
15947
15948
  }
15948
15949
  ),
15949
15950
  /* @__PURE__ */ n(
15950
- Vr,
15951
+ Hr,
15951
15952
  {
15952
15953
  label: "Completed",
15953
15954
  value: Ti(e.completedAt)
15954
15955
  }
15955
15956
  ),
15956
15957
  /* @__PURE__ */ n(
15957
- Vr,
15958
+ Hr,
15958
15959
  {
15959
15960
  label: "Duration",
15960
15961
  value: Ml(
@@ -15964,14 +15965,14 @@ function tm({
15964
15965
  }
15965
15966
  ),
15966
15967
  /* @__PURE__ */ n(
15967
- Vr,
15968
+ Hr,
15968
15969
  {
15969
15970
  label: "Sources",
15970
15971
  value: Ol(o, " · ")
15971
15972
  }
15972
15973
  ),
15973
15974
  /* @__PURE__ */ n(
15974
- Vr,
15975
+ Hr,
15975
15976
  {
15976
15977
  label: "Force refresh",
15977
15978
  value: o.forceRefresh ? "Yes" : "No"
@@ -16111,7 +16112,7 @@ function tm({
16111
16112
  }
16112
16113
  );
16113
16114
  }
16114
- function Vr({ label: e, value: r }) {
16115
+ function Hr({ label: e, value: r }) {
16115
16116
  return /* @__PURE__ */ S(ee, { children: [
16116
16117
  /* @__PURE__ */ n(te, { variant: "caption", color: "text.secondary", display: "block", children: e }),
16117
16118
  /* @__PURE__ */ n(te, { variant: "body2", children: r })
@@ -16208,24 +16209,24 @@ const om = (e) => {
16208
16209
  required: M = !1,
16209
16210
  tabIndex: D,
16210
16211
  type: P,
16211
- value: H,
16212
+ value: V,
16212
16213
  slots: A = {},
16213
16214
  slotProps: G = {},
16214
16215
  ...$
16215
- } = r, [R, V] = po({
16216
+ } = r, [R, H] = po({
16216
16217
  controlled: u,
16217
16218
  default: !!l,
16218
16219
  name: "SwitchBase",
16219
16220
  state: "checked"
16220
- }), I = Ks(), _ = (se) => {
16221
- T && T(se), I && I.onFocus && I.onFocus(se);
16222
- }, U = (se) => {
16223
- x && x(se), I && I.onBlur && I.onBlur(se);
16224
- }, X = (se) => {
16225
- if (se.nativeEvent.defaultPrevented)
16221
+ }), I = Ks(), _ = (ie) => {
16222
+ T && T(ie), I && I.onFocus && I.onFocus(ie);
16223
+ }, U = (ie) => {
16224
+ x && x(ie), I && I.onBlur && I.onBlur(ie);
16225
+ }, X = (ie) => {
16226
+ if (ie.nativeEvent.defaultPrevented)
16226
16227
  return;
16227
- const B = se.target.checked;
16228
- V(B), k && k(se, B);
16228
+ const B = ie.target.checked;
16229
+ H(B), k && k(ie, B);
16229
16230
  };
16230
16231
  let Q = m;
16231
16232
  I && typeof Q > "u" && (Q = I.disabled);
@@ -16235,7 +16236,7 @@ const om = (e) => {
16235
16236
  disabled: Q,
16236
16237
  disableFocusRipple: d,
16237
16238
  edge: h
16238
- }, ae = om(Z), L = {
16239
+ }, se = om(Z), L = {
16239
16240
  slots: A,
16240
16241
  slotProps: {
16241
16242
  input: y,
@@ -16244,20 +16245,20 @@ const om = (e) => {
16244
16245
  }, [J, re] = Nt("root", {
16245
16246
  ref: c,
16246
16247
  elementType: im,
16247
- className: ae.root,
16248
+ className: se.root,
16248
16249
  shouldForwardComponentProp: !0,
16249
16250
  externalForwardedProps: {
16250
16251
  ...L,
16251
16252
  component: "span",
16252
16253
  ...$
16253
16254
  },
16254
- getSlotProps: (se) => ({
16255
- ...se,
16255
+ getSlotProps: (ie) => ({
16256
+ ...ie,
16256
16257
  onFocus: (B) => {
16257
- se.onFocus?.(B), _(B);
16258
+ ie.onFocus?.(B), _(B);
16258
16259
  },
16259
16260
  onBlur: (B) => {
16260
- se.onBlur?.(B), U(B);
16261
+ ie.onBlur?.(B), U(B);
16261
16262
  }
16262
16263
  }),
16263
16264
  ownerState: Z,
@@ -16271,12 +16272,12 @@ const om = (e) => {
16271
16272
  }), [ce, Pe] = Nt("input", {
16272
16273
  ref: g,
16273
16274
  elementType: am,
16274
- className: ae.input,
16275
+ className: se.input,
16275
16276
  externalForwardedProps: L,
16276
- getSlotProps: (se) => ({
16277
- ...se,
16277
+ getSlotProps: (ie) => ({
16278
+ ...ie,
16278
16279
  onChange: (B) => {
16279
- se.onChange?.(B), X(B);
16280
+ ie.onChange?.(B), X(B);
16280
16281
  }
16281
16282
  }),
16282
16283
  ownerState: Z,
@@ -16291,8 +16292,8 @@ const om = (e) => {
16291
16292
  required: M,
16292
16293
  tabIndex: D,
16293
16294
  type: P,
16294
- ...P === "checkbox" && H === void 0 ? {} : {
16295
- value: H
16295
+ ...P === "checkbox" && V === void 0 ? {} : {
16296
+ value: V
16296
16297
  }
16297
16298
  }
16298
16299
  });
@@ -16409,7 +16410,7 @@ const si = Zt("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c
16409
16410
  color: a,
16410
16411
  indeterminate: m,
16411
16412
  size: p
16412
- }, M = hm(O), D = w.input ?? h, [P, H] = Nt("root", {
16413
+ }, M = hm(O), D = w.input ?? h, [P, V] = Nt("root", {
16413
16414
  ref: c,
16414
16415
  elementType: fm,
16415
16416
  className: Gt(M.root, y),
@@ -16438,7 +16439,7 @@ const si = Zt("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c
16438
16439
  }
16439
16440
  });
16440
16441
  return /* @__PURE__ */ n(P, {
16441
- ...H,
16442
+ ...V,
16442
16443
  classes: M
16443
16444
  });
16444
16445
  });
@@ -16550,9 +16551,9 @@ const jr = Zt("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlace
16550
16551
  slotProps: T = {},
16551
16552
  value: O,
16552
16553
  ...M
16553
- } = o, D = Ks(), P = d ?? m.props.disabled ?? D?.disabled, H = x ?? m.props.required, A = {
16554
+ } = o, D = Ks(), P = d ?? m.props.disabled ?? D?.disabled, V = x ?? m.props.required, A = {
16554
16555
  disabled: P,
16555
- required: H
16556
+ required: V
16556
16557
  };
16557
16558
  ["checked", "name", "onChange", "value", "inputRef"].forEach((X) => {
16558
16559
  typeof m.props[X] > "u" && typeof o[X] < "u" && (A[X] = o[X]);
@@ -16565,21 +16566,21 @@ const jr = Zt("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlace
16565
16566
  ...o,
16566
16567
  disabled: P,
16567
16568
  labelPlacement: y,
16568
- required: H,
16569
+ required: V,
16569
16570
  error: G.error
16570
- }, R = vm($), V = {
16571
+ }, R = vm($), H = {
16571
16572
  slots: k,
16572
16573
  slotProps: {
16573
16574
  ...l,
16574
16575
  ...T
16575
16576
  }
16576
16577
  }, [I, _] = Nt("typography", {
16577
- elementType: Ve,
16578
- externalForwardedProps: V,
16578
+ elementType: He,
16579
+ externalForwardedProps: H,
16579
16580
  ownerState: $
16580
16581
  });
16581
16582
  let U = v;
16582
- return U != null && U.type !== Ve && !h && (U = /* @__PURE__ */ n(I, {
16583
+ return U != null && U.type !== He && !h && (U = /* @__PURE__ */ n(I, {
16583
16584
  component: "span",
16584
16585
  ..._,
16585
16586
  className: Gt(R.label, _?.className),
@@ -16589,7 +16590,7 @@ const jr = Zt("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlace
16589
16590
  ownerState: $,
16590
16591
  ref: c,
16591
16592
  ...M,
16592
- children: [/* @__PURE__ */ me.cloneElement(m, A), H ? /* @__PURE__ */ S("div", {
16593
+ children: [/* @__PURE__ */ me.cloneElement(m, A), V ? /* @__PURE__ */ S("div", {
16593
16594
  children: [U, /* @__PURE__ */ S(xm, {
16594
16595
  ownerState: $,
16595
16596
  "aria-hidden": !0,
@@ -16618,8 +16619,8 @@ function Sm({
16618
16619
  },
16619
16620
  sx: { color: "error.main" },
16620
16621
  children: [
16621
- /* @__PURE__ */ n(Vi, { sx: { color: "inherit" }, children: /* @__PURE__ */ n(Po, { fontSize: "small" }) }),
16622
- /* @__PURE__ */ n(Hi, { children: "Delete" })
16622
+ /* @__PURE__ */ n(Hi, { sx: { color: "inherit" }, children: /* @__PURE__ */ n(Po, { fontSize: "small" }) }),
16623
+ /* @__PURE__ */ n(Vi, { children: "Delete" })
16623
16624
  ]
16624
16625
  }
16625
16626
  ),
@@ -16644,7 +16645,7 @@ function Sm({
16644
16645
  )
16645
16646
  ] }),
16646
16647
  children: [
16647
- /* @__PURE__ */ n(Ve, { variant: "body2", children: "Delete this run's record? This cannot be undone." }),
16648
+ /* @__PURE__ */ n(He, { variant: "body2", children: "Delete this run's record? This cannot be undone." }),
16648
16649
  /* @__PURE__ */ n(
16649
16650
  km,
16650
16651
  {
@@ -16941,7 +16942,7 @@ function Im({
16941
16942
  ] }),
16942
16943
  children: [
16943
16944
  /* @__PURE__ */ n(
16944
- Hn,
16945
+ Vn,
16945
16946
  {
16946
16947
  autoFocus: !0,
16947
16948
  fullWidth: !0,
@@ -17083,8 +17084,8 @@ function Nm({
17083
17084
  onError(_) {
17084
17085
  m(_.message);
17085
17086
  }
17086
- }), M = p.data?.data ?? [], D = M.find((_) => _.id === d) ?? null, P = M.some((_) => xo(_.status)), H = g.isPending || w.isPending || x.isPending, A = k?.materialization?.schedule ?? null, G = k?.scope === fo.Version ? "version" : "package", $ = !!k?.manifestLocation, R = !!k?.materialization?.freshness, V = A ? ji(A) : null, I = $ ? "Control-plane managed: refresh is driven by the control plane, not the built-in scheduler." : [
17087
- V ? V.valid ? `${V.description} (${A}), next run ${Cl(V.nextRun)}` : `Unrecognized cron expression (${A})` : R ? "Refreshed by a freshness policy; a cron schedule does not apply" : "On demand only, no schedule set",
17087
+ }), M = p.data?.data ?? [], D = M.find((_) => _.id === d) ?? null, P = M.some((_) => xo(_.status)), V = g.isPending || w.isPending || x.isPending, A = k?.materialization?.schedule ?? null, G = k?.scope === fo.Version ? "version" : "package", $ = !!k?.manifestLocation, R = !!k?.materialization?.freshness, H = A ? ji(A) : null, I = $ ? "Control-plane managed: refresh is driven by the control plane, not the built-in scheduler." : [
17088
+ H ? H.valid ? `${H.description} (${A}), next run ${Cl(H.nextRun)}` : `Unrecognized cron expression (${A})` : R ? "Refreshed by a freshness policy; a cron schedule does not apply" : "On demand only, no schedule set",
17088
17089
  `scope: ${G}`
17089
17090
  ].join(" · ");
17090
17091
  return /* @__PURE__ */ S(be, { children: [
@@ -17093,7 +17094,7 @@ function Nm({
17093
17094
  {
17094
17095
  title: "Materializations",
17095
17096
  count: p.isSuccess ? M.length : void 0,
17096
- action: c && /* @__PURE__ */ S(He, { direction: "row", spacing: 1, alignItems: "center", children: [
17097
+ action: c && /* @__PURE__ */ S(Ve, { direction: "row", spacing: 1, alignItems: "center", children: [
17097
17098
  !$ && /* @__PURE__ */ n(
17098
17099
  Dm,
17099
17100
  {
@@ -17149,7 +17150,7 @@ function Nm({
17149
17150
  {
17150
17151
  materializations: M,
17151
17152
  mutable: c,
17152
- isMutating: H,
17153
+ isMutating: V,
17153
17154
  onStop: (_) => w.mutate(_),
17154
17155
  onDelete: (_, U) => x.mutate({
17155
17156
  materialization: _,
@@ -18024,10 +18025,10 @@ function zm(e, r) {
18024
18025
  const u = { missing: c };
18025
18026
  return o.length > 0 && (u.defaultsNote = o.length === 1 ? `Ran with the default ${o[0]}` : `Ran with defaults ${o.join(", ")}`), u;
18026
18027
  }
18027
- function Vm(e) {
18028
+ function Hm(e) {
18028
18029
  return e.length === 1 ? `This source may need a value for the given ${e[0]}. Set it in the parameters above.` : `This source may need values for the givens ${e.join(", ")}. Set them in the parameters above.`;
18029
18030
  }
18030
- function Hm({
18031
+ function Vm({
18031
18032
  sourceAndPaths: e,
18032
18033
  selectedSourceIndex: r,
18033
18034
  existingQuery: c,
@@ -18093,7 +18094,7 @@ function Um({
18093
18094
  environmentName: M,
18094
18095
  packageName: D,
18095
18096
  versionId: P
18096
- } = Ae(a), { apiClients: H } = We(), A = Se.useRef(void 0), G = dn({
18097
+ } = Ae(a), { apiClients: V } = We(), A = Se.useRef(void 0), G = dn({
18097
18098
  mutationFn: () => {
18098
18099
  A.current = m, v({
18099
18100
  executionState: "running",
@@ -18111,7 +18112,7 @@ function Um({
18111
18112
  return h({
18112
18113
  ...d,
18113
18114
  query: I
18114
- }), H.models.executeQueryModel(
18115
+ }), V.models.executeQueryModel(
18115
18116
  M,
18116
18117
  D,
18117
18118
  e.modelPath,
@@ -18157,7 +18158,7 @@ function Um({
18157
18158
  const _ = I?.data?.message ?? I?.message ?? "The query could not be run.", U = [{ severity: "ERROR", title: _ }], X = A.current?.missing ?? [];
18158
18159
  (I?.status === 403 || /Access denied for source/i.test(_)) && X.length > 0 && U.push({
18159
18160
  severity: "WARN",
18160
- title: Vm(X)
18161
+ title: Hm(X)
18161
18162
  }), v(
18162
18163
  (oe) => oe ? { ...oe, executionState: "finished", response: { messages: U } } : void 0
18163
18164
  );
@@ -18168,7 +18169,7 @@ function Um({
18168
18169
  Se.useEffect(() => {
18169
18170
  $ !== e.sourceInfo.name && (R(e.sourceInfo.name), h(ui()), v(void 0));
18170
18171
  }, [e, $]);
18171
- const V = Se.useCallback(
18172
+ const H = Se.useCallback(
18172
18173
  (I) => {
18173
18174
  h({ ...d, malloyQuery: I, malloyResult: void 0 });
18174
18175
  },
@@ -18190,7 +18191,7 @@ function Um({
18190
18191
  topValues: [],
18191
18192
  onFocusedNestViewPathChange: g,
18192
18193
  focusedNestViewPath: y,
18193
- onQueryChange: V,
18194
+ onQueryChange: H,
18194
18195
  children: /* @__PURE__ */ S(
18195
18196
  "div",
18196
18197
  {
@@ -18344,7 +18345,7 @@ function Pl({
18344
18345
  modelPath: T,
18345
18346
  versionId: O,
18346
18347
  documentName: T
18347
- }), H = qe(
18348
+ }), V = qe(
18348
18349
  () => Oo(P.applied, P.declaredTypes),
18349
18350
  [P.applied, P.declaredTypes]
18350
18351
  ), A = qe(
@@ -18364,17 +18365,17 @@ function Pl({
18364
18365
  if (!M)
18365
18366
  return /* @__PURE__ */ n(Pt, { text: Io.loading });
18366
18367
  const G = (M?.sourceInfos || []).map(
18367
- (R, V) => {
18368
+ (R, H) => {
18368
18369
  try {
18369
- return JSON.parse(R)?.name || `Source ${V + 1}`;
18370
+ return JSON.parse(R)?.name || `Source ${H + 1}`;
18370
18371
  } catch {
18371
- return `Source ${V + 1}`;
18372
+ return `Source ${H + 1}`;
18372
18373
  }
18373
18374
  }
18374
18375
  ), $ = G[h] || "";
18375
18376
  return /* @__PURE__ */ S(Rd, { variant: "outlined", children: [
18376
18377
  /* @__PURE__ */ n(Ld, { children: /* @__PURE__ */ n(
18377
- He,
18378
+ Ve,
18378
18379
  {
18379
18380
  sx: {
18380
18381
  flexDirection: "row"
@@ -18387,9 +18388,9 @@ function Pl({
18387
18388
  disablePortal: !0,
18388
18389
  options: G,
18389
18390
  value: $,
18390
- onChange: (R, V) => {
18391
- if (!V) return;
18392
- const I = G.indexOf(V);
18391
+ onChange: (R, H) => {
18392
+ if (!H) return;
18393
+ const I = G.indexOf(H);
18393
18394
  I >= 0 && (p(I), u?.(I));
18394
18395
  },
18395
18396
  renderInput: (R) => /* @__PURE__ */ n(Ce, { ...R }),
@@ -18404,9 +18405,9 @@ function Pl({
18404
18405
  }
18405
18406
  ) }),
18406
18407
  /* @__PURE__ */ n(Ai, { ...P.panel }),
18407
- /* @__PURE__ */ n(al, { children: /* @__PURE__ */ S(He, { spacing: 2, component: "section", children: [
18408
+ /* @__PURE__ */ n(al, { children: /* @__PURE__ */ S(Ve, { spacing: 2, component: "section", children: [
18408
18409
  Array.isArray(M.sourceInfos) && M.sourceInfos.length > 0 && /* @__PURE__ */ n(
18409
- Hm,
18410
+ Vm,
18410
18411
  {
18411
18412
  sourceAndPaths: M.sourceInfos.map(
18412
18413
  (R) => ({
@@ -18418,7 +18419,7 @@ function Pl({
18418
18419
  existingQuery: c,
18419
18420
  onQueryChange: r,
18420
18421
  resourceUri: a,
18421
- givens: H,
18422
+ givens: V,
18422
18423
  gate: A
18423
18424
  }
18424
18425
  ),
@@ -18482,7 +18483,7 @@ function $g({
18482
18483
  }) {
18483
18484
  const { modelPath: l } = Ae(r), { data: m, isError: d, isLoading: h, error: p } = Nl(r), [v, y] = Se.useState(!1), [g, w] = Se.useState(), [x, k] = Se.useState(0), [T, O] = K(""), [M, D] = Se.useState(
18484
18485
  {}
18485
- ), P = u ?? M, H = a ?? ((I) => D(I)), A = m?.modelDef, G = Se.useMemo(() => {
18486
+ ), P = u ?? M, V = a ?? ((I) => D(I)), A = m?.modelDef, G = Se.useMemo(() => {
18486
18487
  if (!A) return !1;
18487
18488
  try {
18488
18489
  const I = JSON.parse(A);
@@ -18499,7 +18500,7 @@ function $g({
18499
18500
  w(I), e && e(I);
18500
18501
  }, R = (I) => {
18501
18502
  k(I);
18502
- }, V = () => {
18503
+ }, H = () => {
18503
18504
  const I = window.location.href;
18504
18505
  navigator.clipboard.writeText(I).then(() => O("URL copied to clipboard!")).catch(() => O("Failed to copy URL"));
18505
18506
  };
@@ -18514,7 +18515,7 @@ function $g({
18514
18515
  paddingTop: "24px"
18515
18516
  },
18516
18517
  children: [
18517
- Array.isArray(m?.sourceInfos) && m.sourceInfos.length > 0 && /* @__PURE__ */ S(He, { spacing: 2, component: "section", children: [
18518
+ Array.isArray(m?.sourceInfos) && m.sourceInfos.length > 0 && /* @__PURE__ */ S(Ve, { spacing: 2, component: "section", children: [
18518
18519
  /* @__PURE__ */ S(
18519
18520
  ee,
18520
18521
  {
@@ -18545,7 +18546,7 @@ function $g({
18545
18546
  {
18546
18547
  size: "small",
18547
18548
  "aria-label": "Copy link",
18548
- onClick: V,
18549
+ onClick: H,
18549
18550
  sx: { color: "text.secondary" },
18550
18551
  children: /* @__PURE__ */ n(El, { fontSize: "small" })
18551
18552
  }
@@ -18563,7 +18564,7 @@ function $g({
18563
18564
  initialSelectedSourceIndex: x,
18564
18565
  resourceUri: r,
18565
18566
  givens: P,
18566
- onGivensChange: H
18567
+ onGivensChange: V
18567
18568
  }
18568
18569
  ),
18569
18570
  /* @__PURE__ */ n(
@@ -18582,7 +18583,7 @@ function $g({
18582
18583
  )
18583
18584
  ] }),
18584
18585
  m?.queries?.length > 0 && /* @__PURE__ */ S(
18585
- He,
18586
+ Ve,
18586
18587
  {
18587
18588
  spacing: 2,
18588
18589
  component: "section",
@@ -18649,7 +18650,7 @@ function $g({
18649
18650
  onChange: $,
18650
18651
  onSourceChange: R,
18651
18652
  givens: P,
18652
- onGivensChange: H
18653
+ onGivensChange: V
18653
18654
  }
18654
18655
  )
18655
18656
  ]
@@ -18670,7 +18671,7 @@ function jm({
18670
18671
  warnings: e
18671
18672
  }) {
18672
18673
  const [r, c] = K(!1), o = (e ?? []).filter((a) => a.severity === "error"), u = (e ?? []).filter((a) => a.severity !== "error");
18673
- return o.length === 0 && u.length === 0 ? null : /* @__PURE__ */ S(He, { sx: { gap: 1, mb: 4 }, children: [
18674
+ return o.length === 0 && u.length === 0 ? null : /* @__PURE__ */ S(Ve, { sx: { gap: 1, mb: 4 }, children: [
18674
18675
  o.length > 0 && /* @__PURE__ */ S(Ct, { severity: "warning", children: [
18675
18676
  /* @__PURE__ */ n(yu, { children: o.length === 1 ? "1 problem in this package" : `${o.length} problems in this package` }),
18676
18677
  /* @__PURE__ */ n(Fs, { findings: o })
@@ -18697,7 +18698,7 @@ function jm({
18697
18698
  ] });
18698
18699
  }
18699
18700
  function Fs({ findings: e }) {
18700
- return /* @__PURE__ */ n(He, { component: "ul", sx: { m: 0, p: 0, listStyle: "none", gap: 0.75 }, children: e.map((r, c) => /* @__PURE__ */ S(
18701
+ return /* @__PURE__ */ n(Ve, { component: "ul", sx: { m: 0, p: 0, listStyle: "none", gap: 0.75 }, children: e.map((r, c) => /* @__PURE__ */ S(
18701
18702
  te,
18702
18703
  {
18703
18704
  component: "li",
@@ -18752,7 +18753,7 @@ function Gm({
18752
18753
  p
18753
18754
  ),
18754
18755
  enabled: T && r !== ""
18755
- }), H = O?.layout, A = Qs({ path: r, layout: H }, d), G = `${e}|${r}`, $ = Ot(void 0), R = Ot({ key: G, at: Gr() });
18756
+ }), V = O?.layout, A = Qs({ path: r, layout: V }, d), G = `${e}|${r}`, $ = Ot(void 0), R = Ot({ key: G, at: Gr() });
18756
18757
  R.current.key !== G && (R.current = { key: G, at: Gr() }), ot(() => {
18757
18758
  $.current !== G && (T ? D ? ($.current = G, A.emit({
18758
18759
  type: "report.load_failed",
@@ -18774,13 +18775,13 @@ function Gm({
18774
18775
  category: "invalid"
18775
18776
  })));
18776
18777
  }, [G, T, D, P, M, O, A]);
18777
- const V = ct(
18778
+ const H = ct(
18778
18779
  (U, X) => {
18779
18780
  const Q = u?.(U, X);
18780
18781
  Q && A.emit({ type: "report.drill", to: "report", outcome: Q });
18781
18782
  },
18782
18783
  [u, A]
18783
- ), I = u ? V : void 0;
18784
+ ), I = u ? H : void 0;
18784
18785
  if (!T)
18785
18786
  return /* @__PURE__ */ S(Ct, { severity: "error", children: [
18786
18787
  "A report resource URI must name an environment and a package. Received: ",
@@ -18840,32 +18841,32 @@ function Ym({
18840
18841
  onCreated: x,
18841
18842
  onEvent: k
18842
18843
  }) {
18843
- const T = r ?? (c ? _i(c) : "linear"), O = o ?? u ?? !0, [M, D] = K(T), [P, H] = K(void 0), [A, G] = K(""), [$, R] = K(""), [V, I] = K(""), _ = Ot(null), [U, X] = K(""), [Q, oe] = K(!1), [Z, ae] = K(!1), [L, J] = K(!1), [re, ce] = K(void 0), Pe = p != null, { choices: se, isLoading: B, isSuccess: De, failed: tt, retry: z, canRetry: ie } = md({
18844
+ const T = r ?? (c ? _i(c) : "linear"), O = o ?? u ?? !0, [M, D] = K(T), [P, V] = K(void 0), [A, G] = K(""), [$, R] = K(""), [H, I] = K(""), _ = Ot(null), [U, X] = K(""), [Q, oe] = K(!1), [Z, se] = K(!1), [L, J] = K(!1), [re, ce] = K(void 0), Pe = p != null, { choices: ie, isLoading: B, isSuccess: De, failed: tt, retry: z, canRetry: ae } = md({
18844
18845
  environmentName: a,
18845
18846
  packageName: l,
18846
18847
  ...m !== void 0 ? { versionId: m } : {},
18847
18848
  models: d,
18848
18849
  enabled: e && d.length > 0
18849
18850
  }), ge = qe(
18850
- () => se.get(A) ?? [],
18851
- [se, A]
18851
+ () => ie.get(A) ?? [],
18852
+ [ie, A]
18852
18853
  ), Re = qe(
18853
18854
  () => new Map(
18854
- [...se.entries()].flatMap(
18855
+ [...ie.entries()].flatMap(
18855
18856
  ([ue, Ke]) => Ke.map(
18856
- (Vt) => [
18857
- di(ue, Vt.source, Vt.view),
18858
- { model: ue, source: Vt.source, view: Vt.view }
18857
+ (Ht) => [
18858
+ di(ue, Ht.source, Ht.view),
18859
+ { model: ue, source: Ht.source, view: Ht.view }
18859
18860
  ]
18860
18861
  )
18861
18862
  )
18862
18863
  ),
18863
- [se]
18864
+ [ie]
18864
18865
  ), ve = qe(() => {
18865
- const ue = se.size > 1;
18866
- return [...se.entries()].flatMap(([Ke, Vt]) => {
18866
+ const ue = ie.size > 1;
18867
+ return [...ie.entries()].flatMap(([Ke, Ht]) => {
18867
18868
  const Rt = /* @__PURE__ */ new Map();
18868
- for (const dt of Vt)
18869
+ for (const dt of Ht)
18869
18870
  Rt.set(dt.source, [
18870
18871
  ...Rt.get(dt.source) ?? [],
18871
18872
  dt
@@ -18888,7 +18889,7 @@ function Ym({
18888
18889
  }))
18889
18890
  }));
18890
18891
  });
18891
- }, [se]), Fe = (ue) => {
18892
+ }, [ie]), Fe = (ue) => {
18892
18893
  const Ke = Re.get(ue);
18893
18894
  Ke && (G(Ke.model), R(`${Ke.source}::${Ke.view}`));
18894
18895
  }, Oe = ge.find((ue) => `${ue.source}::${ue.view}` === $), $e = Oe ? di(A, Oe.source, Oe.view) : void 0, Ze = Zm(Oe, 250);
@@ -18896,14 +18897,14 @@ function Ym({
18896
18897
  e && D(T);
18897
18898
  }, [e, T]), ot(() => {
18898
18899
  if (!e) return;
18899
- const ue = [...se.keys()];
18900
+ const ue = [...ie.keys()];
18900
18901
  A === "" && ue.length > 0 && G(ue[0]);
18901
- }, [e, se, A]), ot(() => {
18902
+ }, [e, ie, A]), ot(() => {
18902
18903
  !e || ge.length === 0 || $ !== "" || R(`${ge[0].source}::${ge[0].view}`);
18903
18904
  }, [e, ge, $]), ot(() => {
18904
18905
  !e || Q || Oe === void 0 || X(Jo(Oe.view));
18905
18906
  }, [e, Q, Oe]), ot(() => {
18906
- e || (G(""), R(""), I(""), X(""), oe(!1), H(void 0), ae(!1), ce(void 0));
18907
+ e || (G(""), R(""), I(""), X(""), oe(!1), V(void 0), se(!1), ce(void 0));
18907
18908
  }, [e]);
18908
18909
  const de = qe(() => {
18909
18910
  if (U.trim() !== "")
@@ -18916,10 +18917,10 @@ function Ym({
18916
18917
  modelPath: A,
18917
18918
  source: Oe.source,
18918
18919
  view: Oe.view
18919
- })) ?? (U.trim() !== "" && gt === void 0 ? "No free file name for this title; choose another." : void 0), yt = Wt !== void 0 && (Z || U.trim() !== ""), zt = h || B, { theme: En } = yr(), rn = En.ui, Kt = el(En.cardBorder), ut = se.size === 0 && (Pe || tt.length > 0), le = zt ? "Loading the model" : ut ? "Couldn't read the model to start from" : se.size === 0 ? "Nothing in the model to start from yet" : Oe === void 0 ? "Pick what to start from" : void 0, rt = "report", Ue = L ? `Creating ${rt}…` : `Create ${rt}`, wt = $ !== "" && Oe === void 0 && ge.length > 0, It = async () => {
18920
+ })) ?? (U.trim() !== "" && gt === void 0 ? "No free file name for this title; choose another." : void 0), yt = Wt !== void 0 && (Z || U.trim() !== ""), zt = h || B, { theme: En } = yr(), rn = En.ui, Kt = el(En.cardBorder), ut = ie.size === 0 && (Pe || tt.length > 0), le = zt ? "Loading the model" : ut ? "Couldn't read the model to start from" : ie.size === 0 ? "Nothing in the model to start from yet" : Oe === void 0 ? "Pick what to start from" : void 0, rt = "report", Ue = L ? `Creating ${rt}…` : `Create ${rt}`, wt = $ !== "" && Oe === void 0 && ge.length > 0, It = async () => {
18920
18921
  if (!(le !== void 0 || Oe === void 0 || L)) {
18921
18922
  if (Wt !== void 0 || at !== void 0) {
18922
- ae(!0);
18923
+ se(!0);
18923
18924
  return;
18924
18925
  }
18925
18926
  J(!0), ce(void 0);
@@ -18971,12 +18972,12 @@ function Ym({
18971
18972
  }
18972
18973
  ) }) })
18973
18974
  ] }),
18974
- children: /* @__PURE__ */ S(He, { sx: { gap: 1.5 }, children: [
18975
+ children: /* @__PURE__ */ S(Ve, { sx: { gap: 1.5 }, children: [
18975
18976
  Pe ? /* @__PURE__ */ n(
18976
18977
  Ct,
18977
18978
  {
18978
18979
  severity: "error",
18979
- action: v && Vd(p) ? xt(v) : void 0,
18980
+ action: v && Hd(p) ? xt(v) : void 0,
18980
18981
  children: "Couldn't read this package's models, so no view is listed to start from."
18981
18982
  }
18982
18983
  ) : d.length === 0 ? !h && /* @__PURE__ */ S(Ct, { severity: "info", children: [
@@ -18987,7 +18988,7 @@ function Ym({
18987
18988
  Ct,
18988
18989
  {
18989
18990
  severity: "warning",
18990
- action: ie ? xt(z) : void 0,
18991
+ action: ae ? xt(z) : void 0,
18991
18992
  children: [
18992
18993
  "Couldn't read ",
18993
18994
  tt.join(", "),
@@ -18997,7 +18998,7 @@ function Ym({
18997
18998
  " is listed."
18998
18999
  ]
18999
19000
  }
19000
- ) : De && se.size === 0 && /* @__PURE__ */ S(Ct, { severity: "info", children: [
19001
+ ) : De && ie.size === 0 && /* @__PURE__ */ S(Ct, { severity: "info", children: [
19001
19002
  "A ",
19002
19003
  rt,
19003
19004
  " starts from a view of a source, and no model in this package declares one yet. Add a view to a source in a model file and this list fills in."
@@ -19033,7 +19034,7 @@ function Ym({
19033
19034
  vd,
19034
19035
  {
19035
19036
  groups: ve,
19036
- query: V,
19037
+ query: H,
19037
19038
  onQuery: I,
19038
19039
  picked: $e,
19039
19040
  onPick: Fe,
@@ -19128,7 +19129,7 @@ function Ym({
19128
19129
  }
19129
19130
  }),
19130
19131
  children: Oe && Ze ? /* @__PURE__ */ n(ee, { sx: { flex: 1, minWidth: 0, px: 2, pt: 1.5 }, children: /* @__PURE__ */ n(
19131
- Hs,
19132
+ Vs,
19132
19133
  {
19133
19134
  environmentName: a,
19134
19135
  packageName: l,
@@ -19162,7 +19163,7 @@ function Ym({
19162
19163
  )
19163
19164
  ] }),
19164
19165
  /* @__PURE__ */ n(
19165
- Hn,
19166
+ Vn,
19166
19167
  {
19167
19168
  size: "small",
19168
19169
  label: "Title",
@@ -19178,14 +19179,14 @@ function Ym({
19178
19179
  }
19179
19180
  ),
19180
19181
  /* @__PURE__ */ n(
19181
- Hn,
19182
+ Vn,
19182
19183
  {
19183
19184
  size: "small",
19184
19185
  label: "Location",
19185
19186
  value: P ?? de ?? "",
19186
19187
  placeholder: "report.malloy",
19187
19188
  disabled: L,
19188
- onChange: (ue) => H(ue.target.value),
19189
+ onChange: (ue) => V(ue.target.value),
19189
19190
  InputLabelProps: { shrink: !0 },
19190
19191
  inputProps: { "aria-label": "Location" },
19191
19192
  error: at !== void 0,
@@ -19513,7 +19514,7 @@ function bp({
19513
19514
  onClose: r,
19514
19515
  showClose: !0,
19515
19516
  title: /* @__PURE__ */ S(
19516
- He,
19517
+ Ve,
19517
19518
  {
19518
19519
  direction: "row",
19519
19520
  alignItems: "center",
@@ -19590,7 +19591,7 @@ function bp({
19590
19591
  },
19591
19592
  children: [
19592
19593
  /* @__PURE__ */ S(
19593
- He,
19594
+ Ve,
19594
19595
  {
19595
19596
  direction: "row",
19596
19597
  alignItems: "center",
@@ -19702,24 +19703,24 @@ function Ng({
19702
19703
  }) {
19703
19704
  const { apiClients: u, server: a, mutable: l } = We(), m = No(), d = e ?? ((z) => {
19704
19705
  window.location.href = z;
19705
- }), { environmentName: h, packageName: p, versionId: v } = Ae(c), y = r ?? ((z, ie) => {
19706
+ }), { environmentName: h, packageName: p, versionId: v } = Ae(c), y = r ?? ((z, ae) => {
19706
19707
  const ge = z.mode === "edit" ? Od(h, p, z.path) : Md(h, p, z.path);
19707
- ie ? d(ge, ie) : d(ge);
19708
- }), [g, w] = K(null), [x, k] = K(!1), T = jd(), O = tl()?.documentStorage, [M, D] = K([]), [P, H] = K({ state: O ? "pending" : "ready" }), A = ct(async () => {
19708
+ ae ? d(ge, ae) : d(ge);
19709
+ }), [g, w] = K(null), [x, k] = K(!1), T = jd(), O = tl()?.documentStorage, [M, D] = K([]), [P, V] = K({ state: O ? "pending" : "ready" }), A = ct(async () => {
19709
19710
  if (!O) return;
19710
19711
  let z;
19711
19712
  try {
19712
19713
  z = await O.listWorkspaces(!1);
19713
19714
  } catch {
19714
- H({ state: "failed" });
19715
+ V({ state: "failed" });
19715
19716
  return;
19716
19717
  }
19717
- H({ state: "ready", chosen: nl(z) });
19718
- const ie = [], ge = vo(h, p, "");
19718
+ V({ state: "ready", chosen: nl(z) });
19719
+ const ae = [], ge = vo(h, p, "");
19719
19720
  for (const Re of z.filter((ve) => ve.writeable))
19720
19721
  for (const ve of await O.listDocuments(Re))
19721
- ve.path.startsWith(ge) && ie.push({ locator: ve, where: Re.description });
19722
- D(ie);
19722
+ ve.path.startsWith(ge) && ae.push({ locator: ve, where: Re.description });
19723
+ D(ae);
19723
19724
  }, [O, h, p]);
19724
19725
  ot(() => {
19725
19726
  A();
@@ -19736,7 +19737,7 @@ function Ng({
19736
19737
  h,
19737
19738
  p,
19738
19739
  v
19739
- ), V = it({
19740
+ ), H = it({
19740
19741
  queryKey: ["models", h, p, v],
19741
19742
  queryFn: () => u.models.listModels(h, p, v)
19742
19743
  }), I = it({
@@ -19755,8 +19756,8 @@ function Ng({
19755
19756
  p
19756
19757
  );
19757
19758
  } catch (z) {
19758
- const ie = z?.response?.status;
19759
- if (ie === 404 || ie === void 0)
19759
+ const ae = z?.response?.status;
19760
+ if (ae === 404 || ae === void 0)
19760
19761
  return { data: [] };
19761
19762
  throw z;
19762
19763
  }
@@ -19765,17 +19766,17 @@ function Ng({
19765
19766
  (z) => !!z.path
19766
19767
  ), Q = kp(X), oe = new Set(
19767
19768
  X.map((z) => z.path).filter((z) => z !== void 0)
19768
- ), Z = (V.data?.data ?? []).slice().filter((z) => !oe.has(z.path)).sort((z, ie) => z.path.localeCompare(ie.path)), ae = (I.data?.data ?? []).slice().sort((z, ie) => z.path.localeCompare(ie.path)), L = P.state === "ready" ? Sd({
19769
+ ), Z = (H.data?.data ?? []).slice().filter((z) => !oe.has(z.path)).sort((z, ae) => z.path.localeCompare(ae.path)), se = (I.data?.data ?? []).slice().sort((z, ae) => z.path.localeCompare(ae.path)), L = P.state === "ready" ? Sd({
19769
19770
  authoritative: P.chosen?.authoritative === !0,
19770
19771
  mutable: l,
19771
19772
  canStore: P.chosen?.writeable === !0,
19772
19773
  ...v === void 0 ? {} : { versionId: v }
19773
- }) : void 0, J = R.settled && (V.isSuccess || V.isError), re = L !== void 0 && J, ce = re && !T, Pe = qe(() => {
19774
+ }) : void 0, J = R.settled && (H.isSuccess || H.isError), re = L !== void 0 && J, ce = re && !T, Pe = qe(() => {
19774
19775
  if (!re) return;
19775
19776
  const z = [
19776
- ...R.reports.flatMap((ie) => ie.path ? [ie.path] : []),
19777
- ...(V.data?.data ?? []).flatMap(
19778
- (ie) => ie.path ? [ie.path] : []
19777
+ ...R.reports.flatMap((ae) => ae.path ? [ae.path] : []),
19778
+ ...(H.data?.data ?? []).flatMap(
19779
+ (ae) => ae.path ? [ae.path] : []
19779
19780
  )
19780
19781
  ];
19781
19782
  if (L === "storage" && O && P.state === "ready")
@@ -19791,11 +19792,11 @@ function Ng({
19791
19792
  return {
19792
19793
  route: L,
19793
19794
  existing: z,
19794
- write: async (ie, ge) => {
19795
+ write: async (ae, ge) => {
19795
19796
  await u.models.updateModelSource(
19796
19797
  h,
19797
19798
  p,
19798
- ie,
19799
+ ae,
19799
19800
  { source: ge }
19800
19801
  );
19801
19802
  }
@@ -19809,8 +19810,8 @@ function Ng({
19809
19810
  p,
19810
19811
  u,
19811
19812
  R.reports,
19812
- V.data
19813
- ]), se = $.data?.data?.description ?? "", B = $.data?.data?.agents ?? [], De = (X.find((z) => z.path === vp) ?? X.find((z) => wp(z.path)))?.path, tt = !R.settled;
19813
+ H.data
19814
+ ]), ie = $.data?.data?.description ?? "", B = $.data?.data?.agents ?? [], De = (X.find((z) => z.path === vp) ?? X.find((z) => wp(z.path)))?.path, tt = !R.settled;
19814
19815
  return $.isError ? /* @__PURE__ */ n(
19815
19816
  Dt,
19816
19817
  {
@@ -19837,7 +19838,7 @@ function Ng({
19837
19838
  children: p
19838
19839
  }
19839
19840
  ),
19840
- se && /* @__PURE__ */ n(te, { variant: "body2", color: "text.secondary", children: se })
19841
+ ie && /* @__PURE__ */ n(te, { variant: "body2", color: "text.secondary", children: ie })
19841
19842
  ] }),
19842
19843
  /* @__PURE__ */ n(jm, { warnings: $.data?.data?.warnings }),
19843
19844
  tt && /* @__PURE__ */ n(Pt, { text: "Loading package..." }),
@@ -19852,9 +19853,9 @@ function Ng({
19852
19853
  models: Z.map((z) => z.path).filter(
19853
19854
  (z) => typeof z == "string" && z.endsWith(".malloy") && !oe.has(z)
19854
19855
  ),
19855
- modelsLoading: V.isPending,
19856
- ...V.isError ? { modelsError: V.error } : {},
19857
- onRetryModels: () => void V.refetch(),
19856
+ modelsLoading: H.isPending,
19857
+ ...H.isError ? { modelsError: H.error } : {},
19858
+ onRetryModels: () => void H.refetch(),
19858
19859
  target: Pe,
19859
19860
  ...o ? { onEvent: o } : {},
19860
19861
  onClose: () => k(!1),
@@ -19925,9 +19926,9 @@ function Ng({
19925
19926
  label: z.label,
19926
19927
  rightLabel: z.layout,
19927
19928
  ...z.secondary === void 0 ? {} : { description: z.secondary },
19928
- onClick: (ie) => z.path.endsWith(".malloynb") ? d(
19929
+ onClick: (ae) => z.path.endsWith(".malloynb") ? d(
19929
19930
  `/${h}/${p}/${z.path}`,
19930
- ie
19931
+ ae
19931
19932
  ) : y(
19932
19933
  {
19933
19934
  path: z.path,
@@ -19935,7 +19936,7 @@ function Ng({
19935
19936
  slug: z.slug,
19936
19937
  mode: "view"
19937
19938
  },
19938
- ie
19939
+ ae
19939
19940
  )
19940
19941
  },
19941
19942
  z.path
@@ -19943,12 +19944,12 @@ function Ng({
19943
19944
  ]
19944
19945
  }
19945
19946
  ),
19946
- M.length > 0 && /* @__PURE__ */ n(nn, { title: "Drafts", count: M.length, children: M.map(({ locator: z, where: ie }) => /* @__PURE__ */ n(
19947
+ M.length > 0 && /* @__PURE__ */ n(nn, { title: "Drafts", count: M.length, children: M.map(({ locator: z, where: ae }) => /* @__PURE__ */ n(
19947
19948
  cr,
19948
19949
  {
19949
19950
  type: z.type === "grid" ? "dashboard" : "report",
19950
19951
  label: G(z),
19951
- rightLabel: ie,
19952
+ rightLabel: ae,
19952
19953
  onClick: (ge) => y(
19953
19954
  {
19954
19955
  path: G(z),
@@ -19973,13 +19974,13 @@ function Ng({
19973
19974
  `${z.workspace}:${z.path}`
19974
19975
  )) }),
19975
19976
  U.length > 0 && /* @__PURE__ */ n(nn, { title: "Apps", count: U.length, children: U.map((z) => {
19976
- const ie = !!z.title && z.title !== z.path, ge = `${ml(a)}${z.resource}`;
19977
+ const ae = !!z.title && z.title !== z.path, ge = `${ml(a)}${z.resource}`;
19977
19978
  return /* @__PURE__ */ n(
19978
19979
  cr,
19979
19980
  {
19980
19981
  type: "dataApp",
19981
- label: ie ? z.title : z.path,
19982
- rightLabel: ie ? z.path : void 0,
19982
+ label: ae ? z.title : z.path,
19983
+ rightLabel: ae ? z.path : void 0,
19983
19984
  onClick: (Re) => {
19984
19985
  e ? e(
19985
19986
  `/${h}/${p}/data-apps/${z.path}`,
@@ -20009,9 +20010,9 @@ function Ng({
20009
20010
  {
20010
20011
  type: "model",
20011
20012
  label: z.path,
20012
- onClick: (ie) => d(
20013
+ onClick: (ae) => d(
20013
20014
  `/${h}/${p}/${z.path}`,
20014
- ie
20015
+ ae
20015
20016
  )
20016
20017
  },
20017
20018
  z.path
@@ -20027,8 +20028,8 @@ function Ng({
20027
20028
  children: B.map((z) => /* @__PURE__ */ n(xp, { agent: z }, z.name))
20028
20029
  }
20029
20030
  ),
20030
- /* @__PURE__ */ S(nn, { title: "Data", count: ae.length, children: [
20031
- ae.map((z) => /* @__PURE__ */ n(
20031
+ /* @__PURE__ */ S(nn, { title: "Data", count: se.length, children: [
20032
+ se.map((z) => /* @__PURE__ */ n(
20032
20033
  cr,
20033
20034
  {
20034
20035
  type: "data",
@@ -20043,7 +20044,7 @@ function Ng({
20043
20044
  },
20044
20045
  z.path
20045
20046
  )),
20046
- ae.length === 0 && /* @__PURE__ */ n(hi, { label: "No data files" })
20047
+ se.length === 0 && /* @__PURE__ */ n(hi, { label: "No data files" })
20047
20048
  ] }),
20048
20049
  /* @__PURE__ */ n(Nm, { resourceUri: c }),
20049
20050
  De && /* @__PURE__ */ n(ee, { sx: { mt: 6 }, children: /* @__PURE__ */ n(
@@ -20148,7 +20149,7 @@ function hi({
20148
20149
  label: e,
20149
20150
  action: r
20150
20151
  }) {
20151
- return /* @__PURE__ */ S(He, { direction: "row", sx: { alignItems: "center", gap: 1, py: 1 }, children: [
20152
+ return /* @__PURE__ */ S(Ve, { direction: "row", sx: { alignItems: "center", gap: 1, py: 1 }, children: [
20152
20153
  /* @__PURE__ */ n(
20153
20154
  te,
20154
20155
  {
@@ -20178,7 +20179,7 @@ const fi = {
20178
20179
  description: "Stored in this browser only",
20179
20180
  writeable: !0
20180
20181
  }, Oi = "publisher:report:", zn = (e) => `${Oi}${e}`;
20181
- function Hr(e) {
20182
+ function Vr(e) {
20182
20183
  const r = localStorage.getItem(e);
20183
20184
  if (r !== null)
20184
20185
  try {
@@ -20193,7 +20194,7 @@ class Pg {
20193
20194
  migrated = !1;
20194
20195
  /** Drafts saved under the old type-keyed scheme, moved once per store so they are still found. */
20195
20196
  migrate() {
20196
- this.migrated || (this.migrated = !0, Sp(localStorage, (r, c, o) => Hr(zn(r)) !== void 0 ? !1 : (mi(r, { type: c, content: o }), !0)));
20197
+ this.migrated || (this.migrated = !0, Sp(localStorage, (r, c, o) => Vr(zn(r)) !== void 0 ? !1 : (mi(r, { type: c, content: o }), !0)));
20197
20198
  }
20198
20199
  async listWorkspaces(r) {
20199
20200
  return [fi];
@@ -20205,7 +20206,7 @@ class Pg {
20205
20206
  for (let u = 0; u < localStorage.length; u++) {
20206
20207
  const a = localStorage.key(u);
20207
20208
  if (a === null || !a.startsWith(Oi)) continue;
20208
- const l = Hr(a);
20209
+ const l = Vr(a);
20209
20210
  l && (c === void 0 || l.type === c) && o.push({
20210
20211
  workspace: fi.name,
20211
20212
  type: l.type,
@@ -20216,13 +20217,13 @@ class Pg {
20216
20217
  }
20217
20218
  async getDocument(r) {
20218
20219
  this.migrate();
20219
- const c = Hr(zn(r.path));
20220
+ const c = Vr(zn(r.path));
20220
20221
  if (c === void 0) throw pi(r);
20221
20222
  return c.content;
20222
20223
  }
20223
20224
  async getDocumentType(r) {
20224
20225
  this.migrate();
20225
- const c = Hr(zn(r.path));
20226
+ const c = Vr(zn(r.path));
20226
20227
  if (c === void 0) throw pi(r);
20227
20228
  return c.type;
20228
20229
  }
@@ -20230,7 +20231,7 @@ class Pg {
20230
20231
  this.migrate(), mi(r.path, { type: r.type, content: c });
20231
20232
  }
20232
20233
  async deleteDocument(r) {
20233
- if (this.migrate(), Hr(zn(r.path)) === void 0) throw pi(r);
20234
+ if (this.migrate(), Vr(zn(r.path)) === void 0) throw pi(r);
20234
20235
  localStorage.removeItem(zn(r.path));
20235
20236
  }
20236
20237
  async moveDocument(r, c) {
@@ -20439,12 +20440,12 @@ function Np({
20439
20440
  givens: p,
20440
20441
  givenSpecs: v
20441
20442
  }) {
20442
- const [y, g] = Se.useState(!1), [w, x] = Se.useState(!1), [k, T] = Se.useState(), [O, M] = Se.useState(!1), [D, P] = K(""), { environmentName: H, packageName: A, modelPath: G } = Ae(r), $ = {
20443
- environmentName: H,
20443
+ const [y, g] = Se.useState(!1), [w, x] = Se.useState(!1), [k, T] = Se.useState(), [O, M] = Se.useState(!1), [D, P] = K(""), { environmentName: V, packageName: A, modelPath: G } = Ae(r), $ = {
20444
+ environmentName: V,
20444
20445
  packageName: A,
20445
20446
  sourcePath: G,
20446
20447
  onNavigate: l
20447
- }, { drill: R, drillMenu: V } = dl({
20448
+ }, { drill: R, drillMenu: H } = dl({
20448
20449
  // A `# drill { to=<report> }` from a cell is honoured: the host resolves
20449
20450
  // the destination (a package path from the root) and turns it and its
20450
20451
  // seeded givens into the report's route, the Console's being
@@ -20506,7 +20507,7 @@ function Np({
20506
20507
  const Z = () => {
20507
20508
  const L = window.location.href;
20508
20509
  navigator.clipboard.writeText(L).then(() => P("URL copied to clipboard!")).catch(() => P("Failed to copy URL"));
20509
- }, ae = /* @__PURE__ */ n(
20510
+ }, se = /* @__PURE__ */ n(
20510
20511
  vt,
20511
20512
  {
20512
20513
  open: y,
@@ -20547,7 +20548,7 @@ function Np({
20547
20548
  );
20548
20549
  return e.type === "markdown" && /* @__PURE__ */ n(ee, { children: /* @__PURE__ */ S(Mo, { children: [
20549
20550
  c ? /* @__PURE__ */ S(
20550
- He,
20551
+ Ve,
20551
20552
  {
20552
20553
  direction: "row",
20553
20554
  alignItems: "flex-start",
@@ -20577,7 +20578,7 @@ function Np({
20577
20578
  )
20578
20579
  ] }) }) || e.type === "code" && /* @__PURE__ */ S(ee, { children: [
20579
20580
  e.newSources && e.newSources.length > 0 && /* @__PURE__ */ n(
20580
- He,
20581
+ Ve,
20581
20582
  {
20582
20583
  sx: {
20583
20584
  flexDirection: "column",
@@ -20645,7 +20646,7 @@ function Np({
20645
20646
  startingGivens: p
20646
20647
  }
20647
20648
  ),
20648
- ae,
20649
+ se,
20649
20650
  /* @__PURE__ */ n(
20650
20651
  $l,
20651
20652
  {
@@ -20692,7 +20693,7 @@ function Np({
20692
20693
  $d,
20693
20694
  {
20694
20695
  title: "",
20695
- action: /* @__PURE__ */ S(He, { direction: "row", sx: { gap: 0.5, mt: "-4px" }, children: [
20696
+ action: /* @__PURE__ */ S(Ve, { direction: "row", sx: { gap: 0.5, mt: "-4px" }, children: [
20696
20697
  /* @__PURE__ */ n(
20697
20698
  Yr,
20698
20699
  {
@@ -20723,7 +20724,7 @@ function Np({
20723
20724
  drill: R
20724
20725
  }
20725
20726
  ),
20726
- V
20727
+ H
20727
20728
  ] })
20728
20729
  ] });
20729
20730
  }
@@ -20767,7 +20768,7 @@ function Rp({
20767
20768
  modelPath: w
20768
20769
  } = Ae(e), x = d !== void 0, k = !x && !!h, [T, O] = K(
20769
20770
  []
20770
- ), [M, D] = K(!1), [P, H] = K(!1), A = Ot(void 0), [G, $] = K(null), R = Mp(d), V = d?.autorun !== !1, I = Vs(), _ = Fi({
20771
+ ), [M, D] = K(!1), [P, V] = K(!1), A = Ot(void 0), [G, $] = K(null), R = Mp(d), H = d?.autorun !== !1, I = Hs(), _ = Fi({
20771
20772
  specs: R,
20772
20773
  loaded: x,
20773
20774
  // Where the controls start, from a file-level `## givens { … }`.
@@ -20775,7 +20776,7 @@ function Rp({
20775
20776
  params: u,
20776
20777
  onGivensChange: a,
20777
20778
  documentKey: e,
20778
- autorun: V,
20779
+ autorun: H,
20779
20780
  environmentName: v,
20780
20781
  packageName: y,
20781
20782
  // The report's model path is the report itself: `suggest` queries run
@@ -20789,12 +20790,12 @@ function Rp({
20789
20790
  canSelf: Q,
20790
20791
  onSelf: oe
20791
20792
  } = _, Z = ct(
20792
- (ie) => {
20793
- const ge = Oo(ie, X);
20793
+ (ae) => {
20794
+ const ge = Oo(ae, X);
20794
20795
  return Object.keys(ge).length > 0 ? JSON.stringify(ge) : void 0;
20795
20796
  },
20796
20797
  [X]
20797
- ), ae = qe(
20798
+ ), se = qe(
20798
20799
  () => Pd(U, X),
20799
20800
  [U, X]
20800
20801
  ), L = Ot(0), J = Ot(null), re = Ot(null), ce = Ot(void 0);
@@ -20805,7 +20806,7 @@ function Rp({
20805
20806
  []
20806
20807
  );
20807
20808
  const Pe = ct(
20808
- async (ie = /* @__PURE__ */ new Map()) => {
20809
+ async (ae = /* @__PURE__ */ new Map()) => {
20809
20810
  if (!x || !d?.notebookCells) return;
20810
20811
  const ge = ++L.current;
20811
20812
  J.current?.abort();
@@ -20821,7 +20822,7 @@ function Rp({
20821
20822
  const nt = await p({
20822
20823
  cell: $e,
20823
20824
  index: Ze,
20824
- givens: ie,
20825
+ givens: ae,
20825
20826
  declaredTypes: X,
20826
20827
  signal: Re.signal
20827
20828
  });
@@ -20877,28 +20878,28 @@ function Rp({
20877
20878
  }
20878
20879
  },
20879
20880
  [x, d, X, p, I]
20880
- ), se = Ot(0), B = Ot(void 0);
20881
- B.current !== d && (B.current = d, se.current += 1);
20882
- const De = se.current;
20881
+ ), ie = Ot(0), B = Ot(void 0);
20882
+ B.current !== d && (B.current = d, ie.current += 1);
20883
+ const De = ie.current;
20883
20884
  ot(() => {
20884
- const ie = `${e}|${De}`, ge = `${ie}|${Z(U) ?? ""}`;
20885
- A.current !== void 0 && A.current !== ie && (J.current?.abort(), J.current = null), A.current = ie;
20885
+ const ae = `${e}|${De}`, ge = `${ae}|${Z(U) ?? ""}`;
20886
+ A.current !== void 0 && A.current !== ae && (J.current?.abort(), J.current = null), A.current = ae;
20886
20887
  const Re = Pp({
20887
20888
  ready: x && !!d?.notebookCells,
20888
20889
  lastRunKey: re.current,
20889
20890
  pendingKey: ce.current?.key,
20890
20891
  runKey: ge,
20891
- documentKey: ie
20892
+ documentKey: ae
20892
20893
  });
20893
- if (Re.cancelPending && (clearTimeout(ce.current?.timer), ce.current = void 0, H(!1)), Re.dispatch === "none") return;
20894
+ if (Re.cancelPending && (clearTimeout(ce.current?.timer), ce.current = void 0, V(!1)), Re.dispatch === "none") return;
20894
20895
  const ve = () => {
20895
- ce.current = void 0, H(!1), re.current = ge, Pe(U);
20896
+ ce.current = void 0, V(!1), re.current = ge, Pe(U);
20896
20897
  };
20897
20898
  if (Re.dispatch === "now") {
20898
20899
  ve();
20899
20900
  return;
20900
20901
  }
20901
- H(!0), ce.current = {
20902
+ V(!0), ce.current = {
20902
20903
  key: ge,
20903
20904
  timer: setTimeout(ve, Dp)
20904
20905
  };
@@ -20929,15 +20930,15 @@ function Rp({
20929
20930
  controls: _.panel.givens.length > 0 ? /* @__PURE__ */ n(Us, { children: /* @__PURE__ */ n(Ai, { ..._.panel, layout: "bar" }) }) : void 0,
20930
20931
  children: [
20931
20932
  !x && !k && /* @__PURE__ */ n(Pt, { text: Io.opening("report") }),
20932
- x && tt.map((ie, ge) => /* @__PURE__ */ n(
20933
+ x && tt.map((ae, ge) => /* @__PURE__ */ n(
20933
20934
  Np,
20934
20935
  {
20935
- cell: ie,
20936
+ cell: ae,
20936
20937
  showCopyLink: ge === z,
20937
20938
  resourceUri: e,
20938
20939
  maxResultSize: o,
20939
20940
  isExecuting: M,
20940
- givens: ae,
20941
+ givens: se,
20941
20942
  givenSpecs: R,
20942
20943
  pendingRerun: P,
20943
20944
  onNavigate: l,
@@ -21103,7 +21104,7 @@ function zp(e) {
21103
21104
  return "";
21104
21105
  }
21105
21106
  }
21106
- function Vp(e) {
21107
+ function Hp(e) {
21107
21108
  const r = /* @__PURE__ */ new Map();
21108
21109
  for (const c of e) {
21109
21110
  const o = `${c.source}|${c.model}`, u = r.get(o) || [];
@@ -21111,7 +21112,7 @@ function Vp(e) {
21111
21112
  }
21112
21113
  return r;
21113
21114
  }
21114
- function Hp(e, r, c, o) {
21115
+ function Vp(e, r, c, o) {
21115
21116
  const u = r.filter(
21116
21117
  (h) => (h.filterType === "Star" || h.filterType === "MinMax" || h.filterType === "DateMinMax") && !h.values
21117
21118
  );
@@ -21254,12 +21255,12 @@ function Bp(e) {
21254
21255
  indexLimit: l = 1e4,
21255
21256
  activeFilters: m = []
21256
21257
  } = e, d = qe(
21257
- () => Vp(o),
21258
+ () => Hp(o),
21258
21259
  [o]
21259
21260
  ), h = qe(() => {
21260
21261
  const x = [];
21261
21262
  for (const [k, T] of d) {
21262
- const [O, M] = k.split("|"), D = Hp(
21263
+ const [O, M] = k.split("|"), D = Vp(
21263
21264
  O,
21264
21265
  T,
21265
21266
  l,
@@ -21574,7 +21575,7 @@ function zg(e, r = 5e3) {
21574
21575
  canExecute: M
21575
21576
  };
21576
21577
  }
21577
- function Vg({
21578
+ function Hg({
21578
21579
  modelPath: e,
21579
21580
  query: r,
21580
21581
  sourceName: c,
@@ -21635,7 +21636,7 @@ export {
21635
21636
  Uy as DRILL_CELL_CLASS,
21636
21637
  Zo as DRILL_SELF,
21637
21638
  Rg as Dashboard,
21638
- Hs as DashboardTile,
21639
+ Vs as DashboardTile,
21639
21640
  zi as DashboardView,
21640
21641
  fg as DataAppViewer,
21641
21642
  gg as DimensionFilter,
@@ -21677,7 +21678,7 @@ export {
21677
21678
  qi as SURFACE_TINT,
21678
21679
  Qr as SecondaryButton,
21679
21680
  Ry as ServerProvider,
21680
- Hm as SourcesExplorer,
21681
+ Vm as SourcesExplorer,
21681
21682
  Jg as TILE_MAX_HEIGHT,
21682
21683
  ey as TILE_MIN_HEIGHT,
21683
21684
  Ly as ThemeProvider,
@@ -21690,7 +21691,7 @@ export {
21690
21691
  jy as buildMalloyExplicitTheme,
21691
21692
  oy as buildTableCssVars,
21692
21693
  Gy as buildVegaThemeOverride,
21693
- Vd as canRetryRequest,
21694
+ Hd as canRetryRequest,
21694
21695
  iy as clearReportDraft,
21695
21696
  ay as contentNodeDepth,
21696
21697
  qy as contrastRatio,
@@ -21743,7 +21744,7 @@ export {
21743
21744
  xy as resolveDrillTarget,
21744
21745
  zy as resolveMode,
21745
21746
  ky as resolveResultHeight,
21746
- Vy as resolveTheme,
21747
+ Hy as resolveTheme,
21747
21748
  Sy as resultSizing,
21748
21749
  Cy as scrollBehavior,
21749
21750
  mg as setConsoleEventHandler,
@@ -21767,7 +21768,7 @@ export {
21767
21768
  tl as useOptionalDocumentStorage,
21768
21769
  yr as usePublisherTheme,
21769
21770
  Ni as useQueryResult,
21770
- Vg as useRawQueryData,
21771
+ Hg as useRawQueryData,
21771
21772
  kd as useReportListing,
21772
21773
  dg as useRouterClickHandler,
21773
21774
  We as useServer,