@sheetxl/utils-react 0.8.0-beta.18 → 0.8.0-beta.19

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.
@@ -1,11 +1,11 @@
1
1
  (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`:root{--icon-size-sm:calc(var(--icon-size,1rem) * .875);--icon-size-md:var(--icon-size,1rem);--icon-size-lg:calc(var(--icon-size,1rem) * 1.25);--icon-size-xl:calc(var(--icon-size,1rem) * 1.5)}._Icon_16f7r_10{font-size:var(--icon-size,var(--icon-size-md));min-width:var(--icon-size,var(--icon-size-md));min-height:var(--icon-size,var(--icon-size-md));--icon-stroke-em:.085em;--icon-color:currentColor;--icon-secondary-color:color-mix(in oklab, currentColor 65%, transparent);--icon-tertiary-color:color-mix(in oklab, currentColor 40%, transparent);--icon-line-color:currentColor;--icon-main-opacity:1;--icon-secondary-opacity:.45;--icon-tertiary-opacity:.25;--icon-line-opacity:1;--icon-filter:none;filter:var(--icon-filter);vertical-align:middle;flex:none;justify-content:center;align-items:center;line-height:1;display:inline-flex}._Icon_16f7r_10 .sm{--icon-size:var(--icon-size-sm)}._Icon_16f7r_10 .md{--icon-size:var(--icon-size-md)}._Icon_16f7r_10 .lg{--icon-size:var(--icon-size-lg)}._Icon_16f7r_10 .xl{--icon-size:var(--icon-size-xl)}._Icon_16f7r_10>svg{width:var(--icon-size);height:var(--icon-size)}._Icon_16f7r_10>img{aspect-ratio:1;line-height:1;display:block}._Icon_16f7r_10 .fill,._Icon_16f7r_10 .line{--layer-color:var(--icon-color);--layer-opacity:var(--icon-main-opacity)}._Icon_16f7r_10 .tertiary{--layer-color:var(--icon-tertiary-color)}._Icon_16f7r_10 .primary{--layer-color:var(--icon-primary,var(--sxl-color-primary,#595b5e))}._Icon_16f7r_10 .accent{--layer-color:var(--icon-accent,var(--sxl-color-accent,#9c27b0))}._Icon_16f7r_10 .accent.tint{--layer-color:color-mix(in srgb, var(--icon-accent,var(--sxl-color-accent,#9c27b0)) 80%, white)}._Icon_16f7r_10 .success{--layer-color:var(--icon-success,var(--sxl-color-success,#22c55e))}._Icon_16f7r_10 .success.tint{--layer-color:color-mix(in srgb, var(--icon-success,var(--sxl-color-success,#22c55e)) 80%, white)}._Icon_16f7r_10 .info{--layer-color:var(--icon-info,var(--sxl-color-info,#3b82f6))}._Icon_16f7r_10 .warning{--layer-color:var(--icon-warning,var(--sxl-color-warning,#f59e0b))}._Icon_16f7r_10 .error{--layer-color:var(--icon-error,var(--sxl-color-error,#ef4444))}._Icon_16f7r_10 .error.tint{--layer-color:color-mix(in srgb, var(--icon-error,var(--sxl-color-error,#ef4444)) 80%, white)}._Icon_16f7r_10 .grey{--layer-color:var(--sxl-color-neutral,#ccc)}._Icon_16f7r_10 .shadow{--layer-color:var(--sxl-color-shadow,#ccc)}._Icon_16f7r_10 .fill:not(.fixed):not([fill]){fill:var(--layer-color);stroke:none}._Icon_16f7r_10 .line:not(.fixed):not([stroke]){fill:none;stroke:var(--layer-color,var(--icon-line-color));stroke-width:var(--icon-stroke-em);vector-effect:non-scaling-stroke;pointer-events:none;stroke-linecap:var(--icon-linecap,round);stroke-linejoin:var(--icon-linejoin,round);stroke-miterlimit:var(--icon-miter,4)}._Icon_16f7r_10 .fill:not(.fixed):not([fill]):not([opacity]){opacity:var(--layer-opacity)}._Icon_16f7r_10 .line:not(.fixed):not([stroke]):not([opacity]){opacity:var(--layer-opacity,var(--icon-line-opacity))}._Icon_16f7r_10 .fill.outlined:not(.fixed):not([fill]){stroke:var(--icon-outline,color-mix(in srgb, var(--layer-color) 62%, black));stroke-width:var(--icon-outline-width,1.25);stroke-linejoin:round;paint-order:stroke fill}._Icon_16f7r_10 .fill.rimmed:not(.fixed):not([fill]){--icon-outline:var(--icon-rim,light-dark(#3c3c3c,#101010));--icon-outline-width:2}._Icon_16f7r_10 .knockout{--layer-color:var(--icon-knockout,#fff)}._Icon_16f7r_10 .line.heavy:not(.fixed):not([stroke]){stroke-width:var(--icon-stroke-heavy-em,.155em)}._Icon_16f7r_10 .invert-dark{filter:var(--sxl-image-filter,none)}._Icon_16f7r_10 .muted{opacity:calc(var(--layer-opacity,1) * .6)}@keyframes _sxl-walk_16f7r_1{to{stroke-dashoffset:0}}.icon.walking .walkable.line{stroke-dasharray:var(--walk-dash-length,5px) var(--walk-dash-gap,2px);stroke-dashoffset:calc(var(--walk-dash-length,5px) + var(--walk-dash-gap,2px));animation:_sxl-walk_16f7r_1 var(--walk-duration,.96s) linear infinite;will-change:stroke-dashoffset}._portal-root_105xh_14{pointer-events:none;z-index:1200;width:100%;height:100%;position:absolute;inset:0}._portal-root_105xh_14>*{pointer-events:auto}._fullscreen_105xh_31{z-index:1200}._dragging_at5p4_10,._dragging_at5p4_10 *{user-select:text!important}._float-popper_1z06c_1{max-width:100%;max-height:100%;font-family:var(--sxl-font-family,inherit);font-size:var(--sxl-font-size,inherit);font-weight:var(--sxl-font-weight,inherit);font-style:var(--sxl-font-style,inherit);color:var(--sxl-color-base-content,inherit);display:flex}._float-popper-grow_1z06c_14{opacity:0;will-change:transform, opacity;transition:transform .18s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1);display:flex;transform:scale(.75)}._float-popper-grow_1z06c_14._entered_1z06c_22{opacity:1;transform:scale(1)}._float-popup_juap7_1{flex-direction:column;display:flex}._float-panel_qj0za_1{box-sizing:border-box;background:var(--sxl-color-base-100,#fff);color:var(--sxl-color-base-content,#000000de);border:1px solid var(--sxl-color-elevated-border,transparent);box-shadow:0 5px 5px -3px var(--sxl-color-shadow,#0003), 0 8px 10px 1px var(--sxl-color-shadow,#00000024), 0 3px 14px 2px var(--sxl-color-shadow,#0000001f);border-radius:4px;outline:none;display:flex;overflow:auto}:root{--scrollbar-track-color:#0000000f;--scrollbar-thumb-color:#00000059;--scrollbar-button-color:var(--scrollbar-thumb-color);--scrollbar-active-color:#0000008c;--scrollbar-corner-color:transparent;--scrollbar-border-color:transparent;& .has-touch-thumb,& .has-touch-thumb *{--scrollbar-size:0px;--scrollbar-border-width:0px;--scrollbar-width:var(--scrollbar-size);--scrollbar-height:var(--scrollbar-size)}--scrollbar-width:var(--scrollbar-size);--scrollbar-height:var(--scrollbar-size);--scrollbar-border-radius:9999px;--scrollbar-border-width:2px;--scrollbar-min-thumb-size:24px}._scrollbar_2chse_24{& ::-webkit-scrollbar-button{background:0 0}border-radius:var(--scrollbar-border-radius);border:var(--scrollbar-border-width) solid transparent;flex:100%;align-items:center;display:flex;overflow:hidden;& ._track_2chse_35{background:var(--scrollbar-track-color);border-radius:var(--scrollbar-border-radius);border:var(--scrollbar-border-width) solid transparent;touch-action:none;box-sizing:border-box;flex:100%;position:relative;overflow:hidden}& ._thumb_2chse_47{background:var(--scrollbar-thumb-color);border-radius:var(--scrollbar-border-radius);touch-action:none;transition:background .12s}& ._thumb_2chse_47:hover{background:var(--scrollbar-active-color)}&.vertical{min-width:var(--scrollbar-width,0px);max-width:var(--scrollbar-width,100%);flex-direction:column;& ._thumb_2chse_47{min-height:var(--scrollbar-min-thumb-size)}& ._track_2chse_35{width:100%}}&.horizontal{min-height:var(--scrollbar-height,0px);max-height:var(--scrollbar-height,100%);flex-direction:row;& ._thumb_2chse_47{min-width:var(--scrollbar-min-thumb-size)}& ._track_2chse_35{height:100%}}&.dragging{& ._thumb_2chse_47{background:var(--scrollbar-active-color)}}&.has-touch-thumb{visibility:hidden}& ._scrollbar-button_2chse_96{background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:flex;&>*{fill:var(--scrollbar-button-color);transition:fill .12s}&:hover:not([disabled])>*{fill:var(--scrollbar-active-color)}&[disabled]>*{fill:var(--scrollbar-button-color);opacity:.5}&.vertical{width:var(--scrollbar-width)}&.horizontal{height:var(--scrollbar-height)}}}._touch-thumb_2chse_131{cursor:grab;pointer-events:all;touch-action:none;will-change:opacity;opacity:.7;border-radius:9999px;transition-property:opacity;position:absolute;&:hover,&.dragging{opacity:1}}._scrollpane_zdrii_2{min-width:min-content;min-height:min-content;display:flex;position:relative}._scrollpane-content_zdrii_20{box-sizing:border-box;flex:100%;grid-template-rows:1fr auto;grid-template-columns:1fr auto;width:100%;min-width:0;min-height:0;display:grid;position:relative}._scrollpane-content-cell_zdrii_33{grid-area:1/1/2/2;min-width:0;min-height:0;display:flex;position:relative;overflow:hidden}._vertical-container_zdrii_42{grid-area:1/2/2/3;min-height:0;display:flex}._horizontal-container_zdrii_50{grid-area:2/1/3/2;min-width:0;display:flex;overflow:hidden}._corner-container_zdrii_59{grid-area:2/2/3/3;display:flex}._touch-thumb-overlay_zdrii_68{pointer-events:none;grid-area:1/1/2/2;min-width:0;min-height:0;position:relative}._scrollbar-themed_nj3vu_7{--scrollbar-track-color:color-mix(in srgb, var(--sxl-color-base-content) 4%, transparent);--scrollbar-thumb-color:color-mix(in srgb, var(--sxl-color-base-content) 26%, transparent);--scrollbar-button-color:color-mix(in srgb, var(--sxl-color-base-content) 26%, transparent);--scrollbar-active-color:var(--sxl-color-primary);--scrollbar-corner-color:var(--sxl-color-base-100);--scrollbar-border-color:color-mix(in srgb, var(--sxl-color-base-content) 5%, transparent);--scrollbar-width:13px;--scrollbar-height:13px;--scrollbar-border-radius:9999px;--scrollbar-border-width:2px;--scrollbar-min-thumb-size:24px}._scrollbar-themed_nj3vu_7::-webkit-scrollbar{background-color:var(--scrollbar-track-color);width:var(--scrollbar-width);height:var(--scrollbar-height)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar{background-color:var(--scrollbar-track-color);width:var(--scrollbar-width);height:var(--scrollbar-height)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-button{display:none}._scrollbar-themed_nj3vu_7 ._scrollbar-button_nj3vu_32{fill:var(--scrollbar-thumb-color);transition:fill opacity .26s ease;width:var(--scrollbar-width);height:var(--scrollbar-height);background-color:#0000}._scrollbar-themed_nj3vu_7 ._scrollbar-button_nj3vu_32:hover:not([disabled]){fill:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7 ._scrollbar-button_nj3vu_32:disabled{opacity:.8}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-thumb{border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-thumb-color);min-height:var(--scrollbar-min-thumb-size);min-width:var(--scrollbar-min-thumb-size);border:var(--scrollbar-border-width) solid var(--scrollbar-border-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-thumb{border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-thumb-color);min-height:var(--scrollbar-min-thumb-size);min-width:var(--scrollbar-min-thumb-size);border:var(--scrollbar-border-width) solid var(--scrollbar-border-color)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner-color)}._scrollbar-themed_nj3vu_7 ._pseudo-scrollbar_nj3vu_70{scrollbar-color:var(--scrollbar-thumb-color) transparent}._scrollbar-themed_nj3vu_7 ._pseudo-scrollbar_nj3vu_70:hover:not([disabled]){scrollbar-color:var(--scrollbar-active-color) transparent}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
2
  /**
3
- * @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.18
3
+ * @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.19
4
4
  *
5
5
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
6
6
  * License: MIT
7
7
  */
8
- import { i as e, n as t, r as n, t as r } from "./DMqgkx4jpoNE2WwM.mjs";
8
+ import { i as e, n as t, r as n, t as r } from "./OxtTAi408Mk_-MV2.mjs";
9
9
  import { CommonUtils as i, DefaultLanguagePackService as a, ExpectedError as o, InternalClipboard as s, Notifier as c, TimerUtils as l, fetchLocaleResourceAll as u, formatMessage as d, loadPackageLocales as f, mergeMessageFiles as p, onResourceRootsChange as m, resolveLocaleChain as h } from "@sheetxl/utils";
10
10
  import * as g from "react";
11
11
  import _, { Component as v, cloneElement as y, createContext as b, createElement as x, forwardRef as S, isValidElement as C, lazy as w, memo as T, useCallback as E, useContext as D, useEffect as O, useId as k, useImperativeHandle as A, useLayoutEffect as j, useMemo as M, useReducer as N, useRef as P, useState as F, useSyncExternalStore as I, version as ee } from "react";
@@ -251,7 +251,7 @@ var K = class {
251
251
  register(e, t = !1) {
252
252
  let n = e.key.toLowerCase();
253
253
  if (!t && this._items.has(n)) throw Error(`Command item with key '${n}' is already registered.`);
254
- this._items.set(n, function(e) {
254
+ let r = function(e) {
255
255
  let { getLabel: t, getDescription: n, getIcon: r } = e, i = e.key, o = { ...e };
256
256
  return o.getLabel = (e) => {
257
257
  let n = e && e !== i ? e : void 0, r = q.findByKey(i)?.def, o = (n ? r?.groupLabels?.[n] : void 0) ?? r?.label;
@@ -263,7 +263,10 @@ var K = class {
263
263
  let t = e && e !== i ? e : void 0, n = q.findByKey(i)?.def, a = (t ? n?.groupIcons?.[t] : void 0) ?? n?.icon;
264
264
  return typeof a == "string" ? a : r ? r(e) : void 0;
265
265
  }, o;
266
- }(e)), this._notify();
266
+ }(e);
267
+ return this._items.set(n, r), this._notify(), () => {
268
+ this._items.get(n) === r && (this._items.delete(n), this._notify());
269
+ };
267
270
  }
268
271
  unregister(e) {
269
272
  if (e = e.toLowerCase(), !this._items.has(e)) throw Error(`Command item with key '${e}' is not registered.`);
@@ -2544,65 +2547,64 @@ function Mi(e = {}) {
2544
2547
  var Ni = "data-sxl-theme-mode", Pi = "data-sxl-theme-surface", Fi = (e, t) => {
2545
2548
  let n = { [Pi]: e };
2546
2549
  return t && (n[Ni] = t), n;
2547
- }, Ii = (e, t) => `sheetxl-${e}-${t.replace(/[^A-Za-z0-9_-]/g, "")}`;
2548
- function Li(e) {
2549
- let { mode: t } = e || {}, [n, r] = F(() => {
2550
+ }, Ii = (e, t) => `sheetxl-${e}-${t.replace(/[^A-Za-z0-9_-]/g, "")}`, Li = b("light");
2551
+ function Ri(e) {
2552
+ let { mode: t, fallback: n } = e || {}, r = D(Li), i = n ?? r, [a, o] = F(() => {
2550
2553
  if (t === "light" || t === "dark") return {
2551
2554
  themeMode: t,
2552
2555
  source: "prop"
2553
2556
  };
2554
2557
  if (typeof document < "u") {
2555
- let e = Ri();
2558
+ let e = Bi();
2556
2559
  if (e) return {
2557
2560
  themeMode: e,
2558
2561
  source: "class"
2559
2562
  };
2560
2563
  }
2561
- return {
2562
- themeMode: zi(),
2563
- source: "media"
2564
- };
2564
+ return zi(i);
2565
2565
  });
2566
2566
  return O(() => {
2567
2567
  let e = () => {
2568
- if (t) return void (t === n.themeMode && n.source === "prop" || r((e) => ({
2568
+ if (t) return void (t === a.themeMode && a.source === "prop" || o((e) => ({
2569
2569
  ...e,
2570
2570
  themeMode: t,
2571
2571
  source: "prop"
2572
2572
  })));
2573
- let e = Ri();
2574
- if (e) r({
2573
+ let e = Bi();
2574
+ o(e ? {
2575
2575
  themeMode: e,
2576
2576
  source: "class"
2577
- });
2578
- else {
2579
- let e = zi();
2580
- r({
2581
- themeMode: e,
2582
- source: "media"
2583
- });
2584
- }
2585
- }, i = new MutationObserver(e), a = [document.documentElement, document.body].filter(Boolean);
2586
- for (let e of a) i.observe(e, {
2577
+ } : zi(i));
2578
+ }, n = new MutationObserver(e), r = [document.documentElement, document.body].filter(Boolean);
2579
+ for (let e of r) n.observe(e, {
2587
2580
  attributes: !0,
2588
2581
  attributeFilter: ["class"]
2589
2582
  });
2590
- let o = window.matchMedia("(prefers-color-scheme: dark)");
2591
- return o.addEventListener("change", e), e(), () => {
2592
- i.disconnect(), o.removeEventListener("change", e);
2583
+ let s = i === "system" ? window.matchMedia("(prefers-color-scheme: dark)") : null;
2584
+ return s?.addEventListener("change", e), e(), () => {
2585
+ n.disconnect(), s?.removeEventListener("change", e);
2593
2586
  };
2594
- }, [t]), n;
2587
+ }, [t, i]), a;
2595
2588
  }
2596
- function Ri() {
2589
+ function zi(e) {
2590
+ return e === "system" ? {
2591
+ themeMode: Vi(),
2592
+ source: "media"
2593
+ } : {
2594
+ themeMode: e,
2595
+ source: "fallback"
2596
+ };
2597
+ }
2598
+ function Bi() {
2597
2599
  if (typeof document > "u") return null;
2598
2600
  let e = [...Array.from(document.body.classList), ...document.documentElement ? Array.from(document.documentElement.classList) : []];
2599
2601
  return e.includes("dark") ? "dark" : e.includes("light") ? "light" : null;
2600
2602
  }
2601
- function zi() {
2603
+ function Vi() {
2602
2604
  return typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
2603
2605
  }
2604
- var Bi = b(null), Vi = () => D(Bi), Hi = (e) => {
2605
- let { light: t, dark: n, base: r, surfaces: i, mode: a, surface: o, isolate: s = !1, layer: c = "sxl-overrides", children: l } = e, u = Vi(), d = M(() => ({
2606
+ var Hi = b(null), Ui = () => D(Hi), Wi = (e) => {
2607
+ let { light: t, dark: n, base: r, surfaces: i, mode: a, surface: o, isolate: s = !1, layer: c = "sxl-overrides", children: l } = e, u = Ui(), d = M(() => ({
2606
2608
  ...r?.light ?? {},
2607
2609
  ...u?.light ?? {},
2608
2610
  ...t ?? {}
@@ -2618,7 +2620,7 @@ var Bi = b(null), Vi = () => D(Bi), Hi = (e) => {
2618
2620
  r?.dark,
2619
2621
  u?.dark,
2620
2622
  n
2621
- ]), p = Ii("token", k()), { themeMode: m } = Li(a === "light" || a === "dark" ? { mode: a } : void 0), h = a === void 0 ? void 0 : a === "auto" ? m : a, g = h ?? u?.mode, v = M(() => Mi({
2623
+ ]), p = Ii("token", k()), { themeMode: m } = Ri(a === "light" || a === "dark" ? { mode: a } : { fallback: "system" }), h = a === void 0 ? void 0 : a === "auto" ? m : a, g = h ?? u?.mode, v = M(() => Mi({
2622
2624
  app: {
2623
2625
  light: d,
2624
2626
  dark: f
@@ -2651,31 +2653,31 @@ var Bi = b(null), Vi = () => D(Bi), Hi = (e) => {
2651
2653
  let e = _.Children.only(l);
2652
2654
  s && (x.className = [p, e.props?.className].filter(Boolean).join(" ") || void 0), S = _.cloneElement(e, x);
2653
2655
  }
2654
- return R(Bi.Provider, {
2656
+ return R(Hi.Provider, {
2655
2657
  value: y,
2656
2658
  children: [b, S]
2657
2659
  });
2658
2660
  };
2659
- function Ui(e, t) {
2661
+ function Gi(e, t) {
2660
2662
  if (!e || typeof getComputedStyle > "u") return;
2661
- let n = getComputedStyle(e).getPropertyValue(Gi(t)).trim();
2663
+ let n = getComputedStyle(e).getPropertyValue(qi(t)).trim();
2662
2664
  return n === "" ? void 0 : n;
2663
2665
  }
2664
- function Wi(e, t) {
2666
+ function Ki(e, t) {
2665
2667
  let n = {};
2666
2668
  if (!e || typeof getComputedStyle > "u") return n;
2667
2669
  let r = getComputedStyle(e);
2668
2670
  for (let e of t) {
2669
- let t = r.getPropertyValue(Gi(e)).trim();
2671
+ let t = r.getPropertyValue(qi(e)).trim();
2670
2672
  t !== "" && (n[e] = t);
2671
2673
  }
2672
2674
  return n;
2673
2675
  }
2674
- function Gi(e) {
2676
+ function qi(e) {
2675
2677
  return e.startsWith("--") ? e : `--sxl-${e}`;
2676
2678
  }
2677
- Hi.displayName = "TokenThemeProvider";
2678
- var Ki = b(null), qi = () => {
2679
+ Wi.displayName = "TokenThemeProvider";
2680
+ var Ji = b(null), Yi = () => {
2679
2681
  let e = (t, n) => {
2680
2682
  if (n === null) return;
2681
2683
  t.add(n);
@@ -2738,80 +2740,80 @@ var Ki = b(null), qi = () => {
2738
2740
  })
2739
2741
  };
2740
2742
  return i;
2741
- }, Ji = () => D(Ki), Yi = (e) => {
2743
+ }, Xi = () => D(Ji), Zi = (e) => {
2742
2744
  let t = {};
2743
2745
  return e ? (e.mode && (t[Ni] = e.mode), e.surface && (t[Pi] = e.surface), {
2744
2746
  className: e.classes?.length ? e.classes.join(" ") : void 0,
2745
2747
  attrs: t
2746
2748
  }) : { attrs: t };
2747
2749
  };
2748
- function Xi(e) {
2750
+ function Qi(e) {
2749
2751
  var t, n, r = "";
2750
2752
  if (typeof e == "string" || typeof e == "number") r += e;
2751
2753
  else if (typeof e == "object") {
2752
2754
  if (Array.isArray(e)) {
2753
2755
  var i = e.length;
2754
- for (t = 0; t < i; t++) e[t] && (n = Xi(e[t])) && (r && (r += " "), r += n);
2756
+ for (t = 0; t < i; t++) e[t] && (n = Qi(e[t])) && (r && (r += " "), r += n);
2755
2757
  } else for (n in e) e[n] && (r && (r += " "), r += n);
2756
2758
  }
2757
2759
  return r;
2758
2760
  }
2759
2761
  function X() {
2760
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Xi(e)) && (r && (r += " "), r += t);
2762
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Qi(e)) && (r && (r += " "), r += t);
2761
2763
  return r;
2762
2764
  }
2763
- var Zi = Math.min, Qi = Math.max, $i = Math.round, ea = Math.floor, ta = (e) => ({
2765
+ var $i = Math.min, ea = Math.max, ta = Math.round, na = Math.floor, ra = (e) => ({
2764
2766
  x: e,
2765
2767
  y: e
2766
- }), na = {
2768
+ }), ia = {
2767
2769
  left: "right",
2768
2770
  right: "left",
2769
2771
  bottom: "top",
2770
2772
  top: "bottom"
2771
2773
  };
2772
- function ra(e, t) {
2774
+ function aa(e, t) {
2773
2775
  return typeof e == "function" ? e(t) : e;
2774
2776
  }
2775
- function ia(e) {
2777
+ function oa(e) {
2776
2778
  return e.split("-")[0];
2777
2779
  }
2778
- function aa(e) {
2780
+ function sa(e) {
2779
2781
  return e.split("-")[1];
2780
2782
  }
2781
- function oa(e) {
2783
+ function ca(e) {
2782
2784
  return e === "x" ? "y" : "x";
2783
2785
  }
2784
- function sa(e) {
2786
+ function la(e) {
2785
2787
  return e === "y" ? "height" : "width";
2786
2788
  }
2787
- function ca(e) {
2789
+ function ua(e) {
2788
2790
  let t = e[0];
2789
2791
  return t === "t" || t === "b" ? "y" : "x";
2790
2792
  }
2791
- function la(e) {
2792
- return oa(ca(e));
2793
+ function da(e) {
2794
+ return ca(ua(e));
2793
2795
  }
2794
- function ua(e) {
2796
+ function fa(e) {
2795
2797
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
2796
2798
  }
2797
- var da = ["left", "right"], fa = ["right", "left"], pa = ["top", "bottom"], ma = ["bottom", "top"];
2798
- function ha(e, t, n, r) {
2799
- let i = aa(e), a = function(e, t, n) {
2799
+ var pa = ["left", "right"], ma = ["right", "left"], ha = ["top", "bottom"], ga = ["bottom", "top"];
2800
+ function _a(e, t, n, r) {
2801
+ let i = sa(e), a = function(e, t, n) {
2800
2802
  switch (e) {
2801
2803
  case "top":
2802
- case "bottom": return n ? t ? fa : da : t ? da : fa;
2804
+ case "bottom": return n ? t ? ma : pa : t ? pa : ma;
2803
2805
  case "left":
2804
- case "right": return t ? pa : ma;
2806
+ case "right": return t ? ha : ga;
2805
2807
  default: return [];
2806
2808
  }
2807
- }(ia(e), n === "start", r);
2808
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(ua)))), a;
2809
+ }(oa(e), n === "start", r);
2810
+ return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(fa)))), a;
2809
2811
  }
2810
- function ga(e) {
2811
- let t = ia(e);
2812
- return na[t] + e.slice(t.length);
2812
+ function va(e) {
2813
+ let t = oa(e);
2814
+ return ia[t] + e.slice(t.length);
2813
2815
  }
2814
- function _a(e) {
2816
+ function ya(e) {
2815
2817
  let { x: t, y: n, width: r, height: i } = e;
2816
2818
  return {
2817
2819
  width: r,
@@ -2824,8 +2826,8 @@ function _a(e) {
2824
2826
  y: n
2825
2827
  };
2826
2828
  }
2827
- function va(e, t, n) {
2828
- let { reference: r, floating: i } = e, a = ca(t), o = la(t), s = sa(o), c = ia(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
2829
+ function ba(e, t, n) {
2830
+ let { reference: r, floating: i } = e, a = ua(t), o = da(t), s = la(o), c = oa(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
2829
2831
  switch (c) {
2830
2832
  case "top":
2831
2833
  p = {
@@ -2856,13 +2858,13 @@ function va(e, t, n) {
2856
2858
  y: r.y
2857
2859
  };
2858
2860
  }
2859
- let m = aa(t);
2861
+ let m = sa(t);
2860
2862
  return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
2861
2863
  }
2862
- async function ya(e, t) {
2864
+ async function xa(e, t) {
2863
2865
  var n;
2864
2866
  t === void 0 && (t = {});
2865
- let { x: r, y: i, platform: a, rects: o, elements: s, strategy: c } = e, { boundary: l = "clippingAncestors", rootBoundary: u = "viewport", elementContext: d = "floating", altBoundary: f = !1, padding: p = 0 } = ra(t, e), m = function(e) {
2867
+ let { x: r, y: i, platform: a, rects: o, elements: s, strategy: c } = e, { boundary: l = "clippingAncestors", rootBoundary: u = "viewport", elementContext: d = "floating", altBoundary: f = !1, padding: p = 0 } = aa(t, e), m = function(e) {
2866
2868
  return typeof e == "number" ? {
2867
2869
  top: e,
2868
2870
  right: e,
@@ -2876,7 +2878,7 @@ async function ya(e, t) {
2876
2878
  left: e.left ?? 0
2877
2879
  };
2878
2880
  }(e);
2879
- }(p), h = s[f ? d === "floating" ? "reference" : "floating" : d], g = _a(await a.getClippingRect({
2881
+ }(p), h = s[f ? d === "floating" ? "reference" : "floating" : d], g = ya(await a.getClippingRect({
2880
2882
  element: (n = await (a.isElement == null ? void 0 : a.isElement(h))) == null || n ? h : h.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
2881
2883
  boundary: l,
2882
2884
  rootBoundary: u,
@@ -2889,7 +2891,7 @@ async function ya(e, t) {
2889
2891
  } : o.reference, v = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(s.floating)), y = await (a.isElement == null ? void 0 : a.isElement(v)) && await (a.getScale == null ? void 0 : a.getScale(v)) || {
2890
2892
  x: 1,
2891
2893
  y: 1
2892
- }, b = _a(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
2894
+ }, b = ya(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
2893
2895
  elements: s,
2894
2896
  rect: _,
2895
2897
  offsetParent: v,
@@ -2902,40 +2904,40 @@ async function ya(e, t) {
2902
2904
  right: (b.right - g.right + m.right) / y.x
2903
2905
  };
2904
2906
  }
2905
- var ba = /* @__PURE__ */ new Set(["left", "top"]);
2906
- function xa() {
2907
+ var Sa = /* @__PURE__ */ new Set(["left", "top"]);
2908
+ function Ca() {
2907
2909
  return typeof window < "u";
2908
2910
  }
2909
- function Sa(e) {
2910
- return Ta(e) ? (e.nodeName || "").toLowerCase() : "#document";
2911
- }
2912
- function Ca(e) {
2913
- var t;
2914
- return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
2915
- }
2916
2911
  function wa(e) {
2917
- return ((Ta(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
2912
+ return Da(e) ? (e.nodeName || "").toLowerCase() : "#document";
2918
2913
  }
2919
2914
  function Ta(e) {
2920
- return !!xa() && (e instanceof Node || e instanceof Ca(e).Node);
2915
+ var t;
2916
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
2921
2917
  }
2922
2918
  function Ea(e) {
2923
- return !!xa() && (e instanceof Element || e instanceof Ca(e).Element);
2919
+ return ((Da(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
2924
2920
  }
2925
2921
  function Da(e) {
2926
- return !!xa() && (e instanceof HTMLElement || e instanceof Ca(e).HTMLElement);
2922
+ return !!Ca() && (e instanceof Node || e instanceof Ta(e).Node);
2927
2923
  }
2928
2924
  function Oa(e) {
2929
- return !(!xa() || typeof ShadowRoot > "u") && (e instanceof ShadowRoot || e instanceof Ca(e).ShadowRoot);
2925
+ return !!Ca() && (e instanceof Element || e instanceof Ta(e).Element);
2930
2926
  }
2931
2927
  function ka(e) {
2932
- let { overflow: t, overflowX: n, overflowY: r, display: i } = za(e);
2933
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
2928
+ return !!Ca() && (e instanceof HTMLElement || e instanceof Ta(e).HTMLElement);
2934
2929
  }
2935
2930
  function Aa(e) {
2936
- return /^(table|td|th)$/.test(Sa(e));
2931
+ return !(!Ca() || typeof ShadowRoot > "u") && (e instanceof ShadowRoot || e instanceof Ta(e).ShadowRoot);
2937
2932
  }
2938
2933
  function ja(e) {
2934
+ let { overflow: t, overflowX: n, overflowY: r, display: i } = Va(e);
2935
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
2936
+ }
2937
+ function Ma(e) {
2938
+ return /^(table|td|th)$/.test(wa(e));
2939
+ }
2940
+ function Na(e) {
2939
2941
  try {
2940
2942
  if (e.matches(":popover-open")) return !0;
2941
2943
  } catch {}
@@ -2945,22 +2947,22 @@ function ja(e) {
2945
2947
  return !1;
2946
2948
  }
2947
2949
  }
2948
- var Ma, Na = /transform|translate|scale|rotate|perspective|filter/, Pa = /paint|layout|strict|content/, Fa = (e) => !!e && e !== "none";
2949
- function Ia(e) {
2950
- let t = Ea(e) ? za(e) : e;
2951
- return Fa(t.transform) || Fa(t.translate) || Fa(t.scale) || Fa(t.rotate) || Fa(t.perspective) || !La() && (Fa(t.backdropFilter) || Fa(t.filter)) || Na.test(t.willChange || "") || Pa.test(t.contain || "");
2952
- }
2953
- function La() {
2954
- return Ma ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Ma;
2955
- }
2950
+ var Pa, Fa = /transform|translate|scale|rotate|perspective|filter/, Ia = /paint|layout|strict|content/, La = (e) => !!e && e !== "none";
2956
2951
  function Ra(e) {
2957
- return /^(html|body|#document)$/.test(Sa(e));
2952
+ let t = Oa(e) ? Va(e) : e;
2953
+ return La(t.transform) || La(t.translate) || La(t.scale) || La(t.rotate) || La(t.perspective) || !za() && (La(t.backdropFilter) || La(t.filter)) || Fa.test(t.willChange || "") || Ia.test(t.contain || "");
2958
2954
  }
2959
- function za(e) {
2960
- return Ca(e).getComputedStyle(e);
2955
+ function za() {
2956
+ return Pa ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Pa;
2961
2957
  }
2962
2958
  function Ba(e) {
2963
- return Ea(e) ? {
2959
+ return /^(html|body|#document)$/.test(wa(e));
2960
+ }
2961
+ function Va(e) {
2962
+ return Ta(e).getComputedStyle(e);
2963
+ }
2964
+ function Ha(e) {
2965
+ return Oa(e) ? {
2964
2966
  scrollLeft: e.scrollLeft,
2965
2967
  scrollTop: e.scrollTop
2966
2968
  } : {
@@ -2968,97 +2970,97 @@ function Ba(e) {
2968
2970
  scrollTop: e.scrollY
2969
2971
  };
2970
2972
  }
2971
- function Va(e) {
2972
- if (Sa(e) === "html") return e;
2973
- let t = e.assignedSlot || e.parentNode || Oa(e) && e.host || wa(e);
2974
- return Oa(t) ? t.host : t;
2973
+ function Ua(e) {
2974
+ if (wa(e) === "html") return e;
2975
+ let t = e.assignedSlot || e.parentNode || Aa(e) && e.host || Ea(e);
2976
+ return Aa(t) ? t.host : t;
2975
2977
  }
2976
- function Ha(e) {
2977
- let t = Va(e);
2978
- return Ra(t) ? (e.ownerDocument || e).body : Da(t) && ka(t) ? t : Ha(t);
2978
+ function Wa(e) {
2979
+ let t = Ua(e);
2980
+ return Ba(t) ? (e.ownerDocument || e).body : ka(t) && ja(t) ? t : Wa(t);
2979
2981
  }
2980
- function Ua(e, t, n) {
2982
+ function Ga(e, t, n) {
2981
2983
  t === void 0 && (t = []), n === void 0 && (n = !0);
2982
- let r = Ha(e), i = r === e.ownerDocument?.body, a = Ca(r);
2984
+ let r = Wa(e), i = r === e.ownerDocument?.body, a = Ta(r);
2983
2985
  if (i) {
2984
- let e = Wa(a);
2985
- return t.concat(a, a.visualViewport || [], ka(r) ? r : [], e && n ? Ua(e) : []);
2986
+ let e = Ka(a);
2987
+ return t.concat(a, a.visualViewport || [], ja(r) ? r : [], e && n ? Ga(e) : []);
2986
2988
  }
2987
- return t.concat(r, Ua(r, [], n));
2989
+ return t.concat(r, Ga(r, [], n));
2988
2990
  }
2989
- function Wa(e) {
2991
+ function Ka(e) {
2990
2992
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
2991
2993
  }
2992
- function Ga(e) {
2993
- let t = za(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Da(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = $i(n) !== a || $i(r) !== o;
2994
+ function qa(e) {
2995
+ let t = Va(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = ka(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = ta(n) !== a || ta(r) !== o;
2994
2996
  return s && (n = a, r = o), {
2995
2997
  width: n,
2996
2998
  height: r,
2997
2999
  $: s
2998
3000
  };
2999
3001
  }
3000
- function Ka(e) {
3001
- return Ea(e) ? e : e.contextElement;
3002
+ function Ja(e) {
3003
+ return Oa(e) ? e : e.contextElement;
3002
3004
  }
3003
- function qa(e) {
3004
- let t = Ka(e);
3005
- if (!Da(t)) return ta(1);
3006
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Ga(t), o = (a ? $i(n.width) : n.width) / r, s = (a ? $i(n.height) : n.height) / i;
3005
+ function Ya(e) {
3006
+ let t = Ja(e);
3007
+ if (!ka(t)) return ra(1);
3008
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = qa(t), o = (a ? ta(n.width) : n.width) / r, s = (a ? ta(n.height) : n.height) / i;
3007
3009
  return o && Number.isFinite(o) || (o = 1), s && Number.isFinite(s) || (s = 1), {
3008
3010
  x: o,
3009
3011
  y: s
3010
3012
  };
3011
3013
  }
3012
- var Ja = ta(0);
3013
- function Ya(e) {
3014
- let t = Ca(e);
3015
- return La() && t.visualViewport ? {
3014
+ var Xa = ra(0);
3015
+ function Za(e) {
3016
+ let t = Ta(e);
3017
+ return za() && t.visualViewport ? {
3016
3018
  x: t.visualViewport.offsetLeft,
3017
3019
  y: t.visualViewport.offsetTop
3018
- } : Ja;
3020
+ } : Xa;
3019
3021
  }
3020
- function Xa(e, t, n, r) {
3022
+ function Qa(e, t, n, r) {
3021
3023
  t === void 0 && (t = !1), n === void 0 && (n = !1);
3022
- let i = e.getBoundingClientRect(), a = Ka(e), o = ta(1);
3023
- t && (r ? Ea(r) && (o = qa(r)) : o = qa(e));
3024
+ let i = e.getBoundingClientRect(), a = Ja(e), o = ra(1);
3025
+ t && (r ? Oa(r) && (o = Ya(r)) : o = Ya(e));
3024
3026
  let s = function(e, t, n) {
3025
- return t === void 0 && (t = !1), !!n && t && n === Ca(e);
3026
- }(a, n, r) ? Ya(a) : ta(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
3027
+ return t === void 0 && (t = !1), !!n && t && n === Ta(e);
3028
+ }(a, n, r) ? Za(a) : ra(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
3027
3029
  if (a && r) {
3028
- let e = Ca(a), t = Ea(r) ? Ca(r) : r, n = e, i = Wa(n);
3030
+ let e = Ta(a), t = Oa(r) ? Ta(r) : r, n = e, i = Ka(n);
3029
3031
  for (; i && t !== n;) {
3030
- let e = qa(i), t = i.getBoundingClientRect(), r = za(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
3031
- c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = Ca(i), i = Wa(n);
3032
+ let e = Ya(i), t = i.getBoundingClientRect(), r = Va(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
3033
+ c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = Ta(i), i = Ka(n);
3032
3034
  }
3033
3035
  }
3034
- return _a({
3036
+ return ya({
3035
3037
  width: u,
3036
3038
  height: d,
3037
3039
  x: c,
3038
3040
  y: l
3039
3041
  });
3040
3042
  }
3041
- function Za(e, t) {
3042
- let n = Ba(e).scrollLeft;
3043
- return t ? t.left + n : Xa(wa(e)).left + n;
3043
+ function $a(e, t) {
3044
+ let n = Ha(e).scrollLeft;
3045
+ return t ? t.left + n : Qa(Ea(e)).left + n;
3044
3046
  }
3045
- function Qa(e, t) {
3047
+ function eo(e, t) {
3046
3048
  let n = e.getBoundingClientRect();
3047
3049
  return {
3048
- x: n.left + t.scrollLeft - Za(e, n),
3050
+ x: n.left + t.scrollLeft - $a(e, n),
3049
3051
  y: n.top + t.scrollTop
3050
3052
  };
3051
3053
  }
3052
- function $a(e, t, n) {
3054
+ function to(e, t, n) {
3053
3055
  let r;
3054
3056
  if (t === "viewport" || t === "layoutViewport") r = function(e, t, n) {
3055
3057
  n === void 0 && (n = "viewport");
3056
- let r = n === "layoutViewport", i = Ca(e), a = wa(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
3058
+ let r = n === "layoutViewport", i = Ta(e), a = Ea(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
3057
3059
  if (o) {
3058
- let e = !La() || t === "fixed";
3060
+ let e = !za() || t === "fixed";
3059
3061
  r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
3060
3062
  }
3061
- if (Za(a) <= 0) {
3063
+ if ($a(a) <= 0) {
3062
3064
  let e = a.ownerDocument, t = e.body, n = getComputedStyle(t), r = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, i = Math.abs(a.clientWidth - t.clientWidth - r), o = getComputedStyle(a).scrollbarGutter === "stable both-edges" ? i / 2 : i;
3063
3065
  o <= 25 && (s -= o);
3064
3066
  }
@@ -3070,16 +3072,16 @@ function $a(e, t, n) {
3070
3072
  };
3071
3073
  }(e, n, t);
3072
3074
  else if (t === "document") r = function(e) {
3073
- let t = Ba(e), n = e.ownerDocument.body, r = Qi(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = Qi(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + Za(e), o = -t.scrollTop;
3074
- return za(n).direction === "rtl" && (a += Qi(e.clientWidth, n.clientWidth) - r), {
3075
+ let t = Ha(e), n = e.ownerDocument.body, r = ea(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = ea(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + $a(e), o = -t.scrollTop;
3076
+ return Va(n).direction === "rtl" && (a += ea(e.clientWidth, n.clientWidth) - r), {
3075
3077
  width: r,
3076
3078
  height: i,
3077
3079
  x: a,
3078
3080
  y: o
3079
3081
  };
3080
- }(wa(e));
3081
- else if (Ea(t)) r = function(e, t) {
3082
- let n = Xa(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = qa(e);
3082
+ }(Ea(e));
3083
+ else if (Oa(t)) r = function(e, t) {
3084
+ let n = Qa(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Ya(e);
3083
3085
  return {
3084
3086
  width: e.clientWidth * a.x,
3085
3087
  height: e.clientHeight * a.y,
@@ -3088,7 +3090,7 @@ function $a(e, t, n) {
3088
3090
  };
3089
3091
  }(t, n);
3090
3092
  else {
3091
- let n = Ya(e);
3093
+ let n = Za(e);
3092
3094
  r = {
3093
3095
  x: t.x - n.x,
3094
3096
  y: t.y - n.y,
@@ -3096,29 +3098,29 @@ function $a(e, t, n) {
3096
3098
  height: t.height
3097
3099
  };
3098
3100
  }
3099
- return _a(r);
3101
+ return ya(r);
3100
3102
  }
3101
- function eo(e, t) {
3103
+ function no(e, t) {
3102
3104
  let n = t.get(e);
3103
3105
  if (n) return n;
3104
- let r = Ua(e, [], !1).filter((e) => Ea(e) && Sa(e) !== "body"), i = null, a = za(e).position === "fixed", o = a ? Va(e) : e;
3105
- for (; Ea(o) && !Ra(o);) {
3106
- let e = za(o), t = Ia(o), n = i ? i.position : a ? "fixed" : "";
3107
- t || n !== "fixed" && (n !== "absolute" || e.position !== "static") ? i = e : r = r.filter((e) => e !== o), o = Va(o);
3106
+ let r = Ga(e, [], !1).filter((e) => Oa(e) && wa(e) !== "body"), i = null, a = Va(e).position === "fixed", o = a ? Ua(e) : e;
3107
+ for (; Oa(o) && !Ba(o);) {
3108
+ let e = Va(o), t = Ra(o), n = i ? i.position : a ? "fixed" : "";
3109
+ t || n !== "fixed" && (n !== "absolute" || e.position !== "static") ? i = e : r = r.filter((e) => e !== o), o = Ua(o);
3108
3110
  }
3109
3111
  return t.set(e, r), r;
3110
3112
  }
3111
- function to(e, t, n) {
3112
- let r = Da(t), i = wa(t), a = n === "fixed", o = Xa(e, !0, a, t), s = {
3113
+ function ro(e, t, n) {
3114
+ let r = ka(t), i = Ea(t), a = n === "fixed", o = Qa(e, !0, a, t), s = {
3113
3115
  scrollLeft: 0,
3114
3116
  scrollTop: 0
3115
- }, c = ta(0);
3116
- if ((r || !a) && ((Sa(t) !== "body" || ka(i)) && (s = Ba(t)), r)) {
3117
- let e = Xa(t, !0, a, t);
3117
+ }, c = ra(0);
3118
+ if ((r || !a) && ((wa(t) !== "body" || ja(i)) && (s = Ha(t)), r)) {
3119
+ let e = Qa(t, !0, a, t);
3118
3120
  c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
3119
3121
  }
3120
- !r && i && (c.x = Za(i));
3121
- let l = !i || r || a ? ta(0) : Qa(i, s);
3122
+ !r && i && (c.x = $a(i));
3123
+ let l = !i || r || a ? ra(0) : eo(i, s);
3122
3124
  return {
3123
3125
  x: o.left + s.scrollLeft - c.x - l.x,
3124
3126
  y: o.top + s.scrollTop - c.y - l.y,
@@ -3126,51 +3128,51 @@ function to(e, t, n) {
3126
3128
  height: o.height
3127
3129
  };
3128
3130
  }
3129
- function no(e) {
3130
- return za(e).position === "static";
3131
+ function io(e) {
3132
+ return Va(e).position === "static";
3131
3133
  }
3132
- function ro(e, t) {
3133
- if (!Da(e) || za(e).position === "fixed") return null;
3134
+ function ao(e, t) {
3135
+ if (!ka(e) || Va(e).position === "fixed") return null;
3134
3136
  if (t) return t(e);
3135
3137
  let n = e.offsetParent;
3136
- return wa(e) === n && (n = n.ownerDocument.body), n;
3137
- }
3138
- function io(e, t) {
3139
- let n = Ca(e);
3140
- if (ja(e)) return n;
3141
- if (!Da(e)) {
3142
- let t = Va(e);
3143
- for (; t && !Ra(t);) {
3144
- if (Ea(t) && !no(t)) return t;
3145
- t = Va(t);
3138
+ return Ea(e) === n && (n = n.ownerDocument.body), n;
3139
+ }
3140
+ function oo(e, t) {
3141
+ let n = Ta(e);
3142
+ if (Na(e)) return n;
3143
+ if (!ka(e)) {
3144
+ let t = Ua(e);
3145
+ for (; t && !Ba(t);) {
3146
+ if (Oa(t) && !io(t)) return t;
3147
+ t = Ua(t);
3146
3148
  }
3147
3149
  return n;
3148
3150
  }
3149
- let r = ro(e, t);
3150
- for (; r && Aa(r) && no(r);) r = ro(r, t);
3151
- return r && Ra(r) && no(r) && !Ia(r) ? n : r || function(e) {
3152
- let t = Va(e);
3153
- for (; Da(t) && !Ra(t);) {
3154
- if (Ia(t)) return t;
3155
- if (ja(t)) return null;
3156
- t = Va(t);
3151
+ let r = ao(e, t);
3152
+ for (; r && Ma(r) && io(r);) r = ao(r, t);
3153
+ return r && Ba(r) && io(r) && !Ra(r) ? n : r || function(e) {
3154
+ let t = Ua(e);
3155
+ for (; ka(t) && !Ba(t);) {
3156
+ if (Ra(t)) return t;
3157
+ if (Na(t)) return null;
3158
+ t = Ua(t);
3157
3159
  }
3158
3160
  return null;
3159
3161
  }(e) || n;
3160
3162
  }
3161
- var ao = {
3163
+ var so = {
3162
3164
  convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
3163
- let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = wa(r), s = !!t && ja(t.floating);
3165
+ let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = Ea(r), s = !!t && Na(t.floating);
3164
3166
  if (r === o || s && a) return n;
3165
3167
  let c = {
3166
3168
  scrollLeft: 0,
3167
3169
  scrollTop: 0
3168
- }, l = ta(1), u = ta(0), d = Da(r);
3169
- if ((d || !a) && ((Sa(r) !== "body" || ka(o)) && (c = Ba(r)), d)) {
3170
- let e = Xa(r);
3171
- l = qa(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
3170
+ }, l = ra(1), u = ra(0), d = ka(r);
3171
+ if ((d || !a) && ((wa(r) !== "body" || ja(o)) && (c = Ha(r)), d)) {
3172
+ let e = Qa(r);
3173
+ l = Ya(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
3172
3174
  }
3173
- let f = !o || d || a ? ta(0) : Qa(o, c);
3175
+ let f = !o || d || a ? ra(0) : eo(o, c);
3174
3176
  return {
3175
3177
  width: n.width * l.x,
3176
3178
  height: n.height * l.y,
@@ -3178,12 +3180,12 @@ var ao = {
3178
3180
  y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
3179
3181
  };
3180
3182
  },
3181
- getDocumentElement: wa,
3183
+ getDocumentElement: Ea,
3182
3184
  getClippingRect: function(e) {
3183
- let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? ja(t) ? [] : eo(t, this._c) : [].concat(n), r], o = $a(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
3185
+ let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Na(t) ? [] : no(t, this._c) : [].concat(n), r], o = to(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
3184
3186
  for (let e = 1; e < a.length; e++) {
3185
- let n = $a(t, a[e], i);
3186
- s = Qi(n.top, s), c = Zi(n.right, c), l = Zi(n.bottom, l), u = Qi(n.left, u);
3187
+ let n = to(t, a[e], i);
3188
+ s = ea(n.top, s), c = $i(n.right, c), l = $i(n.bottom, l), u = ea(n.left, u);
3187
3189
  }
3188
3190
  return {
3189
3191
  width: c - u,
@@ -3192,11 +3194,11 @@ var ao = {
3192
3194
  y: s
3193
3195
  };
3194
3196
  },
3195
- getOffsetParent: io,
3197
+ getOffsetParent: oo,
3196
3198
  getElementRects: async function(e) {
3197
- let t = this.getOffsetParent || io, n = this.getDimensions, r = await n(e.floating);
3199
+ let t = this.getOffsetParent || oo, n = this.getDimensions, r = await n(e.floating);
3198
3200
  return {
3199
- reference: to(e.reference, await t(e.floating), e.strategy),
3201
+ reference: ro(e.reference, await t(e.floating), e.strategy),
3200
3202
  floating: {
3201
3203
  x: 0,
3202
3204
  y: 0,
@@ -3209,29 +3211,29 @@ var ao = {
3209
3211
  return e.getClientRects ? Array.from(e.getClientRects()) : [];
3210
3212
  },
3211
3213
  getDimensions: function(e) {
3212
- let { width: t, height: n } = Ga(e);
3214
+ let { width: t, height: n } = qa(e);
3213
3215
  return {
3214
3216
  width: t,
3215
3217
  height: n
3216
3218
  };
3217
3219
  },
3218
- getScale: qa,
3219
- isElement: Ea,
3220
+ getScale: Ya,
3221
+ isElement: Oa,
3220
3222
  isRTL: function(e) {
3221
- return za(e).direction === "rtl";
3223
+ return Va(e).direction === "rtl";
3222
3224
  }
3223
3225
  };
3224
- function oo(e, t) {
3226
+ function co(e, t) {
3225
3227
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
3226
3228
  }
3227
- function so(e, t, n, r) {
3229
+ function lo(e, t, n, r) {
3228
3230
  r === void 0 && (r = {});
3229
- let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Ka(e), u = i || a ? [...l ? Ua(l) : [], ...t ? Ua(t) : []] : [];
3231
+ let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Ja(e), u = i || a ? [...l ? Ga(l) : [], ...t ? Ga(t) : []] : [];
3230
3232
  u.forEach((e) => {
3231
3233
  i && e.addEventListener("scroll", n), a && e.addEventListener("resize", n);
3232
3234
  });
3233
3235
  let d = l && s ? function(e, t, n) {
3234
- let r, i = null, a = wa(e);
3236
+ let r, i = null, a = Ea(e);
3235
3237
  function o() {
3236
3238
  var e;
3237
3239
  clearTimeout(r), (e = i) == null || e.disconnect(), i = null;
@@ -3241,12 +3243,12 @@ function so(e, t, n, r) {
3241
3243
  let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
3242
3244
  if (n || t(), !f || !p) return;
3243
3245
  let m = {
3244
- rootMargin: -ea(d) + "px " + -ea(a.clientWidth - (u + f)) + "px " + -ea(a.clientHeight - (d + p)) + "px " + -ea(u) + "px",
3245
- threshold: Qi(0, Zi(1, c)) || 1
3246
+ rootMargin: -na(d) + "px " + -na(a.clientWidth - (u + f)) + "px " + -na(a.clientHeight - (d + p)) + "px " + -na(u) + "px",
3247
+ threshold: ea(0, $i(1, c)) || 1
3246
3248
  }, h = !0;
3247
3249
  function g(t) {
3248
3250
  let n = t[0].intersectionRatio;
3249
- if (!oo(l, e.getBoundingClientRect())) return s();
3251
+ if (!co(l, e.getBoundingClientRect())) return s();
3250
3252
  if (n !== c) {
3251
3253
  if (!h) return s();
3252
3254
  n ? s(!1, n) : r = setTimeout(() => {
@@ -3265,7 +3267,7 @@ function so(e, t, n, r) {
3265
3267
  }
3266
3268
  i.observe(e);
3267
3269
  }
3268
- let c = Ca(e), l = () => s(n);
3270
+ let c = Ta(e), l = () => s(n);
3269
3271
  return c.addEventListener("resize", l), s(!0), () => {
3270
3272
  c.removeEventListener("resize", l), o();
3271
3273
  };
@@ -3277,10 +3279,10 @@ function so(e, t, n, r) {
3277
3279
  (e = m) == null || e.observe(t);
3278
3280
  })), n();
3279
3281
  }), l && !c && m.observe(l), t && m.observe(t));
3280
- let h = c ? Xa(e) : null;
3282
+ let h = c ? Qa(e) : null;
3281
3283
  return c && function t() {
3282
- let r = Xa(e);
3283
- h && !oo(h, r) && n(), h = r, f = requestAnimationFrame(t);
3284
+ let r = Qa(e);
3285
+ h && !co(h, r) && n(), h = r, f = requestAnimationFrame(t);
3284
3286
  }(), n(), () => {
3285
3287
  var e;
3286
3288
  u.forEach((e) => {
@@ -3288,14 +3290,14 @@ function so(e, t, n, r) {
3288
3290
  }), d?.(), (e = m) == null || e.disconnect(), m = null, c && cancelAnimationFrame(f);
3289
3291
  };
3290
3292
  }
3291
- var co = function(e) {
3293
+ var uo = function(e) {
3292
3294
  return e === void 0 && (e = 0), {
3293
3295
  name: "offset",
3294
3296
  options: e,
3295
3297
  async fn(t) {
3296
3298
  var n;
3297
3299
  let { x: r, y: i, placement: a, middlewareData: o } = t, s = await async function(e, t) {
3298
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = ia(n), s = aa(n), c = ca(n) === "y", l = ba.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = ra(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
3300
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = oa(n), s = sa(n), c = ua(n) === "y", l = Sa.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = aa(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
3299
3301
  mainAxis: d,
3300
3302
  crossAxis: 0,
3301
3303
  alignmentAxis: null
@@ -3322,7 +3324,7 @@ var co = function(e) {
3322
3324
  };
3323
3325
  }
3324
3326
  };
3325
- }, lo = function(e) {
3327
+ }, fo = function(e) {
3326
3328
  return e === void 0 && (e = {}), {
3327
3329
  name: "shift",
3328
3330
  options: e,
@@ -3333,11 +3335,11 @@ var co = function(e) {
3333
3335
  x: t,
3334
3336
  y: n
3335
3337
  };
3336
- } }, ...l } = ra(e, t), u = {
3338
+ } }, ...l } = aa(e, t), u = {
3337
3339
  x: n,
3338
3340
  y: r
3339
- }, d = await a.detectOverflow(t, l), f = ca(i), p = oa(f), m = u[p], h = u[f], g = (e, t) => function(e, t, n) {
3340
- return Qi(e, Zi(t, n));
3341
+ }, d = await a.detectOverflow(t, l), f = ua(i), p = ca(f), m = u[p], h = u[f], g = (e, t) => function(e, t, n) {
3342
+ return ea(e, $i(t, n));
3341
3343
  }(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
3342
3344
  o && (m = g(p, m)), s && (h = g(f, h));
3343
3345
  let _ = c.fn({
@@ -3358,29 +3360,29 @@ var co = function(e) {
3358
3360
  };
3359
3361
  }
3360
3362
  };
3361
- }, uo = function(e) {
3363
+ }, po = function(e) {
3362
3364
  return e === void 0 && (e = {}), {
3363
3365
  name: "flip",
3364
3366
  options: e,
3365
3367
  async fn(t) {
3366
3368
  var n;
3367
- let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = ra(e, t);
3369
+ let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = aa(e, t);
3368
3370
  if ((n = i.arrow) != null && n.alignmentOffset) return {};
3369
- let g = ia(r), _ = ca(o), v = ia(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [ga(o)] : function(e) {
3370
- let t = ga(e);
3371
+ let g = oa(r), _ = ua(o), v = oa(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [va(o)] : function(e) {
3372
+ let t = va(e);
3371
3373
  return [
3372
- ua(e),
3374
+ fa(e),
3373
3375
  t,
3374
- ua(t)
3376
+ fa(t)
3375
3377
  ];
3376
3378
  }(o)), x = p !== "none";
3377
- !d && x && b.push(...ha(o, m, p, y));
3379
+ !d && x && b.push(..._a(o, m, p, y));
3378
3380
  let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
3379
3381
  if (l && w.push(C[g]), u) {
3380
3382
  let e = function(e, t, n) {
3381
3383
  n === void 0 && (n = !1);
3382
- let r = aa(e), i = la(e), a = sa(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
3383
- return t.reference[a] > t.floating[a] && (o = ga(o)), [o, ga(o)];
3384
+ let r = sa(e), i = da(e), a = la(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
3385
+ return t.reference[a] > t.floating[a] && (o = va(o)), [o, va(o)];
3384
3386
  }(r, a, y);
3385
3387
  w.push(C[e[0]], C[e[1]]);
3386
3388
  }
@@ -3389,7 +3391,7 @@ var co = function(e) {
3389
3391
  overflows: w
3390
3392
  }], !w.every((e) => e <= 0)) {
3391
3393
  let e = (i.flip?.index || 0) + 1, t = S[e];
3392
- if (t && (u !== "alignment" || _ === ca(t) || T.every((e) => ca(e.placement) !== _ || e.overflows[0] > 0))) return {
3394
+ if (t && (u !== "alignment" || _ === ua(t) || T.every((e) => ua(e.placement) !== _ || e.overflows[0] > 0))) return {
3393
3395
  data: {
3394
3396
  index: e,
3395
3397
  overflows: T
@@ -3401,7 +3403,7 @@ var co = function(e) {
3401
3403
  case "bestFit": {
3402
3404
  let e = T.filter((e) => {
3403
3405
  if (x) {
3404
- let t = ca(e.placement);
3406
+ let t = ua(e.placement);
3405
3407
  return t === _ || t === "y";
3406
3408
  }
3407
3409
  return !0;
@@ -3416,15 +3418,15 @@ var co = function(e) {
3416
3418
  return {};
3417
3419
  }
3418
3420
  };
3419
- }, fo = function(e) {
3421
+ }, mo = function(e) {
3420
3422
  return e === void 0 && (e = {}), {
3421
3423
  name: "size",
3422
3424
  options: e,
3423
3425
  async fn(t) {
3424
- let { placement: n, rects: r, platform: i, elements: a } = t, { apply: o = () => {}, ...s } = ra(e, t), c = await i.detectOverflow(t, s), l = ia(n), u = aa(n), d = ca(n) === "y", { width: f, height: p } = r.floating, m, h;
3426
+ let { placement: n, rects: r, platform: i, elements: a } = t, { apply: o = () => {}, ...s } = aa(e, t), c = await i.detectOverflow(t, s), l = oa(n), u = sa(n), d = ua(n) === "y", { width: f, height: p } = r.floating, m, h;
3425
3427
  l === "top" || l === "bottom" ? (m = l, h = u === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (h = l, m = u === "end" ? "top" : "bottom");
3426
- let g = p - c.top - c.bottom, _ = f - c.left - c.right, v = Zi(p - c[m], g), y = Zi(f - c[h], _), b = t.middlewareData.shift, x = !b, S = v, C = y;
3427
- b != null && b.enabled.x && (C = _), b != null && b.enabled.y && (S = g), x && !u && (d ? C = f - 2 * Qi(c.left, c.right) : S = p - 2 * Qi(c.top, c.bottom)), await o({
3428
+ let g = p - c.top - c.bottom, _ = f - c.left - c.right, v = $i(p - c[m], g), y = $i(f - c[h], _), b = t.middlewareData.shift, x = !b, S = v, C = y;
3429
+ b != null && b.enabled.x && (C = _), b != null && b.enabled.y && (S = g), x && !u && (d ? C = f - 2 * ea(c.left, c.right) : S = p - 2 * ea(c.top, c.bottom)), await o({
3428
3430
  ...t,
3429
3431
  availableWidth: C,
3430
3432
  availableHeight: S
@@ -3433,21 +3435,21 @@ var co = function(e) {
3433
3435
  return f !== w.width || p !== w.height ? { reset: { rects: !0 } } : {};
3434
3436
  }
3435
3437
  };
3436
- }, po = (e, t, n) => {
3438
+ }, ho = (e, t, n) => {
3437
3439
  let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
3438
- ...ao,
3440
+ ...so,
3439
3441
  ...i.platform,
3440
3442
  _c: r
3441
3443
  };
3442
3444
  return (async (e, t, n) => {
3443
3445
  let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
3444
3446
  ...o,
3445
- detectOverflow: ya
3447
+ detectOverflow: xa
3446
3448
  }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
3447
3449
  reference: e,
3448
3450
  floating: t,
3449
3451
  strategy: i
3450
- }), { x: u, y: d } = va(l, r, c), f = r, p = 0, m = {};
3452
+ }), { x: u, y: d } = ba(l, r, c), f = r, p = 0, m = {};
3451
3453
  for (let n = 0; n < a.length; n++) {
3452
3454
  let h = a[n];
3453
3455
  if (!h) continue;
@@ -3472,7 +3474,7 @@ var co = function(e) {
3472
3474
  reference: e,
3473
3475
  floating: t,
3474
3476
  strategy: i
3475
- }) : x.rects), {x: u, y: d} = va(l, f, c)), n = -1);
3477
+ }) : x.rects), {x: u, y: d} = ba(l, f, c)), n = -1);
3476
3478
  }
3477
3479
  return {
3478
3480
  x: u,
@@ -3485,8 +3487,8 @@ var co = function(e) {
3485
3487
  ...i,
3486
3488
  platform: a
3487
3489
  });
3488
- }, mo = typeof document < "u" ? j : function() {};
3489
- function ho(e, t) {
3490
+ }, go = typeof document < "u" ? j : function() {};
3491
+ function _o(e, t) {
3490
3492
  if (e === t) return !0;
3491
3493
  if (typeof e != typeof t) return !1;
3492
3494
  if (typeof e == "function" && e.toString() === t.toString()) return !0;
@@ -3494,54 +3496,54 @@ function ho(e, t) {
3494
3496
  if (e && t && typeof e == "object") {
3495
3497
  if (Array.isArray(e)) {
3496
3498
  if (n = e.length, n !== t.length) return !1;
3497
- for (r = n; r-- !== 0;) if (!ho(e[r], t[r])) return !1;
3499
+ for (r = n; r-- !== 0;) if (!_o(e[r], t[r])) return !1;
3498
3500
  return !0;
3499
3501
  }
3500
3502
  if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
3501
3503
  for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
3502
3504
  for (r = n; r-- !== 0;) {
3503
3505
  let n = i[r];
3504
- if ((n !== "_owner" || !e.$$typeof) && !ho(e[n], t[n])) return !1;
3506
+ if ((n !== "_owner" || !e.$$typeof) && !_o(e[n], t[n])) return !1;
3505
3507
  }
3506
3508
  return !0;
3507
3509
  }
3508
3510
  return e != e && t != t;
3509
3511
  }
3510
- function go(e) {
3512
+ function vo(e) {
3511
3513
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
3512
3514
  }
3513
- function _o(e, t) {
3514
- let n = go(e);
3515
+ function yo(e, t) {
3516
+ let n = vo(e);
3515
3517
  return Math.round(t * n) / n;
3516
3518
  }
3517
- function vo(e) {
3519
+ function bo(e) {
3518
3520
  let t = g.useRef(e);
3519
- return mo(() => {
3521
+ return go(() => {
3520
3522
  t.current = e;
3521
3523
  }), t;
3522
3524
  }
3523
- var yo = (e, t) => {
3524
- let n = co(e);
3525
+ var xo = (e, t) => {
3526
+ let n = uo(e);
3525
3527
  return {
3526
3528
  name: n.name,
3527
3529
  fn: n.fn,
3528
3530
  options: [e, t]
3529
3531
  };
3530
- }, bo = (e, t) => {
3531
- let n = uo(e);
3532
+ }, So = (e, t) => {
3533
+ let n = po(e);
3532
3534
  return {
3533
3535
  name: n.name,
3534
3536
  fn: n.fn,
3535
3537
  options: [e, t]
3536
3538
  };
3537
- }, xo = (e, t) => {
3538
- let n = fo(e);
3539
+ }, Co = (e, t) => {
3540
+ let n = mo(e);
3539
3541
  return {
3540
3542
  name: n.name,
3541
3543
  fn: n.fn,
3542
3544
  options: [e, t]
3543
3545
  };
3544
- }, So = (e) => {
3546
+ }, wo = (e) => {
3545
3547
  let t = e?.ownerDocument, n = E((e) => {
3546
3548
  if (!t || typeof MutationObserver > "u") return () => {};
3547
3549
  let n = new MutationObserver(e);
@@ -3552,8 +3554,8 @@ var yo = (e, t) => {
3552
3554
  }), () => n.disconnect();
3553
3555
  }, [t]), r = () => `${e?.closest("[data-sxl-theme-mode]")?.getAttribute("data-sxl-theme-mode") ?? ""}\n${e?.closest("[data-sxl-theme-surface]")?.getAttribute("data-sxl-theme-surface") ?? ""}`, [i, a] = I(n, r, r).split("\n"), o = {};
3554
3556
  return i && (o[Ni] = i), a && (o[Pi] = a), o;
3555
- }, Co = () => {
3556
- let e = D(Ki), t = Vi();
3557
+ }, To = () => {
3558
+ let e = D(Ji), t = Ui();
3557
3559
  return M(() => {
3558
3560
  let n = e?.themeScope;
3559
3561
  return t?.scopeClass || t?.mode ? {
@@ -3566,16 +3568,16 @@ var yo = (e, t) => {
3566
3568
  t?.scopeClass,
3567
3569
  t?.mode
3568
3570
  ]);
3569
- }, wo = "_float-popper_1z06c_1", To = "_float-popper-grow_1z06c_14", Eo = "_entered_1z06c_22", Do = [0, 2], Oo = (e) => {
3571
+ }, Eo = "_float-popper_1z06c_1", Do = "_float-popper-grow_1z06c_14", Oo = "_entered_1z06c_22", ko = [0, 2], Ao = (e) => {
3570
3572
  let t = typeof e == "function" ? e() : e;
3571
3573
  if (!t) return null;
3572
3574
  if (t.nodeType === 1) return t;
3573
3575
  let n = t.contextElement;
3574
3576
  return n && n.nodeType === 1 ? n : null;
3575
- }, ko = T(S((e, t) => {
3576
- let { open: n, children: r, label: a, offsets: o = Do, anchorEl: s, anchorPosition: c, placement: l = "bottom-start", resizeOnOverflow: u = !0, boundary: d, shift: f = !1, transition: p = !0, container: m, zIndex: h, strategy: _ = "absolute", themeFrom: v = "provider", followAnchor: y = !1, style: b, className: x, onMount: S, onOpening: C, onOpen: w, onClosing: T, onClose: D, ...k } = e;
3577
+ }, jo = T(S((e, t) => {
3578
+ let { open: n, children: r, label: a, offsets: o = ko, anchorEl: s, anchorPosition: c, placement: l = "bottom-start", resizeOnOverflow: u = !0, boundary: d, shift: f = !1, transition: p = !0, container: m, zIndex: h, strategy: _ = "absolute", themeFrom: v = "provider", followAnchor: y = !1, style: b, className: x, onMount: S, onOpening: C, onOpen: w, onClosing: T, onClose: D, ...k } = e;
3577
3579
  if (Array.isArray(r)) throw Error("children can not be an array");
3578
- let j = Y(S ?? (() => {}), [S]), N = Y(C ?? (() => {}), [C]), I = Y(w ?? (() => {}), [w]), ee = Y(T ?? (() => {}), [T]), te = Y(D ?? (() => {}), [D]), [R, z] = F(!1), [B, H] = F(!1), [U, W] = F(!1), [re, ie] = F(), [ae, G] = F(), oe = P(null), se = P(null), { getPortalContainer: ce } = jn(), le = Co(), ue = So(c ? null : Oo(s)), de = P(d);
3580
+ let j = Y(S ?? (() => {}), [S]), N = Y(C ?? (() => {}), [C]), I = Y(w ?? (() => {}), [w]), ee = Y(T ?? (() => {}), [T]), te = Y(D ?? (() => {}), [D]), [R, z] = F(!1), [B, H] = F(!1), [U, W] = F(!1), [re, ie] = F(), [ae, G] = F(), oe = P(null), se = P(null), { getPortalContainer: ce } = jn(), le = To(), ue = wo(c ? null : Ao(s)), de = P(d);
3579
3581
  de.current = d;
3580
3582
  let fe = !!d, pe = f ? typeof f == "object" ? f.padding ?? 0 : 0 : null, { mainAxis: me, crossAxis: K, alignmentAxis: q } = Array.isArray(o) ? {
3581
3583
  mainAxis: o[1] ?? 0,
@@ -3586,13 +3588,13 @@ var yo = (e, t) => {
3586
3588
  crossAxis: o.crossAxis ?? 0,
3587
3589
  alignmentAxis: o.alignmentAxis
3588
3590
  }, he = M(() => {
3589
- let e = () => de.current?.(), t = [yo({
3591
+ let e = () => de.current?.(), t = [xo({
3590
3592
  mainAxis: me,
3591
3593
  crossAxis: K,
3592
3594
  alignmentAxis: q
3593
- }), bo(fe ? () => ({ boundary: e() }) : { rootBoundary: "document" })];
3595
+ }), So(fe ? () => ({ boundary: e() }) : { rootBoundary: "document" })];
3594
3596
  if (pe !== null && t.push(((e, t) => {
3595
- let n = lo(e);
3597
+ let n = fo(e);
3596
3598
  return {
3597
3599
  name: n.name,
3598
3600
  fn: n.fn,
@@ -3608,7 +3610,7 @@ var yo = (e, t) => {
3608
3610
  let r = Math.max(0, Math.round(t - 10));
3609
3611
  G((e) => e === r ? e : r);
3610
3612
  };
3611
- t.push(xo(fe ? () => ({
3613
+ t.push(Co(fe ? () => ({
3612
3614
  boundary: e(),
3613
3615
  apply: n
3614
3616
  }) : {
@@ -3631,7 +3633,7 @@ var yo = (e, t) => {
3631
3633
  return e && (e.width || e.height || e.x || e.y) ? (se.current = e, e) : se.current ?? new DOMRect(0, 0, 0, 0);
3632
3634
  },
3633
3635
  get contextElement() {
3634
- if (!c) return Oo(s) ?? void 0;
3636
+ if (!c) return Ao(s) ?? void 0;
3635
3637
  }
3636
3638
  }), [c, s]), { refs: J, floatingStyles: _e, isPositioned: ve, placement: ye, update: be } = function(e) {
3637
3639
  e === void 0 && (e = {});
@@ -3643,24 +3645,24 @@ var yo = (e, t) => {
3643
3645
  middlewareData: {},
3644
3646
  isPositioned: !1
3645
3647
  }), [f, p] = g.useState(r);
3646
- ho(f, r) || p(r);
3648
+ _o(f, r) || p(r);
3647
3649
  let [m, h] = g.useState(null), [_, v] = g.useState(null), y = g.useCallback((e) => {
3648
3650
  e !== C.current && (C.current = e, h(e));
3649
3651
  }, []), b = g.useCallback((e) => {
3650
3652
  e !== w.current && (w.current = e, v(e));
3651
- }, []), x = a || m, S = o || _, C = g.useRef(null), w = g.useRef(null), T = g.useRef(u), E = c != null, D = vo(c), O = vo(i), k = vo(l), A = g.useCallback(() => {
3653
+ }, []), x = a || m, S = o || _, C = g.useRef(null), w = g.useRef(null), T = g.useRef(u), E = c != null, D = bo(c), O = bo(i), k = bo(l), A = g.useCallback(() => {
3652
3654
  if (!C.current || !w.current) return;
3653
3655
  let e = {
3654
3656
  placement: t,
3655
3657
  strategy: n,
3656
3658
  middleware: f
3657
3659
  };
3658
- O.current && (e.platform = O.current), po(C.current, w.current, e).then((e) => {
3660
+ O.current && (e.platform = O.current), ho(C.current, w.current, e).then((e) => {
3659
3661
  let t = {
3660
3662
  ...e,
3661
3663
  isPositioned: !1 !== k.current
3662
3664
  };
3663
- j.current && !ho(T.current, t) && (T.current = t, ne.flushSync(() => {
3665
+ j.current && !_o(T.current, t) && (T.current = t, ne.flushSync(() => {
3664
3666
  d(t);
3665
3667
  }));
3666
3668
  });
@@ -3671,16 +3673,16 @@ var yo = (e, t) => {
3671
3673
  O,
3672
3674
  k
3673
3675
  ]);
3674
- mo(() => {
3676
+ go(() => {
3675
3677
  !1 === l && T.current.isPositioned && (T.current.isPositioned = !1, d((e) => ({
3676
3678
  ...e,
3677
3679
  isPositioned: !1
3678
3680
  })));
3679
3681
  }, [l]);
3680
3682
  let j = g.useRef(!1);
3681
- mo(() => (j.current = !0, () => {
3683
+ go(() => (j.current = !0, () => {
3682
3684
  j.current = !1;
3683
- }), []), mo(() => {
3685
+ }), []), go(() => {
3684
3686
  if (x && (C.current = x), S && (w.current = S), x && S) {
3685
3687
  if (D.current) return D.current(x, S, A);
3686
3688
  A();
@@ -3707,11 +3709,11 @@ var yo = (e, t) => {
3707
3709
  top: 0
3708
3710
  };
3709
3711
  if (!N.floating) return e;
3710
- let t = _o(N.floating, u.x), r = _o(N.floating, u.y);
3712
+ let t = yo(N.floating, u.x), r = yo(N.floating, u.y);
3711
3713
  return s ? {
3712
3714
  ...e,
3713
3715
  transform: "translate(" + t + "px, " + r + "px)",
3714
- ...go(N.floating) >= 1.5 && { willChange: "transform" }
3716
+ ...vo(N.floating) >= 1.5 && { willChange: "transform" }
3715
3717
  } : {
3716
3718
  position: n,
3717
3719
  left: t,
@@ -3741,7 +3743,7 @@ var yo = (e, t) => {
3741
3743
  placement: l,
3742
3744
  strategy: _,
3743
3745
  middleware: he,
3744
- whileElementsMounted: M(() => y ? (e, t, n) => so(e, t, n, { animationFrame: !0 }) : so, [y]),
3746
+ whileElementsMounted: M(() => y ? (e, t, n) => lo(e, t, n, { animationFrame: !0 }) : lo, [y]),
3745
3747
  elements: { reference: ge }
3746
3748
  }), xe = E((e) => {
3747
3749
  oe.current = e, J.setFloating(e);
@@ -3777,7 +3779,7 @@ var yo = (e, t) => {
3777
3779
  e.target === e.currentTarget && n && U && I?.();
3778
3780
  }, [n, U]);
3779
3781
  if (!R) return null;
3780
- let Ce = (ye ?? l).startsWith("bottom") ? "left top" : "center bottom", { className: we, attrs: Te } = Yi(le), Ee;
3782
+ let Ce = (ye ?? l).startsWith("bottom") ? "left top" : "center bottom", { className: we, attrs: Te } = Zi(le), Ee;
3781
3783
  Ee = v === "anchor" ? {
3782
3784
  ...Te,
3783
3785
  ...ue
@@ -3785,8 +3787,9 @@ var yo = (e, t) => {
3785
3787
  let De = h ?? vi("popup"), Oe = r || i.EmptyArray;
3786
3788
  return V(L("div", {
3787
3789
  ref: xe,
3788
- className: X(wo, x, we),
3790
+ className: X(Eo, x, we),
3789
3791
  role: void 0,
3792
+ "data-placement": ye ?? l,
3790
3793
  ...Ee,
3791
3794
  style: {
3792
3795
  ..._e,
@@ -3798,23 +3801,23 @@ var yo = (e, t) => {
3798
3801
  },
3799
3802
  ...k,
3800
3803
  children: p ? L("div", {
3801
- className: X(To, { [Eo]: U }),
3804
+ className: X(Do, { [Oo]: U }),
3802
3805
  style: { transformOrigin: Ce },
3803
3806
  onTransitionEnd: Se,
3804
3807
  children: Oe
3805
3808
  }) : Oe
3806
3809
  }), m ?? ce());
3807
3810
  }));
3808
- ko.displayName = "FloatPopper";
3809
- var Ao = "_float-popup_juap7_1", jo = (e) => {
3811
+ jo.displayName = "FloatPopper";
3812
+ var Mo = "_float-popup_juap7_1", No = (e) => {
3810
3813
  let { closeFloat: t, closeFloatAll: n, floatReference: r, popupContainer: i, children: a, className: o, ...s } = e;
3811
3814
  return L("div", {
3812
- className: X("menu", Ao, o),
3815
+ className: X("menu", Mo, o),
3813
3816
  ...s,
3814
3817
  children: a
3815
3818
  });
3816
- }, Mo = "_float-panel_qj0za_1", No = T(S((e, t) => {
3817
- let { floatReference: n, popupContainer: r, renderPopupPanel: i = jo, children: a, className: o, ...s } = e, c = {
3819
+ }, Po = "_float-panel_qj0za_1", Fo = T(S((e, t) => {
3820
+ let { floatReference: n, popupContainer: r, renderPopupPanel: i = No, children: a, className: o, ...s } = e, c = {
3818
3821
  popupContainer: r,
3819
3822
  floatReference: n,
3820
3823
  children: a,
@@ -3822,7 +3825,7 @@ var Ao = "_float-popup_juap7_1", jo = (e) => {
3822
3825
  };
3823
3826
  return L("div", {
3824
3827
  ref: t,
3825
- className: X(Mo, o),
3828
+ className: X(Po, o),
3826
3829
  tabIndex: 0,
3827
3830
  children: L(ii, {
3828
3831
  render: i,
@@ -3830,11 +3833,11 @@ var Ao = "_float-popup_juap7_1", jo = (e) => {
3830
3833
  })
3831
3834
  });
3832
3835
  }));
3833
- No.displayName = "FloatPanelSurface";
3834
- var Po = T(S((e, t) => {
3835
- let { open: n, anchorEl: r, anchorPosition: i, label: a, floatReference: o, renderPopupPanel: s = jo, propsPopper: c, onMount: l, onClosing: u, onClose: d, onOpening: f, onOpen: p, children: m, className: h, ...g } = e, _ = Y(u ?? (() => {}), [u]), v = Y(d ?? (() => {}), [d]), y = Y(f ?? (() => {}), [f]), b = Y(p ?? (() => {}), [p]), [x, S] = F(), C = P(null), w = Y((e, t) => {
3836
+ Fo.displayName = "FloatPanelSurface";
3837
+ var Io = T(S((e, t) => {
3838
+ let { open: n, anchorEl: r, anchorPosition: i, label: a, floatReference: o, renderPopupPanel: s = No, propsPopper: c, onMount: l, onClosing: u, onClose: d, onOpening: f, onOpen: p, children: m, className: h, ...g } = e, _ = Y(u ?? (() => {}), [u]), v = Y(d ?? (() => {}), [d]), y = Y(f ?? (() => {}), [f]), b = Y(p ?? (() => {}), [p]), [x, S] = F(), C = P(null), w = Y((e, t) => {
3836
3839
  S(e), l?.(C.current, t);
3837
- }, [l]), T = M(() => L(No, {
3840
+ }, [l]), T = M(() => L(Fo, {
3838
3841
  ref: C,
3839
3842
  className: h,
3840
3843
  floatReference: o,
@@ -3848,7 +3851,7 @@ var Po = T(S((e, t) => {
3848
3851
  x,
3849
3852
  o
3850
3853
  ]);
3851
- return L(ko, {
3854
+ return L(jo, {
3852
3855
  ref: t,
3853
3856
  anchorEl: r,
3854
3857
  anchorPosition: i,
@@ -3863,9 +3866,9 @@ var Po = T(S((e, t) => {
3863
3866
  children: T
3864
3867
  });
3865
3868
  }));
3866
- Po.displayName = "FloatPanel";
3867
- var Fo = (e) => L(Po, { ...e }), Io = (e) => {
3868
- let { renderFloatPanel: t, renderPopupPanel: n, propsFloatPanel: r, themeScopeClass: i, themeSurface: a, themeMode: o, isolate: s, rootRef: c, children: l } = e, u = D(Ki), d = M(() => {
3869
+ Io.displayName = "FloatPanel";
3870
+ var Lo = (e) => L(Io, { ...e }), Ro = (e) => {
3871
+ let { renderFloatPanel: t, renderPopupPanel: n, propsFloatPanel: r, themeScopeClass: i, themeSurface: a, themeMode: o, isolate: s, rootRef: c, children: l } = e, u = D(Ji), d = M(() => {
3869
3872
  let e = u?.themeScope, s = i ? [...e?.classes ?? [], i] : e?.classes, c = a ?? e?.surface, l = o ?? e?.mode, d = s?.length || c || l ? {
3870
3873
  classes: s,
3871
3874
  surface: c,
@@ -3885,11 +3888,11 @@ var Fo = (e) => L(Po, { ...e }), Io = (e) => {
3885
3888
  a,
3886
3889
  o,
3887
3890
  u
3888
- ]), f = Qt(), p = L(Ki.Provider, {
3891
+ ]), f = Qt(), p = L(Ji.Provider, {
3889
3892
  value: d,
3890
3893
  children: l
3891
3894
  }), m = s || !f, h = P(null);
3892
- m && h.current === null && (h.current = qi());
3895
+ m && h.current === null && (h.current = Yi());
3893
3896
  let g = m ? h.current : null;
3894
3897
  g && (p = L(Zt, {
3895
3898
  value: g,
@@ -3903,8 +3906,8 @@ var Fo = (e) => L(Po, { ...e }), Io = (e) => {
3903
3906
  c.current = null;
3904
3907
  });
3905
3908
  }, [c, _]), p;
3906
- }, Lo = (e) => {
3907
- let { anchor: t, autoFocus: n = !0, disableClickAway: r = !1, label: i = null, parentFloat: a = null, onOpen: o, onClose: s, propsPopper: c, renderPopupPanel: l, renderFloatPanel: u } = e ?? {}, d = Y(o ?? (() => {}), [o]), f = Y(s ?? (() => {}), [s]), p = Ji(), m = u ?? p?.renderFloatPanel ?? Fo, h = l === void 0 ? p?.renderPopupPanel ?? jo : l, g = Qt(), [_, v] = F(null), [y, b] = F(!1), [x, S] = F(!1), C = M(() => a ?? g ?? qi(), []), w = M(() => C.getRoot(), []), T = M(() => ({ label: i }), []), D = P(null), k = P(t);
3909
+ }, zo = (e) => {
3910
+ let { anchor: t, autoFocus: n = !0, disableClickAway: r = !1, label: i = null, parentFloat: a = null, onOpen: o, onClose: s, propsPopper: c, renderPopupPanel: l, renderFloatPanel: u } = e ?? {}, d = Y(o ?? (() => {}), [o]), f = Y(s ?? (() => {}), [s]), p = Xi(), m = u ?? p?.renderFloatPanel ?? Lo, h = l === void 0 ? p?.renderPopupPanel ?? No : l, g = Qt(), [_, v] = F(null), [y, b] = F(!1), [x, S] = F(!1), C = M(() => a ?? g ?? Yi(), []), w = M(() => C.getRoot(), []), T = M(() => ({ label: i }), []), D = P(null), k = P(t);
3908
3911
  O(() => {
3909
3912
  k.current = t;
3910
3913
  }, [t]);
@@ -4058,8 +4061,8 @@ var Fo = (e) => L(Po, { ...e }), Io = (e) => {
4058
4061
  reference: G,
4059
4062
  isOpen: !0 === _
4060
4063
  };
4061
- }, Ro = {}, zo = (e) => {
4062
- let { onPointerDown: t, style: n, splitDirection: r, paddingBefore: i = 0, paddingAfter: a = 0, disabled: o, key: s, propsHitArea: c = Ro, ...l } = e, u = r === "row", { style: d, className: f, ...p } = c;
4064
+ }, Bo = {}, Vo = (e) => {
4065
+ let { onPointerDown: t, style: n, splitDirection: r, paddingBefore: i = 0, paddingAfter: a = 0, disabled: o, key: s, propsHitArea: c = Bo, ...l } = e, u = r === "row", { style: d, className: f, ...p } = c;
4063
4066
  return L("div", {
4064
4067
  style: {
4065
4068
  ...n,
@@ -4080,15 +4083,15 @@ var Fo = (e) => L(Po, { ...e }), Io = (e) => {
4080
4083
  ...p
4081
4084
  })
4082
4085
  }, s);
4083
- }, Bo = {}, Vo = (e, t, n = !0) => e === null ? null : e.pixels === null ? (n ? e.percent : 100 - e.percent) / 100 * t : n ? e.pixels : t - e.pixels, Ho = (e, t = !0) => e?.percent ? `${t ? e.percent : 100 - e.percent}%` : e?.pixels ? `${e.pixels}px` : void 0, Uo = (e, t) => {
4086
+ }, Ho = {}, Uo = (e, t, n = !0) => e === null ? null : e.pixels === null ? (n ? e.percent : 100 - e.percent) / 100 * t : n ? e.pixels : t - e.pixels, Wo = (e, t = !0) => e?.percent ? `${t ? e.percent : 100 - e.percent}%` : e?.pixels ? `${e.pixels}px` : void 0, Go = (e, t) => {
4084
4087
  if (e == null) return null;
4085
4088
  let n = {
4086
4089
  percent: null,
4087
4090
  pixels: null
4088
4091
  }, r = t;
4089
4092
  return typeof e == "string" && ((e = e.trim().toLowerCase()).endsWith("px") ? (e = e.substring(0, e.length - 2), r = !1) : e.endsWith("%") && (e = e.substring(0, e.length - 1), r = !0), e = parseFloat(e)), r ? n.percent = e : n.pixels = e, Object.freeze(n);
4090
- }, Wo = T(S((e, t) => {
4091
- let { elementBefore: n, elementAfter: r, splitDirection: i = "row", fixedPane: a = null, position: o, onPositionChange: s, minBefore: c, maxBefore: l, minAfter: u, maxAfter: d, children: f, className: p, style: m, disabled: h = !1, onDragStart: g, onDragResize: _, onDragFinish: v, propsResizer: y = Bo, propsPane: b = Bo, propsPaneBefore: x = Bo, propsPaneAfter: S = Bo, renderResizer: w = zo } = e;
4093
+ }, Ko = T(S((e, t) => {
4094
+ let { elementBefore: n, elementAfter: r, splitDirection: i = "row", fixedPane: a = null, position: o, onPositionChange: s, minBefore: c, maxBefore: l, minAfter: u, maxAfter: d, children: f, className: p, style: m, disabled: h = !1, onDragStart: g, onDragResize: _, onDragFinish: v, propsResizer: y = Ho, propsPane: b = Ho, propsPaneBefore: x = Ho, propsPaneAfter: S = Ho, renderResizer: w = Vo } = e;
4092
4095
  if (f) throw Error("Use elementBefore and elementAfter instead of children.");
4093
4096
  let T = M(() => C(r) && C(n), [r, n]), E = M(() => {
4094
4097
  let e = null;
@@ -4097,19 +4100,19 @@ var Fo = (e) => L(Po, { ...e }), Io = (e) => {
4097
4100
  return {
4098
4101
  fixedPaneOffset: e,
4099
4102
  isPercent: t,
4100
- minBefore: Uo(c, t),
4101
- maxBefore: Uo(l, t),
4102
- minAfter: Uo(u, t),
4103
- maxAfter: Uo(d, t)
4103
+ minBefore: Go(c, t),
4104
+ maxBefore: Go(l, t),
4105
+ minAfter: Go(u, t),
4106
+ maxAfter: Go(d, t)
4104
4107
  };
4105
4108
  }, [
4106
4109
  c,
4107
4110
  l,
4108
4111
  u,
4109
4112
  d
4110
- ]), D = Y(s ?? (() => {}), [s]), [k, A] = F(() => Uo(o, a === null));
4113
+ ]), D = Y(s ?? (() => {}), [s]), [k, A] = F(() => Go(o, a === null));
4111
4114
  O(() => {
4112
- A(Uo(o, a === null));
4115
+ A(Go(o, a === null));
4113
4116
  }, [o, a]);
4114
4117
  let [j, { width: N, height: I }] = Vr(), [ee, { width: te, height: z }] = Vr(), ne = i === "row" ? te : z, B = i === "row" ? N : I, V = M(() => ((e, t, n, r) => {
4115
4118
  let i = [null, null], a = [null, null];
@@ -4119,13 +4122,13 @@ var Fo = (e) => L(Po, { ...e }), Io = (e) => {
4119
4122
  }, t === 0) return e.pixels !== void 0 && e.pixels !== null ? r.fixedPaneOffset === 1 ? (i[1] = e.pixels - n, a[0] = 100) : (i[0] = e.pixels, a[1] = 100) : e.percent !== void 0 && e.percent !== null && (r.fixedPaneOffset === 1 ? (a[1] = e.percent, a[0] = 100 - e.percent) : (a[0] = e.percent, a[1] = 100 - e.percent)), {
4120
4123
  percents: a,
4121
4124
  pixels: i,
4122
- minBefore: Ho(r.minBefore, !0),
4123
- maxBefore: Ho(r.maxBefore, !0),
4124
- minAfter: Ho(r.minAfter),
4125
- maxAfter: Ho(r.maxAfter)
4125
+ minBefore: Wo(r.minBefore, !0),
4126
+ maxBefore: Wo(r.maxBefore, !0),
4127
+ minAfter: Wo(r.minAfter),
4128
+ maxAfter: Wo(r.maxAfter)
4126
4129
  };
4127
- let o = Vo(e, t, r.fixedPaneOffset !== 1) ?? 0, s = t - n, c = Vo(r.minBefore, s, !0) ?? 0, l = Vo(r.maxBefore, s, !0) ?? s, u = 0, d = 0, f = 0, p = s;
4128
- u = (Vo(r.maxAfter, t, !1) ?? n) - n, d = Vo(r.minAfter, t, !1) ?? t, f = Math.max(c, u), p = Math.min(l, d), o = Math.max(f, Math.min(o, p)), d = Math.min(s - o, Vo(r.maxAfter, s - o, !0) ?? s), u = Math.min(s - o, Vo(r.minAfter, s - o, !0) ?? s), i[0] = o, i[1] = s - o;
4130
+ let o = Uo(e, t, r.fixedPaneOffset !== 1) ?? 0, s = t - n, c = Uo(r.minBefore, s, !0) ?? 0, l = Uo(r.maxBefore, s, !0) ?? s, u = 0, d = 0, f = 0, p = s;
4131
+ u = (Uo(r.maxAfter, t, !1) ?? n) - n, d = Uo(r.minAfter, t, !1) ?? t, f = Math.max(c, u), p = Math.min(l, d), o = Math.max(f, Math.min(o, p)), d = Math.min(s - o, Uo(r.maxAfter, s - o, !0) ?? s), u = Math.min(s - o, Uo(r.minAfter, s - o, !0) ?? s), i[0] = o, i[1] = s - o;
4129
4132
  let m = Math.max(0, Math.min(100, o / s * 100));
4130
4133
  return a[0] = m, a[1] = 100 - m, {
4131
4134
  percents: a,
@@ -4159,7 +4162,7 @@ var Fo = (e) => L(Po, { ...e }), Io = (e) => {
4159
4162
  flexDirection: i,
4160
4163
  display: "flex"
4161
4164
  }, { className: ge, style: J, onPointerDown: _e, ...ve } = y, ye = Y((e) => {
4162
- let t = Uo(e, a === null);
4165
+ let t = Go(e, a === null);
4163
4166
  A(t);
4164
4167
  }, [a]), be = Y((e) => {
4165
4168
  if (h || !H) return;
@@ -4177,7 +4180,7 @@ var Fo = (e) => L(Po, { ...e }), Io = (e) => {
4177
4180
  B
4178
4181
  ]), xe = Y((e) => {
4179
4182
  if (document.removeEventListener("pointermove", be), document.removeEventListener("touchmove", be), document.removeEventListener("pointerup", xe), H && (U(!1), k)) {
4180
- if (ie(k.pixels ?? 0), !Uo(o, a === null) || k.pixels !== o) {
4183
+ if (ie(k.pixels ?? 0), !Go(o, a === null) || k.pixels !== o) {
4181
4184
  let e = k.pixels ?? 0, t = {
4182
4185
  pixels: e,
4183
4186
  percent: k.percent ?? e / B * 100
@@ -4282,8 +4285,8 @@ var Fo = (e) => L(Po, { ...e }), Io = (e) => {
4282
4285
  ]
4283
4286
  });
4284
4287
  }));
4285
- Wo.displayName = "SplitPane";
4286
- var Go = class {
4288
+ Ko.displayName = "SplitPane";
4289
+ var qo = class {
4287
4290
  constructor() {
4288
4291
  this.store = /* @__PURE__ */ new Map();
4289
4292
  }
@@ -4296,32 +4299,32 @@ var Go = class {
4296
4299
  removeItem(e) {
4297
4300
  this.store.delete(e);
4298
4301
  }
4299
- }, Ko = b(null), qo = Object.freeze({}), Jo = {
4302
+ }, Jo = b(null), Yo = Object.freeze({}), Xo = {
4300
4303
  parse: (e) => e ? JSON.parse(e) : null,
4301
4304
  stringify: JSON.stringify
4302
- }, Yo = /* @__PURE__ */ new Map(), Xo = {
4303
- store: new Go(),
4305
+ }, Zo = /* @__PURE__ */ new Map(), Qo = {
4306
+ store: new qo(),
4304
4307
  namespace: "",
4305
- serializer: Jo,
4308
+ serializer: Xo,
4306
4309
  onReady: (e) => {
4307
4310
  e();
4308
4311
  },
4309
4312
  debounceMs: 0,
4310
- defaultValues: qo,
4313
+ defaultValues: Yo,
4311
4314
  notify: (e, t) => {
4312
- let n = Yo.get(e);
4315
+ let n = Zo.get(e);
4313
4316
  n && n.forEach((e) => e(t));
4314
4317
  },
4315
4318
  subscribeKey: (e, t) => {
4316
- let n = Yo.get(e) ?? /* @__PURE__ */ new Set();
4317
- return n.add(t), Yo.set(e, n), () => {
4318
- let n = Yo.get(e);
4319
- n && (n.delete(t), n.size === 0 && Yo.delete(e));
4319
+ let n = Zo.get(e) ?? /* @__PURE__ */ new Set();
4320
+ return n.add(t), Zo.set(e, n), () => {
4321
+ let n = Zo.get(e);
4322
+ n && (n.delete(t), n.size === 0 && Zo.delete(e));
4320
4323
  };
4321
4324
  }
4322
4325
  };
4323
- function Zo(e, t, n = Qo) {
4324
- let { store: r, namespace: i, serializer: a, debounceMs: o, subscribeKey: s, notify: c, defaultValues: l } = D(Ko) || Xo, u = n.serializer ?? a ?? Jo, d = P(null), f = M(() => e == null ? null : `${i}:${e}`, [i, e]), p = f ? `${f}::v` : null, m = () => {
4326
+ function $o(e, t, n = es) {
4327
+ let { store: r, namespace: i, serializer: a, debounceMs: o, subscribeKey: s, notify: c, defaultValues: l } = D(Jo) || Qo, u = n.serializer ?? a ?? Xo, d = P(null), f = M(() => e == null ? null : `${i}:${e}`, [i, e]), p = f ? `${f}::v` : null, m = () => {
4325
4328
  if (e != null && Object.prototype.hasOwnProperty.call(l, e)) return l[e];
4326
4329
  let n = t;
4327
4330
  return typeof n == "function" ? n() : n;
@@ -4401,11 +4404,11 @@ function Zo(e, t, n = Qo) {
4401
4404
  E(() => C.current(), [])
4402
4405
  ];
4403
4406
  }
4404
- var Qo = {};
4405
- function $o(e) {
4406
- let { store: t, namespace: n = "", serializer: r = ns, debounceMs: i = 150, defaultValues: a = qo, children: o } = e, s = P(a);
4407
- rs(s.current, a) || (s.current = a);
4408
- let c = s.current, l = M(() => typeof window > "u" ? new Go() : t ?? new Go(), [t]), u = P(/* @__PURE__ */ new Map()), d = M(() => ({
4407
+ var es = {};
4408
+ function ts(e) {
4409
+ let { store: t, namespace: n = "", serializer: r = is, debounceMs: i = 150, defaultValues: a = Yo, children: o } = e, s = P(a);
4410
+ as(s.current, a) || (s.current = a);
4411
+ let c = s.current, l = M(() => typeof window > "u" ? new qo() : t ?? new qo(), [t]), u = P(/* @__PURE__ */ new Map()), d = M(() => ({
4409
4412
  store: l,
4410
4413
  namespace: n,
4411
4414
  serializer: r,
@@ -4438,19 +4441,19 @@ function $o(e) {
4438
4441
  let t = e.slice(d.namespace.length + 1);
4439
4442
  d.notify(t);
4440
4443
  });
4441
- }, [d]), L(Ko.Provider, {
4444
+ }, [d]), L(Jo.Provider, {
4442
4445
  value: d,
4443
4446
  children: o
4444
4447
  });
4445
4448
  }
4446
- var es, ts, ns = {
4449
+ var ns, rs, is = {
4447
4450
  parse: (e) => e == null ? null : JSON.parse(e),
4448
4451
  stringify: JSON.stringify
4449
- }, rs = (e, t) => {
4452
+ }, as = (e, t) => {
4450
4453
  if (e === t) return !0;
4451
4454
  let n = Object.keys(e);
4452
4455
  return n.length === Object.keys(t).length && n.every((n) => Object.prototype.hasOwnProperty.call(t, n) && Object.is(e[n], t[n]));
4453
- }, is = class {
4456
+ }, os = class {
4454
4457
  constructor(e = window.localStorage) {
4455
4458
  this.storage = e;
4456
4459
  }
@@ -4477,10 +4480,10 @@ var es, ts, ns = {
4477
4480
  };
4478
4481
  return window.addEventListener("storage", t), () => window.removeEventListener("storage", t);
4479
4482
  }
4480
- }, as = /* @__PURE__ */ new WeakMap();
4481
- (ts = es ||= {}).begin = function(e) {
4482
- let t = as.get(e);
4483
- t || (t = /* @__PURE__ */ new Set(), as.set(e, t));
4483
+ }, ss = /* @__PURE__ */ new WeakMap();
4484
+ (rs = ns ||= {}).begin = function(e) {
4485
+ let t = ss.get(e);
4486
+ t || (t = /* @__PURE__ */ new Set(), ss.set(e, t));
4484
4487
  let n = () => {}, r = new Promise((e) => {
4485
4488
  n = e;
4486
4489
  });
@@ -4489,25 +4492,25 @@ var es, ts, ns = {
4489
4492
  return () => {
4490
4493
  i || (i = !0, a.delete(r), n());
4491
4494
  };
4492
- }, ts.isPending = function(e) {
4493
- return (as.get(e)?.size ?? 0) > 0;
4495
+ }, rs.isPending = function(e) {
4496
+ return (ss.get(e)?.size ?? 0) > 0;
4494
4497
  };
4495
- var os = async (e) => {
4496
- let t = as.get(e);
4498
+ var cs = async (e) => {
4499
+ let t = ss.get(e);
4497
4500
  for (; t && t.size > 0;) await Promise.allSettled([...t]);
4498
- }, ss = b(null), cs = (e) => _.createElement(ss.Provider, { value: e.scope }, e.children), ls = (e, t) => {
4499
- let n = D(ss), r = t === void 0 ? n : t;
4501
+ }, ls = b(null), us = (e) => _.createElement(ls.Provider, { value: e.scope }, e.children), ds = (e, t) => {
4502
+ let n = D(ls), r = t === void 0 ? n : t;
4500
4503
  O(() => {
4501
- if (r && e) return es.begin(r);
4504
+ if (r && e) return ns.begin(r);
4502
4505
  }, [r, e]);
4503
4506
  }, Z = {
4504
4507
  Horizontal: "horizontal",
4505
4508
  Vertical: "vertical"
4506
- }, us = "_scrollbar_2chse_24", ds = "_track_2chse_35", fs = "_thumb_2chse_47", ps = "_scrollbar-button_2chse_96", ms = "_touch-thumb_2chse_131", hs = "M 5.4951012,0.62494002 7.1746358,3.4734472 8.8557603,6.3226744 c 0.13425,0.2277477 0.18228,0.4945506 0.1356,0.7535218 -0.04665,0.2589712 -0.18504,0.4935661 -0.3908099,0.6625402 C 8.3948254,7.9076371 8.1348905,8.0001761 7.8664506,7.9999997 H 1.1503225 c -0.30278993,0 -0.59312985,-0.117841 -0.80720983,-0.3275159 -0.2140799,-0.2097042 -0.3343649,-0.4941244 -0.3343649,-0.7907107 -4.5e-4,-0.1955399 0.05205,-0.3876855 0.152205,-0.55688 L 1.8390472,3.4734031 3.5178618,0.62488125 C 3.7217717,0.27898385 4.0986166,0.0658413 4.5064365,0.0658413 c 0.4078199,0 0.7846648,0.21314255 0.9885747,0.55903995 z", gs = "M 0.6632643,3.5136438 3.5117715,1.8341092 6.3609987,0.15298466 c 0.2277477,-0.13425 0.4945506,-0.18228 0.7535218,-0.1356 0.2589712,0.04665 0.4935661,0.18504 0.6625402,0.3908099 0.1689007,0.205725 0.2614397,0.4656599 0.2612633,0.73409984 v 6.7161281 c 0,0.3027899 -0.117841,0.5931298 -0.3275159,0.8072098 -0.2097042,0.2140799 -0.4941244,0.3343649 -0.7907107,0.3343649 -0.1955399,4.5e-4 -0.3876855,-0.05205 -0.55688,-0.152205 L 3.5117274,7.1696978 0.6632056,5.4908832 C 0.31730817,5.2869733 0.10416562,4.9101284 0.10416562,4.5023085 c 0,-0.4078199 0.21314255,-0.7846648 0.55903998,-0.9885747 z", _s = { transform: "rotate(180deg)" }, vs = (e) => {
4507
- let { style: t, orientation: n = Z.Vertical, isBefore: r, disabled: i, ...a } = e, o = n === Z.Vertical ? hs : gs;
4509
+ }, fs = "_scrollbar_2chse_24", ps = "_track_2chse_35", ms = "_thumb_2chse_47", hs = "_scrollbar-button_2chse_96", gs = "_touch-thumb_2chse_131", _s = "M 5.4951012,0.62494002 7.1746358,3.4734472 8.8557603,6.3226744 c 0.13425,0.2277477 0.18228,0.4945506 0.1356,0.7535218 -0.04665,0.2589712 -0.18504,0.4935661 -0.3908099,0.6625402 C 8.3948254,7.9076371 8.1348905,8.0001761 7.8664506,7.9999997 H 1.1503225 c -0.30278993,0 -0.59312985,-0.117841 -0.80720983,-0.3275159 -0.2140799,-0.2097042 -0.3343649,-0.4941244 -0.3343649,-0.7907107 -4.5e-4,-0.1955399 0.05205,-0.3876855 0.152205,-0.55688 L 1.8390472,3.4734031 3.5178618,0.62488125 C 3.7217717,0.27898385 4.0986166,0.0658413 4.5064365,0.0658413 c 0.4078199,0 0.7846648,0.21314255 0.9885747,0.55903995 z", vs = "M 0.6632643,3.5136438 3.5117715,1.8341092 6.3609987,0.15298466 c 0.2277477,-0.13425 0.4945506,-0.18228 0.7535218,-0.1356 0.2589712,0.04665 0.4935661,0.18504 0.6625402,0.3908099 0.1689007,0.205725 0.2614397,0.4656599 0.2612633,0.73409984 v 6.7161281 c 0,0.3027899 -0.117841,0.5931298 -0.3275159,0.8072098 -0.2097042,0.2140799 -0.4941244,0.3343649 -0.7907107,0.3343649 -0.1955399,4.5e-4 -0.3876855,-0.05205 -0.55688,-0.152205 L 3.5117274,7.1696978 0.6632056,5.4908832 C 0.31730817,5.2869733 0.10416562,4.9101284 0.10416562,4.5023085 c 0,-0.4078199 0.21314255,-0.7846648 0.55903998,-0.9885747 z", ys = { transform: "rotate(180deg)" }, bs = (e) => {
4510
+ let { style: t, orientation: n = Z.Vertical, isBefore: r, disabled: i, ...a } = e, o = n === Z.Vertical ? _s : vs;
4508
4511
  return L("button", {
4509
4512
  style: t,
4510
- className: X(ps, n, "scroll-button"),
4513
+ className: X(hs, n, "scroll-button"),
4511
4514
  disabled: i,
4512
4515
  ...a,
4513
4516
  children: L("svg", {
@@ -4517,22 +4520,22 @@ var os = async (e) => {
4517
4520
  children: L("path", { d: o })
4518
4521
  })
4519
4522
  });
4520
- }, ys = (e) => {
4521
- let { style: t, orientation: n = Z.Vertical, isBefore: r, disabled: i, ...a } = e, o = n === Z.Vertical ? hs : gs;
4523
+ }, xs = (e) => {
4524
+ let { style: t, orientation: n = Z.Vertical, isBefore: r, disabled: i, ...a } = e, o = n === Z.Vertical ? _s : vs;
4522
4525
  return L("button", {
4523
4526
  style: t,
4524
- className: X(ps, n, "scroll-button"),
4527
+ className: X(hs, n, "scroll-button"),
4525
4528
  disabled: i,
4526
4529
  ...a,
4527
4530
  children: L("svg", {
4528
4531
  width: "9",
4529
4532
  height: "9",
4530
4533
  viewBox: "0 0 9 9",
4531
- style: _s,
4534
+ style: ys,
4532
4535
  children: L("path", { d: o })
4533
4536
  })
4534
4537
  });
4535
- }, bs = (e) => {
4538
+ }, Ss = (e) => {
4536
4539
  let { style: n, orientation: r = Z.Vertical, isBefore: i, ...a } = e, o = r === Z.Vertical;
4537
4540
  return L("div", {
4538
4541
  style: {
@@ -4557,7 +4560,7 @@ var os = async (e) => {
4557
4560
  iconKey: "MoreHorizontal"
4558
4561
  })
4559
4562
  });
4560
- }, xs = 60, Ss = 260, Cs = 120, ws = (e) => {
4563
+ }, Cs = 60, ws = 260, Ts = 120, Es = (e) => {
4561
4564
  let { vertical: t, getTrackRect: n, getThumb: r, onStart: i, onDragModeChange: a, edgeHoldIntervalMs: o = 60, pageInitialDelayMs: s = 260, pageRepeatDelayMs: c = 120 } = e, l = null, u = null, d = 0, f = 0, p = 1, m = 0, h = 0, g = 0, _ = null, v = () => {
4562
4565
  _ && clearTimeout(_), _ = null;
4563
4566
  }, y = (e) => {
@@ -4605,10 +4608,10 @@ var os = async (e) => {
4605
4608
  },
4606
4609
  dispose: () => v()
4607
4610
  };
4608
- }, Ts = (e) => {
4611
+ }, Ds = (e) => {
4609
4612
  let [t, n] = F(null), r = P(e);
4610
4613
  r.current = e;
4611
- let i = M(() => ws({
4614
+ let i = M(() => Es({
4612
4615
  vertical: r.current.vertical,
4613
4616
  getTrackRect: () => r.current.getTrackRect(),
4614
4617
  getThumb: () => r.current.getThumb(),
@@ -4624,16 +4627,16 @@ var os = async (e) => {
4624
4627
  onPointerUp: i.onPointerUp,
4625
4628
  dragMode: t
4626
4629
  };
4627
- }, Es = 22, Ds = 1.8, Os = 8, ks = 4, As = 8, js = -2, Ms = (e = 22) => e / 2 + 8, Ns = (e = 22) => e + 16, Ps = b(null), Fs = (e) => {
4630
+ }, Os = 22, ks = 1.8, As = 8, js = 4, Ms = 8, Ns = -2, Ps = (e = 22) => e / 2 + 8, Fs = (e = 22) => e + 16, Is = b(null), Ls = (e) => {
4628
4631
  let { value: t, children: n } = e;
4629
- return L(Ps.Provider, {
4632
+ return L(Is.Provider, {
4630
4633
  value: t,
4631
4634
  children: n
4632
4635
  });
4633
- }, Is = () => D(Ps), Ls = ft().supportsTouchEvents, Rs = (e) => e < 0 ? 0 : e > 1 ? 1 : e, zs = T(S((e, t) => {
4636
+ }, Rs = () => D(Is), zs = ft().supportsTouchEvents, Bs = (e) => e < 0 ? 0 : e > 1 ? 1 : e, Vs = T(S((e, t) => {
4634
4637
  let { borderColor: n = "var(--sxl-color-primary, rgb(33, 115, 70))", backgroundColor: r = "var(--sxl-color-base-100, white)", fillColor: i = "var(--sxl-color-neutral, grey)", borderWidth: a = 3, size: o = 22, style: s, className: c, orientation: l = Z.Vertical, fraction: u = 0, onScrollToFraction: d, onEdgeHold: f, onDraggingChange: p, currentTouchAnchor: m, key: h, ...g } = e;
4635
- if (!Ls) return null;
4636
- let _ = l === Z.Vertical, v = Is(), y = Y(d ?? (() => {}), [d]), b = Y(f ?? (() => {}), [f]), x = Y(p ?? (() => {}), [p]), S = P(null), C = ni([S, t]), w = Y((e) => ({
4638
+ if (!zs) return null;
4639
+ let _ = l === Z.Vertical, v = Rs(), y = Y(d ?? (() => {}), [d]), b = Y(f ?? (() => {}), [f]), x = Y(p ?? (() => {}), [p]), S = P(null), C = ni([S, t]), w = Y((e) => ({
4637
4640
  dragging: e,
4638
4641
  element: S.current,
4639
4642
  source: "touch"
@@ -4651,7 +4654,7 @@ var os = async (e) => {
4651
4654
  count: 0,
4652
4655
  timer: null
4653
4656
  });
4654
- D.current.isVertical = _, D.current.fraction = Rs(u), D.current.hasEdgeHold = !!f;
4657
+ D.current.isVertical = _, D.current.fraction = Bs(u), D.current.hasEdgeHold = !!f;
4655
4658
  let k = Y(() => {
4656
4659
  let e = D.current;
4657
4660
  e.timer && clearTimeout(e.timer), e.timer = null;
@@ -4678,7 +4681,7 @@ var os = async (e) => {
4678
4681
  },
4679
4682
  onPointerMoveOrWait: (e) => {
4680
4683
  let t = D.current, n = (t.isVertical ? e.clientY : e.clientX) - t.startAlong;
4681
- t.rawFraction = t.startFraction + (t.travel > 0 ? n / t.travel : 0), y?.(Rs(t.rawFraction)), j();
4684
+ t.rawFraction = t.startFraction + (t.travel > 0 ? n / t.travel : 0), y?.(Bs(t.rawFraction)), j();
4682
4685
  },
4683
4686
  onPointerUp: (e) => {
4684
4687
  let t = D.current;
@@ -4691,9 +4694,9 @@ var os = async (e) => {
4691
4694
  }, []), !v?.portalTarget) return null;
4692
4695
  let I = 1.8 * o, ee = _ ? o : I, te = _ ? I : o, R = _ ? v.viewportHeight : v.viewportWidth, z = _ ? v.height : v.width, ne = Math.max(0, z - R), B = _ ? v.reserveVertical : v.reserveHorizontal, H = B > 0 ? -2 : 4, U = Math.max(0, R - B - I - 4 - H);
4693
4696
  D.current.travel = U;
4694
- let W = ne + 4 + I / 2 + Rs(u) * U, re, ie;
4697
+ let W = ne + 4 + I / 2 + Bs(u) * U, re, ie;
4695
4698
  return _ ? (re = v.width - v.crossInset - ee / 2, ie = W - te / 2) : (ie = v.height - v.crossInset - te / 2, re = W - ee / 2), V(L("div", {
4696
- className: X("touch-thumb", ms, c, { dragging: T }),
4699
+ className: X("touch-thumb", gs, c, { dragging: T }),
4697
4700
  ref: C,
4698
4701
  style: {
4699
4702
  left: re,
@@ -4718,9 +4721,9 @@ var os = async (e) => {
4718
4721
  ...g
4719
4722
  }), v.portalTarget, h);
4720
4723
  }));
4721
- zs.displayName = "TouchThumbHandle";
4722
- var Bs = 24, Vs = T(S((e, t) => {
4723
- let { offset: n = 0, totalSize: r = 0, viewportSize: i = 0, style: a, className: o, orientation: s = Z.Vertical, onScrollOffset: c, onScroll: l, showCustomScrollButtons: u, scrollButtonIncrement: d = 200, scrollButtonInitialRepeatDelay: f = 260, scrollButtonAdditionalRepeatDelay: p = 120, minThumbSize: m = Bs, maxThumbSize: h, renderScrollButtonStart: g = vs, renderScrollButtonEnd: _ = ys, propsTouchThumb: v, propsThumb: y, onThumbEdgeHold: b, onThumbDrag: x, onMouseDown: S, ...C } = e, w = qn() === "touch", T = u ?? !w;
4724
+ Vs.displayName = "TouchThumbHandle";
4725
+ var Hs = 24, Us = T(S((e, t) => {
4726
+ let { offset: n = 0, totalSize: r = 0, viewportSize: i = 0, style: a, className: o, orientation: s = Z.Vertical, onScrollOffset: c, onScroll: l, showCustomScrollButtons: u, scrollButtonIncrement: d = 200, scrollButtonInitialRepeatDelay: f = 260, scrollButtonAdditionalRepeatDelay: p = 120, minThumbSize: m = Hs, maxThumbSize: h, renderScrollButtonStart: g = bs, renderScrollButtonEnd: _ = xs, propsTouchThumb: v, propsThumb: y, onThumbEdgeHold: b, onThumbDrag: x, onMouseDown: S, ...C } = e, w = qn() === "touch", T = u ?? !w;
4724
4727
  Y(l ?? (() => {}), [l]);
4725
4728
  let [D, k] = F({
4726
4729
  offset: 0,
@@ -4783,7 +4786,7 @@ var Bs = 24, Vs = T(S((e, t) => {
4783
4786
  i,
4784
4787
  n,
4785
4788
  W
4786
- ]), ae = Ts({
4789
+ ]), ae = Ds({
4787
4790
  vertical: j,
4788
4791
  getTrackRect: () => ne.current?.getBoundingClientRect() ?? null,
4789
4792
  getThumb: () => D.disabled ? null : {
@@ -4825,7 +4828,7 @@ var Bs = 24, Vs = T(S((e, t) => {
4825
4828
  if (e) return null;
4826
4829
  let t = L("div", {
4827
4830
  ...y,
4828
- className: X(fs, { disabled: e }),
4831
+ className: X(ms, { disabled: e }),
4829
4832
  ref: se,
4830
4833
  role: "slider",
4831
4834
  "aria-label": j ? "Rows" : "Columns",
@@ -4846,7 +4849,7 @@ var Bs = 24, Vs = T(S((e, t) => {
4846
4849
  });
4847
4850
  if (!w || e) return t;
4848
4851
  let r = Math.max(0, z - D.length);
4849
- return R(te, { children: [t, L(zs, {
4852
+ return R(te, { children: [t, L(Vs, {
4850
4853
  ...v,
4851
4854
  orientation: j ? Z.Vertical : Z.Horizontal,
4852
4855
  fraction: r > 0 ? D.offset / r : 0,
@@ -4933,7 +4936,7 @@ var Bs = 24, Vs = T(S((e, t) => {
4933
4936
  ]), J = j ? "vertical" : "horizontal", _e = ni([re, t]);
4934
4937
  return R("div", {
4935
4938
  ref: _e,
4936
- className: X(o, us, J, {
4939
+ className: X(o, fs, J, {
4937
4940
  dragging: G,
4938
4941
  "has-touch-thumb": w
4939
4942
  }),
@@ -4949,7 +4952,7 @@ var Bs = 24, Vs = T(S((e, t) => {
4949
4952
  "aria-valuemax": W,
4950
4953
  "aria-valuenow": n,
4951
4954
  tabIndex: 0,
4952
- className: X(ds, "track", J),
4955
+ className: X(ps, "track", J),
4953
4956
  onMouseDown: S,
4954
4957
  onPointerDown: ae.onPointerDown,
4955
4958
  onPointerMove: ae.onPointerMove,
@@ -4960,24 +4963,24 @@ var Bs = 24, Vs = T(S((e, t) => {
4960
4963
  ge
4961
4964
  ]
4962
4965
  });
4963
- })), Hs = Date.now, Us = 1e3, Ws = {}, Gs = 1, Ks = (e) => {
4964
- let t = Ws[e] !== null;
4965
- return t && (Ws[e] = null), t;
4966
- }, qs = (e, t, n, r = 0, i) => {
4967
- let a = Hs(), o = a, s = 0, c = 0, l = 0, u = Gs++;
4966
+ })), Ws = Date.now, Gs = 1e3, Ks = {}, qs = 1, Js = (e) => {
4967
+ let t = Ks[e] !== null;
4968
+ return t && (Ks[e] = null), t;
4969
+ }, Ys = (e, t, n, r = 0, i) => {
4970
+ let a = Ws(), o = a, s = 0, c = 0, l = 0, u = qs++;
4968
4971
  if (u % 20 == 0) {
4969
4972
  let e = {};
4970
- for (let t in Ws) e[t] = !0;
4971
- Ws = e;
4973
+ for (let t in Ks) e[t] = !0;
4974
+ Ks = e;
4972
4975
  }
4973
4976
  let d = function(f) {
4974
- let p = !0 !== f, m = Hs(), h = !0;
4977
+ let p = !0 !== f, m = Ws(), h = !0;
4975
4978
  try {
4976
4979
  h = (!t || t(u)) ?? !0;
4977
4980
  } catch {
4978
4981
  h = !1;
4979
4982
  }
4980
- if (!Ws[u] || !h) return Ws[u] = null, void n?.(60 - c / ((m - a) / Us), u, !1);
4983
+ if (!Ks[u] || !h) return Ks[u] = null, void n?.(60 - c / ((m - a) / Gs), u, !1);
4981
4984
  if (p) {
4982
4985
  l = Math.round((m - o) / 16.666666666666668) - 1;
4983
4986
  for (let e = 0; e < Math.min(l, 4); e++) d(!0), c++;
@@ -4989,17 +4992,17 @@ var Bs = 24, Vs = T(S((e, t) => {
4989
4992
  } catch {
4990
4993
  _ = !1;
4991
4994
  }
4992
- !1 !== _ && s !== 1 || !p ? p && (o = m, requestAnimationFrame(d)) : (Ws[u] = null, n?.(60 - c / ((m - a) / Us), u, s === 1 || r == null));
4995
+ !1 !== _ && s !== 1 || !p ? p && (o = m, requestAnimationFrame(d)) : (Ks[u] = null, n?.(60 - c / ((m - a) / Gs), u, s === 1 || r == null));
4993
4996
  };
4994
- return Ws[u] = !0, requestAnimationFrame(d), u;
4995
- }, Js = function(e) {
4997
+ return Ks[u] = !0, requestAnimationFrame(d), u;
4998
+ }, Xs = function(e) {
4996
4999
  return (e - 1) ** 3 + 1;
4997
- }, Ys = function(e) {
5000
+ }, Zs = function(e) {
4998
5001
  return (e /= .5) < 1 ? .5 * e ** 3 : .5 * ((e - 2) ** 3 + 2);
4999
- }, Xs = Math.log(1.15) / 100, Zs = (e) => {
5002
+ }, Qs = Math.log(1.15) / 100, $s = (e) => {
5000
5003
  let t = e[1].pageX - e[0].pageX, n = e[1].pageY - e[0].pageY;
5001
5004
  return Math.sqrt(t * t + n * n);
5002
- }, Qs = class {
5005
+ }, ec = class {
5003
5006
  constructor(e, t) {
5004
5007
  this.__isSingleTouch = !1, this.__isTracking = !1, this.__didDecelerationComplete = !1, this.__isGesturing = !1, this.__isZooming = !1, this.__pinchStartDistance = 0, this.__gestureMoveX = 0, this.__gestureMoveY = 0, this.__isDragging = !1, this.__isDecelerating = 0, this.__isAnimating = 0, this.__interruptedAnimation = !1, this.__lastScale = 1, this.__enableScrollX = !0, this.__enableScrollY = !0, this.__clientLeft = 0, this.__clientTop = 0, this.__clientWidth = 0, this.__clientHeight = 0, this.__contentWidth = 0, this.__contentHeight = 0, this.__snapWidth = 100, this.__snapHeight = 100, this.__zoomLevel = 1, this.__scrollLeft = 0, this.__scrollTop = 0, this.__maxScrollLeft = 0, this.__maxScrollTop = 0, this.__scheduledLeft = 0, this.__scheduledTop = 0, this.__scheduledZoom = 0, this.__lastTouchLeft = 0, this.__lastTouchTop = 0, this.__lastTouchMove = 0, this.__positions = [], this.__initialTouchLeft = 0, this.__initialTouchTop = 0, this.__zoomLevelStart = 1, this.__minDecelerationScrollLeft = 0, this.__minDecelerationScrollTop = 0, this.__maxDecelerationScrollLeft = 0, this.__maxDecelerationScrollTop = 0, this.__decelerationVelocityX = 0, this.__decelerationVelocityY = 0, this.__zoomComplete = null, this.__callback = e, this.options = {
5005
5008
  scrollingX: !0,
@@ -5053,7 +5056,7 @@ var Bs = 24, Vs = T(S((e, t) => {
5053
5056
  }
5054
5057
  zoomTo(e, t = !1, n, r, i) {
5055
5058
  if (!this.options.zooming) throw Error("Zooming is not enabled!");
5056
- i && (this.__zoomComplete = i), this.__isDecelerating &&= (Ks(this.__isDecelerating), 0);
5059
+ i && (this.__zoomComplete = i), this.__isDecelerating &&= (Js(this.__isDecelerating), 0);
5057
5060
  let a = this.__zoomLevel;
5058
5061
  n === void 0 && (n = this.__clientWidth / 2), r === void 0 && (r = this.__clientHeight / 2), e = Math.max(Math.min(e, this.options.maxZoom), this.options.minZoom), this.__computeScrollMax(e);
5059
5062
  let o = e / a, s = o * (this.__scrollLeft + n) - n, c = o * (this.__scrollTop + r) - r;
@@ -5071,7 +5074,7 @@ var Bs = 24, Vs = T(S((e, t) => {
5071
5074
  this.zoomTo(this.__zoomLevel * e, t, n, r, i);
5072
5075
  }
5073
5076
  scrollTo(e, t, n = !1, r) {
5074
- if (this.__isDecelerating &&= (Ks(this.__isDecelerating), 0), r !== void 0 && r !== this.__zoomLevel) {
5077
+ if (this.__isDecelerating &&= (Js(this.__isDecelerating), 0), r !== void 0 && r !== this.__zoomLevel) {
5075
5078
  if (!this.options.zooming) throw Error("Zooming is not enabled!");
5076
5079
  e *= r, t *= r, this.__computeScrollMax(r);
5077
5080
  } else r = this.__zoomLevel;
@@ -5082,16 +5085,16 @@ var Bs = 24, Vs = T(S((e, t) => {
5082
5085
  this.scrollTo(r + (e || 0), i + (t || 0), n);
5083
5086
  }
5084
5087
  doMouseZoom(e, t, n, r) {
5085
- let i = Math.exp(-e * Xs);
5088
+ let i = Math.exp(-e * Qs);
5086
5089
  return this.zoomTo(this.__zoomLevel * i, !1, n - this.__clientLeft, r - this.__clientTop);
5087
5090
  }
5088
5091
  doTouchStart(e, t) {
5089
5092
  if (e.length === void 0) throw Error("Invalid touch list: " + e);
5090
5093
  if (t instanceof Date && (t = t.valueOf()), typeof t != "number") throw Error("Invalid timestamp value: " + t);
5091
5094
  let n, r;
5092
- this.__interruptedAnimation = !0, this.__isDecelerating && (Ks(this.__isDecelerating), this.__isDecelerating = 0, this.__interruptedAnimation = !0), this.__isAnimating && (Ks(this.__isAnimating), this.__isAnimating = 0, this.__interruptedAnimation = !0);
5095
+ this.__interruptedAnimation = !0, this.__isDecelerating && (Js(this.__isDecelerating), this.__isDecelerating = 0, this.__interruptedAnimation = !0), this.__isAnimating && (Js(this.__isAnimating), this.__isAnimating = 0, this.__interruptedAnimation = !0);
5093
5096
  let i = e.length === 1;
5094
- i ? (n = e[0].pageX, r = e[0].pageY) : (n = Math.abs(e[0].pageX + e[1].pageX) / 2, r = Math.abs(e[0].pageY + e[1].pageY) / 2), this.__initialTouchLeft = n, this.__initialTouchTop = r, this.__zoomLevelStart = this.__zoomLevel, this.__pinchStartDistance = i ? 0 : Zs(e), this.__isGesturing = !i && !!this.options.zooming, this.__gestureMoveX = 0, this.__gestureMoveY = 0, this.__lastTouchLeft = n, this.__lastTouchTop = r, this.__lastTouchMove = t, this.__lastScale = 1, this.__enableScrollX = !i && !!this.options.scrollingX, this.__enableScrollY = !i && !!this.options.scrollingY, this.__isTracking = !0, this.__didDecelerationComplete = !1, this.__isDragging = !i, this.__isSingleTouch = i, this.__positions = [], this.__enableScrollX, this.__enableScrollY, this.__isDragging, this.__maxScrollLeft, this.__maxScrollTop;
5097
+ i ? (n = e[0].pageX, r = e[0].pageY) : (n = Math.abs(e[0].pageX + e[1].pageX) / 2, r = Math.abs(e[0].pageY + e[1].pageY) / 2), this.__initialTouchLeft = n, this.__initialTouchTop = r, this.__zoomLevelStart = this.__zoomLevel, this.__pinchStartDistance = i ? 0 : $s(e), this.__isGesturing = !i && !!this.options.zooming, this.__gestureMoveX = 0, this.__gestureMoveY = 0, this.__lastTouchLeft = n, this.__lastTouchTop = r, this.__lastTouchMove = t, this.__lastScale = 1, this.__enableScrollX = !i && !!this.options.scrollingX, this.__enableScrollY = !i && !!this.options.scrollingY, this.__isTracking = !0, this.__didDecelerationComplete = !1, this.__isDragging = !i, this.__isSingleTouch = i, this.__positions = [], this.__enableScrollX, this.__enableScrollY, this.__isDragging, this.__maxScrollLeft, this.__maxScrollTop;
5095
5098
  }
5096
5099
  doTouchMove(e, t) {
5097
5100
  if (e.length === void 0) throw Error("Invalid touch list: " + e);
@@ -5099,7 +5102,7 @@ var Bs = 24, Vs = T(S((e, t) => {
5099
5102
  if (!this.__isTracking) return;
5100
5103
  let n, r;
5101
5104
  e.length === 2 ? (n = Math.abs(e[0].pageX + e[1].pageX) / 2, r = Math.abs(e[0].pageY + e[1].pageY) / 2) : (n = e[0].pageX, r = e[0].pageY);
5102
- let i = this.__positions, a = e.length === 2 && this.__pinchStartDistance > 0 ? Zs(e) / this.__pinchStartDistance : 1;
5105
+ let i = this.__positions, a = e.length === 2 && this.__pinchStartDistance > 0 ? $s(e) / this.__pinchStartDistance : 1;
5103
5106
  if (this.__isDragging) {
5104
5107
  let e = n - this.__lastTouchLeft, o = r - this.__lastTouchTop;
5105
5108
  this.__gestureMoveX = e, this.__gestureMoveY = o;
@@ -5148,14 +5151,14 @@ var Bs = 24, Vs = T(S((e, t) => {
5148
5151
  }
5149
5152
  __publish(e, t, n, r = !1) {
5150
5153
  let i = this.__isAnimating;
5151
- if (i && (Ks(i), this.__isAnimating = 0), r && this.options.animating) {
5154
+ if (i && (Js(i), this.__isAnimating = 0), r && this.options.animating) {
5152
5155
  this.__scheduledLeft = e, this.__scheduledTop = t, this.__scheduledZoom = n;
5153
5156
  let r = this.__scrollLeft, a = this.__scrollTop, o = this.__zoomLevel, s = e - r, c = t - a, l = n - o, u = (e, t, n = !1) => {
5154
5157
  n && (this.__scrollLeft = r + s * e, this.__scrollTop = a + c * e, this.__zoomLevel = o + l * e, this.__callback && this.__callback(this.__scrollLeft, this.__scrollTop, this.__zoomLevel));
5155
5158
  }, d = (e) => this.__isAnimating === e, f = (e, t, n = !1) => {
5156
5159
  t === this.__isAnimating && (this.__isAnimating = 0), (this.__didDecelerationComplete || n) && this.options.scrollingComplete?.(), this.options.zooming && (this.__computeScrollMax(), this.__zoomComplete &&= (this.__zoomComplete(), null));
5157
5160
  };
5158
- this.__isAnimating = qs(u, d, f, this.options.animationDuration, i ? Js : Ys);
5161
+ this.__isAnimating = Ys(u, d, f, this.options.animationDuration, i ? Xs : Zs);
5159
5162
  } else this.__scheduledLeft = this.__scrollLeft = e, this.__scheduledTop = this.__scrollTop = t, this.__scheduledZoom = this.__zoomLevel = n, this.__callback && this.__callback(e, t, n), this.options.zooming && (this.__computeScrollMax(), this.__zoomComplete &&= (this.__zoomComplete(), null));
5160
5163
  }
5161
5164
  __computeScrollMax(e = this.__zoomLevel) {
@@ -5167,7 +5170,7 @@ var Bs = 24, Vs = T(S((e, t) => {
5167
5170
  this.__minDecelerationScrollLeft = Math.floor(e / n) * n, this.__minDecelerationScrollTop = Math.floor(t / r) * r, this.__maxDecelerationScrollLeft = Math.ceil(e / n) * n, this.__maxDecelerationScrollTop = Math.ceil(t / r) * r;
5168
5171
  } else this.__minDecelerationScrollLeft = 0, this.__minDecelerationScrollTop = 0, this.__maxDecelerationScrollLeft = this.__maxScrollLeft, this.__maxDecelerationScrollTop = this.__maxScrollTop;
5169
5172
  let t = this.options.snapping ? 4 : .1;
5170
- this.__isDecelerating = qs((e, t, n = !1) => {
5173
+ this.__isDecelerating = Ys((e, t, n = !1) => {
5171
5174
  this.__stepThroughDeceleration(n);
5172
5175
  }, () => {
5173
5176
  let e = Math.abs(this.__decelerationVelocityX) >= t || Math.abs(this.__decelerationVelocityY) >= t;
@@ -5193,11 +5196,11 @@ var Bs = 24, Vs = T(S((e, t) => {
5193
5196
  t < this.__minDecelerationScrollLeft ? e = this.__minDecelerationScrollLeft - t : t > this.__maxDecelerationScrollLeft && (e = this.__maxDecelerationScrollLeft - t), n < this.__minDecelerationScrollTop ? r = this.__minDecelerationScrollTop - n : n > this.__maxDecelerationScrollTop && (r = this.__maxDecelerationScrollTop - n), e !== 0 && (e * this.__decelerationVelocityX <= 0 ? this.__decelerationVelocityX += e * i : this.__decelerationVelocityX = e * a), r !== 0 && (r * this.__decelerationVelocityY <= 0 ? this.__decelerationVelocityY += r * i : this.__decelerationVelocityY = r * a);
5194
5197
  }
5195
5198
  }
5196
- }, $s = /* @__PURE__ */ new Set([
5199
+ }, tc = /* @__PURE__ */ new Set([
5197
5200
  "auto",
5198
5201
  "scroll",
5199
5202
  "overlay"
5200
- ]), ec = /* @__PURE__ */ new Set(["contain", "none"]), tc = (e, t) => {
5203
+ ]), nc = /* @__PURE__ */ new Set(["contain", "none"]), rc = (e, t) => {
5201
5204
  let { deltaX: n, deltaY: r, shiftKey: i } = e, a = i || Math.abs(n) > Math.abs(r), o = i ? r : a ? n : r;
5202
5205
  if (o === 0) return null;
5203
5206
  let s = e.target instanceof Element ? e.target : null;
@@ -5206,21 +5209,21 @@ var Bs = 24, Vs = T(S((e, t) => {
5206
5209
  let e = a ? s.scrollWidth - s.clientWidth : s.scrollHeight - s.clientHeight;
5207
5210
  if (e > 0) {
5208
5211
  let t = getComputedStyle(s);
5209
- if ($s.has(a ? t.overflowX : t.overflowY)) {
5212
+ if (tc.has(a ? t.overflowX : t.overflowY)) {
5210
5213
  let n = a ? s.scrollLeft : s.scrollTop;
5211
5214
  if (o < 0 ? n > 0 : n < e - 1) return "native";
5212
- if (ec.has(a ? t.overscrollBehaviorX : t.overscrollBehaviorY)) return "contained";
5215
+ if (nc.has(a ? t.overscrollBehaviorX : t.overscrollBehaviorY)) return "contained";
5213
5216
  }
5214
5217
  }
5215
5218
  s = s.parentElement;
5216
5219
  }
5217
5220
  return null;
5218
- }, nc = 100 / 3, rc = se({
5221
+ }, ic = 100 / 3, ac = se({
5219
5222
  PANE_SCROLLER_ATTRIBUTE: () => "data-sxl-pane-scroller",
5220
- defaultRenderScrollbar: () => ac,
5221
- getScrollTo: () => ic,
5222
- getWheelOwner: () => tc
5223
- }), ic = (e, t, n, r, i = 0) => {
5223
+ defaultRenderScrollbar: () => sc,
5224
+ getScrollTo: () => oc,
5225
+ getWheelOwner: () => rc
5226
+ }), oc = (e, t, n, r, i = 0) => {
5224
5227
  for (let i = 0; i < n.length; i++) {
5225
5228
  let a = n[i].getBoundingClientRect(), o = a.left - t, s = o + a.width;
5226
5229
  if (r) {
@@ -5228,14 +5231,14 @@ var Bs = 24, Vs = T(S((e, t) => {
5228
5231
  } else if (Math.ceil(s) > Math.ceil(e) + 2) return s;
5229
5232
  }
5230
5233
  return i;
5231
- }, ac = (e) => L(Vs, { ...e }), oc = (e) => {
5234
+ }, sc = (e) => L(Us, { ...e }), cc = (e) => {
5232
5235
  let t = e.ownerDocument?.defaultView;
5233
5236
  return t ? t.getComputedStyle(e).touchAction : "";
5234
- }, sc = (e) => {
5237
+ }, lc = (e) => {
5235
5238
  let t = e.trim();
5236
5239
  return t === "" || t === "auto" || t === "manipulation" || t.split(/\s+/).some((e) => e.startsWith("pan-"));
5237
- }, cc = "_scrollpane_zdrii_2", lc = "_scrollpane-content_zdrii_20", uc = "_scrollpane-content-cell_zdrii_33", dc = "_vertical-container_zdrii_42", fc = "_horizontal-container_zdrii_50", pc = "_corner-container_zdrii_59", mc = "_touch-thumb-overlay_zdrii_68", hc = T(S((e, t) => {
5238
- let { children: n, viewport: r, disableMouseWheel: i = !1, onWheelScroll: a, zoomable: o = !1, showHorizontalScrollbar: s = !0, showVerticalScrollbar: c = !0, renderScrollCorner: l = gc, renderScrollbarHorizontal: u = ac, renderScrollbarVertical: d = ac, style: f, className: p, disableTouch: m, ...h } = e, g = s && u, _ = c && d, v = Sn(r, (e) => e.getMetrics()), y = E((e, t) => {
5240
+ }, uc = "_scrollpane_zdrii_2", dc = "_scrollpane-content_zdrii_20", fc = "_scrollpane-content-cell_zdrii_33", pc = "_vertical-container_zdrii_42", mc = "_horizontal-container_zdrii_50", hc = "_corner-container_zdrii_59", gc = "_touch-thumb-overlay_zdrii_68", _c = T(S((e, t) => {
5241
+ let { children: n, viewport: r, disableMouseWheel: i = !1, onWheelScroll: a, zoomable: o = !1, showHorizontalScrollbar: s = !0, showVerticalScrollbar: c = !0, renderScrollCorner: l = vc, renderScrollbarHorizontal: u = sc, renderScrollbarVertical: d = sc, style: f, className: p, disableTouch: m, ...h } = e, g = s && u, _ = c && d, v = Sn(r, (e) => e.getMetrics()), y = E((e, t) => {
5239
5242
  if (!r) return;
5240
5243
  let n = r.getTarget();
5241
5244
  r.setTarget(e.left ?? n.left, e.top ?? n.top, t);
@@ -5284,12 +5287,12 @@ var Bs = 24, Vs = T(S((e, t) => {
5284
5287
  }), p = Y((t) => {
5285
5288
  let n = t.shiftKey, { deltaX: r, deltaY: i, deltaMode: a } = t, p = l.current && !n && (t.ctrlKey || t.metaKey);
5286
5289
  if (!p && e.current) {
5287
- let n = tc(t, e.current);
5290
+ let n = rc(t, e.current);
5288
5291
  if (n === "native") return;
5289
5292
  if (n === "contained") return void t.preventDefault();
5290
5293
  }
5291
5294
  if (t.preventDefault(), p) {
5292
- let e = a === 1 ? nc : a === 2 ? 800 : 1, n = f.current;
5295
+ let e = a === 1 ? ic : a === 2 ? 800 : 1, n = f.current;
5293
5296
  if (n.deltaY += i * e, n.clientX = t.clientX, n.clientY = t.clientY, d.current) return;
5294
5297
  d.current = window.requestAnimationFrame(() => {
5295
5298
  d.current = null;
@@ -5367,10 +5370,10 @@ var Bs = 24, Vs = T(S((e, t) => {
5367
5370
  top: t
5368
5371
  });
5369
5372
  }, []), j = P(!1), N = E((e) => {
5370
- e.touches.length === 1 && (j.current = ((e, t, n = oc) => {
5373
+ e.touches.length === 1 && (j.current = ((e, t, n = cc) => {
5371
5374
  let r = e instanceof Element ? e : null;
5372
5375
  for (; r && r !== t;) {
5373
- if (!sc(n(r))) return !0;
5376
+ if (!lc(n(r))) return !0;
5374
5377
  r = r.parentElement;
5375
5378
  }
5376
5379
  return !1;
@@ -5388,7 +5391,7 @@ var Bs = 24, Vs = T(S((e, t) => {
5388
5391
  O(() => {
5389
5392
  let e = b.current, t = !m && ft().supportsTouchEvents;
5390
5393
  if ((t || o) && e && v) {
5391
- x.current || (x.current = new Qs(A, {
5394
+ x.current || (x.current = new ec(A, {
5392
5395
  scrollingX: !0,
5393
5396
  scrollingY: !0,
5394
5397
  decelerationRate: .95,
@@ -5421,7 +5424,7 @@ var Bs = 24, Vs = T(S((e, t) => {
5421
5424
  B(e), V(e);
5422
5425
  }, [V]), re = M(() => {
5423
5426
  if (!ne) return null;
5424
- let e = Ns(), t = Math.min(H, v?.width ?? H), n = Math.min(U, v?.height ?? U);
5427
+ let e = Fs(), t = Math.min(H, v?.width ?? H), n = Math.min(U, v?.height ?? U);
5425
5428
  return {
5426
5429
  portalTarget: ne,
5427
5430
  width: H,
@@ -5430,7 +5433,7 @@ var Bs = 24, Vs = T(S((e, t) => {
5430
5433
  viewportHeight: n,
5431
5434
  reserveVertical: g ? e : 0,
5432
5435
  reserveHorizontal: _ ? e : 0,
5433
- crossInset: Ms()
5436
+ crossInset: Ps()
5434
5437
  };
5435
5438
  }, [
5436
5439
  ne,
@@ -5455,7 +5458,7 @@ var Bs = 24, Vs = T(S((e, t) => {
5455
5458
  }
5456
5459
  });
5457
5460
  return L("div", {
5458
- className: X("vertical-container", dc),
5461
+ className: X("vertical-container", pc),
5459
5462
  children: e
5460
5463
  });
5461
5464
  }, [
@@ -5478,7 +5481,7 @@ var Bs = 24, Vs = T(S((e, t) => {
5478
5481
  }
5479
5482
  });
5480
5483
  return L("div", {
5481
- className: X("horizontal-container", fc),
5484
+ className: X("horizontal-container", mc),
5482
5485
  children: e
5483
5486
  });
5484
5487
  }, [
@@ -5487,7 +5490,7 @@ var Bs = 24, Vs = T(S((e, t) => {
5487
5490
  v?.width,
5488
5491
  v?.totalWidth
5489
5492
  ]), G = M(() => _ && g ? L("div", {
5490
- className: X("corner-container", pc),
5493
+ className: X("corner-container", hc),
5491
5494
  children: L(ii, {
5492
5495
  render: l,
5493
5496
  props: {}
@@ -5498,17 +5501,17 @@ var Bs = 24, Vs = T(S((e, t) => {
5498
5501
  l
5499
5502
  ]);
5500
5503
  return L("div", {
5501
- className: X(p, "scrollpane", cc),
5504
+ className: X(p, "scrollpane", uc),
5502
5505
  style: f,
5503
5506
  ...h,
5504
5507
  ref: b,
5505
- children: L(Fs, {
5508
+ children: L(Ls, {
5506
5509
  value: re,
5507
5510
  children: R("div", {
5508
- className: X("scrollpane-content", lc),
5511
+ className: X("scrollpane-content", dc),
5509
5512
  children: [
5510
5513
  L("div", {
5511
- className: X("scrollpane-content-cell", uc),
5514
+ className: X("scrollpane-content-cell", fc),
5512
5515
  children: n
5513
5516
  }),
5514
5517
  _ ? ie : null,
@@ -5516,15 +5519,15 @@ var Bs = 24, Vs = T(S((e, t) => {
5516
5519
  G,
5517
5520
  z ? L("div", {
5518
5521
  ref: W,
5519
- className: X("touch-thumb-overlay", mc)
5522
+ className: X("touch-thumb-overlay", gc)
5520
5523
  }) : null
5521
5524
  ]
5522
5525
  })
5523
5526
  })
5524
5527
  });
5525
5528
  }));
5526
- hc.displayName = "ScrollPane";
5527
- var gc = (e) => {
5529
+ _c.displayName = "ScrollPane";
5530
+ var vc = (e) => {
5528
5531
  let { size: t, style: n, ...r } = e;
5529
5532
  return L("div", {
5530
5533
  className: "corner",
@@ -5535,7 +5538,7 @@ var gc = (e) => {
5535
5538
  },
5536
5539
  ...r
5537
5540
  });
5538
- }, _c = class {
5541
+ }, yc = class {
5539
5542
  constructor(e) {
5540
5543
  this._bounds = {
5541
5544
  minLeft: 0,
@@ -5654,7 +5657,7 @@ var gc = (e) => {
5654
5657
  }
5655
5658
  _applyBounds(e) {
5656
5659
  this._bounds = e;
5657
- let t = Tc(this._target.left, e.minLeft, e.maxLeft), n = Tc(this._target.top, e.minTop, e.maxTop);
5660
+ let t = Dc(this._target.left, e.minLeft, e.maxLeft), n = Dc(this._target.top, e.minTop, e.maxTop);
5658
5661
  t === this._target.left && n === this._target.top || (this._target = {
5659
5662
  left: t,
5660
5663
  top: n
@@ -5676,12 +5679,12 @@ var gc = (e) => {
5676
5679
  return this._observe(e, "both");
5677
5680
  }
5678
5681
  _observe(e, t) {
5679
- if (!e) return wc;
5682
+ if (!e) return Ec;
5680
5683
  let n = (e, n) => {
5681
5684
  let r = this._measuredClient;
5682
5685
  this._setMeasuredClient(t === "height" ? r?.width ?? 0 : e, t === "width" ? r?.height ?? 0 : n);
5683
5686
  };
5684
- if (!Cc()) return n(0, 0), wc;
5687
+ if (!Tc()) return n(0, 0), Ec;
5685
5688
  let r = new ResizeObserver((e) => {
5686
5689
  let t = e[0]?.contentRect;
5687
5690
  t && n(t.width, t.height);
@@ -5728,17 +5731,17 @@ var gc = (e) => {
5728
5731
  }
5729
5732
  setTarget(e, t, n) {
5730
5733
  let r = this._bounds;
5731
- return e = Tc(e, r.minLeft, r.maxLeft), t = Tc(t, r.minTop, r.maxTop), this._target.left === e && this._target.top === t ? (this._current.left === e && this._current.top === t || this._ensureTicking(), !1) : (this._target = {
5734
+ return e = Dc(e, r.minLeft, r.maxLeft), t = Dc(t, r.minTop, r.maxTop), this._target.left === e && this._target.top === t ? (this._current.left === e && this._current.top === t || this._ensureTicking(), !1) : (this._target = {
5732
5735
  left: e,
5733
5736
  top: t
5734
5737
  }, n ? this._startAnimation() : this._anim = null, this._ensureTicking(), !0);
5735
5738
  }
5736
5739
  _startAnimation() {
5737
- let e = this._current, t = this._target, n = this._effClient(), r = n.width > 0 ? n.width * bc : 1 / 0, i = n.height > 0 ? n.height * bc : 1 / 0, a = Tc(e.left, t.left - r, t.left + r), o = Tc(e.top, t.top - i, t.top + i), s = Math.max(Math.abs(t.left - a), Math.abs(t.top - o)), c = Math.min(200, s * yc);
5738
- this._anim = c <= xc ? null : {
5740
+ let e = this._current, t = this._target, n = this._effClient(), r = n.width > 0 ? n.width * Sc : 1 / 0, i = n.height > 0 ? n.height * Sc : 1 / 0, a = Dc(e.left, t.left - r, t.left + r), o = Dc(e.top, t.top - i, t.top + i), s = Math.max(Math.abs(t.left - a), Math.abs(t.top - o)), c = Math.min(200, s * xc);
5741
+ this._anim = c <= Cc ? null : {
5739
5742
  fromLeft: a,
5740
5743
  fromTop: o,
5741
- start: Sc(),
5744
+ start: wc(),
5742
5745
  duration: c
5743
5746
  };
5744
5747
  }
@@ -5778,7 +5781,7 @@ var gc = (e) => {
5778
5781
  _advance() {
5779
5782
  let e = this._current, t = this._target, n = this._anim, r, i, a = !1;
5780
5783
  if (n) {
5781
- let e = (Sc() - n.start) / n.duration;
5784
+ let e = (wc() - n.start) / n.duration;
5782
5785
  if (e >= 1) r = t.left, i = t.top, this._anim = null;
5783
5786
  else {
5784
5787
  let o = 1 - (1 - e) ** 3;
@@ -5790,7 +5793,7 @@ var gc = (e) => {
5790
5793
  top: i
5791
5794
  }, this._viewport = null, this._emit()), a;
5792
5795
  }
5793
- }, vc = 200, yc = 2.5, bc = 1.5, xc = 17, Sc = () => typeof performance < "u" ? performance.now() : Date.now(), Cc = () => typeof ResizeObserver < "u", wc = () => {}, Tc = (e, t, n) => Math.min(n, Math.max(t, e)), Ec = class {
5796
+ }, bc = 200, xc = 2.5, Sc = 1.5, Cc = 17, wc = () => typeof performance < "u" ? performance.now() : Date.now(), Tc = () => typeof ResizeObserver < "u", Ec = () => {}, Dc = (e, t, n) => Math.min(n, Math.max(t, e)), Oc = class {
5794
5797
  constructor(e, t, n, r, i) {
5795
5798
  this._h = e, this._v = t, this._followH = n, this._followV = r, this._zoomCtrl = i, this._combined = null, this._hSnap = null, this._vSnap = null, this._vp = null, this._vpH = null, this._vpV = null;
5796
5799
  }
@@ -5903,8 +5906,8 @@ var gc = (e) => {
5903
5906
  setContent(e, t, n = 0, r = 0) {
5904
5907
  this._same ? this._h.setContent(e, t, n, r) : (this._followH || this._h.setContentAxis("width", e, n), this._followV || this._v.setContentAxis("height", t, r));
5905
5908
  }
5906
- }, Dc = 300, Oc = 100, kc = 1e6, Ac = 100, jc = 50, Mc = T(S((e, t) => {
5907
- let { offset: n = 0, viewportSize: r = 0, totalSize: i = 0, minSize: a = 0, endGap: o = Dc, endScrollIncrement: s = Oc, style: c = ct, onMouseDown: l, onThumbDrag: u, onScrollOffset: d, onScroll: f, scaleLimit: p = kc, scaleFactor: m = Ac, precisionFactor: h = jc, renderScrollbar: g = ac, ..._ } = e;
5909
+ }, kc = 300, Ac = 100, jc = 1e6, Mc = 100, Nc = 50, Pc = T(S((e, t) => {
5910
+ let { offset: n = 0, viewportSize: r = 0, totalSize: i = 0, minSize: a = 0, endGap: o = kc, endScrollIncrement: s = Ac, style: c = ct, onMouseDown: l, onThumbDrag: u, onScrollOffset: d, onScroll: f, scaleLimit: p = jc, scaleFactor: m = Mc, precisionFactor: h = Nc, renderScrollbar: g = sc, ..._ } = e;
5908
5911
  f && console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");
5909
5912
  let v = Y(l ?? (() => {}), [l]), [y, b] = F(!1), x = P(0), S = M(() => {
5910
5913
  let e = p === 0 ? i : Math.min(i ?? 0, Math.max(a ?? 0, (n ?? 0) + (r ?? 0)) + (o ?? 0));
@@ -5961,8 +5964,8 @@ var gc = (e) => {
5961
5964
  }
5962
5965
  });
5963
5966
  }));
5964
- Mc.displayName = "VirtualScrollbar";
5965
- var Nc = "_scrollbar-themed_nj3vu_7", Pc = (e) => ({
5967
+ Pc.displayName = "VirtualScrollbar";
5968
+ var Fc = "_scrollbar-themed_nj3vu_7", Ic = (e) => ({
5966
5969
  "--scrollbar-track-color": e.track,
5967
5970
  "--scrollbar-thumb-color": e.thumb,
5968
5971
  "--scrollbar-button-color": e.button || e.thumb,
@@ -5974,13 +5977,13 @@ var Nc = "_scrollbar-themed_nj3vu_7", Pc = (e) => ({
5974
5977
  "--scrollbar-border-radius": "9999px",
5975
5978
  "--scrollbar-border-width": "2px",
5976
5979
  "--scrollbar-min-thumb-size": "24px"
5977
- }), Fc = (e) => {
5980
+ }), Lc = (e) => {
5978
5981
  if (typeof window > "u") return !1;
5979
5982
  let t = jr();
5980
5983
  if (t?.overlaysContent) return t.boundingRect.height > 150;
5981
5984
  let n = window.visualViewport;
5982
5985
  return !!n && (e ?? window.innerHeight) - n.height * n.scale > 150;
5983
- }, Ic = (e) => {
5986
+ }, Rc = (e) => {
5984
5987
  let t = Object.freeze({ ...e }), n = !(t.disabled ?? ft().deviceType === "mouseOnly"), r = {
5985
5988
  active: !1,
5986
5989
  inputMode: "text"
@@ -6011,8 +6014,8 @@ var Nc = "_scrollbar-themed_nj3vu_7", Pc = (e) => ({
6011
6014
  a.delete(e);
6012
6015
  })
6013
6016
  };
6014
- }, Lc = null, Rc = b(null), zc = (e) => {
6015
- let { store: t, disabled: n, disableScrollIntoView: r, keepOnTap: i, children: a } = e, o = M(() => t ?? Ic({
6017
+ }, zc = null, Bc = b(null), Vc = (e) => {
6018
+ let { store: t, disabled: n, disableScrollIntoView: r, keepOnTap: i, children: a } = e, o = M(() => t ?? Rc({
6016
6019
  disabled: n,
6017
6020
  disableScrollIntoView: r,
6018
6021
  keepOnTap: i
@@ -6022,15 +6025,15 @@ var Nc = "_scrollbar-themed_nj3vu_7", Pc = (e) => ({
6022
6025
  r,
6023
6026
  i
6024
6027
  ]);
6025
- return x(Rc.Provider, { value: o }, a);
6026
- }, Bc = () => D(Rc) ?? (Lc ||= Ic(), Lc), Vc = () => {
6027
- let e = Bc();
6028
+ return x(Bc.Provider, { value: o }, a);
6029
+ }, Hc = () => D(Bc) ?? (zc ||= Rc(), zc), Uc = () => {
6030
+ let e = Hc();
6028
6031
  return I(e.subscribe, e.getState, e.getState), e;
6029
- }, Hc = null, Uc = null, Wc = /* @__PURE__ */ new Set(), Gc = (e, t) => {
6030
- t === null && Uc !== e || Hc === t && Uc === e || (Hc = t, Uc = t === null ? null : e, Wc.forEach((e) => e()));
6031
- }, Kc = () => Hc, qc = (e) => (Wc.add(e), () => {
6032
- Wc.delete(e);
6033
- }), Jc = S((e, t) => {
6032
+ }, Wc = null, Gc = null, Kc = /* @__PURE__ */ new Set(), qc = (e, t) => {
6033
+ t === null && Gc !== e || Wc === t && Gc === e || (Wc = t, Gc = t === null ? null : e, Kc.forEach((e) => e()));
6034
+ }, Jc = () => Wc, Yc = (e) => (Kc.add(e), () => {
6035
+ Kc.delete(e);
6036
+ }), Xc = S((e, t) => {
6034
6037
  let { floating: n, anchor: r = null, onShownChange: i, onKeyboardClose: a, className: o, style: s, children: c } = e, [l, u] = F(null), d = E((e) => {
6035
6038
  u(e), typeof t == "function" ? t(e) : t && (t.current = e);
6036
6039
  }, [t]), f = P(n);
@@ -6049,7 +6052,7 @@ var Nc = "_scrollbar-themed_nj3vu_7", Pc = (e) => ({
6049
6052
  let e = {}, t = 0, n = 0, r = !1, i = !1, a = window.innerHeight, o = !1, s = jr(), c = !1, u = (e) => {
6050
6053
  s && e !== c && (c = e, s.overlaysContent = e);
6051
6054
  }, d = (t) => {
6052
- t !== i && (i = t, l.style.opacity = t ? "1" : "0", l.style.pointerEvents = t ? "auto" : "none", t || Gc(e, null), p.current.onShownChange?.(t));
6055
+ t !== i && (i = t, l.style.opacity = t ? "1" : "0", l.style.pointerEvents = t ? "auto" : "none", t || qc(e, null), p.current.onShownChange?.(t));
6053
6056
  }, h = () => {
6054
6057
  t = 0;
6055
6058
  let n = window.visualViewport, i = n?.scale ?? 1, a = n?.offsetTop ?? 0, o = n?.height ?? window.innerHeight, u = f.current && !r;
@@ -6058,11 +6061,11 @@ var Nc = "_scrollbar-themed_nj3vu_7", Pc = (e) => ({
6058
6061
  let e = s.boundingRect.height;
6059
6062
  l.style.bottom = "auto", l.style.top = a + o - (e + l.offsetHeight) / i + "px", l.style.left = `${n.offsetLeft}px`, l.style.width = n.width * i + "px", l.style.transform = `scale(${1 / i})`;
6060
6063
  } else l.style.top = "auto", l.style.bottom = "env(keyboard-inset-height, 0px)", l.style.left = "0px", l.style.width = "100%", l.style.transform = "";
6061
- l.style.transition = "opacity 150ms ease-out", d(!0), Gc(e, l.getBoundingClientRect().top);
6064
+ l.style.transition = "opacity 150ms ease-out", d(!0), qc(e, l.getBoundingClientRect().top);
6062
6065
  return;
6063
6066
  }
6064
6067
  let p = u ? a + o - l.offsetHeight / i : a;
6065
- l.style.bottom = "auto", l.style.top = `${p}px`, l.style.left = `${n?.offsetLeft ?? 0}px`, l.style.width = (n?.width ?? window.innerWidth) * i + "px", l.style.transform = i === 1 ? "" : `scale(${1 / i})`, u ? (l.style.transition = "opacity 150ms ease-out", d(!0), Gc(e, p)) : (l.style.transition = "none", d(!1));
6068
+ l.style.bottom = "auto", l.style.top = `${p}px`, l.style.left = `${n?.offsetLeft ?? 0}px`, l.style.width = (n?.width ?? window.innerWidth) * i + "px", l.style.transform = i === 1 ? "" : `scale(${1 / i})`, u ? (l.style.transition = "opacity 150ms ease-out", d(!0), qc(e, p)) : (l.style.transition = "none", d(!1));
6066
6069
  }, g = () => {
6067
6070
  t ||= requestAnimationFrame(h);
6068
6071
  }, _ = () => {
@@ -6072,10 +6075,10 @@ var Nc = "_scrollbar-themed_nj3vu_7", Pc = (e) => ({
6072
6075
  }, v = () => {
6073
6076
  _(), g();
6074
6077
  }, y = () => {
6075
- v(), f.current && (Fc(a) ? o = !0 : o && (o = !1, p.current.onKeyboardClose?.()));
6078
+ v(), f.current && (Lc(a) ? o = !0 : o && (o = !1, p.current.onKeyboardClose?.()));
6076
6079
  }, b = () => {
6077
6080
  o = !1, window.setTimeout(() => {
6078
- Fc() || (a = window.innerHeight);
6081
+ Lc() || (a = window.innerHeight);
6079
6082
  }, 300);
6080
6083
  };
6081
6084
  m.current = () => {
@@ -6089,12 +6092,12 @@ var Nc = "_scrollbar-themed_nj3vu_7", Pc = (e) => ({
6089
6092
  l.addEventListener("focusin", S), l.addEventListener("focusout", C), s?.addEventListener("geometrychange", y);
6090
6093
  let w = window.visualViewport;
6091
6094
  return w?.addEventListener("resize", y), w?.addEventListener("scroll", v), window.addEventListener("scroll", v, { passive: !0 }), window.addEventListener("resize", v), window.addEventListener("orientationchange", b), f.current && m.current(), h(), () => {
6092
- cancelAnimationFrame(t), clearTimeout(n), x?.disconnect(), w?.removeEventListener("resize", y), w?.removeEventListener("scroll", v), window.removeEventListener("scroll", v), window.removeEventListener("resize", v), window.removeEventListener("orientationchange", b), l.removeEventListener("focusin", S), l.removeEventListener("focusout", C), s?.removeEventListener("geometrychange", y), u(!1), m.current = null, Gc(e, null), i && p.current.onShownChange?.(!1);
6095
+ cancelAnimationFrame(t), clearTimeout(n), x?.disconnect(), w?.removeEventListener("resize", y), w?.removeEventListener("scroll", v), window.removeEventListener("scroll", v), window.removeEventListener("resize", v), window.removeEventListener("orientationchange", b), l.removeEventListener("focusin", S), l.removeEventListener("focusout", C), s?.removeEventListener("geometrychange", y), u(!1), m.current = null, qc(e, null), i && p.current.onShownChange?.(!1);
6093
6096
  };
6094
6097
  }, [l]), O(() => {
6095
6098
  m.current?.();
6096
6099
  }, [n]);
6097
- let h = Co(), g = So(r), { className: _, attrs: v } = Yi(h), y = _ || Object.keys(v).length > 0 ? v : g, { getPortalContainer: b } = jn(), [, x] = F(0);
6100
+ let h = To(), g = wo(r), { className: _, attrs: v } = Zi(h), y = _ || Object.keys(v).length > 0 ? v : g, { getPortalContainer: b } = jn(), [, x] = F(0);
6098
6101
  return O(() => {
6099
6102
  l && !l.isConnected && x((e) => e + 1);
6100
6103
  }), typeof document > "u" ? null : V(L("div", {
@@ -6115,12 +6118,12 @@ var Nc = "_scrollbar-themed_nj3vu_7", Pc = (e) => ({
6115
6118
  children: c
6116
6119
  }), b());
6117
6120
  });
6118
- Jc.displayName = "KeyboardAccessory";
6119
- var Yc = {
6121
+ Xc.displayName = "KeyboardAccessory";
6122
+ var Zc = {
6120
6123
  inset: 0,
6121
6124
  offsetTop: 0
6122
- }, Xc = (e) => {
6123
- let t = Rr(e), n = !!t && Fc(), r = t?.height, i = P(!1);
6125
+ }, Qc = (e) => {
6126
+ let t = Rr(e), n = !!t && Lc(), r = t?.height, i = P(!1);
6124
6127
  return O(() => {
6125
6128
  if (r === void 0) return;
6126
6129
  let e = i.current;
@@ -6128,11 +6131,11 @@ var Yc = {
6128
6131
  }, [r, n]), t && n ? {
6129
6132
  inset: Math.max(0, Math.round(window.innerHeight - t.height)),
6130
6133
  offsetTop: Math.round(t.offsetTop)
6131
- } : Yc;
6132
- }, Zc = oe((e, t) => {
6134
+ } : Zc;
6135
+ }, $c = oe((e, t) => {
6133
6136
  t.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
6134
- }), Qc = oe((e, t) => {
6135
- var n = Zc();
6137
+ }), el = oe((e, t) => {
6138
+ var n = $c();
6136
6139
  function r() {}
6137
6140
  function i() {}
6138
6141
  i.resetWarningCache = r, t.exports = function() {
@@ -6172,70 +6175,70 @@ var Yc = {
6172
6175
  return a.PropTypes = a, a;
6173
6176
  };
6174
6177
  }), Q = ce(oe((e, t) => {
6175
- t.exports = Qc()();
6178
+ t.exports = el()();
6176
6179
  })(), 1);
6177
- function $c(e, t) {
6180
+ function tl(e, t) {
6178
6181
  for (let n = 0, r = e.length; n < r; n++) if (t.apply(t, [
6179
6182
  e[n],
6180
6183
  n,
6181
6184
  e
6182
6185
  ])) return e[n];
6183
6186
  }
6184
- function el(e) {
6187
+ function nl(e) {
6185
6188
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Function]";
6186
6189
  }
6187
- function tl(e) {
6190
+ function rl(e) {
6188
6191
  return typeof e == "number" && !isNaN(e);
6189
6192
  }
6190
6193
  function $(e) {
6191
6194
  return parseInt(e, 10);
6192
6195
  }
6193
- function nl(e, t, n) {
6196
+ function il(e, t, n) {
6194
6197
  if (e[t]) return /* @__PURE__ */ Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`);
6195
6198
  }
6196
- var rl = [
6199
+ var al = [
6197
6200
  "Moz",
6198
6201
  "Webkit",
6199
6202
  "O",
6200
6203
  "ms"
6201
6204
  ];
6202
- function il(e, t) {
6205
+ function ol(e, t) {
6203
6206
  return t ? `${t}${function(e) {
6204
6207
  let t = "", n = !0;
6205
6208
  for (let r = 0; r < e.length; r++) n ? (t += e[r].toUpperCase(), n = !1) : e[r] === "-" ? n = !0 : t += e[r];
6206
6209
  return t;
6207
6210
  }(e)}` : e;
6208
6211
  }
6209
- var al = function(e = "transform") {
6212
+ var sl = function(e = "transform") {
6210
6213
  if (typeof window > "u") return "";
6211
6214
  let t = window.document?.documentElement?.style;
6212
6215
  if (!t || e in t) return "";
6213
- for (let n = 0; n < rl.length; n++) if (il(e, rl[n]) in t) return rl[n];
6216
+ for (let n = 0; n < al.length; n++) if (ol(e, al[n]) in t) return al[n];
6214
6217
  return "";
6215
- }(), ol = "";
6216
- function sl(e, t) {
6217
- ol ||= $c([
6218
+ }(), cl = "";
6219
+ function ll(e, t) {
6220
+ cl ||= tl([
6218
6221
  "matches",
6219
6222
  "webkitMatchesSelector",
6220
6223
  "mozMatchesSelector",
6221
6224
  "msMatchesSelector",
6222
6225
  "oMatchesSelector"
6223
6226
  ], function(t) {
6224
- return el(e[t]);
6227
+ return nl(e[t]);
6225
6228
  }) ?? "";
6226
- let n = e[ol];
6227
- return !!el(n) && !!n.call(e, t);
6229
+ let n = e[cl];
6230
+ return !!nl(n) && !!n.call(e, t);
6228
6231
  }
6229
- function cl(e, t, n) {
6232
+ function ul(e, t, n) {
6230
6233
  let r = e;
6231
6234
  do {
6232
- if (sl(r, t)) return !0;
6235
+ if (ll(r, t)) return !0;
6233
6236
  if (r === n) return !1;
6234
6237
  r = r.parentNode;
6235
6238
  } while (r);
6236
6239
  return !1;
6237
6240
  }
6238
- function ll(e, t, n, r) {
6241
+ function dl(e, t, n, r) {
6239
6242
  if (!e) return;
6240
6243
  let i = {
6241
6244
  capture: !0,
@@ -6243,7 +6246,7 @@ function ll(e, t, n, r) {
6243
6246
  }, a = n;
6244
6247
  e.addEventListener ? e.addEventListener(t, a, i) : e.attachEvent ? e.attachEvent("on" + t, a) : e["on" + t] = a;
6245
6248
  }
6246
- function ul(e, t, n, r) {
6249
+ function fl(e, t, n, r) {
6247
6250
  if (!e) return;
6248
6251
  let i = {
6249
6252
  capture: !0,
@@ -6251,27 +6254,27 @@ function ul(e, t, n, r) {
6251
6254
  }, a = n;
6252
6255
  e.removeEventListener ? e.removeEventListener(t, a, i) : e.detachEvent ? e.detachEvent("on" + t, a) : e["on" + t] = null;
6253
6256
  }
6254
- function dl(e) {
6257
+ function pl(e) {
6255
6258
  let t = e.clientHeight, n = e.ownerDocument.defaultView.getComputedStyle(e);
6256
6259
  return t += $(n.borderTopWidth), t += $(n.borderBottomWidth), t;
6257
6260
  }
6258
- function fl(e) {
6261
+ function ml(e) {
6259
6262
  let t = e.clientWidth, n = e.ownerDocument.defaultView.getComputedStyle(e);
6260
6263
  return t += $(n.borderLeftWidth), t += $(n.borderRightWidth), t;
6261
6264
  }
6262
- function pl(e) {
6265
+ function hl(e) {
6263
6266
  let t = e.clientHeight, n = e.ownerDocument.defaultView.getComputedStyle(e);
6264
6267
  return t -= $(n.paddingTop), t -= $(n.paddingBottom), t;
6265
6268
  }
6266
- function ml(e) {
6269
+ function gl(e) {
6267
6270
  let t = e.clientWidth, n = e.ownerDocument.defaultView.getComputedStyle(e);
6268
6271
  return t -= $(n.paddingLeft), t -= $(n.paddingRight), t;
6269
6272
  }
6270
- function hl({ x: e, y: t }, n, r) {
6273
+ function _l({ x: e, y: t }, n, r) {
6271
6274
  let i = `translate(${e}${r},${t}${r})`;
6272
6275
  return n && (i = `translate(${typeof n.x == "string" ? n.x : n.x + r}, ${typeof n.y == "string" ? n.y : n.y + r})` + i), i;
6273
6276
  }
6274
- function gl(e, t) {
6277
+ function vl(e, t) {
6275
6278
  if (!e) return;
6276
6279
  let n = e.getElementById("react-draggable-style-el");
6277
6280
  if (!n) {
@@ -6282,12 +6285,12 @@ function gl(e, t) {
6282
6285
  var r, i;
6283
6286
  e.body && (r = e.body, i = "react-draggable-transparent-selection", r.classList ? r.classList.add(i) : r.className.match(RegExp(`(?:^|\\s)${i}(?!\\S)`)) || (r.className += ` ${i}`));
6284
6287
  }
6285
- function _l(e) {
6288
+ function yl(e) {
6286
6289
  window.requestAnimationFrame ? window.requestAnimationFrame(() => {
6287
- vl(e);
6288
- }) : vl(e);
6290
+ bl(e);
6291
+ }) : bl(e);
6289
6292
  }
6290
- function vl(e) {
6293
+ function bl(e) {
6291
6294
  var t, n;
6292
6295
  if (e) try {
6293
6296
  e.body && (t = e.body, n = "react-draggable-transparent-selection", t.classList ? t.classList.remove(n) : t.className = t.className.replace(RegExp(`(?:^|\\s)${n}(?!\\S)`, "g"), ""));
@@ -6299,21 +6302,21 @@ function vl(e) {
6299
6302
  }
6300
6303
  } catch {}
6301
6304
  }
6302
- function yl(e, t, n) {
6305
+ function xl(e, t, n) {
6303
6306
  return [Math.round(t / e[0]) * e[0], Math.round(n / e[1]) * e[1]];
6304
6307
  }
6305
- function bl(e) {
6308
+ function Sl(e) {
6306
6309
  return e.props.axis === "both" || e.props.axis === "x";
6307
6310
  }
6308
- function xl(e) {
6311
+ function Cl(e) {
6309
6312
  return e.props.axis === "both" || e.props.axis === "y";
6310
6313
  }
6311
- function Sl(e, t, n) {
6314
+ function wl(e, t, n) {
6312
6315
  let r = typeof t == "number" ? function(e, t) {
6313
- return e.targetTouches && $c(e.targetTouches, (e) => t === e.identifier) || e.changedTouches && $c(e.changedTouches, (e) => t === e.identifier);
6316
+ return e.targetTouches && tl(e.targetTouches, (e) => t === e.identifier) || e.changedTouches && tl(e.changedTouches, (e) => t === e.identifier);
6314
6317
  }(e, t) : null;
6315
6318
  if (typeof t == "number" && !r) return null;
6316
- let i = Tl(n);
6319
+ let i = Dl(n);
6317
6320
  return function(e, t, n) {
6318
6321
  let r = t === t.ownerDocument.body ? {
6319
6322
  left: 0,
@@ -6325,8 +6328,8 @@ function Sl(e, t, n) {
6325
6328
  };
6326
6329
  }(r || e, n.props.offsetParent || i.offsetParent || i.ownerDocument.body, n.props.scale);
6327
6330
  }
6328
- function Cl(e, t, n) {
6329
- let r = !tl(e.lastX), i = Tl(e);
6331
+ function Tl(e, t, n) {
6332
+ let r = !rl(e.lastX), i = Dl(e);
6330
6333
  return r ? {
6331
6334
  node: i,
6332
6335
  deltaX: 0,
@@ -6345,7 +6348,7 @@ function Cl(e, t, n) {
6345
6348
  y: n
6346
6349
  };
6347
6350
  }
6348
- function wl(e, t) {
6351
+ function El(e, t) {
6349
6352
  let n = e.props.scale;
6350
6353
  return {
6351
6354
  node: t.node,
@@ -6357,46 +6360,46 @@ function wl(e, t) {
6357
6360
  lastY: e.state.y
6358
6361
  };
6359
6362
  }
6360
- function Tl(e) {
6363
+ function Dl(e) {
6361
6364
  let t = e.findDOMNode();
6362
6365
  if (!t) throw Error("<DraggableCore>: Unmounted during event!");
6363
6366
  return t;
6364
6367
  }
6365
- var El = {
6368
+ var Ol = {
6366
6369
  start: "touchstart",
6367
6370
  move: "touchmove",
6368
6371
  stop: "touchend"
6369
- }, Dl = {
6372
+ }, kl = {
6370
6373
  start: "mousedown",
6371
6374
  move: "mousemove",
6372
6375
  stop: "mouseup"
6373
- }, Ol = Dl, kl = class extends g.Component {
6376
+ }, Al = kl, jl = class extends g.Component {
6374
6377
  constructor() {
6375
6378
  super(...arguments), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, this.touchIdentifier = null, this.mounted = !1, this.handleDragStart = (e) => {
6376
6379
  if (this.props.onMouseDown(e), !this.props.allowAnyClick && (typeof e.button == "number" && e.button !== 0 || e.ctrlKey)) return !1;
6377
6380
  let t = this.findDOMNode();
6378
6381
  if (!t || !t.ownerDocument || !t.ownerDocument.body) throw Error("<DraggableCore> not mounted on DragStart!");
6379
6382
  let { ownerDocument: n } = t;
6380
- if (this.props.disabled || !(e.target instanceof n.defaultView.Node) || this.props.handle && !cl(e.target, this.props.handle, t) || this.props.cancel && cl(e.target, this.props.cancel, t)) return;
6383
+ if (this.props.disabled || !(e.target instanceof n.defaultView.Node) || this.props.handle && !ul(e.target, this.props.handle, t) || this.props.cancel && ul(e.target, this.props.cancel, t)) return;
6381
6384
  e.type !== "touchstart" || this.props.allowMobileScroll || e.preventDefault();
6382
6385
  let r = function(e) {
6383
6386
  return e.targetTouches && e.targetTouches[0] ? e.targetTouches[0].identifier : e.changedTouches && e.changedTouches[0] ? e.changedTouches[0].identifier : void 0;
6384
6387
  }(e);
6385
6388
  this.touchIdentifier = r;
6386
- let i = Sl(e, r, this);
6389
+ let i = wl(e, r, this);
6387
6390
  if (i == null) return;
6388
- let { x: a, y: o } = i, s = Cl(this, a, o);
6389
- this.props.onStart, !1 !== this.props.onStart(e, s) && !1 !== this.mounted && (this.props.enableUserSelectHack && gl(n, this.props.nonce), this.dragging = !0, this.lastX = a, this.lastY = o, ll(n, Ol.move, this.handleDrag), ll(n, Ol.stop, this.handleDragStop));
6391
+ let { x: a, y: o } = i, s = Tl(this, a, o);
6392
+ this.props.onStart, !1 !== this.props.onStart(e, s) && !1 !== this.mounted && (this.props.enableUserSelectHack && vl(n, this.props.nonce), this.dragging = !0, this.lastX = a, this.lastY = o, dl(n, Al.move, this.handleDrag), dl(n, Al.stop, this.handleDragStop));
6390
6393
  }, this.handleDrag = (e) => {
6391
- let t = Sl(e, this.touchIdentifier, this);
6394
+ let t = wl(e, this.touchIdentifier, this);
6392
6395
  if (t == null) return;
6393
6396
  let { x: n, y: r } = t;
6394
6397
  if (Array.isArray(this.props.grid)) {
6395
6398
  let e = n - this.lastX, t = r - this.lastY;
6396
- if ([e, t] = yl(this.props.grid, e, t), !e && !t) return;
6399
+ if ([e, t] = xl(this.props.grid, e, t), !e && !t) return;
6397
6400
  n = this.lastX + e, r = this.lastY + t;
6398
6401
  }
6399
- let i = Cl(this, n, r);
6402
+ let i = Tl(this, n, r);
6400
6403
  if (!1 !== this.props.onDrag(e, i) && !1 !== this.mounted) this.lastX = n, this.lastY = r;
6401
6404
  else try {
6402
6405
  this.handleDragStop(new MouseEvent("mouseup"));
@@ -6406,30 +6409,30 @@ var El = {
6406
6409
  }
6407
6410
  }, this.handleDragStop = (e) => {
6408
6411
  if (!this.dragging) return;
6409
- let t = Sl(e, this.touchIdentifier, this);
6412
+ let t = wl(e, this.touchIdentifier, this);
6410
6413
  if (t == null) return;
6411
6414
  let { x: n, y: r } = t;
6412
6415
  if (Array.isArray(this.props.grid)) {
6413
6416
  let e = n - this.lastX || 0, t = r - this.lastY || 0;
6414
- [e, t] = yl(this.props.grid, e, t), n = this.lastX + e, r = this.lastY + t;
6417
+ [e, t] = xl(this.props.grid, e, t), n = this.lastX + e, r = this.lastY + t;
6415
6418
  }
6416
- let i = Cl(this, n, r);
6419
+ let i = Tl(this, n, r);
6417
6420
  if (!1 === this.props.onStop(e, i) || !1 === this.mounted) return !1;
6418
6421
  let a = this.findDOMNode();
6419
- a && this.props.enableUserSelectHack && _l(a.ownerDocument), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, a && (ul(a.ownerDocument, Ol.move, this.handleDrag), ul(a.ownerDocument, Ol.stop, this.handleDragStop));
6420
- }, this.onMouseDown = (e) => (Ol = Dl, this.handleDragStart(e)), this.onMouseUp = (e) => (Ol = Dl, this.handleDragStop(e)), this.onTouchStart = (e) => (Ol = El, this.handleDragStart(e)), this.onTouchEnd = (e) => (Ol = El, this.handleDragStop(e));
6422
+ a && this.props.enableUserSelectHack && yl(a.ownerDocument), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, a && (fl(a.ownerDocument, Al.move, this.handleDrag), fl(a.ownerDocument, Al.stop, this.handleDragStop));
6423
+ }, this.onMouseDown = (e) => (Al = kl, this.handleDragStart(e)), this.onMouseUp = (e) => (Al = kl, this.handleDragStop(e)), this.onTouchStart = (e) => (Al = Ol, this.handleDragStart(e)), this.onTouchEnd = (e) => (Al = Ol, this.handleDragStop(e));
6421
6424
  }
6422
6425
  componentDidMount() {
6423
6426
  this.mounted = !0;
6424
6427
  let e = this.findDOMNode();
6425
- e && ll(e, El.start, this.onTouchStart, { passive: !1 });
6428
+ e && dl(e, Ol.start, this.onTouchStart, { passive: !1 });
6426
6429
  }
6427
6430
  componentWillUnmount() {
6428
6431
  this.mounted = !1;
6429
6432
  let e = this.findDOMNode();
6430
6433
  if (e) {
6431
6434
  let { ownerDocument: t } = e;
6432
- ul(t, Dl.move, this.handleDrag), ul(t, El.move, this.handleDrag), ul(t, Dl.stop, this.handleDragStop), ul(t, El.stop, this.handleDragStop), ul(e, El.start, this.onTouchStart, { passive: !1 }), this.props.enableUserSelectHack && _l(t);
6435
+ fl(t, kl.move, this.handleDrag), fl(t, Ol.move, this.handleDrag), fl(t, kl.stop, this.handleDragStop), fl(t, Ol.stop, this.handleDragStop), fl(e, Ol.start, this.onTouchStart, { passive: !1 }), this.props.enableUserSelectHack && yl(t);
6433
6436
  }
6434
6437
  }
6435
6438
  findDOMNode() {
@@ -6445,7 +6448,7 @@ var El = {
6445
6448
  });
6446
6449
  }
6447
6450
  };
6448
- kl.displayName = "DraggableCore", kl.propTypes = {
6451
+ jl.displayName = "DraggableCore", jl.propTypes = {
6449
6452
  allowAnyClick: Q.default.bool,
6450
6453
  allowMobileScroll: Q.default.bool,
6451
6454
  children: Q.default.node.isRequired,
@@ -6464,10 +6467,10 @@ kl.displayName = "DraggableCore", kl.propTypes = {
6464
6467
  onStop: Q.default.func,
6465
6468
  onMouseDown: Q.default.func,
6466
6469
  scale: Q.default.number,
6467
- className: nl,
6468
- style: nl,
6469
- transform: nl
6470
- }, kl.defaultProps = {
6470
+ className: il,
6471
+ style: il,
6472
+ transform: il
6473
+ }, jl.defaultProps = {
6471
6474
  allowAnyClick: !1,
6472
6475
  allowMobileScroll: !1,
6473
6476
  disabled: !1,
@@ -6478,17 +6481,17 @@ kl.displayName = "DraggableCore", kl.propTypes = {
6478
6481
  onMouseDown: function() {},
6479
6482
  scale: 1
6480
6483
  };
6481
- var Al = class extends g.Component {
6484
+ var Ml = class extends g.Component {
6482
6485
  constructor(e) {
6483
6486
  super(e), this.onDragStart = (e, t) => {
6484
- if (!1 === this.props.onStart(e, wl(this, t))) return !1;
6487
+ if (!1 === this.props.onStart(e, El(this, t))) return !1;
6485
6488
  this.setState({
6486
6489
  dragging: !0,
6487
6490
  dragged: !0
6488
6491
  });
6489
6492
  }, this.onDrag = (e, t) => {
6490
6493
  if (!this.state.dragging) return !1;
6491
- let n = wl(this, t), r = {
6494
+ let n = El(this, t), r = {
6492
6495
  x: n.x,
6493
6496
  y: n.y,
6494
6497
  slackX: 0,
@@ -6508,7 +6511,7 @@ var Al = class extends g.Component {
6508
6511
  bottom: e.bottom
6509
6512
  };
6510
6513
  }(r);
6511
- let i = Tl(e);
6514
+ let i = Dl(e);
6512
6515
  if (typeof r == "string") {
6513
6516
  let { ownerDocument: e } = i, t = e.defaultView;
6514
6517
  if (!t) throw Error("Cannot resolve the owner window of the draggable node.");
@@ -6518,18 +6521,18 @@ var Al = class extends g.Component {
6518
6521
  r = {
6519
6522
  left: -i.offsetLeft + $(s.paddingLeft) + $(o.marginLeft),
6520
6523
  top: -i.offsetTop + $(s.paddingTop) + $(o.marginTop),
6521
- right: ml(a) - fl(i) - i.offsetLeft + $(s.paddingRight) - $(o.marginRight),
6522
- bottom: pl(a) - dl(i) - i.offsetTop + $(s.paddingBottom) - $(o.marginBottom)
6524
+ right: gl(a) - ml(i) - i.offsetLeft + $(s.paddingRight) - $(o.marginRight),
6525
+ bottom: hl(a) - pl(i) - i.offsetTop + $(s.paddingBottom) - $(o.marginBottom)
6523
6526
  };
6524
6527
  }
6525
- return tl(r.right) && (t = Math.min(t, r.right)), tl(r.bottom) && (n = Math.min(n, r.bottom)), tl(r.left) && (t = Math.max(t, r.left)), tl(r.top) && (n = Math.max(n, r.top)), [t, n];
6528
+ return rl(r.right) && (t = Math.min(t, r.right)), rl(r.bottom) && (n = Math.min(n, r.bottom)), rl(r.left) && (t = Math.max(t, r.left)), rl(r.top) && (n = Math.max(n, r.top)), [t, n];
6526
6529
  }(this, r.x, r.y);
6527
6530
  r.x = i, r.y = a, r.slackX = this.state.slackX + (e - r.x), r.slackY = this.state.slackY + (t - r.y), n.x = r.x, n.y = r.y, n.deltaX = r.x - this.state.x, n.deltaY = r.y - this.state.y;
6528
6531
  }
6529
6532
  if (!1 === this.props.onDrag(e, n)) return !1;
6530
6533
  this.setState(r);
6531
6534
  }, this.onDragStop = (e, t) => {
6532
- if (!this.state.dragging || !1 === this.props.onStop(e, wl(this, t))) return !1;
6535
+ if (!this.state.dragging || !1 === this.props.onStop(e, El(this, t))) return !1;
6533
6536
  let n = {
6534
6537
  dragging: !1,
6535
6538
  slackX: 0,
@@ -6571,20 +6574,20 @@ var Al = class extends g.Component {
6571
6574
  }
6572
6575
  render() {
6573
6576
  let { axis: e, bounds: t, children: n, defaultPosition: r, defaultClassName: i, defaultClassNameDragging: a, defaultClassNameDragged: o, position: s, positionOffset: c, scale: l, ...u } = this.props, d = {}, f = null, p = !s || this.state.dragging, m = s || r, h = {
6574
- x: bl(this) && p ? this.state.x : m.x,
6575
- y: xl(this) && p ? this.state.y : m.y
6577
+ x: Sl(this) && p ? this.state.x : m.x,
6578
+ y: Cl(this) && p ? this.state.y : m.y
6576
6579
  };
6577
6580
  this.state.isElementSVG ? f = function(e, t) {
6578
- return hl(e, t, "");
6581
+ return _l(e, t, "");
6579
6582
  }(h, c) : d = function(e, t) {
6580
- let n = hl(e, t, "px");
6581
- return { [il("transform", al)]: n };
6583
+ let n = _l(e, t, "px");
6584
+ return { [ol("transform", sl)]: n };
6582
6585
  }(h, c);
6583
6586
  let _ = g.Children.only(n), v = X(_.props.className || "", i, {
6584
6587
  [a]: this.state.dragging,
6585
6588
  [o]: this.state.dragged
6586
6589
  });
6587
- return g.createElement(kl, {
6590
+ return g.createElement(jl, {
6588
6591
  ...u,
6589
6592
  onStart: this.onDragStart,
6590
6593
  onDrag: this.onDrag,
@@ -6599,8 +6602,8 @@ var Al = class extends g.Component {
6599
6602
  }));
6600
6603
  }
6601
6604
  };
6602
- Al.displayName = "Draggable", Al.propTypes = {
6603
- ...kl.propTypes,
6605
+ Ml.displayName = "Draggable", Ml.propTypes = {
6606
+ ...jl.propTypes,
6604
6607
  axis: Q.default.oneOf([
6605
6608
  "both",
6606
6609
  "x",
@@ -6632,11 +6635,11 @@ Al.displayName = "Draggable", Al.propTypes = {
6632
6635
  x: Q.default.number,
6633
6636
  y: Q.default.number
6634
6637
  }),
6635
- className: nl,
6636
- style: nl,
6637
- transform: nl
6638
- }, Al.defaultProps = {
6639
- ...kl.defaultProps,
6638
+ className: il,
6639
+ style: il,
6640
+ transform: il
6641
+ }, Ml.defaultProps = {
6642
+ ...jl.defaultProps,
6640
6643
  axis: "both",
6641
6644
  bounds: !1,
6642
6645
  defaultClassName: "react-draggable",
@@ -6648,7 +6651,7 @@ Al.displayName = "Draggable", Al.propTypes = {
6648
6651
  },
6649
6652
  scale: 1
6650
6653
  };
6651
- var jl = {
6654
+ var Nl = {
6652
6655
  axis: Q.default.oneOf([
6653
6656
  "both",
6654
6657
  "x",
@@ -6700,12 +6703,12 @@ var jl = {
6700
6703
  let [t] = e;
6701
6704
  return t.axis === "both" || t.axis === "x" ? Q.default.number.isRequired(...e) : Q.default.number(...e);
6702
6705
  }
6703
- }, Ml = class extends g.Component {
6706
+ }, Pl = class extends g.Component {
6704
6707
  constructor(...e) {
6705
6708
  super(...e), this.handleRefs = {}, this.lastHandleRect = null, this.slack = null, this.lastSize = null;
6706
6709
  }
6707
6710
  static {
6708
- this.propTypes = jl;
6711
+ this.propTypes = Nl;
6709
6712
  }
6710
6713
  static {
6711
6714
  this.defaultProps = {
@@ -6779,7 +6782,7 @@ var jl = {
6779
6782
  className: (t ? `${t} ` : "") + "react-resizable",
6780
6783
  children: [...g.Children.toArray(e.props.children), ...m.map((e) => {
6781
6784
  let t = this.handleRefs[e] ?? (this.handleRefs[e] = g.createRef());
6782
- return x(kl, {
6785
+ return x(jl, {
6783
6786
  ...n,
6784
6787
  nodeRef: t,
6785
6788
  key: `resizableHandle-${e}`,
@@ -6794,7 +6797,7 @@ var jl = {
6794
6797
  }), b.className && y.props.className && (b.className = `${y.props.className} ${b.className}`), _.cloneElement(y, b);
6795
6798
  var y, b;
6796
6799
  }
6797
- }, Nl = class extends g.Component {
6800
+ }, Fl = class extends g.Component {
6798
6801
  constructor(...e) {
6799
6802
  super(...e), this.state = {
6800
6803
  width: this.props.width,
@@ -6808,7 +6811,7 @@ var jl = {
6808
6811
  }
6809
6812
  static {
6810
6813
  this.propTypes = {
6811
- ...jl,
6814
+ ...Nl,
6812
6815
  children: Q.default.element
6813
6816
  };
6814
6817
  }
@@ -6822,7 +6825,7 @@ var jl = {
6822
6825
  }
6823
6826
  render() {
6824
6827
  let { handle: e, handleSize: t, onResize: n, onResizeStart: r, onResizeStop: i, draggableOpts: a, minConstraints: o, maxConstraints: s, lockAspectRatio: c, axis: l, width: u, height: d, resizeHandles: f, style: p, transformScale: m, ...h } = this.props;
6825
- return L(Ml, {
6828
+ return L(Pl, {
6826
6829
  axis: l,
6827
6830
  draggableOpts: a,
6828
6831
  handle: e,
@@ -6848,4 +6851,4 @@ var jl = {
6848
6851
  });
6849
6852
  }
6850
6853
  };
6851
- export { pe as ACCUMULATE, cn as AnimationModeProvider, Ec as AxisViewport, rn as Command, Vt as CommandAnchorProvider, xe as CommandButtonEntryLabel, _e as CommandButtonRegistryContext, ye as CommandButtonRegistryProvider, fe as CommandButtonType, At as CommandChainContext, Ut as CommandFallbackContext, Kt as CommandFallbackProvider, Jt as CommandFocusProvider, Mt as CommandOrderContext, K as CommandRegistry, Fe as CommandRegistryContext, kt as CommandResolver, zt as CommandResolverContext, Le as CommandScope, Pt as CommandScopeContext, Lt as CommandScopeProvider, Be as ConstantActivation, J as DefaultCommandButtonRegistry, Pe as DefaultCommandCatalogService, q as DefaultCommandRegistry, n as DefaultIconService, t as DynamicIcon, xs as EDGE_HOLD_INTERVAL_MS, Po as FloatPanel, No as FloatPanelSurface, ko as FloatPopper, Io as FloatProvider, Zt as FloatStackProvider, Ve as FocusActivation, ri as FocusKeyNavigation, Di as INPUT_SELECTION_TINT, Ei as INPUT_SELECTION_VAR, Go as InMemoryStore, wt as KeyBindingDispatcher, ue as KeyCodes, le as KeyModifiers, Jc as KeyboardAccessory, mr as LanguageStateKey, He as LayerActivation, is as LocalStorageStore, ze as ManualActivation, de as MouseButtonCodes, ln as NotifierType, Ss as PAGE_INITIAL_DELAY_MS, Cs as PAGE_REPEAT_DELAY_MS, es as PendingRender, cs as PendingRenderScope, $o as PersistentStateProvider, Se as QUICK_ACTION_TAG, di as ReactErrorBoundary, gn as ReactNotifierProvider, ot as ReactUtils, ii as RenderSlot, Ml as Resizable, Nl as ResizableBox, oi as RoundedTab, vc as SCROLL_ANIMATION_MS, bi as SERIES_COUNT, ki as SXL_THEME_LAYERS, Ai as SXL_THEME_LAYER_ORDER, hc as ScrollPane, rc as ScrollUtils, Vs as Scrollbar, Z as ScrollbarOrientation, Wo as SplitPane, zo as SplitPaneResizer, Ni as THEME_MODE_ATTR, Pi as THEME_SURFACE_ATTR, Ds as TOUCH_THUMB_ASPECT, Os as TOUCH_THUMB_MARGIN, As as TOUCH_THUMB_MARGIN_CROSS, js as TOUCH_THUMB_MARGIN_END, ks as TOUCH_THUMB_MARGIN_START, Es as TOUCH_THUMB_SIZE, Bi as TokenThemeContext, Hi as TokenThemeProvider, Fs as TouchThumbFrameProvider, zs as TouchThumbHandle, gi as UncaughtErrorBoundary, _c as Viewport, zc as VirtualKeyboardProvider, Mc as VirtualScrollbar, r as WalkingIcon, _i as Z_INDEX, ke as asCommandCatalog, It as attachWhenReady, Mi as buildThemeCSS, je as chromeToPartial, vr as composeCaretRect, un as createBusyHandle, Ne as createCommandCatalogService, e as createDynamicIconService, dn as createNoopBusyHandle, we as createResolvedCommand, Ii as createThemeScopeClass, ws as createTrackDrag, Ic as createVirtualKeyboardStore, Fo as defaultRenderFloatPanel, jo as defaultRenderFloatPopupPanel, bs as defaultRenderScrollButtonEdge, ys as defaultRenderScrollButtonEnd, vs as defaultRenderScrollButtonStart, gc as defaultRenderScrollCorner, xi as defaultTheme, dr as exitEditMode, Ae as fetchCatalog, Yi as floatThemeScopeProps, wn as getDevicePixelRatio, Un as getInputModality, Kc as getKeyboardAccessoryTop, Pc as getScrollbarCssVariables, br as getTextareaCaretRect, Pr as getVisualViewportRect, Ct as isCaretKey, Fc as isVirtualKeyboardUp, Et as keyEventCanonicals, Tt as keyStrokeToCanonical, li as lazyComponent, Ln as measureUIText, Me as mergeChrome, yi as offsetZIndex, De as parseShortcutString, me as reduceDefinitions, Re as resolveAnchorSource, Ui as resolveToken, Wi as resolveTokens, Nc as scrollbarThemedClassName, Oe as serializeShortcut, lr as setEditMode, fr as subscribeEditModeExit, Gn as subscribeInputModality, qc as subscribeKeyboardAccessoryTop, Fr as subscribeVisualViewport, Fi as themeSurfaceProps, wi as themeVars, Ci as toVars, Ns as touchThumbCornerReserve, Ms as touchThumbCrossInset, $r as useAnimatedMeasure, sn as useAnimationMode, bn as useBoundSyncExternalStore, Y as useCallbackRef, be as useCommandButtonEntry, ve as useCommandButtonRegistry, jt as useCommandChain, Rt as useCommandElement, Ht as useCommandExecute, Wt as useCommandFallback, Yt as useCommandFocusRestore, Nt as useCommandOrder, Ie as useCommandRegistry, Bt as useCommandResolver, Ft as useCommandScope, tn as useCommands, nn as useContributeCommands, Cn as useDevicePixelRatio, pr as useEditMode, Qt as useFloat, en as useFloatPopupOpen, Lo as useFloatStack, Ji as useFloatSurface, En as useFullscreen, jn as useFullscreenPortal, Sr as useGlobalClipboard, Or as useId, Ar as useImperativeElement, qn as useInputModality, zr as useIsomorphicLayoutEffect, Xc as useKeyboardResize, hr as useLanguage, ci as useLazyRetry, Jr as useLocationSearch, Vr as useMeasure, zn as useMouseDownAndHoldListener, _n as useNotifier, Tn as useOnClickOrFocusAway, Sn as useOptionalBoundSyncExternalStore, yn as useOptionalSyncExternalStore, ls as usePendingRender, Zo as usePersistentState, Li as useResolvedThemeMode, Rn as useSynchronizedPointerHandler, In as useTextSelectionDrag, xr as useTextareaCaretRect, Vi as useTokenThemeContext, Is as useTouchThumbFrame, Cr as useTraceUpdate, Ts as useTrackDrag, gr as useTranslator, Vc as useVirtualKeyboard, Bc as useVirtualKeyboardStore, Rr as useVisualViewportRect, os as whenRenderSettled, vi as zIndexVar };
6854
+ export { pe as ACCUMULATE, cn as AnimationModeProvider, Oc as AxisViewport, rn as Command, Vt as CommandAnchorProvider, xe as CommandButtonEntryLabel, _e as CommandButtonRegistryContext, ye as CommandButtonRegistryProvider, fe as CommandButtonType, At as CommandChainContext, Ut as CommandFallbackContext, Kt as CommandFallbackProvider, Jt as CommandFocusProvider, Mt as CommandOrderContext, K as CommandRegistry, Fe as CommandRegistryContext, kt as CommandResolver, zt as CommandResolverContext, Le as CommandScope, Pt as CommandScopeContext, Lt as CommandScopeProvider, Be as ConstantActivation, J as DefaultCommandButtonRegistry, Pe as DefaultCommandCatalogService, q as DefaultCommandRegistry, n as DefaultIconService, t as DynamicIcon, Cs as EDGE_HOLD_INTERVAL_MS, Io as FloatPanel, Fo as FloatPanelSurface, jo as FloatPopper, Ro as FloatProvider, Zt as FloatStackProvider, Ve as FocusActivation, ri as FocusKeyNavigation, Di as INPUT_SELECTION_TINT, Ei as INPUT_SELECTION_VAR, qo as InMemoryStore, wt as KeyBindingDispatcher, ue as KeyCodes, le as KeyModifiers, Xc as KeyboardAccessory, mr as LanguageStateKey, He as LayerActivation, os as LocalStorageStore, ze as ManualActivation, de as MouseButtonCodes, ln as NotifierType, ws as PAGE_INITIAL_DELAY_MS, Ts as PAGE_REPEAT_DELAY_MS, ns as PendingRender, us as PendingRenderScope, ts as PersistentStateProvider, Se as QUICK_ACTION_TAG, di as ReactErrorBoundary, gn as ReactNotifierProvider, ot as ReactUtils, ii as RenderSlot, Pl as Resizable, Fl as ResizableBox, oi as RoundedTab, bc as SCROLL_ANIMATION_MS, bi as SERIES_COUNT, ki as SXL_THEME_LAYERS, Ai as SXL_THEME_LAYER_ORDER, _c as ScrollPane, ac as ScrollUtils, Us as Scrollbar, Z as ScrollbarOrientation, Ko as SplitPane, Vo as SplitPaneResizer, Ni as THEME_MODE_ATTR, Pi as THEME_SURFACE_ATTR, ks as TOUCH_THUMB_ASPECT, As as TOUCH_THUMB_MARGIN, Ms as TOUCH_THUMB_MARGIN_CROSS, Ns as TOUCH_THUMB_MARGIN_END, js as TOUCH_THUMB_MARGIN_START, Os as TOUCH_THUMB_SIZE, Li as ThemeModeFallbackContext, Hi as TokenThemeContext, Wi as TokenThemeProvider, Ls as TouchThumbFrameProvider, Vs as TouchThumbHandle, gi as UncaughtErrorBoundary, yc as Viewport, Vc as VirtualKeyboardProvider, Pc as VirtualScrollbar, r as WalkingIcon, _i as Z_INDEX, ke as asCommandCatalog, It as attachWhenReady, Mi as buildThemeCSS, je as chromeToPartial, vr as composeCaretRect, un as createBusyHandle, Ne as createCommandCatalogService, e as createDynamicIconService, dn as createNoopBusyHandle, we as createResolvedCommand, Ii as createThemeScopeClass, Es as createTrackDrag, Rc as createVirtualKeyboardStore, Lo as defaultRenderFloatPanel, No as defaultRenderFloatPopupPanel, Ss as defaultRenderScrollButtonEdge, xs as defaultRenderScrollButtonEnd, bs as defaultRenderScrollButtonStart, vc as defaultRenderScrollCorner, xi as defaultTheme, dr as exitEditMode, Ae as fetchCatalog, Zi as floatThemeScopeProps, wn as getDevicePixelRatio, Un as getInputModality, Jc as getKeyboardAccessoryTop, Ic as getScrollbarCssVariables, br as getTextareaCaretRect, Pr as getVisualViewportRect, Ct as isCaretKey, Lc as isVirtualKeyboardUp, Et as keyEventCanonicals, Tt as keyStrokeToCanonical, li as lazyComponent, Ln as measureUIText, Me as mergeChrome, yi as offsetZIndex, De as parseShortcutString, me as reduceDefinitions, Re as resolveAnchorSource, Gi as resolveToken, Ki as resolveTokens, Fc as scrollbarThemedClassName, Oe as serializeShortcut, lr as setEditMode, fr as subscribeEditModeExit, Gn as subscribeInputModality, Yc as subscribeKeyboardAccessoryTop, Fr as subscribeVisualViewport, Fi as themeSurfaceProps, wi as themeVars, Ci as toVars, Fs as touchThumbCornerReserve, Ps as touchThumbCrossInset, $r as useAnimatedMeasure, sn as useAnimationMode, bn as useBoundSyncExternalStore, Y as useCallbackRef, be as useCommandButtonEntry, ve as useCommandButtonRegistry, jt as useCommandChain, Rt as useCommandElement, Ht as useCommandExecute, Wt as useCommandFallback, Yt as useCommandFocusRestore, Nt as useCommandOrder, Ie as useCommandRegistry, Bt as useCommandResolver, Ft as useCommandScope, tn as useCommands, nn as useContributeCommands, Cn as useDevicePixelRatio, pr as useEditMode, Qt as useFloat, en as useFloatPopupOpen, zo as useFloatStack, Xi as useFloatSurface, En as useFullscreen, jn as useFullscreenPortal, Sr as useGlobalClipboard, Or as useId, Ar as useImperativeElement, qn as useInputModality, zr as useIsomorphicLayoutEffect, Qc as useKeyboardResize, hr as useLanguage, ci as useLazyRetry, Jr as useLocationSearch, Vr as useMeasure, zn as useMouseDownAndHoldListener, _n as useNotifier, Tn as useOnClickOrFocusAway, Sn as useOptionalBoundSyncExternalStore, yn as useOptionalSyncExternalStore, ds as usePendingRender, $o as usePersistentState, Ri as useResolvedThemeMode, Rn as useSynchronizedPointerHandler, In as useTextSelectionDrag, xr as useTextareaCaretRect, Ui as useTokenThemeContext, Rs as useTouchThumbFrame, Cr as useTraceUpdate, Ds as useTrackDrag, gr as useTranslator, Uc as useVirtualKeyboard, Hc as useVirtualKeyboardStore, Rr as useVisualViewportRect, cs as whenRenderSettled, vi as zIndexVar };