minimal-piral 0.15.0-beta.4696 → 0.15.0-beta.4708
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/{index.21c15a.js → index.53636e.js} +2018 -2278
- package/app/index.53636e.js.map +1 -0
- package/app/index.html +1 -1
- package/app/index.js +1 -1
- package/files.tar +0 -0
- package/files_once.tar +0 -0
- package/package.json +1 -1
- package/app/index.21c15a.js.map +0 -1
|
@@ -1450,437 +1450,1294 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1450
1450
|
/* harmony export */ "requireModule": () => (/* binding */ requireModule),
|
|
1451
1451
|
/* harmony export */ "unregisterModules": () => (/* binding */ unregisterModules)
|
|
1452
1452
|
/* harmony export */ });
|
|
1453
|
-
/* harmony import */ var systemjs_dist_system_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! systemjs/dist/system.js */ "../../../node_modules/systemjs/dist/system.js");
|
|
1454
|
-
/* harmony import */ var systemjs_dist_system_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(systemjs_dist_system_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
1455
|
-
/* harmony import */ var systemjs_dist_extras_named_register_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! systemjs/dist/extras/named-register.js */ "../../../node_modules/systemjs/dist/extras/named-register.js");
|
|
1456
|
-
/* harmony import */ var systemjs_dist_extras_named_register_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(systemjs_dist_extras_named_register_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
1457
|
-
/* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./version */ "../../framework/piral-base/esm/utils/version.js");
|
|
1458
1453
|
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); }
|
|
1459
1454
|
|
|
1460
1455
|
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; } } }; }
|
|
1461
1456
|
|
|
1462
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
1463
|
-
|
|
1464
|
-
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."); }
|
|
1465
|
-
|
|
1466
|
-
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; }
|
|
1467
|
-
|
|
1468
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
1469
|
-
|
|
1470
1457
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
1471
1458
|
|
|
1472
1459
|
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."); }
|
|
1473
1460
|
|
|
1474
|
-
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); }
|
|
1475
|
-
|
|
1476
1461
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
1477
1462
|
|
|
1478
1463
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
1479
1464
|
|
|
1480
|
-
function
|
|
1465
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
1481
1466
|
|
|
1467
|
+
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."); }
|
|
1482
1468
|
|
|
1469
|
+
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); }
|
|
1483
1470
|
|
|
1471
|
+
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; }
|
|
1484
1472
|
|
|
1485
|
-
var
|
|
1486
|
-
var systemRegister = System.constructor.prototype.register;
|
|
1473
|
+
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; }
|
|
1487
1474
|
|
|
1488
|
-
function
|
|
1489
|
-
return _toConsumableArray(System.entries()).filter(function (_ref) {
|
|
1490
|
-
var _ref2 = _slicedToArray(_ref, 1),
|
|
1491
|
-
name = _ref2[0];
|
|
1475
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
1492
1476
|
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1477
|
+
// ../../../node_modules/systemjs/dist/system.js
|
|
1478
|
+
(function () {
|
|
1479
|
+
function errMsg(errCode, msg) {
|
|
1480
|
+
return (msg || "") + " (SystemJS Error#" + errCode + " https://git.io/JvFET#" + errCode + ")";
|
|
1481
|
+
}
|
|
1497
1482
|
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1483
|
+
var hasSymbol = typeof Symbol !== "undefined";
|
|
1484
|
+
var hasSelf = typeof self !== "undefined";
|
|
1485
|
+
var hasDocument = typeof document !== "undefined";
|
|
1486
|
+
var envGlobal = hasSelf ? self : __webpack_require__.g;
|
|
1487
|
+
var baseUrl;
|
|
1501
1488
|
|
|
1502
|
-
|
|
1503
|
-
|
|
1489
|
+
if (hasDocument) {
|
|
1490
|
+
var baseEl = document.querySelector("base[href]");
|
|
1491
|
+
if (baseEl) baseUrl = baseEl.href;
|
|
1492
|
+
}
|
|
1504
1493
|
|
|
1505
|
-
if (
|
|
1506
|
-
|
|
1507
|
-
var
|
|
1508
|
-
|
|
1494
|
+
if (!baseUrl && typeof location !== "undefined") {
|
|
1495
|
+
baseUrl = location.href.split("#")[0].split("?")[0];
|
|
1496
|
+
var lastSepIndex = baseUrl.lastIndexOf("/");
|
|
1497
|
+
if (lastSepIndex !== -1) baseUrl = baseUrl.slice(0, lastSepIndex + 1);
|
|
1498
|
+
}
|
|
1509
1499
|
|
|
1510
|
-
|
|
1511
|
-
var loadedVersions = getLoadedVersions(name);
|
|
1512
|
-
var allVersions = available.filter(function (m) {
|
|
1513
|
-
return m.startsWith(name);
|
|
1514
|
-
}).map(function (m) {
|
|
1515
|
-
return m.substring(name.length);
|
|
1516
|
-
}); // Moves the loaded versions to the top
|
|
1500
|
+
var backslashRegEx = /\\/g;
|
|
1517
1501
|
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
})));
|
|
1502
|
+
function resolveIfNotPlainOrUrl(relUrl, parentUrl) {
|
|
1503
|
+
if (relUrl.indexOf("\\") !== -1) relUrl = relUrl.replace(backslashRegEx, "/");
|
|
1521
1504
|
|
|
1522
|
-
|
|
1523
|
-
|
|
1505
|
+
if (relUrl[0] === "/" && relUrl[1] === "/") {
|
|
1506
|
+
return parentUrl.slice(0, parentUrl.indexOf(":") + 1) + relUrl;
|
|
1507
|
+
} else if (relUrl[0] === "." && (relUrl[1] === "/" || relUrl[1] === "." && (relUrl[2] === "/" || relUrl.length === 2 && (relUrl += "/")) || relUrl.length === 1 && (relUrl += "/")) || relUrl[0] === "/") {
|
|
1508
|
+
var parentProtocol = parentUrl.slice(0, parentUrl.indexOf(":") + 1);
|
|
1509
|
+
var pathname;
|
|
1524
1510
|
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1511
|
+
if (parentUrl[parentProtocol.length + 1] === "/") {
|
|
1512
|
+
if (parentProtocol !== "file:") {
|
|
1513
|
+
pathname = parentUrl.slice(parentProtocol.length + 2);
|
|
1514
|
+
pathname = pathname.slice(pathname.indexOf("/") + 1);
|
|
1515
|
+
} else {
|
|
1516
|
+
pathname = parentUrl.slice(8);
|
|
1517
|
+
}
|
|
1518
|
+
} else {
|
|
1519
|
+
pathname = parentUrl.slice(parentProtocol.length + (parentUrl[parentProtocol.length] === "/"));
|
|
1520
|
+
}
|
|
1528
1521
|
|
|
1529
|
-
|
|
1530
|
-
|
|
1522
|
+
if (relUrl[0] === "/") return parentUrl.slice(0, parentUrl.length - pathname.length - 1) + relUrl;
|
|
1523
|
+
var segmented = pathname.slice(0, pathname.lastIndexOf("/") + 1) + relUrl;
|
|
1524
|
+
var output = [];
|
|
1525
|
+
var segmentIndex = -1;
|
|
1526
|
+
|
|
1527
|
+
for (var i = 0; i < segmented.length; i++) {
|
|
1528
|
+
if (segmentIndex !== -1) {
|
|
1529
|
+
if (segmented[i] === "/") {
|
|
1530
|
+
output.push(segmented.slice(segmentIndex, i + 1));
|
|
1531
|
+
segmentIndex = -1;
|
|
1531
1532
|
}
|
|
1533
|
+
} else if (segmented[i] === ".") {
|
|
1534
|
+
if (segmented[i + 1] === "." && (segmented[i + 2] === "/" || i + 2 === segmented.length)) {
|
|
1535
|
+
output.pop();
|
|
1536
|
+
i += 2;
|
|
1537
|
+
} else if (segmented[i + 1] === "/" || i + 1 === segmented.length) {
|
|
1538
|
+
i += 1;
|
|
1539
|
+
} else {
|
|
1540
|
+
segmentIndex = i;
|
|
1541
|
+
}
|
|
1542
|
+
} else {
|
|
1543
|
+
segmentIndex = i;
|
|
1532
1544
|
}
|
|
1533
|
-
} catch (err) {
|
|
1534
|
-
_iterator.e(err);
|
|
1535
|
-
} finally {
|
|
1536
|
-
_iterator.f();
|
|
1537
1545
|
}
|
|
1546
|
+
|
|
1547
|
+
if (segmentIndex !== -1) output.push(segmented.slice(segmentIndex));
|
|
1548
|
+
return parentUrl.slice(0, parentUrl.length - pathname.length) + output.join("");
|
|
1538
1549
|
}
|
|
1539
1550
|
}
|
|
1540
1551
|
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
function tryResolve(name, parent) {
|
|
1545
|
-
try {
|
|
1546
|
-
return System.resolve(name, parent);
|
|
1547
|
-
} catch (_a) {
|
|
1548
|
-
// just ignore - will be handled differently later.
|
|
1549
|
-
return undefined;
|
|
1552
|
+
function resolveUrl(relUrl, parentUrl) {
|
|
1553
|
+
return resolveIfNotPlainOrUrl(relUrl, parentUrl) || (relUrl.indexOf(":") !== -1 ? relUrl : resolveIfNotPlainOrUrl("./" + relUrl, parentUrl));
|
|
1550
1554
|
}
|
|
1551
|
-
}
|
|
1552
1555
|
|
|
1553
|
-
function
|
|
1554
|
-
|
|
1556
|
+
function resolveAndComposePackages(packages, outPackages, baseUrl2, parentMap, parentUrl) {
|
|
1557
|
+
for (var p in packages) {
|
|
1558
|
+
var resolvedLhs = resolveIfNotPlainOrUrl(p, baseUrl2) || p;
|
|
1559
|
+
var rhs = packages[p];
|
|
1560
|
+
if (typeof rhs !== "string") continue;
|
|
1561
|
+
var mapped = resolveImportMap(parentMap, resolveIfNotPlainOrUrl(rhs, baseUrl2) || rhs, parentUrl);
|
|
1555
1562
|
|
|
1556
|
-
|
|
1557
|
-
|
|
1563
|
+
if (!mapped) {
|
|
1564
|
+
targetWarning("W1", p, rhs, "bare specifier did not resolve");
|
|
1565
|
+
} else outPackages[resolvedLhs] = mapped;
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1558
1568
|
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
} catch (ex) {
|
|
1563
|
-
var result = findMatchingPackage(id);
|
|
1569
|
+
function resolveAndComposeImportMap(json, baseUrl2, outMap) {
|
|
1570
|
+
if (json.imports) resolveAndComposePackages(json.imports, outMap.imports, baseUrl2, outMap, null);
|
|
1571
|
+
var u;
|
|
1564
1572
|
|
|
1565
|
-
|
|
1566
|
-
|
|
1573
|
+
for (u in json.scopes || {}) {
|
|
1574
|
+
var resolvedScope = resolveUrl(u, baseUrl2);
|
|
1575
|
+
resolveAndComposePackages(json.scopes[u], outMap.scopes[resolvedScope] || (outMap.scopes[resolvedScope] = {}), baseUrl2, outMap, resolvedScope);
|
|
1567
1576
|
}
|
|
1568
1577
|
|
|
1569
|
-
|
|
1578
|
+
for (u in json.depcache || {}) {
|
|
1579
|
+
outMap.depcache[resolveUrl(u, baseUrl2)] = json.depcache[u];
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
for (u in json.integrity || {}) {
|
|
1583
|
+
outMap.integrity[resolveUrl(u, baseUrl2)] = json.integrity[u];
|
|
1584
|
+
}
|
|
1570
1585
|
}
|
|
1571
|
-
};
|
|
1572
1586
|
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1587
|
+
function getMatch(path, matchObj) {
|
|
1588
|
+
if (matchObj[path]) return path;
|
|
1589
|
+
var sepIndex = path.length;
|
|
1590
|
+
|
|
1591
|
+
do {
|
|
1592
|
+
var segment = path.slice(0, sepIndex + 1);
|
|
1593
|
+
if (segment in matchObj) return segment;
|
|
1594
|
+
} while ((sepIndex = path.lastIndexOf("/", sepIndex - 1)) !== -1);
|
|
1576
1595
|
}
|
|
1577
1596
|
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
var exp = function exp() {
|
|
1581
|
-
if (arguments.length === 1) {
|
|
1582
|
-
var content = arguments.length <= 0 ? undefined : arguments[0];
|
|
1597
|
+
function applyPackages(id, packages) {
|
|
1598
|
+
var pkgName = getMatch(id, packages);
|
|
1583
1599
|
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
_export('__esModule', true);
|
|
1600
|
+
if (pkgName) {
|
|
1601
|
+
var pkg = packages[pkgName];
|
|
1602
|
+
if (pkg === null) return;
|
|
1588
1603
|
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1604
|
+
if (id.length > pkgName.length && pkg[pkg.length - 1] !== "/") {
|
|
1605
|
+
targetWarning("W2", pkgName, pkg, "should have a trailing '/'");
|
|
1606
|
+
} else return pkg + id.slice(pkgName.length);
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1592
1609
|
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1610
|
+
function targetWarning(code, match, target, msg) {
|
|
1611
|
+
console.warn(errMsg(code, "Package target " + msg + ", resolving target '" + target + "' for " + match));
|
|
1612
|
+
}
|
|
1596
1613
|
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1614
|
+
function resolveImportMap(importMap2, resolvedOrPlain, parentUrl) {
|
|
1615
|
+
var scopes = importMap2.scopes;
|
|
1616
|
+
var scopeUrl = parentUrl && getMatch(parentUrl, scopes);
|
|
1600
1617
|
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
_export.apply(void 0, arguments);
|
|
1607
|
-
}
|
|
1608
|
-
};
|
|
1618
|
+
while (scopeUrl) {
|
|
1619
|
+
var packageResolution = applyPackages(resolvedOrPlain, scopes[scopeUrl]);
|
|
1620
|
+
if (packageResolution) return packageResolution;
|
|
1621
|
+
scopeUrl = getMatch(scopeUrl.slice(0, scopeUrl.lastIndexOf("/")), scopes);
|
|
1622
|
+
}
|
|
1609
1623
|
|
|
1610
|
-
return
|
|
1611
|
-
}
|
|
1612
|
-
return systemRegister.apply(this, args);
|
|
1613
|
-
};
|
|
1614
|
-
/**
|
|
1615
|
-
* Registers all static global dependencies in the system.
|
|
1616
|
-
* @param modules The modules to register as dependencies.
|
|
1617
|
-
* @returns A promise when SystemJS included all dependencies.
|
|
1618
|
-
*/
|
|
1624
|
+
return applyPackages(resolvedOrPlain, importMap2.imports) || resolvedOrPlain.indexOf(":") !== -1 && resolvedOrPlain;
|
|
1625
|
+
}
|
|
1619
1626
|
|
|
1627
|
+
var toStringTag$1 = hasSymbol && Symbol.toStringTag;
|
|
1628
|
+
var REGISTRY = hasSymbol ? Symbol() : "@";
|
|
1620
1629
|
|
|
1621
|
-
function
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1630
|
+
function SystemJS() {
|
|
1631
|
+
this[REGISTRY] = {};
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
var systemJSPrototype = SystemJS.prototype;
|
|
1635
|
+
|
|
1636
|
+
systemJSPrototype["import"] = function (id, parentUrl) {
|
|
1637
|
+
var loader = this;
|
|
1638
|
+
return Promise.resolve(loader.prepareImport()).then(function () {
|
|
1639
|
+
return loader.resolve(id, parentUrl);
|
|
1640
|
+
}).then(function (id2) {
|
|
1641
|
+
var load = getOrCreateLoad(loader, id2);
|
|
1642
|
+
return load.C || topLevelLoad(loader, load);
|
|
1626
1643
|
});
|
|
1627
|
-
}
|
|
1628
|
-
return Promise.all(moduleNames.map(function (name) {
|
|
1629
|
-
return System["import"](name);
|
|
1630
|
-
}));
|
|
1631
|
-
}
|
|
1632
|
-
/**
|
|
1633
|
-
* Registers a plain module in SystemJS.
|
|
1634
|
-
* @param name The name of the module
|
|
1635
|
-
* @param resolve The resolver for the module's content.
|
|
1636
|
-
*/
|
|
1644
|
+
};
|
|
1637
1645
|
|
|
1638
|
-
function
|
|
1639
|
-
|
|
1646
|
+
systemJSPrototype.createContext = function (parentId) {
|
|
1647
|
+
var loader = this;
|
|
1640
1648
|
return {
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
if (content instanceof Promise) {
|
|
1645
|
-
return content.then(_exports);
|
|
1646
|
-
} else {
|
|
1647
|
-
_exports(content);
|
|
1648
|
-
}
|
|
1649
|
+
url: parentId,
|
|
1650
|
+
resolve: function resolve(id, parentUrl) {
|
|
1651
|
+
return Promise.resolve(loader.resolve(id, parentUrl || parentId));
|
|
1649
1652
|
}
|
|
1650
1653
|
};
|
|
1651
|
-
}
|
|
1652
|
-
}
|
|
1653
|
-
/**
|
|
1654
|
-
* Unregisters all modules coming from the given base URL.
|
|
1655
|
-
* @param baseUrl The base URL used to identify the modules to delete to.
|
|
1656
|
-
* @param dependencies The shared dependencies from the pilet. These will be left alive.
|
|
1657
|
-
*/
|
|
1658
|
-
|
|
1659
|
-
function unregisterModules(baseUrl, dependencies) {
|
|
1660
|
-
_toConsumableArray(System.entries()).map(function (_ref5) {
|
|
1661
|
-
var _ref6 = _slicedToArray(_ref5, 1),
|
|
1662
|
-
name = _ref6[0];
|
|
1663
|
-
|
|
1664
|
-
return name;
|
|
1665
|
-
}).filter(function (name) {
|
|
1666
|
-
return name.startsWith(baseUrl) && !dependencies.includes(name);
|
|
1667
|
-
}).forEach(function (name) {
|
|
1668
|
-
return System["delete"](name);
|
|
1669
|
-
});
|
|
1670
|
-
}
|
|
1671
|
-
/**
|
|
1672
|
-
* Requires a module from SystemJS
|
|
1673
|
-
* @param name The name of the module to obtain
|
|
1674
|
-
* @returns The module's content, if any, otherwise throws an error.
|
|
1675
|
-
*/
|
|
1654
|
+
};
|
|
1676
1655
|
|
|
1677
|
-
function
|
|
1678
|
-
var moduleId = tryResolve(name, parent);
|
|
1679
|
-
var dependency = moduleId && System.get(moduleId);
|
|
1656
|
+
systemJSPrototype.onload = function () {};
|
|
1680
1657
|
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
error.code = 'MODULE_NOT_FOUND';
|
|
1684
|
-
throw error;
|
|
1658
|
+
function loadToId(load) {
|
|
1659
|
+
return load.id;
|
|
1685
1660
|
}
|
|
1686
1661
|
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
/***/ "../../framework/piral-base/esm/utils/version.js":
|
|
1693
|
-
/*!*******************************************************!*\
|
|
1694
|
-
!*** ../../framework/piral-base/esm/utils/version.js ***!
|
|
1695
|
-
\*******************************************************/
|
|
1696
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1662
|
+
function triggerOnload(loader, load, err, isErrSource) {
|
|
1663
|
+
loader.onload(err, load.id, load.d && load.d.map(loadToId), !!isErrSource);
|
|
1664
|
+
if (err) throw err;
|
|
1665
|
+
}
|
|
1697
1666
|
|
|
1698
|
-
|
|
1699
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1700
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1701
|
-
/* harmony export */ "satisfies": () => (/* binding */ satisfies),
|
|
1702
|
-
/* harmony export */ "validate": () => (/* binding */ validate)
|
|
1703
|
-
/* harmony export */ });
|
|
1704
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
1667
|
+
var lastRegister;
|
|
1705
1668
|
|
|
1706
|
-
|
|
1669
|
+
systemJSPrototype.register = function (deps, declare) {
|
|
1670
|
+
lastRegister = [deps, declare];
|
|
1671
|
+
};
|
|
1707
1672
|
|
|
1708
|
-
|
|
1673
|
+
systemJSPrototype.getRegister = function () {
|
|
1674
|
+
var _lastRegister = lastRegister;
|
|
1675
|
+
lastRegister = void 0;
|
|
1676
|
+
return _lastRegister;
|
|
1677
|
+
};
|
|
1709
1678
|
|
|
1710
|
-
function
|
|
1679
|
+
function getOrCreateLoad(loader, id, firstParentUrl) {
|
|
1680
|
+
var load = loader[REGISTRY][id];
|
|
1681
|
+
if (load) return load;
|
|
1682
|
+
var importerSetters = [];
|
|
1683
|
+
var ns = Object.create(null);
|
|
1684
|
+
if (toStringTag$1) Object.defineProperty(ns, toStringTag$1, {
|
|
1685
|
+
value: "Module"
|
|
1686
|
+
});
|
|
1687
|
+
var instantiatePromise = Promise.resolve().then(function () {
|
|
1688
|
+
return loader.instantiate(id, firstParentUrl);
|
|
1689
|
+
}).then(function (registration) {
|
|
1690
|
+
if (!registration) throw Error(errMsg(2, "Module " + id + " did not instantiate"));
|
|
1711
1691
|
|
|
1712
|
-
function
|
|
1692
|
+
function _export(name, value) {
|
|
1693
|
+
load.h = true;
|
|
1694
|
+
var changed = false;
|
|
1713
1695
|
|
|
1714
|
-
|
|
1696
|
+
if (typeof name === "string") {
|
|
1697
|
+
if (!(name in ns) || ns[name] !== value) {
|
|
1698
|
+
ns[name] = value;
|
|
1699
|
+
changed = true;
|
|
1700
|
+
}
|
|
1701
|
+
} else {
|
|
1702
|
+
for (var p in name) {
|
|
1703
|
+
var value = name[p];
|
|
1715
1704
|
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
'=': [0],
|
|
1722
|
-
'<=': [-1, 0],
|
|
1723
|
-
'<': [-1]
|
|
1724
|
-
};
|
|
1705
|
+
if (!(p in ns) || ns[p] !== value) {
|
|
1706
|
+
ns[p] = value;
|
|
1707
|
+
changed = true;
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1725
1710
|
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
}
|
|
1711
|
+
if (name && name.__esModule) {
|
|
1712
|
+
ns.__esModule = name.__esModule;
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1729
1715
|
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
}
|
|
1716
|
+
if (changed) for (var i = 0; i < importerSetters.length; i++) {
|
|
1717
|
+
var setter = importerSetters[i];
|
|
1718
|
+
if (setter) setter(ns);
|
|
1719
|
+
}
|
|
1720
|
+
return value;
|
|
1721
|
+
}
|
|
1737
1722
|
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
}
|
|
1723
|
+
var declared = registration[1](_export, registration[1].length === 2 ? {
|
|
1724
|
+
"import": function _import(importId) {
|
|
1725
|
+
return loader["import"](importId, id);
|
|
1726
|
+
},
|
|
1727
|
+
meta: loader.createContext(id)
|
|
1728
|
+
} : void 0);
|
|
1742
1729
|
|
|
1743
|
-
function
|
|
1744
|
-
var match = v.match(semver);
|
|
1745
|
-
match.shift();
|
|
1746
|
-
return match;
|
|
1747
|
-
}
|
|
1730
|
+
load.e = declared.execute || function () {};
|
|
1748
1731
|
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1732
|
+
return [registration[0], declared.setters || []];
|
|
1733
|
+
}, function (err) {
|
|
1734
|
+
load.e = null;
|
|
1735
|
+
load.er = err;
|
|
1736
|
+
triggerOnload(loader, load, err, true);
|
|
1737
|
+
throw err;
|
|
1738
|
+
});
|
|
1739
|
+
var linkPromise = instantiatePromise.then(function (instantiation) {
|
|
1740
|
+
return Promise.all(instantiation[0].map(function (dep, i) {
|
|
1741
|
+
var setter = instantiation[1][i];
|
|
1742
|
+
return Promise.resolve(loader.resolve(dep, id)).then(function (depId) {
|
|
1743
|
+
var depLoad = getOrCreateLoad(loader, depId, id);
|
|
1744
|
+
return Promise.resolve(depLoad.I).then(function () {
|
|
1745
|
+
if (setter) {
|
|
1746
|
+
depLoad.i.push(setter);
|
|
1747
|
+
if (depLoad.h || !depLoad.I) setter(depLoad.n);
|
|
1748
|
+
}
|
|
1752
1749
|
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1750
|
+
return depLoad;
|
|
1751
|
+
});
|
|
1752
|
+
});
|
|
1753
|
+
})).then(function (depLoads) {
|
|
1754
|
+
load.d = depLoads;
|
|
1755
|
+
});
|
|
1756
|
+
});
|
|
1757
|
+
return load = loader[REGISTRY][id] = {
|
|
1758
|
+
id: id,
|
|
1759
|
+
i: importerSetters,
|
|
1760
|
+
n: ns,
|
|
1761
|
+
I: instantiatePromise,
|
|
1762
|
+
L: linkPromise,
|
|
1763
|
+
h: false,
|
|
1764
|
+
d: void 0,
|
|
1765
|
+
e: void 0,
|
|
1766
|
+
er: void 0,
|
|
1767
|
+
E: void 0,
|
|
1768
|
+
C: void 0,
|
|
1769
|
+
p: void 0
|
|
1770
|
+
};
|
|
1759
1771
|
}
|
|
1760
|
-
}
|
|
1761
|
-
|
|
1762
|
-
function compareSegments(a, b) {
|
|
1763
|
-
for (var i = 0; i < 2; i++) {
|
|
1764
|
-
var r = compareStrings(a[i] || '0', b[i] || '0');
|
|
1765
1772
|
|
|
1766
|
-
|
|
1767
|
-
|
|
1773
|
+
function instantiateAll(loader, load, parent, loaded) {
|
|
1774
|
+
if (!loaded[load.id]) {
|
|
1775
|
+
loaded[load.id] = true;
|
|
1776
|
+
return Promise.resolve(load.L).then(function () {
|
|
1777
|
+
if (!load.p || load.p.e === null) load.p = parent;
|
|
1778
|
+
return Promise.all(load.d.map(function (dep) {
|
|
1779
|
+
return instantiateAll(loader, dep, parent, loaded);
|
|
1780
|
+
}));
|
|
1781
|
+
})["catch"](function (err) {
|
|
1782
|
+
if (load.er) throw err;
|
|
1783
|
+
load.e = null;
|
|
1784
|
+
triggerOnload(loader, load, err, false);
|
|
1785
|
+
throw err;
|
|
1786
|
+
});
|
|
1768
1787
|
}
|
|
1769
1788
|
}
|
|
1770
1789
|
|
|
1771
|
-
|
|
1772
|
-
}
|
|
1790
|
+
function topLevelLoad(loader, load) {
|
|
1791
|
+
return load.C = instantiateAll(loader, load, load, {}).then(function () {
|
|
1792
|
+
return postOrderExec(loader, load, {});
|
|
1793
|
+
}).then(function () {
|
|
1794
|
+
return load.n;
|
|
1795
|
+
});
|
|
1796
|
+
}
|
|
1773
1797
|
|
|
1774
|
-
|
|
1775
|
-
var s1 = splitVersion(v1);
|
|
1776
|
-
var s2 = splitVersion(v2);
|
|
1777
|
-
var len = Math.max(s1.length - 1, s2.length - 1);
|
|
1798
|
+
var nullContext = Object.freeze(Object.create(null));
|
|
1778
1799
|
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1800
|
+
function postOrderExec(loader, load, seen) {
|
|
1801
|
+
if (seen[load.id]) return;
|
|
1802
|
+
seen[load.id] = true;
|
|
1782
1803
|
|
|
1783
|
-
if (
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
return
|
|
1804
|
+
if (!load.e) {
|
|
1805
|
+
if (load.er) throw load.er;
|
|
1806
|
+
if (load.E) return load.E;
|
|
1807
|
+
return;
|
|
1787
1808
|
}
|
|
1788
|
-
}
|
|
1789
1809
|
|
|
1790
|
-
|
|
1791
|
-
|
|
1810
|
+
var depLoadPromises;
|
|
1811
|
+
load.d.forEach(function (depLoad) {
|
|
1812
|
+
try {
|
|
1813
|
+
var depLoadPromise = postOrderExec(loader, depLoad, seen);
|
|
1814
|
+
if (depLoadPromise) (depLoadPromises = depLoadPromises || []).push(depLoadPromise);
|
|
1815
|
+
} catch (err) {
|
|
1816
|
+
load.e = null;
|
|
1817
|
+
load.er = err;
|
|
1818
|
+
triggerOnload(loader, load, err, false);
|
|
1819
|
+
throw err;
|
|
1820
|
+
}
|
|
1821
|
+
});
|
|
1822
|
+
if (depLoadPromises) return Promise.all(depLoadPromises).then(doExec);
|
|
1823
|
+
return doExec();
|
|
1792
1824
|
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1825
|
+
function doExec() {
|
|
1826
|
+
try {
|
|
1827
|
+
var execPromise = load.e.call(nullContext);
|
|
1796
1828
|
|
|
1797
|
-
|
|
1829
|
+
if (execPromise) {
|
|
1830
|
+
execPromise = execPromise.then(function () {
|
|
1831
|
+
load.C = load.n;
|
|
1832
|
+
load.E = null;
|
|
1833
|
+
if (true) triggerOnload(loader, load, null, true);
|
|
1834
|
+
}, function (err) {
|
|
1835
|
+
load.er = err;
|
|
1836
|
+
load.E = null;
|
|
1837
|
+
if (true) triggerOnload(loader, load, err, true);
|
|
1838
|
+
throw err;
|
|
1839
|
+
});
|
|
1840
|
+
return load.E = execPromise;
|
|
1841
|
+
}
|
|
1798
1842
|
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
}
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
return -1;
|
|
1843
|
+
load.C = load.n;
|
|
1844
|
+
load.L = load.I = void 0;
|
|
1845
|
+
} catch (err) {
|
|
1846
|
+
load.er = err;
|
|
1847
|
+
throw err;
|
|
1848
|
+
} finally {
|
|
1849
|
+
load.e = null;
|
|
1850
|
+
triggerOnload(loader, load, load.er, true);
|
|
1808
1851
|
}
|
|
1809
1852
|
}
|
|
1810
|
-
} else if (sp1 || sp2) {
|
|
1811
|
-
return sp1 ? -1 : 1;
|
|
1812
1853
|
}
|
|
1813
1854
|
|
|
1814
|
-
|
|
1815
|
-
|
|
1855
|
+
envGlobal.System = new SystemJS();
|
|
1856
|
+
var importMapPromise = Promise.resolve();
|
|
1857
|
+
var importMap = {
|
|
1858
|
+
imports: {},
|
|
1859
|
+
scopes: {},
|
|
1860
|
+
depcache: {},
|
|
1861
|
+
integrity: {}
|
|
1862
|
+
};
|
|
1863
|
+
var processFirst = hasDocument;
|
|
1816
1864
|
|
|
1817
|
-
function
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
}
|
|
1865
|
+
systemJSPrototype.prepareImport = function (doProcessScripts) {
|
|
1866
|
+
if (processFirst || doProcessScripts) {
|
|
1867
|
+
processScripts();
|
|
1868
|
+
processFirst = false;
|
|
1869
|
+
}
|
|
1823
1870
|
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
}
|
|
1827
|
-
function satisfies(v, r) {
|
|
1828
|
-
if (!acceptsAll.includes(r)) {
|
|
1829
|
-
// if no range operator then "="
|
|
1830
|
-
var match = r.match(/^([<>=~^]+)/);
|
|
1831
|
-
var op = match ? match[1] : '='; // if gt/lt/eq then operator compare
|
|
1871
|
+
return importMapPromise;
|
|
1872
|
+
};
|
|
1832
1873
|
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1874
|
+
if (hasDocument) {
|
|
1875
|
+
processScripts();
|
|
1876
|
+
window.addEventListener("DOMContentLoaded", processScripts);
|
|
1877
|
+
}
|
|
1836
1878
|
|
|
1879
|
+
function processScripts() {
|
|
1880
|
+
[].forEach.call(document.querySelectorAll("script"), function (script) {
|
|
1881
|
+
if (script.sp) return;
|
|
1837
1882
|
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1883
|
+
if (script.type === "systemjs-module") {
|
|
1884
|
+
script.sp = true;
|
|
1885
|
+
if (!script.src) return;
|
|
1886
|
+
System["import"](script.src.slice(0, 7) === "import:" ? script.src.slice(7) : resolveUrl(script.src, baseUrl))["catch"](function (e) {
|
|
1887
|
+
if (e.message.indexOf("https://git.io/JvFET#3") > -1) {
|
|
1888
|
+
var event = document.createEvent("Event");
|
|
1889
|
+
event.initEvent("error", false, false);
|
|
1890
|
+
script.dispatchEvent(event);
|
|
1891
|
+
}
|
|
1843
1892
|
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1893
|
+
return Promise.reject(e);
|
|
1894
|
+
});
|
|
1895
|
+
} else if (script.type === "systemjs-importmap") {
|
|
1896
|
+
script.sp = true;
|
|
1897
|
+
var fetchPromise = script.src ? (System.fetch || fetch)(script.src, {
|
|
1898
|
+
integrity: script.integrity,
|
|
1899
|
+
passThrough: true
|
|
1900
|
+
}).then(function (res) {
|
|
1901
|
+
if (!res.ok) throw Error("Invalid status code: " + res.status);
|
|
1902
|
+
return res.text();
|
|
1903
|
+
})["catch"](function (err) {
|
|
1904
|
+
err.message = errMsg("W4", "Error fetching systemjs-import map " + script.src) + "\n" + err.message;
|
|
1905
|
+
console.warn(err);
|
|
1849
1906
|
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
return compareSegments([v2, v3], [m2, m3]) >= 0;
|
|
1854
|
-
} else if (compareStrings(v2, m2) !== 0) {
|
|
1855
|
-
return false;
|
|
1856
|
-
}
|
|
1907
|
+
if (typeof script.onerror === "function") {
|
|
1908
|
+
script.onerror();
|
|
1909
|
+
}
|
|
1857
1910
|
|
|
1858
|
-
|
|
1911
|
+
return "{}";
|
|
1912
|
+
}) : script.innerHTML;
|
|
1913
|
+
importMapPromise = importMapPromise.then(function () {
|
|
1914
|
+
return fetchPromise;
|
|
1915
|
+
}).then(function (text) {
|
|
1916
|
+
extendImportMap(importMap, text, script.src || baseUrl);
|
|
1917
|
+
});
|
|
1918
|
+
}
|
|
1919
|
+
});
|
|
1859
1920
|
}
|
|
1860
1921
|
|
|
1861
|
-
|
|
1862
|
-
}
|
|
1863
|
-
|
|
1864
|
-
/***/ }),
|
|
1922
|
+
function extendImportMap(importMap2, newMapText, newMapUrl) {
|
|
1923
|
+
var newMap = {};
|
|
1865
1924
|
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1925
|
+
try {
|
|
1926
|
+
newMap = JSON.parse(newMapText);
|
|
1927
|
+
} catch (err) {
|
|
1928
|
+
console.warn(Error(errMsg("W5", "systemjs-importmap contains invalid JSON") + "\n\n" + newMapText + "\n"));
|
|
1929
|
+
}
|
|
1871
1930
|
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1931
|
+
resolveAndComposeImportMap(newMap, newMapUrl, importMap2);
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
if (hasDocument) {
|
|
1935
|
+
window.addEventListener("error", function (evt) {
|
|
1936
|
+
lastWindowErrorUrl = evt.filename;
|
|
1937
|
+
lastWindowError = evt.error;
|
|
1938
|
+
});
|
|
1939
|
+
var baseOrigin = location.origin;
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
systemJSPrototype.createScript = function (url) {
|
|
1943
|
+
var script = document.createElement("script");
|
|
1944
|
+
script.async = true;
|
|
1945
|
+
if (url.indexOf(baseOrigin + "/")) script.crossOrigin = "anonymous";
|
|
1946
|
+
var integrity = importMap.integrity[url];
|
|
1947
|
+
if (integrity) script.integrity = integrity;
|
|
1948
|
+
script.src = url;
|
|
1949
|
+
return script;
|
|
1950
|
+
};
|
|
1951
|
+
|
|
1952
|
+
var lastAutoImportDeps, lastAutoImportTimeout;
|
|
1953
|
+
var autoImportCandidates = {};
|
|
1954
|
+
var systemRegister2 = systemJSPrototype.register;
|
|
1955
|
+
|
|
1956
|
+
systemJSPrototype.register = function (deps, declare) {
|
|
1957
|
+
if (hasDocument && document.readyState === "loading" && typeof deps !== "string") {
|
|
1958
|
+
var scripts = document.querySelectorAll("script[src]");
|
|
1959
|
+
var lastScript = scripts[scripts.length - 1];
|
|
1960
|
+
|
|
1961
|
+
if (lastScript) {
|
|
1962
|
+
lastAutoImportDeps = deps;
|
|
1963
|
+
var loader = this;
|
|
1964
|
+
lastAutoImportTimeout = setTimeout(function () {
|
|
1965
|
+
autoImportCandidates[lastScript.src] = [deps, declare];
|
|
1966
|
+
loader["import"](lastScript.src);
|
|
1967
|
+
});
|
|
1968
|
+
}
|
|
1969
|
+
} else {
|
|
1970
|
+
lastAutoImportDeps = void 0;
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
return systemRegister2.call(this, deps, declare);
|
|
1974
|
+
};
|
|
1975
|
+
|
|
1976
|
+
var lastWindowErrorUrl, lastWindowError;
|
|
1977
|
+
|
|
1978
|
+
systemJSPrototype.instantiate = function (url, firstParentUrl) {
|
|
1979
|
+
var autoImportRegistration = autoImportCandidates[url];
|
|
1980
|
+
|
|
1981
|
+
if (autoImportRegistration) {
|
|
1982
|
+
delete autoImportCandidates[url];
|
|
1983
|
+
return autoImportRegistration;
|
|
1984
|
+
}
|
|
1985
|
+
|
|
1986
|
+
var loader = this;
|
|
1987
|
+
return Promise.resolve(systemJSPrototype.createScript(url)).then(function (script) {
|
|
1988
|
+
return new Promise(function (resolve, reject) {
|
|
1989
|
+
script.addEventListener("error", function () {
|
|
1990
|
+
reject(Error(errMsg(3, "Error loading " + url + (firstParentUrl ? " from " + firstParentUrl : ""))));
|
|
1991
|
+
});
|
|
1992
|
+
script.addEventListener("load", function () {
|
|
1993
|
+
document.head.removeChild(script);
|
|
1994
|
+
|
|
1995
|
+
if (lastWindowErrorUrl === url) {
|
|
1996
|
+
reject(lastWindowError);
|
|
1997
|
+
} else {
|
|
1998
|
+
var register = loader.getRegister(url);
|
|
1999
|
+
if (register && register[0] === lastAutoImportDeps) clearTimeout(lastAutoImportTimeout);
|
|
2000
|
+
resolve(register);
|
|
2001
|
+
}
|
|
2002
|
+
});
|
|
2003
|
+
document.head.appendChild(script);
|
|
2004
|
+
});
|
|
2005
|
+
});
|
|
2006
|
+
};
|
|
2007
|
+
|
|
2008
|
+
systemJSPrototype.shouldFetch = function () {
|
|
2009
|
+
return false;
|
|
2010
|
+
};
|
|
2011
|
+
|
|
2012
|
+
if (typeof fetch !== "undefined") systemJSPrototype.fetch = fetch;
|
|
2013
|
+
var instantiate = systemJSPrototype.instantiate;
|
|
2014
|
+
var jsContentTypeRegEx = /^(text|application)\/(x-)?javascript(;|$)/;
|
|
2015
|
+
|
|
2016
|
+
systemJSPrototype.instantiate = function (url, parent) {
|
|
2017
|
+
var loader = this;
|
|
2018
|
+
if (!this.shouldFetch(url)) return instantiate.apply(this, arguments);
|
|
2019
|
+
return this.fetch(url, {
|
|
2020
|
+
credentials: "same-origin",
|
|
2021
|
+
integrity: importMap.integrity[url]
|
|
2022
|
+
}).then(function (res) {
|
|
2023
|
+
if (!res.ok) throw Error(errMsg(7, res.status + " " + res.statusText + ", loading " + url + (parent ? " from " + parent : "")));
|
|
2024
|
+
var contentType = res.headers.get("content-type");
|
|
2025
|
+
if (!contentType || !jsContentTypeRegEx.test(contentType)) throw Error(errMsg(4, 'Unknown Content-Type "' + contentType + '", loading ' + url + (parent ? " from " + parent : "")));
|
|
2026
|
+
return res.text().then(function (source) {
|
|
2027
|
+
if (source.indexOf("//# sourceURL=") < 0) source += "\n//# sourceURL=" + url;
|
|
2028
|
+
(0, eval)(source);
|
|
2029
|
+
return loader.getRegister(url);
|
|
2030
|
+
});
|
|
2031
|
+
});
|
|
2032
|
+
};
|
|
2033
|
+
|
|
2034
|
+
systemJSPrototype.resolve = function (id, parentUrl) {
|
|
2035
|
+
parentUrl = parentUrl || false || baseUrl;
|
|
2036
|
+
return resolveImportMap(importMap, resolveIfNotPlainOrUrl(id, parentUrl) || id, parentUrl) || throwUnresolved(id, parentUrl);
|
|
2037
|
+
};
|
|
2038
|
+
|
|
2039
|
+
function throwUnresolved(id, parentUrl) {
|
|
2040
|
+
throw Error(errMsg(8, "Unable to resolve bare specifier '" + id + (parentUrl ? "' from " + parentUrl : "'")));
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
var systemInstantiate = systemJSPrototype.instantiate;
|
|
2044
|
+
|
|
2045
|
+
systemJSPrototype.instantiate = function (url, firstParentUrl) {
|
|
2046
|
+
var preloads = importMap.depcache[url];
|
|
2047
|
+
|
|
2048
|
+
if (preloads) {
|
|
2049
|
+
for (var i = 0; i < preloads.length; i++) {
|
|
2050
|
+
getOrCreateLoad(this, this.resolve(preloads[i], url), url);
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
|
|
2054
|
+
return systemInstantiate.call(this, url, firstParentUrl);
|
|
2055
|
+
};
|
|
2056
|
+
|
|
2057
|
+
if (hasSelf && typeof importScripts === "function") systemJSPrototype.instantiate = function (url) {
|
|
2058
|
+
var loader = this;
|
|
2059
|
+
return Promise.resolve().then(function () {
|
|
2060
|
+
importScripts(url);
|
|
2061
|
+
return loader.getRegister(url);
|
|
2062
|
+
});
|
|
2063
|
+
};
|
|
2064
|
+
|
|
2065
|
+
(function (global2) {
|
|
2066
|
+
var systemJSPrototype2 = global2.System.constructor.prototype;
|
|
2067
|
+
var firstGlobalProp, secondGlobalProp, lastGlobalProp;
|
|
2068
|
+
|
|
2069
|
+
function getGlobalProp(useFirstGlobalProp) {
|
|
2070
|
+
var cnt = 0;
|
|
2071
|
+
var foundLastProp, result;
|
|
2072
|
+
|
|
2073
|
+
for (var p in global2) {
|
|
2074
|
+
if (shouldSkipProperty(p)) continue;
|
|
2075
|
+
if (cnt === 0 && p !== firstGlobalProp || cnt === 1 && p !== secondGlobalProp) return p;
|
|
2076
|
+
|
|
2077
|
+
if (foundLastProp) {
|
|
2078
|
+
lastGlobalProp = p;
|
|
2079
|
+
result = useFirstGlobalProp && result || p;
|
|
2080
|
+
} else {
|
|
2081
|
+
foundLastProp = p === lastGlobalProp;
|
|
2082
|
+
}
|
|
2083
|
+
|
|
2084
|
+
cnt++;
|
|
2085
|
+
}
|
|
2086
|
+
|
|
2087
|
+
return result;
|
|
2088
|
+
}
|
|
2089
|
+
|
|
2090
|
+
function noteGlobalProps() {
|
|
2091
|
+
firstGlobalProp = secondGlobalProp = void 0;
|
|
2092
|
+
|
|
2093
|
+
for (var p in global2) {
|
|
2094
|
+
if (shouldSkipProperty(p)) continue;
|
|
2095
|
+
if (!firstGlobalProp) firstGlobalProp = p;else if (!secondGlobalProp) secondGlobalProp = p;
|
|
2096
|
+
lastGlobalProp = p;
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2099
|
+
return lastGlobalProp;
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2102
|
+
var impt = systemJSPrototype2["import"];
|
|
2103
|
+
|
|
2104
|
+
systemJSPrototype2["import"] = function (id, parentUrl) {
|
|
2105
|
+
noteGlobalProps();
|
|
2106
|
+
return impt.call(this, id, parentUrl);
|
|
2107
|
+
};
|
|
2108
|
+
|
|
2109
|
+
var emptyInstantiation = [[], function () {
|
|
2110
|
+
return {};
|
|
2111
|
+
}];
|
|
2112
|
+
var getRegister = systemJSPrototype2.getRegister;
|
|
2113
|
+
|
|
2114
|
+
systemJSPrototype2.getRegister = function () {
|
|
2115
|
+
var lastRegister2 = getRegister.call(this);
|
|
2116
|
+
if (lastRegister2) return lastRegister2;
|
|
2117
|
+
var globalProp = getGlobalProp(this.firstGlobalProp);
|
|
2118
|
+
if (!globalProp) return emptyInstantiation;
|
|
2119
|
+
var globalExport;
|
|
2120
|
+
|
|
2121
|
+
try {
|
|
2122
|
+
globalExport = global2[globalProp];
|
|
2123
|
+
} catch (e) {
|
|
2124
|
+
return emptyInstantiation;
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2127
|
+
return [[], function (_export) {
|
|
2128
|
+
return {
|
|
2129
|
+
execute: function execute() {
|
|
2130
|
+
_export(globalExport);
|
|
2131
|
+
|
|
2132
|
+
_export({
|
|
2133
|
+
"default": globalExport,
|
|
2134
|
+
__useDefault: true
|
|
2135
|
+
});
|
|
2136
|
+
}
|
|
2137
|
+
};
|
|
2138
|
+
}];
|
|
2139
|
+
};
|
|
2140
|
+
|
|
2141
|
+
var isIE11 = typeof navigator !== "undefined" && navigator.userAgent.indexOf("Trident") !== -1;
|
|
2142
|
+
|
|
2143
|
+
function shouldSkipProperty(p) {
|
|
2144
|
+
return !global2.hasOwnProperty(p) || !isNaN(p) && p < global2.length || isIE11 && global2[p] && typeof window !== "undefined" && global2[p].parent === window;
|
|
2145
|
+
}
|
|
2146
|
+
})(typeof self !== "undefined" ? self : __webpack_require__.g);
|
|
2147
|
+
|
|
2148
|
+
(function (global2) {
|
|
2149
|
+
var systemJSPrototype2 = global2.System.constructor.prototype;
|
|
2150
|
+
var moduleTypesRegEx = /^[^#?]+\.(css|html|json|wasm)([?#].*)?$/;
|
|
2151
|
+
|
|
2152
|
+
systemJSPrototype2.shouldFetch = function (url) {
|
|
2153
|
+
return moduleTypesRegEx.test(url);
|
|
2154
|
+
};
|
|
2155
|
+
|
|
2156
|
+
var jsonContentType = /^application\/json(;|$)/;
|
|
2157
|
+
var cssContentType = /^text\/css(;|$)/;
|
|
2158
|
+
var wasmContentType = /^application\/wasm(;|$)/;
|
|
2159
|
+
var fetch2 = systemJSPrototype2.fetch;
|
|
2160
|
+
|
|
2161
|
+
systemJSPrototype2.fetch = function (url, options) {
|
|
2162
|
+
return fetch2(url, options).then(function (res) {
|
|
2163
|
+
if (options.passThrough) return res;
|
|
2164
|
+
if (!res.ok) return res;
|
|
2165
|
+
var contentType = res.headers.get("content-type");
|
|
2166
|
+
if (jsonContentType.test(contentType)) return res.json().then(function (json) {
|
|
2167
|
+
return new Response(new Blob(['System.register([],function(e){return{execute:function(){e("default",' + JSON.stringify(json) + ")}}})"], {
|
|
2168
|
+
type: "application/javascript"
|
|
2169
|
+
}));
|
|
2170
|
+
});
|
|
2171
|
+
if (cssContentType.test(contentType)) return res.text().then(function (source) {
|
|
2172
|
+
source = source.replace(/url\(\s*(?:(["'])((?:\\.|[^\n\\"'])+)\1|((?:\\.|[^\s,"'()\\])+))\s*\)/g, function (match, quotes, relUrl1, relUrl2) {
|
|
2173
|
+
return "url(" + quotes + resolveUrl(relUrl1 || relUrl2, url) + quotes + ")";
|
|
2174
|
+
});
|
|
2175
|
+
return new Response(new Blob(["System.register([],function(e){return{execute:function(){var s=new CSSStyleSheet();s.replaceSync(" + JSON.stringify(source) + ');e("default",s)}}})'], {
|
|
2176
|
+
type: "application/javascript"
|
|
2177
|
+
}));
|
|
2178
|
+
});
|
|
2179
|
+
if (wasmContentType.test(contentType)) return (WebAssembly.compileStreaming ? WebAssembly.compileStreaming(res) : res.arrayBuffer().then(WebAssembly.compile)).then(function (module) {
|
|
2180
|
+
if (!global2.System.wasmModules) global2.System.wasmModules = Object.create(null);
|
|
2181
|
+
global2.System.wasmModules[url] = module;
|
|
2182
|
+
var deps = [];
|
|
2183
|
+
var setterSources = [];
|
|
2184
|
+
if (WebAssembly.Module.imports) WebAssembly.Module.imports(module).forEach(function (impt) {
|
|
2185
|
+
var key = JSON.stringify(impt.module);
|
|
2186
|
+
|
|
2187
|
+
if (deps.indexOf(key) === -1) {
|
|
2188
|
+
deps.push(key);
|
|
2189
|
+
setterSources.push("function(m){i[" + key + "]=m}");
|
|
2190
|
+
}
|
|
2191
|
+
});
|
|
2192
|
+
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)})}}})"], {
|
|
2193
|
+
type: "application/javascript"
|
|
2194
|
+
}));
|
|
2195
|
+
});
|
|
2196
|
+
return res;
|
|
2197
|
+
});
|
|
2198
|
+
};
|
|
2199
|
+
})(typeof self !== "undefined" ? self : __webpack_require__.g);
|
|
2200
|
+
|
|
2201
|
+
var toStringTag = typeof Symbol !== "undefined" && Symbol.toStringTag;
|
|
2202
|
+
|
|
2203
|
+
systemJSPrototype.get = function (id) {
|
|
2204
|
+
var load = this[REGISTRY][id];
|
|
2205
|
+
|
|
2206
|
+
if (load && load.e === null && !load.E) {
|
|
2207
|
+
if (load.er) return null;
|
|
2208
|
+
return load.n;
|
|
2209
|
+
}
|
|
2210
|
+
};
|
|
2211
|
+
|
|
2212
|
+
systemJSPrototype.set = function (id, module) {
|
|
2213
|
+
{
|
|
2214
|
+
try {
|
|
2215
|
+
new URL(id);
|
|
2216
|
+
} catch (err) {
|
|
2217
|
+
console.warn(Error(errMsg("W3", '"' + id + '" is not a valid URL to set in the module registry')));
|
|
2218
|
+
}
|
|
2219
|
+
}
|
|
2220
|
+
var ns;
|
|
2221
|
+
|
|
2222
|
+
if (toStringTag && module[toStringTag] === "Module") {
|
|
2223
|
+
ns = module;
|
|
2224
|
+
} else {
|
|
2225
|
+
ns = Object.assign(Object.create(null), module);
|
|
2226
|
+
if (toStringTag) Object.defineProperty(ns, toStringTag, {
|
|
2227
|
+
value: "Module"
|
|
2228
|
+
});
|
|
2229
|
+
}
|
|
2230
|
+
|
|
2231
|
+
var done = Promise.resolve(ns);
|
|
2232
|
+
var load = this[REGISTRY][id] || (this[REGISTRY][id] = {
|
|
2233
|
+
id: id,
|
|
2234
|
+
i: [],
|
|
2235
|
+
h: false,
|
|
2236
|
+
d: [],
|
|
2237
|
+
e: null,
|
|
2238
|
+
er: void 0,
|
|
2239
|
+
E: void 0
|
|
2240
|
+
});
|
|
2241
|
+
if (load.e || load.E) return false;
|
|
2242
|
+
Object.assign(load, {
|
|
2243
|
+
n: ns,
|
|
2244
|
+
I: void 0,
|
|
2245
|
+
L: void 0,
|
|
2246
|
+
C: done
|
|
2247
|
+
});
|
|
2248
|
+
return ns;
|
|
2249
|
+
};
|
|
2250
|
+
|
|
2251
|
+
systemJSPrototype.has = function (id) {
|
|
2252
|
+
var load = this[REGISTRY][id];
|
|
2253
|
+
return !!load;
|
|
2254
|
+
};
|
|
2255
|
+
|
|
2256
|
+
systemJSPrototype["delete"] = function (id) {
|
|
2257
|
+
var registry = this[REGISTRY];
|
|
2258
|
+
var load = registry[id];
|
|
2259
|
+
if (!load || load.p && load.p.e !== null || load.E) return false;
|
|
2260
|
+
var importerSetters = load.i;
|
|
2261
|
+
if (load.d) load.d.forEach(function (depLoad) {
|
|
2262
|
+
var importerIndex = depLoad.i.indexOf(load);
|
|
2263
|
+
if (importerIndex !== -1) depLoad.i.splice(importerIndex, 1);
|
|
2264
|
+
});
|
|
2265
|
+
delete registry[id];
|
|
2266
|
+
return function () {
|
|
2267
|
+
var load2 = registry[id];
|
|
2268
|
+
if (!load2 || !importerSetters || load2.e !== null || load2.E) return false;
|
|
2269
|
+
importerSetters.forEach(function (setter) {
|
|
2270
|
+
load2.i.push(setter);
|
|
2271
|
+
setter(load2.n);
|
|
2272
|
+
});
|
|
2273
|
+
importerSetters = null;
|
|
2274
|
+
};
|
|
2275
|
+
};
|
|
2276
|
+
|
|
2277
|
+
var iterator = typeof Symbol !== "undefined" && Symbol.iterator;
|
|
2278
|
+
|
|
2279
|
+
systemJSPrototype.entries = function () {
|
|
2280
|
+
var loader = this,
|
|
2281
|
+
keys = Object.keys(loader[REGISTRY]);
|
|
2282
|
+
var index = 0,
|
|
2283
|
+
ns,
|
|
2284
|
+
key;
|
|
2285
|
+
var result = {
|
|
2286
|
+
next: function next() {
|
|
2287
|
+
while ((key = keys[index++]) !== void 0 && (ns = loader.get(key)) === void 0) {
|
|
2288
|
+
;
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2291
|
+
return {
|
|
2292
|
+
done: key === void 0,
|
|
2293
|
+
value: key !== void 0 && [key, ns]
|
|
2294
|
+
};
|
|
2295
|
+
}
|
|
2296
|
+
};
|
|
2297
|
+
|
|
2298
|
+
result[iterator] = function () {
|
|
2299
|
+
return this;
|
|
2300
|
+
};
|
|
2301
|
+
|
|
2302
|
+
return result;
|
|
2303
|
+
};
|
|
2304
|
+
})(); // ../../../node_modules/systemjs/dist/extras/named-register.js
|
|
2305
|
+
|
|
2306
|
+
|
|
2307
|
+
(function () {
|
|
2308
|
+
(function (global2) {
|
|
2309
|
+
var System2 = global2.System;
|
|
2310
|
+
setRegisterRegistry(System2);
|
|
2311
|
+
var systemJSPrototype = System2.constructor.prototype;
|
|
2312
|
+
var constructor = System2.constructor;
|
|
2313
|
+
|
|
2314
|
+
var SystemJS = function SystemJS() {
|
|
2315
|
+
constructor.call(this);
|
|
2316
|
+
setRegisterRegistry(this);
|
|
2317
|
+
};
|
|
2318
|
+
|
|
2319
|
+
SystemJS.prototype = systemJSPrototype;
|
|
2320
|
+
System2.constructor = SystemJS;
|
|
2321
|
+
var firstNamedDefine, firstName;
|
|
2322
|
+
|
|
2323
|
+
function setRegisterRegistry(systemInstance) {
|
|
2324
|
+
systemInstance.registerRegistry = Object.create(null);
|
|
2325
|
+
systemInstance.namedRegisterAliases = Object.create(null);
|
|
2326
|
+
}
|
|
2327
|
+
|
|
2328
|
+
var register = systemJSPrototype.register;
|
|
2329
|
+
|
|
2330
|
+
systemJSPrototype.register = function (name, deps, declare) {
|
|
2331
|
+
if (typeof name !== "string") return register.apply(this, arguments);
|
|
2332
|
+
var define = [deps, declare];
|
|
2333
|
+
this.registerRegistry[name] = define;
|
|
2334
|
+
|
|
2335
|
+
if (!firstNamedDefine) {
|
|
2336
|
+
firstNamedDefine = define;
|
|
2337
|
+
firstName = name;
|
|
2338
|
+
}
|
|
2339
|
+
|
|
2340
|
+
Promise.resolve().then(function () {
|
|
2341
|
+
firstNamedDefine = null;
|
|
2342
|
+
firstName = null;
|
|
2343
|
+
});
|
|
2344
|
+
return register.apply(this, [deps, declare]);
|
|
2345
|
+
};
|
|
2346
|
+
|
|
2347
|
+
var resolve = systemJSPrototype.resolve;
|
|
2348
|
+
|
|
2349
|
+
systemJSPrototype.resolve = function (id, parentURL) {
|
|
2350
|
+
try {
|
|
2351
|
+
return resolve.call(this, id, parentURL);
|
|
2352
|
+
} catch (err) {
|
|
2353
|
+
if (id in this.registerRegistry) {
|
|
2354
|
+
return this.namedRegisterAliases[id] || id;
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
throw err;
|
|
2358
|
+
}
|
|
2359
|
+
};
|
|
2360
|
+
|
|
2361
|
+
var instantiate = systemJSPrototype.instantiate;
|
|
2362
|
+
|
|
2363
|
+
systemJSPrototype.instantiate = function (url, firstParentUrl) {
|
|
2364
|
+
var result = this.registerRegistry[url];
|
|
2365
|
+
|
|
2366
|
+
if (result) {
|
|
2367
|
+
this.registerRegistry[url] = null;
|
|
2368
|
+
return result;
|
|
2369
|
+
} else {
|
|
2370
|
+
return instantiate.call(this, url, firstParentUrl);
|
|
2371
|
+
}
|
|
2372
|
+
};
|
|
2373
|
+
|
|
2374
|
+
var getRegister = systemJSPrototype.getRegister;
|
|
2375
|
+
|
|
2376
|
+
systemJSPrototype.getRegister = function (url) {
|
|
2377
|
+
var register2 = getRegister.call(this, url);
|
|
2378
|
+
|
|
2379
|
+
if (firstName && url) {
|
|
2380
|
+
this.namedRegisterAliases[firstName] = url;
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2383
|
+
var result = firstNamedDefine || register2;
|
|
2384
|
+
firstNamedDefine = null;
|
|
2385
|
+
firstName = null;
|
|
2386
|
+
return result;
|
|
2387
|
+
};
|
|
2388
|
+
})(typeof self !== "undefined" ? self : __webpack_require__.g);
|
|
2389
|
+
})(); // ../../tooling/piral-cli/src/common/version.ts
|
|
2390
|
+
|
|
2391
|
+
|
|
2392
|
+
var semver = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;
|
|
2393
|
+
var acceptsAll = ["*", "x", ">=0"];
|
|
2394
|
+
var operatorResMap = {
|
|
2395
|
+
">": [1],
|
|
2396
|
+
">=": [0, 1],
|
|
2397
|
+
"=": [0],
|
|
2398
|
+
"<=": [-1, 0],
|
|
2399
|
+
"<": [-1]
|
|
2400
|
+
};
|
|
2401
|
+
|
|
2402
|
+
function indexOrEnd(str, q) {
|
|
2403
|
+
return str.indexOf(q) === -1 ? str.length : str.indexOf(q);
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
function splitVersion(v) {
|
|
2407
|
+
var c = v.replace(/^v/, "").replace(/\+.*$/, "");
|
|
2408
|
+
var patchIndex = indexOrEnd(c, "-");
|
|
2409
|
+
var arr = c.substring(0, patchIndex).split(".");
|
|
2410
|
+
arr.push(c.substring(patchIndex + 1));
|
|
2411
|
+
return arr;
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
function parseSegment(v) {
|
|
2415
|
+
var n = parseInt(v, 10);
|
|
2416
|
+
return isNaN(n) ? v : n;
|
|
2417
|
+
}
|
|
2418
|
+
|
|
2419
|
+
function validateAndParse(v) {
|
|
2420
|
+
var match = v.match(semver);
|
|
2421
|
+
match.shift();
|
|
2422
|
+
return match;
|
|
2423
|
+
}
|
|
2424
|
+
|
|
2425
|
+
function compareStrings(a, b) {
|
|
2426
|
+
var ap = parseSegment(a);
|
|
2427
|
+
var bp = parseSegment(b);
|
|
2428
|
+
|
|
2429
|
+
if (ap > bp) {
|
|
2430
|
+
return 1;
|
|
2431
|
+
} else if (ap < bp) {
|
|
2432
|
+
return -1;
|
|
2433
|
+
} else {
|
|
2434
|
+
return 0;
|
|
2435
|
+
}
|
|
2436
|
+
}
|
|
2437
|
+
|
|
2438
|
+
function compareSegments(a, b) {
|
|
2439
|
+
for (var i = 0; i < 2; i++) {
|
|
2440
|
+
var r = compareStrings(a[i] || "0", b[i] || "0");
|
|
2441
|
+
|
|
2442
|
+
if (r !== 0) {
|
|
2443
|
+
return r;
|
|
2444
|
+
}
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
return 0;
|
|
2448
|
+
}
|
|
2449
|
+
|
|
2450
|
+
function compareVersions(v1, v2) {
|
|
2451
|
+
var s1 = splitVersion(v1);
|
|
2452
|
+
var s2 = splitVersion(v2);
|
|
2453
|
+
var len = Math.max(s1.length - 1, s2.length - 1);
|
|
2454
|
+
|
|
2455
|
+
for (var i = 0; i < len; i++) {
|
|
2456
|
+
var n1 = parseInt(s1[i] || "0", 10);
|
|
2457
|
+
var n2 = parseInt(s2[i] || "0", 10);
|
|
2458
|
+
|
|
2459
|
+
if (n1 > n2) {
|
|
2460
|
+
return 1;
|
|
2461
|
+
} else if (n2 > n1) {
|
|
2462
|
+
return -1;
|
|
2463
|
+
}
|
|
2464
|
+
}
|
|
2465
|
+
|
|
2466
|
+
var sp1 = s1[s1.length - 1];
|
|
2467
|
+
var sp2 = s2[s2.length - 1];
|
|
2468
|
+
|
|
2469
|
+
if (sp1 && sp2) {
|
|
2470
|
+
var p1 = sp1.split(".").map(parseSegment);
|
|
2471
|
+
var p2 = sp2.split(".").map(parseSegment);
|
|
2472
|
+
var len2 = Math.max(p1.length, p2.length);
|
|
2473
|
+
|
|
2474
|
+
for (var _i = 0; _i < len2; _i++) {
|
|
2475
|
+
if (p1[_i] === void 0 || typeof p2[_i] === "string" && typeof p1[_i] === "number") {
|
|
2476
|
+
return -1;
|
|
2477
|
+
} else if (p2[_i] === void 0 || typeof p1[_i] === "string" && typeof p2[_i] === "number") {
|
|
2478
|
+
return 1;
|
|
2479
|
+
} else if (p1[_i] > p2[_i]) {
|
|
2480
|
+
return 1;
|
|
2481
|
+
} else if (p2[_i] > p1[_i]) {
|
|
2482
|
+
return -1;
|
|
2483
|
+
}
|
|
2484
|
+
}
|
|
2485
|
+
} else if (sp1 || sp2) {
|
|
2486
|
+
return sp1 ? -1 : 1;
|
|
2487
|
+
}
|
|
2488
|
+
|
|
2489
|
+
return 0;
|
|
2490
|
+
}
|
|
2491
|
+
|
|
2492
|
+
function compare(v1, v2, operator) {
|
|
2493
|
+
var res = compareVersions(v1, v2);
|
|
2494
|
+
return operatorResMap[operator].indexOf(res) > -1;
|
|
2495
|
+
}
|
|
2496
|
+
|
|
2497
|
+
function validate(version) {
|
|
2498
|
+
return acceptsAll.includes(version) || semver.test(version);
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2501
|
+
function satisfies(v, r) {
|
|
2502
|
+
if (!acceptsAll.includes(r)) {
|
|
2503
|
+
var match = r.match(/^([<>=~^]+)/);
|
|
2504
|
+
var op = match ? match[1] : "=";
|
|
2505
|
+
|
|
2506
|
+
if (op !== "^" && op !== "~") {
|
|
2507
|
+
return compare(v, r, op);
|
|
2508
|
+
}
|
|
2509
|
+
|
|
2510
|
+
var _validateAndParse = validateAndParse(v),
|
|
2511
|
+
_validateAndParse2 = _slicedToArray(_validateAndParse, 3),
|
|
2512
|
+
v1 = _validateAndParse2[0],
|
|
2513
|
+
v2 = _validateAndParse2[1],
|
|
2514
|
+
v3 = _validateAndParse2[2];
|
|
2515
|
+
|
|
2516
|
+
var _validateAndParse3 = validateAndParse(r),
|
|
2517
|
+
_validateAndParse4 = _slicedToArray(_validateAndParse3, 3),
|
|
2518
|
+
m1 = _validateAndParse4[0],
|
|
2519
|
+
m2 = _validateAndParse4[1],
|
|
2520
|
+
m3 = _validateAndParse4[2];
|
|
2521
|
+
|
|
2522
|
+
if (compareStrings(v1, m1) !== 0) {
|
|
2523
|
+
return false;
|
|
2524
|
+
} else if (op === "^") {
|
|
2525
|
+
return compareSegments([v2, v3], [m2, m3]) >= 0;
|
|
2526
|
+
} else if (compareStrings(v2, m2) !== 0) {
|
|
2527
|
+
return false;
|
|
2528
|
+
}
|
|
2529
|
+
|
|
2530
|
+
return compareStrings(v3, m3) >= 0;
|
|
2531
|
+
}
|
|
2532
|
+
|
|
2533
|
+
return true;
|
|
2534
|
+
} // src/utils/system.ts
|
|
2535
|
+
|
|
2536
|
+
|
|
2537
|
+
var systemResolve = System.constructor.prototype.resolve;
|
|
2538
|
+
var systemRegister = System.constructor.prototype.register;
|
|
2539
|
+
|
|
2540
|
+
function getLoadedVersions(prefix) {
|
|
2541
|
+
return _toConsumableArray(System.entries()).filter(function (_ref) {
|
|
2542
|
+
var _ref2 = _slicedToArray(_ref, 1),
|
|
2543
|
+
name = _ref2[0];
|
|
2544
|
+
|
|
2545
|
+
return name.startsWith(prefix);
|
|
2546
|
+
}).map(function (_ref3) {
|
|
2547
|
+
var _ref4 = _slicedToArray(_ref3, 1),
|
|
2548
|
+
name = _ref4[0];
|
|
2549
|
+
|
|
2550
|
+
return name.substring(prefix.length);
|
|
2551
|
+
});
|
|
2552
|
+
}
|
|
2553
|
+
|
|
2554
|
+
function findMatchingPackage(id) {
|
|
2555
|
+
var sep = id.indexOf("@", 1);
|
|
2556
|
+
|
|
2557
|
+
if (sep > 1) {
|
|
2558
|
+
var available = Object.keys(System.registerRegistry);
|
|
2559
|
+
var name = id.substring(0, sep + 1);
|
|
2560
|
+
var versionSpec = id.substring(sep + 1);
|
|
2561
|
+
|
|
2562
|
+
if (validate(versionSpec)) {
|
|
2563
|
+
var loadedVersions = getLoadedVersions(name);
|
|
2564
|
+
var allVersions = available.filter(function (m) {
|
|
2565
|
+
return m.startsWith(name);
|
|
2566
|
+
}).map(function (m) {
|
|
2567
|
+
return m.substring(name.length);
|
|
2568
|
+
});
|
|
2569
|
+
var availableVersions = [].concat(_toConsumableArray(loadedVersions), _toConsumableArray(allVersions.filter(function (m) {
|
|
2570
|
+
return !loadedVersions.includes(m);
|
|
2571
|
+
})));
|
|
2572
|
+
|
|
2573
|
+
var _iterator = _createForOfIteratorHelper(availableVersions),
|
|
2574
|
+
_step;
|
|
2575
|
+
|
|
2576
|
+
try {
|
|
2577
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2578
|
+
var availableVersion = _step.value;
|
|
2579
|
+
|
|
2580
|
+
if (validate(availableVersion) && satisfies(availableVersion, versionSpec)) {
|
|
2581
|
+
return name + availableVersion;
|
|
2582
|
+
}
|
|
2583
|
+
}
|
|
2584
|
+
} catch (err) {
|
|
2585
|
+
_iterator.e(err);
|
|
2586
|
+
} finally {
|
|
2587
|
+
_iterator.f();
|
|
2588
|
+
}
|
|
2589
|
+
}
|
|
2590
|
+
}
|
|
2591
|
+
|
|
2592
|
+
return void 0;
|
|
2593
|
+
}
|
|
2594
|
+
|
|
2595
|
+
function isPrimitiveExport(content) {
|
|
2596
|
+
var type = _typeof(content);
|
|
2597
|
+
|
|
2598
|
+
return type === "number" || type === "boolean" || type === "symbol" || type === "string" || type === "bigint" || Array.isArray(content);
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
System.constructor.prototype.resolve = function (id, parentUrl) {
|
|
2602
|
+
try {
|
|
2603
|
+
return systemResolve.call(this, id, parentUrl);
|
|
2604
|
+
} catch (ex) {
|
|
2605
|
+
var result = findMatchingPackage(id);
|
|
2606
|
+
|
|
2607
|
+
if (!result) {
|
|
2608
|
+
throw ex;
|
|
2609
|
+
}
|
|
2610
|
+
|
|
2611
|
+
return result;
|
|
2612
|
+
}
|
|
2613
|
+
};
|
|
2614
|
+
|
|
2615
|
+
System.constructor.prototype.register = function () {
|
|
2616
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2617
|
+
args[_key] = arguments[_key];
|
|
2618
|
+
}
|
|
2619
|
+
|
|
2620
|
+
var getContent = args.pop();
|
|
2621
|
+
args.push(function (_export, ctx) {
|
|
2622
|
+
var exp = function exp() {
|
|
2623
|
+
if (arguments.length === 1) {
|
|
2624
|
+
var content = arguments.length <= 0 ? undefined : arguments[0];
|
|
2625
|
+
|
|
2626
|
+
if (content instanceof Promise) {
|
|
2627
|
+
return content.then(exp);
|
|
2628
|
+
} else if (typeof content === "function") {
|
|
2629
|
+
_export("__esModule", true);
|
|
2630
|
+
|
|
2631
|
+
Object.keys(content).forEach(function (prop) {
|
|
2632
|
+
_export(prop, content[prop]);
|
|
2633
|
+
});
|
|
2634
|
+
|
|
2635
|
+
_export("default", content);
|
|
2636
|
+
} else if (isPrimitiveExport(content)) {
|
|
2637
|
+
_export("__esModule", true);
|
|
2638
|
+
|
|
2639
|
+
_export("default", content);
|
|
2640
|
+
} else if (content) {
|
|
2641
|
+
_export(content);
|
|
2642
|
+
|
|
2643
|
+
if (_typeof(content) === "object" && !("default" in content)) {
|
|
2644
|
+
_export("default", content);
|
|
2645
|
+
}
|
|
2646
|
+
}
|
|
2647
|
+
} else {
|
|
2648
|
+
_export.apply(void 0, arguments);
|
|
2649
|
+
}
|
|
2650
|
+
};
|
|
2651
|
+
|
|
2652
|
+
return getContent(exp, ctx);
|
|
2653
|
+
});
|
|
2654
|
+
return systemRegister.apply(this, args);
|
|
2655
|
+
};
|
|
2656
|
+
|
|
2657
|
+
function tryResolve(name, parent) {
|
|
2658
|
+
try {
|
|
2659
|
+
return System.resolve(name, parent);
|
|
2660
|
+
} catch (e) {
|
|
2661
|
+
return void 0;
|
|
2662
|
+
}
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
function registerDependencies(modules) {
|
|
2666
|
+
var moduleNames = Object.keys(modules);
|
|
2667
|
+
moduleNames.forEach(function (name) {
|
|
2668
|
+
return registerModule(name, function () {
|
|
2669
|
+
return modules[name];
|
|
2670
|
+
});
|
|
2671
|
+
});
|
|
2672
|
+
return Promise.all(moduleNames.map(function (name) {
|
|
2673
|
+
return System["import"](name);
|
|
2674
|
+
}));
|
|
2675
|
+
}
|
|
2676
|
+
|
|
2677
|
+
function registerModule(name, resolve) {
|
|
2678
|
+
System.register(name, [], function (_exports) {
|
|
2679
|
+
return {
|
|
2680
|
+
execute: function execute() {
|
|
2681
|
+
var content = resolve();
|
|
2682
|
+
|
|
2683
|
+
if (content instanceof Promise) {
|
|
2684
|
+
return content.then(_exports);
|
|
2685
|
+
} else {
|
|
2686
|
+
_exports(content);
|
|
2687
|
+
}
|
|
2688
|
+
}
|
|
2689
|
+
};
|
|
2690
|
+
});
|
|
2691
|
+
}
|
|
2692
|
+
|
|
2693
|
+
function unregisterModules(baseUrl, dependencies) {
|
|
2694
|
+
_toConsumableArray(System.entries()).map(function (_ref5) {
|
|
2695
|
+
var _ref6 = _slicedToArray(_ref5, 1),
|
|
2696
|
+
name = _ref6[0];
|
|
2697
|
+
|
|
2698
|
+
return name;
|
|
2699
|
+
}).filter(function (name) {
|
|
2700
|
+
return name.startsWith(baseUrl) && !dependencies.includes(name);
|
|
2701
|
+
}).forEach(function (name) {
|
|
2702
|
+
return System["delete"](name);
|
|
2703
|
+
});
|
|
2704
|
+
}
|
|
2705
|
+
|
|
2706
|
+
function requireModule(name, parent) {
|
|
2707
|
+
var moduleId = tryResolve(name, parent);
|
|
2708
|
+
var dependency = moduleId && System.get(moduleId);
|
|
2709
|
+
|
|
2710
|
+
if (!dependency) {
|
|
2711
|
+
var error = new Error("Cannot find module '".concat(name, "'"));
|
|
2712
|
+
error.code = "MODULE_NOT_FOUND";
|
|
2713
|
+
throw error;
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2716
|
+
return dependency;
|
|
2717
|
+
}
|
|
2718
|
+
|
|
2719
|
+
|
|
2720
|
+
|
|
2721
|
+
/***/ }),
|
|
2722
|
+
|
|
2723
|
+
/***/ "../../framework/piral-core/esm/Piral.js":
|
|
2724
|
+
/*!***********************************************!*\
|
|
2725
|
+
!*** ../../framework/piral-core/esm/Piral.js ***!
|
|
2726
|
+
\***********************************************/
|
|
2727
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2728
|
+
|
|
2729
|
+
"use strict";
|
|
2730
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2731
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2732
|
+
/* harmony export */ "Piral": () => (/* binding */ Piral)
|
|
2733
|
+
/* harmony export */ });
|
|
2734
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
2735
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
2736
|
+
/* harmony import */ var _createInstance__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./createInstance */ "../../framework/piral-core/esm/createInstance.js");
|
|
2737
|
+
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components */ "../../framework/piral-core/esm/components/components.js");
|
|
2738
|
+
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components */ "../../framework/piral-core/esm/components/PiralView.js");
|
|
2739
|
+
/* harmony import */ var _PiralContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PiralContext */ "../../framework/piral-core/esm/PiralContext.js");
|
|
2740
|
+
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../app.codegen */ "../../framework/piral-core/app.codegen");
|
|
1884
2741
|
|
|
1885
2742
|
|
|
1886
2743
|
|
|
@@ -3341,110 +4198,6 @@ function createInstance() {
|
|
|
3341
4198
|
|
|
3342
4199
|
/***/ }),
|
|
3343
4200
|
|
|
3344
|
-
/***/ "../../framework/piral-core/esm/debugger.js":
|
|
3345
|
-
/*!**************************************************!*\
|
|
3346
|
-
!*** ../../framework/piral-core/esm/debugger.js ***!
|
|
3347
|
-
\**************************************************/
|
|
3348
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3349
|
-
|
|
3350
|
-
"use strict";
|
|
3351
|
-
__webpack_require__.r(__webpack_exports__);
|
|
3352
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3353
|
-
/* harmony export */ "integrateDebugger": () => (/* binding */ integrateDebugger)
|
|
3354
|
-
/* harmony export */ });
|
|
3355
|
-
/* harmony import */ var piral_debug_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! piral-debug-utils */ "../../utilities/piral-debug-utils/esm/debug.js");
|
|
3356
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
3357
|
-
|
|
3358
|
-
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."); }
|
|
3359
|
-
|
|
3360
|
-
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); }
|
|
3361
|
-
|
|
3362
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
3363
|
-
|
|
3364
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
3365
|
-
|
|
3366
|
-
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; }
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
function integrateDebugger(context, options) {
|
|
3370
|
-
var debug = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
3371
|
-
(0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_0__.installPiralDebug)(Object.assign(Object.assign({}, debug), {
|
|
3372
|
-
addPilet: context.addPilet,
|
|
3373
|
-
removePilet: context.removePilet,
|
|
3374
|
-
updatePilet: function updatePilet(pilet) {
|
|
3375
|
-
if (!pilet.disabled) {
|
|
3376
|
-
var createApi = options.createApi;
|
|
3377
|
-
var newApi = createApi(pilet);
|
|
3378
|
-
|
|
3379
|
-
try {
|
|
3380
|
-
context.injectPilet(pilet);
|
|
3381
|
-
pilet.setup(newApi);
|
|
3382
|
-
} catch (error) {
|
|
3383
|
-
console.error(error);
|
|
3384
|
-
}
|
|
3385
|
-
} else {
|
|
3386
|
-
context.injectPilet(pilet);
|
|
3387
|
-
}
|
|
3388
|
-
},
|
|
3389
|
-
fireEvent: context.emit,
|
|
3390
|
-
getDependencies: function getDependencies() {
|
|
3391
|
-
return Object.keys(options.dependencies);
|
|
3392
|
-
},
|
|
3393
|
-
getExtensions: function getExtensions() {
|
|
3394
|
-
return context.readState(function (s) {
|
|
3395
|
-
return Object.keys(s.registry.extensions);
|
|
3396
|
-
});
|
|
3397
|
-
},
|
|
3398
|
-
getRoutes: function getRoutes() {
|
|
3399
|
-
var registeredRoutes = context.readState(function (state) {
|
|
3400
|
-
return Object.keys(state.registry.pages);
|
|
3401
|
-
});
|
|
3402
|
-
var componentRoutes = context.readState(function (state) {
|
|
3403
|
-
return Object.keys(state.routes);
|
|
3404
|
-
});
|
|
3405
|
-
return [].concat(_toConsumableArray(componentRoutes), _toConsumableArray(registeredRoutes));
|
|
3406
|
-
},
|
|
3407
|
-
getGlobalState: function getGlobalState() {
|
|
3408
|
-
return context.readState(function (s) {
|
|
3409
|
-
return s;
|
|
3410
|
-
});
|
|
3411
|
-
},
|
|
3412
|
-
navigate: function navigate(path, state) {
|
|
3413
|
-
return context.navigation.push(path, state);
|
|
3414
|
-
},
|
|
3415
|
-
getPilets: function getPilets() {
|
|
3416
|
-
return context.readState(function (s) {
|
|
3417
|
-
return s.modules;
|
|
3418
|
-
});
|
|
3419
|
-
},
|
|
3420
|
-
integrate: function integrate(dbg) {
|
|
3421
|
-
context.dispatch(function (s) {
|
|
3422
|
-
return Object.assign(Object.assign({}, s), {
|
|
3423
|
-
components: Object.assign(Object.assign({}, s.components), dbg.components),
|
|
3424
|
-
routes: Object.assign(Object.assign({}, s.routes), dbg.routes),
|
|
3425
|
-
registry: Object.assign(Object.assign({}, s.registry), {
|
|
3426
|
-
wrappers: Object.assign(Object.assign({}, s.registry.wrappers), dbg.wrappers)
|
|
3427
|
-
})
|
|
3428
|
-
});
|
|
3429
|
-
});
|
|
3430
|
-
context.state.subscribe(function (current, previous) {
|
|
3431
|
-
var pilets = current.modules !== previous.modules;
|
|
3432
|
-
var pages = current.registry.pages !== previous.registry.pages || current.routes !== previous.routes;
|
|
3433
|
-
var extensions = current.registry.extensions !== previous.registry.extensions;
|
|
3434
|
-
var state = current !== previous;
|
|
3435
|
-
dbg.onChange(previous, current, {
|
|
3436
|
-
pilets: pilets,
|
|
3437
|
-
pages: pages,
|
|
3438
|
-
extensions: extensions,
|
|
3439
|
-
state: state
|
|
3440
|
-
});
|
|
3441
|
-
});
|
|
3442
|
-
}
|
|
3443
|
-
}));
|
|
3444
|
-
}
|
|
3445
|
-
|
|
3446
|
-
/***/ }),
|
|
3447
|
-
|
|
3448
4201
|
/***/ "../../framework/piral-core/esm/defaults/DefaultErrorInfo.js":
|
|
3449
4202
|
/*!*******************************************************************!*\
|
|
3450
4203
|
!*** ../../framework/piral-core/esm/defaults/DefaultErrorInfo.js ***!
|
|
@@ -3715,31 +4468,6 @@ function createNavigation() {
|
|
|
3715
4468
|
|
|
3716
4469
|
/***/ }),
|
|
3717
4470
|
|
|
3718
|
-
/***/ "../../framework/piral-core/esm/emulator.js":
|
|
3719
|
-
/*!**************************************************!*\
|
|
3720
|
-
!*** ../../framework/piral-core/esm/emulator.js ***!
|
|
3721
|
-
\**************************************************/
|
|
3722
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3723
|
-
|
|
3724
|
-
"use strict";
|
|
3725
|
-
__webpack_require__.r(__webpack_exports__);
|
|
3726
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3727
|
-
/* harmony export */ "integrateEmulator": () => (/* binding */ integrateEmulator)
|
|
3728
|
-
/* harmony export */ });
|
|
3729
|
-
/* harmony import */ var piral_debug_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! piral-debug-utils */ "../../utilities/piral-debug-utils/esm/emulator.js");
|
|
3730
|
-
|
|
3731
|
-
function integrateEmulator(context, options) {
|
|
3732
|
-
(0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_0__.installPiletEmulator)(options.fetchPilets, {
|
|
3733
|
-
addPilet: context.addPilet,
|
|
3734
|
-
removePilet: context.removePilet,
|
|
3735
|
-
integrate: function integrate(requester) {
|
|
3736
|
-
options.fetchPilets = requester;
|
|
3737
|
-
}
|
|
3738
|
-
});
|
|
3739
|
-
}
|
|
3740
|
-
|
|
3741
|
-
/***/ }),
|
|
3742
|
-
|
|
3743
4471
|
/***/ "../../framework/piral-core/esm/helpers.js":
|
|
3744
4472
|
/*!*************************************************!*\
|
|
3745
4473
|
!*** ../../framework/piral-core/esm/helpers.js ***!
|
|
@@ -3753,8 +4481,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3753
4481
|
/* harmony export */ });
|
|
3754
4482
|
/* harmony import */ var piral_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! piral-base */ "../../framework/piral-base/esm/loader.js");
|
|
3755
4483
|
/* harmony import */ var _modules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modules */ "../../framework/piral-core/esm/modules/dependencies.js");
|
|
3756
|
-
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../app.codegen */ "../../framework/piral-core/esm/debugger.js");
|
|
3757
|
-
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../app.codegen */ "../../framework/piral-core/esm/emulator.js");
|
|
4484
|
+
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../app.codegen */ "../../framework/piral-core/esm/tools/debugger.js");
|
|
4485
|
+
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../app.codegen */ "../../framework/piral-core/esm/tools/emulator.js");
|
|
3758
4486
|
|
|
3759
4487
|
|
|
3760
4488
|
|
|
@@ -4572,6 +5300,135 @@ function withApi(context, component, piral, errorType) {
|
|
|
4572
5300
|
|
|
4573
5301
|
/***/ }),
|
|
4574
5302
|
|
|
5303
|
+
/***/ "../../framework/piral-core/esm/tools/debugger.js":
|
|
5304
|
+
/*!********************************************************!*\
|
|
5305
|
+
!*** ../../framework/piral-core/esm/tools/debugger.js ***!
|
|
5306
|
+
\********************************************************/
|
|
5307
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
5308
|
+
|
|
5309
|
+
"use strict";
|
|
5310
|
+
__webpack_require__.r(__webpack_exports__);
|
|
5311
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5312
|
+
/* harmony export */ "integrateDebugger": () => (/* binding */ integrateDebugger)
|
|
5313
|
+
/* harmony export */ });
|
|
5314
|
+
/* harmony import */ var piral_debug_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! piral-debug-utils */ "../../utilities/piral-debug-utils/esm/debug.js");
|
|
5315
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
5316
|
+
|
|
5317
|
+
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."); }
|
|
5318
|
+
|
|
5319
|
+
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); }
|
|
5320
|
+
|
|
5321
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5322
|
+
|
|
5323
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
5324
|
+
|
|
5325
|
+
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; }
|
|
5326
|
+
|
|
5327
|
+
|
|
5328
|
+
function integrateDebugger(context, options) {
|
|
5329
|
+
var debug = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
5330
|
+
(0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_0__.installPiralDebug)(Object.assign(Object.assign({}, debug), {
|
|
5331
|
+
addPilet: context.addPilet,
|
|
5332
|
+
removePilet: context.removePilet,
|
|
5333
|
+
updatePilet: function updatePilet(pilet) {
|
|
5334
|
+
if (!pilet.disabled) {
|
|
5335
|
+
var createApi = options.createApi;
|
|
5336
|
+
var newApi = createApi(pilet);
|
|
5337
|
+
|
|
5338
|
+
try {
|
|
5339
|
+
context.injectPilet(pilet);
|
|
5340
|
+
pilet.setup(newApi);
|
|
5341
|
+
} catch (error) {
|
|
5342
|
+
console.error(error);
|
|
5343
|
+
}
|
|
5344
|
+
} else {
|
|
5345
|
+
context.injectPilet(pilet);
|
|
5346
|
+
}
|
|
5347
|
+
},
|
|
5348
|
+
fireEvent: context.emit,
|
|
5349
|
+
getDependencies: function getDependencies() {
|
|
5350
|
+
return Object.keys(options.dependencies);
|
|
5351
|
+
},
|
|
5352
|
+
getExtensions: function getExtensions() {
|
|
5353
|
+
return context.readState(function (s) {
|
|
5354
|
+
return Object.keys(s.registry.extensions);
|
|
5355
|
+
});
|
|
5356
|
+
},
|
|
5357
|
+
getRoutes: function getRoutes() {
|
|
5358
|
+
var registeredRoutes = context.readState(function (state) {
|
|
5359
|
+
return Object.keys(state.registry.pages);
|
|
5360
|
+
});
|
|
5361
|
+
var componentRoutes = context.readState(function (state) {
|
|
5362
|
+
return Object.keys(state.routes);
|
|
5363
|
+
});
|
|
5364
|
+
return [].concat(_toConsumableArray(componentRoutes), _toConsumableArray(registeredRoutes));
|
|
5365
|
+
},
|
|
5366
|
+
getGlobalState: function getGlobalState() {
|
|
5367
|
+
return context.readState(function (s) {
|
|
5368
|
+
return s;
|
|
5369
|
+
});
|
|
5370
|
+
},
|
|
5371
|
+
navigate: function navigate(path, state) {
|
|
5372
|
+
return context.navigation.push(path, state);
|
|
5373
|
+
},
|
|
5374
|
+
getPilets: function getPilets() {
|
|
5375
|
+
return context.readState(function (s) {
|
|
5376
|
+
return s.modules;
|
|
5377
|
+
});
|
|
5378
|
+
},
|
|
5379
|
+
integrate: function integrate(dbg) {
|
|
5380
|
+
context.dispatch(function (s) {
|
|
5381
|
+
return Object.assign(Object.assign({}, s), {
|
|
5382
|
+
components: Object.assign(Object.assign({}, s.components), dbg.components),
|
|
5383
|
+
routes: Object.assign(Object.assign({}, s.routes), dbg.routes),
|
|
5384
|
+
registry: Object.assign(Object.assign({}, s.registry), {
|
|
5385
|
+
wrappers: Object.assign(Object.assign({}, s.registry.wrappers), dbg.wrappers)
|
|
5386
|
+
})
|
|
5387
|
+
});
|
|
5388
|
+
});
|
|
5389
|
+
context.state.subscribe(function (current, previous) {
|
|
5390
|
+
var pilets = current.modules !== previous.modules;
|
|
5391
|
+
var pages = current.registry.pages !== previous.registry.pages || current.routes !== previous.routes;
|
|
5392
|
+
var extensions = current.registry.extensions !== previous.registry.extensions;
|
|
5393
|
+
var state = current !== previous;
|
|
5394
|
+
dbg.onChange(previous, current, {
|
|
5395
|
+
pilets: pilets,
|
|
5396
|
+
pages: pages,
|
|
5397
|
+
extensions: extensions,
|
|
5398
|
+
state: state
|
|
5399
|
+
});
|
|
5400
|
+
});
|
|
5401
|
+
}
|
|
5402
|
+
}));
|
|
5403
|
+
}
|
|
5404
|
+
|
|
5405
|
+
/***/ }),
|
|
5406
|
+
|
|
5407
|
+
/***/ "../../framework/piral-core/esm/tools/emulator.js":
|
|
5408
|
+
/*!********************************************************!*\
|
|
5409
|
+
!*** ../../framework/piral-core/esm/tools/emulator.js ***!
|
|
5410
|
+
\********************************************************/
|
|
5411
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
5412
|
+
|
|
5413
|
+
"use strict";
|
|
5414
|
+
__webpack_require__.r(__webpack_exports__);
|
|
5415
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5416
|
+
/* harmony export */ "integrateEmulator": () => (/* binding */ integrateEmulator)
|
|
5417
|
+
/* harmony export */ });
|
|
5418
|
+
/* harmony import */ var piral_debug_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! piral-debug-utils */ "../../utilities/piral-debug-utils/esm/emulator.js");
|
|
5419
|
+
|
|
5420
|
+
function integrateEmulator(context, options) {
|
|
5421
|
+
(0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_0__.installPiletEmulator)(options.fetchPilets, {
|
|
5422
|
+
addPilet: context.addPilet,
|
|
5423
|
+
removePilet: context.removePilet,
|
|
5424
|
+
integrate: function integrate(requester) {
|
|
5425
|
+
options.fetchPilets = requester;
|
|
5426
|
+
}
|
|
5427
|
+
});
|
|
5428
|
+
}
|
|
5429
|
+
|
|
5430
|
+
/***/ }),
|
|
5431
|
+
|
|
4575
5432
|
/***/ "../../framework/piral-core/esm/utils/compare.js":
|
|
4576
5433
|
/*!*******************************************************!*\
|
|
4577
5434
|
!*** ../../framework/piral-core/esm/utils/compare.js ***!
|
|
@@ -5784,11 +6641,11 @@ function installPiralDebug(options) {
|
|
|
5784
6641
|
debug: debugApiVersion,
|
|
5785
6642
|
instance: {
|
|
5786
6643
|
name: "minimal-piral",
|
|
5787
|
-
version: "0.15.0-beta.
|
|
6644
|
+
version: "0.15.0-beta.4708",
|
|
5788
6645
|
dependencies: "tslib,react,react-dom,react-router,react-router-dom"
|
|
5789
6646
|
},
|
|
5790
6647
|
build: {
|
|
5791
|
-
date: "2022-
|
|
6648
|
+
date: "2022-10-02T21:47:58.594Z",
|
|
5792
6649
|
cli: "0.14.32",
|
|
5793
6650
|
compat: "0.14"
|
|
5794
6651
|
}
|
|
@@ -7790,8 +8647,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7790
8647
|
/* harmony export */ "createNavigation": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_5__.createNavigation),
|
|
7791
8648
|
/* harmony export */ "createRedirect": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_5__.createRedirect),
|
|
7792
8649
|
/* harmony export */ "fillDependencies": () => (/* binding */ fillDependencies),
|
|
7793
|
-
/* harmony export */ "integrateDebugger": () => (/* reexport safe */
|
|
7794
|
-
/* harmony export */ "integrateEmulator": () => (/* reexport safe */
|
|
8650
|
+
/* harmony export */ "integrateDebugger": () => (/* reexport safe */ piral_core_tools_debugger__WEBPACK_IMPORTED_MODULE_11__.integrateDebugger),
|
|
8651
|
+
/* harmony export */ "integrateEmulator": () => (/* reexport safe */ piral_core_tools_emulator__WEBPACK_IMPORTED_MODULE_12__.integrateEmulator),
|
|
7795
8652
|
/* harmony export */ "publicPath": () => (/* binding */ publicPath),
|
|
7796
8653
|
/* harmony export */ "useRouteFilter": () => (/* binding */ useRouteFilter),
|
|
7797
8654
|
/* harmony export */ "useRouterContext": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_5__.useRouterContext)
|
|
@@ -7808,8 +8665,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7808
8665
|
/* harmony import */ var piral_core_defaults_DefaultRouter_v5__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! piral-core/_/defaults/DefaultRouter_v5 */ "../../framework/piral-core/esm/defaults/DefaultRouter_v5.js");
|
|
7809
8666
|
/* harmony import */ var piral_core_defaults_DefaultRouteSwitch_v5__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! piral-core/_/defaults/DefaultRouteSwitch_v5 */ "../../framework/piral-core/esm/defaults/DefaultRouteSwitch_v5.js");
|
|
7810
8667
|
/* harmony import */ var piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! piral-core/_/defaults/navigator_v5 */ "../../framework/piral-core/esm/defaults/navigator_v5.js");
|
|
7811
|
-
/* harmony import */ var
|
|
7812
|
-
/* harmony import */ var
|
|
8668
|
+
/* harmony import */ var piral_core_tools_debugger__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! piral-core/_/tools/debugger */ "../../framework/piral-core/esm/tools/debugger.js");
|
|
8669
|
+
/* harmony import */ var piral_core_tools_emulator__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! piral-core/_/tools/emulator */ "../../framework/piral-core/esm/tools/emulator.js");
|
|
7813
8670
|
/* harmony import */ var piral_debug_utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! piral-debug-utils */ "../../utilities/piral-debug-utils/esm/emulator.js");
|
|
7814
8671
|
|
|
7815
8672
|
|
|
@@ -7827,10 +8684,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7827
8684
|
|
|
7828
8685
|
|
|
7829
8686
|
|
|
7830
|
-
|
|
7831
8687
|
|
|
7832
8688
|
function fillDependencies(deps) {
|
|
7833
|
-
deps['minimal-piral']={};deps["tslib"]=tslib__WEBPACK_IMPORTED_MODULE_2__;deps["
|
|
8689
|
+
deps['minimal-piral']={};deps["tslib"]=tslib__WEBPACK_IMPORTED_MODULE_2__;deps["react"]=react__WEBPACK_IMPORTED_MODULE_0__;deps["react-dom"]=/*#__PURE__*/ (react_dom__WEBPACK_IMPORTED_MODULE_1___namespace_cache || (react_dom__WEBPACK_IMPORTED_MODULE_1___namespace_cache = __webpack_require__.t(react_dom__WEBPACK_IMPORTED_MODULE_1__, 2)));deps["react-router"]=react_router__WEBPACK_IMPORTED_MODULE_3__;deps["react-router-dom"]=react_router_dom__WEBPACK_IMPORTED_MODULE_4__
|
|
7834
8690
|
}
|
|
7835
8691
|
|
|
7836
8692
|
|
|
@@ -43043,2032 +43899,916 @@ function describeNativeComponentFrame(fn, construct) {
|
|
|
43043
43899
|
}
|
|
43044
43900
|
}
|
|
43045
43901
|
} finally {
|
|
43046
|
-
reentry = false;
|
|
43047
|
-
|
|
43048
|
-
{
|
|
43049
|
-
ReactCurrentDispatcher$1.current = previousDispatcher;
|
|
43050
|
-
reenableLogs();
|
|
43051
|
-
}
|
|
43052
|
-
|
|
43053
|
-
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
43054
|
-
} // Fallback to just using the name if we couldn't make it throw.
|
|
43055
|
-
|
|
43056
|
-
|
|
43057
|
-
var name = fn ? fn.displayName || fn.name : '';
|
|
43058
|
-
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
|
|
43059
|
-
|
|
43060
|
-
{
|
|
43061
|
-
if (typeof fn === 'function') {
|
|
43062
|
-
componentFrameCache.set(fn, syntheticFrame);
|
|
43063
|
-
}
|
|
43064
|
-
}
|
|
43065
|
-
|
|
43066
|
-
return syntheticFrame;
|
|
43067
|
-
}
|
|
43068
|
-
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
43069
|
-
{
|
|
43070
|
-
return describeNativeComponentFrame(fn, false);
|
|
43071
|
-
}
|
|
43072
|
-
}
|
|
43073
|
-
|
|
43074
|
-
function shouldConstruct(Component) {
|
|
43075
|
-
var prototype = Component.prototype;
|
|
43076
|
-
return !!(prototype && prototype.isReactComponent);
|
|
43077
|
-
}
|
|
43078
|
-
|
|
43079
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
43080
|
-
|
|
43081
|
-
if (type == null) {
|
|
43082
|
-
return '';
|
|
43083
|
-
}
|
|
43084
|
-
|
|
43085
|
-
if (typeof type === 'function') {
|
|
43086
|
-
{
|
|
43087
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
43088
|
-
}
|
|
43089
|
-
}
|
|
43090
|
-
|
|
43091
|
-
if (typeof type === 'string') {
|
|
43092
|
-
return describeBuiltInComponentFrame(type);
|
|
43093
|
-
}
|
|
43094
|
-
|
|
43095
|
-
switch (type) {
|
|
43096
|
-
case REACT_SUSPENSE_TYPE:
|
|
43097
|
-
return describeBuiltInComponentFrame('Suspense');
|
|
43098
|
-
|
|
43099
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
43100
|
-
return describeBuiltInComponentFrame('SuspenseList');
|
|
43101
|
-
}
|
|
43102
|
-
|
|
43103
|
-
if (typeof type === 'object') {
|
|
43104
|
-
switch (type.$$typeof) {
|
|
43105
|
-
case REACT_FORWARD_REF_TYPE:
|
|
43106
|
-
return describeFunctionComponentFrame(type.render);
|
|
43107
|
-
|
|
43108
|
-
case REACT_MEMO_TYPE:
|
|
43109
|
-
// Memo may contain any component type so we recursively resolve it.
|
|
43110
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
43111
|
-
|
|
43112
|
-
case REACT_LAZY_TYPE:
|
|
43113
|
-
{
|
|
43114
|
-
var lazyComponent = type;
|
|
43115
|
-
var payload = lazyComponent._payload;
|
|
43116
|
-
var init = lazyComponent._init;
|
|
43117
|
-
|
|
43118
|
-
try {
|
|
43119
|
-
// Lazy may contain any component type so we recursively resolve it.
|
|
43120
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
43121
|
-
} catch (x) {}
|
|
43122
|
-
}
|
|
43123
|
-
}
|
|
43124
|
-
}
|
|
43125
|
-
|
|
43126
|
-
return '';
|
|
43127
|
-
}
|
|
43128
|
-
|
|
43129
|
-
var loggedTypeFailures = {};
|
|
43130
|
-
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
43131
|
-
|
|
43132
|
-
function setCurrentlyValidatingElement(element) {
|
|
43133
|
-
{
|
|
43134
|
-
if (element) {
|
|
43135
|
-
var owner = element._owner;
|
|
43136
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
43137
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
43138
|
-
} else {
|
|
43139
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
43140
|
-
}
|
|
43141
|
-
}
|
|
43142
|
-
}
|
|
43143
|
-
|
|
43144
|
-
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
43145
|
-
{
|
|
43146
|
-
// $FlowFixMe This is okay but Flow doesn't know it.
|
|
43147
|
-
var has = Function.call.bind(hasOwnProperty);
|
|
43148
|
-
|
|
43149
|
-
for (var typeSpecName in typeSpecs) {
|
|
43150
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
43151
|
-
var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
|
|
43152
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
43153
|
-
// After these have been cleaned up, we'll let them throw.
|
|
43154
|
-
|
|
43155
|
-
try {
|
|
43156
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
43157
|
-
// behavior as without this statement except with a better message.
|
|
43158
|
-
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
43159
|
-
// eslint-disable-next-line react-internal/prod-error-codes
|
|
43160
|
-
var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
|
|
43161
|
-
err.name = 'Invariant Violation';
|
|
43162
|
-
throw err;
|
|
43163
|
-
}
|
|
43164
|
-
|
|
43165
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
|
|
43166
|
-
} catch (ex) {
|
|
43167
|
-
error$1 = ex;
|
|
43168
|
-
}
|
|
43169
|
-
|
|
43170
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
43171
|
-
setCurrentlyValidatingElement(element);
|
|
43172
|
-
|
|
43173
|
-
error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
|
|
43174
|
-
|
|
43175
|
-
setCurrentlyValidatingElement(null);
|
|
43176
|
-
}
|
|
43177
|
-
|
|
43178
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
43179
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
43180
|
-
// same error.
|
|
43181
|
-
loggedTypeFailures[error$1.message] = true;
|
|
43182
|
-
setCurrentlyValidatingElement(element);
|
|
43183
|
-
|
|
43184
|
-
error('Failed %s type: %s', location, error$1.message);
|
|
43185
|
-
|
|
43186
|
-
setCurrentlyValidatingElement(null);
|
|
43187
|
-
}
|
|
43188
|
-
}
|
|
43189
|
-
}
|
|
43190
|
-
}
|
|
43191
|
-
}
|
|
43192
|
-
|
|
43193
|
-
function setCurrentlyValidatingElement$1(element) {
|
|
43194
|
-
{
|
|
43195
|
-
if (element) {
|
|
43196
|
-
var owner = element._owner;
|
|
43197
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
43198
|
-
setExtraStackFrame(stack);
|
|
43199
|
-
} else {
|
|
43200
|
-
setExtraStackFrame(null);
|
|
43201
|
-
}
|
|
43202
|
-
}
|
|
43203
|
-
}
|
|
43204
|
-
|
|
43205
|
-
var propTypesMisspellWarningShown;
|
|
43206
|
-
|
|
43207
|
-
{
|
|
43208
|
-
propTypesMisspellWarningShown = false;
|
|
43209
|
-
}
|
|
43210
|
-
|
|
43211
|
-
function getDeclarationErrorAddendum() {
|
|
43212
|
-
if (ReactCurrentOwner.current) {
|
|
43213
|
-
var name = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
43214
|
-
|
|
43215
|
-
if (name) {
|
|
43216
|
-
return '\n\nCheck the render method of `' + name + '`.';
|
|
43217
|
-
}
|
|
43218
|
-
}
|
|
43219
|
-
|
|
43220
|
-
return '';
|
|
43221
|
-
}
|
|
43222
|
-
|
|
43223
|
-
function getSourceInfoErrorAddendum(source) {
|
|
43224
|
-
if (source !== undefined) {
|
|
43225
|
-
var fileName = source.fileName.replace(/^.*[\\\/]/, '');
|
|
43226
|
-
var lineNumber = source.lineNumber;
|
|
43227
|
-
return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
|
|
43228
|
-
}
|
|
43229
|
-
|
|
43230
|
-
return '';
|
|
43231
|
-
}
|
|
43232
|
-
|
|
43233
|
-
function getSourceInfoErrorAddendumForProps(elementProps) {
|
|
43234
|
-
if (elementProps !== null && elementProps !== undefined) {
|
|
43235
|
-
return getSourceInfoErrorAddendum(elementProps.__source);
|
|
43236
|
-
}
|
|
43237
|
-
|
|
43238
|
-
return '';
|
|
43239
|
-
}
|
|
43240
|
-
/**
|
|
43241
|
-
* Warn if there's no key explicitly set on dynamic arrays of children or
|
|
43242
|
-
* object keys are not valid. This allows us to keep track of children between
|
|
43243
|
-
* updates.
|
|
43244
|
-
*/
|
|
43245
|
-
|
|
43246
|
-
|
|
43247
|
-
var ownerHasKeyUseWarning = {};
|
|
43248
|
-
|
|
43249
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
43250
|
-
var info = getDeclarationErrorAddendum();
|
|
43251
|
-
|
|
43252
|
-
if (!info) {
|
|
43253
|
-
var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
|
|
43254
|
-
|
|
43255
|
-
if (parentName) {
|
|
43256
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
43257
|
-
}
|
|
43258
|
-
}
|
|
43259
|
-
|
|
43260
|
-
return info;
|
|
43261
|
-
}
|
|
43262
|
-
/**
|
|
43263
|
-
* Warn if the element doesn't have an explicit key assigned to it.
|
|
43264
|
-
* This element is in an array. The array could grow and shrink or be
|
|
43265
|
-
* reordered. All children that haven't already been validated are required to
|
|
43266
|
-
* have a "key" property assigned to it. Error statuses are cached so a warning
|
|
43267
|
-
* will only be shown once.
|
|
43268
|
-
*
|
|
43269
|
-
* @internal
|
|
43270
|
-
* @param {ReactElement} element Element that requires a key.
|
|
43271
|
-
* @param {*} parentType element's parent's type.
|
|
43272
|
-
*/
|
|
43273
|
-
|
|
43274
|
-
|
|
43275
|
-
function validateExplicitKey(element, parentType) {
|
|
43276
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
43277
|
-
return;
|
|
43278
|
-
}
|
|
43279
|
-
|
|
43280
|
-
element._store.validated = true;
|
|
43281
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
43282
|
-
|
|
43283
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
43284
|
-
return;
|
|
43285
|
-
}
|
|
43286
|
-
|
|
43287
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
|
|
43288
|
-
// property, it may be the creator of the child that's responsible for
|
|
43289
|
-
// assigning it a key.
|
|
43290
|
-
|
|
43291
|
-
var childOwner = '';
|
|
43292
|
-
|
|
43293
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
|
|
43294
|
-
// Give the component that originally created this child.
|
|
43295
|
-
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
43296
|
-
}
|
|
43297
|
-
|
|
43298
|
-
{
|
|
43299
|
-
setCurrentlyValidatingElement$1(element);
|
|
43300
|
-
|
|
43301
|
-
error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
43302
|
-
|
|
43303
|
-
setCurrentlyValidatingElement$1(null);
|
|
43304
|
-
}
|
|
43305
|
-
}
|
|
43306
|
-
/**
|
|
43307
|
-
* Ensure that every element either is passed in a static location, in an
|
|
43308
|
-
* array with an explicit keys property defined, or in an object literal
|
|
43309
|
-
* with valid key property.
|
|
43310
|
-
*
|
|
43311
|
-
* @internal
|
|
43312
|
-
* @param {ReactNode} node Statically passed child of any type.
|
|
43313
|
-
* @param {*} parentType node's parent's type.
|
|
43314
|
-
*/
|
|
43315
|
-
|
|
43316
|
-
|
|
43317
|
-
function validateChildKeys(node, parentType) {
|
|
43318
|
-
if (typeof node !== 'object') {
|
|
43319
|
-
return;
|
|
43320
|
-
}
|
|
43321
|
-
|
|
43322
|
-
if (isArray(node)) {
|
|
43323
|
-
for (var i = 0; i < node.length; i++) {
|
|
43324
|
-
var child = node[i];
|
|
43325
|
-
|
|
43326
|
-
if (isValidElement(child)) {
|
|
43327
|
-
validateExplicitKey(child, parentType);
|
|
43328
|
-
}
|
|
43329
|
-
}
|
|
43330
|
-
} else if (isValidElement(node)) {
|
|
43331
|
-
// This element was passed in a valid location.
|
|
43332
|
-
if (node._store) {
|
|
43333
|
-
node._store.validated = true;
|
|
43334
|
-
}
|
|
43335
|
-
} else if (node) {
|
|
43336
|
-
var iteratorFn = getIteratorFn(node);
|
|
43337
|
-
|
|
43338
|
-
if (typeof iteratorFn === 'function') {
|
|
43339
|
-
// Entry iterators used to provide implicit keys,
|
|
43340
|
-
// but now we print a separate warning for them later.
|
|
43341
|
-
if (iteratorFn !== node.entries) {
|
|
43342
|
-
var iterator = iteratorFn.call(node);
|
|
43343
|
-
var step;
|
|
43344
|
-
|
|
43345
|
-
while (!(step = iterator.next()).done) {
|
|
43346
|
-
if (isValidElement(step.value)) {
|
|
43347
|
-
validateExplicitKey(step.value, parentType);
|
|
43348
|
-
}
|
|
43349
|
-
}
|
|
43350
|
-
}
|
|
43351
|
-
}
|
|
43352
|
-
}
|
|
43353
|
-
}
|
|
43354
|
-
/**
|
|
43355
|
-
* Given an element, validate that its props follow the propTypes definition,
|
|
43356
|
-
* provided by the type.
|
|
43357
|
-
*
|
|
43358
|
-
* @param {ReactElement} element
|
|
43359
|
-
*/
|
|
43360
|
-
|
|
43361
|
-
|
|
43362
|
-
function validatePropTypes(element) {
|
|
43363
|
-
{
|
|
43364
|
-
var type = element.type;
|
|
43365
|
-
|
|
43366
|
-
if (type === null || type === undefined || typeof type === 'string') {
|
|
43367
|
-
return;
|
|
43368
|
-
}
|
|
43369
|
-
|
|
43370
|
-
var propTypes;
|
|
43371
|
-
|
|
43372
|
-
if (typeof type === 'function') {
|
|
43373
|
-
propTypes = type.propTypes;
|
|
43374
|
-
} else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
43375
|
-
// Inner props are checked in the reconciler.
|
|
43376
|
-
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
43377
|
-
propTypes = type.propTypes;
|
|
43378
|
-
} else {
|
|
43379
|
-
return;
|
|
43380
|
-
}
|
|
43381
|
-
|
|
43382
|
-
if (propTypes) {
|
|
43383
|
-
// Intentionally inside to avoid triggering lazy initializers:
|
|
43384
|
-
var name = getComponentNameFromType(type);
|
|
43385
|
-
checkPropTypes(propTypes, element.props, 'prop', name, element);
|
|
43386
|
-
} else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
|
|
43387
|
-
propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
|
|
43388
|
-
|
|
43389
|
-
var _name = getComponentNameFromType(type);
|
|
43390
|
-
|
|
43391
|
-
error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
|
|
43392
|
-
}
|
|
43393
|
-
|
|
43394
|
-
if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
|
|
43395
|
-
error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
|
|
43396
|
-
}
|
|
43397
|
-
}
|
|
43398
|
-
}
|
|
43399
|
-
/**
|
|
43400
|
-
* Given a fragment, validate that it can only be provided with fragment props
|
|
43401
|
-
* @param {ReactElement} fragment
|
|
43402
|
-
*/
|
|
43403
|
-
|
|
43404
|
-
|
|
43405
|
-
function validateFragmentProps(fragment) {
|
|
43406
|
-
{
|
|
43407
|
-
var keys = Object.keys(fragment.props);
|
|
43408
|
-
|
|
43409
|
-
for (var i = 0; i < keys.length; i++) {
|
|
43410
|
-
var key = keys[i];
|
|
43411
|
-
|
|
43412
|
-
if (key !== 'children' && key !== 'key') {
|
|
43413
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
43414
|
-
|
|
43415
|
-
error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
|
|
43416
|
-
|
|
43417
|
-
setCurrentlyValidatingElement$1(null);
|
|
43418
|
-
break;
|
|
43419
|
-
}
|
|
43420
|
-
}
|
|
43421
|
-
|
|
43422
|
-
if (fragment.ref !== null) {
|
|
43423
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
43424
|
-
|
|
43425
|
-
error('Invalid attribute `ref` supplied to `React.Fragment`.');
|
|
43426
|
-
|
|
43427
|
-
setCurrentlyValidatingElement$1(null);
|
|
43428
|
-
}
|
|
43429
|
-
}
|
|
43430
|
-
}
|
|
43431
|
-
function createElementWithValidation(type, props, children) {
|
|
43432
|
-
var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
|
|
43433
|
-
// succeed and there will likely be errors in render.
|
|
43434
|
-
|
|
43435
|
-
if (!validType) {
|
|
43436
|
-
var info = '';
|
|
43437
|
-
|
|
43438
|
-
if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
|
|
43439
|
-
info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
|
|
43440
|
-
}
|
|
43441
|
-
|
|
43442
|
-
var sourceInfo = getSourceInfoErrorAddendumForProps(props);
|
|
43443
|
-
|
|
43444
|
-
if (sourceInfo) {
|
|
43445
|
-
info += sourceInfo;
|
|
43446
|
-
} else {
|
|
43447
|
-
info += getDeclarationErrorAddendum();
|
|
43448
|
-
}
|
|
43449
|
-
|
|
43450
|
-
var typeString;
|
|
43451
|
-
|
|
43452
|
-
if (type === null) {
|
|
43453
|
-
typeString = 'null';
|
|
43454
|
-
} else if (isArray(type)) {
|
|
43455
|
-
typeString = 'array';
|
|
43456
|
-
} else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
43457
|
-
typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
|
|
43458
|
-
info = ' Did you accidentally export a JSX literal instead of a component?';
|
|
43459
|
-
} else {
|
|
43460
|
-
typeString = typeof type;
|
|
43461
|
-
}
|
|
43462
|
-
|
|
43463
|
-
{
|
|
43464
|
-
error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
|
|
43465
|
-
}
|
|
43466
|
-
}
|
|
43467
|
-
|
|
43468
|
-
var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
|
|
43469
|
-
// TODO: Drop this when these are no longer allowed as the type argument.
|
|
43470
|
-
|
|
43471
|
-
if (element == null) {
|
|
43472
|
-
return element;
|
|
43473
|
-
} // Skip key warning if the type isn't valid since our key validation logic
|
|
43474
|
-
// doesn't expect a non-string/function type and can throw confusing errors.
|
|
43475
|
-
// We don't want exception behavior to differ between dev and prod.
|
|
43476
|
-
// (Rendering will throw with a helpful message and as soon as the type is
|
|
43477
|
-
// fixed, the key warnings will appear.)
|
|
43478
|
-
|
|
43479
|
-
|
|
43480
|
-
if (validType) {
|
|
43481
|
-
for (var i = 2; i < arguments.length; i++) {
|
|
43482
|
-
validateChildKeys(arguments[i], type);
|
|
43483
|
-
}
|
|
43484
|
-
}
|
|
43485
|
-
|
|
43486
|
-
if (type === REACT_FRAGMENT_TYPE) {
|
|
43487
|
-
validateFragmentProps(element);
|
|
43488
|
-
} else {
|
|
43489
|
-
validatePropTypes(element);
|
|
43490
|
-
}
|
|
43491
|
-
|
|
43492
|
-
return element;
|
|
43493
|
-
}
|
|
43494
|
-
var didWarnAboutDeprecatedCreateFactory = false;
|
|
43495
|
-
function createFactoryWithValidation(type) {
|
|
43496
|
-
var validatedFactory = createElementWithValidation.bind(null, type);
|
|
43497
|
-
validatedFactory.type = type;
|
|
43902
|
+
reentry = false;
|
|
43498
43903
|
|
|
43499
|
-
|
|
43500
|
-
|
|
43501
|
-
|
|
43904
|
+
{
|
|
43905
|
+
ReactCurrentDispatcher$1.current = previousDispatcher;
|
|
43906
|
+
reenableLogs();
|
|
43907
|
+
}
|
|
43502
43908
|
|
|
43503
|
-
|
|
43504
|
-
|
|
43909
|
+
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
43910
|
+
} // Fallback to just using the name if we couldn't make it throw.
|
|
43505
43911
|
|
|
43506
43912
|
|
|
43507
|
-
|
|
43508
|
-
|
|
43509
|
-
get: function () {
|
|
43510
|
-
warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
|
|
43913
|
+
var name = fn ? fn.displayName || fn.name : '';
|
|
43914
|
+
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
|
|
43511
43915
|
|
|
43512
|
-
|
|
43513
|
-
|
|
43514
|
-
|
|
43515
|
-
|
|
43516
|
-
}
|
|
43517
|
-
});
|
|
43916
|
+
{
|
|
43917
|
+
if (typeof fn === 'function') {
|
|
43918
|
+
componentFrameCache.set(fn, syntheticFrame);
|
|
43919
|
+
}
|
|
43518
43920
|
}
|
|
43519
43921
|
|
|
43520
|
-
return
|
|
43922
|
+
return syntheticFrame;
|
|
43521
43923
|
}
|
|
43522
|
-
function
|
|
43523
|
-
|
|
43524
|
-
|
|
43525
|
-
for (var i = 2; i < arguments.length; i++) {
|
|
43526
|
-
validateChildKeys(arguments[i], newElement.type);
|
|
43924
|
+
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
43925
|
+
{
|
|
43926
|
+
return describeNativeComponentFrame(fn, false);
|
|
43527
43927
|
}
|
|
43928
|
+
}
|
|
43528
43929
|
|
|
43529
|
-
|
|
43530
|
-
|
|
43930
|
+
function shouldConstruct(Component) {
|
|
43931
|
+
var prototype = Component.prototype;
|
|
43932
|
+
return !!(prototype && prototype.isReactComponent);
|
|
43531
43933
|
}
|
|
43532
43934
|
|
|
43533
|
-
function
|
|
43534
|
-
var prevTransition = ReactCurrentBatchConfig.transition;
|
|
43535
|
-
ReactCurrentBatchConfig.transition = {};
|
|
43536
|
-
var currentTransition = ReactCurrentBatchConfig.transition;
|
|
43935
|
+
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
43537
43936
|
|
|
43538
|
-
{
|
|
43539
|
-
|
|
43937
|
+
if (type == null) {
|
|
43938
|
+
return '';
|
|
43540
43939
|
}
|
|
43541
43940
|
|
|
43542
|
-
|
|
43543
|
-
scope();
|
|
43544
|
-
} finally {
|
|
43545
|
-
ReactCurrentBatchConfig.transition = prevTransition;
|
|
43546
|
-
|
|
43941
|
+
if (typeof type === 'function') {
|
|
43547
43942
|
{
|
|
43548
|
-
|
|
43549
|
-
|
|
43943
|
+
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
43944
|
+
}
|
|
43945
|
+
}
|
|
43550
43946
|
|
|
43551
|
-
|
|
43552
|
-
|
|
43553
|
-
|
|
43947
|
+
if (typeof type === 'string') {
|
|
43948
|
+
return describeBuiltInComponentFrame(type);
|
|
43949
|
+
}
|
|
43554
43950
|
|
|
43555
|
-
|
|
43556
|
-
|
|
43557
|
-
|
|
43951
|
+
switch (type) {
|
|
43952
|
+
case REACT_SUSPENSE_TYPE:
|
|
43953
|
+
return describeBuiltInComponentFrame('Suspense');
|
|
43954
|
+
|
|
43955
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
43956
|
+
return describeBuiltInComponentFrame('SuspenseList');
|
|
43558
43957
|
}
|
|
43559
|
-
}
|
|
43560
43958
|
|
|
43561
|
-
|
|
43562
|
-
|
|
43563
|
-
|
|
43564
|
-
|
|
43565
|
-
try {
|
|
43566
|
-
// read require off the module object to get around the bundlers.
|
|
43567
|
-
// we don't want them to detect a require and bundle a Node polyfill.
|
|
43568
|
-
var requireString = ('require' + Math.random()).slice(0, 7);
|
|
43569
|
-
var nodeRequire = module && module[requireString]; // assuming we're in node, let's try to get node's
|
|
43570
|
-
// version of setImmediate, bypassing fake timers if any.
|
|
43959
|
+
if (typeof type === 'object') {
|
|
43960
|
+
switch (type.$$typeof) {
|
|
43961
|
+
case REACT_FORWARD_REF_TYPE:
|
|
43962
|
+
return describeFunctionComponentFrame(type.render);
|
|
43571
43963
|
|
|
43572
|
-
|
|
43573
|
-
|
|
43574
|
-
|
|
43575
|
-
|
|
43576
|
-
|
|
43577
|
-
enqueueTaskImpl = function (callback) {
|
|
43964
|
+
case REACT_MEMO_TYPE:
|
|
43965
|
+
// Memo may contain any component type so we recursively resolve it.
|
|
43966
|
+
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
43967
|
+
|
|
43968
|
+
case REACT_LAZY_TYPE:
|
|
43578
43969
|
{
|
|
43579
|
-
|
|
43580
|
-
|
|
43970
|
+
var lazyComponent = type;
|
|
43971
|
+
var payload = lazyComponent._payload;
|
|
43972
|
+
var init = lazyComponent._init;
|
|
43581
43973
|
|
|
43582
|
-
|
|
43583
|
-
|
|
43584
|
-
|
|
43585
|
-
}
|
|
43974
|
+
try {
|
|
43975
|
+
// Lazy may contain any component type so we recursively resolve it.
|
|
43976
|
+
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
43977
|
+
} catch (x) {}
|
|
43586
43978
|
}
|
|
43587
|
-
|
|
43588
|
-
var channel = new MessageChannel();
|
|
43589
|
-
channel.port1.onmessage = callback;
|
|
43590
|
-
channel.port2.postMessage(undefined);
|
|
43591
|
-
};
|
|
43592
43979
|
}
|
|
43593
43980
|
}
|
|
43594
43981
|
|
|
43595
|
-
return
|
|
43982
|
+
return '';
|
|
43596
43983
|
}
|
|
43597
43984
|
|
|
43598
|
-
var
|
|
43599
|
-
var
|
|
43600
|
-
function act(callback) {
|
|
43601
|
-
{
|
|
43602
|
-
// `act` calls can be nested, so we track the depth. This represents the
|
|
43603
|
-
// number of `act` scopes on the stack.
|
|
43604
|
-
var prevActScopeDepth = actScopeDepth;
|
|
43605
|
-
actScopeDepth++;
|
|
43985
|
+
var loggedTypeFailures = {};
|
|
43986
|
+
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
43606
43987
|
|
|
43607
|
-
|
|
43608
|
-
|
|
43609
|
-
|
|
43610
|
-
|
|
43988
|
+
function setCurrentlyValidatingElement(element) {
|
|
43989
|
+
{
|
|
43990
|
+
if (element) {
|
|
43991
|
+
var owner = element._owner;
|
|
43992
|
+
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
43993
|
+
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
43994
|
+
} else {
|
|
43995
|
+
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
43611
43996
|
}
|
|
43997
|
+
}
|
|
43998
|
+
}
|
|
43612
43999
|
|
|
43613
|
-
|
|
43614
|
-
|
|
44000
|
+
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
44001
|
+
{
|
|
44002
|
+
// $FlowFixMe This is okay but Flow doesn't know it.
|
|
44003
|
+
var has = Function.call.bind(hasOwnProperty);
|
|
43615
44004
|
|
|
43616
|
-
|
|
43617
|
-
|
|
43618
|
-
|
|
43619
|
-
|
|
43620
|
-
|
|
43621
|
-
ReactCurrentActQueue.isBatchingLegacy = true;
|
|
43622
|
-
result = callback(); // Replicate behavior of original `act` implementation in legacy mode,
|
|
43623
|
-
// which flushed updates immediately after the scope function exits, even
|
|
43624
|
-
// if it's an async function.
|
|
44005
|
+
for (var typeSpecName in typeSpecs) {
|
|
44006
|
+
if (has(typeSpecs, typeSpecName)) {
|
|
44007
|
+
var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
|
|
44008
|
+
// fail the render phase where it didn't fail before. So we log it.
|
|
44009
|
+
// After these have been cleaned up, we'll let them throw.
|
|
43625
44010
|
|
|
43626
|
-
|
|
43627
|
-
|
|
44011
|
+
try {
|
|
44012
|
+
// This is intentionally an invariant that gets caught. It's the same
|
|
44013
|
+
// behavior as without this statement except with a better message.
|
|
44014
|
+
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
44015
|
+
// eslint-disable-next-line react-internal/prod-error-codes
|
|
44016
|
+
var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
|
|
44017
|
+
err.name = 'Invariant Violation';
|
|
44018
|
+
throw err;
|
|
44019
|
+
}
|
|
43628
44020
|
|
|
43629
|
-
|
|
43630
|
-
|
|
43631
|
-
|
|
44021
|
+
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
|
|
44022
|
+
} catch (ex) {
|
|
44023
|
+
error$1 = ex;
|
|
43632
44024
|
}
|
|
43633
|
-
}
|
|
43634
|
-
} catch (error) {
|
|
43635
|
-
popActScope(prevActScopeDepth);
|
|
43636
|
-
throw error;
|
|
43637
|
-
} finally {
|
|
43638
|
-
ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
|
|
43639
|
-
}
|
|
43640
|
-
|
|
43641
|
-
if (result !== null && typeof result === 'object' && typeof result.then === 'function') {
|
|
43642
|
-
var thenableResult = result; // The callback is an async function (i.e. returned a promise). Wait
|
|
43643
|
-
// for it to resolve before exiting the current scope.
|
|
43644
|
-
|
|
43645
|
-
var wasAwaited = false;
|
|
43646
|
-
var thenable = {
|
|
43647
|
-
then: function (resolve, reject) {
|
|
43648
|
-
wasAwaited = true;
|
|
43649
|
-
thenableResult.then(function (returnValue) {
|
|
43650
|
-
popActScope(prevActScopeDepth);
|
|
43651
44025
|
|
|
43652
|
-
|
|
43653
|
-
|
|
43654
|
-
// queue until there's no remaining work.
|
|
43655
|
-
recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
43656
|
-
} else {
|
|
43657
|
-
resolve(returnValue);
|
|
43658
|
-
}
|
|
43659
|
-
}, function (error) {
|
|
43660
|
-
// The callback threw an error.
|
|
43661
|
-
popActScope(prevActScopeDepth);
|
|
43662
|
-
reject(error);
|
|
43663
|
-
});
|
|
43664
|
-
}
|
|
43665
|
-
};
|
|
44026
|
+
if (error$1 && !(error$1 instanceof Error)) {
|
|
44027
|
+
setCurrentlyValidatingElement(element);
|
|
43666
44028
|
|
|
43667
|
-
|
|
43668
|
-
if (!didWarnNoAwaitAct && typeof Promise !== 'undefined') {
|
|
43669
|
-
// eslint-disable-next-line no-undef
|
|
43670
|
-
Promise.resolve().then(function () {}).then(function () {
|
|
43671
|
-
if (!wasAwaited) {
|
|
43672
|
-
didWarnNoAwaitAct = true;
|
|
44029
|
+
error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
|
|
43673
44030
|
|
|
43674
|
-
|
|
43675
|
-
}
|
|
43676
|
-
});
|
|
44031
|
+
setCurrentlyValidatingElement(null);
|
|
43677
44032
|
}
|
|
43678
|
-
}
|
|
43679
|
-
|
|
43680
|
-
return thenable;
|
|
43681
|
-
} else {
|
|
43682
|
-
var returnValue = result; // The callback is not an async function. Exit the current scope
|
|
43683
|
-
// immediately, without awaiting.
|
|
43684
|
-
|
|
43685
|
-
popActScope(prevActScopeDepth);
|
|
43686
|
-
|
|
43687
|
-
if (actScopeDepth === 0) {
|
|
43688
|
-
// Exiting the outermost act scope. Flush the queue.
|
|
43689
|
-
var _queue = ReactCurrentActQueue.current;
|
|
43690
44033
|
|
|
43691
|
-
if (
|
|
43692
|
-
|
|
43693
|
-
|
|
43694
|
-
|
|
43695
|
-
|
|
44034
|
+
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
44035
|
+
// Only monitor this failure once because there tends to be a lot of the
|
|
44036
|
+
// same error.
|
|
44037
|
+
loggedTypeFailures[error$1.message] = true;
|
|
44038
|
+
setCurrentlyValidatingElement(element);
|
|
43696
44039
|
|
|
44040
|
+
error('Failed %s type: %s', location, error$1.message);
|
|
43697
44041
|
|
|
43698
|
-
|
|
43699
|
-
|
|
43700
|
-
// Confirm we haven't re-entered another `act` scope, in case
|
|
43701
|
-
// the user does something weird like await the thenable
|
|
43702
|
-
// multiple times.
|
|
43703
|
-
if (ReactCurrentActQueue.current === null) {
|
|
43704
|
-
// Recursively flush the queue until there's no remaining work.
|
|
43705
|
-
ReactCurrentActQueue.current = [];
|
|
43706
|
-
recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
43707
|
-
} else {
|
|
43708
|
-
resolve(returnValue);
|
|
43709
|
-
}
|
|
43710
|
-
}
|
|
43711
|
-
};
|
|
43712
|
-
return _thenable;
|
|
43713
|
-
} else {
|
|
43714
|
-
// Since we're inside a nested `act` scope, the returned thenable
|
|
43715
|
-
// immediately resolves. The outer scope will flush the queue.
|
|
43716
|
-
var _thenable2 = {
|
|
43717
|
-
then: function (resolve, reject) {
|
|
43718
|
-
resolve(returnValue);
|
|
43719
|
-
}
|
|
43720
|
-
};
|
|
43721
|
-
return _thenable2;
|
|
44042
|
+
setCurrentlyValidatingElement(null);
|
|
44043
|
+
}
|
|
43722
44044
|
}
|
|
43723
44045
|
}
|
|
43724
44046
|
}
|
|
43725
44047
|
}
|
|
43726
44048
|
|
|
43727
|
-
function
|
|
43728
|
-
{
|
|
43729
|
-
if (prevActScopeDepth !== actScopeDepth - 1) {
|
|
43730
|
-
error('You seem to have overlapping act() calls, this is not supported. ' + 'Be sure to await previous act() calls before making a new one. ');
|
|
43731
|
-
}
|
|
43732
|
-
|
|
43733
|
-
actScopeDepth = prevActScopeDepth;
|
|
43734
|
-
}
|
|
43735
|
-
}
|
|
43736
|
-
|
|
43737
|
-
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
44049
|
+
function setCurrentlyValidatingElement$1(element) {
|
|
43738
44050
|
{
|
|
43739
|
-
|
|
43740
|
-
|
|
43741
|
-
|
|
43742
|
-
|
|
43743
|
-
flushActQueue(queue);
|
|
43744
|
-
enqueueTask(function () {
|
|
43745
|
-
if (queue.length === 0) {
|
|
43746
|
-
// No additional work was scheduled. Finish.
|
|
43747
|
-
ReactCurrentActQueue.current = null;
|
|
43748
|
-
resolve(returnValue);
|
|
43749
|
-
} else {
|
|
43750
|
-
// Keep flushing work until there's none left.
|
|
43751
|
-
recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
43752
|
-
}
|
|
43753
|
-
});
|
|
43754
|
-
} catch (error) {
|
|
43755
|
-
reject(error);
|
|
43756
|
-
}
|
|
44051
|
+
if (element) {
|
|
44052
|
+
var owner = element._owner;
|
|
44053
|
+
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
44054
|
+
setExtraStackFrame(stack);
|
|
43757
44055
|
} else {
|
|
43758
|
-
|
|
44056
|
+
setExtraStackFrame(null);
|
|
43759
44057
|
}
|
|
43760
44058
|
}
|
|
43761
44059
|
}
|
|
43762
44060
|
|
|
43763
|
-
var
|
|
43764
|
-
|
|
43765
|
-
function flushActQueue(queue) {
|
|
43766
|
-
{
|
|
43767
|
-
if (!isFlushing) {
|
|
43768
|
-
// Prevent re-entrance.
|
|
43769
|
-
isFlushing = true;
|
|
43770
|
-
var i = 0;
|
|
44061
|
+
var propTypesMisspellWarningShown;
|
|
43771
44062
|
|
|
43772
|
-
|
|
43773
|
-
|
|
43774
|
-
|
|
44063
|
+
{
|
|
44064
|
+
propTypesMisspellWarningShown = false;
|
|
44065
|
+
}
|
|
43775
44066
|
|
|
43776
|
-
|
|
43777
|
-
|
|
43778
|
-
|
|
43779
|
-
}
|
|
44067
|
+
function getDeclarationErrorAddendum() {
|
|
44068
|
+
if (ReactCurrentOwner.current) {
|
|
44069
|
+
var name = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
43780
44070
|
|
|
43781
|
-
|
|
43782
|
-
|
|
43783
|
-
// If something throws, leave the remaining callbacks on the queue.
|
|
43784
|
-
queue = queue.slice(i + 1);
|
|
43785
|
-
throw error;
|
|
43786
|
-
} finally {
|
|
43787
|
-
isFlushing = false;
|
|
43788
|
-
}
|
|
44071
|
+
if (name) {
|
|
44072
|
+
return '\n\nCheck the render method of `' + name + '`.';
|
|
43789
44073
|
}
|
|
43790
44074
|
}
|
|
43791
|
-
}
|
|
43792
|
-
|
|
43793
|
-
var createElement$1 = createElementWithValidation ;
|
|
43794
|
-
var cloneElement$1 = cloneElementWithValidation ;
|
|
43795
|
-
var createFactory = createFactoryWithValidation ;
|
|
43796
|
-
var Children = {
|
|
43797
|
-
map: mapChildren,
|
|
43798
|
-
forEach: forEachChildren,
|
|
43799
|
-
count: countChildren,
|
|
43800
|
-
toArray: toArray,
|
|
43801
|
-
only: onlyChild
|
|
43802
|
-
};
|
|
43803
|
-
|
|
43804
|
-
exports.Children = Children;
|
|
43805
|
-
exports.Component = Component;
|
|
43806
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
43807
|
-
exports.Profiler = REACT_PROFILER_TYPE;
|
|
43808
|
-
exports.PureComponent = PureComponent;
|
|
43809
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
43810
|
-
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
43811
|
-
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
|
|
43812
|
-
exports.cloneElement = cloneElement$1;
|
|
43813
|
-
exports.createContext = createContext;
|
|
43814
|
-
exports.createElement = createElement$1;
|
|
43815
|
-
exports.createFactory = createFactory;
|
|
43816
|
-
exports.createRef = createRef;
|
|
43817
|
-
exports.forwardRef = forwardRef;
|
|
43818
|
-
exports.isValidElement = isValidElement;
|
|
43819
|
-
exports.lazy = lazy;
|
|
43820
|
-
exports.memo = memo;
|
|
43821
|
-
exports.startTransition = startTransition;
|
|
43822
|
-
exports.unstable_act = act;
|
|
43823
|
-
exports.useCallback = useCallback;
|
|
43824
|
-
exports.useContext = useContext;
|
|
43825
|
-
exports.useDebugValue = useDebugValue;
|
|
43826
|
-
exports.useDeferredValue = useDeferredValue;
|
|
43827
|
-
exports.useEffect = useEffect;
|
|
43828
|
-
exports.useId = useId;
|
|
43829
|
-
exports.useImperativeHandle = useImperativeHandle;
|
|
43830
|
-
exports.useInsertionEffect = useInsertionEffect;
|
|
43831
|
-
exports.useLayoutEffect = useLayoutEffect;
|
|
43832
|
-
exports.useMemo = useMemo;
|
|
43833
|
-
exports.useReducer = useReducer;
|
|
43834
|
-
exports.useRef = useRef;
|
|
43835
|
-
exports.useState = useState;
|
|
43836
|
-
exports.useSyncExternalStore = useSyncExternalStore;
|
|
43837
|
-
exports.useTransition = useTransition;
|
|
43838
|
-
exports.version = ReactVersion;
|
|
43839
|
-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
43840
|
-
if (
|
|
43841
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
|
|
43842
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
|
|
43843
|
-
'function'
|
|
43844
|
-
) {
|
|
43845
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
43846
|
-
}
|
|
43847
|
-
|
|
43848
|
-
})();
|
|
43849
|
-
}
|
|
43850
|
-
|
|
43851
|
-
|
|
43852
|
-
/***/ }),
|
|
43853
|
-
|
|
43854
|
-
/***/ "../../../node_modules/react/index.js":
|
|
43855
|
-
/*!********************************************!*\
|
|
43856
|
-
!*** ../../../node_modules/react/index.js ***!
|
|
43857
|
-
\********************************************/
|
|
43858
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
43859
44075
|
|
|
43860
|
-
|
|
43861
|
-
|
|
43862
|
-
|
|
43863
|
-
if (false) {} else {
|
|
43864
|
-
module.exports = __webpack_require__(/*! ./cjs/react.development.js */ "../../../node_modules/react/cjs/react.development.js");
|
|
44076
|
+
return '';
|
|
43865
44077
|
}
|
|
43866
44078
|
|
|
44079
|
+
function getSourceInfoErrorAddendum(source) {
|
|
44080
|
+
if (source !== undefined) {
|
|
44081
|
+
var fileName = source.fileName.replace(/^.*[\\\/]/, '');
|
|
44082
|
+
var lineNumber = source.lineNumber;
|
|
44083
|
+
return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
|
|
44084
|
+
}
|
|
43867
44085
|
|
|
43868
|
-
|
|
43869
|
-
|
|
43870
|
-
/***/ "../../../node_modules/resolve-pathname/esm/resolve-pathname.js":
|
|
43871
|
-
/*!**********************************************************************!*\
|
|
43872
|
-
!*** ../../../node_modules/resolve-pathname/esm/resolve-pathname.js ***!
|
|
43873
|
-
\**********************************************************************/
|
|
43874
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
43875
|
-
|
|
43876
|
-
"use strict";
|
|
43877
|
-
__webpack_require__.r(__webpack_exports__);
|
|
43878
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43879
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
43880
|
-
/* harmony export */ });
|
|
43881
|
-
function isAbsolute(pathname) {
|
|
43882
|
-
return pathname.charAt(0) === '/';
|
|
44086
|
+
return '';
|
|
43883
44087
|
}
|
|
43884
44088
|
|
|
43885
|
-
|
|
43886
|
-
|
|
43887
|
-
|
|
43888
|
-
list[i] = list[k];
|
|
44089
|
+
function getSourceInfoErrorAddendumForProps(elementProps) {
|
|
44090
|
+
if (elementProps !== null && elementProps !== undefined) {
|
|
44091
|
+
return getSourceInfoErrorAddendum(elementProps.__source);
|
|
43889
44092
|
}
|
|
43890
44093
|
|
|
43891
|
-
|
|
44094
|
+
return '';
|
|
43892
44095
|
}
|
|
44096
|
+
/**
|
|
44097
|
+
* Warn if there's no key explicitly set on dynamic arrays of children or
|
|
44098
|
+
* object keys are not valid. This allows us to keep track of children between
|
|
44099
|
+
* updates.
|
|
44100
|
+
*/
|
|
43893
44101
|
|
|
43894
|
-
// This implementation is based heavily on node's url.parse
|
|
43895
|
-
function resolvePathname(to, from) {
|
|
43896
|
-
if (from === undefined) from = '';
|
|
43897
|
-
|
|
43898
|
-
var toParts = (to && to.split('/')) || [];
|
|
43899
|
-
var fromParts = (from && from.split('/')) || [];
|
|
43900
|
-
|
|
43901
|
-
var isToAbs = to && isAbsolute(to);
|
|
43902
|
-
var isFromAbs = from && isAbsolute(from);
|
|
43903
|
-
var mustEndAbs = isToAbs || isFromAbs;
|
|
43904
|
-
|
|
43905
|
-
if (to && isAbsolute(to)) {
|
|
43906
|
-
// to is absolute
|
|
43907
|
-
fromParts = toParts;
|
|
43908
|
-
} else if (toParts.length) {
|
|
43909
|
-
// to is relative, drop the filename
|
|
43910
|
-
fromParts.pop();
|
|
43911
|
-
fromParts = fromParts.concat(toParts);
|
|
43912
|
-
}
|
|
43913
44102
|
|
|
43914
|
-
|
|
44103
|
+
var ownerHasKeyUseWarning = {};
|
|
43915
44104
|
|
|
43916
|
-
|
|
43917
|
-
|
|
43918
|
-
var last = fromParts[fromParts.length - 1];
|
|
43919
|
-
hasTrailingSlash = last === '.' || last === '..' || last === '';
|
|
43920
|
-
} else {
|
|
43921
|
-
hasTrailingSlash = false;
|
|
43922
|
-
}
|
|
44105
|
+
function getCurrentComponentErrorInfo(parentType) {
|
|
44106
|
+
var info = getDeclarationErrorAddendum();
|
|
43923
44107
|
|
|
43924
|
-
|
|
43925
|
-
|
|
43926
|
-
var part = fromParts[i];
|
|
44108
|
+
if (!info) {
|
|
44109
|
+
var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
|
|
43927
44110
|
|
|
43928
|
-
if (
|
|
43929
|
-
|
|
43930
|
-
} else if (part === '..') {
|
|
43931
|
-
spliceOne(fromParts, i);
|
|
43932
|
-
up++;
|
|
43933
|
-
} else if (up) {
|
|
43934
|
-
spliceOne(fromParts, i);
|
|
43935
|
-
up--;
|
|
44111
|
+
if (parentName) {
|
|
44112
|
+
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
43936
44113
|
}
|
|
43937
44114
|
}
|
|
43938
44115
|
|
|
43939
|
-
|
|
44116
|
+
return info;
|
|
44117
|
+
}
|
|
44118
|
+
/**
|
|
44119
|
+
* Warn if the element doesn't have an explicit key assigned to it.
|
|
44120
|
+
* This element is in an array. The array could grow and shrink or be
|
|
44121
|
+
* reordered. All children that haven't already been validated are required to
|
|
44122
|
+
* have a "key" property assigned to it. Error statuses are cached so a warning
|
|
44123
|
+
* will only be shown once.
|
|
44124
|
+
*
|
|
44125
|
+
* @internal
|
|
44126
|
+
* @param {ReactElement} element Element that requires a key.
|
|
44127
|
+
* @param {*} parentType element's parent's type.
|
|
44128
|
+
*/
|
|
44129
|
+
|
|
43940
44130
|
|
|
43941
|
-
|
|
43942
|
-
|
|
43943
|
-
|
|
43944
|
-
|
|
43945
|
-
)
|
|
43946
|
-
fromParts.unshift('');
|
|
44131
|
+
function validateExplicitKey(element, parentType) {
|
|
44132
|
+
if (!element._store || element._store.validated || element.key != null) {
|
|
44133
|
+
return;
|
|
44134
|
+
}
|
|
43947
44135
|
|
|
43948
|
-
|
|
44136
|
+
element._store.validated = true;
|
|
44137
|
+
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
43949
44138
|
|
|
43950
|
-
if (
|
|
44139
|
+
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
44140
|
+
return;
|
|
44141
|
+
}
|
|
43951
44142
|
|
|
43952
|
-
|
|
43953
|
-
|
|
44143
|
+
ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
|
|
44144
|
+
// property, it may be the creator of the child that's responsible for
|
|
44145
|
+
// assigning it a key.
|
|
43954
44146
|
|
|
43955
|
-
|
|
44147
|
+
var childOwner = '';
|
|
44148
|
+
|
|
44149
|
+
if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
|
|
44150
|
+
// Give the component that originally created this child.
|
|
44151
|
+
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
44152
|
+
}
|
|
43956
44153
|
|
|
44154
|
+
{
|
|
44155
|
+
setCurrentlyValidatingElement$1(element);
|
|
43957
44156
|
|
|
43958
|
-
|
|
44157
|
+
error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
43959
44158
|
|
|
43960
|
-
|
|
43961
|
-
|
|
43962
|
-
|
|
43963
|
-
|
|
43964
|
-
|
|
43965
|
-
|
|
43966
|
-
|
|
43967
|
-
*
|
|
43968
|
-
*
|
|
43969
|
-
*
|
|
43970
|
-
*
|
|
43971
|
-
* System.register('x', ...) can be imported as System.import('x')
|
|
44159
|
+
setCurrentlyValidatingElement$1(null);
|
|
44160
|
+
}
|
|
44161
|
+
}
|
|
44162
|
+
/**
|
|
44163
|
+
* Ensure that every element either is passed in a static location, in an
|
|
44164
|
+
* array with an explicit keys property defined, or in an object literal
|
|
44165
|
+
* with valid key property.
|
|
44166
|
+
*
|
|
44167
|
+
* @internal
|
|
44168
|
+
* @param {ReactNode} node Statically passed child of any type.
|
|
44169
|
+
* @param {*} parentType node's parent's type.
|
|
43972
44170
|
*/
|
|
43973
|
-
(function (global) {
|
|
43974
|
-
var System = global.System;
|
|
43975
|
-
setRegisterRegistry(System);
|
|
43976
|
-
var systemJSPrototype = System.constructor.prototype;
|
|
43977
|
-
var constructor = System.constructor;
|
|
43978
|
-
var SystemJS = function () {
|
|
43979
|
-
constructor.call(this);
|
|
43980
|
-
setRegisterRegistry(this);
|
|
43981
|
-
};
|
|
43982
|
-
SystemJS.prototype = systemJSPrototype;
|
|
43983
|
-
System.constructor = SystemJS;
|
|
43984
44171
|
|
|
43985
|
-
var firstNamedDefine, firstName;
|
|
43986
44172
|
|
|
43987
|
-
|
|
43988
|
-
|
|
43989
|
-
|
|
44173
|
+
function validateChildKeys(node, parentType) {
|
|
44174
|
+
if (typeof node !== 'object') {
|
|
44175
|
+
return;
|
|
43990
44176
|
}
|
|
43991
44177
|
|
|
43992
|
-
|
|
43993
|
-
|
|
43994
|
-
|
|
43995
|
-
return register.apply(this, arguments);
|
|
43996
|
-
var define = [deps, declare];
|
|
43997
|
-
this.registerRegistry[name] = define;
|
|
43998
|
-
if (!firstNamedDefine) {
|
|
43999
|
-
firstNamedDefine = define;
|
|
44000
|
-
firstName = name;
|
|
44001
|
-
}
|
|
44002
|
-
Promise.resolve().then(function () {
|
|
44003
|
-
firstNamedDefine = null;
|
|
44004
|
-
firstName = null;
|
|
44005
|
-
});
|
|
44006
|
-
return register.apply(this, [deps, declare]);
|
|
44007
|
-
};
|
|
44178
|
+
if (isArray(node)) {
|
|
44179
|
+
for (var i = 0; i < node.length; i++) {
|
|
44180
|
+
var child = node[i];
|
|
44008
44181
|
|
|
44009
|
-
|
|
44010
|
-
|
|
44011
|
-
try {
|
|
44012
|
-
// Prefer import map (or other existing) resolution over the registerRegistry
|
|
44013
|
-
return resolve.call(this, id, parentURL);
|
|
44014
|
-
} catch (err) {
|
|
44015
|
-
if (id in this.registerRegistry) {
|
|
44016
|
-
return this.namedRegisterAliases[id] || id;
|
|
44182
|
+
if (isValidElement(child)) {
|
|
44183
|
+
validateExplicitKey(child, parentType);
|
|
44017
44184
|
}
|
|
44018
|
-
throw err;
|
|
44019
44185
|
}
|
|
44020
|
-
}
|
|
44021
|
-
|
|
44022
|
-
|
|
44023
|
-
|
|
44024
|
-
var result = this.registerRegistry[url];
|
|
44025
|
-
if (result) {
|
|
44026
|
-
this.registerRegistry[url] = null;
|
|
44027
|
-
return result;
|
|
44028
|
-
} else {
|
|
44029
|
-
return instantiate.call(this, url, firstParentUrl);
|
|
44186
|
+
} else if (isValidElement(node)) {
|
|
44187
|
+
// This element was passed in a valid location.
|
|
44188
|
+
if (node._store) {
|
|
44189
|
+
node._store.validated = true;
|
|
44030
44190
|
}
|
|
44031
|
-
}
|
|
44191
|
+
} else if (node) {
|
|
44192
|
+
var iteratorFn = getIteratorFn(node);
|
|
44032
44193
|
|
|
44033
|
-
|
|
44034
|
-
|
|
44035
|
-
|
|
44036
|
-
|
|
44194
|
+
if (typeof iteratorFn === 'function') {
|
|
44195
|
+
// Entry iterators used to provide implicit keys,
|
|
44196
|
+
// but now we print a separate warning for them later.
|
|
44197
|
+
if (iteratorFn !== node.entries) {
|
|
44198
|
+
var iterator = iteratorFn.call(node);
|
|
44199
|
+
var step;
|
|
44037
44200
|
|
|
44038
|
-
|
|
44039
|
-
|
|
44201
|
+
while (!(step = iterator.next()).done) {
|
|
44202
|
+
if (isValidElement(step.value)) {
|
|
44203
|
+
validateExplicitKey(step.value, parentType);
|
|
44204
|
+
}
|
|
44205
|
+
}
|
|
44206
|
+
}
|
|
44040
44207
|
}
|
|
44041
|
-
|
|
44042
|
-
|
|
44043
|
-
|
|
44044
|
-
|
|
44045
|
-
|
|
44046
|
-
|
|
44208
|
+
}
|
|
44209
|
+
}
|
|
44210
|
+
/**
|
|
44211
|
+
* Given an element, validate that its props follow the propTypes definition,
|
|
44212
|
+
* provided by the type.
|
|
44213
|
+
*
|
|
44214
|
+
* @param {ReactElement} element
|
|
44215
|
+
*/
|
|
44047
44216
|
|
|
44048
|
-
/***/ }),
|
|
44049
44217
|
|
|
44050
|
-
|
|
44051
|
-
|
|
44052
|
-
|
|
44053
|
-
\*****************************************************/
|
|
44054
|
-
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
44218
|
+
function validatePropTypes(element) {
|
|
44219
|
+
{
|
|
44220
|
+
var type = element.type;
|
|
44055
44221
|
|
|
44056
|
-
|
|
44057
|
-
|
|
44058
|
-
|
|
44059
|
-
(function () {
|
|
44222
|
+
if (type === null || type === undefined || typeof type === 'string') {
|
|
44223
|
+
return;
|
|
44224
|
+
}
|
|
44060
44225
|
|
|
44061
|
-
|
|
44062
|
-
|
|
44063
|
-
|
|
44226
|
+
var propTypes;
|
|
44227
|
+
|
|
44228
|
+
if (typeof type === 'function') {
|
|
44229
|
+
propTypes = type.propTypes;
|
|
44230
|
+
} else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
44231
|
+
// Inner props are checked in the reconciler.
|
|
44232
|
+
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
44233
|
+
propTypes = type.propTypes;
|
|
44234
|
+
} else {
|
|
44235
|
+
return;
|
|
44236
|
+
}
|
|
44064
44237
|
|
|
44065
|
-
|
|
44066
|
-
|
|
44067
|
-
|
|
44238
|
+
if (propTypes) {
|
|
44239
|
+
// Intentionally inside to avoid triggering lazy initializers:
|
|
44240
|
+
var name = getComponentNameFromType(type);
|
|
44241
|
+
checkPropTypes(propTypes, element.props, 'prop', name, element);
|
|
44242
|
+
} else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
|
|
44243
|
+
propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
|
|
44068
44244
|
|
|
44069
|
-
|
|
44245
|
+
var _name = getComponentNameFromType(type);
|
|
44070
44246
|
|
|
44071
|
-
|
|
44247
|
+
error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
|
|
44248
|
+
}
|
|
44072
44249
|
|
|
44073
|
-
|
|
44074
|
-
|
|
44075
|
-
|
|
44076
|
-
baseUrl = baseEl.href;
|
|
44250
|
+
if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
|
|
44251
|
+
error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
|
|
44252
|
+
}
|
|
44077
44253
|
}
|
|
44254
|
+
}
|
|
44255
|
+
/**
|
|
44256
|
+
* Given a fragment, validate that it can only be provided with fragment props
|
|
44257
|
+
* @param {ReactElement} fragment
|
|
44258
|
+
*/
|
|
44078
44259
|
|
|
44079
|
-
if (!baseUrl && typeof location !== 'undefined') {
|
|
44080
|
-
baseUrl = location.href.split('#')[0].split('?')[0];
|
|
44081
|
-
var lastSepIndex = baseUrl.lastIndexOf('/');
|
|
44082
|
-
if (lastSepIndex !== -1)
|
|
44083
|
-
baseUrl = baseUrl.slice(0, lastSepIndex + 1);
|
|
44084
|
-
}
|
|
44085
44260
|
|
|
44086
|
-
|
|
44087
|
-
|
|
44088
|
-
|
|
44089
|
-
relUrl = relUrl.replace(backslashRegEx, '/');
|
|
44090
|
-
// protocol-relative
|
|
44091
|
-
if (relUrl[0] === '/' && relUrl[1] === '/') {
|
|
44092
|
-
return parentUrl.slice(0, parentUrl.indexOf(':') + 1) + relUrl;
|
|
44093
|
-
}
|
|
44094
|
-
// relative-url
|
|
44095
|
-
else if (relUrl[0] === '.' && (relUrl[1] === '/' || relUrl[1] === '.' && (relUrl[2] === '/' || relUrl.length === 2 && (relUrl += '/')) ||
|
|
44096
|
-
relUrl.length === 1 && (relUrl += '/')) ||
|
|
44097
|
-
relUrl[0] === '/') {
|
|
44098
|
-
var parentProtocol = parentUrl.slice(0, parentUrl.indexOf(':') + 1);
|
|
44099
|
-
// Disabled, but these cases will give inconsistent results for deep backtracking
|
|
44100
|
-
//if (parentUrl[parentProtocol.length] !== '/')
|
|
44101
|
-
// throw Error('Cannot resolve');
|
|
44102
|
-
// read pathname from parent URL
|
|
44103
|
-
// pathname taken to be part after leading "/"
|
|
44104
|
-
var pathname;
|
|
44105
|
-
if (parentUrl[parentProtocol.length + 1] === '/') {
|
|
44106
|
-
// resolving to a :// so we need to read out the auth and host
|
|
44107
|
-
if (parentProtocol !== 'file:') {
|
|
44108
|
-
pathname = parentUrl.slice(parentProtocol.length + 2);
|
|
44109
|
-
pathname = pathname.slice(pathname.indexOf('/') + 1);
|
|
44110
|
-
}
|
|
44111
|
-
else {
|
|
44112
|
-
pathname = parentUrl.slice(8);
|
|
44113
|
-
}
|
|
44114
|
-
}
|
|
44115
|
-
else {
|
|
44116
|
-
// resolving to :/ so pathname is the /... part
|
|
44117
|
-
pathname = parentUrl.slice(parentProtocol.length + (parentUrl[parentProtocol.length] === '/'));
|
|
44118
|
-
}
|
|
44261
|
+
function validateFragmentProps(fragment) {
|
|
44262
|
+
{
|
|
44263
|
+
var keys = Object.keys(fragment.props);
|
|
44119
44264
|
|
|
44120
|
-
|
|
44121
|
-
|
|
44265
|
+
for (var i = 0; i < keys.length; i++) {
|
|
44266
|
+
var key = keys[i];
|
|
44122
44267
|
|
|
44123
|
-
|
|
44124
|
-
|
|
44125
|
-
// '../../../../../z' resolved to 'x/y' is just 'z'
|
|
44126
|
-
var segmented = pathname.slice(0, pathname.lastIndexOf('/') + 1) + relUrl;
|
|
44268
|
+
if (key !== 'children' && key !== 'key') {
|
|
44269
|
+
setCurrentlyValidatingElement$1(fragment);
|
|
44127
44270
|
|
|
44128
|
-
|
|
44129
|
-
var segmentIndex = -1;
|
|
44130
|
-
for (var i = 0; i < segmented.length; i++) {
|
|
44131
|
-
// busy reading a segment - only terminate on '/'
|
|
44132
|
-
if (segmentIndex !== -1) {
|
|
44133
|
-
if (segmented[i] === '/') {
|
|
44134
|
-
output.push(segmented.slice(segmentIndex, i + 1));
|
|
44135
|
-
segmentIndex = -1;
|
|
44136
|
-
}
|
|
44137
|
-
}
|
|
44271
|
+
error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
|
|
44138
44272
|
|
|
44139
|
-
|
|
44140
|
-
|
|
44141
|
-
// ../ segment
|
|
44142
|
-
if (segmented[i + 1] === '.' && (segmented[i + 2] === '/' || i + 2 === segmented.length)) {
|
|
44143
|
-
output.pop();
|
|
44144
|
-
i += 2;
|
|
44145
|
-
}
|
|
44146
|
-
// ./ segment
|
|
44147
|
-
else if (segmented[i + 1] === '/' || i + 1 === segmented.length) {
|
|
44148
|
-
i += 1;
|
|
44149
|
-
}
|
|
44150
|
-
else {
|
|
44151
|
-
// the start of a new segment as below
|
|
44152
|
-
segmentIndex = i;
|
|
44153
|
-
}
|
|
44154
|
-
}
|
|
44155
|
-
// it is the start of a new segment
|
|
44156
|
-
else {
|
|
44157
|
-
segmentIndex = i;
|
|
44158
|
-
}
|
|
44273
|
+
setCurrentlyValidatingElement$1(null);
|
|
44274
|
+
break;
|
|
44159
44275
|
}
|
|
44160
|
-
// finish reading out the last segment
|
|
44161
|
-
if (segmentIndex !== -1)
|
|
44162
|
-
output.push(segmented.slice(segmentIndex));
|
|
44163
|
-
return parentUrl.slice(0, parentUrl.length - pathname.length) + output.join('');
|
|
44164
44276
|
}
|
|
44165
|
-
}
|
|
44166
44277
|
|
|
44167
|
-
|
|
44168
|
-
|
|
44169
|
-
*
|
|
44170
|
-
* To make lookups fast we pre-resolve the entire import map
|
|
44171
|
-
* and then match based on backtracked hash lookups
|
|
44172
|
-
*
|
|
44173
|
-
*/
|
|
44278
|
+
if (fragment.ref !== null) {
|
|
44279
|
+
setCurrentlyValidatingElement$1(fragment);
|
|
44174
44280
|
|
|
44175
|
-
|
|
44176
|
-
return resolveIfNotPlainOrUrl(relUrl, parentUrl) || (relUrl.indexOf(':') !== -1 ? relUrl : resolveIfNotPlainOrUrl('./' + relUrl, parentUrl));
|
|
44177
|
-
}
|
|
44281
|
+
error('Invalid attribute `ref` supplied to `React.Fragment`.');
|
|
44178
44282
|
|
|
44179
|
-
|
|
44180
|
-
for (var p in packages) {
|
|
44181
|
-
var resolvedLhs = resolveIfNotPlainOrUrl(p, baseUrl) || p;
|
|
44182
|
-
var rhs = packages[p];
|
|
44183
|
-
// package fallbacks not currently supported
|
|
44184
|
-
if (typeof rhs !== 'string')
|
|
44185
|
-
continue;
|
|
44186
|
-
var mapped = resolveImportMap(parentMap, resolveIfNotPlainOrUrl(rhs, baseUrl) || rhs, parentUrl);
|
|
44187
|
-
if (!mapped) {
|
|
44188
|
-
targetWarning('W1', p, rhs, 'bare specifier did not resolve');
|
|
44189
|
-
}
|
|
44190
|
-
else
|
|
44191
|
-
outPackages[resolvedLhs] = mapped;
|
|
44283
|
+
setCurrentlyValidatingElement$1(null);
|
|
44192
44284
|
}
|
|
44193
44285
|
}
|
|
44286
|
+
}
|
|
44287
|
+
function createElementWithValidation(type, props, children) {
|
|
44288
|
+
var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
|
|
44289
|
+
// succeed and there will likely be errors in render.
|
|
44194
44290
|
|
|
44195
|
-
|
|
44196
|
-
|
|
44197
|
-
resolveAndComposePackages(json.imports, outMap.imports, baseUrl, outMap, null);
|
|
44291
|
+
if (!validType) {
|
|
44292
|
+
var info = '';
|
|
44198
44293
|
|
|
44199
|
-
|
|
44200
|
-
|
|
44201
|
-
var resolvedScope = resolveUrl(u, baseUrl);
|
|
44202
|
-
resolveAndComposePackages(json.scopes[u], outMap.scopes[resolvedScope] || (outMap.scopes[resolvedScope] = {}), baseUrl, outMap, resolvedScope);
|
|
44294
|
+
if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
|
|
44295
|
+
info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
|
|
44203
44296
|
}
|
|
44204
44297
|
|
|
44205
|
-
|
|
44206
|
-
outMap.depcache[resolveUrl(u, baseUrl)] = json.depcache[u];
|
|
44207
|
-
|
|
44208
|
-
for (u in json.integrity || {})
|
|
44209
|
-
outMap.integrity[resolveUrl(u, baseUrl)] = json.integrity[u];
|
|
44210
|
-
}
|
|
44211
|
-
|
|
44212
|
-
function getMatch (path, matchObj) {
|
|
44213
|
-
if (matchObj[path])
|
|
44214
|
-
return path;
|
|
44215
|
-
var sepIndex = path.length;
|
|
44216
|
-
do {
|
|
44217
|
-
var segment = path.slice(0, sepIndex + 1);
|
|
44218
|
-
if (segment in matchObj)
|
|
44219
|
-
return segment;
|
|
44220
|
-
} while ((sepIndex = path.lastIndexOf('/', sepIndex - 1)) !== -1)
|
|
44221
|
-
}
|
|
44298
|
+
var sourceInfo = getSourceInfoErrorAddendumForProps(props);
|
|
44222
44299
|
|
|
44223
|
-
|
|
44224
|
-
|
|
44225
|
-
|
|
44226
|
-
|
|
44227
|
-
if (pkg === null) return;
|
|
44228
|
-
if (id.length > pkgName.length && pkg[pkg.length - 1] !== '/') {
|
|
44229
|
-
targetWarning('W2', pkgName, pkg, "should have a trailing '/'");
|
|
44230
|
-
}
|
|
44231
|
-
else
|
|
44232
|
-
return pkg + id.slice(pkgName.length);
|
|
44300
|
+
if (sourceInfo) {
|
|
44301
|
+
info += sourceInfo;
|
|
44302
|
+
} else {
|
|
44303
|
+
info += getDeclarationErrorAddendum();
|
|
44233
44304
|
}
|
|
44234
|
-
}
|
|
44235
44305
|
|
|
44236
|
-
|
|
44237
|
-
console.warn(errMsg(code, "Package target " + msg + ", resolving target '" + target + "' for " + match));
|
|
44238
|
-
}
|
|
44239
|
-
|
|
44240
|
-
function resolveImportMap (importMap, resolvedOrPlain, parentUrl) {
|
|
44241
|
-
var scopes = importMap.scopes;
|
|
44242
|
-
var scopeUrl = parentUrl && getMatch(parentUrl, scopes);
|
|
44243
|
-
while (scopeUrl) {
|
|
44244
|
-
var packageResolution = applyPackages(resolvedOrPlain, scopes[scopeUrl]);
|
|
44245
|
-
if (packageResolution)
|
|
44246
|
-
return packageResolution;
|
|
44247
|
-
scopeUrl = getMatch(scopeUrl.slice(0, scopeUrl.lastIndexOf('/')), scopes);
|
|
44248
|
-
}
|
|
44249
|
-
return applyPackages(resolvedOrPlain, importMap.imports) || resolvedOrPlain.indexOf(':') !== -1 && resolvedOrPlain;
|
|
44250
|
-
}
|
|
44251
|
-
|
|
44252
|
-
/*
|
|
44253
|
-
* SystemJS Core
|
|
44254
|
-
*
|
|
44255
|
-
* Provides
|
|
44256
|
-
* - System.import
|
|
44257
|
-
* - System.register support for
|
|
44258
|
-
* live bindings, function hoisting through circular references,
|
|
44259
|
-
* reexports, dynamic import, import.meta.url, top-level await
|
|
44260
|
-
* - System.getRegister to get the registration
|
|
44261
|
-
* - Symbol.toStringTag support in Module objects
|
|
44262
|
-
* - Hookable System.createContext to customize import.meta
|
|
44263
|
-
* - System.onload(err, id, deps) handler for tracing / hot-reloading
|
|
44264
|
-
*
|
|
44265
|
-
* Core comes with no System.prototype.resolve or
|
|
44266
|
-
* System.prototype.instantiate implementations
|
|
44267
|
-
*/
|
|
44306
|
+
var typeString;
|
|
44268
44307
|
|
|
44269
|
-
|
|
44270
|
-
|
|
44308
|
+
if (type === null) {
|
|
44309
|
+
typeString = 'null';
|
|
44310
|
+
} else if (isArray(type)) {
|
|
44311
|
+
typeString = 'array';
|
|
44312
|
+
} else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
44313
|
+
typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
|
|
44314
|
+
info = ' Did you accidentally export a JSX literal instead of a component?';
|
|
44315
|
+
} else {
|
|
44316
|
+
typeString = typeof type;
|
|
44317
|
+
}
|
|
44271
44318
|
|
|
44272
|
-
|
|
44273
|
-
|
|
44319
|
+
{
|
|
44320
|
+
error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
|
|
44321
|
+
}
|
|
44274
44322
|
}
|
|
44275
44323
|
|
|
44276
|
-
var
|
|
44324
|
+
var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
|
|
44325
|
+
// TODO: Drop this when these are no longer allowed as the type argument.
|
|
44277
44326
|
|
|
44278
|
-
|
|
44279
|
-
|
|
44280
|
-
|
|
44281
|
-
|
|
44282
|
-
|
|
44283
|
-
|
|
44284
|
-
|
|
44285
|
-
var load = getOrCreateLoad(loader, id);
|
|
44286
|
-
return load.C || topLevelLoad(loader, load);
|
|
44287
|
-
});
|
|
44288
|
-
};
|
|
44327
|
+
if (element == null) {
|
|
44328
|
+
return element;
|
|
44329
|
+
} // Skip key warning if the type isn't valid since our key validation logic
|
|
44330
|
+
// doesn't expect a non-string/function type and can throw confusing errors.
|
|
44331
|
+
// We don't want exception behavior to differ between dev and prod.
|
|
44332
|
+
// (Rendering will throw with a helpful message and as soon as the type is
|
|
44333
|
+
// fixed, the key warnings will appear.)
|
|
44289
44334
|
|
|
44290
|
-
// Hookable createContext function -> allowing eg custom import meta
|
|
44291
|
-
systemJSPrototype.createContext = function (parentId) {
|
|
44292
|
-
var loader = this;
|
|
44293
|
-
return {
|
|
44294
|
-
url: parentId,
|
|
44295
|
-
resolve: function (id, parentUrl) {
|
|
44296
|
-
return Promise.resolve(loader.resolve(id, parentUrl || parentId));
|
|
44297
|
-
}
|
|
44298
|
-
};
|
|
44299
|
-
};
|
|
44300
44335
|
|
|
44301
|
-
|
|
44302
|
-
|
|
44303
|
-
|
|
44304
|
-
|
|
44336
|
+
if (validType) {
|
|
44337
|
+
for (var i = 2; i < arguments.length; i++) {
|
|
44338
|
+
validateChildKeys(arguments[i], type);
|
|
44339
|
+
}
|
|
44305
44340
|
}
|
|
44306
|
-
|
|
44307
|
-
|
|
44308
|
-
|
|
44309
|
-
|
|
44341
|
+
|
|
44342
|
+
if (type === REACT_FRAGMENT_TYPE) {
|
|
44343
|
+
validateFragmentProps(element);
|
|
44344
|
+
} else {
|
|
44345
|
+
validatePropTypes(element);
|
|
44310
44346
|
}
|
|
44311
44347
|
|
|
44312
|
-
|
|
44313
|
-
|
|
44314
|
-
|
|
44315
|
-
|
|
44348
|
+
return element;
|
|
44349
|
+
}
|
|
44350
|
+
var didWarnAboutDeprecatedCreateFactory = false;
|
|
44351
|
+
function createFactoryWithValidation(type) {
|
|
44352
|
+
var validatedFactory = createElementWithValidation.bind(null, type);
|
|
44353
|
+
validatedFactory.type = type;
|
|
44316
44354
|
|
|
44317
|
-
|
|
44318
|
-
|
|
44319
|
-
|
|
44320
|
-
systemJSPrototype.getRegister = function () {
|
|
44321
|
-
var _lastRegister = lastRegister;
|
|
44322
|
-
lastRegister = undefined;
|
|
44323
|
-
return _lastRegister;
|
|
44324
|
-
};
|
|
44355
|
+
{
|
|
44356
|
+
if (!didWarnAboutDeprecatedCreateFactory) {
|
|
44357
|
+
didWarnAboutDeprecatedCreateFactory = true;
|
|
44325
44358
|
|
|
44326
|
-
|
|
44327
|
-
|
|
44328
|
-
if (load)
|
|
44329
|
-
return load;
|
|
44359
|
+
warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
|
|
44360
|
+
} // Legacy hook: remove it
|
|
44330
44361
|
|
|
44331
|
-
var importerSetters = [];
|
|
44332
|
-
var ns = Object.create(null);
|
|
44333
|
-
if (toStringTag$1)
|
|
44334
|
-
Object.defineProperty(ns, toStringTag$1, { value: 'Module' });
|
|
44335
|
-
|
|
44336
|
-
var instantiatePromise = Promise.resolve()
|
|
44337
|
-
.then(function () {
|
|
44338
|
-
return loader.instantiate(id, firstParentUrl);
|
|
44339
|
-
})
|
|
44340
|
-
.then(function (registration) {
|
|
44341
|
-
if (!registration)
|
|
44342
|
-
throw Error(errMsg(2, 'Module ' + id + ' did not instantiate'));
|
|
44343
|
-
function _export (name, value) {
|
|
44344
|
-
// note if we have hoisted exports (including reexports)
|
|
44345
|
-
load.h = true;
|
|
44346
|
-
var changed = false;
|
|
44347
|
-
if (typeof name === 'string') {
|
|
44348
|
-
if (!(name in ns) || ns[name] !== value) {
|
|
44349
|
-
ns[name] = value;
|
|
44350
|
-
changed = true;
|
|
44351
|
-
}
|
|
44352
|
-
}
|
|
44353
|
-
else {
|
|
44354
|
-
for (var p in name) {
|
|
44355
|
-
var value = name[p];
|
|
44356
|
-
if (!(p in ns) || ns[p] !== value) {
|
|
44357
|
-
ns[p] = value;
|
|
44358
|
-
changed = true;
|
|
44359
|
-
}
|
|
44360
|
-
}
|
|
44361
44362
|
|
|
44362
|
-
|
|
44363
|
-
|
|
44364
|
-
|
|
44365
|
-
|
|
44366
|
-
if (changed)
|
|
44367
|
-
for (var i = 0; i < importerSetters.length; i++) {
|
|
44368
|
-
var setter = importerSetters[i];
|
|
44369
|
-
if (setter) setter(ns);
|
|
44370
|
-
}
|
|
44371
|
-
return value;
|
|
44372
|
-
}
|
|
44373
|
-
var declared = registration[1](_export, registration[1].length === 2 ? {
|
|
44374
|
-
import: function (importId) {
|
|
44375
|
-
return loader.import(importId, id);
|
|
44376
|
-
},
|
|
44377
|
-
meta: loader.createContext(id)
|
|
44378
|
-
} : undefined);
|
|
44379
|
-
load.e = declared.execute || function () {};
|
|
44380
|
-
return [registration[0], declared.setters || []];
|
|
44381
|
-
}, function (err) {
|
|
44382
|
-
load.e = null;
|
|
44383
|
-
load.er = err;
|
|
44384
|
-
triggerOnload(loader, load, err, true);
|
|
44385
|
-
throw err;
|
|
44386
|
-
});
|
|
44363
|
+
Object.defineProperty(validatedFactory, 'type', {
|
|
44364
|
+
enumerable: false,
|
|
44365
|
+
get: function () {
|
|
44366
|
+
warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
|
|
44387
44367
|
|
|
44388
|
-
|
|
44389
|
-
|
|
44390
|
-
return Promise.all(instantiation[0].map(function (dep, i) {
|
|
44391
|
-
var setter = instantiation[1][i];
|
|
44392
|
-
return Promise.resolve(loader.resolve(dep, id))
|
|
44393
|
-
.then(function (depId) {
|
|
44394
|
-
var depLoad = getOrCreateLoad(loader, depId, id);
|
|
44395
|
-
// depLoad.I may be undefined for already-evaluated
|
|
44396
|
-
return Promise.resolve(depLoad.I)
|
|
44397
|
-
.then(function () {
|
|
44398
|
-
if (setter) {
|
|
44399
|
-
depLoad.i.push(setter);
|
|
44400
|
-
// only run early setters when there are hoisted exports of that module
|
|
44401
|
-
// the timing works here as pending hoisted export calls will trigger through importerSetters
|
|
44402
|
-
if (depLoad.h || !depLoad.I)
|
|
44403
|
-
setter(depLoad.n);
|
|
44404
|
-
}
|
|
44405
|
-
return depLoad;
|
|
44406
|
-
});
|
|
44368
|
+
Object.defineProperty(this, 'type', {
|
|
44369
|
+
value: type
|
|
44407
44370
|
});
|
|
44408
|
-
|
|
44409
|
-
|
|
44410
|
-
load.d = depLoads;
|
|
44411
|
-
});
|
|
44371
|
+
return type;
|
|
44372
|
+
}
|
|
44412
44373
|
});
|
|
44374
|
+
}
|
|
44413
44375
|
|
|
44414
|
-
|
|
44415
|
-
|
|
44416
|
-
|
|
44417
|
-
|
|
44418
|
-
// we retain this to add more later
|
|
44419
|
-
i: importerSetters,
|
|
44420
|
-
// module namespace object
|
|
44421
|
-
n: ns,
|
|
44376
|
+
return validatedFactory;
|
|
44377
|
+
}
|
|
44378
|
+
function cloneElementWithValidation(element, props, children) {
|
|
44379
|
+
var newElement = cloneElement.apply(this, arguments);
|
|
44422
44380
|
|
|
44423
|
-
|
|
44424
|
-
|
|
44425
|
-
|
|
44426
|
-
|
|
44427
|
-
|
|
44428
|
-
|
|
44381
|
+
for (var i = 2; i < arguments.length; i++) {
|
|
44382
|
+
validateChildKeys(arguments[i], newElement.type);
|
|
44383
|
+
}
|
|
44384
|
+
|
|
44385
|
+
validatePropTypes(newElement);
|
|
44386
|
+
return newElement;
|
|
44387
|
+
}
|
|
44429
44388
|
|
|
44430
|
-
|
|
44431
|
-
|
|
44432
|
-
|
|
44433
|
-
|
|
44434
|
-
e: undefined,
|
|
44389
|
+
function startTransition(scope, options) {
|
|
44390
|
+
var prevTransition = ReactCurrentBatchConfig.transition;
|
|
44391
|
+
ReactCurrentBatchConfig.transition = {};
|
|
44392
|
+
var currentTransition = ReactCurrentBatchConfig.transition;
|
|
44435
44393
|
|
|
44436
|
-
|
|
44437
|
-
|
|
44438
|
-
|
|
44439
|
-
// in the case of TLA, the execution promise
|
|
44440
|
-
E: undefined,
|
|
44394
|
+
{
|
|
44395
|
+
ReactCurrentBatchConfig.transition._updatedFibers = new Set();
|
|
44396
|
+
}
|
|
44441
44397
|
|
|
44442
|
-
|
|
44398
|
+
try {
|
|
44399
|
+
scope();
|
|
44400
|
+
} finally {
|
|
44401
|
+
ReactCurrentBatchConfig.transition = prevTransition;
|
|
44443
44402
|
|
|
44444
|
-
|
|
44445
|
-
|
|
44403
|
+
{
|
|
44404
|
+
if (prevTransition === null && currentTransition._updatedFibers) {
|
|
44405
|
+
var updatedFibersCount = currentTransition._updatedFibers.size;
|
|
44446
44406
|
|
|
44447
|
-
|
|
44448
|
-
|
|
44449
|
-
|
|
44450
|
-
}
|
|
44407
|
+
if (updatedFibersCount > 10) {
|
|
44408
|
+
warn('Detected a large number of updates inside startTransition. ' + 'If this is due to a subscription please re-write it to use React provided hooks. ' + 'Otherwise concurrent mode guarantees are off the table.');
|
|
44409
|
+
}
|
|
44451
44410
|
|
|
44452
|
-
|
|
44453
|
-
|
|
44454
|
-
loaded[load.id] = true;
|
|
44455
|
-
// load.L may be undefined for already-instantiated
|
|
44456
|
-
return Promise.resolve(load.L)
|
|
44457
|
-
.then(function () {
|
|
44458
|
-
if (!load.p || load.p.e === null)
|
|
44459
|
-
load.p = parent;
|
|
44460
|
-
return Promise.all(load.d.map(function (dep) {
|
|
44461
|
-
return instantiateAll(loader, dep, parent, loaded);
|
|
44462
|
-
}));
|
|
44463
|
-
})
|
|
44464
|
-
.catch(function (err) {
|
|
44465
|
-
if (load.er)
|
|
44466
|
-
throw err;
|
|
44467
|
-
load.e = null;
|
|
44468
|
-
triggerOnload(loader, load, err, false);
|
|
44469
|
-
throw err;
|
|
44470
|
-
});
|
|
44411
|
+
currentTransition._updatedFibers.clear();
|
|
44412
|
+
}
|
|
44471
44413
|
}
|
|
44472
44414
|
}
|
|
44415
|
+
}
|
|
44473
44416
|
|
|
44474
|
-
|
|
44475
|
-
|
|
44476
|
-
|
|
44477
|
-
|
|
44478
|
-
|
|
44479
|
-
|
|
44480
|
-
|
|
44481
|
-
|
|
44417
|
+
var didWarnAboutMessageChannel = false;
|
|
44418
|
+
var enqueueTaskImpl = null;
|
|
44419
|
+
function enqueueTask(task) {
|
|
44420
|
+
if (enqueueTaskImpl === null) {
|
|
44421
|
+
try {
|
|
44422
|
+
// read require off the module object to get around the bundlers.
|
|
44423
|
+
// we don't want them to detect a require and bundle a Node polyfill.
|
|
44424
|
+
var requireString = ('require' + Math.random()).slice(0, 7);
|
|
44425
|
+
var nodeRequire = module && module[requireString]; // assuming we're in node, let's try to get node's
|
|
44426
|
+
// version of setImmediate, bypassing fake timers if any.
|
|
44427
|
+
|
|
44428
|
+
enqueueTaskImpl = nodeRequire.call(module, 'timers').setImmediate;
|
|
44429
|
+
} catch (_err) {
|
|
44430
|
+
// we're in a browser
|
|
44431
|
+
// we can't use regular timers because they may still be faked
|
|
44432
|
+
// so we try MessageChannel+postMessage instead
|
|
44433
|
+
enqueueTaskImpl = function (callback) {
|
|
44434
|
+
{
|
|
44435
|
+
if (didWarnAboutMessageChannel === false) {
|
|
44436
|
+
didWarnAboutMessageChannel = true;
|
|
44437
|
+
|
|
44438
|
+
if (typeof MessageChannel === 'undefined') {
|
|
44439
|
+
error('This browser does not have a MessageChannel implementation, ' + 'so enqueuing tasks via await act(async () => ...) will fail. ' + 'Please file an issue at https://github.com/facebook/react/issues ' + 'if you encounter this warning.');
|
|
44440
|
+
}
|
|
44441
|
+
}
|
|
44442
|
+
}
|
|
44443
|
+
|
|
44444
|
+
var channel = new MessageChannel();
|
|
44445
|
+
channel.port1.onmessage = callback;
|
|
44446
|
+
channel.port2.postMessage(undefined);
|
|
44447
|
+
};
|
|
44448
|
+
}
|
|
44482
44449
|
}
|
|
44483
44450
|
|
|
44484
|
-
|
|
44485
|
-
|
|
44451
|
+
return enqueueTaskImpl(task);
|
|
44452
|
+
}
|
|
44486
44453
|
|
|
44487
|
-
|
|
44488
|
-
|
|
44489
|
-
|
|
44490
|
-
|
|
44491
|
-
|
|
44492
|
-
|
|
44454
|
+
var actScopeDepth = 0;
|
|
44455
|
+
var didWarnNoAwaitAct = false;
|
|
44456
|
+
function act(callback) {
|
|
44457
|
+
{
|
|
44458
|
+
// `act` calls can be nested, so we track the depth. This represents the
|
|
44459
|
+
// number of `act` scopes on the stack.
|
|
44460
|
+
var prevActScopeDepth = actScopeDepth;
|
|
44461
|
+
actScopeDepth++;
|
|
44493
44462
|
|
|
44494
|
-
if (
|
|
44495
|
-
|
|
44496
|
-
|
|
44497
|
-
|
|
44498
|
-
return load.E;
|
|
44499
|
-
return;
|
|
44463
|
+
if (ReactCurrentActQueue.current === null) {
|
|
44464
|
+
// This is the outermost `act` scope. Initialize the queue. The reconciler
|
|
44465
|
+
// will detect the queue and use it instead of Scheduler.
|
|
44466
|
+
ReactCurrentActQueue.current = [];
|
|
44500
44467
|
}
|
|
44501
44468
|
|
|
44502
|
-
|
|
44503
|
-
var
|
|
44504
|
-
|
|
44505
|
-
|
|
44506
|
-
|
|
44507
|
-
|
|
44508
|
-
|
|
44509
|
-
|
|
44510
|
-
|
|
44511
|
-
|
|
44512
|
-
|
|
44513
|
-
|
|
44514
|
-
|
|
44469
|
+
var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
|
|
44470
|
+
var result;
|
|
44471
|
+
|
|
44472
|
+
try {
|
|
44473
|
+
// Used to reproduce behavior of `batchedUpdates` in legacy mode. Only
|
|
44474
|
+
// set to `true` while the given callback is executed, not for updates
|
|
44475
|
+
// triggered during an async event, because this is how the legacy
|
|
44476
|
+
// implementation of `act` behaved.
|
|
44477
|
+
ReactCurrentActQueue.isBatchingLegacy = true;
|
|
44478
|
+
result = callback(); // Replicate behavior of original `act` implementation in legacy mode,
|
|
44479
|
+
// which flushed updates immediately after the scope function exits, even
|
|
44480
|
+
// if it's an async function.
|
|
44481
|
+
|
|
44482
|
+
if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
|
|
44483
|
+
var queue = ReactCurrentActQueue.current;
|
|
44484
|
+
|
|
44485
|
+
if (queue !== null) {
|
|
44486
|
+
ReactCurrentActQueue.didScheduleLegacyUpdate = false;
|
|
44487
|
+
flushActQueue(queue);
|
|
44488
|
+
}
|
|
44515
44489
|
}
|
|
44516
|
-
})
|
|
44517
|
-
|
|
44518
|
-
|
|
44490
|
+
} catch (error) {
|
|
44491
|
+
popActScope(prevActScopeDepth);
|
|
44492
|
+
throw error;
|
|
44493
|
+
} finally {
|
|
44494
|
+
ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
|
|
44495
|
+
}
|
|
44496
|
+
|
|
44497
|
+
if (result !== null && typeof result === 'object' && typeof result.then === 'function') {
|
|
44498
|
+
var thenableResult = result; // The callback is an async function (i.e. returned a promise). Wait
|
|
44499
|
+
// for it to resolve before exiting the current scope.
|
|
44519
44500
|
|
|
44520
|
-
|
|
44501
|
+
var wasAwaited = false;
|
|
44502
|
+
var thenable = {
|
|
44503
|
+
then: function (resolve, reject) {
|
|
44504
|
+
wasAwaited = true;
|
|
44505
|
+
thenableResult.then(function (returnValue) {
|
|
44506
|
+
popActScope(prevActScopeDepth);
|
|
44521
44507
|
|
|
44522
|
-
|
|
44523
|
-
|
|
44524
|
-
|
|
44525
|
-
|
|
44526
|
-
|
|
44527
|
-
|
|
44528
|
-
|
|
44529
|
-
|
|
44530
|
-
|
|
44531
|
-
|
|
44532
|
-
|
|
44533
|
-
|
|
44534
|
-
|
|
44508
|
+
if (actScopeDepth === 0) {
|
|
44509
|
+
// We've exited the outermost act scope. Recursively flush the
|
|
44510
|
+
// queue until there's no remaining work.
|
|
44511
|
+
recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
44512
|
+
} else {
|
|
44513
|
+
resolve(returnValue);
|
|
44514
|
+
}
|
|
44515
|
+
}, function (error) {
|
|
44516
|
+
// The callback threw an error.
|
|
44517
|
+
popActScope(prevActScopeDepth);
|
|
44518
|
+
reject(error);
|
|
44519
|
+
});
|
|
44520
|
+
}
|
|
44521
|
+
};
|
|
44522
|
+
|
|
44523
|
+
{
|
|
44524
|
+
if (!didWarnNoAwaitAct && typeof Promise !== 'undefined') {
|
|
44525
|
+
// eslint-disable-next-line no-undef
|
|
44526
|
+
Promise.resolve().then(function () {}).then(function () {
|
|
44527
|
+
if (!wasAwaited) {
|
|
44528
|
+
didWarnNoAwaitAct = true;
|
|
44529
|
+
|
|
44530
|
+
error('You called act(async () => ...) without await. ' + 'This could lead to unexpected testing behaviour, ' + 'interleaving multiple act calls and mixing their ' + 'scopes. ' + 'You should - await act(async () => ...);');
|
|
44531
|
+
}
|
|
44535
44532
|
});
|
|
44536
|
-
return load.E = execPromise;
|
|
44537
44533
|
}
|
|
44538
|
-
// (should be a promise, but a minify optimization to leave out Promise.resolve)
|
|
44539
|
-
load.C = load.n;
|
|
44540
|
-
load.L = load.I = undefined;
|
|
44541
|
-
}
|
|
44542
|
-
catch (err) {
|
|
44543
|
-
load.er = err;
|
|
44544
|
-
throw err;
|
|
44545
|
-
}
|
|
44546
|
-
finally {
|
|
44547
|
-
load.e = null;
|
|
44548
|
-
triggerOnload(loader, load, load.er, true);
|
|
44549
44534
|
}
|
|
44550
|
-
}
|
|
44551
|
-
}
|
|
44552
44535
|
|
|
44553
|
-
|
|
44536
|
+
return thenable;
|
|
44537
|
+
} else {
|
|
44538
|
+
var returnValue = result; // The callback is not an async function. Exit the current scope
|
|
44539
|
+
// immediately, without awaiting.
|
|
44554
44540
|
|
|
44555
|
-
|
|
44556
|
-
* SystemJS browser attachments for script and import map processing
|
|
44557
|
-
*/
|
|
44541
|
+
popActScope(prevActScopeDepth);
|
|
44558
44542
|
|
|
44559
|
-
|
|
44560
|
-
|
|
44543
|
+
if (actScopeDepth === 0) {
|
|
44544
|
+
// Exiting the outermost act scope. Flush the queue.
|
|
44545
|
+
var _queue = ReactCurrentActQueue.current;
|
|
44561
44546
|
|
|
44562
|
-
|
|
44563
|
-
|
|
44564
|
-
|
|
44565
|
-
|
|
44566
|
-
|
|
44567
|
-
if (processFirst || doProcessScripts) {
|
|
44568
|
-
processScripts();
|
|
44569
|
-
processFirst = false;
|
|
44570
|
-
}
|
|
44571
|
-
return importMapPromise;
|
|
44572
|
-
};
|
|
44573
|
-
if (hasDocument) {
|
|
44574
|
-
processScripts();
|
|
44575
|
-
window.addEventListener('DOMContentLoaded', processScripts);
|
|
44576
|
-
}
|
|
44547
|
+
if (_queue !== null) {
|
|
44548
|
+
flushActQueue(_queue);
|
|
44549
|
+
ReactCurrentActQueue.current = null;
|
|
44550
|
+
} // Return a thenable. If the user awaits it, we'll flush again in
|
|
44551
|
+
// case additional work was scheduled by a microtask.
|
|
44577
44552
|
|
|
44578
|
-
|
|
44579
|
-
|
|
44580
|
-
|
|
44581
|
-
|
|
44582
|
-
|
|
44583
|
-
|
|
44584
|
-
|
|
44585
|
-
|
|
44586
|
-
|
|
44587
|
-
|
|
44588
|
-
|
|
44589
|
-
|
|
44590
|
-
|
|
44591
|
-
var event = document.createEvent('Event');
|
|
44592
|
-
event.initEvent('error', false, false);
|
|
44593
|
-
script.dispatchEvent(event);
|
|
44553
|
+
|
|
44554
|
+
var _thenable = {
|
|
44555
|
+
then: function (resolve, reject) {
|
|
44556
|
+
// Confirm we haven't re-entered another `act` scope, in case
|
|
44557
|
+
// the user does something weird like await the thenable
|
|
44558
|
+
// multiple times.
|
|
44559
|
+
if (ReactCurrentActQueue.current === null) {
|
|
44560
|
+
// Recursively flush the queue until there's no remaining work.
|
|
44561
|
+
ReactCurrentActQueue.current = [];
|
|
44562
|
+
recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
44563
|
+
} else {
|
|
44564
|
+
resolve(returnValue);
|
|
44565
|
+
}
|
|
44594
44566
|
}
|
|
44595
|
-
|
|
44596
|
-
|
|
44597
|
-
}
|
|
44598
|
-
|
|
44599
|
-
|
|
44600
|
-
|
|
44601
|
-
|
|
44602
|
-
|
|
44603
|
-
throw Error('Invalid status code: ' + res.status);
|
|
44604
|
-
return res.text();
|
|
44605
|
-
}).catch(function (err) {
|
|
44606
|
-
err.message = errMsg('W4', 'Error fetching systemjs-import map ' + script.src) + '\n' + err.message;
|
|
44607
|
-
console.warn(err);
|
|
44608
|
-
if (typeof script.onerror === 'function') {
|
|
44609
|
-
script.onerror();
|
|
44567
|
+
};
|
|
44568
|
+
return _thenable;
|
|
44569
|
+
} else {
|
|
44570
|
+
// Since we're inside a nested `act` scope, the returned thenable
|
|
44571
|
+
// immediately resolves. The outer scope will flush the queue.
|
|
44572
|
+
var _thenable2 = {
|
|
44573
|
+
then: function (resolve, reject) {
|
|
44574
|
+
resolve(returnValue);
|
|
44610
44575
|
}
|
|
44611
|
-
|
|
44612
|
-
|
|
44613
|
-
importMapPromise = importMapPromise.then(function () {
|
|
44614
|
-
return fetchPromise;
|
|
44615
|
-
}).then(function (text) {
|
|
44616
|
-
extendImportMap(importMap, text, script.src || baseUrl);
|
|
44617
|
-
});
|
|
44576
|
+
};
|
|
44577
|
+
return _thenable2;
|
|
44618
44578
|
}
|
|
44619
|
-
});
|
|
44620
|
-
}
|
|
44621
|
-
|
|
44622
|
-
function extendImportMap (importMap, newMapText, newMapUrl) {
|
|
44623
|
-
var newMap = {};
|
|
44624
|
-
try {
|
|
44625
|
-
newMap = JSON.parse(newMapText);
|
|
44626
|
-
} catch (err) {
|
|
44627
|
-
console.warn(Error((errMsg('W5', "systemjs-importmap contains invalid JSON") + '\n\n' + newMapText + '\n' )));
|
|
44628
44579
|
}
|
|
44629
|
-
resolveAndComposeImportMap(newMap, newMapUrl, importMap);
|
|
44630
44580
|
}
|
|
44581
|
+
}
|
|
44631
44582
|
|
|
44632
|
-
|
|
44633
|
-
|
|
44634
|
-
|
|
44583
|
+
function popActScope(prevActScopeDepth) {
|
|
44584
|
+
{
|
|
44585
|
+
if (prevActScopeDepth !== actScopeDepth - 1) {
|
|
44586
|
+
error('You seem to have overlapping act() calls, this is not supported. ' + 'Be sure to await previous act() calls before making a new one. ');
|
|
44587
|
+
}
|
|
44635
44588
|
|
|
44636
|
-
|
|
44637
|
-
window.addEventListener('error', function (evt) {
|
|
44638
|
-
lastWindowErrorUrl = evt.filename;
|
|
44639
|
-
lastWindowError = evt.error;
|
|
44640
|
-
});
|
|
44641
|
-
var baseOrigin = location.origin;
|
|
44589
|
+
actScopeDepth = prevActScopeDepth;
|
|
44642
44590
|
}
|
|
44591
|
+
}
|
|
44643
44592
|
|
|
44644
|
-
|
|
44645
|
-
|
|
44646
|
-
|
|
44647
|
-
// Only add cross origin for actual cross origin
|
|
44648
|
-
// this is because Safari triggers for all
|
|
44649
|
-
// - https://bugs.webkit.org/show_bug.cgi?id=171566
|
|
44650
|
-
if (url.indexOf(baseOrigin + '/'))
|
|
44651
|
-
script.crossOrigin = 'anonymous';
|
|
44652
|
-
var integrity = importMap.integrity[url];
|
|
44653
|
-
if (integrity)
|
|
44654
|
-
script.integrity = integrity;
|
|
44655
|
-
script.src = url;
|
|
44656
|
-
return script;
|
|
44657
|
-
};
|
|
44593
|
+
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
44594
|
+
{
|
|
44595
|
+
var queue = ReactCurrentActQueue.current;
|
|
44658
44596
|
|
|
44659
|
-
|
|
44660
|
-
|
|
44661
|
-
|
|
44662
|
-
|
|
44663
|
-
|
|
44664
|
-
|
|
44665
|
-
|
|
44666
|
-
|
|
44667
|
-
|
|
44668
|
-
|
|
44669
|
-
|
|
44670
|
-
|
|
44671
|
-
var loader = this;
|
|
44672
|
-
lastAutoImportTimeout = setTimeout(function () {
|
|
44673
|
-
autoImportCandidates[lastScript.src] = [deps, declare];
|
|
44674
|
-
loader.import(lastScript.src);
|
|
44597
|
+
if (queue !== null) {
|
|
44598
|
+
try {
|
|
44599
|
+
flushActQueue(queue);
|
|
44600
|
+
enqueueTask(function () {
|
|
44601
|
+
if (queue.length === 0) {
|
|
44602
|
+
// No additional work was scheduled. Finish.
|
|
44603
|
+
ReactCurrentActQueue.current = null;
|
|
44604
|
+
resolve(returnValue);
|
|
44605
|
+
} else {
|
|
44606
|
+
// Keep flushing work until there's none left.
|
|
44607
|
+
recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
44608
|
+
}
|
|
44675
44609
|
});
|
|
44610
|
+
} catch (error) {
|
|
44611
|
+
reject(error);
|
|
44676
44612
|
}
|
|
44613
|
+
} else {
|
|
44614
|
+
resolve(returnValue);
|
|
44677
44615
|
}
|
|
44678
|
-
else {
|
|
44679
|
-
lastAutoImportDeps = undefined;
|
|
44680
|
-
}
|
|
44681
|
-
return systemRegister.call(this, deps, declare);
|
|
44682
|
-
};
|
|
44683
|
-
|
|
44684
|
-
var lastWindowErrorUrl, lastWindowError;
|
|
44685
|
-
systemJSPrototype.instantiate = function (url, firstParentUrl) {
|
|
44686
|
-
var autoImportRegistration = autoImportCandidates[url];
|
|
44687
|
-
if (autoImportRegistration) {
|
|
44688
|
-
delete autoImportCandidates[url];
|
|
44689
|
-
return autoImportRegistration;
|
|
44690
|
-
}
|
|
44691
|
-
var loader = this;
|
|
44692
|
-
return Promise.resolve(systemJSPrototype.createScript(url)).then(function (script) {
|
|
44693
|
-
return new Promise(function (resolve, reject) {
|
|
44694
|
-
script.addEventListener('error', function () {
|
|
44695
|
-
reject(Error(errMsg(3, 'Error loading ' + url + (firstParentUrl ? ' from ' + firstParentUrl : ''))));
|
|
44696
|
-
});
|
|
44697
|
-
script.addEventListener('load', function () {
|
|
44698
|
-
document.head.removeChild(script);
|
|
44699
|
-
// Note that if an error occurs that isn't caught by this if statement,
|
|
44700
|
-
// that getRegister will return null and a "did not instantiate" error will be thrown.
|
|
44701
|
-
if (lastWindowErrorUrl === url) {
|
|
44702
|
-
reject(lastWindowError);
|
|
44703
|
-
}
|
|
44704
|
-
else {
|
|
44705
|
-
var register = loader.getRegister(url);
|
|
44706
|
-
// Clear any auto import registration for dynamic import scripts during load
|
|
44707
|
-
if (register && register[0] === lastAutoImportDeps)
|
|
44708
|
-
clearTimeout(lastAutoImportTimeout);
|
|
44709
|
-
resolve(register);
|
|
44710
|
-
}
|
|
44711
|
-
});
|
|
44712
|
-
document.head.appendChild(script);
|
|
44713
|
-
});
|
|
44714
|
-
});
|
|
44715
|
-
};
|
|
44716
|
-
|
|
44717
|
-
/*
|
|
44718
|
-
* Fetch loader, sets up shouldFetch and fetch hooks
|
|
44719
|
-
*/
|
|
44720
|
-
systemJSPrototype.shouldFetch = function () {
|
|
44721
|
-
return false;
|
|
44722
|
-
};
|
|
44723
|
-
if (typeof fetch !== 'undefined')
|
|
44724
|
-
systemJSPrototype.fetch = fetch;
|
|
44725
|
-
|
|
44726
|
-
var instantiate = systemJSPrototype.instantiate;
|
|
44727
|
-
var jsContentTypeRegEx = /^(text|application)\/(x-)?javascript(;|$)/;
|
|
44728
|
-
systemJSPrototype.instantiate = function (url, parent) {
|
|
44729
|
-
var loader = this;
|
|
44730
|
-
if (!this.shouldFetch(url))
|
|
44731
|
-
return instantiate.apply(this, arguments);
|
|
44732
|
-
return this.fetch(url, {
|
|
44733
|
-
credentials: 'same-origin',
|
|
44734
|
-
integrity: importMap.integrity[url]
|
|
44735
|
-
})
|
|
44736
|
-
.then(function (res) {
|
|
44737
|
-
if (!res.ok)
|
|
44738
|
-
throw Error(errMsg(7, res.status + ' ' + res.statusText + ', loading ' + url + (parent ? ' from ' + parent : '')));
|
|
44739
|
-
var contentType = res.headers.get('content-type');
|
|
44740
|
-
if (!contentType || !jsContentTypeRegEx.test(contentType))
|
|
44741
|
-
throw Error(errMsg(4, 'Unknown Content-Type "' + contentType + '", loading ' + url + (parent ? ' from ' + parent : '')));
|
|
44742
|
-
return res.text().then(function (source) {
|
|
44743
|
-
if (source.indexOf('//# sourceURL=') < 0)
|
|
44744
|
-
source += '\n//# sourceURL=' + url;
|
|
44745
|
-
(0, eval)(source);
|
|
44746
|
-
return loader.getRegister(url);
|
|
44747
|
-
});
|
|
44748
|
-
});
|
|
44749
|
-
};
|
|
44750
|
-
|
|
44751
|
-
systemJSPrototype.resolve = function (id, parentUrl) {
|
|
44752
|
-
parentUrl = parentUrl || !true || baseUrl;
|
|
44753
|
-
return resolveImportMap((importMap), resolveIfNotPlainOrUrl(id, parentUrl) || id, parentUrl) || throwUnresolved(id, parentUrl);
|
|
44754
|
-
};
|
|
44755
|
-
|
|
44756
|
-
function throwUnresolved (id, parentUrl) {
|
|
44757
|
-
throw Error(errMsg(8, "Unable to resolve bare specifier '" + id + (parentUrl ? "' from " + parentUrl : "'")));
|
|
44758
44616
|
}
|
|
44617
|
+
}
|
|
44759
44618
|
|
|
44760
|
-
|
|
44761
|
-
systemJSPrototype.instantiate = function (url, firstParentUrl) {
|
|
44762
|
-
var preloads = (importMap).depcache[url];
|
|
44763
|
-
if (preloads) {
|
|
44764
|
-
for (var i = 0; i < preloads.length; i++)
|
|
44765
|
-
getOrCreateLoad(this, this.resolve(preloads[i], url), url);
|
|
44766
|
-
}
|
|
44767
|
-
return systemInstantiate.call(this, url, firstParentUrl);
|
|
44768
|
-
};
|
|
44769
|
-
|
|
44770
|
-
/*
|
|
44771
|
-
* Supports loading System.register in workers
|
|
44772
|
-
*/
|
|
44619
|
+
var isFlushing = false;
|
|
44773
44620
|
|
|
44774
|
-
|
|
44775
|
-
|
|
44776
|
-
|
|
44777
|
-
|
|
44778
|
-
|
|
44779
|
-
|
|
44780
|
-
});
|
|
44781
|
-
};
|
|
44621
|
+
function flushActQueue(queue) {
|
|
44622
|
+
{
|
|
44623
|
+
if (!isFlushing) {
|
|
44624
|
+
// Prevent re-entrance.
|
|
44625
|
+
isFlushing = true;
|
|
44626
|
+
var i = 0;
|
|
44782
44627
|
|
|
44783
|
-
|
|
44784
|
-
|
|
44785
|
-
|
|
44786
|
-
* (Included by default in system.js build)
|
|
44787
|
-
*/
|
|
44788
|
-
(function (global) {
|
|
44789
|
-
var systemJSPrototype = global.System.constructor.prototype;
|
|
44628
|
+
try {
|
|
44629
|
+
for (; i < queue.length; i++) {
|
|
44630
|
+
var callback = queue[i];
|
|
44790
44631
|
|
|
44791
|
-
|
|
44792
|
-
|
|
44793
|
-
|
|
44794
|
-
var cnt = 0;
|
|
44795
|
-
var foundLastProp, result;
|
|
44796
|
-
for (var p in global) {
|
|
44797
|
-
// do not check frames cause it could be removed during import
|
|
44798
|
-
if (shouldSkipProperty(p))
|
|
44799
|
-
continue;
|
|
44800
|
-
if (cnt === 0 && p !== firstGlobalProp || cnt === 1 && p !== secondGlobalProp)
|
|
44801
|
-
return p;
|
|
44802
|
-
if (foundLastProp) {
|
|
44803
|
-
lastGlobalProp = p;
|
|
44804
|
-
result = useFirstGlobalProp && result || p;
|
|
44805
|
-
}
|
|
44806
|
-
else {
|
|
44807
|
-
foundLastProp = p === lastGlobalProp;
|
|
44632
|
+
do {
|
|
44633
|
+
callback = callback(true);
|
|
44634
|
+
} while (callback !== null);
|
|
44808
44635
|
}
|
|
44809
|
-
cnt++;
|
|
44810
|
-
}
|
|
44811
|
-
return result;
|
|
44812
|
-
}
|
|
44813
44636
|
|
|
44814
|
-
|
|
44815
|
-
|
|
44816
|
-
|
|
44817
|
-
|
|
44818
|
-
|
|
44819
|
-
|
|
44820
|
-
|
|
44821
|
-
continue;
|
|
44822
|
-
if (!firstGlobalProp)
|
|
44823
|
-
firstGlobalProp = p;
|
|
44824
|
-
else if (!secondGlobalProp)
|
|
44825
|
-
secondGlobalProp = p;
|
|
44826
|
-
lastGlobalProp = p;
|
|
44637
|
+
queue.length = 0;
|
|
44638
|
+
} catch (error) {
|
|
44639
|
+
// If something throws, leave the remaining callbacks on the queue.
|
|
44640
|
+
queue = queue.slice(i + 1);
|
|
44641
|
+
throw error;
|
|
44642
|
+
} finally {
|
|
44643
|
+
isFlushing = false;
|
|
44827
44644
|
}
|
|
44828
|
-
return lastGlobalProp;
|
|
44829
44645
|
}
|
|
44646
|
+
}
|
|
44647
|
+
}
|
|
44830
44648
|
|
|
44831
|
-
|
|
44832
|
-
|
|
44833
|
-
|
|
44834
|
-
|
|
44835
|
-
|
|
44649
|
+
var createElement$1 = createElementWithValidation ;
|
|
44650
|
+
var cloneElement$1 = cloneElementWithValidation ;
|
|
44651
|
+
var createFactory = createFactoryWithValidation ;
|
|
44652
|
+
var Children = {
|
|
44653
|
+
map: mapChildren,
|
|
44654
|
+
forEach: forEachChildren,
|
|
44655
|
+
count: countChildren,
|
|
44656
|
+
toArray: toArray,
|
|
44657
|
+
only: onlyChild
|
|
44658
|
+
};
|
|
44659
|
+
|
|
44660
|
+
exports.Children = Children;
|
|
44661
|
+
exports.Component = Component;
|
|
44662
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
44663
|
+
exports.Profiler = REACT_PROFILER_TYPE;
|
|
44664
|
+
exports.PureComponent = PureComponent;
|
|
44665
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
44666
|
+
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
44667
|
+
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
|
|
44668
|
+
exports.cloneElement = cloneElement$1;
|
|
44669
|
+
exports.createContext = createContext;
|
|
44670
|
+
exports.createElement = createElement$1;
|
|
44671
|
+
exports.createFactory = createFactory;
|
|
44672
|
+
exports.createRef = createRef;
|
|
44673
|
+
exports.forwardRef = forwardRef;
|
|
44674
|
+
exports.isValidElement = isValidElement;
|
|
44675
|
+
exports.lazy = lazy;
|
|
44676
|
+
exports.memo = memo;
|
|
44677
|
+
exports.startTransition = startTransition;
|
|
44678
|
+
exports.unstable_act = act;
|
|
44679
|
+
exports.useCallback = useCallback;
|
|
44680
|
+
exports.useContext = useContext;
|
|
44681
|
+
exports.useDebugValue = useDebugValue;
|
|
44682
|
+
exports.useDeferredValue = useDeferredValue;
|
|
44683
|
+
exports.useEffect = useEffect;
|
|
44684
|
+
exports.useId = useId;
|
|
44685
|
+
exports.useImperativeHandle = useImperativeHandle;
|
|
44686
|
+
exports.useInsertionEffect = useInsertionEffect;
|
|
44687
|
+
exports.useLayoutEffect = useLayoutEffect;
|
|
44688
|
+
exports.useMemo = useMemo;
|
|
44689
|
+
exports.useReducer = useReducer;
|
|
44690
|
+
exports.useRef = useRef;
|
|
44691
|
+
exports.useState = useState;
|
|
44692
|
+
exports.useSyncExternalStore = useSyncExternalStore;
|
|
44693
|
+
exports.useTransition = useTransition;
|
|
44694
|
+
exports.version = ReactVersion;
|
|
44695
|
+
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
44696
|
+
if (
|
|
44697
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
|
|
44698
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
|
|
44699
|
+
'function'
|
|
44700
|
+
) {
|
|
44701
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
44702
|
+
}
|
|
44703
|
+
|
|
44704
|
+
})();
|
|
44705
|
+
}
|
|
44836
44706
|
|
|
44837
|
-
var emptyInstantiation = [[], function () { return {} }];
|
|
44838
44707
|
|
|
44839
|
-
|
|
44840
|
-
systemJSPrototype.getRegister = function () {
|
|
44841
|
-
var lastRegister = getRegister.call(this);
|
|
44842
|
-
if (lastRegister)
|
|
44843
|
-
return lastRegister;
|
|
44844
|
-
|
|
44845
|
-
// no registration -> attempt a global detection as difference from snapshot
|
|
44846
|
-
// when multiple globals, we take the global value to be the last defined new global object property
|
|
44847
|
-
// for performance, this will not support multi-version / global collisions as previous SystemJS versions did
|
|
44848
|
-
// note in Edge, deleting and re-adding a global does not change its ordering
|
|
44849
|
-
var globalProp = getGlobalProp(this.firstGlobalProp);
|
|
44850
|
-
if (!globalProp)
|
|
44851
|
-
return emptyInstantiation;
|
|
44708
|
+
/***/ }),
|
|
44852
44709
|
|
|
44853
|
-
|
|
44854
|
-
|
|
44855
|
-
|
|
44856
|
-
|
|
44857
|
-
|
|
44858
|
-
return emptyInstantiation;
|
|
44859
|
-
}
|
|
44710
|
+
/***/ "../../../node_modules/react/index.js":
|
|
44711
|
+
/*!********************************************!*\
|
|
44712
|
+
!*** ../../../node_modules/react/index.js ***!
|
|
44713
|
+
\********************************************/
|
|
44714
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
44860
44715
|
|
|
44861
|
-
|
|
44862
|
-
return {
|
|
44863
|
-
execute: function () {
|
|
44864
|
-
_export(globalExport);
|
|
44865
|
-
_export({ default: globalExport, __useDefault: true });
|
|
44866
|
-
}
|
|
44867
|
-
};
|
|
44868
|
-
}];
|
|
44869
|
-
};
|
|
44716
|
+
"use strict";
|
|
44870
44717
|
|
|
44871
|
-
var isIE11 = typeof navigator !== 'undefined' && navigator.userAgent.indexOf('Trident') !== -1;
|
|
44872
44718
|
|
|
44873
|
-
|
|
44874
|
-
|
|
44875
|
-
|
|
44876
|
-
|| isIE11 && global[p] && typeof window !== 'undefined' && global[p].parent === window;
|
|
44877
|
-
}
|
|
44878
|
-
})(typeof self !== 'undefined' ? self : __webpack_require__.g);
|
|
44719
|
+
if (false) {} else {
|
|
44720
|
+
module.exports = __webpack_require__(/*! ./cjs/react.development.js */ "../../../node_modules/react/cjs/react.development.js");
|
|
44721
|
+
}
|
|
44879
44722
|
|
|
44880
|
-
/*
|
|
44881
|
-
* Loads JSON, CSS, Wasm module types based on file extension
|
|
44882
|
-
* filters and content type verifications
|
|
44883
|
-
*/
|
|
44884
|
-
(function(global) {
|
|
44885
|
-
var systemJSPrototype = global.System.constructor.prototype;
|
|
44886
44723
|
|
|
44887
|
-
|
|
44888
|
-
systemJSPrototype.shouldFetch = function (url) {
|
|
44889
|
-
return moduleTypesRegEx.test(url);
|
|
44890
|
-
};
|
|
44724
|
+
/***/ }),
|
|
44891
44725
|
|
|
44892
|
-
|
|
44893
|
-
|
|
44894
|
-
|
|
44726
|
+
/***/ "../../../node_modules/resolve-pathname/esm/resolve-pathname.js":
|
|
44727
|
+
/*!**********************************************************************!*\
|
|
44728
|
+
!*** ../../../node_modules/resolve-pathname/esm/resolve-pathname.js ***!
|
|
44729
|
+
\**********************************************************************/
|
|
44730
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
44895
44731
|
|
|
44896
|
-
|
|
44897
|
-
|
|
44898
|
-
|
|
44899
|
-
|
|
44900
|
-
|
|
44901
|
-
|
|
44902
|
-
|
|
44903
|
-
|
|
44904
|
-
return res;
|
|
44905
|
-
var contentType = res.headers.get('content-type');
|
|
44906
|
-
if (jsonContentType.test(contentType))
|
|
44907
|
-
return res.json()
|
|
44908
|
-
.then(function (json) {
|
|
44909
|
-
return new Response(new Blob([
|
|
44910
|
-
'System.register([],function(e){return{execute:function(){e("default",' + JSON.stringify(json) + ')}}})'
|
|
44911
|
-
], {
|
|
44912
|
-
type: 'application/javascript'
|
|
44913
|
-
}));
|
|
44914
|
-
});
|
|
44915
|
-
if (cssContentType.test(contentType))
|
|
44916
|
-
return res.text()
|
|
44917
|
-
.then(function (source) {
|
|
44918
|
-
source = source.replace(/url\(\s*(?:(["'])((?:\\.|[^\n\\"'])+)\1|((?:\\.|[^\s,"'()\\])+))\s*\)/g, function (match, quotes, relUrl1, relUrl2) {
|
|
44919
|
-
return 'url(' + quotes + resolveUrl(relUrl1 || relUrl2, url) + quotes + ')';
|
|
44920
|
-
});
|
|
44921
|
-
return new Response(new Blob([
|
|
44922
|
-
'System.register([],function(e){return{execute:function(){var s=new CSSStyleSheet();s.replaceSync(' + JSON.stringify(source) + ');e("default",s)}}})'
|
|
44923
|
-
], {
|
|
44924
|
-
type: 'application/javascript'
|
|
44925
|
-
}));
|
|
44926
|
-
});
|
|
44927
|
-
if (wasmContentType.test(contentType))
|
|
44928
|
-
return (WebAssembly.compileStreaming ? WebAssembly.compileStreaming(res) : res.arrayBuffer().then(WebAssembly.compile))
|
|
44929
|
-
.then(function (module) {
|
|
44930
|
-
if (!global.System.wasmModules)
|
|
44931
|
-
global.System.wasmModules = Object.create(null);
|
|
44932
|
-
global.System.wasmModules[url] = module;
|
|
44933
|
-
// we can only set imports if supported (eg early Safari doesnt support)
|
|
44934
|
-
var deps = [];
|
|
44935
|
-
var setterSources = [];
|
|
44936
|
-
if (WebAssembly.Module.imports)
|
|
44937
|
-
WebAssembly.Module.imports(module).forEach(function (impt) {
|
|
44938
|
-
var key = JSON.stringify(impt.module);
|
|
44939
|
-
if (deps.indexOf(key) === -1) {
|
|
44940
|
-
deps.push(key);
|
|
44941
|
-
setterSources.push('function(m){i[' + key + ']=m}');
|
|
44942
|
-
}
|
|
44943
|
-
});
|
|
44944
|
-
return new Response(new Blob([
|
|
44945
|
-
'System.register([' + deps.join(',') + '],function(e){var i={};return{setters:[' + setterSources.join(',') +
|
|
44946
|
-
'],execute:function(){return WebAssembly.instantiate(System.wasmModules[' + JSON.stringify(url) +
|
|
44947
|
-
'],i).then(function(m){e(m.exports)})}}})'
|
|
44948
|
-
], {
|
|
44949
|
-
type: 'application/javascript'
|
|
44950
|
-
}));
|
|
44951
|
-
});
|
|
44952
|
-
return res;
|
|
44953
|
-
});
|
|
44954
|
-
};
|
|
44955
|
-
})(typeof self !== 'undefined' ? self : __webpack_require__.g);
|
|
44732
|
+
"use strict";
|
|
44733
|
+
__webpack_require__.r(__webpack_exports__);
|
|
44734
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44735
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
44736
|
+
/* harmony export */ });
|
|
44737
|
+
function isAbsolute(pathname) {
|
|
44738
|
+
return pathname.charAt(0) === '/';
|
|
44739
|
+
}
|
|
44956
44740
|
|
|
44957
|
-
|
|
44741
|
+
// About 1.5x faster than the two-arg version of Array#splice()
|
|
44742
|
+
function spliceOne(list, index) {
|
|
44743
|
+
for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) {
|
|
44744
|
+
list[i] = list[k];
|
|
44745
|
+
}
|
|
44958
44746
|
|
|
44959
|
-
|
|
44960
|
-
|
|
44961
|
-
if (load && load.e === null && !load.E) {
|
|
44962
|
-
if (load.er)
|
|
44963
|
-
return null;
|
|
44964
|
-
return load.n;
|
|
44965
|
-
}
|
|
44966
|
-
};
|
|
44747
|
+
list.pop();
|
|
44748
|
+
}
|
|
44967
44749
|
|
|
44968
|
-
|
|
44969
|
-
|
|
44970
|
-
|
|
44971
|
-
// No page-relative URLs allowed
|
|
44972
|
-
new URL(id);
|
|
44973
|
-
} catch (err) {
|
|
44974
|
-
console.warn(Error(errMsg('W3', '"' + id + '" is not a valid URL to set in the module registry')));
|
|
44975
|
-
}
|
|
44976
|
-
}
|
|
44977
|
-
var ns;
|
|
44978
|
-
if (toStringTag && module[toStringTag] === 'Module') {
|
|
44979
|
-
ns = module;
|
|
44980
|
-
}
|
|
44981
|
-
else {
|
|
44982
|
-
ns = Object.assign(Object.create(null), module);
|
|
44983
|
-
if (toStringTag)
|
|
44984
|
-
Object.defineProperty(ns, toStringTag, { value: 'Module' });
|
|
44985
|
-
}
|
|
44750
|
+
// This implementation is based heavily on node's url.parse
|
|
44751
|
+
function resolvePathname(to, from) {
|
|
44752
|
+
if (from === undefined) from = '';
|
|
44986
44753
|
|
|
44987
|
-
|
|
44754
|
+
var toParts = (to && to.split('/')) || [];
|
|
44755
|
+
var fromParts = (from && from.split('/')) || [];
|
|
44988
44756
|
|
|
44989
|
-
|
|
44990
|
-
|
|
44991
|
-
|
|
44992
|
-
h: false,
|
|
44993
|
-
d: [],
|
|
44994
|
-
e: null,
|
|
44995
|
-
er: undefined,
|
|
44996
|
-
E: undefined
|
|
44997
|
-
});
|
|
44757
|
+
var isToAbs = to && isAbsolute(to);
|
|
44758
|
+
var isFromAbs = from && isAbsolute(from);
|
|
44759
|
+
var mustEndAbs = isToAbs || isFromAbs;
|
|
44998
44760
|
|
|
44999
|
-
|
|
45000
|
-
|
|
45001
|
-
|
|
45002
|
-
|
|
45003
|
-
|
|
45004
|
-
|
|
45005
|
-
|
|
45006
|
-
|
|
45007
|
-
});
|
|
45008
|
-
return ns;
|
|
45009
|
-
};
|
|
44761
|
+
if (to && isAbsolute(to)) {
|
|
44762
|
+
// to is absolute
|
|
44763
|
+
fromParts = toParts;
|
|
44764
|
+
} else if (toParts.length) {
|
|
44765
|
+
// to is relative, drop the filename
|
|
44766
|
+
fromParts.pop();
|
|
44767
|
+
fromParts = fromParts.concat(toParts);
|
|
44768
|
+
}
|
|
45010
44769
|
|
|
45011
|
-
|
|
45012
|
-
var load = this[REGISTRY][id];
|
|
45013
|
-
return !!load;
|
|
45014
|
-
};
|
|
44770
|
+
if (!fromParts.length) return '/';
|
|
45015
44771
|
|
|
45016
|
-
|
|
45017
|
-
|
|
45018
|
-
var
|
|
45019
|
-
|
|
45020
|
-
|
|
45021
|
-
|
|
45022
|
-
|
|
45023
|
-
return false;
|
|
44772
|
+
var hasTrailingSlash;
|
|
44773
|
+
if (fromParts.length) {
|
|
44774
|
+
var last = fromParts[fromParts.length - 1];
|
|
44775
|
+
hasTrailingSlash = last === '.' || last === '..' || last === '';
|
|
44776
|
+
} else {
|
|
44777
|
+
hasTrailingSlash = false;
|
|
44778
|
+
}
|
|
45024
44779
|
|
|
45025
|
-
|
|
45026
|
-
|
|
45027
|
-
|
|
45028
|
-
|
|
45029
|
-
|
|
45030
|
-
|
|
45031
|
-
|
|
45032
|
-
|
|
45033
|
-
|
|
45034
|
-
|
|
45035
|
-
|
|
45036
|
-
|
|
45037
|
-
|
|
45038
|
-
|
|
45039
|
-
// add back the old setters
|
|
45040
|
-
importerSetters.forEach(function (setter) {
|
|
45041
|
-
load.i.push(setter);
|
|
45042
|
-
setter(load.n);
|
|
45043
|
-
});
|
|
45044
|
-
importerSetters = null;
|
|
45045
|
-
};
|
|
45046
|
-
};
|
|
44780
|
+
var up = 0;
|
|
44781
|
+
for (var i = fromParts.length; i >= 0; i--) {
|
|
44782
|
+
var part = fromParts[i];
|
|
44783
|
+
|
|
44784
|
+
if (part === '.') {
|
|
44785
|
+
spliceOne(fromParts, i);
|
|
44786
|
+
} else if (part === '..') {
|
|
44787
|
+
spliceOne(fromParts, i);
|
|
44788
|
+
up++;
|
|
44789
|
+
} else if (up) {
|
|
44790
|
+
spliceOne(fromParts, i);
|
|
44791
|
+
up--;
|
|
44792
|
+
}
|
|
44793
|
+
}
|
|
45047
44794
|
|
|
45048
|
-
|
|
44795
|
+
if (!mustEndAbs) for (; up--; up) fromParts.unshift('..');
|
|
45049
44796
|
|
|
45050
|
-
|
|
45051
|
-
|
|
45052
|
-
|
|
45053
|
-
|
|
45054
|
-
|
|
45055
|
-
|
|
45056
|
-
|
|
45057
|
-
|
|
45058
|
-
);
|
|
45059
|
-
return {
|
|
45060
|
-
done: key === undefined,
|
|
45061
|
-
value: key !== undefined && [key, ns]
|
|
45062
|
-
};
|
|
45063
|
-
}
|
|
45064
|
-
};
|
|
44797
|
+
if (
|
|
44798
|
+
mustEndAbs &&
|
|
44799
|
+
fromParts[0] !== '' &&
|
|
44800
|
+
(!fromParts[0] || !isAbsolute(fromParts[0]))
|
|
44801
|
+
)
|
|
44802
|
+
fromParts.unshift('');
|
|
44803
|
+
|
|
44804
|
+
var result = fromParts.join('/');
|
|
45065
44805
|
|
|
45066
|
-
|
|
44806
|
+
if (hasTrailingSlash && result.substr(-1) !== '/') result += '/';
|
|
45067
44807
|
|
|
45068
|
-
|
|
45069
|
-
|
|
44808
|
+
return result;
|
|
44809
|
+
}
|
|
45070
44810
|
|
|
45071
|
-
|
|
44811
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (resolvePathname);
|
|
45072
44812
|
|
|
45073
44813
|
|
|
45074
44814
|
/***/ }),
|
|
@@ -45846,4 +45586,4 @@ var instance = (0,piral_core__WEBPACK_IMPORTED_MODULE_2__.createInstance)({
|
|
|
45846
45586
|
|
|
45847
45587
|
/******/ })()
|
|
45848
45588
|
;
|
|
45849
|
-
//# sourceMappingURL=index.
|
|
45589
|
+
//# sourceMappingURL=index.53636e.js.map
|