@readme/markdown 6.40.0 β†’ 6.42.0

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/dist/main.js CHANGED
@@ -7,7 +7,7 @@
7
7
  var a = typeof exports === 'object' ? factory(require("@readme/variable"), require("react")) : factory(root["@readme/variable"], root["React"]);
8
8
  for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
9
  }
10
- })(self, function(__WEBPACK_EXTERNAL_MODULE__3689__, __WEBPACK_EXTERNAL_MODULE__4466__) {
10
+ })(self, (__WEBPACK_EXTERNAL_MODULE__3689__, __WEBPACK_EXTERNAL_MODULE__4466__) => {
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
@@ -2020,6 +2020,8 @@ module.exports = ErrorReportingPreprocessorMixin;
2020
2020
  "use strict";
2021
2021
 
2022
2022
 
2023
+ var _createClass = __webpack_require__(3913);
2024
+
2023
2025
  var _classCallCheck = __webpack_require__(4575);
2024
2026
 
2025
2027
  var _inherits = __webpack_require__(2205);
@@ -2054,7 +2056,7 @@ var ErrorReportingTokenizerMixin = /*#__PURE__*/function (_ErrorReportingMixinB)
2054
2056
  return _this;
2055
2057
  }
2056
2058
 
2057
- return ErrorReportingTokenizerMixin;
2059
+ return _createClass(ErrorReportingTokenizerMixin);
2058
2060
  }(ErrorReportingMixinBase);
2059
2061
 
2060
2062
  module.exports = ErrorReportingTokenizerMixin;
@@ -10153,16 +10155,16 @@ module.exports = TableOfContents;
10153
10155
  "use strict";
10154
10156
  __webpack_require__.r(__webpack_exports__);
10155
10157
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10156
- /* harmony export */ "GlossaryItem": () => (/* reexport default from dynamic */ _GlossaryItem__WEBPACK_IMPORTED_MODULE_0___default.a),
10157
- /* harmony export */ "Code": () => (/* reexport default from dynamic */ _Code__WEBPACK_IMPORTED_MODULE_1___default.a),
10158
- /* harmony export */ "Table": () => (/* reexport default from dynamic */ _Table__WEBPACK_IMPORTED_MODULE_2___default.a),
10159
10158
  /* harmony export */ "Anchor": () => (/* reexport default from dynamic */ _Anchor__WEBPACK_IMPORTED_MODULE_3___default.a),
10160
- /* harmony export */ "Heading": () => (/* reexport default from dynamic */ _Heading__WEBPACK_IMPORTED_MODULE_4___default.a),
10161
10159
  /* harmony export */ "Callout": () => (/* reexport default from dynamic */ _Callout__WEBPACK_IMPORTED_MODULE_5___default.a),
10160
+ /* harmony export */ "Code": () => (/* reexport default from dynamic */ _Code__WEBPACK_IMPORTED_MODULE_1___default.a),
10162
10161
  /* harmony export */ "CodeTabs": () => (/* reexport default from dynamic */ _CodeTabs__WEBPACK_IMPORTED_MODULE_6___default.a),
10163
- /* harmony export */ "Image": () => (/* reexport default from dynamic */ _Image__WEBPACK_IMPORTED_MODULE_7___default.a),
10164
10162
  /* harmony export */ "Embed": () => (/* reexport default from dynamic */ _Embed__WEBPACK_IMPORTED_MODULE_8___default.a),
10163
+ /* harmony export */ "GlossaryItem": () => (/* reexport default from dynamic */ _GlossaryItem__WEBPACK_IMPORTED_MODULE_0___default.a),
10165
10164
  /* harmony export */ "HTMLBlock": () => (/* reexport default from dynamic */ _HTMLBlock__WEBPACK_IMPORTED_MODULE_9___default.a),
10165
+ /* harmony export */ "Heading": () => (/* reexport default from dynamic */ _Heading__WEBPACK_IMPORTED_MODULE_4___default.a),
10166
+ /* harmony export */ "Image": () => (/* reexport default from dynamic */ _Image__WEBPACK_IMPORTED_MODULE_7___default.a),
10167
+ /* harmony export */ "Table": () => (/* reexport default from dynamic */ _Table__WEBPACK_IMPORTED_MODULE_2___default.a),
10166
10168
  /* harmony export */ "TableOfContents": () => (/* reexport default from dynamic */ _TableOfContents__WEBPACK_IMPORTED_MODULE_10___default.a)
10167
10169
  /* harmony export */ });
10168
10170
  /* harmony import */ var _GlossaryItem__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6566);
@@ -26282,6 +26284,7 @@ var _typeof = __webpack_require__(8);
26282
26284
  e.isRequired = e;
26283
26285
  var r = {
26284
26286
  array: e,
26287
+ bigint: e,
26285
26288
  bool: e,
26286
26289
  func: e,
26287
26290
  number: e,
@@ -27857,9 +27860,9 @@ __webpack_require__.r(__webpack_exports__);
27857
27860
  /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4942);
27858
27861
 
27859
27862
 
27860
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
27863
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27861
27864
 
27862
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
27865
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
27863
27866
 
27864
27867
  var options = {
27865
27868
  compatibilityMode: false,
@@ -28006,9 +28009,9 @@ module.exports = function DivCompiler() {
28006
28009
 
28007
28010
  var _defineProperty = __webpack_require__(9713);
28008
28011
 
28009
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
28012
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
28010
28013
 
28011
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
28014
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
28012
28015
 
28013
28016
  function EmbedCompiler(node) {
28014
28017
  var data = node.data.hProperties;
@@ -28049,9 +28052,9 @@ var _slicedToArray = __webpack_require__(3038);
28049
28052
 
28050
28053
  var _defineProperty = __webpack_require__(9713);
28051
28054
 
28052
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
28055
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
28053
28056
 
28054
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
28057
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
28055
28058
 
28056
28059
  var _require = __webpack_require__(7589),
28057
28060
  imgSizeByWidth = _require.imgSizeByWidth;
@@ -28185,7 +28188,8 @@ __webpack_require__.r(__webpack_exports__);
28185
28188
  /* harmony export */ "rdmePinCompiler": () => (/* reexport default from dynamic */ _pin__WEBPACK_IMPORTED_MODULE_11___default.a),
28186
28189
  /* harmony export */ "rdmeVarCompiler": () => (/* reexport default from dynamic */ _var__WEBPACK_IMPORTED_MODULE_12___default.a),
28187
28190
  /* harmony export */ "tableCompiler": () => (/* reexport default from dynamic */ _table__WEBPACK_IMPORTED_MODULE_13___default.a),
28188
- /* harmony export */ "tableHeadCompiler": () => (/* reexport default from dynamic */ _table_head__WEBPACK_IMPORTED_MODULE_14___default.a)
28191
+ /* harmony export */ "tableHeadCompiler": () => (/* reexport default from dynamic */ _table_head__WEBPACK_IMPORTED_MODULE_14___default.a),
28192
+ /* harmony export */ "yamlCompiler": () => (/* reexport default from dynamic */ _yaml__WEBPACK_IMPORTED_MODULE_15___default.a)
28189
28193
  /* harmony export */ });
28190
28194
  /* harmony import */ var _break__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3688);
28191
28195
  /* harmony import */ var _break__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_break__WEBPACK_IMPORTED_MODULE_0__);
@@ -28217,6 +28221,9 @@ __webpack_require__.r(__webpack_exports__);
28217
28221
  /* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_table__WEBPACK_IMPORTED_MODULE_13__);
28218
28222
  /* harmony import */ var _table_head__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(186);
28219
28223
  /* harmony import */ var _table_head__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_table_head__WEBPACK_IMPORTED_MODULE_14__);
28224
+ /* harmony import */ var _yaml__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(1773);
28225
+ /* harmony import */ var _yaml__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_yaml__WEBPACK_IMPORTED_MODULE_15__);
28226
+
28220
28227
 
28221
28228
 
28222
28229
 
@@ -28329,6 +28336,20 @@ module.exports = function RdmeVarCompiler() {
28329
28336
 
28330
28337
  /***/ }),
28331
28338
 
28339
+ /***/ 1773:
28340
+ /***/ ((module) => {
28341
+
28342
+ module.exports = function YamlCompiler() {
28343
+ var Compiler = this.Compiler;
28344
+ var visitors = Compiler.prototype.visitors;
28345
+
28346
+ visitors.yaml = function compile(node) {
28347
+ return "---\n".concat(node.value, "\n---");
28348
+ };
28349
+ };
28350
+
28351
+ /***/ }),
28352
+
28332
28353
  /***/ 8399:
28333
28354
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
28334
28355
 
@@ -28471,11 +28492,11 @@ var _setPrototypeOf = __webpack_require__(9489);
28471
28492
 
28472
28493
  var _slicedToArray = __webpack_require__(3038);
28473
28494
 
28474
- function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(re, groups) { return new BabelRegExp(re, undefined, groups); }; var _super = RegExp.prototype; var _groups = new WeakMap(); function BabelRegExp(re, flags, groups) { var _this = new RegExp(re, flags); _groups.set(_this, groups || _groups.get(re)); return _setPrototypeOf(_this, BabelRegExp.prototype); } _inherits(BabelRegExp, RegExp); BabelRegExp.prototype.exec = function (str) { var result = _super.exec.call(this, str); if (result) result.groups = buildGroups(result, this); return result; }; BabelRegExp.prototype[Symbol.replace] = function (str, substitution) { if (typeof substitution === "string") { var groups = _groups.get(this); return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) { return "$" + groups[name]; })); } else if (typeof substitution === "function") { var _this = this; return _super[Symbol.replace].call(this, str, function () { var args = arguments; if (_typeof(args[args.length - 1]) !== "object") { args = [].slice.call(args); args.push(buildGroups(args, _this)); } return substitution.apply(this, args); }); } else { return _super[Symbol.replace].call(this, str, substitution); } }; function buildGroups(result, re) { var g = _groups.get(re); return Object.keys(g).reduce(function (groups, name) { groups[name] = result[g[name]]; return groups; }, Object.create(null)); } return _wrapRegExp.apply(this, arguments); }
28495
+ function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(re, groups) { return new BabelRegExp(re, void 0, groups); }; var _super = RegExp.prototype, _groups = new WeakMap(); function BabelRegExp(re, flags, groups) { var _this = new RegExp(re, flags); return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype); } function buildGroups(result, re) { var g = _groups.get(re); return Object.keys(g).reduce(function (groups, name) { return groups[name] = result[g[name]], groups; }, Object.create(null)); } return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) { var result = _super.exec.call(this, str); return result && (result.groups = buildGroups(result, this)), result; }, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) { if ("string" == typeof substitution) { var groups = _groups.get(this); return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) { return "$" + groups[name]; })); } if ("function" == typeof substitution) { var _this = this; return _super[Symbol.replace].call(this, str, function () { var args = arguments; return "object" != _typeof(args[args.length - 1]) && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args); }); } return _super[Symbol.replace].call(this, str, substitution); }, _wrapRegExp.apply(this, arguments); }
28475
28496
 
28476
28497
  function tokenizer(eat, value) {
28477
28498
  // eslint-disable-next-line unicorn/no-unsafe-regex
28478
- var TAB_BLOCK_RGXP = /^(?:(?:^|\n)```(?:(?!\n```)[\s\S])*\n```(?:(?![\0-\x08\n\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uFEFE\uFF00-\uFFFF])[\s\S])*){2,}/g;
28499
+ var TAB_BLOCK_RGXP = /^(?:(?:^|\n)```(?:(?!\n```)[\s\S])*\n```[^\S\n]*){2,}/g;
28479
28500
 
28480
28501
  var _ref = TAB_BLOCK_RGXP.exec(value) || [],
28481
28502
  _ref2 = _slicedToArray(_ref, 1),
@@ -28492,7 +28513,7 @@ function tokenizer(eat, value) {
28492
28513
  */
28493
28514
  // eslint-disable-next-line unicorn/no-unsafe-regex
28494
28515
 
28495
- var CODE_BLOCK_RGXP = /*#__PURE__*/_wrapRegExp(/(?:^|\n)```[\t ]*((?:(?![\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF])[\s\S])+)?(?: *((?:(?!\n)[\s\S])+))?(((?!\n```)[\s\S])*)?\n```/g, {
28516
+ var CODE_BLOCK_RGXP = /*#__PURE__*/_wrapRegExp(/(?:^|\n)```[ \t]*([^\s]+)?(?: *([^\n]+))?(((?!\n```)[\s\S])*)?\n```/g, {
28496
28517
  lang: 1,
28497
28518
  meta: 2,
28498
28519
  code: 3
@@ -28801,11 +28822,21 @@ var _defineProperty = __webpack_require__(9713);
28801
28822
 
28802
28823
  var _slicedToArray = __webpack_require__(3038);
28803
28824
 
28804
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
28825
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
28805
28826
 
28806
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
28827
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
28807
28828
 
28808
28829
  /* eslint-disable consistent-return */
28830
+ var unified = __webpack_require__(8835);
28831
+
28832
+ var rehypeParse = __webpack_require__(3322);
28833
+
28834
+ var rehypeSanitize = __webpack_require__(1667);
28835
+
28836
+ var rehypeStringify = __webpack_require__(7532);
28837
+
28838
+ var globalSanitizeSchema = __webpack_require__(8229);
28839
+
28809
28840
  var RGXP = /^\[block:(.*)\]([^]+?)\[\/block\]/;
28810
28841
  var compatibilityMode;
28811
28842
 
@@ -28836,6 +28867,13 @@ var imgSizeByWidth = new Proxy(new Map(Array.from(imgSizeValues).reverse()), {
28836
28867
  return match ? match[1] : width in sizes ? sizes[width] : width;
28837
28868
  }
28838
28869
  });
28870
+ var processor = unified().use(rehypeParse, {
28871
+ fragment: true
28872
+ }).use(rehypeSanitize, globalSanitizeSchema).use(rehypeStringify);
28873
+
28874
+ var sanitize = function sanitize(html) {
28875
+ return processor.processSync(html).toString();
28876
+ };
28839
28877
 
28840
28878
  function tokenize(eat, value) {
28841
28879
  var _this = this;
@@ -29083,7 +29121,7 @@ function tokenize(eat, value) {
29083
29121
  data: {
29084
29122
  hName: 'html-block',
29085
29123
  hProperties: {
29086
- html: json.html,
29124
+ html: sanitize(json.html),
29087
29125
  runScripts: compatibilityMode
29088
29126
  }
29089
29127
  }
@@ -29286,9 +29324,9 @@ var _defineProperty = __webpack_require__(9713);
29286
29324
 
29287
29325
  var _slicedToArray = __webpack_require__(3038);
29288
29326
 
29289
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
29327
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
29290
29328
 
29291
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
29329
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
29292
29330
 
29293
29331
  var flatMap = __webpack_require__(5885);
29294
29332
 
@@ -31298,54 +31336,134 @@ function ok() {
31298
31336
 
31299
31337
  /***/ }),
31300
31338
 
31301
- /***/ 8909:
31339
+ /***/ 3216:
31302
31340
  /***/ ((module) => {
31303
31341
 
31304
31342
  "use strict";
31305
31343
 
31306
31344
 
31307
- module.exports = isElement
31345
+ module.exports = convert
31308
31346
 
31309
- // Check if if `node` is an `element` and, if `tagNames` is given, `node`
31310
- // matches them `tagNames`.
31311
- function isElement(node, tagNames) {
31312
- var name
31347
+ function convert(test) {
31348
+ if (typeof test === 'string') {
31349
+ return tagNameFactory(test)
31350
+ }
31313
31351
 
31314
- if (
31315
- !(
31316
- tagNames === null ||
31317
- tagNames === undefined ||
31318
- typeof tagNames === 'string' ||
31319
- (typeof tagNames === 'object' && tagNames.length !== 0)
31320
- )
31321
- ) {
31322
- throw new Error(
31323
- 'Expected `string` or `Array.<string>` for `tagNames`, not `' +
31324
- tagNames +
31325
- '`'
31326
- )
31352
+ if (test === null || test === undefined) {
31353
+ return element
31354
+ }
31355
+
31356
+ if (typeof test === 'object') {
31357
+ return any(test)
31358
+ }
31359
+
31360
+ if (typeof test === 'function') {
31361
+ return callFactory(test)
31362
+ }
31363
+
31364
+ throw new Error('Expected function, string, or array as test')
31365
+ }
31366
+
31367
+ function convertAll(tests) {
31368
+ var length = tests.length
31369
+ var index = -1
31370
+ var results = []
31371
+
31372
+ while (++index < length) {
31373
+ results[index] = convert(tests[index])
31374
+ }
31375
+
31376
+ return results
31377
+ }
31378
+
31379
+ function any(tests) {
31380
+ var checks = convertAll(tests)
31381
+ var length = checks.length
31382
+
31383
+ return matches
31384
+
31385
+ function matches() {
31386
+ var index = -1
31387
+
31388
+ while (++index < length) {
31389
+ if (checks[index].apply(this, arguments)) {
31390
+ return true
31391
+ }
31392
+ }
31393
+
31394
+ return false
31327
31395
  }
31396
+ }
31397
+
31398
+ // Utility to convert a string a tag name check.
31399
+ function tagNameFactory(test) {
31400
+ return tagName
31401
+
31402
+ function tagName(node) {
31403
+ return element(node) && node.tagName === test
31404
+ }
31405
+ }
31406
+
31407
+ // Utility to convert a function check.
31408
+ function callFactory(test) {
31409
+ return call
31410
+
31411
+ function call(node) {
31412
+ return element(node) && Boolean(test.apply(this, arguments))
31413
+ }
31414
+ }
31415
+
31416
+ // Utility to return true if this is an element.
31417
+ function element(node) {
31418
+ return (
31419
+ node &&
31420
+ typeof node === 'object' &&
31421
+ node.type === 'element' &&
31422
+ typeof node.tagName === 'string'
31423
+ )
31424
+ }
31425
+
31426
+
31427
+ /***/ }),
31428
+
31429
+ /***/ 8909:
31430
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
31431
+
31432
+ "use strict";
31433
+
31434
+
31435
+ var convert = __webpack_require__(3216)
31436
+
31437
+ module.exports = isElement
31438
+
31439
+ isElement.convert = convert
31440
+
31441
+ // Check if if `node` is an `element` and whether it passes the given test.
31442
+ function isElement(node, test, index, parent, context) {
31443
+ var hasParent = parent !== null && parent !== undefined
31444
+ var hasIndex = index !== null && index !== undefined
31445
+ var check = convert(test)
31328
31446
 
31329
31447
  if (
31330
- !node ||
31331
- typeof node !== 'object' ||
31332
- node.type !== 'element' ||
31333
- typeof node.tagName !== 'string'
31448
+ hasIndex &&
31449
+ (typeof index !== 'number' || index < 0 || index === Infinity)
31334
31450
  ) {
31335
- return false
31451
+ throw new Error('Expected positive finite index for child node')
31336
31452
  }
31337
31453
 
31338
- if (tagNames === null || tagNames === undefined) {
31339
- return true
31454
+ if (hasParent && (!parent.type || !parent.children)) {
31455
+ throw new Error('Expected parent node')
31340
31456
  }
31341
31457
 
31342
- name = node.tagName
31458
+ if (!node || !node.type || typeof node.type !== 'string') {
31459
+ return false
31460
+ }
31343
31461
 
31344
- if (typeof tagNames === 'string') {
31345
- return name === tagNames
31462
+ if (hasParent !== hasIndex) {
31463
+ throw new Error('Expected both parent and index')
31346
31464
  }
31347
31465
 
31348
- return tagNames.indexOf(name) !== -1
31466
+ return check.call(context, node, index, parent)
31349
31467
  }
31350
31468
 
31351
31469
 
@@ -36723,543 +36841,6 @@ function disallowed(code) {
36723
36841
  }
36724
36842
 
36725
36843
 
36726
- /***/ }),
36727
-
36728
- /***/ 6470:
36729
- /***/ ((module) => {
36730
-
36731
- "use strict";
36732
- // 'path' module extracted from Node.js v8.11.1 (only the posix part)
36733
- // transplited with Babel
36734
-
36735
- // Copyright Joyent, Inc. and other Node contributors.
36736
- //
36737
- // Permission is hereby granted, free of charge, to any person obtaining a
36738
- // copy of this software and associated documentation files (the
36739
- // "Software"), to deal in the Software without restriction, including
36740
- // without limitation the rights to use, copy, modify, merge, publish,
36741
- // distribute, sublicense, and/or sell copies of the Software, and to permit
36742
- // persons to whom the Software is furnished to do so, subject to the
36743
- // following conditions:
36744
- //
36745
- // The above copyright notice and this permission notice shall be included
36746
- // in all copies or substantial portions of the Software.
36747
- //
36748
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
36749
- // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
36750
- // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
36751
- // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
36752
- // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
36753
- // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
36754
- // USE OR OTHER DEALINGS IN THE SOFTWARE.
36755
-
36756
-
36757
-
36758
- function assertPath(path) {
36759
- if (typeof path !== 'string') {
36760
- throw new TypeError('Path must be a string. Received ' + JSON.stringify(path));
36761
- }
36762
- }
36763
-
36764
- // Resolves . and .. elements in a path with directory names
36765
- function normalizeStringPosix(path, allowAboveRoot) {
36766
- var res = '';
36767
- var lastSegmentLength = 0;
36768
- var lastSlash = -1;
36769
- var dots = 0;
36770
- var code;
36771
- for (var i = 0; i <= path.length; ++i) {
36772
- if (i < path.length)
36773
- code = path.charCodeAt(i);
36774
- else if (code === 47 /*/*/)
36775
- break;
36776
- else
36777
- code = 47 /*/*/;
36778
- if (code === 47 /*/*/) {
36779
- if (lastSlash === i - 1 || dots === 1) {
36780
- // NOOP
36781
- } else if (lastSlash !== i - 1 && dots === 2) {
36782
- if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== 46 /*.*/ || res.charCodeAt(res.length - 2) !== 46 /*.*/) {
36783
- if (res.length > 2) {
36784
- var lastSlashIndex = res.lastIndexOf('/');
36785
- if (lastSlashIndex !== res.length - 1) {
36786
- if (lastSlashIndex === -1) {
36787
- res = '';
36788
- lastSegmentLength = 0;
36789
- } else {
36790
- res = res.slice(0, lastSlashIndex);
36791
- lastSegmentLength = res.length - 1 - res.lastIndexOf('/');
36792
- }
36793
- lastSlash = i;
36794
- dots = 0;
36795
- continue;
36796
- }
36797
- } else if (res.length === 2 || res.length === 1) {
36798
- res = '';
36799
- lastSegmentLength = 0;
36800
- lastSlash = i;
36801
- dots = 0;
36802
- continue;
36803
- }
36804
- }
36805
- if (allowAboveRoot) {
36806
- if (res.length > 0)
36807
- res += '/..';
36808
- else
36809
- res = '..';
36810
- lastSegmentLength = 2;
36811
- }
36812
- } else {
36813
- if (res.length > 0)
36814
- res += '/' + path.slice(lastSlash + 1, i);
36815
- else
36816
- res = path.slice(lastSlash + 1, i);
36817
- lastSegmentLength = i - lastSlash - 1;
36818
- }
36819
- lastSlash = i;
36820
- dots = 0;
36821
- } else if (code === 46 /*.*/ && dots !== -1) {
36822
- ++dots;
36823
- } else {
36824
- dots = -1;
36825
- }
36826
- }
36827
- return res;
36828
- }
36829
-
36830
- function _format(sep, pathObject) {
36831
- var dir = pathObject.dir || pathObject.root;
36832
- var base = pathObject.base || (pathObject.name || '') + (pathObject.ext || '');
36833
- if (!dir) {
36834
- return base;
36835
- }
36836
- if (dir === pathObject.root) {
36837
- return dir + base;
36838
- }
36839
- return dir + sep + base;
36840
- }
36841
-
36842
- var posix = {
36843
- // path.resolve([from ...], to)
36844
- resolve: function resolve() {
36845
- var resolvedPath = '';
36846
- var resolvedAbsolute = false;
36847
- var cwd;
36848
-
36849
- for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
36850
- var path;
36851
- if (i >= 0)
36852
- path = arguments[i];
36853
- else {
36854
- if (cwd === undefined)
36855
- cwd = process.cwd();
36856
- path = cwd;
36857
- }
36858
-
36859
- assertPath(path);
36860
-
36861
- // Skip empty entries
36862
- if (path.length === 0) {
36863
- continue;
36864
- }
36865
-
36866
- resolvedPath = path + '/' + resolvedPath;
36867
- resolvedAbsolute = path.charCodeAt(0) === 47 /*/*/;
36868
- }
36869
-
36870
- // At this point the path should be resolved to a full absolute path, but
36871
- // handle relative paths to be safe (might happen when process.cwd() fails)
36872
-
36873
- // Normalize the path
36874
- resolvedPath = normalizeStringPosix(resolvedPath, !resolvedAbsolute);
36875
-
36876
- if (resolvedAbsolute) {
36877
- if (resolvedPath.length > 0)
36878
- return '/' + resolvedPath;
36879
- else
36880
- return '/';
36881
- } else if (resolvedPath.length > 0) {
36882
- return resolvedPath;
36883
- } else {
36884
- return '.';
36885
- }
36886
- },
36887
-
36888
- normalize: function normalize(path) {
36889
- assertPath(path);
36890
-
36891
- if (path.length === 0) return '.';
36892
-
36893
- var isAbsolute = path.charCodeAt(0) === 47 /*/*/;
36894
- var trailingSeparator = path.charCodeAt(path.length - 1) === 47 /*/*/;
36895
-
36896
- // Normalize the path
36897
- path = normalizeStringPosix(path, !isAbsolute);
36898
-
36899
- if (path.length === 0 && !isAbsolute) path = '.';
36900
- if (path.length > 0 && trailingSeparator) path += '/';
36901
-
36902
- if (isAbsolute) return '/' + path;
36903
- return path;
36904
- },
36905
-
36906
- isAbsolute: function isAbsolute(path) {
36907
- assertPath(path);
36908
- return path.length > 0 && path.charCodeAt(0) === 47 /*/*/;
36909
- },
36910
-
36911
- join: function join() {
36912
- if (arguments.length === 0)
36913
- return '.';
36914
- var joined;
36915
- for (var i = 0; i < arguments.length; ++i) {
36916
- var arg = arguments[i];
36917
- assertPath(arg);
36918
- if (arg.length > 0) {
36919
- if (joined === undefined)
36920
- joined = arg;
36921
- else
36922
- joined += '/' + arg;
36923
- }
36924
- }
36925
- if (joined === undefined)
36926
- return '.';
36927
- return posix.normalize(joined);
36928
- },
36929
-
36930
- relative: function relative(from, to) {
36931
- assertPath(from);
36932
- assertPath(to);
36933
-
36934
- if (from === to) return '';
36935
-
36936
- from = posix.resolve(from);
36937
- to = posix.resolve(to);
36938
-
36939
- if (from === to) return '';
36940
-
36941
- // Trim any leading backslashes
36942
- var fromStart = 1;
36943
- for (; fromStart < from.length; ++fromStart) {
36944
- if (from.charCodeAt(fromStart) !== 47 /*/*/)
36945
- break;
36946
- }
36947
- var fromEnd = from.length;
36948
- var fromLen = fromEnd - fromStart;
36949
-
36950
- // Trim any leading backslashes
36951
- var toStart = 1;
36952
- for (; toStart < to.length; ++toStart) {
36953
- if (to.charCodeAt(toStart) !== 47 /*/*/)
36954
- break;
36955
- }
36956
- var toEnd = to.length;
36957
- var toLen = toEnd - toStart;
36958
-
36959
- // Compare paths to find the longest common path from root
36960
- var length = fromLen < toLen ? fromLen : toLen;
36961
- var lastCommonSep = -1;
36962
- var i = 0;
36963
- for (; i <= length; ++i) {
36964
- if (i === length) {
36965
- if (toLen > length) {
36966
- if (to.charCodeAt(toStart + i) === 47 /*/*/) {
36967
- // We get here if `from` is the exact base path for `to`.
36968
- // For example: from='/foo/bar'; to='/foo/bar/baz'
36969
- return to.slice(toStart + i + 1);
36970
- } else if (i === 0) {
36971
- // We get here if `from` is the root
36972
- // For example: from='/'; to='/foo'
36973
- return to.slice(toStart + i);
36974
- }
36975
- } else if (fromLen > length) {
36976
- if (from.charCodeAt(fromStart + i) === 47 /*/*/) {
36977
- // We get here if `to` is the exact base path for `from`.
36978
- // For example: from='/foo/bar/baz'; to='/foo/bar'
36979
- lastCommonSep = i;
36980
- } else if (i === 0) {
36981
- // We get here if `to` is the root.
36982
- // For example: from='/foo'; to='/'
36983
- lastCommonSep = 0;
36984
- }
36985
- }
36986
- break;
36987
- }
36988
- var fromCode = from.charCodeAt(fromStart + i);
36989
- var toCode = to.charCodeAt(toStart + i);
36990
- if (fromCode !== toCode)
36991
- break;
36992
- else if (fromCode === 47 /*/*/)
36993
- lastCommonSep = i;
36994
- }
36995
-
36996
- var out = '';
36997
- // Generate the relative path based on the path difference between `to`
36998
- // and `from`
36999
- for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {
37000
- if (i === fromEnd || from.charCodeAt(i) === 47 /*/*/) {
37001
- if (out.length === 0)
37002
- out += '..';
37003
- else
37004
- out += '/..';
37005
- }
37006
- }
37007
-
37008
- // Lastly, append the rest of the destination (`to`) path that comes after
37009
- // the common path parts
37010
- if (out.length > 0)
37011
- return out + to.slice(toStart + lastCommonSep);
37012
- else {
37013
- toStart += lastCommonSep;
37014
- if (to.charCodeAt(toStart) === 47 /*/*/)
37015
- ++toStart;
37016
- return to.slice(toStart);
37017
- }
37018
- },
37019
-
37020
- _makeLong: function _makeLong(path) {
37021
- return path;
37022
- },
37023
-
37024
- dirname: function dirname(path) {
37025
- assertPath(path);
37026
- if (path.length === 0) return '.';
37027
- var code = path.charCodeAt(0);
37028
- var hasRoot = code === 47 /*/*/;
37029
- var end = -1;
37030
- var matchedSlash = true;
37031
- for (var i = path.length - 1; i >= 1; --i) {
37032
- code = path.charCodeAt(i);
37033
- if (code === 47 /*/*/) {
37034
- if (!matchedSlash) {
37035
- end = i;
37036
- break;
37037
- }
37038
- } else {
37039
- // We saw the first non-path separator
37040
- matchedSlash = false;
37041
- }
37042
- }
37043
-
37044
- if (end === -1) return hasRoot ? '/' : '.';
37045
- if (hasRoot && end === 1) return '//';
37046
- return path.slice(0, end);
37047
- },
37048
-
37049
- basename: function basename(path, ext) {
37050
- if (ext !== undefined && typeof ext !== 'string') throw new TypeError('"ext" argument must be a string');
37051
- assertPath(path);
37052
-
37053
- var start = 0;
37054
- var end = -1;
37055
- var matchedSlash = true;
37056
- var i;
37057
-
37058
- if (ext !== undefined && ext.length > 0 && ext.length <= path.length) {
37059
- if (ext.length === path.length && ext === path) return '';
37060
- var extIdx = ext.length - 1;
37061
- var firstNonSlashEnd = -1;
37062
- for (i = path.length - 1; i >= 0; --i) {
37063
- var code = path.charCodeAt(i);
37064
- if (code === 47 /*/*/) {
37065
- // If we reached a path separator that was not part of a set of path
37066
- // separators at the end of the string, stop now
37067
- if (!matchedSlash) {
37068
- start = i + 1;
37069
- break;
37070
- }
37071
- } else {
37072
- if (firstNonSlashEnd === -1) {
37073
- // We saw the first non-path separator, remember this index in case
37074
- // we need it if the extension ends up not matching
37075
- matchedSlash = false;
37076
- firstNonSlashEnd = i + 1;
37077
- }
37078
- if (extIdx >= 0) {
37079
- // Try to match the explicit extension
37080
- if (code === ext.charCodeAt(extIdx)) {
37081
- if (--extIdx === -1) {
37082
- // We matched the extension, so mark this as the end of our path
37083
- // component
37084
- end = i;
37085
- }
37086
- } else {
37087
- // Extension does not match, so our result is the entire path
37088
- // component
37089
- extIdx = -1;
37090
- end = firstNonSlashEnd;
37091
- }
37092
- }
37093
- }
37094
- }
37095
-
37096
- if (start === end) end = firstNonSlashEnd;else if (end === -1) end = path.length;
37097
- return path.slice(start, end);
37098
- } else {
37099
- for (i = path.length - 1; i >= 0; --i) {
37100
- if (path.charCodeAt(i) === 47 /*/*/) {
37101
- // If we reached a path separator that was not part of a set of path
37102
- // separators at the end of the string, stop now
37103
- if (!matchedSlash) {
37104
- start = i + 1;
37105
- break;
37106
- }
37107
- } else if (end === -1) {
37108
- // We saw the first non-path separator, mark this as the end of our
37109
- // path component
37110
- matchedSlash = false;
37111
- end = i + 1;
37112
- }
37113
- }
37114
-
37115
- if (end === -1) return '';
37116
- return path.slice(start, end);
37117
- }
37118
- },
37119
-
37120
- extname: function extname(path) {
37121
- assertPath(path);
37122
- var startDot = -1;
37123
- var startPart = 0;
37124
- var end = -1;
37125
- var matchedSlash = true;
37126
- // Track the state of characters (if any) we see before our first dot and
37127
- // after any path separator we find
37128
- var preDotState = 0;
37129
- for (var i = path.length - 1; i >= 0; --i) {
37130
- var code = path.charCodeAt(i);
37131
- if (code === 47 /*/*/) {
37132
- // If we reached a path separator that was not part of a set of path
37133
- // separators at the end of the string, stop now
37134
- if (!matchedSlash) {
37135
- startPart = i + 1;
37136
- break;
37137
- }
37138
- continue;
37139
- }
37140
- if (end === -1) {
37141
- // We saw the first non-path separator, mark this as the end of our
37142
- // extension
37143
- matchedSlash = false;
37144
- end = i + 1;
37145
- }
37146
- if (code === 46 /*.*/) {
37147
- // If this is our first dot, mark it as the start of our extension
37148
- if (startDot === -1)
37149
- startDot = i;
37150
- else if (preDotState !== 1)
37151
- preDotState = 1;
37152
- } else if (startDot !== -1) {
37153
- // We saw a non-dot and non-path separator before our dot, so we should
37154
- // have a good chance at having a non-empty extension
37155
- preDotState = -1;
37156
- }
37157
- }
37158
-
37159
- if (startDot === -1 || end === -1 ||
37160
- // We saw a non-dot character immediately before the dot
37161
- preDotState === 0 ||
37162
- // The (right-most) trimmed path component is exactly '..'
37163
- preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
37164
- return '';
37165
- }
37166
- return path.slice(startDot, end);
37167
- },
37168
-
37169
- format: function format(pathObject) {
37170
- if (pathObject === null || typeof pathObject !== 'object') {
37171
- throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof pathObject);
37172
- }
37173
- return _format('/', pathObject);
37174
- },
37175
-
37176
- parse: function parse(path) {
37177
- assertPath(path);
37178
-
37179
- var ret = { root: '', dir: '', base: '', ext: '', name: '' };
37180
- if (path.length === 0) return ret;
37181
- var code = path.charCodeAt(0);
37182
- var isAbsolute = code === 47 /*/*/;
37183
- var start;
37184
- if (isAbsolute) {
37185
- ret.root = '/';
37186
- start = 1;
37187
- } else {
37188
- start = 0;
37189
- }
37190
- var startDot = -1;
37191
- var startPart = 0;
37192
- var end = -1;
37193
- var matchedSlash = true;
37194
- var i = path.length - 1;
37195
-
37196
- // Track the state of characters (if any) we see before our first dot and
37197
- // after any path separator we find
37198
- var preDotState = 0;
37199
-
37200
- // Get non-dir info
37201
- for (; i >= start; --i) {
37202
- code = path.charCodeAt(i);
37203
- if (code === 47 /*/*/) {
37204
- // If we reached a path separator that was not part of a set of path
37205
- // separators at the end of the string, stop now
37206
- if (!matchedSlash) {
37207
- startPart = i + 1;
37208
- break;
37209
- }
37210
- continue;
37211
- }
37212
- if (end === -1) {
37213
- // We saw the first non-path separator, mark this as the end of our
37214
- // extension
37215
- matchedSlash = false;
37216
- end = i + 1;
37217
- }
37218
- if (code === 46 /*.*/) {
37219
- // If this is our first dot, mark it as the start of our extension
37220
- if (startDot === -1) startDot = i;else if (preDotState !== 1) preDotState = 1;
37221
- } else if (startDot !== -1) {
37222
- // We saw a non-dot and non-path separator before our dot, so we should
37223
- // have a good chance at having a non-empty extension
37224
- preDotState = -1;
37225
- }
37226
- }
37227
-
37228
- if (startDot === -1 || end === -1 ||
37229
- // We saw a non-dot character immediately before the dot
37230
- preDotState === 0 ||
37231
- // The (right-most) trimmed path component is exactly '..'
37232
- preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
37233
- if (end !== -1) {
37234
- if (startPart === 0 && isAbsolute) ret.base = ret.name = path.slice(1, end);else ret.base = ret.name = path.slice(startPart, end);
37235
- }
37236
- } else {
37237
- if (startPart === 0 && isAbsolute) {
37238
- ret.name = path.slice(1, startDot);
37239
- ret.base = path.slice(1, end);
37240
- } else {
37241
- ret.name = path.slice(startPart, startDot);
37242
- ret.base = path.slice(startPart, end);
37243
- }
37244
- ret.ext = path.slice(startDot, end);
37245
- }
37246
-
37247
- if (startPart > 0) ret.dir = path.slice(0, startPart - 1);else if (isAbsolute) ret.dir = '/';
37248
-
37249
- return ret;
37250
- },
37251
-
37252
- sep: '/',
37253
- delimiter: ':',
37254
- win32: null,
37255
- posix: null
37256
- };
37257
-
37258
- posix.posix = posix;
37259
-
37260
- module.exports = posix;
37261
-
37262
-
37263
36844
  /***/ }),
37264
36845
 
37265
36846
  /***/ 2703:
@@ -38783,6 +38364,104 @@ var svg = __webpack_require__(5789)
38783
38364
  module.exports = merge([xml, xlink, xmlns, aria, svg])
38784
38365
 
38785
38366
 
38367
+ /***/ }),
38368
+
38369
+ /***/ 3322:
38370
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
38371
+
38372
+ "use strict";
38373
+
38374
+
38375
+ var fromParse5 = __webpack_require__(7721)
38376
+ var Parser5 = __webpack_require__(6425)
38377
+ var errors = __webpack_require__(2471)
38378
+
38379
+ var base = 'https://html.spec.whatwg.org/multipage/parsing.html#parse-error-'
38380
+
38381
+ var fatalities = {2: true, 1: false, 0: null}
38382
+
38383
+ module.exports = parse
38384
+
38385
+ function parse(options) {
38386
+ var settings = Object.assign({}, options, this.data('settings'))
38387
+ var position = settings.position
38388
+
38389
+ position = typeof position === 'boolean' ? position : true
38390
+
38391
+ this.Parser = parser
38392
+
38393
+ function parser(doc, file) {
38394
+ var fn = settings.fragment ? 'parseFragment' : 'parse'
38395
+ var onParseError = settings.emitParseErrors ? onerror : null
38396
+ var parse5 = new Parser5({
38397
+ sourceCodeLocationInfo: position,
38398
+ onParseError: onParseError,
38399
+ scriptingEnabled: false
38400
+ })
38401
+
38402
+ return fromParse5(parse5[fn](doc), {
38403
+ space: settings.space,
38404
+ file: file,
38405
+ verbose: settings.verbose
38406
+ })
38407
+
38408
+ function onerror(err) {
38409
+ var code = err.code
38410
+ var name = camelcase(code)
38411
+ var setting = settings[name]
38412
+ var config = setting === undefined || setting === null ? true : setting
38413
+ var level = typeof config === 'number' ? config : config ? 1 : 0
38414
+ var start = {
38415
+ line: err.startLine,
38416
+ column: err.startCol,
38417
+ offset: err.startOffset
38418
+ }
38419
+ var end = {line: err.endLine, column: err.endCol, offset: err.endOffset}
38420
+ var info
38421
+ var message
38422
+
38423
+ if (level) {
38424
+ info = errors[name] || /* istanbul ignore next */ {
38425
+ reason: '',
38426
+ description: ''
38427
+ }
38428
+
38429
+ message = file.message(format(info.reason), {start: start, end: end})
38430
+ message.source = 'parse-error'
38431
+ message.ruleId = code
38432
+ message.fatal = fatalities[level]
38433
+ message.note = format(info.description)
38434
+ message.url = info.url === false ? null : base + code
38435
+ }
38436
+
38437
+ function format(value) {
38438
+ return value.replace(/%c(?:-(\d+))?/g, char).replace(/%x/g, encodedChar)
38439
+ }
38440
+
38441
+ function char($0, $1) {
38442
+ var offset = $1 ? -parseInt($1, 10) : 0
38443
+ var char = doc.charAt(err.startOffset + offset)
38444
+ return char === '`' ? '` ` `' : char
38445
+ }
38446
+
38447
+ function encodedChar() {
38448
+ var char = doc.charCodeAt(err.startOffset).toString(16).toUpperCase()
38449
+
38450
+ return '0x' + char
38451
+ }
38452
+ }
38453
+ }
38454
+ }
38455
+
38456
+ function camelcase(value) {
38457
+ return value.replace(/-[a-z]/g, replacer)
38458
+ }
38459
+
38460
+ function replacer($0) {
38461
+ return $0.charAt(1).toUpperCase()
38462
+ }
38463
+
38464
+
38786
38465
  /***/ }),
38787
38466
 
38788
38467
  /***/ 6388:
@@ -47550,32 +47229,6 @@ function repeat(str, num) {
47550
47229
  }
47551
47230
 
47552
47231
 
47553
- /***/ }),
47554
-
47555
- /***/ 8245:
47556
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
47557
-
47558
- "use strict";
47559
-
47560
-
47561
- var path = __webpack_require__(6470);
47562
-
47563
- function replaceExt(npath, ext) {
47564
- if (typeof npath !== 'string') {
47565
- return npath;
47566
- }
47567
-
47568
- if (npath.length === 0) {
47569
- return npath;
47570
- }
47571
-
47572
- var nFileName = path.basename(npath, path.extname(npath)) + ext;
47573
- return path.join(path.dirname(npath), nFileName);
47574
- }
47575
-
47576
- module.exports = replaceExt;
47577
-
47578
-
47579
47232
  /***/ }),
47580
47233
 
47581
47234
  /***/ 6582:
@@ -49690,48 +49343,66 @@ function parseOrigin(origin) {
49690
49343
 
49691
49344
  /***/ }),
49692
49345
 
49693
- /***/ 3638:
49346
+ /***/ 939:
49694
49347
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
49695
49348
 
49696
49349
  "use strict";
49697
49350
 
49698
49351
 
49699
- var path = __webpack_require__(6470)
49700
- var replace = __webpack_require__(8245)
49352
+ module.exports = __webpack_require__(5905)
49353
+
49354
+
49355
+ /***/ }),
49356
+
49357
+ /***/ 5442:
49358
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
49359
+
49360
+ "use strict";
49361
+
49362
+
49363
+ var p = __webpack_require__(8064)
49364
+ var proc = __webpack_require__(4228)
49701
49365
  var buffer = __webpack_require__(8738)
49702
49366
 
49703
49367
  module.exports = VFile
49704
49368
 
49705
49369
  var own = {}.hasOwnProperty
49706
- var proto = VFile.prototype
49707
49370
 
49708
49371
  // Order of setting (least specific to most), we need this because otherwise
49709
49372
  // `{stem: 'a', path: '~/b.js'}` would throw, as a path is needed before a
49710
49373
  // stem can be set.
49711
49374
  var order = ['history', 'path', 'basename', 'stem', 'extname', 'dirname']
49712
49375
 
49713
- proto.toString = toString
49376
+ VFile.prototype.toString = toString
49714
49377
 
49715
49378
  // Access full path (`~/index.min.js`).
49716
- Object.defineProperty(proto, 'path', {get: getPath, set: setPath})
49379
+ Object.defineProperty(VFile.prototype, 'path', {get: getPath, set: setPath})
49717
49380
 
49718
49381
  // Access parent path (`~`).
49719
- Object.defineProperty(proto, 'dirname', {get: getDirname, set: setDirname})
49382
+ Object.defineProperty(VFile.prototype, 'dirname', {
49383
+ get: getDirname,
49384
+ set: setDirname
49385
+ })
49720
49386
 
49721
49387
  // Access basename (`index.min.js`).
49722
- Object.defineProperty(proto, 'basename', {get: getBasename, set: setBasename})
49388
+ Object.defineProperty(VFile.prototype, 'basename', {
49389
+ get: getBasename,
49390
+ set: setBasename
49391
+ })
49723
49392
 
49724
49393
  // Access extname (`.js`).
49725
- Object.defineProperty(proto, 'extname', {get: getExtname, set: setExtname})
49394
+ Object.defineProperty(VFile.prototype, 'extname', {
49395
+ get: getExtname,
49396
+ set: setExtname
49397
+ })
49726
49398
 
49727
49399
  // Access stem (`index.min`).
49728
- Object.defineProperty(proto, 'stem', {get: getStem, set: setStem})
49400
+ Object.defineProperty(VFile.prototype, 'stem', {get: getStem, set: setStem})
49729
49401
 
49730
49402
  // Construct a new file.
49731
49403
  function VFile(options) {
49732
49404
  var prop
49733
49405
  var index
49734
- var length
49735
49406
 
49736
49407
  if (!options) {
49737
49408
  options = {}
@@ -49748,13 +49419,12 @@ function VFile(options) {
49748
49419
  this.data = {}
49749
49420
  this.messages = []
49750
49421
  this.history = []
49751
- this.cwd = process.cwd()
49422
+ this.cwd = proc.cwd()
49752
49423
 
49753
49424
  // Set path related properties in the correct order.
49754
49425
  index = -1
49755
- length = order.length
49756
49426
 
49757
- while (++index < length) {
49427
+ while (++index < order.length) {
49758
49428
  prop = order[index]
49759
49429
 
49760
49430
  if (own.call(options, prop)) {
@@ -49764,7 +49434,7 @@ function VFile(options) {
49764
49434
 
49765
49435
  // Set non-path related properties.
49766
49436
  for (prop in options) {
49767
- if (order.indexOf(prop) === -1) {
49437
+ if (order.indexOf(prop) < 0) {
49768
49438
  this[prop] = options[prop]
49769
49439
  }
49770
49440
  }
@@ -49777,76 +49447,73 @@ function getPath() {
49777
49447
  function setPath(path) {
49778
49448
  assertNonEmpty(path, 'path')
49779
49449
 
49780
- if (path !== this.path) {
49450
+ if (this.path !== path) {
49781
49451
  this.history.push(path)
49782
49452
  }
49783
49453
  }
49784
49454
 
49785
49455
  function getDirname() {
49786
- return typeof this.path === 'string' ? path.dirname(this.path) : undefined
49456
+ return typeof this.path === 'string' ? p.dirname(this.path) : undefined
49787
49457
  }
49788
49458
 
49789
49459
  function setDirname(dirname) {
49790
49460
  assertPath(this.path, 'dirname')
49791
- this.path = path.join(dirname || '', this.basename)
49461
+ this.path = p.join(dirname || '', this.basename)
49792
49462
  }
49793
49463
 
49794
49464
  function getBasename() {
49795
- return typeof this.path === 'string' ? path.basename(this.path) : undefined
49465
+ return typeof this.path === 'string' ? p.basename(this.path) : undefined
49796
49466
  }
49797
49467
 
49798
49468
  function setBasename(basename) {
49799
49469
  assertNonEmpty(basename, 'basename')
49800
49470
  assertPart(basename, 'basename')
49801
- this.path = path.join(this.dirname || '', basename)
49471
+ this.path = p.join(this.dirname || '', basename)
49802
49472
  }
49803
49473
 
49804
49474
  function getExtname() {
49805
- return typeof this.path === 'string' ? path.extname(this.path) : undefined
49475
+ return typeof this.path === 'string' ? p.extname(this.path) : undefined
49806
49476
  }
49807
49477
 
49808
49478
  function setExtname(extname) {
49809
- var ext = extname || ''
49810
-
49811
- assertPart(ext, 'extname')
49479
+ assertPart(extname, 'extname')
49812
49480
  assertPath(this.path, 'extname')
49813
49481
 
49814
- if (ext) {
49815
- if (ext.charAt(0) !== '.') {
49482
+ if (extname) {
49483
+ if (extname.charCodeAt(0) !== 46 /* `.` */) {
49816
49484
  throw new Error('`extname` must start with `.`')
49817
49485
  }
49818
49486
 
49819
- if (ext.indexOf('.', 1) !== -1) {
49487
+ if (extname.indexOf('.', 1) > -1) {
49820
49488
  throw new Error('`extname` cannot contain multiple dots')
49821
49489
  }
49822
49490
  }
49823
49491
 
49824
- this.path = replace(this.path, ext)
49492
+ this.path = p.join(this.dirname, this.stem + (extname || ''))
49825
49493
  }
49826
49494
 
49827
49495
  function getStem() {
49828
49496
  return typeof this.path === 'string'
49829
- ? path.basename(this.path, this.extname)
49497
+ ? p.basename(this.path, this.extname)
49830
49498
  : undefined
49831
49499
  }
49832
49500
 
49833
49501
  function setStem(stem) {
49834
49502
  assertNonEmpty(stem, 'stem')
49835
49503
  assertPart(stem, 'stem')
49836
- this.path = path.join(this.dirname || '', stem + (this.extname || ''))
49504
+ this.path = p.join(this.dirname || '', stem + (this.extname || ''))
49837
49505
  }
49838
49506
 
49839
49507
  // Get the value of the file.
49840
49508
  function toString(encoding) {
49841
- var value = this.contents || ''
49842
- return buffer(value) ? value.toString(encoding) : String(value)
49509
+ return (this.contents || '').toString(encoding)
49843
49510
  }
49844
49511
 
49845
- // Assert that `part` is not a path (i.e., does not contain `path.sep`).
49512
+ // Assert that `part` is not a path (i.e., does not contain `p.sep`).
49846
49513
  function assertPart(part, name) {
49847
- if (part.indexOf(path.sep) !== -1) {
49514
+ if (part && part.indexOf(p.sep) > -1) {
49848
49515
  throw new Error(
49849
- '`' + name + '` cannot be a path: did not expect `' + path.sep + '`'
49516
+ '`' + name + '` cannot be a path: did not expect `' + p.sep + '`'
49850
49517
  )
49851
49518
  }
49852
49519
  }
@@ -49868,32 +49535,29 @@ function assertPath(path, name) {
49868
49535
 
49869
49536
  /***/ }),
49870
49537
 
49871
- /***/ 939:
49538
+ /***/ 5905:
49872
49539
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
49873
49540
 
49874
49541
  "use strict";
49875
49542
 
49876
49543
 
49877
49544
  var VMessage = __webpack_require__(734)
49878
- var VFile = __webpack_require__(3638)
49545
+ var VFile = __webpack_require__(5442)
49879
49546
 
49880
49547
  module.exports = VFile
49881
49548
 
49882
- var proto = VFile.prototype
49883
-
49884
- proto.message = message
49885
- proto.info = info
49886
- proto.fail = fail
49549
+ VFile.prototype.message = message
49550
+ VFile.prototype.info = info
49551
+ VFile.prototype.fail = fail
49887
49552
 
49888
49553
  // Create a message with `reason` at `position`.
49889
49554
  // When an error is passed in as `reason`, copies the stack.
49890
49555
  function message(reason, position, origin) {
49891
- var filePath = this.path
49892
49556
  var message = new VMessage(reason, position, origin)
49893
49557
 
49894
- if (filePath) {
49895
- message.name = filePath + ':' + message.name
49896
- message.file = filePath
49558
+ if (this.path) {
49559
+ message.name = this.path + ':' + message.name
49560
+ message.file = this.path
49897
49561
  }
49898
49562
 
49899
49563
  message.fatal = false
@@ -49923,6 +49587,406 @@ function info() {
49923
49587
  }
49924
49588
 
49925
49589
 
49590
+ /***/ }),
49591
+
49592
+ /***/ 8064:
49593
+ /***/ ((__unused_webpack_module, exports) => {
49594
+
49595
+ "use strict";
49596
+
49597
+
49598
+ // A derivative work based on:
49599
+ // <https://github.com/browserify/path-browserify>.
49600
+ // Which is licensed:
49601
+ //
49602
+ // MIT License
49603
+ //
49604
+ // Copyright (c) 2013 James Halliday
49605
+ //
49606
+ // Permission is hereby granted, free of charge, to any person obtaining a copy of
49607
+ // this software and associated documentation files (the "Software"), to deal in
49608
+ // the Software without restriction, including without limitation the rights to
49609
+ // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
49610
+ // the Software, and to permit persons to whom the Software is furnished to do so,
49611
+ // subject to the following conditions:
49612
+ //
49613
+ // The above copyright notice and this permission notice shall be included in all
49614
+ // copies or substantial portions of the Software.
49615
+ //
49616
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
49617
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
49618
+ // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
49619
+ // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
49620
+ // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
49621
+ // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
49622
+ // A derivative work based on:
49623
+ //
49624
+ // Parts of that are extracted from Node’s internal `path` module:
49625
+ // <https://github.com/nodejs/node/blob/master/lib/path.js>.
49626
+ // Which is licensed:
49627
+ //
49628
+ // Copyright Joyent, Inc. and other Node contributors.
49629
+ //
49630
+ // Permission is hereby granted, free of charge, to any person obtaining a
49631
+ // copy of this software and associated documentation files (the
49632
+ // "Software"), to deal in the Software without restriction, including
49633
+ // without limitation the rights to use, copy, modify, merge, publish,
49634
+ // distribute, sublicense, and/or sell copies of the Software, and to permit
49635
+ // persons to whom the Software is furnished to do so, subject to the
49636
+ // following conditions:
49637
+ //
49638
+ // The above copyright notice and this permission notice shall be included
49639
+ // in all copies or substantial portions of the Software.
49640
+ //
49641
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
49642
+ // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
49643
+ // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
49644
+ // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
49645
+ // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
49646
+ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
49647
+ // USE OR OTHER DEALINGS IN THE SOFTWARE.
49648
+
49649
+ exports.basename = basename
49650
+ exports.dirname = dirname
49651
+ exports.extname = extname
49652
+ exports.join = join
49653
+ exports.sep = '/'
49654
+
49655
+ function basename(path, ext) {
49656
+ var start = 0
49657
+ var end = -1
49658
+ var index
49659
+ var firstNonSlashEnd
49660
+ var seenNonSlash
49661
+ var extIndex
49662
+
49663
+ if (ext !== undefined && typeof ext !== 'string') {
49664
+ throw new TypeError('"ext" argument must be a string')
49665
+ }
49666
+
49667
+ assertPath(path)
49668
+ index = path.length
49669
+
49670
+ if (ext === undefined || !ext.length || ext.length > path.length) {
49671
+ while (index--) {
49672
+ if (path.charCodeAt(index) === 47 /* `/` */) {
49673
+ // If we reached a path separator that was not part of a set of path
49674
+ // separators at the end of the string, stop now.
49675
+ if (seenNonSlash) {
49676
+ start = index + 1
49677
+ break
49678
+ }
49679
+ } else if (end < 0) {
49680
+ // We saw the first non-path separator, mark this as the end of our
49681
+ // path component.
49682
+ seenNonSlash = true
49683
+ end = index + 1
49684
+ }
49685
+ }
49686
+
49687
+ return end < 0 ? '' : path.slice(start, end)
49688
+ }
49689
+
49690
+ if (ext === path) {
49691
+ return ''
49692
+ }
49693
+
49694
+ firstNonSlashEnd = -1
49695
+ extIndex = ext.length - 1
49696
+
49697
+ while (index--) {
49698
+ if (path.charCodeAt(index) === 47 /* `/` */) {
49699
+ // If we reached a path separator that was not part of a set of path
49700
+ // separators at the end of the string, stop now.
49701
+ if (seenNonSlash) {
49702
+ start = index + 1
49703
+ break
49704
+ }
49705
+ } else {
49706
+ if (firstNonSlashEnd < 0) {
49707
+ // We saw the first non-path separator, remember this index in case
49708
+ // we need it if the extension ends up not matching.
49709
+ seenNonSlash = true
49710
+ firstNonSlashEnd = index + 1
49711
+ }
49712
+
49713
+ if (extIndex > -1) {
49714
+ // Try to match the explicit extension.
49715
+ if (path.charCodeAt(index) === ext.charCodeAt(extIndex--)) {
49716
+ if (extIndex < 0) {
49717
+ // We matched the extension, so mark this as the end of our path
49718
+ // component
49719
+ end = index
49720
+ }
49721
+ } else {
49722
+ // Extension does not match, so our result is the entire path
49723
+ // component
49724
+ extIndex = -1
49725
+ end = firstNonSlashEnd
49726
+ }
49727
+ }
49728
+ }
49729
+ }
49730
+
49731
+ if (start === end) {
49732
+ end = firstNonSlashEnd
49733
+ } else if (end < 0) {
49734
+ end = path.length
49735
+ }
49736
+
49737
+ return path.slice(start, end)
49738
+ }
49739
+
49740
+ function dirname(path) {
49741
+ var end
49742
+ var unmatchedSlash
49743
+ var index
49744
+
49745
+ assertPath(path)
49746
+
49747
+ if (!path.length) {
49748
+ return '.'
49749
+ }
49750
+
49751
+ end = -1
49752
+ index = path.length
49753
+
49754
+ // Prefix `--` is important to not run on `0`.
49755
+ while (--index) {
49756
+ if (path.charCodeAt(index) === 47 /* `/` */) {
49757
+ if (unmatchedSlash) {
49758
+ end = index
49759
+ break
49760
+ }
49761
+ } else if (!unmatchedSlash) {
49762
+ // We saw the first non-path separator
49763
+ unmatchedSlash = true
49764
+ }
49765
+ }
49766
+
49767
+ return end < 0
49768
+ ? path.charCodeAt(0) === 47 /* `/` */
49769
+ ? '/'
49770
+ : '.'
49771
+ : end === 1 && path.charCodeAt(0) === 47 /* `/` */
49772
+ ? '//'
49773
+ : path.slice(0, end)
49774
+ }
49775
+
49776
+ function extname(path) {
49777
+ var startDot = -1
49778
+ var startPart = 0
49779
+ var end = -1
49780
+ // Track the state of characters (if any) we see before our first dot and
49781
+ // after any path separator we find.
49782
+ var preDotState = 0
49783
+ var unmatchedSlash
49784
+ var code
49785
+ var index
49786
+
49787
+ assertPath(path)
49788
+
49789
+ index = path.length
49790
+
49791
+ while (index--) {
49792
+ code = path.charCodeAt(index)
49793
+
49794
+ if (code === 47 /* `/` */) {
49795
+ // If we reached a path separator that was not part of a set of path
49796
+ // separators at the end of the string, stop now.
49797
+ if (unmatchedSlash) {
49798
+ startPart = index + 1
49799
+ break
49800
+ }
49801
+
49802
+ continue
49803
+ }
49804
+
49805
+ if (end < 0) {
49806
+ // We saw the first non-path separator, mark this as the end of our
49807
+ // extension.
49808
+ unmatchedSlash = true
49809
+ end = index + 1
49810
+ }
49811
+
49812
+ if (code === 46 /* `.` */) {
49813
+ // If this is our first dot, mark it as the start of our extension.
49814
+ if (startDot < 0) {
49815
+ startDot = index
49816
+ } else if (preDotState !== 1) {
49817
+ preDotState = 1
49818
+ }
49819
+ } else if (startDot > -1) {
49820
+ // We saw a non-dot and non-path separator before our dot, so we should
49821
+ // have a good chance at having a non-empty extension.
49822
+ preDotState = -1
49823
+ }
49824
+ }
49825
+
49826
+ if (
49827
+ startDot < 0 ||
49828
+ end < 0 ||
49829
+ // We saw a non-dot character immediately before the dot.
49830
+ preDotState === 0 ||
49831
+ // The (right-most) trimmed path component is exactly `..`.
49832
+ (preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)
49833
+ ) {
49834
+ return ''
49835
+ }
49836
+
49837
+ return path.slice(startDot, end)
49838
+ }
49839
+
49840
+ function join() {
49841
+ var index = -1
49842
+ var joined
49843
+
49844
+ while (++index < arguments.length) {
49845
+ assertPath(arguments[index])
49846
+
49847
+ if (arguments[index]) {
49848
+ joined =
49849
+ joined === undefined
49850
+ ? arguments[index]
49851
+ : joined + '/' + arguments[index]
49852
+ }
49853
+ }
49854
+
49855
+ return joined === undefined ? '.' : normalize(joined)
49856
+ }
49857
+
49858
+ // Note: `normalize` is not exposed as `path.normalize`, so some code is
49859
+ // manually removed from it.
49860
+ function normalize(path) {
49861
+ var absolute
49862
+ var value
49863
+
49864
+ assertPath(path)
49865
+
49866
+ absolute = path.charCodeAt(0) === 47 /* `/` */
49867
+
49868
+ // Normalize the path according to POSIX rules.
49869
+ value = normalizeString(path, !absolute)
49870
+
49871
+ if (!value.length && !absolute) {
49872
+ value = '.'
49873
+ }
49874
+
49875
+ if (value.length && path.charCodeAt(path.length - 1) === 47 /* / */) {
49876
+ value += '/'
49877
+ }
49878
+
49879
+ return absolute ? '/' + value : value
49880
+ }
49881
+
49882
+ // Resolve `.` and `..` elements in a path with directory names.
49883
+ function normalizeString(path, allowAboveRoot) {
49884
+ var result = ''
49885
+ var lastSegmentLength = 0
49886
+ var lastSlash = -1
49887
+ var dots = 0
49888
+ var index = -1
49889
+ var code
49890
+ var lastSlashIndex
49891
+
49892
+ while (++index <= path.length) {
49893
+ if (index < path.length) {
49894
+ code = path.charCodeAt(index)
49895
+ } else if (code === 47 /* `/` */) {
49896
+ break
49897
+ } else {
49898
+ code = 47 /* `/` */
49899
+ }
49900
+
49901
+ if (code === 47 /* `/` */) {
49902
+ if (lastSlash === index - 1 || dots === 1) {
49903
+ // Empty.
49904
+ } else if (lastSlash !== index - 1 && dots === 2) {
49905
+ if (
49906
+ result.length < 2 ||
49907
+ lastSegmentLength !== 2 ||
49908
+ result.charCodeAt(result.length - 1) !== 46 /* `.` */ ||
49909
+ result.charCodeAt(result.length - 2) !== 46 /* `.` */
49910
+ ) {
49911
+ if (result.length > 2) {
49912
+ lastSlashIndex = result.lastIndexOf('/')
49913
+
49914
+ /* istanbul ignore else - No clue how to cover it. */
49915
+ if (lastSlashIndex !== result.length - 1) {
49916
+ if (lastSlashIndex < 0) {
49917
+ result = ''
49918
+ lastSegmentLength = 0
49919
+ } else {
49920
+ result = result.slice(0, lastSlashIndex)
49921
+ lastSegmentLength = result.length - 1 - result.lastIndexOf('/')
49922
+ }
49923
+
49924
+ lastSlash = index
49925
+ dots = 0
49926
+ continue
49927
+ }
49928
+ } else if (result.length) {
49929
+ result = ''
49930
+ lastSegmentLength = 0
49931
+ lastSlash = index
49932
+ dots = 0
49933
+ continue
49934
+ }
49935
+ }
49936
+
49937
+ if (allowAboveRoot) {
49938
+ result = result.length ? result + '/..' : '..'
49939
+ lastSegmentLength = 2
49940
+ }
49941
+ } else {
49942
+ if (result.length) {
49943
+ result += '/' + path.slice(lastSlash + 1, index)
49944
+ } else {
49945
+ result = path.slice(lastSlash + 1, index)
49946
+ }
49947
+
49948
+ lastSegmentLength = index - lastSlash - 1
49949
+ }
49950
+
49951
+ lastSlash = index
49952
+ dots = 0
49953
+ } else if (code === 46 /* `.` */ && dots > -1) {
49954
+ dots++
49955
+ } else {
49956
+ dots = -1
49957
+ }
49958
+ }
49959
+
49960
+ return result
49961
+ }
49962
+
49963
+ function assertPath(path) {
49964
+ if (typeof path !== 'string') {
49965
+ throw new TypeError(
49966
+ 'Path must be a string. Received ' + JSON.stringify(path)
49967
+ )
49968
+ }
49969
+ }
49970
+
49971
+
49972
+ /***/ }),
49973
+
49974
+ /***/ 4228:
49975
+ /***/ ((__unused_webpack_module, exports) => {
49976
+
49977
+ "use strict";
49978
+
49979
+
49980
+ // Somewhat based on:
49981
+ // <https://github.com/defunctzombie/node-process/blob/master/browser.js>.
49982
+ // But I don’t think one tiny line of code can be copyrighted. πŸ˜…
49983
+ exports.cwd = cwd
49984
+
49985
+ function cwd() {
49986
+ return '/'
49987
+ }
49988
+
49989
+
49926
49990
  /***/ }),
49927
49991
 
49928
49992
  /***/ 7529:
@@ -51733,6 +51797,14 @@ module.exports = JSON.parse('{"classId":"classID","dataType":"datatype","itemId"
51733
51797
 
51734
51798
  /***/ }),
51735
51799
 
51800
+ /***/ 2471:
51801
+ /***/ ((module) => {
51802
+
51803
+ "use strict";
51804
+ module.exports = JSON.parse('{"abandonedHeadElementChild":{"reason":"Unexpected metadata element after head","description":"Unexpected element after head. Expected the element before `</head>`","url":false},"abruptClosingOfEmptyComment":{"reason":"Unexpected abruptly closed empty comment","description":"Unexpected `>` or `->`. Expected `-->` to close comments"},"abruptDoctypePublicIdentifier":{"reason":"Unexpected abruptly closed public identifier","description":"Unexpected `>`. Expected a closing `\\"` or `\'` after the public identifier"},"abruptDoctypeSystemIdentifier":{"reason":"Unexpected abruptly closed system identifier","description":"Unexpected `>`. Expected a closing `\\"` or `\'` after the identifier identifier"},"absenceOfDigitsInNumericCharacterReference":{"reason":"Unexpected non-digit at start of numeric character reference","description":"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},"cdataInHtmlContent":{"reason":"Unexpected CDATA section in HTML","description":"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},"characterReferenceOutsideUnicodeRange":{"reason":"Unexpected too big numeric character reference","description":"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},"closingOfElementWithOpenChildElements":{"reason":"Unexpected closing tag with open child elements","description":"Unexpectedly closing tag. Expected other tags to be closed first","url":false},"controlCharacterInInputStream":{"reason":"Unexpected control character","description":"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},"controlCharacterReference":{"reason":"Unexpected control character reference","description":"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},"disallowedContentInNoscriptInHead":{"reason":"Disallowed content inside `<noscript>` in `<head>`","description":"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`","url":false},"duplicateAttribute":{"reason":"Unexpected duplicate attribute","description":"Unexpectedly double attribute. Expected attributes to occur only once"},"endTagWithAttributes":{"reason":"Unexpected attribute on closing tag","description":"Unexpected attribute. Expected `>` instead"},"endTagWithTrailingSolidus":{"reason":"Unexpected slash at end of closing tag","description":"Unexpected `%c-1`. Expected `>` instead"},"endTagWithoutMatchingOpenElement":{"reason":"Unexpected unopened end tag","description":"Unexpected end tag. Expected no end tag or another end tag","url":false},"eofBeforeTagName":{"reason":"Unexpected end of file","description":"Unexpected end of file. Expected tag name instead"},"eofInCdata":{"reason":"Unexpected end of file in CDATA","description":"Unexpected end of file. Expected `]]>` to close the CDATA"},"eofInComment":{"reason":"Unexpected end of file in comment","description":"Unexpected end of file. Expected `-->` to close the comment"},"eofInDoctype":{"reason":"Unexpected end of file in doctype","description":"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},"eofInElementThatCanContainOnlyText":{"reason":"Unexpected end of file in element that can only contain text","description":"Unexpected end of file. Expected text or a closing tag","url":false},"eofInScriptHtmlCommentLikeText":{"reason":"Unexpected end of file in comment inside script","description":"Unexpected end of file. Expected `-->` to close the comment"},"eofInTag":{"reason":"Unexpected end of file in tag","description":"Unexpected end of file. Expected `>` to close the tag"},"incorrectlyClosedComment":{"reason":"Incorrectly closed comment","description":"Unexpected `%c-1`. Expected `-->` to close the comment"},"incorrectlyOpenedComment":{"reason":"Incorrectly opened comment","description":"Unexpected `%c`. Expected `<!--` to open the comment"},"invalidCharacterSequenceAfterDoctypeName":{"reason":"Invalid sequence after doctype name","description":"Unexpected sequence at `%c`. Expected `public` or `system`"},"invalidFirstCharacterOfTagName":{"reason":"Invalid first character in tag name","description":"Unexpected `%c`. Expected an ASCII letter instead"},"misplacedDoctype":{"reason":"Misplaced doctype","description":"Unexpected doctype. Expected doctype before head","url":false},"misplacedStartTagForHeadElement":{"reason":"Misplaced `<head>` start tag","description":"Unexpected start tag `<head>`. Expected `<head>` directly after doctype","url":false},"missingAttributeValue":{"reason":"Missing attribute value","description":"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},"missingDoctype":{"reason":"Missing doctype before other content","description":"Expected a `<!doctype html>` before anything else","url":false},"missingDoctypeName":{"reason":"Missing doctype name","description":"Unexpected doctype end at `%c`. Expected `html` instead"},"missingDoctypePublicIdentifier":{"reason":"Missing public identifier in doctype","description":"Unexpected `%c`. Expected identifier for `public` instead"},"missingDoctypeSystemIdentifier":{"reason":"Missing system identifier in doctype","description":"Unexpected `%c`. Expected identifier for `system` instead (suggested: `\\"about:legacy-compat\\"`)"},"missingEndTagName":{"reason":"Missing name in end tag","description":"Unexpected `%c`. Expected an ASCII letter instead"},"missingQuoteBeforeDoctypePublicIdentifier":{"reason":"Missing quote before public identifier in doctype","description":"Unexpected `%c`. Expected `\\"` or `\'` instead"},"missingQuoteBeforeDoctypeSystemIdentifier":{"reason":"Missing quote before system identifier in doctype","description":"Unexpected `%c`. Expected `\\"` or `\'` instead"},"missingSemicolonAfterCharacterReference":{"reason":"Missing semicolon after character reference","description":"Unexpected `%c`. Expected `;` instead"},"missingWhitespaceAfterDoctypePublicKeyword":{"reason":"Missing whitespace after public identifier in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceAfterDoctypeSystemKeyword":{"reason":"Missing whitespace after system identifier in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBeforeDoctypeName":{"reason":"Missing whitespace before doctype name","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBetweenAttributes":{"reason":"Missing whitespace between attributes","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers":{"reason":"Missing whitespace between public and system identifiers in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"nestedComment":{"reason":"Unexpected nested comment","description":"Unexpected `<!--`. Expected `-->`"},"nestedNoscriptInHead":{"reason":"Unexpected nested `<noscript>` in `<head>`","description":"Unexpected `<noscript>`. Expected a closing tag or a meta element","url":false},"nonConformingDoctype":{"reason":"Unexpected non-conforming doctype declaration","description":"Expected `<!doctype html>` or `<!doctype html system \\"about:legacy-compat\\">`","url":false},"nonVoidHtmlElementStartTagWithTrailingSolidus":{"reason":"Unexpected trailing slash on start tag of non-void element","description":"Unexpected `/`. Expected `>` instead"},"noncharacterCharacterReference":{"reason":"Unexpected noncharacter code point referenced by character reference","description":"Unexpected code point. Do not use noncharacters in HTML"},"noncharacterInInputStream":{"reason":"Unexpected noncharacter character","description":"Unexpected code point `%x`. Do not use noncharacters in HTML"},"nullCharacterReference":{"reason":"Unexpected NULL character referenced by character reference","description":"Unexpected code point. Do not use NULL characters in HTML"},"openElementsLeftAfterEof":{"reason":"Unexpected end of file","description":"Unexpected end of file. Expected closing tag instead","url":false},"surrogateCharacterReference":{"reason":"Unexpected surrogate character referenced by character reference","description":"Unexpected code point. Do not use lone surrogate characters in HTML"},"surrogateInInputStream":{"reason":"Unexpected surrogate character","description":"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},"unexpectedCharacterAfterDoctypeSystemIdentifier":{"reason":"Invalid character after system identifier in doctype","description":"Unexpected character at `%c`. Expected `>`"},"unexpectedCharacterInAttributeName":{"reason":"Unexpected character in attribute name","description":"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},"unexpectedCharacterInUnquotedAttributeValue":{"reason":"Unexpected character in unquoted attribute value","description":"Unexpected `%c`. Quote the attribute value to include it"},"unexpectedEqualsSignBeforeAttributeName":{"reason":"Unexpected equals sign before attribute name ","description":"Unexpected `%c`. Add an attribute name before it"},"unexpectedNullCharacter":{"reason":"Unexpected NULL character","description":"Unexpected code point `%x`. Do not use NULL characters in HTML"},"unexpectedQuestionMarkInsteadOfTagName":{"reason":"Unexpected question mark instead of tag name","description":"Unexpected `%c`. Expected an ASCII letter instead"},"unexpectedSolidusInTag":{"reason":"Unexpected slash in tag","description":"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},"unknownNamedCharacterReference":{"reason":"Unexpected unknown named character reference","description":"Unexpected character reference. Expected known named character references"}}');
51805
+
51806
+ /***/ }),
51807
+
51736
51808
  /***/ 9052:
51737
51809
  /***/ ((module) => {
51738
51810
 
@@ -51942,9 +52014,9 @@ function _slicedToArray(arr, i) {
51942
52014
 
51943
52015
 
51944
52016
 
51945
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
52017
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
51946
52018
 
51947
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0,defineProperty/* default */.Z)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
52019
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,defineProperty/* default */.Z)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
51948
52020
 
51949
52021
  /* eslint-disable no-param-reassign */
51950
52022
  __webpack_require__(2787);