font-controls 1.4.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,9 +1,9 @@
1
- import Ie, { useState as me, useRef as St, useEffect as Xe } from "react";
2
- import st from "react-dom";
3
- function xt(e) {
1
+ import Le, { useState as ue, useRef as Se, useEffect as me } from "react";
2
+ import lt from "react-dom";
3
+ function Tt(e) {
4
4
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
5
5
  }
6
- var Me = { exports: {} }, de = {};
6
+ var Ie = { exports: {} }, pe = {};
7
7
  /**
8
8
  * @license React
9
9
  * react-jsx-runtime.production.js
@@ -13,29 +13,29 @@ var Me = { exports: {} }, de = {};
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
15
  */
16
- var qe;
17
- function Tt() {
18
- if (qe) return de;
19
- qe = 1;
16
+ var ze;
17
+ function Et() {
18
+ if (ze) return pe;
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 d = null;
23
- if (i !== void 0 && (d = "" + i), a.key !== void 0 && (d = "" + 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
- for (var c in a)
26
- c !== "key" && (i[c] = a[c]);
25
+ for (var l in a)
26
+ l !== "key" && (i[l] = a[l]);
27
27
  } else i = a;
28
28
  return a = i.ref, {
29
29
  $$typeof: e,
30
30
  type: o,
31
- key: d,
31
+ key: u,
32
32
  ref: a !== void 0 ? a : null,
33
33
  props: i
34
34
  };
35
35
  }
36
- return de.Fragment = t, de.jsx = r, de.jsxs = r, de;
36
+ return pe.Fragment = t, pe.jsx = r, pe.jsxs = r, pe;
37
37
  }
38
- var pe = {};
38
+ var he = {};
39
39
  /**
40
40
  * @license React
41
41
  * react-jsx-runtime.development.js
@@ -45,47 +45,47 @@ var pe = {};
45
45
  * This source code is licensed under the MIT license found in the
46
46
  * LICENSE file in the root directory of this source tree.
47
47
  */
48
- var Be;
49
- function Et() {
50
- return Be || (Be = 1, process.env.NODE_ENV !== "production" && function() {
48
+ var Ve;
49
+ function wt() {
50
+ return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && function() {
51
51
  function e(n) {
52
52
  if (n == null) return null;
53
53
  if (typeof n == "function")
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 T:
57
+ case $:
58
58
  return "Fragment";
59
59
  case x:
60
60
  return "Profiler";
61
- case _:
61
+ case g:
62
62
  return "StrictMode";
63
- case R:
63
+ case O:
64
64
  return "Suspense";
65
- case L:
66
- return "SuspenseList";
67
65
  case W:
66
+ return "SuspenseList";
67
+ case L:
68
68
  return "Activity";
69
69
  }
70
70
  if (typeof n == "object")
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 $:
74
+ case M:
75
75
  return "Portal";
76
- case S:
77
- return n.displayName || "Context";
78
76
  case E:
77
+ return n.displayName || "Context";
78
+ case w:
79
79
  return (n._context.displayName || "Context") + ".Consumer";
80
80
  case s:
81
- var f = n.render;
82
- return n = n.displayName, n || (n = f.displayName || f.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 f = n.displayName || null, f !== null ? f : e(n.type) || "Memo";
84
+ return p = n.displayName || null, p !== null ? p : e(n.type) || "Memo";
85
85
  case Y:
86
- f = n._payload, n = n._init;
86
+ p = n._payload, n = n._init;
87
87
  try {
88
- return e(n(f));
88
+ return e(n(p));
89
89
  } catch {
90
90
  }
91
91
  }
@@ -97,27 +97,27 @@ function Et() {
97
97
  function r(n) {
98
98
  try {
99
99
  t(n);
100
- var f = !1;
100
+ var p = !1;
101
101
  } catch {
102
- f = !0;
102
+ p = !0;
103
103
  }
104
- if (f) {
105
- f = console;
106
- var y = f.error, m = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
107
- return y.call(
108
- f,
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
- m
110
+ y
111
111
  ), t(n);
112
112
  }
113
113
  }
114
114
  function o(n) {
115
- if (n === T) return "<>";
115
+ if (n === $) return "<>";
116
116
  if (typeof n == "object" && n !== null && n.$$typeof === Y)
117
117
  return "<...>";
118
118
  try {
119
- var f = e(n);
120
- return f ? "<" + f + ">" : "<...>";
119
+ var p = e(n);
120
+ return p ? "<" + p + ">" : "<...>";
121
121
  } catch {
122
122
  return "<...>";
123
123
  }
@@ -129,42 +129,42 @@ function Et() {
129
129
  function i() {
130
130
  return Error("react-stack-top-frame");
131
131
  }
132
- function d(n) {
132
+ function u(n) {
133
133
  if (ae.call(n, "key")) {
134
- var f = Object.getOwnPropertyDescriptor(n, "key").get;
135
- if (f && f.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 c(n, f) {
140
- function y() {
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
- f
143
+ p
144
144
  ));
145
145
  }
146
- y.isReactWarning = !0, Object.defineProperty(n, "key", {
147
- get: y,
146
+ v.isReactWarning = !0, Object.defineProperty(n, "key", {
147
+ get: v,
148
148
  configurable: !0
149
149
  });
150
150
  }
151
- function h() {
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 g(n, f, y, m, j, w) {
158
- var b = y.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: f,
163
- props: y,
164
- _owner: m
165
- }, (b !== void 0 ? b : null) !== null ? Object.defineProperty(n, "ref", {
162
+ key: p,
163
+ props: v,
164
+ _owner: y
165
+ }, (S !== void 0 ? S : null) !== null ? Object.defineProperty(n, "ref", {
166
166
  enumerable: !1,
167
- get: h
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,
@@ -184,100 +184,100 @@ function Et() {
184
184
  configurable: !1,
185
185
  enumerable: !1,
186
186
  writable: !0,
187
- value: w
187
+ value: _
188
188
  }), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
189
189
  }
190
- function v(n, f, y, m, j, w) {
191
- var b = f.children;
192
- if (b !== void 0)
193
- if (m)
194
- if (K(b)) {
195
- for (m = 0; m < b.length; m++)
196
- P(b[m]);
197
- Object.freeze && Object.freeze(b);
190
+ function b(n, p, v, y, j, _) {
191
+ var S = p.children;
192
+ if (S !== void 0)
193
+ if (y)
194
+ if (K(S)) {
195
+ for (y = 0; y < S.length; y++)
196
+ C(S[y]);
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 P(b);
203
- if (ae.call(f, "key")) {
204
- b = e(n);
205
- var C = Object.keys(f).filter(function(O) {
206
- return O !== "key";
202
+ else C(S);
203
+ if (ae.call(p, "key")) {
204
+ S = e(n);
205
+ var P = Object.keys(p).filter(function(D) {
206
+ return D !== "key";
207
207
  });
208
- m = 0 < C.length ? "{key: someKey, " + C.join(": ..., ") + ": ...}" : "{key: someKey}", l[b + m] || (C = 0 < C.length ? "{" + C.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
- m,
216
- b,
217
- C,
218
- b
219
- ), l[b + m] = !0);
215
+ y,
216
+ S,
217
+ P,
218
+ S
219
+ ), c[S + y] = !0);
220
220
  }
221
- if (b = null, y !== void 0 && (r(y), b = "" + y), d(f) && (r(f.key), b = "" + f.key), "key" in f) {
222
- y = {};
223
- for (var D in f)
224
- D !== "key" && (y[D] = f[D]);
225
- } else y = f;
226
- return b && c(
227
- y,
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
+ return S && l(
227
+ v,
228
228
  typeof n == "function" ? n.displayName || n.name || "Unknown" : n
229
- ), g(
229
+ ), m(
230
230
  n,
231
- b,
232
- y,
231
+ S,
232
+ v,
233
233
  a(),
234
234
  j,
235
- w
235
+ _
236
236
  );
237
237
  }
238
- function P(n) {
239
- A(n) ? n._store && (n._store.validated = 1) : typeof n == "object" && n !== null && n.$$typeof === Y && (n._payload.status === "fulfilled" ? A(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 A(n) {
241
+ function T(n) {
242
242
  return typeof n == "object" && n !== null && n.$$typeof === I;
243
243
  }
244
- var N = Ie, I = Symbol.for("react.transitional.element"), $ = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), S = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), L = Symbol.for("react.suspense_list"), U = Symbol.for("react.memo"), Y = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), ne = Symbol.for("react.client.reference"), oe = N.__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
- N = {
247
+ R = {
248
248
  react_stack_bottom_frame: function(n) {
249
249
  return n();
250
250
  }
251
251
  };
252
- var X, V = {}, Q = N.react_stack_bottom_frame.bind(
253
- N,
252
+ var X, V = {}, Q = R.react_stack_bottom_frame.bind(
253
+ R,
254
254
  i
255
- )(), ie = se(o(i)), l = {};
256
- pe.Fragment = T, pe.jsx = function(n, f, y) {
257
- var m = 1e4 > oe.recentlyCreatedOwnerStacks++;
258
- return v(
255
+ )(), ie = se(o(i)), c = {};
256
+ he.Fragment = $, he.jsx = function(n, p, v) {
257
+ var y = 1e4 > oe.recentlyCreatedOwnerStacks++;
258
+ return b(
259
259
  n,
260
- f,
261
- y,
260
+ p,
261
+ v,
262
262
  !1,
263
- m ? Error("react-stack-top-frame") : Q,
264
- m ? se(o(n)) : ie
263
+ y ? Error("react-stack-top-frame") : Q,
264
+ y ? se(o(n)) : ie
265
265
  );
266
- }, pe.jsxs = function(n, f, y) {
267
- var m = 1e4 > oe.recentlyCreatedOwnerStacks++;
268
- return v(
266
+ }, he.jsxs = function(n, p, v) {
267
+ var y = 1e4 > oe.recentlyCreatedOwnerStacks++;
268
+ return b(
269
269
  n,
270
- f,
271
- y,
270
+ p,
271
+ v,
272
272
  !0,
273
- m ? Error("react-stack-top-frame") : Q,
274
- m ? se(o(n)) : ie
273
+ y ? Error("react-stack-top-frame") : Q,
274
+ y ? se(o(n)) : ie
275
275
  );
276
276
  };
277
- }()), pe;
277
+ }()), he;
278
278
  }
279
- process.env.NODE_ENV === "production" ? Me.exports = Tt() : Me.exports = Et();
280
- var u = Me.exports, be = { exports: {} }, it = {}, ke = { exports: {} }, ye = { 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
  *
@@ -286,71 +286,71 @@ var u = Me.exports, be = { exports: {} }, it = {}, ke = { exports: {} }, ye = {
286
286
  * This source code is licensed under the MIT license found in the
287
287
  * LICENSE file in the root directory of this source tree.
288
288
  */
289
- var He;
289
+ var Ge;
290
290
  function _t() {
291
- if (He) return M;
292
- He = 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, d = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, g = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, P = e ? Symbol.for("react.suspense") : 60113, A = e ? Symbol.for("react.suspense_list") : 60120, N = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, $ = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
294
- function E(s) {
291
+ if (Ge) return A;
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, 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
+ function w(s) {
295
295
  if (typeof s == "object" && s !== null) {
296
- var R = s.$$typeof;
297
- switch (R) {
296
+ var O = s.$$typeof;
297
+ switch (O) {
298
298
  case t:
299
299
  switch (s = s.type, s) {
300
- case h:
301
- case g:
300
+ case d:
301
+ case m:
302
302
  case o:
303
303
  case i:
304
304
  case a:
305
- case P:
305
+ case C:
306
306
  return s;
307
307
  default:
308
308
  switch (s = s && s.$$typeof, s) {
309
- case c:
310
- case v:
309
+ case l:
310
+ case b:
311
311
  case I:
312
- case N:
313
- case d:
312
+ case R:
313
+ case u:
314
314
  return s;
315
315
  default:
316
- return R;
316
+ return O;
317
317
  }
318
318
  }
319
319
  case r:
320
- return R;
320
+ return O;
321
321
  }
322
322
  }
323
323
  }
324
- function S(s) {
325
- return E(s) === g;
324
+ function E(s) {
325
+ return w(s) === m;
326
326
  }
327
- return M.AsyncMode = h, M.ConcurrentMode = g, M.ContextConsumer = c, M.ContextProvider = d, M.Element = t, M.ForwardRef = v, M.Fragment = o, M.Lazy = I, M.Memo = N, M.Portal = r, M.Profiler = i, M.StrictMode = a, M.Suspense = P, M.isAsyncMode = function(s) {
328
- return S(s) || E(s) === h;
329
- }, M.isConcurrentMode = S, M.isContextConsumer = function(s) {
330
- return E(s) === c;
331
- }, M.isContextProvider = function(s) {
332
- return E(s) === d;
333
- }, M.isElement = 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
+ return w(s) === l;
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 E(s) === v;
337
- }, M.isFragment = function(s) {
338
- return E(s) === o;
339
- }, M.isLazy = function(s) {
340
- return E(s) === I;
341
- }, M.isMemo = function(s) {
342
- return E(s) === N;
343
- }, M.isPortal = function(s) {
344
- return E(s) === r;
345
- }, M.isProfiler = function(s) {
346
- return E(s) === i;
347
- }, M.isStrictMode = function(s) {
348
- return E(s) === a;
349
- }, M.isSuspense = function(s) {
350
- return E(s) === P;
351
- }, M.isValidElementType = function(s) {
352
- return typeof s == "string" || typeof s == "function" || s === o || s === g || s === i || s === a || s === P || s === A || typeof s == "object" && s !== null && (s.$$typeof === I || s.$$typeof === N || s.$$typeof === d || s.$$typeof === c || s.$$typeof === v || s.$$typeof === T || s.$$typeof === _ || s.$$typeof === x || s.$$typeof === $);
353
- }, M.typeOf = E, M;
335
+ }, A.isForwardRef = function(s) {
336
+ return w(s) === b;
337
+ }, A.isFragment = function(s) {
338
+ return w(s) === o;
339
+ }, A.isLazy = function(s) {
340
+ return w(s) === I;
341
+ }, A.isMemo = function(s) {
342
+ return w(s) === R;
343
+ }, A.isPortal = function(s) {
344
+ return w(s) === r;
345
+ }, A.isProfiler = function(s) {
346
+ return w(s) === i;
347
+ }, A.isStrictMode = function(s) {
348
+ return w(s) === a;
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
355
  var k = {};
356
356
  /** @license React v16.13.1
@@ -361,37 +361,37 @@ var k = {};
361
361
  * This source code is licensed under the MIT license found in the
362
362
  * LICENSE file in the root directory of this source tree.
363
363
  */
364
- var ze;
365
- function wt() {
366
- return ze || (ze = 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, d = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, g = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, P = e ? Symbol.for("react.suspense") : 60113, A = e ? Symbol.for("react.suspense_list") : 60120, N = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, $ = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
368
- function E(p) {
369
- return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
370
- p === o || p === g || p === i || p === a || p === P || p === A || typeof p == "object" && p !== null && (p.$$typeof === I || p.$$typeof === N || p.$$typeof === d || p.$$typeof === c || p.$$typeof === v || p.$$typeof === T || p.$$typeof === _ || p.$$typeof === x || p.$$typeof === $);
371
- }
372
- function S(p) {
373
- if (typeof p == "object" && p !== null) {
374
- var ee = p.$$typeof;
364
+ var Je;
365
+ function Ct() {
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, 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 ge = p.type;
378
- switch (ge) {
379
- case h:
380
- case g:
377
+ var ye = h.type;
378
+ switch (ye) {
379
+ case d:
380
+ case m:
381
381
  case o:
382
382
  case i:
383
383
  case a:
384
- case P:
385
- return ge;
384
+ case C:
385
+ return ye;
386
386
  default:
387
- var Ue = ge && ge.$$typeof;
388
- switch (Ue) {
389
- case c:
390
- case v:
387
+ var He = ye && ye.$$typeof;
388
+ switch (He) {
389
+ case l:
390
+ case b:
391
391
  case I:
392
- case N:
393
- case d:
394
- return Ue;
392
+ case R:
393
+ case u:
394
+ return He;
395
395
  default:
396
396
  return ee;
397
397
  }
@@ -401,62 +401,62 @@ function wt() {
401
401
  }
402
402
  }
403
403
  }
404
- var s = h, R = g, L = c, U = d, Y = t, W = v, ne = o, oe = I, ae = N, K = r, se = i, X = a, V = P, Q = !1;
405
- function ie(p) {
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.")), l(p) || S(p) === h;
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 l(p) {
409
- return S(p) === g;
408
+ function c(h) {
409
+ return E(h) === m;
410
410
  }
411
- function n(p) {
412
- return S(p) === c;
411
+ function n(h) {
412
+ return E(h) === l;
413
413
  }
414
- function f(p) {
415
- return S(p) === d;
414
+ function p(h) {
415
+ return E(h) === u;
416
416
  }
417
- function y(p) {
418
- return typeof p == "object" && p !== null && p.$$typeof === t;
417
+ function v(h) {
418
+ return typeof h == "object" && h !== null && h.$$typeof === t;
419
419
  }
420
- function m(p) {
421
- return S(p) === v;
420
+ function y(h) {
421
+ return E(h) === b;
422
422
  }
423
- function j(p) {
424
- return S(p) === o;
423
+ function j(h) {
424
+ return E(h) === o;
425
425
  }
426
- function w(p) {
427
- return S(p) === I;
426
+ function _(h) {
427
+ return E(h) === I;
428
428
  }
429
- function b(p) {
430
- return S(p) === N;
429
+ function S(h) {
430
+ return E(h) === R;
431
431
  }
432
- function C(p) {
433
- return S(p) === r;
432
+ function P(h) {
433
+ return E(h) === r;
434
434
  }
435
- function D(p) {
436
- return S(p) === i;
435
+ function N(h) {
436
+ return E(h) === i;
437
437
  }
438
- function O(p) {
439
- return S(p) === a;
438
+ function D(h) {
439
+ return E(h) === a;
440
440
  }
441
- function z(p) {
442
- return S(p) === P;
441
+ function z(h) {
442
+ return E(h) === C;
443
443
  }
444
- k.AsyncMode = s, k.ConcurrentMode = R, k.ContextConsumer = L, k.ContextProvider = U, k.Element = Y, k.ForwardRef = W, 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 = l, k.isContextConsumer = n, k.isContextProvider = f, k.isElement = y, k.isForwardRef = m, k.isFragment = j, k.isLazy = w, k.isMemo = b, k.isPortal = C, k.isProfiler = D, k.isStrictMode = O, k.isSuspense = z, k.isValidElementType = E, k.typeOf = S;
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
445
  }()), k;
446
446
  }
447
- var Ve;
448
- function lt() {
449
- return Ve || (Ve = 1, process.env.NODE_ENV === "production" ? ye.exports = _t() : ye.exports = wt()), ye.exports;
447
+ var Ke;
448
+ function ut() {
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 Ee, Ge;
457
- function Ct() {
458
- if (Ge) return Ee;
459
- Ge = 1;
456
+ var _e, Ze;
457
+ function Pt() {
458
+ if (Ze) return _e;
459
+ Ze = 1;
460
460
  var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
461
461
  function o(i) {
462
462
  if (i == null)
@@ -470,86 +470,86 @@ function Ct() {
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 d = {}, c = 0; c < 10; c++)
474
- d["_" + String.fromCharCode(c)] = c;
475
- var h = Object.getOwnPropertyNames(d).map(function(v) {
476
- return d[v];
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 (h.join("") !== "0123456789")
478
+ if (d.join("") !== "0123456789")
479
479
  return !1;
480
- var g = {};
481
- return "abcdefghijklmnopqrst".split("").forEach(function(v) {
482
- g[v] = v;
483
- }), Object.keys(Object.assign({}, g)).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 Ee = a() ? Object.assign : function(i, d) {
489
- for (var c, h = o(i), g, v = 1; v < arguments.length; v++) {
490
- c = Object(arguments[v]);
491
- for (var P in c)
492
- t.call(c, P) && (h[P] = c[P]);
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
- g = e(c);
495
- for (var A = 0; A < g.length; A++)
496
- r.call(c, g[A]) && (h[g[A]] = c[g[A]]);
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 h;
500
- }, Ee;
499
+ return d;
500
+ }, _e;
501
501
  }
502
- var _e, Je;
503
- function Fe() {
504
- if (Je) return _e;
505
- Je = 1;
502
+ var Ce, Qe;
503
+ function We() {
504
+ if (Qe) return Ce;
505
+ Qe = 1;
506
506
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
507
- return _e = e, _e;
507
+ return Ce = e, Ce;
508
508
  }
509
- var we, Ke;
510
- function ct() {
511
- return Ke || (Ke = 1, we = Function.call.bind(Object.prototype.hasOwnProperty)), we;
509
+ var Pe, et;
510
+ function ft() {
511
+ return et || (et = 1, Pe = Function.call.bind(Object.prototype.hasOwnProperty)), Pe;
512
512
  }
513
- var Ce, Ze;
514
- function Pt() {
515
- if (Ze) return Ce;
516
- Ze = 1;
513
+ var je, tt;
514
+ function jt() {
515
+ if (tt) return je;
516
+ tt = 1;
517
517
  var e = function() {
518
518
  };
519
519
  if (process.env.NODE_ENV !== "production") {
520
- var t = Fe(), r = {}, o = ct();
520
+ var t = We(), r = {}, o = ft();
521
521
  e = function(i) {
522
- var d = "Warning: " + i;
523
- typeof console < "u" && console.error(d);
522
+ var u = "Warning: " + i;
523
+ typeof console < "u" && console.error(u);
524
524
  try {
525
- throw new Error(d);
525
+ throw new Error(u);
526
526
  } catch {
527
527
  }
528
528
  };
529
529
  }
530
- function a(i, d, c, h, g) {
530
+ function a(i, u, l, d, m) {
531
531
  if (process.env.NODE_ENV !== "production") {
532
- for (var v in i)
533
- if (o(i, v)) {
534
- var P;
532
+ for (var b in i)
533
+ if (o(i, b)) {
534
+ var C;
535
535
  try {
536
- if (typeof i[v] != "function") {
537
- var A = Error(
538
- (h || "React class") + ": " + c + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[v] + "`.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 A.name = "Invariant Violation", A;
540
+ throw T.name = "Invariant Violation", T;
541
541
  }
542
- P = i[v](d, v, h, c, null, t);
542
+ C = i[b](u, b, d, l, null, t);
543
543
  } catch (I) {
544
- P = I;
544
+ C = I;
545
545
  }
546
- if (P && !(P instanceof Error) && e(
547
- (h || "React class") + ": type specification of " + c + " `" + v + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof P + ". 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
- ), P instanceof Error && !(P.message in r)) {
549
- r[P.message] = !0;
550
- var N = g ? g() : "";
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 " + c + " type: " + P.message + (N ?? "")
552
+ "Failed " + l + " type: " + C.message + (R ?? "")
553
553
  );
554
554
  }
555
555
  }
@@ -557,281 +557,281 @@ function Pt() {
557
557
  }
558
558
  return a.resetWarningCache = function() {
559
559
  process.env.NODE_ENV !== "production" && (r = {});
560
- }, Ce = a, Ce;
560
+ }, je = a, je;
561
561
  }
562
- var Pe, Qe;
563
- function jt() {
564
- if (Qe) return Pe;
565
- Qe = 1;
566
- var e = lt(), t = Ct(), r = Fe(), o = ct(), a = Pt(), i = function() {
562
+ var Re, rt;
563
+ function Rt() {
564
+ if (rt) return Re;
565
+ rt = 1;
566
+ var e = ut(), t = Pt(), r = We(), o = ft(), a = jt(), i = function() {
567
567
  };
568
- process.env.NODE_ENV !== "production" && (i = function(c) {
569
- var h = "Warning: " + c;
570
- typeof console < "u" && console.error(h);
568
+ process.env.NODE_ENV !== "production" && (i = function(l) {
569
+ var d = "Warning: " + l;
570
+ typeof console < "u" && console.error(d);
571
571
  try {
572
- throw new Error(h);
572
+ throw new Error(d);
573
573
  } catch {
574
574
  }
575
575
  });
576
- function d() {
576
+ function u() {
577
577
  return null;
578
578
  }
579
- return Pe = function(c, h) {
580
- var g = typeof Symbol == "function" && Symbol.iterator, v = "@@iterator";
581
- function P(l) {
582
- var n = l && (g && l[g] || l[v]);
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 A = "<<anonymous>>", N = {
587
- array: _("array"),
588
- bigint: _("bigint"),
589
- bool: _("boolean"),
590
- func: _("function"),
591
- number: _("number"),
592
- object: _("object"),
593
- string: _("string"),
594
- symbol: _("symbol"),
586
+ var T = "<<anonymous>>", R = {
587
+ array: g("array"),
588
+ bigint: g("bigint"),
589
+ bool: g("boolean"),
590
+ func: g("function"),
591
+ number: g("number"),
592
+ object: g("object"),
593
+ string: g("string"),
594
+ symbol: g("symbol"),
595
595
  any: x(),
596
- arrayOf: E,
597
- element: S(),
596
+ arrayOf: w,
597
+ element: E(),
598
598
  elementType: s(),
599
- instanceOf: R,
600
- node: W(),
599
+ instanceOf: O,
600
+ node: L(),
601
601
  objectOf: U,
602
- oneOf: L,
602
+ oneOf: W,
603
603
  oneOfType: Y,
604
604
  shape: oe,
605
605
  exact: ae
606
606
  };
607
- function I(l, n) {
608
- return l === n ? l !== 0 || 1 / l === 1 / n : l !== l && n !== n;
607
+ function I(c, n) {
608
+ return c === n ? c !== 0 || 1 / c === 1 / n : c !== c && n !== n;
609
609
  }
610
- function $(l, n) {
611
- this.message = l, this.data = n && typeof n == "object" ? n : {}, this.stack = "";
610
+ function M(c, n) {
611
+ this.message = c, this.data = n && typeof n == "object" ? n : {}, this.stack = "";
612
612
  }
613
- $.prototype = Error.prototype;
614
- function T(l) {
613
+ M.prototype = Error.prototype;
614
+ function $(c) {
615
615
  if (process.env.NODE_ENV !== "production")
616
- var n = {}, f = 0;
617
- function y(j, w, b, C, D, O, z) {
618
- if (C = C || A, O = O || b, z !== r) {
619
- if (h) {
620
- var p = 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 p.name = "Invariant Violation", p;
623
+ throw h.name = "Invariant Violation", h;
624
624
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
625
- var ee = C + ":" + b;
625
+ var ee = P + ":" + S;
626
626
  !n[ee] && // Avoid spamming the console because they are often not actionable except for lib authors
627
- f < 3 && (i(
628
- "You are manually calling a React.PropTypes validation function for the `" + O + "` prop on `" + C + "`. 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, f++);
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 w[b] == null ? j ? w[b] === null ? new $("The " + D + " `" + O + "` is marked as required " + ("in `" + C + "`, but its value is `null`.")) : new $("The " + D + " `" + O + "` is marked as required in " + ("`" + C + "`, but its value is `undefined`.")) : null : l(w, b, C, D, O);
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 m = y.bind(null, !1);
635
- return m.isRequired = y.bind(null, !0), m;
636
- }
637
- function _(l) {
638
- function n(f, y, m, j, w, b) {
639
- var C = f[y], D = X(C);
640
- if (D !== l) {
641
- var O = V(C);
642
- return new $(
643
- "Invalid " + j + " `" + w + "` of type " + ("`" + O + "` supplied to `" + m + "`, expected ") + ("`" + l + "`."),
644
- { expectedType: l }
634
+ var y = v.bind(null, !1);
635
+ return y.isRequired = v.bind(null, !0), y;
636
+ }
637
+ function g(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
+ { expectedType: c }
645
645
  );
646
646
  }
647
647
  return null;
648
648
  }
649
- return T(n);
649
+ return $(n);
650
650
  }
651
651
  function x() {
652
- return T(d);
653
- }
654
- function E(l) {
655
- function n(f, y, m, j, w) {
656
- if (typeof l != "function")
657
- return new $("Property `" + w + "` of component `" + m + "` has invalid PropType notation inside arrayOf.");
658
- var b = f[y];
659
- if (!Array.isArray(b)) {
660
- var C = X(b);
661
- return new $("Invalid " + j + " `" + w + "` of type " + ("`" + C + "` supplied to `" + m + "`, expected an array."));
652
+ return $(u);
653
+ }
654
+ function w(c) {
655
+ function n(p, v, y, j, _) {
656
+ if (typeof c != "function")
657
+ return new M("Property `" + _ + "` of component `" + y + "` has invalid PropType notation inside arrayOf.");
658
+ var S = p[v];
659
+ if (!Array.isArray(S)) {
660
+ var P = X(S);
661
+ return new M("Invalid " + j + " `" + _ + "` of type " + ("`" + P + "` supplied to `" + y + "`, expected an array."));
662
662
  }
663
- for (var D = 0; D < b.length; D++) {
664
- var O = l(b, D, m, j, w + "[" + D + "]", r);
665
- if (O instanceof Error)
666
- return O;
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 T(n);
671
- }
672
- function S() {
673
- function l(n, f, y, m, j) {
674
- var w = n[f];
675
- if (!c(w)) {
676
- var b = X(w);
677
- return new $("Invalid " + m + " `" + j + "` of type " + ("`" + b + "` supplied to `" + y + "`, 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 T(l);
681
+ return $(c);
682
682
  }
683
683
  function s() {
684
- function l(n, f, y, m, j) {
685
- var w = n[f];
686
- if (!e.isValidElementType(w)) {
687
- var b = X(w);
688
- return new $("Invalid " + m + " `" + j + "` of type " + ("`" + b + "` supplied to `" + y + "`, 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 T(l);
692
+ return $(c);
693
693
  }
694
- function R(l) {
695
- function n(f, y, m, j, w) {
696
- if (!(f[y] instanceof l)) {
697
- var b = l.name || A, C = ie(f[y]);
698
- return new $("Invalid " + j + " `" + w + "` of type " + ("`" + C + "` supplied to `" + m + "`, expected ") + ("instance of `" + b + "`."));
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 T(n);
702
+ return $(n);
703
703
  }
704
- function L(l) {
705
- if (!Array.isArray(l))
704
+ function W(c) {
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.")), d;
709
- function n(f, y, m, j, w) {
710
- for (var b = f[y], C = 0; C < l.length; C++)
711
- if (I(b, l[C]))
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
+ if (I(S, c[P]))
712
712
  return null;
713
- var D = JSON.stringify(l, function(z, p) {
714
- var ee = V(p);
715
- return ee === "symbol" ? String(p) : p;
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 $("Invalid " + j + " `" + w + "` of value `" + String(b) + "` " + ("supplied to `" + m + "`, expected one of " + D + "."));
717
+ return new M("Invalid " + j + " `" + _ + "` of value `" + String(S) + "` " + ("supplied to `" + y + "`, expected one of " + N + "."));
718
718
  }
719
- return T(n);
720
- }
721
- function U(l) {
722
- function n(f, y, m, j, w) {
723
- if (typeof l != "function")
724
- return new $("Property `" + w + "` of component `" + m + "` has invalid PropType notation inside objectOf.");
725
- var b = f[y], C = X(b);
726
- if (C !== "object")
727
- return new $("Invalid " + j + " `" + w + "` of type " + ("`" + C + "` supplied to `" + m + "`, expected an object."));
728
- for (var D in b)
729
- if (o(b, D)) {
730
- var O = l(b, D, m, j, w + "." + D, r);
731
- if (O instanceof Error)
732
- return O;
719
+ return $(n);
720
+ }
721
+ function U(c) {
722
+ function n(p, v, y, j, _) {
723
+ if (typeof c != "function")
724
+ return new M("Property `" + _ + "` of component `" + y + "` has invalid PropType notation inside objectOf.");
725
+ var S = p[v], P = X(S);
726
+ if (P !== "object")
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 T(n);
737
- }
738
- function Y(l) {
739
- if (!Array.isArray(l))
740
- return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), d;
741
- for (var n = 0; n < l.length; n++) {
742
- var f = l[n];
743
- if (typeof f != "function")
736
+ return $(n);
737
+ }
738
+ function Y(c) {
739
+ if (!Array.isArray(c))
740
+ return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), u;
741
+ for (var n = 0; n < c.length; n++) {
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(f) + " at index " + n + "."
746
- ), d;
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 y(m, j, w, b, C) {
749
- for (var D = [], O = 0; O < l.length; O++) {
750
- var z = l[O], p = z(m, j, w, b, C, r);
751
- if (p == 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
- p.data && o(p.data, "expectedType") && D.push(p.data.expectedType);
753
+ h.data && o(h.data, "expectedType") && N.push(h.data.expectedType);
754
754
  }
755
- var ee = D.length > 0 ? ", expected one of type [" + D.join(", ") + "]" : "";
756
- return new $("Invalid " + b + " `" + C + "` supplied to " + ("`" + w + "`" + 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 T(y);
758
+ return $(v);
759
759
  }
760
- function W() {
761
- function l(n, f, y, m, j) {
762
- return K(n[f]) ? null : new $("Invalid " + m + " `" + j + "` supplied to " + ("`" + y + "`, expected a ReactNode."));
760
+ function L() {
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 T(l);
764
+ return $(c);
765
765
  }
766
- function ne(l, n, f, y, m) {
767
- return new $(
768
- (l || "React class") + ": " + n + " type `" + f + "." + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + m + "`."
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
- function oe(l) {
772
- function n(f, y, m, j, w) {
773
- var b = f[y], C = X(b);
774
- if (C !== "object")
775
- return new $("Invalid " + j + " `" + w + "` of type `" + C + "` " + ("supplied to `" + m + "`, expected `object`."));
776
- for (var D in l) {
777
- var O = l[D];
778
- if (typeof O != "function")
779
- return ne(m, j, w, D, V(O));
780
- var z = O(b, D, m, j, w + "." + D, r);
771
+ function oe(c) {
772
+ function n(p, v, y, j, _) {
773
+ var S = p[v], P = X(S);
774
+ if (P !== "object")
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 T(n);
787
- }
788
- function ae(l) {
789
- function n(f, y, m, j, w) {
790
- var b = f[y], C = X(b);
791
- if (C !== "object")
792
- return new $("Invalid " + j + " `" + w + "` of type `" + C + "` " + ("supplied to `" + m + "`, expected `object`."));
793
- var D = t({}, f[y], l);
794
- for (var O in D) {
795
- var z = l[O];
796
- if (o(l, O) && typeof z != "function")
797
- return ne(m, j, w, O, V(z));
786
+ return $(n);
787
+ }
788
+ function ae(c) {
789
+ function n(p, v, y, j, _) {
790
+ var S = p[v], P = X(S);
791
+ if (P !== "object")
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 $(
800
- "Invalid " + j + " `" + w + "` key `" + O + "` supplied to `" + m + "`.\nBad object: " + JSON.stringify(f[y], null, " ") + `
801
- Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
799
+ return new M(
800
+ "Invalid " + j + " `" + _ + "` key `" + D + "` supplied to `" + y + "`.\nBad object: " + JSON.stringify(p[v], null, " ") + `
801
+ Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
802
802
  );
803
- var p = z(b, O, m, j, w + "." + O, r);
804
- if (p)
805
- return p;
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 T(n);
809
+ return $(n);
810
810
  }
811
- function K(l) {
812
- switch (typeof l) {
811
+ function K(c) {
812
+ switch (typeof c) {
813
813
  case "number":
814
814
  case "string":
815
815
  case "undefined":
816
816
  return !0;
817
817
  case "boolean":
818
- return !l;
818
+ return !c;
819
819
  case "object":
820
- if (Array.isArray(l))
821
- return l.every(K);
822
- if (l === null || c(l))
820
+ if (Array.isArray(c))
821
+ return c.every(K);
822
+ if (c === null || l(c))
823
823
  return !0;
824
- var n = P(l);
824
+ var n = C(c);
825
825
  if (n) {
826
- var f = n.call(l), y;
827
- if (n !== l.entries) {
828
- for (; !(y = f.next()).done; )
829
- if (!K(y.value))
826
+ var p = n.call(c), v;
827
+ if (n !== c.entries) {
828
+ for (; !(v = p.next()).done; )
829
+ if (!K(v.value))
830
830
  return !1;
831
831
  } else
832
- for (; !(y = f.next()).done; ) {
833
- var m = y.value;
834
- if (m && !K(m[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
@@ -841,27 +841,27 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
841
841
  return !1;
842
842
  }
843
843
  }
844
- function se(l, n) {
845
- return l === "symbol" ? !0 : n ? n["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && n instanceof Symbol : !1;
844
+ function se(c, n) {
845
+ return c === "symbol" ? !0 : n ? n["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && n instanceof Symbol : !1;
846
846
  }
847
- function X(l) {
848
- var n = typeof l;
849
- return Array.isArray(l) ? "array" : l instanceof RegExp ? "object" : se(n, l) ? "symbol" : n;
847
+ function X(c) {
848
+ var n = typeof c;
849
+ return Array.isArray(c) ? "array" : c instanceof RegExp ? "object" : se(n, c) ? "symbol" : n;
850
850
  }
851
- function V(l) {
852
- if (typeof l > "u" || l === null)
853
- return "" + l;
854
- var n = X(l);
851
+ function V(c) {
852
+ if (typeof c > "u" || c === null)
853
+ return "" + c;
854
+ var n = X(c);
855
855
  if (n === "object") {
856
- if (l instanceof Date)
856
+ if (c instanceof Date)
857
857
  return "date";
858
- if (l instanceof RegExp)
858
+ if (c instanceof RegExp)
859
859
  return "regexp";
860
860
  }
861
861
  return n;
862
862
  }
863
- function Q(l) {
864
- var n = V(l);
863
+ function Q(c) {
864
+ var n = V(c);
865
865
  switch (n) {
866
866
  case "array":
867
867
  case "object":
@@ -874,28 +874,28 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
874
874
  return n;
875
875
  }
876
876
  }
877
- function ie(l) {
878
- return !l.constructor || !l.constructor.name ? A : l.constructor.name;
877
+ function ie(c) {
878
+ return !c.constructor || !c.constructor.name ? T : c.constructor.name;
879
879
  }
880
- return N.checkPropTypes = a, N.resetWarningCache = a.resetWarningCache, N.PropTypes = N, N;
881
- }, Pe;
880
+ return R.checkPropTypes = a, R.resetWarningCache = a.resetWarningCache, R.PropTypes = R, R;
881
+ }, Re;
882
882
  }
883
- var je, et;
884
- function Rt() {
885
- if (et) return je;
886
- et = 1;
887
- var e = Fe();
883
+ var Oe, nt;
884
+ function Ot() {
885
+ if (nt) return Oe;
886
+ nt = 1;
887
+ var e = We();
888
888
  function t() {
889
889
  }
890
890
  function r() {
891
891
  }
892
- return r.resetWarningCache = t, je = function() {
893
- function o(d, c, h, g, v, P) {
894
- if (P !== e) {
895
- var A = 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 A.name = "Invariant Violation", A;
898
+ throw T.name = "Invariant Violation", T;
899
899
  }
900
900
  }
901
901
  o.isRequired = o;
@@ -926,138 +926,138 @@ function Rt() {
926
926
  resetWarningCache: t
927
927
  };
928
928
  return i.PropTypes = i, i;
929
- }, je;
929
+ }, Oe;
930
930
  }
931
931
  if (process.env.NODE_ENV !== "production") {
932
- var Ot = lt(), Dt = !0;
933
- ke.exports = jt()(Ot.isElement, Dt);
932
+ var Dt = ut(), Nt = !0;
933
+ Fe.exports = Rt()(Dt.isElement, Nt);
934
934
  } else
935
- ke.exports = Rt()();
936
- var ut = ke.exports, $e = { exports: {} };
937
- function ft(e) {
935
+ Fe.exports = Ot()();
936
+ var dt = Fe.exports, Ye = { exports: {} };
937
+ function pt(e) {
938
938
  var t, r, o = "";
939
939
  if (typeof e == "string" || typeof e == "number") o += e;
940
940
  else if (typeof e == "object") if (Array.isArray(e)) {
941
941
  var a = e.length;
942
- for (t = 0; t < a; t++) e[t] && (r = ft(e[t])) && (o && (o += " "), o += r);
942
+ for (t = 0; t < a; t++) e[t] && (r = pt(e[t])) && (o && (o += " "), o += r);
943
943
  } else for (r in e) e[r] && (o && (o += " "), o += r);
944
944
  return o;
945
945
  }
946
- function tt() {
947
- for (var e, t, r = 0, o = "", a = arguments.length; r < a; r++) (e = arguments[r]) && (t = ft(e)) && (o && (o += " "), o += t);
946
+ function ot() {
947
+ for (var e, t, r = 0, o = "", a = arguments.length; r < a; r++) (e = arguments[r]) && (t = pt(e)) && (o && (o += " "), o += t);
948
948
  return o;
949
949
  }
950
- $e.exports = tt, $e.exports.clsx = tt;
951
- var Nt = $e.exports, F = {}, te = {};
950
+ Ye.exports = ot, Ye.exports.clsx = ot;
951
+ var At = Ye.exports, F = {}, te = {};
952
952
  Object.defineProperty(te, "__esModule", {
953
953
  value: !0
954
954
  });
955
- te.dontSetMe = It;
956
- te.findInArray = At;
957
- te.int = $t;
955
+ te.dontSetMe = Ft;
956
+ te.findInArray = kt;
957
+ te.int = It;
958
958
  te.isFunction = Mt;
959
- te.isNum = kt;
960
- function At(e, t) {
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
964
  function Mt(e) {
965
965
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Function]";
966
966
  }
967
- function kt(e) {
967
+ function $t(e) {
968
968
  return typeof e == "number" && !isNaN(e);
969
969
  }
970
- function $t(e) {
970
+ function It(e) {
971
971
  return parseInt(e, 10);
972
972
  }
973
- function It(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
  }
977
- var ue = {};
978
- Object.defineProperty(ue, "__esModule", {
977
+ var fe = {};
978
+ Object.defineProperty(fe, "__esModule", {
979
979
  value: !0
980
980
  });
981
- ue.browserPrefixToKey = pt;
982
- ue.browserPrefixToStyle = Ft;
983
- ue.default = void 0;
984
- ue.getPrefix = dt;
985
- const Re = ["Moz", "Webkit", "O", "ms"];
986
- function dt() {
981
+ fe.browserPrefixToKey = gt;
982
+ fe.browserPrefixToStyle = Yt;
983
+ fe.default = void 0;
984
+ fe.getPrefix = ht;
985
+ const De = ["Moz", "Webkit", "O", "ms"];
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 < Re.length; a++)
993
- if (pt(e, Re[a]) in t) return Re[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
- function pt(e, t) {
997
- return t ? `${t}${Yt(e)}` : e;
996
+ function gt(e, t) {
997
+ return t ? `${t}${Lt(e)}` : e;
998
998
  }
999
- function Ft(e, t) {
999
+ function Yt(e, t) {
1000
1000
  return t ? `-${t.toLowerCase()}-${e}` : e;
1001
1001
  }
1002
- function Yt(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];
1006
1006
  return t;
1007
1007
  }
1008
- ue.default = dt();
1008
+ fe.default = ht();
1009
1009
  Object.defineProperty(F, "__esModule", {
1010
1010
  value: !0
1011
1011
  });
1012
- F.addClassName = gt;
1013
- F.addEvent = Lt;
1014
- F.addUserSelectStyles = Zt;
1015
- F.createCSSTransform = Vt;
1016
- F.createSVGTransform = Gt;
1017
- F.getTouch = Jt;
1018
- F.getTouchIdentifier = Kt;
1019
- F.getTranslation = Ye;
1020
- F.innerHeight = Bt;
1021
- F.innerWidth = Ht;
1022
- F.matchesSelector = mt;
1012
+ F.addClassName = vt;
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
+ F.getTranslation = Ue;
1020
+ F.innerHeight = Ht;
1021
+ F.innerWidth = zt;
1022
+ F.matchesSelector = yt;
1023
1023
  F.matchesSelectorAndParentsTo = Wt;
1024
- F.offsetXYFromParent = zt;
1025
- F.outerHeight = Xt;
1026
- F.outerWidth = qt;
1027
- F.removeClassName = yt;
1028
- F.removeEvent = Ut;
1029
- F.scheduleRemoveUserSelectStyles = Qt;
1030
- var J = te, rt = ht(ue);
1031
- function ht(e, t) {
1024
+ F.offsetXYFromParent = Vt;
1025
+ F.outerHeight = qt;
1026
+ F.outerWidth = Bt;
1027
+ F.removeClassName = bt;
1028
+ F.removeEvent = Xt;
1029
+ F.scheduleRemoveUserSelectStyles = er;
1030
+ var J = te, at = mt(fe);
1031
+ function mt(e, t) {
1032
1032
  if (typeof WeakMap == "function") var r = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap();
1033
- return (ht = function(a, i) {
1033
+ return (mt = function(a, i) {
1034
1034
  if (!i && a && a.__esModule) return a;
1035
- var d, c, h = { __proto__: null, default: a };
1036
- if (a === null || typeof a != "object" && typeof a != "function") return h;
1037
- if (d = i ? o : r) {
1038
- if (d.has(a)) return d.get(a);
1039
- d.set(a, h);
1040
- }
1041
- for (const g in a) g !== "default" && {}.hasOwnProperty.call(a, g) && ((c = (d = Object.defineProperty) && Object.getOwnPropertyDescriptor(a, g)) && (c.get || c.set) ? d(h, g, c) : h[g] = a[g]);
1042
- return h;
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
- let ve = "";
1046
- function mt(e, t) {
1047
- return ve || (ve = (0, J.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(r) {
1045
+ let be = "";
1046
+ function yt(e, t) {
1047
+ return be || (be = (0, J.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(r) {
1048
1048
  return (0, J.isFunction)(e[r]);
1049
- })), (0, J.isFunction)(e[ve]) ? e[ve](t) : !1;
1049
+ })), (0, J.isFunction)(e[be]) ? e[be](t) : !1;
1050
1050
  }
1051
1051
  function Wt(e, t, r) {
1052
1052
  let o = e;
1053
1053
  do {
1054
- if (mt(o, t)) return !0;
1054
+ if (yt(o, t)) return !0;
1055
1055
  if (o === r) return !1;
1056
1056
  o = o.parentNode;
1057
1057
  } while (o);
1058
1058
  return !1;
1059
1059
  }
1060
- function Lt(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 Lt(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 Ut(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,79 +1073,79 @@ function Ut(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 Xt(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 qt(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 Bt(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 Ht(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 zt(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, d = (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: d
1103
+ y: u
1104
1104
  };
1105
1105
  }
1106
- function Vt(e, t) {
1107
- const r = Ye(e, t, "px");
1106
+ function Gt(e, t) {
1107
+ const r = Ue(e, t, "px");
1108
1108
  return {
1109
- [(0, rt.browserPrefixToKey)("transform", rt.default)]: r
1109
+ [(0, at.browserPrefixToKey)("transform", at.default)]: r
1110
1110
  };
1111
1111
  }
1112
- function Gt(e, t) {
1113
- return Ye(e, t, "");
1112
+ function Jt(e, t) {
1113
+ return Ue(e, t, "");
1114
1114
  }
1115
- function Ye(e, t, r) {
1115
+ function Ue(e, t, r) {
1116
1116
  let {
1117
1117
  x: o,
1118
1118
  y: a
1119
1119
  } = e, i = `translate(${o}${r},${a}${r})`;
1120
1120
  if (t) {
1121
- const d = `${typeof t.x == "string" ? t.x : t.x + r}`, c = `${typeof t.y == "string" ? t.y : t.y + r}`;
1122
- i = `translate(${d}, ${c})` + 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 Jt(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 Kt(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 Zt(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
- `, e.getElementsByTagName("head")[0].appendChild(t)), e.body && gt(e.body, "react-draggable-transparent-selection");
1138
+ `, e.getElementsByTagName("head")[0].appendChild(t)), e.body && vt(e.body, "react-draggable-transparent-selection");
1139
1139
  }
1140
- function Qt(e) {
1140
+ function er(e) {
1141
1141
  window.requestAnimationFrame ? window.requestAnimationFrame(() => {
1142
- nt(e);
1143
- }) : nt(e);
1142
+ st(e);
1143
+ }) : st(e);
1144
1144
  }
1145
- function nt(e) {
1145
+ function st(e) {
1146
1146
  if (e)
1147
1147
  try {
1148
- if (e.body && yt(e.body, "react-draggable-transparent-selection"), e.selection)
1148
+ if (e.body && bt(e.body, "react-draggable-transparent-selection"), e.selection)
1149
1149
  e.selection.empty();
1150
1150
  else {
1151
1151
  const t = (e.defaultView || window).getSelection();
@@ -1154,66 +1154,66 @@ function nt(e) {
1154
1154
  } catch {
1155
1155
  }
1156
1156
  }
1157
- function gt(e, t) {
1157
+ function vt(e, t) {
1158
1158
  e.classList ? e.classList.add(t) : e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`)) || (e.className += ` ${t}`);
1159
1159
  }
1160
- function yt(e, t) {
1160
+ function bt(e, t) {
1161
1161
  e.classList ? e.classList.remove(t) : e.className = e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`, "g"), "");
1162
1162
  }
1163
1163
  var re = {};
1164
1164
  Object.defineProperty(re, "__esModule", {
1165
1165
  value: !0
1166
1166
  });
1167
- re.canDragX = rr;
1168
- re.canDragY = nr;
1169
- re.createCoreData = ar;
1170
- re.createDraggableData = sr;
1171
- re.getBoundPosition = er;
1172
- re.getControlPosition = or;
1173
- re.snapToGrid = tr;
1174
- var G = te, fe = F;
1175
- function er(e, t, r) {
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
+ var G = te, de = F;
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 : ir(o);
1181
- const a = We(e);
1180
+ o = typeof o == "string" ? o : lr(o);
1181
+ const a = Xe(e);
1182
1182
  if (typeof o == "string") {
1183
1183
  const {
1184
1184
  ownerDocument: i
1185
- } = a, d = i.defaultView;
1186
- let c;
1187
- if (o === "parent" ? c = a.parentNode : c = a.getRootNode().querySelector(o), !(c instanceof d.HTMLElement))
1185
+ } = a, u = i.defaultView;
1186
+ let l;
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 h = c, g = d.getComputedStyle(a), v = d.getComputedStyle(h);
1189
+ const d = l, m = u.getComputedStyle(a), b = u.getComputedStyle(d);
1190
1190
  o = {
1191
- left: -a.offsetLeft + (0, G.int)(v.paddingLeft) + (0, G.int)(g.marginLeft),
1192
- top: -a.offsetTop + (0, G.int)(v.paddingTop) + (0, G.int)(g.marginTop),
1193
- right: (0, fe.innerWidth)(h) - (0, fe.outerWidth)(a) - a.offsetLeft + (0, G.int)(v.paddingRight) - (0, G.int)(g.marginRight),
1194
- bottom: (0, fe.innerHeight)(h) - (0, fe.outerHeight)(a) - a.offsetTop + (0, G.int)(v.paddingBottom) - (0, G.int)(g.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 tr(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 rr(e) {
1203
+ function nr(e) {
1204
1204
  return e.props.axis === "both" || e.props.axis === "x";
1205
1205
  }
1206
- function nr(e) {
1206
+ function or(e) {
1207
1207
  return e.props.axis === "both" || e.props.axis === "y";
1208
1208
  }
1209
- function or(e, t, r) {
1210
- const o = typeof t == "number" ? (0, fe.getTouch)(e, t) : null;
1209
+ function ar(e, t, r) {
1210
+ const o = typeof t == "number" ? (0, de.getTouch)(e, t) : null;
1211
1211
  if (typeof t == "number" && !o) return null;
1212
- const a = We(r), i = r.props.offsetParent || a.offsetParent || a.ownerDocument.body;
1213
- return (0, fe.offsetXYFromParent)(o || e, i, r.props.scale);
1212
+ const a = Xe(r), i = r.props.offsetParent || a.offsetParent || a.ownerDocument.body;
1213
+ return (0, de.offsetXYFromParent)(o || e, i, r.props.scale);
1214
1214
  }
1215
- function ar(e, t, r) {
1216
- const o = !(0, G.isNum)(e.lastX), a = We(e);
1215
+ function sr(e, t, r) {
1216
+ const o = !(0, G.isNum)(e.lastX), a = Xe(e);
1217
1217
  return o ? {
1218
1218
  node: a,
1219
1219
  deltaX: 0,
@@ -1232,7 +1232,7 @@ function ar(e, t, r) {
1232
1232
  y: r
1233
1233
  };
1234
1234
  }
1235
- function sr(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 sr(e, t) {
1244
1244
  lastY: e.state.y
1245
1245
  };
1246
1246
  }
1247
- function ir(e) {
1247
+ function lr(e) {
1248
1248
  return {
1249
1249
  left: e.left,
1250
1250
  top: e.top,
@@ -1252,49 +1252,49 @@ function ir(e) {
1252
1252
  bottom: e.bottom
1253
1253
  };
1254
1254
  }
1255
- function We(e) {
1255
+ function Xe(e) {
1256
1256
  const t = e.findDOMNode();
1257
1257
  if (!t)
1258
1258
  throw new Error("<DraggableCore>: Unmounted during event!");
1259
1259
  return t;
1260
1260
  }
1261
- var Se = {}, xe = {};
1262
- Object.defineProperty(xe, "__esModule", {
1261
+ var Te = {}, Ee = {};
1262
+ Object.defineProperty(Ee, "__esModule", {
1263
1263
  value: !0
1264
1264
  });
1265
- xe.default = lr;
1266
- function lr() {
1265
+ Ee.default = cr;
1266
+ function cr() {
1267
1267
  }
1268
- Object.defineProperty(Se, "__esModule", {
1268
+ Object.defineProperty(Te, "__esModule", {
1269
1269
  value: !0
1270
1270
  });
1271
- Se.default = void 0;
1272
- var Oe = vt(Ie), B = Le(ut), cr = Le(st), q = F, le = re, De = te, he = Le(xe);
1273
- function Le(e) {
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
+ function qe(e) {
1274
1274
  return e && e.__esModule ? e : { default: e };
1275
1275
  }
1276
- function vt(e, t) {
1276
+ function St(e, t) {
1277
1277
  if (typeof WeakMap == "function") var r = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap();
1278
- return (vt = function(a, i) {
1278
+ return (St = function(a, i) {
1279
1279
  if (!i && a && a.__esModule) return a;
1280
- var d, c, h = { __proto__: null, default: a };
1281
- if (a === null || typeof a != "object" && typeof a != "function") return h;
1282
- if (d = i ? o : r) {
1283
- if (d.has(a)) return d.get(a);
1284
- d.set(a, h);
1285
- }
1286
- for (const g in a) g !== "default" && {}.hasOwnProperty.call(a, g) && ((c = (d = Object.defineProperty) && Object.getOwnPropertyDescriptor(a, g)) && (c.get || c.set) ? d(h, g, c) : h[g] = a[g]);
1287
- return h;
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 = ur(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 ur(e) {
1294
- var t = fr(e, "string");
1293
+ function fr(e) {
1294
+ var t = dr(e, "string");
1295
1295
  return typeof t == "symbol" ? t : t + "";
1296
1296
  }
1297
- function fr(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, Te = class extends Oe.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, Te = class extends Oe.Component {
1334
1334
  const i = (0, le.getControlPosition)(t, a, this);
1335
1335
  if (i == null) return;
1336
1336
  const {
1337
- x: d,
1338
- y: c
1339
- } = i, h = (0, le.createCoreData)(this, d, c);
1340
- (0, he.default)("DraggableCore: handleDragStart: %j", h), (0, he.default)("calling", this.props.onStart), !(this.props.onStart(t, h) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, q.addUserSelectStyles)(o), this.dragging = !0, this.lastX = d, this.lastY = c, (0, q.addEvent)(o, ce.move, this.handleDrag), (0, q.addEvent)(o, ce.stop, this.handleDragStop));
1337
+ x: u,
1338
+ y: l
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, Te = class extends Oe.Component {
1346
1346
  y: a
1347
1347
  } = r;
1348
1348
  if (Array.isArray(this.props.grid)) {
1349
- let c = o - this.lastX, h = a - this.lastY;
1350
- if ([c, h] = (0, le.snapToGrid)(this.props.grid, c, h), !c && !h) return;
1351
- o = this.lastX + c, a = this.lastY + h;
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
- if ((0, he.default)("DraggableCore: handleDrag: %j", i), this.props.onDrag(t, i) === !1 || this.mounted === !1) {
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 h = document.createEvent("MouseEvents");
1359
- h.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), this.handleDragStop(h);
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,13 +1370,13 @@ let ce = Z.mouse, Te = class extends Oe.Component {
1370
1370
  y: a
1371
1371
  } = r;
1372
1372
  if (Array.isArray(this.props.grid)) {
1373
- let h = o - this.lastX || 0, g = a - this.lastY || 0;
1374
- [h, g] = (0, le.snapToGrid)(this.props.grid, h, g), o = this.lastX + h, a = this.lastY + g;
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;
1378
- const c = this.findDOMNode();
1379
- c && this.props.enableUserSelectHack && (0, q.scheduleRemoveUserSelectStyles)(c.ownerDocument), (0, he.default)("DraggableCore: handleDragStop: %j", i), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, c && ((0, he.default)("DraggableCore: Removing handlers"), (0, q.removeEvent)(c.ownerDocument, ce.move, this.handleDrag), (0, q.removeEvent)(c.ownerDocument, ce.stop, this.handleDragStop));
1378
+ const l = this.findDOMNode();
1379
+ l && this.props.enableUserSelectHack && (0, q.scheduleRemoveUserSelectStyles)(l.ownerDocument), (0, ge.default)("DraggableCore: handleDragStop: %j", i), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, l && ((0, ge.default)("DraggableCore: Removing handlers"), (0, q.removeEvent)(l.ownerDocument, ce.move, this.handleDrag), (0, q.removeEvent)(l.ownerDocument, ce.stop, this.handleDragStop));
1380
1380
  }), H(this, "onMouseDown", (t) => (ce = Z.mouse, this.handleDragStart(t))), H(this, "onMouseUp", (t) => (ce = Z.mouse, this.handleDragStop(t))), H(this, "onTouchStart", (t) => (ce = Z.touch, this.handleDragStart(t))), H(this, "onTouchEnd", (t) => (ce = Z.touch, this.handleDragStop(t)));
1381
1381
  }
1382
1382
  componentDidMount() {
@@ -1402,10 +1402,10 @@ let ce = Z.mouse, Te = class extends Oe.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 : cr.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__ */ Oe.cloneElement(Oe.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, Te = class extends Oe.Component {
1417
1417
  });
1418
1418
  }
1419
1419
  };
1420
- Se.default = Te;
1421
- H(Te, "displayName", "DraggableCore");
1422
- H(Te, "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(Te, "propTypes", {
1546
1546
  /**
1547
1547
  * These properties should be defined on the child, not here.
1548
1548
  */
1549
- className: De.dontSetMe,
1550
- style: De.dontSetMe,
1551
- transform: De.dontSetMe
1549
+ className: Ae.dontSetMe,
1550
+ style: Ae.dontSetMe,
1551
+ transform: Ae.dontSetMe
1552
1552
  });
1553
- H(Te, "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(Te, "defaultProps", {
1572
1572
  }), Object.defineProperty(e, "DraggableCore", {
1573
1573
  enumerable: !0,
1574
1574
  get: function() {
1575
- return h.default;
1575
+ return d.default;
1576
1576
  }
1577
1577
  }), e.default = void 0;
1578
- var t = P(Ie), r = v(ut), o = v(st), a = Nt, i = F, d = re, c = te, h = v(Se), g = v(xe);
1579
- function v(_) {
1580
- return _ && _.__esModule ? _ : { default: _ };
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
+ return g && g.__esModule ? g : { default: g };
1581
1581
  }
1582
- function P(_, x) {
1583
- if (typeof WeakMap == "function") var E = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakMap();
1584
- return (P = function(s, R) {
1585
- if (!R && s && s.__esModule) return s;
1586
- var L, U, Y = { __proto__: null, default: 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
+ var W, U, Y = { __proto__: null, default: s };
1587
1587
  if (s === null || typeof s != "object" && typeof s != "function") return Y;
1588
- if (L = R ? S : E) {
1589
- if (L.has(s)) return L.get(s);
1590
- L.set(s, Y);
1588
+ if (W = O ? E : w) {
1589
+ if (W.has(s)) return W.get(s);
1590
+ W.set(s, Y);
1591
1591
  }
1592
- for (const W in s) W !== "default" && {}.hasOwnProperty.call(s, W) && ((U = (L = Object.defineProperty) && Object.getOwnPropertyDescriptor(s, W)) && (U.get || U.set) ? L(Y, W, U) : Y[W] = s[W]);
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
- })(_, x);
1594
+ })(g, x);
1595
1595
  }
1596
- function A() {
1597
- return A = Object.assign ? Object.assign.bind() : function(_) {
1596
+ function T() {
1597
+ return T = Object.assign ? Object.assign.bind() : function(g) {
1598
1598
  for (var x = 1; x < arguments.length; x++) {
1599
- var E = arguments[x];
1600
- for (var S in E) ({}).hasOwnProperty.call(E, S) && (_[S] = E[S]);
1599
+ var w = arguments[x];
1600
+ for (var E in w) ({}).hasOwnProperty.call(w, E) && (g[E] = w[E]);
1601
1601
  }
1602
- return _;
1603
- }, A.apply(null, arguments);
1602
+ return g;
1603
+ }, T.apply(null, arguments);
1604
1604
  }
1605
- function N(_, x, E) {
1606
- return (x = I(x)) in _ ? Object.defineProperty(_, x, { value: E, enumerable: !0, configurable: !0, writable: !0 }) : _[x] = E, _;
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
- function I(_) {
1609
- var x = $(_, "string");
1608
+ function I(g) {
1609
+ var x = M(g, "string");
1610
1610
  return typeof x == "symbol" ? x : x + "";
1611
1611
  }
1612
- function $(_, x) {
1613
- if (typeof _ != "object" || !_) return _;
1614
- var E = _[Symbol.toPrimitive];
1615
- if (E !== void 0) {
1616
- var S = E.call(_, x);
1617
- if (typeof S != "object") return S;
1612
+ function M(g, x) {
1613
+ if (typeof g != "object" || !g) return g;
1614
+ var w = g[Symbol.toPrimitive];
1615
+ if (w !== void 0) {
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 (x === "string" ? String : Number)(_);
1620
+ return (x === "string" ? String : Number)(g);
1621
1621
  }
1622
- class T extends t.Component {
1622
+ class $ extends t.Component {
1623
1623
  // React 16.3+
1624
1624
  // Arity (props, state)
1625
- static getDerivedStateFromProps(x, E) {
1625
+ static getDerivedStateFromProps(x, w) {
1626
1626
  let {
1627
- position: S
1627
+ position: E
1628
1628
  } = x, {
1629
1629
  prevPropsPosition: s
1630
- } = E;
1631
- return S && (!s || S.x !== s.x || S.y !== s.y) ? ((0, g.default)("Draggable: getDerivedStateFromProps %j", {
1632
- position: S,
1630
+ } = w;
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: S.x,
1636
- y: S.y,
1635
+ x: E.x,
1636
+ y: E.y,
1637
1637
  prevPropsPosition: {
1638
- ...S
1638
+ ...E
1639
1639
  }
1640
1640
  }) : null;
1641
1641
  }
1642
1642
  constructor(x) {
1643
- super(x), N(this, "onDragStart", (E, S) => {
1644
- if ((0, g.default)("Draggable: onDragStart: %j", S), this.props.onStart(E, (0, d.createDraggableData)(this, S)) === !1) return !1;
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
- }), N(this, "onDrag", (E, S) => {
1649
+ }), R(this, "onDrag", (w, E) => {
1650
1650
  if (!this.state.dragging) return !1;
1651
- (0, g.default)("Draggable: onDrag: %j", S);
1652
- const s = (0, d.createDraggableData)(this, S), R = {
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(Te, "defaultProps", {
1659
1659
  const {
1660
1660
  x: U,
1661
1661
  y: Y
1662
- } = R;
1663
- R.x += this.state.slackX, R.y += this.state.slackY;
1664
- const [W, ne] = (0, d.getBoundPosition)(this, R.x, R.y);
1665
- R.x = W, R.y = ne, R.slackX = this.state.slackX + (U - R.x), R.slackY = this.state.slackY + (Y - R.y), s.x = R.x, s.y = R.y, s.deltaX = R.x - this.state.x, s.deltaY = R.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
- if (this.props.onDrag(E, s) === !1) return !1;
1668
- this.setState(R);
1669
- }), N(this, "onDragStop", (E, S) => {
1670
- if (!this.state.dragging || this.props.onStop(E, (0, d.createDraggableData)(this, S)) === !1) return !1;
1671
- (0, g.default)("Draggable: onDragStop: %j", S);
1672
- const R = {
1667
+ if (this.props.onDrag(w, s) === !1) return !1;
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,9 +1679,9 @@ H(Te, "defaultProps", {
1679
1679
  x: U,
1680
1680
  y: Y
1681
1681
  } = this.props.position;
1682
- R.x = U, R.y = Y;
1682
+ O.x = U, O.y = Y;
1683
1683
  }
1684
- this.setState(R);
1684
+ this.setState(O);
1685
1685
  }), this.state = {
1686
1686
  // Whether or not we are currently dragging.
1687
1687
  dragging: !1,
@@ -1713,52 +1713,52 @@ H(Te, "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 x, E;
1717
- return ((E = (x = this.props) == null ? void 0 : x.nodeRef) == null ? void 0 : E.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
1721
  axis: x,
1722
- bounds: E,
1723
- children: S,
1722
+ bounds: w,
1723
+ children: E,
1724
1724
  defaultPosition: s,
1725
- defaultClassName: R,
1726
- defaultClassNameDragging: L,
1725
+ defaultClassName: O,
1726
+ defaultClassNameDragging: W,
1727
1727
  defaultClassNameDragged: U,
1728
1728
  position: Y,
1729
- positionOffset: W,
1729
+ positionOffset: L,
1730
1730
  scale: ne,
1731
1731
  ...oe
1732
1732
  } = this.props;
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, d.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, d.canDragY)(this) && X ? this.state.y : V.y
1738
+ y: (0, u.canDragY)(this) && X ? this.state.y : V.y
1739
1739
  };
1740
- this.state.isElementSVG ? K = (0, i.createSVGTransform)(Q, W) : ae = (0, i.createCSSTransform)(Q, W);
1741
- const ie = (0, a.clsx)(S.props.className || "", R, {
1742
- [L]: this.state.dragging,
1740
+ this.state.isElementSVG ? K = (0, i.createSVGTransform)(Q, L) : ae = (0, i.createCSSTransform)(Q, L);
1741
+ const ie = (0, a.clsx)(E.props.className || "", O, {
1742
+ [W]: this.state.dragging,
1743
1743
  [U]: this.state.dragged
1744
1744
  });
1745
- return /* @__PURE__ */ t.createElement(h.default, A({}, 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(S), {
1749
+ }), /* @__PURE__ */ t.cloneElement(t.Children.only(E), {
1750
1750
  className: ie,
1751
1751
  style: {
1752
- ...S.props.style,
1752
+ ...E.props.style,
1753
1753
  ...ae
1754
1754
  },
1755
1755
  transform: K
1756
1756
  }));
1757
1757
  }
1758
1758
  }
1759
- e.default = T, N(T, "displayName", "Draggable"), N(T, "propTypes", {
1759
+ e.default = $, R($, "displayName", "Draggable"), R($, "propTypes", {
1760
1760
  // Accepts all props <DraggableCore> accepts.
1761
- ...h.default.propTypes,
1761
+ ...d.default.propTypes,
1762
1762
  /**
1763
1763
  * `axis` determines which axis the draggable can move.
1764
1764
  *
@@ -1860,11 +1860,11 @@ H(Te, "defaultProps", {
1860
1860
  /**
1861
1861
  * These properties should be defined on the child, not here.
1862
1862
  */
1863
- className: c.dontSetMe,
1864
- style: c.dontSetMe,
1865
- transform: c.dontSetMe
1866
- }), N(T, "defaultProps", {
1867
- ...h.default.defaultProps,
1863
+ className: l.dontSetMe,
1864
+ style: l.dontSetMe,
1865
+ transform: l.dontSetMe
1866
+ }), R($, "defaultProps", {
1867
+ ...d.default.defaultProps,
1868
1868
  axis: "both",
1869
1869
  bounds: !1,
1870
1870
  defaultClassName: "react-draggable",
@@ -1876,42 +1876,42 @@ H(Te, "defaultProps", {
1876
1876
  },
1877
1877
  scale: 1
1878
1878
  });
1879
- })(it);
1879
+ })(ct);
1880
1880
  const {
1881
- default: bt,
1882
- DraggableCore: dr
1883
- } = it;
1884
- be.exports = bt;
1885
- be.exports.default = bt;
1886
- be.exports.DraggableCore = dr;
1887
- var pr = be.exports;
1888
- const hr = /* @__PURE__ */ xt(pr), mr = ({
1881
+ default: xt,
1882
+ DraggableCore: pr
1883
+ } = ct;
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, d] = me(t), c = St(null);
1896
- return /* @__PURE__ */ u.jsx(
1897
- hr,
1895
+ const [i, u] = ue(t), l = Se(null);
1896
+ return /* @__PURE__ */ f.jsx(
1897
+ gr,
1898
1898
  {
1899
- nodeRef: c,
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: c, 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: () => d(!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,109 @@ const hr = /* @__PURE__ */ xt(pr), mr = ({
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
- }, gr = ({
1933
+ }, yr = ({
1934
1934
  value: e,
1935
1935
  onChange: t,
1936
1936
  fontFamilies: r
1937
- }) => /* @__PURE__ */ u.jsxs("div", { className: "font-control-group", children: [
1938
- /* @__PURE__ */ u.jsx("label", { className: "font-control-label", children: "Font Family" }),
1939
- /* @__PURE__ */ u.jsx(
1940
- "select",
1941
- {
1942
- className: "font-control-input font-control-select",
1943
- value: e,
1944
- onChange: (o) => t(o.target.value),
1945
- style: { fontFamily: e },
1946
- children: r.map((o) => /* @__PURE__ */ u.jsx("option", { value: o, style: { fontFamily: o }, children: o }, o))
1937
+ }) => {
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
+ (g) => g.toLowerCase().includes(i.toLowerCase())
1940
+ );
1941
+ me(() => {
1942
+ const g = (x) => {
1943
+ m.current && !m.current.contains(x.target) && (a(!1), u(""), d(-1));
1944
+ };
1945
+ return o && document.addEventListener("mousedown", g), () => {
1946
+ document.removeEventListener("mousedown", g);
1947
+ };
1948
+ }, [o]), me(() => {
1949
+ if (l >= 0 && C.current) {
1950
+ const g = C.current.children[l];
1951
+ g && g.scrollIntoView({
1952
+ block: "nearest",
1953
+ behavior: "smooth"
1954
+ });
1947
1955
  }
1948
- )
1949
- ] }), yr = ({
1956
+ }, [l]);
1957
+ const R = (g) => {
1958
+ t(g), a(!1), u(""), d(-1);
1959
+ }, I = (g) => {
1960
+ if (!o && (g.key === "Enter" || g.key === "ArrowDown")) {
1961
+ g.preventDefault(), a(!0);
1962
+ return;
1963
+ }
1964
+ if (o)
1965
+ switch (g.key) {
1966
+ case "ArrowDown":
1967
+ g.preventDefault(), d(
1968
+ (x) => x < T.length - 1 ? x + 1 : x
1969
+ );
1970
+ break;
1971
+ case "ArrowUp":
1972
+ g.preventDefault(), d((x) => x > 0 ? x - 1 : 0);
1973
+ break;
1974
+ case "Enter":
1975
+ g.preventDefault(), l >= 0 && T[l] && R(T[l]);
1976
+ break;
1977
+ case "Escape":
1978
+ g.preventDefault(), a(!1), u(""), d(-1);
1979
+ break;
1980
+ }
1981
+ }, M = (g) => {
1982
+ u(g.target.value), d(-1), o || a(!0);
1983
+ }, $ = () => {
1984
+ a(!0), b.current && b.current.select();
1985
+ };
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
+ "input",
1991
+ {
1992
+ ref: b,
1993
+ type: "text",
1994
+ className: "font-control-input font-control-search-input",
1995
+ value: o ? i : e,
1996
+ onChange: M,
1997
+ onClick: $,
1998
+ onKeyDown: I,
1999
+ placeholder: "Search fonts...",
2000
+ style: { fontFamily: o ? "inherit" : e }
2001
+ }
2002
+ ),
2003
+ o && /* @__PURE__ */ f.jsx("div", { className: "font-control-dropdown", ref: C, children: T.length > 0 ? T.map((g, x) => /* @__PURE__ */ f.jsx(
2004
+ "div",
2005
+ {
2006
+ className: `font-control-dropdown-item ${x === l ? "highlighted" : ""} ${g === e ? "selected" : ""}`,
2007
+ onClick: () => R(g),
2008
+ onMouseEnter: () => d(x),
2009
+ style: { fontFamily: g },
2010
+ children: g
2011
+ },
2012
+ g
2013
+ )) : /* @__PURE__ */ f.jsx("div", { className: "font-control-dropdown-item no-results", children: "No fonts found" }) })
2014
+ ] })
2015
+ ] });
2016
+ }, vr = ({
1950
2017
  value: e,
1951
2018
  onChange: t,
1952
2019
  min: r,
1953
2020
  max: o,
1954
2021
  step: a
1955
- }) => /* @__PURE__ */ u.jsxs("div", { className: "font-control-group", children: [
1956
- /* @__PURE__ */ u.jsx("label", { className: "font-control-label", children: "Font Size" }),
1957
- /* @__PURE__ */ u.jsxs("div", { className: "font-control-slider-container", children: [
1958
- /* @__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(
1959
2026
  "input",
1960
2027
  {
1961
2028
  type: "range",
@@ -1967,7 +2034,7 @@ const hr = /* @__PURE__ */ xt(pr), mr = ({
1967
2034
  onChange: (i) => t(Number(i.target.value))
1968
2035
  }
1969
2036
  ),
1970
- /* @__PURE__ */ u.jsx(
2037
+ /* @__PURE__ */ f.jsx(
1971
2038
  "input",
1972
2039
  {
1973
2040
  type: "number",
@@ -1980,7 +2047,7 @@ const hr = /* @__PURE__ */ xt(pr), mr = ({
1980
2047
  }
1981
2048
  )
1982
2049
  ] })
1983
- ] }), vr = [
2050
+ ] }), br = [
1984
2051
  { value: 100, label: "Thin" },
1985
2052
  { value: 200, label: "Extra Light" },
1986
2053
  { value: 300, label: "Light" },
@@ -1990,18 +2057,18 @@ const hr = /* @__PURE__ */ xt(pr), mr = ({
1990
2057
  { value: 700, label: "Bold" },
1991
2058
  { value: 800, label: "Extra Bold" },
1992
2059
  { value: 900, label: "Black" }
1993
- ], br = ({
2060
+ ], Sr = ({
1994
2061
  value: e,
1995
2062
  onChange: t
1996
- }) => /* @__PURE__ */ u.jsxs("div", { className: "font-control-group", children: [
1997
- /* @__PURE__ */ u.jsx("label", { className: "font-control-label", children: "Font Weight" }),
1998
- /* @__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(
1999
2066
  "select",
2000
2067
  {
2001
2068
  className: "font-control-input font-control-select",
2002
2069
  value: e,
2003
2070
  onChange: (r) => t(Number(r.target.value)),
2004
- children: vr.map((r) => /* @__PURE__ */ u.jsxs("option", { value: r.value, children: [
2071
+ children: br.map((r) => /* @__PURE__ */ f.jsxs("option", { value: r.value, children: [
2005
2072
  r.label,
2006
2073
  " (",
2007
2074
  r.value,
@@ -2009,13 +2076,13 @@ const hr = /* @__PURE__ */ xt(pr), mr = ({
2009
2076
  ] }, r.value))
2010
2077
  }
2011
2078
  )
2012
- ] }), Sr = ({
2079
+ ] }), xr = ({
2013
2080
  value: e,
2014
2081
  onChange: t
2015
- }) => /* @__PURE__ */ u.jsxs("div", { className: "font-control-group", children: [
2016
- /* @__PURE__ */ u.jsx("label", { className: "font-control-label", children: "Line Height" }),
2017
- /* @__PURE__ */ u.jsxs("div", { className: "font-control-slider-container", children: [
2018
- /* @__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(
2019
2086
  "input",
2020
2087
  {
2021
2088
  type: "range",
@@ -2027,7 +2094,7 @@ const hr = /* @__PURE__ */ xt(pr), mr = ({
2027
2094
  onChange: (r) => t(Number(r.target.value))
2028
2095
  }
2029
2096
  ),
2030
- /* @__PURE__ */ u.jsx(
2097
+ /* @__PURE__ */ f.jsx(
2031
2098
  "input",
2032
2099
  {
2033
2100
  type: "number",
@@ -2040,13 +2107,13 @@ const hr = /* @__PURE__ */ xt(pr), mr = ({
2040
2107
  }
2041
2108
  )
2042
2109
  ] })
2043
- ] }), xr = ({
2110
+ ] }), Tr = ({
2044
2111
  value: e,
2045
2112
  onChange: t
2046
- }) => /* @__PURE__ */ u.jsxs("div", { className: "font-control-group", children: [
2047
- /* @__PURE__ */ u.jsx("label", { className: "font-control-label", children: "Letter Spacing" }),
2048
- /* @__PURE__ */ u.jsxs("div", { className: "font-control-slider-container", children: [
2049
- /* @__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(
2050
2117
  "input",
2051
2118
  {
2052
2119
  type: "range",
@@ -2058,7 +2125,7 @@ const hr = /* @__PURE__ */ xt(pr), mr = ({
2058
2125
  onChange: (r) => t(Number(r.target.value))
2059
2126
  }
2060
2127
  ),
2061
- /* @__PURE__ */ u.jsx(
2128
+ /* @__PURE__ */ f.jsx(
2062
2129
  "input",
2063
2130
  {
2064
2131
  type: "number",
@@ -2071,32 +2138,32 @@ const hr = /* @__PURE__ */ xt(pr), mr = ({
2071
2138
  }
2072
2139
  )
2073
2140
  ] })
2074
- ] }), Tr = [
2141
+ ] }), Er = [
2075
2142
  { value: "none", label: "None" },
2076
2143
  { value: "uppercase", label: "UPPERCASE" },
2077
2144
  { value: "lowercase", label: "lowercase" },
2078
2145
  { value: "capitalize", label: "Capitalize" }
2079
- ], Er = ({
2146
+ ], wr = ({
2080
2147
  value: e,
2081
2148
  onChange: t
2082
- }) => /* @__PURE__ */ u.jsxs("div", { className: "font-control-group", children: [
2083
- /* @__PURE__ */ u.jsx("label", { className: "font-control-label", children: "Text Transform" }),
2084
- /* @__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(
2085
2152
  "select",
2086
2153
  {
2087
2154
  className: "font-control-input font-control-select",
2088
2155
  value: e,
2089
2156
  onChange: (r) => t(r.target.value),
2090
- children: Tr.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))
2091
2158
  }
2092
2159
  )
2093
2160
  ] }), _r = ({
2094
2161
  value: e,
2095
2162
  onChange: t
2096
- }) => /* @__PURE__ */ u.jsxs("div", { className: "font-control-group", children: [
2097
- /* @__PURE__ */ u.jsx("label", { className: "font-control-label", children: "Text Color" }),
2098
- /* @__PURE__ */ u.jsxs("div", { className: "font-control-color-input", children: [
2099
- /* @__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(
2100
2167
  "input",
2101
2168
  {
2102
2169
  type: "color",
@@ -2104,7 +2171,7 @@ const hr = /* @__PURE__ */ xt(pr), mr = ({
2104
2171
  onChange: (r) => t(r.target.value)
2105
2172
  }
2106
2173
  ) }),
2107
- /* @__PURE__ */ u.jsx(
2174
+ /* @__PURE__ */ f.jsx(
2108
2175
  "input",
2109
2176
  {
2110
2177
  type: "text",
@@ -2115,17 +2182,17 @@ const hr = /* @__PURE__ */ xt(pr), mr = ({
2115
2182
  }
2116
2183
  )
2117
2184
  ] })
2118
- ] }), wr = [
2185
+ ] }), Cr = [
2119
2186
  { value: "left", icon: "⬅" },
2120
2187
  { value: "center", icon: "↔" },
2121
2188
  { value: "right", icon: "➡" },
2122
2189
  { value: "justify", icon: "⬌" }
2123
- ], Cr = ({
2190
+ ], Pr = ({
2124
2191
  value: e,
2125
2192
  onChange: t
2126
- }) => /* @__PURE__ */ u.jsxs("div", { className: "font-control-group", children: [
2127
- /* @__PURE__ */ u.jsx("label", { className: "font-control-label", children: "Text Align" }),
2128
- /* @__PURE__ */ u.jsx("div", { className: "font-control-button-group", children: wr.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(
2129
2196
  "button",
2130
2197
  {
2131
2198
  className: `font-control-button ${e === r.value ? "active" : ""}`,
@@ -2135,41 +2202,41 @@ const hr = /* @__PURE__ */ xt(pr), mr = ({
2135
2202
  },
2136
2203
  r.value
2137
2204
  )) })
2138
- ] }), Ne = ({
2205
+ ] }), ke = ({
2139
2206
  title: e,
2140
2207
  code: t,
2141
2208
  language: r = "css"
2142
2209
  }) => {
2143
- const [o, a] = me(!1), i = async () => {
2210
+ const [o, a] = ue(!1), i = async () => {
2144
2211
  try {
2145
2212
  await navigator.clipboard.writeText(t), a(!0), setTimeout(() => a(!1), 2e3);
2146
- } catch (d) {
2147
- console.error("Failed to copy:", d);
2213
+ } catch (u) {
2214
+ console.error("Failed to copy:", u);
2148
2215
  }
2149
2216
  };
2150
- return /* @__PURE__ */ u.jsxs("div", { className: "font-control-code-block", children: [
2151
- /* @__PURE__ */ u.jsxs("div", { className: "font-control-code-header", children: [
2152
- /* @__PURE__ */ u.jsx("span", { className: "font-control-code-title", children: e }),
2153
- /* @__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(
2154
2221
  "button",
2155
2222
  {
2156
2223
  className: "font-control-copy-button",
2157
2224
  onClick: i,
2158
2225
  type: "button",
2159
- children: o ? /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
2160
- /* @__PURE__ */ u.jsx(
2226
+ children: o ? /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
2227
+ /* @__PURE__ */ f.jsx(
2161
2228
  "svg",
2162
2229
  {
2163
2230
  viewBox: "0 0 24 24",
2164
2231
  fill: "none",
2165
2232
  stroke: "currentColor",
2166
2233
  strokeWidth: "2",
2167
- 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" })
2168
2235
  }
2169
2236
  ),
2170
2237
  "Copied!"
2171
- ] }) : /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
2172
- /* @__PURE__ */ u.jsxs(
2238
+ ] }) : /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
2239
+ /* @__PURE__ */ f.jsxs(
2173
2240
  "svg",
2174
2241
  {
2175
2242
  viewBox: "0 0 24 24",
@@ -2177,8 +2244,8 @@ const hr = /* @__PURE__ */ xt(pr), mr = ({
2177
2244
  stroke: "currentColor",
2178
2245
  strokeWidth: "2",
2179
2246
  children: [
2180
- /* @__PURE__ */ u.jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
2181
- /* @__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" })
2182
2249
  ]
2183
2250
  }
2184
2251
  ),
@@ -2187,25 +2254,25 @@ const hr = /* @__PURE__ */ xt(pr), mr = ({
2187
2254
  }
2188
2255
  )
2189
2256
  ] }),
2190
- /* @__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 }) })
2191
2258
  ] });
2192
- }, ot = /* @__PURE__ */ new Set();
2193
- function Pr(e) {
2194
- if (ot.has(e))
2259
+ }, it = /* @__PURE__ */ new Set();
2260
+ function jr(e) {
2261
+ if (it.has(e))
2195
2262
  return;
2196
2263
  const t = document.createElement("link");
2197
- 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), ot.add(e);
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);
2198
2265
  }
2199
- function jr(e) {
2266
+ function Rr(e) {
2200
2267
  if (!document.querySelector('link[href*="fonts.googleapis.com"]')) {
2201
2268
  const t = document.createElement("link");
2202
2269
  t.rel = "preconnect", t.href = "https://fonts.googleapis.com";
2203
2270
  const r = document.createElement("link");
2204
2271
  r.rel = "preconnect", r.href = "https://fonts.gstatic.com", r.crossOrigin = "anonymous", document.head.appendChild(t), document.head.appendChild(r);
2205
2272
  }
2206
- e.forEach(Pr);
2273
+ e.forEach(jr);
2207
2274
  }
2208
- function Rr(e) {
2275
+ function Or(e) {
2209
2276
  return [
2210
2277
  "Arial",
2211
2278
  "Helvetica",
@@ -2217,7 +2284,7 @@ function Rr(e) {
2217
2284
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
2218
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">`;
2219
2286
  }
2220
- function Or(e) {
2287
+ function Dr(e) {
2221
2288
  return `<h1 style={{
2222
2289
  fontFamily: '${e.fontFamily}',
2223
2290
  fontSize: '${e.fontSize}px',
@@ -2231,7 +2298,7 @@ function Or(e) {
2231
2298
  Your Text Here
2232
2299
  </h1>`;
2233
2300
  }
2234
- function Dr(e) {
2301
+ function Nr(e) {
2235
2302
  return `.my-text {
2236
2303
  font-family: '${e.fontFamily}', sans-serif;
2237
2304
  font-size: ${e.fontSize}px;
@@ -2243,8 +2310,8 @@ function Dr(e) {
2243
2310
  text-align: ${e.textAlign};
2244
2311
  }`;
2245
2312
  }
2246
- const Nr = [
2247
- // Sans-serif - Modern & Clean
2313
+ const Ar = [
2314
+ // Sans-serif - Modern & Clean (40 fonts)
2248
2315
  "Inter",
2249
2316
  "Roboto",
2250
2317
  "Open Sans",
@@ -2256,24 +2323,100 @@ const Nr = [
2256
2323
  "Nunito",
2257
2324
  "Source Sans Pro",
2258
2325
  "DM Sans",
2259
- // Serif - Classic & Elegant
2326
+ "Manrope",
2327
+ "Plus Jakarta Sans",
2328
+ "Outfit",
2329
+ "Space Grotesk",
2330
+ "Rubik",
2331
+ "Karla",
2332
+ "Mulish",
2333
+ "Quicksand",
2334
+ "Barlow",
2335
+ "Josefin Sans",
2336
+ "Lexend",
2337
+ "Hind",
2338
+ "Oxygen",
2339
+ "Ubuntu",
2340
+ "Noto Sans",
2341
+ "PT Sans",
2342
+ "Cabin",
2343
+ "Varela Round",
2344
+ "Asap",
2345
+ "Exo 2",
2346
+ "Archivo",
2347
+ "Titillium Web",
2348
+ "Yantramanav",
2349
+ "Heebo",
2350
+ "Comfortaa",
2351
+ "Alata",
2352
+ "Jost",
2353
+ "Red Hat Display",
2354
+ "Sora",
2355
+ // Serif - Classic & Elegant (20 fonts)
2260
2356
  "Playfair Display",
2261
2357
  "Merriweather",
2262
2358
  "Lora",
2263
2359
  "Crimson Text",
2264
2360
  "EB Garamond",
2265
- // Monospace - Code & Tech
2361
+ "Libre Baskerville",
2362
+ "Cormorant Garamond",
2363
+ "Spectral",
2364
+ "Cardo",
2365
+ "Bitter",
2366
+ "Arvo",
2367
+ "Vollkorn",
2368
+ "Neuton",
2369
+ "Alegreya",
2370
+ "Domine",
2371
+ "Rokkitt",
2372
+ "PT Serif",
2373
+ "Gelasio",
2374
+ "Noticia Text",
2375
+ "Unna",
2376
+ // Monospace - Code & Tech (15 fonts)
2266
2377
  "Fira Code",
2267
2378
  "JetBrains Mono",
2268
2379
  "Inconsolata",
2269
2380
  "Source Code Pro",
2270
- // Display - Bold & Creative
2381
+ "Roboto Mono",
2382
+ "IBM Plex Mono",
2383
+ "Space Mono",
2384
+ "Courier Prime",
2385
+ "Anonymous Pro",
2386
+ "Overpass Mono",
2387
+ "Ubuntu Mono",
2388
+ "PT Mono",
2389
+ "Noto Sans Mono",
2390
+ "Cousine",
2391
+ "Share Tech Mono",
2392
+ // Display - Bold & Creative (15 fonts)
2271
2393
  "Bebas Neue",
2272
2394
  "Oswald",
2273
2395
  "Righteous",
2274
2396
  "Permanent Marker",
2275
- "Pacifico"
2276
- ], Ae = {
2397
+ "Pacifico",
2398
+ "Anton",
2399
+ "Alfa Slab One",
2400
+ "Fredoka One",
2401
+ "Passion One",
2402
+ "Bungee",
2403
+ "Monoton",
2404
+ "Abril Fatface",
2405
+ "Lobster",
2406
+ "Bangers",
2407
+ "Russo One",
2408
+ // Handwriting & Script (10 fonts)
2409
+ "Dancing Script",
2410
+ "Satisfy",
2411
+ "Great Vibes",
2412
+ "Kaushan Script",
2413
+ "Caveat",
2414
+ "Shadows Into Light",
2415
+ "Indie Flower",
2416
+ "Amatic SC",
2417
+ "Patrick Hand",
2418
+ "Courgette"
2419
+ ], Me = {
2277
2420
  fontFamily: "Arial",
2278
2421
  fontSize: 16,
2279
2422
  fontWeight: 400,
@@ -2282,182 +2425,189 @@ const Nr = [
2282
2425
  textTransform: "none",
2283
2426
  color: "#000000",
2284
2427
  textAlign: "left"
2285
- }, $r = ({
2428
+ }, Lr = ({
2286
2429
  value: e,
2287
2430
  onChange: t,
2288
- fontFamilies: r = Nr,
2431
+ fontFamilies: r = Ar,
2289
2432
  minFontSize: o = 8,
2290
2433
  maxFontSize: a = 120,
2291
- fontSizeStep: i = 1,
2292
- title: d = "Font Controls",
2293
- collapsed: c = !1,
2294
- draggable: h = !0,
2295
- position: g
2434
+ fontSizeStep: i = 1
2296
2435
  }) => {
2297
- const [v, P] = me({
2298
- ...Ae,
2299
- ...e
2300
- }), [A, N] = me(!1);
2301
- Xe(() => {
2302
- e && P((T) => ({ ...T, ...e }));
2303
- }, [e]), Xe(() => {
2304
- jr(r);
2436
+ const [u, l] = ue(() => ({ ...Me, ...e })), [d, m] = ue(!1);
2437
+ me(() => {
2438
+ e && l((T) => ({ ...T, ...e }));
2439
+ }, [e]), me(() => {
2440
+ Rr(r);
2305
2441
  }, [r]);
2306
- const I = (T, _) => {
2307
- const x = { ...v, [T]: _ };
2308
- P(x), t == null || t(x);
2309
- }, $ = () => {
2310
- P(Ae), t == null || t(Ae);
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);
2311
2447
  };
2312
- return /* @__PURE__ */ u.jsxs(
2313
- mr,
2314
- {
2315
- title: d,
2316
- collapsed: c,
2317
- draggable: h,
2318
- position: g,
2319
- children: [
2320
- /* @__PURE__ */ u.jsx(
2321
- gr,
2322
- {
2323
- value: v.fontFamily,
2324
- onChange: (T) => I("fontFamily", T),
2325
- fontFamilies: r
2326
- }
2327
- ),
2328
- /* @__PURE__ */ u.jsx(
2329
- yr,
2330
- {
2331
- value: v.fontSize,
2332
- onChange: (T) => I("fontSize", T),
2333
- min: o,
2334
- max: a,
2335
- step: i
2336
- }
2337
- ),
2338
- /* @__PURE__ */ u.jsx(
2339
- br,
2340
- {
2341
- value: v.fontWeight,
2342
- onChange: (T) => I("fontWeight", T)
2343
- }
2344
- ),
2345
- /* @__PURE__ */ u.jsx(
2346
- Sr,
2347
- {
2348
- value: v.lineHeight,
2349
- onChange: (T) => I("lineHeight", T)
2350
- }
2351
- ),
2352
- /* @__PURE__ */ u.jsx(
2353
- xr,
2354
- {
2355
- value: v.letterSpacing,
2356
- onChange: (T) => I("letterSpacing", T)
2357
- }
2358
- ),
2359
- /* @__PURE__ */ u.jsx(
2360
- Er,
2361
- {
2362
- value: v.textTransform,
2363
- onChange: (T) => I("textTransform", T)
2364
- }
2365
- ),
2366
- /* @__PURE__ */ u.jsx(
2367
- _r,
2368
- {
2369
- value: v.color,
2370
- onChange: (T) => I("color", T)
2371
- }
2372
- ),
2373
- /* @__PURE__ */ u.jsx(
2374
- Cr,
2375
- {
2376
- value: v.textAlign,
2377
- onChange: (T) => I("textAlign", T)
2378
- }
2379
- ),
2380
- /* @__PURE__ */ u.jsxs(
2381
- "button",
2382
- {
2383
- className: "font-control-reset-button",
2384
- onClick: $,
2385
- type: "button",
2386
- children: [
2387
- /* @__PURE__ */ u.jsxs(
2388
- "svg",
2389
- {
2390
- viewBox: "0 0 24 24",
2391
- fill: "none",
2392
- stroke: "currentColor",
2393
- strokeWidth: "2",
2394
- strokeLinecap: "round",
2395
- strokeLinejoin: "round",
2396
- children: [
2397
- /* @__PURE__ */ u.jsx("polyline", { points: "1 4 1 10 7 10" }),
2398
- /* @__PURE__ */ u.jsx("polyline", { points: "23 20 23 14 17 14" }),
2399
- /* @__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" })
2400
- ]
2401
- }
2402
- ),
2403
- "Reset to Default"
2404
- ]
2405
- }
2406
- ),
2407
- /* @__PURE__ */ u.jsxs("div", { className: "font-control-export-section", children: [
2408
- /* @__PURE__ */ u.jsxs(
2409
- "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",
2410
2518
  {
2411
- className: "font-control-export-toggle",
2412
- onClick: () => N(!A),
2413
- type: "button",
2519
+ viewBox: "0 0 24 24",
2520
+ fill: "none",
2521
+ stroke: "currentColor",
2522
+ strokeWidth: "2",
2523
+ strokeLinecap: "round",
2524
+ strokeLinejoin: "round",
2414
2525
  children: [
2415
- /* @__PURE__ */ u.jsx(
2416
- "svg",
2417
- {
2418
- viewBox: "0 0 24 24",
2419
- fill: "none",
2420
- stroke: "currentColor",
2421
- strokeWidth: "2",
2422
- className: A ? "rotated" : "",
2423
- children: /* @__PURE__ */ u.jsx("polyline", { points: "9 18 15 12 9 6" })
2424
- }
2425
- ),
2426
- "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" })
2427
2529
  ]
2428
2530
  }
2429
2531
  ),
2430
- A && /* @__PURE__ */ u.jsxs("div", { className: "font-control-export-content", children: [
2431
- /* @__PURE__ */ u.jsx(
2432
- Ne,
2433
- {
2434
- title: "1. Google Fonts Import (HTML)",
2435
- code: Rr(v.fontFamily),
2436
- language: "html"
2437
- }
2438
- ),
2439
- /* @__PURE__ */ u.jsx(
2440
- Ne,
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",
2441
2546
  {
2442
- title: "2. React/JSX Inline Styles",
2443
- code: Or(v),
2444
- 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" })
2445
2553
  }
2446
2554
  ),
2447
- /* @__PURE__ */ u.jsx(
2448
- Ne,
2449
- {
2450
- title: "3. CSS Class",
2451
- code: Dr(v),
2452
- language: "css"
2453
- }
2454
- )
2455
- ] })
2456
- ] })
2457
- ]
2458
- }
2459
- );
2460
- }, at = {
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);
2599
+ }
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
+ }
2610
+ }, $e = {
2461
2611
  fontFamily: "Arial",
2462
2612
  fontSize: 16,
2463
2613
  fontWeight: 400,
@@ -2466,25 +2616,39 @@ const Nr = [
2466
2616
  textTransform: "none",
2467
2617
  color: "#000000",
2468
2618
  textAlign: "left"
2469
- }, Ir = (e) => {
2470
- const [t, r] = me({
2471
- ...at,
2472
- ...e
2619
+ }, Wr = (e) => {
2620
+ const {
2621
+ initialConfig: t,
2622
+ enableLocalStorage: r = !0,
2623
+ storageKey: o = "font-controls-config"
2624
+ } = e || {}, [a, i] = ue(() => {
2625
+ if (r) {
2626
+ const d = Mr(o);
2627
+ if (d)
2628
+ return { ...$e, ...t, ...d };
2629
+ }
2630
+ return { ...$e, ...t };
2473
2631
  });
2474
- return {
2475
- config: t,
2476
- setConfig: r,
2477
- updateConfig: (i, d) => {
2478
- r((c) => ({ ...c, [i]: d }));
2632
+ return me(() => {
2633
+ r && kr(a, o);
2634
+ }, [a, r, o]), {
2635
+ config: a,
2636
+ setConfig: i,
2637
+ updateConfig: (d, m) => {
2638
+ i((b) => ({ ...b, [d]: m }));
2479
2639
  },
2480
2640
  resetConfig: () => {
2481
- r({ ...at, ...e });
2641
+ const d = { ...$e, ...t };
2642
+ i(d), r && $r(o);
2482
2643
  }
2483
2644
  };
2484
2645
  };
2485
2646
  export {
2486
- $r as FontControls,
2487
- jr as loadAllDefaultFonts,
2488
- Pr as loadGoogleFont,
2489
- Ir as useFontControls
2647
+ Lr as FontControls,
2648
+ $r as clearFontConfig,
2649
+ Rr as loadAllDefaultFonts,
2650
+ Mr as loadFontConfig,
2651
+ jr as loadGoogleFont,
2652
+ kr as saveFontConfig,
2653
+ Wr as useFontControls
2490
2654
  };