@dereekb/model 11.1.7 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +239 -304
- package/index.esm.d.ts +1 -0
- package/index.esm.js +244 -422
- package/package.json +8 -6
package/index.cjs.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var util = require('@dereekb/util');
|
|
6
4
|
var classTransformer = require('class-transformer');
|
|
7
5
|
var classValidator = require('class-validator');
|
|
@@ -28,22 +26,22 @@ var functionBindNative = !fails$f(function () {
|
|
|
28
26
|
var NATIVE_BIND$3 = functionBindNative;
|
|
29
27
|
|
|
30
28
|
var FunctionPrototype$2 = Function.prototype;
|
|
31
|
-
var call$
|
|
32
|
-
var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$
|
|
29
|
+
var call$f = FunctionPrototype$2.call;
|
|
30
|
+
var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$f, call$f);
|
|
33
31
|
|
|
34
32
|
var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) {
|
|
35
33
|
return function () {
|
|
36
|
-
return call$
|
|
34
|
+
return call$f.apply(fn, arguments);
|
|
37
35
|
};
|
|
38
36
|
};
|
|
39
37
|
|
|
40
38
|
var uncurryThis$f = functionUncurryThis;
|
|
41
39
|
|
|
42
|
-
var toString$
|
|
40
|
+
var toString$4 = uncurryThis$f({}.toString);
|
|
43
41
|
var stringSlice$2 = uncurryThis$f(''.slice);
|
|
44
42
|
|
|
45
43
|
var classofRaw$2 = function (it) {
|
|
46
|
-
return stringSlice$2(toString$
|
|
44
|
+
return stringSlice$2(toString$4(it), 8, -1);
|
|
47
45
|
};
|
|
48
46
|
|
|
49
47
|
var uncurryThis$e = functionUncurryThis;
|
|
@@ -74,17 +72,17 @@ var $TypeError$c = TypeError;
|
|
|
74
72
|
|
|
75
73
|
// `RequireObjectCoercible` abstract operation
|
|
76
74
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
77
|
-
var requireObjectCoercible$
|
|
75
|
+
var requireObjectCoercible$3 = function (it) {
|
|
78
76
|
if (isNullOrUndefined$3(it)) throw new $TypeError$c("Can't call method on " + it);
|
|
79
77
|
return it;
|
|
80
78
|
};
|
|
81
79
|
|
|
82
80
|
// toObject with fallback for non-array-like ES3 strings
|
|
83
81
|
var IndexedObject$1 = indexedObject;
|
|
84
|
-
var requireObjectCoercible$
|
|
82
|
+
var requireObjectCoercible$2 = requireObjectCoercible$3;
|
|
85
83
|
|
|
86
84
|
var toIndexedObject$5 = function (it) {
|
|
87
|
-
return IndexedObject$1(requireObjectCoercible$
|
|
85
|
+
return IndexedObject$1(requireObjectCoercible$2(it));
|
|
88
86
|
};
|
|
89
87
|
|
|
90
88
|
var check = function (it) {
|
|
@@ -92,7 +90,7 @@ var check = function (it) {
|
|
|
92
90
|
};
|
|
93
91
|
|
|
94
92
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
95
|
-
var global$
|
|
93
|
+
var global$l =
|
|
96
94
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
97
95
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
98
96
|
check(typeof window == 'object' && window) ||
|
|
@@ -103,49 +101,51 @@ var global$m =
|
|
|
103
101
|
// eslint-disable-next-line no-new-func -- fallback
|
|
104
102
|
(function () { return this; })() || Function('return this')();
|
|
105
103
|
|
|
106
|
-
var
|
|
104
|
+
var sharedStore = {exports: {}};
|
|
107
105
|
|
|
108
|
-
var global$
|
|
106
|
+
var global$k = global$l;
|
|
109
107
|
|
|
110
108
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
111
109
|
var defineProperty$6 = Object.defineProperty;
|
|
112
110
|
|
|
113
111
|
var defineGlobalProperty$3 = function (key, value) {
|
|
114
112
|
try {
|
|
115
|
-
defineProperty$6(global$
|
|
113
|
+
defineProperty$6(global$k, key, { value: value, configurable: true, writable: true });
|
|
116
114
|
} catch (error) {
|
|
117
|
-
global$
|
|
115
|
+
global$k[key] = value;
|
|
118
116
|
} return value;
|
|
119
117
|
};
|
|
120
118
|
|
|
121
|
-
var
|
|
119
|
+
var globalThis$1 = global$l;
|
|
122
120
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
123
121
|
|
|
124
122
|
var SHARED = '__core-js_shared__';
|
|
125
|
-
var store$3 =
|
|
126
|
-
|
|
127
|
-
var sharedStore = store$3;
|
|
123
|
+
var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
128
124
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
(shared$4.exports = function (key, value) {
|
|
132
|
-
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
133
|
-
})('versions', []).push({
|
|
134
|
-
version: '3.35.1',
|
|
125
|
+
(store$3.versions || (store$3.versions = [])).push({
|
|
126
|
+
version: '3.36.1',
|
|
135
127
|
mode: 'global',
|
|
136
128
|
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
137
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
129
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
|
|
138
130
|
source: 'https://github.com/zloirock/core-js'
|
|
139
131
|
});
|
|
140
132
|
|
|
141
|
-
var
|
|
133
|
+
var sharedStoreExports = sharedStore.exports;
|
|
134
|
+
|
|
135
|
+
var store$2 = sharedStoreExports;
|
|
136
|
+
|
|
137
|
+
var shared$4 = function (key, value) {
|
|
138
|
+
return store$2[key] || (store$2[key] = value || {});
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
var requireObjectCoercible$1 = requireObjectCoercible$3;
|
|
142
142
|
|
|
143
143
|
var $Object$3 = Object;
|
|
144
144
|
|
|
145
145
|
// `ToObject` abstract operation
|
|
146
146
|
// https://tc39.es/ecma262/#sec-toobject
|
|
147
147
|
var toObject$3 = function (argument) {
|
|
148
|
-
return $Object$3(requireObjectCoercible(argument));
|
|
148
|
+
return $Object$3(requireObjectCoercible$1(argument));
|
|
149
149
|
};
|
|
150
150
|
|
|
151
151
|
var uncurryThis$d = functionUncurryThis;
|
|
@@ -164,15 +164,15 @@ var uncurryThis$c = functionUncurryThis;
|
|
|
164
164
|
|
|
165
165
|
var id = 0;
|
|
166
166
|
var postfix = Math.random();
|
|
167
|
-
var toString$
|
|
167
|
+
var toString$3 = uncurryThis$c(1.0.toString);
|
|
168
168
|
|
|
169
169
|
var uid$2 = function (key) {
|
|
170
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$
|
|
170
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
|
|
171
171
|
};
|
|
172
172
|
|
|
173
173
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
174
174
|
|
|
175
|
-
var global$j = global$
|
|
175
|
+
var global$j = global$l;
|
|
176
176
|
var userAgent$3 = engineUserAgent;
|
|
177
177
|
|
|
178
178
|
var process$3 = global$j.process;
|
|
@@ -203,7 +203,7 @@ var engineV8Version = version;
|
|
|
203
203
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
204
204
|
var V8_VERSION$1 = engineV8Version;
|
|
205
205
|
var fails$d = fails$g;
|
|
206
|
-
var global$i = global$
|
|
206
|
+
var global$i = global$l;
|
|
207
207
|
|
|
208
208
|
var $String$5 = global$i.String;
|
|
209
209
|
|
|
@@ -226,8 +226,8 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
226
226
|
&& !Symbol.sham
|
|
227
227
|
&& typeof Symbol.iterator == 'symbol';
|
|
228
228
|
|
|
229
|
-
var global$h = global$
|
|
230
|
-
var shared$3 = shared$4
|
|
229
|
+
var global$h = global$l;
|
|
230
|
+
var shared$3 = shared$4;
|
|
231
231
|
var hasOwn$9 = hasOwnProperty_1;
|
|
232
232
|
var uid$1 = uid$2;
|
|
233
233
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
@@ -251,26 +251,26 @@ var documentAll = typeof document == 'object' && document.all;
|
|
|
251
251
|
// `IsCallable` abstract operation
|
|
252
252
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
253
253
|
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
254
|
-
var isCallable$
|
|
254
|
+
var isCallable$k = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
255
255
|
return typeof argument == 'function' || argument === documentAll;
|
|
256
256
|
} : function (argument) {
|
|
257
257
|
return typeof argument == 'function';
|
|
258
258
|
};
|
|
259
259
|
|
|
260
|
-
var isCallable$
|
|
260
|
+
var isCallable$j = isCallable$k;
|
|
261
261
|
|
|
262
|
-
var isObject$
|
|
263
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
262
|
+
var isObject$a = function (it) {
|
|
263
|
+
return typeof it == 'object' ? it !== null : isCallable$j(it);
|
|
264
264
|
};
|
|
265
265
|
|
|
266
|
-
var isObject$
|
|
266
|
+
var isObject$9 = isObject$a;
|
|
267
267
|
|
|
268
268
|
var $String$4 = String;
|
|
269
269
|
var $TypeError$b = TypeError;
|
|
270
270
|
|
|
271
271
|
// `Assert: Type(argument) is Object`
|
|
272
272
|
var anObject$b = function (argument) {
|
|
273
|
-
if (isObject$
|
|
273
|
+
if (isObject$9(argument)) return argument;
|
|
274
274
|
throw new $TypeError$b($String$4(argument) + ' is not an object');
|
|
275
275
|
};
|
|
276
276
|
|
|
@@ -299,12 +299,12 @@ var v8PrototypeDefineBug = DESCRIPTORS$b && fails$b(function () {
|
|
|
299
299
|
|
|
300
300
|
var objectDefineProperty = {};
|
|
301
301
|
|
|
302
|
-
var global$g = global$
|
|
303
|
-
var isObject$
|
|
302
|
+
var global$g = global$l;
|
|
303
|
+
var isObject$8 = isObject$a;
|
|
304
304
|
|
|
305
305
|
var document$3 = global$g.document;
|
|
306
306
|
// typeof document.createElement is 'object' in old IE
|
|
307
|
-
var EXISTS$1 = isObject$
|
|
307
|
+
var EXISTS$1 = isObject$8(document$3) && isObject$8(document$3.createElement);
|
|
308
308
|
|
|
309
309
|
var documentCreateElement$2 = function (it) {
|
|
310
310
|
return EXISTS$1 ? document$3.createElement(it) : {};
|
|
@@ -324,17 +324,17 @@ var ie8DomDefine = !DESCRIPTORS$a && !fails$a(function () {
|
|
|
324
324
|
|
|
325
325
|
var NATIVE_BIND$2 = functionBindNative;
|
|
326
326
|
|
|
327
|
-
var call$
|
|
327
|
+
var call$e = Function.prototype.call;
|
|
328
328
|
|
|
329
|
-
var functionCall = NATIVE_BIND$2 ? call$
|
|
330
|
-
return call$
|
|
329
|
+
var functionCall = NATIVE_BIND$2 ? call$e.bind(call$e) : function () {
|
|
330
|
+
return call$e.apply(call$e, arguments);
|
|
331
331
|
};
|
|
332
332
|
|
|
333
|
-
var global$f = global$
|
|
334
|
-
var isCallable$
|
|
333
|
+
var global$f = global$l;
|
|
334
|
+
var isCallable$i = isCallable$k;
|
|
335
335
|
|
|
336
336
|
var aFunction = function (argument) {
|
|
337
|
-
return isCallable$
|
|
337
|
+
return isCallable$i(argument) ? argument : undefined;
|
|
338
338
|
};
|
|
339
339
|
|
|
340
340
|
var getBuiltIn$7 = function (namespace, method) {
|
|
@@ -346,7 +346,7 @@ var uncurryThis$b = functionUncurryThis;
|
|
|
346
346
|
var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
|
|
347
347
|
|
|
348
348
|
var getBuiltIn$6 = getBuiltIn$7;
|
|
349
|
-
var isCallable$
|
|
349
|
+
var isCallable$h = isCallable$k;
|
|
350
350
|
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
351
351
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
352
352
|
|
|
@@ -356,7 +356,7 @@ var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
|
|
|
356
356
|
return typeof it == 'symbol';
|
|
357
357
|
} : function (it) {
|
|
358
358
|
var $Symbol = getBuiltIn$6('Symbol');
|
|
359
|
-
return isCallable$
|
|
359
|
+
return isCallable$h($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$2(it));
|
|
360
360
|
};
|
|
361
361
|
|
|
362
362
|
var $String$3 = String;
|
|
@@ -369,14 +369,14 @@ var tryToString$4 = function (argument) {
|
|
|
369
369
|
}
|
|
370
370
|
};
|
|
371
371
|
|
|
372
|
-
var isCallable$
|
|
372
|
+
var isCallable$g = isCallable$k;
|
|
373
373
|
var tryToString$3 = tryToString$4;
|
|
374
374
|
|
|
375
375
|
var $TypeError$a = TypeError;
|
|
376
376
|
|
|
377
377
|
// `Assert: IsCallable(argument) is true`
|
|
378
378
|
var aCallable$8 = function (argument) {
|
|
379
|
-
if (isCallable$
|
|
379
|
+
if (isCallable$g(argument)) return argument;
|
|
380
380
|
throw new $TypeError$a(tryToString$3(argument) + ' is not a function');
|
|
381
381
|
};
|
|
382
382
|
|
|
@@ -390,9 +390,9 @@ var getMethod$3 = function (V, P) {
|
|
|
390
390
|
return isNullOrUndefined$2(func) ? undefined : aCallable$7(func);
|
|
391
391
|
};
|
|
392
392
|
|
|
393
|
-
var call$
|
|
394
|
-
var isCallable$
|
|
395
|
-
var isObject$
|
|
393
|
+
var call$d = functionCall;
|
|
394
|
+
var isCallable$f = isCallable$k;
|
|
395
|
+
var isObject$7 = isObject$a;
|
|
396
396
|
|
|
397
397
|
var $TypeError$9 = TypeError;
|
|
398
398
|
|
|
@@ -400,14 +400,14 @@ var $TypeError$9 = TypeError;
|
|
|
400
400
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
401
401
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
402
402
|
var fn, val;
|
|
403
|
-
if (pref === 'string' && isCallable$
|
|
404
|
-
if (isCallable$
|
|
405
|
-
if (pref !== 'string' && isCallable$
|
|
403
|
+
if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$7(val = call$d(fn, input))) return val;
|
|
404
|
+
if (isCallable$f(fn = input.valueOf) && !isObject$7(val = call$d(fn, input))) return val;
|
|
405
|
+
if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$7(val = call$d(fn, input))) return val;
|
|
406
406
|
throw new $TypeError$9("Can't convert object to primitive value");
|
|
407
407
|
};
|
|
408
408
|
|
|
409
|
-
var call$
|
|
410
|
-
var isObject$
|
|
409
|
+
var call$c = functionCall;
|
|
410
|
+
var isObject$6 = isObject$a;
|
|
411
411
|
var isSymbol$1 = isSymbol$2;
|
|
412
412
|
var getMethod$2 = getMethod$3;
|
|
413
413
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
@@ -419,13 +419,13 @@ var TO_PRIMITIVE = wellKnownSymbol$d('toPrimitive');
|
|
|
419
419
|
// `ToPrimitive` abstract operation
|
|
420
420
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
421
421
|
var toPrimitive$1 = function (input, pref) {
|
|
422
|
-
if (!isObject$
|
|
422
|
+
if (!isObject$6(input) || isSymbol$1(input)) return input;
|
|
423
423
|
var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
|
|
424
424
|
var result;
|
|
425
425
|
if (exoticToPrim) {
|
|
426
426
|
if (pref === undefined) pref = 'default';
|
|
427
|
-
result = call$
|
|
428
|
-
if (!isObject$
|
|
427
|
+
result = call$c(exoticToPrim, input, pref);
|
|
428
|
+
if (!isObject$6(result) || isSymbol$1(result)) return result;
|
|
429
429
|
throw new $TypeError$8("Can't convert object to primitive value");
|
|
430
430
|
}
|
|
431
431
|
if (pref === undefined) pref = 'number';
|
|
@@ -548,6 +548,7 @@ var createMethod = function (IS_INCLUDES) {
|
|
|
548
548
|
return function ($this, el, fromIndex) {
|
|
549
549
|
var O = toIndexedObject$4($this);
|
|
550
550
|
var length = lengthOfArrayLike$1(O);
|
|
551
|
+
if (length === 0) return !IS_INCLUDES && -1;
|
|
551
552
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
552
553
|
var value;
|
|
553
554
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -641,7 +642,7 @@ var getBuiltIn$5 = getBuiltIn$7;
|
|
|
641
642
|
|
|
642
643
|
var html$2 = getBuiltIn$5('document', 'documentElement');
|
|
643
644
|
|
|
644
|
-
var shared$2 = shared$4
|
|
645
|
+
var shared$2 = shared$4;
|
|
645
646
|
var uid = uid$2;
|
|
646
647
|
|
|
647
648
|
var keys = shared$2('keys');
|
|
@@ -757,12 +758,12 @@ var addToUnscopables$1 = function (key) {
|
|
|
757
758
|
|
|
758
759
|
var iterators = {};
|
|
759
760
|
|
|
760
|
-
var global$e = global$
|
|
761
|
-
var isCallable$
|
|
761
|
+
var global$e = global$l;
|
|
762
|
+
var isCallable$e = isCallable$k;
|
|
762
763
|
|
|
763
764
|
var WeakMap$1 = global$e.WeakMap;
|
|
764
765
|
|
|
765
|
-
var weakMapBasicDetection = isCallable$
|
|
766
|
+
var weakMapBasicDetection = isCallable$e(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
766
767
|
|
|
767
768
|
var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
768
769
|
return {
|
|
@@ -785,11 +786,11 @@ var createNonEnumerableProperty$4 = DESCRIPTORS$7 ? function (object, key, value
|
|
|
785
786
|
};
|
|
786
787
|
|
|
787
788
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
788
|
-
var global$d = global$
|
|
789
|
-
var isObject$
|
|
789
|
+
var global$d = global$l;
|
|
790
|
+
var isObject$5 = isObject$a;
|
|
790
791
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
791
792
|
var hasOwn$7 = hasOwnProperty_1;
|
|
792
|
-
var shared$1 =
|
|
793
|
+
var shared$1 = sharedStoreExports;
|
|
793
794
|
var sharedKey$1 = sharedKey$3;
|
|
794
795
|
var hiddenKeys$1 = hiddenKeys$4;
|
|
795
796
|
|
|
@@ -805,7 +806,7 @@ var enforce = function (it) {
|
|
|
805
806
|
var getterFor = function (TYPE) {
|
|
806
807
|
return function (it) {
|
|
807
808
|
var state;
|
|
808
|
-
if (!isObject$
|
|
809
|
+
if (!isObject$5(it) || (state = get(it)).type !== TYPE) {
|
|
809
810
|
throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
|
|
810
811
|
} return state;
|
|
811
812
|
};
|
|
@@ -874,7 +875,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
|
874
875
|
} : $propertyIsEnumerable;
|
|
875
876
|
|
|
876
877
|
var DESCRIPTORS$6 = descriptors;
|
|
877
|
-
var call$
|
|
878
|
+
var call$b = functionCall;
|
|
878
879
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
879
880
|
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
880
881
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
@@ -893,7 +894,7 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor : f
|
|
|
893
894
|
if (IE8_DOM_DEFINE) try {
|
|
894
895
|
return $getOwnPropertyDescriptor(O, P);
|
|
895
896
|
} catch (error) { /* empty */ }
|
|
896
|
-
if (hasOwn$6(O, P)) return createPropertyDescriptor$1(!call$
|
|
897
|
+
if (hasOwn$6(O, P)) return createPropertyDescriptor$1(!call$b(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
897
898
|
};
|
|
898
899
|
|
|
899
900
|
var makeBuiltIn$3 = {exports: {}};
|
|
@@ -917,13 +918,13 @@ var functionName = {
|
|
|
917
918
|
};
|
|
918
919
|
|
|
919
920
|
var uncurryThis$9 = functionUncurryThis;
|
|
920
|
-
var isCallable$
|
|
921
|
-
var store =
|
|
921
|
+
var isCallable$d = isCallable$k;
|
|
922
|
+
var store = sharedStoreExports;
|
|
922
923
|
|
|
923
924
|
var functionToString = uncurryThis$9(Function.toString);
|
|
924
925
|
|
|
925
926
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
926
|
-
if (!isCallable$
|
|
927
|
+
if (!isCallable$d(store.inspectSource)) {
|
|
927
928
|
store.inspectSource = function (it) {
|
|
928
929
|
return functionToString(it);
|
|
929
930
|
};
|
|
@@ -933,7 +934,7 @@ var inspectSource$3 = store.inspectSource;
|
|
|
933
934
|
|
|
934
935
|
var uncurryThis$8 = functionUncurryThis;
|
|
935
936
|
var fails$9 = fails$g;
|
|
936
|
-
var isCallable$
|
|
937
|
+
var isCallable$c = isCallable$k;
|
|
937
938
|
var hasOwn$4 = hasOwnProperty_1;
|
|
938
939
|
var DESCRIPTORS$4 = descriptors;
|
|
939
940
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
@@ -983,19 +984,21 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
983
984
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
984
985
|
// eslint-disable-next-line no-extend-native -- required
|
|
985
986
|
Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
986
|
-
return isCallable$
|
|
987
|
+
return isCallable$c(this) && getInternalState$2(this).source || inspectSource$2(this);
|
|
987
988
|
}, 'toString');
|
|
988
989
|
|
|
989
|
-
var
|
|
990
|
+
var makeBuiltInExports = makeBuiltIn$3.exports;
|
|
991
|
+
|
|
992
|
+
var isCallable$b = isCallable$k;
|
|
990
993
|
var definePropertyModule$1 = objectDefineProperty;
|
|
991
|
-
var makeBuiltIn$1 =
|
|
994
|
+
var makeBuiltIn$1 = makeBuiltInExports;
|
|
992
995
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
993
996
|
|
|
994
997
|
var defineBuiltIn$5 = function (O, key, value, options) {
|
|
995
998
|
if (!options) options = {};
|
|
996
999
|
var simple = options.enumerable;
|
|
997
1000
|
var name = options.name !== undefined ? options.name : key;
|
|
998
|
-
if (isCallable$
|
|
1001
|
+
if (isCallable$b(value)) makeBuiltIn$1(value, name, options);
|
|
999
1002
|
if (options.global) {
|
|
1000
1003
|
if (simple) O[key] = value;
|
|
1001
1004
|
else defineGlobalProperty$1(key, value);
|
|
@@ -1066,7 +1069,7 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
1066
1069
|
};
|
|
1067
1070
|
|
|
1068
1071
|
var fails$8 = fails$g;
|
|
1069
|
-
var isCallable$
|
|
1072
|
+
var isCallable$a = isCallable$k;
|
|
1070
1073
|
|
|
1071
1074
|
var replacement = /#|\.prototype\./;
|
|
1072
1075
|
|
|
@@ -1074,7 +1077,7 @@ var isForced$2 = function (feature, detection) {
|
|
|
1074
1077
|
var value = data[normalize(feature)];
|
|
1075
1078
|
return value === POLYFILL ? true
|
|
1076
1079
|
: value === NATIVE ? false
|
|
1077
|
-
: isCallable$
|
|
1080
|
+
: isCallable$a(detection) ? fails$8(detection)
|
|
1078
1081
|
: !!detection;
|
|
1079
1082
|
};
|
|
1080
1083
|
|
|
@@ -1088,7 +1091,7 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
|
|
|
1088
1091
|
|
|
1089
1092
|
var isForced_1 = isForced$2;
|
|
1090
1093
|
|
|
1091
|
-
var global$c = global$
|
|
1094
|
+
var global$c = global$l;
|
|
1092
1095
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
1093
1096
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
1094
1097
|
var defineBuiltIn$4 = defineBuiltIn$5;
|
|
@@ -1153,7 +1156,7 @@ var correctPrototypeGetter = !fails$7(function () {
|
|
|
1153
1156
|
});
|
|
1154
1157
|
|
|
1155
1158
|
var hasOwn$2 = hasOwnProperty_1;
|
|
1156
|
-
var isCallable$
|
|
1159
|
+
var isCallable$9 = isCallable$k;
|
|
1157
1160
|
var toObject$1 = toObject$3;
|
|
1158
1161
|
var sharedKey = sharedKey$3;
|
|
1159
1162
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
@@ -1169,14 +1172,14 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf :
|
|
|
1169
1172
|
var object = toObject$1(O);
|
|
1170
1173
|
if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
|
|
1171
1174
|
var constructor = object.constructor;
|
|
1172
|
-
if (isCallable$
|
|
1175
|
+
if (isCallable$9(constructor) && object instanceof constructor) {
|
|
1173
1176
|
return constructor.prototype;
|
|
1174
1177
|
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1175
1178
|
};
|
|
1176
1179
|
|
|
1177
1180
|
var fails$6 = fails$g;
|
|
1178
|
-
var isCallable$
|
|
1179
|
-
var isObject$
|
|
1181
|
+
var isCallable$8 = isCallable$k;
|
|
1182
|
+
var isObject$4 = isObject$a;
|
|
1180
1183
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1181
1184
|
var defineBuiltIn$3 = defineBuiltIn$5;
|
|
1182
1185
|
var wellKnownSymbol$b = wellKnownSymbol$e;
|
|
@@ -1199,7 +1202,7 @@ if ([].keys) {
|
|
|
1199
1202
|
}
|
|
1200
1203
|
}
|
|
1201
1204
|
|
|
1202
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$
|
|
1205
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$4(IteratorPrototype$2) || fails$6(function () {
|
|
1203
1206
|
var test = {};
|
|
1204
1207
|
// FF44- legacy iterators case
|
|
1205
1208
|
return IteratorPrototype$2[ITERATOR$5].call(test) !== test;
|
|
@@ -1209,7 +1212,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
1209
1212
|
|
|
1210
1213
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1211
1214
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1212
|
-
if (!isCallable$
|
|
1215
|
+
if (!isCallable$8(IteratorPrototype$2[ITERATOR$5])) {
|
|
1213
1216
|
defineBuiltIn$3(IteratorPrototype$2, ITERATOR$5, function () {
|
|
1214
1217
|
return this;
|
|
1215
1218
|
});
|
|
@@ -1259,10 +1262,10 @@ var functionUncurryThisAccessor = function (object, key, method) {
|
|
|
1259
1262
|
} catch (error) { /* empty */ }
|
|
1260
1263
|
};
|
|
1261
1264
|
|
|
1262
|
-
var isObject$
|
|
1265
|
+
var isObject$3 = isObject$a;
|
|
1263
1266
|
|
|
1264
1267
|
var isPossiblePrototype$1 = function (argument) {
|
|
1265
|
-
return isObject$
|
|
1268
|
+
return isObject$3(argument) || argument === null;
|
|
1266
1269
|
};
|
|
1267
1270
|
|
|
1268
1271
|
var isPossiblePrototype = isPossiblePrototype$1;
|
|
@@ -1277,7 +1280,8 @@ var aPossiblePrototype$1 = function (argument) {
|
|
|
1277
1280
|
|
|
1278
1281
|
/* eslint-disable no-proto -- safe */
|
|
1279
1282
|
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
1280
|
-
var
|
|
1283
|
+
var isObject$2 = isObject$a;
|
|
1284
|
+
var requireObjectCoercible = requireObjectCoercible$3;
|
|
1281
1285
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1282
1286
|
|
|
1283
1287
|
// `Object.setPrototypeOf` method
|
|
@@ -1294,18 +1298,19 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1294
1298
|
CORRECT_SETTER = test instanceof Array;
|
|
1295
1299
|
} catch (error) { /* empty */ }
|
|
1296
1300
|
return function setPrototypeOf(O, proto) {
|
|
1297
|
-
|
|
1301
|
+
requireObjectCoercible(O);
|
|
1298
1302
|
aPossiblePrototype(proto);
|
|
1303
|
+
if (!isObject$2(O)) return O;
|
|
1299
1304
|
if (CORRECT_SETTER) setter(O, proto);
|
|
1300
1305
|
else O.__proto__ = proto;
|
|
1301
1306
|
return O;
|
|
1302
1307
|
};
|
|
1303
1308
|
}() : undefined);
|
|
1304
1309
|
|
|
1305
|
-
var $$
|
|
1306
|
-
var call$
|
|
1310
|
+
var $$9 = _export;
|
|
1311
|
+
var call$a = functionCall;
|
|
1307
1312
|
var FunctionName = functionName;
|
|
1308
|
-
var isCallable$
|
|
1313
|
+
var isCallable$7 = isCallable$k;
|
|
1309
1314
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
1310
1315
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
1311
1316
|
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
@@ -1360,7 +1365,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1360
1365
|
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
1361
1366
|
if (setPrototypeOf$1) {
|
|
1362
1367
|
setPrototypeOf$1(CurrentIteratorPrototype, IteratorPrototype);
|
|
1363
|
-
} else if (!isCallable$
|
|
1368
|
+
} else if (!isCallable$7(CurrentIteratorPrototype[ITERATOR$4])) {
|
|
1364
1369
|
defineBuiltIn$2(CurrentIteratorPrototype, ITERATOR$4, returnThis);
|
|
1365
1370
|
}
|
|
1366
1371
|
}
|
|
@@ -1375,7 +1380,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1375
1380
|
createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
|
|
1376
1381
|
} else {
|
|
1377
1382
|
INCORRECT_VALUES_NAME = true;
|
|
1378
|
-
defaultIterator = function values() { return call$
|
|
1383
|
+
defaultIterator = function values() { return call$a(nativeIterator, this); };
|
|
1379
1384
|
}
|
|
1380
1385
|
}
|
|
1381
1386
|
|
|
@@ -1390,7 +1395,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1390
1395
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1391
1396
|
defineBuiltIn$2(IterablePrototype, KEY, methods[KEY]);
|
|
1392
1397
|
}
|
|
1393
|
-
} else $$
|
|
1398
|
+
} else $$9({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1394
1399
|
}
|
|
1395
1400
|
|
|
1396
1401
|
// define iterator
|
|
@@ -1513,7 +1518,7 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1513
1518
|
|
|
1514
1519
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1515
1520
|
|
|
1516
|
-
var global$b = global$
|
|
1521
|
+
var global$b = global$l;
|
|
1517
1522
|
var DOMIterables = domIterables;
|
|
1518
1523
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1519
1524
|
var ArrayIteratorMethods = es_array_iterator;
|
|
@@ -1564,6 +1569,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
1564
1569
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1565
1570
|
PERFORMANCE OF THIS SOFTWARE.
|
|
1566
1571
|
***************************************************************************** */
|
|
1572
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
1573
|
+
|
|
1567
1574
|
|
|
1568
1575
|
function __decorate(decorators, target, key, desc) {
|
|
1569
1576
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -1630,7 +1637,7 @@ test[TO_STRING_TAG$1] = 'z';
|
|
|
1630
1637
|
var toStringTagSupport = String(test) === '[object z]';
|
|
1631
1638
|
|
|
1632
1639
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1633
|
-
var isCallable$
|
|
1640
|
+
var isCallable$6 = isCallable$k;
|
|
1634
1641
|
var classofRaw$1 = classofRaw$2;
|
|
1635
1642
|
var wellKnownSymbol$6 = wellKnownSymbol$e;
|
|
1636
1643
|
|
|
@@ -1656,24 +1663,24 @@ var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
|
1656
1663
|
// builtinTag case
|
|
1657
1664
|
: CORRECT_ARGUMENTS ? classofRaw$1(O)
|
|
1658
1665
|
// ES3 arguments fallback
|
|
1659
|
-
: (result = classofRaw$1(O)) === 'Object' && isCallable$
|
|
1666
|
+
: (result = classofRaw$1(O)) === 'Object' && isCallable$6(O.callee) ? 'Arguments' : result;
|
|
1660
1667
|
};
|
|
1661
1668
|
|
|
1662
1669
|
var classof$3 = classof$4;
|
|
1663
1670
|
|
|
1664
1671
|
var $String = String;
|
|
1665
1672
|
|
|
1666
|
-
var toString$
|
|
1673
|
+
var toString$2 = function (argument) {
|
|
1667
1674
|
if (classof$3(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
1668
1675
|
return $String(argument);
|
|
1669
1676
|
};
|
|
1670
1677
|
|
|
1671
|
-
var anObject$
|
|
1678
|
+
var anObject$6 = anObject$b;
|
|
1672
1679
|
|
|
1673
1680
|
// `RegExp.prototype.flags` getter implementation
|
|
1674
1681
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
1675
1682
|
var regexpFlags$1 = function () {
|
|
1676
|
-
var that = anObject$
|
|
1683
|
+
var that = anObject$6(this);
|
|
1677
1684
|
var result = '';
|
|
1678
1685
|
if (that.hasIndices) result += 'd';
|
|
1679
1686
|
if (that.global) result += 'g';
|
|
@@ -1687,7 +1694,7 @@ var regexpFlags$1 = function () {
|
|
|
1687
1694
|
};
|
|
1688
1695
|
|
|
1689
1696
|
var fails$5 = fails$g;
|
|
1690
|
-
var global$a = global$
|
|
1697
|
+
var global$a = global$l;
|
|
1691
1698
|
|
|
1692
1699
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
1693
1700
|
var $RegExp$2 = global$a.RegExp;
|
|
@@ -1718,7 +1725,7 @@ var regexpStickyHelpers = {
|
|
|
1718
1725
|
};
|
|
1719
1726
|
|
|
1720
1727
|
var fails$4 = fails$g;
|
|
1721
|
-
var global$9 = global$
|
|
1728
|
+
var global$9 = global$l;
|
|
1722
1729
|
|
|
1723
1730
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
1724
1731
|
var $RegExp$1 = global$9.RegExp;
|
|
@@ -1729,7 +1736,7 @@ var regexpUnsupportedDotAll = fails$4(function () {
|
|
|
1729
1736
|
});
|
|
1730
1737
|
|
|
1731
1738
|
var fails$3 = fails$g;
|
|
1732
|
-
var global$8 = global$
|
|
1739
|
+
var global$8 = global$l;
|
|
1733
1740
|
|
|
1734
1741
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
1735
1742
|
var $RegExp = global$8.RegExp;
|
|
@@ -1742,12 +1749,12 @@ var regexpUnsupportedNcg = fails$3(function () {
|
|
|
1742
1749
|
|
|
1743
1750
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
1744
1751
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
1745
|
-
var call$
|
|
1752
|
+
var call$9 = functionCall;
|
|
1746
1753
|
var uncurryThis$5 = functionUncurryThis;
|
|
1747
|
-
var toString = toString$
|
|
1754
|
+
var toString$1 = toString$2;
|
|
1748
1755
|
var regexpFlags = regexpFlags$1;
|
|
1749
1756
|
var stickyHelpers = regexpStickyHelpers;
|
|
1750
|
-
var shared = shared$4
|
|
1757
|
+
var shared = shared$4;
|
|
1751
1758
|
var create = objectCreate;
|
|
1752
1759
|
var getInternalState = internalState.get;
|
|
1753
1760
|
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
@@ -1764,8 +1771,8 @@ var stringSlice = uncurryThis$5(''.slice);
|
|
|
1764
1771
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
1765
1772
|
var re1 = /a/;
|
|
1766
1773
|
var re2 = /b*/g;
|
|
1767
|
-
call$
|
|
1768
|
-
call$
|
|
1774
|
+
call$9(nativeExec, re1, 'a');
|
|
1775
|
+
call$9(nativeExec, re2, 'a');
|
|
1769
1776
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
1770
1777
|
})();
|
|
1771
1778
|
|
|
@@ -1780,20 +1787,20 @@ if (PATCH) {
|
|
|
1780
1787
|
patchedExec = function exec(string) {
|
|
1781
1788
|
var re = this;
|
|
1782
1789
|
var state = getInternalState(re);
|
|
1783
|
-
var str = toString(string);
|
|
1790
|
+
var str = toString$1(string);
|
|
1784
1791
|
var raw = state.raw;
|
|
1785
1792
|
var result, reCopy, lastIndex, match, i, object, group;
|
|
1786
1793
|
|
|
1787
1794
|
if (raw) {
|
|
1788
1795
|
raw.lastIndex = re.lastIndex;
|
|
1789
|
-
result = call$
|
|
1796
|
+
result = call$9(patchedExec, raw, str);
|
|
1790
1797
|
re.lastIndex = raw.lastIndex;
|
|
1791
1798
|
return result;
|
|
1792
1799
|
}
|
|
1793
1800
|
|
|
1794
1801
|
var groups = state.groups;
|
|
1795
1802
|
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
1796
|
-
var flags = call$
|
|
1803
|
+
var flags = call$9(regexpFlags, re);
|
|
1797
1804
|
var source = re.source;
|
|
1798
1805
|
var charsAdded = 0;
|
|
1799
1806
|
var strCopy = str;
|
|
@@ -1821,7 +1828,7 @@ if (PATCH) {
|
|
|
1821
1828
|
}
|
|
1822
1829
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
1823
1830
|
|
|
1824
|
-
match = call$
|
|
1831
|
+
match = call$9(nativeExec, sticky ? reCopy : re, strCopy);
|
|
1825
1832
|
|
|
1826
1833
|
if (sticky) {
|
|
1827
1834
|
if (match) {
|
|
@@ -1836,7 +1843,7 @@ if (PATCH) {
|
|
|
1836
1843
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
1837
1844
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
1838
1845
|
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
1839
|
-
call$
|
|
1846
|
+
call$9(nativeReplace, match[0], reCopy, function () {
|
|
1840
1847
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
1841
1848
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
1842
1849
|
}
|
|
@@ -1857,15 +1864,50 @@ if (PATCH) {
|
|
|
1857
1864
|
|
|
1858
1865
|
var regexpExec = patchedExec;
|
|
1859
1866
|
|
|
1860
|
-
var $$
|
|
1867
|
+
var $$8 = _export;
|
|
1861
1868
|
var exec$1 = regexpExec;
|
|
1862
1869
|
|
|
1863
1870
|
// `RegExp.prototype.exec` method
|
|
1864
1871
|
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
1865
|
-
$$
|
|
1872
|
+
$$8({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
|
|
1866
1873
|
exec: exec$1
|
|
1867
1874
|
});
|
|
1868
1875
|
|
|
1876
|
+
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
1877
|
+
|
|
1878
|
+
var $$7 = _export;
|
|
1879
|
+
var call$8 = functionCall;
|
|
1880
|
+
var isCallable$5 = isCallable$k;
|
|
1881
|
+
var anObject$5 = anObject$b;
|
|
1882
|
+
var toString = toString$2;
|
|
1883
|
+
|
|
1884
|
+
var DELEGATES_TO_EXEC = function () {
|
|
1885
|
+
var execCalled = false;
|
|
1886
|
+
var re = /[ac]/;
|
|
1887
|
+
re.exec = function () {
|
|
1888
|
+
execCalled = true;
|
|
1889
|
+
return /./.exec.apply(this, arguments);
|
|
1890
|
+
};
|
|
1891
|
+
return re.test('abc') === true && execCalled;
|
|
1892
|
+
}();
|
|
1893
|
+
|
|
1894
|
+
var nativeTest = /./.test;
|
|
1895
|
+
|
|
1896
|
+
// `RegExp.prototype.test` method
|
|
1897
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.test
|
|
1898
|
+
$$7({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
|
|
1899
|
+
test: function (S) {
|
|
1900
|
+
var R = anObject$5(this);
|
|
1901
|
+
var string = toString(S);
|
|
1902
|
+
var exec = R.exec;
|
|
1903
|
+
if (!isCallable$5(exec)) return call$8(nativeTest, R, string);
|
|
1904
|
+
var result = call$8(exec, R, string);
|
|
1905
|
+
if (result === null) return false;
|
|
1906
|
+
anObject$5(result);
|
|
1907
|
+
return true;
|
|
1908
|
+
}
|
|
1909
|
+
});
|
|
1910
|
+
|
|
1869
1911
|
const UNKNOWN_WEBSITE_LINK_TYPE = 'u';
|
|
1870
1912
|
/**
|
|
1871
1913
|
* Max length of WebsiteLink's data type.
|
|
@@ -2266,12 +2308,12 @@ function grantedRoleKeysMapFromArray(roles, value = true) {
|
|
|
2266
2308
|
return util.arrayToObject(roles, x => x, () => value);
|
|
2267
2309
|
}
|
|
2268
2310
|
|
|
2269
|
-
var global$7 = global$
|
|
2311
|
+
var global$7 = global$l;
|
|
2270
2312
|
var classof$2 = classofRaw$2;
|
|
2271
2313
|
|
|
2272
2314
|
var engineIsNode = classof$2(global$7.process) === 'process';
|
|
2273
2315
|
|
|
2274
|
-
var makeBuiltIn =
|
|
2316
|
+
var makeBuiltIn = makeBuiltInExports;
|
|
2275
2317
|
var defineProperty$1 = objectDefineProperty;
|
|
2276
2318
|
|
|
2277
2319
|
var defineBuiltInAccessor$1 = function (target, name, descriptor) {
|
|
@@ -2309,7 +2351,7 @@ var anInstance$1 = function (it, Prototype) {
|
|
|
2309
2351
|
|
|
2310
2352
|
var uncurryThis$4 = functionUncurryThis;
|
|
2311
2353
|
var fails$2 = fails$g;
|
|
2312
|
-
var isCallable$4 = isCallable$
|
|
2354
|
+
var isCallable$4 = isCallable$k;
|
|
2313
2355
|
var classof$1 = classof$4;
|
|
2314
2356
|
var getBuiltIn$2 = getBuiltIn$7;
|
|
2315
2357
|
var inspectSource$1 = inspectSource$3;
|
|
@@ -2436,10 +2478,10 @@ var userAgent$2 = engineUserAgent;
|
|
|
2436
2478
|
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
2437
2479
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
2438
2480
|
|
|
2439
|
-
var global$6 = global$
|
|
2481
|
+
var global$6 = global$l;
|
|
2440
2482
|
var apply = functionApply;
|
|
2441
2483
|
var bind$3 = functionBindContext;
|
|
2442
|
-
var isCallable$3 = isCallable$
|
|
2484
|
+
var isCallable$3 = isCallable$k;
|
|
2443
2485
|
var hasOwn = hasOwnProperty_1;
|
|
2444
2486
|
var fails$1 = fails$g;
|
|
2445
2487
|
var html = html$2;
|
|
@@ -2553,7 +2595,7 @@ var task$1 = {
|
|
|
2553
2595
|
clear: clear
|
|
2554
2596
|
};
|
|
2555
2597
|
|
|
2556
|
-
var global$5 = global$
|
|
2598
|
+
var global$5 = global$l;
|
|
2557
2599
|
var DESCRIPTORS$1 = descriptors;
|
|
2558
2600
|
|
|
2559
2601
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -2599,7 +2641,7 @@ var userAgent = engineUserAgent;
|
|
|
2599
2641
|
|
|
2600
2642
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
2601
2643
|
|
|
2602
|
-
var global$4 = global$
|
|
2644
|
+
var global$4 = global$l;
|
|
2603
2645
|
var safeGetBuiltIn = safeGetBuiltIn$1;
|
|
2604
2646
|
var bind$2 = functionBindContext;
|
|
2605
2647
|
var macrotask = task$1.set;
|
|
@@ -2693,7 +2735,7 @@ var perform$3 = function (exec) {
|
|
|
2693
2735
|
}
|
|
2694
2736
|
};
|
|
2695
2737
|
|
|
2696
|
-
var global$3 = global$
|
|
2738
|
+
var global$3 = global$l;
|
|
2697
2739
|
|
|
2698
2740
|
var promiseNativeConstructor = global$3.Promise;
|
|
2699
2741
|
|
|
@@ -2707,9 +2749,9 @@ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
|
|
|
2707
2749
|
&& typeof window == 'object'
|
|
2708
2750
|
&& typeof document == 'object';
|
|
2709
2751
|
|
|
2710
|
-
var global$2 = global$
|
|
2752
|
+
var global$2 = global$l;
|
|
2711
2753
|
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
2712
|
-
var isCallable$2 = isCallable$
|
|
2754
|
+
var isCallable$2 = isCallable$k;
|
|
2713
2755
|
var isForced = isForced_1;
|
|
2714
2756
|
var inspectSource = inspectSource$3;
|
|
2715
2757
|
var wellKnownSymbol$3 = wellKnownSymbol$e;
|
|
@@ -2777,15 +2819,15 @@ newPromiseCapability$2.f = function (C) {
|
|
|
2777
2819
|
|
|
2778
2820
|
var $$6 = _export;
|
|
2779
2821
|
var IS_NODE = engineIsNode;
|
|
2780
|
-
var global$1 = global$
|
|
2822
|
+
var global$1 = global$l;
|
|
2781
2823
|
var call$6 = functionCall;
|
|
2782
2824
|
var defineBuiltIn$1 = defineBuiltIn$5;
|
|
2783
2825
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
2784
2826
|
var setToStringTag = setToStringTag$4;
|
|
2785
2827
|
var setSpecies = setSpecies$1;
|
|
2786
2828
|
var aCallable$3 = aCallable$8;
|
|
2787
|
-
var isCallable$1 = isCallable$
|
|
2788
|
-
var isObject$1 = isObject$
|
|
2829
|
+
var isCallable$1 = isCallable$k;
|
|
2830
|
+
var isObject$1 = isObject$a;
|
|
2789
2831
|
var anInstance = anInstance$1;
|
|
2790
2832
|
var speciesConstructor = speciesConstructor$1;
|
|
2791
2833
|
var task = task$1.set;
|
|
@@ -3286,7 +3328,7 @@ var $$4 = _export;
|
|
|
3286
3328
|
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
3287
3329
|
var NativePromiseConstructor = promiseNativeConstructor;
|
|
3288
3330
|
var getBuiltIn$1 = getBuiltIn$7;
|
|
3289
|
-
var isCallable = isCallable$
|
|
3331
|
+
var isCallable = isCallable$k;
|
|
3290
3332
|
var defineBuiltIn = defineBuiltIn$5;
|
|
3291
3333
|
|
|
3292
3334
|
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
|
|
@@ -3349,7 +3391,7 @@ $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
|
3349
3391
|
});
|
|
3350
3392
|
|
|
3351
3393
|
var anObject = anObject$b;
|
|
3352
|
-
var isObject = isObject$
|
|
3394
|
+
var isObject = isObject$a;
|
|
3353
3395
|
var newPromiseCapability = newPromiseCapability$2;
|
|
3354
3396
|
|
|
3355
3397
|
var promiseResolve$1 = function (C, x) {
|
|
@@ -3393,34 +3435,6 @@ function contextGrantedModelRoles(context, data, roles) {
|
|
|
3393
3435
|
/**
|
|
3394
3436
|
* Abstract ModelPermissionService implementation.
|
|
3395
3437
|
*/
|
|
3396
|
-
|
|
3397
|
-
function _await$2(value, then, direct) {
|
|
3398
|
-
if (direct) {
|
|
3399
|
-
return then ? then(value) : value;
|
|
3400
|
-
}
|
|
3401
|
-
if (!value || !value.then) {
|
|
3402
|
-
value = Promise.resolve(value);
|
|
3403
|
-
}
|
|
3404
|
-
return then ? value.then(then) : value;
|
|
3405
|
-
}
|
|
3406
|
-
function _invoke$1(body, then) {
|
|
3407
|
-
var result = body();
|
|
3408
|
-
if (result && result.then) {
|
|
3409
|
-
return result.then(then);
|
|
3410
|
-
}
|
|
3411
|
-
return then(result);
|
|
3412
|
-
}
|
|
3413
|
-
function _call(body, then, direct) {
|
|
3414
|
-
if (direct) {
|
|
3415
|
-
return then ? then(body()) : body();
|
|
3416
|
-
}
|
|
3417
|
-
try {
|
|
3418
|
-
var result = Promise.resolve(body());
|
|
3419
|
-
return then ? result.then(then) : result;
|
|
3420
|
-
} catch (e) {
|
|
3421
|
-
return Promise.reject(e);
|
|
3422
|
-
}
|
|
3423
|
-
}
|
|
3424
3438
|
class AbstractModelPermissionService {
|
|
3425
3439
|
constructor(modelLoader) {
|
|
3426
3440
|
this._modelLoader = void 0;
|
|
@@ -3429,51 +3443,29 @@ class AbstractModelPermissionService {
|
|
|
3429
3443
|
get modelLoader() {
|
|
3430
3444
|
return this._modelLoader;
|
|
3431
3445
|
}
|
|
3432
|
-
roleMapForKeyContext(key, context) {
|
|
3433
|
-
const
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
});
|
|
3442
|
-
} else {
|
|
3443
|
-
result = noAccessContextGrantedModelRoles(context);
|
|
3444
|
-
}
|
|
3445
|
-
}, function () {
|
|
3446
|
-
return result;
|
|
3447
|
-
});
|
|
3448
|
-
});
|
|
3449
|
-
});
|
|
3446
|
+
async roleMapForKeyContext(key, context) {
|
|
3447
|
+
const model = await this.modelLoader.loadModelForKey(key, context);
|
|
3448
|
+
let result;
|
|
3449
|
+
if (model != null) {
|
|
3450
|
+
result = await this.roleMapForModelContext(model, context);
|
|
3451
|
+
} else {
|
|
3452
|
+
result = noAccessContextGrantedModelRoles(context);
|
|
3453
|
+
}
|
|
3454
|
+
return result;
|
|
3450
3455
|
}
|
|
3451
|
-
roleMapForModelContext(model, context) {
|
|
3452
|
-
const
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
});
|
|
3461
|
-
} else {
|
|
3462
|
-
result = noAccessContextGrantedModelRoles(context, output);
|
|
3463
|
-
}
|
|
3464
|
-
}, function () {
|
|
3465
|
-
return result;
|
|
3466
|
-
});
|
|
3467
|
-
});
|
|
3468
|
-
});
|
|
3456
|
+
async roleMapForModelContext(model, context) {
|
|
3457
|
+
const output = await this.outputForModel(model, context);
|
|
3458
|
+
let result;
|
|
3459
|
+
if (output != null && this.isUsableOutputForRoles(output, context)) {
|
|
3460
|
+
result = await this.getRoleMapForOutput(output, context, model);
|
|
3461
|
+
} else {
|
|
3462
|
+
result = noAccessContextGrantedModelRoles(context, output);
|
|
3463
|
+
}
|
|
3464
|
+
return result;
|
|
3469
3465
|
}
|
|
3470
|
-
getRoleMapForOutput(output, context, model) {
|
|
3471
|
-
const
|
|
3472
|
-
return
|
|
3473
|
-
return _await$2(_this3.roleMapForModel(output, context, model), function (roleMap) {
|
|
3474
|
-
return contextGrantedModelRoles(context, output, roleMap);
|
|
3475
|
-
});
|
|
3476
|
-
});
|
|
3466
|
+
async getRoleMapForOutput(output, context, model) {
|
|
3467
|
+
const roleMap = await this.roleMapForModel(output, context, model);
|
|
3468
|
+
return contextGrantedModelRoles(context, output, roleMap);
|
|
3477
3469
|
}
|
|
3478
3470
|
isUsableOutputForRoles(output, context) {
|
|
3479
3471
|
return true; // can override in parent functions to further filter roles.
|
|
@@ -3591,64 +3583,31 @@ $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign },
|
|
|
3591
3583
|
assign: assign
|
|
3592
3584
|
});
|
|
3593
3585
|
|
|
3594
|
-
function _await$1(value, then, direct) {
|
|
3595
|
-
if (direct) {
|
|
3596
|
-
return then ? then(value) : value;
|
|
3597
|
-
}
|
|
3598
|
-
if (!value || !value.then) {
|
|
3599
|
-
value = Promise.resolve(value);
|
|
3600
|
-
}
|
|
3601
|
-
return then ? value.then(then) : value;
|
|
3602
|
-
} /**
|
|
3603
|
-
* Creates a new TransformAndValidateObjectFactory.
|
|
3604
|
-
*
|
|
3605
|
-
* @param defaults
|
|
3606
|
-
* @returns
|
|
3607
|
-
*/
|
|
3608
|
-
|
|
3609
|
-
function _invoke(body, then) {
|
|
3610
|
-
var result = body();
|
|
3611
|
-
if (result && result.then) {
|
|
3612
|
-
return result.then(then);
|
|
3613
|
-
}
|
|
3614
|
-
return then(result);
|
|
3615
|
-
}
|
|
3616
|
-
function _async$1(f) {
|
|
3617
|
-
return function () {
|
|
3618
|
-
for (var args = [], i = 0; i < arguments.length; i++) {
|
|
3619
|
-
args[i] = arguments[i];
|
|
3620
|
-
}
|
|
3621
|
-
try {
|
|
3622
|
-
return Promise.resolve(f.apply(this, args));
|
|
3623
|
-
} catch (e) {
|
|
3624
|
-
return Promise.reject(e);
|
|
3625
|
-
}
|
|
3626
|
-
};
|
|
3627
|
-
}
|
|
3628
3586
|
function transformAndValidateObject(config) {
|
|
3629
3587
|
const transformToResult = transformAndValidateObjectResult(config.classType, config.fn, config.optionsForContext);
|
|
3630
3588
|
const {
|
|
3631
3589
|
handleValidationError
|
|
3632
3590
|
} = config;
|
|
3633
|
-
return (input, context) => transformToResult(input, context).then(
|
|
3591
|
+
return (input, context) => transformToResult(input, context).then(async x => {
|
|
3634
3592
|
const object = x.object;
|
|
3635
3593
|
let result;
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
}
|
|
3645
|
-
|
|
3646
|
-
object,
|
|
3647
|
-
result
|
|
3648
|
-
};
|
|
3649
|
-
});
|
|
3650
|
-
}));
|
|
3594
|
+
if (x.success) {
|
|
3595
|
+
result = x.result;
|
|
3596
|
+
} else {
|
|
3597
|
+
result = await handleValidationError(x.validationErrors);
|
|
3598
|
+
}
|
|
3599
|
+
return {
|
|
3600
|
+
object,
|
|
3601
|
+
result
|
|
3602
|
+
};
|
|
3603
|
+
});
|
|
3651
3604
|
}
|
|
3605
|
+
/**
|
|
3606
|
+
* Creates a new TransformAndValidateObjectFactory.
|
|
3607
|
+
*
|
|
3608
|
+
* @param defaults
|
|
3609
|
+
* @returns
|
|
3610
|
+
*/
|
|
3652
3611
|
function transformAndValidateObjectFactory(defaults) {
|
|
3653
3612
|
const {
|
|
3654
3613
|
handleValidationError: defaultHandleValidationError,
|
|
@@ -3673,7 +3632,7 @@ function transformAndValidateObjectFactory(defaults) {
|
|
|
3673
3632
|
*/
|
|
3674
3633
|
function transformAndValidateObjectResult(classType, fn, inputOptionsForContext) {
|
|
3675
3634
|
const optionsForContext = inputOptionsForContext != null ? inputOptionsForContext : () => ({});
|
|
3676
|
-
return
|
|
3635
|
+
return async (input, context) => {
|
|
3677
3636
|
const {
|
|
3678
3637
|
transform: transformOptions,
|
|
3679
3638
|
validate: validateOptions
|
|
@@ -3682,24 +3641,22 @@ function transformAndValidateObjectResult(classType, fn, inputOptionsForContext)
|
|
|
3682
3641
|
// Note: Each variable on the target class must be marked with the @Expose() annotation.
|
|
3683
3642
|
excludeExtraneousValues: true
|
|
3684
3643
|
}));
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
});
|
|
3702
|
-
});
|
|
3644
|
+
const validationErrors = await classValidator.validate(object, validateOptions);
|
|
3645
|
+
if (validationErrors.length) {
|
|
3646
|
+
return {
|
|
3647
|
+
object,
|
|
3648
|
+
validationErrors,
|
|
3649
|
+
success: false
|
|
3650
|
+
};
|
|
3651
|
+
} else {
|
|
3652
|
+
const result = await fn(object);
|
|
3653
|
+
return {
|
|
3654
|
+
object,
|
|
3655
|
+
result,
|
|
3656
|
+
success: true
|
|
3657
|
+
};
|
|
3658
|
+
}
|
|
3659
|
+
};
|
|
3703
3660
|
}
|
|
3704
3661
|
|
|
3705
3662
|
function transformAndValidateFunctionResultFactory(defaults) {
|
|
@@ -3725,38 +3682,16 @@ function toTransformAndValidateFunctionResult(objectOutput) {
|
|
|
3725
3682
|
});
|
|
3726
3683
|
}
|
|
3727
3684
|
|
|
3728
|
-
function _await(value, then, direct) {
|
|
3729
|
-
if (direct) {
|
|
3730
|
-
return then ? then(value) : value;
|
|
3731
|
-
}
|
|
3732
|
-
if (!value || !value.then) {
|
|
3733
|
-
value = Promise.resolve(value);
|
|
3734
|
-
}
|
|
3735
|
-
return then ? value.then(then) : value;
|
|
3736
|
-
}
|
|
3737
|
-
function _async(f) {
|
|
3738
|
-
return function () {
|
|
3739
|
-
for (var args = [], i = 0; i < arguments.length; i++) {
|
|
3740
|
-
args[i] = arguments[i];
|
|
3741
|
-
}
|
|
3742
|
-
try {
|
|
3743
|
-
return Promise.resolve(f.apply(this, args));
|
|
3744
|
-
} catch (e) {
|
|
3745
|
-
return Promise.reject(e);
|
|
3746
|
-
}
|
|
3747
|
-
};
|
|
3748
|
-
}
|
|
3749
3685
|
function transformAndValidateResultFactory(defaults) {
|
|
3750
3686
|
const factory = transformAndValidateObjectFactory(defaults);
|
|
3751
3687
|
return (classType, fn, handleValidationError) => {
|
|
3752
3688
|
const transformAndValidateObjectFn = factory(classType, fn, handleValidationError);
|
|
3753
|
-
return
|
|
3754
|
-
|
|
3689
|
+
return async (input, context) => {
|
|
3690
|
+
const {
|
|
3755
3691
|
result
|
|
3756
|
-
})
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
});
|
|
3692
|
+
} = await transformAndValidateObjectFn(input, context);
|
|
3693
|
+
return result;
|
|
3694
|
+
};
|
|
3760
3695
|
};
|
|
3761
3696
|
}
|
|
3762
3697
|
|