empty-piral 0.15.0-beta.4816

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.
@@ -0,0 +1,3069 @@
1
+ /******/ (() => { // webpackBootstrap
2
+ /******/ "use strict";
3
+ /******/ var __webpack_modules__ = ({
4
+
5
+ /***/ "../../framework/piral-base/esm/aggregate.js":
6
+ /*!***************************************************!*\
7
+ !*** ../../framework/piral-base/esm/aggregate.js ***!
8
+ \***************************************************/
9
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10
+
11
+ __webpack_require__.r(__webpack_exports__);
12
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13
+ /* harmony export */ "runPilet": () => (/* binding */ runPilet),
14
+ /* harmony export */ "runPilets": () => (/* binding */ runPilets)
15
+ /* harmony export */ });
16
+ /* harmony import */ var _inspect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./inspect */ "../../framework/piral-base/esm/inspect.js");
17
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
18
+
19
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
20
+
21
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
22
+
23
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
24
+
25
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
26
+
27
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
28
+
29
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
30
+
31
+
32
+ /**
33
+ * Sets up the evaluated pilets to become integrated pilets.
34
+ * @param createApi The function to create an API object for a pilet.
35
+ * @param pilets The available evaluated app pilets.
36
+ * @param hooks The API hooks to apply.
37
+ * @returns The integrated pilets.
38
+ */
39
+
40
+ function runPilets(createApi, pilets) {
41
+ var hooks = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
42
+ var promises = [];
43
+
44
+ if (Array.isArray(pilets)) {
45
+ var _iterator = _createForOfIteratorHelper(pilets),
46
+ _step;
47
+
48
+ try {
49
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
50
+ var pilet = _step.value;
51
+
52
+ var _inspectPilet = (0,_inspect__WEBPACK_IMPORTED_MODULE_0__.inspectPilet)(pilet),
53
+ _inspectPilet2 = _slicedToArray(_inspectPilet, 3),
54
+ setupPilet = _inspectPilet2[2];
55
+
56
+ var wait = setupPilet(pilet, createApi, hooks);
57
+ promises.push(wait);
58
+ }
59
+ } catch (err) {
60
+ _iterator.e(err);
61
+ } finally {
62
+ _iterator.f();
63
+ }
64
+ }
65
+
66
+ return Promise.all(promises).then(function () {
67
+ return pilets;
68
+ });
69
+ }
70
+ /**
71
+ * Sets up an evaluated pilet to become an integrated pilet.
72
+ * @param createApi The function to create an API object for the pilet.
73
+ * @param pilet The available evaluated pilet.
74
+ * @param hooks The API hooks to apply.
75
+ * @returns The integrated pilet.
76
+ */
77
+
78
+ function runPilet(createApi, pilet) {
79
+ var hooks = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
80
+
81
+ var _inspectPilet3 = (0,_inspect__WEBPACK_IMPORTED_MODULE_0__.inspectPilet)(pilet),
82
+ _inspectPilet4 = _slicedToArray(_inspectPilet3, 3),
83
+ setupPilet = _inspectPilet4[2];
84
+
85
+ var wait = setupPilet(pilet, createApi, hooks);
86
+ return wait.then(function () {
87
+ return pilet;
88
+ });
89
+ }
90
+
91
+ /***/ }),
92
+
93
+ /***/ "../../framework/piral-base/esm/api.js":
94
+ /*!*********************************************!*\
95
+ !*** ../../framework/piral-base/esm/api.js ***!
96
+ \*********************************************/
97
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
98
+
99
+ __webpack_require__.r(__webpack_exports__);
100
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
101
+ /* harmony export */ "initializeApi": () => (/* binding */ initializeApi),
102
+ /* harmony export */ "mergeApis": () => (/* binding */ mergeApis)
103
+ /* harmony export */ });
104
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../../node_modules/tslib/tslib.es6.js");
105
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
106
+
107
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
108
+
109
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
110
+
111
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
112
+
113
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
114
+
115
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
116
+
117
+
118
+ function initializeApi(target, events) {
119
+ return {
120
+ on: events.on,
121
+ off: events.off,
122
+ emit: events.emit,
123
+ meta: (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__assign)({}, target)
124
+ };
125
+ }
126
+ function mergeApis(api, extenders, target) {
127
+ var frags = extenders.map(function (extender) {
128
+ return extender(api, target);
129
+ });
130
+
131
+ tslib__WEBPACK_IMPORTED_MODULE_0__.__assign.apply(void 0, [api].concat(_toConsumableArray(frags)));
132
+
133
+ return api;
134
+ }
135
+
136
+ /***/ }),
137
+
138
+ /***/ "../../framework/piral-base/esm/create.js":
139
+ /*!************************************************!*\
140
+ !*** ../../framework/piral-base/esm/create.js ***!
141
+ \************************************************/
142
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
143
+
144
+ __webpack_require__.r(__webpack_exports__);
145
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
146
+ /* harmony export */ "startLoadingPilets": () => (/* binding */ startLoadingPilets)
147
+ /* harmony export */ });
148
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "../../framework/piral-base/esm/utils/helpers.js");
149
+ /* harmony import */ var _strategies__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./strategies */ "../../framework/piral-base/esm/strategies.js");
150
+
151
+
152
+ function startLoadingPilets(options) {
153
+ var state = {
154
+ loaded: false,
155
+ pilets: [],
156
+ error: undefined
157
+ };
158
+ var notifiers = [];
159
+
160
+ var call = function call(notifier) {
161
+ return notifier(state.error, state.pilets, state.loaded);
162
+ };
163
+
164
+ var notify = function notify() {
165
+ return notifiers.forEach(call);
166
+ };
167
+
168
+ var setPilets = function setPilets(error, pilets) {
169
+ state.error = error;
170
+ state.pilets = pilets;
171
+ notify();
172
+ };
173
+
174
+ var setLoaded = function setLoaded() {
175
+ state.loaded = true;
176
+ notify();
177
+ };
178
+
179
+ var _options$strategy = options.strategy,
180
+ strategy = _options$strategy === void 0 ? _strategies__WEBPACK_IMPORTED_MODULE_0__.standardStrategy : _options$strategy;
181
+ strategy(options, setPilets).then(setLoaded, setLoaded);
182
+ return {
183
+ connect: function connect(notifier) {
184
+ if ((0,_utils__WEBPACK_IMPORTED_MODULE_1__.isfunc)(notifier)) {
185
+ notifiers.push(notifier);
186
+ call(notifier);
187
+ }
188
+ },
189
+ disconnect: function disconnect(notifier) {
190
+ var index = notifiers.indexOf(notifier);
191
+ index !== -1 && notifiers.splice(index, 1);
192
+ }
193
+ };
194
+ }
195
+
196
+ /***/ }),
197
+
198
+ /***/ "../../framework/piral-base/esm/events.js":
199
+ /*!************************************************!*\
200
+ !*** ../../framework/piral-base/esm/events.js ***!
201
+ \************************************************/
202
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
203
+
204
+ __webpack_require__.r(__webpack_exports__);
205
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
206
+ /* harmony export */ "createListener": () => (/* binding */ createListener)
207
+ /* harmony export */ });
208
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
209
+
210
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
211
+
212
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
213
+
214
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
215
+
216
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
217
+
218
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
219
+
220
+ function nameOf(type) {
221
+ return "piral-".concat(type);
222
+ }
223
+ /**
224
+ * Creates a new Piral app shell event emitter.
225
+ * Uses a custom event dispatcher with a state for usage control.
226
+ * @param state The optional state object to identify the instance.
227
+ * @returns The event emitter.
228
+ */
229
+
230
+
231
+ function createListener() {
232
+ var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
233
+ var eventListeners = [];
234
+ return {
235
+ on: function on(type, callback) {
236
+ var listener = function listener(_ref) {
237
+ var detail = _ref.detail;
238
+ return detail && detail.state === state && callback(detail.arg);
239
+ };
240
+
241
+ document.body.addEventListener(nameOf(type), listener);
242
+ eventListeners.push([callback, listener]);
243
+ return this;
244
+ },
245
+ off: function off(type, callback) {
246
+ var _eventListeners$filte = eventListeners.filter(function (m) {
247
+ return m[0] === callback;
248
+ }),
249
+ _eventListeners$filte2 = _slicedToArray(_eventListeners$filte, 1),
250
+ listener = _eventListeners$filte2[0];
251
+
252
+ if (listener) {
253
+ document.body.removeEventListener(nameOf(type), listener[1]);
254
+ eventListeners.splice(eventListeners.indexOf(listener), 1);
255
+ }
256
+
257
+ return this;
258
+ },
259
+ emit: function emit(type, arg) {
260
+ var ce = document.createEvent('CustomEvent');
261
+ ce.initCustomEvent(nameOf(type), false, false, {
262
+ arg: arg,
263
+ state: state
264
+ });
265
+ document.body.dispatchEvent(ce);
266
+ return this;
267
+ }
268
+ };
269
+ }
270
+
271
+ /***/ }),
272
+
273
+ /***/ "../../framework/piral-base/esm/inspect.js":
274
+ /*!*************************************************!*\
275
+ !*** ../../framework/piral-base/esm/inspect.js ***!
276
+ \*************************************************/
277
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
278
+
279
+ __webpack_require__.r(__webpack_exports__);
280
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
281
+ /* harmony export */ "inspectPilet": () => (/* binding */ inspectPilet)
282
+ /* harmony export */ });
283
+ /* harmony import */ var _lifecycle__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./lifecycle */ "../../framework/piral-base/esm/lifecycle/setup.js");
284
+
285
+ function inspectPilet(meta) {
286
+ var inBrowser = typeof document !== 'undefined';
287
+
288
+ if (inBrowser && 'link' in meta && meta.spec === 'v2') {
289
+ return ['v2', meta, _lifecycle__WEBPACK_IMPORTED_MODULE_0__.setupSinglePilet];
290
+ } else if (inBrowser && 'requireRef' in meta && meta.spec !== 'v2') {
291
+ return ['v1', meta, _lifecycle__WEBPACK_IMPORTED_MODULE_0__.setupSinglePilet];
292
+ } else if (inBrowser && 'bundle' in meta && meta.bundle) {
293
+ return ['bundle', meta, _lifecycle__WEBPACK_IMPORTED_MODULE_0__.setupPiletBundle];
294
+ } else if ('hash' in meta) {
295
+ return ['v0', meta, _lifecycle__WEBPACK_IMPORTED_MODULE_0__.setupSinglePilet];
296
+ } else {
297
+ return ['unknown', meta, _lifecycle__WEBPACK_IMPORTED_MODULE_0__.setupSinglePilet];
298
+ }
299
+ }
300
+
301
+ /***/ }),
302
+
303
+ /***/ "../../framework/piral-base/esm/lifecycle/cleanup.js":
304
+ /*!***********************************************************!*\
305
+ !*** ../../framework/piral-base/esm/lifecycle/cleanup.js ***!
306
+ \***********************************************************/
307
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
308
+
309
+ __webpack_require__.r(__webpack_exports__);
310
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
311
+ /* harmony export */ "prepareCleanup": () => (/* binding */ prepareCleanup),
312
+ /* harmony export */ "runCleanup": () => (/* binding */ runCleanup)
313
+ /* harmony export */ });
314
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils */ "../../framework/piral-base/esm/utils/helpers.js");
315
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils */ "../../framework/piral-base/esm/utils/system.js");
316
+
317
+ var evtName = 'unload-pilet';
318
+ /**
319
+ * Cleans up the pilet by destroying the referenced stylesheets and
320
+ * running the cleanup steps incl. deletion of referenced global
321
+ * resources.
322
+ * @param app The pilet to be cleaned up.
323
+ * @param api The api for the pilet to be used.
324
+ * @param hooks The hooks to use in the cleanup process.
325
+ */
326
+
327
+ function runCleanup(app, api, hooks) {
328
+ var css = document.querySelector("link[data-origin=".concat(JSON.stringify(app.name), "]"));
329
+ var url = app.basePath;
330
+ css === null || css === void 0 ? void 0 : css.remove();
331
+ (0,_utils__WEBPACK_IMPORTED_MODULE_0__.callfunc)(app.teardown, api);
332
+ (0,_utils__WEBPACK_IMPORTED_MODULE_0__.callfunc)(hooks.cleanupPilet, app); // check if this was actually set up using a require reference
333
+
334
+ if ('requireRef' in app) {
335
+ var depName = app.requireRef;
336
+ delete window[depName];
337
+ } // remove the pilet's evaluated modules from SystemJS (except the shared dependencies)
338
+
339
+
340
+ if (url) {
341
+ var dependencies = Object.keys(app.dependencies || {}).map(function (m) {
342
+ return app.dependencies[m];
343
+ });
344
+ (0,_utils__WEBPACK_IMPORTED_MODULE_1__.unregisterModules)(url, dependencies);
345
+ }
346
+ }
347
+ /**
348
+ * Prepares the cleanup of a pilet by wiring up a handler to the
349
+ * unload event.
350
+ * @param app The pilet to be prepared for cleanup.
351
+ * @param api The api for the pilet to be used.
352
+ * @param hooks The hooks to use in the cleanup process.
353
+ */
354
+
355
+ function prepareCleanup(app, api, hooks) {
356
+ var handler = function handler(e) {
357
+ if (e.name === app.name) {
358
+ api.off(evtName, handler);
359
+ runCleanup(app, api, hooks);
360
+ }
361
+ };
362
+
363
+ api.on(evtName, handler);
364
+ }
365
+
366
+ /***/ }),
367
+
368
+ /***/ "../../framework/piral-base/esm/lifecycle/setup.js":
369
+ /*!*********************************************************!*\
370
+ !*** ../../framework/piral-base/esm/lifecycle/setup.js ***!
371
+ \*********************************************************/
372
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
373
+
374
+ __webpack_require__.r(__webpack_exports__);
375
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
376
+ /* harmony export */ "setupPiletBundle": () => (/* binding */ setupPiletBundle),
377
+ /* harmony export */ "setupSinglePilet": () => (/* binding */ setupSinglePilet)
378
+ /* harmony export */ });
379
+ /* harmony import */ var _cleanup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cleanup */ "../../framework/piral-base/esm/lifecycle/cleanup.js");
380
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils */ "../../framework/piral-base/esm/utils/helpers.js");
381
+
382
+
383
+
384
+ function logError(name, e) {
385
+ console.error("Error while setting up ".concat(name, "."), e);
386
+ }
387
+
388
+ function withCatch(result, name) {
389
+ if (result instanceof Promise) {
390
+ return result["catch"](function (e) {
391
+ return logError(name, e);
392
+ });
393
+ }
394
+
395
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.promisify)(result);
396
+ }
397
+ /**
398
+ * Sets up the given single pilet by calling the exported `setup`
399
+ * function on the pilet with the created API.
400
+ * @param app The pilet's evaluated content.
401
+ * @param apiFactory The API factory to be used in the pilet.
402
+ * @param hooks The API hooks to apply.
403
+ */
404
+
405
+
406
+ function setupSinglePilet(app, apiFactory, hooks) {
407
+ var name = app === null || app === void 0 ? void 0 : app.name;
408
+
409
+ try {
410
+ var api = apiFactory(app);
411
+ (0,_utils__WEBPACK_IMPORTED_MODULE_0__.callfunc)(hooks.setupPilet, app);
412
+ var result = app.setup(api);
413
+ (0,_cleanup__WEBPACK_IMPORTED_MODULE_1__.prepareCleanup)(app, api, hooks);
414
+ return withCatch(result, name);
415
+ } catch (e) {
416
+ logError(name, e);
417
+ }
418
+
419
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.promisify)();
420
+ }
421
+ /**
422
+ * Sets up the given multi pilet by calling the exported `setup`
423
+ * function on the pilet with the API factory.
424
+ * @param app The pilet's evaluated content.
425
+ * @param apiFactory The API factory to be used in the bundle.
426
+ * @param hooks The API hooks to apply.
427
+ */
428
+
429
+ function setupPiletBundle(app, apiFactory, hooks) {
430
+ var name = (app === null || app === void 0 ? void 0 : app.name) || 'pilet bundle';
431
+
432
+ try {
433
+ (0,_utils__WEBPACK_IMPORTED_MODULE_0__.callfunc)(hooks.setupPilet, app);
434
+ var result = app.setup(apiFactory);
435
+ return withCatch(result, name);
436
+ } catch (e) {
437
+ logError(name, e);
438
+ }
439
+
440
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.promisify)();
441
+ }
442
+
443
+ /***/ }),
444
+
445
+ /***/ "../../framework/piral-base/esm/load.js":
446
+ /*!**********************************************!*\
447
+ !*** ../../framework/piral-base/esm/load.js ***!
448
+ \**********************************************/
449
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
450
+
451
+ __webpack_require__.r(__webpack_exports__);
452
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
453
+ /* harmony export */ "loadMetadata": () => (/* binding */ loadMetadata),
454
+ /* harmony export */ "loadPilets": () => (/* binding */ loadPilets)
455
+ /* harmony export */ });
456
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "../../framework/piral-base/esm/utils/helpers.js");
457
+
458
+
459
+ function checkFetchPilets(fetchPilets) {
460
+ if (!(0,_utils__WEBPACK_IMPORTED_MODULE_0__.isfunc)(fetchPilets)) {
461
+ console.error('Could not get the pilets. Provide a valid `fetchPilets` function.');
462
+ return false;
463
+ }
464
+
465
+ return true;
466
+ }
467
+ /**
468
+ * Loads the pilets metadata and puts them in the cache, if provided.
469
+ * @param fetchPilets The function to resolve the pilets.
470
+ * @param cache The optional cache to use initially and update later.
471
+ */
472
+
473
+
474
+ function loadMetadata(fetchPilets) {
475
+ if (checkFetchPilets(fetchPilets)) {
476
+ return fetchPilets().then(function (pilets) {
477
+ if (!Array.isArray(pilets)) {
478
+ throw new Error('The fetched pilets metadata is not an array.');
479
+ }
480
+
481
+ return pilets.map(function (meta) {
482
+ return Object.assign({}, meta);
483
+ });
484
+ });
485
+ }
486
+
487
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.promisify)([]);
488
+ }
489
+ /**
490
+ * Loads the pilets by first getting them, then evaluating the raw content.
491
+ * @param fetchPilets The function to resolve the pilets.
492
+ * @param fetchDependency A function to fetch the dependencies. By default, `fetch` is used.
493
+ * @param dependencies The availablly global dependencies, if any.
494
+ * @returns A promise leading to the evaluated pilets.
495
+ */
496
+
497
+ function loadPilets(fetchPilets, loadPilet) {
498
+ return loadMetadata(fetchPilets).then(function (pilets) {
499
+ return Promise.all(pilets.map(loadPilet));
500
+ });
501
+ }
502
+
503
+ /***/ }),
504
+
505
+ /***/ "../../framework/piral-base/esm/loader.js":
506
+ /*!************************************************!*\
507
+ !*** ../../framework/piral-base/esm/loader.js ***!
508
+ \************************************************/
509
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
510
+
511
+ __webpack_require__.r(__webpack_exports__);
512
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
513
+ /* harmony export */ "extendLoader": () => (/* binding */ extendLoader),
514
+ /* harmony export */ "getDefaultLoader": () => (/* binding */ getDefaultLoader)
515
+ /* harmony export */ });
516
+ /* harmony import */ var _loaders_bundle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./loaders/bundle */ "../../framework/piral-base/esm/loaders/bundle/index.js");
517
+ /* harmony import */ var _loaders_empty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./loaders/empty */ "../../framework/piral-base/esm/loaders/empty/index.js");
518
+ /* harmony import */ var _loaders_v0__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./loaders/v0 */ "../../framework/piral-base/esm/loaders/v0/index.js");
519
+ /* harmony import */ var _loaders_v1__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./loaders/v1 */ "../../framework/piral-base/esm/loaders/v1/index.js");
520
+ /* harmony import */ var _loaders_v2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./loaders/v2 */ "../../framework/piral-base/esm/loaders/v2/index.js");
521
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "../../framework/piral-base/esm/utils/helpers.js");
522
+ /* harmony import */ var _inspect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./inspect */ "../../framework/piral-base/esm/inspect.js");
523
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
524
+
525
+
526
+
527
+
528
+
529
+
530
+
531
+
532
+ /**
533
+ * Extends the default loader with the spec loaders, if any are given.
534
+ * @param fallback The loader to use if none of the spec loaders matches.
535
+ * @param specLoaders The spec loaders to use.
536
+ * @returns The loader.
537
+ */
538
+
539
+ function extendLoader(fallback, specLoaders) {
540
+ if (_typeof(specLoaders) === 'object' && specLoaders) {
541
+ return function (meta) {
542
+ if (typeof meta.spec === 'string') {
543
+ var loaderOverride = specLoaders[meta.spec];
544
+
545
+ if ((0,_utils__WEBPACK_IMPORTED_MODULE_0__.isfunc)(loaderOverride)) {
546
+ return loaderOverride(meta);
547
+ }
548
+ }
549
+
550
+ return fallback(meta);
551
+ };
552
+ }
553
+
554
+ return fallback;
555
+ }
556
+ /**
557
+ * Gets the default loader provided by piral-base.
558
+ * @param config The loader configuration.
559
+ * @returns The function to load a pilet from its entry.
560
+ */
561
+
562
+ function getDefaultLoader() {
563
+ var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
564
+ return function (result) {
565
+ var r = (0,_inspect__WEBPACK_IMPORTED_MODULE_1__.inspectPilet)(result);
566
+
567
+ switch (r[0]) {
568
+ case 'v2':
569
+ return (0,_loaders_v2__WEBPACK_IMPORTED_MODULE_2__["default"])(r[1], config);
570
+
571
+ case 'v1':
572
+ return (0,_loaders_v1__WEBPACK_IMPORTED_MODULE_3__["default"])(r[1], config);
573
+
574
+ case 'v0':
575
+ return (0,_loaders_v0__WEBPACK_IMPORTED_MODULE_4__["default"])(r[1], config);
576
+
577
+ case 'bundle':
578
+ return (0,_loaders_bundle__WEBPACK_IMPORTED_MODULE_5__["default"])(r[1], config);
579
+
580
+ default:
581
+ return (0,_loaders_empty__WEBPACK_IMPORTED_MODULE_6__["default"])(r[1], config);
582
+ }
583
+ };
584
+ }
585
+
586
+ /***/ }),
587
+
588
+ /***/ "../../framework/piral-base/esm/loaders/bundle/dependency.js":
589
+ /*!*******************************************************************!*\
590
+ !*** ../../framework/piral-base/esm/loaders/bundle/dependency.js ***!
591
+ \*******************************************************************/
592
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
593
+
594
+ __webpack_require__.r(__webpack_exports__);
595
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
596
+ /* harmony export */ "includeBundle": () => (/* binding */ includeBundle)
597
+ /* harmony export */ });
598
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils */ "../../framework/piral-base/esm/utils/dependency.js");
599
+
600
+ /**
601
+ * Includes the given bundle script via its URL with a dependency resolution.
602
+ * @param meta The meta data of the dependency to include.
603
+ * @param crossOrigin The override for the cross-origin attribute.
604
+ * @returns The evaluated module.
605
+ */
606
+
607
+ function includeBundle(meta, crossOrigin) {
608
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.includeScript)(meta.bundle, meta.link, meta.integrity, crossOrigin);
609
+ }
610
+
611
+ /***/ }),
612
+
613
+ /***/ "../../framework/piral-base/esm/loaders/bundle/index.js":
614
+ /*!**************************************************************!*\
615
+ !*** ../../framework/piral-base/esm/loaders/bundle/index.js ***!
616
+ \**************************************************************/
617
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
618
+
619
+ __webpack_require__.r(__webpack_exports__);
620
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
621
+ /* harmony export */ "default": () => (/* binding */ loader)
622
+ /* harmony export */ });
623
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../../node_modules/tslib/tslib.es6.js");
624
+ /* harmony import */ var _dependency__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dependency */ "../../framework/piral-base/esm/loaders/bundle/dependency.js");
625
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils */ "../../framework/piral-base/esm/utils/load.js");
626
+
627
+
628
+
629
+ /**
630
+ * Loads the provided UMD-powered pilet.
631
+ * @param entry The pilet's entry.
632
+ * @param config The configuration for loading the pilet.
633
+ * @returns The evaluated pilet that can now be integrated.
634
+ */
635
+
636
+ function loader(entry, config) {
637
+ var _entry$dependencies = entry.dependencies,
638
+ dependencies = _entry$dependencies === void 0 ? {} : _entry$dependencies,
639
+ _entry$spec = entry.spec,
640
+ spec = _entry$spec === void 0 ? 'v1' : _entry$spec,
641
+ _entry$name = entry.name,
642
+ name = _entry$name === void 0 ? "[bundle] ".concat(entry.link) : _entry$name,
643
+ rest = (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__rest)(entry, ["dependencies", "spec", "name"]);
644
+
645
+ var meta = Object.assign({
646
+ name: name,
647
+ version: '',
648
+ config: {},
649
+ spec: spec,
650
+ dependencies: dependencies
651
+ }, rest);
652
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_1__.loadFrom)(meta, function () {
653
+ return (0,_dependency__WEBPACK_IMPORTED_MODULE_2__.includeBundle)(entry, config.crossOrigin);
654
+ });
655
+ }
656
+
657
+ /***/ }),
658
+
659
+ /***/ "../../framework/piral-base/esm/loaders/empty/index.js":
660
+ /*!*************************************************************!*\
661
+ !*** ../../framework/piral-base/esm/loaders/empty/index.js ***!
662
+ \*************************************************************/
663
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
664
+
665
+ __webpack_require__.r(__webpack_exports__);
666
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
667
+ /* harmony export */ "default": () => (/* binding */ loader)
668
+ /* harmony export */ });
669
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../../node_modules/tslib/tslib.es6.js");
670
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils */ "../../framework/piral-base/esm/utils/helpers.js");
671
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils */ "../../framework/piral-base/esm/utils/dependency.js");
672
+
673
+
674
+ /**
675
+ * Loads an empty pilet as a placeholder (something went wrong beforehand).
676
+ * @param entry The pilet's entry.
677
+ * @param _config The loader configuration.
678
+ * @returns The evaluated pilet that can now be integrated.
679
+ */
680
+
681
+ function loader(entry, _config) {
682
+ var name = entry.name,
683
+ _entry$spec = entry.spec,
684
+ spec = _entry$spec === void 0 ? 'vx' : _entry$spec,
685
+ _entry$dependencies = entry.dependencies,
686
+ dependencies = _entry$dependencies === void 0 ? {} : _entry$dependencies,
687
+ rest = (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__rest)(entry, ["name", "spec", "dependencies"]);
688
+
689
+ var meta = Object.assign({
690
+ name: name,
691
+ version: '',
692
+ spec: spec,
693
+ dependencies: dependencies,
694
+ config: {},
695
+ link: '',
696
+ basePath: ''
697
+ }, rest);
698
+ console.warn('Empty pilet found!', name);
699
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_1__.promisify)(Object.assign(Object.assign({}, meta), _utils__WEBPACK_IMPORTED_MODULE_2__.emptyApp));
700
+ }
701
+
702
+ /***/ }),
703
+
704
+ /***/ "../../framework/piral-base/esm/loaders/v0/dependency.js":
705
+ /*!***************************************************************!*\
706
+ !*** ../../framework/piral-base/esm/loaders/v0/dependency.js ***!
707
+ \***************************************************************/
708
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
709
+
710
+ __webpack_require__.r(__webpack_exports__);
711
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
712
+ /* harmony export */ "evalDependency": () => (/* binding */ evalDependency)
713
+ /* harmony export */ });
714
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils */ "../../framework/piral-base/esm/utils/system.js");
715
+
716
+ /**
717
+ * Compiles the given content from a generic dependency.
718
+ * @param name The name of the dependency to compile.
719
+ * @param content The content of the dependency to compile.
720
+ * @param link The optional link to the dependency.
721
+ * @returns The evaluated dependency.
722
+ */
723
+
724
+ function evalDependency(name, content) {
725
+ var link = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
726
+ var mod = {
727
+ exports: {}
728
+ };
729
+
730
+ try {
731
+ var sourceUrl = link && "\n//# sourceURL=".concat(link);
732
+ var importer = new Function('module', 'exports', 'require', content + sourceUrl);
733
+ var parent = link || name;
734
+
735
+ var require = function require(moduleId) {
736
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.requireModule)(moduleId, parent);
737
+ };
738
+
739
+ importer(mod, mod.exports, require);
740
+ } catch (e) {
741
+ console.error("Error while evaluating ".concat(name, "."), e);
742
+ }
743
+
744
+ return mod.exports;
745
+ }
746
+
747
+ /***/ }),
748
+
749
+ /***/ "../../framework/piral-base/esm/loaders/v0/fetch.js":
750
+ /*!**********************************************************!*\
751
+ !*** ../../framework/piral-base/esm/loaders/v0/fetch.js ***!
752
+ \**********************************************************/
753
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
754
+
755
+ __webpack_require__.r(__webpack_exports__);
756
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
757
+ /* harmony export */ "fetchDependency": () => (/* binding */ fetchDependency)
758
+ /* harmony export */ });
759
+ /**
760
+ * Uses the `fetch` function (must be available). If you
761
+ * use this function make sure to use, e.g., `whatwg-fetch`
762
+ * which comes with polyfills for older browsers.
763
+ * @param url The URL to GET.
764
+ * @returns A promise leading to the raw text content.
765
+ */
766
+ function fetchDependency(url) {
767
+ return fetch(url, {
768
+ method: 'GET',
769
+ cache: 'force-cache'
770
+ }).then(function (m) {
771
+ return m.text();
772
+ });
773
+ }
774
+
775
+ /***/ }),
776
+
777
+ /***/ "../../framework/piral-base/esm/loaders/v0/index.js":
778
+ /*!**********************************************************!*\
779
+ !*** ../../framework/piral-base/esm/loaders/v0/index.js ***!
780
+ \**********************************************************/
781
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
782
+
783
+ __webpack_require__.r(__webpack_exports__);
784
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
785
+ /* harmony export */ "default": () => (/* binding */ loader)
786
+ /* harmony export */ });
787
+ /* harmony import */ var _fetch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./fetch */ "../../framework/piral-base/esm/loaders/v0/fetch.js");
788
+ /* harmony import */ var _dependency__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dependency */ "../../framework/piral-base/esm/loaders/v0/dependency.js");
789
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils */ "../../framework/piral-base/esm/utils/load.js");
790
+
791
+
792
+
793
+ /**
794
+ * Loads a legacy (v0) or invalid pilet.
795
+ * @param entry The pilet's entry.
796
+ * @param _config The loader configuration.
797
+ * @returns The evaluated pilet that can now be integrated.
798
+ */
799
+
800
+ function loader(entry, _config) {
801
+ var name = entry.name,
802
+ _entry$config = entry.config,
803
+ config = _entry$config === void 0 ? {} : _entry$config,
804
+ _entry$dependencies = entry.dependencies,
805
+ dependencies = _entry$dependencies === void 0 ? {} : _entry$dependencies,
806
+ _entry$spec = entry.spec,
807
+ spec = _entry$spec === void 0 ? 'v0' : _entry$spec;
808
+ var meta = Object.assign({
809
+ name: name,
810
+ config: config,
811
+ dependencies: dependencies,
812
+ spec: spec,
813
+ link: ''
814
+ }, entry);
815
+
816
+ if ('link' in entry && entry.link) {
817
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.loadFrom)(meta, function () {
818
+ return (0,_fetch__WEBPACK_IMPORTED_MODULE_1__.fetchDependency)(entry.link).then(function (content) {
819
+ return (0,_dependency__WEBPACK_IMPORTED_MODULE_2__.evalDependency)(name, content, entry.link);
820
+ });
821
+ });
822
+ } else {
823
+ var content = 'content' in entry && entry.content || '';
824
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.loadFrom)(meta, function () {
825
+ return (0,_dependency__WEBPACK_IMPORTED_MODULE_2__.evalDependency)(name, content, undefined);
826
+ });
827
+ }
828
+ }
829
+
830
+ /***/ }),
831
+
832
+ /***/ "../../framework/piral-base/esm/loaders/v1/dependency.js":
833
+ /*!***************************************************************!*\
834
+ !*** ../../framework/piral-base/esm/loaders/v1/dependency.js ***!
835
+ \***************************************************************/
836
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
837
+
838
+ __webpack_require__.r(__webpack_exports__);
839
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
840
+ /* harmony export */ "includeDependency": () => (/* binding */ includeDependency)
841
+ /* harmony export */ });
842
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils */ "../../framework/piral-base/esm/utils/dependency.js");
843
+
844
+ /**
845
+ * Includes the given single pilet script via its URL with a dependency resolution.
846
+ * @param entry The data of the dependency to include.
847
+ * @param crossOrigin The override for the cross-origin attribute.
848
+ * @returns The evaluated module.
849
+ */
850
+
851
+ function includeDependency(entry, crossOrigin) {
852
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.includeScript)(entry.requireRef, entry.link, entry.integrity, crossOrigin);
853
+ }
854
+
855
+ /***/ }),
856
+
857
+ /***/ "../../framework/piral-base/esm/loaders/v1/index.js":
858
+ /*!**********************************************************!*\
859
+ !*** ../../framework/piral-base/esm/loaders/v1/index.js ***!
860
+ \**********************************************************/
861
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
862
+
863
+ __webpack_require__.r(__webpack_exports__);
864
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
865
+ /* harmony export */ "default": () => (/* binding */ loader)
866
+ /* harmony export */ });
867
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../../node_modules/tslib/tslib.es6.js");
868
+ /* harmony import */ var _dependency__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dependency */ "../../framework/piral-base/esm/loaders/v1/dependency.js");
869
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils */ "../../framework/piral-base/esm/utils/load.js");
870
+
871
+
872
+
873
+ /**
874
+ * Loads the provided UMD-powered pilet.
875
+ * @param entry The pilet's entry.
876
+ * @param config The configuration for loading the pilet.
877
+ * @returns The evaluated pilet that can now be integrated.
878
+ */
879
+
880
+ function loader(entry, config) {
881
+ var _entry$dependencies = entry.dependencies,
882
+ dependencies = _entry$dependencies === void 0 ? {} : _entry$dependencies,
883
+ _entry$spec = entry.spec,
884
+ spec = _entry$spec === void 0 ? 'v1' : _entry$spec,
885
+ rest = (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__rest)(entry, ["dependencies", "spec"]);
886
+
887
+ var meta = Object.assign({
888
+ dependencies: dependencies,
889
+ config: {},
890
+ spec: spec
891
+ }, rest);
892
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_1__.loadFrom)(meta, function () {
893
+ return (0,_dependency__WEBPACK_IMPORTED_MODULE_2__.includeDependency)(entry, config.crossOrigin);
894
+ });
895
+ }
896
+
897
+ /***/ }),
898
+
899
+ /***/ "../../framework/piral-base/esm/loaders/v2/index.js":
900
+ /*!**********************************************************!*\
901
+ !*** ../../framework/piral-base/esm/loaders/v2/index.js ***!
902
+ \**********************************************************/
903
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
904
+
905
+ __webpack_require__.r(__webpack_exports__);
906
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
907
+ /* harmony export */ "default": () => (/* binding */ loader)
908
+ /* harmony export */ });
909
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "../../../node_modules/tslib/tslib.es6.js");
910
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils */ "../../framework/piral-base/esm/utils/system.js");
911
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils */ "../../framework/piral-base/esm/utils/dependency.js");
912
+
913
+
914
+
915
+ function extendSharedDependencies(dependencies) {
916
+ for (var _i = 0, _Object$keys = Object.keys(dependencies); _i < _Object$keys.length; _i++) {
917
+ var name = _Object$keys[_i];
918
+
919
+ if (!System.has(name)) {
920
+ (function () {
921
+ var dependency = dependencies[name];
922
+ (0,_utils__WEBPACK_IMPORTED_MODULE_0__.registerModule)(name, function () {
923
+ return System["import"](dependency);
924
+ });
925
+ })();
926
+ }
927
+ }
928
+ }
929
+
930
+ function handleFailure(error, link) {
931
+ console.error('Failed to load SystemJS module', link, error);
932
+ return _utils__WEBPACK_IMPORTED_MODULE_1__.emptyApp;
933
+ }
934
+ /**
935
+ * Loads the provided SystemJS-powered pilet.
936
+ * @param entry The pilet's entry.
937
+ * @param _config The loader configuration.
938
+ * @returns The evaluated pilet that can now be integrated.
939
+ */
940
+
941
+
942
+ function loader(entry, _config) {
943
+ var _entry$dependencies = entry.dependencies,
944
+ dependencies = _entry$dependencies === void 0 ? {} : _entry$dependencies,
945
+ _entry$config = entry.config,
946
+ config = _entry$config === void 0 ? {} : _entry$config,
947
+ link = entry.link,
948
+ rest = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(entry, ["dependencies", "config", "link"]);
949
+
950
+ var meta = Object.assign({
951
+ dependencies: dependencies,
952
+ config: config,
953
+ link: link
954
+ }, rest);
955
+ extendSharedDependencies(dependencies);
956
+ return System["import"](link)["catch"](function (error) {
957
+ return handleFailure(error, link);
958
+ }).then(function (app) {
959
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_1__.createEvaluatedPilet)(meta, app);
960
+ });
961
+ }
962
+
963
+ /***/ }),
964
+
965
+ /***/ "../../framework/piral-base/esm/strategies.js":
966
+ /*!****************************************************!*\
967
+ !*** ../../framework/piral-base/esm/strategies.js ***!
968
+ \****************************************************/
969
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
970
+
971
+ __webpack_require__.r(__webpack_exports__);
972
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
973
+ /* harmony export */ "asyncStrategy": () => (/* binding */ asyncStrategy),
974
+ /* harmony export */ "blazingStrategy": () => (/* binding */ blazingStrategy),
975
+ /* harmony export */ "createDeferredStrategy": () => (/* binding */ createDeferredStrategy),
976
+ /* harmony export */ "createProgressiveStrategy": () => (/* binding */ createProgressiveStrategy),
977
+ /* harmony export */ "standardStrategy": () => (/* binding */ standardStrategy),
978
+ /* harmony export */ "syncStrategy": () => (/* binding */ syncStrategy)
979
+ /* harmony export */ });
980
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "../../framework/piral-base/esm/utils/dependency.js");
981
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils */ "../../framework/piral-base/esm/utils/system.js");
982
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ "../../framework/piral-base/esm/utils/helpers.js");
983
+ /* harmony import */ var _load__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./load */ "../../framework/piral-base/esm/load.js");
984
+ /* harmony import */ var _loader__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./loader */ "../../framework/piral-base/esm/loader.js");
985
+ /* harmony import */ var _aggregate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./aggregate */ "../../framework/piral-base/esm/aggregate.js");
986
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
987
+
988
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
989
+
990
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
991
+
992
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
993
+
994
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
995
+
996
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
997
+
998
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
999
+
1000
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
1001
+
1002
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
1003
+
1004
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
1005
+
1006
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
1007
+
1008
+
1009
+
1010
+
1011
+
1012
+
1013
+ function runAll(createApi, existingPilets, additionalPilets, hooks) {
1014
+ if (!Array.isArray(existingPilets)) {
1015
+ return Promise.reject("The existing pilets must be passed as an array.");
1016
+ }
1017
+
1018
+ if (!(0,_utils__WEBPACK_IMPORTED_MODULE_0__.checkCreateApi)(createApi)) {
1019
+ return Promise.resolve([]);
1020
+ }
1021
+
1022
+ try {
1023
+ var _iterator = _createForOfIteratorHelper(existingPilets),
1024
+ _step;
1025
+
1026
+ try {
1027
+ var _loop = function _loop() {
1028
+ var existing = _step.value;
1029
+ var name = existing.name;
1030
+
1031
+ var _additionalPilets$fil = additionalPilets.filter(function (pilet) {
1032
+ return pilet.name === name;
1033
+ }),
1034
+ _additionalPilets$fil2 = _slicedToArray(_additionalPilets$fil, 1),
1035
+ newPilet = _additionalPilets$fil2[0];
1036
+
1037
+ if (newPilet) {
1038
+ additionalPilets.splice(additionalPilets.indexOf(newPilet), 1);
1039
+ }
1040
+ };
1041
+
1042
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
1043
+ _loop();
1044
+ }
1045
+ } catch (err) {
1046
+ _iterator.e(err);
1047
+ } finally {
1048
+ _iterator.f();
1049
+ }
1050
+
1051
+ var pilets = [].concat(_toConsumableArray(existingPilets), _toConsumableArray(additionalPilets));
1052
+ return (0,_aggregate__WEBPACK_IMPORTED_MODULE_1__.runPilets)(createApi, pilets, hooks);
1053
+ } catch (err) {
1054
+ return Promise.reject(err);
1055
+ }
1056
+ }
1057
+ /**
1058
+ * This strategy is dependent on the async parameter. If false it will start rendering when
1059
+ * everything has been received, otherwise it will start rendering when the metadata has been
1060
+ * received. In any case it will evaluate pilets as fast as possible.
1061
+ * @param async Uses the asynchronous mode.
1062
+ */
1063
+
1064
+
1065
+ function createProgressiveStrategy(async) {
1066
+ return function (options, cb) {
1067
+ var fetchPilets = options.fetchPilets,
1068
+ _options$dependencies = options.dependencies,
1069
+ dependencies = _options$dependencies === void 0 ? {} : _options$dependencies,
1070
+ createApi = options.createApi,
1071
+ config = options.config,
1072
+ _options$pilets = options.pilets,
1073
+ pilets = _options$pilets === void 0 ? [] : _options$pilets,
1074
+ _options$loadPilet = options.loadPilet,
1075
+ loadPilet = _options$loadPilet === void 0 ? (0,_loader__WEBPACK_IMPORTED_MODULE_2__.getDefaultLoader)(config) : _options$loadPilet,
1076
+ loaders = options.loaders,
1077
+ hooks = options.hooks;
1078
+ var loadingAll = (0,_load__WEBPACK_IMPORTED_MODULE_3__.loadMetadata)(fetchPilets);
1079
+ var loadSingle = (0,_loader__WEBPACK_IMPORTED_MODULE_2__.extendLoader)(loadPilet, loaders);
1080
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_4__.registerDependencies)(dependencies).then(function () {
1081
+ if (!(0,_utils__WEBPACK_IMPORTED_MODULE_0__.checkCreateApi)(createApi)) {
1082
+ cb(undefined, []);
1083
+ return Promise.resolve();
1084
+ }
1085
+
1086
+ return (0,_aggregate__WEBPACK_IMPORTED_MODULE_1__.runPilets)(createApi, pilets, hooks).then(function (integratedPilets) {
1087
+ if (async && integratedPilets.length > 0) {
1088
+ cb(undefined, _toConsumableArray(integratedPilets));
1089
+ }
1090
+
1091
+ var followUp = loadingAll.then(function (metadata) {
1092
+ var promises = metadata.map(function (m) {
1093
+ return loadSingle(m).then(function (app) {
1094
+ var available = pilets.filter(function (m) {
1095
+ return m.name === app.name;
1096
+ }).length === 0;
1097
+
1098
+ if (available) {
1099
+ return (0,_aggregate__WEBPACK_IMPORTED_MODULE_1__.runPilet)(createApi, app, hooks).then(function (additionalPilet) {
1100
+ integratedPilets.push(additionalPilet);
1101
+
1102
+ if (async) {
1103
+ cb(undefined, _toConsumableArray(integratedPilets));
1104
+ }
1105
+ });
1106
+ }
1107
+ });
1108
+ });
1109
+ return Promise.all(promises).then(function () {
1110
+ if (!async) {
1111
+ cb(undefined, integratedPilets);
1112
+ }
1113
+ });
1114
+ });
1115
+ return async ? loadingAll.then() : followUp.then();
1116
+ });
1117
+ });
1118
+ };
1119
+ }
1120
+ /**
1121
+ * This strategy starts rendering when the pilets metadata has been received.
1122
+ * Evaluates the pilets once available without waiting for all pilets to be
1123
+ * available.
1124
+ */
1125
+
1126
+ function blazingStrategy(options, cb) {
1127
+ var strategy = createProgressiveStrategy(true);
1128
+ return strategy(options, cb);
1129
+ }
1130
+ /**
1131
+ * The async strategy picked when no strategy is declared and async is set to
1132
+ * true. Directly renders, but waits for all pilets to be available before
1133
+ * evaluating them.
1134
+ */
1135
+
1136
+ function asyncStrategy(options, cb) {
1137
+ standardStrategy(options, cb);
1138
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_5__.promisify)();
1139
+ }
1140
+ /**
1141
+ * The standard strategy that is used if no strategy is declared and async is
1142
+ * false. Loads and evaluates all pilets before rendering.
1143
+ */
1144
+
1145
+ function standardStrategy(options, cb) {
1146
+ var fetchPilets = options.fetchPilets,
1147
+ _options$dependencies2 = options.dependencies,
1148
+ dependencies = _options$dependencies2 === void 0 ? {} : _options$dependencies2,
1149
+ createApi = options.createApi,
1150
+ config = options.config,
1151
+ _options$pilets2 = options.pilets,
1152
+ pilets = _options$pilets2 === void 0 ? [] : _options$pilets2,
1153
+ _options$loadPilet2 = options.loadPilet,
1154
+ loadPilet = _options$loadPilet2 === void 0 ? (0,_loader__WEBPACK_IMPORTED_MODULE_2__.getDefaultLoader)(config) : _options$loadPilet2,
1155
+ loaders = options.loaders,
1156
+ hooks = options.hooks;
1157
+ var loadSingle = (0,_loader__WEBPACK_IMPORTED_MODULE_2__.extendLoader)(loadPilet, loaders);
1158
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_4__.registerDependencies)(dependencies).then(function () {
1159
+ return (0,_load__WEBPACK_IMPORTED_MODULE_3__.loadPilets)(fetchPilets, loadSingle);
1160
+ }).then(function (additionalPilets) {
1161
+ return runAll(createApi, pilets, additionalPilets, hooks);
1162
+ }).then(function (integratedPilets) {
1163
+ return cb(undefined, integratedPilets);
1164
+ })["catch"](function (error) {
1165
+ return cb(error, []);
1166
+ });
1167
+ }
1168
+ /**
1169
+ * The strategy that could be used for special purposes, e.g., SSR or specific
1170
+ * builds of the Piral instance. This strategy ignores the fetcher and only
1171
+ * considers the already given pilets.
1172
+ */
1173
+
1174
+ function syncStrategy(options, cb) {
1175
+ var createApi = options.createApi,
1176
+ hooks = options.hooks,
1177
+ _options$dependencies3 = options.dependencies,
1178
+ dependencies = _options$dependencies3 === void 0 ? {} : _options$dependencies3,
1179
+ _options$pilets3 = options.pilets,
1180
+ pilets = _options$pilets3 === void 0 ? [] : _options$pilets3;
1181
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_4__.registerDependencies)(dependencies).then(function () {
1182
+ return runAll(createApi, pilets, [], hooks).then(function (integratedPilets) {
1183
+ return cb(undefined, integratedPilets);
1184
+ }, function (err) {
1185
+ return cb(err, []);
1186
+ });
1187
+ });
1188
+ }
1189
+ /**
1190
+ * Creates a strategy that deferres the actual loading until a trigger promise resolves.
1191
+ * The loading spinner is not shown during this time and pilets are supposed to appear directly.
1192
+ * @param trigger The trigger resolving when the strategy should be applied.
1193
+ * @param strategy The strategy to apply. Falls back to the standard strategy.
1194
+ * @returns A pilet loading strategy.
1195
+ */
1196
+
1197
+ function createDeferredStrategy(trigger) {
1198
+ var strategy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : standardStrategy;
1199
+ return function (options, cb) {
1200
+ cb(undefined, []);
1201
+ trigger.then(function () {
1202
+ return strategy(options, cb);
1203
+ });
1204
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_5__.promisify)();
1205
+ };
1206
+ }
1207
+
1208
+ /***/ }),
1209
+
1210
+ /***/ "../../framework/piral-base/esm/utils/dependency.js":
1211
+ /*!**********************************************************!*\
1212
+ !*** ../../framework/piral-base/esm/utils/dependency.js ***!
1213
+ \**********************************************************/
1214
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1215
+
1216
+ __webpack_require__.r(__webpack_exports__);
1217
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1218
+ /* harmony export */ "checkCreateApi": () => (/* binding */ checkCreateApi),
1219
+ /* harmony export */ "checkPiletApp": () => (/* binding */ checkPiletApp),
1220
+ /* harmony export */ "checkPiletAppAsync": () => (/* binding */ checkPiletAppAsync),
1221
+ /* harmony export */ "createEvaluatedPilet": () => (/* binding */ createEvaluatedPilet),
1222
+ /* harmony export */ "emptyApp": () => (/* binding */ emptyApp),
1223
+ /* harmony export */ "includeScript": () => (/* binding */ includeScript),
1224
+ /* harmony export */ "includeScriptDependency": () => (/* binding */ includeScriptDependency)
1225
+ /* harmony export */ });
1226
+ /* harmony import */ var _system__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./system */ "../../framework/piral-base/esm/utils/system.js");
1227
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers */ "../../framework/piral-base/esm/utils/helpers.js");
1228
+
1229
+
1230
+ var emptyApp = {
1231
+ setup: function setup() {}
1232
+ };
1233
+ function createEvaluatedPilet(meta, mod) {
1234
+ var basePath = (0,_helpers__WEBPACK_IMPORTED_MODULE_0__.getBasePath)(meta.link);
1235
+ var app = checkPiletApp(meta.name, mod);
1236
+ return Object.assign(Object.assign(Object.assign({}, meta), app), {
1237
+ basePath: basePath
1238
+ });
1239
+ }
1240
+ function checkCreateApi(createApi) {
1241
+ if (!(0,_helpers__WEBPACK_IMPORTED_MODULE_0__.isfunc)(createApi)) {
1242
+ console.warn('Invalid `createApi` function. Skipping pilet installation.');
1243
+ return false;
1244
+ }
1245
+
1246
+ return true;
1247
+ }
1248
+ /**
1249
+ * Checks the given pilet app for validity.
1250
+ * @param name The name of the pilet to check against.
1251
+ * @param app The evaluated app to check.
1252
+ * @returns The app to be used for the pilet.
1253
+ */
1254
+
1255
+ function checkPiletApp(name, app) {
1256
+ if (!app) {
1257
+ console.error('Invalid module found.', name);
1258
+ } else if (typeof app.setup !== 'function') {
1259
+ console.warn('Setup function is missing.', name);
1260
+ } else {
1261
+ return app;
1262
+ }
1263
+
1264
+ return emptyApp;
1265
+ }
1266
+ /**
1267
+ * Checks the given pilet app asynchrously for validity.
1268
+ * @param name The name of the pilet to check against.
1269
+ * @param app The evaluated - or evaluating - app to check.
1270
+ * @returns A promise resolving to the app of the pilet.
1271
+ */
1272
+
1273
+ function checkPiletAppAsync(name, app) {
1274
+ return (0,_helpers__WEBPACK_IMPORTED_MODULE_0__.promisify)(app).then(function (resolvedApp) {
1275
+ return checkPiletApp(name, resolvedApp);
1276
+ });
1277
+ }
1278
+ /**
1279
+ * Includes a pilet as a script.
1280
+ * @param depName The name of the dependency (require reference).
1281
+ * @param link The link to the script.
1282
+ * @param integrity The integrity for the script, if any.
1283
+ * @param crossOrigin Defines if cross-origin should be used.
1284
+ * @returns The promise resolving to the pilet app.
1285
+ */
1286
+
1287
+ function includeScript(depName, link, integrity, crossOrigin) {
1288
+ window[depName] = function (moduleId) {
1289
+ return (0,_system__WEBPACK_IMPORTED_MODULE_1__.requireModule)(moduleId, link);
1290
+ };
1291
+
1292
+ return includeScriptDependency(link, integrity, crossOrigin).then(function (s) {
1293
+ return s.app;
1294
+ });
1295
+ }
1296
+ /**
1297
+ * Includes a dependency as a script.
1298
+ * @param link The link to the script.
1299
+ * @param integrity The integrity for the script, if any.
1300
+ * @param crossOrigin Defines if cross-origin should be used.
1301
+ * @returns The script element.
1302
+ */
1303
+
1304
+ function includeScriptDependency(link, integrity, crossOrigin) {
1305
+ return new Promise(function (resolve, reject) {
1306
+ var s = document.createElement('script');
1307
+ s.async = true;
1308
+ s.src = link;
1309
+
1310
+ if (integrity) {
1311
+ s.crossOrigin = crossOrigin || 'anonymous';
1312
+ s.integrity = integrity;
1313
+ } else if (crossOrigin) {
1314
+ s.crossOrigin = crossOrigin;
1315
+ }
1316
+
1317
+ s.onload = function () {
1318
+ return resolve(s);
1319
+ };
1320
+
1321
+ s.onerror = function (e) {
1322
+ return reject(e);
1323
+ };
1324
+
1325
+ document.body.appendChild(s);
1326
+ });
1327
+ }
1328
+
1329
+ /***/ }),
1330
+
1331
+ /***/ "../../framework/piral-base/esm/utils/helpers.js":
1332
+ /*!*******************************************************!*\
1333
+ !*** ../../framework/piral-base/esm/utils/helpers.js ***!
1334
+ \*******************************************************/
1335
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1336
+
1337
+ __webpack_require__.r(__webpack_exports__);
1338
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1339
+ /* harmony export */ "callfunc": () => (/* binding */ callfunc),
1340
+ /* harmony export */ "getBasePath": () => (/* binding */ getBasePath),
1341
+ /* harmony export */ "isfunc": () => (/* binding */ isfunc),
1342
+ /* harmony export */ "promisify": () => (/* binding */ promisify)
1343
+ /* harmony export */ });
1344
+ function isfunc(f) {
1345
+ return typeof f === 'function';
1346
+ }
1347
+ function callfunc(f) {
1348
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1349
+ args[_key - 1] = arguments[_key];
1350
+ }
1351
+
1352
+ isfunc(f) && f.apply(void 0, args);
1353
+ }
1354
+ function promisify(value) {
1355
+ return Promise.resolve(value);
1356
+ }
1357
+ function getBasePath(link) {
1358
+ if (link) {
1359
+ var idx = link.lastIndexOf('/');
1360
+ return link.substring(0, idx + 1);
1361
+ }
1362
+
1363
+ return link;
1364
+ }
1365
+
1366
+ /***/ }),
1367
+
1368
+ /***/ "../../framework/piral-base/esm/utils/load.js":
1369
+ /*!****************************************************!*\
1370
+ !*** ../../framework/piral-base/esm/utils/load.js ***!
1371
+ \****************************************************/
1372
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1373
+
1374
+ __webpack_require__.r(__webpack_exports__);
1375
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1376
+ /* harmony export */ "loadFrom": () => (/* binding */ loadFrom)
1377
+ /* harmony export */ });
1378
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../framework/piral-base/esm/utils/helpers.js");
1379
+ /* harmony import */ var _dependency__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dependency */ "../../framework/piral-base/esm/utils/dependency.js");
1380
+
1381
+
1382
+ var depContext = {};
1383
+
1384
+ function loadSharedDependencies(dependencies) {
1385
+ if (dependencies) {
1386
+ var names = Object.keys(dependencies);
1387
+ return Promise.all(names.map(function (name) {
1388
+ return depContext[name] || (depContext[name] = (0,_dependency__WEBPACK_IMPORTED_MODULE_0__.includeScriptDependency)(dependencies[name]));
1389
+ }));
1390
+ }
1391
+
1392
+ return (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.promisify)();
1393
+ }
1394
+
1395
+ function handleFailure(error, name) {
1396
+ console.error('Failed to load pilet', name, error);
1397
+ return _dependency__WEBPACK_IMPORTED_MODULE_0__.emptyApp;
1398
+ }
1399
+ /**
1400
+ * Loads a pilet from the specified metadata and loader function.
1401
+ * @param meta The metadata of the pilet.
1402
+ * @param link The link (URL) to the pilet's main script.
1403
+ * @param loadPilet The loader function derived for the pilet.
1404
+ * @returns The evaluated pilet, which can then be integrated.
1405
+ */
1406
+
1407
+
1408
+ function loadFrom(meta, loadPilet) {
1409
+ return loadSharedDependencies(meta.dependencies).then(loadPilet)["catch"](function (error) {
1410
+ return handleFailure(error, meta.name);
1411
+ }).then(function (app) {
1412
+ return (0,_dependency__WEBPACK_IMPORTED_MODULE_0__.createEvaluatedPilet)(meta, app);
1413
+ });
1414
+ }
1415
+
1416
+ /***/ }),
1417
+
1418
+ /***/ "../../framework/piral-base/esm/utils/system.js":
1419
+ /*!******************************************************!*\
1420
+ !*** ../../framework/piral-base/esm/utils/system.js ***!
1421
+ \******************************************************/
1422
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1423
+
1424
+ __webpack_require__.r(__webpack_exports__);
1425
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1426
+ /* harmony export */ "registerDependencies": () => (/* binding */ registerDependencies),
1427
+ /* harmony export */ "registerModule": () => (/* binding */ registerModule),
1428
+ /* harmony export */ "requireModule": () => (/* binding */ requireModule),
1429
+ /* harmony export */ "unregisterModules": () => (/* binding */ unregisterModules)
1430
+ /* harmony export */ });
1431
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
1432
+
1433
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
1434
+
1435
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
1436
+
1437
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1438
+
1439
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
1440
+
1441
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
1442
+
1443
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
1444
+
1445
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1446
+
1447
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
1448
+
1449
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
1450
+
1451
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
1452
+
1453
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
1454
+
1455
+ // ../../../node_modules/systemjs/dist/system.js
1456
+ (function () {
1457
+ function errMsg(errCode, msg) {
1458
+ return (msg || "") + " (SystemJS Error#" + errCode + " https://git.io/JvFET#" + errCode + ")";
1459
+ }
1460
+
1461
+ var hasSymbol = typeof Symbol !== "undefined";
1462
+ var hasSelf = typeof self !== "undefined";
1463
+ var hasDocument = typeof document !== "undefined";
1464
+ var envGlobal = hasSelf ? self : __webpack_require__.g;
1465
+ var baseUrl;
1466
+
1467
+ if (hasDocument) {
1468
+ var baseEl = document.querySelector("base[href]");
1469
+ if (baseEl) baseUrl = baseEl.href;
1470
+ }
1471
+
1472
+ if (!baseUrl && typeof location !== "undefined") {
1473
+ baseUrl = location.href.split("#")[0].split("?")[0];
1474
+ var lastSepIndex = baseUrl.lastIndexOf("/");
1475
+ if (lastSepIndex !== -1) baseUrl = baseUrl.slice(0, lastSepIndex + 1);
1476
+ }
1477
+
1478
+ var backslashRegEx = /\\/g;
1479
+
1480
+ function resolveIfNotPlainOrUrl(relUrl, parentUrl) {
1481
+ if (relUrl.indexOf("\\") !== -1) relUrl = relUrl.replace(backslashRegEx, "/");
1482
+
1483
+ if (relUrl[0] === "/" && relUrl[1] === "/") {
1484
+ return parentUrl.slice(0, parentUrl.indexOf(":") + 1) + relUrl;
1485
+ } else if (relUrl[0] === "." && (relUrl[1] === "/" || relUrl[1] === "." && (relUrl[2] === "/" || relUrl.length === 2 && (relUrl += "/")) || relUrl.length === 1 && (relUrl += "/")) || relUrl[0] === "/") {
1486
+ var parentProtocol = parentUrl.slice(0, parentUrl.indexOf(":") + 1);
1487
+ var pathname;
1488
+
1489
+ if (parentUrl[parentProtocol.length + 1] === "/") {
1490
+ if (parentProtocol !== "file:") {
1491
+ pathname = parentUrl.slice(parentProtocol.length + 2);
1492
+ pathname = pathname.slice(pathname.indexOf("/") + 1);
1493
+ } else {
1494
+ pathname = parentUrl.slice(8);
1495
+ }
1496
+ } else {
1497
+ pathname = parentUrl.slice(parentProtocol.length + (parentUrl[parentProtocol.length] === "/"));
1498
+ }
1499
+
1500
+ if (relUrl[0] === "/") return parentUrl.slice(0, parentUrl.length - pathname.length - 1) + relUrl;
1501
+ var segmented = pathname.slice(0, pathname.lastIndexOf("/") + 1) + relUrl;
1502
+ var output = [];
1503
+ var segmentIndex = -1;
1504
+
1505
+ for (var i = 0; i < segmented.length; i++) {
1506
+ if (segmentIndex !== -1) {
1507
+ if (segmented[i] === "/") {
1508
+ output.push(segmented.slice(segmentIndex, i + 1));
1509
+ segmentIndex = -1;
1510
+ }
1511
+ } else if (segmented[i] === ".") {
1512
+ if (segmented[i + 1] === "." && (segmented[i + 2] === "/" || i + 2 === segmented.length)) {
1513
+ output.pop();
1514
+ i += 2;
1515
+ } else if (segmented[i + 1] === "/" || i + 1 === segmented.length) {
1516
+ i += 1;
1517
+ } else {
1518
+ segmentIndex = i;
1519
+ }
1520
+ } else {
1521
+ segmentIndex = i;
1522
+ }
1523
+ }
1524
+
1525
+ if (segmentIndex !== -1) output.push(segmented.slice(segmentIndex));
1526
+ return parentUrl.slice(0, parentUrl.length - pathname.length) + output.join("");
1527
+ }
1528
+ }
1529
+
1530
+ function resolveUrl(relUrl, parentUrl) {
1531
+ return resolveIfNotPlainOrUrl(relUrl, parentUrl) || (relUrl.indexOf(":") !== -1 ? relUrl : resolveIfNotPlainOrUrl("./" + relUrl, parentUrl));
1532
+ }
1533
+
1534
+ function resolveAndComposePackages(packages, outPackages, baseUrl2, parentMap, parentUrl) {
1535
+ for (var p in packages) {
1536
+ var resolvedLhs = resolveIfNotPlainOrUrl(p, baseUrl2) || p;
1537
+ var rhs = packages[p];
1538
+ if (typeof rhs !== "string") continue;
1539
+ var mapped = resolveImportMap(parentMap, resolveIfNotPlainOrUrl(rhs, baseUrl2) || rhs, parentUrl);
1540
+
1541
+ if (!mapped) {
1542
+ targetWarning("W1", p, rhs, "bare specifier did not resolve");
1543
+ } else outPackages[resolvedLhs] = mapped;
1544
+ }
1545
+ }
1546
+
1547
+ function resolveAndComposeImportMap(json, baseUrl2, outMap) {
1548
+ if (json.imports) resolveAndComposePackages(json.imports, outMap.imports, baseUrl2, outMap, null);
1549
+ var u;
1550
+
1551
+ for (u in json.scopes || {}) {
1552
+ var resolvedScope = resolveUrl(u, baseUrl2);
1553
+ resolveAndComposePackages(json.scopes[u], outMap.scopes[resolvedScope] || (outMap.scopes[resolvedScope] = {}), baseUrl2, outMap, resolvedScope);
1554
+ }
1555
+
1556
+ for (u in json.depcache || {}) {
1557
+ outMap.depcache[resolveUrl(u, baseUrl2)] = json.depcache[u];
1558
+ }
1559
+
1560
+ for (u in json.integrity || {}) {
1561
+ outMap.integrity[resolveUrl(u, baseUrl2)] = json.integrity[u];
1562
+ }
1563
+ }
1564
+
1565
+ function getMatch(path, matchObj) {
1566
+ if (matchObj[path]) return path;
1567
+ var sepIndex = path.length;
1568
+
1569
+ do {
1570
+ var segment = path.slice(0, sepIndex + 1);
1571
+ if (segment in matchObj) return segment;
1572
+ } while ((sepIndex = path.lastIndexOf("/", sepIndex - 1)) !== -1);
1573
+ }
1574
+
1575
+ function applyPackages(id, packages) {
1576
+ var pkgName = getMatch(id, packages);
1577
+
1578
+ if (pkgName) {
1579
+ var pkg = packages[pkgName];
1580
+ if (pkg === null) return;
1581
+
1582
+ if (id.length > pkgName.length && pkg[pkg.length - 1] !== "/") {
1583
+ targetWarning("W2", pkgName, pkg, "should have a trailing '/'");
1584
+ } else return pkg + id.slice(pkgName.length);
1585
+ }
1586
+ }
1587
+
1588
+ function targetWarning(code, match, target, msg) {
1589
+ console.warn(errMsg(code, "Package target " + msg + ", resolving target '" + target + "' for " + match));
1590
+ }
1591
+
1592
+ function resolveImportMap(importMap2, resolvedOrPlain, parentUrl) {
1593
+ var scopes = importMap2.scopes;
1594
+ var scopeUrl = parentUrl && getMatch(parentUrl, scopes);
1595
+
1596
+ while (scopeUrl) {
1597
+ var packageResolution = applyPackages(resolvedOrPlain, scopes[scopeUrl]);
1598
+ if (packageResolution) return packageResolution;
1599
+ scopeUrl = getMatch(scopeUrl.slice(0, scopeUrl.lastIndexOf("/")), scopes);
1600
+ }
1601
+
1602
+ return applyPackages(resolvedOrPlain, importMap2.imports) || resolvedOrPlain.indexOf(":") !== -1 && resolvedOrPlain;
1603
+ }
1604
+
1605
+ var toStringTag$1 = hasSymbol && Symbol.toStringTag;
1606
+ var REGISTRY = hasSymbol ? Symbol() : "@";
1607
+
1608
+ function SystemJS() {
1609
+ this[REGISTRY] = {};
1610
+ }
1611
+
1612
+ var systemJSPrototype = SystemJS.prototype;
1613
+
1614
+ systemJSPrototype["import"] = function (id, parentUrl) {
1615
+ var loader = this;
1616
+ return Promise.resolve(loader.prepareImport()).then(function () {
1617
+ return loader.resolve(id, parentUrl);
1618
+ }).then(function (id2) {
1619
+ var load = getOrCreateLoad(loader, id2);
1620
+ return load.C || topLevelLoad(loader, load);
1621
+ });
1622
+ };
1623
+
1624
+ systemJSPrototype.createContext = function (parentId) {
1625
+ var loader = this;
1626
+ return {
1627
+ url: parentId,
1628
+ resolve: function resolve(id, parentUrl) {
1629
+ return Promise.resolve(loader.resolve(id, parentUrl || parentId));
1630
+ }
1631
+ };
1632
+ };
1633
+
1634
+ systemJSPrototype.onload = function () {};
1635
+
1636
+ function loadToId(load) {
1637
+ return load.id;
1638
+ }
1639
+
1640
+ function triggerOnload(loader, load, err, isErrSource) {
1641
+ loader.onload(err, load.id, load.d && load.d.map(loadToId), !!isErrSource);
1642
+ if (err) throw err;
1643
+ }
1644
+
1645
+ var lastRegister;
1646
+
1647
+ systemJSPrototype.register = function (deps, declare) {
1648
+ lastRegister = [deps, declare];
1649
+ };
1650
+
1651
+ systemJSPrototype.getRegister = function () {
1652
+ var _lastRegister = lastRegister;
1653
+ lastRegister = void 0;
1654
+ return _lastRegister;
1655
+ };
1656
+
1657
+ function getOrCreateLoad(loader, id, firstParentUrl) {
1658
+ var load = loader[REGISTRY][id];
1659
+ if (load) return load;
1660
+ var importerSetters = [];
1661
+ var ns = Object.create(null);
1662
+ if (toStringTag$1) Object.defineProperty(ns, toStringTag$1, {
1663
+ value: "Module"
1664
+ });
1665
+ var instantiatePromise = Promise.resolve().then(function () {
1666
+ return loader.instantiate(id, firstParentUrl);
1667
+ }).then(function (registration) {
1668
+ if (!registration) throw Error(errMsg(2, "Module " + id + " did not instantiate"));
1669
+
1670
+ function _export(name, value) {
1671
+ load.h = true;
1672
+ var changed = false;
1673
+
1674
+ if (typeof name === "string") {
1675
+ if (!(name in ns) || ns[name] !== value) {
1676
+ ns[name] = value;
1677
+ changed = true;
1678
+ }
1679
+ } else {
1680
+ for (var p in name) {
1681
+ var value = name[p];
1682
+
1683
+ if (!(p in ns) || ns[p] !== value) {
1684
+ ns[p] = value;
1685
+ changed = true;
1686
+ }
1687
+ }
1688
+
1689
+ if (name && name.__esModule) {
1690
+ ns.__esModule = name.__esModule;
1691
+ }
1692
+ }
1693
+
1694
+ if (changed) for (var i = 0; i < importerSetters.length; i++) {
1695
+ var setter = importerSetters[i];
1696
+ if (setter) setter(ns);
1697
+ }
1698
+ return value;
1699
+ }
1700
+
1701
+ var declared = registration[1](_export, registration[1].length === 2 ? {
1702
+ "import": function _import(importId) {
1703
+ return loader["import"](importId, id);
1704
+ },
1705
+ meta: loader.createContext(id)
1706
+ } : void 0);
1707
+
1708
+ load.e = declared.execute || function () {};
1709
+
1710
+ return [registration[0], declared.setters || []];
1711
+ }, function (err) {
1712
+ load.e = null;
1713
+ load.er = err;
1714
+ triggerOnload(loader, load, err, true);
1715
+ throw err;
1716
+ });
1717
+ var linkPromise = instantiatePromise.then(function (instantiation) {
1718
+ return Promise.all(instantiation[0].map(function (dep, i) {
1719
+ var setter = instantiation[1][i];
1720
+ return Promise.resolve(loader.resolve(dep, id)).then(function (depId) {
1721
+ var depLoad = getOrCreateLoad(loader, depId, id);
1722
+ return Promise.resolve(depLoad.I).then(function () {
1723
+ if (setter) {
1724
+ depLoad.i.push(setter);
1725
+ if (depLoad.h || !depLoad.I) setter(depLoad.n);
1726
+ }
1727
+
1728
+ return depLoad;
1729
+ });
1730
+ });
1731
+ })).then(function (depLoads) {
1732
+ load.d = depLoads;
1733
+ });
1734
+ });
1735
+ return load = loader[REGISTRY][id] = {
1736
+ id: id,
1737
+ i: importerSetters,
1738
+ n: ns,
1739
+ I: instantiatePromise,
1740
+ L: linkPromise,
1741
+ h: false,
1742
+ d: void 0,
1743
+ e: void 0,
1744
+ er: void 0,
1745
+ E: void 0,
1746
+ C: void 0,
1747
+ p: void 0
1748
+ };
1749
+ }
1750
+
1751
+ function instantiateAll(loader, load, parent, loaded) {
1752
+ if (!loaded[load.id]) {
1753
+ loaded[load.id] = true;
1754
+ return Promise.resolve(load.L).then(function () {
1755
+ if (!load.p || load.p.e === null) load.p = parent;
1756
+ return Promise.all(load.d.map(function (dep) {
1757
+ return instantiateAll(loader, dep, parent, loaded);
1758
+ }));
1759
+ })["catch"](function (err) {
1760
+ if (load.er) throw err;
1761
+ load.e = null;
1762
+ triggerOnload(loader, load, err, false);
1763
+ throw err;
1764
+ });
1765
+ }
1766
+ }
1767
+
1768
+ function topLevelLoad(loader, load) {
1769
+ return load.C = instantiateAll(loader, load, load, {}).then(function () {
1770
+ return postOrderExec(loader, load, {});
1771
+ }).then(function () {
1772
+ return load.n;
1773
+ });
1774
+ }
1775
+
1776
+ var nullContext = Object.freeze(Object.create(null));
1777
+
1778
+ function postOrderExec(loader, load, seen) {
1779
+ if (seen[load.id]) return;
1780
+ seen[load.id] = true;
1781
+
1782
+ if (!load.e) {
1783
+ if (load.er) throw load.er;
1784
+ if (load.E) return load.E;
1785
+ return;
1786
+ }
1787
+
1788
+ var depLoadPromises;
1789
+ load.d.forEach(function (depLoad) {
1790
+ try {
1791
+ var depLoadPromise = postOrderExec(loader, depLoad, seen);
1792
+ if (depLoadPromise) (depLoadPromises = depLoadPromises || []).push(depLoadPromise);
1793
+ } catch (err) {
1794
+ load.e = null;
1795
+ load.er = err;
1796
+ triggerOnload(loader, load, err, false);
1797
+ throw err;
1798
+ }
1799
+ });
1800
+ if (depLoadPromises) return Promise.all(depLoadPromises).then(doExec);
1801
+ return doExec();
1802
+
1803
+ function doExec() {
1804
+ try {
1805
+ var execPromise = load.e.call(nullContext);
1806
+
1807
+ if (execPromise) {
1808
+ execPromise = execPromise.then(function () {
1809
+ load.C = load.n;
1810
+ load.E = null;
1811
+ if (true) triggerOnload(loader, load, null, true);
1812
+ }, function (err) {
1813
+ load.er = err;
1814
+ load.E = null;
1815
+ if (true) triggerOnload(loader, load, err, true);
1816
+ throw err;
1817
+ });
1818
+ return load.E = execPromise;
1819
+ }
1820
+
1821
+ load.C = load.n;
1822
+ load.L = load.I = void 0;
1823
+ } catch (err) {
1824
+ load.er = err;
1825
+ throw err;
1826
+ } finally {
1827
+ load.e = null;
1828
+ triggerOnload(loader, load, load.er, true);
1829
+ }
1830
+ }
1831
+ }
1832
+
1833
+ envGlobal.System = new SystemJS();
1834
+ var importMapPromise = Promise.resolve();
1835
+ var importMap = {
1836
+ imports: {},
1837
+ scopes: {},
1838
+ depcache: {},
1839
+ integrity: {}
1840
+ };
1841
+ var processFirst = hasDocument;
1842
+
1843
+ systemJSPrototype.prepareImport = function (doProcessScripts) {
1844
+ if (processFirst || doProcessScripts) {
1845
+ processScripts();
1846
+ processFirst = false;
1847
+ }
1848
+
1849
+ return importMapPromise;
1850
+ };
1851
+
1852
+ if (hasDocument) {
1853
+ processScripts();
1854
+ window.addEventListener("DOMContentLoaded", processScripts);
1855
+ }
1856
+
1857
+ function processScripts() {
1858
+ [].forEach.call(document.querySelectorAll("script"), function (script) {
1859
+ if (script.sp) return;
1860
+
1861
+ if (script.type === "systemjs-module") {
1862
+ script.sp = true;
1863
+ if (!script.src) return;
1864
+ System["import"](script.src.slice(0, 7) === "import:" ? script.src.slice(7) : resolveUrl(script.src, baseUrl))["catch"](function (e) {
1865
+ if (e.message.indexOf("https://git.io/JvFET#3") > -1) {
1866
+ var event = document.createEvent("Event");
1867
+ event.initEvent("error", false, false);
1868
+ script.dispatchEvent(event);
1869
+ }
1870
+
1871
+ return Promise.reject(e);
1872
+ });
1873
+ } else if (script.type === "systemjs-importmap") {
1874
+ script.sp = true;
1875
+ var fetchPromise = script.src ? (System.fetch || fetch)(script.src, {
1876
+ integrity: script.integrity,
1877
+ passThrough: true
1878
+ }).then(function (res) {
1879
+ if (!res.ok) throw Error("Invalid status code: " + res.status);
1880
+ return res.text();
1881
+ })["catch"](function (err) {
1882
+ err.message = errMsg("W4", "Error fetching systemjs-import map " + script.src) + "\n" + err.message;
1883
+ console.warn(err);
1884
+
1885
+ if (typeof script.onerror === "function") {
1886
+ script.onerror();
1887
+ }
1888
+
1889
+ return "{}";
1890
+ }) : script.innerHTML;
1891
+ importMapPromise = importMapPromise.then(function () {
1892
+ return fetchPromise;
1893
+ }).then(function (text) {
1894
+ extendImportMap(importMap, text, script.src || baseUrl);
1895
+ });
1896
+ }
1897
+ });
1898
+ }
1899
+
1900
+ function extendImportMap(importMap2, newMapText, newMapUrl) {
1901
+ var newMap = {};
1902
+
1903
+ try {
1904
+ newMap = JSON.parse(newMapText);
1905
+ } catch (err) {
1906
+ console.warn(Error(errMsg("W5", "systemjs-importmap contains invalid JSON") + "\n\n" + newMapText + "\n"));
1907
+ }
1908
+
1909
+ resolveAndComposeImportMap(newMap, newMapUrl, importMap2);
1910
+ }
1911
+
1912
+ if (hasDocument) {
1913
+ window.addEventListener("error", function (evt) {
1914
+ lastWindowErrorUrl = evt.filename;
1915
+ lastWindowError = evt.error;
1916
+ });
1917
+ var baseOrigin = location.origin;
1918
+ }
1919
+
1920
+ systemJSPrototype.createScript = function (url) {
1921
+ var script = document.createElement("script");
1922
+ script.async = true;
1923
+ if (url.indexOf(baseOrigin + "/")) script.crossOrigin = "anonymous";
1924
+ var integrity = importMap.integrity[url];
1925
+ if (integrity) script.integrity = integrity;
1926
+ script.src = url;
1927
+ return script;
1928
+ };
1929
+
1930
+ var lastAutoImportDeps, lastAutoImportTimeout;
1931
+ var autoImportCandidates = {};
1932
+ var systemRegister2 = systemJSPrototype.register;
1933
+
1934
+ systemJSPrototype.register = function (deps, declare) {
1935
+ if (hasDocument && document.readyState === "loading" && typeof deps !== "string") {
1936
+ var scripts = document.querySelectorAll("script[src]");
1937
+ var lastScript = scripts[scripts.length - 1];
1938
+
1939
+ if (lastScript) {
1940
+ lastAutoImportDeps = deps;
1941
+ var loader = this;
1942
+ lastAutoImportTimeout = setTimeout(function () {
1943
+ autoImportCandidates[lastScript.src] = [deps, declare];
1944
+ loader["import"](lastScript.src);
1945
+ });
1946
+ }
1947
+ } else {
1948
+ lastAutoImportDeps = void 0;
1949
+ }
1950
+
1951
+ return systemRegister2.call(this, deps, declare);
1952
+ };
1953
+
1954
+ var lastWindowErrorUrl, lastWindowError;
1955
+
1956
+ systemJSPrototype.instantiate = function (url, firstParentUrl) {
1957
+ var autoImportRegistration = autoImportCandidates[url];
1958
+
1959
+ if (autoImportRegistration) {
1960
+ delete autoImportCandidates[url];
1961
+ return autoImportRegistration;
1962
+ }
1963
+
1964
+ var loader = this;
1965
+ return Promise.resolve(systemJSPrototype.createScript(url)).then(function (script) {
1966
+ return new Promise(function (resolve, reject) {
1967
+ script.addEventListener("error", function () {
1968
+ reject(Error(errMsg(3, "Error loading " + url + (firstParentUrl ? " from " + firstParentUrl : ""))));
1969
+ });
1970
+ script.addEventListener("load", function () {
1971
+ document.head.removeChild(script);
1972
+
1973
+ if (lastWindowErrorUrl === url) {
1974
+ reject(lastWindowError);
1975
+ } else {
1976
+ var register = loader.getRegister(url);
1977
+ if (register && register[0] === lastAutoImportDeps) clearTimeout(lastAutoImportTimeout);
1978
+ resolve(register);
1979
+ }
1980
+ });
1981
+ document.head.appendChild(script);
1982
+ });
1983
+ });
1984
+ };
1985
+
1986
+ systemJSPrototype.shouldFetch = function () {
1987
+ return false;
1988
+ };
1989
+
1990
+ if (typeof fetch !== "undefined") systemJSPrototype.fetch = fetch;
1991
+ var instantiate = systemJSPrototype.instantiate;
1992
+ var jsContentTypeRegEx = /^(text|application)\/(x-)?javascript(;|$)/;
1993
+
1994
+ systemJSPrototype.instantiate = function (url, parent) {
1995
+ var loader = this;
1996
+ if (!this.shouldFetch(url)) return instantiate.apply(this, arguments);
1997
+ return this.fetch(url, {
1998
+ credentials: "same-origin",
1999
+ integrity: importMap.integrity[url]
2000
+ }).then(function (res) {
2001
+ if (!res.ok) throw Error(errMsg(7, res.status + " " + res.statusText + ", loading " + url + (parent ? " from " + parent : "")));
2002
+ var contentType = res.headers.get("content-type");
2003
+ if (!contentType || !jsContentTypeRegEx.test(contentType)) throw Error(errMsg(4, 'Unknown Content-Type "' + contentType + '", loading ' + url + (parent ? " from " + parent : "")));
2004
+ return res.text().then(function (source) {
2005
+ if (source.indexOf("//# sourceURL=") < 0) source += "\n//# sourceURL=" + url;
2006
+ (0, eval)(source);
2007
+ return loader.getRegister(url);
2008
+ });
2009
+ });
2010
+ };
2011
+
2012
+ systemJSPrototype.resolve = function (id, parentUrl) {
2013
+ parentUrl = parentUrl || false || baseUrl;
2014
+ return resolveImportMap(importMap, resolveIfNotPlainOrUrl(id, parentUrl) || id, parentUrl) || throwUnresolved(id, parentUrl);
2015
+ };
2016
+
2017
+ function throwUnresolved(id, parentUrl) {
2018
+ throw Error(errMsg(8, "Unable to resolve bare specifier '" + id + (parentUrl ? "' from " + parentUrl : "'")));
2019
+ }
2020
+
2021
+ var systemInstantiate = systemJSPrototype.instantiate;
2022
+
2023
+ systemJSPrototype.instantiate = function (url, firstParentUrl) {
2024
+ var preloads = importMap.depcache[url];
2025
+
2026
+ if (preloads) {
2027
+ for (var i = 0; i < preloads.length; i++) {
2028
+ getOrCreateLoad(this, this.resolve(preloads[i], url), url);
2029
+ }
2030
+ }
2031
+
2032
+ return systemInstantiate.call(this, url, firstParentUrl);
2033
+ };
2034
+
2035
+ if (hasSelf && typeof importScripts === "function") systemJSPrototype.instantiate = function (url) {
2036
+ var loader = this;
2037
+ return Promise.resolve().then(function () {
2038
+ importScripts(url);
2039
+ return loader.getRegister(url);
2040
+ });
2041
+ };
2042
+
2043
+ (function (global2) {
2044
+ var systemJSPrototype2 = global2.System.constructor.prototype;
2045
+ var firstGlobalProp, secondGlobalProp, lastGlobalProp;
2046
+
2047
+ function getGlobalProp(useFirstGlobalProp) {
2048
+ var cnt = 0;
2049
+ var foundLastProp, result;
2050
+
2051
+ for (var p in global2) {
2052
+ if (shouldSkipProperty(p)) continue;
2053
+ if (cnt === 0 && p !== firstGlobalProp || cnt === 1 && p !== secondGlobalProp) return p;
2054
+
2055
+ if (foundLastProp) {
2056
+ lastGlobalProp = p;
2057
+ result = useFirstGlobalProp && result || p;
2058
+ } else {
2059
+ foundLastProp = p === lastGlobalProp;
2060
+ }
2061
+
2062
+ cnt++;
2063
+ }
2064
+
2065
+ return result;
2066
+ }
2067
+
2068
+ function noteGlobalProps() {
2069
+ firstGlobalProp = secondGlobalProp = void 0;
2070
+
2071
+ for (var p in global2) {
2072
+ if (shouldSkipProperty(p)) continue;
2073
+ if (!firstGlobalProp) firstGlobalProp = p;else if (!secondGlobalProp) secondGlobalProp = p;
2074
+ lastGlobalProp = p;
2075
+ }
2076
+
2077
+ return lastGlobalProp;
2078
+ }
2079
+
2080
+ var impt = systemJSPrototype2["import"];
2081
+
2082
+ systemJSPrototype2["import"] = function (id, parentUrl) {
2083
+ noteGlobalProps();
2084
+ return impt.call(this, id, parentUrl);
2085
+ };
2086
+
2087
+ var emptyInstantiation = [[], function () {
2088
+ return {};
2089
+ }];
2090
+ var getRegister = systemJSPrototype2.getRegister;
2091
+
2092
+ systemJSPrototype2.getRegister = function () {
2093
+ var lastRegister2 = getRegister.call(this);
2094
+ if (lastRegister2) return lastRegister2;
2095
+ var globalProp = getGlobalProp(this.firstGlobalProp);
2096
+ if (!globalProp) return emptyInstantiation;
2097
+ var globalExport;
2098
+
2099
+ try {
2100
+ globalExport = global2[globalProp];
2101
+ } catch (e) {
2102
+ return emptyInstantiation;
2103
+ }
2104
+
2105
+ return [[], function (_export) {
2106
+ return {
2107
+ execute: function execute() {
2108
+ _export(globalExport);
2109
+
2110
+ _export({
2111
+ "default": globalExport,
2112
+ __useDefault: true
2113
+ });
2114
+ }
2115
+ };
2116
+ }];
2117
+ };
2118
+
2119
+ var isIE11 = typeof navigator !== "undefined" && navigator.userAgent.indexOf("Trident") !== -1;
2120
+
2121
+ function shouldSkipProperty(p) {
2122
+ return !global2.hasOwnProperty(p) || !isNaN(p) && p < global2.length || isIE11 && global2[p] && typeof window !== "undefined" && global2[p].parent === window;
2123
+ }
2124
+ })(typeof self !== "undefined" ? self : __webpack_require__.g);
2125
+
2126
+ (function (global2) {
2127
+ var systemJSPrototype2 = global2.System.constructor.prototype;
2128
+ var moduleTypesRegEx = /^[^#?]+\.(css|html|json|wasm)([?#].*)?$/;
2129
+
2130
+ systemJSPrototype2.shouldFetch = function (url) {
2131
+ return moduleTypesRegEx.test(url);
2132
+ };
2133
+
2134
+ var jsonContentType = /^application\/json(;|$)/;
2135
+ var cssContentType = /^text\/css(;|$)/;
2136
+ var wasmContentType = /^application\/wasm(;|$)/;
2137
+ var fetch2 = systemJSPrototype2.fetch;
2138
+
2139
+ systemJSPrototype2.fetch = function (url, options) {
2140
+ return fetch2(url, options).then(function (res) {
2141
+ if (options.passThrough) return res;
2142
+ if (!res.ok) return res;
2143
+ var contentType = res.headers.get("content-type");
2144
+ if (jsonContentType.test(contentType)) return res.json().then(function (json) {
2145
+ return new Response(new Blob(['System.register([],function(e){return{execute:function(){e("default",' + JSON.stringify(json) + ")}}})"], {
2146
+ type: "application/javascript"
2147
+ }));
2148
+ });
2149
+ if (cssContentType.test(contentType)) return res.text().then(function (source) {
2150
+ source = source.replace(/url\(\s*(?:(["'])((?:\\.|[^\n\\"'])+)\1|((?:\\.|[^\s,"'()\\])+))\s*\)/g, function (match, quotes, relUrl1, relUrl2) {
2151
+ return "url(" + quotes + resolveUrl(relUrl1 || relUrl2, url) + quotes + ")";
2152
+ });
2153
+ return new Response(new Blob(["System.register([],function(e){return{execute:function(){var s=new CSSStyleSheet();s.replaceSync(" + JSON.stringify(source) + ');e("default",s)}}})'], {
2154
+ type: "application/javascript"
2155
+ }));
2156
+ });
2157
+ if (wasmContentType.test(contentType)) return (WebAssembly.compileStreaming ? WebAssembly.compileStreaming(res) : res.arrayBuffer().then(WebAssembly.compile)).then(function (module) {
2158
+ if (!global2.System.wasmModules) global2.System.wasmModules = Object.create(null);
2159
+ global2.System.wasmModules[url] = module;
2160
+ var deps = [];
2161
+ var setterSources = [];
2162
+ if (WebAssembly.Module.imports) WebAssembly.Module.imports(module).forEach(function (impt) {
2163
+ var key = JSON.stringify(impt.module);
2164
+
2165
+ if (deps.indexOf(key) === -1) {
2166
+ deps.push(key);
2167
+ setterSources.push("function(m){i[" + key + "]=m}");
2168
+ }
2169
+ });
2170
+ return new Response(new Blob(["System.register([" + deps.join(",") + "],function(e){var i={};return{setters:[" + setterSources.join(",") + "],execute:function(){return WebAssembly.instantiate(System.wasmModules[" + JSON.stringify(url) + "],i).then(function(m){e(m.exports)})}}})"], {
2171
+ type: "application/javascript"
2172
+ }));
2173
+ });
2174
+ return res;
2175
+ });
2176
+ };
2177
+ })(typeof self !== "undefined" ? self : __webpack_require__.g);
2178
+
2179
+ var toStringTag = typeof Symbol !== "undefined" && Symbol.toStringTag;
2180
+
2181
+ systemJSPrototype.get = function (id) {
2182
+ var load = this[REGISTRY][id];
2183
+
2184
+ if (load && load.e === null && !load.E) {
2185
+ if (load.er) return null;
2186
+ return load.n;
2187
+ }
2188
+ };
2189
+
2190
+ systemJSPrototype.set = function (id, module) {
2191
+ {
2192
+ try {
2193
+ new URL(id);
2194
+ } catch (err) {
2195
+ console.warn(Error(errMsg("W3", '"' + id + '" is not a valid URL to set in the module registry')));
2196
+ }
2197
+ }
2198
+ var ns;
2199
+
2200
+ if (toStringTag && module[toStringTag] === "Module") {
2201
+ ns = module;
2202
+ } else {
2203
+ ns = Object.assign(Object.create(null), module);
2204
+ if (toStringTag) Object.defineProperty(ns, toStringTag, {
2205
+ value: "Module"
2206
+ });
2207
+ }
2208
+
2209
+ var done = Promise.resolve(ns);
2210
+ var load = this[REGISTRY][id] || (this[REGISTRY][id] = {
2211
+ id: id,
2212
+ i: [],
2213
+ h: false,
2214
+ d: [],
2215
+ e: null,
2216
+ er: void 0,
2217
+ E: void 0
2218
+ });
2219
+ if (load.e || load.E) return false;
2220
+ Object.assign(load, {
2221
+ n: ns,
2222
+ I: void 0,
2223
+ L: void 0,
2224
+ C: done
2225
+ });
2226
+ return ns;
2227
+ };
2228
+
2229
+ systemJSPrototype.has = function (id) {
2230
+ var load = this[REGISTRY][id];
2231
+ return !!load;
2232
+ };
2233
+
2234
+ systemJSPrototype["delete"] = function (id) {
2235
+ var registry = this[REGISTRY];
2236
+ var load = registry[id];
2237
+ if (!load || load.p && load.p.e !== null || load.E) return false;
2238
+ var importerSetters = load.i;
2239
+ if (load.d) load.d.forEach(function (depLoad) {
2240
+ var importerIndex = depLoad.i.indexOf(load);
2241
+ if (importerIndex !== -1) depLoad.i.splice(importerIndex, 1);
2242
+ });
2243
+ delete registry[id];
2244
+ return function () {
2245
+ var load2 = registry[id];
2246
+ if (!load2 || !importerSetters || load2.e !== null || load2.E) return false;
2247
+ importerSetters.forEach(function (setter) {
2248
+ load2.i.push(setter);
2249
+ setter(load2.n);
2250
+ });
2251
+ importerSetters = null;
2252
+ };
2253
+ };
2254
+
2255
+ var iterator = typeof Symbol !== "undefined" && Symbol.iterator;
2256
+
2257
+ systemJSPrototype.entries = function () {
2258
+ var loader = this,
2259
+ keys = Object.keys(loader[REGISTRY]);
2260
+ var index = 0,
2261
+ ns,
2262
+ key;
2263
+ var result = {
2264
+ next: function next() {
2265
+ while ((key = keys[index++]) !== void 0 && (ns = loader.get(key)) === void 0) {
2266
+ ;
2267
+ }
2268
+
2269
+ return {
2270
+ done: key === void 0,
2271
+ value: key !== void 0 && [key, ns]
2272
+ };
2273
+ }
2274
+ };
2275
+
2276
+ result[iterator] = function () {
2277
+ return this;
2278
+ };
2279
+
2280
+ return result;
2281
+ };
2282
+ })(); // ../../../node_modules/systemjs/dist/extras/named-register.js
2283
+
2284
+
2285
+ (function () {
2286
+ (function (global2) {
2287
+ var System2 = global2.System;
2288
+ setRegisterRegistry(System2);
2289
+ var systemJSPrototype = System2.constructor.prototype;
2290
+ var constructor = System2.constructor;
2291
+
2292
+ var SystemJS = function SystemJS() {
2293
+ constructor.call(this);
2294
+ setRegisterRegistry(this);
2295
+ };
2296
+
2297
+ SystemJS.prototype = systemJSPrototype;
2298
+ System2.constructor = SystemJS;
2299
+ var firstNamedDefine, firstName;
2300
+
2301
+ function setRegisterRegistry(systemInstance) {
2302
+ systemInstance.registerRegistry = Object.create(null);
2303
+ systemInstance.namedRegisterAliases = Object.create(null);
2304
+ }
2305
+
2306
+ var register = systemJSPrototype.register;
2307
+
2308
+ systemJSPrototype.register = function (name, deps, declare) {
2309
+ if (typeof name !== "string") return register.apply(this, arguments);
2310
+ var define = [deps, declare];
2311
+ this.registerRegistry[name] = define;
2312
+
2313
+ if (!firstNamedDefine) {
2314
+ firstNamedDefine = define;
2315
+ firstName = name;
2316
+ }
2317
+
2318
+ Promise.resolve().then(function () {
2319
+ firstNamedDefine = null;
2320
+ firstName = null;
2321
+ });
2322
+ return register.apply(this, [deps, declare]);
2323
+ };
2324
+
2325
+ var resolve = systemJSPrototype.resolve;
2326
+
2327
+ systemJSPrototype.resolve = function (id, parentURL) {
2328
+ try {
2329
+ return resolve.call(this, id, parentURL);
2330
+ } catch (err) {
2331
+ if (id in this.registerRegistry) {
2332
+ return this.namedRegisterAliases[id] || id;
2333
+ }
2334
+
2335
+ throw err;
2336
+ }
2337
+ };
2338
+
2339
+ var instantiate = systemJSPrototype.instantiate;
2340
+
2341
+ systemJSPrototype.instantiate = function (url, firstParentUrl) {
2342
+ var result = this.registerRegistry[url];
2343
+
2344
+ if (result) {
2345
+ this.registerRegistry[url] = null;
2346
+ return result;
2347
+ } else {
2348
+ return instantiate.call(this, url, firstParentUrl);
2349
+ }
2350
+ };
2351
+
2352
+ var getRegister = systemJSPrototype.getRegister;
2353
+
2354
+ systemJSPrototype.getRegister = function (url) {
2355
+ var register2 = getRegister.call(this, url);
2356
+
2357
+ if (firstName && url) {
2358
+ this.namedRegisterAliases[firstName] = url;
2359
+ }
2360
+
2361
+ var result = firstNamedDefine || register2;
2362
+ firstNamedDefine = null;
2363
+ firstName = null;
2364
+ return result;
2365
+ };
2366
+ })(typeof self !== "undefined" ? self : __webpack_require__.g);
2367
+ })(); // ../../tooling/piral-cli/src/common/version.ts
2368
+
2369
+
2370
+ var semver = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;
2371
+ var acceptsAll = ["*", "x", ">=0"];
2372
+ var operatorResMap = {
2373
+ ">": [1],
2374
+ ">=": [0, 1],
2375
+ "=": [0],
2376
+ "<=": [-1, 0],
2377
+ "<": [-1]
2378
+ };
2379
+
2380
+ function indexOrEnd(str, q) {
2381
+ return str.indexOf(q) === -1 ? str.length : str.indexOf(q);
2382
+ }
2383
+
2384
+ function splitVersion(v) {
2385
+ var c = v.replace(/^v/, "").replace(/\+.*$/, "");
2386
+ var patchIndex = indexOrEnd(c, "-");
2387
+ var arr = c.substring(0, patchIndex).split(".");
2388
+ arr.push(c.substring(patchIndex + 1));
2389
+ return arr;
2390
+ }
2391
+
2392
+ function parseSegment(v) {
2393
+ var n = parseInt(v, 10);
2394
+ return isNaN(n) ? v : n;
2395
+ }
2396
+
2397
+ function validateAndParse(v) {
2398
+ var match = v.match(semver);
2399
+ match.shift();
2400
+ return match;
2401
+ }
2402
+
2403
+ function compareStrings(a, b) {
2404
+ var ap = parseSegment(a);
2405
+ var bp = parseSegment(b);
2406
+
2407
+ if (ap > bp) {
2408
+ return 1;
2409
+ } else if (ap < bp) {
2410
+ return -1;
2411
+ } else {
2412
+ return 0;
2413
+ }
2414
+ }
2415
+
2416
+ function compareSegments(a, b) {
2417
+ for (var i = 0; i < 2; i++) {
2418
+ var r = compareStrings(a[i] || "0", b[i] || "0");
2419
+
2420
+ if (r !== 0) {
2421
+ return r;
2422
+ }
2423
+ }
2424
+
2425
+ return 0;
2426
+ }
2427
+
2428
+ function compareVersions(v1, v2) {
2429
+ var s1 = splitVersion(v1);
2430
+ var s2 = splitVersion(v2);
2431
+ var len = Math.max(s1.length - 1, s2.length - 1);
2432
+
2433
+ for (var i = 0; i < len; i++) {
2434
+ var n1 = parseInt(s1[i] || "0", 10);
2435
+ var n2 = parseInt(s2[i] || "0", 10);
2436
+
2437
+ if (n1 > n2) {
2438
+ return 1;
2439
+ } else if (n2 > n1) {
2440
+ return -1;
2441
+ }
2442
+ }
2443
+
2444
+ var sp1 = s1[s1.length - 1];
2445
+ var sp2 = s2[s2.length - 1];
2446
+
2447
+ if (sp1 && sp2) {
2448
+ var p1 = sp1.split(".").map(parseSegment);
2449
+ var p2 = sp2.split(".").map(parseSegment);
2450
+ var len2 = Math.max(p1.length, p2.length);
2451
+
2452
+ for (var _i = 0; _i < len2; _i++) {
2453
+ if (p1[_i] === void 0 || typeof p2[_i] === "string" && typeof p1[_i] === "number") {
2454
+ return -1;
2455
+ } else if (p2[_i] === void 0 || typeof p1[_i] === "string" && typeof p2[_i] === "number") {
2456
+ return 1;
2457
+ } else if (p1[_i] > p2[_i]) {
2458
+ return 1;
2459
+ } else if (p2[_i] > p1[_i]) {
2460
+ return -1;
2461
+ }
2462
+ }
2463
+ } else if (sp1 || sp2) {
2464
+ return sp1 ? -1 : 1;
2465
+ }
2466
+
2467
+ return 0;
2468
+ }
2469
+
2470
+ function compare(v1, v2, operator) {
2471
+ var res = compareVersions(v1, v2);
2472
+ return operatorResMap[operator].indexOf(res) > -1;
2473
+ }
2474
+
2475
+ function validate(version) {
2476
+ return acceptsAll.includes(version) || semver.test(version);
2477
+ }
2478
+
2479
+ function satisfies(v, r) {
2480
+ if (!acceptsAll.includes(r)) {
2481
+ var match = r.match(/^([<>=~^]+)/);
2482
+ var op = match ? match[1] : "=";
2483
+
2484
+ if (op !== "^" && op !== "~") {
2485
+ return compare(v, r, op);
2486
+ }
2487
+
2488
+ var _validateAndParse = validateAndParse(v),
2489
+ _validateAndParse2 = _slicedToArray(_validateAndParse, 3),
2490
+ v1 = _validateAndParse2[0],
2491
+ v2 = _validateAndParse2[1],
2492
+ v3 = _validateAndParse2[2];
2493
+
2494
+ var _validateAndParse3 = validateAndParse(r),
2495
+ _validateAndParse4 = _slicedToArray(_validateAndParse3, 3),
2496
+ m1 = _validateAndParse4[0],
2497
+ m2 = _validateAndParse4[1],
2498
+ m3 = _validateAndParse4[2];
2499
+
2500
+ if (compareStrings(v1, m1) !== 0) {
2501
+ return false;
2502
+ } else if (op === "^") {
2503
+ return compareSegments([v2, v3], [m2, m3]) >= 0;
2504
+ } else if (compareStrings(v2, m2) !== 0) {
2505
+ return false;
2506
+ }
2507
+
2508
+ return compareStrings(v3, m3) >= 0;
2509
+ }
2510
+
2511
+ return true;
2512
+ } // src/utils/system.ts
2513
+
2514
+
2515
+ var systemResolve = System.constructor.prototype.resolve;
2516
+ var systemRegister = System.constructor.prototype.register;
2517
+
2518
+ function getLoadedVersions(prefix) {
2519
+ return _toConsumableArray(System.entries()).filter(function (_ref) {
2520
+ var _ref2 = _slicedToArray(_ref, 1),
2521
+ name = _ref2[0];
2522
+
2523
+ return name.startsWith(prefix);
2524
+ }).map(function (_ref3) {
2525
+ var _ref4 = _slicedToArray(_ref3, 1),
2526
+ name = _ref4[0];
2527
+
2528
+ return name.substring(prefix.length);
2529
+ });
2530
+ }
2531
+
2532
+ function findMatchingPackage(id) {
2533
+ var sep = id.indexOf("@", 1);
2534
+
2535
+ if (sep > 1) {
2536
+ var available = Object.keys(System.registerRegistry);
2537
+ var name = id.substring(0, sep + 1);
2538
+ var versionSpec = id.substring(sep + 1);
2539
+
2540
+ if (validate(versionSpec)) {
2541
+ var loadedVersions = getLoadedVersions(name);
2542
+ var allVersions = available.filter(function (m) {
2543
+ return m.startsWith(name);
2544
+ }).map(function (m) {
2545
+ return m.substring(name.length);
2546
+ });
2547
+ var availableVersions = [].concat(_toConsumableArray(loadedVersions), _toConsumableArray(allVersions.filter(function (m) {
2548
+ return !loadedVersions.includes(m);
2549
+ })));
2550
+
2551
+ var _iterator = _createForOfIteratorHelper(availableVersions),
2552
+ _step;
2553
+
2554
+ try {
2555
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
2556
+ var availableVersion = _step.value;
2557
+
2558
+ if (validate(availableVersion) && satisfies(availableVersion, versionSpec)) {
2559
+ return name + availableVersion;
2560
+ }
2561
+ }
2562
+ } catch (err) {
2563
+ _iterator.e(err);
2564
+ } finally {
2565
+ _iterator.f();
2566
+ }
2567
+ }
2568
+ }
2569
+
2570
+ return void 0;
2571
+ }
2572
+
2573
+ function isPrimitiveExport(content) {
2574
+ var type = _typeof(content);
2575
+
2576
+ return type === "number" || type === "boolean" || type === "symbol" || type === "string" || type === "bigint" || Array.isArray(content);
2577
+ }
2578
+
2579
+ System.constructor.prototype.resolve = function (id, parentUrl) {
2580
+ try {
2581
+ return systemResolve.call(this, id, parentUrl);
2582
+ } catch (ex) {
2583
+ var result = findMatchingPackage(id);
2584
+
2585
+ if (!result) {
2586
+ throw ex;
2587
+ }
2588
+
2589
+ return result;
2590
+ }
2591
+ };
2592
+
2593
+ System.constructor.prototype.register = function () {
2594
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2595
+ args[_key] = arguments[_key];
2596
+ }
2597
+
2598
+ var getContent = args.pop();
2599
+ args.push(function (_export, ctx) {
2600
+ var exp = function exp() {
2601
+ if (arguments.length === 1) {
2602
+ var content = arguments.length <= 0 ? undefined : arguments[0];
2603
+
2604
+ if (content instanceof Promise) {
2605
+ return content.then(exp);
2606
+ } else if (typeof content === "function") {
2607
+ _export("__esModule", true);
2608
+
2609
+ Object.keys(content).forEach(function (prop) {
2610
+ _export(prop, content[prop]);
2611
+ });
2612
+
2613
+ _export("default", content);
2614
+ } else if (isPrimitiveExport(content)) {
2615
+ _export("__esModule", true);
2616
+
2617
+ _export("default", content);
2618
+ } else if (content) {
2619
+ _export(content);
2620
+
2621
+ if (_typeof(content) === "object" && !("default" in content)) {
2622
+ _export("default", content);
2623
+ }
2624
+ }
2625
+ } else {
2626
+ _export.apply(void 0, arguments);
2627
+ }
2628
+ };
2629
+
2630
+ return getContent(exp, ctx);
2631
+ });
2632
+ return systemRegister.apply(this, args);
2633
+ };
2634
+
2635
+ function tryResolve(name, parent) {
2636
+ try {
2637
+ return System.resolve(name, parent);
2638
+ } catch (e) {
2639
+ return void 0;
2640
+ }
2641
+ }
2642
+
2643
+ function registerDependencies(modules) {
2644
+ var moduleNames = Object.keys(modules);
2645
+ moduleNames.forEach(function (name) {
2646
+ return registerModule(name, function () {
2647
+ return modules[name];
2648
+ });
2649
+ });
2650
+ return Promise.all(moduleNames.map(function (name) {
2651
+ return System["import"](name);
2652
+ }));
2653
+ }
2654
+
2655
+ function registerModule(name, resolve) {
2656
+ System.register(name, [], function (_exports) {
2657
+ return {
2658
+ execute: function execute() {
2659
+ var content = resolve();
2660
+
2661
+ if (content instanceof Promise) {
2662
+ return content.then(_exports);
2663
+ } else {
2664
+ _exports(content);
2665
+ }
2666
+ }
2667
+ };
2668
+ });
2669
+ }
2670
+
2671
+ function unregisterModules(baseUrl, dependencies) {
2672
+ _toConsumableArray(System.entries()).map(function (_ref5) {
2673
+ var _ref6 = _slicedToArray(_ref5, 1),
2674
+ name = _ref6[0];
2675
+
2676
+ return name;
2677
+ }).filter(function (name) {
2678
+ return name.startsWith(baseUrl) && !dependencies.includes(name);
2679
+ }).forEach(function (name) {
2680
+ return System["delete"](name);
2681
+ });
2682
+ }
2683
+
2684
+ function requireModule(name, parent) {
2685
+ var moduleId = tryResolve(name, parent);
2686
+ var dependency = moduleId && System.get(moduleId);
2687
+
2688
+ if (!dependency) {
2689
+ var error = new Error("Cannot find module '".concat(name, "'"));
2690
+ error.code = "MODULE_NOT_FOUND";
2691
+ throw error;
2692
+ }
2693
+
2694
+ return dependency;
2695
+ }
2696
+
2697
+
2698
+
2699
+ /***/ }),
2700
+
2701
+ /***/ "../../../node_modules/tslib/tslib.es6.js":
2702
+ /*!************************************************!*\
2703
+ !*** ../../../node_modules/tslib/tslib.es6.js ***!
2704
+ \************************************************/
2705
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2706
+
2707
+ __webpack_require__.r(__webpack_exports__);
2708
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2709
+ /* harmony export */ "__assign": () => (/* binding */ __assign),
2710
+ /* harmony export */ "__asyncDelegator": () => (/* binding */ __asyncDelegator),
2711
+ /* harmony export */ "__asyncGenerator": () => (/* binding */ __asyncGenerator),
2712
+ /* harmony export */ "__asyncValues": () => (/* binding */ __asyncValues),
2713
+ /* harmony export */ "__await": () => (/* binding */ __await),
2714
+ /* harmony export */ "__awaiter": () => (/* binding */ __awaiter),
2715
+ /* harmony export */ "__classPrivateFieldGet": () => (/* binding */ __classPrivateFieldGet),
2716
+ /* harmony export */ "__classPrivateFieldSet": () => (/* binding */ __classPrivateFieldSet),
2717
+ /* harmony export */ "__createBinding": () => (/* binding */ __createBinding),
2718
+ /* harmony export */ "__decorate": () => (/* binding */ __decorate),
2719
+ /* harmony export */ "__exportStar": () => (/* binding */ __exportStar),
2720
+ /* harmony export */ "__extends": () => (/* binding */ __extends),
2721
+ /* harmony export */ "__generator": () => (/* binding */ __generator),
2722
+ /* harmony export */ "__importDefault": () => (/* binding */ __importDefault),
2723
+ /* harmony export */ "__importStar": () => (/* binding */ __importStar),
2724
+ /* harmony export */ "__makeTemplateObject": () => (/* binding */ __makeTemplateObject),
2725
+ /* harmony export */ "__metadata": () => (/* binding */ __metadata),
2726
+ /* harmony export */ "__param": () => (/* binding */ __param),
2727
+ /* harmony export */ "__read": () => (/* binding */ __read),
2728
+ /* harmony export */ "__rest": () => (/* binding */ __rest),
2729
+ /* harmony export */ "__spread": () => (/* binding */ __spread),
2730
+ /* harmony export */ "__spreadArray": () => (/* binding */ __spreadArray),
2731
+ /* harmony export */ "__spreadArrays": () => (/* binding */ __spreadArrays),
2732
+ /* harmony export */ "__values": () => (/* binding */ __values)
2733
+ /* harmony export */ });
2734
+ /*! *****************************************************************************
2735
+ Copyright (c) Microsoft Corporation.
2736
+
2737
+ Permission to use, copy, modify, and/or distribute this software for any
2738
+ purpose with or without fee is hereby granted.
2739
+
2740
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
2741
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2742
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
2743
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2744
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
2745
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2746
+ PERFORMANCE OF THIS SOFTWARE.
2747
+ ***************************************************************************** */
2748
+ /* global Reflect, Promise */
2749
+
2750
+ var extendStatics = function(d, b) {
2751
+ extendStatics = Object.setPrototypeOf ||
2752
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2753
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
2754
+ return extendStatics(d, b);
2755
+ };
2756
+
2757
+ function __extends(d, b) {
2758
+ if (typeof b !== "function" && b !== null)
2759
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
2760
+ extendStatics(d, b);
2761
+ function __() { this.constructor = d; }
2762
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2763
+ }
2764
+
2765
+ var __assign = function() {
2766
+ __assign = Object.assign || function __assign(t) {
2767
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
2768
+ s = arguments[i];
2769
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
2770
+ }
2771
+ return t;
2772
+ }
2773
+ return __assign.apply(this, arguments);
2774
+ }
2775
+
2776
+ function __rest(s, e) {
2777
+ var t = {};
2778
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
2779
+ t[p] = s[p];
2780
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
2781
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
2782
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
2783
+ t[p[i]] = s[p[i]];
2784
+ }
2785
+ return t;
2786
+ }
2787
+
2788
+ function __decorate(decorators, target, key, desc) {
2789
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2790
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2791
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
2792
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
2793
+ }
2794
+
2795
+ function __param(paramIndex, decorator) {
2796
+ return function (target, key) { decorator(target, key, paramIndex); }
2797
+ }
2798
+
2799
+ function __metadata(metadataKey, metadataValue) {
2800
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
2801
+ }
2802
+
2803
+ function __awaiter(thisArg, _arguments, P, generator) {
2804
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
2805
+ return new (P || (P = Promise))(function (resolve, reject) {
2806
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
2807
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
2808
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
2809
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
2810
+ });
2811
+ }
2812
+
2813
+ function __generator(thisArg, body) {
2814
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
2815
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
2816
+ function verb(n) { return function (v) { return step([n, v]); }; }
2817
+ function step(op) {
2818
+ if (f) throw new TypeError("Generator is already executing.");
2819
+ while (_) try {
2820
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
2821
+ if (y = 0, t) op = [op[0] & 2, t.value];
2822
+ switch (op[0]) {
2823
+ case 0: case 1: t = op; break;
2824
+ case 4: _.label++; return { value: op[1], done: false };
2825
+ case 5: _.label++; y = op[1]; op = [0]; continue;
2826
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
2827
+ default:
2828
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
2829
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
2830
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
2831
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
2832
+ if (t[2]) _.ops.pop();
2833
+ _.trys.pop(); continue;
2834
+ }
2835
+ op = body.call(thisArg, _);
2836
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
2837
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
2838
+ }
2839
+ }
2840
+
2841
+ var __createBinding = Object.create ? (function(o, m, k, k2) {
2842
+ if (k2 === undefined) k2 = k;
2843
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
2844
+ }) : (function(o, m, k, k2) {
2845
+ if (k2 === undefined) k2 = k;
2846
+ o[k2] = m[k];
2847
+ });
2848
+
2849
+ function __exportStar(m, o) {
2850
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
2851
+ }
2852
+
2853
+ function __values(o) {
2854
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
2855
+ if (m) return m.call(o);
2856
+ if (o && typeof o.length === "number") return {
2857
+ next: function () {
2858
+ if (o && i >= o.length) o = void 0;
2859
+ return { value: o && o[i++], done: !o };
2860
+ }
2861
+ };
2862
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
2863
+ }
2864
+
2865
+ function __read(o, n) {
2866
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
2867
+ if (!m) return o;
2868
+ var i = m.call(o), r, ar = [], e;
2869
+ try {
2870
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
2871
+ }
2872
+ catch (error) { e = { error: error }; }
2873
+ finally {
2874
+ try {
2875
+ if (r && !r.done && (m = i["return"])) m.call(i);
2876
+ }
2877
+ finally { if (e) throw e.error; }
2878
+ }
2879
+ return ar;
2880
+ }
2881
+
2882
+ /** @deprecated */
2883
+ function __spread() {
2884
+ for (var ar = [], i = 0; i < arguments.length; i++)
2885
+ ar = ar.concat(__read(arguments[i]));
2886
+ return ar;
2887
+ }
2888
+
2889
+ /** @deprecated */
2890
+ function __spreadArrays() {
2891
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
2892
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
2893
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
2894
+ r[k] = a[j];
2895
+ return r;
2896
+ }
2897
+
2898
+ function __spreadArray(to, from, pack) {
2899
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
2900
+ if (ar || !(i in from)) {
2901
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
2902
+ ar[i] = from[i];
2903
+ }
2904
+ }
2905
+ return to.concat(ar || Array.prototype.slice.call(from));
2906
+ }
2907
+
2908
+ function __await(v) {
2909
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
2910
+ }
2911
+
2912
+ function __asyncGenerator(thisArg, _arguments, generator) {
2913
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
2914
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
2915
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
2916
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
2917
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
2918
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
2919
+ function fulfill(value) { resume("next", value); }
2920
+ function reject(value) { resume("throw", value); }
2921
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
2922
+ }
2923
+
2924
+ function __asyncDelegator(o) {
2925
+ var i, p;
2926
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
2927
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
2928
+ }
2929
+
2930
+ function __asyncValues(o) {
2931
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
2932
+ var m = o[Symbol.asyncIterator], i;
2933
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
2934
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
2935
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
2936
+ }
2937
+
2938
+ function __makeTemplateObject(cooked, raw) {
2939
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
2940
+ return cooked;
2941
+ };
2942
+
2943
+ var __setModuleDefault = Object.create ? (function(o, v) {
2944
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
2945
+ }) : function(o, v) {
2946
+ o["default"] = v;
2947
+ };
2948
+
2949
+ function __importStar(mod) {
2950
+ if (mod && mod.__esModule) return mod;
2951
+ var result = {};
2952
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
2953
+ __setModuleDefault(result, mod);
2954
+ return result;
2955
+ }
2956
+
2957
+ function __importDefault(mod) {
2958
+ return (mod && mod.__esModule) ? mod : { default: mod };
2959
+ }
2960
+
2961
+ function __classPrivateFieldGet(receiver, state, kind, f) {
2962
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
2963
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
2964
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
2965
+ }
2966
+
2967
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
2968
+ if (kind === "m") throw new TypeError("Private method is not writable");
2969
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
2970
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
2971
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
2972
+ }
2973
+
2974
+
2975
+ /***/ })
2976
+
2977
+ /******/ });
2978
+ /************************************************************************/
2979
+ /******/ // The module cache
2980
+ /******/ var __webpack_module_cache__ = {};
2981
+ /******/
2982
+ /******/ // The require function
2983
+ /******/ function __webpack_require__(moduleId) {
2984
+ /******/ // Check if module is in cache
2985
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
2986
+ /******/ if (cachedModule !== undefined) {
2987
+ /******/ return cachedModule.exports;
2988
+ /******/ }
2989
+ /******/ // Create a new module (and put it into the cache)
2990
+ /******/ var module = __webpack_module_cache__[moduleId] = {
2991
+ /******/ // no module.id needed
2992
+ /******/ // no module.loaded needed
2993
+ /******/ exports: {}
2994
+ /******/ };
2995
+ /******/
2996
+ /******/ // Execute the module function
2997
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
2998
+ /******/
2999
+ /******/ // Return the exports of the module
3000
+ /******/ return module.exports;
3001
+ /******/ }
3002
+ /******/
3003
+ /************************************************************************/
3004
+ /******/ /* webpack/runtime/define property getters */
3005
+ /******/ (() => {
3006
+ /******/ // define getter functions for harmony exports
3007
+ /******/ __webpack_require__.d = (exports, definition) => {
3008
+ /******/ for(var key in definition) {
3009
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
3010
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
3011
+ /******/ }
3012
+ /******/ }
3013
+ /******/ };
3014
+ /******/ })();
3015
+ /******/
3016
+ /******/ /* webpack/runtime/global */
3017
+ /******/ (() => {
3018
+ /******/ __webpack_require__.g = (function() {
3019
+ /******/ if (typeof globalThis === 'object') return globalThis;
3020
+ /******/ try {
3021
+ /******/ return this || new Function('return this')();
3022
+ /******/ } catch (e) {
3023
+ /******/ if (typeof window === 'object') return window;
3024
+ /******/ }
3025
+ /******/ })();
3026
+ /******/ })();
3027
+ /******/
3028
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
3029
+ /******/ (() => {
3030
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
3031
+ /******/ })();
3032
+ /******/
3033
+ /******/ /* webpack/runtime/make namespace object */
3034
+ /******/ (() => {
3035
+ /******/ // define __esModule on exports
3036
+ /******/ __webpack_require__.r = (exports) => {
3037
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
3038
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3039
+ /******/ }
3040
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
3041
+ /******/ };
3042
+ /******/ })();
3043
+ /******/
3044
+ /************************************************************************/
3045
+ var __webpack_exports__ = {};
3046
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
3047
+ (() => {
3048
+ /*!***********************!*\
3049
+ !*** ./src/index.tsx ***!
3050
+ \***********************/
3051
+ __webpack_require__.r(__webpack_exports__);
3052
+ /* harmony import */ var piral_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! piral-base */ "../../framework/piral-base/esm/events.js");
3053
+ /* harmony import */ var piral_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! piral-base */ "../../framework/piral-base/esm/create.js");
3054
+ /* harmony import */ var piral_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! piral-base */ "../../framework/piral-base/esm/api.js");
3055
+
3056
+ var events = (0,piral_base__WEBPACK_IMPORTED_MODULE_0__.createListener)();
3057
+ (0,piral_base__WEBPACK_IMPORTED_MODULE_1__.startLoadingPilets)({
3058
+ createApi: function createApi(target) {
3059
+ return (0,piral_base__WEBPACK_IMPORTED_MODULE_2__.initializeApi)(target, events);
3060
+ },
3061
+ fetchPilets: function fetchPilets() {
3062
+ return Promise.resolve([]);
3063
+ }
3064
+ });
3065
+ })();
3066
+
3067
+ /******/ })()
3068
+ ;
3069
+ //# sourceMappingURL=index.d5cec2.js.map