@tenorlab/react-dashboard 1.1.7 → 1.1.8

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.
@@ -81,10 +81,10 @@ const Nt = [
81
81
  }
82
82
  ], Tt = ["rem", "pc", "cm", "in", "em", "vh", "vw", "%"], Et = (e, n) => Tt.includes(e) ? n : 1, _t = {
83
83
  incrementOrDecrementValue: (e, n) => {
84
- const t = e.value.match(/([\d.]+)/), r = t ? parseFloat(t[1]) : 0, i = e.value.match(/([^\d.]+)/), o = i ? i[1] : e.defaultUnit, s = Et(o, e.step) * n, y = `${Math.max(r + s, e.minValue).toFixed(1)}${o}`;
84
+ const t = e.value.match(/([\d.]+)/), r = t ? parseFloat(t[1]) : 0, o = e.value.match(/([^\d.]+)/), i = o ? o[1] : e.defaultUnit, s = Et(i, e.step) * n, b = `${Math.max(r + s, e.minValue).toFixed(1)}${i}`;
85
85
  return {
86
86
  ...e,
87
- value: y
87
+ value: b
88
88
  };
89
89
  }
90
90
  }, Ce = {
@@ -110,11 +110,11 @@ const Nt = [
110
110
  return n.widgets = n.widgets.filter((t) => {
111
111
  if (`${t}`.includes("WidgetContainer")) {
112
112
  const r = n.childWidgetsConfig.filter(
113
- (i) => i.parentWidgetKey === t
113
+ (o) => o.parentWidgetKey === t
114
114
  );
115
115
  if (!r || r.length === 0)
116
116
  return n.widgets = n.widgets.filter(
117
- (i) => i !== t
117
+ (o) => o !== t
118
118
  ), !1;
119
119
  }
120
120
  return !0;
@@ -123,23 +123,23 @@ const Nt = [
123
123
  const n = e.widgets.filter(
124
124
  (r) => r.includes("WidgetContainer")
125
125
  ), t = {};
126
- return n.forEach((r, i) => {
127
- const d = `${r.split("_container")[0]}_container${i + 1}`;
126
+ return n.forEach((r, o) => {
127
+ const d = `${r.split("_container")[0]}_container${o + 1}`;
128
128
  t[r] = d;
129
129
  }), e.widgets = e.widgets.map((r) => t[r] || r), e.childWidgetsConfig = e.childWidgetsConfig.map((r) => {
130
- const i = r.parentWidgetKey, o = t[i];
130
+ const o = r.parentWidgetKey, i = t[o];
131
131
  return {
132
132
  ...r,
133
133
  // If a new key exists, use it. If not, keep the original key.
134
- parentWidgetKey: o || i
134
+ parentWidgetKey: i || o
135
135
  };
136
136
  }), e;
137
137
  }, ge = (e, n) => {
138
- const t = `${e}`.includes("Container"), r = t ? ["Container"] : ["Widget"], i = n?.title || e, o = n?.description || (t ? "Container" : "Unknown");
138
+ const t = `${e}`.includes("Container"), r = t ? ["Container"] : ["Widget"], o = n?.title || e, i = n?.description || (t ? "Container" : "Unknown");
139
139
  return {
140
- title: i,
140
+ title: o,
141
141
  displayName: e,
142
- description: o,
142
+ description: i,
143
143
  categories: r,
144
144
  noDuplicatedWidgets: !0,
145
145
  icon: void 0,
@@ -178,23 +178,23 @@ const Nt = [
178
178
  }, It = (e) => {
179
179
  const n = e.match(/\/widget-([a-zA-Z0-9-]+)\/index\.ts$/);
180
180
  if (n && n[1]) {
181
- 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(" ");
182
- return { key: r, title: i, folder: t };
181
+ const t = n[1], r = `Widget${t.split("-").map((i) => i.charAt(0).toUpperCase() + i.slice(1)).join("")}`, o = t.split("-").map((i) => i.charAt(0).toUpperCase() + i.slice(1)).join(" ");
182
+ return { key: r, title: o, folder: t };
183
183
  }
184
184
  return null;
185
- }, Rt = (e, n, t, r) => {
186
- const i = `${n}/widget-${t}/widget-${t}.meta.ts`, o = e[i], s = `${r}Meta`;
187
- if (o && o[s])
188
- return o[s];
185
+ }, Ot = (e, n, t, r) => {
186
+ const o = `${n}/widget-${t}/widget-${t}.meta.ts`, i = e[o], s = `${r}Meta`;
187
+ if (i && i[s])
188
+ return i[s];
189
189
  }, In = async (e) => new Promise(async (n, t) => {
190
190
  const r = [];
191
191
  try {
192
- const o = await (await fetch(`${e}?${Math.random()}`)).json();
193
- for (const s in o) {
194
- const d = o[s], y = () => import(
192
+ const i = await (await fetch(`${e}?${Math.random()}`)).json();
193
+ for (const s in i) {
194
+ const d = i[s], b = () => import(
195
195
  /* @vite-ignore */
196
196
  d.url
197
- ), m = {
197
+ ), g = {
198
198
  displayName: d.meta.displayName,
199
199
  description: d.meta.description || "Remote Plugin",
200
200
  categories: d.meta.categories || ["Widget"],
@@ -203,51 +203,51 @@ const Nt = [
203
203
  // Or a logic to map a string name to a Lucide component
204
204
  externalDependencies: d.meta.externalDependencies || []
205
205
  };
206
- r.push(dt(s, y, m));
206
+ r.push(dt(s, b, g));
207
207
  }
208
208
  n({
209
209
  entries: r,
210
210
  message: "",
211
211
  details: ""
212
212
  });
213
- } catch (i) {
214
- console.error("Remote plugin discovery failed:", i), t({
213
+ } catch (o) {
214
+ console.error("Remote plugin discovery failed:", o), t({
215
215
  entries: [],
216
216
  message: "Remote plugin discovery failed:",
217
- details: typeof i == "object" ? JSON.stringify(i) : i
217
+ details: typeof o == "object" ? JSON.stringify(o) : o
218
218
  });
219
219
  }
220
- }), Rn = (e, n, t, r = !0) => {
221
- const i = [];
222
- for (const o in n) {
223
- const s = n[o], d = It(o);
220
+ }), On = (e, n, t, r = !0) => {
221
+ const o = [];
222
+ for (const i in n) {
223
+ const s = n[i], d = It(i);
224
224
  if (d && s) {
225
- const { key: y, title: m, folder: h } = d;
226
- let u = Rt(t, e, h, y);
227
- if (u || (u = ge(y, {
228
- title: m,
225
+ const { key: b, title: g, folder: h } = d;
226
+ let u = Ot(t, e, h, b);
227
+ if (u || (u = ge(b, {
228
+ title: g,
229
229
  description: `Local ${r ? "dynamic" : "static"} widget`
230
230
  })), r) {
231
- const g = s;
232
- i.push(dt(y, g, u));
231
+ const m = s;
232
+ o.push(dt(b, m, u));
233
233
  } else {
234
- const g = s.default || s;
235
- i.push(Wt(y, g, u));
234
+ const m = s.default || s;
235
+ o.push(Wt(b, m, u));
236
236
  }
237
237
  }
238
238
  }
239
- return i;
239
+ return o;
240
240
  }, Fe = (e) => {
241
241
  let n;
242
- const t = /* @__PURE__ */ new Set(), r = (m, h) => {
243
- const u = typeof m == "function" ? m(n) : m;
242
+ const t = /* @__PURE__ */ new Set(), r = (g, h) => {
243
+ const u = typeof g == "function" ? g(n) : g;
244
244
  if (!Object.is(u, n)) {
245
- const g = n;
246
- n = h ?? (typeof u != "object" || u === null) ? u : Object.assign({}, n, u), t.forEach((p) => p(n, g));
245
+ const m = n;
246
+ n = h ?? (typeof u != "object" || u === null) ? u : Object.assign({}, n, u), t.forEach((y) => y(n, m));
247
247
  }
248
- }, i = () => n, d = { setState: r, getState: i, getInitialState: () => y, subscribe: (m) => (t.add(m), () => t.delete(m)) }, y = n = e(r, i, d);
248
+ }, o = () => n, d = { setState: r, getState: o, getInitialState: () => b, subscribe: (g) => (t.add(g), () => t.delete(g)) }, b = n = e(r, o, d);
249
249
  return d;
250
- }, Ot = ((e) => e ? Fe(e) : Fe), kt = (e) => e;
250
+ }, Rt = ((e) => e ? Fe(e) : Fe), kt = (e) => e;
251
251
  function jt(e, n = kt) {
252
252
  const t = ae.useSyncExternalStore(
253
253
  e.subscribe,
@@ -257,7 +257,7 @@ function jt(e, n = kt) {
257
257
  return ae.useDebugValue(t), t;
258
258
  }
259
259
  const At = (e) => {
260
- const n = Ot(e), t = (r) => jt(n, r);
260
+ const n = Rt(e), t = (r) => jt(n, r);
261
261
  return Object.assign(t, n), t;
262
262
  }, Lt = ((e) => At), Ft = (e) => {
263
263
  const n = e.widgets.filter((r) => r.includes("WidgetContainer")).map((r) => Number(r.split("_")[1].replace("container", "")));
@@ -266,9 +266,9 @@ const At = (e) => {
266
266
  const t = Ft(e);
267
267
  return `${n}_${t}`;
268
268
  }, Ut = (e) => {
269
- const { dashboardConfig: n, widgetKey: t, parentWidgetKey: r, noDuplicatedWidgets: i } = e;
269
+ const { dashboardConfig: n, widgetKey: t, parentWidgetKey: r, noDuplicatedWidgets: o } = e;
270
270
  if (r) {
271
- if (i && n.childWidgetsConfig.find(
271
+ if (o && n.childWidgetsConfig.find(
272
272
  (s) => s.parentWidgetKey === r && s.widgetKey === t
273
273
  ))
274
274
  return {
@@ -276,7 +276,7 @@ const At = (e) => {
276
276
  message: `DashboardStore: addWidget: Widget already added (${t})`,
277
277
  updatedDashboardConfig: n
278
278
  };
279
- const o = [
279
+ const i = [
280
280
  ...n.childWidgetsConfig,
281
281
  { parentWidgetKey: r, widgetKey: t }
282
282
  // new entry
@@ -285,88 +285,88 @@ const At = (e) => {
285
285
  success: !0,
286
286
  updatedDashboardConfig: {
287
287
  ...n,
288
- childWidgetsConfig: o
288
+ childWidgetsConfig: i
289
289
  }
290
290
  };
291
291
  } else {
292
- if (i && n.widgets.includes(t))
292
+ if (o && n.widgets.includes(t))
293
293
  return {
294
294
  success: !1,
295
295
  message: `DashboardStore: addWidget: Widget already added (${t})`,
296
296
  updatedDashboardConfig: n
297
297
  };
298
- const o = [...n.widgets, t];
298
+ const i = [...n.widgets, t];
299
299
  return {
300
300
  success: !0,
301
301
  updatedDashboardConfig: {
302
302
  ...n,
303
- widgets: o
303
+ widgets: i
304
304
  }
305
305
  };
306
306
  }
307
307
  }, qt = (e, n, t) => {
308
308
  if ((t || "").trim().length > 0) {
309
309
  const r = e.childWidgetsConfig.filter(
310
- (y) => y.parentWidgetKey !== t
311
- ), i = e.childWidgetsConfig.filter(
312
- (y) => y.parentWidgetKey === t && y.widgetKey !== n
313
- ), o = [...r, ...i];
310
+ (b) => b.parentWidgetKey !== t
311
+ ), o = e.childWidgetsConfig.filter(
312
+ (b) => b.parentWidgetKey === t && b.widgetKey !== n
313
+ ), i = [...r, ...o];
314
314
  let s = {
315
315
  ...e,
316
- childWidgetsConfig: o
316
+ childWidgetsConfig: i
317
317
  };
318
318
  return `${n}`.includes("Container") && (s = Pt(s)), {
319
319
  success: !0,
320
320
  updatedDashboardConfig: s
321
321
  };
322
322
  } else {
323
- const r = e.widgets.filter((o) => o !== n), i = e.childWidgetsConfig.filter(
324
- (o) => o.parentWidgetKey !== n
323
+ const r = e.widgets.filter((i) => i !== n), o = e.childWidgetsConfig.filter(
324
+ (i) => i.parentWidgetKey !== n
325
325
  );
326
326
  return {
327
327
  success: !0,
328
328
  updatedDashboardConfig: {
329
329
  ...e,
330
330
  widgets: r,
331
- childWidgetsConfig: i
331
+ childWidgetsConfig: o
332
332
  }
333
333
  };
334
334
  }
335
335
  }, Yt = (e, n, t, r) => {
336
336
  if ((r || "").trim().length > 0) {
337
- const i = e.childWidgetsConfig.filter(
337
+ const o = e.childWidgetsConfig.filter(
338
338
  (h) => h.parentWidgetKey !== r
339
339
  );
340
- let o = e.childWidgetsConfig.filter(
340
+ let i = e.childWidgetsConfig.filter(
341
341
  (h) => h.parentWidgetKey === r
342
342
  );
343
- const s = o.indexOf(t);
343
+ const s = i.indexOf(t);
344
344
  let d = s + n;
345
- if (d = Math.max(0, d), d = Math.min(o.length - 1, d), d === s)
345
+ if (d = Math.max(0, d), d = Math.min(i.length - 1, d), d === s)
346
346
  return {
347
347
  success: !1,
348
348
  message: `DashboardStore: moveWidget: Widget already at min/max position (${t})`,
349
349
  updatedDashboardConfig: e
350
350
  };
351
- const y = [...o], [m] = y.splice(s, 1);
352
- return y.splice(d, 0, m), {
351
+ const b = [...i], [g] = b.splice(s, 1);
352
+ return b.splice(d, 0, g), {
353
353
  success: !0,
354
354
  updatedDashboardConfig: {
355
355
  ...e,
356
- childWidgetsConfig: [...i, ...y]
356
+ childWidgetsConfig: [...o, ...b]
357
357
  }
358
358
  };
359
359
  } else {
360
- const i = e.widgets || [], o = i.indexOf(t);
361
- let s = o + n;
362
- if (s = Math.max(0, s), s = Math.min(i.length - 1, s), s === o)
360
+ const o = e.widgets || [], i = o.indexOf(t);
361
+ let s = i + n;
362
+ if (s = Math.max(0, s), s = Math.min(o.length - 1, s), s === i)
363
363
  return {
364
364
  success: !1,
365
365
  message: `DashboardStore: moveWidget: Widget already at min/max position (${t})`,
366
366
  updatedDashboardConfig: e
367
367
  };
368
- const d = [...i], [y] = d.splice(o, 1);
369
- return d.splice(s, 0, y), {
368
+ const d = [...o], [b] = d.splice(i, 1);
369
+ return d.splice(s, 0, b), {
370
370
  success: !0,
371
371
  updatedDashboardConfig: {
372
372
  ...e,
@@ -389,80 +389,80 @@ const At = (e) => {
389
389
  setTargetContainerKey: (t) => (e(() => ({ targetContainerKey: t })), t),
390
390
  setAllDashboardConfigs: (t) => (e(() => ({ allDashboardConfigs: t })), n().allDashboardConfigs),
391
391
  setCurrentDashboardConfig: (t) => {
392
- const r = n(), i = [
393
- ...r.allDashboardConfigs.filter((o) => o.dashboardId !== t.dashboardId),
392
+ const r = n(), o = [
393
+ ...r.allDashboardConfigs.filter((i) => i.dashboardId !== t.dashboardId),
394
394
  t
395
395
  ];
396
396
  return e(() => ({
397
397
  ...r,
398
- allDashboardConfigs: i,
398
+ allDashboardConfigs: o,
399
399
  currentDashboardConfig: t
400
- })), i;
400
+ })), o;
401
401
  },
402
402
  addDashboardConfig: (t) => {
403
- const r = n(), i = [
404
- ...r.allDashboardConfigs.filter((o) => o.dashboardId !== t.dashboardId),
403
+ const r = n(), o = [
404
+ ...r.allDashboardConfigs.filter((i) => i.dashboardId !== t.dashboardId),
405
405
  t
406
406
  ];
407
407
  return e(() => ({
408
408
  ...r,
409
- allDashboardConfigs: i,
409
+ allDashboardConfigs: o,
410
410
  currentDashboardConfig: t
411
- })), i;
411
+ })), o;
412
412
  },
413
413
  deleteDashboardConfigById: (t) => {
414
- const r = n(), i = [...r.allDashboardConfigs.filter((o) => o.dashboardId !== t)];
414
+ const r = n(), o = [...r.allDashboardConfigs.filter((i) => i.dashboardId !== t)];
415
415
  return e(() => ({
416
416
  ...r,
417
- allDashboardConfigs: i,
418
- currentDashboardConfig: i[0] || Ce
419
- })), i;
417
+ allDashboardConfigs: o,
418
+ currentDashboardConfig: o[0] || Ce
419
+ })), o;
420
420
  },
421
421
  selectDashboardById: (t) => (e(() => {
422
- const r = n(), i = r.allDashboardConfigs.find((o) => o.dashboardId === t);
423
- return i ? {
424
- currentDashboardConfig: i
422
+ const r = n(), o = r.allDashboardConfigs.find((i) => i.dashboardId === t);
423
+ return o ? {
424
+ currentDashboardConfig: o
425
425
  } : {
426
426
  ...r
427
427
  };
428
428
  }), n().currentDashboardConfig),
429
429
  addWidget: (t) => {
430
- const r = n(), i = Ut({
430
+ const r = n(), o = Ut({
431
431
  dashboardConfig: r.currentDashboardConfig,
432
432
  ...t
433
- }), o = [
433
+ }), i = [
434
434
  ...r.allDashboardConfigs.filter(
435
- (s) => s.dashboardId !== i.updatedDashboardConfig.dashboardId
435
+ (s) => s.dashboardId !== o.updatedDashboardConfig.dashboardId
436
436
  ),
437
- i.updatedDashboardConfig
437
+ o.updatedDashboardConfig
438
438
  ];
439
- return i.success && e(() => ({
440
- allDashboardConfigs: o,
441
- currentDashboardConfig: i.updatedDashboardConfig
439
+ return o.success && e(() => ({
440
+ allDashboardConfigs: i,
441
+ currentDashboardConfig: o.updatedDashboardConfig
442
442
  })), {
443
- ...i,
444
- allUpdatedDashboardConfigs: o
443
+ ...o,
444
+ allUpdatedDashboardConfigs: i
445
445
  };
446
446
  },
447
447
  removeWidget: (t, r) => {
448
- const i = n(), o = qt(i.currentDashboardConfig, t, r), s = [
449
- ...i.allDashboardConfigs.filter(
450
- (d) => d.dashboardId !== o.updatedDashboardConfig.dashboardId
448
+ const o = n(), i = qt(o.currentDashboardConfig, t, r), s = [
449
+ ...o.allDashboardConfigs.filter(
450
+ (d) => d.dashboardId !== i.updatedDashboardConfig.dashboardId
451
451
  ),
452
- o.updatedDashboardConfig
452
+ i.updatedDashboardConfig
453
453
  ];
454
- return o.success && e(() => ({
454
+ return i.success && e(() => ({
455
455
  allDashboardConfigs: s,
456
- currentDashboardConfig: o.updatedDashboardConfig
456
+ currentDashboardConfig: i.updatedDashboardConfig
457
457
  })), {
458
- ...o,
458
+ ...i,
459
459
  allUpdatedDashboardConfigs: s
460
460
  };
461
461
  },
462
- moveWidget: (t, r, i) => {
463
- const o = n(), s = Yt(o.currentDashboardConfig, t, r, i), d = [
464
- ...o.allDashboardConfigs.filter(
465
- (y) => y.dashboardId !== s.updatedDashboardConfig.dashboardId
462
+ moveWidget: (t, r, o) => {
463
+ const i = n(), s = Yt(i.currentDashboardConfig, t, r, o), d = [
464
+ ...i.allDashboardConfigs.filter(
465
+ (b) => b.dashboardId !== s.updatedDashboardConfig.dashboardId
466
466
  ),
467
467
  s.updatedDashboardConfig
468
468
  ];
@@ -474,92 +474,92 @@ const At = (e) => {
474
474
  allUpdatedDashboardConfigs: d
475
475
  };
476
476
  }
477
- }), On = Lt()((...e) => ({
477
+ }), Rn = Lt()((...e) => ({
478
478
  ...zt(...e)
479
479
  })), ut = (e, n) => `dashboards_${n}_${e}`, Bt = async (e, n, t, r) => {
480
- const i = localStorage.getItem(ut(e, n));
481
- if (i)
480
+ const o = localStorage.getItem(ut(e, n));
481
+ if (o)
482
482
  try {
483
- const o = JSON.parse(i);
484
- return o.length < 1 ? [r] : (o.forEach((s) => {
483
+ const i = JSON.parse(o);
484
+ return i.length < 1 ? [r] : (i.forEach((s) => {
485
485
  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);
486
486
  const d = (s.cssSettings || []).filter(
487
- (y) => r.cssSettings.some((m) => m.key === y.key)
487
+ (b) => r.cssSettings.some((g) => g.key === b.key)
488
488
  );
489
489
  if (d.length < 1)
490
490
  s.cssSettings = [...r.cssSettings];
491
491
  else {
492
- d.forEach((m) => {
493
- m.value = (m.value || "").replace(/NaN/g, "");
492
+ d.forEach((g) => {
493
+ g.value = (g.value || "").replace(/NaN/g, "");
494
494
  const h = r.cssSettings.find(
495
- (u) => u.key === m.key
495
+ (u) => u.key === g.key
496
496
  );
497
497
  h && (Object.keys(h).forEach((u) => {
498
- u in m || (m[u] = h[u]);
499
- }), 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"));
498
+ u in g || (g[u] = h[u]);
499
+ }), g.step = h.step, g.minValue = h.minValue, g.defaultValue = h.defaultValue, g.defaultUnit = h.defaultUnit, /\d+/g.test(g.value) === !1 && (g.value = h ? h.value : "1.0rem"));
500
500
  });
501
- const y = r.cssSettings.filter((m) => !d.some(
502
- (h) => h.key === m.key
501
+ const b = r.cssSettings.filter((g) => !d.some(
502
+ (h) => h.key === g.key
503
503
  ));
504
- s.cssSettings = [...d, ...y];
504
+ s.cssSettings = [...d, ...b];
505
505
  }
506
506
  s.widgets = s.widgets.filter(
507
- (y) => y.includes("WidgetContainer") || t.has(y)
507
+ (b) => b.includes("WidgetContainer") || t.has(b)
508
508
  ), s.childWidgetsConfig = s.childWidgetsConfig.filter(
509
- (y) => t.has(y.widgetKey)
509
+ (b) => t.has(b.widgetKey)
510
510
  ), s.zoomScale ? s.zoomScale < 0.7 && (s.zoomScale = 0.7) : s.zoomScale = 1;
511
- }), o);
512
- } catch (o) {
513
- console.warn("Error parsing saved dashboard config:", o);
511
+ }), i);
512
+ } catch (i) {
513
+ console.warn("Error parsing saved dashboard config:", i);
514
514
  }
515
515
  return [r];
516
516
  }, Ht = async (e, n, t, r) => {
517
- t.forEach((o) => {
518
- if (o.userID = e, o.clientAppKey = n, o.responsiveGrid = o.responsiveGrid ?? !1, typeof o != "object")
517
+ t.forEach((i) => {
518
+ if (i.userID = e, i.clientAppKey = n, i.responsiveGrid = i.responsiveGrid ?? !1, typeof i != "object")
519
519
  throw new Error("Invalid dashboard configuration");
520
- o.widgets = o.widgets.filter(
520
+ i.widgets = i.widgets.filter(
521
521
  (s) => s.includes("WidgetContainer") || r.has(s)
522
- ), o.childWidgetsConfig = o.childWidgetsConfig.filter(
522
+ ), i.childWidgetsConfig = i.childWidgetsConfig.filter(
523
523
  (s) => r.has(s.widgetKey)
524
- ), o.zoomScale ? o.zoomScale < 0.7 && (o.zoomScale = 0.7) : o.zoomScale = 1;
524
+ ), i.zoomScale ? i.zoomScale < 0.7 && (i.zoomScale = 0.7) : i.zoomScale = 1;
525
525
  });
526
- const i = JSON.stringify(t);
527
- return localStorage.setItem(ut(e, n), i), !0;
526
+ const o = JSON.stringify(t);
527
+ return localStorage.setItem(ut(e, n), o), !0;
528
528
  }, Kt = {
529
529
  getSavedDashboards: Bt,
530
530
  saveDashboards: Ht
531
531
  }, kn = () => Kt, jn = () => {
532
- const [e, n] = le({}), [t, r] = le({}), i = ue((h) => {
532
+ const [e, n] = le({}), [t, r] = le({}), o = ue((h) => {
533
533
  const u = h.dashboardId;
534
- n((g) => {
535
- const p = {
534
+ n((m) => {
535
+ const y = {
536
536
  undoIndex: 0,
537
537
  config: h
538
538
  };
539
- return r((x) => ({
540
- ...x,
539
+ return r((D) => ({
540
+ ...D,
541
541
  [u]: 0
542
542
  })), {
543
- ...g,
544
- [u]: [p]
543
+ ...m,
544
+ [u]: [y]
545
545
  // Forces a reset to just this one entry
546
546
  };
547
547
  });
548
- }, []), o = ue(
548
+ }, []), i = ue(
549
549
  (h) => {
550
550
  n((u) => {
551
- const g = h.dashboardId, p = u[g] || [], x = t[g] ?? -1, b = p.slice(0, x + 1), v = {
552
- undoIndex: b.length,
551
+ const m = h.dashboardId, y = u[m] || [], D = t[m] ?? -1, p = y.slice(0, D + 1), v = {
552
+ undoIndex: p.length,
553
553
  // New index based on trimmed length
554
554
  config: h
555
- }, C = [...b, v];
555
+ }, w = [...p, v];
556
556
  return r((N) => ({
557
557
  ...N,
558
- [g]: C.length - 1
558
+ [m]: w.length - 1
559
559
  // Index is now the last element's index
560
560
  })), {
561
561
  ...u,
562
- [g]: C
562
+ [m]: w
563
563
  };
564
564
  });
565
565
  },
@@ -568,27 +568,27 @@ const At = (e) => {
568
568
  n((u) => {
569
569
  if (!u[h])
570
570
  return u;
571
- const { [h]: g, ...p } = u;
572
- return p;
571
+ const { [h]: m, ...y } = u;
572
+ return y;
573
573
  }), r((u) => {
574
- const { [h]: g, ...p } = u;
575
- return p;
574
+ const { [h]: m, ...y } = u;
575
+ return y;
576
576
  });
577
577
  }, []), d = ue(
578
578
  (h) => {
579
579
  r((u) => {
580
- const g = u[h] ?? -1, p = Math.max(0, g - 1);
581
- return p !== g ? { ...u, [h]: p } : u;
580
+ const m = u[h] ?? -1, y = Math.max(0, m - 1);
581
+ return y !== m ? { ...u, [h]: y } : u;
582
582
  });
583
583
  },
584
584
  [
585
585
  //loadConfigFromHistory
586
586
  ]
587
- ), y = ue(
587
+ ), b = ue(
588
588
  (h) => {
589
589
  r((u) => {
590
- const g = e[h]?.length || 0, p = u[h] ?? -1, x = Math.min(g - 1, p + 1);
591
- return x !== p ? { ...u, [h]: x } : u;
590
+ const m = e[h]?.length || 0, y = u[h] ?? -1, D = Math.min(m - 1, y + 1);
591
+ return D !== y ? { ...u, [h]: D } : u;
592
592
  });
593
593
  },
594
594
  [
@@ -597,15 +597,15 @@ const At = (e) => {
597
597
  ]
598
598
  );
599
599
  return {
600
- initializeHistoryForDashboard: i,
600
+ initializeHistoryForDashboard: o,
601
601
  resetAllHistory: () => n({}),
602
- addUndoEntry: o,
602
+ addUndoEntry: i,
603
603
  removeUndoHistoryForDashboard: s,
604
604
  undo: d,
605
- redo: y,
605
+ redo: b,
606
606
  getUndoStatus: (h) => {
607
- const u = t[h] ?? -1, g = e[h]?.length || 0, p = u <= 0, x = u >= g - 1;
608
- return { isUndoDisabled: p, isRedoDisabled: x };
607
+ const u = t[h] ?? -1, m = e[h]?.length || 0, y = u <= 0, D = u >= m - 1;
608
+ return { isUndoDisabled: y, isRedoDisabled: D };
609
609
  },
610
610
  undoHistory: e,
611
611
  historyIndex: t
@@ -824,7 +824,7 @@ const Z = (e, ...n) => [
824
824
  ].join(" ").trim(), re = (e, n = "color") => {
825
825
  if (typeof window > "u") return "#FFFFFF";
826
826
  const t = document.createElement("div");
827
- 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);
827
+ Array.isArray(e) ? e.forEach((o) => t.classList.add(o)) : e.split(" ").forEach((o) => t.classList.add(o)), t.style.display = "none", document.body.appendChild(t);
828
828
  const r = window.getComputedStyle(t)[n];
829
829
  return document.body.removeChild(t), r;
830
830
  }, Kn = {
@@ -859,18 +859,18 @@ const Z = (e, ...n) => [
859
859
  className: n,
860
860
  size: t = "medium",
861
861
  value: r,
862
- onChange: i,
863
- onKeyDown: o,
862
+ onChange: o,
863
+ onKeyDown: i,
864
864
  placeholder: s = ""
865
865
  }) => {
866
- const d = st(() => 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(`
866
+ const d = st(() => t === "small" ? "py-1.5 px-3 text-sm" : "py-2.5 px-4 text-base", [t]), b = Z("flex flex-col mb-4", n || ""), h = `${Z(`
867
867
  block w-full rounded-md px-3 py-1.5 text-base
868
868
  bg-formfield content-formfield
869
869
  outline-1 -outline-offset-1 outline-primary
870
870
  placeholder:text-disabled
871
871
  focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-200 sm:text-sm/6
872
872
  `)} ${d}`;
873
- return /* @__PURE__ */ W("div", { className: y, children: [
873
+ return /* @__PURE__ */ W("div", { className: b, children: [
874
874
  /* @__PURE__ */ a("label", { htmlFor: e, className: "block text-sm/6 font-medium mb-1.5", children: e }),
875
875
  /* @__PURE__ */ a(
876
876
  "input",
@@ -878,8 +878,8 @@ const Z = (e, ...n) => [
878
878
  id: e,
879
879
  type: "text",
880
880
  value: r,
881
- onChange: i,
882
- onKeyDown: (u) => o && o(u),
881
+ onChange: o,
882
+ onKeyDown: (u) => i && i(u),
883
883
  placeholder: s,
884
884
  className: h,
885
885
  "aria-label": e
@@ -901,23 +901,23 @@ function J(e) {
901
901
  tooltip: n,
902
902
  disabled: t,
903
903
  isIconButton: r,
904
- className: i,
905
- buttonType: o,
904
+ className: o,
905
+ buttonType: i,
906
906
  category: s,
907
907
  px: d,
908
- py: y,
909
- children: m,
908
+ py: b,
909
+ children: g,
910
910
  ...h
911
911
  } = e, u = () => {
912
- const p = e.isIconButton || !1, x = e.category || "primary", b = e.buttonType || "normal", v = e.disabled || !1, C = e.className || "", N = e.font || "semibold", S = Number((e.border || 0) > 0 ? e.border : 0);
913
- let D = (e.borderColor || "").trim();
914
- D = D.length > 0 ? D : "";
912
+ const y = e.isIconButton || !1, D = e.category || "primary", p = e.buttonType || "normal", v = e.disabled || !1, w = e.className || "", N = e.font || "semibold", C = Number((e.border || 0) > 0 ? e.border : 0);
913
+ let S = (e.borderColor || "").trim();
914
+ S = S.length > 0 ? S : "";
915
915
  const c = Number((e.borderHover || 0) > 0 ? e.borderHover : 0), E = e.shadow || "sm", l = e.shadowHover || "md", f = (e.addCss || "").trim(), M = e.justifyCss || "justify-center";
916
- if (p)
916
+ if (y)
917
917
  return Z(
918
918
  "flex flex-row items-center",
919
- v ? "text-disabled" : `text-${x} hover:brightness-110 cursor-pointer`,
920
- C || ""
919
+ v ? "text-disabled" : `text-${D} hover:brightness-110 cursor-pointer`,
920
+ w || ""
921
921
  );
922
922
  const $ = [
923
923
  "relative cursor-pointer",
@@ -927,36 +927,36 @@ function J(e) {
927
927
  `font-${N}`
928
928
  ];
929
929
  if (v)
930
- b === "ghost" ? $.push("text-disabled border-disabled cursor-not-allowed") : $.push("bg-disabled content-disabled border-disabled cursor-not-allowed");
930
+ p === "ghost" ? $.push("text-disabled border-disabled cursor-not-allowed") : $.push("bg-disabled content-disabled border-disabled cursor-not-allowed");
931
931
  else {
932
932
  $.push("cursor-pointer");
933
933
  let I = "";
934
- Se.has(b) ? I = `${Se.get(b)}` : I = `${Se.get("normal")}`, S < 1 && (I = I.replace("border-[category]", ""));
935
- const T = I.replace(/\[category\]/g, x).trim();
934
+ Se.has(p) ? I = `${Se.get(p)}` : I = `${Se.get("normal")}`, C < 1 && (I = I.replace("border-[category]", ""));
935
+ const T = I.replace(/\[category\]/g, D).trim();
936
936
  $.push(T);
937
937
  }
938
- 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-${E}`), $.push(`hover:shadow-${l} group-hover:shadow-${l}`), f.length > 0 && $.push(f), f.indexOf("hidden") === -1 && $.push("inline-flex"), $.push(M), $.join(" ").trim();
939
- }, g = () => {
940
- const p = e.px || 0.7, x = e.py || 0.25;
938
+ return C > 0 ? ($.push(`border-[${C}px]`), $.push(`border-${S}`)) : ($.push("border-[1px]"), $.push("border-transparent")), c > 0 ? ($.push(`hover:border-[${c}px] group-hover:border-[${c}px]`), $.push(`hover:border-${S} group-hover:border-${S}`)) : $.push("hover:border-[1px] group-hover:border-[1px]"), $.push(`shadow-${E}`), $.push(`hover:shadow-${l} group-hover:shadow-${l}`), f.length > 0 && $.push(f), f.indexOf("hidden") === -1 && $.push("inline-flex"), $.push(M), $.join(" ").trim();
939
+ }, m = () => {
940
+ const y = e.px || 0.7, D = e.py || 0.25;
941
941
  return {
942
- padding: r ? 0 : `${x}rem ${p}rem `
942
+ padding: r ? 0 : `${D}rem ${y}rem `
943
943
  };
944
944
  };
945
- return /* @__PURE__ */ a("button", { type: "button", disabled: t, className: u(), style: g(), ...h, children: m });
945
+ return /* @__PURE__ */ a("button", { type: "button", disabled: t, className: u(), style: m(), ...h, children: g });
946
946
  }
947
947
  const rn = (e) => e.direction === "row" ? Z("flex flex-row items-center gap-2", e.classNames || "") : Z("flex flex-col gap-2 w-full", e.classNames || "");
948
948
  function on(e) {
949
- const { children: n, testId: t, classNames: r, direction: i, ...o } = e, s = rn(e);
950
- return /* @__PURE__ */ a("div", { "data-testid": t || "not-set", className: s, ...o, children: n });
949
+ const { children: n, testId: t, classNames: r, direction: o, ...i } = e, s = rn(e);
950
+ return /* @__PURE__ */ a("div", { "data-testid": t || "not-set", className: s, ...i, children: n });
951
951
  }
952
952
  const Gn = ce(
953
953
  (e, n) => {
954
- const { classNames: t, innerClass: r, ...i } = e, o = Z(t || "", "w-full"), s = Z(
954
+ const { classNames: t, innerClass: r, ...o } = e, i = Z(t || "", "w-full"), s = Z(
955
955
  `w-full flex overflow-hidden justify-between items-center gap-0
956
956
  rounded-md border`,
957
957
  r || ""
958
958
  );
959
- return /* @__PURE__ */ a(on, { direction: "row", classNames: o, ...i, children: /* @__PURE__ */ a("div", { className: s, children: e.children }) });
959
+ return /* @__PURE__ */ a(on, { direction: "row", classNames: i, ...o, children: /* @__PURE__ */ a("div", { className: s, children: e.children }) });
960
960
  }
961
961
  ), Zn = ce((e, n) => /* @__PURE__ */ a(
962
962
  "div",
@@ -998,26 +998,26 @@ var Ve;
998
998
  function sn() {
999
999
  if (Ve) return U;
1000
1000
  Ve = 1;
1001
- var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, y = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, h = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, u = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, g = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, p = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, x = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, b = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, v = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, N = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
1002
- function S(c) {
1001
+ 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, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, b = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, g = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, h = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, u = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, y = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, D = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, p = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, v = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, w = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, N = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
1002
+ function C(c) {
1003
1003
  if (typeof c == "object" && c !== null) {
1004
1004
  var E = c.$$typeof;
1005
1005
  switch (E) {
1006
1006
  case n:
1007
1007
  switch (c = c.type, c) {
1008
- case y:
1009
- case m:
1008
+ case b:
1009
+ case g:
1010
1010
  case r:
1011
- case o:
1012
1011
  case i:
1012
+ case o:
1013
1013
  case u:
1014
1014
  return c;
1015
1015
  default:
1016
1016
  switch (c = c && c.$$typeof, c) {
1017
1017
  case d:
1018
1018
  case h:
1019
- case x:
1020
- case p:
1019
+ case D:
1020
+ case y:
1021
1021
  case s:
1022
1022
  return c;
1023
1023
  default:
@@ -1029,58 +1029,58 @@ function sn() {
1029
1029
  }
1030
1030
  }
1031
1031
  }
1032
- function D(c) {
1033
- return S(c) === m;
1032
+ function S(c) {
1033
+ return C(c) === g;
1034
1034
  }
1035
- return U.AsyncMode = y, U.ConcurrentMode = m, U.ContextConsumer = d, U.ContextProvider = s, U.Element = n, U.ForwardRef = h, U.Fragment = r, U.Lazy = x, U.Memo = p, U.Portal = t, U.Profiler = o, U.StrictMode = i, U.Suspense = u, U.isAsyncMode = function(c) {
1036
- return D(c) || S(c) === y;
1037
- }, U.isConcurrentMode = D, U.isContextConsumer = function(c) {
1038
- return S(c) === d;
1035
+ return U.AsyncMode = b, U.ConcurrentMode = g, U.ContextConsumer = d, U.ContextProvider = s, U.Element = n, U.ForwardRef = h, U.Fragment = r, U.Lazy = D, U.Memo = y, U.Portal = t, U.Profiler = i, U.StrictMode = o, U.Suspense = u, U.isAsyncMode = function(c) {
1036
+ return S(c) || C(c) === b;
1037
+ }, U.isConcurrentMode = S, U.isContextConsumer = function(c) {
1038
+ return C(c) === d;
1039
1039
  }, U.isContextProvider = function(c) {
1040
- return S(c) === s;
1040
+ return C(c) === s;
1041
1041
  }, U.isElement = function(c) {
1042
1042
  return typeof c == "object" && c !== null && c.$$typeof === n;
1043
1043
  }, U.isForwardRef = function(c) {
1044
- return S(c) === h;
1044
+ return C(c) === h;
1045
1045
  }, U.isFragment = function(c) {
1046
- return S(c) === r;
1046
+ return C(c) === r;
1047
1047
  }, U.isLazy = function(c) {
1048
- return S(c) === x;
1048
+ return C(c) === D;
1049
1049
  }, U.isMemo = function(c) {
1050
- return S(c) === p;
1050
+ return C(c) === y;
1051
1051
  }, U.isPortal = function(c) {
1052
- return S(c) === t;
1052
+ return C(c) === t;
1053
1053
  }, U.isProfiler = function(c) {
1054
- return S(c) === o;
1054
+ return C(c) === i;
1055
1055
  }, U.isStrictMode = function(c) {
1056
- return S(c) === i;
1056
+ return C(c) === o;
1057
1057
  }, U.isSuspense = function(c) {
1058
- return S(c) === u;
1058
+ return C(c) === u;
1059
1059
  }, U.isValidElementType = function(c) {
1060
- 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 === x || c.$$typeof === p || c.$$typeof === s || c.$$typeof === d || c.$$typeof === h || c.$$typeof === v || c.$$typeof === C || c.$$typeof === N || c.$$typeof === b);
1061
- }, U.typeOf = S, U;
1060
+ return typeof c == "string" || typeof c == "function" || c === r || c === g || c === i || c === o || c === u || c === m || typeof c == "object" && c !== null && (c.$$typeof === D || c.$$typeof === y || c.$$typeof === s || c.$$typeof === d || c.$$typeof === h || c.$$typeof === v || c.$$typeof === w || c.$$typeof === N || c.$$typeof === p);
1061
+ }, U.typeOf = C, U;
1062
1062
  }
1063
1063
  var q = {};
1064
1064
  var Ue;
1065
1065
  function ln() {
1066
1066
  return Ue || (Ue = 1, process.env.NODE_ENV !== "production" && (function() {
1067
- var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, y = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, h = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, u = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, g = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, p = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, x = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, b = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, v = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, N = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
1068
- function S(_) {
1067
+ 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, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, b = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, g = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, h = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, u = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, y = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, D = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, p = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, v = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, w = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, N = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
1068
+ function C(_) {
1069
1069
  return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1070
- _ === r || _ === m || _ === o || _ === i || _ === u || _ === g || typeof _ == "object" && _ !== null && (_.$$typeof === x || _.$$typeof === p || _.$$typeof === s || _.$$typeof === d || _.$$typeof === h || _.$$typeof === v || _.$$typeof === C || _.$$typeof === N || _.$$typeof === b);
1070
+ _ === r || _ === g || _ === i || _ === o || _ === u || _ === m || typeof _ == "object" && _ !== null && (_.$$typeof === D || _.$$typeof === y || _.$$typeof === s || _.$$typeof === d || _.$$typeof === h || _.$$typeof === v || _.$$typeof === w || _.$$typeof === N || _.$$typeof === p);
1071
1071
  }
1072
- function D(_) {
1072
+ function S(_) {
1073
1073
  if (typeof _ == "object" && _ !== null) {
1074
1074
  var te = _.$$typeof;
1075
1075
  switch (te) {
1076
1076
  case n:
1077
1077
  var me = _.type;
1078
1078
  switch (me) {
1079
- case y:
1080
- case m:
1079
+ case b:
1080
+ case g:
1081
1081
  case r:
1082
- case o:
1083
1082
  case i:
1083
+ case o:
1084
1084
  case u:
1085
1085
  return me;
1086
1086
  default:
@@ -1088,8 +1088,8 @@ function ln() {
1088
1088
  switch (je) {
1089
1089
  case d:
1090
1090
  case h:
1091
- case x:
1092
- case p:
1091
+ case D:
1092
+ case y:
1093
1093
  case s:
1094
1094
  return je;
1095
1095
  default:
@@ -1101,47 +1101,47 @@ function ln() {
1101
1101
  }
1102
1102
  }
1103
1103
  }
1104
- var c = y, E = m, l = d, f = s, M = n, $ = h, I = r, T = x, z = p, X = t, Q = o, K = i, ee = u, se = !1;
1104
+ var c = b, E = g, l = d, f = s, M = n, $ = h, I = r, T = D, z = y, X = t, Q = i, K = o, ee = u, se = !1;
1105
1105
  function de(_) {
1106
- return se || (se = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), w(_) || D(_) === y;
1106
+ return se || (se = !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(_) || S(_) === b;
1107
1107
  }
1108
- function w(_) {
1109
- return D(_) === m;
1108
+ function x(_) {
1109
+ return S(_) === g;
1110
1110
  }
1111
1111
  function P(_) {
1112
- return D(_) === d;
1112
+ return S(_) === d;
1113
1113
  }
1114
1114
  function A(_) {
1115
- return D(_) === s;
1115
+ return S(_) === s;
1116
1116
  }
1117
1117
  function k(_) {
1118
1118
  return typeof _ == "object" && _ !== null && _.$$typeof === n;
1119
1119
  }
1120
- function R(_) {
1121
- return D(_) === h;
1120
+ function O(_) {
1121
+ return S(_) === h;
1122
1122
  }
1123
1123
  function L(_) {
1124
- return D(_) === r;
1124
+ return S(_) === r;
1125
1125
  }
1126
- function O(_) {
1127
- return D(_) === x;
1126
+ function R(_) {
1127
+ return S(_) === D;
1128
1128
  }
1129
1129
  function j(_) {
1130
- return D(_) === p;
1130
+ return S(_) === y;
1131
1131
  }
1132
1132
  function F(_) {
1133
- return D(_) === t;
1133
+ return S(_) === t;
1134
1134
  }
1135
1135
  function Y(_) {
1136
- return D(_) === o;
1136
+ return S(_) === i;
1137
1137
  }
1138
1138
  function V(_) {
1139
- return D(_) === i;
1139
+ return S(_) === o;
1140
1140
  }
1141
1141
  function G(_) {
1142
- return D(_) === u;
1142
+ return S(_) === u;
1143
1143
  }
1144
- q.AsyncMode = c, q.ConcurrentMode = E, q.ContextConsumer = l, q.ContextProvider = f, q.Element = M, q.ForwardRef = $, q.Fragment = I, q.Lazy = T, q.Memo = z, q.Portal = X, q.Profiler = Q, q.StrictMode = K, q.Suspense = ee, q.isAsyncMode = de, q.isConcurrentMode = w, q.isContextConsumer = P, q.isContextProvider = A, q.isElement = k, q.isForwardRef = R, q.isFragment = L, q.isLazy = O, q.isMemo = j, q.isPortal = F, q.isProfiler = Y, q.isStrictMode = V, q.isSuspense = G, q.isValidElementType = S, q.typeOf = D;
1144
+ q.AsyncMode = c, q.ConcurrentMode = E, q.ContextConsumer = l, q.ContextProvider = f, q.Element = M, q.ForwardRef = $, q.Fragment = I, q.Lazy = T, q.Memo = z, q.Portal = X, q.Profiler = Q, q.StrictMode = K, q.Suspense = ee, q.isAsyncMode = de, q.isConcurrentMode = x, q.isContextConsumer = P, q.isContextProvider = A, q.isElement = k, q.isForwardRef = O, q.isFragment = L, q.isLazy = R, q.isMemo = j, q.isPortal = F, q.isProfiler = Y, q.isStrictMode = V, q.isSuspense = G, q.isValidElementType = C, q.typeOf = S;
1145
1145
  })()), q;
1146
1146
  }
1147
1147
  var qe;
@@ -1153,49 +1153,49 @@ function cn() {
1153
1153
  if (Ye) return Ne;
1154
1154
  Ye = 1;
1155
1155
  var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
1156
- function r(o) {
1157
- if (o == null)
1156
+ function r(i) {
1157
+ if (i == null)
1158
1158
  throw new TypeError("Object.assign cannot be called with null or undefined");
1159
- return Object(o);
1159
+ return Object(i);
1160
1160
  }
1161
- function i() {
1161
+ function o() {
1162
1162
  try {
1163
1163
  if (!Object.assign)
1164
1164
  return !1;
1165
- var o = new String("abc");
1166
- if (o[5] = "de", Object.getOwnPropertyNames(o)[0] === "5")
1165
+ var i = new String("abc");
1166
+ if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
1167
1167
  return !1;
1168
1168
  for (var s = {}, d = 0; d < 10; d++)
1169
1169
  s["_" + String.fromCharCode(d)] = d;
1170
- var y = Object.getOwnPropertyNames(s).map(function(h) {
1170
+ var b = Object.getOwnPropertyNames(s).map(function(h) {
1171
1171
  return s[h];
1172
1172
  });
1173
- if (y.join("") !== "0123456789")
1173
+ if (b.join("") !== "0123456789")
1174
1174
  return !1;
1175
- var m = {};
1175
+ var g = {};
1176
1176
  return "abcdefghijklmnopqrst".split("").forEach(function(h) {
1177
- m[h] = h;
1178
- }), Object.keys(Object.assign({}, m)).join("") === "abcdefghijklmnopqrst";
1177
+ g[h] = h;
1178
+ }), Object.keys(Object.assign({}, g)).join("") === "abcdefghijklmnopqrst";
1179
1179
  } catch {
1180
1180
  return !1;
1181
1181
  }
1182
1182
  }
1183
- return Ne = i() ? Object.assign : function(o, s) {
1184
- for (var d, y = r(o), m, h = 1; h < arguments.length; h++) {
1183
+ return Ne = o() ? Object.assign : function(i, s) {
1184
+ for (var d, b = r(i), g, h = 1; h < arguments.length; h++) {
1185
1185
  d = Object(arguments[h]);
1186
1186
  for (var u in d)
1187
- n.call(d, u) && (y[u] = d[u]);
1187
+ n.call(d, u) && (b[u] = d[u]);
1188
1188
  if (e) {
1189
- m = e(d);
1190
- for (var g = 0; g < m.length; g++)
1191
- t.call(d, m[g]) && (y[m[g]] = d[m[g]]);
1189
+ g = e(d);
1190
+ for (var m = 0; m < g.length; m++)
1191
+ t.call(d, g[m]) && (b[g[m]] = d[g[m]]);
1192
1192
  }
1193
1193
  }
1194
- return y;
1194
+ return b;
1195
1195
  }, Ne;
1196
1196
  }
1197
1197
  var Te, ze;
1198
- function Re() {
1198
+ function Oe() {
1199
1199
  if (ze) return Te;
1200
1200
  ze = 1;
1201
1201
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
@@ -1212,9 +1212,9 @@ function dn() {
1212
1212
  var e = function() {
1213
1213
  };
1214
1214
  if (process.env.NODE_ENV !== "production") {
1215
- var n = /* @__PURE__ */ Re(), t = {}, r = /* @__PURE__ */ bt();
1216
- e = function(o) {
1217
- var s = "Warning: " + o;
1215
+ var n = /* @__PURE__ */ Oe(), t = {}, r = /* @__PURE__ */ bt();
1216
+ e = function(i) {
1217
+ var s = "Warning: " + i;
1218
1218
  typeof console < "u" && console.error(s);
1219
1219
  try {
1220
1220
  throw new Error(s);
@@ -1222,74 +1222,74 @@ function dn() {
1222
1222
  }
1223
1223
  };
1224
1224
  }
1225
- function i(o, s, d, y, m) {
1225
+ function o(i, s, d, b, g) {
1226
1226
  if (process.env.NODE_ENV !== "production") {
1227
- for (var h in o)
1228
- if (r(o, h)) {
1227
+ for (var h in i)
1228
+ if (r(i, h)) {
1229
1229
  var u;
1230
1230
  try {
1231
- if (typeof o[h] != "function") {
1232
- var g = Error(
1233
- (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`."
1231
+ if (typeof i[h] != "function") {
1232
+ var m = Error(
1233
+ (b || "React class") + ": " + d + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
1234
1234
  );
1235
- throw g.name = "Invariant Violation", g;
1235
+ throw m.name = "Invariant Violation", m;
1236
1236
  }
1237
- u = o[h](s, h, y, d, null, n);
1238
- } catch (x) {
1239
- u = x;
1237
+ u = i[h](s, h, b, d, null, n);
1238
+ } catch (D) {
1239
+ u = D;
1240
1240
  }
1241
1241
  if (u && !(u instanceof Error) && e(
1242
- (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)."
1242
+ (b || "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)."
1243
1243
  ), u instanceof Error && !(u.message in t)) {
1244
1244
  t[u.message] = !0;
1245
- var p = m ? m() : "";
1245
+ var y = g ? g() : "";
1246
1246
  e(
1247
- "Failed " + d + " type: " + u.message + (p ?? "")
1247
+ "Failed " + d + " type: " + u.message + (y ?? "")
1248
1248
  );
1249
1249
  }
1250
1250
  }
1251
1251
  }
1252
1252
  }
1253
- return i.resetWarningCache = function() {
1253
+ return o.resetWarningCache = function() {
1254
1254
  process.env.NODE_ENV !== "production" && (t = {});
1255
- }, _e = i, _e;
1255
+ }, _e = o, _e;
1256
1256
  }
1257
1257
  var Me, Ke;
1258
1258
  function un() {
1259
1259
  if (Ke) return Me;
1260
1260
  Ke = 1;
1261
- var e = yt(), n = cn(), t = /* @__PURE__ */ Re(), r = /* @__PURE__ */ bt(), i = /* @__PURE__ */ dn(), o = function() {
1261
+ var e = yt(), n = cn(), t = /* @__PURE__ */ Oe(), r = /* @__PURE__ */ bt(), o = /* @__PURE__ */ dn(), i = function() {
1262
1262
  };
1263
- process.env.NODE_ENV !== "production" && (o = function(d) {
1264
- var y = "Warning: " + d;
1265
- typeof console < "u" && console.error(y);
1263
+ process.env.NODE_ENV !== "production" && (i = function(d) {
1264
+ var b = "Warning: " + d;
1265
+ typeof console < "u" && console.error(b);
1266
1266
  try {
1267
- throw new Error(y);
1267
+ throw new Error(b);
1268
1268
  } catch {
1269
1269
  }
1270
1270
  });
1271
1271
  function s() {
1272
1272
  return null;
1273
1273
  }
1274
- return Me = function(d, y) {
1275
- var m = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
1276
- function u(w) {
1277
- var P = w && (m && w[m] || w[h]);
1274
+ return Me = function(d, b) {
1275
+ var g = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
1276
+ function u(x) {
1277
+ var P = x && (g && x[g] || x[h]);
1278
1278
  if (typeof P == "function")
1279
1279
  return P;
1280
1280
  }
1281
- var g = "<<anonymous>>", p = {
1282
- array: C("array"),
1283
- bigint: C("bigint"),
1284
- bool: C("boolean"),
1285
- func: C("function"),
1286
- number: C("number"),
1287
- object: C("object"),
1288
- string: C("string"),
1289
- symbol: C("symbol"),
1281
+ var m = "<<anonymous>>", y = {
1282
+ array: w("array"),
1283
+ bigint: w("bigint"),
1284
+ bool: w("boolean"),
1285
+ func: w("function"),
1286
+ number: w("number"),
1287
+ object: w("object"),
1288
+ string: w("string"),
1289
+ symbol: w("symbol"),
1290
1290
  any: N(),
1291
- arrayOf: S,
1292
- element: D(),
1291
+ arrayOf: C,
1292
+ element: S(),
1293
1293
  elementType: c(),
1294
1294
  instanceOf: E,
1295
1295
  node: $(),
@@ -1299,19 +1299,19 @@ function un() {
1299
1299
  shape: T,
1300
1300
  exact: z
1301
1301
  };
1302
- function x(w, P) {
1303
- return w === P ? w !== 0 || 1 / w === 1 / P : w !== w && P !== P;
1302
+ function D(x, P) {
1303
+ return x === P ? x !== 0 || 1 / x === 1 / P : x !== x && P !== P;
1304
1304
  }
1305
- function b(w, P) {
1306
- this.message = w, this.data = P && typeof P == "object" ? P : {}, this.stack = "";
1305
+ function p(x, P) {
1306
+ this.message = x, this.data = P && typeof P == "object" ? P : {}, this.stack = "";
1307
1307
  }
1308
- b.prototype = Error.prototype;
1309
- function v(w) {
1308
+ p.prototype = Error.prototype;
1309
+ function v(x) {
1310
1310
  if (process.env.NODE_ENV !== "production")
1311
1311
  var P = {}, A = 0;
1312
- function k(L, O, j, F, Y, V, G) {
1313
- if (F = F || g, V = V || j, G !== t) {
1314
- if (y) {
1312
+ function k(L, R, j, F, Y, V, G) {
1313
+ if (F = F || m, V = V || j, G !== t) {
1314
+ if (b) {
1315
1315
  var _ = new Error(
1316
1316
  "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"
1317
1317
  );
@@ -1319,24 +1319,24 @@ function un() {
1319
1319
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
1320
1320
  var te = F + ":" + j;
1321
1321
  !P[te] && // Avoid spamming the console because they are often not actionable except for lib authors
1322
- A < 3 && (o(
1322
+ A < 3 && (i(
1323
1323
  "You are manually calling a React.PropTypes validation function for the `" + V + "` 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."
1324
1324
  ), P[te] = !0, A++);
1325
1325
  }
1326
1326
  }
1327
- return O[j] == null ? L ? O[j] === null ? new b("The " + Y + " `" + V + "` is marked as required " + ("in `" + F + "`, but its value is `null`.")) : new b("The " + Y + " `" + V + "` is marked as required in " + ("`" + F + "`, but its value is `undefined`.")) : null : w(O, j, F, Y, V);
1327
+ return R[j] == null ? L ? R[j] === null ? new p("The " + Y + " `" + V + "` is marked as required " + ("in `" + F + "`, but its value is `null`.")) : new p("The " + Y + " `" + V + "` is marked as required in " + ("`" + F + "`, but its value is `undefined`.")) : null : x(R, j, F, Y, V);
1328
1328
  }
1329
- var R = k.bind(null, !1);
1330
- return R.isRequired = k.bind(null, !0), R;
1329
+ var O = k.bind(null, !1);
1330
+ return O.isRequired = k.bind(null, !0), O;
1331
1331
  }
1332
- function C(w) {
1333
- function P(A, k, R, L, O, j) {
1332
+ function w(x) {
1333
+ function P(A, k, O, L, R, j) {
1334
1334
  var F = A[k], Y = K(F);
1335
- if (Y !== w) {
1335
+ if (Y !== x) {
1336
1336
  var V = ee(F);
1337
- return new b(
1338
- "Invalid " + L + " `" + O + "` of type " + ("`" + V + "` supplied to `" + R + "`, expected ") + ("`" + w + "`."),
1339
- { expectedType: w }
1337
+ return new p(
1338
+ "Invalid " + L + " `" + R + "` of type " + ("`" + V + "` supplied to `" + O + "`, expected ") + ("`" + x + "`."),
1339
+ { expectedType: x }
1340
1340
  );
1341
1341
  }
1342
1342
  return null;
@@ -1346,17 +1346,17 @@ function un() {
1346
1346
  function N() {
1347
1347
  return v(s);
1348
1348
  }
1349
- function S(w) {
1350
- function P(A, k, R, L, O) {
1351
- if (typeof w != "function")
1352
- return new b("Property `" + O + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
1349
+ function C(x) {
1350
+ function P(A, k, O, L, R) {
1351
+ if (typeof x != "function")
1352
+ return new p("Property `" + R + "` of component `" + O + "` has invalid PropType notation inside arrayOf.");
1353
1353
  var j = A[k];
1354
1354
  if (!Array.isArray(j)) {
1355
1355
  var F = K(j);
1356
- return new b("Invalid " + L + " `" + O + "` of type " + ("`" + F + "` supplied to `" + R + "`, expected an array."));
1356
+ return new p("Invalid " + L + " `" + R + "` of type " + ("`" + F + "` supplied to `" + O + "`, expected an array."));
1357
1357
  }
1358
1358
  for (var Y = 0; Y < j.length; Y++) {
1359
- var V = w(j, Y, R, L, O + "[" + Y + "]", t);
1359
+ var V = x(j, Y, O, L, R + "[" + Y + "]", t);
1360
1360
  if (V instanceof Error)
1361
1361
  return V;
1362
1362
  }
@@ -1364,65 +1364,65 @@ function un() {
1364
1364
  }
1365
1365
  return v(P);
1366
1366
  }
1367
- function D() {
1368
- function w(P, A, k, R, L) {
1369
- var O = P[A];
1370
- if (!d(O)) {
1371
- var j = K(O);
1372
- return new b("Invalid " + R + " `" + L + "` of type " + ("`" + j + "` supplied to `" + k + "`, expected a single ReactElement."));
1367
+ function S() {
1368
+ function x(P, A, k, O, L) {
1369
+ var R = P[A];
1370
+ if (!d(R)) {
1371
+ var j = K(R);
1372
+ return new p("Invalid " + O + " `" + L + "` of type " + ("`" + j + "` supplied to `" + k + "`, expected a single ReactElement."));
1373
1373
  }
1374
1374
  return null;
1375
1375
  }
1376
- return v(w);
1376
+ return v(x);
1377
1377
  }
1378
1378
  function c() {
1379
- function w(P, A, k, R, L) {
1380
- var O = P[A];
1381
- if (!e.isValidElementType(O)) {
1382
- var j = K(O);
1383
- return new b("Invalid " + R + " `" + L + "` of type " + ("`" + j + "` supplied to `" + k + "`, expected a single ReactElement type."));
1379
+ function x(P, A, k, O, L) {
1380
+ var R = P[A];
1381
+ if (!e.isValidElementType(R)) {
1382
+ var j = K(R);
1383
+ return new p("Invalid " + O + " `" + L + "` of type " + ("`" + j + "` supplied to `" + k + "`, expected a single ReactElement type."));
1384
1384
  }
1385
1385
  return null;
1386
1386
  }
1387
- return v(w);
1387
+ return v(x);
1388
1388
  }
1389
- function E(w) {
1390
- function P(A, k, R, L, O) {
1391
- if (!(A[k] instanceof w)) {
1392
- var j = w.name || g, F = de(A[k]);
1393
- return new b("Invalid " + L + " `" + O + "` of type " + ("`" + F + "` supplied to `" + R + "`, expected ") + ("instance of `" + j + "`."));
1389
+ function E(x) {
1390
+ function P(A, k, O, L, R) {
1391
+ if (!(A[k] instanceof x)) {
1392
+ var j = x.name || m, F = de(A[k]);
1393
+ return new p("Invalid " + L + " `" + R + "` of type " + ("`" + F + "` supplied to `" + O + "`, expected ") + ("instance of `" + j + "`."));
1394
1394
  }
1395
1395
  return null;
1396
1396
  }
1397
1397
  return v(P);
1398
1398
  }
1399
- function l(w) {
1400
- if (!Array.isArray(w))
1401
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
1399
+ function l(x) {
1400
+ if (!Array.isArray(x))
1401
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
1402
1402
  "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])."
1403
- ) : o("Invalid argument supplied to oneOf, expected an array.")), s;
1404
- function P(A, k, R, L, O) {
1405
- for (var j = A[k], F = 0; F < w.length; F++)
1406
- if (x(j, w[F]))
1403
+ ) : i("Invalid argument supplied to oneOf, expected an array.")), s;
1404
+ function P(A, k, O, L, R) {
1405
+ for (var j = A[k], F = 0; F < x.length; F++)
1406
+ if (D(j, x[F]))
1407
1407
  return null;
1408
- var Y = JSON.stringify(w, function(G, _) {
1408
+ var Y = JSON.stringify(x, function(G, _) {
1409
1409
  var te = ee(_);
1410
1410
  return te === "symbol" ? String(_) : _;
1411
1411
  });
1412
- return new b("Invalid " + L + " `" + O + "` of value `" + String(j) + "` " + ("supplied to `" + R + "`, expected one of " + Y + "."));
1412
+ return new p("Invalid " + L + " `" + R + "` of value `" + String(j) + "` " + ("supplied to `" + O + "`, expected one of " + Y + "."));
1413
1413
  }
1414
1414
  return v(P);
1415
1415
  }
1416
- function f(w) {
1417
- function P(A, k, R, L, O) {
1418
- if (typeof w != "function")
1419
- return new b("Property `" + O + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
1416
+ function f(x) {
1417
+ function P(A, k, O, L, R) {
1418
+ if (typeof x != "function")
1419
+ return new p("Property `" + R + "` of component `" + O + "` has invalid PropType notation inside objectOf.");
1420
1420
  var j = A[k], F = K(j);
1421
1421
  if (F !== "object")
1422
- return new b("Invalid " + L + " `" + O + "` of type " + ("`" + F + "` supplied to `" + R + "`, expected an object."));
1422
+ return new p("Invalid " + L + " `" + R + "` of type " + ("`" + F + "` supplied to `" + O + "`, expected an object."));
1423
1423
  for (var Y in j)
1424
1424
  if (r(j, Y)) {
1425
- var V = w(j, Y, R, L, O + "." + Y, t);
1425
+ var V = x(j, Y, O, L, R + "." + Y, t);
1426
1426
  if (V instanceof Error)
1427
1427
  return V;
1428
1428
  }
@@ -1430,49 +1430,49 @@ function un() {
1430
1430
  }
1431
1431
  return v(P);
1432
1432
  }
1433
- function M(w) {
1434
- if (!Array.isArray(w))
1435
- return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), s;
1436
- for (var P = 0; P < w.length; P++) {
1437
- var A = w[P];
1433
+ function M(x) {
1434
+ if (!Array.isArray(x))
1435
+ return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
1436
+ for (var P = 0; P < x.length; P++) {
1437
+ var A = x[P];
1438
1438
  if (typeof A != "function")
1439
- return o(
1439
+ return i(
1440
1440
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + se(A) + " at index " + P + "."
1441
1441
  ), s;
1442
1442
  }
1443
- function k(R, L, O, j, F) {
1444
- for (var Y = [], V = 0; V < w.length; V++) {
1445
- var G = w[V], _ = G(R, L, O, j, F, t);
1443
+ function k(O, L, R, j, F) {
1444
+ for (var Y = [], V = 0; V < x.length; V++) {
1445
+ var G = x[V], _ = G(O, L, R, j, F, t);
1446
1446
  if (_ == null)
1447
1447
  return null;
1448
1448
  _.data && r(_.data, "expectedType") && Y.push(_.data.expectedType);
1449
1449
  }
1450
1450
  var te = Y.length > 0 ? ", expected one of type [" + Y.join(", ") + "]" : "";
1451
- return new b("Invalid " + j + " `" + F + "` supplied to " + ("`" + O + "`" + te + "."));
1451
+ return new p("Invalid " + j + " `" + F + "` supplied to " + ("`" + R + "`" + te + "."));
1452
1452
  }
1453
1453
  return v(k);
1454
1454
  }
1455
1455
  function $() {
1456
- function w(P, A, k, R, L) {
1457
- return X(P[A]) ? null : new b("Invalid " + R + " `" + L + "` supplied to " + ("`" + k + "`, expected a ReactNode."));
1456
+ function x(P, A, k, O, L) {
1457
+ return X(P[A]) ? null : new p("Invalid " + O + " `" + L + "` supplied to " + ("`" + k + "`, expected a ReactNode."));
1458
1458
  }
1459
- return v(w);
1459
+ return v(x);
1460
1460
  }
1461
- function I(w, P, A, k, R) {
1462
- return new b(
1463
- (w || "React class") + ": " + P + " type `" + A + "." + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
1461
+ function I(x, P, A, k, O) {
1462
+ return new p(
1463
+ (x || "React class") + ": " + P + " type `" + A + "." + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + O + "`."
1464
1464
  );
1465
1465
  }
1466
- function T(w) {
1467
- function P(A, k, R, L, O) {
1466
+ function T(x) {
1467
+ function P(A, k, O, L, R) {
1468
1468
  var j = A[k], F = K(j);
1469
1469
  if (F !== "object")
1470
- return new b("Invalid " + L + " `" + O + "` of type `" + F + "` " + ("supplied to `" + R + "`, expected `object`."));
1471
- for (var Y in w) {
1472
- var V = w[Y];
1470
+ return new p("Invalid " + L + " `" + R + "` of type `" + F + "` " + ("supplied to `" + O + "`, expected `object`."));
1471
+ for (var Y in x) {
1472
+ var V = x[Y];
1473
1473
  if (typeof V != "function")
1474
- return I(R, L, O, Y, ee(V));
1475
- var G = V(j, Y, R, L, O + "." + Y, t);
1474
+ return I(O, L, R, Y, ee(V));
1475
+ var G = V(j, Y, O, L, R + "." + Y, t);
1476
1476
  if (G)
1477
1477
  return G;
1478
1478
  }
@@ -1480,22 +1480,22 @@ function un() {
1480
1480
  }
1481
1481
  return v(P);
1482
1482
  }
1483
- function z(w) {
1484
- function P(A, k, R, L, O) {
1483
+ function z(x) {
1484
+ function P(A, k, O, L, R) {
1485
1485
  var j = A[k], F = K(j);
1486
1486
  if (F !== "object")
1487
- return new b("Invalid " + L + " `" + O + "` of type `" + F + "` " + ("supplied to `" + R + "`, expected `object`."));
1488
- var Y = n({}, A[k], w);
1487
+ return new p("Invalid " + L + " `" + R + "` of type `" + F + "` " + ("supplied to `" + O + "`, expected `object`."));
1488
+ var Y = n({}, A[k], x);
1489
1489
  for (var V in Y) {
1490
- var G = w[V];
1491
- if (r(w, V) && typeof G != "function")
1492
- return I(R, L, O, V, ee(G));
1490
+ var G = x[V];
1491
+ if (r(x, V) && typeof G != "function")
1492
+ return I(O, L, R, V, ee(G));
1493
1493
  if (!G)
1494
- return new b(
1495
- "Invalid " + L + " `" + O + "` key `" + V + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(A[k], null, " ") + `
1496
- Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
1494
+ return new p(
1495
+ "Invalid " + L + " `" + R + "` key `" + V + "` supplied to `" + O + "`.\nBad object: " + JSON.stringify(A[k], null, " ") + `
1496
+ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1497
1497
  );
1498
- var _ = G(j, V, R, L, O + "." + V, t);
1498
+ var _ = G(j, V, O, L, R + "." + V, t);
1499
1499
  if (_)
1500
1500
  return _;
1501
1501
  }
@@ -1503,30 +1503,30 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
1503
1503
  }
1504
1504
  return v(P);
1505
1505
  }
1506
- function X(w) {
1507
- switch (typeof w) {
1506
+ function X(x) {
1507
+ switch (typeof x) {
1508
1508
  case "number":
1509
1509
  case "string":
1510
1510
  case "undefined":
1511
1511
  return !0;
1512
1512
  case "boolean":
1513
- return !w;
1513
+ return !x;
1514
1514
  case "object":
1515
- if (Array.isArray(w))
1516
- return w.every(X);
1517
- if (w === null || d(w))
1515
+ if (Array.isArray(x))
1516
+ return x.every(X);
1517
+ if (x === null || d(x))
1518
1518
  return !0;
1519
- var P = u(w);
1519
+ var P = u(x);
1520
1520
  if (P) {
1521
- var A = P.call(w), k;
1522
- if (P !== w.entries) {
1521
+ var A = P.call(x), k;
1522
+ if (P !== x.entries) {
1523
1523
  for (; !(k = A.next()).done; )
1524
1524
  if (!X(k.value))
1525
1525
  return !1;
1526
1526
  } else
1527
1527
  for (; !(k = A.next()).done; ) {
1528
- var R = k.value;
1529
- if (R && !X(R[1]))
1528
+ var O = k.value;
1529
+ if (O && !X(O[1]))
1530
1530
  return !1;
1531
1531
  }
1532
1532
  } else
@@ -1536,27 +1536,27 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
1536
1536
  return !1;
1537
1537
  }
1538
1538
  }
1539
- function Q(w, P) {
1540
- return w === "symbol" ? !0 : P ? P["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && P instanceof Symbol : !1;
1539
+ function Q(x, P) {
1540
+ return x === "symbol" ? !0 : P ? P["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && P instanceof Symbol : !1;
1541
1541
  }
1542
- function K(w) {
1543
- var P = typeof w;
1544
- return Array.isArray(w) ? "array" : w instanceof RegExp ? "object" : Q(P, w) ? "symbol" : P;
1542
+ function K(x) {
1543
+ var P = typeof x;
1544
+ return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" : Q(P, x) ? "symbol" : P;
1545
1545
  }
1546
- function ee(w) {
1547
- if (typeof w > "u" || w === null)
1548
- return "" + w;
1549
- var P = K(w);
1546
+ function ee(x) {
1547
+ if (typeof x > "u" || x === null)
1548
+ return "" + x;
1549
+ var P = K(x);
1550
1550
  if (P === "object") {
1551
- if (w instanceof Date)
1551
+ if (x instanceof Date)
1552
1552
  return "date";
1553
- if (w instanceof RegExp)
1553
+ if (x instanceof RegExp)
1554
1554
  return "regexp";
1555
1555
  }
1556
1556
  return P;
1557
1557
  }
1558
- function se(w) {
1559
- var P = ee(w);
1558
+ function se(x) {
1559
+ var P = ee(x);
1560
1560
  switch (P) {
1561
1561
  case "array":
1562
1562
  case "object":
@@ -1569,35 +1569,35 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
1569
1569
  return P;
1570
1570
  }
1571
1571
  }
1572
- function de(w) {
1573
- return !w.constructor || !w.constructor.name ? g : w.constructor.name;
1572
+ function de(x) {
1573
+ return !x.constructor || !x.constructor.name ? m : x.constructor.name;
1574
1574
  }
1575
- return p.checkPropTypes = i, p.resetWarningCache = i.resetWarningCache, p.PropTypes = p, p;
1575
+ return y.checkPropTypes = o, y.resetWarningCache = o.resetWarningCache, y.PropTypes = y, y;
1576
1576
  }, Me;
1577
1577
  }
1578
1578
  var Pe, Xe;
1579
1579
  function fn() {
1580
1580
  if (Xe) return Pe;
1581
1581
  Xe = 1;
1582
- var e = /* @__PURE__ */ Re();
1582
+ var e = /* @__PURE__ */ Oe();
1583
1583
  function n() {
1584
1584
  }
1585
1585
  function t() {
1586
1586
  }
1587
1587
  return t.resetWarningCache = n, Pe = function() {
1588
- function r(s, d, y, m, h, u) {
1588
+ function r(s, d, b, g, h, u) {
1589
1589
  if (u !== e) {
1590
- var g = new Error(
1590
+ var m = new Error(
1591
1591
  "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"
1592
1592
  );
1593
- throw g.name = "Invariant Violation", g;
1593
+ throw m.name = "Invariant Violation", m;
1594
1594
  }
1595
1595
  }
1596
1596
  r.isRequired = r;
1597
- function i() {
1597
+ function o() {
1598
1598
  return r;
1599
1599
  }
1600
- var o = {
1600
+ var i = {
1601
1601
  array: r,
1602
1602
  bigint: r,
1603
1603
  bool: r,
@@ -1607,20 +1607,20 @@ function fn() {
1607
1607
  string: r,
1608
1608
  symbol: r,
1609
1609
  any: r,
1610
- arrayOf: i,
1610
+ arrayOf: o,
1611
1611
  element: r,
1612
1612
  elementType: r,
1613
- instanceOf: i,
1613
+ instanceOf: o,
1614
1614
  node: r,
1615
- objectOf: i,
1616
- oneOf: i,
1617
- oneOfType: i,
1618
- shape: i,
1619
- exact: i,
1615
+ objectOf: o,
1616
+ oneOf: o,
1617
+ oneOfType: o,
1618
+ shape: o,
1619
+ exact: o,
1620
1620
  checkPropTypes: t,
1621
1621
  resetWarningCache: n
1622
1622
  };
1623
- return o.PropTypes = o, o;
1623
+ return i.PropTypes = i, i;
1624
1624
  }, Pe;
1625
1625
  }
1626
1626
  var Ge;
@@ -1638,81 +1638,81 @@ function hn() {
1638
1638
  if (Ze) return be.exports;
1639
1639
  Ze = 1;
1640
1640
  function e(t) {
1641
- var r, i, o = "";
1642
- if (typeof t == "string" || typeof t == "number") o += t;
1641
+ var r, o, i = "";
1642
+ if (typeof t == "string" || typeof t == "number") i += t;
1643
1643
  else if (typeof t == "object") if (Array.isArray(t)) {
1644
1644
  var s = t.length;
1645
- for (r = 0; r < s; r++) t[r] && (i = e(t[r])) && (o && (o += " "), o += i);
1646
- } else for (i in t) t[i] && (o && (o += " "), o += i);
1647
- return o;
1645
+ for (r = 0; r < s; r++) t[r] && (o = e(t[r])) && (i && (i += " "), i += o);
1646
+ } else for (o in t) t[o] && (i && (i += " "), i += o);
1647
+ return i;
1648
1648
  }
1649
1649
  function n() {
1650
- for (var t, r, i = 0, o = "", s = arguments.length; i < s; i++) (t = arguments[i]) && (r = e(t)) && (o && (o += " "), o += r);
1651
- return o;
1650
+ for (var t, r, o = 0, i = "", s = arguments.length; o < s; o++) (t = arguments[o]) && (r = e(t)) && (i && (i += " "), i += r);
1651
+ return i;
1652
1652
  }
1653
1653
  return be.exports = n, be.exports.clsx = n, be.exports;
1654
1654
  }
1655
- var B = {}, oe = {}, Je;
1655
+ var B = {}, ie = {}, Je;
1656
1656
  function we() {
1657
- if (Je) return oe;
1658
- Je = 1, Object.defineProperty(oe, "__esModule", {
1657
+ if (Je) return ie;
1658
+ Je = 1, Object.defineProperty(ie, "__esModule", {
1659
1659
  value: !0
1660
- }), oe.dontSetMe = i, oe.findInArray = e, oe.int = r, oe.isFunction = n, oe.isNum = t;
1661
- function e(o, s) {
1662
- for (let d = 0, y = o.length; d < y; d++)
1663
- if (s.apply(s, [o[d], d, o])) return o[d];
1660
+ }), ie.dontSetMe = o, ie.findInArray = e, ie.int = r, ie.isFunction = n, ie.isNum = t;
1661
+ function e(i, s) {
1662
+ for (let d = 0, b = i.length; d < b; d++)
1663
+ if (s.apply(s, [i[d], d, i])) return i[d];
1664
1664
  }
1665
- function n(o) {
1666
- return typeof o == "function" || Object.prototype.toString.call(o) === "[object Function]";
1665
+ function n(i) {
1666
+ return typeof i == "function" || Object.prototype.toString.call(i) === "[object Function]";
1667
1667
  }
1668
- function t(o) {
1669
- return typeof o == "number" && !isNaN(o);
1668
+ function t(i) {
1669
+ return typeof i == "number" && !isNaN(i);
1670
1670
  }
1671
- function r(o) {
1672
- return parseInt(o, 10);
1671
+ function r(i) {
1672
+ return parseInt(i, 10);
1673
1673
  }
1674
- function i(o, s, d) {
1675
- if (o[s])
1674
+ function o(i, s, d) {
1675
+ if (i[s])
1676
1676
  return new Error(`Invalid prop ${s} passed to ${d} - do not set this, set it on the child.`);
1677
1677
  }
1678
- return oe;
1678
+ return ie;
1679
1679
  }
1680
- var ie = {}, Qe;
1680
+ var oe = {}, Qe;
1681
1681
  function gn() {
1682
- if (Qe) return ie;
1683
- Qe = 1, Object.defineProperty(ie, "__esModule", {
1682
+ if (Qe) return oe;
1683
+ Qe = 1, Object.defineProperty(oe, "__esModule", {
1684
1684
  value: !0
1685
- }), ie.browserPrefixToKey = t, ie.browserPrefixToStyle = r, ie.default = void 0, ie.getPrefix = n;
1685
+ }), oe.browserPrefixToKey = t, oe.browserPrefixToStyle = r, oe.default = void 0, oe.getPrefix = n;
1686
1686
  const e = ["Moz", "Webkit", "O", "ms"];
1687
1687
  function n() {
1688
- let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
1688
+ let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
1689
1689
  if (typeof window > "u") return "";
1690
1690
  const s = window.document?.documentElement?.style;
1691
- if (!s || o in s) return "";
1691
+ if (!s || i in s) return "";
1692
1692
  for (let d = 0; d < e.length; d++)
1693
- if (t(o, e[d]) in s) return e[d];
1693
+ if (t(i, e[d]) in s) return e[d];
1694
1694
  return "";
1695
1695
  }
1696
- function t(o, s) {
1697
- return s ? `${s}${i(o)}` : o;
1696
+ function t(i, s) {
1697
+ return s ? `${s}${o(i)}` : i;
1698
1698
  }
1699
- function r(o, s) {
1700
- return s ? `-${s.toLowerCase()}-${o}` : o;
1699
+ function r(i, s) {
1700
+ return s ? `-${s.toLowerCase()}-${i}` : i;
1701
1701
  }
1702
- function i(o) {
1702
+ function o(i) {
1703
1703
  let s = "", d = !0;
1704
- for (let y = 0; y < o.length; y++)
1705
- d ? (s += o[y].toUpperCase(), d = !1) : o[y] === "-" ? d = !0 : s += o[y];
1704
+ for (let b = 0; b < i.length; b++)
1705
+ d ? (s += i[b].toUpperCase(), d = !1) : i[b] === "-" ? d = !0 : s += i[b];
1706
1706
  return s;
1707
1707
  }
1708
- return ie.default = n(), ie;
1708
+ return oe.default = n(), oe;
1709
1709
  }
1710
1710
  var et;
1711
- function Oe() {
1711
+ function Re() {
1712
1712
  if (et) return B;
1713
1713
  et = 1, Object.defineProperty(B, "__esModule", {
1714
1714
  value: !0
1715
- }), B.addClassName = c, B.addEvent = s, B.addUserSelectStyles = N, B.createCSSTransform = p, B.createSVGTransform = x, B.getTouch = v, B.getTouchIdentifier = C, B.getTranslation = b, B.innerHeight = h, B.innerWidth = u, B.matchesSelector = i, B.matchesSelectorAndParentsTo = o, B.offsetXYFromParent = g, B.outerHeight = y, B.outerWidth = m, B.removeClassName = E, B.removeEvent = d, B.scheduleRemoveUserSelectStyles = S;
1715
+ }), B.addClassName = c, B.addEvent = s, B.addUserSelectStyles = N, B.createCSSTransform = y, B.createSVGTransform = D, B.getTouch = v, B.getTouchIdentifier = w, B.getTranslation = p, B.innerHeight = h, B.innerWidth = u, B.matchesSelector = o, B.matchesSelectorAndParentsTo = i, B.offsetXYFromParent = m, B.outerHeight = b, B.outerWidth = g, B.removeClassName = E, B.removeEvent = d, B.scheduleRemoveUserSelectStyles = C;
1716
1716
  var e = we(), n = t(gn());
1717
1717
  function t(l, f) {
1718
1718
  if (typeof WeakMap == "function") var M = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap();
@@ -1729,15 +1729,15 @@ function Oe() {
1729
1729
  })(l, f);
1730
1730
  }
1731
1731
  let r = "";
1732
- function i(l, f) {
1732
+ function o(l, f) {
1733
1733
  return r || (r = (0, e.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(M) {
1734
1734
  return (0, e.isFunction)(l[M]);
1735
1735
  })), (0, e.isFunction)(l[r]) ? l[r](f) : !1;
1736
1736
  }
1737
- function o(l, f, M) {
1737
+ function i(l, f, M) {
1738
1738
  let $ = l;
1739
1739
  do {
1740
- if (i($, f)) return !0;
1740
+ if (o($, f)) return !0;
1741
1741
  if ($ === M) return !1;
1742
1742
  $ = $.parentNode;
1743
1743
  } while ($);
@@ -1759,12 +1759,12 @@ function Oe() {
1759
1759
  };
1760
1760
  l.removeEventListener ? l.removeEventListener(f, M, I) : l.detachEvent ? l.detachEvent("on" + f, M) : l["on" + f] = null;
1761
1761
  }
1762
- function y(l) {
1762
+ function b(l) {
1763
1763
  let f = l.clientHeight;
1764
1764
  const M = l.ownerDocument.defaultView.getComputedStyle(l);
1765
1765
  return f += (0, e.int)(M.borderTopWidth), f += (0, e.int)(M.borderBottomWidth), f;
1766
1766
  }
1767
- function m(l) {
1767
+ function g(l) {
1768
1768
  let f = l.clientWidth;
1769
1769
  const M = l.ownerDocument.defaultView.getComputedStyle(l);
1770
1770
  return f += (0, e.int)(M.borderLeftWidth), f += (0, e.int)(M.borderRightWidth), f;
@@ -1779,7 +1779,7 @@ function Oe() {
1779
1779
  const M = l.ownerDocument.defaultView.getComputedStyle(l);
1780
1780
  return f -= (0, e.int)(M.paddingLeft), f -= (0, e.int)(M.paddingRight), f;
1781
1781
  }
1782
- function g(l, f, M) {
1782
+ function m(l, f, M) {
1783
1783
  const I = f === f.ownerDocument.body ? {
1784
1784
  left: 0,
1785
1785
  top: 0
@@ -1789,16 +1789,16 @@ function Oe() {
1789
1789
  y: z
1790
1790
  };
1791
1791
  }
1792
- function p(l, f) {
1793
- const M = b(l, f, "px");
1792
+ function y(l, f) {
1793
+ const M = p(l, f, "px");
1794
1794
  return {
1795
1795
  [(0, n.browserPrefixToKey)("transform", n.default)]: M
1796
1796
  };
1797
1797
  }
1798
- function x(l, f) {
1799
- return b(l, f, "");
1798
+ function D(l, f) {
1799
+ return p(l, f, "");
1800
1800
  }
1801
- function b(l, f, M) {
1801
+ function p(l, f, M) {
1802
1802
  let {
1803
1803
  x: $,
1804
1804
  y: I
@@ -1812,7 +1812,7 @@ function Oe() {
1812
1812
  function v(l, f) {
1813
1813
  return l.targetTouches && (0, e.findInArray)(l.targetTouches, (M) => f === M.identifier) || l.changedTouches && (0, e.findInArray)(l.changedTouches, (M) => f === M.identifier);
1814
1814
  }
1815
- function C(l) {
1815
+ function w(l) {
1816
1816
  if (l.targetTouches && l.targetTouches[0]) return l.targetTouches[0].identifier;
1817
1817
  if (l.changedTouches && l.changedTouches[0]) return l.changedTouches[0].identifier;
1818
1818
  }
@@ -1823,12 +1823,12 @@ function Oe() {
1823
1823
  `, f.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
1824
1824
  `, l.getElementsByTagName("head")[0].appendChild(f)), l.body && c(l.body, "react-draggable-transparent-selection");
1825
1825
  }
1826
- function S(l) {
1826
+ function C(l) {
1827
1827
  window.requestAnimationFrame ? window.requestAnimationFrame(() => {
1828
- D(l);
1829
- }) : D(l);
1828
+ S(l);
1829
+ }) : S(l);
1830
1830
  }
1831
- function D(l) {
1831
+ function S(l) {
1832
1832
  if (l)
1833
1833
  try {
1834
1834
  if (l.body && E(l.body, "react-draggable-transparent-selection"), l.selection)
@@ -1853,81 +1853,81 @@ function xt() {
1853
1853
  if (tt) return ne;
1854
1854
  tt = 1, Object.defineProperty(ne, "__esModule", {
1855
1855
  value: !0
1856
- }), ne.canDragX = i, ne.canDragY = o, ne.createCoreData = d, ne.createDraggableData = y, ne.getBoundPosition = t, ne.getControlPosition = s, ne.snapToGrid = r;
1857
- var e = we(), n = Oe();
1858
- function t(u, g, p) {
1859
- if (!u.props.bounds) return [g, p];
1856
+ }), ne.canDragX = o, ne.canDragY = i, ne.createCoreData = d, ne.createDraggableData = b, ne.getBoundPosition = t, ne.getControlPosition = s, ne.snapToGrid = r;
1857
+ var e = we(), n = Re();
1858
+ function t(u, m, y) {
1859
+ if (!u.props.bounds) return [m, y];
1860
1860
  let {
1861
- bounds: x
1861
+ bounds: D
1862
1862
  } = u.props;
1863
- x = typeof x == "string" ? x : m(x);
1864
- const b = h(u);
1865
- if (typeof x == "string") {
1863
+ D = typeof D == "string" ? D : g(D);
1864
+ const p = h(u);
1865
+ if (typeof D == "string") {
1866
1866
  const {
1867
1867
  ownerDocument: v
1868
- } = b, C = v.defaultView;
1868
+ } = p, w = v.defaultView;
1869
1869
  let N;
1870
- if (x === "parent" ? N = b.parentNode : N = b.getRootNode().querySelector(x), !(N instanceof C.HTMLElement))
1871
- throw new Error('Bounds selector "' + x + '" could not find an element.');
1872
- const S = N, D = C.getComputedStyle(b), c = C.getComputedStyle(S);
1873
- x = {
1874
- left: -b.offsetLeft + (0, e.int)(c.paddingLeft) + (0, e.int)(D.marginLeft),
1875
- top: -b.offsetTop + (0, e.int)(c.paddingTop) + (0, e.int)(D.marginTop),
1876
- right: (0, n.innerWidth)(S) - (0, n.outerWidth)(b) - b.offsetLeft + (0, e.int)(c.paddingRight) - (0, e.int)(D.marginRight),
1877
- bottom: (0, n.innerHeight)(S) - (0, n.outerHeight)(b) - b.offsetTop + (0, e.int)(c.paddingBottom) - (0, e.int)(D.marginBottom)
1870
+ if (D === "parent" ? N = p.parentNode : N = p.getRootNode().querySelector(D), !(N instanceof w.HTMLElement))
1871
+ throw new Error('Bounds selector "' + D + '" could not find an element.');
1872
+ const C = N, S = w.getComputedStyle(p), c = w.getComputedStyle(C);
1873
+ D = {
1874
+ left: -p.offsetLeft + (0, e.int)(c.paddingLeft) + (0, e.int)(S.marginLeft),
1875
+ top: -p.offsetTop + (0, e.int)(c.paddingTop) + (0, e.int)(S.marginTop),
1876
+ right: (0, n.innerWidth)(C) - (0, n.outerWidth)(p) - p.offsetLeft + (0, e.int)(c.paddingRight) - (0, e.int)(S.marginRight),
1877
+ bottom: (0, n.innerHeight)(C) - (0, n.outerHeight)(p) - p.offsetTop + (0, e.int)(c.paddingBottom) - (0, e.int)(S.marginBottom)
1878
1878
  };
1879
1879
  }
1880
- return (0, e.isNum)(x.right) && (g = Math.min(g, x.right)), (0, e.isNum)(x.bottom) && (p = Math.min(p, x.bottom)), (0, e.isNum)(x.left) && (g = Math.max(g, x.left)), (0, e.isNum)(x.top) && (p = Math.max(p, x.top)), [g, p];
1880
+ return (0, e.isNum)(D.right) && (m = Math.min(m, D.right)), (0, e.isNum)(D.bottom) && (y = Math.min(y, D.bottom)), (0, e.isNum)(D.left) && (m = Math.max(m, D.left)), (0, e.isNum)(D.top) && (y = Math.max(y, D.top)), [m, y];
1881
1881
  }
1882
- function r(u, g, p) {
1883
- const x = Math.round(g / u[0]) * u[0], b = Math.round(p / u[1]) * u[1];
1884
- return [x, b];
1882
+ function r(u, m, y) {
1883
+ const D = Math.round(m / u[0]) * u[0], p = Math.round(y / u[1]) * u[1];
1884
+ return [D, p];
1885
1885
  }
1886
- function i(u) {
1886
+ function o(u) {
1887
1887
  return u.props.axis === "both" || u.props.axis === "x";
1888
1888
  }
1889
- function o(u) {
1889
+ function i(u) {
1890
1890
  return u.props.axis === "both" || u.props.axis === "y";
1891
1891
  }
1892
- function s(u, g, p) {
1893
- const x = typeof g == "number" ? (0, n.getTouch)(u, g) : null;
1894
- if (typeof g == "number" && !x) return null;
1895
- const b = h(p), v = p.props.offsetParent || b.offsetParent || b.ownerDocument.body;
1896
- return (0, n.offsetXYFromParent)(x || u, v, p.props.scale);
1892
+ function s(u, m, y) {
1893
+ const D = typeof m == "number" ? (0, n.getTouch)(u, m) : null;
1894
+ if (typeof m == "number" && !D) return null;
1895
+ const p = h(y), v = y.props.offsetParent || p.offsetParent || p.ownerDocument.body;
1896
+ return (0, n.offsetXYFromParent)(D || u, v, y.props.scale);
1897
1897
  }
1898
- function d(u, g, p) {
1899
- const x = !(0, e.isNum)(u.lastX), b = h(u);
1900
- return x ? {
1901
- node: b,
1898
+ function d(u, m, y) {
1899
+ const D = !(0, e.isNum)(u.lastX), p = h(u);
1900
+ return D ? {
1901
+ node: p,
1902
1902
  deltaX: 0,
1903
1903
  deltaY: 0,
1904
- lastX: g,
1905
- lastY: p,
1906
- x: g,
1907
- y: p
1904
+ lastX: m,
1905
+ lastY: y,
1906
+ x: m,
1907
+ y
1908
1908
  } : {
1909
- node: b,
1910
- deltaX: g - u.lastX,
1911
- deltaY: p - u.lastY,
1909
+ node: p,
1910
+ deltaX: m - u.lastX,
1911
+ deltaY: y - u.lastY,
1912
1912
  lastX: u.lastX,
1913
1913
  lastY: u.lastY,
1914
- x: g,
1915
- y: p
1914
+ x: m,
1915
+ y
1916
1916
  };
1917
1917
  }
1918
- function y(u, g) {
1919
- const p = u.props.scale;
1918
+ function b(u, m) {
1919
+ const y = u.props.scale;
1920
1920
  return {
1921
- node: g.node,
1922
- x: u.state.x + g.deltaX / p,
1923
- y: u.state.y + g.deltaY / p,
1924
- deltaX: g.deltaX / p,
1925
- deltaY: g.deltaY / p,
1921
+ node: m.node,
1922
+ x: u.state.x + m.deltaX / y,
1923
+ y: u.state.y + m.deltaY / y,
1924
+ deltaX: m.deltaX / y,
1925
+ deltaY: m.deltaY / y,
1926
1926
  lastX: u.state.x,
1927
1927
  lastY: u.state.y
1928
1928
  };
1929
1929
  }
1930
- function m(u) {
1930
+ function g(u) {
1931
1931
  return {
1932
1932
  left: u.left,
1933
1933
  top: u.top,
@@ -1936,10 +1936,10 @@ function xt() {
1936
1936
  };
1937
1937
  }
1938
1938
  function h(u) {
1939
- const g = u.findDOMNode();
1940
- if (!g)
1939
+ const m = u.findDOMNode();
1940
+ if (!m)
1941
1941
  throw new Error("<DraggableCore>: Unmounted during event!");
1942
- return g;
1942
+ return m;
1943
1943
  }
1944
1944
  return ne;
1945
1945
  }
@@ -1959,42 +1959,42 @@ function mn() {
1959
1959
  rt = 1, Object.defineProperty(he, "__esModule", {
1960
1960
  value: !0
1961
1961
  }), he.default = void 0;
1962
- var e = y(ae), n = d(/* @__PURE__ */ vt()), t = d(lt), r = Oe(), i = xt(), o = we(), s = d(wt());
1963
- function d(b) {
1964
- return b && b.__esModule ? b : { default: b };
1965
- }
1966
- function y(b, v) {
1967
- if (typeof WeakMap == "function") var C = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap();
1968
- return (y = function(S, D) {
1969
- if (!D && S && S.__esModule) return S;
1970
- var c, E, l = { __proto__: null, default: S };
1971
- if (S === null || typeof S != "object" && typeof S != "function") return l;
1972
- if (c = D ? N : C) {
1973
- if (c.has(S)) return c.get(S);
1974
- c.set(S, l);
1962
+ var e = b(ae), n = d(/* @__PURE__ */ vt()), t = d(lt), r = Re(), o = xt(), i = we(), s = d(wt());
1963
+ function d(p) {
1964
+ return p && p.__esModule ? p : { default: p };
1965
+ }
1966
+ function b(p, v) {
1967
+ if (typeof WeakMap == "function") var w = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap();
1968
+ return (b = function(C, S) {
1969
+ if (!S && C && C.__esModule) return C;
1970
+ var c, E, l = { __proto__: null, default: C };
1971
+ if (C === null || typeof C != "object" && typeof C != "function") return l;
1972
+ if (c = S ? N : w) {
1973
+ if (c.has(C)) return c.get(C);
1974
+ c.set(C, l);
1975
1975
  }
1976
- for (const f in S) f !== "default" && {}.hasOwnProperty.call(S, f) && ((E = (c = Object.defineProperty) && Object.getOwnPropertyDescriptor(S, f)) && (E.get || E.set) ? c(l, f, E) : l[f] = S[f]);
1976
+ for (const f in C) f !== "default" && {}.hasOwnProperty.call(C, f) && ((E = (c = Object.defineProperty) && Object.getOwnPropertyDescriptor(C, f)) && (E.get || E.set) ? c(l, f, E) : l[f] = C[f]);
1977
1977
  return l;
1978
- })(b, v);
1978
+ })(p, v);
1979
1979
  }
1980
- function m(b, v, C) {
1981
- return (v = h(v)) in b ? Object.defineProperty(b, v, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : b[v] = C, b;
1980
+ function g(p, v, w) {
1981
+ return (v = h(v)) in p ? Object.defineProperty(p, v, { value: w, enumerable: !0, configurable: !0, writable: !0 }) : p[v] = w, p;
1982
1982
  }
1983
- function h(b) {
1984
- var v = u(b, "string");
1983
+ function h(p) {
1984
+ var v = u(p, "string");
1985
1985
  return typeof v == "symbol" ? v : v + "";
1986
1986
  }
1987
- function u(b, v) {
1988
- if (typeof b != "object" || !b) return b;
1989
- var C = b[Symbol.toPrimitive];
1990
- if (C !== void 0) {
1991
- var N = C.call(b, v);
1987
+ function u(p, v) {
1988
+ if (typeof p != "object" || !p) return p;
1989
+ var w = p[Symbol.toPrimitive];
1990
+ if (w !== void 0) {
1991
+ var N = w.call(p, v);
1992
1992
  if (typeof N != "object") return N;
1993
1993
  throw new TypeError("@@toPrimitive must return a primitive value.");
1994
1994
  }
1995
- return (v === "string" ? String : Number)(b);
1995
+ return (v === "string" ? String : Number)(p);
1996
1996
  }
1997
- const g = {
1997
+ const m = {
1998
1998
  touch: {
1999
1999
  start: "touchstart",
2000
2000
  move: "touchmove",
@@ -2006,42 +2006,42 @@ function mn() {
2006
2006
  stop: "mouseup"
2007
2007
  }
2008
2008
  };
2009
- let p = g.mouse, x = class extends e.Component {
2009
+ let y = m.mouse, D = class extends e.Component {
2010
2010
  constructor() {
2011
- 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) => {
2011
+ super(...arguments), g(this, "dragging", !1), g(this, "lastX", NaN), g(this, "lastY", NaN), g(this, "touchIdentifier", null), g(this, "mounted", !1), g(this, "handleDragStart", (v) => {
2012
2012
  if (this.props.onMouseDown(v), !this.props.allowAnyClick && typeof v.button == "number" && v.button !== 0) return !1;
2013
- const C = this.findDOMNode();
2014
- if (!C || !C.ownerDocument || !C.ownerDocument.body)
2013
+ const w = this.findDOMNode();
2014
+ if (!w || !w.ownerDocument || !w.ownerDocument.body)
2015
2015
  throw new Error("<DraggableCore> not mounted on DragStart!");
2016
2016
  const {
2017
2017
  ownerDocument: N
2018
- } = C;
2019
- if (this.props.disabled || !(v.target instanceof N.defaultView.Node) || this.props.handle && !(0, r.matchesSelectorAndParentsTo)(v.target, this.props.handle, C) || this.props.cancel && (0, r.matchesSelectorAndParentsTo)(v.target, this.props.cancel, C))
2018
+ } = w;
2019
+ if (this.props.disabled || !(v.target instanceof N.defaultView.Node) || this.props.handle && !(0, r.matchesSelectorAndParentsTo)(v.target, this.props.handle, w) || this.props.cancel && (0, r.matchesSelectorAndParentsTo)(v.target, this.props.cancel, w))
2020
2020
  return;
2021
2021
  v.type === "touchstart" && !this.props.allowMobileScroll && v.preventDefault();
2022
- const S = (0, r.getTouchIdentifier)(v);
2023
- this.touchIdentifier = S;
2024
- const D = (0, i.getControlPosition)(v, S, this);
2025
- if (D == null) return;
2022
+ const C = (0, r.getTouchIdentifier)(v);
2023
+ this.touchIdentifier = C;
2024
+ const S = (0, o.getControlPosition)(v, C, this);
2025
+ if (S == null) return;
2026
2026
  const {
2027
2027
  x: c,
2028
2028
  y: E
2029
- } = D, l = (0, i.createCoreData)(this, c, E);
2030
- (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)(N), this.dragging = !0, this.lastX = c, this.lastY = E, (0, r.addEvent)(N, p.move, this.handleDrag), (0, r.addEvent)(N, p.stop, this.handleDragStop));
2031
- }), m(this, "handleDrag", (v) => {
2032
- const C = (0, i.getControlPosition)(v, this.touchIdentifier, this);
2033
- if (C == null) return;
2029
+ } = S, l = (0, o.createCoreData)(this, c, E);
2030
+ (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)(N), this.dragging = !0, this.lastX = c, this.lastY = E, (0, r.addEvent)(N, y.move, this.handleDrag), (0, r.addEvent)(N, y.stop, this.handleDragStop));
2031
+ }), g(this, "handleDrag", (v) => {
2032
+ const w = (0, o.getControlPosition)(v, this.touchIdentifier, this);
2033
+ if (w == null) return;
2034
2034
  let {
2035
2035
  x: N,
2036
- y: S
2037
- } = C;
2036
+ y: C
2037
+ } = w;
2038
2038
  if (Array.isArray(this.props.grid)) {
2039
- let E = N - this.lastX, l = S - this.lastY;
2040
- if ([E, l] = (0, i.snapToGrid)(this.props.grid, E, l), !E && !l) return;
2041
- N = this.lastX + E, S = this.lastY + l;
2039
+ let E = N - this.lastX, l = C - this.lastY;
2040
+ if ([E, l] = (0, o.snapToGrid)(this.props.grid, E, l), !E && !l) return;
2041
+ N = this.lastX + E, C = this.lastY + l;
2042
2042
  }
2043
- const D = (0, i.createCoreData)(this, N, S);
2044
- if ((0, s.default)("DraggableCore: handleDrag: %j", D), this.props.onDrag(v, D) === !1 || this.mounted === !1) {
2043
+ const S = (0, o.createCoreData)(this, N, C);
2044
+ if ((0, s.default)("DraggableCore: handleDrag: %j", S), this.props.onDrag(v, S) === !1 || this.mounted === !1) {
2045
2045
  try {
2046
2046
  this.handleDragStop(new MouseEvent("mouseup"));
2047
2047
  } catch {
@@ -2050,29 +2050,29 @@ function mn() {
2050
2050
  }
2051
2051
  return;
2052
2052
  }
2053
- this.lastX = N, this.lastY = S;
2054
- }), m(this, "handleDragStop", (v) => {
2053
+ this.lastX = N, this.lastY = C;
2054
+ }), g(this, "handleDragStop", (v) => {
2055
2055
  if (!this.dragging) return;
2056
- const C = (0, i.getControlPosition)(v, this.touchIdentifier, this);
2057
- if (C == null) return;
2056
+ const w = (0, o.getControlPosition)(v, this.touchIdentifier, this);
2057
+ if (w == null) return;
2058
2058
  let {
2059
2059
  x: N,
2060
- y: S
2061
- } = C;
2060
+ y: C
2061
+ } = w;
2062
2062
  if (Array.isArray(this.props.grid)) {
2063
- let l = N - this.lastX || 0, f = S - this.lastY || 0;
2064
- [l, f] = (0, i.snapToGrid)(this.props.grid, l, f), N = this.lastX + l, S = this.lastY + f;
2063
+ let l = N - this.lastX || 0, f = C - this.lastY || 0;
2064
+ [l, f] = (0, o.snapToGrid)(this.props.grid, l, f), N = this.lastX + l, C = this.lastY + f;
2065
2065
  }
2066
- const D = (0, i.createCoreData)(this, N, S);
2067
- if (this.props.onStop(v, D) === !1 || this.mounted === !1) return !1;
2066
+ const S = (0, o.createCoreData)(this, N, C);
2067
+ if (this.props.onStop(v, S) === !1 || this.mounted === !1) return !1;
2068
2068
  const E = this.findDOMNode();
2069
- E && this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(E.ownerDocument), (0, s.default)("DraggableCore: handleDragStop: %j", D), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, E && ((0, s.default)("DraggableCore: Removing handlers"), (0, r.removeEvent)(E.ownerDocument, p.move, this.handleDrag), (0, r.removeEvent)(E.ownerDocument, p.stop, this.handleDragStop));
2070
- }), 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)));
2069
+ E && this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(E.ownerDocument), (0, s.default)("DraggableCore: handleDragStop: %j", S), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, E && ((0, s.default)("DraggableCore: Removing handlers"), (0, r.removeEvent)(E.ownerDocument, y.move, this.handleDrag), (0, r.removeEvent)(E.ownerDocument, y.stop, this.handleDragStop));
2070
+ }), g(this, "onMouseDown", (v) => (y = m.mouse, this.handleDragStart(v))), g(this, "onMouseUp", (v) => (y = m.mouse, this.handleDragStop(v))), g(this, "onTouchStart", (v) => (y = m.touch, this.handleDragStart(v))), g(this, "onTouchEnd", (v) => (y = m.touch, this.handleDragStop(v)));
2071
2071
  }
2072
2072
  componentDidMount() {
2073
2073
  this.mounted = !0;
2074
2074
  const v = this.findDOMNode();
2075
- v && (0, r.addEvent)(v, g.touch.start, this.onTouchStart, {
2075
+ v && (0, r.addEvent)(v, m.touch.start, this.onTouchStart, {
2076
2076
  passive: !1
2077
2077
  });
2078
2078
  }
@@ -2081,11 +2081,11 @@ function mn() {
2081
2081
  const v = this.findDOMNode();
2082
2082
  if (v) {
2083
2083
  const {
2084
- ownerDocument: C
2084
+ ownerDocument: w
2085
2085
  } = v;
2086
- (0, r.removeEvent)(C, g.mouse.move, this.handleDrag), (0, r.removeEvent)(C, g.touch.move, this.handleDrag), (0, r.removeEvent)(C, g.mouse.stop, this.handleDragStop), (0, r.removeEvent)(C, g.touch.stop, this.handleDragStop), (0, r.removeEvent)(v, g.touch.start, this.onTouchStart, {
2086
+ (0, r.removeEvent)(w, m.mouse.move, this.handleDrag), (0, r.removeEvent)(w, m.touch.move, this.handleDrag), (0, r.removeEvent)(w, m.mouse.stop, this.handleDragStop), (0, r.removeEvent)(w, m.touch.stop, this.handleDragStop), (0, r.removeEvent)(v, m.touch.start, this.onTouchStart, {
2087
2087
  passive: !1
2088
- }), this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(C);
2088
+ }), this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(w);
2089
2089
  }
2090
2090
  }
2091
2091
  // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
@@ -2106,7 +2106,7 @@ function mn() {
2106
2106
  });
2107
2107
  }
2108
2108
  };
2109
- return he.default = x, m(x, "displayName", "DraggableCore"), m(x, "propTypes", {
2109
+ return he.default = D, g(D, "displayName", "DraggableCore"), g(D, "propTypes", {
2110
2110
  /**
2111
2111
  * `allowAnyClick` allows dragging using any mouse button.
2112
2112
  * By default, we only accept the left button.
@@ -2138,8 +2138,8 @@ function mn() {
2138
2138
  * `offsetParent`, if set, uses the passed DOM node to compute drag offsets
2139
2139
  * instead of using the parent node.
2140
2140
  */
2141
- offsetParent: function(b, v) {
2142
- if (b[v] && b[v].nodeType !== 1)
2141
+ offsetParent: function(p, v) {
2142
+ if (p[v] && p[v].nodeType !== 1)
2143
2143
  throw new Error("Draggable's offsetParent must be a DOM Node.");
2144
2144
  },
2145
2145
  /**
@@ -2233,10 +2233,10 @@ function mn() {
2233
2233
  /**
2234
2234
  * These properties should be defined on the child, not here.
2235
2235
  */
2236
- className: o.dontSetMe,
2237
- style: o.dontSetMe,
2238
- transform: o.dontSetMe
2239
- }), m(x, "defaultProps", {
2236
+ className: i.dontSetMe,
2237
+ style: i.dontSetMe,
2238
+ transform: i.dontSetMe
2239
+ }), g(D, "defaultProps", {
2240
2240
  allowAnyClick: !1,
2241
2241
  // by default only accept left click
2242
2242
  allowMobileScroll: !1,
@@ -2253,92 +2253,92 @@ function mn() {
2253
2253
  scale: 1
2254
2254
  }), he;
2255
2255
  }
2256
- var ot;
2256
+ var it;
2257
2257
  function pn() {
2258
- return ot || (ot = 1, (function(e) {
2258
+ return it || (it = 1, (function(e) {
2259
2259
  Object.defineProperty(e, "__esModule", {
2260
2260
  value: !0
2261
2261
  }), Object.defineProperty(e, "DraggableCore", {
2262
2262
  enumerable: !0,
2263
2263
  get: function() {
2264
- return y.default;
2264
+ return b.default;
2265
2265
  }
2266
2266
  }), e.default = void 0;
2267
- var n = u(ae), t = h(/* @__PURE__ */ vt()), r = h(lt), i = hn(), o = Oe(), s = xt(), d = we(), y = h(mn()), m = h(wt());
2268
- function h(C) {
2269
- return C && C.__esModule ? C : { default: C };
2267
+ var n = u(ae), t = h(/* @__PURE__ */ vt()), r = h(lt), o = hn(), i = Re(), s = xt(), d = we(), b = h(mn()), g = h(wt());
2268
+ function h(w) {
2269
+ return w && w.__esModule ? w : { default: w };
2270
2270
  }
2271
- function u(C, N) {
2272
- if (typeof WeakMap == "function") var S = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap();
2271
+ function u(w, N) {
2272
+ if (typeof WeakMap == "function") var C = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakMap();
2273
2273
  return (u = function(c, E) {
2274
2274
  if (!E && c && c.__esModule) return c;
2275
2275
  var l, f, M = { __proto__: null, default: c };
2276
2276
  if (c === null || typeof c != "object" && typeof c != "function") return M;
2277
- if (l = E ? D : S) {
2277
+ if (l = E ? S : C) {
2278
2278
  if (l.has(c)) return l.get(c);
2279
2279
  l.set(c, M);
2280
2280
  }
2281
2281
  for (const $ in c) $ !== "default" && {}.hasOwnProperty.call(c, $) && ((f = (l = Object.defineProperty) && Object.getOwnPropertyDescriptor(c, $)) && (f.get || f.set) ? l(M, $, f) : M[$] = c[$]);
2282
2282
  return M;
2283
- })(C, N);
2283
+ })(w, N);
2284
2284
  }
2285
- function g() {
2286
- return g = Object.assign ? Object.assign.bind() : function(C) {
2285
+ function m() {
2286
+ return m = Object.assign ? Object.assign.bind() : function(w) {
2287
2287
  for (var N = 1; N < arguments.length; N++) {
2288
- var S = arguments[N];
2289
- for (var D in S) ({}).hasOwnProperty.call(S, D) && (C[D] = S[D]);
2288
+ var C = arguments[N];
2289
+ for (var S in C) ({}).hasOwnProperty.call(C, S) && (w[S] = C[S]);
2290
2290
  }
2291
- return C;
2292
- }, g.apply(null, arguments);
2291
+ return w;
2292
+ }, m.apply(null, arguments);
2293
2293
  }
2294
- function p(C, N, S) {
2295
- return (N = x(N)) in C ? Object.defineProperty(C, N, { value: S, enumerable: !0, configurable: !0, writable: !0 }) : C[N] = S, C;
2294
+ function y(w, N, C) {
2295
+ return (N = D(N)) in w ? Object.defineProperty(w, N, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : w[N] = C, w;
2296
2296
  }
2297
- function x(C) {
2298
- var N = b(C, "string");
2297
+ function D(w) {
2298
+ var N = p(w, "string");
2299
2299
  return typeof N == "symbol" ? N : N + "";
2300
2300
  }
2301
- function b(C, N) {
2302
- if (typeof C != "object" || !C) return C;
2303
- var S = C[Symbol.toPrimitive];
2304
- if (S !== void 0) {
2305
- var D = S.call(C, N);
2306
- if (typeof D != "object") return D;
2301
+ function p(w, N) {
2302
+ if (typeof w != "object" || !w) return w;
2303
+ var C = w[Symbol.toPrimitive];
2304
+ if (C !== void 0) {
2305
+ var S = C.call(w, N);
2306
+ if (typeof S != "object") return S;
2307
2307
  throw new TypeError("@@toPrimitive must return a primitive value.");
2308
2308
  }
2309
- return (N === "string" ? String : Number)(C);
2309
+ return (N === "string" ? String : Number)(w);
2310
2310
  }
2311
2311
  class v extends n.Component {
2312
2312
  // React 16.3+
2313
2313
  // Arity (props, state)
2314
- static getDerivedStateFromProps(N, S) {
2314
+ static getDerivedStateFromProps(N, C) {
2315
2315
  let {
2316
- position: D
2316
+ position: S
2317
2317
  } = N, {
2318
2318
  prevPropsPosition: c
2319
- } = S;
2320
- return D && (!c || D.x !== c.x || D.y !== c.y) ? ((0, m.default)("Draggable: getDerivedStateFromProps %j", {
2321
- position: D,
2319
+ } = C;
2320
+ return S && (!c || S.x !== c.x || S.y !== c.y) ? ((0, g.default)("Draggable: getDerivedStateFromProps %j", {
2321
+ position: S,
2322
2322
  prevPropsPosition: c
2323
2323
  }), {
2324
- x: D.x,
2325
- y: D.y,
2324
+ x: S.x,
2325
+ y: S.y,
2326
2326
  prevPropsPosition: {
2327
- ...D
2327
+ ...S
2328
2328
  }
2329
2329
  }) : null;
2330
2330
  }
2331
2331
  constructor(N) {
2332
- super(N), p(this, "onDragStart", (S, D) => {
2333
- if ((0, m.default)("Draggable: onDragStart: %j", D), this.props.onStart(S, (0, s.createDraggableData)(this, D)) === !1) return !1;
2332
+ super(N), y(this, "onDragStart", (C, S) => {
2333
+ if ((0, g.default)("Draggable: onDragStart: %j", S), this.props.onStart(C, (0, s.createDraggableData)(this, S)) === !1) return !1;
2334
2334
  this.setState({
2335
2335
  dragging: !0,
2336
2336
  dragged: !0
2337
2337
  });
2338
- }), p(this, "onDrag", (S, D) => {
2338
+ }), y(this, "onDrag", (C, S) => {
2339
2339
  if (!this.state.dragging) return !1;
2340
- (0, m.default)("Draggable: onDrag: %j", D);
2341
- const c = (0, s.createDraggableData)(this, D), E = {
2340
+ (0, g.default)("Draggable: onDrag: %j", S);
2341
+ const c = (0, s.createDraggableData)(this, S), E = {
2342
2342
  x: c.x,
2343
2343
  y: c.y,
2344
2344
  slackX: 0,
@@ -2353,11 +2353,11 @@ function pn() {
2353
2353
  const [$, I] = (0, s.getBoundPosition)(this, E.x, E.y);
2354
2354
  E.x = $, E.y = I, E.slackX = this.state.slackX + (f - E.x), E.slackY = this.state.slackY + (M - E.y), c.x = E.x, c.y = E.y, c.deltaX = E.x - this.state.x, c.deltaY = E.y - this.state.y;
2355
2355
  }
2356
- if (this.props.onDrag(S, c) === !1) return !1;
2356
+ if (this.props.onDrag(C, c) === !1) return !1;
2357
2357
  this.setState(E);
2358
- }), p(this, "onDragStop", (S, D) => {
2359
- if (!this.state.dragging || this.props.onStop(S, (0, s.createDraggableData)(this, D)) === !1) return !1;
2360
- (0, m.default)("Draggable: onDragStop: %j", D);
2358
+ }), y(this, "onDragStop", (C, S) => {
2359
+ if (!this.state.dragging || this.props.onStop(C, (0, s.createDraggableData)(this, S)) === !1) return !1;
2360
+ (0, g.default)("Draggable: onDragStop: %j", S);
2361
2361
  const E = {
2362
2362
  dragging: !1,
2363
2363
  slackX: 0,
@@ -2407,8 +2407,8 @@ function pn() {
2407
2407
  render() {
2408
2408
  const {
2409
2409
  axis: N,
2410
- bounds: S,
2411
- children: D,
2410
+ bounds: C,
2411
+ children: S,
2412
2412
  defaultPosition: c,
2413
2413
  defaultClassName: E,
2414
2414
  defaultClassNameDragging: l,
@@ -2425,28 +2425,28 @@ function pn() {
2425
2425
  // Set top if vertical drag is enabled
2426
2426
  y: (0, s.canDragY)(this) && K ? this.state.y : ee.y
2427
2427
  };
2428
- this.state.isElementSVG ? X = (0, o.createSVGTransform)(se, $) : z = (0, o.createCSSTransform)(se, $);
2429
- const de = (0, i.clsx)(D.props.className || "", E, {
2428
+ this.state.isElementSVG ? X = (0, i.createSVGTransform)(se, $) : z = (0, i.createCSSTransform)(se, $);
2429
+ const de = (0, o.clsx)(S.props.className || "", E, {
2430
2430
  [l]: this.state.dragging,
2431
2431
  [f]: this.state.dragged
2432
2432
  });
2433
- return /* @__PURE__ */ n.createElement(y.default, g({}, T, {
2433
+ return /* @__PURE__ */ n.createElement(b.default, m({}, T, {
2434
2434
  onStart: this.onDragStart,
2435
2435
  onDrag: this.onDrag,
2436
2436
  onStop: this.onDragStop
2437
- }), /* @__PURE__ */ n.cloneElement(n.Children.only(D), {
2437
+ }), /* @__PURE__ */ n.cloneElement(n.Children.only(S), {
2438
2438
  className: de,
2439
2439
  style: {
2440
- ...D.props.style,
2440
+ ...S.props.style,
2441
2441
  ...z
2442
2442
  },
2443
2443
  transform: X
2444
2444
  }));
2445
2445
  }
2446
2446
  }
2447
- e.default = v, p(v, "displayName", "Draggable"), p(v, "propTypes", {
2447
+ e.default = v, y(v, "displayName", "Draggable"), y(v, "propTypes", {
2448
2448
  // Accepts all props <DraggableCore> accepts.
2449
- ...y.default.propTypes,
2449
+ ...b.default.propTypes,
2450
2450
  /**
2451
2451
  * `axis` determines which axis the draggable can move.
2452
2452
  *
@@ -2551,8 +2551,8 @@ function pn() {
2551
2551
  className: d.dontSetMe,
2552
2552
  style: d.dontSetMe,
2553
2553
  transform: d.dontSetMe
2554
- }), p(v, "defaultProps", {
2555
- ...y.default.defaultProps,
2554
+ }), y(v, "defaultProps", {
2555
+ ...b.default.defaultProps,
2556
2556
  axis: "both",
2557
2557
  bounds: !1,
2558
2558
  defaultClassName: "react-draggable",
@@ -2566,10 +2566,10 @@ function pn() {
2566
2566
  });
2567
2567
  })(De)), De;
2568
2568
  }
2569
- var it;
2569
+ var ot;
2570
2570
  function yn() {
2571
- if (it) return fe.exports;
2572
- it = 1;
2571
+ if (ot) return fe.exports;
2572
+ ot = 1;
2573
2573
  const {
2574
2574
  default: e,
2575
2575
  DraggableCore: n
@@ -2595,25 +2595,25 @@ const vn = /* @__PURE__ */ an(bn), xn = ce((e, n) => {
2595
2595
  boxShadow: "rgba(0, 0, 0, 0.5) 7px 7px 10px 0px"
2596
2596
  },
2597
2597
  ...e.style || {}
2598
- }, i = e.testId || "not-set", o = e.className || "panel", s = Ct(null);
2598
+ }, o = e.testId || "not-set", i = e.className || "panel", s = Ct(null);
2599
2599
  return (
2600
2600
  // 3. Pass the internal ref to the Draggable component via 'nodeRef'
2601
2601
  /* @__PURE__ */ a(
2602
2602
  vn,
2603
2603
  {
2604
2604
  nodeRef: s,
2605
- "data-testid": i,
2605
+ "data-testid": o,
2606
2606
  axis: "both",
2607
2607
  handle: ".handle",
2608
- onStart: (m, h) => {
2608
+ onStart: (g, h) => {
2609
2609
  e.onDraggingChange?.(!0);
2610
2610
  },
2611
- onStop: (m, h) => {
2611
+ onStop: (g, h) => {
2612
2612
  setTimeout(() => {
2613
2613
  e.onDraggingChange?.(!1);
2614
2614
  }, 100);
2615
2615
  },
2616
- children: /* @__PURE__ */ a("div", { ref: s, className: o, style: r, children: e.children })
2616
+ children: /* @__PURE__ */ a("div", { ref: s, className: i, style: r, children: e.children })
2617
2617
  }
2618
2618
  )
2619
2619
  );
@@ -2635,32 +2635,32 @@ function nr({ children: e }) {
2635
2635
  }
2636
2636
  const rr = (e) => {
2637
2637
  console.warn("showToast TODO", e);
2638
- }, wn = (e) => e < 0.8 ? 1 : e <= 1 ? 0 : e > 1 ? -1 : 0, or = ce((e, n) => {
2638
+ }, wn = (e) => e < 0.8 ? 1 : e <= 1 ? 0 : e > 1 ? -1 : 0, ir = ce((e, n) => {
2639
2639
  let t = ct(Number(e.zoomScale || 0));
2640
- const r = e.responsiveGrid || !1, i = e.isEditing || !1, o = {
2640
+ const r = e.responsiveGrid || !1, o = e.isEditing || !1, i = {
2641
2641
  "--bwj-dashboard-transform-scale": t,
2642
2642
  "--bwj-dashboard-add-cols": wn(t)
2643
2643
  }, s = Z(
2644
2644
  "dashboard-main-grid w-full",
2645
- i ? "editing" : "",
2645
+ o ? "editing" : "",
2646
2646
  r ? "responsive-grid" : "",
2647
- `border border-dashed ${i ? "border-primary border-opacity-50" : "border-transparent"}`
2647
+ `border border-dashed ${o ? "border-primary border-opacity-50" : "border-transparent"}`
2648
2648
  );
2649
- return /* @__PURE__ */ a("div", { className: s, style: o, children: e.children });
2649
+ return /* @__PURE__ */ a("div", { className: s, style: i, children: e.children });
2650
2650
  }), $e = "size-5", Cn = (e, n) => {
2651
2651
  const t = e.hideTitle && !e.isEditing, r = e.noBorder;
2652
- let i = `dashboard-widget ${e.isEditing ? "editing" : ""} border border-solid`;
2653
- 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`);
2654
- const o = () => {
2652
+ let o = `dashboard-widget ${e.isEditing ? "editing" : ""} border border-solid`;
2653
+ r ? o = `${o} border-transparent border-opacity-0` : (e.borderCssClasses || "").trim().length > 0 ? o = `${o} ${e.borderCssClasses}` : o = `${o} border-card-invert border-opacity-20`, e.noShadow && (o = `${o} no-shadow`), e.noPadding && (o = `${o} no-padding p-0`), (e.backgroundCssClasses || "").trim().length > 0 ? o = `${o} ${e.backgroundCssClasses}` : o = `${o} bg-card content-card`, ["large", "xlarge"].indexOf(e.size || "") > -1 && (o = `${o} ${e.size}-widget`);
2654
+ const i = () => {
2655
2655
  e.onRemoveClick && e.widgetKey && e.onRemoveClick(e.widgetKey, e.parentWidgetKey);
2656
- }, s = (y) => {
2657
- e.onMoveClick && e.widgetKey && e.onMoveClick(y, e.widgetKey, e.parentWidgetKey);
2656
+ }, s = (b) => {
2657
+ e.onMoveClick && e.widgetKey && e.onMoveClick(b, e.widgetKey, e.parentWidgetKey);
2658
2658
  }, d = Z(
2659
2659
  "widget-header",
2660
2660
  t ? "hidden" : "flex items-center justify-between border-b border-solid border-card-invert",
2661
2661
  t ? "border-opacity-0" : "border-opacity-20"
2662
2662
  );
2663
- return /* @__PURE__ */ W("div", { className: i, children: [
2663
+ return /* @__PURE__ */ W("div", { className: o, children: [
2664
2664
  /* @__PURE__ */ W("div", { className: d, children: [
2665
2665
  /* @__PURE__ */ W("div", { className: "widget-title-wrapper w-full flex flex-row gap-2 items-center justify-between", children: [
2666
2666
  /* @__PURE__ */ W("h2", { className: "widget-title", children: [
@@ -2709,7 +2709,7 @@ const rr = (e) => {
2709
2709
  placement: "top",
2710
2710
  title: "Remove Widget"
2711
2711
  },
2712
- onClick: () => o(),
2712
+ onClick: () => i(),
2713
2713
  children: /* @__PURE__ */ a(gt, { className: $e })
2714
2714
  }
2715
2715
  )
@@ -2719,8 +2719,8 @@ const rr = (e) => {
2719
2719
  /* @__PURE__ */ a("div", { className: "widget-inner", children: e.children })
2720
2720
  ] });
2721
2721
  }, at = ce(Cn), Sn = (e, n) => {
2722
- const t = (o) => o.replace(/[^0-9.]/g, ""), r = t(e).split(".").map(Number), i = t(n).split(".").map(Number);
2723
- return !(r[0] !== i[0] || r[1] < i[1]);
2722
+ const t = (i) => i.replace(/[^0-9.]/g, ""), r = t(e).split(".").map(Number), o = t(n).split(".").map(Number);
2723
+ return !(r[0] !== o[0] || r[1] < o[1]);
2724
2724
  };
2725
2725
  function Dn(e) {
2726
2726
  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: [
@@ -2733,29 +2733,42 @@ function Nn({
2733
2733
  maxIndex: n,
2734
2734
  widgetKey: t,
2735
2735
  parentWidgetKey: r,
2736
- targetContainerKey: i,
2737
- childWidgetsConfig: o,
2736
+ targetContainerKey: o,
2737
+ childWidgetsConfig: i,
2738
2738
  widgetCatalog: s,
2739
2739
  isEditing: d,
2740
- onRemoveClick: y,
2741
- onMoveClick: m,
2742
- selectContainer: h
2740
+ // for additional props passed to all widget from the dashboard through the DynamicWidgetLoader:
2741
+ extraProps: b,
2742
+ onRemoveClick: g,
2743
+ onMoveClick: h,
2744
+ selectContainer: u
2743
2745
  }) {
2744
- const u = `${t}`.split("_"), g = u.length > 1, p = g ? u[0] : t, x = s.get(p);
2745
- if (!x)
2746
+ const m = `${t}`.split("_"), y = m.length > 1, D = y ? m[0] : t, p = s.get(D);
2747
+ if (!p)
2746
2748
  return /* @__PURE__ */ a("div", { className: "flex", children: /* @__PURE__ */ W("p", { children: [
2747
2749
  "Widget not found in catalog: ",
2748
- p
2750
+ D
2749
2751
  ] }) });
2750
- let b = null, v = !1;
2751
- if (x.component ? (b = x.component, v = !1) : x.loader && (v = !0, b = st(() => {
2752
- if (!x) return null;
2753
- const l = typeof __HOST_REACT_VERSION__ < "u" ? __HOST_REACT_VERSION__ : "19.2.3", f = x.meta?.externalDependencies || [], M = f.find(($) => $.startsWith("react@"));
2752
+ let v = null, w = !1;
2753
+ const N = !!p.isContainer, C = y ? mt(t) : "", S = N ? (i || []).filter((l) => l.parentWidgetKey === t) : [], c = {
2754
+ index: e,
2755
+ maxIndex: n,
2756
+ widgetKey: t,
2757
+ parentWidgetKey: r,
2758
+ isEditing: d,
2759
+ extraProps: b,
2760
+ title: y ? C : p.title,
2761
+ onRemoveClick: g,
2762
+ onMoveClick: h
2763
+ };
2764
+ if (p.component ? (v = p.component, w = !1) : p.loader && (w = !0, v = st(() => {
2765
+ if (!p) return null;
2766
+ const l = typeof __HOST_REACT_VERSION__ < "u" ? __HOST_REACT_VERSION__ : "19.2.3", f = p.meta?.externalDependencies || [], M = f.find(($) => $.startsWith("react@"));
2754
2767
  if (M) {
2755
2768
  const $ = M.split("@")[1];
2756
2769
  if (!Sn(l, $))
2757
2770
  return ae.lazy(async () => ({
2758
- default: () => /* @__PURE__ */ a(at, { ...D, children: /* @__PURE__ */ W("div", { className: "p-4 border border-dashed border-danger", children: [
2771
+ default: () => /* @__PURE__ */ a(at, { ...c, children: /* @__PURE__ */ W("div", { className: "p-4 border border-dashed border-danger", children: [
2759
2772
  /* @__PURE__ */ W("p", { className: "font-bold", children: [
2760
2773
  'Failed to load "',
2761
2774
  t,
@@ -2789,22 +2802,22 @@ function Nn({
2789
2802
  ] }) })
2790
2803
  }));
2791
2804
  }
2792
- if (x.component)
2793
- return x.component;
2794
- if (x.loader) {
2805
+ if (p.component)
2806
+ return p.component;
2807
+ if (p.loader) {
2795
2808
  const $ = async () => {
2796
2809
  try {
2797
- return await x.loader();
2810
+ return await p.loader();
2798
2811
  } catch (I) {
2799
2812
  return console.error(`CDN Load Failure for ${t}:`, I), {
2800
- default: () => /* @__PURE__ */ a(at, { ...D, children: /* @__PURE__ */ W("div", { className: "p-4 border border-dashed border-danger", children: [
2813
+ default: () => /* @__PURE__ */ a(at, { ...c, children: /* @__PURE__ */ W("div", { className: "p-4 border border-dashed border-danger", children: [
2801
2814
  /* @__PURE__ */ W("p", { className: "font-bold", children: [
2802
2815
  'Failed to load "',
2803
2816
  t,
2804
2817
  '"'
2805
2818
  ] }),
2806
2819
  /* @__PURE__ */ a("p", { className: "text-xs italic", children: "The remote plugin is unavailable or incompatible." }),
2807
- /* @__PURE__ */ a("pre", { className: "text-xs overflow-hidden", children: JSON.stringify(x.meta || {}, null, 2) })
2820
+ /* @__PURE__ */ a("pre", { className: "text-xs overflow-hidden", children: JSON.stringify(p.meta || {}, null, 2) })
2808
2821
  ] }) })
2809
2822
  };
2810
2823
  }
@@ -2812,23 +2825,14 @@ function Nn({
2812
2825
  return ae.lazy($);
2813
2826
  }
2814
2827
  return null;
2815
- }, [x, t])), !b)
2828
+ }, [p, t])), !v)
2816
2829
  return /* @__PURE__ */ a("div", { className: "flex", children: /* @__PURE__ */ W("p", { children: [
2817
2830
  "Widget definition incomplete: ",
2818
- p
2831
+ D
2819
2832
  ] }) });
2820
- const C = !!x.isContainer, N = g ? mt(t) : "", S = C ? (o || []).filter((l) => l.parentWidgetKey === t) : [], D = {
2821
- index: e,
2822
- maxIndex: n,
2823
- widgetKey: t,
2824
- parentWidgetKey: r,
2825
- isEditing: d,
2826
- title: g ? N : x.title,
2827
- onRemoveClick: y,
2828
- onMoveClick: m
2829
- }, c = C ? {
2830
- highlight: i === t,
2831
- selectContainer: h,
2833
+ const E = N ? {
2834
+ highlight: o === t,
2835
+ selectContainer: u,
2832
2836
  // The children prop is the recursive call back to DynamicWidgetLoader
2833
2837
  children: S.map((l, f) => /* @__PURE__ */ a(
2834
2838
  Nn,
@@ -2839,48 +2843,49 @@ function Nn({
2839
2843
  parentWidgetKey: l.parentWidgetKey,
2840
2844
  widgetCatalog: s,
2841
2845
  isEditing: d,
2842
- onRemoveClick: y,
2843
- onMoveClick: m
2846
+ extraProps: b,
2847
+ onRemoveClick: g,
2848
+ onMoveClick: h
2844
2849
  },
2845
2850
  `${l.widgetKey}_${f}`
2846
2851
  ))
2847
- } : {}, E = () => /* @__PURE__ */ a(b, { ...D, ...c });
2848
- return v ? /* @__PURE__ */ a(St, { fallback: /* @__PURE__ */ a(Dn, { title: `Loading ${x.title}` }), children: /* @__PURE__ */ a(E, {}) }) : /* @__PURE__ */ a(E, {});
2852
+ } : {};
2853
+ return w ? /* @__PURE__ */ a(St, { fallback: /* @__PURE__ */ a(Dn, { title: `Loading ${p.title}` }), children: /* @__PURE__ */ a(v, { ...c, ...E }) }) : /* @__PURE__ */ a(v, { ...c, ...E });
2849
2854
  }
2850
2855
  const xe = "size-5";
2851
2856
  function ke(e) {
2852
- const n = e.highlight || !1, t = e.direction || "column", r = e.children.length > 0, i = e.isEditing || !1;
2853
- let d = n ? "border-transparent" : i && !r ? "border-card-invert" : "border-transparent";
2854
- const y = ["large", "xlarge"].includes(e.size || "");
2855
- let m = "";
2856
- ["large", "xlarge"].indexOf(e.size || "") > -1 && (m = `${e.size}-widget`);
2857
+ const n = e.highlight || !1, t = e.direction || "column", r = e.children.length > 0, o = e.isEditing || !1;
2858
+ let d = n ? "border-transparent" : o && !r ? "border-card-invert" : "border-transparent";
2859
+ const b = ["large", "xlarge"].includes(e.size || "");
2860
+ let g = "";
2861
+ ["large", "xlarge"].indexOf(e.size || "") > -1 && (g = `${e.size}-widget`);
2857
2862
  let h = "";
2858
2863
  t === "row" && !r ? h = "min-h-48" : t === "column" && !r && (h = "min-h-96");
2859
2864
  let u = Z(
2860
2865
  "dashboard-widget-container relative ",
2861
2866
  r ? "" : "has-no-children",
2862
- i ? "editing" : "",
2867
+ o ? "editing" : "",
2863
2868
  h,
2864
- m,
2865
- y ? "widget-container-grid" : "widget-container-flex",
2869
+ g,
2870
+ b ? "widget-container-grid" : "widget-container-flex",
2866
2871
  `direction-${t}`,
2867
2872
  `border ${d}`,
2868
2873
  `${n ? "highlight-container" : ""} ${d}`
2869
- ), g = `widget-container-header direction-${t} flex items-center border-1 ${d}`;
2870
- const p = () => {
2874
+ ), m = `widget-container-header direction-${t} flex items-center border-1 ${d}`;
2875
+ const y = () => {
2871
2876
  e.onRemoveClick && e.widgetKey && e.onRemoveClick(e.widgetKey);
2872
- }, x = (v) => {
2877
+ }, D = (v) => {
2873
2878
  e.onMoveClick && e.widgetKey && e.onMoveClick(v, e.widgetKey, e.parentWidgetKey);
2874
- }, b = () => {
2879
+ }, p = () => {
2875
2880
  e.selectContainer && e.widgetKey && e.selectContainer(e.widgetKey);
2876
2881
  };
2877
2882
  return /* @__PURE__ */ W("div", { "data-testid": `container_${e.widgetKey}`, className: u, children: [
2878
- /* @__PURE__ */ W("div", { className: g, children: [
2883
+ /* @__PURE__ */ W("div", { className: m, children: [
2879
2884
  /* @__PURE__ */ a(
2880
2885
  "div",
2881
2886
  {
2882
2887
  className: "widget-title-wrapper w-full flex whitespace-nowrap",
2883
- onClick: b,
2888
+ onClick: p,
2884
2889
  children: /* @__PURE__ */ a("span", { className: "text-sm font-semibold capitalize", children: e.title })
2885
2890
  }
2886
2891
  ),
@@ -2895,7 +2900,7 @@ function ke(e) {
2895
2900
  placement: "top",
2896
2901
  title: "Target this Container"
2897
2902
  },
2898
- onClick: b,
2903
+ onClick: p,
2899
2904
  children: /* @__PURE__ */ a(
2900
2905
  tn,
2901
2906
  {
@@ -2914,7 +2919,7 @@ function ke(e) {
2914
2919
  placement: "top",
2915
2920
  title: `${e.index < 1 ? "Already at min position" : "Move Container to the left/up"}`
2916
2921
  },
2917
- onClick: () => x(-1),
2922
+ onClick: () => D(-1),
2918
2923
  children: /* @__PURE__ */ a(ft, { className: xe })
2919
2924
  }
2920
2925
  ),
@@ -2928,7 +2933,7 @@ function ke(e) {
2928
2933
  placement: "top",
2929
2934
  title: `${e.index >= e.maxIndex ? "Already at max position" : "Move Container to the right/down"}`
2930
2935
  },
2931
- onClick: () => x(1),
2936
+ onClick: () => D(1),
2932
2937
  children: /* @__PURE__ */ a(ht, { className: xe })
2933
2938
  }
2934
2939
  ),
@@ -2941,7 +2946,7 @@ function ke(e) {
2941
2946
  placement: "top",
2942
2947
  title: "Remove Container"
2943
2948
  },
2944
- onClick: () => p(),
2949
+ onClick: () => y(),
2945
2950
  children: /* @__PURE__ */ a(gt, { className: xe })
2946
2951
  }
2947
2952
  )
@@ -2950,7 +2955,7 @@ function ke(e) {
2950
2955
  /* @__PURE__ */ a("div", { "data-testid": `childrenwrapper_${e.widgetKey}`, className: "widget-container-inner", children: e.children })
2951
2956
  ] });
2952
2957
  }
2953
- function ir(e) {
2958
+ function or(e) {
2954
2959
  const { direction: n, ...t } = e;
2955
2960
  return /* @__PURE__ */ a(ke, { direction: "column", ...t });
2956
2961
  }
@@ -2968,28 +2973,28 @@ function We({
2968
2973
  alreadyAdded: n,
2969
2974
  addWidget: t
2970
2975
  }) {
2971
- const [r, i] = le(!1), o = e.icon || nn, s = e.displayName || "Unknown", d = e.description || "---", m = (e.noDuplicatedWidgets || !1) && n, h = Z(`
2976
+ const [r, o] = le(!1), i = e.icon || nn, s = e.displayName || "Unknown", d = e.description || "---", g = (e.noDuplicatedWidgets || !1) && n, h = Z(`
2972
2977
  flex flex-row gap-2 p-2 rounded-md border text-sm bg-card content-card backdrop-opacity-100
2973
- ${m ? "border-disabled fill-disabled text-disabled" : "cursor-pointer border-primary fill-danger hover:fill-primary content-primary hover:brightness-110"}
2978
+ ${g ? "border-disabled fill-disabled text-disabled" : "cursor-pointer border-primary fill-danger hover:fill-primary content-primary hover:brightness-110"}
2974
2979
  `);
2975
2980
  return /* @__PURE__ */ W("div", { className: h, style: { width: "calc(100% - 1rem)" }, onClick: () => {
2976
- m || t();
2981
+ g || t();
2977
2982
  }, children: [
2978
- /* @__PURE__ */ a(o, { className: "" }),
2983
+ /* @__PURE__ */ a(i, { className: "" }),
2979
2984
  /* @__PURE__ */ W("div", { className: "w-full", children: [
2980
2985
  /* @__PURE__ */ W("div", { className: "flex flex-row items-center gap-2 justify-between", children: [
2981
2986
  /* @__PURE__ */ a("span", { className: "font-bold", children: s }),
2982
- /* @__PURE__ */ a("div", { className: "text-xs", children: m ? "(Added)" : "" })
2987
+ /* @__PURE__ */ a("div", { className: "text-xs", children: g ? "(Added)" : "" })
2983
2988
  ] }),
2984
2989
  /* @__PURE__ */ W("div", { className: "flex flex-col text-xs", children: [
2985
2990
  /* @__PURE__ */ a("div", { children: d }),
2986
- /* @__PURE__ */ a("div", { className: "mt-3 cursor-pointer", onClick: (p) => {
2987
- p.stopPropagation(), p.preventDefault(), i(!r);
2991
+ /* @__PURE__ */ a("div", { className: "mt-3 cursor-pointer", onClick: (y) => {
2992
+ y.stopPropagation(), y.preventDefault(), o(!r);
2988
2993
  }, children: "Externals:" }),
2989
- r && /* @__PURE__ */ a("dl", { className: "ml-2 flex flex-col text-xs", children: e.externalDependencies.map((p, x) => /* @__PURE__ */ W("dd", { children: [
2994
+ r && /* @__PURE__ */ a("dl", { className: "ml-2 flex flex-col text-xs", children: e.externalDependencies.map((y, D) => /* @__PURE__ */ W("dd", { children: [
2990
2995
  "- ",
2991
- p
2992
- ] }, x)) })
2996
+ y
2997
+ ] }, D)) })
2993
2998
  ] })
2994
2999
  ] })
2995
3000
  ] });
@@ -2998,17 +3003,17 @@ function Tn({
2998
3003
  item: e,
2999
3004
  onSettingItemChanged: n
3000
3005
  }) {
3001
- const t = e.displayName || "Unknown", r = e.description || "---", i = Z(`
3006
+ const t = e.displayName || "Unknown", r = e.description || "---", o = Z(`
3002
3007
  flex flex-row gap-2 p-2 rounded-md border text-sm bg-card content-card backdrop-opacity-100
3003
- `), o = (d) => {
3004
- const y = d.key;
3005
- if (["ArrowUp", "ArrowDown"].includes(y)) {
3008
+ `), i = (d) => {
3009
+ const b = d.key;
3010
+ if (["ArrowUp", "ArrowDown"].includes(b)) {
3006
3011
  d.preventDefault();
3007
- const m = _t.incrementOrDecrementValue(
3012
+ const g = _t.incrementOrDecrementValue(
3008
3013
  e,
3009
- y === "ArrowUp" ? 1 : -1
3014
+ b === "ArrowUp" ? 1 : -1
3010
3015
  );
3011
- n(m);
3016
+ n(g);
3012
3017
  }
3013
3018
  }, s = (d) => {
3014
3019
  n({
@@ -3016,7 +3021,7 @@ function Tn({
3016
3021
  value: d.target.value || ""
3017
3022
  });
3018
3023
  };
3019
- return /* @__PURE__ */ a("div", { className: i, style: { width: "calc(100% - 1rem)" }, children: /* @__PURE__ */ W("div", { className: "w-full", children: [
3024
+ return /* @__PURE__ */ a("div", { className: o, style: { width: "calc(100% - 1rem)" }, children: /* @__PURE__ */ W("div", { className: "w-full", children: [
3020
3025
  /* @__PURE__ */ a("div", { className: "flex flex-row items-center gap-2 justify-between", children: /* @__PURE__ */ a("span", { className: "font-bold", children: t }) }),
3021
3026
  /* @__PURE__ */ a("div", { className: "flex flex-col gap-2 text-xs", children: /* @__PURE__ */ a("div", { children: r }) }),
3022
3027
  /* @__PURE__ */ W("div", { children: [
@@ -3029,7 +3034,7 @@ function Tn({
3029
3034
  className: "w-full",
3030
3035
  value: e.value,
3031
3036
  onChange: s,
3032
- onKeyDown: o
3037
+ onKeyDown: i
3033
3038
  }
3034
3039
  )
3035
3040
  ] })
@@ -3044,38 +3049,38 @@ function lr({
3044
3049
  widgetsCatalog: n,
3045
3050
  currentDashboardConfig: t,
3046
3051
  undoStatus: r,
3047
- addWidget: i,
3048
- addContainer: o,
3052
+ addWidget: o,
3053
+ addContainer: i,
3049
3054
  onSettingItemsUpdated: s,
3050
3055
  onResetToDefaultDashboardClick: d,
3051
- onUndoOrRedo: y,
3052
- onDoneClick: m
3056
+ onUndoOrRedo: b,
3057
+ onDoneClick: g
3053
3058
  }) {
3054
- const [h, u] = le("Editing"), [g, p] = le(0), [x, b] = le(""), C = Array.from(n.keys()).map((T) => ({
3059
+ const [h, u] = le("Editing"), [m, y] = le(0), [D, p] = le(""), w = Array.from(n.keys()).map((T) => ({
3055
3060
  widgetKey: T,
3056
3061
  metaData: $t(T, n)
3057
3062
  })), N = (T) => {
3058
- b(T.target.value);
3059
- }, S = (T) => {
3060
- const z = x.trim().toLowerCase();
3063
+ p(T.target.value);
3064
+ }, C = (T) => {
3065
+ const z = D.trim().toLowerCase();
3061
3066
  return z.length < 1 ? !0 : T.displayName.trim().toLowerCase().includes(z) || T.description.toLowerCase().includes(z);
3062
- }, D = (T) => {
3063
- const z = x.trim().toLowerCase();
3067
+ }, S = (T) => {
3068
+ const z = D.trim().toLowerCase();
3064
3069
  return z.length < 1 ? !0 : T.displayName.trim().toLowerCase().includes(z) || T.description.toLowerCase().includes(z);
3065
3070
  }, c = (T) => Z(
3066
3071
  "px-4 py-2 font-medium cursor-pointer border-b-2 border-transparent hover:border-primary focus:outline-none",
3067
- T === g ? "text-primary border-primary" : ""
3072
+ T === m ? "text-primary border-primary" : ""
3068
3073
  ), E = !!e;
3069
3074
  Dt(() => {
3070
3075
  if (e) {
3071
- p(0);
3076
+ y(0);
3072
3077
  const T = mt(e);
3073
3078
  u(`Editing ${T}`);
3074
3079
  } else
3075
3080
  u("Editing Dashboard");
3076
3081
  }, [e]);
3077
3082
  const l = (T) => {
3078
- E ? i(T, e) : i(T);
3083
+ E ? o(T, e) : o(T);
3079
3084
  }, f = (T) => {
3080
3085
  const z = (t.cssSettings || []).map((X) => X.key === T.key ? T : X);
3081
3086
  s(z);
@@ -3119,7 +3124,7 @@ function lr({
3119
3124
  title: "Undo"
3120
3125
  },
3121
3126
  disabled: r.isUndoDisabled,
3122
- onClick: () => y("Undo"),
3127
+ onClick: () => b("Undo"),
3123
3128
  children: /* @__PURE__ */ a(Zt, { className: "size-5" })
3124
3129
  }
3125
3130
  ),
@@ -3133,7 +3138,7 @@ function lr({
3133
3138
  title: "Redo"
3134
3139
  },
3135
3140
  disabled: r.isRedoDisabled,
3136
- onClick: () => y("Redo"),
3141
+ onClick: () => b("Redo"),
3137
3142
  children: /* @__PURE__ */ a(Jt, { className: "size-5" })
3138
3143
  }
3139
3144
  ),
@@ -3153,10 +3158,10 @@ function lr({
3153
3158
  ] })
3154
3159
  ] }),
3155
3160
  /* @__PURE__ */ W("div", { className: "flex border-b border-gray-200", children: [
3156
- /* @__PURE__ */ a("button", { onClick: () => p(0), className: c(0), children: "Widgets" }),
3157
- /* @__PURE__ */ a("button", { onClick: () => p(1), className: c(1), children: "Charts" }),
3158
- !E && /* @__PURE__ */ a("button", { onClick: () => p(2), className: c(2), children: "Containers" }),
3159
- !E && /* @__PURE__ */ a("button", { onClick: () => p(3), className: c(3), children: /* @__PURE__ */ a(Xt, {}) })
3161
+ /* @__PURE__ */ a("button", { onClick: () => y(0), className: c(0), children: "Widgets" }),
3162
+ /* @__PURE__ */ a("button", { onClick: () => y(1), className: c(1), children: "Charts" }),
3163
+ !E && /* @__PURE__ */ a("button", { onClick: () => y(2), className: c(2), children: "Containers" }),
3164
+ !E && /* @__PURE__ */ a("button", { onClick: () => y(3), className: c(3), children: /* @__PURE__ */ a(Xt, {}) })
3160
3165
  ] }),
3161
3166
  /* @__PURE__ */ a("div", { className: "flex items-center justify-between gap-1 w-full", children: /* @__PURE__ */ a(
3162
3167
  pt,
@@ -3164,7 +3169,7 @@ function lr({
3164
3169
  label: "Filter...",
3165
3170
  size: "small",
3166
3171
  className: "w-full",
3167
- value: x,
3172
+ value: D,
3168
3173
  onChange: N
3169
3174
  }
3170
3175
  ) }),
@@ -3176,8 +3181,8 @@ function lr({
3176
3181
  maxHeight: "360px"
3177
3182
  },
3178
3183
  children: [
3179
- g === 0 && C.filter(
3180
- (T) => T.metaData.categories.includes("Widget") && S(T.metaData)
3184
+ m === 0 && w.filter(
3185
+ (T) => T.metaData.categories.includes("Widget") && C(T.metaData)
3181
3186
  ).map((T) => /* @__PURE__ */ a(
3182
3187
  We,
3183
3188
  {
@@ -3188,8 +3193,8 @@ function lr({
3188
3193
  },
3189
3194
  T.widgetKey
3190
3195
  )),
3191
- g === 1 && C.filter(
3192
- (T) => T.metaData.categories.includes("Chart") && S(T.metaData)
3196
+ m === 1 && w.filter(
3197
+ (T) => T.metaData.categories.includes("Chart") && C(T.metaData)
3193
3198
  ).map((T) => /* @__PURE__ */ a(
3194
3199
  We,
3195
3200
  {
@@ -3200,17 +3205,17 @@ function lr({
3200
3205
  },
3201
3206
  T.widgetKey
3202
3207
  )),
3203
- !E && g === 2 && C.filter((T) => T.metaData.categories.includes("Container")).map((T) => /* @__PURE__ */ a(
3208
+ !E && m === 2 && w.filter((T) => T.metaData.categories.includes("Container")).map((T) => /* @__PURE__ */ a(
3204
3209
  We,
3205
3210
  {
3206
3211
  widgetKey: T.widgetKey,
3207
3212
  metaData: T.metaData,
3208
3213
  alreadyAdded: Ie(T.widgetKey, t),
3209
- addWidget: () => o(T.widgetKey)
3214
+ addWidget: () => i(T.widgetKey)
3210
3215
  },
3211
3216
  T.widgetKey
3212
3217
  )),
3213
- !E && g === 3 && (t.cssSettings || []).filter(D).map((T) => /* @__PURE__ */ a(
3218
+ !E && m === 3 && (t.cssSettings || []).filter(S).map((T) => /* @__PURE__ */ a(
3214
3219
  Tn,
3215
3220
  {
3216
3221
  item: T,
@@ -3229,7 +3234,7 @@ function lr({
3229
3234
  placement: "bottom",
3230
3235
  title: "Click to exit edit mode"
3231
3236
  },
3232
- onClick: m,
3237
+ onClick: g,
3233
3238
  children: "Done"
3234
3239
  }
3235
3240
  ) })
@@ -3242,7 +3247,7 @@ export {
3242
3247
  J as Button,
3243
3248
  nn as CircleQuestionMark,
3244
3249
  tn as CrosshairIcon,
3245
- or as DashboardGrid,
3250
+ ir as DashboardGrid,
3246
3251
  Le as DashboardMaxZoomScale,
3247
3252
  Ae as DashboardMinZoomScale,
3248
3253
  at as DashboardWidgetBase,
@@ -3271,7 +3276,7 @@ export {
3271
3276
  pt as TextField,
3272
3277
  Gt as TimerResetIcon,
3273
3278
  Zt as UndoIcon,
3274
- ir as WidgetContainerColumn,
3279
+ or as WidgetContainerColumn,
3275
3280
  ar as WidgetContainerLarge,
3276
3281
  sr as WidgetContainerRow,
3277
3282
  lr as WidgetsCatalogFlyout,
@@ -3292,10 +3297,10 @@ export {
3292
3297
  ge as getDefaultWidgetMetaFromKey,
3293
3298
  Wn as getDefaultWidgetMetaFromMap,
3294
3299
  Z as getDistinctCssClasses,
3295
- Rt as getMetaInfoFromFile,
3300
+ Ot as getMetaInfoFromFile,
3296
3301
  Pn as getNewZoomScaleWithinRange,
3297
3302
  $t as getWidgetMetaFromCatalog,
3298
- Rn as localWidgetDiscovery,
3303
+ On as localWidgetDiscovery,
3299
3304
  mt as parseContainerTitle,
3300
3305
  It as parseKeyAndTitleFromFilePath,
3301
3306
  In as remoteWidgetDiscovery,
@@ -3304,6 +3309,6 @@ export {
3304
3309
  Kn as resolvedColors,
3305
3310
  rr as showToast,
3306
3311
  kn as useDashboardStorageService,
3307
- On as useDashboardStore,
3312
+ Rn as useDashboardStore,
3308
3313
  jn as useDashboardUndoService
3309
3314
  };