@senyao-design-system/editor 0.0.2 → 0.0.3
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/assets/style.css +1 -0
- package/dist/components/Editor.d.ts +1 -1
- package/dist/components/GenericEditor.d.ts +1 -1
- package/dist/components/JSONEditor.d.ts +2 -3
- package/dist/components/SQLEditor.d.ts +1 -1
- package/dist/index.js +16 -15
- package/dist/index.mjs +1168 -994
- package/dist/types/index.d.ts +6 -1
- package/package.json +3 -2
- package/dist/index.css +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import { sql as
|
|
4
|
-
import { json as
|
|
5
|
-
import { keymap as
|
|
6
|
-
import { indentWithTab as
|
|
7
|
-
import { autocompletion as
|
|
8
|
-
import { lintGutter as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
1
|
+
import * as ce from "react";
|
|
2
|
+
import tt, { forwardRef as Yt, useContext as Vt, useRef as fe, useEffect as se, useMemo as Be, useState as jr, useCallback as Q } from "react";
|
|
3
|
+
import { sql as nt } from "@codemirror/lang-sql";
|
|
4
|
+
import { json as ot } from "@codemirror/lang-json";
|
|
5
|
+
import { keymap as Me, EditorView as te, Decoration as lr, placeholder as Lr, lineNumbers as Wr } from "@codemirror/view";
|
|
6
|
+
import { indentWithTab as dr } from "@codemirror/commands";
|
|
7
|
+
import { autocompletion as Ut } from "@codemirror/autocomplete";
|
|
8
|
+
import { lintGutter as zt, linter as Gt } from "@codemirror/lint";
|
|
9
|
+
import { HighlightStyle as at, syntaxHighlighting as Ke, defaultHighlightStyle as Yr } from "@codemirror/language";
|
|
10
|
+
import { tags as W } from "@lezer/highlight";
|
|
11
|
+
import { StateEffect as qt, StateField as Jt, EditorState as he, Prec as Bt } from "@codemirror/state";
|
|
12
|
+
var hr = { exports: {} }, ke = {};
|
|
12
13
|
/**
|
|
13
14
|
* @license React
|
|
14
15
|
* react-jsx-runtime.production.min.js
|
|
@@ -18,21 +19,21 @@ var ur = { exports: {} }, Oe = {};
|
|
|
18
19
|
* This source code is licensed under the MIT license found in the
|
|
19
20
|
* LICENSE file in the root directory of this source tree.
|
|
20
21
|
*/
|
|
21
|
-
var
|
|
22
|
-
function
|
|
23
|
-
if (
|
|
24
|
-
|
|
25
|
-
var e =
|
|
26
|
-
function
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
for (
|
|
30
|
-
if (s && s.defaultProps) for (
|
|
31
|
-
return { $$typeof: r, type: s, key:
|
|
22
|
+
var Vr;
|
|
23
|
+
function Kt() {
|
|
24
|
+
if (Vr) return ke;
|
|
25
|
+
Vr = 1;
|
|
26
|
+
var e = tt, 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 };
|
|
27
|
+
function u(s, f, m) {
|
|
28
|
+
var p, d = {}, P = null, C = null;
|
|
29
|
+
m !== void 0 && (P = "" + m), f.key !== void 0 && (P = "" + f.key), f.ref !== void 0 && (C = f.ref);
|
|
30
|
+
for (p in f) o.call(f, p) && !i.hasOwnProperty(p) && (d[p] = f[p]);
|
|
31
|
+
if (s && s.defaultProps) for (p in f = s.defaultProps, f) d[p] === void 0 && (d[p] = f[p]);
|
|
32
|
+
return { $$typeof: r, type: s, key: P, ref: C, props: d, _owner: a.current };
|
|
32
33
|
}
|
|
33
|
-
return
|
|
34
|
+
return ke.Fragment = n, ke.jsx = u, ke.jsxs = u, ke;
|
|
34
35
|
}
|
|
35
|
-
var
|
|
36
|
+
var $e = {};
|
|
36
37
|
/**
|
|
37
38
|
* @license React
|
|
38
39
|
* react-jsx-runtime.development.js
|
|
@@ -42,57 +43,57 @@ var Pe = {};
|
|
|
42
43
|
* This source code is licensed under the MIT license found in the
|
|
43
44
|
* LICENSE file in the root directory of this source tree.
|
|
44
45
|
*/
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
return
|
|
48
|
-
var e =
|
|
49
|
-
function
|
|
46
|
+
var Ur;
|
|
47
|
+
function Ht() {
|
|
48
|
+
return Ur || (Ur = 1, process.env.NODE_ENV !== "production" && function() {
|
|
49
|
+
var e = tt, 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"), u = Symbol.for("react.provider"), s = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), x = Symbol.iterator, R = "@@iterator";
|
|
50
|
+
function y(t) {
|
|
50
51
|
if (t === null || typeof t != "object")
|
|
51
52
|
return null;
|
|
52
|
-
var
|
|
53
|
-
return typeof
|
|
53
|
+
var c = x && t[x] || t[R];
|
|
54
|
+
return typeof c == "function" ? c : null;
|
|
54
55
|
}
|
|
55
|
-
var
|
|
56
|
-
function
|
|
56
|
+
var S = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
57
|
+
function b(t) {
|
|
57
58
|
{
|
|
58
|
-
for (var
|
|
59
|
-
h[
|
|
60
|
-
|
|
59
|
+
for (var c = arguments.length, h = new Array(c > 1 ? c - 1 : 0), E = 1; E < c; E++)
|
|
60
|
+
h[E - 1] = arguments[E];
|
|
61
|
+
_("error", t, h);
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
|
-
function
|
|
64
|
+
function _(t, c, h) {
|
|
64
65
|
{
|
|
65
|
-
var
|
|
66
|
-
I !== "" && (
|
|
67
|
-
var
|
|
68
|
-
return String(
|
|
66
|
+
var E = S.ReactDebugCurrentFrame, I = E.getStackAddendum();
|
|
67
|
+
I !== "" && (c += "%s", h = h.concat([I]));
|
|
68
|
+
var Y = h.map(function(O) {
|
|
69
|
+
return String(O);
|
|
69
70
|
});
|
|
70
|
-
|
|
71
|
+
Y.unshift("Warning: " + c), Function.prototype.apply.call(console[t], console, Y);
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
|
-
var j = !1, l = !1, U = !1,
|
|
74
|
-
|
|
75
|
-
function
|
|
76
|
-
return !!(typeof t == "string" || typeof t == "function" || t === o || t === i ||
|
|
74
|
+
var j = !1, l = !1, U = !1, A = !1, Re = !1, g;
|
|
75
|
+
g = Symbol.for("react.module.reference");
|
|
76
|
+
function w(t) {
|
|
77
|
+
return !!(typeof t == "string" || typeof t == "function" || t === o || t === i || Re || t === a || t === m || t === p || A || t === C || j || l || U || typeof t == "object" && t !== null && (t.$$typeof === P || t.$$typeof === d || t.$$typeof === u || t.$$typeof === s || t.$$typeof === f || // This needs to include all possible module reference object
|
|
77
78
|
// types supported by any Flight configuration anywhere since
|
|
78
79
|
// we don't know which Flight build this will end up being used
|
|
79
80
|
// with.
|
|
80
|
-
t.$$typeof ===
|
|
81
|
+
t.$$typeof === g || t.getModuleId !== void 0));
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
-
var
|
|
84
|
-
if (
|
|
85
|
-
return
|
|
86
|
-
var I =
|
|
83
|
+
function $(t, c, h) {
|
|
84
|
+
var E = t.displayName;
|
|
85
|
+
if (E)
|
|
86
|
+
return E;
|
|
87
|
+
var I = c.displayName || c.name || "";
|
|
87
88
|
return I !== "" ? h + "(" + I + ")" : h;
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
+
function k(t) {
|
|
90
91
|
return t.displayName || "Context";
|
|
91
92
|
}
|
|
92
|
-
function
|
|
93
|
+
function L(t) {
|
|
93
94
|
if (t == null)
|
|
94
95
|
return null;
|
|
95
|
-
if (typeof t.tag == "number" &&
|
|
96
|
+
if (typeof t.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
96
97
|
return t.displayName || t.name || null;
|
|
97
98
|
if (typeof t == "string")
|
|
98
99
|
return t;
|
|
@@ -105,28 +106,28 @@ function Bt() {
|
|
|
105
106
|
return "Profiler";
|
|
106
107
|
case a:
|
|
107
108
|
return "StrictMode";
|
|
108
|
-
case
|
|
109
|
+
case m:
|
|
109
110
|
return "Suspense";
|
|
110
|
-
case
|
|
111
|
+
case p:
|
|
111
112
|
return "SuspenseList";
|
|
112
113
|
}
|
|
113
114
|
if (typeof t == "object")
|
|
114
115
|
switch (t.$$typeof) {
|
|
115
116
|
case s:
|
|
116
|
-
var
|
|
117
|
-
return
|
|
118
|
-
case
|
|
117
|
+
var c = t;
|
|
118
|
+
return k(c) + ".Consumer";
|
|
119
|
+
case u:
|
|
119
120
|
var h = t;
|
|
120
|
-
return
|
|
121
|
+
return k(h._context) + ".Provider";
|
|
122
|
+
case f:
|
|
123
|
+
return $(t, t.render, "ForwardRef");
|
|
121
124
|
case d:
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
case _: {
|
|
127
|
-
var I = t, L = I._payload, T = I._init;
|
|
125
|
+
var E = t.displayName || null;
|
|
126
|
+
return E !== null ? E : L(t.type) || "Memo";
|
|
127
|
+
case P: {
|
|
128
|
+
var I = t, Y = I._payload, O = I._init;
|
|
128
129
|
try {
|
|
129
|
-
return
|
|
130
|
+
return L(O(Y));
|
|
130
131
|
} catch {
|
|
131
132
|
return null;
|
|
132
133
|
}
|
|
@@ -134,18 +135,18 @@ function Bt() {
|
|
|
134
135
|
}
|
|
135
136
|
return null;
|
|
136
137
|
}
|
|
137
|
-
var
|
|
138
|
-
function
|
|
138
|
+
var V = Object.assign, K = 0, ie, je, xe, Le, Ce, We, Ye;
|
|
139
|
+
function Ve() {
|
|
139
140
|
}
|
|
140
|
-
|
|
141
|
-
function
|
|
141
|
+
Ve.__reactDisabledLog = !0;
|
|
142
|
+
function tr() {
|
|
142
143
|
{
|
|
143
|
-
if (
|
|
144
|
-
|
|
144
|
+
if (K === 0) {
|
|
145
|
+
ie = console.log, je = console.info, xe = console.warn, Le = console.error, Ce = console.group, We = console.groupCollapsed, Ye = console.groupEnd;
|
|
145
146
|
var t = {
|
|
146
147
|
configurable: !0,
|
|
147
148
|
enumerable: !0,
|
|
148
|
-
value:
|
|
149
|
+
value: Ve,
|
|
149
150
|
writable: !0
|
|
150
151
|
};
|
|
151
152
|
Object.defineProperties(console, {
|
|
@@ -158,250 +159,250 @@ function Bt() {
|
|
|
158
159
|
groupEnd: t
|
|
159
160
|
});
|
|
160
161
|
}
|
|
161
|
-
|
|
162
|
+
K++;
|
|
162
163
|
}
|
|
163
164
|
}
|
|
164
|
-
function
|
|
165
|
+
function nr() {
|
|
165
166
|
{
|
|
166
|
-
if (
|
|
167
|
+
if (K--, K === 0) {
|
|
167
168
|
var t = {
|
|
168
169
|
configurable: !0,
|
|
169
170
|
enumerable: !0,
|
|
170
171
|
writable: !0
|
|
171
172
|
};
|
|
172
173
|
Object.defineProperties(console, {
|
|
173
|
-
log:
|
|
174
|
-
value:
|
|
175
|
-
}),
|
|
176
|
-
info: B({}, t, {
|
|
177
|
-
value: Ne
|
|
174
|
+
log: V({}, t, {
|
|
175
|
+
value: ie
|
|
178
176
|
}),
|
|
179
|
-
|
|
180
|
-
value: Se
|
|
181
|
-
}),
|
|
182
|
-
error: B({}, t, {
|
|
177
|
+
info: V({}, t, {
|
|
183
178
|
value: je
|
|
184
179
|
}),
|
|
185
|
-
|
|
186
|
-
value:
|
|
180
|
+
warn: V({}, t, {
|
|
181
|
+
value: xe
|
|
187
182
|
}),
|
|
188
|
-
|
|
183
|
+
error: V({}, t, {
|
|
189
184
|
value: Le
|
|
190
185
|
}),
|
|
191
|
-
|
|
192
|
-
value:
|
|
186
|
+
group: V({}, t, {
|
|
187
|
+
value: Ce
|
|
188
|
+
}),
|
|
189
|
+
groupCollapsed: V({}, t, {
|
|
190
|
+
value: We
|
|
191
|
+
}),
|
|
192
|
+
groupEnd: V({}, t, {
|
|
193
|
+
value: Ye
|
|
193
194
|
})
|
|
194
195
|
});
|
|
195
196
|
}
|
|
196
|
-
|
|
197
|
+
K < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
197
198
|
}
|
|
198
199
|
}
|
|
199
|
-
var
|
|
200
|
-
function
|
|
200
|
+
var _e = S.ReactCurrentDispatcher, we;
|
|
201
|
+
function pe(t, c, h) {
|
|
201
202
|
{
|
|
202
|
-
if (
|
|
203
|
+
if (we === void 0)
|
|
203
204
|
try {
|
|
204
205
|
throw Error();
|
|
205
206
|
} catch (I) {
|
|
206
|
-
var
|
|
207
|
-
|
|
207
|
+
var E = I.stack.trim().match(/\n( *(at )?)/);
|
|
208
|
+
we = E && E[1] || "";
|
|
208
209
|
}
|
|
209
210
|
return `
|
|
210
|
-
` +
|
|
211
|
+
` + we + t;
|
|
211
212
|
}
|
|
212
213
|
}
|
|
213
|
-
var
|
|
214
|
+
var Te = !1, me;
|
|
214
215
|
{
|
|
215
|
-
var
|
|
216
|
-
|
|
216
|
+
var or = typeof WeakMap == "function" ? WeakMap : Map;
|
|
217
|
+
me = new or();
|
|
217
218
|
}
|
|
218
|
-
function
|
|
219
|
-
if (!t ||
|
|
219
|
+
function v(t, c) {
|
|
220
|
+
if (!t || Te)
|
|
220
221
|
return "";
|
|
221
222
|
{
|
|
222
|
-
var h =
|
|
223
|
+
var h = me.get(t);
|
|
223
224
|
if (h !== void 0)
|
|
224
225
|
return h;
|
|
225
226
|
}
|
|
226
|
-
var
|
|
227
|
-
|
|
227
|
+
var E;
|
|
228
|
+
Te = !0;
|
|
228
229
|
var I = Error.prepareStackTrace;
|
|
229
230
|
Error.prepareStackTrace = void 0;
|
|
230
|
-
var
|
|
231
|
-
|
|
231
|
+
var Y;
|
|
232
|
+
Y = _e.current, _e.current = null, tr();
|
|
232
233
|
try {
|
|
233
|
-
if (
|
|
234
|
-
var
|
|
234
|
+
if (c) {
|
|
235
|
+
var O = function() {
|
|
235
236
|
throw Error();
|
|
236
237
|
};
|
|
237
|
-
if (Object.defineProperty(
|
|
238
|
+
if (Object.defineProperty(O.prototype, "props", {
|
|
238
239
|
set: function() {
|
|
239
240
|
throw Error();
|
|
240
241
|
}
|
|
241
242
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
242
243
|
try {
|
|
243
|
-
Reflect.construct(
|
|
244
|
-
} catch (
|
|
245
|
-
|
|
244
|
+
Reflect.construct(O, []);
|
|
245
|
+
} catch (X) {
|
|
246
|
+
E = X;
|
|
246
247
|
}
|
|
247
|
-
Reflect.construct(t, [],
|
|
248
|
+
Reflect.construct(t, [], O);
|
|
248
249
|
} else {
|
|
249
250
|
try {
|
|
250
|
-
|
|
251
|
-
} catch (
|
|
252
|
-
|
|
251
|
+
O.call();
|
|
252
|
+
} catch (X) {
|
|
253
|
+
E = X;
|
|
253
254
|
}
|
|
254
|
-
t.call(
|
|
255
|
+
t.call(O.prototype);
|
|
255
256
|
}
|
|
256
257
|
} else {
|
|
257
258
|
try {
|
|
258
259
|
throw Error();
|
|
259
|
-
} catch (
|
|
260
|
-
|
|
260
|
+
} catch (X) {
|
|
261
|
+
E = X;
|
|
261
262
|
}
|
|
262
263
|
t();
|
|
263
264
|
}
|
|
264
|
-
} catch (
|
|
265
|
-
if (
|
|
266
|
-
for (var
|
|
267
|
-
`),
|
|
268
|
-
`),
|
|
265
|
+
} catch (X) {
|
|
266
|
+
if (X && E && typeof X.stack == "string") {
|
|
267
|
+
for (var T = X.stack.split(`
|
|
268
|
+
`), H = E.stack.split(`
|
|
269
|
+
`), z = T.length - 1, G = H.length - 1; z >= 1 && G >= 0 && T[z] !== H[G]; )
|
|
269
270
|
G--;
|
|
270
|
-
for (;
|
|
271
|
-
if (
|
|
272
|
-
if (
|
|
271
|
+
for (; z >= 1 && G >= 0; z--, G--)
|
|
272
|
+
if (T[z] !== H[G]) {
|
|
273
|
+
if (z !== 1 || G !== 1)
|
|
273
274
|
do
|
|
274
|
-
if (
|
|
275
|
-
var
|
|
276
|
-
` +
|
|
277
|
-
return t.displayName &&
|
|
275
|
+
if (z--, G--, G < 0 || T[z] !== H[G]) {
|
|
276
|
+
var re = `
|
|
277
|
+
` + T[z].replace(" at new ", " at ");
|
|
278
|
+
return t.displayName && re.includes("<anonymous>") && (re = re.replace("<anonymous>", t.displayName)), typeof t == "function" && me.set(t, re), re;
|
|
278
279
|
}
|
|
279
|
-
while (
|
|
280
|
+
while (z >= 1 && G >= 0);
|
|
280
281
|
break;
|
|
281
282
|
}
|
|
282
283
|
}
|
|
283
284
|
} finally {
|
|
284
|
-
|
|
285
|
+
Te = !1, _e.current = Y, nr(), Error.prepareStackTrace = I;
|
|
285
286
|
}
|
|
286
|
-
var
|
|
287
|
-
return typeof t == "function" &&
|
|
287
|
+
var ye = t ? t.displayName || t.name : "", de = ye ? pe(ye) : "";
|
|
288
|
+
return typeof t == "function" && me.set(t, de), de;
|
|
288
289
|
}
|
|
289
|
-
function
|
|
290
|
-
return
|
|
290
|
+
function Pe(t, c, h) {
|
|
291
|
+
return v(t, !1);
|
|
291
292
|
}
|
|
292
|
-
function
|
|
293
|
-
var
|
|
294
|
-
return !!(
|
|
293
|
+
function ge(t) {
|
|
294
|
+
var c = t.prototype;
|
|
295
|
+
return !!(c && c.isReactComponent);
|
|
295
296
|
}
|
|
296
|
-
function
|
|
297
|
+
function le(t, c, h) {
|
|
297
298
|
if (t == null)
|
|
298
299
|
return "";
|
|
299
300
|
if (typeof t == "function")
|
|
300
|
-
return
|
|
301
|
+
return v(t, ge(t));
|
|
301
302
|
if (typeof t == "string")
|
|
302
|
-
return
|
|
303
|
+
return pe(t);
|
|
303
304
|
switch (t) {
|
|
305
|
+
case m:
|
|
306
|
+
return pe("Suspense");
|
|
304
307
|
case p:
|
|
305
|
-
return
|
|
306
|
-
case u:
|
|
307
|
-
return he("SuspenseList");
|
|
308
|
+
return pe("SuspenseList");
|
|
308
309
|
}
|
|
309
310
|
if (typeof t == "object")
|
|
310
311
|
switch (t.$$typeof) {
|
|
312
|
+
case f:
|
|
313
|
+
return Pe(t.render);
|
|
311
314
|
case d:
|
|
312
|
-
return
|
|
313
|
-
case
|
|
314
|
-
|
|
315
|
-
case _: {
|
|
316
|
-
var y = t, I = y._payload, L = y._init;
|
|
315
|
+
return le(t.type, c, h);
|
|
316
|
+
case P: {
|
|
317
|
+
var E = t, I = E._payload, Y = E._init;
|
|
317
318
|
try {
|
|
318
|
-
return
|
|
319
|
+
return le(Y(I), c, h);
|
|
319
320
|
} catch {
|
|
320
321
|
}
|
|
321
322
|
}
|
|
322
323
|
}
|
|
323
324
|
return "";
|
|
324
325
|
}
|
|
325
|
-
var
|
|
326
|
-
function
|
|
326
|
+
var Oe = Object.prototype.hasOwnProperty, Cr = {}, _r = S.ReactDebugCurrentFrame;
|
|
327
|
+
function Ue(t) {
|
|
327
328
|
if (t) {
|
|
328
|
-
var
|
|
329
|
-
|
|
329
|
+
var c = t._owner, h = le(t.type, t._source, c ? c.type : null);
|
|
330
|
+
_r.setExtraStackFrame(h);
|
|
330
331
|
} else
|
|
331
|
-
|
|
332
|
+
_r.setExtraStackFrame(null);
|
|
332
333
|
}
|
|
333
|
-
function
|
|
334
|
+
function bt(t, c, h, E, I) {
|
|
334
335
|
{
|
|
335
|
-
var
|
|
336
|
-
for (var
|
|
337
|
-
if (
|
|
338
|
-
var
|
|
336
|
+
var Y = Function.call.bind(Oe);
|
|
337
|
+
for (var O in t)
|
|
338
|
+
if (Y(t, O)) {
|
|
339
|
+
var T = void 0;
|
|
339
340
|
try {
|
|
340
|
-
if (typeof t[
|
|
341
|
-
var
|
|
342
|
-
throw
|
|
341
|
+
if (typeof t[O] != "function") {
|
|
342
|
+
var H = Error((E || "React class") + ": " + h + " type `" + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[O] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
343
|
+
throw H.name = "Invariant Violation", H;
|
|
343
344
|
}
|
|
344
|
-
|
|
345
|
-
} catch (
|
|
346
|
-
|
|
345
|
+
T = t[O](c, O, E, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
346
|
+
} catch (z) {
|
|
347
|
+
T = z;
|
|
347
348
|
}
|
|
348
|
-
|
|
349
|
+
T && !(T instanceof Error) && (Ue(I), b("%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).", E || "React class", h, O, typeof T), Ue(null)), T instanceof Error && !(T.message in Cr) && (Cr[T.message] = !0, Ue(I), b("Failed %s type: %s", h, T.message), Ue(null));
|
|
349
350
|
}
|
|
350
351
|
}
|
|
351
352
|
}
|
|
352
|
-
var
|
|
353
|
-
function
|
|
354
|
-
return
|
|
353
|
+
var Et = Array.isArray;
|
|
354
|
+
function ar(t) {
|
|
355
|
+
return Et(t);
|
|
355
356
|
}
|
|
356
|
-
function
|
|
357
|
+
function St(t) {
|
|
357
358
|
{
|
|
358
|
-
var
|
|
359
|
+
var c = typeof Symbol == "function" && Symbol.toStringTag, h = c && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
359
360
|
return h;
|
|
360
361
|
}
|
|
361
362
|
}
|
|
362
|
-
function
|
|
363
|
+
function Rt(t) {
|
|
363
364
|
try {
|
|
364
|
-
return
|
|
365
|
+
return wr(t), !1;
|
|
365
366
|
} catch {
|
|
366
367
|
return !0;
|
|
367
368
|
}
|
|
368
369
|
}
|
|
369
|
-
function
|
|
370
|
+
function wr(t) {
|
|
370
371
|
return "" + t;
|
|
371
372
|
}
|
|
372
|
-
function
|
|
373
|
-
if (
|
|
374
|
-
return
|
|
373
|
+
function Tr(t) {
|
|
374
|
+
if (Rt(t))
|
|
375
|
+
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", St(t)), wr(t);
|
|
375
376
|
}
|
|
376
|
-
var
|
|
377
|
+
var Pr = S.ReactCurrentOwner, xt = {
|
|
377
378
|
key: !0,
|
|
378
379
|
ref: !0,
|
|
379
380
|
__self: !0,
|
|
380
381
|
__source: !0
|
|
381
|
-
},
|
|
382
|
+
}, Or, kr;
|
|
382
383
|
function Ct(t) {
|
|
383
|
-
if (
|
|
384
|
-
var
|
|
385
|
-
if (
|
|
384
|
+
if (Oe.call(t, "ref")) {
|
|
385
|
+
var c = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
386
|
+
if (c && c.isReactWarning)
|
|
386
387
|
return !1;
|
|
387
388
|
}
|
|
388
389
|
return t.ref !== void 0;
|
|
389
390
|
}
|
|
390
391
|
function _t(t) {
|
|
391
|
-
if (
|
|
392
|
-
var
|
|
393
|
-
if (
|
|
392
|
+
if (Oe.call(t, "key")) {
|
|
393
|
+
var c = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
394
|
+
if (c && c.isReactWarning)
|
|
394
395
|
return !1;
|
|
395
396
|
}
|
|
396
397
|
return t.key !== void 0;
|
|
397
398
|
}
|
|
398
|
-
function
|
|
399
|
-
typeof t.ref == "string" &&
|
|
399
|
+
function wt(t, c) {
|
|
400
|
+
typeof t.ref == "string" && Pr.current;
|
|
400
401
|
}
|
|
401
|
-
function
|
|
402
|
+
function Tt(t, c) {
|
|
402
403
|
{
|
|
403
404
|
var h = function() {
|
|
404
|
-
|
|
405
|
+
Or || (Or = !0, b("%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)", c));
|
|
405
406
|
};
|
|
406
407
|
h.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
407
408
|
get: h,
|
|
@@ -409,10 +410,10 @@ function Bt() {
|
|
|
409
410
|
});
|
|
410
411
|
}
|
|
411
412
|
}
|
|
412
|
-
function
|
|
413
|
+
function Pt(t, c) {
|
|
413
414
|
{
|
|
414
415
|
var h = function() {
|
|
415
|
-
|
|
416
|
+
kr || (kr = !0, b("%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)", c));
|
|
416
417
|
};
|
|
417
418
|
h.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
418
419
|
get: h,
|
|
@@ -420,70 +421,70 @@ function Bt() {
|
|
|
420
421
|
});
|
|
421
422
|
}
|
|
422
423
|
}
|
|
423
|
-
var Ot = function(t,
|
|
424
|
-
var
|
|
424
|
+
var Ot = function(t, c, h, E, I, Y, O) {
|
|
425
|
+
var T = {
|
|
425
426
|
// This tag allows us to uniquely identify this as a React Element
|
|
426
427
|
$$typeof: r,
|
|
427
428
|
// Built-in properties that belong on the element
|
|
428
429
|
type: t,
|
|
429
|
-
key:
|
|
430
|
+
key: c,
|
|
430
431
|
ref: h,
|
|
431
|
-
props:
|
|
432
|
+
props: O,
|
|
432
433
|
// Record the component responsible for creating this element.
|
|
433
|
-
_owner:
|
|
434
|
+
_owner: Y
|
|
434
435
|
};
|
|
435
|
-
return
|
|
436
|
+
return T._store = {}, Object.defineProperty(T._store, "validated", {
|
|
436
437
|
configurable: !1,
|
|
437
438
|
enumerable: !1,
|
|
438
439
|
writable: !0,
|
|
439
440
|
value: !1
|
|
440
|
-
}), Object.defineProperty(
|
|
441
|
+
}), Object.defineProperty(T, "_self", {
|
|
441
442
|
configurable: !1,
|
|
442
443
|
enumerable: !1,
|
|
443
444
|
writable: !1,
|
|
444
|
-
value:
|
|
445
|
-
}), Object.defineProperty(
|
|
445
|
+
value: E
|
|
446
|
+
}), Object.defineProperty(T, "_source", {
|
|
446
447
|
configurable: !1,
|
|
447
448
|
enumerable: !1,
|
|
448
449
|
writable: !1,
|
|
449
450
|
value: I
|
|
450
|
-
}), Object.freeze && (Object.freeze(
|
|
451
|
+
}), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
|
|
451
452
|
};
|
|
452
|
-
function
|
|
453
|
+
function kt(t, c, h, E, I) {
|
|
453
454
|
{
|
|
454
|
-
var
|
|
455
|
-
h !== void 0 && (
|
|
456
|
-
for (
|
|
457
|
-
|
|
455
|
+
var Y, O = {}, T = null, H = null;
|
|
456
|
+
h !== void 0 && (Tr(h), T = "" + h), _t(c) && (Tr(c.key), T = "" + c.key), Ct(c) && (H = c.ref, wt(c, I));
|
|
457
|
+
for (Y in c)
|
|
458
|
+
Oe.call(c, Y) && !xt.hasOwnProperty(Y) && (O[Y] = c[Y]);
|
|
458
459
|
if (t && t.defaultProps) {
|
|
459
|
-
var
|
|
460
|
-
for (
|
|
461
|
-
|
|
460
|
+
var z = t.defaultProps;
|
|
461
|
+
for (Y in z)
|
|
462
|
+
O[Y] === void 0 && (O[Y] = z[Y]);
|
|
462
463
|
}
|
|
463
|
-
if (
|
|
464
|
+
if (T || H) {
|
|
464
465
|
var G = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
465
|
-
|
|
466
|
+
T && Tt(O, G), H && Pt(O, G);
|
|
466
467
|
}
|
|
467
|
-
return Ot(t,
|
|
468
|
+
return Ot(t, T, H, I, E, Pr.current, O);
|
|
468
469
|
}
|
|
469
470
|
}
|
|
470
|
-
var
|
|
471
|
-
function
|
|
471
|
+
var ir = S.ReactCurrentOwner, $r = S.ReactDebugCurrentFrame;
|
|
472
|
+
function ve(t) {
|
|
472
473
|
if (t) {
|
|
473
|
-
var
|
|
474
|
-
|
|
474
|
+
var c = t._owner, h = le(t.type, t._source, c ? c.type : null);
|
|
475
|
+
$r.setExtraStackFrame(h);
|
|
475
476
|
} else
|
|
476
|
-
|
|
477
|
+
$r.setExtraStackFrame(null);
|
|
477
478
|
}
|
|
478
|
-
var
|
|
479
|
-
|
|
480
|
-
function
|
|
479
|
+
var sr;
|
|
480
|
+
sr = !1;
|
|
481
|
+
function cr(t) {
|
|
481
482
|
return typeof t == "object" && t !== null && t.$$typeof === r;
|
|
482
483
|
}
|
|
483
|
-
function
|
|
484
|
+
function Ar() {
|
|
484
485
|
{
|
|
485
|
-
if (
|
|
486
|
-
var t =
|
|
486
|
+
if (ir.current) {
|
|
487
|
+
var t = L(ir.current.type);
|
|
487
488
|
if (t)
|
|
488
489
|
return `
|
|
489
490
|
|
|
@@ -492,160 +493,160 @@ Check the render method of \`` + t + "`.";
|
|
|
492
493
|
return "";
|
|
493
494
|
}
|
|
494
495
|
}
|
|
495
|
-
function
|
|
496
|
+
function $t(t) {
|
|
496
497
|
return "";
|
|
497
498
|
}
|
|
498
|
-
var
|
|
499
|
-
function
|
|
499
|
+
var Mr = {};
|
|
500
|
+
function At(t) {
|
|
500
501
|
{
|
|
501
|
-
var
|
|
502
|
-
if (!
|
|
502
|
+
var c = Ar();
|
|
503
|
+
if (!c) {
|
|
503
504
|
var h = typeof t == "string" ? t : t.displayName || t.name;
|
|
504
|
-
h && (
|
|
505
|
+
h && (c = `
|
|
505
506
|
|
|
506
507
|
Check the top-level render call using <` + h + ">.");
|
|
507
508
|
}
|
|
508
|
-
return
|
|
509
|
+
return c;
|
|
509
510
|
}
|
|
510
511
|
}
|
|
511
|
-
function
|
|
512
|
+
function Nr(t, c) {
|
|
512
513
|
{
|
|
513
514
|
if (!t._store || t._store.validated || t.key != null)
|
|
514
515
|
return;
|
|
515
516
|
t._store.validated = !0;
|
|
516
|
-
var h =
|
|
517
|
-
if (
|
|
517
|
+
var h = At(c);
|
|
518
|
+
if (Mr[h])
|
|
518
519
|
return;
|
|
519
|
-
|
|
520
|
-
var
|
|
521
|
-
t && t._owner && t._owner !==
|
|
520
|
+
Mr[h] = !0;
|
|
521
|
+
var E = "";
|
|
522
|
+
t && t._owner && t._owner !== ir.current && (E = " It was passed a child from " + L(t._owner.type) + "."), ve(t), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', h, E), ve(null);
|
|
522
523
|
}
|
|
523
524
|
}
|
|
524
|
-
function
|
|
525
|
+
function Ir(t, c) {
|
|
525
526
|
{
|
|
526
527
|
if (typeof t != "object")
|
|
527
528
|
return;
|
|
528
|
-
if (
|
|
529
|
+
if (ar(t))
|
|
529
530
|
for (var h = 0; h < t.length; h++) {
|
|
530
|
-
var
|
|
531
|
-
|
|
531
|
+
var E = t[h];
|
|
532
|
+
cr(E) && Nr(E, c);
|
|
532
533
|
}
|
|
533
|
-
else if (
|
|
534
|
+
else if (cr(t))
|
|
534
535
|
t._store && (t._store.validated = !0);
|
|
535
536
|
else if (t) {
|
|
536
|
-
var I =
|
|
537
|
+
var I = y(t);
|
|
537
538
|
if (typeof I == "function" && I !== t.entries)
|
|
538
|
-
for (var
|
|
539
|
-
|
|
539
|
+
for (var Y = I.call(t), O; !(O = Y.next()).done; )
|
|
540
|
+
cr(O.value) && Nr(O.value, c);
|
|
540
541
|
}
|
|
541
542
|
}
|
|
542
543
|
}
|
|
543
|
-
function
|
|
544
|
+
function Mt(t) {
|
|
544
545
|
{
|
|
545
|
-
var
|
|
546
|
-
if (
|
|
546
|
+
var c = t.type;
|
|
547
|
+
if (c == null || typeof c == "string")
|
|
547
548
|
return;
|
|
548
549
|
var h;
|
|
549
|
-
if (typeof
|
|
550
|
-
h =
|
|
551
|
-
else if (typeof
|
|
550
|
+
if (typeof c == "function")
|
|
551
|
+
h = c.propTypes;
|
|
552
|
+
else if (typeof c == "object" && (c.$$typeof === f || // Note: Memo only checks outer props here.
|
|
552
553
|
// Inner props are checked in the reconciler.
|
|
553
|
-
|
|
554
|
-
h =
|
|
554
|
+
c.$$typeof === d))
|
|
555
|
+
h = c.propTypes;
|
|
555
556
|
else
|
|
556
557
|
return;
|
|
557
558
|
if (h) {
|
|
558
|
-
var
|
|
559
|
-
|
|
560
|
-
} else if (
|
|
561
|
-
|
|
562
|
-
var I =
|
|
563
|
-
|
|
559
|
+
var E = L(c);
|
|
560
|
+
bt(h, t.props, "prop", E, t);
|
|
561
|
+
} else if (c.PropTypes !== void 0 && !sr) {
|
|
562
|
+
sr = !0;
|
|
563
|
+
var I = L(c);
|
|
564
|
+
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", I || "Unknown");
|
|
564
565
|
}
|
|
565
|
-
typeof
|
|
566
|
+
typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
566
567
|
}
|
|
567
568
|
}
|
|
568
|
-
function
|
|
569
|
+
function Nt(t) {
|
|
569
570
|
{
|
|
570
|
-
for (var
|
|
571
|
-
var
|
|
572
|
-
if (
|
|
573
|
-
|
|
571
|
+
for (var c = Object.keys(t.props), h = 0; h < c.length; h++) {
|
|
572
|
+
var E = c[h];
|
|
573
|
+
if (E !== "children" && E !== "key") {
|
|
574
|
+
ve(t), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), ve(null);
|
|
574
575
|
break;
|
|
575
576
|
}
|
|
576
577
|
}
|
|
577
|
-
t.ref !== null && (
|
|
578
|
+
t.ref !== null && (ve(t), b("Invalid attribute `ref` supplied to `React.Fragment`."), ve(null));
|
|
578
579
|
}
|
|
579
580
|
}
|
|
580
|
-
var
|
|
581
|
-
function
|
|
581
|
+
var Fr = {};
|
|
582
|
+
function Dr(t, c, h, E, I, Y) {
|
|
582
583
|
{
|
|
583
|
-
var
|
|
584
|
-
if (!
|
|
585
|
-
var
|
|
586
|
-
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (
|
|
587
|
-
var
|
|
588
|
-
|
|
589
|
-
var
|
|
590
|
-
t === null ?
|
|
584
|
+
var O = w(t);
|
|
585
|
+
if (!O) {
|
|
586
|
+
var T = "";
|
|
587
|
+
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
588
|
+
var H = $t();
|
|
589
|
+
H ? T += H : T += Ar();
|
|
590
|
+
var z;
|
|
591
|
+
t === null ? z = "null" : ar(t) ? z = "array" : t !== void 0 && t.$$typeof === r ? (z = "<" + (L(t.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : z = typeof t, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z, T);
|
|
591
592
|
}
|
|
592
|
-
var G =
|
|
593
|
+
var G = kt(t, c, h, I, Y);
|
|
593
594
|
if (G == null)
|
|
594
595
|
return G;
|
|
595
|
-
if (
|
|
596
|
-
var
|
|
597
|
-
if (
|
|
598
|
-
if (
|
|
599
|
-
if (
|
|
600
|
-
for (var
|
|
601
|
-
|
|
602
|
-
Object.freeze && Object.freeze(
|
|
596
|
+
if (O) {
|
|
597
|
+
var re = c.children;
|
|
598
|
+
if (re !== void 0)
|
|
599
|
+
if (E)
|
|
600
|
+
if (ar(re)) {
|
|
601
|
+
for (var ye = 0; ye < re.length; ye++)
|
|
602
|
+
Ir(re[ye], t);
|
|
603
|
+
Object.freeze && Object.freeze(re);
|
|
603
604
|
} else
|
|
604
|
-
|
|
605
|
+
b("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
606
|
else
|
|
606
|
-
|
|
607
|
+
Ir(re, t);
|
|
607
608
|
}
|
|
608
|
-
if (
|
|
609
|
-
var
|
|
610
|
-
return
|
|
611
|
-
}),
|
|
612
|
-
if (!
|
|
613
|
-
var Lt =
|
|
614
|
-
|
|
609
|
+
if (Oe.call(c, "key")) {
|
|
610
|
+
var de = L(t), X = Object.keys(c).filter(function(Wt) {
|
|
611
|
+
return Wt !== "key";
|
|
612
|
+
}), fr = X.length > 0 ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
613
|
+
if (!Fr[de + fr]) {
|
|
614
|
+
var Lt = X.length > 0 ? "{" + X.join(": ..., ") + ": ...}" : "{}";
|
|
615
|
+
b(`A props object containing a "key" prop is being spread into JSX:
|
|
615
616
|
let props = %s;
|
|
616
617
|
<%s {...props} />
|
|
617
618
|
React keys must be passed directly to JSX without using spread:
|
|
618
619
|
let props = %s;
|
|
619
|
-
<%s key={someKey} {...props} />`,
|
|
620
|
+
<%s key={someKey} {...props} />`, fr, de, Lt, de), Fr[de + fr] = !0;
|
|
620
621
|
}
|
|
621
622
|
}
|
|
622
|
-
return t === o ?
|
|
623
|
+
return t === o ? Nt(G) : Mt(G), G;
|
|
623
624
|
}
|
|
624
625
|
}
|
|
625
|
-
function It(t,
|
|
626
|
-
return
|
|
626
|
+
function It(t, c, h) {
|
|
627
|
+
return Dr(t, c, h, !0);
|
|
627
628
|
}
|
|
628
|
-
function Ft(t,
|
|
629
|
-
return
|
|
629
|
+
function Ft(t, c, h) {
|
|
630
|
+
return Dr(t, c, h, !1);
|
|
630
631
|
}
|
|
631
|
-
var
|
|
632
|
-
|
|
633
|
-
}()),
|
|
632
|
+
var Dt = Ft, jt = It;
|
|
633
|
+
$e.Fragment = o, $e.jsx = Dt, $e.jsxs = jt;
|
|
634
|
+
}()), $e;
|
|
634
635
|
}
|
|
635
|
-
process.env.NODE_ENV === "production" ?
|
|
636
|
-
var
|
|
637
|
-
function
|
|
636
|
+
process.env.NODE_ENV === "production" ? hr.exports = Kt() : hr.exports = Ht();
|
|
637
|
+
var zr = hr.exports;
|
|
638
|
+
function Xt(e) {
|
|
638
639
|
if (e.sheet)
|
|
639
640
|
return e.sheet;
|
|
640
641
|
for (var r = 0; r < document.styleSheets.length; r++)
|
|
641
642
|
if (document.styleSheets[r].ownerNode === e)
|
|
642
643
|
return document.styleSheets[r];
|
|
643
644
|
}
|
|
644
|
-
function
|
|
645
|
+
function Zt(e) {
|
|
645
646
|
var r = document.createElement("style");
|
|
646
647
|
return r.setAttribute("data-emotion", e.key), e.nonce !== void 0 && r.setAttribute("nonce", e.nonce), r.appendChild(document.createTextNode("")), r.setAttribute("data-s", ""), r;
|
|
647
648
|
}
|
|
648
|
-
var
|
|
649
|
+
var Qt = /* @__PURE__ */ function() {
|
|
649
650
|
function e(n) {
|
|
650
651
|
var o = this;
|
|
651
652
|
this._insertTag = function(a) {
|
|
@@ -657,10 +658,10 @@ var Kt = /* @__PURE__ */ function() {
|
|
|
657
658
|
return r.hydrate = function(o) {
|
|
658
659
|
o.forEach(this._insertTag);
|
|
659
660
|
}, r.insert = function(o) {
|
|
660
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
661
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Zt(this));
|
|
661
662
|
var a = this.tags[this.tags.length - 1];
|
|
662
663
|
if (this.isSpeedy) {
|
|
663
|
-
var i =
|
|
664
|
+
var i = Xt(a);
|
|
664
665
|
try {
|
|
665
666
|
i.insertRule(o, i.cssRules.length);
|
|
666
667
|
} catch {
|
|
@@ -674,66 +675,66 @@ var Kt = /* @__PURE__ */ function() {
|
|
|
674
675
|
return (a = o.parentNode) == null ? void 0 : a.removeChild(o);
|
|
675
676
|
}), this.tags = [], this.ctr = 0;
|
|
676
677
|
}, e;
|
|
677
|
-
}(),
|
|
678
|
-
function
|
|
678
|
+
}(), B = "-ms-", He = "-moz-", M = "-webkit-", it = "comm", yr = "rule", br = "decl", en = "@import", st = "@keyframes", rn = "@layer", tn = Math.abs, Ze = String.fromCharCode, nn = Object.assign;
|
|
679
|
+
function on(e, r) {
|
|
679
680
|
return J(e, 0) ^ 45 ? (((r << 2 ^ J(e, 0)) << 2 ^ J(e, 1)) << 2 ^ J(e, 2)) << 2 ^ J(e, 3) : 0;
|
|
680
681
|
}
|
|
681
|
-
function
|
|
682
|
+
function ct(e) {
|
|
682
683
|
return e.trim();
|
|
683
684
|
}
|
|
684
|
-
function
|
|
685
|
+
function an(e, r) {
|
|
685
686
|
return (e = r.exec(e)) ? e[0] : e;
|
|
686
687
|
}
|
|
687
|
-
function
|
|
688
|
+
function N(e, r, n) {
|
|
688
689
|
return e.replace(r, n);
|
|
689
690
|
}
|
|
690
|
-
function
|
|
691
|
+
function pr(e, r) {
|
|
691
692
|
return e.indexOf(r);
|
|
692
693
|
}
|
|
693
694
|
function J(e, r) {
|
|
694
695
|
return e.charCodeAt(r) | 0;
|
|
695
696
|
}
|
|
696
|
-
function
|
|
697
|
+
function Ne(e, r, n) {
|
|
697
698
|
return e.slice(r, n);
|
|
698
699
|
}
|
|
699
700
|
function ne(e) {
|
|
700
701
|
return e.length;
|
|
701
702
|
}
|
|
702
|
-
function
|
|
703
|
+
function Er(e) {
|
|
703
704
|
return e.length;
|
|
704
705
|
}
|
|
705
|
-
function
|
|
706
|
+
function ze(e, r) {
|
|
706
707
|
return r.push(e), e;
|
|
707
708
|
}
|
|
708
|
-
function
|
|
709
|
+
function sn(e, r) {
|
|
709
710
|
return e.map(r).join("");
|
|
710
711
|
}
|
|
711
|
-
var
|
|
712
|
-
function
|
|
713
|
-
return { value: e, root: r, parent: n, type: o, props: a, children: i, line:
|
|
712
|
+
var Qe = 1, Ee = 1, ft = 0, Z = 0, q = 0, Se = "";
|
|
713
|
+
function er(e, r, n, o, a, i, u) {
|
|
714
|
+
return { value: e, root: r, parent: n, type: o, props: a, children: i, line: Qe, column: Ee, length: u, return: "" };
|
|
714
715
|
}
|
|
715
|
-
function
|
|
716
|
-
return
|
|
716
|
+
function Ae(e, r) {
|
|
717
|
+
return nn(er("", null, null, "", null, null, 0), e, { length: -e.length }, r);
|
|
717
718
|
}
|
|
718
|
-
function
|
|
719
|
+
function cn() {
|
|
719
720
|
return q;
|
|
720
721
|
}
|
|
721
|
-
function
|
|
722
|
-
return q =
|
|
722
|
+
function fn() {
|
|
723
|
+
return q = Z > 0 ? J(Se, --Z) : 0, Ee--, q === 10 && (Ee = 1, Qe--), q;
|
|
723
724
|
}
|
|
724
|
-
function
|
|
725
|
-
return q =
|
|
725
|
+
function ee() {
|
|
726
|
+
return q = Z < ft ? J(Se, Z++) : 0, Ee++, q === 10 && (Ee = 1, Qe++), q;
|
|
726
727
|
}
|
|
727
728
|
function ae() {
|
|
728
|
-
return J(
|
|
729
|
+
return J(Se, Z);
|
|
729
730
|
}
|
|
730
|
-
function
|
|
731
|
-
return
|
|
731
|
+
function Ge() {
|
|
732
|
+
return Z;
|
|
732
733
|
}
|
|
733
|
-
function
|
|
734
|
-
return
|
|
734
|
+
function De(e, r) {
|
|
735
|
+
return Ne(Se, e, r);
|
|
735
736
|
}
|
|
736
|
-
function
|
|
737
|
+
function Ie(e) {
|
|
737
738
|
switch (e) {
|
|
738
739
|
case 0:
|
|
739
740
|
case 9:
|
|
@@ -765,211 +766,211 @@ function Ae(e) {
|
|
|
765
766
|
}
|
|
766
767
|
return 0;
|
|
767
768
|
}
|
|
768
|
-
function ft(e) {
|
|
769
|
-
return He = be = 1, ct = ne(Ee = e), X = 0, [];
|
|
770
|
-
}
|
|
771
769
|
function ut(e) {
|
|
772
|
-
return Ee =
|
|
770
|
+
return Qe = Ee = 1, ft = ne(Se = e), Z = 0, [];
|
|
771
|
+
}
|
|
772
|
+
function lt(e) {
|
|
773
|
+
return Se = "", e;
|
|
773
774
|
}
|
|
774
|
-
function
|
|
775
|
-
return
|
|
775
|
+
function qe(e) {
|
|
776
|
+
return ct(De(Z - 1, mr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
776
777
|
}
|
|
777
|
-
function
|
|
778
|
+
function un(e) {
|
|
778
779
|
for (; (q = ae()) && q < 33; )
|
|
779
|
-
|
|
780
|
-
return
|
|
780
|
+
ee();
|
|
781
|
+
return Ie(e) > 2 || Ie(q) > 3 ? "" : " ";
|
|
781
782
|
}
|
|
782
|
-
function
|
|
783
|
-
for (; --r &&
|
|
783
|
+
function ln(e, r) {
|
|
784
|
+
for (; --r && ee() && !(q < 48 || q > 102 || q > 57 && q < 65 || q > 70 && q < 97); )
|
|
784
785
|
;
|
|
785
|
-
return
|
|
786
|
+
return De(e, Ge() + (r < 6 && ae() == 32 && ee() == 32));
|
|
786
787
|
}
|
|
787
|
-
function
|
|
788
|
-
for (;
|
|
788
|
+
function mr(e) {
|
|
789
|
+
for (; ee(); )
|
|
789
790
|
switch (q) {
|
|
790
791
|
case e:
|
|
791
|
-
return
|
|
792
|
+
return Z;
|
|
792
793
|
case 34:
|
|
793
794
|
case 39:
|
|
794
|
-
e !== 34 && e !== 39 &&
|
|
795
|
+
e !== 34 && e !== 39 && mr(q);
|
|
795
796
|
break;
|
|
796
797
|
case 40:
|
|
797
|
-
e === 41 &&
|
|
798
|
+
e === 41 && mr(e);
|
|
798
799
|
break;
|
|
799
800
|
case 92:
|
|
800
|
-
|
|
801
|
+
ee();
|
|
801
802
|
break;
|
|
802
803
|
}
|
|
803
|
-
return
|
|
804
|
+
return Z;
|
|
804
805
|
}
|
|
805
|
-
function
|
|
806
|
-
for (;
|
|
806
|
+
function dn(e, r) {
|
|
807
|
+
for (; ee() && e + q !== 57; )
|
|
807
808
|
if (e + q === 84 && ae() === 47)
|
|
808
809
|
break;
|
|
809
|
-
return "/*" +
|
|
810
|
+
return "/*" + De(r, Z - 1) + "*" + Ze(e === 47 ? e : ee());
|
|
810
811
|
}
|
|
811
|
-
function
|
|
812
|
-
for (; !
|
|
813
|
-
|
|
814
|
-
return
|
|
812
|
+
function hn(e) {
|
|
813
|
+
for (; !Ie(ae()); )
|
|
814
|
+
ee();
|
|
815
|
+
return De(e, Z);
|
|
815
816
|
}
|
|
816
|
-
function
|
|
817
|
-
return
|
|
817
|
+
function pn(e) {
|
|
818
|
+
return lt(Je("", null, null, null, [""], e = ut(e), 0, [0], e));
|
|
818
819
|
}
|
|
819
|
-
function
|
|
820
|
-
for (var
|
|
821
|
-
switch (
|
|
820
|
+
function Je(e, r, n, o, a, i, u, s, f) {
|
|
821
|
+
for (var m = 0, p = 0, d = u, P = 0, C = 0, x = 0, R = 1, y = 1, S = 1, b = 0, _ = "", j = a, l = i, U = o, A = _; y; )
|
|
822
|
+
switch (x = b, b = ee()) {
|
|
822
823
|
case 40:
|
|
823
|
-
if (
|
|
824
|
-
|
|
824
|
+
if (x != 108 && J(A, d - 1) == 58) {
|
|
825
|
+
pr(A += N(qe(b), "&", "&\f"), "&\f") != -1 && (S = -1);
|
|
825
826
|
break;
|
|
826
827
|
}
|
|
827
828
|
case 34:
|
|
828
829
|
case 39:
|
|
829
830
|
case 91:
|
|
830
|
-
|
|
831
|
+
A += qe(b);
|
|
831
832
|
break;
|
|
832
833
|
case 9:
|
|
833
834
|
case 10:
|
|
834
835
|
case 13:
|
|
835
836
|
case 32:
|
|
836
|
-
|
|
837
|
+
A += un(x);
|
|
837
838
|
break;
|
|
838
839
|
case 92:
|
|
839
|
-
|
|
840
|
+
A += ln(Ge() - 1, 7);
|
|
840
841
|
continue;
|
|
841
842
|
case 47:
|
|
842
843
|
switch (ae()) {
|
|
843
844
|
case 42:
|
|
844
845
|
case 47:
|
|
845
|
-
|
|
846
|
+
ze(mn(dn(ee(), Ge()), r, n), f);
|
|
846
847
|
break;
|
|
847
848
|
default:
|
|
848
|
-
|
|
849
|
+
A += "/";
|
|
849
850
|
}
|
|
850
851
|
break;
|
|
851
|
-
case 123 *
|
|
852
|
-
s[
|
|
853
|
-
case 125 *
|
|
852
|
+
case 123 * R:
|
|
853
|
+
s[m++] = ne(A) * S;
|
|
854
|
+
case 125 * R:
|
|
854
855
|
case 59:
|
|
855
856
|
case 0:
|
|
856
|
-
switch (
|
|
857
|
+
switch (b) {
|
|
857
858
|
case 0:
|
|
858
859
|
case 125:
|
|
859
|
-
|
|
860
|
-
case 59 +
|
|
861
|
-
|
|
860
|
+
y = 0;
|
|
861
|
+
case 59 + p:
|
|
862
|
+
S == -1 && (A = N(A, /\f/g, "")), C > 0 && ne(A) - d && ze(C > 32 ? qr(A + ";", o, n, d - 1) : qr(N(A, " ", "") + ";", o, n, d - 2), f);
|
|
862
863
|
break;
|
|
863
864
|
case 59:
|
|
864
|
-
|
|
865
|
+
A += ";";
|
|
865
866
|
default:
|
|
866
|
-
if (
|
|
867
|
-
if (
|
|
868
|
-
|
|
867
|
+
if (ze(U = Gr(A, r, n, m, p, a, s, _, j = [], l = [], d), i), b === 123)
|
|
868
|
+
if (p === 0)
|
|
869
|
+
Je(A, r, U, U, j, i, d, s, l);
|
|
869
870
|
else
|
|
870
|
-
switch (
|
|
871
|
+
switch (P === 99 && J(A, 3) === 110 ? 100 : P) {
|
|
871
872
|
case 100:
|
|
872
873
|
case 108:
|
|
873
874
|
case 109:
|
|
874
875
|
case 115:
|
|
875
|
-
|
|
876
|
+
Je(e, U, U, o && ze(Gr(e, U, U, 0, 0, a, s, _, a, j = [], d), l), a, l, d, s, o ? j : l);
|
|
876
877
|
break;
|
|
877
878
|
default:
|
|
878
|
-
|
|
879
|
+
Je(A, U, U, U, [""], l, 0, s, l);
|
|
879
880
|
}
|
|
880
881
|
}
|
|
881
|
-
|
|
882
|
+
m = p = C = 0, R = S = 1, _ = A = "", d = u;
|
|
882
883
|
break;
|
|
883
884
|
case 58:
|
|
884
|
-
|
|
885
|
+
d = 1 + ne(A), C = x;
|
|
885
886
|
default:
|
|
886
|
-
if (
|
|
887
|
-
if (
|
|
888
|
-
--
|
|
889
|
-
else if (
|
|
887
|
+
if (R < 1) {
|
|
888
|
+
if (b == 123)
|
|
889
|
+
--R;
|
|
890
|
+
else if (b == 125 && R++ == 0 && fn() == 125)
|
|
890
891
|
continue;
|
|
891
892
|
}
|
|
892
|
-
switch (
|
|
893
|
+
switch (A += Ze(b), b * R) {
|
|
893
894
|
case 38:
|
|
894
|
-
|
|
895
|
+
S = p > 0 ? 1 : (A += "\f", -1);
|
|
895
896
|
break;
|
|
896
897
|
case 44:
|
|
897
|
-
s[
|
|
898
|
+
s[m++] = (ne(A) - 1) * S, S = 1;
|
|
898
899
|
break;
|
|
899
900
|
case 64:
|
|
900
|
-
ae() === 45 && (
|
|
901
|
+
ae() === 45 && (A += qe(ee())), P = ae(), p = d = ne(_ = A += hn(Ge())), b++;
|
|
901
902
|
break;
|
|
902
903
|
case 45:
|
|
903
|
-
|
|
904
|
+
x === 45 && ne(A) == 2 && (R = 0);
|
|
904
905
|
}
|
|
905
906
|
}
|
|
906
907
|
return i;
|
|
907
908
|
}
|
|
908
|
-
function
|
|
909
|
-
for (var
|
|
910
|
-
for (var
|
|
911
|
-
(
|
|
912
|
-
return
|
|
909
|
+
function Gr(e, r, n, o, a, i, u, s, f, m, p) {
|
|
910
|
+
for (var d = a - 1, P = a === 0 ? i : [""], C = Er(P), x = 0, R = 0, y = 0; x < o; ++x)
|
|
911
|
+
for (var S = 0, b = Ne(e, d + 1, d = tn(R = u[x])), _ = e; S < C; ++S)
|
|
912
|
+
(_ = ct(R > 0 ? P[S] + " " + b : N(b, /&\f/g, P[S]))) && (f[y++] = _);
|
|
913
|
+
return er(e, r, n, a === 0 ? yr : s, f, m, p);
|
|
913
914
|
}
|
|
914
|
-
function
|
|
915
|
-
return
|
|
915
|
+
function mn(e, r, n) {
|
|
916
|
+
return er(e, r, n, it, Ze(cn()), Ne(e, 2, -2), 0);
|
|
916
917
|
}
|
|
917
|
-
function
|
|
918
|
-
return
|
|
918
|
+
function qr(e, r, n, o) {
|
|
919
|
+
return er(e, r, n, br, Ne(e, 0, o), Ne(e, o + 1, -1), o);
|
|
919
920
|
}
|
|
920
|
-
function
|
|
921
|
-
for (var n = "", o =
|
|
921
|
+
function be(e, r) {
|
|
922
|
+
for (var n = "", o = Er(e), a = 0; a < o; a++)
|
|
922
923
|
n += r(e[a], a, e, r) || "";
|
|
923
924
|
return n;
|
|
924
925
|
}
|
|
925
|
-
function
|
|
926
|
+
function gn(e, r, n, o) {
|
|
926
927
|
switch (e.type) {
|
|
927
|
-
case
|
|
928
|
+
case rn:
|
|
928
929
|
if (e.children.length) break;
|
|
929
|
-
case
|
|
930
|
-
case
|
|
930
|
+
case en:
|
|
931
|
+
case br:
|
|
931
932
|
return e.return = e.return || e.value;
|
|
932
|
-
case at:
|
|
933
|
-
return "";
|
|
934
933
|
case it:
|
|
935
|
-
return
|
|
936
|
-
case
|
|
934
|
+
return "";
|
|
935
|
+
case st:
|
|
936
|
+
return e.return = e.value + "{" + be(e.children, o) + "}";
|
|
937
|
+
case yr:
|
|
937
938
|
e.value = e.props.join(",");
|
|
938
939
|
}
|
|
939
|
-
return ne(n =
|
|
940
|
+
return ne(n = be(e.children, o)) ? e.return = e.value + "{" + n + "}" : "";
|
|
940
941
|
}
|
|
941
|
-
function
|
|
942
|
-
var r =
|
|
942
|
+
function vn(e) {
|
|
943
|
+
var r = Er(e);
|
|
943
944
|
return function(n, o, a, i) {
|
|
944
|
-
for (var
|
|
945
|
-
|
|
946
|
-
return
|
|
945
|
+
for (var u = "", s = 0; s < r; s++)
|
|
946
|
+
u += e[s](n, o, a, i) || "";
|
|
947
|
+
return u;
|
|
947
948
|
};
|
|
948
949
|
}
|
|
949
|
-
function
|
|
950
|
+
function yn(e) {
|
|
950
951
|
return function(r) {
|
|
951
952
|
r.root || (r = r.return) && e(r);
|
|
952
953
|
};
|
|
953
954
|
}
|
|
954
|
-
function
|
|
955
|
+
function bn(e) {
|
|
955
956
|
var r = /* @__PURE__ */ Object.create(null);
|
|
956
957
|
return function(n) {
|
|
957
958
|
return r[n] === void 0 && (r[n] = e(n)), r[n];
|
|
958
959
|
};
|
|
959
960
|
}
|
|
960
|
-
var
|
|
961
|
-
for (var a = 0, i = 0; a = i, i = ae(), a === 38 && i === 12 && (n[o] = 1), !
|
|
962
|
-
|
|
963
|
-
return
|
|
964
|
-
},
|
|
961
|
+
var En = function(r, n, o) {
|
|
962
|
+
for (var a = 0, i = 0; a = i, i = ae(), a === 38 && i === 12 && (n[o] = 1), !Ie(i); )
|
|
963
|
+
ee();
|
|
964
|
+
return De(r, Z);
|
|
965
|
+
}, Sn = function(r, n) {
|
|
965
966
|
var o = -1, a = 44;
|
|
966
967
|
do
|
|
967
|
-
switch (
|
|
968
|
+
switch (Ie(a)) {
|
|
968
969
|
case 0:
|
|
969
|
-
a === 38 && ae() === 12 && (n[o] = 1), r[o] +=
|
|
970
|
+
a === 38 && ae() === 12 && (n[o] = 1), r[o] += En(Z - 1, n, o);
|
|
970
971
|
break;
|
|
971
972
|
case 2:
|
|
972
|
-
r[o] +=
|
|
973
|
+
r[o] += qe(a);
|
|
973
974
|
break;
|
|
974
975
|
case 4:
|
|
975
976
|
if (a === 44) {
|
|
@@ -977,26 +978,26 @@ var mn = function(r, n, o) {
|
|
|
977
978
|
break;
|
|
978
979
|
}
|
|
979
980
|
default:
|
|
980
|
-
r[o] +=
|
|
981
|
+
r[o] += Ze(a);
|
|
981
982
|
}
|
|
982
|
-
while (a =
|
|
983
|
+
while (a = ee());
|
|
983
984
|
return r;
|
|
984
|
-
},
|
|
985
|
-
return
|
|
986
|
-
},
|
|
985
|
+
}, Rn = function(r, n) {
|
|
986
|
+
return lt(Sn(ut(r), n));
|
|
987
|
+
}, Jr = /* @__PURE__ */ new WeakMap(), xn = function(r) {
|
|
987
988
|
if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo
|
|
988
989
|
// negative .length indicates that this rule has been already prefixed
|
|
989
990
|
r.length < 1)) {
|
|
990
991
|
for (var n = r.value, o = r.parent, a = r.column === o.column && r.line === o.line; o.type !== "rule"; )
|
|
991
992
|
if (o = o.parent, !o) return;
|
|
992
|
-
if (!(r.props.length === 1 && n.charCodeAt(0) !== 58 && !
|
|
993
|
-
|
|
994
|
-
for (var i = [],
|
|
995
|
-
for (var
|
|
996
|
-
r.props[
|
|
993
|
+
if (!(r.props.length === 1 && n.charCodeAt(0) !== 58 && !Jr.get(o)) && !a) {
|
|
994
|
+
Jr.set(r, !0);
|
|
995
|
+
for (var i = [], u = Rn(n, i), s = o.props, f = 0, m = 0; f < u.length; f++)
|
|
996
|
+
for (var p = 0; p < s.length; p++, m++)
|
|
997
|
+
r.props[m] = i[f] ? u[f].replace(/&\f/g, s[p]) : s[p] + " " + u[f];
|
|
997
998
|
}
|
|
998
999
|
}
|
|
999
|
-
},
|
|
1000
|
+
}, Cn = function(r) {
|
|
1000
1001
|
if (r.type === "decl") {
|
|
1001
1002
|
var n = r.value;
|
|
1002
1003
|
// charcode for l
|
|
@@ -1004,10 +1005,10 @@ var mn = function(r, n, o) {
|
|
|
1004
1005
|
n.charCodeAt(2) === 98 && (r.return = "", r.value = "");
|
|
1005
1006
|
}
|
|
1006
1007
|
};
|
|
1007
|
-
function
|
|
1008
|
-
switch (
|
|
1008
|
+
function dt(e, r) {
|
|
1009
|
+
switch (on(e, r)) {
|
|
1009
1010
|
case 5103:
|
|
1010
|
-
return
|
|
1011
|
+
return M + "print-" + e + e;
|
|
1011
1012
|
case 5737:
|
|
1012
1013
|
case 4201:
|
|
1013
1014
|
case 3177:
|
|
@@ -1033,44 +1034,44 @@ function lt(e, r) {
|
|
|
1033
1034
|
case 5365:
|
|
1034
1035
|
case 5621:
|
|
1035
1036
|
case 3829:
|
|
1036
|
-
return
|
|
1037
|
+
return M + e + e;
|
|
1037
1038
|
case 5349:
|
|
1038
1039
|
case 4246:
|
|
1039
1040
|
case 4810:
|
|
1040
1041
|
case 6968:
|
|
1041
1042
|
case 2756:
|
|
1042
|
-
return
|
|
1043
|
+
return M + e + He + e + B + e + e;
|
|
1043
1044
|
case 6828:
|
|
1044
1045
|
case 4268:
|
|
1045
|
-
return
|
|
1046
|
+
return M + e + B + e + e;
|
|
1046
1047
|
case 6165:
|
|
1047
|
-
return
|
|
1048
|
+
return M + e + B + "flex-" + e + e;
|
|
1048
1049
|
case 5187:
|
|
1049
|
-
return
|
|
1050
|
+
return M + e + N(e, /(\w+).+(:[^]+)/, M + "box-$1$2" + B + "flex-$1$2") + e;
|
|
1050
1051
|
case 5443:
|
|
1051
|
-
return
|
|
1052
|
+
return M + e + B + "flex-item-" + N(e, /flex-|-self/, "") + e;
|
|
1052
1053
|
case 4675:
|
|
1053
|
-
return
|
|
1054
|
+
return M + e + B + "flex-line-pack" + N(e, /align-content|flex-|-self/, "") + e;
|
|
1054
1055
|
case 5548:
|
|
1055
|
-
return
|
|
1056
|
+
return M + e + B + N(e, "shrink", "negative") + e;
|
|
1056
1057
|
case 5292:
|
|
1057
|
-
return
|
|
1058
|
+
return M + e + B + N(e, "basis", "preferred-size") + e;
|
|
1058
1059
|
case 6060:
|
|
1059
|
-
return
|
|
1060
|
+
return M + "box-" + N(e, "-grow", "") + M + e + B + N(e, "grow", "positive") + e;
|
|
1060
1061
|
case 4554:
|
|
1061
|
-
return
|
|
1062
|
+
return M + N(e, /([^-])(transform)/g, "$1" + M + "$2") + e;
|
|
1062
1063
|
case 6187:
|
|
1063
|
-
return
|
|
1064
|
+
return N(N(N(e, /(zoom-|grab)/, M + "$1"), /(image-set)/, M + "$1"), e, "") + e;
|
|
1064
1065
|
case 5495:
|
|
1065
1066
|
case 3959:
|
|
1066
|
-
return
|
|
1067
|
+
return N(e, /(image-set\([^]*)/, M + "$1$`$1");
|
|
1067
1068
|
case 4968:
|
|
1068
|
-
return
|
|
1069
|
+
return N(N(e, /(.+:)(flex-)?(.*)/, M + "box-pack:$3" + B + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + M + e + e;
|
|
1069
1070
|
case 4095:
|
|
1070
1071
|
case 3583:
|
|
1071
1072
|
case 4068:
|
|
1072
1073
|
case 2532:
|
|
1073
|
-
return
|
|
1074
|
+
return N(e, /(.+)-inline(.+)/, M + "$1$2") + e;
|
|
1074
1075
|
case 8116:
|
|
1075
1076
|
case 7059:
|
|
1076
1077
|
case 5753:
|
|
@@ -1087,99 +1088,99 @@ function lt(e, r) {
|
|
|
1087
1088
|
case 109:
|
|
1088
1089
|
if (J(e, r + 4) !== 45) break;
|
|
1089
1090
|
case 102:
|
|
1090
|
-
return
|
|
1091
|
+
return N(e, /(.+:)(.+)-([^]+)/, "$1" + M + "$2-$3$1" + He + (J(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1091
1092
|
case 115:
|
|
1092
|
-
return ~
|
|
1093
|
+
return ~pr(e, "stretch") ? dt(N(e, "stretch", "fill-available"), r) + e : e;
|
|
1093
1094
|
}
|
|
1094
1095
|
break;
|
|
1095
1096
|
case 4949:
|
|
1096
1097
|
if (J(e, r + 1) !== 115) break;
|
|
1097
1098
|
case 6444:
|
|
1098
|
-
switch (J(e, ne(e) - 3 - (~
|
|
1099
|
+
switch (J(e, ne(e) - 3 - (~pr(e, "!important") && 10))) {
|
|
1099
1100
|
case 107:
|
|
1100
|
-
return
|
|
1101
|
+
return N(e, ":", ":" + M) + e;
|
|
1101
1102
|
case 101:
|
|
1102
|
-
return
|
|
1103
|
+
return N(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + M + (J(e, 14) === 45 ? "inline-" : "") + "box$3$1" + M + "$2$3$1" + B + "$2box$3") + e;
|
|
1103
1104
|
}
|
|
1104
1105
|
break;
|
|
1105
1106
|
case 5936:
|
|
1106
1107
|
switch (J(e, r + 11)) {
|
|
1107
1108
|
case 114:
|
|
1108
|
-
return
|
|
1109
|
+
return M + e + B + N(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
1109
1110
|
case 108:
|
|
1110
|
-
return
|
|
1111
|
+
return M + e + B + N(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
1111
1112
|
case 45:
|
|
1112
|
-
return
|
|
1113
|
+
return M + e + B + N(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
1113
1114
|
}
|
|
1114
|
-
return
|
|
1115
|
+
return M + e + B + e + e;
|
|
1115
1116
|
}
|
|
1116
1117
|
return e;
|
|
1117
1118
|
}
|
|
1118
|
-
var
|
|
1119
|
+
var _n = function(r, n, o, a) {
|
|
1119
1120
|
if (r.length > -1 && !r.return) switch (r.type) {
|
|
1120
|
-
case
|
|
1121
|
-
r.return =
|
|
1121
|
+
case br:
|
|
1122
|
+
r.return = dt(r.value, r.length);
|
|
1122
1123
|
break;
|
|
1123
|
-
case
|
|
1124
|
-
return
|
|
1125
|
-
value:
|
|
1124
|
+
case st:
|
|
1125
|
+
return be([Ae(r, {
|
|
1126
|
+
value: N(r.value, "@", "@" + M)
|
|
1126
1127
|
})], a);
|
|
1127
|
-
case
|
|
1128
|
-
if (r.length) return
|
|
1129
|
-
switch (
|
|
1128
|
+
case yr:
|
|
1129
|
+
if (r.length) return sn(r.props, function(i) {
|
|
1130
|
+
switch (an(i, /(::plac\w+|:read-\w+)/)) {
|
|
1130
1131
|
case ":read-only":
|
|
1131
1132
|
case ":read-write":
|
|
1132
|
-
return
|
|
1133
|
-
props: [
|
|
1133
|
+
return be([Ae(r, {
|
|
1134
|
+
props: [N(i, /:(read-\w+)/, ":" + He + "$1")]
|
|
1134
1135
|
})], a);
|
|
1135
1136
|
case "::placeholder":
|
|
1136
|
-
return
|
|
1137
|
-
props: [
|
|
1138
|
-
}),
|
|
1139
|
-
props: [
|
|
1140
|
-
}),
|
|
1141
|
-
props: [
|
|
1137
|
+
return be([Ae(r, {
|
|
1138
|
+
props: [N(i, /:(plac\w+)/, ":" + M + "input-$1")]
|
|
1139
|
+
}), Ae(r, {
|
|
1140
|
+
props: [N(i, /:(plac\w+)/, ":" + He + "$1")]
|
|
1141
|
+
}), Ae(r, {
|
|
1142
|
+
props: [N(i, /:(plac\w+)/, B + "input-$1")]
|
|
1142
1143
|
})], a);
|
|
1143
1144
|
}
|
|
1144
1145
|
return "";
|
|
1145
1146
|
});
|
|
1146
1147
|
}
|
|
1147
|
-
},
|
|
1148
|
+
}, wn = [_n], Tn = function(r) {
|
|
1148
1149
|
var n = r.key;
|
|
1149
1150
|
if (n === "css") {
|
|
1150
1151
|
var o = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
1151
|
-
Array.prototype.forEach.call(o, function(
|
|
1152
|
-
var
|
|
1153
|
-
|
|
1152
|
+
Array.prototype.forEach.call(o, function(R) {
|
|
1153
|
+
var y = R.getAttribute("data-emotion");
|
|
1154
|
+
y.indexOf(" ") !== -1 && (document.head.appendChild(R), R.setAttribute("data-s", ""));
|
|
1154
1155
|
});
|
|
1155
1156
|
}
|
|
1156
|
-
var a = r.stylisPlugins ||
|
|
1157
|
-
|
|
1157
|
+
var a = r.stylisPlugins || wn, i = {}, u, s = [];
|
|
1158
|
+
u = r.container || document.head, Array.prototype.forEach.call(
|
|
1158
1159
|
// this means we will ignore elements which don't have a space in them which
|
|
1159
1160
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
1160
1161
|
document.querySelectorAll('style[data-emotion^="' + n + ' "]'),
|
|
1161
|
-
function(
|
|
1162
|
-
for (var
|
|
1163
|
-
i[
|
|
1164
|
-
s.push(
|
|
1162
|
+
function(R) {
|
|
1163
|
+
for (var y = R.getAttribute("data-emotion").split(" "), S = 1; S < y.length; S++)
|
|
1164
|
+
i[y[S]] = !0;
|
|
1165
|
+
s.push(R);
|
|
1165
1166
|
}
|
|
1166
1167
|
);
|
|
1167
|
-
var
|
|
1168
|
+
var f, m = [xn, Cn];
|
|
1168
1169
|
{
|
|
1169
|
-
var
|
|
1170
|
-
|
|
1171
|
-
})],
|
|
1172
|
-
return
|
|
1170
|
+
var p, d = [gn, yn(function(R) {
|
|
1171
|
+
p.insert(R);
|
|
1172
|
+
})], P = vn(m.concat(a, d)), C = function(y) {
|
|
1173
|
+
return be(pn(y), P);
|
|
1173
1174
|
};
|
|
1174
|
-
|
|
1175
|
-
|
|
1175
|
+
f = function(y, S, b, _) {
|
|
1176
|
+
p = b, C(y ? y + "{" + S.styles + "}" : S.styles), _ && (x.inserted[S.name] = !0);
|
|
1176
1177
|
};
|
|
1177
1178
|
}
|
|
1178
|
-
var
|
|
1179
|
+
var x = {
|
|
1179
1180
|
key: n,
|
|
1180
|
-
sheet: new
|
|
1181
|
+
sheet: new Qt({
|
|
1181
1182
|
key: n,
|
|
1182
|
-
container:
|
|
1183
|
+
container: u,
|
|
1183
1184
|
nonce: r.nonce,
|
|
1184
1185
|
speedy: r.speedy,
|
|
1185
1186
|
prepend: r.prepend,
|
|
@@ -1188,10 +1189,10 @@ var Sn = function(r, n, o, a) {
|
|
|
1188
1189
|
nonce: r.nonce,
|
|
1189
1190
|
inserted: i,
|
|
1190
1191
|
registered: {},
|
|
1191
|
-
insert:
|
|
1192
|
+
insert: f
|
|
1192
1193
|
};
|
|
1193
|
-
return
|
|
1194
|
-
},
|
|
1194
|
+
return x.sheet.hydrate(s), x;
|
|
1195
|
+
}, gr = { exports: {} }, F = {};
|
|
1195
1196
|
/** @license React v16.13.1
|
|
1196
1197
|
* react-is.production.min.js
|
|
1197
1198
|
*
|
|
@@ -1201,30 +1202,30 @@ var Sn = function(r, n, o, a) {
|
|
|
1201
1202
|
* LICENSE file in the root directory of this source tree.
|
|
1202
1203
|
*/
|
|
1203
1204
|
var Br;
|
|
1204
|
-
function
|
|
1205
|
+
function Pn() {
|
|
1205
1206
|
if (Br) return F;
|
|
1206
1207
|
Br = 1;
|
|
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,
|
|
1208
|
-
function
|
|
1208
|
+
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, u = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, m = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, P = e ? Symbol.for("react.suspense_list") : 60120, C = e ? Symbol.for("react.memo") : 60115, x = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, b = e ? Symbol.for("react.scope") : 60119;
|
|
1209
|
+
function _(l) {
|
|
1209
1210
|
if (typeof l == "object" && l !== null) {
|
|
1210
1211
|
var U = l.$$typeof;
|
|
1211
1212
|
switch (U) {
|
|
1212
1213
|
case r:
|
|
1213
1214
|
switch (l = l.type, l) {
|
|
1214
|
-
case
|
|
1215
|
-
case
|
|
1215
|
+
case f:
|
|
1216
|
+
case m:
|
|
1216
1217
|
case o:
|
|
1217
1218
|
case i:
|
|
1218
1219
|
case a:
|
|
1219
|
-
case
|
|
1220
|
+
case d:
|
|
1220
1221
|
return l;
|
|
1221
1222
|
default:
|
|
1222
1223
|
switch (l = l && l.$$typeof, l) {
|
|
1223
1224
|
case s:
|
|
1225
|
+
case p:
|
|
1226
|
+
case x:
|
|
1227
|
+
case C:
|
|
1224
1228
|
case u:
|
|
1225
|
-
case b:
|
|
1226
|
-
case S:
|
|
1227
|
-
case c:
|
|
1228
1229
|
return l;
|
|
1229
1230
|
default:
|
|
1230
1231
|
return U;
|
|
@@ -1236,37 +1237,37 @@ function _n() {
|
|
|
1236
1237
|
}
|
|
1237
1238
|
}
|
|
1238
1239
|
function j(l) {
|
|
1239
|
-
return
|
|
1240
|
+
return _(l) === m;
|
|
1240
1241
|
}
|
|
1241
|
-
return F.AsyncMode =
|
|
1242
|
-
return j(l) ||
|
|
1242
|
+
return F.AsyncMode = f, F.ConcurrentMode = m, F.ContextConsumer = s, F.ContextProvider = u, F.Element = r, F.ForwardRef = p, F.Fragment = o, F.Lazy = x, F.Memo = C, F.Portal = n, F.Profiler = i, F.StrictMode = a, F.Suspense = d, F.isAsyncMode = function(l) {
|
|
1243
|
+
return j(l) || _(l) === f;
|
|
1243
1244
|
}, F.isConcurrentMode = j, F.isContextConsumer = function(l) {
|
|
1244
|
-
return
|
|
1245
|
+
return _(l) === s;
|
|
1245
1246
|
}, F.isContextProvider = function(l) {
|
|
1246
|
-
return
|
|
1247
|
+
return _(l) === u;
|
|
1247
1248
|
}, F.isElement = function(l) {
|
|
1248
1249
|
return typeof l == "object" && l !== null && l.$$typeof === r;
|
|
1249
1250
|
}, F.isForwardRef = function(l) {
|
|
1250
|
-
return
|
|
1251
|
+
return _(l) === p;
|
|
1251
1252
|
}, F.isFragment = function(l) {
|
|
1252
|
-
return
|
|
1253
|
+
return _(l) === o;
|
|
1253
1254
|
}, F.isLazy = function(l) {
|
|
1254
|
-
return
|
|
1255
|
+
return _(l) === x;
|
|
1255
1256
|
}, F.isMemo = function(l) {
|
|
1256
|
-
return
|
|
1257
|
+
return _(l) === C;
|
|
1257
1258
|
}, F.isPortal = function(l) {
|
|
1258
|
-
return
|
|
1259
|
+
return _(l) === n;
|
|
1259
1260
|
}, F.isProfiler = function(l) {
|
|
1260
|
-
return
|
|
1261
|
+
return _(l) === i;
|
|
1261
1262
|
}, F.isStrictMode = function(l) {
|
|
1262
|
-
return
|
|
1263
|
+
return _(l) === a;
|
|
1263
1264
|
}, F.isSuspense = function(l) {
|
|
1264
|
-
return
|
|
1265
|
+
return _(l) === d;
|
|
1265
1266
|
}, F.isValidElementType = function(l) {
|
|
1266
|
-
return typeof l == "string" || typeof l == "function" || l === o || l ===
|
|
1267
|
-
}, F.typeOf =
|
|
1267
|
+
return typeof l == "string" || typeof l == "function" || l === o || l === m || l === i || l === a || l === d || l === P || typeof l == "object" && l !== null && (l.$$typeof === x || l.$$typeof === C || l.$$typeof === u || l.$$typeof === s || l.$$typeof === p || l.$$typeof === y || l.$$typeof === S || l.$$typeof === b || l.$$typeof === R);
|
|
1268
|
+
}, F.typeOf = _, F;
|
|
1268
1269
|
}
|
|
1269
|
-
var
|
|
1270
|
+
var D = {};
|
|
1270
1271
|
/** @license React v16.13.1
|
|
1271
1272
|
* react-is.development.js
|
|
1272
1273
|
*
|
|
@@ -1275,114 +1276,114 @@ var N = {};
|
|
|
1275
1276
|
* This source code is licensed under the MIT license found in the
|
|
1276
1277
|
* LICENSE file in the root directory of this source tree.
|
|
1277
1278
|
*/
|
|
1278
|
-
var
|
|
1279
|
-
function
|
|
1280
|
-
return
|
|
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,
|
|
1282
|
-
function
|
|
1283
|
-
return typeof
|
|
1284
|
-
|
|
1285
|
-
}
|
|
1286
|
-
function j(
|
|
1287
|
-
if (typeof
|
|
1288
|
-
var
|
|
1289
|
-
switch (
|
|
1279
|
+
var Kr;
|
|
1280
|
+
function On() {
|
|
1281
|
+
return Kr || (Kr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1282
|
+
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, u = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, m = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, P = e ? Symbol.for("react.suspense_list") : 60120, C = e ? Symbol.for("react.memo") : 60115, x = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, b = e ? Symbol.for("react.scope") : 60119;
|
|
1283
|
+
function _(v) {
|
|
1284
|
+
return typeof v == "string" || typeof v == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1285
|
+
v === o || v === m || v === i || v === a || v === d || v === P || typeof v == "object" && v !== null && (v.$$typeof === x || v.$$typeof === C || v.$$typeof === u || v.$$typeof === s || v.$$typeof === p || v.$$typeof === y || v.$$typeof === S || v.$$typeof === b || v.$$typeof === R);
|
|
1286
|
+
}
|
|
1287
|
+
function j(v) {
|
|
1288
|
+
if (typeof v == "object" && v !== null) {
|
|
1289
|
+
var Pe = v.$$typeof;
|
|
1290
|
+
switch (Pe) {
|
|
1290
1291
|
case r:
|
|
1291
|
-
var
|
|
1292
|
-
switch (
|
|
1293
|
-
case
|
|
1294
|
-
case
|
|
1292
|
+
var ge = v.type;
|
|
1293
|
+
switch (ge) {
|
|
1294
|
+
case f:
|
|
1295
|
+
case m:
|
|
1295
1296
|
case o:
|
|
1296
1297
|
case i:
|
|
1297
1298
|
case a:
|
|
1298
|
-
case
|
|
1299
|
-
return
|
|
1299
|
+
case d:
|
|
1300
|
+
return ge;
|
|
1300
1301
|
default:
|
|
1301
|
-
var
|
|
1302
|
-
switch (
|
|
1302
|
+
var le = ge && ge.$$typeof;
|
|
1303
|
+
switch (le) {
|
|
1303
1304
|
case s:
|
|
1305
|
+
case p:
|
|
1306
|
+
case x:
|
|
1307
|
+
case C:
|
|
1304
1308
|
case u:
|
|
1305
|
-
|
|
1306
|
-
case S:
|
|
1307
|
-
case c:
|
|
1308
|
-
return fe;
|
|
1309
|
+
return le;
|
|
1309
1310
|
default:
|
|
1310
|
-
return
|
|
1311
|
+
return Pe;
|
|
1311
1312
|
}
|
|
1312
1313
|
}
|
|
1313
1314
|
case n:
|
|
1314
|
-
return
|
|
1315
|
+
return Pe;
|
|
1315
1316
|
}
|
|
1316
1317
|
}
|
|
1317
1318
|
}
|
|
1318
|
-
var l =
|
|
1319
|
-
function
|
|
1320
|
-
return
|
|
1319
|
+
var l = f, U = m, A = s, Re = u, g = r, w = p, $ = o, k = x, L = C, V = n, K = i, ie = a, je = d, xe = !1;
|
|
1320
|
+
function Le(v) {
|
|
1321
|
+
return xe || (xe = !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.")), Ce(v) || j(v) === f;
|
|
1321
1322
|
}
|
|
1322
|
-
function
|
|
1323
|
-
return j(
|
|
1323
|
+
function Ce(v) {
|
|
1324
|
+
return j(v) === m;
|
|
1324
1325
|
}
|
|
1325
|
-
function
|
|
1326
|
-
return j(
|
|
1326
|
+
function We(v) {
|
|
1327
|
+
return j(v) === s;
|
|
1327
1328
|
}
|
|
1328
|
-
function
|
|
1329
|
-
return j(
|
|
1329
|
+
function Ye(v) {
|
|
1330
|
+
return j(v) === u;
|
|
1330
1331
|
}
|
|
1331
|
-
function
|
|
1332
|
-
return typeof
|
|
1332
|
+
function Ve(v) {
|
|
1333
|
+
return typeof v == "object" && v !== null && v.$$typeof === r;
|
|
1333
1334
|
}
|
|
1334
|
-
function
|
|
1335
|
-
return j(
|
|
1335
|
+
function tr(v) {
|
|
1336
|
+
return j(v) === p;
|
|
1336
1337
|
}
|
|
1337
|
-
function
|
|
1338
|
-
return j(
|
|
1338
|
+
function nr(v) {
|
|
1339
|
+
return j(v) === o;
|
|
1339
1340
|
}
|
|
1340
|
-
function
|
|
1341
|
-
return j(
|
|
1341
|
+
function _e(v) {
|
|
1342
|
+
return j(v) === x;
|
|
1342
1343
|
}
|
|
1343
|
-
function
|
|
1344
|
-
return j(
|
|
1344
|
+
function we(v) {
|
|
1345
|
+
return j(v) === C;
|
|
1345
1346
|
}
|
|
1346
|
-
function
|
|
1347
|
-
return j(
|
|
1347
|
+
function pe(v) {
|
|
1348
|
+
return j(v) === n;
|
|
1348
1349
|
}
|
|
1349
|
-
function
|
|
1350
|
-
return j(
|
|
1350
|
+
function Te(v) {
|
|
1351
|
+
return j(v) === i;
|
|
1351
1352
|
}
|
|
1352
|
-
function
|
|
1353
|
-
return j(
|
|
1353
|
+
function me(v) {
|
|
1354
|
+
return j(v) === a;
|
|
1354
1355
|
}
|
|
1355
|
-
function
|
|
1356
|
-
return j(
|
|
1356
|
+
function or(v) {
|
|
1357
|
+
return j(v) === d;
|
|
1357
1358
|
}
|
|
1358
|
-
|
|
1359
|
-
}()),
|
|
1359
|
+
D.AsyncMode = l, D.ConcurrentMode = U, D.ContextConsumer = A, D.ContextProvider = Re, D.Element = g, D.ForwardRef = w, D.Fragment = $, D.Lazy = k, D.Memo = L, D.Portal = V, D.Profiler = K, D.StrictMode = ie, D.Suspense = je, D.isAsyncMode = Le, D.isConcurrentMode = Ce, D.isContextConsumer = We, D.isContextProvider = Ye, D.isElement = Ve, D.isForwardRef = tr, D.isFragment = nr, D.isLazy = _e, D.isMemo = we, D.isPortal = pe, D.isProfiler = Te, D.isStrictMode = me, D.isSuspense = or, D.isValidElementType = _, D.typeOf = j;
|
|
1360
|
+
}()), D;
|
|
1360
1361
|
}
|
|
1361
|
-
process.env.NODE_ENV === "production" ?
|
|
1362
|
-
var
|
|
1362
|
+
process.env.NODE_ENV === "production" ? gr.exports = Pn() : gr.exports = On();
|
|
1363
|
+
var kn = gr.exports, ht = kn, $n = {
|
|
1363
1364
|
$$typeof: !0,
|
|
1364
1365
|
render: !0,
|
|
1365
1366
|
defaultProps: !0,
|
|
1366
1367
|
displayName: !0,
|
|
1367
1368
|
propTypes: !0
|
|
1368
|
-
},
|
|
1369
|
+
}, An = {
|
|
1369
1370
|
$$typeof: !0,
|
|
1370
1371
|
compare: !0,
|
|
1371
1372
|
defaultProps: !0,
|
|
1372
1373
|
displayName: !0,
|
|
1373
1374
|
propTypes: !0,
|
|
1374
1375
|
type: !0
|
|
1375
|
-
},
|
|
1376
|
-
ht
|
|
1377
|
-
ht
|
|
1378
|
-
var
|
|
1379
|
-
function
|
|
1376
|
+
}, pt = {};
|
|
1377
|
+
pt[ht.ForwardRef] = $n;
|
|
1378
|
+
pt[ht.Memo] = An;
|
|
1379
|
+
var Mn = !0;
|
|
1380
|
+
function Nn(e, r, n) {
|
|
1380
1381
|
var o = "";
|
|
1381
1382
|
return n.split(" ").forEach(function(a) {
|
|
1382
1383
|
e[a] !== void 0 ? r.push(e[a] + ";") : a && (o += a + " ");
|
|
1383
1384
|
}), o;
|
|
1384
1385
|
}
|
|
1385
|
-
var
|
|
1386
|
+
var mt = function(r, n, o) {
|
|
1386
1387
|
var a = r.key + "-" + n.name;
|
|
1387
1388
|
// we only need to add the styles to the registered cache if the
|
|
1388
1389
|
// class name could be used further down
|
|
@@ -1393,9 +1394,9 @@ var pt = function(r, n, o) {
|
|
|
1393
1394
|
// in node since emotion-server relies on whether a style is in
|
|
1394
1395
|
// the registered cache to know whether a style is global or not
|
|
1395
1396
|
// also, note that this check will be dead code eliminated in the browser
|
|
1396
|
-
|
|
1397
|
-
},
|
|
1398
|
-
|
|
1397
|
+
Mn === !1) && r.registered[a] === void 0 && (r.registered[a] = n.styles);
|
|
1398
|
+
}, In = function(r, n, o) {
|
|
1399
|
+
mt(r, n, o);
|
|
1399
1400
|
var a = r.key + "-" + n.name;
|
|
1400
1401
|
if (r.inserted[n.name] === void 0) {
|
|
1401
1402
|
var i = n;
|
|
@@ -1404,7 +1405,7 @@ var pt = function(r, n, o) {
|
|
|
1404
1405
|
while (i !== void 0);
|
|
1405
1406
|
}
|
|
1406
1407
|
};
|
|
1407
|
-
function
|
|
1408
|
+
function Fn(e) {
|
|
1408
1409
|
for (var r = 0, n, o = 0, a = e.length; a >= 4; ++o, a -= 4)
|
|
1409
1410
|
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
1411
|
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
|
|
@@ -1423,7 +1424,7 @@ function An(e) {
|
|
|
1423
1424
|
return r ^= r >>> 13, r = /* Math.imul(h, m): */
|
|
1424
1425
|
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), ((r ^ r >>> 15) >>> 0).toString(36);
|
|
1425
1426
|
}
|
|
1426
|
-
var
|
|
1427
|
+
var Dn = {
|
|
1427
1428
|
animationIterationCount: 1,
|
|
1428
1429
|
aspectRatio: 1,
|
|
1429
1430
|
borderImageOutset: 1,
|
|
@@ -1472,18 +1473,18 @@ var Mn = {
|
|
|
1472
1473
|
strokeMiterlimit: 1,
|
|
1473
1474
|
strokeOpacity: 1,
|
|
1474
1475
|
strokeWidth: 1
|
|
1475
|
-
},
|
|
1476
|
+
}, jn = /[A-Z]|^ms/g, Ln = /_EMO_([^_]+?)_([^]*?)_EMO_/g, gt = function(r) {
|
|
1476
1477
|
return r.charCodeAt(1) === 45;
|
|
1477
|
-
},
|
|
1478
|
+
}, Hr = function(r) {
|
|
1478
1479
|
return r != null && typeof r != "boolean";
|
|
1479
|
-
},
|
|
1480
|
-
return
|
|
1481
|
-
}),
|
|
1480
|
+
}, ur = /* @__PURE__ */ bn(function(e) {
|
|
1481
|
+
return gt(e) ? e : e.replace(jn, "-$&").toLowerCase();
|
|
1482
|
+
}), Xr = function(r, n) {
|
|
1482
1483
|
switch (r) {
|
|
1483
1484
|
case "animation":
|
|
1484
1485
|
case "animationName":
|
|
1485
1486
|
if (typeof n == "string")
|
|
1486
|
-
return n.replace(
|
|
1487
|
+
return n.replace(Ln, function(o, a, i) {
|
|
1487
1488
|
return oe = {
|
|
1488
1489
|
name: a,
|
|
1489
1490
|
styles: i,
|
|
@@ -1491,9 +1492,9 @@ var Mn = {
|
|
|
1491
1492
|
}, a;
|
|
1492
1493
|
});
|
|
1493
1494
|
}
|
|
1494
|
-
return
|
|
1495
|
+
return Dn[r] !== 1 && !gt(r) && typeof n == "number" && n !== 0 ? n + "px" : n;
|
|
1495
1496
|
};
|
|
1496
|
-
function
|
|
1497
|
+
function Fe(e, r, n) {
|
|
1497
1498
|
if (n == null)
|
|
1498
1499
|
return "";
|
|
1499
1500
|
var o = n;
|
|
@@ -1512,190 +1513,312 @@ function Me(e, r, n) {
|
|
|
1512
1513
|
}, a.name;
|
|
1513
1514
|
var i = n;
|
|
1514
1515
|
if (i.styles !== void 0) {
|
|
1515
|
-
var
|
|
1516
|
-
if (
|
|
1517
|
-
for (;
|
|
1516
|
+
var u = i.next;
|
|
1517
|
+
if (u !== void 0)
|
|
1518
|
+
for (; u !== void 0; )
|
|
1518
1519
|
oe = {
|
|
1519
|
-
name:
|
|
1520
|
-
styles:
|
|
1520
|
+
name: u.name,
|
|
1521
|
+
styles: u.styles,
|
|
1521
1522
|
next: oe
|
|
1522
|
-
},
|
|
1523
|
+
}, u = u.next;
|
|
1523
1524
|
var s = i.styles + ";";
|
|
1524
1525
|
return s;
|
|
1525
1526
|
}
|
|
1526
|
-
return
|
|
1527
|
+
return Wn(e, r, n);
|
|
1527
1528
|
}
|
|
1528
1529
|
case "function": {
|
|
1529
1530
|
if (e !== void 0) {
|
|
1530
|
-
var
|
|
1531
|
-
return oe =
|
|
1531
|
+
var f = oe, m = n(e);
|
|
1532
|
+
return oe = f, Fe(e, r, m);
|
|
1532
1533
|
}
|
|
1533
1534
|
break;
|
|
1534
1535
|
}
|
|
1535
1536
|
}
|
|
1536
|
-
var
|
|
1537
|
-
return
|
|
1537
|
+
var p = n;
|
|
1538
|
+
return p;
|
|
1538
1539
|
}
|
|
1539
|
-
function
|
|
1540
|
+
function Wn(e, r, n) {
|
|
1540
1541
|
var o = "";
|
|
1541
1542
|
if (Array.isArray(n))
|
|
1542
1543
|
for (var a = 0; a < n.length; a++)
|
|
1543
|
-
o +=
|
|
1544
|
+
o += Fe(e, r, n[a]) + ";";
|
|
1544
1545
|
else
|
|
1545
1546
|
for (var i in n) {
|
|
1546
|
-
var
|
|
1547
|
-
if (typeof
|
|
1548
|
-
var s =
|
|
1549
|
-
|
|
1550
|
-
} else if (Array.isArray(
|
|
1551
|
-
for (var
|
|
1552
|
-
|
|
1547
|
+
var u = n[i];
|
|
1548
|
+
if (typeof u != "object") {
|
|
1549
|
+
var s = u;
|
|
1550
|
+
Hr(s) && (o += ur(i) + ":" + Xr(i, s) + ";");
|
|
1551
|
+
} else if (Array.isArray(u) && typeof u[0] == "string" && r == null)
|
|
1552
|
+
for (var f = 0; f < u.length; f++)
|
|
1553
|
+
Hr(u[f]) && (o += ur(i) + ":" + Xr(i, u[f]) + ";");
|
|
1553
1554
|
else {
|
|
1554
|
-
var
|
|
1555
|
+
var m = Fe(e, r, u);
|
|
1555
1556
|
switch (i) {
|
|
1556
1557
|
case "animation":
|
|
1557
1558
|
case "animationName": {
|
|
1558
|
-
o +=
|
|
1559
|
+
o += ur(i) + ":" + m + ";";
|
|
1559
1560
|
break;
|
|
1560
1561
|
}
|
|
1561
1562
|
default:
|
|
1562
|
-
o += i + "{" +
|
|
1563
|
+
o += i + "{" + m + "}";
|
|
1563
1564
|
}
|
|
1564
1565
|
}
|
|
1565
1566
|
}
|
|
1566
1567
|
return o;
|
|
1567
1568
|
}
|
|
1568
|
-
var
|
|
1569
|
-
function
|
|
1569
|
+
var Zr = /label:\s*([^\s;{]+)\s*(;|$)/g, oe;
|
|
1570
|
+
function Yn(e, r, n) {
|
|
1570
1571
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1571
1572
|
return e[0];
|
|
1572
1573
|
var o = !0, a = "";
|
|
1573
1574
|
oe = void 0;
|
|
1574
1575
|
var i = e[0];
|
|
1575
1576
|
if (i == null || i.raw === void 0)
|
|
1576
|
-
o = !1, a +=
|
|
1577
|
+
o = !1, a += Fe(n, r, i);
|
|
1577
1578
|
else {
|
|
1578
|
-
var
|
|
1579
|
-
a +=
|
|
1579
|
+
var u = i;
|
|
1580
|
+
a += u[0];
|
|
1580
1581
|
}
|
|
1581
1582
|
for (var s = 1; s < e.length; s++)
|
|
1582
|
-
if (a +=
|
|
1583
|
-
var
|
|
1584
|
-
a +=
|
|
1585
|
-
}
|
|
1586
|
-
|
|
1587
|
-
for (var
|
|
1588
|
-
|
|
1589
|
-
var
|
|
1583
|
+
if (a += Fe(n, r, e[s]), o) {
|
|
1584
|
+
var f = i;
|
|
1585
|
+
a += f[s];
|
|
1586
|
+
}
|
|
1587
|
+
Zr.lastIndex = 0;
|
|
1588
|
+
for (var m = "", p; (p = Zr.exec(a)) !== null; )
|
|
1589
|
+
m += "-" + p[1];
|
|
1590
|
+
var d = Fn(a) + m;
|
|
1590
1591
|
return {
|
|
1591
|
-
name:
|
|
1592
|
+
name: d,
|
|
1592
1593
|
styles: a,
|
|
1593
1594
|
next: oe
|
|
1594
1595
|
};
|
|
1595
1596
|
}
|
|
1596
|
-
var
|
|
1597
|
+
var Vn = function(r) {
|
|
1597
1598
|
return r();
|
|
1598
|
-
},
|
|
1599
|
+
}, Un = ce.useInsertionEffect ? ce.useInsertionEffect : !1, zn = Un || Vn, vt = /* @__PURE__ */ ce.createContext(
|
|
1599
1600
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1600
1601
|
// because this module is primarily intended for the browser and node
|
|
1601
1602
|
// but it's also required in react native and similar environments sometimes
|
|
1602
1603
|
// and we could have a special build just for that
|
|
1603
1604
|
// but this is much easier and the native packages
|
|
1604
1605
|
// might use a different theme context in the future anyway
|
|
1605
|
-
typeof HTMLElement < "u" ? /* @__PURE__ */
|
|
1606
|
+
typeof HTMLElement < "u" ? /* @__PURE__ */ Tn({
|
|
1606
1607
|
key: "css"
|
|
1607
1608
|
}) : null
|
|
1608
1609
|
);
|
|
1609
|
-
|
|
1610
|
-
var
|
|
1610
|
+
vt.Provider;
|
|
1611
|
+
var Gn = function(r) {
|
|
1611
1612
|
return /* @__PURE__ */ Yt(function(n, o) {
|
|
1612
|
-
var a =
|
|
1613
|
+
var a = Vt(vt);
|
|
1613
1614
|
return r(n, a, o);
|
|
1614
1615
|
});
|
|
1615
|
-
},
|
|
1616
|
+
}, qn = /* @__PURE__ */ ce.createContext({}), Sr = {}.hasOwnProperty, vr = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Jn = function(r, n) {
|
|
1616
1617
|
var o = {};
|
|
1617
1618
|
for (var a in n)
|
|
1618
|
-
|
|
1619
|
-
return o[
|
|
1620
|
-
},
|
|
1619
|
+
Sr.call(n, a) && (o[a] = n[a]);
|
|
1620
|
+
return o[vr] = r, o;
|
|
1621
|
+
}, Bn = function(r) {
|
|
1621
1622
|
var n = r.cache, o = r.serialized, a = r.isStringTag;
|
|
1622
|
-
return
|
|
1623
|
-
return
|
|
1623
|
+
return mt(n, o, a), zn(function() {
|
|
1624
|
+
return In(n, o, a);
|
|
1624
1625
|
}), null;
|
|
1625
|
-
},
|
|
1626
|
+
}, Kn = /* @__PURE__ */ Gn(function(e, r, n) {
|
|
1626
1627
|
var o = e.css;
|
|
1627
1628
|
typeof o == "string" && r.registered[o] !== void 0 && (o = r.registered[o]);
|
|
1628
|
-
var a = e[
|
|
1629
|
-
typeof e.className == "string" ?
|
|
1630
|
-
var s =
|
|
1631
|
-
|
|
1632
|
-
var
|
|
1633
|
-
for (var
|
|
1634
|
-
|
|
1635
|
-
return
|
|
1629
|
+
var a = e[vr], i = [o], u = "";
|
|
1630
|
+
typeof e.className == "string" ? u = Nn(r.registered, i, e.className) : e.className != null && (u = e.className + " ");
|
|
1631
|
+
var s = Yn(i, void 0, ce.useContext(qn));
|
|
1632
|
+
u += r.key + "-" + s.name;
|
|
1633
|
+
var f = {};
|
|
1634
|
+
for (var m in e)
|
|
1635
|
+
Sr.call(e, m) && m !== "css" && m !== vr && (f[m] = e[m]);
|
|
1636
|
+
return f.className = u, n && (f.ref = n), /* @__PURE__ */ ce.createElement(ce.Fragment, null, /* @__PURE__ */ ce.createElement(Bn, {
|
|
1636
1637
|
cache: r,
|
|
1637
1638
|
serialized: s,
|
|
1638
1639
|
isStringTag: typeof a == "string"
|
|
1639
|
-
}), /* @__PURE__ */
|
|
1640
|
-
}),
|
|
1641
|
-
return
|
|
1640
|
+
}), /* @__PURE__ */ ce.createElement(a, f));
|
|
1641
|
+
}), Hn = Kn, rr = function(r, n, o) {
|
|
1642
|
+
return Sr.call(n, "css") ? zr.jsx(Hn, Jn(r, n), o) : zr.jsx(r, n, o);
|
|
1642
1643
|
};
|
|
1643
|
-
function
|
|
1644
|
+
function Xn(e) {
|
|
1644
1645
|
switch (e.toLowerCase()) {
|
|
1645
1646
|
case "sql":
|
|
1646
|
-
return
|
|
1647
|
+
return nt();
|
|
1647
1648
|
case "json":
|
|
1648
|
-
return
|
|
1649
|
+
return ot();
|
|
1649
1650
|
default:
|
|
1650
1651
|
return [];
|
|
1651
1652
|
}
|
|
1652
1653
|
}
|
|
1653
|
-
function
|
|
1654
|
+
function Zn(e) {
|
|
1654
1655
|
return ["sql", "json"].includes(e.toLowerCase());
|
|
1655
1656
|
}
|
|
1656
|
-
function
|
|
1657
|
-
return
|
|
1657
|
+
function Qn(e = {}) {
|
|
1658
|
+
return Ut(e);
|
|
1658
1659
|
}
|
|
1659
|
-
function
|
|
1660
|
-
return [
|
|
1660
|
+
function Eo(e) {
|
|
1661
|
+
return [zt(), Gt(e)];
|
|
1661
1662
|
}
|
|
1662
|
-
function
|
|
1663
|
-
return
|
|
1663
|
+
function eo() {
|
|
1664
|
+
return Me.of([dr]);
|
|
1664
1665
|
}
|
|
1665
|
-
const
|
|
1666
|
+
const So = [eo(), Qn()], ro = at.define([{
|
|
1667
|
+
tag: W.keyword,
|
|
1668
|
+
color: "#1a1aa6",
|
|
1669
|
+
fontWeight: "bold"
|
|
1670
|
+
}, {
|
|
1671
|
+
tag: W.comment,
|
|
1672
|
+
color: "#008000",
|
|
1673
|
+
fontStyle: "italic"
|
|
1674
|
+
}, {
|
|
1675
|
+
tag: W.string,
|
|
1676
|
+
color: "#a31515"
|
|
1677
|
+
}, {
|
|
1678
|
+
tag: W.number,
|
|
1679
|
+
color: "#098658"
|
|
1680
|
+
}, {
|
|
1681
|
+
tag: W.operator,
|
|
1682
|
+
color: "#777777"
|
|
1683
|
+
}, {
|
|
1684
|
+
tag: W.propertyName,
|
|
1685
|
+
color: "#0451a5"
|
|
1686
|
+
}, {
|
|
1687
|
+
tag: W.variableName,
|
|
1688
|
+
color: "#001080"
|
|
1689
|
+
}, {
|
|
1690
|
+
tag: W.definition(W.variableName),
|
|
1691
|
+
color: "#1a1aa6"
|
|
1692
|
+
}, {
|
|
1693
|
+
tag: W.typeName,
|
|
1694
|
+
color: "#267f99"
|
|
1695
|
+
}, {
|
|
1696
|
+
tag: W.className,
|
|
1697
|
+
color: "#267f99"
|
|
1698
|
+
}, {
|
|
1699
|
+
tag: W.meta,
|
|
1700
|
+
color: "#5c5c5c"
|
|
1701
|
+
}, {
|
|
1702
|
+
tag: W.regexp,
|
|
1703
|
+
color: "#811f3f"
|
|
1704
|
+
}, {
|
|
1705
|
+
tag: W.link,
|
|
1706
|
+
color: "#0563c1",
|
|
1707
|
+
textDecoration: "underline"
|
|
1708
|
+
}]), Qr = [te.theme({
|
|
1666
1709
|
"&": {
|
|
1667
1710
|
backgroundColor: "#ffffff",
|
|
1668
|
-
color: "#333333"
|
|
1711
|
+
color: "#333333",
|
|
1712
|
+
fontSize: "14px",
|
|
1713
|
+
height: "100%"
|
|
1714
|
+
},
|
|
1715
|
+
".cm-scroller": {
|
|
1716
|
+
fontFamily: '"Menlo", "Monaco", "Courier New", monospace',
|
|
1717
|
+
overflow: "auto"
|
|
1718
|
+
},
|
|
1719
|
+
".cm-content": {
|
|
1720
|
+
padding: "8px 0",
|
|
1721
|
+
caretColor: "#333",
|
|
1722
|
+
textAlign: "left"
|
|
1669
1723
|
},
|
|
1670
1724
|
".cm-gutters": {
|
|
1671
|
-
backgroundColor: "#
|
|
1672
|
-
color: "#
|
|
1673
|
-
|
|
1725
|
+
backgroundColor: "#f8f9fa",
|
|
1726
|
+
color: "#6e7781",
|
|
1727
|
+
borderRight: "1px solid #ddd"
|
|
1728
|
+
},
|
|
1729
|
+
".cm-lineNumbers": {
|
|
1730
|
+
minWidth: "40px"
|
|
1731
|
+
},
|
|
1732
|
+
".cm-lineNumbers .cm-gutterElement": {
|
|
1733
|
+
padding: "0 8px 0 4px",
|
|
1734
|
+
textAlign: "right",
|
|
1735
|
+
fontSize: "12px"
|
|
1674
1736
|
},
|
|
1675
1737
|
".cm-activeLine": {
|
|
1676
|
-
backgroundColor: "rgba(0, 0, 0, 0.
|
|
1738
|
+
backgroundColor: "rgba(0, 0, 0, 0.04)"
|
|
1677
1739
|
},
|
|
1678
1740
|
".cm-activeLineGutter": {
|
|
1679
|
-
backgroundColor: "rgba(0, 0, 0, 0.
|
|
1741
|
+
backgroundColor: "rgba(0, 0, 0, 0.04)"
|
|
1680
1742
|
},
|
|
1681
1743
|
".cm-selectionMatch": {
|
|
1682
|
-
backgroundColor: "rgba(
|
|
1744
|
+
backgroundColor: "rgba(181, 213, 255, 0.3)"
|
|
1683
1745
|
},
|
|
1684
1746
|
"&.cm-focused .cm-cursor": {
|
|
1685
1747
|
borderLeftColor: "#333333"
|
|
1686
1748
|
},
|
|
1687
1749
|
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": {
|
|
1688
|
-
backgroundColor: "rgba(
|
|
1750
|
+
backgroundColor: "rgba(181, 213, 255, 0.5)"
|
|
1689
1751
|
}
|
|
1690
|
-
}),
|
|
1752
|
+
}), Ke(ro)], to = at.define([{
|
|
1753
|
+
tag: W.keyword,
|
|
1754
|
+
color: "#569cd6",
|
|
1755
|
+
fontWeight: "bold"
|
|
1756
|
+
}, {
|
|
1757
|
+
tag: W.comment,
|
|
1758
|
+
color: "#6A9955",
|
|
1759
|
+
fontStyle: "italic"
|
|
1760
|
+
}, {
|
|
1761
|
+
tag: W.string,
|
|
1762
|
+
color: "#ce9178"
|
|
1763
|
+
}, {
|
|
1764
|
+
tag: W.number,
|
|
1765
|
+
color: "#b5cea8"
|
|
1766
|
+
}, {
|
|
1767
|
+
tag: W.operator,
|
|
1768
|
+
color: "#d4d4d4"
|
|
1769
|
+
}, {
|
|
1770
|
+
tag: W.propertyName,
|
|
1771
|
+
color: "#9cdcfe"
|
|
1772
|
+
}, {
|
|
1773
|
+
tag: W.variableName,
|
|
1774
|
+
color: "#9cdcfe"
|
|
1775
|
+
}, {
|
|
1776
|
+
tag: W.definition(W.variableName),
|
|
1777
|
+
color: "#4fc1ff"
|
|
1778
|
+
}, {
|
|
1779
|
+
tag: W.typeName,
|
|
1780
|
+
color: "#4ec9b0"
|
|
1781
|
+
}, {
|
|
1782
|
+
tag: W.className,
|
|
1783
|
+
color: "#4ec9b0"
|
|
1784
|
+
}, {
|
|
1785
|
+
tag: W.meta,
|
|
1786
|
+
color: "#d4d4d4"
|
|
1787
|
+
}, {
|
|
1788
|
+
tag: W.regexp,
|
|
1789
|
+
color: "#d16969"
|
|
1790
|
+
}, {
|
|
1791
|
+
tag: W.link,
|
|
1792
|
+
color: "#4e94ce",
|
|
1793
|
+
textDecoration: "underline"
|
|
1794
|
+
}]), no = [te.theme({
|
|
1691
1795
|
"&": {
|
|
1692
1796
|
backgroundColor: "#1e1e1e",
|
|
1693
|
-
color: "#d4d4d4"
|
|
1797
|
+
color: "#d4d4d4",
|
|
1798
|
+
fontSize: "14px",
|
|
1799
|
+
height: "100%"
|
|
1800
|
+
},
|
|
1801
|
+
".cm-scroller": {
|
|
1802
|
+
fontFamily: '"Menlo", "Monaco", "Courier New", monospace',
|
|
1803
|
+
overflow: "auto"
|
|
1804
|
+
},
|
|
1805
|
+
".cm-content": {
|
|
1806
|
+
padding: "8px 0",
|
|
1807
|
+
caretColor: "#d4d4d4",
|
|
1808
|
+
textAlign: "left"
|
|
1694
1809
|
},
|
|
1695
1810
|
".cm-gutters": {
|
|
1696
|
-
backgroundColor: "#
|
|
1697
|
-
color: "#
|
|
1698
|
-
|
|
1811
|
+
backgroundColor: "#252526",
|
|
1812
|
+
color: "#858585",
|
|
1813
|
+
borderRight: "1px solid #404040"
|
|
1814
|
+
},
|
|
1815
|
+
".cm-lineNumbers": {
|
|
1816
|
+
minWidth: "40px"
|
|
1817
|
+
},
|
|
1818
|
+
".cm-lineNumbers .cm-gutterElement": {
|
|
1819
|
+
padding: "0 8px 0 4px",
|
|
1820
|
+
textAlign: "right",
|
|
1821
|
+
fontSize: "12px"
|
|
1699
1822
|
},
|
|
1700
1823
|
".cm-activeLine": {
|
|
1701
1824
|
backgroundColor: "rgba(255, 255, 255, 0.07)"
|
|
@@ -1704,7 +1827,7 @@ const po = [Hn(), Kn()], Xr = te.theme({
|
|
|
1704
1827
|
backgroundColor: "rgba(255, 255, 255, 0.07)"
|
|
1705
1828
|
},
|
|
1706
1829
|
".cm-selectionMatch": {
|
|
1707
|
-
backgroundColor: "rgba(255, 255, 255, 0.
|
|
1830
|
+
backgroundColor: "rgba(255, 255, 255, 0.1)"
|
|
1708
1831
|
},
|
|
1709
1832
|
"&.cm-focused .cm-cursor": {
|
|
1710
1833
|
borderLeftColor: "#d4d4d4"
|
|
@@ -1712,18 +1835,18 @@ const po = [Hn(), Kn()], Xr = te.theme({
|
|
|
1712
1835
|
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": {
|
|
1713
1836
|
backgroundColor: "rgba(255, 255, 255, 0.1)"
|
|
1714
1837
|
}
|
|
1715
|
-
});
|
|
1716
|
-
function
|
|
1838
|
+
}), Ke(to)];
|
|
1839
|
+
function oo(e) {
|
|
1717
1840
|
switch (e) {
|
|
1718
1841
|
case "light":
|
|
1719
|
-
return
|
|
1842
|
+
return Qr;
|
|
1720
1843
|
case "dark":
|
|
1721
|
-
return
|
|
1844
|
+
return no;
|
|
1722
1845
|
default:
|
|
1723
|
-
return
|
|
1846
|
+
return Qr;
|
|
1724
1847
|
}
|
|
1725
1848
|
}
|
|
1726
|
-
const
|
|
1849
|
+
const et = (e) => {
|
|
1727
1850
|
const r = {
|
|
1728
1851
|
value: "",
|
|
1729
1852
|
readOnlyRanges: []
|
|
@@ -1733,32 +1856,32 @@ const Zr = (e) => {
|
|
|
1733
1856
|
const {
|
|
1734
1857
|
content: a,
|
|
1735
1858
|
editable: i
|
|
1736
|
-
} = o,
|
|
1737
|
-
`), s = n,
|
|
1859
|
+
} = o, u = a.replace(/\r\n/g, `
|
|
1860
|
+
`), s = n, f = s + u.length;
|
|
1738
1861
|
r.value += a, i || r.readOnlyRanges.push({
|
|
1739
1862
|
start: s,
|
|
1740
|
-
end:
|
|
1741
|
-
}), n =
|
|
1863
|
+
end: f
|
|
1864
|
+
}), n = f;
|
|
1742
1865
|
}), r;
|
|
1743
|
-
},
|
|
1866
|
+
}, Xe = qt.define(), rt = Jt.define({
|
|
1744
1867
|
create() {
|
|
1745
|
-
return
|
|
1868
|
+
return lr.none;
|
|
1746
1869
|
},
|
|
1747
1870
|
update(e, r) {
|
|
1748
1871
|
e = e.map(r.changes);
|
|
1749
1872
|
for (const n of r.effects)
|
|
1750
|
-
if (n.is(
|
|
1751
|
-
return console.log(2939),
|
|
1873
|
+
if (n.is(Xe))
|
|
1874
|
+
return console.log(2939), yt(n.value);
|
|
1752
1875
|
return r.docChanged, e;
|
|
1753
1876
|
},
|
|
1754
1877
|
provide(e) {
|
|
1755
1878
|
return te.decorations.from(e);
|
|
1756
1879
|
}
|
|
1757
1880
|
});
|
|
1758
|
-
function
|
|
1881
|
+
function yt(e) {
|
|
1759
1882
|
const r = [];
|
|
1760
1883
|
return console.log(e, 9999299), e.forEach((n) => {
|
|
1761
|
-
n.start < n.end && r.push(
|
|
1884
|
+
n.start < n.end && r.push(lr.mark({
|
|
1762
1885
|
inclusive: !0,
|
|
1763
1886
|
attributes: {
|
|
1764
1887
|
class: "cm-readOnly",
|
|
@@ -1767,18 +1890,18 @@ function gt(e) {
|
|
|
1767
1890
|
// 设置较低的优先级,确保语法高亮装饰可以覆盖
|
|
1768
1891
|
priority: -100
|
|
1769
1892
|
}).range(n.start, n.end));
|
|
1770
|
-
}),
|
|
1893
|
+
}), lr.set(r);
|
|
1771
1894
|
}
|
|
1772
|
-
const
|
|
1773
|
-
function
|
|
1895
|
+
const Rr = /* @__PURE__ */ new WeakMap();
|
|
1896
|
+
function ao(e) {
|
|
1774
1897
|
let r = e.map((n) => ({
|
|
1775
1898
|
...n
|
|
1776
1899
|
}));
|
|
1777
1900
|
return [
|
|
1778
1901
|
// 添加状态字段
|
|
1779
|
-
|
|
1902
|
+
rt.init(() => yt(r)),
|
|
1780
1903
|
// 添加按键映射,专门处理回车键
|
|
1781
|
-
|
|
1904
|
+
Me.of([{
|
|
1782
1905
|
key: "Enter",
|
|
1783
1906
|
run: (n) => {
|
|
1784
1907
|
const o = n.state.selection.main, {
|
|
@@ -1790,13 +1913,13 @@ function Qn(e) {
|
|
|
1790
1913
|
if (a < s.end && i > s.start)
|
|
1791
1914
|
return !1;
|
|
1792
1915
|
}
|
|
1793
|
-
let
|
|
1916
|
+
let u = !1;
|
|
1794
1917
|
for (const s of r)
|
|
1795
1918
|
if (a > s.start && a < s.end) {
|
|
1796
|
-
|
|
1919
|
+
u = !0;
|
|
1797
1920
|
break;
|
|
1798
1921
|
}
|
|
1799
|
-
return
|
|
1922
|
+
return u ? !1 : (n.dispatch({
|
|
1800
1923
|
changes: {
|
|
1801
1924
|
from: a,
|
|
1802
1925
|
to: i,
|
|
@@ -1810,23 +1933,23 @@ function Qn(e) {
|
|
|
1810
1933
|
}
|
|
1811
1934
|
}]),
|
|
1812
1935
|
// 添加事务过滤器,阻止只读区域的编辑
|
|
1813
|
-
|
|
1936
|
+
he.transactionFilter.of((n) => {
|
|
1814
1937
|
if (!n.docChanged || n.isUserEvent("input.type.Enter") || n.isUserEvent("input.enter"))
|
|
1815
1938
|
return n;
|
|
1816
1939
|
let o = !1;
|
|
1817
|
-
return n.changes.iterChanges((a, i,
|
|
1818
|
-
if (!(n.newDoc.sliceString(
|
|
1940
|
+
return n.changes.iterChanges((a, i, u, s) => {
|
|
1941
|
+
if (!(n.newDoc.sliceString(u, s) === `
|
|
1819
1942
|
` && a === i)) {
|
|
1820
|
-
for (const
|
|
1943
|
+
for (const p of r)
|
|
1821
1944
|
if (a === i) {
|
|
1822
|
-
if (a >
|
|
1945
|
+
if (a > p.start && a < p.end) {
|
|
1823
1946
|
o = !0;
|
|
1824
1947
|
break;
|
|
1825
1948
|
}
|
|
1826
1949
|
} else if (
|
|
1827
1950
|
// 删除或替换操作
|
|
1828
|
-
a <
|
|
1829
|
-
a ===
|
|
1951
|
+
a < p.end && i > p.start || // 处理边界情况:删除操作正好落在只读区域的开始或结束位置
|
|
1952
|
+
a === p.start && i > a || i === p.end && a < i
|
|
1830
1953
|
) {
|
|
1831
1954
|
o = !0;
|
|
1832
1955
|
break;
|
|
@@ -1837,23 +1960,23 @@ function Qn(e) {
|
|
|
1837
1960
|
// 动态更新只读区域的装饰
|
|
1838
1961
|
te.updateListener.of((n) => {
|
|
1839
1962
|
if (n.docChanged) {
|
|
1840
|
-
const o =
|
|
1841
|
-
!
|
|
1842
|
-
effects:
|
|
1963
|
+
const o = so(r, n);
|
|
1964
|
+
!io(r, o) ? (r = o, Rr.set(n.view, o), n.view.dispatch({
|
|
1965
|
+
effects: Xe.of(o)
|
|
1843
1966
|
})) : n.view.dispatch({
|
|
1844
|
-
effects:
|
|
1967
|
+
effects: Xe.of(o)
|
|
1845
1968
|
});
|
|
1846
1969
|
}
|
|
1847
1970
|
}),
|
|
1848
1971
|
// 添加一个延迟执行的额外更新,以确保在文档变化后能重新计算语法高亮
|
|
1849
1972
|
te.updateListener.of((n) => {
|
|
1850
1973
|
n.docChanged && setTimeout(() => {
|
|
1851
|
-
n.view.state.field(
|
|
1974
|
+
n.view.state.field(rt, !1) && n.view.dispatch({});
|
|
1852
1975
|
}, 10);
|
|
1853
1976
|
})
|
|
1854
1977
|
];
|
|
1855
1978
|
}
|
|
1856
|
-
function
|
|
1979
|
+
function io(e, r) {
|
|
1857
1980
|
if (e.length !== r.length)
|
|
1858
1981
|
return !1;
|
|
1859
1982
|
for (let n = 0; n < e.length; n++)
|
|
@@ -1861,356 +1984,407 @@ function eo(e, r) {
|
|
|
1861
1984
|
return !1;
|
|
1862
1985
|
return !0;
|
|
1863
1986
|
}
|
|
1864
|
-
function
|
|
1987
|
+
function so(e, r) {
|
|
1865
1988
|
var a;
|
|
1866
1989
|
if (!r.docChanged)
|
|
1867
1990
|
return e;
|
|
1868
1991
|
let n = !1;
|
|
1869
1992
|
const o = e.map((i) => {
|
|
1870
|
-
const
|
|
1993
|
+
const u = {
|
|
1871
1994
|
...i
|
|
1872
1995
|
};
|
|
1873
|
-
return r.changes.iterChanges((s,
|
|
1874
|
-
const
|
|
1875
|
-
if (s === 0 && (n = !0), s === 0 &&
|
|
1876
|
-
|
|
1996
|
+
return r.changes.iterChanges((s, f, m, p) => {
|
|
1997
|
+
const d = p - m, P = f - s, C = d - P;
|
|
1998
|
+
if (s === 0 && (n = !0), s === 0 && d > 0 && i.start === 0) {
|
|
1999
|
+
u.start = d, u.end += C;
|
|
1877
2000
|
return;
|
|
1878
2001
|
}
|
|
1879
|
-
if (
|
|
1880
|
-
|
|
1881
|
-
else if (s >= i.start && s < i.end &&
|
|
1882
|
-
|
|
1883
|
-
else if (!(s >= i.start &&
|
|
1884
|
-
if (s < i.end &&
|
|
1885
|
-
const
|
|
1886
|
-
|
|
2002
|
+
if (f <= i.start)
|
|
2003
|
+
u.start += C, u.end += C;
|
|
2004
|
+
else if (s >= i.start && s < i.end && f >= i.end)
|
|
2005
|
+
u.end = s;
|
|
2006
|
+
else if (!(s >= i.start && f <= i.end)) {
|
|
2007
|
+
if (s < i.end && f > i.end) {
|
|
2008
|
+
const x = i.end - s;
|
|
2009
|
+
u.end = s + Math.min(x, d);
|
|
1887
2010
|
}
|
|
1888
2011
|
}
|
|
1889
|
-
}),
|
|
2012
|
+
}), u;
|
|
1890
2013
|
});
|
|
1891
2014
|
if (n && o.length > 0) {
|
|
1892
2015
|
const i = ((a = r.changes.newDoc) == null ? void 0 : a.toString()) || "";
|
|
1893
|
-
let
|
|
2016
|
+
let u = 0;
|
|
1894
2017
|
for (let s = 0; s < i.length && /\s/.test(i[s]); s++)
|
|
1895
|
-
|
|
1896
|
-
o[0].start === 0 &&
|
|
2018
|
+
u++;
|
|
2019
|
+
o[0].start === 0 && u > 0 && (o[0].start = u);
|
|
1897
2020
|
}
|
|
1898
2021
|
return o.filter((i) => i.start < i.end);
|
|
1899
2022
|
}
|
|
1900
|
-
function
|
|
1901
|
-
return
|
|
2023
|
+
function co(e) {
|
|
2024
|
+
return Rr.get(e) || [];
|
|
1902
2025
|
}
|
|
1903
|
-
function
|
|
2026
|
+
function ue(e, r) {
|
|
1904
2027
|
const n = r.map((o) => ({
|
|
1905
2028
|
...o
|
|
1906
2029
|
}));
|
|
1907
|
-
|
|
1908
|
-
effects:
|
|
2030
|
+
Rr.set(e, n), e.dispatch({
|
|
2031
|
+
effects: Xe.of(n)
|
|
1909
2032
|
}), setTimeout(() => {
|
|
1910
2033
|
e.dom && document.contains(e.dom) && e.dispatch({});
|
|
1911
2034
|
}, 10);
|
|
1912
2035
|
}
|
|
1913
|
-
const
|
|
2036
|
+
const xr = ({
|
|
1914
2037
|
value: e,
|
|
1915
2038
|
onChange: r,
|
|
1916
2039
|
extensions: n = [],
|
|
1917
2040
|
height: o = "300px",
|
|
1918
2041
|
disabled: a = !1,
|
|
1919
2042
|
className: i = "",
|
|
1920
|
-
style:
|
|
2043
|
+
style: u = {},
|
|
1921
2044
|
placeholder: s = "",
|
|
1922
|
-
|
|
2045
|
+
showLineNumbers: f = !0,
|
|
2046
|
+
onEditorViewCreated: m
|
|
1923
2047
|
}) => {
|
|
1924
|
-
const p =
|
|
1925
|
-
return
|
|
2048
|
+
const p = fe(null), d = fe();
|
|
2049
|
+
return se(() => {
|
|
1926
2050
|
if (!p.current) return;
|
|
1927
|
-
const
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
2051
|
+
const P = [
|
|
2052
|
+
Me.of([dr]),
|
|
2053
|
+
te.lineWrapping,
|
|
2054
|
+
Ke(Yr),
|
|
2055
|
+
he.allowMultipleSelections.of(!0),
|
|
2056
|
+
s ? Lr(s) : [],
|
|
2057
|
+
// 行号功能,根据配置决定是否启用
|
|
2058
|
+
f ? Wr() : [],
|
|
2059
|
+
te.updateListener.of((R) => {
|
|
2060
|
+
if (R.docChanged && r) {
|
|
2061
|
+
const y = {
|
|
2062
|
+
value: R.state.doc.toString(),
|
|
2063
|
+
readOnlyRanges: []
|
|
2064
|
+
// 基础编辑器没有只读区域逻辑,由特定编辑器实现
|
|
2065
|
+
};
|
|
2066
|
+
r(y);
|
|
2067
|
+
}
|
|
2068
|
+
})
|
|
2069
|
+
];
|
|
2070
|
+
a && P.push(he.readOnly.of(!0));
|
|
2071
|
+
const C = he.create({
|
|
1939
2072
|
doc: e,
|
|
1940
|
-
extensions: [...
|
|
1941
|
-
}),
|
|
1942
|
-
state:
|
|
2073
|
+
extensions: [...P, ...n]
|
|
2074
|
+
}), x = new te({
|
|
2075
|
+
state: C,
|
|
1943
2076
|
parent: p.current
|
|
1944
2077
|
});
|
|
1945
|
-
return
|
|
1946
|
-
var
|
|
1947
|
-
(
|
|
2078
|
+
return d.current = x, m && m(x), () => {
|
|
2079
|
+
var R;
|
|
2080
|
+
(R = d.current) == null || R.destroy();
|
|
1948
2081
|
};
|
|
1949
|
-
}, []),
|
|
1950
|
-
|
|
2082
|
+
}, []), se(() => {
|
|
2083
|
+
d.current && e !== d.current.state.doc.toString() && d.current.dispatch({
|
|
1951
2084
|
changes: {
|
|
1952
2085
|
from: 0,
|
|
1953
|
-
to:
|
|
2086
|
+
to: d.current.state.doc.length,
|
|
1954
2087
|
insert: e
|
|
1955
2088
|
}
|
|
1956
2089
|
});
|
|
1957
|
-
}, [e]),
|
|
1958
|
-
if (!
|
|
1959
|
-
const
|
|
1960
|
-
|
|
1961
|
-
const
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
2090
|
+
}, [e]), se(() => {
|
|
2091
|
+
if (!d.current || !p.current) return;
|
|
2092
|
+
const P = d.current.state.doc.toString();
|
|
2093
|
+
d.current.destroy();
|
|
2094
|
+
const C = [
|
|
2095
|
+
Me.of([dr]),
|
|
2096
|
+
te.lineWrapping,
|
|
2097
|
+
Ke(Yr),
|
|
2098
|
+
he.allowMultipleSelections.of(!0),
|
|
2099
|
+
s ? Lr(s) : [],
|
|
2100
|
+
// 行号功能,根据配置决定是否启用
|
|
2101
|
+
f ? Wr() : [],
|
|
2102
|
+
te.updateListener.of((y) => {
|
|
2103
|
+
if (y.docChanged && r) {
|
|
2104
|
+
const S = {
|
|
2105
|
+
value: y.state.doc.toString(),
|
|
2106
|
+
readOnlyRanges: []
|
|
2107
|
+
// 基础编辑器没有只读区域逻辑,由特定编辑器实现
|
|
2108
|
+
};
|
|
2109
|
+
r(S);
|
|
2110
|
+
}
|
|
2111
|
+
})
|
|
2112
|
+
];
|
|
2113
|
+
a && C.push(he.readOnly.of(!0));
|
|
2114
|
+
const x = he.create({
|
|
2115
|
+
doc: P,
|
|
2116
|
+
extensions: [...C, ...n]
|
|
2117
|
+
}), R = new te({
|
|
2118
|
+
state: x,
|
|
1977
2119
|
parent: p.current
|
|
1978
2120
|
});
|
|
1979
|
-
|
|
1980
|
-
}, [a]), /* @__PURE__ */
|
|
2121
|
+
d.current = R, m && m(R);
|
|
2122
|
+
}, [a, f]), /* @__PURE__ */ rr("div", { ref: p, className: `senyao-editor ${a ? "disabled" : ""} ${i}`, style: {
|
|
1981
2123
|
height: o,
|
|
1982
|
-
...
|
|
2124
|
+
...u
|
|
1983
2125
|
} });
|
|
1984
|
-
},
|
|
2126
|
+
}, Ro = ({
|
|
1985
2127
|
value: e,
|
|
1986
2128
|
onChange: r,
|
|
1987
2129
|
language: n = "json",
|
|
1988
2130
|
extensions: o = [],
|
|
1989
2131
|
theme: a = "light",
|
|
1990
|
-
|
|
2132
|
+
showLineNumbers: i = !0,
|
|
2133
|
+
...u
|
|
1991
2134
|
}) => {
|
|
1992
|
-
const
|
|
1993
|
-
const
|
|
1994
|
-
return [
|
|
2135
|
+
const s = Be(() => {
|
|
2136
|
+
const f = Zn(n) ? Xn(n) : [], m = oo(a);
|
|
2137
|
+
return [f, m, ...o];
|
|
1995
2138
|
}, [n, o, a]);
|
|
1996
|
-
return /* @__PURE__ */
|
|
1997
|
-
},
|
|
2139
|
+
return /* @__PURE__ */ rr(xr, { value: e, onChange: r, extensions: s, showLineNumbers: i, ...u });
|
|
2140
|
+
}, xo = ({
|
|
1998
2141
|
value: e,
|
|
1999
2142
|
onChange: r,
|
|
2000
2143
|
extensions: n = [],
|
|
2001
2144
|
readOnlyRanges: o = [],
|
|
2002
2145
|
manageReadOnlyRanges: a = !0,
|
|
2003
|
-
|
|
2146
|
+
showLineNumbers: i = !0,
|
|
2147
|
+
...u
|
|
2004
2148
|
}) => {
|
|
2005
|
-
const
|
|
2006
|
-
|
|
2007
|
-
if (a && o.length > 0 && !
|
|
2008
|
-
const
|
|
2009
|
-
let
|
|
2010
|
-
for (let
|
|
2011
|
-
const
|
|
2012
|
-
|
|
2013
|
-
content: e.substring(
|
|
2149
|
+
const s = fe(null), [f, m] = jr(o), p = fe(e), [d, P] = jr(null), C = fe(!1), x = fe(/* @__PURE__ */ new Map()), R = fe(!1);
|
|
2150
|
+
se(() => {
|
|
2151
|
+
if (a && o.length > 0 && !d) {
|
|
2152
|
+
const g = [];
|
|
2153
|
+
let w = 0;
|
|
2154
|
+
for (let $ = 0; $ < o.length; $++) {
|
|
2155
|
+
const k = o[$];
|
|
2156
|
+
k.start > w && g.push({
|
|
2157
|
+
content: e.substring(w, k.start),
|
|
2014
2158
|
editable: !0
|
|
2015
|
-
}),
|
|
2016
|
-
content: e.substring(
|
|
2159
|
+
}), g.push({
|
|
2160
|
+
content: e.substring(k.start, k.end),
|
|
2017
2161
|
editable: !1
|
|
2018
|
-
}),
|
|
2162
|
+
}), w = k.end;
|
|
2019
2163
|
}
|
|
2020
|
-
|
|
2021
|
-
content: e.substring(
|
|
2164
|
+
w < e.length && g.push({
|
|
2165
|
+
content: e.substring(w),
|
|
2022
2166
|
editable: !0
|
|
2023
|
-
}), g
|
|
2167
|
+
}), P(g);
|
|
2024
2168
|
}
|
|
2025
|
-
}, [a, o, e,
|
|
2169
|
+
}, [a, o, e, d]), se(() => {
|
|
2026
2170
|
if (e) {
|
|
2027
|
-
const
|
|
2028
|
-
|
|
2029
|
-
const
|
|
2030
|
-
|
|
2031
|
-
}),
|
|
2171
|
+
const g = ["SELECT", "FROM", "WHERE", "GROUP", "ORDER", "HAVING", "JOIN"], w = /* @__PURE__ */ new Map();
|
|
2172
|
+
g.forEach(($) => {
|
|
2173
|
+
const k = e.indexOf($);
|
|
2174
|
+
k >= 0 && w.set($, k);
|
|
2175
|
+
}), x.current = w;
|
|
2032
2176
|
}
|
|
2033
2177
|
}, []);
|
|
2034
|
-
const
|
|
2035
|
-
const
|
|
2036
|
-
return
|
|
2037
|
-
}, [n,
|
|
2038
|
-
const
|
|
2039
|
-
return
|
|
2040
|
-
}, []),
|
|
2041
|
-
if (!a || !
|
|
2042
|
-
const
|
|
2043
|
-
let
|
|
2044
|
-
for (let
|
|
2045
|
-
const
|
|
2046
|
-
if (!
|
|
2047
|
-
const
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
content:
|
|
2051
|
-
}),
|
|
2178
|
+
const y = Be(() => {
|
|
2179
|
+
const g = [nt()];
|
|
2180
|
+
return f.length > 0 && g.push(ao(f)), [...g, ...n];
|
|
2181
|
+
}, [n, f]), S = Q((g, w, $ = 0) => {
|
|
2182
|
+
const k = g.indexOf(w, $);
|
|
2183
|
+
return k >= 0 ? k : null;
|
|
2184
|
+
}, []), b = Q((g, w) => {
|
|
2185
|
+
if (!a || !g || g.length === 0) return g;
|
|
2186
|
+
const $ = [...g];
|
|
2187
|
+
let k = 0;
|
|
2188
|
+
for (let V = 0; V < g.length; V++) {
|
|
2189
|
+
const K = g[V];
|
|
2190
|
+
if (!K.editable) {
|
|
2191
|
+
const ie = S(w, K.content, k);
|
|
2192
|
+
ie !== null && (V > 0 && g[V - 1].editable && ie > k && ($[V - 1] = {
|
|
2193
|
+
...$[V - 1],
|
|
2194
|
+
content: w.substring(k, ie)
|
|
2195
|
+
}), k = ie + K.content.length);
|
|
2052
2196
|
}
|
|
2053
2197
|
}
|
|
2054
|
-
const
|
|
2055
|
-
return
|
|
2056
|
-
...
|
|
2057
|
-
content:
|
|
2058
|
-
}),
|
|
2059
|
-
}, [a,
|
|
2060
|
-
let
|
|
2061
|
-
return
|
|
2062
|
-
const
|
|
2063
|
-
|
|
2064
|
-
}),
|
|
2065
|
-
}, []),
|
|
2066
|
-
if (!
|
|
2067
|
-
const
|
|
2068
|
-
let
|
|
2069
|
-
for (const
|
|
2070
|
-
const
|
|
2071
|
-
if (
|
|
2072
|
-
|
|
2198
|
+
const L = g[g.length - 1];
|
|
2199
|
+
return L.editable && k < w.length && ($[g.length - 1] = {
|
|
2200
|
+
...L,
|
|
2201
|
+
content: w.substring(k)
|
|
2202
|
+
}), $;
|
|
2203
|
+
}, [a, S]), _ = Q((g) => {
|
|
2204
|
+
let w = !1;
|
|
2205
|
+
return x.current.forEach(($, k) => {
|
|
2206
|
+
const L = g.indexOf(k);
|
|
2207
|
+
L >= 0 && Math.abs(L - $) > 0 && (x.current.set(k, L), L > $ && ($ === 0 || $ < 15) && (w = !0));
|
|
2208
|
+
}), w;
|
|
2209
|
+
}, []), j = Q(() => {
|
|
2210
|
+
if (!s.current) return;
|
|
2211
|
+
const g = s.current, w = g.state.doc.toString(), $ = ["SELECT", "FROM", "WHERE", "GROUP", "ORDER", "HAVING", "JOIN"], k = g.state.selection;
|
|
2212
|
+
let L = !1;
|
|
2213
|
+
for (const V of $) {
|
|
2214
|
+
const K = w.indexOf(V);
|
|
2215
|
+
if (K >= 0) {
|
|
2216
|
+
g.dispatch({
|
|
2073
2217
|
selection: {
|
|
2074
|
-
anchor:
|
|
2075
|
-
head:
|
|
2218
|
+
anchor: K,
|
|
2219
|
+
head: K + V.length
|
|
2076
2220
|
},
|
|
2077
2221
|
scrollIntoView: !1
|
|
2078
|
-
}),
|
|
2222
|
+
}), L = !0;
|
|
2079
2223
|
break;
|
|
2080
2224
|
}
|
|
2081
2225
|
}
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
selection:
|
|
2226
|
+
L && setTimeout(() => {
|
|
2227
|
+
g.dom && document.contains(g.dom) && g.dispatch({
|
|
2228
|
+
selection: k,
|
|
2085
2229
|
scrollIntoView: !1
|
|
2086
2230
|
});
|
|
2087
2231
|
}, 10);
|
|
2088
|
-
}, []),
|
|
2089
|
-
if (!
|
|
2090
|
-
const
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2232
|
+
}, []), l = Q(() => {
|
|
2233
|
+
if (!s.current) return;
|
|
2234
|
+
const g = s.current;
|
|
2235
|
+
f.length > 0 && (ue(g, []), setTimeout(() => {
|
|
2236
|
+
g.dom && document.contains(g.dom) && (ue(g, f), setTimeout(() => {
|
|
2237
|
+
g.dom && document.contains(g.dom) && g.dispatch({});
|
|
2094
2238
|
}, 10));
|
|
2095
2239
|
}, 10));
|
|
2096
|
-
}, [
|
|
2097
|
-
const
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
}, 10)), p.current =
|
|
2101
|
-
const
|
|
2102
|
-
if (a &&
|
|
2103
|
-
const
|
|
2104
|
-
|
|
2240
|
+
}, [f]), U = Q((g) => {
|
|
2241
|
+
const w = g.value, $ = p.current;
|
|
2242
|
+
$ !== w && w.length > $.length && !$.startsWith(w.substring(0, 5)) && w.includes($.substring(0, 10)) && (C.current = !0, _(w) && setTimeout(() => {
|
|
2243
|
+
j();
|
|
2244
|
+
}, 10)), p.current = w;
|
|
2245
|
+
const k = s.current ? co(s.current) : f;
|
|
2246
|
+
if (a && d) {
|
|
2247
|
+
const L = b(d, w);
|
|
2248
|
+
P(L);
|
|
2105
2249
|
const {
|
|
2106
|
-
readOnlyRanges:
|
|
2107
|
-
} =
|
|
2108
|
-
|
|
2109
|
-
value:
|
|
2110
|
-
readOnlyRanges:
|
|
2250
|
+
readOnlyRanges: V
|
|
2251
|
+
} = et(L);
|
|
2252
|
+
m(V), s.current && ue(s.current, V), r && r({
|
|
2253
|
+
value: w,
|
|
2254
|
+
readOnlyRanges: V
|
|
2111
2255
|
});
|
|
2112
2256
|
} else
|
|
2113
2257
|
r && r({
|
|
2114
|
-
value:
|
|
2115
|
-
readOnlyRanges:
|
|
2258
|
+
value: w,
|
|
2259
|
+
readOnlyRanges: k
|
|
2116
2260
|
});
|
|
2117
|
-
}, [r, a,
|
|
2118
|
-
|
|
2119
|
-
!a && JSON.stringify(o) !== JSON.stringify(
|
|
2120
|
-
}, [o,
|
|
2121
|
-
if (a &&
|
|
2261
|
+
}, [r, a, d, f, b, _, j]);
|
|
2262
|
+
se(() => {
|
|
2263
|
+
!a && JSON.stringify(o) !== JSON.stringify(f) && (m(o), s.current && ue(s.current, o));
|
|
2264
|
+
}, [o, f, a]), se(() => {
|
|
2265
|
+
if (a && d) {
|
|
2122
2266
|
const {
|
|
2123
|
-
readOnlyRanges:
|
|
2124
|
-
} =
|
|
2125
|
-
JSON.stringify(
|
|
2126
|
-
}
|
|
2127
|
-
}, [
|
|
2128
|
-
|
|
2129
|
-
}, [e]),
|
|
2130
|
-
|
|
2131
|
-
|
|
2267
|
+
readOnlyRanges: g
|
|
2268
|
+
} = et(d);
|
|
2269
|
+
JSON.stringify(g) !== JSON.stringify(f) && (m(g), s.current && ue(s.current, g));
|
|
2270
|
+
}
|
|
2271
|
+
}, [d, f, a]), se(() => {
|
|
2272
|
+
s.current && C.current && (C.current = !1, s.current.dispatch({}));
|
|
2273
|
+
}, [e]), se(() => {
|
|
2274
|
+
s.current && f.length > 0 && !R.current && (R.current = !0, setTimeout(() => {
|
|
2275
|
+
l();
|
|
2132
2276
|
}, 50), setTimeout(() => {
|
|
2133
|
-
|
|
2277
|
+
l();
|
|
2134
2278
|
}, 200));
|
|
2135
|
-
}, [
|
|
2136
|
-
const
|
|
2137
|
-
if (
|
|
2138
|
-
|
|
2139
|
-
|
|
2279
|
+
}, [l, f]);
|
|
2280
|
+
const A = Q((g) => {
|
|
2281
|
+
if (s.current = g, f.length > 0 && (ue(g, f), setTimeout(() => {
|
|
2282
|
+
ue(g, []), setTimeout(() => {
|
|
2283
|
+
ue(g, f);
|
|
2140
2284
|
}, 10);
|
|
2141
2285
|
}, 50)), e) {
|
|
2142
|
-
const
|
|
2143
|
-
|
|
2144
|
-
const
|
|
2145
|
-
|
|
2146
|
-
}),
|
|
2147
|
-
}
|
|
2148
|
-
}, [
|
|
2149
|
-
|
|
2150
|
-
|
|
2286
|
+
const w = ["SELECT", "FROM", "WHERE", "GROUP", "ORDER", "HAVING", "JOIN"], $ = /* @__PURE__ */ new Map();
|
|
2287
|
+
w.forEach((k) => {
|
|
2288
|
+
const L = e.indexOf(k);
|
|
2289
|
+
L >= 0 && $.set(k, L);
|
|
2290
|
+
}), x.current = $;
|
|
2291
|
+
}
|
|
2292
|
+
}, [f, e]), Re = Q((g) => {
|
|
2293
|
+
U(g), s.current && setTimeout(() => {
|
|
2294
|
+
s.current && s.current.dispatch({});
|
|
2151
2295
|
}, 0);
|
|
2152
|
-
}, [
|
|
2153
|
-
return /* @__PURE__ */
|
|
2154
|
-
}
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2296
|
+
}, [U]);
|
|
2297
|
+
return /* @__PURE__ */ rr(xr, { value: e, onChange: Re, extensions: y, onEditorViewCreated: A, showLineNumbers: i, ...u });
|
|
2298
|
+
};
|
|
2299
|
+
function Co(e) {
|
|
2300
|
+
const {
|
|
2301
|
+
value: r,
|
|
2302
|
+
onChange: n,
|
|
2303
|
+
extensions: o = [],
|
|
2304
|
+
showLineNumbers: a = !0,
|
|
2305
|
+
enableFormatting: i = !1,
|
|
2306
|
+
...u
|
|
2307
|
+
} = e, s = fe(!0), f = fe(null), m = Q((y) => {
|
|
2163
2308
|
try {
|
|
2164
|
-
JSON.parse(
|
|
2165
|
-
} catch
|
|
2166
|
-
|
|
2167
|
-
from: 0,
|
|
2168
|
-
to: u.length,
|
|
2169
|
-
message: _.message,
|
|
2170
|
-
severity: "error"
|
|
2171
|
-
});
|
|
2309
|
+
return y === "" || JSON.parse(y), !0;
|
|
2310
|
+
} catch {
|
|
2311
|
+
return !1;
|
|
2172
2312
|
}
|
|
2173
|
-
|
|
2174
|
-
}, []), c = re((p) => {
|
|
2313
|
+
}, []), p = Q((y) => {
|
|
2175
2314
|
try {
|
|
2176
|
-
|
|
2177
|
-
|
|
2315
|
+
if (!y.trim()) return "";
|
|
2316
|
+
const S = JSON.parse(y);
|
|
2317
|
+
return JSON.stringify(S, null, 2);
|
|
2178
2318
|
} catch {
|
|
2179
|
-
return
|
|
2180
|
-
}
|
|
2181
|
-
}, []),
|
|
2182
|
-
if (
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
return;
|
|
2191
|
-
}
|
|
2319
|
+
return y;
|
|
2320
|
+
}
|
|
2321
|
+
}, []), d = Q(() => {
|
|
2322
|
+
if (!f.current) return !1;
|
|
2323
|
+
const y = f.current, S = y.state.doc.toString(), b = p(S);
|
|
2324
|
+
if (b === S) return !1;
|
|
2325
|
+
const _ = y.state.update({
|
|
2326
|
+
changes: {
|
|
2327
|
+
from: 0,
|
|
2328
|
+
to: y.state.doc.length,
|
|
2329
|
+
insert: b
|
|
2192
2330
|
}
|
|
2193
|
-
|
|
2331
|
+
});
|
|
2332
|
+
return y.dispatch(_), !0;
|
|
2333
|
+
}, [p]), P = Be(() => Me.of([{
|
|
2334
|
+
key: "Enter",
|
|
2335
|
+
run: (y) => {
|
|
2336
|
+
const S = y.state.selection.main, {
|
|
2337
|
+
from: b,
|
|
2338
|
+
to: _
|
|
2339
|
+
} = S, j = y.state.doc.lineAt(b);
|
|
2340
|
+
if (b === _ && b === j.to) {
|
|
2341
|
+
const l = y.state.update({
|
|
2342
|
+
changes: {
|
|
2343
|
+
from: b,
|
|
2344
|
+
to: _,
|
|
2345
|
+
insert: `
|
|
2346
|
+
`
|
|
2347
|
+
},
|
|
2348
|
+
selection: {
|
|
2349
|
+
anchor: b + 1
|
|
2350
|
+
}
|
|
2351
|
+
});
|
|
2352
|
+
return y.dispatch(l), !0;
|
|
2353
|
+
}
|
|
2354
|
+
return !1;
|
|
2194
2355
|
}
|
|
2195
|
-
},
|
|
2196
|
-
|
|
2197
|
-
|
|
2356
|
+
}, {
|
|
2357
|
+
key: "Alt-f",
|
|
2358
|
+
mac: "Mod-Alt-f",
|
|
2359
|
+
run: () => d()
|
|
2360
|
+
}]), [d]), C = Q((y) => {
|
|
2361
|
+
if (n) {
|
|
2362
|
+
const S = m(y.value);
|
|
2363
|
+
s.current = S, n(y);
|
|
2364
|
+
}
|
|
2365
|
+
}, [n, m]), x = Be(() => [ot(), Bt.highest(P), ...o], [P, o]), R = Q((y) => {
|
|
2366
|
+
f.current = y, i && r && setTimeout(() => {
|
|
2367
|
+
d();
|
|
2368
|
+
}, 0);
|
|
2369
|
+
}, [i, r, d]);
|
|
2370
|
+
return /* @__PURE__ */ rr(xr, { value: r, showLineNumbers: a, onChange: C, extensions: x, onEditorViewCreated: R, ...u });
|
|
2371
|
+
}
|
|
2198
2372
|
export {
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2373
|
+
Ro as Editor,
|
|
2374
|
+
xr as GenericEditor,
|
|
2375
|
+
Co as JSONEditor,
|
|
2376
|
+
xo as SQLEditor,
|
|
2377
|
+
et as blocksToEditorData,
|
|
2378
|
+
So as commonExtensions,
|
|
2379
|
+
Qn as createAutocompletionExtension,
|
|
2380
|
+
eo as createKeymapExtension,
|
|
2381
|
+
Eo as createLintExtension,
|
|
2382
|
+
no as darkTheme,
|
|
2383
|
+
co as getCurrentReadOnlyRanges,
|
|
2384
|
+
Xn as getLanguageExtension,
|
|
2385
|
+
oo as getThemeExtension,
|
|
2386
|
+
Zn as isSupportedLanguage,
|
|
2387
|
+
Qr as lightTheme,
|
|
2388
|
+
ao as readOnlyRanges,
|
|
2389
|
+
ue as updateReadOnlyRanges
|
|
2216
2390
|
};
|