@kingsimba/nc-ui 0.1.27 → 0.1.29

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.js CHANGED
@@ -1,14 +1,13 @@
1
- var et = Object.defineProperty;
2
- var tt = (e, t, n) => t in e ? et(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var q = (e, t, n) => tt(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { jsx as s, jsxs as k, Fragment as nt } from "react/jsx-runtime";
5
- import { d as xe, E as rt, R as ot, T as st, g as it, V as ct, b as at, a as lt, c as dt } from "./GeneratedIcons-HFZmBTBT.js";
6
- import ke, { useState as E, useRef as W, useMemo as me, useEffect as B, createContext as se, useContext as Q, Children as ut, isValidElement as pt, forwardRef as ft, useImperativeHandle as ht, useCallback as O, Suspense as mt } from "react";
7
- import { createPortal as ue } from "react-dom";
1
+ var tt = Object.defineProperty;
2
+ var nt = (e, t, n) => t in e ? tt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var q = (e, t, n) => nt(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { jsx as s, jsxs as k, Fragment as rt } from "react/jsx-runtime";
5
+ import { d as ke, E as ot, R as st, T as it, g as ct, V as at, b as lt, a as dt, c as ut } from "./GeneratedIcons-HFZmBTBT.js";
6
+ import Ne, { useState as E, useRef as H, useMemo as be, useEffect as B, createContext as ie, useContext as Z, Children as pt, isValidElement as ft, forwardRef as ht, useImperativeHandle as mt, useCallback as O, Suspense as gt } from "react";
7
+ import { createPortal as pe } from "react-dom";
8
8
  import { useTranslation as U } from "react-i18next";
9
- import { c as gt } from "./YamlTextArea-ee1d1TLc.js";
10
- import { Y as fr } from "./YamlTextArea-ee1d1TLc.js";
11
9
  import bt from "i18next";
10
+ import { c as vt } from "./clsx-OuTLNxxd.js";
12
11
  function He({
13
12
  size: e = "default",
14
13
  color: t,
@@ -38,7 +37,7 @@ function He({
38
37
  );
39
38
  return n ? /* @__PURE__ */ s("div", { className: "nc-activity-indicator-overlay", children: o }) : o;
40
39
  }
41
- function K({ variant: e = "default", block: t, size: n = "default", appearance: r = "default", className: o, disabled: i, textSelectable: a, loading: c, onClick: l, children: p, ...f }) {
40
+ function K({ variant: e = "default", block: t, size: n = "default", appearance: r = "default", className: o, disabled: i, textSelectable: a, loading: c, onClick: l, children: u, ...f }) {
42
41
  const v = [
43
42
  "nc-button",
44
43
  e !== "default" ? `nc-${e}` : "",
@@ -56,14 +55,14 @@ function K({ variant: e = "default", block: t, size: n = "default", appearance:
56
55
  {
57
56
  className: v,
58
57
  disabled: i || c,
59
- onClick: (h) => {
58
+ onClick: (m) => {
60
59
  if (!c) {
61
60
  if (a) {
62
61
  const y = window.getSelection();
63
62
  if (y && y.toString().length > 0)
64
63
  return;
65
64
  }
66
- l == null || l(h);
65
+ l == null || l(m);
67
66
  }
68
67
  },
69
68
  ...f,
@@ -76,19 +75,19 @@ function K({ variant: e = "default", block: t, size: n = "default", appearance:
76
75
  color: r === "transparent" || e !== "default" && e !== "ghost" ? "white" : void 0
77
76
  }
78
77
  ),
79
- p
78
+ u
80
79
  ]
81
80
  }
82
81
  );
83
82
  }
84
- const vt = {
83
+ const wt = {
85
84
  info: "primary",
86
85
  success: "success",
87
86
  warning: "warning",
88
87
  error: "danger",
89
88
  danger: "danger"
90
89
  };
91
- function Tn({
90
+ function zn({
92
91
  code: e,
93
92
  text: t,
94
93
  type: n,
@@ -99,13 +98,13 @@ function Tn({
99
98
  className: c = "",
100
99
  style: l
101
100
  }) {
102
- const p = i ?? /* @__PURE__ */ k(nt, { children: [
101
+ const u = i ?? /* @__PURE__ */ k(rt, { children: [
103
102
  e !== void 0 && /* @__PURE__ */ s("span", { className: "nc-alert-code", children: e }),
104
103
  t
105
104
  ] });
106
105
  return /* @__PURE__ */ k("div", { className: `nc-alert nc-${n} ${c}`.trim(), style: l, children: [
107
106
  /* @__PURE__ */ k("div", { className: "nc-alert-main", children: [
108
- /* @__PURE__ */ s("div", { className: `nc-alert-message nc-${n}`, children: p }),
107
+ /* @__PURE__ */ s("div", { className: `nc-alert-message nc-${n}`, children: u }),
109
108
  a && /* @__PURE__ */ s(
110
109
  "button",
111
110
  {
@@ -113,7 +112,7 @@ function Tn({
113
112
  className: "nc-alert-close",
114
113
  "aria-label": "Close alert",
115
114
  onClick: a,
116
- children: /* @__PURE__ */ s(xe, { size: 16 })
115
+ children: /* @__PURE__ */ s(ke, { size: 16 })
117
116
  }
118
117
  )
119
118
  ] }),
@@ -121,85 +120,89 @@ function Tn({
121
120
  K,
122
121
  {
123
122
  size: "small",
124
- variant: r.variant ?? vt[n],
123
+ variant: r.variant ?? wt[n],
125
124
  onClick: o,
126
125
  children: r.text
127
126
  }
128
127
  ) })
129
128
  ] });
130
129
  }
131
- function zn({
130
+ function Pn({
132
131
  percentage: e = 0.5,
133
132
  status: t = "discharging",
134
133
  darkMode: n = !1,
135
134
  colored: r = !1
136
135
  }) {
137
- const o = Math.max(0, Math.min(1, Number(e) || 0));
138
- let i;
139
- r ? o < 0.1 ? i = "var(--nc-danger)" : o < 0.2 ? i = "var(--nc-warning)" : i = "var(--nc-success)" : i = n ? "#ffffff" : "#000000";
140
- const a = n ? "rgba(255, 255, 255, 0.5)" : "rgba(0, 0, 0, 0.2)", c = 24, l = 14, p = 2, f = 0, v = 12, d = 0, h = 0, y = 0, g = c, w = l, A = w - d * 2, b = g - d * 2, u = Math.max(1, Math.min(4, w / 4)), m = o === 0 ? 0 : 0.05 + o * 0.95, N = c + p + v, S = 20, z = 0.65, T = Math.max(l, S * z), x = c + p + 1, R = (l - S * z) / 2;
136
+ const o = Math.max(0, Math.min(1, Number(e) || 0)), i = o === 0 ? "-" : String(Math.round(o * 100));
137
+ let a;
138
+ r ? o < 0.1 ? a = "var(--nc-danger)" : o < 0.2 ? a = "var(--nc-warning)" : a = "var(--nc-success)" : a = n ? "#ffffff" : "#000000";
139
+ const c = "var(--nc-battery-shell-bg)", l = 24, u = 14, f = 2, v = 0, d = 12, m = 0, y = 0, w = 0, g = l, N = u, b = N - m * 2, p = g - m * 2, h = Math.max(1, Math.min(4, N / 4)), A = o === 0 ? 0 : 0.05 + o * 0.95, C = l + f + d, z = 20, T = 0.65, x = Math.max(u, z * T), I = l + f + 1, S = (u - z * T) / 2;
141
140
  return /* @__PURE__ */ k(
142
141
  "svg",
143
142
  {
144
143
  className: "nc-battery",
145
- width: N,
146
- height: T,
147
- viewBox: `0 0 ${N} ${T}`,
144
+ width: C,
145
+ height: x,
146
+ viewBox: `0 0 ${C} ${x}`,
148
147
  role: "img",
149
- "aria-label": `Battery ${o === 0 ? "-" : Math.round(o * 100) + "%"} ${t}`,
148
+ "aria-label": `Battery ${i === "-" ? "-" : `${i}%`} ${t}`,
150
149
  children: [
151
- /* @__PURE__ */ k("defs", { children: [
152
- /* @__PURE__ */ s("mask", { id: `nc-battery-fill-mask-${o}`, children: /* @__PURE__ */ s("rect", { x: "0", y: "0", width: b * m, height: A, fill: "white" }) }),
153
- /* @__PURE__ */ k("mask", { id: `nc-battery-text-mask-${o}`, children: [
154
- /* @__PURE__ */ s("rect", { x: "0", y: "0", width: N, height: T, fill: "white" }),
155
- /* @__PURE__ */ s("text", { x: h + g / 2, y: l - 3, fontSize: 11, fontWeight: "bold", fill: "black", textAnchor: "middle", children: o === 0 ? "-" : Math.round(o * 100) })
156
- ] })
157
- ] }),
158
- /* @__PURE__ */ k("g", { mask: `url(#nc-battery-text-mask-${o})`, children: [
159
- /* @__PURE__ */ s(
160
- "rect",
161
- {
162
- x: h,
163
- y,
164
- rx: u,
165
- ry: u,
166
- width: g,
167
- height: w,
168
- fill: a
169
- }
170
- ),
171
- /* @__PURE__ */ s(
172
- "rect",
173
- {
174
- x: h + d,
175
- y: y + d,
176
- width: b,
177
- height: A,
178
- fill: i,
179
- rx: u,
180
- ry: u,
181
- mask: `url(#nc-battery-fill-mask-${o})`
182
- }
183
- ),
184
- /* @__PURE__ */ s(
185
- "rect",
186
- {
187
- x: c + f,
188
- y: l * 0.26,
189
- width: p,
190
- height: l * 0.48,
191
- rx: 0.8,
192
- ry: 0.8,
193
- fill: o === 1 ? i : a
194
- }
195
- ),
196
- t === "charging" ? /* @__PURE__ */ s("g", { transform: `translate(${x}, ${R}) scale(${z})`, fill: i, children: /* @__PURE__ */ s("path", { d: "M10 0 L2 11 H8 L5 20 L14 8 H8 L10 0 Z" }) }) : null
197
- ] })
150
+ /* @__PURE__ */ s("defs", { children: /* @__PURE__ */ s("mask", { id: `nc-battery-fill-mask-${o}`, children: /* @__PURE__ */ s("rect", { x: "0", y: "0", width: p * A, height: b, fill: "white" }) }) }),
151
+ /* @__PURE__ */ s(
152
+ "rect",
153
+ {
154
+ x: y,
155
+ y: w,
156
+ rx: h,
157
+ ry: h,
158
+ width: g,
159
+ height: N,
160
+ fill: c
161
+ }
162
+ ),
163
+ /* @__PURE__ */ s(
164
+ "rect",
165
+ {
166
+ x: y + m,
167
+ y: w + m,
168
+ width: p,
169
+ height: b,
170
+ fill: a,
171
+ rx: h,
172
+ ry: h,
173
+ mask: `url(#nc-battery-fill-mask-${o})`
174
+ }
175
+ ),
176
+ /* @__PURE__ */ s(
177
+ "text",
178
+ {
179
+ x: y + g / 2,
180
+ y: u - 3,
181
+ fontSize: 11,
182
+ fontWeight: "bold",
183
+ fill: "var(--nc-battery-text-contrast)",
184
+ textAnchor: "middle",
185
+ children: i
186
+ }
187
+ ),
188
+ /* @__PURE__ */ s(
189
+ "rect",
190
+ {
191
+ x: l + v,
192
+ y: u * 0.26,
193
+ width: f,
194
+ height: u * 0.48,
195
+ rx: 0.8,
196
+ ry: 0.8,
197
+ fill: o === 1 ? a : c
198
+ }
199
+ ),
200
+ t === "charging" ? /* @__PURE__ */ s("g", { transform: `translate(${I}, ${S}) scale(${T})`, fill: a, children: /* @__PURE__ */ s("path", { d: "M10 0 L2 11 H8 L5 20 L14 8 H8 L10 0 Z" }) }) : null
198
201
  ]
199
202
  }
200
203
  );
201
204
  }
202
- function Pn({
205
+ function Bn({
203
206
  value: e,
204
207
  onChange: t,
205
208
  options: n,
@@ -221,7 +224,7 @@ function Pn({
221
224
  );
222
225
  }) });
223
226
  }
224
- function wt({ size: e }) {
227
+ function yt({ size: e }) {
225
228
  return /* @__PURE__ */ s("svg", { className: `nc-checkbox-icon ${e === "small" ? "nc-small" : ""}`, viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ s(
226
229
  "path",
227
230
  {
@@ -233,15 +236,15 @@ function wt({ size: e }) {
233
236
  }
234
237
  ) });
235
238
  }
236
- function Ln({ checked: e, onChange: t, disabled: n, label: r, size: o = "default", labelColor: i, style: a, className: c = "" }) {
239
+ function Dn({ checked: e, onChange: t, disabled: n, label: r, size: o = "default", labelColor: i, style: a, className: c = "" }) {
237
240
  const l = o === "small";
238
241
  return /* @__PURE__ */ k(
239
242
  "label",
240
243
  {
241
244
  className: `nc-checkbox-label ${l ? "nc-small" : ""} ${n ? "nc-disabled" : ""} ${c}`.trim(),
242
245
  style: a,
243
- onClick: (p) => {
244
- n || (p.preventDefault(), t(!e));
246
+ onClick: (u) => {
247
+ n || (u.preventDefault(), t(!e));
245
248
  },
246
249
  children: [
247
250
  /* @__PURE__ */ s(
@@ -251,10 +254,10 @@ function Ln({ checked: e, onChange: t, disabled: n, label: r, size: o = "default
251
254
  "aria-checked": e,
252
255
  tabIndex: 0,
253
256
  className: `nc-checkbox-box ${l ? "nc-small" : ""} ${e ? "nc-checked" : ""}`,
254
- onKeyDown: (p) => {
255
- n || (p.key === "Enter" || p.key === " ") && (p.preventDefault(), t(!e));
257
+ onKeyDown: (u) => {
258
+ n || (u.key === "Enter" || u.key === " ") && (u.preventDefault(), t(!e));
256
259
  },
257
- children: e && /* @__PURE__ */ s(wt, { size: o })
260
+ children: e && /* @__PURE__ */ s(yt, { size: o })
258
261
  }
259
262
  ),
260
263
  r && /* @__PURE__ */ s("span", { className: "nc-checkbox-text", style: i ? { color: i } : void 0, children: r })
@@ -262,8 +265,8 @@ function Ln({ checked: e, onChange: t, disabled: n, label: r, size: o = "default
262
265
  }
263
266
  );
264
267
  }
265
- function yt({ option: e, onChange: t, selected: n, highlighted: r, small: o }) {
266
- const i = W(null), { t: a } = U();
268
+ function xt({ option: e, onChange: t, selected: n, highlighted: r, small: o }) {
269
+ const i = H(null), { t: a } = U();
267
270
  return B(() => {
268
271
  r && i.current && i.current.scrollIntoView({ block: "nearest" });
269
272
  }, [r]), /* @__PURE__ */ k(
@@ -289,7 +292,7 @@ function yt({ option: e, onChange: t, selected: n, highlighted: r, small: o }) {
289
292
  }
290
293
  );
291
294
  }
292
- function xt({
295
+ function kt({
293
296
  isOpen: e,
294
297
  options: t,
295
298
  onSelect: n,
@@ -299,23 +302,23 @@ function xt({
299
302
  small: a,
300
303
  highlightedIndex: c = -1
301
304
  }) {
302
- const [l, p] = E({ top: 0, left: 0, width: 0 }), [f, v] = E(o), { t: d } = U();
305
+ const [l, u] = E({ top: 0, left: 0, width: 0 }), [f, v] = E(o), { t: d } = U();
303
306
  if (B(() => {
304
307
  if (e && i.current) {
305
308
  const y = i.current.getBoundingClientRect();
306
- let g = o;
309
+ let w = o;
307
310
  if (o === "bottom") {
308
- const w = window.innerHeight - y.bottom, A = y.top;
309
- w < 320 && A > w && (g = "top");
311
+ const g = window.innerHeight - y.bottom, N = y.top;
312
+ g < 320 && N > g && (w = "top");
310
313
  }
311
- v(g), p({
312
- top: g === "top" ? y.top - 4 : y.bottom + 4,
314
+ v(w), u({
315
+ top: w === "top" ? y.top - 4 : y.bottom + 4,
313
316
  left: y.left,
314
317
  width: y.width
315
318
  });
316
319
  }
317
320
  }, [e, i, o]), !e) return null;
318
- const h = /* @__PURE__ */ s(
321
+ const m = /* @__PURE__ */ s(
319
322
  "div",
320
323
  {
321
324
  className: "nc-combo-dropdown",
@@ -329,12 +332,12 @@ function xt({
329
332
  maxHeight: 300,
330
333
  overflowY: "auto"
331
334
  },
332
- children: t.length === 0 ? /* @__PURE__ */ s("div", { className: `nc-combo-dropdown-option nc-no-results ${a ? "nc-small" : ""}`, children: d("common.noResults") }) : t.map((y, g) => /* @__PURE__ */ s(yt, { option: y, onChange: n, selected: y.value === r, highlighted: g === c, small: a }, y.value))
335
+ children: t.length === 0 ? /* @__PURE__ */ s("div", { className: `nc-combo-dropdown-option nc-no-results ${a ? "nc-small" : ""}`, children: d("common.noResults") }) : t.map((y, w) => /* @__PURE__ */ s(xt, { option: y, onChange: n, selected: y.value === r, highlighted: w === c, small: a }, y.value))
333
336
  }
334
337
  );
335
- return ue(h, document.body);
338
+ return pe(m, document.body);
336
339
  }
337
- function kt({ onClick: e, small: t }) {
340
+ function Nt({ onClick: e, small: t }) {
338
341
  return /* @__PURE__ */ s(
339
342
  "button",
340
343
  {
@@ -346,7 +349,7 @@ function kt({ onClick: e, small: t }) {
346
349
  }
347
350
  );
348
351
  }
349
- function Nt({ open: e, onClick: t, small: n }) {
352
+ function At({ open: e, onClick: t, small: n }) {
350
353
  return /* @__PURE__ */ s(
351
354
  "button",
352
355
  {
@@ -358,7 +361,7 @@ function Nt({ open: e, onClick: t, small: n }) {
358
361
  }
359
362
  );
360
363
  }
361
- function Bn({
364
+ function Wn({
362
365
  value: e,
363
366
  onChange: t,
364
367
  placeholder: n = "Select…",
@@ -368,118 +371,118 @@ function Bn({
368
371
  clearable: a = !0,
369
372
  allowTyping: c = !1,
370
373
  placement: l = "bottom",
371
- size: p = "default",
374
+ size: u = "default",
372
375
  appearance: f = "default",
373
376
  textAlign: v = "left",
374
377
  style: d,
375
- className: h
378
+ className: m
376
379
  }) {
377
- const [y, g] = E(!1), [w, A] = E(""), [b, u] = E(-1), m = W(null), N = W(null), S = p === "small", { t: z } = U(), T = me(() => {
378
- const M = w.toLowerCase();
379
- return c ? r.filter((L) => L.label.toLowerCase().includes(M)) : r;
380
- }, [r, w, c]);
380
+ const [y, w] = E(!1), [g, N] = E(""), [b, p] = E(-1), h = H(null), A = H(null), C = u === "small", { t: z } = U(), T = be(() => {
381
+ const R = g.toLowerCase();
382
+ return c ? r.filter((P) => P.label.toLowerCase().includes(R)) : r;
383
+ }, [r, g, c]);
381
384
  B(() => {
382
- y && u(-1);
385
+ y && p(-1);
383
386
  }, [y, T]), B(() => {
384
387
  if (!a && !e && r.length > 0 && t) {
385
- const M = r.find((L) => L.default) || r[0];
386
- t(M.value);
388
+ const R = r.find((P) => P.default) || r[0];
389
+ t(R.value);
387
390
  }
388
391
  }, [a, e, r, t]), B(() => {
389
- function M(L) {
390
- var D;
391
- L.target instanceof Node && m.current && ((D = m.current.parentElement) != null && D.contains(L.target) || g(!1));
392
+ function R(P) {
393
+ var W;
394
+ P.target instanceof Node && h.current && ((W = h.current.parentElement) != null && W.contains(P.target) || w(!1));
392
395
  }
393
- return document.addEventListener("mousedown", M), () => document.removeEventListener("mousedown", M);
396
+ return document.addEventListener("mousedown", R), () => document.removeEventListener("mousedown", R);
394
397
  }, []);
395
- const x = r.find((M) => M.value === e), R = x && a, C = !o && !R, $ = `nc-align-${v}`, P = !(y && c) && !!x, F = (M, L = !1) => {
396
- var D;
397
- t == null || t(M), g(!1), A(""), L && ((D = m.current) == null || D.blur());
398
- }, Z = () => {
399
- t == null || t(void 0), A(""), g(!1);
400
- }, Y = (M) => {
398
+ const x = r.find((R) => R.value === e), I = x && a, S = !o && !I, $ = `nc-align-${v}`, L = !(y && c) && !!x, F = (R, P = !1) => {
399
+ var W;
400
+ t == null || t(R), w(!1), N(""), P && ((W = h.current) == null || W.blur());
401
+ }, Q = () => {
402
+ t == null || t(void 0), N(""), w(!1);
403
+ }, G = (R) => {
401
404
  if (!y) {
402
- (M.key === "ArrowDown" || M.key === "ArrowUp") && (g(!0), M.preventDefault());
405
+ (R.key === "ArrowDown" || R.key === "ArrowUp") && (w(!0), R.preventDefault());
403
406
  return;
404
407
  }
405
- switch (M.key) {
408
+ switch (R.key) {
406
409
  case "ArrowDown":
407
- M.preventDefault(), u((L) => {
408
- const D = L + 1;
409
- return D >= T.length ? 0 : D;
410
+ R.preventDefault(), p((P) => {
411
+ const W = P + 1;
412
+ return W >= T.length ? 0 : W;
410
413
  });
411
414
  break;
412
415
  case "ArrowUp":
413
- M.preventDefault(), u((L) => {
414
- const D = L - 1;
415
- return D < 0 ? T.length - 1 : D;
416
+ R.preventDefault(), p((P) => {
417
+ const W = P - 1;
418
+ return W < 0 ? T.length - 1 : W;
416
419
  });
417
420
  break;
418
421
  case "Enter":
419
- M.preventDefault(), b >= 0 && b < T.length && F(T[b].value, !0);
422
+ R.preventDefault(), b >= 0 && b < T.length && F(T[b].value, !0);
420
423
  break;
421
424
  case "Escape":
422
- M.preventDefault(), g(!1), A("");
425
+ R.preventDefault(), w(!1), N("");
423
426
  break;
424
427
  }
425
428
  };
426
- return /* @__PURE__ */ k("div", { className: `nc-combo-container ${f === "transparent" ? "nc-transparent" : ""} ${$} ${h || ""}`.trim(), style: { position: "relative", ...d }, children: [
427
- i && /* @__PURE__ */ s("span", { className: `nc-label ${S ? "nc-small" : ""}`, children: i }),
429
+ return /* @__PURE__ */ k("div", { className: `nc-combo-container ${f === "transparent" ? "nc-transparent" : ""} ${f === "plain" ? "nc-plain" : ""} ${y ? "nc-open" : ""} ${$} ${m || ""}`.trim(), style: { position: "relative", ...d }, children: [
430
+ i && /* @__PURE__ */ s("span", { className: `nc-label ${C ? "nc-small" : ""}`, children: i }),
428
431
  /* @__PURE__ */ k(
429
432
  "div",
430
433
  {
431
- ref: N,
434
+ ref: A,
432
435
  style: { position: "relative", display: "flex", alignItems: "center" },
433
- onMouseDown: (M) => {
434
- o || c && M.target === m.current || (g((L) => (!L && c && x && A(x.label), !L)), c && !y && setTimeout(() => {
435
- var L, D;
436
- (L = m.current) == null || L.focus(), (D = m.current) == null || D.select();
436
+ onMouseDown: (R) => {
437
+ o || c && R.target === h.current || (w((P) => (!P && c && x && N(x.label), !P)), c && !y && setTimeout(() => {
438
+ var P, W;
439
+ (P = h.current) == null || P.focus(), (W = h.current) == null || W.select();
437
440
  }, 0));
438
441
  },
439
442
  children: [
440
443
  /* @__PURE__ */ s(
441
444
  "input",
442
445
  {
443
- ref: m,
444
- className: `nc-input ${S ? "nc-small" : ""}`,
446
+ ref: h,
447
+ className: `nc-input ${C ? "nc-small" : ""}`,
445
448
  placeholder: n,
446
449
  onFocus: () => {
447
- var M;
448
- !o && c && (g(!0), x && (A(x.label), setTimeout(() => {
449
- var L;
450
- return (L = m.current) == null ? void 0 : L.select();
451
- }, 0))), c || (M = m.current) == null || M.blur();
450
+ var R;
451
+ !o && c && (w(!0), x && (N(x.label), setTimeout(() => {
452
+ var P;
453
+ return (P = h.current) == null ? void 0 : P.select();
454
+ }, 0))), c || (R = h.current) == null || R.blur();
452
455
  },
453
- onChange: (M) => c && A(M.target.value),
454
- onKeyDown: Y,
455
- value: y && c ? w : (x == null ? void 0 : x.label) || "",
456
+ onChange: (R) => c && N(R.target.value),
457
+ onKeyDown: G,
458
+ value: y && c ? g : (x == null ? void 0 : x.label) || "",
456
459
  readOnly: o || !c,
457
460
  style: {
458
461
  width: "100%",
459
- paddingRight: C || R ? S ? 32 : 44 : 12,
462
+ paddingRight: S || I ? C ? 32 : 44 : 12,
460
463
  caretColor: c ? void 0 : "transparent",
461
464
  cursor: c ? void 0 : "pointer",
462
465
  userSelect: c ? void 0 : "none",
463
- color: P ? "transparent" : "var(--nc-text)"
466
+ color: L ? "transparent" : "var(--nc-text)"
464
467
  }
465
468
  }
466
469
  ),
467
- P && /* @__PURE__ */ k(
470
+ L && /* @__PURE__ */ k(
468
471
  "div",
469
472
  {
470
473
  "aria-hidden": !0,
471
474
  className: `nc-combo-overlay ${$}`,
472
475
  style: {
473
476
  position: "absolute",
474
- left: S ? 8 : 12,
475
- right: C || R ? S ? 12 : 24 : S ? 8 : 12,
477
+ left: C ? 8 : 12,
478
+ right: S || I ? C ? 12 : 24 : C ? 8 : 12,
476
479
  top: "50%",
477
480
  transform: "translateY(-50%)",
478
481
  pointerEvents: "none"
479
482
  },
480
483
  children: [
481
- /* @__PURE__ */ s("span", { className: `nc-combo-overlay-text ${S ? "nc-small" : ""}`, children: x == null ? void 0 : x.label }),
482
- (x == null ? void 0 : x.default) && /* @__PURE__ */ k("span", { className: `nc-combo-overlay-default ${S ? "nc-small" : ""}`, children: [
484
+ /* @__PURE__ */ s("span", { className: `nc-combo-overlay-text ${C ? "nc-small" : ""}`, children: x == null ? void 0 : x.label }),
485
+ (x == null ? void 0 : x.default) && /* @__PURE__ */ k("span", { className: `nc-combo-overlay-default ${C ? "nc-small" : ""}`, children: [
483
486
  "(",
484
487
  z("common.default"),
485
488
  ")"
@@ -487,15 +490,15 @@ function Bn({
487
490
  ]
488
491
  }
489
492
  ),
490
- R && /* @__PURE__ */ s(kt, { onClick: Z, small: S }),
491
- C && /* @__PURE__ */ s(Nt, { open: y, onClick: () => g((M) => !M), small: S })
493
+ I && /* @__PURE__ */ s(Nt, { onClick: Q, small: C }),
494
+ S && /* @__PURE__ */ s(At, { open: y, onClick: () => w((R) => !R), small: C })
492
495
  ]
493
496
  }
494
497
  ),
495
- /* @__PURE__ */ s(xt, { isOpen: y, options: T, onSelect: F, selectedValue: e, placement: l, anchorRef: N, small: S, highlightedIndex: b })
498
+ /* @__PURE__ */ s(kt, { isOpen: y, options: T, onSelect: F, selectedValue: e, placement: l, anchorRef: A, small: C, highlightedIndex: b })
496
499
  ] });
497
500
  }
498
- function Dn({ onClick: e, loading: t = !1, disabled: n = !1, size: r = "default", title: o, "aria-label": i }) {
501
+ function Hn({ onClick: e, loading: t = !1, disabled: n = !1, size: r = "default", title: o, "aria-label": i }) {
499
502
  return /* @__PURE__ */ s(
500
503
  "button",
501
504
  {
@@ -505,11 +508,11 @@ function Dn({ onClick: e, loading: t = !1, disabled: n = !1, size: r = "default"
505
508
  title: o ?? (t ? "Refreshing..." : "Refresh"),
506
509
  "aria-label": i ?? (t ? "Refreshing" : "Refresh"),
507
510
  "data-size": r,
508
- children: /* @__PURE__ */ s(ot, { size: r === "small" ? 14 : r === "large" ? 20 : 18, className: t ? "nc-spinning" : "" })
511
+ children: /* @__PURE__ */ s(st, { size: r === "small" ? 14 : r === "large" ? 20 : 18, className: t ? "nc-spinning" : "" })
509
512
  }
510
513
  );
511
514
  }
512
- function We({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Close", "aria-label": o = "Close" }) {
515
+ function Oe({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Close", "aria-label": o = "Close" }) {
513
516
  return /* @__PURE__ */ s(
514
517
  "button",
515
518
  {
@@ -519,11 +522,11 @@ function We({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Clo
519
522
  title: r,
520
523
  "aria-label": o,
521
524
  "data-size": n,
522
- children: /* @__PURE__ */ s(xe, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
525
+ children: /* @__PURE__ */ s(ke, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
523
526
  }
524
527
  );
525
528
  }
526
- function Hn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Edit", "aria-label": o = "Edit" }) {
529
+ function On({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Edit", "aria-label": o = "Edit" }) {
527
530
  return /* @__PURE__ */ s(
528
531
  "button",
529
532
  {
@@ -533,11 +536,11 @@ function Hn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Edi
533
536
  title: r,
534
537
  "aria-label": o,
535
538
  "data-size": n,
536
- children: /* @__PURE__ */ s(rt, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
539
+ children: /* @__PURE__ */ s(ot, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
537
540
  }
538
541
  );
539
542
  }
540
- function Wn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Delete", "aria-label": o = "Delete" }) {
543
+ function Fn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Delete", "aria-label": o = "Delete" }) {
541
544
  return /* @__PURE__ */ s(
542
545
  "button",
543
546
  {
@@ -547,11 +550,11 @@ function Wn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Del
547
550
  title: r,
548
551
  "aria-label": o,
549
552
  "data-size": n,
550
- children: /* @__PURE__ */ s(st, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
553
+ children: /* @__PURE__ */ s(it, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
551
554
  }
552
555
  );
553
556
  }
554
- function On({ onClick: e, disabled: t = !1, children: n, title: r, "aria-label": o, size: i = "default" }) {
557
+ function Vn({ onClick: e, disabled: t = !1, children: n, title: r, "aria-label": o, size: i = "default" }) {
555
558
  return /* @__PURE__ */ s(
556
559
  "button",
557
560
  {
@@ -565,7 +568,7 @@ function On({ onClick: e, disabled: t = !1, children: n, title: r, "aria-label":
565
568
  }
566
569
  );
567
570
  }
568
- function Fn({
571
+ function jn({
569
572
  open: e,
570
573
  onClose: t,
571
574
  options: n,
@@ -573,36 +576,36 @@ function Fn({
573
576
  anchor: o,
574
577
  preferredDirection: i = "down"
575
578
  }) {
576
- const a = W(null), [c, l] = E({ top: 0, left: 0 }), p = o || (r == null ? void 0 : r.current);
579
+ const a = H(null), [c, l] = E({ top: 0, left: 0 }), u = o || (r == null ? void 0 : r.current);
577
580
  if (B(() => {
578
- if (!e || !p || !a.current) return;
579
- const d = p.getBoundingClientRect(), h = a.current.getBoundingClientRect(), y = window.innerHeight, g = window.innerWidth, w = d.bottom + 8, A = w + h.height <= y - 8;
581
+ if (!e || !u || !a.current) return;
582
+ const d = u.getBoundingClientRect(), m = a.current.getBoundingClientRect(), y = window.innerHeight, w = window.innerWidth, g = d.bottom + 8, N = g + m.height <= y - 8;
580
583
  let b = i;
581
- (!A && i === "down" || i === "up" && A) && (b = "up");
582
- let u;
583
- b === "down" ? u = w : u = d.top - h.height - 8;
584
- let m = d.left;
585
- m + h.width > g - 8 && (m = d.right - h.width), l({
586
- top: Math.max(8, u),
584
+ (!N && i === "down" || i === "up" && N) && (b = "up");
585
+ let p;
586
+ b === "down" ? p = g : p = d.top - m.height - 8;
587
+ let h = d.left;
588
+ h + m.width > w - 8 && (h = d.right - m.width), l({
589
+ top: Math.max(8, p),
587
590
  // Ensure minimum 8px from top
588
- left: Math.max(8, m)
591
+ left: Math.max(8, h)
589
592
  // Ensure minimum 8px from left
590
593
  });
591
- }, [e, p, i]), B(() => {
594
+ }, [e, u, i]), B(() => {
592
595
  if (!e) return;
593
596
  const d = (y) => {
594
- a.current && !a.current.contains(y.target) && p && !p.contains(y.target) && t();
595
- }, h = (y) => {
597
+ a.current && !a.current.contains(y.target) && u && !u.contains(y.target) && t();
598
+ }, m = (y) => {
596
599
  y.key === "Escape" && t();
597
600
  };
598
- return document.addEventListener("mousedown", d), document.addEventListener("keydown", h), () => {
599
- document.removeEventListener("mousedown", d), document.removeEventListener("keydown", h);
601
+ return document.addEventListener("mousedown", d), document.addEventListener("keydown", m), () => {
602
+ document.removeEventListener("mousedown", d), document.removeEventListener("keydown", m);
600
603
  };
601
- }, [e, t, p]), !e) return null;
604
+ }, [e, t, u]), !e) return null;
602
605
  const f = (d) => {
603
606
  d.type !== "separator" && !d.disabled && d.onClick && (d.onClick(), t());
604
607
  }, v = n.some((d) => d.icon);
605
- return ue(
608
+ return pe(
606
609
  /* @__PURE__ */ s(
607
610
  "div",
608
611
  {
@@ -625,7 +628,7 @@ function Fn({
625
628
  },
626
629
  d.id
627
630
  );
628
- const h = [
631
+ const m = [
629
632
  "nc-context-menu-item",
630
633
  d.variant && d.variant !== "default" ? `nc-${d.variant}` : "",
631
634
  d.disabled ? "nc-disabled" : "",
@@ -634,7 +637,7 @@ function Fn({
634
637
  return /* @__PURE__ */ k(
635
638
  "button",
636
639
  {
637
- className: h,
640
+ className: m,
638
641
  onClick: () => f(d),
639
642
  disabled: d.disabled,
640
643
  role: "menuitem",
@@ -651,20 +654,20 @@ function Fn({
651
654
  document.body
652
655
  );
653
656
  }
654
- const Oe = se(null);
655
- function At() {
656
- const e = Q(Oe);
657
+ const Fe = ie(null);
658
+ function Ct() {
659
+ const e = Z(Fe);
657
660
  if (!e)
658
661
  throw new Error("useDialog must be used inside a Dialog component");
659
662
  return e;
660
663
  }
661
- function ne({ children: e, onClick: t, ...n }) {
662
- const { close: r } = At(), { t: o } = U();
664
+ function re({ children: e, onClick: t, ...n }) {
665
+ const { close: r } = Ct(), { t: o } = U();
663
666
  return /* @__PURE__ */ s(K, { onClick: (a) => {
664
667
  t == null || t(a), r();
665
668
  }, ...n, children: e ?? o("common.close") });
666
669
  }
667
- function Vn({
670
+ function Gn({
668
671
  open: e,
669
672
  onClose: t,
670
673
  title: n,
@@ -674,61 +677,61 @@ function Vn({
674
677
  footer: a,
675
678
  onOk: c,
676
679
  onSave: l,
677
- onDelete: p,
680
+ onDelete: u,
678
681
  onCancel: f,
679
682
  onConnect: v,
680
683
  closeOnOverlay: d = !0,
681
- primaryDisabled: h = !1,
684
+ primaryDisabled: m = !1,
682
685
  fullScreen: y = !1,
683
- hideTitleBar: g = !1,
684
- className: w = "",
685
- onContentHeightChange: A
686
+ hideTitleBar: w = !1,
687
+ className: g = "",
688
+ onContentHeightChange: N
686
689
  }) {
687
- const b = W(null), u = W(null), { t: m } = U(), N = { close: t }, S = (x) => {
690
+ const b = H(null), p = H(null), { t: h } = U(), A = { close: t }, C = (x) => {
688
691
  d && x.target === x.currentTarget && t();
689
692
  };
690
693
  if (B(() => {
691
694
  e && b.current && b.current.focus();
692
695
  }, [e]), B(() => {
693
- if (!A || !u.current) return;
694
- const x = new ResizeObserver((R) => {
695
- for (const C of R) {
696
- const $ = C.contentRect.height;
697
- A($);
696
+ if (!N || !p.current) return;
697
+ const x = new ResizeObserver((I) => {
698
+ for (const S of I) {
699
+ const $ = S.contentRect.height;
700
+ N($);
698
701
  }
699
702
  });
700
- return x.observe(u.current), () => {
703
+ return x.observe(p.current), () => {
701
704
  x.disconnect();
702
705
  };
703
- }, [A]), !e) return null;
706
+ }, [N]), !e) return null;
704
707
  const z = () => {
705
708
  switch (i) {
706
709
  case "ok":
707
- return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(K, { variant: "primary", onClick: c ?? t, disabled: h, children: m("common.ok") }) });
710
+ return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(K, { variant: "primary", onClick: c ?? t, disabled: m, children: h("common.ok") }) });
708
711
  case "ok-cancel":
709
712
  return /* @__PURE__ */ k("div", { className: "nc-dialog-footer", children: [
710
- /* @__PURE__ */ s(ne, { onClick: f, children: m("common.cancel") }),
711
- /* @__PURE__ */ s(K, { variant: "primary", onClick: c ?? t, disabled: h, children: m("common.ok") })
713
+ /* @__PURE__ */ s(re, { onClick: f, children: h("common.cancel") }),
714
+ /* @__PURE__ */ s(K, { variant: "primary", onClick: c ?? t, disabled: m, children: h("common.ok") })
712
715
  ] });
713
716
  case "save-cancel":
714
717
  return /* @__PURE__ */ k("div", { className: "nc-dialog-footer", children: [
715
- /* @__PURE__ */ s(ne, { onClick: f, children: m("common.cancel") }),
716
- /* @__PURE__ */ s(K, { variant: "primary", onClick: l, disabled: h, children: m("common.save") })
718
+ /* @__PURE__ */ s(re, { onClick: f, children: h("common.cancel") }),
719
+ /* @__PURE__ */ s(K, { variant: "primary", onClick: l, disabled: m, children: h("common.save") })
717
720
  ] });
718
721
  case "delete-cancel":
719
722
  return /* @__PURE__ */ k("div", { className: "nc-dialog-footer", children: [
720
- /* @__PURE__ */ s(ne, { onClick: f, children: m("common.cancel") }),
721
- /* @__PURE__ */ s(K, { variant: "danger", onClick: p, disabled: h, children: m("common.delete") })
723
+ /* @__PURE__ */ s(re, { onClick: f, children: h("common.cancel") }),
724
+ /* @__PURE__ */ s(K, { variant: "danger", onClick: u, disabled: m, children: h("common.delete") })
722
725
  ] });
723
726
  case "connect":
724
727
  return /* @__PURE__ */ k("div", { className: "nc-dialog-footer", children: [
725
- /* @__PURE__ */ s(ne, { onClick: f, children: m("common.cancel") }),
726
- /* @__PURE__ */ s(K, { variant: "primary", onClick: v, disabled: h, children: m("common.connect") })
728
+ /* @__PURE__ */ s(re, { onClick: f, children: h("common.cancel") }),
729
+ /* @__PURE__ */ s(K, { variant: "primary", onClick: v, disabled: m, children: h("common.connect") })
727
730
  ] });
728
731
  case "close":
729
- return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(ne, { variant: "primary" }) });
732
+ return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(re, { variant: "primary" }) });
730
733
  case "gotit":
731
- return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(ne, { variant: "primary", children: m("common.gotit") }) });
734
+ return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(re, { variant: "primary", children: h("common.gotit") }) });
732
735
  case "custom":
733
736
  return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: a });
734
737
  case "none":
@@ -736,29 +739,29 @@ function Vn({
736
739
  default:
737
740
  return null;
738
741
  }
739
- }, T = /* @__PURE__ */ s(Oe.Provider, { value: N, children: /* @__PURE__ */ s("div", { className: `nc-dialog-overlay${y ? " nc-fullscreen" : ""}`, onClick: S, children: /* @__PURE__ */ k(
742
+ }, T = /* @__PURE__ */ s(Fe.Provider, { value: A, children: /* @__PURE__ */ s("div", { className: `nc-dialog-overlay${y ? " nc-fullscreen" : ""}`, onClick: C, children: /* @__PURE__ */ k(
740
743
  "div",
741
744
  {
742
745
  ref: b,
743
- className: `nc-dialog-container ${w}`,
746
+ className: `nc-dialog-container ${g}`,
744
747
  style: o,
745
748
  tabIndex: -1,
746
749
  role: "dialog",
747
750
  "aria-modal": "true",
748
- "aria-labelledby": g ? void 0 : "nc-dialog-title",
751
+ "aria-labelledby": w ? void 0 : "nc-dialog-title",
749
752
  children: [
750
- !g && /* @__PURE__ */ k("div", { className: "nc-dialog-header", children: [
753
+ !w && /* @__PURE__ */ k("div", { className: "nc-dialog-header", children: [
751
754
  /* @__PURE__ */ s("h3", { id: "nc-dialog-title", className: "nc-dialog-title", children: n }),
752
- /* @__PURE__ */ s(We, { onClick: t, "aria-label": "Close dialog" })
755
+ /* @__PURE__ */ s(Oe, { onClick: t, "aria-label": "Close dialog" })
753
756
  ] }),
754
- /* @__PURE__ */ s("div", { ref: u, className: "nc-dialog-content", children: r }),
757
+ /* @__PURE__ */ s("div", { ref: p, className: "nc-dialog-content", children: r }),
755
758
  z()
756
759
  ]
757
760
  }
758
761
  ) }) });
759
- return y ? ue(T, document.body) : T;
762
+ return y ? pe(T, document.body) : T;
760
763
  }
761
- function Ct({ onClick: e, size: t = "default", rightOffset: n = 4 }) {
764
+ function St({ onClick: e, size: t = "default", rightOffset: n = 4 }) {
762
765
  const r = t === "small" ? 28 : 34;
763
766
  return /* @__PURE__ */ s(
764
767
  "button",
@@ -787,7 +790,7 @@ function Ct({ onClick: e, size: t = "default", rightOffset: n = 4 }) {
787
790
  }
788
791
  );
789
792
  }
790
- function St({ visible: e, onClick: t, size: n = "default" }) {
793
+ function $t({ visible: e, onClick: t, size: n = "default" }) {
791
794
  const r = n === "small" ? 28 : 34, o = n === "small" ? 16 : 18;
792
795
  return /* @__PURE__ */ s(
793
796
  "button",
@@ -811,7 +814,7 @@ function St({ visible: e, onClick: t, size: n = "default" }) {
811
814
  alignItems: "center",
812
815
  justifyContent: "center"
813
816
  },
814
- children: e ? /* @__PURE__ */ s(it, { size: o }) : /* @__PURE__ */ s(ct, { size: o })
817
+ children: e ? /* @__PURE__ */ s(ct, { size: o }) : /* @__PURE__ */ s(at, { size: o })
815
818
  }
816
819
  );
817
820
  }
@@ -825,102 +828,103 @@ function Yn({
825
828
  disabled: a,
826
829
  label: c,
827
830
  clearable: l = !0,
828
- type: p = "text",
831
+ type: u = "text",
829
832
  className: f = "",
830
833
  size: v = "default",
831
- style: d,
832
- leadingIcon: h,
833
- showPasswordToggle: y = !1,
834
+ appearance: d = "default",
835
+ style: m,
836
+ leadingIcon: y,
837
+ showPasswordToggle: w = !1,
834
838
  multiline: g = !1,
835
- rows: w = 3,
836
- validator: A,
837
- showErrorMessage: b = !0
839
+ rows: N = 3,
840
+ validator: b,
841
+ showErrorMessage: p = !0
838
842
  }) {
839
- const u = W(null), m = W(null), [N, S] = E(!1), [z, T] = E(!1), x = e !== void 0, [R, C] = E(t), $ = x ? e : R, P = A ? A($) : null, F = !!P, Z = p === "password", Y = Z && y && !a && !g, M = l && $ && !a && z, L = v === "small" ? 32 : 44;
840
- let D = 12;
841
- M && Y ? D = L * 2 : (M || Y) && (D = L);
842
- const V = h ? v === "small" ? 28 : 34 : void 0, Ze = () => {
843
- var te, ce;
844
- x || C(""), n == null || n(""), o == null || o(), g ? (te = m.current) == null || te.focus() : (ce = u.current) == null || ce.focus();
845
- }, Se = (te) => {
846
- te.key === "Enter" && !g && (r == null || r());
847
- }, $e = (te) => {
848
- const ce = te.target.value;
849
- x || C(ce), n == null || n(ce);
843
+ const h = H(null), A = H(null), [C, z] = E(!1), [T, x] = E(!1), I = e !== void 0, [S, $] = E(t), L = I ? e : S, F = b ? b(L) : null, Q = !!F, G = u === "password", R = G && w && !a && !g, P = l && L && !a && T, W = v === "small" ? 32 : 44;
844
+ let ee = 12;
845
+ P && R ? ee = W * 2 : (P || R) && (ee = W);
846
+ const fe = y ? v === "small" ? 28 : 34 : void 0, et = () => {
847
+ var ne, ae;
848
+ I || $(""), n == null || n(""), o == null || o(), g ? (ne = A.current) == null || ne.focus() : (ae = h.current) == null || ae.focus();
849
+ }, $e = (ne) => {
850
+ ne.key === "Enter" && !g && (r == null || r());
851
+ }, Me = (ne) => {
852
+ const ae = ne.target.value;
853
+ I || $(ae), n == null || n(ae);
850
854
  }, Ie = () => {
851
- T(!0);
852
- }, Me = () => {
853
- T(!1);
854
- }, Re = `nc-input ${v === "small" ? "nc-small " : ""} ${F ? "nc-error " : ""}${f}`;
855
- return /* @__PURE__ */ k("div", { className: "nc-col", style: { position: "relative", flex: 1, ...d }, children: [
855
+ x(!0);
856
+ }, Re = () => {
857
+ x(!1);
858
+ }, Ee = `nc-input ${v === "small" ? "nc-small " : ""}${!g && d === "plain" ? "nc-plain " : ""}${Q ? "nc-error " : ""}${f}`;
859
+ return /* @__PURE__ */ k("div", { className: "nc-col", style: { position: "relative", flex: 1, ...m }, children: [
856
860
  c && /* @__PURE__ */ s("span", { className: "nc-label", children: c }),
857
861
  /* @__PURE__ */ k("div", { style: { position: "relative", display: "flex", alignItems: g ? "flex-start" : "center" }, children: [
858
- h && /* @__PURE__ */ s("span", { className: "nc-input-leading-icon", style: { height: g ? void 0 : "100%", top: g ? 10 : void 0 }, children: h }),
862
+ y && /* @__PURE__ */ s("span", { className: "nc-input-leading-icon", style: { height: g ? void 0 : "100%", top: g ? 10 : void 0 }, children: y }),
859
863
  g ? /* @__PURE__ */ s(
860
864
  "textarea",
861
865
  {
862
- ref: m,
863
- className: Re,
866
+ ref: A,
867
+ className: Ee,
864
868
  placeholder: i,
865
- value: $,
866
- onChange: $e,
867
- onKeyDown: Se,
869
+ value: L,
870
+ onChange: Me,
871
+ onKeyDown: $e,
868
872
  onFocus: Ie,
869
- onBlur: Me,
873
+ onBlur: Re,
870
874
  readOnly: a,
871
875
  "aria-disabled": a,
872
876
  tabIndex: a ? -1 : void 0,
873
- rows: w,
877
+ rows: N,
874
878
  style: {
875
879
  width: "100%",
876
- paddingRight: D,
877
- ...V !== void 0 ? { paddingLeft: V } : {}
880
+ paddingRight: ee,
881
+ ...fe !== void 0 ? { paddingLeft: fe } : {}
878
882
  }
879
883
  }
880
884
  ) : /* @__PURE__ */ s(
881
885
  "input",
882
886
  {
883
- ref: u,
884
- type: Z && N ? "text" : p,
885
- className: Re,
887
+ ref: h,
888
+ type: G && C ? "text" : u,
889
+ className: Ee,
886
890
  placeholder: i,
887
- value: $,
888
- onChange: $e,
889
- onKeyDown: Se,
891
+ value: L,
892
+ onChange: Me,
893
+ onKeyDown: $e,
890
894
  onFocus: Ie,
891
- onBlur: Me,
895
+ onBlur: Re,
892
896
  readOnly: a,
893
897
  "aria-disabled": a,
894
898
  tabIndex: a ? -1 : void 0,
895
899
  style: {
896
900
  width: "100%",
897
- paddingRight: D,
898
- ...V !== void 0 ? { paddingLeft: V } : {}
901
+ paddingRight: ee,
902
+ ...fe !== void 0 ? { paddingLeft: fe } : {}
899
903
  }
900
904
  }
901
905
  ),
902
- M && /* @__PURE__ */ s(Ct, { onClick: Ze, size: v, rightOffset: Y ? L + 4 : 4 }),
903
- Y && /* @__PURE__ */ s(St, { visible: N, onClick: () => S(!N), size: v })
906
+ P && /* @__PURE__ */ s(St, { onClick: et, size: v, rightOffset: R ? W + 4 : 4 }),
907
+ R && /* @__PURE__ */ s($t, { visible: C, onClick: () => z(!C), size: v })
904
908
  ] }),
905
- F && b && /* @__PURE__ */ s("span", { className: "nc-error-message", children: P })
909
+ Q && p && /* @__PURE__ */ s("span", { className: "nc-error-message", children: F })
906
910
  ] });
907
911
  }
908
- function Gn({
912
+ function Kn({
909
913
  children: e,
910
914
  onClick: t,
911
915
  showBorder: n = !0,
912
916
  selectable: r = !1,
913
917
  style: o
914
918
  }) {
915
- const [i, a] = ke.useState(!1);
919
+ const [i, a] = Ne.useState(!1);
916
920
  return /* @__PURE__ */ s(
917
921
  "div",
918
922
  {
919
923
  onClick: (l) => {
920
924
  if (t) {
921
925
  if (r) {
922
- const p = window.getSelection();
923
- if (p && p.toString().length > 0)
926
+ const u = window.getSelection();
927
+ if (u && u.toString().length > 0)
924
928
  return;
925
929
  }
926
930
  t(l);
@@ -940,7 +944,7 @@ function Gn({
940
944
  }
941
945
  );
942
946
  }
943
- function jn({ title: e, titleTools: t, children: n, style: r }) {
947
+ function _n({ title: e, titleTools: t, children: n, style: r }) {
944
948
  return /* @__PURE__ */ k("div", { className: "nc-list-group", style: r, children: [
945
949
  (e || t) && /* @__PURE__ */ k("div", { className: "nc-list-group-title", children: [
946
950
  /* @__PURE__ */ s("div", { children: e }),
@@ -955,32 +959,32 @@ function jn({ title: e, titleTools: t, children: n, style: r }) {
955
959
  )
956
960
  ] });
957
961
  }
958
- function Kn({ values: e, onChange: t, options: n, placeholder: r = "Select…", label: o }) {
959
- const [i, a] = E(!1), [c, l] = E(""), p = W(null), f = me(() => n.filter((d) => d.label.toLowerCase().includes(c.toLowerCase())), [n, c]);
962
+ function Un({ values: e, onChange: t, options: n, placeholder: r = "Select…", label: o }) {
963
+ const [i, a] = E(!1), [c, l] = E(""), u = H(null), f = be(() => n.filter((d) => d.label.toLowerCase().includes(c.toLowerCase())), [n, c]);
960
964
  B(() => {
961
- function d(h) {
962
- !(h.target instanceof Node) || !p.current || p.current.contains(h.target) || a(!1);
965
+ function d(m) {
966
+ !(m.target instanceof Node) || !u.current || u.current.contains(m.target) || a(!1);
963
967
  }
964
968
  return document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
965
969
  }, []);
966
970
  const v = (d) => {
967
- e.includes(d) ? t(e.filter((h) => h !== d)) : t([...e, d]);
971
+ e.includes(d) ? t(e.filter((m) => m !== d)) : t([...e, d]);
968
972
  };
969
- return /* @__PURE__ */ k("div", { ref: p, className: "nc-col", style: { position: "relative" }, children: [
973
+ return /* @__PURE__ */ k("div", { ref: u, className: "nc-col", style: { position: "relative" }, children: [
970
974
  o && /* @__PURE__ */ s("span", { className: "nc-label", children: o }),
971
975
  /* @__PURE__ */ k("div", { className: "nc-row", style: { flexWrap: "wrap", gap: 6, minHeight: 42, alignItems: "center", border: "1px solid var(--nc-button-border)", borderRadius: 8, background: "var(--nc-button-bg)", padding: "4px 8px" }, children: [
972
976
  e.length === 0 && /* @__PURE__ */ s("span", { className: "nc-label", children: r }),
973
977
  e.map((d) => {
974
- const h = n.find((y) => y.value === d);
975
- return h ? /* @__PURE__ */ k("span", { style: { padding: "4px 8px", borderRadius: 6, display: "inline-flex", alignItems: "center", gap: 4, background: "var(--nc-button-bg)", border: "1px solid var(--nc-button-border)" }, children: [
976
- h.label,
978
+ const m = n.find((y) => y.value === d);
979
+ return m ? /* @__PURE__ */ k("span", { style: { padding: "4px 8px", borderRadius: 6, display: "inline-flex", alignItems: "center", gap: 4, background: "var(--nc-button-bg)", border: "1px solid var(--nc-button-border)" }, children: [
980
+ m.label,
977
981
  /* @__PURE__ */ s(
978
982
  "button",
979
983
  {
980
984
  className: "nc-button nc-ghost",
981
985
  style: { padding: 0, minHeight: 0, height: 20, width: 20, display: "inline-flex", alignItems: "center", justifyContent: "center", border: "none" },
982
986
  onClick: () => v(d),
983
- "aria-label": `Remove ${h.label}`,
987
+ "aria-label": `Remove ${m.label}`,
984
988
  children: "✕"
985
989
  }
986
990
  )
@@ -999,17 +1003,17 @@ function Kn({ values: e, onChange: t, options: n, placeholder: r = "Select…",
999
1003
  ] }),
1000
1004
  i && /* @__PURE__ */ k("div", { className: "nc-combo-dropdown", style: { position: "absolute", top: "100%", left: 0, right: 0, zIndex: 10, marginTop: 4, boxShadow: "0 4px 12px var(--nc-shadow)" }, children: [
1001
1005
  f.map((d) => {
1002
- const h = e.includes(d.value);
1006
+ const m = e.includes(d.value);
1003
1007
  return /* @__PURE__ */ k("div", { className: "nc-section nc-row", style: { justifyContent: "space-between", cursor: "pointer", padding: 12 }, onMouseDown: () => v(d.value), children: [
1004
1008
  /* @__PURE__ */ s("span", { children: d.label }),
1005
- /* @__PURE__ */ s("span", { children: h ? "✔️" : "" })
1009
+ /* @__PURE__ */ s("span", { children: m ? "✔️" : "" })
1006
1010
  ] }, d.value);
1007
1011
  }),
1008
1012
  f.length === 0 && /* @__PURE__ */ s("div", { className: "nc-section nc-label", children: "No results" })
1009
1013
  ] })
1010
1014
  ] });
1011
1015
  }
1012
- function pe(e) {
1016
+ function he(e) {
1013
1017
  if (!e) return null;
1014
1018
  const t = /^\d{2}-\d{1,2}$/, n = /^\d{4}-\d{1,2}$/;
1015
1019
  if (!t.test(e) && !n.test(e))
@@ -1017,7 +1021,7 @@ function pe(e) {
1017
1021
  const r = e.split("-"), o = parseInt(r[1], 10);
1018
1022
  return o < 1 || o > 12 ? "Month must be between 1 and 12" : null;
1019
1023
  }
1020
- function de(e) {
1024
+ function ue(e) {
1021
1025
  if (!e) return "";
1022
1026
  const t = e.split("-");
1023
1027
  if (t.length !== 2) return e;
@@ -1029,9 +1033,9 @@ function de(e) {
1029
1033
  }
1030
1034
  return `${n}-${r}`;
1031
1035
  }
1032
- function Ee(e) {
1036
+ function Le(e) {
1033
1037
  if (!e) return "";
1034
- const t = de(e);
1038
+ const t = ue(e);
1035
1039
  if (!/^\d{4}-\d{2}$/.test(t)) return e;
1036
1040
  const [n, r] = t.split("-");
1037
1041
  return `${n}/${r}`;
@@ -1040,7 +1044,7 @@ function Te() {
1040
1044
  const e = /* @__PURE__ */ new Date(), t = e.getFullYear(), n = String(e.getMonth() + 1).padStart(2, "0");
1041
1045
  return `${t}-${n}`;
1042
1046
  }
1043
- function _n({
1047
+ function qn({
1044
1048
  startMonth: e,
1045
1049
  endMonth: t,
1046
1050
  onChange: n,
@@ -1049,51 +1053,51 @@ function _n({
1049
1053
  disabled: i = !1,
1050
1054
  size: a = "default"
1051
1055
  }) {
1052
- const [c, l] = E(!1), [p, f] = E(""), [v, d] = E(""), [h, y] = E({ top: 0, left: 0, width: 0, right: void 0 }), g = W(null), w = W(null);
1056
+ const [c, l] = E(!1), [u, f] = E(""), [v, d] = E(""), [m, y] = E({ top: 0, left: 0, width: 0, right: void 0 }), w = H(null), g = H(null);
1053
1057
  B(() => {
1054
- if (c && g.current) {
1055
- const C = g.current.getBoundingClientRect(), P = Math.max(C.width, 400);
1056
- window.innerWidth - C.left < P && C.right >= P ? y({
1057
- top: C.bottom + 4,
1058
+ if (c && w.current) {
1059
+ const S = w.current.getBoundingClientRect(), L = Math.max(S.width, 400);
1060
+ window.innerWidth - S.left < L && S.right >= L ? y({
1061
+ top: S.bottom + 4,
1058
1062
  left: 0,
1059
1063
  // Not used but type needs it, let's just use 0
1060
- right: window.innerWidth - C.right,
1061
- width: P
1064
+ right: window.innerWidth - S.right,
1065
+ width: L
1062
1066
  }) : y({
1063
- top: C.bottom + 4,
1064
- left: C.left,
1067
+ top: S.bottom + 4,
1068
+ left: S.left,
1065
1069
  right: void 0,
1066
- width: P
1070
+ width: L
1067
1071
  });
1068
1072
  }
1069
1073
  }, [c]), B(() => {
1070
1074
  if (!c) return;
1071
- const C = ($) => {
1072
- g.current && !g.current.contains($.target) && w.current && !w.current.contains($.target) && l(!1);
1075
+ const S = ($) => {
1076
+ w.current && !w.current.contains($.target) && g.current && !g.current.contains($.target) && l(!1);
1073
1077
  };
1074
- return document.addEventListener("mousedown", C), () => document.removeEventListener("mousedown", C);
1078
+ return document.addEventListener("mousedown", S), () => document.removeEventListener("mousedown", S);
1075
1079
  }, [c]);
1076
- const A = () => {
1080
+ const N = () => {
1077
1081
  f(e || Te()), d(t || Te()), l(!0);
1078
1082
  }, b = () => {
1079
1083
  l(!1);
1080
- }, u = () => {
1081
- const C = pe(p), $ = pe(v);
1082
- if (C || $)
1084
+ }, p = () => {
1085
+ const S = he(u), $ = he(v);
1086
+ if (S || $)
1083
1087
  return;
1084
- const P = de(p), F = de(v);
1085
- P && F && (n == null || n(P, F)), l(!1);
1086
- }, m = e && t ? `${Ee(e)} - ${Ee(t)}` : "Select month range", N = pe(p), S = pe(v), z = de(p), T = de(v), x = z && T && z > T, R = c ? ue(
1088
+ const L = ue(u), F = ue(v);
1089
+ L && F && (n == null || n(L, F)), l(!1);
1090
+ }, h = e && t ? `${Le(e)} - ${Le(t)}` : "Select month range", A = he(u), C = he(v), z = ue(u), T = ue(v), x = z && T && z > T, I = c ? pe(
1087
1091
  /* @__PURE__ */ s(
1088
1092
  "div",
1089
1093
  {
1090
- ref: w,
1094
+ ref: g,
1091
1095
  className: "nc-month-range-picker-popup",
1092
1096
  style: {
1093
1097
  position: "fixed",
1094
- top: h.top,
1095
- ...h.right !== void 0 ? { right: h.right } : { left: h.left },
1096
- width: h.width,
1098
+ top: m.top,
1099
+ ...m.right !== void 0 ? { right: m.right } : { left: m.left },
1100
+ width: m.width,
1097
1101
  zIndex: 1e3
1098
1102
  },
1099
1103
  children: /* @__PURE__ */ k("div", { className: "nc-month-range-picker-content", children: [
@@ -1104,13 +1108,13 @@ function _n({
1104
1108
  "input",
1105
1109
  {
1106
1110
  type: "text",
1107
- className: `nc-month-input ${N ? "nc-error" : ""}`,
1108
- value: p,
1109
- onChange: (C) => f(C.target.value),
1111
+ className: `nc-month-input ${A ? "nc-error" : ""}`,
1112
+ value: u,
1113
+ onChange: (S) => f(S.target.value),
1110
1114
  placeholder: "YY-M(M) or YYYY-M(M)"
1111
1115
  }
1112
1116
  ),
1113
- N && /* @__PURE__ */ s("div", { className: "nc-month-error-text", children: N })
1117
+ A && /* @__PURE__ */ s("div", { className: "nc-month-error-text", children: A })
1114
1118
  ] }),
1115
1119
  /* @__PURE__ */ k("div", { className: "nc-month-range-picker-column", children: [
1116
1120
  /* @__PURE__ */ s("label", { className: "nc-label", children: "End Month" }),
@@ -1118,23 +1122,23 @@ function _n({
1118
1122
  "input",
1119
1123
  {
1120
1124
  type: "text",
1121
- className: `nc-month-input ${S ? "nc-error" : ""}`,
1125
+ className: `nc-month-input ${C ? "nc-error" : ""}`,
1122
1126
  value: v,
1123
- onChange: (C) => d(C.target.value),
1127
+ onChange: (S) => d(S.target.value),
1124
1128
  placeholder: "YY-M(M) or YYYY-M(M)"
1125
1129
  }
1126
1130
  ),
1127
- S && /* @__PURE__ */ s("div", { className: "nc-month-error-text", children: S })
1131
+ C && /* @__PURE__ */ s("div", { className: "nc-month-error-text", children: C })
1128
1132
  ] })
1129
1133
  ] }),
1130
- x && !N && !S && /* @__PURE__ */ s("div", { className: "nc-month-range-error", children: "End month must be after or equal to start month" }),
1134
+ x && !A && !C && /* @__PURE__ */ s("div", { className: "nc-month-range-error", children: "End month must be after or equal to start month" }),
1131
1135
  /* @__PURE__ */ k("div", { className: "nc-month-range-picker-footer", children: [
1132
1136
  /* @__PURE__ */ s(
1133
1137
  K,
1134
1138
  {
1135
1139
  variant: "primary",
1136
- onClick: u,
1137
- disabled: !p || !v || !!N || !!S || !!x,
1140
+ onClick: p,
1141
+ disabled: !u || !v || !!A || !!C || !!x,
1138
1142
  children: "Apply"
1139
1143
  }
1140
1144
  ),
@@ -1150,18 +1154,18 @@ function _n({
1150
1154
  /* @__PURE__ */ s(
1151
1155
  "button",
1152
1156
  {
1153
- ref: g,
1157
+ ref: w,
1154
1158
  className: `nc-month-range-picker-input${a === "small" ? " nc-small" : ""}`,
1155
- onClick: A,
1159
+ onClick: N,
1156
1160
  disabled: i,
1157
- children: m
1161
+ children: h
1158
1162
  }
1159
1163
  ),
1160
- R
1164
+ I
1161
1165
  ] });
1162
1166
  }
1163
- function Un({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disabled: a, size: c = "default" }) {
1164
- const l = c === "small", p = () => {
1167
+ function Xn({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disabled: a, size: c = "default" }) {
1168
+ const l = c === "small", u = () => {
1165
1169
  const d = e - o;
1166
1170
  n !== void 0 && d < n || t(parseFloat(d.toFixed(10)));
1167
1171
  }, f = () => {
@@ -1178,8 +1182,8 @@ function Un({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disa
1178
1182
  type: "number",
1179
1183
  value: e,
1180
1184
  onChange: (d) => {
1181
- const h = parseFloat(d.target.value);
1182
- isNaN(h) || n !== void 0 && h < n || r !== void 0 && h > r || t(h);
1185
+ const m = parseFloat(d.target.value);
1186
+ isNaN(m) || n !== void 0 && m < n || r !== void 0 && m > r || t(m);
1183
1187
  },
1184
1188
  min: n,
1185
1189
  max: r,
@@ -1191,7 +1195,7 @@ function Un({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disa
1191
1195
  "button",
1192
1196
  {
1193
1197
  className: `nc-button nc-ghost nc-number-input-button ${l ? "nc-small" : ""}`,
1194
- onClick: p,
1198
+ onClick: u,
1195
1199
  disabled: a || n !== void 0 && e <= n,
1196
1200
  children: "−"
1197
1201
  }
@@ -1208,7 +1212,7 @@ function Un({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disa
1208
1212
  ] })
1209
1213
  ] });
1210
1214
  }
1211
- function qn({
1215
+ function Jn({
1212
1216
  value: e,
1213
1217
  onChange: t,
1214
1218
  min: n = 0,
@@ -1218,11 +1222,11 @@ function qn({
1218
1222
  disabled: a,
1219
1223
  showValue: c = !0,
1220
1224
  formatValue: l = (f) => f.toString(),
1221
- width: p = 200
1225
+ width: u = 200
1222
1226
  }) {
1223
1227
  const f = (d) => {
1224
- const h = parseFloat(d.target.value);
1225
- t(h);
1228
+ const m = parseFloat(d.target.value);
1229
+ t(m);
1226
1230
  }, v = (e - n) / (r - n) * 100;
1227
1231
  return /* @__PURE__ */ k("div", { className: "nc-col", style: { gap: 6 }, children: [
1228
1232
  i && /* @__PURE__ */ s("span", { className: "nc-label", children: i }),
@@ -1239,7 +1243,7 @@ function qn({
1239
1243
  step: o,
1240
1244
  disabled: a,
1241
1245
  style: {
1242
- width: p,
1246
+ width: u,
1243
1247
  "--nc-slider-percentage": `${v}%`
1244
1248
  }
1245
1249
  }
@@ -1260,13 +1264,13 @@ function qn({
1260
1264
  ] })
1261
1265
  ] });
1262
1266
  }
1263
- const $t = ({ size: e = 24, className: t, style: n }) => /* @__PURE__ */ s("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", className: t, style: n, children: /* @__PURE__ */ s("polyline", { points: "18 15 12 9 6 15" }) });
1267
+ const Mt = ({ size: e = 24, className: t, style: n }) => /* @__PURE__ */ s("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", className: t, style: n, children: /* @__PURE__ */ s("polyline", { points: "18 15 12 9 6 15" }) });
1264
1268
  function It({ children: e, className: t = "", style: n }) {
1265
1269
  return /* @__PURE__ */ s("div", { className: `nc-tab-panel ${t}`, style: n, children: e });
1266
1270
  }
1267
- function Xn({ active: e, children: t, keepMounted: n = !1, className: r = "", style: o }) {
1268
- const i = ut.toArray(t).filter(
1269
- (c) => pt(c) && (c.type === It || c.type.displayName === "TabPanel")
1271
+ function Zn({ active: e, children: t, keepMounted: n = !1, className: r = "", style: o }) {
1272
+ const i = pt.toArray(t).filter(
1273
+ (c) => ft(c) && (c.type === It || c.type.displayName === "TabPanel")
1270
1274
  );
1271
1275
  if (n)
1272
1276
  return /* @__PURE__ */ s("div", { className: `nc-tab-panels ${r}`, style: o, children: i.map((c) => {
@@ -1285,87 +1289,87 @@ function Xn({ active: e, children: t, keepMounted: n = !1, className: r = "", st
1285
1289
  const a = i.find((c) => c.props.tab === e);
1286
1290
  return /* @__PURE__ */ s("div", { className: `nc-tab-panels ${r}`, style: o, children: a });
1287
1291
  }
1288
- function Jn({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, className: i, toolbar: a, multiline: c, orientation: l = "horizontal", style: p }) {
1289
- const f = W(null), [v, d] = E(!1), [h, y] = E(!1), g = l === "verticalLeft" || l === "verticalRight", w = W(!1), A = W(0), b = W(0), u = W(!1);
1292
+ function Qn({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, className: i, toolbar: a, multiline: c, orientation: l = "horizontal", style: u }) {
1293
+ const f = H(null), [v, d] = E(!1), [m, y] = E(!1), w = l === "verticalLeft" || l === "verticalRight", g = H(!1), N = H(0), b = H(0), p = H(!1);
1290
1294
  B(() => {
1291
1295
  const x = () => {
1292
1296
  if (f.current)
1293
- if (g) {
1294
- const { scrollTop: C, scrollHeight: $, clientHeight: P } = f.current;
1295
- d(C > 1), y(C < $ - P - 1);
1297
+ if (w) {
1298
+ const { scrollTop: S, scrollHeight: $, clientHeight: L } = f.current;
1299
+ d(S > 1), y(S < $ - L - 1);
1296
1300
  } else {
1297
- const { scrollLeft: C, scrollWidth: $, clientWidth: P } = f.current;
1298
- d(C > 1), y(C < $ - P - 1);
1301
+ const { scrollLeft: S, scrollWidth: $, clientWidth: L } = f.current;
1302
+ d(S > 1), y(S < $ - L - 1);
1299
1303
  }
1300
- }, R = f.current;
1301
- if (R)
1302
- return x(), R.addEventListener("scroll", x), window.addEventListener("resize", x), () => {
1303
- R.removeEventListener("scroll", x), window.removeEventListener("resize", x);
1304
+ }, I = f.current;
1305
+ if (I)
1306
+ return x(), I.addEventListener("scroll", x), window.addEventListener("resize", x), () => {
1307
+ I.removeEventListener("scroll", x), window.removeEventListener("resize", x);
1304
1308
  };
1305
- }, [e, g]);
1306
- const m = (x) => {
1307
- f.current && (w.current = !0, u.current = !1, A.current = g ? x.clientY : x.clientX, b.current = g ? f.current.scrollTop : f.current.scrollLeft, f.current.style.cursor = "grabbing", f.current.style.userSelect = "none");
1308
- }, N = (x) => {
1309
- if (!w.current || !f.current) return;
1310
- const R = g ? x.clientY : x.clientX, C = A.current - R;
1311
- Math.abs(C) > 3 && (u.current = !0), g ? f.current.scrollTop = b.current + C : f.current.scrollLeft = b.current + C;
1312
- }, S = () => {
1313
- f.current && (w.current = !1, f.current.style.cursor = "", f.current.style.userSelect = "");
1309
+ }, [e, w]);
1310
+ const h = (x) => {
1311
+ f.current && (g.current = !0, p.current = !1, N.current = w ? x.clientY : x.clientX, b.current = w ? f.current.scrollTop : f.current.scrollLeft, f.current.style.cursor = "grabbing", f.current.style.userSelect = "none");
1312
+ }, A = (x) => {
1313
+ if (!g.current || !f.current) return;
1314
+ const I = w ? x.clientY : x.clientX, S = N.current - I;
1315
+ Math.abs(S) > 3 && (p.current = !0), w ? f.current.scrollTop = b.current + S : f.current.scrollLeft = b.current + S;
1316
+ }, C = () => {
1317
+ f.current && (g.current = !1, f.current.style.cursor = "", f.current.style.userSelect = "");
1314
1318
  }, z = () => {
1315
- S();
1319
+ C();
1316
1320
  };
1317
1321
  B(() => {
1318
1322
  const x = f.current;
1319
- if (!x || g) return;
1320
- const R = (C) => {
1321
- C.deltaY !== 0 && (C.preventDefault(), x.scrollLeft += C.deltaY * 0.3);
1323
+ if (!x || w) return;
1324
+ const I = (S) => {
1325
+ S.deltaY !== 0 && (S.preventDefault(), x.scrollLeft += S.deltaY * 0.3);
1322
1326
  };
1323
- return x.addEventListener("wheel", R, { passive: !1 }), () => {
1324
- x.removeEventListener("wheel", R);
1327
+ return x.addEventListener("wheel", I, { passive: !1 }), () => {
1328
+ x.removeEventListener("wheel", I);
1325
1329
  };
1326
- }, [g]);
1330
+ }, [w]);
1327
1331
  const T = (x) => {
1328
- u.current || n(x);
1332
+ p.current || n(x);
1329
1333
  };
1330
- return /* @__PURE__ */ k("div", { className: `nc-tab-container ${g ? `nc-vertical nc-${l}` : ""} ${i || ""}`, style: p, children: [
1334
+ return /* @__PURE__ */ k("div", { className: `nc-tab-container ${w ? `nc-vertical nc-${l}` : ""} ${i || ""}`, style: u, children: [
1331
1335
  /* @__PURE__ */ k("div", { className: "nc-tab-scroll-wrapper", children: [
1332
- v && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${g ? "nc-top" : "nc-left"}`, children: g ? /* @__PURE__ */ s($t, { size: 16 }) : /* @__PURE__ */ s(at, { size: 16 }) }),
1336
+ v && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${w ? "nc-top" : "nc-left"}`, children: w ? /* @__PURE__ */ s(Mt, { size: 16 }) : /* @__PURE__ */ s(lt, { size: 16 }) }),
1333
1337
  /* @__PURE__ */ s(
1334
1338
  "div",
1335
1339
  {
1336
1340
  ref: f,
1337
1341
  className: `nc-tab-scroll ${c ? "nc-multiline" : ""}`,
1338
- onMouseDown: m,
1339
- onMouseMove: N,
1340
- onMouseUp: S,
1342
+ onMouseDown: h,
1343
+ onMouseMove: A,
1344
+ onMouseUp: C,
1341
1345
  onMouseLeave: z,
1342
1346
  style: { cursor: "grab" },
1343
1347
  children: e.map((x) => {
1344
- const R = typeof x == "string" ? x : x.id, C = typeof x == "string" ? x : x.label, $ = r && !(o != null && o.includes(R));
1348
+ const I = typeof x == "string" ? x : x.id, S = typeof x == "string" ? x : x.label, $ = r && !(o != null && o.includes(I));
1345
1349
  return /* @__PURE__ */ k(
1346
1350
  "div",
1347
1351
  {
1348
- className: `nc-tab-item ${t === R ? "nc-active" : ""} ${$ ? "nc-closable" : ""}`,
1349
- onClick: () => T(R),
1352
+ className: `nc-tab-item ${t === I ? "nc-active" : ""} ${$ ? "nc-closable" : ""}`,
1353
+ onClick: () => T(I),
1350
1354
  role: "button",
1351
1355
  tabIndex: 0,
1352
- onKeyDown: (P) => {
1353
- (P.key === "Enter" || P.key === " ") && n(R);
1356
+ onKeyDown: (L) => {
1357
+ (L.key === "Enter" || L.key === " ") && n(I);
1354
1358
  },
1355
1359
  children: [
1356
- /* @__PURE__ */ s("span", { className: "nc-tab-label", children: g ? C : typeof C == "string" ? C.toUpperCase() : C }),
1360
+ /* @__PURE__ */ s("span", { className: "nc-tab-label", children: w ? S : typeof S == "string" ? S.toUpperCase() : S }),
1357
1361
  $ && /* @__PURE__ */ s(
1358
1362
  "span",
1359
1363
  {
1360
1364
  className: "nc-tab-close",
1361
1365
  role: "button",
1362
1366
  tabIndex: 0,
1363
- "aria-label": `Close ${typeof C == "string" ? C : R}`,
1364
- onClick: (P) => {
1365
- P.stopPropagation(), r(R);
1367
+ "aria-label": `Close ${typeof S == "string" ? S : I}`,
1368
+ onClick: (L) => {
1369
+ L.stopPropagation(), r(I);
1366
1370
  },
1367
- onKeyDown: (P) => {
1368
- (P.key === "Enter" || P.key === " ") && (P.stopPropagation(), r(R));
1371
+ onKeyDown: (L) => {
1372
+ (L.key === "Enter" || L.key === " ") && (L.stopPropagation(), r(I));
1369
1373
  },
1370
1374
  children: /* @__PURE__ */ k("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
1371
1375
  /* @__PURE__ */ s("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
@@ -1375,17 +1379,17 @@ function Jn({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, cla
1375
1379
  )
1376
1380
  ]
1377
1381
  },
1378
- R
1382
+ I
1379
1383
  );
1380
1384
  })
1381
1385
  }
1382
1386
  ),
1383
- h && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${g ? "nc-bottom" : "nc-right"}`, children: g ? /* @__PURE__ */ s(lt, { size: 16 }) : /* @__PURE__ */ s(dt, { size: 16 }) })
1387
+ m && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${w ? "nc-bottom" : "nc-right"}`, children: w ? /* @__PURE__ */ s(dt, { size: 16 }) : /* @__PURE__ */ s(ut, { size: 16 }) })
1384
1388
  ] }),
1385
1389
  a && /* @__PURE__ */ s("div", { className: "nc-tab-toolbar", children: a })
1386
1390
  ] });
1387
1391
  }
1388
- function Qn({ checked: e, onChange: t, disabled: n, label: r }) {
1392
+ function er({ checked: e, onChange: t, disabled: n, label: r }) {
1389
1393
  return /* @__PURE__ */ k(
1390
1394
  "label",
1391
1395
  {
@@ -1449,24 +1453,24 @@ const ze = [
1449
1453
  "var(--nc-csv-col-8)",
1450
1454
  "var(--nc-csv-col-9)"
1451
1455
  ];
1452
- function Mt(e, t) {
1456
+ function Rt(e, t) {
1453
1457
  const r = e.slice(0, t).split(`
1454
1458
  `), o = r.length, a = r[o - 1].split(" "), c = a.length, l = a[c - 1].length + 1;
1455
1459
  return { line: o, column: c, character: l, offset: t };
1456
1460
  }
1457
- function Rt(e, t, n, r) {
1461
+ function Et(e, t, n, r) {
1458
1462
  const o = e.split(`
1459
1463
  `), i = Math.max(1, Math.min(t, o.length));
1460
1464
  let a = 0;
1461
1465
  for (let v = 0; v < i - 1; v++)
1462
1466
  a += o[v].length + 1;
1463
- const l = o[i - 1].split(" "), p = Math.max(1, Math.min(n, l.length));
1464
- for (let v = 0; v < p - 1; v++)
1467
+ const l = o[i - 1].split(" "), u = Math.max(1, Math.min(n, l.length));
1468
+ for (let v = 0; v < u - 1; v++)
1465
1469
  a += l[v].length + 1;
1466
- const f = Math.max(1, Math.min(r, l[p - 1].length + 1));
1470
+ const f = Math.max(1, Math.min(r, l[u - 1].length + 1));
1467
1471
  return a += f - 1, a;
1468
1472
  }
1469
- function Et(e, t) {
1473
+ function Lt(e, t) {
1470
1474
  const n = e.split(`
1471
1475
  `), r = Math.max(1, Math.min(t, n.length));
1472
1476
  let o = 0;
@@ -1474,30 +1478,30 @@ function Et(e, t) {
1474
1478
  o += n[i].length + 1;
1475
1479
  return o;
1476
1480
  }
1477
- const Zn = ft(
1478
- function({ value: t, onChange: n, placeholder: r, className: o, style: i, showLineNumbers: a = !1, onCursorChange: c, highlightLine: l }, p) {
1479
- const f = W(null), v = W(null), d = W(null);
1480
- ht(p, () => ({
1481
+ const tr = ht(
1482
+ function({ value: t, onChange: n, placeholder: r, className: o, style: i, showLineNumbers: a = !1, onCursorChange: c, highlightLine: l }, u) {
1483
+ const f = H(null), v = H(null), d = H(null);
1484
+ mt(u, () => ({
1481
1485
  goToLine(b) {
1482
- const u = f.current;
1483
- if (!u) return;
1484
- const m = Et(t, b);
1485
- u.focus(), u.setSelectionRange(m, m);
1486
- const N = parseFloat(getComputedStyle(u).lineHeight) || 18;
1487
- u.scrollTop = (Math.max(1, b) - 1) * N, y(), h();
1486
+ const p = f.current;
1487
+ if (!p) return;
1488
+ const h = Lt(t, b);
1489
+ p.focus(), p.setSelectionRange(h, h);
1490
+ const A = parseFloat(getComputedStyle(p).lineHeight) || 18;
1491
+ p.scrollTop = (Math.max(1, b) - 1) * A, y(), m();
1488
1492
  },
1489
- goToPosition(b, u, m) {
1490
- const N = f.current;
1491
- if (!N) return;
1492
- const S = Rt(t, b, u, m);
1493
- N.focus(), N.setSelectionRange(S, S);
1494
- const z = parseFloat(getComputedStyle(N).lineHeight) || 18;
1495
- N.scrollTop = (Math.max(1, b) - 1) * z, y(), h();
1493
+ goToPosition(b, p, h) {
1494
+ const A = f.current;
1495
+ if (!A) return;
1496
+ const C = Et(t, b, p, h);
1497
+ A.focus(), A.setSelectionRange(C, C);
1498
+ const z = parseFloat(getComputedStyle(A).lineHeight) || 18;
1499
+ A.scrollTop = (Math.max(1, b) - 1) * z, y(), m();
1496
1500
  }
1497
1501
  }), [t]);
1498
- const h = O(() => {
1502
+ const m = O(() => {
1499
1503
  if (!c || !f.current) return;
1500
- const b = Mt(t, f.current.selectionStart);
1504
+ const b = Rt(t, f.current.selectionStart);
1501
1505
  c(b);
1502
1506
  }, [c, t]), y = O(() => {
1503
1507
  const b = f.current;
@@ -1507,33 +1511,33 @@ const Zn = ft(
1507
1511
  if (l == null || l < 1) return;
1508
1512
  const b = f.current;
1509
1513
  if (!b) return;
1510
- const u = parseFloat(getComputedStyle(b).lineHeight) || 18, m = (l - 1) * u, N = m + u;
1511
- (m < b.scrollTop || N > b.scrollTop + b.clientHeight) && (b.scrollTop = m - b.clientHeight / 2 + u / 2), y();
1514
+ const p = parseFloat(getComputedStyle(b).lineHeight) || 18, h = (l - 1) * p, A = h + p;
1515
+ (h < b.scrollTop || A > b.scrollTop + b.clientHeight) && (b.scrollTop = h - b.clientHeight / 2 + p / 2), y();
1512
1516
  }, [l]);
1513
- const g = me(() => t.split(`
1514
- `).length, [t]), w = () => {
1517
+ const w = be(() => t.split(`
1518
+ `).length, [t]), g = () => {
1515
1519
  const b = [];
1516
- for (let u = 1; u <= g; u++)
1520
+ for (let p = 1; p <= w; p++)
1517
1521
  b.push(
1518
- /* @__PURE__ */ s("div", { className: `nc-csv-line-number ${l === u ? "nc-csv-highlight" : ""}`, children: u }, u)
1522
+ /* @__PURE__ */ s("div", { className: `nc-csv-line-number ${l === p ? "nc-csv-highlight" : ""}`, children: p }, p)
1519
1523
  );
1520
1524
  return /* @__PURE__ */ s("div", { className: "nc-csv-gutter", ref: d, children: b });
1521
- }, A = (b) => b ? b.split(`
1522
- `).map((m, N) => {
1523
- const S = m.split(" ");
1524
- return /* @__PURE__ */ k("div", { className: `nc-csv-line ${l === N + 1 ? "nc-csv-highlight" : ""}`, children: [
1525
- S.map((z, T) => /* @__PURE__ */ k("span", { children: [
1525
+ }, N = (b) => b ? b.split(`
1526
+ `).map((h, A) => {
1527
+ const C = h.split(" ");
1528
+ return /* @__PURE__ */ k("div", { className: `nc-csv-line ${l === A + 1 ? "nc-csv-highlight" : ""}`, children: [
1529
+ C.map((z, T) => /* @__PURE__ */ k("span", { children: [
1526
1530
  T > 0 && /* @__PURE__ */ s("span", { className: "nc-csv-tab-char", children: " " }),
1527
1531
  /* @__PURE__ */ s("span", { style: { color: ze[T % ze.length] }, children: z })
1528
1532
  ] }, T)),
1529
- m === "" && `
1533
+ h === "" && `
1530
1534
  `
1531
- ] }, N);
1535
+ ] }, A);
1532
1536
  }) : null;
1533
1537
  return /* @__PURE__ */ k("div", { className: `nc-csv-textarea-container ${a ? "nc-csv-with-gutter" : ""} ${o ?? ""}`, style: i, children: [
1534
- a && w(),
1538
+ a && g(),
1535
1539
  /* @__PURE__ */ k("div", { className: "nc-csv-textarea-editor", children: [
1536
- /* @__PURE__ */ s("div", { className: "nc-csv-textarea-backdrop", ref: v, children: /* @__PURE__ */ s("pre", { className: "nc-csv-textarea-highlights", children: A(t) }) }),
1540
+ /* @__PURE__ */ s("div", { className: "nc-csv-textarea-backdrop", ref: v, children: /* @__PURE__ */ s("pre", { className: "nc-csv-textarea-highlights", children: N(t) }) }),
1537
1541
  /* @__PURE__ */ s(
1538
1542
  "textarea",
1539
1543
  {
@@ -1541,12 +1545,12 @@ const Zn = ft(
1541
1545
  className: "nc-csv-textarea-input",
1542
1546
  value: t,
1543
1547
  onChange: (b) => {
1544
- n(b.target.value), requestAnimationFrame(h);
1548
+ n(b.target.value), requestAnimationFrame(m);
1545
1549
  },
1546
1550
  onScroll: y,
1547
- onSelect: h,
1548
- onKeyUp: h,
1549
- onClick: h,
1551
+ onSelect: m,
1552
+ onKeyUp: m,
1553
+ onClick: m,
1550
1554
  placeholder: r,
1551
1555
  spellCheck: !1,
1552
1556
  autoComplete: "off",
@@ -1557,24 +1561,24 @@ const Zn = ft(
1557
1561
  ] });
1558
1562
  }
1559
1563
  );
1560
- let ee = { notifications: [] };
1561
- const ve = /* @__PURE__ */ new Set(), Pe = /* @__PURE__ */ new Map();
1562
- function we() {
1563
- const e = ee.notifications.slice();
1564
- for (const t of Array.from(ve))
1564
+ let te = { notifications: [] };
1565
+ const we = /* @__PURE__ */ new Set(), Pe = /* @__PURE__ */ new Map();
1566
+ function ye() {
1567
+ const e = te.notifications.slice();
1568
+ for (const t of Array.from(we))
1565
1569
  try {
1566
1570
  t(e);
1567
1571
  } catch {
1568
1572
  }
1569
1573
  }
1570
1574
  function Tt(e) {
1571
- ve.add(e);
1575
+ we.add(e);
1572
1576
  try {
1573
- e(ee.notifications.slice());
1577
+ e(te.notifications.slice());
1574
1578
  } catch {
1575
1579
  }
1576
1580
  return () => {
1577
- ve.delete(e);
1581
+ we.delete(e);
1578
1582
  };
1579
1583
  }
1580
1584
  function zt(e) {
@@ -1585,23 +1589,64 @@ function zt(e) {
1585
1589
  type: r === "error" ? "danger" : r ?? "info",
1586
1590
  duration: n ?? 5e3
1587
1591
  };
1588
- return ee.notifications = [i, ...ee.notifications], we(), i.duration && i.duration > 0 && setTimeout(() => {
1589
- Fe(t);
1592
+ return te.notifications = [i, ...te.notifications], ye(), i.duration && i.duration > 0 && setTimeout(() => {
1593
+ Ve(t);
1590
1594
  }, i.duration), t;
1591
1595
  }
1592
- function Fe(e) {
1593
- const t = ee.notifications.find((r) => r.id === e);
1596
+ function Ve(e) {
1597
+ const t = te.notifications.find((r) => r.id === e);
1594
1598
  if (!t) return;
1595
- t.isRemoving = !0, we();
1599
+ t.isRemoving = !0, ye();
1596
1600
  const n = window.setTimeout(() => {
1597
- ee.notifications = ee.notifications.filter((r) => r.id !== e), we(), Pe.delete(e);
1601
+ te.notifications = te.notifications.filter((r) => r.id !== e), ye(), Pe.delete(e);
1598
1602
  }, 300);
1599
1603
  Pe.set(e, n);
1600
1604
  }
1601
- function Pt({ notification: e }) {
1602
- const { t } = U(), n = () => {
1605
+ function Pt({ type: e }) {
1606
+ switch (e) {
1607
+ case "success":
1608
+ return /* @__PURE__ */ s("svg", { viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ s(
1609
+ "path",
1610
+ {
1611
+ d: "M5 10.5l3.1 3.1L15 6.8",
1612
+ stroke: "currentColor",
1613
+ strokeWidth: "2",
1614
+ strokeLinecap: "round",
1615
+ strokeLinejoin: "round"
1616
+ }
1617
+ ) });
1618
+ case "danger":
1619
+ return /* @__PURE__ */ k("svg", { viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1620
+ /* @__PURE__ */ s("circle", { cx: "10", cy: "10", r: "7", stroke: "currentColor", strokeWidth: "2" }),
1621
+ /* @__PURE__ */ s("path", { d: "M10 6.5v4.25", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }),
1622
+ /* @__PURE__ */ s("circle", { cx: "10", cy: "13.75", r: "1", fill: "currentColor" })
1623
+ ] });
1624
+ case "warning":
1625
+ return /* @__PURE__ */ k("svg", { viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1626
+ /* @__PURE__ */ s(
1627
+ "path",
1628
+ {
1629
+ d: "M10 3.5 16 15H4L10 3.5Z",
1630
+ stroke: "currentColor",
1631
+ strokeWidth: "2",
1632
+ strokeLinejoin: "round"
1633
+ }
1634
+ ),
1635
+ /* @__PURE__ */ s("path", { d: "M10 7.5v3.5", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }),
1636
+ /* @__PURE__ */ s("circle", { cx: "10", cy: "13.25", r: "1", fill: "currentColor" })
1637
+ ] });
1638
+ default:
1639
+ return /* @__PURE__ */ k("svg", { viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1640
+ /* @__PURE__ */ s("circle", { cx: "10", cy: "10", r: "7", stroke: "currentColor", strokeWidth: "2" }),
1641
+ /* @__PURE__ */ s("path", { d: "M10 9v4", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }),
1642
+ /* @__PURE__ */ s("circle", { cx: "10", cy: "6.5", r: "1", fill: "currentColor" })
1643
+ ] });
1644
+ }
1645
+ }
1646
+ function Bt({ notification: e }) {
1647
+ const { t } = U(), n = e.type || "info", r = () => {
1603
1648
  if (e.title) return e.title;
1604
- switch (e.type) {
1649
+ switch (n) {
1605
1650
  case "success":
1606
1651
  return t("common.success");
1607
1652
  case "danger":
@@ -1611,48 +1656,50 @@ function Pt({ notification: e }) {
1611
1656
  default:
1612
1657
  return t("common.info");
1613
1658
  }
1614
- }, r = () => {
1615
- Fe(e.id);
1659
+ }, o = () => {
1660
+ Ve(e.id);
1616
1661
  };
1617
1662
  return /* @__PURE__ */ s(
1618
1663
  "div",
1619
1664
  {
1620
- className: `nc-notification nc-notification-${e.type || "info"}`,
1665
+ className: `nc-notification nc-notification-${n}`,
1621
1666
  children: /* @__PURE__ */ k("div", { className: "nc-notification-content", children: [
1622
- /* @__PURE__ */ k("div", { className: "nc-notification-body", style: { paddingRight: e.dismissible ? "8px" : "0" }, children: [
1623
- /* @__PURE__ */ s("div", { className: "nc-notification-title", children: n() }),
1667
+ /* @__PURE__ */ s("div", { className: `nc-notification-icon nc-notification-icon-${n}`, children: /* @__PURE__ */ s(Pt, { type: n }) }),
1668
+ /* @__PURE__ */ k("div", { className: "nc-notification-body", children: [
1669
+ /* @__PURE__ */ s("div", { className: "nc-notification-title", children: r() }),
1624
1670
  /* @__PURE__ */ s("div", { className: "nc-notification-message", children: e.message })
1625
1671
  ] }),
1626
1672
  e.dismissible && /* @__PURE__ */ s(
1627
1673
  "button",
1628
1674
  {
1629
1675
  className: "nc-notification-dismiss",
1630
- onClick: r,
1631
- children: /* @__PURE__ */ s(xe, { size: 16 })
1676
+ onClick: o,
1677
+ "aria-label": t("common.close"),
1678
+ children: /* @__PURE__ */ s(ke, { size: 16 })
1632
1679
  }
1633
1680
  )
1634
1681
  ] })
1635
1682
  }
1636
1683
  );
1637
1684
  }
1638
- function er() {
1639
- const [e, t] = E([]), [n, r] = E(/* @__PURE__ */ new Map()), [o, i] = E(/* @__PURE__ */ new Set()), a = W(null), c = W([]);
1640
- return B(() => Tt((p) => {
1641
- const f = new Set(c.current.map((d) => d.id)), v = p.filter((d) => !f.has(d.id)).map((d) => d.id);
1642
- v.length > 0 ? (t(p), i(new Set(v)), requestAnimationFrame(() => {
1685
+ function nr() {
1686
+ const [e, t] = E([]), [n, r] = E(/* @__PURE__ */ new Map()), [o, i] = E(/* @__PURE__ */ new Set()), a = H(null), c = H([]);
1687
+ return B(() => Tt((u) => {
1688
+ const f = new Set(c.current.map((d) => d.id)), v = u.filter((d) => !f.has(d.id)).map((d) => d.id);
1689
+ v.length > 0 ? (t(u), i(new Set(v)), requestAnimationFrame(() => {
1643
1690
  requestAnimationFrame(() => {
1644
1691
  i(/* @__PURE__ */ new Set());
1645
1692
  });
1646
- })) : t(p), c.current = p;
1693
+ })) : t(u), c.current = u;
1647
1694
  }), []), B(() => {
1648
1695
  if (!a.current) return;
1649
1696
  const l = /* @__PURE__ */ new Map();
1650
- let p = 0;
1697
+ let u = 0;
1651
1698
  const f = a.current.children;
1652
1699
  e.forEach((v, d) => {
1653
- if (l.set(v.id, p), f[d]) {
1654
- const h = f[d].offsetHeight;
1655
- v.isRemoving || (p += h + 12);
1700
+ if (l.set(v.id, u), f[d]) {
1701
+ const m = f[d].offsetHeight;
1702
+ v.isRemoving || (u += m + 12);
1656
1703
  }
1657
1704
  }), r(l);
1658
1705
  }, [e]), /* @__PURE__ */ s(
@@ -1660,10 +1707,11 @@ function er() {
1660
1707
  {
1661
1708
  style: {
1662
1709
  position: "fixed",
1663
- top: "16px",
1664
- left: "16px",
1710
+ top: "24px",
1711
+ left: "24px",
1665
1712
  zIndex: 9999,
1666
- pointerEvents: "none"
1713
+ pointerEvents: "none",
1714
+ width: "min(340px, calc(100vw - 32px))"
1667
1715
  },
1668
1716
  children: /* @__PURE__ */ s(
1669
1717
  "div",
@@ -1671,10 +1719,11 @@ function er() {
1671
1719
  ref: a,
1672
1720
  style: {
1673
1721
  pointerEvents: "auto",
1674
- position: "relative"
1722
+ position: "relative",
1723
+ width: "100%"
1675
1724
  },
1676
1725
  children: e.map((l) => {
1677
- const p = o.has(l.id), f = l.isRemoving, v = n.get(l.id) || 0;
1726
+ const u = o.has(l.id), f = l.isRemoving, v = n.get(l.id) || 0;
1678
1727
  return /* @__PURE__ */ s(
1679
1728
  "div",
1680
1729
  {
@@ -1682,13 +1731,13 @@ function er() {
1682
1731
  position: "absolute",
1683
1732
  top: 0,
1684
1733
  left: 0,
1685
- transform: p ? "translateY(-120px)" : `translateY(${v}px)`,
1734
+ transform: u ? `translate3d(-40px, ${v}px, 0)` : `translate3d(0, ${v}px, 0)`,
1686
1735
  // Only animate transform when not leaving, animate opacity always
1687
1736
  transition: f ? "opacity 300ms ease-out" : "transform 300ms ease-out, opacity 300ms ease-out",
1688
1737
  opacity: f ? 0 : 1,
1689
1738
  width: "100%"
1690
1739
  },
1691
- children: /* @__PURE__ */ s(Pt, { notification: l })
1740
+ children: /* @__PURE__ */ s(Bt, { notification: l })
1692
1741
  },
1693
1742
  l.id
1694
1743
  );
@@ -1698,13 +1747,13 @@ function er() {
1698
1747
  }
1699
1748
  );
1700
1749
  }
1701
- function Lt(e) {
1750
+ function Dt(e) {
1702
1751
  return zt(e);
1703
1752
  }
1704
- const tr = {
1705
- show: (e) => Lt(e)
1753
+ const rr = {
1754
+ show: (e) => Dt(e)
1706
1755
  };
1707
- function nr(e) {
1756
+ function or(e) {
1708
1757
  const t = bt.createInstance(), n = {};
1709
1758
  for (const o in e)
1710
1759
  n[o] = { translation: e[o] };
@@ -1725,7 +1774,7 @@ function nr(e) {
1725
1774
  }
1726
1775
  }).observe(document.documentElement, { attributes: !0 }), t;
1727
1776
  }
1728
- class Bt {
1777
+ class Wt {
1729
1778
  constructor() {
1730
1779
  q(this, "apps", /* @__PURE__ */ new Map());
1731
1780
  }
@@ -1765,8 +1814,8 @@ class Bt {
1765
1814
  return this.apps.has(t);
1766
1815
  }
1767
1816
  }
1768
- const oe = new Bt(), Le = "nc-ui-app-state";
1769
- class Dt {
1817
+ const se = new Wt(), Be = "nc-ui-app-state";
1818
+ class Ht {
1770
1819
  constructor() {
1771
1820
  q(this, "state");
1772
1821
  q(this, "listeners", /* @__PURE__ */ new Map());
@@ -1774,7 +1823,7 @@ class Dt {
1774
1823
  }
1775
1824
  loadState() {
1776
1825
  try {
1777
- const t = localStorage.getItem(Le);
1826
+ const t = localStorage.getItem(Be);
1778
1827
  if (t)
1779
1828
  return JSON.parse(t);
1780
1829
  } catch {
@@ -1783,7 +1832,7 @@ class Dt {
1783
1832
  }
1784
1833
  saveState() {
1785
1834
  try {
1786
- localStorage.setItem(Le, JSON.stringify(this.state));
1835
+ localStorage.setItem(Be, JSON.stringify(this.state));
1787
1836
  } catch {
1788
1837
  }
1789
1838
  }
@@ -1813,8 +1862,8 @@ class Dt {
1813
1862
  (r = this.listeners.get(t)) == null || r.forEach((o) => o(n));
1814
1863
  }
1815
1864
  }
1816
- const _ = new Dt();
1817
- class Ht {
1865
+ const _ = new Ht();
1866
+ class Ot {
1818
1867
  constructor() {
1819
1868
  q(this, "apps", []);
1820
1869
  q(this, "activeAppId", null);
@@ -1831,7 +1880,7 @@ class Ht {
1831
1880
  */
1832
1881
  async launchApp(t, n) {
1833
1882
  const { launchInBackground: r = !1 } = n || {};
1834
- if (!oe.has(t))
1883
+ if (!se.has(t))
1835
1884
  return console.error(`Cannot launch app "${t}": not registered`), null;
1836
1885
  const o = this.apps.find((a) => a.appId === t);
1837
1886
  if (o)
@@ -1907,7 +1956,7 @@ class Ht {
1907
1956
  * Get the currently active app definition.
1908
1957
  */
1909
1958
  getActiveApp() {
1910
- return this.activeAppId ? oe.get(this.activeAppId) ?? null : null;
1959
+ return this.activeAppId ? se.get(this.activeAppId) ?? null : null;
1911
1960
  }
1912
1961
  /**
1913
1962
  * Get all running apps.
@@ -1933,14 +1982,14 @@ class Ht {
1933
1982
  this.listeners.forEach((t) => t());
1934
1983
  }
1935
1984
  }
1936
- const G = new Ht(), Ve = se(null);
1937
- function Wt() {
1938
- const e = Q(Ve);
1985
+ const V = new Ot(), je = ie(null);
1986
+ function Ft() {
1987
+ const e = Z(je);
1939
1988
  if (!e)
1940
1989
  throw new Error("useApp must be used inside an App");
1941
1990
  return e;
1942
1991
  }
1943
- function Ot({ size: e = 16 }) {
1992
+ function Vt({ size: e = 16 }) {
1944
1993
  return /* @__PURE__ */ k(
1945
1994
  "svg",
1946
1995
  {
@@ -1959,7 +2008,7 @@ function Ot({ size: e = 16 }) {
1959
2008
  }
1960
2009
  );
1961
2010
  }
1962
- function Ft({ title: e, onClose: t, onBack: n, toolbar: r, hideBackButton: o }) {
2011
+ function jt({ title: e, onClose: t, onBack: n, toolbar: r, hideBackButton: o }) {
1963
2012
  return /* @__PURE__ */ k("div", { className: "nc-app-title-bar", children: [
1964
2013
  /* @__PURE__ */ k("div", { className: "nc-app-title-bar-left", children: [
1965
2014
  n && !o && /* @__PURE__ */ s(
@@ -1969,18 +2018,18 @@ function Ft({ title: e, onClose: t, onBack: n, toolbar: r, hideBackButton: o })
1969
2018
  onClick: n,
1970
2019
  title: "Back",
1971
2020
  "aria-label": "Go back",
1972
- children: /* @__PURE__ */ s(Ot, { size: 16 })
2021
+ children: /* @__PURE__ */ s(Vt, { size: 16 })
1973
2022
  }
1974
2023
  ),
1975
2024
  /* @__PURE__ */ s("span", { className: "nc-app-title-bar-title", children: e })
1976
2025
  ] }),
1977
2026
  /* @__PURE__ */ k("div", { className: "nc-app-title-bar-right", children: [
1978
2027
  r && /* @__PURE__ */ s("div", { className: "nc-app-title-bar-toolbar", children: r }),
1979
- /* @__PURE__ */ s(We, { onClick: t, "aria-label": "Close application" })
2028
+ /* @__PURE__ */ s(Oe, { onClick: t, "aria-label": "Close application" })
1980
2029
  ] })
1981
2030
  ] });
1982
2031
  }
1983
- class Vt extends ke.Component {
2032
+ class Gt extends Ne.Component {
1984
2033
  constructor(t) {
1985
2034
  super(t), this.state = { hasError: !1 };
1986
2035
  }
@@ -2013,38 +2062,38 @@ class Vt extends ke.Component {
2013
2062
  ) : this.props.children;
2014
2063
  }
2015
2064
  }
2016
- function Ye({ appId: e, isActive: t, onClose: n }) {
2017
- const { t: r } = U(), o = oe.get(e), [i, a] = E(""), [c, l] = E(null), [p, f] = E(null), [v, d] = E(!1), [h, y] = E(!1);
2018
- ke.useEffect(() => {
2065
+ function Ge({ appId: e, isActive: t, onClose: n }) {
2066
+ const { t: r } = U(), o = se.get(e), [i, a] = E(""), [c, l] = E(null), [u, f] = E(null), [v, d] = E(!1), [m, y] = E(!1);
2067
+ Ne.useEffect(() => {
2019
2068
  o != null && o.titleKey && a(r(o.titleKey));
2020
2069
  }, [o, r]);
2021
- const g = O((x) => {
2070
+ const w = O((x) => {
2022
2071
  a(x);
2023
- }, []), w = O((x) => {
2072
+ }, []), g = O((x) => {
2024
2073
  l(() => x);
2025
- }, []), A = O(() => {
2074
+ }, []), N = O(() => {
2026
2075
  l(null);
2027
2076
  }, []), b = O((x) => {
2028
2077
  f(x);
2029
- }, []), u = O(() => {
2078
+ }, []), p = O(() => {
2030
2079
  f(null);
2031
- }, []), m = O((x) => {
2080
+ }, []), h = O((x) => {
2032
2081
  d(x);
2033
- }, []), N = O((x) => {
2082
+ }, []), A = O((x) => {
2034
2083
  y(x);
2035
- }, []), S = me(() => ({
2036
- setTitle: g,
2037
- setBackHandler: w,
2038
- clearBackHandler: A,
2084
+ }, []), C = be(() => ({
2085
+ setTitle: w,
2086
+ setBackHandler: g,
2087
+ clearBackHandler: N,
2039
2088
  setToolbar: b,
2040
- clearToolbar: u,
2041
- setHideBackButton: m,
2042
- setHideTitleBar: N,
2089
+ clearToolbar: p,
2090
+ setHideBackButton: h,
2091
+ setHideTitleBar: A,
2043
2092
  close: n
2044
- }), [g, w, A, b, u, m, N, n]);
2093
+ }), [w, g, N, b, p, h, A, n]);
2045
2094
  if (!o)
2046
2095
  return null;
2047
- const z = o.component, T = !o.hideTitleBar && !h;
2096
+ const z = o.component, T = !o.hideTitleBar && !m;
2048
2097
  return /* @__PURE__ */ k(
2049
2098
  "div",
2050
2099
  {
@@ -2056,12 +2105,12 @@ function Ye({ appId: e, isActive: t, onClose: n }) {
2056
2105
  },
2057
2106
  children: [
2058
2107
  T && /* @__PURE__ */ s(
2059
- Ft,
2108
+ jt,
2060
2109
  {
2061
2110
  title: i,
2062
2111
  onClose: n,
2063
2112
  onBack: c ?? void 0,
2064
- toolbar: p,
2113
+ toolbar: u,
2065
2114
  hideBackButton: v
2066
2115
  }
2067
2116
  ),
@@ -2078,8 +2127,8 @@ function Ye({ appId: e, isActive: t, onClose: n }) {
2078
2127
  backgroundColor: "var(--nc-bg-tertiary)",
2079
2128
  position: "relative"
2080
2129
  },
2081
- children: /* @__PURE__ */ s(Ve.Provider, { value: S, children: /* @__PURE__ */ s(Vt, { appId: e, children: /* @__PURE__ */ s(
2082
- mt,
2130
+ children: /* @__PURE__ */ s(je.Provider, { value: C, children: /* @__PURE__ */ s(Gt, { appId: e, children: /* @__PURE__ */ s(
2131
+ gt,
2083
2132
  {
2084
2133
  fallback: /* @__PURE__ */ s(
2085
2134
  "div",
@@ -2102,21 +2151,21 @@ function Ye({ appId: e, isActive: t, onClose: n }) {
2102
2151
  }
2103
2152
  );
2104
2153
  }
2105
- const fe = 768, he = 1024, Ge = {
2154
+ const me = 768, ge = 1024, Ye = {
2106
2155
  isMobile: !1,
2107
2156
  isTablet: !1,
2108
2157
  isDesktop: !0,
2109
2158
  width: typeof window < "u" ? window.innerWidth : 1024,
2110
2159
  height: typeof window < "u" ? window.innerHeight : 768
2111
- }, je = se(Ge);
2112
- function rr({ children: e }) {
2160
+ }, Ke = ie(Ye);
2161
+ function sr({ children: e }) {
2113
2162
  const [t, n] = E(() => {
2114
- if (typeof window > "u") return Ge;
2163
+ if (typeof window > "u") return Ye;
2115
2164
  const r = window.innerWidth, o = window.innerHeight;
2116
2165
  return {
2117
- isMobile: r < fe,
2118
- isTablet: r >= fe && r < he,
2119
- isDesktop: r >= he,
2166
+ isMobile: r < me,
2167
+ isTablet: r >= me && r < ge,
2168
+ isDesktop: r >= ge,
2120
2169
  width: r,
2121
2170
  height: o
2122
2171
  };
@@ -2125,54 +2174,54 @@ function rr({ children: e }) {
2125
2174
  const r = () => {
2126
2175
  const o = window.innerWidth, i = window.innerHeight;
2127
2176
  n({
2128
- isMobile: o < fe,
2129
- isTablet: o >= fe && o < he,
2130
- isDesktop: o >= he,
2177
+ isMobile: o < me,
2178
+ isTablet: o >= me && o < ge,
2179
+ isDesktop: o >= ge,
2131
2180
  width: o,
2132
2181
  height: i
2133
2182
  });
2134
2183
  };
2135
2184
  return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
2136
- }, []), /* @__PURE__ */ s(je.Provider, { value: t, children: e });
2185
+ }, []), /* @__PURE__ */ s(Ke.Provider, { value: t, children: e });
2137
2186
  }
2138
- function Ke() {
2139
- return Q(je);
2187
+ function _e() {
2188
+ return Z(Ke);
2140
2189
  }
2141
- const Ne = "-", Yt = (e) => {
2142
- const t = jt(e), {
2190
+ const Ae = "-", Yt = (e) => {
2191
+ const t = _t(e), {
2143
2192
  conflictingClassGroups: n,
2144
2193
  conflictingClassGroupModifiers: r
2145
2194
  } = e;
2146
2195
  return {
2147
2196
  getClassGroupId: (a) => {
2148
- const c = a.split(Ne);
2149
- return c[0] === "" && c.length !== 1 && c.shift(), _e(c, t) || Gt(a);
2197
+ const c = a.split(Ae);
2198
+ return c[0] === "" && c.length !== 1 && c.shift(), Ue(c, t) || Kt(a);
2150
2199
  },
2151
2200
  getConflictingClassGroupIds: (a, c) => {
2152
2201
  const l = n[a] || [];
2153
2202
  return c && r[a] ? [...l, ...r[a]] : l;
2154
2203
  }
2155
2204
  };
2156
- }, _e = (e, t) => {
2205
+ }, Ue = (e, t) => {
2157
2206
  var a;
2158
2207
  if (e.length === 0)
2159
2208
  return t.classGroupId;
2160
- const n = e[0], r = t.nextPart.get(n), o = r ? _e(e.slice(1), r) : void 0;
2209
+ const n = e[0], r = t.nextPart.get(n), o = r ? Ue(e.slice(1), r) : void 0;
2161
2210
  if (o)
2162
2211
  return o;
2163
2212
  if (t.validators.length === 0)
2164
2213
  return;
2165
- const i = e.join(Ne);
2214
+ const i = e.join(Ae);
2166
2215
  return (a = t.validators.find(({
2167
2216
  validator: c
2168
2217
  }) => c(i))) == null ? void 0 : a.classGroupId;
2169
- }, Be = /^\[(.+)\]$/, Gt = (e) => {
2170
- if (Be.test(e)) {
2171
- const t = Be.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":"));
2218
+ }, De = /^\[(.+)\]$/, Kt = (e) => {
2219
+ if (De.test(e)) {
2220
+ const t = De.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":"));
2172
2221
  if (n)
2173
2222
  return "arbitrary.." + n;
2174
2223
  }
2175
- }, jt = (e) => {
2224
+ }, _t = (e) => {
2176
2225
  const {
2177
2226
  theme: t,
2178
2227
  prefix: n
@@ -2180,19 +2229,19 @@ const Ne = "-", Yt = (e) => {
2180
2229
  nextPart: /* @__PURE__ */ new Map(),
2181
2230
  validators: []
2182
2231
  };
2183
- return _t(Object.entries(e.classGroups), n).forEach(([i, a]) => {
2184
- ye(a, r, i, t);
2232
+ return qt(Object.entries(e.classGroups), n).forEach(([i, a]) => {
2233
+ xe(a, r, i, t);
2185
2234
  }), r;
2186
- }, ye = (e, t, n, r) => {
2235
+ }, xe = (e, t, n, r) => {
2187
2236
  e.forEach((o) => {
2188
2237
  if (typeof o == "string") {
2189
- const i = o === "" ? t : De(t, o);
2238
+ const i = o === "" ? t : We(t, o);
2190
2239
  i.classGroupId = n;
2191
2240
  return;
2192
2241
  }
2193
2242
  if (typeof o == "function") {
2194
- if (Kt(o)) {
2195
- ye(o(r), t, n, r);
2243
+ if (Ut(o)) {
2244
+ xe(o(r), t, n, r);
2196
2245
  return;
2197
2246
  }
2198
2247
  t.validators.push({
@@ -2202,21 +2251,21 @@ const Ne = "-", Yt = (e) => {
2202
2251
  return;
2203
2252
  }
2204
2253
  Object.entries(o).forEach(([i, a]) => {
2205
- ye(a, De(t, i), n, r);
2254
+ xe(a, We(t, i), n, r);
2206
2255
  });
2207
2256
  });
2208
- }, De = (e, t) => {
2257
+ }, We = (e, t) => {
2209
2258
  let n = e;
2210
- return t.split(Ne).forEach((r) => {
2259
+ return t.split(Ae).forEach((r) => {
2211
2260
  n.nextPart.has(r) || n.nextPart.set(r, {
2212
2261
  nextPart: /* @__PURE__ */ new Map(),
2213
2262
  validators: []
2214
2263
  }), n = n.nextPart.get(r);
2215
2264
  }), n;
2216
- }, Kt = (e) => e.isThemeGetter, _t = (e, t) => t ? e.map(([n, r]) => {
2265
+ }, Ut = (e) => e.isThemeGetter, qt = (e, t) => t ? e.map(([n, r]) => {
2217
2266
  const o = r.map((i) => typeof i == "string" ? t + i : typeof i == "object" ? Object.fromEntries(Object.entries(i).map(([a, c]) => [t + a, c])) : i);
2218
2267
  return [n, o];
2219
- }) : e, Ut = (e) => {
2268
+ }) : e, Xt = (e) => {
2220
2269
  if (e < 1)
2221
2270
  return {
2222
2271
  get: () => {
@@ -2240,40 +2289,40 @@ const Ne = "-", Yt = (e) => {
2240
2289
  n.has(i) ? n.set(i, a) : o(i, a);
2241
2290
  }
2242
2291
  };
2243
- }, Ue = "!", qt = (e) => {
2292
+ }, qe = "!", Jt = (e) => {
2244
2293
  const {
2245
2294
  separator: t,
2246
2295
  experimentalParseClassName: n
2247
2296
  } = e, r = t.length === 1, o = t[0], i = t.length, a = (c) => {
2248
2297
  const l = [];
2249
- let p = 0, f = 0, v;
2250
- for (let w = 0; w < c.length; w++) {
2251
- let A = c[w];
2252
- if (p === 0) {
2253
- if (A === o && (r || c.slice(w, w + i) === t)) {
2254
- l.push(c.slice(f, w)), f = w + i;
2298
+ let u = 0, f = 0, v;
2299
+ for (let g = 0; g < c.length; g++) {
2300
+ let N = c[g];
2301
+ if (u === 0) {
2302
+ if (N === o && (r || c.slice(g, g + i) === t)) {
2303
+ l.push(c.slice(f, g)), f = g + i;
2255
2304
  continue;
2256
2305
  }
2257
- if (A === "/") {
2258
- v = w;
2306
+ if (N === "/") {
2307
+ v = g;
2259
2308
  continue;
2260
2309
  }
2261
2310
  }
2262
- A === "[" ? p++ : A === "]" && p--;
2311
+ N === "[" ? u++ : N === "]" && u--;
2263
2312
  }
2264
- const d = l.length === 0 ? c : c.substring(f), h = d.startsWith(Ue), y = h ? d.substring(1) : d, g = v && v > f ? v - f : void 0;
2313
+ const d = l.length === 0 ? c : c.substring(f), m = d.startsWith(qe), y = m ? d.substring(1) : d, w = v && v > f ? v - f : void 0;
2265
2314
  return {
2266
2315
  modifiers: l,
2267
- hasImportantModifier: h,
2316
+ hasImportantModifier: m,
2268
2317
  baseClassName: y,
2269
- maybePostfixModifierPosition: g
2318
+ maybePostfixModifierPosition: w
2270
2319
  };
2271
2320
  };
2272
2321
  return n ? (c) => n({
2273
2322
  className: c,
2274
2323
  parseClassName: a
2275
2324
  }) : a;
2276
- }, Xt = (e) => {
2325
+ }, Zt = (e) => {
2277
2326
  if (e.length <= 1)
2278
2327
  return e;
2279
2328
  const t = [];
@@ -2281,120 +2330,120 @@ const Ne = "-", Yt = (e) => {
2281
2330
  return e.forEach((r) => {
2282
2331
  r[0] === "[" ? (t.push(...n.sort(), r), n = []) : n.push(r);
2283
2332
  }), t.push(...n.sort()), t;
2284
- }, Jt = (e) => ({
2285
- cache: Ut(e.cacheSize),
2286
- parseClassName: qt(e),
2333
+ }, Qt = (e) => ({
2334
+ cache: Xt(e.cacheSize),
2335
+ parseClassName: Jt(e),
2287
2336
  ...Yt(e)
2288
- }), Qt = /\s+/, Zt = (e, t) => {
2337
+ }), en = /\s+/, tn = (e, t) => {
2289
2338
  const {
2290
2339
  parseClassName: n,
2291
2340
  getClassGroupId: r,
2292
2341
  getConflictingClassGroupIds: o
2293
- } = t, i = [], a = e.trim().split(Qt);
2342
+ } = t, i = [], a = e.trim().split(en);
2294
2343
  let c = "";
2295
2344
  for (let l = a.length - 1; l >= 0; l -= 1) {
2296
- const p = a[l], {
2345
+ const u = a[l], {
2297
2346
  modifiers: f,
2298
2347
  hasImportantModifier: v,
2299
2348
  baseClassName: d,
2300
- maybePostfixModifierPosition: h
2301
- } = n(p);
2302
- let y = !!h, g = r(y ? d.substring(0, h) : d);
2303
- if (!g) {
2349
+ maybePostfixModifierPosition: m
2350
+ } = n(u);
2351
+ let y = !!m, w = r(y ? d.substring(0, m) : d);
2352
+ if (!w) {
2304
2353
  if (!y) {
2305
- c = p + (c.length > 0 ? " " + c : c);
2354
+ c = u + (c.length > 0 ? " " + c : c);
2306
2355
  continue;
2307
2356
  }
2308
- if (g = r(d), !g) {
2309
- c = p + (c.length > 0 ? " " + c : c);
2357
+ if (w = r(d), !w) {
2358
+ c = u + (c.length > 0 ? " " + c : c);
2310
2359
  continue;
2311
2360
  }
2312
2361
  y = !1;
2313
2362
  }
2314
- const w = Xt(f).join(":"), A = v ? w + Ue : w, b = A + g;
2363
+ const g = Zt(f).join(":"), N = v ? g + qe : g, b = N + w;
2315
2364
  if (i.includes(b))
2316
2365
  continue;
2317
2366
  i.push(b);
2318
- const u = o(g, y);
2319
- for (let m = 0; m < u.length; ++m) {
2320
- const N = u[m];
2321
- i.push(A + N);
2367
+ const p = o(w, y);
2368
+ for (let h = 0; h < p.length; ++h) {
2369
+ const A = p[h];
2370
+ i.push(N + A);
2322
2371
  }
2323
- c = p + (c.length > 0 ? " " + c : c);
2372
+ c = u + (c.length > 0 ? " " + c : c);
2324
2373
  }
2325
2374
  return c;
2326
2375
  };
2327
- function en() {
2376
+ function nn() {
2328
2377
  let e = 0, t, n, r = "";
2329
2378
  for (; e < arguments.length; )
2330
- (t = arguments[e++]) && (n = qe(t)) && (r && (r += " "), r += n);
2379
+ (t = arguments[e++]) && (n = Xe(t)) && (r && (r += " "), r += n);
2331
2380
  return r;
2332
2381
  }
2333
- const qe = (e) => {
2382
+ const Xe = (e) => {
2334
2383
  if (typeof e == "string")
2335
2384
  return e;
2336
2385
  let t, n = "";
2337
2386
  for (let r = 0; r < e.length; r++)
2338
- e[r] && (t = qe(e[r])) && (n && (n += " "), n += t);
2387
+ e[r] && (t = Xe(e[r])) && (n && (n += " "), n += t);
2339
2388
  return n;
2340
2389
  };
2341
- function tn(e, ...t) {
2390
+ function rn(e, ...t) {
2342
2391
  let n, r, o, i = a;
2343
2392
  function a(l) {
2344
- const p = t.reduce((f, v) => v(f), e());
2345
- return n = Jt(p), r = n.cache.get, o = n.cache.set, i = c, c(l);
2393
+ const u = t.reduce((f, v) => v(f), e());
2394
+ return n = Qt(u), r = n.cache.get, o = n.cache.set, i = c, c(l);
2346
2395
  }
2347
2396
  function c(l) {
2348
- const p = r(l);
2349
- if (p)
2350
- return p;
2351
- const f = Zt(l, n);
2397
+ const u = r(l);
2398
+ if (u)
2399
+ return u;
2400
+ const f = tn(l, n);
2352
2401
  return o(l, f), f;
2353
2402
  }
2354
2403
  return function() {
2355
- return i(en.apply(null, arguments));
2404
+ return i(nn.apply(null, arguments));
2356
2405
  };
2357
2406
  }
2358
- const H = (e) => {
2407
+ const D = (e) => {
2359
2408
  const t = (n) => n[e] || [];
2360
2409
  return t.isThemeGetter = !0, t;
2361
- }, Xe = /^\[(?:([a-z-]+):)?(.+)\]$/i, nn = /^\d+\/\d+$/, rn = /* @__PURE__ */ new Set(["px", "full", "screen"]), on = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, sn = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, cn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, an = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ln = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, j = (e) => re(e) || rn.has(e) || nn.test(e), X = (e) => ie(e, "length", bn), re = (e) => !!e && !Number.isNaN(Number(e)), be = (e) => ie(e, "number", re), ae = (e) => !!e && Number.isInteger(Number(e)), dn = (e) => e.endsWith("%") && re(e.slice(0, -1)), I = (e) => Xe.test(e), J = (e) => on.test(e), un = /* @__PURE__ */ new Set(["length", "size", "percentage"]), pn = (e) => ie(e, un, Je), fn = (e) => ie(e, "position", Je), hn = /* @__PURE__ */ new Set(["image", "url"]), mn = (e) => ie(e, hn, wn), gn = (e) => ie(e, "", vn), le = () => !0, ie = (e, t, n) => {
2362
- const r = Xe.exec(e);
2410
+ }, Je = /^\[(?:([a-z-]+):)?(.+)\]$/i, on = /^\d+\/\d+$/, sn = /* @__PURE__ */ new Set(["px", "full", "screen"]), cn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, an = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ln = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, dn = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, un = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Y = (e) => oe(e) || sn.has(e) || on.test(e), X = (e) => ce(e, "length", wn), oe = (e) => !!e && !Number.isNaN(Number(e)), ve = (e) => ce(e, "number", oe), le = (e) => !!e && Number.isInteger(Number(e)), pn = (e) => e.endsWith("%") && oe(e.slice(0, -1)), M = (e) => Je.test(e), J = (e) => cn.test(e), fn = /* @__PURE__ */ new Set(["length", "size", "percentage"]), hn = (e) => ce(e, fn, Ze), mn = (e) => ce(e, "position", Ze), gn = /* @__PURE__ */ new Set(["image", "url"]), bn = (e) => ce(e, gn, xn), vn = (e) => ce(e, "", yn), de = () => !0, ce = (e, t, n) => {
2411
+ const r = Je.exec(e);
2363
2412
  return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
2364
- }, bn = (e) => (
2413
+ }, wn = (e) => (
2365
2414
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
2366
2415
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
2367
2416
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
2368
- sn.test(e) && !cn.test(e)
2369
- ), Je = () => !1, vn = (e) => an.test(e), wn = (e) => ln.test(e), yn = () => {
2370
- const e = H("colors"), t = H("spacing"), n = H("blur"), r = H("brightness"), o = H("borderColor"), i = H("borderRadius"), a = H("borderSpacing"), c = H("borderWidth"), l = H("contrast"), p = H("grayscale"), f = H("hueRotate"), v = H("invert"), d = H("gap"), h = H("gradientColorStops"), y = H("gradientColorStopPositions"), g = H("inset"), w = H("margin"), A = H("opacity"), b = H("padding"), u = H("saturate"), m = H("scale"), N = H("sepia"), S = H("skew"), z = H("space"), T = H("translate"), x = () => ["auto", "contain", "none"], R = () => ["auto", "hidden", "clip", "visible", "scroll"], C = () => ["auto", I, t], $ = () => [I, t], P = () => ["", j, X], F = () => ["auto", re, I], Z = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Y = () => ["solid", "dashed", "dotted", "double", "none"], M = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], L = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], D = () => ["", "0", I], ge = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], V = () => [re, I];
2417
+ an.test(e) && !ln.test(e)
2418
+ ), Ze = () => !1, yn = (e) => dn.test(e), xn = (e) => un.test(e), kn = () => {
2419
+ const e = D("colors"), t = D("spacing"), n = D("blur"), r = D("brightness"), o = D("borderColor"), i = D("borderRadius"), a = D("borderSpacing"), c = D("borderWidth"), l = D("contrast"), u = D("grayscale"), f = D("hueRotate"), v = D("invert"), d = D("gap"), m = D("gradientColorStops"), y = D("gradientColorStopPositions"), w = D("inset"), g = D("margin"), N = D("opacity"), b = D("padding"), p = D("saturate"), h = D("scale"), A = D("sepia"), C = D("skew"), z = D("space"), T = D("translate"), x = () => ["auto", "contain", "none"], I = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", M, t], $ = () => [M, t], L = () => ["", Y, X], F = () => ["auto", oe, M], Q = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], G = () => ["solid", "dashed", "dotted", "double", "none"], R = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], P = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], W = () => ["", "0", M], ee = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], j = () => [oe, M];
2371
2420
  return {
2372
2421
  cacheSize: 500,
2373
2422
  separator: ":",
2374
2423
  theme: {
2375
- colors: [le],
2376
- spacing: [j, X],
2377
- blur: ["none", "", J, I],
2378
- brightness: V(),
2424
+ colors: [de],
2425
+ spacing: [Y, X],
2426
+ blur: ["none", "", J, M],
2427
+ brightness: j(),
2379
2428
  borderColor: [e],
2380
- borderRadius: ["none", "", "full", J, I],
2429
+ borderRadius: ["none", "", "full", J, M],
2381
2430
  borderSpacing: $(),
2382
- borderWidth: P(),
2383
- contrast: V(),
2384
- grayscale: D(),
2385
- hueRotate: V(),
2386
- invert: D(),
2431
+ borderWidth: L(),
2432
+ contrast: j(),
2433
+ grayscale: W(),
2434
+ hueRotate: j(),
2435
+ invert: W(),
2387
2436
  gap: $(),
2388
2437
  gradientColorStops: [e],
2389
- gradientColorStopPositions: [dn, X],
2390
- inset: C(),
2391
- margin: C(),
2392
- opacity: V(),
2438
+ gradientColorStopPositions: [pn, X],
2439
+ inset: S(),
2440
+ margin: S(),
2441
+ opacity: j(),
2393
2442
  padding: $(),
2394
- saturate: V(),
2395
- scale: V(),
2396
- sepia: D(),
2397
- skew: V(),
2443
+ saturate: j(),
2444
+ scale: j(),
2445
+ sepia: W(),
2446
+ skew: j(),
2398
2447
  space: $(),
2399
2448
  translate: $()
2400
2449
  },
@@ -2405,7 +2454,7 @@ const H = (e) => {
2405
2454
  * @see https://tailwindcss.com/docs/aspect-ratio
2406
2455
  */
2407
2456
  aspect: [{
2408
- aspect: ["auto", "square", "video", I]
2457
+ aspect: ["auto", "square", "video", M]
2409
2458
  }],
2410
2459
  /**
2411
2460
  * Container
@@ -2424,14 +2473,14 @@ const H = (e) => {
2424
2473
  * @see https://tailwindcss.com/docs/break-after
2425
2474
  */
2426
2475
  "break-after": [{
2427
- "break-after": ge()
2476
+ "break-after": ee()
2428
2477
  }],
2429
2478
  /**
2430
2479
  * Break Before
2431
2480
  * @see https://tailwindcss.com/docs/break-before
2432
2481
  */
2433
2482
  "break-before": [{
2434
- "break-before": ge()
2483
+ "break-before": ee()
2435
2484
  }],
2436
2485
  /**
2437
2486
  * Break Inside
@@ -2490,28 +2539,28 @@ const H = (e) => {
2490
2539
  * @see https://tailwindcss.com/docs/object-position
2491
2540
  */
2492
2541
  "object-position": [{
2493
- object: [...Z(), I]
2542
+ object: [...Q(), M]
2494
2543
  }],
2495
2544
  /**
2496
2545
  * Overflow
2497
2546
  * @see https://tailwindcss.com/docs/overflow
2498
2547
  */
2499
2548
  overflow: [{
2500
- overflow: R()
2549
+ overflow: I()
2501
2550
  }],
2502
2551
  /**
2503
2552
  * Overflow X
2504
2553
  * @see https://tailwindcss.com/docs/overflow
2505
2554
  */
2506
2555
  "overflow-x": [{
2507
- "overflow-x": R()
2556
+ "overflow-x": I()
2508
2557
  }],
2509
2558
  /**
2510
2559
  * Overflow Y
2511
2560
  * @see https://tailwindcss.com/docs/overflow
2512
2561
  */
2513
2562
  "overflow-y": [{
2514
- "overflow-y": R()
2563
+ "overflow-y": I()
2515
2564
  }],
2516
2565
  /**
2517
2566
  * Overscroll Behavior
@@ -2544,63 +2593,63 @@ const H = (e) => {
2544
2593
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2545
2594
  */
2546
2595
  inset: [{
2547
- inset: [g]
2596
+ inset: [w]
2548
2597
  }],
2549
2598
  /**
2550
2599
  * Right / Left
2551
2600
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2552
2601
  */
2553
2602
  "inset-x": [{
2554
- "inset-x": [g]
2603
+ "inset-x": [w]
2555
2604
  }],
2556
2605
  /**
2557
2606
  * Top / Bottom
2558
2607
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2559
2608
  */
2560
2609
  "inset-y": [{
2561
- "inset-y": [g]
2610
+ "inset-y": [w]
2562
2611
  }],
2563
2612
  /**
2564
2613
  * Start
2565
2614
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2566
2615
  */
2567
2616
  start: [{
2568
- start: [g]
2617
+ start: [w]
2569
2618
  }],
2570
2619
  /**
2571
2620
  * End
2572
2621
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2573
2622
  */
2574
2623
  end: [{
2575
- end: [g]
2624
+ end: [w]
2576
2625
  }],
2577
2626
  /**
2578
2627
  * Top
2579
2628
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2580
2629
  */
2581
2630
  top: [{
2582
- top: [g]
2631
+ top: [w]
2583
2632
  }],
2584
2633
  /**
2585
2634
  * Right
2586
2635
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2587
2636
  */
2588
2637
  right: [{
2589
- right: [g]
2638
+ right: [w]
2590
2639
  }],
2591
2640
  /**
2592
2641
  * Bottom
2593
2642
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2594
2643
  */
2595
2644
  bottom: [{
2596
- bottom: [g]
2645
+ bottom: [w]
2597
2646
  }],
2598
2647
  /**
2599
2648
  * Left
2600
2649
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2601
2650
  */
2602
2651
  left: [{
2603
- left: [g]
2652
+ left: [w]
2604
2653
  }],
2605
2654
  /**
2606
2655
  * Visibility
@@ -2612,7 +2661,7 @@ const H = (e) => {
2612
2661
  * @see https://tailwindcss.com/docs/z-index
2613
2662
  */
2614
2663
  z: [{
2615
- z: ["auto", ae, I]
2664
+ z: ["auto", le, M]
2616
2665
  }],
2617
2666
  // Flexbox and Grid
2618
2667
  /**
@@ -2620,7 +2669,7 @@ const H = (e) => {
2620
2669
  * @see https://tailwindcss.com/docs/flex-basis
2621
2670
  */
2622
2671
  basis: [{
2623
- basis: C()
2672
+ basis: S()
2624
2673
  }],
2625
2674
  /**
2626
2675
  * Flex Direction
@@ -2641,35 +2690,35 @@ const H = (e) => {
2641
2690
  * @see https://tailwindcss.com/docs/flex
2642
2691
  */
2643
2692
  flex: [{
2644
- flex: ["1", "auto", "initial", "none", I]
2693
+ flex: ["1", "auto", "initial", "none", M]
2645
2694
  }],
2646
2695
  /**
2647
2696
  * Flex Grow
2648
2697
  * @see https://tailwindcss.com/docs/flex-grow
2649
2698
  */
2650
2699
  grow: [{
2651
- grow: D()
2700
+ grow: W()
2652
2701
  }],
2653
2702
  /**
2654
2703
  * Flex Shrink
2655
2704
  * @see https://tailwindcss.com/docs/flex-shrink
2656
2705
  */
2657
2706
  shrink: [{
2658
- shrink: D()
2707
+ shrink: W()
2659
2708
  }],
2660
2709
  /**
2661
2710
  * Order
2662
2711
  * @see https://tailwindcss.com/docs/order
2663
2712
  */
2664
2713
  order: [{
2665
- order: ["first", "last", "none", ae, I]
2714
+ order: ["first", "last", "none", le, M]
2666
2715
  }],
2667
2716
  /**
2668
2717
  * Grid Template Columns
2669
2718
  * @see https://tailwindcss.com/docs/grid-template-columns
2670
2719
  */
2671
2720
  "grid-cols": [{
2672
- "grid-cols": [le]
2721
+ "grid-cols": [de]
2673
2722
  }],
2674
2723
  /**
2675
2724
  * Grid Column Start / End
@@ -2677,8 +2726,8 @@ const H = (e) => {
2677
2726
  */
2678
2727
  "col-start-end": [{
2679
2728
  col: ["auto", {
2680
- span: ["full", ae, I]
2681
- }, I]
2729
+ span: ["full", le, M]
2730
+ }, M]
2682
2731
  }],
2683
2732
  /**
2684
2733
  * Grid Column Start
@@ -2699,7 +2748,7 @@ const H = (e) => {
2699
2748
  * @see https://tailwindcss.com/docs/grid-template-rows
2700
2749
  */
2701
2750
  "grid-rows": [{
2702
- "grid-rows": [le]
2751
+ "grid-rows": [de]
2703
2752
  }],
2704
2753
  /**
2705
2754
  * Grid Row Start / End
@@ -2707,8 +2756,8 @@ const H = (e) => {
2707
2756
  */
2708
2757
  "row-start-end": [{
2709
2758
  row: ["auto", {
2710
- span: [ae, I]
2711
- }, I]
2759
+ span: [le, M]
2760
+ }, M]
2712
2761
  }],
2713
2762
  /**
2714
2763
  * Grid Row Start
@@ -2736,14 +2785,14 @@ const H = (e) => {
2736
2785
  * @see https://tailwindcss.com/docs/grid-auto-columns
2737
2786
  */
2738
2787
  "auto-cols": [{
2739
- "auto-cols": ["auto", "min", "max", "fr", I]
2788
+ "auto-cols": ["auto", "min", "max", "fr", M]
2740
2789
  }],
2741
2790
  /**
2742
2791
  * Grid Auto Rows
2743
2792
  * @see https://tailwindcss.com/docs/grid-auto-rows
2744
2793
  */
2745
2794
  "auto-rows": [{
2746
- "auto-rows": ["auto", "min", "max", "fr", I]
2795
+ "auto-rows": ["auto", "min", "max", "fr", M]
2747
2796
  }],
2748
2797
  /**
2749
2798
  * Gap
@@ -2771,7 +2820,7 @@ const H = (e) => {
2771
2820
  * @see https://tailwindcss.com/docs/justify-content
2772
2821
  */
2773
2822
  "justify-content": [{
2774
- justify: ["normal", ...L()]
2823
+ justify: ["normal", ...P()]
2775
2824
  }],
2776
2825
  /**
2777
2826
  * Justify Items
@@ -2792,7 +2841,7 @@ const H = (e) => {
2792
2841
  * @see https://tailwindcss.com/docs/align-content
2793
2842
  */
2794
2843
  "align-content": [{
2795
- content: ["normal", ...L(), "baseline"]
2844
+ content: ["normal", ...P(), "baseline"]
2796
2845
  }],
2797
2846
  /**
2798
2847
  * Align Items
@@ -2813,7 +2862,7 @@ const H = (e) => {
2813
2862
  * @see https://tailwindcss.com/docs/place-content
2814
2863
  */
2815
2864
  "place-content": [{
2816
- "place-content": [...L(), "baseline"]
2865
+ "place-content": [...P(), "baseline"]
2817
2866
  }],
2818
2867
  /**
2819
2868
  * Place Items
@@ -2898,63 +2947,63 @@ const H = (e) => {
2898
2947
  * @see https://tailwindcss.com/docs/margin
2899
2948
  */
2900
2949
  m: [{
2901
- m: [w]
2950
+ m: [g]
2902
2951
  }],
2903
2952
  /**
2904
2953
  * Margin X
2905
2954
  * @see https://tailwindcss.com/docs/margin
2906
2955
  */
2907
2956
  mx: [{
2908
- mx: [w]
2957
+ mx: [g]
2909
2958
  }],
2910
2959
  /**
2911
2960
  * Margin Y
2912
2961
  * @see https://tailwindcss.com/docs/margin
2913
2962
  */
2914
2963
  my: [{
2915
- my: [w]
2964
+ my: [g]
2916
2965
  }],
2917
2966
  /**
2918
2967
  * Margin Start
2919
2968
  * @see https://tailwindcss.com/docs/margin
2920
2969
  */
2921
2970
  ms: [{
2922
- ms: [w]
2971
+ ms: [g]
2923
2972
  }],
2924
2973
  /**
2925
2974
  * Margin End
2926
2975
  * @see https://tailwindcss.com/docs/margin
2927
2976
  */
2928
2977
  me: [{
2929
- me: [w]
2978
+ me: [g]
2930
2979
  }],
2931
2980
  /**
2932
2981
  * Margin Top
2933
2982
  * @see https://tailwindcss.com/docs/margin
2934
2983
  */
2935
2984
  mt: [{
2936
- mt: [w]
2985
+ mt: [g]
2937
2986
  }],
2938
2987
  /**
2939
2988
  * Margin Right
2940
2989
  * @see https://tailwindcss.com/docs/margin
2941
2990
  */
2942
2991
  mr: [{
2943
- mr: [w]
2992
+ mr: [g]
2944
2993
  }],
2945
2994
  /**
2946
2995
  * Margin Bottom
2947
2996
  * @see https://tailwindcss.com/docs/margin
2948
2997
  */
2949
2998
  mb: [{
2950
- mb: [w]
2999
+ mb: [g]
2951
3000
  }],
2952
3001
  /**
2953
3002
  * Margin Left
2954
3003
  * @see https://tailwindcss.com/docs/margin
2955
3004
  */
2956
3005
  ml: [{
2957
- ml: [w]
3006
+ ml: [g]
2958
3007
  }],
2959
3008
  /**
2960
3009
  * Space Between X
@@ -2986,21 +3035,21 @@ const H = (e) => {
2986
3035
  * @see https://tailwindcss.com/docs/width
2987
3036
  */
2988
3037
  w: [{
2989
- w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", I, t]
3038
+ w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", M, t]
2990
3039
  }],
2991
3040
  /**
2992
3041
  * Min-Width
2993
3042
  * @see https://tailwindcss.com/docs/min-width
2994
3043
  */
2995
3044
  "min-w": [{
2996
- "min-w": [I, t, "min", "max", "fit"]
3045
+ "min-w": [M, t, "min", "max", "fit"]
2997
3046
  }],
2998
3047
  /**
2999
3048
  * Max-Width
3000
3049
  * @see https://tailwindcss.com/docs/max-width
3001
3050
  */
3002
3051
  "max-w": [{
3003
- "max-w": [I, t, "none", "full", "min", "max", "fit", "prose", {
3052
+ "max-w": [M, t, "none", "full", "min", "max", "fit", "prose", {
3004
3053
  screen: [J]
3005
3054
  }, J]
3006
3055
  }],
@@ -3009,28 +3058,28 @@ const H = (e) => {
3009
3058
  * @see https://tailwindcss.com/docs/height
3010
3059
  */
3011
3060
  h: [{
3012
- h: [I, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
3061
+ h: [M, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
3013
3062
  }],
3014
3063
  /**
3015
3064
  * Min-Height
3016
3065
  * @see https://tailwindcss.com/docs/min-height
3017
3066
  */
3018
3067
  "min-h": [{
3019
- "min-h": [I, t, "min", "max", "fit", "svh", "lvh", "dvh"]
3068
+ "min-h": [M, t, "min", "max", "fit", "svh", "lvh", "dvh"]
3020
3069
  }],
3021
3070
  /**
3022
3071
  * Max-Height
3023
3072
  * @see https://tailwindcss.com/docs/max-height
3024
3073
  */
3025
3074
  "max-h": [{
3026
- "max-h": [I, t, "min", "max", "fit", "svh", "lvh", "dvh"]
3075
+ "max-h": [M, t, "min", "max", "fit", "svh", "lvh", "dvh"]
3027
3076
  }],
3028
3077
  /**
3029
3078
  * Size
3030
3079
  * @see https://tailwindcss.com/docs/size
3031
3080
  */
3032
3081
  size: [{
3033
- size: [I, t, "auto", "min", "max", "fit"]
3082
+ size: [M, t, "auto", "min", "max", "fit"]
3034
3083
  }],
3035
3084
  // Typography
3036
3085
  /**
@@ -3055,14 +3104,14 @@ const H = (e) => {
3055
3104
  * @see https://tailwindcss.com/docs/font-weight
3056
3105
  */
3057
3106
  "font-weight": [{
3058
- font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", be]
3107
+ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", ve]
3059
3108
  }],
3060
3109
  /**
3061
3110
  * Font Family
3062
3111
  * @see https://tailwindcss.com/docs/font-family
3063
3112
  */
3064
3113
  "font-family": [{
3065
- font: [le]
3114
+ font: [de]
3066
3115
  }],
3067
3116
  /**
3068
3117
  * Font Variant Numeric
@@ -3099,35 +3148,35 @@ const H = (e) => {
3099
3148
  * @see https://tailwindcss.com/docs/letter-spacing
3100
3149
  */
3101
3150
  tracking: [{
3102
- tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", I]
3151
+ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", M]
3103
3152
  }],
3104
3153
  /**
3105
3154
  * Line Clamp
3106
3155
  * @see https://tailwindcss.com/docs/line-clamp
3107
3156
  */
3108
3157
  "line-clamp": [{
3109
- "line-clamp": ["none", re, be]
3158
+ "line-clamp": ["none", oe, ve]
3110
3159
  }],
3111
3160
  /**
3112
3161
  * Line Height
3113
3162
  * @see https://tailwindcss.com/docs/line-height
3114
3163
  */
3115
3164
  leading: [{
3116
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", j, I]
3165
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", Y, M]
3117
3166
  }],
3118
3167
  /**
3119
3168
  * List Style Image
3120
3169
  * @see https://tailwindcss.com/docs/list-style-image
3121
3170
  */
3122
3171
  "list-image": [{
3123
- "list-image": ["none", I]
3172
+ "list-image": ["none", M]
3124
3173
  }],
3125
3174
  /**
3126
3175
  * List Style Type
3127
3176
  * @see https://tailwindcss.com/docs/list-style-type
3128
3177
  */
3129
3178
  "list-style-type": [{
3130
- list: ["none", "disc", "decimal", I]
3179
+ list: ["none", "disc", "decimal", M]
3131
3180
  }],
3132
3181
  /**
3133
3182
  * List Style Position
@@ -3149,7 +3198,7 @@ const H = (e) => {
3149
3198
  * @see https://tailwindcss.com/docs/placeholder-opacity
3150
3199
  */
3151
3200
  "placeholder-opacity": [{
3152
- "placeholder-opacity": [A]
3201
+ "placeholder-opacity": [N]
3153
3202
  }],
3154
3203
  /**
3155
3204
  * Text Alignment
@@ -3170,7 +3219,7 @@ const H = (e) => {
3170
3219
  * @see https://tailwindcss.com/docs/text-opacity
3171
3220
  */
3172
3221
  "text-opacity": [{
3173
- "text-opacity": [A]
3222
+ "text-opacity": [N]
3174
3223
  }],
3175
3224
  /**
3176
3225
  * Text Decoration
@@ -3182,21 +3231,21 @@ const H = (e) => {
3182
3231
  * @see https://tailwindcss.com/docs/text-decoration-style
3183
3232
  */
3184
3233
  "text-decoration-style": [{
3185
- decoration: [...Y(), "wavy"]
3234
+ decoration: [...G(), "wavy"]
3186
3235
  }],
3187
3236
  /**
3188
3237
  * Text Decoration Thickness
3189
3238
  * @see https://tailwindcss.com/docs/text-decoration-thickness
3190
3239
  */
3191
3240
  "text-decoration-thickness": [{
3192
- decoration: ["auto", "from-font", j, X]
3241
+ decoration: ["auto", "from-font", Y, X]
3193
3242
  }],
3194
3243
  /**
3195
3244
  * Text Underline Offset
3196
3245
  * @see https://tailwindcss.com/docs/text-underline-offset
3197
3246
  */
3198
3247
  "underline-offset": [{
3199
- "underline-offset": ["auto", j, I]
3248
+ "underline-offset": ["auto", Y, M]
3200
3249
  }],
3201
3250
  /**
3202
3251
  * Text Decoration Color
@@ -3234,7 +3283,7 @@ const H = (e) => {
3234
3283
  * @see https://tailwindcss.com/docs/vertical-align
3235
3284
  */
3236
3285
  "vertical-align": [{
3237
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", I]
3286
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", M]
3238
3287
  }],
3239
3288
  /**
3240
3289
  * Whitespace
@@ -3262,7 +3311,7 @@ const H = (e) => {
3262
3311
  * @see https://tailwindcss.com/docs/content
3263
3312
  */
3264
3313
  content: [{
3265
- content: ["none", I]
3314
+ content: ["none", M]
3266
3315
  }],
3267
3316
  // Backgrounds
3268
3317
  /**
@@ -3285,7 +3334,7 @@ const H = (e) => {
3285
3334
  * @see https://tailwindcss.com/docs/background-opacity
3286
3335
  */
3287
3336
  "bg-opacity": [{
3288
- "bg-opacity": [A]
3337
+ "bg-opacity": [N]
3289
3338
  }],
3290
3339
  /**
3291
3340
  * Background Origin
@@ -3299,7 +3348,7 @@ const H = (e) => {
3299
3348
  * @see https://tailwindcss.com/docs/background-position
3300
3349
  */
3301
3350
  "bg-position": [{
3302
- bg: [...Z(), fn]
3351
+ bg: [...Q(), mn]
3303
3352
  }],
3304
3353
  /**
3305
3354
  * Background Repeat
@@ -3315,7 +3364,7 @@ const H = (e) => {
3315
3364
  * @see https://tailwindcss.com/docs/background-size
3316
3365
  */
3317
3366
  "bg-size": [{
3318
- bg: ["auto", "cover", "contain", pn]
3367
+ bg: ["auto", "cover", "contain", hn]
3319
3368
  }],
3320
3369
  /**
3321
3370
  * Background Image
@@ -3324,7 +3373,7 @@ const H = (e) => {
3324
3373
  "bg-image": [{
3325
3374
  bg: ["none", {
3326
3375
  "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
3327
- }, mn]
3376
+ }, bn]
3328
3377
  }],
3329
3378
  /**
3330
3379
  * Background Color
@@ -3359,21 +3408,21 @@ const H = (e) => {
3359
3408
  * @see https://tailwindcss.com/docs/gradient-color-stops
3360
3409
  */
3361
3410
  "gradient-from": [{
3362
- from: [h]
3411
+ from: [m]
3363
3412
  }],
3364
3413
  /**
3365
3414
  * Gradient Color Stops Via
3366
3415
  * @see https://tailwindcss.com/docs/gradient-color-stops
3367
3416
  */
3368
3417
  "gradient-via": [{
3369
- via: [h]
3418
+ via: [m]
3370
3419
  }],
3371
3420
  /**
3372
3421
  * Gradient Color Stops To
3373
3422
  * @see https://tailwindcss.com/docs/gradient-color-stops
3374
3423
  */
3375
3424
  "gradient-to": [{
3376
- to: [h]
3425
+ to: [m]
3377
3426
  }],
3378
3427
  // Borders
3379
3428
  /**
@@ -3549,14 +3598,14 @@ const H = (e) => {
3549
3598
  * @see https://tailwindcss.com/docs/border-opacity
3550
3599
  */
3551
3600
  "border-opacity": [{
3552
- "border-opacity": [A]
3601
+ "border-opacity": [N]
3553
3602
  }],
3554
3603
  /**
3555
3604
  * Border Style
3556
3605
  * @see https://tailwindcss.com/docs/border-style
3557
3606
  */
3558
3607
  "border-style": [{
3559
- border: [...Y(), "hidden"]
3608
+ border: [...G(), "hidden"]
3560
3609
  }],
3561
3610
  /**
3562
3611
  * Divide Width X
@@ -3587,14 +3636,14 @@ const H = (e) => {
3587
3636
  * @see https://tailwindcss.com/docs/divide-opacity
3588
3637
  */
3589
3638
  "divide-opacity": [{
3590
- "divide-opacity": [A]
3639
+ "divide-opacity": [N]
3591
3640
  }],
3592
3641
  /**
3593
3642
  * Divide Style
3594
3643
  * @see https://tailwindcss.com/docs/divide-style
3595
3644
  */
3596
3645
  "divide-style": [{
3597
- divide: Y()
3646
+ divide: G()
3598
3647
  }],
3599
3648
  /**
3600
3649
  * Border Color
@@ -3671,21 +3720,21 @@ const H = (e) => {
3671
3720
  * @see https://tailwindcss.com/docs/outline-style
3672
3721
  */
3673
3722
  "outline-style": [{
3674
- outline: ["", ...Y()]
3723
+ outline: ["", ...G()]
3675
3724
  }],
3676
3725
  /**
3677
3726
  * Outline Offset
3678
3727
  * @see https://tailwindcss.com/docs/outline-offset
3679
3728
  */
3680
3729
  "outline-offset": [{
3681
- "outline-offset": [j, I]
3730
+ "outline-offset": [Y, M]
3682
3731
  }],
3683
3732
  /**
3684
3733
  * Outline Width
3685
3734
  * @see https://tailwindcss.com/docs/outline-width
3686
3735
  */
3687
3736
  "outline-w": [{
3688
- outline: [j, X]
3737
+ outline: [Y, X]
3689
3738
  }],
3690
3739
  /**
3691
3740
  * Outline Color
@@ -3699,7 +3748,7 @@ const H = (e) => {
3699
3748
  * @see https://tailwindcss.com/docs/ring-width
3700
3749
  */
3701
3750
  "ring-w": [{
3702
- ring: P()
3751
+ ring: L()
3703
3752
  }],
3704
3753
  /**
3705
3754
  * Ring Width Inset
@@ -3718,14 +3767,14 @@ const H = (e) => {
3718
3767
  * @see https://tailwindcss.com/docs/ring-opacity
3719
3768
  */
3720
3769
  "ring-opacity": [{
3721
- "ring-opacity": [A]
3770
+ "ring-opacity": [N]
3722
3771
  }],
3723
3772
  /**
3724
3773
  * Ring Offset Width
3725
3774
  * @see https://tailwindcss.com/docs/ring-offset-width
3726
3775
  */
3727
3776
  "ring-offset-w": [{
3728
- "ring-offset": [j, X]
3777
+ "ring-offset": [Y, X]
3729
3778
  }],
3730
3779
  /**
3731
3780
  * Ring Offset Color
@@ -3740,35 +3789,35 @@ const H = (e) => {
3740
3789
  * @see https://tailwindcss.com/docs/box-shadow
3741
3790
  */
3742
3791
  shadow: [{
3743
- shadow: ["", "inner", "none", J, gn]
3792
+ shadow: ["", "inner", "none", J, vn]
3744
3793
  }],
3745
3794
  /**
3746
3795
  * Box Shadow Color
3747
3796
  * @see https://tailwindcss.com/docs/box-shadow-color
3748
3797
  */
3749
3798
  "shadow-color": [{
3750
- shadow: [le]
3799
+ shadow: [de]
3751
3800
  }],
3752
3801
  /**
3753
3802
  * Opacity
3754
3803
  * @see https://tailwindcss.com/docs/opacity
3755
3804
  */
3756
3805
  opacity: [{
3757
- opacity: [A]
3806
+ opacity: [N]
3758
3807
  }],
3759
3808
  /**
3760
3809
  * Mix Blend Mode
3761
3810
  * @see https://tailwindcss.com/docs/mix-blend-mode
3762
3811
  */
3763
3812
  "mix-blend": [{
3764
- "mix-blend": [...M(), "plus-lighter", "plus-darker"]
3813
+ "mix-blend": [...R(), "plus-lighter", "plus-darker"]
3765
3814
  }],
3766
3815
  /**
3767
3816
  * Background Blend Mode
3768
3817
  * @see https://tailwindcss.com/docs/background-blend-mode
3769
3818
  */
3770
3819
  "bg-blend": [{
3771
- "bg-blend": M()
3820
+ "bg-blend": R()
3772
3821
  }],
3773
3822
  // Filters
3774
3823
  /**
@@ -3805,14 +3854,14 @@ const H = (e) => {
3805
3854
  * @see https://tailwindcss.com/docs/drop-shadow
3806
3855
  */
3807
3856
  "drop-shadow": [{
3808
- "drop-shadow": ["", "none", J, I]
3857
+ "drop-shadow": ["", "none", J, M]
3809
3858
  }],
3810
3859
  /**
3811
3860
  * Grayscale
3812
3861
  * @see https://tailwindcss.com/docs/grayscale
3813
3862
  */
3814
3863
  grayscale: [{
3815
- grayscale: [p]
3864
+ grayscale: [u]
3816
3865
  }],
3817
3866
  /**
3818
3867
  * Hue Rotate
@@ -3833,14 +3882,14 @@ const H = (e) => {
3833
3882
  * @see https://tailwindcss.com/docs/saturate
3834
3883
  */
3835
3884
  saturate: [{
3836
- saturate: [u]
3885
+ saturate: [p]
3837
3886
  }],
3838
3887
  /**
3839
3888
  * Sepia
3840
3889
  * @see https://tailwindcss.com/docs/sepia
3841
3890
  */
3842
3891
  sepia: [{
3843
- sepia: [N]
3892
+ sepia: [A]
3844
3893
  }],
3845
3894
  /**
3846
3895
  * Backdrop Filter
@@ -3876,7 +3925,7 @@ const H = (e) => {
3876
3925
  * @see https://tailwindcss.com/docs/backdrop-grayscale
3877
3926
  */
3878
3927
  "backdrop-grayscale": [{
3879
- "backdrop-grayscale": [p]
3928
+ "backdrop-grayscale": [u]
3880
3929
  }],
3881
3930
  /**
3882
3931
  * Backdrop Hue Rotate
@@ -3897,21 +3946,21 @@ const H = (e) => {
3897
3946
  * @see https://tailwindcss.com/docs/backdrop-opacity
3898
3947
  */
3899
3948
  "backdrop-opacity": [{
3900
- "backdrop-opacity": [A]
3949
+ "backdrop-opacity": [N]
3901
3950
  }],
3902
3951
  /**
3903
3952
  * Backdrop Saturate
3904
3953
  * @see https://tailwindcss.com/docs/backdrop-saturate
3905
3954
  */
3906
3955
  "backdrop-saturate": [{
3907
- "backdrop-saturate": [u]
3956
+ "backdrop-saturate": [p]
3908
3957
  }],
3909
3958
  /**
3910
3959
  * Backdrop Sepia
3911
3960
  * @see https://tailwindcss.com/docs/backdrop-sepia
3912
3961
  */
3913
3962
  "backdrop-sepia": [{
3914
- "backdrop-sepia": [N]
3963
+ "backdrop-sepia": [A]
3915
3964
  }],
3916
3965
  // Tables
3917
3966
  /**
@@ -3962,35 +4011,35 @@ const H = (e) => {
3962
4011
  * @see https://tailwindcss.com/docs/transition-property
3963
4012
  */
3964
4013
  transition: [{
3965
- transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", I]
4014
+ transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", M]
3966
4015
  }],
3967
4016
  /**
3968
4017
  * Transition Duration
3969
4018
  * @see https://tailwindcss.com/docs/transition-duration
3970
4019
  */
3971
4020
  duration: [{
3972
- duration: V()
4021
+ duration: j()
3973
4022
  }],
3974
4023
  /**
3975
4024
  * Transition Timing Function
3976
4025
  * @see https://tailwindcss.com/docs/transition-timing-function
3977
4026
  */
3978
4027
  ease: [{
3979
- ease: ["linear", "in", "out", "in-out", I]
4028
+ ease: ["linear", "in", "out", "in-out", M]
3980
4029
  }],
3981
4030
  /**
3982
4031
  * Transition Delay
3983
4032
  * @see https://tailwindcss.com/docs/transition-delay
3984
4033
  */
3985
4034
  delay: [{
3986
- delay: V()
4035
+ delay: j()
3987
4036
  }],
3988
4037
  /**
3989
4038
  * Animation
3990
4039
  * @see https://tailwindcss.com/docs/animation
3991
4040
  */
3992
4041
  animate: [{
3993
- animate: ["none", "spin", "ping", "pulse", "bounce", I]
4042
+ animate: ["none", "spin", "ping", "pulse", "bounce", M]
3994
4043
  }],
3995
4044
  // Transforms
3996
4045
  /**
@@ -4005,28 +4054,28 @@ const H = (e) => {
4005
4054
  * @see https://tailwindcss.com/docs/scale
4006
4055
  */
4007
4056
  scale: [{
4008
- scale: [m]
4057
+ scale: [h]
4009
4058
  }],
4010
4059
  /**
4011
4060
  * Scale X
4012
4061
  * @see https://tailwindcss.com/docs/scale
4013
4062
  */
4014
4063
  "scale-x": [{
4015
- "scale-x": [m]
4064
+ "scale-x": [h]
4016
4065
  }],
4017
4066
  /**
4018
4067
  * Scale Y
4019
4068
  * @see https://tailwindcss.com/docs/scale
4020
4069
  */
4021
4070
  "scale-y": [{
4022
- "scale-y": [m]
4071
+ "scale-y": [h]
4023
4072
  }],
4024
4073
  /**
4025
4074
  * Rotate
4026
4075
  * @see https://tailwindcss.com/docs/rotate
4027
4076
  */
4028
4077
  rotate: [{
4029
- rotate: [ae, I]
4078
+ rotate: [le, M]
4030
4079
  }],
4031
4080
  /**
4032
4081
  * Translate X
@@ -4047,21 +4096,21 @@ const H = (e) => {
4047
4096
  * @see https://tailwindcss.com/docs/skew
4048
4097
  */
4049
4098
  "skew-x": [{
4050
- "skew-x": [S]
4099
+ "skew-x": [C]
4051
4100
  }],
4052
4101
  /**
4053
4102
  * Skew Y
4054
4103
  * @see https://tailwindcss.com/docs/skew
4055
4104
  */
4056
4105
  "skew-y": [{
4057
- "skew-y": [S]
4106
+ "skew-y": [C]
4058
4107
  }],
4059
4108
  /**
4060
4109
  * Transform Origin
4061
4110
  * @see https://tailwindcss.com/docs/transform-origin
4062
4111
  */
4063
4112
  "transform-origin": [{
4064
- origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", I]
4113
+ origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", M]
4065
4114
  }],
4066
4115
  // Interactivity
4067
4116
  /**
@@ -4083,7 +4132,7 @@ const H = (e) => {
4083
4132
  * @see https://tailwindcss.com/docs/cursor
4084
4133
  */
4085
4134
  cursor: [{
4086
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", I]
4135
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", M]
4087
4136
  }],
4088
4137
  /**
4089
4138
  * Caret Color
@@ -4305,7 +4354,7 @@ const H = (e) => {
4305
4354
  * @see https://tailwindcss.com/docs/will-change
4306
4355
  */
4307
4356
  "will-change": [{
4308
- "will-change": ["auto", "scroll", "contents", "transform", I]
4357
+ "will-change": ["auto", "scroll", "contents", "transform", M]
4309
4358
  }],
4310
4359
  // SVG
4311
4360
  /**
@@ -4320,7 +4369,7 @@ const H = (e) => {
4320
4369
  * @see https://tailwindcss.com/docs/stroke-width
4321
4370
  */
4322
4371
  "stroke-w": [{
4323
- stroke: [j, X, be]
4372
+ stroke: [Y, X, ve]
4324
4373
  }],
4325
4374
  /**
4326
4375
  * Stroke
@@ -4395,30 +4444,30 @@ const H = (e) => {
4395
4444
  "font-size": ["leading"]
4396
4445
  }
4397
4446
  };
4398
- }, xn = /* @__PURE__ */ tn(yn);
4399
- function kn(...e) {
4400
- return xn(gt(e));
4447
+ }, Nn = /* @__PURE__ */ rn(kn);
4448
+ function An(...e) {
4449
+ return Nn(vt(e));
4401
4450
  }
4402
- function or({ autoWidth: e = !0, className: t, style: n }) {
4403
- const [r, o] = E(() => _.getActiveAppId()), [i, a] = E(() => G.getRunningApps()), { isMobile: c } = Ke();
4451
+ function ir({ autoWidth: e = !0, className: t, style: n }) {
4452
+ const [r, o] = E(() => _.getActiveAppId()), [i, a] = E(() => V.getRunningApps()), { isMobile: c } = _e();
4404
4453
  B(() => {
4405
- const w = _.subscribe("activeAppId", (A) => {
4406
- o(A);
4454
+ const g = _.subscribe("activeAppId", (N) => {
4455
+ o(N);
4407
4456
  });
4408
4457
  return () => {
4409
- w();
4458
+ g();
4410
4459
  };
4411
- }, []), B(() => G.subscribe(() => {
4412
- a(G.getRunningApps());
4460
+ }, []), B(() => V.subscribe(() => {
4461
+ a(V.getRunningApps());
4413
4462
  }), []), B(() => {
4414
4463
  if (!new URLSearchParams(window.location.search).has("app")) {
4415
4464
  const b = _.getActiveAppId();
4416
- b && !G.isRunning(b) && G.launchApp(b);
4465
+ b && !V.isRunning(b) && V.launchApp(b);
4417
4466
  }
4418
4467
  }, []);
4419
- const l = (w) => {
4420
- G.closeApp(w);
4421
- }, p = r ? oe.get(r) : null, v = (p == null ? void 0 : p.width) ?? 400, d = r !== null, g = { ...{
4468
+ const l = (g) => {
4469
+ V.closeApp(g);
4470
+ }, u = r ? se.get(r) : null, v = (u == null ? void 0 : u.width) ?? 400, d = r !== null, w = { ...{
4422
4471
  overflow: "hidden",
4423
4472
  display: d ? "flex" : "none",
4424
4473
  flexDirection: "column",
@@ -4426,86 +4475,86 @@ function or({ autoWidth: e = !0, className: t, style: n }) {
4426
4475
  // Only set width if autoWidth is enabled
4427
4476
  ...e && d ? { width: c ? "100%" : v } : {}
4428
4477
  }, ...n };
4429
- return /* @__PURE__ */ s("div", { className: kn("nc-app-panel", t), style: g, children: i.map((w) => /* @__PURE__ */ s(
4430
- Ye,
4478
+ return /* @__PURE__ */ s("div", { className: An("nc-app-panel", t), style: w, children: i.map((g) => /* @__PURE__ */ s(
4479
+ Ge,
4431
4480
  {
4432
- appId: w.appId,
4433
- isActive: r === w.appId,
4434
- onClose: () => l(w.appId)
4481
+ appId: g.appId,
4482
+ isActive: r === g.appId,
4483
+ onClose: () => l(g.appId)
4435
4484
  },
4436
- w.appId
4485
+ g.appId
4437
4486
  )) });
4438
4487
  }
4439
- function sr({
4488
+ function cr({
4440
4489
  pinnedAppIds: e,
4441
4490
  className: t = "",
4442
4491
  showIndicators: n = !0,
4443
4492
  side: r = "left",
4444
4493
  getBadge: o
4445
4494
  }) {
4446
- const { t: i } = U(), { isMobile: a } = Ke(), [c, l] = E(() => _.getActiveAppId()), [p, f] = E(() => G.getRunningApps());
4495
+ const { t: i } = U(), { isMobile: a } = _e(), [c, l] = E(() => _.getActiveAppId()), [u, f] = E(() => V.getRunningApps());
4447
4496
  B(() => {
4448
- const u = _.subscribe("activeAppId", (m) => {
4449
- l(m);
4497
+ const p = _.subscribe("activeAppId", (h) => {
4498
+ l(h);
4450
4499
  });
4451
4500
  return () => {
4452
- u();
4501
+ p();
4453
4502
  };
4454
- }, []), B(() => G.subscribe(() => {
4455
- f(G.getRunningApps());
4503
+ }, []), B(() => V.subscribe(() => {
4504
+ f(V.getRunningApps());
4456
4505
  }), []);
4457
- const v = (u) => {
4458
- c === u ? G.setActiveApp(null) : G.launchApp(u);
4459
- }, d = e.map((u) => oe.get(u)).filter((u) => !!u), h = p.filter((u) => !e.includes(u.appId)).map((u) => ({ running: u, def: oe.get(u.appId) })).filter((u) => !!u.def), y = (u) => p.some((m) => m.appId === u), g = (u) => u.titleKey ? String(i(u.titleKey)) : u.id, w = (u) => typeof u == "number" && u > 99 ? "99+" : u, A = (u, m) => {
4460
- const N = o == null ? void 0 : o(u, m);
4461
- return N ? /* @__PURE__ */ s(
4506
+ const v = (p) => {
4507
+ c === p ? V.setActiveApp(null) : V.launchApp(p);
4508
+ }, d = e.map((p) => se.get(p)).filter((p) => !!p), m = u.filter((p) => !e.includes(p.appId)).map((p) => ({ running: p, def: se.get(p.appId) })).filter((p) => !!p.def), y = (p) => u.some((h) => h.appId === p), w = (p) => p.titleKey ? String(i(p.titleKey)) : p.id, g = (p) => typeof p == "number" && p > 99 ? "99+" : p, N = (p, h) => {
4509
+ const A = o == null ? void 0 : o(p, h);
4510
+ return A ? /* @__PURE__ */ s(
4462
4511
  "span",
4463
4512
  {
4464
- className: `nc-app-taskbar-badge nc-${N.tone ?? "default"}`,
4465
- "aria-label": N.ariaLabel,
4466
- children: w(N.content)
4513
+ className: `nc-app-taskbar-badge nc-${A.tone ?? "default"}`,
4514
+ "aria-label": A.ariaLabel,
4515
+ children: g(A.content)
4467
4516
  }
4468
4517
  ) : null;
4469
4518
  }, b = a ? 24 : 28;
4470
4519
  return /* @__PURE__ */ k("div", { className: `nc-app-taskbar ${a ? "nc-mobile" : "nc-desktop"} nc-${r} ${t}`, children: [
4471
- d.map((u) => {
4472
- const m = u.icon, N = c === u.id, S = y(u.id), z = { isActive: N, isRunning: S, isPinned: !0 };
4520
+ d.map((p) => {
4521
+ const h = p.icon, A = c === p.id, C = y(p.id), z = { isActive: A, isRunning: C, isPinned: !0 };
4473
4522
  return /* @__PURE__ */ k(
4474
4523
  "button",
4475
4524
  {
4476
- className: `nc-app-taskbar-button ${N ? "nc-active" : ""} ${S ? "nc-running" : ""}`,
4477
- onClick: () => v(u.id),
4478
- title: g(u),
4525
+ className: `nc-app-taskbar-button ${A ? "nc-active" : ""} ${C ? "nc-running" : ""}`,
4526
+ onClick: () => v(p.id),
4527
+ title: w(p),
4479
4528
  children: [
4480
- /* @__PURE__ */ s(m, { size: b }),
4481
- A(u, z),
4482
- n && S && /* @__PURE__ */ s("span", { className: "nc-app-taskbar-indicator" })
4529
+ /* @__PURE__ */ s(h, { size: b }),
4530
+ N(p, z),
4531
+ n && C && /* @__PURE__ */ s("span", { className: "nc-app-taskbar-indicator" })
4483
4532
  ]
4484
4533
  },
4485
- u.id
4534
+ p.id
4486
4535
  );
4487
4536
  }),
4488
- h.length > 0 && /* @__PURE__ */ s("div", { className: "nc-app-taskbar-separator" }),
4489
- h.map(({ running: u, def: m }) => {
4490
- const N = m.icon, S = c === u.appId, z = { isActive: S, isRunning: !0, isPinned: !1 };
4537
+ m.length > 0 && /* @__PURE__ */ s("div", { className: "nc-app-taskbar-separator" }),
4538
+ m.map(({ running: p, def: h }) => {
4539
+ const A = h.icon, C = c === p.appId, z = { isActive: C, isRunning: !0, isPinned: !1 };
4491
4540
  return /* @__PURE__ */ k(
4492
4541
  "button",
4493
4542
  {
4494
- className: `nc-app-taskbar-button ${S ? "nc-active" : ""} nc-running`,
4495
- onClick: () => v(u.appId),
4496
- title: g(m),
4543
+ className: `nc-app-taskbar-button ${C ? "nc-active" : ""} nc-running`,
4544
+ onClick: () => v(p.appId),
4545
+ title: w(h),
4497
4546
  children: [
4498
- /* @__PURE__ */ s(N, { size: b }),
4499
- A(m, z),
4547
+ /* @__PURE__ */ s(A, { size: b }),
4548
+ N(h, z),
4500
4549
  n && /* @__PURE__ */ s("span", { className: "nc-app-taskbar-indicator" })
4501
4550
  ]
4502
4551
  },
4503
- u.appId
4552
+ p.appId
4504
4553
  );
4505
4554
  })
4506
4555
  ] });
4507
4556
  }
4508
- function ir({
4557
+ function ar({
4509
4558
  appId: e,
4510
4559
  open: t,
4511
4560
  onClose: n,
@@ -4529,7 +4578,7 @@ function ir({
4529
4578
  style: i,
4530
4579
  onClick: (l) => l.stopPropagation(),
4531
4580
  children: /* @__PURE__ */ s(
4532
- Ye,
4581
+ Ge,
4533
4582
  {
4534
4583
  appId: e,
4535
4584
  isActive: !0,
@@ -4540,70 +4589,70 @@ function ir({
4540
4589
  )
4541
4590
  }
4542
4591
  );
4543
- return ue(c, document.body);
4592
+ return pe(c, document.body);
4544
4593
  }
4545
- const Ae = se(null), Qe = se(null);
4546
- function cr() {
4547
- const e = Q(Ae);
4594
+ const Ce = ie(null), Qe = ie(null);
4595
+ function lr() {
4596
+ const e = Z(Ce);
4548
4597
  if (!e)
4549
4598
  throw new Error("useNavStack must be used within a NavStackProvider");
4550
4599
  return e;
4551
4600
  }
4552
- function ar() {
4553
- const e = Q(Qe);
4601
+ function dr() {
4602
+ const e = Z(Qe);
4554
4603
  if (!e)
4555
4604
  throw new Error("useNavView must be used within NavStack");
4556
4605
  return e;
4557
4606
  }
4558
- const Ce = se(null);
4559
- function lr({ rootView: e, children: t }) {
4560
- const { t: n } = U(), r = Wt(), [o, i] = E([e]), [a, c] = E([null]), l = O((m, N) => {
4561
- c((S) => {
4562
- const z = [...S];
4563
- return z[m] = N, z;
4607
+ const Se = ie(null);
4608
+ function ur({ rootView: e, children: t }) {
4609
+ const { t: n } = U(), r = Ft(), [o, i] = E([e]), [a, c] = E([null]), l = O((h, A) => {
4610
+ c((C) => {
4611
+ const z = [...C];
4612
+ return z[h] = A, z;
4564
4613
  });
4565
- }, []), p = O((m) => {
4566
- c((N) => {
4567
- const S = [...N];
4568
- return S[m] = null, S;
4614
+ }, []), u = O((h) => {
4615
+ c((A) => {
4616
+ const C = [...A];
4617
+ return C[h] = null, C;
4569
4618
  });
4570
- }, []), f = O((m) => {
4571
- i((N) => [...N, m]), c((N) => [...N, null]);
4619
+ }, []), f = O((h) => {
4620
+ i((A) => [...A, h]), c((A) => [...A, null]);
4572
4621
  }, []), v = O(() => {
4573
- i((m) => m.length <= 1 ? m : m.slice(0, -1)), c((m) => m.slice(0, -1));
4622
+ i((h) => h.length <= 1 ? h : h.slice(0, -1)), c((h) => h.slice(0, -1));
4574
4623
  }, []), d = O(() => {
4575
4624
  i([e]), c([null]);
4576
- }, [e]), h = o.length, y = h > 1, g = o.length - 1, w = o[o.length - 1], A = w != null && w.titleKey ? n(w.titleKey) : (w == null ? void 0 : w.title) ?? "";
4625
+ }, [e]), m = o.length, y = m > 1, w = o.length - 1, g = o[o.length - 1], N = g != null && g.titleKey ? n(g.titleKey) : (g == null ? void 0 : g.title) ?? "";
4577
4626
  B(() => {
4578
- r.setTitle(A);
4579
- }, [A, r]), B(() => {
4627
+ r.setTitle(N);
4628
+ }, [N, r]), B(() => {
4580
4629
  y ? r.setBackHandler(v) : r.clearBackHandler();
4581
4630
  }, [y, v, r]), B(() => {
4582
- const m = a[a.length - 1];
4583
- m ? r.setToolbar(m) : r.clearToolbar();
4631
+ const h = a[a.length - 1];
4632
+ h ? r.setToolbar(h) : r.clearToolbar();
4584
4633
  }, [a, r]);
4585
4634
  const b = {
4586
4635
  push: f,
4587
4636
  pop: v,
4588
4637
  reset: d,
4589
- depth: h,
4638
+ depth: m,
4590
4639
  canGoBack: y,
4591
- currentTitle: A
4592
- }, u = {
4640
+ currentTitle: N
4641
+ }, p = {
4593
4642
  stack: o,
4594
4643
  toolbarStack: a,
4595
4644
  updateToolbar: l,
4596
- clearToolbarAt: p,
4597
- topIndex: g
4645
+ clearToolbarAt: u,
4646
+ topIndex: w
4598
4647
  };
4599
- return /* @__PURE__ */ s(Ae.Provider, { value: b, children: /* @__PURE__ */ s(Ce.Provider, { value: u, children: t }) });
4648
+ return /* @__PURE__ */ s(Ce.Provider, { value: b, children: /* @__PURE__ */ s(Se.Provider, { value: p, children: t }) });
4600
4649
  }
4601
- function Nn({ index: e, children: t }) {
4602
- const n = Q(Ce);
4650
+ function Cn({ index: e, children: t }) {
4651
+ const n = Z(Se);
4603
4652
  if (!n)
4604
4653
  throw new Error("NavViewProvider must be used within NavStackProvider");
4605
- const { updateToolbar: r, clearToolbarAt: o, topIndex: i } = n, a = O((p) => {
4606
- e === i && r(e, p);
4654
+ const { updateToolbar: r, clearToolbarAt: o, topIndex: i } = n, a = O((u) => {
4655
+ e === i && r(e, u);
4607
4656
  }, [e, i, r]), c = O(() => {
4608
4657
  e === i && o(e);
4609
4658
  }, [e, i, o]), l = {
@@ -4612,14 +4661,14 @@ function Nn({ index: e, children: t }) {
4612
4661
  };
4613
4662
  return /* @__PURE__ */ s(Qe.Provider, { value: l, children: t });
4614
4663
  }
4615
- function dr() {
4616
- const e = Q(Ae), t = Q(Ce);
4664
+ function pr() {
4665
+ const e = Z(Ce), t = Z(Se);
4617
4666
  if (!e || !t)
4618
4667
  throw new Error("NavStackContainer must be used within a NavStackProvider");
4619
4668
  const { stack: n } = t;
4620
4669
  return /* @__PURE__ */ s("div", { className: "nav-stack-container", children: /* @__PURE__ */ s("div", { className: "nav-stack-content", children: n.map((r, o) => {
4621
4670
  const i = o === n.length - 1;
4622
- return /* @__PURE__ */ s(Nn, { index: o, children: /* @__PURE__ */ s(
4671
+ return /* @__PURE__ */ s(Cn, { index: o, children: /* @__PURE__ */ s(
4623
4672
  "div",
4624
4673
  {
4625
4674
  style: { display: i ? "flex" : "none", flexDirection: "column", height: "100%" },
@@ -4630,55 +4679,54 @@ function dr() {
4630
4679
  }
4631
4680
  export {
4632
4681
  He as ActivityIndicator,
4633
- Tn as Alert,
4634
- Ye as AppContainer,
4635
- Ve as AppContext,
4636
- ir as AppDialog,
4637
- or as AppPanel,
4638
- sr as AppTaskbar,
4639
- Ft as AppTitleBar,
4640
- zn as Battery,
4682
+ zn as Alert,
4683
+ Ge as AppContainer,
4684
+ je as AppContext,
4685
+ ar as AppDialog,
4686
+ ir as AppPanel,
4687
+ cr as AppTaskbar,
4688
+ jt as AppTitleBar,
4689
+ Pn as Battery,
4641
4690
  K as Button,
4642
- Pn as ButtonGroup,
4643
- Ln as Checkbox,
4644
- We as CloseButton,
4645
- Bn as ComboBox,
4646
- Fn as ContextMenu,
4647
- Zn as CsvTextArea,
4648
- Vn as Dialog,
4649
- ne as DialogClose,
4650
- Hn as EditButton,
4651
- On as Hyperlink,
4691
+ Bn as ButtonGroup,
4692
+ Dn as Checkbox,
4693
+ Oe as CloseButton,
4694
+ Wn as ComboBox,
4695
+ jn as ContextMenu,
4696
+ tr as CsvTextArea,
4697
+ Gn as Dialog,
4698
+ re as DialogClose,
4699
+ On as EditButton,
4700
+ Vn as Hyperlink,
4652
4701
  Yn as Input,
4653
- jn as ListGroup,
4654
- Gn as ListGroupItem,
4655
- _n as MonthRangePicker,
4656
- Kn as MultiSelect,
4657
- dr as NavStackContainer,
4658
- lr as NavStackProvider,
4659
- Pt as Notification,
4660
- er as NotificationContainer,
4661
- Un as NumberInput,
4662
- Dn as RefreshButton,
4663
- qn as Slider,
4702
+ _n as ListGroup,
4703
+ Kn as ListGroupItem,
4704
+ qn as MonthRangePicker,
4705
+ Un as MultiSelect,
4706
+ pr as NavStackContainer,
4707
+ ur as NavStackProvider,
4708
+ Bt as Notification,
4709
+ nr as NotificationContainer,
4710
+ Xn as NumberInput,
4711
+ Hn as RefreshButton,
4712
+ Jn as Slider,
4664
4713
  It as TabPanel,
4665
- Xn as TabPanels,
4666
- Jn as Tabs,
4667
- Qn as Toggle,
4668
- Wn as TrashButton,
4669
- rr as ViewportProvider,
4670
- fr as YamlTextArea,
4671
- oe as appRegistry,
4714
+ Zn as TabPanels,
4715
+ Qn as Tabs,
4716
+ er as Toggle,
4717
+ Fn as TrashButton,
4718
+ sr as ViewportProvider,
4719
+ se as appRegistry,
4672
4720
  _ as appStateStore,
4673
- kn as cn,
4674
- nr as createAppI18nFactory,
4675
- tr as notificationManager,
4676
- G as runningAppsStore,
4677
- Lt as showNotification,
4678
- Wt as useApp,
4679
- At as useDialog,
4680
- cr as useNavStack,
4681
- ar as useNavView,
4682
- Ke as useViewport
4721
+ An as cn,
4722
+ or as createAppI18nFactory,
4723
+ rr as notificationManager,
4724
+ V as runningAppsStore,
4725
+ Dt as showNotification,
4726
+ Ft as useApp,
4727
+ Ct as useDialog,
4728
+ lr as useNavStack,
4729
+ dr as useNavView,
4730
+ _e as useViewport
4683
4731
  };
4684
4732
  //# sourceMappingURL=index.js.map