@tenorlab/react-dashboard 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import se, { useState as ce, useCallback as ue, useMemo as at, forwardRef as le, useRef as xt, Suspense as Ct, useEffect as St } from "react";
2
- import { jsxs as W, jsx as a } from "react/jsx-runtime";
1
+ import se, { useState as le, useCallback as ue, useMemo as at, forwardRef as ce, useRef as wt, Suspense as Ct, useEffect as St } from "react";
2
+ import { jsxs as W, jsx as s } from "react/jsx-runtime";
3
3
  import st from "react-dom";
4
4
  const Dt = [
5
5
  {
@@ -81,10 +81,10 @@ const Dt = [
81
81
  }
82
82
  ], Tt = ["rem", "pc", "cm", "in", "em", "vh", "vw", "%"], Nt = (e, n) => Tt.includes(e) ? n : 1, Et = {
83
83
  incrementOrDecrementValue: (e, n) => {
84
- const t = e.value.match(/([\d.]+)/), r = t ? parseFloat(t[1]) : 0, i = e.value.match(/([^\d.]+)/), o = i ? i[1] : e.defaultUnit, s = Nt(o, e.step) * n, p = `${Math.max(r + s, e.minValue).toFixed(1)}${o}`;
84
+ const t = e.value.match(/([\d.]+)/), r = t ? parseFloat(t[1]) : 0, i = e.value.match(/([^\d.]+)/), o = i ? i[1] : e.defaultUnit, a = Nt(o, e.step) * n, m = `${Math.max(r + a, e.minValue).toFixed(1)}${o}`;
85
85
  return {
86
86
  ...e,
87
- value: p
87
+ value: m
88
88
  };
89
89
  }
90
90
  }, Ce = {
@@ -97,13 +97,13 @@ const Dt = [
97
97
  widgets: [],
98
98
  childWidgetsConfig: [],
99
99
  cssSettings: [...Dt]
100
- }, Ae = 0.7, Fe = 1, _t = 0.05, lt = (e) => {
100
+ }, Ae = 0.7, Le = 1, _t = 0.05, ct = (e) => {
101
101
  let n = Number(e || 0);
102
- return n < Ae && (n = Ae), n > Fe && (n = Fe), n;
103
- }, _n = (e, n) => {
102
+ return n < Ae && (n = Ae), n > Le && (n = Le), n;
103
+ }, Mn = (e, n) => {
104
104
  let t = Number(Number((_t * n).toFixed(2)).toFixed(2)), r = Number((Number(e) + t).toFixed(2));
105
- return lt(r);
106
- }, Mn = (e) => {
105
+ return ct(r);
106
+ }, Pn = (e) => {
107
107
  let n = {
108
108
  ...e
109
109
  };
@@ -144,13 +144,13 @@ const Dt = [
144
144
  noDuplicatedWidgets: !0,
145
145
  icon: void 0
146
146
  };
147
- }, Pn = (e, n, t) => {
147
+ }, $n = (e, n, t) => {
148
148
  const r = n[e];
149
149
  return r || ge(e, t);
150
150
  }, Pt = (e, n) => {
151
151
  const r = n.get(e)?.meta;
152
152
  return r || ge(e);
153
- }, $n = (e, n, t) => {
153
+ }, $t = (e, n, t) => {
154
154
  const r = t || ge(e);
155
155
  return [
156
156
  e,
@@ -162,7 +162,7 @@ const Dt = [
162
162
  component: n
163
163
  }
164
164
  ];
165
- }, ct = (e, n, t) => {
165
+ }, lt = (e, n, t) => {
166
166
  const r = t || ge(e);
167
167
  return [
168
168
  e,
@@ -174,46 +174,26 @@ const Dt = [
174
174
  loader: n
175
175
  }
176
176
  ];
177
- }, $t = (e) => {
177
+ }, Wt = (e) => {
178
178
  const n = e.match(/\/widget-([a-zA-Z0-9-]+)\/index\.ts$/);
179
179
  if (n && n[1]) {
180
180
  const t = n[1], r = `Widget${t.split("-").map((o) => o.charAt(0).toUpperCase() + o.slice(1)).join("")}`, i = t.split("-").map((o) => o.charAt(0).toUpperCase() + o.slice(1)).join(" ");
181
181
  return { key: r, title: i, folder: t };
182
182
  }
183
183
  return null;
184
- }, Wt = (e, n, t) => {
185
- const r = `${n}/${t}/${t}.meta.ts`, i = e[r];
186
- if (i && i[`${key}Meta`])
187
- return i[`${key}Meta`];
188
- }, Wn = async (e, n, t) => {
189
- const r = [];
190
- for (const i in n) {
191
- const o = n[i], s = $t(i);
192
- if (s && o) {
193
- const { key: d, title: p, folder: g } = s;
194
- console.log("widgets-catalog: registering dynamic plugins", d, p, g);
195
- let h = Wt(
196
- //key,
197
- t,
198
- e,
199
- g
200
- );
201
- h || (h = ge(d, {
202
- title: p,
203
- description: "Dynamic plugin widget"
204
- })), r.push(ct(d, o, h));
205
- }
206
- }
207
- return r;
208
- }, In = async (e) => new Promise(async (n, t) => {
184
+ }, It = (e, n, t, r) => {
185
+ const i = `${n}/${t}/${t}.meta.ts`, o = e[i], a = `${r}Meta`;
186
+ if (o && o[a])
187
+ return o[a];
188
+ }, Wn = async (e) => new Promise(async (n, t) => {
209
189
  const r = [];
210
190
  try {
211
191
  const o = await (await fetch(`${e}?${Math.random()}`)).json();
212
- for (const s in o) {
213
- const d = o[s], p = () => import(
192
+ for (const a in o) {
193
+ const d = o[a], m = () => import(
214
194
  /* @vite-ignore */
215
195
  d.url
216
- ), g = {
196
+ ), p = {
217
197
  displayName: d.meta.displayName,
218
198
  description: d.meta.description || "Remote Plugin",
219
199
  categories: d.meta.categories || ["Widget"],
@@ -221,7 +201,7 @@ const Dt = [
221
201
  icon: void 0
222
202
  // Or a logic to map a string name to a Lucide component
223
203
  };
224
- r.push(ct(s, p, g));
204
+ r.push(lt(a, m, p));
225
205
  }
226
206
  n({
227
207
  entries: r,
@@ -235,18 +215,38 @@ const Dt = [
235
215
  details: typeof i == "object" ? JSON.stringify(i) : i
236
216
  });
237
217
  }
238
- }), Le = (e) => {
218
+ }), In = (e, n, t, r = !0) => {
219
+ const i = [];
220
+ for (const o in n) {
221
+ const a = n[o], d = Wt(o);
222
+ if (d && a) {
223
+ const { key: m, title: p, folder: g } = d;
224
+ let u = It(t, e, g, m);
225
+ if (u || (u = ge(m, {
226
+ title: p,
227
+ description: `Local ${r ? "dynamic" : "static"} widget`
228
+ })), r) {
229
+ const h = a;
230
+ i.push(lt(m, h, u));
231
+ } else {
232
+ const h = a.default || a;
233
+ i.push($t(m, h, u));
234
+ }
235
+ }
236
+ }
237
+ return i;
238
+ }, Fe = (e) => {
239
239
  let n;
240
- const t = /* @__PURE__ */ new Set(), r = (g, h) => {
241
- const u = typeof g == "function" ? g(n) : g;
240
+ const t = /* @__PURE__ */ new Set(), r = (p, g) => {
241
+ const u = typeof p == "function" ? p(n) : p;
242
242
  if (!Object.is(u, n)) {
243
- const m = n;
244
- n = h ?? (typeof u != "object" || u === null) ? u : Object.assign({}, n, u), t.forEach((y) => y(n, m));
243
+ const h = n;
244
+ n = g ?? (typeof u != "object" || u === null) ? u : Object.assign({}, n, u), t.forEach((y) => y(n, h));
245
245
  }
246
- }, i = () => n, d = { setState: r, getState: i, getInitialState: () => p, subscribe: (g) => (t.add(g), () => t.delete(g)) }, p = n = e(r, i, d);
246
+ }, i = () => n, d = { setState: r, getState: i, getInitialState: () => m, subscribe: (p) => (t.add(p), () => t.delete(p)) }, m = n = e(r, i, d);
247
247
  return d;
248
- }, It = ((e) => e ? Le(e) : Le), Ot = (e) => e;
249
- function Rt(e, n = Ot) {
248
+ }, Ot = ((e) => e ? Fe(e) : Fe), Rt = (e) => e;
249
+ function kt(e, n = Rt) {
250
250
  const t = se.useSyncExternalStore(
251
251
  e.subscribe,
252
252
  se.useCallback(() => n(e.getState()), [e, n]),
@@ -254,20 +254,20 @@ function Rt(e, n = Ot) {
254
254
  );
255
255
  return se.useDebugValue(t), t;
256
256
  }
257
- const kt = (e) => {
258
- const n = It(e), t = (r) => Rt(n, r);
257
+ const jt = (e) => {
258
+ const n = Ot(e), t = (r) => kt(n, r);
259
259
  return Object.assign(t, n), t;
260
- }, jt = ((e) => kt), At = (e) => {
260
+ }, At = ((e) => jt), Lt = (e) => {
261
261
  const n = e.widgets.filter((r) => r.includes("WidgetContainer")).map((r) => Number(r.split("_")[1].replace("container", "")));
262
262
  return `container${n.length > 0 ? Math.max(...n) + 1 : 1}`;
263
263
  }, Ft = (e, n) => {
264
- const t = At(e);
264
+ const t = Lt(e);
265
265
  return `${n}_${t}`;
266
- }, Lt = (e) => {
266
+ }, Ut = (e) => {
267
267
  const { dashboardConfig: n, widgetKey: t, parentWidgetKey: r, noDuplicatedWidgets: i } = e;
268
268
  if (r) {
269
269
  if (i && n.childWidgetsConfig.find(
270
- (s) => s.parentWidgetKey === r && s.widgetKey === t
270
+ (a) => a.parentWidgetKey === r && a.widgetKey === t
271
271
  ))
272
272
  return {
273
273
  success: !1,
@@ -302,20 +302,20 @@ const kt = (e) => {
302
302
  }
303
303
  };
304
304
  }
305
- }, Ut = (e, n, t) => {
305
+ }, Vt = (e, n, t) => {
306
306
  if ((t || "").trim().length > 0) {
307
307
  const r = e.childWidgetsConfig.filter(
308
- (p) => p.parentWidgetKey !== t
308
+ (m) => m.parentWidgetKey !== t
309
309
  ), i = e.childWidgetsConfig.filter(
310
- (p) => p.parentWidgetKey === t && p.widgetKey !== n
310
+ (m) => m.parentWidgetKey === t && m.widgetKey !== n
311
311
  ), o = [...r, ...i];
312
- let s = {
312
+ let a = {
313
313
  ...e,
314
314
  childWidgetsConfig: o
315
315
  };
316
- return `${n}`.includes("Container") && (s = Mt(s)), {
316
+ return `${n}`.includes("Container") && (a = Mt(a)), {
317
317
  success: !0,
318
- updatedDashboardConfig: s
318
+ updatedDashboardConfig: a
319
319
  };
320
320
  } else {
321
321
  const r = e.widgets.filter((o) => o !== n), i = e.childWidgetsConfig.filter(
@@ -330,41 +330,41 @@ const kt = (e) => {
330
330
  }
331
331
  };
332
332
  }
333
- }, Vt = (e, n, t, r) => {
333
+ }, Yt = (e, n, t, r) => {
334
334
  if ((r || "").trim().length > 0) {
335
335
  const i = e.childWidgetsConfig.filter(
336
- (h) => h.parentWidgetKey !== r
336
+ (g) => g.parentWidgetKey !== r
337
337
  );
338
338
  let o = e.childWidgetsConfig.filter(
339
- (h) => h.parentWidgetKey === r
339
+ (g) => g.parentWidgetKey === r
340
340
  );
341
- const s = o.indexOf(t);
342
- let d = s + n;
343
- if (d = Math.max(0, d), d = Math.min(o.length - 1, d), d === s)
341
+ const a = o.indexOf(t);
342
+ let d = a + n;
343
+ if (d = Math.max(0, d), d = Math.min(o.length - 1, d), d === a)
344
344
  return {
345
345
  success: !1,
346
346
  message: `DashboardStore: moveWidget: Widget already at min/max position (${t})`,
347
347
  updatedDashboardConfig: e
348
348
  };
349
- const p = [...o], [g] = p.splice(s, 1);
350
- return p.splice(d, 0, g), {
349
+ const m = [...o], [p] = m.splice(a, 1);
350
+ return m.splice(d, 0, p), {
351
351
  success: !0,
352
352
  updatedDashboardConfig: {
353
353
  ...e,
354
- childWidgetsConfig: [...i, ...p]
354
+ childWidgetsConfig: [...i, ...m]
355
355
  }
356
356
  };
357
357
  } else {
358
358
  const i = e.widgets || [], o = i.indexOf(t);
359
- let s = o + n;
360
- if (s = Math.max(0, s), s = Math.min(i.length - 1, s), s === o)
359
+ let a = o + n;
360
+ if (a = Math.max(0, a), a = Math.min(i.length - 1, a), a === o)
361
361
  return {
362
362
  success: !1,
363
363
  message: `DashboardStore: moveWidget: Widget already at min/max position (${t})`,
364
364
  updatedDashboardConfig: e
365
365
  };
366
- const d = [...i], [p] = d.splice(o, 1);
367
- return d.splice(s, 0, p), {
366
+ const d = [...i], [m] = d.splice(o, 1);
367
+ return d.splice(a, 0, m), {
368
368
  success: !0,
369
369
  updatedDashboardConfig: {
370
370
  ...e,
@@ -372,7 +372,7 @@ const kt = (e) => {
372
372
  }
373
373
  };
374
374
  }
375
- }, Yt = (e, n) => ({
375
+ }, qt = (e, n) => ({
376
376
  isLoading: !1,
377
377
  isEditing: !1,
378
378
  allDashboardConfigs: [Ce],
@@ -425,12 +425,12 @@ const kt = (e) => {
425
425
  };
426
426
  }), n().currentDashboardConfig),
427
427
  addWidget: (t) => {
428
- const r = n(), i = Lt({
428
+ const r = n(), i = Ut({
429
429
  dashboardConfig: r.currentDashboardConfig,
430
430
  ...t
431
431
  }), o = [
432
432
  ...r.allDashboardConfigs.filter(
433
- (s) => s.dashboardId !== i.updatedDashboardConfig.dashboardId
433
+ (a) => a.dashboardId !== i.updatedDashboardConfig.dashboardId
434
434
  ),
435
435
  i.updatedDashboardConfig
436
436
  ];
@@ -443,150 +443,150 @@ const kt = (e) => {
443
443
  };
444
444
  },
445
445
  removeWidget: (t, r) => {
446
- const i = n(), o = Ut(i.currentDashboardConfig, t, r), s = [
446
+ const i = n(), o = Vt(i.currentDashboardConfig, t, r), a = [
447
447
  ...i.allDashboardConfigs.filter(
448
448
  (d) => d.dashboardId !== o.updatedDashboardConfig.dashboardId
449
449
  ),
450
450
  o.updatedDashboardConfig
451
451
  ];
452
452
  return o.success && e(() => ({
453
- allDashboardConfigs: s,
453
+ allDashboardConfigs: a,
454
454
  currentDashboardConfig: o.updatedDashboardConfig
455
455
  })), {
456
456
  ...o,
457
- allUpdatedDashboardConfigs: s
457
+ allUpdatedDashboardConfigs: a
458
458
  };
459
459
  },
460
460
  moveWidget: (t, r, i) => {
461
- const o = n(), s = Vt(o.currentDashboardConfig, t, r, i), d = [
461
+ const o = n(), a = Yt(o.currentDashboardConfig, t, r, i), d = [
462
462
  ...o.allDashboardConfigs.filter(
463
- (p) => p.dashboardId !== s.updatedDashboardConfig.dashboardId
463
+ (m) => m.dashboardId !== a.updatedDashboardConfig.dashboardId
464
464
  ),
465
- s.updatedDashboardConfig
465
+ a.updatedDashboardConfig
466
466
  ];
467
- return s.success && e(() => ({
467
+ return a.success && e(() => ({
468
468
  allDashboardConfigs: d,
469
- currentDashboardConfig: s.updatedDashboardConfig
469
+ currentDashboardConfig: a.updatedDashboardConfig
470
470
  })), {
471
- ...s,
471
+ ...a,
472
472
  allUpdatedDashboardConfigs: d
473
473
  };
474
474
  }
475
- }), On = jt()((...e) => ({
476
- ...Yt(...e)
477
- })), dt = (e, n) => `dashboards_${n}_${e}`, qt = async (e, n, t, r) => {
475
+ }), On = At()((...e) => ({
476
+ ...qt(...e)
477
+ })), dt = (e, n) => `dashboards_${n}_${e}`, zt = async (e, n, t, r) => {
478
478
  const i = localStorage.getItem(dt(e, n));
479
479
  if (i)
480
480
  try {
481
481
  const o = JSON.parse(i);
482
- return o.length < 1 ? [r] : (o.forEach((s) => {
483
- s.dashboardId || (s.dashboardId = "default"), s.dashboardName || (s.dashboardName = `Dashboard ${s.dashboardId}`), s.responsiveGrid = s.responsiveGrid ?? !1, (s.widgets || []).length < 1 && (s.widgets = r.widgets);
484
- const d = (s.cssSettings || []).filter(
485
- (p) => r.cssSettings.some((g) => g.key === p.key)
482
+ return o.length < 1 ? [r] : (o.forEach((a) => {
483
+ a.dashboardId || (a.dashboardId = "default"), a.dashboardName || (a.dashboardName = `Dashboard ${a.dashboardId}`), a.responsiveGrid = a.responsiveGrid ?? !1, (a.widgets || []).length < 1 && (a.widgets = r.widgets);
484
+ const d = (a.cssSettings || []).filter(
485
+ (m) => r.cssSettings.some((p) => p.key === m.key)
486
486
  );
487
487
  if (d.length < 1)
488
- s.cssSettings = [...r.cssSettings];
488
+ a.cssSettings = [...r.cssSettings];
489
489
  else {
490
- d.forEach((g) => {
491
- g.value = (g.value || "").replace(/NaN/g, "");
492
- const h = r.cssSettings.find(
493
- (u) => u.key === g.key
490
+ d.forEach((p) => {
491
+ p.value = (p.value || "").replace(/NaN/g, "");
492
+ const g = r.cssSettings.find(
493
+ (u) => u.key === p.key
494
494
  );
495
- h && (Object.keys(h).forEach((u) => {
496
- u in g || (g[u] = h[u]);
497
- }), g.step = h.step, g.minValue = h.minValue, g.defaultValue = h.defaultValue, g.defaultUnit = h.defaultUnit, /\d+/g.test(g.value) === !1 && (g.value = h ? h.value : "1.0rem"));
495
+ g && (Object.keys(g).forEach((u) => {
496
+ u in p || (p[u] = g[u]);
497
+ }), p.step = g.step, p.minValue = g.minValue, p.defaultValue = g.defaultValue, p.defaultUnit = g.defaultUnit, /\d+/g.test(p.value) === !1 && (p.value = g ? g.value : "1.0rem"));
498
498
  });
499
- const p = r.cssSettings.filter((g) => !d.some(
500
- (h) => h.key === g.key
499
+ const m = r.cssSettings.filter((p) => !d.some(
500
+ (g) => g.key === p.key
501
501
  ));
502
- s.cssSettings = [...d, ...p];
502
+ a.cssSettings = [...d, ...m];
503
503
  }
504
- s.widgets = s.widgets.filter(
505
- (p) => p.includes("WidgetContainer") || t.has(p)
506
- ), s.childWidgetsConfig = s.childWidgetsConfig.filter(
507
- (p) => t.has(p.widgetKey)
508
- ), s.zoomScale ? s.zoomScale < 0.7 && (s.zoomScale = 0.7) : s.zoomScale = 1;
504
+ a.widgets = a.widgets.filter(
505
+ (m) => m.includes("WidgetContainer") || t.has(m)
506
+ ), a.childWidgetsConfig = a.childWidgetsConfig.filter(
507
+ (m) => t.has(m.widgetKey)
508
+ ), a.zoomScale ? a.zoomScale < 0.7 && (a.zoomScale = 0.7) : a.zoomScale = 1;
509
509
  }), o);
510
510
  } catch (o) {
511
511
  console.warn("Error parsing saved dashboard config:", o);
512
512
  }
513
513
  return [r];
514
- }, zt = async (e, n, t, r) => {
514
+ }, Bt = async (e, n, t, r) => {
515
515
  t.forEach((o) => {
516
516
  if (o.userID = e, o.clientAppKey = n, o.responsiveGrid = o.responsiveGrid ?? !1, typeof o != "object")
517
517
  throw new Error("Invalid dashboard configuration");
518
518
  o.widgets = o.widgets.filter(
519
- (s) => s.includes("WidgetContainer") || r.has(s)
519
+ (a) => a.includes("WidgetContainer") || r.has(a)
520
520
  ), o.childWidgetsConfig = o.childWidgetsConfig.filter(
521
- (s) => r.has(s.widgetKey)
521
+ (a) => r.has(a.widgetKey)
522
522
  ), o.zoomScale ? o.zoomScale < 0.7 && (o.zoomScale = 0.7) : o.zoomScale = 1;
523
523
  });
524
524
  const i = JSON.stringify(t);
525
525
  return localStorage.setItem(dt(e, n), i), !0;
526
- }, Bt = {
527
- getSavedDashboards: qt,
528
- saveDashboards: zt
529
- }, Rn = () => Bt, kn = () => {
530
- const [e, n] = ce({}), [t, r] = ce({}), i = ue((h) => {
531
- const u = h.dashboardId;
532
- n((m) => {
526
+ }, Kt = {
527
+ getSavedDashboards: zt,
528
+ saveDashboards: Bt
529
+ }, Rn = () => Kt, kn = () => {
530
+ const [e, n] = le({}), [t, r] = le({}), i = ue((g) => {
531
+ const u = g.dashboardId;
532
+ n((h) => {
533
533
  const y = {
534
534
  undoIndex: 0,
535
- config: h
535
+ config: g
536
536
  };
537
- return r((x) => ({
538
- ...x,
537
+ return r((w) => ({
538
+ ...w,
539
539
  [u]: 0
540
540
  })), {
541
- ...m,
541
+ ...h,
542
542
  [u]: [y]
543
543
  // Forces a reset to just this one entry
544
544
  };
545
545
  });
546
546
  }, []), o = ue(
547
- (h) => {
547
+ (g) => {
548
548
  n((u) => {
549
- const m = h.dashboardId, y = u[m] || [], x = t[m] ?? -1, v = y.slice(0, x + 1), b = {
549
+ const h = g.dashboardId, y = u[h] || [], w = t[h] ?? -1, v = y.slice(0, w + 1), b = {
550
550
  undoIndex: v.length,
551
551
  // New index based on trimmed length
552
- config: h
552
+ config: g
553
553
  }, C = [...v, b];
554
554
  return r((T) => ({
555
555
  ...T,
556
- [m]: C.length - 1
556
+ [h]: C.length - 1
557
557
  // Index is now the last element's index
558
558
  })), {
559
559
  ...u,
560
- [m]: C
560
+ [h]: C
561
561
  };
562
562
  });
563
563
  },
564
564
  [t]
565
- ), s = ue((h) => {
565
+ ), a = ue((g) => {
566
566
  n((u) => {
567
- if (!u[h])
567
+ if (!u[g])
568
568
  return u;
569
- const { [h]: m, ...y } = u;
569
+ const { [g]: h, ...y } = u;
570
570
  return y;
571
571
  }), r((u) => {
572
- const { [h]: m, ...y } = u;
572
+ const { [g]: h, ...y } = u;
573
573
  return y;
574
574
  });
575
575
  }, []), d = ue(
576
- (h) => {
576
+ (g) => {
577
577
  r((u) => {
578
- const m = u[h] ?? -1, y = Math.max(0, m - 1);
579
- return y !== m ? { ...u, [h]: y } : u;
578
+ const h = u[g] ?? -1, y = Math.max(0, h - 1);
579
+ return y !== h ? { ...u, [g]: y } : u;
580
580
  });
581
581
  },
582
582
  [
583
583
  //loadConfigFromHistory
584
584
  ]
585
- ), p = ue(
586
- (h) => {
585
+ ), m = ue(
586
+ (g) => {
587
587
  r((u) => {
588
- const m = e[h]?.length || 0, y = u[h] ?? -1, x = Math.min(m - 1, y + 1);
589
- return x !== y ? { ...u, [h]: x } : u;
588
+ const h = e[g]?.length || 0, y = u[g] ?? -1, w = Math.min(h - 1, y + 1);
589
+ return w !== y ? { ...u, [g]: w } : u;
590
590
  });
591
591
  },
592
592
  [
@@ -598,12 +598,12 @@ const kt = (e) => {
598
598
  initializeHistoryForDashboard: i,
599
599
  resetAllHistory: () => n({}),
600
600
  addUndoEntry: o,
601
- removeUndoHistoryForDashboard: s,
601
+ removeUndoHistoryForDashboard: a,
602
602
  undo: d,
603
- redo: p,
604
- getUndoStatus: (h) => {
605
- const u = t[h] ?? -1, m = e[h]?.length || 0, y = u <= 0, x = u >= m - 1;
606
- return { isUndoDisabled: y, isRedoDisabled: x };
603
+ redo: m,
604
+ getUndoStatus: (g) => {
605
+ const u = t[g] ?? -1, h = e[g]?.length || 0, y = u <= 0, w = u >= h - 1;
606
+ return { isUndoDisabled: y, isRedoDisabled: w };
607
607
  },
608
608
  undoHistory: e,
609
609
  historyIndex: t
@@ -614,7 +614,7 @@ function K({
614
614
  children: e,
615
615
  className: n
616
616
  }) {
617
- return /* @__PURE__ */ a(
617
+ return /* @__PURE__ */ s(
618
618
  "svg",
619
619
  {
620
620
  xmlns: "http://www.w3.org/2000/svg",
@@ -633,40 +633,40 @@ function K({
633
633
  }
634
634
  function jn({ className: e }) {
635
635
  return /* @__PURE__ */ W(K, { className: `lucide lucide-circle-plus-icon lucide-circle-plus ${e}`, children: [
636
- /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "10" }),
637
- /* @__PURE__ */ a("path", { d: "M8 12h8" }),
638
- /* @__PURE__ */ a("path", { d: "M12 8v8" })
636
+ /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
637
+ /* @__PURE__ */ s("path", { d: "M8 12h8" }),
638
+ /* @__PURE__ */ s("path", { d: "M12 8v8" })
639
639
  ] });
640
640
  }
641
641
  function An({ className: e }) {
642
642
  return /* @__PURE__ */ W(K, { className: `lucide lucide-trash2-icon lucide-trash-2 ${e}`, children: [
643
- /* @__PURE__ */ a("path", { d: "M10 11v6" }),
644
- /* @__PURE__ */ a("path", { d: "M14 11v6" }),
645
- /* @__PURE__ */ a("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }),
646
- /* @__PURE__ */ a("path", { d: "M3 6h18" }),
647
- /* @__PURE__ */ a("path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
643
+ /* @__PURE__ */ s("path", { d: "M10 11v6" }),
644
+ /* @__PURE__ */ s("path", { d: "M14 11v6" }),
645
+ /* @__PURE__ */ s("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }),
646
+ /* @__PURE__ */ s("path", { d: "M3 6h18" }),
647
+ /* @__PURE__ */ s("path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
648
648
  ] });
649
649
  }
650
- function Fn({ className: e }) {
650
+ function Ln({ className: e }) {
651
651
  return /* @__PURE__ */ W(K, { className: `lucide lucide-square-pen-icon lucide-square-pen ${e}`, children: [
652
- /* @__PURE__ */ a("path", { d: "M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
653
- /* @__PURE__ */ a("path", { d: "M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z" })
652
+ /* @__PURE__ */ s("path", { d: "M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
653
+ /* @__PURE__ */ s("path", { d: "M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z" })
654
654
  ] });
655
655
  }
656
- function Ln({ className: e }) {
656
+ function Fn({ className: e }) {
657
657
  return /* @__PURE__ */ W(K, { className: `lucide lucide-grid3x3-icon lucide-grid-3x3 ${e}`, children: [
658
- /* @__PURE__ */ a("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
659
- /* @__PURE__ */ a("path", { d: "M3 9h18" }),
660
- /* @__PURE__ */ a("path", { d: "M3 15h18" }),
661
- /* @__PURE__ */ a("path", { d: "M9 3v18" }),
662
- /* @__PURE__ */ a("path", { d: "M15 3v18" })
658
+ /* @__PURE__ */ s("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
659
+ /* @__PURE__ */ s("path", { d: "M3 9h18" }),
660
+ /* @__PURE__ */ s("path", { d: "M3 15h18" }),
661
+ /* @__PURE__ */ s("path", { d: "M9 3v18" }),
662
+ /* @__PURE__ */ s("path", { d: "M15 3v18" })
663
663
  ] });
664
664
  }
665
665
  function Un({ className: e }) {
666
666
  return /* @__PURE__ */ W(K, { className: `lucide lucide-monitor-icon lucide-monitor ${e}`, children: [
667
- /* @__PURE__ */ a("rect", { width: "20", height: "14", x: "2", y: "3", rx: "2" }),
668
- /* @__PURE__ */ a("line", { x1: "8", x2: "16", y1: "21", y2: "21" }),
669
- /* @__PURE__ */ a("line", { x1: "12", x2: "12", y1: "17", y2: "21" })
667
+ /* @__PURE__ */ s("rect", { width: "20", height: "14", x: "2", y: "3", rx: "2" }),
668
+ /* @__PURE__ */ s("line", { x1: "8", x2: "16", y1: "21", y2: "21" }),
669
+ /* @__PURE__ */ s("line", { x1: "12", x2: "12", y1: "17", y2: "21" })
670
670
  ] });
671
671
  }
672
672
  function Vn({ className: e }) {
@@ -675,10 +675,10 @@ function Vn({ className: e }) {
675
675
  {
676
676
  className: `lucide lucide-monitor-smartphone-icon lucide-monitor-smartphone ${e}`,
677
677
  children: [
678
- /* @__PURE__ */ a("path", { d: "M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8" }),
679
- /* @__PURE__ */ a("path", { d: "M10 19v-3.96 3.15" }),
680
- /* @__PURE__ */ a("path", { d: "M7 19h5" }),
681
- /* @__PURE__ */ a("rect", { width: "6", height: "10", x: "16", y: "12", rx: "2" })
678
+ /* @__PURE__ */ s("path", { d: "M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8" }),
679
+ /* @__PURE__ */ s("path", { d: "M10 19v-3.96 3.15" }),
680
+ /* @__PURE__ */ s("path", { d: "M7 19h5" }),
681
+ /* @__PURE__ */ s("rect", { width: "6", height: "10", x: "16", y: "12", rx: "2" })
682
682
  ]
683
683
  }
684
684
  );
@@ -689,9 +689,9 @@ function ut({ className: e }) {
689
689
  {
690
690
  className: `lucide lucide-circle-arrow-left-icon lucide-circle-arrow-left ${e}`,
691
691
  children: [
692
- /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "10" }),
693
- /* @__PURE__ */ a("path", { d: "m12 8-4 4 4 4" }),
694
- /* @__PURE__ */ a("path", { d: "M16 12H8" })
692
+ /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
693
+ /* @__PURE__ */ s("path", { d: "m12 8-4 4 4 4" }),
694
+ /* @__PURE__ */ s("path", { d: "M16 12H8" })
695
695
  ]
696
696
  }
697
697
  );
@@ -702,17 +702,17 @@ function ft({ className: e }) {
702
702
  {
703
703
  className: `lucide lucide-circle-arrow-right-icon lucide-circle-arrow-right ${e}`,
704
704
  children: [
705
- /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "10" }),
706
- /* @__PURE__ */ a("path", { d: "m12 16 4-4-4-4" }),
707
- /* @__PURE__ */ a("path", { d: "M8 12h8" })
705
+ /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
706
+ /* @__PURE__ */ s("path", { d: "m12 16 4-4-4-4" }),
707
+ /* @__PURE__ */ s("path", { d: "M8 12h8" })
708
708
  ]
709
709
  }
710
710
  );
711
711
  }
712
- function Kt({ className: e }) {
712
+ function Ht({ className: e }) {
713
713
  return /* @__PURE__ */ W(K, { className: `lucide lucide-settings-icon lucide-settings ${e}`, children: [
714
- /* @__PURE__ */ a("path", { d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" }),
715
- /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "3" })
714
+ /* @__PURE__ */ s("path", { d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" }),
715
+ /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "3" })
716
716
  ] });
717
717
  }
718
718
  function Yn({ className: e }) {
@@ -721,96 +721,96 @@ function Yn({ className: e }) {
721
721
  {
722
722
  className: `lucide lucide-tablet-smartphone-icon lucide-tablet-smartphone ${e}`,
723
723
  children: [
724
- /* @__PURE__ */ a("rect", { width: "10", height: "14", x: "3", y: "8", rx: "2" }),
725
- /* @__PURE__ */ a("path", { d: "M5 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2h-2.4" }),
726
- /* @__PURE__ */ a("path", { d: "M8 18h.01" })
724
+ /* @__PURE__ */ s("rect", { width: "10", height: "14", x: "3", y: "8", rx: "2" }),
725
+ /* @__PURE__ */ s("path", { d: "M5 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2h-2.4" }),
726
+ /* @__PURE__ */ s("path", { d: "M8 18h.01" })
727
727
  ]
728
728
  }
729
729
  );
730
730
  }
731
731
  function ht({ className: e }) {
732
732
  return /* @__PURE__ */ W(K, { className: `lucide lucide-circle-x-icon lucide-circle-x ${e}`, children: [
733
- /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "10" }),
734
- /* @__PURE__ */ a("path", { d: "m15 9-6 6" }),
735
- /* @__PURE__ */ a("path", { d: "m9 9 6 6" })
733
+ /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
734
+ /* @__PURE__ */ s("path", { d: "m15 9-6 6" }),
735
+ /* @__PURE__ */ s("path", { d: "m9 9 6 6" })
736
736
  ] });
737
737
  }
738
738
  function qn({ className: e }) {
739
739
  return /* @__PURE__ */ W(K, { className: `lucide lucide-zoom-in-icon lucide-zoom-in ${e}`, children: [
740
- /* @__PURE__ */ a("circle", { cx: "11", cy: "11", r: "8" }),
741
- /* @__PURE__ */ a("line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65" }),
742
- /* @__PURE__ */ a("line", { x1: "11", x2: "11", y1: "8", y2: "14" }),
743
- /* @__PURE__ */ a("line", { x1: "8", x2: "14", y1: "11", y2: "11" })
740
+ /* @__PURE__ */ s("circle", { cx: "11", cy: "11", r: "8" }),
741
+ /* @__PURE__ */ s("line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65" }),
742
+ /* @__PURE__ */ s("line", { x1: "11", x2: "11", y1: "8", y2: "14" }),
743
+ /* @__PURE__ */ s("line", { x1: "8", x2: "14", y1: "11", y2: "11" })
744
744
  ] });
745
745
  }
746
746
  function zn({ className: e }) {
747
747
  return /* @__PURE__ */ W(K, { className: `lucide lucide-zoom-out-icon lucide-zoom-out ${e}`, children: [
748
- /* @__PURE__ */ a("circle", { cx: "11", cy: "11", r: "8" }),
749
- /* @__PURE__ */ a("line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65" }),
750
- /* @__PURE__ */ a("line", { x1: "8", x2: "14", y1: "11", y2: "11" })
748
+ /* @__PURE__ */ s("circle", { cx: "11", cy: "11", r: "8" }),
749
+ /* @__PURE__ */ s("line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65" }),
750
+ /* @__PURE__ */ s("line", { x1: "8", x2: "14", y1: "11", y2: "11" })
751
751
  ] });
752
752
  }
753
- function Ht({ className: e }) {
753
+ function Xt({ className: e }) {
754
754
  return /* @__PURE__ */ W(K, { className: `lucide lucide-timer-reset-icon lucide-timer-reset ${e}`, children: [
755
- /* @__PURE__ */ a("path", { d: "M10 2h4" }),
756
- /* @__PURE__ */ a("path", { d: "M12 14v-4" }),
757
- /* @__PURE__ */ a("path", { d: "M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6" }),
758
- /* @__PURE__ */ a("path", { d: "M9 17H4v5" })
755
+ /* @__PURE__ */ s("path", { d: "M10 2h4" }),
756
+ /* @__PURE__ */ s("path", { d: "M12 14v-4" }),
757
+ /* @__PURE__ */ s("path", { d: "M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6" }),
758
+ /* @__PURE__ */ s("path", { d: "M9 17H4v5" })
759
759
  ] });
760
760
  }
761
- function Xt({ className: e }) {
761
+ function Gt({ className: e }) {
762
762
  return /* @__PURE__ */ W(K, { className: `lucide lucide-undo-icon lucide-undo ${e}`, children: [
763
- /* @__PURE__ */ a("path", { d: "M3 7v6h6" }),
764
- /* @__PURE__ */ a("path", { d: "M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13" })
763
+ /* @__PURE__ */ s("path", { d: "M3 7v6h6" }),
764
+ /* @__PURE__ */ s("path", { d: "M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13" })
765
765
  ] });
766
766
  }
767
- function Gt({ className: e }) {
767
+ function Zt({ className: e }) {
768
768
  return /* @__PURE__ */ W(K, { className: `lucide lucide-redo-icon lucide-redo ${e}`, children: [
769
- /* @__PURE__ */ a("path", { d: "M21 7v6h-6" }),
770
- /* @__PURE__ */ a("path", { d: "M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7" })
769
+ /* @__PURE__ */ s("path", { d: "M21 7v6h-6" }),
770
+ /* @__PURE__ */ s("path", { d: "M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7" })
771
771
  ] });
772
772
  }
773
- function Zt({ className: e }) {
773
+ function Jt({ className: e }) {
774
774
  return /* @__PURE__ */ W(K, { className: `lucide lucide-hand-icon lucide-hand ${e}`, children: [
775
- /* @__PURE__ */ a("path", { d: "M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2" }),
776
- /* @__PURE__ */ a("path", { d: "M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2" }),
777
- /* @__PURE__ */ a("path", { d: "M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8" }),
778
- /* @__PURE__ */ a("path", { d: "M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15" })
775
+ /* @__PURE__ */ s("path", { d: "M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2" }),
776
+ /* @__PURE__ */ s("path", { d: "M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2" }),
777
+ /* @__PURE__ */ s("path", { d: "M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8" }),
778
+ /* @__PURE__ */ s("path", { d: "M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15" })
779
779
  ] });
780
780
  }
781
- function Jt({ className: e }) {
781
+ function Qt({ className: e }) {
782
782
  return /* @__PURE__ */ W(K, { className: `lucide lucide-hand-grab-icon lucide-hand-grab ${e}`, children: [
783
- /* @__PURE__ */ a("path", { d: "M18 11.5V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4" }),
784
- /* @__PURE__ */ a("path", { d: "M14 10V8a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2" }),
785
- /* @__PURE__ */ a("path", { d: "M10 9.9V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v5" }),
786
- /* @__PURE__ */ a("path", { d: "M6 14a2 2 0 0 0-2-2a2 2 0 0 0-2 2" }),
787
- /* @__PURE__ */ a("path", { d: "M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-4a8 8 0 0 1-8-8 2 2 0 1 1 4 0" })
783
+ /* @__PURE__ */ s("path", { d: "M18 11.5V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4" }),
784
+ /* @__PURE__ */ s("path", { d: "M14 10V8a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2" }),
785
+ /* @__PURE__ */ s("path", { d: "M10 9.9V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v5" }),
786
+ /* @__PURE__ */ s("path", { d: "M6 14a2 2 0 0 0-2-2a2 2 0 0 0-2 2" }),
787
+ /* @__PURE__ */ s("path", { d: "M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-4a8 8 0 0 1-8-8 2 2 0 1 1 4 0" })
788
788
  ] });
789
789
  }
790
- function Qt({ className: e }) {
790
+ function en({ className: e }) {
791
791
  return /* @__PURE__ */ W(K, { className: `lucide lucide-crosshair-icon lucide-crosshair ${e}`, children: [
792
- /* @__PURE__ */ a("line", { x1: "22", x2: "18", y1: "12", y2: "12" }),
793
- /* @__PURE__ */ a("line", { x1: "6", x2: "2", y1: "12", y2: "12" }),
794
- /* @__PURE__ */ a("line", { x1: "12", x2: "12", y1: "6", y2: "2" }),
795
- /* @__PURE__ */ a("line", { x1: "12", x2: "12", y1: "22", y2: "18" })
792
+ /* @__PURE__ */ s("line", { x1: "22", x2: "18", y1: "12", y2: "12" }),
793
+ /* @__PURE__ */ s("line", { x1: "6", x2: "2", y1: "12", y2: "12" }),
794
+ /* @__PURE__ */ s("line", { x1: "12", x2: "12", y1: "6", y2: "2" }),
795
+ /* @__PURE__ */ s("line", { x1: "12", x2: "12", y1: "22", y2: "18" })
796
796
  ] });
797
797
  }
798
798
  function Bn({ className: e }) {
799
799
  return /* @__PURE__ */ W(K, { className: `lucide lucide-target-icon lucide-target ${e}`, children: [
800
- /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "10" }),
801
- /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "6" }),
802
- /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "2" })
800
+ /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
801
+ /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "6" }),
802
+ /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "2" })
803
803
  ] });
804
804
  }
805
- function en({ className: e }) {
805
+ function tn({ className: e }) {
806
806
  return /* @__PURE__ */ W(
807
807
  K,
808
808
  {
809
809
  className: `lucide lucide-file-question-mark-icon lucide-file-question-mark ${e}`,
810
810
  children: [
811
- /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "10" }),
812
- /* @__PURE__ */ a("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
813
- /* @__PURE__ */ a("path", { d: "M12 17h.01" })
811
+ /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
812
+ /* @__PURE__ */ s("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
813
+ /* @__PURE__ */ s("path", { d: "M12 17h.01" })
814
814
  ]
815
815
  }
816
816
  );
@@ -859,18 +859,18 @@ const Z = (e, ...n) => [
859
859
  value: r,
860
860
  onChange: i,
861
861
  onKeyDown: o,
862
- placeholder: s = ""
862
+ placeholder: a = ""
863
863
  }) => {
864
- const d = at(() => t === "small" ? "py-1.5 px-3 text-sm" : "py-2.5 px-4 text-base", [t]), p = Z("flex flex-col mb-4", n || ""), h = `${Z(`
864
+ const d = at(() => t === "small" ? "py-1.5 px-3 text-sm" : "py-2.5 px-4 text-base", [t]), m = Z("flex flex-col mb-4", n || ""), g = `${Z(`
865
865
  block w-full rounded-md px-3 py-1.5 text-base
866
866
  bg-formfield content-formfield
867
867
  outline-1 -outline-offset-1 outline-primary
868
868
  placeholder:text-disabled
869
869
  focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-200 sm:text-sm/6
870
870
  `)} ${d}`;
871
- return /* @__PURE__ */ W("div", { className: p, children: [
872
- /* @__PURE__ */ a("label", { htmlFor: e, className: "block text-sm/6 font-medium mb-1.5", children: e }),
873
- /* @__PURE__ */ a(
871
+ return /* @__PURE__ */ W("div", { className: m, children: [
872
+ /* @__PURE__ */ s("label", { htmlFor: e, className: "block text-sm/6 font-medium mb-1.5", children: e }),
873
+ /* @__PURE__ */ s(
874
874
  "input",
875
875
  {
876
876
  id: e,
@@ -878,8 +878,8 @@ const Z = (e, ...n) => [
878
878
  value: r,
879
879
  onChange: i,
880
880
  onKeyDown: (u) => o && o(u),
881
- placeholder: s,
882
- className: h,
881
+ placeholder: a,
882
+ className: g,
883
883
  "aria-label": e
884
884
  }
885
885
  )
@@ -901,20 +901,20 @@ function J(e) {
901
901
  isIconButton: r,
902
902
  className: i,
903
903
  buttonType: o,
904
- category: s,
904
+ category: a,
905
905
  px: d,
906
- py: p,
907
- children: g,
908
- ...h
906
+ py: m,
907
+ children: p,
908
+ ...g
909
909
  } = e, u = () => {
910
- const y = e.isIconButton || !1, x = e.category || "primary", v = e.buttonType || "normal", b = e.disabled || !1, C = e.className || "", T = e.font || "semibold", S = Number((e.border || 0) > 0 ? e.border : 0);
910
+ const y = e.isIconButton || !1, w = e.category || "primary", v = e.buttonType || "normal", b = e.disabled || !1, C = e.className || "", T = e.font || "semibold", S = Number((e.border || 0) > 0 ? e.border : 0);
911
911
  let D = (e.borderColor || "").trim();
912
912
  D = D.length > 0 ? D : "";
913
- const c = Number((e.borderHover || 0) > 0 ? e.borderHover : 0), N = e.shadow || "sm", l = e.shadowHover || "md", f = (e.addCss || "").trim(), P = e.justifyCss || "justify-center";
913
+ const l = Number((e.borderHover || 0) > 0 ? e.borderHover : 0), N = e.shadow || "sm", c = e.shadowHover || "md", f = (e.addCss || "").trim(), P = e.justifyCss || "justify-center";
914
914
  if (y)
915
915
  return Z(
916
916
  "flex flex-row items-center",
917
- b ? "text-disabled" : `text-${x} hover:brightness-110 cursor-pointer`,
917
+ b ? "text-disabled" : `text-${w} hover:brightness-110 cursor-pointer`,
918
918
  C || ""
919
919
  );
920
920
  const $ = [
@@ -930,33 +930,33 @@ function J(e) {
930
930
  $.push("cursor-pointer");
931
931
  let O = "";
932
932
  Se.has(v) ? O = `${Se.get(v)}` : O = `${Se.get("normal")}`, S < 1 && (O = O.replace("border-[category]", ""));
933
- const E = O.replace(/\[category\]/g, x).trim();
933
+ const E = O.replace(/\[category\]/g, w).trim();
934
934
  $.push(E);
935
935
  }
936
- return S > 0 ? ($.push(`border-[${S}px]`), $.push(`border-${D}`)) : ($.push("border-[1px]"), $.push("border-transparent")), c > 0 ? ($.push(`hover:border-[${c}px] group-hover:border-[${c}px]`), $.push(`hover:border-${D} group-hover:border-${D}`)) : $.push("hover:border-[1px] group-hover:border-[1px]"), $.push(`shadow-${N}`), $.push(`hover:shadow-${l} group-hover:shadow-${l}`), f.length > 0 && $.push(f), f.indexOf("hidden") === -1 && $.push("inline-flex"), $.push(P), $.join(" ").trim();
937
- }, m = () => {
938
- const y = e.px || 0.7, x = e.py || 0.25;
936
+ return S > 0 ? ($.push(`border-[${S}px]`), $.push(`border-${D}`)) : ($.push("border-[1px]"), $.push("border-transparent")), l > 0 ? ($.push(`hover:border-[${l}px] group-hover:border-[${l}px]`), $.push(`hover:border-${D} group-hover:border-${D}`)) : $.push("hover:border-[1px] group-hover:border-[1px]"), $.push(`shadow-${N}`), $.push(`hover:shadow-${c} group-hover:shadow-${c}`), f.length > 0 && $.push(f), f.indexOf("hidden") === -1 && $.push("inline-flex"), $.push(P), $.join(" ").trim();
937
+ }, h = () => {
938
+ const y = e.px || 0.7, w = e.py || 0.25;
939
939
  return {
940
- padding: r ? 0 : `${x}rem ${y}rem `
940
+ padding: r ? 0 : `${w}rem ${y}rem `
941
941
  };
942
942
  };
943
- return /* @__PURE__ */ a("button", { type: "button", disabled: t, className: u(), style: m(), ...h, children: g });
943
+ return /* @__PURE__ */ s("button", { type: "button", disabled: t, className: u(), style: h(), ...g, children: p });
944
944
  }
945
- const tn = (e) => e.direction === "row" ? Z("flex flex-row items-center gap-2", e.classNames || "") : Z("flex flex-col gap-2 w-full", e.classNames || "");
946
- function nn(e) {
947
- const { children: n, testId: t, classNames: r, direction: i, ...o } = e, s = tn(e);
948
- return /* @__PURE__ */ a("div", { "data-testid": t || "not-set", className: s, ...o, children: n });
945
+ const nn = (e) => e.direction === "row" ? Z("flex flex-row items-center gap-2", e.classNames || "") : Z("flex flex-col gap-2 w-full", e.classNames || "");
946
+ function rn(e) {
947
+ const { children: n, testId: t, classNames: r, direction: i, ...o } = e, a = nn(e);
948
+ return /* @__PURE__ */ s("div", { "data-testid": t || "not-set", className: a, ...o, children: n });
949
949
  }
950
- const Xn = le(
950
+ const Xn = ce(
951
951
  (e, n) => {
952
- const { classNames: t, innerClass: r, ...i } = e, o = Z(t || "", "w-full"), s = Z(
952
+ const { classNames: t, innerClass: r, ...i } = e, o = Z(t || "", "w-full"), a = Z(
953
953
  `w-full flex overflow-hidden justify-between items-center gap-0
954
954
  rounded-md border`,
955
955
  r || ""
956
956
  );
957
- return /* @__PURE__ */ a(nn, { direction: "row", classNames: o, ...i, children: /* @__PURE__ */ a("div", { className: s, children: e.children }) });
957
+ return /* @__PURE__ */ s(rn, { direction: "row", classNames: o, ...i, children: /* @__PURE__ */ s("div", { className: a, children: e.children }) });
958
958
  }
959
- ), Gn = le((e, n) => /* @__PURE__ */ a(
959
+ ), Gn = ce((e, n) => /* @__PURE__ */ s(
960
960
  "div",
961
961
  {
962
962
  "data-testid": e.testId || "not-set",
@@ -967,8 +967,8 @@ const Xn = le(
967
967
  },
968
968
  children: e.children
969
969
  }
970
- )), Zn = le(
971
- (e, n) => /* @__PURE__ */ a(
970
+ )), Zn = ce(
971
+ (e, n) => /* @__PURE__ */ s(
972
972
  "div",
973
973
  {
974
974
  "data-testid": e.testId || "not-set",
@@ -976,7 +976,7 @@ const Xn = le(
976
976
  children: e.children
977
977
  }
978
978
  )
979
- ), Jn = le((e, n) => /* @__PURE__ */ a(
979
+ ), Jn = ce((e, n) => /* @__PURE__ */ s(
980
980
  "div",
981
981
  {
982
982
  "data-testid": e.testId || "not-set",
@@ -988,36 +988,36 @@ const Xn = le(
988
988
  children: e.children
989
989
  }
990
990
  ));
991
- function rn(e) {
991
+ function on(e) {
992
992
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
993
993
  }
994
994
  var fe = { exports: {} }, De = {}, pe = { exports: {} }, ye = { exports: {} }, V = {};
995
995
  var Ue;
996
- function on() {
996
+ function an() {
997
997
  if (Ue) return V;
998
998
  Ue = 1;
999
- var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, g = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, h = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, u = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, y = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, x = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, T = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
1000
- function S(c) {
1001
- if (typeof c == "object" && c !== null) {
1002
- var N = c.$$typeof;
999
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, m = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, p = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, g = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, u = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, h = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, y = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, w = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, T = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
1000
+ function S(l) {
1001
+ if (typeof l == "object" && l !== null) {
1002
+ var N = l.$$typeof;
1003
1003
  switch (N) {
1004
1004
  case n:
1005
- switch (c = c.type, c) {
1005
+ switch (l = l.type, l) {
1006
+ case m:
1006
1007
  case p:
1007
- case g:
1008
1008
  case r:
1009
1009
  case o:
1010
1010
  case i:
1011
1011
  case u:
1012
- return c;
1012
+ return l;
1013
1013
  default:
1014
- switch (c = c && c.$$typeof, c) {
1014
+ switch (l = l && l.$$typeof, l) {
1015
1015
  case d:
1016
- case h:
1017
- case x:
1016
+ case g:
1017
+ case w:
1018
1018
  case y:
1019
- case s:
1020
- return c;
1019
+ case a:
1020
+ return l;
1021
1021
  default:
1022
1022
  return N;
1023
1023
  }
@@ -1027,45 +1027,45 @@ function on() {
1027
1027
  }
1028
1028
  }
1029
1029
  }
1030
- function D(c) {
1031
- return S(c) === g;
1032
- }
1033
- return V.AsyncMode = p, V.ConcurrentMode = g, V.ContextConsumer = d, V.ContextProvider = s, V.Element = n, V.ForwardRef = h, V.Fragment = r, V.Lazy = x, V.Memo = y, V.Portal = t, V.Profiler = o, V.StrictMode = i, V.Suspense = u, V.isAsyncMode = function(c) {
1034
- return D(c) || S(c) === p;
1035
- }, V.isConcurrentMode = D, V.isContextConsumer = function(c) {
1036
- return S(c) === d;
1037
- }, V.isContextProvider = function(c) {
1038
- return S(c) === s;
1039
- }, V.isElement = function(c) {
1040
- return typeof c == "object" && c !== null && c.$$typeof === n;
1041
- }, V.isForwardRef = function(c) {
1042
- return S(c) === h;
1043
- }, V.isFragment = function(c) {
1044
- return S(c) === r;
1045
- }, V.isLazy = function(c) {
1046
- return S(c) === x;
1047
- }, V.isMemo = function(c) {
1048
- return S(c) === y;
1049
- }, V.isPortal = function(c) {
1050
- return S(c) === t;
1051
- }, V.isProfiler = function(c) {
1052
- return S(c) === o;
1053
- }, V.isStrictMode = function(c) {
1054
- return S(c) === i;
1055
- }, V.isSuspense = function(c) {
1056
- return S(c) === u;
1057
- }, V.isValidElementType = function(c) {
1058
- return typeof c == "string" || typeof c == "function" || c === r || c === g || c === o || c === i || c === u || c === m || typeof c == "object" && c !== null && (c.$$typeof === x || c.$$typeof === y || c.$$typeof === s || c.$$typeof === d || c.$$typeof === h || c.$$typeof === b || c.$$typeof === C || c.$$typeof === T || c.$$typeof === v);
1030
+ function D(l) {
1031
+ return S(l) === p;
1032
+ }
1033
+ return V.AsyncMode = m, V.ConcurrentMode = p, V.ContextConsumer = d, V.ContextProvider = a, V.Element = n, V.ForwardRef = g, V.Fragment = r, V.Lazy = w, V.Memo = y, V.Portal = t, V.Profiler = o, V.StrictMode = i, V.Suspense = u, V.isAsyncMode = function(l) {
1034
+ return D(l) || S(l) === m;
1035
+ }, V.isConcurrentMode = D, V.isContextConsumer = function(l) {
1036
+ return S(l) === d;
1037
+ }, V.isContextProvider = function(l) {
1038
+ return S(l) === a;
1039
+ }, V.isElement = function(l) {
1040
+ return typeof l == "object" && l !== null && l.$$typeof === n;
1041
+ }, V.isForwardRef = function(l) {
1042
+ return S(l) === g;
1043
+ }, V.isFragment = function(l) {
1044
+ return S(l) === r;
1045
+ }, V.isLazy = function(l) {
1046
+ return S(l) === w;
1047
+ }, V.isMemo = function(l) {
1048
+ return S(l) === y;
1049
+ }, V.isPortal = function(l) {
1050
+ return S(l) === t;
1051
+ }, V.isProfiler = function(l) {
1052
+ return S(l) === o;
1053
+ }, V.isStrictMode = function(l) {
1054
+ return S(l) === i;
1055
+ }, V.isSuspense = function(l) {
1056
+ return S(l) === u;
1057
+ }, V.isValidElementType = function(l) {
1058
+ return typeof l == "string" || typeof l == "function" || l === r || l === p || l === o || l === i || l === u || l === h || typeof l == "object" && l !== null && (l.$$typeof === w || l.$$typeof === y || l.$$typeof === a || l.$$typeof === d || l.$$typeof === g || l.$$typeof === b || l.$$typeof === C || l.$$typeof === T || l.$$typeof === v);
1059
1059
  }, V.typeOf = S, V;
1060
1060
  }
1061
1061
  var Y = {};
1062
1062
  var Ve;
1063
- function an() {
1063
+ function sn() {
1064
1064
  return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && (function() {
1065
- var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, g = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, h = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, u = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, y = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, x = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, T = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
1065
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, m = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, p = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, g = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, u = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, h = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, y = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, w = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, T = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
1066
1066
  function S(_) {
1067
1067
  return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1068
- _ === r || _ === g || _ === o || _ === i || _ === u || _ === m || typeof _ == "object" && _ !== null && (_.$$typeof === x || _.$$typeof === y || _.$$typeof === s || _.$$typeof === d || _.$$typeof === h || _.$$typeof === b || _.$$typeof === C || _.$$typeof === T || _.$$typeof === v);
1068
+ _ === r || _ === p || _ === o || _ === i || _ === u || _ === h || typeof _ == "object" && _ !== null && (_.$$typeof === w || _.$$typeof === y || _.$$typeof === a || _.$$typeof === d || _.$$typeof === g || _.$$typeof === b || _.$$typeof === C || _.$$typeof === T || _.$$typeof === v);
1069
1069
  }
1070
1070
  function D(_) {
1071
1071
  if (typeof _ == "object" && _ !== null) {
@@ -1074,8 +1074,8 @@ function an() {
1074
1074
  case n:
1075
1075
  var me = _.type;
1076
1076
  switch (me) {
1077
+ case m:
1077
1078
  case p:
1078
- case g:
1079
1079
  case r:
1080
1080
  case o:
1081
1081
  case i:
@@ -1085,10 +1085,10 @@ function an() {
1085
1085
  var je = me && me.$$typeof;
1086
1086
  switch (je) {
1087
1087
  case d:
1088
- case h:
1089
- case x:
1088
+ case g:
1089
+ case w:
1090
1090
  case y:
1091
- case s:
1091
+ case a:
1092
1092
  return je;
1093
1093
  default:
1094
1094
  return te;
@@ -1099,35 +1099,35 @@ function an() {
1099
1099
  }
1100
1100
  }
1101
1101
  }
1102
- var c = p, N = g, l = d, f = s, P = n, $ = h, O = r, E = x, z = y, X = t, Q = o, H = i, ee = u, ae = !1;
1102
+ var l = m, N = p, c = d, f = a, P = n, $ = g, O = r, E = w, z = y, X = t, Q = o, H = i, ee = u, ae = !1;
1103
1103
  function de(_) {
1104
- return ae || (ae = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), w(_) || D(_) === p;
1104
+ return ae || (ae = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), x(_) || D(_) === m;
1105
1105
  }
1106
- function w(_) {
1107
- return D(_) === g;
1106
+ function x(_) {
1107
+ return D(_) === p;
1108
1108
  }
1109
1109
  function M(_) {
1110
1110
  return D(_) === d;
1111
1111
  }
1112
1112
  function A(_) {
1113
- return D(_) === s;
1113
+ return D(_) === a;
1114
1114
  }
1115
1115
  function k(_) {
1116
1116
  return typeof _ == "object" && _ !== null && _.$$typeof === n;
1117
1117
  }
1118
1118
  function I(_) {
1119
- return D(_) === h;
1119
+ return D(_) === g;
1120
1120
  }
1121
- function F(_) {
1121
+ function L(_) {
1122
1122
  return D(_) === r;
1123
1123
  }
1124
1124
  function R(_) {
1125
- return D(_) === x;
1125
+ return D(_) === w;
1126
1126
  }
1127
1127
  function j(_) {
1128
1128
  return D(_) === y;
1129
1129
  }
1130
- function L(_) {
1130
+ function F(_) {
1131
1131
  return D(_) === t;
1132
1132
  }
1133
1133
  function q(_) {
@@ -1139,15 +1139,15 @@ function an() {
1139
1139
  function G(_) {
1140
1140
  return D(_) === u;
1141
1141
  }
1142
- Y.AsyncMode = c, Y.ConcurrentMode = N, Y.ContextConsumer = l, Y.ContextProvider = f, Y.Element = P, Y.ForwardRef = $, Y.Fragment = O, Y.Lazy = E, Y.Memo = z, Y.Portal = X, Y.Profiler = Q, Y.StrictMode = H, Y.Suspense = ee, Y.isAsyncMode = de, Y.isConcurrentMode = w, Y.isContextConsumer = M, Y.isContextProvider = A, Y.isElement = k, Y.isForwardRef = I, Y.isFragment = F, Y.isLazy = R, Y.isMemo = j, Y.isPortal = L, Y.isProfiler = q, Y.isStrictMode = U, Y.isSuspense = G, Y.isValidElementType = S, Y.typeOf = D;
1142
+ Y.AsyncMode = l, Y.ConcurrentMode = N, Y.ContextConsumer = c, Y.ContextProvider = f, Y.Element = P, Y.ForwardRef = $, Y.Fragment = O, Y.Lazy = E, Y.Memo = z, Y.Portal = X, Y.Profiler = Q, Y.StrictMode = H, Y.Suspense = ee, Y.isAsyncMode = de, Y.isConcurrentMode = x, Y.isContextConsumer = M, Y.isContextProvider = A, Y.isElement = k, Y.isForwardRef = I, Y.isFragment = L, Y.isLazy = R, Y.isMemo = j, Y.isPortal = F, Y.isProfiler = q, Y.isStrictMode = U, Y.isSuspense = G, Y.isValidElementType = S, Y.typeOf = D;
1143
1143
  })()), Y;
1144
1144
  }
1145
1145
  var Ye;
1146
1146
  function pt() {
1147
- return Ye || (Ye = 1, process.env.NODE_ENV === "production" ? ye.exports = on() : ye.exports = an()), ye.exports;
1147
+ return Ye || (Ye = 1, process.env.NODE_ENV === "production" ? ye.exports = an() : ye.exports = sn()), ye.exports;
1148
1148
  }
1149
1149
  var Te, qe;
1150
- function sn() {
1150
+ function cn() {
1151
1151
  if (qe) return Te;
1152
1152
  qe = 1;
1153
1153
  var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
@@ -1163,33 +1163,33 @@ function sn() {
1163
1163
  var o = new String("abc");
1164
1164
  if (o[5] = "de", Object.getOwnPropertyNames(o)[0] === "5")
1165
1165
  return !1;
1166
- for (var s = {}, d = 0; d < 10; d++)
1167
- s["_" + String.fromCharCode(d)] = d;
1168
- var p = Object.getOwnPropertyNames(s).map(function(h) {
1169
- return s[h];
1166
+ for (var a = {}, d = 0; d < 10; d++)
1167
+ a["_" + String.fromCharCode(d)] = d;
1168
+ var m = Object.getOwnPropertyNames(a).map(function(g) {
1169
+ return a[g];
1170
1170
  });
1171
- if (p.join("") !== "0123456789")
1171
+ if (m.join("") !== "0123456789")
1172
1172
  return !1;
1173
- var g = {};
1174
- return "abcdefghijklmnopqrst".split("").forEach(function(h) {
1175
- g[h] = h;
1176
- }), Object.keys(Object.assign({}, g)).join("") === "abcdefghijklmnopqrst";
1173
+ var p = {};
1174
+ return "abcdefghijklmnopqrst".split("").forEach(function(g) {
1175
+ p[g] = g;
1176
+ }), Object.keys(Object.assign({}, p)).join("") === "abcdefghijklmnopqrst";
1177
1177
  } catch {
1178
1178
  return !1;
1179
1179
  }
1180
1180
  }
1181
- return Te = i() ? Object.assign : function(o, s) {
1182
- for (var d, p = r(o), g, h = 1; h < arguments.length; h++) {
1183
- d = Object(arguments[h]);
1181
+ return Te = i() ? Object.assign : function(o, a) {
1182
+ for (var d, m = r(o), p, g = 1; g < arguments.length; g++) {
1183
+ d = Object(arguments[g]);
1184
1184
  for (var u in d)
1185
- n.call(d, u) && (p[u] = d[u]);
1185
+ n.call(d, u) && (m[u] = d[u]);
1186
1186
  if (e) {
1187
- g = e(d);
1188
- for (var m = 0; m < g.length; m++)
1189
- t.call(d, g[m]) && (p[g[m]] = d[g[m]]);
1187
+ p = e(d);
1188
+ for (var h = 0; h < p.length; h++)
1189
+ t.call(d, p[h]) && (m[p[h]] = d[p[h]]);
1190
1190
  }
1191
1191
  }
1192
- return p;
1192
+ return m;
1193
1193
  }, Te;
1194
1194
  }
1195
1195
  var Ne, ze;
@@ -1212,35 +1212,35 @@ function ln() {
1212
1212
  if (process.env.NODE_ENV !== "production") {
1213
1213
  var n = /* @__PURE__ */ Oe(), t = {}, r = /* @__PURE__ */ yt();
1214
1214
  e = function(o) {
1215
- var s = "Warning: " + o;
1216
- typeof console < "u" && console.error(s);
1215
+ var a = "Warning: " + o;
1216
+ typeof console < "u" && console.error(a);
1217
1217
  try {
1218
- throw new Error(s);
1218
+ throw new Error(a);
1219
1219
  } catch {
1220
1220
  }
1221
1221
  };
1222
1222
  }
1223
- function i(o, s, d, p, g) {
1223
+ function i(o, a, d, m, p) {
1224
1224
  if (process.env.NODE_ENV !== "production") {
1225
- for (var h in o)
1226
- if (r(o, h)) {
1225
+ for (var g in o)
1226
+ if (r(o, g)) {
1227
1227
  var u;
1228
1228
  try {
1229
- if (typeof o[h] != "function") {
1230
- var m = Error(
1231
- (p || "React class") + ": " + d + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
1229
+ if (typeof o[g] != "function") {
1230
+ var h = Error(
1231
+ (m || "React class") + ": " + d + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
1232
1232
  );
1233
- throw m.name = "Invariant Violation", m;
1233
+ throw h.name = "Invariant Violation", h;
1234
1234
  }
1235
- u = o[h](s, h, p, d, null, n);
1236
- } catch (x) {
1237
- u = x;
1235
+ u = o[g](a, g, m, d, null, n);
1236
+ } catch (w) {
1237
+ u = w;
1238
1238
  }
1239
1239
  if (u && !(u instanceof Error) && e(
1240
- (p || "React class") + ": type specification of " + d + " `" + h + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof u + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
1240
+ (m || "React class") + ": type specification of " + d + " `" + g + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof u + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
1241
1241
  ), u instanceof Error && !(u.message in t)) {
1242
1242
  t[u.message] = !0;
1243
- var y = g ? g() : "";
1243
+ var y = p ? p() : "";
1244
1244
  e(
1245
1245
  "Failed " + d + " type: " + u.message + (y ?? "")
1246
1246
  );
@@ -1253,30 +1253,30 @@ function ln() {
1253
1253
  }, _e = i, _e;
1254
1254
  }
1255
1255
  var Me, He;
1256
- function cn() {
1256
+ function dn() {
1257
1257
  if (He) return Me;
1258
1258
  He = 1;
1259
- var e = pt(), n = sn(), t = /* @__PURE__ */ Oe(), r = /* @__PURE__ */ yt(), i = /* @__PURE__ */ ln(), o = function() {
1259
+ var e = pt(), n = cn(), t = /* @__PURE__ */ Oe(), r = /* @__PURE__ */ yt(), i = /* @__PURE__ */ ln(), o = function() {
1260
1260
  };
1261
1261
  process.env.NODE_ENV !== "production" && (o = function(d) {
1262
- var p = "Warning: " + d;
1263
- typeof console < "u" && console.error(p);
1262
+ var m = "Warning: " + d;
1263
+ typeof console < "u" && console.error(m);
1264
1264
  try {
1265
- throw new Error(p);
1265
+ throw new Error(m);
1266
1266
  } catch {
1267
1267
  }
1268
1268
  });
1269
- function s() {
1269
+ function a() {
1270
1270
  return null;
1271
1271
  }
1272
- return Me = function(d, p) {
1273
- var g = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
1274
- function u(w) {
1275
- var M = w && (g && w[g] || w[h]);
1272
+ return Me = function(d, m) {
1273
+ var p = typeof Symbol == "function" && Symbol.iterator, g = "@@iterator";
1274
+ function u(x) {
1275
+ var M = x && (p && x[p] || x[g]);
1276
1276
  if (typeof M == "function")
1277
1277
  return M;
1278
1278
  }
1279
- var m = "<<anonymous>>", y = {
1279
+ var h = "<<anonymous>>", y = {
1280
1280
  array: C("array"),
1281
1281
  bigint: C("bigint"),
1282
1282
  bool: C("boolean"),
@@ -1288,53 +1288,53 @@ function cn() {
1288
1288
  any: T(),
1289
1289
  arrayOf: S,
1290
1290
  element: D(),
1291
- elementType: c(),
1291
+ elementType: l(),
1292
1292
  instanceOf: N,
1293
1293
  node: $(),
1294
1294
  objectOf: f,
1295
- oneOf: l,
1295
+ oneOf: c,
1296
1296
  oneOfType: P,
1297
1297
  shape: E,
1298
1298
  exact: z
1299
1299
  };
1300
- function x(w, M) {
1301
- return w === M ? w !== 0 || 1 / w === 1 / M : w !== w && M !== M;
1300
+ function w(x, M) {
1301
+ return x === M ? x !== 0 || 1 / x === 1 / M : x !== x && M !== M;
1302
1302
  }
1303
- function v(w, M) {
1304
- this.message = w, this.data = M && typeof M == "object" ? M : {}, this.stack = "";
1303
+ function v(x, M) {
1304
+ this.message = x, this.data = M && typeof M == "object" ? M : {}, this.stack = "";
1305
1305
  }
1306
1306
  v.prototype = Error.prototype;
1307
- function b(w) {
1307
+ function b(x) {
1308
1308
  if (process.env.NODE_ENV !== "production")
1309
1309
  var M = {}, A = 0;
1310
- function k(F, R, j, L, q, U, G) {
1311
- if (L = L || m, U = U || j, G !== t) {
1312
- if (p) {
1310
+ function k(L, R, j, F, q, U, G) {
1311
+ if (F = F || h, U = U || j, G !== t) {
1312
+ if (m) {
1313
1313
  var _ = new Error(
1314
1314
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
1315
1315
  );
1316
1316
  throw _.name = "Invariant Violation", _;
1317
1317
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
1318
- var te = L + ":" + j;
1318
+ var te = F + ":" + j;
1319
1319
  !M[te] && // Avoid spamming the console because they are often not actionable except for lib authors
1320
1320
  A < 3 && (o(
1321
- "You are manually calling a React.PropTypes validation function for the `" + U + "` prop on `" + L + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
1321
+ "You are manually calling a React.PropTypes validation function for the `" + U + "` prop on `" + F + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
1322
1322
  ), M[te] = !0, A++);
1323
1323
  }
1324
1324
  }
1325
- return R[j] == null ? F ? R[j] === null ? new v("The " + q + " `" + U + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new v("The " + q + " `" + U + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : w(R, j, L, q, U);
1325
+ return R[j] == null ? L ? R[j] === null ? new v("The " + q + " `" + U + "` is marked as required " + ("in `" + F + "`, but its value is `null`.")) : new v("The " + q + " `" + U + "` is marked as required in " + ("`" + F + "`, but its value is `undefined`.")) : null : x(R, j, F, q, U);
1326
1326
  }
1327
1327
  var I = k.bind(null, !1);
1328
1328
  return I.isRequired = k.bind(null, !0), I;
1329
1329
  }
1330
- function C(w) {
1331
- function M(A, k, I, F, R, j) {
1332
- var L = A[k], q = H(L);
1333
- if (q !== w) {
1334
- var U = ee(L);
1330
+ function C(x) {
1331
+ function M(A, k, I, L, R, j) {
1332
+ var F = A[k], q = H(F);
1333
+ if (q !== x) {
1334
+ var U = ee(F);
1335
1335
  return new v(
1336
- "Invalid " + F + " `" + R + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected ") + ("`" + w + "`."),
1337
- { expectedType: w }
1336
+ "Invalid " + L + " `" + R + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected ") + ("`" + x + "`."),
1337
+ { expectedType: x }
1338
1338
  );
1339
1339
  }
1340
1340
  return null;
@@ -1342,19 +1342,19 @@ function cn() {
1342
1342
  return b(M);
1343
1343
  }
1344
1344
  function T() {
1345
- return b(s);
1345
+ return b(a);
1346
1346
  }
1347
- function S(w) {
1348
- function M(A, k, I, F, R) {
1349
- if (typeof w != "function")
1347
+ function S(x) {
1348
+ function M(A, k, I, L, R) {
1349
+ if (typeof x != "function")
1350
1350
  return new v("Property `" + R + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
1351
1351
  var j = A[k];
1352
1352
  if (!Array.isArray(j)) {
1353
- var L = H(j);
1354
- return new v("Invalid " + F + " `" + R + "` of type " + ("`" + L + "` supplied to `" + I + "`, expected an array."));
1353
+ var F = H(j);
1354
+ return new v("Invalid " + L + " `" + R + "` of type " + ("`" + F + "` supplied to `" + I + "`, expected an array."));
1355
1355
  }
1356
1356
  for (var q = 0; q < j.length; q++) {
1357
- var U = w(j, q, I, F, R + "[" + q + "]", t);
1357
+ var U = x(j, q, I, L, R + "[" + q + "]", t);
1358
1358
  if (U instanceof Error)
1359
1359
  return U;
1360
1360
  }
@@ -1363,64 +1363,64 @@ function cn() {
1363
1363
  return b(M);
1364
1364
  }
1365
1365
  function D() {
1366
- function w(M, A, k, I, F) {
1366
+ function x(M, A, k, I, L) {
1367
1367
  var R = M[A];
1368
1368
  if (!d(R)) {
1369
1369
  var j = H(R);
1370
- return new v("Invalid " + I + " `" + F + "` of type " + ("`" + j + "` supplied to `" + k + "`, expected a single ReactElement."));
1370
+ return new v("Invalid " + I + " `" + L + "` of type " + ("`" + j + "` supplied to `" + k + "`, expected a single ReactElement."));
1371
1371
  }
1372
1372
  return null;
1373
1373
  }
1374
- return b(w);
1374
+ return b(x);
1375
1375
  }
1376
- function c() {
1377
- function w(M, A, k, I, F) {
1376
+ function l() {
1377
+ function x(M, A, k, I, L) {
1378
1378
  var R = M[A];
1379
1379
  if (!e.isValidElementType(R)) {
1380
1380
  var j = H(R);
1381
- return new v("Invalid " + I + " `" + F + "` of type " + ("`" + j + "` supplied to `" + k + "`, expected a single ReactElement type."));
1381
+ return new v("Invalid " + I + " `" + L + "` of type " + ("`" + j + "` supplied to `" + k + "`, expected a single ReactElement type."));
1382
1382
  }
1383
1383
  return null;
1384
1384
  }
1385
- return b(w);
1385
+ return b(x);
1386
1386
  }
1387
- function N(w) {
1388
- function M(A, k, I, F, R) {
1389
- if (!(A[k] instanceof w)) {
1390
- var j = w.name || m, L = de(A[k]);
1391
- return new v("Invalid " + F + " `" + R + "` of type " + ("`" + L + "` supplied to `" + I + "`, expected ") + ("instance of `" + j + "`."));
1387
+ function N(x) {
1388
+ function M(A, k, I, L, R) {
1389
+ if (!(A[k] instanceof x)) {
1390
+ var j = x.name || h, F = de(A[k]);
1391
+ return new v("Invalid " + L + " `" + R + "` of type " + ("`" + F + "` supplied to `" + I + "`, expected ") + ("instance of `" + j + "`."));
1392
1392
  }
1393
1393
  return null;
1394
1394
  }
1395
1395
  return b(M);
1396
1396
  }
1397
- function l(w) {
1398
- if (!Array.isArray(w))
1397
+ function c(x) {
1398
+ if (!Array.isArray(x))
1399
1399
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
1400
1400
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
1401
- ) : o("Invalid argument supplied to oneOf, expected an array.")), s;
1402
- function M(A, k, I, F, R) {
1403
- for (var j = A[k], L = 0; L < w.length; L++)
1404
- if (x(j, w[L]))
1401
+ ) : o("Invalid argument supplied to oneOf, expected an array.")), a;
1402
+ function M(A, k, I, L, R) {
1403
+ for (var j = A[k], F = 0; F < x.length; F++)
1404
+ if (w(j, x[F]))
1405
1405
  return null;
1406
- var q = JSON.stringify(w, function(G, _) {
1406
+ var q = JSON.stringify(x, function(G, _) {
1407
1407
  var te = ee(_);
1408
1408
  return te === "symbol" ? String(_) : _;
1409
1409
  });
1410
- return new v("Invalid " + F + " `" + R + "` of value `" + String(j) + "` " + ("supplied to `" + I + "`, expected one of " + q + "."));
1410
+ return new v("Invalid " + L + " `" + R + "` of value `" + String(j) + "` " + ("supplied to `" + I + "`, expected one of " + q + "."));
1411
1411
  }
1412
1412
  return b(M);
1413
1413
  }
1414
- function f(w) {
1415
- function M(A, k, I, F, R) {
1416
- if (typeof w != "function")
1414
+ function f(x) {
1415
+ function M(A, k, I, L, R) {
1416
+ if (typeof x != "function")
1417
1417
  return new v("Property `" + R + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
1418
- var j = A[k], L = H(j);
1419
- if (L !== "object")
1420
- return new v("Invalid " + F + " `" + R + "` of type " + ("`" + L + "` supplied to `" + I + "`, expected an object."));
1418
+ var j = A[k], F = H(j);
1419
+ if (F !== "object")
1420
+ return new v("Invalid " + L + " `" + R + "` of type " + ("`" + F + "` supplied to `" + I + "`, expected an object."));
1421
1421
  for (var q in j)
1422
1422
  if (r(j, q)) {
1423
- var U = w(j, q, I, F, R + "." + q, t);
1423
+ var U = x(j, q, I, L, R + "." + q, t);
1424
1424
  if (U instanceof Error)
1425
1425
  return U;
1426
1426
  }
@@ -1428,49 +1428,49 @@ function cn() {
1428
1428
  }
1429
1429
  return b(M);
1430
1430
  }
1431
- function P(w) {
1432
- if (!Array.isArray(w))
1433
- return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), s;
1434
- for (var M = 0; M < w.length; M++) {
1435
- var A = w[M];
1431
+ function P(x) {
1432
+ if (!Array.isArray(x))
1433
+ return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), a;
1434
+ for (var M = 0; M < x.length; M++) {
1435
+ var A = x[M];
1436
1436
  if (typeof A != "function")
1437
1437
  return o(
1438
1438
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ae(A) + " at index " + M + "."
1439
- ), s;
1439
+ ), a;
1440
1440
  }
1441
- function k(I, F, R, j, L) {
1442
- for (var q = [], U = 0; U < w.length; U++) {
1443
- var G = w[U], _ = G(I, F, R, j, L, t);
1441
+ function k(I, L, R, j, F) {
1442
+ for (var q = [], U = 0; U < x.length; U++) {
1443
+ var G = x[U], _ = G(I, L, R, j, F, t);
1444
1444
  if (_ == null)
1445
1445
  return null;
1446
1446
  _.data && r(_.data, "expectedType") && q.push(_.data.expectedType);
1447
1447
  }
1448
1448
  var te = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
1449
- return new v("Invalid " + j + " `" + L + "` supplied to " + ("`" + R + "`" + te + "."));
1449
+ return new v("Invalid " + j + " `" + F + "` supplied to " + ("`" + R + "`" + te + "."));
1450
1450
  }
1451
1451
  return b(k);
1452
1452
  }
1453
1453
  function $() {
1454
- function w(M, A, k, I, F) {
1455
- return X(M[A]) ? null : new v("Invalid " + I + " `" + F + "` supplied to " + ("`" + k + "`, expected a ReactNode."));
1454
+ function x(M, A, k, I, L) {
1455
+ return X(M[A]) ? null : new v("Invalid " + I + " `" + L + "` supplied to " + ("`" + k + "`, expected a ReactNode."));
1456
1456
  }
1457
- return b(w);
1457
+ return b(x);
1458
1458
  }
1459
- function O(w, M, A, k, I) {
1459
+ function O(x, M, A, k, I) {
1460
1460
  return new v(
1461
- (w || "React class") + ": " + M + " type `" + A + "." + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
1461
+ (x || "React class") + ": " + M + " type `" + A + "." + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
1462
1462
  );
1463
1463
  }
1464
- function E(w) {
1465
- function M(A, k, I, F, R) {
1466
- var j = A[k], L = H(j);
1467
- if (L !== "object")
1468
- return new v("Invalid " + F + " `" + R + "` of type `" + L + "` " + ("supplied to `" + I + "`, expected `object`."));
1469
- for (var q in w) {
1470
- var U = w[q];
1464
+ function E(x) {
1465
+ function M(A, k, I, L, R) {
1466
+ var j = A[k], F = H(j);
1467
+ if (F !== "object")
1468
+ return new v("Invalid " + L + " `" + R + "` of type `" + F + "` " + ("supplied to `" + I + "`, expected `object`."));
1469
+ for (var q in x) {
1470
+ var U = x[q];
1471
1471
  if (typeof U != "function")
1472
- return O(I, F, R, q, ee(U));
1473
- var G = U(j, q, I, F, R + "." + q, t);
1472
+ return O(I, L, R, q, ee(U));
1473
+ var G = U(j, q, I, L, R + "." + q, t);
1474
1474
  if (G)
1475
1475
  return G;
1476
1476
  }
@@ -1478,22 +1478,22 @@ function cn() {
1478
1478
  }
1479
1479
  return b(M);
1480
1480
  }
1481
- function z(w) {
1482
- function M(A, k, I, F, R) {
1483
- var j = A[k], L = H(j);
1484
- if (L !== "object")
1485
- return new v("Invalid " + F + " `" + R + "` of type `" + L + "` " + ("supplied to `" + I + "`, expected `object`."));
1486
- var q = n({}, A[k], w);
1481
+ function z(x) {
1482
+ function M(A, k, I, L, R) {
1483
+ var j = A[k], F = H(j);
1484
+ if (F !== "object")
1485
+ return new v("Invalid " + L + " `" + R + "` of type `" + F + "` " + ("supplied to `" + I + "`, expected `object`."));
1486
+ var q = n({}, A[k], x);
1487
1487
  for (var U in q) {
1488
- var G = w[U];
1489
- if (r(w, U) && typeof G != "function")
1490
- return O(I, F, R, U, ee(G));
1488
+ var G = x[U];
1489
+ if (r(x, U) && typeof G != "function")
1490
+ return O(I, L, R, U, ee(G));
1491
1491
  if (!G)
1492
1492
  return new v(
1493
- "Invalid " + F + " `" + R + "` key `" + U + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(A[k], null, " ") + `
1494
- Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
1493
+ "Invalid " + L + " `" + R + "` key `" + U + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(A[k], null, " ") + `
1494
+ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1495
1495
  );
1496
- var _ = G(j, U, I, F, R + "." + U, t);
1496
+ var _ = G(j, U, I, L, R + "." + U, t);
1497
1497
  if (_)
1498
1498
  return _;
1499
1499
  }
@@ -1501,23 +1501,23 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
1501
1501
  }
1502
1502
  return b(M);
1503
1503
  }
1504
- function X(w) {
1505
- switch (typeof w) {
1504
+ function X(x) {
1505
+ switch (typeof x) {
1506
1506
  case "number":
1507
1507
  case "string":
1508
1508
  case "undefined":
1509
1509
  return !0;
1510
1510
  case "boolean":
1511
- return !w;
1511
+ return !x;
1512
1512
  case "object":
1513
- if (Array.isArray(w))
1514
- return w.every(X);
1515
- if (w === null || d(w))
1513
+ if (Array.isArray(x))
1514
+ return x.every(X);
1515
+ if (x === null || d(x))
1516
1516
  return !0;
1517
- var M = u(w);
1517
+ var M = u(x);
1518
1518
  if (M) {
1519
- var A = M.call(w), k;
1520
- if (M !== w.entries) {
1519
+ var A = M.call(x), k;
1520
+ if (M !== x.entries) {
1521
1521
  for (; !(k = A.next()).done; )
1522
1522
  if (!X(k.value))
1523
1523
  return !1;
@@ -1534,27 +1534,27 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
1534
1534
  return !1;
1535
1535
  }
1536
1536
  }
1537
- function Q(w, M) {
1538
- return w === "symbol" ? !0 : M ? M["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && M instanceof Symbol : !1;
1537
+ function Q(x, M) {
1538
+ return x === "symbol" ? !0 : M ? M["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && M instanceof Symbol : !1;
1539
1539
  }
1540
- function H(w) {
1541
- var M = typeof w;
1542
- return Array.isArray(w) ? "array" : w instanceof RegExp ? "object" : Q(M, w) ? "symbol" : M;
1540
+ function H(x) {
1541
+ var M = typeof x;
1542
+ return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" : Q(M, x) ? "symbol" : M;
1543
1543
  }
1544
- function ee(w) {
1545
- if (typeof w > "u" || w === null)
1546
- return "" + w;
1547
- var M = H(w);
1544
+ function ee(x) {
1545
+ if (typeof x > "u" || x === null)
1546
+ return "" + x;
1547
+ var M = H(x);
1548
1548
  if (M === "object") {
1549
- if (w instanceof Date)
1549
+ if (x instanceof Date)
1550
1550
  return "date";
1551
- if (w instanceof RegExp)
1551
+ if (x instanceof RegExp)
1552
1552
  return "regexp";
1553
1553
  }
1554
1554
  return M;
1555
1555
  }
1556
- function ae(w) {
1557
- var M = ee(w);
1556
+ function ae(x) {
1557
+ var M = ee(x);
1558
1558
  switch (M) {
1559
1559
  case "array":
1560
1560
  case "object":
@@ -1567,14 +1567,14 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
1567
1567
  return M;
1568
1568
  }
1569
1569
  }
1570
- function de(w) {
1571
- return !w.constructor || !w.constructor.name ? m : w.constructor.name;
1570
+ function de(x) {
1571
+ return !x.constructor || !x.constructor.name ? h : x.constructor.name;
1572
1572
  }
1573
1573
  return y.checkPropTypes = i, y.resetWarningCache = i.resetWarningCache, y.PropTypes = y, y;
1574
1574
  }, Me;
1575
1575
  }
1576
1576
  var Pe, Xe;
1577
- function dn() {
1577
+ function un() {
1578
1578
  if (Xe) return Pe;
1579
1579
  Xe = 1;
1580
1580
  var e = /* @__PURE__ */ Oe();
@@ -1583,12 +1583,12 @@ function dn() {
1583
1583
  function t() {
1584
1584
  }
1585
1585
  return t.resetWarningCache = n, Pe = function() {
1586
- function r(s, d, p, g, h, u) {
1586
+ function r(a, d, m, p, g, u) {
1587
1587
  if (u !== e) {
1588
- var m = new Error(
1588
+ var h = new Error(
1589
1589
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
1590
1590
  );
1591
- throw m.name = "Invariant Violation", m;
1591
+ throw h.name = "Invariant Violation", h;
1592
1592
  }
1593
1593
  }
1594
1594
  r.isRequired = r;
@@ -1626,39 +1626,39 @@ function vt() {
1626
1626
  if (Ge) return pe.exports;
1627
1627
  if (Ge = 1, process.env.NODE_ENV !== "production") {
1628
1628
  var e = pt(), n = !0;
1629
- pe.exports = /* @__PURE__ */ cn()(e.isElement, n);
1629
+ pe.exports = /* @__PURE__ */ dn()(e.isElement, n);
1630
1630
  } else
1631
- pe.exports = /* @__PURE__ */ dn()();
1631
+ pe.exports = /* @__PURE__ */ un()();
1632
1632
  return pe.exports;
1633
1633
  }
1634
1634
  var ve = { exports: {} }, Ze;
1635
- function un() {
1635
+ function fn() {
1636
1636
  if (Ze) return ve.exports;
1637
1637
  Ze = 1;
1638
1638
  function e(t) {
1639
1639
  var r, i, o = "";
1640
1640
  if (typeof t == "string" || typeof t == "number") o += t;
1641
1641
  else if (typeof t == "object") if (Array.isArray(t)) {
1642
- var s = t.length;
1643
- for (r = 0; r < s; r++) t[r] && (i = e(t[r])) && (o && (o += " "), o += i);
1642
+ var a = t.length;
1643
+ for (r = 0; r < a; r++) t[r] && (i = e(t[r])) && (o && (o += " "), o += i);
1644
1644
  } else for (i in t) t[i] && (o && (o += " "), o += i);
1645
1645
  return o;
1646
1646
  }
1647
1647
  function n() {
1648
- for (var t, r, i = 0, o = "", s = arguments.length; i < s; i++) (t = arguments[i]) && (r = e(t)) && (o && (o += " "), o += r);
1648
+ for (var t, r, i = 0, o = "", a = arguments.length; i < a; i++) (t = arguments[i]) && (r = e(t)) && (o && (o += " "), o += r);
1649
1649
  return o;
1650
1650
  }
1651
1651
  return ve.exports = n, ve.exports.clsx = n, ve.exports;
1652
1652
  }
1653
1653
  var B = {}, oe = {}, Je;
1654
- function xe() {
1654
+ function we() {
1655
1655
  if (Je) return oe;
1656
1656
  Je = 1, Object.defineProperty(oe, "__esModule", {
1657
1657
  value: !0
1658
1658
  }), oe.dontSetMe = i, oe.findInArray = e, oe.int = r, oe.isFunction = n, oe.isNum = t;
1659
- function e(o, s) {
1660
- for (let d = 0, p = o.length; d < p; d++)
1661
- if (s.apply(s, [o[d], d, o])) return o[d];
1659
+ function e(o, a) {
1660
+ for (let d = 0, m = o.length; d < m; d++)
1661
+ if (a.apply(a, [o[d], d, o])) return o[d];
1662
1662
  }
1663
1663
  function n(o) {
1664
1664
  return typeof o == "function" || Object.prototype.toString.call(o) === "[object Function]";
@@ -1669,14 +1669,14 @@ function xe() {
1669
1669
  function r(o) {
1670
1670
  return parseInt(o, 10);
1671
1671
  }
1672
- function i(o, s, d) {
1673
- if (o[s])
1674
- return new Error(`Invalid prop ${s} passed to ${d} - do not set this, set it on the child.`);
1672
+ function i(o, a, d) {
1673
+ if (o[a])
1674
+ return new Error(`Invalid prop ${a} passed to ${d} - do not set this, set it on the child.`);
1675
1675
  }
1676
1676
  return oe;
1677
1677
  }
1678
1678
  var ie = {}, Qe;
1679
- function fn() {
1679
+ function hn() {
1680
1680
  if (Qe) return ie;
1681
1681
  Qe = 1, Object.defineProperty(ie, "__esModule", {
1682
1682
  value: !0
@@ -1685,23 +1685,23 @@ function fn() {
1685
1685
  function n() {
1686
1686
  let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
1687
1687
  if (typeof window > "u") return "";
1688
- const s = window.document?.documentElement?.style;
1689
- if (!s || o in s) return "";
1688
+ const a = window.document?.documentElement?.style;
1689
+ if (!a || o in a) return "";
1690
1690
  for (let d = 0; d < e.length; d++)
1691
- if (t(o, e[d]) in s) return e[d];
1691
+ if (t(o, e[d]) in a) return e[d];
1692
1692
  return "";
1693
1693
  }
1694
- function t(o, s) {
1695
- return s ? `${s}${i(o)}` : o;
1694
+ function t(o, a) {
1695
+ return a ? `${a}${i(o)}` : o;
1696
1696
  }
1697
- function r(o, s) {
1698
- return s ? `-${s.toLowerCase()}-${o}` : o;
1697
+ function r(o, a) {
1698
+ return a ? `-${a.toLowerCase()}-${o}` : o;
1699
1699
  }
1700
1700
  function i(o) {
1701
- let s = "", d = !0;
1702
- for (let p = 0; p < o.length; p++)
1703
- d ? (s += o[p].toUpperCase(), d = !1) : o[p] === "-" ? d = !0 : s += o[p];
1704
- return s;
1701
+ let a = "", d = !0;
1702
+ for (let m = 0; m < o.length; m++)
1703
+ d ? (a += o[m].toUpperCase(), d = !1) : o[m] === "-" ? d = !0 : a += o[m];
1704
+ return a;
1705
1705
  }
1706
1706
  return ie.default = n(), ie;
1707
1707
  }
@@ -1710,9 +1710,9 @@ function Re() {
1710
1710
  if (et) return B;
1711
1711
  et = 1, Object.defineProperty(B, "__esModule", {
1712
1712
  value: !0
1713
- }), B.addClassName = c, B.addEvent = s, B.addUserSelectStyles = T, B.createCSSTransform = y, B.createSVGTransform = x, B.getTouch = b, B.getTouchIdentifier = C, B.getTranslation = v, B.innerHeight = h, B.innerWidth = u, B.matchesSelector = i, B.matchesSelectorAndParentsTo = o, B.offsetXYFromParent = m, B.outerHeight = p, B.outerWidth = g, B.removeClassName = N, B.removeEvent = d, B.scheduleRemoveUserSelectStyles = S;
1714
- var e = xe(), n = t(fn());
1715
- function t(l, f) {
1713
+ }), B.addClassName = l, B.addEvent = a, B.addUserSelectStyles = T, B.createCSSTransform = y, B.createSVGTransform = w, B.getTouch = b, B.getTouchIdentifier = C, B.getTranslation = v, B.innerHeight = g, B.innerWidth = u, B.matchesSelector = i, B.matchesSelectorAndParentsTo = o, B.offsetXYFromParent = h, B.outerHeight = m, B.outerWidth = p, B.removeClassName = N, B.removeEvent = d, B.scheduleRemoveUserSelectStyles = S;
1714
+ var e = we(), n = t(hn());
1715
+ function t(c, f) {
1716
1716
  if (typeof WeakMap == "function") var P = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap();
1717
1717
  return (t = function(O, E) {
1718
1718
  if (!E && O && O.__esModule) return O;
@@ -1724,16 +1724,16 @@ function Re() {
1724
1724
  }
1725
1725
  for (const H in O) H !== "default" && {}.hasOwnProperty.call(O, H) && ((X = (z = Object.defineProperty) && Object.getOwnPropertyDescriptor(O, H)) && (X.get || X.set) ? z(Q, H, X) : Q[H] = O[H]);
1726
1726
  return Q;
1727
- })(l, f);
1727
+ })(c, f);
1728
1728
  }
1729
1729
  let r = "";
1730
- function i(l, f) {
1730
+ function i(c, f) {
1731
1731
  return r || (r = (0, e.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(P) {
1732
- return (0, e.isFunction)(l[P]);
1733
- })), (0, e.isFunction)(l[r]) ? l[r](f) : !1;
1732
+ return (0, e.isFunction)(c[P]);
1733
+ })), (0, e.isFunction)(c[r]) ? c[r](f) : !1;
1734
1734
  }
1735
- function o(l, f, P) {
1736
- let $ = l;
1735
+ function o(c, f, P) {
1736
+ let $ = c;
1737
1737
  do {
1738
1738
  if (i($, f)) return !0;
1739
1739
  if ($ === P) return !1;
@@ -1741,108 +1741,108 @@ function Re() {
1741
1741
  } while ($);
1742
1742
  return !1;
1743
1743
  }
1744
- function s(l, f, P, $) {
1745
- if (!l) return;
1744
+ function a(c, f, P, $) {
1745
+ if (!c) return;
1746
1746
  const O = {
1747
1747
  capture: !0,
1748
1748
  ...$
1749
1749
  };
1750
- l.addEventListener ? l.addEventListener(f, P, O) : l.attachEvent ? l.attachEvent("on" + f, P) : l["on" + f] = P;
1750
+ c.addEventListener ? c.addEventListener(f, P, O) : c.attachEvent ? c.attachEvent("on" + f, P) : c["on" + f] = P;
1751
1751
  }
1752
- function d(l, f, P, $) {
1753
- if (!l) return;
1752
+ function d(c, f, P, $) {
1753
+ if (!c) return;
1754
1754
  const O = {
1755
1755
  capture: !0,
1756
1756
  ...$
1757
1757
  };
1758
- l.removeEventListener ? l.removeEventListener(f, P, O) : l.detachEvent ? l.detachEvent("on" + f, P) : l["on" + f] = null;
1758
+ c.removeEventListener ? c.removeEventListener(f, P, O) : c.detachEvent ? c.detachEvent("on" + f, P) : c["on" + f] = null;
1759
1759
  }
1760
- function p(l) {
1761
- let f = l.clientHeight;
1762
- const P = l.ownerDocument.defaultView.getComputedStyle(l);
1760
+ function m(c) {
1761
+ let f = c.clientHeight;
1762
+ const P = c.ownerDocument.defaultView.getComputedStyle(c);
1763
1763
  return f += (0, e.int)(P.borderTopWidth), f += (0, e.int)(P.borderBottomWidth), f;
1764
1764
  }
1765
- function g(l) {
1766
- let f = l.clientWidth;
1767
- const P = l.ownerDocument.defaultView.getComputedStyle(l);
1765
+ function p(c) {
1766
+ let f = c.clientWidth;
1767
+ const P = c.ownerDocument.defaultView.getComputedStyle(c);
1768
1768
  return f += (0, e.int)(P.borderLeftWidth), f += (0, e.int)(P.borderRightWidth), f;
1769
1769
  }
1770
- function h(l) {
1771
- let f = l.clientHeight;
1772
- const P = l.ownerDocument.defaultView.getComputedStyle(l);
1770
+ function g(c) {
1771
+ let f = c.clientHeight;
1772
+ const P = c.ownerDocument.defaultView.getComputedStyle(c);
1773
1773
  return f -= (0, e.int)(P.paddingTop), f -= (0, e.int)(P.paddingBottom), f;
1774
1774
  }
1775
- function u(l) {
1776
- let f = l.clientWidth;
1777
- const P = l.ownerDocument.defaultView.getComputedStyle(l);
1775
+ function u(c) {
1776
+ let f = c.clientWidth;
1777
+ const P = c.ownerDocument.defaultView.getComputedStyle(c);
1778
1778
  return f -= (0, e.int)(P.paddingLeft), f -= (0, e.int)(P.paddingRight), f;
1779
1779
  }
1780
- function m(l, f, P) {
1780
+ function h(c, f, P) {
1781
1781
  const O = f === f.ownerDocument.body ? {
1782
1782
  left: 0,
1783
1783
  top: 0
1784
- } : f.getBoundingClientRect(), E = (l.clientX + f.scrollLeft - O.left) / P, z = (l.clientY + f.scrollTop - O.top) / P;
1784
+ } : f.getBoundingClientRect(), E = (c.clientX + f.scrollLeft - O.left) / P, z = (c.clientY + f.scrollTop - O.top) / P;
1785
1785
  return {
1786
1786
  x: E,
1787
1787
  y: z
1788
1788
  };
1789
1789
  }
1790
- function y(l, f) {
1791
- const P = v(l, f, "px");
1790
+ function y(c, f) {
1791
+ const P = v(c, f, "px");
1792
1792
  return {
1793
1793
  [(0, n.browserPrefixToKey)("transform", n.default)]: P
1794
1794
  };
1795
1795
  }
1796
- function x(l, f) {
1797
- return v(l, f, "");
1796
+ function w(c, f) {
1797
+ return v(c, f, "");
1798
1798
  }
1799
- function v(l, f, P) {
1799
+ function v(c, f, P) {
1800
1800
  let {
1801
1801
  x: $,
1802
1802
  y: O
1803
- } = l, E = `translate(${$}${P},${O}${P})`;
1803
+ } = c, E = `translate(${$}${P},${O}${P})`;
1804
1804
  if (f) {
1805
1805
  const z = `${typeof f.x == "string" ? f.x : f.x + P}`, X = `${typeof f.y == "string" ? f.y : f.y + P}`;
1806
1806
  E = `translate(${z}, ${X})` + E;
1807
1807
  }
1808
1808
  return E;
1809
1809
  }
1810
- function b(l, f) {
1811
- return l.targetTouches && (0, e.findInArray)(l.targetTouches, (P) => f === P.identifier) || l.changedTouches && (0, e.findInArray)(l.changedTouches, (P) => f === P.identifier);
1810
+ function b(c, f) {
1811
+ return c.targetTouches && (0, e.findInArray)(c.targetTouches, (P) => f === P.identifier) || c.changedTouches && (0, e.findInArray)(c.changedTouches, (P) => f === P.identifier);
1812
1812
  }
1813
- function C(l) {
1814
- if (l.targetTouches && l.targetTouches[0]) return l.targetTouches[0].identifier;
1815
- if (l.changedTouches && l.changedTouches[0]) return l.changedTouches[0].identifier;
1813
+ function C(c) {
1814
+ if (c.targetTouches && c.targetTouches[0]) return c.targetTouches[0].identifier;
1815
+ if (c.changedTouches && c.changedTouches[0]) return c.changedTouches[0].identifier;
1816
1816
  }
1817
- function T(l) {
1818
- if (!l) return;
1819
- let f = l.getElementById("react-draggable-style-el");
1820
- f || (f = l.createElement("style"), f.type = "text/css", f.id = "react-draggable-style-el", f.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
1817
+ function T(c) {
1818
+ if (!c) return;
1819
+ let f = c.getElementById("react-draggable-style-el");
1820
+ f || (f = c.createElement("style"), f.type = "text/css", f.id = "react-draggable-style-el", f.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
1821
1821
  `, f.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
1822
- `, l.getElementsByTagName("head")[0].appendChild(f)), l.body && c(l.body, "react-draggable-transparent-selection");
1822
+ `, c.getElementsByTagName("head")[0].appendChild(f)), c.body && l(c.body, "react-draggable-transparent-selection");
1823
1823
  }
1824
- function S(l) {
1824
+ function S(c) {
1825
1825
  window.requestAnimationFrame ? window.requestAnimationFrame(() => {
1826
- D(l);
1827
- }) : D(l);
1826
+ D(c);
1827
+ }) : D(c);
1828
1828
  }
1829
- function D(l) {
1830
- if (l)
1829
+ function D(c) {
1830
+ if (c)
1831
1831
  try {
1832
- if (l.body && N(l.body, "react-draggable-transparent-selection"), l.selection)
1833
- l.selection.empty();
1832
+ if (c.body && N(c.body, "react-draggable-transparent-selection"), c.selection)
1833
+ c.selection.empty();
1834
1834
  else {
1835
- const f = (l.defaultView || window).getSelection();
1835
+ const f = (c.defaultView || window).getSelection();
1836
1836
  f && f.type !== "Caret" && f.removeAllRanges();
1837
1837
  }
1838
1838
  } catch {
1839
1839
  }
1840
1840
  }
1841
- function c(l, f) {
1842
- l.classList ? l.classList.add(f) : l.className.match(new RegExp(`(?:^|\\s)${f}(?!\\S)`)) || (l.className += ` ${f}`);
1841
+ function l(c, f) {
1842
+ c.classList ? c.classList.add(f) : c.className.match(new RegExp(`(?:^|\\s)${f}(?!\\S)`)) || (c.className += ` ${f}`);
1843
1843
  }
1844
- function N(l, f) {
1845
- l.classList ? l.classList.remove(f) : l.className = l.className.replace(new RegExp(`(?:^|\\s)${f}(?!\\S)`, "g"), "");
1844
+ function N(c, f) {
1845
+ c.classList ? c.classList.remove(f) : c.className = c.className.replace(new RegExp(`(?:^|\\s)${f}(?!\\S)`, "g"), "");
1846
1846
  }
1847
1847
  return B;
1848
1848
  }
@@ -1851,35 +1851,35 @@ function bt() {
1851
1851
  if (tt) return ne;
1852
1852
  tt = 1, Object.defineProperty(ne, "__esModule", {
1853
1853
  value: !0
1854
- }), ne.canDragX = i, ne.canDragY = o, ne.createCoreData = d, ne.createDraggableData = p, ne.getBoundPosition = t, ne.getControlPosition = s, ne.snapToGrid = r;
1855
- var e = xe(), n = Re();
1856
- function t(u, m, y) {
1857
- if (!u.props.bounds) return [m, y];
1854
+ }), ne.canDragX = i, ne.canDragY = o, ne.createCoreData = d, ne.createDraggableData = m, ne.getBoundPosition = t, ne.getControlPosition = a, ne.snapToGrid = r;
1855
+ var e = we(), n = Re();
1856
+ function t(u, h, y) {
1857
+ if (!u.props.bounds) return [h, y];
1858
1858
  let {
1859
- bounds: x
1859
+ bounds: w
1860
1860
  } = u.props;
1861
- x = typeof x == "string" ? x : g(x);
1862
- const v = h(u);
1863
- if (typeof x == "string") {
1861
+ w = typeof w == "string" ? w : p(w);
1862
+ const v = g(u);
1863
+ if (typeof w == "string") {
1864
1864
  const {
1865
1865
  ownerDocument: b
1866
1866
  } = v, C = b.defaultView;
1867
1867
  let T;
1868
- if (x === "parent" ? T = v.parentNode : T = v.getRootNode().querySelector(x), !(T instanceof C.HTMLElement))
1869
- throw new Error('Bounds selector "' + x + '" could not find an element.');
1870
- const S = T, D = C.getComputedStyle(v), c = C.getComputedStyle(S);
1871
- x = {
1872
- left: -v.offsetLeft + (0, e.int)(c.paddingLeft) + (0, e.int)(D.marginLeft),
1873
- top: -v.offsetTop + (0, e.int)(c.paddingTop) + (0, e.int)(D.marginTop),
1874
- right: (0, n.innerWidth)(S) - (0, n.outerWidth)(v) - v.offsetLeft + (0, e.int)(c.paddingRight) - (0, e.int)(D.marginRight),
1875
- bottom: (0, n.innerHeight)(S) - (0, n.outerHeight)(v) - v.offsetTop + (0, e.int)(c.paddingBottom) - (0, e.int)(D.marginBottom)
1868
+ if (w === "parent" ? T = v.parentNode : T = v.getRootNode().querySelector(w), !(T instanceof C.HTMLElement))
1869
+ throw new Error('Bounds selector "' + w + '" could not find an element.');
1870
+ const S = T, D = C.getComputedStyle(v), l = C.getComputedStyle(S);
1871
+ w = {
1872
+ left: -v.offsetLeft + (0, e.int)(l.paddingLeft) + (0, e.int)(D.marginLeft),
1873
+ top: -v.offsetTop + (0, e.int)(l.paddingTop) + (0, e.int)(D.marginTop),
1874
+ right: (0, n.innerWidth)(S) - (0, n.outerWidth)(v) - v.offsetLeft + (0, e.int)(l.paddingRight) - (0, e.int)(D.marginRight),
1875
+ bottom: (0, n.innerHeight)(S) - (0, n.outerHeight)(v) - v.offsetTop + (0, e.int)(l.paddingBottom) - (0, e.int)(D.marginBottom)
1876
1876
  };
1877
1877
  }
1878
- return (0, e.isNum)(x.right) && (m = Math.min(m, x.right)), (0, e.isNum)(x.bottom) && (y = Math.min(y, x.bottom)), (0, e.isNum)(x.left) && (m = Math.max(m, x.left)), (0, e.isNum)(x.top) && (y = Math.max(y, x.top)), [m, y];
1878
+ return (0, e.isNum)(w.right) && (h = Math.min(h, w.right)), (0, e.isNum)(w.bottom) && (y = Math.min(y, w.bottom)), (0, e.isNum)(w.left) && (h = Math.max(h, w.left)), (0, e.isNum)(w.top) && (y = Math.max(y, w.top)), [h, y];
1879
1879
  }
1880
- function r(u, m, y) {
1881
- const x = Math.round(m / u[0]) * u[0], v = Math.round(y / u[1]) * u[1];
1882
- return [x, v];
1880
+ function r(u, h, y) {
1881
+ const w = Math.round(h / u[0]) * u[0], v = Math.round(y / u[1]) * u[1];
1882
+ return [w, v];
1883
1883
  }
1884
1884
  function i(u) {
1885
1885
  return u.props.axis === "both" || u.props.axis === "x";
@@ -1887,45 +1887,45 @@ function bt() {
1887
1887
  function o(u) {
1888
1888
  return u.props.axis === "both" || u.props.axis === "y";
1889
1889
  }
1890
- function s(u, m, y) {
1891
- const x = typeof m == "number" ? (0, n.getTouch)(u, m) : null;
1892
- if (typeof m == "number" && !x) return null;
1893
- const v = h(y), b = y.props.offsetParent || v.offsetParent || v.ownerDocument.body;
1894
- return (0, n.offsetXYFromParent)(x || u, b, y.props.scale);
1890
+ function a(u, h, y) {
1891
+ const w = typeof h == "number" ? (0, n.getTouch)(u, h) : null;
1892
+ if (typeof h == "number" && !w) return null;
1893
+ const v = g(y), b = y.props.offsetParent || v.offsetParent || v.ownerDocument.body;
1894
+ return (0, n.offsetXYFromParent)(w || u, b, y.props.scale);
1895
1895
  }
1896
- function d(u, m, y) {
1897
- const x = !(0, e.isNum)(u.lastX), v = h(u);
1898
- return x ? {
1896
+ function d(u, h, y) {
1897
+ const w = !(0, e.isNum)(u.lastX), v = g(u);
1898
+ return w ? {
1899
1899
  node: v,
1900
1900
  deltaX: 0,
1901
1901
  deltaY: 0,
1902
- lastX: m,
1902
+ lastX: h,
1903
1903
  lastY: y,
1904
- x: m,
1904
+ x: h,
1905
1905
  y
1906
1906
  } : {
1907
1907
  node: v,
1908
- deltaX: m - u.lastX,
1908
+ deltaX: h - u.lastX,
1909
1909
  deltaY: y - u.lastY,
1910
1910
  lastX: u.lastX,
1911
1911
  lastY: u.lastY,
1912
- x: m,
1912
+ x: h,
1913
1913
  y
1914
1914
  };
1915
1915
  }
1916
- function p(u, m) {
1916
+ function m(u, h) {
1917
1917
  const y = u.props.scale;
1918
1918
  return {
1919
- node: m.node,
1920
- x: u.state.x + m.deltaX / y,
1921
- y: u.state.y + m.deltaY / y,
1922
- deltaX: m.deltaX / y,
1923
- deltaY: m.deltaY / y,
1919
+ node: h.node,
1920
+ x: u.state.x + h.deltaX / y,
1921
+ y: u.state.y + h.deltaY / y,
1922
+ deltaX: h.deltaX / y,
1923
+ deltaY: h.deltaY / y,
1924
1924
  lastX: u.state.x,
1925
1925
  lastY: u.state.y
1926
1926
  };
1927
1927
  }
1928
- function g(u) {
1928
+ function p(u) {
1929
1929
  return {
1930
1930
  left: u.left,
1931
1931
  top: u.top,
@@ -1933,16 +1933,16 @@ function bt() {
1933
1933
  bottom: u.bottom
1934
1934
  };
1935
1935
  }
1936
- function h(u) {
1937
- const m = u.findDOMNode();
1938
- if (!m)
1936
+ function g(u) {
1937
+ const h = u.findDOMNode();
1938
+ if (!h)
1939
1939
  throw new Error("<DraggableCore>: Unmounted during event!");
1940
- return m;
1940
+ return h;
1941
1941
  }
1942
1942
  return ne;
1943
1943
  }
1944
1944
  var he = {}, be = {}, nt;
1945
- function wt() {
1945
+ function xt() {
1946
1946
  if (nt) return be;
1947
1947
  nt = 1, Object.defineProperty(be, "__esModule", {
1948
1948
  value: !0
@@ -1952,33 +1952,33 @@ function wt() {
1952
1952
  return be;
1953
1953
  }
1954
1954
  var rt;
1955
- function hn() {
1955
+ function gn() {
1956
1956
  if (rt) return he;
1957
1957
  rt = 1, Object.defineProperty(he, "__esModule", {
1958
1958
  value: !0
1959
1959
  }), he.default = void 0;
1960
- var e = p(se), n = d(/* @__PURE__ */ vt()), t = d(st), r = Re(), i = bt(), o = xe(), s = d(wt());
1960
+ var e = m(se), n = d(/* @__PURE__ */ vt()), t = d(st), r = Re(), i = bt(), o = we(), a = d(xt());
1961
1961
  function d(v) {
1962
1962
  return v && v.__esModule ? v : { default: v };
1963
1963
  }
1964
- function p(v, b) {
1964
+ function m(v, b) {
1965
1965
  if (typeof WeakMap == "function") var C = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap();
1966
- return (p = function(S, D) {
1966
+ return (m = function(S, D) {
1967
1967
  if (!D && S && S.__esModule) return S;
1968
- var c, N, l = { __proto__: null, default: S };
1969
- if (S === null || typeof S != "object" && typeof S != "function") return l;
1970
- if (c = D ? T : C) {
1971
- if (c.has(S)) return c.get(S);
1972
- c.set(S, l);
1968
+ var l, N, c = { __proto__: null, default: S };
1969
+ if (S === null || typeof S != "object" && typeof S != "function") return c;
1970
+ if (l = D ? T : C) {
1971
+ if (l.has(S)) return l.get(S);
1972
+ l.set(S, c);
1973
1973
  }
1974
- for (const f in S) f !== "default" && {}.hasOwnProperty.call(S, f) && ((N = (c = Object.defineProperty) && Object.getOwnPropertyDescriptor(S, f)) && (N.get || N.set) ? c(l, f, N) : l[f] = S[f]);
1975
- return l;
1974
+ for (const f in S) f !== "default" && {}.hasOwnProperty.call(S, f) && ((N = (l = Object.defineProperty) && Object.getOwnPropertyDescriptor(S, f)) && (N.get || N.set) ? l(c, f, N) : c[f] = S[f]);
1975
+ return c;
1976
1976
  })(v, b);
1977
1977
  }
1978
- function g(v, b, C) {
1979
- return (b = h(b)) in v ? Object.defineProperty(v, b, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : v[b] = C, v;
1978
+ function p(v, b, C) {
1979
+ return (b = g(b)) in v ? Object.defineProperty(v, b, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : v[b] = C, v;
1980
1980
  }
1981
- function h(v) {
1981
+ function g(v) {
1982
1982
  var b = u(v, "string");
1983
1983
  return typeof b == "symbol" ? b : b + "";
1984
1984
  }
@@ -1992,7 +1992,7 @@ function hn() {
1992
1992
  }
1993
1993
  return (b === "string" ? String : Number)(v);
1994
1994
  }
1995
- const m = {
1995
+ const h = {
1996
1996
  touch: {
1997
1997
  start: "touchstart",
1998
1998
  move: "touchmove",
@@ -2004,9 +2004,9 @@ function hn() {
2004
2004
  stop: "mouseup"
2005
2005
  }
2006
2006
  };
2007
- let y = m.mouse, x = class extends e.Component {
2007
+ let y = h.mouse, w = class extends e.Component {
2008
2008
  constructor() {
2009
- super(...arguments), g(this, "dragging", !1), g(this, "lastX", NaN), g(this, "lastY", NaN), g(this, "touchIdentifier", null), g(this, "mounted", !1), g(this, "handleDragStart", (b) => {
2009
+ super(...arguments), p(this, "dragging", !1), p(this, "lastX", NaN), p(this, "lastY", NaN), p(this, "touchIdentifier", null), p(this, "mounted", !1), p(this, "handleDragStart", (b) => {
2010
2010
  if (this.props.onMouseDown(b), !this.props.allowAnyClick && typeof b.button == "number" && b.button !== 0) return !1;
2011
2011
  const C = this.findDOMNode();
2012
2012
  if (!C || !C.ownerDocument || !C.ownerDocument.body)
@@ -2022,11 +2022,11 @@ function hn() {
2022
2022
  const D = (0, i.getControlPosition)(b, S, this);
2023
2023
  if (D == null) return;
2024
2024
  const {
2025
- x: c,
2025
+ x: l,
2026
2026
  y: N
2027
- } = D, l = (0, i.createCoreData)(this, c, N);
2028
- (0, s.default)("DraggableCore: handleDragStart: %j", l), (0, s.default)("calling", this.props.onStart), !(this.props.onStart(b, l) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, r.addUserSelectStyles)(T), this.dragging = !0, this.lastX = c, this.lastY = N, (0, r.addEvent)(T, y.move, this.handleDrag), (0, r.addEvent)(T, y.stop, this.handleDragStop));
2029
- }), g(this, "handleDrag", (b) => {
2027
+ } = D, c = (0, i.createCoreData)(this, l, N);
2028
+ (0, a.default)("DraggableCore: handleDragStart: %j", c), (0, a.default)("calling", this.props.onStart), !(this.props.onStart(b, c) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, r.addUserSelectStyles)(T), this.dragging = !0, this.lastX = l, this.lastY = N, (0, r.addEvent)(T, y.move, this.handleDrag), (0, r.addEvent)(T, y.stop, this.handleDragStop));
2029
+ }), p(this, "handleDrag", (b) => {
2030
2030
  const C = (0, i.getControlPosition)(b, this.touchIdentifier, this);
2031
2031
  if (C == null) return;
2032
2032
  let {
@@ -2034,22 +2034,22 @@ function hn() {
2034
2034
  y: S
2035
2035
  } = C;
2036
2036
  if (Array.isArray(this.props.grid)) {
2037
- let N = T - this.lastX, l = S - this.lastY;
2038
- if ([N, l] = (0, i.snapToGrid)(this.props.grid, N, l), !N && !l) return;
2039
- T = this.lastX + N, S = this.lastY + l;
2037
+ let N = T - this.lastX, c = S - this.lastY;
2038
+ if ([N, c] = (0, i.snapToGrid)(this.props.grid, N, c), !N && !c) return;
2039
+ T = this.lastX + N, S = this.lastY + c;
2040
2040
  }
2041
2041
  const D = (0, i.createCoreData)(this, T, S);
2042
- if ((0, s.default)("DraggableCore: handleDrag: %j", D), this.props.onDrag(b, D) === !1 || this.mounted === !1) {
2042
+ if ((0, a.default)("DraggableCore: handleDrag: %j", D), this.props.onDrag(b, D) === !1 || this.mounted === !1) {
2043
2043
  try {
2044
2044
  this.handleDragStop(new MouseEvent("mouseup"));
2045
2045
  } catch {
2046
- const l = document.createEvent("MouseEvents");
2047
- l.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), this.handleDragStop(l);
2046
+ const c = document.createEvent("MouseEvents");
2047
+ c.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), this.handleDragStop(c);
2048
2048
  }
2049
2049
  return;
2050
2050
  }
2051
2051
  this.lastX = T, this.lastY = S;
2052
- }), g(this, "handleDragStop", (b) => {
2052
+ }), p(this, "handleDragStop", (b) => {
2053
2053
  if (!this.dragging) return;
2054
2054
  const C = (0, i.getControlPosition)(b, this.touchIdentifier, this);
2055
2055
  if (C == null) return;
@@ -2058,19 +2058,19 @@ function hn() {
2058
2058
  y: S
2059
2059
  } = C;
2060
2060
  if (Array.isArray(this.props.grid)) {
2061
- let l = T - this.lastX || 0, f = S - this.lastY || 0;
2062
- [l, f] = (0, i.snapToGrid)(this.props.grid, l, f), T = this.lastX + l, S = this.lastY + f;
2061
+ let c = T - this.lastX || 0, f = S - this.lastY || 0;
2062
+ [c, f] = (0, i.snapToGrid)(this.props.grid, c, f), T = this.lastX + c, S = this.lastY + f;
2063
2063
  }
2064
2064
  const D = (0, i.createCoreData)(this, T, S);
2065
2065
  if (this.props.onStop(b, D) === !1 || this.mounted === !1) return !1;
2066
2066
  const N = this.findDOMNode();
2067
- N && this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(N.ownerDocument), (0, s.default)("DraggableCore: handleDragStop: %j", D), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, N && ((0, s.default)("DraggableCore: Removing handlers"), (0, r.removeEvent)(N.ownerDocument, y.move, this.handleDrag), (0, r.removeEvent)(N.ownerDocument, y.stop, this.handleDragStop));
2068
- }), g(this, "onMouseDown", (b) => (y = m.mouse, this.handleDragStart(b))), g(this, "onMouseUp", (b) => (y = m.mouse, this.handleDragStop(b))), g(this, "onTouchStart", (b) => (y = m.touch, this.handleDragStart(b))), g(this, "onTouchEnd", (b) => (y = m.touch, this.handleDragStop(b)));
2067
+ N && this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(N.ownerDocument), (0, a.default)("DraggableCore: handleDragStop: %j", D), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, N && ((0, a.default)("DraggableCore: Removing handlers"), (0, r.removeEvent)(N.ownerDocument, y.move, this.handleDrag), (0, r.removeEvent)(N.ownerDocument, y.stop, this.handleDragStop));
2068
+ }), p(this, "onMouseDown", (b) => (y = h.mouse, this.handleDragStart(b))), p(this, "onMouseUp", (b) => (y = h.mouse, this.handleDragStop(b))), p(this, "onTouchStart", (b) => (y = h.touch, this.handleDragStart(b))), p(this, "onTouchEnd", (b) => (y = h.touch, this.handleDragStop(b)));
2069
2069
  }
2070
2070
  componentDidMount() {
2071
2071
  this.mounted = !0;
2072
2072
  const b = this.findDOMNode();
2073
- b && (0, r.addEvent)(b, m.touch.start, this.onTouchStart, {
2073
+ b && (0, r.addEvent)(b, h.touch.start, this.onTouchStart, {
2074
2074
  passive: !1
2075
2075
  });
2076
2076
  }
@@ -2081,7 +2081,7 @@ function hn() {
2081
2081
  const {
2082
2082
  ownerDocument: C
2083
2083
  } = b;
2084
- (0, r.removeEvent)(C, m.mouse.move, this.handleDrag), (0, r.removeEvent)(C, m.touch.move, this.handleDrag), (0, r.removeEvent)(C, m.mouse.stop, this.handleDragStop), (0, r.removeEvent)(C, m.touch.stop, this.handleDragStop), (0, r.removeEvent)(b, m.touch.start, this.onTouchStart, {
2084
+ (0, r.removeEvent)(C, h.mouse.move, this.handleDrag), (0, r.removeEvent)(C, h.touch.move, this.handleDrag), (0, r.removeEvent)(C, h.mouse.stop, this.handleDragStop), (0, r.removeEvent)(C, h.touch.stop, this.handleDragStop), (0, r.removeEvent)(b, h.touch.start, this.onTouchStart, {
2085
2085
  passive: !1
2086
2086
  }), this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(C);
2087
2087
  }
@@ -2104,7 +2104,7 @@ function hn() {
2104
2104
  });
2105
2105
  }
2106
2106
  };
2107
- return he.default = x, g(x, "displayName", "DraggableCore"), g(x, "propTypes", {
2107
+ return he.default = w, p(w, "displayName", "DraggableCore"), p(w, "propTypes", {
2108
2108
  /**
2109
2109
  * `allowAnyClick` allows dragging using any mouse button.
2110
2110
  * By default, we only accept the left button.
@@ -2234,7 +2234,7 @@ function hn() {
2234
2234
  className: o.dontSetMe,
2235
2235
  style: o.dontSetMe,
2236
2236
  transform: o.dontSetMe
2237
- }), g(x, "defaultProps", {
2237
+ }), p(w, "defaultProps", {
2238
2238
  allowAnyClick: !1,
2239
2239
  // by default only accept left click
2240
2240
  allowMobileScroll: !1,
@@ -2252,47 +2252,47 @@ function hn() {
2252
2252
  }), he;
2253
2253
  }
2254
2254
  var ot;
2255
- function gn() {
2255
+ function mn() {
2256
2256
  return ot || (ot = 1, (function(e) {
2257
2257
  Object.defineProperty(e, "__esModule", {
2258
2258
  value: !0
2259
2259
  }), Object.defineProperty(e, "DraggableCore", {
2260
2260
  enumerable: !0,
2261
2261
  get: function() {
2262
- return p.default;
2262
+ return m.default;
2263
2263
  }
2264
2264
  }), e.default = void 0;
2265
- var n = u(se), t = h(/* @__PURE__ */ vt()), r = h(st), i = un(), o = Re(), s = bt(), d = xe(), p = h(hn()), g = h(wt());
2266
- function h(C) {
2265
+ var n = u(se), t = g(/* @__PURE__ */ vt()), r = g(st), i = fn(), o = Re(), a = bt(), d = we(), m = g(gn()), p = g(xt());
2266
+ function g(C) {
2267
2267
  return C && C.__esModule ? C : { default: C };
2268
2268
  }
2269
2269
  function u(C, T) {
2270
2270
  if (typeof WeakMap == "function") var S = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap();
2271
- return (u = function(c, N) {
2272
- if (!N && c && c.__esModule) return c;
2273
- var l, f, P = { __proto__: null, default: c };
2274
- if (c === null || typeof c != "object" && typeof c != "function") return P;
2275
- if (l = N ? D : S) {
2276
- if (l.has(c)) return l.get(c);
2277
- l.set(c, P);
2271
+ return (u = function(l, N) {
2272
+ if (!N && l && l.__esModule) return l;
2273
+ var c, f, P = { __proto__: null, default: l };
2274
+ if (l === null || typeof l != "object" && typeof l != "function") return P;
2275
+ if (c = N ? D : S) {
2276
+ if (c.has(l)) return c.get(l);
2277
+ c.set(l, P);
2278
2278
  }
2279
- for (const $ in c) $ !== "default" && {}.hasOwnProperty.call(c, $) && ((f = (l = Object.defineProperty) && Object.getOwnPropertyDescriptor(c, $)) && (f.get || f.set) ? l(P, $, f) : P[$] = c[$]);
2279
+ for (const $ in l) $ !== "default" && {}.hasOwnProperty.call(l, $) && ((f = (c = Object.defineProperty) && Object.getOwnPropertyDescriptor(l, $)) && (f.get || f.set) ? c(P, $, f) : P[$] = l[$]);
2280
2280
  return P;
2281
2281
  })(C, T);
2282
2282
  }
2283
- function m() {
2284
- return m = Object.assign ? Object.assign.bind() : function(C) {
2283
+ function h() {
2284
+ return h = Object.assign ? Object.assign.bind() : function(C) {
2285
2285
  for (var T = 1; T < arguments.length; T++) {
2286
2286
  var S = arguments[T];
2287
2287
  for (var D in S) ({}).hasOwnProperty.call(S, D) && (C[D] = S[D]);
2288
2288
  }
2289
2289
  return C;
2290
- }, m.apply(null, arguments);
2290
+ }, h.apply(null, arguments);
2291
2291
  }
2292
2292
  function y(C, T, S) {
2293
- return (T = x(T)) in C ? Object.defineProperty(C, T, { value: S, enumerable: !0, configurable: !0, writable: !0 }) : C[T] = S, C;
2293
+ return (T = w(T)) in C ? Object.defineProperty(C, T, { value: S, enumerable: !0, configurable: !0, writable: !0 }) : C[T] = S, C;
2294
2294
  }
2295
- function x(C) {
2295
+ function w(C) {
2296
2296
  var T = v(C, "string");
2297
2297
  return typeof T == "symbol" ? T : T + "";
2298
2298
  }
@@ -2313,11 +2313,11 @@ function gn() {
2313
2313
  let {
2314
2314
  position: D
2315
2315
  } = T, {
2316
- prevPropsPosition: c
2316
+ prevPropsPosition: l
2317
2317
  } = S;
2318
- return D && (!c || D.x !== c.x || D.y !== c.y) ? ((0, g.default)("Draggable: getDerivedStateFromProps %j", {
2318
+ return D && (!l || D.x !== l.x || D.y !== l.y) ? ((0, p.default)("Draggable: getDerivedStateFromProps %j", {
2319
2319
  position: D,
2320
- prevPropsPosition: c
2320
+ prevPropsPosition: l
2321
2321
  }), {
2322
2322
  x: D.x,
2323
2323
  y: D.y,
@@ -2328,17 +2328,17 @@ function gn() {
2328
2328
  }
2329
2329
  constructor(T) {
2330
2330
  super(T), y(this, "onDragStart", (S, D) => {
2331
- if ((0, g.default)("Draggable: onDragStart: %j", D), this.props.onStart(S, (0, s.createDraggableData)(this, D)) === !1) return !1;
2331
+ if ((0, p.default)("Draggable: onDragStart: %j", D), this.props.onStart(S, (0, a.createDraggableData)(this, D)) === !1) return !1;
2332
2332
  this.setState({
2333
2333
  dragging: !0,
2334
2334
  dragged: !0
2335
2335
  });
2336
2336
  }), y(this, "onDrag", (S, D) => {
2337
2337
  if (!this.state.dragging) return !1;
2338
- (0, g.default)("Draggable: onDrag: %j", D);
2339
- const c = (0, s.createDraggableData)(this, D), N = {
2340
- x: c.x,
2341
- y: c.y,
2338
+ (0, p.default)("Draggable: onDrag: %j", D);
2339
+ const l = (0, a.createDraggableData)(this, D), N = {
2340
+ x: l.x,
2341
+ y: l.y,
2342
2342
  slackX: 0,
2343
2343
  slackY: 0
2344
2344
  };
@@ -2348,14 +2348,14 @@ function gn() {
2348
2348
  y: P
2349
2349
  } = N;
2350
2350
  N.x += this.state.slackX, N.y += this.state.slackY;
2351
- const [$, O] = (0, s.getBoundPosition)(this, N.x, N.y);
2352
- N.x = $, N.y = O, N.slackX = this.state.slackX + (f - N.x), N.slackY = this.state.slackY + (P - N.y), c.x = N.x, c.y = N.y, c.deltaX = N.x - this.state.x, c.deltaY = N.y - this.state.y;
2351
+ const [$, O] = (0, a.getBoundPosition)(this, N.x, N.y);
2352
+ N.x = $, N.y = O, N.slackX = this.state.slackX + (f - N.x), N.slackY = this.state.slackY + (P - N.y), l.x = N.x, l.y = N.y, l.deltaX = N.x - this.state.x, l.deltaY = N.y - this.state.y;
2353
2353
  }
2354
- if (this.props.onDrag(S, c) === !1) return !1;
2354
+ if (this.props.onDrag(S, l) === !1) return !1;
2355
2355
  this.setState(N);
2356
2356
  }), y(this, "onDragStop", (S, D) => {
2357
- if (!this.state.dragging || this.props.onStop(S, (0, s.createDraggableData)(this, D)) === !1) return !1;
2358
- (0, g.default)("Draggable: onDragStop: %j", D);
2357
+ if (!this.state.dragging || this.props.onStop(S, (0, a.createDraggableData)(this, D)) === !1) return !1;
2358
+ (0, p.default)("Draggable: onDragStop: %j", D);
2359
2359
  const N = {
2360
2360
  dragging: !1,
2361
2361
  slackX: 0,
@@ -2407,9 +2407,9 @@ function gn() {
2407
2407
  axis: T,
2408
2408
  bounds: S,
2409
2409
  children: D,
2410
- defaultPosition: c,
2410
+ defaultPosition: l,
2411
2411
  defaultClassName: N,
2412
- defaultClassNameDragging: l,
2412
+ defaultClassNameDragging: c,
2413
2413
  defaultClassNameDragged: f,
2414
2414
  position: P,
2415
2415
  positionOffset: $,
@@ -2417,18 +2417,18 @@ function gn() {
2417
2417
  ...E
2418
2418
  } = this.props;
2419
2419
  let z = {}, X = null;
2420
- const H = !!!P || this.state.dragging, ee = P || c, ae = {
2420
+ const H = !!!P || this.state.dragging, ee = P || l, ae = {
2421
2421
  // Set left if horizontal drag is enabled
2422
- x: (0, s.canDragX)(this) && H ? this.state.x : ee.x,
2422
+ x: (0, a.canDragX)(this) && H ? this.state.x : ee.x,
2423
2423
  // Set top if vertical drag is enabled
2424
- y: (0, s.canDragY)(this) && H ? this.state.y : ee.y
2424
+ y: (0, a.canDragY)(this) && H ? this.state.y : ee.y
2425
2425
  };
2426
2426
  this.state.isElementSVG ? X = (0, o.createSVGTransform)(ae, $) : z = (0, o.createCSSTransform)(ae, $);
2427
2427
  const de = (0, i.clsx)(D.props.className || "", N, {
2428
- [l]: this.state.dragging,
2428
+ [c]: this.state.dragging,
2429
2429
  [f]: this.state.dragged
2430
2430
  });
2431
- return /* @__PURE__ */ n.createElement(p.default, m({}, E, {
2431
+ return /* @__PURE__ */ n.createElement(m.default, h({}, E, {
2432
2432
  onStart: this.onDragStart,
2433
2433
  onDrag: this.onDrag,
2434
2434
  onStop: this.onDragStop
@@ -2444,7 +2444,7 @@ function gn() {
2444
2444
  }
2445
2445
  e.default = b, y(b, "displayName", "Draggable"), y(b, "propTypes", {
2446
2446
  // Accepts all props <DraggableCore> accepts.
2447
- ...p.default.propTypes,
2447
+ ...m.default.propTypes,
2448
2448
  /**
2449
2449
  * `axis` determines which axis the draggable can move.
2450
2450
  *
@@ -2550,7 +2550,7 @@ function gn() {
2550
2550
  style: d.dontSetMe,
2551
2551
  transform: d.dontSetMe
2552
2552
  }), y(b, "defaultProps", {
2553
- ...p.default.defaultProps,
2553
+ ...m.default.defaultProps,
2554
2554
  axis: "both",
2555
2555
  bounds: !1,
2556
2556
  defaultClassName: "react-draggable",
@@ -2565,17 +2565,17 @@ function gn() {
2565
2565
  })(De)), De;
2566
2566
  }
2567
2567
  var it;
2568
- function mn() {
2568
+ function pn() {
2569
2569
  if (it) return fe.exports;
2570
2570
  it = 1;
2571
2571
  const {
2572
2572
  default: e,
2573
2573
  DraggableCore: n
2574
- } = gn();
2574
+ } = mn();
2575
2575
  return fe.exports = e, fe.exports.default = e, fe.exports.DraggableCore = n, fe.exports;
2576
2576
  }
2577
- var pn = mn();
2578
- const yn = /* @__PURE__ */ rn(pn), vn = le((e, n) => {
2577
+ var yn = pn();
2578
+ const vn = /* @__PURE__ */ on(yn), bn = ce((e, n) => {
2579
2579
  const r = {
2580
2580
  ...{
2581
2581
  // 1. Take it out of the document flow
@@ -2593,31 +2593,31 @@ const yn = /* @__PURE__ */ rn(pn), vn = le((e, n) => {
2593
2593
  boxShadow: "rgba(0, 0, 0, 0.5) 7px 7px 10px 0px"
2594
2594
  },
2595
2595
  ...e.style || {}
2596
- }, i = e.testId || "not-set", o = e.className || "panel", s = xt(null);
2596
+ }, i = e.testId || "not-set", o = e.className || "panel", a = wt(null);
2597
2597
  return (
2598
2598
  // 3. Pass the internal ref to the Draggable component via 'nodeRef'
2599
- /* @__PURE__ */ a(
2600
- yn,
2599
+ /* @__PURE__ */ s(
2600
+ vn,
2601
2601
  {
2602
- nodeRef: s,
2602
+ nodeRef: a,
2603
2603
  "data-testid": i,
2604
2604
  axis: "both",
2605
2605
  handle: ".handle",
2606
- onStart: (g, h) => {
2606
+ onStart: (p, g) => {
2607
2607
  e.onDraggingChange?.(!0);
2608
2608
  },
2609
- onStop: (g, h) => {
2609
+ onStop: (p, g) => {
2610
2610
  setTimeout(() => {
2611
2611
  e.onDraggingChange?.(!1);
2612
2612
  }, 100);
2613
2613
  },
2614
- children: /* @__PURE__ */ a("div", { ref: s, className: o, style: r, children: e.children })
2614
+ children: /* @__PURE__ */ s("div", { ref: a, className: o, style: r, children: e.children })
2615
2615
  }
2616
2616
  )
2617
2617
  );
2618
2618
  });
2619
2619
  function er({ children: e }) {
2620
- return /* @__PURE__ */ a(
2620
+ return /* @__PURE__ */ s(
2621
2621
  "div",
2622
2622
  {
2623
2623
  className: "w-full h-full flex-1 flex flex-col gap-2 items-end justify-end content-end",
@@ -2629,31 +2629,31 @@ function er({ children: e }) {
2629
2629
  );
2630
2630
  }
2631
2631
  function tr({ children: e }) {
2632
- return /* @__PURE__ */ a("div", { className: "w-full flex flex-col items-end", children: e });
2632
+ return /* @__PURE__ */ s("div", { className: "w-full flex flex-col items-end", children: e });
2633
2633
  }
2634
2634
  const nr = (e) => {
2635
2635
  console.warn("showToast TODO", e);
2636
- }, bn = (e) => e < 0.8 ? 1 : e <= 1 ? 0 : e > 1 ? -1 : 0, rr = le((e, n) => {
2637
- let t = lt(Number(e.zoomScale || 0));
2636
+ }, xn = (e) => e < 0.8 ? 1 : e <= 1 ? 0 : e > 1 ? -1 : 0, rr = ce((e, n) => {
2637
+ let t = ct(Number(e.zoomScale || 0));
2638
2638
  const r = e.responsiveGrid || !1, i = e.isEditing || !1, o = {
2639
2639
  "--bwj-dashboard-transform-scale": t,
2640
- "--bwj-dashboard-add-cols": bn(t)
2641
- }, s = Z(
2640
+ "--bwj-dashboard-add-cols": xn(t)
2641
+ }, a = Z(
2642
2642
  "dashboard-main-grid w-full",
2643
2643
  i ? "editing" : "",
2644
2644
  r ? "responsive-grid" : "",
2645
2645
  //`border border-dashed ${isEditing ? 'border-primary border-opacity-50' : 'border-transparent'}`,
2646
2646
  "border border-solid border-primary"
2647
2647
  );
2648
- return /* @__PURE__ */ a("div", { className: s, style: o, children: e.children });
2648
+ return /* @__PURE__ */ s("div", { className: a, style: o, children: e.children });
2649
2649
  }), $e = "size-5", wn = (e, n) => {
2650
2650
  const t = e.hideTitle && !e.isEditing, r = e.noBorder;
2651
2651
  let i = `dashboard-widget ${e.isEditing ? "editing" : ""} border border-solid`;
2652
2652
  r ? i = `${i} border-transparent border-opacity-0` : (e.borderCssClasses || "").trim().length > 0 ? i = `${i} ${e.borderCssClasses}` : i = `${i} border-card-invert border-opacity-20`, e.noShadow && (i = `${i} no-shadow`), e.noPadding && (i = `${i} no-padding p-0`), (e.backgroundCssClasses || "").trim().length > 0 ? i = `${i} ${e.backgroundCssClasses}` : i = `${i} bg-card content-card`, ["large", "xlarge"].indexOf(e.size || "") > -1 && (i = `${i} ${e.size}-widget`);
2653
2653
  const o = () => {
2654
2654
  e.onRemoveClick && e.widgetKey && e.onRemoveClick(e.widgetKey, e.parentWidgetKey);
2655
- }, s = (p) => {
2656
- e.onMoveClick && e.widgetKey && e.onMoveClick(p, e.widgetKey, e.parentWidgetKey);
2655
+ }, a = (m) => {
2656
+ e.onMoveClick && e.widgetKey && e.onMoveClick(m, e.widgetKey, e.parentWidgetKey);
2657
2657
  }, d = Z(
2658
2658
  "widget-header",
2659
2659
  t ? "hidden" : "flex items-center justify-between border-b border-solid border-card-invert",
@@ -2666,12 +2666,12 @@ const nr = (e) => {
2666
2666
  e.title,
2667
2667
  " "
2668
2668
  ] }),
2669
- /* @__PURE__ */ a("div", {})
2669
+ /* @__PURE__ */ s("div", {})
2670
2670
  ] }),
2671
- /* @__PURE__ */ a("div", { "data-testid": "collapse-and-other-actions", children: /* @__PURE__ */ W("div", { className: "actions-inner", children: [
2672
- /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a("span", { className: "hidden", children: "Widget" }) }),
2671
+ /* @__PURE__ */ s("div", { "data-testid": "collapse-and-other-actions", children: /* @__PURE__ */ W("div", { className: "actions-inner", children: [
2672
+ /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s("span", { className: "hidden", children: "Widget" }) }),
2673
2673
  /* @__PURE__ */ W("div", { className: "actions-buttons-container", children: [
2674
- /* @__PURE__ */ a(
2674
+ /* @__PURE__ */ s(
2675
2675
  J,
2676
2676
  {
2677
2677
  "data-testid": `move-widget-left_${e.title}`,
@@ -2681,11 +2681,11 @@ const nr = (e) => {
2681
2681
  placement: "top",
2682
2682
  title: `${e.index < 1 ? "Already at min position" : "Move Widget to the left/up"}`
2683
2683
  },
2684
- onClick: () => s(-1),
2685
- children: /* @__PURE__ */ a(ut, { className: $e })
2684
+ onClick: () => a(-1),
2685
+ children: /* @__PURE__ */ s(ut, { className: $e })
2686
2686
  }
2687
2687
  ),
2688
- /* @__PURE__ */ a(
2688
+ /* @__PURE__ */ s(
2689
2689
  J,
2690
2690
  {
2691
2691
  "data-testid": `move-widget-right_${e.title}`,
@@ -2695,11 +2695,11 @@ const nr = (e) => {
2695
2695
  placement: "top",
2696
2696
  title: `${e.index >= e.maxIndex ? "Already at max position" : "Move Widget to the right/down"}`
2697
2697
  },
2698
- onClick: () => s(1),
2699
- children: /* @__PURE__ */ a(ft, { className: $e })
2698
+ onClick: () => a(1),
2699
+ children: /* @__PURE__ */ s(ft, { className: $e })
2700
2700
  }
2701
2701
  ),
2702
- /* @__PURE__ */ a(
2702
+ /* @__PURE__ */ s(
2703
2703
  J,
2704
2704
  {
2705
2705
  "data-testid": `remove-container_${e.title}`,
@@ -2709,140 +2709,140 @@ const nr = (e) => {
2709
2709
  title: "Remove Widget"
2710
2710
  },
2711
2711
  onClick: () => o(),
2712
- children: /* @__PURE__ */ a(ht, { className: $e })
2712
+ children: /* @__PURE__ */ s(ht, { className: $e })
2713
2713
  }
2714
2714
  )
2715
2715
  ] })
2716
2716
  ] }) })
2717
2717
  ] }),
2718
- /* @__PURE__ */ a("div", { className: "widget-inner", children: e.children })
2718
+ /* @__PURE__ */ s("div", { className: "widget-inner", children: e.children })
2719
2719
  ] });
2720
- }, xn = le(wn);
2721
- function Cn(e) {
2722
- return /* @__PURE__ */ a("div", { className: "dashboard-widget", children: /* @__PURE__ */ W("div", { className: "absolute inset-0 bg-black flex flex-col items-center justify-center text-center", children: [
2723
- /* @__PURE__ */ a("div", { className: "w-full absolute opacity-100 text-primary", children: e.title }),
2724
- /* @__PURE__ */ a("div", { className: "animate-ping rounded-full h-32 w-32 border-8 border-white" })
2720
+ }, Cn = ce(wn);
2721
+ function Sn(e) {
2722
+ return /* @__PURE__ */ s("div", { className: "dashboard-widget", children: /* @__PURE__ */ W("div", { className: "absolute inset-0 bg-black flex flex-col items-center justify-center text-center", children: [
2723
+ /* @__PURE__ */ s("div", { className: "w-full absolute opacity-100 text-primary", children: e.title }),
2724
+ /* @__PURE__ */ s("div", { className: "animate-ping rounded-full h-32 w-32 border-8 border-white" })
2725
2725
  ] }) });
2726
2726
  }
2727
- function Sn({
2727
+ function Dn({
2728
2728
  index: e,
2729
2729
  maxIndex: n,
2730
2730
  widgetKey: t,
2731
2731
  parentWidgetKey: r,
2732
2732
  targetContainerKey: i,
2733
2733
  childWidgetsConfig: o,
2734
- widgetCatalog: s,
2734
+ widgetCatalog: a,
2735
2735
  isEditing: d,
2736
- onRemoveClick: p,
2737
- onMoveClick: g,
2738
- selectContainer: h
2736
+ onRemoveClick: m,
2737
+ onMoveClick: p,
2738
+ selectContainer: g
2739
2739
  }) {
2740
- const u = `${t}`.split("_"), m = u.length > 1, y = m ? u[0] : t, x = s.get(y);
2741
- if (!x)
2742
- return /* @__PURE__ */ a("div", { className: "flex", children: /* @__PURE__ */ W("p", { children: [
2740
+ const u = `${t}`.split("_"), h = u.length > 1, y = h ? u[0] : t, w = a.get(y);
2741
+ if (!w)
2742
+ return /* @__PURE__ */ s("div", { className: "flex", children: /* @__PURE__ */ W("p", { children: [
2743
2743
  "Widget not found in catalog: ",
2744
2744
  y
2745
2745
  ] }) });
2746
2746
  let v = null, b = !1;
2747
- if (x.component ? (v = x.component, b = !1) : x.loader && (b = !0, v = at(() => {
2748
- if (!x) return null;
2749
- if (x.component)
2750
- return x.component;
2751
- if (x.loader) {
2752
- const l = async () => {
2747
+ if (w.component ? (v = w.component, b = !1) : w.loader && (b = !0, v = at(() => {
2748
+ if (!w) return null;
2749
+ if (w.component)
2750
+ return w.component;
2751
+ if (w.loader) {
2752
+ const c = async () => {
2753
2753
  try {
2754
- return await x.loader();
2754
+ return await w.loader();
2755
2755
  } catch (f) {
2756
2756
  return console.error(`CDN Load Failure for ${t}:`, f), {
2757
- default: () => /* @__PURE__ */ a(xn, { ...D, children: /* @__PURE__ */ W("div", { className: "p-4 border border-dashed border-danger", children: [
2757
+ default: () => /* @__PURE__ */ s(Cn, { ...D, children: /* @__PURE__ */ W("div", { className: "p-4 border border-dashed border-danger", children: [
2758
2758
  /* @__PURE__ */ W("p", { className: "font-bold", children: [
2759
2759
  'Failed to load "',
2760
2760
  t,
2761
2761
  '"'
2762
2762
  ] }),
2763
- /* @__PURE__ */ a("p", { className: "text-xs italic", children: "The remote plugin is unavailable or incompatible." }),
2764
- /* @__PURE__ */ a("pre", { className: "text-xs overflow-hidden", children: JSON.stringify(x.meta || {}, null, 2) })
2763
+ /* @__PURE__ */ s("p", { className: "text-xs italic", children: "The remote plugin is unavailable or incompatible." }),
2764
+ /* @__PURE__ */ s("pre", { className: "text-xs overflow-hidden", children: JSON.stringify(w.meta || {}, null, 2) })
2765
2765
  ] }) })
2766
2766
  };
2767
2767
  }
2768
2768
  };
2769
- return se.lazy(l);
2769
+ return se.lazy(c);
2770
2770
  }
2771
2771
  return null;
2772
- }, [x, t])), !v)
2773
- return /* @__PURE__ */ a("div", { className: "flex", children: /* @__PURE__ */ W("p", { children: [
2772
+ }, [w, t])), !v)
2773
+ return /* @__PURE__ */ s("div", { className: "flex", children: /* @__PURE__ */ W("p", { children: [
2774
2774
  "Widget definition incomplete: ",
2775
2775
  y
2776
2776
  ] }) });
2777
- const C = !!x.isContainer, T = m ? gt(t) : "", S = C ? (o || []).filter((l) => l.parentWidgetKey === t) : [], D = {
2777
+ const C = !!w.isContainer, T = h ? gt(t) : "", S = C ? (o || []).filter((c) => c.parentWidgetKey === t) : [], D = {
2778
2778
  index: e,
2779
2779
  maxIndex: n,
2780
2780
  widgetKey: t,
2781
2781
  parentWidgetKey: r,
2782
2782
  isEditing: d,
2783
- title: m ? T : x.title,
2784
- onRemoveClick: p,
2785
- onMoveClick: g
2786
- }, c = C ? {
2783
+ title: h ? T : w.title,
2784
+ onRemoveClick: m,
2785
+ onMoveClick: p
2786
+ }, l = C ? {
2787
2787
  highlight: i === t,
2788
- selectContainer: h,
2788
+ selectContainer: g,
2789
2789
  // The children prop is the recursive call back to DynamicWidgetLoader
2790
- children: S.map((l, f) => /* @__PURE__ */ a(
2791
- Sn,
2790
+ children: S.map((c, f) => /* @__PURE__ */ s(
2791
+ Dn,
2792
2792
  {
2793
2793
  index: f,
2794
2794
  maxIndex: S.length - 1,
2795
- widgetKey: l.widgetKey,
2796
- parentWidgetKey: l.parentWidgetKey,
2797
- widgetCatalog: s,
2795
+ widgetKey: c.widgetKey,
2796
+ parentWidgetKey: c.parentWidgetKey,
2797
+ widgetCatalog: a,
2798
2798
  isEditing: d,
2799
- onRemoveClick: p,
2800
- onMoveClick: g
2799
+ onRemoveClick: m,
2800
+ onMoveClick: p
2801
2801
  },
2802
- `${l.widgetKey}_${f}`
2802
+ `${c.widgetKey}_${f}`
2803
2803
  ))
2804
- } : {}, N = () => /* @__PURE__ */ a(v, { ...D, ...c });
2805
- return b ? /* @__PURE__ */ a(Ct, { fallback: /* @__PURE__ */ a(Cn, { title: `Loading ${x.title}` }), children: /* @__PURE__ */ a(N, {}) }) : /* @__PURE__ */ a(N, {});
2804
+ } : {}, N = () => /* @__PURE__ */ s(v, { ...D, ...l });
2805
+ return b ? /* @__PURE__ */ s(Ct, { fallback: /* @__PURE__ */ s(Sn, { title: `Loading ${w.title}` }), children: /* @__PURE__ */ s(N, {}) }) : /* @__PURE__ */ s(N, {});
2806
2806
  }
2807
- const we = "size-5";
2807
+ const xe = "size-5";
2808
2808
  function ke(e) {
2809
2809
  const n = e.highlight || !1, t = e.direction || "column", r = e.children.length > 0, i = e.isEditing || !1;
2810
2810
  let d = n ? "border-transparent" : i && !r ? "border-card-invert" : "border-transparent";
2811
- const p = ["large", "xlarge"].includes(e.size || "");
2811
+ const m = ["large", "xlarge"].includes(e.size || "");
2812
+ let p = "";
2813
+ ["large", "xlarge"].indexOf(e.size || "") > -1 && (p = `${e.size}-widget`);
2812
2814
  let g = "";
2813
- ["large", "xlarge"].indexOf(e.size || "") > -1 && (g = `${e.size}-widget`);
2814
- let h = "";
2815
- t === "row" && !r ? h = "min-h-48" : t === "column" && !r && (h = "min-h-96");
2815
+ t === "row" && !r ? g = "min-h-48" : t === "column" && !r && (g = "min-h-96");
2816
2816
  let u = Z(
2817
2817
  "dashboard-widget-container relative ",
2818
2818
  r ? "" : "has-no-children",
2819
2819
  i ? "editing" : "",
2820
- h,
2821
2820
  g,
2822
- p ? "widget-container-grid" : "widget-container-flex",
2821
+ p,
2822
+ m ? "widget-container-grid" : "widget-container-flex",
2823
2823
  `direction-${t}`,
2824
2824
  `border ${d}`,
2825
2825
  `${n ? "highlight-container" : ""} ${d}`
2826
- ), m = `widget-container-header direction-${t} flex items-center border-1 ${d}`;
2826
+ ), h = `widget-container-header direction-${t} flex items-center border-1 ${d}`;
2827
2827
  const y = () => {
2828
2828
  e.onRemoveClick && e.widgetKey && e.onRemoveClick(e.widgetKey);
2829
- }, x = (b) => {
2829
+ }, w = (b) => {
2830
2830
  e.onMoveClick && e.widgetKey && e.onMoveClick(b, e.widgetKey, e.parentWidgetKey);
2831
2831
  }, v = () => {
2832
2832
  e.selectContainer && e.widgetKey && e.selectContainer(e.widgetKey);
2833
2833
  };
2834
2834
  return /* @__PURE__ */ W("div", { "data-testid": `container_${e.widgetKey}`, className: u, children: [
2835
- /* @__PURE__ */ W("div", { className: m, children: [
2836
- /* @__PURE__ */ a(
2835
+ /* @__PURE__ */ W("div", { className: h, children: [
2836
+ /* @__PURE__ */ s(
2837
2837
  "div",
2838
2838
  {
2839
2839
  className: "widget-title-wrapper w-full flex whitespace-nowrap",
2840
2840
  onClick: v,
2841
- children: /* @__PURE__ */ a("span", { className: "text-sm font-semibold capitalize", children: e.title })
2841
+ children: /* @__PURE__ */ s("span", { className: "text-sm font-semibold capitalize", children: e.title })
2842
2842
  }
2843
2843
  ),
2844
- /* @__PURE__ */ a("div", { "data-testid": "collapse-and-other-actions", children: /* @__PURE__ */ a("div", { className: "actions-inner", children: /* @__PURE__ */ W("div", { className: "actions-buttons-container", children: [
2845
- /* @__PURE__ */ a(
2844
+ /* @__PURE__ */ s("div", { "data-testid": "collapse-and-other-actions", children: /* @__PURE__ */ s("div", { className: "actions-inner", children: /* @__PURE__ */ W("div", { className: "actions-buttons-container", children: [
2845
+ /* @__PURE__ */ s(
2846
2846
  J,
2847
2847
  {
2848
2848
  "data-testid": `open-widgets-catalog-from-container_${e.title}`,
@@ -2853,15 +2853,15 @@ function ke(e) {
2853
2853
  title: "Target this Container"
2854
2854
  },
2855
2855
  onClick: v,
2856
- children: /* @__PURE__ */ a(
2857
- Qt,
2856
+ children: /* @__PURE__ */ s(
2857
+ en,
2858
2858
  {
2859
- className: `${we} ${n ? "text-success" : "text-disabled"}`
2859
+ className: `${xe} ${n ? "text-success" : "text-disabled"}`
2860
2860
  }
2861
2861
  )
2862
2862
  }
2863
2863
  ),
2864
- /* @__PURE__ */ a(
2864
+ /* @__PURE__ */ s(
2865
2865
  J,
2866
2866
  {
2867
2867
  "data-testid": `move-container-left_${e.title}`,
@@ -2871,11 +2871,11 @@ function ke(e) {
2871
2871
  placement: "top",
2872
2872
  title: `${e.index < 1 ? "Already at min position" : "Move Container to the left/up"}`
2873
2873
  },
2874
- onClick: () => x(-1),
2875
- children: /* @__PURE__ */ a(ut, { className: we })
2874
+ onClick: () => w(-1),
2875
+ children: /* @__PURE__ */ s(ut, { className: xe })
2876
2876
  }
2877
2877
  ),
2878
- /* @__PURE__ */ a(
2878
+ /* @__PURE__ */ s(
2879
2879
  J,
2880
2880
  {
2881
2881
  "data-testid": `move-container-right_${e.title}`,
@@ -2885,11 +2885,11 @@ function ke(e) {
2885
2885
  placement: "top",
2886
2886
  title: `${e.index >= e.maxIndex ? "Already at max position" : "Move Container to the right/down"}`
2887
2887
  },
2888
- onClick: () => x(1),
2889
- children: /* @__PURE__ */ a(ft, { className: we })
2888
+ onClick: () => w(1),
2889
+ children: /* @__PURE__ */ s(ft, { className: xe })
2890
2890
  }
2891
2891
  ),
2892
- /* @__PURE__ */ a(
2892
+ /* @__PURE__ */ s(
2893
2893
  J,
2894
2894
  {
2895
2895
  "data-testid": `remove-container_${e.title}`,
@@ -2899,25 +2899,25 @@ function ke(e) {
2899
2899
  title: "Remove Container"
2900
2900
  },
2901
2901
  onClick: () => y(),
2902
- children: /* @__PURE__ */ a(ht, { className: we })
2902
+ children: /* @__PURE__ */ s(ht, { className: xe })
2903
2903
  }
2904
2904
  )
2905
2905
  ] }) }) })
2906
2906
  ] }),
2907
- /* @__PURE__ */ a("div", { "data-testid": `childrenwrapper_${e.widgetKey}`, className: "widget-container-inner", children: e.children })
2907
+ /* @__PURE__ */ s("div", { "data-testid": `childrenwrapper_${e.widgetKey}`, className: "widget-container-inner", children: e.children })
2908
2908
  ] });
2909
2909
  }
2910
2910
  function or(e) {
2911
2911
  const { direction: n, ...t } = e;
2912
- return /* @__PURE__ */ a(ke, { direction: "column", ...t });
2912
+ return /* @__PURE__ */ s(ke, { direction: "column", ...t });
2913
2913
  }
2914
2914
  function ir(e) {
2915
2915
  const { size: n, ...t } = e;
2916
- return /* @__PURE__ */ a(ke, { size: "large", ...t });
2916
+ return /* @__PURE__ */ s(ke, { size: "large", ...t });
2917
2917
  }
2918
2918
  function ar(e) {
2919
2919
  const { direction: n, ...t } = e;
2920
- return /* @__PURE__ */ a(ke, { direction: "row", ...t });
2920
+ return /* @__PURE__ */ s(ke, { direction: "row", ...t });
2921
2921
  }
2922
2922
  function We({
2923
2923
  // widgetKey,
@@ -2925,58 +2925,58 @@ function We({
2925
2925
  alreadyAdded: n,
2926
2926
  addWidget: t
2927
2927
  }) {
2928
- const r = e.icon || en, i = e.displayName || "Unknown", o = e.description || "---", d = (e.noDuplicatedWidgets || !1) && n, p = Z(`
2928
+ const r = e.icon || tn, i = e.displayName || "Unknown", o = e.description || "---", d = (e.noDuplicatedWidgets || !1) && n, m = Z(`
2929
2929
  flex flex-row gap-2 p-2 rounded-md border text-sm bg-card content-card backdrop-opacity-100
2930
2930
  ${d ? "border-disabled fill-disabled text-disabled" : "cursor-pointer border-primary fill-danger hover:fill-primary content-primary hover:brightness-110"}
2931
2931
  `);
2932
- return /* @__PURE__ */ W("div", { className: p, style: { width: "calc(100% - 1rem)" }, onClick: () => {
2932
+ return /* @__PURE__ */ W("div", { className: m, style: { width: "calc(100% - 1rem)" }, onClick: () => {
2933
2933
  d || t();
2934
2934
  }, children: [
2935
- /* @__PURE__ */ a(r, { className: "" }),
2935
+ /* @__PURE__ */ s(r, { className: "" }),
2936
2936
  /* @__PURE__ */ W("div", { className: "w-full", children: [
2937
2937
  /* @__PURE__ */ W("div", { className: "flex flex-row items-center gap-2 justify-between", children: [
2938
- /* @__PURE__ */ a("span", { className: "font-bold", children: i }),
2939
- /* @__PURE__ */ a("div", { className: "text-xs", children: d ? "(Added)" : "" })
2938
+ /* @__PURE__ */ s("span", { className: "font-bold", children: i }),
2939
+ /* @__PURE__ */ s("div", { className: "text-xs", children: d ? "(Added)" : "" })
2940
2940
  ] }),
2941
- /* @__PURE__ */ a("div", { className: "flex flex-col gap-2 text-xs", children: /* @__PURE__ */ a("div", { children: o }) })
2941
+ /* @__PURE__ */ s("div", { className: "flex flex-col gap-2 text-xs", children: /* @__PURE__ */ s("div", { children: o }) })
2942
2942
  ] })
2943
2943
  ] });
2944
2944
  }
2945
- function Dn({
2945
+ function Tn({
2946
2946
  item: e,
2947
2947
  onSettingItemChanged: n
2948
2948
  }) {
2949
2949
  const t = e.displayName || "Unknown", r = e.description || "---", i = Z(`
2950
2950
  flex flex-row gap-2 p-2 rounded-md border text-sm bg-card content-card backdrop-opacity-100
2951
2951
  `), o = (d) => {
2952
- const p = d.key;
2953
- if (["ArrowUp", "ArrowDown"].includes(p)) {
2952
+ const m = d.key;
2953
+ if (["ArrowUp", "ArrowDown"].includes(m)) {
2954
2954
  d.preventDefault();
2955
- const g = Et.incrementOrDecrementValue(
2955
+ const p = Et.incrementOrDecrementValue(
2956
2956
  e,
2957
- p === "ArrowUp" ? 1 : -1
2957
+ m === "ArrowUp" ? 1 : -1
2958
2958
  );
2959
- n(g);
2959
+ n(p);
2960
2960
  }
2961
- }, s = (d) => {
2961
+ }, a = (d) => {
2962
2962
  n({
2963
2963
  ...e,
2964
2964
  value: d.target.value || ""
2965
2965
  });
2966
2966
  };
2967
- return /* @__PURE__ */ a("div", { className: i, style: { width: "calc(100% - 1rem)" }, children: /* @__PURE__ */ W("div", { className: "w-full", children: [
2968
- /* @__PURE__ */ a("div", { className: "flex flex-row items-center gap-2 justify-between", children: /* @__PURE__ */ a("span", { className: "font-bold", children: t }) }),
2969
- /* @__PURE__ */ a("div", { className: "flex flex-col gap-2 text-xs", children: /* @__PURE__ */ a("div", { children: r }) }),
2967
+ return /* @__PURE__ */ s("div", { className: i, style: { width: "calc(100% - 1rem)" }, children: /* @__PURE__ */ W("div", { className: "w-full", children: [
2968
+ /* @__PURE__ */ s("div", { className: "flex flex-row items-center gap-2 justify-between", children: /* @__PURE__ */ s("span", { className: "font-bold", children: t }) }),
2969
+ /* @__PURE__ */ s("div", { className: "flex flex-col gap-2 text-xs", children: /* @__PURE__ */ s("div", { children: r }) }),
2970
2970
  /* @__PURE__ */ W("div", { children: [
2971
2971
  "Value:",
2972
- /* @__PURE__ */ a(
2972
+ /* @__PURE__ */ s(
2973
2973
  mt,
2974
2974
  {
2975
2975
  label: "Filter...",
2976
2976
  size: "small",
2977
2977
  className: "w-full",
2978
2978
  value: e.value,
2979
- onChange: s,
2979
+ onChange: a,
2980
2980
  onKeyDown: o
2981
2981
  }
2982
2982
  )
@@ -2994,25 +2994,25 @@ function sr({
2994
2994
  undoStatus: r,
2995
2995
  addWidget: i,
2996
2996
  addContainer: o,
2997
- onSettingItemsUpdated: s,
2997
+ onSettingItemsUpdated: a,
2998
2998
  onResetToDefaultDashboardClick: d,
2999
- onUndoOrRedo: p,
3000
- onDoneClick: g
2999
+ onUndoOrRedo: m,
3000
+ onDoneClick: p
3001
3001
  }) {
3002
- const [h, u] = ce("Editing"), [m, y] = ce(0), [x, v] = ce(""), C = Array.from(n.keys()).map((E) => ({
3002
+ const [g, u] = le("Editing"), [h, y] = le(0), [w, v] = le(""), C = Array.from(n.keys()).map((E) => ({
3003
3003
  widgetKey: E,
3004
3004
  metaData: Pt(E, n)
3005
3005
  })), T = (E) => {
3006
3006
  v(E.target.value);
3007
3007
  }, S = (E) => {
3008
- const z = x.trim().toLowerCase();
3008
+ const z = w.trim().toLowerCase();
3009
3009
  return z.length < 1 ? !0 : E.displayName.trim().toLowerCase().includes(z) || E.description.toLowerCase().includes(z);
3010
3010
  }, D = (E) => {
3011
- const z = x.trim().toLowerCase();
3011
+ const z = w.trim().toLowerCase();
3012
3012
  return z.length < 1 ? !0 : E.displayName.trim().toLowerCase().includes(z) || E.description.toLowerCase().includes(z);
3013
- }, c = (E) => Z(
3013
+ }, l = (E) => Z(
3014
3014
  "px-4 py-2 font-medium cursor-pointer border-b-2 border-transparent hover:border-primary focus:outline-none",
3015
- E === m ? "text-primary border-primary" : ""
3015
+ E === h ? "text-primary border-primary" : ""
3016
3016
  ), N = !!e;
3017
3017
  St(() => {
3018
3018
  if (e) {
@@ -3022,14 +3022,14 @@ function sr({
3022
3022
  } else
3023
3023
  u("Editing Dashboard");
3024
3024
  }, [e]);
3025
- const l = (E) => {
3025
+ const c = (E) => {
3026
3026
  N ? i(E, e) : i(E);
3027
3027
  }, f = (E) => {
3028
3028
  const z = (t.cssSettings || []).map((X) => X.key === E.key ? E : X);
3029
- s(z);
3030
- }, [P, $] = ce(!1);
3031
- return /* @__PURE__ */ a(
3032
- vn,
3029
+ a(z);
3030
+ }, [P, $] = le(!1);
3031
+ return /* @__PURE__ */ s(
3032
+ bn,
3033
3033
  {
3034
3034
  testId: "dashboard-catalog-flyout",
3035
3035
  className: "bg-body content-body bg-opacity-70 border-2 border-primary",
@@ -3046,18 +3046,18 @@ function sr({
3046
3046
  children: /* @__PURE__ */ W("div", { className: "flex flex-col gap-2 p-2", children: [
3047
3047
  /* @__PURE__ */ W("div", { className: "flex flex-row gap-2 justify-between", children: [
3048
3048
  /* @__PURE__ */ W("div", { className: "handle flex-1 flex gap-2 w-full hover:text-primary cursor-grab", children: [
3049
- P ? /* @__PURE__ */ a(Jt, { className: "size-5" }) : /* @__PURE__ */ a(Zt, { className: "size-5" }),
3050
- /* @__PURE__ */ a(
3049
+ P ? /* @__PURE__ */ s(Qt, { className: "size-5" }) : /* @__PURE__ */ s(Jt, { className: "size-5" }),
3050
+ /* @__PURE__ */ s(
3051
3051
  "h2",
3052
3052
  {
3053
3053
  className: "flex-1 text-base margin-0 capitalize",
3054
- title: N ? h : `Editing dashboard: ${t.dashboardName}`,
3055
- children: h
3054
+ title: N ? g : `Editing dashboard: ${t.dashboardName}`,
3055
+ children: g
3056
3056
  }
3057
3057
  )
3058
3058
  ] }),
3059
3059
  /* @__PURE__ */ W("div", { className: "flex flex-row gap-2 items-center", children: [
3060
- /* @__PURE__ */ a(
3060
+ /* @__PURE__ */ s(
3061
3061
  J,
3062
3062
  {
3063
3063
  "data-testid": "undo-dashboard-config-change",
@@ -3067,11 +3067,11 @@ function sr({
3067
3067
  title: "Undo"
3068
3068
  },
3069
3069
  disabled: r.isUndoDisabled,
3070
- onClick: () => p("Undo"),
3071
- children: /* @__PURE__ */ a(Xt, { className: "size-5" })
3070
+ onClick: () => m("Undo"),
3071
+ children: /* @__PURE__ */ s(Gt, { className: "size-5" })
3072
3072
  }
3073
3073
  ),
3074
- /* @__PURE__ */ a(
3074
+ /* @__PURE__ */ s(
3075
3075
  J,
3076
3076
  {
3077
3077
  "data-testid": "redo-dashboard-config-change",
@@ -3081,11 +3081,11 @@ function sr({
3081
3081
  title: "Redo"
3082
3082
  },
3083
3083
  disabled: r.isRedoDisabled,
3084
- onClick: () => p("Redo"),
3085
- children: /* @__PURE__ */ a(Gt, { className: "size-5" })
3084
+ onClick: () => m("Redo"),
3085
+ children: /* @__PURE__ */ s(Zt, { className: "size-5" })
3086
3086
  }
3087
3087
  ),
3088
- /* @__PURE__ */ a(
3088
+ /* @__PURE__ */ s(
3089
3089
  J,
3090
3090
  {
3091
3091
  "data-testid": "reset-dashboard-to-default",
@@ -3095,24 +3095,24 @@ function sr({
3095
3095
  title: "Reset this dashboard to the default configuration"
3096
3096
  },
3097
3097
  onClick: d,
3098
- children: /* @__PURE__ */ a(Ht, { className: "size-5" })
3098
+ children: /* @__PURE__ */ s(Xt, { className: "size-5" })
3099
3099
  }
3100
3100
  )
3101
3101
  ] })
3102
3102
  ] }),
3103
3103
  /* @__PURE__ */ W("div", { className: "flex border-b border-gray-200", children: [
3104
- /* @__PURE__ */ a("button", { onClick: () => y(0), className: c(0), children: "Widgets" }),
3105
- /* @__PURE__ */ a("button", { onClick: () => y(1), className: c(1), children: "Charts" }),
3106
- !N && /* @__PURE__ */ a("button", { onClick: () => y(2), className: c(2), children: "Containers" }),
3107
- !N && /* @__PURE__ */ a("button", { onClick: () => y(3), className: c(3), children: /* @__PURE__ */ a(Kt, {}) })
3104
+ /* @__PURE__ */ s("button", { onClick: () => y(0), className: l(0), children: "Widgets" }),
3105
+ /* @__PURE__ */ s("button", { onClick: () => y(1), className: l(1), children: "Charts" }),
3106
+ !N && /* @__PURE__ */ s("button", { onClick: () => y(2), className: l(2), children: "Containers" }),
3107
+ !N && /* @__PURE__ */ s("button", { onClick: () => y(3), className: l(3), children: /* @__PURE__ */ s(Ht, {}) })
3108
3108
  ] }),
3109
- /* @__PURE__ */ a("div", { className: "flex items-center justify-between gap-1 w-full", children: /* @__PURE__ */ a(
3109
+ /* @__PURE__ */ s("div", { className: "flex items-center justify-between gap-1 w-full", children: /* @__PURE__ */ s(
3110
3110
  mt,
3111
3111
  {
3112
3112
  label: "Filter...",
3113
3113
  size: "small",
3114
3114
  className: "w-full",
3115
- value: x,
3115
+ value: w,
3116
3116
  onChange: T
3117
3117
  }
3118
3118
  ) }),
@@ -3124,31 +3124,31 @@ function sr({
3124
3124
  maxHeight: "360px"
3125
3125
  },
3126
3126
  children: [
3127
- m === 0 && C.filter(
3127
+ h === 0 && C.filter(
3128
3128
  (E) => E.metaData.categories.includes("Widget") && S(E.metaData)
3129
- ).map((E) => /* @__PURE__ */ a(
3129
+ ).map((E) => /* @__PURE__ */ s(
3130
3130
  We,
3131
3131
  {
3132
3132
  widgetKey: E.widgetKey,
3133
3133
  metaData: E.metaData,
3134
3134
  alreadyAdded: Ie(E.widgetKey, t),
3135
- addWidget: () => l(E.widgetKey)
3135
+ addWidget: () => c(E.widgetKey)
3136
3136
  },
3137
3137
  E.widgetKey
3138
3138
  )),
3139
- m === 1 && C.filter(
3139
+ h === 1 && C.filter(
3140
3140
  (E) => E.metaData.categories.includes("Chart") && S(E.metaData)
3141
- ).map((E) => /* @__PURE__ */ a(
3141
+ ).map((E) => /* @__PURE__ */ s(
3142
3142
  We,
3143
3143
  {
3144
3144
  widgetKey: E.widgetKey,
3145
3145
  metaData: E.metaData,
3146
3146
  alreadyAdded: Ie(E.widgetKey, t),
3147
- addWidget: () => l(E.widgetKey)
3147
+ addWidget: () => c(E.widgetKey)
3148
3148
  },
3149
3149
  E.widgetKey
3150
3150
  )),
3151
- !N && m === 2 && C.filter((E) => E.metaData.categories.includes("Container")).map((E) => /* @__PURE__ */ a(
3151
+ !N && h === 2 && C.filter((E) => E.metaData.categories.includes("Container")).map((E) => /* @__PURE__ */ s(
3152
3152
  We,
3153
3153
  {
3154
3154
  widgetKey: E.widgetKey,
@@ -3158,8 +3158,8 @@ function sr({
3158
3158
  },
3159
3159
  E.widgetKey
3160
3160
  )),
3161
- !N && m === 3 && (t.cssSettings || []).filter(D).map((E) => /* @__PURE__ */ a(
3162
- Dn,
3161
+ !N && h === 3 && (t.cssSettings || []).filter(D).map((E) => /* @__PURE__ */ s(
3162
+ Tn,
3163
3163
  {
3164
3164
  item: E,
3165
3165
  onSettingItemChanged: f
@@ -3169,7 +3169,7 @@ function sr({
3169
3169
  ]
3170
3170
  }
3171
3171
  ),
3172
- /* @__PURE__ */ a("div", { className: "mt-4 w-full flex flex-row justify-end pt-1", children: /* @__PURE__ */ a(
3172
+ /* @__PURE__ */ s("div", { className: "mt-4 w-full flex flex-row justify-end pt-1", children: /* @__PURE__ */ s(
3173
3173
  J,
3174
3174
  {
3175
3175
  className: "bg-opacity-100",
@@ -3177,7 +3177,7 @@ function sr({
3177
3177
  placement: "bottom",
3178
3178
  title: "Click to exit edit mode"
3179
3179
  },
3180
- onClick: g,
3180
+ onClick: p,
3181
3181
  children: "Done"
3182
3182
  }
3183
3183
  ) })
@@ -3188,20 +3188,20 @@ function sr({
3188
3188
  export {
3189
3189
  jn as AddIcon,
3190
3190
  J as Button,
3191
- en as CircleQuestionMark,
3192
- Qt as CrosshairIcon,
3191
+ tn as CircleQuestionMark,
3192
+ en as CrosshairIcon,
3193
3193
  rr as DashboardGrid,
3194
- Fe as DashboardMaxZoomScale,
3194
+ Le as DashboardMaxZoomScale,
3195
3195
  Ae as DashboardMinZoomScale,
3196
- xn as DashboardWidgetBase,
3196
+ Cn as DashboardWidgetBase,
3197
3197
  _t as DashboardZoomStep,
3198
3198
  An as DeleteIcon,
3199
- vn as DraggablePanel,
3200
- Sn as DynamicWidgetLoader,
3201
- Fn as EditIcon,
3202
- Ln as GridIcon,
3203
- Jt as HandGrabIcon,
3204
- Zt as HandIcon,
3199
+ bn as DraggablePanel,
3200
+ Dn as DynamicWidgetLoader,
3201
+ Ln as EditIcon,
3202
+ Fn as GridIcon,
3203
+ Qt as HandGrabIcon,
3204
+ Jt as HandIcon,
3205
3205
  Xn as ListItem,
3206
3206
  Gn as ListItemLeftChild,
3207
3207
  Zn as ListItemMiddleChild,
@@ -3210,15 +3210,15 @@ export {
3210
3210
  Vn as MonitorSmartphoneIcon,
3211
3211
  ut as MoveLeftIcon,
3212
3212
  ft as MoveRightIcon,
3213
- Gt as RedoIcon,
3214
- Kt as SettingsIcon,
3215
- nn as Stack,
3213
+ Zt as RedoIcon,
3214
+ Ht as SettingsIcon,
3215
+ rn as Stack,
3216
3216
  K as SvgBaseWrapper,
3217
3217
  Yn as TabletSmartphoneIcon,
3218
3218
  Bn as TargetIcon,
3219
3219
  mt as TextField,
3220
- Ht as TimerResetIcon,
3221
- Xt as UndoIcon,
3220
+ Xt as TimerResetIcon,
3221
+ Gt as UndoIcon,
3222
3222
  or as WidgetContainerColumn,
3223
3223
  ir as WidgetContainerLarge,
3224
3224
  ar as WidgetContainerRow,
@@ -3229,24 +3229,24 @@ export {
3229
3229
  qn as ZoomInIcon,
3230
3230
  zn as ZoomOutIcon,
3231
3231
  Ce as blankDashboardConfig,
3232
- ct as createDynamicEntry,
3233
- $n as createStaticEntry,
3232
+ lt as createDynamicEntry,
3233
+ $t as createStaticEntry,
3234
3234
  Dt as cssSettingsCatalog,
3235
3235
  Hn as cssVarsUtils,
3236
3236
  Et as dashboardSettingsUtils,
3237
3237
  Mt as ensureContainersSequence,
3238
- lt as ensureZoomScaleIsWithinRange,
3238
+ ct as ensureZoomScaleIsWithinRange,
3239
3239
  ge as getDefaultWidgetMetaFromKey,
3240
- Pn as getDefaultWidgetMetaFromMap,
3240
+ $n as getDefaultWidgetMetaFromMap,
3241
3241
  Z as getDistinctCssClasses,
3242
- Wt as getMetaInfoFromFile,
3243
- _n as getNewZoomScaleWithinRange,
3242
+ It as getMetaInfoFromFile,
3243
+ Mn as getNewZoomScaleWithinRange,
3244
3244
  Pt as getWidgetMetaFromCatalog,
3245
- Wn as localWidgetDiscovery,
3245
+ In as localWidgetDiscovery,
3246
3246
  gt as parseContainerTitle,
3247
- $t as parseKeyAndTitleFromFilePath,
3248
- In as remoteWidgetDiscovery,
3249
- Mn as removeEmptyContainers,
3247
+ Wt as parseKeyAndTitleFromFilePath,
3248
+ Wn as remoteWidgetDiscovery,
3249
+ Pn as removeEmptyContainers,
3250
3250
  re as resolveColorFromClass,
3251
3251
  Kn as resolvedColors,
3252
3252
  nr as showToast,