@fluxo-dev/shell-mfe 0.0.12
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/README.md +7 -0
- package/index.esm.d.ts +1 -0
- package/index.esm.js +1228 -0
- package/package.json +7 -0
- package/src/index.d.ts +1 -0
- package/src/lib/module-loader/module-loader.d.ts +1 -0
package/README.md
ADDED
package/index.esm.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./src/index";
|
package/index.esm.js
ADDED
|
@@ -0,0 +1,1228 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import React, { Suspense } from 'react';
|
|
3
|
+
import { WaitData } from '@fluxo-dev/ui-components';
|
|
4
|
+
|
|
5
|
+
/******************************************************************************
|
|
6
|
+
Copyright (c) Microsoft Corporation.
|
|
7
|
+
|
|
8
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
9
|
+
purpose with or without fee is hereby granted.
|
|
10
|
+
|
|
11
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
12
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
13
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
14
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
15
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
16
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
17
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
18
|
+
***************************************************************************** */
|
|
19
|
+
|
|
20
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
21
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
22
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
23
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
24
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
25
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
26
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
31
|
+
var e = new Error(message);
|
|
32
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
36
|
+
|
|
37
|
+
var fails$6 = function (exec) {
|
|
38
|
+
try {
|
|
39
|
+
return !!exec();
|
|
40
|
+
} catch (error) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
var toString = {}.toString;
|
|
46
|
+
|
|
47
|
+
var classofRaw = function (it) {
|
|
48
|
+
return toString.call(it).slice(8, -1);
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
var fails$5 = fails$6;
|
|
52
|
+
var classof = classofRaw;
|
|
53
|
+
|
|
54
|
+
var split = ''.split;
|
|
55
|
+
|
|
56
|
+
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
57
|
+
var indexedObject = fails$5(function () {
|
|
58
|
+
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
59
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
60
|
+
return !Object('z').propertyIsEnumerable(0);
|
|
61
|
+
}) ? function (it) {
|
|
62
|
+
return classof(it) == 'String' ? split.call(it, '') : Object(it);
|
|
63
|
+
} : Object;
|
|
64
|
+
|
|
65
|
+
// `RequireObjectCoercible` abstract operation
|
|
66
|
+
// https://tc39.github.io/ecma262/#sec-requireobjectcoercible
|
|
67
|
+
var requireObjectCoercible$2 = function (it) {
|
|
68
|
+
if (it == undefined) throw TypeError("Can't call method on " + it);
|
|
69
|
+
return it;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
// toObject with fallback for non-array-like ES3 strings
|
|
73
|
+
var IndexedObject = indexedObject;
|
|
74
|
+
var requireObjectCoercible$1 = requireObjectCoercible$2;
|
|
75
|
+
|
|
76
|
+
var toIndexedObject$4 = function (it) {
|
|
77
|
+
return IndexedObject(requireObjectCoercible$1(it));
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
var check = function (it) {
|
|
81
|
+
return it && it.Math == Math && it;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
85
|
+
var global$c =
|
|
86
|
+
// eslint-disable-next-line no-undef
|
|
87
|
+
check(typeof globalThis == 'object' && globalThis) ||
|
|
88
|
+
check(typeof window == 'object' && window) ||
|
|
89
|
+
check(typeof self == 'object' && self) ||
|
|
90
|
+
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
91
|
+
// eslint-disable-next-line no-new-func
|
|
92
|
+
Function('return this')();
|
|
93
|
+
|
|
94
|
+
var shared$2 = {exports: {}};
|
|
95
|
+
|
|
96
|
+
var fails$4 = fails$6;
|
|
97
|
+
|
|
98
|
+
// Thank's IE8 for his funny defineProperty
|
|
99
|
+
var descriptors = !fails$4(function () {
|
|
100
|
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
var objectDefineProperty = {};
|
|
104
|
+
|
|
105
|
+
var isObject$5 = function (it) {
|
|
106
|
+
return typeof it === 'object' ? it !== null : typeof it === 'function';
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
var global$b = global$c;
|
|
110
|
+
var isObject$4 = isObject$5;
|
|
111
|
+
|
|
112
|
+
var document$1 = global$b.document;
|
|
113
|
+
// typeof document.createElement is 'object' in old IE
|
|
114
|
+
var EXISTS = isObject$4(document$1) && isObject$4(document$1.createElement);
|
|
115
|
+
|
|
116
|
+
var documentCreateElement$1 = function (it) {
|
|
117
|
+
return EXISTS ? document$1.createElement(it) : {};
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
var DESCRIPTORS$4 = descriptors;
|
|
121
|
+
var fails$3 = fails$6;
|
|
122
|
+
var createElement = documentCreateElement$1;
|
|
123
|
+
|
|
124
|
+
// Thank's IE8 for his funny defineProperty
|
|
125
|
+
var ie8DomDefine = !DESCRIPTORS$4 && !fails$3(function () {
|
|
126
|
+
return Object.defineProperty(createElement('div'), 'a', {
|
|
127
|
+
get: function () { return 7; }
|
|
128
|
+
}).a != 7;
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
var isObject$3 = isObject$5;
|
|
132
|
+
|
|
133
|
+
var anObject$5 = function (it) {
|
|
134
|
+
if (!isObject$3(it)) {
|
|
135
|
+
throw TypeError(String(it) + ' is not an object');
|
|
136
|
+
} return it;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
var isObject$2 = isObject$5;
|
|
140
|
+
|
|
141
|
+
// `ToPrimitive` abstract operation
|
|
142
|
+
// https://tc39.github.io/ecma262/#sec-toprimitive
|
|
143
|
+
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
|
|
144
|
+
// and the second argument - flag - preferred type is a string
|
|
145
|
+
var toPrimitive$2 = function (input, PREFERRED_STRING) {
|
|
146
|
+
if (!isObject$2(input)) return input;
|
|
147
|
+
var fn, val;
|
|
148
|
+
if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject$2(val = fn.call(input))) return val;
|
|
149
|
+
if (typeof (fn = input.valueOf) == 'function' && !isObject$2(val = fn.call(input))) return val;
|
|
150
|
+
if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject$2(val = fn.call(input))) return val;
|
|
151
|
+
throw TypeError("Can't convert object to primitive value");
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
var DESCRIPTORS$3 = descriptors;
|
|
155
|
+
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
156
|
+
var anObject$4 = anObject$5;
|
|
157
|
+
var toPrimitive$1 = toPrimitive$2;
|
|
158
|
+
|
|
159
|
+
var nativeDefineProperty = Object.defineProperty;
|
|
160
|
+
|
|
161
|
+
// `Object.defineProperty` method
|
|
162
|
+
// https://tc39.github.io/ecma262/#sec-object.defineproperty
|
|
163
|
+
objectDefineProperty.f = DESCRIPTORS$3 ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
|
|
164
|
+
anObject$4(O);
|
|
165
|
+
P = toPrimitive$1(P, true);
|
|
166
|
+
anObject$4(Attributes);
|
|
167
|
+
if (IE8_DOM_DEFINE$1) try {
|
|
168
|
+
return nativeDefineProperty(O, P, Attributes);
|
|
169
|
+
} catch (error) { /* empty */ }
|
|
170
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
|
171
|
+
if ('value' in Attributes) O[P] = Attributes.value;
|
|
172
|
+
return O;
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
176
|
+
return {
|
|
177
|
+
enumerable: !(bitmap & 1),
|
|
178
|
+
configurable: !(bitmap & 2),
|
|
179
|
+
writable: !(bitmap & 4),
|
|
180
|
+
value: value
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
var DESCRIPTORS$2 = descriptors;
|
|
185
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
186
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
187
|
+
|
|
188
|
+
var createNonEnumerableProperty$7 = DESCRIPTORS$2 ? function (object, key, value) {
|
|
189
|
+
return definePropertyModule$3.f(object, key, createPropertyDescriptor$2(1, value));
|
|
190
|
+
} : function (object, key, value) {
|
|
191
|
+
object[key] = value;
|
|
192
|
+
return object;
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
var global$a = global$c;
|
|
196
|
+
var createNonEnumerableProperty$6 = createNonEnumerableProperty$7;
|
|
197
|
+
|
|
198
|
+
var setGlobal$3 = function (key, value) {
|
|
199
|
+
try {
|
|
200
|
+
createNonEnumerableProperty$6(global$a, key, value);
|
|
201
|
+
} catch (error) {
|
|
202
|
+
global$a[key] = value;
|
|
203
|
+
} return value;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
var global$9 = global$c;
|
|
207
|
+
var setGlobal$2 = setGlobal$3;
|
|
208
|
+
|
|
209
|
+
var SHARED = '__core-js_shared__';
|
|
210
|
+
var store$3 = global$9[SHARED] || setGlobal$2(SHARED, {});
|
|
211
|
+
|
|
212
|
+
var sharedStore = store$3;
|
|
213
|
+
|
|
214
|
+
var store$2 = sharedStore;
|
|
215
|
+
|
|
216
|
+
(shared$2.exports = function (key, value) {
|
|
217
|
+
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
218
|
+
})('versions', []).push({
|
|
219
|
+
version: '3.6.5',
|
|
220
|
+
mode: 'global',
|
|
221
|
+
copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
var hasOwnProperty = {}.hasOwnProperty;
|
|
225
|
+
|
|
226
|
+
var has$9 = function (it, key) {
|
|
227
|
+
return hasOwnProperty.call(it, key);
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
var id = 0;
|
|
231
|
+
var postfix = Math.random();
|
|
232
|
+
|
|
233
|
+
var uid$2 = function (key) {
|
|
234
|
+
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
var fails$2 = fails$6;
|
|
238
|
+
|
|
239
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$2(function () {
|
|
240
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
|
241
|
+
// eslint-disable-next-line no-undef
|
|
242
|
+
return !String(Symbol());
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
246
|
+
|
|
247
|
+
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
248
|
+
// eslint-disable-next-line no-undef
|
|
249
|
+
&& !Symbol.sham
|
|
250
|
+
// eslint-disable-next-line no-undef
|
|
251
|
+
&& typeof Symbol.iterator == 'symbol';
|
|
252
|
+
|
|
253
|
+
var global$8 = global$c;
|
|
254
|
+
var shared$1 = shared$2.exports;
|
|
255
|
+
var has$8 = has$9;
|
|
256
|
+
var uid$1 = uid$2;
|
|
257
|
+
var NATIVE_SYMBOL = nativeSymbol;
|
|
258
|
+
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
259
|
+
|
|
260
|
+
var WellKnownSymbolsStore = shared$1('wks');
|
|
261
|
+
var Symbol$1 = global$8.Symbol;
|
|
262
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
263
|
+
|
|
264
|
+
var wellKnownSymbol$5 = function (name) {
|
|
265
|
+
if (!has$8(WellKnownSymbolsStore, name)) {
|
|
266
|
+
if (NATIVE_SYMBOL && has$8(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
267
|
+
else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
|
|
268
|
+
} return WellKnownSymbolsStore[name];
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
var ceil = Math.ceil;
|
|
272
|
+
var floor = Math.floor;
|
|
273
|
+
|
|
274
|
+
// `ToInteger` abstract operation
|
|
275
|
+
// https://tc39.github.io/ecma262/#sec-tointeger
|
|
276
|
+
var toInteger$2 = function (argument) {
|
|
277
|
+
return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
var toInteger$1 = toInteger$2;
|
|
281
|
+
|
|
282
|
+
var min$1 = Math.min;
|
|
283
|
+
|
|
284
|
+
// `ToLength` abstract operation
|
|
285
|
+
// https://tc39.github.io/ecma262/#sec-tolength
|
|
286
|
+
var toLength$1 = function (argument) {
|
|
287
|
+
return argument > 0 ? min$1(toInteger$1(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
var toInteger = toInteger$2;
|
|
291
|
+
|
|
292
|
+
var max = Math.max;
|
|
293
|
+
var min = Math.min;
|
|
294
|
+
|
|
295
|
+
// Helper for a popular repeating case of the spec:
|
|
296
|
+
// Let integer be ? ToInteger(index).
|
|
297
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
298
|
+
var toAbsoluteIndex$1 = function (index, length) {
|
|
299
|
+
var integer = toInteger(index);
|
|
300
|
+
return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
var toIndexedObject$3 = toIndexedObject$4;
|
|
304
|
+
var toLength = toLength$1;
|
|
305
|
+
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
306
|
+
|
|
307
|
+
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
308
|
+
var createMethod = function (IS_INCLUDES) {
|
|
309
|
+
return function ($this, el, fromIndex) {
|
|
310
|
+
var O = toIndexedObject$3($this);
|
|
311
|
+
var length = toLength(O.length);
|
|
312
|
+
var index = toAbsoluteIndex(fromIndex, length);
|
|
313
|
+
var value;
|
|
314
|
+
// Array#includes uses SameValueZero equality algorithm
|
|
315
|
+
// eslint-disable-next-line no-self-compare
|
|
316
|
+
if (IS_INCLUDES && el != el) while (length > index) {
|
|
317
|
+
value = O[index++];
|
|
318
|
+
// eslint-disable-next-line no-self-compare
|
|
319
|
+
if (value != value) return true;
|
|
320
|
+
// Array#indexOf ignores holes, Array#includes - not
|
|
321
|
+
} else for (;length > index; index++) {
|
|
322
|
+
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
323
|
+
} return !IS_INCLUDES && -1;
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
var arrayIncludes = {
|
|
328
|
+
// `Array.prototype.includes` method
|
|
329
|
+
// https://tc39.github.io/ecma262/#sec-array.prototype.includes
|
|
330
|
+
includes: createMethod(true),
|
|
331
|
+
// `Array.prototype.indexOf` method
|
|
332
|
+
// https://tc39.github.io/ecma262/#sec-array.prototype.indexof
|
|
333
|
+
indexOf: createMethod(false)
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
var hiddenKeys$4 = {};
|
|
337
|
+
|
|
338
|
+
var has$7 = has$9;
|
|
339
|
+
var toIndexedObject$2 = toIndexedObject$4;
|
|
340
|
+
var indexOf = arrayIncludes.indexOf;
|
|
341
|
+
var hiddenKeys$3 = hiddenKeys$4;
|
|
342
|
+
|
|
343
|
+
var objectKeysInternal = function (object, names) {
|
|
344
|
+
var O = toIndexedObject$2(object);
|
|
345
|
+
var i = 0;
|
|
346
|
+
var result = [];
|
|
347
|
+
var key;
|
|
348
|
+
for (key in O) !has$7(hiddenKeys$3, key) && has$7(O, key) && result.push(key);
|
|
349
|
+
// Don't enum bug & hidden keys
|
|
350
|
+
while (names.length > i) if (has$7(O, key = names[i++])) {
|
|
351
|
+
~indexOf(result, key) || result.push(key);
|
|
352
|
+
}
|
|
353
|
+
return result;
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
// IE8- don't enum bug keys
|
|
357
|
+
var enumBugKeys$3 = [
|
|
358
|
+
'constructor',
|
|
359
|
+
'hasOwnProperty',
|
|
360
|
+
'isPrototypeOf',
|
|
361
|
+
'propertyIsEnumerable',
|
|
362
|
+
'toLocaleString',
|
|
363
|
+
'toString',
|
|
364
|
+
'valueOf'
|
|
365
|
+
];
|
|
366
|
+
|
|
367
|
+
var internalObjectKeys$1 = objectKeysInternal;
|
|
368
|
+
var enumBugKeys$2 = enumBugKeys$3;
|
|
369
|
+
|
|
370
|
+
// `Object.keys` method
|
|
371
|
+
// https://tc39.github.io/ecma262/#sec-object.keys
|
|
372
|
+
var objectKeys$1 = Object.keys || function keys(O) {
|
|
373
|
+
return internalObjectKeys$1(O, enumBugKeys$2);
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
var DESCRIPTORS$1 = descriptors;
|
|
377
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
378
|
+
var anObject$3 = anObject$5;
|
|
379
|
+
var objectKeys = objectKeys$1;
|
|
380
|
+
|
|
381
|
+
// `Object.defineProperties` method
|
|
382
|
+
// https://tc39.github.io/ecma262/#sec-object.defineproperties
|
|
383
|
+
var objectDefineProperties = DESCRIPTORS$1 ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
384
|
+
anObject$3(O);
|
|
385
|
+
var keys = objectKeys(Properties);
|
|
386
|
+
var length = keys.length;
|
|
387
|
+
var index = 0;
|
|
388
|
+
var key;
|
|
389
|
+
while (length > index) definePropertyModule$2.f(O, key = keys[index++], Properties[key]);
|
|
390
|
+
return O;
|
|
391
|
+
};
|
|
392
|
+
|
|
393
|
+
var global$7 = global$c;
|
|
394
|
+
|
|
395
|
+
var path$1 = global$7;
|
|
396
|
+
|
|
397
|
+
var path = path$1;
|
|
398
|
+
var global$6 = global$c;
|
|
399
|
+
|
|
400
|
+
var aFunction = function (variable) {
|
|
401
|
+
return typeof variable == 'function' ? variable : undefined;
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
var getBuiltIn$2 = function (namespace, method) {
|
|
405
|
+
return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global$6[namespace])
|
|
406
|
+
: path[namespace] && path[namespace][method] || global$6[namespace] && global$6[namespace][method];
|
|
407
|
+
};
|
|
408
|
+
|
|
409
|
+
var getBuiltIn$1 = getBuiltIn$2;
|
|
410
|
+
|
|
411
|
+
var html$1 = getBuiltIn$1('document', 'documentElement');
|
|
412
|
+
|
|
413
|
+
var shared = shared$2.exports;
|
|
414
|
+
var uid = uid$2;
|
|
415
|
+
|
|
416
|
+
var keys = shared('keys');
|
|
417
|
+
|
|
418
|
+
var sharedKey$3 = function (key) {
|
|
419
|
+
return keys[key] || (keys[key] = uid(key));
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
var anObject$2 = anObject$5;
|
|
423
|
+
var defineProperties = objectDefineProperties;
|
|
424
|
+
var enumBugKeys$1 = enumBugKeys$3;
|
|
425
|
+
var hiddenKeys$2 = hiddenKeys$4;
|
|
426
|
+
var html = html$1;
|
|
427
|
+
var documentCreateElement = documentCreateElement$1;
|
|
428
|
+
var sharedKey$2 = sharedKey$3;
|
|
429
|
+
|
|
430
|
+
var GT = '>';
|
|
431
|
+
var LT = '<';
|
|
432
|
+
var PROTOTYPE = 'prototype';
|
|
433
|
+
var SCRIPT = 'script';
|
|
434
|
+
var IE_PROTO$1 = sharedKey$2('IE_PROTO');
|
|
435
|
+
|
|
436
|
+
var EmptyConstructor = function () { /* empty */ };
|
|
437
|
+
|
|
438
|
+
var scriptTag = function (content) {
|
|
439
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
443
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
444
|
+
activeXDocument.write(scriptTag(''));
|
|
445
|
+
activeXDocument.close();
|
|
446
|
+
var temp = activeXDocument.parentWindow.Object;
|
|
447
|
+
activeXDocument = null; // avoid memory leak
|
|
448
|
+
return temp;
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
452
|
+
var NullProtoObjectViaIFrame = function () {
|
|
453
|
+
// Thrash, waste and sodomy: IE GC bug
|
|
454
|
+
var iframe = documentCreateElement('iframe');
|
|
455
|
+
var JS = 'java' + SCRIPT + ':';
|
|
456
|
+
var iframeDocument;
|
|
457
|
+
iframe.style.display = 'none';
|
|
458
|
+
html.appendChild(iframe);
|
|
459
|
+
// https://github.com/zloirock/core-js/issues/475
|
|
460
|
+
iframe.src = String(JS);
|
|
461
|
+
iframeDocument = iframe.contentWindow.document;
|
|
462
|
+
iframeDocument.open();
|
|
463
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
|
464
|
+
iframeDocument.close();
|
|
465
|
+
return iframeDocument.F;
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
// Check for document.domain and active x support
|
|
469
|
+
// No need to use active x approach when document.domain is not set
|
|
470
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
|
471
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
472
|
+
// avoid IE GC bug
|
|
473
|
+
var activeXDocument;
|
|
474
|
+
var NullProtoObject = function () {
|
|
475
|
+
try {
|
|
476
|
+
/* global ActiveXObject */
|
|
477
|
+
activeXDocument = document.domain && new ActiveXObject('htmlfile');
|
|
478
|
+
} catch (error) { /* ignore */ }
|
|
479
|
+
NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
|
|
480
|
+
var length = enumBugKeys$1.length;
|
|
481
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys$1[length]];
|
|
482
|
+
return NullProtoObject();
|
|
483
|
+
};
|
|
484
|
+
|
|
485
|
+
hiddenKeys$2[IE_PROTO$1] = true;
|
|
486
|
+
|
|
487
|
+
// `Object.create` method
|
|
488
|
+
// https://tc39.github.io/ecma262/#sec-object.create
|
|
489
|
+
var objectCreate = Object.create || function create(O, Properties) {
|
|
490
|
+
var result;
|
|
491
|
+
if (O !== null) {
|
|
492
|
+
EmptyConstructor[PROTOTYPE] = anObject$2(O);
|
|
493
|
+
result = new EmptyConstructor();
|
|
494
|
+
EmptyConstructor[PROTOTYPE] = null;
|
|
495
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
496
|
+
result[IE_PROTO$1] = O;
|
|
497
|
+
} else result = NullProtoObject();
|
|
498
|
+
return Properties === undefined ? result : defineProperties(result, Properties);
|
|
499
|
+
};
|
|
500
|
+
|
|
501
|
+
var wellKnownSymbol$4 = wellKnownSymbol$5;
|
|
502
|
+
var create$1 = objectCreate;
|
|
503
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
504
|
+
|
|
505
|
+
var UNSCOPABLES = wellKnownSymbol$4('unscopables');
|
|
506
|
+
var ArrayPrototype = Array.prototype;
|
|
507
|
+
|
|
508
|
+
// Array.prototype[@@unscopables]
|
|
509
|
+
// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
|
|
510
|
+
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
511
|
+
definePropertyModule$1.f(ArrayPrototype, UNSCOPABLES, {
|
|
512
|
+
configurable: true,
|
|
513
|
+
value: create$1(null)
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
// add a key to Array.prototype[@@unscopables]
|
|
518
|
+
var addToUnscopables$1 = function (key) {
|
|
519
|
+
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
520
|
+
};
|
|
521
|
+
|
|
522
|
+
var iterators = {};
|
|
523
|
+
|
|
524
|
+
var store$1 = sharedStore;
|
|
525
|
+
|
|
526
|
+
var functionToString = Function.toString;
|
|
527
|
+
|
|
528
|
+
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
|
|
529
|
+
if (typeof store$1.inspectSource != 'function') {
|
|
530
|
+
store$1.inspectSource = function (it) {
|
|
531
|
+
return functionToString.call(it);
|
|
532
|
+
};
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
var inspectSource$2 = store$1.inspectSource;
|
|
536
|
+
|
|
537
|
+
var global$5 = global$c;
|
|
538
|
+
var inspectSource$1 = inspectSource$2;
|
|
539
|
+
|
|
540
|
+
var WeakMap$1 = global$5.WeakMap;
|
|
541
|
+
|
|
542
|
+
var nativeWeakMap = typeof WeakMap$1 === 'function' && /native code/.test(inspectSource$1(WeakMap$1));
|
|
543
|
+
|
|
544
|
+
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
545
|
+
var global$4 = global$c;
|
|
546
|
+
var isObject$1 = isObject$5;
|
|
547
|
+
var createNonEnumerableProperty$5 = createNonEnumerableProperty$7;
|
|
548
|
+
var objectHas = has$9;
|
|
549
|
+
var sharedKey$1 = sharedKey$3;
|
|
550
|
+
var hiddenKeys$1 = hiddenKeys$4;
|
|
551
|
+
|
|
552
|
+
var WeakMap = global$4.WeakMap;
|
|
553
|
+
var set, get, has$6;
|
|
554
|
+
|
|
555
|
+
var enforce = function (it) {
|
|
556
|
+
return has$6(it) ? get(it) : set(it, {});
|
|
557
|
+
};
|
|
558
|
+
|
|
559
|
+
var getterFor = function (TYPE) {
|
|
560
|
+
return function (it) {
|
|
561
|
+
var state;
|
|
562
|
+
if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
|
|
563
|
+
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
|
564
|
+
} return state;
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
if (NATIVE_WEAK_MAP) {
|
|
569
|
+
var store = new WeakMap();
|
|
570
|
+
var wmget = store.get;
|
|
571
|
+
var wmhas = store.has;
|
|
572
|
+
var wmset = store.set;
|
|
573
|
+
set = function (it, metadata) {
|
|
574
|
+
wmset.call(store, it, metadata);
|
|
575
|
+
return metadata;
|
|
576
|
+
};
|
|
577
|
+
get = function (it) {
|
|
578
|
+
return wmget.call(store, it) || {};
|
|
579
|
+
};
|
|
580
|
+
has$6 = function (it) {
|
|
581
|
+
return wmhas.call(store, it);
|
|
582
|
+
};
|
|
583
|
+
} else {
|
|
584
|
+
var STATE = sharedKey$1('state');
|
|
585
|
+
hiddenKeys$1[STATE] = true;
|
|
586
|
+
set = function (it, metadata) {
|
|
587
|
+
createNonEnumerableProperty$5(it, STATE, metadata);
|
|
588
|
+
return metadata;
|
|
589
|
+
};
|
|
590
|
+
get = function (it) {
|
|
591
|
+
return objectHas(it, STATE) ? it[STATE] : {};
|
|
592
|
+
};
|
|
593
|
+
has$6 = function (it) {
|
|
594
|
+
return objectHas(it, STATE);
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
var internalState = {
|
|
599
|
+
set: set,
|
|
600
|
+
get: get,
|
|
601
|
+
has: has$6,
|
|
602
|
+
enforce: enforce,
|
|
603
|
+
getterFor: getterFor
|
|
604
|
+
};
|
|
605
|
+
|
|
606
|
+
var objectGetOwnPropertyDescriptor = {};
|
|
607
|
+
|
|
608
|
+
var objectPropertyIsEnumerable = {};
|
|
609
|
+
|
|
610
|
+
var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
|
|
611
|
+
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
612
|
+
|
|
613
|
+
// Nashorn ~ JDK8 bug
|
|
614
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
|
|
615
|
+
|
|
616
|
+
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
617
|
+
// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
|
|
618
|
+
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
619
|
+
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
|
620
|
+
return !!descriptor && descriptor.enumerable;
|
|
621
|
+
} : nativePropertyIsEnumerable;
|
|
622
|
+
|
|
623
|
+
var DESCRIPTORS = descriptors;
|
|
624
|
+
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
625
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
626
|
+
var toIndexedObject$1 = toIndexedObject$4;
|
|
627
|
+
var toPrimitive = toPrimitive$2;
|
|
628
|
+
var has$5 = has$9;
|
|
629
|
+
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
630
|
+
|
|
631
|
+
var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
632
|
+
|
|
633
|
+
// `Object.getOwnPropertyDescriptor` method
|
|
634
|
+
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
|
|
635
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
636
|
+
O = toIndexedObject$1(O);
|
|
637
|
+
P = toPrimitive(P, true);
|
|
638
|
+
if (IE8_DOM_DEFINE) try {
|
|
639
|
+
return nativeGetOwnPropertyDescriptor(O, P);
|
|
640
|
+
} catch (error) { /* empty */ }
|
|
641
|
+
if (has$5(O, P)) return createPropertyDescriptor$1(!propertyIsEnumerableModule.f.call(O, P), O[P]);
|
|
642
|
+
};
|
|
643
|
+
|
|
644
|
+
var redefine$2 = {exports: {}};
|
|
645
|
+
|
|
646
|
+
var global$3 = global$c;
|
|
647
|
+
var createNonEnumerableProperty$4 = createNonEnumerableProperty$7;
|
|
648
|
+
var has$4 = has$9;
|
|
649
|
+
var setGlobal$1 = setGlobal$3;
|
|
650
|
+
var inspectSource = inspectSource$2;
|
|
651
|
+
var InternalStateModule$1 = internalState;
|
|
652
|
+
|
|
653
|
+
var getInternalState$1 = InternalStateModule$1.get;
|
|
654
|
+
var enforceInternalState = InternalStateModule$1.enforce;
|
|
655
|
+
var TEMPLATE = String(String).split('String');
|
|
656
|
+
|
|
657
|
+
(redefine$2.exports = function (O, key, value, options) {
|
|
658
|
+
var unsafe = options ? !!options.unsafe : false;
|
|
659
|
+
var simple = options ? !!options.enumerable : false;
|
|
660
|
+
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
661
|
+
if (typeof value == 'function') {
|
|
662
|
+
if (typeof key == 'string' && !has$4(value, 'name')) createNonEnumerableProperty$4(value, 'name', key);
|
|
663
|
+
enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
|
|
664
|
+
}
|
|
665
|
+
if (O === global$3) {
|
|
666
|
+
if (simple) O[key] = value;
|
|
667
|
+
else setGlobal$1(key, value);
|
|
668
|
+
return;
|
|
669
|
+
} else if (!unsafe) {
|
|
670
|
+
delete O[key];
|
|
671
|
+
} else if (!noTargetGet && O[key]) {
|
|
672
|
+
simple = true;
|
|
673
|
+
}
|
|
674
|
+
if (simple) O[key] = value;
|
|
675
|
+
else createNonEnumerableProperty$4(O, key, value);
|
|
676
|
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
677
|
+
})(Function.prototype, 'toString', function toString() {
|
|
678
|
+
return typeof this == 'function' && getInternalState$1(this).source || inspectSource(this);
|
|
679
|
+
});
|
|
680
|
+
|
|
681
|
+
var objectGetOwnPropertyNames = {};
|
|
682
|
+
|
|
683
|
+
var internalObjectKeys = objectKeysInternal;
|
|
684
|
+
var enumBugKeys = enumBugKeys$3;
|
|
685
|
+
|
|
686
|
+
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
|
687
|
+
|
|
688
|
+
// `Object.getOwnPropertyNames` method
|
|
689
|
+
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames
|
|
690
|
+
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
691
|
+
return internalObjectKeys(O, hiddenKeys);
|
|
692
|
+
};
|
|
693
|
+
|
|
694
|
+
var objectGetOwnPropertySymbols = {};
|
|
695
|
+
|
|
696
|
+
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
697
|
+
|
|
698
|
+
var getBuiltIn = getBuiltIn$2;
|
|
699
|
+
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
700
|
+
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
701
|
+
var anObject$1 = anObject$5;
|
|
702
|
+
|
|
703
|
+
// all object keys, includes non-enumerable and symbols
|
|
704
|
+
var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
705
|
+
var keys = getOwnPropertyNamesModule.f(anObject$1(it));
|
|
706
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
707
|
+
return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
var has$3 = has$9;
|
|
711
|
+
var ownKeys = ownKeys$1;
|
|
712
|
+
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
713
|
+
var definePropertyModule = objectDefineProperty;
|
|
714
|
+
|
|
715
|
+
var copyConstructorProperties$1 = function (target, source) {
|
|
716
|
+
var keys = ownKeys(source);
|
|
717
|
+
var defineProperty = definePropertyModule.f;
|
|
718
|
+
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
719
|
+
for (var i = 0; i < keys.length; i++) {
|
|
720
|
+
var key = keys[i];
|
|
721
|
+
if (!has$3(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
722
|
+
}
|
|
723
|
+
};
|
|
724
|
+
|
|
725
|
+
var fails$1 = fails$6;
|
|
726
|
+
|
|
727
|
+
var replacement = /#|\.prototype\./;
|
|
728
|
+
|
|
729
|
+
var isForced$1 = function (feature, detection) {
|
|
730
|
+
var value = data[normalize(feature)];
|
|
731
|
+
return value == POLYFILL ? true
|
|
732
|
+
: value == NATIVE ? false
|
|
733
|
+
: typeof detection == 'function' ? fails$1(detection)
|
|
734
|
+
: !!detection;
|
|
735
|
+
};
|
|
736
|
+
|
|
737
|
+
var normalize = isForced$1.normalize = function (string) {
|
|
738
|
+
return String(string).replace(replacement, '.').toLowerCase();
|
|
739
|
+
};
|
|
740
|
+
|
|
741
|
+
var data = isForced$1.data = {};
|
|
742
|
+
var NATIVE = isForced$1.NATIVE = 'N';
|
|
743
|
+
var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
744
|
+
|
|
745
|
+
var isForced_1 = isForced$1;
|
|
746
|
+
|
|
747
|
+
var global$2 = global$c;
|
|
748
|
+
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
749
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$7;
|
|
750
|
+
var redefine$1 = redefine$2.exports;
|
|
751
|
+
var setGlobal = setGlobal$3;
|
|
752
|
+
var copyConstructorProperties = copyConstructorProperties$1;
|
|
753
|
+
var isForced = isForced_1;
|
|
754
|
+
|
|
755
|
+
/*
|
|
756
|
+
options.target - name of the target object
|
|
757
|
+
options.global - target is the global object
|
|
758
|
+
options.stat - export as static methods of target
|
|
759
|
+
options.proto - export as prototype methods of target
|
|
760
|
+
options.real - real prototype method for the `pure` version
|
|
761
|
+
options.forced - export even if the native feature is available
|
|
762
|
+
options.bind - bind methods to the target, required for the `pure` version
|
|
763
|
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
764
|
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
765
|
+
options.sham - add a flag to not completely full polyfills
|
|
766
|
+
options.enumerable - export as enumerable property
|
|
767
|
+
options.noTargetGet - prevent calling a getter on target
|
|
768
|
+
*/
|
|
769
|
+
var _export = function (options, source) {
|
|
770
|
+
var TARGET = options.target;
|
|
771
|
+
var GLOBAL = options.global;
|
|
772
|
+
var STATIC = options.stat;
|
|
773
|
+
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
774
|
+
if (GLOBAL) {
|
|
775
|
+
target = global$2;
|
|
776
|
+
} else if (STATIC) {
|
|
777
|
+
target = global$2[TARGET] || setGlobal(TARGET, {});
|
|
778
|
+
} else {
|
|
779
|
+
target = (global$2[TARGET] || {}).prototype;
|
|
780
|
+
}
|
|
781
|
+
if (target) for (key in source) {
|
|
782
|
+
sourceProperty = source[key];
|
|
783
|
+
if (options.noTargetGet) {
|
|
784
|
+
descriptor = getOwnPropertyDescriptor(target, key);
|
|
785
|
+
targetProperty = descriptor && descriptor.value;
|
|
786
|
+
} else targetProperty = target[key];
|
|
787
|
+
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
788
|
+
// contained in target
|
|
789
|
+
if (!FORCED && targetProperty !== undefined) {
|
|
790
|
+
if (typeof sourceProperty === typeof targetProperty) continue;
|
|
791
|
+
copyConstructorProperties(sourceProperty, targetProperty);
|
|
792
|
+
}
|
|
793
|
+
// add a flag to not completely full polyfills
|
|
794
|
+
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
795
|
+
createNonEnumerableProperty$3(sourceProperty, 'sham', true);
|
|
796
|
+
}
|
|
797
|
+
// extend global
|
|
798
|
+
redefine$1(target, key, sourceProperty, options);
|
|
799
|
+
}
|
|
800
|
+
};
|
|
801
|
+
|
|
802
|
+
var requireObjectCoercible = requireObjectCoercible$2;
|
|
803
|
+
|
|
804
|
+
// `ToObject` abstract operation
|
|
805
|
+
// https://tc39.github.io/ecma262/#sec-toobject
|
|
806
|
+
var toObject$1 = function (argument) {
|
|
807
|
+
return Object(requireObjectCoercible(argument));
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
var fails = fails$6;
|
|
811
|
+
|
|
812
|
+
var correctPrototypeGetter = !fails(function () {
|
|
813
|
+
function F() { /* empty */ }
|
|
814
|
+
F.prototype.constructor = null;
|
|
815
|
+
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
816
|
+
});
|
|
817
|
+
|
|
818
|
+
var has$2 = has$9;
|
|
819
|
+
var toObject = toObject$1;
|
|
820
|
+
var sharedKey = sharedKey$3;
|
|
821
|
+
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
822
|
+
|
|
823
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
|
824
|
+
var ObjectPrototype = Object.prototype;
|
|
825
|
+
|
|
826
|
+
// `Object.getPrototypeOf` method
|
|
827
|
+
// https://tc39.github.io/ecma262/#sec-object.getprototypeof
|
|
828
|
+
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {
|
|
829
|
+
O = toObject(O);
|
|
830
|
+
if (has$2(O, IE_PROTO)) return O[IE_PROTO];
|
|
831
|
+
if (typeof O.constructor == 'function' && O instanceof O.constructor) {
|
|
832
|
+
return O.constructor.prototype;
|
|
833
|
+
} return O instanceof Object ? ObjectPrototype : null;
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
837
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$7;
|
|
838
|
+
var has$1 = has$9;
|
|
839
|
+
var wellKnownSymbol$3 = wellKnownSymbol$5;
|
|
840
|
+
|
|
841
|
+
var ITERATOR$2 = wellKnownSymbol$3('iterator');
|
|
842
|
+
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
843
|
+
|
|
844
|
+
var returnThis$2 = function () { return this; };
|
|
845
|
+
|
|
846
|
+
// `%IteratorPrototype%` object
|
|
847
|
+
// https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object
|
|
848
|
+
var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
849
|
+
|
|
850
|
+
if ([].keys) {
|
|
851
|
+
arrayIterator = [].keys();
|
|
852
|
+
// Safari 8 has buggy iterators w/o `next`
|
|
853
|
+
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
|
|
854
|
+
else {
|
|
855
|
+
PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
|
|
856
|
+
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
if (IteratorPrototype$2 == undefined) IteratorPrototype$2 = {};
|
|
861
|
+
|
|
862
|
+
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
|
|
863
|
+
if (!has$1(IteratorPrototype$2, ITERATOR$2)) {
|
|
864
|
+
createNonEnumerableProperty$2(IteratorPrototype$2, ITERATOR$2, returnThis$2);
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
var iteratorsCore = {
|
|
868
|
+
IteratorPrototype: IteratorPrototype$2,
|
|
869
|
+
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
870
|
+
};
|
|
871
|
+
|
|
872
|
+
var defineProperty = objectDefineProperty.f;
|
|
873
|
+
var has = has$9;
|
|
874
|
+
var wellKnownSymbol$2 = wellKnownSymbol$5;
|
|
875
|
+
|
|
876
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
|
|
877
|
+
|
|
878
|
+
var setToStringTag$2 = function (it, TAG, STATIC) {
|
|
879
|
+
if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG$1)) {
|
|
880
|
+
defineProperty(it, TO_STRING_TAG$1, { configurable: true, value: TAG });
|
|
881
|
+
}
|
|
882
|
+
};
|
|
883
|
+
|
|
884
|
+
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
885
|
+
var create = objectCreate;
|
|
886
|
+
var createPropertyDescriptor = createPropertyDescriptor$3;
|
|
887
|
+
var setToStringTag$1 = setToStringTag$2;
|
|
888
|
+
var Iterators$2 = iterators;
|
|
889
|
+
|
|
890
|
+
var returnThis$1 = function () { return this; };
|
|
891
|
+
|
|
892
|
+
var createIteratorConstructor$1 = function (IteratorConstructor, NAME, next) {
|
|
893
|
+
var TO_STRING_TAG = NAME + ' Iterator';
|
|
894
|
+
IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) });
|
|
895
|
+
setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
|
|
896
|
+
Iterators$2[TO_STRING_TAG] = returnThis$1;
|
|
897
|
+
return IteratorConstructor;
|
|
898
|
+
};
|
|
899
|
+
|
|
900
|
+
var isObject = isObject$5;
|
|
901
|
+
|
|
902
|
+
var aPossiblePrototype$1 = function (it) {
|
|
903
|
+
if (!isObject(it) && it !== null) {
|
|
904
|
+
throw TypeError("Can't set " + String(it) + ' as a prototype');
|
|
905
|
+
} return it;
|
|
906
|
+
};
|
|
907
|
+
|
|
908
|
+
var anObject = anObject$5;
|
|
909
|
+
var aPossiblePrototype = aPossiblePrototype$1;
|
|
910
|
+
|
|
911
|
+
// `Object.setPrototypeOf` method
|
|
912
|
+
// https://tc39.github.io/ecma262/#sec-object.setprototypeof
|
|
913
|
+
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
914
|
+
/* eslint-disable no-proto */
|
|
915
|
+
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
916
|
+
var CORRECT_SETTER = false;
|
|
917
|
+
var test = {};
|
|
918
|
+
var setter;
|
|
919
|
+
try {
|
|
920
|
+
setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
|
|
921
|
+
setter.call(test, []);
|
|
922
|
+
CORRECT_SETTER = test instanceof Array;
|
|
923
|
+
} catch (error) { /* empty */ }
|
|
924
|
+
return function setPrototypeOf(O, proto) {
|
|
925
|
+
anObject(O);
|
|
926
|
+
aPossiblePrototype(proto);
|
|
927
|
+
if (CORRECT_SETTER) setter.call(O, proto);
|
|
928
|
+
else O.__proto__ = proto;
|
|
929
|
+
return O;
|
|
930
|
+
};
|
|
931
|
+
}() : undefined);
|
|
932
|
+
|
|
933
|
+
var $ = _export;
|
|
934
|
+
var createIteratorConstructor = createIteratorConstructor$1;
|
|
935
|
+
var getPrototypeOf = objectGetPrototypeOf;
|
|
936
|
+
var setPrototypeOf = objectSetPrototypeOf;
|
|
937
|
+
var setToStringTag = setToStringTag$2;
|
|
938
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$7;
|
|
939
|
+
var redefine = redefine$2.exports;
|
|
940
|
+
var wellKnownSymbol$1 = wellKnownSymbol$5;
|
|
941
|
+
var Iterators$1 = iterators;
|
|
942
|
+
var IteratorsCore = iteratorsCore;
|
|
943
|
+
|
|
944
|
+
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
945
|
+
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
946
|
+
var ITERATOR$1 = wellKnownSymbol$1('iterator');
|
|
947
|
+
var KEYS = 'keys';
|
|
948
|
+
var VALUES = 'values';
|
|
949
|
+
var ENTRIES = 'entries';
|
|
950
|
+
|
|
951
|
+
var returnThis = function () { return this; };
|
|
952
|
+
|
|
953
|
+
var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
|
954
|
+
createIteratorConstructor(IteratorConstructor, NAME, next);
|
|
955
|
+
|
|
956
|
+
var getIterationMethod = function (KIND) {
|
|
957
|
+
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
|
958
|
+
if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
959
|
+
switch (KIND) {
|
|
960
|
+
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
|
961
|
+
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
|
962
|
+
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
|
963
|
+
} return function () { return new IteratorConstructor(this); };
|
|
964
|
+
};
|
|
965
|
+
|
|
966
|
+
var TO_STRING_TAG = NAME + ' Iterator';
|
|
967
|
+
var INCORRECT_VALUES_NAME = false;
|
|
968
|
+
var IterablePrototype = Iterable.prototype;
|
|
969
|
+
var nativeIterator = IterablePrototype[ITERATOR$1]
|
|
970
|
+
|| IterablePrototype['@@iterator']
|
|
971
|
+
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
972
|
+
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
973
|
+
var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
|
974
|
+
var CurrentIteratorPrototype, methods, KEY;
|
|
975
|
+
|
|
976
|
+
// fix native
|
|
977
|
+
if (anyNativeIterator) {
|
|
978
|
+
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
979
|
+
if (IteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
980
|
+
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
981
|
+
if (setPrototypeOf) {
|
|
982
|
+
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
983
|
+
} else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') {
|
|
984
|
+
createNonEnumerableProperty$1(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
// Set @@toStringTag to native iterators
|
|
988
|
+
setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
// fix Array#{values, @@iterator}.name in V8 / FF
|
|
993
|
+
if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
994
|
+
INCORRECT_VALUES_NAME = true;
|
|
995
|
+
defaultIterator = function values() { return nativeIterator.call(this); };
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
// define iterator
|
|
999
|
+
if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
|
1000
|
+
createNonEnumerableProperty$1(IterablePrototype, ITERATOR$1, defaultIterator);
|
|
1001
|
+
}
|
|
1002
|
+
Iterators$1[NAME] = defaultIterator;
|
|
1003
|
+
|
|
1004
|
+
// export additional methods
|
|
1005
|
+
if (DEFAULT) {
|
|
1006
|
+
methods = {
|
|
1007
|
+
values: getIterationMethod(VALUES),
|
|
1008
|
+
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
|
1009
|
+
entries: getIterationMethod(ENTRIES)
|
|
1010
|
+
};
|
|
1011
|
+
if (FORCED) for (KEY in methods) {
|
|
1012
|
+
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1013
|
+
redefine(IterablePrototype, KEY, methods[KEY]);
|
|
1014
|
+
}
|
|
1015
|
+
} else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
return methods;
|
|
1019
|
+
};
|
|
1020
|
+
|
|
1021
|
+
var toIndexedObject = toIndexedObject$4;
|
|
1022
|
+
var addToUnscopables = addToUnscopables$1;
|
|
1023
|
+
var Iterators = iterators;
|
|
1024
|
+
var InternalStateModule = internalState;
|
|
1025
|
+
var defineIterator = defineIterator$1;
|
|
1026
|
+
|
|
1027
|
+
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1028
|
+
var setInternalState = InternalStateModule.set;
|
|
1029
|
+
var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
|
|
1030
|
+
|
|
1031
|
+
// `Array.prototype.entries` method
|
|
1032
|
+
// https://tc39.github.io/ecma262/#sec-array.prototype.entries
|
|
1033
|
+
// `Array.prototype.keys` method
|
|
1034
|
+
// https://tc39.github.io/ecma262/#sec-array.prototype.keys
|
|
1035
|
+
// `Array.prototype.values` method
|
|
1036
|
+
// https://tc39.github.io/ecma262/#sec-array.prototype.values
|
|
1037
|
+
// `Array.prototype[@@iterator]` method
|
|
1038
|
+
// https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator
|
|
1039
|
+
// `CreateArrayIterator` internal method
|
|
1040
|
+
// https://tc39.github.io/ecma262/#sec-createarrayiterator
|
|
1041
|
+
var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
|
|
1042
|
+
setInternalState(this, {
|
|
1043
|
+
type: ARRAY_ITERATOR,
|
|
1044
|
+
target: toIndexedObject(iterated), // target
|
|
1045
|
+
index: 0, // next index
|
|
1046
|
+
kind: kind // kind
|
|
1047
|
+
});
|
|
1048
|
+
// `%ArrayIteratorPrototype%.next` method
|
|
1049
|
+
// https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next
|
|
1050
|
+
}, function () {
|
|
1051
|
+
var state = getInternalState(this);
|
|
1052
|
+
var target = state.target;
|
|
1053
|
+
var kind = state.kind;
|
|
1054
|
+
var index = state.index++;
|
|
1055
|
+
if (!target || index >= target.length) {
|
|
1056
|
+
state.target = undefined;
|
|
1057
|
+
return { value: undefined, done: true };
|
|
1058
|
+
}
|
|
1059
|
+
if (kind == 'keys') return { value: index, done: false };
|
|
1060
|
+
if (kind == 'values') return { value: target[index], done: false };
|
|
1061
|
+
return { value: [index, target[index]], done: false };
|
|
1062
|
+
}, 'values');
|
|
1063
|
+
|
|
1064
|
+
// argumentsList[@@iterator] is %ArrayProto_values%
|
|
1065
|
+
// https://tc39.github.io/ecma262/#sec-createunmappedargumentsobject
|
|
1066
|
+
// https://tc39.github.io/ecma262/#sec-createmappedargumentsobject
|
|
1067
|
+
Iterators.Arguments = Iterators.Array;
|
|
1068
|
+
|
|
1069
|
+
// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
|
|
1070
|
+
addToUnscopables('keys');
|
|
1071
|
+
addToUnscopables('values');
|
|
1072
|
+
addToUnscopables('entries');
|
|
1073
|
+
|
|
1074
|
+
// iterable DOM collections
|
|
1075
|
+
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
|
1076
|
+
var domIterables = {
|
|
1077
|
+
CSSRuleList: 0,
|
|
1078
|
+
CSSStyleDeclaration: 0,
|
|
1079
|
+
CSSValueList: 0,
|
|
1080
|
+
ClientRectList: 0,
|
|
1081
|
+
DOMRectList: 0,
|
|
1082
|
+
DOMStringList: 0,
|
|
1083
|
+
DOMTokenList: 1,
|
|
1084
|
+
DataTransferItemList: 0,
|
|
1085
|
+
FileList: 0,
|
|
1086
|
+
HTMLAllCollection: 0,
|
|
1087
|
+
HTMLCollection: 0,
|
|
1088
|
+
HTMLFormElement: 0,
|
|
1089
|
+
HTMLSelectElement: 0,
|
|
1090
|
+
MediaList: 0,
|
|
1091
|
+
MimeTypeArray: 0,
|
|
1092
|
+
NamedNodeMap: 0,
|
|
1093
|
+
NodeList: 1,
|
|
1094
|
+
PaintRequestList: 0,
|
|
1095
|
+
Plugin: 0,
|
|
1096
|
+
PluginArray: 0,
|
|
1097
|
+
SVGLengthList: 0,
|
|
1098
|
+
SVGNumberList: 0,
|
|
1099
|
+
SVGPathSegList: 0,
|
|
1100
|
+
SVGPointList: 0,
|
|
1101
|
+
SVGStringList: 0,
|
|
1102
|
+
SVGTransformList: 0,
|
|
1103
|
+
SourceBufferList: 0,
|
|
1104
|
+
StyleSheetList: 0,
|
|
1105
|
+
TextTrackCueList: 0,
|
|
1106
|
+
TextTrackList: 0,
|
|
1107
|
+
TouchList: 0
|
|
1108
|
+
};
|
|
1109
|
+
|
|
1110
|
+
var global$1 = global$c;
|
|
1111
|
+
var DOMIterables = domIterables;
|
|
1112
|
+
var ArrayIteratorMethods = es_array_iterator;
|
|
1113
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$7;
|
|
1114
|
+
var wellKnownSymbol = wellKnownSymbol$5;
|
|
1115
|
+
|
|
1116
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
1117
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
1118
|
+
var ArrayValues = ArrayIteratorMethods.values;
|
|
1119
|
+
|
|
1120
|
+
for (var COLLECTION_NAME in DOMIterables) {
|
|
1121
|
+
var Collection = global$1[COLLECTION_NAME];
|
|
1122
|
+
var CollectionPrototype = Collection && Collection.prototype;
|
|
1123
|
+
if (CollectionPrototype) {
|
|
1124
|
+
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1125
|
+
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
|
|
1126
|
+
createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
|
|
1127
|
+
} catch (error) {
|
|
1128
|
+
CollectionPrototype[ITERATOR] = ArrayValues;
|
|
1129
|
+
}
|
|
1130
|
+
if (!CollectionPrototype[TO_STRING_TAG]) {
|
|
1131
|
+
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
|
|
1132
|
+
}
|
|
1133
|
+
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
1134
|
+
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1135
|
+
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
1136
|
+
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
1137
|
+
} catch (error) {
|
|
1138
|
+
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
const useDynamicScript = args => {
|
|
1145
|
+
const [ready, setReady] = React.useState(false);
|
|
1146
|
+
const [failed, setFailed] = React.useState(false);
|
|
1147
|
+
React.useEffect(() => {
|
|
1148
|
+
if (!args.url) {
|
|
1149
|
+
return;
|
|
1150
|
+
}
|
|
1151
|
+
const element = document.createElement("script");
|
|
1152
|
+
element.src = args.url;
|
|
1153
|
+
element.type = "module";
|
|
1154
|
+
element.async = true;
|
|
1155
|
+
setReady(false);
|
|
1156
|
+
setFailed(false);
|
|
1157
|
+
element.onload = () => {
|
|
1158
|
+
console.log(`Dynamic Script Loaded: ${args.url}`);
|
|
1159
|
+
setReady(true);
|
|
1160
|
+
};
|
|
1161
|
+
element.onerror = () => {
|
|
1162
|
+
console.error(`Dynamic Script Error: ${args.url}`);
|
|
1163
|
+
setReady(false);
|
|
1164
|
+
setFailed(true);
|
|
1165
|
+
};
|
|
1166
|
+
document.head.appendChild(element);
|
|
1167
|
+
return () => {
|
|
1168
|
+
console.log(`Dynamic Script Removed: ${args.url}`);
|
|
1169
|
+
document.head.removeChild(element);
|
|
1170
|
+
};
|
|
1171
|
+
}, [args.url]);
|
|
1172
|
+
return {
|
|
1173
|
+
ready,
|
|
1174
|
+
failed
|
|
1175
|
+
};
|
|
1176
|
+
};
|
|
1177
|
+
|
|
1178
|
+
function loadComponent(scope, module) {
|
|
1179
|
+
return () => __awaiter(this, void 0, void 0, function* () {
|
|
1180
|
+
// Initializes the share scope. This fills it with known provided modules from this build and all remotes
|
|
1181
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1182
|
+
// @ts-ignore
|
|
1183
|
+
yield __webpack_init_sharing__("default");
|
|
1184
|
+
const container = window[scope]; // or get the container somewhere else
|
|
1185
|
+
// Initialize the container, it may provide shared modules
|
|
1186
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1187
|
+
// @ts-ignore
|
|
1188
|
+
yield container.init(__webpack_share_scopes__.default);
|
|
1189
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1190
|
+
// @ts-ignore
|
|
1191
|
+
const factory = yield window[scope].get(module);
|
|
1192
|
+
const Module = factory();
|
|
1193
|
+
return Module;
|
|
1194
|
+
});
|
|
1195
|
+
}
|
|
1196
|
+
function ModuleLoader(props) {
|
|
1197
|
+
const {
|
|
1198
|
+
ready,
|
|
1199
|
+
failed
|
|
1200
|
+
} = useDynamicScript({
|
|
1201
|
+
url: props.module && props.url
|
|
1202
|
+
});
|
|
1203
|
+
if (!props.url) {
|
|
1204
|
+
return jsx("h2", {
|
|
1205
|
+
children: "Nessuno scope specificato"
|
|
1206
|
+
});
|
|
1207
|
+
}
|
|
1208
|
+
if (!props.module) {
|
|
1209
|
+
return jsx("h2", {
|
|
1210
|
+
children: "Nessun modulo specificato"
|
|
1211
|
+
});
|
|
1212
|
+
}
|
|
1213
|
+
if (!ready) {
|
|
1214
|
+
return jsx(WaitData, {});
|
|
1215
|
+
}
|
|
1216
|
+
if (failed) {
|
|
1217
|
+
return jsxs("h2", {
|
|
1218
|
+
children: ["Errore durante il caricamento del modulo esterno: ", props.url]
|
|
1219
|
+
});
|
|
1220
|
+
}
|
|
1221
|
+
const Component = /*#__PURE__*/React.lazy(loadComponent(props.scope, props.module));
|
|
1222
|
+
return jsx(Suspense, {
|
|
1223
|
+
fallback: jsx(WaitData, {}),
|
|
1224
|
+
children: jsx(Component, {})
|
|
1225
|
+
});
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
export { ModuleLoader };
|
package/package.json
ADDED
package/src/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/module-loader/module-loader';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ModuleLoader(props: any): import("react/jsx-runtime").JSX.Element;
|