@tenorlab/react-dashboard 1.0.2 → 1.0.4

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,7 +1,7 @@
1
- import se, { useState as ce, useCallback as ue, useMemo as it, forwardRef as le, useRef as xt, Suspense as wt, useEffect as St } from "react";
2
- import { jsxs as I, jsx as a } from "react/jsx-runtime";
3
- import at from "react-dom";
4
- const Ct = [
1
+ import se, { useState as le, useCallback as ue, useMemo as at, forwardRef as ce, useRef as wt, Suspense as xt, useEffect as Ct } from "react";
2
+ import { jsxs as W, jsx as a } from "react/jsx-runtime";
3
+ import st from "react-dom";
4
+ const St = [
5
5
  {
6
6
  key: "grid-gap",
7
7
  displayName: "Gap",
@@ -87,7 +87,7 @@ const Ct = [
87
87
  value: y
88
88
  };
89
89
  }
90
- }, we = {
90
+ }, xe = {
91
91
  userID: 0,
92
92
  clientAppKey: "",
93
93
  dashboardId: "default",
@@ -96,29 +96,13 @@ const Ct = [
96
96
  responsiveGrid: !1,
97
97
  widgets: [],
98
98
  childWidgetsConfig: [],
99
- cssSettings: [...Ct]
100
- }, je = 0.7, Ae = 1, Et = 0.05, st = (e) => {
99
+ cssSettings: [...St]
100
+ }, Ae = 0.7, Fe = 1, Et = 0.05, ct = (e) => {
101
101
  let n = Number(e || 0);
102
- return n < je && (n = je), n > Ae && (n = Ae), n;
103
- }, Tn = (e, n) => {
102
+ return n < Ae && (n = Ae), n > Fe && (n = Fe), n;
103
+ }, Nn = (e, n) => {
104
104
  let t = Number(Number((Et * n).toFixed(2)).toFixed(2)), r = Number((Number(e) + t).toFixed(2));
105
- return st(r);
106
- }, lt = (e, n) => {
107
- const t = `${e}`.includes("Container"), r = t ? ["Container"] : ["Widget"], i = n?.title || e, o = n?.description || (t ? "Container" : "Unknown");
108
- return {
109
- title: i,
110
- displayName: e,
111
- description: o,
112
- categories: r,
113
- noDuplicatedWidgets: !0,
114
- icon: void 0
115
- };
116
- }, Nn = (e, n, t) => {
117
- const r = n[e];
118
- return r || lt(e, t);
119
- }, _t = (e, n) => {
120
- const r = n.get(e)?.meta;
121
- return r || lt(e);
105
+ return ct(r);
122
106
  }, En = (e) => {
123
107
  let n = {
124
108
  ...e
@@ -135,13 +119,13 @@ const Ct = [
135
119
  }
136
120
  return !0;
137
121
  }), n;
138
- }, Mt = (e) => {
122
+ }, _t = (e) => {
139
123
  const n = e.widgets.filter(
140
124
  (r) => r.includes("WidgetContainer")
141
125
  ), t = {};
142
126
  return n.forEach((r, i) => {
143
- const u = `${r.split("_container")[0]}_container${i + 1}`;
144
- t[r] = u;
127
+ const d = `${r.split("_container")[0]}_container${i + 1}`;
128
+ t[r] = d;
145
129
  }), e.widgets = e.widgets.map((r) => t[r] || r), e.childWidgetsConfig = e.childWidgetsConfig.map((r) => {
146
130
  const i = r.parentWidgetKey, o = t[i];
147
131
  return {
@@ -150,18 +134,92 @@ const Ct = [
150
134
  parentWidgetKey: o || i
151
135
  };
152
136
  }), e;
153
- }, Le = (e) => {
137
+ }, Ie = (e, n) => {
138
+ const t = `${e}`.includes("Container"), r = t ? ["Container"] : ["Widget"], i = n?.title || e, o = n?.description || (t ? "Container" : "Unknown");
139
+ return {
140
+ title: i,
141
+ displayName: e,
142
+ description: o,
143
+ categories: r,
144
+ noDuplicatedWidgets: !0,
145
+ icon: void 0
146
+ };
147
+ }, _n = (e, n, t) => {
148
+ const r = n[e];
149
+ return r || Ie(e, t);
150
+ }, Mt = (e, n) => {
151
+ const r = n.get(e)?.meta;
152
+ return r || Ie(e);
153
+ }, Mn = (e, n) => {
154
+ const t = Ie(e);
155
+ return [
156
+ e,
157
+ {
158
+ key: e,
159
+ title: t.displayName,
160
+ isContainer: `${e}`.includes("Container"),
161
+ meta: t,
162
+ component: n
163
+ }
164
+ ];
165
+ }, Pt = (e, n, t) => [
166
+ e,
167
+ {
168
+ key: e,
169
+ title: t.displayName,
170
+ isContainer: !1,
171
+ meta: t,
172
+ loader: n
173
+ }
174
+ ], Pn = (e) => {
175
+ const n = e.match(/\/widget-([a-zA-Z0-9-]+)\/index\.ts$/);
176
+ if (n && n[1]) {
177
+ 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(" ");
178
+ return { key: r, title: i, folder: t };
179
+ }
180
+ return null;
181
+ }, $n = async (e) => new Promise(async (n, t) => {
182
+ const r = [];
183
+ try {
184
+ const o = await (await fetch(`${e}?${Math.random()}`)).json();
185
+ for (const s in o) {
186
+ const d = o[s], y = () => import(
187
+ /* @vite-ignore */
188
+ d.url
189
+ ), m = {
190
+ displayName: d.meta.displayName,
191
+ description: d.meta.description || "Remote Plugin",
192
+ categories: d.meta.categories || ["Widget"],
193
+ noDuplicatedWidgets: d.meta.noDuplicatedWidgets ?? !0,
194
+ icon: void 0
195
+ // Or a logic to map a string name to a Lucide component
196
+ };
197
+ r.push(Pt(s, y, m));
198
+ }
199
+ n({
200
+ entries: r,
201
+ message: "",
202
+ details: ""
203
+ });
204
+ } catch (i) {
205
+ console.error("Remote plugin discovery failed:", i), t({
206
+ entries: [],
207
+ message: "Remote plugin discovery failed:",
208
+ details: typeof i == "object" ? JSON.stringify(i) : i
209
+ });
210
+ }
211
+ }), Le = (e) => {
154
212
  let n;
155
213
  const t = /* @__PURE__ */ new Set(), r = (m, h) => {
156
- const d = typeof m == "function" ? m(n) : m;
157
- if (!Object.is(d, n)) {
214
+ const u = typeof m == "function" ? m(n) : m;
215
+ if (!Object.is(u, n)) {
158
216
  const g = n;
159
- n = h ?? (typeof d != "object" || d === null) ? d : Object.assign({}, n, d), t.forEach((p) => p(n, g));
217
+ n = h ?? (typeof u != "object" || u === null) ? u : Object.assign({}, n, u), t.forEach((p) => p(n, g));
160
218
  }
161
- }, i = () => n, u = { setState: r, getState: i, getInitialState: () => y, subscribe: (m) => (t.add(m), () => t.delete(m)) }, y = n = e(r, i, u);
162
- return u;
163
- }, Pt = ((e) => e ? Le(e) : Le), $t = (e) => e;
164
- function It(e, n = $t) {
219
+ }, i = () => n, d = { setState: r, getState: i, getInitialState: () => y, subscribe: (m) => (t.add(m), () => t.delete(m)) }, y = n = e(r, i, d);
220
+ return d;
221
+ }, $t = ((e) => e ? Le(e) : Le), Wt = (e) => e;
222
+ function It(e, n = Wt) {
165
223
  const t = se.useSyncExternalStore(
166
224
  e.subscribe,
167
225
  se.useCallback(() => n(e.getState()), [e, n]),
@@ -169,16 +227,16 @@ function It(e, n = $t) {
169
227
  );
170
228
  return se.useDebugValue(t), t;
171
229
  }
172
- const Wt = (e) => {
173
- const n = Pt(e), t = (r) => It(n, r);
230
+ const Ot = (e) => {
231
+ const n = $t(e), t = (r) => It(n, r);
174
232
  return Object.assign(t, n), t;
175
- }, Ot = ((e) => Wt), Rt = (e) => {
233
+ }, Rt = ((e) => Ot), kt = (e) => {
176
234
  const n = e.widgets.filter((r) => r.includes("WidgetContainer")).map((r) => Number(r.split("_")[1].replace("container", "")));
177
235
  return `container${n.length > 0 ? Math.max(...n) + 1 : 1}`;
178
- }, kt = (e, n) => {
179
- const t = Rt(e);
236
+ }, jt = (e, n) => {
237
+ const t = kt(e);
180
238
  return `${n}_${t}`;
181
- }, jt = (e) => {
239
+ }, At = (e) => {
182
240
  const { dashboardConfig: n, widgetKey: t, parentWidgetKey: r, noDuplicatedWidgets: i } = e;
183
241
  if (r) {
184
242
  if (i && n.childWidgetsConfig.find(
@@ -217,7 +275,7 @@ const Wt = (e) => {
217
275
  }
218
276
  };
219
277
  }
220
- }, At = (e, n, t) => {
278
+ }, Ft = (e, n, t) => {
221
279
  if ((t || "").trim().length > 0) {
222
280
  const r = e.childWidgetsConfig.filter(
223
281
  (y) => y.parentWidgetKey !== t
@@ -228,7 +286,7 @@ const Wt = (e) => {
228
286
  ...e,
229
287
  childWidgetsConfig: o
230
288
  };
231
- return `${n}`.includes("Container") && (s = Mt(s)), {
289
+ return `${n}`.includes("Container") && (s = _t(s)), {
232
290
  success: !0,
233
291
  updatedDashboardConfig: s
234
292
  };
@@ -254,15 +312,15 @@ const Wt = (e) => {
254
312
  (h) => h.parentWidgetKey === r
255
313
  );
256
314
  const s = o.indexOf(t);
257
- let u = s + n;
258
- if (u = Math.max(0, u), u = Math.min(o.length - 1, u), u === s)
315
+ let d = s + n;
316
+ if (d = Math.max(0, d), d = Math.min(o.length - 1, d), d === s)
259
317
  return {
260
318
  success: !1,
261
319
  message: `DashboardStore: moveWidget: Widget already at min/max position (${t})`,
262
320
  updatedDashboardConfig: e
263
321
  };
264
322
  const y = [...o], [m] = y.splice(s, 1);
265
- return y.splice(u, 0, m), {
323
+ return y.splice(d, 0, m), {
266
324
  success: !0,
267
325
  updatedDashboardConfig: {
268
326
  ...e,
@@ -278,22 +336,22 @@ const Wt = (e) => {
278
336
  message: `DashboardStore: moveWidget: Widget already at min/max position (${t})`,
279
337
  updatedDashboardConfig: e
280
338
  };
281
- const u = [...i], [y] = u.splice(o, 1);
282
- return u.splice(s, 0, y), {
339
+ const d = [...i], [y] = d.splice(o, 1);
340
+ return d.splice(s, 0, y), {
283
341
  success: !0,
284
342
  updatedDashboardConfig: {
285
343
  ...e,
286
- widgets: u
344
+ widgets: d
287
345
  }
288
346
  };
289
347
  }
290
- }, Ft = (e, n) => ({
348
+ }, Ut = (e, n) => ({
291
349
  isLoading: !1,
292
350
  isEditing: !1,
293
- allDashboardConfigs: [we],
294
- currentDashboardConfig: we,
351
+ allDashboardConfigs: [xe],
352
+ currentDashboardConfig: xe,
295
353
  targetContainerKey: void 0,
296
- getNextContainerKey: (t) => kt(n().currentDashboardConfig, t),
354
+ getNextContainerKey: (t) => jt(n().currentDashboardConfig, t),
297
355
  setIsLoading: (t) => (e(() => ({ isLoading: t })), t),
298
356
  setIsEditing: (t) => {
299
357
  let r = n().targetContainerKey;
@@ -328,7 +386,7 @@ const Wt = (e) => {
328
386
  return e(() => ({
329
387
  ...r,
330
388
  allDashboardConfigs: i,
331
- currentDashboardConfig: i[0] || we
389
+ currentDashboardConfig: i[0] || xe
332
390
  })), i;
333
391
  },
334
392
  selectDashboardById: (t) => (e(() => {
@@ -340,7 +398,7 @@ const Wt = (e) => {
340
398
  };
341
399
  }), n().currentDashboardConfig),
342
400
  addWidget: (t) => {
343
- const r = n(), i = jt({
401
+ const r = n(), i = At({
344
402
  dashboardConfig: r.currentDashboardConfig,
345
403
  ...t
346
404
  }), o = [
@@ -358,9 +416,9 @@ const Wt = (e) => {
358
416
  };
359
417
  },
360
418
  removeWidget: (t, r) => {
361
- const i = n(), o = At(i.currentDashboardConfig, t, r), s = [
419
+ const i = n(), o = Ft(i.currentDashboardConfig, t, r), s = [
362
420
  ...i.allDashboardConfigs.filter(
363
- (u) => u.dashboardId !== o.updatedDashboardConfig.dashboardId
421
+ (d) => d.dashboardId !== o.updatedDashboardConfig.dashboardId
364
422
  ),
365
423
  o.updatedDashboardConfig
366
424
  ];
@@ -373,48 +431,48 @@ const Wt = (e) => {
373
431
  };
374
432
  },
375
433
  moveWidget: (t, r, i) => {
376
- const o = n(), s = Lt(o.currentDashboardConfig, t, r, i), u = [
434
+ const o = n(), s = Lt(o.currentDashboardConfig, t, r, i), d = [
377
435
  ...o.allDashboardConfigs.filter(
378
436
  (y) => y.dashboardId !== s.updatedDashboardConfig.dashboardId
379
437
  ),
380
438
  s.updatedDashboardConfig
381
439
  ];
382
440
  return s.success && e(() => ({
383
- allDashboardConfigs: u,
441
+ allDashboardConfigs: d,
384
442
  currentDashboardConfig: s.updatedDashboardConfig
385
443
  })), {
386
444
  ...s,
387
- allUpdatedDashboardConfigs: u
445
+ allUpdatedDashboardConfigs: d
388
446
  };
389
447
  }
390
- }), _n = Ot()((...e) => ({
391
- ...Ft(...e)
392
- })), ct = (e, n) => `dashboards_${n}_${e}`, Ut = async (e, n, t, r) => {
393
- const i = localStorage.getItem(ct(e, n));
448
+ }), Wn = Rt()((...e) => ({
449
+ ...Ut(...e)
450
+ })), lt = (e, n) => `dashboards_${n}_${e}`, Vt = async (e, n, t, r) => {
451
+ const i = localStorage.getItem(lt(e, n));
394
452
  if (i)
395
453
  try {
396
454
  const o = JSON.parse(i);
397
455
  return o.length < 1 ? [r] : (o.forEach((s) => {
398
456
  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);
399
- const u = (s.cssSettings || []).filter(
457
+ const d = (s.cssSettings || []).filter(
400
458
  (y) => r.cssSettings.some((m) => m.key === y.key)
401
459
  );
402
- if (u.length < 1)
460
+ if (d.length < 1)
403
461
  s.cssSettings = [...r.cssSettings];
404
462
  else {
405
- u.forEach((m) => {
463
+ d.forEach((m) => {
406
464
  m.value = (m.value || "").replace(/NaN/g, "");
407
465
  const h = r.cssSettings.find(
408
- (d) => d.key === m.key
466
+ (u) => u.key === m.key
409
467
  );
410
- h && (Object.keys(h).forEach((d) => {
411
- d in m || (m[d] = h[d]);
468
+ h && (Object.keys(h).forEach((u) => {
469
+ u in m || (m[u] = h[u]);
412
470
  }), m.step = h.step, m.minValue = h.minValue, m.defaultValue = h.defaultValue, m.defaultUnit = h.defaultUnit, /\d+/g.test(m.value) === !1 && (m.value = h ? h.value : "1.0rem"));
413
471
  });
414
- const y = r.cssSettings.filter((m) => !u.some(
472
+ const y = r.cssSettings.filter((m) => !d.some(
415
473
  (h) => h.key === m.key
416
474
  ));
417
- s.cssSettings = [...u, ...y];
475
+ s.cssSettings = [...d, ...y];
418
476
  }
419
477
  s.widgets = s.widgets.filter(
420
478
  (y) => y.includes("WidgetContainer") || t.has(y)
@@ -426,7 +484,7 @@ const Wt = (e) => {
426
484
  console.warn("Error parsing saved dashboard config:", o);
427
485
  }
428
486
  return [r];
429
- }, Vt = async (e, n, t, r) => {
487
+ }, Yt = async (e, n, t, r) => {
430
488
  t.forEach((o) => {
431
489
  if (o.userID = e, o.clientAppKey = n, o.responsiveGrid = o.responsiveGrid ?? !1, typeof o != "object")
432
490
  throw new Error("Invalid dashboard configuration");
@@ -437,61 +495,61 @@ const Wt = (e) => {
437
495
  ), o.zoomScale ? o.zoomScale < 0.7 && (o.zoomScale = 0.7) : o.zoomScale = 1;
438
496
  });
439
497
  const i = JSON.stringify(t);
440
- return localStorage.setItem(ct(e, n), i), !0;
441
- }, Yt = {
442
- getSavedDashboards: Ut,
443
- saveDashboards: Vt
444
- }, Mn = () => Yt, Pn = () => {
445
- const [e, n] = ce({}), [t, r] = ce({}), i = ue((h) => {
446
- const d = h.dashboardId;
498
+ return localStorage.setItem(lt(e, n), i), !0;
499
+ }, qt = {
500
+ getSavedDashboards: Vt,
501
+ saveDashboards: Yt
502
+ }, In = () => qt, On = () => {
503
+ const [e, n] = le({}), [t, r] = le({}), i = ue((h) => {
504
+ const u = h.dashboardId;
447
505
  n((g) => {
448
506
  const p = {
449
507
  undoIndex: 0,
450
508
  config: h
451
509
  };
452
- return r((w) => ({
453
- ...w,
454
- [d]: 0
510
+ return r((x) => ({
511
+ ...x,
512
+ [u]: 0
455
513
  })), {
456
514
  ...g,
457
- [d]: [p]
515
+ [u]: [p]
458
516
  // Forces a reset to just this one entry
459
517
  };
460
518
  });
461
519
  }, []), o = ue(
462
520
  (h) => {
463
- n((d) => {
464
- const g = h.dashboardId, p = d[g] || [], w = t[g] ?? -1, b = p.slice(0, w + 1), v = {
521
+ n((u) => {
522
+ const g = h.dashboardId, p = u[g] || [], x = t[g] ?? -1, b = p.slice(0, x + 1), v = {
465
523
  undoIndex: b.length,
466
524
  // New index based on trimmed length
467
525
  config: h
468
- }, S = [...b, v];
526
+ }, C = [...b, v];
469
527
  return r((T) => ({
470
528
  ...T,
471
- [g]: S.length - 1
529
+ [g]: C.length - 1
472
530
  // Index is now the last element's index
473
531
  })), {
474
- ...d,
475
- [g]: S
532
+ ...u,
533
+ [g]: C
476
534
  };
477
535
  });
478
536
  },
479
537
  [t]
480
538
  ), s = ue((h) => {
481
- n((d) => {
482
- if (!d[h])
483
- return d;
484
- const { [h]: g, ...p } = d;
539
+ n((u) => {
540
+ if (!u[h])
541
+ return u;
542
+ const { [h]: g, ...p } = u;
485
543
  return p;
486
- }), r((d) => {
487
- const { [h]: g, ...p } = d;
544
+ }), r((u) => {
545
+ const { [h]: g, ...p } = u;
488
546
  return p;
489
547
  });
490
- }, []), u = ue(
548
+ }, []), d = ue(
491
549
  (h) => {
492
- r((d) => {
493
- const g = d[h] ?? -1, p = Math.max(0, g - 1);
494
- return p !== g ? { ...d, [h]: p } : d;
550
+ r((u) => {
551
+ const g = u[h] ?? -1, p = Math.max(0, g - 1);
552
+ return p !== g ? { ...u, [h]: p } : u;
495
553
  });
496
554
  },
497
555
  [
@@ -499,9 +557,9 @@ const Wt = (e) => {
499
557
  ]
500
558
  ), y = ue(
501
559
  (h) => {
502
- r((d) => {
503
- const g = e[h]?.length || 0, p = d[h] ?? -1, w = Math.min(g - 1, p + 1);
504
- return w !== p ? { ...d, [h]: w } : d;
560
+ r((u) => {
561
+ const g = e[h]?.length || 0, p = u[h] ?? -1, x = Math.min(g - 1, p + 1);
562
+ return x !== p ? { ...u, [h]: x } : u;
505
563
  });
506
564
  },
507
565
  [
@@ -514,11 +572,11 @@ const Wt = (e) => {
514
572
  resetAllHistory: () => n({}),
515
573
  addUndoEntry: o,
516
574
  removeUndoHistoryForDashboard: s,
517
- undo: u,
575
+ undo: d,
518
576
  redo: y,
519
577
  getUndoStatus: (h) => {
520
- const d = t[h] ?? -1, g = e[h]?.length || 0, p = d <= 0, w = d >= g - 1;
521
- return { isUndoDisabled: p, isRedoDisabled: w };
578
+ const u = t[h] ?? -1, g = e[h]?.length || 0, p = u <= 0, x = u >= g - 1;
579
+ return { isUndoDisabled: p, isRedoDisabled: x };
522
580
  },
523
581
  undoHistory: e,
524
582
  historyIndex: t
@@ -546,15 +604,15 @@ function K({
546
604
  }
547
605
  );
548
606
  }
549
- function $n({ className: e }) {
550
- return /* @__PURE__ */ I(K, { className: `lucide lucide-circle-plus-icon lucide-circle-plus ${e}`, children: [
607
+ function Rn({ className: e }) {
608
+ return /* @__PURE__ */ W(K, { className: `lucide lucide-circle-plus-icon lucide-circle-plus ${e}`, children: [
551
609
  /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "10" }),
552
610
  /* @__PURE__ */ a("path", { d: "M8 12h8" }),
553
611
  /* @__PURE__ */ a("path", { d: "M12 8v8" })
554
612
  ] });
555
613
  }
556
- function In({ className: e }) {
557
- return /* @__PURE__ */ I(K, { className: `lucide lucide-trash2-icon lucide-trash-2 ${e}`, children: [
614
+ function kn({ className: e }) {
615
+ return /* @__PURE__ */ W(K, { className: `lucide lucide-trash2-icon lucide-trash-2 ${e}`, children: [
558
616
  /* @__PURE__ */ a("path", { d: "M10 11v6" }),
559
617
  /* @__PURE__ */ a("path", { d: "M14 11v6" }),
560
618
  /* @__PURE__ */ a("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }),
@@ -562,14 +620,14 @@ function In({ className: e }) {
562
620
  /* @__PURE__ */ a("path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
563
621
  ] });
564
622
  }
565
- function Wn({ className: e }) {
566
- return /* @__PURE__ */ I(K, { className: `lucide lucide-square-pen-icon lucide-square-pen ${e}`, children: [
623
+ function jn({ className: e }) {
624
+ return /* @__PURE__ */ W(K, { className: `lucide lucide-square-pen-icon lucide-square-pen ${e}`, children: [
567
625
  /* @__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" }),
568
626
  /* @__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" })
569
627
  ] });
570
628
  }
571
- function On({ className: e }) {
572
- return /* @__PURE__ */ I(K, { className: `lucide lucide-grid3x3-icon lucide-grid-3x3 ${e}`, children: [
629
+ function An({ className: e }) {
630
+ return /* @__PURE__ */ W(K, { className: `lucide lucide-grid3x3-icon lucide-grid-3x3 ${e}`, children: [
573
631
  /* @__PURE__ */ a("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
574
632
  /* @__PURE__ */ a("path", { d: "M3 9h18" }),
575
633
  /* @__PURE__ */ a("path", { d: "M3 15h18" }),
@@ -577,15 +635,15 @@ function On({ className: e }) {
577
635
  /* @__PURE__ */ a("path", { d: "M15 3v18" })
578
636
  ] });
579
637
  }
580
- function Rn({ className: e }) {
581
- return /* @__PURE__ */ I(K, { className: `lucide lucide-monitor-icon lucide-monitor ${e}`, children: [
638
+ function Fn({ className: e }) {
639
+ return /* @__PURE__ */ W(K, { className: `lucide lucide-monitor-icon lucide-monitor ${e}`, children: [
582
640
  /* @__PURE__ */ a("rect", { width: "20", height: "14", x: "2", y: "3", rx: "2" }),
583
641
  /* @__PURE__ */ a("line", { x1: "8", x2: "16", y1: "21", y2: "21" }),
584
642
  /* @__PURE__ */ a("line", { x1: "12", x2: "12", y1: "17", y2: "21" })
585
643
  ] });
586
644
  }
587
- function kn({ className: e }) {
588
- return /* @__PURE__ */ I(
645
+ function Ln({ className: e }) {
646
+ return /* @__PURE__ */ W(
589
647
  K,
590
648
  {
591
649
  className: `lucide lucide-monitor-smartphone-icon lucide-monitor-smartphone ${e}`,
@@ -599,7 +657,7 @@ function kn({ className: e }) {
599
657
  );
600
658
  }
601
659
  function dt({ className: e }) {
602
- return /* @__PURE__ */ I(
660
+ return /* @__PURE__ */ W(
603
661
  K,
604
662
  {
605
663
  className: `lucide lucide-circle-arrow-left-icon lucide-circle-arrow-left ${e}`,
@@ -612,7 +670,7 @@ function dt({ className: e }) {
612
670
  );
613
671
  }
614
672
  function ut({ className: e }) {
615
- return /* @__PURE__ */ I(
673
+ return /* @__PURE__ */ W(
616
674
  K,
617
675
  {
618
676
  className: `lucide lucide-circle-arrow-right-icon lucide-circle-arrow-right ${e}`,
@@ -624,14 +682,14 @@ function ut({ className: e }) {
624
682
  }
625
683
  );
626
684
  }
627
- function qt({ className: e }) {
628
- return /* @__PURE__ */ I(K, { className: `lucide lucide-settings-icon lucide-settings ${e}`, children: [
685
+ function zt({ className: e }) {
686
+ return /* @__PURE__ */ W(K, { className: `lucide lucide-settings-icon lucide-settings ${e}`, children: [
629
687
  /* @__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" }),
630
688
  /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "3" })
631
689
  ] });
632
690
  }
633
- function jn({ className: e }) {
634
- return /* @__PURE__ */ I(
691
+ function Un({ className: e }) {
692
+ return /* @__PURE__ */ W(
635
693
  K,
636
694
  {
637
695
  className: `lucide lucide-tablet-smartphone-icon lucide-tablet-smartphone ${e}`,
@@ -644,57 +702,57 @@ function jn({ className: e }) {
644
702
  );
645
703
  }
646
704
  function ft({ className: e }) {
647
- return /* @__PURE__ */ I(K, { className: `lucide lucide-circle-x-icon lucide-circle-x ${e}`, children: [
705
+ return /* @__PURE__ */ W(K, { className: `lucide lucide-circle-x-icon lucide-circle-x ${e}`, children: [
648
706
  /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "10" }),
649
707
  /* @__PURE__ */ a("path", { d: "m15 9-6 6" }),
650
708
  /* @__PURE__ */ a("path", { d: "m9 9 6 6" })
651
709
  ] });
652
710
  }
653
- function An({ className: e }) {
654
- return /* @__PURE__ */ I(K, { className: `lucide lucide-zoom-in-icon lucide-zoom-in ${e}`, children: [
711
+ function Vn({ className: e }) {
712
+ return /* @__PURE__ */ W(K, { className: `lucide lucide-zoom-in-icon lucide-zoom-in ${e}`, children: [
655
713
  /* @__PURE__ */ a("circle", { cx: "11", cy: "11", r: "8" }),
656
714
  /* @__PURE__ */ a("line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65" }),
657
715
  /* @__PURE__ */ a("line", { x1: "11", x2: "11", y1: "8", y2: "14" }),
658
716
  /* @__PURE__ */ a("line", { x1: "8", x2: "14", y1: "11", y2: "11" })
659
717
  ] });
660
718
  }
661
- function Ln({ className: e }) {
662
- return /* @__PURE__ */ I(K, { className: `lucide lucide-zoom-out-icon lucide-zoom-out ${e}`, children: [
719
+ function Yn({ className: e }) {
720
+ return /* @__PURE__ */ W(K, { className: `lucide lucide-zoom-out-icon lucide-zoom-out ${e}`, children: [
663
721
  /* @__PURE__ */ a("circle", { cx: "11", cy: "11", r: "8" }),
664
722
  /* @__PURE__ */ a("line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65" }),
665
723
  /* @__PURE__ */ a("line", { x1: "8", x2: "14", y1: "11", y2: "11" })
666
724
  ] });
667
725
  }
668
- function zt({ className: e }) {
669
- return /* @__PURE__ */ I(K, { className: `lucide lucide-timer-reset-icon lucide-timer-reset ${e}`, children: [
726
+ function Bt({ className: e }) {
727
+ return /* @__PURE__ */ W(K, { className: `lucide lucide-timer-reset-icon lucide-timer-reset ${e}`, children: [
670
728
  /* @__PURE__ */ a("path", { d: "M10 2h4" }),
671
729
  /* @__PURE__ */ a("path", { d: "M12 14v-4" }),
672
730
  /* @__PURE__ */ a("path", { d: "M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6" }),
673
731
  /* @__PURE__ */ a("path", { d: "M9 17H4v5" })
674
732
  ] });
675
733
  }
676
- function Bt({ className: e }) {
677
- return /* @__PURE__ */ I(K, { className: `lucide lucide-undo-icon lucide-undo ${e}`, children: [
734
+ function Kt({ className: e }) {
735
+ return /* @__PURE__ */ W(K, { className: `lucide lucide-undo-icon lucide-undo ${e}`, children: [
678
736
  /* @__PURE__ */ a("path", { d: "M3 7v6h6" }),
679
737
  /* @__PURE__ */ a("path", { d: "M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13" })
680
738
  ] });
681
739
  }
682
- function Kt({ className: e }) {
683
- return /* @__PURE__ */ I(K, { className: `lucide lucide-redo-icon lucide-redo ${e}`, children: [
740
+ function Ht({ className: e }) {
741
+ return /* @__PURE__ */ W(K, { className: `lucide lucide-redo-icon lucide-redo ${e}`, children: [
684
742
  /* @__PURE__ */ a("path", { d: "M21 7v6h-6" }),
685
743
  /* @__PURE__ */ a("path", { d: "M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7" })
686
744
  ] });
687
745
  }
688
- function Ht({ className: e }) {
689
- return /* @__PURE__ */ I(K, { className: `lucide lucide-hand-icon lucide-hand ${e}`, children: [
746
+ function Xt({ className: e }) {
747
+ return /* @__PURE__ */ W(K, { className: `lucide lucide-hand-icon lucide-hand ${e}`, children: [
690
748
  /* @__PURE__ */ a("path", { d: "M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2" }),
691
749
  /* @__PURE__ */ a("path", { d: "M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2" }),
692
750
  /* @__PURE__ */ a("path", { d: "M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8" }),
693
751
  /* @__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" })
694
752
  ] });
695
753
  }
696
- function Xt({ className: e }) {
697
- return /* @__PURE__ */ I(K, { className: `lucide lucide-hand-grab-icon lucide-hand-grab ${e}`, children: [
754
+ function Gt({ className: e }) {
755
+ return /* @__PURE__ */ W(K, { className: `lucide lucide-hand-grab-icon lucide-hand-grab ${e}`, children: [
698
756
  /* @__PURE__ */ a("path", { d: "M18 11.5V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4" }),
699
757
  /* @__PURE__ */ a("path", { d: "M14 10V8a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2" }),
700
758
  /* @__PURE__ */ a("path", { d: "M10 9.9V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v5" }),
@@ -702,23 +760,23 @@ function Xt({ className: e }) {
702
760
  /* @__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" })
703
761
  ] });
704
762
  }
705
- function Gt({ className: e }) {
706
- return /* @__PURE__ */ I(K, { className: `lucide lucide-crosshair-icon lucide-crosshair ${e}`, children: [
763
+ function Zt({ className: e }) {
764
+ return /* @__PURE__ */ W(K, { className: `lucide lucide-crosshair-icon lucide-crosshair ${e}`, children: [
707
765
  /* @__PURE__ */ a("line", { x1: "22", x2: "18", y1: "12", y2: "12" }),
708
766
  /* @__PURE__ */ a("line", { x1: "6", x2: "2", y1: "12", y2: "12" }),
709
767
  /* @__PURE__ */ a("line", { x1: "12", x2: "12", y1: "6", y2: "2" }),
710
768
  /* @__PURE__ */ a("line", { x1: "12", x2: "12", y1: "22", y2: "18" })
711
769
  ] });
712
770
  }
713
- function Fn({ className: e }) {
714
- return /* @__PURE__ */ I(K, { className: `lucide lucide-target-icon lucide-target ${e}`, children: [
771
+ function qn({ className: e }) {
772
+ return /* @__PURE__ */ W(K, { className: `lucide lucide-target-icon lucide-target ${e}`, children: [
715
773
  /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "10" }),
716
774
  /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "6" }),
717
775
  /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "2" })
718
776
  ] });
719
777
  }
720
- function Zt({ className: e }) {
721
- return /* @__PURE__ */ I(
778
+ function Jt({ className: e }) {
779
+ return /* @__PURE__ */ W(
722
780
  K,
723
781
  {
724
782
  className: `lucide lucide-file-question-mark-icon lucide-file-question-mark ${e}`,
@@ -740,7 +798,7 @@ const Z = (e, ...n) => [
740
798
  Array.isArray(e) ? e.forEach((i) => t.classList.add(i)) : e.split(" ").forEach((i) => t.classList.add(i)), t.style.display = "none", document.body.appendChild(t);
741
799
  const r = window.getComputedStyle(t)[n];
742
800
  return document.body.removeChild(t), r;
743
- }, Un = {
801
+ }, zn = {
744
802
  primary: re("text-primary", "color"),
745
803
  secondary: re("text-secondary", "color"),
746
804
  success: re("text-success", "color"),
@@ -750,7 +808,7 @@ const Z = (e, ...n) => [
750
808
  disabled: re("text-disabled", "color"),
751
809
  neutral: re("text-neutral", "color"),
752
810
  body: re("text-body", "color")
753
- }, Vn = {
811
+ }, Bn = {
754
812
  getCssVariableValue: (e) => {
755
813
  const n = document.documentElement;
756
814
  return getComputedStyle(n).getPropertyValue(e).trim() || null;
@@ -776,14 +834,14 @@ const Z = (e, ...n) => [
776
834
  onKeyDown: o,
777
835
  placeholder: s = ""
778
836
  }) => {
779
- const u = it(() => t === "small" ? "py-1.5 px-3 text-sm" : "py-2.5 px-4 text-base", [t]), y = Z("flex flex-col mb-4", n || ""), h = `${Z(`
837
+ const d = at(() => t === "small" ? "py-1.5 px-3 text-sm" : "py-2.5 px-4 text-base", [t]), y = Z("flex flex-col mb-4", n || ""), h = `${Z(`
780
838
  block w-full rounded-md px-3 py-1.5 text-base
781
839
  bg-formfield content-formfield
782
840
  outline-1 -outline-offset-1 outline-primary
783
841
  placeholder:text-disabled
784
842
  focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-200 sm:text-sm/6
785
- `)} ${u}`;
786
- return /* @__PURE__ */ I("div", { className: y, children: [
843
+ `)} ${d}`;
844
+ return /* @__PURE__ */ W("div", { className: y, children: [
787
845
  /* @__PURE__ */ a("label", { htmlFor: e, className: "block text-sm/6 font-medium mb-1.5", children: e }),
788
846
  /* @__PURE__ */ a(
789
847
  "input",
@@ -792,14 +850,14 @@ const Z = (e, ...n) => [
792
850
  type: "text",
793
851
  value: r,
794
852
  onChange: i,
795
- onKeyDown: (d) => o && o(d),
853
+ onKeyDown: (u) => o && o(u),
796
854
  placeholder: s,
797
855
  className: h,
798
856
  "aria-label": e
799
857
  }
800
858
  )
801
859
  ] });
802
- }, Se = /* @__PURE__ */ new Map([
860
+ }, Ce = /* @__PURE__ */ new Map([
803
861
  [
804
862
  "normal",
805
863
  "group bg-[category] content-[category] hover:bg-[category] group-hover:bg-[category] focus:outline-[category] focus:outline-offset-[category]"
@@ -817,20 +875,20 @@ function J(e) {
817
875
  className: i,
818
876
  buttonType: o,
819
877
  category: s,
820
- px: u,
878
+ px: d,
821
879
  py: y,
822
880
  children: m,
823
881
  ...h
824
- } = e, d = () => {
825
- const p = e.isIconButton || !1, w = e.category || "primary", b = e.buttonType || "normal", v = e.disabled || !1, S = e.className || "", T = e.font || "semibold", C = Number((e.border || 0) > 0 ? e.border : 0);
882
+ } = e, u = () => {
883
+ const p = e.isIconButton || !1, x = e.category || "primary", b = e.buttonType || "normal", v = e.disabled || !1, C = e.className || "", T = e.font || "semibold", S = Number((e.border || 0) > 0 ? e.border : 0);
826
884
  let D = (e.borderColor || "").trim();
827
885
  D = D.length > 0 ? D : "";
828
- 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";
886
+ 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";
829
887
  if (p)
830
888
  return Z(
831
889
  "flex flex-row items-center",
832
- v ? "text-disabled" : `text-${w} hover:brightness-110 cursor-pointer`,
833
- S || ""
890
+ v ? "text-disabled" : `text-${x} hover:brightness-110 cursor-pointer`,
891
+ C || ""
834
892
  );
835
893
  const $ = [
836
894
  "relative cursor-pointer",
@@ -844,34 +902,34 @@ function J(e) {
844
902
  else {
845
903
  $.push("cursor-pointer");
846
904
  let O = "";
847
- Se.has(b) ? O = `${Se.get(b)}` : O = `${Se.get("normal")}`, C < 1 && (O = O.replace("border-[category]", ""));
848
- const E = O.replace(/\[category\]/g, w).trim();
905
+ Ce.has(b) ? O = `${Ce.get(b)}` : O = `${Ce.get("normal")}`, S < 1 && (O = O.replace("border-[category]", ""));
906
+ const E = O.replace(/\[category\]/g, x).trim();
849
907
  $.push(E);
850
908
  }
851
- return C > 0 ? ($.push(`border-[${C}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();
909
+ 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();
852
910
  }, g = () => {
853
- const p = e.px || 0.7, w = e.py || 0.25;
911
+ const p = e.px || 0.7, x = e.py || 0.25;
854
912
  return {
855
- padding: r ? 0 : `${w}rem ${p}rem `
913
+ padding: r ? 0 : `${x}rem ${p}rem `
856
914
  };
857
915
  };
858
- return /* @__PURE__ */ a("button", { type: "button", disabled: t, className: d(), style: g(), ...h, children: m });
916
+ return /* @__PURE__ */ a("button", { type: "button", disabled: t, className: u(), style: g(), ...h, children: m });
859
917
  }
860
- const Jt = (e) => e.direction === "row" ? Z("flex flex-row items-center gap-2", e.classNames || "") : Z("flex flex-col gap-2 w-full", e.classNames || "");
861
- function Qt(e) {
862
- const { children: n, testId: t, classNames: r, direction: i, ...o } = e, s = Jt(e);
918
+ const Qt = (e) => e.direction === "row" ? Z("flex flex-row items-center gap-2", e.classNames || "") : Z("flex flex-col gap-2 w-full", e.classNames || "");
919
+ function en(e) {
920
+ const { children: n, testId: t, classNames: r, direction: i, ...o } = e, s = Qt(e);
863
921
  return /* @__PURE__ */ a("div", { "data-testid": t || "not-set", className: s, ...o, children: n });
864
922
  }
865
- const Yn = le(
923
+ const Kn = ce(
866
924
  (e, n) => {
867
925
  const { classNames: t, innerClass: r, ...i } = e, o = Z(t || "", "w-full"), s = Z(
868
926
  `w-full flex overflow-hidden justify-between items-center gap-0
869
927
  rounded-md border`,
870
928
  r || ""
871
929
  );
872
- return /* @__PURE__ */ a(Qt, { direction: "row", classNames: o, ...i, children: /* @__PURE__ */ a("div", { className: s, children: e.children }) });
930
+ return /* @__PURE__ */ a(en, { direction: "row", classNames: o, ...i, children: /* @__PURE__ */ a("div", { className: s, children: e.children }) });
873
931
  }
874
- ), qn = le((e, n) => /* @__PURE__ */ a(
932
+ ), Hn = ce((e, n) => /* @__PURE__ */ a(
875
933
  "div",
876
934
  {
877
935
  "data-testid": e.testId || "not-set",
@@ -882,7 +940,7 @@ const Yn = le(
882
940
  },
883
941
  children: e.children
884
942
  }
885
- )), zn = le(
943
+ )), Xn = ce(
886
944
  (e, n) => /* @__PURE__ */ a(
887
945
  "div",
888
946
  {
@@ -891,7 +949,7 @@ const Yn = le(
891
949
  children: e.children
892
950
  }
893
951
  )
894
- ), Bn = le((e, n) => /* @__PURE__ */ a(
952
+ ), Gn = ce((e, n) => /* @__PURE__ */ a(
895
953
  "div",
896
954
  {
897
955
  "data-testid": e.testId || "not-set",
@@ -903,36 +961,36 @@ const Yn = le(
903
961
  children: e.children
904
962
  }
905
963
  ));
906
- function en(e) {
964
+ function tn(e) {
907
965
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
908
966
  }
909
- var fe = { exports: {} }, Ce = {}, me = { exports: {} }, pe = { exports: {} }, V = {};
910
- var Fe;
911
- function tn() {
912
- if (Fe) return V;
913
- Fe = 1;
914
- 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, u = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, y = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, h = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, d = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, g = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, p = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, w = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, b = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, v = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, S = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, T = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
915
- function C(c) {
916
- if (typeof c == "object" && c !== null) {
917
- var N = c.$$typeof;
967
+ var fe = { exports: {} }, Se = {}, me = { exports: {} }, pe = { exports: {} }, V = {};
968
+ var Ue;
969
+ function nn() {
970
+ if (Ue) return V;
971
+ Ue = 1;
972
+ 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, y = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m = 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, g = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, p = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, x = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, b = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, v = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, T = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
973
+ function S(l) {
974
+ if (typeof l == "object" && l !== null) {
975
+ var N = l.$$typeof;
918
976
  switch (N) {
919
977
  case n:
920
- switch (c = c.type, c) {
978
+ switch (l = l.type, l) {
921
979
  case y:
922
980
  case m:
923
981
  case r:
924
982
  case o:
925
983
  case i:
926
- case d:
927
- return c;
984
+ case u:
985
+ return l;
928
986
  default:
929
- switch (c = c && c.$$typeof, c) {
930
- case u:
987
+ switch (l = l && l.$$typeof, l) {
988
+ case d:
931
989
  case h:
932
- case w:
990
+ case x:
933
991
  case p:
934
992
  case s:
935
- return c;
993
+ return l;
936
994
  default:
937
995
  return N;
938
996
  }
@@ -942,45 +1000,45 @@ function tn() {
942
1000
  }
943
1001
  }
944
1002
  }
945
- function D(c) {
946
- return C(c) === m;
947
- }
948
- return V.AsyncMode = y, V.ConcurrentMode = m, V.ContextConsumer = u, V.ContextProvider = s, V.Element = n, V.ForwardRef = h, V.Fragment = r, V.Lazy = w, V.Memo = p, V.Portal = t, V.Profiler = o, V.StrictMode = i, V.Suspense = d, V.isAsyncMode = function(c) {
949
- return D(c) || C(c) === y;
950
- }, V.isConcurrentMode = D, V.isContextConsumer = function(c) {
951
- return C(c) === u;
952
- }, V.isContextProvider = function(c) {
953
- return C(c) === s;
954
- }, V.isElement = function(c) {
955
- return typeof c == "object" && c !== null && c.$$typeof === n;
956
- }, V.isForwardRef = function(c) {
957
- return C(c) === h;
958
- }, V.isFragment = function(c) {
959
- return C(c) === r;
960
- }, V.isLazy = function(c) {
961
- return C(c) === w;
962
- }, V.isMemo = function(c) {
963
- return C(c) === p;
964
- }, V.isPortal = function(c) {
965
- return C(c) === t;
966
- }, V.isProfiler = function(c) {
967
- return C(c) === o;
968
- }, V.isStrictMode = function(c) {
969
- return C(c) === i;
970
- }, V.isSuspense = function(c) {
971
- return C(c) === d;
972
- }, V.isValidElementType = function(c) {
973
- return typeof c == "string" || typeof c == "function" || c === r || c === m || c === o || c === i || c === d || c === g || typeof c == "object" && c !== null && (c.$$typeof === w || c.$$typeof === p || c.$$typeof === s || c.$$typeof === u || c.$$typeof === h || c.$$typeof === v || c.$$typeof === S || c.$$typeof === T || c.$$typeof === b);
974
- }, V.typeOf = C, V;
1003
+ function D(l) {
1004
+ return S(l) === m;
1005
+ }
1006
+ return V.AsyncMode = y, V.ConcurrentMode = m, V.ContextConsumer = d, V.ContextProvider = s, V.Element = n, V.ForwardRef = h, V.Fragment = r, V.Lazy = x, V.Memo = p, V.Portal = t, V.Profiler = o, V.StrictMode = i, V.Suspense = u, V.isAsyncMode = function(l) {
1007
+ return D(l) || S(l) === y;
1008
+ }, V.isConcurrentMode = D, V.isContextConsumer = function(l) {
1009
+ return S(l) === d;
1010
+ }, V.isContextProvider = function(l) {
1011
+ return S(l) === s;
1012
+ }, V.isElement = function(l) {
1013
+ return typeof l == "object" && l !== null && l.$$typeof === n;
1014
+ }, V.isForwardRef = function(l) {
1015
+ return S(l) === h;
1016
+ }, V.isFragment = function(l) {
1017
+ return S(l) === r;
1018
+ }, V.isLazy = function(l) {
1019
+ return S(l) === x;
1020
+ }, V.isMemo = function(l) {
1021
+ return S(l) === p;
1022
+ }, V.isPortal = function(l) {
1023
+ return S(l) === t;
1024
+ }, V.isProfiler = function(l) {
1025
+ return S(l) === o;
1026
+ }, V.isStrictMode = function(l) {
1027
+ return S(l) === i;
1028
+ }, V.isSuspense = function(l) {
1029
+ return S(l) === u;
1030
+ }, V.isValidElementType = function(l) {
1031
+ return typeof l == "string" || typeof l == "function" || l === r || l === m || l === o || l === i || l === u || l === g || typeof l == "object" && l !== null && (l.$$typeof === x || l.$$typeof === p || l.$$typeof === s || l.$$typeof === d || l.$$typeof === h || l.$$typeof === v || l.$$typeof === C || l.$$typeof === T || l.$$typeof === b);
1032
+ }, V.typeOf = S, V;
975
1033
  }
976
1034
  var Y = {};
977
- var Ue;
978
- function nn() {
979
- return Ue || (Ue = 1, process.env.NODE_ENV !== "production" && (function() {
980
- 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, u = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, y = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, h = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, d = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, g = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, p = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, w = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, b = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, v = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, S = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, T = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
981
- function C(_) {
1035
+ var Ve;
1036
+ function rn() {
1037
+ return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && (function() {
1038
+ 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, y = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m = 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, g = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, p = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, x = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, b = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, v = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, T = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
1039
+ function S(_) {
982
1040
  return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
983
- _ === r || _ === m || _ === o || _ === i || _ === d || _ === g || typeof _ == "object" && _ !== null && (_.$$typeof === w || _.$$typeof === p || _.$$typeof === s || _.$$typeof === u || _.$$typeof === h || _.$$typeof === v || _.$$typeof === S || _.$$typeof === T || _.$$typeof === b);
1041
+ _ === r || _ === m || _ === o || _ === i || _ === u || _ === g || typeof _ == "object" && _ !== null && (_.$$typeof === x || _.$$typeof === p || _.$$typeof === s || _.$$typeof === d || _.$$typeof === h || _.$$typeof === v || _.$$typeof === C || _.$$typeof === T || _.$$typeof === b);
984
1042
  }
985
1043
  function D(_) {
986
1044
  if (typeof _ == "object" && _ !== null) {
@@ -994,17 +1052,17 @@ function nn() {
994
1052
  case r:
995
1053
  case o:
996
1054
  case i:
997
- case d:
1055
+ case u:
998
1056
  return ge;
999
1057
  default:
1000
- var ke = ge && ge.$$typeof;
1001
- switch (ke) {
1002
- case u:
1058
+ var je = ge && ge.$$typeof;
1059
+ switch (je) {
1060
+ case d:
1003
1061
  case h:
1004
- case w:
1062
+ case x:
1005
1063
  case p:
1006
1064
  case s:
1007
- return ke;
1065
+ return je;
1008
1066
  default:
1009
1067
  return te;
1010
1068
  }
@@ -1014,15 +1072,15 @@ function nn() {
1014
1072
  }
1015
1073
  }
1016
1074
  }
1017
- var c = y, N = m, l = u, f = s, P = n, $ = h, O = r, E = w, z = p, X = t, Q = o, H = i, ee = d, ae = !1;
1075
+ var l = y, N = m, c = d, f = s, P = n, $ = h, O = r, E = x, z = p, X = t, Q = o, H = i, ee = u, ae = !1;
1018
1076
  function de(_) {
1019
- 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(_) === y;
1077
+ 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(_) === y;
1020
1078
  }
1021
- function x(_) {
1079
+ function w(_) {
1022
1080
  return D(_) === m;
1023
1081
  }
1024
1082
  function M(_) {
1025
- return D(_) === u;
1083
+ return D(_) === d;
1026
1084
  }
1027
1085
  function A(_) {
1028
1086
  return D(_) === s;
@@ -1030,19 +1088,19 @@ function nn() {
1030
1088
  function k(_) {
1031
1089
  return typeof _ == "object" && _ !== null && _.$$typeof === n;
1032
1090
  }
1033
- function W(_) {
1091
+ function I(_) {
1034
1092
  return D(_) === h;
1035
1093
  }
1036
- function L(_) {
1094
+ function F(_) {
1037
1095
  return D(_) === r;
1038
1096
  }
1039
1097
  function R(_) {
1040
- return D(_) === w;
1098
+ return D(_) === x;
1041
1099
  }
1042
1100
  function j(_) {
1043
1101
  return D(_) === p;
1044
1102
  }
1045
- function F(_) {
1103
+ function L(_) {
1046
1104
  return D(_) === t;
1047
1105
  }
1048
1106
  function q(_) {
@@ -1052,19 +1110,19 @@ function nn() {
1052
1110
  return D(_) === i;
1053
1111
  }
1054
1112
  function G(_) {
1055
- return D(_) === d;
1113
+ return D(_) === u;
1056
1114
  }
1057
- 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 = x, Y.isContextConsumer = M, Y.isContextProvider = A, Y.isElement = k, Y.isForwardRef = W, Y.isFragment = L, Y.isLazy = R, Y.isMemo = j, Y.isPortal = F, Y.isProfiler = q, Y.isStrictMode = U, Y.isSuspense = G, Y.isValidElementType = C, Y.typeOf = D;
1115
+ 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 = 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;
1058
1116
  })()), Y;
1059
1117
  }
1060
- var Ve;
1118
+ var Ye;
1061
1119
  function mt() {
1062
- return Ve || (Ve = 1, process.env.NODE_ENV === "production" ? pe.exports = tn() : pe.exports = nn()), pe.exports;
1120
+ return Ye || (Ye = 1, process.env.NODE_ENV === "production" ? pe.exports = nn() : pe.exports = rn()), pe.exports;
1063
1121
  }
1064
- var De, Ye;
1065
- function rn() {
1066
- if (Ye) return De;
1067
- Ye = 1;
1122
+ var De, qe;
1123
+ function on() {
1124
+ if (qe) return De;
1125
+ qe = 1;
1068
1126
  var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
1069
1127
  function r(o) {
1070
1128
  if (o == null)
@@ -1078,8 +1136,8 @@ function rn() {
1078
1136
  var o = new String("abc");
1079
1137
  if (o[5] = "de", Object.getOwnPropertyNames(o)[0] === "5")
1080
1138
  return !1;
1081
- for (var s = {}, u = 0; u < 10; u++)
1082
- s["_" + String.fromCharCode(u)] = u;
1139
+ for (var s = {}, d = 0; d < 10; d++)
1140
+ s["_" + String.fromCharCode(d)] = d;
1083
1141
  var y = Object.getOwnPropertyNames(s).map(function(h) {
1084
1142
  return s[h];
1085
1143
  });
@@ -1094,38 +1152,38 @@ function rn() {
1094
1152
  }
1095
1153
  }
1096
1154
  return De = i() ? Object.assign : function(o, s) {
1097
- for (var u, y = r(o), m, h = 1; h < arguments.length; h++) {
1098
- u = Object(arguments[h]);
1099
- for (var d in u)
1100
- n.call(u, d) && (y[d] = u[d]);
1155
+ for (var d, y = r(o), m, h = 1; h < arguments.length; h++) {
1156
+ d = Object(arguments[h]);
1157
+ for (var u in d)
1158
+ n.call(d, u) && (y[u] = d[u]);
1101
1159
  if (e) {
1102
- m = e(u);
1160
+ m = e(d);
1103
1161
  for (var g = 0; g < m.length; g++)
1104
- t.call(u, m[g]) && (y[m[g]] = u[m[g]]);
1162
+ t.call(d, m[g]) && (y[m[g]] = d[m[g]]);
1105
1163
  }
1106
1164
  }
1107
1165
  return y;
1108
1166
  }, De;
1109
1167
  }
1110
- var Te, qe;
1111
- function We() {
1112
- if (qe) return Te;
1113
- qe = 1;
1168
+ var Te, ze;
1169
+ function Oe() {
1170
+ if (ze) return Te;
1171
+ ze = 1;
1114
1172
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
1115
1173
  return Te = e, Te;
1116
1174
  }
1117
- var Ne, ze;
1175
+ var Ne, Be;
1118
1176
  function pt() {
1119
- return ze || (ze = 1, Ne = Function.call.bind(Object.prototype.hasOwnProperty)), Ne;
1177
+ return Be || (Be = 1, Ne = Function.call.bind(Object.prototype.hasOwnProperty)), Ne;
1120
1178
  }
1121
- var Ee, Be;
1122
- function on() {
1123
- if (Be) return Ee;
1124
- Be = 1;
1179
+ var Ee, Ke;
1180
+ function an() {
1181
+ if (Ke) return Ee;
1182
+ Ke = 1;
1125
1183
  var e = function() {
1126
1184
  };
1127
1185
  if (process.env.NODE_ENV !== "production") {
1128
- var n = /* @__PURE__ */ We(), t = {}, r = /* @__PURE__ */ pt();
1186
+ var n = /* @__PURE__ */ Oe(), t = {}, r = /* @__PURE__ */ pt();
1129
1187
  e = function(o) {
1130
1188
  var s = "Warning: " + o;
1131
1189
  typeof console < "u" && console.error(s);
@@ -1135,29 +1193,29 @@ function on() {
1135
1193
  }
1136
1194
  };
1137
1195
  }
1138
- function i(o, s, u, y, m) {
1196
+ function i(o, s, d, y, m) {
1139
1197
  if (process.env.NODE_ENV !== "production") {
1140
1198
  for (var h in o)
1141
1199
  if (r(o, h)) {
1142
- var d;
1200
+ var u;
1143
1201
  try {
1144
1202
  if (typeof o[h] != "function") {
1145
1203
  var g = Error(
1146
- (y || "React class") + ": " + u + " 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`."
1204
+ (y || "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`."
1147
1205
  );
1148
1206
  throw g.name = "Invariant Violation", g;
1149
1207
  }
1150
- d = o[h](s, h, y, u, null, n);
1151
- } catch (w) {
1152
- d = w;
1208
+ u = o[h](s, h, y, d, null, n);
1209
+ } catch (x) {
1210
+ u = x;
1153
1211
  }
1154
- if (d && !(d instanceof Error) && e(
1155
- (y || "React class") + ": type specification of " + u + " `" + h + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
1156
- ), d instanceof Error && !(d.message in t)) {
1157
- t[d.message] = !0;
1212
+ if (u && !(u instanceof Error) && e(
1213
+ (y || "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)."
1214
+ ), u instanceof Error && !(u.message in t)) {
1215
+ t[u.message] = !0;
1158
1216
  var p = m ? m() : "";
1159
1217
  e(
1160
- "Failed " + u + " type: " + d.message + (p ?? "")
1218
+ "Failed " + d + " type: " + u.message + (p ?? "")
1161
1219
  );
1162
1220
  }
1163
1221
  }
@@ -1167,14 +1225,14 @@ function on() {
1167
1225
  process.env.NODE_ENV !== "production" && (t = {});
1168
1226
  }, Ee = i, Ee;
1169
1227
  }
1170
- var _e, Ke;
1171
- function an() {
1172
- if (Ke) return _e;
1173
- Ke = 1;
1174
- var e = mt(), n = rn(), t = /* @__PURE__ */ We(), r = /* @__PURE__ */ pt(), i = /* @__PURE__ */ on(), o = function() {
1228
+ var _e, He;
1229
+ function sn() {
1230
+ if (He) return _e;
1231
+ He = 1;
1232
+ var e = mt(), n = on(), t = /* @__PURE__ */ Oe(), r = /* @__PURE__ */ pt(), i = /* @__PURE__ */ an(), o = function() {
1175
1233
  };
1176
- process.env.NODE_ENV !== "production" && (o = function(u) {
1177
- var y = "Warning: " + u;
1234
+ process.env.NODE_ENV !== "production" && (o = function(d) {
1235
+ var y = "Warning: " + d;
1178
1236
  typeof console < "u" && console.error(y);
1179
1237
  try {
1180
1238
  throw new Error(y);
@@ -1184,72 +1242,72 @@ function an() {
1184
1242
  function s() {
1185
1243
  return null;
1186
1244
  }
1187
- return _e = function(u, y) {
1245
+ return _e = function(d, y) {
1188
1246
  var m = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
1189
- function d(x) {
1190
- var M = x && (m && x[m] || x[h]);
1247
+ function u(w) {
1248
+ var M = w && (m && w[m] || w[h]);
1191
1249
  if (typeof M == "function")
1192
1250
  return M;
1193
1251
  }
1194
1252
  var g = "<<anonymous>>", p = {
1195
- array: S("array"),
1196
- bigint: S("bigint"),
1197
- bool: S("boolean"),
1198
- func: S("function"),
1199
- number: S("number"),
1200
- object: S("object"),
1201
- string: S("string"),
1202
- symbol: S("symbol"),
1253
+ array: C("array"),
1254
+ bigint: C("bigint"),
1255
+ bool: C("boolean"),
1256
+ func: C("function"),
1257
+ number: C("number"),
1258
+ object: C("object"),
1259
+ string: C("string"),
1260
+ symbol: C("symbol"),
1203
1261
  any: T(),
1204
- arrayOf: C,
1262
+ arrayOf: S,
1205
1263
  element: D(),
1206
- elementType: c(),
1264
+ elementType: l(),
1207
1265
  instanceOf: N,
1208
1266
  node: $(),
1209
1267
  objectOf: f,
1210
- oneOf: l,
1268
+ oneOf: c,
1211
1269
  oneOfType: P,
1212
1270
  shape: E,
1213
1271
  exact: z
1214
1272
  };
1215
- function w(x, M) {
1216
- return x === M ? x !== 0 || 1 / x === 1 / M : x !== x && M !== M;
1273
+ function x(w, M) {
1274
+ return w === M ? w !== 0 || 1 / w === 1 / M : w !== w && M !== M;
1217
1275
  }
1218
- function b(x, M) {
1219
- this.message = x, this.data = M && typeof M == "object" ? M : {}, this.stack = "";
1276
+ function b(w, M) {
1277
+ this.message = w, this.data = M && typeof M == "object" ? M : {}, this.stack = "";
1220
1278
  }
1221
1279
  b.prototype = Error.prototype;
1222
- function v(x) {
1280
+ function v(w) {
1223
1281
  if (process.env.NODE_ENV !== "production")
1224
1282
  var M = {}, A = 0;
1225
- function k(L, R, j, F, q, U, G) {
1226
- if (F = F || g, U = U || j, G !== t) {
1283
+ function k(F, R, j, L, q, U, G) {
1284
+ if (L = L || g, U = U || j, G !== t) {
1227
1285
  if (y) {
1228
1286
  var _ = new Error(
1229
1287
  "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"
1230
1288
  );
1231
1289
  throw _.name = "Invariant Violation", _;
1232
1290
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
1233
- var te = F + ":" + j;
1291
+ var te = L + ":" + j;
1234
1292
  !M[te] && // Avoid spamming the console because they are often not actionable except for lib authors
1235
1293
  A < 3 && (o(
1236
- "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."
1294
+ "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."
1237
1295
  ), M[te] = !0, A++);
1238
1296
  }
1239
1297
  }
1240
- return R[j] == null ? L ? R[j] === null ? new b("The " + q + " `" + U + "` is marked as required " + ("in `" + F + "`, but its value is `null`.")) : new b("The " + q + " `" + U + "` is marked as required in " + ("`" + F + "`, but its value is `undefined`.")) : null : x(R, j, F, q, U);
1298
+ return R[j] == null ? F ? R[j] === null ? new b("The " + q + " `" + U + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new b("The " + q + " `" + U + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : w(R, j, L, q, U);
1241
1299
  }
1242
- var W = k.bind(null, !1);
1243
- return W.isRequired = k.bind(null, !0), W;
1244
- }
1245
- function S(x) {
1246
- function M(A, k, W, L, R, j) {
1247
- var F = A[k], q = H(F);
1248
- if (q !== x) {
1249
- var U = ee(F);
1300
+ var I = k.bind(null, !1);
1301
+ return I.isRequired = k.bind(null, !0), I;
1302
+ }
1303
+ function C(w) {
1304
+ function M(A, k, I, F, R, j) {
1305
+ var L = A[k], q = H(L);
1306
+ if (q !== w) {
1307
+ var U = ee(L);
1250
1308
  return new b(
1251
- "Invalid " + L + " `" + R + "` of type " + ("`" + U + "` supplied to `" + W + "`, expected ") + ("`" + x + "`."),
1252
- { expectedType: x }
1309
+ "Invalid " + F + " `" + R + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected ") + ("`" + w + "`."),
1310
+ { expectedType: w }
1253
1311
  );
1254
1312
  }
1255
1313
  return null;
@@ -1259,17 +1317,17 @@ function an() {
1259
1317
  function T() {
1260
1318
  return v(s);
1261
1319
  }
1262
- function C(x) {
1263
- function M(A, k, W, L, R) {
1264
- if (typeof x != "function")
1265
- return new b("Property `" + R + "` of component `" + W + "` has invalid PropType notation inside arrayOf.");
1320
+ function S(w) {
1321
+ function M(A, k, I, F, R) {
1322
+ if (typeof w != "function")
1323
+ return new b("Property `" + R + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
1266
1324
  var j = A[k];
1267
1325
  if (!Array.isArray(j)) {
1268
- var F = H(j);
1269
- return new b("Invalid " + L + " `" + R + "` of type " + ("`" + F + "` supplied to `" + W + "`, expected an array."));
1326
+ var L = H(j);
1327
+ return new b("Invalid " + F + " `" + R + "` of type " + ("`" + L + "` supplied to `" + I + "`, expected an array."));
1270
1328
  }
1271
1329
  for (var q = 0; q < j.length; q++) {
1272
- var U = x(j, q, W, L, R + "[" + q + "]", t);
1330
+ var U = w(j, q, I, F, R + "[" + q + "]", t);
1273
1331
  if (U instanceof Error)
1274
1332
  return U;
1275
1333
  }
@@ -1278,64 +1336,64 @@ function an() {
1278
1336
  return v(M);
1279
1337
  }
1280
1338
  function D() {
1281
- function x(M, A, k, W, L) {
1339
+ function w(M, A, k, I, F) {
1282
1340
  var R = M[A];
1283
- if (!u(R)) {
1341
+ if (!d(R)) {
1284
1342
  var j = H(R);
1285
- return new b("Invalid " + W + " `" + L + "` of type " + ("`" + j + "` supplied to `" + k + "`, expected a single ReactElement."));
1343
+ return new b("Invalid " + I + " `" + F + "` of type " + ("`" + j + "` supplied to `" + k + "`, expected a single ReactElement."));
1286
1344
  }
1287
1345
  return null;
1288
1346
  }
1289
- return v(x);
1347
+ return v(w);
1290
1348
  }
1291
- function c() {
1292
- function x(M, A, k, W, L) {
1349
+ function l() {
1350
+ function w(M, A, k, I, F) {
1293
1351
  var R = M[A];
1294
1352
  if (!e.isValidElementType(R)) {
1295
1353
  var j = H(R);
1296
- return new b("Invalid " + W + " `" + L + "` of type " + ("`" + j + "` supplied to `" + k + "`, expected a single ReactElement type."));
1354
+ return new b("Invalid " + I + " `" + F + "` of type " + ("`" + j + "` supplied to `" + k + "`, expected a single ReactElement type."));
1297
1355
  }
1298
1356
  return null;
1299
1357
  }
1300
- return v(x);
1358
+ return v(w);
1301
1359
  }
1302
- function N(x) {
1303
- function M(A, k, W, L, R) {
1304
- if (!(A[k] instanceof x)) {
1305
- var j = x.name || g, F = de(A[k]);
1306
- return new b("Invalid " + L + " `" + R + "` of type " + ("`" + F + "` supplied to `" + W + "`, expected ") + ("instance of `" + j + "`."));
1360
+ function N(w) {
1361
+ function M(A, k, I, F, R) {
1362
+ if (!(A[k] instanceof w)) {
1363
+ var j = w.name || g, L = de(A[k]);
1364
+ return new b("Invalid " + F + " `" + R + "` of type " + ("`" + L + "` supplied to `" + I + "`, expected ") + ("instance of `" + j + "`."));
1307
1365
  }
1308
1366
  return null;
1309
1367
  }
1310
1368
  return v(M);
1311
1369
  }
1312
- function l(x) {
1313
- if (!Array.isArray(x))
1370
+ function c(w) {
1371
+ if (!Array.isArray(w))
1314
1372
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
1315
1373
  "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])."
1316
1374
  ) : o("Invalid argument supplied to oneOf, expected an array.")), s;
1317
- function M(A, k, W, L, R) {
1318
- for (var j = A[k], F = 0; F < x.length; F++)
1319
- if (w(j, x[F]))
1375
+ function M(A, k, I, F, R) {
1376
+ for (var j = A[k], L = 0; L < w.length; L++)
1377
+ if (x(j, w[L]))
1320
1378
  return null;
1321
- var q = JSON.stringify(x, function(G, _) {
1379
+ var q = JSON.stringify(w, function(G, _) {
1322
1380
  var te = ee(_);
1323
1381
  return te === "symbol" ? String(_) : _;
1324
1382
  });
1325
- return new b("Invalid " + L + " `" + R + "` of value `" + String(j) + "` " + ("supplied to `" + W + "`, expected one of " + q + "."));
1383
+ return new b("Invalid " + F + " `" + R + "` of value `" + String(j) + "` " + ("supplied to `" + I + "`, expected one of " + q + "."));
1326
1384
  }
1327
1385
  return v(M);
1328
1386
  }
1329
- function f(x) {
1330
- function M(A, k, W, L, R) {
1331
- if (typeof x != "function")
1332
- return new b("Property `" + R + "` of component `" + W + "` has invalid PropType notation inside objectOf.");
1333
- var j = A[k], F = H(j);
1334
- if (F !== "object")
1335
- return new b("Invalid " + L + " `" + R + "` of type " + ("`" + F + "` supplied to `" + W + "`, expected an object."));
1387
+ function f(w) {
1388
+ function M(A, k, I, F, R) {
1389
+ if (typeof w != "function")
1390
+ return new b("Property `" + R + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
1391
+ var j = A[k], L = H(j);
1392
+ if (L !== "object")
1393
+ return new b("Invalid " + F + " `" + R + "` of type " + ("`" + L + "` supplied to `" + I + "`, expected an object."));
1336
1394
  for (var q in j)
1337
1395
  if (r(j, q)) {
1338
- var U = x(j, q, W, L, R + "." + q, t);
1396
+ var U = w(j, q, I, F, R + "." + q, t);
1339
1397
  if (U instanceof Error)
1340
1398
  return U;
1341
1399
  }
@@ -1343,49 +1401,49 @@ function an() {
1343
1401
  }
1344
1402
  return v(M);
1345
1403
  }
1346
- function P(x) {
1347
- if (!Array.isArray(x))
1404
+ function P(w) {
1405
+ if (!Array.isArray(w))
1348
1406
  return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), s;
1349
- for (var M = 0; M < x.length; M++) {
1350
- var A = x[M];
1407
+ for (var M = 0; M < w.length; M++) {
1408
+ var A = w[M];
1351
1409
  if (typeof A != "function")
1352
1410
  return o(
1353
1411
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ae(A) + " at index " + M + "."
1354
1412
  ), s;
1355
1413
  }
1356
- function k(W, L, R, j, F) {
1357
- for (var q = [], U = 0; U < x.length; U++) {
1358
- var G = x[U], _ = G(W, L, R, j, F, t);
1414
+ function k(I, F, R, j, L) {
1415
+ for (var q = [], U = 0; U < w.length; U++) {
1416
+ var G = w[U], _ = G(I, F, R, j, L, t);
1359
1417
  if (_ == null)
1360
1418
  return null;
1361
1419
  _.data && r(_.data, "expectedType") && q.push(_.data.expectedType);
1362
1420
  }
1363
1421
  var te = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
1364
- return new b("Invalid " + j + " `" + F + "` supplied to " + ("`" + R + "`" + te + "."));
1422
+ return new b("Invalid " + j + " `" + L + "` supplied to " + ("`" + R + "`" + te + "."));
1365
1423
  }
1366
1424
  return v(k);
1367
1425
  }
1368
1426
  function $() {
1369
- function x(M, A, k, W, L) {
1370
- return X(M[A]) ? null : new b("Invalid " + W + " `" + L + "` supplied to " + ("`" + k + "`, expected a ReactNode."));
1427
+ function w(M, A, k, I, F) {
1428
+ return X(M[A]) ? null : new b("Invalid " + I + " `" + F + "` supplied to " + ("`" + k + "`, expected a ReactNode."));
1371
1429
  }
1372
- return v(x);
1430
+ return v(w);
1373
1431
  }
1374
- function O(x, M, A, k, W) {
1432
+ function O(w, M, A, k, I) {
1375
1433
  return new b(
1376
- (x || "React class") + ": " + M + " type `" + A + "." + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + W + "`."
1434
+ (w || "React class") + ": " + M + " type `" + A + "." + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
1377
1435
  );
1378
1436
  }
1379
- function E(x) {
1380
- function M(A, k, W, L, R) {
1381
- var j = A[k], F = H(j);
1382
- if (F !== "object")
1383
- return new b("Invalid " + L + " `" + R + "` of type `" + F + "` " + ("supplied to `" + W + "`, expected `object`."));
1384
- for (var q in x) {
1385
- var U = x[q];
1437
+ function E(w) {
1438
+ function M(A, k, I, F, R) {
1439
+ var j = A[k], L = H(j);
1440
+ if (L !== "object")
1441
+ return new b("Invalid " + F + " `" + R + "` of type `" + L + "` " + ("supplied to `" + I + "`, expected `object`."));
1442
+ for (var q in w) {
1443
+ var U = w[q];
1386
1444
  if (typeof U != "function")
1387
- return O(W, L, R, q, ee(U));
1388
- var G = U(j, q, W, L, R + "." + q, t);
1445
+ return O(I, F, R, q, ee(U));
1446
+ var G = U(j, q, I, F, R + "." + q, t);
1389
1447
  if (G)
1390
1448
  return G;
1391
1449
  }
@@ -1393,22 +1451,22 @@ function an() {
1393
1451
  }
1394
1452
  return v(M);
1395
1453
  }
1396
- function z(x) {
1397
- function M(A, k, W, L, R) {
1398
- var j = A[k], F = H(j);
1399
- if (F !== "object")
1400
- return new b("Invalid " + L + " `" + R + "` of type `" + F + "` " + ("supplied to `" + W + "`, expected `object`."));
1401
- var q = n({}, A[k], x);
1454
+ function z(w) {
1455
+ function M(A, k, I, F, R) {
1456
+ var j = A[k], L = H(j);
1457
+ if (L !== "object")
1458
+ return new b("Invalid " + F + " `" + R + "` of type `" + L + "` " + ("supplied to `" + I + "`, expected `object`."));
1459
+ var q = n({}, A[k], w);
1402
1460
  for (var U in q) {
1403
- var G = x[U];
1404
- if (r(x, U) && typeof G != "function")
1405
- return O(W, L, R, U, ee(G));
1461
+ var G = w[U];
1462
+ if (r(w, U) && typeof G != "function")
1463
+ return O(I, F, R, U, ee(G));
1406
1464
  if (!G)
1407
1465
  return new b(
1408
- "Invalid " + L + " `" + R + "` key `" + U + "` supplied to `" + W + "`.\nBad object: " + JSON.stringify(A[k], null, " ") + `
1409
- Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1466
+ "Invalid " + F + " `" + R + "` key `" + U + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(A[k], null, " ") + `
1467
+ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
1410
1468
  );
1411
- var _ = G(j, U, W, L, R + "." + U, t);
1469
+ var _ = G(j, U, I, F, R + "." + U, t);
1412
1470
  if (_)
1413
1471
  return _;
1414
1472
  }
@@ -1416,30 +1474,30 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1416
1474
  }
1417
1475
  return v(M);
1418
1476
  }
1419
- function X(x) {
1420
- switch (typeof x) {
1477
+ function X(w) {
1478
+ switch (typeof w) {
1421
1479
  case "number":
1422
1480
  case "string":
1423
1481
  case "undefined":
1424
1482
  return !0;
1425
1483
  case "boolean":
1426
- return !x;
1484
+ return !w;
1427
1485
  case "object":
1428
- if (Array.isArray(x))
1429
- return x.every(X);
1430
- if (x === null || u(x))
1486
+ if (Array.isArray(w))
1487
+ return w.every(X);
1488
+ if (w === null || d(w))
1431
1489
  return !0;
1432
- var M = d(x);
1490
+ var M = u(w);
1433
1491
  if (M) {
1434
- var A = M.call(x), k;
1435
- if (M !== x.entries) {
1492
+ var A = M.call(w), k;
1493
+ if (M !== w.entries) {
1436
1494
  for (; !(k = A.next()).done; )
1437
1495
  if (!X(k.value))
1438
1496
  return !1;
1439
1497
  } else
1440
1498
  for (; !(k = A.next()).done; ) {
1441
- var W = k.value;
1442
- if (W && !X(W[1]))
1499
+ var I = k.value;
1500
+ if (I && !X(I[1]))
1443
1501
  return !1;
1444
1502
  }
1445
1503
  } else
@@ -1449,27 +1507,27 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1449
1507
  return !1;
1450
1508
  }
1451
1509
  }
1452
- function Q(x, M) {
1453
- return x === "symbol" ? !0 : M ? M["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && M instanceof Symbol : !1;
1510
+ function Q(w, M) {
1511
+ return w === "symbol" ? !0 : M ? M["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && M instanceof Symbol : !1;
1454
1512
  }
1455
- function H(x) {
1456
- var M = typeof x;
1457
- return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" : Q(M, x) ? "symbol" : M;
1513
+ function H(w) {
1514
+ var M = typeof w;
1515
+ return Array.isArray(w) ? "array" : w instanceof RegExp ? "object" : Q(M, w) ? "symbol" : M;
1458
1516
  }
1459
- function ee(x) {
1460
- if (typeof x > "u" || x === null)
1461
- return "" + x;
1462
- var M = H(x);
1517
+ function ee(w) {
1518
+ if (typeof w > "u" || w === null)
1519
+ return "" + w;
1520
+ var M = H(w);
1463
1521
  if (M === "object") {
1464
- if (x instanceof Date)
1522
+ if (w instanceof Date)
1465
1523
  return "date";
1466
- if (x instanceof RegExp)
1524
+ if (w instanceof RegExp)
1467
1525
  return "regexp";
1468
1526
  }
1469
1527
  return M;
1470
1528
  }
1471
- function ae(x) {
1472
- var M = ee(x);
1529
+ function ae(w) {
1530
+ var M = ee(w);
1473
1531
  switch (M) {
1474
1532
  case "array":
1475
1533
  case "object":
@@ -1482,24 +1540,24 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1482
1540
  return M;
1483
1541
  }
1484
1542
  }
1485
- function de(x) {
1486
- return !x.constructor || !x.constructor.name ? g : x.constructor.name;
1543
+ function de(w) {
1544
+ return !w.constructor || !w.constructor.name ? g : w.constructor.name;
1487
1545
  }
1488
1546
  return p.checkPropTypes = i, p.resetWarningCache = i.resetWarningCache, p.PropTypes = p, p;
1489
1547
  }, _e;
1490
1548
  }
1491
- var Me, He;
1492
- function sn() {
1493
- if (He) return Me;
1494
- He = 1;
1495
- var e = /* @__PURE__ */ We();
1549
+ var Me, Xe;
1550
+ function cn() {
1551
+ if (Xe) return Me;
1552
+ Xe = 1;
1553
+ var e = /* @__PURE__ */ Oe();
1496
1554
  function n() {
1497
1555
  }
1498
1556
  function t() {
1499
1557
  }
1500
1558
  return t.resetWarningCache = n, Me = function() {
1501
- function r(s, u, y, m, h, d) {
1502
- if (d !== e) {
1559
+ function r(s, d, y, m, h, u) {
1560
+ if (u !== e) {
1503
1561
  var g = new Error(
1504
1562
  "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"
1505
1563
  );
@@ -1536,20 +1594,20 @@ function sn() {
1536
1594
  return o.PropTypes = o, o;
1537
1595
  }, Me;
1538
1596
  }
1539
- var Xe;
1597
+ var Ge;
1540
1598
  function yt() {
1541
- if (Xe) return me.exports;
1542
- if (Xe = 1, process.env.NODE_ENV !== "production") {
1599
+ if (Ge) return me.exports;
1600
+ if (Ge = 1, process.env.NODE_ENV !== "production") {
1543
1601
  var e = mt(), n = !0;
1544
- me.exports = /* @__PURE__ */ an()(e.isElement, n);
1602
+ me.exports = /* @__PURE__ */ sn()(e.isElement, n);
1545
1603
  } else
1546
- me.exports = /* @__PURE__ */ sn()();
1604
+ me.exports = /* @__PURE__ */ cn()();
1547
1605
  return me.exports;
1548
1606
  }
1549
- var ye = { exports: {} }, Ge;
1607
+ var ye = { exports: {} }, Ze;
1550
1608
  function ln() {
1551
- if (Ge) return ye.exports;
1552
- Ge = 1;
1609
+ if (Ze) return ye.exports;
1610
+ Ze = 1;
1553
1611
  function e(t) {
1554
1612
  var r, i, o = "";
1555
1613
  if (typeof t == "string" || typeof t == "number") o += t;
@@ -1565,15 +1623,15 @@ function ln() {
1565
1623
  }
1566
1624
  return ye.exports = n, ye.exports.clsx = n, ye.exports;
1567
1625
  }
1568
- var B = {}, oe = {}, Ze;
1569
- function xe() {
1570
- if (Ze) return oe;
1571
- Ze = 1, Object.defineProperty(oe, "__esModule", {
1626
+ var B = {}, oe = {}, Je;
1627
+ function we() {
1628
+ if (Je) return oe;
1629
+ Je = 1, Object.defineProperty(oe, "__esModule", {
1572
1630
  value: !0
1573
1631
  }), oe.dontSetMe = i, oe.findInArray = e, oe.int = r, oe.isFunction = n, oe.isNum = t;
1574
1632
  function e(o, s) {
1575
- for (let u = 0, y = o.length; u < y; u++)
1576
- if (s.apply(s, [o[u], u, o])) return o[u];
1633
+ for (let d = 0, y = o.length; d < y; d++)
1634
+ if (s.apply(s, [o[d], d, o])) return o[d];
1577
1635
  }
1578
1636
  function n(o) {
1579
1637
  return typeof o == "function" || Object.prototype.toString.call(o) === "[object Function]";
@@ -1584,16 +1642,16 @@ function xe() {
1584
1642
  function r(o) {
1585
1643
  return parseInt(o, 10);
1586
1644
  }
1587
- function i(o, s, u) {
1645
+ function i(o, s, d) {
1588
1646
  if (o[s])
1589
- return new Error(`Invalid prop ${s} passed to ${u} - do not set this, set it on the child.`);
1647
+ return new Error(`Invalid prop ${s} passed to ${d} - do not set this, set it on the child.`);
1590
1648
  }
1591
1649
  return oe;
1592
1650
  }
1593
- var ie = {}, Je;
1594
- function cn() {
1595
- if (Je) return ie;
1596
- Je = 1, Object.defineProperty(ie, "__esModule", {
1651
+ var ie = {}, Qe;
1652
+ function dn() {
1653
+ if (Qe) return ie;
1654
+ Qe = 1, Object.defineProperty(ie, "__esModule", {
1597
1655
  value: !0
1598
1656
  }), ie.browserPrefixToKey = t, ie.browserPrefixToStyle = r, ie.default = void 0, ie.getPrefix = n;
1599
1657
  const e = ["Moz", "Webkit", "O", "ms"];
@@ -1602,8 +1660,8 @@ function cn() {
1602
1660
  if (typeof window > "u") return "";
1603
1661
  const s = window.document?.documentElement?.style;
1604
1662
  if (!s || o in s) return "";
1605
- for (let u = 0; u < e.length; u++)
1606
- if (t(o, e[u]) in s) return e[u];
1663
+ for (let d = 0; d < e.length; d++)
1664
+ if (t(o, e[d]) in s) return e[d];
1607
1665
  return "";
1608
1666
  }
1609
1667
  function t(o, s) {
@@ -1613,21 +1671,21 @@ function cn() {
1613
1671
  return s ? `-${s.toLowerCase()}-${o}` : o;
1614
1672
  }
1615
1673
  function i(o) {
1616
- let s = "", u = !0;
1674
+ let s = "", d = !0;
1617
1675
  for (let y = 0; y < o.length; y++)
1618
- u ? (s += o[y].toUpperCase(), u = !1) : o[y] === "-" ? u = !0 : s += o[y];
1676
+ d ? (s += o[y].toUpperCase(), d = !1) : o[y] === "-" ? d = !0 : s += o[y];
1619
1677
  return s;
1620
1678
  }
1621
1679
  return ie.default = n(), ie;
1622
1680
  }
1623
- var Qe;
1624
- function Oe() {
1625
- if (Qe) return B;
1626
- Qe = 1, Object.defineProperty(B, "__esModule", {
1681
+ var et;
1682
+ function Re() {
1683
+ if (et) return B;
1684
+ et = 1, Object.defineProperty(B, "__esModule", {
1627
1685
  value: !0
1628
- }), B.addClassName = c, B.addEvent = s, B.addUserSelectStyles = T, B.createCSSTransform = p, B.createSVGTransform = w, B.getTouch = v, B.getTouchIdentifier = S, B.getTranslation = b, B.innerHeight = h, B.innerWidth = d, B.matchesSelector = i, B.matchesSelectorAndParentsTo = o, B.offsetXYFromParent = g, B.outerHeight = y, B.outerWidth = m, B.removeClassName = N, B.removeEvent = u, B.scheduleRemoveUserSelectStyles = C;
1629
- var e = xe(), n = t(cn());
1630
- function t(l, f) {
1686
+ }), B.addClassName = l, B.addEvent = s, B.addUserSelectStyles = T, B.createCSSTransform = p, B.createSVGTransform = x, B.getTouch = v, B.getTouchIdentifier = C, B.getTranslation = b, B.innerHeight = h, B.innerWidth = u, B.matchesSelector = i, B.matchesSelectorAndParentsTo = o, B.offsetXYFromParent = g, B.outerHeight = y, B.outerWidth = m, B.removeClassName = N, B.removeEvent = d, B.scheduleRemoveUserSelectStyles = S;
1687
+ var e = we(), n = t(dn());
1688
+ function t(c, f) {
1631
1689
  if (typeof WeakMap == "function") var P = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap();
1632
1690
  return (t = function(O, E) {
1633
1691
  if (!E && O && O.__esModule) return O;
@@ -1639,16 +1697,16 @@ function Oe() {
1639
1697
  }
1640
1698
  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]);
1641
1699
  return Q;
1642
- })(l, f);
1700
+ })(c, f);
1643
1701
  }
1644
1702
  let r = "";
1645
- function i(l, f) {
1703
+ function i(c, f) {
1646
1704
  return r || (r = (0, e.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(P) {
1647
- return (0, e.isFunction)(l[P]);
1648
- })), (0, e.isFunction)(l[r]) ? l[r](f) : !1;
1705
+ return (0, e.isFunction)(c[P]);
1706
+ })), (0, e.isFunction)(c[r]) ? c[r](f) : !1;
1649
1707
  }
1650
- function o(l, f, P) {
1651
- let $ = l;
1708
+ function o(c, f, P) {
1709
+ let $ = c;
1652
1710
  do {
1653
1711
  if (i($, f)) return !0;
1654
1712
  if ($ === P) return !1;
@@ -1656,161 +1714,161 @@ function Oe() {
1656
1714
  } while ($);
1657
1715
  return !1;
1658
1716
  }
1659
- function s(l, f, P, $) {
1660
- if (!l) return;
1717
+ function s(c, f, P, $) {
1718
+ if (!c) return;
1661
1719
  const O = {
1662
1720
  capture: !0,
1663
1721
  ...$
1664
1722
  };
1665
- l.addEventListener ? l.addEventListener(f, P, O) : l.attachEvent ? l.attachEvent("on" + f, P) : l["on" + f] = P;
1723
+ c.addEventListener ? c.addEventListener(f, P, O) : c.attachEvent ? c.attachEvent("on" + f, P) : c["on" + f] = P;
1666
1724
  }
1667
- function u(l, f, P, $) {
1668
- if (!l) return;
1725
+ function d(c, f, P, $) {
1726
+ if (!c) return;
1669
1727
  const O = {
1670
1728
  capture: !0,
1671
1729
  ...$
1672
1730
  };
1673
- l.removeEventListener ? l.removeEventListener(f, P, O) : l.detachEvent ? l.detachEvent("on" + f, P) : l["on" + f] = null;
1731
+ c.removeEventListener ? c.removeEventListener(f, P, O) : c.detachEvent ? c.detachEvent("on" + f, P) : c["on" + f] = null;
1674
1732
  }
1675
- function y(l) {
1676
- let f = l.clientHeight;
1677
- const P = l.ownerDocument.defaultView.getComputedStyle(l);
1733
+ function y(c) {
1734
+ let f = c.clientHeight;
1735
+ const P = c.ownerDocument.defaultView.getComputedStyle(c);
1678
1736
  return f += (0, e.int)(P.borderTopWidth), f += (0, e.int)(P.borderBottomWidth), f;
1679
1737
  }
1680
- function m(l) {
1681
- let f = l.clientWidth;
1682
- const P = l.ownerDocument.defaultView.getComputedStyle(l);
1738
+ function m(c) {
1739
+ let f = c.clientWidth;
1740
+ const P = c.ownerDocument.defaultView.getComputedStyle(c);
1683
1741
  return f += (0, e.int)(P.borderLeftWidth), f += (0, e.int)(P.borderRightWidth), f;
1684
1742
  }
1685
- function h(l) {
1686
- let f = l.clientHeight;
1687
- const P = l.ownerDocument.defaultView.getComputedStyle(l);
1743
+ function h(c) {
1744
+ let f = c.clientHeight;
1745
+ const P = c.ownerDocument.defaultView.getComputedStyle(c);
1688
1746
  return f -= (0, e.int)(P.paddingTop), f -= (0, e.int)(P.paddingBottom), f;
1689
1747
  }
1690
- function d(l) {
1691
- let f = l.clientWidth;
1692
- const P = l.ownerDocument.defaultView.getComputedStyle(l);
1748
+ function u(c) {
1749
+ let f = c.clientWidth;
1750
+ const P = c.ownerDocument.defaultView.getComputedStyle(c);
1693
1751
  return f -= (0, e.int)(P.paddingLeft), f -= (0, e.int)(P.paddingRight), f;
1694
1752
  }
1695
- function g(l, f, P) {
1753
+ function g(c, f, P) {
1696
1754
  const O = f === f.ownerDocument.body ? {
1697
1755
  left: 0,
1698
1756
  top: 0
1699
- } : f.getBoundingClientRect(), E = (l.clientX + f.scrollLeft - O.left) / P, z = (l.clientY + f.scrollTop - O.top) / P;
1757
+ } : f.getBoundingClientRect(), E = (c.clientX + f.scrollLeft - O.left) / P, z = (c.clientY + f.scrollTop - O.top) / P;
1700
1758
  return {
1701
1759
  x: E,
1702
1760
  y: z
1703
1761
  };
1704
1762
  }
1705
- function p(l, f) {
1706
- const P = b(l, f, "px");
1763
+ function p(c, f) {
1764
+ const P = b(c, f, "px");
1707
1765
  return {
1708
1766
  [(0, n.browserPrefixToKey)("transform", n.default)]: P
1709
1767
  };
1710
1768
  }
1711
- function w(l, f) {
1712
- return b(l, f, "");
1769
+ function x(c, f) {
1770
+ return b(c, f, "");
1713
1771
  }
1714
- function b(l, f, P) {
1772
+ function b(c, f, P) {
1715
1773
  let {
1716
1774
  x: $,
1717
1775
  y: O
1718
- } = l, E = `translate(${$}${P},${O}${P})`;
1776
+ } = c, E = `translate(${$}${P},${O}${P})`;
1719
1777
  if (f) {
1720
1778
  const z = `${typeof f.x == "string" ? f.x : f.x + P}`, X = `${typeof f.y == "string" ? f.y : f.y + P}`;
1721
1779
  E = `translate(${z}, ${X})` + E;
1722
1780
  }
1723
1781
  return E;
1724
1782
  }
1725
- function v(l, f) {
1726
- return l.targetTouches && (0, e.findInArray)(l.targetTouches, (P) => f === P.identifier) || l.changedTouches && (0, e.findInArray)(l.changedTouches, (P) => f === P.identifier);
1783
+ function v(c, f) {
1784
+ return c.targetTouches && (0, e.findInArray)(c.targetTouches, (P) => f === P.identifier) || c.changedTouches && (0, e.findInArray)(c.changedTouches, (P) => f === P.identifier);
1727
1785
  }
1728
- function S(l) {
1729
- if (l.targetTouches && l.targetTouches[0]) return l.targetTouches[0].identifier;
1730
- if (l.changedTouches && l.changedTouches[0]) return l.changedTouches[0].identifier;
1786
+ function C(c) {
1787
+ if (c.targetTouches && c.targetTouches[0]) return c.targetTouches[0].identifier;
1788
+ if (c.changedTouches && c.changedTouches[0]) return c.changedTouches[0].identifier;
1731
1789
  }
1732
- function T(l) {
1733
- if (!l) return;
1734
- let f = l.getElementById("react-draggable-style-el");
1735
- 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;}
1790
+ function T(c) {
1791
+ if (!c) return;
1792
+ let f = c.getElementById("react-draggable-style-el");
1793
+ 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;}
1736
1794
  `, f.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
1737
- `, l.getElementsByTagName("head")[0].appendChild(f)), l.body && c(l.body, "react-draggable-transparent-selection");
1795
+ `, c.getElementsByTagName("head")[0].appendChild(f)), c.body && l(c.body, "react-draggable-transparent-selection");
1738
1796
  }
1739
- function C(l) {
1797
+ function S(c) {
1740
1798
  window.requestAnimationFrame ? window.requestAnimationFrame(() => {
1741
- D(l);
1742
- }) : D(l);
1799
+ D(c);
1800
+ }) : D(c);
1743
1801
  }
1744
- function D(l) {
1745
- if (l)
1802
+ function D(c) {
1803
+ if (c)
1746
1804
  try {
1747
- if (l.body && N(l.body, "react-draggable-transparent-selection"), l.selection)
1748
- l.selection.empty();
1805
+ if (c.body && N(c.body, "react-draggable-transparent-selection"), c.selection)
1806
+ c.selection.empty();
1749
1807
  else {
1750
- const f = (l.defaultView || window).getSelection();
1808
+ const f = (c.defaultView || window).getSelection();
1751
1809
  f && f.type !== "Caret" && f.removeAllRanges();
1752
1810
  }
1753
1811
  } catch {
1754
1812
  }
1755
1813
  }
1756
- function c(l, f) {
1757
- l.classList ? l.classList.add(f) : l.className.match(new RegExp(`(?:^|\\s)${f}(?!\\S)`)) || (l.className += ` ${f}`);
1814
+ function l(c, f) {
1815
+ c.classList ? c.classList.add(f) : c.className.match(new RegExp(`(?:^|\\s)${f}(?!\\S)`)) || (c.className += ` ${f}`);
1758
1816
  }
1759
- function N(l, f) {
1760
- l.classList ? l.classList.remove(f) : l.className = l.className.replace(new RegExp(`(?:^|\\s)${f}(?!\\S)`, "g"), "");
1817
+ function N(c, f) {
1818
+ c.classList ? c.classList.remove(f) : c.className = c.className.replace(new RegExp(`(?:^|\\s)${f}(?!\\S)`, "g"), "");
1761
1819
  }
1762
1820
  return B;
1763
1821
  }
1764
- var ne = {}, et;
1822
+ var ne = {}, tt;
1765
1823
  function bt() {
1766
- if (et) return ne;
1767
- et = 1, Object.defineProperty(ne, "__esModule", {
1824
+ if (tt) return ne;
1825
+ tt = 1, Object.defineProperty(ne, "__esModule", {
1768
1826
  value: !0
1769
- }), ne.canDragX = i, ne.canDragY = o, ne.createCoreData = u, ne.createDraggableData = y, ne.getBoundPosition = t, ne.getControlPosition = s, ne.snapToGrid = r;
1770
- var e = xe(), n = Oe();
1771
- function t(d, g, p) {
1772
- if (!d.props.bounds) return [g, p];
1827
+ }), ne.canDragX = i, ne.canDragY = o, ne.createCoreData = d, ne.createDraggableData = y, ne.getBoundPosition = t, ne.getControlPosition = s, ne.snapToGrid = r;
1828
+ var e = we(), n = Re();
1829
+ function t(u, g, p) {
1830
+ if (!u.props.bounds) return [g, p];
1773
1831
  let {
1774
- bounds: w
1775
- } = d.props;
1776
- w = typeof w == "string" ? w : m(w);
1777
- const b = h(d);
1778
- if (typeof w == "string") {
1832
+ bounds: x
1833
+ } = u.props;
1834
+ x = typeof x == "string" ? x : m(x);
1835
+ const b = h(u);
1836
+ if (typeof x == "string") {
1779
1837
  const {
1780
1838
  ownerDocument: v
1781
- } = b, S = v.defaultView;
1839
+ } = b, C = v.defaultView;
1782
1840
  let T;
1783
- if (w === "parent" ? T = b.parentNode : T = b.getRootNode().querySelector(w), !(T instanceof S.HTMLElement))
1784
- throw new Error('Bounds selector "' + w + '" could not find an element.');
1785
- const C = T, D = S.getComputedStyle(b), c = S.getComputedStyle(C);
1786
- w = {
1787
- left: -b.offsetLeft + (0, e.int)(c.paddingLeft) + (0, e.int)(D.marginLeft),
1788
- top: -b.offsetTop + (0, e.int)(c.paddingTop) + (0, e.int)(D.marginTop),
1789
- right: (0, n.innerWidth)(C) - (0, n.outerWidth)(b) - b.offsetLeft + (0, e.int)(c.paddingRight) - (0, e.int)(D.marginRight),
1790
- bottom: (0, n.innerHeight)(C) - (0, n.outerHeight)(b) - b.offsetTop + (0, e.int)(c.paddingBottom) - (0, e.int)(D.marginBottom)
1841
+ if (x === "parent" ? T = b.parentNode : T = b.getRootNode().querySelector(x), !(T instanceof C.HTMLElement))
1842
+ throw new Error('Bounds selector "' + x + '" could not find an element.');
1843
+ const S = T, D = C.getComputedStyle(b), l = C.getComputedStyle(S);
1844
+ x = {
1845
+ left: -b.offsetLeft + (0, e.int)(l.paddingLeft) + (0, e.int)(D.marginLeft),
1846
+ top: -b.offsetTop + (0, e.int)(l.paddingTop) + (0, e.int)(D.marginTop),
1847
+ right: (0, n.innerWidth)(S) - (0, n.outerWidth)(b) - b.offsetLeft + (0, e.int)(l.paddingRight) - (0, e.int)(D.marginRight),
1848
+ bottom: (0, n.innerHeight)(S) - (0, n.outerHeight)(b) - b.offsetTop + (0, e.int)(l.paddingBottom) - (0, e.int)(D.marginBottom)
1791
1849
  };
1792
1850
  }
1793
- return (0, e.isNum)(w.right) && (g = Math.min(g, w.right)), (0, e.isNum)(w.bottom) && (p = Math.min(p, w.bottom)), (0, e.isNum)(w.left) && (g = Math.max(g, w.left)), (0, e.isNum)(w.top) && (p = Math.max(p, w.top)), [g, p];
1851
+ return (0, e.isNum)(x.right) && (g = Math.min(g, x.right)), (0, e.isNum)(x.bottom) && (p = Math.min(p, x.bottom)), (0, e.isNum)(x.left) && (g = Math.max(g, x.left)), (0, e.isNum)(x.top) && (p = Math.max(p, x.top)), [g, p];
1794
1852
  }
1795
- function r(d, g, p) {
1796
- const w = Math.round(g / d[0]) * d[0], b = Math.round(p / d[1]) * d[1];
1797
- return [w, b];
1853
+ function r(u, g, p) {
1854
+ const x = Math.round(g / u[0]) * u[0], b = Math.round(p / u[1]) * u[1];
1855
+ return [x, b];
1798
1856
  }
1799
- function i(d) {
1800
- return d.props.axis === "both" || d.props.axis === "x";
1857
+ function i(u) {
1858
+ return u.props.axis === "both" || u.props.axis === "x";
1801
1859
  }
1802
- function o(d) {
1803
- return d.props.axis === "both" || d.props.axis === "y";
1860
+ function o(u) {
1861
+ return u.props.axis === "both" || u.props.axis === "y";
1804
1862
  }
1805
- function s(d, g, p) {
1806
- const w = typeof g == "number" ? (0, n.getTouch)(d, g) : null;
1807
- if (typeof g == "number" && !w) return null;
1863
+ function s(u, g, p) {
1864
+ const x = typeof g == "number" ? (0, n.getTouch)(u, g) : null;
1865
+ if (typeof g == "number" && !x) return null;
1808
1866
  const b = h(p), v = p.props.offsetParent || b.offsetParent || b.ownerDocument.body;
1809
- return (0, n.offsetXYFromParent)(w || d, v, p.props.scale);
1867
+ return (0, n.offsetXYFromParent)(x || u, v, p.props.scale);
1810
1868
  }
1811
- function u(d, g, p) {
1812
- const w = !(0, e.isNum)(d.lastX), b = h(d);
1813
- return w ? {
1869
+ function d(u, g, p) {
1870
+ const x = !(0, e.isNum)(u.lastX), b = h(u);
1871
+ return x ? {
1814
1872
  node: b,
1815
1873
  deltaX: 0,
1816
1874
  deltaY: 0,
@@ -1820,88 +1878,88 @@ function bt() {
1820
1878
  y: p
1821
1879
  } : {
1822
1880
  node: b,
1823
- deltaX: g - d.lastX,
1824
- deltaY: p - d.lastY,
1825
- lastX: d.lastX,
1826
- lastY: d.lastY,
1881
+ deltaX: g - u.lastX,
1882
+ deltaY: p - u.lastY,
1883
+ lastX: u.lastX,
1884
+ lastY: u.lastY,
1827
1885
  x: g,
1828
1886
  y: p
1829
1887
  };
1830
1888
  }
1831
- function y(d, g) {
1832
- const p = d.props.scale;
1889
+ function y(u, g) {
1890
+ const p = u.props.scale;
1833
1891
  return {
1834
1892
  node: g.node,
1835
- x: d.state.x + g.deltaX / p,
1836
- y: d.state.y + g.deltaY / p,
1893
+ x: u.state.x + g.deltaX / p,
1894
+ y: u.state.y + g.deltaY / p,
1837
1895
  deltaX: g.deltaX / p,
1838
1896
  deltaY: g.deltaY / p,
1839
- lastX: d.state.x,
1840
- lastY: d.state.y
1897
+ lastX: u.state.x,
1898
+ lastY: u.state.y
1841
1899
  };
1842
1900
  }
1843
- function m(d) {
1901
+ function m(u) {
1844
1902
  return {
1845
- left: d.left,
1846
- top: d.top,
1847
- right: d.right,
1848
- bottom: d.bottom
1903
+ left: u.left,
1904
+ top: u.top,
1905
+ right: u.right,
1906
+ bottom: u.bottom
1849
1907
  };
1850
1908
  }
1851
- function h(d) {
1852
- const g = d.findDOMNode();
1909
+ function h(u) {
1910
+ const g = u.findDOMNode();
1853
1911
  if (!g)
1854
1912
  throw new Error("<DraggableCore>: Unmounted during event!");
1855
1913
  return g;
1856
1914
  }
1857
1915
  return ne;
1858
1916
  }
1859
- var he = {}, be = {}, tt;
1917
+ var he = {}, be = {}, nt;
1860
1918
  function vt() {
1861
- if (tt) return be;
1862
- tt = 1, Object.defineProperty(be, "__esModule", {
1919
+ if (nt) return be;
1920
+ nt = 1, Object.defineProperty(be, "__esModule", {
1863
1921
  value: !0
1864
1922
  }), be.default = e;
1865
1923
  function e() {
1866
1924
  }
1867
1925
  return be;
1868
1926
  }
1869
- var nt;
1870
- function dn() {
1871
- if (nt) return he;
1872
- nt = 1, Object.defineProperty(he, "__esModule", {
1927
+ var rt;
1928
+ function un() {
1929
+ if (rt) return he;
1930
+ rt = 1, Object.defineProperty(he, "__esModule", {
1873
1931
  value: !0
1874
1932
  }), he.default = void 0;
1875
- var e = y(se), n = u(/* @__PURE__ */ yt()), t = u(at), r = Oe(), i = bt(), o = xe(), s = u(vt());
1876
- function u(b) {
1933
+ var e = y(se), n = d(/* @__PURE__ */ yt()), t = d(st), r = Re(), i = bt(), o = we(), s = d(vt());
1934
+ function d(b) {
1877
1935
  return b && b.__esModule ? b : { default: b };
1878
1936
  }
1879
1937
  function y(b, v) {
1880
- if (typeof WeakMap == "function") var S = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap();
1881
- return (y = function(C, D) {
1882
- if (!D && C && C.__esModule) return C;
1883
- var c, N, l = { __proto__: null, default: C };
1884
- if (C === null || typeof C != "object" && typeof C != "function") return l;
1885
- if (c = D ? T : S) {
1886
- if (c.has(C)) return c.get(C);
1887
- c.set(C, l);
1938
+ if (typeof WeakMap == "function") var C = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap();
1939
+ return (y = function(S, D) {
1940
+ if (!D && S && S.__esModule) return S;
1941
+ var l, N, c = { __proto__: null, default: S };
1942
+ if (S === null || typeof S != "object" && typeof S != "function") return c;
1943
+ if (l = D ? T : C) {
1944
+ if (l.has(S)) return l.get(S);
1945
+ l.set(S, c);
1888
1946
  }
1889
- for (const f in C) f !== "default" && {}.hasOwnProperty.call(C, f) && ((N = (c = Object.defineProperty) && Object.getOwnPropertyDescriptor(C, f)) && (N.get || N.set) ? c(l, f, N) : l[f] = C[f]);
1890
- return l;
1947
+ 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]);
1948
+ return c;
1891
1949
  })(b, v);
1892
1950
  }
1893
- function m(b, v, S) {
1894
- return (v = h(v)) in b ? Object.defineProperty(b, v, { value: S, enumerable: !0, configurable: !0, writable: !0 }) : b[v] = S, b;
1951
+ function m(b, v, C) {
1952
+ return (v = h(v)) in b ? Object.defineProperty(b, v, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : b[v] = C, b;
1895
1953
  }
1896
1954
  function h(b) {
1897
- var v = d(b, "string");
1955
+ var v = u(b, "string");
1898
1956
  return typeof v == "symbol" ? v : v + "";
1899
1957
  }
1900
- function d(b, v) {
1958
+ function u(b, v) {
1901
1959
  if (typeof b != "object" || !b) return b;
1902
- var S = b[Symbol.toPrimitive];
1903
- if (S !== void 0) {
1904
- var T = S.call(b, v);
1960
+ var C = b[Symbol.toPrimitive];
1961
+ if (C !== void 0) {
1962
+ var T = C.call(b, v);
1905
1963
  if (typeof T != "object") return T;
1906
1964
  throw new TypeError("@@toPrimitive must return a primitive value.");
1907
1965
  }
@@ -1919,64 +1977,64 @@ function dn() {
1919
1977
  stop: "mouseup"
1920
1978
  }
1921
1979
  };
1922
- let p = g.mouse, w = class extends e.Component {
1980
+ let p = g.mouse, x = class extends e.Component {
1923
1981
  constructor() {
1924
1982
  super(...arguments), m(this, "dragging", !1), m(this, "lastX", NaN), m(this, "lastY", NaN), m(this, "touchIdentifier", null), m(this, "mounted", !1), m(this, "handleDragStart", (v) => {
1925
1983
  if (this.props.onMouseDown(v), !this.props.allowAnyClick && typeof v.button == "number" && v.button !== 0) return !1;
1926
- const S = this.findDOMNode();
1927
- if (!S || !S.ownerDocument || !S.ownerDocument.body)
1984
+ const C = this.findDOMNode();
1985
+ if (!C || !C.ownerDocument || !C.ownerDocument.body)
1928
1986
  throw new Error("<DraggableCore> not mounted on DragStart!");
1929
1987
  const {
1930
1988
  ownerDocument: T
1931
- } = S;
1932
- if (this.props.disabled || !(v.target instanceof T.defaultView.Node) || this.props.handle && !(0, r.matchesSelectorAndParentsTo)(v.target, this.props.handle, S) || this.props.cancel && (0, r.matchesSelectorAndParentsTo)(v.target, this.props.cancel, S))
1989
+ } = C;
1990
+ if (this.props.disabled || !(v.target instanceof T.defaultView.Node) || this.props.handle && !(0, r.matchesSelectorAndParentsTo)(v.target, this.props.handle, C) || this.props.cancel && (0, r.matchesSelectorAndParentsTo)(v.target, this.props.cancel, C))
1933
1991
  return;
1934
1992
  v.type === "touchstart" && !this.props.allowMobileScroll && v.preventDefault();
1935
- const C = (0, r.getTouchIdentifier)(v);
1936
- this.touchIdentifier = C;
1937
- const D = (0, i.getControlPosition)(v, C, this);
1993
+ const S = (0, r.getTouchIdentifier)(v);
1994
+ this.touchIdentifier = S;
1995
+ const D = (0, i.getControlPosition)(v, S, this);
1938
1996
  if (D == null) return;
1939
1997
  const {
1940
- x: c,
1998
+ x: l,
1941
1999
  y: N
1942
- } = D, l = (0, i.createCoreData)(this, c, N);
1943
- (0, s.default)("DraggableCore: handleDragStart: %j", l), (0, s.default)("calling", this.props.onStart), !(this.props.onStart(v, 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, p.move, this.handleDrag), (0, r.addEvent)(T, p.stop, this.handleDragStop));
2000
+ } = D, c = (0, i.createCoreData)(this, l, N);
2001
+ (0, s.default)("DraggableCore: handleDragStart: %j", c), (0, s.default)("calling", this.props.onStart), !(this.props.onStart(v, 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, p.move, this.handleDrag), (0, r.addEvent)(T, p.stop, this.handleDragStop));
1944
2002
  }), m(this, "handleDrag", (v) => {
1945
- const S = (0, i.getControlPosition)(v, this.touchIdentifier, this);
1946
- if (S == null) return;
2003
+ const C = (0, i.getControlPosition)(v, this.touchIdentifier, this);
2004
+ if (C == null) return;
1947
2005
  let {
1948
2006
  x: T,
1949
- y: C
1950
- } = S;
2007
+ y: S
2008
+ } = C;
1951
2009
  if (Array.isArray(this.props.grid)) {
1952
- let N = T - this.lastX, l = C - this.lastY;
1953
- if ([N, l] = (0, i.snapToGrid)(this.props.grid, N, l), !N && !l) return;
1954
- T = this.lastX + N, C = this.lastY + l;
2010
+ let N = T - this.lastX, c = S - this.lastY;
2011
+ if ([N, c] = (0, i.snapToGrid)(this.props.grid, N, c), !N && !c) return;
2012
+ T = this.lastX + N, S = this.lastY + c;
1955
2013
  }
1956
- const D = (0, i.createCoreData)(this, T, C);
2014
+ const D = (0, i.createCoreData)(this, T, S);
1957
2015
  if ((0, s.default)("DraggableCore: handleDrag: %j", D), this.props.onDrag(v, D) === !1 || this.mounted === !1) {
1958
2016
  try {
1959
2017
  this.handleDragStop(new MouseEvent("mouseup"));
1960
2018
  } catch {
1961
- const l = document.createEvent("MouseEvents");
1962
- l.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), this.handleDragStop(l);
2019
+ const c = document.createEvent("MouseEvents");
2020
+ c.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), this.handleDragStop(c);
1963
2021
  }
1964
2022
  return;
1965
2023
  }
1966
- this.lastX = T, this.lastY = C;
2024
+ this.lastX = T, this.lastY = S;
1967
2025
  }), m(this, "handleDragStop", (v) => {
1968
2026
  if (!this.dragging) return;
1969
- const S = (0, i.getControlPosition)(v, this.touchIdentifier, this);
1970
- if (S == null) return;
2027
+ const C = (0, i.getControlPosition)(v, this.touchIdentifier, this);
2028
+ if (C == null) return;
1971
2029
  let {
1972
2030
  x: T,
1973
- y: C
1974
- } = S;
2031
+ y: S
2032
+ } = C;
1975
2033
  if (Array.isArray(this.props.grid)) {
1976
- let l = T - this.lastX || 0, f = C - this.lastY || 0;
1977
- [l, f] = (0, i.snapToGrid)(this.props.grid, l, f), T = this.lastX + l, C = this.lastY + f;
2034
+ let c = T - this.lastX || 0, f = S - this.lastY || 0;
2035
+ [c, f] = (0, i.snapToGrid)(this.props.grid, c, f), T = this.lastX + c, S = this.lastY + f;
1978
2036
  }
1979
- const D = (0, i.createCoreData)(this, T, C);
2037
+ const D = (0, i.createCoreData)(this, T, S);
1980
2038
  if (this.props.onStop(v, D) === !1 || this.mounted === !1) return !1;
1981
2039
  const N = this.findDOMNode();
1982
2040
  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, p.move, this.handleDrag), (0, r.removeEvent)(N.ownerDocument, p.stop, this.handleDragStop));
@@ -1994,11 +2052,11 @@ function dn() {
1994
2052
  const v = this.findDOMNode();
1995
2053
  if (v) {
1996
2054
  const {
1997
- ownerDocument: S
2055
+ ownerDocument: C
1998
2056
  } = v;
1999
- (0, r.removeEvent)(S, g.mouse.move, this.handleDrag), (0, r.removeEvent)(S, g.touch.move, this.handleDrag), (0, r.removeEvent)(S, g.mouse.stop, this.handleDragStop), (0, r.removeEvent)(S, g.touch.stop, this.handleDragStop), (0, r.removeEvent)(v, g.touch.start, this.onTouchStart, {
2057
+ (0, r.removeEvent)(C, g.mouse.move, this.handleDrag), (0, r.removeEvent)(C, g.touch.move, this.handleDrag), (0, r.removeEvent)(C, g.mouse.stop, this.handleDragStop), (0, r.removeEvent)(C, g.touch.stop, this.handleDragStop), (0, r.removeEvent)(v, g.touch.start, this.onTouchStart, {
2000
2058
  passive: !1
2001
- }), this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(S);
2059
+ }), this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(C);
2002
2060
  }
2003
2061
  }
2004
2062
  // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
@@ -2019,7 +2077,7 @@ function dn() {
2019
2077
  });
2020
2078
  }
2021
2079
  };
2022
- return he.default = w, m(w, "displayName", "DraggableCore"), m(w, "propTypes", {
2080
+ return he.default = x, m(x, "displayName", "DraggableCore"), m(x, "propTypes", {
2023
2081
  /**
2024
2082
  * `allowAnyClick` allows dragging using any mouse button.
2025
2083
  * By default, we only accept the left button.
@@ -2149,7 +2207,7 @@ function dn() {
2149
2207
  className: o.dontSetMe,
2150
2208
  style: o.dontSetMe,
2151
2209
  transform: o.dontSetMe
2152
- }), m(w, "defaultProps", {
2210
+ }), m(x, "defaultProps", {
2153
2211
  allowAnyClick: !1,
2154
2212
  // by default only accept left click
2155
2213
  allowMobileScroll: !1,
@@ -2166,9 +2224,9 @@ function dn() {
2166
2224
  scale: 1
2167
2225
  }), he;
2168
2226
  }
2169
- var rt;
2170
- function un() {
2171
- return rt || (rt = 1, (function(e) {
2227
+ var ot;
2228
+ function fn() {
2229
+ return ot || (ot = 1, (function(e) {
2172
2230
  Object.defineProperty(e, "__esModule", {
2173
2231
  value: !0
2174
2232
  }), Object.defineProperty(e, "DraggableCore", {
@@ -2177,62 +2235,62 @@ function un() {
2177
2235
  return y.default;
2178
2236
  }
2179
2237
  }), e.default = void 0;
2180
- var n = d(se), t = h(/* @__PURE__ */ yt()), r = h(at), i = ln(), o = Oe(), s = bt(), u = xe(), y = h(dn()), m = h(vt());
2181
- function h(S) {
2182
- return S && S.__esModule ? S : { default: S };
2183
- }
2184
- function d(S, T) {
2185
- if (typeof WeakMap == "function") var C = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap();
2186
- return (d = function(c, N) {
2187
- if (!N && c && c.__esModule) return c;
2188
- var l, f, P = { __proto__: null, default: c };
2189
- if (c === null || typeof c != "object" && typeof c != "function") return P;
2190
- if (l = N ? D : C) {
2191
- if (l.has(c)) return l.get(c);
2192
- l.set(c, P);
2238
+ var n = u(se), t = h(/* @__PURE__ */ yt()), r = h(st), i = ln(), o = Re(), s = bt(), d = we(), y = h(un()), m = h(vt());
2239
+ function h(C) {
2240
+ return C && C.__esModule ? C : { default: C };
2241
+ }
2242
+ function u(C, T) {
2243
+ if (typeof WeakMap == "function") var S = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap();
2244
+ return (u = function(l, N) {
2245
+ if (!N && l && l.__esModule) return l;
2246
+ var c, f, P = { __proto__: null, default: l };
2247
+ if (l === null || typeof l != "object" && typeof l != "function") return P;
2248
+ if (c = N ? D : S) {
2249
+ if (c.has(l)) return c.get(l);
2250
+ c.set(l, P);
2193
2251
  }
2194
- for (const $ in c) $ !== "default" && {}.hasOwnProperty.call(c, $) && ((f = (l = Object.defineProperty) && Object.getOwnPropertyDescriptor(c, $)) && (f.get || f.set) ? l(P, $, f) : P[$] = c[$]);
2252
+ for (const $ in l) $ !== "default" && {}.hasOwnProperty.call(l, $) && ((f = (c = Object.defineProperty) && Object.getOwnPropertyDescriptor(l, $)) && (f.get || f.set) ? c(P, $, f) : P[$] = l[$]);
2195
2253
  return P;
2196
- })(S, T);
2254
+ })(C, T);
2197
2255
  }
2198
2256
  function g() {
2199
- return g = Object.assign ? Object.assign.bind() : function(S) {
2257
+ return g = Object.assign ? Object.assign.bind() : function(C) {
2200
2258
  for (var T = 1; T < arguments.length; T++) {
2201
- var C = arguments[T];
2202
- for (var D in C) ({}).hasOwnProperty.call(C, D) && (S[D] = C[D]);
2259
+ var S = arguments[T];
2260
+ for (var D in S) ({}).hasOwnProperty.call(S, D) && (C[D] = S[D]);
2203
2261
  }
2204
- return S;
2262
+ return C;
2205
2263
  }, g.apply(null, arguments);
2206
2264
  }
2207
- function p(S, T, C) {
2208
- return (T = w(T)) in S ? Object.defineProperty(S, T, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : S[T] = C, S;
2265
+ function p(C, T, S) {
2266
+ return (T = x(T)) in C ? Object.defineProperty(C, T, { value: S, enumerable: !0, configurable: !0, writable: !0 }) : C[T] = S, C;
2209
2267
  }
2210
- function w(S) {
2211
- var T = b(S, "string");
2268
+ function x(C) {
2269
+ var T = b(C, "string");
2212
2270
  return typeof T == "symbol" ? T : T + "";
2213
2271
  }
2214
- function b(S, T) {
2215
- if (typeof S != "object" || !S) return S;
2216
- var C = S[Symbol.toPrimitive];
2217
- if (C !== void 0) {
2218
- var D = C.call(S, T);
2272
+ function b(C, T) {
2273
+ if (typeof C != "object" || !C) return C;
2274
+ var S = C[Symbol.toPrimitive];
2275
+ if (S !== void 0) {
2276
+ var D = S.call(C, T);
2219
2277
  if (typeof D != "object") return D;
2220
2278
  throw new TypeError("@@toPrimitive must return a primitive value.");
2221
2279
  }
2222
- return (T === "string" ? String : Number)(S);
2280
+ return (T === "string" ? String : Number)(C);
2223
2281
  }
2224
2282
  class v extends n.Component {
2225
2283
  // React 16.3+
2226
2284
  // Arity (props, state)
2227
- static getDerivedStateFromProps(T, C) {
2285
+ static getDerivedStateFromProps(T, S) {
2228
2286
  let {
2229
2287
  position: D
2230
2288
  } = T, {
2231
- prevPropsPosition: c
2232
- } = C;
2233
- return D && (!c || D.x !== c.x || D.y !== c.y) ? ((0, m.default)("Draggable: getDerivedStateFromProps %j", {
2289
+ prevPropsPosition: l
2290
+ } = S;
2291
+ return D && (!l || D.x !== l.x || D.y !== l.y) ? ((0, m.default)("Draggable: getDerivedStateFromProps %j", {
2234
2292
  position: D,
2235
- prevPropsPosition: c
2293
+ prevPropsPosition: l
2236
2294
  }), {
2237
2295
  x: D.x,
2238
2296
  y: D.y,
@@ -2242,18 +2300,18 @@ function un() {
2242
2300
  }) : null;
2243
2301
  }
2244
2302
  constructor(T) {
2245
- super(T), p(this, "onDragStart", (C, D) => {
2246
- if ((0, m.default)("Draggable: onDragStart: %j", D), this.props.onStart(C, (0, s.createDraggableData)(this, D)) === !1) return !1;
2303
+ super(T), p(this, "onDragStart", (S, D) => {
2304
+ if ((0, m.default)("Draggable: onDragStart: %j", D), this.props.onStart(S, (0, s.createDraggableData)(this, D)) === !1) return !1;
2247
2305
  this.setState({
2248
2306
  dragging: !0,
2249
2307
  dragged: !0
2250
2308
  });
2251
- }), p(this, "onDrag", (C, D) => {
2309
+ }), p(this, "onDrag", (S, D) => {
2252
2310
  if (!this.state.dragging) return !1;
2253
2311
  (0, m.default)("Draggable: onDrag: %j", D);
2254
- const c = (0, s.createDraggableData)(this, D), N = {
2255
- x: c.x,
2256
- y: c.y,
2312
+ const l = (0, s.createDraggableData)(this, D), N = {
2313
+ x: l.x,
2314
+ y: l.y,
2257
2315
  slackX: 0,
2258
2316
  slackY: 0
2259
2317
  };
@@ -2264,12 +2322,12 @@ function un() {
2264
2322
  } = N;
2265
2323
  N.x += this.state.slackX, N.y += this.state.slackY;
2266
2324
  const [$, O] = (0, s.getBoundPosition)(this, N.x, N.y);
2267
- 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;
2325
+ 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;
2268
2326
  }
2269
- if (this.props.onDrag(C, c) === !1) return !1;
2327
+ if (this.props.onDrag(S, l) === !1) return !1;
2270
2328
  this.setState(N);
2271
- }), p(this, "onDragStop", (C, D) => {
2272
- if (!this.state.dragging || this.props.onStop(C, (0, s.createDraggableData)(this, D)) === !1) return !1;
2329
+ }), p(this, "onDragStop", (S, D) => {
2330
+ if (!this.state.dragging || this.props.onStop(S, (0, s.createDraggableData)(this, D)) === !1) return !1;
2273
2331
  (0, m.default)("Draggable: onDragStop: %j", D);
2274
2332
  const N = {
2275
2333
  dragging: !1,
@@ -2320,11 +2378,11 @@ function un() {
2320
2378
  render() {
2321
2379
  const {
2322
2380
  axis: T,
2323
- bounds: C,
2381
+ bounds: S,
2324
2382
  children: D,
2325
- defaultPosition: c,
2383
+ defaultPosition: l,
2326
2384
  defaultClassName: N,
2327
- defaultClassNameDragging: l,
2385
+ defaultClassNameDragging: c,
2328
2386
  defaultClassNameDragged: f,
2329
2387
  position: P,
2330
2388
  positionOffset: $,
@@ -2332,7 +2390,7 @@ function un() {
2332
2390
  ...E
2333
2391
  } = this.props;
2334
2392
  let z = {}, X = null;
2335
- const H = !!!P || this.state.dragging, ee = P || c, ae = {
2393
+ const H = !!!P || this.state.dragging, ee = P || l, ae = {
2336
2394
  // Set left if horizontal drag is enabled
2337
2395
  x: (0, s.canDragX)(this) && H ? this.state.x : ee.x,
2338
2396
  // Set top if vertical drag is enabled
@@ -2340,7 +2398,7 @@ function un() {
2340
2398
  };
2341
2399
  this.state.isElementSVG ? X = (0, o.createSVGTransform)(ae, $) : z = (0, o.createCSSTransform)(ae, $);
2342
2400
  const de = (0, i.clsx)(D.props.className || "", N, {
2343
- [l]: this.state.dragging,
2401
+ [c]: this.state.dragging,
2344
2402
  [f]: this.state.dragged
2345
2403
  });
2346
2404
  return /* @__PURE__ */ n.createElement(y.default, g({}, E, {
@@ -2461,9 +2519,9 @@ function un() {
2461
2519
  /**
2462
2520
  * These properties should be defined on the child, not here.
2463
2521
  */
2464
- className: u.dontSetMe,
2465
- style: u.dontSetMe,
2466
- transform: u.dontSetMe
2522
+ className: d.dontSetMe,
2523
+ style: d.dontSetMe,
2524
+ transform: d.dontSetMe
2467
2525
  }), p(v, "defaultProps", {
2468
2526
  ...y.default.defaultProps,
2469
2527
  axis: "both",
@@ -2477,20 +2535,20 @@ function un() {
2477
2535
  },
2478
2536
  scale: 1
2479
2537
  });
2480
- })(Ce)), Ce;
2538
+ })(Se)), Se;
2481
2539
  }
2482
- var ot;
2483
- function fn() {
2484
- if (ot) return fe.exports;
2485
- ot = 1;
2540
+ var it;
2541
+ function hn() {
2542
+ if (it) return fe.exports;
2543
+ it = 1;
2486
2544
  const {
2487
2545
  default: e,
2488
2546
  DraggableCore: n
2489
- } = un();
2547
+ } = fn();
2490
2548
  return fe.exports = e, fe.exports.default = e, fe.exports.DraggableCore = n, fe.exports;
2491
2549
  }
2492
- var hn = fn();
2493
- const gn = /* @__PURE__ */ en(hn), mn = le((e, n) => {
2550
+ var gn = hn();
2551
+ const mn = /* @__PURE__ */ tn(gn), pn = ce((e, n) => {
2494
2552
  const r = {
2495
2553
  ...{
2496
2554
  // 1. Take it out of the document flow
@@ -2508,11 +2566,11 @@ const gn = /* @__PURE__ */ en(hn), mn = le((e, n) => {
2508
2566
  boxShadow: "rgba(0, 0, 0, 0.5) 7px 7px 10px 0px"
2509
2567
  },
2510
2568
  ...e.style || {}
2511
- }, i = e.testId || "not-set", o = e.className || "panel", s = xt(null);
2569
+ }, i = e.testId || "not-set", o = e.className || "panel", s = wt(null);
2512
2570
  return (
2513
2571
  // 3. Pass the internal ref to the Draggable component via 'nodeRef'
2514
2572
  /* @__PURE__ */ a(
2515
- gn,
2573
+ mn,
2516
2574
  {
2517
2575
  nodeRef: s,
2518
2576
  "data-testid": i,
@@ -2530,13 +2588,13 @@ const gn = /* @__PURE__ */ en(hn), mn = le((e, n) => {
2530
2588
  }
2531
2589
  )
2532
2590
  );
2533
- }), Hn = (e) => {
2591
+ }), Jn = (e) => {
2534
2592
  console.warn("showToast TODO", e);
2535
- }, pn = (e) => e < 0.8 ? 1 : e <= 1 ? 0 : e > 1 ? -1 : 0, Xn = le((e, n) => {
2536
- let t = st(Number(e.zoomScale || 0));
2593
+ }, yn = (e) => e < 0.8 ? 1 : e <= 1 ? 0 : e > 1 ? -1 : 0, Qn = ce((e, n) => {
2594
+ let t = ct(Number(e.zoomScale || 0));
2537
2595
  const r = e.responsiveGrid || !1, i = e.isEditing || !1, o = {
2538
2596
  "--bwj-dashboard-transform-scale": t,
2539
- "--bwj-dashboard-add-cols": pn(t)
2597
+ "--bwj-dashboard-add-cols": yn(t)
2540
2598
  }, s = Z(
2541
2599
  "dashboard-main-grid w-full",
2542
2600
  i ? "editing" : "",
@@ -2545,7 +2603,7 @@ const gn = /* @__PURE__ */ en(hn), mn = le((e, n) => {
2545
2603
  "border border-solid border-primary"
2546
2604
  );
2547
2605
  return /* @__PURE__ */ a("div", { className: s, style: o, children: e.children });
2548
- }), Pe = "size-5", yn = (e, n) => {
2606
+ }), Pe = "size-5", bn = (e, n) => {
2549
2607
  const t = e.hideTitle && !e.isEditing, r = e.noBorder;
2550
2608
  let i = `dashboard-widget ${e.isEditing ? "editing" : ""} border border-solid`;
2551
2609
  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`);
@@ -2553,23 +2611,23 @@ const gn = /* @__PURE__ */ en(hn), mn = le((e, n) => {
2553
2611
  e.onRemoveClick && e.widgetKey && e.onRemoveClick(e.widgetKey, e.parentWidgetKey);
2554
2612
  }, s = (y) => {
2555
2613
  e.onMoveClick && e.widgetKey && e.onMoveClick(y, e.widgetKey, e.parentWidgetKey);
2556
- }, u = Z(
2614
+ }, d = Z(
2557
2615
  "widget-header",
2558
2616
  t ? "hidden" : "flex items-center justify-between border-b border-solid border-card-invert",
2559
2617
  t ? "border-opacity-0" : "border-opacity-20"
2560
2618
  );
2561
- return /* @__PURE__ */ I("div", { className: i, children: [
2562
- /* @__PURE__ */ I("div", { className: u, children: [
2563
- /* @__PURE__ */ I("div", { className: "widget-title-wrapper w-full flex flex-row gap-2 items-center justify-between", children: [
2564
- /* @__PURE__ */ I("h2", { className: "widget-title", children: [
2619
+ return /* @__PURE__ */ W("div", { className: i, children: [
2620
+ /* @__PURE__ */ W("div", { className: d, children: [
2621
+ /* @__PURE__ */ W("div", { className: "widget-title-wrapper w-full flex flex-row gap-2 items-center justify-between", children: [
2622
+ /* @__PURE__ */ W("h2", { className: "widget-title", children: [
2565
2623
  e.title,
2566
2624
  " "
2567
2625
  ] }),
2568
2626
  /* @__PURE__ */ a("div", {})
2569
2627
  ] }),
2570
- /* @__PURE__ */ a("div", { "data-testid": "collapse-and-other-actions", children: /* @__PURE__ */ I("div", { className: "actions-inner", children: [
2628
+ /* @__PURE__ */ a("div", { "data-testid": "collapse-and-other-actions", children: /* @__PURE__ */ W("div", { className: "actions-inner", children: [
2571
2629
  /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a("span", { className: "hidden", children: "Widget" }) }),
2572
- /* @__PURE__ */ I("div", { className: "actions-buttons-container", children: [
2630
+ /* @__PURE__ */ W("div", { className: "actions-buttons-container", children: [
2573
2631
  /* @__PURE__ */ a(
2574
2632
  J,
2575
2633
  {
@@ -2616,9 +2674,9 @@ const gn = /* @__PURE__ */ en(hn), mn = le((e, n) => {
2616
2674
  ] }),
2617
2675
  /* @__PURE__ */ a("div", { className: "widget-inner", children: e.children })
2618
2676
  ] });
2619
- }, bn = le(yn);
2620
- function vn(e) {
2621
- return /* @__PURE__ */ a("div", { className: "dashboard-widget", children: /* @__PURE__ */ I("div", { className: "absolute inset-0 bg-black flex flex-col items-center justify-center text-center", children: [
2677
+ }, vn = ce(bn);
2678
+ function wn(e) {
2679
+ 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: [
2622
2680
  /* @__PURE__ */ a("div", { className: "w-full absolute opacity-100 text-primary", children: e.title }),
2623
2681
  /* @__PURE__ */ a("div", { className: "animate-ping rounded-full h-32 w-32 border-8 border-white" })
2624
2682
  ] }) });
@@ -2631,88 +2689,88 @@ function xn({
2631
2689
  targetContainerKey: i,
2632
2690
  childWidgetsConfig: o,
2633
2691
  widgetCatalog: s,
2634
- isEditing: u,
2692
+ isEditing: d,
2635
2693
  onRemoveClick: y,
2636
2694
  onMoveClick: m,
2637
2695
  selectContainer: h
2638
2696
  }) {
2639
- const d = `${t}`.split("_"), g = d.length > 1, p = g ? d[0] : t, w = s.get(p);
2640
- if (!w)
2641
- return /* @__PURE__ */ a("div", { className: "flex", children: /* @__PURE__ */ I("p", { children: [
2697
+ const u = `${t}`.split("_"), g = u.length > 1, p = g ? u[0] : t, x = s.get(p);
2698
+ if (!x)
2699
+ return /* @__PURE__ */ a("div", { className: "flex", children: /* @__PURE__ */ W("p", { children: [
2642
2700
  "Widget not found in catalog: ",
2643
2701
  p
2644
2702
  ] }) });
2645
2703
  let b = null, v = !1;
2646
- if (w.component ? (b = w.component, v = !1) : w.loader && (v = !0, b = it(() => {
2647
- if (!w) return null;
2648
- if (w.component)
2649
- return w.component;
2650
- if (w.loader) {
2651
- const l = async () => {
2704
+ if (x.component ? (b = x.component, v = !1) : x.loader && (v = !0, b = at(() => {
2705
+ if (!x) return null;
2706
+ if (x.component)
2707
+ return x.component;
2708
+ if (x.loader) {
2709
+ const c = async () => {
2652
2710
  try {
2653
- return await w.loader();
2711
+ return await x.loader();
2654
2712
  } catch (f) {
2655
2713
  return console.error(`CDN Load Failure for ${t}:`, f), {
2656
- default: () => /* @__PURE__ */ a(bn, { ...D, children: /* @__PURE__ */ I("div", { className: "p-4 border border-dashed border-danger", children: [
2657
- /* @__PURE__ */ I("p", { className: "font-bold", children: [
2714
+ default: () => /* @__PURE__ */ a(vn, { ...D, children: /* @__PURE__ */ W("div", { className: "p-4 border border-dashed border-danger", children: [
2715
+ /* @__PURE__ */ W("p", { className: "font-bold", children: [
2658
2716
  'Failed to load "',
2659
2717
  t,
2660
2718
  '"'
2661
2719
  ] }),
2662
2720
  /* @__PURE__ */ a("p", { className: "text-xs italic", children: "The remote plugin is unavailable or incompatible." }),
2663
- /* @__PURE__ */ a("pre", { className: "text-xs overflow-hidden", children: JSON.stringify(w.meta || {}, null, 2) })
2721
+ /* @__PURE__ */ a("pre", { className: "text-xs overflow-hidden", children: JSON.stringify(x.meta || {}, null, 2) })
2664
2722
  ] }) })
2665
2723
  };
2666
2724
  }
2667
2725
  };
2668
- return se.lazy(l);
2726
+ return se.lazy(c);
2669
2727
  }
2670
2728
  return null;
2671
- }, [w, t])), !b)
2672
- return /* @__PURE__ */ a("div", { className: "flex", children: /* @__PURE__ */ I("p", { children: [
2729
+ }, [x, t])), !b)
2730
+ return /* @__PURE__ */ a("div", { className: "flex", children: /* @__PURE__ */ W("p", { children: [
2673
2731
  "Widget definition incomplete: ",
2674
2732
  p
2675
2733
  ] }) });
2676
- const S = !!w.isContainer, T = g ? ht(t) : "", C = S ? (o || []).filter((l) => l.parentWidgetKey === t) : [], D = {
2734
+ const C = !!x.isContainer, T = g ? ht(t) : "", S = C ? (o || []).filter((c) => c.parentWidgetKey === t) : [], D = {
2677
2735
  index: e,
2678
2736
  maxIndex: n,
2679
2737
  widgetKey: t,
2680
2738
  parentWidgetKey: r,
2681
- isEditing: u,
2682
- title: g ? T : w.title,
2739
+ isEditing: d,
2740
+ title: g ? T : x.title,
2683
2741
  onRemoveClick: y,
2684
2742
  onMoveClick: m
2685
- }, c = S ? {
2743
+ }, l = C ? {
2686
2744
  highlight: i === t,
2687
2745
  selectContainer: h,
2688
2746
  // The children prop is the recursive call back to DynamicWidgetLoader
2689
- children: C.map((l, f) => /* @__PURE__ */ a(
2747
+ children: S.map((c, f) => /* @__PURE__ */ a(
2690
2748
  xn,
2691
2749
  {
2692
2750
  index: f,
2693
- maxIndex: C.length - 1,
2694
- widgetKey: l.widgetKey,
2695
- parentWidgetKey: l.parentWidgetKey,
2751
+ maxIndex: S.length - 1,
2752
+ widgetKey: c.widgetKey,
2753
+ parentWidgetKey: c.parentWidgetKey,
2696
2754
  widgetCatalog: s,
2697
- isEditing: u,
2755
+ isEditing: d,
2698
2756
  onRemoveClick: y,
2699
2757
  onMoveClick: m
2700
2758
  },
2701
- `${l.widgetKey}_${f}`
2759
+ `${c.widgetKey}_${f}`
2702
2760
  ))
2703
- } : {}, N = () => /* @__PURE__ */ a(b, { ...D, ...c });
2704
- return v ? /* @__PURE__ */ a(wt, { fallback: /* @__PURE__ */ a(vn, { title: `Loading ${w.title}` }), children: /* @__PURE__ */ a(N, {}) }) : /* @__PURE__ */ a(N, {});
2761
+ } : {}, N = () => /* @__PURE__ */ a(b, { ...D, ...l });
2762
+ return v ? /* @__PURE__ */ a(xt, { fallback: /* @__PURE__ */ a(wn, { title: `Loading ${x.title}` }), children: /* @__PURE__ */ a(N, {}) }) : /* @__PURE__ */ a(N, {});
2705
2763
  }
2706
2764
  const ve = "size-5";
2707
- function Re(e) {
2765
+ function ke(e) {
2708
2766
  const n = e.highlight || !1, t = e.direction || "column", r = e.children.length > 0, i = e.isEditing || !1;
2709
- let u = n ? "border-transparent" : i && !r ? "border-card-invert" : "border-transparent";
2767
+ let d = n ? "border-transparent" : i && !r ? "border-card-invert" : "border-transparent";
2710
2768
  const y = ["large", "xlarge"].includes(e.size || "");
2711
2769
  let m = "";
2712
2770
  ["large", "xlarge"].indexOf(e.size || "") > -1 && (m = `${e.size}-widget`);
2713
2771
  let h = "";
2714
2772
  t === "row" && !r ? h = "min-h-48" : t === "column" && !r && (h = "min-h-96");
2715
- let d = Z(
2773
+ let u = Z(
2716
2774
  "dashboard-widget-container relative ",
2717
2775
  r ? "" : "has-no-children",
2718
2776
  i ? "editing" : "",
@@ -2720,18 +2778,18 @@ function Re(e) {
2720
2778
  m,
2721
2779
  y ? "widget-container-grid" : "widget-container-flex",
2722
2780
  `direction-${t}`,
2723
- `border ${u}`,
2724
- `${n ? "highlight-container" : ""} ${u}`
2725
- ), g = `widget-container-header direction-${t} flex items-center border-1 ${u}`;
2781
+ `border ${d}`,
2782
+ `${n ? "highlight-container" : ""} ${d}`
2783
+ ), g = `widget-container-header direction-${t} flex items-center border-1 ${d}`;
2726
2784
  const p = () => {
2727
2785
  e.onRemoveClick && e.widgetKey && e.onRemoveClick(e.widgetKey);
2728
- }, w = (v) => {
2786
+ }, x = (v) => {
2729
2787
  e.onMoveClick && e.widgetKey && e.onMoveClick(v, e.widgetKey, e.parentWidgetKey);
2730
2788
  }, b = () => {
2731
2789
  e.selectContainer && e.widgetKey && e.selectContainer(e.widgetKey);
2732
2790
  };
2733
- return /* @__PURE__ */ I("div", { "data-testid": `container_${e.widgetKey}`, className: d, children: [
2734
- /* @__PURE__ */ I("div", { className: g, children: [
2791
+ return /* @__PURE__ */ W("div", { "data-testid": `container_${e.widgetKey}`, className: u, children: [
2792
+ /* @__PURE__ */ W("div", { className: g, children: [
2735
2793
  /* @__PURE__ */ a(
2736
2794
  "div",
2737
2795
  {
@@ -2740,7 +2798,7 @@ function Re(e) {
2740
2798
  children: /* @__PURE__ */ a("span", { className: "text-sm font-semibold capitalize", children: e.title })
2741
2799
  }
2742
2800
  ),
2743
- /* @__PURE__ */ a("div", { "data-testid": "collapse-and-other-actions", children: /* @__PURE__ */ a("div", { className: "actions-inner", children: /* @__PURE__ */ I("div", { className: "actions-buttons-container", children: [
2801
+ /* @__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: [
2744
2802
  /* @__PURE__ */ a(
2745
2803
  J,
2746
2804
  {
@@ -2753,7 +2811,7 @@ function Re(e) {
2753
2811
  },
2754
2812
  onClick: b,
2755
2813
  children: /* @__PURE__ */ a(
2756
- Gt,
2814
+ Zt,
2757
2815
  {
2758
2816
  className: `${ve} ${n ? "text-success" : "text-disabled"}`
2759
2817
  }
@@ -2770,7 +2828,7 @@ function Re(e) {
2770
2828
  placement: "top",
2771
2829
  title: `${e.index < 1 ? "Already at min position" : "Move Container to the left/up"}`
2772
2830
  },
2773
- onClick: () => w(-1),
2831
+ onClick: () => x(-1),
2774
2832
  children: /* @__PURE__ */ a(dt, { className: ve })
2775
2833
  }
2776
2834
  ),
@@ -2784,7 +2842,7 @@ function Re(e) {
2784
2842
  placement: "top",
2785
2843
  title: `${e.index >= e.maxIndex ? "Already at max position" : "Move Container to the right/down"}`
2786
2844
  },
2787
- onClick: () => w(1),
2845
+ onClick: () => x(1),
2788
2846
  children: /* @__PURE__ */ a(ut, { className: ve })
2789
2847
  }
2790
2848
  ),
@@ -2806,17 +2864,17 @@ function Re(e) {
2806
2864
  /* @__PURE__ */ a("div", { "data-testid": `childrenwrapper_${e.widgetKey}`, className: "widget-container-inner", children: e.children })
2807
2865
  ] });
2808
2866
  }
2809
- function Gn(e) {
2867
+ function er(e) {
2810
2868
  const { direction: n, ...t } = e;
2811
- return /* @__PURE__ */ a(Re, { direction: "column", ...t });
2869
+ return /* @__PURE__ */ a(ke, { direction: "column", ...t });
2812
2870
  }
2813
- function Zn(e) {
2871
+ function tr(e) {
2814
2872
  const { size: n, ...t } = e;
2815
- return /* @__PURE__ */ a(Re, { size: "large", ...t });
2873
+ return /* @__PURE__ */ a(ke, { size: "large", ...t });
2816
2874
  }
2817
- function Jn(e) {
2875
+ function nr(e) {
2818
2876
  const { direction: n, ...t } = e;
2819
- return /* @__PURE__ */ a(Re, { direction: "row", ...t });
2877
+ return /* @__PURE__ */ a(ke, { direction: "row", ...t });
2820
2878
  }
2821
2879
  function $e({
2822
2880
  // widgetKey,
@@ -2824,49 +2882,49 @@ function $e({
2824
2882
  alreadyAdded: n,
2825
2883
  addWidget: t
2826
2884
  }) {
2827
- const r = e.icon || Zt, i = e.displayName || "Unknown", o = e.description || "---", u = (e.noDuplicatedWidgets || !1) && n, y = Z(`
2885
+ const r = e.icon || Jt, i = e.displayName || "Unknown", o = e.description || "---", d = (e.noDuplicatedWidgets || !1) && n, y = Z(`
2828
2886
  flex flex-row gap-2 p-2 rounded-md border text-sm bg-card content-card backdrop-opacity-100
2829
- ${u ? "border-disabled fill-disabled text-disabled" : "cursor-pointer border-primary fill-danger hover:fill-primary content-primary hover:brightness-110"}
2887
+ ${d ? "border-disabled fill-disabled text-disabled" : "cursor-pointer border-primary fill-danger hover:fill-primary content-primary hover:brightness-110"}
2830
2888
  `);
2831
- return /* @__PURE__ */ I("div", { className: y, style: { width: "calc(100% - 1rem)" }, onClick: () => {
2832
- u || t();
2889
+ return /* @__PURE__ */ W("div", { className: y, style: { width: "calc(100% - 1rem)" }, onClick: () => {
2890
+ d || t();
2833
2891
  }, children: [
2834
2892
  /* @__PURE__ */ a(r, { className: "" }),
2835
- /* @__PURE__ */ I("div", { className: "w-full", children: [
2836
- /* @__PURE__ */ I("div", { className: "flex flex-row items-center gap-2 justify-between", children: [
2893
+ /* @__PURE__ */ W("div", { className: "w-full", children: [
2894
+ /* @__PURE__ */ W("div", { className: "flex flex-row items-center gap-2 justify-between", children: [
2837
2895
  /* @__PURE__ */ a("span", { className: "font-bold", children: i }),
2838
- /* @__PURE__ */ a("div", { className: "text-xs", children: u ? "(Added)" : "" })
2896
+ /* @__PURE__ */ a("div", { className: "text-xs", children: d ? "(Added)" : "" })
2839
2897
  ] }),
2840
2898
  /* @__PURE__ */ a("div", { className: "flex flex-col gap-2 text-xs", children: /* @__PURE__ */ a("div", { children: o }) })
2841
2899
  ] })
2842
2900
  ] });
2843
2901
  }
2844
- function wn({
2902
+ function Cn({
2845
2903
  item: e,
2846
2904
  onSettingItemChanged: n
2847
2905
  }) {
2848
2906
  const t = e.displayName || "Unknown", r = e.description || "---", i = Z(`
2849
2907
  flex flex-row gap-2 p-2 rounded-md border text-sm bg-card content-card backdrop-opacity-100
2850
- `), o = (u) => {
2851
- const y = u.key;
2908
+ `), o = (d) => {
2909
+ const y = d.key;
2852
2910
  if (["ArrowUp", "ArrowDown"].includes(y)) {
2853
- u.preventDefault();
2911
+ d.preventDefault();
2854
2912
  const m = Nt.incrementOrDecrementValue(
2855
2913
  e,
2856
2914
  y === "ArrowUp" ? 1 : -1
2857
2915
  );
2858
2916
  n(m);
2859
2917
  }
2860
- }, s = (u) => {
2918
+ }, s = (d) => {
2861
2919
  n({
2862
2920
  ...e,
2863
- value: u.target.value || ""
2921
+ value: d.target.value || ""
2864
2922
  });
2865
2923
  };
2866
- return /* @__PURE__ */ a("div", { className: i, style: { width: "calc(100% - 1rem)" }, children: /* @__PURE__ */ I("div", { className: "w-full", children: [
2924
+ return /* @__PURE__ */ a("div", { className: i, style: { width: "calc(100% - 1rem)" }, children: /* @__PURE__ */ W("div", { className: "w-full", children: [
2867
2925
  /* @__PURE__ */ a("div", { className: "flex flex-row items-center gap-2 justify-between", children: /* @__PURE__ */ a("span", { className: "font-bold", children: t }) }),
2868
2926
  /* @__PURE__ */ a("div", { className: "flex flex-col gap-2 text-xs", children: /* @__PURE__ */ a("div", { children: r }) }),
2869
- /* @__PURE__ */ I("div", { children: [
2927
+ /* @__PURE__ */ W("div", { children: [
2870
2928
  "Value:",
2871
2929
  /* @__PURE__ */ a(
2872
2930
  gt,
@@ -2882,11 +2940,11 @@ function wn({
2882
2940
  ] })
2883
2941
  ] }) });
2884
2942
  }
2885
- const Ie = (e, n) => [
2943
+ const We = (e, n) => [
2886
2944
  ...n.widgets.filter((r) => r.indexOf("Container") === -1),
2887
2945
  ...n.childWidgetsConfig.map((r) => r.widgetKey)
2888
2946
  ].includes(e);
2889
- function Qn({
2947
+ function rr({
2890
2948
  targetContainerKey: e,
2891
2949
  widgetsCatalog: n,
2892
2950
  currentDashboardConfig: t,
@@ -2894,41 +2952,41 @@ function Qn({
2894
2952
  addWidget: i,
2895
2953
  addContainer: o,
2896
2954
  onSettingItemsUpdated: s,
2897
- onResetToDefaultDashboardClick: u,
2955
+ onResetToDefaultDashboardClick: d,
2898
2956
  onUndoOrRedo: y,
2899
2957
  onDoneClick: m
2900
2958
  }) {
2901
- const [h, d] = ce("Editing"), [g, p] = ce(0), [w, b] = ce(""), S = Array.from(n.keys()).map((E) => ({
2959
+ const [h, u] = le("Editing"), [g, p] = le(0), [x, b] = le(""), C = Array.from(n.keys()).map((E) => ({
2902
2960
  widgetKey: E,
2903
- metaData: _t(E, n)
2961
+ metaData: Mt(E, n)
2904
2962
  })), T = (E) => {
2905
2963
  b(E.target.value);
2906
- }, C = (E) => {
2907
- const z = w.trim().toLowerCase();
2964
+ }, S = (E) => {
2965
+ const z = x.trim().toLowerCase();
2908
2966
  return z.length < 1 ? !0 : E.displayName.trim().toLowerCase().includes(z) || E.description.toLowerCase().includes(z);
2909
2967
  }, D = (E) => {
2910
- const z = w.trim().toLowerCase();
2968
+ const z = x.trim().toLowerCase();
2911
2969
  return z.length < 1 ? !0 : E.displayName.trim().toLowerCase().includes(z) || E.description.toLowerCase().includes(z);
2912
- }, c = (E) => Z(
2970
+ }, l = (E) => Z(
2913
2971
  "px-4 py-2 font-medium cursor-pointer border-b-2 border-transparent hover:border-primary focus:outline-none",
2914
2972
  E === g ? "text-primary border-primary" : ""
2915
2973
  ), N = !!e;
2916
- St(() => {
2974
+ Ct(() => {
2917
2975
  if (e) {
2918
2976
  p(0);
2919
2977
  const E = ht(e);
2920
- d(`Editing ${E}`);
2978
+ u(`Editing ${E}`);
2921
2979
  } else
2922
- d("Editing Dashboard");
2980
+ u("Editing Dashboard");
2923
2981
  }, [e]);
2924
- const l = (E) => {
2982
+ const c = (E) => {
2925
2983
  N ? i(E, e) : i(E);
2926
2984
  }, f = (E) => {
2927
2985
  const z = (t.cssSettings || []).map((X) => X.key === E.key ? E : X);
2928
2986
  s(z);
2929
- }, [P, $] = ce(!1);
2987
+ }, [P, $] = le(!1);
2930
2988
  return /* @__PURE__ */ a(
2931
- mn,
2989
+ pn,
2932
2990
  {
2933
2991
  testId: "dashboard-catalog-flyout",
2934
2992
  className: "bg-body content-body bg-opacity-70 border-2 border-primary",
@@ -2942,10 +3000,10 @@ function Qn({
2942
3000
  onDraggingChange: (E) => {
2943
3001
  $(E);
2944
3002
  },
2945
- children: /* @__PURE__ */ I("div", { className: "flex flex-col gap-2 p-2", children: [
2946
- /* @__PURE__ */ I("div", { className: "flex flex-row gap-2 justify-between", children: [
2947
- /* @__PURE__ */ I("div", { className: "handle flex-1 flex gap-2 w-full hover:text-primary cursor-grab", children: [
2948
- P ? /* @__PURE__ */ a(Xt, { className: "size-5" }) : /* @__PURE__ */ a(Ht, { className: "size-5" }),
3003
+ children: /* @__PURE__ */ W("div", { className: "flex flex-col gap-2 p-2", children: [
3004
+ /* @__PURE__ */ W("div", { className: "flex flex-row gap-2 justify-between", children: [
3005
+ /* @__PURE__ */ W("div", { className: "handle flex-1 flex gap-2 w-full hover:text-primary cursor-grab", children: [
3006
+ P ? /* @__PURE__ */ a(Gt, { className: "size-5" }) : /* @__PURE__ */ a(Xt, { className: "size-5" }),
2949
3007
  /* @__PURE__ */ a(
2950
3008
  "h2",
2951
3009
  {
@@ -2955,7 +3013,7 @@ function Qn({
2955
3013
  }
2956
3014
  )
2957
3015
  ] }),
2958
- /* @__PURE__ */ I("div", { className: "flex flex-row gap-2 items-center", children: [
3016
+ /* @__PURE__ */ W("div", { className: "flex flex-row gap-2 items-center", children: [
2959
3017
  /* @__PURE__ */ a(
2960
3018
  J,
2961
3019
  {
@@ -2967,7 +3025,7 @@ function Qn({
2967
3025
  },
2968
3026
  disabled: r.isUndoDisabled,
2969
3027
  onClick: () => y("Undo"),
2970
- children: /* @__PURE__ */ a(Bt, { className: "size-5" })
3028
+ children: /* @__PURE__ */ a(Kt, { className: "size-5" })
2971
3029
  }
2972
3030
  ),
2973
3031
  /* @__PURE__ */ a(
@@ -2981,7 +3039,7 @@ function Qn({
2981
3039
  },
2982
3040
  disabled: r.isRedoDisabled,
2983
3041
  onClick: () => y("Redo"),
2984
- children: /* @__PURE__ */ a(Kt, { className: "size-5" })
3042
+ children: /* @__PURE__ */ a(Ht, { className: "size-5" })
2985
3043
  }
2986
3044
  ),
2987
3045
  /* @__PURE__ */ a(
@@ -2993,17 +3051,17 @@ function Qn({
2993
3051
  placement: "bottom",
2994
3052
  title: "Reset this dashboard to the default configuration"
2995
3053
  },
2996
- onClick: u,
2997
- children: /* @__PURE__ */ a(zt, { className: "size-5" })
3054
+ onClick: d,
3055
+ children: /* @__PURE__ */ a(Bt, { className: "size-5" })
2998
3056
  }
2999
3057
  )
3000
3058
  ] })
3001
3059
  ] }),
3002
- /* @__PURE__ */ I("div", { className: "flex border-b border-gray-200", children: [
3003
- /* @__PURE__ */ a("button", { onClick: () => p(0), className: c(0), children: "Widgets" }),
3004
- /* @__PURE__ */ a("button", { onClick: () => p(1), className: c(1), children: "Charts" }),
3005
- !N && /* @__PURE__ */ a("button", { onClick: () => p(2), className: c(2), children: "Containers" }),
3006
- !N && /* @__PURE__ */ a("button", { onClick: () => p(3), className: c(3), children: /* @__PURE__ */ a(qt, {}) })
3060
+ /* @__PURE__ */ W("div", { className: "flex border-b border-gray-200", children: [
3061
+ /* @__PURE__ */ a("button", { onClick: () => p(0), className: l(0), children: "Widgets" }),
3062
+ /* @__PURE__ */ a("button", { onClick: () => p(1), className: l(1), children: "Charts" }),
3063
+ !N && /* @__PURE__ */ a("button", { onClick: () => p(2), className: l(2), children: "Containers" }),
3064
+ !N && /* @__PURE__ */ a("button", { onClick: () => p(3), className: l(3), children: /* @__PURE__ */ a(zt, {}) })
3007
3065
  ] }),
3008
3066
  /* @__PURE__ */ a("div", { className: "flex items-center justify-between gap-1 w-full", children: /* @__PURE__ */ a(
3009
3067
  gt,
@@ -3011,11 +3069,11 @@ function Qn({
3011
3069
  label: "Filter...",
3012
3070
  size: "small",
3013
3071
  className: "w-full",
3014
- value: w,
3072
+ value: x,
3015
3073
  onChange: T
3016
3074
  }
3017
3075
  ) }),
3018
- /* @__PURE__ */ I(
3076
+ /* @__PURE__ */ W(
3019
3077
  "div",
3020
3078
  {
3021
3079
  className: "flex flex-col gap-2 overflow-x-hidden overflow-y-auto",
@@ -3023,42 +3081,42 @@ function Qn({
3023
3081
  maxHeight: "360px"
3024
3082
  },
3025
3083
  children: [
3026
- g === 0 && S.filter(
3027
- (E) => E.metaData.categories.includes("Widget") && C(E.metaData)
3084
+ g === 0 && C.filter(
3085
+ (E) => E.metaData.categories.includes("Widget") && S(E.metaData)
3028
3086
  ).map((E) => /* @__PURE__ */ a(
3029
3087
  $e,
3030
3088
  {
3031
3089
  widgetKey: E.widgetKey,
3032
3090
  metaData: E.metaData,
3033
- alreadyAdded: Ie(E.widgetKey, t),
3034
- addWidget: () => l(E.widgetKey)
3091
+ alreadyAdded: We(E.widgetKey, t),
3092
+ addWidget: () => c(E.widgetKey)
3035
3093
  },
3036
3094
  E.widgetKey
3037
3095
  )),
3038
- g === 1 && S.filter(
3039
- (E) => E.metaData.categories.includes("Chart") && C(E.metaData)
3096
+ g === 1 && C.filter(
3097
+ (E) => E.metaData.categories.includes("Chart") && S(E.metaData)
3040
3098
  ).map((E) => /* @__PURE__ */ a(
3041
3099
  $e,
3042
3100
  {
3043
3101
  widgetKey: E.widgetKey,
3044
3102
  metaData: E.metaData,
3045
- alreadyAdded: Ie(E.widgetKey, t),
3046
- addWidget: () => l(E.widgetKey)
3103
+ alreadyAdded: We(E.widgetKey, t),
3104
+ addWidget: () => c(E.widgetKey)
3047
3105
  },
3048
3106
  E.widgetKey
3049
3107
  )),
3050
- !N && g === 2 && S.filter((E) => E.metaData.categories.includes("Container")).map((E) => /* @__PURE__ */ a(
3108
+ !N && g === 2 && C.filter((E) => E.metaData.categories.includes("Container")).map((E) => /* @__PURE__ */ a(
3051
3109
  $e,
3052
3110
  {
3053
3111
  widgetKey: E.widgetKey,
3054
3112
  metaData: E.metaData,
3055
- alreadyAdded: Ie(E.widgetKey, t),
3113
+ alreadyAdded: We(E.widgetKey, t),
3056
3114
  addWidget: () => o(E.widgetKey)
3057
3115
  },
3058
3116
  E.widgetKey
3059
3117
  )),
3060
3118
  !N && g === 3 && (t.cssSettings || []).filter(D).map((E) => /* @__PURE__ */ a(
3061
- wn,
3119
+ Cn,
3062
3120
  {
3063
3121
  item: E,
3064
3122
  onSettingItemChanged: f
@@ -3085,63 +3143,67 @@ function Qn({
3085
3143
  );
3086
3144
  }
3087
3145
  export {
3088
- $n as AddIcon,
3146
+ Rn as AddIcon,
3089
3147
  J as Button,
3090
- Zt as CircleQuestionMark,
3091
- Gt as CrosshairIcon,
3092
- Xn as DashboardGrid,
3093
- Ae as DashboardMaxZoomScale,
3094
- je as DashboardMinZoomScale,
3095
- bn as DashboardWidgetBase,
3148
+ Jt as CircleQuestionMark,
3149
+ Zt as CrosshairIcon,
3150
+ Qn as DashboardGrid,
3151
+ Fe as DashboardMaxZoomScale,
3152
+ Ae as DashboardMinZoomScale,
3153
+ vn as DashboardWidgetBase,
3096
3154
  Et as DashboardZoomStep,
3097
- In as DeleteIcon,
3098
- mn as DraggablePanel,
3155
+ kn as DeleteIcon,
3156
+ pn as DraggablePanel,
3099
3157
  xn as DynamicWidgetLoader,
3100
- Wn as EditIcon,
3101
- On as GridIcon,
3102
- Xt as HandGrabIcon,
3103
- Ht as HandIcon,
3104
- Yn as ListItem,
3105
- qn as ListItemLeftChild,
3106
- zn as ListItemMiddleChild,
3107
- Bn as ListItemRightChild,
3108
- Rn as MonitorIcon,
3109
- kn as MonitorSmartphoneIcon,
3158
+ jn as EditIcon,
3159
+ An as GridIcon,
3160
+ Gt as HandGrabIcon,
3161
+ Xt as HandIcon,
3162
+ Kn as ListItem,
3163
+ Hn as ListItemLeftChild,
3164
+ Xn as ListItemMiddleChild,
3165
+ Gn as ListItemRightChild,
3166
+ Fn as MonitorIcon,
3167
+ Ln as MonitorSmartphoneIcon,
3110
3168
  dt as MoveLeftIcon,
3111
3169
  ut as MoveRightIcon,
3112
- Kt as RedoIcon,
3113
- qt as SettingsIcon,
3114
- Qt as Stack,
3170
+ Ht as RedoIcon,
3171
+ zt as SettingsIcon,
3172
+ en as Stack,
3115
3173
  K as SvgBaseWrapper,
3116
- jn as TabletSmartphoneIcon,
3117
- Fn as TargetIcon,
3174
+ Un as TabletSmartphoneIcon,
3175
+ qn as TargetIcon,
3118
3176
  gt as TextField,
3119
- zt as TimerResetIcon,
3120
- Bt as UndoIcon,
3121
- Gn as WidgetContainerColumn,
3122
- Zn as WidgetContainerLarge,
3123
- Jn as WidgetContainerRow,
3124
- Qn as WidgetsCatalogFlyout,
3177
+ Bt as TimerResetIcon,
3178
+ Kt as UndoIcon,
3179
+ er as WidgetContainerColumn,
3180
+ tr as WidgetContainerLarge,
3181
+ nr as WidgetContainerRow,
3182
+ rr as WidgetsCatalogFlyout,
3125
3183
  ft as XCircleIcon,
3126
- An as ZoomInIcon,
3127
- Ln as ZoomOutIcon,
3128
- we as blankDashboardConfig,
3129
- Ct as cssSettingsCatalog,
3130
- Vn as cssVarsUtils,
3184
+ Vn as ZoomInIcon,
3185
+ Yn as ZoomOutIcon,
3186
+ xe as blankDashboardConfig,
3187
+ Pt as createDynamicEntry,
3188
+ Mn as createStaticEntry,
3189
+ St as cssSettingsCatalog,
3190
+ Bn as cssVarsUtils,
3131
3191
  Nt as dashboardSettingsUtils,
3132
- Mt as ensureContainersSequence,
3133
- st as ensureZoomScaleIsWithinRange,
3134
- lt as getDefaultWidgetMetaFromKey,
3135
- Nn as getDefaultWidgetMetaFromMap,
3192
+ _t as ensureContainersSequence,
3193
+ ct as ensureZoomScaleIsWithinRange,
3194
+ Ie as getDefaultWidgetMetaFromKey,
3195
+ _n as getDefaultWidgetMetaFromMap,
3136
3196
  Z as getDistinctCssClasses,
3137
- Tn as getNewZoomScaleWithinRange,
3138
- _t as getWidgetMetaFromCatalog,
3197
+ Nn as getNewZoomScaleWithinRange,
3198
+ Mt as getWidgetMetaFromCatalog,
3139
3199
  ht as parseContainerTitle,
3200
+ Pn as parseKeyAndTitleFromFilePath,
3201
+ $n as remoteWidgetDiscovery,
3140
3202
  En as removeEmptyContainers,
3141
3203
  re as resolveColorFromClass,
3142
- Un as resolvedColors,
3143
- Hn as showToast,
3144
- Mn as useDashboardStorageService,
3145
- _n as useDashboardStore,
3146
- Pn as useDashboardUndoService
3204
+ zn as resolvedColors,
3205
+ Jn as showToast,
3206
+ In as useDashboardStorageService,
3207
+ Wn as useDashboardStore,
3208
+ On as useDashboardUndoService
3147
3209
  };