@kohost/api-client 3.0.0-beta.5 → 3.0.0-beta.7
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/cjs/Client.js +570 -247
- package/dist/cjs/Commands.js +39 -22
- package/dist/cjs/Errors.js +24 -22
- package/dist/cjs/Events.js +26 -14
- package/dist/cjs/Models.js +57 -27
- package/dist/cjs/defs.js +4 -1
- package/dist/cjs/utils.js +8 -4
- package/dist/esm/Client.js +858 -451
- package/dist/esm/Client.js.map +3 -3
- package/dist/esm/Commands.js +39 -22
- package/dist/esm/Commands.js.map +1 -1
- package/dist/esm/Errors.js +24 -22
- package/dist/esm/Errors.js.map +1 -1
- package/dist/esm/Events.js +26 -14
- package/dist/esm/Events.js.map +2 -2
- package/dist/esm/Models.js +720 -96
- package/dist/esm/Models.js.map +2 -2
- package/dist/esm/defs.js +292 -205
- package/dist/esm/defs.js.map +2 -2
- package/dist/esm/utils.js +379 -50
- package/dist/esm/utils.js.map +1 -1
- package/dist/useCases/AdminCreateAdminUser.js +32 -0
- package/dist/useCases/AdminCreateCustomer.js +32 -0
- package/dist/useCases/AdminDescribeCustomer.js +32 -0
- package/dist/useCases/AdminListAdminUsers.js +32 -0
- package/dist/useCases/{LoginGateway.js → AdminLoginUser.js} +2 -2
- package/dist/useCases/AdminRefreshToken.js +32 -0
- package/dist/useCases/AdminRequestLoginLink.js +32 -0
- package/dist/useCases/AdminUpdateCustomer.js +32 -0
- package/package.json +1 -1
package/dist/esm/Models.js
CHANGED
|
@@ -2,6 +2,7 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
5
6
|
var __esm = (fn, res) => function __init() {
|
|
6
7
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
7
8
|
};
|
|
@@ -30,6 +31,7 @@ var require_code = __commonJS({
|
|
|
30
31
|
exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;
|
|
31
32
|
var _CodeOrName = class {
|
|
32
33
|
};
|
|
34
|
+
__name(_CodeOrName, "_CodeOrName");
|
|
33
35
|
exports._CodeOrName = _CodeOrName;
|
|
34
36
|
exports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
35
37
|
var Name = class extends _CodeOrName {
|
|
@@ -49,6 +51,7 @@ var require_code = __commonJS({
|
|
|
49
51
|
return { [this.str]: 1 };
|
|
50
52
|
}
|
|
51
53
|
};
|
|
54
|
+
__name(Name, "Name");
|
|
52
55
|
exports.Name = Name;
|
|
53
56
|
var _Code = class extends _CodeOrName {
|
|
54
57
|
constructor(code) {
|
|
@@ -77,6 +80,7 @@ var require_code = __commonJS({
|
|
|
77
80
|
}, {});
|
|
78
81
|
}
|
|
79
82
|
};
|
|
83
|
+
__name(_Code, "_Code");
|
|
80
84
|
exports._Code = _Code;
|
|
81
85
|
exports.nil = new _Code("");
|
|
82
86
|
function _(strs, ...args) {
|
|
@@ -88,6 +92,7 @@ var require_code = __commonJS({
|
|
|
88
92
|
}
|
|
89
93
|
return new _Code(code);
|
|
90
94
|
}
|
|
95
|
+
__name(_, "_");
|
|
91
96
|
exports._ = _;
|
|
92
97
|
var plus = new _Code("+");
|
|
93
98
|
function str(strs, ...args) {
|
|
@@ -101,6 +106,7 @@ var require_code = __commonJS({
|
|
|
101
106
|
optimize(expr);
|
|
102
107
|
return new _Code(expr);
|
|
103
108
|
}
|
|
109
|
+
__name(str, "str");
|
|
104
110
|
exports.str = str;
|
|
105
111
|
function addCodeArg(code, arg) {
|
|
106
112
|
if (arg instanceof _Code)
|
|
@@ -110,6 +116,7 @@ var require_code = __commonJS({
|
|
|
110
116
|
else
|
|
111
117
|
code.push(interpolate(arg));
|
|
112
118
|
}
|
|
119
|
+
__name(addCodeArg, "addCodeArg");
|
|
113
120
|
exports.addCodeArg = addCodeArg;
|
|
114
121
|
function optimize(expr) {
|
|
115
122
|
let i = 1;
|
|
@@ -125,6 +132,7 @@ var require_code = __commonJS({
|
|
|
125
132
|
i++;
|
|
126
133
|
}
|
|
127
134
|
}
|
|
135
|
+
__name(optimize, "optimize");
|
|
128
136
|
function mergeExprItems(a, b) {
|
|
129
137
|
if (b === '""')
|
|
130
138
|
return a;
|
|
@@ -143,24 +151,30 @@ var require_code = __commonJS({
|
|
|
143
151
|
return `"${a}${b.slice(1)}`;
|
|
144
152
|
return;
|
|
145
153
|
}
|
|
154
|
+
__name(mergeExprItems, "mergeExprItems");
|
|
146
155
|
function strConcat(c1, c2) {
|
|
147
156
|
return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str`${c1}${c2}`;
|
|
148
157
|
}
|
|
158
|
+
__name(strConcat, "strConcat");
|
|
149
159
|
exports.strConcat = strConcat;
|
|
150
160
|
function interpolate(x) {
|
|
151
161
|
return typeof x == "number" || typeof x == "boolean" || x === null ? x : safeStringify(Array.isArray(x) ? x.join(",") : x);
|
|
152
162
|
}
|
|
163
|
+
__name(interpolate, "interpolate");
|
|
153
164
|
function stringify(x) {
|
|
154
165
|
return new _Code(safeStringify(x));
|
|
155
166
|
}
|
|
167
|
+
__name(stringify, "stringify");
|
|
156
168
|
exports.stringify = stringify;
|
|
157
169
|
function safeStringify(x) {
|
|
158
170
|
return JSON.stringify(x).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
|
|
159
171
|
}
|
|
172
|
+
__name(safeStringify, "safeStringify");
|
|
160
173
|
exports.safeStringify = safeStringify;
|
|
161
174
|
function getProperty(key) {
|
|
162
175
|
return typeof key == "string" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]`;
|
|
163
176
|
}
|
|
177
|
+
__name(getProperty, "getProperty");
|
|
164
178
|
exports.getProperty = getProperty;
|
|
165
179
|
function getEsmExportName(key) {
|
|
166
180
|
if (typeof key == "string" && exports.IDENTIFIER.test(key)) {
|
|
@@ -168,10 +182,12 @@ var require_code = __commonJS({
|
|
|
168
182
|
}
|
|
169
183
|
throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`);
|
|
170
184
|
}
|
|
185
|
+
__name(getEsmExportName, "getEsmExportName");
|
|
171
186
|
exports.getEsmExportName = getEsmExportName;
|
|
172
187
|
function regexpCode(rx) {
|
|
173
188
|
return new _Code(rx.toString());
|
|
174
189
|
}
|
|
190
|
+
__name(regexpCode, "regexpCode");
|
|
175
191
|
exports.regexpCode = regexpCode;
|
|
176
192
|
}
|
|
177
193
|
});
|
|
@@ -189,6 +205,7 @@ var require_scope = __commonJS({
|
|
|
189
205
|
this.value = name.value;
|
|
190
206
|
}
|
|
191
207
|
};
|
|
208
|
+
__name(ValueError, "ValueError");
|
|
192
209
|
var UsedValueState;
|
|
193
210
|
(function(UsedValueState2) {
|
|
194
211
|
UsedValueState2[UsedValueState2["Started"] = 0] = "Started";
|
|
@@ -223,6 +240,7 @@ var require_scope = __commonJS({
|
|
|
223
240
|
return this._names[prefix] = { prefix, index: 0 };
|
|
224
241
|
}
|
|
225
242
|
};
|
|
243
|
+
__name(Scope, "Scope");
|
|
226
244
|
exports.Scope = Scope;
|
|
227
245
|
var ValueScopeName = class extends code_1.Name {
|
|
228
246
|
constructor(prefix, nameStr) {
|
|
@@ -234,6 +252,7 @@ var require_scope = __commonJS({
|
|
|
234
252
|
this.scopePath = (0, code_1._)`.${new code_1.Name(property)}[${itemIndex}]`;
|
|
235
253
|
}
|
|
236
254
|
};
|
|
255
|
+
__name(ValueScopeName, "ValueScopeName");
|
|
237
256
|
exports.ValueScopeName = ValueScopeName;
|
|
238
257
|
var line = (0, code_1._)`\n`;
|
|
239
258
|
var ValueScope = class extends Scope {
|
|
@@ -317,6 +336,7 @@ var require_scope = __commonJS({
|
|
|
317
336
|
return code;
|
|
318
337
|
}
|
|
319
338
|
};
|
|
339
|
+
__name(ValueScope, "ValueScope");
|
|
320
340
|
exports.ValueScope = ValueScope;
|
|
321
341
|
}
|
|
322
342
|
});
|
|
@@ -387,6 +407,7 @@ var require_codegen = __commonJS({
|
|
|
387
407
|
return this;
|
|
388
408
|
}
|
|
389
409
|
};
|
|
410
|
+
__name(Node, "Node");
|
|
390
411
|
var Def = class extends Node {
|
|
391
412
|
constructor(varKind, name, rhs) {
|
|
392
413
|
super();
|
|
@@ -410,6 +431,7 @@ var require_codegen = __commonJS({
|
|
|
410
431
|
return this.rhs instanceof code_1._CodeOrName ? this.rhs.names : {};
|
|
411
432
|
}
|
|
412
433
|
};
|
|
434
|
+
__name(Def, "Def");
|
|
413
435
|
var Assign = class extends Node {
|
|
414
436
|
constructor(lhs, rhs, sideEffects) {
|
|
415
437
|
super();
|
|
@@ -431,6 +453,7 @@ var require_codegen = __commonJS({
|
|
|
431
453
|
return addExprNames(names, this.rhs);
|
|
432
454
|
}
|
|
433
455
|
};
|
|
456
|
+
__name(Assign, "Assign");
|
|
434
457
|
var AssignOp = class extends Assign {
|
|
435
458
|
constructor(lhs, op, rhs, sideEffects) {
|
|
436
459
|
super(lhs, rhs, sideEffects);
|
|
@@ -440,6 +463,7 @@ var require_codegen = __commonJS({
|
|
|
440
463
|
return `${this.lhs} ${this.op}= ${this.rhs};` + _n;
|
|
441
464
|
}
|
|
442
465
|
};
|
|
466
|
+
__name(AssignOp, "AssignOp");
|
|
443
467
|
var Label = class extends Node {
|
|
444
468
|
constructor(label) {
|
|
445
469
|
super();
|
|
@@ -450,6 +474,7 @@ var require_codegen = __commonJS({
|
|
|
450
474
|
return `${this.label}:` + _n;
|
|
451
475
|
}
|
|
452
476
|
};
|
|
477
|
+
__name(Label, "Label");
|
|
453
478
|
var Break = class extends Node {
|
|
454
479
|
constructor(label) {
|
|
455
480
|
super();
|
|
@@ -461,6 +486,7 @@ var require_codegen = __commonJS({
|
|
|
461
486
|
return `break${label};` + _n;
|
|
462
487
|
}
|
|
463
488
|
};
|
|
489
|
+
__name(Break, "Break");
|
|
464
490
|
var Throw = class extends Node {
|
|
465
491
|
constructor(error) {
|
|
466
492
|
super();
|
|
@@ -473,6 +499,7 @@ var require_codegen = __commonJS({
|
|
|
473
499
|
return this.error.names;
|
|
474
500
|
}
|
|
475
501
|
};
|
|
502
|
+
__name(Throw, "Throw");
|
|
476
503
|
var AnyCode = class extends Node {
|
|
477
504
|
constructor(code) {
|
|
478
505
|
super();
|
|
@@ -492,6 +519,7 @@ var require_codegen = __commonJS({
|
|
|
492
519
|
return this.code instanceof code_1._CodeOrName ? this.code.names : {};
|
|
493
520
|
}
|
|
494
521
|
};
|
|
522
|
+
__name(AnyCode, "AnyCode");
|
|
495
523
|
var ParentNode = class extends Node {
|
|
496
524
|
constructor(nodes = []) {
|
|
497
525
|
super();
|
|
@@ -530,15 +558,19 @@ var require_codegen = __commonJS({
|
|
|
530
558
|
return this.nodes.reduce((names, n) => addNames(names, n.names), {});
|
|
531
559
|
}
|
|
532
560
|
};
|
|
561
|
+
__name(ParentNode, "ParentNode");
|
|
533
562
|
var BlockNode = class extends ParentNode {
|
|
534
563
|
render(opts) {
|
|
535
564
|
return "{" + opts._n + super.render(opts) + "}" + opts._n;
|
|
536
565
|
}
|
|
537
566
|
};
|
|
567
|
+
__name(BlockNode, "BlockNode");
|
|
538
568
|
var Root = class extends ParentNode {
|
|
539
569
|
};
|
|
570
|
+
__name(Root, "Root");
|
|
540
571
|
var Else = class extends BlockNode {
|
|
541
572
|
};
|
|
573
|
+
__name(Else, "Else");
|
|
542
574
|
Else.kind = "else";
|
|
543
575
|
var If = class extends BlockNode {
|
|
544
576
|
constructor(condition, nodes) {
|
|
@@ -588,9 +620,11 @@ var require_codegen = __commonJS({
|
|
|
588
620
|
return names;
|
|
589
621
|
}
|
|
590
622
|
};
|
|
623
|
+
__name(If, "If");
|
|
591
624
|
If.kind = "if";
|
|
592
625
|
var For = class extends BlockNode {
|
|
593
626
|
};
|
|
627
|
+
__name(For, "For");
|
|
594
628
|
For.kind = "for";
|
|
595
629
|
var ForLoop = class extends For {
|
|
596
630
|
constructor(iteration) {
|
|
@@ -610,6 +644,7 @@ var require_codegen = __commonJS({
|
|
|
610
644
|
return addNames(super.names, this.iteration.names);
|
|
611
645
|
}
|
|
612
646
|
};
|
|
647
|
+
__name(ForLoop, "ForLoop");
|
|
613
648
|
var ForRange = class extends For {
|
|
614
649
|
constructor(varKind, name, from, to) {
|
|
615
650
|
super();
|
|
@@ -628,6 +663,7 @@ var require_codegen = __commonJS({
|
|
|
628
663
|
return addExprNames(names, this.to);
|
|
629
664
|
}
|
|
630
665
|
};
|
|
666
|
+
__name(ForRange, "ForRange");
|
|
631
667
|
var ForIter = class extends For {
|
|
632
668
|
constructor(loop, varKind, name, iterable) {
|
|
633
669
|
super();
|
|
@@ -649,6 +685,7 @@ var require_codegen = __commonJS({
|
|
|
649
685
|
return addNames(super.names, this.iterable.names);
|
|
650
686
|
}
|
|
651
687
|
};
|
|
688
|
+
__name(ForIter, "ForIter");
|
|
652
689
|
var Func = class extends BlockNode {
|
|
653
690
|
constructor(name, args, async) {
|
|
654
691
|
super();
|
|
@@ -661,12 +698,14 @@ var require_codegen = __commonJS({
|
|
|
661
698
|
return `${_async}function ${this.name}(${this.args})` + super.render(opts);
|
|
662
699
|
}
|
|
663
700
|
};
|
|
701
|
+
__name(Func, "Func");
|
|
664
702
|
Func.kind = "func";
|
|
665
703
|
var Return = class extends ParentNode {
|
|
666
704
|
render(opts) {
|
|
667
705
|
return "return " + super.render(opts);
|
|
668
706
|
}
|
|
669
707
|
};
|
|
708
|
+
__name(Return, "Return");
|
|
670
709
|
Return.kind = "return";
|
|
671
710
|
var Try = class extends BlockNode {
|
|
672
711
|
render(opts) {
|
|
@@ -700,6 +739,7 @@ var require_codegen = __commonJS({
|
|
|
700
739
|
return names;
|
|
701
740
|
}
|
|
702
741
|
};
|
|
742
|
+
__name(Try, "Try");
|
|
703
743
|
var Catch = class extends BlockNode {
|
|
704
744
|
constructor(error) {
|
|
705
745
|
super();
|
|
@@ -709,12 +749,14 @@ var require_codegen = __commonJS({
|
|
|
709
749
|
return `catch(${this.error})` + super.render(opts);
|
|
710
750
|
}
|
|
711
751
|
};
|
|
752
|
+
__name(Catch, "Catch");
|
|
712
753
|
Catch.kind = "catch";
|
|
713
754
|
var Finally = class extends BlockNode {
|
|
714
755
|
render(opts) {
|
|
715
756
|
return "finally" + super.render(opts);
|
|
716
757
|
}
|
|
717
758
|
};
|
|
759
|
+
__name(Finally, "Finally");
|
|
718
760
|
Finally.kind = "finally";
|
|
719
761
|
var CodeGen = class {
|
|
720
762
|
constructor(extScope, opts = {}) {
|
|
@@ -980,15 +1022,18 @@ var require_codegen = __commonJS({
|
|
|
980
1022
|
ns[ns.length - 1] = node;
|
|
981
1023
|
}
|
|
982
1024
|
};
|
|
1025
|
+
__name(CodeGen, "CodeGen");
|
|
983
1026
|
exports.CodeGen = CodeGen;
|
|
984
1027
|
function addNames(names, from) {
|
|
985
1028
|
for (const n in from)
|
|
986
1029
|
names[n] = (names[n] || 0) + (from[n] || 0);
|
|
987
1030
|
return names;
|
|
988
1031
|
}
|
|
1032
|
+
__name(addNames, "addNames");
|
|
989
1033
|
function addExprNames(names, from) {
|
|
990
1034
|
return from instanceof code_1._CodeOrName ? addNames(names, from.names) : names;
|
|
991
1035
|
}
|
|
1036
|
+
__name(addExprNames, "addExprNames");
|
|
992
1037
|
function optimizeExpr(expr, names, constants) {
|
|
993
1038
|
if (expr instanceof code_1.Name)
|
|
994
1039
|
return replaceName(expr);
|
|
@@ -1010,34 +1055,43 @@ var require_codegen = __commonJS({
|
|
|
1010
1055
|
delete names[n.str];
|
|
1011
1056
|
return c;
|
|
1012
1057
|
}
|
|
1058
|
+
__name(replaceName, "replaceName");
|
|
1013
1059
|
function canOptimize(e) {
|
|
1014
1060
|
return e instanceof code_1._Code && e._items.some((c) => c instanceof code_1.Name && names[c.str] === 1 && constants[c.str] !== void 0);
|
|
1015
1061
|
}
|
|
1062
|
+
__name(canOptimize, "canOptimize");
|
|
1016
1063
|
}
|
|
1064
|
+
__name(optimizeExpr, "optimizeExpr");
|
|
1017
1065
|
function subtractNames(names, from) {
|
|
1018
1066
|
for (const n in from)
|
|
1019
1067
|
names[n] = (names[n] || 0) - (from[n] || 0);
|
|
1020
1068
|
}
|
|
1069
|
+
__name(subtractNames, "subtractNames");
|
|
1021
1070
|
function not(x) {
|
|
1022
1071
|
return typeof x == "boolean" || typeof x == "number" || x === null ? !x : (0, code_1._)`!${par(x)}`;
|
|
1023
1072
|
}
|
|
1073
|
+
__name(not, "not");
|
|
1024
1074
|
exports.not = not;
|
|
1025
1075
|
var andCode = mappend(exports.operators.AND);
|
|
1026
1076
|
function and(...args) {
|
|
1027
1077
|
return args.reduce(andCode);
|
|
1028
1078
|
}
|
|
1079
|
+
__name(and, "and");
|
|
1029
1080
|
exports.and = and;
|
|
1030
1081
|
var orCode = mappend(exports.operators.OR);
|
|
1031
1082
|
function or(...args) {
|
|
1032
1083
|
return args.reduce(orCode);
|
|
1033
1084
|
}
|
|
1085
|
+
__name(or, "or");
|
|
1034
1086
|
exports.or = or;
|
|
1035
1087
|
function mappend(op) {
|
|
1036
1088
|
return (x, y) => x === code_1.nil ? y : y === code_1.nil ? x : (0, code_1._)`${par(x)} ${op} ${par(y)}`;
|
|
1037
1089
|
}
|
|
1090
|
+
__name(mappend, "mappend");
|
|
1038
1091
|
function par(x) {
|
|
1039
1092
|
return x instanceof code_1.Name ? x : (0, code_1._)`(${x})`;
|
|
1040
1093
|
}
|
|
1094
|
+
__name(par, "par");
|
|
1041
1095
|
}
|
|
1042
1096
|
});
|
|
1043
1097
|
|
|
@@ -1055,6 +1109,7 @@ var require_util = __commonJS({
|
|
|
1055
1109
|
hash[item] = true;
|
|
1056
1110
|
return hash;
|
|
1057
1111
|
}
|
|
1112
|
+
__name(toHash, "toHash");
|
|
1058
1113
|
exports.toHash = toHash;
|
|
1059
1114
|
function alwaysValidSchema(it, schema) {
|
|
1060
1115
|
if (typeof schema == "boolean")
|
|
@@ -1064,6 +1119,7 @@ var require_util = __commonJS({
|
|
|
1064
1119
|
checkUnknownRules(it, schema);
|
|
1065
1120
|
return !schemaHasRules(schema, it.self.RULES.all);
|
|
1066
1121
|
}
|
|
1122
|
+
__name(alwaysValidSchema, "alwaysValidSchema");
|
|
1067
1123
|
exports.alwaysValidSchema = alwaysValidSchema;
|
|
1068
1124
|
function checkUnknownRules(it, schema = it.schema) {
|
|
1069
1125
|
const { opts, self: self2 } = it;
|
|
@@ -1077,6 +1133,7 @@ var require_util = __commonJS({
|
|
|
1077
1133
|
checkStrictMode(it, `unknown keyword: "${key}"`);
|
|
1078
1134
|
}
|
|
1079
1135
|
}
|
|
1136
|
+
__name(checkUnknownRules, "checkUnknownRules");
|
|
1080
1137
|
exports.checkUnknownRules = checkUnknownRules;
|
|
1081
1138
|
function schemaHasRules(schema, rules) {
|
|
1082
1139
|
if (typeof schema == "boolean")
|
|
@@ -1086,6 +1143,7 @@ var require_util = __commonJS({
|
|
|
1086
1143
|
return true;
|
|
1087
1144
|
return false;
|
|
1088
1145
|
}
|
|
1146
|
+
__name(schemaHasRules, "schemaHasRules");
|
|
1089
1147
|
exports.schemaHasRules = schemaHasRules;
|
|
1090
1148
|
function schemaHasRulesButRef(schema, RULES) {
|
|
1091
1149
|
if (typeof schema == "boolean")
|
|
@@ -1095,6 +1153,7 @@ var require_util = __commonJS({
|
|
|
1095
1153
|
return true;
|
|
1096
1154
|
return false;
|
|
1097
1155
|
}
|
|
1156
|
+
__name(schemaHasRulesButRef, "schemaHasRulesButRef");
|
|
1098
1157
|
exports.schemaHasRulesButRef = schemaHasRulesButRef;
|
|
1099
1158
|
function schemaRefOrVal({ topSchemaRef, schemaPath }, schema, keyword, $data) {
|
|
1100
1159
|
if (!$data) {
|
|
@@ -1105,24 +1164,29 @@ var require_util = __commonJS({
|
|
|
1105
1164
|
}
|
|
1106
1165
|
return (0, codegen_1._)`${topSchemaRef}${schemaPath}${(0, codegen_1.getProperty)(keyword)}`;
|
|
1107
1166
|
}
|
|
1167
|
+
__name(schemaRefOrVal, "schemaRefOrVal");
|
|
1108
1168
|
exports.schemaRefOrVal = schemaRefOrVal;
|
|
1109
1169
|
function unescapeFragment(str) {
|
|
1110
1170
|
return unescapeJsonPointer(decodeURIComponent(str));
|
|
1111
1171
|
}
|
|
1172
|
+
__name(unescapeFragment, "unescapeFragment");
|
|
1112
1173
|
exports.unescapeFragment = unescapeFragment;
|
|
1113
1174
|
function escapeFragment(str) {
|
|
1114
1175
|
return encodeURIComponent(escapeJsonPointer(str));
|
|
1115
1176
|
}
|
|
1177
|
+
__name(escapeFragment, "escapeFragment");
|
|
1116
1178
|
exports.escapeFragment = escapeFragment;
|
|
1117
1179
|
function escapeJsonPointer(str) {
|
|
1118
1180
|
if (typeof str == "number")
|
|
1119
1181
|
return `${str}`;
|
|
1120
1182
|
return str.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
1121
1183
|
}
|
|
1184
|
+
__name(escapeJsonPointer, "escapeJsonPointer");
|
|
1122
1185
|
exports.escapeJsonPointer = escapeJsonPointer;
|
|
1123
1186
|
function unescapeJsonPointer(str) {
|
|
1124
1187
|
return str.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
1125
1188
|
}
|
|
1189
|
+
__name(unescapeJsonPointer, "unescapeJsonPointer");
|
|
1126
1190
|
exports.unescapeJsonPointer = unescapeJsonPointer;
|
|
1127
1191
|
function eachItem(xs, f) {
|
|
1128
1192
|
if (Array.isArray(xs)) {
|
|
@@ -1132,6 +1196,7 @@ var require_util = __commonJS({
|
|
|
1132
1196
|
f(xs);
|
|
1133
1197
|
}
|
|
1134
1198
|
}
|
|
1199
|
+
__name(eachItem, "eachItem");
|
|
1135
1200
|
exports.eachItem = eachItem;
|
|
1136
1201
|
function makeMergeEvaluated({ mergeNames, mergeToName, mergeValues, resultToName }) {
|
|
1137
1202
|
return (gen, from, to, toName) => {
|
|
@@ -1139,6 +1204,7 @@ var require_util = __commonJS({
|
|
|
1139
1204
|
return toName === codegen_1.Name && !(res instanceof codegen_1.Name) ? resultToName(gen, res) : res;
|
|
1140
1205
|
};
|
|
1141
1206
|
}
|
|
1207
|
+
__name(makeMergeEvaluated, "makeMergeEvaluated");
|
|
1142
1208
|
exports.mergeEvaluated = {
|
|
1143
1209
|
props: makeMergeEvaluated({
|
|
1144
1210
|
mergeNames: (gen, from, to) => gen.if((0, codegen_1._)`${to} !== true && ${from} !== undefined`, () => {
|
|
@@ -1170,10 +1236,12 @@ var require_util = __commonJS({
|
|
|
1170
1236
|
setEvaluated(gen, props, ps);
|
|
1171
1237
|
return props;
|
|
1172
1238
|
}
|
|
1239
|
+
__name(evaluatedPropsToName, "evaluatedPropsToName");
|
|
1173
1240
|
exports.evaluatedPropsToName = evaluatedPropsToName;
|
|
1174
1241
|
function setEvaluated(gen, props, ps) {
|
|
1175
1242
|
Object.keys(ps).forEach((p) => gen.assign((0, codegen_1._)`${props}${(0, codegen_1.getProperty)(p)}`, true));
|
|
1176
1243
|
}
|
|
1244
|
+
__name(setEvaluated, "setEvaluated");
|
|
1177
1245
|
exports.setEvaluated = setEvaluated;
|
|
1178
1246
|
var snippets = {};
|
|
1179
1247
|
function useFunc(gen, f) {
|
|
@@ -1182,6 +1250,7 @@ var require_util = __commonJS({
|
|
|
1182
1250
|
code: snippets[f.code] || (snippets[f.code] = new code_1._Code(f.code))
|
|
1183
1251
|
});
|
|
1184
1252
|
}
|
|
1253
|
+
__name(useFunc, "useFunc");
|
|
1185
1254
|
exports.useFunc = useFunc;
|
|
1186
1255
|
var Type;
|
|
1187
1256
|
(function(Type2) {
|
|
@@ -1195,6 +1264,7 @@ var require_util = __commonJS({
|
|
|
1195
1264
|
}
|
|
1196
1265
|
return jsPropertySyntax ? (0, codegen_1.getProperty)(dataProp).toString() : "/" + escapeJsonPointer(dataProp);
|
|
1197
1266
|
}
|
|
1267
|
+
__name(getErrorPath, "getErrorPath");
|
|
1198
1268
|
exports.getErrorPath = getErrorPath;
|
|
1199
1269
|
function checkStrictMode(it, msg, mode = it.opts.strictSchema) {
|
|
1200
1270
|
if (!mode)
|
|
@@ -1204,6 +1274,7 @@ var require_util = __commonJS({
|
|
|
1204
1274
|
throw new Error(msg);
|
|
1205
1275
|
it.self.logger.warn(msg);
|
|
1206
1276
|
}
|
|
1277
|
+
__name(checkStrictMode, "checkStrictMode");
|
|
1207
1278
|
exports.checkStrictMode = checkStrictMode;
|
|
1208
1279
|
}
|
|
1209
1280
|
});
|
|
@@ -1266,6 +1337,7 @@ var require_errors = __commonJS({
|
|
|
1266
1337
|
returnErrors(it, (0, codegen_1._)`[${errObj}]`);
|
|
1267
1338
|
}
|
|
1268
1339
|
}
|
|
1340
|
+
__name(reportError, "reportError");
|
|
1269
1341
|
exports.reportError = reportError;
|
|
1270
1342
|
function reportExtraError(cxt, error = exports.keywordError, errorPaths) {
|
|
1271
1343
|
const { it } = cxt;
|
|
@@ -1276,11 +1348,13 @@ var require_errors = __commonJS({
|
|
|
1276
1348
|
returnErrors(it, names_1.default.vErrors);
|
|
1277
1349
|
}
|
|
1278
1350
|
}
|
|
1351
|
+
__name(reportExtraError, "reportExtraError");
|
|
1279
1352
|
exports.reportExtraError = reportExtraError;
|
|
1280
1353
|
function resetErrorsCount(gen, errsCount) {
|
|
1281
1354
|
gen.assign(names_1.default.errors, errsCount);
|
|
1282
1355
|
gen.if((0, codegen_1._)`${names_1.default.vErrors} !== null`, () => gen.if(errsCount, () => gen.assign((0, codegen_1._)`${names_1.default.vErrors}.length`, errsCount), () => gen.assign(names_1.default.vErrors, null)));
|
|
1283
1356
|
}
|
|
1357
|
+
__name(resetErrorsCount, "resetErrorsCount");
|
|
1284
1358
|
exports.resetErrorsCount = resetErrorsCount;
|
|
1285
1359
|
function extendErrors({ gen, keyword, schemaValue, data, errsCount, it }) {
|
|
1286
1360
|
if (errsCount === void 0)
|
|
@@ -1296,12 +1370,14 @@ var require_errors = __commonJS({
|
|
|
1296
1370
|
}
|
|
1297
1371
|
});
|
|
1298
1372
|
}
|
|
1373
|
+
__name(extendErrors, "extendErrors");
|
|
1299
1374
|
exports.extendErrors = extendErrors;
|
|
1300
1375
|
function addError(gen, errObj) {
|
|
1301
1376
|
const err = gen.const("err", errObj);
|
|
1302
1377
|
gen.if((0, codegen_1._)`${names_1.default.vErrors} === null`, () => gen.assign(names_1.default.vErrors, (0, codegen_1._)`[${err}]`), (0, codegen_1._)`${names_1.default.vErrors}.push(${err})`);
|
|
1303
1378
|
gen.code((0, codegen_1._)`${names_1.default.errors}++`);
|
|
1304
1379
|
}
|
|
1380
|
+
__name(addError, "addError");
|
|
1305
1381
|
function returnErrors(it, errs) {
|
|
1306
1382
|
const { gen, validateName, schemaEnv } = it;
|
|
1307
1383
|
if (schemaEnv.$async) {
|
|
@@ -1311,6 +1387,7 @@ var require_errors = __commonJS({
|
|
|
1311
1387
|
gen.return(false);
|
|
1312
1388
|
}
|
|
1313
1389
|
}
|
|
1390
|
+
__name(returnErrors, "returnErrors");
|
|
1314
1391
|
var E = {
|
|
1315
1392
|
keyword: new codegen_1.Name("keyword"),
|
|
1316
1393
|
schemaPath: new codegen_1.Name("schemaPath"),
|
|
@@ -1326,6 +1403,7 @@ var require_errors = __commonJS({
|
|
|
1326
1403
|
return (0, codegen_1._)`{}`;
|
|
1327
1404
|
return errorObject(cxt, error, errorPaths);
|
|
1328
1405
|
}
|
|
1406
|
+
__name(errorObjectCode, "errorObjectCode");
|
|
1329
1407
|
function errorObject(cxt, error, errorPaths = {}) {
|
|
1330
1408
|
const { gen, it } = cxt;
|
|
1331
1409
|
const keyValues = [
|
|
@@ -1335,10 +1413,12 @@ var require_errors = __commonJS({
|
|
|
1335
1413
|
extraErrorProps(cxt, error, keyValues);
|
|
1336
1414
|
return gen.object(...keyValues);
|
|
1337
1415
|
}
|
|
1416
|
+
__name(errorObject, "errorObject");
|
|
1338
1417
|
function errorInstancePath({ errorPath }, { instancePath }) {
|
|
1339
1418
|
const instPath = instancePath ? (0, codegen_1.str)`${errorPath}${(0, util_1.getErrorPath)(instancePath, util_1.Type.Str)}` : errorPath;
|
|
1340
1419
|
return [names_1.default.instancePath, (0, codegen_1.strConcat)(names_1.default.instancePath, instPath)];
|
|
1341
1420
|
}
|
|
1421
|
+
__name(errorInstancePath, "errorInstancePath");
|
|
1342
1422
|
function errorSchemaPath({ keyword, it: { errSchemaPath } }, { schemaPath, parentSchema }) {
|
|
1343
1423
|
let schPath = parentSchema ? errSchemaPath : (0, codegen_1.str)`${errSchemaPath}/${keyword}`;
|
|
1344
1424
|
if (schemaPath) {
|
|
@@ -1346,6 +1426,7 @@ var require_errors = __commonJS({
|
|
|
1346
1426
|
}
|
|
1347
1427
|
return [E.schemaPath, schPath];
|
|
1348
1428
|
}
|
|
1429
|
+
__name(errorSchemaPath, "errorSchemaPath");
|
|
1349
1430
|
function extraErrorProps(cxt, { params, message }, keyValues) {
|
|
1350
1431
|
const { keyword, data, schemaValue, it } = cxt;
|
|
1351
1432
|
const { opts, propertyName, topSchemaRef, schemaPath } = it;
|
|
@@ -1359,6 +1440,7 @@ var require_errors = __commonJS({
|
|
|
1359
1440
|
if (propertyName)
|
|
1360
1441
|
keyValues.push([E.propertyName, propertyName]);
|
|
1361
1442
|
}
|
|
1443
|
+
__name(extraErrorProps, "extraErrorProps");
|
|
1362
1444
|
}
|
|
1363
1445
|
});
|
|
1364
1446
|
|
|
@@ -1385,6 +1467,7 @@ var require_boolSchema = __commonJS({
|
|
|
1385
1467
|
gen.return(true);
|
|
1386
1468
|
}
|
|
1387
1469
|
}
|
|
1470
|
+
__name(topBoolOrEmptySchema, "topBoolOrEmptySchema");
|
|
1388
1471
|
exports.topBoolOrEmptySchema = topBoolOrEmptySchema;
|
|
1389
1472
|
function boolOrEmptySchema(it, valid) {
|
|
1390
1473
|
const { gen, schema } = it;
|
|
@@ -1395,6 +1478,7 @@ var require_boolSchema = __commonJS({
|
|
|
1395
1478
|
gen.var(valid, true);
|
|
1396
1479
|
}
|
|
1397
1480
|
}
|
|
1481
|
+
__name(boolOrEmptySchema, "boolOrEmptySchema");
|
|
1398
1482
|
exports.boolOrEmptySchema = boolOrEmptySchema;
|
|
1399
1483
|
function falseSchemaError(it, overrideAllErrors) {
|
|
1400
1484
|
const { gen, data } = it;
|
|
@@ -1410,6 +1494,7 @@ var require_boolSchema = __commonJS({
|
|
|
1410
1494
|
};
|
|
1411
1495
|
(0, errors_1.reportError)(cxt, boolError, void 0, overrideAllErrors);
|
|
1412
1496
|
}
|
|
1497
|
+
__name(falseSchemaError, "falseSchemaError");
|
|
1413
1498
|
}
|
|
1414
1499
|
});
|
|
1415
1500
|
|
|
@@ -1424,6 +1509,7 @@ var require_rules = __commonJS({
|
|
|
1424
1509
|
function isJSONType(x) {
|
|
1425
1510
|
return typeof x == "string" && jsonTypes.has(x);
|
|
1426
1511
|
}
|
|
1512
|
+
__name(isJSONType, "isJSONType");
|
|
1427
1513
|
exports.isJSONType = isJSONType;
|
|
1428
1514
|
function getRules() {
|
|
1429
1515
|
const groups = {
|
|
@@ -1440,6 +1526,7 @@ var require_rules = __commonJS({
|
|
|
1440
1526
|
keywords: {}
|
|
1441
1527
|
};
|
|
1442
1528
|
}
|
|
1529
|
+
__name(getRules, "getRules");
|
|
1443
1530
|
exports.getRules = getRules;
|
|
1444
1531
|
}
|
|
1445
1532
|
});
|
|
@@ -1454,15 +1541,18 @@ var require_applicability = __commonJS({
|
|
|
1454
1541
|
const group = self2.RULES.types[type];
|
|
1455
1542
|
return group && group !== true && shouldUseGroup(schema, group);
|
|
1456
1543
|
}
|
|
1544
|
+
__name(schemaHasRulesForType, "schemaHasRulesForType");
|
|
1457
1545
|
exports.schemaHasRulesForType = schemaHasRulesForType;
|
|
1458
1546
|
function shouldUseGroup(schema, group) {
|
|
1459
1547
|
return group.rules.some((rule) => shouldUseRule(schema, rule));
|
|
1460
1548
|
}
|
|
1549
|
+
__name(shouldUseGroup, "shouldUseGroup");
|
|
1461
1550
|
exports.shouldUseGroup = shouldUseGroup;
|
|
1462
1551
|
function shouldUseRule(schema, rule) {
|
|
1463
1552
|
var _a;
|
|
1464
1553
|
return schema[rule.keyword] !== void 0 || ((_a = rule.definition.implements) === null || _a === void 0 ? void 0 : _a.some((kwd) => schema[kwd] !== void 0));
|
|
1465
1554
|
}
|
|
1555
|
+
__name(shouldUseRule, "shouldUseRule");
|
|
1466
1556
|
exports.shouldUseRule = shouldUseRule;
|
|
1467
1557
|
}
|
|
1468
1558
|
});
|
|
@@ -1498,6 +1588,7 @@ var require_dataType = __commonJS({
|
|
|
1498
1588
|
}
|
|
1499
1589
|
return types;
|
|
1500
1590
|
}
|
|
1591
|
+
__name(getSchemaTypes, "getSchemaTypes");
|
|
1501
1592
|
exports.getSchemaTypes = getSchemaTypes;
|
|
1502
1593
|
function getJSONTypes(ts) {
|
|
1503
1594
|
const types = Array.isArray(ts) ? ts : ts ? [ts] : [];
|
|
@@ -1505,6 +1596,7 @@ var require_dataType = __commonJS({
|
|
|
1505
1596
|
return types;
|
|
1506
1597
|
throw new Error("type must be JSONType or JSONType[]: " + types.join(","));
|
|
1507
1598
|
}
|
|
1599
|
+
__name(getJSONTypes, "getJSONTypes");
|
|
1508
1600
|
exports.getJSONTypes = getJSONTypes;
|
|
1509
1601
|
function coerceAndCheckDataType(it, types) {
|
|
1510
1602
|
const { gen, data, opts } = it;
|
|
@@ -1521,11 +1613,13 @@ var require_dataType = __commonJS({
|
|
|
1521
1613
|
}
|
|
1522
1614
|
return checkTypes;
|
|
1523
1615
|
}
|
|
1616
|
+
__name(coerceAndCheckDataType, "coerceAndCheckDataType");
|
|
1524
1617
|
exports.coerceAndCheckDataType = coerceAndCheckDataType;
|
|
1525
1618
|
var COERCIBLE = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
|
|
1526
1619
|
function coerceToTypes(types, coerceTypes) {
|
|
1527
1620
|
return coerceTypes ? types.filter((t) => COERCIBLE.has(t) || coerceTypes === "array" && t === "array") : [];
|
|
1528
1621
|
}
|
|
1622
|
+
__name(coerceToTypes, "coerceToTypes");
|
|
1529
1623
|
function coerceData(it, types, coerceTo) {
|
|
1530
1624
|
const { gen, data, opts } = it;
|
|
1531
1625
|
const dataType = gen.let("dataType", (0, codegen_1._)`typeof ${data}`);
|
|
@@ -1571,10 +1665,13 @@ var require_dataType = __commonJS({
|
|
|
1571
1665
|
|| ${dataType} === "boolean" || ${data} === null`).assign(coerced, (0, codegen_1._)`[${data}]`);
|
|
1572
1666
|
}
|
|
1573
1667
|
}
|
|
1668
|
+
__name(coerceSpecificType, "coerceSpecificType");
|
|
1574
1669
|
}
|
|
1670
|
+
__name(coerceData, "coerceData");
|
|
1575
1671
|
function assignParentData({ gen, parentData, parentDataProperty }, expr) {
|
|
1576
1672
|
gen.if((0, codegen_1._)`${parentData} !== undefined`, () => gen.assign((0, codegen_1._)`${parentData}[${parentDataProperty}]`, expr));
|
|
1577
1673
|
}
|
|
1674
|
+
__name(assignParentData, "assignParentData");
|
|
1578
1675
|
function checkDataType(dataType, data, strictNums, correct = DataType.Correct) {
|
|
1579
1676
|
const EQ = correct === DataType.Correct ? codegen_1.operators.EQ : codegen_1.operators.NEQ;
|
|
1580
1677
|
let cond;
|
|
@@ -1600,7 +1697,9 @@ var require_dataType = __commonJS({
|
|
|
1600
1697
|
function numCond(_cond = codegen_1.nil) {
|
|
1601
1698
|
return (0, codegen_1.and)((0, codegen_1._)`typeof ${data} == "number"`, _cond, strictNums ? (0, codegen_1._)`isFinite(${data})` : codegen_1.nil);
|
|
1602
1699
|
}
|
|
1700
|
+
__name(numCond, "numCond");
|
|
1603
1701
|
}
|
|
1702
|
+
__name(checkDataType, "checkDataType");
|
|
1604
1703
|
exports.checkDataType = checkDataType;
|
|
1605
1704
|
function checkDataTypes(dataTypes, data, strictNums, correct) {
|
|
1606
1705
|
if (dataTypes.length === 1) {
|
|
@@ -1623,6 +1722,7 @@ var require_dataType = __commonJS({
|
|
|
1623
1722
|
cond = (0, codegen_1.and)(cond, checkDataType(t, data, strictNums, correct));
|
|
1624
1723
|
return cond;
|
|
1625
1724
|
}
|
|
1725
|
+
__name(checkDataTypes, "checkDataTypes");
|
|
1626
1726
|
exports.checkDataTypes = checkDataTypes;
|
|
1627
1727
|
var typeError = {
|
|
1628
1728
|
message: ({ schema }) => `must be ${schema}`,
|
|
@@ -1632,6 +1732,7 @@ var require_dataType = __commonJS({
|
|
|
1632
1732
|
const cxt = getTypeErrorContext(it);
|
|
1633
1733
|
(0, errors_1.reportError)(cxt, typeError);
|
|
1634
1734
|
}
|
|
1735
|
+
__name(reportTypeError, "reportTypeError");
|
|
1635
1736
|
exports.reportTypeError = reportTypeError;
|
|
1636
1737
|
function getTypeErrorContext(it) {
|
|
1637
1738
|
const { gen, data, schema } = it;
|
|
@@ -1648,6 +1749,7 @@ var require_dataType = __commonJS({
|
|
|
1648
1749
|
it
|
|
1649
1750
|
};
|
|
1650
1751
|
}
|
|
1752
|
+
__name(getTypeErrorContext, "getTypeErrorContext");
|
|
1651
1753
|
}
|
|
1652
1754
|
});
|
|
1653
1755
|
|
|
@@ -1669,6 +1771,7 @@ var require_defaults = __commonJS({
|
|
|
1669
1771
|
items.forEach((sch, i) => assignDefault(it, i, sch.default));
|
|
1670
1772
|
}
|
|
1671
1773
|
}
|
|
1774
|
+
__name(assignDefaults, "assignDefaults");
|
|
1672
1775
|
exports.assignDefaults = assignDefaults;
|
|
1673
1776
|
function assignDefault(it, prop, defaultValue) {
|
|
1674
1777
|
const { gen, compositeRule, data, opts } = it;
|
|
@@ -1685,6 +1788,7 @@ var require_defaults = __commonJS({
|
|
|
1685
1788
|
}
|
|
1686
1789
|
gen.if(condition, (0, codegen_1._)`${childData} = ${(0, codegen_1.stringify)(defaultValue)}`);
|
|
1687
1790
|
}
|
|
1791
|
+
__name(assignDefault, "assignDefault");
|
|
1688
1792
|
}
|
|
1689
1793
|
});
|
|
1690
1794
|
|
|
@@ -1705,15 +1809,18 @@ var require_code2 = __commonJS({
|
|
|
1705
1809
|
cxt.error();
|
|
1706
1810
|
});
|
|
1707
1811
|
}
|
|
1812
|
+
__name(checkReportMissingProp, "checkReportMissingProp");
|
|
1708
1813
|
exports.checkReportMissingProp = checkReportMissingProp;
|
|
1709
1814
|
function checkMissingProp({ gen, data, it: { opts } }, properties, missing) {
|
|
1710
1815
|
return (0, codegen_1.or)(...properties.map((prop) => (0, codegen_1.and)(noPropertyInData(gen, data, prop, opts.ownProperties), (0, codegen_1._)`${missing} = ${prop}`)));
|
|
1711
1816
|
}
|
|
1817
|
+
__name(checkMissingProp, "checkMissingProp");
|
|
1712
1818
|
exports.checkMissingProp = checkMissingProp;
|
|
1713
1819
|
function reportMissingProp(cxt, missing) {
|
|
1714
1820
|
cxt.setParams({ missingProperty: missing }, true);
|
|
1715
1821
|
cxt.error();
|
|
1716
1822
|
}
|
|
1823
|
+
__name(reportMissingProp, "reportMissingProp");
|
|
1717
1824
|
exports.reportMissingProp = reportMissingProp;
|
|
1718
1825
|
function hasPropFunc(gen) {
|
|
1719
1826
|
return gen.scopeValue("func", {
|
|
@@ -1722,28 +1829,34 @@ var require_code2 = __commonJS({
|
|
|
1722
1829
|
code: (0, codegen_1._)`Object.prototype.hasOwnProperty`
|
|
1723
1830
|
});
|
|
1724
1831
|
}
|
|
1832
|
+
__name(hasPropFunc, "hasPropFunc");
|
|
1725
1833
|
exports.hasPropFunc = hasPropFunc;
|
|
1726
1834
|
function isOwnProperty(gen, data, property) {
|
|
1727
1835
|
return (0, codegen_1._)`${hasPropFunc(gen)}.call(${data}, ${property})`;
|
|
1728
1836
|
}
|
|
1837
|
+
__name(isOwnProperty, "isOwnProperty");
|
|
1729
1838
|
exports.isOwnProperty = isOwnProperty;
|
|
1730
1839
|
function propertyInData(gen, data, property, ownProperties) {
|
|
1731
1840
|
const cond = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(property)} !== undefined`;
|
|
1732
1841
|
return ownProperties ? (0, codegen_1._)`${cond} && ${isOwnProperty(gen, data, property)}` : cond;
|
|
1733
1842
|
}
|
|
1843
|
+
__name(propertyInData, "propertyInData");
|
|
1734
1844
|
exports.propertyInData = propertyInData;
|
|
1735
1845
|
function noPropertyInData(gen, data, property, ownProperties) {
|
|
1736
1846
|
const cond = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(property)} === undefined`;
|
|
1737
1847
|
return ownProperties ? (0, codegen_1.or)(cond, (0, codegen_1.not)(isOwnProperty(gen, data, property))) : cond;
|
|
1738
1848
|
}
|
|
1849
|
+
__name(noPropertyInData, "noPropertyInData");
|
|
1739
1850
|
exports.noPropertyInData = noPropertyInData;
|
|
1740
1851
|
function allSchemaProperties(schemaMap) {
|
|
1741
1852
|
return schemaMap ? Object.keys(schemaMap).filter((p) => p !== "__proto__") : [];
|
|
1742
1853
|
}
|
|
1854
|
+
__name(allSchemaProperties, "allSchemaProperties");
|
|
1743
1855
|
exports.allSchemaProperties = allSchemaProperties;
|
|
1744
1856
|
function schemaProperties(it, schemaMap) {
|
|
1745
1857
|
return allSchemaProperties(schemaMap).filter((p) => !(0, util_1.alwaysValidSchema)(it, schemaMap[p]));
|
|
1746
1858
|
}
|
|
1859
|
+
__name(schemaProperties, "schemaProperties");
|
|
1747
1860
|
exports.schemaProperties = schemaProperties;
|
|
1748
1861
|
function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it }, func, context, passSchema) {
|
|
1749
1862
|
const dataAndSchema = passSchema ? (0, codegen_1._)`${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data;
|
|
@@ -1758,6 +1871,7 @@ var require_code2 = __commonJS({
|
|
|
1758
1871
|
const args = (0, codegen_1._)`${dataAndSchema}, ${gen.object(...valCxt)}`;
|
|
1759
1872
|
return context !== codegen_1.nil ? (0, codegen_1._)`${func}.call(${context}, ${args})` : (0, codegen_1._)`${func}(${args})`;
|
|
1760
1873
|
}
|
|
1874
|
+
__name(callValidateCode, "callValidateCode");
|
|
1761
1875
|
exports.callValidateCode = callValidateCode;
|
|
1762
1876
|
var newRegExp = (0, codegen_1._)`new RegExp`;
|
|
1763
1877
|
function usePattern({ gen, it: { opts } }, pattern) {
|
|
@@ -1770,6 +1884,7 @@ var require_code2 = __commonJS({
|
|
|
1770
1884
|
code: (0, codegen_1._)`${regExp.code === "new RegExp" ? newRegExp : (0, util_2.useFunc)(gen, regExp)}(${pattern}, ${u})`
|
|
1771
1885
|
});
|
|
1772
1886
|
}
|
|
1887
|
+
__name(usePattern, "usePattern");
|
|
1773
1888
|
exports.usePattern = usePattern;
|
|
1774
1889
|
function validateArray(cxt) {
|
|
1775
1890
|
const { gen, data, keyword, it } = cxt;
|
|
@@ -1793,7 +1908,9 @@ var require_code2 = __commonJS({
|
|
|
1793
1908
|
gen.if((0, codegen_1.not)(valid), notValid);
|
|
1794
1909
|
});
|
|
1795
1910
|
}
|
|
1911
|
+
__name(validateItems, "validateItems");
|
|
1796
1912
|
}
|
|
1913
|
+
__name(validateArray, "validateArray");
|
|
1797
1914
|
exports.validateArray = validateArray;
|
|
1798
1915
|
function validateUnion(cxt) {
|
|
1799
1916
|
const { gen, schema, keyword, it } = cxt;
|
|
@@ -1817,6 +1934,7 @@ var require_code2 = __commonJS({
|
|
|
1817
1934
|
}));
|
|
1818
1935
|
cxt.result(valid, () => cxt.reset(), () => cxt.error(true));
|
|
1819
1936
|
}
|
|
1937
|
+
__name(validateUnion, "validateUnion");
|
|
1820
1938
|
exports.validateUnion = validateUnion;
|
|
1821
1939
|
}
|
|
1822
1940
|
});
|
|
@@ -1847,6 +1965,7 @@ var require_keyword = __commonJS({
|
|
|
1847
1965
|
}, valid);
|
|
1848
1966
|
cxt.pass(valid, () => cxt.error(true));
|
|
1849
1967
|
}
|
|
1968
|
+
__name(macroKeywordCode, "macroKeywordCode");
|
|
1850
1969
|
exports.macroKeywordCode = macroKeywordCode;
|
|
1851
1970
|
function funcKeywordCode(cxt, def) {
|
|
1852
1971
|
var _a;
|
|
@@ -1870,32 +1989,39 @@ var require_keyword = __commonJS({
|
|
|
1870
1989
|
reportErrs(() => addErrs(cxt, ruleErrs));
|
|
1871
1990
|
}
|
|
1872
1991
|
}
|
|
1992
|
+
__name(validateKeyword, "validateKeyword");
|
|
1873
1993
|
function validateAsync() {
|
|
1874
1994
|
const ruleErrs = gen.let("ruleErrs", null);
|
|
1875
1995
|
gen.try(() => assignValid((0, codegen_1._)`await `), (e) => gen.assign(valid, false).if((0, codegen_1._)`${e} instanceof ${it.ValidationError}`, () => gen.assign(ruleErrs, (0, codegen_1._)`${e}.errors`), () => gen.throw(e)));
|
|
1876
1996
|
return ruleErrs;
|
|
1877
1997
|
}
|
|
1998
|
+
__name(validateAsync, "validateAsync");
|
|
1878
1999
|
function validateSync() {
|
|
1879
2000
|
const validateErrs = (0, codegen_1._)`${validateRef}.errors`;
|
|
1880
2001
|
gen.assign(validateErrs, null);
|
|
1881
2002
|
assignValid(codegen_1.nil);
|
|
1882
2003
|
return validateErrs;
|
|
1883
2004
|
}
|
|
2005
|
+
__name(validateSync, "validateSync");
|
|
1884
2006
|
function assignValid(_await = def.async ? (0, codegen_1._)`await ` : codegen_1.nil) {
|
|
1885
2007
|
const passCxt = it.opts.passContext ? names_1.default.this : names_1.default.self;
|
|
1886
2008
|
const passSchema = !("compile" in def && !$data || def.schema === false);
|
|
1887
2009
|
gen.assign(valid, (0, codegen_1._)`${_await}${(0, code_1.callValidateCode)(cxt, validateRef, passCxt, passSchema)}`, def.modifying);
|
|
1888
2010
|
}
|
|
2011
|
+
__name(assignValid, "assignValid");
|
|
1889
2012
|
function reportErrs(errors) {
|
|
1890
2013
|
var _a2;
|
|
1891
2014
|
gen.if((0, codegen_1.not)((_a2 = def.valid) !== null && _a2 !== void 0 ? _a2 : valid), errors);
|
|
1892
2015
|
}
|
|
2016
|
+
__name(reportErrs, "reportErrs");
|
|
1893
2017
|
}
|
|
2018
|
+
__name(funcKeywordCode, "funcKeywordCode");
|
|
1894
2019
|
exports.funcKeywordCode = funcKeywordCode;
|
|
1895
2020
|
function modifyData(cxt) {
|
|
1896
2021
|
const { gen, data, it } = cxt;
|
|
1897
2022
|
gen.if(it.parentData, () => gen.assign(data, (0, codegen_1._)`${it.parentData}[${it.parentDataProperty}]`));
|
|
1898
2023
|
}
|
|
2024
|
+
__name(modifyData, "modifyData");
|
|
1899
2025
|
function addErrs(cxt, errs) {
|
|
1900
2026
|
const { gen } = cxt;
|
|
1901
2027
|
gen.if((0, codegen_1._)`Array.isArray(${errs})`, () => {
|
|
@@ -1903,18 +2029,22 @@ var require_keyword = __commonJS({
|
|
|
1903
2029
|
(0, errors_1.extendErrors)(cxt);
|
|
1904
2030
|
}, () => cxt.error());
|
|
1905
2031
|
}
|
|
2032
|
+
__name(addErrs, "addErrs");
|
|
1906
2033
|
function checkAsyncKeyword({ schemaEnv }, def) {
|
|
1907
2034
|
if (def.async && !schemaEnv.$async)
|
|
1908
2035
|
throw new Error("async keyword in sync schema");
|
|
1909
2036
|
}
|
|
2037
|
+
__name(checkAsyncKeyword, "checkAsyncKeyword");
|
|
1910
2038
|
function useKeyword(gen, keyword, result) {
|
|
1911
2039
|
if (result === void 0)
|
|
1912
2040
|
throw new Error(`keyword "${keyword}" failed to compile`);
|
|
1913
2041
|
return gen.scopeValue("keyword", typeof result == "function" ? { ref: result } : { ref: result, code: (0, codegen_1.stringify)(result) });
|
|
1914
2042
|
}
|
|
2043
|
+
__name(useKeyword, "useKeyword");
|
|
1915
2044
|
function validSchemaType(schema, schemaType, allowUndefined = false) {
|
|
1916
2045
|
return !schemaType.length || schemaType.some((st) => st === "array" ? Array.isArray(schema) : st === "object" ? schema && typeof schema == "object" && !Array.isArray(schema) : typeof schema == st || allowUndefined && typeof schema == "undefined");
|
|
1917
2046
|
}
|
|
2047
|
+
__name(validSchemaType, "validSchemaType");
|
|
1918
2048
|
exports.validSchemaType = validSchemaType;
|
|
1919
2049
|
function validateKeywordUsage({ schema, opts, self: self2, errSchemaPath }, def, keyword) {
|
|
1920
2050
|
if (Array.isArray(def.keyword) ? !def.keyword.includes(keyword) : def.keyword !== keyword) {
|
|
@@ -1935,6 +2065,7 @@ var require_keyword = __commonJS({
|
|
|
1935
2065
|
}
|
|
1936
2066
|
}
|
|
1937
2067
|
}
|
|
2068
|
+
__name(validateKeywordUsage, "validateKeywordUsage");
|
|
1938
2069
|
exports.validateKeywordUsage = validateKeywordUsage;
|
|
1939
2070
|
}
|
|
1940
2071
|
});
|
|
@@ -1976,6 +2107,7 @@ var require_subschema = __commonJS({
|
|
|
1976
2107
|
}
|
|
1977
2108
|
throw new Error('either "keyword" or "schema" must be passed');
|
|
1978
2109
|
}
|
|
2110
|
+
__name(getSubschema, "getSubschema");
|
|
1979
2111
|
exports.getSubschema = getSubschema;
|
|
1980
2112
|
function extendSubschemaData(subschema, it, { dataProp, dataPropType: dpType, data, dataTypes, propertyName }) {
|
|
1981
2113
|
if (data !== void 0 && dataProp !== void 0) {
|
|
@@ -2006,7 +2138,9 @@ var require_subschema = __commonJS({
|
|
|
2006
2138
|
subschema.parentData = it.data;
|
|
2007
2139
|
subschema.dataNames = [...it.dataNames, _nextData];
|
|
2008
2140
|
}
|
|
2141
|
+
__name(dataContextProps, "dataContextProps");
|
|
2009
2142
|
}
|
|
2143
|
+
__name(extendSubschemaData, "extendSubschemaData");
|
|
2010
2144
|
exports.extendSubschemaData = extendSubschemaData;
|
|
2011
2145
|
function extendSubschemaMode(subschema, { jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors }) {
|
|
2012
2146
|
if (compositeRule !== void 0)
|
|
@@ -2018,6 +2152,7 @@ var require_subschema = __commonJS({
|
|
|
2018
2152
|
subschema.jtdDiscriminator = jtdDiscriminator;
|
|
2019
2153
|
subschema.jtdMetadata = jtdMetadata;
|
|
2020
2154
|
}
|
|
2155
|
+
__name(extendSubschemaMode, "extendSubschemaMode");
|
|
2021
2156
|
exports.extendSubschemaMode = extendSubschemaMode;
|
|
2022
2157
|
}
|
|
2023
2158
|
});
|
|
@@ -2026,7 +2161,7 @@ var require_subschema = __commonJS({
|
|
|
2026
2161
|
var require_fast_deep_equal = __commonJS({
|
|
2027
2162
|
"node_modules/fast-deep-equal/index.js"(exports, module) {
|
|
2028
2163
|
"use strict";
|
|
2029
|
-
module.exports = function equal(a, b) {
|
|
2164
|
+
module.exports = /* @__PURE__ */ __name(function equal(a, b) {
|
|
2030
2165
|
if (a === b)
|
|
2031
2166
|
return true;
|
|
2032
2167
|
if (a && b && typeof a == "object" && typeof b == "object") {
|
|
@@ -2063,7 +2198,7 @@ var require_fast_deep_equal = __commonJS({
|
|
|
2063
2198
|
return true;
|
|
2064
2199
|
}
|
|
2065
2200
|
return a !== a && b !== b;
|
|
2066
|
-
};
|
|
2201
|
+
}, "equal");
|
|
2067
2202
|
}
|
|
2068
2203
|
});
|
|
2069
2204
|
|
|
@@ -2149,9 +2284,11 @@ var require_json_schema_traverse = __commonJS({
|
|
|
2149
2284
|
post(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
|
|
2150
2285
|
}
|
|
2151
2286
|
}
|
|
2287
|
+
__name(_traverse, "_traverse");
|
|
2152
2288
|
function escapeJsonPtr(str) {
|
|
2153
2289
|
return str.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
2154
2290
|
}
|
|
2291
|
+
__name(escapeJsonPtr, "escapeJsonPtr");
|
|
2155
2292
|
}
|
|
2156
2293
|
});
|
|
2157
2294
|
|
|
@@ -2191,6 +2328,7 @@ var require_resolve = __commonJS({
|
|
|
2191
2328
|
return false;
|
|
2192
2329
|
return countKeys(schema) <= limit;
|
|
2193
2330
|
}
|
|
2331
|
+
__name(inlineRef, "inlineRef");
|
|
2194
2332
|
exports.inlineRef = inlineRef;
|
|
2195
2333
|
var REF_KEYWORDS = /* @__PURE__ */ new Set([
|
|
2196
2334
|
"$ref",
|
|
@@ -2211,6 +2349,7 @@ var require_resolve = __commonJS({
|
|
|
2211
2349
|
}
|
|
2212
2350
|
return false;
|
|
2213
2351
|
}
|
|
2352
|
+
__name(hasRef, "hasRef");
|
|
2214
2353
|
function countKeys(schema) {
|
|
2215
2354
|
let count = 0;
|
|
2216
2355
|
for (const key in schema) {
|
|
@@ -2227,27 +2366,32 @@ var require_resolve = __commonJS({
|
|
|
2227
2366
|
}
|
|
2228
2367
|
return count;
|
|
2229
2368
|
}
|
|
2369
|
+
__name(countKeys, "countKeys");
|
|
2230
2370
|
function getFullPath(resolver, id = "", normalize) {
|
|
2231
2371
|
if (normalize !== false)
|
|
2232
2372
|
id = normalizeId(id);
|
|
2233
2373
|
const p = resolver.parse(id);
|
|
2234
2374
|
return _getFullPath(resolver, p);
|
|
2235
2375
|
}
|
|
2376
|
+
__name(getFullPath, "getFullPath");
|
|
2236
2377
|
exports.getFullPath = getFullPath;
|
|
2237
2378
|
function _getFullPath(resolver, p) {
|
|
2238
2379
|
const serialized = resolver.serialize(p);
|
|
2239
2380
|
return serialized.split("#")[0] + "#";
|
|
2240
2381
|
}
|
|
2382
|
+
__name(_getFullPath, "_getFullPath");
|
|
2241
2383
|
exports._getFullPath = _getFullPath;
|
|
2242
2384
|
var TRAILING_SLASH_HASH = /#\/?$/;
|
|
2243
2385
|
function normalizeId(id) {
|
|
2244
2386
|
return id ? id.replace(TRAILING_SLASH_HASH, "") : "";
|
|
2245
2387
|
}
|
|
2388
|
+
__name(normalizeId, "normalizeId");
|
|
2246
2389
|
exports.normalizeId = normalizeId;
|
|
2247
2390
|
function resolveUrl(resolver, baseId, id) {
|
|
2248
2391
|
id = normalizeId(id);
|
|
2249
2392
|
return resolver.resolve(baseId, id);
|
|
2250
2393
|
}
|
|
2394
|
+
__name(resolveUrl, "resolveUrl");
|
|
2251
2395
|
exports.resolveUrl = resolveUrl;
|
|
2252
2396
|
var ANCHOR = /^[a-z_][-a-z0-9._]*$/i;
|
|
2253
2397
|
function getSchemaRefs(schema, baseId) {
|
|
@@ -2290,6 +2434,7 @@ var require_resolve = __commonJS({
|
|
|
2290
2434
|
}
|
|
2291
2435
|
return ref;
|
|
2292
2436
|
}
|
|
2437
|
+
__name(addRef, "addRef");
|
|
2293
2438
|
function addAnchor(anchor) {
|
|
2294
2439
|
if (typeof anchor == "string") {
|
|
2295
2440
|
if (!ANCHOR.test(anchor))
|
|
@@ -2297,16 +2442,20 @@ var require_resolve = __commonJS({
|
|
|
2297
2442
|
addRef.call(this, `#${anchor}`);
|
|
2298
2443
|
}
|
|
2299
2444
|
}
|
|
2445
|
+
__name(addAnchor, "addAnchor");
|
|
2300
2446
|
});
|
|
2301
2447
|
return localRefs;
|
|
2302
2448
|
function checkAmbiguosRef(sch1, sch2, ref) {
|
|
2303
2449
|
if (sch2 !== void 0 && !equal(sch1, sch2))
|
|
2304
2450
|
throw ambiguos(ref);
|
|
2305
2451
|
}
|
|
2452
|
+
__name(checkAmbiguosRef, "checkAmbiguosRef");
|
|
2306
2453
|
function ambiguos(ref) {
|
|
2307
2454
|
return new Error(`reference "${ref}" resolves to more than one schema`);
|
|
2308
2455
|
}
|
|
2456
|
+
__name(ambiguos, "ambiguos");
|
|
2309
2457
|
}
|
|
2458
|
+
__name(getSchemaRefs, "getSchemaRefs");
|
|
2310
2459
|
exports.getSchemaRefs = getSchemaRefs;
|
|
2311
2460
|
}
|
|
2312
2461
|
});
|
|
@@ -2339,6 +2488,7 @@ var require_validate = __commonJS({
|
|
|
2339
2488
|
}
|
|
2340
2489
|
validateFunction(it, () => (0, boolSchema_1.topBoolOrEmptySchema)(it));
|
|
2341
2490
|
}
|
|
2491
|
+
__name(validateFunctionCode, "validateFunctionCode");
|
|
2342
2492
|
exports.validateFunctionCode = validateFunctionCode;
|
|
2343
2493
|
function validateFunction({ gen, validateName, schema, schemaEnv, opts }, body) {
|
|
2344
2494
|
if (opts.code.es5) {
|
|
@@ -2351,9 +2501,11 @@ var require_validate = __commonJS({
|
|
|
2351
2501
|
gen.func(validateName, (0, codegen_1._)`${names_1.default.data}, ${destructureValCxt(opts)}`, schemaEnv.$async, () => gen.code(funcSourceUrl(schema, opts)).code(body));
|
|
2352
2502
|
}
|
|
2353
2503
|
}
|
|
2504
|
+
__name(validateFunction, "validateFunction");
|
|
2354
2505
|
function destructureValCxt(opts) {
|
|
2355
2506
|
return (0, codegen_1._)`{${names_1.default.instancePath}="", ${names_1.default.parentData}, ${names_1.default.parentDataProperty}, ${names_1.default.rootData}=${names_1.default.data}${opts.dynamicRef ? (0, codegen_1._)`, ${names_1.default.dynamicAnchors}={}` : codegen_1.nil}}={}`;
|
|
2356
2507
|
}
|
|
2508
|
+
__name(destructureValCxt, "destructureValCxt");
|
|
2357
2509
|
function destructureValCxtES5(gen, opts) {
|
|
2358
2510
|
gen.if(names_1.default.valCxt, () => {
|
|
2359
2511
|
gen.var(names_1.default.instancePath, (0, codegen_1._)`${names_1.default.valCxt}.${names_1.default.instancePath}`);
|
|
@@ -2371,6 +2523,7 @@ var require_validate = __commonJS({
|
|
|
2371
2523
|
gen.var(names_1.default.dynamicAnchors, (0, codegen_1._)`{}`);
|
|
2372
2524
|
});
|
|
2373
2525
|
}
|
|
2526
|
+
__name(destructureValCxtES5, "destructureValCxtES5");
|
|
2374
2527
|
function topSchemaObjCode(it) {
|
|
2375
2528
|
const { schema, opts, gen } = it;
|
|
2376
2529
|
validateFunction(it, () => {
|
|
@@ -2386,16 +2539,19 @@ var require_validate = __commonJS({
|
|
|
2386
2539
|
});
|
|
2387
2540
|
return;
|
|
2388
2541
|
}
|
|
2542
|
+
__name(topSchemaObjCode, "topSchemaObjCode");
|
|
2389
2543
|
function resetEvaluated(it) {
|
|
2390
2544
|
const { gen, validateName } = it;
|
|
2391
2545
|
it.evaluated = gen.const("evaluated", (0, codegen_1._)`${validateName}.evaluated`);
|
|
2392
2546
|
gen.if((0, codegen_1._)`${it.evaluated}.dynamicProps`, () => gen.assign((0, codegen_1._)`${it.evaluated}.props`, (0, codegen_1._)`undefined`));
|
|
2393
2547
|
gen.if((0, codegen_1._)`${it.evaluated}.dynamicItems`, () => gen.assign((0, codegen_1._)`${it.evaluated}.items`, (0, codegen_1._)`undefined`));
|
|
2394
2548
|
}
|
|
2549
|
+
__name(resetEvaluated, "resetEvaluated");
|
|
2395
2550
|
function funcSourceUrl(schema, opts) {
|
|
2396
2551
|
const schId = typeof schema == "object" && schema[opts.schemaId];
|
|
2397
2552
|
return schId && (opts.code.source || opts.code.process) ? (0, codegen_1._)`/*# sourceURL=${schId} */` : codegen_1.nil;
|
|
2398
2553
|
}
|
|
2554
|
+
__name(funcSourceUrl, "funcSourceUrl");
|
|
2399
2555
|
function subschemaCode(it, valid) {
|
|
2400
2556
|
if (isSchemaObj(it)) {
|
|
2401
2557
|
checkKeywords(it);
|
|
@@ -2406,6 +2562,7 @@ var require_validate = __commonJS({
|
|
|
2406
2562
|
}
|
|
2407
2563
|
(0, boolSchema_1.boolOrEmptySchema)(it, valid);
|
|
2408
2564
|
}
|
|
2565
|
+
__name(subschemaCode, "subschemaCode");
|
|
2409
2566
|
function schemaCxtHasRules({ schema, self: self2 }) {
|
|
2410
2567
|
if (typeof schema == "boolean")
|
|
2411
2568
|
return !schema;
|
|
@@ -2414,9 +2571,11 @@ var require_validate = __commonJS({
|
|
|
2414
2571
|
return true;
|
|
2415
2572
|
return false;
|
|
2416
2573
|
}
|
|
2574
|
+
__name(schemaCxtHasRules, "schemaCxtHasRules");
|
|
2417
2575
|
function isSchemaObj(it) {
|
|
2418
2576
|
return typeof it.schema != "boolean";
|
|
2419
2577
|
}
|
|
2578
|
+
__name(isSchemaObj, "isSchemaObj");
|
|
2420
2579
|
function subSchemaObjCode(it, valid) {
|
|
2421
2580
|
const { schema, gen, opts } = it;
|
|
2422
2581
|
if (opts.$comment && schema.$comment)
|
|
@@ -2427,10 +2586,12 @@ var require_validate = __commonJS({
|
|
|
2427
2586
|
typeAndKeywords(it, errsCount);
|
|
2428
2587
|
gen.var(valid, (0, codegen_1._)`${errsCount} === ${names_1.default.errors}`);
|
|
2429
2588
|
}
|
|
2589
|
+
__name(subSchemaObjCode, "subSchemaObjCode");
|
|
2430
2590
|
function checkKeywords(it) {
|
|
2431
2591
|
(0, util_1.checkUnknownRules)(it);
|
|
2432
2592
|
checkRefsAndKeywords(it);
|
|
2433
2593
|
}
|
|
2594
|
+
__name(checkKeywords, "checkKeywords");
|
|
2434
2595
|
function typeAndKeywords(it, errsCount) {
|
|
2435
2596
|
if (it.opts.jtd)
|
|
2436
2597
|
return schemaKeywords(it, [], false, errsCount);
|
|
@@ -2438,27 +2599,32 @@ var require_validate = __commonJS({
|
|
|
2438
2599
|
const checkedTypes = (0, dataType_1.coerceAndCheckDataType)(it, types);
|
|
2439
2600
|
schemaKeywords(it, types, !checkedTypes, errsCount);
|
|
2440
2601
|
}
|
|
2602
|
+
__name(typeAndKeywords, "typeAndKeywords");
|
|
2441
2603
|
function checkRefsAndKeywords(it) {
|
|
2442
2604
|
const { schema, errSchemaPath, opts, self: self2 } = it;
|
|
2443
2605
|
if (schema.$ref && opts.ignoreKeywordsWithRef && (0, util_1.schemaHasRulesButRef)(schema, self2.RULES)) {
|
|
2444
2606
|
self2.logger.warn(`$ref: keywords ignored in schema at path "${errSchemaPath}"`);
|
|
2445
2607
|
}
|
|
2446
2608
|
}
|
|
2609
|
+
__name(checkRefsAndKeywords, "checkRefsAndKeywords");
|
|
2447
2610
|
function checkNoDefault(it) {
|
|
2448
2611
|
const { schema, opts } = it;
|
|
2449
2612
|
if (schema.default !== void 0 && opts.useDefaults && opts.strictSchema) {
|
|
2450
2613
|
(0, util_1.checkStrictMode)(it, "default is ignored in the schema root");
|
|
2451
2614
|
}
|
|
2452
2615
|
}
|
|
2616
|
+
__name(checkNoDefault, "checkNoDefault");
|
|
2453
2617
|
function updateContext(it) {
|
|
2454
2618
|
const schId = it.schema[it.opts.schemaId];
|
|
2455
2619
|
if (schId)
|
|
2456
2620
|
it.baseId = (0, resolve_1.resolveUrl)(it.opts.uriResolver, it.baseId, schId);
|
|
2457
2621
|
}
|
|
2622
|
+
__name(updateContext, "updateContext");
|
|
2458
2623
|
function checkAsyncSchema(it) {
|
|
2459
2624
|
if (it.schema.$async && !it.schemaEnv.$async)
|
|
2460
2625
|
throw new Error("async schema in sync schema");
|
|
2461
2626
|
}
|
|
2627
|
+
__name(checkAsyncSchema, "checkAsyncSchema");
|
|
2462
2628
|
function commentKeyword({ gen, schemaEnv, schema, errSchemaPath, opts }) {
|
|
2463
2629
|
const msg = schema.$comment;
|
|
2464
2630
|
if (opts.$comment === true) {
|
|
@@ -2469,6 +2635,7 @@ var require_validate = __commonJS({
|
|
|
2469
2635
|
gen.code((0, codegen_1._)`${names_1.default.self}.opts.$comment(${msg}, ${schemaPath}, ${rootName}.schema)`);
|
|
2470
2636
|
}
|
|
2471
2637
|
}
|
|
2638
|
+
__name(commentKeyword, "commentKeyword");
|
|
2472
2639
|
function returnResults(it) {
|
|
2473
2640
|
const { gen, schemaEnv, validateName, ValidationError, opts } = it;
|
|
2474
2641
|
if (schemaEnv.$async) {
|
|
@@ -2480,12 +2647,14 @@ var require_validate = __commonJS({
|
|
|
2480
2647
|
gen.return((0, codegen_1._)`${names_1.default.errors} === 0`);
|
|
2481
2648
|
}
|
|
2482
2649
|
}
|
|
2650
|
+
__name(returnResults, "returnResults");
|
|
2483
2651
|
function assignEvaluated({ gen, evaluated, props, items }) {
|
|
2484
2652
|
if (props instanceof codegen_1.Name)
|
|
2485
2653
|
gen.assign((0, codegen_1._)`${evaluated}.props`, props);
|
|
2486
2654
|
if (items instanceof codegen_1.Name)
|
|
2487
2655
|
gen.assign((0, codegen_1._)`${evaluated}.items`, items);
|
|
2488
2656
|
}
|
|
2657
|
+
__name(assignEvaluated, "assignEvaluated");
|
|
2489
2658
|
function schemaKeywords(it, types, typeErrors, errsCount) {
|
|
2490
2659
|
const { gen, schema, data, allErrors, opts, self: self2 } = it;
|
|
2491
2660
|
const { RULES } = self2;
|
|
@@ -2517,7 +2686,9 @@ var require_validate = __commonJS({
|
|
|
2517
2686
|
if (!allErrors)
|
|
2518
2687
|
gen.if((0, codegen_1._)`${names_1.default.errors} === ${errsCount || 0}`);
|
|
2519
2688
|
}
|
|
2689
|
+
__name(groupKeywords, "groupKeywords");
|
|
2520
2690
|
}
|
|
2691
|
+
__name(schemaKeywords, "schemaKeywords");
|
|
2521
2692
|
function iterateKeywords(it, group) {
|
|
2522
2693
|
const { gen, schema, opts: { useDefaults } } = it;
|
|
2523
2694
|
if (useDefaults)
|
|
@@ -2530,6 +2701,7 @@ var require_validate = __commonJS({
|
|
|
2530
2701
|
}
|
|
2531
2702
|
});
|
|
2532
2703
|
}
|
|
2704
|
+
__name(iterateKeywords, "iterateKeywords");
|
|
2533
2705
|
function checkStrictTypes(it, types) {
|
|
2534
2706
|
if (it.schemaEnv.meta || !it.opts.strictTypes)
|
|
2535
2707
|
return;
|
|
@@ -2538,6 +2710,7 @@ var require_validate = __commonJS({
|
|
|
2538
2710
|
checkMultipleTypes(it, types);
|
|
2539
2711
|
checkKeywordTypes(it, it.dataTypes);
|
|
2540
2712
|
}
|
|
2713
|
+
__name(checkStrictTypes, "checkStrictTypes");
|
|
2541
2714
|
function checkContextTypes(it, types) {
|
|
2542
2715
|
if (!types.length)
|
|
2543
2716
|
return;
|
|
@@ -2552,11 +2725,13 @@ var require_validate = __commonJS({
|
|
|
2552
2725
|
});
|
|
2553
2726
|
narrowSchemaTypes(it, types);
|
|
2554
2727
|
}
|
|
2728
|
+
__name(checkContextTypes, "checkContextTypes");
|
|
2555
2729
|
function checkMultipleTypes(it, ts) {
|
|
2556
2730
|
if (ts.length > 1 && !(ts.length === 2 && ts.includes("null"))) {
|
|
2557
2731
|
strictTypesError(it, "use allowUnionTypes to allow union type keyword");
|
|
2558
2732
|
}
|
|
2559
2733
|
}
|
|
2734
|
+
__name(checkMultipleTypes, "checkMultipleTypes");
|
|
2560
2735
|
function checkKeywordTypes(it, ts) {
|
|
2561
2736
|
const rules = it.self.RULES.all;
|
|
2562
2737
|
for (const keyword in rules) {
|
|
@@ -2569,12 +2744,15 @@ var require_validate = __commonJS({
|
|
|
2569
2744
|
}
|
|
2570
2745
|
}
|
|
2571
2746
|
}
|
|
2747
|
+
__name(checkKeywordTypes, "checkKeywordTypes");
|
|
2572
2748
|
function hasApplicableType(schTs, kwdT) {
|
|
2573
2749
|
return schTs.includes(kwdT) || kwdT === "number" && schTs.includes("integer");
|
|
2574
2750
|
}
|
|
2751
|
+
__name(hasApplicableType, "hasApplicableType");
|
|
2575
2752
|
function includesType(ts, t) {
|
|
2576
2753
|
return ts.includes(t) || t === "integer" && ts.includes("number");
|
|
2577
2754
|
}
|
|
2755
|
+
__name(includesType, "includesType");
|
|
2578
2756
|
function narrowSchemaTypes(it, withTypes) {
|
|
2579
2757
|
const ts = [];
|
|
2580
2758
|
for (const t of it.dataTypes) {
|
|
@@ -2585,11 +2763,13 @@ var require_validate = __commonJS({
|
|
|
2585
2763
|
}
|
|
2586
2764
|
it.dataTypes = ts;
|
|
2587
2765
|
}
|
|
2766
|
+
__name(narrowSchemaTypes, "narrowSchemaTypes");
|
|
2588
2767
|
function strictTypesError(it, msg) {
|
|
2589
2768
|
const schemaPath = it.schemaEnv.baseId + it.errSchemaPath;
|
|
2590
2769
|
msg += ` at "${schemaPath}" (strictTypes)`;
|
|
2591
2770
|
(0, util_1.checkStrictMode)(it, msg, it.opts.strictTypes);
|
|
2592
2771
|
}
|
|
2772
|
+
__name(strictTypesError, "strictTypesError");
|
|
2593
2773
|
var KeywordCxt = class {
|
|
2594
2774
|
constructor(it, def, keyword) {
|
|
2595
2775
|
(0, keyword_1.validateKeywordUsage)(it, def, keyword);
|
|
@@ -2725,6 +2905,7 @@ var require_validate = __commonJS({
|
|
|
2725
2905
|
}
|
|
2726
2906
|
return codegen_1.nil;
|
|
2727
2907
|
}
|
|
2908
|
+
__name(wrong$DataType, "wrong$DataType");
|
|
2728
2909
|
function invalid$DataSchema() {
|
|
2729
2910
|
if (def.validateSchema) {
|
|
2730
2911
|
const validateSchemaRef = gen.scopeValue("validate$data", { ref: def.validateSchema });
|
|
@@ -2732,6 +2913,7 @@ var require_validate = __commonJS({
|
|
|
2732
2913
|
}
|
|
2733
2914
|
return codegen_1.nil;
|
|
2734
2915
|
}
|
|
2916
|
+
__name(invalid$DataSchema, "invalid$DataSchema");
|
|
2735
2917
|
}
|
|
2736
2918
|
subschema(appl, valid) {
|
|
2737
2919
|
const subschema = (0, subschema_1.getSubschema)(this.it, appl);
|
|
@@ -2760,6 +2942,7 @@ var require_validate = __commonJS({
|
|
|
2760
2942
|
}
|
|
2761
2943
|
}
|
|
2762
2944
|
};
|
|
2945
|
+
__name(KeywordCxt, "KeywordCxt");
|
|
2763
2946
|
exports.KeywordCxt = KeywordCxt;
|
|
2764
2947
|
function keywordCode(it, keyword, def, ruleType) {
|
|
2765
2948
|
const cxt = new KeywordCxt(it, def, keyword);
|
|
@@ -2773,6 +2956,7 @@ var require_validate = __commonJS({
|
|
|
2773
2956
|
(0, keyword_1.funcKeywordCode)(cxt, def);
|
|
2774
2957
|
}
|
|
2775
2958
|
}
|
|
2959
|
+
__name(keywordCode, "keywordCode");
|
|
2776
2960
|
var JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/;
|
|
2777
2961
|
var RELATIVE_JSON_POINTER = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
|
|
2778
2962
|
function getData($data, { dataLevel, dataNames, dataPathArr }) {
|
|
@@ -2814,7 +2998,9 @@ var require_validate = __commonJS({
|
|
|
2814
2998
|
function errorMsg(pointerType, up) {
|
|
2815
2999
|
return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`;
|
|
2816
3000
|
}
|
|
3001
|
+
__name(errorMsg, "errorMsg");
|
|
2817
3002
|
}
|
|
3003
|
+
__name(getData, "getData");
|
|
2818
3004
|
exports.getData = getData;
|
|
2819
3005
|
}
|
|
2820
3006
|
});
|
|
@@ -2831,6 +3017,7 @@ var require_validation_error = __commonJS({
|
|
|
2831
3017
|
this.ajv = this.validation = true;
|
|
2832
3018
|
}
|
|
2833
3019
|
};
|
|
3020
|
+
__name(ValidationError, "ValidationError");
|
|
2834
3021
|
exports.default = ValidationError;
|
|
2835
3022
|
}
|
|
2836
3023
|
});
|
|
@@ -2848,6 +3035,7 @@ var require_ref_error = __commonJS({
|
|
|
2848
3035
|
this.missingSchema = (0, resolve_1.normalizeId)((0, resolve_1.getFullPath)(resolver, this.missingRef));
|
|
2849
3036
|
}
|
|
2850
3037
|
};
|
|
3038
|
+
__name(MissingRefError, "MissingRefError");
|
|
2851
3039
|
exports.default = MissingRefError;
|
|
2852
3040
|
}
|
|
2853
3041
|
});
|
|
@@ -2883,6 +3071,7 @@ var require_compile = __commonJS({
|
|
|
2883
3071
|
this.refs = {};
|
|
2884
3072
|
}
|
|
2885
3073
|
};
|
|
3074
|
+
__name(SchemaEnv, "SchemaEnv");
|
|
2886
3075
|
exports.SchemaEnv = SchemaEnv;
|
|
2887
3076
|
function compileSchema(sch) {
|
|
2888
3077
|
const _sch = getCompilingSchema.call(this, sch);
|
|
@@ -2968,6 +3157,7 @@ var require_compile = __commonJS({
|
|
|
2968
3157
|
this._compilations.delete(sch);
|
|
2969
3158
|
}
|
|
2970
3159
|
}
|
|
3160
|
+
__name(compileSchema, "compileSchema");
|
|
2971
3161
|
exports.compileSchema = compileSchema;
|
|
2972
3162
|
function resolveRef(root, baseId, ref) {
|
|
2973
3163
|
var _a;
|
|
@@ -2986,28 +3176,33 @@ var require_compile = __commonJS({
|
|
|
2986
3176
|
return;
|
|
2987
3177
|
return root.refs[ref] = inlineOrCompile.call(this, _sch);
|
|
2988
3178
|
}
|
|
3179
|
+
__name(resolveRef, "resolveRef");
|
|
2989
3180
|
exports.resolveRef = resolveRef;
|
|
2990
3181
|
function inlineOrCompile(sch) {
|
|
2991
3182
|
if ((0, resolve_1.inlineRef)(sch.schema, this.opts.inlineRefs))
|
|
2992
3183
|
return sch.schema;
|
|
2993
3184
|
return sch.validate ? sch : compileSchema.call(this, sch);
|
|
2994
3185
|
}
|
|
3186
|
+
__name(inlineOrCompile, "inlineOrCompile");
|
|
2995
3187
|
function getCompilingSchema(schEnv) {
|
|
2996
3188
|
for (const sch of this._compilations) {
|
|
2997
3189
|
if (sameSchemaEnv(sch, schEnv))
|
|
2998
3190
|
return sch;
|
|
2999
3191
|
}
|
|
3000
3192
|
}
|
|
3193
|
+
__name(getCompilingSchema, "getCompilingSchema");
|
|
3001
3194
|
exports.getCompilingSchema = getCompilingSchema;
|
|
3002
3195
|
function sameSchemaEnv(s1, s2) {
|
|
3003
3196
|
return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId;
|
|
3004
3197
|
}
|
|
3198
|
+
__name(sameSchemaEnv, "sameSchemaEnv");
|
|
3005
3199
|
function resolve(root, ref) {
|
|
3006
3200
|
let sch;
|
|
3007
3201
|
while (typeof (sch = this.refs[ref]) == "string")
|
|
3008
3202
|
ref = sch;
|
|
3009
3203
|
return sch || this.schemas[ref] || resolveSchema.call(this, root, ref);
|
|
3010
3204
|
}
|
|
3205
|
+
__name(resolve, "resolve");
|
|
3011
3206
|
function resolveSchema(root, ref) {
|
|
3012
3207
|
const p = this.opts.uriResolver.parse(ref);
|
|
3013
3208
|
const refPath = (0, resolve_1._getFullPath)(this.opts.uriResolver, p);
|
|
@@ -3037,6 +3232,7 @@ var require_compile = __commonJS({
|
|
|
3037
3232
|
}
|
|
3038
3233
|
return getJsonPointer.call(this, p, schOrRef);
|
|
3039
3234
|
}
|
|
3235
|
+
__name(resolveSchema, "resolveSchema");
|
|
3040
3236
|
exports.resolveSchema = resolveSchema;
|
|
3041
3237
|
var PREVENT_SCOPE_CHANGE = /* @__PURE__ */ new Set([
|
|
3042
3238
|
"properties",
|
|
@@ -3072,6 +3268,7 @@ var require_compile = __commonJS({
|
|
|
3072
3268
|
return env;
|
|
3073
3269
|
return void 0;
|
|
3074
3270
|
}
|
|
3271
|
+
__name(getJsonPointer, "getJsonPointer");
|
|
3075
3272
|
}
|
|
3076
3273
|
});
|
|
3077
3274
|
|
|
@@ -3117,18 +3314,23 @@ var require_uri_all = __commonJS({
|
|
|
3117
3314
|
return sets[0];
|
|
3118
3315
|
}
|
|
3119
3316
|
}
|
|
3317
|
+
__name(merge, "merge");
|
|
3120
3318
|
function subexp(str) {
|
|
3121
3319
|
return "(?:" + str + ")";
|
|
3122
3320
|
}
|
|
3321
|
+
__name(subexp, "subexp");
|
|
3123
3322
|
function typeOf(o) {
|
|
3124
3323
|
return o === void 0 ? "undefined" : o === null ? "null" : Object.prototype.toString.call(o).split(" ").pop().split("]").shift().toLowerCase();
|
|
3125
3324
|
}
|
|
3325
|
+
__name(typeOf, "typeOf");
|
|
3126
3326
|
function toUpperCase(str) {
|
|
3127
3327
|
return str.toUpperCase();
|
|
3128
3328
|
}
|
|
3329
|
+
__name(toUpperCase, "toUpperCase");
|
|
3129
3330
|
function toArray(obj) {
|
|
3130
3331
|
return obj !== void 0 && obj !== null ? obj instanceof Array ? obj : typeof obj.length !== "number" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj) : [];
|
|
3131
3332
|
}
|
|
3333
|
+
__name(toArray, "toArray");
|
|
3132
3334
|
function assign(target, source) {
|
|
3133
3335
|
var obj = target;
|
|
3134
3336
|
if (source) {
|
|
@@ -3138,6 +3340,7 @@ var require_uri_all = __commonJS({
|
|
|
3138
3340
|
}
|
|
3139
3341
|
return obj;
|
|
3140
3342
|
}
|
|
3343
|
+
__name(assign, "assign");
|
|
3141
3344
|
function buildExps(isIRI2) {
|
|
3142
3345
|
var ALPHA$$ = "[A-Za-z]", CR$ = "[\\x0D]", DIGIT$$ = "[0-9]", DQUOTE$$ = "[\\x22]", HEXDIG$$2 = merge(DIGIT$$, "[A-Fa-f]"), LF$$ = "[\\x0A]", SP$$ = "[\\x20]", PCT_ENCODED$2 = subexp(subexp("%[EFef]" + HEXDIG$$2 + "%" + HEXDIG$$2 + HEXDIG$$2 + "%" + HEXDIG$$2 + HEXDIG$$2) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$2 + "%" + HEXDIG$$2 + HEXDIG$$2) + "|" + subexp("%" + HEXDIG$$2 + HEXDIG$$2)), GEN_DELIMS$$ = "[\\:\\/\\?\\#\\[\\]\\@]", SUB_DELIMS$$ = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", RESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$), UCSCHAR$$ = isIRI2 ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", IPRIVATE$$ = isIRI2 ? "[\\uE000-\\uF8FF]" : "[]", UNRESERVED$$2 = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$), SCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*"), USERINFO$ = subexp(subexp(PCT_ENCODED$2 + "|" + merge(UNRESERVED$$2, SUB_DELIMS$$, "[\\:]")) + "*"), DEC_OCTET$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("[1-9]" + DIGIT$$) + "|" + DIGIT$$), DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$), IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$), H16$ = subexp(HEXDIG$$2 + "{1,4}"), LS32$ = subexp(subexp(H16$ + "\\:" + H16$) + "|" + IPV4ADDRESS$), IPV6ADDRESS1$ = subexp(subexp(H16$ + "\\:") + "{6}" + LS32$), IPV6ADDRESS2$ = subexp("\\:\\:" + subexp(H16$ + "\\:") + "{5}" + LS32$), IPV6ADDRESS3$ = subexp(subexp(H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{4}" + LS32$), IPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,1}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{3}" + LS32$), IPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,2}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{2}" + LS32$), IPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,3}" + H16$) + "?\\:\\:" + H16$ + "\\:" + LS32$), IPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,4}" + H16$) + "?\\:\\:" + LS32$), IPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,5}" + H16$) + "?\\:\\:" + H16$), IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:"), IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join("|")), ZONEID$ = subexp(subexp(UNRESERVED$$2 + "|" + PCT_ENCODED$2) + "+"), IPV6ADDRZ$ = subexp(IPV6ADDRESS$ + "\\%25" + ZONEID$), IPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp("\\%25|\\%(?!" + HEXDIG$$2 + "{2})") + ZONEID$), IPVFUTURE$ = subexp("[vV]" + HEXDIG$$2 + "+\\." + merge(UNRESERVED$$2, SUB_DELIMS$$, "[\\:]") + "+"), IP_LITERAL$ = subexp("\\[" + subexp(IPV6ADDRZ_RELAXED$ + "|" + IPV6ADDRESS$ + "|" + IPVFUTURE$) + "\\]"), REG_NAME$ = subexp(subexp(PCT_ENCODED$2 + "|" + merge(UNRESERVED$$2, SUB_DELIMS$$)) + "*"), HOST$ = subexp(IP_LITERAL$ + "|" + IPV4ADDRESS$ + "(?!" + REG_NAME$ + ")|" + REG_NAME$), PORT$ = subexp(DIGIT$$ + "*"), AUTHORITY$ = subexp(subexp(USERINFO$ + "@") + "?" + HOST$ + subexp("\\:" + PORT$) + "?"), PCHAR$ = subexp(PCT_ENCODED$2 + "|" + merge(UNRESERVED$$2, SUB_DELIMS$$, "[\\:\\@]")), SEGMENT$ = subexp(PCHAR$ + "*"), SEGMENT_NZ$ = subexp(PCHAR$ + "+"), SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$2 + "|" + merge(UNRESERVED$$2, SUB_DELIMS$$, "[\\@]")) + "+"), PATH_ABEMPTY$ = subexp(subexp("\\/" + SEGMENT$) + "*"), PATH_ABSOLUTE$ = subexp("\\/" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + "?"), PATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$), PATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$), PATH_EMPTY$ = "(?!" + PCHAR$ + ")", PATH$ = subexp(PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), QUERY$ = subexp(subexp(PCHAR$ + "|" + merge("[\\/\\?]", IPRIVATE$$)) + "*"), FRAGMENT$ = subexp(subexp(PCHAR$ + "|[\\/\\?]") + "*"), HIER_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), RELATIVE_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$), RELATIVE$ = subexp(RELATIVE_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), URI_REFERENCE$ = subexp(URI$ + "|" + RELATIVE$), ABSOLUTE_URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?"), GENERIC_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", RELATIVE_REF$ = "^(){0}" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", ABSOLUTE_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?$", SAMEDOC_REF$ = "^" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", AUTHORITY_REF$ = "^" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?$";
|
|
3143
3346
|
return {
|
|
@@ -3157,6 +3360,7 @@ var require_uri_all = __commonJS({
|
|
|
3157
3360
|
//RFC 6874, with relaxed parsing rules
|
|
3158
3361
|
};
|
|
3159
3362
|
}
|
|
3363
|
+
__name(buildExps, "buildExps");
|
|
3160
3364
|
var URI_PROTOCOL = buildExps(false);
|
|
3161
3365
|
var IRI_PROTOCOL = buildExps(true);
|
|
3162
3366
|
var slicedToArray = function() {
|
|
@@ -3185,6 +3389,7 @@ var require_uri_all = __commonJS({
|
|
|
3185
3389
|
}
|
|
3186
3390
|
return _arr;
|
|
3187
3391
|
}
|
|
3392
|
+
__name(sliceIterator, "sliceIterator");
|
|
3188
3393
|
return function(arr, i) {
|
|
3189
3394
|
if (Array.isArray(arr)) {
|
|
3190
3395
|
return arr;
|
|
@@ -3195,7 +3400,7 @@ var require_uri_all = __commonJS({
|
|
|
3195
3400
|
}
|
|
3196
3401
|
};
|
|
3197
3402
|
}();
|
|
3198
|
-
var toConsumableArray = function(arr) {
|
|
3403
|
+
var toConsumableArray = /* @__PURE__ */ __name(function(arr) {
|
|
3199
3404
|
if (Array.isArray(arr)) {
|
|
3200
3405
|
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++)
|
|
3201
3406
|
arr2[i] = arr[i];
|
|
@@ -3203,7 +3408,7 @@ var require_uri_all = __commonJS({
|
|
|
3203
3408
|
} else {
|
|
3204
3409
|
return Array.from(arr);
|
|
3205
3410
|
}
|
|
3206
|
-
};
|
|
3411
|
+
}, "toConsumableArray");
|
|
3207
3412
|
var maxInt = 2147483647;
|
|
3208
3413
|
var base = 36;
|
|
3209
3414
|
var tMin = 1;
|
|
@@ -3227,6 +3432,7 @@ var require_uri_all = __commonJS({
|
|
|
3227
3432
|
function error$1(type) {
|
|
3228
3433
|
throw new RangeError(errors[type]);
|
|
3229
3434
|
}
|
|
3435
|
+
__name(error$1, "error$1");
|
|
3230
3436
|
function map(array, fn) {
|
|
3231
3437
|
var result = [];
|
|
3232
3438
|
var length = array.length;
|
|
@@ -3235,6 +3441,7 @@ var require_uri_all = __commonJS({
|
|
|
3235
3441
|
}
|
|
3236
3442
|
return result;
|
|
3237
3443
|
}
|
|
3444
|
+
__name(map, "map");
|
|
3238
3445
|
function mapDomain(string, fn) {
|
|
3239
3446
|
var parts = string.split("@");
|
|
3240
3447
|
var result = "";
|
|
@@ -3247,6 +3454,7 @@ var require_uri_all = __commonJS({
|
|
|
3247
3454
|
var encoded = map(labels, fn).join(".");
|
|
3248
3455
|
return result + encoded;
|
|
3249
3456
|
}
|
|
3457
|
+
__name(mapDomain, "mapDomain");
|
|
3250
3458
|
function ucs2decode(string) {
|
|
3251
3459
|
var output = [];
|
|
3252
3460
|
var counter = 0;
|
|
@@ -3267,10 +3475,11 @@ var require_uri_all = __commonJS({
|
|
|
3267
3475
|
}
|
|
3268
3476
|
return output;
|
|
3269
3477
|
}
|
|
3270
|
-
|
|
3478
|
+
__name(ucs2decode, "ucs2decode");
|
|
3479
|
+
var ucs2encode = /* @__PURE__ */ __name(function ucs2encode2(array) {
|
|
3271
3480
|
return String.fromCodePoint.apply(String, toConsumableArray(array));
|
|
3272
|
-
};
|
|
3273
|
-
var basicToDigit = function basicToDigit2(codePoint) {
|
|
3481
|
+
}, "ucs2encode");
|
|
3482
|
+
var basicToDigit = /* @__PURE__ */ __name(function basicToDigit2(codePoint) {
|
|
3274
3483
|
if (codePoint - 48 < 10) {
|
|
3275
3484
|
return codePoint - 22;
|
|
3276
3485
|
}
|
|
@@ -3281,11 +3490,11 @@ var require_uri_all = __commonJS({
|
|
|
3281
3490
|
return codePoint - 97;
|
|
3282
3491
|
}
|
|
3283
3492
|
return base;
|
|
3284
|
-
};
|
|
3285
|
-
var digitToBasic = function digitToBasic2(digit, flag) {
|
|
3493
|
+
}, "basicToDigit");
|
|
3494
|
+
var digitToBasic = /* @__PURE__ */ __name(function digitToBasic2(digit, flag) {
|
|
3286
3495
|
return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
|
|
3287
|
-
};
|
|
3288
|
-
var adapt = function adapt2(delta, numPoints, firstTime) {
|
|
3496
|
+
}, "digitToBasic");
|
|
3497
|
+
var adapt = /* @__PURE__ */ __name(function adapt2(delta, numPoints, firstTime) {
|
|
3289
3498
|
var k = 0;
|
|
3290
3499
|
delta = firstTime ? floor(delta / damp) : delta >> 1;
|
|
3291
3500
|
delta += floor(delta / numPoints);
|
|
@@ -3298,8 +3507,8 @@ var require_uri_all = __commonJS({
|
|
|
3298
3507
|
delta = floor(delta / baseMinusTMin);
|
|
3299
3508
|
}
|
|
3300
3509
|
return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
|
|
3301
|
-
};
|
|
3302
|
-
var decode = function decode2(input) {
|
|
3510
|
+
}, "adapt");
|
|
3511
|
+
var decode = /* @__PURE__ */ __name(function decode2(input) {
|
|
3303
3512
|
var output = [];
|
|
3304
3513
|
var inputLength = input.length;
|
|
3305
3514
|
var i = 0;
|
|
@@ -3351,8 +3560,8 @@ var require_uri_all = __commonJS({
|
|
|
3351
3560
|
output.splice(i++, 0, n);
|
|
3352
3561
|
}
|
|
3353
3562
|
return String.fromCodePoint.apply(String, output);
|
|
3354
|
-
};
|
|
3355
|
-
var encode = function encode2(input) {
|
|
3563
|
+
}, "decode");
|
|
3564
|
+
var encode = /* @__PURE__ */ __name(function encode2(input) {
|
|
3356
3565
|
var output = [];
|
|
3357
3566
|
input = ucs2decode(input);
|
|
3358
3567
|
var inputLength = input.length;
|
|
@@ -3470,17 +3679,17 @@ var require_uri_all = __commonJS({
|
|
|
3470
3679
|
++n;
|
|
3471
3680
|
}
|
|
3472
3681
|
return output.join("");
|
|
3473
|
-
};
|
|
3474
|
-
var toUnicode = function toUnicode2(input) {
|
|
3682
|
+
}, "encode");
|
|
3683
|
+
var toUnicode = /* @__PURE__ */ __name(function toUnicode2(input) {
|
|
3475
3684
|
return mapDomain(input, function(string) {
|
|
3476
3685
|
return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string;
|
|
3477
3686
|
});
|
|
3478
|
-
};
|
|
3479
|
-
var toASCII = function toASCII2(input) {
|
|
3687
|
+
}, "toUnicode");
|
|
3688
|
+
var toASCII = /* @__PURE__ */ __name(function toASCII2(input) {
|
|
3480
3689
|
return mapDomain(input, function(string) {
|
|
3481
3690
|
return regexNonASCII.test(string) ? "xn--" + encode(string) : string;
|
|
3482
3691
|
});
|
|
3483
|
-
};
|
|
3692
|
+
}, "toASCII");
|
|
3484
3693
|
var punycode = {
|
|
3485
3694
|
/**
|
|
3486
3695
|
* A string representing the current Punycode.js version number.
|
|
@@ -3518,6 +3727,7 @@ var require_uri_all = __commonJS({
|
|
|
3518
3727
|
e = "%" + (c >> 12 | 224).toString(16).toUpperCase() + "%" + (c >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();
|
|
3519
3728
|
return e;
|
|
3520
3729
|
}
|
|
3730
|
+
__name(pctEncChar, "pctEncChar");
|
|
3521
3731
|
function pctDecChars(str) {
|
|
3522
3732
|
var newStr = "";
|
|
3523
3733
|
var i = 0;
|
|
@@ -3551,11 +3761,13 @@ var require_uri_all = __commonJS({
|
|
|
3551
3761
|
}
|
|
3552
3762
|
return newStr;
|
|
3553
3763
|
}
|
|
3764
|
+
__name(pctDecChars, "pctDecChars");
|
|
3554
3765
|
function _normalizeComponentEncoding(components, protocol) {
|
|
3555
3766
|
function decodeUnreserved2(str) {
|
|
3556
3767
|
var decStr = pctDecChars(str);
|
|
3557
3768
|
return !decStr.match(protocol.UNRESERVED) ? str : decStr;
|
|
3558
3769
|
}
|
|
3770
|
+
__name(decodeUnreserved2, "decodeUnreserved");
|
|
3559
3771
|
if (components.scheme)
|
|
3560
3772
|
components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved2).toLowerCase().replace(protocol.NOT_SCHEME, "");
|
|
3561
3773
|
if (components.userinfo !== void 0)
|
|
@@ -3570,9 +3782,11 @@ var require_uri_all = __commonJS({
|
|
|
3570
3782
|
components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
3571
3783
|
return components;
|
|
3572
3784
|
}
|
|
3785
|
+
__name(_normalizeComponentEncoding, "_normalizeComponentEncoding");
|
|
3573
3786
|
function _stripLeadingZeros(str) {
|
|
3574
3787
|
return str.replace(/^0*(.*)/, "$1") || "0";
|
|
3575
3788
|
}
|
|
3789
|
+
__name(_stripLeadingZeros, "_stripLeadingZeros");
|
|
3576
3790
|
function _normalizeIPv4(host, protocol) {
|
|
3577
3791
|
var matches = host.match(protocol.IPV4ADDRESS) || [];
|
|
3578
3792
|
var _matches = slicedToArray(matches, 2), address = _matches[1];
|
|
@@ -3582,6 +3796,7 @@ var require_uri_all = __commonJS({
|
|
|
3582
3796
|
return host;
|
|
3583
3797
|
}
|
|
3584
3798
|
}
|
|
3799
|
+
__name(_normalizeIPv4, "_normalizeIPv4");
|
|
3585
3800
|
function _normalizeIPv6(host, protocol) {
|
|
3586
3801
|
var matches = host.match(protocol.IPV6ADDRESS) || [];
|
|
3587
3802
|
var _matches2 = slicedToArray(matches, 3), address = _matches2[1], zone = _matches2[2];
|
|
@@ -3629,6 +3844,7 @@ var require_uri_all = __commonJS({
|
|
|
3629
3844
|
return host;
|
|
3630
3845
|
}
|
|
3631
3846
|
}
|
|
3847
|
+
__name(_normalizeIPv6, "_normalizeIPv6");
|
|
3632
3848
|
var URI_PARSE = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;
|
|
3633
3849
|
var NO_MATCH_IS_UNDEFINED = "".match(/(){0}/)[1] === void 0;
|
|
3634
3850
|
function parse(uriString) {
|
|
@@ -3698,6 +3914,7 @@ var require_uri_all = __commonJS({
|
|
|
3698
3914
|
}
|
|
3699
3915
|
return components;
|
|
3700
3916
|
}
|
|
3917
|
+
__name(parse, "parse");
|
|
3701
3918
|
function _recomposeAuthority(components, options) {
|
|
3702
3919
|
var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;
|
|
3703
3920
|
var uriTokens = [];
|
|
@@ -3716,6 +3933,7 @@ var require_uri_all = __commonJS({
|
|
|
3716
3933
|
}
|
|
3717
3934
|
return uriTokens.length ? uriTokens.join("") : void 0;
|
|
3718
3935
|
}
|
|
3936
|
+
__name(_recomposeAuthority, "_recomposeAuthority");
|
|
3719
3937
|
var RDS1 = /^\.\.?\//;
|
|
3720
3938
|
var RDS2 = /^\/\.(\/|$)/;
|
|
3721
3939
|
var RDS3 = /^\/\.\.(\/|$)/;
|
|
@@ -3745,6 +3963,7 @@ var require_uri_all = __commonJS({
|
|
|
3745
3963
|
}
|
|
3746
3964
|
return output.join("");
|
|
3747
3965
|
}
|
|
3966
|
+
__name(removeDotSegments, "removeDotSegments");
|
|
3748
3967
|
function serialize(components) {
|
|
3749
3968
|
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3750
3969
|
var protocol = options.iri ? IRI_PROTOCOL : URI_PROTOCOL;
|
|
@@ -3797,6 +4016,7 @@ var require_uri_all = __commonJS({
|
|
|
3797
4016
|
}
|
|
3798
4017
|
return uriTokens.join("");
|
|
3799
4018
|
}
|
|
4019
|
+
__name(serialize, "serialize");
|
|
3800
4020
|
function resolveComponents(base2, relative) {
|
|
3801
4021
|
var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
3802
4022
|
var skipNormalization = arguments[3];
|
|
@@ -3852,10 +4072,12 @@ var require_uri_all = __commonJS({
|
|
|
3852
4072
|
target.fragment = relative.fragment;
|
|
3853
4073
|
return target;
|
|
3854
4074
|
}
|
|
4075
|
+
__name(resolveComponents, "resolveComponents");
|
|
3855
4076
|
function resolve(baseURI, relativeURI, options) {
|
|
3856
4077
|
var schemelessOptions = assign({ scheme: "null" }, options);
|
|
3857
4078
|
return serialize(resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions);
|
|
3858
4079
|
}
|
|
4080
|
+
__name(resolve, "resolve");
|
|
3859
4081
|
function normalize(uri, options) {
|
|
3860
4082
|
if (typeof uri === "string") {
|
|
3861
4083
|
uri = serialize(parse(uri, options), options);
|
|
@@ -3864,6 +4086,7 @@ var require_uri_all = __commonJS({
|
|
|
3864
4086
|
}
|
|
3865
4087
|
return uri;
|
|
3866
4088
|
}
|
|
4089
|
+
__name(normalize, "normalize");
|
|
3867
4090
|
function equal(uriA, uriB, options) {
|
|
3868
4091
|
if (typeof uriA === "string") {
|
|
3869
4092
|
uriA = serialize(parse(uriA, options), options);
|
|
@@ -3877,22 +4100,25 @@ var require_uri_all = __commonJS({
|
|
|
3877
4100
|
}
|
|
3878
4101
|
return uriA === uriB;
|
|
3879
4102
|
}
|
|
4103
|
+
__name(equal, "equal");
|
|
3880
4104
|
function escapeComponent(str, options) {
|
|
3881
4105
|
return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.ESCAPE : IRI_PROTOCOL.ESCAPE, pctEncChar);
|
|
3882
4106
|
}
|
|
4107
|
+
__name(escapeComponent, "escapeComponent");
|
|
3883
4108
|
function unescapeComponent(str, options) {
|
|
3884
4109
|
return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.PCT_ENCODED : IRI_PROTOCOL.PCT_ENCODED, pctDecChars);
|
|
3885
4110
|
}
|
|
4111
|
+
__name(unescapeComponent, "unescapeComponent");
|
|
3886
4112
|
var handler = {
|
|
3887
4113
|
scheme: "http",
|
|
3888
4114
|
domainHost: true,
|
|
3889
|
-
parse: function parse2(components, options) {
|
|
4115
|
+
parse: /* @__PURE__ */ __name(function parse2(components, options) {
|
|
3890
4116
|
if (!components.host) {
|
|
3891
4117
|
components.error = components.error || "HTTP URIs must have a host.";
|
|
3892
4118
|
}
|
|
3893
4119
|
return components;
|
|
3894
|
-
},
|
|
3895
|
-
serialize: function serialize2(components, options) {
|
|
4120
|
+
}, "parse"),
|
|
4121
|
+
serialize: /* @__PURE__ */ __name(function serialize2(components, options) {
|
|
3896
4122
|
var secure = String(components.scheme).toLowerCase() === "https";
|
|
3897
4123
|
if (components.port === (secure ? 443 : 80) || components.port === "") {
|
|
3898
4124
|
components.port = void 0;
|
|
@@ -3901,7 +4127,7 @@ var require_uri_all = __commonJS({
|
|
|
3901
4127
|
components.path = "/";
|
|
3902
4128
|
}
|
|
3903
4129
|
return components;
|
|
3904
|
-
}
|
|
4130
|
+
}, "serialize")
|
|
3905
4131
|
};
|
|
3906
4132
|
var handler$1 = {
|
|
3907
4133
|
scheme: "https",
|
|
@@ -3912,18 +4138,19 @@ var require_uri_all = __commonJS({
|
|
|
3912
4138
|
function isSecure(wsComponents) {
|
|
3913
4139
|
return typeof wsComponents.secure === "boolean" ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === "wss";
|
|
3914
4140
|
}
|
|
4141
|
+
__name(isSecure, "isSecure");
|
|
3915
4142
|
var handler$2 = {
|
|
3916
4143
|
scheme: "ws",
|
|
3917
4144
|
domainHost: true,
|
|
3918
|
-
parse: function parse2(components, options) {
|
|
4145
|
+
parse: /* @__PURE__ */ __name(function parse2(components, options) {
|
|
3919
4146
|
var wsComponents = components;
|
|
3920
4147
|
wsComponents.secure = isSecure(wsComponents);
|
|
3921
4148
|
wsComponents.resourceName = (wsComponents.path || "/") + (wsComponents.query ? "?" + wsComponents.query : "");
|
|
3922
4149
|
wsComponents.path = void 0;
|
|
3923
4150
|
wsComponents.query = void 0;
|
|
3924
4151
|
return wsComponents;
|
|
3925
|
-
},
|
|
3926
|
-
serialize: function serialize2(wsComponents, options) {
|
|
4152
|
+
}, "parse"),
|
|
4153
|
+
serialize: /* @__PURE__ */ __name(function serialize2(wsComponents, options) {
|
|
3927
4154
|
if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === "") {
|
|
3928
4155
|
wsComponents.port = void 0;
|
|
3929
4156
|
}
|
|
@@ -3939,7 +4166,7 @@ var require_uri_all = __commonJS({
|
|
|
3939
4166
|
}
|
|
3940
4167
|
wsComponents.fragment = void 0;
|
|
3941
4168
|
return wsComponents;
|
|
3942
|
-
}
|
|
4169
|
+
}, "serialize")
|
|
3943
4170
|
};
|
|
3944
4171
|
var handler$3 = {
|
|
3945
4172
|
scheme: "wss",
|
|
@@ -3965,9 +4192,10 @@ var require_uri_all = __commonJS({
|
|
|
3965
4192
|
var decStr = pctDecChars(str);
|
|
3966
4193
|
return !decStr.match(UNRESERVED) ? str : decStr;
|
|
3967
4194
|
}
|
|
4195
|
+
__name(decodeUnreserved, "decodeUnreserved");
|
|
3968
4196
|
var handler$4 = {
|
|
3969
4197
|
scheme: "mailto",
|
|
3970
|
-
parse: function parse$$1(components, options) {
|
|
4198
|
+
parse: /* @__PURE__ */ __name(function parse$$1(components, options) {
|
|
3971
4199
|
var mailtoComponents = components;
|
|
3972
4200
|
var to = mailtoComponents.to = mailtoComponents.path ? mailtoComponents.path.split(",") : [];
|
|
3973
4201
|
mailtoComponents.path = void 0;
|
|
@@ -4015,8 +4243,8 @@ var require_uri_all = __commonJS({
|
|
|
4015
4243
|
to[_x2] = addr.join("@");
|
|
4016
4244
|
}
|
|
4017
4245
|
return mailtoComponents;
|
|
4018
|
-
},
|
|
4019
|
-
serialize: function serialize$$1(mailtoComponents, options) {
|
|
4246
|
+
}, "parse$$1"),
|
|
4247
|
+
serialize: /* @__PURE__ */ __name(function serialize$$1(mailtoComponents, options) {
|
|
4020
4248
|
var components = mailtoComponents;
|
|
4021
4249
|
var to = toArray(mailtoComponents.to);
|
|
4022
4250
|
if (to) {
|
|
@@ -4049,12 +4277,12 @@ var require_uri_all = __commonJS({
|
|
|
4049
4277
|
components.query = fields.join("&");
|
|
4050
4278
|
}
|
|
4051
4279
|
return components;
|
|
4052
|
-
}
|
|
4280
|
+
}, "serialize$$1")
|
|
4053
4281
|
};
|
|
4054
4282
|
var URN_PARSE = /^([^\:]+)\:(.*)/;
|
|
4055
4283
|
var handler$5 = {
|
|
4056
4284
|
scheme: "urn",
|
|
4057
|
-
parse: function parse$$1(components, options) {
|
|
4285
|
+
parse: /* @__PURE__ */ __name(function parse$$1(components, options) {
|
|
4058
4286
|
var matches = components.path && components.path.match(URN_PARSE);
|
|
4059
4287
|
var urnComponents = components;
|
|
4060
4288
|
if (matches) {
|
|
@@ -4073,8 +4301,8 @@ var require_uri_all = __commonJS({
|
|
|
4073
4301
|
urnComponents.error = urnComponents.error || "URN can not be parsed.";
|
|
4074
4302
|
}
|
|
4075
4303
|
return urnComponents;
|
|
4076
|
-
},
|
|
4077
|
-
serialize: function serialize$$1(urnComponents, options) {
|
|
4304
|
+
}, "parse$$1"),
|
|
4305
|
+
serialize: /* @__PURE__ */ __name(function serialize$$1(urnComponents, options) {
|
|
4078
4306
|
var scheme = options.scheme || urnComponents.scheme || "urn";
|
|
4079
4307
|
var nid = urnComponents.nid;
|
|
4080
4308
|
var urnScheme = scheme + ":" + (options.nid || nid);
|
|
@@ -4086,12 +4314,12 @@ var require_uri_all = __commonJS({
|
|
|
4086
4314
|
var nss = urnComponents.nss;
|
|
4087
4315
|
uriComponents.path = (nid || options.nid) + ":" + nss;
|
|
4088
4316
|
return uriComponents;
|
|
4089
|
-
}
|
|
4317
|
+
}, "serialize$$1")
|
|
4090
4318
|
};
|
|
4091
4319
|
var UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;
|
|
4092
4320
|
var handler$6 = {
|
|
4093
4321
|
scheme: "urn:uuid",
|
|
4094
|
-
parse: function parse2(urnComponents, options) {
|
|
4322
|
+
parse: /* @__PURE__ */ __name(function parse2(urnComponents, options) {
|
|
4095
4323
|
var uuidComponents = urnComponents;
|
|
4096
4324
|
uuidComponents.uuid = uuidComponents.nss;
|
|
4097
4325
|
uuidComponents.nss = void 0;
|
|
@@ -4099,12 +4327,12 @@ var require_uri_all = __commonJS({
|
|
|
4099
4327
|
uuidComponents.error = uuidComponents.error || "UUID is not valid.";
|
|
4100
4328
|
}
|
|
4101
4329
|
return uuidComponents;
|
|
4102
|
-
},
|
|
4103
|
-
serialize: function serialize2(uuidComponents, options) {
|
|
4330
|
+
}, "parse"),
|
|
4331
|
+
serialize: /* @__PURE__ */ __name(function serialize2(uuidComponents, options) {
|
|
4104
4332
|
var urnComponents = uuidComponents;
|
|
4105
4333
|
urnComponents.nss = (uuidComponents.uuid || "").toLowerCase();
|
|
4106
4334
|
return urnComponents;
|
|
4107
|
-
}
|
|
4335
|
+
}, "serialize")
|
|
4108
4336
|
};
|
|
4109
4337
|
SCHEMES[handler.scheme] = handler;
|
|
4110
4338
|
SCHEMES[handler$1.scheme] = handler$1;
|
|
@@ -4180,7 +4408,7 @@ var require_core = __commonJS({
|
|
|
4180
4408
|
var util_1 = require_util();
|
|
4181
4409
|
var $dataRefSchema = require_data();
|
|
4182
4410
|
var uri_1 = require_uri();
|
|
4183
|
-
var defaultRegExp = (str, flags) => new RegExp(str, flags);
|
|
4411
|
+
var defaultRegExp = /* @__PURE__ */ __name((str, flags) => new RegExp(str, flags), "defaultRegExp");
|
|
4184
4412
|
defaultRegExp.code = "new RegExp";
|
|
4185
4413
|
var META_IGNORE_OPTIONS = ["removeAdditional", "useDefaults", "coerceTypes"];
|
|
4186
4414
|
var EXT_SCOPE_NAMES = /* @__PURE__ */ new Set([
|
|
@@ -4249,6 +4477,7 @@ var require_core = __commonJS({
|
|
|
4249
4477
|
uriResolver
|
|
4250
4478
|
};
|
|
4251
4479
|
}
|
|
4480
|
+
__name(requiredOptions, "requiredOptions");
|
|
4252
4481
|
var Ajv = class {
|
|
4253
4482
|
constructor(opts = {}) {
|
|
4254
4483
|
this.schemas = {};
|
|
@@ -4325,11 +4554,13 @@ var require_core = __commonJS({
|
|
|
4325
4554
|
const sch = this._addSchema(_schema, _meta);
|
|
4326
4555
|
return sch.validate || _compileAsync.call(this, sch);
|
|
4327
4556
|
}
|
|
4557
|
+
__name(runCompileAsync, "runCompileAsync");
|
|
4328
4558
|
async function loadMetaSchema($ref) {
|
|
4329
4559
|
if ($ref && !this.getSchema($ref)) {
|
|
4330
4560
|
await runCompileAsync.call(this, { $ref }, true);
|
|
4331
4561
|
}
|
|
4332
4562
|
}
|
|
4563
|
+
__name(loadMetaSchema, "loadMetaSchema");
|
|
4333
4564
|
async function _compileAsync(sch) {
|
|
4334
4565
|
try {
|
|
4335
4566
|
return this._compileSchemaEnv(sch);
|
|
@@ -4341,11 +4572,13 @@ var require_core = __commonJS({
|
|
|
4341
4572
|
return _compileAsync.call(this, sch);
|
|
4342
4573
|
}
|
|
4343
4574
|
}
|
|
4575
|
+
__name(_compileAsync, "_compileAsync");
|
|
4344
4576
|
function checkLoaded({ missingSchema: ref, missingRef }) {
|
|
4345
4577
|
if (this.refs[ref]) {
|
|
4346
4578
|
throw new Error(`AnySchema ${ref} is loaded but ${missingRef} cannot be resolved`);
|
|
4347
4579
|
}
|
|
4348
4580
|
}
|
|
4581
|
+
__name(checkLoaded, "checkLoaded");
|
|
4349
4582
|
async function loadMissingSchema(ref) {
|
|
4350
4583
|
const _schema = await _loadSchema.call(this, ref);
|
|
4351
4584
|
if (!this.refs[ref])
|
|
@@ -4353,6 +4586,7 @@ var require_core = __commonJS({
|
|
|
4353
4586
|
if (!this.refs[ref])
|
|
4354
4587
|
this.addSchema(_schema, ref, meta);
|
|
4355
4588
|
}
|
|
4589
|
+
__name(loadMissingSchema, "loadMissingSchema");
|
|
4356
4590
|
async function _loadSchema(ref) {
|
|
4357
4591
|
const p = this._loading[ref];
|
|
4358
4592
|
if (p)
|
|
@@ -4363,6 +4597,7 @@ var require_core = __commonJS({
|
|
|
4363
4597
|
delete this._loading[ref];
|
|
4364
4598
|
}
|
|
4365
4599
|
}
|
|
4600
|
+
__name(_loadSchema, "_loadSchema");
|
|
4366
4601
|
}
|
|
4367
4602
|
// Adds schema to the instance
|
|
4368
4603
|
addSchema(schema, key, _meta, _validateSchema = this.opts.validateSchema) {
|
|
@@ -4619,6 +4854,7 @@ var require_core = __commonJS({
|
|
|
4619
4854
|
}
|
|
4620
4855
|
}
|
|
4621
4856
|
};
|
|
4857
|
+
__name(Ajv, "Ajv");
|
|
4622
4858
|
exports.default = Ajv;
|
|
4623
4859
|
Ajv.ValidationError = validation_error_1.default;
|
|
4624
4860
|
Ajv.MissingRefError = ref_error_1.default;
|
|
@@ -4629,10 +4865,12 @@ var require_core = __commonJS({
|
|
|
4629
4865
|
this.logger[log](`${msg}: option ${key}. ${checkOpts[opt]}`);
|
|
4630
4866
|
}
|
|
4631
4867
|
}
|
|
4868
|
+
__name(checkOptions, "checkOptions");
|
|
4632
4869
|
function getSchEnv(keyRef) {
|
|
4633
4870
|
keyRef = (0, resolve_1.normalizeId)(keyRef);
|
|
4634
4871
|
return this.schemas[keyRef] || this.refs[keyRef];
|
|
4635
4872
|
}
|
|
4873
|
+
__name(getSchEnv, "getSchEnv");
|
|
4636
4874
|
function addInitialSchemas() {
|
|
4637
4875
|
const optsSchemas = this.opts.schemas;
|
|
4638
4876
|
if (!optsSchemas)
|
|
@@ -4643,6 +4881,7 @@ var require_core = __commonJS({
|
|
|
4643
4881
|
for (const key in optsSchemas)
|
|
4644
4882
|
this.addSchema(optsSchemas[key], key);
|
|
4645
4883
|
}
|
|
4884
|
+
__name(addInitialSchemas, "addInitialSchemas");
|
|
4646
4885
|
function addInitialFormats() {
|
|
4647
4886
|
for (const name in this.opts.formats) {
|
|
4648
4887
|
const format = this.opts.formats[name];
|
|
@@ -4650,6 +4889,7 @@ var require_core = __commonJS({
|
|
|
4650
4889
|
this.addFormat(name, format);
|
|
4651
4890
|
}
|
|
4652
4891
|
}
|
|
4892
|
+
__name(addInitialFormats, "addInitialFormats");
|
|
4653
4893
|
function addInitialKeywords(defs) {
|
|
4654
4894
|
if (Array.isArray(defs)) {
|
|
4655
4895
|
this.addVocabulary(defs);
|
|
@@ -4663,12 +4903,14 @@ var require_core = __commonJS({
|
|
|
4663
4903
|
this.addKeyword(def);
|
|
4664
4904
|
}
|
|
4665
4905
|
}
|
|
4906
|
+
__name(addInitialKeywords, "addInitialKeywords");
|
|
4666
4907
|
function getMetaSchemaOptions() {
|
|
4667
4908
|
const metaOpts = { ...this.opts };
|
|
4668
4909
|
for (const opt of META_IGNORE_OPTIONS)
|
|
4669
4910
|
delete metaOpts[opt];
|
|
4670
4911
|
return metaOpts;
|
|
4671
4912
|
}
|
|
4913
|
+
__name(getMetaSchemaOptions, "getMetaSchemaOptions");
|
|
4672
4914
|
var noLogs = { log() {
|
|
4673
4915
|
}, warn() {
|
|
4674
4916
|
}, error() {
|
|
@@ -4682,6 +4924,7 @@ var require_core = __commonJS({
|
|
|
4682
4924
|
return logger;
|
|
4683
4925
|
throw new Error("logger must implement log, warn and error methods");
|
|
4684
4926
|
}
|
|
4927
|
+
__name(getLogger, "getLogger");
|
|
4685
4928
|
var KEYWORD_NAME = /^[a-z_$][a-z0-9_$:-]*$/i;
|
|
4686
4929
|
function checkKeyword(keyword, def) {
|
|
4687
4930
|
const { RULES } = this;
|
|
@@ -4697,6 +4940,7 @@ var require_core = __commonJS({
|
|
|
4697
4940
|
throw new Error('$data keyword must have "code" or "validate" function');
|
|
4698
4941
|
}
|
|
4699
4942
|
}
|
|
4943
|
+
__name(checkKeyword, "checkKeyword");
|
|
4700
4944
|
function addRule(keyword, definition, dataType) {
|
|
4701
4945
|
var _a;
|
|
4702
4946
|
const post = definition === null || definition === void 0 ? void 0 : definition.post;
|
|
@@ -4726,6 +4970,7 @@ var require_core = __commonJS({
|
|
|
4726
4970
|
RULES.all[keyword] = rule;
|
|
4727
4971
|
(_a = definition.implements) === null || _a === void 0 ? void 0 : _a.forEach((kwd) => this.addKeyword(kwd));
|
|
4728
4972
|
}
|
|
4973
|
+
__name(addRule, "addRule");
|
|
4729
4974
|
function addBeforeRule(ruleGroup, rule, before) {
|
|
4730
4975
|
const i = ruleGroup.rules.findIndex((_rule) => _rule.keyword === before);
|
|
4731
4976
|
if (i >= 0) {
|
|
@@ -4735,6 +4980,7 @@ var require_core = __commonJS({
|
|
|
4735
4980
|
this.logger.warn(`rule ${before} is not defined`);
|
|
4736
4981
|
}
|
|
4737
4982
|
}
|
|
4983
|
+
__name(addBeforeRule, "addBeforeRule");
|
|
4738
4984
|
function keywordMetaschema(def) {
|
|
4739
4985
|
let { metaSchema } = def;
|
|
4740
4986
|
if (metaSchema === void 0)
|
|
@@ -4743,12 +4989,14 @@ var require_core = __commonJS({
|
|
|
4743
4989
|
metaSchema = schemaOrData(metaSchema);
|
|
4744
4990
|
def.validateSchema = this.compile(metaSchema, true);
|
|
4745
4991
|
}
|
|
4992
|
+
__name(keywordMetaschema, "keywordMetaschema");
|
|
4746
4993
|
var $dataRef = {
|
|
4747
4994
|
$ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"
|
|
4748
4995
|
};
|
|
4749
4996
|
function schemaOrData(schema) {
|
|
4750
4997
|
return { anyOf: [schema, $dataRef] };
|
|
4751
4998
|
}
|
|
4999
|
+
__name(schemaOrData, "schemaOrData");
|
|
4752
5000
|
}
|
|
4753
5001
|
});
|
|
4754
5002
|
|
|
@@ -4800,10 +5048,12 @@ var require_ref = __commonJS({
|
|
|
4800
5048
|
const rootName = gen.scopeValue("root", { ref: root });
|
|
4801
5049
|
return callRef(cxt, (0, codegen_1._)`${rootName}.validate`, root, root.$async);
|
|
4802
5050
|
}
|
|
5051
|
+
__name(callRootRef, "callRootRef");
|
|
4803
5052
|
function callValidate(sch) {
|
|
4804
5053
|
const v = getValidate(cxt, sch);
|
|
4805
5054
|
callRef(cxt, v, sch, sch.$async);
|
|
4806
5055
|
}
|
|
5056
|
+
__name(callValidate, "callValidate");
|
|
4807
5057
|
function inlineRefSchema(sch) {
|
|
4808
5058
|
const schName = gen.scopeValue("schema", opts.code.source === true ? { ref: sch, code: (0, codegen_1.stringify)(sch) } : { ref: sch });
|
|
4809
5059
|
const valid = gen.name("valid");
|
|
@@ -4817,12 +5067,14 @@ var require_ref = __commonJS({
|
|
|
4817
5067
|
cxt.mergeEvaluated(schCxt);
|
|
4818
5068
|
cxt.ok(valid);
|
|
4819
5069
|
}
|
|
5070
|
+
__name(inlineRefSchema, "inlineRefSchema");
|
|
4820
5071
|
}
|
|
4821
5072
|
};
|
|
4822
5073
|
function getValidate(cxt, sch) {
|
|
4823
5074
|
const { gen } = cxt;
|
|
4824
5075
|
return sch.validate ? gen.scopeValue("validate", { ref: sch.validate }) : (0, codegen_1._)`${gen.scopeValue("wrapper", { ref: sch })}.validate`;
|
|
4825
5076
|
}
|
|
5077
|
+
__name(getValidate, "getValidate");
|
|
4826
5078
|
exports.getValidate = getValidate;
|
|
4827
5079
|
function callRef(cxt, v, sch, $async) {
|
|
4828
5080
|
const { gen, it } = cxt;
|
|
@@ -4849,14 +5101,17 @@ var require_ref = __commonJS({
|
|
|
4849
5101
|
});
|
|
4850
5102
|
cxt.ok(valid);
|
|
4851
5103
|
}
|
|
5104
|
+
__name(callAsyncRef, "callAsyncRef");
|
|
4852
5105
|
function callSyncRef() {
|
|
4853
5106
|
cxt.result((0, code_1.callValidateCode)(cxt, v, passCxt), () => addEvaluatedFrom(v), () => addErrorsFrom(v));
|
|
4854
5107
|
}
|
|
5108
|
+
__name(callSyncRef, "callSyncRef");
|
|
4855
5109
|
function addErrorsFrom(source) {
|
|
4856
5110
|
const errs = (0, codegen_1._)`${source}.errors`;
|
|
4857
5111
|
gen.assign(names_1.default.vErrors, (0, codegen_1._)`${names_1.default.vErrors} === null ? ${errs} : ${names_1.default.vErrors}.concat(${errs})`);
|
|
4858
5112
|
gen.assign(names_1.default.errors, (0, codegen_1._)`${names_1.default.vErrors}.length`);
|
|
4859
5113
|
}
|
|
5114
|
+
__name(addErrorsFrom, "addErrorsFrom");
|
|
4860
5115
|
function addEvaluatedFrom(source) {
|
|
4861
5116
|
var _a;
|
|
4862
5117
|
if (!it.opts.unevaluated)
|
|
@@ -4883,7 +5138,9 @@ var require_ref = __commonJS({
|
|
|
4883
5138
|
}
|
|
4884
5139
|
}
|
|
4885
5140
|
}
|
|
5141
|
+
__name(addEvaluatedFrom, "addEvaluatedFrom");
|
|
4886
5142
|
}
|
|
5143
|
+
__name(callRef, "callRef");
|
|
4887
5144
|
exports.callRef = callRef;
|
|
4888
5145
|
exports.default = def;
|
|
4889
5146
|
}
|
|
@@ -4991,6 +5248,7 @@ var require_ucs2length = __commonJS({
|
|
|
4991
5248
|
}
|
|
4992
5249
|
return length;
|
|
4993
5250
|
}
|
|
5251
|
+
__name(ucs2length, "ucs2length");
|
|
4994
5252
|
exports.default = ucs2length;
|
|
4995
5253
|
ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
4996
5254
|
}
|
|
@@ -5133,6 +5391,7 @@ var require_required = __commonJS({
|
|
|
5133
5391
|
}
|
|
5134
5392
|
}
|
|
5135
5393
|
}
|
|
5394
|
+
__name(allErrorsMode, "allErrorsMode");
|
|
5136
5395
|
function exitOnErrorMode() {
|
|
5137
5396
|
const missing = gen.let("missing");
|
|
5138
5397
|
if (useLoop || $data) {
|
|
@@ -5145,12 +5404,14 @@ var require_required = __commonJS({
|
|
|
5145
5404
|
gen.else();
|
|
5146
5405
|
}
|
|
5147
5406
|
}
|
|
5407
|
+
__name(exitOnErrorMode, "exitOnErrorMode");
|
|
5148
5408
|
function loopAllRequired() {
|
|
5149
5409
|
gen.forOf("prop", schemaCode, (prop) => {
|
|
5150
5410
|
cxt.setParams({ missingProperty: prop });
|
|
5151
5411
|
gen.if((0, code_1.noPropertyInData)(gen, data, prop, opts.ownProperties), () => cxt.error());
|
|
5152
5412
|
});
|
|
5153
5413
|
}
|
|
5414
|
+
__name(loopAllRequired, "loopAllRequired");
|
|
5154
5415
|
function loopUntilMissing(missing, valid) {
|
|
5155
5416
|
cxt.setParams({ missingProperty: missing });
|
|
5156
5417
|
gen.forOf(missing, schemaCode, () => {
|
|
@@ -5161,6 +5422,7 @@ var require_required = __commonJS({
|
|
|
5161
5422
|
});
|
|
5162
5423
|
}, codegen_1.nil);
|
|
5163
5424
|
}
|
|
5425
|
+
__name(loopUntilMissing, "loopUntilMissing");
|
|
5164
5426
|
}
|
|
5165
5427
|
};
|
|
5166
5428
|
exports.default = def;
|
|
@@ -5241,9 +5503,11 @@ var require_uniqueItems = __commonJS({
|
|
|
5241
5503
|
gen.assign(valid, true);
|
|
5242
5504
|
gen.if((0, codegen_1._)`${i} > 1`, () => (canOptimize() ? loopN : loopN2)(i, j));
|
|
5243
5505
|
}
|
|
5506
|
+
__name(validateUniqueItems, "validateUniqueItems");
|
|
5244
5507
|
function canOptimize() {
|
|
5245
5508
|
return itemTypes.length > 0 && !itemTypes.some((t) => t === "object" || t === "array");
|
|
5246
5509
|
}
|
|
5510
|
+
__name(canOptimize, "canOptimize");
|
|
5247
5511
|
function loopN(i, j) {
|
|
5248
5512
|
const item = gen.name("item");
|
|
5249
5513
|
const wrongType = (0, dataType_1.checkDataTypes)(itemTypes, item, it.opts.strictNumbers, dataType_1.DataType.Wrong);
|
|
@@ -5260,6 +5524,7 @@ var require_uniqueItems = __commonJS({
|
|
|
5260
5524
|
}).code((0, codegen_1._)`${indices}[${item}] = ${i}`);
|
|
5261
5525
|
});
|
|
5262
5526
|
}
|
|
5527
|
+
__name(loopN, "loopN");
|
|
5263
5528
|
function loopN2(i, j) {
|
|
5264
5529
|
const eql = (0, util_1.useFunc)(gen, equal_1.default);
|
|
5265
5530
|
const outer = gen.name("outer");
|
|
@@ -5268,6 +5533,7 @@ var require_uniqueItems = __commonJS({
|
|
|
5268
5533
|
gen.assign(valid, false).break(outer);
|
|
5269
5534
|
})));
|
|
5270
5535
|
}
|
|
5536
|
+
__name(loopN2, "loopN2");
|
|
5271
5537
|
}
|
|
5272
5538
|
};
|
|
5273
5539
|
exports.default = def;
|
|
@@ -5326,7 +5592,7 @@ var require_enum = __commonJS({
|
|
|
5326
5592
|
throw new Error("enum must have non-empty array");
|
|
5327
5593
|
const useLoop = schema.length >= it.opts.loopEnum;
|
|
5328
5594
|
let eql;
|
|
5329
|
-
const getEql = () => eql !== null && eql !== void 0 ? eql : eql = (0, util_1.useFunc)(gen, equal_1.default);
|
|
5595
|
+
const getEql = /* @__PURE__ */ __name(() => eql !== null && eql !== void 0 ? eql : eql = (0, util_1.useFunc)(gen, equal_1.default), "getEql");
|
|
5330
5596
|
let valid;
|
|
5331
5597
|
if (useLoop || $data) {
|
|
5332
5598
|
valid = gen.let("valid");
|
|
@@ -5342,10 +5608,12 @@ var require_enum = __commonJS({
|
|
|
5342
5608
|
gen.assign(valid, false);
|
|
5343
5609
|
gen.forOf("v", schemaCode, (v) => gen.if((0, codegen_1._)`${getEql()}(${data}, ${v})`, () => gen.assign(valid, true).break()));
|
|
5344
5610
|
}
|
|
5611
|
+
__name(loopEnum, "loopEnum");
|
|
5345
5612
|
function equalCode(vSchema, i) {
|
|
5346
5613
|
const sch = schema[i];
|
|
5347
5614
|
return typeof sch === "object" && sch !== null ? (0, codegen_1._)`${getEql()}(${data}, ${vSchema}[${i}])` : (0, codegen_1._)`${data} === ${sch}`;
|
|
5348
5615
|
}
|
|
5616
|
+
__name(equalCode, "equalCode");
|
|
5349
5617
|
}
|
|
5350
5618
|
};
|
|
5351
5619
|
exports.default = def;
|
|
@@ -5437,7 +5705,9 @@ var require_additionalItems = __commonJS({
|
|
|
5437
5705
|
gen.if((0, codegen_1.not)(valid), () => gen.break());
|
|
5438
5706
|
});
|
|
5439
5707
|
}
|
|
5708
|
+
__name(validateItems, "validateItems");
|
|
5440
5709
|
}
|
|
5710
|
+
__name(validateAdditionalItems, "validateAdditionalItems");
|
|
5441
5711
|
exports.validateAdditionalItems = validateAdditionalItems;
|
|
5442
5712
|
exports.default = def;
|
|
5443
5713
|
}
|
|
@@ -5494,7 +5764,9 @@ var require_items = __commonJS({
|
|
|
5494
5764
|
(0, util_1.checkStrictMode)(it, msg, opts.strictTuples);
|
|
5495
5765
|
}
|
|
5496
5766
|
}
|
|
5767
|
+
__name(checkStrictTuple, "checkStrictTuple");
|
|
5497
5768
|
}
|
|
5769
|
+
__name(validateTuple, "validateTuple");
|
|
5498
5770
|
exports.validateTuple = validateTuple;
|
|
5499
5771
|
exports.default = def;
|
|
5500
5772
|
}
|
|
@@ -5617,6 +5889,7 @@ var require_contains = __commonJS({
|
|
|
5617
5889
|
const count = gen.let("count", 0);
|
|
5618
5890
|
validateItems(schValid, () => gen.if(schValid, () => checkLimits(count)));
|
|
5619
5891
|
}
|
|
5892
|
+
__name(validateItemsWithCount, "validateItemsWithCount");
|
|
5620
5893
|
function validateItems(_valid, block) {
|
|
5621
5894
|
gen.forRange("i", 0, len, (i) => {
|
|
5622
5895
|
cxt.subschema({
|
|
@@ -5628,6 +5901,7 @@ var require_contains = __commonJS({
|
|
|
5628
5901
|
block();
|
|
5629
5902
|
});
|
|
5630
5903
|
}
|
|
5904
|
+
__name(validateItems, "validateItems");
|
|
5631
5905
|
function checkLimits(count) {
|
|
5632
5906
|
gen.code((0, codegen_1._)`${count}++`);
|
|
5633
5907
|
if (max === void 0) {
|
|
@@ -5640,6 +5914,7 @@ var require_contains = __commonJS({
|
|
|
5640
5914
|
gen.if((0, codegen_1._)`${count} >= ${min}`, () => gen.assign(valid, true));
|
|
5641
5915
|
}
|
|
5642
5916
|
}
|
|
5917
|
+
__name(checkLimits, "checkLimits");
|
|
5643
5918
|
}
|
|
5644
5919
|
};
|
|
5645
5920
|
exports.default = def;
|
|
@@ -5688,6 +5963,7 @@ var require_dependencies = __commonJS({
|
|
|
5688
5963
|
}
|
|
5689
5964
|
return [propertyDeps, schemaDeps];
|
|
5690
5965
|
}
|
|
5966
|
+
__name(splitDependencies, "splitDependencies");
|
|
5691
5967
|
function validatePropertyDeps(cxt, propertyDeps = cxt.schema) {
|
|
5692
5968
|
const { gen, data, it } = cxt;
|
|
5693
5969
|
if (Object.keys(propertyDeps).length === 0)
|
|
@@ -5716,6 +5992,7 @@ var require_dependencies = __commonJS({
|
|
|
5716
5992
|
}
|
|
5717
5993
|
}
|
|
5718
5994
|
}
|
|
5995
|
+
__name(validatePropertyDeps, "validatePropertyDeps");
|
|
5719
5996
|
exports.validatePropertyDeps = validatePropertyDeps;
|
|
5720
5997
|
function validateSchemaDeps(cxt, schemaDeps = cxt.schema) {
|
|
5721
5998
|
const { gen, data, keyword, it } = cxt;
|
|
@@ -5735,6 +6012,7 @@ var require_dependencies = __commonJS({
|
|
|
5735
6012
|
cxt.ok(valid);
|
|
5736
6013
|
}
|
|
5737
6014
|
}
|
|
6015
|
+
__name(validateSchemaDeps, "validateSchemaDeps");
|
|
5738
6016
|
exports.validateSchemaDeps = validateSchemaDeps;
|
|
5739
6017
|
exports.default = def;
|
|
5740
6018
|
}
|
|
@@ -5823,6 +6101,7 @@ var require_additionalProperties = __commonJS({
|
|
|
5823
6101
|
gen.if(isAdditional(key), () => additionalPropertyCode(key));
|
|
5824
6102
|
});
|
|
5825
6103
|
}
|
|
6104
|
+
__name(checkAdditionalProperties, "checkAdditionalProperties");
|
|
5826
6105
|
function isAdditional(key) {
|
|
5827
6106
|
let definedProp;
|
|
5828
6107
|
if (props.length > 8) {
|
|
@@ -5838,9 +6117,11 @@ var require_additionalProperties = __commonJS({
|
|
|
5838
6117
|
}
|
|
5839
6118
|
return (0, codegen_1.not)(definedProp);
|
|
5840
6119
|
}
|
|
6120
|
+
__name(isAdditional, "isAdditional");
|
|
5841
6121
|
function deleteAdditional(key) {
|
|
5842
6122
|
gen.code((0, codegen_1._)`delete ${data}[${key}]`);
|
|
5843
6123
|
}
|
|
6124
|
+
__name(deleteAdditional, "deleteAdditional");
|
|
5844
6125
|
function additionalPropertyCode(key) {
|
|
5845
6126
|
if (opts.removeAdditional === "all" || opts.removeAdditional && schema === false) {
|
|
5846
6127
|
deleteAdditional(key);
|
|
@@ -5868,6 +6149,7 @@ var require_additionalProperties = __commonJS({
|
|
|
5868
6149
|
}
|
|
5869
6150
|
}
|
|
5870
6151
|
}
|
|
6152
|
+
__name(additionalPropertyCode, "additionalPropertyCode");
|
|
5871
6153
|
function applyAdditionalSchema(key, valid, errors) {
|
|
5872
6154
|
const subschema = {
|
|
5873
6155
|
keyword: "additionalProperties",
|
|
@@ -5883,6 +6165,7 @@ var require_additionalProperties = __commonJS({
|
|
|
5883
6165
|
}
|
|
5884
6166
|
cxt.subschema(subschema, valid);
|
|
5885
6167
|
}
|
|
6168
|
+
__name(applyAdditionalSchema, "applyAdditionalSchema");
|
|
5886
6169
|
}
|
|
5887
6170
|
};
|
|
5888
6171
|
exports.default = def;
|
|
@@ -5934,6 +6217,7 @@ var require_properties = __commonJS({
|
|
|
5934
6217
|
function hasDefault(prop) {
|
|
5935
6218
|
return it.opts.useDefaults && !it.compositeRule && schema[prop].default !== void 0;
|
|
5936
6219
|
}
|
|
6220
|
+
__name(hasDefault, "hasDefault");
|
|
5937
6221
|
function applyPropertySchema(prop) {
|
|
5938
6222
|
cxt.subschema({
|
|
5939
6223
|
keyword: "properties",
|
|
@@ -5941,6 +6225,7 @@ var require_properties = __commonJS({
|
|
|
5941
6225
|
dataProp: prop
|
|
5942
6226
|
}, valid);
|
|
5943
6227
|
}
|
|
6228
|
+
__name(applyPropertySchema, "applyPropertySchema");
|
|
5944
6229
|
}
|
|
5945
6230
|
};
|
|
5946
6231
|
exports.default = def;
|
|
@@ -5988,6 +6273,7 @@ var require_patternProperties = __commonJS({
|
|
|
5988
6273
|
}
|
|
5989
6274
|
}
|
|
5990
6275
|
}
|
|
6276
|
+
__name(validatePatternProperties, "validatePatternProperties");
|
|
5991
6277
|
function checkMatchingProperties(pat) {
|
|
5992
6278
|
for (const prop in checkProperties) {
|
|
5993
6279
|
if (new RegExp(pat).test(prop)) {
|
|
@@ -5995,6 +6281,7 @@ var require_patternProperties = __commonJS({
|
|
|
5995
6281
|
}
|
|
5996
6282
|
}
|
|
5997
6283
|
}
|
|
6284
|
+
__name(checkMatchingProperties, "checkMatchingProperties");
|
|
5998
6285
|
function validateProperties(pat) {
|
|
5999
6286
|
gen.forIn("key", data, (key) => {
|
|
6000
6287
|
gen.if((0, codegen_1._)`${(0, code_1.usePattern)(cxt, pat)}.test(${key})`, () => {
|
|
@@ -6015,6 +6302,7 @@ var require_patternProperties = __commonJS({
|
|
|
6015
6302
|
});
|
|
6016
6303
|
});
|
|
6017
6304
|
}
|
|
6305
|
+
__name(validateProperties, "validateProperties");
|
|
6018
6306
|
}
|
|
6019
6307
|
};
|
|
6020
6308
|
exports.default = def;
|
|
@@ -6121,6 +6409,7 @@ var require_oneOf = __commonJS({
|
|
|
6121
6409
|
});
|
|
6122
6410
|
});
|
|
6123
6411
|
}
|
|
6412
|
+
__name(validateOneOf, "validateOneOf");
|
|
6124
6413
|
}
|
|
6125
6414
|
};
|
|
6126
6415
|
exports.default = def;
|
|
@@ -6202,6 +6491,7 @@ var require_if = __commonJS({
|
|
|
6202
6491
|
}, schValid);
|
|
6203
6492
|
cxt.mergeEvaluated(schCxt);
|
|
6204
6493
|
}
|
|
6494
|
+
__name(validateIf, "validateIf");
|
|
6205
6495
|
function validateClause(keyword, ifClause) {
|
|
6206
6496
|
return () => {
|
|
6207
6497
|
const schCxt = cxt.subschema({ keyword }, schValid);
|
|
@@ -6213,12 +6503,14 @@ var require_if = __commonJS({
|
|
|
6213
6503
|
cxt.setParams({ ifClause: keyword });
|
|
6214
6504
|
};
|
|
6215
6505
|
}
|
|
6506
|
+
__name(validateClause, "validateClause");
|
|
6216
6507
|
}
|
|
6217
6508
|
};
|
|
6218
6509
|
function hasSchema(it, keyword) {
|
|
6219
6510
|
const schema = it.schema[keyword];
|
|
6220
6511
|
return schema !== void 0 && !(0, util_1.alwaysValidSchema)(it, schema);
|
|
6221
6512
|
}
|
|
6513
|
+
__name(hasSchema, "hasSchema");
|
|
6222
6514
|
exports.default = def;
|
|
6223
6515
|
}
|
|
6224
6516
|
});
|
|
@@ -6285,6 +6577,7 @@ var require_applicator = __commonJS({
|
|
|
6285
6577
|
applicator.push(contains_1.default);
|
|
6286
6578
|
return applicator;
|
|
6287
6579
|
}
|
|
6580
|
+
__name(getApplicator, "getApplicator");
|
|
6288
6581
|
exports.default = getApplicator;
|
|
6289
6582
|
}
|
|
6290
6583
|
});
|
|
@@ -6329,12 +6622,15 @@ var require_format = __commonJS({
|
|
|
6329
6622
|
return codegen_1.nil;
|
|
6330
6623
|
return (0, codegen_1._)`${schemaCode} && !${format}`;
|
|
6331
6624
|
}
|
|
6625
|
+
__name(unknownFmt, "unknownFmt");
|
|
6332
6626
|
function invalidFmt() {
|
|
6333
6627
|
const callFormat = schemaEnv.$async ? (0, codegen_1._)`(${fDef}.async ? await ${format}(${data}) : ${format}(${data}))` : (0, codegen_1._)`${format}(${data})`;
|
|
6334
6628
|
const validData = (0, codegen_1._)`(typeof ${format} == "function" ? ${callFormat} : ${format}.test(${data}))`;
|
|
6335
6629
|
return (0, codegen_1._)`${format} && ${format} !== true && ${fType} === ${ruleType} && !${validData}`;
|
|
6336
6630
|
}
|
|
6631
|
+
__name(invalidFmt, "invalidFmt");
|
|
6337
6632
|
}
|
|
6633
|
+
__name(validate$DataFormat, "validate$DataFormat");
|
|
6338
6634
|
function validateFormat() {
|
|
6339
6635
|
const formatDef = self2.formats[schema];
|
|
6340
6636
|
if (!formatDef) {
|
|
@@ -6355,7 +6651,9 @@ var require_format = __commonJS({
|
|
|
6355
6651
|
function unknownMsg() {
|
|
6356
6652
|
return `unknown format "${schema}" ignored in schema at path "${errSchemaPath}"`;
|
|
6357
6653
|
}
|
|
6654
|
+
__name(unknownMsg, "unknownMsg");
|
|
6358
6655
|
}
|
|
6656
|
+
__name(unknownFormat, "unknownFormat");
|
|
6359
6657
|
function getFormat(fmtDef) {
|
|
6360
6658
|
const code = fmtDef instanceof RegExp ? (0, codegen_1.regexpCode)(fmtDef) : opts.code.formats ? (0, codegen_1._)`${opts.code.formats}${(0, codegen_1.getProperty)(schema)}` : void 0;
|
|
6361
6659
|
const fmt = gen.scopeValue("formats", { key: schema, ref: fmtDef, code });
|
|
@@ -6364,6 +6662,7 @@ var require_format = __commonJS({
|
|
|
6364
6662
|
}
|
|
6365
6663
|
return ["string", fmtDef, fmt];
|
|
6366
6664
|
}
|
|
6665
|
+
__name(getFormat, "getFormat");
|
|
6367
6666
|
function validCondition() {
|
|
6368
6667
|
if (typeof formatDef == "object" && !(formatDef instanceof RegExp) && formatDef.async) {
|
|
6369
6668
|
if (!schemaEnv.$async)
|
|
@@ -6372,7 +6671,9 @@ var require_format = __commonJS({
|
|
|
6372
6671
|
}
|
|
6373
6672
|
return typeof format == "function" ? (0, codegen_1._)`${fmtRef}(${data})` : (0, codegen_1._)`${fmtRef}.test(${data})`;
|
|
6374
6673
|
}
|
|
6674
|
+
__name(validCondition, "validCondition");
|
|
6375
6675
|
}
|
|
6676
|
+
__name(validateFormat, "validateFormat");
|
|
6376
6677
|
}
|
|
6377
6678
|
};
|
|
6378
6679
|
exports.default = def;
|
|
@@ -6495,12 +6796,14 @@ var require_discriminator = __commonJS({
|
|
|
6495
6796
|
cxt.error(false, { discrError: types_1.DiscrError.Mapping, tag, tagName });
|
|
6496
6797
|
gen.endIf();
|
|
6497
6798
|
}
|
|
6799
|
+
__name(validateMapping, "validateMapping");
|
|
6498
6800
|
function applyTagSchema(schemaProp) {
|
|
6499
6801
|
const _valid = gen.name("valid");
|
|
6500
6802
|
const schCxt = cxt.subschema({ keyword: "oneOf", schemaProp }, _valid);
|
|
6501
6803
|
cxt.mergeEvaluated(schCxt, codegen_1.Name);
|
|
6502
6804
|
return _valid;
|
|
6503
6805
|
}
|
|
6806
|
+
__name(applyTagSchema, "applyTagSchema");
|
|
6504
6807
|
function getMapping() {
|
|
6505
6808
|
var _a;
|
|
6506
6809
|
const oneOfMapping = {};
|
|
@@ -6526,6 +6829,7 @@ var require_discriminator = __commonJS({
|
|
|
6526
6829
|
function hasRequired({ required }) {
|
|
6527
6830
|
return Array.isArray(required) && required.includes(tagName);
|
|
6528
6831
|
}
|
|
6832
|
+
__name(hasRequired, "hasRequired");
|
|
6529
6833
|
function addMappings(sch, i) {
|
|
6530
6834
|
if (sch.const) {
|
|
6531
6835
|
addMapping(sch.const, i);
|
|
@@ -6537,13 +6841,16 @@ var require_discriminator = __commonJS({
|
|
|
6537
6841
|
throw new Error(`discriminator: "properties/${tagName}" must have "const" or "enum"`);
|
|
6538
6842
|
}
|
|
6539
6843
|
}
|
|
6844
|
+
__name(addMappings, "addMappings");
|
|
6540
6845
|
function addMapping(tagValue, i) {
|
|
6541
6846
|
if (typeof tagValue != "string" || tagValue in oneOfMapping) {
|
|
6542
6847
|
throw new Error(`discriminator: "${tagName}" values must be unique strings`);
|
|
6543
6848
|
}
|
|
6544
6849
|
oneOfMapping[tagValue] = i;
|
|
6545
6850
|
}
|
|
6851
|
+
__name(addMapping, "addMapping");
|
|
6546
6852
|
}
|
|
6853
|
+
__name(getMapping, "getMapping");
|
|
6547
6854
|
}
|
|
6548
6855
|
};
|
|
6549
6856
|
exports.default = def;
|
|
@@ -6738,6 +7045,7 @@ var require_ajv = __commonJS({
|
|
|
6738
7045
|
return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : void 0);
|
|
6739
7046
|
}
|
|
6740
7047
|
};
|
|
7048
|
+
__name(Ajv, "Ajv");
|
|
6741
7049
|
module.exports = exports = Ajv;
|
|
6742
7050
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6743
7051
|
exports.default = Ajv;
|
|
@@ -6784,6 +7092,7 @@ var require_formats = __commonJS({
|
|
|
6784
7092
|
function fmtDef(validate, compare) {
|
|
6785
7093
|
return { validate, compare };
|
|
6786
7094
|
}
|
|
7095
|
+
__name(fmtDef, "fmtDef");
|
|
6787
7096
|
exports.fullFormats = {
|
|
6788
7097
|
// date: http://tools.ietf.org/html/rfc3339#section-5.6
|
|
6789
7098
|
date: fmtDef(date, compareDate),
|
|
@@ -6846,6 +7155,7 @@ var require_formats = __commonJS({
|
|
|
6846
7155
|
function isLeapYear(year) {
|
|
6847
7156
|
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
6848
7157
|
}
|
|
7158
|
+
__name(isLeapYear, "isLeapYear");
|
|
6849
7159
|
var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
|
|
6850
7160
|
var DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
6851
7161
|
function date(str) {
|
|
@@ -6857,6 +7167,7 @@ var require_formats = __commonJS({
|
|
|
6857
7167
|
const day = +matches[3];
|
|
6858
7168
|
return month >= 1 && month <= 12 && day >= 1 && day <= (month === 2 && isLeapYear(year) ? 29 : DAYS[month]);
|
|
6859
7169
|
}
|
|
7170
|
+
__name(date, "date");
|
|
6860
7171
|
function compareDate(d1, d2) {
|
|
6861
7172
|
if (!(d1 && d2))
|
|
6862
7173
|
return void 0;
|
|
@@ -6866,6 +7177,7 @@ var require_formats = __commonJS({
|
|
|
6866
7177
|
return -1;
|
|
6867
7178
|
return 0;
|
|
6868
7179
|
}
|
|
7180
|
+
__name(compareDate, "compareDate");
|
|
6869
7181
|
var TIME = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;
|
|
6870
7182
|
function time(str, withTimeZone) {
|
|
6871
7183
|
const matches = TIME.exec(str);
|
|
@@ -6877,6 +7189,7 @@ var require_formats = __commonJS({
|
|
|
6877
7189
|
const timeZone = matches[5];
|
|
6878
7190
|
return (hour <= 23 && minute <= 59 && second <= 59 || hour === 23 && minute === 59 && second === 60) && (!withTimeZone || timeZone !== "");
|
|
6879
7191
|
}
|
|
7192
|
+
__name(time, "time");
|
|
6880
7193
|
function compareTime(t1, t2) {
|
|
6881
7194
|
if (!(t1 && t2))
|
|
6882
7195
|
return void 0;
|
|
@@ -6892,11 +7205,13 @@ var require_formats = __commonJS({
|
|
|
6892
7205
|
return -1;
|
|
6893
7206
|
return 0;
|
|
6894
7207
|
}
|
|
7208
|
+
__name(compareTime, "compareTime");
|
|
6895
7209
|
var DATE_TIME_SEPARATOR = /t|\s/i;
|
|
6896
7210
|
function date_time(str) {
|
|
6897
7211
|
const dateTime = str.split(DATE_TIME_SEPARATOR);
|
|
6898
7212
|
return dateTime.length === 2 && date(dateTime[0]) && time(dateTime[1], true);
|
|
6899
7213
|
}
|
|
7214
|
+
__name(date_time, "date_time");
|
|
6900
7215
|
function compareDateTime(dt1, dt2) {
|
|
6901
7216
|
if (!(dt1 && dt2))
|
|
6902
7217
|
return void 0;
|
|
@@ -6907,27 +7222,33 @@ var require_formats = __commonJS({
|
|
|
6907
7222
|
return void 0;
|
|
6908
7223
|
return res || compareTime(t1, t2);
|
|
6909
7224
|
}
|
|
7225
|
+
__name(compareDateTime, "compareDateTime");
|
|
6910
7226
|
var NOT_URI_FRAGMENT = /\/|:/;
|
|
6911
7227
|
var URI = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
|
|
6912
7228
|
function uri(str) {
|
|
6913
7229
|
return NOT_URI_FRAGMENT.test(str) && URI.test(str);
|
|
6914
7230
|
}
|
|
7231
|
+
__name(uri, "uri");
|
|
6915
7232
|
var BYTE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;
|
|
6916
7233
|
function byte(str) {
|
|
6917
7234
|
BYTE.lastIndex = 0;
|
|
6918
7235
|
return BYTE.test(str);
|
|
6919
7236
|
}
|
|
7237
|
+
__name(byte, "byte");
|
|
6920
7238
|
var MIN_INT32 = -(2 ** 31);
|
|
6921
7239
|
var MAX_INT32 = 2 ** 31 - 1;
|
|
6922
7240
|
function validateInt32(value) {
|
|
6923
7241
|
return Number.isInteger(value) && value <= MAX_INT32 && value >= MIN_INT32;
|
|
6924
7242
|
}
|
|
7243
|
+
__name(validateInt32, "validateInt32");
|
|
6925
7244
|
function validateInt64(value) {
|
|
6926
7245
|
return Number.isInteger(value);
|
|
6927
7246
|
}
|
|
7247
|
+
__name(validateInt64, "validateInt64");
|
|
6928
7248
|
function validateNumber() {
|
|
6929
7249
|
return true;
|
|
6930
7250
|
}
|
|
7251
|
+
__name(validateNumber, "validateNumber");
|
|
6931
7252
|
var Z_ANCHOR = /[^\\]\\Z/;
|
|
6932
7253
|
function regex(str) {
|
|
6933
7254
|
if (Z_ANCHOR.test(str))
|
|
@@ -6939,6 +7260,7 @@ var require_formats = __commonJS({
|
|
|
6939
7260
|
return false;
|
|
6940
7261
|
}
|
|
6941
7262
|
}
|
|
7263
|
+
__name(regex, "regex");
|
|
6942
7264
|
}
|
|
6943
7265
|
});
|
|
6944
7266
|
|
|
@@ -6985,6 +7307,7 @@ var require_limit = __commonJS({
|
|
|
6985
7307
|
const fmt = gen.const("fmt", codegen_1._`${fmts}[${fCxt.schemaCode}]`);
|
|
6986
7308
|
cxt.fail$data(codegen_1.or(codegen_1._`typeof ${fmt} != "object"`, codegen_1._`${fmt} instanceof RegExp`, codegen_1._`typeof ${fmt}.compare != "function"`, compareCode(fmt)));
|
|
6987
7309
|
}
|
|
7310
|
+
__name(validate$DataFormat, "validate$DataFormat");
|
|
6988
7311
|
function validateFormat() {
|
|
6989
7312
|
const format = fCxt.schema;
|
|
6990
7313
|
const fmtDef = self2.formats[format];
|
|
@@ -7000,16 +7323,18 @@ var require_limit = __commonJS({
|
|
|
7000
7323
|
});
|
|
7001
7324
|
cxt.fail$data(compareCode(fmt));
|
|
7002
7325
|
}
|
|
7326
|
+
__name(validateFormat, "validateFormat");
|
|
7003
7327
|
function compareCode(fmt) {
|
|
7004
7328
|
return codegen_1._`${fmt}.compare(${data}, ${schemaCode}) ${KWDs[keyword].fail} 0`;
|
|
7005
7329
|
}
|
|
7330
|
+
__name(compareCode, "compareCode");
|
|
7006
7331
|
},
|
|
7007
7332
|
dependencies: ["format"]
|
|
7008
7333
|
};
|
|
7009
|
-
var formatLimitPlugin = (ajv) => {
|
|
7334
|
+
var formatLimitPlugin = /* @__PURE__ */ __name((ajv) => {
|
|
7010
7335
|
ajv.addKeyword(exports.formatLimitDefinition);
|
|
7011
7336
|
return ajv;
|
|
7012
|
-
};
|
|
7337
|
+
}, "formatLimitPlugin");
|
|
7013
7338
|
exports.default = formatLimitPlugin;
|
|
7014
7339
|
}
|
|
7015
7340
|
});
|
|
@@ -7024,7 +7349,7 @@ var require_dist = __commonJS({
|
|
|
7024
7349
|
var codegen_1 = require_codegen();
|
|
7025
7350
|
var fullName = new codegen_1.Name("fullFormats");
|
|
7026
7351
|
var fastName = new codegen_1.Name("fastFormats");
|
|
7027
|
-
var formatsPlugin = (ajv, opts = { keywords: true }) => {
|
|
7352
|
+
var formatsPlugin = /* @__PURE__ */ __name((ajv, opts = { keywords: true }) => {
|
|
7028
7353
|
if (Array.isArray(opts)) {
|
|
7029
7354
|
addFormats(ajv, opts, formats_1.fullFormats, fullName);
|
|
7030
7355
|
return ajv;
|
|
@@ -7035,7 +7360,7 @@ var require_dist = __commonJS({
|
|
|
7035
7360
|
if (opts.keywords)
|
|
7036
7361
|
limit_1.default(ajv);
|
|
7037
7362
|
return ajv;
|
|
7038
|
-
};
|
|
7363
|
+
}, "formatsPlugin");
|
|
7039
7364
|
formatsPlugin.get = (name, mode = "full") => {
|
|
7040
7365
|
const formats = mode === "fast" ? formats_1.fastFormats : formats_1.fullFormats;
|
|
7041
7366
|
const f = formats[name];
|
|
@@ -7050,6 +7375,7 @@ var require_dist = __commonJS({
|
|
|
7050
7375
|
for (const f of list)
|
|
7051
7376
|
ajv.addFormat(f, fs[f]);
|
|
7052
7377
|
}
|
|
7378
|
+
__name(addFormats, "addFormats");
|
|
7053
7379
|
module.exports = exports = formatsPlugin;
|
|
7054
7380
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7055
7381
|
exports.default = formatsPlugin;
|
|
@@ -7237,12 +7563,12 @@ var require_schema = __commonJS({
|
|
|
7237
7563
|
ajv.addSchema(commonDefs);
|
|
7238
7564
|
ajv.addSchema(deviceDefs);
|
|
7239
7565
|
module.exports = {
|
|
7240
|
-
add: function add(schema) {
|
|
7566
|
+
add: /* @__PURE__ */ __name(function add(schema) {
|
|
7241
7567
|
ajv.addSchema(schema);
|
|
7242
|
-
},
|
|
7243
|
-
compile: function compile(schema) {
|
|
7568
|
+
}, "add"),
|
|
7569
|
+
compile: /* @__PURE__ */ __name(function compile(schema) {
|
|
7244
7570
|
return ajv.compile(schema);
|
|
7245
|
-
}
|
|
7571
|
+
}, "compile")
|
|
7246
7572
|
};
|
|
7247
7573
|
}
|
|
7248
7574
|
});
|
|
@@ -7289,14 +7615,14 @@ var require_switch = __commonJS({
|
|
|
7289
7615
|
// src/Errors/AppError.js
|
|
7290
7616
|
var require_AppError = __commonJS({
|
|
7291
7617
|
"src/Errors/AppError.js"(exports, module) {
|
|
7292
|
-
module.exports = class AppError extends Error {
|
|
7618
|
+
module.exports = /* @__PURE__ */ __name(class AppError extends Error {
|
|
7293
7619
|
constructor(message = "Internal Server Error", options) {
|
|
7294
7620
|
super(message, options);
|
|
7295
7621
|
this.type = this.constructor.name;
|
|
7296
7622
|
this.statusCode = 500;
|
|
7297
7623
|
Object.setPrototypeOf(this, AppError.prototype);
|
|
7298
7624
|
}
|
|
7299
|
-
};
|
|
7625
|
+
}, "AppError");
|
|
7300
7626
|
}
|
|
7301
7627
|
});
|
|
7302
7628
|
|
|
@@ -7304,13 +7630,13 @@ var require_AppError = __commonJS({
|
|
|
7304
7630
|
var require_AuthenticationError = __commonJS({
|
|
7305
7631
|
"src/Errors/AuthenticationError.js"(exports, module) {
|
|
7306
7632
|
var AppError = require_AppError();
|
|
7307
|
-
module.exports = class AuthenticationError extends AppError {
|
|
7633
|
+
module.exports = /* @__PURE__ */ __name(class AuthenticationError extends AppError {
|
|
7308
7634
|
constructor(message = "Authentication Error", options = {}) {
|
|
7309
7635
|
super(message, options);
|
|
7310
7636
|
this.statusCode = 401;
|
|
7311
7637
|
Object.setPrototypeOf(this, AuthenticationError.prototype);
|
|
7312
7638
|
}
|
|
7313
|
-
};
|
|
7639
|
+
}, "AuthenticationError");
|
|
7314
7640
|
}
|
|
7315
7641
|
});
|
|
7316
7642
|
|
|
@@ -7318,13 +7644,13 @@ var require_AuthenticationError = __commonJS({
|
|
|
7318
7644
|
var require_AuthorizationError = __commonJS({
|
|
7319
7645
|
"src/Errors/AuthorizationError.js"(exports, module) {
|
|
7320
7646
|
var AppError = require_AppError();
|
|
7321
|
-
module.exports = class AuthorizationError extends AppError {
|
|
7647
|
+
module.exports = /* @__PURE__ */ __name(class AuthorizationError extends AppError {
|
|
7322
7648
|
constructor(message = "Authorization Error", options = {}) {
|
|
7323
7649
|
super(message, options);
|
|
7324
7650
|
this.statusCode = 403;
|
|
7325
7651
|
Object.setPrototypeOf(this, AuthorizationError.prototype);
|
|
7326
7652
|
}
|
|
7327
|
-
};
|
|
7653
|
+
}, "AuthorizationError");
|
|
7328
7654
|
}
|
|
7329
7655
|
});
|
|
7330
7656
|
|
|
@@ -7332,13 +7658,13 @@ var require_AuthorizationError = __commonJS({
|
|
|
7332
7658
|
var require_DeviceCommError = __commonJS({
|
|
7333
7659
|
"src/Errors/DeviceCommError.js"(exports, module) {
|
|
7334
7660
|
var AppError = require_AppError();
|
|
7335
|
-
module.exports = class DeviceCommError extends AppError {
|
|
7661
|
+
module.exports = /* @__PURE__ */ __name(class DeviceCommError extends AppError {
|
|
7336
7662
|
constructor(message = "Device Communication Error", options = {}) {
|
|
7337
7663
|
super(message, options);
|
|
7338
7664
|
this.statusCode = 503;
|
|
7339
7665
|
Object.setPrototypeOf(this, DeviceCommError.prototype);
|
|
7340
7666
|
}
|
|
7341
|
-
};
|
|
7667
|
+
}, "DeviceCommError");
|
|
7342
7668
|
}
|
|
7343
7669
|
});
|
|
7344
7670
|
|
|
@@ -7346,13 +7672,13 @@ var require_DeviceCommError = __commonJS({
|
|
|
7346
7672
|
var require_LoginError = __commonJS({
|
|
7347
7673
|
"src/Errors/LoginError.js"(exports, module) {
|
|
7348
7674
|
var AppError = require_AppError();
|
|
7349
|
-
module.exports = class LoginError extends AppError {
|
|
7675
|
+
module.exports = /* @__PURE__ */ __name(class LoginError extends AppError {
|
|
7350
7676
|
constructor(message = "Invalid Login information provided", options = {}) {
|
|
7351
7677
|
super(message, options);
|
|
7352
7678
|
this.statusCode = 401;
|
|
7353
7679
|
Object.setPrototypeOf(this, LoginError.prototype);
|
|
7354
7680
|
}
|
|
7355
|
-
};
|
|
7681
|
+
}, "LoginError");
|
|
7356
7682
|
}
|
|
7357
7683
|
});
|
|
7358
7684
|
|
|
@@ -7360,13 +7686,13 @@ var require_LoginError = __commonJS({
|
|
|
7360
7686
|
var require_NotFoundError = __commonJS({
|
|
7361
7687
|
"src/Errors/NotFoundError.js"(exports, module) {
|
|
7362
7688
|
var AppError = require_AppError();
|
|
7363
|
-
module.exports = class NotFoundError extends AppError {
|
|
7689
|
+
module.exports = /* @__PURE__ */ __name(class NotFoundError extends AppError {
|
|
7364
7690
|
constructor(message = "Resource Not Found", options = {}) {
|
|
7365
7691
|
super(message, options);
|
|
7366
7692
|
this.statusCode = 404;
|
|
7367
7693
|
Object.setPrototypeOf(this, NotFoundError.prototype);
|
|
7368
7694
|
}
|
|
7369
|
-
};
|
|
7695
|
+
}, "NotFoundError");
|
|
7370
7696
|
}
|
|
7371
7697
|
});
|
|
7372
7698
|
|
|
@@ -7374,13 +7700,13 @@ var require_NotFoundError = __commonJS({
|
|
|
7374
7700
|
var require_RequestError = __commonJS({
|
|
7375
7701
|
"src/Errors/RequestError.js"(exports, module) {
|
|
7376
7702
|
var AppError = require_AppError();
|
|
7377
|
-
module.exports = class RequestError extends AppError {
|
|
7703
|
+
module.exports = /* @__PURE__ */ __name(class RequestError extends AppError {
|
|
7378
7704
|
constructor(message = "Bad Request", options = {}) {
|
|
7379
7705
|
super(message, options);
|
|
7380
7706
|
this.statusCode = 400;
|
|
7381
7707
|
Object.setPrototypeOf(this, RequestError.prototype);
|
|
7382
7708
|
}
|
|
7383
|
-
};
|
|
7709
|
+
}, "RequestError");
|
|
7384
7710
|
}
|
|
7385
7711
|
});
|
|
7386
7712
|
|
|
@@ -7388,13 +7714,13 @@ var require_RequestError = __commonJS({
|
|
|
7388
7714
|
var require_SystemCommError = __commonJS({
|
|
7389
7715
|
"src/Errors/SystemCommError.js"(exports, module) {
|
|
7390
7716
|
var AppError = require_AppError();
|
|
7391
|
-
module.exports = class SystemCommError extends AppError {
|
|
7717
|
+
module.exports = /* @__PURE__ */ __name(class SystemCommError extends AppError {
|
|
7392
7718
|
constructor(message = "System Communication Error", options = {}) {
|
|
7393
7719
|
super(message, options);
|
|
7394
7720
|
this.statusCode = 503;
|
|
7395
7721
|
Object.setPrototypeOf(this, SystemCommError.prototype);
|
|
7396
7722
|
}
|
|
7397
|
-
};
|
|
7723
|
+
}, "SystemCommError");
|
|
7398
7724
|
}
|
|
7399
7725
|
});
|
|
7400
7726
|
|
|
@@ -7402,13 +7728,13 @@ var require_SystemCommError = __commonJS({
|
|
|
7402
7728
|
var require_TokenExpiredError = __commonJS({
|
|
7403
7729
|
"src/Errors/TokenExpiredError.js"(exports, module) {
|
|
7404
7730
|
var AppError = require_AppError();
|
|
7405
|
-
module.exports = class TokenExpiredError extends AppError {
|
|
7731
|
+
module.exports = /* @__PURE__ */ __name(class TokenExpiredError extends AppError {
|
|
7406
7732
|
constructor(message = "Token Expired", options = {}) {
|
|
7407
7733
|
super(message, options);
|
|
7408
7734
|
this.statusCode = 401;
|
|
7409
7735
|
Object.setPrototypeOf(this, TokenExpiredError.prototype);
|
|
7410
7736
|
}
|
|
7411
|
-
};
|
|
7737
|
+
}, "TokenExpiredError");
|
|
7412
7738
|
}
|
|
7413
7739
|
});
|
|
7414
7740
|
|
|
@@ -7416,13 +7742,13 @@ var require_TokenExpiredError = __commonJS({
|
|
|
7416
7742
|
var require_UnprocessableRequestError = __commonJS({
|
|
7417
7743
|
"src/Errors/UnprocessableRequestError.js"(exports, module) {
|
|
7418
7744
|
var AppError = require_AppError();
|
|
7419
|
-
module.exports = class UnprocessableRequestError extends AppError {
|
|
7745
|
+
module.exports = /* @__PURE__ */ __name(class UnprocessableRequestError extends AppError {
|
|
7420
7746
|
constructor(message = "Unprocessable Request Error", options = {}) {
|
|
7421
7747
|
super(message, options);
|
|
7422
7748
|
this.statusCode = 422;
|
|
7423
7749
|
Object.setPrototypeOf(this, UnprocessableRequestError.prototype);
|
|
7424
7750
|
}
|
|
7425
|
-
};
|
|
7751
|
+
}, "UnprocessableRequestError");
|
|
7426
7752
|
}
|
|
7427
7753
|
});
|
|
7428
7754
|
|
|
@@ -7430,13 +7756,13 @@ var require_UnprocessableRequestError = __commonJS({
|
|
|
7430
7756
|
var require_ValidationError = __commonJS({
|
|
7431
7757
|
"src/Errors/ValidationError.js"(exports, module) {
|
|
7432
7758
|
var AppError = require_AppError();
|
|
7433
|
-
module.exports = class ValidationError extends AppError {
|
|
7759
|
+
module.exports = /* @__PURE__ */ __name(class ValidationError extends AppError {
|
|
7434
7760
|
constructor(message = "Validation Error", options = {}) {
|
|
7435
7761
|
super(message, options);
|
|
7436
7762
|
this.statusCode = 400;
|
|
7437
7763
|
Object.setPrototypeOf(this, ValidationError.prototype);
|
|
7438
7764
|
}
|
|
7439
|
-
};
|
|
7765
|
+
}, "ValidationError");
|
|
7440
7766
|
}
|
|
7441
7767
|
});
|
|
7442
7768
|
|
|
@@ -7481,8 +7807,8 @@ var random, customRandom, customAlphabet, nanoid;
|
|
|
7481
7807
|
var init_index_browser = __esm({
|
|
7482
7808
|
"node_modules/nanoid/index.browser.js"() {
|
|
7483
7809
|
init_url_alphabet();
|
|
7484
|
-
random = (bytes) => crypto.getRandomValues(new Uint8Array(bytes));
|
|
7485
|
-
customRandom = (alphabet, defaultSize, getRandom) => {
|
|
7810
|
+
random = /* @__PURE__ */ __name((bytes) => crypto.getRandomValues(new Uint8Array(bytes)), "random");
|
|
7811
|
+
customRandom = /* @__PURE__ */ __name((alphabet, defaultSize, getRandom) => {
|
|
7486
7812
|
let mask = (2 << Math.log(alphabet.length - 1) / Math.LN2) - 1;
|
|
7487
7813
|
let step = -~(1.6 * mask * defaultSize / alphabet.length);
|
|
7488
7814
|
return (size = defaultSize) => {
|
|
@@ -7497,9 +7823,9 @@ var init_index_browser = __esm({
|
|
|
7497
7823
|
}
|
|
7498
7824
|
}
|
|
7499
7825
|
};
|
|
7500
|
-
};
|
|
7501
|
-
customAlphabet = (alphabet, size = 21) => customRandom(alphabet, size, random);
|
|
7502
|
-
nanoid = (size = 21) => crypto.getRandomValues(new Uint8Array(size)).reduce((id, byte) => {
|
|
7826
|
+
}, "customRandom");
|
|
7827
|
+
customAlphabet = /* @__PURE__ */ __name((alphabet, size = 21) => customRandom(alphabet, size, random), "customAlphabet");
|
|
7828
|
+
nanoid = /* @__PURE__ */ __name((size = 21) => crypto.getRandomValues(new Uint8Array(size)).reduce((id, byte) => {
|
|
7503
7829
|
byte &= 63;
|
|
7504
7830
|
if (byte < 36) {
|
|
7505
7831
|
id += byte.toString(36);
|
|
@@ -7511,7 +7837,7 @@ var init_index_browser = __esm({
|
|
|
7511
7837
|
id += "_";
|
|
7512
7838
|
}
|
|
7513
7839
|
return id;
|
|
7514
|
-
}, "");
|
|
7840
|
+
}, ""), "nanoid");
|
|
7515
7841
|
}
|
|
7516
7842
|
});
|
|
7517
7843
|
|
|
@@ -7595,6 +7921,7 @@ var require_kohost = __commonJS({
|
|
|
7595
7921
|
return obj;
|
|
7596
7922
|
}
|
|
7597
7923
|
};
|
|
7924
|
+
__name(Kohost, "Kohost");
|
|
7598
7925
|
module.exports = Kohost;
|
|
7599
7926
|
}
|
|
7600
7927
|
});
|
|
@@ -7612,6 +7939,7 @@ var require_switch2 = __commonJS({
|
|
|
7612
7939
|
super(data);
|
|
7613
7940
|
}
|
|
7614
7941
|
};
|
|
7942
|
+
__name(Switch, "Switch");
|
|
7615
7943
|
Object.defineProperty(Switch.prototype, "schema", {
|
|
7616
7944
|
value: schema
|
|
7617
7945
|
});
|
|
@@ -7742,6 +8070,7 @@ var require_alarm2 = __commonJS({
|
|
|
7742
8070
|
super(data);
|
|
7743
8071
|
}
|
|
7744
8072
|
};
|
|
8073
|
+
__name(Alarm, "Alarm");
|
|
7745
8074
|
Object.defineProperty(Alarm.prototype, "schema", {
|
|
7746
8075
|
value: schema
|
|
7747
8076
|
});
|
|
@@ -7825,6 +8154,7 @@ var require_dimmer2 = __commonJS({
|
|
|
7825
8154
|
return delta;
|
|
7826
8155
|
}
|
|
7827
8156
|
};
|
|
8157
|
+
__name(Dimmer, "Dimmer");
|
|
7828
8158
|
Object.defineProperty(Dimmer.prototype, "schema", {
|
|
7829
8159
|
value: schema
|
|
7830
8160
|
});
|
|
@@ -7898,6 +8228,7 @@ var require_lock2 = __commonJS({
|
|
|
7898
8228
|
super(data);
|
|
7899
8229
|
}
|
|
7900
8230
|
};
|
|
8231
|
+
__name(Lock, "Lock");
|
|
7901
8232
|
Object.defineProperty(Lock.prototype, "schema", {
|
|
7902
8233
|
value: schema
|
|
7903
8234
|
});
|
|
@@ -8115,6 +8446,7 @@ var require_thermostat2 = __commonJS({
|
|
|
8115
8446
|
return delta;
|
|
8116
8447
|
}
|
|
8117
8448
|
};
|
|
8449
|
+
__name(Thermostat, "Thermostat");
|
|
8118
8450
|
Object.defineProperty(Thermostat.prototype, "schema", {
|
|
8119
8451
|
value: schema
|
|
8120
8452
|
});
|
|
@@ -8201,6 +8533,7 @@ var require_windowCovering2 = __commonJS({
|
|
|
8201
8533
|
return delta;
|
|
8202
8534
|
}
|
|
8203
8535
|
};
|
|
8536
|
+
__name(WindowCovering, "WindowCovering");
|
|
8204
8537
|
Object.defineProperty(WindowCovering.prototype, "schema", {
|
|
8205
8538
|
value: schema
|
|
8206
8539
|
});
|
|
@@ -8244,7 +8577,7 @@ var require_identification = __commonJS({
|
|
|
8244
8577
|
format: "date-time"
|
|
8245
8578
|
},
|
|
8246
8579
|
expires: {
|
|
8247
|
-
type: ["string", "object"],
|
|
8580
|
+
type: ["string", "object", "null"],
|
|
8248
8581
|
format: "date-time"
|
|
8249
8582
|
},
|
|
8250
8583
|
verified: {
|
|
@@ -8288,6 +8621,7 @@ var require_identification2 = __commonJS({
|
|
|
8288
8621
|
return new Date(this.expirationDate) < /* @__PURE__ */ new Date();
|
|
8289
8622
|
}
|
|
8290
8623
|
};
|
|
8624
|
+
__name(Identification, "Identification");
|
|
8291
8625
|
Object.defineProperty(Identification.prototype, "schema", {
|
|
8292
8626
|
value: schema
|
|
8293
8627
|
});
|
|
@@ -8541,8 +8875,8 @@ __export(index_browser_exports2, {
|
|
|
8541
8875
|
var random2, customAlphabet2, nanoid2;
|
|
8542
8876
|
var init_index_browser2 = __esm({
|
|
8543
8877
|
"node_modules/nanoid/async/index.browser.js"() {
|
|
8544
|
-
random2 = async (bytes) => crypto.getRandomValues(new Uint8Array(bytes));
|
|
8545
|
-
customAlphabet2 = (alphabet, defaultSize = 21) => {
|
|
8878
|
+
random2 = /* @__PURE__ */ __name(async (bytes) => crypto.getRandomValues(new Uint8Array(bytes)), "random");
|
|
8879
|
+
customAlphabet2 = /* @__PURE__ */ __name((alphabet, defaultSize = 21) => {
|
|
8546
8880
|
let mask = (2 << Math.log(alphabet.length - 1) / Math.LN2) - 1;
|
|
8547
8881
|
let step = -~(1.6 * mask * defaultSize / alphabet.length);
|
|
8548
8882
|
return async (size = defaultSize) => {
|
|
@@ -8557,8 +8891,8 @@ var init_index_browser2 = __esm({
|
|
|
8557
8891
|
}
|
|
8558
8892
|
}
|
|
8559
8893
|
};
|
|
8560
|
-
};
|
|
8561
|
-
nanoid2 = async (size = 21) => {
|
|
8894
|
+
}, "customAlphabet");
|
|
8895
|
+
nanoid2 = /* @__PURE__ */ __name(async (size = 21) => {
|
|
8562
8896
|
let id = "";
|
|
8563
8897
|
let bytes = crypto.getRandomValues(new Uint8Array(size));
|
|
8564
8898
|
while (size--) {
|
|
@@ -8574,7 +8908,7 @@ var init_index_browser2 = __esm({
|
|
|
8574
8908
|
}
|
|
8575
8909
|
}
|
|
8576
8910
|
return id;
|
|
8577
|
-
};
|
|
8911
|
+
}, "nanoid");
|
|
8578
8912
|
}
|
|
8579
8913
|
});
|
|
8580
8914
|
|
|
@@ -8605,6 +8939,7 @@ var require_user2 = __commonJS({
|
|
|
8605
8939
|
return await nanoid3(len);
|
|
8606
8940
|
}
|
|
8607
8941
|
};
|
|
8942
|
+
__name(User, "User");
|
|
8608
8943
|
Object.defineProperty(User.prototype, "schema", {
|
|
8609
8944
|
value: schema
|
|
8610
8945
|
});
|
|
@@ -8681,6 +9016,7 @@ var require_courtesy2 = __commonJS({
|
|
|
8681
9016
|
super(data);
|
|
8682
9017
|
}
|
|
8683
9018
|
};
|
|
9019
|
+
__name(Courtesy, "Courtesy");
|
|
8684
9020
|
Object.defineProperty(Courtesy.prototype, "schema", {
|
|
8685
9021
|
value: schema
|
|
8686
9022
|
});
|
|
@@ -8759,6 +9095,7 @@ var require_camera2 = __commonJS({
|
|
|
8759
9095
|
super(data);
|
|
8760
9096
|
}
|
|
8761
9097
|
};
|
|
9098
|
+
__name(Camera, "Camera");
|
|
8762
9099
|
Object.defineProperty(Camera.prototype, "schema", {
|
|
8763
9100
|
value: schema
|
|
8764
9101
|
});
|
|
@@ -8819,6 +9156,7 @@ var require_motionSensor2 = __commonJS({
|
|
|
8819
9156
|
super(data);
|
|
8820
9157
|
}
|
|
8821
9158
|
};
|
|
9159
|
+
__name(MotionSensor, "MotionSensor");
|
|
8822
9160
|
Object.defineProperty(MotionSensor.prototype, "schema", {
|
|
8823
9161
|
value: schema
|
|
8824
9162
|
});
|
|
@@ -9004,6 +9342,7 @@ var require_mediaSource2 = __commonJS({
|
|
|
9004
9342
|
super(data);
|
|
9005
9343
|
}
|
|
9006
9344
|
};
|
|
9345
|
+
__name(MediaSource, "MediaSource");
|
|
9007
9346
|
Object.defineProperty(MediaSource.prototype, "schema", {
|
|
9008
9347
|
value: schema
|
|
9009
9348
|
});
|
|
@@ -9206,10 +9545,12 @@ var require_lodash = __commonJS({
|
|
|
9206
9545
|
map.set(pair[0], pair[1]);
|
|
9207
9546
|
return map;
|
|
9208
9547
|
}
|
|
9548
|
+
__name(addMapEntry, "addMapEntry");
|
|
9209
9549
|
function addSetEntry(set, value) {
|
|
9210
9550
|
set.add(value);
|
|
9211
9551
|
return set;
|
|
9212
9552
|
}
|
|
9553
|
+
__name(addSetEntry, "addSetEntry");
|
|
9213
9554
|
function arrayEach(array, iteratee) {
|
|
9214
9555
|
var index = -1, length = array ? array.length : 0;
|
|
9215
9556
|
while (++index < length) {
|
|
@@ -9219,6 +9560,7 @@ var require_lodash = __commonJS({
|
|
|
9219
9560
|
}
|
|
9220
9561
|
return array;
|
|
9221
9562
|
}
|
|
9563
|
+
__name(arrayEach, "arrayEach");
|
|
9222
9564
|
function arrayPush(array, values) {
|
|
9223
9565
|
var index = -1, length = values.length, offset = array.length;
|
|
9224
9566
|
while (++index < length) {
|
|
@@ -9226,6 +9568,7 @@ var require_lodash = __commonJS({
|
|
|
9226
9568
|
}
|
|
9227
9569
|
return array;
|
|
9228
9570
|
}
|
|
9571
|
+
__name(arrayPush, "arrayPush");
|
|
9229
9572
|
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
9230
9573
|
var index = -1, length = array ? array.length : 0;
|
|
9231
9574
|
if (initAccum && length) {
|
|
@@ -9236,6 +9579,7 @@ var require_lodash = __commonJS({
|
|
|
9236
9579
|
}
|
|
9237
9580
|
return accumulator;
|
|
9238
9581
|
}
|
|
9582
|
+
__name(arrayReduce, "arrayReduce");
|
|
9239
9583
|
function baseTimes(n, iteratee) {
|
|
9240
9584
|
var index = -1, result = Array(n);
|
|
9241
9585
|
while (++index < n) {
|
|
@@ -9243,9 +9587,11 @@ var require_lodash = __commonJS({
|
|
|
9243
9587
|
}
|
|
9244
9588
|
return result;
|
|
9245
9589
|
}
|
|
9590
|
+
__name(baseTimes, "baseTimes");
|
|
9246
9591
|
function getValue(object, key) {
|
|
9247
9592
|
return object == null ? void 0 : object[key];
|
|
9248
9593
|
}
|
|
9594
|
+
__name(getValue, "getValue");
|
|
9249
9595
|
function isHostObject(value) {
|
|
9250
9596
|
var result = false;
|
|
9251
9597
|
if (value != null && typeof value.toString != "function") {
|
|
@@ -9256,6 +9602,7 @@ var require_lodash = __commonJS({
|
|
|
9256
9602
|
}
|
|
9257
9603
|
return result;
|
|
9258
9604
|
}
|
|
9605
|
+
__name(isHostObject, "isHostObject");
|
|
9259
9606
|
function mapToArray(map) {
|
|
9260
9607
|
var index = -1, result = Array(map.size);
|
|
9261
9608
|
map.forEach(function(value, key) {
|
|
@@ -9263,11 +9610,13 @@ var require_lodash = __commonJS({
|
|
|
9263
9610
|
});
|
|
9264
9611
|
return result;
|
|
9265
9612
|
}
|
|
9613
|
+
__name(mapToArray, "mapToArray");
|
|
9266
9614
|
function overArg(func, transform) {
|
|
9267
9615
|
return function(arg) {
|
|
9268
9616
|
return func(transform(arg));
|
|
9269
9617
|
};
|
|
9270
9618
|
}
|
|
9619
|
+
__name(overArg, "overArg");
|
|
9271
9620
|
function setToArray(set) {
|
|
9272
9621
|
var index = -1, result = Array(set.size);
|
|
9273
9622
|
set.forEach(function(value) {
|
|
@@ -9275,6 +9624,7 @@ var require_lodash = __commonJS({
|
|
|
9275
9624
|
});
|
|
9276
9625
|
return result;
|
|
9277
9626
|
}
|
|
9627
|
+
__name(setToArray, "setToArray");
|
|
9278
9628
|
var arrayProto = Array.prototype;
|
|
9279
9629
|
var funcProto = Function.prototype;
|
|
9280
9630
|
var objectProto = Object.prototype;
|
|
@@ -9320,12 +9670,15 @@ var require_lodash = __commonJS({
|
|
|
9320
9670
|
this.set(entry[0], entry[1]);
|
|
9321
9671
|
}
|
|
9322
9672
|
}
|
|
9673
|
+
__name(Hash, "Hash");
|
|
9323
9674
|
function hashClear() {
|
|
9324
9675
|
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
9325
9676
|
}
|
|
9677
|
+
__name(hashClear, "hashClear");
|
|
9326
9678
|
function hashDelete(key) {
|
|
9327
9679
|
return this.has(key) && delete this.__data__[key];
|
|
9328
9680
|
}
|
|
9681
|
+
__name(hashDelete, "hashDelete");
|
|
9329
9682
|
function hashGet(key) {
|
|
9330
9683
|
var data = this.__data__;
|
|
9331
9684
|
if (nativeCreate) {
|
|
@@ -9334,15 +9687,18 @@ var require_lodash = __commonJS({
|
|
|
9334
9687
|
}
|
|
9335
9688
|
return hasOwnProperty.call(data, key) ? data[key] : void 0;
|
|
9336
9689
|
}
|
|
9690
|
+
__name(hashGet, "hashGet");
|
|
9337
9691
|
function hashHas(key) {
|
|
9338
9692
|
var data = this.__data__;
|
|
9339
9693
|
return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
|
|
9340
9694
|
}
|
|
9695
|
+
__name(hashHas, "hashHas");
|
|
9341
9696
|
function hashSet(key, value) {
|
|
9342
9697
|
var data = this.__data__;
|
|
9343
9698
|
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
9344
9699
|
return this;
|
|
9345
9700
|
}
|
|
9701
|
+
__name(hashSet, "hashSet");
|
|
9346
9702
|
Hash.prototype.clear = hashClear;
|
|
9347
9703
|
Hash.prototype["delete"] = hashDelete;
|
|
9348
9704
|
Hash.prototype.get = hashGet;
|
|
@@ -9356,9 +9712,11 @@ var require_lodash = __commonJS({
|
|
|
9356
9712
|
this.set(entry[0], entry[1]);
|
|
9357
9713
|
}
|
|
9358
9714
|
}
|
|
9715
|
+
__name(ListCache, "ListCache");
|
|
9359
9716
|
function listCacheClear() {
|
|
9360
9717
|
this.__data__ = [];
|
|
9361
9718
|
}
|
|
9719
|
+
__name(listCacheClear, "listCacheClear");
|
|
9362
9720
|
function listCacheDelete(key) {
|
|
9363
9721
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
9364
9722
|
if (index < 0) {
|
|
@@ -9372,13 +9730,16 @@ var require_lodash = __commonJS({
|
|
|
9372
9730
|
}
|
|
9373
9731
|
return true;
|
|
9374
9732
|
}
|
|
9733
|
+
__name(listCacheDelete, "listCacheDelete");
|
|
9375
9734
|
function listCacheGet(key) {
|
|
9376
9735
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
9377
9736
|
return index < 0 ? void 0 : data[index][1];
|
|
9378
9737
|
}
|
|
9738
|
+
__name(listCacheGet, "listCacheGet");
|
|
9379
9739
|
function listCacheHas(key) {
|
|
9380
9740
|
return assocIndexOf(this.__data__, key) > -1;
|
|
9381
9741
|
}
|
|
9742
|
+
__name(listCacheHas, "listCacheHas");
|
|
9382
9743
|
function listCacheSet(key, value) {
|
|
9383
9744
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
9384
9745
|
if (index < 0) {
|
|
@@ -9388,6 +9749,7 @@ var require_lodash = __commonJS({
|
|
|
9388
9749
|
}
|
|
9389
9750
|
return this;
|
|
9390
9751
|
}
|
|
9752
|
+
__name(listCacheSet, "listCacheSet");
|
|
9391
9753
|
ListCache.prototype.clear = listCacheClear;
|
|
9392
9754
|
ListCache.prototype["delete"] = listCacheDelete;
|
|
9393
9755
|
ListCache.prototype.get = listCacheGet;
|
|
@@ -9401,6 +9763,7 @@ var require_lodash = __commonJS({
|
|
|
9401
9763
|
this.set(entry[0], entry[1]);
|
|
9402
9764
|
}
|
|
9403
9765
|
}
|
|
9766
|
+
__name(MapCache, "MapCache");
|
|
9404
9767
|
function mapCacheClear() {
|
|
9405
9768
|
this.__data__ = {
|
|
9406
9769
|
"hash": new Hash(),
|
|
@@ -9408,19 +9771,24 @@ var require_lodash = __commonJS({
|
|
|
9408
9771
|
"string": new Hash()
|
|
9409
9772
|
};
|
|
9410
9773
|
}
|
|
9774
|
+
__name(mapCacheClear, "mapCacheClear");
|
|
9411
9775
|
function mapCacheDelete(key) {
|
|
9412
9776
|
return getMapData(this, key)["delete"](key);
|
|
9413
9777
|
}
|
|
9778
|
+
__name(mapCacheDelete, "mapCacheDelete");
|
|
9414
9779
|
function mapCacheGet(key) {
|
|
9415
9780
|
return getMapData(this, key).get(key);
|
|
9416
9781
|
}
|
|
9782
|
+
__name(mapCacheGet, "mapCacheGet");
|
|
9417
9783
|
function mapCacheHas(key) {
|
|
9418
9784
|
return getMapData(this, key).has(key);
|
|
9419
9785
|
}
|
|
9786
|
+
__name(mapCacheHas, "mapCacheHas");
|
|
9420
9787
|
function mapCacheSet(key, value) {
|
|
9421
9788
|
getMapData(this, key).set(key, value);
|
|
9422
9789
|
return this;
|
|
9423
9790
|
}
|
|
9791
|
+
__name(mapCacheSet, "mapCacheSet");
|
|
9424
9792
|
MapCache.prototype.clear = mapCacheClear;
|
|
9425
9793
|
MapCache.prototype["delete"] = mapCacheDelete;
|
|
9426
9794
|
MapCache.prototype.get = mapCacheGet;
|
|
@@ -9429,18 +9797,23 @@ var require_lodash = __commonJS({
|
|
|
9429
9797
|
function Stack(entries) {
|
|
9430
9798
|
this.__data__ = new ListCache(entries);
|
|
9431
9799
|
}
|
|
9800
|
+
__name(Stack, "Stack");
|
|
9432
9801
|
function stackClear() {
|
|
9433
9802
|
this.__data__ = new ListCache();
|
|
9434
9803
|
}
|
|
9804
|
+
__name(stackClear, "stackClear");
|
|
9435
9805
|
function stackDelete(key) {
|
|
9436
9806
|
return this.__data__["delete"](key);
|
|
9437
9807
|
}
|
|
9808
|
+
__name(stackDelete, "stackDelete");
|
|
9438
9809
|
function stackGet(key) {
|
|
9439
9810
|
return this.__data__.get(key);
|
|
9440
9811
|
}
|
|
9812
|
+
__name(stackGet, "stackGet");
|
|
9441
9813
|
function stackHas(key) {
|
|
9442
9814
|
return this.__data__.has(key);
|
|
9443
9815
|
}
|
|
9816
|
+
__name(stackHas, "stackHas");
|
|
9444
9817
|
function stackSet(key, value) {
|
|
9445
9818
|
var cache = this.__data__;
|
|
9446
9819
|
if (cache instanceof ListCache) {
|
|
@@ -9454,6 +9827,7 @@ var require_lodash = __commonJS({
|
|
|
9454
9827
|
cache.set(key, value);
|
|
9455
9828
|
return this;
|
|
9456
9829
|
}
|
|
9830
|
+
__name(stackSet, "stackSet");
|
|
9457
9831
|
Stack.prototype.clear = stackClear;
|
|
9458
9832
|
Stack.prototype["delete"] = stackDelete;
|
|
9459
9833
|
Stack.prototype.get = stackGet;
|
|
@@ -9469,12 +9843,14 @@ var require_lodash = __commonJS({
|
|
|
9469
9843
|
}
|
|
9470
9844
|
return result;
|
|
9471
9845
|
}
|
|
9846
|
+
__name(arrayLikeKeys, "arrayLikeKeys");
|
|
9472
9847
|
function assignValue(object, key, value) {
|
|
9473
9848
|
var objValue = object[key];
|
|
9474
9849
|
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
|
|
9475
9850
|
object[key] = value;
|
|
9476
9851
|
}
|
|
9477
9852
|
}
|
|
9853
|
+
__name(assignValue, "assignValue");
|
|
9478
9854
|
function assocIndexOf(array, key) {
|
|
9479
9855
|
var length = array.length;
|
|
9480
9856
|
while (length--) {
|
|
@@ -9484,9 +9860,11 @@ var require_lodash = __commonJS({
|
|
|
9484
9860
|
}
|
|
9485
9861
|
return -1;
|
|
9486
9862
|
}
|
|
9863
|
+
__name(assocIndexOf, "assocIndexOf");
|
|
9487
9864
|
function baseAssign(object, source) {
|
|
9488
9865
|
return object && copyObject(source, keys(source), object);
|
|
9489
9866
|
}
|
|
9867
|
+
__name(baseAssign, "baseAssign");
|
|
9490
9868
|
function baseClone(value, isDeep, isFull, customizer, key, object, stack) {
|
|
9491
9869
|
var result;
|
|
9492
9870
|
if (customizer) {
|
|
@@ -9542,16 +9920,20 @@ var require_lodash = __commonJS({
|
|
|
9542
9920
|
});
|
|
9543
9921
|
return result;
|
|
9544
9922
|
}
|
|
9923
|
+
__name(baseClone, "baseClone");
|
|
9545
9924
|
function baseCreate(proto) {
|
|
9546
9925
|
return isObject(proto) ? objectCreate(proto) : {};
|
|
9547
9926
|
}
|
|
9927
|
+
__name(baseCreate, "baseCreate");
|
|
9548
9928
|
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
9549
9929
|
var result = keysFunc(object);
|
|
9550
9930
|
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
9551
9931
|
}
|
|
9932
|
+
__name(baseGetAllKeys, "baseGetAllKeys");
|
|
9552
9933
|
function baseGetTag(value) {
|
|
9553
9934
|
return objectToString.call(value);
|
|
9554
9935
|
}
|
|
9936
|
+
__name(baseGetTag, "baseGetTag");
|
|
9555
9937
|
function baseIsNative(value) {
|
|
9556
9938
|
if (!isObject(value) || isMasked(value)) {
|
|
9557
9939
|
return false;
|
|
@@ -9559,6 +9941,7 @@ var require_lodash = __commonJS({
|
|
|
9559
9941
|
var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
|
|
9560
9942
|
return pattern.test(toSource(value));
|
|
9561
9943
|
}
|
|
9944
|
+
__name(baseIsNative, "baseIsNative");
|
|
9562
9945
|
function baseKeys(object) {
|
|
9563
9946
|
if (!isPrototype(object)) {
|
|
9564
9947
|
return nativeKeys(object);
|
|
@@ -9571,6 +9954,7 @@ var require_lodash = __commonJS({
|
|
|
9571
9954
|
}
|
|
9572
9955
|
return result;
|
|
9573
9956
|
}
|
|
9957
|
+
__name(baseKeys, "baseKeys");
|
|
9574
9958
|
function cloneBuffer(buffer, isDeep) {
|
|
9575
9959
|
if (isDeep) {
|
|
9576
9960
|
return buffer.slice();
|
|
@@ -9579,35 +9963,43 @@ var require_lodash = __commonJS({
|
|
|
9579
9963
|
buffer.copy(result);
|
|
9580
9964
|
return result;
|
|
9581
9965
|
}
|
|
9966
|
+
__name(cloneBuffer, "cloneBuffer");
|
|
9582
9967
|
function cloneArrayBuffer(arrayBuffer) {
|
|
9583
9968
|
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
9584
9969
|
new Uint8Array2(result).set(new Uint8Array2(arrayBuffer));
|
|
9585
9970
|
return result;
|
|
9586
9971
|
}
|
|
9972
|
+
__name(cloneArrayBuffer, "cloneArrayBuffer");
|
|
9587
9973
|
function cloneDataView(dataView, isDeep) {
|
|
9588
9974
|
var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
|
|
9589
9975
|
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
9590
9976
|
}
|
|
9977
|
+
__name(cloneDataView, "cloneDataView");
|
|
9591
9978
|
function cloneMap(map, isDeep, cloneFunc) {
|
|
9592
9979
|
var array = isDeep ? cloneFunc(mapToArray(map), true) : mapToArray(map);
|
|
9593
9980
|
return arrayReduce(array, addMapEntry, new map.constructor());
|
|
9594
9981
|
}
|
|
9982
|
+
__name(cloneMap, "cloneMap");
|
|
9595
9983
|
function cloneRegExp(regexp) {
|
|
9596
9984
|
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
|
9597
9985
|
result.lastIndex = regexp.lastIndex;
|
|
9598
9986
|
return result;
|
|
9599
9987
|
}
|
|
9988
|
+
__name(cloneRegExp, "cloneRegExp");
|
|
9600
9989
|
function cloneSet(set, isDeep, cloneFunc) {
|
|
9601
9990
|
var array = isDeep ? cloneFunc(setToArray(set), true) : setToArray(set);
|
|
9602
9991
|
return arrayReduce(array, addSetEntry, new set.constructor());
|
|
9603
9992
|
}
|
|
9993
|
+
__name(cloneSet, "cloneSet");
|
|
9604
9994
|
function cloneSymbol(symbol) {
|
|
9605
9995
|
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
|
9606
9996
|
}
|
|
9997
|
+
__name(cloneSymbol, "cloneSymbol");
|
|
9607
9998
|
function cloneTypedArray(typedArray, isDeep) {
|
|
9608
9999
|
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
9609
10000
|
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
9610
10001
|
}
|
|
10002
|
+
__name(cloneTypedArray, "cloneTypedArray");
|
|
9611
10003
|
function copyArray(source, array) {
|
|
9612
10004
|
var index = -1, length = source.length;
|
|
9613
10005
|
array || (array = Array(length));
|
|
@@ -9616,6 +10008,7 @@ var require_lodash = __commonJS({
|
|
|
9616
10008
|
}
|
|
9617
10009
|
return array;
|
|
9618
10010
|
}
|
|
10011
|
+
__name(copyArray, "copyArray");
|
|
9619
10012
|
function copyObject(source, props, object, customizer) {
|
|
9620
10013
|
object || (object = {});
|
|
9621
10014
|
var index = -1, length = props.length;
|
|
@@ -9626,24 +10019,29 @@ var require_lodash = __commonJS({
|
|
|
9626
10019
|
}
|
|
9627
10020
|
return object;
|
|
9628
10021
|
}
|
|
10022
|
+
__name(copyObject, "copyObject");
|
|
9629
10023
|
function copySymbols(source, object) {
|
|
9630
10024
|
return copyObject(source, getSymbols(source), object);
|
|
9631
10025
|
}
|
|
10026
|
+
__name(copySymbols, "copySymbols");
|
|
9632
10027
|
function getAllKeys(object) {
|
|
9633
10028
|
return baseGetAllKeys(object, keys, getSymbols);
|
|
9634
10029
|
}
|
|
10030
|
+
__name(getAllKeys, "getAllKeys");
|
|
9635
10031
|
function getMapData(map, key) {
|
|
9636
10032
|
var data = map.__data__;
|
|
9637
10033
|
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
9638
10034
|
}
|
|
10035
|
+
__name(getMapData, "getMapData");
|
|
9639
10036
|
function getNative(object, key) {
|
|
9640
10037
|
var value = getValue(object, key);
|
|
9641
10038
|
return baseIsNative(value) ? value : void 0;
|
|
9642
10039
|
}
|
|
10040
|
+
__name(getNative, "getNative");
|
|
9643
10041
|
var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray;
|
|
9644
10042
|
var getTag = baseGetTag;
|
|
9645
10043
|
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
|
|
9646
|
-
getTag = function(value) {
|
|
10044
|
+
getTag = /* @__PURE__ */ __name(function(value) {
|
|
9647
10045
|
var result = objectToString.call(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : void 0;
|
|
9648
10046
|
if (ctorString) {
|
|
9649
10047
|
switch (ctorString) {
|
|
@@ -9660,7 +10058,7 @@ var require_lodash = __commonJS({
|
|
|
9660
10058
|
}
|
|
9661
10059
|
}
|
|
9662
10060
|
return result;
|
|
9663
|
-
};
|
|
10061
|
+
}, "getTag");
|
|
9664
10062
|
}
|
|
9665
10063
|
function initCloneArray(array) {
|
|
9666
10064
|
var length = array.length, result = array.constructor(length);
|
|
@@ -9670,9 +10068,11 @@ var require_lodash = __commonJS({
|
|
|
9670
10068
|
}
|
|
9671
10069
|
return result;
|
|
9672
10070
|
}
|
|
10071
|
+
__name(initCloneArray, "initCloneArray");
|
|
9673
10072
|
function initCloneObject(object) {
|
|
9674
10073
|
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
9675
10074
|
}
|
|
10075
|
+
__name(initCloneObject, "initCloneObject");
|
|
9676
10076
|
function initCloneByTag(object, tag, cloneFunc, isDeep) {
|
|
9677
10077
|
var Ctor = object.constructor;
|
|
9678
10078
|
switch (tag) {
|
|
@@ -9706,21 +10106,26 @@ var require_lodash = __commonJS({
|
|
|
9706
10106
|
return cloneSymbol(object);
|
|
9707
10107
|
}
|
|
9708
10108
|
}
|
|
10109
|
+
__name(initCloneByTag, "initCloneByTag");
|
|
9709
10110
|
function isIndex(value, length) {
|
|
9710
10111
|
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
9711
10112
|
return !!length && (typeof value == "number" || reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
9712
10113
|
}
|
|
10114
|
+
__name(isIndex, "isIndex");
|
|
9713
10115
|
function isKeyable(value) {
|
|
9714
10116
|
var type = typeof value;
|
|
9715
10117
|
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
9716
10118
|
}
|
|
10119
|
+
__name(isKeyable, "isKeyable");
|
|
9717
10120
|
function isMasked(func) {
|
|
9718
10121
|
return !!maskSrcKey && maskSrcKey in func;
|
|
9719
10122
|
}
|
|
10123
|
+
__name(isMasked, "isMasked");
|
|
9720
10124
|
function isPrototype(value) {
|
|
9721
10125
|
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
|
|
9722
10126
|
return value === proto;
|
|
9723
10127
|
}
|
|
10128
|
+
__name(isPrototype, "isPrototype");
|
|
9724
10129
|
function toSource(func) {
|
|
9725
10130
|
if (func != null) {
|
|
9726
10131
|
try {
|
|
@@ -9734,46 +10139,59 @@ var require_lodash = __commonJS({
|
|
|
9734
10139
|
}
|
|
9735
10140
|
return "";
|
|
9736
10141
|
}
|
|
10142
|
+
__name(toSource, "toSource");
|
|
9737
10143
|
function cloneDeep(value) {
|
|
9738
10144
|
return baseClone(value, true, true);
|
|
9739
10145
|
}
|
|
10146
|
+
__name(cloneDeep, "cloneDeep");
|
|
9740
10147
|
function eq(value, other) {
|
|
9741
10148
|
return value === other || value !== value && other !== other;
|
|
9742
10149
|
}
|
|
10150
|
+
__name(eq, "eq");
|
|
9743
10151
|
function isArguments(value) {
|
|
9744
10152
|
return isArrayLikeObject(value) && hasOwnProperty.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString.call(value) == argsTag);
|
|
9745
10153
|
}
|
|
10154
|
+
__name(isArguments, "isArguments");
|
|
9746
10155
|
var isArray = Array.isArray;
|
|
9747
10156
|
function isArrayLike(value) {
|
|
9748
10157
|
return value != null && isLength(value.length) && !isFunction(value);
|
|
9749
10158
|
}
|
|
10159
|
+
__name(isArrayLike, "isArrayLike");
|
|
9750
10160
|
function isArrayLikeObject(value) {
|
|
9751
10161
|
return isObjectLike(value) && isArrayLike(value);
|
|
9752
10162
|
}
|
|
10163
|
+
__name(isArrayLikeObject, "isArrayLikeObject");
|
|
9753
10164
|
var isBuffer = nativeIsBuffer || stubFalse;
|
|
9754
10165
|
function isFunction(value) {
|
|
9755
10166
|
var tag = isObject(value) ? objectToString.call(value) : "";
|
|
9756
10167
|
return tag == funcTag || tag == genTag;
|
|
9757
10168
|
}
|
|
10169
|
+
__name(isFunction, "isFunction");
|
|
9758
10170
|
function isLength(value) {
|
|
9759
10171
|
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
9760
10172
|
}
|
|
10173
|
+
__name(isLength, "isLength");
|
|
9761
10174
|
function isObject(value) {
|
|
9762
10175
|
var type = typeof value;
|
|
9763
10176
|
return !!value && (type == "object" || type == "function");
|
|
9764
10177
|
}
|
|
10178
|
+
__name(isObject, "isObject");
|
|
9765
10179
|
function isObjectLike(value) {
|
|
9766
10180
|
return !!value && typeof value == "object";
|
|
9767
10181
|
}
|
|
10182
|
+
__name(isObjectLike, "isObjectLike");
|
|
9768
10183
|
function keys(object) {
|
|
9769
10184
|
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
9770
10185
|
}
|
|
10186
|
+
__name(keys, "keys");
|
|
9771
10187
|
function stubArray() {
|
|
9772
10188
|
return [];
|
|
9773
10189
|
}
|
|
10190
|
+
__name(stubArray, "stubArray");
|
|
9774
10191
|
function stubFalse() {
|
|
9775
10192
|
return false;
|
|
9776
10193
|
}
|
|
10194
|
+
__name(stubFalse, "stubFalse");
|
|
9777
10195
|
module.exports = cloneDeep;
|
|
9778
10196
|
}
|
|
9779
10197
|
});
|
|
@@ -9915,6 +10333,7 @@ var require_scene2 = __commonJS({
|
|
|
9915
10333
|
super(data);
|
|
9916
10334
|
}
|
|
9917
10335
|
};
|
|
10336
|
+
__name(Scene, "Scene");
|
|
9918
10337
|
Object.defineProperty(Scene.prototype, "schema", {
|
|
9919
10338
|
value: schema
|
|
9920
10339
|
});
|
|
@@ -10013,6 +10432,7 @@ var require_room2 = __commonJS({
|
|
|
10013
10432
|
return diff < 60 * 60 * 1e3;
|
|
10014
10433
|
}
|
|
10015
10434
|
};
|
|
10435
|
+
__name(Room, "Room");
|
|
10016
10436
|
Object.defineProperty(Room.prototype, "schema", {
|
|
10017
10437
|
value: schema
|
|
10018
10438
|
});
|
|
@@ -10094,6 +10514,7 @@ var require_room2 = __commonJS({
|
|
|
10094
10514
|
});
|
|
10095
10515
|
return roomData;
|
|
10096
10516
|
}
|
|
10517
|
+
__name(mapRoomData, "mapRoomData");
|
|
10097
10518
|
module.exports = Room;
|
|
10098
10519
|
}
|
|
10099
10520
|
});
|
|
@@ -10230,6 +10651,7 @@ var require_reservation2 = __commonJS({
|
|
|
10230
10651
|
});
|
|
10231
10652
|
}
|
|
10232
10653
|
};
|
|
10654
|
+
__name(Reservation, "Reservation");
|
|
10233
10655
|
Object.defineProperty(Reservation.prototype, "schema", {
|
|
10234
10656
|
value: schema
|
|
10235
10657
|
});
|
|
@@ -10288,6 +10710,7 @@ var require_application2 = __commonJS({
|
|
|
10288
10710
|
super(data);
|
|
10289
10711
|
}
|
|
10290
10712
|
};
|
|
10713
|
+
__name(Application, "Application");
|
|
10291
10714
|
Object.defineProperty(Application.prototype, "schema", {
|
|
10292
10715
|
value: schema
|
|
10293
10716
|
});
|
|
@@ -10477,6 +10900,7 @@ var require_space2 = __commonJS({
|
|
|
10477
10900
|
return this.rooms.some((room) => room.occupied);
|
|
10478
10901
|
}
|
|
10479
10902
|
};
|
|
10903
|
+
__name(Space, "Space");
|
|
10480
10904
|
Object.defineProperty(Space.prototype, "schema", {
|
|
10481
10905
|
value: schema
|
|
10482
10906
|
});
|
|
@@ -10501,6 +10925,7 @@ var require_space2 = __commonJS({
|
|
|
10501
10925
|
}
|
|
10502
10926
|
return spaceData;
|
|
10503
10927
|
}
|
|
10928
|
+
__name(mapSpaceData, "mapSpaceData");
|
|
10504
10929
|
module.exports = Space;
|
|
10505
10930
|
}
|
|
10506
10931
|
});
|
|
@@ -10668,6 +11093,7 @@ var require_lodash2 = __commonJS({
|
|
|
10668
11093
|
}
|
|
10669
11094
|
return func.apply(thisArg, args);
|
|
10670
11095
|
}
|
|
11096
|
+
__name(apply, "apply");
|
|
10671
11097
|
function arrayMap(array, iteratee) {
|
|
10672
11098
|
var index = -1, length = array ? array.length : 0, result = Array(length);
|
|
10673
11099
|
while (++index < length) {
|
|
@@ -10675,6 +11101,7 @@ var require_lodash2 = __commonJS({
|
|
|
10675
11101
|
}
|
|
10676
11102
|
return result;
|
|
10677
11103
|
}
|
|
11104
|
+
__name(arrayMap, "arrayMap");
|
|
10678
11105
|
function arrayPush(array, values) {
|
|
10679
11106
|
var index = -1, length = values.length, offset = array.length;
|
|
10680
11107
|
while (++index < length) {
|
|
@@ -10682,6 +11109,7 @@ var require_lodash2 = __commonJS({
|
|
|
10682
11109
|
}
|
|
10683
11110
|
return array;
|
|
10684
11111
|
}
|
|
11112
|
+
__name(arrayPush, "arrayPush");
|
|
10685
11113
|
function arraySome(array, predicate) {
|
|
10686
11114
|
var index = -1, length = array ? array.length : 0;
|
|
10687
11115
|
while (++index < length) {
|
|
@@ -10691,11 +11119,13 @@ var require_lodash2 = __commonJS({
|
|
|
10691
11119
|
}
|
|
10692
11120
|
return false;
|
|
10693
11121
|
}
|
|
11122
|
+
__name(arraySome, "arraySome");
|
|
10694
11123
|
function baseProperty(key) {
|
|
10695
11124
|
return function(object) {
|
|
10696
11125
|
return object == null ? void 0 : object[key];
|
|
10697
11126
|
};
|
|
10698
11127
|
}
|
|
11128
|
+
__name(baseProperty, "baseProperty");
|
|
10699
11129
|
function baseSortBy(array, comparer) {
|
|
10700
11130
|
var length = array.length;
|
|
10701
11131
|
array.sort(comparer);
|
|
@@ -10704,6 +11134,7 @@ var require_lodash2 = __commonJS({
|
|
|
10704
11134
|
}
|
|
10705
11135
|
return array;
|
|
10706
11136
|
}
|
|
11137
|
+
__name(baseSortBy, "baseSortBy");
|
|
10707
11138
|
function baseTimes(n, iteratee) {
|
|
10708
11139
|
var index = -1, result = Array(n);
|
|
10709
11140
|
while (++index < n) {
|
|
@@ -10711,14 +11142,17 @@ var require_lodash2 = __commonJS({
|
|
|
10711
11142
|
}
|
|
10712
11143
|
return result;
|
|
10713
11144
|
}
|
|
11145
|
+
__name(baseTimes, "baseTimes");
|
|
10714
11146
|
function baseUnary(func) {
|
|
10715
11147
|
return function(value) {
|
|
10716
11148
|
return func(value);
|
|
10717
11149
|
};
|
|
10718
11150
|
}
|
|
11151
|
+
__name(baseUnary, "baseUnary");
|
|
10719
11152
|
function getValue(object, key) {
|
|
10720
11153
|
return object == null ? void 0 : object[key];
|
|
10721
11154
|
}
|
|
11155
|
+
__name(getValue, "getValue");
|
|
10722
11156
|
function isHostObject(value) {
|
|
10723
11157
|
var result = false;
|
|
10724
11158
|
if (value != null && typeof value.toString != "function") {
|
|
@@ -10729,6 +11163,7 @@ var require_lodash2 = __commonJS({
|
|
|
10729
11163
|
}
|
|
10730
11164
|
return result;
|
|
10731
11165
|
}
|
|
11166
|
+
__name(isHostObject, "isHostObject");
|
|
10732
11167
|
function mapToArray(map) {
|
|
10733
11168
|
var index = -1, result = Array(map.size);
|
|
10734
11169
|
map.forEach(function(value, key) {
|
|
@@ -10736,11 +11171,13 @@ var require_lodash2 = __commonJS({
|
|
|
10736
11171
|
});
|
|
10737
11172
|
return result;
|
|
10738
11173
|
}
|
|
11174
|
+
__name(mapToArray, "mapToArray");
|
|
10739
11175
|
function overArg(func, transform) {
|
|
10740
11176
|
return function(arg) {
|
|
10741
11177
|
return func(transform(arg));
|
|
10742
11178
|
};
|
|
10743
11179
|
}
|
|
11180
|
+
__name(overArg, "overArg");
|
|
10744
11181
|
function setToArray(set) {
|
|
10745
11182
|
var index = -1, result = Array(set.size);
|
|
10746
11183
|
set.forEach(function(value) {
|
|
@@ -10748,6 +11185,7 @@ var require_lodash2 = __commonJS({
|
|
|
10748
11185
|
});
|
|
10749
11186
|
return result;
|
|
10750
11187
|
}
|
|
11188
|
+
__name(setToArray, "setToArray");
|
|
10751
11189
|
var arrayProto = Array.prototype;
|
|
10752
11190
|
var funcProto = Function.prototype;
|
|
10753
11191
|
var objectProto = Object.prototype;
|
|
@@ -10791,12 +11229,15 @@ var require_lodash2 = __commonJS({
|
|
|
10791
11229
|
this.set(entry[0], entry[1]);
|
|
10792
11230
|
}
|
|
10793
11231
|
}
|
|
11232
|
+
__name(Hash, "Hash");
|
|
10794
11233
|
function hashClear() {
|
|
10795
11234
|
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
10796
11235
|
}
|
|
11236
|
+
__name(hashClear, "hashClear");
|
|
10797
11237
|
function hashDelete(key) {
|
|
10798
11238
|
return this.has(key) && delete this.__data__[key];
|
|
10799
11239
|
}
|
|
11240
|
+
__name(hashDelete, "hashDelete");
|
|
10800
11241
|
function hashGet(key) {
|
|
10801
11242
|
var data = this.__data__;
|
|
10802
11243
|
if (nativeCreate) {
|
|
@@ -10805,15 +11246,18 @@ var require_lodash2 = __commonJS({
|
|
|
10805
11246
|
}
|
|
10806
11247
|
return hasOwnProperty.call(data, key) ? data[key] : void 0;
|
|
10807
11248
|
}
|
|
11249
|
+
__name(hashGet, "hashGet");
|
|
10808
11250
|
function hashHas(key) {
|
|
10809
11251
|
var data = this.__data__;
|
|
10810
11252
|
return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
|
|
10811
11253
|
}
|
|
11254
|
+
__name(hashHas, "hashHas");
|
|
10812
11255
|
function hashSet(key, value) {
|
|
10813
11256
|
var data = this.__data__;
|
|
10814
11257
|
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
10815
11258
|
return this;
|
|
10816
11259
|
}
|
|
11260
|
+
__name(hashSet, "hashSet");
|
|
10817
11261
|
Hash.prototype.clear = hashClear;
|
|
10818
11262
|
Hash.prototype["delete"] = hashDelete;
|
|
10819
11263
|
Hash.prototype.get = hashGet;
|
|
@@ -10827,9 +11271,11 @@ var require_lodash2 = __commonJS({
|
|
|
10827
11271
|
this.set(entry[0], entry[1]);
|
|
10828
11272
|
}
|
|
10829
11273
|
}
|
|
11274
|
+
__name(ListCache, "ListCache");
|
|
10830
11275
|
function listCacheClear() {
|
|
10831
11276
|
this.__data__ = [];
|
|
10832
11277
|
}
|
|
11278
|
+
__name(listCacheClear, "listCacheClear");
|
|
10833
11279
|
function listCacheDelete(key) {
|
|
10834
11280
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
10835
11281
|
if (index < 0) {
|
|
@@ -10843,13 +11289,16 @@ var require_lodash2 = __commonJS({
|
|
|
10843
11289
|
}
|
|
10844
11290
|
return true;
|
|
10845
11291
|
}
|
|
11292
|
+
__name(listCacheDelete, "listCacheDelete");
|
|
10846
11293
|
function listCacheGet(key) {
|
|
10847
11294
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
10848
11295
|
return index < 0 ? void 0 : data[index][1];
|
|
10849
11296
|
}
|
|
11297
|
+
__name(listCacheGet, "listCacheGet");
|
|
10850
11298
|
function listCacheHas(key) {
|
|
10851
11299
|
return assocIndexOf(this.__data__, key) > -1;
|
|
10852
11300
|
}
|
|
11301
|
+
__name(listCacheHas, "listCacheHas");
|
|
10853
11302
|
function listCacheSet(key, value) {
|
|
10854
11303
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
10855
11304
|
if (index < 0) {
|
|
@@ -10859,6 +11308,7 @@ var require_lodash2 = __commonJS({
|
|
|
10859
11308
|
}
|
|
10860
11309
|
return this;
|
|
10861
11310
|
}
|
|
11311
|
+
__name(listCacheSet, "listCacheSet");
|
|
10862
11312
|
ListCache.prototype.clear = listCacheClear;
|
|
10863
11313
|
ListCache.prototype["delete"] = listCacheDelete;
|
|
10864
11314
|
ListCache.prototype.get = listCacheGet;
|
|
@@ -10872,6 +11322,7 @@ var require_lodash2 = __commonJS({
|
|
|
10872
11322
|
this.set(entry[0], entry[1]);
|
|
10873
11323
|
}
|
|
10874
11324
|
}
|
|
11325
|
+
__name(MapCache, "MapCache");
|
|
10875
11326
|
function mapCacheClear() {
|
|
10876
11327
|
this.__data__ = {
|
|
10877
11328
|
"hash": new Hash(),
|
|
@@ -10879,19 +11330,24 @@ var require_lodash2 = __commonJS({
|
|
|
10879
11330
|
"string": new Hash()
|
|
10880
11331
|
};
|
|
10881
11332
|
}
|
|
11333
|
+
__name(mapCacheClear, "mapCacheClear");
|
|
10882
11334
|
function mapCacheDelete(key) {
|
|
10883
11335
|
return getMapData(this, key)["delete"](key);
|
|
10884
11336
|
}
|
|
11337
|
+
__name(mapCacheDelete, "mapCacheDelete");
|
|
10885
11338
|
function mapCacheGet(key) {
|
|
10886
11339
|
return getMapData(this, key).get(key);
|
|
10887
11340
|
}
|
|
11341
|
+
__name(mapCacheGet, "mapCacheGet");
|
|
10888
11342
|
function mapCacheHas(key) {
|
|
10889
11343
|
return getMapData(this, key).has(key);
|
|
10890
11344
|
}
|
|
11345
|
+
__name(mapCacheHas, "mapCacheHas");
|
|
10891
11346
|
function mapCacheSet(key, value) {
|
|
10892
11347
|
getMapData(this, key).set(key, value);
|
|
10893
11348
|
return this;
|
|
10894
11349
|
}
|
|
11350
|
+
__name(mapCacheSet, "mapCacheSet");
|
|
10895
11351
|
MapCache.prototype.clear = mapCacheClear;
|
|
10896
11352
|
MapCache.prototype["delete"] = mapCacheDelete;
|
|
10897
11353
|
MapCache.prototype.get = mapCacheGet;
|
|
@@ -10904,30 +11360,38 @@ var require_lodash2 = __commonJS({
|
|
|
10904
11360
|
this.add(values[index]);
|
|
10905
11361
|
}
|
|
10906
11362
|
}
|
|
11363
|
+
__name(SetCache, "SetCache");
|
|
10907
11364
|
function setCacheAdd(value) {
|
|
10908
11365
|
this.__data__.set(value, HASH_UNDEFINED);
|
|
10909
11366
|
return this;
|
|
10910
11367
|
}
|
|
11368
|
+
__name(setCacheAdd, "setCacheAdd");
|
|
10911
11369
|
function setCacheHas(value) {
|
|
10912
11370
|
return this.__data__.has(value);
|
|
10913
11371
|
}
|
|
11372
|
+
__name(setCacheHas, "setCacheHas");
|
|
10914
11373
|
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
10915
11374
|
SetCache.prototype.has = setCacheHas;
|
|
10916
11375
|
function Stack(entries) {
|
|
10917
11376
|
this.__data__ = new ListCache(entries);
|
|
10918
11377
|
}
|
|
11378
|
+
__name(Stack, "Stack");
|
|
10919
11379
|
function stackClear() {
|
|
10920
11380
|
this.__data__ = new ListCache();
|
|
10921
11381
|
}
|
|
11382
|
+
__name(stackClear, "stackClear");
|
|
10922
11383
|
function stackDelete(key) {
|
|
10923
11384
|
return this.__data__["delete"](key);
|
|
10924
11385
|
}
|
|
11386
|
+
__name(stackDelete, "stackDelete");
|
|
10925
11387
|
function stackGet(key) {
|
|
10926
11388
|
return this.__data__.get(key);
|
|
10927
11389
|
}
|
|
11390
|
+
__name(stackGet, "stackGet");
|
|
10928
11391
|
function stackHas(key) {
|
|
10929
11392
|
return this.__data__.has(key);
|
|
10930
11393
|
}
|
|
11394
|
+
__name(stackHas, "stackHas");
|
|
10931
11395
|
function stackSet(key, value) {
|
|
10932
11396
|
var cache = this.__data__;
|
|
10933
11397
|
if (cache instanceof ListCache) {
|
|
@@ -10941,6 +11405,7 @@ var require_lodash2 = __commonJS({
|
|
|
10941
11405
|
cache.set(key, value);
|
|
10942
11406
|
return this;
|
|
10943
11407
|
}
|
|
11408
|
+
__name(stackSet, "stackSet");
|
|
10944
11409
|
Stack.prototype.clear = stackClear;
|
|
10945
11410
|
Stack.prototype["delete"] = stackDelete;
|
|
10946
11411
|
Stack.prototype.get = stackGet;
|
|
@@ -10956,6 +11421,7 @@ var require_lodash2 = __commonJS({
|
|
|
10956
11421
|
}
|
|
10957
11422
|
return result;
|
|
10958
11423
|
}
|
|
11424
|
+
__name(arrayLikeKeys, "arrayLikeKeys");
|
|
10959
11425
|
function assocIndexOf(array, key) {
|
|
10960
11426
|
var length = array.length;
|
|
10961
11427
|
while (length--) {
|
|
@@ -10965,6 +11431,7 @@ var require_lodash2 = __commonJS({
|
|
|
10965
11431
|
}
|
|
10966
11432
|
return -1;
|
|
10967
11433
|
}
|
|
11434
|
+
__name(assocIndexOf, "assocIndexOf");
|
|
10968
11435
|
var baseEach = createBaseEach(baseForOwn);
|
|
10969
11436
|
function baseFlatten(array, depth, predicate, isStrict, result) {
|
|
10970
11437
|
var index = -1, length = array.length;
|
|
@@ -10984,10 +11451,12 @@ var require_lodash2 = __commonJS({
|
|
|
10984
11451
|
}
|
|
10985
11452
|
return result;
|
|
10986
11453
|
}
|
|
11454
|
+
__name(baseFlatten, "baseFlatten");
|
|
10987
11455
|
var baseFor = createBaseFor();
|
|
10988
11456
|
function baseForOwn(object, iteratee) {
|
|
10989
11457
|
return object && baseFor(object, iteratee, keys);
|
|
10990
11458
|
}
|
|
11459
|
+
__name(baseForOwn, "baseForOwn");
|
|
10991
11460
|
function baseGet(object, path) {
|
|
10992
11461
|
path = isKey(path, object) ? [path] : castPath(path);
|
|
10993
11462
|
var index = 0, length = path.length;
|
|
@@ -10996,12 +11465,15 @@ var require_lodash2 = __commonJS({
|
|
|
10996
11465
|
}
|
|
10997
11466
|
return index && index == length ? object : void 0;
|
|
10998
11467
|
}
|
|
11468
|
+
__name(baseGet, "baseGet");
|
|
10999
11469
|
function baseGetTag(value) {
|
|
11000
11470
|
return objectToString.call(value);
|
|
11001
11471
|
}
|
|
11472
|
+
__name(baseGetTag, "baseGetTag");
|
|
11002
11473
|
function baseHasIn(object, key) {
|
|
11003
11474
|
return object != null && key in Object(object);
|
|
11004
11475
|
}
|
|
11476
|
+
__name(baseHasIn, "baseHasIn");
|
|
11005
11477
|
function baseIsEqual(value, other, customizer, bitmask, stack) {
|
|
11006
11478
|
if (value === other) {
|
|
11007
11479
|
return true;
|
|
@@ -11011,6 +11483,7 @@ var require_lodash2 = __commonJS({
|
|
|
11011
11483
|
}
|
|
11012
11484
|
return baseIsEqualDeep(value, other, baseIsEqual, customizer, bitmask, stack);
|
|
11013
11485
|
}
|
|
11486
|
+
__name(baseIsEqual, "baseIsEqual");
|
|
11014
11487
|
function baseIsEqualDeep(object, other, equalFunc, customizer, bitmask, stack) {
|
|
11015
11488
|
var objIsArr = isArray(object), othIsArr = isArray(other), objTag = arrayTag, othTag = arrayTag;
|
|
11016
11489
|
if (!objIsArr) {
|
|
@@ -11040,6 +11513,7 @@ var require_lodash2 = __commonJS({
|
|
|
11040
11513
|
stack || (stack = new Stack());
|
|
11041
11514
|
return equalObjects(object, other, equalFunc, customizer, bitmask, stack);
|
|
11042
11515
|
}
|
|
11516
|
+
__name(baseIsEqualDeep, "baseIsEqualDeep");
|
|
11043
11517
|
function baseIsMatch(object, source, matchData, customizer) {
|
|
11044
11518
|
var index = matchData.length, length = index, noCustomizer = !customizer;
|
|
11045
11519
|
if (object == null) {
|
|
@@ -11071,6 +11545,7 @@ var require_lodash2 = __commonJS({
|
|
|
11071
11545
|
}
|
|
11072
11546
|
return true;
|
|
11073
11547
|
}
|
|
11548
|
+
__name(baseIsMatch, "baseIsMatch");
|
|
11074
11549
|
function baseIsNative(value) {
|
|
11075
11550
|
if (!isObject(value) || isMasked(value)) {
|
|
11076
11551
|
return false;
|
|
@@ -11078,9 +11553,11 @@ var require_lodash2 = __commonJS({
|
|
|
11078
11553
|
var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
|
|
11079
11554
|
return pattern.test(toSource(value));
|
|
11080
11555
|
}
|
|
11556
|
+
__name(baseIsNative, "baseIsNative");
|
|
11081
11557
|
function baseIsTypedArray(value) {
|
|
11082
11558
|
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[objectToString.call(value)];
|
|
11083
11559
|
}
|
|
11560
|
+
__name(baseIsTypedArray, "baseIsTypedArray");
|
|
11084
11561
|
function baseIteratee(value) {
|
|
11085
11562
|
if (typeof value == "function") {
|
|
11086
11563
|
return value;
|
|
@@ -11093,6 +11570,7 @@ var require_lodash2 = __commonJS({
|
|
|
11093
11570
|
}
|
|
11094
11571
|
return property(value);
|
|
11095
11572
|
}
|
|
11573
|
+
__name(baseIteratee, "baseIteratee");
|
|
11096
11574
|
function baseKeys(object) {
|
|
11097
11575
|
if (!isPrototype(object)) {
|
|
11098
11576
|
return nativeKeys(object);
|
|
@@ -11105,6 +11583,7 @@ var require_lodash2 = __commonJS({
|
|
|
11105
11583
|
}
|
|
11106
11584
|
return result;
|
|
11107
11585
|
}
|
|
11586
|
+
__name(baseKeys, "baseKeys");
|
|
11108
11587
|
function baseMap(collection, iteratee) {
|
|
11109
11588
|
var index = -1, result = isArrayLike(collection) ? Array(collection.length) : [];
|
|
11110
11589
|
baseEach(collection, function(value, key, collection2) {
|
|
@@ -11112,6 +11591,7 @@ var require_lodash2 = __commonJS({
|
|
|
11112
11591
|
});
|
|
11113
11592
|
return result;
|
|
11114
11593
|
}
|
|
11594
|
+
__name(baseMap, "baseMap");
|
|
11115
11595
|
function baseMatches(source) {
|
|
11116
11596
|
var matchData = getMatchData(source);
|
|
11117
11597
|
if (matchData.length == 1 && matchData[0][2]) {
|
|
@@ -11121,6 +11601,7 @@ var require_lodash2 = __commonJS({
|
|
|
11121
11601
|
return object === source || baseIsMatch(object, source, matchData);
|
|
11122
11602
|
};
|
|
11123
11603
|
}
|
|
11604
|
+
__name(baseMatches, "baseMatches");
|
|
11124
11605
|
function baseMatchesProperty(path, srcValue) {
|
|
11125
11606
|
if (isKey(path) && isStrictComparable(srcValue)) {
|
|
11126
11607
|
return matchesStrictComparable(toKey(path), srcValue);
|
|
@@ -11130,6 +11611,7 @@ var require_lodash2 = __commonJS({
|
|
|
11130
11611
|
return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, void 0, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG);
|
|
11131
11612
|
};
|
|
11132
11613
|
}
|
|
11614
|
+
__name(baseMatchesProperty, "baseMatchesProperty");
|
|
11133
11615
|
function baseOrderBy(collection, iteratees, orders) {
|
|
11134
11616
|
var index = -1;
|
|
11135
11617
|
iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(baseIteratee));
|
|
@@ -11143,11 +11625,13 @@ var require_lodash2 = __commonJS({
|
|
|
11143
11625
|
return compareMultiple(object, other, orders);
|
|
11144
11626
|
});
|
|
11145
11627
|
}
|
|
11628
|
+
__name(baseOrderBy, "baseOrderBy");
|
|
11146
11629
|
function basePropertyDeep(path) {
|
|
11147
11630
|
return function(object) {
|
|
11148
11631
|
return baseGet(object, path);
|
|
11149
11632
|
};
|
|
11150
11633
|
}
|
|
11634
|
+
__name(basePropertyDeep, "basePropertyDeep");
|
|
11151
11635
|
function baseRest(func, start) {
|
|
11152
11636
|
start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
|
|
11153
11637
|
return function() {
|
|
@@ -11164,6 +11648,7 @@ var require_lodash2 = __commonJS({
|
|
|
11164
11648
|
return apply(func, this, otherArgs);
|
|
11165
11649
|
};
|
|
11166
11650
|
}
|
|
11651
|
+
__name(baseRest, "baseRest");
|
|
11167
11652
|
function baseToString(value) {
|
|
11168
11653
|
if (typeof value == "string") {
|
|
11169
11654
|
return value;
|
|
@@ -11174,9 +11659,11 @@ var require_lodash2 = __commonJS({
|
|
|
11174
11659
|
var result = value + "";
|
|
11175
11660
|
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
11176
11661
|
}
|
|
11662
|
+
__name(baseToString, "baseToString");
|
|
11177
11663
|
function castPath(value) {
|
|
11178
11664
|
return isArray(value) ? value : stringToPath(value);
|
|
11179
11665
|
}
|
|
11666
|
+
__name(castPath, "castPath");
|
|
11180
11667
|
function compareAscending(value, other) {
|
|
11181
11668
|
if (value !== other) {
|
|
11182
11669
|
var valIsDefined = value !== void 0, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol(value);
|
|
@@ -11190,6 +11677,7 @@ var require_lodash2 = __commonJS({
|
|
|
11190
11677
|
}
|
|
11191
11678
|
return 0;
|
|
11192
11679
|
}
|
|
11680
|
+
__name(compareAscending, "compareAscending");
|
|
11193
11681
|
function compareMultiple(object, other, orders) {
|
|
11194
11682
|
var index = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length;
|
|
11195
11683
|
while (++index < length) {
|
|
@@ -11204,6 +11692,7 @@ var require_lodash2 = __commonJS({
|
|
|
11204
11692
|
}
|
|
11205
11693
|
return object.index - other.index;
|
|
11206
11694
|
}
|
|
11695
|
+
__name(compareMultiple, "compareMultiple");
|
|
11207
11696
|
function createBaseEach(eachFunc, fromRight) {
|
|
11208
11697
|
return function(collection, iteratee) {
|
|
11209
11698
|
if (collection == null) {
|
|
@@ -11221,6 +11710,7 @@ var require_lodash2 = __commonJS({
|
|
|
11221
11710
|
return collection;
|
|
11222
11711
|
};
|
|
11223
11712
|
}
|
|
11713
|
+
__name(createBaseEach, "createBaseEach");
|
|
11224
11714
|
function createBaseFor(fromRight) {
|
|
11225
11715
|
return function(object, iteratee, keysFunc) {
|
|
11226
11716
|
var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
|
@@ -11233,6 +11723,7 @@ var require_lodash2 = __commonJS({
|
|
|
11233
11723
|
return object;
|
|
11234
11724
|
};
|
|
11235
11725
|
}
|
|
11726
|
+
__name(createBaseFor, "createBaseFor");
|
|
11236
11727
|
function equalArrays(array, other, equalFunc, customizer, bitmask, stack) {
|
|
11237
11728
|
var isPartial = bitmask & PARTIAL_COMPARE_FLAG, arrLength = array.length, othLength = other.length;
|
|
11238
11729
|
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
|
@@ -11275,6 +11766,7 @@ var require_lodash2 = __commonJS({
|
|
|
11275
11766
|
stack["delete"](other);
|
|
11276
11767
|
return result;
|
|
11277
11768
|
}
|
|
11769
|
+
__name(equalArrays, "equalArrays");
|
|
11278
11770
|
function equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) {
|
|
11279
11771
|
switch (tag) {
|
|
11280
11772
|
case dataViewTag:
|
|
@@ -11321,6 +11813,7 @@ var require_lodash2 = __commonJS({
|
|
|
11321
11813
|
}
|
|
11322
11814
|
return false;
|
|
11323
11815
|
}
|
|
11816
|
+
__name(equalByTag, "equalByTag");
|
|
11324
11817
|
function equalObjects(object, other, equalFunc, customizer, bitmask, stack) {
|
|
11325
11818
|
var isPartial = bitmask & PARTIAL_COMPARE_FLAG, objProps = keys(object), objLength = objProps.length, othProps = keys(other), othLength = othProps.length;
|
|
11326
11819
|
if (objLength != othLength && !isPartial) {
|
|
@@ -11363,10 +11856,12 @@ var require_lodash2 = __commonJS({
|
|
|
11363
11856
|
stack["delete"](other);
|
|
11364
11857
|
return result;
|
|
11365
11858
|
}
|
|
11859
|
+
__name(equalObjects, "equalObjects");
|
|
11366
11860
|
function getMapData(map, key) {
|
|
11367
11861
|
var data = map.__data__;
|
|
11368
11862
|
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
11369
11863
|
}
|
|
11864
|
+
__name(getMapData, "getMapData");
|
|
11370
11865
|
function getMatchData(object) {
|
|
11371
11866
|
var result = keys(object), length = result.length;
|
|
11372
11867
|
while (length--) {
|
|
@@ -11375,13 +11870,15 @@ var require_lodash2 = __commonJS({
|
|
|
11375
11870
|
}
|
|
11376
11871
|
return result;
|
|
11377
11872
|
}
|
|
11873
|
+
__name(getMatchData, "getMatchData");
|
|
11378
11874
|
function getNative(object, key) {
|
|
11379
11875
|
var value = getValue(object, key);
|
|
11380
11876
|
return baseIsNative(value) ? value : void 0;
|
|
11381
11877
|
}
|
|
11878
|
+
__name(getNative, "getNative");
|
|
11382
11879
|
var getTag = baseGetTag;
|
|
11383
11880
|
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
|
|
11384
|
-
getTag = function(value) {
|
|
11881
|
+
getTag = /* @__PURE__ */ __name(function(value) {
|
|
11385
11882
|
var result = objectToString.call(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : void 0;
|
|
11386
11883
|
if (ctorString) {
|
|
11387
11884
|
switch (ctorString) {
|
|
@@ -11398,7 +11895,7 @@ var require_lodash2 = __commonJS({
|
|
|
11398
11895
|
}
|
|
11399
11896
|
}
|
|
11400
11897
|
return result;
|
|
11401
|
-
};
|
|
11898
|
+
}, "getTag");
|
|
11402
11899
|
}
|
|
11403
11900
|
function hasPath(object, path, hasFunc) {
|
|
11404
11901
|
path = isKey(path, object) ? [path] : castPath(path);
|
|
@@ -11416,13 +11913,16 @@ var require_lodash2 = __commonJS({
|
|
|
11416
11913
|
var length = object ? object.length : 0;
|
|
11417
11914
|
return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object));
|
|
11418
11915
|
}
|
|
11916
|
+
__name(hasPath, "hasPath");
|
|
11419
11917
|
function isFlattenable(value) {
|
|
11420
11918
|
return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
11421
11919
|
}
|
|
11920
|
+
__name(isFlattenable, "isFlattenable");
|
|
11422
11921
|
function isIndex(value, length) {
|
|
11423
11922
|
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
11424
11923
|
return !!length && (typeof value == "number" || reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
11425
11924
|
}
|
|
11925
|
+
__name(isIndex, "isIndex");
|
|
11426
11926
|
function isIterateeCall(value, index, object) {
|
|
11427
11927
|
if (!isObject(object)) {
|
|
11428
11928
|
return false;
|
|
@@ -11433,6 +11933,7 @@ var require_lodash2 = __commonJS({
|
|
|
11433
11933
|
}
|
|
11434
11934
|
return false;
|
|
11435
11935
|
}
|
|
11936
|
+
__name(isIterateeCall, "isIterateeCall");
|
|
11436
11937
|
function isKey(value, object) {
|
|
11437
11938
|
if (isArray(value)) {
|
|
11438
11939
|
return false;
|
|
@@ -11443,20 +11944,25 @@ var require_lodash2 = __commonJS({
|
|
|
11443
11944
|
}
|
|
11444
11945
|
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
11445
11946
|
}
|
|
11947
|
+
__name(isKey, "isKey");
|
|
11446
11948
|
function isKeyable(value) {
|
|
11447
11949
|
var type = typeof value;
|
|
11448
11950
|
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
11449
11951
|
}
|
|
11952
|
+
__name(isKeyable, "isKeyable");
|
|
11450
11953
|
function isMasked(func) {
|
|
11451
11954
|
return !!maskSrcKey && maskSrcKey in func;
|
|
11452
11955
|
}
|
|
11956
|
+
__name(isMasked, "isMasked");
|
|
11453
11957
|
function isPrototype(value) {
|
|
11454
11958
|
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
|
|
11455
11959
|
return value === proto;
|
|
11456
11960
|
}
|
|
11961
|
+
__name(isPrototype, "isPrototype");
|
|
11457
11962
|
function isStrictComparable(value) {
|
|
11458
11963
|
return value === value && !isObject(value);
|
|
11459
11964
|
}
|
|
11965
|
+
__name(isStrictComparable, "isStrictComparable");
|
|
11460
11966
|
function matchesStrictComparable(key, srcValue) {
|
|
11461
11967
|
return function(object) {
|
|
11462
11968
|
if (object == null) {
|
|
@@ -11465,6 +11971,7 @@ var require_lodash2 = __commonJS({
|
|
|
11465
11971
|
return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
|
|
11466
11972
|
};
|
|
11467
11973
|
}
|
|
11974
|
+
__name(matchesStrictComparable, "matchesStrictComparable");
|
|
11468
11975
|
var stringToPath = memoize(function(string) {
|
|
11469
11976
|
string = toString(string);
|
|
11470
11977
|
var result = [];
|
|
@@ -11483,6 +11990,7 @@ var require_lodash2 = __commonJS({
|
|
|
11483
11990
|
var result = value + "";
|
|
11484
11991
|
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
11485
11992
|
}
|
|
11993
|
+
__name(toKey, "toKey");
|
|
11486
11994
|
function toSource(func) {
|
|
11487
11995
|
if (func != null) {
|
|
11488
11996
|
try {
|
|
@@ -11496,6 +12004,7 @@ var require_lodash2 = __commonJS({
|
|
|
11496
12004
|
}
|
|
11497
12005
|
return "";
|
|
11498
12006
|
}
|
|
12007
|
+
__name(toSource, "toSource");
|
|
11499
12008
|
var sortBy = baseRest(function(collection, iteratees) {
|
|
11500
12009
|
if (collection == null) {
|
|
11501
12010
|
return [];
|
|
@@ -11512,7 +12021,7 @@ var require_lodash2 = __commonJS({
|
|
|
11512
12021
|
if (typeof func != "function" || resolver && typeof resolver != "function") {
|
|
11513
12022
|
throw new TypeError(FUNC_ERROR_TEXT);
|
|
11514
12023
|
}
|
|
11515
|
-
var memoized = function() {
|
|
12024
|
+
var memoized = /* @__PURE__ */ __name(function() {
|
|
11516
12025
|
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
11517
12026
|
if (cache.has(key)) {
|
|
11518
12027
|
return cache.get(key);
|
|
@@ -11520,61 +12029,77 @@ var require_lodash2 = __commonJS({
|
|
|
11520
12029
|
var result = func.apply(this, args);
|
|
11521
12030
|
memoized.cache = cache.set(key, result);
|
|
11522
12031
|
return result;
|
|
11523
|
-
};
|
|
12032
|
+
}, "memoized");
|
|
11524
12033
|
memoized.cache = new (memoize.Cache || MapCache)();
|
|
11525
12034
|
return memoized;
|
|
11526
12035
|
}
|
|
12036
|
+
__name(memoize, "memoize");
|
|
11527
12037
|
memoize.Cache = MapCache;
|
|
11528
12038
|
function eq(value, other) {
|
|
11529
12039
|
return value === other || value !== value && other !== other;
|
|
11530
12040
|
}
|
|
12041
|
+
__name(eq, "eq");
|
|
11531
12042
|
function isArguments(value) {
|
|
11532
12043
|
return isArrayLikeObject(value) && hasOwnProperty.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString.call(value) == argsTag);
|
|
11533
12044
|
}
|
|
12045
|
+
__name(isArguments, "isArguments");
|
|
11534
12046
|
var isArray = Array.isArray;
|
|
11535
12047
|
function isArrayLike(value) {
|
|
11536
12048
|
return value != null && isLength(value.length) && !isFunction(value);
|
|
11537
12049
|
}
|
|
12050
|
+
__name(isArrayLike, "isArrayLike");
|
|
11538
12051
|
function isArrayLikeObject(value) {
|
|
11539
12052
|
return isObjectLike(value) && isArrayLike(value);
|
|
11540
12053
|
}
|
|
12054
|
+
__name(isArrayLikeObject, "isArrayLikeObject");
|
|
11541
12055
|
function isFunction(value) {
|
|
11542
12056
|
var tag = isObject(value) ? objectToString.call(value) : "";
|
|
11543
12057
|
return tag == funcTag || tag == genTag;
|
|
11544
12058
|
}
|
|
12059
|
+
__name(isFunction, "isFunction");
|
|
11545
12060
|
function isLength(value) {
|
|
11546
12061
|
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
11547
12062
|
}
|
|
12063
|
+
__name(isLength, "isLength");
|
|
11548
12064
|
function isObject(value) {
|
|
11549
12065
|
var type = typeof value;
|
|
11550
12066
|
return !!value && (type == "object" || type == "function");
|
|
11551
12067
|
}
|
|
12068
|
+
__name(isObject, "isObject");
|
|
11552
12069
|
function isObjectLike(value) {
|
|
11553
12070
|
return !!value && typeof value == "object";
|
|
11554
12071
|
}
|
|
12072
|
+
__name(isObjectLike, "isObjectLike");
|
|
11555
12073
|
function isSymbol(value) {
|
|
11556
12074
|
return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
|
|
11557
12075
|
}
|
|
12076
|
+
__name(isSymbol, "isSymbol");
|
|
11558
12077
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
11559
12078
|
function toString(value) {
|
|
11560
12079
|
return value == null ? "" : baseToString(value);
|
|
11561
12080
|
}
|
|
12081
|
+
__name(toString, "toString");
|
|
11562
12082
|
function get(object, path, defaultValue) {
|
|
11563
12083
|
var result = object == null ? void 0 : baseGet(object, path);
|
|
11564
12084
|
return result === void 0 ? defaultValue : result;
|
|
11565
12085
|
}
|
|
12086
|
+
__name(get, "get");
|
|
11566
12087
|
function hasIn(object, path) {
|
|
11567
12088
|
return object != null && hasPath(object, path, baseHasIn);
|
|
11568
12089
|
}
|
|
12090
|
+
__name(hasIn, "hasIn");
|
|
11569
12091
|
function keys(object) {
|
|
11570
12092
|
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
11571
12093
|
}
|
|
12094
|
+
__name(keys, "keys");
|
|
11572
12095
|
function identity(value) {
|
|
11573
12096
|
return value;
|
|
11574
12097
|
}
|
|
12098
|
+
__name(identity, "identity");
|
|
11575
12099
|
function property(path) {
|
|
11576
12100
|
return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
|
|
11577
12101
|
}
|
|
12102
|
+
__name(property, "property");
|
|
11578
12103
|
module.exports = sortBy;
|
|
11579
12104
|
}
|
|
11580
12105
|
});
|
|
@@ -11657,6 +12182,7 @@ var require_lodash3 = __commonJS({
|
|
|
11657
12182
|
}
|
|
11658
12183
|
return false;
|
|
11659
12184
|
}
|
|
12185
|
+
__name(arraySome, "arraySome");
|
|
11660
12186
|
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
11661
12187
|
var length = array.length, index = fromIndex + (fromRight ? 1 : -1);
|
|
11662
12188
|
while (fromRight ? index-- : ++index < length) {
|
|
@@ -11666,11 +12192,13 @@ var require_lodash3 = __commonJS({
|
|
|
11666
12192
|
}
|
|
11667
12193
|
return -1;
|
|
11668
12194
|
}
|
|
12195
|
+
__name(baseFindIndex, "baseFindIndex");
|
|
11669
12196
|
function baseProperty(key) {
|
|
11670
12197
|
return function(object) {
|
|
11671
12198
|
return object == null ? void 0 : object[key];
|
|
11672
12199
|
};
|
|
11673
12200
|
}
|
|
12201
|
+
__name(baseProperty, "baseProperty");
|
|
11674
12202
|
function baseTimes(n, iteratee) {
|
|
11675
12203
|
var index = -1, result = Array(n);
|
|
11676
12204
|
while (++index < n) {
|
|
@@ -11678,14 +12206,17 @@ var require_lodash3 = __commonJS({
|
|
|
11678
12206
|
}
|
|
11679
12207
|
return result;
|
|
11680
12208
|
}
|
|
12209
|
+
__name(baseTimes, "baseTimes");
|
|
11681
12210
|
function baseUnary(func) {
|
|
11682
12211
|
return function(value) {
|
|
11683
12212
|
return func(value);
|
|
11684
12213
|
};
|
|
11685
12214
|
}
|
|
12215
|
+
__name(baseUnary, "baseUnary");
|
|
11686
12216
|
function getValue(object, key) {
|
|
11687
12217
|
return object == null ? void 0 : object[key];
|
|
11688
12218
|
}
|
|
12219
|
+
__name(getValue, "getValue");
|
|
11689
12220
|
function isHostObject(value) {
|
|
11690
12221
|
var result = false;
|
|
11691
12222
|
if (value != null && typeof value.toString != "function") {
|
|
@@ -11696,6 +12227,7 @@ var require_lodash3 = __commonJS({
|
|
|
11696
12227
|
}
|
|
11697
12228
|
return result;
|
|
11698
12229
|
}
|
|
12230
|
+
__name(isHostObject, "isHostObject");
|
|
11699
12231
|
function mapToArray(map) {
|
|
11700
12232
|
var index = -1, result = Array(map.size);
|
|
11701
12233
|
map.forEach(function(value, key) {
|
|
@@ -11703,11 +12235,13 @@ var require_lodash3 = __commonJS({
|
|
|
11703
12235
|
});
|
|
11704
12236
|
return result;
|
|
11705
12237
|
}
|
|
12238
|
+
__name(mapToArray, "mapToArray");
|
|
11706
12239
|
function overArg(func, transform) {
|
|
11707
12240
|
return function(arg) {
|
|
11708
12241
|
return func(transform(arg));
|
|
11709
12242
|
};
|
|
11710
12243
|
}
|
|
12244
|
+
__name(overArg, "overArg");
|
|
11711
12245
|
function setToArray(set) {
|
|
11712
12246
|
var index = -1, result = Array(set.size);
|
|
11713
12247
|
set.forEach(function(value) {
|
|
@@ -11715,6 +12249,7 @@ var require_lodash3 = __commonJS({
|
|
|
11715
12249
|
});
|
|
11716
12250
|
return result;
|
|
11717
12251
|
}
|
|
12252
|
+
__name(setToArray, "setToArray");
|
|
11718
12253
|
var arrayProto = Array.prototype;
|
|
11719
12254
|
var funcProto = Function.prototype;
|
|
11720
12255
|
var objectProto = Object.prototype;
|
|
@@ -11758,12 +12293,15 @@ var require_lodash3 = __commonJS({
|
|
|
11758
12293
|
this.set(entry[0], entry[1]);
|
|
11759
12294
|
}
|
|
11760
12295
|
}
|
|
12296
|
+
__name(Hash, "Hash");
|
|
11761
12297
|
function hashClear() {
|
|
11762
12298
|
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
11763
12299
|
}
|
|
12300
|
+
__name(hashClear, "hashClear");
|
|
11764
12301
|
function hashDelete(key) {
|
|
11765
12302
|
return this.has(key) && delete this.__data__[key];
|
|
11766
12303
|
}
|
|
12304
|
+
__name(hashDelete, "hashDelete");
|
|
11767
12305
|
function hashGet(key) {
|
|
11768
12306
|
var data = this.__data__;
|
|
11769
12307
|
if (nativeCreate) {
|
|
@@ -11772,15 +12310,18 @@ var require_lodash3 = __commonJS({
|
|
|
11772
12310
|
}
|
|
11773
12311
|
return hasOwnProperty.call(data, key) ? data[key] : void 0;
|
|
11774
12312
|
}
|
|
12313
|
+
__name(hashGet, "hashGet");
|
|
11775
12314
|
function hashHas(key) {
|
|
11776
12315
|
var data = this.__data__;
|
|
11777
12316
|
return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
|
|
11778
12317
|
}
|
|
12318
|
+
__name(hashHas, "hashHas");
|
|
11779
12319
|
function hashSet(key, value) {
|
|
11780
12320
|
var data = this.__data__;
|
|
11781
12321
|
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
11782
12322
|
return this;
|
|
11783
12323
|
}
|
|
12324
|
+
__name(hashSet, "hashSet");
|
|
11784
12325
|
Hash.prototype.clear = hashClear;
|
|
11785
12326
|
Hash.prototype["delete"] = hashDelete;
|
|
11786
12327
|
Hash.prototype.get = hashGet;
|
|
@@ -11794,9 +12335,11 @@ var require_lodash3 = __commonJS({
|
|
|
11794
12335
|
this.set(entry[0], entry[1]);
|
|
11795
12336
|
}
|
|
11796
12337
|
}
|
|
12338
|
+
__name(ListCache, "ListCache");
|
|
11797
12339
|
function listCacheClear() {
|
|
11798
12340
|
this.__data__ = [];
|
|
11799
12341
|
}
|
|
12342
|
+
__name(listCacheClear, "listCacheClear");
|
|
11800
12343
|
function listCacheDelete(key) {
|
|
11801
12344
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
11802
12345
|
if (index < 0) {
|
|
@@ -11810,13 +12353,16 @@ var require_lodash3 = __commonJS({
|
|
|
11810
12353
|
}
|
|
11811
12354
|
return true;
|
|
11812
12355
|
}
|
|
12356
|
+
__name(listCacheDelete, "listCacheDelete");
|
|
11813
12357
|
function listCacheGet(key) {
|
|
11814
12358
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
11815
12359
|
return index < 0 ? void 0 : data[index][1];
|
|
11816
12360
|
}
|
|
12361
|
+
__name(listCacheGet, "listCacheGet");
|
|
11817
12362
|
function listCacheHas(key) {
|
|
11818
12363
|
return assocIndexOf(this.__data__, key) > -1;
|
|
11819
12364
|
}
|
|
12365
|
+
__name(listCacheHas, "listCacheHas");
|
|
11820
12366
|
function listCacheSet(key, value) {
|
|
11821
12367
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
11822
12368
|
if (index < 0) {
|
|
@@ -11826,6 +12372,7 @@ var require_lodash3 = __commonJS({
|
|
|
11826
12372
|
}
|
|
11827
12373
|
return this;
|
|
11828
12374
|
}
|
|
12375
|
+
__name(listCacheSet, "listCacheSet");
|
|
11829
12376
|
ListCache.prototype.clear = listCacheClear;
|
|
11830
12377
|
ListCache.prototype["delete"] = listCacheDelete;
|
|
11831
12378
|
ListCache.prototype.get = listCacheGet;
|
|
@@ -11839,6 +12386,7 @@ var require_lodash3 = __commonJS({
|
|
|
11839
12386
|
this.set(entry[0], entry[1]);
|
|
11840
12387
|
}
|
|
11841
12388
|
}
|
|
12389
|
+
__name(MapCache, "MapCache");
|
|
11842
12390
|
function mapCacheClear() {
|
|
11843
12391
|
this.__data__ = {
|
|
11844
12392
|
"hash": new Hash(),
|
|
@@ -11846,19 +12394,24 @@ var require_lodash3 = __commonJS({
|
|
|
11846
12394
|
"string": new Hash()
|
|
11847
12395
|
};
|
|
11848
12396
|
}
|
|
12397
|
+
__name(mapCacheClear, "mapCacheClear");
|
|
11849
12398
|
function mapCacheDelete(key) {
|
|
11850
12399
|
return getMapData(this, key)["delete"](key);
|
|
11851
12400
|
}
|
|
12401
|
+
__name(mapCacheDelete, "mapCacheDelete");
|
|
11852
12402
|
function mapCacheGet(key) {
|
|
11853
12403
|
return getMapData(this, key).get(key);
|
|
11854
12404
|
}
|
|
12405
|
+
__name(mapCacheGet, "mapCacheGet");
|
|
11855
12406
|
function mapCacheHas(key) {
|
|
11856
12407
|
return getMapData(this, key).has(key);
|
|
11857
12408
|
}
|
|
12409
|
+
__name(mapCacheHas, "mapCacheHas");
|
|
11858
12410
|
function mapCacheSet(key, value) {
|
|
11859
12411
|
getMapData(this, key).set(key, value);
|
|
11860
12412
|
return this;
|
|
11861
12413
|
}
|
|
12414
|
+
__name(mapCacheSet, "mapCacheSet");
|
|
11862
12415
|
MapCache.prototype.clear = mapCacheClear;
|
|
11863
12416
|
MapCache.prototype["delete"] = mapCacheDelete;
|
|
11864
12417
|
MapCache.prototype.get = mapCacheGet;
|
|
@@ -11871,30 +12424,38 @@ var require_lodash3 = __commonJS({
|
|
|
11871
12424
|
this.add(values[index]);
|
|
11872
12425
|
}
|
|
11873
12426
|
}
|
|
12427
|
+
__name(SetCache, "SetCache");
|
|
11874
12428
|
function setCacheAdd(value) {
|
|
11875
12429
|
this.__data__.set(value, HASH_UNDEFINED);
|
|
11876
12430
|
return this;
|
|
11877
12431
|
}
|
|
12432
|
+
__name(setCacheAdd, "setCacheAdd");
|
|
11878
12433
|
function setCacheHas(value) {
|
|
11879
12434
|
return this.__data__.has(value);
|
|
11880
12435
|
}
|
|
12436
|
+
__name(setCacheHas, "setCacheHas");
|
|
11881
12437
|
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
11882
12438
|
SetCache.prototype.has = setCacheHas;
|
|
11883
12439
|
function Stack(entries) {
|
|
11884
12440
|
this.__data__ = new ListCache(entries);
|
|
11885
12441
|
}
|
|
12442
|
+
__name(Stack, "Stack");
|
|
11886
12443
|
function stackClear() {
|
|
11887
12444
|
this.__data__ = new ListCache();
|
|
11888
12445
|
}
|
|
12446
|
+
__name(stackClear, "stackClear");
|
|
11889
12447
|
function stackDelete(key) {
|
|
11890
12448
|
return this.__data__["delete"](key);
|
|
11891
12449
|
}
|
|
12450
|
+
__name(stackDelete, "stackDelete");
|
|
11892
12451
|
function stackGet(key) {
|
|
11893
12452
|
return this.__data__.get(key);
|
|
11894
12453
|
}
|
|
12454
|
+
__name(stackGet, "stackGet");
|
|
11895
12455
|
function stackHas(key) {
|
|
11896
12456
|
return this.__data__.has(key);
|
|
11897
12457
|
}
|
|
12458
|
+
__name(stackHas, "stackHas");
|
|
11898
12459
|
function stackSet(key, value) {
|
|
11899
12460
|
var cache = this.__data__;
|
|
11900
12461
|
if (cache instanceof ListCache) {
|
|
@@ -11908,6 +12469,7 @@ var require_lodash3 = __commonJS({
|
|
|
11908
12469
|
cache.set(key, value);
|
|
11909
12470
|
return this;
|
|
11910
12471
|
}
|
|
12472
|
+
__name(stackSet, "stackSet");
|
|
11911
12473
|
Stack.prototype.clear = stackClear;
|
|
11912
12474
|
Stack.prototype["delete"] = stackDelete;
|
|
11913
12475
|
Stack.prototype.get = stackGet;
|
|
@@ -11923,6 +12485,7 @@ var require_lodash3 = __commonJS({
|
|
|
11923
12485
|
}
|
|
11924
12486
|
return result;
|
|
11925
12487
|
}
|
|
12488
|
+
__name(arrayLikeKeys, "arrayLikeKeys");
|
|
11926
12489
|
function assocIndexOf(array, key) {
|
|
11927
12490
|
var length = array.length;
|
|
11928
12491
|
while (length--) {
|
|
@@ -11932,6 +12495,7 @@ var require_lodash3 = __commonJS({
|
|
|
11932
12495
|
}
|
|
11933
12496
|
return -1;
|
|
11934
12497
|
}
|
|
12498
|
+
__name(assocIndexOf, "assocIndexOf");
|
|
11935
12499
|
function baseGet(object, path) {
|
|
11936
12500
|
path = isKey(path, object) ? [path] : castPath(path);
|
|
11937
12501
|
var index = 0, length = path.length;
|
|
@@ -11940,12 +12504,15 @@ var require_lodash3 = __commonJS({
|
|
|
11940
12504
|
}
|
|
11941
12505
|
return index && index == length ? object : void 0;
|
|
11942
12506
|
}
|
|
12507
|
+
__name(baseGet, "baseGet");
|
|
11943
12508
|
function baseGetTag(value) {
|
|
11944
12509
|
return objectToString.call(value);
|
|
11945
12510
|
}
|
|
12511
|
+
__name(baseGetTag, "baseGetTag");
|
|
11946
12512
|
function baseHasIn(object, key) {
|
|
11947
12513
|
return object != null && key in Object(object);
|
|
11948
12514
|
}
|
|
12515
|
+
__name(baseHasIn, "baseHasIn");
|
|
11949
12516
|
function baseIsEqual(value, other, customizer, bitmask, stack) {
|
|
11950
12517
|
if (value === other) {
|
|
11951
12518
|
return true;
|
|
@@ -11955,6 +12522,7 @@ var require_lodash3 = __commonJS({
|
|
|
11955
12522
|
}
|
|
11956
12523
|
return baseIsEqualDeep(value, other, baseIsEqual, customizer, bitmask, stack);
|
|
11957
12524
|
}
|
|
12525
|
+
__name(baseIsEqual, "baseIsEqual");
|
|
11958
12526
|
function baseIsEqualDeep(object, other, equalFunc, customizer, bitmask, stack) {
|
|
11959
12527
|
var objIsArr = isArray(object), othIsArr = isArray(other), objTag = arrayTag, othTag = arrayTag;
|
|
11960
12528
|
if (!objIsArr) {
|
|
@@ -11984,6 +12552,7 @@ var require_lodash3 = __commonJS({
|
|
|
11984
12552
|
stack || (stack = new Stack());
|
|
11985
12553
|
return equalObjects(object, other, equalFunc, customizer, bitmask, stack);
|
|
11986
12554
|
}
|
|
12555
|
+
__name(baseIsEqualDeep, "baseIsEqualDeep");
|
|
11987
12556
|
function baseIsMatch(object, source, matchData, customizer) {
|
|
11988
12557
|
var index = matchData.length, length = index, noCustomizer = !customizer;
|
|
11989
12558
|
if (object == null) {
|
|
@@ -12015,6 +12584,7 @@ var require_lodash3 = __commonJS({
|
|
|
12015
12584
|
}
|
|
12016
12585
|
return true;
|
|
12017
12586
|
}
|
|
12587
|
+
__name(baseIsMatch, "baseIsMatch");
|
|
12018
12588
|
function baseIsNative(value) {
|
|
12019
12589
|
if (!isObject(value) || isMasked(value)) {
|
|
12020
12590
|
return false;
|
|
@@ -12022,9 +12592,11 @@ var require_lodash3 = __commonJS({
|
|
|
12022
12592
|
var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
|
|
12023
12593
|
return pattern.test(toSource(value));
|
|
12024
12594
|
}
|
|
12595
|
+
__name(baseIsNative, "baseIsNative");
|
|
12025
12596
|
function baseIsTypedArray(value) {
|
|
12026
12597
|
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[objectToString.call(value)];
|
|
12027
12598
|
}
|
|
12599
|
+
__name(baseIsTypedArray, "baseIsTypedArray");
|
|
12028
12600
|
function baseIteratee(value) {
|
|
12029
12601
|
if (typeof value == "function") {
|
|
12030
12602
|
return value;
|
|
@@ -12037,6 +12609,7 @@ var require_lodash3 = __commonJS({
|
|
|
12037
12609
|
}
|
|
12038
12610
|
return property(value);
|
|
12039
12611
|
}
|
|
12612
|
+
__name(baseIteratee, "baseIteratee");
|
|
12040
12613
|
function baseKeys(object) {
|
|
12041
12614
|
if (!isPrototype(object)) {
|
|
12042
12615
|
return nativeKeys(object);
|
|
@@ -12049,6 +12622,7 @@ var require_lodash3 = __commonJS({
|
|
|
12049
12622
|
}
|
|
12050
12623
|
return result;
|
|
12051
12624
|
}
|
|
12625
|
+
__name(baseKeys, "baseKeys");
|
|
12052
12626
|
function baseMatches(source) {
|
|
12053
12627
|
var matchData = getMatchData(source);
|
|
12054
12628
|
if (matchData.length == 1 && matchData[0][2]) {
|
|
@@ -12058,6 +12632,7 @@ var require_lodash3 = __commonJS({
|
|
|
12058
12632
|
return object === source || baseIsMatch(object, source, matchData);
|
|
12059
12633
|
};
|
|
12060
12634
|
}
|
|
12635
|
+
__name(baseMatches, "baseMatches");
|
|
12061
12636
|
function baseMatchesProperty(path, srcValue) {
|
|
12062
12637
|
if (isKey(path) && isStrictComparable(srcValue)) {
|
|
12063
12638
|
return matchesStrictComparable(toKey(path), srcValue);
|
|
@@ -12067,11 +12642,13 @@ var require_lodash3 = __commonJS({
|
|
|
12067
12642
|
return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, void 0, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG);
|
|
12068
12643
|
};
|
|
12069
12644
|
}
|
|
12645
|
+
__name(baseMatchesProperty, "baseMatchesProperty");
|
|
12070
12646
|
function basePropertyDeep(path) {
|
|
12071
12647
|
return function(object) {
|
|
12072
12648
|
return baseGet(object, path);
|
|
12073
12649
|
};
|
|
12074
12650
|
}
|
|
12651
|
+
__name(basePropertyDeep, "basePropertyDeep");
|
|
12075
12652
|
function baseToString(value) {
|
|
12076
12653
|
if (typeof value == "string") {
|
|
12077
12654
|
return value;
|
|
@@ -12082,23 +12659,26 @@ var require_lodash3 = __commonJS({
|
|
|
12082
12659
|
var result = value + "";
|
|
12083
12660
|
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
12084
12661
|
}
|
|
12662
|
+
__name(baseToString, "baseToString");
|
|
12085
12663
|
function castPath(value) {
|
|
12086
12664
|
return isArray(value) ? value : stringToPath(value);
|
|
12087
12665
|
}
|
|
12666
|
+
__name(castPath, "castPath");
|
|
12088
12667
|
function createFind(findIndexFunc) {
|
|
12089
12668
|
return function(collection, predicate, fromIndex) {
|
|
12090
12669
|
var iterable = Object(collection);
|
|
12091
12670
|
if (!isArrayLike(collection)) {
|
|
12092
12671
|
var iteratee = baseIteratee(predicate, 3);
|
|
12093
12672
|
collection = keys(collection);
|
|
12094
|
-
predicate = function(key) {
|
|
12673
|
+
predicate = /* @__PURE__ */ __name(function(key) {
|
|
12095
12674
|
return iteratee(iterable[key], key, iterable);
|
|
12096
|
-
};
|
|
12675
|
+
}, "predicate");
|
|
12097
12676
|
}
|
|
12098
12677
|
var index = findIndexFunc(collection, predicate, fromIndex);
|
|
12099
12678
|
return index > -1 ? iterable[iteratee ? collection[index] : index] : void 0;
|
|
12100
12679
|
};
|
|
12101
12680
|
}
|
|
12681
|
+
__name(createFind, "createFind");
|
|
12102
12682
|
function equalArrays(array, other, equalFunc, customizer, bitmask, stack) {
|
|
12103
12683
|
var isPartial = bitmask & PARTIAL_COMPARE_FLAG, arrLength = array.length, othLength = other.length;
|
|
12104
12684
|
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
|
@@ -12141,6 +12721,7 @@ var require_lodash3 = __commonJS({
|
|
|
12141
12721
|
stack["delete"](other);
|
|
12142
12722
|
return result;
|
|
12143
12723
|
}
|
|
12724
|
+
__name(equalArrays, "equalArrays");
|
|
12144
12725
|
function equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) {
|
|
12145
12726
|
switch (tag) {
|
|
12146
12727
|
case dataViewTag:
|
|
@@ -12187,6 +12768,7 @@ var require_lodash3 = __commonJS({
|
|
|
12187
12768
|
}
|
|
12188
12769
|
return false;
|
|
12189
12770
|
}
|
|
12771
|
+
__name(equalByTag, "equalByTag");
|
|
12190
12772
|
function equalObjects(object, other, equalFunc, customizer, bitmask, stack) {
|
|
12191
12773
|
var isPartial = bitmask & PARTIAL_COMPARE_FLAG, objProps = keys(object), objLength = objProps.length, othProps = keys(other), othLength = othProps.length;
|
|
12192
12774
|
if (objLength != othLength && !isPartial) {
|
|
@@ -12229,10 +12811,12 @@ var require_lodash3 = __commonJS({
|
|
|
12229
12811
|
stack["delete"](other);
|
|
12230
12812
|
return result;
|
|
12231
12813
|
}
|
|
12814
|
+
__name(equalObjects, "equalObjects");
|
|
12232
12815
|
function getMapData(map, key) {
|
|
12233
12816
|
var data = map.__data__;
|
|
12234
12817
|
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
12235
12818
|
}
|
|
12819
|
+
__name(getMapData, "getMapData");
|
|
12236
12820
|
function getMatchData(object) {
|
|
12237
12821
|
var result = keys(object), length = result.length;
|
|
12238
12822
|
while (length--) {
|
|
@@ -12241,13 +12825,15 @@ var require_lodash3 = __commonJS({
|
|
|
12241
12825
|
}
|
|
12242
12826
|
return result;
|
|
12243
12827
|
}
|
|
12828
|
+
__name(getMatchData, "getMatchData");
|
|
12244
12829
|
function getNative(object, key) {
|
|
12245
12830
|
var value = getValue(object, key);
|
|
12246
12831
|
return baseIsNative(value) ? value : void 0;
|
|
12247
12832
|
}
|
|
12833
|
+
__name(getNative, "getNative");
|
|
12248
12834
|
var getTag = baseGetTag;
|
|
12249
12835
|
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
|
|
12250
|
-
getTag = function(value) {
|
|
12836
|
+
getTag = /* @__PURE__ */ __name(function(value) {
|
|
12251
12837
|
var result = objectToString.call(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : void 0;
|
|
12252
12838
|
if (ctorString) {
|
|
12253
12839
|
switch (ctorString) {
|
|
@@ -12264,7 +12850,7 @@ var require_lodash3 = __commonJS({
|
|
|
12264
12850
|
}
|
|
12265
12851
|
}
|
|
12266
12852
|
return result;
|
|
12267
|
-
};
|
|
12853
|
+
}, "getTag");
|
|
12268
12854
|
}
|
|
12269
12855
|
function hasPath(object, path, hasFunc) {
|
|
12270
12856
|
path = isKey(path, object) ? [path] : castPath(path);
|
|
@@ -12282,10 +12868,12 @@ var require_lodash3 = __commonJS({
|
|
|
12282
12868
|
var length = object ? object.length : 0;
|
|
12283
12869
|
return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object));
|
|
12284
12870
|
}
|
|
12871
|
+
__name(hasPath, "hasPath");
|
|
12285
12872
|
function isIndex(value, length) {
|
|
12286
12873
|
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
12287
12874
|
return !!length && (typeof value == "number" || reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
12288
12875
|
}
|
|
12876
|
+
__name(isIndex, "isIndex");
|
|
12289
12877
|
function isKey(value, object) {
|
|
12290
12878
|
if (isArray(value)) {
|
|
12291
12879
|
return false;
|
|
@@ -12296,20 +12884,25 @@ var require_lodash3 = __commonJS({
|
|
|
12296
12884
|
}
|
|
12297
12885
|
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
12298
12886
|
}
|
|
12887
|
+
__name(isKey, "isKey");
|
|
12299
12888
|
function isKeyable(value) {
|
|
12300
12889
|
var type = typeof value;
|
|
12301
12890
|
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
12302
12891
|
}
|
|
12892
|
+
__name(isKeyable, "isKeyable");
|
|
12303
12893
|
function isMasked(func) {
|
|
12304
12894
|
return !!maskSrcKey && maskSrcKey in func;
|
|
12305
12895
|
}
|
|
12896
|
+
__name(isMasked, "isMasked");
|
|
12306
12897
|
function isPrototype(value) {
|
|
12307
12898
|
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
|
|
12308
12899
|
return value === proto;
|
|
12309
12900
|
}
|
|
12901
|
+
__name(isPrototype, "isPrototype");
|
|
12310
12902
|
function isStrictComparable(value) {
|
|
12311
12903
|
return value === value && !isObject(value);
|
|
12312
12904
|
}
|
|
12905
|
+
__name(isStrictComparable, "isStrictComparable");
|
|
12313
12906
|
function matchesStrictComparable(key, srcValue) {
|
|
12314
12907
|
return function(object) {
|
|
12315
12908
|
if (object == null) {
|
|
@@ -12318,6 +12911,7 @@ var require_lodash3 = __commonJS({
|
|
|
12318
12911
|
return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
|
|
12319
12912
|
};
|
|
12320
12913
|
}
|
|
12914
|
+
__name(matchesStrictComparable, "matchesStrictComparable");
|
|
12321
12915
|
var stringToPath = memoize(function(string) {
|
|
12322
12916
|
string = toString(string);
|
|
12323
12917
|
var result = [];
|
|
@@ -12336,6 +12930,7 @@ var require_lodash3 = __commonJS({
|
|
|
12336
12930
|
var result = value + "";
|
|
12337
12931
|
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
12338
12932
|
}
|
|
12933
|
+
__name(toKey, "toKey");
|
|
12339
12934
|
function toSource(func) {
|
|
12340
12935
|
if (func != null) {
|
|
12341
12936
|
try {
|
|
@@ -12349,6 +12944,7 @@ var require_lodash3 = __commonJS({
|
|
|
12349
12944
|
}
|
|
12350
12945
|
return "";
|
|
12351
12946
|
}
|
|
12947
|
+
__name(toSource, "toSource");
|
|
12352
12948
|
function findLastIndex(array, predicate, fromIndex) {
|
|
12353
12949
|
var length = array ? array.length : 0;
|
|
12354
12950
|
if (!length) {
|
|
@@ -12361,12 +12957,13 @@ var require_lodash3 = __commonJS({
|
|
|
12361
12957
|
}
|
|
12362
12958
|
return baseFindIndex(array, baseIteratee(predicate, 3), index, true);
|
|
12363
12959
|
}
|
|
12960
|
+
__name(findLastIndex, "findLastIndex");
|
|
12364
12961
|
var findLast = createFind(findLastIndex);
|
|
12365
12962
|
function memoize(func, resolver) {
|
|
12366
12963
|
if (typeof func != "function" || resolver && typeof resolver != "function") {
|
|
12367
12964
|
throw new TypeError(FUNC_ERROR_TEXT);
|
|
12368
12965
|
}
|
|
12369
|
-
var memoized = function() {
|
|
12966
|
+
var memoized = /* @__PURE__ */ __name(function() {
|
|
12370
12967
|
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
12371
12968
|
if (cache.has(key)) {
|
|
12372
12969
|
return cache.get(key);
|
|
@@ -12374,41 +12971,51 @@ var require_lodash3 = __commonJS({
|
|
|
12374
12971
|
var result = func.apply(this, args);
|
|
12375
12972
|
memoized.cache = cache.set(key, result);
|
|
12376
12973
|
return result;
|
|
12377
|
-
};
|
|
12974
|
+
}, "memoized");
|
|
12378
12975
|
memoized.cache = new (memoize.Cache || MapCache)();
|
|
12379
12976
|
return memoized;
|
|
12380
12977
|
}
|
|
12978
|
+
__name(memoize, "memoize");
|
|
12381
12979
|
memoize.Cache = MapCache;
|
|
12382
12980
|
function eq(value, other) {
|
|
12383
12981
|
return value === other || value !== value && other !== other;
|
|
12384
12982
|
}
|
|
12983
|
+
__name(eq, "eq");
|
|
12385
12984
|
function isArguments(value) {
|
|
12386
12985
|
return isArrayLikeObject(value) && hasOwnProperty.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString.call(value) == argsTag);
|
|
12387
12986
|
}
|
|
12987
|
+
__name(isArguments, "isArguments");
|
|
12388
12988
|
var isArray = Array.isArray;
|
|
12389
12989
|
function isArrayLike(value) {
|
|
12390
12990
|
return value != null && isLength(value.length) && !isFunction(value);
|
|
12391
12991
|
}
|
|
12992
|
+
__name(isArrayLike, "isArrayLike");
|
|
12392
12993
|
function isArrayLikeObject(value) {
|
|
12393
12994
|
return isObjectLike(value) && isArrayLike(value);
|
|
12394
12995
|
}
|
|
12996
|
+
__name(isArrayLikeObject, "isArrayLikeObject");
|
|
12395
12997
|
function isFunction(value) {
|
|
12396
12998
|
var tag = isObject(value) ? objectToString.call(value) : "";
|
|
12397
12999
|
return tag == funcTag || tag == genTag;
|
|
12398
13000
|
}
|
|
13001
|
+
__name(isFunction, "isFunction");
|
|
12399
13002
|
function isLength(value) {
|
|
12400
13003
|
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
12401
13004
|
}
|
|
13005
|
+
__name(isLength, "isLength");
|
|
12402
13006
|
function isObject(value) {
|
|
12403
13007
|
var type = typeof value;
|
|
12404
13008
|
return !!value && (type == "object" || type == "function");
|
|
12405
13009
|
}
|
|
13010
|
+
__name(isObject, "isObject");
|
|
12406
13011
|
function isObjectLike(value) {
|
|
12407
13012
|
return !!value && typeof value == "object";
|
|
12408
13013
|
}
|
|
13014
|
+
__name(isObjectLike, "isObjectLike");
|
|
12409
13015
|
function isSymbol(value) {
|
|
12410
13016
|
return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
|
|
12411
13017
|
}
|
|
13018
|
+
__name(isSymbol, "isSymbol");
|
|
12412
13019
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
12413
13020
|
function toFinite(value) {
|
|
12414
13021
|
if (!value) {
|
|
@@ -12421,10 +13028,12 @@ var require_lodash3 = __commonJS({
|
|
|
12421
13028
|
}
|
|
12422
13029
|
return value === value ? value : 0;
|
|
12423
13030
|
}
|
|
13031
|
+
__name(toFinite, "toFinite");
|
|
12424
13032
|
function toInteger(value) {
|
|
12425
13033
|
var result = toFinite(value), remainder = result % 1;
|
|
12426
13034
|
return result === result ? remainder ? result - remainder : result : 0;
|
|
12427
13035
|
}
|
|
13036
|
+
__name(toInteger, "toInteger");
|
|
12428
13037
|
function toNumber(value) {
|
|
12429
13038
|
if (typeof value == "number") {
|
|
12430
13039
|
return value;
|
|
@@ -12443,25 +13052,32 @@ var require_lodash3 = __commonJS({
|
|
|
12443
13052
|
var isBinary = reIsBinary.test(value);
|
|
12444
13053
|
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
12445
13054
|
}
|
|
13055
|
+
__name(toNumber, "toNumber");
|
|
12446
13056
|
function toString(value) {
|
|
12447
13057
|
return value == null ? "" : baseToString(value);
|
|
12448
13058
|
}
|
|
13059
|
+
__name(toString, "toString");
|
|
12449
13060
|
function get(object, path, defaultValue) {
|
|
12450
13061
|
var result = object == null ? void 0 : baseGet(object, path);
|
|
12451
13062
|
return result === void 0 ? defaultValue : result;
|
|
12452
13063
|
}
|
|
13064
|
+
__name(get, "get");
|
|
12453
13065
|
function hasIn(object, path) {
|
|
12454
13066
|
return object != null && hasPath(object, path, baseHasIn);
|
|
12455
13067
|
}
|
|
13068
|
+
__name(hasIn, "hasIn");
|
|
12456
13069
|
function keys(object) {
|
|
12457
13070
|
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
12458
13071
|
}
|
|
13072
|
+
__name(keys, "keys");
|
|
12459
13073
|
function identity(value) {
|
|
12460
13074
|
return value;
|
|
12461
13075
|
}
|
|
13076
|
+
__name(identity, "identity");
|
|
12462
13077
|
function property(path) {
|
|
12463
13078
|
return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
|
|
12464
13079
|
}
|
|
13080
|
+
__name(property, "property");
|
|
12465
13081
|
module.exports = findLast;
|
|
12466
13082
|
}
|
|
12467
13083
|
});
|
|
@@ -12485,6 +13101,7 @@ var require_ticket2 = __commonJS({
|
|
|
12485
13101
|
return nanoid3(len);
|
|
12486
13102
|
}
|
|
12487
13103
|
};
|
|
13104
|
+
__name(Ticket, "Ticket");
|
|
12488
13105
|
Object.defineProperty(Ticket.prototype, "schema", {
|
|
12489
13106
|
value: schema
|
|
12490
13107
|
});
|
|
@@ -12593,6 +13210,7 @@ var require_gateway2 = __commonJS({
|
|
|
12593
13210
|
super(data);
|
|
12594
13211
|
}
|
|
12595
13212
|
};
|
|
13213
|
+
__name(Gateway, "Gateway");
|
|
12596
13214
|
Object.defineProperty(Gateway.prototype, "schema", {
|
|
12597
13215
|
value: schema
|
|
12598
13216
|
});
|
|
@@ -12663,6 +13281,7 @@ var require_product2 = __commonJS({
|
|
|
12663
13281
|
super(data);
|
|
12664
13282
|
}
|
|
12665
13283
|
};
|
|
13284
|
+
__name(Product, "Product");
|
|
12666
13285
|
Object.defineProperty(Product.prototype, "schema", {
|
|
12667
13286
|
value: schema
|
|
12668
13287
|
});
|
|
@@ -12740,6 +13359,7 @@ var require_discoveredDevice2 = __commonJS({
|
|
|
12740
13359
|
super(data);
|
|
12741
13360
|
}
|
|
12742
13361
|
};
|
|
13362
|
+
__name(DiscoveredDevice, "DiscoveredDevice");
|
|
12743
13363
|
Object.defineProperty(DiscoveredDevice.prototype, "schema", {
|
|
12744
13364
|
value: schema
|
|
12745
13365
|
});
|
|
@@ -12802,6 +13422,7 @@ var require_credential2 = __commonJS({
|
|
|
12802
13422
|
super(data);
|
|
12803
13423
|
}
|
|
12804
13424
|
};
|
|
13425
|
+
__name(Credential, "Credential");
|
|
12805
13426
|
Object.defineProperty(Credential.prototype, "schema", {
|
|
12806
13427
|
value: schema
|
|
12807
13428
|
});
|
|
@@ -12866,6 +13487,7 @@ var require_shortLink2 = __commonJS({
|
|
|
12866
13487
|
super(data);
|
|
12867
13488
|
}
|
|
12868
13489
|
};
|
|
13490
|
+
__name(ShortLink, "ShortLink");
|
|
12869
13491
|
Object.defineProperty(ShortLink.prototype, "schema", {
|
|
12870
13492
|
value: schema
|
|
12871
13493
|
});
|
|
@@ -12932,6 +13554,7 @@ var require_customer2 = __commonJS({
|
|
|
12932
13554
|
super(data);
|
|
12933
13555
|
}
|
|
12934
13556
|
};
|
|
13557
|
+
__name(Customer, "Customer");
|
|
12935
13558
|
Object.defineProperty(Customer.prototype, "schema", {
|
|
12936
13559
|
value: schema
|
|
12937
13560
|
});
|
|
@@ -13145,6 +13768,7 @@ var require_property2 = __commonJS({
|
|
|
13145
13768
|
super(data);
|
|
13146
13769
|
}
|
|
13147
13770
|
};
|
|
13771
|
+
__name(Property, "Property");
|
|
13148
13772
|
Object.defineProperty(Property.prototype, "schema", {
|
|
13149
13773
|
value: schema
|
|
13150
13774
|
});
|