font-controls 1.5.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import Le, { useState as ue, useRef as xe, useEffect as me } from "react";
1
+ import Le, { useState as ue, useRef as Se, useEffect as me } from "react";
2
2
  import lt from "react-dom";
3
- function _t(e) {
3
+ function Tt(e) {
4
4
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
5
5
  }
6
6
  var Ie = { exports: {} }, pe = {};
@@ -14,13 +14,13 @@ var Ie = { exports: {} }, pe = {};
14
14
  * LICENSE file in the root directory of this source tree.
15
15
  */
16
16
  var ze;
17
- function Ct() {
17
+ function Et() {
18
18
  if (ze) return pe;
19
19
  ze = 1;
20
20
  var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
21
21
  function r(o, a, i) {
22
- var p = null;
23
- if (i !== void 0 && (p = "" + i), a.key !== void 0 && (p = "" + a.key), "key" in a) {
22
+ var u = null;
23
+ if (i !== void 0 && (u = "" + i), a.key !== void 0 && (u = "" + a.key), "key" in a) {
24
24
  i = {};
25
25
  for (var l in a)
26
26
  l !== "key" && (i[l] = a[l]);
@@ -28,7 +28,7 @@ function Ct() {
28
28
  return a = i.ref, {
29
29
  $$typeof: e,
30
30
  type: o,
31
- key: p,
31
+ key: u,
32
32
  ref: a !== void 0 ? a : null,
33
33
  props: i
34
34
  };
@@ -46,7 +46,7 @@ var he = {};
46
46
  * LICENSE file in the root directory of this source tree.
47
47
  */
48
48
  var Ve;
49
- function Pt() {
49
+ function wt() {
50
50
  return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && function() {
51
51
  function e(n) {
52
52
  if (n == null) return null;
@@ -54,13 +54,13 @@ function Pt() {
54
54
  return n.$$typeof === ne ? null : n.displayName || n.name || null;
55
55
  if (typeof n == "string") return n;
56
56
  switch (n) {
57
- case O:
57
+ case $:
58
58
  return "Fragment";
59
- case d:
59
+ case x:
60
60
  return "Profiler";
61
61
  case g:
62
62
  return "StrictMode";
63
- case D:
63
+ case O:
64
64
  return "Suspense";
65
65
  case W:
66
66
  return "SuspenseList";
@@ -71,21 +71,21 @@ function Pt() {
71
71
  switch (typeof n.tag == "number" && console.error(
72
72
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
73
73
  ), n.$$typeof) {
74
- case k:
74
+ case M:
75
75
  return "Portal";
76
- case x:
76
+ case E:
77
77
  return n.displayName || "Context";
78
78
  case w:
79
79
  return (n._context.displayName || "Context") + ".Consumer";
80
80
  case s:
81
- var h = n.render;
82
- return n = n.displayName, n || (n = h.displayName || h.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
81
+ var p = n.render;
82
+ return n = n.displayName, n || (n = p.displayName || p.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
83
83
  case U:
84
- return h = n.displayName || null, h !== null ? h : e(n.type) || "Memo";
84
+ return p = n.displayName || null, p !== null ? p : e(n.type) || "Memo";
85
85
  case Y:
86
- h = n._payload, n = n._init;
86
+ p = n._payload, n = n._init;
87
87
  try {
88
- return e(n(h));
88
+ return e(n(p));
89
89
  } catch {
90
90
  }
91
91
  }
@@ -97,27 +97,27 @@ function Pt() {
97
97
  function r(n) {
98
98
  try {
99
99
  t(n);
100
- var h = !1;
100
+ var p = !1;
101
101
  } catch {
102
- h = !0;
102
+ p = !0;
103
103
  }
104
- if (h) {
105
- h = console;
106
- var b = h.error, v = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
107
- return b.call(
108
- h,
104
+ if (p) {
105
+ p = console;
106
+ var v = p.error, y = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
107
+ return v.call(
108
+ p,
109
109
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
110
- v
110
+ y
111
111
  ), t(n);
112
112
  }
113
113
  }
114
114
  function o(n) {
115
- if (n === O) return "<>";
115
+ if (n === $) return "<>";
116
116
  if (typeof n == "object" && n !== null && n.$$typeof === Y)
117
117
  return "<...>";
118
118
  try {
119
- var h = e(n);
120
- return h ? "<" + h + ">" : "<...>";
119
+ var p = e(n);
120
+ return p ? "<" + p + ">" : "<...>";
121
121
  } catch {
122
122
  return "<...>";
123
123
  }
@@ -129,42 +129,42 @@ function Pt() {
129
129
  function i() {
130
130
  return Error("react-stack-top-frame");
131
131
  }
132
- function p(n) {
132
+ function u(n) {
133
133
  if (ae.call(n, "key")) {
134
- var h = Object.getOwnPropertyDescriptor(n, "key").get;
135
- if (h && h.isReactWarning) return !1;
134
+ var p = Object.getOwnPropertyDescriptor(n, "key").get;
135
+ if (p && p.isReactWarning) return !1;
136
136
  }
137
137
  return n.key !== void 0;
138
138
  }
139
- function l(n, h) {
140
- function b() {
139
+ function l(n, p) {
140
+ function v() {
141
141
  X || (X = !0, console.error(
142
142
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
143
- h
143
+ p
144
144
  ));
145
145
  }
146
- b.isReactWarning = !0, Object.defineProperty(n, "key", {
147
- get: b,
146
+ v.isReactWarning = !0, Object.defineProperty(n, "key", {
147
+ get: v,
148
148
  configurable: !0
149
149
  });
150
150
  }
151
- function f() {
151
+ function d() {
152
152
  var n = e(this.type);
153
153
  return V[n] || (V[n] = !0, console.error(
154
154
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
155
155
  )), n = this.props.ref, n !== void 0 ? n : null;
156
156
  }
157
- function y(n, h, b, v, R, C) {
158
- var S = b.ref;
157
+ function m(n, p, v, y, j, _) {
158
+ var S = v.ref;
159
159
  return n = {
160
160
  $$typeof: I,
161
161
  type: n,
162
- key: h,
163
- props: b,
164
- _owner: v
162
+ key: p,
163
+ props: v,
164
+ _owner: y
165
165
  }, (S !== void 0 ? S : null) !== null ? Object.defineProperty(n, "ref", {
166
166
  enumerable: !1,
167
- get: f
167
+ get: d
168
168
  }) : Object.defineProperty(n, "ref", { enumerable: !1, value: null }), n._store = {}, Object.defineProperty(n._store, "validated", {
169
169
  configurable: !1,
170
170
  enumerable: !1,
@@ -179,105 +179,105 @@ function Pt() {
179
179
  configurable: !1,
180
180
  enumerable: !1,
181
181
  writable: !0,
182
- value: R
182
+ value: j
183
183
  }), Object.defineProperty(n, "_debugTask", {
184
184
  configurable: !1,
185
185
  enumerable: !1,
186
186
  writable: !0,
187
- value: C
187
+ value: _
188
188
  }), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
189
189
  }
190
- function T(n, h, b, v, R, C) {
191
- var S = h.children;
190
+ function b(n, p, v, y, j, _) {
191
+ var S = p.children;
192
192
  if (S !== void 0)
193
- if (v)
193
+ if (y)
194
194
  if (K(S)) {
195
- for (v = 0; v < S.length; v++)
196
- _(S[v]);
195
+ for (y = 0; y < S.length; y++)
196
+ C(S[y]);
197
197
  Object.freeze && Object.freeze(S);
198
198
  } else
199
199
  console.error(
200
200
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
201
201
  );
202
- else _(S);
203
- if (ae.call(h, "key")) {
202
+ else C(S);
203
+ if (ae.call(p, "key")) {
204
204
  S = e(n);
205
- var P = Object.keys(h).filter(function(N) {
206
- return N !== "key";
205
+ var P = Object.keys(p).filter(function(D) {
206
+ return D !== "key";
207
207
  });
208
- v = 0 < P.length ? "{key: someKey, " + P.join(": ..., ") + ": ...}" : "{key: someKey}", c[S + v] || (P = 0 < P.length ? "{" + P.join(": ..., ") + ": ...}" : "{}", console.error(
208
+ y = 0 < P.length ? "{key: someKey, " + P.join(": ..., ") + ": ...}" : "{key: someKey}", c[S + y] || (P = 0 < P.length ? "{" + P.join(": ..., ") + ": ...}" : "{}", console.error(
209
209
  `A props object containing a "key" prop is being spread into JSX:
210
210
  let props = %s;
211
211
  <%s {...props} />
212
212
  React keys must be passed directly to JSX without using spread:
213
213
  let props = %s;
214
214
  <%s key={someKey} {...props} />`,
215
- v,
215
+ y,
216
216
  S,
217
217
  P,
218
218
  S
219
- ), c[S + v] = !0);
219
+ ), c[S + y] = !0);
220
220
  }
221
- if (S = null, b !== void 0 && (r(b), S = "" + b), p(h) && (r(h.key), S = "" + h.key), "key" in h) {
222
- b = {};
223
- for (var A in h)
224
- A !== "key" && (b[A] = h[A]);
225
- } else b = h;
221
+ if (S = null, v !== void 0 && (r(v), S = "" + v), u(p) && (r(p.key), S = "" + p.key), "key" in p) {
222
+ v = {};
223
+ for (var N in p)
224
+ N !== "key" && (v[N] = p[N]);
225
+ } else v = p;
226
226
  return S && l(
227
- b,
227
+ v,
228
228
  typeof n == "function" ? n.displayName || n.name || "Unknown" : n
229
- ), y(
229
+ ), m(
230
230
  n,
231
231
  S,
232
- b,
232
+ v,
233
233
  a(),
234
- R,
235
- C
234
+ j,
235
+ _
236
236
  );
237
237
  }
238
- function _(n) {
239
- E(n) ? n._store && (n._store.validated = 1) : typeof n == "object" && n !== null && n.$$typeof === Y && (n._payload.status === "fulfilled" ? E(n._payload.value) && n._payload.value._store && (n._payload.value._store.validated = 1) : n._store && (n._store.validated = 1));
238
+ function C(n) {
239
+ T(n) ? n._store && (n._store.validated = 1) : typeof n == "object" && n !== null && n.$$typeof === Y && (n._payload.status === "fulfilled" ? T(n._payload.value) && n._payload.value._store && (n._payload.value._store.validated = 1) : n._store && (n._store.validated = 1));
240
240
  }
241
- function E(n) {
241
+ function T(n) {
242
242
  return typeof n == "object" && n !== null && n.$$typeof === I;
243
243
  }
244
- var j = Le, I = Symbol.for("react.transitional.element"), k = Symbol.for("react.portal"), O = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), x = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), D = Symbol.for("react.suspense"), W = Symbol.for("react.suspense_list"), U = Symbol.for("react.memo"), Y = Symbol.for("react.lazy"), L = Symbol.for("react.activity"), ne = Symbol.for("react.client.reference"), oe = j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ae = Object.prototype.hasOwnProperty, K = Array.isArray, se = console.createTask ? console.createTask : function() {
244
+ var R = Le, I = Symbol.for("react.transitional.element"), M = Symbol.for("react.portal"), $ = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), E = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), W = Symbol.for("react.suspense_list"), U = Symbol.for("react.memo"), Y = Symbol.for("react.lazy"), L = Symbol.for("react.activity"), ne = Symbol.for("react.client.reference"), oe = R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ae = Object.prototype.hasOwnProperty, K = Array.isArray, se = console.createTask ? console.createTask : function() {
245
245
  return null;
246
246
  };
247
- j = {
247
+ R = {
248
248
  react_stack_bottom_frame: function(n) {
249
249
  return n();
250
250
  }
251
251
  };
252
- var X, V = {}, Q = j.react_stack_bottom_frame.bind(
253
- j,
252
+ var X, V = {}, Q = R.react_stack_bottom_frame.bind(
253
+ R,
254
254
  i
255
255
  )(), ie = se(o(i)), c = {};
256
- he.Fragment = O, he.jsx = function(n, h, b) {
257
- var v = 1e4 > oe.recentlyCreatedOwnerStacks++;
258
- return T(
256
+ he.Fragment = $, he.jsx = function(n, p, v) {
257
+ var y = 1e4 > oe.recentlyCreatedOwnerStacks++;
258
+ return b(
259
259
  n,
260
- h,
261
- b,
260
+ p,
261
+ v,
262
262
  !1,
263
- v ? Error("react-stack-top-frame") : Q,
264
- v ? se(o(n)) : ie
263
+ y ? Error("react-stack-top-frame") : Q,
264
+ y ? se(o(n)) : ie
265
265
  );
266
- }, he.jsxs = function(n, h, b) {
267
- var v = 1e4 > oe.recentlyCreatedOwnerStacks++;
268
- return T(
266
+ }, he.jsxs = function(n, p, v) {
267
+ var y = 1e4 > oe.recentlyCreatedOwnerStacks++;
268
+ return b(
269
269
  n,
270
- h,
271
- b,
270
+ p,
271
+ v,
272
272
  !0,
273
- v ? Error("react-stack-top-frame") : Q,
274
- v ? se(o(n)) : ie
273
+ y ? Error("react-stack-top-frame") : Q,
274
+ y ? se(o(n)) : ie
275
275
  );
276
276
  };
277
277
  }()), he;
278
278
  }
279
- process.env.NODE_ENV === "production" ? Ie.exports = Ct() : Ie.exports = Pt();
280
- var u = Ie.exports, Te = { exports: {} }, ct = {}, Fe = { exports: {} }, ve = { exports: {} }, M = {};
279
+ process.env.NODE_ENV === "production" ? Ie.exports = Et() : Ie.exports = wt();
280
+ var f = Ie.exports, xe = { exports: {} }, ct = {}, Fe = { exports: {} }, ve = { exports: {} }, A = {};
281
281
  /** @license React v16.13.1
282
282
  * react-is.production.min.js
283
283
  *
@@ -287,72 +287,72 @@ var u = Ie.exports, Te = { exports: {} }, ct = {}, Fe = { exports: {} }, ve = {
287
287
  * LICENSE file in the root directory of this source tree.
288
288
  */
289
289
  var Ge;
290
- function jt() {
291
- if (Ge) return M;
290
+ function _t() {
291
+ if (Ge) return A;
292
292
  Ge = 1;
293
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, p = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, y = e ? Symbol.for("react.concurrent_mode") : 60111, T = e ? Symbol.for("react.forward_ref") : 60112, _ = e ? Symbol.for("react.suspense") : 60113, E = e ? Symbol.for("react.suspense_list") : 60120, j = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, k = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, d = e ? Symbol.for("react.scope") : 60119;
293
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, u = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, m = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, C = e ? Symbol.for("react.suspense") : 60113, T = e ? Symbol.for("react.suspense_list") : 60120, R = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, M = e ? Symbol.for("react.block") : 60121, $ = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
294
294
  function w(s) {
295
295
  if (typeof s == "object" && s !== null) {
296
- var D = s.$$typeof;
297
- switch (D) {
296
+ var O = s.$$typeof;
297
+ switch (O) {
298
298
  case t:
299
299
  switch (s = s.type, s) {
300
- case f:
301
- case y:
300
+ case d:
301
+ case m:
302
302
  case o:
303
303
  case i:
304
304
  case a:
305
- case _:
305
+ case C:
306
306
  return s;
307
307
  default:
308
308
  switch (s = s && s.$$typeof, s) {
309
309
  case l:
310
- case T:
310
+ case b:
311
311
  case I:
312
- case j:
313
- case p:
312
+ case R:
313
+ case u:
314
314
  return s;
315
315
  default:
316
- return D;
316
+ return O;
317
317
  }
318
318
  }
319
319
  case r:
320
- return D;
320
+ return O;
321
321
  }
322
322
  }
323
323
  }
324
- function x(s) {
325
- return w(s) === y;
324
+ function E(s) {
325
+ return w(s) === m;
326
326
  }
327
- return M.AsyncMode = f, M.ConcurrentMode = y, M.ContextConsumer = l, M.ContextProvider = p, M.Element = t, M.ForwardRef = T, M.Fragment = o, M.Lazy = I, M.Memo = j, M.Portal = r, M.Profiler = i, M.StrictMode = a, M.Suspense = _, M.isAsyncMode = function(s) {
328
- return x(s) || w(s) === f;
329
- }, M.isConcurrentMode = x, M.isContextConsumer = function(s) {
327
+ return A.AsyncMode = d, A.ConcurrentMode = m, A.ContextConsumer = l, A.ContextProvider = u, A.Element = t, A.ForwardRef = b, A.Fragment = o, A.Lazy = I, A.Memo = R, A.Portal = r, A.Profiler = i, A.StrictMode = a, A.Suspense = C, A.isAsyncMode = function(s) {
328
+ return E(s) || w(s) === d;
329
+ }, A.isConcurrentMode = E, A.isContextConsumer = function(s) {
330
330
  return w(s) === l;
331
- }, M.isContextProvider = function(s) {
332
- return w(s) === p;
333
- }, M.isElement = function(s) {
331
+ }, A.isContextProvider = function(s) {
332
+ return w(s) === u;
333
+ }, A.isElement = function(s) {
334
334
  return typeof s == "object" && s !== null && s.$$typeof === t;
335
- }, M.isForwardRef = function(s) {
336
- return w(s) === T;
337
- }, M.isFragment = function(s) {
335
+ }, A.isForwardRef = function(s) {
336
+ return w(s) === b;
337
+ }, A.isFragment = function(s) {
338
338
  return w(s) === o;
339
- }, M.isLazy = function(s) {
339
+ }, A.isLazy = function(s) {
340
340
  return w(s) === I;
341
- }, M.isMemo = function(s) {
342
- return w(s) === j;
343
- }, M.isPortal = function(s) {
341
+ }, A.isMemo = function(s) {
342
+ return w(s) === R;
343
+ }, A.isPortal = function(s) {
344
344
  return w(s) === r;
345
- }, M.isProfiler = function(s) {
345
+ }, A.isProfiler = function(s) {
346
346
  return w(s) === i;
347
- }, M.isStrictMode = function(s) {
347
+ }, A.isStrictMode = function(s) {
348
348
  return w(s) === a;
349
- }, M.isSuspense = function(s) {
350
- return w(s) === _;
351
- }, M.isValidElementType = function(s) {
352
- return typeof s == "string" || typeof s == "function" || s === o || s === y || s === i || s === a || s === _ || s === E || typeof s == "object" && s !== null && (s.$$typeof === I || s.$$typeof === j || s.$$typeof === p || s.$$typeof === l || s.$$typeof === T || s.$$typeof === O || s.$$typeof === g || s.$$typeof === d || s.$$typeof === k);
353
- }, M.typeOf = w, M;
349
+ }, A.isSuspense = function(s) {
350
+ return w(s) === C;
351
+ }, A.isValidElementType = function(s) {
352
+ return typeof s == "string" || typeof s == "function" || s === o || s === m || s === i || s === a || s === C || s === T || typeof s == "object" && s !== null && (s.$$typeof === I || s.$$typeof === R || s.$$typeof === u || s.$$typeof === l || s.$$typeof === b || s.$$typeof === $ || s.$$typeof === g || s.$$typeof === x || s.$$typeof === M);
353
+ }, A.typeOf = w, A;
354
354
  }
355
- var $ = {};
355
+ var k = {};
356
356
  /** @license React v16.13.1
357
357
  * react-is.development.js
358
358
  *
@@ -362,35 +362,35 @@ var $ = {};
362
362
  * LICENSE file in the root directory of this source tree.
363
363
  */
364
364
  var Je;
365
- function Rt() {
365
+ function Ct() {
366
366
  return Je || (Je = 1, process.env.NODE_ENV !== "production" && function() {
367
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, p = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, y = e ? Symbol.for("react.concurrent_mode") : 60111, T = e ? Symbol.for("react.forward_ref") : 60112, _ = e ? Symbol.for("react.suspense") : 60113, E = e ? Symbol.for("react.suspense_list") : 60120, j = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, k = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, d = e ? Symbol.for("react.scope") : 60119;
368
- function w(m) {
369
- return typeof m == "string" || typeof m == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
370
- m === o || m === y || m === i || m === a || m === _ || m === E || typeof m == "object" && m !== null && (m.$$typeof === I || m.$$typeof === j || m.$$typeof === p || m.$$typeof === l || m.$$typeof === T || m.$$typeof === O || m.$$typeof === g || m.$$typeof === d || m.$$typeof === k);
371
- }
372
- function x(m) {
373
- if (typeof m == "object" && m !== null) {
374
- var ee = m.$$typeof;
367
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, u = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, m = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, C = e ? Symbol.for("react.suspense") : 60113, T = e ? Symbol.for("react.suspense_list") : 60120, R = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, M = e ? Symbol.for("react.block") : 60121, $ = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
368
+ function w(h) {
369
+ return typeof h == "string" || typeof h == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
370
+ h === o || h === m || h === i || h === a || h === C || h === T || typeof h == "object" && h !== null && (h.$$typeof === I || h.$$typeof === R || h.$$typeof === u || h.$$typeof === l || h.$$typeof === b || h.$$typeof === $ || h.$$typeof === g || h.$$typeof === x || h.$$typeof === M);
371
+ }
372
+ function E(h) {
373
+ if (typeof h == "object" && h !== null) {
374
+ var ee = h.$$typeof;
375
375
  switch (ee) {
376
376
  case t:
377
- var ye = m.type;
377
+ var ye = h.type;
378
378
  switch (ye) {
379
- case f:
380
- case y:
379
+ case d:
380
+ case m:
381
381
  case o:
382
382
  case i:
383
383
  case a:
384
- case _:
384
+ case C:
385
385
  return ye;
386
386
  default:
387
387
  var He = ye && ye.$$typeof;
388
388
  switch (He) {
389
389
  case l:
390
- case T:
390
+ case b:
391
391
  case I:
392
- case j:
393
- case p:
392
+ case R:
393
+ case u:
394
394
  return He;
395
395
  default:
396
396
  return ee;
@@ -401,61 +401,61 @@ function Rt() {
401
401
  }
402
402
  }
403
403
  }
404
- var s = f, D = y, W = l, U = p, Y = t, L = T, ne = o, oe = I, ae = j, K = r, se = i, X = a, V = _, Q = !1;
405
- function ie(m) {
406
- return Q || (Q = !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.")), c(m) || x(m) === f;
404
+ var s = d, O = m, W = l, U = u, Y = t, L = b, ne = o, oe = I, ae = R, K = r, se = i, X = a, V = C, Q = !1;
405
+ function ie(h) {
406
+ return Q || (Q = !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.")), c(h) || E(h) === d;
407
407
  }
408
- function c(m) {
409
- return x(m) === y;
408
+ function c(h) {
409
+ return E(h) === m;
410
410
  }
411
- function n(m) {
412
- return x(m) === l;
411
+ function n(h) {
412
+ return E(h) === l;
413
413
  }
414
- function h(m) {
415
- return x(m) === p;
414
+ function p(h) {
415
+ return E(h) === u;
416
416
  }
417
- function b(m) {
418
- return typeof m == "object" && m !== null && m.$$typeof === t;
417
+ function v(h) {
418
+ return typeof h == "object" && h !== null && h.$$typeof === t;
419
419
  }
420
- function v(m) {
421
- return x(m) === T;
420
+ function y(h) {
421
+ return E(h) === b;
422
422
  }
423
- function R(m) {
424
- return x(m) === o;
423
+ function j(h) {
424
+ return E(h) === o;
425
425
  }
426
- function C(m) {
427
- return x(m) === I;
426
+ function _(h) {
427
+ return E(h) === I;
428
428
  }
429
- function S(m) {
430
- return x(m) === j;
429
+ function S(h) {
430
+ return E(h) === R;
431
431
  }
432
- function P(m) {
433
- return x(m) === r;
432
+ function P(h) {
433
+ return E(h) === r;
434
434
  }
435
- function A(m) {
436
- return x(m) === i;
435
+ function N(h) {
436
+ return E(h) === i;
437
437
  }
438
- function N(m) {
439
- return x(m) === a;
438
+ function D(h) {
439
+ return E(h) === a;
440
440
  }
441
- function z(m) {
442
- return x(m) === _;
441
+ function z(h) {
442
+ return E(h) === C;
443
443
  }
444
- $.AsyncMode = s, $.ConcurrentMode = D, $.ContextConsumer = W, $.ContextProvider = U, $.Element = Y, $.ForwardRef = L, $.Fragment = ne, $.Lazy = oe, $.Memo = ae, $.Portal = K, $.Profiler = se, $.StrictMode = X, $.Suspense = V, $.isAsyncMode = ie, $.isConcurrentMode = c, $.isContextConsumer = n, $.isContextProvider = h, $.isElement = b, $.isForwardRef = v, $.isFragment = R, $.isLazy = C, $.isMemo = S, $.isPortal = P, $.isProfiler = A, $.isStrictMode = N, $.isSuspense = z, $.isValidElementType = w, $.typeOf = x;
445
- }()), $;
444
+ k.AsyncMode = s, k.ConcurrentMode = O, k.ContextConsumer = W, k.ContextProvider = U, k.Element = Y, k.ForwardRef = L, k.Fragment = ne, k.Lazy = oe, k.Memo = ae, k.Portal = K, k.Profiler = se, k.StrictMode = X, k.Suspense = V, k.isAsyncMode = ie, k.isConcurrentMode = c, k.isContextConsumer = n, k.isContextProvider = p, k.isElement = v, k.isForwardRef = y, k.isFragment = j, k.isLazy = _, k.isMemo = S, k.isPortal = P, k.isProfiler = N, k.isStrictMode = D, k.isSuspense = z, k.isValidElementType = w, k.typeOf = E;
445
+ }()), k;
446
446
  }
447
447
  var Ke;
448
448
  function ut() {
449
- return Ke || (Ke = 1, process.env.NODE_ENV === "production" ? ve.exports = jt() : ve.exports = Rt()), ve.exports;
449
+ return Ke || (Ke = 1, process.env.NODE_ENV === "production" ? ve.exports = _t() : ve.exports = Ct()), ve.exports;
450
450
  }
451
451
  /*
452
452
  object-assign
453
453
  (c) Sindre Sorhus
454
454
  @license MIT
455
455
  */
456
- var Ce, Ze;
457
- function Ot() {
458
- if (Ze) return Ce;
456
+ var _e, Ze;
457
+ function Pt() {
458
+ if (Ze) return _e;
459
459
  Ze = 1;
460
460
  var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
461
461
  function o(i) {
@@ -470,86 +470,86 @@ function Ot() {
470
470
  var i = new String("abc");
471
471
  if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
472
472
  return !1;
473
- for (var p = {}, l = 0; l < 10; l++)
474
- p["_" + String.fromCharCode(l)] = l;
475
- var f = Object.getOwnPropertyNames(p).map(function(T) {
476
- return p[T];
473
+ for (var u = {}, l = 0; l < 10; l++)
474
+ u["_" + String.fromCharCode(l)] = l;
475
+ var d = Object.getOwnPropertyNames(u).map(function(b) {
476
+ return u[b];
477
477
  });
478
- if (f.join("") !== "0123456789")
478
+ if (d.join("") !== "0123456789")
479
479
  return !1;
480
- var y = {};
481
- return "abcdefghijklmnopqrst".split("").forEach(function(T) {
482
- y[T] = T;
483
- }), Object.keys(Object.assign({}, y)).join("") === "abcdefghijklmnopqrst";
480
+ var m = {};
481
+ return "abcdefghijklmnopqrst".split("").forEach(function(b) {
482
+ m[b] = b;
483
+ }), Object.keys(Object.assign({}, m)).join("") === "abcdefghijklmnopqrst";
484
484
  } catch {
485
485
  return !1;
486
486
  }
487
487
  }
488
- return Ce = a() ? Object.assign : function(i, p) {
489
- for (var l, f = o(i), y, T = 1; T < arguments.length; T++) {
490
- l = Object(arguments[T]);
491
- for (var _ in l)
492
- t.call(l, _) && (f[_] = l[_]);
488
+ return _e = a() ? Object.assign : function(i, u) {
489
+ for (var l, d = o(i), m, b = 1; b < arguments.length; b++) {
490
+ l = Object(arguments[b]);
491
+ for (var C in l)
492
+ t.call(l, C) && (d[C] = l[C]);
493
493
  if (e) {
494
- y = e(l);
495
- for (var E = 0; E < y.length; E++)
496
- r.call(l, y[E]) && (f[y[E]] = l[y[E]]);
494
+ m = e(l);
495
+ for (var T = 0; T < m.length; T++)
496
+ r.call(l, m[T]) && (d[m[T]] = l[m[T]]);
497
497
  }
498
498
  }
499
- return f;
500
- }, Ce;
499
+ return d;
500
+ }, _e;
501
501
  }
502
- var Pe, Qe;
502
+ var Ce, Qe;
503
503
  function We() {
504
- if (Qe) return Pe;
504
+ if (Qe) return Ce;
505
505
  Qe = 1;
506
506
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
507
- return Pe = e, Pe;
507
+ return Ce = e, Ce;
508
508
  }
509
- var je, et;
509
+ var Pe, et;
510
510
  function ft() {
511
- return et || (et = 1, je = Function.call.bind(Object.prototype.hasOwnProperty)), je;
511
+ return et || (et = 1, Pe = Function.call.bind(Object.prototype.hasOwnProperty)), Pe;
512
512
  }
513
- var Re, tt;
514
- function Dt() {
515
- if (tt) return Re;
513
+ var je, tt;
514
+ function jt() {
515
+ if (tt) return je;
516
516
  tt = 1;
517
517
  var e = function() {
518
518
  };
519
519
  if (process.env.NODE_ENV !== "production") {
520
520
  var t = We(), r = {}, o = ft();
521
521
  e = function(i) {
522
- var p = "Warning: " + i;
523
- typeof console < "u" && console.error(p);
522
+ var u = "Warning: " + i;
523
+ typeof console < "u" && console.error(u);
524
524
  try {
525
- throw new Error(p);
525
+ throw new Error(u);
526
526
  } catch {
527
527
  }
528
528
  };
529
529
  }
530
- function a(i, p, l, f, y) {
530
+ function a(i, u, l, d, m) {
531
531
  if (process.env.NODE_ENV !== "production") {
532
- for (var T in i)
533
- if (o(i, T)) {
534
- var _;
532
+ for (var b in i)
533
+ if (o(i, b)) {
534
+ var C;
535
535
  try {
536
- if (typeof i[T] != "function") {
537
- var E = Error(
538
- (f || "React class") + ": " + l + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
536
+ if (typeof i[b] != "function") {
537
+ var T = Error(
538
+ (d || "React class") + ": " + l + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
539
539
  );
540
- throw E.name = "Invariant Violation", E;
540
+ throw T.name = "Invariant Violation", T;
541
541
  }
542
- _ = i[T](p, T, f, l, null, t);
542
+ C = i[b](u, b, d, l, null, t);
543
543
  } catch (I) {
544
- _ = I;
544
+ C = I;
545
545
  }
546
- if (_ && !(_ instanceof Error) && e(
547
- (f || "React class") + ": type specification of " + l + " `" + T + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof _ + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
548
- ), _ instanceof Error && !(_.message in r)) {
549
- r[_.message] = !0;
550
- var j = y ? y() : "";
546
+ if (C && !(C instanceof Error) && e(
547
+ (d || "React class") + ": type specification of " + l + " `" + b + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof C + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
548
+ ), C instanceof Error && !(C.message in r)) {
549
+ r[C.message] = !0;
550
+ var R = m ? m() : "";
551
551
  e(
552
- "Failed " + l + " type: " + _.message + (j ?? "")
552
+ "Failed " + l + " type: " + C.message + (R ?? "")
553
553
  );
554
554
  }
555
555
  }
@@ -557,33 +557,33 @@ function Dt() {
557
557
  }
558
558
  return a.resetWarningCache = function() {
559
559
  process.env.NODE_ENV !== "production" && (r = {});
560
- }, Re = a, Re;
560
+ }, je = a, je;
561
561
  }
562
- var Oe, rt;
563
- function Nt() {
564
- if (rt) return Oe;
562
+ var Re, rt;
563
+ function Rt() {
564
+ if (rt) return Re;
565
565
  rt = 1;
566
- var e = ut(), t = Ot(), r = We(), o = ft(), a = Dt(), i = function() {
566
+ var e = ut(), t = Pt(), r = We(), o = ft(), a = jt(), i = function() {
567
567
  };
568
568
  process.env.NODE_ENV !== "production" && (i = function(l) {
569
- var f = "Warning: " + l;
570
- typeof console < "u" && console.error(f);
569
+ var d = "Warning: " + l;
570
+ typeof console < "u" && console.error(d);
571
571
  try {
572
- throw new Error(f);
572
+ throw new Error(d);
573
573
  } catch {
574
574
  }
575
575
  });
576
- function p() {
576
+ function u() {
577
577
  return null;
578
578
  }
579
- return Oe = function(l, f) {
580
- var y = typeof Symbol == "function" && Symbol.iterator, T = "@@iterator";
581
- function _(c) {
582
- var n = c && (y && c[y] || c[T]);
579
+ return Re = function(l, d) {
580
+ var m = typeof Symbol == "function" && Symbol.iterator, b = "@@iterator";
581
+ function C(c) {
582
+ var n = c && (m && c[m] || c[b]);
583
583
  if (typeof n == "function")
584
584
  return n;
585
585
  }
586
- var E = "<<anonymous>>", j = {
586
+ var T = "<<anonymous>>", R = {
587
587
  array: g("array"),
588
588
  bigint: g("bigint"),
589
589
  bool: g("boolean"),
@@ -592,11 +592,11 @@ function Nt() {
592
592
  object: g("object"),
593
593
  string: g("string"),
594
594
  symbol: g("symbol"),
595
- any: d(),
595
+ any: x(),
596
596
  arrayOf: w,
597
- element: x(),
597
+ element: E(),
598
598
  elementType: s(),
599
- instanceOf: D,
599
+ instanceOf: O,
600
600
  node: L(),
601
601
  objectOf: U,
602
602
  oneOf: W,
@@ -607,206 +607,206 @@ function Nt() {
607
607
  function I(c, n) {
608
608
  return c === n ? c !== 0 || 1 / c === 1 / n : c !== c && n !== n;
609
609
  }
610
- function k(c, n) {
610
+ function M(c, n) {
611
611
  this.message = c, this.data = n && typeof n == "object" ? n : {}, this.stack = "";
612
612
  }
613
- k.prototype = Error.prototype;
614
- function O(c) {
613
+ M.prototype = Error.prototype;
614
+ function $(c) {
615
615
  if (process.env.NODE_ENV !== "production")
616
- var n = {}, h = 0;
617
- function b(R, C, S, P, A, N, z) {
618
- if (P = P || E, N = N || S, z !== r) {
619
- if (f) {
620
- var m = new Error(
616
+ var n = {}, p = 0;
617
+ function v(j, _, S, P, N, D, z) {
618
+ if (P = P || T, D = D || S, z !== r) {
619
+ if (d) {
620
+ var h = new Error(
621
621
  "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"
622
622
  );
623
- throw m.name = "Invariant Violation", m;
623
+ throw h.name = "Invariant Violation", h;
624
624
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
625
625
  var ee = P + ":" + S;
626
626
  !n[ee] && // Avoid spamming the console because they are often not actionable except for lib authors
627
- h < 3 && (i(
628
- "You are manually calling a React.PropTypes validation function for the `" + N + "` prop on `" + P + "`. 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."
629
- ), n[ee] = !0, h++);
627
+ p < 3 && (i(
628
+ "You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + P + "`. 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."
629
+ ), n[ee] = !0, p++);
630
630
  }
631
631
  }
632
- return C[S] == null ? R ? C[S] === null ? new k("The " + A + " `" + N + "` is marked as required " + ("in `" + P + "`, but its value is `null`.")) : new k("The " + A + " `" + N + "` is marked as required in " + ("`" + P + "`, but its value is `undefined`.")) : null : c(C, S, P, A, N);
632
+ return _[S] == null ? j ? _[S] === null ? new M("The " + N + " `" + D + "` is marked as required " + ("in `" + P + "`, but its value is `null`.")) : new M("The " + N + " `" + D + "` is marked as required in " + ("`" + P + "`, but its value is `undefined`.")) : null : c(_, S, P, N, D);
633
633
  }
634
- var v = b.bind(null, !1);
635
- return v.isRequired = b.bind(null, !0), v;
634
+ var y = v.bind(null, !1);
635
+ return y.isRequired = v.bind(null, !0), y;
636
636
  }
637
637
  function g(c) {
638
- function n(h, b, v, R, C, S) {
639
- var P = h[b], A = X(P);
640
- if (A !== c) {
641
- var N = V(P);
642
- return new k(
643
- "Invalid " + R + " `" + C + "` of type " + ("`" + N + "` supplied to `" + v + "`, expected ") + ("`" + c + "`."),
638
+ function n(p, v, y, j, _, S) {
639
+ var P = p[v], N = X(P);
640
+ if (N !== c) {
641
+ var D = V(P);
642
+ return new M(
643
+ "Invalid " + j + " `" + _ + "` of type " + ("`" + D + "` supplied to `" + y + "`, expected ") + ("`" + c + "`."),
644
644
  { expectedType: c }
645
645
  );
646
646
  }
647
647
  return null;
648
648
  }
649
- return O(n);
649
+ return $(n);
650
650
  }
651
- function d() {
652
- return O(p);
651
+ function x() {
652
+ return $(u);
653
653
  }
654
654
  function w(c) {
655
- function n(h, b, v, R, C) {
655
+ function n(p, v, y, j, _) {
656
656
  if (typeof c != "function")
657
- return new k("Property `" + C + "` of component `" + v + "` has invalid PropType notation inside arrayOf.");
658
- var S = h[b];
657
+ return new M("Property `" + _ + "` of component `" + y + "` has invalid PropType notation inside arrayOf.");
658
+ var S = p[v];
659
659
  if (!Array.isArray(S)) {
660
660
  var P = X(S);
661
- return new k("Invalid " + R + " `" + C + "` of type " + ("`" + P + "` supplied to `" + v + "`, expected an array."));
661
+ return new M("Invalid " + j + " `" + _ + "` of type " + ("`" + P + "` supplied to `" + y + "`, expected an array."));
662
662
  }
663
- for (var A = 0; A < S.length; A++) {
664
- var N = c(S, A, v, R, C + "[" + A + "]", r);
665
- if (N instanceof Error)
666
- return N;
663
+ for (var N = 0; N < S.length; N++) {
664
+ var D = c(S, N, y, j, _ + "[" + N + "]", r);
665
+ if (D instanceof Error)
666
+ return D;
667
667
  }
668
668
  return null;
669
669
  }
670
- return O(n);
671
- }
672
- function x() {
673
- function c(n, h, b, v, R) {
674
- var C = n[h];
675
- if (!l(C)) {
676
- var S = X(C);
677
- return new k("Invalid " + v + " `" + R + "` of type " + ("`" + S + "` supplied to `" + b + "`, expected a single ReactElement."));
670
+ return $(n);
671
+ }
672
+ function E() {
673
+ function c(n, p, v, y, j) {
674
+ var _ = n[p];
675
+ if (!l(_)) {
676
+ var S = X(_);
677
+ return new M("Invalid " + y + " `" + j + "` of type " + ("`" + S + "` supplied to `" + v + "`, expected a single ReactElement."));
678
678
  }
679
679
  return null;
680
680
  }
681
- return O(c);
681
+ return $(c);
682
682
  }
683
683
  function s() {
684
- function c(n, h, b, v, R) {
685
- var C = n[h];
686
- if (!e.isValidElementType(C)) {
687
- var S = X(C);
688
- return new k("Invalid " + v + " `" + R + "` of type " + ("`" + S + "` supplied to `" + b + "`, expected a single ReactElement type."));
684
+ function c(n, p, v, y, j) {
685
+ var _ = n[p];
686
+ if (!e.isValidElementType(_)) {
687
+ var S = X(_);
688
+ return new M("Invalid " + y + " `" + j + "` of type " + ("`" + S + "` supplied to `" + v + "`, expected a single ReactElement type."));
689
689
  }
690
690
  return null;
691
691
  }
692
- return O(c);
692
+ return $(c);
693
693
  }
694
- function D(c) {
695
- function n(h, b, v, R, C) {
696
- if (!(h[b] instanceof c)) {
697
- var S = c.name || E, P = ie(h[b]);
698
- return new k("Invalid " + R + " `" + C + "` of type " + ("`" + P + "` supplied to `" + v + "`, expected ") + ("instance of `" + S + "`."));
694
+ function O(c) {
695
+ function n(p, v, y, j, _) {
696
+ if (!(p[v] instanceof c)) {
697
+ var S = c.name || T, P = ie(p[v]);
698
+ return new M("Invalid " + j + " `" + _ + "` of type " + ("`" + P + "` supplied to `" + y + "`, expected ") + ("instance of `" + S + "`."));
699
699
  }
700
700
  return null;
701
701
  }
702
- return O(n);
702
+ return $(n);
703
703
  }
704
704
  function W(c) {
705
705
  if (!Array.isArray(c))
706
706
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
707
707
  "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])."
708
- ) : i("Invalid argument supplied to oneOf, expected an array.")), p;
709
- function n(h, b, v, R, C) {
710
- for (var S = h[b], P = 0; P < c.length; P++)
708
+ ) : i("Invalid argument supplied to oneOf, expected an array.")), u;
709
+ function n(p, v, y, j, _) {
710
+ for (var S = p[v], P = 0; P < c.length; P++)
711
711
  if (I(S, c[P]))
712
712
  return null;
713
- var A = JSON.stringify(c, function(z, m) {
714
- var ee = V(m);
715
- return ee === "symbol" ? String(m) : m;
713
+ var N = JSON.stringify(c, function(z, h) {
714
+ var ee = V(h);
715
+ return ee === "symbol" ? String(h) : h;
716
716
  });
717
- return new k("Invalid " + R + " `" + C + "` of value `" + String(S) + "` " + ("supplied to `" + v + "`, expected one of " + A + "."));
717
+ return new M("Invalid " + j + " `" + _ + "` of value `" + String(S) + "` " + ("supplied to `" + y + "`, expected one of " + N + "."));
718
718
  }
719
- return O(n);
719
+ return $(n);
720
720
  }
721
721
  function U(c) {
722
- function n(h, b, v, R, C) {
722
+ function n(p, v, y, j, _) {
723
723
  if (typeof c != "function")
724
- return new k("Property `" + C + "` of component `" + v + "` has invalid PropType notation inside objectOf.");
725
- var S = h[b], P = X(S);
724
+ return new M("Property `" + _ + "` of component `" + y + "` has invalid PropType notation inside objectOf.");
725
+ var S = p[v], P = X(S);
726
726
  if (P !== "object")
727
- return new k("Invalid " + R + " `" + C + "` of type " + ("`" + P + "` supplied to `" + v + "`, expected an object."));
728
- for (var A in S)
729
- if (o(S, A)) {
730
- var N = c(S, A, v, R, C + "." + A, r);
731
- if (N instanceof Error)
732
- return N;
727
+ return new M("Invalid " + j + " `" + _ + "` of type " + ("`" + P + "` supplied to `" + y + "`, expected an object."));
728
+ for (var N in S)
729
+ if (o(S, N)) {
730
+ var D = c(S, N, y, j, _ + "." + N, r);
731
+ if (D instanceof Error)
732
+ return D;
733
733
  }
734
734
  return null;
735
735
  }
736
- return O(n);
736
+ return $(n);
737
737
  }
738
738
  function Y(c) {
739
739
  if (!Array.isArray(c))
740
- return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), p;
740
+ return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), u;
741
741
  for (var n = 0; n < c.length; n++) {
742
- var h = c[n];
743
- if (typeof h != "function")
742
+ var p = c[n];
743
+ if (typeof p != "function")
744
744
  return i(
745
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Q(h) + " at index " + n + "."
746
- ), p;
745
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Q(p) + " at index " + n + "."
746
+ ), u;
747
747
  }
748
- function b(v, R, C, S, P) {
749
- for (var A = [], N = 0; N < c.length; N++) {
750
- var z = c[N], m = z(v, R, C, S, P, r);
751
- if (m == null)
748
+ function v(y, j, _, S, P) {
749
+ for (var N = [], D = 0; D < c.length; D++) {
750
+ var z = c[D], h = z(y, j, _, S, P, r);
751
+ if (h == null)
752
752
  return null;
753
- m.data && o(m.data, "expectedType") && A.push(m.data.expectedType);
753
+ h.data && o(h.data, "expectedType") && N.push(h.data.expectedType);
754
754
  }
755
- var ee = A.length > 0 ? ", expected one of type [" + A.join(", ") + "]" : "";
756
- return new k("Invalid " + S + " `" + P + "` supplied to " + ("`" + C + "`" + ee + "."));
755
+ var ee = N.length > 0 ? ", expected one of type [" + N.join(", ") + "]" : "";
756
+ return new M("Invalid " + S + " `" + P + "` supplied to " + ("`" + _ + "`" + ee + "."));
757
757
  }
758
- return O(b);
758
+ return $(v);
759
759
  }
760
760
  function L() {
761
- function c(n, h, b, v, R) {
762
- return K(n[h]) ? null : new k("Invalid " + v + " `" + R + "` supplied to " + ("`" + b + "`, expected a ReactNode."));
761
+ function c(n, p, v, y, j) {
762
+ return K(n[p]) ? null : new M("Invalid " + y + " `" + j + "` supplied to " + ("`" + v + "`, expected a ReactNode."));
763
763
  }
764
- return O(c);
764
+ return $(c);
765
765
  }
766
- function ne(c, n, h, b, v) {
767
- return new k(
768
- (c || "React class") + ": " + n + " type `" + h + "." + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + v + "`."
766
+ function ne(c, n, p, v, y) {
767
+ return new M(
768
+ (c || "React class") + ": " + n + " type `" + p + "." + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + y + "`."
769
769
  );
770
770
  }
771
771
  function oe(c) {
772
- function n(h, b, v, R, C) {
773
- var S = h[b], P = X(S);
772
+ function n(p, v, y, j, _) {
773
+ var S = p[v], P = X(S);
774
774
  if (P !== "object")
775
- return new k("Invalid " + R + " `" + C + "` of type `" + P + "` " + ("supplied to `" + v + "`, expected `object`."));
776
- for (var A in c) {
777
- var N = c[A];
778
- if (typeof N != "function")
779
- return ne(v, R, C, A, V(N));
780
- var z = N(S, A, v, R, C + "." + A, r);
775
+ return new M("Invalid " + j + " `" + _ + "` of type `" + P + "` " + ("supplied to `" + y + "`, expected `object`."));
776
+ for (var N in c) {
777
+ var D = c[N];
778
+ if (typeof D != "function")
779
+ return ne(y, j, _, N, V(D));
780
+ var z = D(S, N, y, j, _ + "." + N, r);
781
781
  if (z)
782
782
  return z;
783
783
  }
784
784
  return null;
785
785
  }
786
- return O(n);
786
+ return $(n);
787
787
  }
788
788
  function ae(c) {
789
- function n(h, b, v, R, C) {
790
- var S = h[b], P = X(S);
789
+ function n(p, v, y, j, _) {
790
+ var S = p[v], P = X(S);
791
791
  if (P !== "object")
792
- return new k("Invalid " + R + " `" + C + "` of type `" + P + "` " + ("supplied to `" + v + "`, expected `object`."));
793
- var A = t({}, h[b], c);
794
- for (var N in A) {
795
- var z = c[N];
796
- if (o(c, N) && typeof z != "function")
797
- return ne(v, R, C, N, V(z));
792
+ return new M("Invalid " + j + " `" + _ + "` of type `" + P + "` " + ("supplied to `" + y + "`, expected `object`."));
793
+ var N = t({}, p[v], c);
794
+ for (var D in N) {
795
+ var z = c[D];
796
+ if (o(c, D) && typeof z != "function")
797
+ return ne(y, j, _, D, V(z));
798
798
  if (!z)
799
- return new k(
800
- "Invalid " + R + " `" + C + "` key `" + N + "` supplied to `" + v + "`.\nBad object: " + JSON.stringify(h[b], null, " ") + `
799
+ return new M(
800
+ "Invalid " + j + " `" + _ + "` key `" + D + "` supplied to `" + y + "`.\nBad object: " + JSON.stringify(p[v], null, " ") + `
801
801
  Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
802
802
  );
803
- var m = z(S, N, v, R, C + "." + N, r);
804
- if (m)
805
- return m;
803
+ var h = z(S, D, y, j, _ + "." + D, r);
804
+ if (h)
805
+ return h;
806
806
  }
807
807
  return null;
808
808
  }
809
- return O(n);
809
+ return $(n);
810
810
  }
811
811
  function K(c) {
812
812
  switch (typeof c) {
@@ -821,17 +821,17 @@ Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
821
821
  return c.every(K);
822
822
  if (c === null || l(c))
823
823
  return !0;
824
- var n = _(c);
824
+ var n = C(c);
825
825
  if (n) {
826
- var h = n.call(c), b;
826
+ var p = n.call(c), v;
827
827
  if (n !== c.entries) {
828
- for (; !(b = h.next()).done; )
829
- if (!K(b.value))
828
+ for (; !(v = p.next()).done; )
829
+ if (!K(v.value))
830
830
  return !1;
831
831
  } else
832
- for (; !(b = h.next()).done; ) {
833
- var v = b.value;
834
- if (v && !K(v[1]))
832
+ for (; !(v = p.next()).done; ) {
833
+ var y = v.value;
834
+ if (y && !K(y[1]))
835
835
  return !1;
836
836
  }
837
837
  } else
@@ -875,27 +875,27 @@ Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
875
875
  }
876
876
  }
877
877
  function ie(c) {
878
- return !c.constructor || !c.constructor.name ? E : c.constructor.name;
878
+ return !c.constructor || !c.constructor.name ? T : c.constructor.name;
879
879
  }
880
- return j.checkPropTypes = a, j.resetWarningCache = a.resetWarningCache, j.PropTypes = j, j;
881
- }, Oe;
880
+ return R.checkPropTypes = a, R.resetWarningCache = a.resetWarningCache, R.PropTypes = R, R;
881
+ }, Re;
882
882
  }
883
- var De, nt;
884
- function At() {
885
- if (nt) return De;
883
+ var Oe, nt;
884
+ function Ot() {
885
+ if (nt) return Oe;
886
886
  nt = 1;
887
887
  var e = We();
888
888
  function t() {
889
889
  }
890
890
  function r() {
891
891
  }
892
- return r.resetWarningCache = t, De = function() {
893
- function o(p, l, f, y, T, _) {
894
- if (_ !== e) {
895
- var E = new Error(
892
+ return r.resetWarningCache = t, Oe = function() {
893
+ function o(u, l, d, m, b, C) {
894
+ if (C !== e) {
895
+ var T = new Error(
896
896
  "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"
897
897
  );
898
- throw E.name = "Invariant Violation", E;
898
+ throw T.name = "Invariant Violation", T;
899
899
  }
900
900
  }
901
901
  o.isRequired = o;
@@ -926,13 +926,13 @@ function At() {
926
926
  resetWarningCache: t
927
927
  };
928
928
  return i.PropTypes = i, i;
929
- }, De;
929
+ }, Oe;
930
930
  }
931
931
  if (process.env.NODE_ENV !== "production") {
932
- var kt = ut(), Mt = !0;
933
- Fe.exports = Nt()(kt.isElement, Mt);
932
+ var Dt = ut(), Nt = !0;
933
+ Fe.exports = Rt()(Dt.isElement, Nt);
934
934
  } else
935
- Fe.exports = At()();
935
+ Fe.exports = Ot()();
936
936
  var dt = Fe.exports, Ye = { exports: {} };
937
937
  function pt(e) {
938
938
  var t, r, o = "";
@@ -948,29 +948,29 @@ function ot() {
948
948
  return o;
949
949
  }
950
950
  Ye.exports = ot, Ye.exports.clsx = ot;
951
- var $t = Ye.exports, F = {}, te = {};
951
+ var At = Ye.exports, F = {}, te = {};
952
952
  Object.defineProperty(te, "__esModule", {
953
953
  value: !0
954
954
  });
955
- te.dontSetMe = Wt;
956
- te.findInArray = It;
957
- te.int = Lt;
958
- te.isFunction = Ft;
959
- te.isNum = Yt;
960
- function It(e, t) {
955
+ te.dontSetMe = Ft;
956
+ te.findInArray = kt;
957
+ te.int = It;
958
+ te.isFunction = Mt;
959
+ te.isNum = $t;
960
+ function kt(e, t) {
961
961
  for (let r = 0, o = e.length; r < o; r++)
962
962
  if (t.apply(t, [e[r], r, e])) return e[r];
963
963
  }
964
- function Ft(e) {
964
+ function Mt(e) {
965
965
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Function]";
966
966
  }
967
- function Yt(e) {
967
+ function $t(e) {
968
968
  return typeof e == "number" && !isNaN(e);
969
969
  }
970
- function Lt(e) {
970
+ function It(e) {
971
971
  return parseInt(e, 10);
972
972
  }
973
- function Wt(e, t, r) {
973
+ function Ft(e, t, r) {
974
974
  if (e[t])
975
975
  return new Error(`Invalid prop ${t} passed to ${r} - do not set this, set it on the child.`);
976
976
  }
@@ -979,27 +979,27 @@ Object.defineProperty(fe, "__esModule", {
979
979
  value: !0
980
980
  });
981
981
  fe.browserPrefixToKey = gt;
982
- fe.browserPrefixToStyle = Ut;
982
+ fe.browserPrefixToStyle = Yt;
983
983
  fe.default = void 0;
984
984
  fe.getPrefix = ht;
985
- const Ne = ["Moz", "Webkit", "O", "ms"];
985
+ const De = ["Moz", "Webkit", "O", "ms"];
986
986
  function ht() {
987
987
  var r, o;
988
988
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
989
989
  if (typeof window > "u") return "";
990
990
  const t = (o = (r = window.document) == null ? void 0 : r.documentElement) == null ? void 0 : o.style;
991
991
  if (!t || e in t) return "";
992
- for (let a = 0; a < Ne.length; a++)
993
- if (gt(e, Ne[a]) in t) return Ne[a];
992
+ for (let a = 0; a < De.length; a++)
993
+ if (gt(e, De[a]) in t) return De[a];
994
994
  return "";
995
995
  }
996
996
  function gt(e, t) {
997
- return t ? `${t}${Xt(e)}` : e;
997
+ return t ? `${t}${Lt(e)}` : e;
998
998
  }
999
- function Ut(e, t) {
999
+ function Yt(e, t) {
1000
1000
  return t ? `-${t.toLowerCase()}-${e}` : e;
1001
1001
  }
1002
- function Xt(e) {
1002
+ function Lt(e) {
1003
1003
  let t = "", r = !0;
1004
1004
  for (let o = 0; o < e.length; o++)
1005
1005
  r ? (t += e[o].toUpperCase(), r = !1) : e[o] === "-" ? r = !0 : t += e[o];
@@ -1010,36 +1010,36 @@ Object.defineProperty(F, "__esModule", {
1010
1010
  value: !0
1011
1011
  });
1012
1012
  F.addClassName = vt;
1013
- F.addEvent = Bt;
1014
- F.addUserSelectStyles = rr;
1015
- F.createCSSTransform = Zt;
1016
- F.createSVGTransform = Qt;
1017
- F.getTouch = er;
1018
- F.getTouchIdentifier = tr;
1013
+ F.addEvent = Ut;
1014
+ F.addUserSelectStyles = Qt;
1015
+ F.createCSSTransform = Gt;
1016
+ F.createSVGTransform = Jt;
1017
+ F.getTouch = Kt;
1018
+ F.getTouchIdentifier = Zt;
1019
1019
  F.getTranslation = Ue;
1020
- F.innerHeight = Gt;
1021
- F.innerWidth = Jt;
1020
+ F.innerHeight = Ht;
1021
+ F.innerWidth = zt;
1022
1022
  F.matchesSelector = yt;
1023
- F.matchesSelectorAndParentsTo = qt;
1024
- F.offsetXYFromParent = Kt;
1025
- F.outerHeight = zt;
1026
- F.outerWidth = Vt;
1023
+ F.matchesSelectorAndParentsTo = Wt;
1024
+ F.offsetXYFromParent = Vt;
1025
+ F.outerHeight = qt;
1026
+ F.outerWidth = Bt;
1027
1027
  F.removeClassName = bt;
1028
- F.removeEvent = Ht;
1029
- F.scheduleRemoveUserSelectStyles = nr;
1028
+ F.removeEvent = Xt;
1029
+ F.scheduleRemoveUserSelectStyles = er;
1030
1030
  var J = te, at = mt(fe);
1031
1031
  function mt(e, t) {
1032
1032
  if (typeof WeakMap == "function") var r = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap();
1033
1033
  return (mt = function(a, i) {
1034
1034
  if (!i && a && a.__esModule) return a;
1035
- var p, l, f = { __proto__: null, default: a };
1036
- if (a === null || typeof a != "object" && typeof a != "function") return f;
1037
- if (p = i ? o : r) {
1038
- if (p.has(a)) return p.get(a);
1039
- p.set(a, f);
1040
- }
1041
- for (const y in a) y !== "default" && {}.hasOwnProperty.call(a, y) && ((l = (p = Object.defineProperty) && Object.getOwnPropertyDescriptor(a, y)) && (l.get || l.set) ? p(f, y, l) : f[y] = a[y]);
1042
- return f;
1035
+ var u, l, d = { __proto__: null, default: a };
1036
+ if (a === null || typeof a != "object" && typeof a != "function") return d;
1037
+ if (u = i ? o : r) {
1038
+ if (u.has(a)) return u.get(a);
1039
+ u.set(a, d);
1040
+ }
1041
+ for (const m in a) m !== "default" && {}.hasOwnProperty.call(a, m) && ((l = (u = Object.defineProperty) && Object.getOwnPropertyDescriptor(a, m)) && (l.get || l.set) ? u(d, m, l) : d[m] = a[m]);
1042
+ return d;
1043
1043
  })(e, t);
1044
1044
  }
1045
1045
  let be = "";
@@ -1048,7 +1048,7 @@ function yt(e, t) {
1048
1048
  return (0, J.isFunction)(e[r]);
1049
1049
  })), (0, J.isFunction)(e[be]) ? e[be](t) : !1;
1050
1050
  }
1051
- function qt(e, t, r) {
1051
+ function Wt(e, t, r) {
1052
1052
  let o = e;
1053
1053
  do {
1054
1054
  if (yt(o, t)) return !0;
@@ -1057,7 +1057,7 @@ function qt(e, t, r) {
1057
1057
  } while (o);
1058
1058
  return !1;
1059
1059
  }
1060
- function Bt(e, t, r, o) {
1060
+ function Ut(e, t, r, o) {
1061
1061
  if (!e) return;
1062
1062
  const a = {
1063
1063
  capture: !0,
@@ -1065,7 +1065,7 @@ function Bt(e, t, r, o) {
1065
1065
  };
1066
1066
  e.addEventListener ? e.addEventListener(t, r, a) : e.attachEvent ? e.attachEvent("on" + t, r) : e["on" + t] = r;
1067
1067
  }
1068
- function Ht(e, t, r, o) {
1068
+ function Xt(e, t, r, o) {
1069
1069
  if (!e) return;
1070
1070
  const a = {
1071
1071
  capture: !0,
@@ -1073,43 +1073,43 @@ function Ht(e, t, r, o) {
1073
1073
  };
1074
1074
  e.removeEventListener ? e.removeEventListener(t, r, a) : e.detachEvent ? e.detachEvent("on" + t, r) : e["on" + t] = null;
1075
1075
  }
1076
- function zt(e) {
1076
+ function qt(e) {
1077
1077
  let t = e.clientHeight;
1078
1078
  const r = e.ownerDocument.defaultView.getComputedStyle(e);
1079
1079
  return t += (0, J.int)(r.borderTopWidth), t += (0, J.int)(r.borderBottomWidth), t;
1080
1080
  }
1081
- function Vt(e) {
1081
+ function Bt(e) {
1082
1082
  let t = e.clientWidth;
1083
1083
  const r = e.ownerDocument.defaultView.getComputedStyle(e);
1084
1084
  return t += (0, J.int)(r.borderLeftWidth), t += (0, J.int)(r.borderRightWidth), t;
1085
1085
  }
1086
- function Gt(e) {
1086
+ function Ht(e) {
1087
1087
  let t = e.clientHeight;
1088
1088
  const r = e.ownerDocument.defaultView.getComputedStyle(e);
1089
1089
  return t -= (0, J.int)(r.paddingTop), t -= (0, J.int)(r.paddingBottom), t;
1090
1090
  }
1091
- function Jt(e) {
1091
+ function zt(e) {
1092
1092
  let t = e.clientWidth;
1093
1093
  const r = e.ownerDocument.defaultView.getComputedStyle(e);
1094
1094
  return t -= (0, J.int)(r.paddingLeft), t -= (0, J.int)(r.paddingRight), t;
1095
1095
  }
1096
- function Kt(e, t, r) {
1096
+ function Vt(e, t, r) {
1097
1097
  const a = t === t.ownerDocument.body ? {
1098
1098
  left: 0,
1099
1099
  top: 0
1100
- } : t.getBoundingClientRect(), i = (e.clientX + t.scrollLeft - a.left) / r, p = (e.clientY + t.scrollTop - a.top) / r;
1100
+ } : t.getBoundingClientRect(), i = (e.clientX + t.scrollLeft - a.left) / r, u = (e.clientY + t.scrollTop - a.top) / r;
1101
1101
  return {
1102
1102
  x: i,
1103
- y: p
1103
+ y: u
1104
1104
  };
1105
1105
  }
1106
- function Zt(e, t) {
1106
+ function Gt(e, t) {
1107
1107
  const r = Ue(e, t, "px");
1108
1108
  return {
1109
1109
  [(0, at.browserPrefixToKey)("transform", at.default)]: r
1110
1110
  };
1111
1111
  }
1112
- function Qt(e, t) {
1112
+ function Jt(e, t) {
1113
1113
  return Ue(e, t, "");
1114
1114
  }
1115
1115
  function Ue(e, t, r) {
@@ -1118,26 +1118,26 @@ function Ue(e, t, r) {
1118
1118
  y: a
1119
1119
  } = e, i = `translate(${o}${r},${a}${r})`;
1120
1120
  if (t) {
1121
- const p = `${typeof t.x == "string" ? t.x : t.x + r}`, l = `${typeof t.y == "string" ? t.y : t.y + r}`;
1122
- i = `translate(${p}, ${l})` + i;
1121
+ const u = `${typeof t.x == "string" ? t.x : t.x + r}`, l = `${typeof t.y == "string" ? t.y : t.y + r}`;
1122
+ i = `translate(${u}, ${l})` + i;
1123
1123
  }
1124
1124
  return i;
1125
1125
  }
1126
- function er(e, t) {
1126
+ function Kt(e, t) {
1127
1127
  return e.targetTouches && (0, J.findInArray)(e.targetTouches, (r) => t === r.identifier) || e.changedTouches && (0, J.findInArray)(e.changedTouches, (r) => t === r.identifier);
1128
1128
  }
1129
- function tr(e) {
1129
+ function Zt(e) {
1130
1130
  if (e.targetTouches && e.targetTouches[0]) return e.targetTouches[0].identifier;
1131
1131
  if (e.changedTouches && e.changedTouches[0]) return e.changedTouches[0].identifier;
1132
1132
  }
1133
- function rr(e) {
1133
+ function Qt(e) {
1134
1134
  if (!e) return;
1135
1135
  let t = e.getElementById("react-draggable-style-el");
1136
1136
  t || (t = e.createElement("style"), t.type = "text/css", t.id = "react-draggable-style-el", t.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
1137
1137
  `, t.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
1138
1138
  `, e.getElementsByTagName("head")[0].appendChild(t)), e.body && vt(e.body, "react-draggable-transparent-selection");
1139
1139
  }
1140
- function nr(e) {
1140
+ function er(e) {
1141
1141
  window.requestAnimationFrame ? window.requestAnimationFrame(() => {
1142
1142
  st(e);
1143
1143
  }) : st(e);
@@ -1164,55 +1164,55 @@ var re = {};
1164
1164
  Object.defineProperty(re, "__esModule", {
1165
1165
  value: !0
1166
1166
  });
1167
- re.canDragX = sr;
1168
- re.canDragY = ir;
1169
- re.createCoreData = cr;
1170
- re.createDraggableData = ur;
1171
- re.getBoundPosition = or;
1172
- re.getControlPosition = lr;
1173
- re.snapToGrid = ar;
1167
+ re.canDragX = nr;
1168
+ re.canDragY = or;
1169
+ re.createCoreData = sr;
1170
+ re.createDraggableData = ir;
1171
+ re.getBoundPosition = tr;
1172
+ re.getControlPosition = ar;
1173
+ re.snapToGrid = rr;
1174
1174
  var G = te, de = F;
1175
- function or(e, t, r) {
1175
+ function tr(e, t, r) {
1176
1176
  if (!e.props.bounds) return [t, r];
1177
1177
  let {
1178
1178
  bounds: o
1179
1179
  } = e.props;
1180
- o = typeof o == "string" ? o : fr(o);
1180
+ o = typeof o == "string" ? o : lr(o);
1181
1181
  const a = Xe(e);
1182
1182
  if (typeof o == "string") {
1183
1183
  const {
1184
1184
  ownerDocument: i
1185
- } = a, p = i.defaultView;
1185
+ } = a, u = i.defaultView;
1186
1186
  let l;
1187
- if (o === "parent" ? l = a.parentNode : l = a.getRootNode().querySelector(o), !(l instanceof p.HTMLElement))
1187
+ if (o === "parent" ? l = a.parentNode : l = a.getRootNode().querySelector(o), !(l instanceof u.HTMLElement))
1188
1188
  throw new Error('Bounds selector "' + o + '" could not find an element.');
1189
- const f = l, y = p.getComputedStyle(a), T = p.getComputedStyle(f);
1189
+ const d = l, m = u.getComputedStyle(a), b = u.getComputedStyle(d);
1190
1190
  o = {
1191
- left: -a.offsetLeft + (0, G.int)(T.paddingLeft) + (0, G.int)(y.marginLeft),
1192
- top: -a.offsetTop + (0, G.int)(T.paddingTop) + (0, G.int)(y.marginTop),
1193
- right: (0, de.innerWidth)(f) - (0, de.outerWidth)(a) - a.offsetLeft + (0, G.int)(T.paddingRight) - (0, G.int)(y.marginRight),
1194
- bottom: (0, de.innerHeight)(f) - (0, de.outerHeight)(a) - a.offsetTop + (0, G.int)(T.paddingBottom) - (0, G.int)(y.marginBottom)
1191
+ left: -a.offsetLeft + (0, G.int)(b.paddingLeft) + (0, G.int)(m.marginLeft),
1192
+ top: -a.offsetTop + (0, G.int)(b.paddingTop) + (0, G.int)(m.marginTop),
1193
+ right: (0, de.innerWidth)(d) - (0, de.outerWidth)(a) - a.offsetLeft + (0, G.int)(b.paddingRight) - (0, G.int)(m.marginRight),
1194
+ bottom: (0, de.innerHeight)(d) - (0, de.outerHeight)(a) - a.offsetTop + (0, G.int)(b.paddingBottom) - (0, G.int)(m.marginBottom)
1195
1195
  };
1196
1196
  }
1197
1197
  return (0, G.isNum)(o.right) && (t = Math.min(t, o.right)), (0, G.isNum)(o.bottom) && (r = Math.min(r, o.bottom)), (0, G.isNum)(o.left) && (t = Math.max(t, o.left)), (0, G.isNum)(o.top) && (r = Math.max(r, o.top)), [t, r];
1198
1198
  }
1199
- function ar(e, t, r) {
1199
+ function rr(e, t, r) {
1200
1200
  const o = Math.round(t / e[0]) * e[0], a = Math.round(r / e[1]) * e[1];
1201
1201
  return [o, a];
1202
1202
  }
1203
- function sr(e) {
1203
+ function nr(e) {
1204
1204
  return e.props.axis === "both" || e.props.axis === "x";
1205
1205
  }
1206
- function ir(e) {
1206
+ function or(e) {
1207
1207
  return e.props.axis === "both" || e.props.axis === "y";
1208
1208
  }
1209
- function lr(e, t, r) {
1209
+ function ar(e, t, r) {
1210
1210
  const o = typeof t == "number" ? (0, de.getTouch)(e, t) : null;
1211
1211
  if (typeof t == "number" && !o) return null;
1212
1212
  const a = Xe(r), i = r.props.offsetParent || a.offsetParent || a.ownerDocument.body;
1213
1213
  return (0, de.offsetXYFromParent)(o || e, i, r.props.scale);
1214
1214
  }
1215
- function cr(e, t, r) {
1215
+ function sr(e, t, r) {
1216
1216
  const o = !(0, G.isNum)(e.lastX), a = Xe(e);
1217
1217
  return o ? {
1218
1218
  node: a,
@@ -1232,7 +1232,7 @@ function cr(e, t, r) {
1232
1232
  y: r
1233
1233
  };
1234
1234
  }
1235
- function ur(e, t) {
1235
+ function ir(e, t) {
1236
1236
  const r = e.props.scale;
1237
1237
  return {
1238
1238
  node: t.node,
@@ -1244,7 +1244,7 @@ function ur(e, t) {
1244
1244
  lastY: e.state.y
1245
1245
  };
1246
1246
  }
1247
- function fr(e) {
1247
+ function lr(e) {
1248
1248
  return {
1249
1249
  left: e.left,
1250
1250
  top: e.top,
@@ -1258,18 +1258,18 @@ function Xe(e) {
1258
1258
  throw new Error("<DraggableCore>: Unmounted during event!");
1259
1259
  return t;
1260
1260
  }
1261
- var Ee = {}, we = {};
1262
- Object.defineProperty(we, "__esModule", {
1261
+ var Te = {}, Ee = {};
1262
+ Object.defineProperty(Ee, "__esModule", {
1263
1263
  value: !0
1264
1264
  });
1265
- we.default = dr;
1266
- function dr() {
1265
+ Ee.default = cr;
1266
+ function cr() {
1267
1267
  }
1268
- Object.defineProperty(Ee, "__esModule", {
1268
+ Object.defineProperty(Te, "__esModule", {
1269
1269
  value: !0
1270
1270
  });
1271
- Ee.default = void 0;
1272
- var Ae = St(Le), B = qe(dt), pr = qe(lt), q = F, le = re, ke = te, ge = qe(we);
1271
+ Te.default = void 0;
1272
+ var Ne = St(Le), B = qe(dt), ur = qe(lt), q = F, le = re, Ae = te, ge = qe(Ee);
1273
1273
  function qe(e) {
1274
1274
  return e && e.__esModule ? e : { default: e };
1275
1275
  }
@@ -1277,24 +1277,24 @@ function St(e, t) {
1277
1277
  if (typeof WeakMap == "function") var r = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap();
1278
1278
  return (St = function(a, i) {
1279
1279
  if (!i && a && a.__esModule) return a;
1280
- var p, l, f = { __proto__: null, default: a };
1281
- if (a === null || typeof a != "object" && typeof a != "function") return f;
1282
- if (p = i ? o : r) {
1283
- if (p.has(a)) return p.get(a);
1284
- p.set(a, f);
1285
- }
1286
- for (const y in a) y !== "default" && {}.hasOwnProperty.call(a, y) && ((l = (p = Object.defineProperty) && Object.getOwnPropertyDescriptor(a, y)) && (l.get || l.set) ? p(f, y, l) : f[y] = a[y]);
1287
- return f;
1280
+ var u, l, d = { __proto__: null, default: a };
1281
+ if (a === null || typeof a != "object" && typeof a != "function") return d;
1282
+ if (u = i ? o : r) {
1283
+ if (u.has(a)) return u.get(a);
1284
+ u.set(a, d);
1285
+ }
1286
+ for (const m in a) m !== "default" && {}.hasOwnProperty.call(a, m) && ((l = (u = Object.defineProperty) && Object.getOwnPropertyDescriptor(a, m)) && (l.get || l.set) ? u(d, m, l) : d[m] = a[m]);
1287
+ return d;
1288
1288
  })(e, t);
1289
1289
  }
1290
1290
  function H(e, t, r) {
1291
- return (t = hr(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
1291
+ return (t = fr(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
1292
1292
  }
1293
- function hr(e) {
1294
- var t = gr(e, "string");
1293
+ function fr(e) {
1294
+ var t = dr(e, "string");
1295
1295
  return typeof t == "symbol" ? t : t + "";
1296
1296
  }
1297
- function gr(e, t) {
1297
+ function dr(e, t) {
1298
1298
  if (typeof e != "object" || !e) return e;
1299
1299
  var r = e[Symbol.toPrimitive];
1300
1300
  if (r !== void 0) {
@@ -1316,7 +1316,7 @@ const Z = {
1316
1316
  stop: "mouseup"
1317
1317
  }
1318
1318
  };
1319
- let ce = Z.mouse, _e = class extends Ae.Component {
1319
+ let ce = Z.mouse, we = class extends Ne.Component {
1320
1320
  constructor() {
1321
1321
  super(...arguments), H(this, "dragging", !1), H(this, "lastX", NaN), H(this, "lastY", NaN), H(this, "touchIdentifier", null), H(this, "mounted", !1), H(this, "handleDragStart", (t) => {
1322
1322
  if (this.props.onMouseDown(t), !this.props.allowAnyClick && typeof t.button == "number" && t.button !== 0) return !1;
@@ -1334,10 +1334,10 @@ let ce = Z.mouse, _e = class extends Ae.Component {
1334
1334
  const i = (0, le.getControlPosition)(t, a, this);
1335
1335
  if (i == null) return;
1336
1336
  const {
1337
- x: p,
1337
+ x: u,
1338
1338
  y: l
1339
- } = i, f = (0, le.createCoreData)(this, p, l);
1340
- (0, ge.default)("DraggableCore: handleDragStart: %j", f), (0, ge.default)("calling", this.props.onStart), !(this.props.onStart(t, f) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, q.addUserSelectStyles)(o), this.dragging = !0, this.lastX = p, this.lastY = l, (0, q.addEvent)(o, ce.move, this.handleDrag), (0, q.addEvent)(o, ce.stop, this.handleDragStop));
1339
+ } = i, d = (0, le.createCoreData)(this, u, l);
1340
+ (0, ge.default)("DraggableCore: handleDragStart: %j", d), (0, ge.default)("calling", this.props.onStart), !(this.props.onStart(t, d) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, q.addUserSelectStyles)(o), this.dragging = !0, this.lastX = u, this.lastY = l, (0, q.addEvent)(o, ce.move, this.handleDrag), (0, q.addEvent)(o, ce.stop, this.handleDragStop));
1341
1341
  }), H(this, "handleDrag", (t) => {
1342
1342
  const r = (0, le.getControlPosition)(t, this.touchIdentifier, this);
1343
1343
  if (r == null) return;
@@ -1346,17 +1346,17 @@ let ce = Z.mouse, _e = class extends Ae.Component {
1346
1346
  y: a
1347
1347
  } = r;
1348
1348
  if (Array.isArray(this.props.grid)) {
1349
- let l = o - this.lastX, f = a - this.lastY;
1350
- if ([l, f] = (0, le.snapToGrid)(this.props.grid, l, f), !l && !f) return;
1351
- o = this.lastX + l, a = this.lastY + f;
1349
+ let l = o - this.lastX, d = a - this.lastY;
1350
+ if ([l, d] = (0, le.snapToGrid)(this.props.grid, l, d), !l && !d) return;
1351
+ o = this.lastX + l, a = this.lastY + d;
1352
1352
  }
1353
1353
  const i = (0, le.createCoreData)(this, o, a);
1354
1354
  if ((0, ge.default)("DraggableCore: handleDrag: %j", i), this.props.onDrag(t, i) === !1 || this.mounted === !1) {
1355
1355
  try {
1356
1356
  this.handleDragStop(new MouseEvent("mouseup"));
1357
1357
  } catch {
1358
- const f = document.createEvent("MouseEvents");
1359
- f.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), this.handleDragStop(f);
1358
+ const d = document.createEvent("MouseEvents");
1359
+ d.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), this.handleDragStop(d);
1360
1360
  }
1361
1361
  return;
1362
1362
  }
@@ -1370,8 +1370,8 @@ let ce = Z.mouse, _e = class extends Ae.Component {
1370
1370
  y: a
1371
1371
  } = r;
1372
1372
  if (Array.isArray(this.props.grid)) {
1373
- let f = o - this.lastX || 0, y = a - this.lastY || 0;
1374
- [f, y] = (0, le.snapToGrid)(this.props.grid, f, y), o = this.lastX + f, a = this.lastY + y;
1373
+ let d = o - this.lastX || 0, m = a - this.lastY || 0;
1374
+ [d, m] = (0, le.snapToGrid)(this.props.grid, d, m), o = this.lastX + d, a = this.lastY + m;
1375
1375
  }
1376
1376
  const i = (0, le.createCoreData)(this, o, a);
1377
1377
  if (this.props.onStop(t, i) === !1 || this.mounted === !1) return !1;
@@ -1402,10 +1402,10 @@ let ce = Z.mouse, _e = class extends Ae.Component {
1402
1402
  // the underlying DOM node ourselves. See the README for more information.
1403
1403
  findDOMNode() {
1404
1404
  var t, r, o;
1405
- return (t = this.props) != null && t.nodeRef ? (o = (r = this.props) == null ? void 0 : r.nodeRef) == null ? void 0 : o.current : pr.default.findDOMNode(this);
1405
+ return (t = this.props) != null && t.nodeRef ? (o = (r = this.props) == null ? void 0 : r.nodeRef) == null ? void 0 : o.current : ur.default.findDOMNode(this);
1406
1406
  }
1407
1407
  render() {
1408
- return /* @__PURE__ */ Ae.cloneElement(Ae.Children.only(this.props.children), {
1408
+ return /* @__PURE__ */ Ne.cloneElement(Ne.Children.only(this.props.children), {
1409
1409
  // Note: mouseMove handler is attached to document so it will still function
1410
1410
  // when the user drags quickly and leaves the bounds of the element.
1411
1411
  onMouseDown: this.onMouseDown,
@@ -1417,9 +1417,9 @@ let ce = Z.mouse, _e = class extends Ae.Component {
1417
1417
  });
1418
1418
  }
1419
1419
  };
1420
- Ee.default = _e;
1421
- H(_e, "displayName", "DraggableCore");
1422
- H(_e, "propTypes", {
1420
+ Te.default = we;
1421
+ H(we, "displayName", "DraggableCore");
1422
+ H(we, "propTypes", {
1423
1423
  /**
1424
1424
  * `allowAnyClick` allows dragging using any mouse button.
1425
1425
  * By default, we only accept the left button.
@@ -1546,11 +1546,11 @@ H(_e, "propTypes", {
1546
1546
  /**
1547
1547
  * These properties should be defined on the child, not here.
1548
1548
  */
1549
- className: ke.dontSetMe,
1550
- style: ke.dontSetMe,
1551
- transform: ke.dontSetMe
1549
+ className: Ae.dontSetMe,
1550
+ style: Ae.dontSetMe,
1551
+ transform: Ae.dontSetMe
1552
1552
  });
1553
- H(_e, "defaultProps", {
1553
+ H(we, "defaultProps", {
1554
1554
  allowAnyClick: !1,
1555
1555
  // by default only accept left click
1556
1556
  allowMobileScroll: !1,
@@ -1572,84 +1572,84 @@ H(_e, "defaultProps", {
1572
1572
  }), Object.defineProperty(e, "DraggableCore", {
1573
1573
  enumerable: !0,
1574
1574
  get: function() {
1575
- return f.default;
1575
+ return d.default;
1576
1576
  }
1577
1577
  }), e.default = void 0;
1578
- var t = _(Le), r = T(dt), o = T(lt), a = $t, i = F, p = re, l = te, f = T(Ee), y = T(we);
1579
- function T(g) {
1578
+ var t = C(Le), r = b(dt), o = b(lt), a = At, i = F, u = re, l = te, d = b(Te), m = b(Ee);
1579
+ function b(g) {
1580
1580
  return g && g.__esModule ? g : { default: g };
1581
1581
  }
1582
- function _(g, d) {
1583
- if (typeof WeakMap == "function") var w = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakMap();
1584
- return (_ = function(s, D) {
1585
- if (!D && s && s.__esModule) return s;
1582
+ function C(g, x) {
1583
+ if (typeof WeakMap == "function") var w = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap();
1584
+ return (C = function(s, O) {
1585
+ if (!O && s && s.__esModule) return s;
1586
1586
  var W, U, Y = { __proto__: null, default: s };
1587
1587
  if (s === null || typeof s != "object" && typeof s != "function") return Y;
1588
- if (W = D ? x : w) {
1588
+ if (W = O ? E : w) {
1589
1589
  if (W.has(s)) return W.get(s);
1590
1590
  W.set(s, Y);
1591
1591
  }
1592
1592
  for (const L in s) L !== "default" && {}.hasOwnProperty.call(s, L) && ((U = (W = Object.defineProperty) && Object.getOwnPropertyDescriptor(s, L)) && (U.get || U.set) ? W(Y, L, U) : Y[L] = s[L]);
1593
1593
  return Y;
1594
- })(g, d);
1594
+ })(g, x);
1595
1595
  }
1596
- function E() {
1597
- return E = Object.assign ? Object.assign.bind() : function(g) {
1598
- for (var d = 1; d < arguments.length; d++) {
1599
- var w = arguments[d];
1600
- for (var x in w) ({}).hasOwnProperty.call(w, x) && (g[x] = w[x]);
1596
+ function T() {
1597
+ return T = Object.assign ? Object.assign.bind() : function(g) {
1598
+ for (var x = 1; x < arguments.length; x++) {
1599
+ var w = arguments[x];
1600
+ for (var E in w) ({}).hasOwnProperty.call(w, E) && (g[E] = w[E]);
1601
1601
  }
1602
1602
  return g;
1603
- }, E.apply(null, arguments);
1603
+ }, T.apply(null, arguments);
1604
1604
  }
1605
- function j(g, d, w) {
1606
- return (d = I(d)) in g ? Object.defineProperty(g, d, { value: w, enumerable: !0, configurable: !0, writable: !0 }) : g[d] = w, g;
1605
+ function R(g, x, w) {
1606
+ return (x = I(x)) in g ? Object.defineProperty(g, x, { value: w, enumerable: !0, configurable: !0, writable: !0 }) : g[x] = w, g;
1607
1607
  }
1608
1608
  function I(g) {
1609
- var d = k(g, "string");
1610
- return typeof d == "symbol" ? d : d + "";
1609
+ var x = M(g, "string");
1610
+ return typeof x == "symbol" ? x : x + "";
1611
1611
  }
1612
- function k(g, d) {
1612
+ function M(g, x) {
1613
1613
  if (typeof g != "object" || !g) return g;
1614
1614
  var w = g[Symbol.toPrimitive];
1615
1615
  if (w !== void 0) {
1616
- var x = w.call(g, d);
1617
- if (typeof x != "object") return x;
1616
+ var E = w.call(g, x);
1617
+ if (typeof E != "object") return E;
1618
1618
  throw new TypeError("@@toPrimitive must return a primitive value.");
1619
1619
  }
1620
- return (d === "string" ? String : Number)(g);
1620
+ return (x === "string" ? String : Number)(g);
1621
1621
  }
1622
- class O extends t.Component {
1622
+ class $ extends t.Component {
1623
1623
  // React 16.3+
1624
1624
  // Arity (props, state)
1625
- static getDerivedStateFromProps(d, w) {
1625
+ static getDerivedStateFromProps(x, w) {
1626
1626
  let {
1627
- position: x
1628
- } = d, {
1627
+ position: E
1628
+ } = x, {
1629
1629
  prevPropsPosition: s
1630
1630
  } = w;
1631
- return x && (!s || x.x !== s.x || x.y !== s.y) ? ((0, y.default)("Draggable: getDerivedStateFromProps %j", {
1632
- position: x,
1631
+ return E && (!s || E.x !== s.x || E.y !== s.y) ? ((0, m.default)("Draggable: getDerivedStateFromProps %j", {
1632
+ position: E,
1633
1633
  prevPropsPosition: s
1634
1634
  }), {
1635
- x: x.x,
1636
- y: x.y,
1635
+ x: E.x,
1636
+ y: E.y,
1637
1637
  prevPropsPosition: {
1638
- ...x
1638
+ ...E
1639
1639
  }
1640
1640
  }) : null;
1641
1641
  }
1642
- constructor(d) {
1643
- super(d), j(this, "onDragStart", (w, x) => {
1644
- if ((0, y.default)("Draggable: onDragStart: %j", x), this.props.onStart(w, (0, p.createDraggableData)(this, x)) === !1) return !1;
1642
+ constructor(x) {
1643
+ super(x), R(this, "onDragStart", (w, E) => {
1644
+ if ((0, m.default)("Draggable: onDragStart: %j", E), this.props.onStart(w, (0, u.createDraggableData)(this, E)) === !1) return !1;
1645
1645
  this.setState({
1646
1646
  dragging: !0,
1647
1647
  dragged: !0
1648
1648
  });
1649
- }), j(this, "onDrag", (w, x) => {
1649
+ }), R(this, "onDrag", (w, E) => {
1650
1650
  if (!this.state.dragging) return !1;
1651
- (0, y.default)("Draggable: onDrag: %j", x);
1652
- const s = (0, p.createDraggableData)(this, x), D = {
1651
+ (0, m.default)("Draggable: onDrag: %j", E);
1652
+ const s = (0, u.createDraggableData)(this, E), O = {
1653
1653
  x: s.x,
1654
1654
  y: s.y,
1655
1655
  slackX: 0,
@@ -1659,17 +1659,17 @@ H(_e, "defaultProps", {
1659
1659
  const {
1660
1660
  x: U,
1661
1661
  y: Y
1662
- } = D;
1663
- D.x += this.state.slackX, D.y += this.state.slackY;
1664
- const [L, ne] = (0, p.getBoundPosition)(this, D.x, D.y);
1665
- D.x = L, D.y = ne, D.slackX = this.state.slackX + (U - D.x), D.slackY = this.state.slackY + (Y - D.y), s.x = D.x, s.y = D.y, s.deltaX = D.x - this.state.x, s.deltaY = D.y - this.state.y;
1662
+ } = O;
1663
+ O.x += this.state.slackX, O.y += this.state.slackY;
1664
+ const [L, ne] = (0, u.getBoundPosition)(this, O.x, O.y);
1665
+ O.x = L, O.y = ne, O.slackX = this.state.slackX + (U - O.x), O.slackY = this.state.slackY + (Y - O.y), s.x = O.x, s.y = O.y, s.deltaX = O.x - this.state.x, s.deltaY = O.y - this.state.y;
1666
1666
  }
1667
1667
  if (this.props.onDrag(w, s) === !1) return !1;
1668
- this.setState(D);
1669
- }), j(this, "onDragStop", (w, x) => {
1670
- if (!this.state.dragging || this.props.onStop(w, (0, p.createDraggableData)(this, x)) === !1) return !1;
1671
- (0, y.default)("Draggable: onDragStop: %j", x);
1672
- const D = {
1668
+ this.setState(O);
1669
+ }), R(this, "onDragStop", (w, E) => {
1670
+ if (!this.state.dragging || this.props.onStop(w, (0, u.createDraggableData)(this, E)) === !1) return !1;
1671
+ (0, m.default)("Draggable: onDragStop: %j", E);
1672
+ const O = {
1673
1673
  dragging: !1,
1674
1674
  slackX: 0,
1675
1675
  slackY: 0
@@ -1679,26 +1679,26 @@ H(_e, "defaultProps", {
1679
1679
  x: U,
1680
1680
  y: Y
1681
1681
  } = this.props.position;
1682
- D.x = U, D.y = Y;
1682
+ O.x = U, O.y = Y;
1683
1683
  }
1684
- this.setState(D);
1684
+ this.setState(O);
1685
1685
  }), this.state = {
1686
1686
  // Whether or not we are currently dragging.
1687
1687
  dragging: !1,
1688
1688
  // Whether or not we have been dragged before.
1689
1689
  dragged: !1,
1690
1690
  // Current transform x and y.
1691
- x: d.position ? d.position.x : d.defaultPosition.x,
1692
- y: d.position ? d.position.y : d.defaultPosition.y,
1691
+ x: x.position ? x.position.x : x.defaultPosition.x,
1692
+ y: x.position ? x.position.y : x.defaultPosition.y,
1693
1693
  prevPropsPosition: {
1694
- ...d.position
1694
+ ...x.position
1695
1695
  },
1696
1696
  // Used for compensating for out-of-bounds drags
1697
1697
  slackX: 0,
1698
1698
  slackY: 0,
1699
1699
  // Can only determine if SVG after mounting
1700
1700
  isElementSVG: !1
1701
- }, d.position && !(d.onDrag || d.onStop) && console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.");
1701
+ }, x.position && !(x.onDrag || x.onStop) && console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.");
1702
1702
  }
1703
1703
  componentDidMount() {
1704
1704
  typeof window.SVGElement < "u" && this.findDOMNode() instanceof window.SVGElement && this.setState({
@@ -1713,16 +1713,16 @@ H(_e, "defaultProps", {
1713
1713
  // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
1714
1714
  // the underlying DOM node ourselves. See the README for more information.
1715
1715
  findDOMNode() {
1716
- var d, w;
1717
- return ((w = (d = this.props) == null ? void 0 : d.nodeRef) == null ? void 0 : w.current) ?? o.default.findDOMNode(this);
1716
+ var x, w;
1717
+ return ((w = (x = this.props) == null ? void 0 : x.nodeRef) == null ? void 0 : w.current) ?? o.default.findDOMNode(this);
1718
1718
  }
1719
1719
  render() {
1720
1720
  const {
1721
- axis: d,
1721
+ axis: x,
1722
1722
  bounds: w,
1723
- children: x,
1723
+ children: E,
1724
1724
  defaultPosition: s,
1725
- defaultClassName: D,
1725
+ defaultClassName: O,
1726
1726
  defaultClassNameDragging: W,
1727
1727
  defaultClassNameDragged: U,
1728
1728
  position: Y,
@@ -1733,32 +1733,32 @@ H(_e, "defaultProps", {
1733
1733
  let ae = {}, K = null;
1734
1734
  const X = !!!Y || this.state.dragging, V = Y || s, Q = {
1735
1735
  // Set left if horizontal drag is enabled
1736
- x: (0, p.canDragX)(this) && X ? this.state.x : V.x,
1736
+ x: (0, u.canDragX)(this) && X ? this.state.x : V.x,
1737
1737
  // Set top if vertical drag is enabled
1738
- y: (0, p.canDragY)(this) && X ? this.state.y : V.y
1738
+ y: (0, u.canDragY)(this) && X ? this.state.y : V.y
1739
1739
  };
1740
1740
  this.state.isElementSVG ? K = (0, i.createSVGTransform)(Q, L) : ae = (0, i.createCSSTransform)(Q, L);
1741
- const ie = (0, a.clsx)(x.props.className || "", D, {
1741
+ const ie = (0, a.clsx)(E.props.className || "", O, {
1742
1742
  [W]: this.state.dragging,
1743
1743
  [U]: this.state.dragged
1744
1744
  });
1745
- return /* @__PURE__ */ t.createElement(f.default, E({}, oe, {
1745
+ return /* @__PURE__ */ t.createElement(d.default, T({}, oe, {
1746
1746
  onStart: this.onDragStart,
1747
1747
  onDrag: this.onDrag,
1748
1748
  onStop: this.onDragStop
1749
- }), /* @__PURE__ */ t.cloneElement(t.Children.only(x), {
1749
+ }), /* @__PURE__ */ t.cloneElement(t.Children.only(E), {
1750
1750
  className: ie,
1751
1751
  style: {
1752
- ...x.props.style,
1752
+ ...E.props.style,
1753
1753
  ...ae
1754
1754
  },
1755
1755
  transform: K
1756
1756
  }));
1757
1757
  }
1758
1758
  }
1759
- e.default = O, j(O, "displayName", "Draggable"), j(O, "propTypes", {
1759
+ e.default = $, R($, "displayName", "Draggable"), R($, "propTypes", {
1760
1760
  // Accepts all props <DraggableCore> accepts.
1761
- ...f.default.propTypes,
1761
+ ...d.default.propTypes,
1762
1762
  /**
1763
1763
  * `axis` determines which axis the draggable can move.
1764
1764
  *
@@ -1863,8 +1863,8 @@ H(_e, "defaultProps", {
1863
1863
  className: l.dontSetMe,
1864
1864
  style: l.dontSetMe,
1865
1865
  transform: l.dontSetMe
1866
- }), j(O, "defaultProps", {
1867
- ...f.default.defaultProps,
1866
+ }), R($, "defaultProps", {
1867
+ ...d.default.defaultProps,
1868
1868
  axis: "both",
1869
1869
  bounds: !1,
1870
1870
  defaultClassName: "react-draggable",
@@ -1879,39 +1879,39 @@ H(_e, "defaultProps", {
1879
1879
  })(ct);
1880
1880
  const {
1881
1881
  default: xt,
1882
- DraggableCore: mr
1882
+ DraggableCore: pr
1883
1883
  } = ct;
1884
- Te.exports = xt;
1885
- Te.exports.default = xt;
1886
- Te.exports.DraggableCore = mr;
1887
- var yr = Te.exports;
1888
- const vr = /* @__PURE__ */ _t(yr), br = ({
1884
+ xe.exports = xt;
1885
+ xe.exports.default = xt;
1886
+ xe.exports.DraggableCore = pr;
1887
+ var hr = xe.exports;
1888
+ const gr = /* @__PURE__ */ Tt(hr), mr = ({
1889
1889
  title: e,
1890
1890
  collapsed: t = !1,
1891
1891
  draggable: r = !0,
1892
1892
  position: o = { x: 20, y: 20 },
1893
1893
  children: a
1894
1894
  }) => {
1895
- const [i, p] = ue(t), l = xe(null);
1896
- return /* @__PURE__ */ u.jsx(
1897
- vr,
1895
+ const [i, u] = ue(t), l = Se(null);
1896
+ return /* @__PURE__ */ f.jsx(
1897
+ gr,
1898
1898
  {
1899
1899
  nodeRef: l,
1900
1900
  handle: ".font-controls-header",
1901
1901
  disabled: !r,
1902
1902
  defaultPosition: o,
1903
1903
  bounds: "parent",
1904
- children: /* @__PURE__ */ u.jsxs("div", { ref: l, className: "font-controls-panel", children: [
1905
- /* @__PURE__ */ u.jsxs("div", { className: "font-controls-header", children: [
1906
- /* @__PURE__ */ u.jsx("h3", { className: "font-controls-title", children: e }),
1907
- /* @__PURE__ */ u.jsx(
1904
+ children: /* @__PURE__ */ f.jsxs("div", { ref: l, className: "font-controls-panel", children: [
1905
+ /* @__PURE__ */ f.jsxs("div", { className: "font-controls-header", children: [
1906
+ /* @__PURE__ */ f.jsx("h3", { className: "font-controls-title", children: e }),
1907
+ /* @__PURE__ */ f.jsx(
1908
1908
  "button",
1909
1909
  {
1910
1910
  className: `font-controls-toggle ${i ? "collapsed" : ""}`,
1911
- onClick: () => p(!i),
1911
+ onClick: () => u(!i),
1912
1912
  type: "button",
1913
1913
  "aria-label": i ? "Expand" : "Collapse",
1914
- children: /* @__PURE__ */ u.jsx(
1914
+ children: /* @__PURE__ */ f.jsx(
1915
1915
  "svg",
1916
1916
  {
1917
1917
  viewBox: "0 0 24 24",
@@ -1920,42 +1920,42 @@ const vr = /* @__PURE__ */ _t(yr), br = ({
1920
1920
  strokeWidth: "2",
1921
1921
  strokeLinecap: "round",
1922
1922
  strokeLinejoin: "round",
1923
- children: /* @__PURE__ */ u.jsx("polyline", { points: "6 9 12 15 18 9" })
1923
+ children: /* @__PURE__ */ f.jsx("polyline", { points: "6 9 12 15 18 9" })
1924
1924
  }
1925
1925
  )
1926
1926
  }
1927
1927
  )
1928
1928
  ] }),
1929
- !i && /* @__PURE__ */ u.jsx("div", { className: "font-controls-content", children: a })
1929
+ !i && /* @__PURE__ */ f.jsx("div", { className: "font-controls-content", children: a })
1930
1930
  ] })
1931
1931
  }
1932
1932
  );
1933
- }, Sr = ({
1933
+ }, yr = ({
1934
1934
  value: e,
1935
1935
  onChange: t,
1936
1936
  fontFamilies: r
1937
1937
  }) => {
1938
- const [o, a] = ue(!1), [i, p] = ue(""), [l, f] = ue(-1), y = xe(null), T = xe(null), _ = xe(null), E = r.filter(
1938
+ const [o, a] = ue(!1), [i, u] = ue(""), [l, d] = ue(-1), m = Se(null), b = Se(null), C = Se(null), T = r.filter(
1939
1939
  (g) => g.toLowerCase().includes(i.toLowerCase())
1940
1940
  );
1941
1941
  me(() => {
1942
- const g = (d) => {
1943
- y.current && !y.current.contains(d.target) && (a(!1), p(""), f(-1));
1942
+ const g = (x) => {
1943
+ m.current && !m.current.contains(x.target) && (a(!1), u(""), d(-1));
1944
1944
  };
1945
1945
  return o && document.addEventListener("mousedown", g), () => {
1946
1946
  document.removeEventListener("mousedown", g);
1947
1947
  };
1948
1948
  }, [o]), me(() => {
1949
- if (l >= 0 && _.current) {
1950
- const g = _.current.children[l];
1949
+ if (l >= 0 && C.current) {
1950
+ const g = C.current.children[l];
1951
1951
  g && g.scrollIntoView({
1952
1952
  block: "nearest",
1953
1953
  behavior: "smooth"
1954
1954
  });
1955
1955
  }
1956
1956
  }, [l]);
1957
- const j = (g) => {
1958
- t(g), a(!1), p(""), f(-1);
1957
+ const R = (g) => {
1958
+ t(g), a(!1), u(""), d(-1);
1959
1959
  }, I = (g) => {
1960
1960
  if (!o && (g.key === "Enter" || g.key === "ArrowDown")) {
1961
1961
  g.preventDefault(), a(!0);
@@ -1964,65 +1964,65 @@ const vr = /* @__PURE__ */ _t(yr), br = ({
1964
1964
  if (o)
1965
1965
  switch (g.key) {
1966
1966
  case "ArrowDown":
1967
- g.preventDefault(), f(
1968
- (d) => d < E.length - 1 ? d + 1 : d
1967
+ g.preventDefault(), d(
1968
+ (x) => x < T.length - 1 ? x + 1 : x
1969
1969
  );
1970
1970
  break;
1971
1971
  case "ArrowUp":
1972
- g.preventDefault(), f((d) => d > 0 ? d - 1 : 0);
1972
+ g.preventDefault(), d((x) => x > 0 ? x - 1 : 0);
1973
1973
  break;
1974
1974
  case "Enter":
1975
- g.preventDefault(), l >= 0 && E[l] && j(E[l]);
1975
+ g.preventDefault(), l >= 0 && T[l] && R(T[l]);
1976
1976
  break;
1977
1977
  case "Escape":
1978
- g.preventDefault(), a(!1), p(""), f(-1);
1978
+ g.preventDefault(), a(!1), u(""), d(-1);
1979
1979
  break;
1980
1980
  }
1981
- }, k = (g) => {
1982
- p(g.target.value), f(-1), o || a(!0);
1983
- }, O = () => {
1984
- a(!0), T.current && T.current.select();
1981
+ }, M = (g) => {
1982
+ u(g.target.value), d(-1), o || a(!0);
1983
+ }, $ = () => {
1984
+ a(!0), b.current && b.current.select();
1985
1985
  };
1986
- return /* @__PURE__ */ u.jsxs("div", { className: "font-control-group", ref: y, children: [
1987
- /* @__PURE__ */ u.jsx("label", { className: "font-control-label", children: "Font Family" }),
1988
- /* @__PURE__ */ u.jsxs("div", { className: "font-control-searchable-select", children: [
1989
- /* @__PURE__ */ u.jsx(
1986
+ return /* @__PURE__ */ f.jsxs("div", { className: "font-control-group", ref: m, children: [
1987
+ /* @__PURE__ */ f.jsx("label", { className: "font-control-label", children: "Font Family" }),
1988
+ /* @__PURE__ */ f.jsxs("div", { className: "font-control-searchable-select", children: [
1989
+ /* @__PURE__ */ f.jsx(
1990
1990
  "input",
1991
1991
  {
1992
- ref: T,
1992
+ ref: b,
1993
1993
  type: "text",
1994
1994
  className: "font-control-input font-control-search-input",
1995
1995
  value: o ? i : e,
1996
- onChange: k,
1997
- onClick: O,
1996
+ onChange: M,
1997
+ onClick: $,
1998
1998
  onKeyDown: I,
1999
1999
  placeholder: "Search fonts...",
2000
2000
  style: { fontFamily: o ? "inherit" : e }
2001
2001
  }
2002
2002
  ),
2003
- o && /* @__PURE__ */ u.jsx("div", { className: "font-control-dropdown", ref: _, children: E.length > 0 ? E.map((g, d) => /* @__PURE__ */ u.jsx(
2003
+ o && /* @__PURE__ */ f.jsx("div", { className: "font-control-dropdown", ref: C, children: T.length > 0 ? T.map((g, x) => /* @__PURE__ */ f.jsx(
2004
2004
  "div",
2005
2005
  {
2006
- className: `font-control-dropdown-item ${d === l ? "highlighted" : ""} ${g === e ? "selected" : ""}`,
2007
- onClick: () => j(g),
2008
- onMouseEnter: () => f(d),
2006
+ className: `font-control-dropdown-item ${x === l ? "highlighted" : ""} ${g === e ? "selected" : ""}`,
2007
+ onClick: () => R(g),
2008
+ onMouseEnter: () => d(x),
2009
2009
  style: { fontFamily: g },
2010
2010
  children: g
2011
2011
  },
2012
2012
  g
2013
- )) : /* @__PURE__ */ u.jsx("div", { className: "font-control-dropdown-item no-results", children: "No fonts found" }) })
2013
+ )) : /* @__PURE__ */ f.jsx("div", { className: "font-control-dropdown-item no-results", children: "No fonts found" }) })
2014
2014
  ] })
2015
2015
  ] });
2016
- }, xr = ({
2016
+ }, vr = ({
2017
2017
  value: e,
2018
2018
  onChange: t,
2019
2019
  min: r,
2020
2020
  max: o,
2021
2021
  step: a
2022
- }) => /* @__PURE__ */ u.jsxs("div", { className: "font-control-group", children: [
2023
- /* @__PURE__ */ u.jsx("label", { className: "font-control-label", children: "Font Size" }),
2024
- /* @__PURE__ */ u.jsxs("div", { className: "font-control-slider-container", children: [
2025
- /* @__PURE__ */ u.jsx(
2022
+ }) => /* @__PURE__ */ f.jsxs("div", { className: "font-control-group", children: [
2023
+ /* @__PURE__ */ f.jsx("label", { className: "font-control-label", children: "Font Size" }),
2024
+ /* @__PURE__ */ f.jsxs("div", { className: "font-control-slider-container", children: [
2025
+ /* @__PURE__ */ f.jsx(
2026
2026
  "input",
2027
2027
  {
2028
2028
  type: "range",
@@ -2034,7 +2034,7 @@ const vr = /* @__PURE__ */ _t(yr), br = ({
2034
2034
  onChange: (i) => t(Number(i.target.value))
2035
2035
  }
2036
2036
  ),
2037
- /* @__PURE__ */ u.jsx(
2037
+ /* @__PURE__ */ f.jsx(
2038
2038
  "input",
2039
2039
  {
2040
2040
  type: "number",
@@ -2047,7 +2047,7 @@ const vr = /* @__PURE__ */ _t(yr), br = ({
2047
2047
  }
2048
2048
  )
2049
2049
  ] })
2050
- ] }), Tr = [
2050
+ ] }), br = [
2051
2051
  { value: 100, label: "Thin" },
2052
2052
  { value: 200, label: "Extra Light" },
2053
2053
  { value: 300, label: "Light" },
@@ -2057,18 +2057,18 @@ const vr = /* @__PURE__ */ _t(yr), br = ({
2057
2057
  { value: 700, label: "Bold" },
2058
2058
  { value: 800, label: "Extra Bold" },
2059
2059
  { value: 900, label: "Black" }
2060
- ], Er = ({
2060
+ ], Sr = ({
2061
2061
  value: e,
2062
2062
  onChange: t
2063
- }) => /* @__PURE__ */ u.jsxs("div", { className: "font-control-group", children: [
2064
- /* @__PURE__ */ u.jsx("label", { className: "font-control-label", children: "Font Weight" }),
2065
- /* @__PURE__ */ u.jsx(
2063
+ }) => /* @__PURE__ */ f.jsxs("div", { className: "font-control-group", children: [
2064
+ /* @__PURE__ */ f.jsx("label", { className: "font-control-label", children: "Font Weight" }),
2065
+ /* @__PURE__ */ f.jsx(
2066
2066
  "select",
2067
2067
  {
2068
2068
  className: "font-control-input font-control-select",
2069
2069
  value: e,
2070
2070
  onChange: (r) => t(Number(r.target.value)),
2071
- children: Tr.map((r) => /* @__PURE__ */ u.jsxs("option", { value: r.value, children: [
2071
+ children: br.map((r) => /* @__PURE__ */ f.jsxs("option", { value: r.value, children: [
2072
2072
  r.label,
2073
2073
  " (",
2074
2074
  r.value,
@@ -2076,13 +2076,13 @@ const vr = /* @__PURE__ */ _t(yr), br = ({
2076
2076
  ] }, r.value))
2077
2077
  }
2078
2078
  )
2079
- ] }), wr = ({
2079
+ ] }), xr = ({
2080
2080
  value: e,
2081
2081
  onChange: t
2082
- }) => /* @__PURE__ */ u.jsxs("div", { className: "font-control-group", children: [
2083
- /* @__PURE__ */ u.jsx("label", { className: "font-control-label", children: "Line Height" }),
2084
- /* @__PURE__ */ u.jsxs("div", { className: "font-control-slider-container", children: [
2085
- /* @__PURE__ */ u.jsx(
2082
+ }) => /* @__PURE__ */ f.jsxs("div", { className: "font-control-group", children: [
2083
+ /* @__PURE__ */ f.jsx("label", { className: "font-control-label", children: "Line Height" }),
2084
+ /* @__PURE__ */ f.jsxs("div", { className: "font-control-slider-container", children: [
2085
+ /* @__PURE__ */ f.jsx(
2086
2086
  "input",
2087
2087
  {
2088
2088
  type: "range",
@@ -2094,7 +2094,7 @@ const vr = /* @__PURE__ */ _t(yr), br = ({
2094
2094
  onChange: (r) => t(Number(r.target.value))
2095
2095
  }
2096
2096
  ),
2097
- /* @__PURE__ */ u.jsx(
2097
+ /* @__PURE__ */ f.jsx(
2098
2098
  "input",
2099
2099
  {
2100
2100
  type: "number",
@@ -2107,13 +2107,13 @@ const vr = /* @__PURE__ */ _t(yr), br = ({
2107
2107
  }
2108
2108
  )
2109
2109
  ] })
2110
- ] }), _r = ({
2110
+ ] }), Tr = ({
2111
2111
  value: e,
2112
2112
  onChange: t
2113
- }) => /* @__PURE__ */ u.jsxs("div", { className: "font-control-group", children: [
2114
- /* @__PURE__ */ u.jsx("label", { className: "font-control-label", children: "Letter Spacing" }),
2115
- /* @__PURE__ */ u.jsxs("div", { className: "font-control-slider-container", children: [
2116
- /* @__PURE__ */ u.jsx(
2113
+ }) => /* @__PURE__ */ f.jsxs("div", { className: "font-control-group", children: [
2114
+ /* @__PURE__ */ f.jsx("label", { className: "font-control-label", children: "Letter Spacing" }),
2115
+ /* @__PURE__ */ f.jsxs("div", { className: "font-control-slider-container", children: [
2116
+ /* @__PURE__ */ f.jsx(
2117
2117
  "input",
2118
2118
  {
2119
2119
  type: "range",
@@ -2125,7 +2125,7 @@ const vr = /* @__PURE__ */ _t(yr), br = ({
2125
2125
  onChange: (r) => t(Number(r.target.value))
2126
2126
  }
2127
2127
  ),
2128
- /* @__PURE__ */ u.jsx(
2128
+ /* @__PURE__ */ f.jsx(
2129
2129
  "input",
2130
2130
  {
2131
2131
  type: "number",
@@ -2138,32 +2138,32 @@ const vr = /* @__PURE__ */ _t(yr), br = ({
2138
2138
  }
2139
2139
  )
2140
2140
  ] })
2141
- ] }), Cr = [
2141
+ ] }), Er = [
2142
2142
  { value: "none", label: "None" },
2143
2143
  { value: "uppercase", label: "UPPERCASE" },
2144
2144
  { value: "lowercase", label: "lowercase" },
2145
2145
  { value: "capitalize", label: "Capitalize" }
2146
- ], Pr = ({
2146
+ ], wr = ({
2147
2147
  value: e,
2148
2148
  onChange: t
2149
- }) => /* @__PURE__ */ u.jsxs("div", { className: "font-control-group", children: [
2150
- /* @__PURE__ */ u.jsx("label", { className: "font-control-label", children: "Text Transform" }),
2151
- /* @__PURE__ */ u.jsx(
2149
+ }) => /* @__PURE__ */ f.jsxs("div", { className: "font-control-group", children: [
2150
+ /* @__PURE__ */ f.jsx("label", { className: "font-control-label", children: "Text Transform" }),
2151
+ /* @__PURE__ */ f.jsx(
2152
2152
  "select",
2153
2153
  {
2154
2154
  className: "font-control-input font-control-select",
2155
2155
  value: e,
2156
2156
  onChange: (r) => t(r.target.value),
2157
- children: Cr.map((r) => /* @__PURE__ */ u.jsx("option", { value: r.value, children: r.label }, r.value))
2157
+ children: Er.map((r) => /* @__PURE__ */ f.jsx("option", { value: r.value, children: r.label }, r.value))
2158
2158
  }
2159
2159
  )
2160
- ] }), jr = ({
2160
+ ] }), _r = ({
2161
2161
  value: e,
2162
2162
  onChange: t
2163
- }) => /* @__PURE__ */ u.jsxs("div", { className: "font-control-group", children: [
2164
- /* @__PURE__ */ u.jsx("label", { className: "font-control-label", children: "Text Color" }),
2165
- /* @__PURE__ */ u.jsxs("div", { className: "font-control-color-input", children: [
2166
- /* @__PURE__ */ u.jsx("div", { className: "font-control-color-preview", children: /* @__PURE__ */ u.jsx(
2163
+ }) => /* @__PURE__ */ f.jsxs("div", { className: "font-control-group", children: [
2164
+ /* @__PURE__ */ f.jsx("label", { className: "font-control-label", children: "Text Color" }),
2165
+ /* @__PURE__ */ f.jsxs("div", { className: "font-control-color-input", children: [
2166
+ /* @__PURE__ */ f.jsx("div", { className: "font-control-color-preview", children: /* @__PURE__ */ f.jsx(
2167
2167
  "input",
2168
2168
  {
2169
2169
  type: "color",
@@ -2171,7 +2171,7 @@ const vr = /* @__PURE__ */ _t(yr), br = ({
2171
2171
  onChange: (r) => t(r.target.value)
2172
2172
  }
2173
2173
  ) }),
2174
- /* @__PURE__ */ u.jsx(
2174
+ /* @__PURE__ */ f.jsx(
2175
2175
  "input",
2176
2176
  {
2177
2177
  type: "text",
@@ -2182,17 +2182,17 @@ const vr = /* @__PURE__ */ _t(yr), br = ({
2182
2182
  }
2183
2183
  )
2184
2184
  ] })
2185
- ] }), Rr = [
2185
+ ] }), Cr = [
2186
2186
  { value: "left", icon: "⬅" },
2187
2187
  { value: "center", icon: "↔" },
2188
2188
  { value: "right", icon: "➡" },
2189
2189
  { value: "justify", icon: "⬌" }
2190
- ], Or = ({
2190
+ ], Pr = ({
2191
2191
  value: e,
2192
2192
  onChange: t
2193
- }) => /* @__PURE__ */ u.jsxs("div", { className: "font-control-group", children: [
2194
- /* @__PURE__ */ u.jsx("label", { className: "font-control-label", children: "Text Align" }),
2195
- /* @__PURE__ */ u.jsx("div", { className: "font-control-button-group", children: Rr.map((r) => /* @__PURE__ */ u.jsx(
2193
+ }) => /* @__PURE__ */ f.jsxs("div", { className: "font-control-group", children: [
2194
+ /* @__PURE__ */ f.jsx("label", { className: "font-control-label", children: "Text Align" }),
2195
+ /* @__PURE__ */ f.jsx("div", { className: "font-control-button-group", children: Cr.map((r) => /* @__PURE__ */ f.jsx(
2196
2196
  "button",
2197
2197
  {
2198
2198
  className: `font-control-button ${e === r.value ? "active" : ""}`,
@@ -2202,7 +2202,7 @@ const vr = /* @__PURE__ */ _t(yr), br = ({
2202
2202
  },
2203
2203
  r.value
2204
2204
  )) })
2205
- ] }), Me = ({
2205
+ ] }), ke = ({
2206
2206
  title: e,
2207
2207
  code: t,
2208
2208
  language: r = "css"
@@ -2210,33 +2210,33 @@ const vr = /* @__PURE__ */ _t(yr), br = ({
2210
2210
  const [o, a] = ue(!1), i = async () => {
2211
2211
  try {
2212
2212
  await navigator.clipboard.writeText(t), a(!0), setTimeout(() => a(!1), 2e3);
2213
- } catch (p) {
2214
- console.error("Failed to copy:", p);
2213
+ } catch (u) {
2214
+ console.error("Failed to copy:", u);
2215
2215
  }
2216
2216
  };
2217
- return /* @__PURE__ */ u.jsxs("div", { className: "font-control-code-block", children: [
2218
- /* @__PURE__ */ u.jsxs("div", { className: "font-control-code-header", children: [
2219
- /* @__PURE__ */ u.jsx("span", { className: "font-control-code-title", children: e }),
2220
- /* @__PURE__ */ u.jsx(
2217
+ return /* @__PURE__ */ f.jsxs("div", { className: "font-control-code-block", children: [
2218
+ /* @__PURE__ */ f.jsxs("div", { className: "font-control-code-header", children: [
2219
+ /* @__PURE__ */ f.jsx("span", { className: "font-control-code-title", children: e }),
2220
+ /* @__PURE__ */ f.jsx(
2221
2221
  "button",
2222
2222
  {
2223
2223
  className: "font-control-copy-button",
2224
2224
  onClick: i,
2225
2225
  type: "button",
2226
- children: o ? /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
2227
- /* @__PURE__ */ u.jsx(
2226
+ children: o ? /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
2227
+ /* @__PURE__ */ f.jsx(
2228
2228
  "svg",
2229
2229
  {
2230
2230
  viewBox: "0 0 24 24",
2231
2231
  fill: "none",
2232
2232
  stroke: "currentColor",
2233
2233
  strokeWidth: "2",
2234
- children: /* @__PURE__ */ u.jsx("polyline", { points: "20 6 9 17 4 12" })
2234
+ children: /* @__PURE__ */ f.jsx("polyline", { points: "20 6 9 17 4 12" })
2235
2235
  }
2236
2236
  ),
2237
2237
  "Copied!"
2238
- ] }) : /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
2239
- /* @__PURE__ */ u.jsxs(
2238
+ ] }) : /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
2239
+ /* @__PURE__ */ f.jsxs(
2240
2240
  "svg",
2241
2241
  {
2242
2242
  viewBox: "0 0 24 24",
@@ -2244,8 +2244,8 @@ const vr = /* @__PURE__ */ _t(yr), br = ({
2244
2244
  stroke: "currentColor",
2245
2245
  strokeWidth: "2",
2246
2246
  children: [
2247
- /* @__PURE__ */ u.jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
2248
- /* @__PURE__ */ u.jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
2247
+ /* @__PURE__ */ f.jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
2248
+ /* @__PURE__ */ f.jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
2249
2249
  ]
2250
2250
  }
2251
2251
  ),
@@ -2254,25 +2254,25 @@ const vr = /* @__PURE__ */ _t(yr), br = ({
2254
2254
  }
2255
2255
  )
2256
2256
  ] }),
2257
- /* @__PURE__ */ u.jsx("pre", { className: "font-control-code-content", children: /* @__PURE__ */ u.jsx("code", { className: `language-${r}`, children: t }) })
2257
+ /* @__PURE__ */ f.jsx("pre", { className: "font-control-code-content", children: /* @__PURE__ */ f.jsx("code", { className: `language-${r}`, children: t }) })
2258
2258
  ] });
2259
2259
  }, it = /* @__PURE__ */ new Set();
2260
- function Dr(e) {
2260
+ function jr(e) {
2261
2261
  if (it.has(e))
2262
2262
  return;
2263
2263
  const t = document.createElement("link");
2264
2264
  t.rel = "stylesheet", t.href = `https://fonts.googleapis.com/css2?family=${e.replace(/ /g, "+")}:wght@100;200;300;400;500;600;700;800;900&display=swap`, document.head.appendChild(t), it.add(e);
2265
2265
  }
2266
- function Nr(e) {
2266
+ function Rr(e) {
2267
2267
  if (!document.querySelector('link[href*="fonts.googleapis.com"]')) {
2268
2268
  const t = document.createElement("link");
2269
2269
  t.rel = "preconnect", t.href = "https://fonts.googleapis.com";
2270
2270
  const r = document.createElement("link");
2271
2271
  r.rel = "preconnect", r.href = "https://fonts.gstatic.com", r.crossOrigin = "anonymous", document.head.appendChild(t), document.head.appendChild(r);
2272
2272
  }
2273
- e.forEach(Dr);
2273
+ e.forEach(jr);
2274
2274
  }
2275
- function Ar(e) {
2275
+ function Or(e) {
2276
2276
  return [
2277
2277
  "Arial",
2278
2278
  "Helvetica",
@@ -2284,7 +2284,7 @@ function Ar(e) {
2284
2284
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
2285
2285
  <link href="${`https://fonts.googleapis.com/css2?family=${e.replace(/ /g, "+")}:wght@100;200;300;400;500;600;700;800;900&display=swap`}" rel="stylesheet">`;
2286
2286
  }
2287
- function kr(e) {
2287
+ function Dr(e) {
2288
2288
  return `<h1 style={{
2289
2289
  fontFamily: '${e.fontFamily}',
2290
2290
  fontSize: '${e.fontSize}px',
@@ -2298,7 +2298,7 @@ function kr(e) {
2298
2298
  Your Text Here
2299
2299
  </h1>`;
2300
2300
  }
2301
- function Mr(e) {
2301
+ function Nr(e) {
2302
2302
  return `.my-text {
2303
2303
  font-family: '${e.fontFamily}', sans-serif;
2304
2304
  font-size: ${e.fontSize}px;
@@ -2310,30 +2310,7 @@ function Mr(e) {
2310
2310
  text-align: ${e.textAlign};
2311
2311
  }`;
2312
2312
  }
2313
- const Be = "font-controls-config", Tt = (e, t = Be) => {
2314
- try {
2315
- typeof window < "u" && window.localStorage && localStorage.setItem(t, JSON.stringify(e));
2316
- } catch (r) {
2317
- console.warn("Failed to save font config to localStorage:", r);
2318
- }
2319
- }, Et = (e = Be) => {
2320
- try {
2321
- if (typeof window < "u" && window.localStorage) {
2322
- const t = localStorage.getItem(e);
2323
- if (t)
2324
- return JSON.parse(t);
2325
- }
2326
- } catch (t) {
2327
- console.warn("Failed to load font config from localStorage:", t);
2328
- }
2329
- return null;
2330
- }, wt = (e = Be) => {
2331
- try {
2332
- typeof window < "u" && window.localStorage && localStorage.removeItem(e);
2333
- } catch (t) {
2334
- console.warn("Failed to clear font config from localStorage:", t);
2335
- }
2336
- }, $r = [
2313
+ const Ar = [
2337
2314
  // Sans-serif - Modern & Clean (40 fonts)
2338
2315
  "Inter",
2339
2316
  "Roboto",
@@ -2439,7 +2416,7 @@ const Be = "font-controls-config", Tt = (e, t = Be) => {
2439
2416
  "Amatic SC",
2440
2417
  "Patrick Hand",
2441
2418
  "Courgette"
2442
- ], Se = {
2419
+ ], Me = {
2443
2420
  fontFamily: "Arial",
2444
2421
  fontSize: 16,
2445
2422
  fontWeight: 400,
@@ -2451,184 +2428,185 @@ const Be = "font-controls-config", Tt = (e, t = Be) => {
2451
2428
  }, Lr = ({
2452
2429
  value: e,
2453
2430
  onChange: t,
2454
- fontFamilies: r = $r,
2431
+ fontFamilies: r = Ar,
2455
2432
  minFontSize: o = 8,
2456
2433
  maxFontSize: a = 120,
2457
- fontSizeStep: i = 1,
2458
- title: p = "Font Controls",
2459
- collapsed: l = !1,
2460
- draggable: f = !0,
2461
- position: y,
2462
- enableLocalStorage: T = !1,
2463
- storageKey: _ = "font-controls-config"
2434
+ fontSizeStep: i = 1
2464
2435
  }) => {
2465
- const [E, j] = ue(() => {
2466
- if (T) {
2467
- const d = Et(_);
2468
- if (d)
2469
- return { ...Se, ...e, ...d };
2470
- }
2471
- return { ...Se, ...e };
2472
- }), [I, k] = ue(!1);
2436
+ const [u, l] = ue(() => ({ ...Me, ...e })), [d, m] = ue(!1);
2473
2437
  me(() => {
2474
- e && j((d) => ({ ...d, ...e }));
2438
+ e && l((T) => ({ ...T, ...e }));
2475
2439
  }, [e]), me(() => {
2476
- Nr(r);
2440
+ Rr(r);
2477
2441
  }, [r]);
2478
- const O = (d, w) => {
2479
- const x = { ...E, [d]: w };
2480
- j(x), t == null || t(x), T && Tt(x, _);
2481
- }, g = () => {
2482
- j(Se), t == null || t(Se), T && wt(_);
2442
+ const b = (T, R) => {
2443
+ const I = { ...u, [T]: R };
2444
+ l(I), t == null || t(I);
2445
+ }, C = () => {
2446
+ l(Me), t == null || t(Me);
2483
2447
  };
2484
- return /* @__PURE__ */ u.jsxs(
2485
- br,
2486
- {
2487
- title: p,
2488
- collapsed: l,
2489
- draggable: f,
2490
- position: y,
2491
- children: [
2492
- /* @__PURE__ */ u.jsx(
2493
- Sr,
2494
- {
2495
- value: E.fontFamily,
2496
- onChange: (d) => O("fontFamily", d),
2497
- fontFamilies: r
2498
- }
2499
- ),
2500
- /* @__PURE__ */ u.jsx(
2501
- xr,
2502
- {
2503
- value: E.fontSize,
2504
- onChange: (d) => O("fontSize", d),
2505
- min: o,
2506
- max: a,
2507
- step: i
2508
- }
2509
- ),
2510
- /* @__PURE__ */ u.jsx(
2511
- Er,
2512
- {
2513
- value: E.fontWeight,
2514
- onChange: (d) => O("fontWeight", d)
2515
- }
2516
- ),
2517
- /* @__PURE__ */ u.jsx(
2518
- wr,
2519
- {
2520
- value: E.lineHeight,
2521
- onChange: (d) => O("lineHeight", d)
2522
- }
2523
- ),
2524
- /* @__PURE__ */ u.jsx(
2525
- _r,
2526
- {
2527
- value: E.letterSpacing,
2528
- onChange: (d) => O("letterSpacing", d)
2529
- }
2530
- ),
2531
- /* @__PURE__ */ u.jsx(
2532
- Pr,
2533
- {
2534
- value: E.textTransform,
2535
- onChange: (d) => O("textTransform", d)
2536
- }
2537
- ),
2538
- /* @__PURE__ */ u.jsx(
2539
- jr,
2540
- {
2541
- value: E.color,
2542
- onChange: (d) => O("color", d)
2543
- }
2544
- ),
2545
- /* @__PURE__ */ u.jsx(
2546
- Or,
2547
- {
2548
- value: E.textAlign,
2549
- onChange: (d) => O("textAlign", d)
2550
- }
2551
- ),
2552
- /* @__PURE__ */ u.jsxs(
2553
- "button",
2554
- {
2555
- className: "font-control-reset-button",
2556
- onClick: g,
2557
- type: "button",
2558
- children: [
2559
- /* @__PURE__ */ u.jsxs(
2560
- "svg",
2561
- {
2562
- viewBox: "0 0 24 24",
2563
- fill: "none",
2564
- stroke: "currentColor",
2565
- strokeWidth: "2",
2566
- strokeLinecap: "round",
2567
- strokeLinejoin: "round",
2568
- children: [
2569
- /* @__PURE__ */ u.jsx("polyline", { points: "1 4 1 10 7 10" }),
2570
- /* @__PURE__ */ u.jsx("polyline", { points: "23 20 23 14 17 14" }),
2571
- /* @__PURE__ */ u.jsx("path", { d: "M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15" })
2572
- ]
2573
- }
2574
- ),
2575
- "Reset to Default"
2576
- ]
2577
- }
2578
- ),
2579
- /* @__PURE__ */ u.jsxs("div", { className: "font-control-export-section", children: [
2580
- /* @__PURE__ */ u.jsxs(
2581
- "button",
2448
+ return /* @__PURE__ */ f.jsxs(mr, { title: "Font Controls", draggable: !0, position: { x: 20, y: 20 }, children: [
2449
+ /* @__PURE__ */ f.jsx(
2450
+ yr,
2451
+ {
2452
+ value: u.fontFamily,
2453
+ onChange: (T) => b("fontFamily", T),
2454
+ fontFamilies: r
2455
+ }
2456
+ ),
2457
+ /* @__PURE__ */ f.jsx(
2458
+ vr,
2459
+ {
2460
+ value: u.fontSize,
2461
+ onChange: (T) => b("fontSize", T),
2462
+ min: o,
2463
+ max: a,
2464
+ step: i
2465
+ }
2466
+ ),
2467
+ /* @__PURE__ */ f.jsx(
2468
+ Sr,
2469
+ {
2470
+ value: u.fontWeight,
2471
+ onChange: (T) => b("fontWeight", T)
2472
+ }
2473
+ ),
2474
+ /* @__PURE__ */ f.jsx(
2475
+ xr,
2476
+ {
2477
+ value: u.lineHeight,
2478
+ onChange: (T) => b("lineHeight", T)
2479
+ }
2480
+ ),
2481
+ /* @__PURE__ */ f.jsx(
2482
+ Tr,
2483
+ {
2484
+ value: u.letterSpacing,
2485
+ onChange: (T) => b("letterSpacing", T)
2486
+ }
2487
+ ),
2488
+ /* @__PURE__ */ f.jsx(
2489
+ wr,
2490
+ {
2491
+ value: u.textTransform,
2492
+ onChange: (T) => b("textTransform", T)
2493
+ }
2494
+ ),
2495
+ /* @__PURE__ */ f.jsx(
2496
+ _r,
2497
+ {
2498
+ value: u.color,
2499
+ onChange: (T) => b("color", T)
2500
+ }
2501
+ ),
2502
+ /* @__PURE__ */ f.jsx(
2503
+ Pr,
2504
+ {
2505
+ value: u.textAlign,
2506
+ onChange: (T) => b("textAlign", T)
2507
+ }
2508
+ ),
2509
+ /* @__PURE__ */ f.jsxs(
2510
+ "button",
2511
+ {
2512
+ className: "font-control-reset-button",
2513
+ onClick: C,
2514
+ type: "button",
2515
+ children: [
2516
+ /* @__PURE__ */ f.jsxs(
2517
+ "svg",
2582
2518
  {
2583
- className: "font-control-export-toggle",
2584
- onClick: () => k(!I),
2585
- type: "button",
2519
+ viewBox: "0 0 24 24",
2520
+ fill: "none",
2521
+ stroke: "currentColor",
2522
+ strokeWidth: "2",
2523
+ strokeLinecap: "round",
2524
+ strokeLinejoin: "round",
2586
2525
  children: [
2587
- /* @__PURE__ */ u.jsx(
2588
- "svg",
2589
- {
2590
- viewBox: "0 0 24 24",
2591
- fill: "none",
2592
- stroke: "currentColor",
2593
- strokeWidth: "2",
2594
- className: I ? "rotated" : "",
2595
- children: /* @__PURE__ */ u.jsx("polyline", { points: "9 18 15 12 9 6" })
2596
- }
2597
- ),
2598
- "Export Configuration"
2526
+ /* @__PURE__ */ f.jsx("polyline", { points: "1 4 1 10 7 10" }),
2527
+ /* @__PURE__ */ f.jsx("polyline", { points: "23 20 23 14 17 14" }),
2528
+ /* @__PURE__ */ f.jsx("path", { d: "M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15" })
2599
2529
  ]
2600
2530
  }
2601
2531
  ),
2602
- I && /* @__PURE__ */ u.jsxs("div", { className: "font-control-export-content", children: [
2603
- /* @__PURE__ */ u.jsx(
2604
- Me,
2605
- {
2606
- title: "1. Google Fonts Import (HTML)",
2607
- code: Ar(E.fontFamily),
2608
- language: "html"
2609
- }
2610
- ),
2611
- /* @__PURE__ */ u.jsx(
2612
- Me,
2532
+ "Reset to Default"
2533
+ ]
2534
+ }
2535
+ ),
2536
+ /* @__PURE__ */ f.jsxs("div", { className: "font-control-export-section", children: [
2537
+ /* @__PURE__ */ f.jsxs(
2538
+ "button",
2539
+ {
2540
+ className: "font-control-export-toggle",
2541
+ onClick: () => m(!d),
2542
+ type: "button",
2543
+ children: [
2544
+ /* @__PURE__ */ f.jsx(
2545
+ "svg",
2613
2546
  {
2614
- title: "2. React/JSX Inline Styles",
2615
- code: kr(E),
2616
- language: "tsx"
2547
+ viewBox: "0 0 24 24",
2548
+ fill: "none",
2549
+ stroke: "currentColor",
2550
+ strokeWidth: "2",
2551
+ className: d ? "rotated" : "",
2552
+ children: /* @__PURE__ */ f.jsx("polyline", { points: "9 18 15 12 9 6" })
2617
2553
  }
2618
2554
  ),
2619
- /* @__PURE__ */ u.jsx(
2620
- Me,
2621
- {
2622
- title: "3. CSS Class",
2623
- code: Mr(E),
2624
- language: "css"
2625
- }
2626
- )
2627
- ] })
2628
- ] })
2629
- ]
2555
+ "Export Configuration"
2556
+ ]
2557
+ }
2558
+ ),
2559
+ d && /* @__PURE__ */ f.jsxs("div", { className: "font-control-export-content", children: [
2560
+ /* @__PURE__ */ f.jsx(
2561
+ ke,
2562
+ {
2563
+ title: "1. Google Fonts Import (HTML)",
2564
+ code: Or(u.fontFamily),
2565
+ language: "html"
2566
+ }
2567
+ ),
2568
+ /* @__PURE__ */ f.jsx(
2569
+ ke,
2570
+ {
2571
+ title: "2. React/JSX Inline Styles",
2572
+ code: Dr(u),
2573
+ language: "tsx"
2574
+ }
2575
+ ),
2576
+ /* @__PURE__ */ f.jsx(
2577
+ ke,
2578
+ {
2579
+ title: "3. CSS Class",
2580
+ code: Nr(u),
2581
+ language: "css"
2582
+ }
2583
+ )
2584
+ ] })
2585
+ ] })
2586
+ ] });
2587
+ }, Be = "font-controls-config", kr = (e, t = Be) => {
2588
+ try {
2589
+ typeof window < "u" && window.localStorage && localStorage.setItem(t, JSON.stringify(e));
2590
+ } catch (r) {
2591
+ console.warn("Failed to save font config to localStorage:", r);
2592
+ }
2593
+ }, Mr = (e = Be) => {
2594
+ try {
2595
+ if (typeof window < "u" && window.localStorage) {
2596
+ const t = localStorage.getItem(e);
2597
+ if (t)
2598
+ return JSON.parse(t);
2630
2599
  }
2631
- );
2600
+ } catch (t) {
2601
+ console.warn("Failed to load font config from localStorage:", t);
2602
+ }
2603
+ return null;
2604
+ }, $r = (e = Be) => {
2605
+ try {
2606
+ typeof window < "u" && window.localStorage && localStorage.removeItem(e);
2607
+ } catch (t) {
2608
+ console.warn("Failed to clear font config from localStorage:", t);
2609
+ }
2632
2610
  }, $e = {
2633
2611
  fontFamily: "Arial",
2634
2612
  fontSize: 16,
@@ -2641,36 +2619,36 @@ const Be = "font-controls-config", Tt = (e, t = Be) => {
2641
2619
  }, Wr = (e) => {
2642
2620
  const {
2643
2621
  initialConfig: t,
2644
- enableLocalStorage: r = !1,
2622
+ enableLocalStorage: r = !0,
2645
2623
  storageKey: o = "font-controls-config"
2646
2624
  } = e || {}, [a, i] = ue(() => {
2647
2625
  if (r) {
2648
- const f = Et(o);
2649
- if (f)
2650
- return { ...$e, ...t, ...f };
2626
+ const d = Mr(o);
2627
+ if (d)
2628
+ return { ...$e, ...t, ...d };
2651
2629
  }
2652
2630
  return { ...$e, ...t };
2653
2631
  });
2654
2632
  return me(() => {
2655
- r && Tt(a, o);
2633
+ r && kr(a, o);
2656
2634
  }, [a, r, o]), {
2657
2635
  config: a,
2658
2636
  setConfig: i,
2659
- updateConfig: (f, y) => {
2660
- i((T) => ({ ...T, [f]: y }));
2637
+ updateConfig: (d, m) => {
2638
+ i((b) => ({ ...b, [d]: m }));
2661
2639
  },
2662
2640
  resetConfig: () => {
2663
- const f = { ...$e, ...t };
2664
- i(f), r && wt(o);
2641
+ const d = { ...$e, ...t };
2642
+ i(d), r && $r(o);
2665
2643
  }
2666
2644
  };
2667
2645
  };
2668
2646
  export {
2669
2647
  Lr as FontControls,
2670
- wt as clearFontConfig,
2671
- Nr as loadAllDefaultFonts,
2672
- Et as loadFontConfig,
2673
- Dr as loadGoogleFont,
2674
- Tt as saveFontConfig,
2648
+ $r as clearFontConfig,
2649
+ Rr as loadAllDefaultFonts,
2650
+ Mr as loadFontConfig,
2651
+ jr as loadGoogleFont,
2652
+ kr as saveFontConfig,
2675
2653
  Wr as useFontControls
2676
2654
  };