@onereach/ui-components 4.10.3 → 4.10.4-beta.2954.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.
Files changed (70) hide show
  1. package/dist/bundled/v2/components/OrCode/OrCode.js +29 -83
  2. package/dist/bundled/v2/components/OrCode/index.js +2 -2
  3. package/dist/bundled/v2/components/OrCode/lang.js +2 -2
  4. package/dist/bundled/v2/components/OrCode/theme.js +1 -1
  5. package/dist/bundled/v2/components/OrInputV3/OrInput.js +17 -9
  6. package/dist/bundled/v2/components/OrModal/OrModal.js +1 -1
  7. package/dist/bundled/v2/components/index.js +2 -2
  8. package/dist/bundled/v2/hooks/useTheme.js +171 -172
  9. package/dist/bundled/v2/{index-cf2c3c27.js → index-a67049f4.js} +393 -253
  10. package/dist/bundled/v2/index.js +2 -2
  11. package/dist/bundled/v2/{lang-0fb8f78b.js → lang-02d1cdeb.js} +431 -365
  12. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-3e7aa91a.js → OrCardCollection.vue_vue_type_script_lang-af7eb570.js} +1 -1
  13. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-46846a36.js → OrCode.vue_vue_type_script_lang-f02bd2ce.js} +30 -84
  14. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-93458f1f.js → OrConfirm.vue_vue_type_script_lang-32350b03.js} +1 -1
  15. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-51f9e144.js → OrConfirm.vue_vue_type_script_lang-8e1752aa.js} +1 -1
  16. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-66363c62.js → OrInput.vue_vue_type_script_lang-0c8510c2.js} +1 -1
  17. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-153819d3.js → OrModal.vue_vue_type_script_lang-c4ef6dd6.js} +1 -1
  18. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-18dc2df8.js → OrSearch.vue_vue_type_script_lang-756be4f1.js} +1 -1
  19. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-72c1db17.js → OrSelect.vue_vue_type_script_lang-dc33e8c8.js} +1 -1
  20. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +4 -4
  21. package/dist/bundled/v3/components/OrCardCollectionV3/index.js +3 -3
  22. package/dist/bundled/v3/components/OrCode/OrCode.js +5 -5
  23. package/dist/bundled/v3/components/OrCode/index.js +4 -4
  24. package/dist/bundled/v3/components/OrCode/lang.js +2 -2
  25. package/dist/bundled/v3/components/OrCode/theme.js +1 -1
  26. package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +3 -3
  27. package/dist/bundled/v3/components/OrConfirm/index.js +2 -2
  28. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +3 -3
  29. package/dist/bundled/v3/components/OrConfirmV3/index.js +2 -2
  30. package/dist/bundled/v3/components/OrInputV3/OrInput.js +9 -8
  31. package/dist/bundled/v3/components/OrInputV3/OrInput.vue.d.ts +2 -1
  32. package/dist/bundled/v3/components/OrInputV3/index.js +1 -1
  33. package/dist/bundled/v3/components/OrModal/OrModal.js +2 -2
  34. package/dist/bundled/v3/components/OrModal/index.js +1 -1
  35. package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +3 -3
  36. package/dist/bundled/v3/components/OrSearchV3/index.js +2 -2
  37. package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +3 -3
  38. package/dist/bundled/v3/components/OrSelectV3/index.js +2 -2
  39. package/dist/bundled/v3/components/index.js +10 -10
  40. package/dist/bundled/v3/hooks/useTheme.js +171 -172
  41. package/dist/bundled/v3/{index-cf2c3c27.js → index-a67049f4.js} +393 -253
  42. package/dist/bundled/v3/index.js +10 -10
  43. package/dist/bundled/v3/{lang-0fb8f78b.js → lang-02d1cdeb.js} +431 -365
  44. package/dist/esm/v2/{OrCardCollection-79b90811.js → OrCardCollection-cfa31f60.js} +1 -1
  45. package/dist/esm/v2/{OrConfirm-0b56c11f.js → OrConfirm-e347e6d8.js} +1 -1
  46. package/dist/esm/v2/{OrInput-2eeff16a.js → OrInput-1ac05c06.js} +17 -9
  47. package/dist/esm/v2/{OrSearch-33e3b0e4.js → OrSearch-345cc833.js} +1 -1
  48. package/dist/esm/v2/{OrSelect-1ee299d9.js → OrSelect-7304a89a.js} +1 -1
  49. package/dist/esm/v2/components/index.js +5 -5
  50. package/dist/esm/v2/components/or-card-collection-v3/index.js +3 -3
  51. package/dist/esm/v2/components/or-confirm-v3/index.js +2 -2
  52. package/dist/esm/v2/components/or-input-v3/index.js +1 -1
  53. package/dist/esm/v2/components/or-search-v3/index.js +2 -2
  54. package/dist/esm/v2/components/or-select-v3/index.js +2 -2
  55. package/dist/esm/v2/index.js +5 -5
  56. package/dist/esm/v3/{OrCardCollection-76f937d5.js → OrCardCollection-65ba52be.js} +1 -1
  57. package/dist/esm/v3/{OrConfirm-5509c440.js → OrConfirm-28e1bb15.js} +1 -1
  58. package/dist/esm/v3/{OrInput-c653aedb.js → OrInput-58866c13.js} +8 -7
  59. package/dist/esm/v3/{OrSearch-b945651d.js → OrSearch-b6f37991.js} +1 -1
  60. package/dist/esm/v3/{OrSelect-5a2c078d.js → OrSelect-1c58ccaf.js} +1 -1
  61. package/dist/esm/v3/components/index.js +5 -5
  62. package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -3
  63. package/dist/esm/v3/components/or-confirm-v3/index.js +2 -2
  64. package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +2 -1
  65. package/dist/esm/v3/components/or-input-v3/index.js +1 -1
  66. package/dist/esm/v3/components/or-search-v3/index.js +2 -2
  67. package/dist/esm/v3/components/or-select-v3/index.js +2 -2
  68. package/dist/esm/v3/index.js +5 -5
  69. package/package.json +2 -3
  70. package/src/components/or-input-v3/OrInput.vue +2 -1
@@ -5004,7 +5004,6 @@ var unesc = {
5004
5004
 
5005
5005
  exports.__esModule = true;
5006
5006
  exports["default"] = unesc;
5007
-
5008
5007
  // Many thanks for this post which made this migration much easier.
5009
5008
  // https://mathiasbynens.be/notes/css-escapes
5010
5009
 
@@ -5018,10 +5017,10 @@ var unesc = {
5018
5017
  var hex = '';
5019
5018
  var spaceTerminated = false;
5020
5019
  for (var i = 0; i < 6 && lower[i] !== undefined; i++) {
5021
- var code = lower.charCodeAt(i); // check to see if we are dealing with a valid hex char [a-f|0-9]
5022
-
5023
- var valid = code >= 97 && code <= 102 || code >= 48 && code <= 57; // https://drafts.csswg.org/css-syntax/#consume-escaped-code-point
5024
-
5020
+ var code = lower.charCodeAt(i);
5021
+ // check to see if we are dealing with a valid hex char [a-f|0-9]
5022
+ var valid = code >= 97 && code <= 102 || code >= 48 && code <= 57;
5023
+ // https://drafts.csswg.org/css-syntax/#consume-escaped-code-point
5025
5024
  spaceTerminated = code === 32;
5026
5025
  if (!valid) {
5027
5026
  break;
@@ -5032,10 +5031,10 @@ var unesc = {
5032
5031
  return undefined;
5033
5032
  }
5034
5033
  var codePoint = parseInt(hex, 16);
5035
- var isSurrogate = codePoint >= 0xD800 && codePoint <= 0xDFFF; // Add special case for
5034
+ var isSurrogate = codePoint >= 0xD800 && codePoint <= 0xDFFF;
5035
+ // Add special case for
5036
5036
  // "If this number is zero, or is for a surrogate, or is greater than the maximum allowed code point"
5037
5037
  // https://drafts.csswg.org/css-syntax/#maximum-allowed-code-point
5038
-
5039
5038
  if (isSurrogate || codePoint === 0x0000 || codePoint > 0x10FFFF) {
5040
5039
  return ["\uFFFD", hex.length + (spaceTerminated ? 1 : 0)];
5041
5040
  }
@@ -5055,16 +5054,18 @@ var unesc = {
5055
5054
  ret += gobbled[0];
5056
5055
  i += gobbled[1];
5057
5056
  continue;
5058
- } // Retain a pair of \\ if double escaped `\\\\`
5059
- // https://github.com/postcss/postcss-selector-parser/commit/268c9a7656fb53f543dc620aa5b73a30ec3ff20e
5057
+ }
5060
5058
 
5059
+ // Retain a pair of \\ if double escaped `\\\\`
5060
+ // https://github.com/postcss/postcss-selector-parser/commit/268c9a7656fb53f543dc620aa5b73a30ec3ff20e
5061
5061
  if (str[i + 1] === "\\") {
5062
5062
  ret += "\\";
5063
5063
  i++;
5064
5064
  continue;
5065
- } // if \\ is at the end of the string retain it
5066
- // https://github.com/postcss/postcss-selector-parser/commit/01a6b346e3612ce1ab20219acc26abdc259ccefb
5065
+ }
5067
5066
 
5067
+ // if \\ is at the end of the string retain it
5068
+ // https://github.com/postcss/postcss-selector-parser/commit/01a6b346e3612ce1ab20219acc26abdc259ccefb
5068
5069
  if (str.length === i + 1) {
5069
5070
  ret += str[i];
5070
5071
  }
@@ -5158,7 +5159,7 @@ var stripComments = {
5158
5159
  })(stripComments, stripCommentsExports);
5159
5160
 
5160
5161
  util.__esModule = true;
5161
- util.stripComments = util.ensureObject = util.getProp = util.unesc = void 0;
5162
+ util.unesc = util.stripComments = util.getProp = util.ensureObject = void 0;
5162
5163
  var _unesc = _interopRequireDefault$7(unescExports);
5163
5164
  util.unesc = _unesc["default"];
5164
5165
  var _getProp = _interopRequireDefault$7(getPropExports);
@@ -5190,6 +5191,9 @@ function _interopRequireDefault$7(obj) {
5190
5191
  function _createClass(Constructor, protoProps, staticProps) {
5191
5192
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
5192
5193
  if (staticProps) _defineProperties(Constructor, staticProps);
5194
+ Object.defineProperty(Constructor, "prototype", {
5195
+ writable: false
5196
+ });
5193
5197
  return Constructor;
5194
5198
  }
5195
5199
  var cloneNode = function cloneNode(obj, parent) {
@@ -5260,6 +5264,7 @@ function _interopRequireDefault$7(obj) {
5260
5264
  }
5261
5265
  return cloned;
5262
5266
  }
5267
+
5263
5268
  /**
5264
5269
  * Some non-standard syntax doesn't follow normal escaping rules for css.
5265
5270
  * This allows non standard syntax to be appended to an existing property
@@ -5269,7 +5274,6 @@ function _interopRequireDefault$7(obj) {
5269
5274
  * @param {any} value the unescaped value of the property
5270
5275
  * @param {string} valueEscaped optional. the escaped value of the property.
5271
5276
  */;
5272
-
5273
5277
  _proto.appendToPropertyAndEscape = function appendToPropertyAndEscape(name, value, valueEscaped) {
5274
5278
  if (!this.raws) {
5275
5279
  this.raws = {};
@@ -5277,13 +5281,13 @@ function _interopRequireDefault$7(obj) {
5277
5281
  var originalValue = this[name];
5278
5282
  var originalEscaped = this.raws[name];
5279
5283
  this[name] = originalValue + value; // this may trigger a setter that updates raws, so it has to be set first.
5280
-
5281
5284
  if (originalEscaped || valueEscaped !== value) {
5282
5285
  this.raws[name] = (originalEscaped || originalValue) + valueEscaped;
5283
5286
  } else {
5284
5287
  delete this.raws[name]; // delete any escaped value that was created by the setter.
5285
5288
  }
5286
5289
  }
5290
+
5287
5291
  /**
5288
5292
  * Some non-standard syntax doesn't follow normal escaping rules for css.
5289
5293
  * This allows the escaped value to be specified directly, allowing illegal
@@ -5292,15 +5296,14 @@ function _interopRequireDefault$7(obj) {
5292
5296
  * @param {any} value the unescaped value of the property
5293
5297
  * @param {string} valueEscaped the escaped value of the property.
5294
5298
  */;
5295
-
5296
5299
  _proto.setPropertyAndEscape = function setPropertyAndEscape(name, value, valueEscaped) {
5297
5300
  if (!this.raws) {
5298
5301
  this.raws = {};
5299
5302
  }
5300
5303
  this[name] = value; // this may trigger a setter that updates raws, so it has to be set first.
5301
-
5302
5304
  this.raws[name] = valueEscaped;
5303
5305
  }
5306
+
5304
5307
  /**
5305
5308
  * When you want a value to passed through to CSS directly. This method
5306
5309
  * deletes the corresponding raw value causing the stringifier to fallback
@@ -5308,20 +5311,18 @@ function _interopRequireDefault$7(obj) {
5308
5311
  * @param {string} name the property to set.
5309
5312
  * @param {any} value The value that is both escaped and unescaped.
5310
5313
  */;
5311
-
5312
5314
  _proto.setPropertyWithoutEscape = function setPropertyWithoutEscape(name, value) {
5313
5315
  this[name] = value; // this may trigger a setter that updates raws, so it has to be set first.
5314
-
5315
5316
  if (this.raws) {
5316
5317
  delete this.raws[name];
5317
5318
  }
5318
5319
  }
5320
+
5319
5321
  /**
5320
5322
  *
5321
5323
  * @param {number} line The number (starting with 1)
5322
5324
  * @param {number} column The column number (starting with 1)
5323
5325
  */;
5324
-
5325
5326
  _proto.isAtPosition = function isAtPosition(line, column) {
5326
5327
  if (this.source && this.source.start && this.source.end) {
5327
5328
  if (this.source.start.line > line) {
@@ -5385,7 +5386,7 @@ function _interopRequireDefault$7(obj) {
5385
5386
  var types = {};
5386
5387
 
5387
5388
  types.__esModule = true;
5388
- types.UNIVERSAL = types.ATTRIBUTE = types.CLASS = types.COMBINATOR = types.COMMENT = types.ID = types.NESTING = types.PSEUDO = types.ROOT = types.SELECTOR = types.STRING = types.TAG = void 0;
5389
+ types.UNIVERSAL = types.TAG = types.STRING = types.SELECTOR = types.ROOT = types.PSEUDO = types.NESTING = types.ID = types.COMMENT = types.COMBINATOR = types.CLASS = types.ATTRIBUTE = void 0;
5389
5390
  var TAG = 'tag';
5390
5391
  types.TAG = TAG;
5391
5392
  var STRING = 'string';
@@ -5417,16 +5418,16 @@ types.UNIVERSAL = UNIVERSAL;
5417
5418
  exports["default"] = void 0;
5418
5419
  var _node = _interopRequireDefault(nodeExports);
5419
5420
  var types$1 = _interopRequireWildcard(types);
5420
- function _getRequireWildcardCache() {
5421
+ function _getRequireWildcardCache(nodeInterop) {
5421
5422
  if (typeof WeakMap !== "function") return null;
5422
- var cache = new WeakMap();
5423
- _getRequireWildcardCache = function _getRequireWildcardCache() {
5424
- return cache;
5425
- };
5426
- return cache;
5427
- }
5428
- function _interopRequireWildcard(obj) {
5429
- if (obj && obj.__esModule) {
5423
+ var cacheBabelInterop = new WeakMap();
5424
+ var cacheNodeInterop = new WeakMap();
5425
+ return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
5426
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
5427
+ })(nodeInterop);
5428
+ }
5429
+ function _interopRequireWildcard(obj, nodeInterop) {
5430
+ if (!nodeInterop && obj && obj.__esModule) {
5430
5431
  return obj;
5431
5432
  }
5432
5433
  if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
@@ -5434,14 +5435,14 @@ types.UNIVERSAL = UNIVERSAL;
5434
5435
  "default": obj
5435
5436
  };
5436
5437
  }
5437
- var cache = _getRequireWildcardCache();
5438
+ var cache = _getRequireWildcardCache(nodeInterop);
5438
5439
  if (cache && cache.has(obj)) {
5439
5440
  return cache.get(obj);
5440
5441
  }
5441
5442
  var newObj = {};
5442
5443
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
5443
5444
  for (var key in obj) {
5444
- if (Object.prototype.hasOwnProperty.call(obj, key)) {
5445
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
5445
5446
  var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
5446
5447
  if (desc && (desc.get || desc.set)) {
5447
5448
  Object.defineProperty(newObj, key, desc);
@@ -5462,25 +5463,22 @@ types.UNIVERSAL = UNIVERSAL;
5462
5463
  };
5463
5464
  }
5464
5465
  function _createForOfIteratorHelperLoose(o, allowArrayLike) {
5465
- var it;
5466
- if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
5467
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
5468
- if (it) o = it;
5469
- var i = 0;
5470
- return function () {
5471
- if (i >= o.length) return {
5472
- done: true
5473
- };
5474
- return {
5475
- done: false,
5476
- value: o[i++]
5477
- };
5466
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
5467
+ if (it) return (it = it.call(o)).next.bind(it);
5468
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
5469
+ if (it) o = it;
5470
+ var i = 0;
5471
+ return function () {
5472
+ if (i >= o.length) return {
5473
+ done: true
5478
5474
  };
5479
- }
5480
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5475
+ return {
5476
+ done: false,
5477
+ value: o[i++]
5478
+ };
5479
+ };
5481
5480
  }
5482
- it = o[Symbol.iterator]();
5483
- return it.next.bind(it);
5481
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5484
5482
  }
5485
5483
  function _unsupportedIterableToArray(o, minLen) {
5486
5484
  if (!o) return;
@@ -5509,6 +5507,9 @@ types.UNIVERSAL = UNIVERSAL;
5509
5507
  function _createClass(Constructor, protoProps, staticProps) {
5510
5508
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
5511
5509
  if (staticProps) _defineProperties(Constructor, staticProps);
5510
+ Object.defineProperty(Constructor, "prototype", {
5511
+ writable: false
5512
+ });
5512
5513
  return Constructor;
5513
5514
  }
5514
5515
  function _inheritsLoose(subClass, superClass) {
@@ -5517,7 +5518,7 @@ types.UNIVERSAL = UNIVERSAL;
5517
5518
  _setPrototypeOf(subClass, superClass);
5518
5519
  }
5519
5520
  function _setPrototypeOf(o, p) {
5520
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
5521
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
5521
5522
  o.__proto__ = p;
5522
5523
  return o;
5523
5524
  };
@@ -5621,6 +5622,7 @@ types.UNIVERSAL = UNIVERSAL;
5621
5622
  });
5622
5623
  return found;
5623
5624
  }
5625
+
5624
5626
  /**
5625
5627
  * Return the most specific node at the line and column number given.
5626
5628
  * The source location is based on the original parsed location, locations aren't
@@ -5634,7 +5636,6 @@ types.UNIVERSAL = UNIVERSAL;
5634
5636
  * @param {number} line The line number of the node to find. (1-based index)
5635
5637
  * @param {number} col The column number of the node to find. (1-based index)
5636
5638
  */;
5637
-
5638
5639
  _proto.atPosition = function atPosition(line, col) {
5639
5640
  if (this.isAtPosition(line, col)) {
5640
5641
  return this._findChildAtPosition(line, col) || this;
@@ -5840,6 +5841,9 @@ types.UNIVERSAL = UNIVERSAL;
5840
5841
  function _createClass(Constructor, protoProps, staticProps) {
5841
5842
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
5842
5843
  if (staticProps) _defineProperties(Constructor, staticProps);
5844
+ Object.defineProperty(Constructor, "prototype", {
5845
+ writable: false
5846
+ });
5843
5847
  return Constructor;
5844
5848
  }
5845
5849
  function _inheritsLoose(subClass, superClass) {
@@ -5848,7 +5852,7 @@ types.UNIVERSAL = UNIVERSAL;
5848
5852
  _setPrototypeOf(subClass, superClass);
5849
5853
  }
5850
5854
  function _setPrototypeOf(o, p) {
5851
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
5855
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
5852
5856
  o.__proto__ = p;
5853
5857
  return o;
5854
5858
  };
@@ -5912,7 +5916,7 @@ var selector$1 = {
5912
5916
  _setPrototypeOf(subClass, superClass);
5913
5917
  }
5914
5918
  function _setPrototypeOf(o, p) {
5915
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
5919
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
5916
5920
  o.__proto__ = p;
5917
5921
  return o;
5918
5922
  };
@@ -6065,6 +6069,9 @@ var cssesc_1 = cssesc;
6065
6069
  function _createClass(Constructor, protoProps, staticProps) {
6066
6070
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
6067
6071
  if (staticProps) _defineProperties(Constructor, staticProps);
6072
+ Object.defineProperty(Constructor, "prototype", {
6073
+ writable: false
6074
+ });
6068
6075
  return Constructor;
6069
6076
  }
6070
6077
  function _inheritsLoose(subClass, superClass) {
@@ -6073,7 +6080,7 @@ var cssesc_1 = cssesc;
6073
6080
  _setPrototypeOf(subClass, superClass);
6074
6081
  }
6075
6082
  function _setPrototypeOf(o, p) {
6076
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
6083
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
6077
6084
  o.__proto__ = p;
6078
6085
  return o;
6079
6086
  };
@@ -6141,7 +6148,7 @@ var comment$2 = {
6141
6148
  _setPrototypeOf(subClass, superClass);
6142
6149
  }
6143
6150
  function _setPrototypeOf(o, p) {
6144
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
6151
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
6145
6152
  o.__proto__ = p;
6146
6153
  return o;
6147
6154
  };
@@ -6184,7 +6191,7 @@ var id$1 = {
6184
6191
  _setPrototypeOf(subClass, superClass);
6185
6192
  }
6186
6193
  function _setPrototypeOf(o, p) {
6187
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
6194
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
6188
6195
  o.__proto__ = p;
6189
6196
  return o;
6190
6197
  };
@@ -6244,6 +6251,9 @@ var namespace = {
6244
6251
  function _createClass(Constructor, protoProps, staticProps) {
6245
6252
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
6246
6253
  if (staticProps) _defineProperties(Constructor, staticProps);
6254
+ Object.defineProperty(Constructor, "prototype", {
6255
+ writable: false
6256
+ });
6247
6257
  return Constructor;
6248
6258
  }
6249
6259
  function _inheritsLoose(subClass, superClass) {
@@ -6252,7 +6262,7 @@ var namespace = {
6252
6262
  _setPrototypeOf(subClass, superClass);
6253
6263
  }
6254
6264
  function _setPrototypeOf(o, p) {
6255
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
6265
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
6256
6266
  o.__proto__ = p;
6257
6267
  return o;
6258
6268
  };
@@ -6344,7 +6354,7 @@ var namespace = {
6344
6354
  _setPrototypeOf(subClass, superClass);
6345
6355
  }
6346
6356
  function _setPrototypeOf(o, p) {
6347
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
6357
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
6348
6358
  o.__proto__ = p;
6349
6359
  return o;
6350
6360
  };
@@ -6387,7 +6397,7 @@ var string$1 = {
6387
6397
  _setPrototypeOf(subClass, superClass);
6388
6398
  }
6389
6399
  function _setPrototypeOf(o, p) {
6390
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
6400
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
6391
6401
  o.__proto__ = p;
6392
6402
  return o;
6393
6403
  };
@@ -6430,7 +6440,7 @@ var pseudo$1 = {
6430
6440
  _setPrototypeOf(subClass, superClass);
6431
6441
  }
6432
6442
  function _setPrototypeOf(o, p) {
6433
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
6443
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
6434
6444
  o.__proto__ = p;
6435
6445
  return o;
6436
6446
  };
@@ -6466,8 +6476,8 @@ var node = require$$0$1.deprecate;
6466
6476
  (function (exports) {
6467
6477
 
6468
6478
  exports.__esModule = true;
6469
- exports.unescapeValue = unescapeValue;
6470
6479
  exports["default"] = void 0;
6480
+ exports.unescapeValue = unescapeValue;
6471
6481
  var _cssesc = _interopRequireDefault(cssesc_1);
6472
6482
  var _unesc = _interopRequireDefault(unescExports);
6473
6483
  var _namespace = _interopRequireDefault(namespaceExports);
@@ -6490,6 +6500,9 @@ var node = require$$0$1.deprecate;
6490
6500
  function _createClass(Constructor, protoProps, staticProps) {
6491
6501
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
6492
6502
  if (staticProps) _defineProperties(Constructor, staticProps);
6503
+ Object.defineProperty(Constructor, "prototype", {
6504
+ writable: false
6505
+ });
6493
6506
  return Constructor;
6494
6507
  }
6495
6508
  function _inheritsLoose(subClass, superClass) {
@@ -6498,7 +6511,7 @@ var node = require$$0$1.deprecate;
6498
6511
  _setPrototypeOf(subClass, superClass);
6499
6512
  }
6500
6513
  function _setPrototypeOf(o, p) {
6501
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
6514
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
6502
6515
  o.__proto__ = p;
6503
6516
  return o;
6504
6517
  };
@@ -6570,6 +6583,7 @@ var node = require$$0$1.deprecate;
6570
6583
  _this._constructed = true;
6571
6584
  return _this;
6572
6585
  }
6586
+
6573
6587
  /**
6574
6588
  * Returns the Attribute's value quoted such that it would be legal to use
6575
6589
  * in the value of a css file. The original value's quotation setting
@@ -6591,7 +6605,6 @@ var node = require$$0$1.deprecate;
6591
6605
  * and the other options specified here. See the `smartQuoteMark()`
6592
6606
  * method.
6593
6607
  **/
6594
-
6595
6608
  var _proto = Attribute.prototype;
6596
6609
  _proto.getQuotedValue = function getQuotedValue(options) {
6597
6610
  if (options === void 0) {
@@ -6605,12 +6618,12 @@ var node = require$$0$1.deprecate;
6605
6618
  _proto._determineQuoteMark = function _determineQuoteMark(options) {
6606
6619
  return options.smart ? this.smartQuoteMark(options) : this.preferredQuoteMark(options);
6607
6620
  }
6621
+
6608
6622
  /**
6609
6623
  * Set the unescaped value with the specified quotation options. The value
6610
6624
  * provided must not include any wrapping quote marks -- those quotes will
6611
6625
  * be interpreted as part of the value and escaped accordingly.
6612
6626
  */;
6613
-
6614
6627
  _proto.setValue = function setValue(value, options) {
6615
6628
  if (options === void 0) {
6616
6629
  options = {};
@@ -6619,6 +6632,7 @@ var node = require$$0$1.deprecate;
6619
6632
  this._quoteMark = this._determineQuoteMark(options);
6620
6633
  this._syncRawValue();
6621
6634
  }
6635
+
6622
6636
  /**
6623
6637
  * Intelligently select a quoteMark value based on the value's contents. If
6624
6638
  * the value is a legal CSS ident, it will not be quoted. Otherwise a quote
@@ -6631,7 +6645,6 @@ var node = require$$0$1.deprecate;
6631
6645
  * @param options This takes the quoteMark and preferCurrentQuoteMark options
6632
6646
  * from the quoteValue method.
6633
6647
  */;
6634
-
6635
6648
  _proto.smartQuoteMark = function smartQuoteMark(options) {
6636
6649
  var v = this.value;
6637
6650
  var numSingleQuotes = v.replace(/[^']/g, '').length;
@@ -6663,12 +6676,12 @@ var node = require$$0$1.deprecate;
6663
6676
  return Attribute.SINGLE_QUOTE;
6664
6677
  }
6665
6678
  }
6679
+
6666
6680
  /**
6667
6681
  * Selects the preferred quote mark based on the options and the current quote mark value.
6668
6682
  * If you want the quote mark to depend on the attribute value, call `smartQuoteMark(opts)`
6669
6683
  * instead.
6670
6684
  */;
6671
-
6672
6685
  _proto.preferredQuoteMark = function preferredQuoteMark(options) {
6673
6686
  var quoteMark = options.preferCurrentQuoteMark ? this.quoteMark : options.quoteMark;
6674
6687
  if (quoteMark === undefined) {
@@ -6720,6 +6733,7 @@ var node = require$$0$1.deprecate;
6720
6733
  var attrSpaces = this._spacesFor(spaceName);
6721
6734
  return concat(this.stringifyProperty(name), attrSpaces);
6722
6735
  }
6736
+
6723
6737
  /**
6724
6738
  * returns the offset of the attribute part specified relative to the
6725
6739
  * start of the node of the output string.
@@ -6734,7 +6748,6 @@ var node = require$$0$1.deprecate;
6734
6748
  * @param part One of the possible values inside an attribute.
6735
6749
  * @returns -1 if the name is invalid or the value doesn't exist in this attribute.
6736
6750
  */;
6737
-
6738
6751
  _proto.offsetOf = function offsetOf(name) {
6739
6752
  var count = 1;
6740
6753
  var attributeSpaces = this._spacesFor("attribute");
@@ -6804,6 +6817,7 @@ var node = require$$0$1.deprecate;
6804
6817
  set: function set(value) {
6805
6818
  warnOfDeprecatedQuotedAssignment();
6806
6819
  }
6820
+
6807
6821
  /**
6808
6822
  * returns a single (`'`) or double (`"`) quote character if the value is quoted.
6809
6823
  * returns `null` if the value is not quoted.
@@ -6815,6 +6829,7 @@ var node = require$$0$1.deprecate;
6815
6829
  get: function get() {
6816
6830
  return this._quoteMark;
6817
6831
  }
6832
+
6818
6833
  /**
6819
6834
  * Set the quote mark to be used by this attribute's value.
6820
6835
  * If the quote mark changes, the raw (escaped) value at `attr.raws.value` of the attribute
@@ -6822,7 +6837,6 @@ var node = require$$0$1.deprecate;
6822
6837
  *
6823
6838
  * @param {"'" | '"' | null} quoteMark The quote mark or `null` if the value should be unquoted.
6824
6839
  */,
6825
-
6826
6840
  set: function set(quoteMark) {
6827
6841
  if (!this._constructed) {
6828
6842
  this._quoteMark = quoteMark;
@@ -6885,6 +6899,7 @@ var node = require$$0$1.deprecate;
6885
6899
  get: function get() {
6886
6900
  return this._insensitive;
6887
6901
  }
6902
+
6888
6903
  /**
6889
6904
  * Set the case insensitive flag.
6890
6905
  * If the case insensitive flag changes, the raw (escaped) value at `attr.raws.insensitiveFlag`
@@ -6892,12 +6907,12 @@ var node = require$$0$1.deprecate;
6892
6907
  *
6893
6908
  * @param {true | false} insensitive true if the attribute should match case-insensitively.
6894
6909
  */,
6895
-
6896
6910
  set: function set(insensitive) {
6897
6911
  if (!insensitive) {
6898
- this._insensitive = false; // "i" and "I" can be used in "this.raws.insensitiveFlag" to store the original notation.
6899
- // When setting `attr.insensitive = false` both should be erased to ensure correct serialization.
6912
+ this._insensitive = false;
6900
6913
 
6914
+ // "i" and "I" can be used in "this.raws.insensitiveFlag" to store the original notation.
6915
+ // When setting `attr.insensitive = false` both should be erased to ensure correct serialization.
6901
6916
  if (this.raws && (this.raws.insensitiveFlag === 'I' || this.raws.insensitiveFlag === 'i')) {
6902
6917
  this.raws.insensitiveFlag = undefined;
6903
6918
  }
@@ -6960,7 +6975,7 @@ var universal$1 = {
6960
6975
  _setPrototypeOf(subClass, superClass);
6961
6976
  }
6962
6977
  function _setPrototypeOf(o, p) {
6963
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
6978
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
6964
6979
  o.__proto__ = p;
6965
6980
  return o;
6966
6981
  };
@@ -7004,7 +7019,7 @@ var combinator$2 = {
7004
7019
  _setPrototypeOf(subClass, superClass);
7005
7020
  }
7006
7021
  function _setPrototypeOf(o, p) {
7007
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
7022
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
7008
7023
  o.__proto__ = p;
7009
7024
  return o;
7010
7025
  };
@@ -7047,7 +7062,7 @@ var nesting$1 = {
7047
7062
  _setPrototypeOf(subClass, superClass);
7048
7063
  }
7049
7064
  function _setPrototypeOf(o, p) {
7050
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
7065
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
7051
7066
  o.__proto__ = p;
7052
7067
  return o;
7053
7068
  };
@@ -7091,91 +7106,66 @@ var tokenize = {};
7091
7106
  var tokenTypes = {};
7092
7107
 
7093
7108
  tokenTypes.__esModule = true;
7094
- tokenTypes.combinator = tokenTypes.word = tokenTypes.comment = tokenTypes.str = tokenTypes.tab = tokenTypes.newline = tokenTypes.feed = tokenTypes.cr = tokenTypes.backslash = tokenTypes.bang = tokenTypes.slash = tokenTypes.doubleQuote = tokenTypes.singleQuote = tokenTypes.space = tokenTypes.greaterThan = tokenTypes.pipe = tokenTypes.equals = tokenTypes.plus = tokenTypes.caret = tokenTypes.tilde = tokenTypes.dollar = tokenTypes.closeSquare = tokenTypes.openSquare = tokenTypes.closeParenthesis = tokenTypes.openParenthesis = tokenTypes.semicolon = tokenTypes.colon = tokenTypes.comma = tokenTypes.at = tokenTypes.asterisk = tokenTypes.ampersand = void 0;
7109
+ tokenTypes.word = tokenTypes.tilde = tokenTypes.tab = tokenTypes.str = tokenTypes.space = tokenTypes.slash = tokenTypes.singleQuote = tokenTypes.semicolon = tokenTypes.plus = tokenTypes.pipe = tokenTypes.openSquare = tokenTypes.openParenthesis = tokenTypes.newline = tokenTypes.greaterThan = tokenTypes.feed = tokenTypes.equals = tokenTypes.doubleQuote = tokenTypes.dollar = tokenTypes.cr = tokenTypes.comment = tokenTypes.comma = tokenTypes.combinator = tokenTypes.colon = tokenTypes.closeSquare = tokenTypes.closeParenthesis = tokenTypes.caret = tokenTypes.bang = tokenTypes.backslash = tokenTypes.at = tokenTypes.asterisk = tokenTypes.ampersand = void 0;
7095
7110
  var ampersand = 38; // `&`.charCodeAt(0);
7096
-
7097
7111
  tokenTypes.ampersand = ampersand;
7098
7112
  var asterisk = 42; // `*`.charCodeAt(0);
7099
-
7100
7113
  tokenTypes.asterisk = asterisk;
7101
7114
  var at = 64; // `@`.charCodeAt(0);
7102
-
7103
7115
  tokenTypes.at = at;
7104
7116
  var comma = 44; // `,`.charCodeAt(0);
7105
-
7106
7117
  tokenTypes.comma = comma;
7107
7118
  var colon = 58; // `:`.charCodeAt(0);
7108
-
7109
7119
  tokenTypes.colon = colon;
7110
7120
  var semicolon = 59; // `;`.charCodeAt(0);
7111
-
7112
7121
  tokenTypes.semicolon = semicolon;
7113
7122
  var openParenthesis = 40; // `(`.charCodeAt(0);
7114
-
7115
7123
  tokenTypes.openParenthesis = openParenthesis;
7116
7124
  var closeParenthesis = 41; // `)`.charCodeAt(0);
7117
-
7118
7125
  tokenTypes.closeParenthesis = closeParenthesis;
7119
7126
  var openSquare = 91; // `[`.charCodeAt(0);
7120
-
7121
7127
  tokenTypes.openSquare = openSquare;
7122
7128
  var closeSquare = 93; // `]`.charCodeAt(0);
7123
-
7124
7129
  tokenTypes.closeSquare = closeSquare;
7125
7130
  var dollar = 36; // `$`.charCodeAt(0);
7126
-
7127
7131
  tokenTypes.dollar = dollar;
7128
7132
  var tilde = 126; // `~`.charCodeAt(0);
7129
-
7130
7133
  tokenTypes.tilde = tilde;
7131
7134
  var caret = 94; // `^`.charCodeAt(0);
7132
-
7133
7135
  tokenTypes.caret = caret;
7134
7136
  var plus = 43; // `+`.charCodeAt(0);
7135
-
7136
7137
  tokenTypes.plus = plus;
7137
7138
  var equals = 61; // `=`.charCodeAt(0);
7138
-
7139
7139
  tokenTypes.equals = equals;
7140
7140
  var pipe = 124; // `|`.charCodeAt(0);
7141
-
7142
7141
  tokenTypes.pipe = pipe;
7143
7142
  var greaterThan = 62; // `>`.charCodeAt(0);
7144
-
7145
7143
  tokenTypes.greaterThan = greaterThan;
7146
7144
  var space = 32; // ` `.charCodeAt(0);
7147
-
7148
7145
  tokenTypes.space = space;
7149
7146
  var singleQuote = 39; // `'`.charCodeAt(0);
7150
-
7151
7147
  tokenTypes.singleQuote = singleQuote;
7152
7148
  var doubleQuote = 34; // `"`.charCodeAt(0);
7153
-
7154
7149
  tokenTypes.doubleQuote = doubleQuote;
7155
7150
  var slash = 47; // `/`.charCodeAt(0);
7156
-
7157
7151
  tokenTypes.slash = slash;
7158
7152
  var bang = 33; // `!`.charCodeAt(0);
7159
-
7160
7153
  tokenTypes.bang = bang;
7161
7154
  var backslash = 92; // '\\'.charCodeAt(0);
7162
-
7163
7155
  tokenTypes.backslash = backslash;
7164
7156
  var cr = 13; // '\r'.charCodeAt(0);
7165
-
7166
7157
  tokenTypes.cr = cr;
7167
7158
  var feed = 12; // '\f'.charCodeAt(0);
7168
-
7169
7159
  tokenTypes.feed = feed;
7170
7160
  var newline = 10; // '\n'.charCodeAt(0);
7171
-
7172
7161
  tokenTypes.newline = newline;
7173
7162
  var tab = 9; // '\t'.charCodeAt(0);
7174
- // Expose aliases primarily for readability.
7175
7163
 
7164
+ // Expose aliases primarily for readability.
7176
7165
  tokenTypes.tab = tab;
7177
- var str = singleQuote; // No good single character representation!
7166
+ var str = singleQuote;
7178
7167
 
7168
+ // No good single character representation!
7179
7169
  tokenTypes.str = str;
7180
7170
  var comment$1 = -1;
7181
7171
  tokenTypes.comment = comment$1;
@@ -7187,20 +7177,20 @@ tokenTypes.combinator = combinator$1;
7187
7177
  (function (exports) {
7188
7178
 
7189
7179
  exports.__esModule = true;
7190
- exports["default"] = tokenize;
7191
7180
  exports.FIELDS = void 0;
7181
+ exports["default"] = tokenize;
7192
7182
  var t = _interopRequireWildcard(tokenTypes);
7193
7183
  var _unescapable, _wordDelimiters;
7194
- function _getRequireWildcardCache() {
7184
+ function _getRequireWildcardCache(nodeInterop) {
7195
7185
  if (typeof WeakMap !== "function") return null;
7196
- var cache = new WeakMap();
7197
- _getRequireWildcardCache = function _getRequireWildcardCache() {
7198
- return cache;
7199
- };
7200
- return cache;
7201
- }
7202
- function _interopRequireWildcard(obj) {
7203
- if (obj && obj.__esModule) {
7186
+ var cacheBabelInterop = new WeakMap();
7187
+ var cacheNodeInterop = new WeakMap();
7188
+ return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
7189
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
7190
+ })(nodeInterop);
7191
+ }
7192
+ function _interopRequireWildcard(obj, nodeInterop) {
7193
+ if (!nodeInterop && obj && obj.__esModule) {
7204
7194
  return obj;
7205
7195
  }
7206
7196
  if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
@@ -7208,14 +7198,14 @@ tokenTypes.combinator = combinator$1;
7208
7198
  "default": obj
7209
7199
  };
7210
7200
  }
7211
- var cache = _getRequireWildcardCache();
7201
+ var cache = _getRequireWildcardCache(nodeInterop);
7212
7202
  if (cache && cache.has(obj)) {
7213
7203
  return cache.get(obj);
7214
7204
  }
7215
7205
  var newObj = {};
7216
7206
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
7217
7207
  for (var key in obj) {
7218
- if (Object.prototype.hasOwnProperty.call(obj, key)) {
7208
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
7219
7209
  var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
7220
7210
  if (desc && (desc.get || desc.set)) {
7221
7211
  Object.defineProperty(newObj, key, desc);
@@ -7237,12 +7227,12 @@ tokenTypes.combinator = combinator$1;
7237
7227
  for (var i = 0; i < hexChars.length; i++) {
7238
7228
  hex[hexChars.charCodeAt(i)] = true;
7239
7229
  }
7230
+
7240
7231
  /**
7241
7232
  * Returns the last index of the bar css word
7242
7233
  * @param {string} css The string in which the word begins
7243
7234
  * @param {number} start The index into the string where word's first letter occurs
7244
7235
  */
7245
-
7246
7236
  function consumeWord(css, start) {
7247
7237
  var next = start;
7248
7238
  var code;
@@ -7259,24 +7249,24 @@ tokenTypes.combinator = combinator$1;
7259
7249
  } while (next < css.length);
7260
7250
  return next - 1;
7261
7251
  }
7252
+
7262
7253
  /**
7263
7254
  * Returns the last index of the escape sequence
7264
7255
  * @param {string} css The string in which the sequence begins
7265
7256
  * @param {number} start The index into the string where escape character (`\`) occurs.
7266
7257
  */
7267
-
7268
7258
  function consumeEscape(css, start) {
7269
7259
  var next = start;
7270
7260
  var code = css.charCodeAt(next + 1);
7271
7261
  if (unescapable[code]) ; else if (hex[code]) {
7272
- var hexDigits = 0; // consume up to 6 hex chars
7273
-
7262
+ var hexDigits = 0;
7263
+ // consume up to 6 hex chars
7274
7264
  do {
7275
7265
  next++;
7276
7266
  hexDigits++;
7277
7267
  code = css.charCodeAt(next + 1);
7278
- } while (hex[code] && hexDigits < 6); // if fewer than 6 hex chars, a trailing space ends the escape
7279
-
7268
+ } while (hex[code] && hexDigits < 6);
7269
+ // if fewer than 6 hex chars, a trailing space ends the escape
7280
7270
  if (hexDigits < 6 && code === t.space) {
7281
7271
  next++;
7282
7272
  }
@@ -7355,8 +7345,8 @@ tokenTypes.combinator = combinator$1;
7355
7345
  endColumn = start - offset;
7356
7346
  end = next;
7357
7347
  break;
7358
- // Consume these characters as single tokens.
7359
7348
 
7349
+ // Consume these characters as single tokens.
7360
7350
  case t.asterisk:
7361
7351
  case t.ampersand:
7362
7352
  case t.bang:
@@ -7431,8 +7421,9 @@ tokenTypes.combinator = combinator$1;
7431
7421
  }
7432
7422
  end = next + 1;
7433
7423
  break;
7434
- } // Ensure that the token structure remains consistent
7424
+ }
7435
7425
 
7426
+ // Ensure that the token structure remains consistent
7436
7427
  tokens.push([tokenType,
7437
7428
  // [0] Token type
7438
7429
  line,
@@ -7446,8 +7437,9 @@ tokenTypes.combinator = combinator$1;
7446
7437
  start,
7447
7438
  // [5] Start position / Source index
7448
7439
  end // [6] End position
7449
- ]); // Reset offset for the next token
7440
+ ]);
7450
7441
 
7442
+ // Reset offset for the next token
7451
7443
  if (nextOffset) {
7452
7444
  offset = nextOffset;
7453
7445
  nextOffset = null;
@@ -7480,16 +7472,16 @@ tokenTypes.combinator = combinator$1;
7480
7472
  var types$1 = _interopRequireWildcard(types);
7481
7473
  var _util = util;
7482
7474
  var _WHITESPACE_TOKENS, _Object$assign;
7483
- function _getRequireWildcardCache() {
7475
+ function _getRequireWildcardCache(nodeInterop) {
7484
7476
  if (typeof WeakMap !== "function") return null;
7485
- var cache = new WeakMap();
7486
- _getRequireWildcardCache = function _getRequireWildcardCache() {
7487
- return cache;
7488
- };
7489
- return cache;
7490
- }
7491
- function _interopRequireWildcard(obj) {
7492
- if (obj && obj.__esModule) {
7477
+ var cacheBabelInterop = new WeakMap();
7478
+ var cacheNodeInterop = new WeakMap();
7479
+ return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
7480
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
7481
+ })(nodeInterop);
7482
+ }
7483
+ function _interopRequireWildcard(obj, nodeInterop) {
7484
+ if (!nodeInterop && obj && obj.__esModule) {
7493
7485
  return obj;
7494
7486
  }
7495
7487
  if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
@@ -7497,14 +7489,14 @@ tokenTypes.combinator = combinator$1;
7497
7489
  "default": obj
7498
7490
  };
7499
7491
  }
7500
- var cache = _getRequireWildcardCache();
7492
+ var cache = _getRequireWildcardCache(nodeInterop);
7501
7493
  if (cache && cache.has(obj)) {
7502
7494
  return cache.get(obj);
7503
7495
  }
7504
7496
  var newObj = {};
7505
7497
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
7506
7498
  for (var key in obj) {
7507
- if (Object.prototype.hasOwnProperty.call(obj, key)) {
7499
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
7508
7500
  var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
7509
7501
  if (desc && (desc.get || desc.set)) {
7510
7502
  Object.defineProperty(newObj, key, desc);
@@ -7536,6 +7528,9 @@ tokenTypes.combinator = combinator$1;
7536
7528
  function _createClass(Constructor, protoProps, staticProps) {
7537
7529
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
7538
7530
  if (staticProps) _defineProperties(Constructor, staticProps);
7531
+ Object.defineProperty(Constructor, "prototype", {
7532
+ writable: false
7533
+ });
7539
7534
  return Constructor;
7540
7535
  }
7541
7536
  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);
@@ -7731,9 +7726,7 @@ tokenTypes.combinator = combinator$1;
7731
7726
  }
7732
7727
  break;
7733
7728
  }
7734
-
7735
7729
  // Falls through
7736
-
7737
7730
  case tokens.caret:
7738
7731
  if (next[_tokenize.FIELDS.TYPE] === tokens.equals) {
7739
7732
  node.operator = content;
@@ -7879,6 +7872,7 @@ tokenTypes.combinator = combinator$1;
7879
7872
  this.newNode(new _attribute["default"](node));
7880
7873
  this.position++;
7881
7874
  }
7875
+
7882
7876
  /**
7883
7877
  * return a node containing meaningless garbage up to (but not including) the specified token position.
7884
7878
  * if the token position is negative, all remaining tokens are consumed.
@@ -7891,7 +7885,6 @@ tokenTypes.combinator = combinator$1;
7891
7885
  *
7892
7886
  * In lossy mode, this returns only comments.
7893
7887
  */;
7894
-
7895
7888
  _proto.parseWhitespaceEquivalentTokens = function parseWhitespaceEquivalentTokens(stopPosition) {
7896
7889
  if (stopPosition < 0) {
7897
7890
  stopPosition = this.tokens.length;
@@ -7939,11 +7932,11 @@ tokenTypes.combinator = combinator$1;
7939
7932
  }
7940
7933
  return nodes;
7941
7934
  }
7935
+
7942
7936
  /**
7943
7937
  *
7944
7938
  * @param {*} nodes
7945
7939
  */;
7946
-
7947
7940
  _proto.convertWhitespaceNodesToSpace = function convertWhitespaceNodesToSpace(nodes, requiredSpace) {
7948
7941
  var _this2 = this;
7949
7942
  if (requiredSpace === void 0) {
@@ -7996,8 +7989,8 @@ tokenTypes.combinator = combinator$1;
7996
7989
  var _this3 = this;
7997
7990
  if (this.content() === '|') {
7998
7991
  return this.namespace();
7999
- } // We need to decide between a space that's a descendant combinator and meaningless whitespace at the end of a selector.
8000
-
7992
+ }
7993
+ // We need to decide between a space that's a descendant combinator and meaningless whitespace at the end of a selector.
8001
7994
  var nextSigTokenPos = this.locateNextMeaningfulToken(this.position);
8002
7995
  if (nextSigTokenPos < 0 || this.tokens[nextSigTokenPos][_tokenize.FIELDS.TYPE] === tokens.comma) {
8003
7996
  var nodes = this.parseWhitespaceEquivalentTokens(nextSigTokenPos);
@@ -8122,6 +8115,9 @@ tokenTypes.combinator = combinator$1;
8122
8115
  _proto.unexpected = function unexpected() {
8123
8116
  return this.error("Unexpected '" + this.content() + "'. Escaping special characters with \\ may help.", this.currToken[_tokenize.FIELDS.START_POS]);
8124
8117
  };
8118
+ _proto.unexpectedPipe = function unexpectedPipe() {
8119
+ return this.error("Unexpected '|'.", this.currToken[_tokenize.FIELDS.START_POS]);
8120
+ };
8125
8121
  _proto.namespace = function namespace() {
8126
8122
  var before = this.prevToken && this.content(this.prevToken) || true;
8127
8123
  if (this.nextToken[_tokenize.FIELDS.TYPE] === tokens.word) {
@@ -8131,6 +8127,7 @@ tokenTypes.combinator = combinator$1;
8131
8127
  this.position++;
8132
8128
  return this.universal(before);
8133
8129
  }
8130
+ this.unexpectedPipe();
8134
8131
  };
8135
8132
  _proto.nesting = function nesting() {
8136
8133
  if (this.nextToken) {
@@ -8238,8 +8235,8 @@ tokenTypes.combinator = combinator$1;
8238
8235
  }
8239
8236
  };
8240
8237
  _proto.space = function space() {
8241
- var content = this.content(); // Handle space before and after the selector
8242
-
8238
+ var content = this.content();
8239
+ // Handle space before and after the selector
8243
8240
  if (this.position === 0 || this.prevToken[_tokenize.FIELDS.TYPE] === tokens.comma || this.prevToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis || this.current.nodes.every(function (node) {
8244
8241
  return node.type === 'comment';
8245
8242
  })) {
@@ -8294,15 +8291,15 @@ tokenTypes.combinator = combinator$1;
8294
8291
  }
8295
8292
  var hasClass = indexesOf(word, '.').filter(function (i) {
8296
8293
  // Allow escaped dot within class name
8297
- var escapedDot = word[i - 1] === '\\'; // Allow decimal numbers percent in @keyframes
8298
-
8294
+ var escapedDot = word[i - 1] === '\\';
8295
+ // Allow decimal numbers percent in @keyframes
8299
8296
  var isKeyframesPercent = /^\d+\.\d+%$/.test(word);
8300
8297
  return !escapedDot && !isKeyframesPercent;
8301
8298
  });
8302
8299
  var hasId = indexesOf(word, '#').filter(function (i) {
8303
8300
  return word[i - 1] !== '\\';
8304
- }); // Eliminate Sass interpolations from the list of id indexes
8305
-
8301
+ });
8302
+ // Eliminate Sass interpolations from the list of id indexes
8306
8303
  var interpolations = indexesOf(word, '#{');
8307
8304
  if (interpolations.length) {
8308
8305
  hasId = hasId.filter(function (hashIndex) {
@@ -8343,8 +8340,8 @@ tokenTypes.combinator = combinator$1;
8343
8340
  unescapeProp(tagOpts, "value");
8344
8341
  node = new _tag["default"](tagOpts);
8345
8342
  }
8346
- _this5.newNode(node, namespace); // Ensure that the namespace is used only once
8347
-
8343
+ _this5.newNode(node, namespace);
8344
+ // Ensure that the namespace is used only once
8348
8345
  namespace = null;
8349
8346
  });
8350
8347
  this.position++;
@@ -8409,7 +8406,6 @@ tokenTypes.combinator = combinator$1;
8409
8406
  this.string();
8410
8407
  break;
8411
8408
  // These cases throw; no break needed.
8412
-
8413
8409
  case tokens.closeSquare:
8414
8410
  this.missingSquareBracket();
8415
8411
  case tokens.semicolon:
@@ -8418,10 +8414,10 @@ tokenTypes.combinator = combinator$1;
8418
8414
  this.unexpected();
8419
8415
  }
8420
8416
  }
8417
+
8421
8418
  /**
8422
8419
  * Helpers
8423
8420
  */;
8424
-
8425
8421
  _proto.expected = function expected(description, index, found) {
8426
8422
  if (Array.isArray(description)) {
8427
8423
  var last = description.pop();
@@ -8481,7 +8477,6 @@ tokenTypes.combinator = combinator$1;
8481
8477
  }
8482
8478
  return this.css.slice(token[_tokenize.FIELDS.START_POS], token[_tokenize.FIELDS.END_POS]);
8483
8479
  };
8484
-
8485
8480
  /**
8486
8481
  * returns the index of the next non-whitespace, non-comment token.
8487
8482
  * returns -1 if no meaningful token is found.
@@ -8620,6 +8615,7 @@ tokenTypes.combinator = combinator$1;
8620
8615
  string: string
8621
8616
  };
8622
8617
  }
8618
+
8623
8619
  /**
8624
8620
  * Process rule into a selector AST.
8625
8621
  *
@@ -8627,12 +8623,12 @@ tokenTypes.combinator = combinator$1;
8627
8623
  * @param options The options for processing
8628
8624
  * @returns {Promise<parser.Root>} The AST of the selector after processing it.
8629
8625
  */;
8630
-
8631
8626
  _proto.ast = function ast(rule, options) {
8632
8627
  return this._run(rule, options).then(function (result) {
8633
8628
  return result.root;
8634
8629
  });
8635
8630
  }
8631
+
8636
8632
  /**
8637
8633
  * Process rule into a selector AST synchronously.
8638
8634
  *
@@ -8640,10 +8636,10 @@ tokenTypes.combinator = combinator$1;
8640
8636
  * @param options The options for processing
8641
8637
  * @returns {parser.Root} The AST of the selector after processing it.
8642
8638
  */;
8643
-
8644
8639
  _proto.astSync = function astSync(rule, options) {
8645
8640
  return this._runSync(rule, options).root;
8646
8641
  }
8642
+
8647
8643
  /**
8648
8644
  * Process a selector into a transformed value asynchronously
8649
8645
  *
@@ -8651,12 +8647,12 @@ tokenTypes.combinator = combinator$1;
8651
8647
  * @param options The options for processing
8652
8648
  * @returns {Promise<any>} The value returned by the processor.
8653
8649
  */;
8654
-
8655
8650
  _proto.transform = function transform(rule, options) {
8656
8651
  return this._run(rule, options).then(function (result) {
8657
8652
  return result.transform;
8658
8653
  });
8659
8654
  }
8655
+
8660
8656
  /**
8661
8657
  * Process a selector into a transformed value synchronously.
8662
8658
  *
@@ -8664,10 +8660,10 @@ tokenTypes.combinator = combinator$1;
8664
8660
  * @param options The options for processing
8665
8661
  * @returns {any} The value returned by the processor.
8666
8662
  */;
8667
-
8668
8663
  _proto.transformSync = function transformSync(rule, options) {
8669
8664
  return this._runSync(rule, options).transform;
8670
8665
  }
8666
+
8671
8667
  /**
8672
8668
  * Process a selector into a new selector string asynchronously.
8673
8669
  *
@@ -8675,12 +8671,12 @@ tokenTypes.combinator = combinator$1;
8675
8671
  * @param options The options for processing
8676
8672
  * @returns {string} the selector after processing.
8677
8673
  */;
8678
-
8679
8674
  _proto.process = function process(rule, options) {
8680
8675
  return this._run(rule, options).then(function (result) {
8681
8676
  return result.string || result.root.toString();
8682
8677
  });
8683
8678
  }
8679
+
8684
8680
  /**
8685
8681
  * Process a selector into a new selector string synchronously.
8686
8682
  *
@@ -8688,7 +8684,6 @@ tokenTypes.combinator = combinator$1;
8688
8684
  * @param options The options for processing
8689
8685
  * @returns {string} the selector after processing.
8690
8686
  */;
8691
-
8692
8687
  _proto.processSync = function processSync(rule, options) {
8693
8688
  var result = this._runSync(rule, options);
8694
8689
  return result.string || result.root.toString();
@@ -8774,12 +8769,16 @@ constructors.universal = universal;
8774
8769
  var guards = {};
8775
8770
 
8776
8771
  guards.__esModule = true;
8777
- guards.isNode = isNode;
8778
- guards.isPseudoElement = isPseudoElement;
8779
- guards.isPseudoClass = isPseudoClass;
8772
+ guards.isComment = guards.isCombinator = guards.isClassName = guards.isAttribute = void 0;
8780
8773
  guards.isContainer = isContainer;
8774
+ guards.isIdentifier = void 0;
8781
8775
  guards.isNamespace = isNamespace;
8782
- guards.isUniversal = guards.isTag = guards.isString = guards.isSelector = guards.isRoot = guards.isPseudo = guards.isNesting = guards.isIdentifier = guards.isComment = guards.isCombinator = guards.isClassName = guards.isAttribute = void 0;
8776
+ guards.isNesting = void 0;
8777
+ guards.isNode = isNode;
8778
+ guards.isPseudo = void 0;
8779
+ guards.isPseudoClass = isPseudoClass;
8780
+ guards.isPseudoElement = isPseudoElement;
8781
+ guards.isUniversal = guards.isTag = guards.isString = guards.isSelector = guards.isRoot = void 0;
8783
8782
  var _types = types;
8784
8783
  var _IS_TYPE;
8785
8784
  var IS_TYPE = (_IS_TYPE = {}, _IS_TYPE[_types.ATTRIBUTE] = true, _IS_TYPE[_types.CLASS] = true, _IS_TYPE[_types.COMBINATOR] = true, _IS_TYPE[_types.COMMENT] = true, _IS_TYPE[_types.ID] = true, _IS_TYPE[_types.NESTING] = true, _IS_TYPE[_types.PSEUDO] = true, _IS_TYPE[_types.ROOT] = true, _IS_TYPE[_types.SELECTOR] = true, _IS_TYPE[_types.STRING] = true, _IS_TYPE[_types.TAG] = true, _IS_TYPE[_types.UNIVERSAL] = true, _IS_TYPE);
@@ -8855,16 +8854,16 @@ function isNamespace(node) {
8855
8854
  exports["default"] = void 0;
8856
8855
  var _processor = _interopRequireDefault(processorExports);
8857
8856
  var selectors$1 = _interopRequireWildcard(selectors);
8858
- function _getRequireWildcardCache() {
8857
+ function _getRequireWildcardCache(nodeInterop) {
8859
8858
  if (typeof WeakMap !== "function") return null;
8860
- var cache = new WeakMap();
8861
- _getRequireWildcardCache = function _getRequireWildcardCache() {
8862
- return cache;
8863
- };
8864
- return cache;
8865
- }
8866
- function _interopRequireWildcard(obj) {
8867
- if (obj && obj.__esModule) {
8859
+ var cacheBabelInterop = new WeakMap();
8860
+ var cacheNodeInterop = new WeakMap();
8861
+ return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
8862
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
8863
+ })(nodeInterop);
8864
+ }
8865
+ function _interopRequireWildcard(obj, nodeInterop) {
8866
+ if (!nodeInterop && obj && obj.__esModule) {
8868
8867
  return obj;
8869
8868
  }
8870
8869
  if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
@@ -8872,14 +8871,14 @@ function isNamespace(node) {
8872
8871
  "default": obj
8873
8872
  };
8874
8873
  }
8875
- var cache = _getRequireWildcardCache();
8874
+ var cache = _getRequireWildcardCache(nodeInterop);
8876
8875
  if (cache && cache.has(obj)) {
8877
8876
  return cache.get(obj);
8878
8877
  }
8879
8878
  var newObj = {};
8880
8879
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
8881
8880
  for (var key in obj) {
8882
- if (Object.prototype.hasOwnProperty.call(obj, key)) {
8881
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
8883
8882
  var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
8884
8883
  if (desc && (desc.get || desc.set)) {
8885
8884
  Object.defineProperty(newObj, key, desc);