-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.es.js
6068 lines (6060 loc) · 190 KB
/
index.es.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import * as A from "react";
import ce, { createContext as vt, useMemo as Ee, useCallback as L, useContext as Yt, useRef as N, createElement as _, Fragment as Mn, forwardRef as J, Children as et, isValidElement as Lt, cloneElement as kn, useEffect as M, useState as K, useLayoutEffect as Vr, useReducer as ha, PureComponent as ga, memo as ba } from "react";
import { observe as Z, useObserver as ie, useObserverValue as w, set as fn } from "react-observing";
import { v4 as Br } from "uuid";
import * as xa from "react-dom";
import ya, { flushSync as Ur } from "react-dom";
var En = { exports: {} }, ft = {};
/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var lr;
function wa() {
if (lr)
return ft;
lr = 1;
var e = ce, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
function s(i, c, d) {
var f, u = {}, v = null, m = null;
d !== void 0 && (v = "" + d), c.key !== void 0 && (v = "" + c.key), c.ref !== void 0 && (m = c.ref);
for (f in c)
r.call(c, f) && !a.hasOwnProperty(f) && (u[f] = c[f]);
if (i && i.defaultProps)
for (f in c = i.defaultProps, c)
u[f] === void 0 && (u[f] = c[f]);
return { $$typeof: t, type: i, key: v, ref: m, props: u, _owner: o.current };
}
return ft.Fragment = n, ft.jsx = s, ft.jsxs = s, ft;
}
var mt = {};
/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var ur;
function $a() {
return ur || (ur = 1, process.env.NODE_ENV !== "production" && function() {
var e = ce, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), h = Symbol.iterator, l = "@@iterator";
function b(p) {
if (p === null || typeof p != "object")
return null;
var T = h && p[h] || p[l];
return typeof T == "function" ? T : null;
}
var g = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function y(p) {
{
for (var T = arguments.length, O = new Array(T > 1 ? T - 1 : 0), j = 1; j < T; j++)
O[j - 1] = arguments[j];
C("error", p, O);
}
}
function C(p, T, O) {
{
var j = g.ReactDebugCurrentFrame, X = j.getStackAddendum();
X !== "" && (T += "%s", O = O.concat([X]));
var Q = O.map(function(G) {
return String(G);
});
Q.unshift("Warning: " + T), Function.prototype.apply.call(console[p], console, Q);
}
}
var E = !1, $ = !1, S = !1, P = !1, D = !1, R;
R = Symbol.for("react.module.reference");
function z(p) {
return !!(typeof p == "string" || typeof p == "function" || p === r || p === a || D || p === o || p === d || p === f || P || p === m || E || $ || S || typeof p == "object" && p !== null && (p.$$typeof === v || p.$$typeof === u || p.$$typeof === s || p.$$typeof === i || p.$$typeof === c || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
p.$$typeof === R || p.getModuleId !== void 0));
}
function V(p, T, O) {
var j = p.displayName;
if (j)
return j;
var X = T.displayName || T.name || "";
return X !== "" ? O + "(" + X + ")" : O;
}
function k(p) {
return p.displayName || "Context";
}
function q(p) {
if (p == null)
return null;
if (typeof p.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof p == "function")
return p.displayName || p.name || null;
if (typeof p == "string")
return p;
switch (p) {
case r:
return "Fragment";
case n:
return "Portal";
case a:
return "Profiler";
case o:
return "StrictMode";
case d:
return "Suspense";
case f:
return "SuspenseList";
}
if (typeof p == "object")
switch (p.$$typeof) {
case i:
var T = p;
return k(T) + ".Consumer";
case s:
var O = p;
return k(O._context) + ".Provider";
case c:
return V(p, p.render, "ForwardRef");
case u:
var j = p.displayName || null;
return j !== null ? j : q(p.type) || "Memo";
case v: {
var X = p, Q = X._payload, G = X._init;
try {
return q(G(Q));
} catch {
return null;
}
}
}
return null;
}
var W = Object.assign, H = 0, ne, U, re, I, ee, oe, me;
function ve() {
}
ve.__reactDisabledLog = !0;
function pe() {
{
if (H === 0) {
ne = console.log, U = console.info, re = console.warn, I = console.error, ee = console.group, oe = console.groupCollapsed, me = console.groupEnd;
var p = {
configurable: !0,
enumerable: !0,
value: ve,
writable: !0
};
Object.defineProperties(console, {
info: p,
log: p,
warn: p,
error: p,
group: p,
groupCollapsed: p,
groupEnd: p
});
}
H++;
}
}
function xe() {
{
if (H--, H === 0) {
var p = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: W({}, p, {
value: ne
}),
info: W({}, p, {
value: U
}),
warn: W({}, p, {
value: re
}),
error: W({}, p, {
value: I
}),
group: W({}, p, {
value: ee
}),
groupCollapsed: W({}, p, {
value: oe
}),
groupEnd: W({}, p, {
value: me
})
});
}
H < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var ue = g.ReactCurrentDispatcher, ye;
function Re(p, T, O) {
{
if (ye === void 0)
try {
throw Error();
} catch (X) {
var j = X.stack.trim().match(/\n( *(at )?)/);
ye = j && j[1] || "";
}
return `
` + ye + p;
}
}
var le = !1, De;
{
var nn = typeof WeakMap == "function" ? WeakMap : Map;
De = new nn();
}
function St(p, T) {
if (!p || le)
return "";
{
var O = De.get(p);
if (O !== void 0)
return O;
}
var j;
le = !0;
var X = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var Q;
Q = ue.current, ue.current = null, pe();
try {
if (T) {
var G = function() {
throw Error();
};
if (Object.defineProperty(G.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(G, []);
} catch (Ie) {
j = Ie;
}
Reflect.construct(p, [], G);
} else {
try {
G.call();
} catch (Ie) {
j = Ie;
}
p.call(G.prototype);
}
} else {
try {
throw Error();
} catch (Ie) {
j = Ie;
}
p();
}
} catch (Ie) {
if (Ie && j && typeof Ie.stack == "string") {
for (var B = Ie.stack.split(`
`), de = j.stack.split(`
`), ae = B.length - 1, se = de.length - 1; ae >= 1 && se >= 0 && B[ae] !== de[se]; )
se--;
for (; ae >= 1 && se >= 0; ae--, se--)
if (B[ae] !== de[se]) {
if (ae !== 1 || se !== 1)
do
if (ae--, se--, se < 0 || B[ae] !== de[se]) {
var we = `
` + B[ae].replace(" at new ", " at ");
return p.displayName && we.includes("<anonymous>") && (we = we.replace("<anonymous>", p.displayName)), typeof p == "function" && De.set(p, we), we;
}
while (ae >= 1 && se >= 0);
break;
}
}
} finally {
le = !1, ue.current = Q, xe(), Error.prepareStackTrace = X;
}
var Xe = p ? p.displayName || p.name : "", cr = Xe ? Re(Xe) : "";
return typeof p == "function" && De.set(p, cr), cr;
}
function rn(p, T, O) {
return St(p, !1);
}
function on(p) {
var T = p.prototype;
return !!(T && T.isReactComponent);
}
function Te(p, T, O) {
if (p == null)
return "";
if (typeof p == "function")
return St(p, on(p));
if (typeof p == "string")
return Re(p);
switch (p) {
case d:
return Re("Suspense");
case f:
return Re("SuspenseList");
}
if (typeof p == "object")
switch (p.$$typeof) {
case c:
return rn(p.render);
case u:
return Te(p.type, T, O);
case v: {
var j = p, X = j._payload, Q = j._init;
try {
return Te(Q(X), T, O);
} catch {
}
}
}
return "";
}
var ze = Object.prototype.hasOwnProperty, Tt = {}, Pt = g.ReactDebugCurrentFrame;
function Ke(p) {
if (p) {
var T = p._owner, O = Te(p.type, p._source, T ? T.type : null);
Pt.setExtraStackFrame(O);
} else
Pt.setExtraStackFrame(null);
}
function an(p, T, O, j, X) {
{
var Q = Function.call.bind(ze);
for (var G in p)
if (Q(p, G)) {
var B = void 0;
try {
if (typeof p[G] != "function") {
var de = Error((j || "React class") + ": " + O + " type `" + G + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof p[G] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw de.name = "Invariant Violation", de;
}
B = p[G](T, G, j, O, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (ae) {
B = ae;
}
B && !(B instanceof Error) && (Ke(X), y("%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).", j || "React class", O, G, typeof B), Ke(null)), B instanceof Error && !(B.message in Tt) && (Tt[B.message] = !0, Ke(X), y("Failed %s type: %s", O, B.message), Ke(null));
}
}
}
var Ge = Array.isArray;
function sn(p) {
return Ge(p);
}
function Jo(p) {
{
var T = typeof Symbol == "function" && Symbol.toStringTag, O = T && p[Symbol.toStringTag] || p.constructor.name || "Object";
return O;
}
}
function Qo(p) {
try {
return Jn(p), !1;
} catch {
return !0;
}
}
function Jn(p) {
return "" + p;
}
function Qn(p) {
if (Qo(p))
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Jo(p)), Jn(p);
}
var dt = g.ReactCurrentOwner, ea = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, er, tr, cn;
cn = {};
function ta(p) {
if (ze.call(p, "ref")) {
var T = Object.getOwnPropertyDescriptor(p, "ref").get;
if (T && T.isReactWarning)
return !1;
}
return p.ref !== void 0;
}
function na(p) {
if (ze.call(p, "key")) {
var T = Object.getOwnPropertyDescriptor(p, "key").get;
if (T && T.isReactWarning)
return !1;
}
return p.key !== void 0;
}
function ra(p, T) {
if (typeof p.ref == "string" && dt.current && T && dt.current.stateNode !== T) {
var O = q(dt.current.type);
cn[O] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', q(dt.current.type), p.ref), cn[O] = !0);
}
}
function oa(p, T) {
{
var O = function() {
er || (er = !0, y("%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)", T));
};
O.isReactWarning = !0, Object.defineProperty(p, "key", {
get: O,
configurable: !0
});
}
}
function aa(p, T) {
{
var O = function() {
tr || (tr = !0, y("%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)", T));
};
O.isReactWarning = !0, Object.defineProperty(p, "ref", {
get: O,
configurable: !0
});
}
}
var ia = function(p, T, O, j, X, Q, G) {
var B = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: t,
// Built-in properties that belong on the element
type: p,
key: T,
ref: O,
props: G,
// Record the component responsible for creating this element.
_owner: Q
};
return B._store = {}, Object.defineProperty(B._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(B, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: j
}), Object.defineProperty(B, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: X
}), Object.freeze && (Object.freeze(B.props), Object.freeze(B)), B;
};
function sa(p, T, O, j, X) {
{
var Q, G = {}, B = null, de = null;
O !== void 0 && (Qn(O), B = "" + O), na(T) && (Qn(T.key), B = "" + T.key), ta(T) && (de = T.ref, ra(T, X));
for (Q in T)
ze.call(T, Q) && !ea.hasOwnProperty(Q) && (G[Q] = T[Q]);
if (p && p.defaultProps) {
var ae = p.defaultProps;
for (Q in ae)
G[Q] === void 0 && (G[Q] = ae[Q]);
}
if (B || de) {
var se = typeof p == "function" ? p.displayName || p.name || "Unknown" : p;
B && oa(G, se), de && aa(G, se);
}
return ia(p, B, de, X, j, dt.current, G);
}
}
var ln = g.ReactCurrentOwner, nr = g.ReactDebugCurrentFrame;
function Ye(p) {
if (p) {
var T = p._owner, O = Te(p.type, p._source, T ? T.type : null);
nr.setExtraStackFrame(O);
} else
nr.setExtraStackFrame(null);
}
var un;
un = !1;
function dn(p) {
return typeof p == "object" && p !== null && p.$$typeof === t;
}
function rr() {
{
if (ln.current) {
var p = q(ln.current.type);
if (p)
return `
Check the render method of \`` + p + "`.";
}
return "";
}
}
function ca(p) {
{
if (p !== void 0) {
var T = p.fileName.replace(/^.*[\\\/]/, ""), O = p.lineNumber;
return `
Check your code at ` + T + ":" + O + ".";
}
return "";
}
}
var or = {};
function la(p) {
{
var T = rr();
if (!T) {
var O = typeof p == "string" ? p : p.displayName || p.name;
O && (T = `
Check the top-level render call using <` + O + ">.");
}
return T;
}
}
function ar(p, T) {
{
if (!p._store || p._store.validated || p.key != null)
return;
p._store.validated = !0;
var O = la(T);
if (or[O])
return;
or[O] = !0;
var j = "";
p && p._owner && p._owner !== ln.current && (j = " It was passed a child from " + q(p._owner.type) + "."), Ye(p), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', O, j), Ye(null);
}
}
function ir(p, T) {
{
if (typeof p != "object")
return;
if (sn(p))
for (var O = 0; O < p.length; O++) {
var j = p[O];
dn(j) && ar(j, T);
}
else if (dn(p))
p._store && (p._store.validated = !0);
else if (p) {
var X = b(p);
if (typeof X == "function" && X !== p.entries)
for (var Q = X.call(p), G; !(G = Q.next()).done; )
dn(G.value) && ar(G.value, T);
}
}
}
function ua(p) {
{
var T = p.type;
if (T == null || typeof T == "string")
return;
var O;
if (typeof T == "function")
O = T.propTypes;
else if (typeof T == "object" && (T.$$typeof === c || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
T.$$typeof === u))
O = T.propTypes;
else
return;
if (O) {
var j = q(T);
an(O, p.props, "prop", j, p);
} else if (T.PropTypes !== void 0 && !un) {
un = !0;
var X = q(T);
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", X || "Unknown");
}
typeof T.getDefaultProps == "function" && !T.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function da(p) {
{
for (var T = Object.keys(p.props), O = 0; O < T.length; O++) {
var j = T[O];
if (j !== "children" && j !== "key") {
Ye(p), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", j), Ye(null);
break;
}
}
p.ref !== null && (Ye(p), y("Invalid attribute `ref` supplied to `React.Fragment`."), Ye(null));
}
}
function sr(p, T, O, j, X, Q) {
{
var G = z(p);
if (!G) {
var B = "";
(p === void 0 || typeof p == "object" && p !== null && Object.keys(p).length === 0) && (B += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var de = ca(X);
de ? B += de : B += rr();
var ae;
p === null ? ae = "null" : sn(p) ? ae = "array" : p !== void 0 && p.$$typeof === t ? (ae = "<" + (q(p.type) || "Unknown") + " />", B = " Did you accidentally export a JSX literal instead of a component?") : ae = typeof p, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ae, B);
}
var se = sa(p, T, O, X, Q);
if (se == null)
return se;
if (G) {
var we = T.children;
if (we !== void 0)
if (j)
if (sn(we)) {
for (var Xe = 0; Xe < we.length; Xe++)
ir(we[Xe], p);
Object.freeze && Object.freeze(we);
} else
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
else
ir(we, p);
}
return p === r ? da(se) : ua(se), se;
}
}
function fa(p, T, O) {
return sr(p, T, O, !0);
}
function ma(p, T, O) {
return sr(p, T, O, !1);
}
var va = ma, pa = fa;
mt.Fragment = r, mt.jsx = va, mt.jsxs = pa;
}()), mt;
}
process.env.NODE_ENV === "production" ? En.exports = wa() : En.exports = $a();
var x = En.exports;
const Kr = vt({}), Ea = ({ children: e, configs: t, onGetNameSuggestions: n, onGetValueSuggestions: r, onGetValue: o, ...a }) => {
const s = Ee(() => ({
// GENERAL
errorColor: (t == null ? void 0 : t.errorColor) || "red",
warningColor: (t == null ? void 0 : t.warningColor) || "yellow",
textDefaultColor: (t == null ? void 0 : t.textDefaultColor) || "white",
borderDefaultColor: (t == null ? void 0 : t.borderDefaultColor) || "#3c3c3c",
// Inputs
inputTextDefault: void 0,
inputBorderError: `thin solid ${(t == null ? void 0 : t.errorColor) || "red"}`,
inputTextError: `underline wavy ${(t == null ? void 0 : t.errorColor) || "red"}`,
inputBorderWarning: `thin solid ${(t == null ? void 0 : t.warningColor) || "yellow"}`,
inputTextWarning: `underline wavy ${(t == null ? void 0 : t.warningColor) || "yellow"}`,
inputBorderDefault: `thin solid ${(t == null ? void 0 : t.borderDefaultColor) || "#3c3c3c"}`
}), [t]), i = L((f) => n ? n(f) : [], [n]), c = L((f) => r ? r(f) : [], [r]), d = Ee(() => {
if (o)
return (f) => o(f);
}, [o]);
return /* @__PURE__ */ x.jsx(
Kr.Provider,
{
value: {
onGetValue: d,
configs: s,
onGetNameSuggestions: i,
onGetValueSuggestions: c,
...a
},
children: e
}
);
}, at = () => Yt(Kr), Ce = () => at().configs;
var Gr = {
color: void 0,
size: void 0,
className: void 0,
style: void 0,
attr: void 0
}, dr = ce.createContext && /* @__PURE__ */ ce.createContext(Gr), Ca = ["attr", "size", "title"];
function Sa(e, t) {
if (e == null)
return {};
var n = Ta(e, t), r, o;
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (o = 0; o < a.length; o++)
r = a[o], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
}
return n;
}
function Ta(e, t) {
if (e == null)
return {};
var n = {}, r = Object.keys(e), o, a;
for (a = 0; a < r.length; a++)
o = r[a], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
return n;
}
function Ht() {
return Ht = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
}, Ht.apply(this, arguments);
}
function fr(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
t && (r = r.filter(function(o) {
return Object.getOwnPropertyDescriptor(e, o).enumerable;
})), n.push.apply(n, r);
}
return n;
}
function Ft(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
t % 2 ? fr(Object(n), !0).forEach(function(r) {
Pa(e, r, n[r]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fr(Object(n)).forEach(function(r) {
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
});
}
return e;
}
function Pa(e, t, n) {
return t = _a(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
function _a(e) {
var t = Oa(e, "string");
return typeof t == "symbol" ? t : String(t);
}
function Oa(e, t) {
if (typeof e != "object" || e === null)
return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
var r = n.call(e, t || "default");
if (typeof r != "object")
return r;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (t === "string" ? String : Number)(e);
}
function Yr(e) {
return e && e.map((t, n) => /* @__PURE__ */ ce.createElement(t.tag, Ft({
key: n
}, t.attr), Yr(t.child)));
}
function it(e) {
return (t) => /* @__PURE__ */ ce.createElement(Ra, Ht({
attr: Ft({}, e.attr)
}, t), Yr(e.child));
}
function Ra(e) {
var t = (n) => {
var {
attr: r,
size: o,
title: a
} = e, s = Sa(e, Ca), i = o || n.size || "1em", c;
return n.className && (c = n.className), e.className && (c = (c ? c + " " : "") + e.className), /* @__PURE__ */ ce.createElement("svg", Ht({
stroke: "currentColor",
fill: "currentColor",
strokeWidth: "0"
}, n.attr, r, s, {
className: c,
style: Ft(Ft({
color: e.color || n.color
}, n.style), e.style),
height: i,
width: i,
xmlns: "http://www.w3.org/2000/svg"
}), a && /* @__PURE__ */ ce.createElement("title", null, a), e.children);
};
return dr !== void 0 ? /* @__PURE__ */ ce.createElement(dr.Consumer, null, (n) => t(n)) : t(Gr);
}
function Xr(e) {
return it({ tag: "svg", attr: { viewBox: "0 0 16 16", fill: "currentColor" }, child: [{ tag: "path", attr: { fillRule: "evenodd", clipRule: "evenodd", d: "M7.976 10.072l4.357-4.357.62.618L8.284 11h-.618L3 6.333l.619-.618 4.357 4.357z" }, child: [] }] })(e);
}
function Da(e) {
return it({ tag: "svg", attr: { viewBox: "0 0 16 16", fill: "currentColor" }, child: [{ tag: "path", attr: { fillRule: "evenodd", clipRule: "evenodd", d: "M8.024 5.928l-4.357 4.357-.62-.618L7.716 5h.618L13 9.667l-.619.618-4.357-4.357z" }, child: [] }] })(e);
}
function Ia(e) {
return it({ tag: "svg", attr: { viewBox: "0 0 16 16", fill: "currentColor" }, child: [{ tag: "path", attr: { fillRule: "evenodd", clipRule: "evenodd", d: "M8 8.707l3.646 3.647.708-.707L8.707 8l3.647-3.646-.707-.708L8 7.293 4.354 3.646l-.707.708L7.293 8l-3.646 3.646.707.708L8 8.707z" }, child: [] }] })(e);
}
function Aa(e) {
return it({ tag: "svg", attr: { viewBox: "0 0 16 16", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M13.23 1h-1.46L3.52 9.25l-.16.22L1 13.59 2.41 15l4.12-2.36.22-.16L15 4.23V2.77L13.23 1zM2.41 13.59l1.51-3 1.45 1.45-2.96 1.55zm3.83-2.06L4.47 9.76l8-8 1.77 1.77-8 8z" }, child: [] }] })(e);
}
function st(e) {
return it({ tag: "svg", attr: { viewBox: "0 0 16 16", fill: "currentColor" }, child: [{ tag: "path", attr: { fillRule: "evenodd", clipRule: "evenodd", d: "M8.568 1.031A6.8 6.8 0 0 1 12.76 3.05a7.06 7.06 0 0 1 .46 9.39 6.85 6.85 0 0 1-8.58 1.74 7 7 0 0 1-3.12-3.5 7.12 7.12 0 0 1-.23-4.71 7 7 0 0 1 2.77-3.79 6.8 6.8 0 0 1 4.508-1.149zM9.04 13.88a5.89 5.89 0 0 0 3.41-2.07 6.07 6.07 0 0 0-.4-8.06 5.82 5.82 0 0 0-7.43-.74 6.06 6.06 0 0 0 .5 10.29 5.81 5.81 0 0 0 3.92.58zM7.375 6h1.25V5h-1.25v1zm1.25 1v4h-1.25V7h1.25z" }, child: [] }] })(e);
}
function xt(e) {
return it({ tag: "svg", attr: { viewBox: "0 0 16 16", fill: "currentColor" }, child: [{ tag: "path", attr: { fillRule: "evenodd", clipRule: "evenodd", d: "M10 3h3v1h-1v9l-1 1H4l-1-1V4H2V3h3V2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v1zM9 2H6v1h3V2zM4 13h7V4H4v9zm2-8H5v7h1V5zm1 0h1v7H7V5zm2 0h1v7H9V5z" }, child: [] }] })(e);
}
class zt {
static getInputsWidth() {
const t = localStorage.getItem("INPUTS_WIDTH");
return t ? Number(t) : 60;
}
static setInputsWidth(t) {
return localStorage.setItem("INPUTS_WIDTH", String(t)), t;
}
static getGroupsInOpen(t) {
const n = localStorage.getItem(t.toLocaleUpperCase() + "_GROUPS_OPEN");
try {
return n !== null ? JSON.parse(n) : !0;
} catch {
return !0;
}
}
static setGroupsInOpen(t, n) {
return localStorage.setItem(t.toLocaleUpperCase() + "_GROUPS_OPEN", String(n)), n;
}
}
var te = /* @__PURE__ */ ((e) => (e.stringWithSuggestions = "stringWithSuggestions", e.multiExpression = "multiExpression", e.yesNoSelection = "yesNoSelection", e.inputMultiTags = "inputMultiTags", e.fullBigString = "fullBigString", e.multiAssign = "multiAssign", e.colorPicker = "colorPicker", e.fieldsTree = "fieldsTree", e.expression = "expression", e.optionList = "optionList", e.stringList = "stringList", e.bigString = "bigString", e.selection = "selection", e.recursive = "recursive", e.viewOnly = "viewOnly", e.boolean = "boolean", e.string = "string", e.number = "number", e.binary = "binary", e.assign = "assign", e.hidden = "hidden", e))(te || {});
const xu = (e) => ({
description: e.description || Z(""),
disabled: e.disabled || Z(!1),
value: e.value || Z(""),
label: e.label || Z(""),
name: e.name || Z("")
}), qr = (e) => ({
id: e.id || Z(Br()),
value: e.value || Z(""),
name: e.name || Z(void 0),
order: e.order || Z(void 0),
group: e.group || Z(void 0),
type: e.type || Z(te.string),
information: e.information || Z(void 0),
fileMaxSize: e.fileMaxSize || Z(void 0),
nameHasError: e.nameHasError || Z(void 0),
propertyType: e.propertyType || Z("default"),
valueHasError: e.valueHasError || Z(void 0),
nameHasWarning: e.nameHasWarning || Z(void 0),
valueHasWarning: e.valueHasWarning || Z(void 0),
editNameDisabled: e.editNameDisabled || Z(void 0),
editValueDisabled: e.editValueDisabled || Z(void 0),
typeOfFilesToAccept: e.typeOfFilesToAccept || Z(void 0),
nameInputPickerDisabled: e.nameInputPickerDisabled || Z(!0),
valueInputPickerDisabled: e.valueInputPickerDisabled || Z(!0)
}), Na = Z(zt.getInputsWidth()), ja = ({ oldWidth: e = 0, onChange: t, onResizeEnd: n }) => {
const r = N(0), o = L((i) => {
t(window.innerWidth - i.pageX - r.current);
}, [t]), a = L((i) => {
window.document.body.style.cursor = "unset", n && n(window.innerWidth - i.pageX - r.current), window.onmousemove = null, window.onmouseup = null;
}, [n]), s = L((i) => {
r.current = window.innerWidth - i.pageX - e, window.document.body.style.cursor = "col-resize", window.onmousemove = o, window.onmouseup = a;
}, [e, o, a]);
return /* @__PURE__ */ x.jsx(
"div",
{
onMouseDown: s,
className: "transition-all border-none cursor-col-resize rounded h-8 w-1 z-10 hover:bg-secondary"
}
);
};
function F() {
return F = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
}, F.apply(this, arguments);
}
function Y(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
return function(o) {
if (e == null || e(o), n === !1 || !o.defaultPrevented)
return t == null ? void 0 : t(o);
};
}
function Ma(e, t) {
typeof e == "function" ? e(t) : e != null && (e.current = t);
}
function Wn(...e) {
return (t) => e.forEach(
(n) => Ma(n, t)
);
}
function fe(...e) {
return L(Wn(...e), e);
}
function Be(e, t = []) {
let n = [];
function r(a, s) {
const i = /* @__PURE__ */ vt(s), c = n.length;
n = [
...n,
s
];
function d(u) {
const { scope: v, children: m, ...h } = u, l = (v == null ? void 0 : v[e][c]) || i, b = Ee(
() => h,
Object.values(h)
);
return /* @__PURE__ */ _(l.Provider, {
value: b
}, m);
}
function f(u, v) {
const m = (v == null ? void 0 : v[e][c]) || i, h = Yt(m);
if (h)
return h;
if (s !== void 0)
return s;
throw new Error(`\`${u}\` must be used within \`${a}\``);
}
return d.displayName = a + "Provider", [
d,
f
];
}
const o = () => {
const a = n.map((s) => /* @__PURE__ */ vt(s));
return function(i) {
const c = (i == null ? void 0 : i[e]) || a;
return Ee(
() => ({
[`__scope${e}`]: {
...i,
[e]: c
}
}),
[
i,
c
]
);
};
};
return o.scopeName = e, [
r,
ka(o, ...t)
];
}
function ka(...e) {
const t = e[0];
if (e.length === 1)
return t;
const n = () => {
const r = e.map(
(o) => ({
useScope: o(),
scopeName: o.scopeName
})
);
return function(a) {
const s = r.reduce((i, { useScope: c, scopeName: d }) => {
const u = c(a)[`__scope${d}`];
return {
...i,
...u
};
}, {});
return Ee(
() => ({
[`__scope${t.scopeName}`]: s
}),
[
s
]
);
};
};
return n.scopeName = t.scopeName, n;
}
const pt = /* @__PURE__ */ J((e, t) => {
const { children: n, ...r } = e, o = et.toArray(n), a = o.find(Wa);
if (a) {
const s = a.props.children, i = o.map((c) => c === a ? et.count(s) > 1 ? et.only(null) : /* @__PURE__ */ Lt(s) ? s.props.children : null : c);
return /* @__PURE__ */ _(Cn, F({}, r, {
ref: t
}), /* @__PURE__ */ Lt(s) ? /* @__PURE__ */ kn(s, void 0, i) : null);
}
return /* @__PURE__ */ _(Cn, F({}, r, {
ref: t
}), n);
});
pt.displayName = "Slot";
const Cn = /* @__PURE__ */ J((e, t) => {
const { children: n, ...r } = e;
return /* @__PURE__ */ Lt(n) ? /* @__PURE__ */ kn(n, {
...La(r, n.props),
ref: t ? Wn(t, n.ref) : n.ref
}) : et.count(n) > 1 ? et.only(null) : null;
});
Cn.displayName = "SlotClone";
const Zr = ({ children: e }) => /* @__PURE__ */ _(Mn, null, e);
function Wa(e) {
return /* @__PURE__ */ Lt(e) && e.type === Zr;
}
function La(e, t) {
const n = {
...t
};
for (const r in t) {
const o = e[r], a = t[r];
/^on[A-Z]/.test(r) ? o && a ? n[r] = (...i) => {
a(...i), o(...i);
} : o && (n[r] = o) : r === "style" ? n[r] = {
...o,