@biggive/components 202607300937.0.0 → 202607301048.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/dist/biggive/biggive.esm.js +1 -1
  2. package/dist/biggive/{p-fdf35f01.entry.js → p-0799b185.entry.js} +1 -1
  3. package/dist/biggive/{p-24f05db9.entry.js → p-0f1b0135.entry.js} +1 -1
  4. package/dist/biggive/{p-af242b56.entry.js → p-1327ae07.entry.js} +1 -1
  5. package/dist/biggive/{p-c9f73b36.entry.js → p-199dac64.entry.js} +1 -1
  6. package/dist/biggive/{p-5fa7fef1.entry.js → p-1f4c671f.entry.js} +1 -1
  7. package/dist/biggive/{p-524707f0.entry.js → p-2078197e.entry.js} +1 -1
  8. package/dist/biggive/{p-4e569752.entry.js → p-23253e31.entry.js} +1 -1
  9. package/dist/biggive/{p-bd690dc6.entry.js → p-2a6463d8.entry.js} +1 -1
  10. package/dist/biggive/{p-8498e3a6.entry.js → p-3197ba6a.entry.js} +1 -1
  11. package/dist/biggive/p-3e31c822.entry.js +1 -0
  12. package/dist/biggive/{p-9ce1ec6e.entry.js → p-412f12ea.entry.js} +1 -1
  13. package/dist/biggive/{p-0cc133a3.entry.js → p-41720b30.entry.js} +1 -1
  14. package/dist/biggive/{p-10535cb2.entry.js → p-43d962a9.entry.js} +1 -1
  15. package/dist/biggive/{p-4b04ad60.entry.js → p-457e7161.entry.js} +1 -1
  16. package/dist/biggive/{p-45338ab3.entry.js → p-474ed546.entry.js} +1 -1
  17. package/dist/biggive/{p-1ab4593e.entry.js → p-491891ab.entry.js} +1 -1
  18. package/dist/biggive/{p-c3af2ce9.entry.js → p-4f78f441.entry.js} +1 -1
  19. package/dist/biggive/{p-dcad1fb5.entry.js → p-575d8459.entry.js} +1 -1
  20. package/dist/biggive/{p-c4d2f329.entry.js → p-6f5830b4.entry.js} +1 -1
  21. package/dist/biggive/p-70db6b6a.entry.js +1 -0
  22. package/dist/biggive/{p-c4faaf18.entry.js → p-74cea715.entry.js} +1 -1
  23. package/dist/biggive/{p-82898f85.entry.js → p-7e736f90.entry.js} +1 -1
  24. package/dist/biggive/{p-28e35010.entry.js → p-7fc50b70.entry.js} +1 -1
  25. package/dist/biggive/{p-7cdd875c.entry.js → p-80382091.entry.js} +1 -1
  26. package/dist/biggive/{p-3a2686cc.entry.js → p-8507bb63.entry.js} +1 -1
  27. package/dist/biggive/{p-1d484f08.entry.js → p-861f2f4a.entry.js} +1 -1
  28. package/dist/biggive/{p-10bdae20.entry.js → p-88aa444d.entry.js} +1 -1
  29. package/dist/biggive/{p-5c82116c.entry.js → p-8d8b1488.entry.js} +1 -1
  30. package/dist/biggive/{p-dacfc8b3.entry.js → p-947b9f4e.entry.js} +1 -1
  31. package/dist/biggive/{p-5b5cf8fe.entry.js → p-96354618.entry.js} +1 -1
  32. package/dist/biggive/{p-00889414.entry.js → p-99b388f2.entry.js} +1 -1
  33. package/dist/biggive/{p-844e84b0.entry.js → p-9a1744ce.entry.js} +1 -1
  34. package/dist/biggive/p-Cml8trro.js +2 -0
  35. package/dist/biggive/p-a38575b4.entry.js +1 -0
  36. package/dist/biggive/{p-e5cd5963.entry.js → p-aff122fa.entry.js} +1 -1
  37. package/dist/biggive/{p-8607939e.entry.js → p-b0be3314.entry.js} +1 -1
  38. package/dist/biggive/{p-281e0b9a.entry.js → p-b22ad681.entry.js} +1 -1
  39. package/dist/biggive/{p-63ca2811.entry.js → p-b6f2e063.entry.js} +1 -1
  40. package/dist/biggive/{p-e18d17f3.entry.js → p-c1c9b6a0.entry.js} +1 -1
  41. package/dist/biggive/{p-c3774844.entry.js → p-c3efc536.entry.js} +1 -1
  42. package/dist/biggive/{p-f9c9eb7b.entry.js → p-cbcb6d1d.entry.js} +1 -1
  43. package/dist/biggive/{p-bc7543bb.entry.js → p-d3e5c82f.entry.js} +1 -1
  44. package/dist/biggive/{p-17c54770.entry.js → p-d96fd8bb.entry.js} +1 -1
  45. package/dist/biggive/{p-c182cd74.entry.js → p-db09fc60.entry.js} +1 -1
  46. package/dist/biggive/{p-5d826703.entry.js → p-dbf0630d.entry.js} +1 -1
  47. package/dist/biggive/{p-370ffd56.entry.js → p-e0174caf.entry.js} +1 -1
  48. package/dist/biggive/{p-af76df67.entry.js → p-e53193ca.entry.js} +1 -1
  49. package/dist/biggive/{p-46cb291d.entry.js → p-ea02284e.entry.js} +1 -1
  50. package/dist/biggive/{p-f23779b2.entry.js → p-f031945c.entry.js} +1 -1
  51. package/dist/biggive/{p-e9140639.entry.js → p-f1324c49.entry.js} +1 -1
  52. package/dist/biggive/p-fa80ee3d.entry.js +1 -0
  53. package/dist/biggive/{p-5044c7fe.entry.js → p-fc8dd9f4.entry.js} +1 -1
  54. package/dist/cjs/biggive-accordion-entry.cjs.entry.js +1 -1
  55. package/dist/cjs/biggive-accordion.cjs.entry.js +1 -1
  56. package/dist/cjs/biggive-article-card.cjs.entry.js +1 -1
  57. package/dist/cjs/biggive-back-to-top.cjs.entry.js +1 -1
  58. package/dist/cjs/biggive-basic-card.cjs.entry.js +1 -1
  59. package/dist/cjs/biggive-biography-card.cjs.entry.js +1 -1
  60. package/dist/cjs/biggive-boxed-content.cjs.entry.js +1 -1
  61. package/dist/cjs/biggive-branded-image.cjs.entry.js +1 -1
  62. package/dist/cjs/biggive-button.cjs.entry.js +1 -1
  63. package/dist/cjs/biggive-call-to-action.cjs.entry.js +1 -1
  64. package/dist/cjs/biggive-campaign-card.cjs.entry.js +1 -1
  65. package/dist/cjs/biggive-campaign-highlights.cjs.entry.js +1 -1
  66. package/dist/cjs/biggive-container-card.cjs.entry.js +1 -1
  67. package/dist/cjs/biggive-cookie-banner.cjs.entry.js +1 -1
  68. package/dist/cjs/biggive-footer.cjs.entry.js +1 -1
  69. package/dist/cjs/biggive-form-field-select.cjs.entry.js +1 -1
  70. package/dist/cjs/biggive-form.cjs.entry.js +1 -1
  71. package/dist/cjs/biggive-formatted-text.cjs.entry.js +1 -1
  72. package/dist/cjs/biggive-grid.cjs.entry.js +1 -1
  73. package/dist/cjs/biggive-heading-banner.cjs.entry.js +1 -1
  74. package/dist/cjs/biggive-heading.cjs.entry.js +1 -1
  75. package/dist/cjs/biggive-hero-image.cjs.entry.js +1 -1
  76. package/dist/cjs/biggive-icon-button.cjs.entry.js +1 -1
  77. package/dist/cjs/biggive-image-button.cjs.entry.js +1 -1
  78. package/dist/cjs/biggive-image-card.cjs.entry.js +1 -1
  79. package/dist/cjs/biggive-image-feature.cjs.entry.js +1 -1
  80. package/dist/cjs/biggive-image.cjs.entry.js +1 -1
  81. package/dist/cjs/biggive-main-menu.cjs.entry.js +1 -1
  82. package/dist/cjs/biggive-misc-icon.cjs.entry.js +1 -1
  83. package/dist/cjs/biggive-nav-group.cjs.entry.js +1 -1
  84. package/dist/cjs/biggive-nav-item.cjs.entry.js +1 -1
  85. package/dist/cjs/biggive-page-column.cjs.entry.js +1 -1
  86. package/dist/cjs/biggive-page-columns.cjs.entry.js +1 -1
  87. package/dist/cjs/biggive-page-section.cjs.entry.js +1 -1
  88. package/dist/cjs/biggive-popup.cjs.entry.js +1 -1
  89. package/dist/cjs/biggive-progress-bar.cjs.entry.js +1 -1
  90. package/dist/cjs/biggive-quote.cjs.entry.js +1 -1
  91. package/dist/cjs/biggive-sheet.cjs.entry.js +1 -1
  92. package/dist/cjs/biggive-social-icon.cjs.entry.js +1 -1
  93. package/dist/cjs/biggive-tab.cjs.entry.js +1 -1
  94. package/dist/cjs/biggive-tabbed-content.cjs.entry.js +1 -1
  95. package/dist/cjs/biggive-table.cjs.entry.js +1 -1
  96. package/dist/cjs/biggive-text-input.cjs.entry.js +1 -1
  97. package/dist/cjs/biggive-timeline-entry.cjs.entry.js +1 -1
  98. package/dist/cjs/biggive-timeline.cjs.entry.js +1 -1
  99. package/dist/cjs/biggive-totalizer-ticker-item.cjs.entry.js +1 -1
  100. package/dist/cjs/biggive-totalizer.cjs.entry.js +1 -1
  101. package/dist/cjs/biggive-video-feature.cjs.entry.js +1 -1
  102. package/dist/cjs/biggive-video.cjs.entry.js +1 -1
  103. package/dist/cjs/biggive.cjs.js +2 -2
  104. package/dist/cjs/{index-Dg0jUZBu.js → index-BsyTxzpK.js} +10 -45
  105. package/dist/cjs/loader.cjs.js +1 -1
  106. package/dist/cjs/philco-footer.cjs.entry.js +1 -1
  107. package/dist/cjs/philco-main-menu.cjs.entry.js +1 -1
  108. package/dist/collection/collection-manifest.json +1 -1
  109. package/dist/esm/biggive-accordion-entry.entry.js +1 -1
  110. package/dist/esm/biggive-accordion.entry.js +1 -1
  111. package/dist/esm/biggive-article-card.entry.js +1 -1
  112. package/dist/esm/biggive-back-to-top.entry.js +1 -1
  113. package/dist/esm/biggive-basic-card.entry.js +1 -1
  114. package/dist/esm/biggive-biography-card.entry.js +1 -1
  115. package/dist/esm/biggive-boxed-content.entry.js +1 -1
  116. package/dist/esm/biggive-branded-image.entry.js +1 -1
  117. package/dist/esm/biggive-button.entry.js +1 -1
  118. package/dist/esm/biggive-call-to-action.entry.js +1 -1
  119. package/dist/esm/biggive-campaign-card.entry.js +1 -1
  120. package/dist/esm/biggive-campaign-highlights.entry.js +1 -1
  121. package/dist/esm/biggive-container-card.entry.js +1 -1
  122. package/dist/esm/biggive-cookie-banner.entry.js +1 -1
  123. package/dist/esm/biggive-footer.entry.js +1 -1
  124. package/dist/esm/biggive-form-field-select.entry.js +1 -1
  125. package/dist/esm/biggive-form.entry.js +1 -1
  126. package/dist/esm/biggive-formatted-text.entry.js +1 -1
  127. package/dist/esm/biggive-grid.entry.js +1 -1
  128. package/dist/esm/biggive-heading-banner.entry.js +1 -1
  129. package/dist/esm/biggive-heading.entry.js +1 -1
  130. package/dist/esm/biggive-hero-image.entry.js +1 -1
  131. package/dist/esm/biggive-icon-button.entry.js +1 -1
  132. package/dist/esm/biggive-image-button.entry.js +1 -1
  133. package/dist/esm/biggive-image-card.entry.js +1 -1
  134. package/dist/esm/biggive-image-feature.entry.js +1 -1
  135. package/dist/esm/biggive-image.entry.js +1 -1
  136. package/dist/esm/biggive-main-menu.entry.js +1 -1
  137. package/dist/esm/biggive-misc-icon.entry.js +1 -1
  138. package/dist/esm/biggive-nav-group.entry.js +1 -1
  139. package/dist/esm/biggive-nav-item.entry.js +1 -1
  140. package/dist/esm/biggive-page-column.entry.js +1 -1
  141. package/dist/esm/biggive-page-columns.entry.js +1 -1
  142. package/dist/esm/biggive-page-section.entry.js +1 -1
  143. package/dist/esm/biggive-popup.entry.js +1 -1
  144. package/dist/esm/biggive-progress-bar.entry.js +1 -1
  145. package/dist/esm/biggive-quote.entry.js +1 -1
  146. package/dist/esm/biggive-sheet.entry.js +1 -1
  147. package/dist/esm/biggive-social-icon.entry.js +1 -1
  148. package/dist/esm/biggive-tab.entry.js +1 -1
  149. package/dist/esm/biggive-tabbed-content.entry.js +1 -1
  150. package/dist/esm/biggive-table.entry.js +1 -1
  151. package/dist/esm/biggive-text-input.entry.js +1 -1
  152. package/dist/esm/biggive-timeline-entry.entry.js +1 -1
  153. package/dist/esm/biggive-timeline.entry.js +1 -1
  154. package/dist/esm/biggive-totalizer-ticker-item.entry.js +1 -1
  155. package/dist/esm/biggive-totalizer.entry.js +1 -1
  156. package/dist/esm/biggive-video-feature.entry.js +1 -1
  157. package/dist/esm/biggive-video.entry.js +1 -1
  158. package/dist/esm/biggive.js +3 -3
  159. package/dist/esm/{index-BxwdmTCA.js → index-Cml8trro.js} +10 -45
  160. package/dist/esm/loader.js +2 -2
  161. package/dist/esm/philco-footer.entry.js +1 -1
  162. package/dist/esm/philco-main-menu.entry.js +1 -1
  163. package/dist/types/stencil-public-runtime.d.ts +0 -1
  164. package/hydrate/index.js +381 -840
  165. package/hydrate/index.mjs +381 -840
  166. package/package.json +2 -2
  167. package/dist/biggive/p-4537f8ba.entry.js +0 -1
  168. package/dist/biggive/p-4dadc88f.entry.js +0 -1
  169. package/dist/biggive/p-BxwdmTCA.js +0 -2
  170. package/dist/biggive/p-a329e956.entry.js +0 -1
  171. package/dist/biggive/p-a5f2d918.entry.js +0 -1
package/hydrate/index.js CHANGED
@@ -134,8 +134,10 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
134
134
  const NAMESPACE = 'biggive';
135
135
  const BUILD = /* biggive */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", slotRelocation: true, state: true, updatable: true};
136
136
 
137
+ const globalStyles = "a{color:inherit;text-decoration:underline}a:hover{text-decoration:none}";
138
+
137
139
  /*
138
- Stencil Hydrate Platform v4.43.5 | MIT Licensed | https://stenciljs.com
140
+ Stencil Hydrate Platform v4.43.2 | MIT Licensed | https://stenciljs.com
139
141
  */
140
142
  var __create = Object.create;
141
143
  var __defProp = Object.defineProperty;
@@ -170,7 +172,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
170
172
  __defProp(target, "default", { value: mod, enumerable: true }) ,
171
173
  mod
172
174
  ));
173
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
175
+ var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
174
176
  var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
175
177
  var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
176
178
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
@@ -425,9 +427,9 @@ function getPropertyDescriptor(obj, memberName, getOnly) {
425
427
 
426
428
  // src/utils/es2022-rewire-class-members.ts
427
429
  var reWireGetterSetter = (instance, hostRef) => {
428
- var _a2;
430
+ var _a;
429
431
  const cmpMeta = hostRef.$cmpMeta$;
430
- const members = Object.entries((_a2 = cmpMeta.$members$) != null ? _a2 : {});
432
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
431
433
  members.map(([memberName, [memberFlags]]) => {
432
434
  if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
433
435
  const ogValue = instance[memberName];
@@ -484,14 +486,18 @@ function createStyleSheetIfNeededAndSupported(styles2) {
484
486
  // src/utils/shadow-root.ts
485
487
  var globalStyleSheet;
486
488
  function createShadowRoot(cmpMeta) {
487
- var _a2;
489
+ var _a;
488
490
  const opts = { mode: "open" };
489
491
  const shadowRoot = this.attachShadow(opts);
490
- if (globalStyleSheet === void 0) globalStyleSheet = (_a2 = createStyleSheetIfNeededAndSupported()) != null ? _a2 : null;
492
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
491
493
  if (globalStyleSheet) {
492
494
  {
493
495
  shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
494
496
  }
497
+ } else {
498
+ const styleElm = document.createElement("style");
499
+ styleElm.innerHTML = globalStyles;
500
+ shadowRoot.prepend(styleElm);
495
501
  }
496
502
  }
497
503
  var updateFallbackSlotVisibility = (elm) => {
@@ -623,8 +629,8 @@ function dispatchSlotChangeEvent(elm) {
623
629
  elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
624
630
  }
625
631
  function findSlotFromSlottedNode(slottedNode, parentHost) {
626
- var _a2;
627
- parentHost = parentHost || ((_a2 = slottedNode["s-ol"]) == null ? void 0 : _a2.parentElement);
632
+ var _a;
633
+ parentHost = parentHost || ((_a = slottedNode["s-ol"]) == null ? void 0 : _a.parentElement);
628
634
  if (!parentHost) return { slotNode: null, slotName: "" };
629
635
  const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
630
636
  const childNodes = internalCall(parentHost, "childNodes");
@@ -658,8 +664,8 @@ var uniqueTime = (key, measureText) => {
658
664
 
659
665
  // src/utils/query-nonce-meta-tag-content.ts
660
666
  function queryNonceMetaTagContent(doc) {
661
- var _a2, _b, _c;
662
- return (_c = (_b = (_a2 = doc.head) == null ? void 0 : _a2.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
667
+ var _a, _b, _c;
668
+ return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
663
669
  }
664
670
 
665
671
  // src/runtime/styles.ts
@@ -672,7 +678,7 @@ var registerStyle = (scopeId2, cssText, allowCS) => {
672
678
  styles.set(scopeId2, style);
673
679
  };
674
680
  var addStyle = (styleContainerNode, cmpMeta, mode) => {
675
- var _a2;
681
+ var _a;
676
682
  const scopeId2 = getScopeId(cmpMeta);
677
683
  const style = styles.get(scopeId2);
678
684
  if (!win.document) {
@@ -693,7 +699,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
693
699
  } else if (!appliedStyles.has(scopeId2)) {
694
700
  styleElm = win.document.createElement("style");
695
701
  styleElm.textContent = style;
696
- const nonce = (_a2 = plt.$nonce$) != null ? _a2 : queryNonceMetaTagContent(win.document);
702
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
697
703
  if (nonce != null) {
698
704
  styleElm.setAttribute("nonce", nonce);
699
705
  }
@@ -877,7 +883,7 @@ var convertToPrivate = (node) => {
877
883
 
878
884
  // src/runtime/client-hydrate.ts
879
885
  var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
880
- var _a2, _b, _c, _d;
886
+ var _a, _b, _c, _d;
881
887
  const endHydrate = createTime("hydrateClient", tagName);
882
888
  const shadowRoot = hostElm.shadowRoot;
883
889
  const childRenderNodes = [];
@@ -914,7 +920,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
914
920
  if (childRenderNode.$tag$ === "slot") {
915
921
  node["s-cr"] = hostElm["s-cr"];
916
922
  }
917
- } else if (((_a2 = childRenderNode.$tag$) == null ? void 0 : _a2.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
923
+ } else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
918
924
  const cmpMeta = getHostRef(childRenderNode.$elm$);
919
925
  if (cmpMeta) {
920
926
  const scopeId3 = getScopeId(
@@ -1246,10 +1252,10 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
1246
1252
  parentVNode.$children$[childVNode.$index$] = childVNode;
1247
1253
  }
1248
1254
  var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1249
- var _a2, _b;
1255
+ var _a, _b;
1250
1256
  let slottedNode = slotNode.nextSibling;
1251
1257
  slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1252
- if (!slottedNode || ((_a2 = slottedNode.nodeValue) == null ? void 0 : _a2.startsWith(SLOT_NODE_ID + "."))) return;
1258
+ if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
1253
1259
  do {
1254
1260
  if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
1255
1261
  slottedNode["s-sn"] = slotName;
@@ -1677,31 +1683,6 @@ var scopeCss = (cssText, scopeId2, commentOriginalSelector) => {
1677
1683
  return cssText;
1678
1684
  };
1679
1685
 
1680
- // src/runtime/normalize-watchers.ts
1681
- var normalizeWatchers = (raw) => {
1682
- if (!raw) return void 0;
1683
- const keys = Object.keys(raw);
1684
- if (keys.length === 0) return void 0;
1685
- let hasLegacy = false;
1686
- for (const propName of keys) {
1687
- if (hasLegacy) break;
1688
- for (const h2 of raw[propName]) {
1689
- if (typeof h2 === "string") {
1690
- hasLegacy = true;
1691
- break;
1692
- }
1693
- }
1694
- }
1695
- if (!hasLegacy) return raw;
1696
- const out = {};
1697
- for (const propName of keys) {
1698
- out[propName] = raw[propName].map(
1699
- (h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
1700
- );
1701
- }
1702
- return out;
1703
- };
1704
-
1705
1686
  // src/utils/remote-value.ts
1706
1687
  var RemoteValue = class _RemoteValue {
1707
1688
  /**
@@ -1798,19 +1779,11 @@ var RemoteValue = class _RemoteValue {
1798
1779
  };
1799
1780
 
1800
1781
  // src/utils/serialize.ts
1801
- function decodeBase64Unicode(base64) {
1802
- const binary = atob(base64);
1803
- const bytes = new Uint8Array(binary.length);
1804
- for (let i2 = 0; i2 < binary.length; i2++) {
1805
- bytes[i2] = binary.charCodeAt(i2);
1806
- }
1807
- return new TextDecoder().decode(bytes);
1808
- }
1809
1782
  function deserializeProperty(value) {
1810
1783
  if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
1811
1784
  return value;
1812
1785
  }
1813
- return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(SERIALIZED_PREFIX.length))));
1786
+ return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
1814
1787
  }
1815
1788
 
1816
1789
  // src/runtime/parse-property-value.ts
@@ -1836,8 +1809,8 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
1836
1809
  return propValue;
1837
1810
  };
1838
1811
  var getElement = (ref) => {
1839
- var _a2;
1840
- return (_a2 = getHostRef(ref)) == null ? void 0 : _a2.$hostElement$ ;
1812
+ var _a;
1813
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
1841
1814
  };
1842
1815
 
1843
1816
  // src/runtime/event-emitter.ts
@@ -2051,7 +2024,7 @@ var isSvgMode = false;
2051
2024
  var refCallbacksToRemove = [];
2052
2025
  var refCallbacksToAttach = [];
2053
2026
  var createElm = (oldParentVNode, newParentVNode, childIndex) => {
2054
- var _a2;
2027
+ var _a;
2055
2028
  const newVNode2 = newParentVNode.$children$[childIndex];
2056
2029
  let i2 = 0;
2057
2030
  let elm;
@@ -2122,7 +2095,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
2122
2095
  elm["s-sr"] = true;
2123
2096
  elm["s-cr"] = contentRef;
2124
2097
  elm["s-sn"] = newVNode2.$name$ || "";
2125
- elm["s-rf"] = (_a2 = newVNode2.$attrs$) == null ? void 0 : _a2.ref;
2098
+ elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
2126
2099
  patchSlotNode(elm);
2127
2100
  oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
2128
2101
  if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
@@ -2462,12 +2435,12 @@ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
2462
2435
  }
2463
2436
  };
2464
2437
  function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
2465
- var _a2, _b;
2438
+ var _a, _b;
2466
2439
  let scopeId2;
2467
2440
  if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
2468
2441
  const scopeName = slotNode["s-sn"];
2469
2442
  const hostName = slotNode["s-hn"];
2470
- (_a2 = newParent.classList) == null ? void 0 : _a2.add(scopeId2 + "-s");
2443
+ (_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
2471
2444
  if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
2472
2445
  let child = (oldParent.__childNodes || oldParent.childNodes)[0];
2473
2446
  let found = false;
@@ -2483,7 +2456,7 @@ function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
2483
2456
  }
2484
2457
  }
2485
2458
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
2486
- var _a2, _d, _e;
2459
+ var _a, _d, _e;
2487
2460
  const hostElm = hostRef.$hostElement$;
2488
2461
  const cmpMeta = hostRef.$cmpMeta$;
2489
2462
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -2531,7 +2504,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
2531
2504
  const nodeToRelocate = relocateData.$nodeToRelocate$;
2532
2505
  const slotRefNode = relocateData.$slotRefNode$;
2533
2506
  if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
2534
- nodeToRelocate["s-ih"] = (_a2 = nodeToRelocate.hidden) != null ? _a2 : false;
2507
+ nodeToRelocate["s-ih"] = (_a = nodeToRelocate.hidden) != null ? _a : false;
2535
2508
  }
2536
2509
  if (slotRefNode) {
2537
2510
  const parentNodeRef = slotRefNode.parentNode;
@@ -2591,14 +2564,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
2591
2564
  flushQueuedRefCallbacks();
2592
2565
  };
2593
2566
  var slotReferenceDebugNode = (slotVNode) => {
2594
- var _a2;
2595
- return (_a2 = win.document) == null ? void 0 : _a2.createComment(
2567
+ var _a;
2568
+ return (_a = win.document) == null ? void 0 : _a.createComment(
2596
2569
  `<slot${slotVNode.$name$ ? ' name="' + slotVNode.$name$ + '"' : ""}> (host=${hostTagName.toLowerCase()})`
2597
2570
  );
2598
2571
  };
2599
2572
  var originalLocationDebugNode = (nodeToRelocate) => {
2600
- var _a2;
2601
- return (_a2 = win.document) == null ? void 0 : _a2.createComment(
2573
+ var _a;
2574
+ return (_a = win.document) == null ? void 0 : _a.createComment(
2602
2575
  `org-location for ` + (nodeToRelocate.localName ? `<${nodeToRelocate.localName}> (host=${nodeToRelocate["s-hn"]})` : `[${nodeToRelocate.textContent}]`)
2603
2576
  );
2604
2577
  };
@@ -2668,7 +2641,7 @@ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then
2668
2641
  }) : fn();
2669
2642
  var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
2670
2643
  var updateComponent = async (hostRef, instance, isInitialLoad) => {
2671
- var _a2;
2644
+ var _a;
2672
2645
  const elm = hostRef.$hostElement$;
2673
2646
  const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
2674
2647
  const rc = elm["s-rc"];
@@ -2700,7 +2673,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
2700
2673
  endRender();
2701
2674
  endUpdate();
2702
2675
  {
2703
- const childrenPromises = (_a2 = elm["s-p"]) != null ? _a2 : [];
2676
+ const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
2704
2677
  const postUpdate = () => postUpdateComponent(hostRef);
2705
2678
  if (childrenPromises.length === 0) {
2706
2679
  postUpdate();
@@ -2771,13 +2744,13 @@ var postUpdateComponent = (hostRef) => {
2771
2744
  }
2772
2745
  };
2773
2746
  var appDidLoad = (who) => {
2774
- var _a2;
2747
+ var _a;
2775
2748
  if (BUILD.asyncQueue) {
2776
2749
  plt.$flags$ |= 2 /* appLoaded */;
2777
2750
  }
2778
2751
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
2779
2752
  {
2780
- if ((_a2 = plt.$orgLocNodes$) == null ? void 0 : _a2.size) {
2753
+ if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
2781
2754
  plt.$orgLocNodes$.clear();
2782
2755
  }
2783
2756
  }
@@ -2793,8 +2766,8 @@ var safeCall = (instance, method, arg, elm) => {
2793
2766
  return void 0;
2794
2767
  };
2795
2768
  var addHydratedFlag = (elm) => {
2796
- var _a2;
2797
- return elm.classList.add((_a2 = BUILD.hydratedSelectorName) != null ? _a2 : "hydrated") ;
2769
+ var _a;
2770
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
2798
2771
  };
2799
2772
  var serverSideConnected = (elm) => {
2800
2773
  const children = elm.children;
@@ -2869,12 +2842,12 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
2869
2842
 
2870
2843
  // src/runtime/proxy-component.ts
2871
2844
  var proxyComponent = (Cstr, cmpMeta, flags) => {
2872
- var _a2;
2845
+ var _a;
2873
2846
  const prototype = Cstr.prototype;
2874
2847
  {
2875
2848
  {
2876
2849
  if (Cstr.watchers && !cmpMeta.$watchers$) {
2877
- cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
2850
+ cmpMeta.$watchers$ = Cstr.watchers;
2878
2851
  }
2879
2852
  if (Cstr.deserializers && !cmpMeta.$deserializers$) {
2880
2853
  cmpMeta.$deserializers$ = Cstr.deserializers;
@@ -2883,7 +2856,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
2883
2856
  cmpMeta.$serializers$ = Cstr.serializers;
2884
2857
  }
2885
2858
  }
2886
- const members = Object.entries((_a2 = cmpMeta.$members$) != null ? _a2 : {});
2859
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
2887
2860
  members.map(([memberName, [memberFlags]]) => {
2888
2861
  if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
2889
2862
  const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
@@ -2961,7 +2934,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
2961
2934
  }
2962
2935
  if (!Cstr.isProxied) {
2963
2936
  {
2964
- cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
2937
+ cmpMeta.$watchers$ = Cstr.watchers;
2965
2938
  cmpMeta.$serializers$ = Cstr.serializers;
2966
2939
  cmpMeta.$deserializers$ = Cstr.deserializers;
2967
2940
  }
@@ -3112,7 +3085,7 @@ var insertVdomAnnotations = (doc, staticComponents) => {
3112
3085
  const orgLocationNodes = [];
3113
3086
  parseVNodeAnnotations(doc, doc.body, docData, orgLocationNodes);
3114
3087
  orgLocationNodes.forEach((orgLocationNode) => {
3115
- var _a2;
3088
+ var _a;
3116
3089
  if (orgLocationNode != null && orgLocationNode["s-nr"]) {
3117
3090
  const nodeRef = orgLocationNode["s-nr"];
3118
3091
  let hostId = nodeRef["s-host-id"];
@@ -3130,7 +3103,7 @@ var insertVdomAnnotations = (doc, staticComponents) => {
3130
3103
  }
3131
3104
  } else if (nodeRef.nodeType === 3 /* TextNode */) {
3132
3105
  if (hostId === 0) {
3133
- const textContent = (_a2 = nodeRef.nodeValue) == null ? void 0 : _a2.trim();
3106
+ const textContent = (_a = nodeRef.nodeValue) == null ? void 0 : _a.trim();
3134
3107
  if (textContent === "") {
3135
3108
  orgLocationNode.remove();
3136
3109
  return;
@@ -3160,7 +3133,7 @@ var insertVdomAnnotations = (doc, staticComponents) => {
3160
3133
  }
3161
3134
  };
3162
3135
  var parseVNodeAnnotations = (doc, node, docData, orgLocationNodes) => {
3163
- var _a2;
3136
+ var _a;
3164
3137
  if (node == null) {
3165
3138
  return;
3166
3139
  }
@@ -3168,7 +3141,7 @@ var parseVNodeAnnotations = (doc, node, docData, orgLocationNodes) => {
3168
3141
  orgLocationNodes.push(node);
3169
3142
  }
3170
3143
  if (node.nodeType === 1 /* ElementNode */) {
3171
- const childNodes = [...Array.from(node.childNodes), ...Array.from(((_a2 = node.shadowRoot) == null ? void 0 : _a2.childNodes) || [])];
3144
+ const childNodes = [...Array.from(node.childNodes), ...Array.from(((_a = node.shadowRoot) == null ? void 0 : _a.childNodes) || [])];
3172
3145
  childNodes.forEach((childNode) => {
3173
3146
  const hostRef = getHostRef(childNode);
3174
3147
  if (hostRef != null && !docData.staticComponents.has(childNode.nodeName.toLowerCase())) {
@@ -3394,35 +3367,8 @@ var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
3394
3367
  };
3395
3368
 
3396
3369
  // node_modules/minimatch/dist/esm/ast.js
3397
- var _a;
3398
3370
  var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
3399
3371
  var isExtglobType = (c) => types.has(c);
3400
- var isExtglobAST = (c) => isExtglobType(c.type);
3401
- var adoptionMap = /* @__PURE__ */ new Map([
3402
- ["!", ["@"]],
3403
- ["?", ["?", "@"]],
3404
- ["@", ["@"]],
3405
- ["*", ["*", "+", "?", "@"]],
3406
- ["+", ["+", "@"]]
3407
- ]);
3408
- var adoptionWithSpaceMap = /* @__PURE__ */ new Map([
3409
- ["!", ["?"]],
3410
- ["@", ["?"]],
3411
- ["+", ["?", "*"]]
3412
- ]);
3413
- var adoptionAnyMap = /* @__PURE__ */ new Map([
3414
- ["!", ["?", "@"]],
3415
- ["?", ["?", "@"]],
3416
- ["@", ["?", "@"]],
3417
- ["*", ["*", "+", "?", "@"]],
3418
- ["+", ["+", "@", "?", "*"]]
3419
- ]);
3420
- var usurpMap = /* @__PURE__ */ new Map([
3421
- ["!", /* @__PURE__ */ new Map([["!", "@"]])],
3422
- ["?", /* @__PURE__ */ new Map([["*", "*"], ["+", "*"]])],
3423
- ["@", /* @__PURE__ */ new Map([["!", "!"], ["?", "?"], ["@", "@"], ["*", "*"], ["+", "+"]])],
3424
- ["+", /* @__PURE__ */ new Map([["?", "*"], ["*", "*"]])]
3425
- ]);
3426
3372
  var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
3427
3373
  var startNoDot = "(?!\\.)";
3428
3374
  var addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
@@ -3432,8 +3378,8 @@ var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
3432
3378
  var qmark = "[^/]";
3433
3379
  var star = qmark + "*?";
3434
3380
  var starNoEmpty = qmark + "+?";
3435
- var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, canAdoptWithSpace_fn, canAdopt_fn, canAdoptType_fn, adoptWithSpace_fn, adopt_fn, canUsurpType_fn, canUsurp_fn, usurp_fn, flatten_fn, partsToRegExp_fn, parseGlob_fn;
3436
- var AST = class {
3381
+ var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn;
3382
+ var _AST = class _AST {
3437
3383
  constructor(type, parent, options = {}) {
3438
3384
  __privateAdd(this, _AST_instances);
3439
3385
  __publicField(this, "type");
@@ -3486,44 +3432,44 @@ var AST = class {
3486
3432
  for (const p of parts) {
3487
3433
  if (p === "")
3488
3434
  continue;
3489
- if (typeof p !== "string" && !(p instanceof _a && __privateGet(p, _parent) === this)) {
3435
+ if (typeof p !== "string" && !(p instanceof _AST && __privateGet(p, _parent) === this)) {
3490
3436
  throw new Error("invalid part: " + p);
3491
3437
  }
3492
3438
  __privateGet(this, _parts).push(p);
3493
3439
  }
3494
3440
  }
3495
3441
  toJSON() {
3496
- var _a2;
3442
+ var _a;
3497
3443
  const ret = this.type === null ? __privateGet(this, _parts).slice().map((p) => typeof p === "string" ? p : p.toJSON()) : [this.type, ...__privateGet(this, _parts).map((p) => p.toJSON())];
3498
3444
  if (this.isStart() && !this.type)
3499
3445
  ret.unshift([]);
3500
- if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!")) {
3446
+ if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")) {
3501
3447
  ret.push({});
3502
3448
  }
3503
3449
  return ret;
3504
3450
  }
3505
3451
  isStart() {
3506
- var _a2;
3452
+ var _a;
3507
3453
  if (__privateGet(this, _root) === this)
3508
3454
  return true;
3509
- if (!((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.isStart()))
3455
+ if (!((_a = __privateGet(this, _parent)) == null ? void 0 : _a.isStart()))
3510
3456
  return false;
3511
3457
  if (__privateGet(this, _parentIndex) === 0)
3512
3458
  return true;
3513
3459
  const p = __privateGet(this, _parent);
3514
3460
  for (let i2 = 0; i2 < __privateGet(this, _parentIndex); i2++) {
3515
3461
  const pp = __privateGet(p, _parts)[i2];
3516
- if (!(pp instanceof _a && pp.type === "!")) {
3462
+ if (!(pp instanceof _AST && pp.type === "!")) {
3517
3463
  return false;
3518
3464
  }
3519
3465
  }
3520
3466
  return true;
3521
3467
  }
3522
3468
  isEnd() {
3523
- var _a2, _b, _c;
3469
+ var _a, _b, _c;
3524
3470
  if (__privateGet(this, _root) === this)
3525
3471
  return true;
3526
- if (((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!")
3472
+ if (((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")
3527
3473
  return true;
3528
3474
  if (!((_b = __privateGet(this, _parent)) == null ? void 0 : _b.isEnd()))
3529
3475
  return false;
@@ -3539,16 +3485,16 @@ var AST = class {
3539
3485
  this.push(part.clone(this));
3540
3486
  }
3541
3487
  clone(parent) {
3542
- const c = new _a(this.type, parent);
3488
+ const c = new _AST(this.type, parent);
3543
3489
  for (const p of __privateGet(this, _parts)) {
3544
3490
  c.copyIn(p);
3545
3491
  }
3546
3492
  return c;
3547
3493
  }
3548
3494
  static fromGlob(pattern, options = {}) {
3549
- var _a2;
3550
- const ast = new _a(null, void 0, options);
3551
- __privateMethod(_a2 = _a, _AST_static, parseAST_fn).call(_a2, pattern, ast, 0, options, 0);
3495
+ var _a;
3496
+ const ast = new _AST(null, void 0, options);
3497
+ __privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, pattern, ast, 0, options);
3552
3498
  return ast;
3553
3499
  }
3554
3500
  // returns the regular expression if there's magic, or the unescaped
@@ -3641,17 +3587,15 @@ var AST = class {
3641
3587
  // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
3642
3588
  // or start or whatever) and prepend ^ or / at the Regexp construction.
3643
3589
  toRegExpSource(allowDot) {
3644
- var _a2;
3590
+ var _a;
3645
3591
  const dot = allowDot != null ? allowDot : !!__privateGet(this, _options).dot;
3646
- if (__privateGet(this, _root) === this) {
3647
- __privateMethod(this, _AST_instances, flatten_fn).call(this);
3592
+ if (__privateGet(this, _root) === this)
3648
3593
  __privateMethod(this, _AST_instances, fillNegs_fn).call(this);
3649
- }
3650
- if (!isExtglobAST(this)) {
3594
+ if (!this.type) {
3651
3595
  const noEmpty = this.isStart() && this.isEnd();
3652
3596
  const src = __privateGet(this, _parts).map((p) => {
3653
- var _a3;
3654
- const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a3 = _a, _AST_static, parseGlob_fn).call(_a3, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
3597
+ var _a2;
3598
+ const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a2 = _AST, _AST_static, parseGlob_fn).call(_a2, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
3655
3599
  __privateSet(this, _hasMagic, __privateGet(this, _hasMagic) || hasMagic);
3656
3600
  __privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
3657
3601
  return re;
@@ -3674,7 +3618,7 @@ var AST = class {
3674
3618
  }
3675
3619
  }
3676
3620
  let end = "";
3677
- if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!") {
3621
+ if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!") {
3678
3622
  end = "(?:$|\\/)";
3679
3623
  }
3680
3624
  const final2 = start2 + src + end;
@@ -3690,10 +3634,9 @@ var AST = class {
3690
3634
  let body = __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, dot);
3691
3635
  if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
3692
3636
  const s = this.toString();
3693
- const me = this;
3694
- __privateSet(me, _parts, [s]);
3695
- me.type = null;
3696
- __privateSet(me, _hasMagic, void 0);
3637
+ __privateSet(this, _parts, [s]);
3638
+ this.type = null;
3639
+ __privateSet(this, _hasMagic, void 0);
3697
3640
  return [s, unescape(this.toString()), false, false];
3698
3641
  }
3699
3642
  let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ? "" : __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, true);
@@ -3762,9 +3705,8 @@ fillNegs_fn = function() {
3762
3705
  return this;
3763
3706
  };
3764
3707
  _AST_static = new WeakSet();
3765
- parseAST_fn = function(str, ast, pos, opt, extDepth) {
3766
- var _a2, _b, _c, _d, _e;
3767
- const maxDepth = (_a2 = opt.maxExtglobRecursion) != null ? _a2 : 2;
3708
+ parseAST_fn = function(str, ast, pos, opt) {
3709
+ var _a, _b;
3768
3710
  let escaping = false;
3769
3711
  let inBrace = false;
3770
3712
  let braceStart = -1;
@@ -3796,12 +3738,11 @@ parseAST_fn = function(str, ast, pos, opt, extDepth) {
3796
3738
  acc2 += c;
3797
3739
  continue;
3798
3740
  }
3799
- const doRecurse = !opt.noext && isExtglobType(c) && str.charAt(i3) === "(" && extDepth <= maxDepth;
3800
- if (doRecurse) {
3741
+ if (!opt.noext && isExtglobType(c) && str.charAt(i3) === "(") {
3801
3742
  ast.push(acc2);
3802
3743
  acc2 = "";
3803
- const ext2 = new _a(c, ast);
3804
- i3 = __privateMethod(_b = _a, _AST_static, parseAST_fn).call(_b, str, ext2, i3, opt, extDepth + 1);
3744
+ const ext2 = new _AST(c, ast);
3745
+ i3 = __privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, str, ext2, i3, opt);
3805
3746
  ast.push(ext2);
3806
3747
  continue;
3807
3748
  }
@@ -3811,7 +3752,7 @@ parseAST_fn = function(str, ast, pos, opt, extDepth) {
3811
3752
  return i3;
3812
3753
  }
3813
3754
  let i2 = pos + 1;
3814
- let part = new _a(null, ast);
3755
+ let part = new _AST(null, ast);
3815
3756
  const parts = [];
3816
3757
  let acc = "";
3817
3758
  while (i2 < str.length) {
@@ -3838,22 +3779,19 @@ parseAST_fn = function(str, ast, pos, opt, extDepth) {
3838
3779
  acc += c;
3839
3780
  continue;
3840
3781
  }
3841
- const doRecurse = isExtglobType(c) && str.charAt(i2) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
3842
- (extDepth <= maxDepth || ast && __privateMethod(_c = ast, _AST_instances, canAdoptType_fn).call(_c, c));
3843
- if (doRecurse) {
3844
- const depthAdd = ast && __privateMethod(_d = ast, _AST_instances, canAdoptType_fn).call(_d, c) ? 0 : 1;
3782
+ if (isExtglobType(c) && str.charAt(i2) === "(") {
3845
3783
  part.push(acc);
3846
3784
  acc = "";
3847
- const ext2 = new _a(c, part);
3785
+ const ext2 = new _AST(c, part);
3848
3786
  part.push(ext2);
3849
- i2 = __privateMethod(_e = _a, _AST_static, parseAST_fn).call(_e, str, ext2, i2, opt, extDepth + depthAdd);
3787
+ i2 = __privateMethod(_b = _AST, _AST_static, parseAST_fn).call(_b, str, ext2, i2, opt);
3850
3788
  continue;
3851
3789
  }
3852
3790
  if (c === "|") {
3853
3791
  part.push(acc);
3854
3792
  acc = "";
3855
3793
  parts.push(part);
3856
- part = new _a(null, ast);
3794
+ part = new _AST(null, ast);
3857
3795
  continue;
3858
3796
  }
3859
3797
  if (c === ")") {
@@ -3872,100 +3810,6 @@ parseAST_fn = function(str, ast, pos, opt, extDepth) {
3872
3810
  __privateSet(ast, _parts, [str.substring(pos - 1)]);
3873
3811
  return i2;
3874
3812
  };
3875
- canAdoptWithSpace_fn = function(child) {
3876
- return __privateMethod(this, _AST_instances, canAdopt_fn).call(this, child, adoptionWithSpaceMap);
3877
- };
3878
- canAdopt_fn = function(child, map2 = adoptionMap) {
3879
- if (!child || typeof child !== "object" || child.type !== null || __privateGet(child, _parts).length !== 1 || this.type === null) {
3880
- return false;
3881
- }
3882
- const gc = __privateGet(child, _parts)[0];
3883
- if (!gc || typeof gc !== "object" || gc.type === null) {
3884
- return false;
3885
- }
3886
- return __privateMethod(this, _AST_instances, canAdoptType_fn).call(this, gc.type, map2);
3887
- };
3888
- canAdoptType_fn = function(c, map2 = adoptionAnyMap) {
3889
- var _a2;
3890
- return !!((_a2 = map2.get(this.type)) == null ? void 0 : _a2.includes(c));
3891
- };
3892
- adoptWithSpace_fn = function(child, index) {
3893
- const gc = __privateGet(child, _parts)[0];
3894
- const blank = new _a(null, gc, this.options);
3895
- __privateGet(blank, _parts).push("");
3896
- gc.push(blank);
3897
- __privateMethod(this, _AST_instances, adopt_fn).call(this, child, index);
3898
- };
3899
- adopt_fn = function(child, index) {
3900
- const gc = __privateGet(child, _parts)[0];
3901
- __privateGet(this, _parts).splice(index, 1, ...__privateGet(gc, _parts));
3902
- for (const p of __privateGet(gc, _parts)) {
3903
- if (typeof p === "object")
3904
- __privateSet(p, _parent, this);
3905
- }
3906
- __privateSet(this, _toString, void 0);
3907
- };
3908
- canUsurpType_fn = function(c) {
3909
- const m = usurpMap.get(this.type);
3910
- return !!(m == null ? void 0 : m.has(c));
3911
- };
3912
- canUsurp_fn = function(child) {
3913
- if (!child || typeof child !== "object" || child.type !== null || __privateGet(child, _parts).length !== 1 || this.type === null || __privateGet(this, _parts).length !== 1) {
3914
- return false;
3915
- }
3916
- const gc = __privateGet(child, _parts)[0];
3917
- if (!gc || typeof gc !== "object" || gc.type === null) {
3918
- return false;
3919
- }
3920
- return __privateMethod(this, _AST_instances, canUsurpType_fn).call(this, gc.type);
3921
- };
3922
- usurp_fn = function(child) {
3923
- const m = usurpMap.get(this.type);
3924
- const gc = __privateGet(child, _parts)[0];
3925
- const nt = m == null ? void 0 : m.get(gc.type);
3926
- if (!nt)
3927
- return false;
3928
- __privateSet(this, _parts, __privateGet(gc, _parts));
3929
- for (const p of __privateGet(this, _parts)) {
3930
- if (typeof p === "object")
3931
- __privateSet(p, _parent, this);
3932
- }
3933
- this.type = nt;
3934
- __privateSet(this, _toString, void 0);
3935
- __privateSet(this, _emptyExt, false);
3936
- };
3937
- flatten_fn = function() {
3938
- var _a2, _b;
3939
- if (!isExtglobAST(this)) {
3940
- for (const p of __privateGet(this, _parts)) {
3941
- if (typeof p === "object")
3942
- __privateMethod(_a2 = p, _AST_instances, flatten_fn).call(_a2);
3943
- }
3944
- } else {
3945
- let iterations = 0;
3946
- let done = false;
3947
- do {
3948
- done = true;
3949
- for (let i2 = 0; i2 < __privateGet(this, _parts).length; i2++) {
3950
- const c = __privateGet(this, _parts)[i2];
3951
- if (typeof c === "object") {
3952
- __privateMethod(_b = c, _AST_instances, flatten_fn).call(_b);
3953
- if (__privateMethod(this, _AST_instances, canAdopt_fn).call(this, c)) {
3954
- done = false;
3955
- __privateMethod(this, _AST_instances, adopt_fn).call(this, c, i2);
3956
- } else if (__privateMethod(this, _AST_instances, canAdoptWithSpace_fn).call(this, c)) {
3957
- done = false;
3958
- __privateMethod(this, _AST_instances, adoptWithSpace_fn).call(this, c, i2);
3959
- } else if (__privateMethod(this, _AST_instances, canUsurp_fn).call(this, c)) {
3960
- done = false;
3961
- __privateMethod(this, _AST_instances, usurp_fn).call(this, c);
3962
- }
3963
- }
3964
- }
3965
- } while (!done && ++iterations < 10);
3966
- }
3967
- __privateSet(this, _toString, void 0);
3968
- };
3969
3813
  partsToRegExp_fn = function(dot) {
3970
3814
  return __privateGet(this, _parts).map((p) => {
3971
3815
  if (typeof p === "string") {
@@ -3980,13 +3824,11 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
3980
3824
  let escaping = false;
3981
3825
  let re = "";
3982
3826
  let uflag = false;
3983
- let inStar = false;
3984
3827
  for (let i2 = 0; i2 < glob.length; i2++) {
3985
3828
  const c = glob.charAt(i2);
3986
3829
  if (escaping) {
3987
3830
  escaping = false;
3988
3831
  re += (reSpecials.has(c) ? "\\" : "") + c;
3989
- inStar = false;
3990
3832
  continue;
3991
3833
  }
3992
3834
  if (c === "\\") {
@@ -4004,19 +3846,16 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
4004
3846
  uflag = uflag || needUflag;
4005
3847
  i2 += consumed - 1;
4006
3848
  hasMagic = hasMagic || magic;
4007
- inStar = false;
4008
3849
  continue;
4009
3850
  }
4010
3851
  }
4011
3852
  if (c === "*") {
4012
- if (inStar)
4013
- continue;
4014
- inStar = true;
4015
- re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star;
3853
+ if (noEmpty && glob === "*")
3854
+ re += starNoEmpty;
3855
+ else
3856
+ re += star;
4016
3857
  hasMagic = true;
4017
3858
  continue;
4018
- } else {
4019
- inStar = false;
4020
3859
  }
4021
3860
  if (c === "?") {
4022
3861
  re += qmark;
@@ -4027,8 +3866,8 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
4027
3866
  }
4028
3867
  return [re, unescape(glob), !!hasMagic, uflag];
4029
3868
  };
4030
- __privateAdd(AST, _AST_static);
4031
- _a = AST;
3869
+ __privateAdd(_AST, _AST_static);
3870
+ var AST = _AST;
4032
3871
 
4033
3872
  // node_modules/minimatch/dist/esm/escape.js
4034
3873
  var escape = (s, { windowsPathsNoEscape = false } = {}) => {
@@ -4167,33 +4006,28 @@ var match = (list, pattern, options = {}) => {
4167
4006
  minimatch.match = match;
4168
4007
  var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
4169
4008
  var regExpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
4170
- var _Minimatch_instances, matchGlobstar_fn, matchGlobStarBodySections_fn, matchOne_fn;
4171
4009
  var Minimatch = class {
4010
+ options;
4011
+ set;
4012
+ pattern;
4013
+ windowsPathsNoEscape;
4014
+ nonegate;
4015
+ negate;
4016
+ comment;
4017
+ empty;
4018
+ preserveMultipleSlashes;
4019
+ partial;
4020
+ globSet;
4021
+ globParts;
4022
+ nocase;
4023
+ isWindows;
4024
+ platform;
4025
+ windowsNoMagicRoot;
4026
+ regexp;
4172
4027
  constructor(pattern, options = {}) {
4173
- __privateAdd(this, _Minimatch_instances);
4174
- __publicField(this, "options");
4175
- __publicField(this, "set");
4176
- __publicField(this, "pattern");
4177
- __publicField(this, "windowsPathsNoEscape");
4178
- __publicField(this, "nonegate");
4179
- __publicField(this, "negate");
4180
- __publicField(this, "comment");
4181
- __publicField(this, "empty");
4182
- __publicField(this, "preserveMultipleSlashes");
4183
- __publicField(this, "partial");
4184
- __publicField(this, "globSet");
4185
- __publicField(this, "globParts");
4186
- __publicField(this, "nocase");
4187
- __publicField(this, "isWindows");
4188
- __publicField(this, "platform");
4189
- __publicField(this, "windowsNoMagicRoot");
4190
- __publicField(this, "maxGlobstarRecursion");
4191
- __publicField(this, "regexp");
4192
- var _a2;
4193
4028
  assertValidPattern(pattern);
4194
4029
  options = options || {};
4195
4030
  this.options = options;
4196
- this.maxGlobstarRecursion = (_a2 = options.maxGlobstarRecursion) != null ? _a2 : 200;
4197
4031
  this.pattern = pattern;
4198
4032
  this.platform = options.platform || defaultPlatform;
4199
4033
  this.isWindows = this.platform === "win32";
@@ -4461,11 +4295,10 @@ var Minimatch = class {
4461
4295
  for (let i2 = 0; i2 < globParts.length - 1; i2++) {
4462
4296
  for (let j = i2 + 1; j < globParts.length; j++) {
4463
4297
  const matched = this.partsMatch(globParts[i2], globParts[j], !this.preserveMultipleSlashes);
4464
- if (matched) {
4465
- globParts[i2] = [];
4466
- globParts[j] = matched;
4467
- break;
4468
- }
4298
+ if (!matched)
4299
+ continue;
4300
+ globParts[i2] = matched;
4301
+ globParts[j] = [];
4469
4302
  }
4470
4303
  }
4471
4304
  return globParts.filter((gs) => gs.length);
@@ -4526,8 +4359,7 @@ var Minimatch = class {
4526
4359
  // out of pattern, then that's fine, as long as all
4527
4360
  // the parts match.
4528
4361
  matchOne(file, pattern, partial = false) {
4529
- let fileStartIndex = 0;
4530
- let patternStartIndex = 0;
4362
+ const options = this.options;
4531
4363
  if (this.isWindows) {
4532
4364
  const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
4533
4365
  const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
@@ -4536,14 +4368,14 @@ var Minimatch = class {
4536
4368
  const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
4537
4369
  const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
4538
4370
  if (typeof fdi === "number" && typeof pdi === "number") {
4539
- const [fd, pd] = [
4540
- file[fdi],
4541
- pattern[pdi]
4542
- ];
4371
+ const [fd, pd] = [file[fdi], pattern[pdi]];
4543
4372
  if (fd.toLowerCase() === pd.toLowerCase()) {
4544
4373
  pattern[pdi] = fd;
4545
- patternStartIndex = pdi;
4546
- fileStartIndex = fdi;
4374
+ if (pdi > fdi) {
4375
+ pattern = pattern.slice(pdi);
4376
+ } else if (fdi > pdi) {
4377
+ file = file.slice(fdi);
4378
+ }
4547
4379
  }
4548
4380
  }
4549
4381
  }
@@ -4551,10 +4383,71 @@ var Minimatch = class {
4551
4383
  if (optimizationLevel >= 2) {
4552
4384
  file = this.levelTwoFileOptimize(file);
4553
4385
  }
4554
- if (pattern.includes(GLOBSTAR)) {
4555
- return __privateMethod(this, _Minimatch_instances, matchGlobstar_fn).call(this, file, pattern, partial, fileStartIndex, patternStartIndex);
4386
+ this.debug("matchOne", this, { file, pattern });
4387
+ this.debug("matchOne", file.length, pattern.length);
4388
+ for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
4389
+ this.debug("matchOne loop");
4390
+ var p = pattern[pi];
4391
+ var f = file[fi];
4392
+ this.debug(pattern, p, f);
4393
+ if (p === false) {
4394
+ return false;
4395
+ }
4396
+ if (p === GLOBSTAR) {
4397
+ this.debug("GLOBSTAR", [pattern, p, f]);
4398
+ var fr = fi;
4399
+ var pr = pi + 1;
4400
+ if (pr === pl) {
4401
+ this.debug("** at the end");
4402
+ for (; fi < fl; fi++) {
4403
+ if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
4404
+ return false;
4405
+ }
4406
+ return true;
4407
+ }
4408
+ while (fr < fl) {
4409
+ var swallowee = file[fr];
4410
+ this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
4411
+ if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
4412
+ this.debug("globstar found match!", fr, fl, swallowee);
4413
+ return true;
4414
+ } else {
4415
+ if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
4416
+ this.debug("dot detected!", file, fr, pattern, pr);
4417
+ break;
4418
+ }
4419
+ this.debug("globstar swallow a segment, and continue");
4420
+ fr++;
4421
+ }
4422
+ }
4423
+ if (partial) {
4424
+ this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
4425
+ if (fr === fl) {
4426
+ return true;
4427
+ }
4428
+ }
4429
+ return false;
4430
+ }
4431
+ let hit;
4432
+ if (typeof p === "string") {
4433
+ hit = f === p;
4434
+ this.debug("string match", p, f, hit);
4435
+ } else {
4436
+ hit = p.test(f);
4437
+ this.debug("pattern match", p, f, hit);
4438
+ }
4439
+ if (!hit)
4440
+ return false;
4441
+ }
4442
+ if (fi === fl && pi === pl) {
4443
+ return true;
4444
+ } else if (fi === fl) {
4445
+ return partial;
4446
+ } else if (pi === pl) {
4447
+ return fi === fl - 1 && file[fi] === "";
4448
+ } else {
4449
+ throw new Error("wtf?");
4556
4450
  }
4557
- return __privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, pattern, partial, fileStartIndex, patternStartIndex);
4558
4451
  }
4559
4452
  braceExpand() {
4560
4453
  return braceExpand(this.pattern, this.options);
@@ -4693,135 +4586,6 @@ var Minimatch = class {
4693
4586
  return minimatch.defaults(def).Minimatch;
4694
4587
  }
4695
4588
  };
4696
- _Minimatch_instances = new WeakSet();
4697
- matchGlobstar_fn = function(file, pattern, partial, fileIndex, patternIndex) {
4698
- const firstgs = pattern.indexOf(GLOBSTAR, patternIndex);
4699
- const lastgs = pattern.lastIndexOf(GLOBSTAR);
4700
- const [head, body, tail] = partial ? [
4701
- pattern.slice(patternIndex, firstgs),
4702
- pattern.slice(firstgs + 1),
4703
- []
4704
- ] : [
4705
- pattern.slice(patternIndex, firstgs),
4706
- pattern.slice(firstgs + 1, lastgs),
4707
- pattern.slice(lastgs + 1)
4708
- ];
4709
- if (head.length) {
4710
- const fileHead = file.slice(fileIndex, fileIndex + head.length);
4711
- if (!__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, fileHead, head, partial, 0, 0))
4712
- return false;
4713
- fileIndex += head.length;
4714
- }
4715
- let fileTailMatch = 0;
4716
- if (tail.length) {
4717
- if (tail.length + fileIndex > file.length)
4718
- return false;
4719
- let tailStart = file.length - tail.length;
4720
- if (__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, tail, partial, tailStart, 0)) {
4721
- fileTailMatch = tail.length;
4722
- } else {
4723
- if (file[file.length - 1] !== "" || fileIndex + tail.length === file.length) {
4724
- return false;
4725
- }
4726
- tailStart--;
4727
- if (!__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, tail, partial, tailStart, 0))
4728
- return false;
4729
- fileTailMatch = tail.length + 1;
4730
- }
4731
- }
4732
- if (!body.length) {
4733
- let sawSome = !!fileTailMatch;
4734
- for (let i3 = fileIndex; i3 < file.length - fileTailMatch; i3++) {
4735
- const f = String(file[i3]);
4736
- sawSome = true;
4737
- if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
4738
- return false;
4739
- }
4740
- }
4741
- return partial || sawSome;
4742
- }
4743
- const bodySegments = [[[], 0]];
4744
- let currentBody = bodySegments[0];
4745
- let nonGsParts = 0;
4746
- const nonGsPartsSums = [0];
4747
- for (const b of body) {
4748
- if (b === GLOBSTAR) {
4749
- nonGsPartsSums.push(nonGsParts);
4750
- currentBody = [[], 0];
4751
- bodySegments.push(currentBody);
4752
- } else {
4753
- currentBody[0].push(b);
4754
- nonGsParts++;
4755
- }
4756
- }
4757
- let i2 = bodySegments.length - 1;
4758
- const fileLength = file.length - fileTailMatch;
4759
- for (const b of bodySegments) {
4760
- b[1] = fileLength - (nonGsPartsSums[i2--] + b[0].length);
4761
- }
4762
- return !!__privateMethod(this, _Minimatch_instances, matchGlobStarBodySections_fn).call(this, file, bodySegments, fileIndex, 0, partial, 0, !!fileTailMatch);
4763
- };
4764
- matchGlobStarBodySections_fn = function(file, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) {
4765
- const bs = bodySegments[bodyIndex];
4766
- if (!bs) {
4767
- for (let i2 = fileIndex; i2 < file.length; i2++) {
4768
- sawTail = true;
4769
- const f = file[i2];
4770
- if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
4771
- return false;
4772
- }
4773
- }
4774
- return sawTail;
4775
- }
4776
- const [body, after] = bs;
4777
- while (fileIndex <= after) {
4778
- const m = __privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file.slice(0, fileIndex + body.length), body, partial, fileIndex, 0);
4779
- if (m && globStarDepth < this.maxGlobstarRecursion) {
4780
- const sub = __privateMethod(this, _Minimatch_instances, matchGlobStarBodySections_fn).call(this, file, bodySegments, fileIndex + body.length, bodyIndex + 1, partial, globStarDepth + 1, sawTail);
4781
- if (sub !== false)
4782
- return sub;
4783
- }
4784
- const f = file[fileIndex];
4785
- if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
4786
- return false;
4787
- }
4788
- fileIndex++;
4789
- }
4790
- return partial || null;
4791
- };
4792
- matchOne_fn = function(file, pattern, partial, fileIndex, patternIndex) {
4793
- let fi;
4794
- let pi;
4795
- let pl;
4796
- let fl;
4797
- for (fi = fileIndex, pi = patternIndex, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
4798
- this.debug("matchOne loop");
4799
- let p = pattern[pi];
4800
- let f = file[fi];
4801
- this.debug(pattern, p, f);
4802
- if (p === false || p === GLOBSTAR)
4803
- return false;
4804
- let hit;
4805
- if (typeof p === "string") {
4806
- hit = f === p;
4807
- this.debug("string match", p, f, hit);
4808
- } else {
4809
- hit = p.test(f);
4810
- this.debug("pattern match", p, f, hit);
4811
- }
4812
- if (!hit)
4813
- return false;
4814
- }
4815
- if (fi === fl && pi === pl) {
4816
- return true;
4817
- } else if (fi === fl) {
4818
- return partial;
4819
- } else if (pi === pl) {
4820
- return fi === fl - 1 && file[fi] === "";
4821
- } else {
4822
- throw new Error("wtf?");
4823
- }
4824
- };
4825
4589
  minimatch.AST = AST;
4826
4590
  minimatch.Minimatch = Minimatch;
4827
4591
  minimatch.escape = escape;
@@ -4895,7 +4659,7 @@ function proxyHostElement(elm, cstr) {
4895
4659
  const hostRef = getHostRef(elm);
4896
4660
  const members = Object.entries(cmpMeta.$members$);
4897
4661
  members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
4898
- var _a2, _b;
4662
+ var _a, _b;
4899
4663
  if (memberFlags & 31 /* Prop */) {
4900
4664
  const attributeName = metaAttributeName || memberName;
4901
4665
  const attrValue = elm.getAttribute(attributeName);
@@ -4903,7 +4667,7 @@ function proxyHostElement(elm, cstr) {
4903
4667
  let attrPropVal;
4904
4668
  const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(cstr.prototype, memberName) || {};
4905
4669
  if (attrValue != null) {
4906
- if ((_a2 = cmpMeta.$deserializers$) == null ? void 0 : _a2[memberName]) {
4670
+ if ((_a = cmpMeta.$deserializers$) == null ? void 0 : _a[memberName]) {
4907
4671
  for (const deserializer of cmpMeta.$deserializers$[memberName]) {
4908
4672
  const [[methodName]] = Object.entries(deserializer);
4909
4673
  attrPropVal = cstr.prototype[methodName](attrValue, memberName);
@@ -4936,8 +4700,8 @@ function proxyHostElement(elm, cstr) {
4936
4700
  Object.defineProperty(elm, memberName, getterSetterDescriptor);
4937
4701
  Object.defineProperty(elm, metaAttributeName, getterSetterDescriptor);
4938
4702
  hostRef.$fetchedCbList$.push(() => {
4939
- var _a3;
4940
- if (!((_a3 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _a3.has(memberName))) {
4703
+ var _a2;
4704
+ if (!((_a2 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _a2.has(memberName))) {
4941
4705
  setValue(
4942
4706
  elm,
4943
4707
  memberName,
@@ -4950,11 +4714,11 @@ function proxyHostElement(elm, cstr) {
4950
4714
  } else if (memberFlags & 64 /* Method */) {
4951
4715
  Object.defineProperty(elm, memberName, {
4952
4716
  value(...args) {
4953
- var _a3;
4717
+ var _a2;
4954
4718
  const ref = getHostRef(this);
4955
- return (_a3 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a3.then(() => {
4956
- var _a4;
4957
- return (_a4 = ref == null ? void 0 : ref.$lazyInstance$) == null ? void 0 : _a4[memberName](...args);
4719
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
4720
+ var _a3;
4721
+ return (_a3 = ref == null ? void 0 : ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
4958
4722
  }).catch((e) => {
4959
4723
  consoleError(e, this);
4960
4724
  });
@@ -4965,8 +4729,8 @@ function proxyHostElement(elm, cstr) {
4965
4729
  }
4966
4730
  }
4967
4731
  function componentOnReady() {
4968
- var _a2;
4969
- return (_a2 = getHostRef(this)) == null ? void 0 : _a2.$onReadyPromise$;
4732
+ var _a;
4733
+ return (_a = getHostRef(this)) == null ? void 0 : _a.$onReadyPromise$;
4970
4734
  }
4971
4735
  function forceUpdate2() {
4972
4736
  }
@@ -8679,7 +8443,7 @@ var NAMESPACE = (
8679
8443
  );
8680
8444
 
8681
8445
  /*
8682
- Stencil Hydrate Runner v4.43.5 | MIT Licensed | https://stenciljs.com
8446
+ Stencil Hydrate Runner v4.43.2 | MIT Licensed | https://stenciljs.com
8683
8447
  */
8684
8448
  var __create = Object.create;
8685
8449
  var __defProp = Object.defineProperty;
@@ -10010,11 +9774,11 @@ var fromCodePoint = (
10010
9774
  }
10011
9775
  );
10012
9776
  function replaceCodePoint(codePoint) {
10013
- var _a3;
9777
+ var _a2;
10014
9778
  if (codePoint >= 55296 && codePoint <= 57343 || codePoint > 1114111) {
10015
9779
  return 65533;
10016
9780
  }
10017
- return (_a3 = decodeMap.get(codePoint)) !== null && _a3 !== void 0 ? _a3 : codePoint;
9781
+ return (_a2 = decodeMap.get(codePoint)) !== null && _a2 !== void 0 ? _a2 : codePoint;
10018
9782
  }
10019
9783
 
10020
9784
  // node_modules/entities/lib/esm/decode.js
@@ -10211,9 +9975,9 @@ var EntityDecoder = class {
10211
9975
  * @returns The number of characters that were consumed.
10212
9976
  */
10213
9977
  emitNumericEntity(lastCp, expectedLength) {
10214
- var _a3;
9978
+ var _a2;
10215
9979
  if (this.consumed <= expectedLength) {
10216
- (_a3 = this.errors) === null || _a3 === void 0 ? void 0 : _a3.absenceOfDigitsInNumericCharacterReference(this.consumed);
9980
+ (_a2 = this.errors) === null || _a2 === void 0 ? void 0 : _a2.absenceOfDigitsInNumericCharacterReference(this.consumed);
10217
9981
  return 0;
10218
9982
  }
10219
9983
  if (lastCp === CharCodes.SEMI) {
@@ -10273,11 +10037,11 @@ var EntityDecoder = class {
10273
10037
  * @returns The number of characters consumed.
10274
10038
  */
10275
10039
  emitNotTerminatedNamedEntity() {
10276
- var _a3;
10040
+ var _a2;
10277
10041
  const { result, decodeTree } = this;
10278
10042
  const valueLength = (decodeTree[result] & BinTrieFlags.VALUE_LENGTH) >> 14;
10279
10043
  this.emitNamedEntityData(result, valueLength, this.consumed);
10280
- (_a3 = this.errors) === null || _a3 === void 0 ? void 0 : _a3.missingSemicolonAfterCharacterReference();
10044
+ (_a2 = this.errors) === null || _a2 === void 0 ? void 0 : _a2.missingSemicolonAfterCharacterReference();
10281
10045
  return this.consumed;
10282
10046
  }
10283
10047
  /**
@@ -10305,7 +10069,7 @@ var EntityDecoder = class {
10305
10069
  * @returns The number of characters consumed.
10306
10070
  */
10307
10071
  end() {
10308
- var _a3;
10072
+ var _a2;
10309
10073
  switch (this.state) {
10310
10074
  case EntityDecoderState.NamedEntity: {
10311
10075
  return this.result !== 0 && (this.decodeMode !== DecodingMode.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
@@ -10318,7 +10082,7 @@ var EntityDecoder = class {
10318
10082
  return this.emitNumericEntity(0, 3);
10319
10083
  }
10320
10084
  case EntityDecoderState.NumericStart: {
10321
- (_a3 = this.errors) === null || _a3 === void 0 ? void 0 : _a3.absenceOfDigitsInNumericCharacterReference(this.consumed);
10085
+ (_a2 = this.errors) === null || _a2 === void 0 ? void 0 : _a2.absenceOfDigitsInNumericCharacterReference(this.consumed);
10322
10086
  return 0;
10323
10087
  }
10324
10088
  case EntityDecoderState.EntityStart: {
@@ -10799,8 +10563,8 @@ var TAG_NAME_TO_ID = /* @__PURE__ */ new Map([
10799
10563
  [TAG_NAMES.XMP, TAG_ID.XMP]
10800
10564
  ]);
10801
10565
  function getTagID(tagName) {
10802
- var _a3;
10803
- return (_a3 = TAG_NAME_TO_ID.get(tagName)) !== null && _a3 !== void 0 ? _a3 : TAG_ID.UNKNOWN;
10566
+ var _a2;
10567
+ return (_a2 = TAG_NAME_TO_ID.get(tagName)) !== null && _a2 !== void 0 ? _a2 : TAG_ID.UNKNOWN;
10804
10568
  }
10805
10569
  var $ = TAG_ID;
10806
10570
  var SPECIAL_ELEMENTS = {
@@ -11067,8 +10831,8 @@ var Tokenizer = class {
11067
10831
  }
11068
10832
  //Errors
11069
10833
  _err(code, cpOffset = 0) {
11070
- var _a3, _b;
11071
- (_b = (_a3 = this.handler).onParseError) === null || _b === void 0 ? void 0 : _b.call(_a3, this.preprocessor.getError(code, cpOffset));
10834
+ var _a2, _b;
10835
+ (_b = (_a2 = this.handler).onParseError) === null || _b === void 0 ? void 0 : _b.call(_a2, this.preprocessor.getError(code, cpOffset));
11072
10836
  }
11073
10837
  // NOTE: `offset` may never run across line boundaries.
11074
10838
  getCurrentLocation(offset) {
@@ -11210,13 +10974,13 @@ var Tokenizer = class {
11210
10974
  this.currentLocation = this.getCurrentLocation(0);
11211
10975
  }
11212
10976
  _leaveAttrName() {
11213
- var _a3;
10977
+ var _a2;
11214
10978
  var _b;
11215
10979
  const token = this.currentToken;
11216
10980
  if (getTokenAttr(token, this.currentAttr.name) === null) {
11217
10981
  token.attrs.push(this.currentAttr);
11218
10982
  if (token.location && this.currentLocation) {
11219
- const attrLocations = (_a3 = (_b = token.location).attrs) !== null && _a3 !== void 0 ? _a3 : _b.attrs = /* @__PURE__ */ Object.create(null);
10983
+ const attrLocations = (_a2 = (_b = token.location).attrs) !== null && _a2 !== void 0 ? _a2 : _b.attrs = /* @__PURE__ */ Object.create(null);
11220
10984
  attrLocations[this.currentAttr.name] = this.currentLocation;
11221
10985
  this._leaveAttrValue();
11222
10986
  }
@@ -14564,10 +14328,10 @@ var Parser = class {
14564
14328
  //Errors
14565
14329
  /** @internal */
14566
14330
  _err(token, code, beforeToken) {
14567
- var _a3;
14331
+ var _a2;
14568
14332
  if (!this.onParseError)
14569
14333
  return;
14570
- const loc = (_a3 = token.location) !== null && _a3 !== void 0 ? _a3 : BASE_LOC;
14334
+ const loc = (_a2 = token.location) !== null && _a2 !== void 0 ? _a2 : BASE_LOC;
14571
14335
  const err2 = {
14572
14336
  code,
14573
14337
  startLine: loc.startLine,
@@ -14582,18 +14346,18 @@ var Parser = class {
14582
14346
  //Stack events
14583
14347
  /** @internal */
14584
14348
  onItemPush(node, tid, isTop) {
14585
- var _a3, _b;
14586
- (_b = (_a3 = this.treeAdapter).onItemPush) === null || _b === void 0 ? void 0 : _b.call(_a3, node);
14349
+ var _a2, _b;
14350
+ (_b = (_a2 = this.treeAdapter).onItemPush) === null || _b === void 0 ? void 0 : _b.call(_a2, node);
14587
14351
  if (isTop && this.openElements.stackTop > 0)
14588
14352
  this._setContextModes(node, tid);
14589
14353
  }
14590
14354
  /** @internal */
14591
14355
  onItemPop(node, isTop) {
14592
- var _a3, _b;
14356
+ var _a2, _b;
14593
14357
  if (this.options.sourceCodeLocationInfo) {
14594
14358
  this._setEndLocation(node, this.currentToken);
14595
14359
  }
14596
- (_b = (_a3 = this.treeAdapter).onItemPop) === null || _b === void 0 ? void 0 : _b.call(_a3, node, this.openElements.current);
14360
+ (_b = (_a2 = this.treeAdapter).onItemPop) === null || _b === void 0 ? void 0 : _b.call(_a2, node, this.openElements.current);
14597
14361
  if (isTop) {
14598
14362
  let current;
14599
14363
  let currentTagId;
@@ -16667,9 +16431,9 @@ function eofInBody(p, token) {
16667
16431
  }
16668
16432
  }
16669
16433
  function endTagInText(p, token) {
16670
- var _a3;
16434
+ var _a2;
16671
16435
  if (token.tagID === TAG_ID.SCRIPT) {
16672
- (_a3 = p.scriptHandler) === null || _a3 === void 0 ? void 0 : _a3.call(p, p.openElements.current);
16436
+ (_a2 = p.scriptHandler) === null || _a2 === void 0 ? void 0 : _a2.call(p, p.openElements.current);
16673
16437
  }
16674
16438
  p.openElements.pop();
16675
16439
  p.insertionMode = p.originalInsertionMode;
@@ -17331,7 +17095,7 @@ function startTagAfterBody(p, token) {
17331
17095
  }
17332
17096
  }
17333
17097
  function endTagAfterBody(p, token) {
17334
- var _a3;
17098
+ var _a2;
17335
17099
  if (token.tagID === TAG_ID.HTML) {
17336
17100
  if (!p.fragmentContext) {
17337
17101
  p.insertionMode = InsertionMode.AFTER_AFTER_BODY;
@@ -17339,7 +17103,7 @@ function endTagAfterBody(p, token) {
17339
17103
  if (p.options.sourceCodeLocationInfo && p.openElements.tagIDs[0] === TAG_ID.HTML) {
17340
17104
  p._setEndLocation(p.openElements.items[0], token);
17341
17105
  const bodyElement = p.openElements.items[1];
17342
- if (bodyElement && !((_a3 = p.treeAdapter.getNodeSourceCodeLocation(bodyElement)) === null || _a3 === void 0 ? void 0 : _a3.endTag)) {
17106
+ if (bodyElement && !((_a2 = p.treeAdapter.getNodeSourceCodeLocation(bodyElement)) === null || _a2 === void 0 ? void 0 : _a2.endTag)) {
17343
17107
  p._setEndLocation(bodyElement, token);
17344
17108
  }
17345
17109
  }
@@ -19203,7 +18967,7 @@ function serializeNodeToHtml(elm, serializationOptions = {}) {
19203
18967
  }
19204
18968
  var shadowRootTag = "mock:shadow-root";
19205
18969
  function* streamToHtml(node, opts, output) {
19206
- var _a3, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
18970
+ var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
19207
18971
  const isShadowRoot = node.nodeType === 11 /* DOCUMENT_FRAGMENT_NODE */;
19208
18972
  if (node.nodeType === 1 /* ELEMENT_NODE */ || isShadowRoot) {
19209
18973
  const tagName = isShadowRoot ? shadowRootTag : getTagName(node);
@@ -19212,7 +18976,7 @@ function* streamToHtml(node, opts, output) {
19212
18976
  }
19213
18977
  const ignoreTag = opts.excludeTags != null && opts.excludeTags.includes(tagName);
19214
18978
  if (ignoreTag === false) {
19215
- const isWithinWhitespaceSensitiveNode = opts.newLines || ((_a3 = opts.indentSpaces) != null ? _a3 : 0) > 0 ? isWithinWhitespaceSensitive(node) : false;
18979
+ const isWithinWhitespaceSensitiveNode = opts.newLines || ((_a2 = opts.indentSpaces) != null ? _a2 : 0) > 0 ? isWithinWhitespaceSensitive(node) : false;
19216
18980
  if (opts.newLines && !isWithinWhitespaceSensitiveNode) {
19217
18981
  yield "\n";
19218
18982
  output.currentLineWidth = 0;
@@ -19731,7 +19495,9 @@ var MockNode2 = class {
19731
19495
  const firstChild = this.firstChild;
19732
19496
  items.forEach((item) => {
19733
19497
  const isNode = typeof item === "object" && item !== null && "nodeType" in item;
19734
- this.insertBefore(isNode ? item : this.ownerDocument.createTextNode(String(item)), firstChild);
19498
+ if (firstChild) {
19499
+ this.insertBefore(isNode ? item : this.ownerDocument.createTextNode(String(item)), firstChild);
19500
+ }
19735
19501
  });
19736
19502
  }
19737
19503
  cloneNode(deep) {
@@ -19780,8 +19546,8 @@ var MockNode2 = class {
19780
19546
  return null;
19781
19547
  }
19782
19548
  get nodeValue() {
19783
- var _a3;
19784
- return (_a3 = this._nodeValue) != null ? _a3 : "";
19549
+ var _a2;
19550
+ return (_a2 = this._nodeValue) != null ? _a2 : "";
19785
19551
  }
19786
19552
  set nodeValue(value) {
19787
19553
  this._nodeValue = value;
@@ -19841,8 +19607,8 @@ var MockNode2 = class {
19841
19607
  return null;
19842
19608
  }
19843
19609
  get textContent() {
19844
- var _a3;
19845
- return (_a3 = this._nodeValue) != null ? _a3 : "";
19610
+ var _a2;
19611
+ return (_a2 = this._nodeValue) != null ? _a2 : "";
19846
19612
  }
19847
19613
  set textContent(value) {
19848
19614
  this._nodeValue = String(value);
@@ -19901,9 +19667,9 @@ var MockElement = class extends MockNode2 {
19901
19667
  addEventListener(this, type, handler);
19902
19668
  }
19903
19669
  attachShadow(_opts) {
19904
- var _a3;
19670
+ var _a2;
19905
19671
  const shadowRoot = this.ownerDocument.createDocumentFragment();
19906
- shadowRoot.delegatesFocus = (_a3 = _opts.delegatesFocus) != null ? _a3 : false;
19672
+ shadowRoot.delegatesFocus = (_a2 = _opts.delegatesFocus) != null ? _a2 : false;
19907
19673
  this.shadowRoot = shadowRoot;
19908
19674
  return shadowRoot;
19909
19675
  }
@@ -20079,8 +19845,8 @@ var MockElement = class extends MockNode2 {
20079
19845
  });
20080
19846
  }
20081
19847
  set innerHTML(html) {
20082
- var _a3;
20083
- if (NON_ESCAPABLE_CONTENT.has((_a3 = this.nodeName) != null ? _a3 : "") === true) {
19848
+ var _a2;
19849
+ if (NON_ESCAPABLE_CONTENT.has((_a2 = this.nodeName) != null ? _a2 : "") === true) {
20084
19850
  setTextContent(this, html);
20085
19851
  } else {
20086
19852
  for (let i = this.childNodes.length - 1; i >= 0; i--) {
@@ -20323,8 +20089,8 @@ var MockElement = class extends MockNode2 {
20323
20089
  this.setAttributeNS(null, "tabindex", value);
20324
20090
  }
20325
20091
  get tagName() {
20326
- var _a3;
20327
- return (_a3 = this.nodeName) != null ? _a3 : "";
20092
+ var _a2;
20093
+ return (_a2 = this.nodeName) != null ? _a2 : "";
20328
20094
  }
20329
20095
  set tagName(value) {
20330
20096
  this.nodeName = value;
@@ -20546,11 +20312,11 @@ function getElementsByClassName(elm, classNames, foundElms) {
20546
20312
  }
20547
20313
  }
20548
20314
  function getElementsByTagName(elm, tagName, foundElms) {
20549
- var _a3;
20315
+ var _a2;
20550
20316
  const children = elm.children;
20551
20317
  for (let i = 0, ii = children.length; i < ii; i++) {
20552
20318
  const childElm = children[i];
20553
- if (tagName === "*" || ((_a3 = childElm.nodeName) != null ? _a3 : "").toLowerCase() === tagName) {
20319
+ if (tagName === "*" || ((_a2 = childElm.nodeName) != null ? _a2 : "").toLowerCase() === tagName) {
20554
20320
  foundElms.push(childElm);
20555
20321
  }
20556
20322
  getElementsByTagName(childElm, tagName, foundElms);
@@ -20587,8 +20353,8 @@ var MockHTMLElement = class extends MockElement {
20587
20353
  super(ownerDocument, typeof nodeName === "string" ? nodeName.toUpperCase() : null);
20588
20354
  }
20589
20355
  get tagName() {
20590
- var _a3;
20591
- return (_a3 = this.nodeName) != null ? _a3 : "";
20356
+ var _a2;
20357
+ return (_a2 = this.nodeName) != null ? _a2 : "";
20592
20358
  }
20593
20359
  set tagName(value) {
20594
20360
  this.nodeName = value;
@@ -21046,10 +20812,10 @@ var MockLabelElement = class extends MockHTMLElement {
21046
20812
  this.setAttributeNS(null, "for", value);
21047
20813
  }
21048
20814
  get control() {
21049
- var _a3, _b;
20815
+ var _a2, _b;
21050
20816
  const forAttr = this.htmlFor;
21051
20817
  if (forAttr) {
21052
- return (_b = (_a3 = this.ownerDocument) == null ? void 0 : _a3.getElementById(forAttr)) != null ? _b : null;
20818
+ return (_b = (_a2 = this.ownerDocument) == null ? void 0 : _a2.getElementById(forAttr)) != null ? _b : null;
21053
20819
  }
21054
20820
  const labelableSelector = 'button, input:not([type="hidden"]), meter, output, progress, select, textarea';
21055
20821
  return this.querySelector(labelableSelector);
@@ -23557,34 +23323,18 @@ var RemoteValue = class _RemoteValue {
23557
23323
  };
23558
23324
 
23559
23325
  // src/utils/serialize.ts
23560
- function encodeBase64Unicode(str) {
23561
- const utf8Bytes = new TextEncoder().encode(str);
23562
- let binary = "";
23563
- for (let i = 0; i < utf8Bytes.length; i++) {
23564
- binary += String.fromCharCode(utf8Bytes[i]);
23565
- }
23566
- return btoa(binary);
23567
- }
23568
- function decodeBase64Unicode(base64) {
23569
- const binary = atob(base64);
23570
- const bytes = new Uint8Array(binary.length);
23571
- for (let i = 0; i < binary.length; i++) {
23572
- bytes[i] = binary.charCodeAt(i);
23573
- }
23574
- return new TextDecoder().decode(bytes);
23575
- }
23576
23326
  function serializeProperty(value) {
23577
23327
  if (["string", "boolean", "undefined"].includes(typeof value) || typeof value === "number" && value !== Infinity && value !== -Infinity && !isNaN(value)) {
23578
23328
  return value;
23579
23329
  }
23580
23330
  const arg = LocalValue.getArgument(value);
23581
- return SERIALIZED_PREFIX + encodeBase64Unicode(JSON.stringify(arg));
23331
+ return SERIALIZED_PREFIX + btoa(JSON.stringify(arg));
23582
23332
  }
23583
23333
  function deserializeProperty(value) {
23584
23334
  if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
23585
23335
  return value;
23586
23336
  }
23587
- return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(SERIALIZED_PREFIX.length))));
23337
+ return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
23588
23338
  }
23589
23339
  var CAPTURE_EVENT_SUFFIX = "Capture";
23590
23340
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
@@ -23778,35 +23528,8 @@ var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
23778
23528
  };
23779
23529
 
23780
23530
  // node_modules/minimatch/dist/esm/ast.js
23781
- var _a2;
23782
23531
  var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
23783
23532
  var isExtglobType = (c) => types.has(c);
23784
- var isExtglobAST = (c) => isExtglobType(c.type);
23785
- var adoptionMap = /* @__PURE__ */ new Map([
23786
- ["!", ["@"]],
23787
- ["?", ["?", "@"]],
23788
- ["@", ["@"]],
23789
- ["*", ["*", "+", "?", "@"]],
23790
- ["+", ["+", "@"]]
23791
- ]);
23792
- var adoptionWithSpaceMap = /* @__PURE__ */ new Map([
23793
- ["!", ["?"]],
23794
- ["@", ["?"]],
23795
- ["+", ["?", "*"]]
23796
- ]);
23797
- var adoptionAnyMap = /* @__PURE__ */ new Map([
23798
- ["!", ["?", "@"]],
23799
- ["?", ["?", "@"]],
23800
- ["@", ["?", "@"]],
23801
- ["*", ["*", "+", "?", "@"]],
23802
- ["+", ["+", "@", "?", "*"]]
23803
- ]);
23804
- var usurpMap = /* @__PURE__ */ new Map([
23805
- ["!", /* @__PURE__ */ new Map([["!", "@"]])],
23806
- ["?", /* @__PURE__ */ new Map([["*", "*"], ["+", "*"]])],
23807
- ["@", /* @__PURE__ */ new Map([["!", "!"], ["?", "?"], ["@", "@"], ["*", "*"], ["+", "+"]])],
23808
- ["+", /* @__PURE__ */ new Map([["?", "*"], ["*", "*"]])]
23809
- ]);
23810
23533
  var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
23811
23534
  var startNoDot = "(?!\\.)";
23812
23535
  var addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
@@ -23816,8 +23539,8 @@ var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
23816
23539
  var qmark = "[^/]";
23817
23540
  var star = qmark + "*?";
23818
23541
  var starNoEmpty = qmark + "+?";
23819
- var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, canAdoptWithSpace_fn, canAdopt_fn, canAdoptType_fn, adoptWithSpace_fn, adopt_fn, canUsurpType_fn, canUsurp_fn, usurp_fn, flatten_fn, partsToRegExp_fn, parseGlob_fn;
23820
- var AST = class {
23542
+ var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn;
23543
+ var _AST = class _AST {
23821
23544
  constructor(type, parent, options = {}) {
23822
23545
  __privateAdd(this, _AST_instances);
23823
23546
  __publicField(this, "type");
@@ -23870,44 +23593,44 @@ var AST = class {
23870
23593
  for (const p of parts) {
23871
23594
  if (p === "")
23872
23595
  continue;
23873
- if (typeof p !== "string" && !(p instanceof _a2 && __privateGet(p, _parent) === this)) {
23596
+ if (typeof p !== "string" && !(p instanceof _AST && __privateGet(p, _parent) === this)) {
23874
23597
  throw new Error("invalid part: " + p);
23875
23598
  }
23876
23599
  __privateGet(this, _parts).push(p);
23877
23600
  }
23878
23601
  }
23879
23602
  toJSON() {
23880
- var _a3;
23603
+ var _a2;
23881
23604
  const ret = this.type === null ? __privateGet(this, _parts).slice().map((p) => typeof p === "string" ? p : p.toJSON()) : [this.type, ...__privateGet(this, _parts).map((p) => p.toJSON())];
23882
23605
  if (this.isStart() && !this.type)
23883
23606
  ret.unshift([]);
23884
- if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a3 = __privateGet(this, _parent)) == null ? void 0 : _a3.type) === "!")) {
23607
+ if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!")) {
23885
23608
  ret.push({});
23886
23609
  }
23887
23610
  return ret;
23888
23611
  }
23889
23612
  isStart() {
23890
- var _a3;
23613
+ var _a2;
23891
23614
  if (__privateGet(this, _root) === this)
23892
23615
  return true;
23893
- if (!((_a3 = __privateGet(this, _parent)) == null ? void 0 : _a3.isStart()))
23616
+ if (!((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.isStart()))
23894
23617
  return false;
23895
23618
  if (__privateGet(this, _parentIndex) === 0)
23896
23619
  return true;
23897
23620
  const p = __privateGet(this, _parent);
23898
23621
  for (let i = 0; i < __privateGet(this, _parentIndex); i++) {
23899
23622
  const pp = __privateGet(p, _parts)[i];
23900
- if (!(pp instanceof _a2 && pp.type === "!")) {
23623
+ if (!(pp instanceof _AST && pp.type === "!")) {
23901
23624
  return false;
23902
23625
  }
23903
23626
  }
23904
23627
  return true;
23905
23628
  }
23906
23629
  isEnd() {
23907
- var _a3, _b, _c;
23630
+ var _a2, _b, _c;
23908
23631
  if (__privateGet(this, _root) === this)
23909
23632
  return true;
23910
- if (((_a3 = __privateGet(this, _parent)) == null ? void 0 : _a3.type) === "!")
23633
+ if (((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!")
23911
23634
  return true;
23912
23635
  if (!((_b = __privateGet(this, _parent)) == null ? void 0 : _b.isEnd()))
23913
23636
  return false;
@@ -23923,16 +23646,16 @@ var AST = class {
23923
23646
  this.push(part.clone(this));
23924
23647
  }
23925
23648
  clone(parent) {
23926
- const c = new _a2(this.type, parent);
23649
+ const c = new _AST(this.type, parent);
23927
23650
  for (const p of __privateGet(this, _parts)) {
23928
23651
  c.copyIn(p);
23929
23652
  }
23930
23653
  return c;
23931
23654
  }
23932
23655
  static fromGlob(pattern, options = {}) {
23933
- var _a3;
23934
- const ast = new _a2(null, void 0, options);
23935
- __privateMethod(_a3 = _a2, _AST_static, parseAST_fn).call(_a3, pattern, ast, 0, options, 0);
23656
+ var _a2;
23657
+ const ast = new _AST(null, void 0, options);
23658
+ __privateMethod(_a2 = _AST, _AST_static, parseAST_fn).call(_a2, pattern, ast, 0, options);
23936
23659
  return ast;
23937
23660
  }
23938
23661
  // returns the regular expression if there's magic, or the unescaped
@@ -24025,17 +23748,15 @@ var AST = class {
24025
23748
  // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
24026
23749
  // or start or whatever) and prepend ^ or / at the Regexp construction.
24027
23750
  toRegExpSource(allowDot) {
24028
- var _a3;
23751
+ var _a2;
24029
23752
  const dot = allowDot != null ? allowDot : !!__privateGet(this, _options).dot;
24030
- if (__privateGet(this, _root) === this) {
24031
- __privateMethod(this, _AST_instances, flatten_fn).call(this);
23753
+ if (__privateGet(this, _root) === this)
24032
23754
  __privateMethod(this, _AST_instances, fillNegs_fn).call(this);
24033
- }
24034
- if (!isExtglobAST(this)) {
23755
+ if (!this.type) {
24035
23756
  const noEmpty = this.isStart() && this.isEnd();
24036
23757
  const src = __privateGet(this, _parts).map((p) => {
24037
- var _a4;
24038
- const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a4 = _a2, _AST_static, parseGlob_fn).call(_a4, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
23758
+ var _a3;
23759
+ const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a3 = _AST, _AST_static, parseGlob_fn).call(_a3, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
24039
23760
  __privateSet(this, _hasMagic, __privateGet(this, _hasMagic) || hasMagic);
24040
23761
  __privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
24041
23762
  return re;
@@ -24058,7 +23779,7 @@ var AST = class {
24058
23779
  }
24059
23780
  }
24060
23781
  let end = "";
24061
- if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a3 = __privateGet(this, _parent)) == null ? void 0 : _a3.type) === "!") {
23782
+ if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!") {
24062
23783
  end = "(?:$|\\/)";
24063
23784
  }
24064
23785
  const final2 = start2 + src + end;
@@ -24074,10 +23795,9 @@ var AST = class {
24074
23795
  let body = __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, dot);
24075
23796
  if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
24076
23797
  const s = this.toString();
24077
- const me = this;
24078
- __privateSet(me, _parts, [s]);
24079
- me.type = null;
24080
- __privateSet(me, _hasMagic, void 0);
23798
+ __privateSet(this, _parts, [s]);
23799
+ this.type = null;
23800
+ __privateSet(this, _hasMagic, void 0);
24081
23801
  return [s, unescape(this.toString()), false, false];
24082
23802
  }
24083
23803
  let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ? "" : __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, true);
@@ -24146,9 +23866,8 @@ fillNegs_fn = function() {
24146
23866
  return this;
24147
23867
  };
24148
23868
  _AST_static = new WeakSet();
24149
- parseAST_fn = function(str, ast, pos, opt, extDepth) {
24150
- var _a3, _b, _c, _d, _e;
24151
- const maxDepth = (_a3 = opt.maxExtglobRecursion) != null ? _a3 : 2;
23869
+ parseAST_fn = function(str, ast, pos, opt) {
23870
+ var _a2, _b;
24152
23871
  let escaping = false;
24153
23872
  let inBrace = false;
24154
23873
  let braceStart = -1;
@@ -24180,12 +23899,11 @@ parseAST_fn = function(str, ast, pos, opt, extDepth) {
24180
23899
  acc2 += c;
24181
23900
  continue;
24182
23901
  }
24183
- const doRecurse = !opt.noext && isExtglobType(c) && str.charAt(i2) === "(" && extDepth <= maxDepth;
24184
- if (doRecurse) {
23902
+ if (!opt.noext && isExtglobType(c) && str.charAt(i2) === "(") {
24185
23903
  ast.push(acc2);
24186
23904
  acc2 = "";
24187
- const ext2 = new _a2(c, ast);
24188
- i2 = __privateMethod(_b = _a2, _AST_static, parseAST_fn).call(_b, str, ext2, i2, opt, extDepth + 1);
23905
+ const ext2 = new _AST(c, ast);
23906
+ i2 = __privateMethod(_a2 = _AST, _AST_static, parseAST_fn).call(_a2, str, ext2, i2, opt);
24189
23907
  ast.push(ext2);
24190
23908
  continue;
24191
23909
  }
@@ -24195,7 +23913,7 @@ parseAST_fn = function(str, ast, pos, opt, extDepth) {
24195
23913
  return i2;
24196
23914
  }
24197
23915
  let i = pos + 1;
24198
- let part = new _a2(null, ast);
23916
+ let part = new _AST(null, ast);
24199
23917
  const parts = [];
24200
23918
  let acc = "";
24201
23919
  while (i < str.length) {
@@ -24222,22 +23940,19 @@ parseAST_fn = function(str, ast, pos, opt, extDepth) {
24222
23940
  acc += c;
24223
23941
  continue;
24224
23942
  }
24225
- const doRecurse = isExtglobType(c) && str.charAt(i) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
24226
- (extDepth <= maxDepth || ast && __privateMethod(_c = ast, _AST_instances, canAdoptType_fn).call(_c, c));
24227
- if (doRecurse) {
24228
- const depthAdd = ast && __privateMethod(_d = ast, _AST_instances, canAdoptType_fn).call(_d, c) ? 0 : 1;
23943
+ if (isExtglobType(c) && str.charAt(i) === "(") {
24229
23944
  part.push(acc);
24230
23945
  acc = "";
24231
- const ext2 = new _a2(c, part);
23946
+ const ext2 = new _AST(c, part);
24232
23947
  part.push(ext2);
24233
- i = __privateMethod(_e = _a2, _AST_static, parseAST_fn).call(_e, str, ext2, i, opt, extDepth + depthAdd);
23948
+ i = __privateMethod(_b = _AST, _AST_static, parseAST_fn).call(_b, str, ext2, i, opt);
24234
23949
  continue;
24235
23950
  }
24236
23951
  if (c === "|") {
24237
23952
  part.push(acc);
24238
23953
  acc = "";
24239
23954
  parts.push(part);
24240
- part = new _a2(null, ast);
23955
+ part = new _AST(null, ast);
24241
23956
  continue;
24242
23957
  }
24243
23958
  if (c === ")") {
@@ -24256,100 +23971,6 @@ parseAST_fn = function(str, ast, pos, opt, extDepth) {
24256
23971
  __privateSet(ast, _parts, [str.substring(pos - 1)]);
24257
23972
  return i;
24258
23973
  };
24259
- canAdoptWithSpace_fn = function(child) {
24260
- return __privateMethod(this, _AST_instances, canAdopt_fn).call(this, child, adoptionWithSpaceMap);
24261
- };
24262
- canAdopt_fn = function(child, map2 = adoptionMap) {
24263
- if (!child || typeof child !== "object" || child.type !== null || __privateGet(child, _parts).length !== 1 || this.type === null) {
24264
- return false;
24265
- }
24266
- const gc = __privateGet(child, _parts)[0];
24267
- if (!gc || typeof gc !== "object" || gc.type === null) {
24268
- return false;
24269
- }
24270
- return __privateMethod(this, _AST_instances, canAdoptType_fn).call(this, gc.type, map2);
24271
- };
24272
- canAdoptType_fn = function(c, map2 = adoptionAnyMap) {
24273
- var _a3;
24274
- return !!((_a3 = map2.get(this.type)) == null ? void 0 : _a3.includes(c));
24275
- };
24276
- adoptWithSpace_fn = function(child, index) {
24277
- const gc = __privateGet(child, _parts)[0];
24278
- const blank = new _a2(null, gc, this.options);
24279
- __privateGet(blank, _parts).push("");
24280
- gc.push(blank);
24281
- __privateMethod(this, _AST_instances, adopt_fn).call(this, child, index);
24282
- };
24283
- adopt_fn = function(child, index) {
24284
- const gc = __privateGet(child, _parts)[0];
24285
- __privateGet(this, _parts).splice(index, 1, ...__privateGet(gc, _parts));
24286
- for (const p of __privateGet(gc, _parts)) {
24287
- if (typeof p === "object")
24288
- __privateSet(p, _parent, this);
24289
- }
24290
- __privateSet(this, _toString, void 0);
24291
- };
24292
- canUsurpType_fn = function(c) {
24293
- const m = usurpMap.get(this.type);
24294
- return !!(m == null ? void 0 : m.has(c));
24295
- };
24296
- canUsurp_fn = function(child) {
24297
- if (!child || typeof child !== "object" || child.type !== null || __privateGet(child, _parts).length !== 1 || this.type === null || __privateGet(this, _parts).length !== 1) {
24298
- return false;
24299
- }
24300
- const gc = __privateGet(child, _parts)[0];
24301
- if (!gc || typeof gc !== "object" || gc.type === null) {
24302
- return false;
24303
- }
24304
- return __privateMethod(this, _AST_instances, canUsurpType_fn).call(this, gc.type);
24305
- };
24306
- usurp_fn = function(child) {
24307
- const m = usurpMap.get(this.type);
24308
- const gc = __privateGet(child, _parts)[0];
24309
- const nt = m == null ? void 0 : m.get(gc.type);
24310
- if (!nt)
24311
- return false;
24312
- __privateSet(this, _parts, __privateGet(gc, _parts));
24313
- for (const p of __privateGet(this, _parts)) {
24314
- if (typeof p === "object")
24315
- __privateSet(p, _parent, this);
24316
- }
24317
- this.type = nt;
24318
- __privateSet(this, _toString, void 0);
24319
- __privateSet(this, _emptyExt, false);
24320
- };
24321
- flatten_fn = function() {
24322
- var _a3, _b;
24323
- if (!isExtglobAST(this)) {
24324
- for (const p of __privateGet(this, _parts)) {
24325
- if (typeof p === "object")
24326
- __privateMethod(_a3 = p, _AST_instances, flatten_fn).call(_a3);
24327
- }
24328
- } else {
24329
- let iterations = 0;
24330
- let done = false;
24331
- do {
24332
- done = true;
24333
- for (let i = 0; i < __privateGet(this, _parts).length; i++) {
24334
- const c = __privateGet(this, _parts)[i];
24335
- if (typeof c === "object") {
24336
- __privateMethod(_b = c, _AST_instances, flatten_fn).call(_b);
24337
- if (__privateMethod(this, _AST_instances, canAdopt_fn).call(this, c)) {
24338
- done = false;
24339
- __privateMethod(this, _AST_instances, adopt_fn).call(this, c, i);
24340
- } else if (__privateMethod(this, _AST_instances, canAdoptWithSpace_fn).call(this, c)) {
24341
- done = false;
24342
- __privateMethod(this, _AST_instances, adoptWithSpace_fn).call(this, c, i);
24343
- } else if (__privateMethod(this, _AST_instances, canUsurp_fn).call(this, c)) {
24344
- done = false;
24345
- __privateMethod(this, _AST_instances, usurp_fn).call(this, c);
24346
- }
24347
- }
24348
- }
24349
- } while (!done && ++iterations < 10);
24350
- }
24351
- __privateSet(this, _toString, void 0);
24352
- };
24353
23974
  partsToRegExp_fn = function(dot) {
24354
23975
  return __privateGet(this, _parts).map((p) => {
24355
23976
  if (typeof p === "string") {
@@ -24364,13 +23985,11 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
24364
23985
  let escaping = false;
24365
23986
  let re = "";
24366
23987
  let uflag = false;
24367
- let inStar = false;
24368
23988
  for (let i = 0; i < glob.length; i++) {
24369
23989
  const c = glob.charAt(i);
24370
23990
  if (escaping) {
24371
23991
  escaping = false;
24372
23992
  re += (reSpecials.has(c) ? "\\" : "") + c;
24373
- inStar = false;
24374
23993
  continue;
24375
23994
  }
24376
23995
  if (c === "\\") {
@@ -24388,19 +24007,16 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
24388
24007
  uflag = uflag || needUflag;
24389
24008
  i += consumed - 1;
24390
24009
  hasMagic = hasMagic || magic;
24391
- inStar = false;
24392
24010
  continue;
24393
24011
  }
24394
24012
  }
24395
24013
  if (c === "*") {
24396
- if (inStar)
24397
- continue;
24398
- inStar = true;
24399
- re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star;
24014
+ if (noEmpty && glob === "*")
24015
+ re += starNoEmpty;
24016
+ else
24017
+ re += star;
24400
24018
  hasMagic = true;
24401
24019
  continue;
24402
- } else {
24403
- inStar = false;
24404
24020
  }
24405
24021
  if (c === "?") {
24406
24022
  re += qmark;
@@ -24411,8 +24027,8 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
24411
24027
  }
24412
24028
  return [re, unescape(glob), !!hasMagic, uflag];
24413
24029
  };
24414
- __privateAdd(AST, _AST_static);
24415
- _a2 = AST;
24030
+ __privateAdd(_AST, _AST_static);
24031
+ var AST = _AST;
24416
24032
 
24417
24033
  // node_modules/minimatch/dist/esm/escape.js
24418
24034
  var escape = (s, { windowsPathsNoEscape = false } = {}) => {
@@ -24551,33 +24167,28 @@ var match = (list, pattern, options = {}) => {
24551
24167
  minimatch.match = match;
24552
24168
  var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
24553
24169
  var regExpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
24554
- var _Minimatch_instances, matchGlobstar_fn, matchGlobStarBodySections_fn, matchOne_fn;
24555
24170
  var Minimatch = class {
24171
+ options;
24172
+ set;
24173
+ pattern;
24174
+ windowsPathsNoEscape;
24175
+ nonegate;
24176
+ negate;
24177
+ comment;
24178
+ empty;
24179
+ preserveMultipleSlashes;
24180
+ partial;
24181
+ globSet;
24182
+ globParts;
24183
+ nocase;
24184
+ isWindows;
24185
+ platform;
24186
+ windowsNoMagicRoot;
24187
+ regexp;
24556
24188
  constructor(pattern, options = {}) {
24557
- __privateAdd(this, _Minimatch_instances);
24558
- __publicField(this, "options");
24559
- __publicField(this, "set");
24560
- __publicField(this, "pattern");
24561
- __publicField(this, "windowsPathsNoEscape");
24562
- __publicField(this, "nonegate");
24563
- __publicField(this, "negate");
24564
- __publicField(this, "comment");
24565
- __publicField(this, "empty");
24566
- __publicField(this, "preserveMultipleSlashes");
24567
- __publicField(this, "partial");
24568
- __publicField(this, "globSet");
24569
- __publicField(this, "globParts");
24570
- __publicField(this, "nocase");
24571
- __publicField(this, "isWindows");
24572
- __publicField(this, "platform");
24573
- __publicField(this, "windowsNoMagicRoot");
24574
- __publicField(this, "maxGlobstarRecursion");
24575
- __publicField(this, "regexp");
24576
- var _a3;
24577
24189
  assertValidPattern(pattern);
24578
24190
  options = options || {};
24579
24191
  this.options = options;
24580
- this.maxGlobstarRecursion = (_a3 = options.maxGlobstarRecursion) != null ? _a3 : 200;
24581
24192
  this.pattern = pattern;
24582
24193
  this.platform = options.platform || defaultPlatform;
24583
24194
  this.isWindows = this.platform === "win32";
@@ -24845,11 +24456,10 @@ var Minimatch = class {
24845
24456
  for (let i = 0; i < globParts.length - 1; i++) {
24846
24457
  for (let j = i + 1; j < globParts.length; j++) {
24847
24458
  const matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);
24848
- if (matched) {
24849
- globParts[i] = [];
24850
- globParts[j] = matched;
24851
- break;
24852
- }
24459
+ if (!matched)
24460
+ continue;
24461
+ globParts[i] = matched;
24462
+ globParts[j] = [];
24853
24463
  }
24854
24464
  }
24855
24465
  return globParts.filter((gs) => gs.length);
@@ -24910,8 +24520,7 @@ var Minimatch = class {
24910
24520
  // out of pattern, then that's fine, as long as all
24911
24521
  // the parts match.
24912
24522
  matchOne(file, pattern, partial = false) {
24913
- let fileStartIndex = 0;
24914
- let patternStartIndex = 0;
24523
+ const options = this.options;
24915
24524
  if (this.isWindows) {
24916
24525
  const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
24917
24526
  const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
@@ -24920,14 +24529,14 @@ var Minimatch = class {
24920
24529
  const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
24921
24530
  const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
24922
24531
  if (typeof fdi === "number" && typeof pdi === "number") {
24923
- const [fd, pd] = [
24924
- file[fdi],
24925
- pattern[pdi]
24926
- ];
24532
+ const [fd, pd] = [file[fdi], pattern[pdi]];
24927
24533
  if (fd.toLowerCase() === pd.toLowerCase()) {
24928
24534
  pattern[pdi] = fd;
24929
- patternStartIndex = pdi;
24930
- fileStartIndex = fdi;
24535
+ if (pdi > fdi) {
24536
+ pattern = pattern.slice(pdi);
24537
+ } else if (fdi > pdi) {
24538
+ file = file.slice(fdi);
24539
+ }
24931
24540
  }
24932
24541
  }
24933
24542
  }
@@ -24935,10 +24544,71 @@ var Minimatch = class {
24935
24544
  if (optimizationLevel >= 2) {
24936
24545
  file = this.levelTwoFileOptimize(file);
24937
24546
  }
24938
- if (pattern.includes(GLOBSTAR)) {
24939
- return __privateMethod(this, _Minimatch_instances, matchGlobstar_fn).call(this, file, pattern, partial, fileStartIndex, patternStartIndex);
24547
+ this.debug("matchOne", this, { file, pattern });
24548
+ this.debug("matchOne", file.length, pattern.length);
24549
+ for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
24550
+ this.debug("matchOne loop");
24551
+ var p = pattern[pi];
24552
+ var f = file[fi];
24553
+ this.debug(pattern, p, f);
24554
+ if (p === false) {
24555
+ return false;
24556
+ }
24557
+ if (p === GLOBSTAR) {
24558
+ this.debug("GLOBSTAR", [pattern, p, f]);
24559
+ var fr = fi;
24560
+ var pr = pi + 1;
24561
+ if (pr === pl) {
24562
+ this.debug("** at the end");
24563
+ for (; fi < fl; fi++) {
24564
+ if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
24565
+ return false;
24566
+ }
24567
+ return true;
24568
+ }
24569
+ while (fr < fl) {
24570
+ var swallowee = file[fr];
24571
+ this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
24572
+ if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
24573
+ this.debug("globstar found match!", fr, fl, swallowee);
24574
+ return true;
24575
+ } else {
24576
+ if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
24577
+ this.debug("dot detected!", file, fr, pattern, pr);
24578
+ break;
24579
+ }
24580
+ this.debug("globstar swallow a segment, and continue");
24581
+ fr++;
24582
+ }
24583
+ }
24584
+ if (partial) {
24585
+ this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
24586
+ if (fr === fl) {
24587
+ return true;
24588
+ }
24589
+ }
24590
+ return false;
24591
+ }
24592
+ let hit;
24593
+ if (typeof p === "string") {
24594
+ hit = f === p;
24595
+ this.debug("string match", p, f, hit);
24596
+ } else {
24597
+ hit = p.test(f);
24598
+ this.debug("pattern match", p, f, hit);
24599
+ }
24600
+ if (!hit)
24601
+ return false;
24602
+ }
24603
+ if (fi === fl && pi === pl) {
24604
+ return true;
24605
+ } else if (fi === fl) {
24606
+ return partial;
24607
+ } else if (pi === pl) {
24608
+ return fi === fl - 1 && file[fi] === "";
24609
+ } else {
24610
+ throw new Error("wtf?");
24940
24611
  }
24941
- return __privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, pattern, partial, fileStartIndex, patternStartIndex);
24942
24612
  }
24943
24613
  braceExpand() {
24944
24614
  return braceExpand(this.pattern, this.options);
@@ -25077,135 +24747,6 @@ var Minimatch = class {
25077
24747
  return minimatch.defaults(def).Minimatch;
25078
24748
  }
25079
24749
  };
25080
- _Minimatch_instances = new WeakSet();
25081
- matchGlobstar_fn = function(file, pattern, partial, fileIndex, patternIndex) {
25082
- const firstgs = pattern.indexOf(GLOBSTAR, patternIndex);
25083
- const lastgs = pattern.lastIndexOf(GLOBSTAR);
25084
- const [head, body, tail] = partial ? [
25085
- pattern.slice(patternIndex, firstgs),
25086
- pattern.slice(firstgs + 1),
25087
- []
25088
- ] : [
25089
- pattern.slice(patternIndex, firstgs),
25090
- pattern.slice(firstgs + 1, lastgs),
25091
- pattern.slice(lastgs + 1)
25092
- ];
25093
- if (head.length) {
25094
- const fileHead = file.slice(fileIndex, fileIndex + head.length);
25095
- if (!__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, fileHead, head, partial, 0, 0))
25096
- return false;
25097
- fileIndex += head.length;
25098
- }
25099
- let fileTailMatch = 0;
25100
- if (tail.length) {
25101
- if (tail.length + fileIndex > file.length)
25102
- return false;
25103
- let tailStart = file.length - tail.length;
25104
- if (__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, tail, partial, tailStart, 0)) {
25105
- fileTailMatch = tail.length;
25106
- } else {
25107
- if (file[file.length - 1] !== "" || fileIndex + tail.length === file.length) {
25108
- return false;
25109
- }
25110
- tailStart--;
25111
- if (!__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, tail, partial, tailStart, 0))
25112
- return false;
25113
- fileTailMatch = tail.length + 1;
25114
- }
25115
- }
25116
- if (!body.length) {
25117
- let sawSome = !!fileTailMatch;
25118
- for (let i2 = fileIndex; i2 < file.length - fileTailMatch; i2++) {
25119
- const f = String(file[i2]);
25120
- sawSome = true;
25121
- if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
25122
- return false;
25123
- }
25124
- }
25125
- return partial || sawSome;
25126
- }
25127
- const bodySegments = [[[], 0]];
25128
- let currentBody = bodySegments[0];
25129
- let nonGsParts = 0;
25130
- const nonGsPartsSums = [0];
25131
- for (const b of body) {
25132
- if (b === GLOBSTAR) {
25133
- nonGsPartsSums.push(nonGsParts);
25134
- currentBody = [[], 0];
25135
- bodySegments.push(currentBody);
25136
- } else {
25137
- currentBody[0].push(b);
25138
- nonGsParts++;
25139
- }
25140
- }
25141
- let i = bodySegments.length - 1;
25142
- const fileLength = file.length - fileTailMatch;
25143
- for (const b of bodySegments) {
25144
- b[1] = fileLength - (nonGsPartsSums[i--] + b[0].length);
25145
- }
25146
- return !!__privateMethod(this, _Minimatch_instances, matchGlobStarBodySections_fn).call(this, file, bodySegments, fileIndex, 0, partial, 0, !!fileTailMatch);
25147
- };
25148
- matchGlobStarBodySections_fn = function(file, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) {
25149
- const bs = bodySegments[bodyIndex];
25150
- if (!bs) {
25151
- for (let i = fileIndex; i < file.length; i++) {
25152
- sawTail = true;
25153
- const f = file[i];
25154
- if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
25155
- return false;
25156
- }
25157
- }
25158
- return sawTail;
25159
- }
25160
- const [body, after] = bs;
25161
- while (fileIndex <= after) {
25162
- const m = __privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file.slice(0, fileIndex + body.length), body, partial, fileIndex, 0);
25163
- if (m && globStarDepth < this.maxGlobstarRecursion) {
25164
- const sub = __privateMethod(this, _Minimatch_instances, matchGlobStarBodySections_fn).call(this, file, bodySegments, fileIndex + body.length, bodyIndex + 1, partial, globStarDepth + 1, sawTail);
25165
- if (sub !== false)
25166
- return sub;
25167
- }
25168
- const f = file[fileIndex];
25169
- if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
25170
- return false;
25171
- }
25172
- fileIndex++;
25173
- }
25174
- return partial || null;
25175
- };
25176
- matchOne_fn = function(file, pattern, partial, fileIndex, patternIndex) {
25177
- let fi;
25178
- let pi;
25179
- let pl;
25180
- let fl;
25181
- for (fi = fileIndex, pi = patternIndex, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
25182
- this.debug("matchOne loop");
25183
- let p = pattern[pi];
25184
- let f = file[fi];
25185
- this.debug(pattern, p, f);
25186
- if (p === false || p === GLOBSTAR)
25187
- return false;
25188
- let hit;
25189
- if (typeof p === "string") {
25190
- hit = f === p;
25191
- this.debug("string match", p, f, hit);
25192
- } else {
25193
- hit = p.test(f);
25194
- this.debug("pattern match", p, f, hit);
25195
- }
25196
- if (!hit)
25197
- return false;
25198
- }
25199
- if (fi === fl && pi === pl) {
25200
- return true;
25201
- } else if (fi === fl) {
25202
- return partial;
25203
- } else if (pi === pl) {
25204
- return fi === fl - 1 && file[fi] === "";
25205
- } else {
25206
- throw new Error("wtf?");
25207
- }
25208
- };
25209
24750
  minimatch.AST = AST;
25210
24751
  minimatch.Minimatch = Minimatch;
25211
24752
  minimatch.escape = escape;
@@ -25276,7 +24817,7 @@ var isJsFile = lowerPathParam((p) => p.endsWith(".js") || p.endsWith(".mjs") ||
25276
24817
 
25277
24818
  // src/compiler/html/canonical-link.ts
25278
24819
  var updateCanonicalLink = (doc, href) => {
25279
- var _a3;
24820
+ var _a2;
25280
24821
  let canonicalLinkElm = doc.head.querySelector('link[rel="canonical"]');
25281
24822
  if (typeof href === "string") {
25282
24823
  if (canonicalLinkElm == null) {
@@ -25289,7 +24830,7 @@ var updateCanonicalLink = (doc, href) => {
25289
24830
  if (canonicalLinkElm != null) {
25290
24831
  const existingHref = canonicalLinkElm.getAttribute("href");
25291
24832
  if (!existingHref) {
25292
- (_a3 = canonicalLinkElm.parentNode) == null ? void 0 : _a3.removeChild(canonicalLinkElm);
24833
+ (_a2 = canonicalLinkElm.parentNode) == null ? void 0 : _a2.removeChild(canonicalLinkElm);
25293
24834
  }
25294
24835
  }
25295
24836
  }
@@ -25801,7 +25342,7 @@ var serializeCss = (stylesheet, serializeOpts) => {
25801
25342
  return out.join("");
25802
25343
  };
25803
25344
  var serializeCssVisitNode = (opts, node, index, len) => {
25804
- var _a3;
25345
+ var _a2;
25805
25346
  const nodeType = node.type;
25806
25347
  if (nodeType === 4 /* Declaration */) {
25807
25348
  return serializeCssDeclaration(node, index, len);
@@ -25810,7 +25351,7 @@ var serializeCssVisitNode = (opts, node, index, len) => {
25810
25351
  return serializeCssRule(opts, node);
25811
25352
  }
25812
25353
  if (nodeType === 1 /* Comment */) {
25813
- if (((_a3 = node.comment) == null ? void 0 : _a3[0]) === "!") {
25354
+ if (((_a2 = node.comment) == null ? void 0 : _a2[0]) === "!") {
25814
25355
  return `/*${node.comment}*/`;
25815
25356
  } else {
25816
25357
  return "";
@@ -25858,10 +25399,10 @@ var serializeCssVisitNode = (opts, node, index, len) => {
25858
25399
  return "";
25859
25400
  };
25860
25401
  var serializeCssRule = (opts, node) => {
25861
- var _a3, _b;
25402
+ var _a2, _b;
25862
25403
  const decls = node.declarations;
25863
25404
  const usedSelectors = opts.usedSelectors;
25864
- const selectors = (_b = (_a3 = node.selectors) == null ? void 0 : _a3.slice()) != null ? _b : [];
25405
+ const selectors = (_b = (_a2 = node.selectors) == null ? void 0 : _a2.slice()) != null ? _b : [];
25865
25406
  const hasDecls = decls != null && decls.length > 0;
25866
25407
  const hasNestedRules = node.rules != null && node.rules.length > 0;
25867
25408
  if (!hasDecls && !hasNestedRules) {
@@ -25965,8 +25506,8 @@ var serializeCssKeyframes = (opts, node) => {
25965
25506
  return "@" + (node.vendor || "") + "keyframes " + node.name + "{" + keyframesCss + "}";
25966
25507
  };
25967
25508
  var serializeCssKeyframe = (opts, node) => {
25968
- var _a3, _b;
25969
- return ((_b = (_a3 = node.values) == null ? void 0 : _a3.join(",")) != null ? _b : "") + "{" + serializeCssMapVisit(opts, node.declarations) + "}";
25509
+ var _a2, _b;
25510
+ return ((_b = (_a2 = node.values) == null ? void 0 : _a2.join(",")) != null ? _b : "") + "{" + serializeCssMapVisit(opts, node.declarations) + "}";
25970
25511
  };
25971
25512
  var serializeCssFontFace = (opts, node) => {
25972
25513
  const fontCss = serializeCssMapVisit(opts, node.declarations);
@@ -25990,8 +25531,8 @@ var serializeCssContainer = (opts, node) => {
25990
25531
  return "@container " + removeMediaWhitespace(node.media) + "{" + containerCss + "}";
25991
25532
  };
25992
25533
  var serializeCssPage = (opts, node) => {
25993
- var _a3, _b;
25994
- const sel = (_b = (_a3 = node.selectors) == null ? void 0 : _a3.join(", ")) != null ? _b : "";
25534
+ var _a2, _b;
25535
+ const sel = (_b = (_a2 = node.selectors) == null ? void 0 : _a2.join(", ")) != null ? _b : "";
25995
25536
  return "@page " + sel + "{" + serializeCssMapVisit(opts, node.declarations) + "}";
25996
25537
  };
25997
25538
  var serializeCssDocument = (opts, node) => {
@@ -26038,10 +25579,10 @@ var removeSelectorWhitespace = (selector) => {
26038
25579
  return rtn;
26039
25580
  };
26040
25581
  var removeMediaWhitespace = (media) => {
26041
- var _a3;
25582
+ var _a2;
26042
25583
  let rtn = "";
26043
25584
  let char = "";
26044
- media = (_a3 = media == null ? void 0 : media.trim()) != null ? _a3 : "";
25585
+ media = (_a2 = media == null ? void 0 : media.trim()) != null ? _a2 : "";
26045
25586
  for (let i = 0, l = media.length; i < l; i++) {
26046
25587
  char = media[i];
26047
25588
  if (CSS_WS_REG.test(char)) {