@gpustack/core-ui 1.0.14 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { o as e, r as t, t as n } from "./rolldown-runtime-gEudmnaM.js";
2
- import { i as r, n as i, r as a, t as o } from "./useIntl-CtHcH0Kd.js";
2
+ import { i as r, n as i, r as a, t as o } from "./useIntl-CQ7P5Olk.js";
3
3
  import { t as s } from "./lodash-DVkZQU_K.js";
4
- import { a as c, i as l, n as u, o as d, r as f, t as p } from "./highlight-code-BFmm0x52.js";
4
+ import { a as c, i as l, n as u, o as d, r as f, t as p } from "./highlight-code-DaPJLZGP.js";
5
5
  import { A as m, _ as h, a as g, c as _, f as v, g as y, n as b, s as x, y as S } from "./utils-CIKJeIzI.js";
6
- import { t as C } from "./editor-wrap-DQdG3MHA.js";
6
+ import { t as C } from "./editor-wrap-BGZYfHpj.js";
7
7
  import w from "axios";
8
8
  import * as T from "react";
9
9
  import E, { PureComponent as D, createContext as O, createElement as k, forwardRef as A, isValidElement as j, memo as M, useCallback as N, useContext as P, useEffect as F, useImperativeHandle as I, useLayoutEffect as L, useMemo as R, useRef as z, useState as B, version as ee } from "react";
@@ -2140,16 +2140,23 @@ function Oi(e, t) {
2140
2140
  }));
2141
2141
  }
2142
2142
  //#endregion
2143
- //#region src/lib/components/drop-down-actions/index.tsx
2144
- var ki = (e) => {
2145
- let { menu: t, trigger: n = ["hover"], placement: r = "bottomRight", children: i, ...a } = e, s = o();
2143
+ //#region src/lib/hooks/useAccess.ts
2144
+ var ki = () => {
2145
+ let { access: e } = a();
2146
+ return e?.useAccess?.() ?? {};
2147
+ }, Ai = (e) => {
2148
+ let { menu: t, trigger: n = ["hover"], placement: r = "bottomRight", children: i, ...a } = e, s = o(), c = ki();
2146
2149
  return /* @__PURE__ */ H(dt, {
2147
2150
  menu: {
2148
2151
  items: R(() => t?.items?.map((e) => ({
2149
2152
  ...Z.default.omit(e, "locale"),
2150
2153
  icon: e.icon ? E.cloneElement(e.icon, { style: { fontSize: 14 } }) : null,
2151
2154
  label: e.locale ? s.formatMessage({ id: e.label }) : e.label
2152
- })), [t?.items, s]),
2155
+ })).filter((e) => e?.access ? c?.[e.access] : !0), [
2156
+ t?.items,
2157
+ s,
2158
+ c
2159
+ ]),
2153
2160
  onClick: t?.onClick
2154
2161
  },
2155
2162
  trigger: n,
@@ -2157,11 +2164,11 @@ var ki = (e) => {
2157
2164
  ...a,
2158
2165
  children: i
2159
2166
  });
2160
- }, Ai = [
2167
+ }, ji = [
2161
2168
  "image/png",
2162
2169
  "image/jpg",
2163
2170
  "image/jpeg"
2164
- ], ji = ({ handleUpdateImgList: e, multiple: t = !0, drag: n = !1, disabled: r = !1, children: i, icon: a, title: s, accept: c = Ai.join(","), size: l = "small", maxSize: u, width: d, height: f, verifySize: p = !1 }) => {
2171
+ ], Mi = ({ handleUpdateImgList: e, multiple: t = !0, drag: n = !1, disabled: r = !1, children: i, icon: a, title: s, accept: c = ji.join(","), size: l = "small", maxSize: u, width: d, height: f, verifySize: p = !1 }) => {
2165
2172
  let m = o(), h = z(null), g = N((e) => {
2166
2173
  let t = c.split(",").map((e) => e.trim());
2167
2174
  return t.includes(e.type) ? u !== void 0 && e.size > u * 1024 ? (Ft.error(m.formatMessage({ id: "common.file.size.limit" }, { size: `${u}KB` })), !1) : !0 : (Ft.error(m.formatMessage({ id: "common.file.format.limit" }, { formats: t.join(", ") })), !1);
@@ -2223,7 +2230,7 @@ var ki = (e) => {
2223
2230
  })
2224
2231
  })
2225
2232
  }) });
2226
- }, Mi = Y.div`
2233
+ }, Ni = Y.div`
2227
2234
  position: relative;
2228
2235
  .del-btn {
2229
2236
  display: none;
@@ -2239,7 +2246,7 @@ var ki = (e) => {
2239
2246
  display: flex;
2240
2247
  }
2241
2248
  }
2242
- `, Ni = (e) => {
2249
+ `, Pi = (e) => {
2243
2250
  let { handleUpdateImgList: t, updateUidCount: n, size: r = "middle", inputProps: i } = e, a = o(), [s, c] = B(!1), [l, u] = B(!1), [d, f] = B(!1), p = (e) => {
2244
2251
  f(e), console.log("handleOnOpenChange", e);
2245
2252
  }, m = z(null), h = () => {
@@ -2266,7 +2273,7 @@ var ki = (e) => {
2266
2273
  ImageURLInput: s ? /* @__PURE__ */ H(J, {
2267
2274
  open: l,
2268
2275
  title: a.formatMessage({ id: "playground.uploadImage.url.invalid" }),
2269
- children: /* @__PURE__ */ U(Mi, { children: [/* @__PURE__ */ H(ht, {
2276
+ children: /* @__PURE__ */ U(Ni, { children: [/* @__PURE__ */ H(ht, {
2270
2277
  ...i,
2271
2278
  ref: m,
2272
2279
  status: l ? "error" : "",
@@ -2289,11 +2296,11 @@ var ki = (e) => {
2289
2296
  })] })
2290
2297
  }) : null,
2291
2298
  dropDownOpen: d,
2292
- UploadImageButton: /* @__PURE__ */ H(ki, {
2299
+ UploadImageButton: /* @__PURE__ */ H(Ai, {
2293
2300
  onOpenChange: p,
2294
2301
  placement: "topLeft",
2295
2302
  menu: { items: [{
2296
- label: /* @__PURE__ */ U(ji, {
2303
+ label: /* @__PURE__ */ U(Mi, {
2297
2304
  handleUpdateImgList: t,
2298
2305
  size: "middle",
2299
2306
  children: [/* @__PURE__ */ H(Xe, { className: "m-r-8" }), a.formatMessage({ id: "playground.img.upload" })]
@@ -2315,7 +2322,7 @@ var ki = (e) => {
2315
2322
  })
2316
2323
  })
2317
2324
  };
2318
- }, Pi = () => {
2325
+ }, Fi = () => {
2319
2326
  let e = o(), [t, n] = Ft.useMessage();
2320
2327
  return {
2321
2328
  getRuleMessage: (t, n, r = !0) => {
@@ -2329,7 +2336,7 @@ var ki = (e) => {
2329
2336
  };
2330
2337
  //#endregion
2331
2338
  //#region src/lib/hooks/use-body-scroll.ts
2332
- function Fi() {
2339
+ function Ii() {
2333
2340
  let e = E.useRef(0), t = E.useRef({}), n = E.useRef(null), r = E.useRef(null), i = E.useRef(null), a = () => {
2334
2341
  n.current = window.__GPUSTACK_BODY_SCROLLER__?.elements()?.scrollEventElement, r.current = window.__GPUSTACK_BODY_SCROLLER__;
2335
2342
  };
@@ -2355,14 +2362,14 @@ function Fi() {
2355
2362
  }
2356
2363
  //#endregion
2357
2364
  //#region src/lib/hooks/use-chunk-fetch.ts
2358
- async function Ii(e) {
2365
+ async function Li(e) {
2359
2366
  try {
2360
2367
  return (e.headers.get("content-type") || "").includes("application/json") ? await e.json() : { message: await e.text() || "Unknown error" };
2361
2368
  } catch {
2362
2369
  return { message: "Failed to parse error response" };
2363
2370
  }
2364
2371
  }
2365
- var Li = class {
2372
+ var Ri = class {
2366
2373
  buffer = [];
2367
2374
  contentLength = null;
2368
2375
  progress = 0;
@@ -2401,9 +2408,9 @@ var Li = class {
2401
2408
  getBuffer() {
2402
2409
  return this.buffer;
2403
2410
  }
2404
- }, Ri = () => {
2411
+ }, zi = () => {
2405
2412
  let { config: e } = a(), { apiBaseUrl: t } = e, n = z(null), r = z({}), i = async (e, t, n = 100) => {
2406
- let r = e?.body?.getReader(), i = new TextDecoder("utf-8"), a = new Li({
2413
+ let r = e?.body?.getReader(), i = new TextDecoder("utf-8"), a = new Ri({
2407
2414
  contentLength: e.headers.get("content-length"),
2408
2415
  callback: t
2409
2416
  }), o = !1, s = async () => {
@@ -2445,7 +2452,7 @@ var Li = class {
2445
2452
  signal: n.current.signal
2446
2453
  });
2447
2454
  if (!l.ok) {
2448
- let e = await Ii(l);
2455
+ let e = await Li(l);
2449
2456
  a ? a(e) : r(e?.message);
2450
2457
  return;
2451
2458
  }
@@ -2461,23 +2468,23 @@ var Li = class {
2461
2468
  n.current?.abort?.(), window.removeEventListener("beforeunload", e);
2462
2469
  };
2463
2470
  }, []), { setChunkFetch: s };
2464
- }, zi = /* @__PURE__ */ t({
2465
- StatusColorMap: () => Hi,
2466
- StatusMaps: () => Ui,
2467
- WatchEventType: () => Vi,
2468
- breakpoints: () => Bi
2469
- }), Bi = {
2471
+ }, Bi = /* @__PURE__ */ t({
2472
+ StatusColorMap: () => Ui,
2473
+ StatusMaps: () => Wi,
2474
+ WatchEventType: () => Hi,
2475
+ breakpoints: () => Vi
2476
+ }), Vi = {
2470
2477
  xs: 0,
2471
2478
  sm: 576,
2472
2479
  md: 768,
2473
2480
  lg: 992,
2474
2481
  xl: 1200,
2475
2482
  xxl: 1600
2476
- }, Vi = {
2483
+ }, Hi = {
2477
2484
  CREATE: 1,
2478
2485
  UPDATE: 2,
2479
2486
  DELETE: 3
2480
- }, Hi = {
2487
+ }, Ui = {
2481
2488
  error: {
2482
2489
  text: "var(--ant-red-6)",
2483
2490
  bg: "var(--ant-red-1)"
@@ -2499,7 +2506,7 @@ var Li = class {
2499
2506
  border: "var(--ant-color-border)",
2500
2507
  bg: "var(--ant-color-fill)"
2501
2508
  }
2502
- }, Ui = {
2509
+ }, Wi = {
2503
2510
  error: "error",
2504
2511
  warning: "warning",
2505
2512
  transitioning: "transitioning",
@@ -2512,38 +2519,38 @@ window.__GPUSTACK_WATCH_REQUEST_CLEAR__ = {
2512
2519
  watchIDValue: 0,
2513
2520
  requestList: []
2514
2521
  };
2515
- var Wi = () => (window.__GPUSTACK_WATCH_REQUEST_CLEAR__.watchIDValue = window.__GPUSTACK_WATCH_REQUEST_CLEAR__.watchIDValue + 1, window.__GPUSTACK_WATCH_REQUEST_CLEAR__.watchIDValue), Gi = (e) => {
2522
+ var Gi = () => (window.__GPUSTACK_WATCH_REQUEST_CLEAR__.watchIDValue = window.__GPUSTACK_WATCH_REQUEST_CLEAR__.watchIDValue + 1, window.__GPUSTACK_WATCH_REQUEST_CLEAR__.watchIDValue), Ki = (e) => {
2516
2523
  window.__GPUSTACK_WATCH_REQUEST_CLEAR__.requestList.push(e);
2517
- }, Ki = (e) => {
2524
+ }, qi = (e) => {
2518
2525
  let t = window.__GPUSTACK_WATCH_REQUEST_CLEAR__.requestList;
2519
2526
  for (let n = 0; n < e; n++) t[n]?.cancel?.();
2520
2527
  window.__GPUSTACK_WATCH_REQUEST_CLEAR__.requestList = t.slice(e);
2521
- }, qi = (e) => {
2528
+ }, Ji = (e) => {
2522
2529
  let t = window.__GPUSTACK_WATCH_REQUEST_CLEAR__.requestList.filter((t) => t.id !== e);
2523
2530
  window.__GPUSTACK_WATCH_REQUEST_CLEAR__.requestList = t;
2524
- }, Ji = () => {
2531
+ }, Yi = () => {
2525
2532
  let { CancelToken: e } = w;
2526
2533
  return e.source();
2527
- }, Yi = (e, t, n) => {
2534
+ }, Xi = (e, t, n) => {
2528
2535
  let r = e.slice(n.current);
2529
2536
  return n.current = t, r;
2530
- }, Xi = () => {
2537
+ }, Zi = () => {
2531
2538
  let { services: e } = a(), { request: t } = e, n = window.__GPUSTACK_WATCH_REQUEST_CLEAR__.requestList, [r, i] = B(0), o = z(null), s = z({}), c = z(0), l = z(0), u = z(5), d = {
2532
2539
  params: {},
2533
2540
  contentType: "json"
2534
2541
  }, f = z(null), p = z(0), m = z(null), h = () => {
2535
2542
  c.current = 0, l.current = 0, p.current = 0, i(0);
2536
2543
  }, g = () => {
2537
- let { CancelToken: e } = w, t = e.source(), n = Wi();
2544
+ let { CancelToken: e } = w, t = e.source(), n = Gi();
2538
2545
  return {
2539
2546
  id: n,
2540
2547
  token: t.token,
2541
2548
  cancel() {
2542
- t.cancel(), qi(n);
2549
+ t.cancel(), Ji(n);
2543
2550
  }
2544
2551
  };
2545
- }, _ = (e) => Z.default.map(e, (e) => (e.type === Vi.DELETE && (e.ids = e.data?.id ? [e.data.id] : []), e.collection = e.data ? [e.data] : [], e)), v = async ({ url: e, handler: r, beforeReconnect: a, params: s = {}, contentType: d = "json" }) => {
2546
- h(), o.current?.cancel?.(), o.current = g(), Gi(o.current), n.length >= 4 && Ki(n.length - 4 || 1), d === "json" && (m.current?.terminate(), m.current = new Worker(new URL(
2552
+ }, _ = (e) => Z.default.map(e, (e) => (e.type === Hi.DELETE && (e.ids = e.data?.id ? [e.data.id] : []), e.collection = e.data ? [e.data] : [], e)), v = async ({ url: e, handler: r, beforeReconnect: a, params: s = {}, contentType: d = "json" }) => {
2553
+ h(), o.current?.cancel?.(), o.current = g(), Ki(o.current), n.length >= 4 && qi(n.length - 4 || 1), d === "json" && (m.current?.terminate(), m.current = new Worker(new URL(
2547
2554
  /* @vite-ignore */
2548
2555
  "" + new URL("assets/json-parser-worker-DtJw0BTZ.js", import.meta.url).href,
2549
2556
  "" + import.meta.url
@@ -2563,7 +2570,7 @@ var Wi = () => (window.__GPUSTACK_WATCH_REQUEST_CLEAR__.watchIDValue = window.__
2563
2570
  async onDownloadProgress(e) {
2564
2571
  let { response: t, readyState: n } = e.currentTarget;
2565
2572
  if (i(n), c.current = e.loaded || 0, l.current = e.total || 0, d === "json") {
2566
- let n = Yi(t, e.loaded, p);
2573
+ let n = Xi(t, e.loaded, p);
2567
2574
  m.current.postMessage(n);
2568
2575
  } else r(t);
2569
2576
  }
@@ -2595,7 +2602,7 @@ var Wi = () => (window.__GPUSTACK_WATCH_REQUEST_CLEAR__.watchIDValue = window.__
2595
2602
  };
2596
2603
  //#endregion
2597
2604
  //#region src/lib/hooks/use-container-scroll.ts
2598
- function Zi(e, t) {
2605
+ function Qi(e, t) {
2599
2606
  let n = z(!1), r = z(e), i = z(t), a = z(t?.toBottom);
2600
2607
  z(null);
2601
2608
  let o = R(() => Z.default.debounce(() => {
@@ -2618,14 +2625,14 @@ function Zi(e, t) {
2618
2625
  }
2619
2626
  //#endregion
2620
2627
  //#region src/lib/hooks/use-deferred-request.ts
2621
- function Qi(e, t = 100) {
2628
+ function $i(e, t = 100) {
2622
2629
  return Bt(async (...n) => (await new Promise((e) => {
2623
2630
  setTimeout(e, t);
2624
2631
  }), await e(...n)), { manual: !0 });
2625
2632
  }
2626
2633
  //#endregion
2627
2634
  //#region ../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/dayjs.min.js
2628
- var $i = /* @__PURE__ */ n(((e, t) => {
2635
+ var ea = /* @__PURE__ */ n(((e, t) => {
2629
2636
  (function(n, r) {
2630
2637
  typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
2631
2638
  })(e, (function() {
@@ -2922,8 +2929,8 @@ var $i = /* @__PURE__ */ n(((e, t) => {
2922
2929
  }));
2923
2930
  //#endregion
2924
2931
  //#region src/lib/hooks/use-download-stream.ts
2925
- function ea() {
2926
- let e = z(null), t = z(null), n = z(!1), r = z("log"), i = z(null), { setChunkFetch: a } = Ri(), o = (e) => {
2932
+ function ta() {
2933
+ let e = z(null), t = z(null), n = z(!1), r = z("log"), i = z(null), { setChunkFetch: a } = zi(), o = (e) => {
2927
2934
  let t = new Blob([e], { type: "text/plain" }), n = URL.createObjectURL(t), i = document.createElement("a");
2928
2935
  i.href = n, i.download = r.current, document.body.appendChild(i), i.click(), document.body.removeChild(i), URL.revokeObjectURL(n);
2929
2936
  }, s = (e, r) => {
@@ -2988,7 +2995,7 @@ function ea() {
2988
2995
  }
2989
2996
  //#endregion
2990
2997
  //#region src/lib/hooks/use-download-logs.tsx
2991
- var ta = /* @__PURE__ */ e($i(), 1), na = (e) => /* @__PURE__ */ H("div", {
2998
+ var na = /* @__PURE__ */ e(ea(), 1), ra = (e) => /* @__PURE__ */ H("div", {
2992
2999
  style: {
2993
3000
  width: 280,
2994
3001
  textOverflow: "ellipsis",
@@ -2996,11 +3003,11 @@ var ta = /* @__PURE__ */ e($i(), 1), na = (e) => /* @__PURE__ */ H("div", {
2996
3003
  overflow: "hidden"
2997
3004
  },
2998
3005
  children: e
2999
- }), ra = (e) => `${e}_${(0, ta.default)().format("YYYY-MM-DD_HH-mm-ss")}.txt`, ia = () => {
3000
- let { downloadStream: e } = ea(), t = o(), [n, r] = It.useNotification({ stack: { threshold: 1 } }), i = (e) => {
3006
+ }), ia = (e) => `${e}_${(0, na.default)().format("YYYY-MM-DD_HH-mm-ss")}.txt`, aa = () => {
3007
+ let { downloadStream: e } = ta(), t = o(), [n, r] = It.useNotification({ stack: { threshold: 1 } }), i = (e) => {
3001
3008
  n.open({
3002
3009
  duration: e.duration,
3003
- message: na(e.filename),
3010
+ message: ra(e.filename),
3004
3011
  key: e.filename,
3005
3012
  closeIcon: /* @__PURE__ */ H("span", { children: t.formatMessage({ id: "common.button.cancel" }) }),
3006
3013
  description: /* @__PURE__ */ H(bt, {
@@ -3016,7 +3023,7 @@ var ta = /* @__PURE__ */ e($i(), 1), na = (e) => /* @__PURE__ */ H("div", {
3016
3023
  onDownloadLog: async (t) => {
3017
3024
  e({
3018
3025
  url: t.url,
3019
- filename: ra(t.name),
3026
+ filename: ia(t.name),
3020
3027
  downloadNotification: i
3021
3028
  });
3022
3029
  },
@@ -3025,7 +3032,7 @@ var ta = /* @__PURE__ */ e($i(), 1), na = (e) => /* @__PURE__ */ H("div", {
3025
3032
  };
3026
3033
  //#endregion
3027
3034
  //#region src/lib/hooks/use-expanded-row-keys.ts
3028
- function aa(e = []) {
3035
+ function oa(e = []) {
3029
3036
  let [t, n] = B(e), [r, i] = B(null);
3030
3037
  return {
3031
3038
  expandedRowKeys: t,
@@ -3050,9 +3057,9 @@ function aa(e = []) {
3050
3057
  }
3051
3058
  //#endregion
3052
3059
  //#region src/lib/hooks/use-query-data-list.ts
3053
- function oa(e) {
3060
+ function sa(e) {
3054
3061
  let { key: t, fetchList: n, getLabel: r, getValue: i, responseType: a = "array", errorMsg: o } = e, s = z(null), [c, l] = B([]), { runAsync: u, loading: d, cancel: f } = Bt(async (e, t) => {
3055
- s.current?.cancel(), s.current = Ji();
3062
+ s.current?.cancel(), s.current = Yi();
3056
3063
  let o = await n(e, {
3057
3064
  token: s.current?.token,
3058
3065
  ...t || {}
@@ -3080,9 +3087,9 @@ function oa(e) {
3080
3087
  fetchData: (e, t) => u(e, t)
3081
3088
  };
3082
3089
  }
3083
- function sa(e) {
3090
+ function ca(e) {
3084
3091
  let { key: t, fetchDetail: n, getData: r, errorMsg: i, delay: a } = e, o = z(null), [s, c] = B({}), { runAsync: l, loading: u, cancel: d } = Bt(async (e, t) => {
3085
- o.current?.cancel(), o.current = Ji();
3092
+ o.current?.cancel(), o.current = Yi();
3086
3093
  let i = await n(e, {
3087
3094
  token: o.current?.token,
3088
3095
  ...t || {}
@@ -3110,14 +3117,14 @@ function sa(e) {
3110
3117
  }
3111
3118
  //#endregion
3112
3119
  //#region src/lib/hooks/use-request-token.ts
3113
- function ca() {
3120
+ function la() {
3114
3121
  let { source: e } = w.CancelToken;
3115
3122
  return e;
3116
3123
  }
3117
3124
  //#endregion
3118
3125
  //#region src/lib/hooks/use-responsive.ts
3119
- var la = ({ defaultSpan: e = 8 }) => {
3120
- let [t, n] = B(e), r = (e) => e < Bi.md ? 24 : e < Bi.lg ? 12 : 8;
3126
+ var ua = ({ defaultSpan: e = 8 }) => {
3127
+ let [t, n] = B(e), r = (e) => e < Vi.md ? 24 : e < Vi.lg ? 12 : 8;
3121
3128
  return {
3122
3129
  span: t,
3123
3130
  handleResize: zt(Z.default.throttle((e) => {
@@ -3127,7 +3134,7 @@ var la = ({ defaultSpan: e = 8 }) => {
3127
3134
  };
3128
3135
  //#endregion
3129
3136
  //#region src/lib/hooks/use-table-row-selection.ts
3130
- function ua() {
3137
+ function da() {
3131
3138
  let [e, t] = B([]), [n, r] = B([]);
3132
3139
  return {
3133
3140
  selectedRowKeys: e,
@@ -3156,7 +3163,7 @@ function ua() {
3156
3163
  }
3157
3164
  //#endregion
3158
3165
  //#region src/lib/hooks/use-table-sort.ts
3159
- function da({ defaultSortOrder: e = "descend" }) {
3166
+ function fa({ defaultSortOrder: e = "descend" }) {
3160
3167
  let [t, n] = B(e);
3161
3168
  return {
3162
3169
  sortOrder: t,
@@ -3165,7 +3172,7 @@ function da({ defaultSortOrder: e = "descend" }) {
3165
3172
  }
3166
3173
  };
3167
3174
  }
3168
- function fa() {
3175
+ function pa() {
3169
3176
  let [e, t] = B([]);
3170
3177
  return {
3171
3178
  sortOrder: e,
@@ -3180,7 +3187,7 @@ function fa() {
3180
3187
  }
3181
3188
  //#endregion
3182
3189
  //#region src/lib/hooks/use-update-chunk-list.ts
3183
- function pa(e) {
3190
+ function ma(e) {
3184
3191
  let { events: t = [
3185
3192
  "CREATE",
3186
3193
  "DELETE",
@@ -3202,18 +3209,18 @@ function pa(e) {
3202
3209
  let l = a?.collection || [];
3203
3210
  e?.computedID && (l = l?.map((t) => (t.id = e?.computedID?.(t), t))), e?.filterFun && (l = a?.collection?.filter(e?.filterFun)), e?.mapFun && (l = a?.collection?.map(e?.mapFun));
3204
3211
  let u = a?.ids || [];
3205
- if (a?.type === Vi.CREATE && t.includes("CREATE")) {
3212
+ if (a?.type === Hi.CREATE && t.includes("CREATE")) {
3206
3213
  let t = [];
3207
3214
  i.current = [...l.reduce((e, r) => {
3208
3215
  let a = i.current?.findIndex((e) => e.id === r.id), o = { ...r };
3209
3216
  return a === -1 && !n?.current ? e.push(o) : n?.current || (i.current[a] = o), n?.current && Date.parse(r.created_at) >= n.current && t.push(o), e;
3210
3217
  }, []), ...i.current].slice(0, o), e.onCreate?.(t);
3211
3218
  }
3212
- if (a?.type === Vi.DELETE && t.includes("DELETE")) {
3219
+ if (a?.type === Hi.DELETE && t.includes("DELETE")) {
3213
3220
  let t = [];
3214
3221
  i.current = i.current?.filter((e) => (n?.current && u?.includes(e.id) && t.push(e), !u?.includes(e.id))), s(u), e.setDataList?.([...i.current], { deletedIds: [...r.current] }), e.onDelete?.(t);
3215
3222
  }
3216
- a?.type === Vi.UPDATE && t.includes("UPDATE") && l?.forEach((r) => {
3223
+ a?.type === Hi.UPDATE && t.includes("UPDATE") && l?.forEach((r) => {
3217
3224
  let a = i.current?.findIndex((e) => e.id === r.id), s = { ...r };
3218
3225
  a > -1 ? i.current[a] = s : a === -1 && t.includes("INSERT") && (i.current = [s, ...i.current.slice(0, o - 1)], e.onUpdate && n?.current && Date.parse(r.created_at) >= n.current && e.onUpdate?.([s]));
3219
3226
  }), c(), e?.callback && e?.callback(i.current);
@@ -3224,8 +3231,8 @@ function pa(e) {
3224
3231
  }
3225
3232
  //#endregion
3226
3233
  //#region src/lib/hooks/use-watch-list.ts
3227
- function ma(e) {
3228
- let t = e, { services: n } = a(), { request: r } = n, [i, o] = B([]), s = z(null), c = z(null), { setChunkRequest: l, createAxiosToken: u } = Xi(), { updateChunkedList: d, cacheDataListRef: f } = pa({
3234
+ function ha(e) {
3235
+ let t = e, { services: n } = a(), { request: r } = n, [i, o] = B([]), s = z(null), c = z(null), { setChunkRequest: l, createAxiosToken: u } = Zi(), { updateChunkedList: d, cacheDataListRef: f } = ma({
3229
3236
  dataList: i,
3230
3237
  limit: 100,
3231
3238
  setDataList: o
@@ -3267,23 +3274,23 @@ function ma(e) {
3267
3274
  }
3268
3275
  //#endregion
3269
3276
  //#region src/lib/hooks/use-window-resize.ts
3270
- function ha() {
3277
+ function ga() {
3271
3278
  let [e, t] = B({
3272
3279
  width: window.innerWidth,
3273
3280
  height: window.innerHeight
3274
3281
  }), n = R(() => {
3275
3282
  let t = e.width;
3276
- return t < Bi.sm ? {
3283
+ return t < Vi.sm ? {
3277
3284
  isMobile: !0,
3278
3285
  isTablet: !1,
3279
3286
  isDesktop: !1,
3280
3287
  currentPoint: "sm"
3281
- } : t < Bi.md ? {
3288
+ } : t < Vi.md ? {
3282
3289
  isMobile: !1,
3283
3290
  isTablet: !0,
3284
3291
  isDesktop: !1,
3285
3292
  currentPoint: "md"
3286
- } : t < Bi.lg ? {
3293
+ } : t < Vi.lg ? {
3287
3294
  isMobile: !1,
3288
3295
  isTablet: !1,
3289
3296
  isDesktop: !0,
@@ -3310,11 +3317,8 @@ function ha() {
3310
3317
  };
3311
3318
  }
3312
3319
  //#endregion
3313
- //#region src/lib/hooks/useAccess.ts
3314
- var ga = () => {
3315
- let { access: e } = a();
3316
- return e?.useAccess?.() ?? {};
3317
- }, _a = {}, va = () => {
3320
+ //#region src/lib/hooks/useCoreUISlots.ts
3321
+ var _a = {}, va = () => {
3318
3322
  let { slots: e } = a();
3319
3323
  return e ?? _a;
3320
3324
  }, ya = () => {
@@ -3460,7 +3464,7 @@ var ga = () => {
3460
3464
  });
3461
3465
  }, Ta = O({}), Ea = () => {
3462
3466
  let e = P(Ta);
3463
- if (!e) throw Error("useWrapperContext must be used within a WrapperProvider");
3467
+ if (!e) throw Error("useColumnWrapperContext must be used within a WrapperProvider");
3464
3468
  return e;
3465
3469
  }, Da = Y.div`
3466
3470
  flex: 1;
@@ -3689,7 +3693,7 @@ var ga = () => {
3689
3693
  color: var(--ant-color-warning);
3690
3694
  }
3691
3695
  `, Va = A((e, t) => {
3692
- let n = o(), { styles: r } = za(), { saveScrollHeight: i, restoreScrollHeight: a } = Fi(), [s, c] = B(!1), [l, u] = B({ checked: !1 }), [d, f] = B(!1), [p, m] = B({}), h = (e) => {
3696
+ let n = o(), { styles: r } = za(), { saveScrollHeight: i, restoreScrollHeight: a } = Ii(), [s, c] = B(!1), [l, u] = B({ checked: !1 }), [d, f] = B(!1), [p, m] = B({}), h = (e) => {
3693
3697
  i(), m(e), u({ checked: e.checkConfig?.defautlChecked || !1 }), c(!0);
3694
3698
  }, g = () => {
3695
3699
  c(!1), a();
@@ -3783,41 +3787,41 @@ var ga = () => {
3783
3787
  })]
3784
3788
  })] });
3785
3789
  }, Ka = { middle: "index-module__middle___pMpZ3" }, qa = ({ items: e, size: t = "middle", trigger: n = ["hover"], showText: r, disabled: i, variant: a, color: s, extra: c, onSelect: l }) => {
3786
- let u = Z.default.head(e), d = o(), f = (t) => {
3787
- let n = Z.default.find(e, { key: t.key });
3788
- l(t.key, n);
3789
- }, p = (t) => {
3790
- let n = Z.default.head(e);
3791
- l(n.key, n);
3790
+ let u = o(), d = ki(), f = Z.default.filter(e, (e) => e?.access ? d?.[e.access] : !0), p = (e) => {
3791
+ let t = Z.default.find(f, { key: e.key });
3792
+ l(e.key, t);
3793
+ }, m = Z.default.head(f), h = (e) => {
3794
+ let t = Z.default.head(f);
3795
+ l(t.key, t);
3792
3796
  };
3793
- return e?.length ? /* @__PURE__ */ H(V, { children: e?.length === 1 ? /* @__PURE__ */ H(J, {
3794
- title: d.formatMessage({ id: u?.label }),
3797
+ return f?.length ? /* @__PURE__ */ H(V, { children: f?.length === 1 ? /* @__PURE__ */ H(J, {
3798
+ title: u.formatMessage({ id: m?.label }),
3795
3799
  children: /* @__PURE__ */ H(G, {
3796
3800
  className: Ka[t],
3797
- icon: u?.icon,
3801
+ icon: m?.icon,
3798
3802
  size: t,
3799
- ...u?.props,
3800
- onClick: p
3803
+ ...m?.props,
3804
+ onClick: h
3801
3805
  })
3802
3806
  }) : /* @__PURE__ */ U(Et.Compact, { children: [/* @__PURE__ */ H(V, { children: r ? /* @__PURE__ */ U(G, {
3803
- ...u?.props,
3804
- disabled: u?.disabled || i,
3807
+ ...m?.props,
3808
+ disabled: m?.disabled || i,
3805
3809
  className: Ka[t],
3806
- onClick: p,
3810
+ onClick: h,
3807
3811
  size: t,
3808
- icon: u?.icon,
3812
+ icon: m?.icon,
3809
3813
  variant: a,
3810
3814
  color: s,
3811
- children: [d.formatMessage({ id: u?.label }), c]
3815
+ children: [u.formatMessage({ id: m?.label }), c]
3812
3816
  }) : /* @__PURE__ */ H(J, {
3813
- title: d.formatMessage({ id: u?.label }),
3817
+ title: u.formatMessage({ id: m?.label }),
3814
3818
  children: /* @__PURE__ */ H(G, {
3815
- ...u?.props,
3819
+ ...m?.props,
3816
3820
  className: Ka[t],
3817
- onClick: p,
3821
+ onClick: h,
3818
3822
  size: t,
3819
- icon: u?.icon,
3820
- disabled: u?.disabled
3823
+ icon: m?.icon,
3824
+ disabled: m?.disabled
3821
3825
  })
3822
3826
  }, "leftButton") }), /* @__PURE__ */ H(dt, {
3823
3827
  disabled: i,
@@ -3828,11 +3832,11 @@ var ga = () => {
3828
3832
  itemIcon: { fontSize: 14 }
3829
3833
  },
3830
3834
  menu: {
3831
- onClick: f,
3832
- items: Z.default.tail(e).map((e) => ({
3835
+ onClick: p,
3836
+ items: Z.default.tail(f).map((e) => ({
3833
3837
  ...Z.default.omit(e, ["label", "locale"]),
3834
3838
  ...e.props,
3835
- label: e.locale || e.locale === void 0 ? d.formatMessage({ id: e.label }) : e.label
3839
+ label: e.locale || e.locale === void 0 ? u.formatMessage({ id: e.label }) : e.label
3836
3840
  }))
3837
3841
  },
3838
3842
  children: /* @__PURE__ */ H(G, {
@@ -4852,7 +4856,7 @@ var ga = () => {
4852
4856
  placeholder: n,
4853
4857
  footer: f,
4854
4858
  ref: b,
4855
- options: r ? null : S,
4859
+ options: r ? void 0 : S,
4856
4860
  onFocus: T,
4857
4861
  onBlur: E,
4858
4862
  onChange: w,
@@ -6811,7 +6815,10 @@ var Is = (e) => {
6811
6815
  }
6812
6816
  })), /* @__PURE__ */ H("div", {
6813
6817
  ref: h,
6814
- style: { ...a.wrapper },
6818
+ style: {
6819
+ flex: 1,
6820
+ ...a.wrapper
6821
+ },
6815
6822
  children: /* @__PURE__ */ H(Co, {
6816
6823
  ...l,
6817
6824
  style: {
@@ -6871,7 +6878,7 @@ var Is = (e) => {
6871
6878
  children: /* @__PURE__ */ H(Ys, {
6872
6879
  ...d,
6873
6880
  ref: h,
6874
- options: r ? null : _,
6881
+ options: r ? void 0 : _,
6875
6882
  onFocus: x,
6876
6883
  onBlur: S,
6877
6884
  onChange: b,
@@ -7055,7 +7062,7 @@ var Is = (e) => {
7055
7062
  beforeText: i,
7056
7063
  afterText: o
7057
7064
  });
7058
- }, { ImageURLInput: x, UploadImageButton: S, isFromUrl: C, dropDownOpen: w } = Ni({
7065
+ }, { ImageURLInput: x, UploadImageButton: S, isFromUrl: C, dropDownOpen: w } = Pi({
7059
7066
  size: "small",
7060
7067
  inputProps: { variant: "filled" },
7061
7068
  handleUpdateImgList: (e) => {
@@ -7540,13 +7547,13 @@ var lc = {
7540
7547
  children: /* @__PURE__ */ H(ae, { className: "font-size-14" })
7541
7548
  })
7542
7549
  }),
7543
- /* @__PURE__ */ H(ji, {
7550
+ /* @__PURE__ */ H(Mi, {
7544
7551
  disabled: n || i,
7545
7552
  handleUpdateImgList: d,
7546
7553
  size: "middle",
7547
7554
  accept: a
7548
7555
  }),
7549
- /* @__PURE__ */ H(ji, {
7556
+ /* @__PURE__ */ H(Mi, {
7550
7557
  title: p.formatMessage({ id: "playground.image.mask.upload" }),
7551
7558
  icon: /* @__PURE__ */ H(Q, { type: "icon-mosaic-2" }),
7552
7559
  disabled: n || i,
@@ -7660,7 +7667,7 @@ var lc = {
7660
7667
  t.width = e.width, t.height = e.height, n.width = e.width, n.height = e.height;
7661
7668
  }, []), Ce = N(() => {
7662
7669
  let e = ce(), t = document.createElement("a");
7663
- t.download = `mask_${(0, ta.default)().format("YYYYMMDDHHmmss")}.png`, t.href = e || "", t.click();
7670
+ t.download = `mask_${(0, na.default)().format("YYYYMMDDHHmmss")}.png`, t.href = e || "", t.click();
7664
7671
  }, [ce]), we = N(() => {
7665
7672
  pe(), de([]), L([]), ae(), O.current = [], console.log("Resetting strokes", O.current);
7666
7673
  }, []), Te = (e, t) => {
@@ -7702,14 +7709,14 @@ var lc = {
7702
7709
  }, 100);
7703
7710
  }, []), Oe = () => {
7704
7711
  let e = C.current, t = document.createElement("a");
7705
- t.download = `image_${(0, ta.default)().format("YYYYMMDDHHmmss")}.png`, t.href = e.toDataURL("image/png"), t.click(), t.remove();
7712
+ t.download = `image_${(0, na.default)().format("YYYYMMDDHHmmss")}.png`, t.href = e.toDataURL("image/png"), t.click(), t.remove();
7706
7713
  }, ke = () => {
7707
7714
  if (!t) return;
7708
7715
  let e = new Image();
7709
7716
  e.src = t, e.onload = () => {
7710
7717
  let t = document.createElement("canvas");
7711
7718
  t.width = r.width, t.height = r.height, t.getContext("2d").drawImage(e, 0, 0, t.width, t.height);
7712
- let n = t.toDataURL("image/png"), i = `${t.width}x${t.height}_${(0, ta.default)().format("YYYYMMDDHHmmss")}.png`, a = document.createElement("a");
7719
+ let n = t.toDataURL("image/png"), i = `${t.width}x${t.height}_${(0, na.default)().format("YYYYMMDDHHmmss")}.png`, a = document.createElement("a");
7713
7720
  a.href = n, a.download = i, document.body.appendChild(a), a.click(), a.remove();
7714
7721
  };
7715
7722
  }, Ae = () => {
@@ -8328,43 +8335,44 @@ var Nc = (e) => {
8328
8335
  value: t,
8329
8336
  children: e
8330
8337
  }), Kc = /[^=]+=[^=]*$/, qc = (e) => {
8331
- let { value: t, label: n, onChange: r, onBlur: i, onPaste: a, sourceOptions: o, trim: s = !0 } = e, c = E.useRef(0), l = E.useRef(""), [u, d] = E.useState([]), f = (e) => {
8338
+ let { value: t, label: n, onChange: r, onBlur: i, onPaste: a, disabled: o, sourceOptions: s, trim: c = !0 } = e, l = E.useRef(0), u = E.useRef(""), [d, f] = E.useState([]), p = (e) => {
8332
8339
  if (!e) {
8333
- d(o || []);
8340
+ f(s || []);
8334
8341
  return;
8335
8342
  }
8336
8343
  let t = e.match(Kc);
8337
8344
  if (!t) {
8338
- d(Z.default.filter(o, (t) => t.label.includes(e)));
8345
+ f(Z.default.filter(s, (t) => t.label.includes(e)));
8339
8346
  return;
8340
8347
  }
8341
- let [n, r] = Z.default.split(t[0], "="), i = Z.default.find(o, (e) => e.label === n);
8348
+ let [n, r] = Z.default.split(t[0], "="), i = Z.default.find(s, (e) => e.label === n);
8342
8349
  if (!i) {
8343
- d([]);
8350
+ f([]);
8344
8351
  return;
8345
8352
  }
8346
- d(Z.default.filter(i.opts, (e) => e.label.includes(r)));
8347
- }, p = (e) => {
8348
- let t = l.current.match(Kc);
8353
+ f(Z.default.filter(i.opts, (e) => e.label.includes(r)));
8354
+ }, m = (e) => {
8355
+ let t = u.current.match(Kc);
8349
8356
  r(t ? `${Z.default.split(t[0], "=")[0]}=${e}` : e?.trim());
8350
- }, m = Z.default.debounce((e) => {
8351
- c.current = e.target.selectionStart, l.current = e.target.value.slice(0, c.current), f(l.current);
8357
+ }, h = Z.default.debounce((e) => {
8358
+ l.current = e.target.selectionStart, u.current = e.target.value.slice(0, l.current), p(u.current);
8352
8359
  }, 100);
8353
8360
  return /* @__PURE__ */ H(mo, {
8354
8361
  placeholder: e.placeholder,
8355
8362
  defaultActiveFirstOption: !0,
8356
8363
  value: t,
8357
8364
  onInput: (e) => {
8358
- m(e), r(e.target.value);
8365
+ h(e), r(e.target.value);
8359
8366
  },
8360
8367
  onSelect: (e) => {
8361
- p(e), d([]);
8368
+ m(e), f([]);
8362
8369
  },
8363
- onFocus: m,
8370
+ onFocus: h,
8364
8371
  onBlur: i,
8365
8372
  label: n,
8366
- options: u,
8367
- trim: s,
8373
+ options: d,
8374
+ trim: c,
8375
+ disabled: o,
8368
8376
  style: {
8369
8377
  flex: 1,
8370
8378
  minWidth: 0
@@ -8372,25 +8380,26 @@ var Nc = (e) => {
8372
8380
  onPaste: a
8373
8381
  });
8374
8382
  }, Jc = (e) => {
8375
- let { onRemove: t, onChange: n, onBlur: r, onPaste: i, label: a, value: o, options: s, trim: c = !0, data: l, required: u, renderItem: d } = e, f = (e) => {
8383
+ let { onRemove: t, onChange: n, onBlur: r, onPaste: i, label: a, value: o, options: s, trim: c = !0, data: l, required: u, disabled: d, renderItem: f } = e, p = (e) => {
8376
8384
  n(e);
8377
8385
  };
8378
8386
  return /* @__PURE__ */ U("div", {
8379
8387
  className: "list-item",
8380
- children: [d ? d(l, {
8381
- onChange: f,
8388
+ children: [f ? f(l, {
8389
+ onChange: p,
8382
8390
  onBlur: r,
8383
8391
  onPaste: i
8384
8392
  }) : /* @__PURE__ */ H(qc, {
8385
8393
  value: o,
8386
- onChange: f,
8394
+ onChange: p,
8387
8395
  onBlur: r,
8388
8396
  onPaste: i,
8389
8397
  label: a,
8390
8398
  sourceOptions: s,
8391
8399
  trim: c,
8392
- placeholder: e.placeholder
8393
- }), !u && /* @__PURE__ */ H(G, {
8400
+ placeholder: e.placeholder,
8401
+ disabled: d
8402
+ }), !u && !d && /* @__PURE__ */ H(G, {
8394
8403
  size: "small",
8395
8404
  className: "btn",
8396
8405
  type: "default",
@@ -8400,72 +8409,74 @@ var Nc = (e) => {
8400
8409
  })]
8401
8410
  });
8402
8411
  }, Yc = (e) => {
8403
- let { value: t, label: n, description: r, onChange: i, onBlur: a, onDelete: o, btnText: s, options: c, labelExtra: l, trim: u = !0, styles: d, required: f, renderItem: p } = e, [m, h] = E.useState([]), g = E.useRef(0), _ = () => {
8404
- g.current += 1;
8405
- }, v = (e) => {
8406
- let t = Z.default.cloneDeep(m);
8412
+ let { value: t, label: n, description: r, onChange: i, onBlur: a, onDelete: o, btnText: s, options: c, labelExtra: l, trim: u = !0, styles: d, required: f, disabled: p, renderItem: m } = e, [h, g] = E.useState([]), _ = E.useRef(0), v = () => {
8413
+ _.current += 1;
8414
+ }, b = (e) => {
8415
+ let t = Z.default.cloneDeep(h);
8407
8416
  t.splice(e, 1);
8408
8417
  let n = Z.default.map(t, "value").filter((e) => !!e);
8409
- h(t), i?.(n), o?.(e);
8410
- }, b = (e, t) => {
8411
- let n = Z.default.cloneDeep(m);
8418
+ g(t), i?.(n), o?.(e);
8419
+ }, x = (e, t) => {
8420
+ let n = Z.default.cloneDeep(h);
8412
8421
  n[t].value = e;
8413
8422
  let r = Z.default.map(n, "value").filter((e) => !!e);
8414
- h(n), i?.(r);
8415
- }, x = () => {
8416
- _();
8417
- let e = Z.default.cloneDeep(m);
8423
+ g(n), i?.(r);
8424
+ }, S = () => {
8425
+ v();
8426
+ let e = Z.default.cloneDeep(h);
8418
8427
  e.push({
8419
8428
  value: "",
8420
- uid: g.current
8421
- }), h(e);
8422
- }, S = (e, t) => {
8429
+ uid: _.current
8430
+ }), g(e);
8431
+ }, C = (e, t) => {
8423
8432
  let n = e.clipboardData?.getData("text");
8424
8433
  if (!n) return;
8425
8434
  let r = y(n);
8426
8435
  if (r.length <= 1) return;
8427
8436
  e.preventDefault();
8428
- let a = Z.default.cloneDeep(m), o = u ? r[0]?.trim() : r[0];
8437
+ let a = Z.default.cloneDeep(h), o = u ? r[0]?.trim() : r[0];
8429
8438
  a[t].value = o || "";
8430
8439
  for (let e = 1; e < r.length; e++) {
8431
- _();
8440
+ v();
8432
8441
  let n = u ? r[e]?.trim() : r[e];
8433
8442
  a.splice(t + e, 0, {
8434
8443
  value: n || "",
8435
- uid: g.current
8444
+ uid: _.current
8436
8445
  });
8437
8446
  }
8438
8447
  let s = Z.default.map(a, "value").filter((e) => !!e);
8439
- h(a), i?.(s);
8448
+ g(a), i?.(s);
8440
8449
  };
8441
8450
  return E.useEffect(() => {
8442
- let e = t ?? [], n = Z.default.map(m, "value").filter((e) => !!e);
8443
- Z.default.isEqual(n, e) || h(Z.default.map(e, (e) => (_(), {
8451
+ let e = t ?? [], n = Z.default.map(h, "value").filter((e) => !!e);
8452
+ Z.default.isEqual(n, e) || g(Z.default.map(e, (e) => (v(), {
8444
8453
  value: e,
8445
- uid: g.current
8454
+ uid: _.current
8446
8455
  })));
8447
8456
  }, [t]), F(() => {
8448
- f && m.length === 0 && x();
8457
+ f && h.length === 0 && S();
8449
8458
  }, [f]), /* @__PURE__ */ H(Qa, {
8450
8459
  styles: d,
8451
8460
  label: n,
8452
8461
  required: f,
8453
8462
  description: r,
8454
8463
  labelExtra: l,
8455
- onAdd: x,
8464
+ onAdd: S,
8456
8465
  btnText: s,
8457
- children: /* @__PURE__ */ H(V, { children: Z.default.map(m, (t, n) => /* @__PURE__ */ H(Jc, {
8458
- required: f && m.length === 1,
8466
+ disabled: p,
8467
+ children: /* @__PURE__ */ H(V, { children: Z.default.map(h, (t, n) => /* @__PURE__ */ H(Jc, {
8468
+ required: f && h.length === 1,
8459
8469
  placeholder: e.placeholder,
8460
8470
  options: c,
8461
8471
  data: t,
8462
8472
  value: t.value,
8463
8473
  onBlur: (e) => a?.(e, n),
8464
- onRemove: () => v(n),
8465
- onChange: (e) => b(e, n),
8466
- onPaste: (e) => S(e, n),
8474
+ onRemove: () => b(n),
8475
+ onChange: (e) => x(e, n),
8476
+ onPaste: (e) => C(e, n),
8467
8477
  trim: u,
8468
- renderItem: p
8478
+ disabled: p,
8479
+ renderItem: m
8469
8480
  }, t.uid)) })
8470
8481
  });
8471
8482
  }, Xc = A((e, t) => {
@@ -8624,7 +8635,7 @@ var Nc = (e) => {
8624
8635
  totalPage: i
8625
8636
  };
8626
8637
  }, tl = A((e, t) => {
8627
- let { diffHeight: n, url: r, tail: i, enableScorllLoad: a = !0, isDownloading: o, watchable: s, params: c } = e, { pageSize: l, page: u, setPage: d, setTotalPage: f, totalPage: p } = el(), { setChunkFetch: m } = Ri(), h = z(null), [g, _] = B([]), v = z(null), y = z(i), [b, x] = B(!1), [S, C] = B(!1), [w, T] = B([]), E = z(null), D = z(!1), O = z(u), k = z(p), A = z(!1), [j, M] = B([]), P = z({
8638
+ let { diffHeight: n, url: r, tail: i, enableScorllLoad: a = !0, isDownloading: o, watchable: s, params: c } = e, { pageSize: l, page: u, setPage: d, setTotalPage: f, totalPage: p } = el(), { setChunkFetch: m } = zi(), h = z(null), [g, _] = B([]), v = z(null), y = z(i), [b, x] = B(!1), [S, C] = B(!1), [w, T] = B([]), E = z(null), D = z(!1), O = z(u), k = z(p), A = z(!1), [j, M] = B([]), P = z({
8628
8639
  pos: "bottom",
8629
8640
  page: 1
8630
8641
  }), L = z(0), R = z(!1);
@@ -9034,7 +9045,7 @@ var Nc = (e) => {
9034
9045
  ] }),
9035
9046
  right: y || (!a && !i ? null : /* @__PURE__ */ U(Et, {
9036
9047
  size: 16,
9037
- children: [a ? p === "dropdown" ? /* @__PURE__ */ H(ki, {
9048
+ children: [a ? p === "dropdown" ? /* @__PURE__ */ H(Ai, {
9038
9049
  styles: { root: { minWidth: "140px" } },
9039
9050
  menu: {
9040
9051
  items: c,
@@ -9124,7 +9135,7 @@ var Nc = (e) => {
9124
9135
  }, e.value))
9125
9136
  });
9126
9137
  }, Tl = ({ defaultSpan: e = 8, dataList: t, renderItem: n, resizable: r = !0 }) => {
9127
- let { span: i, handleResize: a } = la({ defaultSpan: e });
9138
+ let { span: i, handleResize: a } = ua({ defaultSpan: e });
9128
9139
  return /* @__PURE__ */ H(di, {
9129
9140
  onResize: a,
9130
9141
  disabled: !r,
@@ -9245,18 +9256,14 @@ var Dl = Y.div`
9245
9256
  }
9246
9257
  };
9247
9258
  }, jl = O({ scrollToBottom: () => {} }), Ml = Y.div`
9248
- max-height: ${({ $maxHeight: e }) => typeof e == "number" ? `${e}px` : e};
9249
- overflow-y: auto;
9250
- width: 100%;
9251
- `, Nl = Y.div`
9252
9259
  display: flex;
9253
9260
  align-items: center;
9254
9261
  max-width: 360px;
9255
9262
  text-overflow: ellipsis;
9256
9263
  overflow: hidden;
9257
9264
  white-space: nowrap;
9258
- `, Pl = (e) => {
9259
- let t = E.useRef(null), { saveScrollHeight: n, restoreScrollHeight: r } = Fi(), { initialize: i, destroyInstance: a, scrollToBottom: o } = d();
9265
+ `, Nl = (e) => {
9266
+ let t = E.useRef(null), { saveScrollHeight: n, restoreScrollHeight: r } = Ii(), { initialize: i, destroyInstance: a, scrollToBottom: o } = d();
9260
9267
  return E.useEffect(() => {
9261
9268
  e.open ? n() : r();
9262
9269
  }, [e.open]), E.useEffect(() => {
@@ -9267,14 +9274,14 @@ var Dl = Y.div`
9267
9274
  n && clearTimeout(n), a();
9268
9275
  };
9269
9276
  }, [e.open, i]), /* @__PURE__ */ H(_t, {
9270
- ...e,
9271
- title: /* @__PURE__ */ H(Nl, { children: e.title }),
9277
+ title: /* @__PURE__ */ H(Ml, { children: e.title }),
9272
9278
  destroyOnHidden: !0,
9273
9279
  styles: {
9274
9280
  container: { padding: 0 },
9275
9281
  header: {
9276
9282
  padding: "var(--ant-modal-content-padding)",
9277
- paddingBottom: "0"
9283
+ paddingBottom: "0",
9284
+ marginBottom: 16
9278
9285
  },
9279
9286
  body: {
9280
9287
  padding: "0",
@@ -9285,27 +9292,30 @@ var Dl = Y.div`
9285
9292
  margin: "0"
9286
9293
  } : {}
9287
9294
  },
9295
+ ...e,
9288
9296
  children: /* @__PURE__ */ H(jl.Provider, {
9289
9297
  value: { scrollToBottom: o },
9290
- children: /* @__PURE__ */ H(Ml, {
9298
+ children: /* @__PURE__ */ H("div", {
9291
9299
  ref: t,
9292
9300
  "data-overlayscrollbars-initialize": !0,
9293
9301
  className: "overlay-scroller-wrapper",
9294
- $maxHeight: e.maxContentHeight || 500,
9295
9302
  hidden: !1,
9296
9303
  style: {
9297
9304
  paddingInline: 24,
9298
- paddingBlockEnd: 0
9305
+ paddingBlockEnd: 0,
9306
+ maxHeight: e.maxContentHeight || 500,
9307
+ overflowY: "auto",
9308
+ width: "100%"
9299
9309
  },
9300
9310
  children: e.children
9301
9311
  })
9302
9312
  })
9303
9313
  });
9304
- }, Fl = Y.ul`
9314
+ }, Pl = Y.ul`
9305
9315
  list-style: none;
9306
9316
  margin: 0;
9307
9317
  padding: 0;
9308
- `, Il = Y.li`
9318
+ `, Fl = Y.li`
9309
9319
  display: flex;
9310
9320
  align-items: center;
9311
9321
  padding: 5px 12px;
@@ -9315,7 +9325,7 @@ var Dl = Y.div`
9315
9325
  &:hover {
9316
9326
  background-color: var(--ant-control-item-bg-hover);
9317
9327
  }
9318
- `, Ll = ({ maxHeight: e, dataList: t, value: n = [], onChange: r, renderTitle: i }) => {
9328
+ `, Il = ({ maxHeight: e, dataList: t, value: n = [], onChange: r, renderTitle: i }) => {
9319
9329
  let a = (e) => {
9320
9330
  let t = e.key;
9321
9331
  r(n.includes(t) ? n.filter((e) => e !== t) : [...n, t]);
@@ -9323,7 +9333,7 @@ var Dl = Y.div`
9323
9333
  return /* @__PURE__ */ H(l, {
9324
9334
  style: { paddingInline: 0 },
9325
9335
  maxHeight: e,
9326
- children: /* @__PURE__ */ H(Fl, { children: t.map((e) => /* @__PURE__ */ U(Il, {
9336
+ children: /* @__PURE__ */ H(Pl, { children: t.map((e) => /* @__PURE__ */ U(Fl, {
9327
9337
  selected: n.includes(e.key),
9328
9338
  onClick: () => a(e),
9329
9339
  children: [/* @__PURE__ */ H(K, { checked: n.includes(e.key) }), i ? i(e) : /* @__PURE__ */ H(f, {
@@ -9332,14 +9342,14 @@ var Dl = Y.div`
9332
9342
  })]
9333
9343
  }, e.key)) })
9334
9344
  });
9335
- }, Rl = Y.div`
9345
+ }, Ll = Y.div`
9336
9346
  border: 1px solid var(--ant-color-border);
9337
9347
  border-radius: var(--ant-border-radius);
9338
9348
  overflow-y: auto;
9339
9349
  max-height: ${({ $maxHeight: e }) => e ? `${e + 2}px` : "auto"};
9340
- `, zl = Y.div`
9350
+ `, Rl = Y.div`
9341
9351
  padding: 0;
9342
- `, Bl = Y.div`
9352
+ `, zl = Y.div`
9343
9353
  padding: 8px 12px 8px;
9344
9354
  display: flex;
9345
9355
  gap: 8px;
@@ -9347,7 +9357,7 @@ var Dl = Y.div`
9347
9357
  justify-content: space-between;
9348
9358
  border-bottom: 1px solid var(--ant-color-split);
9349
9359
  background-color: var(--ant-color-fill-alter);
9350
- `, Vl = ({ height: e = 300, leftWidth: t = 260, options: n, value: r = [], searchPlaceholder: i, notFoundContent: a, onChange: s, styles: c }) => {
9360
+ `, Bl = ({ height: e = 300, leftWidth: t = 260, options: n, value: r = [], searchPlaceholder: i, notFoundContent: a, onChange: s, styles: c }) => {
9351
9361
  let l = o(), [u, d] = E.useState(!1), [f, p] = E.useState(!1), [m, h] = B(""), g = R(() => n.filter((e) => e.title.toLowerCase().includes(m.toLowerCase())), [n, m]), _ = (e) => {
9352
9362
  h(e.target.value);
9353
9363
  }, v = (e) => {
@@ -9369,11 +9379,11 @@ var Dl = Y.div`
9369
9379
  };
9370
9380
  return F(() => {
9371
9381
  y(r);
9372
- }, [r, n]), /* @__PURE__ */ H(Rl, {
9382
+ }, [r, n]), /* @__PURE__ */ H(Ll, {
9373
9383
  $maxHeight: e,
9374
9384
  $leftWidth: t,
9375
9385
  style: c?.container,
9376
- children: /* @__PURE__ */ U(zl, { children: [/* @__PURE__ */ U(Bl, {
9386
+ children: /* @__PURE__ */ U(Rl, { children: [/* @__PURE__ */ U(zl, {
9377
9387
  style: c?.header,
9378
9388
  children: [/* @__PURE__ */ U("span", {
9379
9389
  style: {
@@ -9401,7 +9411,7 @@ var Dl = Y.div`
9401
9411
  },
9402
9412
  onChange: _
9403
9413
  })]
9404
- }), g.length > 0 ? /* @__PURE__ */ H(Ll, {
9414
+ }), g.length > 0 ? /* @__PURE__ */ H(Il, {
9405
9415
  maxHeight: e - 50,
9406
9416
  dataList: g,
9407
9417
  value: r,
@@ -9413,7 +9423,7 @@ var Dl = Y.div`
9413
9423
  description: a
9414
9424
  })] })
9415
9425
  });
9416
- }, Hl = [
9426
+ }, Vl = [
9417
9427
  {
9418
9428
  scope: "playground",
9419
9429
  command: "shortcuts.playground.newmessage",
@@ -9459,8 +9469,8 @@ var Dl = Y.div`
9459
9469
  command: "shortcuts.users.new",
9460
9470
  keybinding: Ns.CREATE.iconKeybinding
9461
9471
  }
9462
- ], Ul = ({ intl: e }) => {
9463
- let [t, n] = E.useState(Hl), r = [
9472
+ ], Hl = ({ intl: e }) => {
9473
+ let [t, n] = E.useState(Vl), r = [
9464
9474
  {
9465
9475
  title: "Scope",
9466
9476
  dataIndex: "scope",
@@ -9482,7 +9492,7 @@ var Dl = Y.div`
9482
9492
  }
9483
9493
  ], i = Z.default.debounce((e) => {
9484
9494
  let t = e.target.value;
9485
- n(Z.default.filter(Hl, (e) => e.command.toLowerCase().includes(t.toLowerCase()) || e.scope.toLowerCase().includes(t.toLowerCase())));
9495
+ n(Z.default.filter(Vl, (e) => e.command.toLowerCase().includes(t.toLowerCase()) || e.scope.toLowerCase().includes(t.toLowerCase())));
9486
9496
  }, 300);
9487
9497
  return /* @__PURE__ */ U("div", {
9488
9498
  className: "short-cuts",
@@ -9516,82 +9526,82 @@ var Dl = Y.div`
9516
9526
  };
9517
9527
  //#endregion
9518
9528
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
9519
- function Wl(e) {
9529
+ function Ul(e) {
9520
9530
  var t = typeof e;
9521
9531
  return e != null && (t == "object" || t == "function");
9522
9532
  }
9523
9533
  //#endregion
9524
9534
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js
9525
- var Gl = typeof global == "object" && global && global.Object === Object && global, Kl = typeof self == "object" && self && self.Object === Object && self, ql = Gl || Kl || Function("return this")(), Jl = function() {
9526
- return ql.Date.now();
9527
- }, Yl = /\s/;
9528
- function Xl(e) {
9529
- for (var t = e.length; t-- && Yl.test(e.charAt(t)););
9535
+ var Wl = typeof global == "object" && global && global.Object === Object && global, Gl = typeof self == "object" && self && self.Object === Object && self, Kl = Wl || Gl || Function("return this")(), ql = function() {
9536
+ return Kl.Date.now();
9537
+ }, Jl = /\s/;
9538
+ function Yl(e) {
9539
+ for (var t = e.length; t-- && Jl.test(e.charAt(t)););
9530
9540
  return t;
9531
9541
  }
9532
9542
  //#endregion
9533
9543
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js
9534
- var Zl = /^\s+/;
9535
- function Ql(e) {
9536
- return e && e.slice(0, Xl(e) + 1).replace(Zl, "");
9544
+ var Xl = /^\s+/;
9545
+ function Zl(e) {
9546
+ return e && e.slice(0, Yl(e) + 1).replace(Xl, "");
9537
9547
  }
9538
9548
  //#endregion
9539
9549
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js
9540
- var $l = ql.Symbol, eu = Object.prototype, tu = eu.hasOwnProperty, nu = eu.toString, ru = $l ? $l.toStringTag : void 0;
9541
- function iu(e) {
9542
- var t = tu.call(e, ru), n = e[ru];
9550
+ var Ql = Kl.Symbol, $l = Object.prototype, eu = $l.hasOwnProperty, tu = $l.toString, nu = Ql ? Ql.toStringTag : void 0;
9551
+ function ru(e) {
9552
+ var t = eu.call(e, nu), n = e[nu];
9543
9553
  try {
9544
- e[ru] = void 0;
9554
+ e[nu] = void 0;
9545
9555
  var r = !0;
9546
9556
  } catch {}
9547
- var i = nu.call(e);
9548
- return r && (t ? e[ru] = n : delete e[ru]), i;
9557
+ var i = tu.call(e);
9558
+ return r && (t ? e[nu] = n : delete e[nu]), i;
9549
9559
  }
9550
9560
  //#endregion
9551
9561
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
9552
- var au = Object.prototype.toString;
9553
- function ou(e) {
9554
- return au.call(e);
9562
+ var iu = Object.prototype.toString;
9563
+ function au(e) {
9564
+ return iu.call(e);
9555
9565
  }
9556
9566
  //#endregion
9557
9567
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
9558
- var su = "[object Null]", cu = "[object Undefined]", lu = $l ? $l.toStringTag : void 0;
9559
- function uu(e) {
9560
- return e == null ? e === void 0 ? cu : su : lu && lu in Object(e) ? iu(e) : ou(e);
9568
+ var ou = "[object Null]", su = "[object Undefined]", cu = Ql ? Ql.toStringTag : void 0;
9569
+ function lu(e) {
9570
+ return e == null ? e === void 0 ? su : ou : cu && cu in Object(e) ? ru(e) : au(e);
9561
9571
  }
9562
9572
  //#endregion
9563
9573
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
9564
- function du(e) {
9574
+ function uu(e) {
9565
9575
  return typeof e == "object" && !!e;
9566
9576
  }
9567
9577
  //#endregion
9568
9578
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
9569
- var fu = "[object Symbol]";
9570
- function pu(e) {
9571
- return typeof e == "symbol" || du(e) && uu(e) == fu;
9579
+ var du = "[object Symbol]";
9580
+ function fu(e) {
9581
+ return typeof e == "symbol" || uu(e) && lu(e) == du;
9572
9582
  }
9573
9583
  //#endregion
9574
9584
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js
9575
- var mu = NaN, hu = /^[-+]0x[0-9a-f]+$/i, gu = /^0b[01]+$/i, _u = /^0o[0-7]+$/i, vu = parseInt;
9576
- function yu(e) {
9585
+ var pu = NaN, mu = /^[-+]0x[0-9a-f]+$/i, hu = /^0b[01]+$/i, gu = /^0o[0-7]+$/i, _u = parseInt;
9586
+ function vu(e) {
9577
9587
  if (typeof e == "number") return e;
9578
- if (pu(e)) return mu;
9579
- if (Wl(e)) {
9588
+ if (fu(e)) return pu;
9589
+ if (Ul(e)) {
9580
9590
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
9581
- e = Wl(t) ? t + "" : t;
9591
+ e = Ul(t) ? t + "" : t;
9582
9592
  }
9583
9593
  if (typeof e != "string") return e === 0 ? e : +e;
9584
- e = Ql(e);
9585
- var n = gu.test(e);
9586
- return n || _u.test(e) ? vu(e.slice(2), n ? 2 : 8) : hu.test(e) ? mu : +e;
9594
+ e = Zl(e);
9595
+ var n = hu.test(e);
9596
+ return n || gu.test(e) ? _u(e.slice(2), n ? 2 : 8) : mu.test(e) ? pu : +e;
9587
9597
  }
9588
9598
  //#endregion
9589
9599
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/debounce.js
9590
- var bu = "Expected a function", xu = Math.max, Su = Math.min;
9591
- function Cu(e, t, n) {
9600
+ var yu = "Expected a function", bu = Math.max, xu = Math.min;
9601
+ function Su(e, t, n) {
9592
9602
  var r, i, a, o, s, c, l = 0, u = !1, d = !1, f = !0;
9593
- if (typeof e != "function") throw TypeError(bu);
9594
- t = yu(t) || 0, Wl(n) && (u = !!n.leading, d = "maxWait" in n, a = d ? xu(yu(n.maxWait) || 0, t) : a, f = "trailing" in n ? !!n.trailing : f);
9603
+ if (typeof e != "function") throw TypeError(yu);
9604
+ t = vu(t) || 0, Ul(n) && (u = !!n.leading, d = "maxWait" in n, a = d ? bu(vu(n.maxWait) || 0, t) : a, f = "trailing" in n ? !!n.trailing : f);
9595
9605
  function p(t) {
9596
9606
  var n = r, a = i;
9597
9607
  return r = i = void 0, l = t, o = e.apply(a, n), o;
@@ -9601,14 +9611,14 @@ function Cu(e, t, n) {
9601
9611
  }
9602
9612
  function h(e) {
9603
9613
  var n = e - c, r = e - l, i = t - n;
9604
- return d ? Su(i, a - r) : i;
9614
+ return d ? xu(i, a - r) : i;
9605
9615
  }
9606
9616
  function g(e) {
9607
9617
  var n = e - c, r = e - l;
9608
9618
  return c === void 0 || n >= t || n < 0 || d && r >= a;
9609
9619
  }
9610
9620
  function _() {
9611
- var e = Jl();
9621
+ var e = ql();
9612
9622
  if (g(e)) return v(e);
9613
9623
  s = setTimeout(_, h(e));
9614
9624
  }
@@ -9619,10 +9629,10 @@ function Cu(e, t, n) {
9619
9629
  s !== void 0 && clearTimeout(s), l = 0, r = c = i = s = void 0;
9620
9630
  }
9621
9631
  function b() {
9622
- return s === void 0 ? o : v(Jl());
9632
+ return s === void 0 ? o : v(ql());
9623
9633
  }
9624
9634
  function x() {
9625
- var e = Jl(), n = g(e);
9635
+ var e = ql(), n = g(e);
9626
9636
  if (r = arguments, i = this, c = e, n) {
9627
9637
  if (s === void 0) return m(c);
9628
9638
  if (d) return clearTimeout(s), s = setTimeout(_, t), p(c);
@@ -9633,11 +9643,11 @@ function Cu(e, t, n) {
9633
9643
  }
9634
9644
  //#endregion
9635
9645
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/throttle.js
9636
- var wu = "Expected a function";
9637
- function Tu(e, t, n) {
9646
+ var Cu = "Expected a function";
9647
+ function wu(e, t, n) {
9638
9648
  var r = !0, i = !0;
9639
- if (typeof e != "function") throw TypeError(wu);
9640
- return Wl(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), Cu(e, t, {
9649
+ if (typeof e != "function") throw TypeError(Cu);
9650
+ return Ul(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), Su(e, t, {
9641
9651
  leading: r,
9642
9652
  maxWait: t,
9643
9653
  trailing: i
@@ -9645,19 +9655,19 @@ function Tu(e, t, n) {
9645
9655
  }
9646
9656
  //#endregion
9647
9657
  //#region ../../node_modules/.pnpm/simplebar-core@1.3.2/node_modules/simplebar-core/dist/index.mjs
9648
- var Eu = function() {
9649
- return Eu = Object.assign || function(e) {
9658
+ var Tu = function() {
9659
+ return Tu = Object.assign || function(e) {
9650
9660
  for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
9651
9661
  return e;
9652
- }, Eu.apply(this, arguments);
9662
+ }, Tu.apply(this, arguments);
9653
9663
  };
9654
- function Du(e) {
9664
+ function Eu(e) {
9655
9665
  return !e || !e.ownerDocument || !e.ownerDocument.defaultView ? window : e.ownerDocument.defaultView;
9656
9666
  }
9657
- function Ou(e) {
9667
+ function Du(e) {
9658
9668
  return !e || !e.ownerDocument ? document : e.ownerDocument;
9659
9669
  }
9660
- var ku = function(e) {
9670
+ var Ou = function(e) {
9661
9671
  return Array.prototype.reduce.call(e, function(e, t) {
9662
9672
  var n = t.name.match(/data-simplebar-(.+)/);
9663
9673
  if (n) {
@@ -9680,58 +9690,58 @@ var ku = function(e) {
9680
9690
  return e;
9681
9691
  }, {});
9682
9692
  };
9683
- function Au(e, t) {
9693
+ function ku(e, t) {
9684
9694
  var n;
9685
9695
  e && (n = e.classList).add.apply(n, t.split(" "));
9686
9696
  }
9687
- function ju(e, t) {
9697
+ function Au(e, t) {
9688
9698
  e && t.split(" ").forEach(function(t) {
9689
9699
  e.classList.remove(t);
9690
9700
  });
9691
9701
  }
9692
- function Mu(e) {
9702
+ function ju(e) {
9693
9703
  return `.${e.split(" ").join(".")}`;
9694
9704
  }
9695
- var Nu = !!(typeof window < "u" && window.document && window.document.createElement), Pu = /* @__PURE__ */ Object.freeze({
9705
+ var Mu = !!(typeof window < "u" && window.document && window.document.createElement), Nu = /* @__PURE__ */ Object.freeze({
9696
9706
  __proto__: null,
9697
- addClasses: Au,
9698
- canUseDOM: Nu,
9699
- classNamesToQuery: Mu,
9700
- getElementDocument: Ou,
9701
- getElementWindow: Du,
9702
- getOptions: ku,
9703
- removeClasses: ju
9704
- }), Fu = null, Iu = null;
9705
- Nu && window.addEventListener("resize", function() {
9706
- Iu !== window.devicePixelRatio && (Iu = window.devicePixelRatio, Fu = null);
9707
+ addClasses: ku,
9708
+ canUseDOM: Mu,
9709
+ classNamesToQuery: ju,
9710
+ getElementDocument: Du,
9711
+ getElementWindow: Eu,
9712
+ getOptions: Ou,
9713
+ removeClasses: Au
9714
+ }), Pu = null, Fu = null;
9715
+ Mu && window.addEventListener("resize", function() {
9716
+ Fu !== window.devicePixelRatio && (Fu = window.devicePixelRatio, Pu = null);
9707
9717
  });
9708
- function Lu() {
9709
- if (Fu === null) {
9710
- if (typeof document > "u") return Fu = 0, Fu;
9718
+ function Iu() {
9719
+ if (Pu === null) {
9720
+ if (typeof document > "u") return Pu = 0, Pu;
9711
9721
  var e = document.body, t = document.createElement("div");
9712
9722
  t.classList.add("simplebar-hide-scrollbar"), e.appendChild(t);
9713
9723
  var n = t.getBoundingClientRect().right;
9714
- e.removeChild(t), Fu = n;
9724
+ e.removeChild(t), Pu = n;
9715
9725
  }
9716
- return Fu;
9726
+ return Pu;
9717
9727
  }
9718
- var Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = function() {
9728
+ var Lu = Eu, Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = function() {
9719
9729
  function e(t, n) {
9720
9730
  n === void 0 && (n = {});
9721
9731
  var r = this;
9722
9732
  if (this.removePreventClickId = null, this.minScrollbarWidth = 20, this.stopScrollDelay = 175, this.isScrolling = !1, this.isMouseEntering = !1, this.isDragging = !1, this.scrollXTicking = !1, this.scrollYTicking = !1, this.wrapperEl = null, this.contentWrapperEl = null, this.contentEl = null, this.offsetEl = null, this.maskEl = null, this.placeholderEl = null, this.heightAutoObserverWrapperEl = null, this.heightAutoObserverEl = null, this.rtlHelpers = null, this.scrollbarWidth = 0, this.resizeObserver = null, this.mutationObserver = null, this.elStyles = null, this.isRtl = null, this.mouseX = 0, this.mouseY = 0, this.onMouseMove = function() {}, this.onWindowResize = function() {}, this.onStopScrolling = function() {}, this.onMouseEntered = function() {}, this.onScroll = function() {
9723
- var e = Ru(r.el);
9724
- r.scrollXTicking ||= (e.requestAnimationFrame(r.scrollX), !0), r.scrollYTicking ||= (e.requestAnimationFrame(r.scrollY), !0), r.isScrolling || (r.isScrolling = !0, Vu(r.el, r.classNames.scrolling)), r.showScrollbar("x"), r.showScrollbar("y"), r.onStopScrolling();
9733
+ var e = Lu(r.el);
9734
+ r.scrollXTicking ||= (e.requestAnimationFrame(r.scrollX), !0), r.scrollYTicking ||= (e.requestAnimationFrame(r.scrollY), !0), r.isScrolling || (r.isScrolling = !0, Bu(r.el, r.classNames.scrolling)), r.showScrollbar("x"), r.showScrollbar("y"), r.onStopScrolling();
9725
9735
  }, this.scrollX = function() {
9726
9736
  r.axis.x.isOverflowing && r.positionScrollbar("x"), r.scrollXTicking = !1;
9727
9737
  }, this.scrollY = function() {
9728
9738
  r.axis.y.isOverflowing && r.positionScrollbar("y"), r.scrollYTicking = !1;
9729
9739
  }, this._onStopScrolling = function() {
9730
- Hu(r.el, r.classNames.scrolling), r.options.autoHide && (r.hideScrollbar("x"), r.hideScrollbar("y")), r.isScrolling = !1;
9740
+ Vu(r.el, r.classNames.scrolling), r.options.autoHide && (r.hideScrollbar("x"), r.hideScrollbar("y")), r.isScrolling = !1;
9731
9741
  }, this.onMouseEnter = function() {
9732
- r.isMouseEntering ||= (Vu(r.el, r.classNames.mouseEntered), r.showScrollbar("x"), r.showScrollbar("y"), !0), r.onMouseEntered();
9742
+ r.isMouseEntering ||= (Bu(r.el, r.classNames.mouseEntered), r.showScrollbar("x"), r.showScrollbar("y"), !0), r.onMouseEntered();
9733
9743
  }, this._onMouseEntered = function() {
9734
- Hu(r.el, r.classNames.mouseEntered), r.options.autoHide && (r.hideScrollbar("x"), r.hideScrollbar("y")), r.isMouseEntering = !1;
9744
+ Vu(r.el, r.classNames.mouseEntered), r.options.autoHide && (r.hideScrollbar("x"), r.hideScrollbar("y")), r.isMouseEntering = !1;
9735
9745
  }, this._onMouseMove = function(e) {
9736
9746
  r.mouseX = e.clientX, r.mouseY = e.clientY, (r.axis.x.isOverflowing || r.axis.x.forceVisible) && r.onMouseMoveForAxis("x"), (r.axis.y.isOverflowing || r.axis.y.forceVisible) && r.onMouseMoveForAxis("y");
9737
9747
  }, this.onMouseLeave = function() {
@@ -9754,13 +9764,13 @@ var Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = function() {
9754
9764
  }
9755
9765
  }, this.onEndDrag = function(e) {
9756
9766
  r.isDragging = !1;
9757
- var t = zu(r.el), n = Ru(r.el);
9758
- e.preventDefault(), e.stopPropagation(), Hu(r.el, r.classNames.dragging), r.onStopScrolling(), t.removeEventListener("mousemove", r.drag, !0), t.removeEventListener("mouseup", r.onEndDrag, !0), r.removePreventClickId = n.setTimeout(function() {
9767
+ var t = Ru(r.el), n = Lu(r.el);
9768
+ e.preventDefault(), e.stopPropagation(), Vu(r.el, r.classNames.dragging), r.onStopScrolling(), t.removeEventListener("mousemove", r.drag, !0), t.removeEventListener("mouseup", r.onEndDrag, !0), r.removePreventClickId = n.setTimeout(function() {
9759
9769
  t.removeEventListener("click", r.preventClick, !0), t.removeEventListener("dblclick", r.preventClick, !0), r.removePreventClickId = null;
9760
9770
  });
9761
9771
  }, this.preventClick = function(e) {
9762
9772
  e.preventDefault(), e.stopPropagation();
9763
- }, this.el = t, this.options = Eu(Eu({}, e.defaultOptions), n), this.classNames = Eu(Eu({}, e.defaultOptions.classNames), n.classNames), this.axis = {
9773
+ }, this.el = t, this.options = Tu(Tu({}, e.defaultOptions), n), this.classNames = Tu(Tu({}, e.defaultOptions.classNames), n.classNames), this.axis = {
9764
9774
  x: {
9765
9775
  scrollOffsetAttr: "scrollLeft",
9766
9776
  sizeAttr: "width",
@@ -9808,7 +9818,7 @@ var Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = function() {
9808
9818
  }
9809
9819
  }
9810
9820
  }, typeof this.el != "object" || !this.el.nodeName) throw Error(`Argument passed to SimpleBar must be an HTML element instead of ${this.el}`);
9811
- this.onMouseMove = Tu(this._onMouseMove, 64), this.onWindowResize = Cu(this._onWindowResize, 64, { leading: !0 }), this.onStopScrolling = Cu(this._onStopScrolling, this.stopScrollDelay), this.onMouseEntered = Cu(this._onMouseEntered, this.stopScrollDelay), this.init();
9821
+ this.onMouseMove = wu(this._onMouseMove, 64), this.onWindowResize = Su(this._onWindowResize, 64, { leading: !0 }), this.onStopScrolling = Su(this._onStopScrolling, this.stopScrollDelay), this.onMouseEntered = Su(this._onMouseEntered, this.stopScrollDelay), this.init();
9812
9822
  }
9813
9823
  return e.getRtlHelpers = function() {
9814
9824
  if (e.rtlHelpers) return e.rtlHelpers;
@@ -9826,22 +9836,22 @@ var Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = function() {
9826
9836
  }, e.rtlHelpers;
9827
9837
  }, e.prototype.getScrollbarWidth = function() {
9828
9838
  try {
9829
- return this.contentWrapperEl && getComputedStyle(this.contentWrapperEl, "::-webkit-scrollbar").display === "none" || "scrollbarWidth" in document.documentElement.style || "-ms-overflow-style" in document.documentElement.style ? 0 : Lu();
9839
+ return this.contentWrapperEl && getComputedStyle(this.contentWrapperEl, "::-webkit-scrollbar").display === "none" || "scrollbarWidth" in document.documentElement.style || "-ms-overflow-style" in document.documentElement.style ? 0 : Iu();
9830
9840
  } catch {
9831
- return Lu();
9841
+ return Iu();
9832
9842
  }
9833
9843
  }, e.getOffset = function(e) {
9834
- var t = e.getBoundingClientRect(), n = zu(e), r = Ru(e);
9844
+ var t = e.getBoundingClientRect(), n = Ru(e), r = Lu(e);
9835
9845
  return {
9836
9846
  top: t.top + (r.pageYOffset || n.documentElement.scrollTop),
9837
9847
  left: t.left + (r.pageXOffset || n.documentElement.scrollLeft)
9838
9848
  };
9839
9849
  }, e.prototype.init = function() {
9840
- Nu && (this.initDOM(), this.rtlHelpers = e.getRtlHelpers(), this.scrollbarWidth = this.getScrollbarWidth(), this.recalculate(), this.initListeners());
9850
+ Mu && (this.initDOM(), this.rtlHelpers = e.getRtlHelpers(), this.scrollbarWidth = this.getScrollbarWidth(), this.recalculate(), this.initListeners());
9841
9851
  }, e.prototype.initDOM = function() {
9842
- this.wrapperEl = this.el.querySelector(Uu(this.classNames.wrapper)), this.contentWrapperEl = this.options.scrollableNode || this.el.querySelector(Uu(this.classNames.contentWrapper)), this.contentEl = this.options.contentNode || this.el.querySelector(Uu(this.classNames.contentEl)), this.offsetEl = this.el.querySelector(Uu(this.classNames.offset)), this.maskEl = this.el.querySelector(Uu(this.classNames.mask)), this.placeholderEl = this.findChild(this.wrapperEl, Uu(this.classNames.placeholder)), this.heightAutoObserverWrapperEl = this.el.querySelector(Uu(this.classNames.heightAutoObserverWrapperEl)), this.heightAutoObserverEl = this.el.querySelector(Uu(this.classNames.heightAutoObserverEl)), this.axis.x.track.el = this.findChild(this.el, `${Uu(this.classNames.track)}${Uu(this.classNames.horizontal)}`), this.axis.y.track.el = this.findChild(this.el, `${Uu(this.classNames.track)}${Uu(this.classNames.vertical)}`), this.axis.x.scrollbar.el = this.axis.x.track.el?.querySelector(Uu(this.classNames.scrollbar)) || null, this.axis.y.scrollbar.el = this.axis.y.track.el?.querySelector(Uu(this.classNames.scrollbar)) || null, this.options.autoHide || (Vu(this.axis.x.scrollbar.el, this.classNames.visible), Vu(this.axis.y.scrollbar.el, this.classNames.visible));
9852
+ this.wrapperEl = this.el.querySelector(Hu(this.classNames.wrapper)), this.contentWrapperEl = this.options.scrollableNode || this.el.querySelector(Hu(this.classNames.contentWrapper)), this.contentEl = this.options.contentNode || this.el.querySelector(Hu(this.classNames.contentEl)), this.offsetEl = this.el.querySelector(Hu(this.classNames.offset)), this.maskEl = this.el.querySelector(Hu(this.classNames.mask)), this.placeholderEl = this.findChild(this.wrapperEl, Hu(this.classNames.placeholder)), this.heightAutoObserverWrapperEl = this.el.querySelector(Hu(this.classNames.heightAutoObserverWrapperEl)), this.heightAutoObserverEl = this.el.querySelector(Hu(this.classNames.heightAutoObserverEl)), this.axis.x.track.el = this.findChild(this.el, `${Hu(this.classNames.track)}${Hu(this.classNames.horizontal)}`), this.axis.y.track.el = this.findChild(this.el, `${Hu(this.classNames.track)}${Hu(this.classNames.vertical)}`), this.axis.x.scrollbar.el = this.axis.x.track.el?.querySelector(Hu(this.classNames.scrollbar)) || null, this.axis.y.scrollbar.el = this.axis.y.track.el?.querySelector(Hu(this.classNames.scrollbar)) || null, this.options.autoHide || (Bu(this.axis.x.scrollbar.el, this.classNames.visible), Bu(this.axis.y.scrollbar.el, this.classNames.visible));
9843
9853
  }, e.prototype.initListeners = function() {
9844
- var e = this, t, n = Ru(this.el);
9854
+ var e = this, t, n = Lu(this.el);
9845
9855
  if (this.el.addEventListener("mouseenter", this.onMouseEnter), this.el.addEventListener("pointerdown", this.onPointerEvent, !0), this.el.addEventListener("mousemove", this.onMouseMove), this.el.addEventListener("mouseleave", this.onMouseLeave), (t = this.contentWrapperEl) == null || t.addEventListener("scroll", this.onScroll), n.addEventListener("resize", this.onWindowResize), this.contentEl) {
9846
9856
  if (window.ResizeObserver) {
9847
9857
  var r = !1, i = n.ResizeObserver || ResizeObserver;
@@ -9865,7 +9875,7 @@ var Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = function() {
9865
9875
  }
9866
9876
  }, e.prototype.recalculate = function() {
9867
9877
  if (!(!this.heightAutoObserverEl || !this.contentEl || !this.contentWrapperEl || !this.wrapperEl || !this.placeholderEl)) {
9868
- var e = Ru(this.el);
9878
+ var e = Lu(this.el);
9869
9879
  this.elStyles = e.getComputedStyle(this.el), this.isRtl = this.elStyles.direction === "rtl";
9870
9880
  var t = this.contentEl.offsetWidth, n = this.heightAutoObserverEl.offsetHeight <= 1, r = this.heightAutoObserverEl.offsetWidth <= 1 || t > 0, i = this.contentWrapperEl.offsetWidth, a = this.elStyles.overflowX, o = this.elStyles.overflowY;
9871
9881
  this.contentEl.style.padding = `${this.elStyles.paddingTop} ${this.elStyles.paddingRight} ${this.elStyles.paddingBottom} ${this.elStyles.paddingLeft}`, this.wrapperEl.style.margin = `-${this.elStyles.paddingTop} -${this.elStyles.paddingRight} -${this.elStyles.paddingBottom} -${this.elStyles.paddingLeft}`;
@@ -9894,28 +9904,28 @@ var Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = function() {
9894
9904
  var t = this.axis[e].track.el, n = this.axis[e].scrollbar.el;
9895
9905
  !t || !n || !this.contentWrapperEl || (this.axis[e].isOverflowing || this.axis[e].forceVisible ? (t.style.visibility = "visible", this.contentWrapperEl.style[this.axis[e].overflowAttr] = "scroll", this.el.classList.add(`${this.classNames.scrollable}-${e}`)) : (t.style.visibility = "hidden", this.contentWrapperEl.style[this.axis[e].overflowAttr] = "hidden", this.el.classList.remove(`${this.classNames.scrollable}-${e}`)), this.axis[e].isOverflowing ? n.style.display = "block" : n.style.display = "none");
9896
9906
  }, e.prototype.showScrollbar = function(e) {
9897
- e === void 0 && (e = "y"), this.axis[e].isOverflowing && !this.axis[e].scrollbar.isVisible && (Vu(this.axis[e].scrollbar.el, this.classNames.visible), this.axis[e].scrollbar.isVisible = !0);
9907
+ e === void 0 && (e = "y"), this.axis[e].isOverflowing && !this.axis[e].scrollbar.isVisible && (Bu(this.axis[e].scrollbar.el, this.classNames.visible), this.axis[e].scrollbar.isVisible = !0);
9898
9908
  }, e.prototype.hideScrollbar = function(e) {
9899
- e === void 0 && (e = "y"), !this.isDragging && this.axis[e].isOverflowing && this.axis[e].scrollbar.isVisible && (Hu(this.axis[e].scrollbar.el, this.classNames.visible), this.axis[e].scrollbar.isVisible = !1);
9909
+ e === void 0 && (e = "y"), !this.isDragging && this.axis[e].isOverflowing && this.axis[e].scrollbar.isVisible && (Vu(this.axis[e].scrollbar.el, this.classNames.visible), this.axis[e].scrollbar.isVisible = !1);
9900
9910
  }, e.prototype.hideNativeScrollbar = function() {
9901
9911
  this.offsetEl && (this.offsetEl.style[this.isRtl ? "left" : "right"] = this.axis.y.isOverflowing || this.axis.y.forceVisible ? `-${this.scrollbarWidth}px` : "0px", this.offsetEl.style.bottom = this.axis.x.isOverflowing || this.axis.x.forceVisible ? `-${this.scrollbarWidth}px` : "0px");
9902
9912
  }, e.prototype.onMouseMoveForAxis = function(e) {
9903
9913
  e === void 0 && (e = "y");
9904
9914
  var t = this.axis[e];
9905
- !t.track.el || !t.scrollbar.el || (t.track.rect = t.track.el.getBoundingClientRect(), t.scrollbar.rect = t.scrollbar.el.getBoundingClientRect(), this.isWithinBounds(t.track.rect) ? (this.showScrollbar(e), Vu(t.track.el, this.classNames.hover), this.isWithinBounds(t.scrollbar.rect) ? Vu(t.scrollbar.el, this.classNames.hover) : Hu(t.scrollbar.el, this.classNames.hover)) : (Hu(t.track.el, this.classNames.hover), this.options.autoHide && this.hideScrollbar(e)));
9915
+ !t.track.el || !t.scrollbar.el || (t.track.rect = t.track.el.getBoundingClientRect(), t.scrollbar.rect = t.scrollbar.el.getBoundingClientRect(), this.isWithinBounds(t.track.rect) ? (this.showScrollbar(e), Bu(t.track.el, this.classNames.hover), this.isWithinBounds(t.scrollbar.rect) ? Bu(t.scrollbar.el, this.classNames.hover) : Vu(t.scrollbar.el, this.classNames.hover)) : (Vu(t.track.el, this.classNames.hover), this.options.autoHide && this.hideScrollbar(e)));
9906
9916
  }, e.prototype.onMouseLeaveForAxis = function(e) {
9907
- e === void 0 && (e = "y"), Hu(this.axis[e].track.el, this.classNames.hover), Hu(this.axis[e].scrollbar.el, this.classNames.hover), this.options.autoHide && this.hideScrollbar(e);
9917
+ e === void 0 && (e = "y"), Vu(this.axis[e].track.el, this.classNames.hover), Vu(this.axis[e].scrollbar.el, this.classNames.hover), this.options.autoHide && this.hideScrollbar(e);
9908
9918
  }, e.prototype.onDragStart = function(e, t) {
9909
9919
  t === void 0 && (t = "y"), this.isDragging = !0;
9910
- var n = zu(this.el), r = Ru(this.el), i = this.axis[t].scrollbar, a = t === "y" ? e.pageY : e.pageX;
9911
- this.axis[t].dragOffset = a - (i.rect?.[this.axis[t].offsetAttr] || 0), this.draggedAxis = t, Vu(this.el, this.classNames.dragging), n.addEventListener("mousemove", this.drag, !0), n.addEventListener("mouseup", this.onEndDrag, !0), this.removePreventClickId === null ? (n.addEventListener("click", this.preventClick, !0), n.addEventListener("dblclick", this.preventClick, !0)) : (r.clearTimeout(this.removePreventClickId), this.removePreventClickId = null);
9920
+ var n = Ru(this.el), r = Lu(this.el), i = this.axis[t].scrollbar, a = t === "y" ? e.pageY : e.pageX;
9921
+ this.axis[t].dragOffset = a - (i.rect?.[this.axis[t].offsetAttr] || 0), this.draggedAxis = t, Bu(this.el, this.classNames.dragging), n.addEventListener("mousemove", this.drag, !0), n.addEventListener("mouseup", this.onEndDrag, !0), this.removePreventClickId === null ? (n.addEventListener("click", this.preventClick, !0), n.addEventListener("dblclick", this.preventClick, !0)) : (r.clearTimeout(this.removePreventClickId), this.removePreventClickId = null);
9912
9922
  }, e.prototype.onTrackClick = function(e, t) {
9913
9923
  var n = this;
9914
9924
  t === void 0 && (t = "y");
9915
9925
  var r = this.axis[t];
9916
9926
  if (!(!this.options.clickOnTrack || !r.scrollbar.el || !this.contentWrapperEl)) {
9917
9927
  e.preventDefault();
9918
- var i = Ru(this.el);
9928
+ var i = Lu(this.el);
9919
9929
  this.axis[t].scrollbar.rect = r.scrollbar.el.getBoundingClientRect();
9920
9930
  var a = this.axis[t].scrollbar.rect?.[this.axis[t].offsetAttr] ?? 0, o = parseInt(this.elStyles?.[this.axis[t].sizeAttr] ?? "0px", 10), s = this.contentWrapperEl[this.axis[t].scrollOffsetAttr], c = (t === "y" ? this.mouseY - a : this.mouseX - a) < 0 ? -1 : 1, l = c === -1 ? s - o : s + o, u = 40, d = function() {
9921
9931
  n.contentWrapperEl && (c === -1 ? s > l && (s -= u, n.contentWrapperEl[n.axis[t].scrollOffsetAttr] = s, i.requestAnimationFrame(d)) : s < l && (s += u, n.contentWrapperEl[n.axis[t].scrollOffsetAttr] = s, i.requestAnimationFrame(d)));
@@ -9927,7 +9937,7 @@ var Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = function() {
9927
9937
  }, e.prototype.getScrollElement = function() {
9928
9938
  return this.contentWrapperEl;
9929
9939
  }, e.prototype.removeListeners = function() {
9930
- var e = Ru(this.el);
9940
+ var e = Lu(this.el);
9931
9941
  this.el.removeEventListener("mouseenter", this.onMouseEnter), this.el.removeEventListener("pointerdown", this.onPointerEvent, !0), this.el.removeEventListener("mousemove", this.onMouseMove), this.el.removeEventListener("mouseleave", this.onMouseLeave), this.contentWrapperEl && this.contentWrapperEl.removeEventListener("scroll", this.onScroll), e.removeEventListener("resize", this.onWindowResize), this.mutationObserver && this.mutationObserver.disconnect(), this.resizeObserver && this.resizeObserver.disconnect(), this.onMouseMove.cancel(), this.onWindowResize.cancel(), this.onStopScrolling.cancel(), this.onMouseEntered.cancel();
9932
9942
  }, e.prototype.unMount = function() {
9933
9943
  this.removeListeners();
@@ -9968,52 +9978,52 @@ var Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = function() {
9968
9978
  scrollableNode: null,
9969
9979
  contentNode: null,
9970
9980
  autoHide: !0
9971
- }, e.getOptions = Bu, e.helpers = Pu, e;
9972
- }(), Gu = function() {
9973
- return Gu = Object.assign || function(e) {
9981
+ }, e.getOptions = zu, e.helpers = Nu, e;
9982
+ }(), Wu = function() {
9983
+ return Wu = Object.assign || function(e) {
9974
9984
  for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
9975
9985
  return e;
9976
- }, Gu.apply(this, arguments);
9986
+ }, Wu.apply(this, arguments);
9977
9987
  };
9978
- function Ku(e, t) {
9988
+ function Gu(e, t) {
9979
9989
  var n = {};
9980
9990
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
9981
9991
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
9982
9992
  return n;
9983
9993
  }
9984
- var qu = T.forwardRef(function(e, t) {
9985
- var n = e.children, r = e.scrollableNodeProps, i = r === void 0 ? {} : r, a = Ku(e, ["children", "scrollableNodeProps"]), o = T.useRef(), s = T.useRef(), c = T.useRef(), l = {}, u = {};
9994
+ var Ku = T.forwardRef(function(e, t) {
9995
+ var n = e.children, r = e.scrollableNodeProps, i = r === void 0 ? {} : r, a = Gu(e, ["children", "scrollableNodeProps"]), o = T.useRef(), s = T.useRef(), c = T.useRef(), l = {}, u = {};
9986
9996
  Object.keys(a).forEach(function(e) {
9987
- Object.prototype.hasOwnProperty.call(Wu.defaultOptions, e) ? l[e] = a[e] : u[e] = a[e];
9997
+ Object.prototype.hasOwnProperty.call(Uu.defaultOptions, e) ? l[e] = a[e] : u[e] = a[e];
9988
9998
  });
9989
- var d = Gu(Gu({}, Wu.defaultOptions.classNames), l.classNames), f = Gu(Gu({}, i), {
9999
+ var d = Wu(Wu({}, Uu.defaultOptions.classNames), l.classNames), f = Wu(Wu({}, i), {
9990
10000
  className: `${d.contentWrapper}${i.className ? ` ${i.className}` : ""}`,
9991
- tabIndex: l.tabIndex || Wu.defaultOptions.tabIndex,
10001
+ tabIndex: l.tabIndex || Uu.defaultOptions.tabIndex,
9992
10002
  role: "region",
9993
- "aria-label": l.ariaLabel || Wu.defaultOptions.ariaLabel
10003
+ "aria-label": l.ariaLabel || Uu.defaultOptions.ariaLabel
9994
10004
  });
9995
10005
  return T.useEffect(function() {
9996
10006
  var e;
9997
- return s.current = f.ref ? f.ref.current : s.current, o.current && (e = new Wu(o.current, Gu(Gu(Gu({}, l), s.current && { scrollableNode: s.current }), c.current && { contentNode: c.current })), typeof t == "function" ? t(e) : t && (t.current = e)), function() {
10007
+ return s.current = f.ref ? f.ref.current : s.current, o.current && (e = new Uu(o.current, Wu(Wu(Wu({}, l), s.current && { scrollableNode: s.current }), c.current && { contentNode: c.current })), typeof t == "function" ? t(e) : t && (t.current = e)), function() {
9998
10008
  e?.unMount(), e = null, typeof t == "function" && t(null);
9999
10009
  };
10000
- }, []), T.createElement("div", Gu({
10010
+ }, []), T.createElement("div", Wu({
10001
10011
  "data-simplebar": "init",
10002
10012
  ref: o
10003
10013
  }, u), T.createElement("div", { className: d.wrapper }, T.createElement("div", { className: d.heightAutoObserverWrapperEl }, T.createElement("div", { className: d.heightAutoObserverEl })), T.createElement("div", { className: d.mask }, T.createElement("div", { className: d.offset }, typeof n == "function" ? n({
10004
10014
  scrollableNodeRef: s,
10005
- scrollableNodeProps: Gu(Gu({}, f), { ref: s }),
10015
+ scrollableNodeProps: Wu(Wu({}, f), { ref: s }),
10006
10016
  contentNodeRef: c,
10007
10017
  contentNodeProps: {
10008
10018
  className: d.contentEl,
10009
10019
  ref: c
10010
10020
  }
10011
- }) : T.createElement("div", Gu({}, f), T.createElement("div", { className: d.contentEl }, n)))), T.createElement("div", { className: d.placeholder })), T.createElement("div", { className: `${d.track} ${d.horizontal}` }, T.createElement("div", { className: d.scrollbar })), T.createElement("div", { className: `${d.track} ${d.vertical}` }, T.createElement("div", { className: d.scrollbar })));
10021
+ }) : T.createElement("div", Wu({}, f), T.createElement("div", { className: d.contentEl }, n)))), T.createElement("div", { className: d.placeholder })), T.createElement("div", { className: `${d.track} ${d.horizontal}` }, T.createElement("div", { className: d.scrollbar })), T.createElement("div", { className: `${d.track} ${d.vertical}` }, T.createElement("div", { className: d.scrollbar })));
10012
10022
  });
10013
- qu.displayName = "SimpleBar";
10023
+ Ku.displayName = "SimpleBar";
10014
10024
  //#endregion
10015
10025
  //#region src/lib/components/simple-overlay/index.tsx
10016
- var Ju = Y.div`
10026
+ var qu = Y.div`
10017
10027
  .simplebar-scrollbar::before {
10018
10028
  width: var(--scrollbar-size);
10019
10029
  background: var(--scrollbar-handle-bg);
@@ -10024,7 +10034,7 @@ var Ju = Y.div`
10024
10034
  background: var(--scrollbar-handle-light-bg);
10025
10035
  }
10026
10036
  }
10027
- `, Yu = ({ height: e, children: t, style: n, disableTrigger: r, onScrollEnd: i }) => {
10037
+ `, Ju = ({ height: e, children: t, style: n, disableTrigger: r, onScrollEnd: i }) => {
10028
10038
  let { config: o } = a(), { isDarkTheme: s } = o, c = E.useRef(null);
10029
10039
  return F(() => {
10030
10040
  let e = (e) => {
@@ -10038,9 +10048,9 @@ var Ju = Y.div`
10038
10048
  e,
10039
10049
  r,
10040
10050
  i
10041
- ]), /* @__PURE__ */ H(Ju, {
10051
+ ]), /* @__PURE__ */ H(qu, {
10042
10052
  className: s ? "dark" : "light",
10043
- children: /* @__PURE__ */ H(qu, {
10053
+ children: /* @__PURE__ */ H(Ku, {
10044
10054
  ref: c,
10045
10055
  style: {
10046
10056
  height: e,
@@ -10049,13 +10059,13 @@ var Ju = Y.div`
10049
10059
  children: t
10050
10060
  })
10051
10061
  });
10052
- }, Xu = E.memo(({ columns: e }) => {
10062
+ }, Yu = E.memo(({ columns: e }) => {
10053
10063
  let t = o();
10054
10064
  return /* @__PURE__ */ H("tr", { children: e.map((e, n) => /* @__PURE__ */ H("th", { children: /* @__PURE__ */ H("span", {
10055
10065
  className: "cell-span cell-header",
10056
10066
  children: e.locale ? t.formatMessage({ id: e.title }) : e.title
10057
10067
  }) }, n)) });
10058
- }), Zu = (e) => {
10068
+ }), Xu = (e) => {
10059
10069
  let { row: t, column: n, rowIndex: r, colIndex: i, dataList: a } = e;
10060
10070
  return R(() => n.render ? n.render({
10061
10071
  dataIndex: n.key,
@@ -10097,24 +10107,24 @@ var Ju = Y.div`
10097
10107
  }) : t[n.key]
10098
10108
  })
10099
10109
  }, i);
10100
- }, Qu = ({ row: e, columns: t, rowIndex: n, dataList: r }) => /* @__PURE__ */ H("tr", { children: t.map((t, i) => /* @__PURE__ */ H(Zu, {
10110
+ }, Zu = ({ row: e, columns: t, rowIndex: n, dataList: r }) => /* @__PURE__ */ H("tr", { children: t.map((t, i) => /* @__PURE__ */ H(Xu, {
10101
10111
  rowIndex: n,
10102
10112
  colIndex: i,
10103
10113
  dataList: r,
10104
10114
  row: e,
10105
10115
  column: t
10106
- }, i)) }), $u = (e) => {
10116
+ }, i)) }), Qu = (e) => {
10107
10117
  let { columns: t, dataSource: n, rowKey: r, theme: i, bordered: a = !0 } = e;
10108
10118
  return /* @__PURE__ */ H("div", { children: /* @__PURE__ */ U("table", {
10109
10119
  className: (0, X.default)("simple-table", i, { "simple-table-bordered": a }),
10110
- children: [/* @__PURE__ */ H("thead", { children: /* @__PURE__ */ H(Xu, { columns: t }) }), /* @__PURE__ */ H("tbody", { children: n.map((e, i) => /* @__PURE__ */ H(Qu, {
10120
+ children: [/* @__PURE__ */ H("thead", { children: /* @__PURE__ */ H(Yu, { columns: t }) }), /* @__PURE__ */ H("tbody", { children: n.map((e, i) => /* @__PURE__ */ H(Zu, {
10111
10121
  row: e,
10112
10122
  rowIndex: i,
10113
10123
  columns: t,
10114
10124
  dataList: n
10115
10125
  }, e[r])) })]
10116
10126
  }) });
10117
- }, ed = (e) => {
10127
+ }, $u = (e) => {
10118
10128
  let { data: t, fieldList: n, style: r } = e, i = o();
10119
10129
  return /* @__PURE__ */ H("span", {
10120
10130
  className: "flex",
@@ -10138,7 +10148,7 @@ var Ju = Y.div`
10138
10148
  }) : null]
10139
10149
  }, e.key || r))
10140
10150
  });
10141
- }, td = A((e, t) => {
10151
+ }, ed = A((e, t) => {
10142
10152
  let { autoplay: n = !1 } = e, r = E.useRef(null), i = z(null), a = z(null), o = z(null), s = N(() => {
10143
10153
  i.current = new (window.AudioContext || window.webkitAudioContext)(), a.current = i.current.createAnalyser(), a.current.fftSize = 512, o.current = new Uint8Array(a.current.frequencyBinCount);
10144
10154
  }, []), c = N(() => {
@@ -10204,7 +10214,7 @@ var Ju = Y.div`
10204
10214
  },
10205
10215
  preload: "metadata"
10206
10216
  });
10207
- }), nd = A((e, t) => {
10217
+ }), td = A((e, t) => {
10208
10218
  let { isStream: n } = e;
10209
10219
  console.log("Rendering SpeechItem with props:", e.isStream, e.analyserData);
10210
10220
  let r = o(), [i, a] = B(e.autoplay || e.isPlaying), [s, c] = B(0), [l, u] = B({
@@ -10265,7 +10275,7 @@ var Ju = Y.div`
10265
10275
  g.current?.seekTo(e / s), f(e);
10266
10276
  }, []);
10267
10277
  let A = () => e.format === "pcm" ? "wav" : e.format, j = N(() => {
10268
- let t = e.audioUrl || "", n = `audio-${(0, ta.default)().format("YYYYMMDDHHmmss")}.${A()}`, r = document.createElement("a");
10278
+ let t = e.audioUrl || "", n = `audio-${(0, na.default)().format("YYYYMMDDHHmmss")}.${A()}`, r = document.createElement("a");
10269
10279
  r.href = t, r.download = n, document.body.appendChild(r), r.click(), r.remove();
10270
10280
  }, [e.audioUrl, e.format]);
10271
10281
  console.log("isPCMStream:", _, i), console.log("props.analyserData:", e.analyserData);
@@ -10322,7 +10332,7 @@ var Ju = Y.div`
10322
10332
  width: "100%"
10323
10333
  },
10324
10334
  ref: h,
10325
- children: /* @__PURE__ */ U(V, { children: [!_ && /* @__PURE__ */ H(td, {
10335
+ children: /* @__PURE__ */ U(V, { children: [!_ && /* @__PURE__ */ H(ed, {
10326
10336
  ...e,
10327
10337
  url: e.audioUrl,
10328
10338
  onReady: k,
@@ -10342,7 +10352,7 @@ var Ju = Y.div`
10342
10352
  })] })
10343
10353
  })
10344
10354
  }), M()] });
10345
- }), rd = (e) => /* @__PURE__ */ H("div", { children: e.dataList.map((t) => /* @__PURE__ */ H(nd, {
10355
+ }), nd = (e) => /* @__PURE__ */ H("div", { children: e.dataList.map((t) => /* @__PURE__ */ H(td, {
10346
10356
  ...t,
10347
10357
  isStream: e.isStream,
10348
10358
  isPlaying: e.isPlaying,
@@ -10350,12 +10360,12 @@ var Ju = Y.div`
10350
10360
  onPause: e.onPause,
10351
10361
  ref: e.playerRef,
10352
10362
  analyserData: e.analyserData
10353
- }, t.uid)) }), id = Y.span`
10363
+ }, t.uid)) }), rd = Y.span`
10354
10364
  white-space: nowrap;
10355
10365
  overflow: hidden;
10356
10366
  text-overflow: ellipsis;
10357
- `, ad = /<a (.*?)>(.*?)<\/a>/g, od = ({ style: e, statusValue: t, download: n, extra: r, actions: i = [], maxTooltipWidth: a = 250, suffix: o }) => {
10358
- let { text: s, status: l } = t, d = R(() => Hi[l], [l]), f = R(() => t.message ? ad.test(t.message || "") : !1, [t.message]), p = R(() => t.message ? t.message?.match(ad) ? t.message?.replace(ad, "<a $1 target=\"_blank\">$2</a>") : t.message : "", [t.message]), m = () => {
10367
+ `, id = /<a (.*?)>(.*?)<\/a>/g, ad = ({ style: e, statusValue: t, download: n, extra: r, actions: i = [], maxTooltipWidth: a = 250, suffix: o }) => {
10368
+ let { text: s, status: l } = t, d = R(() => Ui[l], [l]), f = R(() => t.message ? id.test(t.message || "") : !1, [t.message]), p = R(() => t.message ? t.message?.match(id) ? t.message?.replace(id, "<a $1 target=\"_blank\">$2</a>") : t.message : "", [t.message]), m = () => {
10359
10369
  let e = n?.percent || 0;
10360
10370
  return n && e > 0 && e <= 100 ? /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ U("span", {
10361
10371
  className: "progress",
@@ -10363,7 +10373,7 @@ var Ju = Y.div`
10363
10373
  }), /* @__PURE__ */ H("span", {
10364
10374
  className: "download",
10365
10375
  style: { width: `${Z.default.round(e, 0)}%` }
10366
- })] }) : /* @__PURE__ */ H(id, { children: s });
10376
+ })] }) : /* @__PURE__ */ H(rd, { children: s });
10367
10377
  }, h = /* @__PURE__ */ U("div", {
10368
10378
  className: "status-content-wrapper",
10369
10379
  children: [/* @__PURE__ */ U("div", {
@@ -10429,7 +10439,7 @@ var Ju = Y.div`
10429
10439
  children: [m(), o && /* @__PURE__ */ H("span", { children: o })]
10430
10440
  })
10431
10441
  });
10432
- }, sd = {
10442
+ }, od = {
10433
10443
  mask: "styles-module__mask___fnLBF",
10434
10444
  maskOpen: "styles-module__maskOpen___KKROU",
10435
10445
  overlay: "styles-module__overlay___8EcfD",
@@ -10439,28 +10449,35 @@ var Ju = Y.div`
10439
10449
  subTitle: "styles-module__subTitle___vunlj",
10440
10450
  content: "styles-module__content___d1qHZ",
10441
10451
  footer: "styles-module__footer___wE8uH"
10442
- }, cd = ({ title: e, open: t, onCancel: n, onSubmit: r, children: i, subTitle: a, footer: o, width: s = 600, className: c, style: l, maskClosable: u = !1, styles: d, getContainer: f }) => {
10443
- let [p, m] = E.useState(null), [h, g] = E.useState(!1), [_, v] = E.useState(!1);
10452
+ }, sd = ({ title: e, open: t, onCancel: n, onSubmit: r, children: i, subTitle: a, footer: o, width: s = 600, className: c, style: l, maskClosable: u = !1, styles: d, getContainer: f }) => {
10453
+ let [p, m] = E.useState(null), [h, g] = E.useState(!1), [_, v] = E.useState(!1), y = zt(() => {
10454
+ let e = document.querySelectorAll(".ant-layout-content");
10455
+ return e[e.length - 1] ?? null;
10456
+ });
10444
10457
  E.useEffect(() => {
10445
10458
  if (t) {
10446
- m(f?.() ?? null), g(!0);
10459
+ m(f?.() ?? y()), g(!0);
10447
10460
  return;
10448
10461
  }
10449
10462
  v(!1);
10450
- }, [f, t]), E.useEffect(() => {
10463
+ }, [
10464
+ f,
10465
+ y,
10466
+ t
10467
+ ]), E.useEffect(() => {
10451
10468
  if (!h || !p) return;
10452
10469
  let e = requestAnimationFrame(() => v(!0));
10453
10470
  return () => cancelAnimationFrame(e);
10454
10471
  }, [h, p]);
10455
- let y = (e) => {
10472
+ let b = (e) => {
10456
10473
  e.target !== e.currentTarget || e.propertyName !== "transform" || !t && !_ && (g(!1), m(null));
10457
10474
  };
10458
10475
  return !h || !p ? null : Ht(/* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H("div", {
10459
- className: (0, X.default)(sd.mask, { [sd.maskOpen]: _ }),
10476
+ className: (0, X.default)(od.mask, _ && od.maskOpen),
10460
10477
  style: d?.mask,
10461
10478
  onClick: u ? n : void 0
10462
10479
  }), /* @__PURE__ */ U("div", {
10463
- className: (0, X.default)(sd.overlay, { [sd.overlayOpen]: _ }, c),
10480
+ className: (0, X.default)(od.overlay, _ && od.overlayOpen, c),
10464
10481
  style: {
10465
10482
  width: s,
10466
10483
  ...l,
@@ -10468,9 +10485,9 @@ var Ju = Y.div`
10468
10485
  },
10469
10486
  role: "dialog",
10470
10487
  "aria-modal": "true",
10471
- onTransitionEnd: y,
10488
+ onTransitionEnd: b,
10472
10489
  children: [/* @__PURE__ */ U("div", {
10473
- className: sd.header,
10490
+ className: od.header,
10474
10491
  style: d?.header,
10475
10492
  children: [/* @__PURE__ */ H(G, {
10476
10493
  type: "text",
@@ -10485,11 +10502,11 @@ var Ju = Y.div`
10485
10502
  }),
10486
10503
  onClick: n
10487
10504
  }), /* @__PURE__ */ U("div", {
10488
- className: sd.title,
10505
+ className: od.title,
10489
10506
  style: d?.title,
10490
10507
  children: [e, a && /* @__PURE__ */ H(jt, {
10491
10508
  variant: "outlined",
10492
- className: sd.subTitle,
10509
+ className: od.subTitle,
10493
10510
  style: d?.subTitle,
10494
10511
  children: a
10495
10512
  })]
@@ -10503,7 +10520,7 @@ var Ju = Y.div`
10503
10520
  children: i
10504
10521
  })]
10505
10522
  })] }), p);
10506
- }, ld = (e) => {
10523
+ }, cd = (e) => {
10507
10524
  let { title: t, style: n, align: r, firstCell: i, lastCell: a, sortOrder: s, sortDirections: c = [
10508
10525
  "ascend",
10509
10526
  "descend",
@@ -10558,7 +10575,7 @@ var Ju = Y.div`
10558
10575
  })
10559
10576
  })
10560
10577
  });
10561
- }, ud = (e) => {
10578
+ }, ld = (e) => {
10562
10579
  let { onSort: t, sortDirections: n, sorterList: r, showSorterTooltip: i } = e;
10563
10580
  return /* @__PURE__ */ H(xt, {
10564
10581
  className: "row",
@@ -10566,7 +10583,7 @@ var Ju = Y.div`
10566
10583
  let { title: s, dataIndex: c, align: l, width: u, span: d, headerStyle: f, sortOrder: p, sorter: m, defaultSortOrder: h } = a;
10567
10584
  return /* @__PURE__ */ H(st, {
10568
10585
  span: d,
10569
- children: /* @__PURE__ */ H(ld, {
10586
+ children: /* @__PURE__ */ H(cd, {
10570
10587
  onSort: t,
10571
10588
  showSorterTooltip: i,
10572
10589
  sorter: m,
@@ -10585,7 +10602,7 @@ var Ju = Y.div`
10585
10602
  }, c || o);
10586
10603
  })
10587
10604
  });
10588
- }, dd = (e) => {
10605
+ }, ud = (e) => {
10589
10606
  let { hasColumns: t, expandable: n, enableSelection: r, onSelectAll: i, onExpandAll: a, indeterminate: s, selectAll: c, expandAll: l, disabled: u } = e;
10590
10607
  o();
10591
10608
  let d = () => {
@@ -10638,13 +10655,13 @@ var Ju = Y.div`
10638
10655
  className: "header-row-prefix-wrapper",
10639
10656
  children: /* @__PURE__ */ H(K, { disabled: u })
10640
10657
  }) : null : null;
10641
- }, fd = (e) => {
10658
+ }, dd = (e) => {
10642
10659
  let { children: t } = e;
10643
10660
  return /* @__PURE__ */ H("div", {
10644
10661
  className: "row-children",
10645
10662
  children: t
10646
10663
  });
10647
- }, pd = E.createContext({}), md = E.createContext({}), hd = Y.div`
10664
+ }, fd = E.createContext({}), pd = E.createContext({}), md = Y.div`
10648
10665
  width: 30px;
10649
10666
  margin-right: 5px;
10650
10667
  &.disable-expand {
@@ -10652,11 +10669,11 @@ var Ju = Y.div`
10652
10669
  display: none;
10653
10670
  }
10654
10671
  }
10655
- `, gd = (e) => {
10672
+ `, hd = (e) => {
10656
10673
  let { expandable: t, enableSelection: n, expanded: r, checked: i, disableExpand: a, handleRowExpand: o, handleSelectChange: s } = e, c = R(() => r, [r]);
10657
10674
  return t && n ? /* @__PURE__ */ U("div", {
10658
10675
  className: "row-prefix-wrapper",
10659
- children: [/* @__PURE__ */ H(hd, {
10676
+ children: [/* @__PURE__ */ H(md, {
10660
10677
  className: (0, X.default)({ "disable-expand": a }),
10661
10678
  children: Z.default.isBoolean(t) ? /* @__PURE__ */ H(G, {
10662
10679
  type: "text",
@@ -10674,7 +10691,7 @@ var Ju = Y.div`
10674
10691
  })]
10675
10692
  }) : t ? /* @__PURE__ */ H("div", {
10676
10693
  className: "row-prefix-wrapper",
10677
- children: /* @__PURE__ */ H(hd, {
10694
+ children: /* @__PURE__ */ H(md, {
10678
10695
  className: (0, X.default)({ "disable-expand": a }),
10679
10696
  children: Z.default.isBoolean(t) ? /* @__PURE__ */ H(G, {
10680
10697
  type: "text",
@@ -10695,11 +10712,11 @@ var Ju = Y.div`
10695
10712
  checked: i
10696
10713
  })
10697
10714
  }) : null;
10698
- }, _d = Y.div`
10715
+ }, gd = Y.div`
10699
10716
  max-width: 100%;
10700
10717
  display: flex;
10701
10718
  align-items: center;
10702
- `, vd = (e) => {
10719
+ `, _d = (e) => {
10703
10720
  let t = o(), { isEditing: n, editable: r, handleSubmit: i, handleUndo: a, handleEdit: s } = e;
10704
10721
  return r ? n ? /* @__PURE__ */ U("span", {
10705
10722
  className: "flex-column",
@@ -10735,7 +10752,7 @@ var Ju = Y.div`
10735
10752
  })
10736
10753
  }, "edit")
10737
10754
  }) : null;
10738
- }, yd = (e) => {
10755
+ }, vd = (e) => {
10739
10756
  let { editable: t, current: n, isEditing: r, row: i, render: a, onChange: o } = e;
10740
10757
  return r && t ? typeof t == "object" && t?.valueType === "number" ? /* @__PURE__ */ H(gt, {
10741
10758
  style: { width: "80px" },
@@ -10746,9 +10763,9 @@ var Ju = Y.div`
10746
10763
  value: n,
10747
10764
  onChange: (e) => o(e.target.value)
10748
10765
  }) : a ? a(n, i) : n;
10749
- }, bd = (e) => {
10750
- let { row: t, onCell: n } = P(pd), { dataIndex: r, render: i, editable: a } = e, [o, s] = E.useState(!1), [c, l] = E.useState(null);
10751
- return /* @__PURE__ */ U(_d, { children: [/* @__PURE__ */ H(yd, {
10766
+ }, yd = (e) => {
10767
+ let { row: t, onCell: n } = P(fd), { dataIndex: r, render: i, editable: a } = e, [o, s] = E.useState(!1), [c, l] = E.useState(null);
10768
+ return /* @__PURE__ */ U(gd, { children: [/* @__PURE__ */ H(vd, {
10752
10769
  onChange: (e) => {
10753
10770
  l(e);
10754
10771
  },
@@ -10757,7 +10774,7 @@ var Ju = Y.div`
10757
10774
  current: o ? c : t[r],
10758
10775
  row: t,
10759
10776
  render: i
10760
- }), /* @__PURE__ */ H(vd, {
10777
+ }), /* @__PURE__ */ H(_d, {
10761
10778
  editable: a,
10762
10779
  isEditing: o,
10763
10780
  handleEdit: () => {
@@ -10777,7 +10794,7 @@ var Ju = Y.div`
10777
10794
  s(!1);
10778
10795
  }
10779
10796
  })] });
10780
- }, xd = Y.div`
10797
+ }, bd = Y.div`
10781
10798
  padding: var(--ant-table-cell-padding-block)
10782
10799
  var(--ant-table-cell-padding-inline);
10783
10800
  display: flex;
@@ -10800,22 +10817,22 @@ var Ju = Y.div`
10800
10817
  &.center {
10801
10818
  justify-content: center;
10802
10819
  }
10803
- `, Sd = (e) => {
10820
+ `, xd = (e) => {
10804
10821
  let { dataIndex: t, render: n, align: r, editable: i, dataField: a } = e;
10805
- return /* @__PURE__ */ H(xd, {
10822
+ return /* @__PURE__ */ H(bd, {
10806
10823
  className: (0, X.default)("cell", {
10807
10824
  left: r === "left",
10808
10825
  center: r === "center",
10809
10826
  right: r === "right"
10810
10827
  }),
10811
- children: /* @__PURE__ */ H(bd, {
10828
+ children: /* @__PURE__ */ H(yd, {
10812
10829
  dataIndex: a || t,
10813
10830
  render: n,
10814
10831
  editable: i
10815
10832
  })
10816
10833
  });
10817
- }, Cd = (e) => {
10818
- let { record: t, rowIndex: n, expandable: r, rowSelection: i, expandedRowKeys: a = [], rowKey: o, childParentKey: s, columns: c, pollingChildren: l, watchChildren: u, onCell: d, onExpand: f, renderChildren: p, loadChildren: m, loadChildrenAPI: h } = e, g = E.useContext(md), [_, v] = B([]), [y, b] = B(!1), x = z(null), S = z(null), C = z([]);
10834
+ }, Sd = (e) => {
10835
+ let { record: t, rowIndex: n, expandable: r, rowSelection: i, expandedRowKeys: a = [], rowKey: o, childParentKey: s, columns: c, pollingChildren: l, watchChildren: u, onCell: d, onExpand: f, renderChildren: p, loadChildren: m, loadChildrenAPI: h } = e, g = E.useContext(pd), [_, v] = B([]), [y, b] = B(!1), x = z(null), S = z(null), C = z([]);
10819
10836
  C.current = _;
10820
10837
  let w = z(null), [T, D] = B(!0), [O, k] = B(!1);
10821
10838
  F(() => () => {
@@ -10840,7 +10857,7 @@ var Ju = Y.div`
10840
10857
  }
10841
10858
  }, P = zt(async () => {
10842
10859
  try {
10843
- w.current?.cancel?.(), w.current = Ji(), b(!0), v(await m?.(t, { token: w.current?.token }) || []), b(!1);
10860
+ w.current?.cancel?.(), w.current = Yi(), b(!0), v(await m?.(t, { token: w.current?.token }) || []), b(!1);
10844
10861
  } catch {
10845
10862
  v([]), b(!1);
10846
10863
  }
@@ -10866,7 +10883,7 @@ var Ju = Y.div`
10866
10883
  };
10867
10884
  }, []), F(() => (T && I(), () => {
10868
10885
  S.current?.current?.cancel?.();
10869
- }), [T, g.allChildren]), /* @__PURE__ */ H(pd.Provider, {
10886
+ }), [T, g.allChildren]), /* @__PURE__ */ H(fd.Provider, {
10870
10887
  value: {
10871
10888
  row: {
10872
10889
  ...t,
@@ -10878,7 +10895,7 @@ var Ju = Y.div`
10878
10895
  className: "row-box",
10879
10896
  children: [/* @__PURE__ */ U("div", {
10880
10897
  className: (0, X.default)("row-wrapper", { "row-wrapper-selected": j }),
10881
- children: [/* @__PURE__ */ H(gd, {
10898
+ children: [/* @__PURE__ */ H(hd, {
10882
10899
  expandable: r,
10883
10900
  enableSelection: i?.enableSelection,
10884
10901
  expanded: A,
@@ -10890,7 +10907,7 @@ var Ju = Y.div`
10890
10907
  className: "seal-table-row",
10891
10908
  children: c?.map(({ key: e, ...t }) => /* @__PURE__ */ H(st, {
10892
10909
  span: t.span,
10893
- children: /* @__PURE__ */ H(Sd, { ...t })
10910
+ children: /* @__PURE__ */ H(xd, { ...t })
10894
10911
  }, `${t.dataIndex}-${n}`))
10895
10912
  })]
10896
10913
  }), A && !V && /* @__PURE__ */ H("div", {
@@ -10903,9 +10920,9 @@ var Ju = Y.div`
10903
10920
  })]
10904
10921
  })
10905
10922
  });
10906
- }, wd = ({ dataSource: e, rowKey: t, rowSelection: n, expandable: r, expandedRowKeys: i, onExpand: a, childParentKey: o, pollingChildren: s, watchChildren: c, renderChildren: l, loadChildren: u, loadChildrenAPI: d, columns: f, onCell: p, empty: m }) => e.length ? /* @__PURE__ */ H("div", {
10923
+ }, Cd = ({ dataSource: e, rowKey: t, rowSelection: n, expandable: r, expandedRowKeys: i, onExpand: a, childParentKey: o, pollingChildren: s, watchChildren: c, renderChildren: l, loadChildren: u, loadChildrenAPI: d, columns: f, onCell: p, empty: m }) => e.length ? /* @__PURE__ */ H("div", {
10907
10924
  className: "seal-table-content",
10908
- children: e.map((e, m) => /* @__PURE__ */ H(Cd, {
10925
+ children: e.map((e, m) => /* @__PURE__ */ H(Sd, {
10909
10926
  record: e,
10910
10927
  rowIndex: m,
10911
10928
  columns: f,
@@ -10925,7 +10942,7 @@ var Ju = Y.div`
10925
10942
  }) : /* @__PURE__ */ H("div", {
10926
10943
  className: "empty-wrapper",
10927
10944
  children: m || /* @__PURE__ */ H(ft, { image: ft.PRESENTED_IMAGE_SIMPLE })
10928
- }), Td = (e) => {
10945
+ }), wd = (e) => {
10929
10946
  let t = e.filter((e) => e.defaultSortOrder);
10930
10947
  return t.length === 0 ? [] : t.map((e) => ({
10931
10948
  columnKey: e.key || e.dataIndex,
@@ -10933,8 +10950,8 @@ var Ju = Y.div`
10933
10950
  order: e.defaultSortOrder || null
10934
10951
  }));
10935
10952
  };
10936
- function Ed(e) {
10937
- let { onTableSort: t, columns: n } = e, r = z(Td(n || [])), [i, a] = B(Td(n || []));
10953
+ function Td(e) {
10954
+ let { onTableSort: t, columns: n } = e, r = z(wd(n || [])), [i, a] = B(wd(n || []));
10938
10955
  return {
10939
10956
  sorterListRef: r,
10940
10957
  sorterList: i,
@@ -10961,19 +10978,19 @@ function Ed(e) {
10961
10978
  }
10962
10979
  //#endregion
10963
10980
  //#region src/lib/components/table/index.tsx
10964
- var Dd = Y.div`
10981
+ var Ed = Y.div`
10965
10982
  width: 100%;
10966
10983
  --ant-table-cell-padding-inline: ${(e) => e.$token.cellPaddingInline}px;
10967
10984
  --ant-table-cell-padding-block: ${(e) => e.$token.cellPaddingBlock}px;
10968
10985
  --ant-table-header-border-radius: ${(e) => e.$token.headerBorderRadius}px;
10969
- --ant-table-header-split-color: ${(e) => e.$token.colorBorderSecondary};
10986
+ --ant-table-header-split-color: ${(e) => e.$token.headerSplitColor};
10970
10987
  --ant-table-row-selected-bg: ${(e) => e.$token.rowSelectedBg};
10971
10988
  --ant-table-row-selected-hover-bg: ${(e) => e.$token.rowSelectedHoverBg};
10972
10989
  --ant-table-row-hover-bg: ${(e) => e.$token.rowHoverBg};
10973
10990
  --ant-table-header-icon-color: ${(e) => e.$token.tableHeaderIconColor};
10974
10991
  --ant-table-header-icon-hover-color: ${(e) => e.$token.tableHeaderIconHoverColor};
10975
- `, Od = (e) => {
10976
- let { columns: t, children: n, rowKey: r, childParentKey: i, onExpand: a, onExpandAll: o, onTableSort: s, onCell: c, expandedRowKeys: l, loading: u, loadend: d, expandable: f, pollingChildren: p, watchChildren: m, rowSelection: h, pagination: g, empty: _, sortDirections: v, showSorterTooltip: y, renderChildren: b, loadChildren: x, loadChildrenAPI: S } = e, { handleOnTableSort: C, sorterList: w } = Ed({
10992
+ `, Dd = (e) => {
10993
+ let { columns: t, children: n, rowKey: r, childParentKey: i, onExpand: a, onExpandAll: o, onTableSort: s, onCell: c, expandedRowKeys: l, loading: u, loadend: d, expandable: f, pollingChildren: p, watchChildren: m, rowSelection: h, pagination: g, empty: _, sortDirections: v, showSorterTooltip: y, renderChildren: b, loadChildren: x, loadChildrenAPI: S } = e, { handleOnTableSort: C, sorterList: w } = Td({
10977
10994
  onTableSort: s,
10978
10995
  columns: t
10979
10996
  }), { token: T } = Lt.useToken(), D = R(() => t || E.Children.toArray(n).filter(E.isValidElement).map((e) => {
@@ -11025,7 +11042,7 @@ var Dd = Y.div`
11025
11042
  }, F = (e, t) => {
11026
11043
  g?.onShowSizeChange?.(e, t);
11027
11044
  };
11028
- return console.log("token.table", T), /* @__PURE__ */ U(Dd, {
11045
+ return console.log("token.table", T), /* @__PURE__ */ U(Ed, {
11029
11046
  $token: {
11030
11047
  ...T.Table,
11031
11048
  tableHeaderIconColor: T.colorTextQuaternary,
@@ -11036,7 +11053,7 @@ var Dd = Y.div`
11036
11053
  className: "seal-table-container",
11037
11054
  children: [/* @__PURE__ */ U("div", {
11038
11055
  className: "header-row-wrapper",
11039
- children: [/* @__PURE__ */ H(dd, {
11056
+ children: [/* @__PURE__ */ H(ud, {
11040
11057
  selectAll: k.selectAll,
11041
11058
  indeterminate: k.indeterminate,
11042
11059
  onSelectAll: M,
@@ -11046,7 +11063,7 @@ var Dd = Y.div`
11046
11063
  enableSelection: h?.enableSelection,
11047
11064
  disabled: !e.dataSource?.length,
11048
11065
  hasColumns: D.length > 0
11049
- }), /* @__PURE__ */ H(ud, {
11066
+ }), /* @__PURE__ */ H(ld, {
11050
11067
  onSort: C,
11051
11068
  columns: D,
11052
11069
  sortDirections: v,
@@ -11056,7 +11073,7 @@ var Dd = Y.div`
11056
11073
  }), /* @__PURE__ */ H(Dt, {
11057
11074
  spinning: u,
11058
11075
  size: "middle",
11059
- children: /* @__PURE__ */ H(wd, {
11076
+ children: /* @__PURE__ */ H(Cd, {
11060
11077
  empty: _,
11061
11078
  dataSource: e.dataSource,
11062
11079
  columns: D,
@@ -11084,16 +11101,16 @@ var Dd = Y.div`
11084
11101
  })]
11085
11102
  });
11086
11103
  };
11087
- Od.RowChildren = fd;
11104
+ Dd.RowChildren = dd;
11088
11105
  //#endregion
11089
11106
  //#region src/lib/components/table/table-provider.tsx
11090
- var kd = ({ value: e, children: t }) => /* @__PURE__ */ H(md.Provider, {
11107
+ var Od = ({ value: e, children: t }) => /* @__PURE__ */ H(pd.Provider, {
11091
11108
  value: e,
11092
11109
  children: t
11093
- }), Ad = ({ value: e, children: t }) => /* @__PURE__ */ H(pd.Provider, {
11110
+ }), kd = ({ value: e, children: t }) => /* @__PURE__ */ H(fd.Provider, {
11094
11111
  value: e,
11095
11112
  children: t
11096
- }), jd = (e) => {
11113
+ }), Ad = (e) => {
11097
11114
  let { gap: t = 0, dataList: n, renderTag: r } = e, i = z(null), [a, o] = B({
11098
11115
  start: 0,
11099
11116
  end: n.length
@@ -11157,7 +11174,7 @@ var kd = ({ value: e, children: t }) => /* @__PURE__ */ H(md.Provider, {
11157
11174
  })]
11158
11175
  })
11159
11176
  });
11160
- }, Md = Y(jt)`
11177
+ }, jd = Y(jt)`
11161
11178
  display: flex;
11162
11179
  align-items: center;
11163
11180
  justify-content: center;
@@ -11167,9 +11184,9 @@ var kd = ({ value: e, children: t }) => /* @__PURE__ */ H(md.Provider, {
11167
11184
  height: 22px;
11168
11185
  opacity: 0.7;
11169
11186
  margin: 0;
11170
- `, Nd = ({ opacity: e, style: t, children: n, ...r }) => {
11187
+ `, Md = ({ opacity: e, style: t, children: n, ...r }) => {
11171
11188
  let { config: i } = a(), { isDarkTheme: o } = i;
11172
- return /* @__PURE__ */ H(Md, {
11189
+ return /* @__PURE__ */ H(jd, {
11173
11190
  ...r,
11174
11191
  variant: "outlined",
11175
11192
  style: {
@@ -11179,10 +11196,10 @@ var kd = ({ value: e, children: t }) => /* @__PURE__ */ H(md.Provider, {
11179
11196
  children: n
11180
11197
  });
11181
11198
  };
11182
- Nd.displayName = "ThemeTag";
11199
+ Md.displayName = "ThemeTag";
11183
11200
  //#endregion
11184
11201
  //#region src/lib/components/templates/card.tsx
11185
- var Pd = Y.div.attrs({ className: "template-card-wrapper" })`
11202
+ var Nd = Y.div.attrs({ className: "template-card-wrapper" })`
11186
11203
  overflow: hidden;
11187
11204
  display: flex;
11188
11205
  padding: 16px 16px;
@@ -11219,31 +11236,31 @@ var Pd = Y.div.attrs({ className: "template-card-wrapper" })`
11219
11236
  pointer-events: none;
11220
11237
  border-style: dashed;
11221
11238
  }
11222
- `, Fd = Y.div.attrs({ className: "template-card-content" })`
11239
+ `, Pd = Y.div.attrs({ className: "template-card-content" })`
11223
11240
  width: 100%;
11224
11241
  flex: 1;
11225
11242
  color: var(--ant-color-text-tertiary);
11226
- `, Id = Y.div.attrs({ className: "template-card-inner" })`
11243
+ `, Fd = Y.div.attrs({ className: "template-card-inner" })`
11227
11244
  display: flex;
11228
11245
  width: 100%;
11229
11246
  flex-direction: column;
11230
11247
  justify-content: flex-start;
11231
11248
  gap: 8px;
11232
11249
  height: 100%;
11233
- `, Ld = Y.div.attrs({ className: "template-card-icon" })`
11250
+ `, Id = Y.div.attrs({ className: "template-card-icon" })`
11234
11251
  display: flex;
11235
11252
  align-items: center;
11236
11253
  margin-right: 16px;
11237
11254
  font-size: 32px;
11238
- `, Rd = Y.div.attrs({ className: "template-card-header" })`
11255
+ `, Ld = Y.div.attrs({ className: "template-card-header" })`
11239
11256
  font-weight: bold;
11240
11257
  font-size: var(--font-size-base);
11241
11258
  display: flex;
11242
11259
  align-items: center;
11243
11260
  justify-content: space-between;
11244
- `, zd = (e) => {
11261
+ `, Rd = (e) => {
11245
11262
  let { className: t, height: n, children: r, clickable: i = !0, ghost: a = !1, header: o, footer: s, icon: c, active: l, disabled: u, hoverable: d, onClick: f } = e;
11246
- return /* @__PURE__ */ U(Pd, {
11263
+ return /* @__PURE__ */ U(Nd, {
11247
11264
  className: (0, X.default)(t, {
11248
11265
  clickable: i,
11249
11266
  hoverable: d,
@@ -11255,17 +11272,17 @@ var Pd = Y.div.attrs({ className: "template-card-wrapper" })`
11255
11272
  onClick: () => {
11256
11273
  u || !i || f?.();
11257
11274
  },
11258
- children: [c && /* @__PURE__ */ H(Ld, { children: c }), /* @__PURE__ */ U(Id, { children: [
11259
- o && /* @__PURE__ */ H(Rd, { children: o }),
11260
- r && /* @__PURE__ */ H(Fd, { children: r }),
11275
+ children: [c && /* @__PURE__ */ H(Id, { children: c }), /* @__PURE__ */ U(Fd, { children: [
11276
+ o && /* @__PURE__ */ H(Ld, { children: o }),
11277
+ r && /* @__PURE__ */ H(Pd, { children: r }),
11261
11278
  s
11262
11279
  ] })]
11263
11280
  });
11264
- }, Bd = Y.div`
11281
+ }, zd = Y.div`
11265
11282
  .ant-skeleton-paragraph {
11266
11283
  margin-bottom: 0;
11267
11284
  }
11268
- `, Vd = (e) => /* @__PURE__ */ H(Tl, {
11285
+ `, Bd = (e) => /* @__PURE__ */ H(Tl, {
11269
11286
  dataList: [
11270
11287
  ,
11271
11288
  ,
@@ -11274,7 +11291,7 @@ var Pd = Y.div.attrs({ className: "template-card-wrapper" })`
11274
11291
  ,
11275
11292
  ,
11276
11293
  ].fill({ label: "skeleton" }),
11277
- renderItem: () => /* @__PURE__ */ H(Bd, { children: /* @__PURE__ */ H(wt, {
11294
+ renderItem: () => /* @__PURE__ */ H(zd, { children: /* @__PURE__ */ H(wt, {
11278
11295
  avatar: { size: 32 },
11279
11296
  paragraph: { rows: 2 },
11280
11297
  style: {
@@ -11285,7 +11302,7 @@ var Pd = Y.div.attrs({ className: "template-card-wrapper" })`
11285
11302
  },
11286
11303
  ...e.skeletonProps || {}
11287
11304
  }) })
11288
- }), Hd = Y.div`
11305
+ }), Vd = Y.div`
11289
11306
  width: 100%;
11290
11307
  position: absolute;
11291
11308
  display: flex;
@@ -11298,13 +11315,13 @@ var Pd = Y.div.attrs({ className: "template-card-wrapper" })`
11298
11315
  .skelton-wrapper {
11299
11316
  width: 100%;
11300
11317
  }
11301
- `, Ud = ({ loading: e, isFirst: t }) => /* @__PURE__ */ H("div", { children: e && /* @__PURE__ */ H(Hd, { children: /* @__PURE__ */ H(Dt, {
11318
+ `, Hd = ({ loading: e, isFirst: t }) => /* @__PURE__ */ H("div", { children: e && /* @__PURE__ */ H(Vd, { children: /* @__PURE__ */ H(Dt, {
11302
11319
  size: "middle",
11303
11320
  spinning: e,
11304
11321
  style: { width: "100%" },
11305
11322
  classNames: { root: "skelton-wrapper" },
11306
- children: t && /* @__PURE__ */ H(Vd, {})
11307
- }) }) }), Wd = (e) => {
11323
+ children: t && /* @__PURE__ */ H(Bd, {})
11324
+ }) }) }), Ud = (e) => {
11308
11325
  let { dataList: t, loading: n, isFirst: r, defaultSpan: i = 8, resizable: a = !0, renderItem: o } = e, { total: s, current: c, loading: l, refresh: u } = Fc();
11309
11326
  return /* @__PURE__ */ U(Nc, {
11310
11327
  total: s,
@@ -11316,12 +11333,12 @@ var Pd = Y.div.attrs({ className: "template-card-wrapper" })`
11316
11333
  renderItem: o,
11317
11334
  defaultSpan: i,
11318
11335
  resizable: a
11319
- }), /* @__PURE__ */ H(Ud, {
11336
+ }), /* @__PURE__ */ H(Hd, {
11320
11337
  loading: n,
11321
11338
  isFirst: r
11322
11339
  })]
11323
11340
  });
11324
- }, Gd = /* @__PURE__ */ n(((e, t) => {
11341
+ }, Wd = /* @__PURE__ */ n(((e, t) => {
11325
11342
  (function(n, r) {
11326
11343
  typeof e == "object" && typeof t == "object" ? t.exports = r() : typeof define == "function" && define.amd ? define([], r) : typeof e == "object" ? e.FitAddon = r() : n.FitAddon = r();
11327
11344
  })(self, (() => (() => {
@@ -11352,7 +11369,7 @@ var Pd = Y.div.attrs({ className: "template-card-wrapper" })`
11352
11369
  };
11353
11370
  })(), e;
11354
11371
  })()));
11355
- })), Kd = /* @__PURE__ */ n(((e, t) => {
11372
+ })), Gd = /* @__PURE__ */ n(((e, t) => {
11356
11373
  (function(n, r) {
11357
11374
  if (typeof e == "object" && typeof t == "object") t.exports = r();
11358
11375
  else if (typeof define == "function" && define.amd) define([], r);
@@ -18459,9 +18476,9 @@ var Pd = Y.div.attrs({ className: "template-card-wrapper" })`
18459
18476
  e.Terminal = d;
18460
18477
  })(), r;
18461
18478
  })()));
18462
- })), qd = Gd();
18463
- Kd();
18464
- var Jd = Rt(({ token: e, css: t }) => ({
18479
+ })), Kd = Wd();
18480
+ Gd();
18481
+ var qd = Rt(({ token: e, css: t }) => ({
18465
18482
  wrap: t`
18466
18483
  position: relative;
18467
18484
  text-align: left;
@@ -18480,16 +18497,16 @@ var Jd = Rt(({ token: e, css: t }) => ({
18480
18497
  background-color: var(--color-logs-bg);
18481
18498
  border-radius: 0 0 8px 8px;
18482
18499
  `
18483
- })), Yd = [
18500
+ })), Jd = [
18484
18501
  "bash",
18485
18502
  "sh",
18486
18503
  "powershell",
18487
18504
  "pwsh",
18488
18505
  "cmd",
18489
18506
  "bash"
18490
- ], Xd = "--- press Y to reconnect! ---", Zd = A((e, t) => {
18491
- let { height: n, url: r, theme: i } = e, { styles: a } = Jd(), o = E.useRef(null), s = E.useRef(null), c = E.useRef(null), l = E.useRef(""), u = E.useRef(0), d = E.useRef(null), f = E.useRef(5), p = E.useRef(5), h = E.useRef(!0), g = E.useRef(!1), _ = E.useRef(null), v = E.useRef(!1), y = E.useRef(0), [b, x] = E.useState(0), S = new qd.FitAddon(), C = (e) => {
18492
- u.current >= Yd.length - 1 || (e ? u.current = 0 : u.current += 1, l.current = `${r}&${m.stringify({ shell: Yd[u.current] })}`);
18507
+ ], Yd = "--- press Y to reconnect! ---", Xd = A((e, t) => {
18508
+ let { height: n, url: r, theme: i } = e, { styles: a } = qd(), o = E.useRef(null), s = E.useRef(null), c = E.useRef(null), l = E.useRef(""), u = E.useRef(0), d = E.useRef(null), f = E.useRef(5), p = E.useRef(5), h = E.useRef(!0), g = E.useRef(!1), _ = E.useRef(null), v = E.useRef(!1), y = E.useRef(0), [b, x] = E.useState(0), S = new Kd.FitAddon(), C = (e) => {
18509
+ u.current >= Jd.length - 1 || (e ? u.current = 0 : u.current += 1, l.current = `${r}&${m.stringify({ shell: Jd[u.current] })}`);
18493
18510
  }, w = () => (d.current && d.current.readyState) === 1, T = () => {
18494
18511
  let { cols: e, rows: t } = c.current || {};
18495
18512
  w() && d.current?.send(`#{"width":${e},"height":${t}}#`);
@@ -18512,7 +18529,7 @@ var Jd = Rt(({ token: e, css: t }) => ({
18512
18529
  1011,
18513
18530
  1006,
18514
18531
  1e3
18515
- ].includes(b) ? (v.current = !0, h.current && c.current?.reset?.(), g.current || (c.current?.write?.(j(`(${b})${e.reason}\r\n`)), c.current?.write?.(M(`\r${Xd}`))), h.current = !0) : e.reason && c.current?.write?.(j(`(${b})${e.reason}\r\n`)), g.current = !1;
18532
+ ].includes(b) ? (v.current = !0, h.current && c.current?.reset?.(), g.current || (c.current?.write?.(j(`(${b})${e.reason}\r\n`)), c.current?.write?.(M(`\r${Yd}`))), h.current = !0) : e.reason && c.current?.write?.(j(`(${b})${e.reason}\r\n`)), g.current = !1;
18516
18533
  }, R = (e) => {
18517
18534
  let { message: t } = e;
18518
18535
  t || (t = "disconnected!", v.current = !0, h.current = !0, g.current = !1), y.current = d.current.readyState, c.current?.write?.(M(`\r${t}`));
@@ -18546,55 +18563,55 @@ var Jd = Rt(({ token: e, css: t }) => ({
18546
18563
  for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
18547
18564
  return e;
18548
18565
  }, $.apply(this, arguments);
18549
- }, Qd = {
18566
+ }, Zd = {
18550
18567
  width: "100%",
18551
18568
  height: "10px",
18552
18569
  top: "0px",
18553
18570
  left: "0px",
18554
18571
  cursor: "row-resize"
18555
- }, $d = {
18572
+ }, Qd = {
18556
18573
  width: "10px",
18557
18574
  height: "100%",
18558
18575
  top: "0px",
18559
18576
  left: "0px",
18560
18577
  cursor: "col-resize"
18561
- }, ef = {
18578
+ }, $d = {
18562
18579
  width: "20px",
18563
18580
  height: "20px",
18564
18581
  position: "absolute",
18565
18582
  zIndex: 1
18566
- }, tf = {
18567
- top: $($({}, Qd), { top: "-5px" }),
18568
- right: $($({}, $d), {
18583
+ }, ef = {
18584
+ top: $($({}, Zd), { top: "-5px" }),
18585
+ right: $($({}, Qd), {
18569
18586
  left: void 0,
18570
18587
  right: "-5px"
18571
18588
  }),
18572
- bottom: $($({}, Qd), {
18589
+ bottom: $($({}, Zd), {
18573
18590
  top: void 0,
18574
18591
  bottom: "-5px"
18575
18592
  }),
18576
- left: $($({}, $d), { left: "-5px" }),
18577
- topRight: $($({}, ef), {
18593
+ left: $($({}, Qd), { left: "-5px" }),
18594
+ topRight: $($({}, $d), {
18578
18595
  right: "-10px",
18579
18596
  top: "-10px",
18580
18597
  cursor: "ne-resize"
18581
18598
  }),
18582
- bottomRight: $($({}, ef), {
18599
+ bottomRight: $($({}, $d), {
18583
18600
  right: "-10px",
18584
18601
  bottom: "-10px",
18585
18602
  cursor: "se-resize"
18586
18603
  }),
18587
- bottomLeft: $($({}, ef), {
18604
+ bottomLeft: $($({}, $d), {
18588
18605
  left: "-10px",
18589
18606
  bottom: "-10px",
18590
18607
  cursor: "sw-resize"
18591
18608
  }),
18592
- topLeft: $($({}, ef), {
18609
+ topLeft: $($({}, $d), {
18593
18610
  left: "-10px",
18594
18611
  top: "-10px",
18595
18612
  cursor: "nw-resize"
18596
18613
  })
18597
- }, nf = M(function(e) {
18614
+ }, tf = M(function(e) {
18598
18615
  var t = e.onResizeStart, n = e.direction, r = e.children, i = e.replaceStyles, a = e.className, o = N(function(e) {
18599
18616
  t(e, n);
18600
18617
  }, [t, n]), s = N(function(e) {
@@ -18603,7 +18620,7 @@ var Jd = Rt(({ token: e, css: t }) => ({
18603
18620
  return $($({
18604
18621
  position: "absolute",
18605
18622
  userSelect: "none"
18606
- }, tf[n]), i ?? {});
18623
+ }, ef[n]), i ?? {});
18607
18624
  }, [i, n]);
18608
18625
  return H("div", {
18609
18626
  className: a || void 0,
@@ -18612,7 +18629,7 @@ var Jd = Rt(({ token: e, css: t }) => ({
18612
18629
  onTouchStart: s,
18613
18630
  children: r
18614
18631
  });
18615
- }), rf = (function() {
18632
+ }), nf = (function() {
18616
18633
  var e = function(t, n) {
18617
18634
  return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
18618
18635
  e.__proto__ = t;
@@ -18628,34 +18645,34 @@ var Jd = Rt(({ token: e, css: t }) => ({
18628
18645
  }
18629
18646
  t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
18630
18647
  };
18631
- })(), af = function() {
18632
- return af = Object.assign || function(e) {
18648
+ })(), rf = function() {
18649
+ return rf = Object.assign || function(e) {
18633
18650
  for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
18634
18651
  return e;
18635
- }, af.apply(this, arguments);
18636
- }, of = {
18652
+ }, rf.apply(this, arguments);
18653
+ }, af = {
18637
18654
  width: "auto",
18638
18655
  height: "auto"
18639
- }, sf = function(e, t, n) {
18656
+ }, of = function(e, t, n) {
18640
18657
  return Math.max(Math.min(e, n), t);
18641
- }, cf = function(e, t, n) {
18658
+ }, sf = function(e, t, n) {
18642
18659
  var r = Math.round(e / t);
18643
18660
  return r * t + n * (r - 1);
18644
- }, lf = function(e, t) {
18661
+ }, cf = function(e, t) {
18645
18662
  return new RegExp(e, "i").test(t);
18646
- }, uf = function(e) {
18663
+ }, lf = function(e) {
18647
18664
  return !!(e.touches && e.touches.length);
18648
- }, df = function(e) {
18665
+ }, uf = function(e) {
18649
18666
  return !!((e.clientX || e.clientX === 0) && (e.clientY || e.clientY === 0));
18650
- }, ff = function(e, t, n) {
18667
+ }, df = function(e, t, n) {
18651
18668
  n === void 0 && (n = 0);
18652
18669
  var r = t.reduce(function(n, r, i) {
18653
18670
  return Math.abs(r - e) < Math.abs(t[n] - e) ? i : n;
18654
18671
  }, 0), i = Math.abs(t[r] - e);
18655
18672
  return n === 0 || i < n ? t[r] : e;
18656
- }, pf = function(e) {
18673
+ }, ff = function(e) {
18657
18674
  return e = e.toString(), e === "auto" || e.endsWith("px") || e.endsWith("%") || e.endsWith("vh") || e.endsWith("vw") || e.endsWith("vmax") || e.endsWith("vmin") ? e : `${e}px`;
18658
- }, mf = function(e, t, n, r) {
18675
+ }, pf = function(e, t, n, r) {
18659
18676
  if (e && typeof e == "string") {
18660
18677
  if (e.endsWith("px")) return Number(e.replace("px", ""));
18661
18678
  if (e.endsWith("%")) {
@@ -18672,17 +18689,17 @@ var Jd = Rt(({ token: e, css: t }) => ({
18672
18689
  }
18673
18690
  }
18674
18691
  return e;
18675
- }, hf = function(e, t, n, r, i, a, o) {
18676
- return r = mf(r, e.width, t, n), i = mf(i, e.height, t, n), a = mf(a, e.width, t, n), o = mf(o, e.height, t, n), {
18692
+ }, mf = function(e, t, n, r, i, a, o) {
18693
+ return r = pf(r, e.width, t, n), i = pf(i, e.height, t, n), a = pf(a, e.width, t, n), o = pf(o, e.height, t, n), {
18677
18694
  maxWidth: r === void 0 ? void 0 : Number(r),
18678
18695
  maxHeight: i === void 0 ? void 0 : Number(i),
18679
18696
  minWidth: a === void 0 ? void 0 : Number(a),
18680
18697
  minHeight: o === void 0 ? void 0 : Number(o)
18681
18698
  };
18682
- }, gf = function(e) {
18699
+ }, hf = function(e) {
18683
18700
  return Array.isArray(e) ? e : [e, e];
18684
- }, _f = /* @__PURE__ */ "as.ref.style.className.grid.gridGap.snap.bounds.boundsByDirection.size.defaultSize.minWidth.minHeight.maxWidth.maxHeight.lockAspectRatio.lockAspectRatioExtraWidth.lockAspectRatioExtraHeight.enable.handleStyles.handleClasses.handleWrapperStyle.handleWrapperClass.children.onResizeStart.onResize.onResizeStop.handleComponent.scale.resizeRatio.snapGap".split("."), vf = "__resizable_base__", yf = function(e) {
18685
- rf(t, e);
18701
+ }, gf = /* @__PURE__ */ "as.ref.style.className.grid.gridGap.snap.bounds.boundsByDirection.size.defaultSize.minWidth.minHeight.maxWidth.maxHeight.lockAspectRatio.lockAspectRatioExtraWidth.lockAspectRatioExtraHeight.enable.handleStyles.handleClasses.handleWrapperStyle.handleWrapperClass.children.onResizeStart.onResize.onResizeStop.handleComponent.scale.resizeRatio.snapGap".split("."), _f = "__resizable_base__", vf = function(e) {
18702
+ nf(t, e);
18686
18703
  function t(t) {
18687
18704
  var n = e.call(this, t) || this;
18688
18705
  return n.ratio = 1, n.resizable = null, n.parentLeft = 0, n.parentTop = 0, n.resizableLeft = 0, n.resizableRight = 0, n.resizableTop = 0, n.resizableBottom = 0, n.targetLeft = 0, n.targetTop = 0, n.delta = {
@@ -18693,7 +18710,7 @@ var Jd = Rt(({ token: e, css: t }) => ({
18693
18710
  var e = n.parentNode;
18694
18711
  if (!e) return null;
18695
18712
  var t = n.window.document.createElement("div");
18696
- return t.style.width = "100%", t.style.height = "100%", t.style.position = "absolute", t.style.transform = "scale(0, 0)", t.style.left = "0", t.style.flex = "0 0 100%", t.classList ? t.classList.add(vf) : t.className += vf, e.appendChild(t), t;
18713
+ return t.style.width = "100%", t.style.height = "100%", t.style.position = "absolute", t.style.transform = "scale(0, 0)", t.style.left = "0", t.style.flex = "0 0 100%", t.classList ? t.classList.add(_f) : t.className += _f, e.appendChild(t), t;
18697
18714
  }, n.removeBase = function(e) {
18698
18715
  var t = n.parentNode;
18699
18716
  t && t.removeChild(e);
@@ -18738,7 +18755,7 @@ var Jd = Rt(({ token: e, css: t }) => ({
18738
18755
  configurable: !0
18739
18756
  }), Object.defineProperty(t.prototype, "propsSize", {
18740
18757
  get: function() {
18741
- return this.props.size || this.props.defaultSize || of;
18758
+ return this.props.size || this.props.defaultSize || af;
18742
18759
  },
18743
18760
  enumerable: !1,
18744
18761
  configurable: !0
@@ -18765,11 +18782,11 @@ var Jd = Rt(({ token: e, css: t }) => ({
18765
18782
  var n = e.getParentSize();
18766
18783
  return `${Number(e.state[t].toString().replace("px", "")) / n[t] * 100}%`;
18767
18784
  }
18768
- return pf(e.state[t]);
18785
+ return ff(e.state[t]);
18769
18786
  };
18770
18787
  return {
18771
- width: t && t.width !== void 0 && !this.state.isResizing ? pf(t.width) : n("width"),
18772
- height: t && t.height !== void 0 && !this.state.isResizing ? pf(t.height) : n("height")
18788
+ width: t && t.width !== void 0 && !this.state.isResizing ? ff(t.width) : n("width"),
18789
+ height: t && t.height !== void 0 && !this.state.isResizing ? ff(t.height) : n("height")
18773
18790
  };
18774
18791
  },
18775
18792
  enumerable: !1,
@@ -18816,7 +18833,7 @@ var Jd = Rt(({ token: e, css: t }) => ({
18816
18833
  var n = this.propsSize && this.propsSize[t];
18817
18834
  return this.state[t] === "auto" && this.state.original[t] === e && (n === void 0 || n === "auto") ? "auto" : e;
18818
18835
  }, t.prototype.calculateNewMaxFromBoundary = function(e, t) {
18819
- var n = this.props.boundsByDirection, r = this.state.direction, i = n && lf("left", r), a = n && lf("top", r), o, s;
18836
+ var n = this.props.boundsByDirection, r = this.state.direction, i = n && cf("left", r), a = n && cf("top", r), o, s;
18820
18837
  if (this.props.bounds === "parent") {
18821
18838
  var c = this.parentNode;
18822
18839
  c && (o = i ? this.resizableRight - this.parentLeft : c.offsetWidth + (this.parentLeft - this.resizableLeft), s = a ? this.resizableBottom - this.parentTop : c.offsetHeight + (this.parentTop - this.resizableTop));
@@ -18826,8 +18843,8 @@ var Jd = Rt(({ token: e, css: t }) => ({
18826
18843
  maxHeight: t
18827
18844
  };
18828
18845
  }, t.prototype.calculateNewSizeFromDirection = function(e, t) {
18829
- var n = this.props.scale || 1, r = gf(this.props.resizeRatio || 1), i = r[0], a = r[1], o = this.state, s = o.direction, c = o.original, l = this.props, u = l.lockAspectRatio, d = l.lockAspectRatioExtraHeight, f = l.lockAspectRatioExtraWidth, p = c.width, m = c.height, h = d || 0, g = f || 0;
18830
- return lf("right", s) && (p = c.width + (e - c.x) * i / n, u && (m = (p - g) / this.ratio + h)), lf("left", s) && (p = c.width - (e - c.x) * i / n, u && (m = (p - g) / this.ratio + h)), lf("bottom", s) && (m = c.height + (t - c.y) * a / n, u && (p = (m - h) * this.ratio + g)), lf("top", s) && (m = c.height - (t - c.y) * a / n, u && (p = (m - h) * this.ratio + g)), {
18846
+ var n = this.props.scale || 1, r = hf(this.props.resizeRatio || 1), i = r[0], a = r[1], o = this.state, s = o.direction, c = o.original, l = this.props, u = l.lockAspectRatio, d = l.lockAspectRatioExtraHeight, f = l.lockAspectRatioExtraWidth, p = c.width, m = c.height, h = d || 0, g = f || 0;
18847
+ return cf("right", s) && (p = c.width + (e - c.x) * i / n, u && (m = (p - g) / this.ratio + h)), cf("left", s) && (p = c.width - (e - c.x) * i / n, u && (m = (p - g) / this.ratio + h)), cf("bottom", s) && (m = c.height + (t - c.y) * a / n, u && (p = (m - h) * this.ratio + g)), cf("top", s) && (m = c.height - (t - c.y) * a / n, u && (p = (m - h) * this.ratio + g)), {
18831
18848
  newWidth: p,
18832
18849
  newHeight: m
18833
18850
  };
@@ -18835,8 +18852,8 @@ var Jd = Rt(({ token: e, css: t }) => ({
18835
18852
  var i = this.props, a = i.lockAspectRatio, o = i.lockAspectRatioExtraHeight, s = i.lockAspectRatioExtraWidth, c = r.width === void 0 ? 10 : r.width, l = n.width === void 0 || n.width < 0 ? e : n.width, u = r.height === void 0 ? 10 : r.height, d = n.height === void 0 || n.height < 0 ? t : n.height, f = o || 0, p = s || 0;
18836
18853
  if (a) {
18837
18854
  var m = (u - f) * this.ratio + p, h = (d - f) * this.ratio + p, g = (c - p) / this.ratio + f, _ = (l - p) / this.ratio + f, v = Math.max(c, m), y = Math.min(l, h), b = Math.max(u, g), x = Math.min(d, _);
18838
- e = sf(e, v, y), t = sf(t, b, x);
18839
- } else e = sf(e, c, l), t = sf(t, u, d);
18855
+ e = of(e, v, y), t = of(t, b, x);
18856
+ } else e = of(e, c, l), t = of(t, u, d);
18840
18857
  return {
18841
18858
  newWidth: e,
18842
18859
  newHeight: t
@@ -18861,7 +18878,7 @@ var Jd = Rt(({ token: e, css: t }) => ({
18861
18878
  }, t.prototype.onResizeStart = function(e, t) {
18862
18879
  if (!(!this.resizable || !this.window)) {
18863
18880
  var n = 0, r = 0;
18864
- if (e.nativeEvent && df(e.nativeEvent) ? (n = e.nativeEvent.clientX, r = e.nativeEvent.clientY) : e.nativeEvent && uf(e.nativeEvent) && (n = e.nativeEvent.touches[0].clientX, r = e.nativeEvent.touches[0].clientY), !(this.props.onResizeStart && this.resizable && this.props.onResizeStart(e, t, this.resizable) === !1)) {
18881
+ if (e.nativeEvent && uf(e.nativeEvent) ? (n = e.nativeEvent.clientX, r = e.nativeEvent.clientY) : e.nativeEvent && lf(e.nativeEvent) && (n = e.nativeEvent.touches[0].clientX, r = e.nativeEvent.touches[0].clientY), !(this.props.onResizeStart && this.resizable && this.props.onResizeStart(e, t, this.resizable) === !1)) {
18865
18882
  this.props.size && (this.props.size.height !== void 0 && this.props.size.height !== this.state.height && this.setState({ height: this.props.size.height }), this.props.size.width !== void 0 && this.props.size.width !== this.state.width && this.setState({ width: this.props.size.width })), this.ratio = typeof this.props.lockAspectRatio == "number" ? this.props.lockAspectRatio : this.size.width / this.size.height;
18866
18883
  var i, a = this.window.getComputedStyle(this.resizable);
18867
18884
  if (a.flexBasis !== "auto") {
@@ -18880,7 +18897,7 @@ var Jd = Rt(({ token: e, css: t }) => ({
18880
18897
  height: this.size.height
18881
18898
  },
18882
18899
  isResizing: !0,
18883
- backgroundStyle: af(af({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(e.target).cursor || "auto" }),
18900
+ backgroundStyle: rf(rf({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(e.target).cursor || "auto" }),
18884
18901
  direction: t,
18885
18902
  flexBasis: i
18886
18903
  };
@@ -18890,13 +18907,13 @@ var Jd = Rt(({ token: e, css: t }) => ({
18890
18907
  }, t.prototype.onMouseMove = function(e) {
18891
18908
  var t = this;
18892
18909
  if (!(!this.state.isResizing || !this.resizable || !this.window)) {
18893
- if (this.window.TouchEvent && uf(e)) try {
18910
+ if (this.window.TouchEvent && lf(e)) try {
18894
18911
  e.preventDefault(), e.stopPropagation();
18895
18912
  } catch {}
18896
- var n = this.props, r = n.maxWidth, i = n.maxHeight, a = n.minWidth, o = n.minHeight, s = uf(e) ? e.touches[0].clientX : e.clientX, c = uf(e) ? e.touches[0].clientY : e.clientY, l = this.state, u = l.direction, d = l.original, f = l.width, p = l.height, m = this.getParentSize(), h = hf(m, this.window.innerWidth, this.window.innerHeight, r, i, a, o);
18913
+ var n = this.props, r = n.maxWidth, i = n.maxHeight, a = n.minWidth, o = n.minHeight, s = lf(e) ? e.touches[0].clientX : e.clientX, c = lf(e) ? e.touches[0].clientY : e.clientY, l = this.state, u = l.direction, d = l.original, f = l.width, p = l.height, m = this.getParentSize(), h = mf(m, this.window.innerWidth, this.window.innerHeight, r, i, a, o);
18897
18914
  r = h.maxWidth, i = h.maxHeight, a = h.minWidth, o = h.minHeight;
18898
18915
  var g = this.calculateNewSizeFromDirection(s, c), _ = g.newHeight, v = g.newWidth, y = this.calculateNewMaxFromBoundary(r, i);
18899
- this.props.snap && this.props.snap.x && (v = ff(v, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (_ = ff(_, this.props.snap.y, this.props.snapGap));
18916
+ this.props.snap && this.props.snap.x && (v = df(v, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (_ = df(_, this.props.snap.y, this.props.snapGap));
18900
18917
  var b = this.calculateNewSizeFromAspectRatio(v, _, {
18901
18918
  width: y.maxWidth,
18902
18919
  height: y.maxHeight
@@ -18905,7 +18922,7 @@ var Jd = Rt(({ token: e, css: t }) => ({
18905
18922
  height: o
18906
18923
  });
18907
18924
  if (v = b.newWidth, _ = b.newHeight, this.props.grid) {
18908
- var x = cf(v, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), S = cf(_, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), C = this.props.snapGap || 0, w = C === 0 || Math.abs(x - v) <= C ? x : v, T = C === 0 || Math.abs(S - _) <= C ? S : _;
18925
+ var x = sf(v, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), S = sf(_, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), C = this.props.snapGap || 0, w = C === 0 || Math.abs(x - v) <= C ? x : v, T = C === 0 || Math.abs(S - _) <= C ? S : _;
18909
18926
  v = w, _ = T;
18910
18927
  }
18911
18928
  var E = {
@@ -18953,7 +18970,7 @@ var Jd = Rt(({ token: e, css: t }) => ({
18953
18970
  height: this.props.size.height ?? "auto"
18954
18971
  }), this.unbindEvents(), this.setState({
18955
18972
  isResizing: !1,
18956
- backgroundStyle: af(af({}, this.state.backgroundStyle), { cursor: "auto" })
18973
+ backgroundStyle: rf(rf({}, this.state.backgroundStyle), { cursor: "auto" })
18957
18974
  }));
18958
18975
  }, t.prototype.updateSize = function(e) {
18959
18976
  this.setState({
@@ -18966,7 +18983,7 @@ var Jd = Rt(({ token: e, css: t }) => ({
18966
18983
  className: o,
18967
18984
  style: a,
18968
18985
  children: Object.keys(n).map(function(t) {
18969
- return n[t] === !1 ? null : H(nf, {
18986
+ return n[t] === !1 ? null : H(tf, {
18970
18987
  direction: t,
18971
18988
  onResizeStart: e.onResizeStart,
18972
18989
  replaceStyles: r && r[t],
@@ -18977,8 +18994,8 @@ var Jd = Rt(({ token: e, css: t }) => ({
18977
18994
  }) : null;
18978
18995
  }, t.prototype.render = function() {
18979
18996
  var e = this, t = Object.keys(this.props).reduce(function(t, n) {
18980
- return _f.indexOf(n) === -1 && (t[n] = e.props[n]), t;
18981
- }, {}), n = af(af(af({
18997
+ return gf.indexOf(n) === -1 && (t[n] = e.props[n]), t;
18998
+ }, {}), n = rf(rf(rf({
18982
18999
  position: "relative",
18983
19000
  userSelect: this.state.isResizing ? "none" : "auto"
18984
19001
  }, this.props.style), this.sizeStyle), {
@@ -18989,7 +19006,7 @@ var Jd = Rt(({ token: e, css: t }) => ({
18989
19006
  boxSizing: "border-box",
18990
19007
  flexShrink: 0
18991
19008
  });
18992
- return this.state.flexBasis && (n.flexBasis = this.state.flexBasis), U(this.props.as || "div", af({
19009
+ return this.state.flexBasis && (n.flexBasis = this.state.flexBasis), U(this.props.as || "div", rf({
18993
19010
  style: n,
18994
19011
  className: this.props.className
18995
19012
  }, t, {
@@ -19043,11 +19060,11 @@ Y(G)`
19043
19060
  background: none !important;
19044
19061
  }
19045
19062
  `;
19046
- var bf = A((e, t) => {
19063
+ var yf = A((e, t) => {
19047
19064
  let { defaultWidth: n, defaultHeight: r = 180, minHeight: i = 180, maxHeight: a = 400, children: s, onReSize: c, onReSizeStop: l, ...u } = e;
19048
19065
  o();
19049
19066
  let d = z(null);
19050
- return I(t, () => ({ container: d.current })), /* @__PURE__ */ H(yf, {
19067
+ return I(t, () => ({ container: d.current })), /* @__PURE__ */ H(vf, {
19051
19068
  ref: d,
19052
19069
  enable: { top: !0 },
19053
19070
  defaultSize: {
@@ -19062,7 +19079,7 @@ var bf = A((e, t) => {
19062
19079
  ...u,
19063
19080
  children: s
19064
19081
  });
19065
- }), xf = Y.div`
19082
+ }), bf = Y.div`
19066
19083
  .ant-tabs {
19067
19084
  .ant-tabs-tab {
19068
19085
  positon: relative;
@@ -19122,11 +19139,11 @@ var bf = A((e, t) => {
19122
19139
  color: var(--ant-color-text);
19123
19140
  }
19124
19141
  }
19125
- `, Sf = ({ terminals: e, currentActive: t, onClose: n }) => {
19142
+ `, xf = ({ terminals: e, currentActive: t, onClose: n }) => {
19126
19143
  let [r, i] = B(t || e[0]?.url || ""), [a, o] = B(300), s = E.useRef(null), c = R(() => e.map((e) => ({
19127
19144
  key: e.url,
19128
19145
  label: e.name,
19129
- children: /* @__PURE__ */ H(Zd, {
19146
+ children: /* @__PURE__ */ H(Xd, {
19130
19147
  height: a,
19131
19148
  url: e.url
19132
19149
  })
@@ -19136,10 +19153,10 @@ var bf = A((e, t) => {
19136
19153
  }, 200);
19137
19154
  return F(() => {
19138
19155
  t && i(t);
19139
- }, [t]), /* @__PURE__ */ H(bf, {
19156
+ }, [t]), /* @__PURE__ */ H(yf, {
19140
19157
  onReSize: l,
19141
19158
  ref: s,
19142
- children: /* @__PURE__ */ H(xf, { children: /* @__PURE__ */ H(At, {
19159
+ children: /* @__PURE__ */ H(bf, { children: /* @__PURE__ */ H(At, {
19143
19160
  type: "editable-card",
19144
19161
  hideAdd: !0,
19145
19162
  activeKey: r,
@@ -19155,11 +19172,11 @@ var bf = A((e, t) => {
19155
19172
  }) }
19156
19173
  }) })
19157
19174
  });
19158
- }, Cf = ({ terminals: e, open: t, onClose: n, currentActive: r }) => /* @__PURE__ */ H(Sf, {
19175
+ }, Sf = ({ terminals: e, open: t, onClose: n, currentActive: r }) => /* @__PURE__ */ H(xf, {
19159
19176
  terminals: e,
19160
19177
  currentActive: r,
19161
19178
  onClose: n
19162
- }), wf = Y.ul`
19179
+ }), Cf = Y.ul`
19163
19180
  list-style: none;
19164
19181
  padding-left: 0;
19165
19182
  margin: 0;
@@ -19177,16 +19194,16 @@ var bf = A((e, t) => {
19177
19194
  display: inline-flex;
19178
19195
  }
19179
19196
  }
19180
- `, Tf = (e) => {
19197
+ `, wf = (e) => {
19181
19198
  let t = o(), { list: n } = e;
19182
- return /* @__PURE__ */ H(wf, { children: n.map((e, n) => /* @__PURE__ */ U("li", { children: [/* @__PURE__ */ U("span", {
19199
+ return /* @__PURE__ */ H(Cf, { children: n.map((e, n) => /* @__PURE__ */ U("li", { children: [/* @__PURE__ */ U("span", {
19183
19200
  className: "title",
19184
19201
  children: [e.title?.locale ? t.formatMessage({ id: e.title?.text || "" }) : e.title, ":"]
19185
19202
  }), /* @__PURE__ */ H("span", {
19186
19203
  className: "content",
19187
19204
  children: t.formatMessage({ id: e.tips })
19188
19205
  })] }, n)) });
19189
- }, Ef = Y.div`
19206
+ }, Tf = Y.div`
19190
19207
  .ant-transfer-section {
19191
19208
  width: 100%;
19192
19209
  height: 300px;
@@ -19243,12 +19260,12 @@ var bf = A((e, t) => {
19243
19260
  .ant-pagination {
19244
19261
  justify-content: center;
19245
19262
  }
19246
- `, Df = (e) => {
19263
+ `, Ef = (e) => {
19247
19264
  let t = o(), n = (e) => e.selectedCount ? /* @__PURE__ */ H("span", {
19248
19265
  style: { color: "var(--ant-color-text-secondary)" },
19249
19266
  children: t.formatMessage({ id: "common.select.count" }, { count: e.selectedCount })
19250
19267
  }) : null;
19251
- return /* @__PURE__ */ H(Ef, { children: /* @__PURE__ */ H(Mt, {
19268
+ return /* @__PURE__ */ H(Tf, { children: /* @__PURE__ */ H(Mt, {
19252
19269
  ...e,
19253
19270
  selectAllLabels: e.selectAllLabels || [n, n],
19254
19271
  selectionsIcon: /* @__PURE__ */ H(Ae, { style: {
@@ -19256,7 +19273,7 @@ var bf = A((e, t) => {
19256
19273
  marginBottom: 3
19257
19274
  } })
19258
19275
  }) });
19259
- }, Of = A((e, t) => {
19276
+ }, Df = A((e, t) => {
19260
19277
  let { minHeight: n = 50, header: r, variant: i = "bordered", children: a, setCollapsed: o } = e, [s, c] = B(!0), l = z(null);
19261
19278
  F(() => {
19262
19279
  l?.current && (l.current.style.minHeight = s ? `${l.current.scrollHeight || 0}px` : "0px");
@@ -19289,7 +19306,7 @@ var bf = A((e, t) => {
19289
19306
  })
19290
19307
  })]
19291
19308
  });
19292
- }), kf = (e) => {
19309
+ }), Of = (e) => {
19293
19310
  let [t, n] = Ft.useMessage(), { icon: r, accept: i, type: a, size: s = "large", shape: c = "circle" } = e, l = o(), u = (e) => !1, d = (n) => e.maxFileSize && n.size > e.maxFileSize ? (t.open({
19294
19311
  type: "warning",
19295
19312
  content: l.formatMessage({ id: "playground.uploadfile.sizeError" }, { size: `${b(e.maxFileSize)}` })
@@ -19326,7 +19343,7 @@ var bf = A((e, t) => {
19326
19343
  })
19327
19344
  }), n]
19328
19345
  });
19329
- }, Af = A((e, t) => {
19346
+ }, kf = A((e, t) => {
19330
19347
  let { lang: n, value: r, config: i, defaultLang: a, height: o = 380, theme: s = "vs-dark", header: c, variant: l = "borderless", placeholder: u } = e, d = z(null), f = (e) => {
19331
19348
  e.languages.typescript.javascriptDefaults.setDiagnosticsOptions({
19332
19349
  noSemanticValidation: !1,
@@ -19381,4 +19398,4 @@ var bf = A((e, t) => {
19381
19398
  });
19382
19399
  });
19383
19400
  //#endregion
19384
- export { dn as Access, gn as AlertBlockInfo, fn as AlertInfo, yn as AudioAnimation, Sn as AudioPlayer, mo as AutoComplete, jn as AutoImage, f as AutoTooltip, Ho as BarChart, Co as BaseSelect, mi as BibtexViewer, gi as CardWrapper, Bs as Cascader, bd as CellContent, Ro as Chart, xi as CheckButtons, Hs as Checkbox, Us as CheckboxField, wi as CollapseContainer, Di as CollapsePanel, wa as ColumnSettings, Aa as ColumnWrapper, Ia as CommandViewer, Ra as ContentWrapper, u as CopyButton, un as CoreUIProvider, Va as DeleteModal, Ua as DividerLine, Ga as DocLink, ki as DropdownActions, qa as DropdownButtons, Ja as DynamicForm, C as EditorWrap, Zo as ErrorMessage, Ws as FieldComponent, bl as FilterBar, $o as FilterForm, vl as FiltersButton, es as FormButtons, Rs as FormDrawer, Is as GSDrawer, Wo as GaugeChart, ic as GrafanaIcon, Go as HBarChart, Ti as HeadlessCollapse, p as HighlightCode, To as INPUT_WIDTH, Q as IconFont, gc as ImageEditor, Nc as InfiniteScroller, Ic as InfiniteScrollerProvider, ed as InfoColumn, xo as Input, go as InputNumber, _o as InputSearch, Rc as LabelCell, Ya as LabelInfo, Wc as LabelSelector, Gc as LabelSelectorProvider, qo as LineChart, Yc as ListInput, Fo as ListMap, tl as LogsViewer, rl as MetadataList, Jo as MixLineBarChart, ns as ModalFooter, al as MoreButton, Xs as MultipleSelect, ul as NoResult, l as OverlayScroller, hl as PageBox, fl as PageBreadcrumb, ml as PageContainerInner, $c as PageSize, yl as PageTools, vo as Password, Sl as Popover, Cl as ProgressBar, wl as RadioButtons, Tl as ResizeContainer, bf as ResizePanel, fd as RowChildren, ec as RowTextarea, Yo as ScatterChart, Ol as ScrollSpyTabs, Pl as ScrollerModal, Pa as SegmentLine, wo as Select, Vl as SelectPanel, Ul as Shortcut, On as SimpleAudio, bi as SimpleCard, Yu as SimpleOverlay, Ys as SimpleSelect, $u as SimpleTable, fi as SingleImage, Do as Slider, Qs as SmallCloseButton, rd as SpeechContent, od as StatusTag, cd as SubDrawer, ko as Switch, rc as SwitchInput, Od as Table, kd as TableProvider, Ad as TableRowProvider, jd as TagsWrapper, zd as TemplateCard, Wd as TemplateCardList, Vd as TemplateCardSkeleton, Cf as TerminalTabs, bo as Textarea, Nd as ThemeTag, $s as ThumbImage, Tf as TooltipList, c as TooltipOverlayScroller, Df as Transfer, Of as TransitionWrapper, kf as UploadAudio, ji as UploadImage, Af as ViewerEditor, Zd as XTerminal, zi as config, ac as icons, Sc as processImage, ga as useAccess, Oi as useActions, Ni as useAddImage, Pi as useAppUtils, Fi as useBodyScroll, Ri as useChunkFetch, Xi as useChunkRequest, Zi as useContainerScroll, a as useCoreUIContext, va as useCoreUISlots, ya as useCurrentUser, Qi as useDeferredRequest, ia as useDownloadLogs, ea as useDownloadStream, aa as useExpandedRowKeys, kl as useFinishFailed, o as useIntl, d as useOverlayScroller, sa as useQueryData, sa as useRequest, oa as useQueryDataList, ca as useRequestToken, la as useResponsive, Al as useScrollActiveChange, Fc as useScrollerContext, ba as useTableFetch, fa as useTableMultiSort, ua as useTableRowSelection, da as useTableSort, Ed as useTableSorter, pa as useUpdateChunkedList, Io as useValidateFields, ma as useWatchList, ha as useWindowResize, Ea as useWrapperContext, S as utils };
19401
+ export { dn as Access, gn as AlertBlockInfo, fn as AlertInfo, yn as AudioAnimation, Sn as AudioPlayer, mo as AutoComplete, jn as AutoImage, f as AutoTooltip, Ho as BarChart, Co as BaseSelect, mi as BibtexViewer, gi as CardWrapper, Bs as Cascader, yd as CellContent, Ro as Chart, xi as CheckButtons, Hs as Checkbox, Us as CheckboxField, wi as CollapseContainer, Di as CollapsePanel, wa as ColumnSettings, Aa as ColumnWrapper, Ia as CommandViewer, Ra as ContentWrapper, u as CopyButton, un as CoreUIProvider, Va as DeleteModal, Ua as DividerLine, Ga as DocLink, Ai as DropdownActions, qa as DropdownButtons, Ja as DynamicForm, C as EditorWrap, Zo as ErrorMessage, Ws as FieldComponent, bl as FilterBar, $o as FilterForm, vl as FiltersButton, es as FormButtons, Rs as FormDrawer, Is as GSDrawer, Wo as GaugeChart, ic as GrafanaIcon, Go as HBarChart, Ti as HeadlessCollapse, p as HighlightCode, To as INPUT_WIDTH, Q as IconFont, gc as ImageEditor, Nc as InfiniteScroller, Ic as InfiniteScrollerProvider, $u as InfoColumn, xo as Input, go as InputNumber, _o as InputSearch, Rc as LabelCell, Ya as LabelInfo, Wc as LabelSelector, Gc as LabelSelectorProvider, qo as LineChart, Yc as ListInput, Fo as ListMap, tl as LogsViewer, rl as MetadataList, Jo as MixLineBarChart, ns as ModalFooter, al as MoreButton, Xs as MultipleSelect, ul as NoResult, l as OverlayScroller, hl as PageBox, fl as PageBreadcrumb, ml as PageContainerInner, $c as PageSize, yl as PageTools, vo as Password, Sl as Popover, Cl as ProgressBar, wl as RadioButtons, Tl as ResizeContainer, yf as ResizePanel, dd as RowChildren, ec as RowTextarea, Yo as ScatterChart, Ol as ScrollSpyTabs, Nl as ScrollerModal, Pa as SegmentLine, wo as Select, Bl as SelectPanel, Hl as Shortcut, On as SimpleAudio, bi as SimpleCard, Ju as SimpleOverlay, Ys as SimpleSelect, Qu as SimpleTable, fi as SingleImage, Do as Slider, Qs as SmallCloseButton, nd as SpeechContent, ad as StatusTag, sd as SubDrawer, ko as Switch, rc as SwitchInput, Dd as Table, Od as TableProvider, kd as TableRowProvider, Ad as TagsWrapper, Rd as TemplateCard, Ud as TemplateCardList, Bd as TemplateCardSkeleton, Sf as TerminalTabs, bo as Textarea, Md as ThemeTag, $s as ThumbImage, wf as TooltipList, c as TooltipOverlayScroller, Ef as Transfer, Df as TransitionWrapper, Of as UploadAudio, Mi as UploadImage, kf as ViewerEditor, Xd as XTerminal, Bi as config, ac as icons, Sc as processImage, ki as useAccess, Oi as useActions, Pi as useAddImage, Fi as useAppUtils, Ii as useBodyScroll, zi as useChunkFetch, Zi as useChunkRequest, Ea as useColumnWrapperContext, Ea as useWrapperContext, Qi as useContainerScroll, a as useCoreUIContext, va as useCoreUISlots, ya as useCurrentUser, $i as useDeferredRequest, aa as useDownloadLogs, ta as useDownloadStream, oa as useExpandedRowKeys, kl as useFinishFailed, o as useIntl, d as useOverlayScroller, ca as useQueryData, ca as useRequest, sa as useQueryDataList, la as useRequestToken, ua as useResponsive, Al as useScrollActiveChange, Fc as useScrollerContext, ba as useTableFetch, pa as useTableMultiSort, da as useTableRowSelection, fa as useTableSort, Td as useTableSorter, ma as useUpdateChunkedList, Io as useValidateFields, ha as useWatchList, ga as useWindowResize, S as utils };