@vue/compiler-sfc 3.5.34 → 3.5.36
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/compiler-sfc.cjs.js +348 -290
- package/dist/compiler-sfc.esm-browser.js +397 -336
- package/package.json +10 -10
package/dist/compiler-sfc.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-sfc v3.5.
|
|
2
|
+
* @vue/compiler-sfc v3.5.36
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -4435,8 +4435,6 @@ var root$1 = {exports: {}};
|
|
|
4435
4435
|
|
|
4436
4436
|
var container$1 = {exports: {}};
|
|
4437
4437
|
|
|
4438
|
-
var node$2 = {exports: {}};
|
|
4439
|
-
|
|
4440
4438
|
var util$2 = {};
|
|
4441
4439
|
|
|
4442
4440
|
var unesc$1 = {exports: {}};
|
|
@@ -4615,6 +4613,43 @@ function requireStripComments$1 () {
|
|
|
4615
4613
|
return stripComments$1.exports;
|
|
4616
4614
|
}
|
|
4617
4615
|
|
|
4616
|
+
var maxNestingDepth = {};
|
|
4617
|
+
|
|
4618
|
+
var hasRequiredMaxNestingDepth;
|
|
4619
|
+
|
|
4620
|
+
function requireMaxNestingDepth () {
|
|
4621
|
+
if (hasRequiredMaxNestingDepth) return maxNestingDepth;
|
|
4622
|
+
hasRequiredMaxNestingDepth = 1;
|
|
4623
|
+
(function (exports) {
|
|
4624
|
+
|
|
4625
|
+
exports.__esModule = true;
|
|
4626
|
+
exports.MAX_NESTING_DEPTH = void 0;
|
|
4627
|
+
exports["default"] = resolveMaxNestingDepth;
|
|
4628
|
+
/**
|
|
4629
|
+
* The default maximum selector nesting depth allowed when parsing or
|
|
4630
|
+
* serializing a selector. Going beyond this would otherwise recurse deeply
|
|
4631
|
+
* enough to overflow the call stack (CVE-2026-9358 / CWE-674). Real-world
|
|
4632
|
+
* selectors never get anywhere near this, so it acts purely as a safety net
|
|
4633
|
+
* that turns an uncatchable stack overflow into a catchable error.
|
|
4634
|
+
*/
|
|
4635
|
+
var MAX_NESTING_DEPTH = exports.MAX_NESTING_DEPTH = 256;
|
|
4636
|
+
|
|
4637
|
+
/**
|
|
4638
|
+
* Coerce a user-supplied nesting-depth limit into a safe value. Anything that
|
|
4639
|
+
* is not a non-negative safe integer (NaN, Infinity, negative numbers, or a
|
|
4640
|
+
* non-number) would disable or break the guard, so it falls back to the
|
|
4641
|
+
* default.
|
|
4642
|
+
*
|
|
4643
|
+
* @param {unknown} value the limit provided through the `maxNestingDepth` option
|
|
4644
|
+
* @returns {number} a safe, non-negative integer limit
|
|
4645
|
+
*/
|
|
4646
|
+
function resolveMaxNestingDepth(value) {
|
|
4647
|
+
return Number.isSafeInteger(value) && value >= 0 ? value : MAX_NESTING_DEPTH;
|
|
4648
|
+
}
|
|
4649
|
+
} (maxNestingDepth));
|
|
4650
|
+
return maxNestingDepth;
|
|
4651
|
+
}
|
|
4652
|
+
|
|
4618
4653
|
var hasRequiredUtil$2;
|
|
4619
4654
|
|
|
4620
4655
|
function requireUtil$2 () {
|
|
@@ -4622,7 +4657,7 @@ function requireUtil$2 () {
|
|
|
4622
4657
|
hasRequiredUtil$2 = 1;
|
|
4623
4658
|
|
|
4624
4659
|
util$2.__esModule = true;
|
|
4625
|
-
util$2.unesc = util$2.stripComments = util$2.getProp = util$2.ensureObject = void 0;
|
|
4660
|
+
util$2.unesc = util$2.stripComments = util$2.resolveMaxNestingDepth = util$2.getProp = util$2.ensureObject = util$2.MAX_NESTING_DEPTH = void 0;
|
|
4626
4661
|
var _unesc = _interopRequireDefault(/*@__PURE__*/ requireUnesc$1());
|
|
4627
4662
|
util$2.unesc = _unesc["default"];
|
|
4628
4663
|
var _getProp = _interopRequireDefault(/*@__PURE__*/ requireGetProp$1());
|
|
@@ -4631,10 +4666,16 @@ function requireUtil$2 () {
|
|
|
4631
4666
|
util$2.ensureObject = _ensureObject["default"];
|
|
4632
4667
|
var _stripComments = _interopRequireDefault(/*@__PURE__*/ requireStripComments$1());
|
|
4633
4668
|
util$2.stripComments = _stripComments["default"];
|
|
4634
|
-
|
|
4669
|
+
var _maxNestingDepth = _interopRequireWildcard(/*@__PURE__*/ requireMaxNestingDepth());
|
|
4670
|
+
util$2.resolveMaxNestingDepth = _maxNestingDepth["default"];
|
|
4671
|
+
util$2.MAX_NESTING_DEPTH = _maxNestingDepth.MAX_NESTING_DEPTH;
|
|
4672
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) { "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); } return f; })(e, t); }
|
|
4673
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
4635
4674
|
return util$2;
|
|
4636
4675
|
}
|
|
4637
4676
|
|
|
4677
|
+
var node$2 = {exports: {}};
|
|
4678
|
+
|
|
4638
4679
|
var hasRequiredNode$2;
|
|
4639
4680
|
|
|
4640
4681
|
function requireNode$2 () {
|
|
@@ -4645,8 +4686,10 @@ function requireNode$2 () {
|
|
|
4645
4686
|
exports.__esModule = true;
|
|
4646
4687
|
exports["default"] = void 0;
|
|
4647
4688
|
var _util = /*@__PURE__*/ requireUtil$2();
|
|
4648
|
-
function _defineProperties(
|
|
4649
|
-
function _createClass(
|
|
4689
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
4690
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", { writable: false }), e; }
|
|
4691
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
4692
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return (String )(t); }
|
|
4650
4693
|
var cloneNode = function cloneNode(obj, parent) {
|
|
4651
4694
|
if (typeof obj !== 'object' || obj === null) {
|
|
4652
4695
|
return obj;
|
|
@@ -4672,7 +4715,7 @@ function requireNode$2 () {
|
|
|
4672
4715
|
}
|
|
4673
4716
|
return cloned;
|
|
4674
4717
|
};
|
|
4675
|
-
|
|
4718
|
+
exports["default"] = /*#__PURE__*/function () {
|
|
4676
4719
|
function Node(opts) {
|
|
4677
4720
|
if (opts === void 0) {
|
|
4678
4721
|
opts = {};
|
|
@@ -4800,6 +4843,14 @@ function requireNode$2 () {
|
|
|
4800
4843
|
};
|
|
4801
4844
|
_proto.toString = function toString() {
|
|
4802
4845
|
return [this.rawSpaceBefore, this.valueToString(), this.rawSpaceAfter].join('');
|
|
4846
|
+
}
|
|
4847
|
+
|
|
4848
|
+
// Internal recursion entry point used by Container serialization. Leaf
|
|
4849
|
+
// nodes don't recurse, so they ignore the depth/limit and stringify
|
|
4850
|
+
// themselves. Containers override this to thread the nesting depth.
|
|
4851
|
+
;
|
|
4852
|
+
_proto._stringify = function _stringify() {
|
|
4853
|
+
return this.toString();
|
|
4803
4854
|
};
|
|
4804
4855
|
_createClass(Node, [{
|
|
4805
4856
|
key: "rawSpaceBefore",
|
|
@@ -4830,7 +4881,6 @@ function requireNode$2 () {
|
|
|
4830
4881
|
}]);
|
|
4831
4882
|
return Node;
|
|
4832
4883
|
}();
|
|
4833
|
-
exports["default"] = Node;
|
|
4834
4884
|
module.exports = exports.default;
|
|
4835
4885
|
} (node$2, node$2.exports));
|
|
4836
4886
|
return node$2.exports;
|
|
@@ -4846,30 +4896,18 @@ function requireTypes$1 () {
|
|
|
4846
4896
|
|
|
4847
4897
|
types$2.__esModule = true;
|
|
4848
4898
|
types$2.UNIVERSAL = types$2.TAG = types$2.STRING = types$2.SELECTOR = types$2.ROOT = types$2.PSEUDO = types$2.NESTING = types$2.ID = types$2.COMMENT = types$2.COMBINATOR = types$2.CLASS = types$2.ATTRIBUTE = void 0;
|
|
4849
|
-
|
|
4850
|
-
types$2.
|
|
4851
|
-
|
|
4852
|
-
types$2.
|
|
4853
|
-
|
|
4854
|
-
types$2.
|
|
4855
|
-
|
|
4856
|
-
types$2.
|
|
4857
|
-
|
|
4858
|
-
types$2.
|
|
4859
|
-
|
|
4860
|
-
types$2.
|
|
4861
|
-
var ID = 'id';
|
|
4862
|
-
types$2.ID = ID;
|
|
4863
|
-
var COMMENT = 'comment';
|
|
4864
|
-
types$2.COMMENT = COMMENT;
|
|
4865
|
-
var COMBINATOR = 'combinator';
|
|
4866
|
-
types$2.COMBINATOR = COMBINATOR;
|
|
4867
|
-
var CLASS = 'class';
|
|
4868
|
-
types$2.CLASS = CLASS;
|
|
4869
|
-
var ATTRIBUTE = 'attribute';
|
|
4870
|
-
types$2.ATTRIBUTE = ATTRIBUTE;
|
|
4871
|
-
var UNIVERSAL = 'universal';
|
|
4872
|
-
types$2.UNIVERSAL = UNIVERSAL;
|
|
4899
|
+
types$2.TAG = 'tag';
|
|
4900
|
+
types$2.STRING = 'string';
|
|
4901
|
+
types$2.SELECTOR = 'selector';
|
|
4902
|
+
types$2.ROOT = 'root';
|
|
4903
|
+
types$2.PSEUDO = 'pseudo';
|
|
4904
|
+
types$2.NESTING = 'nesting';
|
|
4905
|
+
types$2.ID = 'id';
|
|
4906
|
+
types$2.COMMENT = 'comment';
|
|
4907
|
+
types$2.COMBINATOR = 'combinator';
|
|
4908
|
+
types$2.CLASS = 'class';
|
|
4909
|
+
types$2.ATTRIBUTE = 'attribute';
|
|
4910
|
+
types$2.UNIVERSAL = 'universal';
|
|
4873
4911
|
return types$2;
|
|
4874
4912
|
}
|
|
4875
4913
|
|
|
@@ -4882,19 +4920,21 @@ function requireContainer$1 () {
|
|
|
4882
4920
|
|
|
4883
4921
|
exports.__esModule = true;
|
|
4884
4922
|
exports["default"] = void 0;
|
|
4923
|
+
var _util = /*@__PURE__*/ requireUtil$2();
|
|
4885
4924
|
var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$2());
|
|
4886
4925
|
var types = _interopRequireWildcard(/*@__PURE__*/ requireTypes$1());
|
|
4887
|
-
function
|
|
4888
|
-
function
|
|
4889
|
-
function
|
|
4890
|
-
function
|
|
4891
|
-
function
|
|
4892
|
-
function
|
|
4893
|
-
function
|
|
4894
|
-
function
|
|
4895
|
-
function
|
|
4896
|
-
function
|
|
4897
|
-
|
|
4926
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) { "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); } return f; })(e, t); }
|
|
4927
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
4928
|
+
function _createForOfIteratorHelperLoose(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4929
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4930
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) { n[e] = r[e]; } return n; }
|
|
4931
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
4932
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", { writable: false }), e; }
|
|
4933
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
4934
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return (String )(t); }
|
|
4935
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
4936
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
4937
|
+
exports["default"] = /*#__PURE__*/function (_Node) {
|
|
4898
4938
|
_inheritsLoose(Container, _Node);
|
|
4899
4939
|
function Container(opts) {
|
|
4900
4940
|
var _this;
|
|
@@ -5136,23 +5176,23 @@ function requireContainer$1 () {
|
|
|
5136
5176
|
});
|
|
5137
5177
|
};
|
|
5138
5178
|
_proto.walkUniversals = function walkUniversals(callback) {
|
|
5139
|
-
var
|
|
5179
|
+
var _this0 = this;
|
|
5140
5180
|
return this.walk(function (selector) {
|
|
5141
5181
|
if (selector.type === types.UNIVERSAL) {
|
|
5142
|
-
return callback.call(
|
|
5182
|
+
return callback.call(_this0, selector);
|
|
5143
5183
|
}
|
|
5144
5184
|
});
|
|
5145
5185
|
};
|
|
5146
5186
|
_proto.split = function split(callback) {
|
|
5147
|
-
var
|
|
5187
|
+
var _this1 = this;
|
|
5148
5188
|
var current = [];
|
|
5149
5189
|
return this.reduce(function (memo, node, index) {
|
|
5150
|
-
var split = callback.call(
|
|
5190
|
+
var split = callback.call(_this1, node);
|
|
5151
5191
|
current.push(node);
|
|
5152
5192
|
if (split) {
|
|
5153
5193
|
memo.push(current);
|
|
5154
5194
|
current = [];
|
|
5155
|
-
} else if (index ===
|
|
5195
|
+
} else if (index === _this1.length - 1) {
|
|
5156
5196
|
memo.push(current);
|
|
5157
5197
|
}
|
|
5158
5198
|
return memo;
|
|
@@ -5176,8 +5216,16 @@ function requireContainer$1 () {
|
|
|
5176
5216
|
_proto.sort = function sort(callback) {
|
|
5177
5217
|
return this.nodes.sort(callback);
|
|
5178
5218
|
};
|
|
5179
|
-
_proto.toString = function toString() {
|
|
5180
|
-
|
|
5219
|
+
_proto.toString = function toString(options) {
|
|
5220
|
+
if (options === void 0) {
|
|
5221
|
+
options = {};
|
|
5222
|
+
}
|
|
5223
|
+
return this._stringify(options, 0, (0, _util.resolveMaxNestingDepth)(options.maxNestingDepth));
|
|
5224
|
+
};
|
|
5225
|
+
_proto._stringify = function _stringify(options, depth, max) {
|
|
5226
|
+
return this.map(function (child) {
|
|
5227
|
+
return child._stringify(options, depth, max);
|
|
5228
|
+
}).join('');
|
|
5181
5229
|
};
|
|
5182
5230
|
_createClass(Container, [{
|
|
5183
5231
|
key: "first",
|
|
@@ -5197,7 +5245,6 @@ function requireContainer$1 () {
|
|
|
5197
5245
|
}]);
|
|
5198
5246
|
return Container;
|
|
5199
5247
|
}(_node["default"]);
|
|
5200
|
-
exports["default"] = Container;
|
|
5201
5248
|
module.exports = exports.default;
|
|
5202
5249
|
} (container$1, container$1.exports));
|
|
5203
5250
|
return container$1.exports;
|
|
@@ -5214,12 +5261,14 @@ function requireRoot$1 () {
|
|
|
5214
5261
|
exports["default"] = void 0;
|
|
5215
5262
|
var _container = _interopRequireDefault(/*@__PURE__*/ requireContainer$1());
|
|
5216
5263
|
var _types = /*@__PURE__*/ requireTypes$1();
|
|
5217
|
-
function _interopRequireDefault(
|
|
5218
|
-
function _defineProperties(
|
|
5219
|
-
function _createClass(
|
|
5220
|
-
function
|
|
5221
|
-
function
|
|
5222
|
-
|
|
5264
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
5265
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
5266
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", { writable: false }), e; }
|
|
5267
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5268
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return (String )(t); }
|
|
5269
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
5270
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
5271
|
+
exports["default"] = /*#__PURE__*/function (_Container) {
|
|
5223
5272
|
_inheritsLoose(Root, _Container);
|
|
5224
5273
|
function Root(opts) {
|
|
5225
5274
|
var _this;
|
|
@@ -5228,9 +5277,9 @@ function requireRoot$1 () {
|
|
|
5228
5277
|
return _this;
|
|
5229
5278
|
}
|
|
5230
5279
|
var _proto = Root.prototype;
|
|
5231
|
-
_proto.
|
|
5280
|
+
_proto._stringify = function _stringify(options, depth, max) {
|
|
5232
5281
|
var str = this.reduce(function (memo, selector) {
|
|
5233
|
-
memo.push(
|
|
5282
|
+
memo.push(selector._stringify(options, depth, max));
|
|
5234
5283
|
return memo;
|
|
5235
5284
|
}, []).join(',');
|
|
5236
5285
|
return this.trailingComma ? str + ',' : str;
|
|
@@ -5250,7 +5299,6 @@ function requireRoot$1 () {
|
|
|
5250
5299
|
}]);
|
|
5251
5300
|
return Root;
|
|
5252
5301
|
}(_container["default"]);
|
|
5253
|
-
exports["default"] = Root;
|
|
5254
5302
|
module.exports = exports.default;
|
|
5255
5303
|
} (root$1, root$1.exports));
|
|
5256
5304
|
return root$1.exports;
|
|
@@ -5269,10 +5317,10 @@ function requireSelector$1 () {
|
|
|
5269
5317
|
exports["default"] = void 0;
|
|
5270
5318
|
var _container = _interopRequireDefault(/*@__PURE__*/ requireContainer$1());
|
|
5271
5319
|
var _types = /*@__PURE__*/ requireTypes$1();
|
|
5272
|
-
function _interopRequireDefault(
|
|
5273
|
-
function _inheritsLoose(
|
|
5274
|
-
function _setPrototypeOf(
|
|
5275
|
-
|
|
5320
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
5321
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
5322
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
5323
|
+
exports["default"] = /*#__PURE__*/function (_Container) {
|
|
5276
5324
|
_inheritsLoose(Selector, _Container);
|
|
5277
5325
|
function Selector(opts) {
|
|
5278
5326
|
var _this;
|
|
@@ -5282,7 +5330,6 @@ function requireSelector$1 () {
|
|
|
5282
5330
|
}
|
|
5283
5331
|
return Selector;
|
|
5284
5332
|
}(_container["default"]);
|
|
5285
|
-
exports["default"] = Selector;
|
|
5286
5333
|
module.exports = exports.default;
|
|
5287
5334
|
} (selector$1, selector$1.exports));
|
|
5288
5335
|
return selector$1.exports;
|
|
@@ -5421,12 +5468,14 @@ function requireClassName$1 () {
|
|
|
5421
5468
|
var _util = /*@__PURE__*/ requireUtil$2();
|
|
5422
5469
|
var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$2());
|
|
5423
5470
|
var _types = /*@__PURE__*/ requireTypes$1();
|
|
5424
|
-
function _interopRequireDefault(
|
|
5425
|
-
function _defineProperties(
|
|
5426
|
-
function _createClass(
|
|
5427
|
-
function
|
|
5428
|
-
function
|
|
5429
|
-
|
|
5471
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
5472
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
5473
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", { writable: false }), e; }
|
|
5474
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5475
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return (String )(t); }
|
|
5476
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
5477
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
5478
|
+
exports["default"] = /*#__PURE__*/function (_Node) {
|
|
5430
5479
|
_inheritsLoose(ClassName, _Node);
|
|
5431
5480
|
function ClassName(opts) {
|
|
5432
5481
|
var _this;
|
|
@@ -5461,7 +5510,6 @@ function requireClassName$1 () {
|
|
|
5461
5510
|
}]);
|
|
5462
5511
|
return ClassName;
|
|
5463
5512
|
}(_node["default"]);
|
|
5464
|
-
exports["default"] = ClassName;
|
|
5465
5513
|
module.exports = exports.default;
|
|
5466
5514
|
} (className$1, className$1.exports));
|
|
5467
5515
|
return className$1.exports;
|
|
@@ -5480,10 +5528,10 @@ function requireComment$1 () {
|
|
|
5480
5528
|
exports["default"] = void 0;
|
|
5481
5529
|
var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$2());
|
|
5482
5530
|
var _types = /*@__PURE__*/ requireTypes$1();
|
|
5483
|
-
function _interopRequireDefault(
|
|
5484
|
-
function _inheritsLoose(
|
|
5485
|
-
function _setPrototypeOf(
|
|
5486
|
-
|
|
5531
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
5532
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
5533
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
5534
|
+
exports["default"] = /*#__PURE__*/function (_Node) {
|
|
5487
5535
|
_inheritsLoose(Comment, _Node);
|
|
5488
5536
|
function Comment(opts) {
|
|
5489
5537
|
var _this;
|
|
@@ -5493,7 +5541,6 @@ function requireComment$1 () {
|
|
|
5493
5541
|
}
|
|
5494
5542
|
return Comment;
|
|
5495
5543
|
}(_node["default"]);
|
|
5496
|
-
exports["default"] = Comment;
|
|
5497
5544
|
module.exports = exports.default;
|
|
5498
5545
|
} (comment$1, comment$1.exports));
|
|
5499
5546
|
return comment$1.exports;
|
|
@@ -5512,10 +5559,10 @@ function requireId$1 () {
|
|
|
5512
5559
|
exports["default"] = void 0;
|
|
5513
5560
|
var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$2());
|
|
5514
5561
|
var _types = /*@__PURE__*/ requireTypes$1();
|
|
5515
|
-
function _interopRequireDefault(
|
|
5516
|
-
function _inheritsLoose(
|
|
5517
|
-
function _setPrototypeOf(
|
|
5518
|
-
|
|
5562
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
5563
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
5564
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
5565
|
+
exports["default"] = /*#__PURE__*/function (_Node) {
|
|
5519
5566
|
_inheritsLoose(ID, _Node);
|
|
5520
5567
|
function ID(opts) {
|
|
5521
5568
|
var _this;
|
|
@@ -5529,7 +5576,6 @@ function requireId$1 () {
|
|
|
5529
5576
|
};
|
|
5530
5577
|
return ID;
|
|
5531
5578
|
}(_node["default"]);
|
|
5532
|
-
exports["default"] = ID;
|
|
5533
5579
|
module.exports = exports.default;
|
|
5534
5580
|
} (id$1, id$1.exports));
|
|
5535
5581
|
return id$1.exports;
|
|
@@ -5551,12 +5597,14 @@ function requireNamespace$1 () {
|
|
|
5551
5597
|
var _cssesc = _interopRequireDefault(/*@__PURE__*/ requireCssesc());
|
|
5552
5598
|
var _util = /*@__PURE__*/ requireUtil$2();
|
|
5553
5599
|
var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$2());
|
|
5554
|
-
function _interopRequireDefault(
|
|
5555
|
-
function _defineProperties(
|
|
5556
|
-
function _createClass(
|
|
5557
|
-
function
|
|
5558
|
-
function
|
|
5559
|
-
|
|
5600
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
5601
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
5602
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", { writable: false }), e; }
|
|
5603
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5604
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return (String )(t); }
|
|
5605
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
5606
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
5607
|
+
exports["default"] = /*#__PURE__*/function (_Node) {
|
|
5560
5608
|
_inheritsLoose(Namespace, _Node);
|
|
5561
5609
|
function Namespace() {
|
|
5562
5610
|
return _Node.apply(this, arguments) || this;
|
|
@@ -5621,7 +5669,6 @@ function requireNamespace$1 () {
|
|
|
5621
5669
|
}]);
|
|
5622
5670
|
return Namespace;
|
|
5623
5671
|
}(_node["default"]);
|
|
5624
|
-
exports["default"] = Namespace;
|
|
5625
5672
|
module.exports = exports.default;
|
|
5626
5673
|
} (namespace$1, namespace$1.exports));
|
|
5627
5674
|
return namespace$1.exports;
|
|
@@ -5638,10 +5685,10 @@ function requireTag$1 () {
|
|
|
5638
5685
|
exports["default"] = void 0;
|
|
5639
5686
|
var _namespace = _interopRequireDefault(/*@__PURE__*/ requireNamespace$1());
|
|
5640
5687
|
var _types = /*@__PURE__*/ requireTypes$1();
|
|
5641
|
-
function _interopRequireDefault(
|
|
5642
|
-
function _inheritsLoose(
|
|
5643
|
-
function _setPrototypeOf(
|
|
5644
|
-
|
|
5688
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
5689
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
5690
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
5691
|
+
exports["default"] = /*#__PURE__*/function (_Namespace) {
|
|
5645
5692
|
_inheritsLoose(Tag, _Namespace);
|
|
5646
5693
|
function Tag(opts) {
|
|
5647
5694
|
var _this;
|
|
@@ -5651,7 +5698,6 @@ function requireTag$1 () {
|
|
|
5651
5698
|
}
|
|
5652
5699
|
return Tag;
|
|
5653
5700
|
}(_namespace["default"]);
|
|
5654
|
-
exports["default"] = Tag;
|
|
5655
5701
|
module.exports = exports.default;
|
|
5656
5702
|
} (tag$1, tag$1.exports));
|
|
5657
5703
|
return tag$1.exports;
|
|
@@ -5670,10 +5716,10 @@ function requireString$1 () {
|
|
|
5670
5716
|
exports["default"] = void 0;
|
|
5671
5717
|
var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$2());
|
|
5672
5718
|
var _types = /*@__PURE__*/ requireTypes$1();
|
|
5673
|
-
function _interopRequireDefault(
|
|
5674
|
-
function _inheritsLoose(
|
|
5675
|
-
function _setPrototypeOf(
|
|
5676
|
-
|
|
5719
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
5720
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
5721
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
5722
|
+
exports["default"] = /*#__PURE__*/function (_Node) {
|
|
5677
5723
|
_inheritsLoose(String, _Node);
|
|
5678
5724
|
function String(opts) {
|
|
5679
5725
|
var _this;
|
|
@@ -5683,7 +5729,6 @@ function requireString$1 () {
|
|
|
5683
5729
|
}
|
|
5684
5730
|
return String;
|
|
5685
5731
|
}(_node["default"]);
|
|
5686
|
-
exports["default"] = String;
|
|
5687
5732
|
module.exports = exports.default;
|
|
5688
5733
|
} (string$1, string$1.exports));
|
|
5689
5734
|
return string$1.exports;
|
|
@@ -5702,10 +5747,10 @@ function requirePseudo$1 () {
|
|
|
5702
5747
|
exports["default"] = void 0;
|
|
5703
5748
|
var _container = _interopRequireDefault(/*@__PURE__*/ requireContainer$1());
|
|
5704
5749
|
var _types = /*@__PURE__*/ requireTypes$1();
|
|
5705
|
-
function _interopRequireDefault(
|
|
5706
|
-
function _inheritsLoose(
|
|
5707
|
-
function _setPrototypeOf(
|
|
5708
|
-
|
|
5750
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
5751
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
5752
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
5753
|
+
exports["default"] = /*#__PURE__*/function (_Container) {
|
|
5709
5754
|
_inheritsLoose(Pseudo, _Container);
|
|
5710
5755
|
function Pseudo(opts) {
|
|
5711
5756
|
var _this;
|
|
@@ -5714,13 +5759,17 @@ function requirePseudo$1 () {
|
|
|
5714
5759
|
return _this;
|
|
5715
5760
|
}
|
|
5716
5761
|
var _proto = Pseudo.prototype;
|
|
5717
|
-
_proto.
|
|
5718
|
-
|
|
5762
|
+
_proto._stringify = function _stringify(options, depth, max) {
|
|
5763
|
+
if (depth >= max) {
|
|
5764
|
+
throw new Error("Cannot serialize selector: nesting depth exceeds the maximum of " + max + ".");
|
|
5765
|
+
}
|
|
5766
|
+
var params = this.length ? '(' + this.map(function (child) {
|
|
5767
|
+
return child._stringify(options, depth + 1, max);
|
|
5768
|
+
}).join(',') + ')' : '';
|
|
5719
5769
|
return [this.rawSpaceBefore, this.stringifyProperty("value"), params, this.rawSpaceAfter].join('');
|
|
5720
5770
|
};
|
|
5721
5771
|
return Pseudo;
|
|
5722
5772
|
}(_container["default"]);
|
|
5723
|
-
exports["default"] = Pseudo;
|
|
5724
5773
|
module.exports = exports.default;
|
|
5725
5774
|
} (pseudo$1, pseudo$1.exports));
|
|
5726
5775
|
return pseudo$1.exports;
|
|
@@ -5757,11 +5806,13 @@ function requireAttribute$1 () {
|
|
|
5757
5806
|
var _namespace = _interopRequireDefault(/*@__PURE__*/ requireNamespace$1());
|
|
5758
5807
|
var _types = /*@__PURE__*/ requireTypes$1();
|
|
5759
5808
|
var _CSSESC_QUOTE_OPTIONS;
|
|
5760
|
-
function _interopRequireDefault(
|
|
5761
|
-
function _defineProperties(
|
|
5762
|
-
function _createClass(
|
|
5763
|
-
function
|
|
5764
|
-
function
|
|
5809
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
5810
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
5811
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", { writable: false }), e; }
|
|
5812
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5813
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return (String )(t); }
|
|
5814
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
5815
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
5765
5816
|
var deprecate = /*@__PURE__*/ requireNode$1();
|
|
5766
5817
|
var WRAPPED_IN_QUOTES = /^('|")([^]*)\1$/;
|
|
5767
5818
|
var warnOfDeprecatedValueAssignment = deprecate(function () {}, "Assigning an attribute a value containing characters that might need to be escaped is deprecated. " + "Call attribute.setValue() instead.");
|
|
@@ -5807,7 +5858,7 @@ function requireAttribute$1 () {
|
|
|
5807
5858
|
opts.quoteMark = quoteMark;
|
|
5808
5859
|
return opts;
|
|
5809
5860
|
}
|
|
5810
|
-
var Attribute = /*#__PURE__*/function (_Namespace) {
|
|
5861
|
+
var Attribute = exports["default"] = /*#__PURE__*/function (_Namespace) {
|
|
5811
5862
|
_inheritsLoose(Attribute, _Namespace);
|
|
5812
5863
|
function Attribute(opts) {
|
|
5813
5864
|
var _this;
|
|
@@ -6176,7 +6227,6 @@ function requireAttribute$1 () {
|
|
|
6176
6227
|
}]);
|
|
6177
6228
|
return Attribute;
|
|
6178
6229
|
}(_namespace["default"]);
|
|
6179
|
-
exports["default"] = Attribute;
|
|
6180
6230
|
Attribute.NO_QUOTE = null;
|
|
6181
6231
|
Attribute.SINGLE_QUOTE = "'";
|
|
6182
6232
|
Attribute.DOUBLE_QUOTE = '"';
|
|
@@ -6212,10 +6262,10 @@ function requireUniversal$1 () {
|
|
|
6212
6262
|
exports["default"] = void 0;
|
|
6213
6263
|
var _namespace = _interopRequireDefault(/*@__PURE__*/ requireNamespace$1());
|
|
6214
6264
|
var _types = /*@__PURE__*/ requireTypes$1();
|
|
6215
|
-
function _interopRequireDefault(
|
|
6216
|
-
function _inheritsLoose(
|
|
6217
|
-
function _setPrototypeOf(
|
|
6218
|
-
|
|
6265
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
6266
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
6267
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
6268
|
+
exports["default"] = /*#__PURE__*/function (_Namespace) {
|
|
6219
6269
|
_inheritsLoose(Universal, _Namespace);
|
|
6220
6270
|
function Universal(opts) {
|
|
6221
6271
|
var _this;
|
|
@@ -6226,7 +6276,6 @@ function requireUniversal$1 () {
|
|
|
6226
6276
|
}
|
|
6227
6277
|
return Universal;
|
|
6228
6278
|
}(_namespace["default"]);
|
|
6229
|
-
exports["default"] = Universal;
|
|
6230
6279
|
module.exports = exports.default;
|
|
6231
6280
|
} (universal$1, universal$1.exports));
|
|
6232
6281
|
return universal$1.exports;
|
|
@@ -6245,10 +6294,10 @@ function requireCombinator$1 () {
|
|
|
6245
6294
|
exports["default"] = void 0;
|
|
6246
6295
|
var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$2());
|
|
6247
6296
|
var _types = /*@__PURE__*/ requireTypes$1();
|
|
6248
|
-
function _interopRequireDefault(
|
|
6249
|
-
function _inheritsLoose(
|
|
6250
|
-
function _setPrototypeOf(
|
|
6251
|
-
|
|
6297
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
6298
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
6299
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
6300
|
+
exports["default"] = /*#__PURE__*/function (_Node) {
|
|
6252
6301
|
_inheritsLoose(Combinator, _Node);
|
|
6253
6302
|
function Combinator(opts) {
|
|
6254
6303
|
var _this;
|
|
@@ -6258,7 +6307,6 @@ function requireCombinator$1 () {
|
|
|
6258
6307
|
}
|
|
6259
6308
|
return Combinator;
|
|
6260
6309
|
}(_node["default"]);
|
|
6261
|
-
exports["default"] = Combinator;
|
|
6262
6310
|
module.exports = exports.default;
|
|
6263
6311
|
} (combinator$1, combinator$1.exports));
|
|
6264
6312
|
return combinator$1.exports;
|
|
@@ -6277,10 +6325,10 @@ function requireNesting$1 () {
|
|
|
6277
6325
|
exports["default"] = void 0;
|
|
6278
6326
|
var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$2());
|
|
6279
6327
|
var _types = /*@__PURE__*/ requireTypes$1();
|
|
6280
|
-
function _interopRequireDefault(
|
|
6281
|
-
function _inheritsLoose(
|
|
6282
|
-
function _setPrototypeOf(
|
|
6283
|
-
|
|
6328
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
6329
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
6330
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
6331
|
+
exports["default"] = /*#__PURE__*/function (_Node) {
|
|
6284
6332
|
_inheritsLoose(Nesting, _Node);
|
|
6285
6333
|
function Nesting(opts) {
|
|
6286
6334
|
var _this;
|
|
@@ -6291,7 +6339,6 @@ function requireNesting$1 () {
|
|
|
6291
6339
|
}
|
|
6292
6340
|
return Nesting;
|
|
6293
6341
|
}(_node["default"]);
|
|
6294
|
-
exports["default"] = Nesting;
|
|
6295
6342
|
module.exports = exports.default;
|
|
6296
6343
|
} (nesting$1, nesting$1.exports));
|
|
6297
6344
|
return nesting$1.exports;
|
|
@@ -6330,72 +6377,42 @@ function requireTokenTypes$1 () {
|
|
|
6330
6377
|
|
|
6331
6378
|
tokenTypes$1.__esModule = true;
|
|
6332
6379
|
tokenTypes$1.word = tokenTypes$1.tilde = tokenTypes$1.tab = tokenTypes$1.str = tokenTypes$1.space = tokenTypes$1.slash = tokenTypes$1.singleQuote = tokenTypes$1.semicolon = tokenTypes$1.plus = tokenTypes$1.pipe = tokenTypes$1.openSquare = tokenTypes$1.openParenthesis = tokenTypes$1.newline = tokenTypes$1.greaterThan = tokenTypes$1.feed = tokenTypes$1.equals = tokenTypes$1.doubleQuote = tokenTypes$1.dollar = tokenTypes$1.cr = tokenTypes$1.comment = tokenTypes$1.comma = tokenTypes$1.combinator = tokenTypes$1.colon = tokenTypes$1.closeSquare = tokenTypes$1.closeParenthesis = tokenTypes$1.caret = tokenTypes$1.bang = tokenTypes$1.backslash = tokenTypes$1.at = tokenTypes$1.asterisk = tokenTypes$1.ampersand = void 0;
|
|
6333
|
-
|
|
6334
|
-
tokenTypes$1.
|
|
6335
|
-
|
|
6336
|
-
tokenTypes$1.
|
|
6337
|
-
|
|
6338
|
-
tokenTypes$1.
|
|
6339
|
-
|
|
6340
|
-
tokenTypes$1.
|
|
6341
|
-
|
|
6342
|
-
tokenTypes$1.
|
|
6343
|
-
|
|
6344
|
-
tokenTypes$1.
|
|
6345
|
-
|
|
6346
|
-
tokenTypes$1.
|
|
6347
|
-
|
|
6348
|
-
tokenTypes$1.
|
|
6349
|
-
|
|
6350
|
-
tokenTypes$1.
|
|
6351
|
-
var
|
|
6352
|
-
tokenTypes$1.
|
|
6353
|
-
|
|
6354
|
-
tokenTypes$1.
|
|
6355
|
-
|
|
6356
|
-
tokenTypes$1.
|
|
6357
|
-
|
|
6358
|
-
tokenTypes$1.
|
|
6359
|
-
|
|
6360
|
-
tokenTypes$1.
|
|
6361
|
-
var equals = 61; // `=`.charCodeAt(0);
|
|
6362
|
-
tokenTypes$1.equals = equals;
|
|
6363
|
-
var pipe = 124; // `|`.charCodeAt(0);
|
|
6364
|
-
tokenTypes$1.pipe = pipe;
|
|
6365
|
-
var greaterThan = 62; // `>`.charCodeAt(0);
|
|
6366
|
-
tokenTypes$1.greaterThan = greaterThan;
|
|
6367
|
-
var space = 32; // ` `.charCodeAt(0);
|
|
6368
|
-
tokenTypes$1.space = space;
|
|
6369
|
-
var singleQuote = 39; // `'`.charCodeAt(0);
|
|
6370
|
-
tokenTypes$1.singleQuote = singleQuote;
|
|
6371
|
-
var doubleQuote = 34; // `"`.charCodeAt(0);
|
|
6372
|
-
tokenTypes$1.doubleQuote = doubleQuote;
|
|
6373
|
-
var slash = 47; // `/`.charCodeAt(0);
|
|
6374
|
-
tokenTypes$1.slash = slash;
|
|
6375
|
-
var bang = 33; // `!`.charCodeAt(0);
|
|
6376
|
-
tokenTypes$1.bang = bang;
|
|
6377
|
-
var backslash = 92; // '\\'.charCodeAt(0);
|
|
6378
|
-
tokenTypes$1.backslash = backslash;
|
|
6379
|
-
var cr = 13; // '\r'.charCodeAt(0);
|
|
6380
|
-
tokenTypes$1.cr = cr;
|
|
6381
|
-
var feed = 12; // '\f'.charCodeAt(0);
|
|
6382
|
-
tokenTypes$1.feed = feed;
|
|
6383
|
-
var newline = 10; // '\n'.charCodeAt(0);
|
|
6384
|
-
tokenTypes$1.newline = newline;
|
|
6385
|
-
var tab = 9; // '\t'.charCodeAt(0);
|
|
6380
|
+
tokenTypes$1.ampersand = 38; // `&`.charCodeAt(0);
|
|
6381
|
+
tokenTypes$1.asterisk = 42; // `*`.charCodeAt(0);
|
|
6382
|
+
tokenTypes$1.at = 64; // `@`.charCodeAt(0);
|
|
6383
|
+
tokenTypes$1.comma = 44; // `,`.charCodeAt(0);
|
|
6384
|
+
tokenTypes$1.colon = 58; // `:`.charCodeAt(0);
|
|
6385
|
+
tokenTypes$1.semicolon = 59; // `;`.charCodeAt(0);
|
|
6386
|
+
tokenTypes$1.openParenthesis = 40; // `(`.charCodeAt(0);
|
|
6387
|
+
tokenTypes$1.closeParenthesis = 41; // `)`.charCodeAt(0);
|
|
6388
|
+
tokenTypes$1.openSquare = 91; // `[`.charCodeAt(0);
|
|
6389
|
+
tokenTypes$1.closeSquare = 93; // `]`.charCodeAt(0);
|
|
6390
|
+
tokenTypes$1.dollar = 36; // `$`.charCodeAt(0);
|
|
6391
|
+
tokenTypes$1.tilde = 126; // `~`.charCodeAt(0);
|
|
6392
|
+
tokenTypes$1.caret = 94; // `^`.charCodeAt(0);
|
|
6393
|
+
tokenTypes$1.plus = 43; // `+`.charCodeAt(0);
|
|
6394
|
+
tokenTypes$1.equals = 61; // `=`.charCodeAt(0);
|
|
6395
|
+
tokenTypes$1.pipe = 124; // `|`.charCodeAt(0);
|
|
6396
|
+
tokenTypes$1.greaterThan = 62; // `>`.charCodeAt(0);
|
|
6397
|
+
tokenTypes$1.space = 32; // ` `.charCodeAt(0);
|
|
6398
|
+
var singleQuote = tokenTypes$1.singleQuote = 39; // `'`.charCodeAt(0);
|
|
6399
|
+
tokenTypes$1.doubleQuote = 34; // `"`.charCodeAt(0);
|
|
6400
|
+
tokenTypes$1.slash = 47; // `/`.charCodeAt(0);
|
|
6401
|
+
tokenTypes$1.bang = 33; // `!`.charCodeAt(0);
|
|
6402
|
+
|
|
6403
|
+
tokenTypes$1.backslash = 92; // '\\'.charCodeAt(0);
|
|
6404
|
+
tokenTypes$1.cr = 13; // '\r'.charCodeAt(0);
|
|
6405
|
+
tokenTypes$1.feed = 12; // '\f'.charCodeAt(0);
|
|
6406
|
+
tokenTypes$1.newline = 10; // '\n'.charCodeAt(0);
|
|
6407
|
+
tokenTypes$1.tab = 9; // '\t'.charCodeAt(0);
|
|
6386
6408
|
|
|
6387
6409
|
// Expose aliases primarily for readability.
|
|
6388
|
-
tokenTypes$1.
|
|
6389
|
-
var str = singleQuote;
|
|
6410
|
+
tokenTypes$1.str = singleQuote;
|
|
6390
6411
|
|
|
6391
6412
|
// No good single character representation!
|
|
6392
|
-
tokenTypes$1.
|
|
6393
|
-
|
|
6394
|
-
tokenTypes$1.
|
|
6395
|
-
var word = -2;
|
|
6396
|
-
tokenTypes$1.word = word;
|
|
6397
|
-
var combinator = -3;
|
|
6398
|
-
tokenTypes$1.combinator = combinator;
|
|
6413
|
+
tokenTypes$1.comment = -1;
|
|
6414
|
+
tokenTypes$1.word = -2;
|
|
6415
|
+
tokenTypes$1.combinator = -3;
|
|
6399
6416
|
return tokenTypes$1;
|
|
6400
6417
|
}
|
|
6401
6418
|
|
|
@@ -6411,8 +6428,7 @@ function requireTokenize$1 () {
|
|
|
6411
6428
|
exports["default"] = tokenize;
|
|
6412
6429
|
var t = _interopRequireWildcard(/*@__PURE__*/ requireTokenTypes$1());
|
|
6413
6430
|
var _unescapable, _wordDelimiters;
|
|
6414
|
-
function
|
|
6415
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
6431
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) { "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); } return f; })(e, t); }
|
|
6416
6432
|
var unescapable = (_unescapable = {}, _unescapable[t.tab] = true, _unescapable[t.newline] = true, _unescapable[t.cr] = true, _unescapable[t.feed] = true, _unescapable);
|
|
6417
6433
|
var wordDelimiters = (_wordDelimiters = {}, _wordDelimiters[t.space] = true, _wordDelimiters[t.tab] = true, _wordDelimiters[t.newline] = true, _wordDelimiters[t.cr] = true, _wordDelimiters[t.feed] = true, _wordDelimiters[t.ampersand] = true, _wordDelimiters[t.asterisk] = true, _wordDelimiters[t.bang] = true, _wordDelimiters[t.comma] = true, _wordDelimiters[t.colon] = true, _wordDelimiters[t.semicolon] = true, _wordDelimiters[t.openParenthesis] = true, _wordDelimiters[t.closeParenthesis] = true, _wordDelimiters[t.openSquare] = true, _wordDelimiters[t.closeSquare] = true, _wordDelimiters[t.singleQuote] = true, _wordDelimiters[t.doubleQuote] = true, _wordDelimiters[t.plus] = true, _wordDelimiters[t.pipe] = true, _wordDelimiters[t.tilde] = true, _wordDelimiters[t.greaterThan] = true, _wordDelimiters[t.equals] = true, _wordDelimiters[t.dollar] = true, _wordDelimiters[t.caret] = true, _wordDelimiters[t.slash] = true, _wordDelimiters);
|
|
6418
6434
|
var hex = {};
|
|
@@ -6469,7 +6485,7 @@ function requireTokenize$1 () {
|
|
|
6469
6485
|
}
|
|
6470
6486
|
return next;
|
|
6471
6487
|
}
|
|
6472
|
-
|
|
6488
|
+
exports.FIELDS = {
|
|
6473
6489
|
TYPE: 0,
|
|
6474
6490
|
START_LINE: 1,
|
|
6475
6491
|
START_COL: 2,
|
|
@@ -6478,7 +6494,6 @@ function requireTokenize$1 () {
|
|
|
6478
6494
|
START_POS: 5,
|
|
6479
6495
|
END_POS: 6
|
|
6480
6496
|
};
|
|
6481
|
-
exports.FIELDS = FIELDS;
|
|
6482
6497
|
function tokenize(input) {
|
|
6483
6498
|
var tokens = [];
|
|
6484
6499
|
var css = input.css.valueOf();
|
|
@@ -6672,11 +6687,12 @@ function requireParser$2 () {
|
|
|
6672
6687
|
var types = _interopRequireWildcard(/*@__PURE__*/ requireTypes$1());
|
|
6673
6688
|
var _util = /*@__PURE__*/ requireUtil$2();
|
|
6674
6689
|
var _WHITESPACE_TOKENS, _Object$assign;
|
|
6675
|
-
function
|
|
6676
|
-
function
|
|
6677
|
-
function
|
|
6678
|
-
function
|
|
6679
|
-
function
|
|
6690
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) { "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); } return f; })(e, t); }
|
|
6691
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
6692
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
6693
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", { writable: false }), e; }
|
|
6694
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6695
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return (String )(t); }
|
|
6680
6696
|
var WHITESPACE_TOKENS = (_WHITESPACE_TOKENS = {}, _WHITESPACE_TOKENS[tokens.space] = true, _WHITESPACE_TOKENS[tokens.cr] = true, _WHITESPACE_TOKENS[tokens.feed] = true, _WHITESPACE_TOKENS[tokens.newline] = true, _WHITESPACE_TOKENS[tokens.tab] = true, _WHITESPACE_TOKENS);
|
|
6681
6697
|
var WHITESPACE_EQUIV_TOKENS = Object.assign({}, WHITESPACE_TOKENS, (_Object$assign = {}, _Object$assign[tokens.comment] = true, _Object$assign));
|
|
6682
6698
|
function tokenStart(token) {
|
|
@@ -6740,7 +6756,7 @@ function requireParser$2 () {
|
|
|
6740
6756
|
return i === list.indexOf(item);
|
|
6741
6757
|
});
|
|
6742
6758
|
}
|
|
6743
|
-
|
|
6759
|
+
exports["default"] = /*#__PURE__*/function () {
|
|
6744
6760
|
function Parser(rule, options) {
|
|
6745
6761
|
if (options === void 0) {
|
|
6746
6762
|
options = {};
|
|
@@ -6751,6 +6767,8 @@ function requireParser$2 () {
|
|
|
6751
6767
|
safe: false
|
|
6752
6768
|
}, options);
|
|
6753
6769
|
this.position = 0;
|
|
6770
|
+
this.nestingDepth = 0;
|
|
6771
|
+
this.maxNestingDepth = (0, _util.resolveMaxNestingDepth)(this.options.maxNestingDepth);
|
|
6754
6772
|
this.css = typeof this.rule === 'string' ? this.rule : this.rule.selector;
|
|
6755
6773
|
this.tokens = (0, _tokenize["default"])({
|
|
6756
6774
|
css: this.css,
|
|
@@ -7305,20 +7323,34 @@ function requireParser$2 () {
|
|
|
7305
7323
|
var cache = this.current;
|
|
7306
7324
|
last.append(selector);
|
|
7307
7325
|
this.current = selector;
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
|
|
7326
|
+
// Track nesting depth so deeply nested pseudo selectors raise a
|
|
7327
|
+
// catchable error instead of overflowing the call stack. The
|
|
7328
|
+
// counter is restored in `finally` so the parser is never left in
|
|
7329
|
+
// an inconsistent state, even on the error path.
|
|
7330
|
+
this.nestingDepth++;
|
|
7331
|
+
try {
|
|
7332
|
+
if (this.nestingDepth > this.maxNestingDepth) {
|
|
7333
|
+
this.error("Cannot parse selector: nesting depth exceeds the maximum of " + this.maxNestingDepth + ".", {
|
|
7334
|
+
index: this.currToken[_tokenize.FIELDS.START_POS]
|
|
7335
|
+
});
|
|
7314
7336
|
}
|
|
7315
|
-
|
|
7316
|
-
this.
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
this.
|
|
7320
|
-
|
|
7337
|
+
while (this.position < this.tokens.length && unbalanced) {
|
|
7338
|
+
if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis) {
|
|
7339
|
+
unbalanced++;
|
|
7340
|
+
}
|
|
7341
|
+
if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) {
|
|
7342
|
+
unbalanced--;
|
|
7343
|
+
}
|
|
7344
|
+
if (unbalanced) {
|
|
7345
|
+
this.parse();
|
|
7346
|
+
} else {
|
|
7347
|
+
this.current.source.end = tokenEnd(this.currToken);
|
|
7348
|
+
this.current.parent.source.end = tokenEnd(this.currToken);
|
|
7349
|
+
this.position++;
|
|
7350
|
+
}
|
|
7321
7351
|
}
|
|
7352
|
+
} finally {
|
|
7353
|
+
this.nestingDepth--;
|
|
7322
7354
|
}
|
|
7323
7355
|
this.current = cache;
|
|
7324
7356
|
} else {
|
|
@@ -7661,7 +7693,6 @@ function requireParser$2 () {
|
|
|
7661
7693
|
}]);
|
|
7662
7694
|
return Parser;
|
|
7663
7695
|
}();
|
|
7664
|
-
exports["default"] = Parser;
|
|
7665
7696
|
module.exports = exports.default;
|
|
7666
7697
|
} (parser$1, parser$1.exports));
|
|
7667
7698
|
return parser$1.exports;
|
|
@@ -7677,8 +7708,8 @@ function requireProcessor$1 () {
|
|
|
7677
7708
|
exports.__esModule = true;
|
|
7678
7709
|
exports["default"] = void 0;
|
|
7679
7710
|
var _parser = _interopRequireDefault(/*@__PURE__*/ requireParser$2());
|
|
7680
|
-
function _interopRequireDefault(
|
|
7681
|
-
|
|
7711
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
7712
|
+
exports["default"] = /*#__PURE__*/function () {
|
|
7682
7713
|
function Processor(func, options) {
|
|
7683
7714
|
this.func = func || function noop() {};
|
|
7684
7715
|
this.funcRes = null;
|
|
@@ -7715,8 +7746,16 @@ function requireProcessor$1 () {
|
|
|
7715
7746
|
return parser.root;
|
|
7716
7747
|
};
|
|
7717
7748
|
_proto._parseOptions = function _parseOptions(options) {
|
|
7749
|
+
var merged = Object.assign({}, this.options, options);
|
|
7718
7750
|
return {
|
|
7719
|
-
lossy: this._isLossy(
|
|
7751
|
+
lossy: this._isLossy(merged),
|
|
7752
|
+
maxNestingDepth: merged.maxNestingDepth
|
|
7753
|
+
};
|
|
7754
|
+
};
|
|
7755
|
+
_proto._stringifyOptions = function _stringifyOptions(options) {
|
|
7756
|
+
var merged = Object.assign({}, this.options, options);
|
|
7757
|
+
return {
|
|
7758
|
+
maxNestingDepth: merged.maxNestingDepth
|
|
7720
7759
|
};
|
|
7721
7760
|
};
|
|
7722
7761
|
_proto._run = function _run(rule, options) {
|
|
@@ -7730,7 +7769,7 @@ function requireProcessor$1 () {
|
|
|
7730
7769
|
Promise.resolve(_this.func(root)).then(function (transform) {
|
|
7731
7770
|
var string = undefined;
|
|
7732
7771
|
if (_this._shouldUpdateSelector(rule, options)) {
|
|
7733
|
-
string = root.toString();
|
|
7772
|
+
string = root.toString(_this._stringifyOptions(options));
|
|
7734
7773
|
rule.selector = string;
|
|
7735
7774
|
}
|
|
7736
7775
|
return {
|
|
@@ -7756,7 +7795,7 @@ function requireProcessor$1 () {
|
|
|
7756
7795
|
}
|
|
7757
7796
|
var string = undefined;
|
|
7758
7797
|
if (options.updateSelector && typeof rule !== "string") {
|
|
7759
|
-
string = root.toString();
|
|
7798
|
+
string = root.toString(this._stringifyOptions(options));
|
|
7760
7799
|
rule.selector = string;
|
|
7761
7800
|
}
|
|
7762
7801
|
return {
|
|
@@ -7822,8 +7861,9 @@ function requireProcessor$1 () {
|
|
|
7822
7861
|
* @returns {string} the selector after processing.
|
|
7823
7862
|
*/;
|
|
7824
7863
|
_proto.process = function process(rule, options) {
|
|
7864
|
+
var _this2 = this;
|
|
7825
7865
|
return this._run(rule, options).then(function (result) {
|
|
7826
|
-
return result.string || result.root.toString();
|
|
7866
|
+
return result.string || result.root.toString(_this2._stringifyOptions(options));
|
|
7827
7867
|
});
|
|
7828
7868
|
}
|
|
7829
7869
|
|
|
@@ -7836,11 +7876,10 @@ function requireProcessor$1 () {
|
|
|
7836
7876
|
*/;
|
|
7837
7877
|
_proto.processSync = function processSync(rule, options) {
|
|
7838
7878
|
var result = this._runSync(rule, options);
|
|
7839
|
-
return result.string || result.root.toString();
|
|
7879
|
+
return result.string || result.root.toString(this._stringifyOptions(options));
|
|
7840
7880
|
};
|
|
7841
7881
|
return Processor;
|
|
7842
7882
|
}();
|
|
7843
|
-
exports["default"] = Processor;
|
|
7844
7883
|
module.exports = exports.default;
|
|
7845
7884
|
} (processor$1, processor$1.exports));
|
|
7846
7885
|
return processor$1.exports;
|
|
@@ -7870,55 +7909,43 @@ function requireConstructors$1 () {
|
|
|
7870
7909
|
var _string = _interopRequireDefault(/*@__PURE__*/ requireString$1());
|
|
7871
7910
|
var _tag = _interopRequireDefault(/*@__PURE__*/ requireTag$1());
|
|
7872
7911
|
var _universal = _interopRequireDefault(/*@__PURE__*/ requireUniversal$1());
|
|
7873
|
-
function _interopRequireDefault(
|
|
7874
|
-
|
|
7912
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
7913
|
+
constructors$1.attribute = function attribute(opts) {
|
|
7875
7914
|
return new _attribute["default"](opts);
|
|
7876
7915
|
};
|
|
7877
|
-
constructors$1.
|
|
7878
|
-
var className = function className(opts) {
|
|
7916
|
+
constructors$1.className = function className(opts) {
|
|
7879
7917
|
return new _className["default"](opts);
|
|
7880
7918
|
};
|
|
7881
|
-
constructors$1.
|
|
7882
|
-
var combinator = function combinator(opts) {
|
|
7919
|
+
constructors$1.combinator = function combinator(opts) {
|
|
7883
7920
|
return new _combinator["default"](opts);
|
|
7884
7921
|
};
|
|
7885
|
-
constructors$1.
|
|
7886
|
-
var comment = function comment(opts) {
|
|
7922
|
+
constructors$1.comment = function comment(opts) {
|
|
7887
7923
|
return new _comment["default"](opts);
|
|
7888
7924
|
};
|
|
7889
|
-
constructors$1.
|
|
7890
|
-
var id = function id(opts) {
|
|
7925
|
+
constructors$1.id = function id(opts) {
|
|
7891
7926
|
return new _id["default"](opts);
|
|
7892
7927
|
};
|
|
7893
|
-
constructors$1.
|
|
7894
|
-
var nesting = function nesting(opts) {
|
|
7928
|
+
constructors$1.nesting = function nesting(opts) {
|
|
7895
7929
|
return new _nesting["default"](opts);
|
|
7896
7930
|
};
|
|
7897
|
-
constructors$1.
|
|
7898
|
-
var pseudo = function pseudo(opts) {
|
|
7931
|
+
constructors$1.pseudo = function pseudo(opts) {
|
|
7899
7932
|
return new _pseudo["default"](opts);
|
|
7900
7933
|
};
|
|
7901
|
-
constructors$1.
|
|
7902
|
-
var root = function root(opts) {
|
|
7934
|
+
constructors$1.root = function root(opts) {
|
|
7903
7935
|
return new _root["default"](opts);
|
|
7904
7936
|
};
|
|
7905
|
-
constructors$1.
|
|
7906
|
-
var selector = function selector(opts) {
|
|
7937
|
+
constructors$1.selector = function selector(opts) {
|
|
7907
7938
|
return new _selector["default"](opts);
|
|
7908
7939
|
};
|
|
7909
|
-
constructors$1.
|
|
7910
|
-
var string = function string(opts) {
|
|
7940
|
+
constructors$1.string = function string(opts) {
|
|
7911
7941
|
return new _string["default"](opts);
|
|
7912
7942
|
};
|
|
7913
|
-
constructors$1.
|
|
7914
|
-
var tag = function tag(opts) {
|
|
7943
|
+
constructors$1.tag = function tag(opts) {
|
|
7915
7944
|
return new _tag["default"](opts);
|
|
7916
7945
|
};
|
|
7917
|
-
constructors$1.
|
|
7918
|
-
var universal = function universal(opts) {
|
|
7946
|
+
constructors$1.universal = function universal(opts) {
|
|
7919
7947
|
return new _universal["default"](opts);
|
|
7920
7948
|
};
|
|
7921
|
-
constructors$1.universal = universal;
|
|
7922
7949
|
return constructors$1;
|
|
7923
7950
|
}
|
|
7924
7951
|
|
|
@@ -7950,30 +7977,18 @@ function requireGuards$1 () {
|
|
|
7950
7977
|
function isNodeType(type, node) {
|
|
7951
7978
|
return isNode(node) && node.type === type;
|
|
7952
7979
|
}
|
|
7953
|
-
var isAttribute = isNodeType.bind(null, _types.ATTRIBUTE);
|
|
7954
|
-
guards$1.
|
|
7955
|
-
|
|
7956
|
-
guards$1.
|
|
7957
|
-
|
|
7958
|
-
guards$1.
|
|
7959
|
-
var
|
|
7960
|
-
guards$1.
|
|
7961
|
-
|
|
7962
|
-
guards$1.
|
|
7963
|
-
var
|
|
7964
|
-
guards$1.
|
|
7965
|
-
var isPseudo = isNodeType.bind(null, _types.PSEUDO);
|
|
7966
|
-
guards$1.isPseudo = isPseudo;
|
|
7967
|
-
var isRoot = isNodeType.bind(null, _types.ROOT);
|
|
7968
|
-
guards$1.isRoot = isRoot;
|
|
7969
|
-
var isSelector = isNodeType.bind(null, _types.SELECTOR);
|
|
7970
|
-
guards$1.isSelector = isSelector;
|
|
7971
|
-
var isString = isNodeType.bind(null, _types.STRING);
|
|
7972
|
-
guards$1.isString = isString;
|
|
7973
|
-
var isTag = isNodeType.bind(null, _types.TAG);
|
|
7974
|
-
guards$1.isTag = isTag;
|
|
7975
|
-
var isUniversal = isNodeType.bind(null, _types.UNIVERSAL);
|
|
7976
|
-
guards$1.isUniversal = isUniversal;
|
|
7980
|
+
var isAttribute = guards$1.isAttribute = isNodeType.bind(null, _types.ATTRIBUTE);
|
|
7981
|
+
guards$1.isClassName = isNodeType.bind(null, _types.CLASS);
|
|
7982
|
+
guards$1.isCombinator = isNodeType.bind(null, _types.COMBINATOR);
|
|
7983
|
+
guards$1.isComment = isNodeType.bind(null, _types.COMMENT);
|
|
7984
|
+
guards$1.isIdentifier = isNodeType.bind(null, _types.ID);
|
|
7985
|
+
guards$1.isNesting = isNodeType.bind(null, _types.NESTING);
|
|
7986
|
+
var isPseudo = guards$1.isPseudo = isNodeType.bind(null, _types.PSEUDO);
|
|
7987
|
+
guards$1.isRoot = isNodeType.bind(null, _types.ROOT);
|
|
7988
|
+
guards$1.isSelector = isNodeType.bind(null, _types.SELECTOR);
|
|
7989
|
+
guards$1.isString = isNodeType.bind(null, _types.STRING);
|
|
7990
|
+
var isTag = guards$1.isTag = isNodeType.bind(null, _types.TAG);
|
|
7991
|
+
guards$1.isUniversal = isNodeType.bind(null, _types.UNIVERSAL);
|
|
7977
7992
|
function isPseudoElement(node) {
|
|
7978
7993
|
return isPseudo(node) && node.value && (node.value.startsWith("::") || node.value.toLowerCase() === ":before" || node.value.toLowerCase() === ":after" || node.value.toLowerCase() === ":first-letter" || node.value.toLowerCase() === ":first-line");
|
|
7979
7994
|
}
|
|
@@ -8030,16 +8045,14 @@ function requireDist$1 () {
|
|
|
8030
8045
|
exports["default"] = void 0;
|
|
8031
8046
|
var _processor = _interopRequireDefault(/*@__PURE__*/ requireProcessor$1());
|
|
8032
8047
|
var selectors = _interopRequireWildcard(/*@__PURE__*/ requireSelectors$1());
|
|
8033
|
-
function
|
|
8034
|
-
function
|
|
8035
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
8048
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) { "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); } return f; })(e, t); }
|
|
8049
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
8036
8050
|
var parser = function parser(processor) {
|
|
8037
8051
|
return new _processor["default"](processor);
|
|
8038
8052
|
};
|
|
8039
8053
|
Object.assign(parser, selectors);
|
|
8040
8054
|
delete parser.__esModule;
|
|
8041
|
-
|
|
8042
|
-
exports["default"] = _default;
|
|
8055
|
+
exports["default"] = parser;
|
|
8043
8056
|
module.exports = exports.default;
|
|
8044
8057
|
} (dist$1, dist$1.exports));
|
|
8045
8058
|
return dist$1.exports;
|
|
@@ -22525,7 +22538,16 @@ function resolveTypeElements(ctx, node, scope, typeParameters) {
|
|
|
22525
22538
|
}
|
|
22526
22539
|
function innerResolveTypeElements(ctx, node, scope, typeParameters) {
|
|
22527
22540
|
var _a, _b;
|
|
22528
|
-
if (node
|
|
22541
|
+
if (hasVueIgnore(node)) {
|
|
22542
|
+
if ((node.type === "TSIntersectionType" || node.type === "TSUnionType") && node.types.length > 1) {
|
|
22543
|
+
return mergeElements(
|
|
22544
|
+
[
|
|
22545
|
+
{ props: {} },
|
|
22546
|
+
...node.types.slice(1).map((t) => resolveTypeElements(ctx, t, scope, typeParameters))
|
|
22547
|
+
],
|
|
22548
|
+
node.type
|
|
22549
|
+
);
|
|
22550
|
+
}
|
|
22529
22551
|
return { props: {} };
|
|
22530
22552
|
}
|
|
22531
22553
|
switch (node.type) {
|
|
@@ -22687,6 +22709,9 @@ function typeElementsToMap(ctx, elements, scope = ctxToScope(ctx), typeParameter
|
|
|
22687
22709
|
}
|
|
22688
22710
|
return res;
|
|
22689
22711
|
}
|
|
22712
|
+
function hasVueIgnore(node) {
|
|
22713
|
+
return !!(node.leadingComments && node.leadingComments.some((c) => c.value.includes("@vue-ignore")));
|
|
22714
|
+
}
|
|
22690
22715
|
function mergeElements(maps, type) {
|
|
22691
22716
|
if (maps.length === 1) return maps[0];
|
|
22692
22717
|
const res = { props: {} };
|
|
@@ -23291,15 +23316,18 @@ function loadTSConfig(configPath, ts2, fs, visited = /* @__PURE__ */ new Set())
|
|
|
23291
23316
|
return res;
|
|
23292
23317
|
}
|
|
23293
23318
|
const fileToScopeCache = createCache();
|
|
23319
|
+
const fileToGlobalScopeCache = createCache();
|
|
23294
23320
|
function invalidateTypeCache(filename) {
|
|
23295
23321
|
filename = normalizePath(filename);
|
|
23296
23322
|
fileToScopeCache.delete(filename);
|
|
23323
|
+
fileToGlobalScopeCache.delete(filename);
|
|
23297
23324
|
tsConfigCache.delete(filename);
|
|
23298
23325
|
const affectedConfig = tsConfigRefMap.get(filename);
|
|
23299
23326
|
if (affectedConfig) tsConfigCache.delete(affectedConfig);
|
|
23300
23327
|
}
|
|
23301
23328
|
function fileToScope(ctx, filename, asGlobal = false) {
|
|
23302
|
-
const
|
|
23329
|
+
const cache = asGlobal ? fileToGlobalScopeCache : fileToScopeCache;
|
|
23330
|
+
const cached = cache.get(filename);
|
|
23303
23331
|
if (cached) {
|
|
23304
23332
|
return cached;
|
|
23305
23333
|
}
|
|
@@ -23308,7 +23336,7 @@ function fileToScope(ctx, filename, asGlobal = false) {
|
|
|
23308
23336
|
const body = parseFile(filename, source, fs, ctx.options.babelParserPlugins);
|
|
23309
23337
|
const scope = new TypeScope(filename, source, 0, recordImports(body));
|
|
23310
23338
|
recordTypes(ctx, body, scope, asGlobal);
|
|
23311
|
-
|
|
23339
|
+
cache.set(filename, scope);
|
|
23312
23340
|
return scope;
|
|
23313
23341
|
}
|
|
23314
23342
|
function parseFile(filename, content, fs, parserPlugins) {
|
|
@@ -24530,6 +24558,7 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
24530
24558
|
}
|
|
24531
24559
|
const rootScope = /* @__PURE__ */ Object.create(null);
|
|
24532
24560
|
const scopeStack = [rootScope];
|
|
24561
|
+
const functionScopeStack = [rootScope];
|
|
24533
24562
|
let currentScope = rootScope;
|
|
24534
24563
|
const excludedIds = /* @__PURE__ */ new WeakSet();
|
|
24535
24564
|
const parentStack = [];
|
|
@@ -24539,17 +24568,24 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
24539
24568
|
rootScope[local] = true;
|
|
24540
24569
|
propsLocalToPublicMap[local] = key;
|
|
24541
24570
|
}
|
|
24542
|
-
function pushScope() {
|
|
24543
|
-
|
|
24571
|
+
function pushScope(isFunctionScope = false) {
|
|
24572
|
+
const scope = currentScope = Object.create(currentScope);
|
|
24573
|
+
scopeStack.push(scope);
|
|
24574
|
+
if (isFunctionScope) {
|
|
24575
|
+
functionScopeStack.push(scope);
|
|
24576
|
+
}
|
|
24544
24577
|
}
|
|
24545
|
-
function popScope() {
|
|
24578
|
+
function popScope(isFunctionScope = false) {
|
|
24546
24579
|
scopeStack.pop();
|
|
24580
|
+
if (isFunctionScope) {
|
|
24581
|
+
functionScopeStack.pop();
|
|
24582
|
+
}
|
|
24547
24583
|
currentScope = scopeStack[scopeStack.length - 1] || null;
|
|
24548
24584
|
}
|
|
24549
|
-
function registerLocalBinding(id) {
|
|
24585
|
+
function registerLocalBinding(id, scope = currentScope) {
|
|
24550
24586
|
excludedIds.add(id);
|
|
24551
|
-
if (
|
|
24552
|
-
|
|
24587
|
+
if (scope) {
|
|
24588
|
+
scope[id.name] = false;
|
|
24553
24589
|
} else {
|
|
24554
24590
|
ctx.error(
|
|
24555
24591
|
"registerBinding called without active scope, something is wrong.",
|
|
@@ -24571,7 +24607,7 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
24571
24607
|
}
|
|
24572
24608
|
}
|
|
24573
24609
|
}
|
|
24574
|
-
function walkVariableDeclaration(stmt, isRoot = false) {
|
|
24610
|
+
function walkVariableDeclaration(stmt, isRoot = false, scope = stmt.kind === "var" ? functionScopeStack[functionScopeStack.length - 1] : currentScope) {
|
|
24575
24611
|
if (stmt.declare) {
|
|
24576
24612
|
return;
|
|
24577
24613
|
}
|
|
@@ -24581,11 +24617,27 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
24581
24617
|
if (isDefineProps) {
|
|
24582
24618
|
excludedIds.add(id);
|
|
24583
24619
|
} else {
|
|
24584
|
-
registerLocalBinding(id);
|
|
24620
|
+
registerLocalBinding(id, scope);
|
|
24585
24621
|
}
|
|
24586
24622
|
}
|
|
24587
24623
|
}
|
|
24588
24624
|
}
|
|
24625
|
+
function walkFunctionScopeVarDeclarations(scopeNode, isRoot = false) {
|
|
24626
|
+
const scope = functionScopeStack[functionScopeStack.length - 1];
|
|
24627
|
+
estreeWalker.walk(scopeNode, {
|
|
24628
|
+
enter(node, parent) {
|
|
24629
|
+
if (parent && parent.type.startsWith("TS") && !CompilerDOM.TS_NODE_TYPES.includes(parent.type)) {
|
|
24630
|
+
return this.skip();
|
|
24631
|
+
}
|
|
24632
|
+
if (CompilerDOM.isFunctionType(node) || node.type === "ClassDeclaration" || node.type === "ClassExpression") {
|
|
24633
|
+
return this.skip();
|
|
24634
|
+
}
|
|
24635
|
+
if (node.type === "VariableDeclaration" && node.kind === "var") {
|
|
24636
|
+
walkVariableDeclaration(node, isRoot && parent === scopeNode, scope);
|
|
24637
|
+
}
|
|
24638
|
+
}
|
|
24639
|
+
});
|
|
24640
|
+
}
|
|
24589
24641
|
function rewriteId(id, parent, parentStack2) {
|
|
24590
24642
|
if (parent.type === "AssignmentExpression" && id === parent.left || parent.type === "UpdateExpression") {
|
|
24591
24643
|
ctx.error(`Cannot assign to destructured props as they are readonly.`, id);
|
|
@@ -24617,6 +24669,7 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
24617
24669
|
}
|
|
24618
24670
|
}
|
|
24619
24671
|
const ast = ctx.scriptSetupAst;
|
|
24672
|
+
walkFunctionScopeVarDeclarations(ast, true);
|
|
24620
24673
|
walkScope(ast, true);
|
|
24621
24674
|
estreeWalker.walk(ast, {
|
|
24622
24675
|
enter(node, parent) {
|
|
@@ -24627,9 +24680,10 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
24627
24680
|
checkUsage(node, "watch", vueImportAliases.watch);
|
|
24628
24681
|
checkUsage(node, "toRef", vueImportAliases.toRef);
|
|
24629
24682
|
if (CompilerDOM.isFunctionType(node)) {
|
|
24630
|
-
pushScope();
|
|
24683
|
+
pushScope(true);
|
|
24631
24684
|
CompilerDOM.walkFunctionParams(node, registerLocalBinding);
|
|
24632
24685
|
if (node.body.type === "BlockStatement") {
|
|
24686
|
+
walkFunctionScopeVarDeclarations(node.body);
|
|
24633
24687
|
walkScope(node.body);
|
|
24634
24688
|
}
|
|
24635
24689
|
return;
|
|
@@ -24668,7 +24722,11 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
24668
24722
|
},
|
|
24669
24723
|
leave(node, parent) {
|
|
24670
24724
|
parent && parentStack.pop();
|
|
24671
|
-
if (
|
|
24725
|
+
if (CompilerDOM.isFunctionType(node)) {
|
|
24726
|
+
popScope(true);
|
|
24727
|
+
} else if (node.type === "BlockStatement" && !CompilerDOM.isFunctionType(parent)) {
|
|
24728
|
+
popScope();
|
|
24729
|
+
} else if (node.type === "CatchClause" || node.type === "ForOfStatement" || node.type === "ForInStatement" || node.type === "ForStatement") {
|
|
24672
24730
|
popScope();
|
|
24673
24731
|
}
|
|
24674
24732
|
}
|
|
@@ -25760,7 +25818,7 @@ function mergeSourceMaps(scriptMap, templateMap, templateLineOffset) {
|
|
|
25760
25818
|
return generator.toJSON();
|
|
25761
25819
|
}
|
|
25762
25820
|
|
|
25763
|
-
const version = "3.5.
|
|
25821
|
+
const version = "3.5.36";
|
|
25764
25822
|
const parseCache = parseCache$1;
|
|
25765
25823
|
const errorMessages = {
|
|
25766
25824
|
...CompilerDOM.errorMessages,
|