@bcrumbs.net/bc-shared 0.0.5 → 0.0.6
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.esm.d.ts +1 -1
- package/index.esm.js +1305 -875
- package/package.json +1 -1
- package/src/index.d.ts +1 -0
- package/src/lib/components/RoutesGaurd/PermissionGuard.d.ts +11 -0
- package/src/lib/components/index.d.ts +1 -0
- package/src/lib/config/routes.d.ts +2 -0
- package/src/lib/hooks/index.d.ts +1 -0
- package/src/lib/hooks/usePermissions.d.ts +6 -0
- package/src/lib/services/auth/index.d.ts +5 -2
- package/src/lib/types/index.d.ts +5 -0
package/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ReactJSXRuntime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import React__default, { forwardRef, useContext, Component } from 'react';
|
|
3
|
+
import React__default, { forwardRef, useContext, Component, useMemo } from 'react';
|
|
4
4
|
import i18n from 'i18next';
|
|
5
5
|
import { initReactI18next } from 'react-i18next';
|
|
6
6
|
import Backend from 'i18next-http-backend';
|
|
@@ -13,6 +13,8 @@ const InboxPortalRoot = '/inbox';
|
|
|
13
13
|
const SearchPortalRoot = '/search';
|
|
14
14
|
const BroadcastRoot = '/broadcast';
|
|
15
15
|
const ResourcesRoot = '/resources';
|
|
16
|
+
const ContactRoot = '/contact';
|
|
17
|
+
const ContactLifeCycleRoot = '/contact-life-cycle';
|
|
16
18
|
const BCRoutes = {
|
|
17
19
|
AccountDashboard: AccountPortalRoot,
|
|
18
20
|
Subscriptions: `${AccountPortalRoot}/workspace`,
|
|
@@ -54,7 +56,9 @@ const BCRoutes = {
|
|
|
54
56
|
BroadcastEdit: `${BroadcastRoot}/edit/:id`,
|
|
55
57
|
BroadcastCreate: `${BroadcastRoot}/create`,
|
|
56
58
|
ConvsSearch: `${SearchPortalRoot}`,
|
|
57
|
-
Dashboard: `${Dashboard}
|
|
59
|
+
Dashboard: `${Dashboard}`,
|
|
60
|
+
Contact: `${ContactRoot}`,
|
|
61
|
+
ContactLifeCycle: `${ContactLifeCycleRoot}`
|
|
58
62
|
};
|
|
59
63
|
|
|
60
64
|
var commonjsGlobal$1 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -68,7 +72,7 @@ var check = function (it) {
|
|
|
68
72
|
};
|
|
69
73
|
|
|
70
74
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
71
|
-
var global$
|
|
75
|
+
var global$f =
|
|
72
76
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
73
77
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
74
78
|
check(typeof window == 'object' && window) ||
|
|
@@ -81,7 +85,7 @@ var global$e =
|
|
|
81
85
|
|
|
82
86
|
var objectGetOwnPropertyDescriptor = {};
|
|
83
87
|
|
|
84
|
-
var fails$
|
|
88
|
+
var fails$i = function (exec) {
|
|
85
89
|
try {
|
|
86
90
|
return !!exec();
|
|
87
91
|
} catch (error) {
|
|
@@ -89,29 +93,29 @@ var fails$g = function (exec) {
|
|
|
89
93
|
}
|
|
90
94
|
};
|
|
91
95
|
|
|
92
|
-
var fails$
|
|
96
|
+
var fails$h = fails$i;
|
|
93
97
|
|
|
94
98
|
// Detect IE8's incomplete defineProperty implementation
|
|
95
|
-
var descriptors = !fails$
|
|
99
|
+
var descriptors = !fails$h(function () {
|
|
96
100
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
97
101
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
98
102
|
});
|
|
99
103
|
|
|
100
|
-
var fails$
|
|
104
|
+
var fails$g = fails$i;
|
|
101
105
|
|
|
102
|
-
var functionBindNative = !fails$
|
|
106
|
+
var functionBindNative = !fails$g(function () {
|
|
103
107
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
104
108
|
var test = (function () { /* empty */ }).bind();
|
|
105
109
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
106
110
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
107
111
|
});
|
|
108
112
|
|
|
109
|
-
var NATIVE_BIND$
|
|
113
|
+
var NATIVE_BIND$3 = functionBindNative;
|
|
110
114
|
|
|
111
|
-
var call$
|
|
115
|
+
var call$d = Function.prototype.call;
|
|
112
116
|
|
|
113
|
-
var functionCall = NATIVE_BIND$
|
|
114
|
-
return call$
|
|
117
|
+
var functionCall = NATIVE_BIND$3 ? call$d.bind(call$d) : function () {
|
|
118
|
+
return call$d.apply(call$d, arguments);
|
|
115
119
|
};
|
|
116
120
|
|
|
117
121
|
var objectPropertyIsEnumerable = {};
|
|
@@ -130,7 +134,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
|
130
134
|
return !!descriptor && descriptor.enumerable;
|
|
131
135
|
} : $propertyIsEnumerable;
|
|
132
136
|
|
|
133
|
-
var createPropertyDescriptor$
|
|
137
|
+
var createPropertyDescriptor$5 = function (bitmap, value) {
|
|
134
138
|
return {
|
|
135
139
|
enumerable: !(bitmap & 1),
|
|
136
140
|
configurable: !(bitmap & 2),
|
|
@@ -139,57 +143,57 @@ var createPropertyDescriptor$4 = function (bitmap, value) {
|
|
|
139
143
|
};
|
|
140
144
|
};
|
|
141
145
|
|
|
142
|
-
var NATIVE_BIND$
|
|
146
|
+
var NATIVE_BIND$2 = functionBindNative;
|
|
143
147
|
|
|
144
148
|
var FunctionPrototype$2 = Function.prototype;
|
|
145
|
-
var call$
|
|
146
|
-
var uncurryThisWithBind = NATIVE_BIND$
|
|
149
|
+
var call$c = FunctionPrototype$2.call;
|
|
150
|
+
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$c, call$c);
|
|
147
151
|
|
|
148
|
-
var functionUncurryThis = NATIVE_BIND$
|
|
152
|
+
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
149
153
|
return function () {
|
|
150
|
-
return call$
|
|
154
|
+
return call$c.apply(fn, arguments);
|
|
151
155
|
};
|
|
152
156
|
};
|
|
153
157
|
|
|
154
|
-
var uncurryThis$
|
|
158
|
+
var uncurryThis$l = functionUncurryThis;
|
|
155
159
|
|
|
156
|
-
var toString$7 = uncurryThis$
|
|
157
|
-
var stringSlice$1 = uncurryThis$
|
|
160
|
+
var toString$7 = uncurryThis$l({}.toString);
|
|
161
|
+
var stringSlice$1 = uncurryThis$l(''.slice);
|
|
158
162
|
|
|
159
|
-
var classofRaw$
|
|
163
|
+
var classofRaw$2 = function (it) {
|
|
160
164
|
return stringSlice$1(toString$7(it), 8, -1);
|
|
161
165
|
};
|
|
162
166
|
|
|
163
|
-
var uncurryThis$
|
|
164
|
-
var fails$
|
|
165
|
-
var classof$
|
|
167
|
+
var uncurryThis$k = functionUncurryThis;
|
|
168
|
+
var fails$f = fails$i;
|
|
169
|
+
var classof$6 = classofRaw$2;
|
|
166
170
|
|
|
167
171
|
var $Object$4 = Object;
|
|
168
|
-
var split = uncurryThis$
|
|
172
|
+
var split = uncurryThis$k(''.split);
|
|
169
173
|
|
|
170
174
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
171
|
-
var indexedObject = fails$
|
|
175
|
+
var indexedObject = fails$f(function () {
|
|
172
176
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
173
177
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
174
178
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
175
179
|
}) ? function (it) {
|
|
176
|
-
return classof$
|
|
180
|
+
return classof$6(it) === 'String' ? split(it, '') : $Object$4(it);
|
|
177
181
|
} : $Object$4;
|
|
178
182
|
|
|
179
183
|
// we can't use just `it == null` since of `document.all` special case
|
|
180
184
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
181
|
-
var isNullOrUndefined$
|
|
185
|
+
var isNullOrUndefined$3 = function (it) {
|
|
182
186
|
return it === null || it === undefined;
|
|
183
187
|
};
|
|
184
188
|
|
|
185
|
-
var isNullOrUndefined$
|
|
189
|
+
var isNullOrUndefined$2 = isNullOrUndefined$3;
|
|
186
190
|
|
|
187
|
-
var $TypeError$
|
|
191
|
+
var $TypeError$e = TypeError;
|
|
188
192
|
|
|
189
193
|
// `RequireObjectCoercible` abstract operation
|
|
190
194
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
191
195
|
var requireObjectCoercible$5 = function (it) {
|
|
192
|
-
if (isNullOrUndefined$
|
|
196
|
+
if (isNullOrUndefined$2(it)) throw new $TypeError$e("Can't call method on " + it);
|
|
193
197
|
return it;
|
|
194
198
|
};
|
|
195
199
|
|
|
@@ -207,40 +211,40 @@ var documentAll = typeof document == 'object' && document.all;
|
|
|
207
211
|
// `IsCallable` abstract operation
|
|
208
212
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
209
213
|
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
210
|
-
var isCallable$
|
|
214
|
+
var isCallable$i = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
211
215
|
return typeof argument == 'function' || argument === documentAll;
|
|
212
216
|
} : function (argument) {
|
|
213
217
|
return typeof argument == 'function';
|
|
214
218
|
};
|
|
215
219
|
|
|
216
|
-
var isCallable$
|
|
220
|
+
var isCallable$h = isCallable$i;
|
|
217
221
|
|
|
218
222
|
var isObject$b = function (it) {
|
|
219
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
223
|
+
return typeof it == 'object' ? it !== null : isCallable$h(it);
|
|
220
224
|
};
|
|
221
225
|
|
|
222
|
-
var global$
|
|
223
|
-
var isCallable$
|
|
226
|
+
var global$e = global$f;
|
|
227
|
+
var isCallable$g = isCallable$i;
|
|
224
228
|
|
|
225
229
|
var aFunction = function (argument) {
|
|
226
|
-
return isCallable$
|
|
230
|
+
return isCallable$g(argument) ? argument : undefined;
|
|
227
231
|
};
|
|
228
232
|
|
|
229
|
-
var getBuiltIn$
|
|
230
|
-
return arguments.length < 2 ? aFunction(global$
|
|
233
|
+
var getBuiltIn$6 = function (namespace, method) {
|
|
234
|
+
return arguments.length < 2 ? aFunction(global$e[namespace]) : global$e[namespace] && global$e[namespace][method];
|
|
231
235
|
};
|
|
232
236
|
|
|
233
|
-
var uncurryThis$
|
|
237
|
+
var uncurryThis$j = functionUncurryThis;
|
|
234
238
|
|
|
235
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
239
|
+
var objectIsPrototypeOf = uncurryThis$j({}.isPrototypeOf);
|
|
236
240
|
|
|
237
241
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
238
242
|
|
|
239
|
-
var global$
|
|
243
|
+
var global$d = global$f;
|
|
240
244
|
var userAgent = engineUserAgent;
|
|
241
245
|
|
|
242
|
-
var process$1 = global$
|
|
243
|
-
var Deno = global$
|
|
246
|
+
var process$1 = global$d.process;
|
|
247
|
+
var Deno = global$d.Deno;
|
|
244
248
|
var versions = process$1 && process$1.versions || Deno && Deno.version;
|
|
245
249
|
var v8 = versions && versions.v8;
|
|
246
250
|
var match$1, version;
|
|
@@ -266,13 +270,13 @@ var engineV8Version = version;
|
|
|
266
270
|
|
|
267
271
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
268
272
|
var V8_VERSION = engineV8Version;
|
|
269
|
-
var fails$
|
|
270
|
-
var global$
|
|
273
|
+
var fails$e = fails$i;
|
|
274
|
+
var global$c = global$f;
|
|
271
275
|
|
|
272
|
-
var $String$6 = global$
|
|
276
|
+
var $String$6 = global$c.String;
|
|
273
277
|
|
|
274
278
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
275
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
279
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$e(function () {
|
|
276
280
|
var symbol = Symbol('symbol detection');
|
|
277
281
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
278
282
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -290,9 +294,9 @@ var useSymbolAsUid = NATIVE_SYMBOL$2
|
|
|
290
294
|
&& !Symbol.sham
|
|
291
295
|
&& typeof Symbol.iterator == 'symbol';
|
|
292
296
|
|
|
293
|
-
var getBuiltIn$
|
|
294
|
-
var isCallable$
|
|
295
|
-
var isPrototypeOf$
|
|
297
|
+
var getBuiltIn$5 = getBuiltIn$6;
|
|
298
|
+
var isCallable$f = isCallable$i;
|
|
299
|
+
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
296
300
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
297
301
|
|
|
298
302
|
var $Object$3 = Object;
|
|
@@ -300,13 +304,13 @@ var $Object$3 = Object;
|
|
|
300
304
|
var isSymbol$3 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
301
305
|
return typeof it == 'symbol';
|
|
302
306
|
} : function (it) {
|
|
303
|
-
var $Symbol = getBuiltIn$
|
|
304
|
-
return isCallable$
|
|
307
|
+
var $Symbol = getBuiltIn$5('Symbol');
|
|
308
|
+
return isCallable$f($Symbol) && isPrototypeOf$3($Symbol.prototype, $Object$3(it));
|
|
305
309
|
};
|
|
306
310
|
|
|
307
311
|
var $String$5 = String;
|
|
308
312
|
|
|
309
|
-
var tryToString$
|
|
313
|
+
var tryToString$3 = function (argument) {
|
|
310
314
|
try {
|
|
311
315
|
return $String$5(argument);
|
|
312
316
|
} catch (error) {
|
|
@@ -314,59 +318,59 @@ var tryToString$1 = function (argument) {
|
|
|
314
318
|
}
|
|
315
319
|
};
|
|
316
320
|
|
|
317
|
-
var isCallable$
|
|
318
|
-
var tryToString = tryToString$
|
|
321
|
+
var isCallable$e = isCallable$i;
|
|
322
|
+
var tryToString$2 = tryToString$3;
|
|
319
323
|
|
|
320
|
-
var $TypeError$
|
|
324
|
+
var $TypeError$d = TypeError;
|
|
321
325
|
|
|
322
326
|
// `Assert: IsCallable(argument) is true`
|
|
323
|
-
var aCallable$
|
|
324
|
-
if (isCallable$
|
|
325
|
-
throw new $TypeError$
|
|
327
|
+
var aCallable$6 = function (argument) {
|
|
328
|
+
if (isCallable$e(argument)) return argument;
|
|
329
|
+
throw new $TypeError$d(tryToString$2(argument) + ' is not a function');
|
|
326
330
|
};
|
|
327
331
|
|
|
328
|
-
var aCallable$
|
|
329
|
-
var isNullOrUndefined = isNullOrUndefined$
|
|
332
|
+
var aCallable$5 = aCallable$6;
|
|
333
|
+
var isNullOrUndefined$1 = isNullOrUndefined$3;
|
|
330
334
|
|
|
331
335
|
// `GetMethod` abstract operation
|
|
332
336
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
333
|
-
var getMethod$
|
|
337
|
+
var getMethod$3 = function (V, P) {
|
|
334
338
|
var func = V[P];
|
|
335
|
-
return isNullOrUndefined(func) ? undefined : aCallable$
|
|
339
|
+
return isNullOrUndefined$1(func) ? undefined : aCallable$5(func);
|
|
336
340
|
};
|
|
337
341
|
|
|
338
|
-
var call$
|
|
339
|
-
var isCallable$
|
|
342
|
+
var call$b = functionCall;
|
|
343
|
+
var isCallable$d = isCallable$i;
|
|
340
344
|
var isObject$a = isObject$b;
|
|
341
345
|
|
|
342
|
-
var $TypeError$
|
|
346
|
+
var $TypeError$c = TypeError;
|
|
343
347
|
|
|
344
348
|
// `OrdinaryToPrimitive` abstract operation
|
|
345
349
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
346
350
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
347
351
|
var fn, val;
|
|
348
|
-
if (pref === 'string' && isCallable$
|
|
349
|
-
if (isCallable$
|
|
350
|
-
if (pref !== 'string' && isCallable$
|
|
351
|
-
throw new $TypeError$
|
|
352
|
+
if (pref === 'string' && isCallable$d(fn = input.toString) && !isObject$a(val = call$b(fn, input))) return val;
|
|
353
|
+
if (isCallable$d(fn = input.valueOf) && !isObject$a(val = call$b(fn, input))) return val;
|
|
354
|
+
if (pref !== 'string' && isCallable$d(fn = input.toString) && !isObject$a(val = call$b(fn, input))) return val;
|
|
355
|
+
throw new $TypeError$c("Can't convert object to primitive value");
|
|
352
356
|
};
|
|
353
357
|
|
|
354
358
|
var sharedStore = {exports: {}};
|
|
355
359
|
|
|
356
|
-
var global$
|
|
360
|
+
var global$b = global$f;
|
|
357
361
|
|
|
358
362
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
359
|
-
var defineProperty$
|
|
363
|
+
var defineProperty$7 = Object.defineProperty;
|
|
360
364
|
|
|
361
365
|
var defineGlobalProperty$3 = function (key, value) {
|
|
362
366
|
try {
|
|
363
|
-
defineProperty$
|
|
367
|
+
defineProperty$7(global$b, key, { value: value, configurable: true, writable: true });
|
|
364
368
|
} catch (error) {
|
|
365
|
-
global$
|
|
369
|
+
global$b[key] = value;
|
|
366
370
|
} return value;
|
|
367
371
|
};
|
|
368
372
|
|
|
369
|
-
var globalThis$1 = global$
|
|
373
|
+
var globalThis$1 = global$f;
|
|
370
374
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
371
375
|
|
|
372
376
|
var SHARED = '__core-js_shared__';
|
|
@@ -398,68 +402,68 @@ var toObject$4 = function (argument) {
|
|
|
398
402
|
return $Object$2(requireObjectCoercible$3(argument));
|
|
399
403
|
};
|
|
400
404
|
|
|
401
|
-
var uncurryThis$
|
|
405
|
+
var uncurryThis$i = functionUncurryThis;
|
|
402
406
|
var toObject$3 = toObject$4;
|
|
403
407
|
|
|
404
|
-
var hasOwnProperty
|
|
408
|
+
var hasOwnProperty = uncurryThis$i({}.hasOwnProperty);
|
|
405
409
|
|
|
406
410
|
// `HasOwnProperty` abstract operation
|
|
407
411
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
408
412
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
409
413
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
410
|
-
return hasOwnProperty
|
|
414
|
+
return hasOwnProperty(toObject$3(it), key);
|
|
411
415
|
};
|
|
412
416
|
|
|
413
|
-
var uncurryThis$
|
|
417
|
+
var uncurryThis$h = functionUncurryThis;
|
|
414
418
|
|
|
415
419
|
var id = 0;
|
|
416
420
|
var postfix = Math.random();
|
|
417
|
-
var toString$6 = uncurryThis$
|
|
421
|
+
var toString$6 = uncurryThis$h(1.0.toString);
|
|
418
422
|
|
|
419
423
|
var uid$2 = function (key) {
|
|
420
424
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$6(++id + postfix, 36);
|
|
421
425
|
};
|
|
422
426
|
|
|
423
|
-
var global$
|
|
427
|
+
var global$a = global$f;
|
|
424
428
|
var shared$2 = shared$3;
|
|
425
|
-
var hasOwn$
|
|
429
|
+
var hasOwn$b = hasOwnProperty_1;
|
|
426
430
|
var uid$1 = uid$2;
|
|
427
431
|
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
428
432
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
429
433
|
|
|
430
|
-
var Symbol$2 = global$
|
|
434
|
+
var Symbol$2 = global$a.Symbol;
|
|
431
435
|
var WellKnownSymbolsStore = shared$2('wks');
|
|
432
436
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2['for'] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
|
|
433
437
|
|
|
434
|
-
var wellKnownSymbol$
|
|
435
|
-
if (!hasOwn$
|
|
436
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$
|
|
438
|
+
var wellKnownSymbol$d = function (name) {
|
|
439
|
+
if (!hasOwn$b(WellKnownSymbolsStore, name)) {
|
|
440
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$b(Symbol$2, name)
|
|
437
441
|
? Symbol$2[name]
|
|
438
442
|
: createWellKnownSymbol('Symbol.' + name);
|
|
439
443
|
} return WellKnownSymbolsStore[name];
|
|
440
444
|
};
|
|
441
445
|
|
|
442
|
-
var call$
|
|
446
|
+
var call$a = functionCall;
|
|
443
447
|
var isObject$9 = isObject$b;
|
|
444
448
|
var isSymbol$2 = isSymbol$3;
|
|
445
|
-
var getMethod = getMethod$
|
|
449
|
+
var getMethod$2 = getMethod$3;
|
|
446
450
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
447
|
-
var wellKnownSymbol$
|
|
451
|
+
var wellKnownSymbol$c = wellKnownSymbol$d;
|
|
448
452
|
|
|
449
|
-
var $TypeError$
|
|
450
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
|
453
|
+
var $TypeError$b = TypeError;
|
|
454
|
+
var TO_PRIMITIVE = wellKnownSymbol$c('toPrimitive');
|
|
451
455
|
|
|
452
456
|
// `ToPrimitive` abstract operation
|
|
453
457
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
454
458
|
var toPrimitive$1 = function (input, pref) {
|
|
455
459
|
if (!isObject$9(input) || isSymbol$2(input)) return input;
|
|
456
|
-
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
460
|
+
var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
|
|
457
461
|
var result;
|
|
458
462
|
if (exoticToPrim) {
|
|
459
463
|
if (pref === undefined) pref = 'default';
|
|
460
|
-
result = call$
|
|
464
|
+
result = call$a(exoticToPrim, input, pref);
|
|
461
465
|
if (!isObject$9(result) || isSymbol$2(result)) return result;
|
|
462
|
-
throw new $TypeError$
|
|
466
|
+
throw new $TypeError$b("Can't convert object to primitive value");
|
|
463
467
|
}
|
|
464
468
|
if (pref === undefined) pref = 'number';
|
|
465
469
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -475,10 +479,10 @@ var toPropertyKey$2 = function (argument) {
|
|
|
475
479
|
return isSymbol$1(key) ? key : key + '';
|
|
476
480
|
};
|
|
477
481
|
|
|
478
|
-
var global$
|
|
482
|
+
var global$9 = global$f;
|
|
479
483
|
var isObject$8 = isObject$b;
|
|
480
484
|
|
|
481
|
-
var document$1 = global$
|
|
485
|
+
var document$1 = global$9.document;
|
|
482
486
|
// typeof document.createElement is 'object' in old IE
|
|
483
487
|
var EXISTS$1 = isObject$8(document$1) && isObject$8(document$1.createElement);
|
|
484
488
|
|
|
@@ -486,25 +490,25 @@ var documentCreateElement$2 = function (it) {
|
|
|
486
490
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
487
491
|
};
|
|
488
492
|
|
|
489
|
-
var DESCRIPTORS$
|
|
490
|
-
var fails$
|
|
493
|
+
var DESCRIPTORS$d = descriptors;
|
|
494
|
+
var fails$d = fails$i;
|
|
491
495
|
var createElement = documentCreateElement$2;
|
|
492
496
|
|
|
493
497
|
// Thanks to IE8 for its funny defineProperty
|
|
494
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
498
|
+
var ie8DomDefine = !DESCRIPTORS$d && !fails$d(function () {
|
|
495
499
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
496
500
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
497
501
|
get: function () { return 7; }
|
|
498
502
|
}).a !== 7;
|
|
499
503
|
});
|
|
500
504
|
|
|
501
|
-
var DESCRIPTORS$
|
|
502
|
-
var call$
|
|
505
|
+
var DESCRIPTORS$c = descriptors;
|
|
506
|
+
var call$9 = functionCall;
|
|
503
507
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
504
|
-
var createPropertyDescriptor$
|
|
508
|
+
var createPropertyDescriptor$4 = createPropertyDescriptor$5;
|
|
505
509
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
506
510
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
507
|
-
var hasOwn$
|
|
511
|
+
var hasOwn$a = hasOwnProperty_1;
|
|
508
512
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
509
513
|
|
|
510
514
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -512,23 +516,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
|
512
516
|
|
|
513
517
|
// `Object.getOwnPropertyDescriptor` method
|
|
514
518
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
515
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
519
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$c ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
516
520
|
O = toIndexedObject$4(O);
|
|
517
521
|
P = toPropertyKey$1(P);
|
|
518
522
|
if (IE8_DOM_DEFINE$1) try {
|
|
519
523
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
520
524
|
} catch (error) { /* empty */ }
|
|
521
|
-
if (hasOwn$
|
|
525
|
+
if (hasOwn$a(O, P)) return createPropertyDescriptor$4(!call$9(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
522
526
|
};
|
|
523
527
|
|
|
524
528
|
var objectDefineProperty = {};
|
|
525
529
|
|
|
526
|
-
var DESCRIPTORS$
|
|
527
|
-
var fails$
|
|
530
|
+
var DESCRIPTORS$b = descriptors;
|
|
531
|
+
var fails$c = fails$i;
|
|
528
532
|
|
|
529
533
|
// V8 ~ Chrome 36-
|
|
530
534
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
531
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
535
|
+
var v8PrototypeDefineBug = DESCRIPTORS$b && fails$c(function () {
|
|
532
536
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
533
537
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
534
538
|
value: 42,
|
|
@@ -539,21 +543,21 @@ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$a(function () {
|
|
|
539
543
|
var isObject$7 = isObject$b;
|
|
540
544
|
|
|
541
545
|
var $String$4 = String;
|
|
542
|
-
var $TypeError$
|
|
546
|
+
var $TypeError$a = TypeError;
|
|
543
547
|
|
|
544
548
|
// `Assert: Type(argument) is Object`
|
|
545
|
-
var anObject$
|
|
549
|
+
var anObject$a = function (argument) {
|
|
546
550
|
if (isObject$7(argument)) return argument;
|
|
547
|
-
throw new $TypeError$
|
|
551
|
+
throw new $TypeError$a($String$4(argument) + ' is not an object');
|
|
548
552
|
};
|
|
549
553
|
|
|
550
|
-
var DESCRIPTORS$
|
|
554
|
+
var DESCRIPTORS$a = descriptors;
|
|
551
555
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
552
556
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
553
|
-
var anObject$
|
|
557
|
+
var anObject$9 = anObject$a;
|
|
554
558
|
var toPropertyKey = toPropertyKey$2;
|
|
555
559
|
|
|
556
|
-
var $TypeError$
|
|
560
|
+
var $TypeError$9 = TypeError;
|
|
557
561
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
558
562
|
var $defineProperty = Object.defineProperty;
|
|
559
563
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -564,10 +568,10 @@ var WRITABLE = 'writable';
|
|
|
564
568
|
|
|
565
569
|
// `Object.defineProperty` method
|
|
566
570
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
567
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
568
|
-
anObject$
|
|
571
|
+
objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
572
|
+
anObject$9(O);
|
|
569
573
|
P = toPropertyKey(P);
|
|
570
|
-
anObject$
|
|
574
|
+
anObject$9(Attributes);
|
|
571
575
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
572
576
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
573
577
|
if (current && current[WRITABLE]) {
|
|
@@ -580,56 +584,55 @@ objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
580
584
|
}
|
|
581
585
|
} return $defineProperty(O, P, Attributes);
|
|
582
586
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
583
|
-
anObject$
|
|
587
|
+
anObject$9(O);
|
|
584
588
|
P = toPropertyKey(P);
|
|
585
|
-
anObject$
|
|
589
|
+
anObject$9(Attributes);
|
|
586
590
|
if (IE8_DOM_DEFINE) try {
|
|
587
591
|
return $defineProperty(O, P, Attributes);
|
|
588
592
|
} catch (error) { /* empty */ }
|
|
589
|
-
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$
|
|
593
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$9('Accessors not supported');
|
|
590
594
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
591
595
|
return O;
|
|
592
596
|
};
|
|
593
597
|
|
|
594
|
-
var DESCRIPTORS$
|
|
595
|
-
var definePropertyModule$
|
|
596
|
-
var createPropertyDescriptor$
|
|
598
|
+
var DESCRIPTORS$9 = descriptors;
|
|
599
|
+
var definePropertyModule$4 = objectDefineProperty;
|
|
600
|
+
var createPropertyDescriptor$3 = createPropertyDescriptor$5;
|
|
597
601
|
|
|
598
|
-
var createNonEnumerableProperty$7 = DESCRIPTORS$
|
|
599
|
-
return definePropertyModule$
|
|
602
|
+
var createNonEnumerableProperty$7 = DESCRIPTORS$9 ? function (object, key, value) {
|
|
603
|
+
return definePropertyModule$4.f(object, key, createPropertyDescriptor$3(1, value));
|
|
600
604
|
} : function (object, key, value) {
|
|
601
605
|
object[key] = value;
|
|
602
606
|
return object;
|
|
603
607
|
};
|
|
604
608
|
|
|
605
|
-
var makeBuiltIn$
|
|
609
|
+
var makeBuiltIn$3 = {exports: {}};
|
|
606
610
|
|
|
607
|
-
var DESCRIPTORS$
|
|
608
|
-
var hasOwn$
|
|
611
|
+
var DESCRIPTORS$8 = descriptors;
|
|
612
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
609
613
|
|
|
610
614
|
var FunctionPrototype$1 = Function.prototype;
|
|
611
615
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
612
|
-
var getDescriptor = DESCRIPTORS$
|
|
616
|
+
var getDescriptor = DESCRIPTORS$8 && Object.getOwnPropertyDescriptor;
|
|
613
617
|
|
|
614
|
-
var EXISTS = hasOwn$
|
|
618
|
+
var EXISTS = hasOwn$9(FunctionPrototype$1, 'name');
|
|
615
619
|
// additional protection from minified / mangled / dropped function names
|
|
616
620
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
617
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
621
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$8 || (DESCRIPTORS$8 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
618
622
|
|
|
619
623
|
var functionName = {
|
|
620
|
-
EXISTS: EXISTS,
|
|
621
624
|
PROPER: PROPER,
|
|
622
625
|
CONFIGURABLE: CONFIGURABLE
|
|
623
626
|
};
|
|
624
627
|
|
|
625
|
-
var uncurryThis$
|
|
626
|
-
var isCallable$
|
|
628
|
+
var uncurryThis$g = functionUncurryThis;
|
|
629
|
+
var isCallable$c = isCallable$i;
|
|
627
630
|
var store$1 = sharedStoreExports;
|
|
628
631
|
|
|
629
|
-
var functionToString = uncurryThis$
|
|
632
|
+
var functionToString = uncurryThis$g(Function.toString);
|
|
630
633
|
|
|
631
634
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
632
|
-
if (!isCallable$
|
|
635
|
+
if (!isCallable$c(store$1.inspectSource)) {
|
|
633
636
|
store$1.inspectSource = function (it) {
|
|
634
637
|
return functionToString(it);
|
|
635
638
|
};
|
|
@@ -637,40 +640,40 @@ if (!isCallable$b(store$1.inspectSource)) {
|
|
|
637
640
|
|
|
638
641
|
var inspectSource$1 = store$1.inspectSource;
|
|
639
642
|
|
|
640
|
-
var global$
|
|
641
|
-
var isCallable$
|
|
643
|
+
var global$8 = global$f;
|
|
644
|
+
var isCallable$b = isCallable$i;
|
|
642
645
|
|
|
643
|
-
var WeakMap$2 = global$
|
|
646
|
+
var WeakMap$2 = global$8.WeakMap;
|
|
644
647
|
|
|
645
|
-
var weakMapBasicDetection = isCallable$
|
|
648
|
+
var weakMapBasicDetection = isCallable$b(WeakMap$2) && /native code/.test(String(WeakMap$2));
|
|
646
649
|
|
|
647
650
|
var shared$1 = shared$3;
|
|
648
651
|
var uid = uid$2;
|
|
649
652
|
|
|
650
|
-
var keys = shared$1('keys');
|
|
653
|
+
var keys$1 = shared$1('keys');
|
|
651
654
|
|
|
652
655
|
var sharedKey$3 = function (key) {
|
|
653
|
-
return keys[key] || (keys[key] = uid(key));
|
|
656
|
+
return keys$1[key] || (keys$1[key] = uid(key));
|
|
654
657
|
};
|
|
655
658
|
|
|
656
659
|
var hiddenKeys$4 = {};
|
|
657
660
|
|
|
658
661
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
659
|
-
var global$
|
|
662
|
+
var global$7 = global$f;
|
|
660
663
|
var isObject$6 = isObject$b;
|
|
661
664
|
var createNonEnumerableProperty$6 = createNonEnumerableProperty$7;
|
|
662
|
-
var hasOwn$
|
|
665
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
663
666
|
var shared = sharedStoreExports;
|
|
664
667
|
var sharedKey$2 = sharedKey$3;
|
|
665
668
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
666
669
|
|
|
667
670
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
668
|
-
var TypeError$1 = global$
|
|
669
|
-
var WeakMap$1 = global$
|
|
670
|
-
var set, get, has$
|
|
671
|
+
var TypeError$1 = global$7.TypeError;
|
|
672
|
+
var WeakMap$1 = global$7.WeakMap;
|
|
673
|
+
var set, get, has$7;
|
|
671
674
|
|
|
672
675
|
var enforce = function (it) {
|
|
673
|
-
return has$
|
|
676
|
+
return has$7(it) ? get(it) : set(it, {});
|
|
674
677
|
};
|
|
675
678
|
|
|
676
679
|
var getterFor = function (TYPE) {
|
|
@@ -698,39 +701,39 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
698
701
|
get = function (it) {
|
|
699
702
|
return store.get(it) || {};
|
|
700
703
|
};
|
|
701
|
-
has$
|
|
704
|
+
has$7 = function (it) {
|
|
702
705
|
return store.has(it);
|
|
703
706
|
};
|
|
704
707
|
} else {
|
|
705
708
|
var STATE = sharedKey$2('state');
|
|
706
709
|
hiddenKeys$3[STATE] = true;
|
|
707
710
|
set = function (it, metadata) {
|
|
708
|
-
if (hasOwn$
|
|
711
|
+
if (hasOwn$8(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
709
712
|
metadata.facade = it;
|
|
710
713
|
createNonEnumerableProperty$6(it, STATE, metadata);
|
|
711
714
|
return metadata;
|
|
712
715
|
};
|
|
713
716
|
get = function (it) {
|
|
714
|
-
return hasOwn$
|
|
717
|
+
return hasOwn$8(it, STATE) ? it[STATE] : {};
|
|
715
718
|
};
|
|
716
|
-
has$
|
|
717
|
-
return hasOwn$
|
|
719
|
+
has$7 = function (it) {
|
|
720
|
+
return hasOwn$8(it, STATE);
|
|
718
721
|
};
|
|
719
722
|
}
|
|
720
723
|
|
|
721
724
|
var internalState = {
|
|
722
725
|
set: set,
|
|
723
726
|
get: get,
|
|
724
|
-
has: has$
|
|
727
|
+
has: has$7,
|
|
725
728
|
enforce: enforce,
|
|
726
729
|
getterFor: getterFor
|
|
727
730
|
};
|
|
728
731
|
|
|
729
|
-
var uncurryThis$
|
|
730
|
-
var fails$
|
|
731
|
-
var isCallable$
|
|
732
|
-
var hasOwn$
|
|
733
|
-
var DESCRIPTORS$
|
|
732
|
+
var uncurryThis$f = functionUncurryThis;
|
|
733
|
+
var fails$b = fails$i;
|
|
734
|
+
var isCallable$a = isCallable$i;
|
|
735
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
736
|
+
var DESCRIPTORS$7 = descriptors;
|
|
734
737
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
735
738
|
var inspectSource = inspectSource$1;
|
|
736
739
|
var InternalStateModule$1 = internalState;
|
|
@@ -739,60 +742,60 @@ var enforceInternalState = InternalStateModule$1.enforce;
|
|
|
739
742
|
var getInternalState$1 = InternalStateModule$1.get;
|
|
740
743
|
var $String$3 = String;
|
|
741
744
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
742
|
-
var defineProperty$
|
|
743
|
-
var stringSlice = uncurryThis$
|
|
744
|
-
var replace$4 = uncurryThis$
|
|
745
|
-
var join = uncurryThis$
|
|
745
|
+
var defineProperty$6 = Object.defineProperty;
|
|
746
|
+
var stringSlice = uncurryThis$f(''.slice);
|
|
747
|
+
var replace$4 = uncurryThis$f(''.replace);
|
|
748
|
+
var join = uncurryThis$f([].join);
|
|
746
749
|
|
|
747
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
748
|
-
return defineProperty$
|
|
750
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$7 && !fails$b(function () {
|
|
751
|
+
return defineProperty$6(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
749
752
|
});
|
|
750
753
|
|
|
751
754
|
var TEMPLATE = String(String).split('String');
|
|
752
755
|
|
|
753
|
-
var makeBuiltIn$
|
|
756
|
+
var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
754
757
|
if (stringSlice($String$3(name), 0, 7) === 'Symbol(') {
|
|
755
758
|
name = '[' + replace$4($String$3(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
756
759
|
}
|
|
757
760
|
if (options && options.getter) name = 'get ' + name;
|
|
758
761
|
if (options && options.setter) name = 'set ' + name;
|
|
759
|
-
if (!hasOwn$
|
|
760
|
-
if (DESCRIPTORS$
|
|
762
|
+
if (!hasOwn$7(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
763
|
+
if (DESCRIPTORS$7) defineProperty$6(value, 'name', { value: name, configurable: true });
|
|
761
764
|
else value.name = name;
|
|
762
765
|
}
|
|
763
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
|
764
|
-
defineProperty$
|
|
766
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$7(options, 'arity') && value.length !== options.arity) {
|
|
767
|
+
defineProperty$6(value, 'length', { value: options.arity });
|
|
765
768
|
}
|
|
766
769
|
try {
|
|
767
|
-
if (options && hasOwn$
|
|
768
|
-
if (DESCRIPTORS$
|
|
770
|
+
if (options && hasOwn$7(options, 'constructor') && options.constructor) {
|
|
771
|
+
if (DESCRIPTORS$7) defineProperty$6(value, 'prototype', { writable: false });
|
|
769
772
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
770
773
|
} else if (value.prototype) value.prototype = undefined;
|
|
771
774
|
} catch (error) { /* empty */ }
|
|
772
775
|
var state = enforceInternalState(value);
|
|
773
|
-
if (!hasOwn$
|
|
776
|
+
if (!hasOwn$7(state, 'source')) {
|
|
774
777
|
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
775
778
|
} return value;
|
|
776
779
|
};
|
|
777
780
|
|
|
778
781
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
779
782
|
// eslint-disable-next-line no-extend-native -- required
|
|
780
|
-
Function.prototype.toString = makeBuiltIn$
|
|
781
|
-
return isCallable$
|
|
783
|
+
Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
784
|
+
return isCallable$a(this) && getInternalState$1(this).source || inspectSource(this);
|
|
782
785
|
}, 'toString');
|
|
783
786
|
|
|
784
|
-
var makeBuiltInExports = makeBuiltIn$
|
|
787
|
+
var makeBuiltInExports = makeBuiltIn$3.exports;
|
|
785
788
|
|
|
786
|
-
var isCallable$
|
|
787
|
-
var definePropertyModule$
|
|
788
|
-
var makeBuiltIn = makeBuiltInExports;
|
|
789
|
+
var isCallable$9 = isCallable$i;
|
|
790
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
791
|
+
var makeBuiltIn$1 = makeBuiltInExports;
|
|
789
792
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
790
793
|
|
|
791
794
|
var defineBuiltIn$3 = function (O, key, value, options) {
|
|
792
795
|
if (!options) options = {};
|
|
793
796
|
var simple = options.enumerable;
|
|
794
797
|
var name = options.name !== undefined ? options.name : key;
|
|
795
|
-
if (isCallable$
|
|
798
|
+
if (isCallable$9(value)) makeBuiltIn$1(value, name, options);
|
|
796
799
|
if (options.global) {
|
|
797
800
|
if (simple) O[key] = value;
|
|
798
801
|
else defineGlobalProperty$1(key, value);
|
|
@@ -802,7 +805,7 @@ var defineBuiltIn$3 = function (O, key, value, options) {
|
|
|
802
805
|
else if (O[key]) simple = true;
|
|
803
806
|
} catch (error) { /* empty */ }
|
|
804
807
|
if (simple) O[key] = value;
|
|
805
|
-
else definePropertyModule$
|
|
808
|
+
else definePropertyModule$3.f(O, key, {
|
|
806
809
|
value: value,
|
|
807
810
|
enumerable: false,
|
|
808
811
|
configurable: !options.nonConfigurable,
|
|
@@ -828,33 +831,33 @@ var trunc = mathTrunc;
|
|
|
828
831
|
|
|
829
832
|
// `ToIntegerOrInfinity` abstract operation
|
|
830
833
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
831
|
-
var toIntegerOrInfinity$
|
|
834
|
+
var toIntegerOrInfinity$3 = function (argument) {
|
|
832
835
|
var number = +argument;
|
|
833
836
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
834
837
|
return number !== number || number === 0 ? 0 : trunc(number);
|
|
835
838
|
};
|
|
836
839
|
|
|
837
|
-
var toIntegerOrInfinity$
|
|
840
|
+
var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
|
|
838
841
|
|
|
839
|
-
var max = Math.max;
|
|
842
|
+
var max$1 = Math.max;
|
|
840
843
|
var min$1 = Math.min;
|
|
841
844
|
|
|
842
845
|
// Helper for a popular repeating case of the spec:
|
|
843
846
|
// Let integer be ? ToInteger(index).
|
|
844
847
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
845
848
|
var toAbsoluteIndex$1 = function (index, length) {
|
|
846
|
-
var integer = toIntegerOrInfinity$
|
|
847
|
-
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
|
849
|
+
var integer = toIntegerOrInfinity$2(index);
|
|
850
|
+
return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
|
|
848
851
|
};
|
|
849
852
|
|
|
850
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$
|
|
853
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$3;
|
|
851
854
|
|
|
852
855
|
var min = Math.min;
|
|
853
856
|
|
|
854
857
|
// `ToLength` abstract operation
|
|
855
858
|
// https://tc39.es/ecma262/#sec-tolength
|
|
856
859
|
var toLength$1 = function (argument) {
|
|
857
|
-
var len = toIntegerOrInfinity(argument);
|
|
860
|
+
var len = toIntegerOrInfinity$1(argument);
|
|
858
861
|
return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
859
862
|
};
|
|
860
863
|
|
|
@@ -862,19 +865,19 @@ var toLength = toLength$1;
|
|
|
862
865
|
|
|
863
866
|
// `LengthOfArrayLike` abstract operation
|
|
864
867
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
865
|
-
var lengthOfArrayLike$
|
|
868
|
+
var lengthOfArrayLike$3 = function (obj) {
|
|
866
869
|
return toLength(obj.length);
|
|
867
870
|
};
|
|
868
871
|
|
|
869
872
|
var toIndexedObject$3 = toIndexedObject$5;
|
|
870
873
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
871
|
-
var lengthOfArrayLike$
|
|
874
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$3;
|
|
872
875
|
|
|
873
876
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
874
877
|
var createMethod$1 = function (IS_INCLUDES) {
|
|
875
878
|
return function ($this, el, fromIndex) {
|
|
876
879
|
var O = toIndexedObject$3($this);
|
|
877
|
-
var length = lengthOfArrayLike$
|
|
880
|
+
var length = lengthOfArrayLike$2(O);
|
|
878
881
|
if (length === 0) return !IS_INCLUDES && -1;
|
|
879
882
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
880
883
|
var value;
|
|
@@ -900,22 +903,22 @@ var arrayIncludes = {
|
|
|
900
903
|
indexOf: createMethod$1(false)
|
|
901
904
|
};
|
|
902
905
|
|
|
903
|
-
var uncurryThis$
|
|
904
|
-
var hasOwn$
|
|
906
|
+
var uncurryThis$e = functionUncurryThis;
|
|
907
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
905
908
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
906
909
|
var indexOf = arrayIncludes.indexOf;
|
|
907
910
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
908
911
|
|
|
909
|
-
var push$1 = uncurryThis$
|
|
912
|
+
var push$1 = uncurryThis$e([].push);
|
|
910
913
|
|
|
911
914
|
var objectKeysInternal = function (object, names) {
|
|
912
915
|
var O = toIndexedObject$2(object);
|
|
913
916
|
var i = 0;
|
|
914
917
|
var result = [];
|
|
915
918
|
var key;
|
|
916
|
-
for (key in O) !hasOwn$
|
|
919
|
+
for (key in O) !hasOwn$6(hiddenKeys$2, key) && hasOwn$6(O, key) && push$1(result, key);
|
|
917
920
|
// Don't enum bug & hidden keys
|
|
918
|
-
while (names.length > i) if (hasOwn$
|
|
921
|
+
while (names.length > i) if (hasOwn$6(O, key = names[i++])) {
|
|
919
922
|
~indexOf(result, key) || push$1(result, key);
|
|
920
923
|
}
|
|
921
924
|
return result;
|
|
@@ -949,40 +952,40 @@ var objectGetOwnPropertySymbols = {};
|
|
|
949
952
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
950
953
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
951
954
|
|
|
952
|
-
var getBuiltIn$
|
|
953
|
-
var uncurryThis$
|
|
955
|
+
var getBuiltIn$4 = getBuiltIn$6;
|
|
956
|
+
var uncurryThis$d = functionUncurryThis;
|
|
954
957
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
955
958
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
956
|
-
var anObject$
|
|
959
|
+
var anObject$8 = anObject$a;
|
|
957
960
|
|
|
958
|
-
var concat$1 = uncurryThis$
|
|
961
|
+
var concat$1 = uncurryThis$d([].concat);
|
|
959
962
|
|
|
960
963
|
// all object keys, includes non-enumerable and symbols
|
|
961
|
-
var ownKeys$1 = getBuiltIn$
|
|
962
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
964
|
+
var ownKeys$1 = getBuiltIn$4('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
965
|
+
var keys = getOwnPropertyNamesModule.f(anObject$8(it));
|
|
963
966
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
964
967
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
965
968
|
};
|
|
966
969
|
|
|
967
|
-
var hasOwn$
|
|
970
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
968
971
|
var ownKeys = ownKeys$1;
|
|
969
972
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
970
|
-
var definePropertyModule$
|
|
973
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
971
974
|
|
|
972
975
|
var copyConstructorProperties$2 = function (target, source, exceptions) {
|
|
973
976
|
var keys = ownKeys(source);
|
|
974
|
-
var defineProperty = definePropertyModule$
|
|
977
|
+
var defineProperty = definePropertyModule$2.f;
|
|
975
978
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
976
979
|
for (var i = 0; i < keys.length; i++) {
|
|
977
980
|
var key = keys[i];
|
|
978
|
-
if (!hasOwn$
|
|
981
|
+
if (!hasOwn$5(target, key) && !(exceptions && hasOwn$5(exceptions, key))) {
|
|
979
982
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
980
983
|
}
|
|
981
984
|
}
|
|
982
985
|
};
|
|
983
986
|
|
|
984
|
-
var fails$
|
|
985
|
-
var isCallable$
|
|
987
|
+
var fails$a = fails$i;
|
|
988
|
+
var isCallable$8 = isCallable$i;
|
|
986
989
|
|
|
987
990
|
var replacement = /#|\.prototype\./;
|
|
988
991
|
|
|
@@ -990,7 +993,7 @@ var isForced$1 = function (feature, detection) {
|
|
|
990
993
|
var value = data[normalize(feature)];
|
|
991
994
|
return value === POLYFILL ? true
|
|
992
995
|
: value === NATIVE ? false
|
|
993
|
-
: isCallable$
|
|
996
|
+
: isCallable$8(detection) ? fails$a(detection)
|
|
994
997
|
: !!detection;
|
|
995
998
|
};
|
|
996
999
|
|
|
@@ -1004,7 +1007,7 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
1004
1007
|
|
|
1005
1008
|
var isForced_1 = isForced$1;
|
|
1006
1009
|
|
|
1007
|
-
var global$
|
|
1010
|
+
var global$6 = global$f;
|
|
1008
1011
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
1009
1012
|
var createNonEnumerableProperty$5 = createNonEnumerableProperty$7;
|
|
1010
1013
|
var defineBuiltIn$2 = defineBuiltIn$3;
|
|
@@ -1033,11 +1036,11 @@ var _export = function (options, source) {
|
|
|
1033
1036
|
var STATIC = options.stat;
|
|
1034
1037
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1035
1038
|
if (GLOBAL) {
|
|
1036
|
-
target = global$
|
|
1039
|
+
target = global$6;
|
|
1037
1040
|
} else if (STATIC) {
|
|
1038
|
-
target = global$
|
|
1041
|
+
target = global$6[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1039
1042
|
} else {
|
|
1040
|
-
target = global$
|
|
1043
|
+
target = global$6[TARGET] && global$6[TARGET].prototype;
|
|
1041
1044
|
}
|
|
1042
1045
|
if (target) for (key in source) {
|
|
1043
1046
|
sourceProperty = source[key];
|
|
@@ -1069,10 +1072,10 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
1069
1072
|
return internalObjectKeys(O, enumBugKeys$1);
|
|
1070
1073
|
};
|
|
1071
1074
|
|
|
1072
|
-
var DESCRIPTORS$
|
|
1073
|
-
var uncurryThis$
|
|
1074
|
-
var call$
|
|
1075
|
-
var fails$
|
|
1075
|
+
var DESCRIPTORS$6 = descriptors;
|
|
1076
|
+
var uncurryThis$c = functionUncurryThis;
|
|
1077
|
+
var call$8 = functionCall;
|
|
1078
|
+
var fails$9 = fails$i;
|
|
1076
1079
|
var objectKeys$1 = objectKeys$2;
|
|
1077
1080
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1078
1081
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
@@ -1082,17 +1085,17 @@ var IndexedObject = indexedObject;
|
|
|
1082
1085
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1083
1086
|
var $assign = Object.assign;
|
|
1084
1087
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1085
|
-
var defineProperty$
|
|
1086
|
-
var concat = uncurryThis$
|
|
1088
|
+
var defineProperty$5 = Object.defineProperty;
|
|
1089
|
+
var concat = uncurryThis$c([].concat);
|
|
1087
1090
|
|
|
1088
1091
|
// `Object.assign` method
|
|
1089
1092
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1090
|
-
var objectAssign$1 = !$assign || fails$
|
|
1093
|
+
var objectAssign$1 = !$assign || fails$9(function () {
|
|
1091
1094
|
// should have correct order of operations (Edge bug)
|
|
1092
|
-
if (DESCRIPTORS$
|
|
1095
|
+
if (DESCRIPTORS$6 && $assign({ b: 1 }, $assign(defineProperty$5({}, 'a', {
|
|
1093
1096
|
enumerable: true,
|
|
1094
1097
|
get: function () {
|
|
1095
|
-
defineProperty$
|
|
1098
|
+
defineProperty$5(this, 'b', {
|
|
1096
1099
|
value: 3,
|
|
1097
1100
|
enumerable: false
|
|
1098
1101
|
});
|
|
@@ -1121,18 +1124,18 @@ var objectAssign$1 = !$assign || fails$7(function () {
|
|
|
1121
1124
|
var key;
|
|
1122
1125
|
while (length > j) {
|
|
1123
1126
|
key = keys[j++];
|
|
1124
|
-
if (!DESCRIPTORS$
|
|
1127
|
+
if (!DESCRIPTORS$6 || call$8(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1125
1128
|
}
|
|
1126
1129
|
} return T;
|
|
1127
1130
|
} : $assign;
|
|
1128
1131
|
|
|
1129
|
-
var $$
|
|
1132
|
+
var $$g = _export;
|
|
1130
1133
|
var assign$1 = objectAssign$1;
|
|
1131
1134
|
|
|
1132
1135
|
// `Object.assign` method
|
|
1133
1136
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1134
1137
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1135
|
-
$$
|
|
1138
|
+
$$g({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign$1 }, {
|
|
1136
1139
|
assign: assign$1
|
|
1137
1140
|
});
|
|
1138
1141
|
|
|
@@ -1150,7 +1153,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
1150
1153
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1151
1154
|
PERFORMANCE OF THIS SOFTWARE.
|
|
1152
1155
|
***************************************************************************** */
|
|
1153
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
1156
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
1154
1157
|
|
|
1155
1158
|
|
|
1156
1159
|
function __rest(s, e) {
|
|
@@ -1202,10 +1205,9 @@ styleSheet.flush()
|
|
|
1202
1205
|
- empties the stylesheet of all its contents
|
|
1203
1206
|
|
|
1204
1207
|
*/
|
|
1205
|
-
|
|
1208
|
+
|
|
1206
1209
|
function sheetForTag(tag) {
|
|
1207
1210
|
if (tag.sheet) {
|
|
1208
|
-
// $FlowFixMe
|
|
1209
1211
|
return tag.sheet;
|
|
1210
1212
|
} // this weirdness brought to you by firefox
|
|
1211
1213
|
|
|
@@ -1214,10 +1216,13 @@ function sheetForTag(tag) {
|
|
|
1214
1216
|
|
|
1215
1217
|
for (var i = 0; i < document.styleSheets.length; i++) {
|
|
1216
1218
|
if (document.styleSheets[i].ownerNode === tag) {
|
|
1217
|
-
// $FlowFixMe
|
|
1218
1219
|
return document.styleSheets[i];
|
|
1219
1220
|
}
|
|
1220
|
-
}
|
|
1221
|
+
} // this function should always return with a value
|
|
1222
|
+
// TS can't understand it though so we make it stop complaining here
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
return undefined;
|
|
1221
1226
|
}
|
|
1222
1227
|
|
|
1223
1228
|
function createStyleElement(options) {
|
|
@@ -1258,7 +1263,7 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
1258
1263
|
_this.tags.push(tag);
|
|
1259
1264
|
};
|
|
1260
1265
|
|
|
1261
|
-
this.isSpeedy = options.speedy === undefined ?
|
|
1266
|
+
this.isSpeedy = options.speedy === undefined ? true : options.speedy;
|
|
1262
1267
|
this.tags = [];
|
|
1263
1268
|
this.ctr = 0;
|
|
1264
1269
|
this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
|
|
@@ -1286,18 +1291,6 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
1286
1291
|
|
|
1287
1292
|
var tag = this.tags[this.tags.length - 1];
|
|
1288
1293
|
|
|
1289
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
1290
|
-
var isImportRule = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105;
|
|
1291
|
-
|
|
1292
|
-
if (isImportRule && this._alreadyInsertedOrderInsensitiveRule) {
|
|
1293
|
-
// this would only cause problem in speedy mode
|
|
1294
|
-
// but we don't want enabling speedy to affect the observable behavior
|
|
1295
|
-
// so we report this error at all times
|
|
1296
|
-
console.error("You're attempting to insert the following rule:\n" + rule + '\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules.');
|
|
1297
|
-
}
|
|
1298
|
-
this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule;
|
|
1299
|
-
}
|
|
1300
|
-
|
|
1301
1294
|
if (this.isSpeedy) {
|
|
1302
1295
|
var sheet = sheetForTag(tag);
|
|
1303
1296
|
|
|
@@ -1306,9 +1299,6 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
1306
1299
|
// the big drawback is that the css won't be editable in devtools
|
|
1307
1300
|
sheet.insertRule(rule, sheet.cssRules.length);
|
|
1308
1301
|
} catch (e) {
|
|
1309
|
-
if (process.env.NODE_ENV !== 'production' && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(rule)) {
|
|
1310
|
-
console.error("There was a problem inserting the following rule: \"" + rule + "\"", e);
|
|
1311
|
-
}
|
|
1312
1302
|
}
|
|
1313
1303
|
} else {
|
|
1314
1304
|
tag.appendChild(document.createTextNode(rule));
|
|
@@ -1318,16 +1308,13 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
1318
1308
|
};
|
|
1319
1309
|
|
|
1320
1310
|
_proto.flush = function flush() {
|
|
1321
|
-
// $FlowFixMe
|
|
1322
1311
|
this.tags.forEach(function (tag) {
|
|
1323
|
-
|
|
1312
|
+
var _tag$parentNode;
|
|
1313
|
+
|
|
1314
|
+
return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);
|
|
1324
1315
|
});
|
|
1325
1316
|
this.tags = [];
|
|
1326
1317
|
this.ctr = 0;
|
|
1327
|
-
|
|
1328
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
1329
|
-
this._alreadyInsertedOrderInsensitiveRule = false;
|
|
1330
|
-
}
|
|
1331
1318
|
};
|
|
1332
1319
|
|
|
1333
1320
|
return StyleSheet;
|
|
@@ -1511,7 +1498,7 @@ function prev () {
|
|
|
1511
1498
|
/**
|
|
1512
1499
|
* @return {number}
|
|
1513
1500
|
*/
|
|
1514
|
-
function next () {
|
|
1501
|
+
function next$1 () {
|
|
1515
1502
|
character = position < length ? charat(characters, position++) : 0;
|
|
1516
1503
|
|
|
1517
1504
|
if (column++, character === 10)
|
|
@@ -1602,7 +1589,7 @@ function delimit (type) {
|
|
|
1602
1589
|
function whitespace (type) {
|
|
1603
1590
|
while (character = peek())
|
|
1604
1591
|
if (character < 33)
|
|
1605
|
-
next();
|
|
1592
|
+
next$1();
|
|
1606
1593
|
else
|
|
1607
1594
|
break
|
|
1608
1595
|
|
|
@@ -1615,12 +1602,12 @@ function whitespace (type) {
|
|
|
1615
1602
|
* @return {string}
|
|
1616
1603
|
*/
|
|
1617
1604
|
function escaping (index, count) {
|
|
1618
|
-
while (--count && next())
|
|
1605
|
+
while (--count && next$1())
|
|
1619
1606
|
// not 0-9 A-F a-f
|
|
1620
1607
|
if (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))
|
|
1621
1608
|
break
|
|
1622
1609
|
|
|
1623
|
-
return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))
|
|
1610
|
+
return slice(index, caret() + (count < 6 && peek() == 32 && next$1() == 32))
|
|
1624
1611
|
}
|
|
1625
1612
|
|
|
1626
1613
|
/**
|
|
@@ -1628,7 +1615,7 @@ function escaping (index, count) {
|
|
|
1628
1615
|
* @return {number}
|
|
1629
1616
|
*/
|
|
1630
1617
|
function delimiter (type) {
|
|
1631
|
-
while (next())
|
|
1618
|
+
while (next$1())
|
|
1632
1619
|
switch (character) {
|
|
1633
1620
|
// ] ) " '
|
|
1634
1621
|
case type:
|
|
@@ -1645,7 +1632,7 @@ function delimiter (type) {
|
|
|
1645
1632
|
break
|
|
1646
1633
|
// \
|
|
1647
1634
|
case 92:
|
|
1648
|
-
next();
|
|
1635
|
+
next$1();
|
|
1649
1636
|
break
|
|
1650
1637
|
}
|
|
1651
1638
|
|
|
@@ -1658,7 +1645,7 @@ function delimiter (type) {
|
|
|
1658
1645
|
* @return {number}
|
|
1659
1646
|
*/
|
|
1660
1647
|
function commenter (type, index) {
|
|
1661
|
-
while (next())
|
|
1648
|
+
while (next$1())
|
|
1662
1649
|
// //
|
|
1663
1650
|
if (type + character === 47 + 10)
|
|
1664
1651
|
break
|
|
@@ -1666,7 +1653,7 @@ function commenter (type, index) {
|
|
|
1666
1653
|
else if (type + character === 42 + 42 && peek() === 47)
|
|
1667
1654
|
break
|
|
1668
1655
|
|
|
1669
|
-
return '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())
|
|
1656
|
+
return '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next$1())
|
|
1670
1657
|
}
|
|
1671
1658
|
|
|
1672
1659
|
/**
|
|
@@ -1675,7 +1662,7 @@ function commenter (type, index) {
|
|
|
1675
1662
|
*/
|
|
1676
1663
|
function identifier (index) {
|
|
1677
1664
|
while (!token(peek()))
|
|
1678
|
-
next();
|
|
1665
|
+
next$1();
|
|
1679
1666
|
|
|
1680
1667
|
return slice(index, position)
|
|
1681
1668
|
}
|
|
@@ -1718,7 +1705,7 @@ function parse$2 (value, root, parent, rule, rules, rulesets, pseudo, points, de
|
|
|
1718
1705
|
var characters = type;
|
|
1719
1706
|
|
|
1720
1707
|
while (scanning)
|
|
1721
|
-
switch (previous = character, character = next()) {
|
|
1708
|
+
switch (previous = character, character = next$1()) {
|
|
1722
1709
|
// (
|
|
1723
1710
|
case 40:
|
|
1724
1711
|
if (previous != 108 && charat(characters, length - 1) == 58) {
|
|
@@ -1742,7 +1729,7 @@ function parse$2 (value, root, parent, rule, rules, rulesets, pseudo, points, de
|
|
|
1742
1729
|
case 47:
|
|
1743
1730
|
switch (peek()) {
|
|
1744
1731
|
case 42: case 47:
|
|
1745
|
-
append(comment(commenter(next(), caret()), root, parent), declarations);
|
|
1732
|
+
append(comment(commenter(next$1(), caret()), root, parent), declarations);
|
|
1746
1733
|
break
|
|
1747
1734
|
default:
|
|
1748
1735
|
characters += '/';
|
|
@@ -1806,7 +1793,7 @@ function parse$2 (value, root, parent, rule, rules, rulesets, pseudo, points, de
|
|
|
1806
1793
|
case 64:
|
|
1807
1794
|
// -
|
|
1808
1795
|
if (peek() === 45)
|
|
1809
|
-
characters += delimit(next());
|
|
1796
|
+
characters += delimit(next$1());
|
|
1810
1797
|
|
|
1811
1798
|
atrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++;
|
|
1812
1799
|
break
|
|
@@ -1932,11 +1919,11 @@ function rulesheet (callback) {
|
|
|
1932
1919
|
}
|
|
1933
1920
|
|
|
1934
1921
|
var weakMemoize = function weakMemoize(func) {
|
|
1935
|
-
// $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
|
|
1936
1922
|
var cache = new WeakMap();
|
|
1937
1923
|
return function (arg) {
|
|
1938
1924
|
if (cache.has(arg)) {
|
|
1939
|
-
//
|
|
1925
|
+
// Use non-null assertion because we just checked that the cache `has` it
|
|
1926
|
+
// This allows us to remove `undefined` from the return value
|
|
1940
1927
|
return cache.get(arg);
|
|
1941
1928
|
}
|
|
1942
1929
|
|
|
@@ -1946,7 +1933,7 @@ var weakMemoize = function weakMemoize(func) {
|
|
|
1946
1933
|
};
|
|
1947
1934
|
};
|
|
1948
1935
|
|
|
1949
|
-
function memoize(fn) {
|
|
1936
|
+
function memoize$1(fn) {
|
|
1950
1937
|
var cache = Object.create(null);
|
|
1951
1938
|
return function (arg) {
|
|
1952
1939
|
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
@@ -1954,6 +1941,8 @@ function memoize(fn) {
|
|
|
1954
1941
|
};
|
|
1955
1942
|
}
|
|
1956
1943
|
|
|
1944
|
+
var isBrowser$3 = typeof document !== 'undefined';
|
|
1945
|
+
|
|
1957
1946
|
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
|
|
1958
1947
|
var previous = 0;
|
|
1959
1948
|
var character = 0;
|
|
@@ -1970,7 +1959,7 @@ var identifierWithPointTracking = function identifierWithPointTracking(begin, po
|
|
|
1970
1959
|
break;
|
|
1971
1960
|
}
|
|
1972
1961
|
|
|
1973
|
-
next();
|
|
1962
|
+
next$1();
|
|
1974
1963
|
}
|
|
1975
1964
|
|
|
1976
1965
|
return slice(begin, position);
|
|
@@ -2014,7 +2003,7 @@ var toRules = function toRules(parsed, points) {
|
|
|
2014
2003
|
default:
|
|
2015
2004
|
parsed[index] += from(character);
|
|
2016
2005
|
}
|
|
2017
|
-
} while (character = next());
|
|
2006
|
+
} while (character = next$1());
|
|
2018
2007
|
|
|
2019
2008
|
return parsed;
|
|
2020
2009
|
};
|
|
@@ -2032,8 +2021,8 @@ var compat = function compat(element) {
|
|
|
2032
2021
|
return;
|
|
2033
2022
|
}
|
|
2034
2023
|
|
|
2035
|
-
var value = element.value
|
|
2036
|
-
|
|
2024
|
+
var value = element.value;
|
|
2025
|
+
var parent = element.parent;
|
|
2037
2026
|
var isImplicitRule = element.column === parent.column && element.line === parent.line;
|
|
2038
2027
|
|
|
2039
2028
|
while (parent.type !== 'rule') {
|
|
@@ -2078,114 +2067,6 @@ var removeLabel = function removeLabel(element) {
|
|
|
2078
2067
|
}
|
|
2079
2068
|
}
|
|
2080
2069
|
};
|
|
2081
|
-
var ignoreFlag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';
|
|
2082
|
-
|
|
2083
|
-
var isIgnoringComment = function isIgnoringComment(element) {
|
|
2084
|
-
return element.type === 'comm' && element.children.indexOf(ignoreFlag) > -1;
|
|
2085
|
-
};
|
|
2086
|
-
|
|
2087
|
-
var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) {
|
|
2088
|
-
return function (element, index, children) {
|
|
2089
|
-
if (element.type !== 'rule' || cache.compat) return;
|
|
2090
|
-
var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);
|
|
2091
|
-
|
|
2092
|
-
if (unsafePseudoClasses) {
|
|
2093
|
-
var isNested = !!element.parent; // in nested rules comments become children of the "auto-inserted" rule and that's always the `element.parent`
|
|
2094
|
-
//
|
|
2095
|
-
// considering this input:
|
|
2096
|
-
// .a {
|
|
2097
|
-
// .b /* comm */ {}
|
|
2098
|
-
// color: hotpink;
|
|
2099
|
-
// }
|
|
2100
|
-
// we get output corresponding to this:
|
|
2101
|
-
// .a {
|
|
2102
|
-
// & {
|
|
2103
|
-
// /* comm */
|
|
2104
|
-
// color: hotpink;
|
|
2105
|
-
// }
|
|
2106
|
-
// .b {}
|
|
2107
|
-
// }
|
|
2108
|
-
|
|
2109
|
-
var commentContainer = isNested ? element.parent.children : // global rule at the root level
|
|
2110
|
-
children;
|
|
2111
|
-
|
|
2112
|
-
for (var i = commentContainer.length - 1; i >= 0; i--) {
|
|
2113
|
-
var node = commentContainer[i];
|
|
2114
|
-
|
|
2115
|
-
if (node.line < element.line) {
|
|
2116
|
-
break;
|
|
2117
|
-
} // it is quite weird but comments are *usually* put at `column: element.column - 1`
|
|
2118
|
-
// so we seek *from the end* for the node that is earlier than the rule's `element` and check that
|
|
2119
|
-
// this will also match inputs like this:
|
|
2120
|
-
// .a {
|
|
2121
|
-
// /* comm */
|
|
2122
|
-
// .b {}
|
|
2123
|
-
// }
|
|
2124
|
-
//
|
|
2125
|
-
// but that is fine
|
|
2126
|
-
//
|
|
2127
|
-
// it would be the easiest to change the placement of the comment to be the first child of the rule:
|
|
2128
|
-
// .a {
|
|
2129
|
-
// .b { /* comm */ }
|
|
2130
|
-
// }
|
|
2131
|
-
// with such inputs we wouldn't have to search for the comment at all
|
|
2132
|
-
// TODO: consider changing this comment placement in the next major version
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
if (node.column < element.column) {
|
|
2136
|
-
if (isIgnoringComment(node)) {
|
|
2137
|
-
return;
|
|
2138
|
-
}
|
|
2139
|
-
|
|
2140
|
-
break;
|
|
2141
|
-
}
|
|
2142
|
-
}
|
|
2143
|
-
|
|
2144
|
-
unsafePseudoClasses.forEach(function (unsafePseudoClass) {
|
|
2145
|
-
console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\".");
|
|
2146
|
-
});
|
|
2147
|
-
}
|
|
2148
|
-
};
|
|
2149
|
-
};
|
|
2150
|
-
|
|
2151
|
-
var isImportRule = function isImportRule(element) {
|
|
2152
|
-
return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64;
|
|
2153
|
-
};
|
|
2154
|
-
|
|
2155
|
-
var isPrependedWithRegularRules = function isPrependedWithRegularRules(index, children) {
|
|
2156
|
-
for (var i = index - 1; i >= 0; i--) {
|
|
2157
|
-
if (!isImportRule(children[i])) {
|
|
2158
|
-
return true;
|
|
2159
|
-
}
|
|
2160
|
-
}
|
|
2161
|
-
|
|
2162
|
-
return false;
|
|
2163
|
-
}; // use this to remove incorrect elements from further processing
|
|
2164
|
-
// so they don't get handed to the `sheet` (or anything else)
|
|
2165
|
-
// as that could potentially lead to additional logs which in turn could be overhelming to the user
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
var nullifyElement = function nullifyElement(element) {
|
|
2169
|
-
element.type = '';
|
|
2170
|
-
element.value = '';
|
|
2171
|
-
element["return"] = '';
|
|
2172
|
-
element.children = '';
|
|
2173
|
-
element.props = '';
|
|
2174
|
-
};
|
|
2175
|
-
|
|
2176
|
-
var incorrectImportAlarm = function incorrectImportAlarm(element, index, children) {
|
|
2177
|
-
if (!isImportRule(element)) {
|
|
2178
|
-
return;
|
|
2179
|
-
}
|
|
2180
|
-
|
|
2181
|
-
if (element.parent) {
|
|
2182
|
-
console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles.");
|
|
2183
|
-
nullifyElement(element);
|
|
2184
|
-
} else if (isPrependedWithRegularRules(index, children)) {
|
|
2185
|
-
console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");
|
|
2186
|
-
nullifyElement(element);
|
|
2187
|
-
}
|
|
2188
|
-
};
|
|
2189
2070
|
|
|
2190
2071
|
/* eslint-disable no-fallthrough */
|
|
2191
2072
|
|
|
@@ -2399,13 +2280,9 @@ var prefixer = function prefixer(element, index, children, callback) {
|
|
|
2399
2280
|
}
|
|
2400
2281
|
};
|
|
2401
2282
|
|
|
2402
|
-
var isBrowser$3 = typeof document !== 'undefined';
|
|
2403
2283
|
var getServerStylisCache = isBrowser$3 ? undefined : weakMemoize(function () {
|
|
2404
|
-
return memoize(function () {
|
|
2405
|
-
|
|
2406
|
-
return function (name) {
|
|
2407
|
-
return cache[name];
|
|
2408
|
-
};
|
|
2284
|
+
return memoize$1(function () {
|
|
2285
|
+
return {};
|
|
2409
2286
|
});
|
|
2410
2287
|
});
|
|
2411
2288
|
var defaultStylisPlugins = [prefixer];
|
|
@@ -2413,10 +2290,6 @@ var defaultStylisPlugins = [prefixer];
|
|
|
2413
2290
|
var createCache = function createCache(options) {
|
|
2414
2291
|
var key = options.key;
|
|
2415
2292
|
|
|
2416
|
-
if (process.env.NODE_ENV !== 'production' && !key) {
|
|
2417
|
-
throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\n" + "If multiple caches share the same key they might \"fight\" for each other's style elements.");
|
|
2418
|
-
}
|
|
2419
|
-
|
|
2420
2293
|
if (isBrowser$3 && key === 'css') {
|
|
2421
2294
|
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
|
|
2422
2295
|
// document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
|
|
@@ -2435,6 +2308,7 @@ var createCache = function createCache(options) {
|
|
|
2435
2308
|
if (dataEmotionAttribute.indexOf(' ') === -1) {
|
|
2436
2309
|
return;
|
|
2437
2310
|
}
|
|
2311
|
+
|
|
2438
2312
|
document.head.appendChild(node);
|
|
2439
2313
|
node.setAttribute('data-s', '');
|
|
2440
2314
|
});
|
|
@@ -2442,13 +2316,6 @@ var createCache = function createCache(options) {
|
|
|
2442
2316
|
|
|
2443
2317
|
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
|
2444
2318
|
|
|
2445
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
2446
|
-
// $FlowFixMe
|
|
2447
|
-
if (/[^a-z-]/.test(key)) {
|
|
2448
|
-
throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
|
|
2449
|
-
}
|
|
2450
|
-
}
|
|
2451
|
-
|
|
2452
2319
|
var inserted = {};
|
|
2453
2320
|
var container;
|
|
2454
2321
|
var nodesToHydrate = [];
|
|
@@ -2458,7 +2325,7 @@ var createCache = function createCache(options) {
|
|
|
2458
2325
|
Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
|
|
2459
2326
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
2460
2327
|
document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node) {
|
|
2461
|
-
var attrib = node.getAttribute("data-emotion").split(' ');
|
|
2328
|
+
var attrib = node.getAttribute("data-emotion").split(' ');
|
|
2462
2329
|
|
|
2463
2330
|
for (var i = 1; i < attrib.length; i++) {
|
|
2464
2331
|
inserted[attrib[i]] = true;
|
|
@@ -2472,28 +2339,9 @@ var createCache = function createCache(options) {
|
|
|
2472
2339
|
|
|
2473
2340
|
var omnipresentPlugins = [compat, removeLabel];
|
|
2474
2341
|
|
|
2475
|
-
if (
|
|
2476
|
-
omnipresentPlugins.push(createUnsafeSelectorsAlarm({
|
|
2477
|
-
get compat() {
|
|
2478
|
-
return cache.compat;
|
|
2479
|
-
}
|
|
2480
|
-
|
|
2481
|
-
}), incorrectImportAlarm);
|
|
2482
|
-
}
|
|
2483
|
-
|
|
2484
|
-
if (isBrowser$3) {
|
|
2342
|
+
if (!getServerStylisCache) {
|
|
2485
2343
|
var currentSheet;
|
|
2486
|
-
var finalizingPlugins = [stringify$1,
|
|
2487
|
-
if (!element.root) {
|
|
2488
|
-
if (element["return"]) {
|
|
2489
|
-
currentSheet.insert(element["return"]);
|
|
2490
|
-
} else if (element.value && element.type !== COMMENT) {
|
|
2491
|
-
// insert empty rule in non-production environments
|
|
2492
|
-
// so @emotion/jest can grab `key` from the (JS)DOM for caches without any rules inserted yet
|
|
2493
|
-
currentSheet.insert(element.value + "{}");
|
|
2494
|
-
}
|
|
2495
|
-
}
|
|
2496
|
-
} : rulesheet(function (rule) {
|
|
2344
|
+
var finalizingPlugins = [stringify$1, rulesheet(function (rule) {
|
|
2497
2345
|
currentSheet.insert(rule);
|
|
2498
2346
|
})];
|
|
2499
2347
|
var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
|
@@ -2505,14 +2353,6 @@ var createCache = function createCache(options) {
|
|
|
2505
2353
|
_insert = function insert(selector, serialized, sheet, shouldCache) {
|
|
2506
2354
|
currentSheet = sheet;
|
|
2507
2355
|
|
|
2508
|
-
if (process.env.NODE_ENV !== 'production' && serialized.map !== undefined) {
|
|
2509
|
-
currentSheet = {
|
|
2510
|
-
insert: function insert(rule) {
|
|
2511
|
-
sheet.insert(rule + serialized.map);
|
|
2512
|
-
}
|
|
2513
|
-
};
|
|
2514
|
-
}
|
|
2515
|
-
|
|
2516
2356
|
stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
|
2517
2357
|
|
|
2518
2358
|
if (shouldCache) {
|
|
@@ -2526,8 +2366,7 @@ var createCache = function createCache(options) {
|
|
|
2526
2366
|
|
|
2527
2367
|
var _stylis = function _stylis(styles) {
|
|
2528
2368
|
return serialize(compile$1(styles), _serializer);
|
|
2529
|
-
};
|
|
2530
|
-
|
|
2369
|
+
};
|
|
2531
2370
|
|
|
2532
2371
|
var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
|
|
2533
2372
|
|
|
@@ -2553,12 +2392,6 @@ var createCache = function createCache(options) {
|
|
|
2553
2392
|
cache.inserted[name] = true;
|
|
2554
2393
|
}
|
|
2555
2394
|
|
|
2556
|
-
if ( // using === development instead of !== production
|
|
2557
|
-
// because if people do ssr in tests, the source maps showing up would be annoying
|
|
2558
|
-
process.env.NODE_ENV === 'development' && serialized.map !== undefined) {
|
|
2559
|
-
return rules + serialized.map;
|
|
2560
|
-
}
|
|
2561
|
-
|
|
2562
2395
|
return rules;
|
|
2563
2396
|
} else {
|
|
2564
2397
|
// in compat mode, we put the styles on the inserted cache so
|
|
@@ -2851,12 +2684,13 @@ TYPE_STATICS[reactIs$2.ForwardRef] = FORWARD_REF_STATICS;
|
|
|
2851
2684
|
TYPE_STATICS[reactIs$2.Memo] = MEMO_STATICS;
|
|
2852
2685
|
|
|
2853
2686
|
var isBrowser$2 = typeof document !== 'undefined';
|
|
2687
|
+
|
|
2854
2688
|
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
|
2855
2689
|
var rawClassName = '';
|
|
2856
2690
|
classNames.split(' ').forEach(function (className) {
|
|
2857
2691
|
if (registered[className] !== undefined) {
|
|
2858
2692
|
registeredStyles.push(registered[className] + ";");
|
|
2859
|
-
} else {
|
|
2693
|
+
} else if (className) {
|
|
2860
2694
|
rawClassName += className + " ";
|
|
2861
2695
|
}
|
|
2862
2696
|
});
|
|
@@ -2990,6 +2824,7 @@ var unitlessKeys = {
|
|
|
2990
2824
|
opacity: 1,
|
|
2991
2825
|
order: 1,
|
|
2992
2826
|
orphans: 1,
|
|
2827
|
+
scale: 1,
|
|
2993
2828
|
tabSize: 1,
|
|
2994
2829
|
widows: 1,
|
|
2995
2830
|
zIndex: 1,
|
|
@@ -3006,8 +2841,14 @@ var unitlessKeys = {
|
|
|
3006
2841
|
strokeWidth: 1
|
|
3007
2842
|
};
|
|
3008
2843
|
|
|
3009
|
-
|
|
3010
|
-
var
|
|
2844
|
+
function memoize(fn) {
|
|
2845
|
+
var cache = Object.create(null);
|
|
2846
|
+
return function (arg) {
|
|
2847
|
+
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
2848
|
+
return cache[arg];
|
|
2849
|
+
};
|
|
2850
|
+
}
|
|
2851
|
+
|
|
3011
2852
|
var hyphenateRegex = /[A-Z]|^ms/g;
|
|
3012
2853
|
var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
|
|
3013
2854
|
|
|
@@ -3048,47 +2889,16 @@ var processStyleValue = function processStyleValue(key, value) {
|
|
|
3048
2889
|
return value;
|
|
3049
2890
|
};
|
|
3050
2891
|
|
|
3051
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
3052
|
-
var contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
|
|
3053
|
-
var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset'];
|
|
3054
|
-
var oldProcessStyleValue = processStyleValue;
|
|
3055
|
-
var msPattern = /^-ms-/;
|
|
3056
|
-
var hyphenPattern = /-(.)/g;
|
|
3057
|
-
var hyphenatedCache = {};
|
|
3058
|
-
|
|
3059
|
-
processStyleValue = function processStyleValue(key, value) {
|
|
3060
|
-
if (key === 'content') {
|
|
3061
|
-
if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
|
|
3062
|
-
throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
|
|
3063
|
-
}
|
|
3064
|
-
}
|
|
3065
|
-
|
|
3066
|
-
var processed = oldProcessStyleValue(key, value);
|
|
3067
|
-
|
|
3068
|
-
if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) {
|
|
3069
|
-
hyphenatedCache[key] = true;
|
|
3070
|
-
console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) {
|
|
3071
|
-
return _char.toUpperCase();
|
|
3072
|
-
}) + "?");
|
|
3073
|
-
}
|
|
3074
|
-
|
|
3075
|
-
return processed;
|
|
3076
|
-
};
|
|
3077
|
-
}
|
|
3078
|
-
|
|
3079
|
-
var noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';
|
|
3080
|
-
|
|
3081
2892
|
function handleInterpolation(mergedProps, registered, interpolation) {
|
|
3082
2893
|
if (interpolation == null) {
|
|
3083
2894
|
return '';
|
|
3084
2895
|
}
|
|
3085
2896
|
|
|
3086
|
-
|
|
3087
|
-
if (process.env.NODE_ENV !== 'production' && interpolation.toString() === 'NO_COMPONENT_SELECTOR') {
|
|
3088
|
-
throw new Error(noComponentSelectorMessage);
|
|
3089
|
-
}
|
|
2897
|
+
var componentSelector = interpolation;
|
|
3090
2898
|
|
|
3091
|
-
|
|
2899
|
+
if (componentSelector.__emotion_styles !== undefined) {
|
|
2900
|
+
|
|
2901
|
+
return componentSelector;
|
|
3092
2902
|
}
|
|
3093
2903
|
|
|
3094
2904
|
switch (typeof interpolation) {
|
|
@@ -3099,17 +2909,21 @@ function handleInterpolation(mergedProps, registered, interpolation) {
|
|
|
3099
2909
|
|
|
3100
2910
|
case 'object':
|
|
3101
2911
|
{
|
|
3102
|
-
|
|
2912
|
+
var keyframes = interpolation;
|
|
2913
|
+
|
|
2914
|
+
if (keyframes.anim === 1) {
|
|
3103
2915
|
cursor = {
|
|
3104
|
-
name:
|
|
3105
|
-
styles:
|
|
2916
|
+
name: keyframes.name,
|
|
2917
|
+
styles: keyframes.styles,
|
|
3106
2918
|
next: cursor
|
|
3107
2919
|
};
|
|
3108
|
-
return
|
|
2920
|
+
return keyframes.name;
|
|
3109
2921
|
}
|
|
3110
2922
|
|
|
3111
|
-
|
|
3112
|
-
|
|
2923
|
+
var serializedStyles = interpolation;
|
|
2924
|
+
|
|
2925
|
+
if (serializedStyles.styles !== undefined) {
|
|
2926
|
+
var next = serializedStyles.next;
|
|
3113
2927
|
|
|
3114
2928
|
if (next !== undefined) {
|
|
3115
2929
|
// not the most efficient thing ever but this is a pretty rare case
|
|
@@ -3124,12 +2938,7 @@ function handleInterpolation(mergedProps, registered, interpolation) {
|
|
|
3124
2938
|
}
|
|
3125
2939
|
}
|
|
3126
2940
|
|
|
3127
|
-
var styles =
|
|
3128
|
-
|
|
3129
|
-
if (process.env.NODE_ENV !== 'production' && interpolation.map !== undefined) {
|
|
3130
|
-
styles += interpolation.map;
|
|
3131
|
-
}
|
|
3132
|
-
|
|
2941
|
+
var styles = serializedStyles.styles + ";";
|
|
3133
2942
|
return styles;
|
|
3134
2943
|
}
|
|
3135
2944
|
|
|
@@ -3143,33 +2952,17 @@ function handleInterpolation(mergedProps, registered, interpolation) {
|
|
|
3143
2952
|
var result = interpolation(mergedProps);
|
|
3144
2953
|
cursor = previousCursor;
|
|
3145
2954
|
return handleInterpolation(mergedProps, registered, result);
|
|
3146
|
-
} else if (process.env.NODE_ENV !== 'production') {
|
|
3147
|
-
console.error('Functions that are interpolated in css calls will be stringified.\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\n' + 'It can be called directly with props or interpolated in a styled call like this\n' + "let SomeComponent = styled('div')`${dynamicStyle}`");
|
|
3148
2955
|
}
|
|
3149
2956
|
|
|
3150
2957
|
break;
|
|
3151
2958
|
}
|
|
3152
|
-
|
|
3153
|
-
case 'string':
|
|
3154
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
3155
|
-
var matched = [];
|
|
3156
|
-
var replaced = interpolation.replace(animationRegex, function (match, p1, p2) {
|
|
3157
|
-
var fakeVarName = "animation" + matched.length;
|
|
3158
|
-
matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, '') + "`");
|
|
3159
|
-
return "${" + fakeVarName + "}";
|
|
3160
|
-
});
|
|
3161
|
-
|
|
3162
|
-
if (matched.length) {
|
|
3163
|
-
console.error('`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\n' + 'Instead of doing this:\n\n' + [].concat(matched, ["`" + replaced + "`"]).join('\n') + '\n\nYou should wrap it with `css` like this:\n\n' + ("css`" + replaced + "`"));
|
|
3164
|
-
}
|
|
3165
|
-
}
|
|
3166
|
-
|
|
3167
|
-
break;
|
|
3168
2959
|
} // finalize string values (regular strings and functions interpolated into css calls)
|
|
3169
2960
|
|
|
3170
2961
|
|
|
2962
|
+
var asString = interpolation;
|
|
2963
|
+
|
|
3171
2964
|
{
|
|
3172
|
-
return
|
|
2965
|
+
return asString;
|
|
3173
2966
|
}
|
|
3174
2967
|
}
|
|
3175
2968
|
|
|
@@ -3181,42 +2974,38 @@ function createStringFromObject(mergedProps, registered, obj) {
|
|
|
3181
2974
|
string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
|
|
3182
2975
|
}
|
|
3183
2976
|
} else {
|
|
3184
|
-
for (var
|
|
3185
|
-
var value = obj[
|
|
2977
|
+
for (var key in obj) {
|
|
2978
|
+
var value = obj[key];
|
|
3186
2979
|
|
|
3187
2980
|
if (typeof value !== 'object') {
|
|
3188
|
-
|
|
3189
|
-
|
|
2981
|
+
var asString = value;
|
|
2982
|
+
|
|
2983
|
+
if (isProcessableValue(asString)) {
|
|
2984
|
+
string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
|
|
3190
2985
|
}
|
|
3191
2986
|
} else {
|
|
3192
|
-
if (_key === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') {
|
|
3193
|
-
throw new Error(noComponentSelectorMessage);
|
|
3194
|
-
}
|
|
3195
2987
|
|
|
3196
|
-
if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null
|
|
2988
|
+
if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null)) {
|
|
3197
2989
|
for (var _i = 0; _i < value.length; _i++) {
|
|
3198
2990
|
if (isProcessableValue(value[_i])) {
|
|
3199
|
-
string += processStyleName(
|
|
2991
|
+
string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";";
|
|
3200
2992
|
}
|
|
3201
2993
|
}
|
|
3202
2994
|
} else {
|
|
3203
2995
|
var interpolated = handleInterpolation(mergedProps, registered, value);
|
|
3204
2996
|
|
|
3205
|
-
switch (
|
|
2997
|
+
switch (key) {
|
|
3206
2998
|
case 'animation':
|
|
3207
2999
|
case 'animationName':
|
|
3208
3000
|
{
|
|
3209
|
-
string += processStyleName(
|
|
3001
|
+
string += processStyleName(key) + ":" + interpolated + ";";
|
|
3210
3002
|
break;
|
|
3211
3003
|
}
|
|
3212
3004
|
|
|
3213
3005
|
default:
|
|
3214
3006
|
{
|
|
3215
|
-
if (process.env.NODE_ENV !== 'production' && _key === 'undefined') {
|
|
3216
|
-
console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
|
|
3217
|
-
}
|
|
3218
3007
|
|
|
3219
|
-
string +=
|
|
3008
|
+
string += key + "{" + interpolated + "}";
|
|
3220
3009
|
}
|
|
3221
3010
|
}
|
|
3222
3011
|
}
|
|
@@ -3227,17 +3016,11 @@ function createStringFromObject(mergedProps, registered, obj) {
|
|
|
3227
3016
|
return string;
|
|
3228
3017
|
}
|
|
3229
3018
|
|
|
3230
|
-
var labelPattern = /label:\s*([^\s
|
|
3231
|
-
var sourceMapPattern;
|
|
3232
|
-
|
|
3233
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
3234
|
-
sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
|
|
3235
|
-
} // this is the cursor for keyframes
|
|
3019
|
+
var labelPattern = /label:\s*([^\s;{]+)\s*(;|$)/g; // this is the cursor for keyframes
|
|
3236
3020
|
// keyframes are stored on the SerializedStyles object as a linked list
|
|
3237
3021
|
|
|
3238
|
-
|
|
3239
3022
|
var cursor;
|
|
3240
|
-
|
|
3023
|
+
function serializeStyles(args, registered, mergedProps) {
|
|
3241
3024
|
if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
|
|
3242
3025
|
return args[0];
|
|
3243
3026
|
}
|
|
@@ -3251,11 +3034,9 @@ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
|
|
|
3251
3034
|
stringMode = false;
|
|
3252
3035
|
styles += handleInterpolation(mergedProps, registered, strings);
|
|
3253
3036
|
} else {
|
|
3254
|
-
|
|
3255
|
-
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
|
|
3256
|
-
}
|
|
3037
|
+
var asTemplateStringsArr = strings;
|
|
3257
3038
|
|
|
3258
|
-
styles +=
|
|
3039
|
+
styles += asTemplateStringsArr[0];
|
|
3259
3040
|
} // we start at 1 since we've already handled the first arg
|
|
3260
3041
|
|
|
3261
3042
|
|
|
@@ -3263,21 +3044,10 @@ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
|
|
|
3263
3044
|
styles += handleInterpolation(mergedProps, registered, args[i]);
|
|
3264
3045
|
|
|
3265
3046
|
if (stringMode) {
|
|
3266
|
-
|
|
3267
|
-
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
|
|
3268
|
-
}
|
|
3047
|
+
var templateStringsArr = strings;
|
|
3269
3048
|
|
|
3270
|
-
styles +=
|
|
3049
|
+
styles += templateStringsArr[i];
|
|
3271
3050
|
}
|
|
3272
|
-
}
|
|
3273
|
-
|
|
3274
|
-
var sourceMap;
|
|
3275
|
-
|
|
3276
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
3277
|
-
styles = styles.replace(sourceMapPattern, function (match) {
|
|
3278
|
-
sourceMap = match;
|
|
3279
|
-
return '';
|
|
3280
|
-
});
|
|
3281
3051
|
} // using a global regex with .exec is stateful so lastIndex has to be reset each time
|
|
3282
3052
|
|
|
3283
3053
|
|
|
@@ -3286,31 +3056,17 @@ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
|
|
|
3286
3056
|
var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
|
|
3287
3057
|
|
|
3288
3058
|
while ((match = labelPattern.exec(styles)) !== null) {
|
|
3289
|
-
identifierName += '-' +
|
|
3290
|
-
match[1];
|
|
3059
|
+
identifierName += '-' + match[1];
|
|
3291
3060
|
}
|
|
3292
3061
|
|
|
3293
3062
|
var name = murmur2(styles) + identifierName;
|
|
3294
3063
|
|
|
3295
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
3296
|
-
// $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it)
|
|
3297
|
-
return {
|
|
3298
|
-
name: name,
|
|
3299
|
-
styles: styles,
|
|
3300
|
-
map: sourceMap,
|
|
3301
|
-
next: cursor,
|
|
3302
|
-
toString: function toString() {
|
|
3303
|
-
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
3304
|
-
}
|
|
3305
|
-
};
|
|
3306
|
-
}
|
|
3307
|
-
|
|
3308
3064
|
return {
|
|
3309
3065
|
name: name,
|
|
3310
3066
|
styles: styles,
|
|
3311
3067
|
next: cursor
|
|
3312
3068
|
};
|
|
3313
|
-
}
|
|
3069
|
+
}
|
|
3314
3070
|
|
|
3315
3071
|
var isBrowser$1 = typeof document !== 'undefined';
|
|
3316
3072
|
|
|
@@ -3322,7 +3078,6 @@ var useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion'
|
|
|
3322
3078
|
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$1 ? syncFallback : useInsertionEffect || syncFallback;
|
|
3323
3079
|
|
|
3324
3080
|
var isBrowser = typeof document !== 'undefined';
|
|
3325
|
-
var hasOwnProperty = {}.hasOwnProperty;
|
|
3326
3081
|
|
|
3327
3082
|
var EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
3328
3083
|
// because this module is primarily intended for the browser and node
|
|
@@ -3334,14 +3089,9 @@ typeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({
|
|
|
3334
3089
|
key: 'css'
|
|
3335
3090
|
}) : null);
|
|
3336
3091
|
|
|
3337
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
3338
|
-
EmotionCacheContext.displayName = 'EmotionCacheContext';
|
|
3339
|
-
}
|
|
3340
|
-
|
|
3341
3092
|
EmotionCacheContext.Provider;
|
|
3342
3093
|
|
|
3343
3094
|
var withEmotionCache = function withEmotionCache(func) {
|
|
3344
|
-
// $FlowFixMe
|
|
3345
3095
|
return /*#__PURE__*/forwardRef(function (props, ref) {
|
|
3346
3096
|
// the cache will never be null in the browser
|
|
3347
3097
|
var cache = useContext(EmotionCacheContext);
|
|
@@ -3375,76 +3125,20 @@ if (!isBrowser) {
|
|
|
3375
3125
|
|
|
3376
3126
|
var ThemeContext = /* #__PURE__ */React.createContext({});
|
|
3377
3127
|
|
|
3378
|
-
|
|
3379
|
-
ThemeContext.displayName = 'EmotionThemeContext';
|
|
3380
|
-
}
|
|
3381
|
-
|
|
3382
|
-
var getLastPart = function getLastPart(functionName) {
|
|
3383
|
-
// The match may be something like 'Object.createEmotionProps' or
|
|
3384
|
-
// 'Loader.prototype.render'
|
|
3385
|
-
var parts = functionName.split('.');
|
|
3386
|
-
return parts[parts.length - 1];
|
|
3387
|
-
};
|
|
3388
|
-
|
|
3389
|
-
var getFunctionNameFromStackTraceLine = function getFunctionNameFromStackTraceLine(line) {
|
|
3390
|
-
// V8
|
|
3391
|
-
var match = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(line);
|
|
3392
|
-
if (match) return getLastPart(match[1]); // Safari / Firefox
|
|
3393
|
-
|
|
3394
|
-
match = /^([A-Za-z0-9$.]+)@/.exec(line);
|
|
3395
|
-
if (match) return getLastPart(match[1]);
|
|
3396
|
-
return undefined;
|
|
3397
|
-
};
|
|
3398
|
-
|
|
3399
|
-
var internalReactFunctionNames = /* #__PURE__ */new Set(['renderWithHooks', 'processChild', 'finishClassComponent', 'renderToString']); // These identifiers come from error stacks, so they have to be valid JS
|
|
3400
|
-
// identifiers, thus we only need to replace what is a valid character for JS,
|
|
3401
|
-
// but not for CSS.
|
|
3402
|
-
|
|
3403
|
-
var sanitizeIdentifier = function sanitizeIdentifier(identifier) {
|
|
3404
|
-
return identifier.replace(/\$/g, '-');
|
|
3405
|
-
};
|
|
3406
|
-
|
|
3407
|
-
var getLabelFromStackTrace = function getLabelFromStackTrace(stackTrace) {
|
|
3408
|
-
if (!stackTrace) return undefined;
|
|
3409
|
-
var lines = stackTrace.split('\n');
|
|
3410
|
-
|
|
3411
|
-
for (var i = 0; i < lines.length; i++) {
|
|
3412
|
-
var functionName = getFunctionNameFromStackTraceLine(lines[i]); // The first line of V8 stack traces is just "Error"
|
|
3413
|
-
|
|
3414
|
-
if (!functionName) continue; // If we reach one of these, we have gone too far and should quit
|
|
3415
|
-
|
|
3416
|
-
if (internalReactFunctionNames.has(functionName)) break; // The component name is the first function in the stack that starts with an
|
|
3417
|
-
// uppercase letter
|
|
3418
|
-
|
|
3419
|
-
if (/^[A-Z]/.test(functionName)) return sanitizeIdentifier(functionName);
|
|
3420
|
-
}
|
|
3421
|
-
|
|
3422
|
-
return undefined;
|
|
3423
|
-
};
|
|
3128
|
+
var hasOwn$4 = {}.hasOwnProperty;
|
|
3424
3129
|
|
|
3425
3130
|
var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
|
|
3426
|
-
var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__';
|
|
3427
3131
|
var createEmotionProps = function createEmotionProps(type, props) {
|
|
3428
|
-
if (process.env.NODE_ENV !== 'production' && typeof props.css === 'string' && // check if there is a css declaration
|
|
3429
|
-
props.css.indexOf(':') !== -1) {
|
|
3430
|
-
throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`" + props.css + "`");
|
|
3431
|
-
}
|
|
3432
3132
|
|
|
3433
3133
|
var newProps = {};
|
|
3434
3134
|
|
|
3435
|
-
for (var
|
|
3436
|
-
if (
|
|
3437
|
-
newProps[
|
|
3135
|
+
for (var _key in props) {
|
|
3136
|
+
if (hasOwn$4.call(props, _key)) {
|
|
3137
|
+
newProps[_key] = props[_key];
|
|
3438
3138
|
}
|
|
3439
3139
|
}
|
|
3440
3140
|
|
|
3441
|
-
newProps[typePropName] = type; //
|
|
3442
|
-
// the label hasn't already been computed
|
|
3443
|
-
|
|
3444
|
-
if (process.env.NODE_ENV !== 'production' && !!props.css && (typeof props.css !== 'object' || typeof props.css.name !== 'string' || props.css.name.indexOf('-') === -1)) {
|
|
3445
|
-
var label = getLabelFromStackTrace(new Error().stack);
|
|
3446
|
-
if (label) newProps[labelPropName] = label;
|
|
3447
|
-
}
|
|
3141
|
+
newProps[typePropName] = type; // Runtime labeling is an opt-in feature because:
|
|
3448
3142
|
|
|
3449
3143
|
return newProps;
|
|
3450
3144
|
};
|
|
@@ -3498,25 +3192,21 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
|
|
|
3498
3192
|
|
|
3499
3193
|
var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext));
|
|
3500
3194
|
|
|
3501
|
-
if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {
|
|
3502
|
-
var labelFromStack = props[labelPropName];
|
|
3503
|
-
|
|
3504
|
-
if (labelFromStack) {
|
|
3505
|
-
serialized = serializeStyles([serialized, 'label:' + labelFromStack + ';']);
|
|
3506
|
-
}
|
|
3507
|
-
}
|
|
3508
|
-
|
|
3509
3195
|
className += cache.key + "-" + serialized.name;
|
|
3510
3196
|
var newProps = {};
|
|
3511
3197
|
|
|
3512
|
-
for (var
|
|
3513
|
-
if (
|
|
3514
|
-
newProps[
|
|
3198
|
+
for (var _key2 in props) {
|
|
3199
|
+
if (hasOwn$4.call(props, _key2) && _key2 !== 'css' && _key2 !== typePropName && (true )) {
|
|
3200
|
+
newProps[_key2] = props[_key2];
|
|
3515
3201
|
}
|
|
3516
3202
|
}
|
|
3517
3203
|
|
|
3518
|
-
newProps.ref = ref;
|
|
3519
3204
|
newProps.className = className;
|
|
3205
|
+
|
|
3206
|
+
if (ref) {
|
|
3207
|
+
newProps.ref = ref;
|
|
3208
|
+
}
|
|
3209
|
+
|
|
3520
3210
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {
|
|
3521
3211
|
cache: cache,
|
|
3522
3212
|
serialized: serialized,
|
|
@@ -3524,19 +3214,15 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
|
|
|
3524
3214
|
}), /*#__PURE__*/React.createElement(WrappedComponent, newProps));
|
|
3525
3215
|
});
|
|
3526
3216
|
|
|
3527
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
3528
|
-
Emotion.displayName = 'EmotionCssPropInternal';
|
|
3529
|
-
}
|
|
3530
|
-
|
|
3531
3217
|
var Emotion$1 = Emotion;
|
|
3532
3218
|
|
|
3533
|
-
function jsx(type, props, key) {
|
|
3534
|
-
if (!
|
|
3219
|
+
var jsx = function jsx(type, props, key) {
|
|
3220
|
+
if (!hasOwn$4.call(props, 'css')) {
|
|
3535
3221
|
return ReactJSXRuntime.jsx(type, props, key);
|
|
3536
3222
|
}
|
|
3537
3223
|
|
|
3538
3224
|
return ReactJSXRuntime.jsx(Emotion$1, createEmotionProps(type, props), key);
|
|
3539
|
-
}
|
|
3225
|
+
};
|
|
3540
3226
|
|
|
3541
3227
|
function _setPrototypeOf(t, e) {
|
|
3542
3228
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
@@ -3898,14 +3584,14 @@ function requireReactPropTypesSecret () {
|
|
|
3898
3584
|
return ReactPropTypesSecret_1;
|
|
3899
3585
|
}
|
|
3900
3586
|
|
|
3901
|
-
var has;
|
|
3587
|
+
var has$6;
|
|
3902
3588
|
var hasRequiredHas;
|
|
3903
3589
|
|
|
3904
3590
|
function requireHas () {
|
|
3905
|
-
if (hasRequiredHas) return has;
|
|
3591
|
+
if (hasRequiredHas) return has$6;
|
|
3906
3592
|
hasRequiredHas = 1;
|
|
3907
|
-
has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
3908
|
-
return has;
|
|
3593
|
+
has$6 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
3594
|
+
return has$6;
|
|
3909
3595
|
}
|
|
3910
3596
|
|
|
3911
3597
|
/**
|
|
@@ -5426,8 +5112,9 @@ function parse$1 (str, options) {
|
|
|
5426
5112
|
var partial = prefix != null && next != null && next !== prefix;
|
|
5427
5113
|
var repeat = modifier === '+' || modifier === '*';
|
|
5428
5114
|
var optional = modifier === '?' || modifier === '*';
|
|
5429
|
-
var delimiter =
|
|
5115
|
+
var delimiter = prefix || defaultDelimiter;
|
|
5430
5116
|
var pattern = capture || group;
|
|
5117
|
+
var prevText = prefix || (typeof tokens[tokens.length - 1] === 'string' ? tokens[tokens.length - 1] : '');
|
|
5431
5118
|
|
|
5432
5119
|
tokens.push({
|
|
5433
5120
|
name: name || key++,
|
|
@@ -5437,7 +5124,7 @@ function parse$1 (str, options) {
|
|
|
5437
5124
|
repeat: repeat,
|
|
5438
5125
|
partial: partial,
|
|
5439
5126
|
asterisk: !!asterisk,
|
|
5440
|
-
pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' :
|
|
5127
|
+
pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : restrictBacktrack(delimiter, prevText))
|
|
5441
5128
|
});
|
|
5442
5129
|
}
|
|
5443
5130
|
|
|
@@ -5454,6 +5141,14 @@ function parse$1 (str, options) {
|
|
|
5454
5141
|
return tokens
|
|
5455
5142
|
}
|
|
5456
5143
|
|
|
5144
|
+
function restrictBacktrack(delimiter, prevText) {
|
|
5145
|
+
if (!prevText || prevText.indexOf(delimiter) > -1) {
|
|
5146
|
+
return '[^' + escapeString(delimiter) + ']+?'
|
|
5147
|
+
}
|
|
5148
|
+
|
|
5149
|
+
return escapeString(prevText) + '|(?:(?!' + escapeString(prevText) + ')[^' + escapeString(delimiter) + '])+?'
|
|
5150
|
+
}
|
|
5151
|
+
|
|
5457
5152
|
/**
|
|
5458
5153
|
* Compile a string to a template function for the path.
|
|
5459
5154
|
*
|
|
@@ -6010,7 +5705,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
6010
5705
|
if (null == r) return {};
|
|
6011
5706
|
var t = {};
|
|
6012
5707
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
6013
|
-
if (e.
|
|
5708
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
6014
5709
|
t[n] = r[n];
|
|
6015
5710
|
}
|
|
6016
5711
|
return t;
|
|
@@ -6659,7 +6354,7 @@ React__default.useContext;
|
|
|
6659
6354
|
|
|
6660
6355
|
if (process.env.NODE_ENV !== "production") {
|
|
6661
6356
|
if (typeof window !== "undefined") {
|
|
6662
|
-
var global$
|
|
6357
|
+
var global$5 = window;
|
|
6663
6358
|
var key = "__react_router_build__";
|
|
6664
6359
|
var buildNames = {
|
|
6665
6360
|
cjs: "CommonJS",
|
|
@@ -6667,47 +6362,47 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
6667
6362
|
umd: "UMD"
|
|
6668
6363
|
};
|
|
6669
6364
|
|
|
6670
|
-
if (global$
|
|
6671
|
-
var initialBuildName = buildNames[global$
|
|
6365
|
+
if (global$5[key] && global$5[key] !== "esm") {
|
|
6366
|
+
var initialBuildName = buildNames[global$5[key]];
|
|
6672
6367
|
var secondaryBuildName = buildNames["esm"]; // TODO: Add link to article that explains in detail how to avoid
|
|
6673
6368
|
// loading 2 different builds.
|
|
6674
6369
|
|
|
6675
6370
|
throw new Error("You are loading the " + secondaryBuildName + " build of React Router " + ("on a page that is already running the " + initialBuildName + " ") + "build, so things won't work right.");
|
|
6676
6371
|
}
|
|
6677
6372
|
|
|
6678
|
-
global$
|
|
6373
|
+
global$5[key] = "esm";
|
|
6679
6374
|
}
|
|
6680
6375
|
}
|
|
6681
6376
|
|
|
6682
6377
|
var objectDefineProperties = {};
|
|
6683
6378
|
|
|
6684
|
-
var DESCRIPTORS$
|
|
6379
|
+
var DESCRIPTORS$5 = descriptors;
|
|
6685
6380
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
6686
|
-
var definePropertyModule = objectDefineProperty;
|
|
6687
|
-
var anObject$
|
|
6381
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
6382
|
+
var anObject$7 = anObject$a;
|
|
6688
6383
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
6689
6384
|
var objectKeys = objectKeys$2;
|
|
6690
6385
|
|
|
6691
6386
|
// `Object.defineProperties` method
|
|
6692
6387
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
6693
6388
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
6694
|
-
objectDefineProperties.f = DESCRIPTORS$
|
|
6695
|
-
anObject$
|
|
6389
|
+
objectDefineProperties.f = DESCRIPTORS$5 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
6390
|
+
anObject$7(O);
|
|
6696
6391
|
var props = toIndexedObject$1(Properties);
|
|
6697
6392
|
var keys = objectKeys(Properties);
|
|
6698
6393
|
var length = keys.length;
|
|
6699
6394
|
var index = 0;
|
|
6700
6395
|
var key;
|
|
6701
|
-
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
|
6396
|
+
while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]);
|
|
6702
6397
|
return O;
|
|
6703
6398
|
};
|
|
6704
6399
|
|
|
6705
|
-
var getBuiltIn$
|
|
6400
|
+
var getBuiltIn$3 = getBuiltIn$6;
|
|
6706
6401
|
|
|
6707
|
-
var html$1 = getBuiltIn$
|
|
6402
|
+
var html$1 = getBuiltIn$3('document', 'documentElement');
|
|
6708
6403
|
|
|
6709
6404
|
/* global ActiveXObject -- old IE, WSH */
|
|
6710
|
-
var anObject = anObject$
|
|
6405
|
+
var anObject$6 = anObject$a;
|
|
6711
6406
|
var definePropertiesModule = objectDefineProperties;
|
|
6712
6407
|
var enumBugKeys = enumBugKeys$3;
|
|
6713
6408
|
var hiddenKeys = hiddenKeys$4;
|
|
@@ -6781,7 +6476,7 @@ hiddenKeys[IE_PROTO$1] = true;
|
|
|
6781
6476
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
6782
6477
|
var result;
|
|
6783
6478
|
if (O !== null) {
|
|
6784
|
-
EmptyConstructor[PROTOTYPE] = anObject(O);
|
|
6479
|
+
EmptyConstructor[PROTOTYPE] = anObject$6(O);
|
|
6785
6480
|
result = new EmptyConstructor();
|
|
6786
6481
|
EmptyConstructor[PROTOTYPE] = null;
|
|
6787
6482
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -6790,17 +6485,17 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
6790
6485
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
6791
6486
|
};
|
|
6792
6487
|
|
|
6793
|
-
var wellKnownSymbol$
|
|
6488
|
+
var wellKnownSymbol$b = wellKnownSymbol$d;
|
|
6794
6489
|
var create$1 = objectCreate;
|
|
6795
|
-
var defineProperty$
|
|
6490
|
+
var defineProperty$4 = objectDefineProperty.f;
|
|
6796
6491
|
|
|
6797
|
-
var UNSCOPABLES = wellKnownSymbol$
|
|
6798
|
-
var ArrayPrototype = Array.prototype;
|
|
6492
|
+
var UNSCOPABLES = wellKnownSymbol$b('unscopables');
|
|
6493
|
+
var ArrayPrototype$1 = Array.prototype;
|
|
6799
6494
|
|
|
6800
6495
|
// Array.prototype[@@unscopables]
|
|
6801
6496
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
6802
|
-
if (ArrayPrototype[UNSCOPABLES] === undefined) {
|
|
6803
|
-
defineProperty$
|
|
6497
|
+
if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
|
|
6498
|
+
defineProperty$4(ArrayPrototype$1, UNSCOPABLES, {
|
|
6804
6499
|
configurable: true,
|
|
6805
6500
|
value: create$1(null)
|
|
6806
6501
|
});
|
|
@@ -6808,22 +6503,22 @@ if (ArrayPrototype[UNSCOPABLES] === undefined) {
|
|
|
6808
6503
|
|
|
6809
6504
|
// add a key to Array.prototype[@@unscopables]
|
|
6810
6505
|
var addToUnscopables$2 = function (key) {
|
|
6811
|
-
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
6506
|
+
ArrayPrototype$1[UNSCOPABLES][key] = true;
|
|
6812
6507
|
};
|
|
6813
6508
|
|
|
6814
6509
|
var iterators = {};
|
|
6815
6510
|
|
|
6816
|
-
var fails$
|
|
6511
|
+
var fails$8 = fails$i;
|
|
6817
6512
|
|
|
6818
|
-
var correctPrototypeGetter = !fails$
|
|
6513
|
+
var correctPrototypeGetter = !fails$8(function () {
|
|
6819
6514
|
function F() { /* empty */ }
|
|
6820
6515
|
F.prototype.constructor = null;
|
|
6821
6516
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
6822
6517
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
6823
6518
|
});
|
|
6824
6519
|
|
|
6825
|
-
var hasOwn$
|
|
6826
|
-
var isCallable$
|
|
6520
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
6521
|
+
var isCallable$7 = isCallable$i;
|
|
6827
6522
|
var toObject$1 = toObject$4;
|
|
6828
6523
|
var sharedKey = sharedKey$3;
|
|
6829
6524
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
@@ -6837,26 +6532,26 @@ var ObjectPrototype = $Object$1.prototype;
|
|
|
6837
6532
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
6838
6533
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
6839
6534
|
var object = toObject$1(O);
|
|
6840
|
-
if (hasOwn$
|
|
6535
|
+
if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
|
|
6841
6536
|
var constructor = object.constructor;
|
|
6842
|
-
if (isCallable$
|
|
6537
|
+
if (isCallable$7(constructor) && object instanceof constructor) {
|
|
6843
6538
|
return constructor.prototype;
|
|
6844
6539
|
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
6845
6540
|
};
|
|
6846
6541
|
|
|
6847
|
-
var fails$
|
|
6848
|
-
var isCallable$
|
|
6542
|
+
var fails$7 = fails$i;
|
|
6543
|
+
var isCallable$6 = isCallable$i;
|
|
6849
6544
|
var isObject$5 = isObject$b;
|
|
6850
|
-
var getPrototypeOf$
|
|
6545
|
+
var getPrototypeOf$2 = objectGetPrototypeOf;
|
|
6851
6546
|
var defineBuiltIn$1 = defineBuiltIn$3;
|
|
6852
|
-
var wellKnownSymbol$
|
|
6547
|
+
var wellKnownSymbol$a = wellKnownSymbol$d;
|
|
6853
6548
|
|
|
6854
|
-
var ITERATOR$
|
|
6549
|
+
var ITERATOR$6 = wellKnownSymbol$a('iterator');
|
|
6855
6550
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
6856
6551
|
|
|
6857
6552
|
// `%IteratorPrototype%` object
|
|
6858
6553
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
6859
|
-
var IteratorPrototype$
|
|
6554
|
+
var IteratorPrototype$3, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
6860
6555
|
|
|
6861
6556
|
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
6862
6557
|
if ([].keys) {
|
|
@@ -6864,68 +6559,68 @@ if ([].keys) {
|
|
|
6864
6559
|
// Safari 8 has buggy iterators w/o `next`
|
|
6865
6560
|
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
|
|
6866
6561
|
else {
|
|
6867
|
-
PrototypeOfArrayIteratorPrototype = getPrototypeOf$
|
|
6868
|
-
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$
|
|
6562
|
+
PrototypeOfArrayIteratorPrototype = getPrototypeOf$2(getPrototypeOf$2(arrayIterator));
|
|
6563
|
+
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$3 = PrototypeOfArrayIteratorPrototype;
|
|
6869
6564
|
}
|
|
6870
6565
|
}
|
|
6871
6566
|
|
|
6872
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$5(IteratorPrototype$
|
|
6567
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$5(IteratorPrototype$3) || fails$7(function () {
|
|
6873
6568
|
var test = {};
|
|
6874
6569
|
// FF44- legacy iterators case
|
|
6875
|
-
return IteratorPrototype$
|
|
6570
|
+
return IteratorPrototype$3[ITERATOR$6].call(test) !== test;
|
|
6876
6571
|
});
|
|
6877
6572
|
|
|
6878
|
-
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$
|
|
6573
|
+
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$3 = {};
|
|
6879
6574
|
|
|
6880
6575
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
6881
6576
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
6882
|
-
if (!isCallable$
|
|
6883
|
-
defineBuiltIn$1(IteratorPrototype$
|
|
6577
|
+
if (!isCallable$6(IteratorPrototype$3[ITERATOR$6])) {
|
|
6578
|
+
defineBuiltIn$1(IteratorPrototype$3, ITERATOR$6, function () {
|
|
6884
6579
|
return this;
|
|
6885
6580
|
});
|
|
6886
6581
|
}
|
|
6887
6582
|
|
|
6888
6583
|
var iteratorsCore = {
|
|
6889
|
-
IteratorPrototype: IteratorPrototype$
|
|
6584
|
+
IteratorPrototype: IteratorPrototype$3,
|
|
6890
6585
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
6891
6586
|
};
|
|
6892
6587
|
|
|
6893
|
-
var defineProperty$
|
|
6894
|
-
var hasOwn$
|
|
6895
|
-
var wellKnownSymbol$
|
|
6588
|
+
var defineProperty$3 = objectDefineProperty.f;
|
|
6589
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
6590
|
+
var wellKnownSymbol$9 = wellKnownSymbol$d;
|
|
6896
6591
|
|
|
6897
|
-
var TO_STRING_TAG$
|
|
6592
|
+
var TO_STRING_TAG$3 = wellKnownSymbol$9('toStringTag');
|
|
6898
6593
|
|
|
6899
6594
|
var setToStringTag$3 = function (target, TAG, STATIC) {
|
|
6900
6595
|
if (target && !STATIC) target = target.prototype;
|
|
6901
|
-
if (target && !hasOwn$
|
|
6902
|
-
defineProperty$
|
|
6596
|
+
if (target && !hasOwn$2(target, TO_STRING_TAG$3)) {
|
|
6597
|
+
defineProperty$3(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
|
|
6903
6598
|
}
|
|
6904
6599
|
};
|
|
6905
6600
|
|
|
6906
|
-
var IteratorPrototype$
|
|
6601
|
+
var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
|
|
6907
6602
|
var create = objectCreate;
|
|
6908
|
-
var createPropertyDescriptor$
|
|
6603
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$5;
|
|
6909
6604
|
var setToStringTag$2 = setToStringTag$3;
|
|
6910
|
-
var Iterators$
|
|
6605
|
+
var Iterators$4 = iterators;
|
|
6911
6606
|
|
|
6912
6607
|
var returnThis$1 = function () { return this; };
|
|
6913
6608
|
|
|
6914
6609
|
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
6915
6610
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
6916
|
-
IteratorConstructor.prototype = create(IteratorPrototype$
|
|
6611
|
+
IteratorConstructor.prototype = create(IteratorPrototype$2, { next: createPropertyDescriptor$2(+!ENUMERABLE_NEXT, next) });
|
|
6917
6612
|
setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
|
|
6918
|
-
Iterators$
|
|
6613
|
+
Iterators$4[TO_STRING_TAG] = returnThis$1;
|
|
6919
6614
|
return IteratorConstructor;
|
|
6920
6615
|
};
|
|
6921
6616
|
|
|
6922
|
-
var uncurryThis$
|
|
6923
|
-
var aCallable = aCallable$
|
|
6617
|
+
var uncurryThis$b = functionUncurryThis;
|
|
6618
|
+
var aCallable$4 = aCallable$6;
|
|
6924
6619
|
|
|
6925
6620
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
6926
6621
|
try {
|
|
6927
6622
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
6928
|
-
return uncurryThis$
|
|
6623
|
+
return uncurryThis$b(aCallable$4(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
6929
6624
|
} catch (error) { /* empty */ }
|
|
6930
6625
|
};
|
|
6931
6626
|
|
|
@@ -6938,15 +6633,15 @@ var isPossiblePrototype$1 = function (argument) {
|
|
|
6938
6633
|
var isPossiblePrototype = isPossiblePrototype$1;
|
|
6939
6634
|
|
|
6940
6635
|
var $String$2 = String;
|
|
6941
|
-
var $TypeError$
|
|
6636
|
+
var $TypeError$8 = TypeError;
|
|
6942
6637
|
|
|
6943
6638
|
var aPossiblePrototype$1 = function (argument) {
|
|
6944
6639
|
if (isPossiblePrototype(argument)) return argument;
|
|
6945
|
-
throw new $TypeError$
|
|
6640
|
+
throw new $TypeError$8("Can't set " + $String$2(argument) + ' as a prototype');
|
|
6946
6641
|
};
|
|
6947
6642
|
|
|
6948
6643
|
/* eslint-disable no-proto -- safe */
|
|
6949
|
-
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
6644
|
+
var uncurryThisAccessor$1 = functionUncurryThisAccessor;
|
|
6950
6645
|
var isObject$3 = isObject$b;
|
|
6951
6646
|
var requireObjectCoercible$2 = requireObjectCoercible$5;
|
|
6952
6647
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
@@ -6960,7 +6655,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
6960
6655
|
var test = {};
|
|
6961
6656
|
var setter;
|
|
6962
6657
|
try {
|
|
6963
|
-
setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
|
|
6658
|
+
setter = uncurryThisAccessor$1(Object.prototype, '__proto__', 'set');
|
|
6964
6659
|
setter(test, []);
|
|
6965
6660
|
CORRECT_SETTER = test instanceof Array;
|
|
6966
6661
|
} catch (error) { /* empty */ }
|
|
@@ -6974,25 +6669,25 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
6974
6669
|
};
|
|
6975
6670
|
}() : undefined);
|
|
6976
6671
|
|
|
6977
|
-
var $$
|
|
6978
|
-
var call$
|
|
6672
|
+
var $$f = _export;
|
|
6673
|
+
var call$7 = functionCall;
|
|
6979
6674
|
var FunctionName = functionName;
|
|
6980
|
-
var isCallable$
|
|
6675
|
+
var isCallable$5 = isCallable$i;
|
|
6981
6676
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
6982
|
-
var getPrototypeOf = objectGetPrototypeOf;
|
|
6677
|
+
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
6983
6678
|
var setPrototypeOf$2 = objectSetPrototypeOf;
|
|
6984
6679
|
var setToStringTag$1 = setToStringTag$3;
|
|
6985
6680
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$7;
|
|
6986
6681
|
var defineBuiltIn = defineBuiltIn$3;
|
|
6987
|
-
var wellKnownSymbol$
|
|
6988
|
-
var Iterators$
|
|
6682
|
+
var wellKnownSymbol$8 = wellKnownSymbol$d;
|
|
6683
|
+
var Iterators$3 = iterators;
|
|
6989
6684
|
var IteratorsCore = iteratorsCore;
|
|
6990
6685
|
|
|
6991
6686
|
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
6992
6687
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
6993
|
-
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
6688
|
+
var IteratorPrototype$1 = IteratorsCore.IteratorPrototype;
|
|
6994
6689
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
6995
|
-
var ITERATOR$
|
|
6690
|
+
var ITERATOR$5 = wellKnownSymbol$8('iterator');
|
|
6996
6691
|
var KEYS = 'keys';
|
|
6997
6692
|
var VALUES = 'values';
|
|
6998
6693
|
var ENTRIES = 'entries';
|
|
@@ -7018,7 +6713,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
7018
6713
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
7019
6714
|
var INCORRECT_VALUES_NAME = false;
|
|
7020
6715
|
var IterablePrototype = Iterable.prototype;
|
|
7021
|
-
var nativeIterator = IterablePrototype[ITERATOR$
|
|
6716
|
+
var nativeIterator = IterablePrototype[ITERATOR$5]
|
|
7022
6717
|
|| IterablePrototype['@@iterator']
|
|
7023
6718
|
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
7024
6719
|
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
@@ -7027,13 +6722,13 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
7027
6722
|
|
|
7028
6723
|
// fix native
|
|
7029
6724
|
if (anyNativeIterator) {
|
|
7030
|
-
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
6725
|
+
CurrentIteratorPrototype = getPrototypeOf$1(anyNativeIterator.call(new Iterable()));
|
|
7031
6726
|
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
7032
|
-
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
6727
|
+
if (getPrototypeOf$1(CurrentIteratorPrototype) !== IteratorPrototype$1) {
|
|
7033
6728
|
if (setPrototypeOf$2) {
|
|
7034
|
-
setPrototypeOf$2(CurrentIteratorPrototype, IteratorPrototype);
|
|
7035
|
-
} else if (!isCallable$
|
|
7036
|
-
defineBuiltIn(CurrentIteratorPrototype, ITERATOR$
|
|
6729
|
+
setPrototypeOf$2(CurrentIteratorPrototype, IteratorPrototype$1);
|
|
6730
|
+
} else if (!isCallable$5(CurrentIteratorPrototype[ITERATOR$5])) {
|
|
6731
|
+
defineBuiltIn(CurrentIteratorPrototype, ITERATOR$5, returnThis);
|
|
7037
6732
|
}
|
|
7038
6733
|
}
|
|
7039
6734
|
// Set @@toStringTag to native iterators
|
|
@@ -7047,7 +6742,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
7047
6742
|
createNonEnumerableProperty$4(IterablePrototype, 'name', VALUES);
|
|
7048
6743
|
} else {
|
|
7049
6744
|
INCORRECT_VALUES_NAME = true;
|
|
7050
|
-
defaultIterator = function values() { return call$
|
|
6745
|
+
defaultIterator = function values() { return call$7(nativeIterator, this); };
|
|
7051
6746
|
}
|
|
7052
6747
|
}
|
|
7053
6748
|
|
|
@@ -7062,14 +6757,14 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
7062
6757
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
7063
6758
|
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
|
|
7064
6759
|
}
|
|
7065
|
-
} else $$
|
|
6760
|
+
} else $$f({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
7066
6761
|
}
|
|
7067
6762
|
|
|
7068
6763
|
// define iterator
|
|
7069
|
-
if (IterablePrototype[ITERATOR$
|
|
7070
|
-
defineBuiltIn(IterablePrototype, ITERATOR$
|
|
6764
|
+
if (IterablePrototype[ITERATOR$5] !== defaultIterator) {
|
|
6765
|
+
defineBuiltIn(IterablePrototype, ITERATOR$5, defaultIterator, { name: DEFAULT });
|
|
7071
6766
|
}
|
|
7072
|
-
Iterators$
|
|
6767
|
+
Iterators$3[NAME] = defaultIterator;
|
|
7073
6768
|
|
|
7074
6769
|
return methods;
|
|
7075
6770
|
};
|
|
@@ -7082,12 +6777,12 @@ var createIterResultObject$1 = function (value, done) {
|
|
|
7082
6777
|
|
|
7083
6778
|
var toIndexedObject = toIndexedObject$5;
|
|
7084
6779
|
var addToUnscopables$1 = addToUnscopables$2;
|
|
7085
|
-
var Iterators = iterators;
|
|
6780
|
+
var Iterators$2 = iterators;
|
|
7086
6781
|
var InternalStateModule = internalState;
|
|
7087
|
-
var defineProperty$
|
|
6782
|
+
var defineProperty$2 = objectDefineProperty.f;
|
|
7088
6783
|
var defineIterator = iteratorDefine;
|
|
7089
6784
|
var createIterResultObject = createIterResultObject$1;
|
|
7090
|
-
var DESCRIPTORS$
|
|
6785
|
+
var DESCRIPTORS$4 = descriptors;
|
|
7091
6786
|
|
|
7092
6787
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
7093
6788
|
var setInternalState = InternalStateModule.set;
|
|
@@ -7129,7 +6824,7 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
|
|
|
7129
6824
|
// argumentsList[@@iterator] is %ArrayProto_values%
|
|
7130
6825
|
// https://tc39.es/ecma262/#sec-createunmappedargumentsobject
|
|
7131
6826
|
// https://tc39.es/ecma262/#sec-createmappedargumentsobject
|
|
7132
|
-
var values = Iterators.Arguments = Iterators.Array;
|
|
6827
|
+
var values = Iterators$2.Arguments = Iterators$2.Array;
|
|
7133
6828
|
|
|
7134
6829
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
7135
6830
|
addToUnscopables$1('keys');
|
|
@@ -7137,28 +6832,28 @@ addToUnscopables$1('values');
|
|
|
7137
6832
|
addToUnscopables$1('entries');
|
|
7138
6833
|
|
|
7139
6834
|
// V8 ~ Chrome 45- bug
|
|
7140
|
-
if (DESCRIPTORS$
|
|
7141
|
-
defineProperty$
|
|
6835
|
+
if (DESCRIPTORS$4 && values.name !== 'values') try {
|
|
6836
|
+
defineProperty$2(values, 'name', { value: 'values' });
|
|
7142
6837
|
} catch (error) { /* empty */ }
|
|
7143
6838
|
|
|
7144
|
-
var classof$
|
|
6839
|
+
var classof$5 = classofRaw$2;
|
|
7145
6840
|
|
|
7146
6841
|
// `IsArray` abstract operation
|
|
7147
6842
|
// https://tc39.es/ecma262/#sec-isarray
|
|
7148
6843
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
7149
6844
|
var isArray$2 = Array.isArray || function isArray(argument) {
|
|
7150
|
-
return classof$
|
|
6845
|
+
return classof$5(argument) === 'Array';
|
|
7151
6846
|
};
|
|
7152
6847
|
|
|
7153
|
-
var DESCRIPTORS$
|
|
6848
|
+
var DESCRIPTORS$3 = descriptors;
|
|
7154
6849
|
var isArray$1 = isArray$2;
|
|
7155
6850
|
|
|
7156
|
-
var $TypeError$
|
|
6851
|
+
var $TypeError$7 = TypeError;
|
|
7157
6852
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
7158
6853
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
7159
6854
|
|
|
7160
6855
|
// Safari < 13 does not throw an error in this case
|
|
7161
|
-
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$
|
|
6856
|
+
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$3 && !function () {
|
|
7162
6857
|
// makes no sense without proper strict mode support
|
|
7163
6858
|
if (this !== undefined) return true;
|
|
7164
6859
|
try {
|
|
@@ -7171,28 +6866,28 @@ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$1 && !function () {
|
|
|
7171
6866
|
|
|
7172
6867
|
var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
|
7173
6868
|
if (isArray$1(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
|
|
7174
|
-
throw new $TypeError$
|
|
6869
|
+
throw new $TypeError$7('Cannot set read only .length');
|
|
7175
6870
|
} return O.length = length;
|
|
7176
6871
|
} : function (O, length) {
|
|
7177
6872
|
return O.length = length;
|
|
7178
6873
|
};
|
|
7179
6874
|
|
|
7180
|
-
var $TypeError$
|
|
6875
|
+
var $TypeError$6 = TypeError;
|
|
7181
6876
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
7182
6877
|
|
|
7183
6878
|
var doesNotExceedSafeInteger$1 = function (it) {
|
|
7184
|
-
if (it > MAX_SAFE_INTEGER) throw $TypeError$
|
|
6879
|
+
if (it > MAX_SAFE_INTEGER) throw $TypeError$6('Maximum allowed index exceeded');
|
|
7185
6880
|
return it;
|
|
7186
6881
|
};
|
|
7187
6882
|
|
|
7188
|
-
var $$
|
|
6883
|
+
var $$e = _export;
|
|
7189
6884
|
var toObject = toObject$4;
|
|
7190
|
-
var lengthOfArrayLike = lengthOfArrayLike$
|
|
6885
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$3;
|
|
7191
6886
|
var setArrayLength = arraySetLength;
|
|
7192
6887
|
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
7193
|
-
var fails$
|
|
6888
|
+
var fails$6 = fails$i;
|
|
7194
6889
|
|
|
7195
|
-
var INCORRECT_TO_LENGTH = fails$
|
|
6890
|
+
var INCORRECT_TO_LENGTH = fails$6(function () {
|
|
7196
6891
|
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
|
|
7197
6892
|
});
|
|
7198
6893
|
|
|
@@ -7207,15 +6902,15 @@ var properErrorOnNonWritableLength = function () {
|
|
|
7207
6902
|
}
|
|
7208
6903
|
};
|
|
7209
6904
|
|
|
7210
|
-
var FORCED$
|
|
6905
|
+
var FORCED$3 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
|
|
7211
6906
|
|
|
7212
6907
|
// `Array.prototype.push` method
|
|
7213
6908
|
// https://tc39.es/ecma262/#sec-array.prototype.push
|
|
7214
|
-
$$
|
|
6909
|
+
$$e({ target: 'Array', proto: true, arity: 1, forced: FORCED$3 }, {
|
|
7215
6910
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
7216
6911
|
push: function push(item) {
|
|
7217
6912
|
var O = toObject(this);
|
|
7218
|
-
var len = lengthOfArrayLike(O);
|
|
6913
|
+
var len = lengthOfArrayLike$1(O);
|
|
7219
6914
|
var argCount = arguments.length;
|
|
7220
6915
|
doesNotExceedSafeInteger(len + argCount);
|
|
7221
6916
|
for (var i = 0; i < argCount; i++) {
|
|
@@ -7271,24 +6966,24 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
7271
6966
|
|
|
7272
6967
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
7273
6968
|
|
|
7274
|
-
var global$
|
|
6969
|
+
var global$4 = global$f;
|
|
7275
6970
|
var DOMIterables = domIterables;
|
|
7276
6971
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
7277
6972
|
var ArrayIteratorMethods = es_array_iterator;
|
|
7278
6973
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$7;
|
|
7279
6974
|
var setToStringTag = setToStringTag$3;
|
|
7280
|
-
var wellKnownSymbol$
|
|
6975
|
+
var wellKnownSymbol$7 = wellKnownSymbol$d;
|
|
7281
6976
|
|
|
7282
|
-
var ITERATOR$
|
|
6977
|
+
var ITERATOR$4 = wellKnownSymbol$7('iterator');
|
|
7283
6978
|
var ArrayValues = ArrayIteratorMethods.values;
|
|
7284
6979
|
|
|
7285
6980
|
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
7286
6981
|
if (CollectionPrototype) {
|
|
7287
6982
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
7288
|
-
if (CollectionPrototype[ITERATOR$
|
|
7289
|
-
createNonEnumerableProperty$3(CollectionPrototype, ITERATOR$
|
|
6983
|
+
if (CollectionPrototype[ITERATOR$4] !== ArrayValues) try {
|
|
6984
|
+
createNonEnumerableProperty$3(CollectionPrototype, ITERATOR$4, ArrayValues);
|
|
7290
6985
|
} catch (error) {
|
|
7291
|
-
CollectionPrototype[ITERATOR$
|
|
6986
|
+
CollectionPrototype[ITERATOR$4] = ArrayValues;
|
|
7292
6987
|
}
|
|
7293
6988
|
setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
|
|
7294
6989
|
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
@@ -7303,7 +6998,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
7303
6998
|
};
|
|
7304
6999
|
|
|
7305
7000
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
7306
|
-
handlePrototype(global$
|
|
7001
|
+
handlePrototype(global$4[COLLECTION_NAME] && global$4[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
7307
7002
|
}
|
|
7308
7003
|
|
|
7309
7004
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
@@ -7329,20 +7024,20 @@ class ArraysUtils {
|
|
|
7329
7024
|
}
|
|
7330
7025
|
}
|
|
7331
7026
|
|
|
7332
|
-
var $$
|
|
7027
|
+
var $$d = _export;
|
|
7333
7028
|
var $includes = arrayIncludes.includes;
|
|
7334
|
-
var fails$
|
|
7029
|
+
var fails$5 = fails$i;
|
|
7335
7030
|
var addToUnscopables = addToUnscopables$2;
|
|
7336
7031
|
|
|
7337
7032
|
// FF99+ bug
|
|
7338
|
-
var BROKEN_ON_SPARSE = fails$
|
|
7033
|
+
var BROKEN_ON_SPARSE = fails$5(function () {
|
|
7339
7034
|
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
7340
7035
|
return !Array(1).includes();
|
|
7341
7036
|
});
|
|
7342
7037
|
|
|
7343
7038
|
// `Array.prototype.includes` method
|
|
7344
7039
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
7345
|
-
$$
|
|
7040
|
+
$$d({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
7346
7041
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
7347
7042
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
7348
7043
|
}
|
|
@@ -7352,47 +7047,47 @@ $$4({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
|
7352
7047
|
addToUnscopables('includes');
|
|
7353
7048
|
|
|
7354
7049
|
var isObject$2 = isObject$b;
|
|
7355
|
-
var classof$
|
|
7356
|
-
var wellKnownSymbol$
|
|
7050
|
+
var classof$4 = classofRaw$2;
|
|
7051
|
+
var wellKnownSymbol$6 = wellKnownSymbol$d;
|
|
7357
7052
|
|
|
7358
|
-
var MATCH$1 = wellKnownSymbol$
|
|
7053
|
+
var MATCH$1 = wellKnownSymbol$6('match');
|
|
7359
7054
|
|
|
7360
7055
|
// `IsRegExp` abstract operation
|
|
7361
7056
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
7362
7057
|
var isRegexp = function (it) {
|
|
7363
7058
|
var isRegExp;
|
|
7364
|
-
return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$
|
|
7059
|
+
return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$4(it) === 'RegExp');
|
|
7365
7060
|
};
|
|
7366
7061
|
|
|
7367
7062
|
var isRegExp = isRegexp;
|
|
7368
7063
|
|
|
7369
|
-
var $TypeError = TypeError;
|
|
7064
|
+
var $TypeError$5 = TypeError;
|
|
7370
7065
|
|
|
7371
7066
|
var notARegexp = function (it) {
|
|
7372
7067
|
if (isRegExp(it)) {
|
|
7373
|
-
throw new $TypeError("The method doesn't accept regular expressions");
|
|
7068
|
+
throw new $TypeError$5("The method doesn't accept regular expressions");
|
|
7374
7069
|
} return it;
|
|
7375
7070
|
};
|
|
7376
7071
|
|
|
7377
|
-
var wellKnownSymbol$
|
|
7072
|
+
var wellKnownSymbol$5 = wellKnownSymbol$d;
|
|
7378
7073
|
|
|
7379
|
-
var TO_STRING_TAG$
|
|
7074
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$5('toStringTag');
|
|
7380
7075
|
var test = {};
|
|
7381
7076
|
|
|
7382
|
-
test[TO_STRING_TAG$
|
|
7077
|
+
test[TO_STRING_TAG$2] = 'z';
|
|
7383
7078
|
|
|
7384
7079
|
var toStringTagSupport = String(test) === '[object z]';
|
|
7385
7080
|
|
|
7386
7081
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
7387
|
-
var isCallable$
|
|
7388
|
-
var classofRaw = classofRaw$
|
|
7389
|
-
var wellKnownSymbol$
|
|
7082
|
+
var isCallable$4 = isCallable$i;
|
|
7083
|
+
var classofRaw$1 = classofRaw$2;
|
|
7084
|
+
var wellKnownSymbol$4 = wellKnownSymbol$d;
|
|
7390
7085
|
|
|
7391
|
-
var TO_STRING_TAG = wellKnownSymbol$
|
|
7086
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag');
|
|
7392
7087
|
var $Object = Object;
|
|
7393
7088
|
|
|
7394
7089
|
// ES3 wrong here
|
|
7395
|
-
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
|
|
7090
|
+
var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
|
|
7396
7091
|
|
|
7397
7092
|
// fallback for IE11 Script Access Denied error
|
|
7398
7093
|
var tryGet = function (it, key) {
|
|
@@ -7402,29 +7097,29 @@ var tryGet = function (it, key) {
|
|
|
7402
7097
|
};
|
|
7403
7098
|
|
|
7404
7099
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
7405
|
-
var classof$
|
|
7100
|
+
var classof$3 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
7406
7101
|
var O, tag, result;
|
|
7407
7102
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
7408
7103
|
// @@toStringTag case
|
|
7409
|
-
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
7104
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG$1)) == 'string' ? tag
|
|
7410
7105
|
// builtinTag case
|
|
7411
|
-
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
7106
|
+
: CORRECT_ARGUMENTS ? classofRaw$1(O)
|
|
7412
7107
|
// ES3 arguments fallback
|
|
7413
|
-
: (result = classofRaw(O)) === 'Object' && isCallable$
|
|
7108
|
+
: (result = classofRaw$1(O)) === 'Object' && isCallable$4(O.callee) ? 'Arguments' : result;
|
|
7414
7109
|
};
|
|
7415
7110
|
|
|
7416
|
-
var classof$
|
|
7111
|
+
var classof$2 = classof$3;
|
|
7417
7112
|
|
|
7418
7113
|
var $String$1 = String;
|
|
7419
7114
|
|
|
7420
7115
|
var toString$5 = function (argument) {
|
|
7421
|
-
if (classof$
|
|
7116
|
+
if (classof$2(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
7422
7117
|
return $String$1(argument);
|
|
7423
7118
|
};
|
|
7424
7119
|
|
|
7425
|
-
var wellKnownSymbol = wellKnownSymbol$
|
|
7120
|
+
var wellKnownSymbol$3 = wellKnownSymbol$d;
|
|
7426
7121
|
|
|
7427
|
-
var MATCH = wellKnownSymbol('match');
|
|
7122
|
+
var MATCH = wellKnownSymbol$3('match');
|
|
7428
7123
|
|
|
7429
7124
|
var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
7430
7125
|
var regexp = /./;
|
|
@@ -7438,18 +7133,18 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
|
7438
7133
|
} return false;
|
|
7439
7134
|
};
|
|
7440
7135
|
|
|
7441
|
-
var $$
|
|
7442
|
-
var uncurryThis$
|
|
7136
|
+
var $$c = _export;
|
|
7137
|
+
var uncurryThis$a = functionUncurryThis;
|
|
7443
7138
|
var notARegExp = notARegexp;
|
|
7444
7139
|
var requireObjectCoercible$1 = requireObjectCoercible$5;
|
|
7445
7140
|
var toString$4 = toString$5;
|
|
7446
7141
|
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
7447
7142
|
|
|
7448
|
-
var stringIndexOf = uncurryThis$
|
|
7143
|
+
var stringIndexOf = uncurryThis$a(''.indexOf);
|
|
7449
7144
|
|
|
7450
7145
|
// `String.prototype.includes` method
|
|
7451
7146
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
7452
|
-
$$
|
|
7147
|
+
$$c({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
7453
7148
|
includes: function includes(searchString /* , position = 0 */) {
|
|
7454
7149
|
return !!~stringIndexOf(
|
|
7455
7150
|
toString$4(requireObjectCoercible$1(this)),
|
|
@@ -7545,28 +7240,28 @@ const BCRoutesGuard = props => {
|
|
|
7545
7240
|
}));
|
|
7546
7241
|
};
|
|
7547
7242
|
|
|
7548
|
-
var NATIVE_BIND = functionBindNative;
|
|
7243
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
7549
7244
|
|
|
7550
7245
|
var FunctionPrototype = Function.prototype;
|
|
7551
7246
|
var apply$2 = FunctionPrototype.apply;
|
|
7552
|
-
var call$
|
|
7247
|
+
var call$6 = FunctionPrototype.call;
|
|
7553
7248
|
|
|
7554
7249
|
// eslint-disable-next-line es/no-reflect -- safe
|
|
7555
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$
|
|
7556
|
-
return call$
|
|
7250
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$6.bind(apply$2) : function () {
|
|
7251
|
+
return call$6.apply(apply$2, arguments);
|
|
7557
7252
|
});
|
|
7558
7253
|
|
|
7559
|
-
var defineProperty = objectDefineProperty.f;
|
|
7254
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
7560
7255
|
|
|
7561
7256
|
var proxyAccessor$1 = function (Target, Source, key) {
|
|
7562
|
-
key in Target || defineProperty(Target, key, {
|
|
7257
|
+
key in Target || defineProperty$1(Target, key, {
|
|
7563
7258
|
configurable: true,
|
|
7564
7259
|
get: function () { return Source[key]; },
|
|
7565
7260
|
set: function (it) { Source[key] = it; }
|
|
7566
7261
|
});
|
|
7567
7262
|
};
|
|
7568
7263
|
|
|
7569
|
-
var isCallable$
|
|
7264
|
+
var isCallable$3 = isCallable$i;
|
|
7570
7265
|
var isObject$1 = isObject$b;
|
|
7571
7266
|
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
7572
7267
|
|
|
@@ -7577,7 +7272,7 @@ var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
|
|
|
7577
7272
|
// it can work only with native `setPrototypeOf`
|
|
7578
7273
|
setPrototypeOf$1 &&
|
|
7579
7274
|
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
7580
|
-
isCallable$
|
|
7275
|
+
isCallable$3(NewTarget = dummy.constructor) &&
|
|
7581
7276
|
NewTarget !== Wrapper &&
|
|
7582
7277
|
isObject$1(NewTargetPrototype = NewTarget.prototype) &&
|
|
7583
7278
|
NewTargetPrototype !== Wrapper.prototype
|
|
@@ -7602,10 +7297,10 @@ var installErrorCause$1 = function (O, options) {
|
|
|
7602
7297
|
}
|
|
7603
7298
|
};
|
|
7604
7299
|
|
|
7605
|
-
var uncurryThis$
|
|
7300
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
7606
7301
|
|
|
7607
7302
|
var $Error = Error;
|
|
7608
|
-
var replace$2 = uncurryThis$
|
|
7303
|
+
var replace$2 = uncurryThis$9(''.replace);
|
|
7609
7304
|
|
|
7610
7305
|
var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
|
|
7611
7306
|
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
@@ -7618,14 +7313,14 @@ var errorStackClear = function (stack, dropEntries) {
|
|
|
7618
7313
|
} return stack;
|
|
7619
7314
|
};
|
|
7620
7315
|
|
|
7621
|
-
var fails$
|
|
7622
|
-
var createPropertyDescriptor = createPropertyDescriptor$
|
|
7316
|
+
var fails$4 = fails$i;
|
|
7317
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$5;
|
|
7623
7318
|
|
|
7624
|
-
var errorStackInstallable = !fails$
|
|
7319
|
+
var errorStackInstallable = !fails$4(function () {
|
|
7625
7320
|
var error = new Error('a');
|
|
7626
7321
|
if (!('stack' in error)) return true;
|
|
7627
7322
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
7628
|
-
Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
|
|
7323
|
+
Object.defineProperty(error, 'stack', createPropertyDescriptor$1(1, 7));
|
|
7629
7324
|
return error.stack !== 7;
|
|
7630
7325
|
});
|
|
7631
7326
|
|
|
@@ -7643,10 +7338,10 @@ var errorStackInstall = function (error, C, stack, dropEntries) {
|
|
|
7643
7338
|
}
|
|
7644
7339
|
};
|
|
7645
7340
|
|
|
7646
|
-
var getBuiltIn$
|
|
7647
|
-
var hasOwn = hasOwnProperty_1;
|
|
7341
|
+
var getBuiltIn$2 = getBuiltIn$6;
|
|
7342
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
7648
7343
|
var createNonEnumerableProperty = createNonEnumerableProperty$7;
|
|
7649
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
7344
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
7650
7345
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
7651
7346
|
var copyConstructorProperties = copyConstructorProperties$2;
|
|
7652
7347
|
var proxyAccessor = proxyAccessor$1;
|
|
@@ -7654,32 +7349,32 @@ var inheritIfRequired = inheritIfRequired$1;
|
|
|
7654
7349
|
var normalizeStringArgument = normalizeStringArgument$1;
|
|
7655
7350
|
var installErrorCause = installErrorCause$1;
|
|
7656
7351
|
var installErrorStack = errorStackInstall;
|
|
7657
|
-
var DESCRIPTORS = descriptors;
|
|
7352
|
+
var DESCRIPTORS$2 = descriptors;
|
|
7658
7353
|
|
|
7659
7354
|
var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
|
|
7660
7355
|
var STACK_TRACE_LIMIT = 'stackTraceLimit';
|
|
7661
7356
|
var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
|
|
7662
7357
|
var path = FULL_NAME.split('.');
|
|
7663
7358
|
var ERROR_NAME = path[path.length - 1];
|
|
7664
|
-
var OriginalError = getBuiltIn$
|
|
7359
|
+
var OriginalError = getBuiltIn$2.apply(null, path);
|
|
7665
7360
|
|
|
7666
7361
|
if (!OriginalError) return;
|
|
7667
7362
|
|
|
7668
7363
|
var OriginalErrorPrototype = OriginalError.prototype;
|
|
7669
7364
|
|
|
7670
7365
|
// V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
|
|
7671
|
-
if (hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
|
|
7366
|
+
if (hasOwn$1(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
|
|
7672
7367
|
|
|
7673
7368
|
if (!FORCED) return OriginalError;
|
|
7674
7369
|
|
|
7675
|
-
var BaseError = getBuiltIn$
|
|
7370
|
+
var BaseError = getBuiltIn$2('Error');
|
|
7676
7371
|
|
|
7677
7372
|
var WrappedError = wrapper(function (a, b) {
|
|
7678
7373
|
var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
|
|
7679
7374
|
var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
|
|
7680
7375
|
if (message !== undefined) createNonEnumerableProperty(result, 'message', message);
|
|
7681
7376
|
installErrorStack(result, WrappedError, result.stack, 2);
|
|
7682
|
-
if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
|
|
7377
|
+
if (this && isPrototypeOf$2(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
|
|
7683
7378
|
if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
|
|
7684
7379
|
return result;
|
|
7685
7380
|
});
|
|
@@ -7689,7 +7384,7 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
|
|
|
7689
7384
|
if (ERROR_NAME !== 'Error') {
|
|
7690
7385
|
if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);
|
|
7691
7386
|
else copyConstructorProperties(WrappedError, BaseError, { name: true });
|
|
7692
|
-
} else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {
|
|
7387
|
+
} else if (DESCRIPTORS$2 && STACK_TRACE_LIMIT in OriginalError) {
|
|
7693
7388
|
proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
|
|
7694
7389
|
proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
|
|
7695
7390
|
}
|
|
@@ -7708,28 +7403,28 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
|
|
|
7708
7403
|
};
|
|
7709
7404
|
|
|
7710
7405
|
/* eslint-disable no-unused-vars -- required for functions `.length` */
|
|
7711
|
-
var $$
|
|
7712
|
-
var global$
|
|
7406
|
+
var $$b = _export;
|
|
7407
|
+
var global$3 = global$f;
|
|
7713
7408
|
var apply$1 = functionApply;
|
|
7714
7409
|
var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
|
|
7715
7410
|
|
|
7716
7411
|
var WEB_ASSEMBLY = 'WebAssembly';
|
|
7717
|
-
var WebAssembly = global$
|
|
7412
|
+
var WebAssembly = global$3[WEB_ASSEMBLY];
|
|
7718
7413
|
|
|
7719
7414
|
// eslint-disable-next-line es/no-error-cause -- feature detection
|
|
7720
|
-
var FORCED$
|
|
7415
|
+
var FORCED$2 = new Error('e', { cause: 7 }).cause !== 7;
|
|
7721
7416
|
|
|
7722
7417
|
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
7723
7418
|
var O = {};
|
|
7724
|
-
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$
|
|
7725
|
-
$$
|
|
7419
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$2);
|
|
7420
|
+
$$b({ global: true, constructor: true, arity: 1, forced: FORCED$2 }, O);
|
|
7726
7421
|
};
|
|
7727
7422
|
|
|
7728
7423
|
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
7729
7424
|
if (WebAssembly && WebAssembly[ERROR_NAME]) {
|
|
7730
7425
|
var O = {};
|
|
7731
|
-
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$
|
|
7732
|
-
$$
|
|
7426
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$2);
|
|
7427
|
+
$$b({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$2 }, O);
|
|
7733
7428
|
}
|
|
7734
7429
|
};
|
|
7735
7430
|
|
|
@@ -7765,27 +7460,27 @@ exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
|
|
|
7765
7460
|
return function RuntimeError(message) { return apply$1(init, this, arguments); };
|
|
7766
7461
|
});
|
|
7767
7462
|
|
|
7768
|
-
var uncurryThis$
|
|
7463
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
7769
7464
|
|
|
7770
|
-
var arraySlice$1 = uncurryThis$
|
|
7465
|
+
var arraySlice$1 = uncurryThis$8([].slice);
|
|
7771
7466
|
|
|
7772
|
-
var uncurryThis$
|
|
7467
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
7773
7468
|
var isArray = isArray$2;
|
|
7774
|
-
var isCallable$
|
|
7775
|
-
var classof = classofRaw$
|
|
7469
|
+
var isCallable$2 = isCallable$i;
|
|
7470
|
+
var classof$1 = classofRaw$2;
|
|
7776
7471
|
var toString$2 = toString$5;
|
|
7777
7472
|
|
|
7778
|
-
var push = uncurryThis$
|
|
7473
|
+
var push = uncurryThis$7([].push);
|
|
7779
7474
|
|
|
7780
7475
|
var getJsonReplacerFunction = function (replacer) {
|
|
7781
|
-
if (isCallable$
|
|
7476
|
+
if (isCallable$2(replacer)) return replacer;
|
|
7782
7477
|
if (!isArray(replacer)) return;
|
|
7783
7478
|
var rawLength = replacer.length;
|
|
7784
7479
|
var keys = [];
|
|
7785
7480
|
for (var i = 0; i < rawLength; i++) {
|
|
7786
7481
|
var element = replacer[i];
|
|
7787
7482
|
if (typeof element == 'string') push(keys, element);
|
|
7788
|
-
else if (typeof element == 'number' || classof(element) === 'Number' || classof(element) === 'String') push(keys, toString$2(element));
|
|
7483
|
+
else if (typeof element == 'number' || classof$1(element) === 'Number' || classof$1(element) === 'String') push(keys, toString$2(element));
|
|
7789
7484
|
}
|
|
7790
7485
|
var keysLength = keys.length;
|
|
7791
7486
|
var root = true;
|
|
@@ -7799,32 +7494,32 @@ var getJsonReplacerFunction = function (replacer) {
|
|
|
7799
7494
|
};
|
|
7800
7495
|
};
|
|
7801
7496
|
|
|
7802
|
-
var $$
|
|
7803
|
-
var getBuiltIn = getBuiltIn$
|
|
7497
|
+
var $$a = _export;
|
|
7498
|
+
var getBuiltIn$1 = getBuiltIn$6;
|
|
7804
7499
|
var apply = functionApply;
|
|
7805
|
-
var call = functionCall;
|
|
7806
|
-
var uncurryThis$
|
|
7807
|
-
var fails$
|
|
7808
|
-
var isCallable = isCallable$
|
|
7500
|
+
var call$5 = functionCall;
|
|
7501
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
7502
|
+
var fails$3 = fails$i;
|
|
7503
|
+
var isCallable$1 = isCallable$i;
|
|
7809
7504
|
var isSymbol = isSymbol$3;
|
|
7810
7505
|
var arraySlice = arraySlice$1;
|
|
7811
7506
|
var getReplacerFunction = getJsonReplacerFunction;
|
|
7812
7507
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
7813
7508
|
|
|
7814
7509
|
var $String = String;
|
|
7815
|
-
var $stringify = getBuiltIn('JSON', 'stringify');
|
|
7816
|
-
var exec$1 = uncurryThis$
|
|
7817
|
-
var charAt = uncurryThis$
|
|
7818
|
-
var charCodeAt = uncurryThis$
|
|
7819
|
-
var replace$1 = uncurryThis$
|
|
7820
|
-
var numberToString = uncurryThis$
|
|
7510
|
+
var $stringify = getBuiltIn$1('JSON', 'stringify');
|
|
7511
|
+
var exec$1 = uncurryThis$6(/./.exec);
|
|
7512
|
+
var charAt = uncurryThis$6(''.charAt);
|
|
7513
|
+
var charCodeAt = uncurryThis$6(''.charCodeAt);
|
|
7514
|
+
var replace$1 = uncurryThis$6(''.replace);
|
|
7515
|
+
var numberToString = uncurryThis$6(1.0.toString);
|
|
7821
7516
|
|
|
7822
7517
|
var tester = /[\uD800-\uDFFF]/g;
|
|
7823
7518
|
var low = /^[\uD800-\uDBFF]$/;
|
|
7824
7519
|
var hi = /^[\uDC00-\uDFFF]$/;
|
|
7825
7520
|
|
|
7826
|
-
var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$
|
|
7827
|
-
var symbol = getBuiltIn('Symbol')('stringify detection');
|
|
7521
|
+
var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$3(function () {
|
|
7522
|
+
var symbol = getBuiltIn$1('Symbol')('stringify detection');
|
|
7828
7523
|
// MS Edge converts symbol values to JSON as {}
|
|
7829
7524
|
return $stringify([symbol]) !== '[null]'
|
|
7830
7525
|
// WebKit converts symbol values to JSON as null
|
|
@@ -7834,7 +7529,7 @@ var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$1(function () {
|
|
|
7834
7529
|
});
|
|
7835
7530
|
|
|
7836
7531
|
// https://github.com/tc39/proposal-well-formed-stringify
|
|
7837
|
-
var ILL_FORMED_UNICODE = fails$
|
|
7532
|
+
var ILL_FORMED_UNICODE = fails$3(function () {
|
|
7838
7533
|
return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
|
|
7839
7534
|
|| $stringify('\uDEAD') !== '"\\udead"';
|
|
7840
7535
|
});
|
|
@@ -7842,10 +7537,10 @@ var ILL_FORMED_UNICODE = fails$1(function () {
|
|
|
7842
7537
|
var stringifyWithSymbolsFix = function (it, replacer) {
|
|
7843
7538
|
var args = arraySlice(arguments);
|
|
7844
7539
|
var $replacer = getReplacerFunction(replacer);
|
|
7845
|
-
if (!isCallable($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
|
|
7540
|
+
if (!isCallable$1($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
|
|
7846
7541
|
args[1] = function (key, value) {
|
|
7847
7542
|
// some old implementations (like WebKit) could pass numbers as keys
|
|
7848
|
-
if (isCallable($replacer)) value = call($replacer, this, $String(key), value);
|
|
7543
|
+
if (isCallable$1($replacer)) value = call$5($replacer, this, $String(key), value);
|
|
7849
7544
|
if (!isSymbol(value)) return value;
|
|
7850
7545
|
};
|
|
7851
7546
|
return apply($stringify, null, args);
|
|
@@ -7862,7 +7557,7 @@ var fixIllFormed = function (match, offset, string) {
|
|
|
7862
7557
|
if ($stringify) {
|
|
7863
7558
|
// `JSON.stringify` method
|
|
7864
7559
|
// https://tc39.es/ecma262/#sec-json.stringify
|
|
7865
|
-
$$
|
|
7560
|
+
$$a({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
|
|
7866
7561
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
7867
7562
|
stringify: function stringify(it, replacer, space) {
|
|
7868
7563
|
var args = arraySlice(arguments);
|
|
@@ -7876,12 +7571,12 @@ if ($stringify) {
|
|
|
7876
7571
|
var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
7877
7572
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
7878
7573
|
|
|
7879
|
-
var uncurryThis$
|
|
7574
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
7880
7575
|
var requireObjectCoercible = requireObjectCoercible$5;
|
|
7881
7576
|
var toString$1 = toString$5;
|
|
7882
7577
|
var whitespaces$1 = whitespaces$2;
|
|
7883
7578
|
|
|
7884
|
-
var replace = uncurryThis$
|
|
7579
|
+
var replace = uncurryThis$5(''.replace);
|
|
7885
7580
|
var ltrim = RegExp('^[' + whitespaces$1 + ']+');
|
|
7886
7581
|
var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
|
|
7887
7582
|
|
|
@@ -7896,46 +7591,40 @@ var createMethod = function (TYPE) {
|
|
|
7896
7591
|
};
|
|
7897
7592
|
|
|
7898
7593
|
var stringTrim = {
|
|
7899
|
-
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
7900
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
7901
|
-
start: createMethod(1),
|
|
7902
|
-
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
7903
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
7904
|
-
end: createMethod(2),
|
|
7905
7594
|
// `String.prototype.trim` method
|
|
7906
7595
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
7907
7596
|
trim: createMethod(3)
|
|
7908
7597
|
};
|
|
7909
7598
|
|
|
7910
|
-
var global$
|
|
7911
|
-
var fails = fails$
|
|
7912
|
-
var uncurryThis = functionUncurryThis;
|
|
7599
|
+
var global$2 = global$f;
|
|
7600
|
+
var fails$2 = fails$i;
|
|
7601
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
7913
7602
|
var toString = toString$5;
|
|
7914
7603
|
var trim = stringTrim.trim;
|
|
7915
7604
|
var whitespaces = whitespaces$2;
|
|
7916
7605
|
|
|
7917
|
-
var $parseInt$1 = global$
|
|
7918
|
-
var Symbol$1 = global$
|
|
7919
|
-
var ITERATOR = Symbol$1 && Symbol$1.iterator;
|
|
7606
|
+
var $parseInt$1 = global$2.parseInt;
|
|
7607
|
+
var Symbol$1 = global$2.Symbol;
|
|
7608
|
+
var ITERATOR$3 = Symbol$1 && Symbol$1.iterator;
|
|
7920
7609
|
var hex = /^[+-]?0x/i;
|
|
7921
|
-
var exec = uncurryThis(hex.exec);
|
|
7922
|
-
var FORCED = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
|
|
7610
|
+
var exec = uncurryThis$4(hex.exec);
|
|
7611
|
+
var FORCED$1 = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
|
|
7923
7612
|
// MS Edge 18- broken with boxed symbols
|
|
7924
|
-
|| (ITERATOR && !fails(function () { $parseInt$1(Object(ITERATOR)); }));
|
|
7613
|
+
|| (ITERATOR$3 && !fails$2(function () { $parseInt$1(Object(ITERATOR$3)); }));
|
|
7925
7614
|
|
|
7926
7615
|
// `parseInt` method
|
|
7927
7616
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
7928
|
-
var numberParseInt = FORCED ? function parseInt(string, radix) {
|
|
7617
|
+
var numberParseInt = FORCED$1 ? function parseInt(string, radix) {
|
|
7929
7618
|
var S = trim(toString(string));
|
|
7930
7619
|
return $parseInt$1(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
|
|
7931
7620
|
} : $parseInt$1;
|
|
7932
7621
|
|
|
7933
|
-
var
|
|
7622
|
+
var $$9 = _export;
|
|
7934
7623
|
var $parseInt = numberParseInt;
|
|
7935
7624
|
|
|
7936
7625
|
// `parseInt` method
|
|
7937
7626
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
7938
|
-
|
|
7627
|
+
$$9({ global: true, forced: parseInt !== $parseInt }, {
|
|
7939
7628
|
parseInt: $parseInt
|
|
7940
7629
|
});
|
|
7941
7630
|
|
|
@@ -8118,7 +7807,7 @@ const auth = {
|
|
|
8118
7807
|
*/
|
|
8119
7808
|
getUserInfo(fromStorage = APP_PERSIST_STORES_TYPES[0], userInfoKey = USER_INFO) {
|
|
8120
7809
|
if (typeof window === 'undefined') {
|
|
8121
|
-
return
|
|
7810
|
+
return null;
|
|
8122
7811
|
}
|
|
8123
7812
|
// localStorage:
|
|
8124
7813
|
if (fromStorage === APP_PERSIST_STORES_TYPES[0]) {
|
|
@@ -8161,12 +7850,16 @@ const auth = {
|
|
|
8161
7850
|
}
|
|
8162
7851
|
}
|
|
8163
7852
|
},
|
|
8164
|
-
updateUserInfo(
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
7853
|
+
// updateUserInfo(
|
|
7854
|
+
// value: User,
|
|
7855
|
+
// toStorage: Storage = APP_PERSIST_STORES_TYPES[0],
|
|
7856
|
+
// userInfoKey: UserInfoKey = USER_INFO
|
|
7857
|
+
// ): any {
|
|
7858
|
+
// const user = this.getUserInfo();
|
|
7859
|
+
// user.name = value.name;
|
|
7860
|
+
// user.surname = value.surname;
|
|
7861
|
+
// this.setUserInfo(user);
|
|
7862
|
+
// },
|
|
8170
7863
|
/**
|
|
8171
7864
|
* delete userInfo
|
|
8172
7865
|
*
|
|
@@ -8269,6 +7962,657 @@ const LogoutRoute = _a => {
|
|
|
8269
7962
|
}));
|
|
8270
7963
|
};
|
|
8271
7964
|
|
|
7965
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
7966
|
+
|
|
7967
|
+
var $TypeError$4 = TypeError;
|
|
7968
|
+
|
|
7969
|
+
var anInstance$1 = function (it, Prototype) {
|
|
7970
|
+
if (isPrototypeOf$1(Prototype, it)) return it;
|
|
7971
|
+
throw new $TypeError$4('Incorrect invocation');
|
|
7972
|
+
};
|
|
7973
|
+
|
|
7974
|
+
var makeBuiltIn = makeBuiltInExports;
|
|
7975
|
+
var defineProperty = objectDefineProperty;
|
|
7976
|
+
|
|
7977
|
+
var defineBuiltInAccessor$1 = function (target, name, descriptor) {
|
|
7978
|
+
if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
|
|
7979
|
+
if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
|
|
7980
|
+
return defineProperty.f(target, name, descriptor);
|
|
7981
|
+
};
|
|
7982
|
+
|
|
7983
|
+
var DESCRIPTORS$1 = descriptors;
|
|
7984
|
+
var definePropertyModule = objectDefineProperty;
|
|
7985
|
+
var createPropertyDescriptor = createPropertyDescriptor$5;
|
|
7986
|
+
|
|
7987
|
+
var createProperty$1 = function (object, key, value) {
|
|
7988
|
+
if (DESCRIPTORS$1) definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
|
|
7989
|
+
else object[key] = value;
|
|
7990
|
+
};
|
|
7991
|
+
|
|
7992
|
+
var $$8 = _export;
|
|
7993
|
+
var global$1 = global$f;
|
|
7994
|
+
var anInstance = anInstance$1;
|
|
7995
|
+
var anObject$5 = anObject$a;
|
|
7996
|
+
var isCallable = isCallable$i;
|
|
7997
|
+
var getPrototypeOf = objectGetPrototypeOf;
|
|
7998
|
+
var defineBuiltInAccessor = defineBuiltInAccessor$1;
|
|
7999
|
+
var createProperty = createProperty$1;
|
|
8000
|
+
var fails$1 = fails$i;
|
|
8001
|
+
var hasOwn = hasOwnProperty_1;
|
|
8002
|
+
var wellKnownSymbol$2 = wellKnownSymbol$d;
|
|
8003
|
+
var IteratorPrototype = iteratorsCore.IteratorPrototype;
|
|
8004
|
+
var DESCRIPTORS = descriptors;
|
|
8005
|
+
|
|
8006
|
+
var CONSTRUCTOR = 'constructor';
|
|
8007
|
+
var ITERATOR$2 = 'Iterator';
|
|
8008
|
+
var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
|
|
8009
|
+
|
|
8010
|
+
var $TypeError$3 = TypeError;
|
|
8011
|
+
var NativeIterator = global$1[ITERATOR$2];
|
|
8012
|
+
|
|
8013
|
+
// FF56- have non-standard global helper `Iterator`
|
|
8014
|
+
var FORCED = !isCallable(NativeIterator)
|
|
8015
|
+
|| NativeIterator.prototype !== IteratorPrototype
|
|
8016
|
+
// FF44- non-standard `Iterator` passes previous tests
|
|
8017
|
+
|| !fails$1(function () { NativeIterator({}); });
|
|
8018
|
+
|
|
8019
|
+
var IteratorConstructor = function Iterator() {
|
|
8020
|
+
anInstance(this, IteratorPrototype);
|
|
8021
|
+
if (getPrototypeOf(this) === IteratorPrototype) throw new $TypeError$3('Abstract class Iterator not directly constructable');
|
|
8022
|
+
};
|
|
8023
|
+
|
|
8024
|
+
var defineIteratorPrototypeAccessor = function (key, value) {
|
|
8025
|
+
if (DESCRIPTORS) {
|
|
8026
|
+
defineBuiltInAccessor(IteratorPrototype, key, {
|
|
8027
|
+
configurable: true,
|
|
8028
|
+
get: function () {
|
|
8029
|
+
return value;
|
|
8030
|
+
},
|
|
8031
|
+
set: function (replacement) {
|
|
8032
|
+
anObject$5(this);
|
|
8033
|
+
if (this === IteratorPrototype) throw new $TypeError$3("You can't redefine this property");
|
|
8034
|
+
if (hasOwn(this, key)) this[key] = replacement;
|
|
8035
|
+
else createProperty(this, key, replacement);
|
|
8036
|
+
}
|
|
8037
|
+
});
|
|
8038
|
+
} else IteratorPrototype[key] = value;
|
|
8039
|
+
};
|
|
8040
|
+
|
|
8041
|
+
if (!hasOwn(IteratorPrototype, TO_STRING_TAG)) defineIteratorPrototypeAccessor(TO_STRING_TAG, ITERATOR$2);
|
|
8042
|
+
|
|
8043
|
+
if (FORCED || !hasOwn(IteratorPrototype, CONSTRUCTOR) || IteratorPrototype[CONSTRUCTOR] === Object) {
|
|
8044
|
+
defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
|
|
8045
|
+
}
|
|
8046
|
+
|
|
8047
|
+
IteratorConstructor.prototype = IteratorPrototype;
|
|
8048
|
+
|
|
8049
|
+
// `Iterator` constructor
|
|
8050
|
+
// https://github.com/tc39/proposal-iterator-helpers
|
|
8051
|
+
$$8({ global: true, constructor: true, forced: FORCED }, {
|
|
8052
|
+
Iterator: IteratorConstructor
|
|
8053
|
+
});
|
|
8054
|
+
|
|
8055
|
+
var classofRaw = classofRaw$2;
|
|
8056
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
8057
|
+
|
|
8058
|
+
var functionUncurryThisClause = function (fn) {
|
|
8059
|
+
// Nashorn bug:
|
|
8060
|
+
// https://github.com/zloirock/core-js/issues/1128
|
|
8061
|
+
// https://github.com/zloirock/core-js/issues/1130
|
|
8062
|
+
if (classofRaw(fn) === 'Function') return uncurryThis$3(fn);
|
|
8063
|
+
};
|
|
8064
|
+
|
|
8065
|
+
var uncurryThis$2 = functionUncurryThisClause;
|
|
8066
|
+
var aCallable$3 = aCallable$6;
|
|
8067
|
+
var NATIVE_BIND = functionBindNative;
|
|
8068
|
+
|
|
8069
|
+
var bind$1 = uncurryThis$2(uncurryThis$2.bind);
|
|
8070
|
+
|
|
8071
|
+
// optional / simple context binding
|
|
8072
|
+
var functionBindContext = function (fn, that) {
|
|
8073
|
+
aCallable$3(fn);
|
|
8074
|
+
return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
|
|
8075
|
+
return fn.apply(that, arguments);
|
|
8076
|
+
};
|
|
8077
|
+
};
|
|
8078
|
+
|
|
8079
|
+
var wellKnownSymbol$1 = wellKnownSymbol$d;
|
|
8080
|
+
var Iterators$1 = iterators;
|
|
8081
|
+
|
|
8082
|
+
var ITERATOR$1 = wellKnownSymbol$1('iterator');
|
|
8083
|
+
var ArrayPrototype = Array.prototype;
|
|
8084
|
+
|
|
8085
|
+
// check on default Array iterator
|
|
8086
|
+
var isArrayIteratorMethod$1 = function (it) {
|
|
8087
|
+
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$1] === it);
|
|
8088
|
+
};
|
|
8089
|
+
|
|
8090
|
+
var classof = classof$3;
|
|
8091
|
+
var getMethod$1 = getMethod$3;
|
|
8092
|
+
var isNullOrUndefined = isNullOrUndefined$3;
|
|
8093
|
+
var Iterators = iterators;
|
|
8094
|
+
var wellKnownSymbol = wellKnownSymbol$d;
|
|
8095
|
+
|
|
8096
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
8097
|
+
|
|
8098
|
+
var getIteratorMethod$2 = function (it) {
|
|
8099
|
+
if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR)
|
|
8100
|
+
|| getMethod$1(it, '@@iterator')
|
|
8101
|
+
|| Iterators[classof(it)];
|
|
8102
|
+
};
|
|
8103
|
+
|
|
8104
|
+
var call$4 = functionCall;
|
|
8105
|
+
var aCallable$2 = aCallable$6;
|
|
8106
|
+
var anObject$4 = anObject$a;
|
|
8107
|
+
var tryToString$1 = tryToString$3;
|
|
8108
|
+
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
8109
|
+
|
|
8110
|
+
var $TypeError$2 = TypeError;
|
|
8111
|
+
|
|
8112
|
+
var getIterator$1 = function (argument, usingIterator) {
|
|
8113
|
+
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
8114
|
+
if (aCallable$2(iteratorMethod)) return anObject$4(call$4(iteratorMethod, argument));
|
|
8115
|
+
throw new $TypeError$2(tryToString$1(argument) + ' is not iterable');
|
|
8116
|
+
};
|
|
8117
|
+
|
|
8118
|
+
var call$3 = functionCall;
|
|
8119
|
+
var anObject$3 = anObject$a;
|
|
8120
|
+
var getMethod = getMethod$3;
|
|
8121
|
+
|
|
8122
|
+
var iteratorClose$3 = function (iterator, kind, value) {
|
|
8123
|
+
var innerResult, innerError;
|
|
8124
|
+
anObject$3(iterator);
|
|
8125
|
+
try {
|
|
8126
|
+
innerResult = getMethod(iterator, 'return');
|
|
8127
|
+
if (!innerResult) {
|
|
8128
|
+
if (kind === 'throw') throw value;
|
|
8129
|
+
return value;
|
|
8130
|
+
}
|
|
8131
|
+
innerResult = call$3(innerResult, iterator);
|
|
8132
|
+
} catch (error) {
|
|
8133
|
+
innerError = true;
|
|
8134
|
+
innerResult = error;
|
|
8135
|
+
}
|
|
8136
|
+
if (kind === 'throw') throw value;
|
|
8137
|
+
if (innerError) throw innerResult;
|
|
8138
|
+
anObject$3(innerResult);
|
|
8139
|
+
return value;
|
|
8140
|
+
};
|
|
8141
|
+
|
|
8142
|
+
var bind = functionBindContext;
|
|
8143
|
+
var call$2 = functionCall;
|
|
8144
|
+
var anObject$2 = anObject$a;
|
|
8145
|
+
var tryToString = tryToString$3;
|
|
8146
|
+
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
8147
|
+
var lengthOfArrayLike = lengthOfArrayLike$3;
|
|
8148
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
8149
|
+
var getIterator = getIterator$1;
|
|
8150
|
+
var getIteratorMethod = getIteratorMethod$2;
|
|
8151
|
+
var iteratorClose$2 = iteratorClose$3;
|
|
8152
|
+
|
|
8153
|
+
var $TypeError$1 = TypeError;
|
|
8154
|
+
|
|
8155
|
+
var Result = function (stopped, result) {
|
|
8156
|
+
this.stopped = stopped;
|
|
8157
|
+
this.result = result;
|
|
8158
|
+
};
|
|
8159
|
+
|
|
8160
|
+
var ResultPrototype = Result.prototype;
|
|
8161
|
+
|
|
8162
|
+
var iterate$3 = function (iterable, unboundFunction, options) {
|
|
8163
|
+
var that = options && options.that;
|
|
8164
|
+
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
8165
|
+
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
8166
|
+
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
8167
|
+
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
8168
|
+
var fn = bind(unboundFunction, that);
|
|
8169
|
+
var iterator, iterFn, index, length, result, next, step;
|
|
8170
|
+
|
|
8171
|
+
var stop = function (condition) {
|
|
8172
|
+
if (iterator) iteratorClose$2(iterator, 'normal', condition);
|
|
8173
|
+
return new Result(true, condition);
|
|
8174
|
+
};
|
|
8175
|
+
|
|
8176
|
+
var callFn = function (value) {
|
|
8177
|
+
if (AS_ENTRIES) {
|
|
8178
|
+
anObject$2(value);
|
|
8179
|
+
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
8180
|
+
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
8181
|
+
};
|
|
8182
|
+
|
|
8183
|
+
if (IS_RECORD) {
|
|
8184
|
+
iterator = iterable.iterator;
|
|
8185
|
+
} else if (IS_ITERATOR) {
|
|
8186
|
+
iterator = iterable;
|
|
8187
|
+
} else {
|
|
8188
|
+
iterFn = getIteratorMethod(iterable);
|
|
8189
|
+
if (!iterFn) throw new $TypeError$1(tryToString(iterable) + ' is not iterable');
|
|
8190
|
+
// optimisation for array iterators
|
|
8191
|
+
if (isArrayIteratorMethod(iterFn)) {
|
|
8192
|
+
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
8193
|
+
result = callFn(iterable[index]);
|
|
8194
|
+
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
8195
|
+
} return new Result(false);
|
|
8196
|
+
}
|
|
8197
|
+
iterator = getIterator(iterable, iterFn);
|
|
8198
|
+
}
|
|
8199
|
+
|
|
8200
|
+
next = IS_RECORD ? iterable.next : iterator.next;
|
|
8201
|
+
while (!(step = call$2(next, iterator)).done) {
|
|
8202
|
+
try {
|
|
8203
|
+
result = callFn(step.value);
|
|
8204
|
+
} catch (error) {
|
|
8205
|
+
iteratorClose$2(iterator, 'throw', error);
|
|
8206
|
+
}
|
|
8207
|
+
if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
8208
|
+
} return new Result(false);
|
|
8209
|
+
};
|
|
8210
|
+
|
|
8211
|
+
// `GetIteratorDirect(obj)` abstract operation
|
|
8212
|
+
// https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
|
|
8213
|
+
var getIteratorDirect$2 = function (obj) {
|
|
8214
|
+
return {
|
|
8215
|
+
iterator: obj,
|
|
8216
|
+
next: obj.next,
|
|
8217
|
+
done: false
|
|
8218
|
+
};
|
|
8219
|
+
};
|
|
8220
|
+
|
|
8221
|
+
var $$7 = _export;
|
|
8222
|
+
var iterate$2 = iterate$3;
|
|
8223
|
+
var aCallable$1 = aCallable$6;
|
|
8224
|
+
var anObject$1 = anObject$a;
|
|
8225
|
+
var getIteratorDirect$1 = getIteratorDirect$2;
|
|
8226
|
+
|
|
8227
|
+
// `Iterator.prototype.every` method
|
|
8228
|
+
// https://github.com/tc39/proposal-iterator-helpers
|
|
8229
|
+
$$7({ target: 'Iterator', proto: true, real: true }, {
|
|
8230
|
+
every: function every(predicate) {
|
|
8231
|
+
anObject$1(this);
|
|
8232
|
+
aCallable$1(predicate);
|
|
8233
|
+
var record = getIteratorDirect$1(this);
|
|
8234
|
+
var counter = 0;
|
|
8235
|
+
return !iterate$2(record, function (value, stop) {
|
|
8236
|
+
if (!predicate(value, counter++)) return stop();
|
|
8237
|
+
}, { IS_RECORD: true, INTERRUPTED: true }).stopped;
|
|
8238
|
+
}
|
|
8239
|
+
});
|
|
8240
|
+
|
|
8241
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
8242
|
+
|
|
8243
|
+
// eslint-disable-next-line es/no-set -- safe
|
|
8244
|
+
var SetPrototype$1 = Set.prototype;
|
|
8245
|
+
|
|
8246
|
+
var setHelpers = {
|
|
8247
|
+
// eslint-disable-next-line es/no-set -- safe
|
|
8248
|
+
Set: Set,
|
|
8249
|
+
add: uncurryThis$1(SetPrototype$1.add),
|
|
8250
|
+
has: uncurryThis$1(SetPrototype$1.has),
|
|
8251
|
+
remove: uncurryThis$1(SetPrototype$1['delete']),
|
|
8252
|
+
proto: SetPrototype$1
|
|
8253
|
+
};
|
|
8254
|
+
|
|
8255
|
+
var has$5 = setHelpers.has;
|
|
8256
|
+
|
|
8257
|
+
// Perform ? RequireInternalSlot(M, [[SetData]])
|
|
8258
|
+
var aSet$7 = function (it) {
|
|
8259
|
+
has$5(it);
|
|
8260
|
+
return it;
|
|
8261
|
+
};
|
|
8262
|
+
|
|
8263
|
+
var call$1 = functionCall;
|
|
8264
|
+
|
|
8265
|
+
var iterateSimple$7 = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
|
|
8266
|
+
var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator;
|
|
8267
|
+
var next = record.next;
|
|
8268
|
+
var step, result;
|
|
8269
|
+
while (!(step = call$1(next, iterator)).done) {
|
|
8270
|
+
result = fn(step.value);
|
|
8271
|
+
if (result !== undefined) return result;
|
|
8272
|
+
}
|
|
8273
|
+
};
|
|
8274
|
+
|
|
8275
|
+
var uncurryThis = functionUncurryThis;
|
|
8276
|
+
var iterateSimple$6 = iterateSimple$7;
|
|
8277
|
+
var SetHelpers$5 = setHelpers;
|
|
8278
|
+
|
|
8279
|
+
var Set$3 = SetHelpers$5.Set;
|
|
8280
|
+
var SetPrototype = SetHelpers$5.proto;
|
|
8281
|
+
var forEach = uncurryThis(SetPrototype.forEach);
|
|
8282
|
+
var keys = uncurryThis(SetPrototype.keys);
|
|
8283
|
+
var next = keys(new Set$3()).next;
|
|
8284
|
+
|
|
8285
|
+
var setIterate = function (set, fn, interruptible) {
|
|
8286
|
+
return interruptible ? iterateSimple$6({ iterator: keys(set), next: next }, fn) : forEach(set, fn);
|
|
8287
|
+
};
|
|
8288
|
+
|
|
8289
|
+
var SetHelpers$4 = setHelpers;
|
|
8290
|
+
var iterate$1 = setIterate;
|
|
8291
|
+
|
|
8292
|
+
var Set$2 = SetHelpers$4.Set;
|
|
8293
|
+
var add$3 = SetHelpers$4.add;
|
|
8294
|
+
|
|
8295
|
+
var setClone = function (set) {
|
|
8296
|
+
var result = new Set$2();
|
|
8297
|
+
iterate$1(set, function (it) {
|
|
8298
|
+
add$3(result, it);
|
|
8299
|
+
});
|
|
8300
|
+
return result;
|
|
8301
|
+
};
|
|
8302
|
+
|
|
8303
|
+
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
8304
|
+
var SetHelpers$3 = setHelpers;
|
|
8305
|
+
|
|
8306
|
+
var setSize = uncurryThisAccessor(SetHelpers$3.proto, 'size', 'get') || function (set) {
|
|
8307
|
+
return set.size;
|
|
8308
|
+
};
|
|
8309
|
+
|
|
8310
|
+
var aCallable = aCallable$6;
|
|
8311
|
+
var anObject = anObject$a;
|
|
8312
|
+
var call = functionCall;
|
|
8313
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$3;
|
|
8314
|
+
var getIteratorDirect = getIteratorDirect$2;
|
|
8315
|
+
|
|
8316
|
+
var INVALID_SIZE = 'Invalid size';
|
|
8317
|
+
var $RangeError = RangeError;
|
|
8318
|
+
var $TypeError = TypeError;
|
|
8319
|
+
var max = Math.max;
|
|
8320
|
+
|
|
8321
|
+
var SetRecord = function (set, intSize) {
|
|
8322
|
+
this.set = set;
|
|
8323
|
+
this.size = max(intSize, 0);
|
|
8324
|
+
this.has = aCallable(set.has);
|
|
8325
|
+
this.keys = aCallable(set.keys);
|
|
8326
|
+
};
|
|
8327
|
+
|
|
8328
|
+
SetRecord.prototype = {
|
|
8329
|
+
getIterator: function () {
|
|
8330
|
+
return getIteratorDirect(anObject(call(this.keys, this.set)));
|
|
8331
|
+
},
|
|
8332
|
+
includes: function (it) {
|
|
8333
|
+
return call(this.has, this.set, it);
|
|
8334
|
+
}
|
|
8335
|
+
};
|
|
8336
|
+
|
|
8337
|
+
// `GetSetRecord` abstract operation
|
|
8338
|
+
// https://tc39.es/proposal-set-methods/#sec-getsetrecord
|
|
8339
|
+
var getSetRecord$7 = function (obj) {
|
|
8340
|
+
anObject(obj);
|
|
8341
|
+
var numSize = +obj.size;
|
|
8342
|
+
// NOTE: If size is undefined, then numSize will be NaN
|
|
8343
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
8344
|
+
if (numSize !== numSize) throw new $TypeError(INVALID_SIZE);
|
|
8345
|
+
var intSize = toIntegerOrInfinity(numSize);
|
|
8346
|
+
if (intSize < 0) throw new $RangeError(INVALID_SIZE);
|
|
8347
|
+
return new SetRecord(obj, intSize);
|
|
8348
|
+
};
|
|
8349
|
+
|
|
8350
|
+
var aSet$6 = aSet$7;
|
|
8351
|
+
var SetHelpers$2 = setHelpers;
|
|
8352
|
+
var clone$2 = setClone;
|
|
8353
|
+
var size$4 = setSize;
|
|
8354
|
+
var getSetRecord$6 = getSetRecord$7;
|
|
8355
|
+
var iterateSet$2 = setIterate;
|
|
8356
|
+
var iterateSimple$5 = iterateSimple$7;
|
|
8357
|
+
|
|
8358
|
+
var has$4 = SetHelpers$2.has;
|
|
8359
|
+
var remove$1 = SetHelpers$2.remove;
|
|
8360
|
+
|
|
8361
|
+
// `Set.prototype.difference` method
|
|
8362
|
+
// https://github.com/tc39/proposal-set-methods
|
|
8363
|
+
var setDifference = function difference(other) {
|
|
8364
|
+
var O = aSet$6(this);
|
|
8365
|
+
var otherRec = getSetRecord$6(other);
|
|
8366
|
+
var result = clone$2(O);
|
|
8367
|
+
if (size$4(O) <= otherRec.size) iterateSet$2(O, function (e) {
|
|
8368
|
+
if (otherRec.includes(e)) remove$1(result, e);
|
|
8369
|
+
});
|
|
8370
|
+
else iterateSimple$5(otherRec.getIterator(), function (e) {
|
|
8371
|
+
if (has$4(O, e)) remove$1(result, e);
|
|
8372
|
+
});
|
|
8373
|
+
return result;
|
|
8374
|
+
};
|
|
8375
|
+
|
|
8376
|
+
var getBuiltIn = getBuiltIn$6;
|
|
8377
|
+
|
|
8378
|
+
var createSetLike = function (size) {
|
|
8379
|
+
return {
|
|
8380
|
+
size: size,
|
|
8381
|
+
has: function () {
|
|
8382
|
+
return false;
|
|
8383
|
+
},
|
|
8384
|
+
keys: function () {
|
|
8385
|
+
return {
|
|
8386
|
+
next: function () {
|
|
8387
|
+
return { done: true };
|
|
8388
|
+
}
|
|
8389
|
+
};
|
|
8390
|
+
}
|
|
8391
|
+
};
|
|
8392
|
+
};
|
|
8393
|
+
|
|
8394
|
+
var setMethodAcceptSetLike$7 = function (name) {
|
|
8395
|
+
var Set = getBuiltIn('Set');
|
|
8396
|
+
try {
|
|
8397
|
+
new Set()[name](createSetLike(0));
|
|
8398
|
+
try {
|
|
8399
|
+
// late spec change, early WebKit ~ Safari 17.0 beta implementation does not pass it
|
|
8400
|
+
// https://github.com/tc39/proposal-set-methods/pull/88
|
|
8401
|
+
new Set()[name](createSetLike(-1));
|
|
8402
|
+
return false;
|
|
8403
|
+
} catch (error2) {
|
|
8404
|
+
return true;
|
|
8405
|
+
}
|
|
8406
|
+
} catch (error) {
|
|
8407
|
+
return false;
|
|
8408
|
+
}
|
|
8409
|
+
};
|
|
8410
|
+
|
|
8411
|
+
var $$6 = _export;
|
|
8412
|
+
var difference = setDifference;
|
|
8413
|
+
var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
|
|
8414
|
+
|
|
8415
|
+
// `Set.prototype.difference` method
|
|
8416
|
+
// https://github.com/tc39/proposal-set-methods
|
|
8417
|
+
$$6({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$6('difference') }, {
|
|
8418
|
+
difference: difference
|
|
8419
|
+
});
|
|
8420
|
+
|
|
8421
|
+
var aSet$5 = aSet$7;
|
|
8422
|
+
var SetHelpers$1 = setHelpers;
|
|
8423
|
+
var size$3 = setSize;
|
|
8424
|
+
var getSetRecord$5 = getSetRecord$7;
|
|
8425
|
+
var iterateSet$1 = setIterate;
|
|
8426
|
+
var iterateSimple$4 = iterateSimple$7;
|
|
8427
|
+
|
|
8428
|
+
var Set$1 = SetHelpers$1.Set;
|
|
8429
|
+
var add$2 = SetHelpers$1.add;
|
|
8430
|
+
var has$3 = SetHelpers$1.has;
|
|
8431
|
+
|
|
8432
|
+
// `Set.prototype.intersection` method
|
|
8433
|
+
// https://github.com/tc39/proposal-set-methods
|
|
8434
|
+
var setIntersection = function intersection(other) {
|
|
8435
|
+
var O = aSet$5(this);
|
|
8436
|
+
var otherRec = getSetRecord$5(other);
|
|
8437
|
+
var result = new Set$1();
|
|
8438
|
+
|
|
8439
|
+
if (size$3(O) > otherRec.size) {
|
|
8440
|
+
iterateSimple$4(otherRec.getIterator(), function (e) {
|
|
8441
|
+
if (has$3(O, e)) add$2(result, e);
|
|
8442
|
+
});
|
|
8443
|
+
} else {
|
|
8444
|
+
iterateSet$1(O, function (e) {
|
|
8445
|
+
if (otherRec.includes(e)) add$2(result, e);
|
|
8446
|
+
});
|
|
8447
|
+
}
|
|
8448
|
+
|
|
8449
|
+
return result;
|
|
8450
|
+
};
|
|
8451
|
+
|
|
8452
|
+
var $$5 = _export;
|
|
8453
|
+
var fails = fails$i;
|
|
8454
|
+
var intersection = setIntersection;
|
|
8455
|
+
var setMethodAcceptSetLike$5 = setMethodAcceptSetLike$7;
|
|
8456
|
+
|
|
8457
|
+
var INCORRECT = !setMethodAcceptSetLike$5('intersection') || fails(function () {
|
|
8458
|
+
// eslint-disable-next-line es/no-array-from, es/no-set -- testing
|
|
8459
|
+
return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
|
|
8460
|
+
});
|
|
8461
|
+
|
|
8462
|
+
// `Set.prototype.intersection` method
|
|
8463
|
+
// https://github.com/tc39/proposal-set-methods
|
|
8464
|
+
$$5({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
|
|
8465
|
+
intersection: intersection
|
|
8466
|
+
});
|
|
8467
|
+
|
|
8468
|
+
var aSet$4 = aSet$7;
|
|
8469
|
+
var has$2 = setHelpers.has;
|
|
8470
|
+
var size$2 = setSize;
|
|
8471
|
+
var getSetRecord$4 = getSetRecord$7;
|
|
8472
|
+
var iterateSet = setIterate;
|
|
8473
|
+
var iterateSimple$3 = iterateSimple$7;
|
|
8474
|
+
var iteratorClose$1 = iteratorClose$3;
|
|
8475
|
+
|
|
8476
|
+
// `Set.prototype.isDisjointFrom` method
|
|
8477
|
+
// https://tc39.github.io/proposal-set-methods/#Set.prototype.isDisjointFrom
|
|
8478
|
+
var setIsDisjointFrom = function isDisjointFrom(other) {
|
|
8479
|
+
var O = aSet$4(this);
|
|
8480
|
+
var otherRec = getSetRecord$4(other);
|
|
8481
|
+
if (size$2(O) <= otherRec.size) return iterateSet(O, function (e) {
|
|
8482
|
+
if (otherRec.includes(e)) return false;
|
|
8483
|
+
}, true) !== false;
|
|
8484
|
+
var iterator = otherRec.getIterator();
|
|
8485
|
+
return iterateSimple$3(iterator, function (e) {
|
|
8486
|
+
if (has$2(O, e)) return iteratorClose$1(iterator, 'normal', false);
|
|
8487
|
+
}) !== false;
|
|
8488
|
+
};
|
|
8489
|
+
|
|
8490
|
+
var $$4 = _export;
|
|
8491
|
+
var isDisjointFrom = setIsDisjointFrom;
|
|
8492
|
+
var setMethodAcceptSetLike$4 = setMethodAcceptSetLike$7;
|
|
8493
|
+
|
|
8494
|
+
// `Set.prototype.isDisjointFrom` method
|
|
8495
|
+
// https://github.com/tc39/proposal-set-methods
|
|
8496
|
+
$$4({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$4('isDisjointFrom') }, {
|
|
8497
|
+
isDisjointFrom: isDisjointFrom
|
|
8498
|
+
});
|
|
8499
|
+
|
|
8500
|
+
var aSet$3 = aSet$7;
|
|
8501
|
+
var size$1 = setSize;
|
|
8502
|
+
var iterate = setIterate;
|
|
8503
|
+
var getSetRecord$3 = getSetRecord$7;
|
|
8504
|
+
|
|
8505
|
+
// `Set.prototype.isSubsetOf` method
|
|
8506
|
+
// https://tc39.github.io/proposal-set-methods/#Set.prototype.isSubsetOf
|
|
8507
|
+
var setIsSubsetOf = function isSubsetOf(other) {
|
|
8508
|
+
var O = aSet$3(this);
|
|
8509
|
+
var otherRec = getSetRecord$3(other);
|
|
8510
|
+
if (size$1(O) > otherRec.size) return false;
|
|
8511
|
+
return iterate(O, function (e) {
|
|
8512
|
+
if (!otherRec.includes(e)) return false;
|
|
8513
|
+
}, true) !== false;
|
|
8514
|
+
};
|
|
8515
|
+
|
|
8516
|
+
var $$3 = _export;
|
|
8517
|
+
var isSubsetOf = setIsSubsetOf;
|
|
8518
|
+
var setMethodAcceptSetLike$3 = setMethodAcceptSetLike$7;
|
|
8519
|
+
|
|
8520
|
+
// `Set.prototype.isSubsetOf` method
|
|
8521
|
+
// https://github.com/tc39/proposal-set-methods
|
|
8522
|
+
$$3({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$3('isSubsetOf') }, {
|
|
8523
|
+
isSubsetOf: isSubsetOf
|
|
8524
|
+
});
|
|
8525
|
+
|
|
8526
|
+
var aSet$2 = aSet$7;
|
|
8527
|
+
var has$1 = setHelpers.has;
|
|
8528
|
+
var size = setSize;
|
|
8529
|
+
var getSetRecord$2 = getSetRecord$7;
|
|
8530
|
+
var iterateSimple$2 = iterateSimple$7;
|
|
8531
|
+
var iteratorClose = iteratorClose$3;
|
|
8532
|
+
|
|
8533
|
+
// `Set.prototype.isSupersetOf` method
|
|
8534
|
+
// https://tc39.github.io/proposal-set-methods/#Set.prototype.isSupersetOf
|
|
8535
|
+
var setIsSupersetOf = function isSupersetOf(other) {
|
|
8536
|
+
var O = aSet$2(this);
|
|
8537
|
+
var otherRec = getSetRecord$2(other);
|
|
8538
|
+
if (size(O) < otherRec.size) return false;
|
|
8539
|
+
var iterator = otherRec.getIterator();
|
|
8540
|
+
return iterateSimple$2(iterator, function (e) {
|
|
8541
|
+
if (!has$1(O, e)) return iteratorClose(iterator, 'normal', false);
|
|
8542
|
+
}) !== false;
|
|
8543
|
+
};
|
|
8544
|
+
|
|
8545
|
+
var $$2 = _export;
|
|
8546
|
+
var isSupersetOf = setIsSupersetOf;
|
|
8547
|
+
var setMethodAcceptSetLike$2 = setMethodAcceptSetLike$7;
|
|
8548
|
+
|
|
8549
|
+
// `Set.prototype.isSupersetOf` method
|
|
8550
|
+
// https://github.com/tc39/proposal-set-methods
|
|
8551
|
+
$$2({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$2('isSupersetOf') }, {
|
|
8552
|
+
isSupersetOf: isSupersetOf
|
|
8553
|
+
});
|
|
8554
|
+
|
|
8555
|
+
var aSet$1 = aSet$7;
|
|
8556
|
+
var SetHelpers = setHelpers;
|
|
8557
|
+
var clone$1 = setClone;
|
|
8558
|
+
var getSetRecord$1 = getSetRecord$7;
|
|
8559
|
+
var iterateSimple$1 = iterateSimple$7;
|
|
8560
|
+
|
|
8561
|
+
var add$1 = SetHelpers.add;
|
|
8562
|
+
var has = SetHelpers.has;
|
|
8563
|
+
var remove = SetHelpers.remove;
|
|
8564
|
+
|
|
8565
|
+
// `Set.prototype.symmetricDifference` method
|
|
8566
|
+
// https://github.com/tc39/proposal-set-methods
|
|
8567
|
+
var setSymmetricDifference = function symmetricDifference(other) {
|
|
8568
|
+
var O = aSet$1(this);
|
|
8569
|
+
var keysIter = getSetRecord$1(other).getIterator();
|
|
8570
|
+
var result = clone$1(O);
|
|
8571
|
+
iterateSimple$1(keysIter, function (e) {
|
|
8572
|
+
if (has(O, e)) remove(result, e);
|
|
8573
|
+
else add$1(result, e);
|
|
8574
|
+
});
|
|
8575
|
+
return result;
|
|
8576
|
+
};
|
|
8577
|
+
|
|
8578
|
+
var $$1 = _export;
|
|
8579
|
+
var symmetricDifference = setSymmetricDifference;
|
|
8580
|
+
var setMethodAcceptSetLike$1 = setMethodAcceptSetLike$7;
|
|
8581
|
+
|
|
8582
|
+
// `Set.prototype.symmetricDifference` method
|
|
8583
|
+
// https://github.com/tc39/proposal-set-methods
|
|
8584
|
+
$$1({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$1('symmetricDifference') }, {
|
|
8585
|
+
symmetricDifference: symmetricDifference
|
|
8586
|
+
});
|
|
8587
|
+
|
|
8588
|
+
var aSet = aSet$7;
|
|
8589
|
+
var add = setHelpers.add;
|
|
8590
|
+
var clone = setClone;
|
|
8591
|
+
var getSetRecord = getSetRecord$7;
|
|
8592
|
+
var iterateSimple = iterateSimple$7;
|
|
8593
|
+
|
|
8594
|
+
// `Set.prototype.union` method
|
|
8595
|
+
// https://github.com/tc39/proposal-set-methods
|
|
8596
|
+
var setUnion = function union(other) {
|
|
8597
|
+
var O = aSet(this);
|
|
8598
|
+
var keysIter = getSetRecord(other).getIterator();
|
|
8599
|
+
var result = clone(O);
|
|
8600
|
+
iterateSimple(keysIter, function (it) {
|
|
8601
|
+
add(result, it);
|
|
8602
|
+
});
|
|
8603
|
+
return result;
|
|
8604
|
+
};
|
|
8605
|
+
|
|
8606
|
+
var $ = _export;
|
|
8607
|
+
var union = setUnion;
|
|
8608
|
+
var setMethodAcceptSetLike = setMethodAcceptSetLike$7;
|
|
8609
|
+
|
|
8610
|
+
// `Set.prototype.union` method
|
|
8611
|
+
// https://github.com/tc39/proposal-set-methods
|
|
8612
|
+
$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
|
|
8613
|
+
union: union
|
|
8614
|
+
});
|
|
8615
|
+
|
|
8272
8616
|
var Loading;
|
|
8273
8617
|
(function (Loading) {
|
|
8274
8618
|
Loading["INITIAL"] = "initial";
|
|
@@ -8276,5 +8620,91 @@ var Loading;
|
|
|
8276
8620
|
Loading["SUCCESS"] = "success";
|
|
8277
8621
|
Loading["ERROR"] = "error";
|
|
8278
8622
|
})(Loading || (Loading = {}));
|
|
8623
|
+
var Permission;
|
|
8624
|
+
(function (Permission) {
|
|
8625
|
+
Permission["MANAGE_WORKSPACE"] = "MANAGE_WORKSPACE";
|
|
8626
|
+
Permission["MANAGE_CONVS"] = "MANAGE_CONVS";
|
|
8627
|
+
Permission["MANAGE_CLIENTS"] = "MANAGE_CLIENTS";
|
|
8628
|
+
})(Permission || (Permission = {}));
|
|
8629
|
+
|
|
8630
|
+
const usePermissions = () => {
|
|
8631
|
+
var _a;
|
|
8632
|
+
const role = (_a = auth.getUserInfo()) === null || _a === void 0 ? void 0 : _a.role;
|
|
8633
|
+
const permissions = useMemo(() => {
|
|
8634
|
+
const grants = new Set();
|
|
8635
|
+
switch (role) {
|
|
8636
|
+
case 'OWNER':
|
|
8637
|
+
case 'ADMIN':
|
|
8638
|
+
{
|
|
8639
|
+
grants.add(Permission.MANAGE_WORKSPACE);
|
|
8640
|
+
grants.add(Permission.MANAGE_CONVS);
|
|
8641
|
+
grants.add(Permission.MANAGE_CLIENTS);
|
|
8642
|
+
break;
|
|
8643
|
+
}
|
|
8644
|
+
case 'MANAGER':
|
|
8645
|
+
{
|
|
8646
|
+
grants.add(Permission.MANAGE_CONVS);
|
|
8647
|
+
grants.add(Permission.MANAGE_CLIENTS);
|
|
8648
|
+
break;
|
|
8649
|
+
}
|
|
8650
|
+
case 'AGENT_PLUS':
|
|
8651
|
+
{
|
|
8652
|
+
grants.add(Permission.MANAGE_CLIENTS);
|
|
8653
|
+
break;
|
|
8654
|
+
}
|
|
8655
|
+
}
|
|
8656
|
+
return grants;
|
|
8657
|
+
}, [role]);
|
|
8658
|
+
const has = permission => permissions.has(permission);
|
|
8659
|
+
return {
|
|
8660
|
+
role,
|
|
8661
|
+
permissions,
|
|
8662
|
+
has
|
|
8663
|
+
};
|
|
8664
|
+
};
|
|
8665
|
+
|
|
8666
|
+
const PermissionGuard = _a => {
|
|
8667
|
+
var {
|
|
8668
|
+
component: Component,
|
|
8669
|
+
requiredPermissions = [],
|
|
8670
|
+
fallbackRoute = BCRoutes.Inbox
|
|
8671
|
+
} = _a,
|
|
8672
|
+
routeProps = __rest(_a, ["component", "requiredPermissions", "fallbackRoute"]);
|
|
8673
|
+
const {
|
|
8674
|
+
has
|
|
8675
|
+
} = usePermissions();
|
|
8676
|
+
const render = props => {
|
|
8677
|
+
var _a;
|
|
8678
|
+
const isUserAuthenticated = !!(auth.getToken() && StringsUtils.isStringHasCharacters((_a = auth.getUserInfo()) === null || _a === void 0 ? void 0 : _a.id));
|
|
8679
|
+
const currentToken = auth.getToken();
|
|
8680
|
+
if (!currentToken || !isUserAuthenticated) {
|
|
8681
|
+
return jsx(Redirect, {
|
|
8682
|
+
to: {
|
|
8683
|
+
pathname: BCRoutes.Login,
|
|
8684
|
+
state: {
|
|
8685
|
+
from: props.location
|
|
8686
|
+
}
|
|
8687
|
+
}
|
|
8688
|
+
});
|
|
8689
|
+
}
|
|
8690
|
+
if (requiredPermissions.length > 0) {
|
|
8691
|
+
const isAllowed = requiredPermissions.every(permission => has(permission));
|
|
8692
|
+
if (!isAllowed) {
|
|
8693
|
+
return jsx(Redirect, {
|
|
8694
|
+
to: {
|
|
8695
|
+
pathname: fallbackRoute,
|
|
8696
|
+
state: {
|
|
8697
|
+
from: props.location
|
|
8698
|
+
}
|
|
8699
|
+
}
|
|
8700
|
+
});
|
|
8701
|
+
}
|
|
8702
|
+
}
|
|
8703
|
+
return jsx(Component, Object.assign({}, props));
|
|
8704
|
+
};
|
|
8705
|
+
return jsx(Route, Object.assign({}, routeProps, {
|
|
8706
|
+
render: render
|
|
8707
|
+
}));
|
|
8708
|
+
};
|
|
8279
8709
|
|
|
8280
|
-
export { ArraysUtils, BCRoutes, BCRoutesGuard, LOCAL_STORAGE_I18N_STRING, LangService, Languages, Loading, LogoutRoute, StringsUtils, allSynchronously, auth, propertyOf };
|
|
8710
|
+
export { ArraysUtils, BCRoutes, BCRoutesGuard, LOCAL_STORAGE_I18N_STRING, LangService, Languages, Loading, LogoutRoute, Permission, PermissionGuard, StringsUtils, allSynchronously, auth, propertyOf, usePermissions };
|