@qubit-ltd/common-decorator 3.8.10 → 3.8.11

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.
@@ -15,497 +15,841 @@ var Json = require('@qubit-ltd/json');
15
15
 
16
16
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
17
17
 
18
- var check = function (it) {
19
- return it && it.Math === Math && it;
20
- };
21
-
22
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
23
- var globalThis_1 =
24
- // eslint-disable-next-line es/no-global-this -- safe
25
- check(typeof globalThis == 'object' && globalThis) ||
26
- check(typeof window == 'object' && window) ||
27
- // eslint-disable-next-line no-restricted-globals -- safe
28
- check(typeof self == 'object' && self) ||
29
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
30
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
31
- // eslint-disable-next-line no-new-func -- fallback
32
- (function () { return this; })() || Function('return this')();
18
+ var decoratorMetadataV2 = {};
19
+
20
+ var esnext_function_metadata = {};
21
+
22
+ var globalThis_1;
23
+ var hasRequiredGlobalThis;
24
+
25
+ function requireGlobalThis () {
26
+ if (hasRequiredGlobalThis) return globalThis_1;
27
+ hasRequiredGlobalThis = 1;
28
+ var check = function (it) {
29
+ return it && it.Math === Math && it;
30
+ };
31
+
32
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
33
+ globalThis_1 =
34
+ // eslint-disable-next-line es/no-global-this -- safe
35
+ check(typeof globalThis == 'object' && globalThis) ||
36
+ check(typeof window == 'object' && window) ||
37
+ // eslint-disable-next-line no-restricted-globals -- safe
38
+ check(typeof self == 'object' && self) ||
39
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
40
+ check(typeof globalThis_1 == 'object' && globalThis_1) ||
41
+ // eslint-disable-next-line no-new-func -- fallback
42
+ (function () { return this; })() || Function('return this')();
43
+ return globalThis_1;
44
+ }
33
45
 
34
46
  var sharedStore = {exports: {}};
35
47
 
36
- var globalThis$9 = globalThis_1;
48
+ var isPure;
49
+ var hasRequiredIsPure;
37
50
 
38
- // eslint-disable-next-line es/no-object-defineproperty -- safe
39
- var defineProperty$2 = Object.defineProperty;
40
-
41
- var defineGlobalProperty$1 = function (key, value) {
42
- try {
43
- defineProperty$2(globalThis$9, key, { value: value, configurable: true, writable: true });
44
- } catch (error) {
45
- globalThis$9[key] = value;
46
- } return value;
47
- };
51
+ function requireIsPure () {
52
+ if (hasRequiredIsPure) return isPure;
53
+ hasRequiredIsPure = 1;
54
+ isPure = false;
55
+ return isPure;
56
+ }
48
57
 
49
- var globalThis$8 = globalThis_1;
50
- var defineGlobalProperty = defineGlobalProperty$1;
58
+ var defineGlobalProperty;
59
+ var hasRequiredDefineGlobalProperty;
60
+
61
+ function requireDefineGlobalProperty () {
62
+ if (hasRequiredDefineGlobalProperty) return defineGlobalProperty;
63
+ hasRequiredDefineGlobalProperty = 1;
64
+ var globalThis = requireGlobalThis();
65
+
66
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
67
+ var defineProperty = Object.defineProperty;
68
+
69
+ defineGlobalProperty = function (key, value) {
70
+ try {
71
+ defineProperty(globalThis, key, { value: value, configurable: true, writable: true });
72
+ } catch (error) {
73
+ globalThis[key] = value;
74
+ } return value;
75
+ };
76
+ return defineGlobalProperty;
77
+ }
51
78
 
52
- var SHARED = '__core-js_shared__';
53
- var store$1 = sharedStore.exports = globalThis$8[SHARED] || defineGlobalProperty(SHARED, {});
79
+ var hasRequiredSharedStore;
80
+
81
+ function requireSharedStore () {
82
+ if (hasRequiredSharedStore) return sharedStore.exports;
83
+ hasRequiredSharedStore = 1;
84
+ var IS_PURE = requireIsPure();
85
+ var globalThis = requireGlobalThis();
86
+ var defineGlobalProperty = requireDefineGlobalProperty();
87
+
88
+ var SHARED = '__core-js_shared__';
89
+ var store = sharedStore.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
90
+
91
+ (store.versions || (store.versions = [])).push({
92
+ version: '3.40.0',
93
+ mode: IS_PURE ? 'pure' : 'global',
94
+ copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)',
95
+ license: 'https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE',
96
+ source: 'https://github.com/zloirock/core-js'
97
+ });
98
+ return sharedStore.exports;
99
+ }
54
100
 
55
- (store$1.versions || (store$1.versions = [])).push({
56
- version: '3.39.0',
57
- mode: 'global',
58
- copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
59
- license: 'https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE',
60
- source: 'https://github.com/zloirock/core-js'
61
- });
101
+ var shared;
102
+ var hasRequiredShared;
62
103
 
63
- var sharedStoreExports = sharedStore.exports;
104
+ function requireShared () {
105
+ if (hasRequiredShared) return shared;
106
+ hasRequiredShared = 1;
107
+ var store = requireSharedStore();
64
108
 
65
- var store = sharedStoreExports;
109
+ shared = function (key, value) {
110
+ return store[key] || (store[key] = value || {});
111
+ };
112
+ return shared;
113
+ }
66
114
 
67
- var shared$1 = function (key, value) {
68
- return store[key] || (store[key] = value || {});
69
- };
115
+ var fails;
116
+ var hasRequiredFails;
117
+
118
+ function requireFails () {
119
+ if (hasRequiredFails) return fails;
120
+ hasRequiredFails = 1;
121
+ fails = function (exec) {
122
+ try {
123
+ return !!exec();
124
+ } catch (error) {
125
+ return true;
126
+ }
127
+ };
128
+ return fails;
129
+ }
70
130
 
71
- var fails$5 = function (exec) {
72
- try {
73
- return !!exec();
74
- } catch (error) {
75
- return true;
76
- }
77
- };
131
+ var functionBindNative;
132
+ var hasRequiredFunctionBindNative;
133
+
134
+ function requireFunctionBindNative () {
135
+ if (hasRequiredFunctionBindNative) return functionBindNative;
136
+ hasRequiredFunctionBindNative = 1;
137
+ var fails = requireFails();
138
+
139
+ functionBindNative = !fails(function () {
140
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
141
+ var test = (function () { /* empty */ }).bind();
142
+ // eslint-disable-next-line no-prototype-builtins -- safe
143
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
144
+ });
145
+ return functionBindNative;
146
+ }
78
147
 
79
- var fails$4 = fails$5;
148
+ var functionUncurryThis;
149
+ var hasRequiredFunctionUncurryThis;
150
+
151
+ function requireFunctionUncurryThis () {
152
+ if (hasRequiredFunctionUncurryThis) return functionUncurryThis;
153
+ hasRequiredFunctionUncurryThis = 1;
154
+ var NATIVE_BIND = requireFunctionBindNative();
155
+
156
+ var FunctionPrototype = Function.prototype;
157
+ var call = FunctionPrototype.call;
158
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
159
+ var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
160
+
161
+ functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
162
+ return function () {
163
+ return call.apply(fn, arguments);
164
+ };
165
+ };
166
+ return functionUncurryThis;
167
+ }
80
168
 
81
- var functionBindNative = !fails$4(function () {
82
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
83
- var test = (function () { /* empty */ }).bind();
84
- // eslint-disable-next-line no-prototype-builtins -- safe
85
- return typeof test != 'function' || test.hasOwnProperty('prototype');
86
- });
169
+ var isNullOrUndefined;
170
+ var hasRequiredIsNullOrUndefined;
171
+
172
+ function requireIsNullOrUndefined () {
173
+ if (hasRequiredIsNullOrUndefined) return isNullOrUndefined;
174
+ hasRequiredIsNullOrUndefined = 1;
175
+ // we can't use just `it == null` since of `document.all` special case
176
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
177
+ isNullOrUndefined = function (it) {
178
+ return it === null || it === undefined;
179
+ };
180
+ return isNullOrUndefined;
181
+ }
87
182
 
88
- var NATIVE_BIND$1 = functionBindNative;
183
+ var requireObjectCoercible;
184
+ var hasRequiredRequireObjectCoercible;
89
185
 
90
- var FunctionPrototype$1 = Function.prototype;
91
- var call$3 = FunctionPrototype$1.call;
92
- var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$3, call$3);
186
+ function requireRequireObjectCoercible () {
187
+ if (hasRequiredRequireObjectCoercible) return requireObjectCoercible;
188
+ hasRequiredRequireObjectCoercible = 1;
189
+ var isNullOrUndefined = requireIsNullOrUndefined();
93
190
 
94
- var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
95
- return function () {
96
- return call$3.apply(fn, arguments);
97
- };
98
- };
191
+ var $TypeError = TypeError;
99
192
 
100
- // we can't use just `it == null` since of `document.all` special case
101
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
102
- var isNullOrUndefined$2 = function (it) {
103
- return it === null || it === undefined;
104
- };
105
-
106
- var isNullOrUndefined$1 = isNullOrUndefined$2;
193
+ // `RequireObjectCoercible` abstract operation
194
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
195
+ requireObjectCoercible = function (it) {
196
+ if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
197
+ return it;
198
+ };
199
+ return requireObjectCoercible;
200
+ }
107
201
 
108
- var $TypeError$5 = TypeError;
202
+ var toObject;
203
+ var hasRequiredToObject;
109
204
 
110
- // `RequireObjectCoercible` abstract operation
111
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
112
- var requireObjectCoercible$1 = function (it) {
113
- if (isNullOrUndefined$1(it)) throw new $TypeError$5("Can't call method on " + it);
114
- return it;
115
- };
205
+ function requireToObject () {
206
+ if (hasRequiredToObject) return toObject;
207
+ hasRequiredToObject = 1;
208
+ var requireObjectCoercible = requireRequireObjectCoercible();
116
209
 
117
- var requireObjectCoercible = requireObjectCoercible$1;
210
+ var $Object = Object;
118
211
 
119
- var $Object$1 = Object;
212
+ // `ToObject` abstract operation
213
+ // https://tc39.es/ecma262/#sec-toobject
214
+ toObject = function (argument) {
215
+ return $Object(requireObjectCoercible(argument));
216
+ };
217
+ return toObject;
218
+ }
120
219
 
121
- // `ToObject` abstract operation
122
- // https://tc39.es/ecma262/#sec-toobject
123
- var toObject$1 = function (argument) {
124
- return $Object$1(requireObjectCoercible(argument));
125
- };
220
+ var hasOwnProperty_1;
221
+ var hasRequiredHasOwnProperty;
126
222
 
127
- var uncurryThis$2 = functionUncurryThis;
128
- var toObject = toObject$1;
223
+ function requireHasOwnProperty () {
224
+ if (hasRequiredHasOwnProperty) return hasOwnProperty_1;
225
+ hasRequiredHasOwnProperty = 1;
226
+ var uncurryThis = requireFunctionUncurryThis();
227
+ var toObject = requireToObject();
129
228
 
130
- var hasOwnProperty = uncurryThis$2({}.hasOwnProperty);
229
+ var hasOwnProperty = uncurryThis({}.hasOwnProperty);
131
230
 
132
- // `HasOwnProperty` abstract operation
133
- // https://tc39.es/ecma262/#sec-hasownproperty
134
- // eslint-disable-next-line es/no-object-hasown -- safe
135
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
136
- return hasOwnProperty(toObject(it), key);
137
- };
231
+ // `HasOwnProperty` abstract operation
232
+ // https://tc39.es/ecma262/#sec-hasownproperty
233
+ // eslint-disable-next-line es/no-object-hasown -- safe
234
+ hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
235
+ return hasOwnProperty(toObject(it), key);
236
+ };
237
+ return hasOwnProperty_1;
238
+ }
138
239
 
139
- var uncurryThis$1 = functionUncurryThis;
240
+ var uid;
241
+ var hasRequiredUid;
140
242
 
141
- var id = 0;
142
- var postfix = Math.random();
143
- var toString = uncurryThis$1(1.0.toString);
243
+ function requireUid () {
244
+ if (hasRequiredUid) return uid;
245
+ hasRequiredUid = 1;
246
+ var uncurryThis = requireFunctionUncurryThis();
144
247
 
145
- var uid$1 = function (key) {
146
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
147
- };
248
+ var id = 0;
249
+ var postfix = Math.random();
250
+ var toString = uncurryThis(1.0.toString);
148
251
 
149
- var globalThis$7 = globalThis_1;
252
+ uid = function (key) {
253
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
254
+ };
255
+ return uid;
256
+ }
150
257
 
151
- var navigator = globalThis$7.navigator;
152
- var userAgent$1 = navigator && navigator.userAgent;
258
+ var environmentUserAgent;
259
+ var hasRequiredEnvironmentUserAgent;
153
260
 
154
- var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
261
+ function requireEnvironmentUserAgent () {
262
+ if (hasRequiredEnvironmentUserAgent) return environmentUserAgent;
263
+ hasRequiredEnvironmentUserAgent = 1;
264
+ var globalThis = requireGlobalThis();
155
265
 
156
- var globalThis$6 = globalThis_1;
157
- var userAgent = environmentUserAgent;
266
+ var navigator = globalThis.navigator;
267
+ var userAgent = navigator && navigator.userAgent;
158
268
 
159
- var process = globalThis$6.process;
160
- var Deno = globalThis$6.Deno;
161
- var versions = process && process.versions || Deno && Deno.version;
162
- var v8 = versions && versions.v8;
163
- var match, version;
269
+ environmentUserAgent = userAgent ? String(userAgent) : '';
270
+ return environmentUserAgent;
271
+ }
164
272
 
165
- if (v8) {
166
- match = v8.split('.');
167
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
168
- // but their correct versions are not interesting for us
169
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
273
+ var environmentV8Version;
274
+ var hasRequiredEnvironmentV8Version;
275
+
276
+ function requireEnvironmentV8Version () {
277
+ if (hasRequiredEnvironmentV8Version) return environmentV8Version;
278
+ hasRequiredEnvironmentV8Version = 1;
279
+ var globalThis = requireGlobalThis();
280
+ var userAgent = requireEnvironmentUserAgent();
281
+
282
+ var process = globalThis.process;
283
+ var Deno = globalThis.Deno;
284
+ var versions = process && process.versions || Deno && Deno.version;
285
+ var v8 = versions && versions.v8;
286
+ var match, version;
287
+
288
+ if (v8) {
289
+ match = v8.split('.');
290
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
291
+ // but their correct versions are not interesting for us
292
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
293
+ }
294
+
295
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
296
+ // so check `userAgent` even if `.v8` exists, but 0
297
+ if (!version && userAgent) {
298
+ match = userAgent.match(/Edge\/(\d+)/);
299
+ if (!match || match[1] >= 74) {
300
+ match = userAgent.match(/Chrome\/(\d+)/);
301
+ if (match) version = +match[1];
302
+ }
303
+ }
304
+
305
+ environmentV8Version = version;
306
+ return environmentV8Version;
170
307
  }
171
308
 
172
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
173
- // so check `userAgent` even if `.v8` exists, but 0
174
- if (!version && userAgent) {
175
- match = userAgent.match(/Edge\/(\d+)/);
176
- if (!match || match[1] >= 74) {
177
- match = userAgent.match(/Chrome\/(\d+)/);
178
- if (match) version = +match[1];
179
- }
309
+ var symbolConstructorDetection;
310
+ var hasRequiredSymbolConstructorDetection;
311
+
312
+ function requireSymbolConstructorDetection () {
313
+ if (hasRequiredSymbolConstructorDetection) return symbolConstructorDetection;
314
+ hasRequiredSymbolConstructorDetection = 1;
315
+ /* eslint-disable es/no-symbol -- required for testing */
316
+ var V8_VERSION = requireEnvironmentV8Version();
317
+ var fails = requireFails();
318
+ var globalThis = requireGlobalThis();
319
+
320
+ var $String = globalThis.String;
321
+
322
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
323
+ symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
324
+ var symbol = Symbol('symbol detection');
325
+ // Chrome 38 Symbol has incorrect toString conversion
326
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
327
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
328
+ // of course, fail.
329
+ return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
330
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
331
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
332
+ });
333
+ return symbolConstructorDetection;
180
334
  }
181
335
 
182
- var environmentV8Version = version;
183
-
184
- /* eslint-disable es/no-symbol -- required for testing */
185
- var V8_VERSION = environmentV8Version;
186
- var fails$3 = fails$5;
187
- var globalThis$5 = globalThis_1;
188
-
189
- var $String$2 = globalThis$5.String;
190
-
191
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
192
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$3(function () {
193
- var symbol = Symbol('symbol detection');
194
- // Chrome 38 Symbol has incorrect toString conversion
195
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
196
- // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
197
- // of course, fail.
198
- return !$String$2(symbol) || !(Object(symbol) instanceof Symbol) ||
199
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
200
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
201
- });
336
+ var useSymbolAsUid;
337
+ var hasRequiredUseSymbolAsUid;
202
338
 
203
- /* eslint-disable es/no-symbol -- required for testing */
204
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
205
-
206
- var useSymbolAsUid = NATIVE_SYMBOL$1 &&
207
- !Symbol.sham &&
208
- typeof Symbol.iterator == 'symbol';
209
-
210
- var globalThis$4 = globalThis_1;
211
- var shared = shared$1;
212
- var hasOwn$1 = hasOwnProperty_1;
213
- var uid = uid$1;
214
- var NATIVE_SYMBOL = symbolConstructorDetection;
215
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
216
-
217
- var Symbol$1 = globalThis$4.Symbol;
218
- var WellKnownSymbolsStore = shared('wks');
219
- var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
220
-
221
- var wellKnownSymbol$3 = function (name) {
222
- if (!hasOwn$1(WellKnownSymbolsStore, name)) {
223
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$1(Symbol$1, name)
224
- ? Symbol$1[name]
225
- : createWellKnownSymbol('Symbol.' + name);
226
- } return WellKnownSymbolsStore[name];
227
- };
339
+ function requireUseSymbolAsUid () {
340
+ if (hasRequiredUseSymbolAsUid) return useSymbolAsUid;
341
+ hasRequiredUseSymbolAsUid = 1;
342
+ /* eslint-disable es/no-symbol -- required for testing */
343
+ var NATIVE_SYMBOL = requireSymbolConstructorDetection();
344
+
345
+ useSymbolAsUid = NATIVE_SYMBOL &&
346
+ !Symbol.sham &&
347
+ typeof Symbol.iterator == 'symbol';
348
+ return useSymbolAsUid;
349
+ }
350
+
351
+ var wellKnownSymbol;
352
+ var hasRequiredWellKnownSymbol;
353
+
354
+ function requireWellKnownSymbol () {
355
+ if (hasRequiredWellKnownSymbol) return wellKnownSymbol;
356
+ hasRequiredWellKnownSymbol = 1;
357
+ var globalThis = requireGlobalThis();
358
+ var shared = requireShared();
359
+ var hasOwn = requireHasOwnProperty();
360
+ var uid = requireUid();
361
+ var NATIVE_SYMBOL = requireSymbolConstructorDetection();
362
+ var USE_SYMBOL_AS_UID = requireUseSymbolAsUid();
363
+
364
+ var Symbol = globalThis.Symbol;
365
+ var WellKnownSymbolsStore = shared('wks');
366
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
367
+
368
+ wellKnownSymbol = function (name) {
369
+ if (!hasOwn(WellKnownSymbolsStore, name)) {
370
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
371
+ ? Symbol[name]
372
+ : createWellKnownSymbol('Symbol.' + name);
373
+ } return WellKnownSymbolsStore[name];
374
+ };
375
+ return wellKnownSymbol;
376
+ }
228
377
 
229
378
  var objectDefineProperty = {};
230
379
 
231
- var fails$2 = fails$5;
380
+ var descriptors;
381
+ var hasRequiredDescriptors;
232
382
 
233
- // Detect IE8's incomplete defineProperty implementation
234
- var descriptors = !fails$2(function () {
235
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
236
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
237
- });
383
+ function requireDescriptors () {
384
+ if (hasRequiredDescriptors) return descriptors;
385
+ hasRequiredDescriptors = 1;
386
+ var fails = requireFails();
238
387
 
239
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
240
- var documentAll = typeof document == 'object' && document.all;
388
+ // Detect IE8's incomplete defineProperty implementation
389
+ descriptors = !fails(function () {
390
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
391
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
392
+ });
393
+ return descriptors;
394
+ }
241
395
 
242
- // `IsCallable` abstract operation
243
- // https://tc39.es/ecma262/#sec-iscallable
244
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
245
- var isCallable$5 = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
246
- return typeof argument == 'function' || argument === documentAll;
247
- } : function (argument) {
248
- return typeof argument == 'function';
249
- };
396
+ var isCallable;
397
+ var hasRequiredIsCallable;
398
+
399
+ function requireIsCallable () {
400
+ if (hasRequiredIsCallable) return isCallable;
401
+ hasRequiredIsCallable = 1;
402
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
403
+ var documentAll = typeof document == 'object' && document.all;
404
+
405
+ // `IsCallable` abstract operation
406
+ // https://tc39.es/ecma262/#sec-iscallable
407
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
408
+ isCallable = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
409
+ return typeof argument == 'function' || argument === documentAll;
410
+ } : function (argument) {
411
+ return typeof argument == 'function';
412
+ };
413
+ return isCallable;
414
+ }
250
415
 
251
- var isCallable$4 = isCallable$5;
416
+ var isObject;
417
+ var hasRequiredIsObject;
252
418
 
253
- var isObject$4 = function (it) {
254
- return typeof it == 'object' ? it !== null : isCallable$4(it);
255
- };
419
+ function requireIsObject () {
420
+ if (hasRequiredIsObject) return isObject;
421
+ hasRequiredIsObject = 1;
422
+ var isCallable = requireIsCallable();
256
423
 
257
- var globalThis$3 = globalThis_1;
258
- var isObject$3 = isObject$4;
424
+ isObject = function (it) {
425
+ return typeof it == 'object' ? it !== null : isCallable(it);
426
+ };
427
+ return isObject;
428
+ }
259
429
 
260
- var document$1 = globalThis$3.document;
261
- // typeof document.createElement is 'object' in old IE
262
- var EXISTS = isObject$3(document$1) && isObject$3(document$1.createElement);
430
+ var documentCreateElement;
431
+ var hasRequiredDocumentCreateElement;
263
432
 
264
- var documentCreateElement = function (it) {
265
- return EXISTS ? document$1.createElement(it) : {};
266
- };
433
+ function requireDocumentCreateElement () {
434
+ if (hasRequiredDocumentCreateElement) return documentCreateElement;
435
+ hasRequiredDocumentCreateElement = 1;
436
+ var globalThis = requireGlobalThis();
437
+ var isObject = requireIsObject();
267
438
 
268
- var DESCRIPTORS$2 = descriptors;
269
- var fails$1 = fails$5;
270
- var createElement = documentCreateElement;
439
+ var document = globalThis.document;
440
+ // typeof document.createElement is 'object' in old IE
441
+ var EXISTS = isObject(document) && isObject(document.createElement);
271
442
 
272
- // Thanks to IE8 for its funny defineProperty
273
- var ie8DomDefine = !DESCRIPTORS$2 && !fails$1(function () {
274
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
275
- return Object.defineProperty(createElement('div'), 'a', {
276
- get: function () { return 7; }
277
- }).a !== 7;
278
- });
443
+ documentCreateElement = function (it) {
444
+ return EXISTS ? document.createElement(it) : {};
445
+ };
446
+ return documentCreateElement;
447
+ }
279
448
 
280
- var DESCRIPTORS$1 = descriptors;
281
- var fails = fails$5;
282
-
283
- // V8 ~ Chrome 36-
284
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
285
- var v8PrototypeDefineBug = DESCRIPTORS$1 && fails(function () {
286
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
287
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
288
- value: 42,
289
- writable: false
290
- }).prototype !== 42;
291
- });
449
+ var ie8DomDefine;
450
+ var hasRequiredIe8DomDefine;
451
+
452
+ function requireIe8DomDefine () {
453
+ if (hasRequiredIe8DomDefine) return ie8DomDefine;
454
+ hasRequiredIe8DomDefine = 1;
455
+ var DESCRIPTORS = requireDescriptors();
456
+ var fails = requireFails();
457
+ var createElement = requireDocumentCreateElement();
458
+
459
+ // Thanks to IE8 for its funny defineProperty
460
+ ie8DomDefine = !DESCRIPTORS && !fails(function () {
461
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
462
+ return Object.defineProperty(createElement('div'), 'a', {
463
+ get: function () { return 7; }
464
+ }).a !== 7;
465
+ });
466
+ return ie8DomDefine;
467
+ }
292
468
 
293
- var isObject$2 = isObject$4;
469
+ var v8PrototypeDefineBug;
470
+ var hasRequiredV8PrototypeDefineBug;
471
+
472
+ function requireV8PrototypeDefineBug () {
473
+ if (hasRequiredV8PrototypeDefineBug) return v8PrototypeDefineBug;
474
+ hasRequiredV8PrototypeDefineBug = 1;
475
+ var DESCRIPTORS = requireDescriptors();
476
+ var fails = requireFails();
477
+
478
+ // V8 ~ Chrome 36-
479
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
480
+ v8PrototypeDefineBug = DESCRIPTORS && fails(function () {
481
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
482
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
483
+ value: 42,
484
+ writable: false
485
+ }).prototype !== 42;
486
+ });
487
+ return v8PrototypeDefineBug;
488
+ }
294
489
 
295
- var $String$1 = String;
296
- var $TypeError$4 = TypeError;
490
+ var anObject;
491
+ var hasRequiredAnObject;
297
492
 
298
- // `Assert: Type(argument) is Object`
299
- var anObject$1 = function (argument) {
300
- if (isObject$2(argument)) return argument;
301
- throw new $TypeError$4($String$1(argument) + ' is not an object');
302
- };
493
+ function requireAnObject () {
494
+ if (hasRequiredAnObject) return anObject;
495
+ hasRequiredAnObject = 1;
496
+ var isObject = requireIsObject();
303
497
 
304
- var NATIVE_BIND = functionBindNative;
498
+ var $String = String;
499
+ var $TypeError = TypeError;
305
500
 
306
- var call$2 = Function.prototype.call;
501
+ // `Assert: Type(argument) is Object`
502
+ anObject = function (argument) {
503
+ if (isObject(argument)) return argument;
504
+ throw new $TypeError($String(argument) + ' is not an object');
505
+ };
506
+ return anObject;
507
+ }
307
508
 
308
- var functionCall = NATIVE_BIND ? call$2.bind(call$2) : function () {
309
- return call$2.apply(call$2, arguments);
310
- };
509
+ var functionCall;
510
+ var hasRequiredFunctionCall;
311
511
 
312
- var globalThis$2 = globalThis_1;
313
- var isCallable$3 = isCallable$5;
512
+ function requireFunctionCall () {
513
+ if (hasRequiredFunctionCall) return functionCall;
514
+ hasRequiredFunctionCall = 1;
515
+ var NATIVE_BIND = requireFunctionBindNative();
314
516
 
315
- var aFunction = function (argument) {
316
- return isCallable$3(argument) ? argument : undefined;
317
- };
517
+ var call = Function.prototype.call;
518
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
519
+ functionCall = NATIVE_BIND ? call.bind(call) : function () {
520
+ return call.apply(call, arguments);
521
+ };
522
+ return functionCall;
523
+ }
318
524
 
319
- var getBuiltIn$1 = function (namespace, method) {
320
- return arguments.length < 2 ? aFunction(globalThis$2[namespace]) : globalThis$2[namespace] && globalThis$2[namespace][method];
321
- };
525
+ var getBuiltIn;
526
+ var hasRequiredGetBuiltIn;
322
527
 
323
- var uncurryThis = functionUncurryThis;
528
+ function requireGetBuiltIn () {
529
+ if (hasRequiredGetBuiltIn) return getBuiltIn;
530
+ hasRequiredGetBuiltIn = 1;
531
+ var globalThis = requireGlobalThis();
532
+ var isCallable = requireIsCallable();
324
533
 
325
- var objectIsPrototypeOf = uncurryThis({}.isPrototypeOf);
534
+ var aFunction = function (argument) {
535
+ return isCallable(argument) ? argument : undefined;
536
+ };
326
537
 
327
- var getBuiltIn = getBuiltIn$1;
328
- var isCallable$2 = isCallable$5;
329
- var isPrototypeOf = objectIsPrototypeOf;
330
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
538
+ getBuiltIn = function (namespace, method) {
539
+ return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method];
540
+ };
541
+ return getBuiltIn;
542
+ }
331
543
 
332
- var $Object = Object;
544
+ var objectIsPrototypeOf;
545
+ var hasRequiredObjectIsPrototypeOf;
333
546
 
334
- var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
335
- return typeof it == 'symbol';
336
- } : function (it) {
337
- var $Symbol = getBuiltIn('Symbol');
338
- return isCallable$2($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
339
- };
547
+ function requireObjectIsPrototypeOf () {
548
+ if (hasRequiredObjectIsPrototypeOf) return objectIsPrototypeOf;
549
+ hasRequiredObjectIsPrototypeOf = 1;
550
+ var uncurryThis = requireFunctionUncurryThis();
340
551
 
341
- var $String = String;
552
+ objectIsPrototypeOf = uncurryThis({}.isPrototypeOf);
553
+ return objectIsPrototypeOf;
554
+ }
342
555
 
343
- var tryToString$1 = function (argument) {
344
- try {
345
- return $String(argument);
346
- } catch (error) {
347
- return 'Object';
348
- }
349
- };
556
+ var isSymbol;
557
+ var hasRequiredIsSymbol;
558
+
559
+ function requireIsSymbol () {
560
+ if (hasRequiredIsSymbol) return isSymbol;
561
+ hasRequiredIsSymbol = 1;
562
+ var getBuiltIn = requireGetBuiltIn();
563
+ var isCallable = requireIsCallable();
564
+ var isPrototypeOf = requireObjectIsPrototypeOf();
565
+ var USE_SYMBOL_AS_UID = requireUseSymbolAsUid();
566
+
567
+ var $Object = Object;
568
+
569
+ isSymbol = USE_SYMBOL_AS_UID ? function (it) {
570
+ return typeof it == 'symbol';
571
+ } : function (it) {
572
+ var $Symbol = getBuiltIn('Symbol');
573
+ return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
574
+ };
575
+ return isSymbol;
576
+ }
350
577
 
351
- var isCallable$1 = isCallable$5;
352
- var tryToString = tryToString$1;
578
+ var tryToString;
579
+ var hasRequiredTryToString;
580
+
581
+ function requireTryToString () {
582
+ if (hasRequiredTryToString) return tryToString;
583
+ hasRequiredTryToString = 1;
584
+ var $String = String;
585
+
586
+ tryToString = function (argument) {
587
+ try {
588
+ return $String(argument);
589
+ } catch (error) {
590
+ return 'Object';
591
+ }
592
+ };
593
+ return tryToString;
594
+ }
353
595
 
354
- var $TypeError$3 = TypeError;
596
+ var aCallable;
597
+ var hasRequiredACallable;
355
598
 
356
- // `Assert: IsCallable(argument) is true`
357
- var aCallable$1 = function (argument) {
358
- if (isCallable$1(argument)) return argument;
359
- throw new $TypeError$3(tryToString(argument) + ' is not a function');
360
- };
599
+ function requireACallable () {
600
+ if (hasRequiredACallable) return aCallable;
601
+ hasRequiredACallable = 1;
602
+ var isCallable = requireIsCallable();
603
+ var tryToString = requireTryToString();
361
604
 
362
- var aCallable = aCallable$1;
363
- var isNullOrUndefined = isNullOrUndefined$2;
605
+ var $TypeError = TypeError;
364
606
 
365
- // `GetMethod` abstract operation
366
- // https://tc39.es/ecma262/#sec-getmethod
367
- var getMethod$1 = function (V, P) {
368
- var func = V[P];
369
- return isNullOrUndefined(func) ? undefined : aCallable(func);
370
- };
607
+ // `Assert: IsCallable(argument) is true`
608
+ aCallable = function (argument) {
609
+ if (isCallable(argument)) return argument;
610
+ throw new $TypeError(tryToString(argument) + ' is not a function');
611
+ };
612
+ return aCallable;
613
+ }
371
614
 
372
- var call$1 = functionCall;
373
- var isCallable = isCallable$5;
374
- var isObject$1 = isObject$4;
615
+ var getMethod;
616
+ var hasRequiredGetMethod;
617
+
618
+ function requireGetMethod () {
619
+ if (hasRequiredGetMethod) return getMethod;
620
+ hasRequiredGetMethod = 1;
621
+ var aCallable = requireACallable();
622
+ var isNullOrUndefined = requireIsNullOrUndefined();
623
+
624
+ // `GetMethod` abstract operation
625
+ // https://tc39.es/ecma262/#sec-getmethod
626
+ getMethod = function (V, P) {
627
+ var func = V[P];
628
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
629
+ };
630
+ return getMethod;
631
+ }
375
632
 
376
- var $TypeError$2 = TypeError;
633
+ var ordinaryToPrimitive;
634
+ var hasRequiredOrdinaryToPrimitive;
635
+
636
+ function requireOrdinaryToPrimitive () {
637
+ if (hasRequiredOrdinaryToPrimitive) return ordinaryToPrimitive;
638
+ hasRequiredOrdinaryToPrimitive = 1;
639
+ var call = requireFunctionCall();
640
+ var isCallable = requireIsCallable();
641
+ var isObject = requireIsObject();
642
+
643
+ var $TypeError = TypeError;
644
+
645
+ // `OrdinaryToPrimitive` abstract operation
646
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
647
+ ordinaryToPrimitive = function (input, pref) {
648
+ var fn, val;
649
+ if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
650
+ if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
651
+ if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
652
+ throw new $TypeError("Can't convert object to primitive value");
653
+ };
654
+ return ordinaryToPrimitive;
655
+ }
377
656
 
378
- // `OrdinaryToPrimitive` abstract operation
379
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
380
- var ordinaryToPrimitive$1 = function (input, pref) {
381
- var fn, val;
382
- if (pref === 'string' && isCallable(fn = input.toString) && !isObject$1(val = call$1(fn, input))) return val;
383
- if (isCallable(fn = input.valueOf) && !isObject$1(val = call$1(fn, input))) return val;
384
- if (pref !== 'string' && isCallable(fn = input.toString) && !isObject$1(val = call$1(fn, input))) return val;
385
- throw new $TypeError$2("Can't convert object to primitive value");
386
- };
657
+ var toPrimitive;
658
+ var hasRequiredToPrimitive;
659
+
660
+ function requireToPrimitive () {
661
+ if (hasRequiredToPrimitive) return toPrimitive;
662
+ hasRequiredToPrimitive = 1;
663
+ var call = requireFunctionCall();
664
+ var isObject = requireIsObject();
665
+ var isSymbol = requireIsSymbol();
666
+ var getMethod = requireGetMethod();
667
+ var ordinaryToPrimitive = requireOrdinaryToPrimitive();
668
+ var wellKnownSymbol = requireWellKnownSymbol();
669
+
670
+ var $TypeError = TypeError;
671
+ var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
672
+
673
+ // `ToPrimitive` abstract operation
674
+ // https://tc39.es/ecma262/#sec-toprimitive
675
+ toPrimitive = function (input, pref) {
676
+ if (!isObject(input) || isSymbol(input)) return input;
677
+ var exoticToPrim = getMethod(input, TO_PRIMITIVE);
678
+ var result;
679
+ if (exoticToPrim) {
680
+ if (pref === undefined) pref = 'default';
681
+ result = call(exoticToPrim, input, pref);
682
+ if (!isObject(result) || isSymbol(result)) return result;
683
+ throw new $TypeError("Can't convert object to primitive value");
684
+ }
685
+ if (pref === undefined) pref = 'number';
686
+ return ordinaryToPrimitive(input, pref);
687
+ };
688
+ return toPrimitive;
689
+ }
387
690
 
388
- var call = functionCall;
389
- var isObject = isObject$4;
390
- var isSymbol$1 = isSymbol$2;
391
- var getMethod = getMethod$1;
392
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
393
- var wellKnownSymbol$2 = wellKnownSymbol$3;
394
-
395
- var $TypeError$1 = TypeError;
396
- var TO_PRIMITIVE = wellKnownSymbol$2('toPrimitive');
397
-
398
- // `ToPrimitive` abstract operation
399
- // https://tc39.es/ecma262/#sec-toprimitive
400
- var toPrimitive$1 = function (input, pref) {
401
- if (!isObject(input) || isSymbol$1(input)) return input;
402
- var exoticToPrim = getMethod(input, TO_PRIMITIVE);
403
- var result;
404
- if (exoticToPrim) {
405
- if (pref === undefined) pref = 'default';
406
- result = call(exoticToPrim, input, pref);
407
- if (!isObject(result) || isSymbol$1(result)) return result;
408
- throw new $TypeError$1("Can't convert object to primitive value");
409
- }
410
- if (pref === undefined) pref = 'number';
411
- return ordinaryToPrimitive(input, pref);
412
- };
691
+ var toPropertyKey;
692
+ var hasRequiredToPropertyKey;
693
+
694
+ function requireToPropertyKey () {
695
+ if (hasRequiredToPropertyKey) return toPropertyKey;
696
+ hasRequiredToPropertyKey = 1;
697
+ var toPrimitive = requireToPrimitive();
698
+ var isSymbol = requireIsSymbol();
699
+
700
+ // `ToPropertyKey` abstract operation
701
+ // https://tc39.es/ecma262/#sec-topropertykey
702
+ toPropertyKey = function (argument) {
703
+ var key = toPrimitive(argument, 'string');
704
+ return isSymbol(key) ? key : key + '';
705
+ };
706
+ return toPropertyKey;
707
+ }
413
708
 
414
- var toPrimitive = toPrimitive$1;
415
- var isSymbol = isSymbol$2;
709
+ var hasRequiredObjectDefineProperty;
710
+
711
+ function requireObjectDefineProperty () {
712
+ if (hasRequiredObjectDefineProperty) return objectDefineProperty;
713
+ hasRequiredObjectDefineProperty = 1;
714
+ var DESCRIPTORS = requireDescriptors();
715
+ var IE8_DOM_DEFINE = requireIe8DomDefine();
716
+ var V8_PROTOTYPE_DEFINE_BUG = requireV8PrototypeDefineBug();
717
+ var anObject = requireAnObject();
718
+ var toPropertyKey = requireToPropertyKey();
719
+
720
+ var $TypeError = TypeError;
721
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
722
+ var $defineProperty = Object.defineProperty;
723
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
724
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
725
+ var ENUMERABLE = 'enumerable';
726
+ var CONFIGURABLE = 'configurable';
727
+ var WRITABLE = 'writable';
728
+
729
+ // `Object.defineProperty` method
730
+ // https://tc39.es/ecma262/#sec-object.defineproperty
731
+ objectDefineProperty.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
732
+ anObject(O);
733
+ P = toPropertyKey(P);
734
+ anObject(Attributes);
735
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
736
+ var current = $getOwnPropertyDescriptor(O, P);
737
+ if (current && current[WRITABLE]) {
738
+ O[P] = Attributes.value;
739
+ Attributes = {
740
+ configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
741
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
742
+ writable: false
743
+ };
744
+ }
745
+ } return $defineProperty(O, P, Attributes);
746
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
747
+ anObject(O);
748
+ P = toPropertyKey(P);
749
+ anObject(Attributes);
750
+ if (IE8_DOM_DEFINE) try {
751
+ return $defineProperty(O, P, Attributes);
752
+ } catch (error) { /* empty */ }
753
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
754
+ if ('value' in Attributes) O[P] = Attributes.value;
755
+ return O;
756
+ };
757
+ return objectDefineProperty;
758
+ }
416
759
 
417
- // `ToPropertyKey` abstract operation
418
- // https://tc39.es/ecma262/#sec-topropertykey
419
- var toPropertyKey$1 = function (argument) {
420
- var key = toPrimitive(argument, 'string');
421
- return isSymbol(key) ? key : key + '';
422
- };
760
+ var hasRequiredEsnext_function_metadata;
761
+
762
+ function requireEsnext_function_metadata () {
763
+ if (hasRequiredEsnext_function_metadata) return esnext_function_metadata;
764
+ hasRequiredEsnext_function_metadata = 1;
765
+ var wellKnownSymbol = requireWellKnownSymbol();
766
+ var defineProperty = requireObjectDefineProperty().f;
767
+
768
+ var METADATA = wellKnownSymbol('metadata');
769
+ var FunctionPrototype = Function.prototype;
770
+
771
+ // Function.prototype[@@metadata]
772
+ // https://github.com/tc39/proposal-decorator-metadata
773
+ if (FunctionPrototype[METADATA] === undefined) {
774
+ defineProperty(FunctionPrototype, METADATA, {
775
+ value: null
776
+ });
777
+ }
778
+ return esnext_function_metadata;
779
+ }
423
780
 
424
- var DESCRIPTORS = descriptors;
425
- var IE8_DOM_DEFINE = ie8DomDefine;
426
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
427
- var anObject = anObject$1;
428
- var toPropertyKey = toPropertyKey$1;
429
-
430
- var $TypeError = TypeError;
431
- // eslint-disable-next-line es/no-object-defineproperty -- safe
432
- var $defineProperty = Object.defineProperty;
433
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
434
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
435
- var ENUMERABLE = 'enumerable';
436
- var CONFIGURABLE = 'configurable';
437
- var WRITABLE = 'writable';
438
-
439
- // `Object.defineProperty` method
440
- // https://tc39.es/ecma262/#sec-object.defineproperty
441
- objectDefineProperty.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
442
- anObject(O);
443
- P = toPropertyKey(P);
444
- anObject(Attributes);
445
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
446
- var current = $getOwnPropertyDescriptor(O, P);
447
- if (current && current[WRITABLE]) {
448
- O[P] = Attributes.value;
449
- Attributes = {
450
- configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
451
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
452
- writable: false
453
- };
454
- }
455
- } return $defineProperty(O, P, Attributes);
456
- } : $defineProperty : function defineProperty(O, P, Attributes) {
457
- anObject(O);
458
- P = toPropertyKey(P);
459
- anObject(Attributes);
460
- if (IE8_DOM_DEFINE) try {
461
- return $defineProperty(O, P, Attributes);
462
- } catch (error) { /* empty */ }
463
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
464
- if ('value' in Attributes) O[P] = Attributes.value;
465
- return O;
466
- };
781
+ var esnext_symbol_metadata = {};
467
782
 
468
- var wellKnownSymbol$1 = wellKnownSymbol$3;
469
- var defineProperty$1 = objectDefineProperty.f;
783
+ var path;
784
+ var hasRequiredPath;
470
785
 
471
- var METADATA = wellKnownSymbol$1('metadata');
472
- var FunctionPrototype = Function.prototype;
786
+ function requirePath () {
787
+ if (hasRequiredPath) return path;
788
+ hasRequiredPath = 1;
789
+ var globalThis = requireGlobalThis();
473
790
 
474
- // Function.prototype[@@metadata]
475
- // https://github.com/tc39/proposal-decorator-metadata
476
- if (FunctionPrototype[METADATA] === undefined) {
477
- defineProperty$1(FunctionPrototype, METADATA, {
478
- value: null
479
- });
791
+ path = globalThis;
792
+ return path;
480
793
  }
481
794
 
482
- var globalThis$1 = globalThis_1;
795
+ var wellKnownSymbolWrapped = {};
483
796
 
484
- var path$1 = globalThis$1;
797
+ var hasRequiredWellKnownSymbolWrapped;
485
798
 
486
- var wellKnownSymbolWrapped = {};
799
+ function requireWellKnownSymbolWrapped () {
800
+ if (hasRequiredWellKnownSymbolWrapped) return wellKnownSymbolWrapped;
801
+ hasRequiredWellKnownSymbolWrapped = 1;
802
+ var wellKnownSymbol = requireWellKnownSymbol();
487
803
 
488
- var wellKnownSymbol = wellKnownSymbol$3;
804
+ wellKnownSymbolWrapped.f = wellKnownSymbol;
805
+ return wellKnownSymbolWrapped;
806
+ }
489
807
 
490
- wellKnownSymbolWrapped.f = wellKnownSymbol;
808
+ var wellKnownSymbolDefine;
809
+ var hasRequiredWellKnownSymbolDefine;
810
+
811
+ function requireWellKnownSymbolDefine () {
812
+ if (hasRequiredWellKnownSymbolDefine) return wellKnownSymbolDefine;
813
+ hasRequiredWellKnownSymbolDefine = 1;
814
+ var path = requirePath();
815
+ var hasOwn = requireHasOwnProperty();
816
+ var wrappedWellKnownSymbolModule = requireWellKnownSymbolWrapped();
817
+ var defineProperty = requireObjectDefineProperty().f;
818
+
819
+ wellKnownSymbolDefine = function (NAME) {
820
+ var Symbol = path.Symbol || (path.Symbol = {});
821
+ if (!hasOwn(Symbol, NAME)) defineProperty(Symbol, NAME, {
822
+ value: wrappedWellKnownSymbolModule.f(NAME)
823
+ });
824
+ };
825
+ return wellKnownSymbolDefine;
826
+ }
491
827
 
492
- var path = path$1;
493
- var hasOwn = hasOwnProperty_1;
494
- var wrappedWellKnownSymbolModule = wellKnownSymbolWrapped;
495
- var defineProperty = objectDefineProperty.f;
828
+ var hasRequiredEsnext_symbol_metadata;
496
829
 
497
- var wellKnownSymbolDefine = function (NAME) {
498
- var Symbol = path.Symbol || (path.Symbol = {});
499
- if (!hasOwn(Symbol, NAME)) defineProperty(Symbol, NAME, {
500
- value: wrappedWellKnownSymbolModule.f(NAME)
501
- });
502
- };
830
+ function requireEsnext_symbol_metadata () {
831
+ if (hasRequiredEsnext_symbol_metadata) return esnext_symbol_metadata;
832
+ hasRequiredEsnext_symbol_metadata = 1;
833
+ var defineWellKnownSymbol = requireWellKnownSymbolDefine();
834
+
835
+ // `Symbol.metadata` well-known symbol
836
+ // https://github.com/tc39/proposal-decorators
837
+ defineWellKnownSymbol('metadata');
838
+ return esnext_symbol_metadata;
839
+ }
503
840
 
504
- var defineWellKnownSymbol = wellKnownSymbolDefine;
841
+ var hasRequiredDecoratorMetadataV2;
842
+
843
+ function requireDecoratorMetadataV2 () {
844
+ if (hasRequiredDecoratorMetadataV2) return decoratorMetadataV2;
845
+ hasRequiredDecoratorMetadataV2 = 1;
846
+ // https://github.com/tc39/proposal-decorator-metadata
847
+ requireEsnext_function_metadata();
848
+ requireEsnext_symbol_metadata();
849
+ return decoratorMetadataV2;
850
+ }
505
851
 
506
- // `Symbol.metadata` well-known symbol
507
- // https://github.com/tc39/proposal-decorators
508
- defineWellKnownSymbol('metadata');
852
+ requireDecoratorMetadataV2();
509
853
 
510
854
  ////////////////////////////////////////////////////////////////////////////////
511
855
  //
@@ -763,7 +1107,7 @@ var DefaultToJsonOptions = /*#__PURE__*/_createClass(function DefaultToJsonOptio
763
1107
  });
764
1108
 
765
1109
  function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
766
- function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1110
+ function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
767
1111
 
768
1112
  /**
769
1113
  * The map storing the default values of options of different aspects.
@@ -1178,10 +1522,10 @@ function enumNormalizer(EnumClass) {
1178
1522
  * @author Haixing Hu
1179
1523
  */
1180
1524
  function defaultNormalizer(value) {
1181
- var _context, _context2, _context2$path;
1525
+ var _context, _context$path;
1182
1526
  var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1183
- (_context = context) !== null && _context !== void 0 ? _context : context = {};
1184
- (_context2$path = (_context2 = context).path) !== null && _context2$path !== void 0 ? _context2$path : _context2.path = '';
1527
+ context !== null && context !== void 0 ? context : context = {};
1528
+ (_context$path = (_context = context).path) !== null && _context$path !== void 0 ? _context$path : _context.path = '';
1185
1529
  var info = typeInfo(value);
1186
1530
  switch (info.category) {
1187
1531
  case 'string':
@@ -1266,7 +1610,7 @@ function getDefaultInstance(Class) {
1266
1610
  return obj;
1267
1611
  }
1268
1612
 
1269
- function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
1613
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: true } : { done: false, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = true, u = false; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = true, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
1270
1614
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
1271
1615
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
1272
1616
 
@@ -1480,11 +1824,10 @@ function getFieldMetadata(metadata, field, key) {
1480
1824
  * @author Haixing Hu
1481
1825
  */
1482
1826
  function getFieldElementType(Class, field) {
1483
- var _path, _options;
1484
1827
  var path = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
1485
1828
  var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
1486
- (_path = path) !== null && _path !== void 0 ? _path : path = ".".concat(field);
1487
- (_options = options) !== null && _options !== void 0 ? _options : options = {};
1829
+ path !== null && path !== void 0 ? path : path = ".".concat(field);
1830
+ options !== null && options !== void 0 ? options : options = {};
1488
1831
  // try to find the annotated element type information
1489
1832
  var metadata = classMetadataCache.get(Class);
1490
1833
  var annotatedElementType = getFieldMetadata(metadata, field, KEY_FIELD_ELEMENT_TYPE);
@@ -1549,11 +1892,10 @@ function getFieldElementType(Class, field) {
1549
1892
  * @author Haixing Hu
1550
1893
  */
1551
1894
  function getFieldType(Class, field) {
1552
- var _path, _options;
1553
1895
  var path = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
1554
1896
  var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
1555
- (_path = path) !== null && _path !== void 0 ? _path : path = ".".concat(field);
1556
- (_options = options) !== null && _options !== void 0 ? _options : options = {};
1897
+ path !== null && path !== void 0 ? path : path = ".".concat(field);
1898
+ options !== null && options !== void 0 ? options : options = {};
1557
1899
  // try to find the annotated type information
1558
1900
  var metadata = classMetadataCache.get(Class);
1559
1901
  var annotatedType = getFieldMetadata(metadata, field, KEY_FIELD_TYPE);
@@ -1644,7 +1986,7 @@ function ofValueImpl(Class, value) {
1644
1986
  }
1645
1987
 
1646
1988
  function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1647
- function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1989
+ function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1648
1990
  var Impl = {
1649
1991
  /**
1650
1992
  * Gets the names of all fields of the default instance of target class.
@@ -2914,9 +3256,9 @@ function hasOwnPrototypeFunction(Class, name) {
2914
3256
  * @private
2915
3257
  */
2916
3258
  function normalizeFieldImpl(Class, obj, field, options) {
2917
- var _options, _options2, _options2$path;
2918
- (_options = options) !== null && _options !== void 0 ? _options : options = {};
2919
- (_options2$path = (_options2 = options).path) !== null && _options2$path !== void 0 ? _options2$path : _options2.path = '';
3259
+ var _options, _options$path;
3260
+ options !== null && options !== void 0 ? options : options = {};
3261
+ (_options$path = (_options = options).path) !== null && _options$path !== void 0 ? _options$path : _options.path = '';
2920
3262
  if (!Object.prototype.hasOwnProperty.call(obj, field)) {
2921
3263
  // the field does not exist
2922
3264
  return false;
@@ -3766,7 +4108,7 @@ function isValidPageSource(page, options) {
3766
4108
  }
3767
4109
 
3768
4110
  function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3769
- function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4111
+ function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3770
4112
 
3771
4113
  /**
3772
4114
  * Creates a Page object from the specified data.
@@ -3904,7 +4246,7 @@ function parseJsonStringImpl(Class, json, options) {
3904
4246
  }
3905
4247
 
3906
4248
  function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3907
- function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4249
+ function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3908
4250
 
3909
4251
  /**
3910
4252
  * Gets the object to be serialized by `JSON.stringify()`.
@@ -3966,6 +4308,9 @@ function toJsonImpl(obj, key, options) {
3966
4308
  var opt = DefaultOptions.merge('toJSON', options);
3967
4309
  // normalize the object if necessary
3968
4310
  if (opt.normalize) {
4311
+ // must clone the object before normalizing it, otherwise the original
4312
+ // object will be modified.
4313
+ obj = clone(obj, CLONE_OPTIONS);
3969
4314
  obj = defaultNormalizer(obj);
3970
4315
  }
3971
4316
  var cloneOptions = _objectSpread$2(_objectSpread$2({}, CLONE_OPTIONS), {}, {
@@ -4078,7 +4423,7 @@ function hasOwnClassField(Class, field) {
4078
4423
  }
4079
4424
 
4080
4425
  function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4081
- function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4426
+ function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4082
4427
 
4083
4428
  /**
4084
4429
  * This decorator is used to add common methods to a domain model class.
@@ -6644,7 +6989,7 @@ function normalize(value) {
6644
6989
  }
6645
6990
 
6646
6991
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6647
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6992
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6648
6993
 
6649
6994
  /**
6650
6995
  * Converts an object to the object to be serialized by `JSON.stringify()`.