@tenorlab/react-dashboard 1.0.3 → 1.0.5

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 ce, useCallback as ue, useMemo as at, forwardRef as le, useRef as xt, Suspense as wt, 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",
@@ -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, Le = 1, Et = 0.05, lt = (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 > Le && (n = Le), 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 lt(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
+ }), Fe = (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 ? Fe(e) : Fe), 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), jt = (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
236
  }, kt = (e, n) => {
179
- const t = Rt(e);
237
+ const t = jt(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
+ }, Lt = (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
  };
@@ -245,7 +303,7 @@ const Wt = (e) => {
245
303
  }
246
304
  };
247
305
  }
248
- }, Lt = (e, n, t, r) => {
306
+ }, Ft = (e, n, t, r) => {
249
307
  if ((r || "").trim().length > 0) {
250
308
  const i = e.childWidgetsConfig.filter(
251
309
  (h) => h.parentWidgetKey !== r
@@ -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,16 +336,16 @@ 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
351
  allDashboardConfigs: [we],
@@ -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 = Lt(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 = Ft(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) => {
448
+ }), Wn = Rt()((...e) => ({
449
+ ...Ut(...e)
450
+ })), ct = (e, n) => `dashboards_${n}_${e}`, Vt = async (e, n, t, r) => {
393
451
  const i = localStorage.getItem(ct(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");
@@ -438,12 +496,12 @@ const Wt = (e) => {
438
496
  });
439
497
  const i = JSON.stringify(t);
440
498
  return localStorage.setItem(ct(e, n), i), !0;
441
- }, Yt = {
442
- getSavedDashboards: Ut,
443
- saveDashboards: Vt
444
- }, Mn = () => Yt, Pn = () => {
499
+ }, qt = {
500
+ getSavedDashboards: Vt,
501
+ saveDashboards: Yt
502
+ }, In = () => qt, On = () => {
445
503
  const [e, n] = ce({}), [t, r] = ce({}), i = ue((h) => {
446
- const d = h.dashboardId;
504
+ const u = h.dashboardId;
447
505
  n((g) => {
448
506
  const p = {
449
507
  undoIndex: 0,
@@ -451,47 +509,47 @@ const Wt = (e) => {
451
509
  };
452
510
  return r((w) => ({
453
511
  ...w,
454
- [d]: 0
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 = {
465
- undoIndex: b.length,
521
+ n((u) => {
522
+ const g = h.dashboardId, p = u[g] || [], w = t[g] ?? -1, v = p.slice(0, w + 1), b = {
523
+ undoIndex: v.length,
466
524
  // New index based on trimmed length
467
525
  config: h
468
- }, S = [...b, v];
526
+ }, C = [...v, b];
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, w = Math.min(g - 1, p + 1);
562
+ return w !== p ? { ...u, [h]: w } : u;
505
563
  });
506
564
  },
507
565
  [
@@ -514,10 +572,10 @@ 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;
578
+ const u = t[h] ?? -1, g = e[h]?.length || 0, p = u <= 0, w = u >= g - 1;
521
579
  return { isUndoDisabled: p, isRedoDisabled: w };
522
580
  },
523
581
  undoHistory: e,
@@ -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 jn({ 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 kn({ 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 Ln({ 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 Fn({ 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, w = e.category || "primary", v = e.buttonType || "normal", b = e.disabled || !1, C = e.className || "", T = e.font || "semibold", S = Number((e.border || 0) > 0 ? e.border : 0);
826
884
  let D = (e.borderColor || "").trim();
827
885
  D = D.length > 0 ? D : "";
828
886
  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";
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
+ b ? "text-disabled" : `text-${w} hover:brightness-110 cursor-pointer`,
891
+ C || ""
834
892
  );
835
893
  const $ = [
836
894
  "relative cursor-pointer",
@@ -839,39 +897,39 @@ function J(e) {
839
897
  "text-sm",
840
898
  `font-${T}`
841
899
  ];
842
- if (v)
843
- b === "ghost" ? $.push("text-disabled border-disabled cursor-not-allowed") : $.push("bg-disabled content-disabled border-disabled cursor-not-allowed");
900
+ if (b)
901
+ v === "ghost" ? $.push("text-disabled border-disabled cursor-not-allowed") : $.push("bg-disabled content-disabled border-disabled cursor-not-allowed");
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]", ""));
905
+ Ce.has(v) ? O = `${Ce.get(v)}` : O = `${Ce.get("normal")}`, S < 1 && (O = O.replace("border-[category]", ""));
848
906
  const E = O.replace(/\[category\]/g, w).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")), 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();
852
910
  }, g = () => {
853
911
  const p = e.px || 0.7, w = e.py || 0.25;
854
912
  return {
855
913
  padding: r ? 0 : `${w}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 = le(
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 = le((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 = le(
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 = le((e, n) => /* @__PURE__ */ a(
895
953
  "div",
896
954
  {
897
955
  "data-testid": e.testId || "not-set",
@@ -903,16 +961,16 @@ 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) {
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, w = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, T = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
973
+ function S(c) {
916
974
  if (typeof c == "object" && c !== null) {
917
975
  var N = c.$$typeof;
918
976
  switch (N) {
@@ -923,11 +981,11 @@ function tn() {
923
981
  case r:
924
982
  case o:
925
983
  case i:
926
- case d:
984
+ case u:
927
985
  return c;
928
986
  default:
929
987
  switch (c = c && c.$$typeof, c) {
930
- case u:
988
+ case d:
931
989
  case h:
932
990
  case w:
933
991
  case p:
@@ -943,44 +1001,44 @@ function tn() {
943
1001
  }
944
1002
  }
945
1003
  function D(c) {
946
- return C(c) === m;
1004
+ return S(c) === m;
947
1005
  }
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;
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 = w, V.Memo = p, V.Portal = t, V.Profiler = o, V.StrictMode = i, V.Suspense = u, V.isAsyncMode = function(c) {
1007
+ return D(c) || S(c) === y;
950
1008
  }, V.isConcurrentMode = D, V.isContextConsumer = function(c) {
951
- return C(c) === u;
1009
+ return S(c) === d;
952
1010
  }, V.isContextProvider = function(c) {
953
- return C(c) === s;
1011
+ return S(c) === s;
954
1012
  }, V.isElement = function(c) {
955
1013
  return typeof c == "object" && c !== null && c.$$typeof === n;
956
1014
  }, V.isForwardRef = function(c) {
957
- return C(c) === h;
1015
+ return S(c) === h;
958
1016
  }, V.isFragment = function(c) {
959
- return C(c) === r;
1017
+ return S(c) === r;
960
1018
  }, V.isLazy = function(c) {
961
- return C(c) === w;
1019
+ return S(c) === w;
962
1020
  }, V.isMemo = function(c) {
963
- return C(c) === p;
1021
+ return S(c) === p;
964
1022
  }, V.isPortal = function(c) {
965
- return C(c) === t;
1023
+ return S(c) === t;
966
1024
  }, V.isProfiler = function(c) {
967
- return C(c) === o;
1025
+ return S(c) === o;
968
1026
  }, V.isStrictMode = function(c) {
969
- return C(c) === i;
1027
+ return S(c) === i;
970
1028
  }, V.isSuspense = function(c) {
971
- return C(c) === d;
1029
+ return S(c) === u;
972
1030
  }, 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;
1031
+ return typeof c == "string" || typeof c == "function" || c === r || c === m || c === o || c === i || c === u || c === g || typeof c == "object" && c !== null && (c.$$typeof === w || c.$$typeof === p || c.$$typeof === s || c.$$typeof === d || c.$$typeof === h || c.$$typeof === b || c.$$typeof === C || c.$$typeof === T || c.$$typeof === v);
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, w = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, T = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
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 === w || _.$$typeof === p || _.$$typeof === s || _.$$typeof === d || _.$$typeof === h || _.$$typeof === b || _.$$typeof === C || _.$$typeof === T || _.$$typeof === v);
984
1042
  }
985
1043
  function D(_) {
986
1044
  if (typeof _ == "object" && _ !== null) {
@@ -994,12 +1052,12 @@ 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
1058
  var ke = ge && ge.$$typeof;
1001
1059
  switch (ke) {
1002
- case u:
1060
+ case d:
1003
1061
  case h:
1004
1062
  case w:
1005
1063
  case p:
@@ -1014,7 +1072,7 @@ 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 c = y, N = m, l = d, f = s, P = n, $ = h, O = r, E = w, z = p, X = t, Q = o, H = i, ee = u, ae = !1;
1018
1076
  function de(_) {
1019
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.")), x(_) || D(_) === y;
1020
1078
  }
@@ -1022,15 +1080,15 @@ function nn() {
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;
1029
1087
  }
1030
- function k(_) {
1088
+ function j(_) {
1031
1089
  return typeof _ == "object" && _ !== null && _.$$typeof === n;
1032
1090
  }
1033
- function W(_) {
1091
+ function I(_) {
1034
1092
  return D(_) === h;
1035
1093
  }
1036
1094
  function L(_) {
@@ -1039,7 +1097,7 @@ function nn() {
1039
1097
  function R(_) {
1040
1098
  return D(_) === w;
1041
1099
  }
1042
- function j(_) {
1100
+ function k(_) {
1043
1101
  return D(_) === p;
1044
1102
  }
1045
1103
  function F(_) {
@@ -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 = 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 = j, Y.isForwardRef = I, Y.isFragment = L, Y.isLazy = R, Y.isMemo = k, Y.isPortal = F, 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);
1208
+ u = o[h](s, h, y, d, null, n);
1151
1209
  } catch (w) {
1152
- d = w;
1210
+ u = w;
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,24 +1242,24 @@ 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) {
1247
+ function u(x) {
1190
1248
  var M = x && (m && x[m] || x[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
1264
  elementType: c(),
1207
1265
  instanceOf: N,
@@ -1215,133 +1273,133 @@ function an() {
1215
1273
  function w(x, M) {
1216
1274
  return x === M ? x !== 0 || 1 / x === 1 / M : x !== x && M !== M;
1217
1275
  }
1218
- function b(x, M) {
1276
+ function v(x, M) {
1219
1277
  this.message = x, this.data = M && typeof M == "object" ? M : {}, this.stack = "";
1220
1278
  }
1221
- b.prototype = Error.prototype;
1222
- function v(x) {
1279
+ v.prototype = Error.prototype;
1280
+ function b(x) {
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 j(L, R, k, F, q, U, G) {
1284
+ if (F = F || g, U = U || k, 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 = F + ":" + k;
1234
1292
  !M[te] && // Avoid spamming the console because they are often not actionable except for lib authors
1235
1293
  A < 3 && (o(
1236
1294
  "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."
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[k] == null ? L ? R[k] === null ? new v("The " + q + " `" + U + "` is marked as required " + ("in `" + F + "`, but its value is `null`.")) : new v("The " + q + " `" + U + "` is marked as required in " + ("`" + F + "`, but its value is `undefined`.")) : null : x(R, k, F, q, U);
1241
1299
  }
1242
- var W = k.bind(null, !1);
1243
- return W.isRequired = k.bind(null, !0), W;
1300
+ var I = j.bind(null, !1);
1301
+ return I.isRequired = j.bind(null, !0), I;
1244
1302
  }
1245
- function S(x) {
1246
- function M(A, k, W, L, R, j) {
1247
- var F = A[k], q = H(F);
1303
+ function C(x) {
1304
+ function M(A, j, I, L, R, k) {
1305
+ var F = A[j], q = H(F);
1248
1306
  if (q !== x) {
1249
1307
  var U = ee(F);
1250
- return new b(
1251
- "Invalid " + L + " `" + R + "` of type " + ("`" + U + "` supplied to `" + W + "`, expected ") + ("`" + x + "`."),
1308
+ return new v(
1309
+ "Invalid " + L + " `" + R + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected ") + ("`" + x + "`."),
1252
1310
  { expectedType: x }
1253
1311
  );
1254
1312
  }
1255
1313
  return null;
1256
1314
  }
1257
- return v(M);
1315
+ return b(M);
1258
1316
  }
1259
1317
  function T() {
1260
- return v(s);
1318
+ return b(s);
1261
1319
  }
1262
- function C(x) {
1263
- function M(A, k, W, L, R) {
1320
+ function S(x) {
1321
+ function M(A, j, I, L, R) {
1264
1322
  if (typeof x != "function")
1265
- return new b("Property `" + R + "` of component `" + W + "` has invalid PropType notation inside arrayOf.");
1266
- var j = A[k];
1267
- 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."));
1323
+ return new v("Property `" + R + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
1324
+ var k = A[j];
1325
+ if (!Array.isArray(k)) {
1326
+ var F = H(k);
1327
+ return new v("Invalid " + L + " `" + R + "` of type " + ("`" + F + "` supplied to `" + I + "`, expected an array."));
1270
1328
  }
1271
- for (var q = 0; q < j.length; q++) {
1272
- var U = x(j, q, W, L, R + "[" + q + "]", t);
1329
+ for (var q = 0; q < k.length; q++) {
1330
+ var U = x(k, q, I, L, R + "[" + q + "]", t);
1273
1331
  if (U instanceof Error)
1274
1332
  return U;
1275
1333
  }
1276
1334
  return null;
1277
1335
  }
1278
- return v(M);
1336
+ return b(M);
1279
1337
  }
1280
1338
  function D() {
1281
- function x(M, A, k, W, L) {
1339
+ function x(M, A, j, I, L) {
1282
1340
  var R = M[A];
1283
- if (!u(R)) {
1284
- var j = H(R);
1285
- return new b("Invalid " + W + " `" + L + "` of type " + ("`" + j + "` supplied to `" + k + "`, expected a single ReactElement."));
1341
+ if (!d(R)) {
1342
+ var k = H(R);
1343
+ return new v("Invalid " + I + " `" + L + "` of type " + ("`" + k + "` supplied to `" + j + "`, expected a single ReactElement."));
1286
1344
  }
1287
1345
  return null;
1288
1346
  }
1289
- return v(x);
1347
+ return b(x);
1290
1348
  }
1291
1349
  function c() {
1292
- function x(M, A, k, W, L) {
1350
+ function x(M, A, j, I, L) {
1293
1351
  var R = M[A];
1294
1352
  if (!e.isValidElementType(R)) {
1295
- var j = H(R);
1296
- return new b("Invalid " + W + " `" + L + "` of type " + ("`" + j + "` supplied to `" + k + "`, expected a single ReactElement type."));
1353
+ var k = H(R);
1354
+ return new v("Invalid " + I + " `" + L + "` of type " + ("`" + k + "` supplied to `" + j + "`, expected a single ReactElement type."));
1297
1355
  }
1298
1356
  return null;
1299
1357
  }
1300
- return v(x);
1358
+ return b(x);
1301
1359
  }
1302
1360
  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 + "`."));
1361
+ function M(A, j, I, L, R) {
1362
+ if (!(A[j] instanceof x)) {
1363
+ var k = x.name || g, F = de(A[j]);
1364
+ return new v("Invalid " + L + " `" + R + "` of type " + ("`" + F + "` supplied to `" + I + "`, expected ") + ("instance of `" + k + "`."));
1307
1365
  }
1308
1366
  return null;
1309
1367
  }
1310
- return v(M);
1368
+ return b(M);
1311
1369
  }
1312
1370
  function l(x) {
1313
1371
  if (!Array.isArray(x))
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, j, I, L, R) {
1376
+ for (var k = A[j], F = 0; F < x.length; F++)
1377
+ if (w(k, x[F]))
1320
1378
  return null;
1321
1379
  var q = JSON.stringify(x, 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 v("Invalid " + L + " `" + R + "` of value `" + String(k) + "` " + ("supplied to `" + I + "`, expected one of " + q + "."));
1326
1384
  }
1327
- return v(M);
1385
+ return b(M);
1328
1386
  }
1329
1387
  function f(x) {
1330
- function M(A, k, W, L, R) {
1388
+ function M(A, j, I, L, R) {
1331
1389
  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);
1390
+ return new v("Property `" + R + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
1391
+ var k = A[j], F = H(k);
1334
1392
  if (F !== "object")
1335
- return new b("Invalid " + L + " `" + R + "` of type " + ("`" + F + "` supplied to `" + W + "`, expected an object."));
1336
- for (var q in j)
1337
- if (r(j, q)) {
1338
- var U = x(j, q, W, L, R + "." + q, t);
1393
+ return new v("Invalid " + L + " `" + R + "` of type " + ("`" + F + "` supplied to `" + I + "`, expected an object."));
1394
+ for (var q in k)
1395
+ if (r(k, q)) {
1396
+ var U = x(k, q, I, L, R + "." + q, t);
1339
1397
  if (U instanceof Error)
1340
1398
  return U;
1341
1399
  }
1342
1400
  return null;
1343
1401
  }
1344
- return v(M);
1402
+ return b(M);
1345
1403
  }
1346
1404
  function P(x) {
1347
1405
  if (!Array.isArray(x))
@@ -1353,68 +1411,68 @@ function an() {
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) {
1414
+ function j(I, L, R, k, F) {
1357
1415
  for (var q = [], U = 0; U < x.length; U++) {
1358
- var G = x[U], _ = G(W, L, R, j, F, t);
1416
+ var G = x[U], _ = G(I, L, R, k, F, 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 v("Invalid " + k + " `" + F + "` supplied to " + ("`" + R + "`" + te + "."));
1365
1423
  }
1366
- return v(k);
1424
+ return b(j);
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 x(M, A, j, I, L) {
1428
+ return X(M[A]) ? null : new v("Invalid " + I + " `" + L + "` supplied to " + ("`" + j + "`, expected a ReactNode."));
1371
1429
  }
1372
- return v(x);
1430
+ return b(x);
1373
1431
  }
1374
- function O(x, M, A, k, W) {
1375
- 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 + "`."
1432
+ function O(x, M, A, j, I) {
1433
+ return new v(
1434
+ (x || "React class") + ": " + M + " type `" + A + "." + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
1377
1435
  );
1378
1436
  }
1379
1437
  function E(x) {
1380
- function M(A, k, W, L, R) {
1381
- var j = A[k], F = H(j);
1438
+ function M(A, j, I, L, R) {
1439
+ var k = A[j], F = H(k);
1382
1440
  if (F !== "object")
1383
- return new b("Invalid " + L + " `" + R + "` of type `" + F + "` " + ("supplied to `" + W + "`, expected `object`."));
1441
+ return new v("Invalid " + L + " `" + R + "` of type `" + F + "` " + ("supplied to `" + I + "`, expected `object`."));
1384
1442
  for (var q in x) {
1385
1443
  var U = x[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, L, R, q, ee(U));
1446
+ var G = U(k, q, I, L, R + "." + q, t);
1389
1447
  if (G)
1390
1448
  return G;
1391
1449
  }
1392
1450
  return null;
1393
1451
  }
1394
- return v(M);
1452
+ return b(M);
1395
1453
  }
1396
1454
  function z(x) {
1397
- function M(A, k, W, L, R) {
1398
- var j = A[k], F = H(j);
1455
+ function M(A, j, I, L, R) {
1456
+ var k = A[j], F = H(k);
1399
1457
  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);
1458
+ return new v("Invalid " + L + " `" + R + "` of type `" + F + "` " + ("supplied to `" + I + "`, expected `object`."));
1459
+ var q = n({}, A[j], x);
1402
1460
  for (var U in q) {
1403
1461
  var G = x[U];
1404
1462
  if (r(x, U) && typeof G != "function")
1405
- return O(W, L, R, U, ee(G));
1463
+ return O(I, L, R, U, ee(G));
1406
1464
  if (!G)
1407
- return new b(
1408
- "Invalid " + L + " `" + R + "` key `" + U + "` supplied to `" + W + "`.\nBad object: " + JSON.stringify(A[k], null, " ") + `
1465
+ return new v(
1466
+ "Invalid " + L + " `" + R + "` key `" + U + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(A[j], null, " ") + `
1409
1467
  Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1410
1468
  );
1411
- var _ = G(j, U, W, L, R + "." + U, t);
1469
+ var _ = G(k, U, I, L, R + "." + U, t);
1412
1470
  if (_)
1413
1471
  return _;
1414
1472
  }
1415
1473
  return null;
1416
1474
  }
1417
- return v(M);
1475
+ return b(M);
1418
1476
  }
1419
1477
  function X(x) {
1420
1478
  switch (typeof x) {
@@ -1427,19 +1485,19 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1427
1485
  case "object":
1428
1486
  if (Array.isArray(x))
1429
1487
  return x.every(X);
1430
- if (x === null || u(x))
1488
+ if (x === null || d(x))
1431
1489
  return !0;
1432
- var M = d(x);
1490
+ var M = u(x);
1433
1491
  if (M) {
1434
- var A = M.call(x), k;
1492
+ var A = M.call(x), j;
1435
1493
  if (M !== x.entries) {
1436
- for (; !(k = A.next()).done; )
1437
- if (!X(k.value))
1494
+ for (; !(j = A.next()).done; )
1495
+ if (!X(j.value))
1438
1496
  return !1;
1439
1497
  } else
1440
- for (; !(k = A.next()).done; ) {
1441
- var W = k.value;
1442
- if (W && !X(W[1]))
1498
+ for (; !(j = A.next()).done; ) {
1499
+ var I = j.value;
1500
+ if (I && !X(I[1]))
1443
1501
  return !1;
1444
1502
  }
1445
1503
  } else
@@ -1488,18 +1546,18 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
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 ln() {
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__ */ ln()();
1547
1605
  return me.exports;
1548
1606
  }
1549
- var ye = { exports: {} }, Ge;
1550
- function ln() {
1551
- if (Ge) return ye.exports;
1552
- Ge = 1;
1607
+ var ye = { exports: {} }, Ze;
1608
+ function cn() {
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;
1626
+ var B = {}, oe = {}, Je;
1569
1627
  function xe() {
1570
- if (Ze) return oe;
1571
- Ze = 1, Object.defineProperty(oe, "__esModule", {
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,20 +1671,20 @@ 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());
1686
+ }), B.addClassName = c, B.addEvent = s, B.addUserSelectStyles = T, B.createCSSTransform = p, B.createSVGTransform = w, B.getTouch = b, B.getTouchIdentifier = C, B.getTranslation = v, 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 = xe(), n = t(dn());
1630
1688
  function t(l, f) {
1631
1689
  if (typeof WeakMap == "function") var P = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap();
1632
1690
  return (t = function(O, E) {
@@ -1664,7 +1722,7 @@ function Oe() {
1664
1722
  };
1665
1723
  l.addEventListener ? l.addEventListener(f, P, O) : l.attachEvent ? l.attachEvent("on" + f, P) : l["on" + f] = P;
1666
1724
  }
1667
- function u(l, f, P, $) {
1725
+ function d(l, f, P, $) {
1668
1726
  if (!l) return;
1669
1727
  const O = {
1670
1728
  capture: !0,
@@ -1687,7 +1745,7 @@ function Oe() {
1687
1745
  const P = l.ownerDocument.defaultView.getComputedStyle(l);
1688
1746
  return f -= (0, e.int)(P.paddingTop), f -= (0, e.int)(P.paddingBottom), f;
1689
1747
  }
1690
- function d(l) {
1748
+ function u(l) {
1691
1749
  let f = l.clientWidth;
1692
1750
  const P = l.ownerDocument.defaultView.getComputedStyle(l);
1693
1751
  return f -= (0, e.int)(P.paddingLeft), f -= (0, e.int)(P.paddingRight), f;
@@ -1703,15 +1761,15 @@ function Oe() {
1703
1761
  };
1704
1762
  }
1705
1763
  function p(l, f) {
1706
- const P = b(l, f, "px");
1764
+ const P = v(l, f, "px");
1707
1765
  return {
1708
1766
  [(0, n.browserPrefixToKey)("transform", n.default)]: P
1709
1767
  };
1710
1768
  }
1711
1769
  function w(l, f) {
1712
- return b(l, f, "");
1770
+ return v(l, f, "");
1713
1771
  }
1714
- function b(l, f, P) {
1772
+ function v(l, f, P) {
1715
1773
  let {
1716
1774
  x: $,
1717
1775
  y: O
@@ -1722,10 +1780,10 @@ function Oe() {
1722
1780
  }
1723
1781
  return E;
1724
1782
  }
1725
- function v(l, f) {
1783
+ function b(l, f) {
1726
1784
  return l.targetTouches && (0, e.findInArray)(l.targetTouches, (P) => f === P.identifier) || l.changedTouches && (0, e.findInArray)(l.changedTouches, (P) => f === P.identifier);
1727
1785
  }
1728
- function S(l) {
1786
+ function C(l) {
1729
1787
  if (l.targetTouches && l.targetTouches[0]) return l.targetTouches[0].identifier;
1730
1788
  if (l.changedTouches && l.changedTouches[0]) return l.changedTouches[0].identifier;
1731
1789
  }
@@ -1736,7 +1794,7 @@ function Oe() {
1736
1794
  `, f.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
1737
1795
  `, l.getElementsByTagName("head")[0].appendChild(f)), l.body && c(l.body, "react-draggable-transparent-selection");
1738
1796
  }
1739
- function C(l) {
1797
+ function S(l) {
1740
1798
  window.requestAnimationFrame ? window.requestAnimationFrame(() => {
1741
1799
  D(l);
1742
1800
  }) : D(l);
@@ -1761,57 +1819,57 @@ function Oe() {
1761
1819
  }
1762
1820
  return B;
1763
1821
  }
1764
- var ne = {}, et;
1765
- function bt() {
1766
- if (et) return ne;
1767
- et = 1, Object.defineProperty(ne, "__esModule", {
1822
+ var ne = {}, tt;
1823
+ function vt() {
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 = xe(), n = Re();
1829
+ function t(u, g, p) {
1830
+ if (!u.props.bounds) return [g, p];
1773
1831
  let {
1774
1832
  bounds: w
1775
- } = d.props;
1833
+ } = u.props;
1776
1834
  w = typeof w == "string" ? w : m(w);
1777
- const b = h(d);
1835
+ const v = h(u);
1778
1836
  if (typeof w == "string") {
1779
1837
  const {
1780
- ownerDocument: v
1781
- } = b, S = v.defaultView;
1838
+ ownerDocument: b
1839
+ } = v, C = b.defaultView;
1782
1840
  let T;
1783
- if (w === "parent" ? T = b.parentNode : T = b.getRootNode().querySelector(w), !(T instanceof S.HTMLElement))
1841
+ if (w === "parent" ? T = v.parentNode : T = v.getRootNode().querySelector(w), !(T instanceof C.HTMLElement))
1784
1842
  throw new Error('Bounds selector "' + w + '" could not find an element.');
1785
- const C = T, D = S.getComputedStyle(b), c = S.getComputedStyle(C);
1843
+ const S = T, D = C.getComputedStyle(v), c = C.getComputedStyle(S);
1786
1844
  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)
1845
+ left: -v.offsetLeft + (0, e.int)(c.paddingLeft) + (0, e.int)(D.marginLeft),
1846
+ top: -v.offsetTop + (0, e.int)(c.paddingTop) + (0, e.int)(D.marginTop),
1847
+ right: (0, n.innerWidth)(S) - (0, n.outerWidth)(v) - v.offsetLeft + (0, e.int)(c.paddingRight) - (0, e.int)(D.marginRight),
1848
+ bottom: (0, n.innerHeight)(S) - (0, n.outerHeight)(v) - v.offsetTop + (0, e.int)(c.paddingBottom) - (0, e.int)(D.marginBottom)
1791
1849
  };
1792
1850
  }
1793
1851
  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];
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 w = Math.round(g / u[0]) * u[0], v = Math.round(p / u[1]) * u[1];
1855
+ return [w, v];
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;
1863
+ function s(u, g, p) {
1864
+ const w = typeof g == "number" ? (0, n.getTouch)(u, g) : null;
1807
1865
  if (typeof g == "number" && !w) return null;
1808
- const b = h(p), v = p.props.offsetParent || b.offsetParent || b.ownerDocument.body;
1809
- return (0, n.offsetXYFromParent)(w || d, v, p.props.scale);
1866
+ const v = h(p), b = p.props.offsetParent || v.offsetParent || v.ownerDocument.body;
1867
+ return (0, n.offsetXYFromParent)(w || u, b, p.props.scale);
1810
1868
  }
1811
- function u(d, g, p) {
1812
- const w = !(0, e.isNum)(d.lastX), b = h(d);
1869
+ function d(u, g, p) {
1870
+ const w = !(0, e.isNum)(u.lastX), v = h(u);
1813
1871
  return w ? {
1814
- node: b,
1872
+ node: v,
1815
1873
  deltaX: 0,
1816
1874
  deltaY: 0,
1817
1875
  lastX: g,
@@ -1819,93 +1877,93 @@ function bt() {
1819
1877
  x: g,
1820
1878
  y: p
1821
1879
  } : {
1822
- node: b,
1823
- deltaX: g - d.lastX,
1824
- deltaY: p - d.lastY,
1825
- lastX: d.lastX,
1826
- lastY: d.lastY,
1880
+ node: v,
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;
1860
- function vt() {
1861
- if (tt) return be;
1862
- tt = 1, Object.defineProperty(be, "__esModule", {
1917
+ var he = {}, ve = {}, nt;
1918
+ function bt() {
1919
+ if (nt) return ve;
1920
+ nt = 1, Object.defineProperty(ve, "__esModule", {
1863
1921
  value: !0
1864
- }), be.default = e;
1922
+ }), ve.default = e;
1865
1923
  function e() {
1866
1924
  }
1867
- return be;
1925
+ return ve;
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) {
1877
- return b && b.__esModule ? b : { default: b };
1878
- }
1879
- 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);
1933
+ var e = y(se), n = d(/* @__PURE__ */ yt()), t = d(st), r = Re(), i = vt(), o = xe(), s = d(bt());
1934
+ function d(v) {
1935
+ return v && v.__esModule ? v : { default: v };
1936
+ }
1937
+ function y(v, b) {
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 c, N, l = { __proto__: null, default: S };
1942
+ if (S === null || typeof S != "object" && typeof S != "function") return l;
1943
+ if (c = D ? T : C) {
1944
+ if (c.has(S)) return c.get(S);
1945
+ c.set(S, l);
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]);
1947
+ for (const f in S) f !== "default" && {}.hasOwnProperty.call(S, f) && ((N = (c = Object.defineProperty) && Object.getOwnPropertyDescriptor(S, f)) && (N.get || N.set) ? c(l, f, N) : l[f] = S[f]);
1890
1948
  return l;
1891
- })(b, v);
1949
+ })(v, b);
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(v, b, C) {
1952
+ return (b = h(b)) in v ? Object.defineProperty(v, b, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : v[b] = C, v;
1895
1953
  }
1896
- function h(b) {
1897
- var v = d(b, "string");
1898
- return typeof v == "symbol" ? v : v + "";
1954
+ function h(v) {
1955
+ var b = u(v, "string");
1956
+ return typeof b == "symbol" ? b : b + "";
1899
1957
  }
1900
- function d(b, v) {
1901
- 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);
1958
+ function u(v, b) {
1959
+ if (typeof v != "object" || !v) return v;
1960
+ var C = v[Symbol.toPrimitive];
1961
+ if (C !== void 0) {
1962
+ var T = C.call(v, b);
1905
1963
  if (typeof T != "object") return T;
1906
1964
  throw new TypeError("@@toPrimitive must return a primitive value.");
1907
1965
  }
1908
- return (v === "string" ? String : Number)(b);
1966
+ return (b === "string" ? String : Number)(v);
1909
1967
  }
1910
1968
  const g = {
1911
1969
  touch: {
@@ -1921,40 +1979,40 @@ function dn() {
1921
1979
  };
1922
1980
  let p = g.mouse, w = class extends e.Component {
1923
1981
  constructor() {
1924
- 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
- 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)
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", (b) => {
1983
+ if (this.props.onMouseDown(b), !this.props.allowAnyClick && typeof b.button == "number" && b.button !== 0) return !1;
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 || !(b.target instanceof T.defaultView.Node) || this.props.handle && !(0, r.matchesSelectorAndParentsTo)(b.target, this.props.handle, C) || this.props.cancel && (0, r.matchesSelectorAndParentsTo)(b.target, this.props.cancel, C))
1933
1991
  return;
1934
- 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);
1992
+ b.type === "touchstart" && !this.props.allowMobileScroll && b.preventDefault();
1993
+ const S = (0, r.getTouchIdentifier)(b);
1994
+ this.touchIdentifier = S;
1995
+ const D = (0, i.getControlPosition)(b, S, this);
1938
1996
  if (D == null) return;
1939
1997
  const {
1940
1998
  x: c,
1941
1999
  y: N
1942
2000
  } = 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));
1944
- }), m(this, "handleDrag", (v) => {
1945
- const S = (0, i.getControlPosition)(v, this.touchIdentifier, this);
1946
- if (S == null) return;
2001
+ (0, s.default)("DraggableCore: handleDragStart: %j", l), (0, s.default)("calling", this.props.onStart), !(this.props.onStart(b, l) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, r.addUserSelectStyles)(T), this.dragging = !0, this.lastX = c, this.lastY = N, (0, r.addEvent)(T, p.move, this.handleDrag), (0, r.addEvent)(T, p.stop, this.handleDragStop));
2002
+ }), m(this, "handleDrag", (b) => {
2003
+ const C = (0, i.getControlPosition)(b, 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;
2010
+ let N = T - this.lastX, l = S - this.lastY;
1953
2011
  if ([N, l] = (0, i.snapToGrid)(this.props.grid, N, l), !N && !l) return;
1954
- T = this.lastX + N, C = this.lastY + l;
2012
+ T = this.lastX + N, S = this.lastY + l;
1955
2013
  }
1956
- const D = (0, i.createCoreData)(this, T, C);
1957
- if ((0, s.default)("DraggableCore: handleDrag: %j", D), this.props.onDrag(v, D) === !1 || this.mounted === !1) {
2014
+ const D = (0, i.createCoreData)(this, T, S);
2015
+ if ((0, s.default)("DraggableCore: handleDrag: %j", D), this.props.onDrag(b, D) === !1 || this.mounted === !1) {
1958
2016
  try {
1959
2017
  this.handleDragStop(new MouseEvent("mouseup"));
1960
2018
  } catch {
@@ -1963,42 +2021,42 @@ function dn() {
1963
2021
  }
1964
2022
  return;
1965
2023
  }
1966
- this.lastX = T, this.lastY = C;
1967
- }), m(this, "handleDragStop", (v) => {
2024
+ this.lastX = T, this.lastY = S;
2025
+ }), m(this, "handleDragStop", (b) => {
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)(b, 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 l = T - this.lastX || 0, f = S - this.lastY || 0;
2035
+ [l, f] = (0, i.snapToGrid)(this.props.grid, l, f), T = this.lastX + l, S = this.lastY + f;
1978
2036
  }
1979
- const D = (0, i.createCoreData)(this, T, C);
1980
- if (this.props.onStop(v, D) === !1 || this.mounted === !1) return !1;
2037
+ const D = (0, i.createCoreData)(this, T, S);
2038
+ if (this.props.onStop(b, 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));
1983
- }), m(this, "onMouseDown", (v) => (p = g.mouse, this.handleDragStart(v))), m(this, "onMouseUp", (v) => (p = g.mouse, this.handleDragStop(v))), m(this, "onTouchStart", (v) => (p = g.touch, this.handleDragStart(v))), m(this, "onTouchEnd", (v) => (p = g.touch, this.handleDragStop(v)));
2041
+ }), m(this, "onMouseDown", (b) => (p = g.mouse, this.handleDragStart(b))), m(this, "onMouseUp", (b) => (p = g.mouse, this.handleDragStop(b))), m(this, "onTouchStart", (b) => (p = g.touch, this.handleDragStart(b))), m(this, "onTouchEnd", (b) => (p = g.touch, this.handleDragStop(b)));
1984
2042
  }
1985
2043
  componentDidMount() {
1986
2044
  this.mounted = !0;
1987
- const v = this.findDOMNode();
1988
- v && (0, r.addEvent)(v, g.touch.start, this.onTouchStart, {
2045
+ const b = this.findDOMNode();
2046
+ b && (0, r.addEvent)(b, g.touch.start, this.onTouchStart, {
1989
2047
  passive: !1
1990
2048
  });
1991
2049
  }
1992
2050
  componentWillUnmount() {
1993
2051
  this.mounted = !1;
1994
- const v = this.findDOMNode();
1995
- if (v) {
2052
+ const b = this.findDOMNode();
2053
+ if (b) {
1996
2054
  const {
1997
- ownerDocument: S
1998
- } = 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, {
2055
+ ownerDocument: C
2056
+ } = b;
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)(b, 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
@@ -2051,8 +2109,8 @@ function dn() {
2051
2109
  * `offsetParent`, if set, uses the passed DOM node to compute drag offsets
2052
2110
  * instead of using the parent node.
2053
2111
  */
2054
- offsetParent: function(b, v) {
2055
- if (b[v] && b[v].nodeType !== 1)
2112
+ offsetParent: function(v, b) {
2113
+ if (v[b] && v[b].nodeType !== 1)
2056
2114
  throw new Error("Draggable's offsetParent must be a DOM Node.");
2057
2115
  },
2058
2116
  /**
@@ -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,59 +2235,59 @@ 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 };
2238
+ var n = u(se), t = h(/* @__PURE__ */ yt()), r = h(st), i = cn(), o = Re(), s = vt(), d = xe(), y = h(un()), m = h(bt());
2239
+ function h(C) {
2240
+ return C && C.__esModule ? C : { default: C };
2183
2241
  }
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) {
2242
+ function u(C, T) {
2243
+ if (typeof WeakMap == "function") var S = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap();
2244
+ return (u = function(c, N) {
2187
2245
  if (!N && c && c.__esModule) return c;
2188
2246
  var l, f, P = { __proto__: null, default: c };
2189
2247
  if (c === null || typeof c != "object" && typeof c != "function") return P;
2190
- if (l = N ? D : C) {
2248
+ if (l = N ? D : S) {
2191
2249
  if (l.has(c)) return l.get(c);
2192
2250
  l.set(c, P);
2193
2251
  }
2194
2252
  for (const $ in c) $ !== "default" && {}.hasOwnProperty.call(c, $) && ((f = (l = Object.defineProperty) && Object.getOwnPropertyDescriptor(c, $)) && (f.get || f.set) ? l(P, $, f) : P[$] = c[$]);
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 = w(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 w(C) {
2269
+ var T = v(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 v(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
- class v extends n.Component {
2282
+ class b 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
2289
  prevPropsPosition: c
2232
- } = C;
2290
+ } = S;
2233
2291
  return D && (!c || D.x !== c.x || D.y !== c.y) ? ((0, m.default)("Draggable: getDerivedStateFromProps %j", {
2234
2292
  position: D,
2235
2293
  prevPropsPosition: c
@@ -2242,13 +2300,13 @@ 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
2312
  const c = (0, s.createDraggableData)(this, D), N = {
@@ -2266,10 +2324,10 @@ function un() {
2266
2324
  const [$, O] = (0, s.getBoundPosition)(this, N.x, N.y);
2267
2325
  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;
2268
2326
  }
2269
- if (this.props.onDrag(C, c) === !1) return !1;
2327
+ if (this.props.onDrag(S, c) === !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,7 +2378,7 @@ function un() {
2320
2378
  render() {
2321
2379
  const {
2322
2380
  axis: T,
2323
- bounds: C,
2381
+ bounds: S,
2324
2382
  children: D,
2325
2383
  defaultPosition: c,
2326
2384
  defaultClassName: N,
@@ -2357,7 +2415,7 @@ function un() {
2357
2415
  }));
2358
2416
  }
2359
2417
  }
2360
- e.default = v, p(v, "displayName", "Draggable"), p(v, "propTypes", {
2418
+ e.default = b, p(b, "displayName", "Draggable"), p(b, "propTypes", {
2361
2419
  // Accepts all props <DraggableCore> accepts.
2362
2420
  ...y.default.propTypes,
2363
2421
  /**
@@ -2461,10 +2519,10 @@ 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
2467
- }), p(v, "defaultProps", {
2522
+ className: d.dontSetMe,
2523
+ style: d.dontSetMe,
2524
+ transform: d.dontSetMe
2525
+ }), p(b, "defaultProps", {
2468
2526
  ...y.default.defaultProps,
2469
2527
  axis: "both",
2470
2528
  bounds: !1,
@@ -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 = le((e, n) => {
2494
2552
  const r = {
2495
2553
  ...{
2496
2554
  // 1. Take it out of the document flow
@@ -2512,7 +2570,7 @@ const gn = /* @__PURE__ */ en(hn), mn = le((e, n) => {
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,29 @@ const gn = /* @__PURE__ */ en(hn), mn = le((e, n) => {
2530
2588
  }
2531
2589
  )
2532
2590
  );
2533
- }), Hn = (e) => {
2591
+ });
2592
+ function Jn({ children: e }) {
2593
+ return /* @__PURE__ */ a(
2594
+ "div",
2595
+ {
2596
+ className: "w-full h-full flex-1 flex flex-col gap-2 items-end justify-end content-end",
2597
+ style: {
2598
+ minHeight: "140px"
2599
+ },
2600
+ children: e
2601
+ }
2602
+ );
2603
+ }
2604
+ function Qn({ children: e }) {
2605
+ return /* @__PURE__ */ a("div", { className: "w-full flex flex-col items-end", children: e });
2606
+ }
2607
+ const er = (e) => {
2534
2608
  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));
2609
+ }, yn = (e) => e < 0.8 ? 1 : e <= 1 ? 0 : e > 1 ? -1 : 0, tr = le((e, n) => {
2610
+ let t = lt(Number(e.zoomScale || 0));
2537
2611
  const r = e.responsiveGrid || !1, i = e.isEditing || !1, o = {
2538
2612
  "--bwj-dashboard-transform-scale": t,
2539
- "--bwj-dashboard-add-cols": pn(t)
2613
+ "--bwj-dashboard-add-cols": yn(t)
2540
2614
  }, s = Z(
2541
2615
  "dashboard-main-grid w-full",
2542
2616
  i ? "editing" : "",
@@ -2545,7 +2619,7 @@ const gn = /* @__PURE__ */ en(hn), mn = le((e, n) => {
2545
2619
  "border border-solid border-primary"
2546
2620
  );
2547
2621
  return /* @__PURE__ */ a("div", { className: s, style: o, children: e.children });
2548
- }), Pe = "size-5", yn = (e, n) => {
2622
+ }), Pe = "size-5", vn = (e, n) => {
2549
2623
  const t = e.hideTitle && !e.isEditing, r = e.noBorder;
2550
2624
  let i = `dashboard-widget ${e.isEditing ? "editing" : ""} border border-solid`;
2551
2625
  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 +2627,23 @@ const gn = /* @__PURE__ */ en(hn), mn = le((e, n) => {
2553
2627
  e.onRemoveClick && e.widgetKey && e.onRemoveClick(e.widgetKey, e.parentWidgetKey);
2554
2628
  }, s = (y) => {
2555
2629
  e.onMoveClick && e.widgetKey && e.onMoveClick(y, e.widgetKey, e.parentWidgetKey);
2556
- }, u = Z(
2630
+ }, d = Z(
2557
2631
  "widget-header",
2558
2632
  t ? "hidden" : "flex items-center justify-between border-b border-solid border-card-invert",
2559
2633
  t ? "border-opacity-0" : "border-opacity-20"
2560
2634
  );
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: [
2635
+ return /* @__PURE__ */ W("div", { className: i, children: [
2636
+ /* @__PURE__ */ W("div", { className: d, children: [
2637
+ /* @__PURE__ */ W("div", { className: "widget-title-wrapper w-full flex flex-row gap-2 items-center justify-between", children: [
2638
+ /* @__PURE__ */ W("h2", { className: "widget-title", children: [
2565
2639
  e.title,
2566
2640
  " "
2567
2641
  ] }),
2568
2642
  /* @__PURE__ */ a("div", {})
2569
2643
  ] }),
2570
- /* @__PURE__ */ a("div", { "data-testid": "collapse-and-other-actions", children: /* @__PURE__ */ I("div", { className: "actions-inner", children: [
2644
+ /* @__PURE__ */ a("div", { "data-testid": "collapse-and-other-actions", children: /* @__PURE__ */ W("div", { className: "actions-inner", children: [
2571
2645
  /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a("span", { className: "hidden", children: "Widget" }) }),
2572
- /* @__PURE__ */ I("div", { className: "actions-buttons-container", children: [
2646
+ /* @__PURE__ */ W("div", { className: "actions-buttons-container", children: [
2573
2647
  /* @__PURE__ */ a(
2574
2648
  J,
2575
2649
  {
@@ -2616,14 +2690,14 @@ const gn = /* @__PURE__ */ en(hn), mn = le((e, n) => {
2616
2690
  ] }),
2617
2691
  /* @__PURE__ */ a("div", { className: "widget-inner", children: e.children })
2618
2692
  ] });
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: [
2693
+ }, bn = le(vn);
2694
+ function xn(e) {
2695
+ 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
2696
  /* @__PURE__ */ a("div", { className: "w-full absolute opacity-100 text-primary", children: e.title }),
2623
2697
  /* @__PURE__ */ a("div", { className: "animate-ping rounded-full h-32 w-32 border-8 border-white" })
2624
2698
  ] }) });
2625
2699
  }
2626
- function xn({
2700
+ function wn({
2627
2701
  index: e,
2628
2702
  maxIndex: n,
2629
2703
  widgetKey: t,
@@ -2631,19 +2705,19 @@ function xn({
2631
2705
  targetContainerKey: i,
2632
2706
  childWidgetsConfig: o,
2633
2707
  widgetCatalog: s,
2634
- isEditing: u,
2708
+ isEditing: d,
2635
2709
  onRemoveClick: y,
2636
2710
  onMoveClick: m,
2637
2711
  selectContainer: h
2638
2712
  }) {
2639
- const d = `${t}`.split("_"), g = d.length > 1, p = g ? d[0] : t, w = s.get(p);
2713
+ const u = `${t}`.split("_"), g = u.length > 1, p = g ? u[0] : t, w = s.get(p);
2640
2714
  if (!w)
2641
- return /* @__PURE__ */ a("div", { className: "flex", children: /* @__PURE__ */ I("p", { children: [
2715
+ return /* @__PURE__ */ a("div", { className: "flex", children: /* @__PURE__ */ W("p", { children: [
2642
2716
  "Widget not found in catalog: ",
2643
2717
  p
2644
2718
  ] }) });
2645
- let b = null, v = !1;
2646
- if (w.component ? (b = w.component, v = !1) : w.loader && (v = !0, b = it(() => {
2719
+ let v = null, b = !1;
2720
+ if (w.component ? (v = w.component, b = !1) : w.loader && (b = !0, v = at(() => {
2647
2721
  if (!w) return null;
2648
2722
  if (w.component)
2649
2723
  return w.component;
@@ -2653,8 +2727,8 @@ function xn({
2653
2727
  return await w.loader();
2654
2728
  } catch (f) {
2655
2729
  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: [
2730
+ default: () => /* @__PURE__ */ a(bn, { ...D, children: /* @__PURE__ */ W("div", { className: "p-4 border border-dashed border-danger", children: [
2731
+ /* @__PURE__ */ W("p", { className: "font-bold", children: [
2658
2732
  'Failed to load "',
2659
2733
  t,
2660
2734
  '"'
@@ -2668,51 +2742,51 @@ function xn({
2668
2742
  return se.lazy(l);
2669
2743
  }
2670
2744
  return null;
2671
- }, [w, t])), !b)
2672
- return /* @__PURE__ */ a("div", { className: "flex", children: /* @__PURE__ */ I("p", { children: [
2745
+ }, [w, t])), !v)
2746
+ return /* @__PURE__ */ a("div", { className: "flex", children: /* @__PURE__ */ W("p", { children: [
2673
2747
  "Widget definition incomplete: ",
2674
2748
  p
2675
2749
  ] }) });
2676
- const S = !!w.isContainer, T = g ? ht(t) : "", C = S ? (o || []).filter((l) => l.parentWidgetKey === t) : [], D = {
2750
+ const C = !!w.isContainer, T = g ? ht(t) : "", S = C ? (o || []).filter((l) => l.parentWidgetKey === t) : [], D = {
2677
2751
  index: e,
2678
2752
  maxIndex: n,
2679
2753
  widgetKey: t,
2680
2754
  parentWidgetKey: r,
2681
- isEditing: u,
2755
+ isEditing: d,
2682
2756
  title: g ? T : w.title,
2683
2757
  onRemoveClick: y,
2684
2758
  onMoveClick: m
2685
- }, c = S ? {
2759
+ }, c = C ? {
2686
2760
  highlight: i === t,
2687
2761
  selectContainer: h,
2688
2762
  // The children prop is the recursive call back to DynamicWidgetLoader
2689
- children: C.map((l, f) => /* @__PURE__ */ a(
2690
- xn,
2763
+ children: S.map((l, f) => /* @__PURE__ */ a(
2764
+ wn,
2691
2765
  {
2692
2766
  index: f,
2693
- maxIndex: C.length - 1,
2767
+ maxIndex: S.length - 1,
2694
2768
  widgetKey: l.widgetKey,
2695
2769
  parentWidgetKey: l.parentWidgetKey,
2696
2770
  widgetCatalog: s,
2697
- isEditing: u,
2771
+ isEditing: d,
2698
2772
  onRemoveClick: y,
2699
2773
  onMoveClick: m
2700
2774
  },
2701
2775
  `${l.widgetKey}_${f}`
2702
2776
  ))
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, {});
2777
+ } : {}, N = () => /* @__PURE__ */ a(v, { ...D, ...c });
2778
+ return b ? /* @__PURE__ */ a(wt, { fallback: /* @__PURE__ */ a(xn, { title: `Loading ${w.title}` }), children: /* @__PURE__ */ a(N, {}) }) : /* @__PURE__ */ a(N, {});
2705
2779
  }
2706
- const ve = "size-5";
2707
- function Re(e) {
2780
+ const be = "size-5";
2781
+ function je(e) {
2708
2782
  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";
2783
+ let d = n ? "border-transparent" : i && !r ? "border-card-invert" : "border-transparent";
2710
2784
  const y = ["large", "xlarge"].includes(e.size || "");
2711
2785
  let m = "";
2712
2786
  ["large", "xlarge"].indexOf(e.size || "") > -1 && (m = `${e.size}-widget`);
2713
2787
  let h = "";
2714
2788
  t === "row" && !r ? h = "min-h-48" : t === "column" && !r && (h = "min-h-96");
2715
- let d = Z(
2789
+ let u = Z(
2716
2790
  "dashboard-widget-container relative ",
2717
2791
  r ? "" : "has-no-children",
2718
2792
  i ? "editing" : "",
@@ -2720,27 +2794,27 @@ function Re(e) {
2720
2794
  m,
2721
2795
  y ? "widget-container-grid" : "widget-container-flex",
2722
2796
  `direction-${t}`,
2723
- `border ${u}`,
2724
- `${n ? "highlight-container" : ""} ${u}`
2725
- ), g = `widget-container-header direction-${t} flex items-center border-1 ${u}`;
2797
+ `border ${d}`,
2798
+ `${n ? "highlight-container" : ""} ${d}`
2799
+ ), g = `widget-container-header direction-${t} flex items-center border-1 ${d}`;
2726
2800
  const p = () => {
2727
2801
  e.onRemoveClick && e.widgetKey && e.onRemoveClick(e.widgetKey);
2728
- }, w = (v) => {
2729
- e.onMoveClick && e.widgetKey && e.onMoveClick(v, e.widgetKey, e.parentWidgetKey);
2730
- }, b = () => {
2802
+ }, w = (b) => {
2803
+ e.onMoveClick && e.widgetKey && e.onMoveClick(b, e.widgetKey, e.parentWidgetKey);
2804
+ }, v = () => {
2731
2805
  e.selectContainer && e.widgetKey && e.selectContainer(e.widgetKey);
2732
2806
  };
2733
- return /* @__PURE__ */ I("div", { "data-testid": `container_${e.widgetKey}`, className: d, children: [
2734
- /* @__PURE__ */ I("div", { className: g, children: [
2807
+ return /* @__PURE__ */ W("div", { "data-testid": `container_${e.widgetKey}`, className: u, children: [
2808
+ /* @__PURE__ */ W("div", { className: g, children: [
2735
2809
  /* @__PURE__ */ a(
2736
2810
  "div",
2737
2811
  {
2738
2812
  className: "widget-title-wrapper w-full flex whitespace-nowrap",
2739
- onClick: b,
2813
+ onClick: v,
2740
2814
  children: /* @__PURE__ */ a("span", { className: "text-sm font-semibold capitalize", children: e.title })
2741
2815
  }
2742
2816
  ),
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: [
2817
+ /* @__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
2818
  /* @__PURE__ */ a(
2745
2819
  J,
2746
2820
  {
@@ -2751,11 +2825,11 @@ function Re(e) {
2751
2825
  placement: "top",
2752
2826
  title: "Target this Container"
2753
2827
  },
2754
- onClick: b,
2828
+ onClick: v,
2755
2829
  children: /* @__PURE__ */ a(
2756
- Gt,
2830
+ Zt,
2757
2831
  {
2758
- className: `${ve} ${n ? "text-success" : "text-disabled"}`
2832
+ className: `${be} ${n ? "text-success" : "text-disabled"}`
2759
2833
  }
2760
2834
  )
2761
2835
  }
@@ -2771,7 +2845,7 @@ function Re(e) {
2771
2845
  title: `${e.index < 1 ? "Already at min position" : "Move Container to the left/up"}`
2772
2846
  },
2773
2847
  onClick: () => w(-1),
2774
- children: /* @__PURE__ */ a(dt, { className: ve })
2848
+ children: /* @__PURE__ */ a(dt, { className: be })
2775
2849
  }
2776
2850
  ),
2777
2851
  /* @__PURE__ */ a(
@@ -2785,7 +2859,7 @@ function Re(e) {
2785
2859
  title: `${e.index >= e.maxIndex ? "Already at max position" : "Move Container to the right/down"}`
2786
2860
  },
2787
2861
  onClick: () => w(1),
2788
- children: /* @__PURE__ */ a(ut, { className: ve })
2862
+ children: /* @__PURE__ */ a(ut, { className: be })
2789
2863
  }
2790
2864
  ),
2791
2865
  /* @__PURE__ */ a(
@@ -2798,7 +2872,7 @@ function Re(e) {
2798
2872
  title: "Remove Container"
2799
2873
  },
2800
2874
  onClick: () => p(),
2801
- children: /* @__PURE__ */ a(ft, { className: ve })
2875
+ children: /* @__PURE__ */ a(ft, { className: be })
2802
2876
  }
2803
2877
  )
2804
2878
  ] }) }) })
@@ -2806,17 +2880,17 @@ function Re(e) {
2806
2880
  /* @__PURE__ */ a("div", { "data-testid": `childrenwrapper_${e.widgetKey}`, className: "widget-container-inner", children: e.children })
2807
2881
  ] });
2808
2882
  }
2809
- function Gn(e) {
2883
+ function nr(e) {
2810
2884
  const { direction: n, ...t } = e;
2811
- return /* @__PURE__ */ a(Re, { direction: "column", ...t });
2885
+ return /* @__PURE__ */ a(je, { direction: "column", ...t });
2812
2886
  }
2813
- function Zn(e) {
2887
+ function rr(e) {
2814
2888
  const { size: n, ...t } = e;
2815
- return /* @__PURE__ */ a(Re, { size: "large", ...t });
2889
+ return /* @__PURE__ */ a(je, { size: "large", ...t });
2816
2890
  }
2817
- function Jn(e) {
2891
+ function or(e) {
2818
2892
  const { direction: n, ...t } = e;
2819
- return /* @__PURE__ */ a(Re, { direction: "row", ...t });
2893
+ return /* @__PURE__ */ a(je, { direction: "row", ...t });
2820
2894
  }
2821
2895
  function $e({
2822
2896
  // widgetKey,
@@ -2824,49 +2898,49 @@ function $e({
2824
2898
  alreadyAdded: n,
2825
2899
  addWidget: t
2826
2900
  }) {
2827
- const r = e.icon || Zt, i = e.displayName || "Unknown", o = e.description || "---", u = (e.noDuplicatedWidgets || !1) && n, y = Z(`
2901
+ const r = e.icon || Jt, i = e.displayName || "Unknown", o = e.description || "---", d = (e.noDuplicatedWidgets || !1) && n, y = Z(`
2828
2902
  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"}
2903
+ ${d ? "border-disabled fill-disabled text-disabled" : "cursor-pointer border-primary fill-danger hover:fill-primary content-primary hover:brightness-110"}
2830
2904
  `);
2831
- return /* @__PURE__ */ I("div", { className: y, style: { width: "calc(100% - 1rem)" }, onClick: () => {
2832
- u || t();
2905
+ return /* @__PURE__ */ W("div", { className: y, style: { width: "calc(100% - 1rem)" }, onClick: () => {
2906
+ d || t();
2833
2907
  }, children: [
2834
2908
  /* @__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: [
2909
+ /* @__PURE__ */ W("div", { className: "w-full", children: [
2910
+ /* @__PURE__ */ W("div", { className: "flex flex-row items-center gap-2 justify-between", children: [
2837
2911
  /* @__PURE__ */ a("span", { className: "font-bold", children: i }),
2838
- /* @__PURE__ */ a("div", { className: "text-xs", children: u ? "(Added)" : "" })
2912
+ /* @__PURE__ */ a("div", { className: "text-xs", children: d ? "(Added)" : "" })
2839
2913
  ] }),
2840
2914
  /* @__PURE__ */ a("div", { className: "flex flex-col gap-2 text-xs", children: /* @__PURE__ */ a("div", { children: o }) })
2841
2915
  ] })
2842
2916
  ] });
2843
2917
  }
2844
- function wn({
2918
+ function Cn({
2845
2919
  item: e,
2846
2920
  onSettingItemChanged: n
2847
2921
  }) {
2848
2922
  const t = e.displayName || "Unknown", r = e.description || "---", i = Z(`
2849
2923
  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;
2924
+ `), o = (d) => {
2925
+ const y = d.key;
2852
2926
  if (["ArrowUp", "ArrowDown"].includes(y)) {
2853
- u.preventDefault();
2927
+ d.preventDefault();
2854
2928
  const m = Nt.incrementOrDecrementValue(
2855
2929
  e,
2856
2930
  y === "ArrowUp" ? 1 : -1
2857
2931
  );
2858
2932
  n(m);
2859
2933
  }
2860
- }, s = (u) => {
2934
+ }, s = (d) => {
2861
2935
  n({
2862
2936
  ...e,
2863
- value: u.target.value || ""
2937
+ value: d.target.value || ""
2864
2938
  });
2865
2939
  };
2866
- return /* @__PURE__ */ a("div", { className: i, style: { width: "calc(100% - 1rem)" }, children: /* @__PURE__ */ I("div", { className: "w-full", children: [
2940
+ return /* @__PURE__ */ a("div", { className: i, style: { width: "calc(100% - 1rem)" }, children: /* @__PURE__ */ W("div", { className: "w-full", children: [
2867
2941
  /* @__PURE__ */ a("div", { className: "flex flex-row items-center gap-2 justify-between", children: /* @__PURE__ */ a("span", { className: "font-bold", children: t }) }),
2868
2942
  /* @__PURE__ */ a("div", { className: "flex flex-col gap-2 text-xs", children: /* @__PURE__ */ a("div", { children: r }) }),
2869
- /* @__PURE__ */ I("div", { children: [
2943
+ /* @__PURE__ */ W("div", { children: [
2870
2944
  "Value:",
2871
2945
  /* @__PURE__ */ a(
2872
2946
  gt,
@@ -2882,11 +2956,11 @@ function wn({
2882
2956
  ] })
2883
2957
  ] }) });
2884
2958
  }
2885
- const Ie = (e, n) => [
2959
+ const We = (e, n) => [
2886
2960
  ...n.widgets.filter((r) => r.indexOf("Container") === -1),
2887
2961
  ...n.childWidgetsConfig.map((r) => r.widgetKey)
2888
2962
  ].includes(e);
2889
- function Qn({
2963
+ function ir({
2890
2964
  targetContainerKey: e,
2891
2965
  widgetsCatalog: n,
2892
2966
  currentDashboardConfig: t,
@@ -2894,16 +2968,16 @@ function Qn({
2894
2968
  addWidget: i,
2895
2969
  addContainer: o,
2896
2970
  onSettingItemsUpdated: s,
2897
- onResetToDefaultDashboardClick: u,
2971
+ onResetToDefaultDashboardClick: d,
2898
2972
  onUndoOrRedo: y,
2899
2973
  onDoneClick: m
2900
2974
  }) {
2901
- const [h, d] = ce("Editing"), [g, p] = ce(0), [w, b] = ce(""), S = Array.from(n.keys()).map((E) => ({
2975
+ const [h, u] = ce("Editing"), [g, p] = ce(0), [w, v] = ce(""), C = Array.from(n.keys()).map((E) => ({
2902
2976
  widgetKey: E,
2903
- metaData: _t(E, n)
2977
+ metaData: Mt(E, n)
2904
2978
  })), T = (E) => {
2905
- b(E.target.value);
2906
- }, C = (E) => {
2979
+ v(E.target.value);
2980
+ }, S = (E) => {
2907
2981
  const z = w.trim().toLowerCase();
2908
2982
  return z.length < 1 ? !0 : E.displayName.trim().toLowerCase().includes(z) || E.description.toLowerCase().includes(z);
2909
2983
  }, D = (E) => {
@@ -2913,13 +2987,13 @@ function Qn({
2913
2987
  "px-4 py-2 font-medium cursor-pointer border-b-2 border-transparent hover:border-primary focus:outline-none",
2914
2988
  E === g ? "text-primary border-primary" : ""
2915
2989
  ), N = !!e;
2916
- St(() => {
2990
+ Ct(() => {
2917
2991
  if (e) {
2918
2992
  p(0);
2919
2993
  const E = ht(e);
2920
- d(`Editing ${E}`);
2994
+ u(`Editing ${E}`);
2921
2995
  } else
2922
- d("Editing Dashboard");
2996
+ u("Editing Dashboard");
2923
2997
  }, [e]);
2924
2998
  const l = (E) => {
2925
2999
  N ? i(E, e) : i(E);
@@ -2928,7 +3002,7 @@ function Qn({
2928
3002
  s(z);
2929
3003
  }, [P, $] = ce(!1);
2930
3004
  return /* @__PURE__ */ a(
2931
- mn,
3005
+ pn,
2932
3006
  {
2933
3007
  testId: "dashboard-catalog-flyout",
2934
3008
  className: "bg-body content-body bg-opacity-70 border-2 border-primary",
@@ -2942,10 +3016,10 @@ function Qn({
2942
3016
  onDraggingChange: (E) => {
2943
3017
  $(E);
2944
3018
  },
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" }),
3019
+ children: /* @__PURE__ */ W("div", { className: "flex flex-col gap-2 p-2", children: [
3020
+ /* @__PURE__ */ W("div", { className: "flex flex-row gap-2 justify-between", children: [
3021
+ /* @__PURE__ */ W("div", { className: "handle flex-1 flex gap-2 w-full hover:text-primary cursor-grab", children: [
3022
+ P ? /* @__PURE__ */ a(Gt, { className: "size-5" }) : /* @__PURE__ */ a(Xt, { className: "size-5" }),
2949
3023
  /* @__PURE__ */ a(
2950
3024
  "h2",
2951
3025
  {
@@ -2955,7 +3029,7 @@ function Qn({
2955
3029
  }
2956
3030
  )
2957
3031
  ] }),
2958
- /* @__PURE__ */ I("div", { className: "flex flex-row gap-2 items-center", children: [
3032
+ /* @__PURE__ */ W("div", { className: "flex flex-row gap-2 items-center", children: [
2959
3033
  /* @__PURE__ */ a(
2960
3034
  J,
2961
3035
  {
@@ -2967,7 +3041,7 @@ function Qn({
2967
3041
  },
2968
3042
  disabled: r.isUndoDisabled,
2969
3043
  onClick: () => y("Undo"),
2970
- children: /* @__PURE__ */ a(Bt, { className: "size-5" })
3044
+ children: /* @__PURE__ */ a(Kt, { className: "size-5" })
2971
3045
  }
2972
3046
  ),
2973
3047
  /* @__PURE__ */ a(
@@ -2981,7 +3055,7 @@ function Qn({
2981
3055
  },
2982
3056
  disabled: r.isRedoDisabled,
2983
3057
  onClick: () => y("Redo"),
2984
- children: /* @__PURE__ */ a(Kt, { className: "size-5" })
3058
+ children: /* @__PURE__ */ a(Ht, { className: "size-5" })
2985
3059
  }
2986
3060
  ),
2987
3061
  /* @__PURE__ */ a(
@@ -2993,17 +3067,17 @@ function Qn({
2993
3067
  placement: "bottom",
2994
3068
  title: "Reset this dashboard to the default configuration"
2995
3069
  },
2996
- onClick: u,
2997
- children: /* @__PURE__ */ a(zt, { className: "size-5" })
3070
+ onClick: d,
3071
+ children: /* @__PURE__ */ a(Bt, { className: "size-5" })
2998
3072
  }
2999
3073
  )
3000
3074
  ] })
3001
3075
  ] }),
3002
- /* @__PURE__ */ I("div", { className: "flex border-b border-gray-200", children: [
3076
+ /* @__PURE__ */ W("div", { className: "flex border-b border-gray-200", children: [
3003
3077
  /* @__PURE__ */ a("button", { onClick: () => p(0), className: c(0), children: "Widgets" }),
3004
3078
  /* @__PURE__ */ a("button", { onClick: () => p(1), className: c(1), children: "Charts" }),
3005
3079
  !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, {}) })
3080
+ !N && /* @__PURE__ */ a("button", { onClick: () => p(3), className: c(3), children: /* @__PURE__ */ a(zt, {}) })
3007
3081
  ] }),
3008
3082
  /* @__PURE__ */ a("div", { className: "flex items-center justify-between gap-1 w-full", children: /* @__PURE__ */ a(
3009
3083
  gt,
@@ -3015,7 +3089,7 @@ function Qn({
3015
3089
  onChange: T
3016
3090
  }
3017
3091
  ) }),
3018
- /* @__PURE__ */ I(
3092
+ /* @__PURE__ */ W(
3019
3093
  "div",
3020
3094
  {
3021
3095
  className: "flex flex-col gap-2 overflow-x-hidden overflow-y-auto",
@@ -3023,42 +3097,42 @@ function Qn({
3023
3097
  maxHeight: "360px"
3024
3098
  },
3025
3099
  children: [
3026
- g === 0 && S.filter(
3027
- (E) => E.metaData.categories.includes("Widget") && C(E.metaData)
3100
+ g === 0 && C.filter(
3101
+ (E) => E.metaData.categories.includes("Widget") && S(E.metaData)
3028
3102
  ).map((E) => /* @__PURE__ */ a(
3029
3103
  $e,
3030
3104
  {
3031
3105
  widgetKey: E.widgetKey,
3032
3106
  metaData: E.metaData,
3033
- alreadyAdded: Ie(E.widgetKey, t),
3107
+ alreadyAdded: We(E.widgetKey, t),
3034
3108
  addWidget: () => l(E.widgetKey)
3035
3109
  },
3036
3110
  E.widgetKey
3037
3111
  )),
3038
- g === 1 && S.filter(
3039
- (E) => E.metaData.categories.includes("Chart") && C(E.metaData)
3112
+ g === 1 && C.filter(
3113
+ (E) => E.metaData.categories.includes("Chart") && S(E.metaData)
3040
3114
  ).map((E) => /* @__PURE__ */ a(
3041
3115
  $e,
3042
3116
  {
3043
3117
  widgetKey: E.widgetKey,
3044
3118
  metaData: E.metaData,
3045
- alreadyAdded: Ie(E.widgetKey, t),
3119
+ alreadyAdded: We(E.widgetKey, t),
3046
3120
  addWidget: () => l(E.widgetKey)
3047
3121
  },
3048
3122
  E.widgetKey
3049
3123
  )),
3050
- !N && g === 2 && S.filter((E) => E.metaData.categories.includes("Container")).map((E) => /* @__PURE__ */ a(
3124
+ !N && g === 2 && C.filter((E) => E.metaData.categories.includes("Container")).map((E) => /* @__PURE__ */ a(
3051
3125
  $e,
3052
3126
  {
3053
3127
  widgetKey: E.widgetKey,
3054
3128
  metaData: E.metaData,
3055
- alreadyAdded: Ie(E.widgetKey, t),
3129
+ alreadyAdded: We(E.widgetKey, t),
3056
3130
  addWidget: () => o(E.widgetKey)
3057
3131
  },
3058
3132
  E.widgetKey
3059
3133
  )),
3060
3134
  !N && g === 3 && (t.cssSettings || []).filter(D).map((E) => /* @__PURE__ */ a(
3061
- wn,
3135
+ Cn,
3062
3136
  {
3063
3137
  item: E,
3064
3138
  onSettingItemChanged: f
@@ -3085,63 +3159,69 @@ function Qn({
3085
3159
  );
3086
3160
  }
3087
3161
  export {
3088
- $n as AddIcon,
3162
+ Rn as AddIcon,
3089
3163
  J as Button,
3090
- Zt as CircleQuestionMark,
3091
- Gt as CrosshairIcon,
3092
- Xn as DashboardGrid,
3093
- Ae as DashboardMaxZoomScale,
3094
- je as DashboardMinZoomScale,
3164
+ Jt as CircleQuestionMark,
3165
+ Zt as CrosshairIcon,
3166
+ tr as DashboardGrid,
3167
+ Le as DashboardMaxZoomScale,
3168
+ Ae as DashboardMinZoomScale,
3095
3169
  bn as DashboardWidgetBase,
3096
3170
  Et as DashboardZoomStep,
3097
- In as DeleteIcon,
3098
- mn as DraggablePanel,
3099
- 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,
3171
+ jn as DeleteIcon,
3172
+ pn as DraggablePanel,
3173
+ wn as DynamicWidgetLoader,
3174
+ kn as EditIcon,
3175
+ An as GridIcon,
3176
+ Gt as HandGrabIcon,
3177
+ Xt as HandIcon,
3178
+ Kn as ListItem,
3179
+ Hn as ListItemLeftChild,
3180
+ Xn as ListItemMiddleChild,
3181
+ Gn as ListItemRightChild,
3182
+ Ln as MonitorIcon,
3183
+ Fn as MonitorSmartphoneIcon,
3110
3184
  dt as MoveLeftIcon,
3111
3185
  ut as MoveRightIcon,
3112
- Kt as RedoIcon,
3113
- qt as SettingsIcon,
3114
- Qt as Stack,
3186
+ Ht as RedoIcon,
3187
+ zt as SettingsIcon,
3188
+ en as Stack,
3115
3189
  K as SvgBaseWrapper,
3116
- jn as TabletSmartphoneIcon,
3117
- Fn as TargetIcon,
3190
+ Un as TabletSmartphoneIcon,
3191
+ qn as TargetIcon,
3118
3192
  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,
3193
+ Bt as TimerResetIcon,
3194
+ Kt as UndoIcon,
3195
+ nr as WidgetContainerColumn,
3196
+ rr as WidgetContainerLarge,
3197
+ or as WidgetContainerRow,
3198
+ ir as WidgetsCatalogFlyout,
3199
+ Jn as WrapperColumnContent,
3200
+ Qn as WrapperColumnContentListItem,
3125
3201
  ft as XCircleIcon,
3126
- An as ZoomInIcon,
3127
- Ln as ZoomOutIcon,
3202
+ Vn as ZoomInIcon,
3203
+ Yn as ZoomOutIcon,
3128
3204
  we as blankDashboardConfig,
3129
- Ct as cssSettingsCatalog,
3130
- Vn as cssVarsUtils,
3205
+ Pt as createDynamicEntry,
3206
+ Mn as createStaticEntry,
3207
+ St as cssSettingsCatalog,
3208
+ Bn as cssVarsUtils,
3131
3209
  Nt as dashboardSettingsUtils,
3132
- Mt as ensureContainersSequence,
3133
- st as ensureZoomScaleIsWithinRange,
3134
- lt as getDefaultWidgetMetaFromKey,
3135
- Nn as getDefaultWidgetMetaFromMap,
3210
+ _t as ensureContainersSequence,
3211
+ lt as ensureZoomScaleIsWithinRange,
3212
+ Ie as getDefaultWidgetMetaFromKey,
3213
+ _n as getDefaultWidgetMetaFromMap,
3136
3214
  Z as getDistinctCssClasses,
3137
- Tn as getNewZoomScaleWithinRange,
3138
- _t as getWidgetMetaFromCatalog,
3215
+ Nn as getNewZoomScaleWithinRange,
3216
+ Mt as getWidgetMetaFromCatalog,
3139
3217
  ht as parseContainerTitle,
3218
+ Pn as parseKeyAndTitleFromFilePath,
3219
+ $n as remoteWidgetDiscovery,
3140
3220
  En as removeEmptyContainers,
3141
3221
  re as resolveColorFromClass,
3142
- Un as resolvedColors,
3143
- Hn as showToast,
3144
- Mn as useDashboardStorageService,
3145
- _n as useDashboardStore,
3146
- Pn as useDashboardUndoService
3222
+ zn as resolvedColors,
3223
+ er as showToast,
3224
+ In as useDashboardStorageService,
3225
+ Wn as useDashboardStore,
3226
+ On as useDashboardUndoService
3147
3227
  };