@interopio/groups-ui-react 4.4.0 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import * as o from "react";
3
3
  import o__default, { useRef, useEffect, useLayoutEffect, useState, useContext, forwardRef, useCallback, createContext, useMemo, useImperativeHandle, Fragment as Fragment$1, memo, Component, useId } from "react";
4
- import * as b from "react-dom";
5
- import b__default from "react-dom";
4
+ import * as w from "react-dom";
5
+ import w__default from "react-dom";
6
6
  import { IOConnectContext } from "@interopio/react-hooks";
7
7
  var StandardButtonTarget = /* @__PURE__ */ ((StandardButtonTarget2) => {
8
8
  StandardButtonTarget2["Default"] = "default";
@@ -171,8 +171,8 @@ class WebGroupsManagerDecorator {
171
171
  removePopupById(elementId) {
172
172
  return window.webGroupsManager.removePopupById(elementId);
173
173
  }
174
- subscribeForWindowFocused(cb) {
175
- return window.webGroupsManager.subscribeForWindowFocused(cb);
174
+ subscribeForWindowFocused(cb2) {
175
+ return window.webGroupsManager.subscribeForWindowFocused(cb2);
176
176
  }
177
177
  unmount() {
178
178
  return window.webGroupsManager.unmount();
@@ -499,8 +499,8 @@ function getLuminance(color) {
499
499
  const channel = x / 255;
500
500
  return channel <= 0.04045 ? channel / 12.92 : Math.pow((channel + 0.055) / 1.055, 2.4);
501
501
  }
502
- const [r2, g, b2] = parseToRgba(color);
503
- return 0.2126 * f(r2) + 0.7152 * f(g) + 0.0722 * f(b2);
502
+ const [r2, g, b] = parseToRgba(color);
503
+ return 0.2126 * f(r2) + 0.7152 * f(g) + 0.0722 * f(b);
504
504
  }
505
505
  function readableColorIsBlack(color) {
506
506
  return getLuminance(color) > 0.179;
@@ -510,8 +510,8 @@ function IsBlackReadable(color) {
510
510
  const rgba = parseToRgba(color);
511
511
  const r2 = rgba[0];
512
512
  const g = rgba[1];
513
- const b2 = rgba[2];
514
- const backgroundWeight = (0.2126 * r2 + 0.7152 * g + 0.0722 * b2) / 255;
513
+ const b = rgba[2];
514
+ const backgroundWeight = (0.2126 * r2 + 0.7152 * g + 0.0722 * b) / 255;
515
515
  return backgroundWeight > 0.5;
516
516
  } catch {
517
517
  }
@@ -736,13 +736,13 @@ const FlatButtons = ({ extract, downloads, minimize, maximize, restore, close, l
736
736
  };
737
737
  const waitForWindow = (io2, windowId) => {
738
738
  return new Promise((res, rej) => {
739
- const unsub = io2.windows.onWindowAdded((w) => {
740
- if (w.id === windowId) {
741
- res(w);
739
+ const unsub = io2.windows.onWindowAdded((w2) => {
740
+ if (w2.id === windowId) {
741
+ res(w2);
742
742
  unsub();
743
743
  }
744
744
  });
745
- const windowInCollection = io2.windows.list().find((w) => w.id === windowId);
745
+ const windowInCollection = io2.windows.list().find((w2) => w2.id === windowId);
746
746
  if (windowInCollection) {
747
747
  res(windowInCollection);
748
748
  unsub();
@@ -966,7 +966,7 @@ var ResizeObserverController = (
966
966
  this.connected_ = false;
967
967
  };
968
968
  ResizeObserverController2.prototype.onTransitionEnd_ = function(_a2) {
969
- var _b = _a2.propertyName, propertyName = _b === void 0 ? "" : _b;
969
+ var _b2 = _a2.propertyName, propertyName = _b2 === void 0 ? "" : _b2;
970
970
  var isReflowProperty = transitionKeys.some(function(key) {
971
971
  return !!~propertyName.indexOf(key);
972
972
  });
@@ -1468,7 +1468,7 @@ const FlatMoveArea = ({ children, moveAreaId }) => {
1468
1468
  return /* @__PURE__ */ jsx("div", { id: moveAreaId, className: "t42-move-area t42-frame-caption-bar-element", children });
1469
1469
  };
1470
1470
  const BaseMultiChannelSelector = ({ outsideClass, contentClass, showSelector, selectedChannels, channelLabel, channelRestrictions }) => {
1471
- var _a2, _b;
1471
+ var _a2, _b2;
1472
1472
  const ref = useRef(null);
1473
1473
  const len = selectedChannels.length;
1474
1474
  const showBaseChannelSelector = len < 2;
@@ -1504,7 +1504,7 @@ const BaseMultiChannelSelector = ({ outsideClass, contentClass, showSelector, se
1504
1504
  {
1505
1505
  showSelector,
1506
1506
  selectedChannel: (_a2 = selectedChannels[0]) == null ? void 0 : _a2.name,
1507
- selectedChannelColor: (_b = selectedChannels[0]) == null ? void 0 : _b.color,
1507
+ selectedChannelColor: (_b2 = selectedChannels[0]) == null ? void 0 : _b2.color,
1508
1508
  outsideClass,
1509
1509
  contentClass,
1510
1510
  channelLabel,
@@ -1855,7 +1855,7 @@ if (process.env.NODE_ENV === "production") {
1855
1855
  var shimExports = shim.exports;
1856
1856
  class GroupWrapper extends o__default.Component {
1857
1857
  componentDidMount() {
1858
- var _a2, _b, _c2, _d2, _e2, _f2;
1858
+ var _a2, _b2, _c2, _d2, _e2, _f2;
1859
1859
  const componentFactory = {
1860
1860
  createGroupCaptionBar: this.props.onCreateGroupCaptionBarRequested,
1861
1861
  updateGroupCaptionBar: this.props.onUpdateGroupCaptionBarRequested,
@@ -1906,13 +1906,13 @@ class GroupWrapper extends o__default.Component {
1906
1906
  hideLoadingAnimation: this.props.onHideLoadingAnimationRequested
1907
1907
  };
1908
1908
  webGroupsManager.init(void 0, componentFactory);
1909
- webGroupsManager.updateTabHeaderStyles(((_b = (_a2 = this.props.styles) == null ? void 0 : _a2.tabs) == null ? void 0 : _b.header) ?? {});
1909
+ webGroupsManager.updateTabHeaderStyles(((_b2 = (_a2 = this.props.styles) == null ? void 0 : _a2.tabs) == null ? void 0 : _b2.header) ?? {});
1910
1910
  webGroupsManager.updateTabMoveAreaStyles(((_d2 = (_c2 = this.props.styles) == null ? void 0 : _c2.tabs) == null ? void 0 : _d2.moveArea) ?? {});
1911
1911
  webGroupsManager.updateFrameStyles(((_f2 = (_e2 = this.props.styles) == null ? void 0 : _e2.frame) == null ? void 0 : _f2.element) ?? {});
1912
1912
  }
1913
1913
  componentDidUpdate(prevProps, prevState, snapshot) {
1914
- var _a2, _b, _c2, _d2, _e2, _f2, _g2, _h, _i2, _j, _k, _l2, _m, _n2, _o2, _p2, _q, _r2;
1915
- if (((_b = (_a2 = this.props.styles) == null ? void 0 : _a2.tabs) == null ? void 0 : _b.header) !== ((_d2 = (_c2 = prevProps.styles) == null ? void 0 : _c2.tabs) == null ? void 0 : _d2.header)) {
1914
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h, _i2, _j, _k, _l2, _m, _n2, _o2, _p2, _q, _r2;
1915
+ if (((_b2 = (_a2 = this.props.styles) == null ? void 0 : _a2.tabs) == null ? void 0 : _b2.header) !== ((_d2 = (_c2 = prevProps.styles) == null ? void 0 : _c2.tabs) == null ? void 0 : _d2.header)) {
1916
1916
  webGroupsManager.updateTabHeaderStyles(((_f2 = (_e2 = this.props.styles) == null ? void 0 : _e2.tabs) == null ? void 0 : _f2.header) ?? {});
1917
1917
  }
1918
1918
  if (((_h = (_g2 = this.props.styles) == null ? void 0 : _g2.tabs) == null ? void 0 : _h.moveArea) !== ((_j = (_i2 = prevProps.styles) == null ? void 0 : _i2.tabs) == null ? void 0 : _j.moveArea)) {
@@ -1930,7 +1930,7 @@ class GroupWrapper extends o__default.Component {
1930
1930
  }
1931
1931
  class Portal extends o__default.Component {
1932
1932
  render() {
1933
- return b__default.createPortal(this.props.children, this.props.parentElement);
1933
+ return w__default.createPortal(this.props.children, this.props.parentElement);
1934
1934
  }
1935
1935
  }
1936
1936
  class WebGroupsStore {
@@ -1968,10 +1968,10 @@ class WebGroupsStore {
1968
1968
  htmlButtons: {}
1969
1969
  // dict frameId to crate html buttons options
1970
1970
  };
1971
- this.subscribe = (cb) => {
1972
- this.listeners.add(cb);
1971
+ this.subscribe = (cb2) => {
1972
+ this.listeners.add(cb2);
1973
1973
  return () => {
1974
- this.listeners.delete(cb);
1974
+ this.listeners.delete(cb2);
1975
1975
  };
1976
1976
  };
1977
1977
  this.getSnapshot = () => {
@@ -2490,8 +2490,8 @@ class WebGroupsStore {
2490
2490
  };
2491
2491
  });
2492
2492
  };
2493
- this.setState = (cb) => {
2494
- this.state = cb(this.state);
2493
+ this.setState = (cb2) => {
2494
+ this.state = cb2(this.state);
2495
2495
  this.listeners.forEach((l) => l());
2496
2496
  };
2497
2497
  }
@@ -2504,7 +2504,7 @@ const FrameLoadingAnimation = ({ show }) => {
2504
2504
  ] }) : /* @__PURE__ */ jsx(Fragment, {});
2505
2505
  };
2506
2506
  const GroupElementCreationWrapper = ({ components, styles }) => {
2507
- var _a2, _b, _c2, _d2, _e2, _f2, _g2, _h, _i2, _j, _k, _l2, _m, _n2, _o2, _p2, _q, _r2, _s, _t2, _u2, _v, _w2, _x;
2507
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h, _i2, _j, _k, _l2, _m, _n2, _o2, _p2, _q, _r2, _s, _t2, _u2, _v, _w, _x;
2508
2508
  const state = shimExports.useSyncExternalStore(webGroupsStore.subscribe, webGroupsStore.getSnapshot);
2509
2509
  const LoadingAnimation = ((_a2 = components == null ? void 0 : components.frame) == null ? void 0 : _a2.LoadingAnimation) ?? FrameLoadingAnimation;
2510
2510
  const renderGroupCaptionBar = () => {
@@ -3166,7 +3166,7 @@ const GroupElementCreationWrapper = ({ components, styles }) => {
3166
3166
  /* @__PURE__ */ jsx(
3167
3167
  GroupWrapper,
3168
3168
  {
3169
- onCreateGroupCaptionBarRequested: ((_b = components == null ? void 0 : components.group) == null ? void 0 : _b.CaptionBar) ? webGroupsStore.onCreateGroupCaptionBarRequested : void 0,
3169
+ onCreateGroupCaptionBarRequested: ((_b2 = components == null ? void 0 : components.group) == null ? void 0 : _b2.CaptionBar) ? webGroupsStore.onCreateGroupCaptionBarRequested : void 0,
3170
3170
  onCreateGroupOverlayRequested: ((_c2 = components == null ? void 0 : components.group) == null ? void 0 : _c2.Overlay) ? webGroupsStore.onCreateGroupOverlayRequested : void 0,
3171
3171
  onCreateFrameCaptionBarRequested: ((_d2 = components == null ? void 0 : components.flat) == null ? void 0 : _d2.CaptionBar) ? webGroupsStore.onCreateFrameCaptionBarRequested : void 0,
3172
3172
  onCreateFrameWindowOverlayRequested: ((_e2 = components == null ? void 0 : components.frame) == null ? void 0 : _e2.Overlay) ? webGroupsStore.onCreateFrameWindowOverlayRequested : void 0,
@@ -3191,7 +3191,7 @@ const GroupElementCreationWrapper = ({ components, styles }) => {
3191
3191
  onUpdateAboveTabsRequested: ((_t2 = components == null ? void 0 : components.tabs) == null ? void 0 : _t2.Above) ? webGroupsStore.onUpdateAboveTabsRequested : void 0,
3192
3192
  onUpdateBeforeTabsComponentRequested: ((_u2 = components == null ? void 0 : components.tabs) == null ? void 0 : _u2.Before) ? webGroupsStore.onUpdateBeforeTabsRequested : void 0,
3193
3193
  onUpdateTabRequested: ((_v = components == null ? void 0 : components.tabs) == null ? void 0 : _v.Element) ? webGroupsStore.onUpdateTabElementRequested : void 0,
3194
- onUpdateAfterTabsComponentRequested: ((_w2 = components == null ? void 0 : components.tabs) == null ? void 0 : _w2.After) ? webGroupsStore.onUpdateAfterTabsRequested : void 0,
3194
+ onUpdateAfterTabsComponentRequested: ((_w = components == null ? void 0 : components.tabs) == null ? void 0 : _w.After) ? webGroupsStore.onUpdateAfterTabsRequested : void 0,
3195
3195
  onUpdateBelowTabsRequested: ((_x = components == null ? void 0 : components.tabs) == null ? void 0 : _x.Below) ? webGroupsStore.onUpdateBelowTabsRequested : void 0,
3196
3196
  onRemoveFrameCaptionBarRequested: webGroupsStore.onRemoveFrameCaptionBarRequested,
3197
3197
  onRemoveFrameWindowOverlayRequested: webGroupsStore.onRemoveFrameWindowOverlayRequested,
@@ -3221,13 +3221,13 @@ function useIOConnectWindow(windowId) {
3221
3221
  const [IOConnectWindow, setIOConnectWindow] = useState(void 0);
3222
3222
  const io2 = window.io || useContext(IOConnectContext);
3223
3223
  useEffect(() => {
3224
- const unsub = io2.windows.onWindowAdded((w) => {
3225
- if (w.id === windowId) {
3226
- setIOConnectWindow(w);
3224
+ const unsub = io2.windows.onWindowAdded((w2) => {
3225
+ if (w2.id === windowId) {
3226
+ setIOConnectWindow(w2);
3227
3227
  unsub();
3228
3228
  }
3229
3229
  });
3230
- const windowInCollection = io2.windows.list().find((w) => w.id === windowId);
3230
+ const windowInCollection = io2.windows.list().find((w2) => w2.id === windowId);
3231
3231
  if (windowInCollection) {
3232
3232
  setIOConnectWindow(windowInCollection);
3233
3233
  unsub();
@@ -3331,16 +3331,16 @@ const TabOverflowPopup = ({
3331
3331
  hiddenTabsToTheRight.length > 0 && createSection(hiddenTabsToTheRight, "Open right")
3332
3332
  ] });
3333
3333
  };
3334
- function S(e) {
3334
+ function C(e) {
3335
3335
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3336
3336
  }
3337
- var C, N = { exports: {} };
3337
+ var S, N = { exports: {} };
3338
3338
  /*!
3339
3339
  Copyright (c) 2018 Jed Watson.
3340
3340
  Licensed under the MIT License (MIT), see
3341
3341
  http://jedwatson.github.io/classnames
3342
3342
  */
3343
- C = N, function() {
3343
+ S = N, function() {
3344
3344
  var e = {}.hasOwnProperty;
3345
3345
  function t() {
3346
3346
  for (var e2 = "", t2 = 0; t2 < arguments.length; t2++) {
@@ -3366,22 +3366,22 @@ C = N, function() {
3366
3366
  function o2(e2, t2) {
3367
3367
  return t2 ? e2 ? e2 + " " + t2 : e2 + t2 : e2;
3368
3368
  }
3369
- C.exports ? (t.default = t, C.exports = t) : window.classNames = t;
3369
+ S.exports ? (t.default = t, S.exports = t) : window.classNames = t;
3370
3370
  }();
3371
- var E = S(N.exports);
3372
- function I({ className: t, size: n = "16", variant: o2 = "workspace", ...i }) {
3371
+ var E = C(N.exports);
3372
+ function P({ className: t, size: n = "16", variant: o2 = "workspace", ...i }) {
3373
3373
  const r2 = E("icon", n && [`icon-size-${n}`], t);
3374
3374
  return jsx("span", { className: r2, "aria-label": `icon-${o2}`, role: "presentation", ...i, children: jsx("i", { className: `icon-${o2}` }) });
3375
3375
  }
3376
- const P = forwardRef(({ className: t, variant: n = "default", icon: o2 = "workspace", size: i = "16", tooltip: r2, iconSize: s = "16", onClick: c, disabled: l, children: u, ...d }, f) => {
3376
+ const I = forwardRef(({ className: t, variant: n = "default", icon: o2 = "workspace", size: i = "16", tooltip: r2, iconSize: s = "16", onClick: c, disabled: l, children: u, ...d }, f) => {
3377
3377
  const p = E("io-btn-icon", "default" !== n && [`io-btn-icon-${n}`], [`io-btn-icon-size-${i}`], t), m = useCallback((e) => {
3378
3378
  if (!l)
3379
3379
  return c ? c(e) : void 0;
3380
3380
  e.preventDefault();
3381
3381
  }, [c, l]);
3382
- return jsx("button", { className: p, type: "button", ref: f, "aria-label": "icon button", "aria-disabled": l, title: r2, onClick: m, disabled: l, ...d, children: u ?? (o2 && jsx(I, { variant: o2, size: s })) });
3382
+ return jsx("button", { className: p, type: "button", ref: f, "aria-label": "icon button", "aria-disabled": l, title: r2, onClick: m, disabled: l, ...d, children: u ?? (o2 && jsx(P, { variant: o2, size: s })) });
3383
3383
  });
3384
- P.displayName = "ButtonIcon";
3384
+ I.displayName = "ButtonIcon";
3385
3385
  function L({ className: t, variant: n = "default", children: o2, ...i }) {
3386
3386
  const r2 = E("io-badge", "default" !== n && [`io-badge-${n}`], t);
3387
3387
  return jsx("div", { className: r2, ...i, children: o2 });
@@ -3429,7 +3429,7 @@ const $ = forwardRef(({ className: n, variant: o2 = "default", size: i = "normal
3429
3429
  }, [u, d]), y = useCallback((e) => {
3430
3430
  d || R(e) && (e.preventDefault(), g(e));
3431
3431
  }, [g, d]);
3432
- return jsxs("button", { className: h, ref: m, type: "button", "aria-disabled": d, onClick: g, onKeyDown: y, disabled: d, tabIndex: 0, ...p, children: [r2 && !c && jsx(I, { variant: r2, size: s }), f ?? l, r2 && c && jsx(I, { variant: r2, size: s })] });
3432
+ return jsxs("button", { className: h, ref: m, type: "button", "aria-disabled": d, onClick: g, onKeyDown: y, disabled: d, tabIndex: 0, ...p, children: [r2 && !c && jsx(P, { variant: r2, size: s }), f ?? l, r2 && c && jsx(P, { variant: r2, size: s })] });
3433
3433
  });
3434
3434
  $.displayName = "Button";
3435
3435
  const _ = createContext({}), j = forwardRef(({ icon: t = "chevron-down", onClick: n, onKeyDown: o2, ...i }, r2) => {
@@ -3451,7 +3451,7 @@ const z = forwardRef(({ size: t = "32", onClick: n, onKeyDown: o2, ...i }, r2) =
3451
3451
  }, [n, s]), p = useCallback((e) => {
3452
3452
  o2 == null ? void 0 : o2(e), e.defaultPrevented || R(e) && (e.preventDefault(), e.stopPropagation(), s == null ? void 0 : s());
3453
3453
  }, [o2, s]);
3454
- return jsx(P, { size: t, onClick: f, onKeyDown: p, disabled: l, ref: d, ...i });
3454
+ return jsx(I, { size: t, onClick: f, onKeyDown: p, disabled: l, ref: d, ...i });
3455
3455
  });
3456
3456
  function H({ className: t, ...n }) {
3457
3457
  const o2 = E("io-dropdown-content", t);
@@ -3459,10 +3459,10 @@ function H({ className: t, ...n }) {
3459
3459
  }
3460
3460
  z.displayName = "DropdownButtonIcon";
3461
3461
  const W = createContext({}), V = forwardRef((n, o2) => {
3462
- const { className: i, prepend: r2, append: a, isSelected: s, onClick: l, description: u, disabled: d = false, children: f, tooltip: p, ...m } = n, { variant: h = "default", selected: g, checkIcon: y, handleItemClick: v } = useContext(W), w = s ?? (g == null ? void 0 : g.some((e) => e.children === f)), b2 = "default" !== h && !!y, k = b2 || r2, x = E("io-list-item", k && "io-list-item-left", a && "io-list-item-right", "default" !== h && w && "selected", u && "io-list-item-description", d && "io-list-item-disabled", i);
3462
+ const { className: i, prepend: r2, append: a, isSelected: s, onClick: l, description: u, disabled: d = false, children: f, tooltip: p, ...m } = n, { variant: h = "default", selected: g, checkIcon: y, handleItemClick: v } = useContext(W), b = s ?? (g == null ? void 0 : g.some((e) => e.children === f)), w2 = "default" !== h && !!y, k = w2 || r2, x = E("io-list-item", k && "io-list-item-left", a && "io-list-item-right", "default" !== h && b && "selected", u && "io-list-item-description", d && "io-list-item-disabled", i);
3463
3463
  return jsxs("li", { className: x, ref: o2, role: "menuitem", "aria-roledescription": "menuitem", tabIndex: 0, onClick: (e) => {
3464
3464
  d ? e.preventDefault() : (v == null ? void 0 : v(e, { children: f }), l == null ? void 0 : l(e));
3465
- }, ...m, children: [k && jsxs("div", { className: "io-list-left-column", children: [b2 && jsx(I, { variant: y.variant, title: w ? y.tooltip : void 0, "data-testid": "list-item-check-icon" }), r2] }), jsx("span", { className: "io-list-text", title: p, "data-testid": "list-item-title", children: f }), a && jsx("div", { className: "io-list-right-column", children: a }), u && jsx("div", { className: "io-list-text-description", children: u })] });
3465
+ }, ...m, children: [k && jsxs("div", { className: "io-list-left-column", children: [w2 && jsx(P, { variant: y.variant, title: b ? y.tooltip : void 0, "data-testid": "list-item-check-icon" }), r2] }), jsx("span", { className: "io-list-text", title: p, "data-testid": "list-item-title", children: f }), a && jsx("div", { className: "io-list-right-column", children: a }), u && jsx("div", { className: "io-list-text-description", children: u })] });
3466
3466
  });
3467
3467
  V.displayName = "ListItem";
3468
3468
  const U = forwardRef(({ className: n, prepend: o2, append: i, children: r2, tooltip: a, ...s }, c) => {
@@ -3499,8 +3499,8 @@ const X = forwardRef((t, n) => {
3499
3499
  if ("default" === i)
3500
3500
  return;
3501
3501
  const n2 = d.some((e2) => {
3502
- var _a2, _b;
3503
- return ((_a2 = e2.children) == null ? void 0 : _a2.toString()) === ((_b = t2.children) == null ? void 0 : _b.toString());
3502
+ var _a2, _b2;
3503
+ return ((_a2 = e2.children) == null ? void 0 : _a2.toString()) === ((_b2 = t2.children) == null ? void 0 : _b2.toString());
3504
3504
  });
3505
3505
  "single" === i ? f([t2]) : (() => {
3506
3506
  const e2 = n2 ? d.filter((e3) => e3.children !== t2.children) : [...d, t2];
@@ -3550,7 +3550,7 @@ function ie(e, t, n) {
3550
3550
  const re = forwardRef(({ className: t, variant: n = "outline", align: o2 = "down", disabled: i, isOpen: r2, onOpenChange: s, children: c, ...m }, h) => {
3551
3551
  const g = useRef(null), y = useRef(null);
3552
3552
  useImperativeHandle(h, () => y.current, []);
3553
- const { isOpen: v, handleOpen: w, handleClose: b2 } = ((e, t2) => {
3553
+ const { isOpen: v, handleOpen: b, handleClose: w2 } = ((e, t2) => {
3554
3554
  const [n2, o3] = useState(false), i2 = void 0 !== e, r3 = i2 ? e : n2, s2 = useCallback((e2) => {
3555
3555
  i2 || o3(e2), t2 == null ? void 0 : t2(e2);
3556
3556
  }, [i2, t2]), c2 = useCallback(() => s2(true), [s2]), u = useCallback(() => s2(false), [s2]);
@@ -3570,12 +3570,12 @@ const re = forwardRef(({ className: t, variant: n = "outline", align: o2 = "down
3570
3570
  cancelAnimationFrame(i2), document.removeEventListener("mousedown", o3, true);
3571
3571
  };
3572
3572
  }, [e, t2, n2]);
3573
- })(y, b2, v), ie(() => {
3574
- v && b2();
3573
+ })(y, w2, v), ie(() => {
3574
+ v && w2();
3575
3575
  }, ["Escape"], y), ie(() => {
3576
- v || i || g.current !== document.activeElement || w();
3576
+ v || i || g.current !== document.activeElement || b();
3577
3577
  }, ["ArrowDown", "ArrowUp"], y);
3578
- const k = useMemo(() => ({ variant: n, align: o2, disabled: i, isOpen: v, handleOpen: w, handleClose: b2, handleToggle: v ? b2 : w, setTriggerRef: (e) => g.current = e }), [n, o2, i, v, w, b2]), x = E("io-dropdown", v && "io-dropdown-open", "default" !== n && `io-dropdown-${n}`, t);
3578
+ const k = useMemo(() => ({ variant: n, align: o2, disabled: i, isOpen: v, handleOpen: b, handleClose: w2, handleToggle: v ? w2 : b, setTriggerRef: (e) => g.current = e }), [n, o2, i, v, b, w2]), x = E("io-dropdown", v && "io-dropdown-open", "default" !== n && `io-dropdown-${n}`, t);
3579
3579
  return jsx(_.Provider, { value: k, children: jsx("div", { className: x, ref: y, ...m, children: c }) });
3580
3580
  });
3581
3581
  function ae({ className: t, variant: n = "default", align: o2 = "left", children: i, ...r2 }) {
@@ -3614,7 +3614,7 @@ function fe({ className: n, variant: o2 = "default", title: i = "Dialog Title",
3614
3614
  }, onKeyDown: (e) => {
3615
3615
  const t = e.target instanceof HTMLDialogElement && "DIALOG" === e.target.nodeName;
3616
3616
  r2 && s && " " === e.key && t && s();
3617
- }, ...l, children: [jsxs(ce, { draggable: a, children: [jsx("h3", { "data-testid": "io-dialog-title", children: i }), jsx(ae, { children: jsx(P, { className: "non-draggable", "data-testid": "io-dialog-close-button", size: "24", icon: "close", iconSize: "12", onClick: s, tabIndex: -1 }) })] }), c] });
3617
+ }, ...l, children: [jsxs(ce, { draggable: a, children: [jsx("h3", { "data-testid": "io-dialog-title", children: i }), jsx(ae, { children: jsx(I, { className: "non-draggable", "data-testid": "io-dialog-close-button", size: "24", icon: "close", iconSize: "12", onClick: s, tabIndex: -1 }) })] }), c] });
3618
3618
  }
3619
3619
  function pe() {
3620
3620
  return "undefined" != typeof window;
@@ -3636,24 +3636,24 @@ function ye(e) {
3636
3636
  function ve(e) {
3637
3637
  return !!pe() && (e instanceof Element || e instanceof he(e).Element);
3638
3638
  }
3639
- function we(e) {
3639
+ function be(e) {
3640
3640
  return !!pe() && (e instanceof HTMLElement || e instanceof he(e).HTMLElement);
3641
3641
  }
3642
- function be(e) {
3642
+ function we(e) {
3643
3643
  return !(!pe() || "undefined" == typeof ShadowRoot) && (e instanceof ShadowRoot || e instanceof he(e).ShadowRoot);
3644
3644
  }
3645
- re.Button = j, re.ButtonIcon = z, re.Content = H, re.List = Z, re.Item = ee, re.ItemTitle = te, re.ItemSection = ne, re.Separator = oe, ae.Button = $, ae.ButtonIcon = P, ae.Dropdown = re, se.Title = D, se.ButtonGroup = ae, se.Button = $, se.ButtonIcon = P, se.Dropdown = re, ce.Title = D, ce.ButtonGroup = ae, ce.Button = $, ce.ButtonIcon = P, ce.Dropdown = re, le.Content = function({ className: t, children: n, ...o2 }) {
3645
+ re.Button = j, re.ButtonIcon = z, re.Content = H, re.List = Z, re.Item = ee, re.ItemTitle = te, re.ItemSection = ne, re.Separator = oe, ae.Button = $, ae.ButtonIcon = I, ae.Dropdown = re, se.Title = D, se.ButtonGroup = ae, se.Button = $, se.ButtonIcon = I, se.Dropdown = re, ce.Title = D, ce.ButtonGroup = ae, ce.Button = $, ce.ButtonIcon = I, ce.Dropdown = re, le.Content = function({ className: t, children: n, ...o2 }) {
3646
3646
  const i = E("io-dialog-content", t);
3647
3647
  return jsx("div", { className: i, ...o2, children: n });
3648
- }, ue.ButtonGroup = ae, ue.Button = $, ue.ButtonIcon = P, ue.Dropdown = re, de.ButtonGroup = ae, de.Button = $, de.ButtonIcon = P, de.Dropdown = re, fe.Header = ce, fe.Body = le, fe.Footer = de;
3648
+ }, ue.ButtonGroup = ae, ue.Button = $, ue.ButtonIcon = I, ue.Dropdown = re, de.ButtonGroup = ae, de.Button = $, de.ButtonIcon = I, de.Dropdown = re, fe.Header = ce, fe.Body = le, fe.Footer = de;
3649
3649
  const ke = /* @__PURE__ */ new Set(["inline", "contents"]);
3650
3650
  function xe(e) {
3651
3651
  const { overflow: t, overflowX: n, overflowY: o2, display: i } = Re(e);
3652
3652
  return /auto|scroll|overlay|hidden|clip/.test(t + o2 + n) && !ke.has(i);
3653
3653
  }
3654
- const Se = /* @__PURE__ */ new Set(["table", "td", "th"]);
3655
- function Ce(e) {
3656
- return Se.has(me(e));
3654
+ const Ce = /* @__PURE__ */ new Set(["table", "td", "th"]);
3655
+ function Se(e) {
3656
+ return Ce.has(me(e));
3657
3657
  }
3658
3658
  const Ne = [":popover-open", ":modal"];
3659
3659
  function Ee(e) {
@@ -3665,10 +3665,10 @@ function Ee(e) {
3665
3665
  }
3666
3666
  });
3667
3667
  }
3668
- const Ie = ["transform", "translate", "scale", "rotate", "perspective"], Pe = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Ae = ["paint", "layout", "strict", "content"];
3668
+ const Pe = ["transform", "translate", "scale", "rotate", "perspective"], Ie = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Ae = ["paint", "layout", "strict", "content"];
3669
3669
  function Oe(e) {
3670
3670
  const t = Le(), n = ve(e) ? Re(e) : e;
3671
- return Ie.some((e2) => !!n[e2] && "none" !== n[e2]) || !!n.containerType && "normal" !== n.containerType || !t && !!n.backdropFilter && "none" !== n.backdropFilter || !t && !!n.filter && "none" !== n.filter || Pe.some((e2) => (n.willChange || "").includes(e2)) || Ae.some((e2) => (n.contain || "").includes(e2));
3671
+ return Pe.some((e2) => !!n[e2] && "none" !== n[e2]) || !!n.containerType && "normal" !== n.containerType || !t && !!n.backdropFilter && "none" !== n.backdropFilter || !t && !!n.filter && "none" !== n.filter || Ie.some((e2) => (n.willChange || "").includes(e2)) || Ae.some((e2) => (n.contain || "").includes(e2));
3672
3672
  }
3673
3673
  function Le() {
3674
3674
  return !("undefined" == typeof CSS || !CSS.supports) && CSS.supports("-webkit-backdrop-filter", "none");
@@ -3686,12 +3686,12 @@ function Be(e) {
3686
3686
  function Me(e) {
3687
3687
  if ("html" === me(e))
3688
3688
  return e;
3689
- const t = e.assignedSlot || e.parentNode || be(e) && e.host || ge(e);
3690
- return be(t) ? t.host : t;
3689
+ const t = e.assignedSlot || e.parentNode || we(e) && e.host || ge(e);
3690
+ return we(t) ? t.host : t;
3691
3691
  }
3692
3692
  function Fe(e) {
3693
3693
  const t = Me(e);
3694
- return Te(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : we(t) && xe(t) ? t : Fe(t);
3694
+ return Te(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : be(t) && xe(t) ? t : Fe(t);
3695
3695
  }
3696
3696
  function $e(e, t, n) {
3697
3697
  var o2;
@@ -3720,7 +3720,7 @@ function ze(e, t) {
3720
3720
  const n = null == t.getRootNode ? void 0 : t.getRootNode();
3721
3721
  if (e.contains(t))
3722
3722
  return true;
3723
- if (n && be(n)) {
3723
+ if (n && we(n)) {
3724
3724
  let n2 = t;
3725
3725
  for (; n2; ) {
3726
3726
  if (e === n2)
@@ -3773,7 +3773,7 @@ function Xe(e) {
3773
3773
  return "composedPath" in e ? e.composedPath()[0] : e.target;
3774
3774
  }
3775
3775
  function Qe(e) {
3776
- return we(e) && e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])");
3776
+ return be(e) && e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])");
3777
3777
  }
3778
3778
  function Ze(e) {
3779
3779
  e.preventDefault(), e.stopPropagation();
@@ -3810,27 +3810,27 @@ function gt(e) {
3810
3810
  function yt(e) {
3811
3811
  return e.replace(/start|end/g, (e2) => st[e2]);
3812
3812
  }
3813
- const vt = ["left", "right"], wt = ["right", "left"], bt = ["top", "bottom"], kt = ["bottom", "top"];
3813
+ const vt = ["left", "right"], bt = ["right", "left"], wt = ["top", "bottom"], kt = ["bottom", "top"];
3814
3814
  function xt(e, t, n, o2) {
3815
3815
  const i = dt(e);
3816
3816
  let r2 = function(e2, t2, n2) {
3817
3817
  switch (e2) {
3818
3818
  case "top":
3819
3819
  case "bottom":
3820
- return n2 ? t2 ? wt : vt : t2 ? vt : wt;
3820
+ return n2 ? t2 ? bt : vt : t2 ? vt : bt;
3821
3821
  case "left":
3822
3822
  case "right":
3823
- return t2 ? bt : kt;
3823
+ return t2 ? wt : kt;
3824
3824
  default:
3825
3825
  return [];
3826
3826
  }
3827
3827
  }(ut(e), "start" === n, o2);
3828
3828
  return i && (r2 = r2.map((e2) => e2 + "-" + i), t && (r2 = r2.concat(r2.map(yt)))), r2;
3829
3829
  }
3830
- function St(e) {
3830
+ function Ct(e) {
3831
3831
  return e.replace(/left|right|bottom|top/g, (e2) => at[e2]);
3832
3832
  }
3833
- function Ct(e) {
3833
+ function St(e) {
3834
3834
  const { x: t, y: n, width: o2, height: i } = e;
3835
3835
  return { width: o2, height: i, top: n, left: t, right: t + o2, bottom: n + i, x: t, y: n };
3836
3836
  }
@@ -3838,8 +3838,8 @@ function Ct(e) {
3838
3838
  * tabbable 6.4.0
3839
3839
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
3840
3840
  */
3841
- var Nt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"].join(","), Et = "undefined" == typeof Element, It = Et ? function() {
3842
- } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Pt = !Et && Element.prototype.getRootNode ? function(e) {
3841
+ var Nt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"].join(","), Et = "undefined" == typeof Element, Pt = Et ? function() {
3842
+ } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, It = !Et && Element.prototype.getRootNode ? function(e) {
3843
3843
  var t;
3844
3844
  return null == e || null === (t = e.getRootNode) || void 0 === t ? void 0 : t.call(e);
3845
3845
  } : function(e) {
@@ -3857,7 +3857,7 @@ var Nt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
3857
3857
  var a = r2.assignedElements(), s = a.length ? a : r2.children, c = Ot(s, true, n);
3858
3858
  n.flatten ? o2.push.apply(o2, c) : o2.push({ scopeParent: r2, candidates: c });
3859
3859
  } else {
3860
- It.call(r2, Nt) && n.filter(r2) && (t || !e.includes(r2)) && o2.push(r2);
3860
+ Pt.call(r2, Nt) && n.filter(r2) && (t || !e.includes(r2)) && o2.push(r2);
3861
3861
  var l = r2.shadowRoot || "function" == typeof n.getShadowRoot && n.getShadowRoot(r2), u = !At(l, false) && (!n.shadowRootFilter || n.shadowRootFilter(r2));
3862
3862
  if (l && u) {
3863
3863
  var d = Ot(true === l ? r2.children : l.children, true, n);
@@ -3886,7 +3886,7 @@ var Nt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
3886
3886
  }(e) && !function(e2) {
3887
3887
  if (!e2.name)
3888
3888
  return true;
3889
- var t, n = e2.form || Pt(e2), o2 = function(e3) {
3889
+ var t, n = e2.form || It(e2), o2 = function(e3) {
3890
3890
  return n.querySelectorAll('input[type="radio"][name="' + e3 + '"]');
3891
3891
  };
3892
3892
  if ("undefined" != typeof window && void 0 !== window.CSS && "function" == typeof window.CSS.escape)
@@ -3913,8 +3913,8 @@ var Nt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
3913
3913
  return !e.checkVisibility({ checkOpacity: false, opacityProperty: false, contentVisibilityAuto: true, visibilityProperty: true, checkVisibilityCSS: true });
3914
3914
  if ("hidden" === getComputedStyle(e).visibility)
3915
3915
  return true;
3916
- var i = It.call(e, "details>summary:first-of-type") ? e.parentElement : e;
3917
- if (It.call(i, "details:not([open]) *"))
3916
+ var i = Pt.call(e, "details>summary:first-of-type") ? e.parentElement : e;
3917
+ if (Pt.call(i, "details:not([open]) *"))
3918
3918
  return true;
3919
3919
  if (n && "full" !== n && "full-native" !== n && "legacy-full" !== n) {
3920
3920
  if ("non-zero-area" === n)
@@ -3922,7 +3922,7 @@ var Nt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
3922
3922
  } else {
3923
3923
  if ("function" == typeof o2) {
3924
3924
  for (var r2 = e; e; ) {
3925
- var a = e.parentElement, s = Pt(e);
3925
+ var a = e.parentElement, s = It(e);
3926
3926
  if (a && !a.shadowRoot && true === o2(a))
3927
3927
  return Mt(e);
3928
3928
  e = e.assignedSlot ? e.assignedSlot : a || s === e.ownerDocument ? a : s.host;
@@ -3930,11 +3930,11 @@ var Nt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
3930
3930
  e = r2;
3931
3931
  }
3932
3932
  if (function(e2) {
3933
- var t2, n2, o3, i2, r3 = e2 && Pt(e2), a2 = null === (t2 = r3) || void 0 === t2 ? void 0 : t2.host, s2 = false;
3933
+ var t2, n2, o3, i2, r3 = e2 && It(e2), a2 = null === (t2 = r3) || void 0 === t2 ? void 0 : t2.host, s2 = false;
3934
3934
  if (r3 && r3 !== e2)
3935
3935
  for (s2 = !!(null !== (n2 = a2) && void 0 !== n2 && null !== (o3 = n2.ownerDocument) && void 0 !== o3 && o3.contains(a2) || null != e2 && null !== (i2 = e2.ownerDocument) && void 0 !== i2 && i2.contains(e2)); !s2 && a2; ) {
3936
3936
  var c, l, u;
3937
- s2 = !(null === (l = a2 = null === (c = r3 = Pt(a2)) || void 0 === c ? void 0 : c.host) || void 0 === l || null === (u = l.ownerDocument) || void 0 === u || !u.contains(a2));
3937
+ s2 = !(null === (l = a2 = null === (c = r3 = It(a2)) || void 0 === c ? void 0 : c.host) || void 0 === l || null === (u = l.ownerDocument) || void 0 === u || !u.contains(a2));
3938
3938
  }
3939
3939
  return s2;
3940
3940
  }(e))
@@ -3957,7 +3957,7 @@ var Nt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
3957
3957
  for (var n = 0; n < t2.children.length; n++) {
3958
3958
  var o2 = t2.children.item(n);
3959
3959
  if ("LEGEND" === o2.tagName)
3960
- return !!It.call(t2, "fieldset[disabled] *") || !o2.contains(e2);
3960
+ return !!Pt.call(t2, "fieldset[disabled] *") || !o2.contains(e2);
3961
3961
  }
3962
3962
  return true;
3963
3963
  }
@@ -3987,7 +3987,7 @@ var Nt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
3987
3987
  if (At(e2))
3988
3988
  return [];
3989
3989
  var o2 = Array.prototype.slice.apply(e2.querySelectorAll(Nt));
3990
- return t2 && It.call(e2, Nt) && o2.unshift(e2), o2.filter(n2);
3990
+ return t2 && Pt.call(e2, Nt) && o2.unshift(e2), o2.filter(n2);
3991
3991
  }(e, t.includeContainer, _t.bind(null, t)), zt(n);
3992
3992
  };
3993
3993
  function Wt(e, t, n) {
@@ -4026,14 +4026,14 @@ async function Vt(e, t) {
4026
4026
  return "number" != typeof e2 ? function(e3) {
4027
4027
  return { top: 0, right: 0, bottom: 0, left: 0, ...e3 };
4028
4028
  }(e2) : { top: e2, right: e2, bottom: e2, left: e2 };
4029
- }(p), h = s[f ? "floating" === d ? "reference" : "floating" : d], g = Ct(await r2.getClippingRect({ element: null == (n = await (null == r2.isElement ? void 0 : r2.isElement(h))) || n ? h : h.contextElement || await (null == r2.getDocumentElement ? void 0 : r2.getDocumentElement(s.floating)), boundary: l, rootBoundary: u, strategy: c })), y = "floating" === d ? { x: o2, y: i, width: a.floating.width, height: a.floating.height } : a.reference, v = await (null == r2.getOffsetParent ? void 0 : r2.getOffsetParent(s.floating)), w = await (null == r2.isElement ? void 0 : r2.isElement(v)) && await (null == r2.getScale ? void 0 : r2.getScale(v)) || { x: 1, y: 1 }, b2 = Ct(r2.convertOffsetParentRelativeRectToViewportRelativeRect ? await r2.convertOffsetParentRelativeRectToViewportRelativeRect({ elements: s, rect: y, offsetParent: v, strategy: c }) : y);
4030
- return { top: (g.top - b2.top + m.top) / w.y, bottom: (b2.bottom - g.bottom + m.bottom) / w.y, left: (g.left - b2.left + m.left) / w.x, right: (b2.right - g.right + m.right) / w.x };
4029
+ }(p), h = s[f ? "floating" === d ? "reference" : "floating" : d], g = St(await r2.getClippingRect({ element: null == (n = await (null == r2.isElement ? void 0 : r2.isElement(h))) || n ? h : h.contextElement || await (null == r2.getDocumentElement ? void 0 : r2.getDocumentElement(s.floating)), boundary: l, rootBoundary: u, strategy: c })), y = "floating" === d ? { x: o2, y: i, width: a.floating.width, height: a.floating.height } : a.reference, v = await (null == r2.getOffsetParent ? void 0 : r2.getOffsetParent(s.floating)), b = await (null == r2.isElement ? void 0 : r2.isElement(v)) && await (null == r2.getScale ? void 0 : r2.getScale(v)) || { x: 1, y: 1 }, w2 = St(r2.convertOffsetParentRelativeRectToViewportRelativeRect ? await r2.convertOffsetParentRelativeRectToViewportRelativeRect({ elements: s, rect: y, offsetParent: v, strategy: c }) : y);
4030
+ return { top: (g.top - w2.top + m.top) / b.y, bottom: (w2.bottom - g.bottom + m.bottom) / b.y, left: (g.left - w2.left + m.left) / b.x, right: (w2.right - g.right + m.right) / b.x };
4031
4031
  }
4032
4032
  const Ut = /* @__PURE__ */ new Set(["left", "top"]);
4033
4033
  function Kt(e) {
4034
4034
  const t = Re(e);
4035
4035
  let n = parseFloat(t.width) || 0, o2 = parseFloat(t.height) || 0;
4036
- const i = we(e), r2 = i ? e.offsetWidth : n, a = i ? e.offsetHeight : o2, s = ot(n) !== r2 || ot(o2) !== a;
4036
+ const i = be(e), r2 = i ? e.offsetWidth : n, a = i ? e.offsetHeight : o2, s = ot(n) !== r2 || ot(o2) !== a;
4037
4037
  return s && (n = r2, o2 = a), { width: n, height: o2, $: s };
4038
4038
  }
4039
4039
  function Gt(e) {
@@ -4041,7 +4041,7 @@ function Gt(e) {
4041
4041
  }
4042
4042
  function qt(e) {
4043
4043
  const t = Gt(e);
4044
- if (!we(t))
4044
+ if (!be(t))
4045
4045
  return rt(1);
4046
4046
  const n = t.getBoundingClientRect(), { width: o2, height: i, $: r2 } = Kt(t);
4047
4047
  let a = (r2 ? ot(n.width) : n.width) / o2, s = (r2 ? ot(n.height) : n.height) / i;
@@ -4069,7 +4069,7 @@ function Xt(e, t, n, o2) {
4069
4069
  c *= e3.x, l *= e3.y, u *= e3.x, d *= e3.y, c += r3, l += a2, n2 = he(i2), i2 = _e(n2);
4070
4070
  }
4071
4071
  }
4072
- return Ct({ width: u, height: d, x: c, y: l });
4072
+ return St({ width: u, height: d, x: c, y: l });
4073
4073
  }
4074
4074
  function Qt(e, t) {
4075
4075
  const n = Be(e).scrollLeft;
@@ -4108,21 +4108,21 @@ function tn(e, t, n) {
4108
4108
  }(ge(e));
4109
4109
  else if (ve(t))
4110
4110
  o2 = function(e2, t2) {
4111
- const n2 = Xt(e2, true, "fixed" === t2), o3 = n2.top + e2.clientTop, i = n2.left + e2.clientLeft, r2 = we(e2) ? qt(e2) : rt(1);
4111
+ const n2 = Xt(e2, true, "fixed" === t2), o3 = n2.top + e2.clientTop, i = n2.left + e2.clientLeft, r2 = be(e2) ? qt(e2) : rt(1);
4112
4112
  return { width: e2.clientWidth * r2.x, height: e2.clientHeight * r2.y, x: i * r2.x, y: o3 * r2.y };
4113
4113
  }(t, n);
4114
4114
  else {
4115
4115
  const n2 = Yt(e);
4116
4116
  o2 = { x: t.x - n2.x, y: t.y - n2.y, width: t.width, height: t.height };
4117
4117
  }
4118
- return Ct(o2);
4118
+ return St(o2);
4119
4119
  }
4120
4120
  function nn(e, t) {
4121
4121
  const n = Me(e);
4122
4122
  return !(n === t || !ve(n) || Te(n)) && ("fixed" === Re(n).position || nn(n, t));
4123
4123
  }
4124
4124
  function on(e, t, n) {
4125
- const o2 = we(t), i = ge(t), r2 = "fixed" === n, a = Xt(e, true, r2, t);
4125
+ const o2 = be(t), i = ge(t), r2 = "fixed" === n, a = Xt(e, true, r2, t);
4126
4126
  let s = { scrollLeft: 0, scrollTop: 0 };
4127
4127
  const c = rt(0);
4128
4128
  function l() {
@@ -4142,7 +4142,7 @@ function rn(e) {
4142
4142
  return "static" === Re(e).position;
4143
4143
  }
4144
4144
  function an(e, t) {
4145
- if (!we(e) || "fixed" === Re(e).position)
4145
+ if (!be(e) || "fixed" === Re(e).position)
4146
4146
  return null;
4147
4147
  if (t)
4148
4148
  return t(e);
@@ -4153,7 +4153,7 @@ function sn(e, t) {
4153
4153
  const n = he(e);
4154
4154
  if (Ee(e))
4155
4155
  return n;
4156
- if (!we(e)) {
4156
+ if (!be(e)) {
4157
4157
  let t2 = Me(e);
4158
4158
  for (; t2 && !Te(t2); ) {
4159
4159
  if (ve(t2) && !rn(t2))
@@ -4163,11 +4163,11 @@ function sn(e, t) {
4163
4163
  return n;
4164
4164
  }
4165
4165
  let o2 = an(e, t);
4166
- for (; o2 && Ce(o2) && rn(o2); )
4166
+ for (; o2 && Se(o2) && rn(o2); )
4167
4167
  o2 = an(o2, t);
4168
4168
  return o2 && Te(o2) && rn(o2) && !Oe(o2) ? n : o2 || function(e2) {
4169
4169
  let t2 = Me(e2);
4170
- for (; we(t2) && !Te(t2); ) {
4170
+ for (; be(t2) && !Te(t2); ) {
4171
4171
  if (Oe(t2))
4172
4172
  return t2;
4173
4173
  if (Ee(t2))
@@ -4183,8 +4183,8 @@ const cn = { convertOffsetParentRelativeRectToViewportRelativeRect: function(e)
4183
4183
  if (o2 === a || s && r2)
4184
4184
  return n;
4185
4185
  let c = { scrollLeft: 0, scrollTop: 0 }, l = rt(1);
4186
- const u = rt(0), d = we(o2);
4187
- if ((d || !d && !r2) && (("body" !== me(o2) || xe(a)) && (c = Be(o2)), we(o2))) {
4186
+ const u = rt(0), d = be(o2);
4187
+ if ((d || !d && !r2) && (("body" !== me(o2) || xe(a)) && (c = Be(o2)), be(o2))) {
4188
4188
  const e2 = Xt(o2);
4189
4189
  l = qt(o2), u.x = e2.x + o2.clientLeft, u.y = e2.y + o2.clientTop;
4190
4190
  }
@@ -4316,30 +4316,30 @@ const dn = function(e) {
4316
4316
  const { placement: i, middlewareData: r2, rects: a, initialPlacement: s, platform: c, elements: l } = t, { mainAxis: u = true, crossAxis: d = true, fallbackPlacements: f, fallbackStrategy: p = "bestFit", fallbackAxisSideDirection: m = "none", flipAlignment: h = true, ...g } = lt(e, t);
4317
4317
  if (null != (n = r2.arrow) && n.alignmentOffset)
4318
4318
  return {};
4319
- const y = ut(i), v = ht(s), w = ut(s) === s, b2 = await (null == c.isRTL ? void 0 : c.isRTL(l.floating)), k = f || (w || !h ? [St(s)] : function(e2) {
4320
- const t2 = St(e2);
4319
+ const y = ut(i), v = ht(s), b = ut(s) === s, w2 = await (null == c.isRTL ? void 0 : c.isRTL(l.floating)), k = f || (b || !h ? [Ct(s)] : function(e2) {
4320
+ const t2 = Ct(e2);
4321
4321
  return [yt(e2), t2, yt(t2)];
4322
4322
  }(s)), x = "none" !== m;
4323
- !f && x && k.push(...xt(s, h, m, b2));
4324
- const S2 = [s, ...k], C2 = await c.detectOverflow(t, g), N2 = [];
4323
+ !f && x && k.push(...xt(s, h, m, w2));
4324
+ const C2 = [s, ...k], S2 = await c.detectOverflow(t, g), N2 = [];
4325
4325
  let E2 = (null == (o2 = r2.flip) ? void 0 : o2.overflows) || [];
4326
- if (u && N2.push(C2[y]), d) {
4326
+ if (u && N2.push(S2[y]), d) {
4327
4327
  const e2 = function(e3, t2, n2) {
4328
4328
  void 0 === n2 && (n2 = false);
4329
4329
  const o3 = dt(e3), i2 = gt(e3), r3 = pt(i2);
4330
4330
  let a2 = "x" === i2 ? o3 === (n2 ? "end" : "start") ? "right" : "left" : "start" === o3 ? "bottom" : "top";
4331
- return t2.reference[r3] > t2.floating[r3] && (a2 = St(a2)), [a2, St(a2)];
4332
- }(i, a, b2);
4333
- N2.push(C2[e2[0]], C2[e2[1]]);
4331
+ return t2.reference[r3] > t2.floating[r3] && (a2 = Ct(a2)), [a2, Ct(a2)];
4332
+ }(i, a, w2);
4333
+ N2.push(S2[e2[0]], S2[e2[1]]);
4334
4334
  }
4335
4335
  if (E2 = [...E2, { placement: i, overflows: N2 }], !N2.every((e2) => e2 <= 0)) {
4336
- var I2, P2;
4337
- const e2 = ((null == (I2 = r2.flip) ? void 0 : I2.index) || 0) + 1, t2 = S2[e2];
4336
+ var P2, I2;
4337
+ const e2 = ((null == (P2 = r2.flip) ? void 0 : P2.index) || 0) + 1, t2 = C2[e2];
4338
4338
  if (t2) {
4339
4339
  if (!("alignment" === d && v !== ht(t2)) || E2.every((e3) => ht(e3.placement) !== v || e3.overflows[0] > 0))
4340
4340
  return { data: { index: e2, overflows: E2 }, reset: { placement: t2 } };
4341
4341
  }
4342
- let n2 = null == (P2 = E2.filter((e3) => e3.overflows[0] <= 0).sort((e3, t3) => e3.overflows[1] - t3.overflows[1])[0]) ? void 0 : P2.placement;
4342
+ let n2 = null == (I2 = E2.filter((e3) => e3.overflows[0] <= 0).sort((e3, t3) => e3.overflows[1] - t3.overflows[1])[0]) ? void 0 : I2.placement;
4343
4343
  if (!n2)
4344
4344
  switch (p) {
4345
4345
  case "bestFit": {
@@ -4369,8 +4369,8 @@ const dn = function(e) {
4369
4369
  let l = await a.getElementRects({ reference: e2, floating: t2, strategy: i2 }), { x: u, y: d } = Wt(l, o3, c), f = o3, p = {}, m = 0;
4370
4370
  for (let n3 = 0; n3 < s.length; n3++) {
4371
4371
  var h;
4372
- const { name: r4, fn: g } = s[n3], { x: y, y: v, data: w, reset: b2 } = await g({ x: u, y: d, initialPlacement: o3, placement: f, strategy: i2, middlewareData: p, rects: l, platform: { ...a, detectOverflow: null != (h = a.detectOverflow) ? h : Vt }, elements: { reference: e2, floating: t2 } });
4373
- u = null != y ? y : u, d = null != v ? v : d, p = { ...p, [r4]: { ...p[r4], ...w } }, b2 && m <= 50 && (m++, "object" == typeof b2 && (b2.placement && (f = b2.placement), b2.rects && (l = true === b2.rects ? await a.getElementRects({ reference: e2, floating: t2, strategy: i2 }) : b2.rects), { x: u, y: d } = Wt(l, f, c)), n3 = -1);
4372
+ const { name: r4, fn: g } = s[n3], { x: y, y: v, data: b, reset: w2 } = await g({ x: u, y: d, initialPlacement: o3, placement: f, strategy: i2, middlewareData: p, rects: l, platform: { ...a, detectOverflow: null != (h = a.detectOverflow) ? h : Vt }, elements: { reference: e2, floating: t2 } });
4373
+ u = null != y ? y : u, d = null != v ? v : d, p = { ...p, [r4]: { ...p[r4], ...b } }, w2 && m <= 50 && (m++, "object" == typeof w2 && (w2.placement && (f = w2.placement), w2.rects && (l = true === w2.rects ? await a.getElementRects({ reference: e2, floating: t2, strategy: i2 }) : w2.rects), { x: u, y: d } = Wt(l, f, c)), n3 = -1);
4374
4374
  }
4375
4375
  return { x: u, y: d, placement: f, strategy: i2, middlewareData: p };
4376
4376
  })(e, t, { ...i, platform: r2 });
@@ -4417,13 +4417,13 @@ function vn(e, t) {
4417
4417
  const n = yn(e);
4418
4418
  return Math.round(t * n) / n;
4419
4419
  }
4420
- function wn(e) {
4420
+ function bn(e) {
4421
4421
  const t = o.useRef(e);
4422
4422
  return hn(() => {
4423
4423
  t.current = e;
4424
4424
  }), t;
4425
4425
  }
4426
- const bn = (e, t) => ({ ...fn(e), options: [e, t] }), kn = (e, t) => ({ ...pn(e), options: [e, t] });
4426
+ const wn = (e, t) => ({ ...fn(e), options: [e, t] }), kn = (e, t) => ({ ...pn(e), options: [e, t] });
4427
4427
  function xn(e) {
4428
4428
  return o.useMemo(() => e.every((e2) => null == e2) ? null : (t) => {
4429
4429
  e.forEach((e2) => {
@@ -4431,13 +4431,13 @@ function xn(e) {
4431
4431
  });
4432
4432
  }, e);
4433
4433
  }
4434
- const Sn = { ...o }, Cn = Sn.useInsertionEffect || ((e) => e());
4434
+ const Cn = { ...o }, Sn = Cn.useInsertionEffect || ((e) => e());
4435
4435
  function Nn(e) {
4436
4436
  const t = o.useRef(() => {
4437
4437
  if ("production" !== process.env.NODE_ENV)
4438
4438
  throw new Error("Cannot call an event handler while rendering.");
4439
4439
  });
4440
- return Cn(() => {
4440
+ return Sn(() => {
4441
4441
  t.current = e;
4442
4442
  }), o.useCallback(function() {
4443
4443
  for (var e2 = arguments.length, n = new Array(e2), o2 = 0; o2 < e2; o2++)
@@ -4445,7 +4445,7 @@ function Nn(e) {
4445
4445
  return null == t.current ? void 0 : t.current(...n);
4446
4446
  }, []);
4447
4447
  }
4448
- const En = "ArrowUp", In = "ArrowDown", Pn = "ArrowLeft", An = "ArrowRight";
4448
+ const En = "ArrowUp", Pn = "ArrowDown", In = "ArrowLeft", An = "ArrowRight";
4449
4449
  function On(e, t, n) {
4450
4450
  return Math.floor(e / t) !== n;
4451
4451
  }
@@ -4554,7 +4554,7 @@ function Wn() {
4554
4554
  }
4555
4555
  let Vn = false, Un = 0;
4556
4556
  const Kn = () => "floating-ui-" + Math.random().toString(36).slice(2, 6) + Un++;
4557
- const Gn = Sn.useId || function() {
4557
+ const Gn = Cn.useId || function() {
4558
4558
  const [e, t] = o.useState(() => Vn ? Kn() : void 0);
4559
4559
  return $n(() => {
4560
4560
  null == e && t(Kn());
@@ -4675,13 +4675,13 @@ function yo(e, t, n) {
4675
4675
  return go(e.concat(Array.from(o2.querySelectorAll("[aria-live]"))), o2, t, n);
4676
4676
  }
4677
4677
  const vo = () => ({ getShadowRoot: true, displayCheck: "function" == typeof ResizeObserver && ResizeObserver.toString().includes("[native code]") ? "full" : "none" });
4678
- function wo(e, t) {
4678
+ function bo(e, t) {
4679
4679
  const n = Ht(e, vo());
4680
4680
  "prev" === t && n.reverse();
4681
4681
  const o2 = n.indexOf(je(Je(e)));
4682
4682
  return n.slice(o2 + 1)[0];
4683
4683
  }
4684
- function bo(e, t) {
4684
+ function wo(e, t) {
4685
4685
  const n = t || e.currentTarget, o2 = e.relatedTarget;
4686
4686
  return !o2 || !ze(n, o2);
4687
4687
  }
@@ -4689,45 +4689,45 @@ const ko = { border: 0, clip: "rect(0 0 0 0)", height: "1px", margin: "-1px", ov
4689
4689
  function xo(e) {
4690
4690
  "Tab" === e.key && (e.target, clearTimeout(void 0));
4691
4691
  }
4692
- const So = o.forwardRef(function(e, t) {
4692
+ const Co = o.forwardRef(function(e, t) {
4693
4693
  const [n, i] = o.useState();
4694
4694
  $n(() => (Ke() && i("button"), document.addEventListener("keydown", xo), () => {
4695
4695
  document.removeEventListener("keydown", xo);
4696
4696
  }), []);
4697
4697
  const r2 = { ref: t, tabIndex: 0, role: n, "aria-hidden": !n || void 0, [oo("focus-guard")]: "", style: ko };
4698
4698
  return o.createElement("span", Wn({}, e, r2));
4699
- }), Co = o.createContext(null), No = "data-floating-ui-focusable";
4699
+ }), So = o.createContext(null), No = "data-floating-ui-focusable";
4700
4700
  function Eo(e) {
4701
4701
  return e ? e.hasAttribute(No) ? e : e.querySelector("[" + No + "]") || e : null;
4702
4702
  }
4703
- let Io = [];
4704
- function Po(e) {
4705
- Io = Io.filter((e2) => e2.isConnected);
4703
+ let Po = [];
4704
+ function Io(e) {
4705
+ Po = Po.filter((e2) => e2.isConnected);
4706
4706
  let t = e;
4707
4707
  if (t && "body" !== me(t)) {
4708
4708
  if (!function(e2, t2) {
4709
4709
  if (t2 = t2 || {}, !e2)
4710
4710
  throw new Error("No node provided");
4711
- return false !== It.call(e2, Nt) && _t(t2, e2);
4711
+ return false !== Pt.call(e2, Nt) && _t(t2, e2);
4712
4712
  }(t, vo())) {
4713
4713
  const e2 = Ht(t, vo())[0];
4714
4714
  e2 && (t = e2);
4715
4715
  }
4716
- Io.push(t), Io.length > 20 && (Io = Io.slice(-20));
4716
+ Po.push(t), Po.length > 20 && (Po = Po.slice(-20));
4717
4717
  }
4718
4718
  }
4719
4719
  function Ao() {
4720
- return Io.slice().reverse().find((e) => e.isConnected);
4720
+ return Po.slice().reverse().find((e) => e.isConnected);
4721
4721
  }
4722
4722
  const Oo = o.forwardRef(function(e, t) {
4723
4723
  return o.createElement("button", Wn({}, e, { type: "button", ref: t, tabIndex: -1, style: ko }));
4724
4724
  });
4725
4725
  function Lo(e) {
4726
- const { context: t, children: n, disabled: i = false, order: r2 = ["content"], guards: a = true, initialFocus: s = 0, returnFocus: c = true, restoreFocus: l = false, modal: u = true, visuallyHiddenDismiss: d = false, closeOnFocusOut: f = true } = e, { open: p, refs: m, nodeId: h, onOpenChange: g, events: y, dataRef: v, floatingId: w, elements: { domReference: b2, floating: k } } = t, x = "number" == typeof s && s < 0, S2 = et(b2) && x, C2 = "undefined" == typeof HTMLElement || !("inert" in HTMLElement.prototype) || a, N2 = io(r2), E2 = io(s), I2 = io(c), P2 = eo(), A = o.useContext(Co), O = o.useRef(null), L2 = o.useRef(null), D2 = o.useRef(false), T2 = o.useRef(false), R2 = o.useRef(-1), B2 = null != A, M2 = Eo(k), F = Nn(function(e2) {
4726
+ const { context: t, children: n, disabled: i = false, order: r2 = ["content"], guards: a = true, initialFocus: s = 0, returnFocus: c = true, restoreFocus: l = false, modal: u = true, visuallyHiddenDismiss: d = false, closeOnFocusOut: f = true } = e, { open: p, refs: m, nodeId: h, onOpenChange: g, events: y, dataRef: v, floatingId: b, elements: { domReference: w2, floating: k } } = t, x = "number" == typeof s && s < 0, C2 = et(w2) && x, S2 = "undefined" == typeof HTMLElement || !("inert" in HTMLElement.prototype) || a, N2 = io(r2), E2 = io(s), P2 = io(c), I2 = eo(), A = o.useContext(So), O = o.useRef(null), L2 = o.useRef(null), D2 = o.useRef(false), T2 = o.useRef(false), R2 = o.useRef(-1), B2 = null != A, M2 = Eo(k), F = Nn(function(e2) {
4727
4727
  return void 0 === e2 && (e2 = M2), e2 ? Ht(e2, vo()) : [];
4728
4728
  }), $2 = Nn((e2) => {
4729
4729
  const t2 = F(e2);
4730
- return N2.current.map((e3) => b2 && "reference" === e3 ? b2 : M2 && "floating" === e3 ? M2 : t2).filter(Boolean).flat();
4730
+ return N2.current.map((e3) => w2 && "reference" === e3 ? w2 : M2 && "floating" === e3 ? M2 : t2).filter(Boolean).flat();
4731
4731
  });
4732
4732
  function _2(e2) {
4733
4733
  return !i && d && u ? o.createElement(Oo, { ref: "start" === e2 ? O : L2, onClick: (e3) => g(false, e3.nativeEvent) }, "string" == typeof d ? d : "Dismiss") : null;
@@ -4739,16 +4739,16 @@ function Lo(e) {
4739
4739
  return;
4740
4740
  function e2(e3) {
4741
4741
  if ("Tab" === e3.key) {
4742
- ze(M2, je(Je(M2))) && 0 === F().length && !S2 && Ze(e3);
4742
+ ze(M2, je(Je(M2))) && 0 === F().length && !C2 && Ze(e3);
4743
4743
  const t3 = $2(), n2 = Xe(e3);
4744
- "reference" === N2.current[0] && n2 === b2 && (Ze(e3), e3.shiftKey ? co(t3[t3.length - 1]) : co(t3[1])), "floating" === N2.current[1] && n2 === M2 && e3.shiftKey && (Ze(e3), co(t3[0]));
4744
+ "reference" === N2.current[0] && n2 === w2 && (Ze(e3), e3.shiftKey ? co(t3[t3.length - 1]) : co(t3[1])), "floating" === N2.current[1] && n2 === M2 && e3.shiftKey && (Ze(e3), co(t3[0]));
4745
4745
  }
4746
4746
  }
4747
4747
  const t2 = Je(M2);
4748
4748
  return t2.addEventListener("keydown", e2), () => {
4749
4749
  t2.removeEventListener("keydown", e2);
4750
4750
  };
4751
- }, [i, b2, M2, u, N2, S2, F, $2]), o.useEffect(() => {
4751
+ }, [i, w2, M2, u, N2, C2, F, $2]), o.useEffect(() => {
4752
4752
  if (!i && k)
4753
4753
  return k.addEventListener("focusin", e2), () => {
4754
4754
  k.removeEventListener("focusin", e2);
@@ -4759,8 +4759,8 @@ function Lo(e) {
4759
4759
  }
4760
4760
  }, [i, k, F]), o.useEffect(() => {
4761
4761
  if (!i && f)
4762
- return k && we(b2) ? (b2.addEventListener("focusout", t2), b2.addEventListener("pointerdown", e2), k.addEventListener("focusout", t2), () => {
4763
- b2.removeEventListener("focusout", t2), b2.removeEventListener("pointerdown", e2), k.removeEventListener("focusout", t2);
4762
+ return k && be(w2) ? (w2.addEventListener("focusout", t2), w2.addEventListener("pointerdown", e2), k.addEventListener("focusout", t2), () => {
4763
+ w2.removeEventListener("focusout", t2), w2.removeEventListener("pointerdown", e2), k.removeEventListener("focusout", t2);
4764
4764
  }) : void 0;
4765
4765
  function e2() {
4766
4766
  T2.current = true, setTimeout(() => {
@@ -4770,7 +4770,7 @@ function Lo(e) {
4770
4770
  function t2(e3) {
4771
4771
  const t3 = e3.relatedTarget;
4772
4772
  queueMicrotask(() => {
4773
- const n2 = !(ze(b2, t3) || ze(k, t3) || ze(t3, k) || ze(null == A ? void 0 : A.portalNode, t3) || null != t3 && t3.hasAttribute(oo("focus-guard")) || P2 && (lo(P2.nodesRef.current, h).find((e4) => {
4773
+ const n2 = !(ze(w2, t3) || ze(k, t3) || ze(t3, k) || ze(null == A ? void 0 : A.portalNode, t3) || null != t3 && t3.hasAttribute(oo("focus-guard")) || I2 && (lo(I2.nodesRef.current, h).find((e4) => {
4774
4774
  var n3, o2;
4775
4775
  return ze(null == (n3 = e4.context) ? void 0 : n3.elements.floating, t3) || ze(null == (o2 = e4.context) ? void 0 : o2.elements.domReference, t3);
4776
4776
  }) || function(e4, t4) {
@@ -4781,31 +4781,31 @@ function Lo(e) {
4781
4781
  i2 = null == t5 ? void 0 : t5.parentId, t5 && (o2 = o2.concat(t5));
4782
4782
  }
4783
4783
  return o2;
4784
- }(P2.nodesRef.current, h).find((e4) => {
4784
+ }(I2.nodesRef.current, h).find((e4) => {
4785
4785
  var n3, o2;
4786
4786
  return (null == (n3 = e4.context) ? void 0 : n3.elements.floating) === t3 || (null == (o2 = e4.context) ? void 0 : o2.elements.domReference) === t3;
4787
4787
  })));
4788
4788
  if (l && n2 && je(Je(M2)) === Je(M2).body) {
4789
- we(M2) && M2.focus();
4789
+ be(M2) && M2.focus();
4790
4790
  const e4 = R2.current, t4 = F(), n3 = t4[e4] || t4[t4.length - 1] || M2;
4791
- we(n3) && n3.focus();
4791
+ be(n3) && n3.focus();
4792
4792
  }
4793
- !S2 && u || !t3 || !n2 || T2.current || t3 === Ao() || (D2.current = true, g(false, e3, "focus-out"));
4793
+ !C2 && u || !t3 || !n2 || T2.current || t3 === Ao() || (D2.current = true, g(false, e3, "focus-out"));
4794
4794
  });
4795
4795
  }
4796
- }, [i, b2, k, M2, u, h, P2, A, g, f, l, F, S2]), o.useEffect(() => {
4796
+ }, [i, w2, k, M2, u, h, I2, A, g, f, l, F, C2]), o.useEffect(() => {
4797
4797
  var e2;
4798
4798
  if (i)
4799
4799
  return;
4800
4800
  const t2 = Array.from((null == A || null == (e2 = A.portalNode) ? void 0 : e2.querySelectorAll("[" + oo("portal") + "]")) || []);
4801
4801
  if (k) {
4802
- const e3 = [k, ...t2, O.current, L2.current, N2.current.includes("reference") || S2 ? b2 : null].filter((e4) => null != e4), n2 = u || S2 ? yo(e3, C2, !C2) : yo(e3);
4802
+ const e3 = [k, ...t2, O.current, L2.current, N2.current.includes("reference") || C2 ? w2 : null].filter((e4) => null != e4), n2 = u || C2 ? yo(e3, S2, !S2) : yo(e3);
4803
4803
  return () => {
4804
4804
  n2();
4805
4805
  };
4806
4806
  }
4807
- }, [i, b2, k, u, N2, A, S2, C2]), $n(() => {
4808
- if (i || !we(M2))
4807
+ }, [i, w2, k, u, N2, A, C2, S2]), $n(() => {
4808
+ if (i || !be(M2))
4809
4809
  return;
4810
4810
  const e2 = je(Je(M2));
4811
4811
  queueMicrotask(() => {
@@ -4820,23 +4820,23 @@ function Lo(e) {
4820
4820
  let o2 = v.current.openEvent;
4821
4821
  function r3(t3) {
4822
4822
  let { open: n3, reason: i2, event: r4, nested: a3 } = t3;
4823
- n3 && (o2 = r4), "escape-key" === i2 && m.domReference.current && Po(m.domReference.current), "hover" === i2 && "mouseleave" === r4.type && (D2.current = true), "outside-press" === i2 && (a3 ? (D2.current = false, e2 = true) : D2.current = !(Ve(r4) || Ue(r4)));
4823
+ n3 && (o2 = r4), "escape-key" === i2 && m.domReference.current && Io(m.domReference.current), "hover" === i2 && "mouseleave" === r4.type && (D2.current = true), "outside-press" === i2 && (a3 ? (D2.current = false, e2 = true) : D2.current = !(Ve(r4) || Ue(r4)));
4824
4824
  }
4825
- Po(n2), y.on("openchange", r3);
4825
+ Io(n2), y.on("openchange", r3);
4826
4826
  const a2 = t2.createElement("span");
4827
- return a2.setAttribute("tabindex", "-1"), a2.setAttribute("aria-hidden", "true"), Object.assign(a2.style, ko), B2 && b2 && b2.insertAdjacentElement("afterend", a2), () => {
4827
+ return a2.setAttribute("tabindex", "-1"), a2.setAttribute("aria-hidden", "true"), Object.assign(a2.style, ko), B2 && w2 && w2.insertAdjacentElement("afterend", a2), () => {
4828
4828
  y.off("openchange", r3);
4829
- const n3 = je(t2), i2 = ze(k, n3) || P2 && lo(P2.nodesRef.current, h).some((e3) => {
4829
+ const n3 = je(t2), i2 = ze(k, n3) || I2 && lo(I2.nodesRef.current, h).some((e3) => {
4830
4830
  var t3;
4831
4831
  return ze(null == (t3 = e3.context) ? void 0 : t3.elements.floating, n3);
4832
4832
  });
4833
- (i2 || o2 && ["click", "mousedown"].includes(o2.type)) && m.domReference.current && Po(m.domReference.current);
4834
- const s2 = "boolean" == typeof I2.current ? Ao() || a2 : I2.current.current || a2;
4833
+ (i2 || o2 && ["click", "mousedown"].includes(o2.type)) && m.domReference.current && Io(m.domReference.current);
4834
+ const s2 = "boolean" == typeof P2.current ? Ao() || a2 : P2.current.current || a2;
4835
4835
  queueMicrotask(() => {
4836
- I2.current && !D2.current && we(s2) && (s2 === n3 || n3 === t2.body || i2) && s2.focus({ preventScroll: e2 }), a2.remove();
4836
+ P2.current && !D2.current && be(s2) && (s2 === n3 || n3 === t2.body || i2) && s2.focus({ preventScroll: e2 }), a2.remove();
4837
4837
  });
4838
4838
  };
4839
- }, [i, k, M2, I2, v, m, y, P2, h, B2, b2]), o.useEffect(() => {
4839
+ }, [i, k, M2, P2, v, m, y, I2, h, B2, w2]), o.useEffect(() => {
4840
4840
  queueMicrotask(() => {
4841
4841
  D2.current = false;
4842
4842
  });
@@ -4864,25 +4864,25 @@ function Lo(e) {
4864
4864
  t2.disconnect();
4865
4865
  };
4866
4866
  }, [i, k, M2, m, N2, F, x]);
4867
- const j2 = !i && C2 && (!u || !S2) && (B2 || u);
4868
- return o.createElement(o.Fragment, null, j2 && o.createElement(So, { "data-type": "inside", ref: null == A ? void 0 : A.beforeInsideRef, onFocus: (e2) => {
4867
+ const j2 = !i && S2 && (!u || !C2) && (B2 || u);
4868
+ return o.createElement(o.Fragment, null, j2 && o.createElement(Co, { "data-type": "inside", ref: null == A ? void 0 : A.beforeInsideRef, onFocus: (e2) => {
4869
4869
  if (u) {
4870
4870
  const e3 = $2();
4871
4871
  co("reference" === r2[0] ? e3[0] : e3[e3.length - 1]);
4872
4872
  } else if (null != A && A.preserveTabOrder && A.portalNode)
4873
- if (D2.current = false, bo(e2, A.portalNode)) {
4874
- const e3 = wo(document.body, "next") || b2;
4873
+ if (D2.current = false, wo(e2, A.portalNode)) {
4874
+ const e3 = bo(document.body, "next") || w2;
4875
4875
  null == e3 || e3.focus();
4876
4876
  } else {
4877
4877
  var t2;
4878
4878
  null == (t2 = A.beforeOutsideRef.current) || t2.focus();
4879
4879
  }
4880
- } }), !S2 && _2("start"), n, _2("end"), j2 && o.createElement(So, { "data-type": "inside", ref: null == A ? void 0 : A.afterInsideRef, onFocus: (e2) => {
4880
+ } }), !C2 && _2("start"), n, _2("end"), j2 && o.createElement(Co, { "data-type": "inside", ref: null == A ? void 0 : A.afterInsideRef, onFocus: (e2) => {
4881
4881
  if (u)
4882
4882
  co($2()[0]);
4883
4883
  else if (null != A && A.preserveTabOrder && A.portalNode)
4884
- if (f && (D2.current = true), bo(e2, A.portalNode)) {
4885
- const e3 = wo(document.body, "prev") || b2;
4884
+ if (f && (D2.current = true), wo(e2, A.portalNode)) {
4885
+ const e3 = bo(document.body, "prev") || w2;
4886
4886
  null == e3 || e3.focus();
4887
4887
  } else {
4888
4888
  var t2;
@@ -4891,7 +4891,7 @@ function Lo(e) {
4891
4891
  } }));
4892
4892
  }
4893
4893
  function Do(e) {
4894
- return we(e.target) && "BUTTON" === e.target.tagName;
4894
+ return be(e.target) && "BUTTON" === e.target.tagName;
4895
4895
  }
4896
4896
  function To(e) {
4897
4897
  return Qe(e);
@@ -4927,17 +4927,17 @@ function $o(e) {
4927
4927
  void 0 === e2 && (e2 = {});
4928
4928
  const { placement: t2 = "bottom", strategy: n2 = "absolute", middleware: i2 = [], platform: r3, elements: { reference: a2, floating: s2 } = {}, transform: c2 = true, whileElementsMounted: l2, open: u2 } = e2, [d2, f2] = o.useState({ x: 0, y: 0, strategy: n2, placement: t2, middlewareData: {}, isPositioned: false }), [p2, m2] = o.useState(i2);
4929
4929
  gn(p2, i2) || m2(i2);
4930
- const [h2, g2] = o.useState(null), [y2, v2] = o.useState(null), b$1 = o.useCallback((e3) => {
4931
- e3 !== C2.current && (C2.current = e3, g2(e3));
4930
+ const [h2, g2] = o.useState(null), [y2, v2] = o.useState(null), w$1 = o.useCallback((e3) => {
4931
+ e3 !== S2.current && (S2.current = e3, g2(e3));
4932
4932
  }, []), k = o.useCallback((e3) => {
4933
4933
  e3 !== N2.current && (N2.current = e3, v2(e3));
4934
- }, []), x = a2 || h2, S2 = s2 || y2, C2 = o.useRef(null), N2 = o.useRef(null), E2 = o.useRef(d2), I2 = null != l2, P2 = wn(l2), A = wn(r3), O = wn(u2), L2 = o.useCallback(() => {
4935
- if (!C2.current || !N2.current)
4934
+ }, []), x = a2 || h2, C2 = s2 || y2, S2 = o.useRef(null), N2 = o.useRef(null), E2 = o.useRef(d2), P2 = null != l2, I2 = bn(l2), A = bn(r3), O = bn(u2), L2 = o.useCallback(() => {
4935
+ if (!S2.current || !N2.current)
4936
4936
  return;
4937
4937
  const e3 = { placement: t2, strategy: n2, middleware: p2 };
4938
- A.current && (e3.platform = A.current), mn(C2.current, N2.current, e3).then((e4) => {
4938
+ A.current && (e3.platform = A.current), mn(S2.current, N2.current, e3).then((e4) => {
4939
4939
  const t3 = { ...e4, isPositioned: false !== O.current };
4940
- D2.current && !gn(E2.current, t3) && (E2.current = t3, b.flushSync(() => {
4940
+ D2.current && !gn(E2.current, t3) && (E2.current = t3, w.flushSync(() => {
4941
4941
  f2(t3);
4942
4942
  }));
4943
4943
  });
@@ -4949,13 +4949,13 @@ function $o(e) {
4949
4949
  hn(() => (D2.current = true, () => {
4950
4950
  D2.current = false;
4951
4951
  }), []), hn(() => {
4952
- if (x && (C2.current = x), S2 && (N2.current = S2), x && S2) {
4953
- if (P2.current)
4954
- return P2.current(x, S2, L2);
4952
+ if (x && (S2.current = x), C2 && (N2.current = C2), x && C2) {
4953
+ if (I2.current)
4954
+ return I2.current(x, C2, L2);
4955
4955
  L2();
4956
4956
  }
4957
- }, [x, S2, L2, P2, I2]);
4958
- const T2 = o.useMemo(() => ({ reference: C2, floating: N2, setReference: b$1, setFloating: k }), [b$1, k]), R2 = o.useMemo(() => ({ reference: x, floating: S2 }), [x, S2]), B2 = o.useMemo(() => {
4957
+ }, [x, C2, L2, I2, P2]);
4958
+ const T2 = o.useMemo(() => ({ reference: S2, floating: N2, setReference: w$1, setFloating: k }), [w$1, k]), R2 = o.useMemo(() => ({ reference: x, floating: C2 }), [x, C2]), B2 = o.useMemo(() => {
4959
4959
  const e3 = { position: n2, left: 0, top: 0 };
4960
4960
  if (!R2.floating)
4961
4961
  return e3;
@@ -5008,21 +5008,21 @@ function Wo(e, t, n) {
5008
5008
  }
5009
5009
  }
5010
5010
  function Vo(e, t) {
5011
- return Wo(t, e === En || e === In, e === Pn || e === An);
5011
+ return Wo(t, e === En || e === Pn, e === In || e === An);
5012
5012
  }
5013
5013
  function Uo(e, t, n) {
5014
- return Wo(t, e === In, n ? e === Pn : e === An) || "Enter" === e || " " === e || "" === e;
5014
+ return Wo(t, e === Pn, n ? e === In : e === An) || "Enter" === e || " " === e || "" === e;
5015
5015
  }
5016
5016
  function Ko(e, t, n) {
5017
- return Wo(t, n ? e === An : e === Pn, e === En);
5017
+ return Wo(t, n ? e === An : e === In, e === En);
5018
5018
  }
5019
5019
  function Go(e, t) {
5020
5020
  const { open: n, onOpenChange: i, elements: r2 } = e, { listRef: a, activeIndex: s, onNavigate: c = () => {
5021
- }, enabled: l = true, selectedIndex: u = null, allowEscape: d = false, loop: f = false, nested: p = false, rtl: m = false, virtual: h = false, focusItemOnOpen: g = "auto", focusItemOnHover: y = true, openOnArrowKeyDown: v = true, disabledIndices: w, orientation: b2 = "vertical", cols: k = 1, scrollItemIntoView: x = true, virtualItemRef: S2, itemSizes: C2, dense: N2 = false } = t;
5022
- "production" !== process.env.NODE_ENV && (d && (f || Jn("`useListNavigation` looping must be enabled to allow escaping."), h || Jn("`useListNavigation` must be virtual to allow escaping.")), "vertical" === b2 && k > 1 && Jn("In grid list navigation mode (`cols` > 1), the `orientation` should", 'be either "horizontal" or "both".'));
5023
- const E2 = io(Eo(r2.floating)), I2 = Zn(), P2 = eo(), A = Nn(c), O = et(r2.domReference), L2 = o.useRef(g), D2 = o.useRef(null != u ? u : -1), T2 = o.useRef(null), R2 = o.useRef(true), B2 = o.useRef(A), M2 = o.useRef(!!r2.floating), F = o.useRef(n), $2 = o.useRef(false), _2 = o.useRef(false), j2 = io(w), z2 = io(n), H2 = io(x), W2 = io(u), [V2, U2] = o.useState(), [K2, G2] = o.useState(), q2 = Nn(function(e2, t2, n2) {
5021
+ }, enabled: l = true, selectedIndex: u = null, allowEscape: d = false, loop: f = false, nested: p = false, rtl: m = false, virtual: h = false, focusItemOnOpen: g = "auto", focusItemOnHover: y = true, openOnArrowKeyDown: v = true, disabledIndices: b, orientation: w2 = "vertical", cols: k = 1, scrollItemIntoView: x = true, virtualItemRef: C2, itemSizes: S2, dense: N2 = false } = t;
5022
+ "production" !== process.env.NODE_ENV && (d && (f || Jn("`useListNavigation` looping must be enabled to allow escaping."), h || Jn("`useListNavigation` must be virtual to allow escaping.")), "vertical" === w2 && k > 1 && Jn("In grid list navigation mode (`cols` > 1), the `orientation` should", 'be either "horizontal" or "both".'));
5023
+ const E2 = io(Eo(r2.floating)), P2 = Zn(), I2 = eo(), A = Nn(c), O = et(r2.domReference), L2 = o.useRef(g), D2 = o.useRef(null != u ? u : -1), T2 = o.useRef(null), R2 = o.useRef(true), B2 = o.useRef(A), M2 = o.useRef(!!r2.floating), F = o.useRef(n), $2 = o.useRef(false), _2 = o.useRef(false), j2 = io(b), z2 = io(n), H2 = io(x), W2 = io(u), [V2, U2] = o.useState(), [K2, G2] = o.useState(), q2 = Nn(function(e2, t2, n2) {
5024
5024
  function o2(e3) {
5025
- h ? (U2(e3.id), null == P2 || P2.events.emit("virtualfocus", e3), S2 && (S2.current = e3)) : co(e3, { preventScroll: true, sync: !(!He().toLowerCase().startsWith("mac") || navigator.maxTouchPoints || !Ke()) && (Ho || $2.current) });
5025
+ h ? (U2(e3.id), null == I2 || I2.events.emit("virtualfocus", e3), C2 && (C2.current = e3)) : co(e3, { preventScroll: true, sync: !(!He().toLowerCase().startsWith("mac") || navigator.maxTouchPoints || !Ke()) && (Ho || $2.current) });
5026
5026
  }
5027
5027
  void 0 === n2 && (n2 = false);
5028
5028
  const i2 = e2.current[t2.current];
@@ -5055,27 +5055,27 @@ function Go(e, t) {
5055
5055
  }
5056
5056
  e2++;
5057
5057
  } else
5058
- D2.current = null == T2.current || Uo(T2.current, b2, m) || p ? Dn(a, j2.current) : Tn(a, j2.current), T2.current = null, A(D2.current);
5058
+ D2.current = null == T2.current || Uo(T2.current, w2, m) || p ? Dn(a, j2.current) : Tn(a, j2.current), T2.current = null, A(D2.current);
5059
5059
  };
5060
5060
  t2();
5061
5061
  }
5062
5062
  } else
5063
5063
  Ln(a, s) || (D2.current = s, q2(a, D2, _2.current), _2.current = false);
5064
- }, [l, n, r2.floating, s, W2, p, a, b2, m, A, q2, j2]), $n(() => {
5064
+ }, [l, n, r2.floating, s, W2, p, a, w2, m, A, q2, j2]), $n(() => {
5065
5065
  var e2;
5066
- if (!l || r2.floating || !P2 || h || !M2.current)
5066
+ if (!l || r2.floating || !I2 || h || !M2.current)
5067
5067
  return;
5068
- const t2 = P2.nodesRef.current, n2 = null == (e2 = t2.find((e3) => e3.id === I2)) || null == (e2 = e2.context) ? void 0 : e2.elements.floating, o2 = je(Je(r2.floating)), i2 = t2.some((e3) => e3.context && ze(e3.context.elements.floating, o2));
5068
+ const t2 = I2.nodesRef.current, n2 = null == (e2 = t2.find((e3) => e3.id === P2)) || null == (e2 = e2.context) ? void 0 : e2.elements.floating, o2 = je(Je(r2.floating)), i2 = t2.some((e3) => e3.context && ze(e3.context.elements.floating, o2));
5069
5069
  n2 && !i2 && R2.current && n2.focus({ preventScroll: true });
5070
- }, [l, r2.floating, P2, I2, h]), $n(() => {
5071
- if (l && P2 && h && !I2)
5072
- return P2.events.on("virtualfocus", e2), () => {
5073
- P2.events.off("virtualfocus", e2);
5070
+ }, [l, r2.floating, I2, P2, h]), $n(() => {
5071
+ if (l && I2 && h && !P2)
5072
+ return I2.events.on("virtualfocus", e2), () => {
5073
+ I2.events.off("virtualfocus", e2);
5074
5074
  };
5075
5075
  function e2(e3) {
5076
- G2(e3.id), S2 && (S2.current = e3);
5076
+ G2(e3.id), C2 && (C2.current = e3);
5077
5077
  }
5078
- }, [l, P2, h, I2, S2]), $n(() => {
5078
+ }, [l, I2, h, P2, C2]), $n(() => {
5079
5079
  B2.current = A, M2.current = !!r2.floating;
5080
5080
  }), $n(() => {
5081
5081
  n || (T2.current = null);
@@ -5107,11 +5107,11 @@ function Go(e, t) {
5107
5107
  return;
5108
5108
  if (!z2.current && e2.currentTarget === E2.current)
5109
5109
  return;
5110
- if (p && Ko(e2.key, b2, m))
5111
- return Ze(e2), i(false, e2.nativeEvent, "list-navigation"), void (we(r2.domReference) && (h ? null == P2 || P2.events.emit("virtualfocus", r2.domReference) : r2.domReference.focus()));
5112
- const t2 = D2.current, o2 = Dn(a, w), s2 = Tn(a, w);
5110
+ if (p && Ko(e2.key, w2, m))
5111
+ return Ze(e2), i(false, e2.nativeEvent, "list-navigation"), void (be(r2.domReference) && (h ? null == I2 || I2.events.emit("virtualfocus", r2.domReference) : r2.domReference.focus()));
5112
+ const t2 = D2.current, o2 = Dn(a, b), s2 = Tn(a, b);
5113
5113
  if (O || ("Home" === e2.key && (Ze(e2), D2.current = o2, A(D2.current)), "End" === e2.key && (Ze(e2), D2.current = s2, A(D2.current))), k > 1) {
5114
- const t3 = C2 || Array.from({ length: a.current.length }, () => ({ width: 1, height: 1 })), n2 = function(e3, t4, n3) {
5114
+ const t3 = S2 || Array.from({ length: a.current.length }, () => ({ width: 1, height: 1 })), n2 = function(e3, t4, n3) {
5115
5115
  const o3 = [];
5116
5116
  let i3 = 0;
5117
5117
  return e3.forEach((e4, r4) => {
@@ -5129,7 +5129,7 @@ function Go(e, t) {
5129
5129
  }), c3 = true) : i3++;
5130
5130
  }
5131
5131
  }), [...o3];
5132
- }(t3, k, N2), i2 = n2.findIndex((e3) => null != e3 && !Fn(a.current, e3, w)), r3 = n2.reduce((e3, t4, n3) => null == t4 || Fn(a.current, t4, w) ? e3 : n3, -1), c2 = n2[function(e3, t4) {
5132
+ }(t3, k, N2), i2 = n2.findIndex((e3) => null != e3 && !Fn(a.current, e3, b)), r3 = n2.reduce((e3, t4, n3) => null == t4 || Fn(a.current, t4, b) ? e3 : n3, -1), c2 = n2[function(e3, t4) {
5133
5133
  let { event: n3, orientation: o3, loop: i3, rtl: r4, cols: a2, disabledIndices: s3, minIndex: c3, maxIndex: l2, prevIndex: u2, stopEvent: d2 = false } = t4, f2 = u2;
5134
5134
  if (n3.key === En) {
5135
5135
  if (d2 && Ze(n3), -1 === u2)
@@ -5140,43 +5140,43 @@ function Go(e, t) {
5140
5140
  }
5141
5141
  Ln(e3, f2) && (f2 = u2);
5142
5142
  }
5143
- if (n3.key === In && (d2 && Ze(n3), -1 === u2 ? f2 = c3 : (f2 = Rn(e3, { startingIndex: u2, amount: a2, disabledIndices: s3 }), i3 && u2 + a2 > l2 && (f2 = Rn(e3, { startingIndex: u2 % a2 - a2, amount: a2, disabledIndices: s3 }))), Ln(e3, f2) && (f2 = u2)), "both" === o3) {
5143
+ if (n3.key === Pn && (d2 && Ze(n3), -1 === u2 ? f2 = c3 : (f2 = Rn(e3, { startingIndex: u2, amount: a2, disabledIndices: s3 }), i3 && u2 + a2 > l2 && (f2 = Rn(e3, { startingIndex: u2 % a2 - a2, amount: a2, disabledIndices: s3 }))), Ln(e3, f2) && (f2 = u2)), "both" === o3) {
5144
5144
  const t5 = it(u2 / a2);
5145
- n3.key === (r4 ? Pn : An) && (d2 && Ze(n3), u2 % a2 !== a2 - 1 ? (f2 = Rn(e3, { startingIndex: u2, disabledIndices: s3 }), i3 && On(f2, a2, t5) && (f2 = Rn(e3, { startingIndex: u2 - u2 % a2 - 1, disabledIndices: s3 }))) : i3 && (f2 = Rn(e3, { startingIndex: u2 - u2 % a2 - 1, disabledIndices: s3 })), On(f2, a2, t5) && (f2 = u2)), n3.key === (r4 ? An : Pn) && (d2 && Ze(n3), u2 % a2 !== 0 ? (f2 = Rn(e3, { startingIndex: u2, decrement: true, disabledIndices: s3 }), i3 && On(f2, a2, t5) && (f2 = Rn(e3, { startingIndex: u2 + (a2 - u2 % a2), decrement: true, disabledIndices: s3 }))) : i3 && (f2 = Rn(e3, { startingIndex: u2 + (a2 - u2 % a2), decrement: true, disabledIndices: s3 })), On(f2, a2, t5) && (f2 = u2));
5145
+ n3.key === (r4 ? In : An) && (d2 && Ze(n3), u2 % a2 !== a2 - 1 ? (f2 = Rn(e3, { startingIndex: u2, disabledIndices: s3 }), i3 && On(f2, a2, t5) && (f2 = Rn(e3, { startingIndex: u2 - u2 % a2 - 1, disabledIndices: s3 }))) : i3 && (f2 = Rn(e3, { startingIndex: u2 - u2 % a2 - 1, disabledIndices: s3 })), On(f2, a2, t5) && (f2 = u2)), n3.key === (r4 ? An : In) && (d2 && Ze(n3), u2 % a2 !== 0 ? (f2 = Rn(e3, { startingIndex: u2, decrement: true, disabledIndices: s3 }), i3 && On(f2, a2, t5) && (f2 = Rn(e3, { startingIndex: u2 + (a2 - u2 % a2), decrement: true, disabledIndices: s3 }))) : i3 && (f2 = Rn(e3, { startingIndex: u2 + (a2 - u2 % a2), decrement: true, disabledIndices: s3 })), On(f2, a2, t5) && (f2 = u2));
5146
5146
  const o4 = it(l2 / a2) === t5;
5147
- Ln(e3, f2) && (f2 = i3 && o4 ? n3.key === (r4 ? An : Pn) ? l2 : Rn(e3, { startingIndex: u2 - u2 % a2 - 1, disabledIndices: s3 }) : u2);
5147
+ Ln(e3, f2) && (f2 = i3 && o4 ? n3.key === (r4 ? An : In) ? l2 : Rn(e3, { startingIndex: u2 - u2 % a2 - 1, disabledIndices: s3 }) : u2);
5148
5148
  }
5149
5149
  return f2;
5150
- }({ current: n2.map((e3) => null != e3 ? a.current[e3] : null) }, { event: e2, orientation: b2, loop: f, rtl: m, cols: k, disabledIndices: Mn([...w || a.current.map((e3, t4) => Fn(a.current, t4) ? t4 : void 0), void 0], n2), minIndex: i2, maxIndex: r3, prevIndex: Bn(D2.current > s2 ? o2 : D2.current, t3, n2, k, e2.key === In ? "bl" : e2.key === (m ? Pn : An) ? "tr" : "tl"), stopEvent: true })];
5151
- if (null != c2 && (D2.current = c2, A(D2.current)), "both" === b2)
5150
+ }({ current: n2.map((e3) => null != e3 ? a.current[e3] : null) }, { event: e2, orientation: w2, loop: f, rtl: m, cols: k, disabledIndices: Mn([...b || a.current.map((e3, t4) => Fn(a.current, t4) ? t4 : void 0), void 0], n2), minIndex: i2, maxIndex: r3, prevIndex: Bn(D2.current > s2 ? o2 : D2.current, t3, n2, k, e2.key === Pn ? "bl" : e2.key === (m ? In : An) ? "tr" : "tl"), stopEvent: true })];
5151
+ if (null != c2 && (D2.current = c2, A(D2.current)), "both" === w2)
5152
5152
  return;
5153
5153
  }
5154
- if (Vo(e2.key, b2)) {
5154
+ if (Vo(e2.key, w2)) {
5155
5155
  if (Ze(e2), n && !h && je(e2.currentTarget.ownerDocument) === e2.currentTarget)
5156
- return D2.current = Uo(e2.key, b2, m) ? o2 : s2, void A(D2.current);
5157
- Uo(e2.key, b2, m) ? D2.current = f ? t2 >= s2 ? d && t2 !== a.current.length ? -1 : o2 : Rn(a, { startingIndex: t2, disabledIndices: w }) : Math.min(s2, Rn(a, { startingIndex: t2, disabledIndices: w })) : D2.current = f ? t2 <= o2 ? d && -1 !== t2 ? a.current.length : s2 : Rn(a, { startingIndex: t2, decrement: true, disabledIndices: w }) : Math.max(o2, Rn(a, { startingIndex: t2, decrement: true, disabledIndices: w })), Ln(a, D2.current) ? A(null) : A(D2.current);
5156
+ return D2.current = Uo(e2.key, w2, m) ? o2 : s2, void A(D2.current);
5157
+ Uo(e2.key, w2, m) ? D2.current = f ? t2 >= s2 ? d && t2 !== a.current.length ? -1 : o2 : Rn(a, { startingIndex: t2, disabledIndices: b }) : Math.min(s2, Rn(a, { startingIndex: t2, disabledIndices: b })) : D2.current = f ? t2 <= o2 ? d && -1 !== t2 ? a.current.length : s2 : Rn(a, { startingIndex: t2, decrement: true, disabledIndices: b }) : Math.max(o2, Rn(a, { startingIndex: t2, decrement: true, disabledIndices: b })), Ln(a, D2.current) ? A(null) : A(D2.current);
5158
5158
  }
5159
- }), Q2 = o.useMemo(() => h && n && J2 && { "aria-activedescendant": K2 || V2 }, [h, n, J2, K2, V2]), Z2 = o.useMemo(() => ({ "aria-orientation": "both" === b2 ? void 0 : b2, ...!et(r2.domReference) && Q2, onKeyDown: X2, onPointerMove() {
5159
+ }), Q2 = o.useMemo(() => h && n && J2 && { "aria-activedescendant": K2 || V2 }, [h, n, J2, K2, V2]), Z2 = o.useMemo(() => ({ "aria-orientation": "both" === w2 ? void 0 : w2, ...!et(r2.domReference) && Q2, onKeyDown: X2, onPointerMove() {
5160
5160
  R2.current = true;
5161
- } }), [Q2, X2, r2.domReference, b2]), ee2 = o.useMemo(() => {
5161
+ } }), [Q2, X2, r2.domReference, w2]), ee2 = o.useMemo(() => {
5162
5162
  function e2(e3) {
5163
5163
  "auto" === g && Ve(e3.nativeEvent) && (L2.current = true);
5164
5164
  }
5165
5165
  return { ...Q2, onKeyDown(e3) {
5166
5166
  R2.current = false;
5167
5167
  const t2 = e3.key.startsWith("Arrow"), o2 = ["Home", "End"].includes(e3.key), r3 = t2 || o2, s2 = function(e4, t3, n2) {
5168
- return Wo(t3, n2 ? e4 === Pn : e4 === An, e4 === In);
5169
- }(e3.key, b2, m), c2 = Ko(e3.key, b2, m), l2 = Vo(e3.key, b2), d2 = (p ? s2 : l2) || "Enter" === e3.key || "" === e3.key.trim();
5168
+ return Wo(t3, n2 ? e4 === In : e4 === An, e4 === Pn);
5169
+ }(e3.key, w2, m), c2 = Ko(e3.key, w2, m), l2 = Vo(e3.key, w2), d2 = (p ? s2 : l2) || "Enter" === e3.key || "" === e3.key.trim();
5170
5170
  if (h && n) {
5171
- const t3 = null == P2 ? void 0 : P2.nodesRef.current.find((e4) => null == e4.parentId), n2 = P2 && t3 ? function(e4, t4) {
5171
+ const t3 = null == I2 ? void 0 : I2.nodesRef.current.find((e4) => null == e4.parentId), n2 = I2 && t3 ? function(e4, t4) {
5172
5172
  let n3, o3 = -1;
5173
5173
  return function t5(i2, r4) {
5174
5174
  r4 > o3 && (n3 = i2, o3 = r4), lo(e4, i2).forEach((e5) => {
5175
5175
  t5(e5.id, r4 + 1);
5176
5176
  });
5177
5177
  }(t4, 0), e4.find((e5) => e5.id === n3);
5178
- }(P2.nodesRef.current, t3.id) : null;
5179
- if (r3 && n2 && S2) {
5178
+ }(I2.nodesRef.current, t3.id) : null;
5179
+ if (r3 && n2 && C2) {
5180
5180
  const t4 = new KeyboardEvent("keydown", { key: e3.key, bubbles: true });
5181
5181
  if (s2 || c2) {
5182
5182
  var f2, g2;
@@ -5197,7 +5197,7 @@ function Go(e, t) {
5197
5197
  }, onPointerDown: function(e3) {
5198
5198
  L2.current = g, "auto" === g && Ue(e3.nativeEvent) && (L2.current = true);
5199
5199
  }, onMouseDown: e2, onClick: e2 };
5200
- }, [V2, Q2, X2, j2, g, a, p, A, i, n, v, b2, m, u, P2, h, S2]);
5200
+ }, [V2, Q2, X2, j2, g, a, p, A, i, n, v, w2, m, u, I2, h, C2]);
5201
5201
  return o.useMemo(() => l ? { reference: ee2, floating: Z2, item: Y2 } : {}, [l, ee2, Z2, Y2]);
5202
5202
  }
5203
5203
  const qo = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", false]]);
@@ -5223,40 +5223,40 @@ function Yo(e) {
5223
5223
  }
5224
5224
  if (clearTimeout(i), !d.domReference || !d.floating || null == u || null == n2 || null == l2)
5225
5225
  return;
5226
- const { clientX: g, clientY: y } = e3, v = [g, y], w = Xe(e3), b2 = "mouseleave" === e3.type, k = ze(d.floating, w), x = ze(d.domReference, w), S2 = d.domReference.getBoundingClientRect(), C2 = d.floating.getBoundingClientRect(), N2 = u.split("-")[0], E2 = n2 > C2.right - C2.width / 2, I2 = l2 > C2.bottom - C2.height / 2, P2 = function(e4, t2) {
5226
+ const { clientX: g, clientY: y } = e3, v = [g, y], b = Xe(e3), w2 = "mouseleave" === e3.type, k = ze(d.floating, b), x = ze(d.domReference, b), C2 = d.domReference.getBoundingClientRect(), S2 = d.floating.getBoundingClientRect(), N2 = u.split("-")[0], E2 = n2 > S2.right - S2.width / 2, P2 = l2 > S2.bottom - S2.height / 2, I2 = function(e4, t2) {
5227
5227
  return e4[0] >= t2.x && e4[0] <= t2.x + t2.width && e4[1] >= t2.y && e4[1] <= t2.y + t2.height;
5228
- }(v, S2), A = C2.width > S2.width, O = C2.height > S2.height, L2 = (A ? S2 : C2).left, D2 = (A ? S2 : C2).right, T2 = (O ? S2 : C2).top, R2 = (O ? S2 : C2).bottom;
5229
- if (k && (r2 = true, !b2))
5228
+ }(v, C2), A = S2.width > C2.width, O = S2.height > C2.height, L2 = (A ? C2 : S2).left, D2 = (A ? C2 : S2).right, T2 = (O ? C2 : S2).top, R2 = (O ? C2 : S2).bottom;
5229
+ if (k && (r2 = true, !w2))
5230
5230
  return;
5231
- if (x && (r2 = false), x && !b2)
5231
+ if (x && (r2 = false), x && !w2)
5232
5232
  return void (r2 = true);
5233
- if (b2 && ve(e3.relatedTarget) && ze(d.floating, e3.relatedTarget))
5233
+ if (w2 && ve(e3.relatedTarget) && ze(d.floating, e3.relatedTarget))
5234
5234
  return;
5235
5235
  if (m && lo(m.nodesRef.current, p).some((e4) => {
5236
5236
  let { context: t2 } = e4;
5237
5237
  return null == t2 ? void 0 : t2.open;
5238
5238
  }))
5239
5239
  return;
5240
- if ("top" === N2 && l2 >= S2.bottom - 1 || "bottom" === N2 && l2 <= S2.top + 1 || "left" === N2 && n2 >= S2.right - 1 || "right" === N2 && n2 <= S2.left + 1)
5240
+ if ("top" === N2 && l2 >= C2.bottom - 1 || "bottom" === N2 && l2 <= C2.top + 1 || "left" === N2 && n2 >= C2.right - 1 || "right" === N2 && n2 <= C2.left + 1)
5241
5241
  return h();
5242
5242
  let B2 = [];
5243
5243
  switch (N2) {
5244
5244
  case "top":
5245
- B2 = [[L2, S2.top + 1], [L2, C2.bottom - 1], [D2, C2.bottom - 1], [D2, S2.top + 1]];
5245
+ B2 = [[L2, C2.top + 1], [L2, S2.bottom - 1], [D2, S2.bottom - 1], [D2, C2.top + 1]];
5246
5246
  break;
5247
5247
  case "bottom":
5248
- B2 = [[L2, C2.top + 1], [L2, S2.bottom - 1], [D2, S2.bottom - 1], [D2, C2.top + 1]];
5248
+ B2 = [[L2, S2.top + 1], [L2, C2.bottom - 1], [D2, C2.bottom - 1], [D2, S2.top + 1]];
5249
5249
  break;
5250
5250
  case "left":
5251
- B2 = [[C2.right - 1, R2], [C2.right - 1, T2], [S2.left + 1, T2], [S2.left + 1, R2]];
5251
+ B2 = [[S2.right - 1, R2], [S2.right - 1, T2], [C2.left + 1, T2], [C2.left + 1, R2]];
5252
5252
  break;
5253
5253
  case "right":
5254
- B2 = [[S2.right - 1, R2], [S2.right - 1, T2], [C2.left + 1, T2], [C2.left + 1, R2]];
5254
+ B2 = [[C2.right - 1, R2], [C2.right - 1, T2], [S2.left + 1, T2], [S2.left + 1, R2]];
5255
5255
  }
5256
5256
  if (!Jo([g, y], B2)) {
5257
- if (r2 && !P2)
5257
+ if (r2 && !I2)
5258
5258
  return h();
5259
- if (!b2 && o2) {
5259
+ if (!w2 && o2) {
5260
5260
  const t2 = function(e4, t3) {
5261
5261
  const n3 = performance.now(), o3 = n3 - c;
5262
5262
  if (null === a || null === s || 0 === o3)
@@ -5271,15 +5271,15 @@ function Yo(e) {
5271
5271
  let [n3, o3] = e4;
5272
5272
  switch (N2) {
5273
5273
  case "top":
5274
- return [[A ? n3 + t / 2 : E2 ? n3 + 4 * t : n3 - 4 * t, o3 + t + 1], [A ? n3 - t / 2 : E2 ? n3 + 4 * t : n3 - 4 * t, o3 + t + 1], ...[[C2.left, E2 || A ? C2.bottom - t : C2.top], [C2.right, E2 ? A ? C2.bottom - t : C2.top : C2.bottom - t]]];
5274
+ return [[A ? n3 + t / 2 : E2 ? n3 + 4 * t : n3 - 4 * t, o3 + t + 1], [A ? n3 - t / 2 : E2 ? n3 + 4 * t : n3 - 4 * t, o3 + t + 1], ...[[S2.left, E2 || A ? S2.bottom - t : S2.top], [S2.right, E2 ? A ? S2.bottom - t : S2.top : S2.bottom - t]]];
5275
5275
  case "bottom":
5276
- return [[A ? n3 + t / 2 : E2 ? n3 + 4 * t : n3 - 4 * t, o3 - t], [A ? n3 - t / 2 : E2 ? n3 + 4 * t : n3 - 4 * t, o3 - t], ...[[C2.left, E2 || A ? C2.top + t : C2.bottom], [C2.right, E2 ? A ? C2.top + t : C2.bottom : C2.top + t]]];
5276
+ return [[A ? n3 + t / 2 : E2 ? n3 + 4 * t : n3 - 4 * t, o3 - t], [A ? n3 - t / 2 : E2 ? n3 + 4 * t : n3 - 4 * t, o3 - t], ...[[S2.left, E2 || A ? S2.top + t : S2.bottom], [S2.right, E2 ? A ? S2.top + t : S2.bottom : S2.top + t]]];
5277
5277
  case "left": {
5278
- const e5 = [n3 + t + 1, O ? o3 + t / 2 : I2 ? o3 + 4 * t : o3 - 4 * t], i2 = [n3 + t + 1, O ? o3 - t / 2 : I2 ? o3 + 4 * t : o3 - 4 * t];
5279
- return [...[[I2 || O ? C2.right - t : C2.left, C2.top], [I2 ? O ? C2.right - t : C2.left : C2.right - t, C2.bottom]], e5, i2];
5278
+ const e5 = [n3 + t + 1, O ? o3 + t / 2 : P2 ? o3 + 4 * t : o3 - 4 * t], i2 = [n3 + t + 1, O ? o3 - t / 2 : P2 ? o3 + 4 * t : o3 - 4 * t];
5279
+ return [...[[P2 || O ? S2.right - t : S2.left, S2.top], [P2 ? O ? S2.right - t : S2.left : S2.right - t, S2.bottom]], e5, i2];
5280
5280
  }
5281
5281
  case "right":
5282
- return [[n3 - t, O ? o3 + t / 2 : I2 ? o3 + 4 * t : o3 - 4 * t], [n3 - t, O ? o3 - t / 2 : I2 ? o3 + 4 * t : o3 - 4 * t], ...[[I2 || O ? C2.left + t : C2.right, C2.top], [I2 ? O ? C2.left + t : C2.right : C2.left + t, C2.bottom]]];
5282
+ return [[n3 - t, O ? o3 + t / 2 : P2 ? o3 + 4 * t : o3 - 4 * t], [n3 - t, O ? o3 - t / 2 : P2 ? o3 + 4 * t : o3 - 4 * t], ...[[P2 || O ? S2.left + t : S2.right, S2.top], [P2 ? O ? S2.left + t : S2.right : S2.left + t, S2.bottom]]];
5283
5283
  }
5284
5284
  }([n2, l2])) ? !r2 && o2 && (i = window.setTimeout(h, 40)) : h();
5285
5285
  }
@@ -5304,7 +5304,7 @@ const Xo = createContext({ getItemProps: () => ({}), activeIndex: null, setActiv
5304
5304
  });
5305
5305
  Qo.displayName = "DropdownMenuItem";
5306
5306
  const Zo = forwardRef(({ className: n, variant: i = "default", icon: r2, iconRight: a, text: s = "", disabled: p, children: m, ...h }, g) => {
5307
- const [y, v] = useState(false), [w, b2] = useState(false), [k, x] = useState(null), S2 = useRef([]), C2 = useRef([]), N2 = useContext(Xo), I2 = eo(), P2 = function() {
5307
+ const [y, v] = useState(false), [b, w2] = useState(false), [k, x] = useState(null), C2 = useRef([]), S2 = useRef([]), N2 = useContext(Xo), P2 = eo(), I2 = function() {
5308
5308
  const e = Gn(), t = eo(), n2 = Zn();
5309
5309
  return $n(() => {
5310
5310
  const o2 = { id: e, parentId: n2 };
@@ -5312,12 +5312,12 @@ const Zo = forwardRef(({ className: n, variant: i = "default", icon: r2, iconRig
5312
5312
  null == t || t.removeNode(o2);
5313
5313
  };
5314
5314
  }, [t, e, n2]), e;
5315
- }(), A = Zn(), O = Hn(), L2 = null != A, { floatingStyles: D2, refs: T2, context: R2 } = $o({ nodeId: P2, open: y, onOpenChange: v, placement: L2 ? "right-start" : "bottom-start", middleware: [(B2 = { mainAxis: L2 ? 0 : 4, alignmentAxis: L2 ? -4 : 0 }, { ...dn(B2), options: [B2, M2] }), kn(), bn()], whileElementsMounted: un });
5315
+ }(), A = Zn(), O = Hn(), L2 = null != A, { floatingStyles: D2, refs: T2, context: R2 } = $o({ nodeId: I2, open: y, onOpenChange: v, placement: L2 ? "right-start" : "bottom-start", middleware: [(B2 = { mainAxis: L2 ? 0 : 4, alignmentAxis: L2 ? -4 : 0 }, { ...dn(B2), options: [B2, M2] }), kn(), wn()], whileElementsMounted: un });
5316
5316
  var B2, M2;
5317
5317
  const F = function(e, t) {
5318
5318
  void 0 === t && (t = {});
5319
- const { open: n2, onOpenChange: i2, dataRef: r3, events: a2, elements: s2 } = e, { enabled: c = true, delay: l = 0, handleClose: u = null, mouseOnly: d = false, restMs: f = 0, move: p2 = true } = t, m2 = eo(), h2 = Zn(), g2 = io(u), y2 = io(l), v2 = io(n2), w2 = o.useRef(), b3 = o.useRef(-1), k2 = o.useRef(), x2 = o.useRef(-1), S3 = o.useRef(true), C3 = o.useRef(false), N3 = o.useRef(() => {
5320
- }), E2 = o.useRef(false), I3 = o.useCallback(() => {
5319
+ const { open: n2, onOpenChange: i2, dataRef: r3, events: a2, elements: s2 } = e, { enabled: c = true, delay: l = 0, handleClose: u = null, mouseOnly: d = false, restMs: f = 0, move: p2 = true } = t, m2 = eo(), h2 = Zn(), g2 = io(u), y2 = io(l), v2 = io(n2), b2 = o.useRef(), w3 = o.useRef(-1), k2 = o.useRef(), x2 = o.useRef(-1), C3 = o.useRef(true), S3 = o.useRef(false), N3 = o.useRef(() => {
5320
+ }), E2 = o.useRef(false), P3 = o.useCallback(() => {
5321
5321
  var e2;
5322
5322
  const t2 = null == (e2 = r3.current.openEvent) ? void 0 : e2.type;
5323
5323
  return (null == t2 ? void 0 : t2.includes("mouse")) && "mousedown" !== t2;
@@ -5329,7 +5329,7 @@ const Zo = forwardRef(({ className: n, variant: i = "default", icon: r2, iconRig
5329
5329
  };
5330
5330
  function e2(e3) {
5331
5331
  let { open: t2 } = e3;
5332
- t2 || (clearTimeout(b3.current), clearTimeout(x2.current), S3.current = true, E2.current = false);
5332
+ t2 || (clearTimeout(w3.current), clearTimeout(x2.current), C3.current = true, E2.current = false);
5333
5333
  }
5334
5334
  }, [c, a2]), o.useEffect(() => {
5335
5335
  if (!c)
@@ -5339,23 +5339,23 @@ const Zo = forwardRef(({ className: n, variant: i = "default", icon: r2, iconRig
5339
5339
  if (!n2)
5340
5340
  return;
5341
5341
  function e2(e3) {
5342
- I3() && i2(false, e3, "hover");
5342
+ P3() && i2(false, e3, "hover");
5343
5343
  }
5344
5344
  const t2 = Je(s2.floating).documentElement;
5345
5345
  return t2.addEventListener("mouseleave", e2), () => {
5346
5346
  t2.removeEventListener("mouseleave", e2);
5347
5347
  };
5348
- }, [s2.floating, n2, i2, c, g2, I3]);
5349
- const P3 = o.useCallback(function(e2, t2, n3) {
5348
+ }, [s2.floating, n2, i2, c, g2, P3]);
5349
+ const I3 = o.useCallback(function(e2, t2, n3) {
5350
5350
  void 0 === t2 && (t2 = true), void 0 === n3 && (n3 = "hover");
5351
- const o2 = ao(y2.current, "close", w2.current);
5352
- o2 && !k2.current ? (clearTimeout(b3.current), b3.current = window.setTimeout(() => i2(false, e2, n3), o2)) : t2 && (clearTimeout(b3.current), i2(false, e2, n3));
5351
+ const o2 = ao(y2.current, "close", b2.current);
5352
+ o2 && !k2.current ? (clearTimeout(w3.current), w3.current = window.setTimeout(() => i2(false, e2, n3), o2)) : t2 && (clearTimeout(w3.current), i2(false, e2, n3));
5353
5353
  }, [y2, i2]), A2 = Nn(() => {
5354
5354
  N3.current(), k2.current = void 0;
5355
5355
  }), O2 = Nn(() => {
5356
- if (C3.current) {
5356
+ if (S3.current) {
5357
5357
  const e2 = Je(s2.floating).body;
5358
- e2.style.pointerEvents = "", e2.removeAttribute(ro), C3.current = false;
5358
+ e2.style.pointerEvents = "", e2.removeAttribute(ro), S3.current = false;
5359
5359
  }
5360
5360
  }), L3 = Nn(() => !!r3.current.openEvent && ["click", "mousedown"].includes(r3.current.openEvent.type));
5361
5361
  o.useEffect(() => {
@@ -5368,10 +5368,10 @@ const Zo = forwardRef(({ className: n, variant: i = "default", icon: r2, iconRig
5368
5368
  };
5369
5369
  }
5370
5370
  function t2(e3) {
5371
- if (clearTimeout(b3.current), S3.current = false, d && !qe(w2.current) || f > 0 && !ao(y2.current, "open"))
5371
+ if (clearTimeout(w3.current), C3.current = false, d && !qe(b2.current) || f > 0 && !ao(y2.current, "open"))
5372
5372
  return;
5373
- const t3 = ao(y2.current, "open", w2.current);
5374
- t3 ? b3.current = window.setTimeout(() => {
5373
+ const t3 = ao(y2.current, "open", b2.current);
5374
+ t3 ? w3.current = window.setTimeout(() => {
5375
5375
  v2.current || i2(true, e3, "hover");
5376
5376
  }, t3) : n2 || i2(true, e3, "hover");
5377
5377
  }
@@ -5381,25 +5381,25 @@ const Zo = forwardRef(({ className: n, variant: i = "default", icon: r2, iconRig
5381
5381
  N3.current();
5382
5382
  const t3 = Je(s2.floating);
5383
5383
  if (clearTimeout(x2.current), E2.current = false, g2.current && r3.current.floatingContext) {
5384
- n2 || clearTimeout(b3.current), k2.current = g2.current({ ...r3.current.floatingContext, tree: m2, x: e3.clientX, y: e3.clientY, onClose() {
5385
- O2(), A2(), L3() || P3(e3, true, "safe-polygon");
5384
+ n2 || clearTimeout(w3.current), k2.current = g2.current({ ...r3.current.floatingContext, tree: m2, x: e3.clientX, y: e3.clientY, onClose() {
5385
+ O2(), A2(), L3() || I3(e3, true, "safe-polygon");
5386
5386
  } });
5387
5387
  const o3 = k2.current;
5388
5388
  return t3.addEventListener("mousemove", o3), void (N3.current = () => {
5389
5389
  t3.removeEventListener("mousemove", o3);
5390
5390
  });
5391
5391
  }
5392
- ("touch" !== w2.current || !ze(s2.floating, e3.relatedTarget)) && P3(e3);
5392
+ ("touch" !== b2.current || !ze(s2.floating, e3.relatedTarget)) && I3(e3);
5393
5393
  }
5394
5394
  function a3(e3) {
5395
5395
  L3() || r3.current.floatingContext && (null == g2.current || g2.current({ ...r3.current.floatingContext, tree: m2, x: e3.clientX, y: e3.clientY, onClose() {
5396
- O2(), A2(), L3() || P3(e3);
5396
+ O2(), A2(), L3() || I3(e3);
5397
5397
  } })(e3));
5398
5398
  }
5399
- }, [s2, c, e, d, f, p2, P3, A2, O2, i2, n2, v2, m2, y2, g2, r3, L3]), $n(() => {
5399
+ }, [s2, c, e, d, f, p2, I3, A2, O2, i2, n2, v2, m2, y2, g2, r3, L3]), $n(() => {
5400
5400
  var e2;
5401
- if (c && n2 && null != (e2 = g2.current) && e2.__options.blockPointerEvents && I3()) {
5402
- C3.current = true;
5401
+ if (c && n2 && null != (e2 = g2.current) && e2.__options.blockPointerEvents && P3()) {
5402
+ S3.current = true;
5403
5403
  const e3 = s2.floating;
5404
5404
  if (ve(s2.domReference) && e3) {
5405
5405
  var t2;
@@ -5411,27 +5411,27 @@ const Zo = forwardRef(({ className: n, variant: i = "default", icon: r2, iconRig
5411
5411
  };
5412
5412
  }
5413
5413
  }
5414
- }, [c, n2, h2, s2, m2, g2, I3]), $n(() => {
5415
- n2 || (w2.current = void 0, E2.current = false, A2(), O2());
5414
+ }, [c, n2, h2, s2, m2, g2, P3]), $n(() => {
5415
+ n2 || (b2.current = void 0, E2.current = false, A2(), O2());
5416
5416
  }, [n2, A2, O2]), o.useEffect(() => () => {
5417
- A2(), clearTimeout(b3.current), clearTimeout(x2.current), O2();
5417
+ A2(), clearTimeout(w3.current), clearTimeout(x2.current), O2();
5418
5418
  }, [c, s2.domReference, A2, O2]);
5419
5419
  const D3 = o.useMemo(() => {
5420
5420
  function e2(e3) {
5421
- w2.current = e3.pointerType;
5421
+ b2.current = e3.pointerType;
5422
5422
  }
5423
5423
  return { onPointerDown: e2, onPointerEnter: e2, onMouseMove(e3) {
5424
5424
  const { nativeEvent: t2 } = e3;
5425
5425
  function o2() {
5426
- S3.current || v2.current || i2(true, t2, "hover");
5426
+ C3.current || v2.current || i2(true, t2, "hover");
5427
5427
  }
5428
- d && !qe(w2.current) || n2 || 0 === f || E2.current && e3.movementX ** 2 + e3.movementY ** 2 < 2 || (clearTimeout(x2.current), "touch" === w2.current ? o2() : (E2.current = true, x2.current = window.setTimeout(o2, f)));
5428
+ d && !qe(b2.current) || n2 || 0 === f || E2.current && e3.movementX ** 2 + e3.movementY ** 2 < 2 || (clearTimeout(x2.current), "touch" === b2.current ? o2() : (E2.current = true, x2.current = window.setTimeout(o2, f)));
5429
5429
  } };
5430
5430
  }, [d, i2, n2, v2, f]), T3 = o.useMemo(() => ({ onMouseEnter() {
5431
- clearTimeout(b3.current);
5431
+ clearTimeout(w3.current);
5432
5432
  }, onMouseLeave(e2) {
5433
- L3() || P3(e2.nativeEvent, false);
5434
- } }), [P3, L3]);
5433
+ L3() || I3(e2.nativeEvent, false);
5434
+ } }), [I3, L3]);
5435
5435
  return o.useMemo(() => c ? { reference: D3, floating: T3 } : {}, [c, D3, T3]);
5436
5436
  }(R2, { enabled: L2, delay: { open: 75 }, handleClose: Yo({ blockPointerEvents: true }) }), _2 = function(e, t) {
5437
5437
  void 0 === t && (t = {});
@@ -5469,7 +5469,7 @@ const Zo = forwardRef(({ className: n, variant: i = "default", icon: r2, iconRig
5469
5469
  return o.useMemo(() => a2 ? { reference: d, floating: f, item: p2 } : {}, [a2, d, f, p2]);
5470
5470
  }(R2, { role: "menu" }), z2 = function(e, t) {
5471
5471
  void 0 === t && (t = {});
5472
- const { open: n2, onOpenChange: i2, elements: r3, dataRef: a2 } = e, { enabled: s2 = true, escapeKey: c = true, outsidePress: l = true, outsidePressEvent: u = "pointerdown", referencePress: d = false, referencePressEvent: f = "pointerdown", ancestorScroll: p2 = false, bubbles: m2, capture: h2 } = t, g2 = eo(), y2 = Nn("function" == typeof l ? l : () => false), v2 = "function" == typeof l ? y2 : l, w2 = o.useRef(false), b3 = o.useRef(false), { escapeKey: k2, outsidePress: x2 } = Mo(m2), { escapeKey: S3, outsidePress: C3 } = Mo(h2), N3 = o.useRef(false), E2 = Nn((e2) => {
5472
+ const { open: n2, onOpenChange: i2, elements: r3, dataRef: a2 } = e, { enabled: s2 = true, escapeKey: c = true, outsidePress: l = true, outsidePressEvent: u = "pointerdown", referencePress: d = false, referencePressEvent: f = "pointerdown", ancestorScroll: p2 = false, bubbles: m2, capture: h2 } = t, g2 = eo(), y2 = Nn("function" == typeof l ? l : () => false), v2 = "function" == typeof l ? y2 : l, b2 = o.useRef(false), w3 = o.useRef(false), { escapeKey: k2, outsidePress: x2 } = Mo(m2), { escapeKey: C3, outsidePress: S3 } = Mo(h2), N3 = o.useRef(false), E2 = Nn((e2) => {
5473
5473
  var t2;
5474
5474
  if (!n2 || !s2 || !c || "Escape" !== e2.key)
5475
5475
  return;
@@ -5487,19 +5487,19 @@ const Zo = forwardRef(({ className: n, variant: i = "default", icon: r2, iconRig
5487
5487
  i2(false, function(e3) {
5488
5488
  return "nativeEvent" in e3;
5489
5489
  }(e2) ? e2.nativeEvent : e2, "escape-key");
5490
- }), I3 = Nn((e2) => {
5490
+ }), P3 = Nn((e2) => {
5491
5491
  var t2;
5492
5492
  const n3 = () => {
5493
5493
  var t3;
5494
5494
  E2(e2), null == (t3 = Xe(e2)) || t3.removeEventListener("keydown", n3);
5495
5495
  };
5496
5496
  null == (t2 = Xe(e2)) || t2.addEventListener("keydown", n3);
5497
- }), P3 = Nn((e2) => {
5497
+ }), I3 = Nn((e2) => {
5498
5498
  var t2;
5499
- const n3 = w2.current;
5500
- w2.current = false;
5501
- const o2 = b3.current;
5502
- if (b3.current = false, "click" === u && o2)
5499
+ const n3 = b2.current;
5500
+ b2.current = false;
5501
+ const o2 = w3.current;
5502
+ if (w3.current = false, "click" === u && o2)
5503
5503
  return;
5504
5504
  if (n3)
5505
5505
  return;
@@ -5515,7 +5515,7 @@ const Zo = forwardRef(({ className: n, variant: i = "default", icon: r2, iconRig
5515
5515
  }
5516
5516
  if (l2.length && ve(s3) && !s3.matches("html,body") && !ze(s3, r3.floating) && Array.from(l2).every((e3) => !ze(d2, e3)))
5517
5517
  return;
5518
- if (we(s3) && L3) {
5518
+ if (be(s3) && L3) {
5519
5519
  const t3 = s3.clientWidth > 0 && s3.scrollWidth > s3.clientWidth, n4 = s3.clientHeight > 0 && s3.scrollHeight > s3.clientHeight;
5520
5520
  let o3 = n4 && e2.offsetX > s3.clientWidth;
5521
5521
  if (n4 && "rtl" === Re(s3).direction && (o3 = e2.offsetX <= s3.offsetWidth - s3.clientWidth), o3 || t3 && e2.offsetY > s3.clientHeight)
@@ -5541,7 +5541,7 @@ const Zo = forwardRef(({ className: n, variant: i = "default", icon: r2, iconRig
5541
5541
  var t2;
5542
5542
  const n3 = () => {
5543
5543
  var t3;
5544
- P3(e2), null == (t3 = Xe(e2)) || t3.removeEventListener(u, n3);
5544
+ I3(e2), null == (t3 = Xe(e2)) || t3.removeEventListener(u, n3);
5545
5545
  };
5546
5546
  null == (t2 = Xe(e2)) || t2.addEventListener(u, n3);
5547
5547
  });
@@ -5562,7 +5562,7 @@ const Zo = forwardRef(({ className: n, variant: i = "default", icon: r2, iconRig
5562
5562
  }, Le() ? 5 : 0);
5563
5563
  }
5564
5564
  const d2 = Je(r3.floating);
5565
- c && (d2.addEventListener("keydown", S3 ? I3 : E2, S3), d2.addEventListener("compositionstart", o2), d2.addEventListener("compositionend", l2)), v2 && d2.addEventListener(u, C3 ? A2 : P3, C3);
5565
+ c && (d2.addEventListener("keydown", C3 ? P3 : E2, C3), d2.addEventListener("compositionstart", o2), d2.addEventListener("compositionend", l2)), v2 && d2.addEventListener(u, S3 ? A2 : I3, S3);
5566
5566
  let f2 = [];
5567
5567
  return p2 && (ve(r3.domReference) && (f2 = $e(r3.domReference)), ve(r3.floating) && (f2 = f2.concat($e(r3.floating))), !ve(r3.reference) && r3.reference && r3.reference.contextElement && (f2 = f2.concat($e(r3.reference.contextElement)))), f2 = f2.filter((e3) => {
5568
5568
  var t3;
@@ -5570,47 +5570,47 @@ const Zo = forwardRef(({ className: n, variant: i = "default", icon: r2, iconRig
5570
5570
  }), f2.forEach((e3) => {
5571
5571
  e3.addEventListener("scroll", t2, { passive: true });
5572
5572
  }), () => {
5573
- c && (d2.removeEventListener("keydown", S3 ? I3 : E2, S3), d2.removeEventListener("compositionstart", o2), d2.removeEventListener("compositionend", l2)), v2 && d2.removeEventListener(u, C3 ? A2 : P3, C3), f2.forEach((e3) => {
5573
+ c && (d2.removeEventListener("keydown", C3 ? P3 : E2, C3), d2.removeEventListener("compositionstart", o2), d2.removeEventListener("compositionend", l2)), v2 && d2.removeEventListener(u, S3 ? A2 : I3, S3), f2.forEach((e3) => {
5574
5574
  e3.removeEventListener("scroll", t2);
5575
5575
  }), window.clearTimeout(e2);
5576
5576
  };
5577
- }, [a2, r3, c, v2, u, n2, i2, p2, s2, k2, x2, E2, S3, I3, P3, C3, A2]), o.useEffect(() => {
5578
- w2.current = false;
5577
+ }, [a2, r3, c, v2, u, n2, i2, p2, s2, k2, x2, E2, C3, P3, I3, S3, A2]), o.useEffect(() => {
5578
+ b2.current = false;
5579
5579
  }, [v2, u]);
5580
5580
  const O2 = o.useMemo(() => ({ onKeyDown: E2, [Ro[f]]: (e2) => {
5581
5581
  d && i2(false, e2.nativeEvent, "reference-press");
5582
5582
  } }), [E2, i2, d, f]), L3 = o.useMemo(() => ({ onKeyDown: E2, onMouseDown() {
5583
- b3.current = true;
5583
+ w3.current = true;
5584
5584
  }, onMouseUp() {
5585
- b3.current = true;
5585
+ w3.current = true;
5586
5586
  }, [Bo[u]]: () => {
5587
- w2.current = true;
5587
+ b2.current = true;
5588
5588
  } }), [E2, u]);
5589
5589
  return o.useMemo(() => s2 ? { reference: O2, floating: L3 } : {}, [s2, O2, L3]);
5590
- }(R2, { bubbles: true }), H2 = Go(R2, { listRef: S2, activeIndex: k, nested: L2, onNavigate: x }), { getReferenceProps: W2, getFloatingProps: V2, getItemProps: U2 } = function(e) {
5590
+ }(R2, { bubbles: true }), H2 = Go(R2, { listRef: C2, activeIndex: k, nested: L2, onNavigate: x }), { getReferenceProps: W2, getFloatingProps: V2, getItemProps: U2 } = function(e) {
5591
5591
  void 0 === e && (e = []);
5592
5592
  const t = e.map((e2) => null == e2 ? void 0 : e2.reference), n2 = e.map((e2) => null == e2 ? void 0 : e2.floating), i2 = e.map((e2) => null == e2 ? void 0 : e2.item), r3 = o.useCallback((t2) => zo(t2, e, "reference"), t), a2 = o.useCallback((t2) => zo(t2, e, "floating"), n2), s2 = o.useCallback((t2) => zo(t2, e, "item"), i2);
5593
5593
  return o.useMemo(() => ({ getReferenceProps: r3, getFloatingProps: a2, getItemProps: s2 }), [r3, a2, s2]);
5594
5594
  }([F, _2, j2, z2, H2]);
5595
5595
  useEffect(() => {
5596
- if (I2)
5597
- return I2.events.on("click", e), I2.events.on("menuopen", t), () => {
5598
- I2.events.off("click", e), I2.events.off("menuopen", t);
5596
+ if (P2)
5597
+ return P2.events.on("click", e), P2.events.on("menuopen", t), () => {
5598
+ P2.events.off("click", e), P2.events.off("menuopen", t);
5599
5599
  };
5600
5600
  function e() {
5601
5601
  v(false);
5602
5602
  }
5603
5603
  function t(e2) {
5604
- e2.nodeId !== P2 && e2.parentId === A && v(false);
5604
+ e2.nodeId !== I2 && e2.parentId === A && v(false);
5605
5605
  }
5606
- }, [I2, P2, A]), useEffect(() => {
5607
- y && I2 && I2.events.emit("menuopen", { parentId: A, nodeId: P2 });
5608
- }, [I2, y, P2, A]);
5609
- const K2 = { activeIndex: k, setActiveIndex: x, getItemProps: U2, setHasFocusInside: b2, isOpen: y, setIsOpen: v }, G2 = useMemo(() => K2, [k, x, U2, b2, y]), q2 = E("io-dropdown-menu-button", L2 && "io-dropdown-menu-item", y && !L2 && "active", n), J2 = xn([T2.setReference, O.ref, g]), Y2 = N2.activeIndex === O.index ? 0 : -1;
5610
- return jsxs(to, { id: P2, children: [jsx($, { className: q2, ref: J2, variant: L2 ? "link" : i, tabIndex: L2 ? Y2 : void 0, role: L2 ? "menuitem" : void 0, "data-open": y ? "" : void 0, "data-nested": L2 ? "" : void 0, "data-focus-inside": w ? "" : void 0, text: s, icon: L2 ? "chevron-right" : r2, iconSize: "10", iconRight: !!L2 || a, disabled: p, ...W2(N2.getItemProps({ onFocus(e) {
5606
+ }, [P2, I2, A]), useEffect(() => {
5607
+ y && P2 && P2.events.emit("menuopen", { parentId: A, nodeId: I2 });
5608
+ }, [P2, y, I2, A]);
5609
+ const K2 = { activeIndex: k, setActiveIndex: x, getItemProps: U2, setHasFocusInside: w2, isOpen: y, setIsOpen: v }, G2 = useMemo(() => K2, [k, x, U2, w2, y]), q2 = E("io-dropdown-menu-button", L2 && "io-dropdown-menu-item", y && !L2 && "active", n), J2 = xn([T2.setReference, O.ref, g]), Y2 = N2.activeIndex === O.index ? 0 : -1;
5610
+ return jsxs(to, { id: I2, children: [jsx($, { className: q2, ref: J2, variant: L2 ? "link" : i, tabIndex: L2 ? Y2 : void 0, role: L2 ? "menuitem" : void 0, "data-open": y ? "" : void 0, "data-nested": L2 ? "" : void 0, "data-focus-inside": b ? "" : void 0, text: s, icon: L2 ? "chevron-right" : r2, iconSize: "10", iconRight: !!L2 || a, disabled: p, ...W2(N2.getItemProps({ onFocus(e) {
5611
5611
  var _a2;
5612
- (_a2 = h.onFocus) == null ? void 0 : _a2.call(h, e), b2(false), N2.setHasFocusInside(true);
5613
- }, ...h })) }), jsx(Xo.Provider, { value: G2, children: jsx(zn, { elementsRef: S2, labelsRef: C2, children: y && jsx(Lo, { context: R2, modal: false, initialFocus: L2 ? -1 : 0, returnFocus: !L2, children: jsx("div", { ref: T2.setFloating, className: "io-dropdown-menu", style: D2, ...V2(), children: m }) }) }) })] });
5612
+ (_a2 = h.onFocus) == null ? void 0 : _a2.call(h, e), w2(false), N2.setHasFocusInside(true);
5613
+ }, ...h })) }), jsx(Xo.Provider, { value: G2, children: jsx(zn, { elementsRef: C2, labelsRef: S2, children: y && jsx(Lo, { context: R2, modal: false, initialFocus: L2 ? -1 : 0, returnFocus: !L2, children: jsx("div", { ref: T2.setFloating, className: "io-dropdown-menu", style: D2, ...V2(), children: m }) }) }) })] });
5614
5614
  });
5615
5615
  Zo.displayName = "DropdownMenu";
5616
5616
  const ei = forwardRef(({ ...t }, n) => null === Zn() ? jsx(no, { children: jsx(Zo, { ref: n, ...t }) }) : jsx(Zo, { ref: n, ...t }));
@@ -5635,17 +5635,17 @@ function yi(e) {
5635
5635
  function vi(e) {
5636
5636
  return e instanceof yi(e).Element || e instanceof Element;
5637
5637
  }
5638
- function wi(e) {
5638
+ function bi(e) {
5639
5639
  return e instanceof yi(e).HTMLElement || e instanceof HTMLElement;
5640
5640
  }
5641
- function bi(e) {
5641
+ function wi(e) {
5642
5642
  return "undefined" != typeof ShadowRoot && (e instanceof yi(e).ShadowRoot || e instanceof ShadowRoot);
5643
5643
  }
5644
5644
  var ki = { name: "applyStyles", enabled: true, phase: "write", fn: function(e) {
5645
5645
  var t = e.state;
5646
5646
  Object.keys(t.elements).forEach(function(e2) {
5647
5647
  var n = t.styles[e2] || {}, o2 = t.attributes[e2] || {}, i = t.elements[e2];
5648
- wi(i) && gi(i) && (Object.assign(i.style, n), Object.keys(o2).forEach(function(e3) {
5648
+ bi(i) && gi(i) && (Object.assign(i.style, n), Object.keys(o2).forEach(function(e3) {
5649
5649
  var t2 = o2[e3];
5650
5650
  false === t2 ? i.removeAttribute(e3) : i.setAttribute(e3, true === t2 ? "" : t2);
5651
5651
  }));
@@ -5657,7 +5657,7 @@ var ki = { name: "applyStyles", enabled: true, phase: "write", fn: function(e) {
5657
5657
  var o2 = t.elements[e2], i = t.attributes[e2] || {}, r2 = Object.keys(t.styles.hasOwnProperty(e2) ? t.styles[e2] : n[e2]).reduce(function(e3, t2) {
5658
5658
  return e3[t2] = "", e3;
5659
5659
  }, {});
5660
- wi(o2) && gi(o2) && (Object.assign(o2.style, r2), Object.keys(i).forEach(function(e3) {
5660
+ bi(o2) && gi(o2) && (Object.assign(o2.style, r2), Object.keys(i).forEach(function(e3) {
5661
5661
  o2.removeAttribute(e3);
5662
5662
  }));
5663
5663
  });
@@ -5666,32 +5666,32 @@ var ki = { name: "applyStyles", enabled: true, phase: "write", fn: function(e) {
5666
5666
  function xi(e) {
5667
5667
  return e.split("-")[0];
5668
5668
  }
5669
- var Si = Math.max, Ci = Math.min, Ni = Math.round;
5669
+ var Ci = Math.max, Si = Math.min, Ni = Math.round;
5670
5670
  function Ei() {
5671
5671
  var e = navigator.userAgentData;
5672
5672
  return null != e && e.brands && Array.isArray(e.brands) ? e.brands.map(function(e2) {
5673
5673
  return e2.brand + "/" + e2.version;
5674
5674
  }).join(" ") : navigator.userAgent;
5675
5675
  }
5676
- function Ii() {
5676
+ function Pi() {
5677
5677
  return !/^((?!chrome|android).)*safari/i.test(Ei());
5678
5678
  }
5679
- function Pi(e, t, n) {
5679
+ function Ii(e, t, n) {
5680
5680
  void 0 === t && (t = false), void 0 === n && (n = false);
5681
5681
  var o2 = e.getBoundingClientRect(), i = 1, r2 = 1;
5682
- t && wi(e) && (i = e.offsetWidth > 0 && Ni(o2.width) / e.offsetWidth || 1, r2 = e.offsetHeight > 0 && Ni(o2.height) / e.offsetHeight || 1);
5683
- var a = (vi(e) ? yi(e) : window).visualViewport, s = !Ii() && n, c = (o2.left + (s && a ? a.offsetLeft : 0)) / i, l = (o2.top + (s && a ? a.offsetTop : 0)) / r2, u = o2.width / i, d = o2.height / r2;
5682
+ t && bi(e) && (i = e.offsetWidth > 0 && Ni(o2.width) / e.offsetWidth || 1, r2 = e.offsetHeight > 0 && Ni(o2.height) / e.offsetHeight || 1);
5683
+ var a = (vi(e) ? yi(e) : window).visualViewport, s = !Pi() && n, c = (o2.left + (s && a ? a.offsetLeft : 0)) / i, l = (o2.top + (s && a ? a.offsetTop : 0)) / r2, u = o2.width / i, d = o2.height / r2;
5684
5684
  return { width: u, height: d, top: l, right: c + u, bottom: l + d, left: c, x: c, y: l };
5685
5685
  }
5686
5686
  function Ai(e) {
5687
- var t = Pi(e), n = e.offsetWidth, o2 = e.offsetHeight;
5687
+ var t = Ii(e), n = e.offsetWidth, o2 = e.offsetHeight;
5688
5688
  return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - o2) <= 1 && (o2 = t.height), { x: e.offsetLeft, y: e.offsetTop, width: n, height: o2 };
5689
5689
  }
5690
5690
  function Oi(e, t) {
5691
5691
  var n = t.getRootNode && t.getRootNode();
5692
5692
  if (e.contains(t))
5693
5693
  return true;
5694
- if (n && bi(n)) {
5694
+ if (n && wi(n)) {
5695
5695
  var o2 = t;
5696
5696
  do {
5697
5697
  if (o2 && e.isSameNode(o2))
@@ -5711,20 +5711,20 @@ function Ti(e) {
5711
5711
  return ((vi(e) ? e.ownerDocument : e.document) || window.document).documentElement;
5712
5712
  }
5713
5713
  function Ri(e) {
5714
- return "html" === gi(e) ? e : e.assignedSlot || e.parentNode || (bi(e) ? e.host : null) || Ti(e);
5714
+ return "html" === gi(e) ? e : e.assignedSlot || e.parentNode || (wi(e) ? e.host : null) || Ti(e);
5715
5715
  }
5716
5716
  function Bi(e) {
5717
- return wi(e) && "fixed" !== Li(e).position ? e.offsetParent : null;
5717
+ return bi(e) && "fixed" !== Li(e).position ? e.offsetParent : null;
5718
5718
  }
5719
5719
  function Mi(e) {
5720
5720
  for (var t = yi(e), n = Bi(e); n && Di(n) && "static" === Li(n).position; )
5721
5721
  n = Bi(n);
5722
5722
  return n && ("html" === gi(n) || "body" === gi(n) && "static" === Li(n).position) ? t : n || function(e2) {
5723
5723
  var t2 = /firefox/i.test(Ei());
5724
- if (/Trident/i.test(Ei()) && wi(e2) && "fixed" === Li(e2).position)
5724
+ if (/Trident/i.test(Ei()) && bi(e2) && "fixed" === Li(e2).position)
5725
5725
  return null;
5726
5726
  var n2 = Ri(e2);
5727
- for (bi(n2) && (n2 = n2.host); wi(n2) && ["html", "body"].indexOf(gi(n2)) < 0; ) {
5727
+ for (wi(n2) && (n2 = n2.host); bi(n2) && ["html", "body"].indexOf(gi(n2)) < 0; ) {
5728
5728
  var o2 = Li(n2);
5729
5729
  if ("none" !== o2.transform || "none" !== o2.perspective || "paint" === o2.contain || -1 !== ["transform", "perspective"].indexOf(o2.willChange) || t2 && "filter" === o2.willChange || t2 && o2.filter && "none" !== o2.filter)
5730
5730
  return n2;
@@ -5737,7 +5737,7 @@ function Fi(e) {
5737
5737
  return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
5738
5738
  }
5739
5739
  function $i(e, t, n) {
5740
- return Si(e, Ci(t, n));
5740
+ return Ci(e, Si(t, n));
5741
5741
  }
5742
5742
  function _i(e) {
5743
5743
  return Object.assign({}, { top: 0, right: 0, bottom: 0, left: 0 }, e);
@@ -5752,8 +5752,8 @@ var zi = { name: "arrow", enabled: true, phase: "main", fn: function(e) {
5752
5752
  if (r2 && a) {
5753
5753
  var u = function(e2, t2) {
5754
5754
  return _i("number" != typeof (e2 = "function" == typeof e2 ? e2(Object.assign({}, t2.rects, { placement: t2.placement })) : e2) ? e2 : ji(e2, ci));
5755
- }(i.padding, n), d = Ai(r2), f = "y" === c ? oi : ai, p = "y" === c ? ii : ri, m = n.rects.reference[l] + n.rects.reference[c] - a[c] - n.rects.popper[l], h = a[c] - n.rects.reference[c], g = Mi(r2), y = g ? "y" === c ? g.clientHeight || 0 : g.clientWidth || 0 : 0, v = m / 2 - h / 2, w = u[f], b2 = y - d[l] - u[p], k = y / 2 - d[l] / 2 + v, x = $i(w, k, b2), S2 = c;
5756
- n.modifiersData[o2] = ((t = {})[S2] = x, t.centerOffset = x - k, t);
5755
+ }(i.padding, n), d = Ai(r2), f = "y" === c ? oi : ai, p = "y" === c ? ii : ri, m = n.rects.reference[l] + n.rects.reference[c] - a[c] - n.rects.popper[l], h = a[c] - n.rects.reference[c], g = Mi(r2), y = g ? "y" === c ? g.clientHeight || 0 : g.clientWidth || 0 : 0, v = m / 2 - h / 2, b = u[f], w2 = y - d[l] - u[p], k = y / 2 - d[l] / 2 + v, x = $i(b, k, w2), C2 = c;
5756
+ n.modifiersData[o2] = ((t = {})[C2] = x, t.centerOffset = x - k, t);
5757
5757
  }
5758
5758
  }, effect: function(e) {
5759
5759
  var t = e.state, n = e.options.element, o2 = void 0 === n ? "[data-popper-arrow]" : n;
@@ -5766,19 +5766,19 @@ var Wi = { top: "auto", right: "auto", bottom: "auto", left: "auto" };
5766
5766
  function Vi(e) {
5767
5767
  var t, n = e.popper, o2 = e.popperRect, i = e.placement, r2 = e.variation, a = e.offsets, s = e.position, c = e.gpuAcceleration, l = e.adaptive, u = e.roundOffsets, d = e.isFixed, f = a.x, p = void 0 === f ? 0 : f, m = a.y, h = void 0 === m ? 0 : m, g = "function" == typeof u ? u({ x: p, y: h }) : { x: p, y: h };
5768
5768
  p = g.x, h = g.y;
5769
- var y = a.hasOwnProperty("x"), v = a.hasOwnProperty("y"), w = ai, b2 = oi, k = window;
5769
+ var y = a.hasOwnProperty("x"), v = a.hasOwnProperty("y"), b = ai, w2 = oi, k = window;
5770
5770
  if (l) {
5771
- var x = Mi(n), S2 = "clientHeight", C2 = "clientWidth";
5772
- if (x === yi(n) && "static" !== Li(x = Ti(n)).position && "absolute" === s && (S2 = "scrollHeight", C2 = "scrollWidth"), i === oi || (i === ai || i === ri) && r2 === ui)
5773
- b2 = ii, h -= (d && x === k && k.visualViewport ? k.visualViewport.height : x[S2]) - o2.height, h *= c ? 1 : -1;
5771
+ var x = Mi(n), C2 = "clientHeight", S2 = "clientWidth";
5772
+ if (x === yi(n) && "static" !== Li(x = Ti(n)).position && "absolute" === s && (C2 = "scrollHeight", S2 = "scrollWidth"), i === oi || (i === ai || i === ri) && r2 === ui)
5773
+ w2 = ii, h -= (d && x === k && k.visualViewport ? k.visualViewport.height : x[C2]) - o2.height, h *= c ? 1 : -1;
5774
5774
  if (i === ai || (i === oi || i === ii) && r2 === ui)
5775
- w = ri, p -= (d && x === k && k.visualViewport ? k.visualViewport.width : x[C2]) - o2.width, p *= c ? 1 : -1;
5775
+ b = ri, p -= (d && x === k && k.visualViewport ? k.visualViewport.width : x[S2]) - o2.width, p *= c ? 1 : -1;
5776
5776
  }
5777
- var N2, E2 = Object.assign({ position: s }, l && Wi), I2 = true === u ? function(e2, t2) {
5777
+ var N2, E2 = Object.assign({ position: s }, l && Wi), P2 = true === u ? function(e2, t2) {
5778
5778
  var n2 = e2.x, o3 = e2.y, i2 = t2.devicePixelRatio || 1;
5779
5779
  return { x: Ni(n2 * i2) / i2 || 0, y: Ni(o3 * i2) / i2 || 0 };
5780
5780
  }({ x: p, y: h }, yi(n)) : { x: p, y: h };
5781
- return p = I2.x, h = I2.y, c ? Object.assign({}, E2, ((N2 = {})[b2] = v ? "0" : "", N2[w] = y ? "0" : "", N2.transform = (k.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + h + "px)" : "translate3d(" + p + "px, " + h + "px, 0)", N2)) : Object.assign({}, E2, ((t = {})[b2] = v ? h + "px" : "", t[w] = y ? p + "px" : "", t.transform = "", t));
5781
+ return p = P2.x, h = P2.y, c ? Object.assign({}, E2, ((N2 = {})[w2] = v ? "0" : "", N2[b] = y ? "0" : "", N2.transform = (k.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + h + "px)" : "translate3d(" + p + "px, " + h + "px, 0)", N2)) : Object.assign({}, E2, ((t = {})[w2] = v ? h + "px" : "", t[b] = y ? p + "px" : "", t.transform = "", t));
5782
5782
  }
5783
5783
  var Ui = { passive: true };
5784
5784
  var Ki = { left: "right", right: "left", bottom: "top", top: "bottom" };
@@ -5798,14 +5798,14 @@ function Yi(e) {
5798
5798
  return { scrollLeft: t.pageXOffset, scrollTop: t.pageYOffset };
5799
5799
  }
5800
5800
  function Xi(e) {
5801
- return Pi(Ti(e)).left + Yi(e).scrollLeft;
5801
+ return Ii(Ti(e)).left + Yi(e).scrollLeft;
5802
5802
  }
5803
5803
  function Qi(e) {
5804
5804
  var t = Li(e), n = t.overflow, o2 = t.overflowX, i = t.overflowY;
5805
5805
  return /auto|scroll|overlay|hidden/.test(n + i + o2);
5806
5806
  }
5807
5807
  function Zi(e) {
5808
- return ["html", "body", "#document"].indexOf(gi(e)) >= 0 ? e.ownerDocument.body : wi(e) && Qi(e) ? e : Zi(Ri(e));
5808
+ return ["html", "body", "#document"].indexOf(gi(e)) >= 0 ? e.ownerDocument.body : bi(e) && Qi(e) ? e : Zi(Ri(e));
5809
5809
  }
5810
5810
  function er(e, t) {
5811
5811
  var n;
@@ -5821,27 +5821,27 @@ function nr(e, t, n) {
5821
5821
  var n2 = yi(e2), o2 = Ti(e2), i = n2.visualViewport, r2 = o2.clientWidth, a = o2.clientHeight, s = 0, c = 0;
5822
5822
  if (i) {
5823
5823
  r2 = i.width, a = i.height;
5824
- var l = Ii();
5824
+ var l = Pi();
5825
5825
  (l || !l && "fixed" === t2) && (s = i.offsetLeft, c = i.offsetTop);
5826
5826
  }
5827
5827
  return { width: r2, height: a, x: s + Xi(e2), y: c };
5828
5828
  }(e, n)) : vi(t) ? function(e2, t2) {
5829
- var n2 = Pi(e2, false, "fixed" === t2);
5829
+ var n2 = Ii(e2, false, "fixed" === t2);
5830
5830
  return n2.top = n2.top + e2.clientTop, n2.left = n2.left + e2.clientLeft, n2.bottom = n2.top + e2.clientHeight, n2.right = n2.left + e2.clientWidth, n2.width = e2.clientWidth, n2.height = e2.clientHeight, n2.x = n2.left, n2.y = n2.top, n2;
5831
5831
  }(t, n) : tr(function(e2) {
5832
- var t2, n2 = Ti(e2), o2 = Yi(e2), i = null == (t2 = e2.ownerDocument) ? void 0 : t2.body, r2 = Si(n2.scrollWidth, n2.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), a = Si(n2.scrollHeight, n2.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), s = -o2.scrollLeft + Xi(e2), c = -o2.scrollTop;
5833
- return "rtl" === Li(i || n2).direction && (s += Si(n2.clientWidth, i ? i.clientWidth : 0) - r2), { width: r2, height: a, x: s, y: c };
5832
+ var t2, n2 = Ti(e2), o2 = Yi(e2), i = null == (t2 = e2.ownerDocument) ? void 0 : t2.body, r2 = Ci(n2.scrollWidth, n2.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), a = Ci(n2.scrollHeight, n2.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), s = -o2.scrollLeft + Xi(e2), c = -o2.scrollTop;
5833
+ return "rtl" === Li(i || n2).direction && (s += Ci(n2.clientWidth, i ? i.clientWidth : 0) - r2), { width: r2, height: a, x: s, y: c };
5834
5834
  }(Ti(e)));
5835
5835
  }
5836
5836
  function or(e, t, n, o2) {
5837
5837
  var i = "clippingParents" === t ? function(e2) {
5838
- var t2 = er(Ri(e2)), n2 = ["absolute", "fixed"].indexOf(Li(e2).position) >= 0 && wi(e2) ? Mi(e2) : e2;
5838
+ var t2 = er(Ri(e2)), n2 = ["absolute", "fixed"].indexOf(Li(e2).position) >= 0 && bi(e2) ? Mi(e2) : e2;
5839
5839
  return vi(n2) ? t2.filter(function(e3) {
5840
5840
  return vi(e3) && Oi(e3, n2) && "body" !== gi(e3);
5841
5841
  }) : [];
5842
5842
  }(e) : [].concat(t), r2 = [].concat(i, [n]), a = r2[0], s = r2.reduce(function(t2, n2) {
5843
5843
  var i2 = nr(e, n2, o2);
5844
- return t2.top = Si(i2.top, t2.top), t2.right = Ci(i2.right, t2.right), t2.bottom = Ci(i2.bottom, t2.bottom), t2.left = Si(i2.left, t2.left), t2;
5844
+ return t2.top = Ci(i2.top, t2.top), t2.right = Si(i2.right, t2.right), t2.bottom = Si(i2.bottom, t2.bottom), t2.left = Ci(i2.left, t2.left), t2;
5845
5845
  }, nr(e, a, o2));
5846
5846
  return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
5847
5847
  }
@@ -5878,12 +5878,12 @@ function ir(e) {
5878
5878
  }
5879
5879
  function rr(e, t) {
5880
5880
  void 0 === t && (t = {});
5881
- var n = t, o2 = n.placement, i = void 0 === o2 ? e.placement : o2, r2 = n.strategy, a = void 0 === r2 ? e.strategy : r2, s = n.boundary, c = void 0 === s ? "clippingParents" : s, l = n.rootBoundary, u = void 0 === l ? di : l, d = n.elementContext, f = void 0 === d ? fi : d, p = n.altBoundary, m = void 0 !== p && p, h = n.padding, g = void 0 === h ? 0 : h, y = _i("number" != typeof g ? g : ji(g, ci)), v = f === fi ? "reference" : fi, w = e.rects.popper, b2 = e.elements[m ? v : f], k = or(vi(b2) ? b2 : b2.contextElement || Ti(e.elements.popper), c, u, a), x = Pi(e.elements.reference), S2 = ir({ reference: x, element: w, strategy: "absolute", placement: i }), C2 = tr(Object.assign({}, w, S2)), N2 = f === fi ? C2 : x, E2 = { top: k.top - N2.top + y.top, bottom: N2.bottom - k.bottom + y.bottom, left: k.left - N2.left + y.left, right: N2.right - k.right + y.right }, I2 = e.modifiersData.offset;
5882
- if (f === fi && I2) {
5883
- var P2 = I2[i];
5881
+ var n = t, o2 = n.placement, i = void 0 === o2 ? e.placement : o2, r2 = n.strategy, a = void 0 === r2 ? e.strategy : r2, s = n.boundary, c = void 0 === s ? "clippingParents" : s, l = n.rootBoundary, u = void 0 === l ? di : l, d = n.elementContext, f = void 0 === d ? fi : d, p = n.altBoundary, m = void 0 !== p && p, h = n.padding, g = void 0 === h ? 0 : h, y = _i("number" != typeof g ? g : ji(g, ci)), v = f === fi ? "reference" : fi, b = e.rects.popper, w2 = e.elements[m ? v : f], k = or(vi(w2) ? w2 : w2.contextElement || Ti(e.elements.popper), c, u, a), x = Ii(e.elements.reference), C2 = ir({ reference: x, element: b, strategy: "absolute", placement: i }), S2 = tr(Object.assign({}, b, C2)), N2 = f === fi ? S2 : x, E2 = { top: k.top - N2.top + y.top, bottom: N2.bottom - k.bottom + y.bottom, left: k.left - N2.left + y.left, right: N2.right - k.right + y.right }, P2 = e.modifiersData.offset;
5882
+ if (f === fi && P2) {
5883
+ var I2 = P2[i];
5884
5884
  Object.keys(E2).forEach(function(e2) {
5885
5885
  var t2 = [ri, ii].indexOf(e2) >= 0 ? 1 : -1, n2 = [oi, ii].indexOf(e2) >= 0 ? "y" : "x";
5886
- E2[e2] += P2[n2] * t2;
5886
+ E2[e2] += I2[n2] * t2;
5887
5887
  });
5888
5888
  }
5889
5889
  return E2;
@@ -5911,23 +5911,23 @@ var sr = { name: "flip", enabled: true, phase: "main", fn: function(e) {
5911
5911
  return [];
5912
5912
  var t2 = Gi(e2);
5913
5913
  return [Ji(e2), t2, Ji(t2)];
5914
- }(g)), w = [g].concat(v).reduce(function(e2, n2) {
5914
+ }(g)), b = [g].concat(v).reduce(function(e2, n2) {
5915
5915
  return e2.concat(xi(n2) === si ? ar(t, { placement: n2, boundary: u, rootBoundary: d, padding: l, flipVariations: m, allowedAutoPlacements: h }) : n2);
5916
- }, []), b2 = t.rects.reference, k = t.rects.popper, x = /* @__PURE__ */ new Map(), S2 = true, C2 = w[0], N2 = 0; N2 < w.length; N2++) {
5917
- var E2 = w[N2], I2 = xi(E2), P2 = Hi(E2) === li, A = [oi, ii].indexOf(I2) >= 0, O = A ? "width" : "height", L2 = rr(t, { placement: E2, boundary: u, rootBoundary: d, altBoundary: f, padding: l }), D2 = A ? P2 ? ri : ai : P2 ? ii : oi;
5918
- b2[O] > k[O] && (D2 = Gi(D2));
5916
+ }, []), w2 = t.rects.reference, k = t.rects.popper, x = /* @__PURE__ */ new Map(), C2 = true, S2 = b[0], N2 = 0; N2 < b.length; N2++) {
5917
+ var E2 = b[N2], P2 = xi(E2), I2 = Hi(E2) === li, A = [oi, ii].indexOf(P2) >= 0, O = A ? "width" : "height", L2 = rr(t, { placement: E2, boundary: u, rootBoundary: d, altBoundary: f, padding: l }), D2 = A ? I2 ? ri : ai : I2 ? ii : oi;
5918
+ w2[O] > k[O] && (D2 = Gi(D2));
5919
5919
  var T2 = Gi(D2), R2 = [];
5920
- if (r2 && R2.push(L2[I2] <= 0), s && R2.push(L2[D2] <= 0, L2[T2] <= 0), R2.every(function(e2) {
5920
+ if (r2 && R2.push(L2[P2] <= 0), s && R2.push(L2[D2] <= 0, L2[T2] <= 0), R2.every(function(e2) {
5921
5921
  return e2;
5922
5922
  })) {
5923
- C2 = E2, S2 = false;
5923
+ S2 = E2, C2 = false;
5924
5924
  break;
5925
5925
  }
5926
5926
  x.set(E2, R2);
5927
5927
  }
5928
- if (S2)
5928
+ if (C2)
5929
5929
  for (var B2 = function(e2) {
5930
- var t2 = w.find(function(t3) {
5930
+ var t2 = b.find(function(t3) {
5931
5931
  var n2 = x.get(t3);
5932
5932
  if (n2)
5933
5933
  return n2.slice(0, e2).every(function(e3) {
@@ -5935,12 +5935,12 @@ var sr = { name: "flip", enabled: true, phase: "main", fn: function(e) {
5935
5935
  });
5936
5936
  });
5937
5937
  if (t2)
5938
- return C2 = t2, "break";
5938
+ return S2 = t2, "break";
5939
5939
  }, M2 = m ? 3 : 1; M2 > 0; M2--) {
5940
5940
  if ("break" === B2(M2))
5941
5941
  break;
5942
5942
  }
5943
- t.placement !== C2 && (t.modifiersData[o2]._skip = true, t.placement = C2, t.reset = true);
5943
+ t.placement !== S2 && (t.modifiersData[o2]._skip = true, t.placement = S2, t.reset = true);
5944
5944
  }
5945
5945
  }, requiresIfExists: ["offset"], data: { _skip: false } };
5946
5946
  function cr(e, t, n) {
@@ -5961,29 +5961,29 @@ var ur = { name: "offset", enabled: true, phase: "main", requires: ["popperOffse
5961
5961
  null != t.modifiersData.popperOffsets && (t.modifiersData.popperOffsets.x += c, t.modifiersData.popperOffsets.y += l), t.modifiersData[o2] = a;
5962
5962
  } };
5963
5963
  var dr = { name: "preventOverflow", enabled: true, phase: "main", fn: function(e) {
5964
- var t = e.state, n = e.options, o2 = e.name, i = n.mainAxis, r2 = void 0 === i || i, a = n.altAxis, s = void 0 !== a && a, c = n.boundary, l = n.rootBoundary, u = n.altBoundary, d = n.padding, f = n.tether, p = void 0 === f || f, m = n.tetherOffset, h = void 0 === m ? 0 : m, g = rr(t, { boundary: c, rootBoundary: l, padding: d, altBoundary: u }), y = xi(t.placement), v = Hi(t.placement), w = !v, b2 = Fi(y), k = "x" === b2 ? "y" : "x", x = t.modifiersData.popperOffsets, S2 = t.rects.reference, C2 = t.rects.popper, N2 = "function" == typeof h ? h(Object.assign({}, t.rects, { placement: t.placement })) : h, E2 = "number" == typeof N2 ? { mainAxis: N2, altAxis: N2 } : Object.assign({ mainAxis: 0, altAxis: 0 }, N2), I2 = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, P2 = { x: 0, y: 0 };
5964
+ var t = e.state, n = e.options, o2 = e.name, i = n.mainAxis, r2 = void 0 === i || i, a = n.altAxis, s = void 0 !== a && a, c = n.boundary, l = n.rootBoundary, u = n.altBoundary, d = n.padding, f = n.tether, p = void 0 === f || f, m = n.tetherOffset, h = void 0 === m ? 0 : m, g = rr(t, { boundary: c, rootBoundary: l, padding: d, altBoundary: u }), y = xi(t.placement), v = Hi(t.placement), b = !v, w2 = Fi(y), k = "x" === w2 ? "y" : "x", x = t.modifiersData.popperOffsets, C2 = t.rects.reference, S2 = t.rects.popper, N2 = "function" == typeof h ? h(Object.assign({}, t.rects, { placement: t.placement })) : h, E2 = "number" == typeof N2 ? { mainAxis: N2, altAxis: N2 } : Object.assign({ mainAxis: 0, altAxis: 0 }, N2), P2 = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, I2 = { x: 0, y: 0 };
5965
5965
  if (x) {
5966
5966
  if (r2) {
5967
- var A, O = "y" === b2 ? oi : ai, L2 = "y" === b2 ? ii : ri, D2 = "y" === b2 ? "height" : "width", T2 = x[b2], R2 = T2 + g[O], B2 = T2 - g[L2], M2 = p ? -C2[D2] / 2 : 0, F = v === li ? S2[D2] : C2[D2], $2 = v === li ? -C2[D2] : -S2[D2], _2 = t.elements.arrow, j2 = p && _2 ? Ai(_2) : { width: 0, height: 0 }, z2 = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : { top: 0, right: 0, bottom: 0, left: 0 }, H2 = z2[O], W2 = z2[L2], V2 = $i(0, S2[D2], j2[D2]), U2 = w ? S2[D2] / 2 - M2 - V2 - H2 - E2.mainAxis : F - V2 - H2 - E2.mainAxis, K2 = w ? -S2[D2] / 2 + M2 + V2 + W2 + E2.mainAxis : $2 + V2 + W2 + E2.mainAxis, G2 = t.elements.arrow && Mi(t.elements.arrow), q2 = G2 ? "y" === b2 ? G2.clientTop || 0 : G2.clientLeft || 0 : 0, J2 = null != (A = null == I2 ? void 0 : I2[b2]) ? A : 0, Y2 = T2 + K2 - J2, X2 = $i(p ? Ci(R2, T2 + U2 - J2 - q2) : R2, T2, p ? Si(B2, Y2) : B2);
5968
- x[b2] = X2, P2[b2] = X2 - T2;
5967
+ var A, O = "y" === w2 ? oi : ai, L2 = "y" === w2 ? ii : ri, D2 = "y" === w2 ? "height" : "width", T2 = x[w2], R2 = T2 + g[O], B2 = T2 - g[L2], M2 = p ? -S2[D2] / 2 : 0, F = v === li ? C2[D2] : S2[D2], $2 = v === li ? -S2[D2] : -C2[D2], _2 = t.elements.arrow, j2 = p && _2 ? Ai(_2) : { width: 0, height: 0 }, z2 = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : { top: 0, right: 0, bottom: 0, left: 0 }, H2 = z2[O], W2 = z2[L2], V2 = $i(0, C2[D2], j2[D2]), U2 = b ? C2[D2] / 2 - M2 - V2 - H2 - E2.mainAxis : F - V2 - H2 - E2.mainAxis, K2 = b ? -C2[D2] / 2 + M2 + V2 + W2 + E2.mainAxis : $2 + V2 + W2 + E2.mainAxis, G2 = t.elements.arrow && Mi(t.elements.arrow), q2 = G2 ? "y" === w2 ? G2.clientTop || 0 : G2.clientLeft || 0 : 0, J2 = null != (A = null == P2 ? void 0 : P2[w2]) ? A : 0, Y2 = T2 + K2 - J2, X2 = $i(p ? Si(R2, T2 + U2 - J2 - q2) : R2, T2, p ? Ci(B2, Y2) : B2);
5968
+ x[w2] = X2, I2[w2] = X2 - T2;
5969
5969
  }
5970
5970
  if (s) {
5971
- var Q2, Z2 = "x" === b2 ? oi : ai, ee2 = "x" === b2 ? ii : ri, te2 = x[k], ne2 = "y" === k ? "height" : "width", oe2 = te2 + g[Z2], ie2 = te2 - g[ee2], re2 = -1 !== [oi, ai].indexOf(y), ae2 = null != (Q2 = null == I2 ? void 0 : I2[k]) ? Q2 : 0, se2 = re2 ? oe2 : te2 - S2[ne2] - C2[ne2] - ae2 + E2.altAxis, ce2 = re2 ? te2 + S2[ne2] + C2[ne2] - ae2 - E2.altAxis : ie2, le2 = p && re2 ? function(e2, t2, n2) {
5971
+ var Q2, Z2 = "x" === w2 ? oi : ai, ee2 = "x" === w2 ? ii : ri, te2 = x[k], ne2 = "y" === k ? "height" : "width", oe2 = te2 + g[Z2], ie2 = te2 - g[ee2], re2 = -1 !== [oi, ai].indexOf(y), ae2 = null != (Q2 = null == P2 ? void 0 : P2[k]) ? Q2 : 0, se2 = re2 ? oe2 : te2 - C2[ne2] - S2[ne2] - ae2 + E2.altAxis, ce2 = re2 ? te2 + C2[ne2] + S2[ne2] - ae2 - E2.altAxis : ie2, le2 = p && re2 ? function(e2, t2, n2) {
5972
5972
  var o3 = $i(e2, t2, n2);
5973
5973
  return o3 > n2 ? n2 : o3;
5974
5974
  }(se2, te2, ce2) : $i(p ? se2 : oe2, te2, p ? ce2 : ie2);
5975
- x[k] = le2, P2[k] = le2 - te2;
5975
+ x[k] = le2, I2[k] = le2 - te2;
5976
5976
  }
5977
- t.modifiersData[o2] = P2;
5977
+ t.modifiersData[o2] = I2;
5978
5978
  }
5979
5979
  }, requiresIfExists: ["offset"] };
5980
5980
  function fr(e, t, n) {
5981
5981
  void 0 === n && (n = false);
5982
- var o2, i, r2 = wi(t), a = wi(t) && function(e2) {
5982
+ var o2, i, r2 = bi(t), a = bi(t) && function(e2) {
5983
5983
  var t2 = e2.getBoundingClientRect(), n2 = Ni(t2.width) / e2.offsetWidth || 1, o3 = Ni(t2.height) / e2.offsetHeight || 1;
5984
5984
  return 1 !== n2 || 1 !== o3;
5985
- }(t), s = Ti(t), c = Pi(e, a, n), l = { scrollLeft: 0, scrollTop: 0 }, u = { x: 0, y: 0 };
5986
- return (r2 || !r2 && !n) && (("body" !== gi(t) || Qi(s)) && (l = (o2 = t) !== yi(o2) && wi(o2) ? { scrollLeft: (i = o2).scrollLeft, scrollTop: i.scrollTop } : Yi(o2)), wi(t) ? ((u = Pi(t, true)).x += t.clientLeft, u.y += t.clientTop) : s && (u.x = Xi(s))), { x: c.left + l.scrollLeft - u.x, y: c.top + l.scrollTop - u.y, width: c.width, height: c.height };
5985
+ }(t), s = Ti(t), c = Ii(e, a, n), l = { scrollLeft: 0, scrollTop: 0 }, u = { x: 0, y: 0 };
5986
+ return (r2 || !r2 && !n) && (("body" !== gi(t) || Qi(s)) && (l = (o2 = t) !== yi(o2) && bi(o2) ? { scrollLeft: (i = o2).scrollLeft, scrollTop: i.scrollTop } : Yi(o2)), bi(t) ? ((u = Ii(t, true)).x += t.clientLeft, u.y += t.clientTop) : s && (u.x = Xi(s))), { x: c.left + l.scrollLeft - u.x, y: c.top + l.scrollTop - u.y, width: c.width, height: c.height };
5987
5987
  }
5988
5988
  function pr(e) {
5989
5989
  var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), o2 = [];
@@ -6100,7 +6100,7 @@ gr({ defaultModifiers: [{ name: "eventListeners", enabled: true, phase: "write",
6100
6100
  var t = e.state, n = e.name, o2 = t.rects.reference, i = t.rects.popper, r2 = t.modifiersData.preventOverflow, a = rr(t, { elementContext: "reference" }), s = rr(t, { altBoundary: true }), c = cr(a, o2), l = cr(s, i, r2), u = lr(c), d = lr(l);
6101
6101
  t.modifiersData[n] = { referenceClippingOffsets: c, popperEscapeOffsets: l, isReferenceHidden: u, hasPopperEscaped: d }, t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-reference-hidden": u, "data-popper-escaped": d });
6102
6102
  } }] });
6103
- var vr = "undefined" != typeof Element, wr = "function" == typeof Map, br = "function" == typeof Set, kr = "function" == typeof ArrayBuffer && !!ArrayBuffer.isView;
6103
+ var vr = "undefined" != typeof Element, br = "function" == typeof Map, wr = "function" == typeof Set, kr = "function" == typeof ArrayBuffer && !!ArrayBuffer.isView;
6104
6104
  function xr(e, t) {
6105
6105
  if (e === t)
6106
6106
  return true;
@@ -6116,7 +6116,7 @@ function xr(e, t) {
6116
6116
  return false;
6117
6117
  return true;
6118
6118
  }
6119
- if (wr && e instanceof Map && t instanceof Map) {
6119
+ if (br && e instanceof Map && t instanceof Map) {
6120
6120
  if (e.size !== t.size)
6121
6121
  return false;
6122
6122
  for (r2 = e.entries(); !(o2 = r2.next()).done; )
@@ -6127,7 +6127,7 @@ function xr(e, t) {
6127
6127
  return false;
6128
6128
  return true;
6129
6129
  }
6130
- if (br && e instanceof Set && t instanceof Set) {
6130
+ if (wr && e instanceof Set && t instanceof Set) {
6131
6131
  if (e.size !== t.size)
6132
6132
  return false;
6133
6133
  for (r2 = e.entries(); !(o2 = r2.next()).done; )
@@ -6163,7 +6163,7 @@ function xr(e, t) {
6163
6163
  }
6164
6164
  return e != e && t != t;
6165
6165
  }
6166
- var Sr = function(e, t) {
6166
+ var Cr = function(e, t) {
6167
6167
  try {
6168
6168
  return xr(e, t);
6169
6169
  } catch (e2) {
@@ -6172,12 +6172,12 @@ var Sr = function(e, t) {
6172
6172
  throw e2;
6173
6173
  }
6174
6174
  };
6175
- S(Sr);
6175
+ C(Cr);
6176
6176
  function Er({ className: t, variant: n = "default", size: o2 = "16", src: i, alt: r2, ...a }) {
6177
6177
  const s = E("io-image-icon", "grayscale" === n && [`io-image-icon-${n}`], o2 && [`io-image-icon-${o2}`], t);
6178
6178
  return jsx("img", { className: s, style: { width: `${o2}px`, filter: "grayscale" === n ? "grayscale(100%)" : "none" }, src: i, alt: r2, ...a });
6179
6179
  }
6180
- const Ir = forwardRef((n, o2) => {
6180
+ const Pr = forwardRef((n, o2) => {
6181
6181
  const { title: i, actions: r2, className: a, onClose: s, onActionItemClick: c, "data-testid": u = "context-menu", ...p } = n, m = useRef({}), [g, y] = useState(0), v = (e) => {
6182
6182
  var _a2;
6183
6183
  (_a2 = m.current[e]) == null ? void 0 : _a2.focus(), y(e);
@@ -6186,11 +6186,11 @@ const Ir = forwardRef((n, o2) => {
6186
6186
  var _a2;
6187
6187
  (_a2 = m.current[g]) == null ? void 0 : _a2.focus();
6188
6188
  }, []), jsxs(Q, { ref: o2, className: E(a, "context-menu"), onClick: (e) => e.stopPropagation(), onKeyDown: (e) => M({ event: e, currentIndex: g, min: 0, max: r2.length - 1, moveFocus: v, onClose: s }), "data-testid": u, ...p, children: [i && jsx(Q.ItemSection, { children: i }), r2.map((n2, o3) => {
6189
- const i2 = n2.displayName || n2.name, r3 = n2.iconSrc ? jsx(Er, { size: "16", src: n2.iconSrc, alt: `${i2} icon` }) : n2.icon && jsx(I, { size: "16", variant: n2.icon });
6189
+ const i2 = n2.displayName || n2.name, r3 = n2.iconSrc ? jsx(Er, { size: "16", src: n2.iconSrc, alt: `${i2} icon` }) : n2.icon && jsx(P, { size: "16", variant: n2.icon });
6190
6190
  return jsxs(Fragment$1, { children: [jsx(Q.Item, { ref: (e) => m.current[o3] = e, prepend: r3, disabled: n2.disabled, tabIndex: -1, ...B((e) => c(e, n2)), "data-testid": `${u}-item-${n2.name}`, children: i2 }), n2.separatorAfter && jsx("li", { className: "context-menu-separator", "aria-hidden": true, "data-testid": `${u}-separator` })] }, n2.name);
6191
6191
  })] });
6192
6192
  });
6193
- Ir.displayName = "ContextMenuActionsList";
6193
+ Pr.displayName = "ContextMenuActionsList";
6194
6194
  const Or = () => void 0 !== window.glue42gd || void 0 !== window.glue42alert || void 0 !== window.glue42dialog || void 0 !== window.iodesktop, $r = "warning", _r = { success: 5e3, warning: 1e4 }, jr = (e) => "string" == typeof e ? e : (e == null ? void 0 : e.message) ? "string" == typeof e.message ? e.message : JSON.stringify(e.message) : JSON.stringify(e), zr = async (e) => {
6195
6195
  const { io: t, variant: n, text: o2, error: i } = e, r2 = jr(i);
6196
6196
  try {
@@ -6527,7 +6527,7 @@ function Vs({ className: t, children: n, ...o2 }) {
6527
6527
  const i = E("io-panel-header", t);
6528
6528
  return jsx(se, { className: i, ...o2, children: n });
6529
6529
  }
6530
- Vs.Title = D, Vs.ButtonGroup = ae, Vs.Button = $, Vs.ButtonIcon = P, Vs.Dropdown = re;
6530
+ Vs.Title = D, Vs.ButtonGroup = ae, Vs.Button = $, Vs.ButtonIcon = I, Vs.Dropdown = re;
6531
6531
  const Us = forwardRef(({ className: t, children: n, ...o2 }, i) => {
6532
6532
  const r2 = E("io-panel-body", t);
6533
6533
  return jsx("div", { className: r2, ref: i, "data-testid": "panel-body", ...o2, children: n });
@@ -6558,7 +6558,7 @@ function Js({ className: t, variant: n = "active", value: o2 = 0, ...i }) {
6558
6558
  *
6559
6559
  * Released under the MIT license.
6560
6560
  */
6561
- Us.displayName = "PanelBody", Ks.ButtonGroup = ae, Ks.Button = $, Ks.ButtonIcon = P, Ks.Dropdown = re, Gs.Header = Vs, Gs.Body = Us, Gs.Footer = Ks, qs.Icon = I;
6561
+ Us.displayName = "PanelBody", Ks.ButtonGroup = ae, Ks.Button = $, Ks.ButtonIcon = I, Ks.Dropdown = re, Gs.Header = Vs, Gs.Body = Us, Gs.Footer = Ks, qs.Icon = P;
6562
6562
  const Ys = (e, t) => {
6563
6563
  const { o: n, i: o2, u: i } = e;
6564
6564
  let r2, a = n;
@@ -6567,24 +6567,24 @@ const Ys = (e, t) => {
6567
6567
  return (c || i) && (a = s2, r2 = n2), [a, c, r2];
6568
6568
  };
6569
6569
  return [t ? (e2) => s(t(a, r2), e2) : s, (e2) => [a, !!e2, r2]];
6570
- }, Xs = "undefined" != typeof window && "undefined" != typeof HTMLElement && !!window.document ? window : {}, Qs = Math.max, Zs = Math.min, ec = Math.round, tc = Math.abs, nc = Math.sign, oc = Xs.cancelAnimationFrame, ic = Xs.requestAnimationFrame, rc = Xs.setTimeout, ac = Xs.clearTimeout, sc = (e) => void 0 !== Xs[e] ? Xs[e] : void 0, cc = sc("MutationObserver"), lc = sc("IntersectionObserver"), uc = sc("ResizeObserver"), dc = sc("ScrollTimeline"), fc = (e) => void 0 === e, pc = (e) => null === e, mc = (e) => "number" == typeof e, hc = (e) => "string" == typeof e, gc = (e) => "boolean" == typeof e, yc = (e) => "function" == typeof e, vc = (e) => Array.isArray(e), wc = (e) => "object" == typeof e && !vc(e) && !pc(e), bc = (e) => {
6570
+ }, Xs = "undefined" != typeof window && "undefined" != typeof HTMLElement && !!window.document ? window : {}, Qs = Math.max, Zs = Math.min, ec = Math.round, tc = Math.abs, nc = Math.sign, oc = Xs.cancelAnimationFrame, ic = Xs.requestAnimationFrame, rc = Xs.setTimeout, ac = Xs.clearTimeout, sc = (e) => void 0 !== Xs[e] ? Xs[e] : void 0, cc = sc("MutationObserver"), lc = sc("IntersectionObserver"), uc = sc("ResizeObserver"), dc = sc("ScrollTimeline"), fc = (e) => void 0 === e, pc = (e) => null === e, mc = (e) => "number" == typeof e, hc = (e) => "string" == typeof e, gc = (e) => "boolean" == typeof e, yc = (e) => "function" == typeof e, vc = (e) => Array.isArray(e), bc = (e) => "object" == typeof e && !vc(e) && !pc(e), wc = (e) => {
6571
6571
  const t = !!e && e.length, n = mc(t) && t > -1 && t % 1 == 0;
6572
- return !!(vc(e) || !yc(e) && n) && (!(t > 0 && wc(e)) || t - 1 in e);
6573
- }, kc = (e) => !!e && e.constructor === Object, xc = (e) => e instanceof HTMLElement, Sc = (e) => e instanceof Element;
6574
- function Cc(e, t) {
6575
- if (bc(e))
6572
+ return !!(vc(e) || !yc(e) && n) && (!(t > 0 && bc(e)) || t - 1 in e);
6573
+ }, kc = (e) => !!e && e.constructor === Object, xc = (e) => e instanceof HTMLElement, Cc = (e) => e instanceof Element;
6574
+ function Sc(e, t) {
6575
+ if (wc(e))
6576
6576
  for (let n = 0; n < e.length && false !== t(e[n], n, e); n++)
6577
6577
  ;
6578
6578
  else
6579
- e && Cc(Object.keys(e), (n) => t(e[n], n, e));
6579
+ e && Sc(Object.keys(e), (n) => t(e[n], n, e));
6580
6580
  return e;
6581
6581
  }
6582
- const Nc = (e, t) => e.indexOf(t) >= 0, Ec = (e, t) => e.concat(t), Ic = (e, t, n) => (!hc(t) && bc(t) ? Array.prototype.push.apply(e, t) : e.push(t), e), Pc = (e) => Array.from(e || []), Ac = (e) => vc(e) ? e : !hc(e) && bc(e) ? Pc(e) : [e], Oc = (e) => !!e && !e.length, Lc = (e) => Pc(new Set(e)), Dc = (e, t, n) => {
6583
- Cc(e, (e2) => !e2 || e2.apply(void 0, t || [])), n || (e.length = 0);
6582
+ const Nc = (e, t) => e.indexOf(t) >= 0, Ec = (e, t) => e.concat(t), Pc = (e, t, n) => (!hc(t) && wc(t) ? Array.prototype.push.apply(e, t) : e.push(t), e), Ic = (e) => Array.from(e || []), Ac = (e) => vc(e) ? e : !hc(e) && wc(e) ? Ic(e) : [e], Oc = (e) => !!e && !e.length, Lc = (e) => Ic(new Set(e)), Dc = (e, t, n) => {
6583
+ Sc(e, (e2) => !e2 || e2.apply(void 0, t || [])), n || (e.length = 0);
6584
6584
  }, Tc = "paddingTop", Rc = "paddingRight", Bc = "paddingLeft", Mc = "paddingBottom", Fc = "marginLeft", $c = "marginRight", _c = "marginBottom", jc = "overflowX", zc = "overflowY", Hc = "width", Wc = "height", Vc = "visible", Uc = "hidden", Kc = "scroll", Gc = (e, t, n, o2) => {
6585
6585
  if (e && t) {
6586
6586
  let o3 = true;
6587
- return Cc(n, (n2) => {
6587
+ return Sc(n, (n2) => {
6588
6588
  e[n2] !== t[n2] && (o3 = false);
6589
6589
  }), o3;
6590
6590
  }
@@ -6615,7 +6615,7 @@ const Nc = (e, t) => e.indexOf(t) >= 0, Ec = (e, t) => e.concat(t), Ic = (e, t,
6615
6615
  }, d = (e2) => r2 && c ? r2(c, e2) : e2, f = () => {
6616
6616
  s && c && u(d(c) || c);
6617
6617
  }, p = function() {
6618
- const e2 = Pc(arguments), t2 = Zc(n);
6618
+ const e2 = Ic(arguments), t2 = Zc(n);
6619
6619
  if (t2) {
6620
6620
  const n2 = "function" == typeof i ? i() : i, r3 = Zc(o2), p2 = d(e2) || e2, m = u.bind(0, p2);
6621
6621
  s && s(), n2 && !l ? (m(), l = true, s = t2(() => l = void 0)) : (s = t2(m), r3 && !a && (a = r3(f))), c = p2;
@@ -6625,8 +6625,8 @@ const Nc = (e, t) => e.indexOf(t) >= 0, Ec = (e, t) => e.concat(t), Ic = (e, t,
6625
6625
  return p.O = f, p;
6626
6626
  }, tl = (e, t) => Object.prototype.hasOwnProperty.call(e, t), nl = (e) => e ? Object.keys(e) : [], ol = (e, t, n, o2, i, r2, a) => {
6627
6627
  const s = [t, n, o2, i, r2, a];
6628
- return "object" == typeof e && !pc(e) || yc(e) || (e = {}), Cc(s, (t2) => {
6629
- Cc(t2, (n2, o3) => {
6628
+ return "object" == typeof e && !pc(e) || yc(e) || (e = {}), Sc(s, (t2) => {
6629
+ Sc(t2, (n2, o3) => {
6630
6630
  const i2 = t2[o3];
6631
6631
  if (e === i2)
6632
6632
  return true;
@@ -6639,43 +6639,43 @@ const Nc = (e, t) => e.indexOf(t) >= 0, Ec = (e, t) => e.concat(t), Ic = (e, t,
6639
6639
  e[o3] = r3 ? i2.slice() : i2;
6640
6640
  });
6641
6641
  }), e;
6642
- }, il = (e, t) => Cc(ol({}, e), (e2, t2, n) => {
6642
+ }, il = (e, t) => Sc(ol({}, e), (e2, t2, n) => {
6643
6643
  void 0 === e2 ? delete n[t2] : e2 && kc(e2) && (n[t2] = il(e2));
6644
6644
  }), rl = (e) => !nl(e).length, al = () => {
6645
6645
  }, sl = (e, t, n) => Qs(e, Zs(t, n)), cl = (e) => Lc((vc(e) ? e : (e || "").split(" ")).filter((e2) => e2)), ll = (e, t) => e && e.getAttribute(t), ul = (e, t) => e && e.hasAttribute(t), dl = (e, t, n) => {
6646
- Cc(cl(t), (t2) => {
6646
+ Sc(cl(t), (t2) => {
6647
6647
  e && e.setAttribute(t2, String(n || ""));
6648
6648
  });
6649
6649
  }, fl = (e, t) => {
6650
- Cc(cl(t), (t2) => e && e.removeAttribute(t2));
6650
+ Sc(cl(t), (t2) => e && e.removeAttribute(t2));
6651
6651
  }, pl = (e, t) => {
6652
6652
  const n = cl(ll(e, t)), o2 = Xc(dl, e, t), i = (e2, t2) => {
6653
6653
  const o3 = new Set(n);
6654
- return Cc(cl(e2), (e3) => {
6654
+ return Sc(cl(e2), (e3) => {
6655
6655
  o3[t2](e3);
6656
- }), Pc(o3).join(" ");
6656
+ }), Ic(o3).join(" ");
6657
6657
  };
6658
6658
  return { C: (e2) => o2(i(e2, "delete")), $: (e2) => o2(i(e2, "add")), H: (e2) => {
6659
6659
  const t2 = cl(e2);
6660
6660
  return t2.reduce((e3, t3) => e3 && n.includes(t3), t2.length > 0);
6661
6661
  } };
6662
- }, ml = (e, t, n) => (pl(e, t).C(n), Xc(hl, e, t, n)), hl = (e, t, n) => (pl(e, t).$(n), Xc(ml, e, t, n)), gl = (e, t, n, o2) => (o2 ? hl : ml)(e, t, n), yl = (e, t, n) => pl(e, t).H(n), vl = (e) => pl(e, "class"), wl = (e, t) => {
6662
+ }, ml = (e, t, n) => (pl(e, t).C(n), Xc(hl, e, t, n)), hl = (e, t, n) => (pl(e, t).$(n), Xc(ml, e, t, n)), gl = (e, t, n, o2) => (o2 ? hl : ml)(e, t, n), yl = (e, t, n) => pl(e, t).H(n), vl = (e) => pl(e, "class"), bl = (e, t) => {
6663
6663
  vl(e).C(t);
6664
- }, bl = (e, t) => (vl(e).$(t), Xc(wl, e, t)), kl = (e, t) => {
6665
- const n = t ? Sc(t) && t : document;
6666
- return n ? Pc(n.querySelectorAll(e)) : [];
6667
- }, xl = (e, t) => Sc(e) && e.matches(t), Sl = (e) => xl(e, "body"), Cl = (e) => e ? Pc(e.childNodes) : [], Nl = (e) => e && e.parentElement, El = (e, t) => Sc(e) && e.closest(t), Il = (e) => document.activeElement, Pl = (e, t, n) => {
6664
+ }, wl = (e, t) => (vl(e).$(t), Xc(bl, e, t)), kl = (e, t) => {
6665
+ const n = t ? Cc(t) && t : document;
6666
+ return n ? Ic(n.querySelectorAll(e)) : [];
6667
+ }, xl = (e, t) => Cc(e) && e.matches(t), Cl = (e) => xl(e, "body"), Sl = (e) => e ? Ic(e.childNodes) : [], Nl = (e) => e && e.parentElement, El = (e, t) => Cc(e) && e.closest(t), Pl = (e) => document.activeElement, Il = (e, t, n) => {
6668
6668
  const o2 = El(e, t), i = e && ((e2, t2) => {
6669
- const n2 = t2 ? Sc(t2) && t2 : document;
6669
+ const n2 = t2 ? Cc(t2) && t2 : document;
6670
6670
  return n2 && n2.querySelector(e2);
6671
6671
  })(n, o2), r2 = El(i, t) === o2;
6672
6672
  return !(!o2 || !i) && (o2 === e || i === e || r2 && El(El(e, n), t) !== o2);
6673
6673
  }, Al = (e) => {
6674
- Cc(Ac(e), (e2) => {
6674
+ Sc(Ac(e), (e2) => {
6675
6675
  const t = Nl(e2);
6676
6676
  e2 && t && t.removeChild(e2);
6677
6677
  });
6678
- }, Ol = (e, t) => Xc(Al, e && t && Cc(Ac(t), (t2) => {
6678
+ }, Ol = (e, t) => Xc(Al, e && t && Sc(Ac(t), (t2) => {
6679
6679
  t2 && e.appendChild(t2);
6680
6680
  }));
6681
6681
  let Ll;
@@ -6684,13 +6684,13 @@ const Dl = (e) => {
6684
6684
  return dl(t, "class", e), t;
6685
6685
  }, Tl = (e) => {
6686
6686
  const t = Dl(), n = Ll, o2 = e.trim();
6687
- return t.innerHTML = n ? n.createHTML(o2) : o2, Cc(Cl(t), (e2) => Al(e2));
6687
+ return t.innerHTML = n ? n.createHTML(o2) : o2, Sc(Sl(t), (e2) => Al(e2));
6688
6688
  }, Rl = (e, t) => e.getPropertyValue(t) || e[t] || "", Bl = (e) => {
6689
6689
  const t = e || 0;
6690
6690
  return isFinite(t) ? t : 0;
6691
6691
  }, Ml = (e) => Bl(parseFloat(e || "")), Fl = (e) => Math.round(1e4 * e) / 1e4, $l = (e) => `${Fl(Bl(e))}px`;
6692
6692
  function _l(e, t) {
6693
- e && t && Cc(t, (t2, n) => {
6693
+ e && t && Sc(t, (t2, n) => {
6694
6694
  try {
6695
6695
  const o2 = e.style, i = pc(t2) || gc(t2) ? "" : mc(t2) ? $l(t2) : t2;
6696
6696
  0 === n.indexOf("--") ? o2.setProperty(n, i) : o2[n] = i;
@@ -6703,21 +6703,21 @@ function jl(e, t, n) {
6703
6703
  let i = o2 ? "" : {};
6704
6704
  if (e) {
6705
6705
  const r2 = Xs.getComputedStyle(e, n) || e.style;
6706
- i = o2 ? Rl(r2, t) : Pc(t).reduce((e2, t2) => (e2[t2] = Rl(r2, t2), e2), i);
6706
+ i = o2 ? Rl(r2, t) : Ic(t).reduce((e2, t2) => (e2[t2] = Rl(r2, t2), e2), i);
6707
6707
  }
6708
6708
  return i;
6709
6709
  }
6710
6710
  const zl = (e, t, n) => {
6711
6711
  const o2 = t ? `${t}-` : "", i = n ? `-${n}` : "", r2 = `${o2}top${i}`, a = `${o2}right${i}`, s = `${o2}bottom${i}`, c = `${o2}left${i}`, l = jl(e, [r2, a, s, c]);
6712
6712
  return { t: Ml(l[r2]), r: Ml(l[a]), b: Ml(l[s]), l: Ml(l[c]) };
6713
- }, Hl = (e, t) => "translate" + (wc(e) ? `(${e.x},${e.y})` : `${t ? "X" : "Y"}(${e})`), Wl = { w: 0, h: 0 }, Vl = (e, t) => t ? { w: t[`${e}Width`], h: t[`${e}Height`] } : Wl, Ul = (e) => Vl("inner", e || Xs), Kl = Xc(Vl, "offset"), Gl = Xc(Vl, "client"), ql = Xc(Vl, "scroll"), Jl = (e) => {
6713
+ }, Hl = (e, t) => "translate" + (bc(e) ? `(${e.x},${e.y})` : `${t ? "X" : "Y"}(${e})`), Wl = { w: 0, h: 0 }, Vl = (e, t) => t ? { w: t[`${e}Width`], h: t[`${e}Height`] } : Wl, Ul = (e) => Vl("inner", e || Xs), Kl = Xc(Vl, "offset"), Gl = Xc(Vl, "client"), ql = Xc(Vl, "scroll"), Jl = (e) => {
6714
6714
  const t = parseFloat(jl(e, Hc)) || 0, n = parseFloat(jl(e, Wc)) || 0;
6715
6715
  return { w: t - ec(t), h: n - ec(n) };
6716
6716
  }, Yl = (e) => e.getBoundingClientRect(), Xl = (e) => !(!e || !e[Wc] && !e[Hc]), Ql = (e, t) => {
6717
6717
  const n = Xl(e);
6718
6718
  return !Xl(t) && n;
6719
6719
  }, Zl = (e, t, n, o2) => {
6720
- Cc(cl(t), (t2) => {
6720
+ Sc(cl(t), (t2) => {
6721
6721
  e && e.removeEventListener(t2, n, o2);
6722
6722
  });
6723
6723
  }, eu = (e, t, n, o2) => {
@@ -6751,7 +6751,7 @@ const zl = (e, t, n) => {
6751
6751
  }, lu = (e) => {
6752
6752
  e && e.focus && e.focus({ preventScroll: true, focusVisible: false });
6753
6753
  }, uu = (e, t) => {
6754
- Cc(Ac(t), e);
6754
+ Sc(Ac(t), e);
6755
6755
  }, du = (e) => {
6756
6756
  const t = /* @__PURE__ */ new Map(), n = (e2, n2) => {
6757
6757
  if (e2) {
@@ -6772,13 +6772,13 @@ const zl = (e, t, n) => {
6772
6772
  }
6773
6773
  gc(i) && i && n();
6774
6774
  const r2 = nl(e2), a = [];
6775
- return Cc(r2, (t2) => {
6775
+ return Sc(r2, (t2) => {
6776
6776
  const n2 = e2[t2];
6777
- n2 && Ic(a, o2(t2, n2));
6777
+ n2 && Pc(a, o2(t2, n2));
6778
6778
  }), Xc(Dc, a);
6779
6779
  };
6780
6780
  return o2(e || {}), [o2, n, (e2, n2) => {
6781
- Cc(Pc(t.get(e2)), (e3) => {
6781
+ Sc(Ic(t.get(e2)), (e3) => {
6782
6782
  n2 && !Oc(n2) ? e3.apply(0, n2) : e3();
6783
6783
  });
6784
6784
  }];
@@ -6788,7 +6788,7 @@ const zl = (e, t, n) => {
6788
6788
  const e2 = n ? l(a, s, t) : l(t);
6789
6789
  return (c || pu)[o2] = e2;
6790
6790
  }
6791
- }), hu = (e) => pu[e], gu = "data-overlayscrollbars", yu = "os-environment", vu = `${yu}-scrollbar-hidden`, wu = `${gu}-initialize`, bu = "noClipping", ku = `${gu}-body`, xu = gu, Su = `${gu}-viewport`, Cu = jc, Nu = zc, Eu = "measuring", Iu = "scrollbarHidden", Pu = `${gu}-padding`, Au = `${gu}-content`, Ou = "os-size-observer", Lu = `${Ou}-appear`, Du = `${Ou}-listener`, Tu = "os-scrollbar", Ru = `${Tu}-rtl`, Bu = `${Tu}-horizontal`, Mu = `${Tu}-vertical`, Fu = `${Tu}-track`, $u = `${Tu}-handle`, _u = `${Tu}-visible`, ju = `${Tu}-cornerless`, zu = `${Tu}-interaction`, Hu = `${Tu}-unusable`, Wu = `${Tu}-auto-hide`, Vu = `${Wu}-hidden`, Uu = `${Tu}-wheel`, Ku = `${Fu}-interactive`, Gu = `${$u}-interactive`, qu = (e) => 0 === e.indexOf(Vc), Ju = (e, t) => {
6791
+ }), hu = (e) => pu[e], gu = "data-overlayscrollbars", yu = "os-environment", vu = `${yu}-scrollbar-hidden`, bu = `${gu}-initialize`, wu = "noClipping", ku = `${gu}-body`, xu = gu, Cu = `${gu}-viewport`, Su = jc, Nu = zc, Eu = "measuring", Pu = "scrollbarHidden", Iu = `${gu}-padding`, Au = `${gu}-content`, Ou = "os-size-observer", Lu = `${Ou}-appear`, Du = `${Ou}-listener`, Tu = "os-scrollbar", Ru = `${Tu}-rtl`, Bu = `${Tu}-horizontal`, Mu = `${Tu}-vertical`, Fu = `${Tu}-track`, $u = `${Tu}-handle`, _u = `${Tu}-visible`, ju = `${Tu}-cornerless`, zu = `${Tu}-interaction`, Hu = `${Tu}-unusable`, Wu = `${Tu}-auto-hide`, Vu = `${Wu}-hidden`, Uu = `${Tu}-wheel`, Ku = `${Fu}-interactive`, Gu = `${$u}-interactive`, qu = (e) => 0 === e.indexOf(Vc), Ju = (e, t) => {
6792
6792
  if ("auto" === e)
6793
6793
  return t ? Kc : Uc;
6794
6794
  const n = e || Uc;
@@ -6802,9 +6802,9 @@ const zl = (e, t, n) => {
6802
6802
  return t;
6803
6803
  }), Zu = (e, t) => e ? `${t}`.split(".").reduce((e2, t2) => e2 && tl(e2, t2) ? e2[t2] : void 0, e) : void 0, ed = [33, 99], td = [222, 666, true], nd = { paddingAbsolute: false, showNativeOverlaidScrollbars: false, update: { elementEvents: [["img", "load"]], debounce: { mutation: [0, 33], resize: null, event: ed, env: td }, attributes: null, ignoreMutation: null, flowDirectionStyles: null }, overflow: { x: "scroll", y: "scroll" }, scrollbars: { theme: "os-theme-dark", visibility: "auto", autoHide: "never", autoHideDelay: 1300, autoHideSuspend: false, dragScroll: true, clickScroll: false, pointers: ["mouse", "touch", "pen"] } }, od = (e, t) => {
6804
6804
  const n = {};
6805
- return Cc(Ec(nl(t), nl(e)), (o2) => {
6805
+ return Sc(Ec(nl(t), nl(e)), (o2) => {
6806
6806
  const i = e[o2], r2 = t[o2];
6807
- if (wc(i) && wc(r2))
6807
+ if (bc(i) && bc(r2))
6808
6808
  ol(n[o2] = {}, od(i, r2)), rl(n[o2]) && delete n[o2];
6809
6809
  else if (tl(t, o2) && r2 !== i) {
6810
6810
  let e2 = true;
@@ -6828,13 +6828,13 @@ const sd = () => {
6828
6828
  i && (o2.nonce = i);
6829
6829
  const [r2, , a] = du(), [s, c] = Ys({ o: e(t, n), i: Jc }, Xc(e, t, n, true)), [l] = c(), u = ((e2) => {
6830
6830
  let t2 = false;
6831
- const n2 = bl(e2, vu);
6831
+ const n2 = wl(e2, vu);
6832
6832
  try {
6833
6833
  t2 = "none" === jl(e2, "scrollbar-width") || "none" === jl(e2, "display", "::-webkit-scrollbar");
6834
6834
  } catch (e3) {
6835
6835
  }
6836
6836
  return n2(), t2;
6837
- })(t), d = { x: 0 === l.x, y: 0 === l.y }, f = { elements: { host: null, padding: !u, viewport: (e2) => u && Sl(e2) && e2, content: false }, scrollbars: { slot: true }, cancel: { nativeScrollbarsOverlaid: false, body: null } }, p = ol({}, nd), m = Xc(ol, {}, p), h = Xc(ol, {}, f), g = { P: l, k: d, U: u, J: !!dc, G: Xc(r2, "r"), K: h, Z: (e2) => ol(f, e2) && h(), tt: m, nt: (e2) => ol(p, e2) && m(), ot: ol({}, f), st: ol({}, p) };
6837
+ })(t), d = { x: 0 === l.x, y: 0 === l.y }, f = { elements: { host: null, padding: !u, viewport: (e2) => u && Cl(e2) && e2, content: false }, scrollbars: { slot: true }, cancel: { nativeScrollbarsOverlaid: false, body: null } }, p = ol({}, nd), m = Xc(ol, {}, p), h = Xc(ol, {}, f), g = { P: l, k: d, U: u, J: !!dc, G: Xc(r2, "r"), K: h, Z: (e2) => ol(f, e2) && h(), tt: m, nt: (e2) => ol(p, e2) && m(), ot: ol({}, f), st: ol({}, p) };
6838
6838
  if (fl(t, "style"), Al(t), eu(Xs, "resize", () => {
6839
6839
  a("r", []);
6840
6840
  }), yc(Xs.matchMedia) && !u && (!d.x || !d.y)) {
@@ -6860,13 +6860,13 @@ const sd = () => {
6860
6860
  const [n3, o4] = t3 || [];
6861
6861
  return [o4 && n3 ? (r4 || kl)(n3, e2) : [], o4];
6862
6862
  });
6863
- Cc(a2, (n3) => Cc(n3[0], (r5) => {
6863
+ Sc(a2, (n3) => Sc(n3[0], (r5) => {
6864
6864
  const a3 = n3[1], s2 = i2.get(r5) || [];
6865
6865
  if (e2.contains(r5) && a3) {
6866
6866
  const e3 = eu(r5, a3, (n4) => {
6867
6867
  o3 ? (e3(), i2.delete(r5)) : t2(n4);
6868
6868
  });
6869
- i2.set(r5, Ic(s2, e3));
6869
+ i2.set(r5, Pc(s2, e3));
6870
6870
  } else
6871
6871
  Dc(s2), i2.delete(r5);
6872
6872
  }));
@@ -6879,14 +6879,14 @@ const sd = () => {
6879
6879
  if (!Oc(r3)) {
6880
6880
  const a2 = l || al, s2 = u || al, d2 = [], m2 = [];
6881
6881
  let h2 = false, g2 = false;
6882
- if (Cc(r3, (n2) => {
6883
- const { attributeName: i3, target: r4, type: l2, oldValue: u2, addedNodes: f2, removedNodes: y } = n2, v = "attributes" === l2, w = "childList" === l2, b2 = e === r4, k = v && i3, x = k && ll(r4, i3 || ""), S2 = hc(x) ? x : null, C2 = k && u2 !== S2, N2 = Nc(p, i3) && C2;
6884
- if (t && (w || !b2)) {
6885
- const t2 = v && C2, l3 = t2 && c && xl(r4, c), p2 = (l3 ? !a2(r4, i3, u2, S2) : !v || t2) && !s2(n2, !!l3, e, o2);
6886
- Cc(f2, (e2) => Ic(d2, e2)), Cc(y, (e2) => Ic(d2, e2)), g2 = g2 || p2;
6882
+ if (Sc(r3, (n2) => {
6883
+ const { attributeName: i3, target: r4, type: l2, oldValue: u2, addedNodes: f2, removedNodes: y } = n2, v = "attributes" === l2, b = "childList" === l2, w2 = e === r4, k = v && i3, x = k && ll(r4, i3 || ""), C2 = hc(x) ? x : null, S2 = k && u2 !== C2, N2 = Nc(p, i3) && S2;
6884
+ if (t && (b || !w2)) {
6885
+ const t2 = v && S2, l3 = t2 && c && xl(r4, c), p2 = (l3 ? !a2(r4, i3, u2, C2) : !v || t2) && !s2(n2, !!l3, e, o2);
6886
+ Sc(f2, (e2) => Pc(d2, e2)), Sc(y, (e2) => Pc(d2, e2)), g2 = g2 || p2;
6887
6887
  }
6888
- !t && b2 && C2 && !a2(r4, i3, u2, S2) && (Ic(m2, i3), h2 = h2 || N2);
6889
- }), f((e2) => Lc(d2).reduce((t2, n2) => (Ic(t2, kl(e2, n2)), xl(n2, e2) ? Ic(t2, n2) : t2), [])), t)
6888
+ !t && w2 && S2 && !a2(r4, i3, u2, C2) && (Pc(m2, i3), h2 = h2 || N2);
6889
+ }), f((e2) => Lc(d2).reduce((t2, n2) => (Pc(t2, kl(e2, n2)), xl(n2, e2) ? Pc(t2, n2) : t2), [])), t)
6890
6890
  return !i2 && g2 && n(false), [false];
6891
6891
  if (!Oc(m2) || h2) {
6892
6892
  const e2 = [Lc(m2), h2];
@@ -6922,18 +6922,18 @@ const dd = (e, t, n) => {
6922
6922
  } }), ud = ud || false, t3.disconnect();
6923
6923
  }
6924
6924
  const t2 = el(c, { p: 0, v: 0 }), o3 = (e2) => t2(e2), i2 = new uc(o3);
6925
- if (i2.observe(ud ? e : s), Ic(n2, [() => {
6925
+ if (i2.observe(ud ? e : s), Pc(n2, [() => {
6926
6926
  i2.disconnect();
6927
6927
  }, !ud && Ol(e, a)]), ud) {
6928
6928
  const t3 = new uc(o3);
6929
- t3.observe(e, { box: "border-box" }), Ic(n2, () => t3.disconnect());
6929
+ t3.observe(e, { box: "border-box" }), Pc(n2, () => t3.disconnect());
6930
6930
  }
6931
6931
  } else {
6932
6932
  if (!i)
6933
6933
  return al;
6934
6934
  {
6935
6935
  const [t2, r3] = i(s, c, o2);
6936
- Ic(n2, Ec([bl(a, Lu), eu(a, "animationstart", t2), Ol(e, a)], r3));
6936
+ Pc(n2, Ec([wl(a, Lu), eu(a, "animationstart", t2), Ol(e, a)], r3));
6937
6937
  }
6938
6938
  }
6939
6939
  return Xc(Dc, n2);
@@ -6949,7 +6949,7 @@ const dd = (e, t, n) => {
6949
6949
  return [() => {
6950
6950
  const t2 = [];
6951
6951
  if (lc)
6952
- n = new lc(Xc(a, false), { root: e }), n.observe(o2), Ic(t2, () => {
6952
+ n = new lc(Xc(a, false), { root: e }), n.observe(o2), Pc(t2, () => {
6953
6953
  n.disconnect();
6954
6954
  });
6955
6955
  else {
@@ -6957,14 +6957,14 @@ const dd = (e, t, n) => {
6957
6957
  const e3 = Kl(o2);
6958
6958
  r2(e3);
6959
6959
  };
6960
- Ic(t2, dd(o2, e2)()), e2();
6960
+ Pc(t2, dd(o2, e2)()), e2();
6961
6961
  }
6962
- return Xc(Dc, Ic(t2, Ol(e, o2)));
6962
+ return Xc(Dc, Pc(t2, Ol(e, o2)));
6963
6963
  }, () => n && a(true, n.takeRecords())];
6964
6964
  }, pd = (e, t, n, o2) => {
6965
6965
  let i, r2, a, s, c, l, u, d;
6966
- const f = `[${xu}]`, p = `[${Su}]`, m = ["id", "class", "style", "open", "wrap", "cols", "rows"], { dt: h, vt: g, L: y, gt: v, ht: w, V: b2, bt: k, wt: x, yt: S2, St: C2 } = e, N2 = (e2) => "rtl" === jl(e2, "direction"), E2 = { Ot: false, B: N2(h) }, I2 = cd(), P2 = hu(Xu), [A] = Ys({ i: qc, o: { w: 0, h: 0 } }, () => {
6967
- const o3 = P2 && P2.R(e, t, E2, I2, n).Y, i2 = !(k && b2) && yl(g, xu, bu), r3 = !b2 && x("arrange"), a2 = r3 && ru(v), s2 = a2 && C2(), c2 = S2(Eu, i2), l2 = r3 && o3 && o3(), u2 = ql(y), d2 = Jl(y);
6966
+ const f = `[${xu}]`, p = `[${Cu}]`, m = ["id", "class", "style", "open", "wrap", "cols", "rows"], { dt: h, vt: g, L: y, gt: v, ht: b, V: w2, bt: k, wt: x, yt: C2, St: S2 } = e, N2 = (e2) => "rtl" === jl(e2, "direction"), E2 = { Ot: false, B: N2(h) }, P2 = cd(), I2 = hu(Xu), [A] = Ys({ i: qc, o: { w: 0, h: 0 } }, () => {
6967
+ const o3 = I2 && I2.R(e, t, E2, P2, n).Y, i2 = !(k && w2) && yl(g, xu, wu), r3 = !w2 && x("arrange"), a2 = r3 && ru(v), s2 = a2 && S2(), c2 = C2(Eu, i2), l2 = r3 && o3 && o3(), u2 = ql(y), d2 = Jl(y);
6968
6968
  return l2 && l2(), iu(v, a2), s2 && s2(), i2 && c2(), { w: u2.w + d2.w, h: u2.h + d2.h };
6969
6969
  }), O = (() => {
6970
6970
  let e2, t2, n2;
@@ -6995,13 +6995,13 @@ const dd = (e, t, n) => {
6995
6995
  }, B2 = (e2, t2, n2) => {
6996
6996
  const o3 = { Ht: t2 };
6997
6997
  return L2(o3), t2 && !n2 && O(o3, i), o3;
6998
- }, [M2, F] = w ? fd(g, D2) : [], $2 = !b2 && dd(g, T2, { ft: true }), [_2, j2] = ld(g, false, B2, { ct: m, et: m }), z2 = b2 && uc && new uc((e2) => {
6998
+ }, [M2, F] = b ? fd(g, D2) : [], $2 = !w2 && dd(g, T2, { ft: true }), [_2, j2] = ld(g, false, B2, { ct: m, et: m }), z2 = w2 && uc && new uc((e2) => {
6999
6999
  const t2 = e2[e2.length - 1].contentRect;
7000
7000
  T2({ _t: true, ft: Ql(t2, u) }), u = t2;
7001
7001
  });
7002
7002
  return [() => {
7003
7003
  z2 && z2.observe(g);
7004
- const e2 = $2 && $2(), t2 = M2 && M2(), n2 = _2(), o3 = I2.G((e3) => {
7004
+ const e2 = $2 && $2(), t2 = M2 && M2(), n2 = _2(), o3 = P2.G((e3) => {
7005
7005
  const [, t3] = A();
7006
7006
  O({ Et: e3, xt: t3, _t: k }, s);
7007
7007
  });
@@ -7009,18 +7009,18 @@ const dd = (e, t, n) => {
7009
7009
  z2 && z2.disconnect(), e2 && e2(), t2 && t2(), l && l(), n2(), o3();
7010
7010
  };
7011
7011
  }, ({ zt: e2, It: t2, At: n2 }) => {
7012
- const o3 = {}, [u2] = e2("update.ignoreMutation"), [d2, h2] = e2("update.attributes"), [g2, v2] = e2("update.elementEvents"), [k2, x2] = e2("update.debounce"), S3 = t2 || n2;
7012
+ const o3 = {}, [u2] = e2("update.ignoreMutation"), [d2, h2] = e2("update.attributes"), [g2, v2] = e2("update.elementEvents"), [k2, x2] = e2("update.debounce"), C3 = t2 || n2;
7013
7013
  if (v2 || h2) {
7014
7014
  c && c(), l && l();
7015
- const [e3, t3] = ld(w || y, true, R2, { et: Ec(m, d2 || []), rt: g2, it: f, ut: (e4, t4) => {
7015
+ const [e3, t3] = ld(b || y, true, R2, { et: Ec(m, d2 || []), rt: g2, it: f, ut: (e4, t4) => {
7016
7016
  const { target: n3, attributeName: o4 } = e4;
7017
- return !(t4 || !o4 || b2) && Pl(n3, f, p) || !!El(n3, `.${Tu}`) || !!((e5) => yc(u2) && u2(e5))(e4);
7017
+ return !(t4 || !o4 || w2) && Il(n3, f, p) || !!El(n3, `.${Tu}`) || !!((e5) => yc(u2) && u2(e5))(e4);
7018
7018
  } });
7019
7019
  l = e3(), c = t3;
7020
7020
  }
7021
- if (x2 && (O.O(), vc(k2) || mc(k2) ? (i = k2, r2 = false, a = ed, s = td) : kc(k2) ? (i = k2.mutation, r2 = k2.resize, a = k2.event, s = k2.env) : (i = false, r2 = false, a = false, s = false)), S3) {
7021
+ if (x2 && (O.O(), vc(k2) || mc(k2) ? (i = k2, r2 = false, a = ed, s = td) : kc(k2) ? (i = k2.mutation, r2 = k2.resize, a = k2.event, s = k2.env) : (i = false, r2 = false, a = false, s = false)), C3) {
7022
7022
  const e3 = j2(), t3 = F && F(), n3 = c && c();
7023
- e3 && ol(o3, B2(e3[0], e3[1], S3)), t3 && ol(o3, D2(t3[0], S3)), n3 && ol(o3, R2(n3[0], S3));
7023
+ e3 && ol(o3, B2(e3[0], e3[1], C3)), t3 && ol(o3, D2(t3[0], C3)), n3 && ol(o3, R2(n3[0], C3));
7024
7024
  }
7025
7025
  return L2(o3), o3;
7026
7026
  }, E2];
@@ -7031,7 +7031,7 @@ const dd = (e, t, n) => {
7031
7031
  const i = fc(o2) ? n : o2, r2 = md(e, i);
7032
7032
  return !!r2 && (xc(r2) ? r2 : t.apply(0, e));
7033
7033
  }, yd = (e, t, n, o2) => {
7034
- const i = "--os-viewport-percent", r2 = "--os-scroll-percent", a = "--os-scroll-direction", { K: s } = cd(), { scrollbars: c } = s(), { slot: l } = c, { dt: u, vt: d, L: f, Tt: p, gt: m, bt: h, V: g } = t, { scrollbars: y } = p ? {} : e, { slot: v } = y || {}, w = [], b2 = [], k = [], x = gd([u, d, f], () => g && h ? u : d, l, v), S2 = (e2) => {
7034
+ const i = "--os-viewport-percent", r2 = "--os-scroll-percent", a = "--os-scroll-direction", { K: s } = cd(), { scrollbars: c } = s(), { slot: l } = c, { dt: u, vt: d, L: f, Tt: p, gt: m, bt: h, V: g } = t, { scrollbars: y } = p ? {} : e, { slot: v } = y || {}, b = [], w2 = [], k = [], x = gd([u, d, f], () => g && h ? u : d, l, v), C2 = (e2) => {
7035
7035
  if (dc) {
7036
7036
  let t2 = null, o3 = [];
7037
7037
  const i2 = new dc({ source: m, axis: e2 }), r3 = () => {
@@ -7042,37 +7042,37 @@ const dd = (e, t, n) => {
7042
7042
  };
7043
7043
  return { kt: a2 };
7044
7044
  }
7045
- }, C2 = { x: S2("x"), y: S2("y") }, N2 = (e2, t2, n2) => {
7046
- const o3 = n2 ? bl : wl;
7047
- Cc(e2, (e3) => {
7045
+ }, S2 = { x: C2("x"), y: C2("y") }, N2 = (e2, t2, n2) => {
7046
+ const o3 = n2 ? wl : bl;
7047
+ Sc(e2, (e3) => {
7048
7048
  o3(e3.Lt, t2);
7049
7049
  });
7050
7050
  }, E2 = (e2, t2) => {
7051
- Cc(e2, (e3) => {
7051
+ Sc(e2, (e3) => {
7052
7052
  const [n2, o3] = t2(e3);
7053
7053
  _l(n2, o3);
7054
7054
  });
7055
- }, I2 = (e2, t2, n2) => {
7055
+ }, P2 = (e2, t2, n2) => {
7056
7056
  const o3 = gc(n2), i2 = !o3 || !n2;
7057
- (!o3 || n2) && N2(b2, e2, t2), i2 && N2(k, e2, t2);
7058
- }, P2 = (e2) => {
7059
- const t2 = e2 ? "x" : "y", n2 = Dl(`${Tu} ${e2 ? Bu : Mu}`), i2 = Dl(Fu), r3 = Dl($u), a2 = { Lt: n2, Ut: i2, Mt: r3 }, s2 = C2[t2];
7060
- return Ic(e2 ? b2 : k, a2), Ic(w, [Ol(n2, i2), Ol(i2, r3), Xc(Al, n2), s2 && s2.kt(a2), o2(a2, I2, e2)]), a2;
7061
- }, A = Xc(P2, true), O = Xc(P2, false);
7057
+ (!o3 || n2) && N2(w2, e2, t2), i2 && N2(k, e2, t2);
7058
+ }, I2 = (e2) => {
7059
+ const t2 = e2 ? "x" : "y", n2 = Dl(`${Tu} ${e2 ? Bu : Mu}`), i2 = Dl(Fu), r3 = Dl($u), a2 = { Lt: n2, Ut: i2, Mt: r3 }, s2 = S2[t2];
7060
+ return Pc(e2 ? w2 : k, a2), Pc(b, [Ol(n2, i2), Ol(i2, r3), Xc(Al, n2), s2 && s2.kt(a2), o2(a2, P2, e2)]), a2;
7061
+ }, A = Xc(I2, true), O = Xc(I2, false);
7062
7062
  return A(), O(), [{ Pt: () => {
7063
7063
  const e2 = (() => {
7064
7064
  const { Rt: e3, Vt: t3 } = n, o3 = (e4, t4) => sl(0, 1, e4 / (e4 + t4) || 0);
7065
7065
  return { x: o3(t3.x, e3.x), y: o3(t3.y, e3.y) };
7066
7066
  })(), t2 = (e3) => (t3) => [t3.Lt, { [i]: Fl(e3) + "" }];
7067
- E2(b2, t2(e2.x)), E2(k, t2(e2.y));
7067
+ E2(w2, t2(e2.x)), E2(k, t2(e2.y));
7068
7068
  }, Nt: () => {
7069
7069
  if (!dc) {
7070
7070
  const { Dt: e2 } = n, t2 = cu(e2, ru(m)), o3 = (e3) => (t3) => [t3.Lt, { [r2]: Fl(e3) + "" }];
7071
- E2(b2, o3(t2.x)), E2(k, o3(t2.y));
7071
+ E2(w2, o3(t2.x)), E2(k, o3(t2.y));
7072
7072
  }
7073
7073
  }, qt: () => {
7074
7074
  const { Dt: e2 } = n, t2 = su(e2), o3 = (e3) => (t3) => [t3.Lt, { [a]: e3 ? "0" : "1" }];
7075
- E2(b2, o3(t2.x)), E2(k, o3(t2.y)), dc && (b2.forEach(C2.x.kt), k.forEach(C2.y.kt));
7075
+ E2(w2, o3(t2.x)), E2(k, o3(t2.y)), dc && (w2.forEach(S2.x.kt), k.forEach(S2.y.kt));
7076
7076
  }, Bt: () => {
7077
7077
  if (g && !h) {
7078
7078
  const { Rt: e2, Dt: t2 } = n, o3 = su(t2), i2 = cu(t2, ru(m)), r3 = (t3) => {
@@ -7082,11 +7082,11 @@ const dd = (e, t, n) => {
7082
7082
  };
7083
7083
  return [r4, r4 && { transform: Hl({ x: a2(i2.x, e2.x, o3.x), y: a2(i2.y, e2.y, o3.y) }) }];
7084
7084
  };
7085
- E2(b2, r3), E2(k, r3);
7085
+ E2(w2, r3), E2(k, r3);
7086
7086
  }
7087
- }, Ft: I2, jt: { Xt: b2, Yt: A, Wt: Xc(E2, b2) }, Jt: { Xt: k, Yt: O, Wt: Xc(E2, k) } }, () => (Ol(x, b2[0].Lt), Ol(x, k[0].Lt), Xc(Dc, w))];
7087
+ }, Ft: P2, jt: { Xt: w2, Yt: A, Wt: Xc(E2, w2) }, Jt: { Xt: k, Yt: O, Wt: Xc(E2, k) } }, () => (Ol(x, w2[0].Lt), Ol(x, k[0].Lt), Xc(Dc, b))];
7088
7088
  }, vd = (e, t, n, o2) => (i, r2, a) => {
7089
- const { vt: s, L: c, V: l, gt: u, Gt: d, St: f } = t, { Lt: p, Ut: m, Mt: h } = i, [g, y] = Qc(333), [v, w] = Qc(444), b2 = (e2) => {
7089
+ const { vt: s, L: c, V: l, gt: u, Gt: d, St: f } = t, { Lt: p, Ut: m, Mt: h } = i, [g, y] = Qc(333), [v, b] = Qc(444), w2 = (e2) => {
7090
7090
  yc(u.scrollBy) && u.scrollBy({ behavior: "smooth", left: e2.x, top: e2.y });
7091
7091
  };
7092
7092
  let k = true;
@@ -7095,11 +7095,11 @@ const dd = (e, t, n) => {
7095
7095
  }), eu(p, "pointerleave pointercancel", () => {
7096
7096
  r2(zu, false);
7097
7097
  }), !l && eu(p, "mousedown", () => {
7098
- const e2 = Il();
7099
- (ul(e2, Su) || ul(e2, xu) || e2 === document.body) && rc(Xc(lu, c), 25);
7098
+ const e2 = Pl();
7099
+ (ul(e2, Cu) || ul(e2, xu) || e2 === document.body) && rc(Xc(lu, c), 25);
7100
7100
  }), eu(p, "wheel", (e2) => {
7101
7101
  const { deltaX: t2, deltaY: n2, deltaMode: o3 } = e2;
7102
- k && 0 === o3 && Nl(p) === s && b2({ x: t2, y: n2 }), k = false, r2(Uu, true), g(() => {
7102
+ k && 0 === o3 && Nl(p) === s && w2({ x: t2, y: n2 }), k = false, r2(Uu, true), g(() => {
7103
7103
  k = true, r2(Uu);
7104
7104
  }), nu(e2);
7105
7105
  }, { I: false, A: true }), eu(p, "pointerdown", () => {
@@ -7114,16 +7114,16 @@ const dd = (e, t, n) => {
7114
7114
  iu(u, { [c2]: e2 + a2 });
7115
7115
  }, p2 = [];
7116
7116
  return eu(m, "pointerdown", (n2) => {
7117
- const a2 = El(n2.target, `.${$u}`) === h, g2 = a2 ? h : m, y2 = e.scrollbars, k2 = y2[a2 ? "dragScroll" : "clickScroll"], { button: x, isPrimary: S2, pointerType: C2 } = n2, { pointers: N2 } = y2;
7118
- if (0 === x && S2 && k2 && (N2 || []).includes(C2)) {
7119
- Dc(p2), w();
7120
- const e2 = !a2 && (n2.shiftKey || "instant" === k2), y3 = Xc(Yl, h), x2 = Xc(Yl, m), S3 = (e3, t3) => (e3 || y3())[r3] - (t3 || x2())[r3], C3 = ec(Yl(u)[i2]) / Kl(u)[s2] || 1, N3 = l2(ru(u)[c2], 1 / C3), E2 = n2[o3], I2 = y3(), P2 = x2(), A = I2[i2], O = S3(I2, P2) + A / 2, L2 = E2 - P2[r3], D2 = a2 ? 0 : L2 - O, T2 = (e3) => {
7117
+ const a2 = El(n2.target, `.${$u}`) === h, g2 = a2 ? h : m, y2 = e.scrollbars, k2 = y2[a2 ? "dragScroll" : "clickScroll"], { button: x, isPrimary: C2, pointerType: S2 } = n2, { pointers: N2 } = y2;
7118
+ if (0 === x && C2 && k2 && (N2 || []).includes(S2)) {
7119
+ Dc(p2), b();
7120
+ const e2 = !a2 && (n2.shiftKey || "instant" === k2), y3 = Xc(Yl, h), x2 = Xc(Yl, m), C3 = (e3, t3) => (e3 || y3())[r3] - (t3 || x2())[r3], S3 = ec(Yl(u)[i2]) / Kl(u)[s2] || 1, N3 = l2(ru(u)[c2], 1 / S3), E2 = n2[o3], P2 = y3(), I2 = x2(), A = P2[i2], O = C3(P2, I2) + A / 2, L2 = E2 - I2[r3], D2 = a2 ? 0 : L2 - O, T2 = (e3) => {
7121
7121
  Dc(M2), g2.releasePointerCapture(e3.pointerId);
7122
7122
  }, R2 = a2 || e2, B2 = f(), M2 = [eu(d, t2, T2), eu(d, "selectstart", (e3) => nu(e3), { I: false }), eu(m, t2, T2), R2 && eu(m, "pointermove", (e3) => N3(D2 + (e3[o3] - E2))), R2 && (() => {
7123
7123
  const e3 = ru(u);
7124
7124
  B2();
7125
7125
  const t3 = ru(u), n3 = { x: t3.x - e3.x, y: t3.y - e3.y };
7126
- (tc(n3.x) > 3 || tc(n3.y) > 3) && (f(), iu(u, e3), b2(n3), v(B2));
7126
+ (tc(n3.x) > 3 || tc(n3.y) > 3) && (f(), iu(u, e3), w2(n3), v(B2));
7127
7127
  })];
7128
7128
  if (g2.setPointerCapture(n2.pointerId), e2)
7129
7129
  N3(D2);
@@ -7131,33 +7131,33 @@ const dd = (e, t, n) => {
7131
7131
  const e3 = hu("__osClickScrollPlugin");
7132
7132
  if (e3) {
7133
7133
  const t3 = e3(N3, D2, A, (e4) => {
7134
- e4 ? B2() : Ic(M2, B2);
7134
+ e4 ? B2() : Pc(M2, B2);
7135
7135
  });
7136
- Ic(M2, t3), Ic(p2, Xc(t3, true));
7136
+ Pc(M2, t3), Pc(p2, Xc(t3, true));
7137
7137
  }
7138
7138
  }
7139
7139
  }
7140
7140
  });
7141
- })(), y, w]);
7142
- }, wd = (e) => {
7143
- const t = cd(), { K: n, U: o2 } = t, { elements: i } = n(), { padding: r2, viewport: a, content: s } = i, c = xc(e), l = c ? {} : e, { elements: u } = l, { padding: d, viewport: f, content: p } = u || {}, m = c ? e : l.target, h = Sl(m), g = m.ownerDocument, y = g.documentElement, v = () => g.defaultView || Xs, w = Xc(hd, [m]), b2 = Xc(gd, [m]), k = Xc(Dl, ""), x = Xc(w, k, a), S2 = Xc(b2, k, s), C2 = x(f), N2 = C2 === m, E2 = N2 && h, I2 = !N2 && S2(p), P2 = !N2 && C2 === I2, A = E2 ? y : C2, O = E2 ? A : m, L2 = !N2 && b2(k, r2, d), D2 = !P2 && I2, T2 = [D2, A, L2, O].map((e2) => xc(e2) && !Nl(e2) && e2), R2 = (e2) => e2 && Nc(T2, e2), B2 = !R2(A) && ((e2) => {
7141
+ })(), y, b]);
7142
+ }, bd = (e) => {
7143
+ const t = cd(), { K: n, U: o2 } = t, { elements: i } = n(), { padding: r2, viewport: a, content: s } = i, c = xc(e), l = c ? {} : e, { elements: u } = l, { padding: d, viewport: f, content: p } = u || {}, m = c ? e : l.target, h = Cl(m), g = m.ownerDocument, y = g.documentElement, v = () => g.defaultView || Xs, b = Xc(hd, [m]), w2 = Xc(gd, [m]), k = Xc(Dl, ""), x = Xc(b, k, a), C2 = Xc(w2, k, s), S2 = x(f), N2 = S2 === m, E2 = N2 && h, P2 = !N2 && C2(p), I2 = !N2 && S2 === P2, A = E2 ? y : S2, O = E2 ? A : m, L2 = !N2 && w2(k, r2, d), D2 = !I2 && P2, T2 = [D2, A, L2, O].map((e2) => xc(e2) && !Nl(e2) && e2), R2 = (e2) => e2 && Nc(T2, e2), B2 = !R2(A) && ((e2) => {
7144
7144
  const t2 = Kl(e2), n2 = ql(e2), o3 = jl(e2, jc), i2 = jl(e2, zc);
7145
7145
  return n2.w - t2.w > 0 && !qu(o3) || n2.h - t2.h > 0 && !qu(i2);
7146
- })(A) ? A : m, M2 = E2 ? y : A, F = { dt: m, vt: O, L: A, rn: L2, ht: D2, gt: M2, Kt: E2 ? g : A, ln: h ? y : B2, Gt: g, bt: h, Tt: c, V: N2, an: v, wt: (e2) => yl(A, Su, e2), yt: (e2, t2) => gl(A, Su, e2, t2), St: () => gl(M2, Su, "scrolling", true) }, { dt: $2, vt: _2, rn: j2, L: z2, ht: H2 } = F, W2 = [() => {
7147
- fl(_2, [xu, wu]), fl($2, wu), h && fl(y, [wu, xu]);
7146
+ })(A) ? A : m, M2 = E2 ? y : A, F = { dt: m, vt: O, L: A, rn: L2, ht: D2, gt: M2, Kt: E2 ? g : A, ln: h ? y : B2, Gt: g, bt: h, Tt: c, V: N2, an: v, wt: (e2) => yl(A, Cu, e2), yt: (e2, t2) => gl(A, Cu, e2, t2), St: () => gl(M2, Cu, "scrolling", true) }, { dt: $2, vt: _2, rn: j2, L: z2, ht: H2 } = F, W2 = [() => {
7147
+ fl(_2, [xu, bu]), fl($2, bu), h && fl(y, [bu, xu]);
7148
7148
  }];
7149
- let V2 = Cl([H2, z2, j2, _2, $2].find((e2) => e2 && !R2(e2)));
7149
+ let V2 = Sl([H2, z2, j2, _2, $2].find((e2) => e2 && !R2(e2)));
7150
7150
  const U2 = E2 ? $2 : H2 || z2, K2 = Xc(Dc, W2);
7151
7151
  return [F, () => {
7152
- const e2 = v(), t2 = Il(), n2 = (e3) => {
7153
- Ol(Nl(e3), Cl(e3)), Al(e3);
7152
+ const e2 = v(), t2 = Pl(), n2 = (e3) => {
7153
+ Ol(Nl(e3), Sl(e3)), Al(e3);
7154
7154
  }, i2 = (e3) => eu(e3, "focusin focusout focus blur", ou, { A: true, I: false }), r3 = "tabindex", a2 = ll(z2, r3), s2 = i2(t2);
7155
- return dl(_2, xu, N2 ? "" : "host"), dl(j2, Pu, ""), dl(z2, Su, ""), dl(H2, Au, ""), N2 || (dl(z2, r3, a2 || "-1"), h && dl(y, ku, "")), Ol(U2, V2), Ol(_2, j2), Ol(j2 || _2, !N2 && z2), Ol(z2, H2), Ic(W2, [s2, () => {
7156
- const e3 = Il(), t3 = R2(z2), o3 = t3 && e3 === z2 ? $2 : e3, s3 = i2(o3);
7157
- fl(j2, Pu), fl(H2, Au), fl(z2, Su), h && fl(y, ku), a2 ? dl(z2, r3, a2) : fl(z2, r3), R2(H2) && n2(H2), t3 && n2(z2), R2(j2) && n2(j2), lu(o3), s3();
7158
- }]), o2 && !N2 && (hl(z2, Su, Iu), Ic(W2, Xc(fl, z2, Su))), lu(!N2 && h && t2 === $2 && e2.top === e2 ? z2 : t2), s2(), V2 = 0, K2;
7155
+ return dl(_2, xu, N2 ? "" : "host"), dl(j2, Iu, ""), dl(z2, Cu, ""), dl(H2, Au, ""), N2 || (dl(z2, r3, a2 || "-1"), h && dl(y, ku, "")), Ol(U2, V2), Ol(_2, j2), Ol(j2 || _2, !N2 && z2), Ol(z2, H2), Pc(W2, [s2, () => {
7156
+ const e3 = Pl(), t3 = R2(z2), o3 = t3 && e3 === z2 ? $2 : e3, s3 = i2(o3);
7157
+ fl(j2, Iu), fl(H2, Au), fl(z2, Cu), h && fl(y, ku), a2 ? dl(z2, r3, a2) : fl(z2, r3), R2(H2) && n2(H2), t3 && n2(z2), R2(j2) && n2(j2), lu(o3), s3();
7158
+ }]), o2 && !N2 && (hl(z2, Cu, Pu), Pc(W2, Xc(fl, z2, Cu))), lu(!N2 && h && t2 === $2 && e2.top === e2 ? z2 : t2), s2(), V2 = 0, K2;
7159
7159
  }, K2];
7160
- }, bd = ({ ht: e }) => ({ Qt: t, un: n, At: o2 }) => {
7160
+ }, wd = ({ ht: e }) => ({ Qt: t, un: n, At: o2 }) => {
7161
7161
  const { $t: i } = t || {}, { Ot: r2 } = n;
7162
7162
  e && (i || o2) && _l(e, { [Wc]: r2 && "100%" });
7163
7163
  }, kd = ({ vt: e, rn: t, L: n, V: o2 }, i) => {
@@ -7166,24 +7166,24 @@ const dd = (e, t, n) => {
7166
7166
  let [u, d] = a(l);
7167
7167
  const { U: f } = cd(), { _t: p, xt: m, Ct: h } = s || {}, { B: g } = c, [y, v] = e2("paddingAbsolute");
7168
7168
  (p || d || (l || m)) && ([u, d] = r2(l));
7169
- const w = !o2 && (v || h || d);
7170
- if (w) {
7169
+ const b = !o2 && (v || h || d);
7170
+ if (b) {
7171
7171
  const e3 = !y || !t && !f, o3 = u.r + u.l, r3 = u.t + u.b, a2 = { [$c]: e3 && !g ? -o3 : 0, [_c]: e3 ? -r3 : 0, [Fc]: e3 && g ? -o3 : 0, top: e3 ? -u.t : 0, right: e3 ? g ? -u.r : "auto" : 0, left: e3 ? g ? "auto" : -u.l : 0, [Hc]: e3 && `calc(100% + ${o3}px)` }, s2 = { [Tc]: e3 ? u.t : 0, [Rc]: e3 ? u.r : 0, [Mc]: e3 ? u.b : 0, [Bc]: e3 ? u.l : 0 };
7172
7172
  _l(t || n, a2), _l(n, s2), ol(i, { rn: u, fn: !e3, F: t ? s2 : ol({}, a2, s2) });
7173
7173
  }
7174
- return { _n: w };
7174
+ return { _n: b };
7175
7175
  };
7176
7176
  }, xd = (e, t) => {
7177
- const n = cd(), { vt: o2, rn: i, L: r2, V: a, Kt: s, gt: c, bt: l, yt: u, an: d } = e, { U: f } = n, p = l && a, m = Xc(Qs, 0), h = { display: () => false, direction: (e2) => "ltr" !== e2, flexDirection: (e2) => e2.endsWith("-reverse"), writingMode: (e2) => "horizontal-tb" !== e2 }, g = nl(h), y = { i: qc, o: { w: 0, h: 0 } }, v = { i: Jc, o: {} }, w = (e2) => {
7177
+ const n = cd(), { vt: o2, rn: i, L: r2, V: a, Kt: s, gt: c, bt: l, yt: u, an: d } = e, { U: f } = n, p = l && a, m = Xc(Qs, 0), h = { display: () => false, direction: (e2) => "ltr" !== e2, flexDirection: (e2) => e2.endsWith("-reverse"), writingMode: (e2) => "horizontal-tb" !== e2 }, g = nl(h), y = { i: qc, o: { w: 0, h: 0 } }, v = { i: Jc, o: {} }, b = (e2) => {
7178
7178
  u(Eu, !p && e2);
7179
- }, b2 = () => jl(r2, g), k = (e2, t2) => {
7179
+ }, w2 = () => jl(r2, g), k = (e2, t2) => {
7180
7180
  const n2 = !nl(e2).length, o3 = !t2 && g.some((t3) => {
7181
7181
  const n3 = e2[t3];
7182
7182
  return hc(n3) && h[t3](n3);
7183
7183
  });
7184
7184
  if (n2 && !o3 || !((e3) => !!e3 && ((e4) => !!(e4.offsetWidth || e4.offsetHeight || e4.getClientRects().length))(e3))(r2))
7185
7185
  return { D: { x: 0, y: 0 }, M: { x: 1, y: 1 } };
7186
- w(true);
7186
+ b(true);
7187
7187
  const i2 = ru(c), a2 = eu(s, Kc, (e3) => {
7188
7188
  const t3 = ru(c);
7189
7189
  e3.isTrusted && t3.x === i2.x && t3.y === i2.y && tu(e3);
@@ -7193,12 +7193,12 @@ const dd = (e, t, n) => {
7193
7193
  iu(c, { x: f2.w, y: f2.h });
7194
7194
  const p2 = ru(c), m2 = { x: p2.x - d2.x, y: p2.y - d2.y };
7195
7195
  iu(c, { x: -f2.w, y: -f2.h });
7196
- const y2 = ru(c), v2 = { x: y2.x - d2.x, y: y2.y - d2.y }, b3 = { x: tc(m2.x) >= tc(v2.x) ? p2.x : y2.x, y: tc(m2.y) >= tc(v2.y) ? p2.y : y2.y };
7197
- return iu(c, i2), ic(() => a2()), { D: d2, M: b3 };
7196
+ const y2 = ru(c), v2 = { x: y2.x - d2.x, y: y2.y - d2.y }, w3 = { x: tc(m2.x) >= tc(v2.x) ? p2.x : y2.x, y: tc(m2.y) >= tc(v2.y) ? p2.y : y2.y };
7197
+ return iu(c, i2), ic(() => a2()), { D: d2, M: w3 };
7198
7198
  }, x = (e2, t2) => {
7199
7199
  const n2 = Xs.devicePixelRatio % 1 != 0 ? 1 : 0, o3 = { w: m(e2.w - t2.w), h: m(e2.h - t2.h) };
7200
7200
  return { w: o3.w > n2 ? o3.w : 0, h: o3.h > n2 ? o3.h : 0 };
7201
- }, S2 = (e2, t2) => {
7201
+ }, C2 = (e2, t2) => {
7202
7202
  const n2 = (e3, t3, n3, o3) => {
7203
7203
  const i2 = e3 === Vc ? Uc : ((e4) => e4.replace(`${Vc}-`, ""))(e3), r3 = qu(e3), a2 = qu(n3);
7204
7204
  if (!t3 && !o3)
@@ -7211,10 +7211,10 @@ const dd = (e, t, n) => {
7211
7211
  return t3 ? i2 : a2 && o3 ? Vc : Uc;
7212
7212
  };
7213
7213
  return { x: n2(t2.x, e2.x, t2.y, e2.y), y: n2(t2.y, e2.y, t2.x, e2.x) };
7214
- }, C2 = (e2) => {
7214
+ }, S2 = (e2) => {
7215
7215
  const t2 = (e3) => [Vc, Uc, Kc].map((t3) => _2(Ju(t3), e3)), n2 = t2(true).concat(t2()).join(" ");
7216
7216
  u(n2), u(nl(e2).map((t3) => _2(e2[t3], "x" === t3)).join(" "), true);
7217
- }, [N2, E2] = Ys(y, Xc(Jl, r2)), [I2, P2] = Ys(y, Xc(ql, r2)), [A, O] = Ys(y), [L2] = Ys(v), [D2, T2] = Ys(y), [R2] = Ys(v), [B2] = Ys({ i: (e2, t2) => Gc(e2, t2, Lc(Ec(nl(e2), nl(t2)))), o: {} }), [M2, F] = Ys({ i: (e2, t2) => Jc(e2.D, t2.D) && Jc(e2.M, t2.M), o: { D: { x: 0, y: 0 }, M: { x: 0, y: 0 } } }), $2 = hu(Xu), _2 = (e2, t2) => `${t2 ? Cu : Nu}${((e3) => {
7217
+ }, [N2, E2] = Ys(y, Xc(Jl, r2)), [P2, I2] = Ys(y, Xc(ql, r2)), [A, O] = Ys(y), [L2] = Ys(v), [D2, T2] = Ys(y), [R2] = Ys(v), [B2] = Ys({ i: (e2, t2) => Gc(e2, t2, Lc(Ec(nl(e2), nl(t2)))), o: {} }), [M2, F] = Ys({ i: (e2, t2) => Jc(e2.D, t2.D) && Jc(e2.M, t2.M), o: { D: { x: 0, y: 0 }, M: { x: 0, y: 0 } } }), $2 = hu(Xu), _2 = (e2, t2) => `${t2 ? Su : Nu}${((e3) => {
7218
7218
  const t3 = String(e3 || "");
7219
7219
  return t3 ? t3[0].toUpperCase() + t3.slice(1) : "";
7220
7220
  })(e2)}`;
@@ -7223,37 +7223,37 @@ const dd = (e, t, n) => {
7223
7223
  const { k: n2 } = t2, [o3, i2] = e2("showNativeOverlaidScrollbars");
7224
7224
  return [o3 && n2.x && n2.y, i2];
7225
7225
  })(a2, n), [q2, J2] = a2("overflow"), Y2 = qu(q2.x), X2 = qu(q2.y), Q2 = g2 || h2 || v2 || _3 || z2 || G2;
7226
- let Z2 = E2(l2), ee2 = P2(l2), te2 = O(l2), ne2 = T2(l2);
7227
- if (G2 && f && u(Iu, !K2), Q2) {
7228
- yl(o2, xu, bu) && w(true);
7229
- const e2 = V2 && V2(), [t2] = Z2 = N2(l2), [n2] = ee2 = I2(l2), i2 = Gl(r2), a3 = p && Ul(d()), s3 = { w: m(n2.w + t2.w), h: m(n2.h + t2.h) }, c3 = { w: m((a3 ? a3.w : i2.w + m(i2.w - n2.w)) + t2.w), h: m((a3 ? a3.h : i2.h + m(i2.h - n2.h)) + t2.h) };
7226
+ let Z2 = E2(l2), ee2 = I2(l2), te2 = O(l2), ne2 = T2(l2);
7227
+ if (G2 && f && u(Pu, !K2), Q2) {
7228
+ yl(o2, xu, wu) && b(true);
7229
+ const e2 = V2 && V2(), [t2] = Z2 = N2(l2), [n2] = ee2 = P2(l2), i2 = Gl(r2), a3 = p && Ul(d()), s3 = { w: m(n2.w + t2.w), h: m(n2.h + t2.h) }, c3 = { w: m((a3 ? a3.w : i2.w + m(i2.w - n2.w)) + t2.w), h: m((a3 ? a3.h : i2.h + m(i2.h - n2.h)) + t2.h) };
7230
7230
  e2 && e2(), ne2 = D2(c3), te2 = A(x(s3, c3), l2);
7231
7231
  }
7232
- const [oe2, ie2] = ne2, [re2, ae2] = te2, [se2, ce2] = ee2, [le2, ue2] = Z2, [de2, fe2] = L2({ x: re2.w > 0, y: re2.h > 0 }), pe2 = Y2 && X2 && (de2.x || de2.y) || Y2 && de2.x && !de2.y || X2 && de2.y && !de2.x, me2 = h2 || _3 || z2 || ue2 || ce2 || ie2 || ae2 || J2 || G2 || Q2 || y2 && p, [he2] = a2("update.flowDirectionStyles"), [ge2, ye2] = B2(he2 ? he2(r2) : b2(), l2), ve2 = _3 || j2 || ye2 || fe2 || l2, [we2, be2] = ve2 ? M2(k(ge2, !!he2), l2) : F();
7233
- let ke2 = S2(de2, q2);
7234
- w(false), me2 && (C2(ke2), ke2 = Yu(r2, de2), U2 && W2 && (W2(ke2, se2, le2), _l(r2, U2(ke2))));
7235
- const [xe2, Se2] = R2(ke2);
7236
- return gl(o2, xu, bu, pe2), gl(i, Pu, bu, pe2), ol(t, { cn: xe2, Vt: { x: oe2.w, y: oe2.h }, Rt: { x: re2.w, y: re2.h }, j: de2, Dt: au(we2, re2) }), { sn: Se2, tn: ie2, nn: ae2, en: be2 || ae2 };
7232
+ const [oe2, ie2] = ne2, [re2, ae2] = te2, [se2, ce2] = ee2, [le2, ue2] = Z2, [de2, fe2] = L2({ x: re2.w > 0, y: re2.h > 0 }), pe2 = Y2 && X2 && (de2.x || de2.y) || Y2 && de2.x && !de2.y || X2 && de2.y && !de2.x, me2 = h2 || _3 || z2 || ue2 || ce2 || ie2 || ae2 || J2 || G2 || Q2 || y2 && p, [he2] = a2("update.flowDirectionStyles"), [ge2, ye2] = B2(he2 ? he2(r2) : w2(), l2), ve2 = _3 || j2 || ye2 || fe2 || l2, [be2, we2] = ve2 ? M2(k(ge2, !!he2), l2) : F();
7233
+ let ke2 = C2(de2, q2);
7234
+ b(false), me2 && (S2(ke2), ke2 = Yu(r2, de2), U2 && W2 && (W2(ke2, se2, le2), _l(r2, U2(ke2))));
7235
+ const [xe2, Ce2] = R2(ke2);
7236
+ return gl(o2, xu, wu, pe2), gl(i, Iu, wu, pe2), ol(t, { cn: xe2, Vt: { x: oe2.w, y: oe2.h }, Rt: { x: re2.w, y: re2.h }, j: de2, Dt: au(be2, re2) }), { sn: Ce2, tn: ie2, nn: ae2, en: we2 || ae2 };
7237
7237
  };
7238
- }, Sd = (e) => {
7239
- const [t, n, o2] = wd(e), i = { rn: { t: 0, r: 0, b: 0, l: 0 }, fn: false, F: { [$c]: 0, [_c]: 0, [Fc]: 0, [Tc]: 0, [Rc]: 0, [Mc]: 0, [Bc]: 0 }, Vt: { x: 0, y: 0 }, Rt: { x: 0, y: 0 }, cn: { x: Uc, y: Uc }, j: { x: false, y: false }, Dt: { D: { x: 0, y: 0 }, M: { x: 0, y: 0 } } }, { dt: r2, gt: a, V: s, St: c } = t, { U: l, k: u } = cd(), d = !l && (u.x || u.y), f = [bd(t), kd(t, i), xd(t, i)];
7238
+ }, Cd = (e) => {
7239
+ const [t, n, o2] = bd(e), i = { rn: { t: 0, r: 0, b: 0, l: 0 }, fn: false, F: { [$c]: 0, [_c]: 0, [Fc]: 0, [Tc]: 0, [Rc]: 0, [Mc]: 0, [Bc]: 0 }, Vt: { x: 0, y: 0 }, Rt: { x: 0, y: 0 }, cn: { x: Uc, y: Uc }, j: { x: false, y: false }, Dt: { D: { x: 0, y: 0 }, M: { x: 0, y: 0 } } }, { dt: r2, gt: a, V: s, St: c } = t, { U: l, k: u } = cd(), d = !l && (u.x || u.y), f = [wd(t), kd(t, i), xd(t, i)];
7240
7240
  return [n, (e2) => {
7241
7241
  const t2 = {}, n2 = d && ru(a), o3 = n2 && c();
7242
- return Cc(f, (n3) => {
7242
+ return Sc(f, (n3) => {
7243
7243
  ol(t2, n3(e2, t2) || {});
7244
7244
  }), iu(a, n2), o3 && o3(), s || iu(r2, 0), t2;
7245
7245
  }, i, t, o2];
7246
- }, Cd = (e, t, n, o2, i) => {
7246
+ }, Sd = (e, t, n, o2, i) => {
7247
7247
  let r2 = false;
7248
- const a = id(t, {}), [s, c, l, u, d] = Sd(e), [f, p, m] = pd(u, l, a, (e2) => {
7249
- w({}, e2);
7248
+ const a = id(t, {}), [s, c, l, u, d] = Cd(e), [f, p, m] = pd(u, l, a, (e2) => {
7249
+ b({}, e2);
7250
7250
  }), [h, g, , y] = ((e2, t2, n2, o3, i2, r3) => {
7251
7251
  let a2, s2, c2, l2, u2, d2 = al, f2 = 0;
7252
- const p2 = ["mouse", "pen"], m2 = (e3) => p2.includes(e3.pointerType), [h2, g2] = Qc(), [y2, v2] = Qc(100), [w2, b2] = Qc(100), [k, x] = Qc(() => f2), [S2, C2] = yd(e2, i2, o3, vd(t2, i2, o3, (e3) => m2(e3) && R2())), { vt: N2, Kt: E2, bt: I2 } = i2, { Ft: P2, Pt: A, Nt: O, qt: L2, Bt: D2 } = S2, T2 = (e3, t3) => {
7252
+ const p2 = ["mouse", "pen"], m2 = (e3) => p2.includes(e3.pointerType), [h2, g2] = Qc(), [y2, v2] = Qc(100), [b2, w2] = Qc(100), [k, x] = Qc(() => f2), [C2, S2] = yd(e2, i2, o3, vd(t2, i2, o3, (e3) => m2(e3) && R2())), { vt: N2, Kt: E2, bt: P2 } = i2, { Ft: I2, Pt: A, Nt: O, qt: L2, Bt: D2 } = C2, T2 = (e3, t3) => {
7253
7253
  if (x(), e3)
7254
- P2(Vu);
7254
+ I2(Vu);
7255
7255
  else {
7256
- const e4 = Xc(P2, Vu, true);
7256
+ const e4 = Xc(I2, Vu, true);
7257
7257
  f2 > 0 && !t3 ? k(e4) : e4();
7258
7258
  }
7259
7259
  }, R2 = () => {
@@ -7261,10 +7261,10 @@ const dd = (e, t, n) => {
7261
7261
  T2(false);
7262
7262
  }));
7263
7263
  }, B2 = (e3) => {
7264
- P2(Wu, e3, true), P2(Wu, e3, false);
7264
+ I2(Wu, e3, true), I2(Wu, e3, false);
7265
7265
  }, M2 = (e3) => {
7266
7266
  m2(e3) && (a2 = c2, c2 && T2(true));
7267
- }, F = [x, v2, b2, g2, () => d2(), eu(N2, "pointerover", M2, { T: true }), eu(N2, "pointerenter", M2), eu(N2, "pointerleave", (e3) => {
7267
+ }, F = [x, v2, w2, g2, () => d2(), eu(N2, "pointerover", M2, { T: true }), eu(N2, "pointerenter", M2), eu(N2, "pointerleave", (e3) => {
7268
7268
  m2(e3) && (a2 = false, c2 && T2(false));
7269
7269
  }), eu(N2, "pointermove", (e3) => {
7270
7270
  m2(e3) && s2 && R2();
@@ -7273,35 +7273,35 @@ const dd = (e, t, n) => {
7273
7273
  O(), R2();
7274
7274
  }), r3(e3), D2();
7275
7275
  })], $2 = hu(Xu);
7276
- return [() => Xc(Dc, Ic(F, C2())), ({ zt: e3, At: t3, Qt: i3, Zt: r4 }) => {
7277
- const { tn: a3, nn: p3, sn: m3, en: h3 } = r4 || {}, { Ct: g3, ft: y3 } = i3 || {}, { B: v3 } = n2, { k: b3, U: k2 } = cd(), { cn: x2, j: S3 } = o3, [C3, N3] = e3("showNativeOverlaidScrollbars"), [R3, M3] = e3("scrollbars.theme"), [F2, _2] = e3("scrollbars.visibility"), [j2, z2] = e3("scrollbars.autoHide"), [H2, W2] = e3("scrollbars.autoHideSuspend"), [V2] = e3("scrollbars.autoHideDelay"), [U2, K2] = e3("scrollbars.dragScroll"), [G2, q2] = e3("scrollbars.clickScroll"), [J2, Y2] = e3("overflow"), X2 = y3 && !t3, Q2 = S3.x || S3.y, Z2 = a3 || p3 || h3 || g3 || t3, ee2 = m3 || _2 || Y2, te2 = C3 && b3.x && b3.y, ne2 = !k2 && !$2, oe2 = te2 || ne2, ie2 = (e4, t4, n3) => {
7276
+ return [() => Xc(Dc, Pc(F, S2())), ({ zt: e3, At: t3, Qt: i3, Zt: r4 }) => {
7277
+ const { tn: a3, nn: p3, sn: m3, en: h3 } = r4 || {}, { Ct: g3, ft: y3 } = i3 || {}, { B: v3 } = n2, { k: w3, U: k2 } = cd(), { cn: x2, j: C3 } = o3, [S3, N3] = e3("showNativeOverlaidScrollbars"), [R3, M3] = e3("scrollbars.theme"), [F2, _2] = e3("scrollbars.visibility"), [j2, z2] = e3("scrollbars.autoHide"), [H2, W2] = e3("scrollbars.autoHideSuspend"), [V2] = e3("scrollbars.autoHideDelay"), [U2, K2] = e3("scrollbars.dragScroll"), [G2, q2] = e3("scrollbars.clickScroll"), [J2, Y2] = e3("overflow"), X2 = y3 && !t3, Q2 = C3.x || C3.y, Z2 = a3 || p3 || h3 || g3 || t3, ee2 = m3 || _2 || Y2, te2 = S3 && w3.x && w3.y, ne2 = !k2 && !$2, oe2 = te2 || ne2, ie2 = (e4, t4, n3) => {
7278
7278
  const o4 = e4.includes(Kc) && (F2 === Vc || "auto" === F2 && t4 === Kc);
7279
- return P2(_u, o4, n3), o4;
7279
+ return I2(_u, o4, n3), o4;
7280
7280
  };
7281
- if (f2 = V2, X2 && (H2 && Q2 ? (B2(false), d2(), w2(() => {
7281
+ if (f2 = V2, X2 && (H2 && Q2 ? (B2(false), d2(), b2(() => {
7282
7282
  d2 = eu(E2, "scroll", Xc(B2, true), { T: true });
7283
- })) : B2(true)), (N3 || ne2) && P2("os-theme-none", oe2), M3 && (P2(u2), P2(R3, true), u2 = R3), W2 && !H2 && B2(true), z2 && (s2 = "move" === j2, c2 = "leave" === j2, l2 = "never" === j2, T2(l2, true)), K2 && P2(Gu, U2), q2 && P2(Ku, !!G2), ee2) {
7283
+ })) : B2(true)), (N3 || ne2) && I2("os-theme-none", oe2), M3 && (I2(u2), I2(R3, true), u2 = R3), W2 && !H2 && B2(true), z2 && (s2 = "move" === j2, c2 = "leave" === j2, l2 = "never" === j2, T2(l2, true)), K2 && I2(Gu, U2), q2 && I2(Ku, !!G2), ee2) {
7284
7284
  const e4 = ie2(J2.x, x2.x, true), t4 = ie2(J2.y, x2.y, false);
7285
- P2(ju, !(e4 && t4));
7285
+ I2(ju, !(e4 && t4));
7286
7286
  }
7287
- Z2 && (O(), A(), D2(), h3 && L2(), P2(Hu, !S3.x, true), P2(Hu, !S3.y, false), P2(Ru, v3 && !I2));
7288
- }, {}, S2];
7289
- })(e, t, m, l, u, i), v = (e2) => nl(e2).some((t2) => !!e2[t2]), w = (e2, i2) => {
7287
+ Z2 && (O(), A(), D2(), h3 && L2(), I2(Hu, !C3.x, true), I2(Hu, !C3.y, false), I2(Ru, v3 && !P2));
7288
+ }, {}, C2];
7289
+ })(e, t, m, l, u, i), v = (e2) => nl(e2).some((t2) => !!e2[t2]), b = (e2, i2) => {
7290
7290
  if (n())
7291
7291
  return false;
7292
7292
  const { dn: a2, At: s2, It: l2, pn: u2 } = e2, d2 = a2 || {}, f2 = !!s2 || !r2, h2 = { zt: id(t, d2, f2), dn: d2, At: f2 };
7293
7293
  if (u2)
7294
7294
  return g(h2), false;
7295
- const y2 = i2 || p(ol({}, h2, { It: l2 })), w2 = c(ol({}, h2, { un: m, Qt: y2 }));
7296
- g(ol({}, h2, { Qt: y2, Zt: w2 }));
7297
- const b2 = v(y2), k = v(w2), x = b2 || k || !rl(d2) || f2;
7298
- return r2 = true, x && o2(e2, { Qt: y2, Zt: w2 }), x;
7295
+ const y2 = i2 || p(ol({}, h2, { It: l2 })), b2 = c(ol({}, h2, { un: m, Qt: y2 }));
7296
+ g(ol({}, h2, { Qt: y2, Zt: b2 }));
7297
+ const w2 = v(y2), k = v(b2), x = w2 || k || !rl(d2) || f2;
7298
+ return r2 = true, x && o2(e2, { Qt: y2, Zt: b2 }), x;
7299
7299
  };
7300
7300
  return [() => {
7301
7301
  const { ln: e2, gt: t2, St: n2 } = u, o3 = ru(e2), i2 = [f(), s(), h()], r3 = n2();
7302
7302
  return iu(t2, o3), r3(), Xc(Dc, i2);
7303
- }, w, () => ({ vn: m, gn: l }), { hn: u, bn: y }, d];
7304
- }, Nd = /* @__PURE__ */ new WeakMap(), Ed = (e) => Nd.get(e), Id = (e, t, n) => {
7303
+ }, b, () => ({ vn: m, gn: l }), { hn: u, bn: y }, d];
7304
+ }, Nd = /* @__PURE__ */ new WeakMap(), Ed = (e) => Nd.get(e), Pd = (e, t, n) => {
7305
7305
  const { tt: o2 } = cd(), i = xc(e), r2 = i ? e : e.target, a = Ed(r2);
7306
7306
  if (t && !a) {
7307
7307
  let a2 = false;
@@ -7310,23 +7310,23 @@ const dd = (e, t, n) => {
7310
7310
  return n2 ? n2(t2, true) : t2;
7311
7311
  }, u = ol({}, o2(), l(t)), [d, f, p] = du(), [m, h, g] = du(n), y = (e2, t2) => {
7312
7312
  g(e2, t2), p(e2, t2);
7313
- }, [v, w, b2, k, x] = Cd(e, u, () => a2, ({ dn: e2, At: t2 }, { Qt: n2, Zt: o3 }) => {
7313
+ }, [v, b, w2, k, x] = Sd(e, u, () => a2, ({ dn: e2, At: t2 }, { Qt: n2, Zt: o3 }) => {
7314
7314
  const { _t: i2, Ct: r3, $t: a3, xt: s2, Ht: c2, ft: l2 } = n2, { tn: u2, nn: d2, sn: f2, en: p2 } = o3;
7315
- y("updated", [C2, { updateHints: { sizeChanged: !!i2, directionChanged: !!r3, heightIntrinsicChanged: !!a3, overflowEdgeChanged: !!u2, overflowAmountChanged: !!d2, overflowStyleChanged: !!f2, scrollCoordinatesChanged: !!p2, contentMutation: !!s2, hostMutation: !!c2, appear: !!l2 }, changedOptions: e2 || {}, force: !!t2 }]);
7316
- }, (e2) => y("scroll", [C2, e2])), S2 = (e2) => {
7315
+ y("updated", [S2, { updateHints: { sizeChanged: !!i2, directionChanged: !!r3, heightIntrinsicChanged: !!a3, overflowEdgeChanged: !!u2, overflowAmountChanged: !!d2, overflowStyleChanged: !!f2, scrollCoordinatesChanged: !!p2, contentMutation: !!s2, hostMutation: !!c2, appear: !!l2 }, changedOptions: e2 || {}, force: !!t2 }]);
7316
+ }, (e2) => y("scroll", [S2, e2])), C2 = (e2) => {
7317
7317
  ((e3) => {
7318
7318
  Nd.delete(e3);
7319
- })(r2), Dc(s), a2 = true, y("destroyed", [C2, e2]), f(), h();
7320
- }, C2 = { options(e2, t2) {
7319
+ })(r2), Dc(s), a2 = true, y("destroyed", [S2, e2]), f(), h();
7320
+ }, S2 = { options(e2, t2) {
7321
7321
  if (e2) {
7322
7322
  const n2 = t2 ? o2() : {}, i2 = od(u, ol(n2, l(e2)));
7323
- rl(i2) || (ol(u, i2), w({ dn: i2 }));
7323
+ rl(i2) || (ol(u, i2), b({ dn: i2 }));
7324
7324
  }
7325
7325
  return ol({}, u);
7326
7326
  }, on: m, off: (e2, t2) => {
7327
7327
  e2 && t2 && h(e2, t2);
7328
7328
  }, state() {
7329
- const { vn: e2, gn: t2 } = b2(), { B: n2 } = e2, { Vt: o3, Rt: i2, cn: r3, j: s2, rn: c2, fn: l2, Dt: u2 } = t2;
7329
+ const { vn: e2, gn: t2 } = w2(), { B: n2 } = e2, { Vt: o3, Rt: i2, cn: r3, j: s2, rn: c2, fn: l2, Dt: u2 } = t2;
7330
7330
  return ol({}, { overflowEdge: o3, overflowAmount: i2, overflowStyle: r3, hasOverflow: s2, scrollCoordinates: { start: u2.D, end: u2.M }, padding: c2, paddingAbsolute: l2, directionRTL: n2, destroyed: a2 });
7331
7331
  }, elements() {
7332
7332
  const { dt: e2, vt: t2, rn: n2, L: o3, ht: i2, gt: r3, Kt: a3 } = k.hn, { jt: s2, Jt: c2 } = k.bn, l2 = (e3) => {
@@ -7336,39 +7336,39 @@ const dd = (e, t, n) => {
7336
7336
  const { Xt: t3, Yt: n3 } = e3, o4 = l2(t3[0]);
7337
7337
  return ol({}, o4, { clone: () => {
7338
7338
  const e4 = l2(n3());
7339
- return w({ pn: true }), e4;
7339
+ return b({ pn: true }), e4;
7340
7340
  } });
7341
7341
  };
7342
7342
  return ol({}, { target: e2, host: t2, padding: n2 || o3, viewport: o3, content: i2 || o3, scrollOffsetElement: r3, scrollEventElement: a3, scrollbarHorizontal: u2(s2), scrollbarVertical: u2(c2) });
7343
- }, update: (e2) => w({ At: e2, It: true }), destroy: Xc(S2, false), plugin: (e2) => c[nl(e2)[0]] };
7344
- return Ic(s, [x]), ((e2, t2) => {
7343
+ }, update: (e2) => b({ At: e2, It: true }), destroy: Xc(C2, false), plugin: (e2) => c[nl(e2)[0]] };
7344
+ return Pc(s, [x]), ((e2, t2) => {
7345
7345
  Nd.set(e2, t2);
7346
- })(r2, C2), mu(fu, Id, [C2, d, c]), ((e2, t2) => {
7346
+ })(r2, S2), mu(fu, Pd, [S2, d, c]), ((e2, t2) => {
7347
7347
  const { nativeScrollbarsOverlaid: n2, body: o3 } = t2 || {}, { k: i2, U: r3, K: a3 } = cd(), { nativeScrollbarsOverlaid: s2, body: c2 } = a3().cancel, l2 = null != n2 ? n2 : s2, u2 = fc(o3) ? c2 : o3, d2 = (i2.x || i2.y) && l2, f2 = e2 && (pc(u2) ? !r3 : u2);
7348
7348
  return !!d2 || !!f2;
7349
- })(k.hn.bt, !i && e.cancel) ? (S2(true), C2) : (Ic(s, v()), y("initialized", [C2]), C2.update(), C2);
7349
+ })(k.hn.bt, !i && e.cancel) ? (C2(true), S2) : (Pc(s, v()), y("initialized", [S2]), S2.update(), S2);
7350
7350
  }
7351
7351
  return a;
7352
7352
  };
7353
- Id.plugin = (e) => {
7354
- const t = vc(e), n = t ? e : [e], o2 = n.map((e2) => mu(e2, Id)[0]);
7353
+ Pd.plugin = (e) => {
7354
+ const t = vc(e), n = t ? e : [e], o2 = n.map((e2) => mu(e2, Pd)[0]);
7355
7355
  return ((e2) => {
7356
- Cc(e2, (e3) => Cc(e3, (t2, n2) => {
7356
+ Sc(e2, (e3) => Sc(e3, (t2, n2) => {
7357
7357
  fu[n2] = e3[n2];
7358
7358
  }));
7359
7359
  })(n), t ? o2 : o2[0];
7360
- }, Id.valid = (e) => {
7360
+ }, Pd.valid = (e) => {
7361
7361
  const t = e && e.elements, n = yc(t) && t();
7362
7362
  return kc(n) && !!Ed(n.target);
7363
- }, Id.env = () => {
7363
+ }, Pd.env = () => {
7364
7364
  const { P: e, k: t, U: n, J: o2, ot: i, st: r2, K: a, Z: s, tt: c, nt: l } = cd();
7365
7365
  return ol({}, { scrollbarsSize: e, scrollbarsOverlaid: t, scrollbarsHiding: n, scrollTimeline: o2, staticDefaultInitialization: i, staticDefaultOptions: r2, getDefaultInitialization: a, setDefaultInitialization: s, getDefaultOptions: c, setDefaultOptions: l });
7366
- }, Id.nonce = (e) => {
7366
+ }, Pd.nonce = (e) => {
7367
7367
  rd = e;
7368
- }, Id.trustedTypePolicy = (e) => {
7368
+ }, Pd.trustedTypePolicy = (e) => {
7369
7369
  Ll = e;
7370
7370
  };
7371
- const Pd = () => {
7371
+ const Id = () => {
7372
7372
  if (typeof window > "u") {
7373
7373
  const e2 = () => {
7374
7374
  };
@@ -7384,23 +7384,23 @@ const Pd = () => {
7384
7384
  } : n2, "object" == typeof r3 ? r3 : { timeout: 2233 });
7385
7385
  }, c];
7386
7386
  }, Ad = (e) => {
7387
- const { options: t, events: n, defer: o2 } = e || {}, [i, r2] = useMemo(Pd, []), a = useRef(null), s = useRef(o2), c = useRef(t), l = useRef(n);
7387
+ const { options: t, events: n, defer: o2 } = e || {}, [i, r2] = useMemo(Id, []), a = useRef(null), s = useRef(o2), c = useRef(t), l = useRef(n);
7388
7388
  return useEffect(() => {
7389
7389
  s.current = o2;
7390
7390
  }, [o2]), useEffect(() => {
7391
7391
  const { current: e2 } = a;
7392
- c.current = t, Id.valid(e2) && e2.options(t || {}, true);
7392
+ c.current = t, Pd.valid(e2) && e2.options(t || {}, true);
7393
7393
  }, [t]), useEffect(() => {
7394
7394
  const { current: e2 } = a;
7395
- l.current = n, Id.valid(e2) && e2.on(n || {}, true);
7395
+ l.current = n, Pd.valid(e2) && e2.on(n || {}, true);
7396
7396
  }, [n]), useEffect(() => () => {
7397
7397
  var e2;
7398
7398
  r2(), null == (e2 = a.current) || e2.destroy();
7399
7399
  }, []), useMemo(() => [(e2) => {
7400
7400
  const t2 = a.current;
7401
- if (Id.valid(t2))
7401
+ if (Pd.valid(t2))
7402
7402
  return;
7403
- const n2 = s.current, o3 = c.current || {}, r3 = l.current || {}, u = () => a.current = Id(e2, o3, r3);
7403
+ const n2 = s.current, o3 = c.current || {}, r3 = l.current || {}, u = () => a.current = Pd(e2, o3, r3);
7404
7404
  n2 ? i(u, n2) : u();
7405
7405
  }, () => a.current], []);
7406
7406
  };
@@ -7442,13 +7442,13 @@ function Md(e, t) {
7442
7442
  function Fd() {
7443
7443
  return ("function" == typeof useId ? useId : Md)() ?? "";
7444
7444
  }
7445
- const $d = forwardRef(({ id: n, className: o2, type: i = "text", name: r2 = "input", align: s = "up", label: c, iconPrepend: l, iconPrependOnClick: u, iconAppend: d, iconAppendOnClick: f, placeholder: p, disabled: m, readOnly: h, errorMessage: g, errorDataTestId: y, ...v }, w) => {
7446
- const b2 = Fd(), k = n || `input-${b2}`, x = E("io-control-input", l && "io-control-leading-icon", d && "io-control-trailing-icon", m && "io-control-disabled", h && "io-control-readonly", g && "io-control-error", s && [`direction-${s}`], o2), S2 = useCallback((e) => {
7445
+ const $d = forwardRef(({ id: n, className: o2, type: i = "text", name: r2 = "input", align: s = "up", label: c, iconPrepend: l, iconPrependOnClick: u, iconAppend: d, iconAppendOnClick: f, placeholder: p, disabled: m, readOnly: h, errorMessage: g, errorDataTestId: y, ...v }, b) => {
7446
+ const w2 = Fd(), k = n || `input-${w2}`, x = E("io-control-input", l && "io-control-leading-icon", d && "io-control-trailing-icon", m && "io-control-disabled", h && "io-control-readonly", g && "io-control-error", s && [`direction-${s}`], o2), C2 = useCallback((e) => {
7447
7447
  m ? e.preventDefault() : u && u(e);
7448
- }, [u, m]), C2 = useCallback((e) => {
7448
+ }, [u, m]), S2 = useCallback((e) => {
7449
7449
  m ? e.preventDefault() : f && f(e);
7450
7450
  }, [f, m]);
7451
- return jsxs("div", { className: x, children: [c && jsx(Ld, { htmlFor: k, text: c }), l && jsx(I, { variant: l, onClick: (e) => S2(e) }), jsx("input", { id: k, className: "io-input", ref: w, type: i, name: r2, tabIndex: 0, placeholder: p ?? (() => {
7451
+ return jsxs("div", { className: x, children: [c && jsx(Ld, { htmlFor: k, text: c }), l && jsx(P, { variant: l, onClick: (e) => C2(e) }), jsx("input", { id: k, className: "io-input", ref: b, type: i, name: r2, tabIndex: 0, placeholder: p ?? (() => {
7452
7452
  switch (i) {
7453
7453
  case "email":
7454
7454
  return "Enter your email here...";
@@ -7463,7 +7463,7 @@ const $d = forwardRef(({ id: n, className: o2, type: i = "text", name: r2 = "inp
7463
7463
  default:
7464
7464
  return "Enter text here...";
7465
7465
  }
7466
- })(), "aria-label": c, disabled: m, readOnly: h, ...g ? { "aria-invalid": true, "aria-describedby": `${k}-error` } : {}, ...v }), d && jsx(I, { variant: d, onClick: (e) => C2(e) }), g && jsxs("div", { "data-testid": y, id: `${k}-error`, className: "io-input-error", children: [jsx(I, { variant: "close" }), g] })] });
7466
+ })(), "aria-label": c, disabled: m, readOnly: h, ...g ? { "aria-invalid": true, "aria-describedby": `${k}-error` } : {}, ...v }), d && jsx(P, { variant: d, onClick: (e) => S2(e) }), g && jsxs("div", { "data-testid": y, id: `${k}-error`, className: "io-input-error", children: [jsx(P, { variant: "close" }), g] })] });
7467
7467
  });
7468
7468
  $d.displayName = "Input";
7469
7469
  const _d = forwardRef(({ id: n, className: o2, name: i = "textarea", align: r2 = "up", label: a, rows: s = 4, placeholder: c = "Enter text here...", disabled: l, readOnly: u, ...d }, f) => {
@@ -7487,14 +7487,14 @@ const Hd = () => {
7487
7487
  return (_a2 = e == null ? void 0 : e.themes) == null ? void 0 : _a2.select(t2);
7488
7488
  }, [e]);
7489
7489
  return useEffect(() => {
7490
- var _a2, _b;
7490
+ var _a2, _b2;
7491
7491
  if (!e)
7492
7492
  return;
7493
7493
  let t2 = false;
7494
7494
  const o3 = (e2) => {
7495
7495
  t2 || n(e2);
7496
7496
  };
7497
- return (_a2 = e.themes) == null ? void 0 : _a2.onChanged(o3), (_b = e.themes) == null ? void 0 : _b.getCurrent().then(o3).catch(console.warn), () => {
7497
+ return (_a2 = e.themes) == null ? void 0 : _a2.onChanged(o3), (_b2 = e.themes) == null ? void 0 : _b2.getCurrent().then(o3).catch(console.warn), () => {
7498
7498
  t2 = true;
7499
7499
  };
7500
7500
  }, [e]), { currentTheme: t, selectTheme: o2 };
@@ -7518,7 +7518,7 @@ function Kd() {
7518
7518
  }), []), useCallback(() => e.current, []);
7519
7519
  }
7520
7520
  const Qd = () => {
7521
- const e = useContext(IOConnectContext), t = e == null ? void 0 : e.windows, n = e == null ? void 0 : e.workspaces, o2 = useRef(null), [i, r2] = useState(null), [s, u] = useState(null), [p, m] = useState(false), [h, g] = useState(false), [y, v] = useState(null), w = useRef(void 0), b2 = Kd(), { currentTheme: k } = Hd();
7521
+ const e = useContext(IOConnectContext), t = e == null ? void 0 : e.windows, n = e == null ? void 0 : e.workspaces, o2 = useRef(null), [i, r2] = useState(null), [s, u] = useState(null), [p, m] = useState(false), [h, g] = useState(false), [y, v] = useState(null), b = useRef(void 0), w2 = Kd(), { currentTheme: k } = Hd();
7522
7522
  useEffect(() => {
7523
7523
  o2.current = i;
7524
7524
  const e2 = i == null ? void 0 : i.ioConnectWindow.onVisibilityChanged(() => {
@@ -7528,7 +7528,7 @@ const Qd = () => {
7528
7528
  e2 == null ? void 0 : e2();
7529
7529
  };
7530
7530
  }, [i]);
7531
- const S2 = useCallback(async (e2, o3) => {
7531
+ const C2 = useCallback(async (e2, o3) => {
7532
7532
  const i2 = { windowId: e2 == null ? void 0 : e2.ioConnectWindow.id, ...o3 }, r3 = window.glue42gd.windowId;
7533
7533
  if ((() => {
7534
7534
  const e3 = Or() && !!window.workspacesManager, t2 = !Or() && !!window.ioworkspaces;
@@ -7547,7 +7547,7 @@ const Qd = () => {
7547
7547
  return void console.warn("Cannot access my window to show popup");
7548
7548
  await e3.showPopup({ ...i2 });
7549
7549
  }
7550
- }, [t, n]), C2 = useCallback((e2) => {
7550
+ }, [t, n]), S2 = useCallback((e2) => {
7551
7551
  try {
7552
7552
  const t2 = e2.document;
7553
7553
  (k == null ? void 0 : k.name) && (t2.documentElement.className = k.name);
@@ -7555,35 +7555,35 @@ const Qd = () => {
7555
7555
  return n2.id = "io-popup-window-container", t2.body.innerHTML = "", t2.body.appendChild(n2), t2;
7556
7556
  } catch (e3) {
7557
7557
  const t2 = `Failed to setup popup document: ${String(e3)}`;
7558
- return console.error("usePopupWindow:", t2, e3), b2() && v(t2), null;
7558
+ return console.error("usePopupWindow:", t2, e3), w2() && v(t2), null;
7559
7559
  }
7560
- }, [k, b2]), N2 = useCallback(async (e2) => {
7560
+ }, [k, w2]), N2 = useCallback(async (e2) => {
7561
7561
  if (!t) {
7562
7562
  const e3 = "io.Connect API not available";
7563
- return console.error("usePopupWindow:", e3), b2() && v(e3), null;
7563
+ return console.error("usePopupWindow:", e3), w2() && v(e3), null;
7564
7564
  }
7565
- b2() && (g(true), v(null));
7565
+ w2() && (g(true), v(null));
7566
7566
  try {
7567
7567
  const n2 = new Promise((e3, t2) => {
7568
7568
  setTimeout(() => t2(new Error("Popup creation timeout after 5 seconds")), 5e3);
7569
7569
  }), o3 = t.createPopup({ ...e2 }), i2 = await Promise.race([o3, n2]);
7570
- if (!b2())
7570
+ if (!w2())
7571
7571
  return await i2.ioConnectWindow.close().catch(() => {
7572
7572
  }), console.warn("usePopupWindow: Component unmounted during popup creation, cleaned up popup"), null;
7573
7573
  r2(i2);
7574
7574
  const a = i2.browserWindow;
7575
7575
  if (a == null ? void 0 : a.document) {
7576
- const e3 = C2(a);
7577
- b2() && e3 && u(e3);
7576
+ const e3 = S2(a);
7577
+ w2() && e3 && u(e3);
7578
7578
  }
7579
7579
  return i2;
7580
7580
  } catch (e3) {
7581
7581
  const t2 = `Failed to create popup: ${String(e3)}`;
7582
- return console.error("usePopupWindow:", t2, e3), b2() && (v(t2), r2(null), u(null)), null;
7582
+ return console.error("usePopupWindow:", t2, e3), w2() && (v(t2), r2(null), u(null)), null;
7583
7583
  } finally {
7584
- b2() && g(false);
7584
+ w2() && g(false);
7585
7585
  }
7586
- }, [t, C2, b2]), E2 = useCallback(() => {
7586
+ }, [t, S2, w2]), E2 = useCallback(() => {
7587
7587
  if (!i || !t)
7588
7588
  return false;
7589
7589
  try {
@@ -7591,7 +7591,7 @@ const Qd = () => {
7591
7591
  } catch (e2) {
7592
7592
  return console.warn("usePopupWindow: Failed to verify popup existence", e2), false;
7593
7593
  }
7594
- }, [i, t]), I2 = useCallback(async () => {
7594
+ }, [i, t]), P2 = useCallback(async () => {
7595
7595
  if (!i)
7596
7596
  return null;
7597
7597
  if (E2())
@@ -7600,16 +7600,16 @@ const Qd = () => {
7600
7600
  const e2 = i.ioConnectWindow.bounds, t2 = await N2({ left: e2.left, top: e2.top, width: e2.width, height: e2.height });
7601
7601
  if (!t2) {
7602
7602
  const e3 = "Failed to recreate destroyed popup window";
7603
- console.error("usePopupWindow:", e3), b2() && v(e3);
7603
+ console.error("usePopupWindow:", e3), w2() && v(e3);
7604
7604
  }
7605
7605
  return t2;
7606
- }, [i, E2, N2, b2]), P2 = useCallback(async (e2) => {
7606
+ }, [i, E2, N2, w2]), I2 = useCallback(async (e2) => {
7607
7607
  if (i)
7608
- return await I2();
7608
+ return await P2();
7609
7609
  const t2 = await N2(e2);
7610
- return t2 ? b2() ? t2 : (await t2.ioConnectWindow.close().catch(() => {
7610
+ return t2 ? w2() ? t2 : (await t2.ioConnectWindow.close().catch(() => {
7611
7611
  }), console.warn("usePopupWindow: Component unmounted during popup creation, cleaned up popup"), null) : (console.warn("usePopupWindow: Failed to create popup, operation aborted"), null);
7612
- }, [i, I2, N2, b2]);
7612
+ }, [i, P2, N2, w2]);
7613
7613
  useEffect(() => {
7614
7614
  if ((i == null ? void 0 : i.browserWindow) && s)
7615
7615
  try {
@@ -7624,32 +7624,32 @@ const Qd = () => {
7624
7624
  if (i) {
7625
7625
  if (!t) {
7626
7626
  const e3 = "io.Connect API not available";
7627
- return console.error("usePopupWindow:", e3), void (b2() && v(e3));
7627
+ return console.error("usePopupWindow:", e3), void (w2() && v(e3));
7628
7628
  }
7629
7629
  try {
7630
- const t2 = e2 || w.current;
7630
+ const t2 = e2 || b.current;
7631
7631
  if (!t2)
7632
7632
  return void console.warn("usePopupWindow: No show options available");
7633
- const n2 = await I2();
7634
- if (!n2 || !b2())
7633
+ const n2 = await P2();
7634
+ if (!n2 || !w2())
7635
7635
  return;
7636
- await S2(n2, t2), b2() && m(true);
7636
+ await C2(n2, t2), w2() && m(true);
7637
7637
  } catch (e3) {
7638
7638
  const t2 = `Failed to show popup: ${JSON.stringify(e3)}`;
7639
- console.error("usePopupWindow:", t2, e3), b2() && v(t2);
7639
+ console.error("usePopupWindow:", t2, e3), w2() && v(t2);
7640
7640
  }
7641
7641
  } else
7642
7642
  console.warn("usePopupWindow: Cannot show popup - popup not created yet");
7643
- }, [i, t, S2, b2, I2]), L2 = useCallback(async (e2) => {
7643
+ }, [i, t, C2, w2, P2]), L2 = useCallback(async (e2) => {
7644
7644
  await (i == null ? void 0 : i.ioConnectWindow.moveResize({ ...e2 }));
7645
7645
  }, [i]), D2 = useCallback(async () => {
7646
- if (b2() && (m(false), o2.current))
7646
+ if (w2() && (m(false), o2.current))
7647
7647
  try {
7648
7648
  await o2.current.ioConnectWindow.hide();
7649
7649
  } catch (e2) {
7650
7650
  console.error("usePopupWindow: Failed to hide popup", e2);
7651
7651
  }
7652
- }, [o2, b2]);
7652
+ }, [o2, w2]);
7653
7653
  ie(() => {
7654
7654
  p && D2().catch((e2) => {
7655
7655
  console.error("Failed to hide popup on Escape key press in parent window", e2);
@@ -7672,35 +7672,35 @@ const Qd = () => {
7672
7672
  await o2.current.ioConnectWindow.close(), o2.current = null;
7673
7673
  } catch (e2) {
7674
7674
  const t2 = `Failed to close popup: ${String(e2)}`;
7675
- console.error("usePopupWindow:", t2, e2), b2() && v(t2);
7675
+ console.error("usePopupWindow:", t2, e2), w2() && v(t2);
7676
7676
  } finally {
7677
- b2() && (r2(null), u(null), m(false), w.current = void 0);
7677
+ w2() && (r2(null), u(null), m(false), b.current = void 0);
7678
7678
  }
7679
- }, [o2, b2]), R2 = useCallback(async (e2, n2, o3) => {
7679
+ }, [o2, w2]), R2 = useCallback(async (e2, n2, o3) => {
7680
7680
  if (!t) {
7681
7681
  const e3 = "io.Connect API not available";
7682
- return console.error("usePopupWindow:", e3), void (b2() && v(e3));
7682
+ return console.error("usePopupWindow:", e3), void (w2() && v(e3));
7683
7683
  }
7684
- b2() && (g(true), v(null));
7684
+ w2() && (g(true), v(null));
7685
7685
  try {
7686
- let e3 = await P2(n2);
7686
+ let e3 = await I2(n2);
7687
7687
  if (!e3) {
7688
7688
  const t2 = await N2(n2);
7689
7689
  if (!t2)
7690
7690
  return void console.warn("usePopupWindow: Failed to create popup, operation aborted");
7691
- if (!b2())
7691
+ if (!w2())
7692
7692
  return await t2.ioConnectWindow.close().catch(() => {
7693
7693
  }), void console.warn("usePopupWindow: Component unmounted during popup creation, cleaned up popup");
7694
7694
  e3 = t2;
7695
7695
  }
7696
- o3 && (w.current = o3), await S2(e3, o3), b2() && m(true);
7696
+ o3 && (b.current = o3), await C2(e3, o3), w2() && m(true);
7697
7697
  } catch (e3) {
7698
7698
  const t2 = `Failed to create and show popup: ${String(e3)}`;
7699
- console.error("usePopupWindow:", t2, e3), b2() && v(t2);
7699
+ console.error("usePopupWindow:", t2, e3), w2() && v(t2);
7700
7700
  } finally {
7701
- b2() && g(false);
7701
+ w2() && g(false);
7702
7702
  }
7703
- }, [N2, t, S2, b2, P2]);
7703
+ }, [N2, t, C2, w2, I2]);
7704
7704
  return { popup: i, loading: h, error: y, clearError: A, isOpen: !!i, isVisible: p, createPopup: N2, showPopup: O, createAndShowPopup: R2, hidePopup: D2, closePopup: T2, getContainer: () => (s == null ? void 0 : s.getElementById("io-popup-window-container")) || null, resizePopup: L2 };
7705
7705
  };
7706
7706
  const ef = () => {
@@ -7722,7 +7722,7 @@ function lf(e) {
7722
7722
  }
7723
7723
  sf.displayName = "Toggle";
7724
7724
  const uf = { getMyApplication: async function(e) {
7725
- var _a2, _b;
7725
+ var _a2, _b2;
7726
7726
  if (e)
7727
7727
  try {
7728
7728
  const t = e.apps;
@@ -7735,7 +7735,7 @@ const uf = { getMyApplication: async function(e) {
7735
7735
  return;
7736
7736
  return cf(n2);
7737
7737
  }
7738
- const n = (_b = e.appManager) == null ? void 0 : _b.myApplication;
7738
+ const n = (_b2 = e.appManager) == null ? void 0 : _b2.myApplication;
7739
7739
  if (!n)
7740
7740
  return;
7741
7741
  return lf(n);
@@ -7743,7 +7743,7 @@ const uf = { getMyApplication: async function(e) {
7743
7743
  return void console.error("Failed to get my application", e2);
7744
7744
  }
7745
7745
  }, getApplications: async function(e) {
7746
- var _a2, _b;
7746
+ var _a2, _b2;
7747
7747
  if (!e)
7748
7748
  return [];
7749
7749
  try {
@@ -7752,14 +7752,14 @@ const uf = { getMyApplication: async function(e) {
7752
7752
  const e2 = await t.getMany() ?? [];
7753
7753
  return e2.map((e3) => cf(e3));
7754
7754
  }
7755
- const n = ((_b = e.appManager) == null ? void 0 : _b.applications()) ?? [];
7755
+ const n = ((_b2 = e.appManager) == null ? void 0 : _b2.applications()) ?? [];
7756
7756
  return n.map((e2) => lf(e2));
7757
7757
  } catch (e2) {
7758
7758
  console.error("Failed to get applications", e2);
7759
7759
  }
7760
7760
  return [];
7761
7761
  }, startApplication: async function(e, t, n) {
7762
- var _a2, _b;
7762
+ var _a2, _b2;
7763
7763
  if (e)
7764
7764
  try {
7765
7765
  const o2 = e.apps;
@@ -7768,7 +7768,7 @@ const uf = { getMyApplication: async function(e) {
7768
7768
  const e2 = o2.instances;
7769
7769
  return e2 ? void await e2.start({ name: t, ...n }) : void console.error("io.apps.instances API is not available");
7770
7770
  }
7771
- const i = (_b = e.appManager) == null ? void 0 : _b.application(t);
7771
+ const i = (_b2 = e.appManager) == null ? void 0 : _b2.application(t);
7772
7772
  if (!i)
7773
7773
  return void console.error(`Application "${t}" not found`);
7774
7774
  await i.start(n);
@@ -7791,7 +7791,7 @@ const uf = { getMyApplication: async function(e) {
7791
7791
  return void console.error(`Failed to stop application instance "${t.id}"`, e2);
7792
7792
  }
7793
7793
  }, onAppAdded: async function(e, t) {
7794
- var _a2, _b;
7794
+ var _a2, _b2;
7795
7795
  if (e)
7796
7796
  try {
7797
7797
  const n = (_a2 = e.apps) == null ? void 0 : _a2.registry;
@@ -7801,7 +7801,7 @@ const uf = { getMyApplication: async function(e) {
7801
7801
  t(n2);
7802
7802
  });
7803
7803
  }
7804
- const o2 = (_b = e.appManager) == null ? void 0 : _b.onAppAdded((e2) => {
7804
+ const o2 = (_b2 = e.appManager) == null ? void 0 : _b2.onAppAdded((e2) => {
7805
7805
  const n2 = lf(e2);
7806
7806
  t(n2);
7807
7807
  });
@@ -7810,7 +7810,7 @@ const uf = { getMyApplication: async function(e) {
7810
7810
  return void console.error("Failed to subscribe to app added events", e2);
7811
7811
  }
7812
7812
  }, onAppRemoved: async function(e, t) {
7813
- var _a2, _b;
7813
+ var _a2, _b2;
7814
7814
  if (e)
7815
7815
  try {
7816
7816
  const n = (_a2 = e.apps) == null ? void 0 : _a2.registry;
@@ -7819,7 +7819,7 @@ const uf = { getMyApplication: async function(e) {
7819
7819
  t({ name: e2 });
7820
7820
  });
7821
7821
  }
7822
- const o2 = (_b = e.appManager) == null ? void 0 : _b.onAppRemoved((e2) => {
7822
+ const o2 = (_b2 = e.appManager) == null ? void 0 : _b2.onAppRemoved((e2) => {
7823
7823
  t({ name: e2.name });
7824
7824
  });
7825
7825
  return o2;
@@ -7827,7 +7827,7 @@ const uf = { getMyApplication: async function(e) {
7827
7827
  return void console.error("Failed to subscribe to app removed events", e2);
7828
7828
  }
7829
7829
  }, onAppChanged: async function(e, t) {
7830
- var _a2, _b;
7830
+ var _a2, _b2;
7831
7831
  if (e)
7832
7832
  try {
7833
7833
  const n = (_a2 = e.apps) == null ? void 0 : _a2.registry;
@@ -7837,7 +7837,7 @@ const uf = { getMyApplication: async function(e) {
7837
7837
  t(n2);
7838
7838
  });
7839
7839
  }
7840
- const o2 = (_b = e.appManager) == null ? void 0 : _b.onAppChanged((e2) => {
7840
+ const o2 = (_b2 = e.appManager) == null ? void 0 : _b2.onAppChanged((e2) => {
7841
7841
  const n2 = lf(e2);
7842
7842
  t(n2);
7843
7843
  });
@@ -7846,26 +7846,26 @@ const uf = { getMyApplication: async function(e) {
7846
7846
  return void console.error("Failed to subscribe to app changed events", e2);
7847
7847
  }
7848
7848
  }, restartPlatform: async function(e, t = true) {
7849
- var _a2, _b;
7849
+ var _a2, _b2;
7850
7850
  if (!e)
7851
7851
  return;
7852
7852
  const n = { autoSave: t, showDialog: true };
7853
7853
  try {
7854
7854
  if ((_a2 = e.platform) == null ? void 0 : _a2.restart)
7855
7855
  return void await e.platform.restart(n);
7856
- await ((_b = e.appManager) == null ? void 0 : _b.restart(n));
7856
+ await ((_b2 = e.appManager) == null ? void 0 : _b2.restart(n));
7857
7857
  } catch (e2) {
7858
7858
  console.error("Failed to restart platform", e2);
7859
7859
  }
7860
7860
  }, shutdownPlatform: async function(e, t = true) {
7861
- var _a2, _b;
7861
+ var _a2, _b2;
7862
7862
  if (!e)
7863
7863
  return;
7864
7864
  const n = { autoSave: t, showDialog: true };
7865
7865
  try {
7866
7866
  if ((_a2 = e.platform) == null ? void 0 : _a2.shutdown)
7867
7867
  return void await e.platform.shutdown(n);
7868
- await ((_b = e.appManager) == null ? void 0 : _b.exit(n));
7868
+ await ((_b2 = e.appManager) == null ? void 0 : _b2.exit(n));
7869
7869
  } catch (e2) {
7870
7870
  console.error("Failed to shutdown platform", e2);
7871
7871
  }
@@ -7892,18 +7892,18 @@ const df = { minimizeWindow: async function(e) {
7892
7892
  createContext({ theme: "dark" });
7893
7893
  createContext(void 0);
7894
7894
  const gf = (n) => {
7895
- const { General: o2, Launchpad: i, Docking: r2, ExtendedArea: a, Layouts: s, Downloads: c, System: l } = Np();
7896
- return jsxs(Od, { element: Us, elementProps: n, children: [jsx(o2, {}), jsx(i, {}), jsx(r2, {}), jsx(a, {}), jsx(s, {}), jsx(c, {}), jsx(l, {})] });
7895
+ const { General: o2, Launchpad: i, Docking: r2, ExtendedArea: a, Layouts: s, Downloads: c, System: l } = Np(), u = [[{ key: "general", Component: o2 }], [{ key: "launchpad", Component: i }, { key: "docking", Component: r2 }, { key: "extended-area", Component: a }], [{ key: "layouts", Component: s }], [{ key: "downloads", Component: c }], [{ key: "system", Component: l }]];
7896
+ return jsx(Od, { element: Us, elementProps: n, children: u.map((n2, o3) => jsxs(Fragment$1, { children: [n2.map(({ key: t, Component: n3 }) => jsx(n3, {}, t)), o3 < u.length - 1 && jsx(J, {})] }, n2[0].key)) });
7897
7897
  }, yf = ({ title: t = "General", ...n }) => {
7898
7898
  const { Theme: o2 } = Np();
7899
7899
  return jsx(T, { title: t, ...n, children: jsx(o2, {}) });
7900
7900
  }, vf = ({ className: n, title: o2 = "Theme", ...i }) => {
7901
7901
  const { currentTheme: r2, selectTheme: a } = Hd(), s = ef();
7902
7902
  return jsxs("div", { className: E("flex jc-between ai-center", n), "data-testid": "theme-container", ...i, children: [jsx("label", { className: "io-text-clipper", "data-testid": "theme-label", children: o2 }), jsxs(re, { variant: "light", "data-testid": "theme-dropdown", children: [jsx(re.Button, { text: (r2 == null ? void 0 : r2.displayName) ?? "Dark", "data-testid": "theme-dropdown-button" }), jsx(re.Content, { "data-testid": "theme-dropdown-content", children: jsx(re.List, { children: s.map(({ displayName: t, name: n2 }) => jsx(re.Item, { onClick: () => a(n2), "data-testid": `theme-dropdown-item-${n2}`, children: t }, n2)) }) })] })] });
7903
- }, wf = ({ prefKey: t, ...n }) => {
7903
+ }, bf = ({ prefKey: t, ...n }) => {
7904
7904
  const { isLoading: o2, value: i = false, update: r2 } = ks({ prefKey: t });
7905
7905
  return jsx(sf, { checked: i, disabled: o2, onChange: (e) => r2(e.target.checked), ...n });
7906
- }, bf = ({ align: t = "right", label: n = "Minimize to tray", ...o2 }) => jsx(wf, { align: t, label: n, prefKey: Fa, ...o2 }), kf = ({ prefKey: n, options: o2, disabled: i, ...r2 }) => {
7906
+ }, wf = ({ align: t = "right", label: n = "Minimize to tray", ...o2 }) => jsx(bf, { align: t, label: n, prefKey: Fa, ...o2 }), kf = ({ prefKey: n, options: o2, disabled: i, ...r2 }) => {
7907
7907
  const { isLoading: a, value: s = "Select option", update: c } = ks({ prefKey: n });
7908
7908
  return jsxs(re, { variant: "light", disabled: a || i, ...r2, children: [jsx(re.Button, { children: s }), jsx(re.Content, { children: jsx(re.List, { children: o2.map((t) => jsx(re.Item, { onClick: () => (async (e) => {
7909
7909
  if (e !== s)
@@ -7913,19 +7913,19 @@ const gf = (n) => {
7913
7913
  console.error("Failed to update platform preference:", e2);
7914
7914
  }
7915
7915
  })(t), children: t }, t)) }) })] });
7916
- }, xf = ({ className: n, label: o2 = "Pinned position", ...i }) => jsx(T, { className: E("io-block-list-gap", n), ...i, children: jsxs("div", { className: "flex jc-between ai-center", children: [jsx("label", { className: "io-text-clipper", children: o2 }), jsx(kf, { className: n, prefKey: _a, options: ["Left", "Right"], ...i })] }) }), Sf = ({ align: t = "right", label: n = 'Hide "Favorites"', ...o2 }) => jsx(wf, { align: t, label: n, prefKey: Ka, ...o2 }), Cf = ({ align: t = "right", label: n = "Allow docking to top", ...o2 }) => jsx(wf, { align: t, label: n, prefKey: ja, ...o2 }), Nf = ({ align: t = "right", label: n = "Always on top", ...o2 }) => jsx(wf, { align: t, label: n, prefKey: za, ...o2 }), Ef = ({ align: t = "right", label: n = "Claim occupied space", ...o2 }) => jsx(wf, { align: t, label: n, prefKey: Ha, ...o2 }), If = ({ align: t = "right", label: n = "Show the extended Launchpad area", ...o2 }) => jsx(wf, { align: t, label: n, prefKey: Wa, ...o2 }), Pf = ({ align: t = "right", label: n = "Hide labels", ...o2 }) => {
7916
+ }, xf = ({ className: n, label: o2 = "Pinned position", ...i }) => jsx(T, { className: E("io-block-list-gap", n), ...i, children: jsxs("div", { className: "flex jc-between ai-center", children: [jsx("label", { className: "io-text-clipper", children: o2 }), jsx(kf, { className: n, prefKey: _a, options: ["Left", "Right"], ...i })] }) }), Cf = ({ align: t = "right", label: n = 'Hide "Favorites"', ...o2 }) => jsx(bf, { align: t, label: n, prefKey: Ka, ...o2 }), Sf = ({ align: t = "right", label: n = "Allow docking to top", ...o2 }) => jsx(bf, { align: t, label: n, prefKey: ja, ...o2 }), Nf = ({ align: t = "right", label: n = "Always on top", ...o2 }) => jsx(bf, { align: t, label: n, prefKey: za, ...o2 }), Ef = ({ align: t = "right", label: n = "Claim occupied space", ...o2 }) => jsx(bf, { align: t, label: n, prefKey: Ha, ...o2 }), Pf = ({ align: t = "right", label: n = "Show the extended Launchpad area", ...o2 }) => jsx(bf, { align: t, label: n, prefKey: Wa, ...o2 }), If = ({ align: t = "right", label: n = "Hide labels", ...o2 }) => {
7917
7917
  const { value: i } = ks({ prefKey: Wa });
7918
- return jsx(wf, { align: t, label: n, prefKey: Va, disabled: !i, ...o2 });
7918
+ return jsx(bf, { align: t, label: n, prefKey: Va, disabled: !i, ...o2 });
7919
7919
  }, Af = ({ align: t = "right", label: n = 'Show "Favorites"', ...o2 }) => {
7920
7920
  const { value: i } = ks({ prefKey: Wa });
7921
- return jsx(wf, { align: t, label: n, prefKey: Ua, disabled: !i, ...o2 });
7921
+ return jsx(bf, { align: t, label: n, prefKey: Ua, disabled: !i, ...o2 });
7922
7922
  }, Of = ({ align: t = "right", label: n = 'Show "Recent"', ...o2 }) => {
7923
7923
  const { value: i } = ks({ prefKey: Wa });
7924
- return jsx(wf, { align: t, label: n, prefKey: Ga, disabled: !i, ...o2 });
7924
+ return jsx(bf, { align: t, label: n, prefKey: Ga, disabled: !i, ...o2 });
7925
7925
  }, Lf = ({ title: n = "Layouts", ...o2 }) => {
7926
7926
  const { LayoutsSaveCurrentOnExit: i, LayoutsShowDeletePrompt: r2, LayoutsShowUnsavedChangesPrompt: a } = Np();
7927
7927
  return jsxs(T, { title: n, ...o2, children: [jsx(i, {}), jsx(a, {}), jsx(r2, {})] });
7928
- }, Df = ({ align: t = "right", label: n = "Save current on exit", ...o2 }) => jsx(wf, { align: t, label: n, prefKey: Ja, ...o2 }), Tf = ({ align: t = "right", label: n = "Show prompt for unsaved changes", ...o2 }) => jsx(wf, { align: t, label: n, prefKey: Ya, "data-testid": "layouts-show-unsaved-changes-prompt-toggle-button", ...o2 }), Rf = ({ align: t = "right", label: n = "Show prompt for deleting", ...o2 }) => jsx(wf, { align: t, label: n, prefKey: Xa, "data-testid": "layouts-show-delete-prompt-toggle", ...o2 }), Bf = ({ title: t = "Downloads", ...n }) => {
7928
+ }, Df = ({ align: t = "right", label: n = "Save current on exit", ...o2 }) => jsx(bf, { align: t, label: n, prefKey: Ja, ...o2 }), Tf = ({ align: t = "right", label: n = "Show prompt for unsaved changes", ...o2 }) => jsx(bf, { align: t, label: n, prefKey: Ya, "data-testid": "layouts-show-unsaved-changes-prompt-toggle-button", ...o2 }), Rf = ({ align: t = "right", label: n = "Show prompt for deleting", ...o2 }) => jsx(bf, { align: t, label: n, prefKey: Xa, "data-testid": "layouts-show-delete-prompt-toggle", ...o2 }), Bf = ({ title: t = "Downloads", ...n }) => {
7929
7929
  const { DownloadsLocation: o2 } = Np();
7930
7930
  return jsx(T, { title: t, ...n, children: jsx(o2, {}) });
7931
7931
  };
@@ -7967,11 +7967,11 @@ function Wf({ className: t, icon: n = "pop-out", ...o2 }) {
7967
7967
  console.error("Failed to open Download Manager", e);
7968
7968
  });
7969
7969
  }, [i]);
7970
- return jsx(P, { className: E("io-dm-compact-mode-only", t), icon: n, variant: "circle", size: "32", onClick: r2, ...o2 });
7970
+ return jsx(I, { className: E("io-dm-compact-mode-only", t), icon: n, variant: "circle", size: "32", onClick: r2, ...o2 });
7971
7971
  }
7972
7972
  function Vf({ icon: t = "close", size: n = "32", variant: o2 = "circle", onClick: i, ...r2 }) {
7973
7973
  const a = useContext(IOConnectContext);
7974
- return jsx(P, { icon: t, size: n, variant: o2, onClick: (e) => {
7974
+ return jsx(I, { icon: t, size: n, variant: o2, onClick: (e) => {
7975
7975
  i ? i(e) : df.closeWindow(a).catch((e2) => {
7976
7976
  console.error("Failed to close window:", e2);
7977
7977
  });
@@ -7997,7 +7997,7 @@ function Gf({ className: t, ...n }) {
7997
7997
  }
7998
7998
  function qf({ className: n, icon: o2 = "download", text: i = "No downloads to display.", ...r2 }) {
7999
7999
  const a = E("io-dm-no-items", n);
8000
- return jsxs("div", { className: a, ...r2, children: [jsx(I, { variant: o2 }), jsx("p", { children: i })] });
8000
+ return jsxs("div", { className: a, ...r2, children: [jsx(P, { variant: o2 }), jsx("p", { children: i })] });
8001
8001
  }
8002
8002
  function Jf({ className: n, title: o2, children: i, ...r2 }) {
8003
8003
  const a = E("io-dm-item-group", n);
@@ -8015,12 +8015,12 @@ function Xf({ bytesReceived: t = 0, bytesTotal: n = 0, ...o2 }) {
8015
8015
  return jsx(Js, { value: i(), ...o2 });
8016
8016
  }
8017
8017
  function Qf({ className: n, itemID: o2, filename: i, state: r2, pauseResume: s, showInFolder: c, cancel: l, remove: u, ...d }) {
8018
- const f = E("io-dm-item-header", n), { pauseResumeItem: p, showItemInFolder: m, cancelItem: h, removeItem: g } = _f(), y = "progressing" === r2 || "paused" === r2, v = "interrupted" === r2 || "cancelled" === r2, w = y ? "Cancel Download" : "Remove Download", b2 = l ?? h, k = u ?? g, x = function(e, t, n2, o3) {
8018
+ const f = E("io-dm-item-header", n), { pauseResumeItem: p, showItemInFolder: m, cancelItem: h, removeItem: g } = _f(), y = "progressing" === r2 || "paused" === r2, v = "interrupted" === r2 || "cancelled" === r2, b = y ? "Cancel Download" : "Remove Download", w2 = l ?? h, k = u ?? g, x = function(e, t, n2, o3) {
8019
8019
  return "paused" === e || "progressing" === e ? { statusIcon: "paused" === e ? "play" : "pause", onStatusActionClick: () => n2(t) } : "completed" === e ? { statusIcon: "folder", onStatusActionClick: () => o3(t) } : null;
8020
- }(r2, o2, s ?? p, c ?? m), S2 = useCallback(() => {
8021
- y ? b2(o2) : k(o2);
8022
- }, [y, b2, o2, k]);
8023
- return jsxs("div", { className: f, ...d, children: [jsx(D, { text: i, style: { textDecoration: v ? "line-through" : "none" } }), jsxs(ae, { children: [x && jsx(P, { icon: x.statusIcon, iconSize: "12", onClick: x.onStatusActionClick, className: "io-dm-compact-mode-only" }), jsx(P, { icon: "close", iconSize: "12", title: w, onClick: S2 })] })] });
8020
+ }(r2, o2, s ?? p, c ?? m), C2 = useCallback(() => {
8021
+ y ? w2(o2) : k(o2);
8022
+ }, [y, w2, o2, k]);
8023
+ return jsxs("div", { className: f, ...d, children: [jsx(D, { text: i, style: { textDecoration: v ? "line-through" : "none" } }), jsxs(ae, { children: [x && jsx(I, { icon: x.statusIcon, iconSize: "12", onClick: x.onStatusActionClick, className: "io-dm-compact-mode-only" }), jsx(I, { icon: "close", iconSize: "12", title: b, onClick: C2 })] })] });
8024
8024
  }
8025
8025
  function Zf({ className: n, state: o2, url: i, bytesReceived: r2 = 0, bytesTotal: a = 0, speed: s = 0, timeRemaining: c = 0, ...l }) {
8026
8026
  const u = E("io-dm-item-body", n), d = (e) => {
@@ -8040,7 +8040,7 @@ function Zf({ className: n, state: o2, url: i, bytesReceived: r2 = 0, bytesTotal
8040
8040
  const ep = { success: "check-solid", warning: "exclamation-mark", critical: "exclamation-mark" };
8041
8041
  function tp({ className: n, variant: o2, text: i }) {
8042
8042
  const r2 = E("io-dm-item-status", `io-dm-item-status-${o2}`, n);
8043
- return jsxs("div", { className: r2, children: [o2 && jsx(I, { variant: ep[o2], className: "icon-severity", size: "10" }), i && jsx("p", { className: "io-text-smaller", children: i })] });
8043
+ return jsxs("div", { className: r2, children: [o2 && jsx(P, { variant: ep[o2], className: "icon-severity", size: "10" }), i && jsx("p", { className: "io-text-smaller", children: i })] });
8044
8044
  }
8045
8045
  function np({ className: o2, itemID: i, state: r2, pauseResume: s, showInFolder: c, cancel: l, ...u }) {
8046
8046
  const d = E("io-dm-item-footer", o2), { pauseResumeItem: f, showItemInFolder: p, cancelItem: m } = _f(), h = useCallback((e) => {
@@ -8069,7 +8069,7 @@ function np({ className: o2, itemID: i, state: r2, pauseResume: s, showInFolder:
8069
8069
  }
8070
8070
  function op({ className: n, title: o2 = "Download Settings", ...i }) {
8071
8071
  const r2 = E("io-dm-settings-panel", n), { configuration: { downloadFolder: a }, hideSettings: s, setDownloadLocation: c, setDownloadLocationWithDialog: l, isDownloadLocationDialogVisible: u, downloadLocationList: d } = _f();
8072
- return jsxs(Gs, { className: r2, ...i, children: [jsxs(Gs.Header, { children: [jsx(Gs.Header.Title, { size: "large", text: o2, tag: "h1" }), jsx(Gs.Header.ButtonGroup, { children: jsx(P, { className: "non-draggable", variant: "circle", icon: "close", size: "32", onClick: () => {
8072
+ return jsxs(Gs, { className: r2, ...i, children: [jsxs(Gs.Header, { children: [jsx(Gs.Header.Title, { size: "large", text: o2, tag: "h1" }), jsx(Gs.Header.ButtonGroup, { children: jsx(I, { className: "non-draggable", variant: "circle", icon: "close", size: "32", onClick: () => {
8073
8073
  s();
8074
8074
  }, disabled: u }) })] }), jsx(Gs.Body, { children: jsxs(ae, { children: [jsxs(re, { variant: "light", disabled: u, children: [jsx(re.Button, { children: jsx("span", { className: "io-dm-settings-panel-download-location", children: a ?? d[0] }) }), d.length > 1 && jsx(re.Content, { children: jsx(re.List, { children: d.map((t, n2) => !t || 0 === n2 || n2 > 3 ? null : jsx(re.Item, { onClick: () => {
8075
8075
  c(t);
@@ -8086,7 +8086,7 @@ const sp = () => useContext(rp);
8086
8086
  const up = ({ className: n, label: o2 = "Location", ...i }) => {
8087
8087
  const { configuration: { downloadFolder: r2 }, setDownloadLocationWithDialog: a, isDownloadLocationDialogVisible: s, downloadLocationList: c } = _f();
8088
8088
  return jsxs(T, { className: E("io-preferences-download-section", n), ...i, children: [jsxs("div", { className: "flex jc-between ai-center", children: [jsx("label", { className: "io-text-clipper", children: o2 }), jsx($, { text: "Change", onClick: a, disabled: s })] }), jsx("p", { children: r2 ?? (c == null ? void 0 : c[0]) ?? "Not set" })] });
8089
- }, dp = ({ align: t = "right", label: n = "Ask where to save each file before downloading", ...o2 }) => jsx(wf, { align: t, label: n, prefKey: Qa, ...o2 }), fp = ({ title: n = "System", ...o2 }) => {
8089
+ }, dp = ({ align: t = "right", label: n = "Ask where to save each file before downloading", ...o2 }) => jsx(bf, { align: t, label: n, prefKey: Qa, ...o2 }), fp = ({ title: n = "System", ...o2 }) => {
8090
8090
  const { SystemRestartSection: i, SystemShutdownSection: r2 } = Np();
8091
8091
  return jsxs(T, { title: n, ...o2, children: [jsx(i, {}), jsx(r2, {})] });
8092
8092
  }, pp = "T42.GD.Execute", mp = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], hp = (e, t) => e in t;
@@ -8153,36 +8153,32 @@ function vp(e, t) {
8153
8153
  const n = "restart" === e ? "_system_scheduleRestart" : "_system_scheduleShutdown";
8154
8154
  return t ? `${n}${t}` : n;
8155
8155
  }
8156
- function wp({ className: n, variant: o2, ...i }) {
8156
+ function bp({ className: n, variant: o2, ...i }) {
8157
8157
  const r2 = E("io-block-list-gap", o2, n), { enabled: a, time: s, frequency: c, day: l, setEnabled: u, setTime: d, setFrequency: f, setDay: p } = yp(o2);
8158
8158
  return jsxs(T, { className: r2, ...i, children: [jsx(sf, { label: `Schedule ${o2}`, align: "right", onChange: (e) => u(e.target.checked), checked: a }), jsxs("div", { className: "scheduler-controls", children: [jsx("div", { className: "io-control-input io-control-leading-icon direction-up", children: jsx("input", { type: "time", className: "io-input", value: s, onChange: (e) => d(e.target.value) }) }), jsxs(ei, { text: c.charAt(0).toUpperCase() + c.slice(1), icon: "chevron-down", iconRight: true, children: [jsx(ei.Item, { onClick: () => f("daily"), children: "Daily" }), jsx(ei.Item, { onClick: () => f("weekly"), children: "Weekly" })] }), "weekly" === c && jsx(ei, { text: l, icon: "chevron-down", iconRight: true, children: mp.map((t) => jsx(ei.Item, { onClick: () => p(t), children: t }, t)) })] })] });
8159
8159
  }
8160
- function bp({ className: t, ...n }) {
8161
- return jsx(wp, { ...n, className: t, variant: "restart" });
8160
+ function wp({ className: t, ...n }) {
8161
+ return jsx(bp, { ...n, className: t, variant: "restart" });
8162
8162
  }
8163
8163
  function kp({ className: t, ...n }) {
8164
- return jsx(wp, { ...n, className: t, variant: "shutdown" });
8164
+ return jsx(bp, { ...n, className: t, variant: "shutdown" });
8165
8165
  }
8166
8166
  const xp = { Body: gf, General: yf, Theme: vf, Launchpad: ({ title: n = "Launchpad", ...o2 }) => {
8167
8167
  const { MinimizeToTray: i, PinnedPosition: r2, HideFavoritesFromLaunchpad: a } = Np();
8168
8168
  return jsxs(T, { title: n, ...o2, children: [jsx(i, {}), jsx(r2, {}), jsx(a, {})] });
8169
- }, MinimizeToTray: bf, PinnedPosition: xf, HideFavoritesFromLaunchpad: Sf, Docking: ({ title: n = "Docking", ...o2 }) => {
8170
- const { AllowDocking: i, DockedAlwaysOnTop: r2, DockedClaimsSpace: a } = Np();
8171
- return jsxs(T, { title: n, ...o2, children: [jsx(i, {}), jsx(r2, {}), jsx(a, {})] });
8172
- }, AllowDocking: Cf, DockedAlwaysOnTop: Nf, DockedClaimsSpace: Ef, ExtendedArea: ({ title: n = "Extended Area", ...o2 }) => {
8173
- const { ShowExtendedArea: i, HideLabelsInExtendedArea: r2, ShowFavoritesInExtendedArea: a, ShowRecentAppsInExtendedArea: s } = Np();
8174
- return jsxs(T, { title: n, ...o2, children: [jsx(i, {}), jsx(r2, {}), jsx(a, {}), jsx(s, {})] });
8175
- }, ShowExtendedArea: If, HideLabelsInExtendedArea: Pf, ShowFavoritesInExtendedArea: Af, ShowRecentAppsInExtendedArea: Of, Layouts: Lf, LayoutsSaveCurrentOnExit: Df, LayoutsShowUnsavedChangesPrompt: Tf, LayoutsShowDeletePrompt: Rf, Downloads: Bf, DownloadsLocation: up, DownloadsAskForEachDownload: dp, System: fp, SystemRestartSection: bp, SystemShutdownSection: kp }, Sp = createContext(xp), Cp = memo(({ children: t, components: n }) => {
8169
+ }, MinimizeToTray: wf, PinnedPosition: xf, HideFavoritesFromLaunchpad: Cf, Docking: ({ className: n, title: o2 = "Docking", ...i }) => {
8170
+ const r2 = E("io-preferences-panel-docking", n), { AllowDocking: a, DockedAlwaysOnTop: s, DockedClaimsSpace: c } = Np();
8171
+ return jsxs(T, { className: r2, title: o2, ...i, children: [jsx(a, {}), jsx(s, {}), jsx(c, {})] });
8172
+ }, AllowDocking: Sf, DockedAlwaysOnTop: Nf, DockedClaimsSpace: Ef, ExtendedArea: ({ className: n, title: o2 = "Extended Area", ...i }) => {
8173
+ const r2 = E("io-preferences-panel-extended-area", n), { ShowExtendedArea: a, HideLabelsInExtendedArea: s, ShowFavoritesInExtendedArea: c, ShowRecentAppsInExtendedArea: l } = Np();
8174
+ return jsxs(T, { className: r2, title: o2, ...i, children: [jsx(a, {}), jsx(s, {}), jsx(c, {}), jsx(l, {})] });
8175
+ }, ShowExtendedArea: Pf, HideLabelsInExtendedArea: If, ShowFavoritesInExtendedArea: Af, ShowRecentAppsInExtendedArea: Of, Layouts: Lf, LayoutsSaveCurrentOnExit: Df, LayoutsShowUnsavedChangesPrompt: Tf, LayoutsShowDeletePrompt: Rf, Downloads: Bf, DownloadsLocation: up, DownloadsAskForEachDownload: dp, System: fp, SystemRestartSection: wp, SystemShutdownSection: kp }, Cp = createContext(xp), Sp = memo(({ children: t, components: n }) => {
8176
8176
  const o2 = useMemo(() => ({ ...xp, ...n }), [n]);
8177
- return jsx(Sp.Provider, { value: o2, children: t });
8177
+ return jsx(Cp.Provider, { value: o2, children: t });
8178
8178
  });
8179
- Cp.displayName = "PreferencesPanelComponentsStoreProvider";
8180
- const Np = () => useContext(Sp);
8181
- function Ap({ className: n, title: o2 = "General", ...i }) {
8182
- const r2 = E("io-notifications-settings-panel-general", n), { AllowNotifications: a, AllowNotificationToasts: s, ShowNotificationBadge: c, CloseNotificationOnClick: l, PanelAutoHide: u, HideToastsAfter: d } = mm(), f = Ud();
8183
- return jsx("div", { className: r2, ...i, children: jsxs(T, { title: o2, children: [f && jsx(a, {}), f && jsx(s, {}), jsx(c, {}), f && jsx(u, {}), f && jsx(l, {}), f && jsx(d, {})] }) });
8184
- }
8185
- function Op(e) {
8179
+ Sp.displayName = "PreferencesPanelComponentsStoreProvider";
8180
+ const Np = () => useContext(Cp);
8181
+ function Ap(e) {
8186
8182
  if (e && e.errorHandling && "function" != typeof e.errorHandling && "log" !== e.errorHandling && "silent" !== e.errorHandling && "throw" !== e.errorHandling)
8187
8183
  throw new Error('Invalid options passed to createRegistry. Prop errorHandling should be ["log" | "silent" | "throw" | (err) => void], but ' + typeof e.errorHandling + " was passed");
8188
8184
  var t = e && "function" == typeof e.errorHandling && e.errorHandling, n = {};
@@ -8243,9 +8239,9 @@ function Op(e) {
8243
8239
  n[e2] && delete n[e2];
8244
8240
  } };
8245
8241
  }
8246
- Op.default = Op;
8247
- S(Op);
8248
- function Tp(e) {
8242
+ Ap.default = Ap;
8243
+ C(Ap);
8244
+ function Dp(e) {
8249
8245
  const t = useContext(IOConnectContext), n = Ud(), [o2, i] = useState([]), [r2, s] = useState(0), d = "Platform", p = useCallback((e2 = "asc") => {
8250
8246
  if (null === n)
8251
8247
  return [];
@@ -8310,7 +8306,7 @@ function Tp(e) {
8310
8306
  return s(a), c;
8311
8307
  }, [e, o2]), allowedApps: r2, sortedAppsAsc: m, sortedAppsDesc: h, sortAppsAlphabetically: p };
8312
8308
  }
8313
- const _p = createContext({ allApps: [], settings: {}, configuration: {}, notifications: [], notificationsCount: 0, onClose: () => {
8309
+ const $p = createContext({ allApps: [], settings: {}, configuration: {}, notifications: [], notificationsCount: 0, onClose: () => {
8314
8310
  }, allApplications: 0, clearAll: () => {
8315
8311
  }, showPanel: () => {
8316
8312
  }, hidePanel: () => {
@@ -8326,33 +8322,37 @@ const _p = createContext({ allApps: [], settings: {}, configuration: {}, notific
8326
8322
  }, setState: () => {
8327
8323
  }, setStates: () => {
8328
8324
  }, setCount: () => {
8329
- } }), jp = () => useContext(_p);
8325
+ } }), _p = () => useContext($p);
8326
+ function jp({ className: n, title: o2 = "General", ...i }) {
8327
+ const r2 = E("io-notifications-settings-panel-general", n), { AllowNotifications: a, AllowNotificationToasts: s, ShowNotificationBadge: c, CloseNotificationOnClick: l, PanelAutoHide: u, HideToastsAfter: d } = mm(), f = Ud();
8328
+ return jsx("div", { className: r2, ...i, children: jsxs(T, { title: o2, children: [f && jsx(a, {}), f && jsx(s, {}), jsx(c, {}), f && jsx(u, {}), f && jsx(l, {}), f && jsx(d, {})] }) });
8329
+ }
8330
8330
  function zp({ label: t = "Allow notifications", align: n = "right", ...o2 }) {
8331
- const { settings: i, saveSetting: r2 } = jp(), s = Ud(), c = useCallback((e) => {
8331
+ const { settings: i, saveSetting: r2 } = _p(), s = Ud(), c = useCallback((e) => {
8332
8332
  r2({ enabledNotifications: e.target.checked });
8333
8333
  }, [r2]);
8334
8334
  return s ? jsx(sf, { label: t, align: n, onChange: c, checked: i.enabledNotifications ?? false, ...o2 }) : null;
8335
8335
  }
8336
8336
  function Hp({ label: t = "Allow notification toasts", align: n = "right", ...o2 }) {
8337
- const { settings: i, saveSetting: r2 } = jp(), s = Ud(), c = s && !i.enabledNotifications, l = useCallback((e) => {
8337
+ const { settings: i, saveSetting: r2 } = _p(), s = Ud(), c = s && !i.enabledNotifications, l = useCallback((e) => {
8338
8338
  r2({ enabledToasts: e.target.checked });
8339
8339
  }, [r2]);
8340
8340
  return s ? jsx(sf, { label: t, align: n, onChange: l, checked: i.enabledToasts ?? false, disabled: c, ...o2 }) : null;
8341
8341
  }
8342
8342
  function Wp({ label: t = "Show notification badge", align: n = "right", ...o2 }) {
8343
- const { settings: i, saveSetting: r2 } = jp(), s = Ud() && !i.enabledNotifications, c = useCallback((e) => {
8343
+ const { settings: i, saveSetting: r2 } = _p(), s = Ud() && !i.enabledNotifications, c = useCallback((e) => {
8344
8344
  r2({ showNotificationBadge: e.target.checked });
8345
8345
  }, [r2]);
8346
8346
  return jsx(sf, { label: t, align: n, onChange: c, checked: i.showNotificationBadge ?? false, disabled: s, ...o2 });
8347
8347
  }
8348
8348
  function Vp({ label: t = "Close notification on click", align: n = "right", ...o2 }) {
8349
- const { settings: i, saveSetting: r2 } = jp(), s = Ud(), c = s && !i.enabledNotifications, l = useCallback((e) => {
8349
+ const { settings: i, saveSetting: r2 } = _p(), s = Ud(), c = s && !i.enabledNotifications, l = useCallback((e) => {
8350
8350
  r2({ closeNotificationOnClick: e.target.checked });
8351
8351
  }, [r2]);
8352
8352
  return s ? jsx(sf, { label: t, align: n, onChange: l, checked: i.closeNotificationOnClick ?? false, disabled: c, ...o2 }) : null;
8353
8353
  }
8354
8354
  function Up({ label: t = "Auto hide panel", align: n = "right", ...o2 }) {
8355
- const { settings: i, saveSetting: r2 } = jp(), s = Ud(), c = useCallback((e) => {
8355
+ const { settings: i, saveSetting: r2 } = _p(), s = Ud(), c = useCallback((e) => {
8356
8356
  r2({ autoHidePanel: e.target.checked });
8357
8357
  }, [r2]);
8358
8358
  return s ? jsx(sf, { label: t, align: n, onChange: c, checked: i.autoHidePanel ?? false, ...o2 }) : null;
@@ -8362,7 +8362,7 @@ const Kp = (e, t) => e ? `${e} ${t}${1 !== e ? "s" : ""}` : "", Gp = (e) => {
8362
8362
  return o2 + (o2 && i ? " " : "") + i;
8363
8363
  };
8364
8364
  function qp({ className: n, title: o2 = "Hide toasts after", items: i = [15, 30, 45, 60], ...r2 }) {
8365
- const s = E("flex", "jc-between", "ai-center", n), { settings: c, saveSetting: l } = jp(), u = Ud(), d = u && !c.enabledNotifications, f = useCallback((e = 15e3) => {
8365
+ const s = E("flex", "jc-between", "ai-center", n), { settings: c, saveSetting: l } = _p(), u = Ud(), d = u && !c.enabledNotifications, f = useCallback((e = 15e3) => {
8366
8366
  c.toastExpiry !== e && l({ toastExpiry: 1e3 * e });
8367
8367
  }, [c.toastExpiry, l]);
8368
8368
  return u ? jsxs("div", { className: s, ...r2, children: [jsx("div", { className: "io-text-clipper " + (d ? "io-text-disabled" : ""), children: jsx("span", { children: o2 }) }), jsxs(re, { variant: "light", disabled: d, children: [jsx(re.Button, { text: Gp((c.toastExpiry ?? 0) / 1e3) }), jsx(re.Content, { children: jsx(re.List, { variant: "single", children: i.map((t) => jsx(re.Item, { onClick: () => {
@@ -8374,14 +8374,14 @@ function Jp({ className: n, title: o2 = "Stacking", ...i }) {
8374
8374
  return Ud() ? jsx("div", { className: r2, ...i, children: jsxs(T, { title: o2, children: [jsx(a, {}), jsx(s, {})] }) }) : null;
8375
8375
  }
8376
8376
  function Yp({ label: t = "Allow toast stacking", align: n = "right", ...o2 }) {
8377
- const { settings: i, saveSetting: r2 } = jp(), s = Ud(), c = s && !i.enabledNotifications, l = useCallback((e) => {
8377
+ const { settings: i, saveSetting: r2 } = _p(), s = Ud(), c = s && !i.enabledNotifications, l = useCallback((e) => {
8378
8378
  r2({ toastStacking: e.target.checked });
8379
8379
  }, [r2]);
8380
8380
  return s ? jsx(sf, { label: t, align: n, onChange: l, checked: i.toastStacking ?? false, disabled: c, ...o2 }) : null;
8381
8381
  }
8382
8382
  const Xp = { application: "Application", severity: "Priority" }, Qp = Object.fromEntries(Object.entries(Xp).map(([e, t]) => [t, e]));
8383
8383
  function Zp({ className: n, title: o2 = "Group by", ...i }) {
8384
- const r2 = E("flex", "jc-between", "ai-center", n), { settings: s, saveSetting: c } = jp(), l = Ud(), u = l && !s.enabledNotifications, d = useCallback((e = "severity") => {
8384
+ const r2 = E("flex", "jc-between", "ai-center", n), { settings: s, saveSetting: c } = _p(), l = Ud(), u = l && !s.enabledNotifications, d = useCallback((e = "severity") => {
8385
8385
  s.stackBy !== e && c({ stackBy: e.toLowerCase() });
8386
8386
  }, [s.stackBy, c]);
8387
8387
  if (!l)
@@ -8398,20 +8398,20 @@ function em({ className: n, title: o2 = "Placement", ...i }) {
8398
8398
  }
8399
8399
  const tm = (e) => e.replace(/(^|-)\w/g, (e2) => e2.toUpperCase().replace("-", " "));
8400
8400
  function nm({ className: n, title: o2 = "Panel position", ...i }) {
8401
- var _a2, _b;
8402
- const r2 = E("flex", "jc-between", "ai-center", n), { settings: s, saveSetting: c } = jp(), l = Ud(), u = useCallback((e) => {
8401
+ var _a2, _b2;
8402
+ const r2 = E("flex", "jc-between", "ai-center", n), { settings: s, saveSetting: c } = _p(), l = Ud(), u = useCallback((e) => {
8403
8403
  var _a3;
8404
8404
  e || (e = "right"), ((_a3 = s.placement) == null ? void 0 : _a3.panel) !== e && c({ placement: { ...s.placement, panel: e.toLowerCase() } });
8405
8405
  }, [s.placement, c]);
8406
8406
  if (!l)
8407
8407
  return null;
8408
- return jsxs("div", { className: r2, ...i, children: [jsx("div", { className: "io-text-clipper", children: jsx("span", { children: o2 }) }), jsxs(re, { variant: "light", children: [jsx(re.Button, { text: ((_a2 = s.placement) == null ? void 0 : _a2.panel) ? tm((_b = s.placement) == null ? void 0 : _b.panel) : "Right" }), jsx(re.Content, { children: jsx(re.List, { variant: "single", children: ["Right", "Left"].map((t) => jsx(re.Item, { onClick: () => {
8408
+ return jsxs("div", { className: r2, ...i, children: [jsx("div", { className: "io-text-clipper", children: jsx("span", { children: o2 }) }), jsxs(re, { variant: "light", children: [jsx(re.Button, { text: ((_a2 = s.placement) == null ? void 0 : _a2.panel) ? tm((_b2 = s.placement) == null ? void 0 : _b2.panel) : "Right" }), jsx(re.Content, { children: jsx(re.List, { variant: "single", children: ["Right", "Left"].map((t) => jsx(re.Item, { onClick: () => {
8409
8409
  u(t);
8410
8410
  }, children: t }, t)) }) })] })] });
8411
8411
  }
8412
8412
  function om({ className: n, title: o2 = "Toasts position", ...i }) {
8413
- var _a2, _b;
8414
- const r2 = E("flex", "jc-between", "ai-center", n), { settings: s, saveSetting: c } = jp(), l = Ud(), u = useCallback((e) => {
8413
+ var _a2, _b2;
8414
+ const r2 = E("flex", "jc-between", "ai-center", n), { settings: s, saveSetting: c } = _p(), l = Ud(), u = useCallback((e) => {
8415
8415
  var _a3;
8416
8416
  if (e || (e = "bottom-right"), ((_a3 = s.placement) == null ? void 0 : _a3.toasts) === e)
8417
8417
  return;
@@ -8420,64 +8420,64 @@ function om({ className: n, title: o2 = "Toasts position", ...i }) {
8420
8420
  }, [s.placement, c]);
8421
8421
  if (!l)
8422
8422
  return null;
8423
- return jsxs("div", { className: r2, ...i, children: [jsx("div", { className: "io-text-clipper", children: jsx("span", { children: o2 }) }), jsxs(re, { variant: "light", children: [jsx(re.Button, { text: ((_a2 = s.placement) == null ? void 0 : _a2.toasts) ? tm((_b = s.placement) == null ? void 0 : _b.toasts) : "Bottom Right" }), jsx(re.Content, { children: jsx(re.List, { variant: "single", children: ["Top Right", "Top Left", "Bottom Right", "Bottom Left"].map((t) => jsx(re.Item, { onClick: () => {
8423
+ return jsxs("div", { className: r2, ...i, children: [jsx("div", { className: "io-text-clipper", children: jsx("span", { children: o2 }) }), jsxs(re, { variant: "light", children: [jsx(re.Button, { text: ((_a2 = s.placement) == null ? void 0 : _a2.toasts) ? tm((_b2 = s.placement) == null ? void 0 : _b2.toasts) : "Bottom Right" }), jsx(re.Content, { children: jsx(re.List, { variant: "single", children: ["Top Right", "Top Left", "Bottom Right", "Bottom Left"].map((t) => jsx(re.Item, { onClick: () => {
8424
8424
  u(t);
8425
8425
  }, children: t }, t)) }) })] })] });
8426
8426
  }
8427
8427
  function im({ className: t, title: n = "Snooze", ...o2 }) {
8428
8428
  var _a2;
8429
- const i = E("io-notifications-settings-panel-snooze", t), { SnoozeDuration: r2 } = mm(), { settings: a } = jp();
8429
+ const i = E("io-notifications-settings-panel-snooze", t), { SnoozeDuration: r2 } = mm(), { settings: a } = _p();
8430
8430
  return Ud() && ((_a2 = a.snooze) == null ? void 0 : _a2.enabled) ? jsx("div", { className: i, ...o2, children: jsx(T, { title: n, children: jsx(r2, {}) }) }) : null;
8431
8431
  }
8432
8432
  function rm({ className: n, title: o2 = "Default duration", items: i = [60, 120, 180, 300], ...r2 }) {
8433
- var _a2, _b;
8434
- const s = E("flex", "jc-between", "ai-center", n), { settings: c, saveSetting: l } = jp(), u = Ud(), d = u && !c.enabledNotifications, f = useCallback((e = 6e4) => {
8433
+ var _a2, _b2;
8434
+ const s = E("flex", "jc-between", "ai-center", n), { settings: c, saveSetting: l } = _p(), u = Ud(), d = u && !c.enabledNotifications, f = useCallback((e = 6e4) => {
8435
8435
  var _a3;
8436
8436
  c.snooze && ((_a3 = c.snooze) == null ? void 0 : _a3.duration) !== e && l({ snooze: { ...c.snooze, duration: 1e3 * e } });
8437
8437
  }, [c.snooze, l]);
8438
- return u && ((_a2 = c.snooze) == null ? void 0 : _a2.enabled) ? jsxs("div", { className: s, ...r2, children: [jsx("div", { className: E("io-text-clipper", { "io-text-disabled": d }), children: jsx("span", { children: o2 }) }), jsxs(re, { variant: "light", disabled: d, children: [jsx(re.Button, { text: Gp((((_b = c.snooze) == null ? void 0 : _b.duration) ?? 0) / 1e3) }), jsx(re.Content, { children: jsx(re.List, { variant: "single", children: i.map((t) => jsx(re.Item, { onClick: () => {
8438
+ return u && ((_a2 = c.snooze) == null ? void 0 : _a2.enabled) ? jsxs("div", { className: s, ...r2, children: [jsx("div", { className: E("io-text-clipper", { "io-text-disabled": d }), children: jsx("span", { children: o2 }) }), jsxs(re, { variant: "light", disabled: d, children: [jsx(re.Button, { text: Gp((((_b2 = c.snooze) == null ? void 0 : _b2.duration) ?? 0) / 1e3) }), jsx(re.Content, { children: jsx(re.List, { variant: "single", children: i.map((t) => jsx(re.Item, { onClick: () => {
8439
8439
  f(t);
8440
8440
  }, children: Gp(t) }, t)) }) })] })] }) : null;
8441
8441
  }
8442
8442
  function am({ className: n, title: o2, ...i }) {
8443
- const r2 = E("io-notifications-settings-panel-subscriptions", n), { SubscribeAll: a, SubscribeApp: s, SubscribeMuteAll: c, SubscribeMuteApp: l } = mm(), { sortAppsAlphabetically: u } = Tp(), d = Ud(), f = u(), p = "io-notifications-subscriptions-grid " + (d ? "with-three-columns" : "with-two-columns");
8443
+ const r2 = E("io-notifications-settings-panel-subscriptions", n), { SubscribeAll: a, SubscribeApp: s, SubscribeMuteAll: c, SubscribeMuteApp: l } = mm(), { sortAppsAlphabetically: u } = Dp(), d = Ud(), f = u(), p = "io-notifications-subscriptions-grid " + (d ? "with-three-columns" : "with-two-columns");
8444
8444
  return jsx("div", { className: r2, ...i, children: jsxs(T, { title: o2 ?? (d ? "Subscribe & Mute" : "Subscribe"), children: [jsxs("div", { className: p, children: [jsx("p", { className: "io-text-section", children: "Sources" }), jsx("p", { className: "io-text-section", children: "Subscribe" }), d && jsx("p", { className: "io-text-section", children: "Mute" })] }), jsxs("div", { className: p, children: [jsx("p", { children: "All Sources" }), jsx(a, { label: "" }), d && jsx(c, { label: "" })] }), f.map((n2) => {
8445
8445
  var _a2;
8446
8446
  return !n2 || n2.hidden || ((_a2 = n2 == null ? void 0 : n2.userProperties) == null ? void 0 : _a2.hidden) ? null : jsxs("div", { className: p, children: [jsx("p", { children: n2.title ?? n2.name }), jsx(s, { app: n2, label: "" }), d && jsx(l, { app: n2, label: "" })] }, n2.name);
8447
8447
  })] }) });
8448
8448
  }
8449
8449
  function sm({ label: t = "All apps", align: n = "right", ...o2 }) {
8450
- var _a2, _b, _c2, _d2;
8451
- const { settings: i, configuration: r2, saveAllFilter: s } = jp(), c = Ud() && !i.enabledNotifications, l = useCallback((e) => {
8450
+ var _a2, _b2, _c2, _d2;
8451
+ const { settings: i, configuration: r2, saveAllFilter: s } = _p(), c = Ud() && !i.enabledNotifications, l = useCallback((e) => {
8452
8452
  s({ subscribe: e.target.checked });
8453
8453
  }, [s]);
8454
- return jsx(sf, { align: n, label: t, onChange: l, checked: (((_b = (_a2 = r2.sourceFilter) == null ? void 0 : _a2.allowed) == null ? void 0 : _b.includes("*")) && 0 === ((_d2 = (_c2 = r2.sourceFilter) == null ? void 0 : _c2.blocked) == null ? void 0 : _d2.length)) ?? false, disabled: c, ...o2 });
8454
+ return jsx(sf, { align: n, label: t, onChange: l, checked: (((_b2 = (_a2 = r2.sourceFilter) == null ? void 0 : _a2.allowed) == null ? void 0 : _b2.includes("*")) && 0 === ((_d2 = (_c2 = r2.sourceFilter) == null ? void 0 : _c2.blocked) == null ? void 0 : _d2.length)) ?? false, disabled: c, ...o2 });
8455
8455
  }
8456
8456
  function cm({ label: t = "App", align: n = "right", app: o2, ...i }) {
8457
- var _a2, _b, _c2, _d2, _e2, _f2;
8458
- const { allApps: r2, settings: s, configuration: c, saveFilter: l } = jp(), u = Ud() && !s.enabledNotifications, d = useCallback((e, t2) => {
8459
- var _a3, _b2, _c3, _d3, _e3, _f3;
8457
+ var _a2, _b2, _c2, _d2, _e2, _f2;
8458
+ const { allApps: r2, settings: s, configuration: c, saveFilter: l } = _p(), u = Ud() && !s.enabledNotifications, d = useCallback((e, t2) => {
8459
+ var _a3, _b3, _c3, _d3, _e3, _f3;
8460
8460
  const n2 = { ...c.sourceFilter }, o3 = (_a3 = n2.allowed) == null ? void 0 : _a3.indexOf("*");
8461
- "number" == typeof o3 && o3 > -1 && ((_b2 = n2.allowed) == null ? void 0 : _b2.splice(o3, 1), r2.forEach((e2) => {
8461
+ "number" == typeof o3 && o3 > -1 && ((_b3 = n2.allowed) == null ? void 0 : _b3.splice(o3, 1), r2.forEach((e2) => {
8462
8462
  var _a4;
8463
8463
  e2.name !== t2.name && ((_a4 = n2.allowed) == null ? void 0 : _a4.push(e2.name));
8464
8464
  })), e ? (n2.allowed = [.../* @__PURE__ */ new Set([...n2.allowed ?? [], t2.name])], n2.blocked = (_c3 = n2.blocked) == null ? void 0 : _c3.filter((e2) => e2 !== t2.name)) : (n2.allowed = (_d3 = n2.allowed) == null ? void 0 : _d3.filter((e2) => e2 !== t2.name), n2.blocked = [.../* @__PURE__ */ new Set([...n2.blocked ?? [], t2.name])]), ((_e3 = n2.allowed) == null ? void 0 : _e3.length) && ((_f3 = n2.blocked) == null ? void 0 : _f3.includes("*")) && n2.blocked.splice(n2.blocked.indexOf("*"), 1), l(n2);
8465
8465
  }, [r2, c.sourceFilter, l]);
8466
- return jsx(sf, { id: `subscribe-${o2.name}`, label: t, align: n, onChange: (e) => d(e.target.checked, o2), checked: (((_b = (_a2 = c.sourceFilter) == null ? void 0 : _a2.allowed) == null ? void 0 : _b.includes("*")) && !((_d2 = (_c2 = c.sourceFilter) == null ? void 0 : _c2.blocked) == null ? void 0 : _d2.includes(o2.name)) || ((_f2 = (_e2 = c.sourceFilter) == null ? void 0 : _e2.allowed) == null ? void 0 : _f2.includes(o2.name))) ?? false, disabled: u, ...i });
8466
+ return jsx(sf, { id: `subscribe-${o2.name}`, label: t, align: n, onChange: (e) => d(e.target.checked, o2), checked: (((_b2 = (_a2 = c.sourceFilter) == null ? void 0 : _a2.allowed) == null ? void 0 : _b2.includes("*")) && !((_d2 = (_c2 = c.sourceFilter) == null ? void 0 : _c2.blocked) == null ? void 0 : _d2.includes(o2.name)) || ((_f2 = (_e2 = c.sourceFilter) == null ? void 0 : _e2.allowed) == null ? void 0 : _f2.includes(o2.name))) ?? false, disabled: u, ...i });
8467
8467
  }
8468
8468
  function lm({ label: t = "Mute all", align: n = "right", ...o2 }) {
8469
- var _a2, _b, _c2, _d2;
8470
- const { settings: i, configuration: r2, saveAllFilter: s } = jp(), c = Ud(), l = c && (!i.enabledNotifications || -1 === ((_b = (_a2 = r2.sourceFilter) == null ? void 0 : _a2.allowed) == null ? void 0 : _b.indexOf("*"))), u = useCallback((e) => {
8469
+ var _a2, _b2, _c2, _d2;
8470
+ const { settings: i, configuration: r2, saveAllFilter: s } = _p(), c = Ud(), l = c && (!i.enabledNotifications || -1 === ((_b2 = (_a2 = r2.sourceFilter) == null ? void 0 : _a2.allowed) == null ? void 0 : _b2.indexOf("*"))), u = useCallback((e) => {
8471
8471
  s({ mute: e.target.checked });
8472
8472
  }, [s]);
8473
8473
  return c ? jsx(sf, { align: n, label: t, onChange: u, checked: ((_d2 = (_c2 = r2.sourceFilter) == null ? void 0 : _c2.muted) == null ? void 0 : _d2.includes("*")) ?? false, disabled: l ?? false, ...o2 }) : null;
8474
8474
  }
8475
8475
  function um({ label: t = "App", align: n = "right", app: o2, ...i }) {
8476
- var _a2, _b, _c2, _d2, _e2, _f2, _g2, _h, _i2, _j, _k, _l2, _m, _n2, _o2, _p2;
8477
- const { allApps: r2, settings: s, configuration: c, saveFilter: l } = jp(), u = Ud(), d = u && (!s.enabledNotifications || ((_b = (_a2 = c.sourceFilter) == null ? void 0 : _a2.blocked) == null ? void 0 : _b.includes("*")) || ((_d2 = (_c2 = c.sourceFilter) == null ? void 0 : _c2.blocked) == null ? void 0 : _d2.includes(o2.name)) || 0 === ((_f2 = (_e2 = c.sourceFilter) == null ? void 0 : _e2.allowed) == null ? void 0 : _f2.length) || -1 === ((_h = (_g2 = c.sourceFilter) == null ? void 0 : _g2.allowed) == null ? void 0 : _h.indexOf(o2.name)) && -1 === ((_j = (_i2 = c.sourceFilter) == null ? void 0 : _i2.allowed) == null ? void 0 : _j.indexOf("*")) && 0 === ((_l2 = (_k = c.sourceFilter) == null ? void 0 : _k.blocked) == null ? void 0 : _l2.length)), f = useCallback((e, t2) => {
8478
- var _a3, _b2, _c3, _d3;
8476
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h, _i2, _j, _k, _l2, _m, _n2, _o2, _p2;
8477
+ const { allApps: r2, settings: s, configuration: c, saveFilter: l } = _p(), u = Ud(), d = u && (!s.enabledNotifications || ((_b2 = (_a2 = c.sourceFilter) == null ? void 0 : _a2.blocked) == null ? void 0 : _b2.includes("*")) || ((_d2 = (_c2 = c.sourceFilter) == null ? void 0 : _c2.blocked) == null ? void 0 : _d2.includes(o2.name)) || 0 === ((_f2 = (_e2 = c.sourceFilter) == null ? void 0 : _e2.allowed) == null ? void 0 : _f2.length) || -1 === ((_h = (_g2 = c.sourceFilter) == null ? void 0 : _g2.allowed) == null ? void 0 : _h.indexOf(o2.name)) && -1 === ((_j = (_i2 = c.sourceFilter) == null ? void 0 : _i2.allowed) == null ? void 0 : _j.indexOf("*")) && 0 === ((_l2 = (_k = c.sourceFilter) == null ? void 0 : _k.blocked) == null ? void 0 : _l2.length)), f = useCallback((e, t2) => {
8478
+ var _a3, _b3, _c3, _d3;
8479
8479
  const n2 = { ...c.sourceFilter }, o3 = (_a3 = n2 == null ? void 0 : n2.muted) == null ? void 0 : _a3.indexOf("*");
8480
- "number" == typeof o3 && o3 > -1 && ((_b2 = n2.muted) == null ? void 0 : _b2.splice(o3, 1), r2.forEach((e2) => {
8480
+ "number" == typeof o3 && o3 > -1 && ((_b3 = n2.muted) == null ? void 0 : _b3.splice(o3, 1), r2.forEach((e2) => {
8481
8481
  var _a4;
8482
8482
  e2.name === t2.name || e2.hidden || ((_a4 = n2.muted) == null ? void 0 : _a4.push(e2.name));
8483
8483
  })), e ? (_c3 = n2.muted) == null ? void 0 : _c3.push(t2.name) : n2.muted = (_d3 = n2.muted) == null ? void 0 : _d3.filter((e2) => e2 !== t2.name), l(n2);
@@ -8485,21 +8485,22 @@ function um({ label: t = "App", align: n = "right", app: o2, ...i }) {
8485
8485
  return !u || o2.hidden ? null : jsx(sf, { id: `mute-${o2.name}`, label: t, align: n, onChange: (e) => f(e.target.checked, o2), checked: (((_n2 = (_m = c.sourceFilter) == null ? void 0 : _m.muted) == null ? void 0 : _n2.includes("*")) || ((_p2 = (_o2 = c.sourceFilter) == null ? void 0 : _o2.muted) == null ? void 0 : _p2.includes(o2.name))) ?? false, disabled: d ?? false, ...i });
8486
8486
  }
8487
8487
  const dm = { Body: (n) => {
8488
- const { General: o2, Placement: i, Stacking: r2, Snooze: a, Subscriptions: s } = mm();
8489
- return jsxs(Od, { element: Us, elementProps: n, children: [jsx(o2, {}), jsx(r2, {}), jsx(i, {}), jsx(a, {}), jsx(s, {})] });
8490
- }, General: Ap, AllowNotifications: zp, AllowNotificationToasts: Hp, ShowNotificationBadge: Wp, CloseNotificationOnClick: Vp, PanelAutoHide: Up, HideToastsAfter: qp, Stacking: Jp, ToastStacking: Yp, ToastStackBy: Zp, Placement: em, PlacementPanel: nm, PlacementToasts: om, Snooze: im, SnoozeDuration: rm, Subscriptions: am, SubscribeAll: sm, SubscribeApp: cm, SubscribeMuteAll: lm, SubscribeMuteApp: um }, fm = createContext(dm), pm = memo(({ children: t, components: n }) => {
8488
+ var _a2;
8489
+ const { General: o2, Placement: i, Stacking: r2, Snooze: a, Subscriptions: s } = mm(), { settings: c } = _p(), l = [{ key: "general", Component: o2 }, { key: "stacking", Component: r2 }, { key: "placement", Component: i }, ...Ud() && !!((_a2 = c.snooze) == null ? void 0 : _a2.enabled) ? [{ key: "snooze", Component: a }] : [], { key: "subscriptions", Component: s }];
8490
+ return jsx(Od, { element: Us, elementProps: n, children: l.map(({ key: n2, Component: o3 }, i2) => jsxs(Fragment$1, { children: [jsx(o3, {}), i2 < l.length - 1 && jsx(J, {})] }, n2)) });
8491
+ }, General: jp, AllowNotifications: zp, AllowNotificationToasts: Hp, ShowNotificationBadge: Wp, CloseNotificationOnClick: Vp, PanelAutoHide: Up, HideToastsAfter: qp, Stacking: Jp, ToastStacking: Yp, ToastStackBy: Zp, Placement: em, PlacementPanel: nm, PlacementToasts: om, Snooze: im, SnoozeDuration: rm, Subscriptions: am, SubscribeAll: sm, SubscribeApp: cm, SubscribeMuteAll: lm, SubscribeMuteApp: um }, fm = createContext(dm), pm = memo(({ children: t, components: n }) => {
8491
8492
  const o2 = useMemo(() => ({ ...dm, ...n }), [n]);
8492
8493
  return jsx(fm.Provider, { value: o2, children: t });
8493
8494
  });
8494
8495
  pm.displayName = "NotificationsSettingsPanelComponentsStoreProvider";
8495
- const mm = () => useContext(fm), ym = ({ name: n, value: o2 }) => jsxs("div", { className: "io-profile-section-item", children: [jsx("div", { className: "io-profile-section-item-name", children: n }), jsx("div", { className: "io-profile-section-item-value", children: o2 })] }), vm = ({ className: n, items: o2, title: i }) => jsxs("div", { className: E("io-profile-section-body", n), children: [i && jsx(D, { className: "io-profile-section-title", text: i }), o2.map(({ name: t, value: n2 }) => jsx(ym, { name: t, value: n2 }, t))] }), wm = ({ className: n, items: o2, title: i }) => jsxs("section", { className: E("io-profile-section", n), children: [jsx(vm, { items: o2, title: i }), jsx(J, { className: "mt-8" })] }), bm = ({ title: t = "License", ...n }) => jsx(wm, { title: t, ...n }), km = ({ title: t = "Version", ...n }) => jsx(wm, { title: t, ...n }), xm = ({ title: t = "Plugins", ...n }) => jsx(wm, { title: t, ...n }), Sm = ({ className: n }) => {
8496
+ const mm = () => useContext(fm), ym = ({ name: n, value: o2 }) => jsxs("div", { className: "io-profile-section-item", children: [jsx("div", { className: "io-profile-section-item-name", children: n }), jsx("div", { className: "io-profile-section-item-value", children: o2 })] }), vm = ({ className: n, items: o2, title: i }) => jsxs("div", { className: E("io-profile-section-body", n), children: [i && jsx(D, { className: "io-profile-section-title", text: i }), o2.map(({ name: t, value: n2 }) => jsx(ym, { name: t, value: n2 }, t))] }), bm = ({ className: n, items: o2, title: i }) => jsxs("section", { className: E("io-profile-section", n), children: [jsx(vm, { items: o2, title: i }), jsx(J, { className: "mt-8" })] }), wm = ({ title: t = "License", ...n }) => jsx(bm, { title: t, ...n }), km = ({ title: t = "Version", ...n }) => jsx(bm, { title: t, ...n }), xm = ({ title: t = "Plugins", ...n }) => jsx(bm, { title: t, ...n }), Cm = ({ className: n }) => {
8496
8497
  const o2 = Or() ? "io.Connect Desktop" : "io.Connect Browser";
8497
8498
  return jsxs("div", { className: E("io-trademark-container", n), children: [jsx("h4", { className: "io-trademark-title", children: o2 }), jsxs("p", { className: "io-trademark-text", children: [o2, "® is a registered trademark of", " ", jsx("a", { href: "https://www.interop.io", rel: "noreferrer", target: "_blank", children: "Interop Inc©" }), " ", (/* @__PURE__ */ new Date()).getFullYear(), ". All rights reserved."] })] });
8498
- }, Cm = ({ avatarInitials: n = Or() ? "CD" : "CB", className: o2, items: i, onLogout: r2, title: a }) => jsxs("section", { className: E("io-profile-section", o2), children: [jsxs("div", { className: "io-user-details-container", children: [jsx("div", { className: "io-user-avatar", children: n }), jsx(vm, { className: "mt-12", items: i, title: a })] }), r2 && jsx($, { className: "io-log-out-button", onClick: r2, variant: "primary", icon: "arrow-right-from-bracket", children: "Log out" }), jsx(J, { className: "mt-8" })] }), Nm = { LicenseSection: bm, ProductsInfoSection: km, PluginsSection: xm, Trademark: Sm, UserSection: Cm }, Em = createContext(Nm), Im = memo(({ children: t, components: n }) => {
8499
+ }, Sm = ({ avatarInitials: n = Or() ? "CD" : "CB", className: o2, items: i, onLogout: r2, title: a }) => jsxs("section", { className: E("io-profile-section", o2), children: [jsxs("div", { className: "io-user-details-container", children: [jsx("div", { className: "io-user-avatar", children: n }), jsx(vm, { className: "mt-12", items: i, title: a })] }), r2 && jsx($, { className: "io-log-out-button", onClick: r2, variant: "primary", icon: "arrow-right-from-bracket", children: "Log out" }), jsx(J, { className: "mt-8" })] }), Nm = { LicenseSection: wm, ProductsInfoSection: km, PluginsSection: xm, Trademark: Cm, UserSection: Sm }, Em = createContext(Nm), Pm = memo(({ children: t, components: n }) => {
8499
8500
  const o2 = useMemo(() => ({ ...Nm, ...n }), [n]);
8500
8501
  return jsx(Em.Provider, { value: o2, children: t });
8501
8502
  });
8502
- Im.displayName = "ProfilePanelComponentsStoreProvider";
8503
+ Pm.displayName = "ProfilePanelComponentsStoreProvider";
8503
8504
  document.querySelector("#root") ?? document.body;
8504
8505
  createContext({ theme: "dark" });
8505
8506
  const Jm = "var(--io-neutrals-0)", Ym = "var(--io-neutrals-900)";
@@ -8531,7 +8532,7 @@ function Qm({ className: t, channel: n, ...o2 }) {
8531
8532
  return jsx("div", { className: i, style: { color: r2, backgroundColor: n.color }, "data-testid": `channel-selector-badge-${n.color}`, ...o2, children: jsx("span", { className: "io-channel-selector-badge-label", "data-testid": "channel-selector-label", children: n.label }) });
8532
8533
  }
8533
8534
  function Zm() {
8534
- return jsx(I, { variant: "check", "data-testid": "channel-selector-channel-selected" });
8535
+ return jsx(P, { variant: "check", "data-testid": "channel-selector-channel-selected" });
8535
8536
  }
8536
8537
  function eh({ channel: o2, handleChannelRestricted: i, lockedChannelRestriction: r2 }) {
8537
8538
  const a = (e, t) => (n) => {
@@ -8616,15 +8617,15 @@ function dh({ actionButtons: n, children: o2, onCompletion: i, size: r2, title:
8616
8617
  } }) })] });
8617
8618
  }
8618
8619
  function fh({ children: t }) {
8619
- return jsx("h3", { "data-testid": "io-dialog-heading", className: "io-dialog-template-heading", children: t });
8620
+ return jsx("h1", { "data-testid": "io-dialog-heading", className: "io-dialog-template-heading", children: t });
8620
8621
  }
8621
8622
  function ph({ onCompletion: n, size: o2, variables: i }) {
8622
8623
  const { actionButtons: r2, heading: a, text: s, title: c } = i;
8623
- return jsx(dh, { actionButtons: r2, onCompletion: n, size: o2, title: c, children: jsxs("div", { children: [jsx(fh, { children: a }), jsx("p", { "data-testid": "io-dialog-text", children: s })] }) });
8624
+ return jsx(dh, { actionButtons: r2, onCompletion: n, size: o2, title: c, children: jsx(fe.Body.Content, { children: jsxs("div", { children: [jsx(fh, { children: a }), jsx("p", { "data-testid": "io-dialog-text", children: s })] }) }) });
8624
8625
  }
8625
8626
  function mh({ onCompletion: n, size: o2, variables: i }) {
8626
8627
  const { actionButtons: r2, checkbox: s, heading: c, text: u, title: d } = i, [f, p] = useState(s.initialValue), m = useCallback(() => p((e) => !e), []), h = [{ id: s.id, type: "checkbox", checked: f }];
8627
- return jsxs(dh, { actionButtons: r2, onCompletion: (e) => n({ ...e, inputs: h }), size: o2, title: d, children: [jsxs("div", { children: [jsx(fh, { children: c }), jsx("p", { "data-testid": "io-dialog-text", children: u })] }), jsx(jd, { "data-testid": `io-dialog-checkbox-${s.id}`, checked: f, id: s.id, label: s.label, name: s.id, onChange: m })] });
8628
+ return jsxs(dh, { actionButtons: r2, onCompletion: (e) => n({ ...e, inputs: h }), size: o2, title: d, children: [jsx(fe.Body.Content, { children: jsxs("div", { children: [jsx(fh, { children: c }), jsx("p", { "data-testid": "io-dialog-text", children: u })] }) }), jsx(jd, { "data-testid": `io-dialog-checkbox-${s.id}`, checked: f, id: s.id, label: s.label, name: s.id, onChange: m })] });
8628
8629
  }
8629
8630
  function hh({ onCompletion: n, size: o2, variables: i }) {
8630
8631
  const { actionButtons: r2, heading: a, input: s, title: c } = i, [u, f] = useState(s.initialValue ?? ""), p = useRef(null), h = (g = u, !(y = s.validation) || new RegExp(y.regexPattern).test(g) ? null : { disabledButtonIds: y.disabledButtonIds, message: y.errorMessage });
@@ -8633,13 +8634,13 @@ function hh({ onCompletion: n, size: o2, variables: i }) {
8633
8634
  return useLayoutEffect(() => {
8634
8635
  var _a2;
8635
8636
  (_a2 = p.current) == null ? void 0 : _a2.select();
8636
- }, []), jsxs(dh, { actionButtons: r2, onCompletion: (e) => n({ ...e, inputs: v }), size: o2, title: c, validationErrors: h ? [h] : [], children: [jsx(fh, { children: a }), jsx($d, { "data-testid": `io-dialog-input-${s.id}`, ref: p, errorDataTestId: `io-dialog-input-${s.id}-error-message`, errorMessage: h == null ? void 0 : h.message, id: s.id, label: s.label, name: s.id, onChange: (e) => f(e.target.value), placeholder: s.placeholder, type: "text", value: u })] });
8637
+ }, []), jsxs(dh, { actionButtons: r2, onCompletion: (e) => n({ ...e, inputs: v }), size: o2, title: c, validationErrors: h ? [h] : [], children: [jsx(fe.Body.Content, { children: jsx(fh, { children: a }) }), jsx($d, { "data-testid": `io-dialog-input-${s.id}`, ref: p, errorDataTestId: `io-dialog-input-${s.id}-error-message`, errorMessage: h == null ? void 0 : h.message, id: s.id, label: s.label, name: s.id, onChange: (e) => f(e.target.value), placeholder: s.placeholder, type: "text", value: u })] });
8637
8638
  }
8638
8639
  const gh = ua({ width: ga, height: ga }), yh = ca().andThen((e) => ((e2, t) => {
8639
8640
  const n = typeof e2;
8640
8641
  return "function" === n ? ca() : ma(`The argument provided as "${t}" must be a function, received: ${n}`);
8641
- })(e, "onCompletion")), vh = ua({ autofocus: fa(sa()), id: ha, text: ha, variant: pa(la("default"), la("primary"), la("critical"), la("outline"), la("link")) }), wh = ua({ disabledButtonIds: da(ha), errorMessage: ha, regexPattern: ha }), bh = ua({ actionButtons: da(vh), heading: ra(), text: ra(), title: fa(ra()) }), kh = ua({ templateName: la("noInputsConfirmationDialog"), onCompletion: yh, size: fa(gh), variables: bh }), xh = ua({ actionButtons: da(vh), checkbox: ua({ id: ha, initialValue: fa(sa()), label: fa(ra()) }), heading: ra(), text: ra(), title: fa(ra()) }), Sh = ua({ templateName: la("singleCheckboxDialog"), onCompletion: yh, size: fa(gh), variables: xh }), Ch = ua({ actionButtons: da(vh), heading: ra(), input: ua({ id: ha, initialValue: fa(ra()), label: fa(ra()), placeholder: fa(ra()), validation: fa(wh) }), title: fa(ra()) }), Nh = ua({ templateName: la("singleTextInputDialog"), onCompletion: yh, size: fa(gh), variables: Ch });
8642
- [{ name: "noInputsConfirmationDialog", Dialog: ph, validate: kh.runWithException }, { name: "singleCheckboxDialog", Dialog: mh, validate: Sh.runWithException }, { name: "singleTextInputDialog", Dialog: hh, validate: Nh.runWithException }];
8642
+ })(e, "onCompletion")), vh = ua({ autofocus: fa(sa()), id: ha, text: ha, variant: pa(la("default"), la("primary"), la("critical"), la("outline"), la("link")) }), bh = ua({ disabledButtonIds: da(ha), errorMessage: ha, regexPattern: ha }), wh = ua({ actionButtons: da(vh), heading: ra(), text: ra(), title: fa(ra()) }), kh = ua({ templateName: la("noInputsConfirmationDialog"), onCompletion: yh, size: fa(gh), variables: wh }), xh = ua({ actionButtons: da(vh), checkbox: ua({ id: ha, initialValue: fa(sa()), label: fa(ra()) }), heading: ra(), text: ra(), title: fa(ra()) }), Ch = ua({ templateName: la("singleCheckboxDialog"), onCompletion: yh, size: fa(gh), variables: xh }), Sh = ua({ actionButtons: da(vh), heading: ra(), input: ua({ id: ha, initialValue: fa(ra()), label: fa(ra()), placeholder: fa(ra()), validation: fa(bh) }), title: fa(ra()) }), Nh = ua({ templateName: la("singleTextInputDialog"), onCompletion: yh, size: fa(gh), variables: Sh });
8643
+ [{ name: "noInputsConfirmationDialog", Dialog: ph, validate: kh.runWithException }, { name: "singleCheckboxDialog", Dialog: mh, validate: Ch.runWithException }, { name: "singleTextInputDialog", Dialog: hh, validate: Nh.runWithException }];
8643
8644
  createContext({ config: { message: "" }, theme: "dark", setResult: () => {
8644
8645
  } });
8645
8646
  const jh = { env: "", region: "", version: "", buildVersion: "", theme: "", isError: false, mailingList: "", createJiraTicket: true, sendEmail: false, attachments: [], applicationTitle: "", allowEditRecipients: true, attachmentsViewMode: "category", environmentInfo: "", selectedCategories: [], errorMessage: "", showEnvironmentInfo: false, context: {}, technicalInfo: "", sendEmailClient: "Outlook" };
@@ -8728,7 +8729,7 @@ function ug(e) {
8728
8729
  return { ...useContext(cg), ...e };
8729
8730
  }
8730
8731
  lg.displayName = "ComponentsStore";
8731
- var Eg, Ig = { exports: {} }, Pg = { exports: {} }, Ag = {};
8732
+ var Eg, Pg = { exports: {} }, Ig = { exports: {} }, Ag = {};
8732
8733
  var Og, Lg, Dg, Tg, Rg, Bg, Mg, Fg, $g, _g, jg, zg, Hg, Wg, Vg = {};
8733
8734
  /** @license React v16.13.1
8734
8735
  * react-is.development.js
@@ -8739,12 +8740,12 @@ var Og, Lg, Dg, Tg, Rg, Bg, Mg, Fg, $g, _g, jg, zg, Hg, Wg, Vg = {};
8739
8740
  * LICENSE file in the root directory of this source tree.
8740
8741
  */
8741
8742
  function Ug() {
8742
- return Lg || (Lg = 1, "production" === process.env.NODE_ENV ? Pg.exports = function() {
8743
+ return Lg || (Lg = 1, "production" === process.env.NODE_ENV ? Ig.exports = function() {
8743
8744
  if (Eg)
8744
8745
  return Ag;
8745
8746
  Eg = 1;
8746
8747
  var e = "function" == typeof Symbol && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o2 = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, r2 = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, v = e ? Symbol.for("react.scope") : 60119;
8747
- function w(e2) {
8748
+ function b(e2) {
8748
8749
  if ("object" == typeof e2 && null !== e2) {
8749
8750
  var f2 = e2.$$typeof;
8750
8751
  switch (f2) {
@@ -8774,39 +8775,39 @@ function Ug() {
8774
8775
  }
8775
8776
  }
8776
8777
  }
8777
- function b2(e2) {
8778
- return w(e2) === l;
8778
+ function w2(e2) {
8779
+ return b(e2) === l;
8779
8780
  }
8780
8781
  return Ag.AsyncMode = c, Ag.ConcurrentMode = l, Ag.ContextConsumer = s, Ag.ContextProvider = a, Ag.Element = t, Ag.ForwardRef = u, Ag.Fragment = o2, Ag.Lazy = m, Ag.Memo = p, Ag.Portal = n, Ag.Profiler = r2, Ag.StrictMode = i, Ag.Suspense = d, Ag.isAsyncMode = function(e2) {
8781
- return b2(e2) || w(e2) === c;
8782
- }, Ag.isConcurrentMode = b2, Ag.isContextConsumer = function(e2) {
8783
- return w(e2) === s;
8782
+ return w2(e2) || b(e2) === c;
8783
+ }, Ag.isConcurrentMode = w2, Ag.isContextConsumer = function(e2) {
8784
+ return b(e2) === s;
8784
8785
  }, Ag.isContextProvider = function(e2) {
8785
- return w(e2) === a;
8786
+ return b(e2) === a;
8786
8787
  }, Ag.isElement = function(e2) {
8787
8788
  return "object" == typeof e2 && null !== e2 && e2.$$typeof === t;
8788
8789
  }, Ag.isForwardRef = function(e2) {
8789
- return w(e2) === u;
8790
+ return b(e2) === u;
8790
8791
  }, Ag.isFragment = function(e2) {
8791
- return w(e2) === o2;
8792
+ return b(e2) === o2;
8792
8793
  }, Ag.isLazy = function(e2) {
8793
- return w(e2) === m;
8794
+ return b(e2) === m;
8794
8795
  }, Ag.isMemo = function(e2) {
8795
- return w(e2) === p;
8796
+ return b(e2) === p;
8796
8797
  }, Ag.isPortal = function(e2) {
8797
- return w(e2) === n;
8798
+ return b(e2) === n;
8798
8799
  }, Ag.isProfiler = function(e2) {
8799
- return w(e2) === r2;
8800
+ return b(e2) === r2;
8800
8801
  }, Ag.isStrictMode = function(e2) {
8801
- return w(e2) === i;
8802
+ return b(e2) === i;
8802
8803
  }, Ag.isSuspense = function(e2) {
8803
- return w(e2) === d;
8804
+ return b(e2) === d;
8804
8805
  }, Ag.isValidElementType = function(e2) {
8805
8806
  return "string" == typeof e2 || "function" == typeof e2 || e2 === o2 || e2 === l || e2 === r2 || e2 === i || e2 === d || e2 === f || "object" == typeof e2 && null !== e2 && (e2.$$typeof === m || e2.$$typeof === p || e2.$$typeof === a || e2.$$typeof === s || e2.$$typeof === u || e2.$$typeof === g || e2.$$typeof === y || e2.$$typeof === v || e2.$$typeof === h);
8806
- }, Ag.typeOf = w, Ag;
8807
- }() : Pg.exports = (Og || (Og = 1, "production" !== process.env.NODE_ENV && function() {
8807
+ }, Ag.typeOf = b, Ag;
8808
+ }() : Ig.exports = (Og || (Og = 1, "production" !== process.env.NODE_ENV && function() {
8808
8809
  var e = "function" == typeof Symbol && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o2 = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, r2 = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, v = e ? Symbol.for("react.scope") : 60119;
8809
- function w(e2) {
8810
+ function b(e2) {
8810
8811
  if ("object" == typeof e2 && null !== e2) {
8811
8812
  var f2 = e2.$$typeof;
8812
8813
  switch (f2) {
@@ -8838,38 +8839,38 @@ function Ug() {
8838
8839
  }
8839
8840
  }
8840
8841
  }
8841
- var b2 = c, k = l, x = s, S2 = a, C2 = t, N2 = u, E2 = o2, I2 = m, P2 = p, A = n, O = r2, L2 = i, D2 = d, T2 = false;
8842
+ var w2 = c, k = l, x = s, C2 = a, S2 = t, N2 = u, E2 = o2, P2 = m, I2 = p, A = n, O = r2, L2 = i, D2 = d, T2 = false;
8842
8843
  function R2(e2) {
8843
- return w(e2) === l;
8844
+ return b(e2) === l;
8844
8845
  }
8845
- Vg.AsyncMode = b2, Vg.ConcurrentMode = k, Vg.ContextConsumer = x, Vg.ContextProvider = S2, Vg.Element = C2, Vg.ForwardRef = N2, Vg.Fragment = E2, Vg.Lazy = I2, Vg.Memo = P2, Vg.Portal = A, Vg.Profiler = O, Vg.StrictMode = L2, Vg.Suspense = D2, Vg.isAsyncMode = function(e2) {
8846
- return T2 || (T2 = true, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), R2(e2) || w(e2) === c;
8846
+ Vg.AsyncMode = w2, Vg.ConcurrentMode = k, Vg.ContextConsumer = x, Vg.ContextProvider = C2, Vg.Element = S2, Vg.ForwardRef = N2, Vg.Fragment = E2, Vg.Lazy = P2, Vg.Memo = I2, Vg.Portal = A, Vg.Profiler = O, Vg.StrictMode = L2, Vg.Suspense = D2, Vg.isAsyncMode = function(e2) {
8847
+ return T2 || (T2 = true, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), R2(e2) || b(e2) === c;
8847
8848
  }, Vg.isConcurrentMode = R2, Vg.isContextConsumer = function(e2) {
8848
- return w(e2) === s;
8849
+ return b(e2) === s;
8849
8850
  }, Vg.isContextProvider = function(e2) {
8850
- return w(e2) === a;
8851
+ return b(e2) === a;
8851
8852
  }, Vg.isElement = function(e2) {
8852
8853
  return "object" == typeof e2 && null !== e2 && e2.$$typeof === t;
8853
8854
  }, Vg.isForwardRef = function(e2) {
8854
- return w(e2) === u;
8855
+ return b(e2) === u;
8855
8856
  }, Vg.isFragment = function(e2) {
8856
- return w(e2) === o2;
8857
+ return b(e2) === o2;
8857
8858
  }, Vg.isLazy = function(e2) {
8858
- return w(e2) === m;
8859
+ return b(e2) === m;
8859
8860
  }, Vg.isMemo = function(e2) {
8860
- return w(e2) === p;
8861
+ return b(e2) === p;
8861
8862
  }, Vg.isPortal = function(e2) {
8862
- return w(e2) === n;
8863
+ return b(e2) === n;
8863
8864
  }, Vg.isProfiler = function(e2) {
8864
- return w(e2) === r2;
8865
+ return b(e2) === r2;
8865
8866
  }, Vg.isStrictMode = function(e2) {
8866
- return w(e2) === i;
8867
+ return b(e2) === i;
8867
8868
  }, Vg.isSuspense = function(e2) {
8868
- return w(e2) === d;
8869
+ return b(e2) === d;
8869
8870
  }, Vg.isValidElementType = function(e2) {
8870
8871
  return "string" == typeof e2 || "function" == typeof e2 || e2 === o2 || e2 === l || e2 === r2 || e2 === i || e2 === d || e2 === f || "object" == typeof e2 && null !== e2 && (e2.$$typeof === m || e2.$$typeof === p || e2.$$typeof === a || e2.$$typeof === s || e2.$$typeof === u || e2.$$typeof === g || e2.$$typeof === y || e2.$$typeof === v || e2.$$typeof === h);
8871
- }, Vg.typeOf = w;
8872
- }()), Vg)), Pg.exports;
8872
+ }, Vg.typeOf = b;
8873
+ }()), Vg)), Ig.exports;
8873
8874
  }
8874
8875
  /*
8875
8876
  object-assign
@@ -8930,7 +8931,7 @@ function qg() {
8930
8931
  }
8931
8932
  if ("production" !== process.env.NODE_ENV) {
8932
8933
  var Jg = Ug();
8933
- Ig.exports = function() {
8934
+ Pg.exports = function() {
8934
8935
  if (zg)
8935
8936
  return jg;
8936
8937
  zg = 1;
@@ -9041,7 +9042,7 @@ if ("production" !== process.env.NODE_ENV) {
9041
9042
  if (f(a2, e2[s2]))
9042
9043
  return null;
9043
9044
  var c2 = JSON.stringify(e2, function(e3, t3) {
9044
- return "symbol" === w(t3) ? String(t3) : t3;
9045
+ return "symbol" === b(t3) ? String(t3) : t3;
9045
9046
  });
9046
9047
  return new p("Invalid " + i2 + " `" + r3 + "` of value `" + String(a2) + "` supplied to `" + o3 + "`, expected one of " + c2 + ".");
9047
9048
  }) : ("production" !== process.env.NODE_ENV && r2(arguments.length > 1 ? "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])." : "Invalid argument supplied to oneOf, expected an array."), a);
@@ -9051,7 +9052,7 @@ if ("production" !== process.env.NODE_ENV) {
9051
9052
  for (var t2 = 0; t2 < e2.length; t2++) {
9052
9053
  var i2 = e2[t2];
9053
9054
  if ("function" != typeof i2)
9054
- return r2("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + b2(i2) + " at index " + t2 + "."), a;
9055
+ return r2("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + w2(i2) + " at index " + t2 + "."), a;
9055
9056
  }
9056
9057
  return m(function(t3, i3, r3, a2, s2) {
9057
9058
  for (var c2 = [], l2 = 0; l2 < e2.length; l2++) {
@@ -9070,7 +9071,7 @@ if ("production" !== process.env.NODE_ENV) {
9070
9071
  for (var l2 in e2) {
9071
9072
  var u2 = e2[l2];
9072
9073
  if ("function" != typeof u2)
9073
- return g(i2, r3, a2, l2, w(u2));
9074
+ return g(i2, r3, a2, l2, b(u2));
9074
9075
  var d2 = u2(s2, l2, i2, r3, a2 + "." + l2, n);
9075
9076
  if (d2)
9076
9077
  return d2;
@@ -9086,7 +9087,7 @@ if ("production" !== process.env.NODE_ENV) {
9086
9087
  for (var f2 in d2) {
9087
9088
  var m2 = e2[f2];
9088
9089
  if (o2(e2, f2) && "function" != typeof m2)
9089
- return g(a2, s2, c2, f2, w(m2));
9090
+ return g(a2, s2, c2, f2, b(m2));
9090
9091
  if (!m2)
9091
9092
  return new p("Invalid " + s2 + " `" + c2 + "` key `" + f2 + "` supplied to `" + a2 + "`.\nBad object: " + JSON.stringify(i2[r3], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(e2), null, " "));
9092
9093
  var h2 = m2(l2, f2, a2, s2, c2 + "." + f2, n);
@@ -9124,7 +9125,7 @@ if ("production" !== process.env.NODE_ENV) {
9124
9125
  function h(e2) {
9125
9126
  return m(function(t2, n2, o3, i2, r3, a2) {
9126
9127
  var s2 = t2[n2];
9127
- return v(s2) !== e2 ? new p("Invalid " + i2 + " `" + r3 + "` of type `" + w(s2) + "` supplied to `" + o3 + "`, expected `" + e2 + "`.", { expectedType: e2 }) : null;
9128
+ return v(s2) !== e2 ? new p("Invalid " + i2 + " `" + r3 + "` of type `" + b(s2) + "` supplied to `" + o3 + "`, expected `" + e2 + "`.", { expectedType: e2 }) : null;
9128
9129
  });
9129
9130
  }
9130
9131
  function g(e2, t2, n2, o3, i2) {
@@ -9172,7 +9173,7 @@ if ("production" !== process.env.NODE_ENV) {
9172
9173
  return "symbol" === e3 || !!t3 && ("Symbol" === t3["@@toStringTag"] || "function" == typeof Symbol && t3 instanceof Symbol);
9173
9174
  }(t2, e2) ? "symbol" : t2;
9174
9175
  }
9175
- function w(e2) {
9176
+ function b(e2) {
9176
9177
  if (null == e2)
9177
9178
  return "" + e2;
9178
9179
  var t2 = v(e2);
@@ -9184,8 +9185,8 @@ if ("production" !== process.env.NODE_ENV) {
9184
9185
  }
9185
9186
  return t2;
9186
9187
  }
9187
- function b2(e2) {
9188
- var t2 = w(e2);
9188
+ function w2(e2) {
9189
+ var t2 = b(e2);
9189
9190
  switch (t2) {
9190
9191
  case "array":
9191
9192
  case "object":
@@ -9202,7 +9203,7 @@ if ("production" !== process.env.NODE_ENV) {
9202
9203
  }, jg;
9203
9204
  }()(Jg.isElement, true);
9204
9205
  } else
9205
- Ig.exports = function() {
9206
+ Pg.exports = function() {
9206
9207
  if (Wg)
9207
9208
  return Hg;
9208
9209
  Wg = 1;
@@ -9226,7 +9227,7 @@ if ("production" !== process.env.NODE_ENV) {
9226
9227
  return r2.PropTypes = r2, r2;
9227
9228
  }, Hg;
9228
9229
  }()();
9229
- var Yg = S(Ig.exports);
9230
+ var Yg = C(Pg.exports);
9230
9231
  function Xg(e) {
9231
9232
  return Xg = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e2) {
9232
9233
  return typeof e2;
@@ -9255,12 +9256,12 @@ function py(e, t) {
9255
9256
  }
9256
9257
  var my = false, hy = "production" !== process.env.NODE_ENV ? Yg.oneOfType([Yg.number, Yg.shape({ enter: Yg.number, exit: Yg.number, appear: Yg.number }).isRequired]) : null;
9257
9258
  "production" !== process.env.NODE_ENV && Yg.oneOfType([Yg.string, Yg.shape({ enter: Yg.string, exit: Yg.string, active: Yg.string }), Yg.shape({ enter: Yg.string, enterDone: Yg.string, enterActive: Yg.string, exit: Yg.string, exitDone: Yg.string, exitActive: Yg.string })]);
9258
- var gy = o__default.createContext(null), yy = "unmounted", vy = "exited", wy = "entering", by = "entered", ky = "exiting", xy = function(e) {
9259
+ var gy = o__default.createContext(null), yy = "unmounted", vy = "exited", by = "entering", wy = "entered", ky = "exiting", xy = function(e) {
9259
9260
  function t(t2, n2) {
9260
9261
  var o2;
9261
9262
  o2 = e.call(this, t2, n2) || this;
9262
9263
  var i, r2 = n2 && !n2.isMounting ? t2.enter : t2.appear;
9263
- return o2.appearStatus = null, t2.in ? r2 ? (i = vy, o2.appearStatus = wy) : i = by : i = t2.unmountOnExit || t2.mountOnEnter ? yy : vy, o2.state = { status: i }, o2.nextCallback = null, o2;
9264
+ return o2.appearStatus = null, t2.in ? r2 ? (i = vy, o2.appearStatus = by) : i = wy : i = t2.unmountOnExit || t2.mountOnEnter ? yy : vy, o2.state = { status: i }, o2.nextCallback = null, o2;
9264
9265
  }
9265
9266
  !function(e2, t2) {
9266
9267
  e2.prototype = Object.create(t2.prototype), e2.prototype.constructor = e2, py(e2, t2);
@@ -9274,7 +9275,7 @@ var gy = o__default.createContext(null), yy = "unmounted", vy = "exited", wy = "
9274
9275
  var t2 = null;
9275
9276
  if (e2 !== this.props) {
9276
9277
  var n2 = this.state.status;
9277
- this.props.in ? n2 !== wy && n2 !== by && (t2 = wy) : n2 !== wy && n2 !== by || (t2 = ky);
9278
+ this.props.in ? n2 !== by && n2 !== wy && (t2 = by) : n2 !== by && n2 !== wy || (t2 = ky);
9278
9279
  }
9279
9280
  this.updateStatus(false, t2);
9280
9281
  }, n.componentWillUnmount = function() {
@@ -9284,9 +9285,9 @@ var gy = o__default.createContext(null), yy = "unmounted", vy = "exited", wy = "
9284
9285
  return e2 = t2 = n2 = o2, null != o2 && "number" != typeof o2 && (e2 = o2.exit, t2 = o2.enter, n2 = void 0 !== o2.appear ? o2.appear : t2), { exit: e2, enter: t2, appear: n2 };
9285
9286
  }, n.updateStatus = function(e2, t2) {
9286
9287
  if (void 0 === e2 && (e2 = false), null !== t2)
9287
- if (this.cancelNextCallback(), t2 === wy) {
9288
+ if (this.cancelNextCallback(), t2 === by) {
9288
9289
  if (this.props.unmountOnExit || this.props.mountOnEnter) {
9289
- var n2 = this.props.nodeRef ? this.props.nodeRef.current : b__default.findDOMNode(this);
9290
+ var n2 = this.props.nodeRef ? this.props.nodeRef.current : w__default.findDOMNode(this);
9290
9291
  n2 && function(e3) {
9291
9292
  e3.scrollTop;
9292
9293
  }(n2);
@@ -9297,18 +9298,18 @@ var gy = o__default.createContext(null), yy = "unmounted", vy = "exited", wy = "
9297
9298
  else
9298
9299
  this.props.unmountOnExit && this.state.status === vy && this.setState({ status: yy });
9299
9300
  }, n.performEnter = function(e2) {
9300
- var t2 = this, n2 = this.props.enter, o2 = this.context ? this.context.isMounting : e2, i = this.props.nodeRef ? [o2] : [b__default.findDOMNode(this), o2], r2 = i[0], a = i[1], s = this.getTimeouts(), c = o2 ? s.appear : s.enter;
9301
- !e2 && !n2 || my ? this.safeSetState({ status: by }, function() {
9301
+ var t2 = this, n2 = this.props.enter, o2 = this.context ? this.context.isMounting : e2, i = this.props.nodeRef ? [o2] : [w__default.findDOMNode(this), o2], r2 = i[0], a = i[1], s = this.getTimeouts(), c = o2 ? s.appear : s.enter;
9302
+ !e2 && !n2 || my ? this.safeSetState({ status: wy }, function() {
9302
9303
  t2.props.onEntered(r2);
9303
- }) : (this.props.onEnter(r2, a), this.safeSetState({ status: wy }, function() {
9304
+ }) : (this.props.onEnter(r2, a), this.safeSetState({ status: by }, function() {
9304
9305
  t2.props.onEntering(r2, a), t2.onTransitionEnd(c, function() {
9305
- t2.safeSetState({ status: by }, function() {
9306
+ t2.safeSetState({ status: wy }, function() {
9306
9307
  t2.props.onEntered(r2, a);
9307
9308
  });
9308
9309
  });
9309
9310
  }));
9310
9311
  }, n.performExit = function() {
9311
- var e2 = this, t2 = this.props.exit, n2 = this.getTimeouts(), o2 = this.props.nodeRef ? void 0 : b__default.findDOMNode(this);
9312
+ var e2 = this, t2 = this.props.exit, n2 = this.getTimeouts(), o2 = this.props.nodeRef ? void 0 : w__default.findDOMNode(this);
9312
9313
  t2 && !my ? (this.props.onExit(o2), this.safeSetState({ status: ky }, function() {
9313
9314
  e2.props.onExiting(o2), e2.onTransitionEnd(n2.exit, function() {
9314
9315
  e2.safeSetState({ status: vy }, function() {
@@ -9331,7 +9332,7 @@ var gy = o__default.createContext(null), yy = "unmounted", vy = "exited", wy = "
9331
9332
  }, this.nextCallback;
9332
9333
  }, n.onTransitionEnd = function(e2, t2) {
9333
9334
  this.setNextCallback(t2);
9334
- var n2 = this.props.nodeRef ? this.props.nodeRef.current : b__default.findDOMNode(this), o2 = null == e2 && !this.props.addEndListener;
9335
+ var n2 = this.props.nodeRef ? this.props.nodeRef.current : w__default.findDOMNode(this), o2 = null == e2 && !this.props.addEndListener;
9335
9336
  if (n2 && !o2) {
9336
9337
  if (this.props.addEndListener) {
9337
9338
  var i = this.props.nodeRef ? [this.nextCallback] : [n2, this.nextCallback], r2 = i[0], a = i[1];
@@ -9361,14 +9362,14 @@ var gy = o__default.createContext(null), yy = "unmounted", vy = "exited", wy = "
9361
9362
  return o__default.createElement(gy.Provider, { value: null }, "function" == typeof n2 ? n2(e2, o2) : o__default.cloneElement(o__default.Children.only(n2), o2));
9362
9363
  }, t;
9363
9364
  }(o__default.Component);
9364
- function Sy() {
9365
+ function Cy() {
9365
9366
  }
9366
- function Cy(e) {
9367
- return Cy = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e2) {
9367
+ function Sy(e) {
9368
+ return Sy = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e2) {
9368
9369
  return typeof e2;
9369
9370
  } : function(e2) {
9370
9371
  return e2 && "function" == typeof Symbol && e2.constructor === Symbol && e2 !== Symbol.prototype ? "symbol" : typeof e2;
9371
- }, Cy(e);
9372
+ }, Sy(e);
9372
9373
  }
9373
9374
  xy.contextType = gy, xy.propTypes = "production" !== process.env.NODE_ENV ? { nodeRef: Yg.shape({ current: "undefined" == typeof Element ? Yg.any : function(e, t, n, o2, i, r2) {
9374
9375
  var a = e[t];
@@ -9379,19 +9380,19 @@ xy.contextType = gy, xy.propTypes = "production" !== process.env.NODE_ENV ? { no
9379
9380
  for (var n = arguments.length, o2 = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
9380
9381
  o2[i - 1] = arguments[i];
9381
9382
  return t.apply(void 0, [e].concat(o2));
9382
- }, addEndListener: Yg.func, onEnter: Yg.func, onEntering: Yg.func, onEntered: Yg.func, onExit: Yg.func, onExiting: Yg.func, onExited: Yg.func } : {}, xy.defaultProps = { in: false, mountOnEnter: false, unmountOnExit: false, appear: false, enter: true, exit: true, onEnter: Sy, onEntering: Sy, onEntered: Sy, onExit: Sy, onExiting: Sy, onExited: Sy }, xy.UNMOUNTED = yy, xy.EXITED = vy, xy.ENTERING = wy, xy.ENTERED = by, xy.EXITING = ky;
9383
+ }, addEndListener: Yg.func, onEnter: Yg.func, onEntering: Yg.func, onEntered: Yg.func, onExit: Yg.func, onExiting: Yg.func, onExited: Yg.func } : {}, xy.defaultProps = { in: false, mountOnEnter: false, unmountOnExit: false, appear: false, enter: true, exit: true, onEnter: Cy, onEntering: Cy, onEntered: Cy, onExit: Cy, onExiting: Cy, onExited: Cy }, xy.UNMOUNTED = yy, xy.EXITED = vy, xy.ENTERING = by, xy.ENTERED = wy, xy.EXITING = ky;
9383
9384
  var Ny, Ey = ["tag", "horizontal", "isOpen", "className", "navbar", "cssModule", "children", "innerRef"];
9384
- function Iy() {
9385
- return Iy = Object.assign ? Object.assign.bind() : function(e) {
9385
+ function Py() {
9386
+ return Py = Object.assign ? Object.assign.bind() : function(e) {
9386
9387
  for (var t = 1; t < arguments.length; t++) {
9387
9388
  var n = arguments[t];
9388
9389
  for (var o2 in n)
9389
9390
  Object.prototype.hasOwnProperty.call(n, o2) && (e[o2] = n[o2]);
9390
9391
  }
9391
9392
  return e;
9392
- }, Iy.apply(this, arguments);
9393
+ }, Py.apply(this, arguments);
9393
9394
  }
9394
- function Py(e, t) {
9395
+ function Iy(e, t) {
9395
9396
  if (null == e)
9396
9397
  return {};
9397
9398
  var n, o2, i = function(e2, t2) {
@@ -9445,7 +9446,7 @@ function Ly(e) {
9445
9446
  } else
9446
9447
  n = o2.apply(this, arguments);
9447
9448
  return function(e2, t2) {
9448
- if (t2 && ("object" === Cy(t2) || "function" == typeof t2))
9449
+ if (t2 && ("object" === Sy(t2) || "function" == typeof t2))
9449
9450
  return t2;
9450
9451
  if (void 0 !== t2)
9451
9452
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -9526,18 +9527,18 @@ var jy = function() {
9526
9527
  } }, { key: "render", value: function() {
9527
9528
  var e2 = this, t2 = this.props, n = t2.tag, o2 = t2.horizontal, r2 = t2.isOpen, a = t2.className, s = t2.navbar, c = t2.cssModule, l = t2.children;
9528
9529
  t2.innerRef;
9529
- var u, d, f, p = Py(t2, Ey), m = this.state.dimension, h = function(e3, t3) {
9530
+ var u, d, f, p = Iy(t2, Ey), m = this.state.dimension, h = function(e3, t3) {
9530
9531
  for (var n2, o3 = Array.isArray(t3) ? t3 : [t3], i = o3.length, r3 = {}; i > 0; )
9531
9532
  r3[n2 = o3[i -= 1]] = e3[n2];
9532
9533
  return r3;
9533
9534
  }(p, ty), g = (u = p, d = ty, f = {}, Object.keys(u).forEach(function(e3) {
9534
9535
  -1 === d.indexOf(e3) && (f[e3] = u[e3]);
9535
9536
  }), f);
9536
- return o__default.createElement(xy, Iy({}, h, { in: r2, nodeRef: this.nodeRef, onEntering: this.onEntering, onEntered: this.onEntered, onExit: this.onExit, onExiting: this.onExiting, onExited: this.onExited }), function(t3) {
9537
+ return o__default.createElement(xy, Py({}, h, { in: r2, nodeRef: this.nodeRef, onEntering: this.onEntering, onEntered: this.onEntered, onExit: this.onExit, onExiting: this.onExiting, onExited: this.onExited }), function(t3) {
9537
9538
  var r3 = function(e3) {
9538
9539
  return _y[e3] || "collapse";
9539
9540
  }(t3), u2 = Qg(E(a, o2 && "collapse-horizontal", r3, s && "navbar-collapse"), c), d2 = null === m ? null : My({}, o2 ? "width" : "height", m);
9540
- return o__default.createElement(n, Iy({}, g, { style: By(By({}, g.style), d2), className: u2, ref: e2.nodeRef }), l);
9541
+ return o__default.createElement(n, Py({}, g, { style: By(By({}, g.style), d2), className: u2, ref: e2.nodeRef }), l);
9541
9542
  });
9542
9543
  } }]), t;
9543
9544
  }();
@@ -9551,18 +9552,18 @@ var Ev = function(e) {
9551
9552
  }(e) && !function(e2) {
9552
9553
  var t = Object.prototype.toString.call(e2);
9553
9554
  return "[object RegExp]" === t || "[object Date]" === t || function(e3) {
9554
- return e3.$$typeof === Iv;
9555
+ return e3.$$typeof === Pv;
9555
9556
  }(e2);
9556
9557
  }(e);
9557
9558
  };
9558
- var Iv = "function" == typeof Symbol && Symbol.for ? Symbol.for("react.element") : 60103;
9559
- function Pv(e, t) {
9559
+ var Pv = "function" == typeof Symbol && Symbol.for ? Symbol.for("react.element") : 60103;
9560
+ function Iv(e, t) {
9560
9561
  return false !== t.clone && t.isMergeableObject(e) ? Tv((n = e, Array.isArray(n) ? [] : {}), e, t) : e;
9561
9562
  var n;
9562
9563
  }
9563
9564
  function Av(e, t, n) {
9564
9565
  return e.concat(t).map(function(e2) {
9565
- return Pv(e2, n);
9566
+ return Iv(e2, n);
9566
9567
  });
9567
9568
  }
9568
9569
  function Ov(e) {
@@ -9582,7 +9583,7 @@ function Lv(e, t) {
9582
9583
  function Dv(e, t, n) {
9583
9584
  var o2 = {};
9584
9585
  return n.isMergeableObject(e) && Ov(e).forEach(function(t2) {
9585
- o2[t2] = Pv(e[t2], n);
9586
+ o2[t2] = Iv(e[t2], n);
9586
9587
  }), Ov(t).forEach(function(i) {
9587
9588
  (function(e2, t2) {
9588
9589
  return Lv(e2, t2) && !(Object.hasOwnProperty.call(e2, t2) && Object.propertyIsEnumerable.call(e2, t2));
@@ -9591,13 +9592,13 @@ function Dv(e, t, n) {
9591
9592
  return Tv;
9592
9593
  var n2 = t2.customMerge(e2);
9593
9594
  return "function" == typeof n2 ? n2 : Tv;
9594
- }(i, n)(e[i], t[i], n) : o2[i] = Pv(t[i], n));
9595
+ }(i, n)(e[i], t[i], n) : o2[i] = Iv(t[i], n));
9595
9596
  }), o2;
9596
9597
  }
9597
9598
  function Tv(e, t, n) {
9598
- (n = n || {}).arrayMerge = n.arrayMerge || Av, n.isMergeableObject = n.isMergeableObject || Ev, n.cloneUnlessOtherwiseSpecified = Pv;
9599
+ (n = n || {}).arrayMerge = n.arrayMerge || Av, n.isMergeableObject = n.isMergeableObject || Ev, n.cloneUnlessOtherwiseSpecified = Iv;
9599
9600
  var o2 = Array.isArray(t);
9600
- return o2 === Array.isArray(e) ? o2 ? n.arrayMerge(e, t, n) : Dv(e, t, n) : Pv(t, n);
9601
+ return o2 === Array.isArray(e) ? o2 ? n.arrayMerge(e, t, n) : Dv(e, t, n) : Iv(t, n);
9601
9602
  }
9602
9603
  Tv.all = function(e, t) {
9603
9604
  if (!Array.isArray(e))
@@ -9606,7 +9607,7 @@ Tv.all = function(e, t) {
9606
9607
  return Tv(e2, n, t);
9607
9608
  }, {});
9608
9609
  };
9609
- S(Tv);
9610
+ C(Tv);
9610
9611
  const Mv = forwardRef((t, n) => {
9611
9612
  const { onSearch: o2, searchTerm: i, onClear: r2, className: a } = t, s = useContext(IOConnectContext);
9612
9613
  return useEffect(() => {
@@ -9622,11 +9623,11 @@ const zv = createContext({ searchQuery: "", setSearch: () => {
9622
9623
  }, hideBulkActions: () => {
9623
9624
  } }), Hv = () => useContext(zv);
9624
9625
  function Wv({ title: n, onOpenSettings: o2, onClose: i, ...r2 }) {
9625
- const { HeaderCaptionTitle: a, HeaderCaptionCount: s, HeaderCaptionButtonSettings: c, HeaderCaptionButtonClose: l, HeaderActions: u, HeaderBulkActions: d, HeaderSearch: f } = Rw(), { isBulkActionsSupported: p, notificationsCount: m } = jp(), { isBulkActionsVisible: h } = Hv(), g = Ud();
9626
+ const { HeaderCaptionTitle: a, HeaderCaptionCount: s, HeaderCaptionButtonSettings: c, HeaderCaptionButtonClose: l, HeaderActions: u, HeaderBulkActions: d, HeaderSearch: f } = Rb(), { isBulkActionsSupported: p, notificationsCount: m } = _p(), { isBulkActionsVisible: h } = Hv(), g = Ud();
9626
9627
  return jsxs(Vs, { ...r2, children: [jsxs("div", { className: "io-panel-header-caption", children: [jsx(a, { title: n }), jsx(s, {}), jsxs(Vs.ButtonGroup, { children: [g && jsx(c, { onClick: o2 }), jsx(l, { onClick: i })] })] }), jsx(f, {}), p ? jsxs("div", { className: `io-panel-header-actions-wrapper ${h && m > 0 ? "io-panel-header-bulk-actions-opened" : ""} `, children: [jsx(u, {}), jsx(d, {})] }) : jsx(u, {})] });
9627
9628
  }
9628
9629
  function Vv({ text: n = "Notifications", counter: o2, ...i }) {
9629
- const { notificationsCount: r2 } = jp();
9630
+ const { notificationsCount: r2 } = _p();
9630
9631
  return jsx(D, { text: n, size: "large", ...i, children: (o2 ?? true) && jsxs("span", { children: ["(", r2, ")"] }) });
9631
9632
  }
9632
9633
  const Uv = "newest", Kv = "oldest", Gv = "severity", qv = ["None", "Low", "Medium", "High", "Critical"], Jv = { key: Uv, descending: true }, Yv = (e) => [...e].sort((e2, t) => (t.timestamp || 0) - (e2.timestamp || 0)), Xv = (e) => [...e].sort((e2, t) => (e2.timestamp || 0) - (t.timestamp || 0)), Qv = (e, t) => {
@@ -9635,9 +9636,9 @@ const Uv = "newest", Kv = "oldest", Gv = "severity", qv = ["None", "Low", "Mediu
9635
9636
  const i = qv.indexOf(e2.severity || n), r2 = qv.indexOf(o2.severity || n);
9636
9637
  return (t ? -1 : 1) * (i - r2);
9637
9638
  });
9638
- }, Zv = { [Uv]: Yv, [Kv]: Xv, [Gv]: Qv }, ew = { severity: "Priority", newest: "Newest", oldest: "Oldest" };
9639
- function tw({ ...t }) {
9640
- const [n, o2] = useState([]), { NotificationsList: i, Notification: r2 } = Rw(), { notifications: a, setCount: s, notificationsCount: c } = jp(), { sortNotificationsBy: p, viewNotificationsBy: m, searchQuery: h } = Hv(), g = useRef(null), y = Wd(h), v = useMemo(() => {
9639
+ }, Zv = { [Uv]: Yv, [Kv]: Xv, [Gv]: Qv }, eb = { severity: "Priority", newest: "Newest", oldest: "Oldest" };
9640
+ function tb({ ...t }) {
9641
+ const [n, o2] = useState([]), { NotificationsList: i, Notification: r2 } = Rb(), { notifications: a, setCount: s, notificationsCount: c } = _p(), { sortNotificationsBy: p, viewNotificationsBy: m, searchQuery: h } = Hv(), g = useRef(null), y = Wd(h), v = useMemo(() => {
9641
9642
  const e = ((e2, t2) => {
9642
9643
  if (!e2)
9643
9644
  return [];
@@ -9654,8 +9655,8 @@ function tw({ ...t }) {
9654
9655
  }
9655
9656
  })(a, m);
9656
9657
  return e.filter((e2) => {
9657
- var _a2, _b;
9658
- return e2.title.toLowerCase().includes(y.toLowerCase()) || ((_a2 = e2.source) == null ? void 0 : _a2.toLowerCase().includes(y.toLowerCase())) || ((_b = e2.body) == null ? void 0 : _b.toLowerCase().includes(y.toLowerCase()));
9658
+ var _a2, _b2;
9659
+ return e2.title.toLowerCase().includes(y.toLowerCase()) || ((_a2 = e2.source) == null ? void 0 : _a2.toLowerCase().includes(y.toLowerCase())) || ((_b2 = e2.body) == null ? void 0 : _b2.toLowerCase().includes(y.toLowerCase()));
9659
9660
  });
9660
9661
  }, [y, a, m]);
9661
9662
  return useEffect(() => {
@@ -9678,30 +9679,30 @@ function tw({ ...t }) {
9678
9679
  g.current && ((_a2 = g.current) == null ? void 0 : _a2.scrollTo({ top: 0, behavior: "smooth" }));
9679
9680
  }, [y, c, p, m]), jsx(Od, { ref: g, element: Us, elementProps: t, children: jsx(i, { notifications: n, Notification: r2 }) });
9680
9681
  }
9681
- function nw({ ...t }) {
9682
- const { FooterButtons: n } = Rw();
9682
+ function nb({ ...t }) {
9683
+ const { FooterButtons: n } = Rb();
9683
9684
  return jsx(Ks, { ...t, children: jsx(n, {}) });
9684
9685
  }
9685
- function ow({ className: n, ...o2 }) {
9686
- const { FooterButtonClearAll: i, FooterButtonClearAllOld: r2 } = Rw(), { notifications: a } = jp(), [s, c] = useState(false);
9686
+ function ob({ className: n, ...o2 }) {
9687
+ const { FooterButtonClearAll: i, FooterButtonClearAllOld: r2 } = Rb(), { notifications: a } = _p(), [s, c] = useState(false);
9687
9688
  return useEffect(() => {
9688
9689
  a.filter((e) => "Stale" === e.state || "Acknowledged" === e.state).length > 0 ? c(true) : c(false);
9689
9690
  }, [a]), jsxs(ae, { className: n, align: "right", ...o2, children: [jsx(r2, { disabled: !s }), jsx(i, { disabled: a.length <= 0 })] });
9690
9691
  }
9691
- function iw({ text: t = "Clear All", ...n }) {
9692
- const { clearAll: o2 } = jp();
9692
+ function ib({ text: t = "Clear All", ...n }) {
9693
+ const { clearAll: o2 } = _p();
9693
9694
  return jsx($, { text: t, onClick: () => {
9694
9695
  o2();
9695
9696
  }, ...n });
9696
9697
  }
9697
- function rw({ text: t = "Clear Old", ...n }) {
9698
- const { clearAllOld: o2 } = jp();
9698
+ function rb({ text: t = "Clear Old", ...n }) {
9699
+ const { clearAllOld: o2 } = _p();
9699
9700
  return jsx($, { text: t, onClick: () => {
9700
9701
  o2();
9701
9702
  }, ...n });
9702
9703
  }
9703
- function aw(e) {
9704
- const t = Ud(), { onClose: n, settings: o2 } = jp(), { isPanelVisible: i } = Hv(), { id: r2, onClick: s, updateState: c } = e, l = useCallback(async () => {
9704
+ function ab(e) {
9705
+ const t = Ud(), { onClose: n, settings: o2 } = _p(), { isPanelVisible: i } = Hv(), { id: r2, onClick: s, updateState: c } = e, l = useCallback(async () => {
9705
9706
  if (!s)
9706
9707
  return;
9707
9708
  if (!t) {
@@ -9726,14 +9727,14 @@ function aw(e) {
9726
9727
  }, [l]);
9727
9728
  return { handleClick: l, handleWrapperClick: u };
9728
9729
  }
9729
- function sw({ className: n, notification: o2, onClick: i, ...r2 }) {
9730
- const a = E("io-notification-header", n), { HeaderCount: s, HeaderBadge: c, HeaderTitle: l, HeaderTimestamp: u, HeaderButtonSnooze: d, HeaderButtonClose: f } = Cw(), { handleWrapperClick: p } = aw(o2);
9730
+ function sb({ className: n, notification: o2, onClick: i, ...r2 }) {
9731
+ const a = E("io-notification-header", n), { HeaderCount: s, HeaderBadge: c, HeaderTitle: l, HeaderTimestamp: u, HeaderButtonSnooze: d, HeaderButtonClose: f } = Sb(), { handleWrapperClick: p } = ab(o2);
9731
9732
  return jsxs("div", { className: a, onClick: async (e) => {
9732
9733
  await p(e), i == null ? void 0 : i(e);
9733
9734
  }, ...r2, children: [jsx(c, { notification: o2 }), jsx(s, { notification: o2 }), jsx(l, { notification: o2 }), jsx(u, { notification: o2 }), jsxs(ae, { children: [jsx(d, { notification: o2 }), jsx(f, { notification: o2 })] })] });
9734
9735
  }
9735
- function cw({ notification: t, ...n }) {
9736
- const { settings: o2, notificationStacks: i } = jp(), { isPanelVisible: r2 } = Hv(), { toastStacking: a, stackBy: s } = o2, c = "application" === s ? "source" : s ?? "source";
9736
+ function cb({ notification: t, ...n }) {
9737
+ const { settings: o2, notificationStacks: i } = _p(), { isPanelVisible: r2 } = Hv(), { toastStacking: a, stackBy: s } = o2, c = "application" === s ? "source" : s ?? "source";
9737
9738
  let l = 0;
9738
9739
  if (a) {
9739
9740
  const e = i.find((e2) => e2.key === t[c]);
@@ -9741,59 +9742,59 @@ function cw({ notification: t, ...n }) {
9741
9742
  }
9742
9743
  return r2 || !a || l <= 1 ? null : jsx(qs, { ...n, children: l > 9 ? "9+" : l });
9743
9744
  }
9744
- function lw({ className: t, notification: n, ...o2 }) {
9745
+ function lb({ className: t, notification: n, ...o2 }) {
9745
9746
  if (!(n == null ? void 0 : n.severity) || "None" === n.severity)
9746
9747
  return null;
9747
9748
  const i = E("io-notification-header-badge", t);
9748
9749
  return jsx(qs, { className: i, ...o2, children: n.severity });
9749
9750
  }
9750
- function uw({ className: n, state: o2, severity: i = "None", icon: r2, ...a }) {
9751
+ function ub({ className: n, state: o2, severity: i = "None", icon: r2, ...a }) {
9751
9752
  const s = E("io-notification-header-icon", n), { isPanelVisible: c } = Hv();
9752
9753
  return jsxs("div", { className: s, ...a, children: [r2 && jsx("span", { className: "io-notification-header-icon-image", children: jsx("img", { src: r2, alt: `io-notification-header-icon-${r2}` }) }), jsx("span", { className: `io-notification-header-icon-badge color-${i.toLowerCase()}`, children: c && "Acknowledged" !== o2 && "New" })] });
9753
9754
  }
9754
- function dw({ className: t, notification: { appTitle: n }, ...o2 }) {
9755
+ function db({ className: t, notification: { appTitle: n }, ...o2 }) {
9755
9756
  const i = E("io-notification-header-title", t);
9756
9757
  return jsx("div", { className: i, ...o2, children: n });
9757
9758
  }
9758
- function fw({ className: t, notification: { timestamp: n, state: o2, snooze: i }, ...r2 }) {
9759
+ function fb({ className: t, notification: { timestamp: n, state: o2, snooze: i }, ...r2 }) {
9759
9760
  const a = E("io-notification-timestamp", t);
9760
9761
  return jsx("small", i && "Snoozed" === o2 ? { className: a, ...r2, children: "Snoozed" } : { className: a, ...r2, children: Kf(n ?? 0) ?? "Just Now" });
9761
9762
  }
9762
- function pw({ notification: { id: t, state: n }, ...o2 }) {
9763
- var _a2, _b;
9764
- const { settings: i, snooze: r2 } = jp(), s = useCallback((e) => {
9763
+ function pb({ notification: { id: t, state: n }, ...o2 }) {
9764
+ var _a2, _b2;
9765
+ const { settings: i, snooze: r2 } = _p(), s = useCallback((e) => {
9765
9766
  var _a3;
9766
9767
  e.stopPropagation(), r2 && r2(t, ((_a3 = i.snooze) == null ? void 0 : _a3.duration) ?? 0);
9767
9768
  }, [t, r2, (_a2 = i.snooze) == null ? void 0 : _a2.duration]);
9768
- return r2 && "Snoozed" !== n && ((_b = i.snooze) == null ? void 0 : _b.enabled) ? jsx($, { icon: "snooze", variant: "link", text: "Snooze", tabIndex: -1, onClick: s, ...o2 }) : null;
9769
+ return r2 && "Snoozed" !== n && ((_b2 = i.snooze) == null ? void 0 : _b2.enabled) ? jsx($, { icon: "snooze", variant: "link", text: "Snooze", tabIndex: -1, onClick: s, ...o2 }) : null;
9769
9770
  }
9770
- function mw({ notification: { id: t, updateState: n }, ...o2 }) {
9771
- const i = Ud(), { onClose: r2 } = jp(), { isPanelVisible: s } = Hv(), c = useCallback((e) => {
9771
+ function mb({ notification: { id: t, updateState: n }, ...o2 }) {
9772
+ const i = Ud(), { onClose: r2 } = _p(), { isPanelVisible: s } = Hv(), c = useCallback((e) => {
9772
9773
  e.stopPropagation(), !i || s ? r2(t) : n("Acknowledged").catch(console.error);
9773
9774
  }, [i, t, r2, s, n]);
9774
- return jsx(P, { icon: "close", iconSize: "10", tabIndex: -1, onClick: c, ...o2 });
9775
+ return jsx(I, { icon: "close", iconSize: "10", tabIndex: -1, onClick: c, ...o2 });
9775
9776
  }
9776
- function hw({ className: n, notification: o2, ...i }) {
9777
- const r2 = E("io-notification-body", n), { BodyIcon: a, BodyTitle: s, BodyDescription: c } = Cw(), { icon: l, title: u, body: d } = o2, { handleClick: f } = aw(o2);
9777
+ function hb({ className: n, notification: o2, ...i }) {
9778
+ const r2 = E("io-notification-body", n), { BodyIcon: a, BodyTitle: s, BodyDescription: c } = Sb(), { icon: l, title: u, body: d } = o2, { handleClick: f } = ab(o2);
9778
9779
  return jsxs("div", { className: r2, role: "button", tabIndex: 0, onKeyDown: async (e) => {
9779
9780
  R(e) && await f();
9780
9781
  }, onClick: f, ...i, children: [jsx(a, { icon: l }), jsxs("div", { className: "io-notification-body-content", children: [jsx(s, { text: u }), jsx(c, { text: d })] })] });
9781
9782
  }
9782
- function gw({ className: t, icon: n, altText: o2 = "notification icon", ...i }) {
9783
+ function gb({ className: t, icon: n, altText: o2 = "notification icon", ...i }) {
9783
9784
  if (!n)
9784
9785
  return null;
9785
9786
  const r2 = E("io-notification-body-icon", t);
9786
9787
  return jsx("div", { className: r2, ...i, children: jsx("img", { src: n, alt: o2 }) });
9787
9788
  }
9788
- function yw({ text: t, ...n }) {
9789
+ function yb({ text: t, ...n }) {
9789
9790
  return jsx(D, { text: t, ...n });
9790
9791
  }
9791
- function vw({ className: t, text: n, ...o2 }) {
9792
+ function vb({ className: t, text: n, ...o2 }) {
9792
9793
  const i = E("io-notification-body-description", t);
9793
9794
  return jsx("p", { className: i, ...o2, children: n });
9794
9795
  }
9795
- function ww({ className: n, notification: o2 }) {
9796
- const i = E("io-notification-footer", n), { FooterButton: r2 } = Cw(), { handleWrapperClick: a } = aw(o2), s = useMemo(() => function(e) {
9796
+ function bb({ className: n, notification: o2 }) {
9797
+ const i = E("io-notification-footer", n), { FooterButton: r2 } = Sb(), { handleWrapperClick: a } = ab(o2), s = useMemo(() => function(e) {
9797
9798
  const t = [], n2 = {};
9798
9799
  if (!e)
9799
9800
  return;
@@ -9820,27 +9821,27 @@ function ww({ className: n, notification: o2 }) {
9820
9821
  }(o2.actions), [o2.actions]), c = (t, n2) => t.children ? jsx(ei, { text: t.title, children: t.children.map(c) }, `${t.title}-${n2}`) : ((t2, n3) => jsx(ei.Item, { children: jsx(r2, { variant: "link", className: "io-dropdown-menu-item io-dropdown-menu-button", notificationAction: t2 }) }, `${t2.title}-${n3}`))(t, n2);
9821
9822
  return jsx("div", { className: i, onClick: a, children: jsx(ae, { align: "right", children: s == null ? void 0 : s.map((n2, o3) => n2.children ? jsxs(ae, { variant: "append", children: [jsx(r2, { notificationAction: n2, variant: 0 === o3 ? "primary" : "default" }), jsx(ei, { variant: 0 === o3 ? "primary" : "default", icon: "ellipsis", children: n2.children.map(c) })] }, `${n2.title}-${o3}`) : jsx(r2, { notificationAction: n2, variant: 0 === o3 ? "primary" : "link" }, `${n2.title}-${o3}`)) }) });
9822
9823
  }
9823
- function bw({ notificationAction: t, ...n }) {
9824
+ function wb({ notificationAction: t, ...n }) {
9824
9825
  const o2 = useCallback((e) => {
9825
9826
  e.stopPropagation(), t.onClick({ close: true });
9826
9827
  }, [t]);
9827
9828
  return jsx($, { text: t.title, onClick: o2, ...n });
9828
9829
  }
9829
- const kw = { Header: sw, HeaderCount: cw, HeaderBadge: lw, HeaderIcon: uw, HeaderTitle: dw, HeaderTimestamp: fw, HeaderButtonSnooze: pw, HeaderButtonClose: mw, Body: hw, BodyIcon: gw, BodyTitle: yw, BodyDescription: vw, Footer: ww, FooterButton: bw }, xw = createContext(kw), Sw = memo(({ children: t, components: n }) => {
9830
- const o2 = useMemo(() => ({ ...kw, ...n }), [n]);
9831
- return jsx(xw.Provider, { value: o2, children: t });
9830
+ const kb = { Header: sb, HeaderCount: cb, HeaderBadge: lb, HeaderIcon: ub, HeaderTitle: db, HeaderTimestamp: fb, HeaderButtonSnooze: pb, HeaderButtonClose: mb, Body: hb, BodyIcon: gb, BodyTitle: yb, BodyDescription: vb, Footer: bb, FooterButton: wb }, xb = createContext(kb), Cb = memo(({ children: t, components: n }) => {
9831
+ const o2 = useMemo(() => ({ ...kb, ...n }), [n]);
9832
+ return jsx(xb.Provider, { value: o2, children: t });
9832
9833
  });
9833
- function Cw(e) {
9834
- return { ...useContext(xw), ...e };
9834
+ function Sb(e) {
9835
+ return { ...useContext(xb), ...e };
9835
9836
  }
9836
- function Nw({ className: n, notification: o2, ...i }) {
9837
- const { Header: r2, Body: a, Footer: s } = Cw(), { severity: c } = o2, l = E("io-notification", `severity-${(c == null ? void 0 : c.toLowerCase()) ?? "none"}`, "Acknowledged" !== o2.state && "state-new", n);
9837
+ function Nb({ className: n, notification: o2, ...i }) {
9838
+ const { Header: r2, Body: a, Footer: s } = Sb(), { severity: c } = o2, l = E("io-notification", `severity-${(c == null ? void 0 : c.toLowerCase()) ?? "none"}`, "Acknowledged" !== o2.state && "state-new", n);
9838
9839
  return jsxs("div", { className: l, ...i, children: [jsx(r2, { notification: o2 }), jsx(a, { notification: o2 }), jsx(s, { notification: o2 })] });
9839
9840
  }
9840
- function Ew({ components: t, notification: n, ...o2 }) {
9841
- return jsx(Sw, { components: t, children: jsx(Nw, { notification: n, ...o2 }) });
9841
+ function Eb({ components: t, notification: n, ...o2 }) {
9842
+ return jsx(Cb, { components: t, children: jsx(Nb, { notification: n, ...o2 }) });
9842
9843
  }
9843
- function Iw({ className: n, notifications: o2, ...i }) {
9844
+ function Pb({ className: n, notifications: o2, ...i }) {
9844
9845
  const [r2, s] = useState(false), c = o2.length >= 3 ? "large" : "normal", u = 2 === o2.length ? "small" : c, d = o2[0].severity, f = E("io-notification-stack", r2 && "io-notification-stack-open", "normal" !== u && [`io-notification-stack-${u}`], d && "None" !== d && [`io-notification-stack-${d.toLowerCase()}`], n), p = useCallback(() => {
9845
9846
  s(true);
9846
9847
  }, []), m = useCallback((e) => {
@@ -9848,46 +9849,46 @@ function Iw({ className: n, notifications: o2, ...i }) {
9848
9849
  e2.close();
9849
9850
  });
9850
9851
  }, [o2]);
9851
- return jsxs("div", { className: f, onClick: p, ...i, children: [r2 && "normal" !== u && jsx("div", { className: "io-notification-stack-btn", children: jsx($, { icon: "close", onClick: (e) => m(e), children: jsx("span", { className: "io-btn-text", children: "Clear Stack" }) }) }), o2.map((t) => jsx(Ew, { notification: t }, t.id))] });
9852
+ return jsxs("div", { className: f, onClick: p, ...i, children: [r2 && "normal" !== u && jsx("div", { className: "io-notification-stack-btn", children: jsx($, { icon: "close", onClick: (e) => m(e), children: jsx("span", { className: "io-btn-text", children: "Clear Stack" }) }) }), o2.map((t) => jsx(Eb, { notification: t }, t.id))] });
9852
9853
  }
9853
- function Pw({ ...t }) {
9854
- const { notificationStacks: o2 } = jp();
9855
- return jsx(Fragment, { children: o2.map((n) => jsx(Iw, { notifications: n.items, ...t }, n.key)) });
9854
+ function Ib({ ...t }) {
9855
+ const { notificationStacks: o2 } = _p();
9856
+ return jsx(Fragment, { children: o2.map((n) => jsx(Pb, { notifications: n.items, ...t }, n.key)) });
9856
9857
  }
9857
- Sw.displayName = "ComponentsStoreProvider";
9858
- const Aw = ({ notification: n, Notification: o2, ...i }) => {
9858
+ Cb.displayName = "ComponentsStoreProvider";
9859
+ const Ab = ({ notification: n, Notification: o2, ...i }) => {
9859
9860
  var _a2;
9860
- const { configuration: r2, isBulkActionsSupported: a, selectedNotifications: s, selectNotification: c } = jp(), { isPanelVisible: l, isBulkActionsVisible: u } = Hv(), d = ((_a2 = r2.sourceFilter) == null ? void 0 : _a2.muted) ?? [], f = n.source && d.includes(n.source) || d.includes("*");
9861
+ const { configuration: r2, isBulkActionsSupported: a, selectedNotifications: s, selectNotification: c } = _p(), { isPanelVisible: l, isBulkActionsVisible: u } = Hv(), d = ((_a2 = r2.sourceFilter) == null ? void 0 : _a2.muted) ?? [], f = n.source && d.includes(n.source) || d.includes("*");
9861
9862
  if (!l && f)
9862
9863
  return null;
9863
9864
  const p = l && a && u, m = s.includes(n.id);
9864
9865
  return p ? jsxs("div", { className: E("io-notification-list-bulk-action-item", { selected: m }), children: [jsx(jd, { checked: m, onChange: (e) => c(n.id, e.target.checked) }), jsx(o2, { notification: n, ...i })] }) : jsx(o2, { notification: n, ...i });
9865
9866
  };
9866
- function Ow({ className: n, Notification: o2, notifications: i = [], noNotificationText: r2 = "No notifications to display", ...a }) {
9867
- const s = E("io-notification-list", n), { settings: c } = jp(), { isPanelVisible: l } = Hv(), { toastStacking: u } = c, d = u && !l, f = i.length > 0;
9868
- return jsxs("div", { className: s, ...a, children: [d && jsx(Pw, {}), !d && (f ? i.map((t) => jsx(Aw, { notification: t, Notification: o2, ...a }, t.id)) : jsx("div", { className: "io-notification-list-no-notifications", children: r2 }))] });
9867
+ function Ob({ className: n, Notification: o2, notifications: i = [], noNotificationText: r2 = "No notifications to display", ...a }) {
9868
+ const s = E("io-notification-list", n), { settings: c } = _p(), { isPanelVisible: l } = Hv(), { toastStacking: u } = c, d = u && !l, f = i.length > 0;
9869
+ return jsxs("div", { className: s, ...a, children: [d && jsx(Ib, {}), !d && (f ? i.map((t) => jsx(Ab, { notification: t, Notification: o2, ...a }, t.id)) : jsx("div", { className: "io-notification-list-no-notifications", children: r2 }))] });
9869
9870
  }
9870
- const Lw = { Header: Wv, HeaderCaptionTitle: Vv, HeaderCaptionCount: function({ variant: t = "primary", ...n }) {
9871
- const { notificationsCount: o2 = 0 } = jp();
9871
+ const Lb = { Header: Wv, HeaderCaptionTitle: Vv, HeaderCaptionCount: function({ variant: t = "primary", ...n }) {
9872
+ const { notificationsCount: o2 = 0 } = _p();
9872
9873
  return 0 === o2 ? null : jsx(L, { variant: t, ...n, children: o2 > 99 ? "99+" : o2 });
9873
9874
  }, HeaderCaptionButtonSettings: function({ icon: t = "cog", size: n = "32", variant: o2 = "circle", ...i }) {
9874
- return Ud() ? jsx(P, { icon: t, size: n, variant: o2, ...i }) : null;
9875
+ return Ud() ? jsx(I, { icon: t, size: n, variant: o2, ...i }) : null;
9875
9876
  }, HeaderCaptionButtonClose: function({ icon: t = "close", size: n = "32", variant: o2 = "circle", onClick: i, ...r2 }) {
9876
- const { hidePanel: a } = jp(), s = Ud();
9877
- return jsx(P, { icon: t, size: n, variant: o2, onClick: (e) => {
9877
+ const { hidePanel: a } = _p(), s = Ud();
9878
+ return jsx(I, { icon: t, size: n, variant: o2, onClick: (e) => {
9878
9879
  i ? i(e) : s && a();
9879
9880
  }, ...r2 });
9880
9881
  }, HeaderActions: function({ className: n, ...o2 }) {
9881
- const i = E("io-panel-header-actions", n), { HeaderActionSort: r2, HeaderActionView: a, HeaderActionClear: s, HeaderActionEdit: c } = Rw();
9882
+ const i = E("io-panel-header-actions", n), { HeaderActionSort: r2, HeaderActionView: a, HeaderActionClear: s, HeaderActionEdit: c } = Rb();
9882
9883
  return jsxs("div", { className: i, ...o2, children: [jsxs(ae, { children: [jsx(r2, {}), jsx(a, {})] }), jsxs(ae, { children: [jsx(s, {}), jsx(c, {})] })] });
9883
9884
  }, HeaderActionSort: function({ text: n = "Sort by", ...o2 }) {
9884
9885
  const { sortNotificationsBy: i, setSortBy: r2 } = Hv(), { onNotificationsSort: s } = (() => {
9885
- const { notifications: e } = jp(), [t, n2] = useState(Jv), { key: o3, descending: i2 } = t, r3 = useMemo(() => Zv[o3](e, i2), [e, o3, i2]), s2 = useCallback((e2) => {
9886
+ const { notifications: e } = _p(), [t, n2] = useState(Jv), { key: o3, descending: i2 } = t, r3 = useMemo(() => Zv[o3](e, i2), [e, o3, i2]), s2 = useCallback((e2) => {
9886
9887
  n2((t2) => ({ key: e2, descending: t2.key !== e2 ? Jv.descending : !t2.descending }));
9887
9888
  }, []);
9888
9889
  return { onNotificationsSort: s2, sortedNotifications: r3 };
9889
9890
  })();
9890
- return jsxs(re, { variant: "light", ...o2, children: [jsxs(re.Button, { variant: "link", children: [n, " ", jsx("strong", { children: ew[i].toLowerCase() })] }), jsx(re.Content, { children: jsx(re.List, { variant: "single", checkIcon: "check", children: ["Newest", "Oldest", "Priority"].map((t) => {
9891
+ return jsxs(re, { variant: "light", ...o2, children: [jsxs(re.Button, { variant: "link", children: [n, " ", jsx("strong", { children: eb[i].toLowerCase() })] }), jsx(re.Content, { children: jsx(re.List, { variant: "single", checkIcon: "check", children: ["Newest", "Oldest", "Priority"].map((t) => {
9891
9892
  const n2 = "Priority" === t ? "severity" : t.toLowerCase();
9892
9893
  return jsx(re.Item, { isSelected: i === n2, onClick: () => {
9893
9894
  r2(n2), s(n2);
@@ -9895,63 +9896,63 @@ const Lw = { Header: Wv, HeaderCaptionTitle: Vv, HeaderCaptionCount: function({
9895
9896
  }) }) })] });
9896
9897
  }, HeaderActionView: function({ text: n = "View", ...o2 }) {
9897
9898
  var _a2;
9898
- const { settings: i } = jp(), { viewNotificationsBy: r2, setViewBy: a } = Hv(), s = ((_a2 = i.snooze) == null ? void 0 : _a2.enabled) ? ["All", "Read", "Unread", "Snoozed"] : ["All", "Read", "Unread"];
9899
+ const { settings: i } = _p(), { viewNotificationsBy: r2, setViewBy: a } = Hv(), s = ((_a2 = i.snooze) == null ? void 0 : _a2.enabled) ? ["All", "Read", "Unread", "Snoozed"] : ["All", "Read", "Unread"];
9899
9900
  return jsxs(re, { variant: "light", ...o2, children: [jsxs(re.Button, { variant: "link", children: [n, " ", jsx("strong", { children: r2 })] }), jsx(re.Content, { children: jsx(re.List, { variant: "single", checkIcon: "check", children: s.map((t) => jsx(re.Item, { isSelected: r2 === t.toLowerCase(), onClick: () => a(t.toLowerCase()), children: t }, t)) }) })] });
9900
9901
  }, HeaderActionClear: function({ text: t = "Clear All", ...n }) {
9901
- const { clearAll: o2, notificationsCount: i } = jp();
9902
+ const { clearAll: o2, notificationsCount: i } = _p();
9902
9903
  return jsx($, { variant: "link", text: t, onClick: o2, disabled: 0 === i, ...n });
9903
9904
  }, HeaderActionEdit: function({ tooltip: t = "Bulk Edit", ...n }) {
9904
- const { isBulkActionsSupported: o2, notificationsCount: i } = jp(), { showBulkActions: r2 } = Hv();
9905
- return o2 ? jsx(P, { icon: "pen-to-square", title: t, size: "32", onClick: r2, disabled: 0 === i, ...n }) : null;
9905
+ const { isBulkActionsSupported: o2, notificationsCount: i } = _p(), { showBulkActions: r2 } = Hv();
9906
+ return o2 ? jsx(I, { icon: "pen-to-square", title: t, size: "32", onClick: r2, disabled: 0 === i, ...n }) : null;
9906
9907
  }, HeaderBulkActions: function({ className: n, ...o2 }) {
9907
- const i = E("io-panel-header-bulk-actions", n), { HeaderBulkActionSelect: r2, HeaderBulkActionSelectDropdown: a, HeaderBulkActionMarkAsRead: s, HeaderBulkActionMarkAsUnread: c, HeaderBulkActionSnooze: l, HeaderBulkActionClear: u, HeaderBulkActionClose: d } = Rw(), { isBulkActionsSupported: f } = jp();
9908
+ const i = E("io-panel-header-bulk-actions", n), { HeaderBulkActionSelect: r2, HeaderBulkActionSelectDropdown: a, HeaderBulkActionMarkAsRead: s, HeaderBulkActionMarkAsUnread: c, HeaderBulkActionSnooze: l, HeaderBulkActionClear: u, HeaderBulkActionClose: d } = Rb(), { isBulkActionsSupported: f } = _p();
9908
9909
  return f ? jsx("div", { className: i, ...o2, children: jsxs(ae, { children: [jsx(r2, {}), jsx(a, {}), jsx(s, {}), jsx(c, {}), jsx(l, {}), jsx(u, {}), jsx(d, {})] }) }) : null;
9909
9910
  }, HeaderBulkActionSelect: function({ ...t }) {
9910
- const { isBulkActionsSupported: n, selectedNotifications: o2, selectAllNotifications: i, notificationsCount: r2 } = jp();
9911
+ const { isBulkActionsSupported: n, selectedNotifications: o2, selectAllNotifications: i, notificationsCount: r2 } = _p();
9911
9912
  return n ? jsx(jd, { checked: r2 === o2.length && r2 > 0, onChange: (e) => i("all", e.target.checked), disabled: 0 === r2, ...t }) : null;
9912
9913
  }, HeaderBulkActionSelectDropdown: function({ ...n }) {
9913
- const { isBulkActionsSupported: o2, selectAllNotifications: i, notificationsCount: r2 } = jp();
9914
+ const { isBulkActionsSupported: o2, selectAllNotifications: i, notificationsCount: r2 } = _p();
9914
9915
  return o2 ? jsxs(re, { variant: "light", ...n, children: [jsx(re.ButtonIcon, { variant: "default", icon: "chevron-down", size: "16", iconSize: "10", disabled: 0 === r2 }), jsx(H, { children: jsxs(re.List, { variant: "single", checkIcon: "check", children: [jsx(re.ItemSection, { children: "Select" }), ["All", "Read", "Unread", "Snoozed"].map((t) => jsx(re.Item, { onClick: () => i(t.toLowerCase(), true), children: t }, t))] }) })] }) : null;
9915
9916
  }, HeaderBulkActionMarkAsRead: function({ icon: t = "envelope-open", size: n = "32", variant: o2 = "circle", tooltip: i = "Mark as read", ...r2 }) {
9916
- const { isBulkActionsSupported: s, selectedNotifications: c, setStates: l, notificationsCount: u } = jp(), d = useCallback(() => {
9917
+ const { isBulkActionsSupported: s, selectedNotifications: c, setStates: l, notificationsCount: u } = _p(), d = useCallback(() => {
9917
9918
  l(c, "Seen");
9918
9919
  }, [c, l]);
9919
- return s ? jsx(P, { icon: t, size: n, variant: o2, title: i, onClick: d, disabled: 0 === u, ...r2 }) : null;
9920
+ return s ? jsx(I, { icon: t, size: n, variant: o2, title: i, onClick: d, disabled: 0 === u, ...r2 }) : null;
9920
9921
  }, HeaderBulkActionMarkAsUnread: function({ icon: t = "envelope", size: n = "32", variant: o2 = "circle", tooltip: i = "Mark as unread", ...r2 }) {
9921
- const { isBulkActionsSupported: s, selectedNotifications: c, setStates: l, notificationsCount: u } = jp(), d = useCallback(() => {
9922
+ const { isBulkActionsSupported: s, selectedNotifications: c, setStates: l, notificationsCount: u } = _p(), d = useCallback(() => {
9922
9923
  l(c, "Active");
9923
9924
  }, [c, l]);
9924
- return s ? jsx(P, { icon: t, size: n, variant: o2, title: i, onClick: d, disabled: 0 === u, ...r2 }) : null;
9925
+ return s ? jsx(I, { icon: t, size: n, variant: o2, title: i, onClick: d, disabled: 0 === u, ...r2 }) : null;
9925
9926
  }, HeaderBulkActionSnooze: function({ icon: t = "snooze", size: n = "32", variant: o2 = "circle", tooltip: i = "Snooze", ...r2 }) {
9926
- var _a2, _b;
9927
- const { isBulkActionsSupported: s, selectedNotifications: c, snoozeMany: l, settings: u, notificationsCount: d } = jp(), f = useCallback(() => {
9927
+ var _a2, _b2;
9928
+ const { isBulkActionsSupported: s, selectedNotifications: c, snoozeMany: l, settings: u, notificationsCount: d } = _p(), f = useCallback(() => {
9928
9929
  var _a3;
9929
9930
  l(c, ((_a3 = u.snooze) == null ? void 0 : _a3.duration) ?? 0);
9930
9931
  }, [c, l, (_a2 = u.snooze) == null ? void 0 : _a2.duration]);
9931
- return s && ((_b = u.snooze) == null ? void 0 : _b.enabled) ? jsx(P, { icon: t, size: n, variant: o2, title: i, onClick: f, disabled: 0 === d, ...r2 }) : null;
9932
+ return s && ((_b2 = u.snooze) == null ? void 0 : _b2.enabled) ? jsx(I, { icon: t, size: n, variant: o2, title: i, onClick: f, disabled: 0 === d, ...r2 }) : null;
9932
9933
  }, HeaderBulkActionClear: function({ icon: t = "trash", size: n = "32", variant: o2 = "circle", tooltip: i = "Clear", ...r2 }) {
9933
- const { isBulkActionsSupported: s, selectedNotifications: c, clearMany: l, notificationsCount: u } = jp(), d = useCallback(() => {
9934
+ const { isBulkActionsSupported: s, selectedNotifications: c, clearMany: l, notificationsCount: u } = _p(), d = useCallback(() => {
9934
9935
  l(c);
9935
9936
  }, [c, l]);
9936
- return s ? jsx(P, { icon: t, size: n, variant: o2, title: i, onClick: d, disabled: 0 === u, ...r2 }) : null;
9937
+ return s ? jsx(I, { icon: t, size: n, variant: o2, title: i, onClick: d, disabled: 0 === u, ...r2 }) : null;
9937
9938
  }, HeaderBulkActionClose: function({ text: t = "Done", variant: n = "primary", ...o2 }) {
9938
- const { isBulkActionsSupported: i, notificationsCount: r2 } = jp(), { hideBulkActions: a } = Hv();
9939
+ const { isBulkActionsSupported: i, notificationsCount: r2 } = _p(), { hideBulkActions: a } = Hv();
9939
9940
  return i ? jsx($, { variant: n, text: t, onClick: a, disabled: 0 === r2, ...o2 }) : null;
9940
9941
  }, HeaderSearch: function({ className: n, placeholder: o2 = "Search", iconPrepend: i = "search", iconAppend: r2 = "close", ...s }) {
9941
- const c = E("io-panel-header-search", n), l = useRef(null), { notificationsCount: u } = jp(), { searchQuery: f, setSearch: p } = Hv(), m = f.length > 0, h = useCallback(() => {
9942
+ const c = E("io-panel-header-search", n), l = useRef(null), { notificationsCount: u } = _p(), { searchQuery: f, setSearch: p } = Hv(), m = f.length > 0, h = useCallback(() => {
9942
9943
  p(""), l.current && l.current.focus();
9943
9944
  }, [p]);
9944
9945
  return jsxs("div", { className: c, children: [jsx($d, { ref: l, value: f, iconPrepend: i, iconAppend: m ? r2 : void 0, iconAppendOnClick: m ? h : void 0, placeholder: o2, onChange: (e) => p(e.target.value), ...s }), m && jsx("p", { className: "io-panel-header-search-count", children: `${u} results` })] });
9945
- }, Body: tw, Footer: nw, FooterButtons: ow, FooterButtonClearAll: iw, FooterButtonClearAllOld: rw, Notification: Ew, NotificationsList: Ow }, Dw = createContext(Lw), Tw = memo(({ children: t, components: n }) => {
9946
- const o2 = useMemo(() => ({ ...Lw, ...n }), [n]);
9947
- return jsx(Dw.Provider, { value: o2, children: t });
9946
+ }, Body: tb, Footer: nb, FooterButtons: ob, FooterButtonClearAll: ib, FooterButtonClearAllOld: rb, Notification: Eb, NotificationsList: Ob }, Db = createContext(Lb), Tb = memo(({ children: t, components: n }) => {
9947
+ const o2 = useMemo(() => ({ ...Lb, ...n }), [n]);
9948
+ return jsx(Db.Provider, { value: o2, children: t });
9948
9949
  });
9949
- function Rw(e) {
9950
- return { ...useContext(Dw), ...e };
9950
+ function Rb(e) {
9951
+ return { ...useContext(Db), ...e };
9951
9952
  }
9952
- Tw.displayName = "ComponentsStoreProvider";
9953
- const Fw = ({ className: t, notifications: n, maxToasts: o2 = 1, ...i }) => {
9954
- const r2 = E("io-toasts-body", t), { NotificationsList: a, Notification: s } = zw(), [c, u] = useState([]);
9953
+ Tb.displayName = "ComponentsStoreProvider";
9954
+ const Fb = ({ className: t, notifications: n, maxToasts: o2 = 1, ...i }) => {
9955
+ const r2 = E("io-toasts-body", t), { NotificationsList: a, Notification: s } = zb(), [c, u] = useState([]);
9955
9956
  return useEffect(() => {
9956
9957
  const e = o2 < 0 ? n.length : o2, t2 = n.filter((e2) => "Active" === e2.state).slice(0, e);
9957
9958
  for (const e2 of t2)
@@ -9959,30 +9960,30 @@ const Fw = ({ className: t, notifications: n, maxToasts: o2 = 1, ...i }) => {
9959
9960
  u(t2);
9960
9961
  }, [n, o2]), jsx("div", { className: r2, ...i, children: jsx(a, { Notification: s, notifications: c, noNotificationText: "" }) });
9961
9962
  };
9962
- Fw.displayName = "Body";
9963
- const $w = { Body: Fw, Notification: Ew, NotificationsList: Ow }, _w = createContext($w), jw = memo(({ children: t, components: n }) => {
9964
- const o2 = useMemo(() => ({ ...$w, ...n }), [n]);
9965
- return jsx(_w.Provider, { value: o2, children: t });
9963
+ Fb.displayName = "Body";
9964
+ const $b = { Body: Fb, Notification: Eb, NotificationsList: Ob }, _b = createContext($b), jb = memo(({ children: t, components: n }) => {
9965
+ const o2 = useMemo(() => ({ ...$b, ...n }), [n]);
9966
+ return jsx(_b.Provider, { value: o2, children: t });
9966
9967
  });
9967
- function zw(e) {
9968
- return { ...useContext(_w), ...e };
9969
- }
9970
- jw.displayName = "ComponentsStoreProvider";
9971
- const Kw = (n) => {
9972
- const { General: o2, Layouts: i } = Qw();
9973
- return jsxs(Od, { element: Us, elementProps: n, children: [jsx(o2, {}), jsx(i, {})] });
9974
- }, Gw = ({ title: t = "General", ...n }) => {
9975
- const { Theme: o2 } = Qw();
9968
+ function zb(e) {
9969
+ return { ...useContext(_b), ...e };
9970
+ }
9971
+ jb.displayName = "ComponentsStoreProvider";
9972
+ const Kb = (n) => {
9973
+ const { General: o2, Layouts: i } = Qb(), r2 = [{ key: "general", Component: o2 }, { key: "layouts", Component: i }];
9974
+ return jsx(Od, { element: Us, elementProps: n, children: r2.map(({ key: n2, Component: o3 }, i2) => jsxs(Fragment$1, { children: [jsx(o3, {}), i2 < r2.length - 1 && jsx(J, {})] }, n2)) });
9975
+ }, Gb = ({ title: t = "General", ...n }) => {
9976
+ const { Theme: o2 } = Qb();
9976
9977
  return jsx(T, { title: t, "data-testid": "preferences-panel-general-block", ...n, children: jsx(o2, {}) });
9977
- }, qw = ({ title: t = "Layouts", ...n }) => {
9978
- const { LayoutsShowDeletePrompt: o2 } = Qw();
9978
+ }, qb = ({ title: t = "Layouts", ...n }) => {
9979
+ const { LayoutsShowDeletePrompt: o2 } = Qb();
9979
9980
  return jsx(T, { title: t, "data-testid": "preferences-panel-layouts-block", ...n, children: jsx(o2, {}) });
9980
- }, Jw = { Body: Kw, General: Gw, Theme: vf, Layouts: qw, LayoutsShowUnsavedChangesPrompt: Tf, LayoutsShowDeletePrompt: Rf }, Yw = createContext(Jw), Xw = memo(({ children: t, components: n }) => {
9981
- const o2 = useMemo(() => ({ ...Jw, ...n }), [n]);
9982
- return jsx(Yw.Provider, { value: o2, children: t });
9981
+ }, Jb = { Body: Kb, General: Gb, Theme: vf, Layouts: qb, LayoutsShowUnsavedChangesPrompt: Tf, LayoutsShowDeletePrompt: Rf }, Yb = createContext(Jb), Xb = memo(({ children: t, components: n }) => {
9982
+ const o2 = useMemo(() => ({ ...Jb, ...n }), [n]);
9983
+ return jsx(Yb.Provider, { value: o2, children: t });
9983
9984
  });
9984
- Xw.displayName = "PreferencesPanelComponentsStoreProvider";
9985
- const Qw = () => useContext(Yw);
9985
+ Xb.displayName = "PreferencesPanelComponentsStoreProvider";
9986
+ const Qb = () => useContext(Yb);
9986
9987
  function useExternalWindowPopup() {
9987
9988
  const { getContainer, closePopup, createPopup, hidePopup, showPopup, isOpen, isVisible, popup } = Qd();
9988
9989
  const resizePopup = useCallback(async (size) => {
@@ -10005,9 +10006,9 @@ const requestPageFocus = () => webGroupsManager == null ? void 0 : webGroupsMana
10005
10006
  const requestFrameFocus = (frameId) => webGroupsManager == null ? void 0 : webGroupsManager.requestFrameFocus(frameId);
10006
10007
  const requestGroupFocus = () => webGroupsManager == null ? void 0 : webGroupsManager.requestGroupFocus();
10007
10008
  const openTabOverflowPopup = ({ frameId, location }) => webGroupsManager.openTabOverflowPopup(frameId, location);
10008
- const onCommitGroupCaptionEditingRequested = (targetId, cb) => webGroupsManager.onCommitCaptionEditingRequested(TargetType.Group, targetId, cb);
10009
- const onCommitFlatCaptionEditingRequested = (targetId, cb) => webGroupsManager.onCommitCaptionEditingRequested(TargetType.Frame, targetId, cb);
10010
- const onCommitTabCaptionEditingRequested = (targetId, cb) => webGroupsManager.onCommitCaptionEditingRequested(TargetType.Tab, targetId, cb);
10009
+ const onCommitGroupCaptionEditingRequested = (targetId, cb2) => webGroupsManager.onCommitCaptionEditingRequested(TargetType.Group, targetId, cb2);
10010
+ const onCommitFlatCaptionEditingRequested = (targetId, cb2) => webGroupsManager.onCommitCaptionEditingRequested(TargetType.Frame, targetId, cb2);
10011
+ const onCommitTabCaptionEditingRequested = (targetId, cb2) => webGroupsManager.onCommitCaptionEditingRequested(TargetType.Tab, targetId, cb2);
10011
10012
  export {
10012
10013
  CloneButton,
10013
10014
  CloseButton,