setupin 3.1.2 → 3.3.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -51,31 +51,25 @@ var __async = (__this, __arguments, generator) => {
51
51
  };
52
52
  (function() {
53
53
  "use strict";
54
- const ASCII_LOGO = "/***************************************\r\n** _ _ **\r\n** ___ ___| |_ _ _ _ __ (_)_ __ **\r\n** / __|/ _ \\ __| | | | '_ \\| | '_ \\ **\r\n** \\__ \\ __/ |_| |_| | |_/ | | | | | **\r\n** |___/\\___|\\__|\\__,_| .__/|_|_| |_| **\r\n** |_| **\r\n***************************************/";
55
- const APP_VAR_NAME = "APP$";
56
- const REPO_NAME = "setupin";
57
- const IMPORTS_TAG_CODE = `
58
- <script ${REPO_NAME} type="importmap">
59
- ${JSON.stringify({ imports: { vue: "https://unpkg.com/vue@latest/dist/vue.runtime.esm-browser.js" } })}
60
- <\/script>
61
- `;
62
- const INIT_CODE = `
63
- let ${APP_VAR_NAME} = {}
64
- `;
65
- const CREATE_APP_CODE = `
66
- import { createApp as _createApp, defineComponent as _defineComponent, h as _h, Suspense as _Suspense } from 'vue'
67
- _createApp(_defineComponent(
68
- String(${APP_VAR_NAME}.setup).startsWith('async')
69
- ? () => () => _h(_Suspense, null, {
70
- default: _h(${APP_VAR_NAME}),
71
- fallback: _h('div', 'Loading...'),
72
- })
73
- : ${APP_VAR_NAME}
74
- )).mount(document.body)
75
- `;
76
- const SCOPED_ID_CODE = `${APP_VAR_NAME}.__scopeId = "data-v-${REPO_NAME}"`;
54
+ function generator({ id: id2, appName, isScoped, mount }) {
55
+ return {
56
+ initCode: `let ${appName} = {}`,
57
+ createAppCode: `
58
+ import { createApp as _createApp, defineComponent as _defineComponent, h as _h, Suspense as _Suspense } from 'vue'
59
+ _createApp(_defineComponent(
60
+ String(${appName}.setup).startsWith('async')
61
+ ? () => () => _h(_Suspense, null, {
62
+ default: _h(${appName}),
63
+ fallback: _h('div', 'Loading...'),
64
+ })
65
+ : ${appName}
66
+ )).mount("${mount}")
67
+ `,
68
+ scopeIdCode: isScoped ? `${appName}.__scopeId = "data-v-${id2}"` : ""
69
+ };
70
+ }
77
71
  /**
78
- * @vue/compiler-sfc v3.5.12
72
+ * @vue/compiler-sfc v3.5.13
79
73
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
80
74
  * @license MIT
81
75
  **/
@@ -243,10 +237,9 @@ var __async = (__this, __arguments, generator) => {
243
237
  return ret;
244
238
  }
245
239
  function stringifyStyle(styles) {
240
+ if (!styles) return "";
241
+ if (isString$1(styles)) return styles;
246
242
  let ret = "";
247
- if (!styles || isString$1(styles)) {
248
- return ret;
249
- }
250
243
  for (const key in styles) {
251
244
  const value = styles[key];
252
245
  if (isString$1(value) || typeof value === "number") {
@@ -724,12 +717,13 @@ var __async = (__this, __arguments, generator) => {
724
717
  loc: locStub
725
718
  };
726
719
  }
727
- function createCacheExpression(index, value, needPauseTracking = false) {
720
+ function createCacheExpression(index, value, needPauseTracking = false, inVOnce = false) {
728
721
  return {
729
722
  type: 20,
730
723
  index,
731
724
  value,
732
725
  needPauseTracking,
726
+ inVOnce,
733
727
  needArraySpread: false,
734
728
  loc: locStub
735
729
  };
@@ -1145,6 +1139,7 @@ var __async = (__this, __arguments, generator) => {
1145
1139
  case EntityDecoderState.NamedEntity: {
1146
1140
  return this.result !== 0 && (this.decodeMode !== DecodingMode.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
1147
1141
  }
1142
+ // Otherwise, emit a numeric entity if we have one.
1148
1143
  case EntityDecoderState.NumericDecimal: {
1149
1144
  return this.emitNumericEntity(0, 2);
1150
1145
  }
@@ -14257,7 +14252,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
14257
14252
  const flags = this.prodParam.currentFlags();
14258
14253
  const prodParamToClear = 8 & flags;
14259
14254
  if (prodParamToClear) {
14260
- this.prodParam.enter(flags & ~8);
14255
+ this.prodParam.enter(flags & -9);
14261
14256
  try {
14262
14257
  return callback();
14263
14258
  } finally {
@@ -16656,6 +16651,9 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
16656
16651
  const isStaticPropertyKey = (node2, parent) => isStaticProperty(parent) && parent.key === node2;
16657
16652
  function isReferenced(node2, parent, grandparent) {
16658
16653
  switch (parent.type) {
16654
+ // yes: PARENT[NODE]
16655
+ // yes: NODE.child
16656
+ // no: parent.NODE
16659
16657
  case "MemberExpression":
16660
16658
  case "OptionalMemberExpression":
16661
16659
  if (parent.property === node2) {
@@ -16664,12 +16662,23 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
16664
16662
  return parent.object === node2;
16665
16663
  case "JSXMemberExpression":
16666
16664
  return parent.object === node2;
16665
+ // no: let NODE = init;
16666
+ // yes: let id = NODE;
16667
16667
  case "VariableDeclarator":
16668
16668
  return parent.init === node2;
16669
+ // yes: () => NODE
16670
+ // no: (NODE) => {}
16669
16671
  case "ArrowFunctionExpression":
16670
16672
  return parent.body === node2;
16673
+ // no: class { #NODE; }
16674
+ // no: class { get #NODE() {} }
16675
+ // no: class { #NODE() {} }
16676
+ // no: class { fn() { return this.#NODE; } }
16671
16677
  case "PrivateName":
16672
16678
  return false;
16679
+ // no: class { NODE() {} }
16680
+ // yes: class { [NODE]() {} }
16681
+ // no: class { foo(NODE) {} }
16673
16682
  case "ClassMethod":
16674
16683
  case "ClassPrivateMethod":
16675
16684
  case "ObjectMethod":
@@ -16677,11 +16686,18 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
16677
16686
  return !!parent.computed;
16678
16687
  }
16679
16688
  return false;
16689
+ // yes: { [NODE]: "" }
16690
+ // no: { NODE: "" }
16691
+ // depends: { NODE }
16692
+ // depends: { key: NODE }
16680
16693
  case "ObjectProperty":
16681
16694
  if (parent.key === node2) {
16682
16695
  return !!parent.computed;
16683
16696
  }
16684
- return !grandparent;
16697
+ return true;
16698
+ // no: class { NODE = value; }
16699
+ // yes: class { [NODE] = value; }
16700
+ // yes: class { key = NODE; }
16685
16701
  case "ClassProperty":
16686
16702
  if (parent.key === node2) {
16687
16703
  return !!parent.computed;
@@ -16689,47 +16705,80 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
16689
16705
  return true;
16690
16706
  case "ClassPrivateProperty":
16691
16707
  return parent.key !== node2;
16708
+ // no: class NODE {}
16709
+ // yes: class Foo extends NODE {}
16692
16710
  case "ClassDeclaration":
16693
16711
  case "ClassExpression":
16694
16712
  return parent.superClass === node2;
16713
+ // yes: left = NODE;
16714
+ // no: NODE = right;
16695
16715
  case "AssignmentExpression":
16696
16716
  return parent.right === node2;
16717
+ // no: [NODE = foo] = [];
16718
+ // yes: [foo = NODE] = [];
16697
16719
  case "AssignmentPattern":
16698
16720
  return parent.right === node2;
16721
+ // no: NODE: for (;;) {}
16699
16722
  case "LabeledStatement":
16700
16723
  return false;
16724
+ // no: try {} catch (NODE) {}
16701
16725
  case "CatchClause":
16702
16726
  return false;
16727
+ // no: function foo(...NODE) {}
16703
16728
  case "RestElement":
16704
16729
  return false;
16705
16730
  case "BreakStatement":
16706
16731
  case "ContinueStatement":
16707
16732
  return false;
16733
+ // no: function NODE() {}
16734
+ // no: function foo(NODE) {}
16708
16735
  case "FunctionDeclaration":
16709
16736
  case "FunctionExpression":
16710
16737
  return false;
16738
+ // no: export NODE from "foo";
16739
+ // no: export * as NODE from "foo";
16711
16740
  case "ExportNamespaceSpecifier":
16712
16741
  case "ExportDefaultSpecifier":
16713
16742
  return false;
16743
+ // no: export { foo as NODE };
16744
+ // yes: export { NODE as foo };
16745
+ // no: export { NODE as foo } from "foo";
16714
16746
  case "ExportSpecifier":
16715
16747
  return parent.local === node2;
16748
+ // no: import NODE from "foo";
16749
+ // no: import * as NODE from "foo";
16750
+ // no: import { NODE as foo } from "foo";
16751
+ // no: import { foo as NODE } from "foo";
16752
+ // no: import NODE from "bar";
16716
16753
  case "ImportDefaultSpecifier":
16717
16754
  case "ImportNamespaceSpecifier":
16718
16755
  case "ImportSpecifier":
16719
16756
  return false;
16757
+ // no: import "foo" assert { NODE: "json" }
16720
16758
  case "ImportAttribute":
16721
16759
  return false;
16760
+ // no: <div NODE="foo" />
16722
16761
  case "JSXAttribute":
16723
16762
  return false;
16763
+ // no: [NODE] = [];
16764
+ // no: ({ NODE }) = [];
16724
16765
  case "ObjectPattern":
16725
16766
  case "ArrayPattern":
16726
16767
  return false;
16768
+ // no: new.NODE
16769
+ // no: NODE.target
16727
16770
  case "MetaProperty":
16728
16771
  return false;
16772
+ // yes: type X = { someProperty: NODE }
16773
+ // no: type X = { NODE: OtherType }
16729
16774
  case "ObjectTypeProperty":
16730
16775
  return parent.key !== node2;
16776
+ // yes: enum X { Foo = NODE }
16777
+ // no: enum X { NODE }
16731
16778
  case "TSEnumMember":
16732
16779
  return parent.id !== node2;
16780
+ // yes: { [NODE]: value }
16781
+ // no: { NODE: value }
16733
16782
  case "TSPropertySignature":
16734
16783
  if (parent.key === node2) {
16735
16784
  return !!parent.computed;
@@ -17379,7 +17428,9 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
17379
17428
  case 17:
17380
17429
  case 18:
17381
17430
  case 19:
17431
+ // "
17382
17432
  case 20:
17433
+ // '
17383
17434
  case 21:
17384
17435
  emitError(9, end);
17385
17436
  break;
@@ -18210,11 +18261,12 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
18210
18261
  identifier.hoisted = exp;
18211
18262
  return identifier;
18212
18263
  },
18213
- cache(exp, isVNode = false) {
18264
+ cache(exp, isVNode = false, inVOnce = false) {
18214
18265
  const cacheExp = createCacheExpression(
18215
18266
  context.cached.length,
18216
18267
  exp,
18217
- isVNode
18268
+ isVNode,
18269
+ inVOnce
18218
18270
  );
18219
18271
  context.cached.push(cacheExp);
18220
18272
  return cacheExp;
@@ -18328,6 +18380,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
18328
18380
  context.helper(TO_DISPLAY_STRING);
18329
18381
  }
18330
18382
  break;
18383
+ // for container types, further traverse downwards
18331
18384
  case 9:
18332
18385
  for (let i2 = 0; i2 < node2.branches.length; i2++) {
18333
18386
  traverseNode(node2.branches[i2], context);
@@ -18472,7 +18525,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
18472
18525
  function requireUtil$3() {
18473
18526
  if (hasRequiredUtil$3) return util$3;
18474
18527
  hasRequiredUtil$3 = 1;
18475
- (function(exports) {
18528
+ (function(exports$1) {
18476
18529
  function getArg(aArgs, aName, aDefaultValue) {
18477
18530
  if (aName in aArgs) {
18478
18531
  return aArgs[aName];
@@ -18482,7 +18535,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
18482
18535
  throw new Error('"' + aName + '" is a required argument.');
18483
18536
  }
18484
18537
  }
18485
- exports.getArg = getArg;
18538
+ exports$1.getArg = getArg;
18486
18539
  var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;
18487
18540
  var dataUrlRegexp = /^data:.+\,.+$/;
18488
18541
  function urlParse2(aUrl) {
@@ -18498,7 +18551,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
18498
18551
  path: match[5]
18499
18552
  };
18500
18553
  }
18501
- exports.urlParse = urlParse2;
18554
+ exports$1.urlParse = urlParse2;
18502
18555
  function urlGenerate(aParsedUrl) {
18503
18556
  var url = "";
18504
18557
  if (aParsedUrl.scheme) {
@@ -18519,7 +18572,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
18519
18572
  }
18520
18573
  return url;
18521
18574
  }
18522
- exports.urlGenerate = urlGenerate;
18575
+ exports$1.urlGenerate = urlGenerate;
18523
18576
  var MAX_CACHED_INPUTS = 32;
18524
18577
  function lruMemoize(f) {
18525
18578
  var cache = [];
@@ -18552,7 +18605,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
18552
18605
  }
18553
18606
  path2 = url.path;
18554
18607
  }
18555
- var isAbsolute2 = exports.isAbsolute(path2);
18608
+ var isAbsolute2 = exports$1.isAbsolute(path2);
18556
18609
  var parts = [];
18557
18610
  var start = 0;
18558
18611
  var i = 0;
@@ -18595,7 +18648,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
18595
18648
  }
18596
18649
  return path2;
18597
18650
  });
18598
- exports.normalize = normalize2;
18651
+ exports$1.normalize = normalize2;
18599
18652
  function join2(aRoot, aPath) {
18600
18653
  if (aRoot === "") {
18601
18654
  aRoot = ".";
@@ -18628,8 +18681,8 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
18628
18681
  }
18629
18682
  return joined;
18630
18683
  }
18631
- exports.join = join2;
18632
- exports.isAbsolute = function(aPath) {
18684
+ exports$1.join = join2;
18685
+ exports$1.isAbsolute = function(aPath) {
18633
18686
  return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
18634
18687
  };
18635
18688
  function relative2(aRoot, aPath) {
@@ -18651,11 +18704,11 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
18651
18704
  }
18652
18705
  return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);
18653
18706
  }
18654
- exports.relative = relative2;
18655
- var supportsNullProto = function() {
18707
+ exports$1.relative = relative2;
18708
+ var supportsNullProto = (function() {
18656
18709
  var obj = /* @__PURE__ */ Object.create(null);
18657
18710
  return !("__proto__" in obj);
18658
- }();
18711
+ })();
18659
18712
  function identity(s) {
18660
18713
  return s;
18661
18714
  }
@@ -18665,14 +18718,14 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
18665
18718
  }
18666
18719
  return aStr;
18667
18720
  }
18668
- exports.toSetString = supportsNullProto ? identity : toSetString;
18721
+ exports$1.toSetString = supportsNullProto ? identity : toSetString;
18669
18722
  function fromSetString(aStr) {
18670
18723
  if (isProtoString(aStr)) {
18671
18724
  return aStr.slice(1);
18672
18725
  }
18673
18726
  return aStr;
18674
18727
  }
18675
- exports.fromSetString = supportsNullProto ? identity : fromSetString;
18728
+ exports$1.fromSetString = supportsNullProto ? identity : fromSetString;
18676
18729
  function isProtoString(s) {
18677
18730
  if (!s) {
18678
18731
  return false;
@@ -18714,7 +18767,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
18714
18767
  }
18715
18768
  return strcmp(mappingA.name, mappingB.name);
18716
18769
  }
18717
- exports.compareByOriginalPositions = compareByOriginalPositions;
18770
+ exports$1.compareByOriginalPositions = compareByOriginalPositions;
18718
18771
  function compareByOriginalPositionsNoSource(mappingA, mappingB, onlyCompareOriginal) {
18719
18772
  var cmp;
18720
18773
  cmp = mappingA.originalLine - mappingB.originalLine;
@@ -18735,7 +18788,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
18735
18788
  }
18736
18789
  return strcmp(mappingA.name, mappingB.name);
18737
18790
  }
18738
- exports.compareByOriginalPositionsNoSource = compareByOriginalPositionsNoSource;
18791
+ exports$1.compareByOriginalPositionsNoSource = compareByOriginalPositionsNoSource;
18739
18792
  function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) {
18740
18793
  var cmp = mappingA.generatedLine - mappingB.generatedLine;
18741
18794
  if (cmp !== 0) {
@@ -18759,7 +18812,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
18759
18812
  }
18760
18813
  return strcmp(mappingA.name, mappingB.name);
18761
18814
  }
18762
- exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
18815
+ exports$1.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
18763
18816
  function compareByGeneratedPositionsDeflatedNoLine(mappingA, mappingB, onlyCompareGenerated) {
18764
18817
  var cmp = mappingA.generatedColumn - mappingB.generatedColumn;
18765
18818
  if (cmp !== 0 || onlyCompareGenerated) {
@@ -18779,7 +18832,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
18779
18832
  }
18780
18833
  return strcmp(mappingA.name, mappingB.name);
18781
18834
  }
18782
- exports.compareByGeneratedPositionsDeflatedNoLine = compareByGeneratedPositionsDeflatedNoLine;
18835
+ exports$1.compareByGeneratedPositionsDeflatedNoLine = compareByGeneratedPositionsDeflatedNoLine;
18783
18836
  function strcmp(aStr1, aStr2) {
18784
18837
  if (aStr1 === aStr2) {
18785
18838
  return 0;
@@ -18818,11 +18871,11 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
18818
18871
  }
18819
18872
  return strcmp(mappingA.name, mappingB.name);
18820
18873
  }
18821
- exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
18874
+ exports$1.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
18822
18875
  function parseSourceMapInput(str) {
18823
18876
  return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, ""));
18824
18877
  }
18825
- exports.parseSourceMapInput = parseSourceMapInput;
18878
+ exports$1.parseSourceMapInput = parseSourceMapInput;
18826
18879
  function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) {
18827
18880
  sourceURL = sourceURL || "";
18828
18881
  if (sourceRoot) {
@@ -18846,7 +18899,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
18846
18899
  }
18847
18900
  return normalize2(sourceURL);
18848
18901
  }
18849
- exports.computeSourceURL = computeSourceURL;
18902
+ exports$1.computeSourceURL = computeSourceURL;
18850
18903
  })(util$3);
18851
18904
  return util$3;
18852
18905
  }
@@ -19260,9 +19313,9 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
19260
19313
  function requireBinarySearch$2() {
19261
19314
  if (hasRequiredBinarySearch$2) return binarySearch$2;
19262
19315
  hasRequiredBinarySearch$2 = 1;
19263
- (function(exports) {
19264
- exports.GREATEST_LOWER_BOUND = 1;
19265
- exports.LEAST_UPPER_BOUND = 2;
19316
+ (function(exports$1) {
19317
+ exports$1.GREATEST_LOWER_BOUND = 1;
19318
+ exports$1.LEAST_UPPER_BOUND = 2;
19266
19319
  function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {
19267
19320
  var mid = Math.floor((aHigh - aLow) / 2) + aLow;
19268
19321
  var cmp = aCompare(aNeedle, aHaystack[mid], true);
@@ -19272,7 +19325,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
19272
19325
  if (aHigh - mid > 1) {
19273
19326
  return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias);
19274
19327
  }
19275
- if (aBias == exports.LEAST_UPPER_BOUND) {
19328
+ if (aBias == exports$1.LEAST_UPPER_BOUND) {
19276
19329
  return aHigh < aHaystack.length ? aHigh : -1;
19277
19330
  } else {
19278
19331
  return mid;
@@ -19281,14 +19334,14 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
19281
19334
  if (mid - aLow > 1) {
19282
19335
  return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias);
19283
19336
  }
19284
- if (aBias == exports.LEAST_UPPER_BOUND) {
19337
+ if (aBias == exports$1.LEAST_UPPER_BOUND) {
19285
19338
  return mid;
19286
19339
  } else {
19287
19340
  return aLow < 0 ? -1 : aLow;
19288
19341
  }
19289
19342
  }
19290
19343
  }
19291
- exports.search = function search(aNeedle, aHaystack, aCompare, aBias) {
19344
+ exports$1.search = function search(aNeedle, aHaystack, aCompare, aBias) {
19292
19345
  if (aHaystack.length === 0) {
19293
19346
  return -1;
19294
19347
  }
@@ -19298,7 +19351,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
19298
19351
  aNeedle,
19299
19352
  aHaystack,
19300
19353
  aCompare,
19301
- aBias || exports.GREATEST_LOWER_BOUND
19354
+ aBias || exports$1.GREATEST_LOWER_BOUND
19302
19355
  );
19303
19356
  if (index < 0) {
19304
19357
  return -1;
@@ -20747,6 +20800,7 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
20747
20800
  case 21:
20748
20801
  genNodeList(node2.body, context, true, false);
20749
20802
  break;
20803
+ // SSR only types
20750
20804
  case 22:
20751
20805
  genTemplateLiteral(node2, context);
20752
20806
  break;
@@ -20762,6 +20816,7 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
20762
20816
  case 26:
20763
20817
  genReturnStatement(node2, context);
20764
20818
  break;
20819
+ /* v8 ignore start */
20765
20820
  case 10:
20766
20821
  break;
20767
20822
  default: {
@@ -21000,7 +21055,9 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
21000
21055
  push(`_cache[${node2.index}] || (`);
21001
21056
  if (needPauseTracking) {
21002
21057
  indent();
21003
- push(`${helper(SET_BLOCK_TRACKING)}(-1),`);
21058
+ push(`${helper(SET_BLOCK_TRACKING)}(-1`);
21059
+ if (node2.inVOnce) push(`, true`);
21060
+ push(`),`);
21004
21061
  newline();
21005
21062
  push(`(`);
21006
21063
  }
@@ -21091,12 +21148,14 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
21091
21148
  context
21092
21149
  );
21093
21150
  } else if (node2.type === 1) {
21151
+ const memo = findDir(node2, "memo");
21094
21152
  for (let i = 0; i < node2.props.length; i++) {
21095
21153
  const dir = node2.props[i];
21096
21154
  if (dir.type === 7 && dir.name !== "for") {
21097
21155
  const exp = dir.exp;
21098
21156
  const arg = dir.arg;
21099
- if (exp && exp.type === 4 && !(dir.name === "on" && arg)) {
21157
+ if (exp && exp.type === 4 && !(dir.name === "on" && arg) && // key has been processed in transformFor(vMemo + vFor)
21158
+ !(memo && arg && arg.type === 4 && arg.content === "key")) {
21100
21159
  dir.exp = processExpression(
21101
21160
  exp,
21102
21161
  context,
@@ -21618,10 +21677,19 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
21618
21677
  const isTemplate = isTemplateNode(node2);
21619
21678
  const memo = findDir(node2, "memo");
21620
21679
  const keyProp = findProp(node2, `key`, false, true);
21621
- if (keyProp && keyProp.type === 7 && !keyProp.exp) {
21680
+ const isDirKey = keyProp && keyProp.type === 7;
21681
+ if (isDirKey && !keyProp.exp) {
21622
21682
  transformBindShorthand(keyProp, context);
21623
21683
  }
21624
- const keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
21684
+ let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
21685
+ if (memo && keyExp && isDirKey) {
21686
+ {
21687
+ keyProp.exp = keyExp = processExpression(
21688
+ keyExp,
21689
+ context
21690
+ );
21691
+ }
21692
+ }
21625
21693
  const keyProperty = keyProp && keyExp ? createObjectProperty(`key`, keyExp) : null;
21626
21694
  if (isTemplate) {
21627
21695
  if (memo) {
@@ -22965,8 +23033,8 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
22965
23033
  if (cur.codegenNode) {
22966
23034
  cur.codegenNode = context.cache(
22967
23035
  cur.codegenNode,
23036
+ true,
22968
23037
  true
22969
- /* isVNode */
22970
23038
  );
22971
23039
  }
22972
23040
  };
@@ -28566,24 +28634,27 @@ ${defaultVar}.setup = __setup__
28566
28634
  ];
28567
28635
  }
28568
28636
  } else if (directives.length && !node2.children.length) {
28569
- const tempId = `_temp${context.temps++}`;
28570
- propsExp.arguments = [
28571
- createAssignmentExpression(
28572
- createSimpleExpression(tempId, false),
28573
- mergedProps
28574
- )
28575
- ];
28576
- rawChildrenMap.set(
28577
- node2,
28578
- createConditionalExpression(
28579
- createSimpleExpression(`"textContent" in ${tempId}`, false),
28580
- createCallExpression(context.helper(SSR_INTERPOLATE), [
28581
- createSimpleExpression(`${tempId}.textContent`, false)
28582
- ]),
28583
- createSimpleExpression(`${tempId}.innerHTML ?? ''`, false),
28584
- false
28585
- )
28586
- );
28637
+ const vText = findDir(node2, "text");
28638
+ if (!vText) {
28639
+ const tempId = `_temp${context.temps++}`;
28640
+ propsExp.arguments = [
28641
+ createAssignmentExpression(
28642
+ createSimpleExpression(tempId, false),
28643
+ mergedProps
28644
+ )
28645
+ ];
28646
+ rawChildrenMap.set(
28647
+ node2,
28648
+ createConditionalExpression(
28649
+ createSimpleExpression(`"textContent" in ${tempId}`, false),
28650
+ createCallExpression(context.helper(SSR_INTERPOLATE), [
28651
+ createSimpleExpression(`${tempId}.textContent`, false)
28652
+ ]),
28653
+ createSimpleExpression(`${tempId}.innerHTML ?? ''`, false),
28654
+ false
28655
+ )
28656
+ );
28657
+ }
28587
28658
  }
28588
28659
  if (needTagForRuntime) {
28589
28660
  propsExp.arguments.push(`"${node2.tag}"`);
@@ -29407,11 +29478,18 @@ ${defaultVar}.setup = __setup__
29407
29478
  checkDuplicatedValue();
29408
29479
  node2.children = [createInterpolation(model, model.loc)];
29409
29480
  } else if (node2.tag === "select") {
29410
- node2.children.forEach((child) => {
29411
- if (child.type === 1) {
29412
- processOption(child);
29413
- }
29414
- });
29481
+ const processChildren2 = (children) => {
29482
+ children.forEach((child) => {
29483
+ if (child.type === 1) {
29484
+ processOption(child);
29485
+ } else if (child.type === 11) {
29486
+ processChildren2(child.children);
29487
+ } else if (child.type === 9) {
29488
+ child.branches.forEach((b) => processChildren2(b.children));
29489
+ }
29490
+ });
29491
+ };
29492
+ processChildren2(node2.children);
29415
29493
  } else {
29416
29494
  context.onError(
29417
29495
  createDOMCompilerError(
@@ -29615,17 +29693,14 @@ ${defaultVar}.setup = __setup__
29615
29693
  __proto__: null,
29616
29694
  compile
29617
29695
  });
29618
- function commonjsRequire(path2) {
29619
- throw new Error('Could not dynamically require "' + path2 + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
29620
- }
29621
29696
  var _polyfillNode_fs = {};
29622
29697
  var _polyfillNode_fs$1 = /* @__PURE__ */ Object.freeze({
29623
29698
  __proto__: null,
29624
29699
  default: _polyfillNode_fs
29625
29700
  });
29626
- var require$$0$2 = /* @__PURE__ */ getAugmentedNamespace(_polyfillNode_fs$1);
29701
+ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(_polyfillNode_fs$1);
29627
29702
  var require$$1 = /* @__PURE__ */ getAugmentedNamespace(_polyfillNode_path);
29628
- var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(_polyfillNode_util$1);
29703
+ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(_polyfillNode_util$1);
29629
29704
  const hasWarned = {};
29630
29705
  function warnOnce$1(msg) {
29631
29706
  const isNodeProd = typeof process !== "undefined" && process.env.NODE_ENV === "production";
@@ -29865,42 +29940,18 @@ ${generateCodeFrame(
29865
29940
  });
29866
29941
  }
29867
29942
  var picocolors = { exports: {} };
29868
- function isatty() {
29869
- return false;
29870
- }
29871
- function ReadStream() {
29872
- throw new Error("tty.ReadStream is not implemented");
29873
- }
29874
- function WriteStream() {
29875
- throw new Error("tty.ReadStream is not implemented");
29876
- }
29877
- var _polyfillNode_tty = {
29878
- isatty,
29879
- ReadStream,
29880
- WriteStream
29881
- };
29882
- var _polyfillNode_tty$1 = /* @__PURE__ */ Object.freeze({
29883
- __proto__: null,
29884
- ReadStream,
29885
- WriteStream,
29886
- default: _polyfillNode_tty,
29887
- isatty
29888
- });
29889
- var require$$0 = /* @__PURE__ */ getAugmentedNamespace(_polyfillNode_tty$1);
29890
29943
  var hasRequiredPicocolors;
29891
29944
  function requirePicocolors() {
29892
29945
  if (hasRequiredPicocolors) return picocolors.exports;
29893
29946
  hasRequiredPicocolors = 1;
29894
- let argv2 = browser$1.argv || [], env2 = {};
29895
- let isColorSupported = !("NO_COLOR" in env2 || argv2.includes("--no-color")) && ("FORCE_COLOR" in env2 || argv2.includes("--color") || false || commonjsRequire != null && require$$0.isatty(1) && env2.TERM !== "dumb" || "CI" in env2);
29947
+ let p = browser$1 || {}, argv2 = p.argv || [], env2 = p.env || {};
29948
+ let isColorSupported = !(!!env2.NO_COLOR || argv2.includes("--no-color")) && (!!env2.FORCE_COLOR || argv2.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env2.TERM !== "dumb" || !!env2.CI);
29896
29949
  let formatter = (open, close, replace = open) => (input2) => {
29897
- let string2 = "" + input2;
29898
- let index = string2.indexOf(close, open.length);
29950
+ let string2 = "" + input2, index = string2.indexOf(close, open.length);
29899
29951
  return ~index ? open + replaceClose(string2, close, replace, index) + close : open + string2 + close;
29900
29952
  };
29901
29953
  let replaceClose = (string2, close, replace, index) => {
29902
- let result2 = "";
29903
- let cursor = 0;
29954
+ let result2 = "", cursor = 0;
29904
29955
  do {
29905
29956
  result2 += string2.substring(cursor, index) + replace;
29906
29957
  cursor = index + close.length;
@@ -29909,50 +29960,50 @@ ${generateCodeFrame(
29909
29960
  return result2 + string2.substring(cursor);
29910
29961
  };
29911
29962
  let createColors = (enabled = isColorSupported) => {
29912
- let init2 = enabled ? formatter : () => String;
29963
+ let f = enabled ? formatter : () => String;
29913
29964
  return {
29914
29965
  isColorSupported: enabled,
29915
- reset: init2("\x1B[0m", "\x1B[0m"),
29916
- bold: init2("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
29917
- dim: init2("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
29918
- italic: init2("\x1B[3m", "\x1B[23m"),
29919
- underline: init2("\x1B[4m", "\x1B[24m"),
29920
- inverse: init2("\x1B[7m", "\x1B[27m"),
29921
- hidden: init2("\x1B[8m", "\x1B[28m"),
29922
- strikethrough: init2("\x1B[9m", "\x1B[29m"),
29923
- black: init2("\x1B[30m", "\x1B[39m"),
29924
- red: init2("\x1B[31m", "\x1B[39m"),
29925
- green: init2("\x1B[32m", "\x1B[39m"),
29926
- yellow: init2("\x1B[33m", "\x1B[39m"),
29927
- blue: init2("\x1B[34m", "\x1B[39m"),
29928
- magenta: init2("\x1B[35m", "\x1B[39m"),
29929
- cyan: init2("\x1B[36m", "\x1B[39m"),
29930
- white: init2("\x1B[37m", "\x1B[39m"),
29931
- gray: init2("\x1B[90m", "\x1B[39m"),
29932
- bgBlack: init2("\x1B[40m", "\x1B[49m"),
29933
- bgRed: init2("\x1B[41m", "\x1B[49m"),
29934
- bgGreen: init2("\x1B[42m", "\x1B[49m"),
29935
- bgYellow: init2("\x1B[43m", "\x1B[49m"),
29936
- bgBlue: init2("\x1B[44m", "\x1B[49m"),
29937
- bgMagenta: init2("\x1B[45m", "\x1B[49m"),
29938
- bgCyan: init2("\x1B[46m", "\x1B[49m"),
29939
- bgWhite: init2("\x1B[47m", "\x1B[49m"),
29940
- blackBright: init2("\x1B[90m", "\x1B[39m"),
29941
- redBright: init2("\x1B[91m", "\x1B[39m"),
29942
- greenBright: init2("\x1B[92m", "\x1B[39m"),
29943
- yellowBright: init2("\x1B[93m", "\x1B[39m"),
29944
- blueBright: init2("\x1B[94m", "\x1B[39m"),
29945
- magentaBright: init2("\x1B[95m", "\x1B[39m"),
29946
- cyanBright: init2("\x1B[96m", "\x1B[39m"),
29947
- whiteBright: init2("\x1B[97m", "\x1B[39m"),
29948
- bgBlackBright: init2("\x1B[100m", "\x1B[49m"),
29949
- bgRedBright: init2("\x1B[101m", "\x1B[49m"),
29950
- bgGreenBright: init2("\x1B[102m", "\x1B[49m"),
29951
- bgYellowBright: init2("\x1B[103m", "\x1B[49m"),
29952
- bgBlueBright: init2("\x1B[104m", "\x1B[49m"),
29953
- bgMagentaBright: init2("\x1B[105m", "\x1B[49m"),
29954
- bgCyanBright: init2("\x1B[106m", "\x1B[49m"),
29955
- bgWhiteBright: init2("\x1B[107m", "\x1B[49m")
29966
+ reset: f("\x1B[0m", "\x1B[0m"),
29967
+ bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
29968
+ dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
29969
+ italic: f("\x1B[3m", "\x1B[23m"),
29970
+ underline: f("\x1B[4m", "\x1B[24m"),
29971
+ inverse: f("\x1B[7m", "\x1B[27m"),
29972
+ hidden: f("\x1B[8m", "\x1B[28m"),
29973
+ strikethrough: f("\x1B[9m", "\x1B[29m"),
29974
+ black: f("\x1B[30m", "\x1B[39m"),
29975
+ red: f("\x1B[31m", "\x1B[39m"),
29976
+ green: f("\x1B[32m", "\x1B[39m"),
29977
+ yellow: f("\x1B[33m", "\x1B[39m"),
29978
+ blue: f("\x1B[34m", "\x1B[39m"),
29979
+ magenta: f("\x1B[35m", "\x1B[39m"),
29980
+ cyan: f("\x1B[36m", "\x1B[39m"),
29981
+ white: f("\x1B[37m", "\x1B[39m"),
29982
+ gray: f("\x1B[90m", "\x1B[39m"),
29983
+ bgBlack: f("\x1B[40m", "\x1B[49m"),
29984
+ bgRed: f("\x1B[41m", "\x1B[49m"),
29985
+ bgGreen: f("\x1B[42m", "\x1B[49m"),
29986
+ bgYellow: f("\x1B[43m", "\x1B[49m"),
29987
+ bgBlue: f("\x1B[44m", "\x1B[49m"),
29988
+ bgMagenta: f("\x1B[45m", "\x1B[49m"),
29989
+ bgCyan: f("\x1B[46m", "\x1B[49m"),
29990
+ bgWhite: f("\x1B[47m", "\x1B[49m"),
29991
+ blackBright: f("\x1B[90m", "\x1B[39m"),
29992
+ redBright: f("\x1B[91m", "\x1B[39m"),
29993
+ greenBright: f("\x1B[92m", "\x1B[39m"),
29994
+ yellowBright: f("\x1B[93m", "\x1B[39m"),
29995
+ blueBright: f("\x1B[94m", "\x1B[39m"),
29996
+ magentaBright: f("\x1B[95m", "\x1B[39m"),
29997
+ cyanBright: f("\x1B[96m", "\x1B[39m"),
29998
+ whiteBright: f("\x1B[97m", "\x1B[39m"),
29999
+ bgBlackBright: f("\x1B[100m", "\x1B[49m"),
30000
+ bgRedBright: f("\x1B[101m", "\x1B[49m"),
30001
+ bgGreenBright: f("\x1B[102m", "\x1B[49m"),
30002
+ bgYellowBright: f("\x1B[103m", "\x1B[49m"),
30003
+ bgBlueBright: f("\x1B[104m", "\x1B[49m"),
30004
+ bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
30005
+ bgCyanBright: f("\x1B[106m", "\x1B[49m"),
30006
+ bgWhiteBright: f("\x1B[107m", "\x1B[49m")
29956
30007
  };
29957
30008
  };
29958
30009
  picocolors.exports = createColors();
@@ -30813,20 +30864,21 @@ ${generateCodeFrame(
30813
30864
  positionBy(opts, stringRepresentation) {
30814
30865
  let pos = this.source.start;
30815
30866
  if (opts.index) {
30816
- pos = this.positionInside(opts.index, stringRepresentation);
30867
+ pos = this.positionInside(opts.index);
30817
30868
  } else if (opts.word) {
30818
- stringRepresentation = this.toString();
30869
+ stringRepresentation = this.source.input.css.slice(this.source.start.offset, this.source.end.offset);
30819
30870
  let index = stringRepresentation.indexOf(opts.word);
30820
- if (index !== -1) pos = this.positionInside(index, stringRepresentation);
30871
+ if (index !== -1) pos = this.positionInside(index);
30821
30872
  }
30822
30873
  return pos;
30823
30874
  }
30824
- positionInside(index, stringRepresentation) {
30825
- let string2 = stringRepresentation || this.toString();
30875
+ positionInside(index) {
30826
30876
  let column = this.source.start.column;
30827
30877
  let line = this.source.start.line;
30828
- for (let i = 0; i < index; i++) {
30829
- if (string2[i] === "\n") {
30878
+ let offset = this.source.start.offset;
30879
+ let end = offset + index;
30880
+ for (let i = offset; i < end; i++) {
30881
+ if (this.source.input.css[i] === "\n") {
30830
30882
  column = 1;
30831
30883
  line += 1;
30832
30884
  } else {
@@ -30853,7 +30905,7 @@ ${generateCodeFrame(
30853
30905
  line: start.line
30854
30906
  };
30855
30907
  if (opts.word) {
30856
- let stringRepresentation = this.toString();
30908
+ let stringRepresentation = this.source.input.css.slice(this.source.start.offset, this.source.end.offset);
30857
30909
  let index = stringRepresentation.indexOf(opts.word);
30858
30910
  if (index !== -1) {
30859
30911
  start = this.positionInside(index, stringRepresentation);
@@ -31599,7 +31651,7 @@ ${generateCodeFrame(
31599
31651
  function requireUtil$2() {
31600
31652
  if (hasRequiredUtil$2) return util$2;
31601
31653
  hasRequiredUtil$2 = 1;
31602
- (function(exports) {
31654
+ (function(exports$1) {
31603
31655
  function getArg(aArgs, aName, aDefaultValue) {
31604
31656
  if (aName in aArgs) {
31605
31657
  return aArgs[aName];
@@ -31609,7 +31661,7 @@ ${generateCodeFrame(
31609
31661
  throw new Error('"' + aName + '" is a required argument.');
31610
31662
  }
31611
31663
  }
31612
- exports.getArg = getArg;
31664
+ exports$1.getArg = getArg;
31613
31665
  var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;
31614
31666
  var dataUrlRegexp = /^data:.+\,.+$/;
31615
31667
  function urlParse2(aUrl) {
@@ -31625,7 +31677,7 @@ ${generateCodeFrame(
31625
31677
  path: match[5]
31626
31678
  };
31627
31679
  }
31628
- exports.urlParse = urlParse2;
31680
+ exports$1.urlParse = urlParse2;
31629
31681
  function urlGenerate(aParsedUrl) {
31630
31682
  var url = "";
31631
31683
  if (aParsedUrl.scheme) {
@@ -31646,7 +31698,7 @@ ${generateCodeFrame(
31646
31698
  }
31647
31699
  return url;
31648
31700
  }
31649
- exports.urlGenerate = urlGenerate;
31701
+ exports$1.urlGenerate = urlGenerate;
31650
31702
  var MAX_CACHED_INPUTS = 32;
31651
31703
  function lruMemoize(f) {
31652
31704
  var cache = [];
@@ -31679,7 +31731,7 @@ ${generateCodeFrame(
31679
31731
  }
31680
31732
  path2 = url.path;
31681
31733
  }
31682
- var isAbsolute2 = exports.isAbsolute(path2);
31734
+ var isAbsolute2 = exports$1.isAbsolute(path2);
31683
31735
  var parts = [];
31684
31736
  var start = 0;
31685
31737
  var i = 0;
@@ -31722,7 +31774,7 @@ ${generateCodeFrame(
31722
31774
  }
31723
31775
  return path2;
31724
31776
  });
31725
- exports.normalize = normalize2;
31777
+ exports$1.normalize = normalize2;
31726
31778
  function join2(aRoot, aPath) {
31727
31779
  if (aRoot === "") {
31728
31780
  aRoot = ".";
@@ -31755,8 +31807,8 @@ ${generateCodeFrame(
31755
31807
  }
31756
31808
  return joined;
31757
31809
  }
31758
- exports.join = join2;
31759
- exports.isAbsolute = function(aPath) {
31810
+ exports$1.join = join2;
31811
+ exports$1.isAbsolute = function(aPath) {
31760
31812
  return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
31761
31813
  };
31762
31814
  function relative2(aRoot, aPath) {
@@ -31778,11 +31830,11 @@ ${generateCodeFrame(
31778
31830
  }
31779
31831
  return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);
31780
31832
  }
31781
- exports.relative = relative2;
31782
- var supportsNullProto = function() {
31833
+ exports$1.relative = relative2;
31834
+ var supportsNullProto = (function() {
31783
31835
  var obj = /* @__PURE__ */ Object.create(null);
31784
31836
  return !("__proto__" in obj);
31785
- }();
31837
+ })();
31786
31838
  function identity(s) {
31787
31839
  return s;
31788
31840
  }
@@ -31792,14 +31844,14 @@ ${generateCodeFrame(
31792
31844
  }
31793
31845
  return aStr;
31794
31846
  }
31795
- exports.toSetString = supportsNullProto ? identity : toSetString;
31847
+ exports$1.toSetString = supportsNullProto ? identity : toSetString;
31796
31848
  function fromSetString(aStr) {
31797
31849
  if (isProtoString(aStr)) {
31798
31850
  return aStr.slice(1);
31799
31851
  }
31800
31852
  return aStr;
31801
31853
  }
31802
- exports.fromSetString = supportsNullProto ? identity : fromSetString;
31854
+ exports$1.fromSetString = supportsNullProto ? identity : fromSetString;
31803
31855
  function isProtoString(s) {
31804
31856
  if (!s) {
31805
31857
  return false;
@@ -31841,7 +31893,7 @@ ${generateCodeFrame(
31841
31893
  }
31842
31894
  return strcmp(mappingA.name, mappingB.name);
31843
31895
  }
31844
- exports.compareByOriginalPositions = compareByOriginalPositions;
31896
+ exports$1.compareByOriginalPositions = compareByOriginalPositions;
31845
31897
  function compareByOriginalPositionsNoSource(mappingA, mappingB, onlyCompareOriginal) {
31846
31898
  var cmp;
31847
31899
  cmp = mappingA.originalLine - mappingB.originalLine;
@@ -31862,7 +31914,7 @@ ${generateCodeFrame(
31862
31914
  }
31863
31915
  return strcmp(mappingA.name, mappingB.name);
31864
31916
  }
31865
- exports.compareByOriginalPositionsNoSource = compareByOriginalPositionsNoSource;
31917
+ exports$1.compareByOriginalPositionsNoSource = compareByOriginalPositionsNoSource;
31866
31918
  function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) {
31867
31919
  var cmp = mappingA.generatedLine - mappingB.generatedLine;
31868
31920
  if (cmp !== 0) {
@@ -31886,7 +31938,7 @@ ${generateCodeFrame(
31886
31938
  }
31887
31939
  return strcmp(mappingA.name, mappingB.name);
31888
31940
  }
31889
- exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
31941
+ exports$1.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
31890
31942
  function compareByGeneratedPositionsDeflatedNoLine(mappingA, mappingB, onlyCompareGenerated) {
31891
31943
  var cmp = mappingA.generatedColumn - mappingB.generatedColumn;
31892
31944
  if (cmp !== 0 || onlyCompareGenerated) {
@@ -31906,7 +31958,7 @@ ${generateCodeFrame(
31906
31958
  }
31907
31959
  return strcmp(mappingA.name, mappingB.name);
31908
31960
  }
31909
- exports.compareByGeneratedPositionsDeflatedNoLine = compareByGeneratedPositionsDeflatedNoLine;
31961
+ exports$1.compareByGeneratedPositionsDeflatedNoLine = compareByGeneratedPositionsDeflatedNoLine;
31910
31962
  function strcmp(aStr1, aStr2) {
31911
31963
  if (aStr1 === aStr2) {
31912
31964
  return 0;
@@ -31945,11 +31997,11 @@ ${generateCodeFrame(
31945
31997
  }
31946
31998
  return strcmp(mappingA.name, mappingB.name);
31947
31999
  }
31948
- exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
32000
+ exports$1.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
31949
32001
  function parseSourceMapInput(str) {
31950
32002
  return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, ""));
31951
32003
  }
31952
- exports.parseSourceMapInput = parseSourceMapInput;
32004
+ exports$1.parseSourceMapInput = parseSourceMapInput;
31953
32005
  function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) {
31954
32006
  sourceURL = sourceURL || "";
31955
32007
  if (sourceRoot) {
@@ -31973,7 +32025,7 @@ ${generateCodeFrame(
31973
32025
  }
31974
32026
  return normalize2(sourceURL);
31975
32027
  }
31976
- exports.computeSourceURL = computeSourceURL;
32028
+ exports$1.computeSourceURL = computeSourceURL;
31977
32029
  })(util$2);
31978
32030
  return util$2;
31979
32031
  }
@@ -32387,9 +32439,9 @@ ${generateCodeFrame(
32387
32439
  function requireBinarySearch$1() {
32388
32440
  if (hasRequiredBinarySearch$1) return binarySearch$1;
32389
32441
  hasRequiredBinarySearch$1 = 1;
32390
- (function(exports) {
32391
- exports.GREATEST_LOWER_BOUND = 1;
32392
- exports.LEAST_UPPER_BOUND = 2;
32442
+ (function(exports$1) {
32443
+ exports$1.GREATEST_LOWER_BOUND = 1;
32444
+ exports$1.LEAST_UPPER_BOUND = 2;
32393
32445
  function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {
32394
32446
  var mid = Math.floor((aHigh - aLow) / 2) + aLow;
32395
32447
  var cmp = aCompare(aNeedle, aHaystack[mid], true);
@@ -32399,7 +32451,7 @@ ${generateCodeFrame(
32399
32451
  if (aHigh - mid > 1) {
32400
32452
  return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias);
32401
32453
  }
32402
- if (aBias == exports.LEAST_UPPER_BOUND) {
32454
+ if (aBias == exports$1.LEAST_UPPER_BOUND) {
32403
32455
  return aHigh < aHaystack.length ? aHigh : -1;
32404
32456
  } else {
32405
32457
  return mid;
@@ -32408,14 +32460,14 @@ ${generateCodeFrame(
32408
32460
  if (mid - aLow > 1) {
32409
32461
  return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias);
32410
32462
  }
32411
- if (aBias == exports.LEAST_UPPER_BOUND) {
32463
+ if (aBias == exports$1.LEAST_UPPER_BOUND) {
32412
32464
  return mid;
32413
32465
  } else {
32414
32466
  return aLow < 0 ? -1 : aLow;
32415
32467
  }
32416
32468
  }
32417
32469
  }
32418
- exports.search = function search(aNeedle, aHaystack, aCompare, aBias) {
32470
+ exports$1.search = function search(aNeedle, aHaystack, aCompare, aBias) {
32419
32471
  if (aHaystack.length === 0) {
32420
32472
  return -1;
32421
32473
  }
@@ -32425,7 +32477,7 @@ ${generateCodeFrame(
32425
32477
  aNeedle,
32426
32478
  aHaystack,
32427
32479
  aCompare,
32428
- aBias || exports.GREATEST_LOWER_BOUND
32480
+ aBias || exports$1.GREATEST_LOWER_BOUND
32429
32481
  );
32430
32482
  if (index < 0) {
32431
32483
  return -1;
@@ -33418,7 +33470,7 @@ ${generateCodeFrame(
33418
33470
  function requirePreviousMap() {
33419
33471
  if (hasRequiredPreviousMap) return previousMap;
33420
33472
  hasRequiredPreviousMap = 1;
33421
- let { existsSync, readFileSync } = require$$0$2;
33473
+ let { existsSync, readFileSync } = require$$0$1;
33422
33474
  let { dirname: dirname2, join: join2 } = require$$1;
33423
33475
  let { SourceMapConsumer, SourceMapGenerator } = /* @__PURE__ */ requireSourceMap$1();
33424
33476
  function fromBase64(str) {
@@ -35508,7 +35560,7 @@ ${generateCodeFrame(
35508
35560
  let Root = /* @__PURE__ */ requireRoot$1();
35509
35561
  class Processor {
35510
35562
  constructor(plugins = []) {
35511
- this.version = "8.4.47";
35563
+ this.version = "8.4.48";
35512
35564
  this.plugins = this.normalize(plugins);
35513
35565
  }
35514
35566
  normalize(plugins) {
@@ -35695,9 +35747,9 @@ ${generateCodeFrame(
35695
35747
  function requireUnesc() {
35696
35748
  if (hasRequiredUnesc) return unesc.exports;
35697
35749
  hasRequiredUnesc = 1;
35698
- (function(module, exports) {
35699
- exports.__esModule = true;
35700
- exports["default"] = unesc2;
35750
+ (function(module, exports$1) {
35751
+ exports$1.__esModule = true;
35752
+ exports$1["default"] = unesc2;
35701
35753
  function gobbleHex(str) {
35702
35754
  var lower = str.toLowerCase();
35703
35755
  var hex = "";
@@ -35750,7 +35802,7 @@ ${generateCodeFrame(
35750
35802
  }
35751
35803
  return ret;
35752
35804
  }
35753
- module.exports = exports.default;
35805
+ module.exports = exports$1.default;
35754
35806
  })(unesc, unesc.exports);
35755
35807
  return unesc.exports;
35756
35808
  }
@@ -35759,9 +35811,9 @@ ${generateCodeFrame(
35759
35811
  function requireGetProp() {
35760
35812
  if (hasRequiredGetProp) return getProp.exports;
35761
35813
  hasRequiredGetProp = 1;
35762
- (function(module, exports) {
35763
- exports.__esModule = true;
35764
- exports["default"] = getProp2;
35814
+ (function(module, exports$1) {
35815
+ exports$1.__esModule = true;
35816
+ exports$1["default"] = getProp2;
35765
35817
  function getProp2(obj) {
35766
35818
  for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
35767
35819
  props[_key - 1] = arguments[_key];
@@ -35775,7 +35827,7 @@ ${generateCodeFrame(
35775
35827
  }
35776
35828
  return obj;
35777
35829
  }
35778
- module.exports = exports.default;
35830
+ module.exports = exports$1.default;
35779
35831
  })(getProp, getProp.exports);
35780
35832
  return getProp.exports;
35781
35833
  }
@@ -35784,9 +35836,9 @@ ${generateCodeFrame(
35784
35836
  function requireEnsureObject() {
35785
35837
  if (hasRequiredEnsureObject) return ensureObject.exports;
35786
35838
  hasRequiredEnsureObject = 1;
35787
- (function(module, exports) {
35788
- exports.__esModule = true;
35789
- exports["default"] = ensureObject2;
35839
+ (function(module, exports$1) {
35840
+ exports$1.__esModule = true;
35841
+ exports$1["default"] = ensureObject2;
35790
35842
  function ensureObject2(obj) {
35791
35843
  for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
35792
35844
  props[_key - 1] = arguments[_key];
@@ -35799,7 +35851,7 @@ ${generateCodeFrame(
35799
35851
  obj = obj[prop];
35800
35852
  }
35801
35853
  }
35802
- module.exports = exports.default;
35854
+ module.exports = exports$1.default;
35803
35855
  })(ensureObject, ensureObject.exports);
35804
35856
  return ensureObject.exports;
35805
35857
  }
@@ -35808,9 +35860,9 @@ ${generateCodeFrame(
35808
35860
  function requireStripComments() {
35809
35861
  if (hasRequiredStripComments) return stripComments.exports;
35810
35862
  hasRequiredStripComments = 1;
35811
- (function(module, exports) {
35812
- exports.__esModule = true;
35813
- exports["default"] = stripComments2;
35863
+ (function(module, exports$1) {
35864
+ exports$1.__esModule = true;
35865
+ exports$1["default"] = stripComments2;
35814
35866
  function stripComments2(str) {
35815
35867
  var s = "";
35816
35868
  var commentStart = str.indexOf("/*");
@@ -35827,7 +35879,7 @@ ${generateCodeFrame(
35827
35879
  s = s + str.slice(lastEnd);
35828
35880
  return s;
35829
35881
  }
35830
- module.exports = exports.default;
35882
+ module.exports = exports$1.default;
35831
35883
  })(stripComments, stripComments.exports);
35832
35884
  return stripComments.exports;
35833
35885
  }
@@ -35854,9 +35906,9 @@ ${generateCodeFrame(
35854
35906
  function requireNode$1() {
35855
35907
  if (hasRequiredNode$1) return node$1.exports;
35856
35908
  hasRequiredNode$1 = 1;
35857
- (function(module, exports) {
35858
- exports.__esModule = true;
35859
- exports["default"] = void 0;
35909
+ (function(module, exports$1) {
35910
+ exports$1.__esModule = true;
35911
+ exports$1["default"] = void 0;
35860
35912
  var _util = /* @__PURE__ */ requireUtil$1();
35861
35913
  function _defineProperties(target, props) {
35862
35914
  for (var i = 0; i < props.length; i++) {
@@ -35897,7 +35949,7 @@ ${generateCodeFrame(
35897
35949
  }
35898
35950
  return cloned;
35899
35951
  };
35900
- var Node = /* @__PURE__ */ function() {
35952
+ var Node = /* @__PURE__ */ (function() {
35901
35953
  function Node2(opts) {
35902
35954
  if (opts === void 0) {
35903
35955
  opts = {};
@@ -36021,9 +36073,9 @@ ${generateCodeFrame(
36021
36073
  }
36022
36074
  }]);
36023
36075
  return Node2;
36024
- }();
36025
- exports["default"] = Node;
36026
- module.exports = exports.default;
36076
+ })();
36077
+ exports$1["default"] = Node;
36078
+ module.exports = exports$1.default;
36027
36079
  })(node$1, node$1.exports);
36028
36080
  return node$1.exports;
36029
36081
  }
@@ -36064,9 +36116,9 @@ ${generateCodeFrame(
36064
36116
  function requireContainer() {
36065
36117
  if (hasRequiredContainer) return container.exports;
36066
36118
  hasRequiredContainer = 1;
36067
- (function(module, exports) {
36068
- exports.__esModule = true;
36069
- exports["default"] = void 0;
36119
+ (function(module, exports$1) {
36120
+ exports$1.__esModule = true;
36121
+ exports$1["default"] = void 0;
36070
36122
  var _node = _interopRequireDefault(/* @__PURE__ */ requireNode$1());
36071
36123
  var types2 = _interopRequireWildcard(/* @__PURE__ */ requireTypes());
36072
36124
  function _getRequireWildcardCache(nodeInterop) {
@@ -36163,7 +36215,7 @@ ${generateCodeFrame(
36163
36215
  };
36164
36216
  return _setPrototypeOf(o, p);
36165
36217
  }
36166
- var Container = /* @__PURE__ */ function(_Node) {
36218
+ var Container = /* @__PURE__ */ (function(_Node) {
36167
36219
  _inheritsLoose(Container2, _Node);
36168
36220
  function Container2(opts) {
36169
36221
  var _this;
@@ -36182,6 +36234,9 @@ ${generateCodeFrame(
36182
36234
  _proto.prepend = function prepend(selector2) {
36183
36235
  selector2.parent = this;
36184
36236
  this.nodes.unshift(selector2);
36237
+ for (var id2 in this.indexes) {
36238
+ this.indexes[id2]++;
36239
+ }
36185
36240
  return this;
36186
36241
  };
36187
36242
  _proto.at = function at(index) {
@@ -36225,7 +36280,7 @@ ${generateCodeFrame(
36225
36280
  var index;
36226
36281
  for (var id2 in this.indexes) {
36227
36282
  index = this.indexes[id2];
36228
- if (oldIndex <= index) {
36283
+ if (oldIndex < index) {
36229
36284
  this.indexes[id2] = index + 1;
36230
36285
  }
36231
36286
  }
@@ -36239,7 +36294,7 @@ ${generateCodeFrame(
36239
36294
  var index;
36240
36295
  for (var id2 in this.indexes) {
36241
36296
  index = this.indexes[id2];
36242
- if (index <= oldIndex) {
36297
+ if (index >= oldIndex) {
36243
36298
  this.indexes[id2] = index + 1;
36244
36299
  }
36245
36300
  }
@@ -36438,9 +36493,9 @@ ${generateCodeFrame(
36438
36493
  }
36439
36494
  }]);
36440
36495
  return Container2;
36441
- }(_node["default"]);
36442
- exports["default"] = Container;
36443
- module.exports = exports.default;
36496
+ })(_node["default"]);
36497
+ exports$1["default"] = Container;
36498
+ module.exports = exports$1.default;
36444
36499
  })(container, container.exports);
36445
36500
  return container.exports;
36446
36501
  }
@@ -36448,9 +36503,9 @@ ${generateCodeFrame(
36448
36503
  function requireRoot() {
36449
36504
  if (hasRequiredRoot) return root.exports;
36450
36505
  hasRequiredRoot = 1;
36451
- (function(module, exports) {
36452
- exports.__esModule = true;
36453
- exports["default"] = void 0;
36506
+ (function(module, exports$1) {
36507
+ exports$1.__esModule = true;
36508
+ exports$1["default"] = void 0;
36454
36509
  var _container = _interopRequireDefault(/* @__PURE__ */ requireContainer());
36455
36510
  var _types = /* @__PURE__ */ requireTypes();
36456
36511
  function _interopRequireDefault(obj) {
@@ -36482,7 +36537,7 @@ ${generateCodeFrame(
36482
36537
  };
36483
36538
  return _setPrototypeOf(o, p);
36484
36539
  }
36485
- var Root = /* @__PURE__ */ function(_Container) {
36540
+ var Root = /* @__PURE__ */ (function(_Container) {
36486
36541
  _inheritsLoose(Root2, _Container);
36487
36542
  function Root2(opts) {
36488
36543
  var _this;
@@ -36512,9 +36567,9 @@ ${generateCodeFrame(
36512
36567
  }
36513
36568
  }]);
36514
36569
  return Root2;
36515
- }(_container["default"]);
36516
- exports["default"] = Root;
36517
- module.exports = exports.default;
36570
+ })(_container["default"]);
36571
+ exports$1["default"] = Root;
36572
+ module.exports = exports$1.default;
36518
36573
  })(root, root.exports);
36519
36574
  return root.exports;
36520
36575
  }
@@ -36523,9 +36578,9 @@ ${generateCodeFrame(
36523
36578
  function requireSelector() {
36524
36579
  if (hasRequiredSelector) return selector.exports;
36525
36580
  hasRequiredSelector = 1;
36526
- (function(module, exports) {
36527
- exports.__esModule = true;
36528
- exports["default"] = void 0;
36581
+ (function(module, exports$1) {
36582
+ exports$1.__esModule = true;
36583
+ exports$1["default"] = void 0;
36529
36584
  var _container = _interopRequireDefault(/* @__PURE__ */ requireContainer());
36530
36585
  var _types = /* @__PURE__ */ requireTypes();
36531
36586
  function _interopRequireDefault(obj) {
@@ -36543,7 +36598,7 @@ ${generateCodeFrame(
36543
36598
  };
36544
36599
  return _setPrototypeOf(o, p);
36545
36600
  }
36546
- var Selector = /* @__PURE__ */ function(_Container) {
36601
+ var Selector = /* @__PURE__ */ (function(_Container) {
36547
36602
  _inheritsLoose(Selector2, _Container);
36548
36603
  function Selector2(opts) {
36549
36604
  var _this;
@@ -36552,9 +36607,9 @@ ${generateCodeFrame(
36552
36607
  return _this;
36553
36608
  }
36554
36609
  return Selector2;
36555
- }(_container["default"]);
36556
- exports["default"] = Selector;
36557
- module.exports = exports.default;
36610
+ })(_container["default"]);
36611
+ exports$1["default"] = Selector;
36612
+ module.exports = exports$1.default;
36558
36613
  })(selector, selector.exports);
36559
36614
  return selector.exports;
36560
36615
  }
@@ -36654,9 +36709,9 @@ ${generateCodeFrame(
36654
36709
  function requireClassName() {
36655
36710
  if (hasRequiredClassName) return className.exports;
36656
36711
  hasRequiredClassName = 1;
36657
- (function(module, exports) {
36658
- exports.__esModule = true;
36659
- exports["default"] = void 0;
36712
+ (function(module, exports$1) {
36713
+ exports$1.__esModule = true;
36714
+ exports$1["default"] = void 0;
36660
36715
  var _cssesc = _interopRequireDefault(/* @__PURE__ */ requireCssesc());
36661
36716
  var _util = /* @__PURE__ */ requireUtil$1();
36662
36717
  var _node = _interopRequireDefault(/* @__PURE__ */ requireNode$1());
@@ -36690,7 +36745,7 @@ ${generateCodeFrame(
36690
36745
  };
36691
36746
  return _setPrototypeOf(o, p);
36692
36747
  }
36693
- var ClassName = /* @__PURE__ */ function(_Node) {
36748
+ var ClassName = /* @__PURE__ */ (function(_Node) {
36694
36749
  _inheritsLoose(ClassName2, _Node);
36695
36750
  function ClassName2(opts) {
36696
36751
  var _this;
@@ -36724,9 +36779,9 @@ ${generateCodeFrame(
36724
36779
  }
36725
36780
  }]);
36726
36781
  return ClassName2;
36727
- }(_node["default"]);
36728
- exports["default"] = ClassName;
36729
- module.exports = exports.default;
36782
+ })(_node["default"]);
36783
+ exports$1["default"] = ClassName;
36784
+ module.exports = exports$1.default;
36730
36785
  })(className, className.exports);
36731
36786
  return className.exports;
36732
36787
  }
@@ -36735,9 +36790,9 @@ ${generateCodeFrame(
36735
36790
  function requireComment() {
36736
36791
  if (hasRequiredComment) return comment.exports;
36737
36792
  hasRequiredComment = 1;
36738
- (function(module, exports) {
36739
- exports.__esModule = true;
36740
- exports["default"] = void 0;
36793
+ (function(module, exports$1) {
36794
+ exports$1.__esModule = true;
36795
+ exports$1["default"] = void 0;
36741
36796
  var _node = _interopRequireDefault(/* @__PURE__ */ requireNode$1());
36742
36797
  var _types = /* @__PURE__ */ requireTypes();
36743
36798
  function _interopRequireDefault(obj) {
@@ -36755,7 +36810,7 @@ ${generateCodeFrame(
36755
36810
  };
36756
36811
  return _setPrototypeOf(o, p);
36757
36812
  }
36758
- var Comment = /* @__PURE__ */ function(_Node) {
36813
+ var Comment = /* @__PURE__ */ (function(_Node) {
36759
36814
  _inheritsLoose(Comment2, _Node);
36760
36815
  function Comment2(opts) {
36761
36816
  var _this;
@@ -36764,9 +36819,9 @@ ${generateCodeFrame(
36764
36819
  return _this;
36765
36820
  }
36766
36821
  return Comment2;
36767
- }(_node["default"]);
36768
- exports["default"] = Comment;
36769
- module.exports = exports.default;
36822
+ })(_node["default"]);
36823
+ exports$1["default"] = Comment;
36824
+ module.exports = exports$1.default;
36770
36825
  })(comment, comment.exports);
36771
36826
  return comment.exports;
36772
36827
  }
@@ -36775,9 +36830,9 @@ ${generateCodeFrame(
36775
36830
  function requireId() {
36776
36831
  if (hasRequiredId) return id.exports;
36777
36832
  hasRequiredId = 1;
36778
- (function(module, exports) {
36779
- exports.__esModule = true;
36780
- exports["default"] = void 0;
36833
+ (function(module, exports$1) {
36834
+ exports$1.__esModule = true;
36835
+ exports$1["default"] = void 0;
36781
36836
  var _node = _interopRequireDefault(/* @__PURE__ */ requireNode$1());
36782
36837
  var _types = /* @__PURE__ */ requireTypes();
36783
36838
  function _interopRequireDefault(obj) {
@@ -36795,7 +36850,7 @@ ${generateCodeFrame(
36795
36850
  };
36796
36851
  return _setPrototypeOf(o, p);
36797
36852
  }
36798
- var ID = /* @__PURE__ */ function(_Node) {
36853
+ var ID = /* @__PURE__ */ (function(_Node) {
36799
36854
  _inheritsLoose(ID2, _Node);
36800
36855
  function ID2(opts) {
36801
36856
  var _this;
@@ -36808,9 +36863,9 @@ ${generateCodeFrame(
36808
36863
  return "#" + _Node.prototype.valueToString.call(this);
36809
36864
  };
36810
36865
  return ID2;
36811
- }(_node["default"]);
36812
- exports["default"] = ID;
36813
- module.exports = exports.default;
36866
+ })(_node["default"]);
36867
+ exports$1["default"] = ID;
36868
+ module.exports = exports$1.default;
36814
36869
  })(id, id.exports);
36815
36870
  return id.exports;
36816
36871
  }
@@ -36820,9 +36875,9 @@ ${generateCodeFrame(
36820
36875
  function requireNamespace() {
36821
36876
  if (hasRequiredNamespace) return namespace.exports;
36822
36877
  hasRequiredNamespace = 1;
36823
- (function(module, exports) {
36824
- exports.__esModule = true;
36825
- exports["default"] = void 0;
36878
+ (function(module, exports$1) {
36879
+ exports$1.__esModule = true;
36880
+ exports$1["default"] = void 0;
36826
36881
  var _cssesc = _interopRequireDefault(/* @__PURE__ */ requireCssesc());
36827
36882
  var _util = /* @__PURE__ */ requireUtil$1();
36828
36883
  var _node = _interopRequireDefault(/* @__PURE__ */ requireNode$1());
@@ -36855,7 +36910,7 @@ ${generateCodeFrame(
36855
36910
  };
36856
36911
  return _setPrototypeOf(o, p);
36857
36912
  }
36858
- var Namespace = /* @__PURE__ */ function(_Node) {
36913
+ var Namespace = /* @__PURE__ */ (function(_Node) {
36859
36914
  _inheritsLoose(Namespace2, _Node);
36860
36915
  function Namespace2() {
36861
36916
  return _Node.apply(this, arguments) || this;
@@ -36919,9 +36974,9 @@ ${generateCodeFrame(
36919
36974
  }
36920
36975
  }]);
36921
36976
  return Namespace2;
36922
- }(_node["default"]);
36923
- exports["default"] = Namespace;
36924
- module.exports = exports.default;
36977
+ })(_node["default"]);
36978
+ exports$1["default"] = Namespace;
36979
+ module.exports = exports$1.default;
36925
36980
  })(namespace, namespace.exports);
36926
36981
  return namespace.exports;
36927
36982
  }
@@ -36929,9 +36984,9 @@ ${generateCodeFrame(
36929
36984
  function requireTag() {
36930
36985
  if (hasRequiredTag) return tag.exports;
36931
36986
  hasRequiredTag = 1;
36932
- (function(module, exports) {
36933
- exports.__esModule = true;
36934
- exports["default"] = void 0;
36987
+ (function(module, exports$1) {
36988
+ exports$1.__esModule = true;
36989
+ exports$1["default"] = void 0;
36935
36990
  var _namespace = _interopRequireDefault(/* @__PURE__ */ requireNamespace());
36936
36991
  var _types = /* @__PURE__ */ requireTypes();
36937
36992
  function _interopRequireDefault(obj) {
@@ -36949,7 +37004,7 @@ ${generateCodeFrame(
36949
37004
  };
36950
37005
  return _setPrototypeOf(o, p);
36951
37006
  }
36952
- var Tag = /* @__PURE__ */ function(_Namespace) {
37007
+ var Tag = /* @__PURE__ */ (function(_Namespace) {
36953
37008
  _inheritsLoose(Tag2, _Namespace);
36954
37009
  function Tag2(opts) {
36955
37010
  var _this;
@@ -36958,9 +37013,9 @@ ${generateCodeFrame(
36958
37013
  return _this;
36959
37014
  }
36960
37015
  return Tag2;
36961
- }(_namespace["default"]);
36962
- exports["default"] = Tag;
36963
- module.exports = exports.default;
37016
+ })(_namespace["default"]);
37017
+ exports$1["default"] = Tag;
37018
+ module.exports = exports$1.default;
36964
37019
  })(tag, tag.exports);
36965
37020
  return tag.exports;
36966
37021
  }
@@ -36969,9 +37024,9 @@ ${generateCodeFrame(
36969
37024
  function requireString() {
36970
37025
  if (hasRequiredString) return string.exports;
36971
37026
  hasRequiredString = 1;
36972
- (function(module, exports) {
36973
- exports.__esModule = true;
36974
- exports["default"] = void 0;
37027
+ (function(module, exports$1) {
37028
+ exports$1.__esModule = true;
37029
+ exports$1["default"] = void 0;
36975
37030
  var _node = _interopRequireDefault(/* @__PURE__ */ requireNode$1());
36976
37031
  var _types = /* @__PURE__ */ requireTypes();
36977
37032
  function _interopRequireDefault(obj) {
@@ -36989,7 +37044,7 @@ ${generateCodeFrame(
36989
37044
  };
36990
37045
  return _setPrototypeOf(o, p);
36991
37046
  }
36992
- var String2 = /* @__PURE__ */ function(_Node) {
37047
+ var String2 = /* @__PURE__ */ (function(_Node) {
36993
37048
  _inheritsLoose(String3, _Node);
36994
37049
  function String3(opts) {
36995
37050
  var _this;
@@ -36998,9 +37053,9 @@ ${generateCodeFrame(
36998
37053
  return _this;
36999
37054
  }
37000
37055
  return String3;
37001
- }(_node["default"]);
37002
- exports["default"] = String2;
37003
- module.exports = exports.default;
37056
+ })(_node["default"]);
37057
+ exports$1["default"] = String2;
37058
+ module.exports = exports$1.default;
37004
37059
  })(string, string.exports);
37005
37060
  return string.exports;
37006
37061
  }
@@ -37009,9 +37064,9 @@ ${generateCodeFrame(
37009
37064
  function requirePseudo() {
37010
37065
  if (hasRequiredPseudo) return pseudo.exports;
37011
37066
  hasRequiredPseudo = 1;
37012
- (function(module, exports) {
37013
- exports.__esModule = true;
37014
- exports["default"] = void 0;
37067
+ (function(module, exports$1) {
37068
+ exports$1.__esModule = true;
37069
+ exports$1["default"] = void 0;
37015
37070
  var _container = _interopRequireDefault(/* @__PURE__ */ requireContainer());
37016
37071
  var _types = /* @__PURE__ */ requireTypes();
37017
37072
  function _interopRequireDefault(obj) {
@@ -37029,7 +37084,7 @@ ${generateCodeFrame(
37029
37084
  };
37030
37085
  return _setPrototypeOf(o, p);
37031
37086
  }
37032
- var Pseudo = /* @__PURE__ */ function(_Container) {
37087
+ var Pseudo = /* @__PURE__ */ (function(_Container) {
37033
37088
  _inheritsLoose(Pseudo2, _Container);
37034
37089
  function Pseudo2(opts) {
37035
37090
  var _this;
@@ -37043,9 +37098,9 @@ ${generateCodeFrame(
37043
37098
  return [this.rawSpaceBefore, this.stringifyProperty("value"), params, this.rawSpaceAfter].join("");
37044
37099
  };
37045
37100
  return Pseudo2;
37046
- }(_container["default"]);
37047
- exports["default"] = Pseudo;
37048
- module.exports = exports.default;
37101
+ })(_container["default"]);
37102
+ exports$1["default"] = Pseudo;
37103
+ module.exports = exports$1.default;
37049
37104
  })(pseudo, pseudo.exports);
37050
37105
  return pseudo.exports;
37051
37106
  }
@@ -37055,17 +37110,17 @@ ${generateCodeFrame(
37055
37110
  function requireNode() {
37056
37111
  if (hasRequiredNode) return node;
37057
37112
  hasRequiredNode = 1;
37058
- node = require$$0$1.deprecate;
37113
+ node = require$$0.deprecate;
37059
37114
  return node;
37060
37115
  }
37061
37116
  var hasRequiredAttribute;
37062
37117
  function requireAttribute() {
37063
37118
  if (hasRequiredAttribute) return attribute;
37064
37119
  hasRequiredAttribute = 1;
37065
- (function(exports) {
37066
- exports.__esModule = true;
37067
- exports["default"] = void 0;
37068
- exports.unescapeValue = unescapeValue;
37120
+ (function(exports$1) {
37121
+ exports$1.__esModule = true;
37122
+ exports$1["default"] = void 0;
37123
+ exports$1.unescapeValue = unescapeValue;
37069
37124
  var _cssesc = _interopRequireDefault(/* @__PURE__ */ requireCssesc());
37070
37125
  var _unesc = _interopRequireDefault(/* @__PURE__ */ requireUnesc());
37071
37126
  var _namespace = _interopRequireDefault(/* @__PURE__ */ requireNamespace());
@@ -37146,7 +37201,7 @@ ${generateCodeFrame(
37146
37201
  opts.quoteMark = quoteMark;
37147
37202
  return opts;
37148
37203
  }
37149
- var Attribute = /* @__PURE__ */ function(_Namespace) {
37204
+ var Attribute = /* @__PURE__ */ (function(_Namespace) {
37150
37205
  _inheritsLoose(Attribute2, _Namespace);
37151
37206
  function Attribute2(opts) {
37152
37207
  var _this;
@@ -37429,8 +37484,8 @@ ${generateCodeFrame(
37429
37484
  }
37430
37485
  }]);
37431
37486
  return Attribute2;
37432
- }(_namespace["default"]);
37433
- exports["default"] = Attribute;
37487
+ })(_namespace["default"]);
37488
+ exports$1["default"] = Attribute;
37434
37489
  Attribute.NO_QUOTE = null;
37435
37490
  Attribute.SINGLE_QUOTE = "'";
37436
37491
  Attribute.DOUBLE_QUOTE = '"';
@@ -37457,9 +37512,9 @@ ${generateCodeFrame(
37457
37512
  function requireUniversal() {
37458
37513
  if (hasRequiredUniversal) return universal.exports;
37459
37514
  hasRequiredUniversal = 1;
37460
- (function(module, exports) {
37461
- exports.__esModule = true;
37462
- exports["default"] = void 0;
37515
+ (function(module, exports$1) {
37516
+ exports$1.__esModule = true;
37517
+ exports$1["default"] = void 0;
37463
37518
  var _namespace = _interopRequireDefault(/* @__PURE__ */ requireNamespace());
37464
37519
  var _types = /* @__PURE__ */ requireTypes();
37465
37520
  function _interopRequireDefault(obj) {
@@ -37477,7 +37532,7 @@ ${generateCodeFrame(
37477
37532
  };
37478
37533
  return _setPrototypeOf(o, p);
37479
37534
  }
37480
- var Universal = /* @__PURE__ */ function(_Namespace) {
37535
+ var Universal = /* @__PURE__ */ (function(_Namespace) {
37481
37536
  _inheritsLoose(Universal2, _Namespace);
37482
37537
  function Universal2(opts) {
37483
37538
  var _this;
@@ -37487,9 +37542,9 @@ ${generateCodeFrame(
37487
37542
  return _this;
37488
37543
  }
37489
37544
  return Universal2;
37490
- }(_namespace["default"]);
37491
- exports["default"] = Universal;
37492
- module.exports = exports.default;
37545
+ })(_namespace["default"]);
37546
+ exports$1["default"] = Universal;
37547
+ module.exports = exports$1.default;
37493
37548
  })(universal, universal.exports);
37494
37549
  return universal.exports;
37495
37550
  }
@@ -37498,9 +37553,9 @@ ${generateCodeFrame(
37498
37553
  function requireCombinator() {
37499
37554
  if (hasRequiredCombinator) return combinator.exports;
37500
37555
  hasRequiredCombinator = 1;
37501
- (function(module, exports) {
37502
- exports.__esModule = true;
37503
- exports["default"] = void 0;
37556
+ (function(module, exports$1) {
37557
+ exports$1.__esModule = true;
37558
+ exports$1["default"] = void 0;
37504
37559
  var _node = _interopRequireDefault(/* @__PURE__ */ requireNode$1());
37505
37560
  var _types = /* @__PURE__ */ requireTypes();
37506
37561
  function _interopRequireDefault(obj) {
@@ -37518,7 +37573,7 @@ ${generateCodeFrame(
37518
37573
  };
37519
37574
  return _setPrototypeOf(o, p);
37520
37575
  }
37521
- var Combinator = /* @__PURE__ */ function(_Node) {
37576
+ var Combinator = /* @__PURE__ */ (function(_Node) {
37522
37577
  _inheritsLoose(Combinator2, _Node);
37523
37578
  function Combinator2(opts) {
37524
37579
  var _this;
@@ -37527,9 +37582,9 @@ ${generateCodeFrame(
37527
37582
  return _this;
37528
37583
  }
37529
37584
  return Combinator2;
37530
- }(_node["default"]);
37531
- exports["default"] = Combinator;
37532
- module.exports = exports.default;
37585
+ })(_node["default"]);
37586
+ exports$1["default"] = Combinator;
37587
+ module.exports = exports$1.default;
37533
37588
  })(combinator, combinator.exports);
37534
37589
  return combinator.exports;
37535
37590
  }
@@ -37538,9 +37593,9 @@ ${generateCodeFrame(
37538
37593
  function requireNesting() {
37539
37594
  if (hasRequiredNesting) return nesting.exports;
37540
37595
  hasRequiredNesting = 1;
37541
- (function(module, exports) {
37542
- exports.__esModule = true;
37543
- exports["default"] = void 0;
37596
+ (function(module, exports$1) {
37597
+ exports$1.__esModule = true;
37598
+ exports$1["default"] = void 0;
37544
37599
  var _node = _interopRequireDefault(/* @__PURE__ */ requireNode$1());
37545
37600
  var _types = /* @__PURE__ */ requireTypes();
37546
37601
  function _interopRequireDefault(obj) {
@@ -37558,7 +37613,7 @@ ${generateCodeFrame(
37558
37613
  };
37559
37614
  return _setPrototypeOf(o, p);
37560
37615
  }
37561
- var Nesting = /* @__PURE__ */ function(_Node) {
37616
+ var Nesting = /* @__PURE__ */ (function(_Node) {
37562
37617
  _inheritsLoose(Nesting2, _Node);
37563
37618
  function Nesting2(opts) {
37564
37619
  var _this;
@@ -37568,9 +37623,9 @@ ${generateCodeFrame(
37568
37623
  return _this;
37569
37624
  }
37570
37625
  return Nesting2;
37571
- }(_node["default"]);
37572
- exports["default"] = Nesting;
37573
- module.exports = exports.default;
37626
+ })(_node["default"]);
37627
+ exports$1["default"] = Nesting;
37628
+ module.exports = exports$1.default;
37574
37629
  })(nesting, nesting.exports);
37575
37630
  return nesting.exports;
37576
37631
  }
@@ -37579,15 +37634,15 @@ ${generateCodeFrame(
37579
37634
  function requireSortAscending() {
37580
37635
  if (hasRequiredSortAscending) return sortAscending.exports;
37581
37636
  hasRequiredSortAscending = 1;
37582
- (function(module, exports) {
37583
- exports.__esModule = true;
37584
- exports["default"] = sortAscending2;
37637
+ (function(module, exports$1) {
37638
+ exports$1.__esModule = true;
37639
+ exports$1["default"] = sortAscending2;
37585
37640
  function sortAscending2(list) {
37586
37641
  return list.sort(function(a, b) {
37587
37642
  return a - b;
37588
37643
  });
37589
37644
  }
37590
- module.exports = exports.default;
37645
+ module.exports = exports$1.default;
37591
37646
  })(sortAscending, sortAscending.exports);
37592
37647
  return sortAscending.exports;
37593
37648
  }
@@ -37667,10 +37722,10 @@ ${generateCodeFrame(
37667
37722
  function requireTokenize() {
37668
37723
  if (hasRequiredTokenize) return tokenize;
37669
37724
  hasRequiredTokenize = 1;
37670
- (function(exports) {
37671
- exports.__esModule = true;
37672
- exports.FIELDS = void 0;
37673
- exports["default"] = tokenize2;
37725
+ (function(exports$1) {
37726
+ exports$1.__esModule = true;
37727
+ exports$1.FIELDS = void 0;
37728
+ exports$1["default"] = tokenize2;
37674
37729
  var t = _interopRequireWildcard(/* @__PURE__ */ requireTokenTypes());
37675
37730
  var _unescapable, _wordDelimiters;
37676
37731
  function _getRequireWildcardCache(nodeInterop) {
@@ -37760,7 +37815,7 @@ ${generateCodeFrame(
37760
37815
  START_POS: 5,
37761
37816
  END_POS: 6
37762
37817
  };
37763
- exports.FIELDS = FIELDS;
37818
+ exports$1.FIELDS = FIELDS;
37764
37819
  function tokenize2(input2) {
37765
37820
  var tokens = [];
37766
37821
  var css = input2.css.valueOf();
@@ -37818,6 +37873,7 @@ ${generateCodeFrame(
37818
37873
  endColumn = start - offset;
37819
37874
  end = next;
37820
37875
  break;
37876
+ // Consume these characters as single tokens.
37821
37877
  case t.asterisk:
37822
37878
  case t.ampersand:
37823
37879
  case t.bang:
@@ -37924,9 +37980,9 @@ ${generateCodeFrame(
37924
37980
  function requireParser() {
37925
37981
  if (hasRequiredParser) return parser.exports;
37926
37982
  hasRequiredParser = 1;
37927
- (function(module, exports) {
37928
- exports.__esModule = true;
37929
- exports["default"] = void 0;
37983
+ (function(module, exports$1) {
37984
+ exports$1.__esModule = true;
37985
+ exports$1["default"] = void 0;
37930
37986
  var _root = _interopRequireDefault(/* @__PURE__ */ requireRoot());
37931
37987
  var _selector = _interopRequireDefault(/* @__PURE__ */ requireSelector());
37932
37988
  var _className = _interopRequireDefault(/* @__PURE__ */ requireClassName());
@@ -38062,7 +38118,7 @@ ${generateCodeFrame(
38062
38118
  return i === list.indexOf(item);
38063
38119
  });
38064
38120
  }
38065
- var Parser = /* @__PURE__ */ function() {
38121
+ var Parser = /* @__PURE__ */ (function() {
38066
38122
  function Parser2(rule2, options) {
38067
38123
  if (options === void 0) {
38068
38124
  options = {};
@@ -38187,6 +38243,7 @@ ${generateCodeFrame(
38187
38243
  }
38188
38244
  break;
38189
38245
  }
38246
+ // Falls through
38190
38247
  case tokens.caret:
38191
38248
  if (next[_tokenize.FIELDS.TYPE] === tokens.equals) {
38192
38249
  node2.operator = content;
@@ -38832,6 +38889,7 @@ ${generateCodeFrame(
38832
38889
  case tokens.str:
38833
38890
  this.string();
38834
38891
  break;
38892
+ // These cases throw; no break needed.
38835
38893
  case tokens.closeSquare:
38836
38894
  this.missingSquareBracket();
38837
38895
  case tokens.semicolon:
@@ -38931,9 +38989,9 @@ ${generateCodeFrame(
38931
38989
  }
38932
38990
  }]);
38933
38991
  return Parser2;
38934
- }();
38935
- exports["default"] = Parser;
38936
- module.exports = exports.default;
38992
+ })();
38993
+ exports$1["default"] = Parser;
38994
+ module.exports = exports$1.default;
38937
38995
  })(parser, parser.exports);
38938
38996
  return parser.exports;
38939
38997
  }
@@ -38941,14 +38999,14 @@ ${generateCodeFrame(
38941
38999
  function requireProcessor() {
38942
39000
  if (hasRequiredProcessor) return processor.exports;
38943
39001
  hasRequiredProcessor = 1;
38944
- (function(module, exports) {
38945
- exports.__esModule = true;
38946
- exports["default"] = void 0;
39002
+ (function(module, exports$1) {
39003
+ exports$1.__esModule = true;
39004
+ exports$1["default"] = void 0;
38947
39005
  var _parser = _interopRequireDefault(/* @__PURE__ */ requireParser());
38948
39006
  function _interopRequireDefault(obj) {
38949
39007
  return obj && obj.__esModule ? obj : { "default": obj };
38950
39008
  }
38951
- var Processor = /* @__PURE__ */ function() {
39009
+ var Processor = /* @__PURE__ */ (function() {
38952
39010
  function Processor2(func, options) {
38953
39011
  this.func = func || function noop2() {
38954
39012
  };
@@ -39062,9 +39120,9 @@ ${generateCodeFrame(
39062
39120
  return result2.string || result2.root.toString();
39063
39121
  };
39064
39122
  return Processor2;
39065
- }();
39066
- exports["default"] = Processor;
39067
- module.exports = exports.default;
39123
+ })();
39124
+ exports$1["default"] = Processor;
39125
+ module.exports = exports$1.default;
39068
39126
  })(processor, processor.exports);
39069
39127
  return processor.exports;
39070
39128
  }
@@ -39208,25 +39266,25 @@ ${generateCodeFrame(
39208
39266
  function requireSelectors() {
39209
39267
  if (hasRequiredSelectors) return selectors;
39210
39268
  hasRequiredSelectors = 1;
39211
- (function(exports) {
39212
- exports.__esModule = true;
39269
+ (function(exports$1) {
39270
+ exports$1.__esModule = true;
39213
39271
  var _types = /* @__PURE__ */ requireTypes();
39214
39272
  Object.keys(_types).forEach(function(key) {
39215
39273
  if (key === "default" || key === "__esModule") return;
39216
- if (key in exports && exports[key] === _types[key]) return;
39217
- exports[key] = _types[key];
39274
+ if (key in exports$1 && exports$1[key] === _types[key]) return;
39275
+ exports$1[key] = _types[key];
39218
39276
  });
39219
39277
  var _constructors = /* @__PURE__ */ requireConstructors();
39220
39278
  Object.keys(_constructors).forEach(function(key) {
39221
39279
  if (key === "default" || key === "__esModule") return;
39222
- if (key in exports && exports[key] === _constructors[key]) return;
39223
- exports[key] = _constructors[key];
39280
+ if (key in exports$1 && exports$1[key] === _constructors[key]) return;
39281
+ exports$1[key] = _constructors[key];
39224
39282
  });
39225
39283
  var _guards = /* @__PURE__ */ requireGuards();
39226
39284
  Object.keys(_guards).forEach(function(key) {
39227
39285
  if (key === "default" || key === "__esModule") return;
39228
- if (key in exports && exports[key] === _guards[key]) return;
39229
- exports[key] = _guards[key];
39286
+ if (key in exports$1 && exports$1[key] === _guards[key]) return;
39287
+ exports$1[key] = _guards[key];
39230
39288
  });
39231
39289
  })(selectors);
39232
39290
  return selectors;
@@ -39235,9 +39293,9 @@ ${generateCodeFrame(
39235
39293
  function requireDist() {
39236
39294
  if (hasRequiredDist) return dist.exports;
39237
39295
  hasRequiredDist = 1;
39238
- (function(module, exports) {
39239
- exports.__esModule = true;
39240
- exports["default"] = void 0;
39296
+ (function(module, exports$1) {
39297
+ exports$1.__esModule = true;
39298
+ exports$1["default"] = void 0;
39241
39299
  var _processor = _interopRequireDefault(/* @__PURE__ */ requireProcessor());
39242
39300
  var selectors2 = _interopRequireWildcard(/* @__PURE__ */ requireSelectors());
39243
39301
  function _getRequireWildcardCache(nodeInterop) {
@@ -39286,8 +39344,8 @@ ${generateCodeFrame(
39286
39344
  Object.assign(parser2, selectors2);
39287
39345
  delete parser2.__esModule;
39288
39346
  var _default = parser2;
39289
- exports["default"] = _default;
39290
- module.exports = exports.default;
39347
+ exports$1["default"] = _default;
39348
+ module.exports = exports$1.default;
39291
39349
  })(dist, dist.exports);
39292
39350
  return dist.exports;
39293
39351
  }
@@ -39415,8 +39473,7 @@ ${generateCodeFrame(
39415
39473
  return false;
39416
39474
  }
39417
39475
  if (value === ":global" || value === "::v-global") {
39418
- selectorRoot.insertAfter(selector2, n2.nodes[0]);
39419
- selectorRoot.removeChild(selector2);
39476
+ selector2.replaceWith(n2.nodes[0]);
39420
39477
  return false;
39421
39478
  }
39422
39479
  }
@@ -39609,7 +39666,7 @@ ${generateCodeFrame(
39609
39666
  function requireUtil() {
39610
39667
  if (hasRequiredUtil) return util;
39611
39668
  hasRequiredUtil = 1;
39612
- (function(exports) {
39669
+ (function(exports$1) {
39613
39670
  function getArg(aArgs, aName, aDefaultValue) {
39614
39671
  if (aName in aArgs) {
39615
39672
  return aArgs[aName];
@@ -39619,7 +39676,7 @@ ${generateCodeFrame(
39619
39676
  throw new Error('"' + aName + '" is a required argument.');
39620
39677
  }
39621
39678
  }
39622
- exports.getArg = getArg;
39679
+ exports$1.getArg = getArg;
39623
39680
  var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;
39624
39681
  var dataUrlRegexp = /^data:.+\,.+$/;
39625
39682
  function urlParse2(aUrl) {
@@ -39635,7 +39692,7 @@ ${generateCodeFrame(
39635
39692
  path: match[5]
39636
39693
  };
39637
39694
  }
39638
- exports.urlParse = urlParse2;
39695
+ exports$1.urlParse = urlParse2;
39639
39696
  function urlGenerate(aParsedUrl) {
39640
39697
  var url = "";
39641
39698
  if (aParsedUrl.scheme) {
@@ -39656,7 +39713,7 @@ ${generateCodeFrame(
39656
39713
  }
39657
39714
  return url;
39658
39715
  }
39659
- exports.urlGenerate = urlGenerate;
39716
+ exports$1.urlGenerate = urlGenerate;
39660
39717
  function normalize2(aPath) {
39661
39718
  var path2 = aPath;
39662
39719
  var url = urlParse2(aPath);
@@ -39666,7 +39723,7 @@ ${generateCodeFrame(
39666
39723
  }
39667
39724
  path2 = url.path;
39668
39725
  }
39669
- var isAbsolute2 = exports.isAbsolute(path2);
39726
+ var isAbsolute2 = exports$1.isAbsolute(path2);
39670
39727
  var parts = path2.split(/\/+/);
39671
39728
  for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {
39672
39729
  part = parts[i];
@@ -39694,7 +39751,7 @@ ${generateCodeFrame(
39694
39751
  }
39695
39752
  return path2;
39696
39753
  }
39697
- exports.normalize = normalize2;
39754
+ exports$1.normalize = normalize2;
39698
39755
  function join2(aRoot, aPath) {
39699
39756
  if (aRoot === "") {
39700
39757
  aRoot = ".";
@@ -39727,8 +39784,8 @@ ${generateCodeFrame(
39727
39784
  }
39728
39785
  return joined;
39729
39786
  }
39730
- exports.join = join2;
39731
- exports.isAbsolute = function(aPath) {
39787
+ exports$1.join = join2;
39788
+ exports$1.isAbsolute = function(aPath) {
39732
39789
  return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
39733
39790
  };
39734
39791
  function relative2(aRoot, aPath) {
@@ -39750,11 +39807,11 @@ ${generateCodeFrame(
39750
39807
  }
39751
39808
  return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);
39752
39809
  }
39753
- exports.relative = relative2;
39754
- var supportsNullProto = function() {
39810
+ exports$1.relative = relative2;
39811
+ var supportsNullProto = (function() {
39755
39812
  var obj = /* @__PURE__ */ Object.create(null);
39756
39813
  return !("__proto__" in obj);
39757
- }();
39814
+ })();
39758
39815
  function identity(s) {
39759
39816
  return s;
39760
39817
  }
@@ -39764,14 +39821,14 @@ ${generateCodeFrame(
39764
39821
  }
39765
39822
  return aStr;
39766
39823
  }
39767
- exports.toSetString = supportsNullProto ? identity : toSetString;
39824
+ exports$1.toSetString = supportsNullProto ? identity : toSetString;
39768
39825
  function fromSetString(aStr) {
39769
39826
  if (isProtoString(aStr)) {
39770
39827
  return aStr.slice(1);
39771
39828
  }
39772
39829
  return aStr;
39773
39830
  }
39774
- exports.fromSetString = supportsNullProto ? identity : fromSetString;
39831
+ exports$1.fromSetString = supportsNullProto ? identity : fromSetString;
39775
39832
  function isProtoString(s) {
39776
39833
  if (!s) {
39777
39834
  return false;
@@ -39813,7 +39870,7 @@ ${generateCodeFrame(
39813
39870
  }
39814
39871
  return strcmp(mappingA.name, mappingB.name);
39815
39872
  }
39816
- exports.compareByOriginalPositions = compareByOriginalPositions;
39873
+ exports$1.compareByOriginalPositions = compareByOriginalPositions;
39817
39874
  function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) {
39818
39875
  var cmp = mappingA.generatedLine - mappingB.generatedLine;
39819
39876
  if (cmp !== 0) {
@@ -39837,7 +39894,7 @@ ${generateCodeFrame(
39837
39894
  }
39838
39895
  return strcmp(mappingA.name, mappingB.name);
39839
39896
  }
39840
- exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
39897
+ exports$1.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
39841
39898
  function strcmp(aStr1, aStr2) {
39842
39899
  if (aStr1 === aStr2) {
39843
39900
  return 0;
@@ -39876,11 +39933,11 @@ ${generateCodeFrame(
39876
39933
  }
39877
39934
  return strcmp(mappingA.name, mappingB.name);
39878
39935
  }
39879
- exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
39936
+ exports$1.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
39880
39937
  function parseSourceMapInput(str) {
39881
39938
  return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, ""));
39882
39939
  }
39883
- exports.parseSourceMapInput = parseSourceMapInput;
39940
+ exports$1.parseSourceMapInput = parseSourceMapInput;
39884
39941
  function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) {
39885
39942
  sourceURL = sourceURL || "";
39886
39943
  if (sourceRoot) {
@@ -39904,7 +39961,7 @@ ${generateCodeFrame(
39904
39961
  }
39905
39962
  return normalize2(sourceURL);
39906
39963
  }
39907
- exports.computeSourceURL = computeSourceURL;
39964
+ exports$1.computeSourceURL = computeSourceURL;
39908
39965
  })(util);
39909
39966
  return util;
39910
39967
  }
@@ -40301,9 +40358,9 @@ ${generateCodeFrame(
40301
40358
  function requireBinarySearch() {
40302
40359
  if (hasRequiredBinarySearch) return binarySearch;
40303
40360
  hasRequiredBinarySearch = 1;
40304
- (function(exports) {
40305
- exports.GREATEST_LOWER_BOUND = 1;
40306
- exports.LEAST_UPPER_BOUND = 2;
40361
+ (function(exports$1) {
40362
+ exports$1.GREATEST_LOWER_BOUND = 1;
40363
+ exports$1.LEAST_UPPER_BOUND = 2;
40307
40364
  function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {
40308
40365
  var mid = Math.floor((aHigh - aLow) / 2) + aLow;
40309
40366
  var cmp = aCompare(aNeedle, aHaystack[mid], true);
@@ -40313,7 +40370,7 @@ ${generateCodeFrame(
40313
40370
  if (aHigh - mid > 1) {
40314
40371
  return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias);
40315
40372
  }
40316
- if (aBias == exports.LEAST_UPPER_BOUND) {
40373
+ if (aBias == exports$1.LEAST_UPPER_BOUND) {
40317
40374
  return aHigh < aHaystack.length ? aHigh : -1;
40318
40375
  } else {
40319
40376
  return mid;
@@ -40322,14 +40379,14 @@ ${generateCodeFrame(
40322
40379
  if (mid - aLow > 1) {
40323
40380
  return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias);
40324
40381
  }
40325
- if (aBias == exports.LEAST_UPPER_BOUND) {
40382
+ if (aBias == exports$1.LEAST_UPPER_BOUND) {
40326
40383
  return mid;
40327
40384
  } else {
40328
40385
  return aLow < 0 ? -1 : aLow;
40329
40386
  }
40330
40387
  }
40331
40388
  }
40332
- exports.search = function search(aNeedle, aHaystack, aCompare, aBias) {
40389
+ exports$1.search = function search(aNeedle, aHaystack, aCompare, aBias) {
40333
40390
  if (aHaystack.length === 0) {
40334
40391
  return -1;
40335
40392
  }
@@ -40339,7 +40396,7 @@ ${generateCodeFrame(
40339
40396
  aNeedle,
40340
40397
  aHaystack,
40341
40398
  aCompare,
40342
- aBias || exports.GREATEST_LOWER_BOUND
40399
+ aBias || exports$1.GREATEST_LOWER_BOUND
40343
40400
  );
40344
40401
  if (index < 0) {
40345
40402
  return -1;
@@ -43083,6 +43140,7 @@ export default ${defaultVar}`;
43083
43140
  );
43084
43141
  }
43085
43142
  case "TSExpressionWithTypeArguments":
43143
+ // referenced by interface extends
43086
43144
  case "TSTypeReference": {
43087
43145
  const typeName = getReferenceName(node2);
43088
43146
  if ((typeName === "ExtractPropTypes" || typeName === "ExtractPublicPropTypes") && node2.typeParameters && ((_a2 = scope.imports[typeName]) == null ? void 0 : _a2.source) === "vue") {
@@ -44012,6 +44070,7 @@ Note: both in 3.2 or with the ignore, the properties in the base type are treate
44012
44070
  case "ConstructorParameters":
44013
44071
  case "ReadonlyArray":
44014
44072
  return ["String", "Number"];
44073
+ // TS built-in utility types
44015
44074
  case "Record":
44016
44075
  case "Partial":
44017
44076
  case "Required":
@@ -44065,6 +44124,8 @@ Note: both in 3.2 or with the ignore, the properties in the base type are treate
44065
44124
  case "Promise":
44066
44125
  case "Error":
44067
44126
  return [node2.typeName.name];
44127
+ // TS built-in utility types
44128
+ // https://www.typescriptlang.org/docs/handbook/utility-types.html
44068
44129
  case "Partial":
44069
44130
  case "Required":
44070
44131
  case "Readonly":
@@ -44161,6 +44222,7 @@ Note: both in 3.2 or with the ignore, the properties in the base type are treate
44161
44222
  }
44162
44223
  break;
44163
44224
  }
44225
+ // e.g. readonly
44164
44226
  case "TSTypeOperator": {
44165
44227
  return inferRuntimeType(
44166
44228
  ctx,
@@ -45837,12 +45899,14 @@ ${exposeCall}`
45837
45899
  case "UnaryExpression":
45838
45900
  return isStaticNode(node2.argument);
45839
45901
  case "LogicalExpression":
45902
+ // 1 > 2
45840
45903
  case "BinaryExpression":
45841
45904
  return isStaticNode(node2.left) && isStaticNode(node2.right);
45842
45905
  case "ConditionalExpression": {
45843
45906
  return isStaticNode(node2.test) && isStaticNode(node2.consequent) && isStaticNode(node2.alternate);
45844
45907
  }
45845
45908
  case "SequenceExpression":
45909
+ // (1, 2)
45846
45910
  case "TemplateLiteral":
45847
45911
  return node2.expressions.every((expr) => isStaticNode(expr));
45848
45912
  case "ParenthesizedExpression":
@@ -45874,43 +45938,66 @@ ${exposeCall}`
45874
45938
  };
45875
45939
  __spreadValues2(__spreadValues2({}, errorMessages$1), DOMErrorMessages);
45876
45940
  libExports.parse;
45877
- function appCompiler(descriptor, info) {
45878
- const sfcAppBlock = compileScript(descriptor, __spreadProps(__spreadValues({}, info), {
45879
- isProd: false
45880
- }));
45881
- sfcAppBlock.isScoped = descriptor.styles.some((s) => s.scoped);
45882
- return sfcAppBlock;
45883
- }
45884
- function stylesCompiler(styles, info) {
45885
- return styles.map((style) => {
45886
- const sfcStyleCompileResults = compileStyle(__spreadProps(__spreadValues({}, info), {
45887
- source: style.content,
45888
- scoped: style.scoped,
45889
- isProd: false
45890
- }));
45891
- sfcStyleCompileResults.errors.forEach((e) => console.warn(e));
45892
- return sfcStyleCompileResults;
45941
+ function scriptCompiler(descriptor, id2) {
45942
+ var _a2;
45943
+ const sfcScriptBlock = compileScript(descriptor, { id: id2 });
45944
+ (_a2 = sfcScriptBlock.warnings) == null ? void 0 : _a2.forEach((w) => console.warn(w));
45945
+ return sfcScriptBlock;
45946
+ }
45947
+ function styleCompiler(style, id2, filename) {
45948
+ const sfcStyleCompileResults = compileStyle({
45949
+ id: id2,
45950
+ filename,
45951
+ source: style.content,
45952
+ scoped: style.scoped
45893
45953
  });
45954
+ sfcStyleCompileResults.errors.forEach((e) => console.error(e));
45955
+ return sfcStyleCompileResults;
45894
45956
  }
45895
- function templateCompiler(template, info) {
45896
- var _a2;
45897
- const sfcTemplateCompileResults = compileTemplate(__spreadProps(__spreadValues({}, info), {
45898
- source: (_a2 = template == null ? void 0 : template.content) != null ? _a2 : "",
45899
- isProd: false
45900
- }));
45901
- sfcTemplateCompileResults.errors.forEach((e) => console.warn(e));
45957
+ function templateCompiler(descriptor, id2, filename) {
45958
+ var _a2, _b2;
45959
+ const sfcTemplateCompileResults = compileTemplate({
45960
+ id: id2,
45961
+ filename,
45962
+ source: (_b2 = (_a2 = descriptor.template) == null ? void 0 : _a2.content) != null ? _b2 : ""
45963
+ });
45964
+ sfcTemplateCompileResults.errors.forEach((e) => console.error(e));
45902
45965
  return sfcTemplateCompileResults;
45903
45966
  }
45904
- function compilerSfc(source) {
45905
- const info = { id: REPO_NAME, filename: `${REPO_NAME}.vue` };
45906
- const { descriptor, errors: errors2 } = parse$2(source, info);
45907
- errors2.forEach((e) => console.warn(e));
45967
+ function compilerSfc(source, id2) {
45968
+ const filename = `${id2}.vue`;
45969
+ const { descriptor, errors: errors2 } = parse$2(source, { filename });
45970
+ if (!descriptor.script && !descriptor.scriptSetup) {
45971
+ return compilerSfc(`<script>/* empty script */<\/script>${source}`, id2);
45972
+ }
45973
+ const isScoped = descriptor.styles.some((s) => s.scoped);
45974
+ errors2.forEach((e) => console.error(e));
45908
45975
  return {
45909
- sfcStyleCompileResultsList: stylesCompiler(descriptor.styles, info),
45910
- sfcAppBlock: appCompiler(descriptor, info),
45911
- sfcTemplateCompileResults: templateCompiler(descriptor.template, info)
45976
+ compiled: {
45977
+ sfcAppBlock: scriptCompiler(descriptor, id2),
45978
+ sfcTemplateCompileResults: templateCompiler(descriptor, id2, filename),
45979
+ sfcStyleCompileResultsList: descriptor.styles.map((s) => styleCompiler(s, id2, filename))
45980
+ },
45981
+ isScoped
45912
45982
  };
45913
45983
  }
45984
+ function scriptTransformer({ content }, appName) {
45985
+ return content.replace("export default", `${appName} =`).replace(/Object\.defineProperty\(__returned__.*/, "");
45986
+ }
45987
+ function templateTransformer({ code }, appName) {
45988
+ return code.replace("export function render", `${appName}.render = function`);
45989
+ }
45990
+ function sfc2esm(sfcSource, { id: id2 = "sfc2esm", appName = id2, mount = "#app" }) {
45991
+ const { isScoped, compiled: c } = compilerSfc(sfcSource, id2);
45992
+ const appCode = scriptTransformer(c.sfcAppBlock, appName);
45993
+ const renderCode = templateTransformer(c.sfcTemplateCompileResults, appName);
45994
+ const { initCode, scopeIdCode, createAppCode } = generator({ id: id2, appName, isScoped, mount });
45995
+ return {
45996
+ esmCode: [initCode, appCode, renderCode, scopeIdCode, createAppCode].join("\n"),
45997
+ cssCode: c.sfcStyleCompileResultsList.map((style) => style.code).join("\n")
45998
+ };
45999
+ }
46000
+ const asciiLogo = "/***************************************\r\n** _ _ **\r\n** ___ ___| |_ _ _ _ __ (_)_ __ **\r\n** / __|/ _ \\ __| | | | '_ \\| | '_ \\ **\r\n** \\__ \\ __/ |_| |_| | |_/ | | | | | **\r\n** |___/\\___|\\__|\\__,_| .__/|_|_| |_| **\r\n** |_| **\r\n***************************************/\r\n";
45914
46001
  function createDom(row, inner) {
45915
46002
  var _a2;
45916
46003
  const container2 = document.createElement("main");
@@ -45939,46 +46026,29 @@ ${exposeCall}`
45939
46026
  });
45940
46027
  });
45941
46028
  }
45942
- function awaitCompileSfc(handler) {
46029
+ function awaitClientCode(handler) {
45943
46030
  return __async(this, null, function* () {
45944
- const clientCodeList = yield watchRoot((node2, clientCodeList2) => {
46031
+ const sfcCode = yield watchRoot((node2, carrier) => {
45945
46032
  if (!/^(?:script|template|style)$/.test(node2.localName)) return;
45946
46033
  if (node2.hasAttribute("src")) return;
45947
- clientCodeList2.push(node2.outerHTML);
46034
+ carrier.push(node2.outerHTML);
45948
46035
  node2.localName === "style" ? node2.onload = node2.remove : node2.remove();
45949
46036
  });
45950
- const hasScript = clientCodeList.some((code) => code.slice(1, 7) === "script");
45951
- hasScript || clientCodeList.unshift("<script>/* empty script */<\/script>");
45952
- handler(compilerSfc(clientCodeList.join("\n")));
46037
+ handler(sfcCode.join("\n"));
45953
46038
  });
45954
46039
  }
45955
- function generateCssCode(sfcStyleCompileResultsList) {
45956
- return sfcStyleCompileResultsList.map((style) => style.code).join("\n");
45957
- }
45958
- function generateEsmCode(sfcAppBlock, sfcTemplateCompileResults) {
45959
- const _scriptTransform = ({ content }) => content.replace("export default", `${APP_VAR_NAME} =`).replace(/Object\.defineProperty\(__returned__.*/, "");
45960
- const _templateTransform = ({ code }) => code.replace("export function render", `${APP_VAR_NAME}.render = function`);
45961
- return [
45962
- INIT_CODE,
45963
- _scriptTransform(sfcAppBlock),
45964
- _templateTransform(sfcTemplateCompileResults),
45965
- sfcAppBlock.isScoped ? SCOPED_ID_CODE : "",
45966
- CREATE_APP_CODE
45967
- ].join("\n");
45968
- }
45969
- function generator(compiledSfc) {
45970
- const { sfcAppBlock, sfcStyleCompileResultsList, sfcTemplateCompileResults } = compiledSfc;
45971
- return {
45972
- esmCode: generateEsmCode(sfcAppBlock, sfcTemplateCompileResults),
45973
- cssCode: generateCssCode(sfcStyleCompileResultsList)
45974
- };
45975
- }
45976
- awaitCompileSfc((compiledSfc) => {
46040
+ awaitClientCode((sfcCode) => {
45977
46041
  var _a2, _b2, _c;
45978
46042
  const site = document["head"];
45979
- const { cssCode, esmCode } = generator(compiledSfc);
45980
- (_a2 = createDom(IMPORTS_TAG_CODE)) == null ? void 0 : _a2.mount(site);
45981
- (_b2 = createDom(`<script ${REPO_NAME} type="module">`, ASCII_LOGO + esmCode)) == null ? void 0 : _b2.mount(site);
45982
- (_c = createDom(cssCode && `<style ${REPO_NAME}>`, cssCode)) == null ? void 0 : _c.mount(document.head);
46043
+ const option = {
46044
+ id: "setupin",
46045
+ appName: "APP$",
46046
+ mount: "body"
46047
+ };
46048
+ const { esmCode, cssCode } = sfc2esm(sfcCode, option);
46049
+ (_a2 = createDom('<script type="importmap">', JSON.stringify({ imports: { vue: "https://unpkg.com/vue@latest/dist/vue.runtime.esm-browser.js" } }))) == null ? void 0 : _a2.mount(site);
46050
+ (_b2 = createDom('<script type="module">', `${asciiLogo}
46051
+ ${esmCode}`)) == null ? void 0 : _b2.mount(site);
46052
+ cssCode && ((_c = createDom("<style>", cssCode)) == null ? void 0 : _c.mount(document.head));
45983
46053
  });
45984
46054
  })();