@senyao-design-system/editor 0.0.1 → 0.0.2

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.
package/dist/index.mjs CHANGED
@@ -1,14 +1,14 @@
1
- import * as oe from "react";
2
- import et, { forwardRef as Yt, useContext as Wt, useRef as me, useEffect as ie, useMemo as vr, useState as Nr, useCallback as ee } from "react";
1
+ import * as se from "react";
2
+ import et, { forwardRef as Yt, useContext as Wt, useRef as de, useEffect as ie, useMemo as vr, useState as Nr, useCallback as re } from "react";
3
3
  import { sql as rt } from "@codemirror/lang-sql";
4
4
  import { json as tt } from "@codemirror/lang-json";
5
- import { keymap as Be, EditorView as Q, Decoration as cr, placeholder as jr } from "@codemirror/view";
5
+ import { keymap as Be, EditorView as te, Decoration as cr, placeholder as jr } from "@codemirror/view";
6
6
  import { indentWithTab as fr } from "@codemirror/commands";
7
7
  import { autocompletion as Vt } from "@codemirror/autocomplete";
8
- import { lintGutter as nt, linter as at } from "@codemirror/lint";
9
- import { StateEffect as Ut, StateField as Gt, EditorState as ue } from "@codemirror/state";
8
+ import { lintGutter as nt, linter as ot } from "@codemirror/lint";
9
+ import { StateEffect as Ut, StateField as Gt, EditorState as le } from "@codemirror/state";
10
10
  import { syntaxHighlighting as Lr, defaultHighlightStyle as Dr } from "@codemirror/language";
11
- var ur = { exports: {} }, Te = {};
11
+ var ur = { exports: {} }, Oe = {};
12
12
  /**
13
13
  * @license React
14
14
  * react-jsx-runtime.production.min.js
@@ -20,19 +20,19 @@ var ur = { exports: {} }, Te = {};
20
20
  */
21
21
  var Yr;
22
22
  function qt() {
23
- if (Yr) return Te;
23
+ if (Yr) return Oe;
24
24
  Yr = 1;
25
- var e = et, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
26
- function s(c, d, p) {
27
- var u, y = {}, x = null, R = null;
28
- p !== void 0 && (x = "" + p), d.key !== void 0 && (x = "" + d.key), d.ref !== void 0 && (R = d.ref);
29
- for (u in d) a.call(d, u) && !i.hasOwnProperty(u) && (y[u] = d[u]);
30
- if (c && c.defaultProps) for (u in d = c.defaultProps, d) y[u] === void 0 && (y[u] = d[u]);
31
- return { $$typeof: r, type: c, key: x, ref: R, props: y, _owner: o.current };
25
+ var e = et, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
26
+ function c(s, d, p) {
27
+ var u, g = {}, _ = null, S = null;
28
+ p !== void 0 && (_ = "" + p), d.key !== void 0 && (_ = "" + d.key), d.ref !== void 0 && (S = d.ref);
29
+ for (u in d) o.call(d, u) && !i.hasOwnProperty(u) && (g[u] = d[u]);
30
+ if (s && s.defaultProps) for (u in d = s.defaultProps, d) g[u] === void 0 && (g[u] = d[u]);
31
+ return { $$typeof: r, type: s, key: _, ref: S, props: g, _owner: a.current };
32
32
  }
33
- return Te.Fragment = n, Te.jsx = s, Te.jsxs = s, Te;
33
+ return Oe.Fragment = n, Oe.jsx = c, Oe.jsxs = c, Oe;
34
34
  }
35
- var Oe = {};
35
+ var Pe = {};
36
36
  /**
37
37
  * @license React
38
38
  * react-jsx-runtime.development.js
@@ -45,65 +45,65 @@ var Oe = {};
45
45
  var Wr;
46
46
  function Bt() {
47
47
  return Wr || (Wr = 1, process.env.NODE_ENV !== "production" && function() {
48
- var e = et, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), R = Symbol.for("react.offscreen"), E = Symbol.iterator, C = "@@iterator";
49
- function j(t) {
48
+ var e = et, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), s = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), b = Symbol.iterator, x = "@@iterator";
49
+ function D(t) {
50
50
  if (t === null || typeof t != "object")
51
51
  return null;
52
- var f = E && t[E] || t[C];
52
+ var f = b && t[b] || t[x];
53
53
  return typeof f == "function" ? f : null;
54
54
  }
55
55
  var w = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
56
- function S(t) {
56
+ function E(t) {
57
57
  {
58
- for (var f = arguments.length, h = new Array(f > 1 ? f - 1 : 0), b = 1; b < f; b++)
59
- h[b - 1] = arguments[b];
58
+ for (var f = arguments.length, h = new Array(f > 1 ? f - 1 : 0), y = 1; y < f; y++)
59
+ h[y - 1] = arguments[y];
60
60
  k("error", t, h);
61
61
  }
62
62
  }
63
63
  function k(t, f, h) {
64
64
  {
65
- var b = w.ReactDebugCurrentFrame, M = b.getStackAddendum();
66
- M !== "" && (f += "%s", h = h.concat([M]));
67
- var N = h.map(function(T) {
65
+ var y = w.ReactDebugCurrentFrame, I = y.getStackAddendum();
66
+ I !== "" && (f += "%s", h = h.concat([I]));
67
+ var L = h.map(function(T) {
68
68
  return String(T);
69
69
  });
70
- N.unshift("Warning: " + f), Function.prototype.apply.call(console[t], console, N);
70
+ L.unshift("Warning: " + f), Function.prototype.apply.call(console[t], console, L);
71
71
  }
72
72
  }
73
- var L = !1, l = !1, m = !1, v = !1, P = !1, O;
74
- O = Symbol.for("react.module.reference");
75
- function D(t) {
76
- return !!(typeof t == "string" || typeof t == "function" || t === a || t === i || P || t === o || t === p || t === u || v || t === R || L || l || m || typeof t == "object" && t !== null && (t.$$typeof === x || t.$$typeof === y || t.$$typeof === s || t.$$typeof === c || t.$$typeof === d || // This needs to include all possible module reference object
73
+ var j = !1, l = !1, U = !1, $ = !1, v = !1, R;
74
+ R = Symbol.for("react.module.reference");
75
+ function O(t) {
76
+ return !!(typeof t == "string" || typeof t == "function" || t === o || t === i || v || t === a || t === p || t === u || $ || t === S || j || l || U || typeof t == "object" && t !== null && (t.$$typeof === _ || t.$$typeof === g || t.$$typeof === c || t.$$typeof === s || t.$$typeof === d || // This needs to include all possible module reference object
77
77
  // types supported by any Flight configuration anywhere since
78
78
  // we don't know which Flight build this will end up being used
79
79
  // with.
80
- t.$$typeof === O || t.getModuleId !== void 0));
80
+ t.$$typeof === R || t.getModuleId !== void 0));
81
81
  }
82
- function U(t, f, h) {
83
- var b = t.displayName;
84
- if (b)
85
- return b;
86
- var M = f.displayName || f.name || "";
87
- return M !== "" ? h + "(" + M + ")" : h;
82
+ function P(t, f, h) {
83
+ var y = t.displayName;
84
+ if (y)
85
+ return y;
86
+ var I = f.displayName || f.name || "";
87
+ return I !== "" ? h + "(" + I + ")" : h;
88
88
  }
89
- function X(t) {
89
+ function W(t) {
90
90
  return t.displayName || "Context";
91
91
  }
92
- function B(t) {
92
+ function Y(t) {
93
93
  if (t == null)
94
94
  return null;
95
- if (typeof t.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
95
+ if (typeof t.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
96
96
  return t.displayName || t.name || null;
97
97
  if (typeof t == "string")
98
98
  return t;
99
99
  switch (t) {
100
- case a:
100
+ case o:
101
101
  return "Fragment";
102
102
  case n:
103
103
  return "Portal";
104
104
  case i:
105
105
  return "Profiler";
106
- case o:
106
+ case a:
107
107
  return "StrictMode";
108
108
  case p:
109
109
  return "Suspense";
@@ -112,21 +112,21 @@ function Bt() {
112
112
  }
113
113
  if (typeof t == "object")
114
114
  switch (t.$$typeof) {
115
- case c:
116
- var f = t;
117
- return X(f) + ".Consumer";
118
115
  case s:
116
+ var f = t;
117
+ return W(f) + ".Consumer";
118
+ case c:
119
119
  var h = t;
120
- return X(h._context) + ".Provider";
120
+ return W(h._context) + ".Provider";
121
121
  case d:
122
- return U(t, t.render, "ForwardRef");
123
- case y:
124
- var b = t.displayName || null;
125
- return b !== null ? b : B(t.type) || "Memo";
126
- case x: {
127
- var M = t, N = M._payload, T = M._init;
122
+ return P(t, t.render, "ForwardRef");
123
+ case g:
124
+ var y = t.displayName || null;
125
+ return y !== null ? y : Y(t.type) || "Memo";
126
+ case _: {
127
+ var I = t, L = I._payload, T = I._init;
128
128
  try {
129
- return B(T(N));
129
+ return Y(T(L));
130
130
  } catch {
131
131
  return null;
132
132
  }
@@ -134,18 +134,18 @@ function Bt() {
134
134
  }
135
135
  return null;
136
136
  }
137
- var ae = Object.assign, se = 0, Ie, Fe, Ee, Ne, Se, je, Le;
138
- function De() {
137
+ var B = Object.assign, Q = 0, Fe, Ne, Se, je, Re, Le, De;
138
+ function Ye() {
139
139
  }
140
- De.__reactDisabledLog = !0;
140
+ Ye.__reactDisabledLog = !0;
141
141
  function Qe() {
142
142
  {
143
- if (se === 0) {
144
- Ie = console.log, Fe = console.info, Ee = console.warn, Ne = console.error, Se = console.group, je = console.groupCollapsed, Le = console.groupEnd;
143
+ if (Q === 0) {
144
+ Fe = console.log, Ne = console.info, Se = console.warn, je = console.error, Re = console.group, Le = console.groupCollapsed, De = console.groupEnd;
145
145
  var t = {
146
146
  configurable: !0,
147
147
  enumerable: !0,
148
- value: De,
148
+ value: Ye,
149
149
  writable: !0
150
150
  };
151
151
  Object.defineProperties(console, {
@@ -158,77 +158,77 @@ function Bt() {
158
158
  groupEnd: t
159
159
  });
160
160
  }
161
- se++;
161
+ Q++;
162
162
  }
163
163
  }
164
164
  function er() {
165
165
  {
166
- if (se--, se === 0) {
166
+ if (Q--, Q === 0) {
167
167
  var t = {
168
168
  configurable: !0,
169
169
  enumerable: !0,
170
170
  writable: !0
171
171
  };
172
172
  Object.defineProperties(console, {
173
- log: ae({}, t, {
174
- value: Ie
175
- }),
176
- info: ae({}, t, {
173
+ log: B({}, t, {
177
174
  value: Fe
178
175
  }),
179
- warn: ae({}, t, {
180
- value: Ee
181
- }),
182
- error: ae({}, t, {
176
+ info: B({}, t, {
183
177
  value: Ne
184
178
  }),
185
- group: ae({}, t, {
179
+ warn: B({}, t, {
186
180
  value: Se
187
181
  }),
188
- groupCollapsed: ae({}, t, {
182
+ error: B({}, t, {
189
183
  value: je
190
184
  }),
191
- groupEnd: ae({}, t, {
185
+ group: B({}, t, {
186
+ value: Re
187
+ }),
188
+ groupCollapsed: B({}, t, {
192
189
  value: Le
190
+ }),
191
+ groupEnd: B({}, t, {
192
+ value: De
193
193
  })
194
194
  });
195
195
  }
196
- se < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
196
+ Q < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
197
197
  }
198
198
  }
199
- var Re = w.ReactCurrentDispatcher, Ce;
200
- function le(t, f, h) {
199
+ var Ce = w.ReactCurrentDispatcher, _e;
200
+ function he(t, f, h) {
201
201
  {
202
- if (Ce === void 0)
202
+ if (_e === void 0)
203
203
  try {
204
204
  throw Error();
205
- } catch (M) {
206
- var b = M.stack.trim().match(/\n( *(at )?)/);
207
- Ce = b && b[1] || "";
205
+ } catch (I) {
206
+ var y = I.stack.trim().match(/\n( *(at )?)/);
207
+ _e = y && y[1] || "";
208
208
  }
209
209
  return `
210
- ` + Ce + t;
210
+ ` + _e + t;
211
211
  }
212
212
  }
213
- var _e = !1, de;
213
+ var xe = !1, pe;
214
214
  {
215
215
  var rr = typeof WeakMap == "function" ? WeakMap : Map;
216
- de = new rr();
216
+ pe = new rr();
217
217
  }
218
- function g(t, f) {
219
- if (!t || _e)
218
+ function m(t, f) {
219
+ if (!t || xe)
220
220
  return "";
221
221
  {
222
- var h = de.get(t);
222
+ var h = pe.get(t);
223
223
  if (h !== void 0)
224
224
  return h;
225
225
  }
226
- var b;
227
- _e = !0;
228
- var M = Error.prepareStackTrace;
226
+ var y;
227
+ xe = !0;
228
+ var I = Error.prepareStackTrace;
229
229
  Error.prepareStackTrace = void 0;
230
- var N;
231
- N = Re.current, Re.current = null, Qe();
230
+ var L;
231
+ L = Ce.current, Ce.current = null, Qe();
232
232
  try {
233
233
  if (f) {
234
234
  var T = function() {
@@ -241,111 +241,111 @@ function Bt() {
241
241
  }), typeof Reflect == "object" && Reflect.construct) {
242
242
  try {
243
243
  Reflect.construct(T, []);
244
- } catch (z) {
245
- b = z;
244
+ } catch (H) {
245
+ y = H;
246
246
  }
247
247
  Reflect.construct(t, [], T);
248
248
  } else {
249
249
  try {
250
250
  T.call();
251
- } catch (z) {
252
- b = z;
251
+ } catch (H) {
252
+ y = H;
253
253
  }
254
254
  t.call(T.prototype);
255
255
  }
256
256
  } else {
257
257
  try {
258
258
  throw Error();
259
- } catch (z) {
260
- b = z;
259
+ } catch (H) {
260
+ y = H;
261
261
  }
262
262
  t();
263
263
  }
264
- } catch (z) {
265
- if (z && b && typeof z.stack == "string") {
266
- for (var _ = z.stack.split(`
267
- `), J = b.stack.split(`
268
- `), Y = _.length - 1, W = J.length - 1; Y >= 1 && W >= 0 && _[Y] !== J[W]; )
269
- W--;
270
- for (; Y >= 1 && W >= 0; Y--, W--)
271
- if (_[Y] !== J[W]) {
272
- if (Y !== 1 || W !== 1)
264
+ } catch (H) {
265
+ if (H && y && typeof H.stack == "string") {
266
+ for (var C = H.stack.split(`
267
+ `), K = y.stack.split(`
268
+ `), V = C.length - 1, G = K.length - 1; V >= 1 && G >= 0 && C[V] !== K[G]; )
269
+ G--;
270
+ for (; V >= 1 && G >= 0; V--, G--)
271
+ if (C[V] !== K[G]) {
272
+ if (V !== 1 || G !== 1)
273
273
  do
274
- if (Y--, W--, W < 0 || _[Y] !== J[W]) {
275
- var Z = `
276
- ` + _[Y].replace(" at new ", " at ");
277
- return t.displayName && Z.includes("<anonymous>") && (Z = Z.replace("<anonymous>", t.displayName)), typeof t == "function" && de.set(t, Z), Z;
274
+ if (V--, G--, G < 0 || C[V] !== K[G]) {
275
+ var ee = `
276
+ ` + C[V].replace(" at new ", " at ");
277
+ return t.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", t.displayName)), typeof t == "function" && pe.set(t, ee), ee;
278
278
  }
279
- while (Y >= 1 && W >= 0);
279
+ while (V >= 1 && G >= 0);
280
280
  break;
281
281
  }
282
282
  }
283
283
  } finally {
284
- _e = !1, Re.current = N, er(), Error.prepareStackTrace = M;
284
+ xe = !1, Ce.current = L, er(), Error.prepareStackTrace = I;
285
285
  }
286
- var ve = t ? t.displayName || t.name : "", fe = ve ? le(ve) : "";
287
- return typeof t == "function" && de.set(t, fe), fe;
286
+ var ge = t ? t.displayName || t.name : "", ue = ge ? he(ge) : "";
287
+ return typeof t == "function" && pe.set(t, ue), ue;
288
288
  }
289
- function xe(t, f, h) {
290
- return g(t, !1);
289
+ function we(t, f, h) {
290
+ return m(t, !1);
291
291
  }
292
- function he(t) {
292
+ function ve(t) {
293
293
  var f = t.prototype;
294
294
  return !!(f && f.isReactComponent);
295
295
  }
296
- function ce(t, f, h) {
296
+ function fe(t, f, h) {
297
297
  if (t == null)
298
298
  return "";
299
299
  if (typeof t == "function")
300
- return g(t, he(t));
300
+ return m(t, ve(t));
301
301
  if (typeof t == "string")
302
- return le(t);
302
+ return he(t);
303
303
  switch (t) {
304
304
  case p:
305
- return le("Suspense");
305
+ return he("Suspense");
306
306
  case u:
307
- return le("SuspenseList");
307
+ return he("SuspenseList");
308
308
  }
309
309
  if (typeof t == "object")
310
310
  switch (t.$$typeof) {
311
311
  case d:
312
- return xe(t.render);
313
- case y:
314
- return ce(t.type, f, h);
315
- case x: {
316
- var b = t, M = b._payload, N = b._init;
312
+ return we(t.render);
313
+ case g:
314
+ return fe(t.type, f, h);
315
+ case _: {
316
+ var y = t, I = y._payload, L = y._init;
317
317
  try {
318
- return ce(N(M), f, h);
318
+ return fe(L(I), f, h);
319
319
  } catch {
320
320
  }
321
321
  }
322
322
  }
323
323
  return "";
324
324
  }
325
- var we = Object.prototype.hasOwnProperty, Rr = {}, Cr = w.ReactDebugCurrentFrame;
326
- function Ye(t) {
325
+ var Te = Object.prototype.hasOwnProperty, Rr = {}, Cr = w.ReactDebugCurrentFrame;
326
+ function We(t) {
327
327
  if (t) {
328
- var f = t._owner, h = ce(t.type, t._source, f ? f.type : null);
328
+ var f = t._owner, h = fe(t.type, t._source, f ? f.type : null);
329
329
  Cr.setExtraStackFrame(h);
330
330
  } else
331
331
  Cr.setExtraStackFrame(null);
332
332
  }
333
- function yt(t, f, h, b, M) {
333
+ function yt(t, f, h, y, I) {
334
334
  {
335
- var N = Function.call.bind(we);
335
+ var L = Function.call.bind(Te);
336
336
  for (var T in t)
337
- if (N(t, T)) {
338
- var _ = void 0;
337
+ if (L(t, T)) {
338
+ var C = void 0;
339
339
  try {
340
340
  if (typeof t[T] != "function") {
341
- var J = Error((b || "React class") + ": " + h + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
342
- throw J.name = "Invariant Violation", J;
341
+ var K = Error((y || "React class") + ": " + h + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
342
+ throw K.name = "Invariant Violation", K;
343
343
  }
344
- _ = t[T](f, T, b, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
345
- } catch (Y) {
346
- _ = Y;
344
+ C = t[T](f, T, y, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
345
+ } catch (V) {
346
+ C = V;
347
347
  }
348
- _ && !(_ instanceof Error) && (Ye(M), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", b || "React class", h, T, typeof _), Ye(null)), _ instanceof Error && !(_.message in Rr) && (Rr[_.message] = !0, Ye(M), S("Failed %s type: %s", h, _.message), Ye(null));
348
+ C && !(C instanceof Error) && (We(I), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", y || "React class", h, T, typeof C), We(null)), C instanceof Error && !(C.message in Rr) && (Rr[C.message] = !0, We(I), E("Failed %s type: %s", h, C.message), We(null));
349
349
  }
350
350
  }
351
351
  }
@@ -371,7 +371,7 @@ function Bt() {
371
371
  }
372
372
  function xr(t) {
373
373
  if (St(t))
374
- return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Et(t)), _r(t);
374
+ return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Et(t)), _r(t);
375
375
  }
376
376
  var wr = w.ReactCurrentOwner, Rt = {
377
377
  key: !0,
@@ -380,7 +380,7 @@ function Bt() {
380
380
  __source: !0
381
381
  }, Tr, Or;
382
382
  function Ct(t) {
383
- if (we.call(t, "ref")) {
383
+ if (Te.call(t, "ref")) {
384
384
  var f = Object.getOwnPropertyDescriptor(t, "ref").get;
385
385
  if (f && f.isReactWarning)
386
386
  return !1;
@@ -388,7 +388,7 @@ function Bt() {
388
388
  return t.ref !== void 0;
389
389
  }
390
390
  function _t(t) {
391
- if (we.call(t, "key")) {
391
+ if (Te.call(t, "key")) {
392
392
  var f = Object.getOwnPropertyDescriptor(t, "key").get;
393
393
  if (f && f.isReactWarning)
394
394
  return !1;
@@ -401,7 +401,7 @@ function Bt() {
401
401
  function wt(t, f) {
402
402
  {
403
403
  var h = function() {
404
- Tr || (Tr = !0, S("%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://reactjs.org/link/special-props)", f));
404
+ Tr || (Tr = !0, E("%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://reactjs.org/link/special-props)", f));
405
405
  };
406
406
  h.isReactWarning = !0, Object.defineProperty(t, "key", {
407
407
  get: h,
@@ -412,7 +412,7 @@ function Bt() {
412
412
  function Tt(t, f) {
413
413
  {
414
414
  var h = function() {
415
- Or || (Or = !0, S("%s: `ref` 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://reactjs.org/link/special-props)", f));
415
+ Or || (Or = !0, E("%s: `ref` 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://reactjs.org/link/special-props)", f));
416
416
  };
417
417
  h.isReactWarning = !0, Object.defineProperty(t, "ref", {
418
418
  get: h,
@@ -420,8 +420,8 @@ function Bt() {
420
420
  });
421
421
  }
422
422
  }
423
- var Ot = function(t, f, h, b, M, N, T) {
424
- var _ = {
423
+ var Ot = function(t, f, h, y, I, L, T) {
424
+ var C = {
425
425
  // This tag allows us to uniquely identify this as a React Element
426
426
  $$typeof: r,
427
427
  // Built-in properties that belong on the element
@@ -430,60 +430,60 @@ function Bt() {
430
430
  ref: h,
431
431
  props: T,
432
432
  // Record the component responsible for creating this element.
433
- _owner: N
433
+ _owner: L
434
434
  };
435
- return _._store = {}, Object.defineProperty(_._store, "validated", {
435
+ return C._store = {}, Object.defineProperty(C._store, "validated", {
436
436
  configurable: !1,
437
437
  enumerable: !1,
438
438
  writable: !0,
439
439
  value: !1
440
- }), Object.defineProperty(_, "_self", {
440
+ }), Object.defineProperty(C, "_self", {
441
441
  configurable: !1,
442
442
  enumerable: !1,
443
443
  writable: !1,
444
- value: b
445
- }), Object.defineProperty(_, "_source", {
444
+ value: y
445
+ }), Object.defineProperty(C, "_source", {
446
446
  configurable: !1,
447
447
  enumerable: !1,
448
448
  writable: !1,
449
- value: M
450
- }), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
449
+ value: I
450
+ }), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
451
451
  };
452
- function Pt(t, f, h, b, M) {
452
+ function Pt(t, f, h, y, I) {
453
453
  {
454
- var N, T = {}, _ = null, J = null;
455
- h !== void 0 && (xr(h), _ = "" + h), _t(f) && (xr(f.key), _ = "" + f.key), Ct(f) && (J = f.ref, xt(f, M));
456
- for (N in f)
457
- we.call(f, N) && !Rt.hasOwnProperty(N) && (T[N] = f[N]);
454
+ var L, T = {}, C = null, K = null;
455
+ h !== void 0 && (xr(h), C = "" + h), _t(f) && (xr(f.key), C = "" + f.key), Ct(f) && (K = f.ref, xt(f, I));
456
+ for (L in f)
457
+ Te.call(f, L) && !Rt.hasOwnProperty(L) && (T[L] = f[L]);
458
458
  if (t && t.defaultProps) {
459
- var Y = t.defaultProps;
460
- for (N in Y)
461
- T[N] === void 0 && (T[N] = Y[N]);
459
+ var V = t.defaultProps;
460
+ for (L in V)
461
+ T[L] === void 0 && (T[L] = V[L]);
462
462
  }
463
- if (_ || J) {
464
- var W = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
465
- _ && wt(T, W), J && Tt(T, W);
463
+ if (C || K) {
464
+ var G = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
465
+ C && wt(T, G), K && Tt(T, G);
466
466
  }
467
- return Ot(t, _, J, M, b, wr.current, T);
467
+ return Ot(t, C, K, I, y, wr.current, T);
468
468
  }
469
469
  }
470
470
  var nr = w.ReactCurrentOwner, Pr = w.ReactDebugCurrentFrame;
471
- function pe(t) {
471
+ function me(t) {
472
472
  if (t) {
473
- var f = t._owner, h = ce(t.type, t._source, f ? f.type : null);
473
+ var f = t._owner, h = fe(t.type, t._source, f ? f.type : null);
474
474
  Pr.setExtraStackFrame(h);
475
475
  } else
476
476
  Pr.setExtraStackFrame(null);
477
477
  }
478
- var ar;
479
- ar = !1;
480
- function or(t) {
478
+ var or;
479
+ or = !1;
480
+ function ar(t) {
481
481
  return typeof t == "object" && t !== null && t.$$typeof === r;
482
482
  }
483
483
  function kr() {
484
484
  {
485
485
  if (nr.current) {
486
- var t = B(nr.current.type);
486
+ var t = Y(nr.current.type);
487
487
  if (t)
488
488
  return `
489
489
 
@@ -517,8 +517,8 @@ Check the top-level render call using <` + h + ">.");
517
517
  if ($r[h])
518
518
  return;
519
519
  $r[h] = !0;
520
- var b = "";
521
- t && t._owner && t._owner !== nr.current && (b = " It was passed a child from " + B(t._owner.type) + "."), pe(t), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', h, b), pe(null);
520
+ var y = "";
521
+ t && t._owner && t._owner !== nr.current && (y = " It was passed a child from " + Y(t._owner.type) + "."), me(t), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', h, y), me(null);
522
522
  }
523
523
  }
524
524
  function Mr(t, f) {
@@ -527,16 +527,16 @@ Check the top-level render call using <` + h + ">.");
527
527
  return;
528
528
  if (tr(t))
529
529
  for (var h = 0; h < t.length; h++) {
530
- var b = t[h];
531
- or(b) && Ar(b, f);
530
+ var y = t[h];
531
+ ar(y) && Ar(y, f);
532
532
  }
533
- else if (or(t))
533
+ else if (ar(t))
534
534
  t._store && (t._store.validated = !0);
535
535
  else if (t) {
536
- var M = j(t);
537
- if (typeof M == "function" && M !== t.entries)
538
- for (var N = M.call(t), T; !(T = N.next()).done; )
539
- or(T.value) && Ar(T.value, f);
536
+ var I = D(t);
537
+ if (typeof I == "function" && I !== t.entries)
538
+ for (var L = I.call(t), T; !(T = L.next()).done; )
539
+ ar(T.value) && Ar(T.value, f);
540
540
  }
541
541
  }
542
542
  }
@@ -550,76 +550,76 @@ Check the top-level render call using <` + h + ">.");
550
550
  h = f.propTypes;
551
551
  else if (typeof f == "object" && (f.$$typeof === d || // Note: Memo only checks outer props here.
552
552
  // Inner props are checked in the reconciler.
553
- f.$$typeof === y))
553
+ f.$$typeof === g))
554
554
  h = f.propTypes;
555
555
  else
556
556
  return;
557
557
  if (h) {
558
- var b = B(f);
559
- yt(h, t.props, "prop", b, t);
560
- } else if (f.PropTypes !== void 0 && !ar) {
561
- ar = !0;
562
- var M = B(f);
563
- S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", M || "Unknown");
558
+ var y = Y(f);
559
+ yt(h, t.props, "prop", y, t);
560
+ } else if (f.PropTypes !== void 0 && !or) {
561
+ or = !0;
562
+ var I = Y(f);
563
+ E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", I || "Unknown");
564
564
  }
565
- typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
565
+ typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
566
566
  }
567
567
  }
568
568
  function Mt(t) {
569
569
  {
570
570
  for (var f = Object.keys(t.props), h = 0; h < f.length; h++) {
571
- var b = f[h];
572
- if (b !== "children" && b !== "key") {
573
- pe(t), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), pe(null);
571
+ var y = f[h];
572
+ if (y !== "children" && y !== "key") {
573
+ me(t), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), me(null);
574
574
  break;
575
575
  }
576
576
  }
577
- t.ref !== null && (pe(t), S("Invalid attribute `ref` supplied to `React.Fragment`."), pe(null));
577
+ t.ref !== null && (me(t), E("Invalid attribute `ref` supplied to `React.Fragment`."), me(null));
578
578
  }
579
579
  }
580
580
  var Ir = {};
581
- function Fr(t, f, h, b, M, N) {
581
+ function Fr(t, f, h, y, I, L) {
582
582
  {
583
- var T = D(t);
583
+ var T = O(t);
584
584
  if (!T) {
585
- var _ = "";
586
- (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (_ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
587
- var J = kt();
588
- J ? _ += J : _ += kr();
589
- var Y;
590
- t === null ? Y = "null" : tr(t) ? Y = "array" : t !== void 0 && t.$$typeof === r ? (Y = "<" + (B(t.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : Y = typeof t, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Y, _);
585
+ var C = "";
586
+ (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (C += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
587
+ var K = kt();
588
+ K ? C += K : C += kr();
589
+ var V;
590
+ t === null ? V = "null" : tr(t) ? V = "array" : t !== void 0 && t.$$typeof === r ? (V = "<" + (Y(t.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : V = typeof t, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", V, C);
591
591
  }
592
- var W = Pt(t, f, h, M, N);
593
- if (W == null)
594
- return W;
592
+ var G = Pt(t, f, h, I, L);
593
+ if (G == null)
594
+ return G;
595
595
  if (T) {
596
- var Z = f.children;
597
- if (Z !== void 0)
598
- if (b)
599
- if (tr(Z)) {
600
- for (var ve = 0; ve < Z.length; ve++)
601
- Mr(Z[ve], t);
602
- Object.freeze && Object.freeze(Z);
596
+ var ee = f.children;
597
+ if (ee !== void 0)
598
+ if (y)
599
+ if (tr(ee)) {
600
+ for (var ge = 0; ge < ee.length; ge++)
601
+ Mr(ee[ge], t);
602
+ Object.freeze && Object.freeze(ee);
603
603
  } else
604
- S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
604
+ E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
605
605
  else
606
- Mr(Z, t);
606
+ Mr(ee, t);
607
607
  }
608
- if (we.call(f, "key")) {
609
- var fe = B(t), z = Object.keys(f).filter(function(Dt) {
608
+ if (Te.call(f, "key")) {
609
+ var ue = Y(t), H = Object.keys(f).filter(function(Dt) {
610
610
  return Dt !== "key";
611
- }), ir = z.length > 0 ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}";
612
- if (!Ir[fe + ir]) {
613
- var Lt = z.length > 0 ? "{" + z.join(": ..., ") + ": ...}" : "{}";
614
- S(`A props object containing a "key" prop is being spread into JSX:
611
+ }), ir = H.length > 0 ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}";
612
+ if (!Ir[ue + ir]) {
613
+ var Lt = H.length > 0 ? "{" + H.join(": ..., ") + ": ...}" : "{}";
614
+ E(`A props object containing a "key" prop is being spread into JSX:
615
615
  let props = %s;
616
616
  <%s {...props} />
617
617
  React keys must be passed directly to JSX without using spread:
618
618
  let props = %s;
619
- <%s key={someKey} {...props} />`, ir, fe, Lt, fe), Ir[fe + ir] = !0;
619
+ <%s key={someKey} {...props} />`, ir, ue, Lt, ue), Ir[ue + ir] = !0;
620
620
  }
621
621
  }
622
- return t === a ? Mt(W) : At(W), W;
622
+ return t === o ? Mt(G) : At(G), G;
623
623
  }
624
624
  }
625
625
  function It(t, f, h) {
@@ -629,8 +629,8 @@ React keys must be passed directly to JSX without using spread:
629
629
  return Fr(t, f, h, !1);
630
630
  }
631
631
  var Nt = Ft, jt = It;
632
- Oe.Fragment = a, Oe.jsx = Nt, Oe.jsxs = jt;
633
- }()), Oe;
632
+ Pe.Fragment = o, Pe.jsx = Nt, Pe.jsxs = jt;
633
+ }()), Pe;
634
634
  }
635
635
  process.env.NODE_ENV === "production" ? ur.exports = qt() : ur.exports = Bt();
636
636
  var Vr = ur.exports;
@@ -647,36 +647,36 @@ function zt(e) {
647
647
  }
648
648
  var Kt = /* @__PURE__ */ function() {
649
649
  function e(n) {
650
- var a = this;
651
- this._insertTag = function(o) {
650
+ var o = this;
651
+ this._insertTag = function(a) {
652
652
  var i;
653
- a.tags.length === 0 ? a.insertionPoint ? i = a.insertionPoint.nextSibling : a.prepend ? i = a.container.firstChild : i = a.before : i = a.tags[a.tags.length - 1].nextSibling, a.container.insertBefore(o, i), a.tags.push(o);
653
+ o.tags.length === 0 ? o.insertionPoint ? i = o.insertionPoint.nextSibling : o.prepend ? i = o.container.firstChild : i = o.before : i = o.tags[o.tags.length - 1].nextSibling, o.container.insertBefore(a, i), o.tags.push(a);
654
654
  }, this.isSpeedy = n.speedy === void 0 ? !0 : n.speedy, this.tags = [], this.ctr = 0, this.nonce = n.nonce, this.key = n.key, this.container = n.container, this.prepend = n.prepend, this.insertionPoint = n.insertionPoint, this.before = null;
655
655
  }
656
656
  var r = e.prototype;
657
- return r.hydrate = function(a) {
658
- a.forEach(this._insertTag);
659
- }, r.insert = function(a) {
657
+ return r.hydrate = function(o) {
658
+ o.forEach(this._insertTag);
659
+ }, r.insert = function(o) {
660
660
  this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(zt(this));
661
- var o = this.tags[this.tags.length - 1];
661
+ var a = this.tags[this.tags.length - 1];
662
662
  if (this.isSpeedy) {
663
- var i = Jt(o);
663
+ var i = Jt(a);
664
664
  try {
665
- i.insertRule(a, i.cssRules.length);
665
+ i.insertRule(o, i.cssRules.length);
666
666
  } catch {
667
667
  }
668
668
  } else
669
- o.appendChild(document.createTextNode(a));
669
+ a.appendChild(document.createTextNode(o));
670
670
  this.ctr++;
671
671
  }, r.flush = function() {
672
- this.tags.forEach(function(a) {
673
- var o;
674
- return (o = a.parentNode) == null ? void 0 : o.removeChild(a);
672
+ this.tags.forEach(function(o) {
673
+ var a;
674
+ return (a = o.parentNode) == null ? void 0 : a.removeChild(o);
675
675
  }), this.tags = [], this.ctr = 0;
676
676
  }, e;
677
- }(), q = "-ms-", Je = "-moz-", $ = "-webkit-", ot = "comm", mr = "rule", gr = "decl", Ht = "@import", it = "@keyframes", Xt = "@layer", Zt = Math.abs, Ke = String.fromCharCode, Qt = Object.assign;
677
+ }(), z = "-ms-", Je = "-moz-", A = "-webkit-", at = "comm", mr = "rule", gr = "decl", Ht = "@import", it = "@keyframes", Xt = "@layer", Zt = Math.abs, Ke = String.fromCharCode, Qt = Object.assign;
678
678
  function en(e, r) {
679
- return G(e, 0) ^ 45 ? (((r << 2 ^ G(e, 0)) << 2 ^ G(e, 1)) << 2 ^ G(e, 2)) << 2 ^ G(e, 3) : 0;
679
+ return J(e, 0) ^ 45 ? (((r << 2 ^ J(e, 0)) << 2 ^ J(e, 1)) << 2 ^ J(e, 2)) << 2 ^ J(e, 3) : 0;
680
680
  }
681
681
  function st(e) {
682
682
  return e.trim();
@@ -684,56 +684,56 @@ function st(e) {
684
684
  function rn(e, r) {
685
685
  return (e = r.exec(e)) ? e[0] : e;
686
686
  }
687
- function A(e, r, n) {
687
+ function M(e, r, n) {
688
688
  return e.replace(r, n);
689
689
  }
690
690
  function lr(e, r) {
691
691
  return e.indexOf(r);
692
692
  }
693
- function G(e, r) {
693
+ function J(e, r) {
694
694
  return e.charCodeAt(r) | 0;
695
695
  }
696
- function ke(e, r, n) {
696
+ function $e(e, r, n) {
697
697
  return e.slice(r, n);
698
698
  }
699
- function re(e) {
699
+ function ne(e) {
700
700
  return e.length;
701
701
  }
702
702
  function yr(e) {
703
703
  return e.length;
704
704
  }
705
- function We(e, r) {
705
+ function Ve(e, r) {
706
706
  return r.push(e), e;
707
707
  }
708
708
  function tn(e, r) {
709
709
  return e.map(r).join("");
710
710
  }
711
- var He = 1, ye = 1, ct = 0, K = 0, V = 0, be = "";
712
- function Xe(e, r, n, a, o, i, s) {
713
- return { value: e, root: r, parent: n, type: a, props: o, children: i, line: He, column: ye, length: s, return: "" };
711
+ var He = 1, be = 1, ct = 0, X = 0, q = 0, Ee = "";
712
+ function Xe(e, r, n, o, a, i, c) {
713
+ return { value: e, root: r, parent: n, type: o, props: a, children: i, line: He, column: be, length: c, return: "" };
714
714
  }
715
- function Pe(e, r) {
715
+ function ke(e, r) {
716
716
  return Qt(Xe("", null, null, "", null, null, 0), e, { length: -e.length }, r);
717
717
  }
718
718
  function nn() {
719
- return V;
719
+ return q;
720
720
  }
721
- function an() {
722
- return V = K > 0 ? G(be, --K) : 0, ye--, V === 10 && (ye = 1, He--), V;
721
+ function on() {
722
+ return q = X > 0 ? J(Ee, --X) : 0, be--, q === 10 && (be = 1, He--), q;
723
723
  }
724
- function H() {
725
- return V = K < ct ? G(be, K++) : 0, ye++, V === 10 && (ye = 1, He++), V;
724
+ function Z() {
725
+ return q = X < ct ? J(Ee, X++) : 0, be++, q === 10 && (be = 1, He++), q;
726
726
  }
727
- function ne() {
728
- return G(be, K);
727
+ function ae() {
728
+ return J(Ee, X);
729
729
  }
730
730
  function Ue() {
731
- return K;
731
+ return X;
732
732
  }
733
- function Me(e, r) {
734
- return ke(be, e, r);
733
+ function Ie(e, r) {
734
+ return $e(Ee, e, r);
735
735
  }
736
- function $e(e) {
736
+ function Ae(e) {
737
737
  switch (e) {
738
738
  case 0:
739
739
  case 9:
@@ -766,184 +766,184 @@ function $e(e) {
766
766
  return 0;
767
767
  }
768
768
  function ft(e) {
769
- return He = ye = 1, ct = re(be = e), K = 0, [];
769
+ return He = be = 1, ct = ne(Ee = e), X = 0, [];
770
770
  }
771
771
  function ut(e) {
772
- return be = "", e;
772
+ return Ee = "", e;
773
773
  }
774
774
  function Ge(e) {
775
- return st(Me(K - 1, dr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
775
+ return st(Ie(X - 1, dr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
776
776
  }
777
- function on(e) {
778
- for (; (V = ne()) && V < 33; )
779
- H();
780
- return $e(e) > 2 || $e(V) > 3 ? "" : " ";
777
+ function an(e) {
778
+ for (; (q = ae()) && q < 33; )
779
+ Z();
780
+ return Ae(e) > 2 || Ae(q) > 3 ? "" : " ";
781
781
  }
782
782
  function sn(e, r) {
783
- for (; --r && H() && !(V < 48 || V > 102 || V > 57 && V < 65 || V > 70 && V < 97); )
783
+ for (; --r && Z() && !(q < 48 || q > 102 || q > 57 && q < 65 || q > 70 && q < 97); )
784
784
  ;
785
- return Me(e, Ue() + (r < 6 && ne() == 32 && H() == 32));
785
+ return Ie(e, Ue() + (r < 6 && ae() == 32 && Z() == 32));
786
786
  }
787
787
  function dr(e) {
788
- for (; H(); )
789
- switch (V) {
788
+ for (; Z(); )
789
+ switch (q) {
790
790
  case e:
791
- return K;
791
+ return X;
792
792
  case 34:
793
793
  case 39:
794
- e !== 34 && e !== 39 && dr(V);
794
+ e !== 34 && e !== 39 && dr(q);
795
795
  break;
796
796
  case 40:
797
797
  e === 41 && dr(e);
798
798
  break;
799
799
  case 92:
800
- H();
800
+ Z();
801
801
  break;
802
802
  }
803
- return K;
803
+ return X;
804
804
  }
805
805
  function cn(e, r) {
806
- for (; H() && e + V !== 57; )
807
- if (e + V === 84 && ne() === 47)
806
+ for (; Z() && e + q !== 57; )
807
+ if (e + q === 84 && ae() === 47)
808
808
  break;
809
- return "/*" + Me(r, K - 1) + "*" + Ke(e === 47 ? e : H());
809
+ return "/*" + Ie(r, X - 1) + "*" + Ke(e === 47 ? e : Z());
810
810
  }
811
811
  function fn(e) {
812
- for (; !$e(ne()); )
813
- H();
814
- return Me(e, K);
812
+ for (; !Ae(ae()); )
813
+ Z();
814
+ return Ie(e, X);
815
815
  }
816
816
  function un(e) {
817
817
  return ut(qe("", null, null, null, [""], e = ft(e), 0, [0], e));
818
818
  }
819
- function qe(e, r, n, a, o, i, s, c, d) {
820
- for (var p = 0, u = 0, y = s, x = 0, R = 0, E = 0, C = 1, j = 1, w = 1, S = 0, k = "", L = o, l = i, m = a, v = k; j; )
821
- switch (E = S, S = H()) {
819
+ function qe(e, r, n, o, a, i, c, s, d) {
820
+ for (var p = 0, u = 0, g = c, _ = 0, S = 0, b = 0, x = 1, D = 1, w = 1, E = 0, k = "", j = a, l = i, U = o, $ = k; D; )
821
+ switch (b = E, E = Z()) {
822
822
  case 40:
823
- if (E != 108 && G(v, y - 1) == 58) {
824
- lr(v += A(Ge(S), "&", "&\f"), "&\f") != -1 && (w = -1);
823
+ if (b != 108 && J($, g - 1) == 58) {
824
+ lr($ += M(Ge(E), "&", "&\f"), "&\f") != -1 && (w = -1);
825
825
  break;
826
826
  }
827
827
  case 34:
828
828
  case 39:
829
829
  case 91:
830
- v += Ge(S);
830
+ $ += Ge(E);
831
831
  break;
832
832
  case 9:
833
833
  case 10:
834
834
  case 13:
835
835
  case 32:
836
- v += on(E);
836
+ $ += an(b);
837
837
  break;
838
838
  case 92:
839
- v += sn(Ue() - 1, 7);
839
+ $ += sn(Ue() - 1, 7);
840
840
  continue;
841
841
  case 47:
842
- switch (ne()) {
842
+ switch (ae()) {
843
843
  case 42:
844
844
  case 47:
845
- We(ln(cn(H(), Ue()), r, n), d);
845
+ Ve(ln(cn(Z(), Ue()), r, n), d);
846
846
  break;
847
847
  default:
848
- v += "/";
848
+ $ += "/";
849
849
  }
850
850
  break;
851
- case 123 * C:
852
- c[p++] = re(v) * w;
853
- case 125 * C:
851
+ case 123 * x:
852
+ s[p++] = ne($) * w;
853
+ case 125 * x:
854
854
  case 59:
855
855
  case 0:
856
- switch (S) {
856
+ switch (E) {
857
857
  case 0:
858
858
  case 125:
859
- j = 0;
859
+ D = 0;
860
860
  case 59 + u:
861
- w == -1 && (v = A(v, /\f/g, "")), R > 0 && re(v) - y && We(R > 32 ? Gr(v + ";", a, n, y - 1) : Gr(A(v, " ", "") + ";", a, n, y - 2), d);
861
+ w == -1 && ($ = M($, /\f/g, "")), S > 0 && ne($) - g && Ve(S > 32 ? Gr($ + ";", o, n, g - 1) : Gr(M($, " ", "") + ";", o, n, g - 2), d);
862
862
  break;
863
863
  case 59:
864
- v += ";";
864
+ $ += ";";
865
865
  default:
866
- if (We(m = Ur(v, r, n, p, u, o, c, k, L = [], l = [], y), i), S === 123)
866
+ if (Ve(U = Ur($, r, n, p, u, a, s, k, j = [], l = [], g), i), E === 123)
867
867
  if (u === 0)
868
- qe(v, r, m, m, L, i, y, c, l);
868
+ qe($, r, U, U, j, i, g, s, l);
869
869
  else
870
- switch (x === 99 && G(v, 3) === 110 ? 100 : x) {
870
+ switch (_ === 99 && J($, 3) === 110 ? 100 : _) {
871
871
  case 100:
872
872
  case 108:
873
873
  case 109:
874
874
  case 115:
875
- qe(e, m, m, a && We(Ur(e, m, m, 0, 0, o, c, k, o, L = [], y), l), o, l, y, c, a ? L : l);
875
+ qe(e, U, U, o && Ve(Ur(e, U, U, 0, 0, a, s, k, a, j = [], g), l), a, l, g, s, o ? j : l);
876
876
  break;
877
877
  default:
878
- qe(v, m, m, m, [""], l, 0, c, l);
878
+ qe($, U, U, U, [""], l, 0, s, l);
879
879
  }
880
880
  }
881
- p = u = R = 0, C = w = 1, k = v = "", y = s;
881
+ p = u = S = 0, x = w = 1, k = $ = "", g = c;
882
882
  break;
883
883
  case 58:
884
- y = 1 + re(v), R = E;
884
+ g = 1 + ne($), S = b;
885
885
  default:
886
- if (C < 1) {
887
- if (S == 123)
888
- --C;
889
- else if (S == 125 && C++ == 0 && an() == 125)
886
+ if (x < 1) {
887
+ if (E == 123)
888
+ --x;
889
+ else if (E == 125 && x++ == 0 && on() == 125)
890
890
  continue;
891
891
  }
892
- switch (v += Ke(S), S * C) {
892
+ switch ($ += Ke(E), E * x) {
893
893
  case 38:
894
- w = u > 0 ? 1 : (v += "\f", -1);
894
+ w = u > 0 ? 1 : ($ += "\f", -1);
895
895
  break;
896
896
  case 44:
897
- c[p++] = (re(v) - 1) * w, w = 1;
897
+ s[p++] = (ne($) - 1) * w, w = 1;
898
898
  break;
899
899
  case 64:
900
- ne() === 45 && (v += Ge(H())), x = ne(), u = y = re(k = v += fn(Ue())), S++;
900
+ ae() === 45 && ($ += Ge(Z())), _ = ae(), u = g = ne(k = $ += fn(Ue())), E++;
901
901
  break;
902
902
  case 45:
903
- E === 45 && re(v) == 2 && (C = 0);
903
+ b === 45 && ne($) == 2 && (x = 0);
904
904
  }
905
905
  }
906
906
  return i;
907
907
  }
908
- function Ur(e, r, n, a, o, i, s, c, d, p, u) {
909
- for (var y = o - 1, x = o === 0 ? i : [""], R = yr(x), E = 0, C = 0, j = 0; E < a; ++E)
910
- for (var w = 0, S = ke(e, y + 1, y = Zt(C = s[E])), k = e; w < R; ++w)
911
- (k = st(C > 0 ? x[w] + " " + S : A(S, /&\f/g, x[w]))) && (d[j++] = k);
912
- return Xe(e, r, n, o === 0 ? mr : c, d, p, u);
908
+ function Ur(e, r, n, o, a, i, c, s, d, p, u) {
909
+ for (var g = a - 1, _ = a === 0 ? i : [""], S = yr(_), b = 0, x = 0, D = 0; b < o; ++b)
910
+ for (var w = 0, E = $e(e, g + 1, g = Zt(x = c[b])), k = e; w < S; ++w)
911
+ (k = st(x > 0 ? _[w] + " " + E : M(E, /&\f/g, _[w]))) && (d[D++] = k);
912
+ return Xe(e, r, n, a === 0 ? mr : s, d, p, u);
913
913
  }
914
914
  function ln(e, r, n) {
915
- return Xe(e, r, n, ot, Ke(nn()), ke(e, 2, -2), 0);
915
+ return Xe(e, r, n, at, Ke(nn()), $e(e, 2, -2), 0);
916
916
  }
917
- function Gr(e, r, n, a) {
918
- return Xe(e, r, n, gr, ke(e, 0, a), ke(e, a + 1, -1), a);
917
+ function Gr(e, r, n, o) {
918
+ return Xe(e, r, n, gr, $e(e, 0, o), $e(e, o + 1, -1), o);
919
919
  }
920
- function ge(e, r) {
921
- for (var n = "", a = yr(e), o = 0; o < a; o++)
922
- n += r(e[o], o, e, r) || "";
920
+ function ye(e, r) {
921
+ for (var n = "", o = yr(e), a = 0; a < o; a++)
922
+ n += r(e[a], a, e, r) || "";
923
923
  return n;
924
924
  }
925
- function dn(e, r, n, a) {
925
+ function dn(e, r, n, o) {
926
926
  switch (e.type) {
927
927
  case Xt:
928
928
  if (e.children.length) break;
929
929
  case Ht:
930
930
  case gr:
931
931
  return e.return = e.return || e.value;
932
- case ot:
932
+ case at:
933
933
  return "";
934
934
  case it:
935
- return e.return = e.value + "{" + ge(e.children, a) + "}";
935
+ return e.return = e.value + "{" + ye(e.children, o) + "}";
936
936
  case mr:
937
937
  e.value = e.props.join(",");
938
938
  }
939
- return re(n = ge(e.children, a)) ? e.return = e.value + "{" + n + "}" : "";
939
+ return ne(n = ye(e.children, o)) ? e.return = e.value + "{" + n + "}" : "";
940
940
  }
941
941
  function hn(e) {
942
942
  var r = yr(e);
943
- return function(n, a, o, i) {
944
- for (var s = "", c = 0; c < r; c++)
945
- s += e[c](n, a, o, i) || "";
946
- return s;
943
+ return function(n, o, a, i) {
944
+ for (var c = "", s = 0; s < r; s++)
945
+ c += e[s](n, o, a, i) || "";
946
+ return c;
947
947
  };
948
948
  }
949
949
  function pn(e) {
@@ -957,29 +957,29 @@ function vn(e) {
957
957
  return r[n] === void 0 && (r[n] = e(n)), r[n];
958
958
  };
959
959
  }
960
- var mn = function(r, n, a) {
961
- for (var o = 0, i = 0; o = i, i = ne(), o === 38 && i === 12 && (n[a] = 1), !$e(i); )
962
- H();
963
- return Me(r, K);
960
+ var mn = function(r, n, o) {
961
+ for (var a = 0, i = 0; a = i, i = ae(), a === 38 && i === 12 && (n[o] = 1), !Ae(i); )
962
+ Z();
963
+ return Ie(r, X);
964
964
  }, gn = function(r, n) {
965
- var a = -1, o = 44;
965
+ var o = -1, a = 44;
966
966
  do
967
- switch ($e(o)) {
967
+ switch (Ae(a)) {
968
968
  case 0:
969
- o === 38 && ne() === 12 && (n[a] = 1), r[a] += mn(K - 1, n, a);
969
+ a === 38 && ae() === 12 && (n[o] = 1), r[o] += mn(X - 1, n, o);
970
970
  break;
971
971
  case 2:
972
- r[a] += Ge(o);
972
+ r[o] += Ge(a);
973
973
  break;
974
974
  case 4:
975
- if (o === 44) {
976
- r[++a] = ne() === 58 ? "&\f" : "", n[a] = r[a].length;
975
+ if (a === 44) {
976
+ r[++o] = ae() === 58 ? "&\f" : "", n[o] = r[o].length;
977
977
  break;
978
978
  }
979
979
  default:
980
- r[a] += Ke(o);
980
+ r[o] += Ke(a);
981
981
  }
982
- while (o = H());
982
+ while (a = Z());
983
983
  return r;
984
984
  }, yn = function(r, n) {
985
985
  return ut(gn(ft(r), n));
@@ -987,13 +987,13 @@ var mn = function(r, n, a) {
987
987
  if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo
988
988
  // negative .length indicates that this rule has been already prefixed
989
989
  r.length < 1)) {
990
- for (var n = r.value, a = r.parent, o = r.column === a.column && r.line === a.line; a.type !== "rule"; )
991
- if (a = a.parent, !a) return;
992
- if (!(r.props.length === 1 && n.charCodeAt(0) !== 58 && !qr.get(a)) && !o) {
990
+ for (var n = r.value, o = r.parent, a = r.column === o.column && r.line === o.line; o.type !== "rule"; )
991
+ if (o = o.parent, !o) return;
992
+ if (!(r.props.length === 1 && n.charCodeAt(0) !== 58 && !qr.get(o)) && !a) {
993
993
  qr.set(r, !0);
994
- for (var i = [], s = yn(n, i), c = a.props, d = 0, p = 0; d < s.length; d++)
995
- for (var u = 0; u < c.length; u++, p++)
996
- r.props[p] = i[d] ? s[d].replace(/&\f/g, c[u]) : c[u] + " " + s[d];
994
+ for (var i = [], c = yn(n, i), s = o.props, d = 0, p = 0; d < c.length; d++)
995
+ for (var u = 0; u < s.length; u++, p++)
996
+ r.props[p] = i[d] ? c[d].replace(/&\f/g, s[u]) : s[u] + " " + c[d];
997
997
  }
998
998
  }
999
999
  }, En = function(r) {
@@ -1007,7 +1007,7 @@ var mn = function(r, n, a) {
1007
1007
  function lt(e, r) {
1008
1008
  switch (en(e, r)) {
1009
1009
  case 5103:
1010
- return $ + "print-" + e + e;
1010
+ return A + "print-" + e + e;
1011
1011
  case 5737:
1012
1012
  case 4201:
1013
1013
  case 3177:
@@ -1033,44 +1033,44 @@ function lt(e, r) {
1033
1033
  case 5365:
1034
1034
  case 5621:
1035
1035
  case 3829:
1036
- return $ + e + e;
1036
+ return A + e + e;
1037
1037
  case 5349:
1038
1038
  case 4246:
1039
1039
  case 4810:
1040
1040
  case 6968:
1041
1041
  case 2756:
1042
- return $ + e + Je + e + q + e + e;
1042
+ return A + e + Je + e + z + e + e;
1043
1043
  case 6828:
1044
1044
  case 4268:
1045
- return $ + e + q + e + e;
1045
+ return A + e + z + e + e;
1046
1046
  case 6165:
1047
- return $ + e + q + "flex-" + e + e;
1047
+ return A + e + z + "flex-" + e + e;
1048
1048
  case 5187:
1049
- return $ + e + A(e, /(\w+).+(:[^]+)/, $ + "box-$1$2" + q + "flex-$1$2") + e;
1049
+ return A + e + M(e, /(\w+).+(:[^]+)/, A + "box-$1$2" + z + "flex-$1$2") + e;
1050
1050
  case 5443:
1051
- return $ + e + q + "flex-item-" + A(e, /flex-|-self/, "") + e;
1051
+ return A + e + z + "flex-item-" + M(e, /flex-|-self/, "") + e;
1052
1052
  case 4675:
1053
- return $ + e + q + "flex-line-pack" + A(e, /align-content|flex-|-self/, "") + e;
1053
+ return A + e + z + "flex-line-pack" + M(e, /align-content|flex-|-self/, "") + e;
1054
1054
  case 5548:
1055
- return $ + e + q + A(e, "shrink", "negative") + e;
1055
+ return A + e + z + M(e, "shrink", "negative") + e;
1056
1056
  case 5292:
1057
- return $ + e + q + A(e, "basis", "preferred-size") + e;
1057
+ return A + e + z + M(e, "basis", "preferred-size") + e;
1058
1058
  case 6060:
1059
- return $ + "box-" + A(e, "-grow", "") + $ + e + q + A(e, "grow", "positive") + e;
1059
+ return A + "box-" + M(e, "-grow", "") + A + e + z + M(e, "grow", "positive") + e;
1060
1060
  case 4554:
1061
- return $ + A(e, /([^-])(transform)/g, "$1" + $ + "$2") + e;
1061
+ return A + M(e, /([^-])(transform)/g, "$1" + A + "$2") + e;
1062
1062
  case 6187:
1063
- return A(A(A(e, /(zoom-|grab)/, $ + "$1"), /(image-set)/, $ + "$1"), e, "") + e;
1063
+ return M(M(M(e, /(zoom-|grab)/, A + "$1"), /(image-set)/, A + "$1"), e, "") + e;
1064
1064
  case 5495:
1065
1065
  case 3959:
1066
- return A(e, /(image-set\([^]*)/, $ + "$1$`$1");
1066
+ return M(e, /(image-set\([^]*)/, A + "$1$`$1");
1067
1067
  case 4968:
1068
- return A(A(e, /(.+:)(flex-)?(.*)/, $ + "box-pack:$3" + q + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + $ + e + e;
1068
+ return M(M(e, /(.+:)(flex-)?(.*)/, A + "box-pack:$3" + z + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + A + e + e;
1069
1069
  case 4095:
1070
1070
  case 3583:
1071
1071
  case 4068:
1072
1072
  case 2532:
1073
- return A(e, /(.+)-inline(.+)/, $ + "$1$2") + e;
1073
+ return M(e, /(.+)-inline(.+)/, A + "$1$2") + e;
1074
1074
  case 8116:
1075
1075
  case 7059:
1076
1076
  case 5753:
@@ -1083,63 +1083,63 @@ function lt(e, r) {
1083
1083
  case 5789:
1084
1084
  case 5021:
1085
1085
  case 4765:
1086
- if (re(e) - 1 - r > 6) switch (G(e, r + 1)) {
1086
+ if (ne(e) - 1 - r > 6) switch (J(e, r + 1)) {
1087
1087
  case 109:
1088
- if (G(e, r + 4) !== 45) break;
1088
+ if (J(e, r + 4) !== 45) break;
1089
1089
  case 102:
1090
- return A(e, /(.+:)(.+)-([^]+)/, "$1" + $ + "$2-$3$1" + Je + (G(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
1090
+ return M(e, /(.+:)(.+)-([^]+)/, "$1" + A + "$2-$3$1" + Je + (J(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
1091
1091
  case 115:
1092
- return ~lr(e, "stretch") ? lt(A(e, "stretch", "fill-available"), r) + e : e;
1092
+ return ~lr(e, "stretch") ? lt(M(e, "stretch", "fill-available"), r) + e : e;
1093
1093
  }
1094
1094
  break;
1095
1095
  case 4949:
1096
- if (G(e, r + 1) !== 115) break;
1096
+ if (J(e, r + 1) !== 115) break;
1097
1097
  case 6444:
1098
- switch (G(e, re(e) - 3 - (~lr(e, "!important") && 10))) {
1098
+ switch (J(e, ne(e) - 3 - (~lr(e, "!important") && 10))) {
1099
1099
  case 107:
1100
- return A(e, ":", ":" + $) + e;
1100
+ return M(e, ":", ":" + A) + e;
1101
1101
  case 101:
1102
- return A(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + $ + (G(e, 14) === 45 ? "inline-" : "") + "box$3$1" + $ + "$2$3$1" + q + "$2box$3") + e;
1102
+ return M(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + A + (J(e, 14) === 45 ? "inline-" : "") + "box$3$1" + A + "$2$3$1" + z + "$2box$3") + e;
1103
1103
  }
1104
1104
  break;
1105
1105
  case 5936:
1106
- switch (G(e, r + 11)) {
1106
+ switch (J(e, r + 11)) {
1107
1107
  case 114:
1108
- return $ + e + q + A(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
1108
+ return A + e + z + M(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
1109
1109
  case 108:
1110
- return $ + e + q + A(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
1110
+ return A + e + z + M(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
1111
1111
  case 45:
1112
- return $ + e + q + A(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
1112
+ return A + e + z + M(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
1113
1113
  }
1114
- return $ + e + q + e + e;
1114
+ return A + e + z + e + e;
1115
1115
  }
1116
1116
  return e;
1117
1117
  }
1118
- var Sn = function(r, n, a, o) {
1118
+ var Sn = function(r, n, o, a) {
1119
1119
  if (r.length > -1 && !r.return) switch (r.type) {
1120
1120
  case gr:
1121
1121
  r.return = lt(r.value, r.length);
1122
1122
  break;
1123
1123
  case it:
1124
- return ge([Pe(r, {
1125
- value: A(r.value, "@", "@" + $)
1126
- })], o);
1124
+ return ye([ke(r, {
1125
+ value: M(r.value, "@", "@" + A)
1126
+ })], a);
1127
1127
  case mr:
1128
1128
  if (r.length) return tn(r.props, function(i) {
1129
1129
  switch (rn(i, /(::plac\w+|:read-\w+)/)) {
1130
1130
  case ":read-only":
1131
1131
  case ":read-write":
1132
- return ge([Pe(r, {
1133
- props: [A(i, /:(read-\w+)/, ":" + Je + "$1")]
1134
- })], o);
1132
+ return ye([ke(r, {
1133
+ props: [M(i, /:(read-\w+)/, ":" + Je + "$1")]
1134
+ })], a);
1135
1135
  case "::placeholder":
1136
- return ge([Pe(r, {
1137
- props: [A(i, /:(plac\w+)/, ":" + $ + "input-$1")]
1138
- }), Pe(r, {
1139
- props: [A(i, /:(plac\w+)/, ":" + Je + "$1")]
1140
- }), Pe(r, {
1141
- props: [A(i, /:(plac\w+)/, q + "input-$1")]
1142
- })], o);
1136
+ return ye([ke(r, {
1137
+ props: [M(i, /:(plac\w+)/, ":" + A + "input-$1")]
1138
+ }), ke(r, {
1139
+ props: [M(i, /:(plac\w+)/, ":" + Je + "$1")]
1140
+ }), ke(r, {
1141
+ props: [M(i, /:(plac\w+)/, z + "input-$1")]
1142
+ })], a);
1143
1143
  }
1144
1144
  return "";
1145
1145
  });
@@ -1147,39 +1147,39 @@ var Sn = function(r, n, a, o) {
1147
1147
  }, Rn = [Sn], Cn = function(r) {
1148
1148
  var n = r.key;
1149
1149
  if (n === "css") {
1150
- var a = document.querySelectorAll("style[data-emotion]:not([data-s])");
1151
- Array.prototype.forEach.call(a, function(C) {
1152
- var j = C.getAttribute("data-emotion");
1153
- j.indexOf(" ") !== -1 && (document.head.appendChild(C), C.setAttribute("data-s", ""));
1150
+ var o = document.querySelectorAll("style[data-emotion]:not([data-s])");
1151
+ Array.prototype.forEach.call(o, function(x) {
1152
+ var D = x.getAttribute("data-emotion");
1153
+ D.indexOf(" ") !== -1 && (document.head.appendChild(x), x.setAttribute("data-s", ""));
1154
1154
  });
1155
1155
  }
1156
- var o = r.stylisPlugins || Rn, i = {}, s, c = [];
1157
- s = r.container || document.head, Array.prototype.forEach.call(
1156
+ var a = r.stylisPlugins || Rn, i = {}, c, s = [];
1157
+ c = r.container || document.head, Array.prototype.forEach.call(
1158
1158
  // this means we will ignore elements which don't have a space in them which
1159
1159
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1160
1160
  document.querySelectorAll('style[data-emotion^="' + n + ' "]'),
1161
- function(C) {
1162
- for (var j = C.getAttribute("data-emotion").split(" "), w = 1; w < j.length; w++)
1163
- i[j[w]] = !0;
1164
- c.push(C);
1161
+ function(x) {
1162
+ for (var D = x.getAttribute("data-emotion").split(" "), w = 1; w < D.length; w++)
1163
+ i[D[w]] = !0;
1164
+ s.push(x);
1165
1165
  }
1166
1166
  );
1167
1167
  var d, p = [bn, En];
1168
1168
  {
1169
- var u, y = [dn, pn(function(C) {
1170
- u.insert(C);
1171
- })], x = hn(p.concat(o, y)), R = function(j) {
1172
- return ge(un(j), x);
1169
+ var u, g = [dn, pn(function(x) {
1170
+ u.insert(x);
1171
+ })], _ = hn(p.concat(a, g)), S = function(D) {
1172
+ return ye(un(D), _);
1173
1173
  };
1174
- d = function(j, w, S, k) {
1175
- u = S, R(j ? j + "{" + w.styles + "}" : w.styles), k && (E.inserted[w.name] = !0);
1174
+ d = function(D, w, E, k) {
1175
+ u = E, S(D ? D + "{" + w.styles + "}" : w.styles), k && (b.inserted[w.name] = !0);
1176
1176
  };
1177
1177
  }
1178
- var E = {
1178
+ var b = {
1179
1179
  key: n,
1180
1180
  sheet: new Kt({
1181
1181
  key: n,
1182
- container: s,
1182
+ container: c,
1183
1183
  nonce: r.nonce,
1184
1184
  speedy: r.speedy,
1185
1185
  prepend: r.prepend,
@@ -1190,8 +1190,8 @@ var Sn = function(r, n, a, o) {
1190
1190
  registered: {},
1191
1191
  insert: d
1192
1192
  };
1193
- return E.sheet.hydrate(c), E;
1194
- }, hr = { exports: {} }, I = {};
1193
+ return b.sheet.hydrate(s), b;
1194
+ }, hr = { exports: {} }, F = {};
1195
1195
  /** @license React v16.13.1
1196
1196
  * react-is.production.min.js
1197
1197
  *
@@ -1202,71 +1202,71 @@ var Sn = function(r, n, a, o) {
1202
1202
  */
1203
1203
  var Br;
1204
1204
  function _n() {
1205
- if (Br) return I;
1205
+ if (Br) return F;
1206
1206
  Br = 1;
1207
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, R = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, C = e ? Symbol.for("react.block") : 60121, j = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
1207
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = 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, c = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, _ = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, D = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
1208
1208
  function k(l) {
1209
1209
  if (typeof l == "object" && l !== null) {
1210
- var m = l.$$typeof;
1211
- switch (m) {
1210
+ var U = l.$$typeof;
1211
+ switch (U) {
1212
1212
  case r:
1213
1213
  switch (l = l.type, l) {
1214
1214
  case d:
1215
1215
  case p:
1216
- case a:
1217
- case i:
1218
1216
  case o:
1219
- case y:
1217
+ case i:
1218
+ case a:
1219
+ case g:
1220
1220
  return l;
1221
1221
  default:
1222
1222
  switch (l = l && l.$$typeof, l) {
1223
- case c:
1224
- case u:
1225
- case E:
1226
- case R:
1227
1223
  case s:
1224
+ case u:
1225
+ case b:
1226
+ case S:
1227
+ case c:
1228
1228
  return l;
1229
1229
  default:
1230
- return m;
1230
+ return U;
1231
1231
  }
1232
1232
  }
1233
1233
  case n:
1234
- return m;
1234
+ return U;
1235
1235
  }
1236
1236
  }
1237
1237
  }
1238
- function L(l) {
1238
+ function j(l) {
1239
1239
  return k(l) === p;
1240
1240
  }
1241
- return I.AsyncMode = d, I.ConcurrentMode = p, I.ContextConsumer = c, I.ContextProvider = s, I.Element = r, I.ForwardRef = u, I.Fragment = a, I.Lazy = E, I.Memo = R, I.Portal = n, I.Profiler = i, I.StrictMode = o, I.Suspense = y, I.isAsyncMode = function(l) {
1242
- return L(l) || k(l) === d;
1243
- }, I.isConcurrentMode = L, I.isContextConsumer = function(l) {
1244
- return k(l) === c;
1245
- }, I.isContextProvider = function(l) {
1241
+ return F.AsyncMode = d, F.ConcurrentMode = p, F.ContextConsumer = s, F.ContextProvider = c, F.Element = r, F.ForwardRef = u, F.Fragment = o, F.Lazy = b, F.Memo = S, F.Portal = n, F.Profiler = i, F.StrictMode = a, F.Suspense = g, F.isAsyncMode = function(l) {
1242
+ return j(l) || k(l) === d;
1243
+ }, F.isConcurrentMode = j, F.isContextConsumer = function(l) {
1246
1244
  return k(l) === s;
1247
- }, I.isElement = function(l) {
1245
+ }, F.isContextProvider = function(l) {
1246
+ return k(l) === c;
1247
+ }, F.isElement = function(l) {
1248
1248
  return typeof l == "object" && l !== null && l.$$typeof === r;
1249
- }, I.isForwardRef = function(l) {
1249
+ }, F.isForwardRef = function(l) {
1250
1250
  return k(l) === u;
1251
- }, I.isFragment = function(l) {
1252
- return k(l) === a;
1253
- }, I.isLazy = function(l) {
1254
- return k(l) === E;
1255
- }, I.isMemo = function(l) {
1256
- return k(l) === R;
1257
- }, I.isPortal = function(l) {
1251
+ }, F.isFragment = function(l) {
1252
+ return k(l) === o;
1253
+ }, F.isLazy = function(l) {
1254
+ return k(l) === b;
1255
+ }, F.isMemo = function(l) {
1256
+ return k(l) === S;
1257
+ }, F.isPortal = function(l) {
1258
1258
  return k(l) === n;
1259
- }, I.isProfiler = function(l) {
1259
+ }, F.isProfiler = function(l) {
1260
1260
  return k(l) === i;
1261
- }, I.isStrictMode = function(l) {
1262
- return k(l) === o;
1263
- }, I.isSuspense = function(l) {
1264
- return k(l) === y;
1265
- }, I.isValidElementType = function(l) {
1266
- return typeof l == "string" || typeof l == "function" || l === a || l === p || l === i || l === o || l === y || l === x || typeof l == "object" && l !== null && (l.$$typeof === E || l.$$typeof === R || l.$$typeof === s || l.$$typeof === c || l.$$typeof === u || l.$$typeof === j || l.$$typeof === w || l.$$typeof === S || l.$$typeof === C);
1267
- }, I.typeOf = k, I;
1261
+ }, F.isStrictMode = function(l) {
1262
+ return k(l) === a;
1263
+ }, F.isSuspense = function(l) {
1264
+ return k(l) === g;
1265
+ }, F.isValidElementType = function(l) {
1266
+ return typeof l == "string" || typeof l == "function" || l === o || l === p || l === i || l === a || l === g || l === _ || typeof l == "object" && l !== null && (l.$$typeof === b || l.$$typeof === S || l.$$typeof === c || l.$$typeof === s || l.$$typeof === u || l.$$typeof === D || l.$$typeof === w || l.$$typeof === E || l.$$typeof === x);
1267
+ }, F.typeOf = k, F;
1268
1268
  }
1269
- var F = {};
1269
+ var N = {};
1270
1270
  /** @license React v16.13.1
1271
1271
  * react-is.development.js
1272
1272
  *
@@ -1278,85 +1278,85 @@ var F = {};
1278
1278
  var Jr;
1279
1279
  function xn() {
1280
1280
  return Jr || (Jr = 1, process.env.NODE_ENV !== "production" && function() {
1281
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, R = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, C = e ? Symbol.for("react.block") : 60121, j = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
1282
- function k(g) {
1283
- return typeof g == "string" || typeof g == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1284
- g === a || g === p || g === i || g === o || g === y || g === x || typeof g == "object" && g !== null && (g.$$typeof === E || g.$$typeof === R || g.$$typeof === s || g.$$typeof === c || g.$$typeof === u || g.$$typeof === j || g.$$typeof === w || g.$$typeof === S || g.$$typeof === C);
1285
- }
1286
- function L(g) {
1287
- if (typeof g == "object" && g !== null) {
1288
- var xe = g.$$typeof;
1289
- switch (xe) {
1281
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = 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, c = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, _ = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, D = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
1282
+ function k(m) {
1283
+ return typeof m == "string" || typeof m == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1284
+ m === o || m === p || m === i || m === a || m === g || m === _ || typeof m == "object" && m !== null && (m.$$typeof === b || m.$$typeof === S || m.$$typeof === c || m.$$typeof === s || m.$$typeof === u || m.$$typeof === D || m.$$typeof === w || m.$$typeof === E || m.$$typeof === x);
1285
+ }
1286
+ function j(m) {
1287
+ if (typeof m == "object" && m !== null) {
1288
+ var we = m.$$typeof;
1289
+ switch (we) {
1290
1290
  case r:
1291
- var he = g.type;
1292
- switch (he) {
1291
+ var ve = m.type;
1292
+ switch (ve) {
1293
1293
  case d:
1294
1294
  case p:
1295
- case a:
1296
- case i:
1297
1295
  case o:
1298
- case y:
1299
- return he;
1296
+ case i:
1297
+ case a:
1298
+ case g:
1299
+ return ve;
1300
1300
  default:
1301
- var ce = he && he.$$typeof;
1302
- switch (ce) {
1303
- case c:
1304
- case u:
1305
- case E:
1306
- case R:
1301
+ var fe = ve && ve.$$typeof;
1302
+ switch (fe) {
1307
1303
  case s:
1308
- return ce;
1304
+ case u:
1305
+ case b:
1306
+ case S:
1307
+ case c:
1308
+ return fe;
1309
1309
  default:
1310
- return xe;
1310
+ return we;
1311
1311
  }
1312
1312
  }
1313
1313
  case n:
1314
- return xe;
1314
+ return we;
1315
1315
  }
1316
1316
  }
1317
1317
  }
1318
- var l = d, m = p, v = c, P = s, O = r, D = u, U = a, X = E, B = R, ae = n, se = i, Ie = o, Fe = y, Ee = !1;
1319
- function Ne(g) {
1320
- return Ee || (Ee = !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.")), Se(g) || L(g) === d;
1318
+ var l = d, U = p, $ = s, v = c, R = r, O = u, P = o, W = b, Y = S, B = n, Q = i, Fe = a, Ne = g, Se = !1;
1319
+ function je(m) {
1320
+ return Se || (Se = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Re(m) || j(m) === d;
1321
1321
  }
1322
- function Se(g) {
1323
- return L(g) === p;
1322
+ function Re(m) {
1323
+ return j(m) === p;
1324
1324
  }
1325
- function je(g) {
1326
- return L(g) === c;
1325
+ function Le(m) {
1326
+ return j(m) === s;
1327
1327
  }
1328
- function Le(g) {
1329
- return L(g) === s;
1328
+ function De(m) {
1329
+ return j(m) === c;
1330
1330
  }
1331
- function De(g) {
1332
- return typeof g == "object" && g !== null && g.$$typeof === r;
1331
+ function Ye(m) {
1332
+ return typeof m == "object" && m !== null && m.$$typeof === r;
1333
1333
  }
1334
- function Qe(g) {
1335
- return L(g) === u;
1334
+ function Qe(m) {
1335
+ return j(m) === u;
1336
1336
  }
1337
- function er(g) {
1338
- return L(g) === a;
1337
+ function er(m) {
1338
+ return j(m) === o;
1339
1339
  }
1340
- function Re(g) {
1341
- return L(g) === E;
1340
+ function Ce(m) {
1341
+ return j(m) === b;
1342
1342
  }
1343
- function Ce(g) {
1344
- return L(g) === R;
1343
+ function _e(m) {
1344
+ return j(m) === S;
1345
1345
  }
1346
- function le(g) {
1347
- return L(g) === n;
1346
+ function he(m) {
1347
+ return j(m) === n;
1348
1348
  }
1349
- function _e(g) {
1350
- return L(g) === i;
1349
+ function xe(m) {
1350
+ return j(m) === i;
1351
1351
  }
1352
- function de(g) {
1353
- return L(g) === o;
1352
+ function pe(m) {
1353
+ return j(m) === a;
1354
1354
  }
1355
- function rr(g) {
1356
- return L(g) === y;
1355
+ function rr(m) {
1356
+ return j(m) === g;
1357
1357
  }
1358
- F.AsyncMode = l, F.ConcurrentMode = m, F.ContextConsumer = v, F.ContextProvider = P, F.Element = O, F.ForwardRef = D, F.Fragment = U, F.Lazy = X, F.Memo = B, F.Portal = ae, F.Profiler = se, F.StrictMode = Ie, F.Suspense = Fe, F.isAsyncMode = Ne, F.isConcurrentMode = Se, F.isContextConsumer = je, F.isContextProvider = Le, F.isElement = De, F.isForwardRef = Qe, F.isFragment = er, F.isLazy = Re, F.isMemo = Ce, F.isPortal = le, F.isProfiler = _e, F.isStrictMode = de, F.isSuspense = rr, F.isValidElementType = k, F.typeOf = L;
1359
- }()), F;
1358
+ N.AsyncMode = l, N.ConcurrentMode = U, N.ContextConsumer = $, N.ContextProvider = v, N.Element = R, N.ForwardRef = O, N.Fragment = P, N.Lazy = W, N.Memo = Y, N.Portal = B, N.Profiler = Q, N.StrictMode = Fe, N.Suspense = Ne, N.isAsyncMode = je, N.isConcurrentMode = Re, N.isContextConsumer = Le, N.isContextProvider = De, N.isElement = Ye, N.isForwardRef = Qe, N.isFragment = er, N.isLazy = Ce, N.isMemo = _e, N.isPortal = he, N.isProfiler = xe, N.isStrictMode = pe, N.isSuspense = rr, N.isValidElementType = k, N.typeOf = j;
1359
+ }()), N;
1360
1360
  }
1361
1361
  process.env.NODE_ENV === "production" ? hr.exports = _n() : hr.exports = xn();
1362
1362
  var wn = hr.exports, dt = wn, Tn = {
@@ -1377,47 +1377,47 @@ ht[dt.ForwardRef] = Tn;
1377
1377
  ht[dt.Memo] = On;
1378
1378
  var Pn = !0;
1379
1379
  function kn(e, r, n) {
1380
- var a = "";
1381
- return n.split(" ").forEach(function(o) {
1382
- e[o] !== void 0 ? r.push(e[o] + ";") : o && (a += o + " ");
1383
- }), a;
1380
+ var o = "";
1381
+ return n.split(" ").forEach(function(a) {
1382
+ e[a] !== void 0 ? r.push(e[a] + ";") : a && (o += a + " ");
1383
+ }), o;
1384
1384
  }
1385
- var pt = function(r, n, a) {
1386
- var o = r.key + "-" + n.name;
1385
+ var pt = function(r, n, o) {
1386
+ var a = r.key + "-" + n.name;
1387
1387
  // we only need to add the styles to the registered cache if the
1388
1388
  // class name could be used further down
1389
1389
  // the tree but if it's a string tag, we know it won't
1390
1390
  // so we don't have to add it to registered cache.
1391
1391
  // this improves memory usage since we can avoid storing the whole style string
1392
- (a === !1 || // we need to always store it if we're in compat mode and
1392
+ (o === !1 || // we need to always store it if we're in compat mode and
1393
1393
  // in node since emotion-server relies on whether a style is in
1394
1394
  // the registered cache to know whether a style is global or not
1395
1395
  // also, note that this check will be dead code eliminated in the browser
1396
- Pn === !1) && r.registered[o] === void 0 && (r.registered[o] = n.styles);
1397
- }, $n = function(r, n, a) {
1398
- pt(r, n, a);
1399
- var o = r.key + "-" + n.name;
1396
+ Pn === !1) && r.registered[a] === void 0 && (r.registered[a] = n.styles);
1397
+ }, $n = function(r, n, o) {
1398
+ pt(r, n, o);
1399
+ var a = r.key + "-" + n.name;
1400
1400
  if (r.inserted[n.name] === void 0) {
1401
1401
  var i = n;
1402
1402
  do
1403
- r.insert(n === i ? "." + o : "", i, r.sheet, !0), i = i.next;
1403
+ r.insert(n === i ? "." + a : "", i, r.sheet, !0), i = i.next;
1404
1404
  while (i !== void 0);
1405
1405
  }
1406
1406
  };
1407
1407
  function An(e) {
1408
- for (var r = 0, n, a = 0, o = e.length; o >= 4; ++a, o -= 4)
1409
- n = e.charCodeAt(a) & 255 | (e.charCodeAt(++a) & 255) << 8 | (e.charCodeAt(++a) & 255) << 16 | (e.charCodeAt(++a) & 255) << 24, n = /* Math.imul(k, m): */
1408
+ for (var r = 0, n, o = 0, a = e.length; a >= 4; ++o, a -= 4)
1409
+ n = e.charCodeAt(o) & 255 | (e.charCodeAt(++o) & 255) << 8 | (e.charCodeAt(++o) & 255) << 16 | (e.charCodeAt(++o) & 255) << 24, n = /* Math.imul(k, m): */
1410
1410
  (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
1411
1411
  n >>> 24, r = /* Math.imul(k, m): */
1412
1412
  (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
1413
1413
  (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
1414
- switch (o) {
1414
+ switch (a) {
1415
1415
  case 3:
1416
- r ^= (e.charCodeAt(a + 2) & 255) << 16;
1416
+ r ^= (e.charCodeAt(o + 2) & 255) << 16;
1417
1417
  case 2:
1418
- r ^= (e.charCodeAt(a + 1) & 255) << 8;
1418
+ r ^= (e.charCodeAt(o + 1) & 255) << 8;
1419
1419
  case 1:
1420
- r ^= e.charCodeAt(a) & 255, r = /* Math.imul(h, m): */
1420
+ r ^= e.charCodeAt(o) & 255, r = /* Math.imul(h, m): */
1421
1421
  (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
1422
1422
  }
1423
1423
  return r ^= r >>> 13, r = /* Math.imul(h, m): */
@@ -1483,52 +1483,52 @@ var Mn = {
1483
1483
  case "animation":
1484
1484
  case "animationName":
1485
1485
  if (typeof n == "string")
1486
- return n.replace(Fn, function(a, o, i) {
1487
- return te = {
1488
- name: o,
1486
+ return n.replace(Fn, function(o, a, i) {
1487
+ return oe = {
1488
+ name: a,
1489
1489
  styles: i,
1490
- next: te
1491
- }, o;
1490
+ next: oe
1491
+ }, a;
1492
1492
  });
1493
1493
  }
1494
1494
  return Mn[r] !== 1 && !vt(r) && typeof n == "number" && n !== 0 ? n + "px" : n;
1495
1495
  };
1496
- function Ae(e, r, n) {
1496
+ function Me(e, r, n) {
1497
1497
  if (n == null)
1498
1498
  return "";
1499
- var a = n;
1500
- if (a.__emotion_styles !== void 0)
1501
- return a;
1499
+ var o = n;
1500
+ if (o.__emotion_styles !== void 0)
1501
+ return o;
1502
1502
  switch (typeof n) {
1503
1503
  case "boolean":
1504
1504
  return "";
1505
1505
  case "object": {
1506
- var o = n;
1507
- if (o.anim === 1)
1508
- return te = {
1509
- name: o.name,
1510
- styles: o.styles,
1511
- next: te
1512
- }, o.name;
1506
+ var a = n;
1507
+ if (a.anim === 1)
1508
+ return oe = {
1509
+ name: a.name,
1510
+ styles: a.styles,
1511
+ next: oe
1512
+ }, a.name;
1513
1513
  var i = n;
1514
1514
  if (i.styles !== void 0) {
1515
- var s = i.next;
1516
- if (s !== void 0)
1517
- for (; s !== void 0; )
1518
- te = {
1519
- name: s.name,
1520
- styles: s.styles,
1521
- next: te
1522
- }, s = s.next;
1523
- var c = i.styles + ";";
1524
- return c;
1515
+ var c = i.next;
1516
+ if (c !== void 0)
1517
+ for (; c !== void 0; )
1518
+ oe = {
1519
+ name: c.name,
1520
+ styles: c.styles,
1521
+ next: oe
1522
+ }, c = c.next;
1523
+ var s = i.styles + ";";
1524
+ return s;
1525
1525
  }
1526
1526
  return Nn(e, r, n);
1527
1527
  }
1528
1528
  case "function": {
1529
1529
  if (e !== void 0) {
1530
- var d = te, p = n(e);
1531
- return te = d, Ae(e, r, p);
1530
+ var d = oe, p = n(e);
1531
+ return oe = d, Me(e, r, p);
1532
1532
  }
1533
1533
  break;
1534
1534
  }
@@ -1537,65 +1537,65 @@ function Ae(e, r, n) {
1537
1537
  return u;
1538
1538
  }
1539
1539
  function Nn(e, r, n) {
1540
- var a = "";
1540
+ var o = "";
1541
1541
  if (Array.isArray(n))
1542
- for (var o = 0; o < n.length; o++)
1543
- a += Ae(e, r, n[o]) + ";";
1542
+ for (var a = 0; a < n.length; a++)
1543
+ o += Me(e, r, n[a]) + ";";
1544
1544
  else
1545
1545
  for (var i in n) {
1546
- var s = n[i];
1547
- if (typeof s != "object") {
1548
- var c = s;
1549
- zr(c) && (a += sr(i) + ":" + Kr(i, c) + ";");
1550
- } else if (Array.isArray(s) && typeof s[0] == "string" && r == null)
1551
- for (var d = 0; d < s.length; d++)
1552
- zr(s[d]) && (a += sr(i) + ":" + Kr(i, s[d]) + ";");
1546
+ var c = n[i];
1547
+ if (typeof c != "object") {
1548
+ var s = c;
1549
+ zr(s) && (o += sr(i) + ":" + Kr(i, s) + ";");
1550
+ } else if (Array.isArray(c) && typeof c[0] == "string" && r == null)
1551
+ for (var d = 0; d < c.length; d++)
1552
+ zr(c[d]) && (o += sr(i) + ":" + Kr(i, c[d]) + ";");
1553
1553
  else {
1554
- var p = Ae(e, r, s);
1554
+ var p = Me(e, r, c);
1555
1555
  switch (i) {
1556
1556
  case "animation":
1557
1557
  case "animationName": {
1558
- a += sr(i) + ":" + p + ";";
1558
+ o += sr(i) + ":" + p + ";";
1559
1559
  break;
1560
1560
  }
1561
1561
  default:
1562
- a += i + "{" + p + "}";
1562
+ o += i + "{" + p + "}";
1563
1563
  }
1564
1564
  }
1565
1565
  }
1566
- return a;
1566
+ return o;
1567
1567
  }
1568
- var Hr = /label:\s*([^\s;{]+)\s*(;|$)/g, te;
1568
+ var Hr = /label:\s*([^\s;{]+)\s*(;|$)/g, oe;
1569
1569
  function jn(e, r, n) {
1570
1570
  if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
1571
1571
  return e[0];
1572
- var a = !0, o = "";
1573
- te = void 0;
1572
+ var o = !0, a = "";
1573
+ oe = void 0;
1574
1574
  var i = e[0];
1575
1575
  if (i == null || i.raw === void 0)
1576
- a = !1, o += Ae(n, r, i);
1576
+ o = !1, a += Me(n, r, i);
1577
1577
  else {
1578
- var s = i;
1579
- o += s[0];
1578
+ var c = i;
1579
+ a += c[0];
1580
1580
  }
1581
- for (var c = 1; c < e.length; c++)
1582
- if (o += Ae(n, r, e[c]), a) {
1581
+ for (var s = 1; s < e.length; s++)
1582
+ if (a += Me(n, r, e[s]), o) {
1583
1583
  var d = i;
1584
- o += d[c];
1584
+ a += d[s];
1585
1585
  }
1586
1586
  Hr.lastIndex = 0;
1587
- for (var p = "", u; (u = Hr.exec(o)) !== null; )
1587
+ for (var p = "", u; (u = Hr.exec(a)) !== null; )
1588
1588
  p += "-" + u[1];
1589
- var y = An(o) + p;
1589
+ var g = An(a) + p;
1590
1590
  return {
1591
- name: y,
1592
- styles: o,
1593
- next: te
1591
+ name: g,
1592
+ styles: a,
1593
+ next: oe
1594
1594
  };
1595
1595
  }
1596
1596
  var Ln = function(r) {
1597
1597
  return r();
1598
- }, Dn = oe.useInsertionEffect ? oe.useInsertionEffect : !1, Yn = Dn || Ln, mt = /* @__PURE__ */ oe.createContext(
1598
+ }, Dn = se.useInsertionEffect ? se.useInsertionEffect : !1, Yn = Dn || Ln, mt = /* @__PURE__ */ se.createContext(
1599
1599
  // we're doing this to avoid preconstruct's dead code elimination in this one case
1600
1600
  // because this module is primarily intended for the browser and node
1601
1601
  // but it's also required in react native and similar environments sometimes
@@ -1608,37 +1608,37 @@ var Ln = function(r) {
1608
1608
  );
1609
1609
  mt.Provider;
1610
1610
  var Wn = function(r) {
1611
- return /* @__PURE__ */ Yt(function(n, a) {
1612
- var o = Wt(mt);
1613
- return r(n, o, a);
1611
+ return /* @__PURE__ */ Yt(function(n, o) {
1612
+ var a = Wt(mt);
1613
+ return r(n, a, o);
1614
1614
  });
1615
- }, Vn = /* @__PURE__ */ oe.createContext({}), br = {}.hasOwnProperty, pr = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Un = function(r, n) {
1616
- var a = {};
1617
- for (var o in n)
1618
- br.call(n, o) && (a[o] = n[o]);
1619
- return a[pr] = r, a;
1615
+ }, Vn = /* @__PURE__ */ se.createContext({}), br = {}.hasOwnProperty, pr = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Un = function(r, n) {
1616
+ var o = {};
1617
+ for (var a in n)
1618
+ br.call(n, a) && (o[a] = n[a]);
1619
+ return o[pr] = r, o;
1620
1620
  }, Gn = function(r) {
1621
- var n = r.cache, a = r.serialized, o = r.isStringTag;
1622
- return pt(n, a, o), Yn(function() {
1623
- return $n(n, a, o);
1621
+ var n = r.cache, o = r.serialized, a = r.isStringTag;
1622
+ return pt(n, o, a), Yn(function() {
1623
+ return $n(n, o, a);
1624
1624
  }), null;
1625
1625
  }, qn = /* @__PURE__ */ Wn(function(e, r, n) {
1626
- var a = e.css;
1627
- typeof a == "string" && r.registered[a] !== void 0 && (a = r.registered[a]);
1628
- var o = e[pr], i = [a], s = "";
1629
- typeof e.className == "string" ? s = kn(r.registered, i, e.className) : e.className != null && (s = e.className + " ");
1630
- var c = jn(i, void 0, oe.useContext(Vn));
1631
- s += r.key + "-" + c.name;
1626
+ var o = e.css;
1627
+ typeof o == "string" && r.registered[o] !== void 0 && (o = r.registered[o]);
1628
+ var a = e[pr], i = [o], c = "";
1629
+ typeof e.className == "string" ? c = kn(r.registered, i, e.className) : e.className != null && (c = e.className + " ");
1630
+ var s = jn(i, void 0, se.useContext(Vn));
1631
+ c += r.key + "-" + s.name;
1632
1632
  var d = {};
1633
1633
  for (var p in e)
1634
1634
  br.call(e, p) && p !== "css" && p !== pr && (d[p] = e[p]);
1635
- return d.className = s, n && (d.ref = n), /* @__PURE__ */ oe.createElement(oe.Fragment, null, /* @__PURE__ */ oe.createElement(Gn, {
1635
+ return d.className = c, n && (d.ref = n), /* @__PURE__ */ se.createElement(se.Fragment, null, /* @__PURE__ */ se.createElement(Gn, {
1636
1636
  cache: r,
1637
- serialized: c,
1638
- isStringTag: typeof o == "string"
1639
- }), /* @__PURE__ */ oe.createElement(o, d));
1640
- }), Bn = qn, Ze = function(r, n, a) {
1641
- return br.call(n, "css") ? Vr.jsx(Bn, Un(r, n), a) : Vr.jsx(r, n, a);
1637
+ serialized: s,
1638
+ isStringTag: typeof a == "string"
1639
+ }), /* @__PURE__ */ se.createElement(a, d));
1640
+ }), Bn = qn, Ze = function(r, n, o) {
1641
+ return br.call(n, "css") ? Vr.jsx(Bn, Un(r, n), o) : Vr.jsx(r, n, o);
1642
1642
  };
1643
1643
  function Jn(e) {
1644
1644
  switch (e.toLowerCase()) {
@@ -1656,13 +1656,13 @@ function zn(e) {
1656
1656
  function Kn(e = {}) {
1657
1657
  return Vt(e);
1658
1658
  }
1659
- function da(e) {
1660
- return [nt(), at(e)];
1659
+ function ho(e) {
1660
+ return [nt(), ot(e)];
1661
1661
  }
1662
1662
  function Hn() {
1663
1663
  return Be.of([fr]);
1664
1664
  }
1665
- const ha = [Hn(), Kn()], Xr = Q.theme({
1665
+ const po = [Hn(), Kn()], Xr = te.theme({
1666
1666
  "&": {
1667
1667
  backgroundColor: "#ffffff",
1668
1668
  color: "#333333"
@@ -1687,7 +1687,7 @@ const ha = [Hn(), Kn()], Xr = Q.theme({
1687
1687
  "&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": {
1688
1688
  backgroundColor: "rgba(0, 0, 255, 0.1)"
1689
1689
  }
1690
- }), Xn = Q.theme({
1690
+ }), Xn = te.theme({
1691
1691
  "&": {
1692
1692
  backgroundColor: "#1e1e1e",
1693
1693
  color: "#d4d4d4"
@@ -1729,15 +1729,16 @@ const Zr = (e) => {
1729
1729
  readOnlyRanges: []
1730
1730
  };
1731
1731
  let n = 0;
1732
- return e.forEach((a) => {
1732
+ return e.forEach((o) => {
1733
1733
  const {
1734
- content: o,
1734
+ content: a,
1735
1735
  editable: i
1736
- } = a, s = n, c = s + o.length;
1737
- r.value += o, i || r.readOnlyRanges.push({
1736
+ } = o, c = a.replace(/\r\n/g, `
1737
+ `), s = n, d = s + c.length;
1738
+ r.value += a, i || r.readOnlyRanges.push({
1738
1739
  start: s,
1739
- end: c
1740
- }), n = c;
1740
+ end: d
1741
+ }), n = d;
1741
1742
  }), r;
1742
1743
  }, ze = Ut.define(), Qr = Gt.define({
1743
1744
  create() {
@@ -1751,7 +1752,7 @@ const Zr = (e) => {
1751
1752
  return r.docChanged, e;
1752
1753
  },
1753
1754
  provide(e) {
1754
- return Q.decorations.from(e);
1755
+ return te.decorations.from(e);
1755
1756
  }
1756
1757
  });
1757
1758
  function gt(e) {
@@ -1780,79 +1781,79 @@ function Qn(e) {
1780
1781
  Be.of([{
1781
1782
  key: "Enter",
1782
1783
  run: (n) => {
1783
- const a = n.state.selection.main, {
1784
- from: o,
1784
+ const o = n.state.selection.main, {
1785
+ from: a,
1785
1786
  to: i
1786
- } = a;
1787
- if (o !== i) {
1788
- for (const c of r)
1789
- if (o < c.end && i > c.start)
1787
+ } = o;
1788
+ if (a !== i) {
1789
+ for (const s of r)
1790
+ if (a < s.end && i > s.start)
1790
1791
  return !1;
1791
1792
  }
1792
- let s = !1;
1793
- for (const c of r)
1794
- if (o > c.start && o < c.end) {
1795
- s = !0;
1793
+ let c = !1;
1794
+ for (const s of r)
1795
+ if (a > s.start && a < s.end) {
1796
+ c = !0;
1796
1797
  break;
1797
1798
  }
1798
- return s ? !1 : (n.dispatch({
1799
+ return c ? !1 : (n.dispatch({
1799
1800
  changes: {
1800
- from: o,
1801
+ from: a,
1801
1802
  to: i,
1802
1803
  insert: `
1803
1804
  `
1804
1805
  },
1805
1806
  selection: {
1806
- anchor: o + 1
1807
+ anchor: a + 1
1807
1808
  }
1808
1809
  }), !0);
1809
1810
  }
1810
1811
  }]),
1811
1812
  // 添加事务过滤器,阻止只读区域的编辑
1812
- ue.transactionFilter.of((n) => {
1813
+ le.transactionFilter.of((n) => {
1813
1814
  if (!n.docChanged || n.isUserEvent("input.type.Enter") || n.isUserEvent("input.enter"))
1814
1815
  return n;
1815
- let a = !1;
1816
- return n.changes.iterChanges((o, i, s, c) => {
1817
- if (!(n.newDoc.sliceString(s, c) === `
1818
- ` && o === i)) {
1816
+ let o = !1;
1817
+ return n.changes.iterChanges((a, i, c, s) => {
1818
+ if (!(n.newDoc.sliceString(c, s) === `
1819
+ ` && a === i)) {
1819
1820
  for (const u of r)
1820
- if (o === i) {
1821
- if (o > u.start && o < u.end) {
1822
- a = !0;
1821
+ if (a === i) {
1822
+ if (a > u.start && a < u.end) {
1823
+ o = !0;
1823
1824
  break;
1824
1825
  }
1825
1826
  } else if (
1826
1827
  // 删除或替换操作
1827
- o < u.end && i > u.start || // 处理边界情况:删除操作正好落在只读区域的开始或结束位置
1828
- o === u.start && i > o || i === u.end && o < i
1828
+ a < u.end && i > u.start || // 处理边界情况:删除操作正好落在只读区域的开始或结束位置
1829
+ a === u.start && i > a || i === u.end && a < i
1829
1830
  ) {
1830
- a = !0;
1831
+ o = !0;
1831
1832
  break;
1832
1833
  }
1833
1834
  }
1834
- }), a ? [] : n;
1835
+ }), o ? [] : n;
1835
1836
  }),
1836
1837
  // 动态更新只读区域的装饰
1837
- Q.updateListener.of((n) => {
1838
+ te.updateListener.of((n) => {
1838
1839
  if (n.docChanged) {
1839
- const a = ra(r, n);
1840
- !ea(r, a) ? (r = a, Er.set(n.view, a), n.view.dispatch({
1841
- effects: ze.of(a)
1840
+ const o = ro(r, n);
1841
+ !eo(r, o) ? (r = o, Er.set(n.view, o), n.view.dispatch({
1842
+ effects: ze.of(o)
1842
1843
  })) : n.view.dispatch({
1843
- effects: ze.of(a)
1844
+ effects: ze.of(o)
1844
1845
  });
1845
1846
  }
1846
1847
  }),
1847
1848
  // 添加一个延迟执行的额外更新,以确保在文档变化后能重新计算语法高亮
1848
- Q.updateListener.of((n) => {
1849
+ te.updateListener.of((n) => {
1849
1850
  n.docChanged && setTimeout(() => {
1850
1851
  n.view.state.field(Qr, !1) && n.view.dispatch({});
1851
1852
  }, 10);
1852
1853
  })
1853
1854
  ];
1854
1855
  }
1855
- function ea(e, r) {
1856
+ function eo(e, r) {
1856
1857
  if (e.length !== r.length)
1857
1858
  return !1;
1858
1859
  for (let n = 0; n < e.length; n++)
@@ -1860,48 +1861,48 @@ function ea(e, r) {
1860
1861
  return !1;
1861
1862
  return !0;
1862
1863
  }
1863
- function ra(e, r) {
1864
- var o;
1864
+ function ro(e, r) {
1865
+ var a;
1865
1866
  if (!r.docChanged)
1866
1867
  return e;
1867
1868
  let n = !1;
1868
- const a = e.map((i) => {
1869
- const s = {
1869
+ const o = e.map((i) => {
1870
+ const c = {
1870
1871
  ...i
1871
1872
  };
1872
- return r.changes.iterChanges((c, d, p, u) => {
1873
- const y = u - p, x = d - c, R = y - x;
1874
- if (c === 0 && (n = !0), c === 0 && y > 0 && i.start === 0) {
1875
- s.start = y, s.end += R;
1873
+ return r.changes.iterChanges((s, d, p, u) => {
1874
+ const g = u - p, _ = d - s, S = g - _;
1875
+ if (s === 0 && (n = !0), s === 0 && g > 0 && i.start === 0) {
1876
+ c.start = g, c.end += S;
1876
1877
  return;
1877
1878
  }
1878
1879
  if (d <= i.start)
1879
- s.start += R, s.end += R;
1880
- else if (c >= i.start && c < i.end && d >= i.end)
1881
- s.end = c;
1882
- else if (!(c >= i.start && d <= i.end)) {
1883
- if (c < i.end && d > i.end) {
1884
- const E = i.end - c;
1885
- s.end = c + Math.min(E, y);
1880
+ c.start += S, c.end += S;
1881
+ else if (s >= i.start && s < i.end && d >= i.end)
1882
+ c.end = s;
1883
+ else if (!(s >= i.start && d <= i.end)) {
1884
+ if (s < i.end && d > i.end) {
1885
+ const b = i.end - s;
1886
+ c.end = s + Math.min(b, g);
1886
1887
  }
1887
1888
  }
1888
- }), s;
1889
+ }), c;
1889
1890
  });
1890
- if (n && a.length > 0) {
1891
- const i = ((o = r.changes.newDoc) == null ? void 0 : o.toString()) || "";
1892
- let s = 0;
1893
- for (let c = 0; c < i.length && /\s/.test(i[c]); c++)
1894
- s++;
1895
- a[0].start === 0 && s > 0 && (a[0].start = s);
1891
+ if (n && o.length > 0) {
1892
+ const i = ((a = r.changes.newDoc) == null ? void 0 : a.toString()) || "";
1893
+ let c = 0;
1894
+ for (let s = 0; s < i.length && /\s/.test(i[s]); s++)
1895
+ c++;
1896
+ o[0].start === 0 && c > 0 && (o[0].start = c);
1896
1897
  }
1897
- return a.filter((i) => i.start < i.end);
1898
+ return o.filter((i) => i.start < i.end);
1898
1899
  }
1899
- function ta(e) {
1900
+ function to(e) {
1900
1901
  return Er.get(e) || [];
1901
1902
  }
1902
- function Ve(e, r) {
1903
- const n = r.map((a) => ({
1904
- ...a
1903
+ function ce(e, r) {
1904
+ const n = r.map((o) => ({
1905
+ ...o
1905
1906
  }));
1906
1907
  Er.set(e, n), e.dispatch({
1907
1908
  effects: ze.of(n)
@@ -1913,37 +1914,37 @@ const Sr = ({
1913
1914
  value: e,
1914
1915
  onChange: r,
1915
1916
  extensions: n = [],
1916
- height: a = "300px",
1917
- disabled: o = !1,
1917
+ height: o = "300px",
1918
+ disabled: a = !1,
1918
1919
  className: i = "",
1919
- style: s = {},
1920
- placeholder: c = "",
1920
+ style: c = {},
1921
+ placeholder: s = "",
1921
1922
  onEditorViewCreated: d
1922
1923
  }) => {
1923
- const p = me(null), u = me();
1924
+ const p = de(null), u = de();
1924
1925
  return ie(() => {
1925
1926
  if (!p.current) return;
1926
- const y = [Be.of([fr]), Q.lineWrapping, Lr(Dr), ue.allowMultipleSelections.of(!0), c ? jr(c) : [], Q.updateListener.of((E) => {
1927
- if (E.docChanged && r) {
1928
- const C = {
1929
- value: E.state.doc.toString(),
1927
+ const g = [Be.of([fr]), te.lineWrapping, Lr(Dr), le.allowMultipleSelections.of(!0), s ? jr(s) : [], te.updateListener.of((b) => {
1928
+ if (b.docChanged && r) {
1929
+ const x = {
1930
+ value: b.state.doc.toString(),
1930
1931
  readOnlyRanges: []
1931
1932
  // 基础编辑器没有只读区域逻辑,由特定编辑器实现
1932
1933
  };
1933
- r(C);
1934
+ r(x);
1934
1935
  }
1935
1936
  })];
1936
- o && y.push(ue.readOnly.of(!0));
1937
- const x = ue.create({
1937
+ a && g.push(le.readOnly.of(!0));
1938
+ const _ = le.create({
1938
1939
  doc: e,
1939
- extensions: [...y, ...n]
1940
- }), R = new Q({
1941
- state: x,
1940
+ extensions: [...g, ...n]
1941
+ }), S = new te({
1942
+ state: _,
1942
1943
  parent: p.current
1943
1944
  });
1944
- return u.current = R, d && d(R), () => {
1945
- var E;
1946
- (E = u.current) == null || E.destroy();
1945
+ return u.current = S, d && d(S), () => {
1946
+ var b;
1947
+ (b = u.current) == null || b.destroy();
1947
1948
  };
1948
1949
  }, []), ie(() => {
1949
1950
  u.current && e !== u.current.state.doc.toString() && u.current.dispatch({
@@ -1955,238 +1956,261 @@ const Sr = ({
1955
1956
  });
1956
1957
  }, [e]), ie(() => {
1957
1958
  if (!u.current || !p.current) return;
1958
- const y = u.current.state.doc.toString();
1959
+ const g = u.current.state.doc.toString();
1959
1960
  u.current.destroy();
1960
- const x = [Be.of([fr]), Q.lineWrapping, Lr(Dr), ue.allowMultipleSelections.of(!0), c ? jr(c) : [], Q.updateListener.of((C) => {
1961
- if (C.docChanged && r) {
1962
- const j = {
1963
- value: C.state.doc.toString(),
1961
+ const _ = [Be.of([fr]), te.lineWrapping, Lr(Dr), le.allowMultipleSelections.of(!0), s ? jr(s) : [], te.updateListener.of((x) => {
1962
+ if (x.docChanged && r) {
1963
+ const D = {
1964
+ value: x.state.doc.toString(),
1964
1965
  readOnlyRanges: []
1965
1966
  // 基础编辑器没有只读区域逻辑,由特定编辑器实现
1966
1967
  };
1967
- r(j);
1968
+ r(D);
1968
1969
  }
1969
1970
  })];
1970
- o && x.push(ue.readOnly.of(!0));
1971
- const R = ue.create({
1972
- doc: y,
1973
- extensions: [...x, ...n]
1974
- }), E = new Q({
1975
- state: R,
1971
+ a && _.push(le.readOnly.of(!0));
1972
+ const S = le.create({
1973
+ doc: g,
1974
+ extensions: [..._, ...n]
1975
+ }), b = new te({
1976
+ state: S,
1976
1977
  parent: p.current
1977
1978
  });
1978
- u.current = E, d && d(E);
1979
- }, [o]), /* @__PURE__ */ Ze("div", { ref: p, className: `senyao-editor ${o ? "disabled" : ""} ${i}`, style: {
1980
- height: a,
1981
- ...s
1979
+ u.current = b, d && d(b);
1980
+ }, [a]), /* @__PURE__ */ Ze("div", { ref: p, className: `senyao-editor ${a ? "disabled" : ""} ${i}`, style: {
1981
+ height: o,
1982
+ ...c
1982
1983
  } });
1983
- }, pa = ({
1984
+ }, vo = ({
1984
1985
  value: e,
1985
1986
  onChange: r,
1986
1987
  language: n = "json",
1987
- extensions: a = [],
1988
- theme: o = "light",
1988
+ extensions: o = [],
1989
+ theme: a = "light",
1989
1990
  ...i
1990
1991
  }) => {
1991
- const s = vr(() => {
1992
- const c = zn(n) ? Jn(n) : [], d = Zn(o);
1993
- return [c, d, ...a];
1994
- }, [n, a, o]);
1995
- return /* @__PURE__ */ Ze(Sr, { value: e, onChange: r, extensions: s, ...i });
1996
- }, va = ({
1992
+ const c = vr(() => {
1993
+ const s = zn(n) ? Jn(n) : [], d = Zn(a);
1994
+ return [s, d, ...o];
1995
+ }, [n, o, a]);
1996
+ return /* @__PURE__ */ Ze(Sr, { value: e, onChange: r, extensions: c, ...i });
1997
+ }, mo = ({
1997
1998
  value: e,
1998
1999
  onChange: r,
1999
2000
  extensions: n = [],
2000
- readOnlyRanges: a = [],
2001
- manageReadOnlyRanges: o = !0,
2001
+ readOnlyRanges: o = [],
2002
+ manageReadOnlyRanges: a = !0,
2002
2003
  ...i
2003
2004
  }) => {
2004
- const s = me(null), [c, d] = Nr(a), p = me(e), [u, y] = Nr(null), x = me(!1), R = me(/* @__PURE__ */ new Map());
2005
+ const c = de(null), [s, d] = Nr(o), p = de(e), [u, g] = Nr(null), _ = de(!1), S = de(/* @__PURE__ */ new Map()), b = de(!1);
2005
2006
  ie(() => {
2006
- if (o && a.length > 0 && !u) {
2007
- const m = [];
2008
- let v = 0;
2009
- for (let P = 0; P < a.length; P++) {
2010
- const O = a[P];
2011
- O.start > v && m.push({
2012
- content: e.substring(v, O.start),
2007
+ if (a && o.length > 0 && !u) {
2008
+ const v = [];
2009
+ let R = 0;
2010
+ for (let O = 0; O < o.length; O++) {
2011
+ const P = o[O];
2012
+ P.start > R && v.push({
2013
+ content: e.substring(R, P.start),
2013
2014
  editable: !0
2014
- }), m.push({
2015
- content: e.substring(O.start, O.end),
2015
+ }), v.push({
2016
+ content: e.substring(P.start, P.end),
2016
2017
  editable: !1
2017
- }), v = O.end;
2018
+ }), R = P.end;
2018
2019
  }
2019
- v < e.length && m.push({
2020
- content: e.substring(v),
2020
+ R < e.length && v.push({
2021
+ content: e.substring(R),
2021
2022
  editable: !0
2022
- }), y(m);
2023
+ }), g(v);
2023
2024
  }
2024
- }, [o, a, e, u]), ie(() => {
2025
+ }, [a, o, e, u]), ie(() => {
2025
2026
  if (e) {
2026
- const m = ["SELECT", "FROM", "WHERE", "GROUP", "ORDER", "HAVING", "JOIN"], v = /* @__PURE__ */ new Map();
2027
- m.forEach((P) => {
2028
- const O = e.indexOf(P);
2029
- O >= 0 && v.set(P, O);
2030
- }), R.current = v;
2027
+ const v = ["SELECT", "FROM", "WHERE", "GROUP", "ORDER", "HAVING", "JOIN"], R = /* @__PURE__ */ new Map();
2028
+ v.forEach((O) => {
2029
+ const P = e.indexOf(O);
2030
+ P >= 0 && R.set(O, P);
2031
+ }), S.current = R;
2031
2032
  }
2032
2033
  }, []);
2033
- const E = vr(() => {
2034
- const m = [rt()];
2035
- return c.length > 0 && m.push(Qn(c)), [...m, ...n];
2036
- }, [n, c]), C = ee((m, v, P = 0) => {
2037
- const O = m.indexOf(v, P);
2038
- return O >= 0 ? O : null;
2039
- }, []), j = ee((m, v) => {
2040
- if (!o || !m || m.length === 0) return m;
2041
- const P = [...m];
2042
- let O = 0;
2043
- for (let U = 0; U < m.length; U++) {
2044
- const X = m[U];
2045
- if (!X.editable) {
2046
- const B = C(v, X.content, O);
2047
- B !== null && (U > 0 && m[U - 1].editable && B > O && (P[U - 1] = {
2048
- ...P[U - 1],
2049
- content: v.substring(O, B)
2050
- }), O = B + X.content.length);
2034
+ const x = vr(() => {
2035
+ const v = [rt()];
2036
+ return s.length > 0 && v.push(Qn(s)), [...v, ...n];
2037
+ }, [n, s]), D = re((v, R, O = 0) => {
2038
+ const P = v.indexOf(R, O);
2039
+ return P >= 0 ? P : null;
2040
+ }, []), w = re((v, R) => {
2041
+ if (!a || !v || v.length === 0) return v;
2042
+ const O = [...v];
2043
+ let P = 0;
2044
+ for (let Y = 0; Y < v.length; Y++) {
2045
+ const B = v[Y];
2046
+ if (!B.editable) {
2047
+ const Q = D(R, B.content, P);
2048
+ Q !== null && (Y > 0 && v[Y - 1].editable && Q > P && (O[Y - 1] = {
2049
+ ...O[Y - 1],
2050
+ content: R.substring(P, Q)
2051
+ }), P = Q + B.content.length);
2051
2052
  }
2052
2053
  }
2053
- const D = m[m.length - 1];
2054
- return D.editable && O < v.length && (P[m.length - 1] = {
2055
- ...D,
2056
- content: v.substring(O)
2057
- }), P;
2058
- }, [o, C]), w = ee((m) => {
2059
- let v = !1;
2060
- return R.current.forEach((P, O) => {
2061
- const D = m.indexOf(O);
2062
- D >= 0 && Math.abs(D - P) > 0 && (R.current.set(O, D), D > P && (P === 0 || P < 15) && (v = !0));
2063
- }), v;
2064
- }, []), S = ee(() => {
2065
- if (!s.current) return;
2066
- const m = s.current, v = m.state.doc.toString(), P = ["SELECT", "FROM", "WHERE", "GROUP", "ORDER", "HAVING", "JOIN"], O = m.state.selection;
2067
- let D = !1;
2068
- for (const U of P) {
2069
- const X = v.indexOf(U);
2070
- if (X >= 0) {
2071
- m.dispatch({
2054
+ const W = v[v.length - 1];
2055
+ return W.editable && P < R.length && (O[v.length - 1] = {
2056
+ ...W,
2057
+ content: R.substring(P)
2058
+ }), O;
2059
+ }, [a, D]), E = re((v) => {
2060
+ let R = !1;
2061
+ return S.current.forEach((O, P) => {
2062
+ const W = v.indexOf(P);
2063
+ W >= 0 && Math.abs(W - O) > 0 && (S.current.set(P, W), W > O && (O === 0 || O < 15) && (R = !0));
2064
+ }), R;
2065
+ }, []), k = re(() => {
2066
+ if (!c.current) return;
2067
+ const v = c.current, R = v.state.doc.toString(), O = ["SELECT", "FROM", "WHERE", "GROUP", "ORDER", "HAVING", "JOIN"], P = v.state.selection;
2068
+ let W = !1;
2069
+ for (const Y of O) {
2070
+ const B = R.indexOf(Y);
2071
+ if (B >= 0) {
2072
+ v.dispatch({
2072
2073
  selection: {
2073
- anchor: X,
2074
- head: X + U.length
2074
+ anchor: B,
2075
+ head: B + Y.length
2075
2076
  },
2076
2077
  scrollIntoView: !1
2077
- }), D = !0;
2078
+ }), W = !0;
2078
2079
  break;
2079
2080
  }
2080
2081
  }
2081
- D && setTimeout(() => {
2082
- m.dom && document.contains(m.dom) && m.dispatch({
2083
- selection: O,
2082
+ W && setTimeout(() => {
2083
+ v.dom && document.contains(v.dom) && v.dispatch({
2084
+ selection: P,
2084
2085
  scrollIntoView: !1
2085
2086
  });
2086
2087
  }, 10);
2087
- }, []), k = ee((m) => {
2088
- const v = m.value, P = p.current;
2089
- P !== v && v.length > P.length && !P.startsWith(v.substring(0, 5)) && v.includes(P.substring(0, 10)) && (x.current = !0, w(v) && setTimeout(() => {
2090
- S();
2091
- }, 10)), p.current = v;
2092
- const O = s.current ? ta(s.current) : c;
2093
- if (o && u) {
2094
- const D = j(u, v);
2095
- y(D);
2088
+ }, []), j = re(() => {
2089
+ if (!c.current) return;
2090
+ const v = c.current;
2091
+ s.length > 0 && (ce(v, []), setTimeout(() => {
2092
+ v.dom && document.contains(v.dom) && (ce(v, s), setTimeout(() => {
2093
+ v.dom && document.contains(v.dom) && v.dispatch({});
2094
+ }, 10));
2095
+ }, 10));
2096
+ }, [s]), l = re((v) => {
2097
+ const R = v.value, O = p.current;
2098
+ O !== R && R.length > O.length && !O.startsWith(R.substring(0, 5)) && R.includes(O.substring(0, 10)) && (_.current = !0, E(R) && setTimeout(() => {
2099
+ k();
2100
+ }, 10)), p.current = R;
2101
+ const P = c.current ? to(c.current) : s;
2102
+ if (a && u) {
2103
+ const W = w(u, R);
2104
+ g(W);
2096
2105
  const {
2097
- readOnlyRanges: U
2098
- } = Zr(D);
2099
- d(U), s.current && Ve(s.current, U), r && r({
2100
- value: v,
2101
- readOnlyRanges: U
2106
+ readOnlyRanges: Y
2107
+ } = Zr(W);
2108
+ d(Y), c.current && ce(c.current, Y), r && r({
2109
+ value: R,
2110
+ readOnlyRanges: Y
2102
2111
  });
2103
2112
  } else
2104
2113
  r && r({
2105
- value: v,
2106
- readOnlyRanges: O
2114
+ value: R,
2115
+ readOnlyRanges: P
2107
2116
  });
2108
- }, [r, o, u, c, j, w, S]);
2117
+ }, [r, a, u, s, w, E, k]);
2109
2118
  ie(() => {
2110
- !o && JSON.stringify(a) !== JSON.stringify(c) && (d(a), s.current && Ve(s.current, a));
2111
- }, [a, c, o]), ie(() => {
2112
- if (o && u) {
2119
+ !a && JSON.stringify(o) !== JSON.stringify(s) && (d(o), c.current && ce(c.current, o));
2120
+ }, [o, s, a]), ie(() => {
2121
+ if (a && u) {
2113
2122
  const {
2114
- readOnlyRanges: m
2123
+ readOnlyRanges: v
2115
2124
  } = Zr(u);
2116
- JSON.stringify(m) !== JSON.stringify(c) && (d(m), s.current && Ve(s.current, m));
2117
- }
2118
- }, [u, c, o]), ie(() => {
2119
- s.current && x.current && (x.current = !1, s.current.dispatch({}));
2120
- }, [e]);
2121
- const L = ee((m) => {
2122
- if (s.current = m, c.length > 0 && Ve(m, c), e) {
2123
- const v = ["SELECT", "FROM", "WHERE", "GROUP", "ORDER", "HAVING", "JOIN"], P = /* @__PURE__ */ new Map();
2124
- v.forEach((O) => {
2125
- const D = e.indexOf(O);
2126
- D >= 0 && P.set(O, D);
2127
- }), R.current = P;
2125
+ JSON.stringify(v) !== JSON.stringify(s) && (d(v), c.current && ce(c.current, v));
2128
2126
  }
2129
- }, [c, e]), l = ee((m) => {
2130
- k(m), s.current && setTimeout(() => {
2131
- s.current && s.current.dispatch({});
2127
+ }, [u, s, a]), ie(() => {
2128
+ c.current && _.current && (_.current = !1, c.current.dispatch({}));
2129
+ }, [e]), ie(() => {
2130
+ c.current && s.length > 0 && !b.current && (b.current = !0, setTimeout(() => {
2131
+ j();
2132
+ }, 50), setTimeout(() => {
2133
+ j();
2134
+ }, 200));
2135
+ }, [j, s]);
2136
+ const U = re((v) => {
2137
+ if (c.current = v, s.length > 0 && (ce(v, s), setTimeout(() => {
2138
+ ce(v, []), setTimeout(() => {
2139
+ ce(v, s);
2140
+ }, 10);
2141
+ }, 50)), e) {
2142
+ const R = ["SELECT", "FROM", "WHERE", "GROUP", "ORDER", "HAVING", "JOIN"], O = /* @__PURE__ */ new Map();
2143
+ R.forEach((P) => {
2144
+ const W = e.indexOf(P);
2145
+ W >= 0 && O.set(P, W);
2146
+ }), S.current = O;
2147
+ }
2148
+ }, [s, e]), $ = re((v) => {
2149
+ l(v), c.current && setTimeout(() => {
2150
+ c.current && c.current.dispatch({});
2132
2151
  }, 0);
2133
- }, [k]);
2134
- return /* @__PURE__ */ Ze(Sr, { value: e, onChange: l, extensions: E, onEditorViewCreated: L, ...i });
2135
- }, ma = ({
2152
+ }, [l]);
2153
+ return /* @__PURE__ */ Ze(Sr, { value: e, onChange: $, extensions: x, onEditorViewCreated: U, ...i });
2154
+ }, go = ({
2136
2155
  value: e,
2137
2156
  onChange: r,
2138
2157
  extensions: n = [],
2139
- enableFormatting: a = !0,
2140
- ...o
2158
+ enableFormatting: o = !0,
2159
+ ...a
2141
2160
  }) => {
2142
- const i = ee((p) => {
2143
- const u = p.state.doc.toString(), y = [];
2161
+ const i = re((p) => {
2162
+ const u = p.state.doc.toString(), g = [];
2144
2163
  try {
2145
2164
  JSON.parse(u);
2146
- } catch (x) {
2147
- x instanceof Error && y.push({
2165
+ } catch (_) {
2166
+ _ instanceof Error && g.push({
2148
2167
  from: 0,
2149
2168
  to: u.length,
2150
- message: x.message,
2169
+ message: _.message,
2151
2170
  severity: "error"
2152
2171
  });
2153
2172
  }
2154
- return y;
2155
- }, []), s = ee((p) => {
2173
+ return g;
2174
+ }, []), c = re((p) => {
2156
2175
  try {
2157
2176
  const u = JSON.parse(p);
2158
2177
  return JSON.stringify(u, null, 2);
2159
2178
  } catch {
2160
2179
  return p;
2161
2180
  }
2162
- }, []), c = ee((p) => {
2163
- if (a) {
2164
- const u = s(p);
2165
- if (u !== p) {
2166
- r == null || r(u);
2167
- return;
2181
+ }, []), s = re((p) => {
2182
+ if (r) {
2183
+ if (o) {
2184
+ const u = c(p.value);
2185
+ if (u !== p.value) {
2186
+ r({
2187
+ value: u,
2188
+ readOnlyRanges: p.readOnlyRanges
2189
+ });
2190
+ return;
2191
+ }
2168
2192
  }
2193
+ r(p);
2169
2194
  }
2170
- r == null || r(p);
2171
- }, [a, s, r]), d = vr(() => [tt(), nt(), at(i), ...n], [i, n]);
2172
- return /* @__PURE__ */ Ze(Sr, { value: e, onChange: c, extensions: d, ...o });
2195
+ }, [o, c, r]), d = vr(() => [tt(), nt(), ot(i), ...n], [i, n]);
2196
+ return /* @__PURE__ */ Ze(Sr, { value: e, onChange: s, extensions: d, ...a });
2173
2197
  };
2174
2198
  export {
2175
- pa as Editor,
2199
+ vo as Editor,
2176
2200
  Sr as GenericEditor,
2177
- ma as JSONEditor,
2178
- va as SQLEditor,
2201
+ go as JSONEditor,
2202
+ mo as SQLEditor,
2179
2203
  Zr as blocksToEditorData,
2180
- ha as commonExtensions,
2204
+ po as commonExtensions,
2181
2205
  Kn as createAutocompletionExtension,
2182
2206
  Hn as createKeymapExtension,
2183
- da as createLintExtension,
2207
+ ho as createLintExtension,
2184
2208
  Xn as darkTheme,
2185
- ta as getCurrentReadOnlyRanges,
2209
+ to as getCurrentReadOnlyRanges,
2186
2210
  Jn as getLanguageExtension,
2187
2211
  Zn as getThemeExtension,
2188
2212
  zn as isSupportedLanguage,
2189
2213
  Xr as lightTheme,
2190
2214
  Qn as readOnlyRanges,
2191
- Ve as updateReadOnlyRanges
2215
+ ce as updateReadOnlyRanges
2192
2216
  };