@stencil/core 4.43.2 → 4.43.3

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 (38) hide show
  1. package/cli/index.cjs +379 -154
  2. package/cli/index.js +379 -154
  3. package/cli/package.json +1 -1
  4. package/compiler/package.json +1 -1
  5. package/compiler/stencil.js +2276 -2065
  6. package/dev-server/client/index.js +1 -1
  7. package/dev-server/client/package.json +1 -1
  8. package/dev-server/connector.html +2 -2
  9. package/dev-server/index.js +1 -1
  10. package/dev-server/package.json +1 -1
  11. package/dev-server/server-process.js +346 -137
  12. package/internal/app-data/package.json +1 -1
  13. package/internal/app-globals/package.json +1 -1
  14. package/internal/client/index.js +1 -1
  15. package/internal/client/package.json +1 -1
  16. package/internal/client/patch-browser.js +1 -1
  17. package/internal/hydrate/index.js +423 -214
  18. package/internal/hydrate/package.json +1 -1
  19. package/internal/hydrate/runner.js +396 -189
  20. package/internal/package.json +1 -1
  21. package/internal/stencil-private.d.ts +1 -1
  22. package/internal/stencil-public-compiler.d.ts +61 -6
  23. package/internal/testing/index.js +410 -201
  24. package/internal/testing/package.json +1 -1
  25. package/mock-doc/index.cjs +2 -4
  26. package/mock-doc/index.d.ts +1 -1
  27. package/mock-doc/index.js +2 -4
  28. package/mock-doc/package.json +1 -1
  29. package/package.json +2 -2
  30. package/screenshot/index.js +341 -132
  31. package/screenshot/package.json +1 -1
  32. package/screenshot/pixel-match.js +1 -1
  33. package/sys/node/glob.js +1 -1
  34. package/sys/node/index.js +44 -46
  35. package/sys/node/package.json +1 -1
  36. package/sys/node/worker.js +1 -1
  37. package/testing/index.js +420 -211
  38. package/testing/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- Stencil Hydrate Platform v4.43.2 | MIT Licensed | https://stenciljs.com
2
+ Stencil Hydrate Platform v4.43.3 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  var __create = Object.create;
5
5
  var __defProp = Object.defineProperty;
@@ -296,9 +296,9 @@ function getPropertyDescriptor(obj, memberName, getOnly) {
296
296
 
297
297
  // src/utils/es2022-rewire-class-members.ts
298
298
  var reWireGetterSetter = (instance, hostRef) => {
299
- var _a;
299
+ var _a2;
300
300
  const cmpMeta = hostRef.$cmpMeta$;
301
- const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
301
+ const members = Object.entries((_a2 = cmpMeta.$members$) != null ? _a2 : {});
302
302
  members.map(([memberName, [memberFlags]]) => {
303
303
  if ((BUILD.state || BUILD.prop) && (memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
304
304
  const ogValue = instance[memberName];
@@ -375,7 +375,7 @@ function createStyleSheetIfNeededAndSupported(styles2) {
375
375
  var globalStyleSheet;
376
376
  var GLOBAL_STYLE_ID = "sc-global";
377
377
  function createShadowRoot(cmpMeta) {
378
- var _a;
378
+ var _a2;
379
379
  const opts = { mode: "open" };
380
380
  if (BUILD2.shadowDelegatesFocus) {
381
381
  opts.delegatesFocus = !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */);
@@ -387,7 +387,7 @@ function createShadowRoot(cmpMeta) {
387
387
  }
388
388
  }
389
389
  const shadowRoot = this.attachShadow(opts);
390
- if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported(globalStyles)) != null ? _a : null;
390
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a2 = createStyleSheetIfNeededAndSupported(globalStyles)) != null ? _a2 : null;
391
391
  if (globalStyleSheet) {
392
392
  if (supportsMutableAdoptedStyleSheets) {
393
393
  shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
@@ -544,8 +544,8 @@ function dispatchSlotChangeEvent(elm) {
544
544
  elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
545
545
  }
546
546
  function findSlotFromSlottedNode(slottedNode, parentHost) {
547
- var _a;
548
- parentHost = parentHost || ((_a = slottedNode["s-ol"]) == null ? void 0 : _a.parentElement);
547
+ var _a2;
548
+ parentHost = parentHost || ((_a2 = slottedNode["s-ol"]) == null ? void 0 : _a2.parentElement);
549
549
  if (!parentHost) return { slotNode: null, slotName: "" };
550
550
  const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
551
551
  const childNodes = internalCall(parentHost, "childNodes");
@@ -836,8 +836,8 @@ var patchNextSibling = (node) => {
836
836
  patchHostOriginalAccessor("nextSibling", node);
837
837
  Object.defineProperty(node, "nextSibling", {
838
838
  get: function() {
839
- var _a;
840
- const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
839
+ var _a2;
840
+ const parentNodes = (_a2 = this["s-ol"]) == null ? void 0 : _a2.parentNode.childNodes;
841
841
  const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
842
842
  if (parentNodes && index > -1) {
843
843
  return parentNodes[index + 1];
@@ -851,8 +851,8 @@ var patchNextElementSibling = (element) => {
851
851
  patchHostOriginalAccessor("nextElementSibling", element);
852
852
  Object.defineProperty(element, "nextElementSibling", {
853
853
  get: function() {
854
- var _a;
855
- const parentEles = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
854
+ var _a2;
855
+ const parentEles = (_a2 = this["s-ol"]) == null ? void 0 : _a2.parentNode.children;
856
856
  const index = parentEles == null ? void 0 : parentEles.indexOf(this);
857
857
  if (parentEles && index > -1) {
858
858
  return parentEles[index + 1];
@@ -866,8 +866,8 @@ var patchPreviousSibling = (node) => {
866
866
  patchHostOriginalAccessor("previousSibling", node);
867
867
  Object.defineProperty(node, "previousSibling", {
868
868
  get: function() {
869
- var _a;
870
- const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
869
+ var _a2;
870
+ const parentNodes = (_a2 = this["s-ol"]) == null ? void 0 : _a2.parentNode.childNodes;
871
871
  const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
872
872
  if (parentNodes && index > -1) {
873
873
  return parentNodes[index - 1];
@@ -881,8 +881,8 @@ var patchPreviousElementSibling = (element) => {
881
881
  patchHostOriginalAccessor("previousElementSibling", element);
882
882
  Object.defineProperty(element, "previousElementSibling", {
883
883
  get: function() {
884
- var _a;
885
- const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
884
+ var _a2;
885
+ const parentNodes = (_a2 = this["s-ol"]) == null ? void 0 : _a2.parentNode.children;
886
886
  const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
887
887
  if (parentNodes && index > -1) {
888
888
  return parentNodes[index - 1];
@@ -896,8 +896,8 @@ var patchParentNode = (node) => {
896
896
  patchHostOriginalAccessor("parentNode", node);
897
897
  Object.defineProperty(node, "parentNode", {
898
898
  get: function() {
899
- var _a;
900
- return ((_a = this["s-ol"]) == null ? void 0 : _a.parentNode) || this.__parentNode;
899
+ var _a2;
900
+ return ((_a2 = this["s-ol"]) == null ? void 0 : _a2.parentNode) || this.__parentNode;
901
901
  },
902
902
  set: function(value) {
903
903
  this.__parentNode = value;
@@ -1033,8 +1033,8 @@ import { BUILD as BUILD6 } from "@stencil/core/internal/app-data";
1033
1033
 
1034
1034
  // src/utils/query-nonce-meta-tag-content.ts
1035
1035
  function queryNonceMetaTagContent(doc) {
1036
- var _a, _b, _c;
1037
- 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;
1036
+ var _a2, _b, _c;
1037
+ 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;
1038
1038
  }
1039
1039
 
1040
1040
  // src/runtime/styles.ts
@@ -1054,7 +1054,7 @@ var registerStyle = (scopeId2, cssText, allowCS) => {
1054
1054
  styles.set(scopeId2, style);
1055
1055
  };
1056
1056
  var addStyle = (styleContainerNode, cmpMeta, mode) => {
1057
- var _a, _b, _c;
1057
+ var _a2, _b, _c;
1058
1058
  const scopeId2 = getScopeId(cmpMeta, mode);
1059
1059
  const style = styles.get(scopeId2);
1060
1060
  if (!BUILD6.attachStyles || !win.document) {
@@ -1075,7 +1075,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
1075
1075
  } else if (!appliedStyles.has(scopeId2)) {
1076
1076
  styleElm = win.document.createElement("style");
1077
1077
  styleElm.textContent = style;
1078
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1078
+ const nonce = (_a2 = plt.$nonce$) != null ? _a2 : queryNonceMetaTagContent(win.document);
1079
1079
  if (nonce != null) {
1080
1080
  styleElm.setAttribute("nonce", nonce);
1081
1081
  }
@@ -1339,7 +1339,7 @@ var validateInputProperties = (inputElm) => {
1339
1339
 
1340
1340
  // src/runtime/client-hydrate.ts
1341
1341
  var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
1342
- var _a, _b, _c, _d;
1342
+ var _a2, _b, _c, _d;
1343
1343
  const endHydrate = createTime("hydrateClient", tagName);
1344
1344
  const shadowRoot = hostElm.shadowRoot;
1345
1345
  const childRenderNodes = [];
@@ -1386,7 +1386,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
1386
1386
  if (childRenderNode.$tag$ === "slot") {
1387
1387
  node["s-cr"] = hostElm["s-cr"];
1388
1388
  }
1389
- } else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
1389
+ } else if (((_a2 = childRenderNode.$tag$) == null ? void 0 : _a2.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
1390
1390
  const cmpMeta = getHostRef(childRenderNode.$elm$);
1391
1391
  if (cmpMeta) {
1392
1392
  const scopeId3 = getScopeId(
@@ -1736,10 +1736,10 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
1736
1736
  parentVNode.$children$[childVNode.$index$] = childVNode;
1737
1737
  }
1738
1738
  var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1739
- var _a, _b;
1739
+ var _a2, _b;
1740
1740
  let slottedNode = slotNode.nextSibling;
1741
1741
  slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1742
- if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
1742
+ if (!slottedNode || ((_a2 = slottedNode.nodeValue) == null ? void 0 : _a2.startsWith(SLOT_NODE_ID + "."))) return;
1743
1743
  do {
1744
1744
  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 */))) {
1745
1745
  slottedNode["s-sn"] = slotName;
@@ -2174,8 +2174,8 @@ var scopeCss = (cssText, scopeId2, commentOriginalSelector) => {
2174
2174
  var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
2175
2175
  var setMode = (handler) => modeResolutionChain.push(handler);
2176
2176
  var getMode = (ref) => {
2177
- var _a;
2178
- return (_a = getHostRef(ref)) == null ? void 0 : _a.$modeName$;
2177
+ var _a2;
2178
+ return (_a2 = getHostRef(ref)) == null ? void 0 : _a2.$modeName$;
2179
2179
  };
2180
2180
 
2181
2181
  // src/runtime/proxy-component.ts
@@ -2324,8 +2324,8 @@ import { BUILD as BUILD11 } from "@stencil/core/internal/app-data";
2324
2324
  // src/runtime/element.ts
2325
2325
  import { BUILD as BUILD10 } from "@stencil/core/internal/app-data";
2326
2326
  var getElement = (ref) => {
2327
- var _a;
2328
- return BUILD10.lazyLoad ? (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ : ref;
2327
+ var _a2;
2328
+ return BUILD10.lazyLoad ? (_a2 = getHostRef(ref)) == null ? void 0 : _a2.$hostElement$ : ref;
2329
2329
  };
2330
2330
 
2331
2331
  // src/runtime/event-emitter.ts
@@ -2567,7 +2567,7 @@ var isSvgMode = false;
2567
2567
  var refCallbacksToRemove = [];
2568
2568
  var refCallbacksToAttach = [];
2569
2569
  var createElm = (oldParentVNode, newParentVNode, childIndex) => {
2570
- var _a;
2570
+ var _a2;
2571
2571
  const newVNode2 = newParentVNode.$children$[childIndex];
2572
2572
  let i2 = 0;
2573
2573
  let elm;
@@ -2645,7 +2645,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
2645
2645
  elm["s-sr"] = true;
2646
2646
  elm["s-cr"] = contentRef;
2647
2647
  elm["s-sn"] = newVNode2.$name$ || "";
2648
- elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
2648
+ elm["s-rf"] = (_a2 = newVNode2.$attrs$) == null ? void 0 : _a2.ref;
2649
2649
  patchSlotNode(elm);
2650
2650
  oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
2651
2651
  if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
@@ -2992,12 +2992,12 @@ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
2992
2992
  }
2993
2993
  };
2994
2994
  function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
2995
- var _a, _b;
2995
+ var _a2, _b;
2996
2996
  let scopeId2;
2997
2997
  if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
2998
2998
  const scopeName = slotNode["s-sn"];
2999
2999
  const hostName = slotNode["s-hn"];
3000
- (_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
3000
+ (_a2 = newParent.classList) == null ? void 0 : _a2.add(scopeId2 + "-s");
3001
3001
  if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
3002
3002
  let child = (oldParent.__childNodes || oldParent.childNodes)[0];
3003
3003
  let found = false;
@@ -3013,7 +3013,7 @@ function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
3013
3013
  }
3014
3014
  }
3015
3015
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
3016
- var _a, _b, _c, _d, _e;
3016
+ var _a2, _b, _c, _d, _e;
3017
3017
  const hostElm = hostRef.$hostElement$;
3018
3018
  const cmpMeta = hostRef.$cmpMeta$;
3019
3019
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -3085,7 +3085,7 @@ render() {
3085
3085
  const nodeToRelocate = relocateData.$nodeToRelocate$;
3086
3086
  const slotRefNode = relocateData.$slotRefNode$;
3087
3087
  if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
3088
- nodeToRelocate["s-ih"] = (_a = nodeToRelocate.hidden) != null ? _a : false;
3088
+ nodeToRelocate["s-ih"] = (_a2 = nodeToRelocate.hidden) != null ? _a2 : false;
3089
3089
  }
3090
3090
  if (slotRefNode) {
3091
3091
  const parentNodeRef = slotRefNode.parentNode;
@@ -3162,14 +3162,14 @@ render() {
3162
3162
  flushQueuedRefCallbacks();
3163
3163
  };
3164
3164
  var slotReferenceDebugNode = (slotVNode) => {
3165
- var _a;
3166
- return (_a = win.document) == null ? void 0 : _a.createComment(
3165
+ var _a2;
3166
+ return (_a2 = win.document) == null ? void 0 : _a2.createComment(
3167
3167
  `<slot${slotVNode.$name$ ? ' name="' + slotVNode.$name$ + '"' : ""}> (host=${hostTagName.toLowerCase()})`
3168
3168
  );
3169
3169
  };
3170
3170
  var originalLocationDebugNode = (nodeToRelocate) => {
3171
- var _a;
3172
- return (_a = win.document) == null ? void 0 : _a.createComment(
3171
+ var _a2;
3172
+ return (_a2 = win.document) == null ? void 0 : _a2.createComment(
3173
3173
  `org-location for ` + (nodeToRelocate.localName ? `<${nodeToRelocate.localName}> (host=${nodeToRelocate["s-hn"]})` : `[${nodeToRelocate.textContent}]`)
3174
3174
  );
3175
3175
  };
@@ -3249,7 +3249,7 @@ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then
3249
3249
  }) : fn();
3250
3250
  var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
3251
3251
  var updateComponent = async (hostRef, instance, isInitialLoad) => {
3252
- var _a;
3252
+ var _a2;
3253
3253
  const elm = hostRef.$hostElement$;
3254
3254
  const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
3255
3255
  const rc = elm["s-rc"];
@@ -3290,7 +3290,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
3290
3290
  endRender();
3291
3291
  endUpdate();
3292
3292
  if (BUILD15.asyncLoading) {
3293
- const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
3293
+ const childrenPromises = (_a2 = elm["s-p"]) != null ? _a2 : [];
3294
3294
  const postUpdate = () => postUpdateComponent(hostRef);
3295
3295
  if (childrenPromises.length === 0) {
3296
3296
  postUpdate();
@@ -3401,10 +3401,10 @@ var postUpdateComponent = (hostRef) => {
3401
3401
  }
3402
3402
  };
3403
3403
  var forceUpdate = (ref) => {
3404
- var _a;
3404
+ var _a2;
3405
3405
  if (BUILD15.updatable && (Build.isBrowser || Build.isTesting)) {
3406
3406
  const hostRef = getHostRef(ref);
3407
- const isConnected = (_a = hostRef == null ? void 0 : hostRef.$hostElement$) == null ? void 0 : _a.isConnected;
3407
+ const isConnected = (_a2 = hostRef == null ? void 0 : hostRef.$hostElement$) == null ? void 0 : _a2.isConnected;
3408
3408
  if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
3409
3409
  scheduleUpdate(hostRef, false);
3410
3410
  }
@@ -3413,13 +3413,13 @@ var forceUpdate = (ref) => {
3413
3413
  return false;
3414
3414
  };
3415
3415
  var appDidLoad = (who) => {
3416
- var _a;
3416
+ var _a2;
3417
3417
  if (BUILD15.asyncQueue) {
3418
3418
  plt.$flags$ |= 2 /* appLoaded */;
3419
3419
  }
3420
3420
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
3421
3421
  if (BUILD15.hydrateClientSide) {
3422
- if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
3422
+ if ((_a2 = plt.$orgLocNodes$) == null ? void 0 : _a2.size) {
3423
3423
  plt.$orgLocNodes$.clear();
3424
3424
  }
3425
3425
  }
@@ -3449,8 +3449,8 @@ var emitLifecycleEvent = (elm, lifecycleName) => {
3449
3449
  }
3450
3450
  };
3451
3451
  var addHydratedFlag = (elm) => {
3452
- var _a, _b;
3453
- return BUILD15.hydratedClass ? elm.classList.add((_a = BUILD15.hydratedSelectorName) != null ? _a : "hydrated") : BUILD15.hydratedAttribute ? elm.setAttribute((_b = BUILD15.hydratedSelectorName) != null ? _b : "hydrated", "") : void 0;
3452
+ var _a2, _b;
3453
+ return BUILD15.hydratedClass ? elm.classList.add((_a2 = BUILD15.hydratedSelectorName) != null ? _a2 : "hydrated") : BUILD15.hydratedAttribute ? elm.setAttribute((_b = BUILD15.hydratedSelectorName) != null ? _b : "hydrated", "") : void 0;
3454
3454
  };
3455
3455
  var serverSideConnected = (elm) => {
3456
3456
  const children = elm.children;
@@ -3572,7 +3572,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
3572
3572
 
3573
3573
  // src/runtime/proxy-component.ts
3574
3574
  var proxyComponent = (Cstr, cmpMeta, flags) => {
3575
- var _a, _b;
3575
+ var _a2, _b;
3576
3576
  const prototype = Cstr.prototype;
3577
3577
  if (BUILD17.isTesting) {
3578
3578
  if (prototype.__stencilAugmented) {
@@ -3585,11 +3585,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
3585
3585
  const originalFormAssociatedCallback = prototype[cbName];
3586
3586
  Object.defineProperty(prototype, cbName, {
3587
3587
  value(...args) {
3588
- var _a2;
3588
+ var _a3;
3589
3589
  const hostRef = getHostRef(this);
3590
3590
  const instance = BUILD17.lazyLoad ? hostRef == null ? void 0 : hostRef.$lazyInstance$ : this;
3591
3591
  if (!instance) {
3592
- (_a2 = hostRef == null ? void 0 : hostRef.$onReadyPromise$) == null ? void 0 : _a2.then((asyncInstance) => {
3592
+ (_a3 = hostRef == null ? void 0 : hostRef.$onReadyPromise$) == null ? void 0 : _a3.then((asyncInstance) => {
3593
3593
  const cb = asyncInstance[cbName];
3594
3594
  typeof cb === "function" && cb.call(asyncInstance, ...args);
3595
3595
  });
@@ -3613,7 +3613,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
3613
3613
  cmpMeta.$serializers$ = Cstr.serializers;
3614
3614
  }
3615
3615
  }
3616
- const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
3616
+ const members = Object.entries((_a2 = cmpMeta.$members$) != null ? _a2 : {});
3617
3617
  members.map(([memberName, [memberFlags]]) => {
3618
3618
  if ((BUILD17.prop || BUILD17.state) && (memberFlags & 31 /* Prop */ || (!BUILD17.lazyLoad || flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
3619
3619
  const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
@@ -3717,11 +3717,11 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
3717
3717
  } else if (BUILD17.lazyLoad && BUILD17.method && flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
3718
3718
  Object.defineProperty(prototype, memberName, {
3719
3719
  value(...args) {
3720
- var _a2;
3720
+ var _a3;
3721
3721
  const ref = getHostRef(this);
3722
- return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
3723
- var _a3;
3724
- return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
3722
+ return (_a3 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a3.then(() => {
3723
+ var _a4;
3724
+ return (_a4 = ref.$lazyInstance$) == null ? void 0 : _a4[memberName](...args);
3725
3725
  });
3726
3726
  }
3727
3727
  });
@@ -3731,7 +3731,7 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
3731
3731
  const attrNameToPropName = /* @__PURE__ */ new Map();
3732
3732
  prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
3733
3733
  plt.jmp(() => {
3734
- var _a2;
3734
+ var _a3;
3735
3735
  const propName = attrNameToPropName.get(attrName);
3736
3736
  const hostRef = getHostRef(this);
3737
3737
  if (BUILD17.serializer && hostRef.$serializerValues$.has(propName) && hostRef.$serializerValues$.get(propName) === newValue) {
@@ -3771,7 +3771,7 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
3771
3771
  if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
3772
3772
  const elm = BUILD17.lazyLoad ? hostRef.$hostElement$ : this;
3773
3773
  const instance = BUILD17.lazyLoad ? hostRef.$lazyInstance$ : elm;
3774
- const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
3774
+ const entry = (_a3 = cmpMeta.$watchers$) == null ? void 0 : _a3[attrName];
3775
3775
  entry == null ? void 0 : entry.forEach((watcher) => {
3776
3776
  const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
3777
3777
  if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
@@ -3795,11 +3795,11 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
3795
3795
  /* @__PURE__ */ new Set([
3796
3796
  ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
3797
3797
  ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
3798
- var _a2;
3798
+ var _a3;
3799
3799
  const attrName = m[1] || propName;
3800
3800
  attrNameToPropName.set(attrName, propName);
3801
3801
  if (BUILD17.reflect && m[0] & 512 /* ReflectAttr */) {
3802
- (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
3802
+ (_a3 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a3.push([propName, attrName]);
3803
3803
  }
3804
3804
  return attrName;
3805
3805
  })
@@ -4175,7 +4175,7 @@ var hmrStart = (hostElement, cmpMeta, hmrVersionId) => {
4175
4175
 
4176
4176
  // src/runtime/bootstrap-lazy.ts
4177
4177
  var bootstrapLazy = (lazyBundles, options = {}) => {
4178
- var _a;
4178
+ var _a2;
4179
4179
  if (BUILD22.profile && performance.mark) {
4180
4180
  performance.mark("st:app:start");
4181
4181
  }
@@ -4210,7 +4210,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
4210
4210
  let hasSlotRelocation = false;
4211
4211
  lazyBundles.map((lazyBundle) => {
4212
4212
  lazyBundle[1].map((compactMeta) => {
4213
- var _a2, _b, _c;
4213
+ var _a3, _b, _c;
4214
4214
  const cmpMeta = {
4215
4215
  $flags$: compactMeta[0],
4216
4216
  $tagName$: compactMeta[1],
@@ -4230,7 +4230,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
4230
4230
  cmpMeta.$attrsToReflect$ = [];
4231
4231
  }
4232
4232
  if (BUILD22.propChangeCallback) {
4233
- cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
4233
+ cmpMeta.$watchers$ = (_a3 = compactMeta[4]) != null ? _a3 : {};
4234
4234
  cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
4235
4235
  cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
4236
4236
  }
@@ -4285,7 +4285,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
4285
4285
  disconnectedCallback() {
4286
4286
  plt.jmp(() => disconnectedCallback(this));
4287
4287
  plt.raf(() => {
4288
- var _a3;
4288
+ var _a4;
4289
4289
  const hostRef = getHostRef(this);
4290
4290
  if (!hostRef) {
4291
4291
  return;
@@ -4294,14 +4294,14 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
4294
4294
  if (i2 > -1) {
4295
4295
  deferredConnectedCallbacks.splice(i2, 1);
4296
4296
  }
4297
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
4297
+ if (((_a4 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a4.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
4298
4298
  delete hostRef.$vnode$.$elm$;
4299
4299
  }
4300
4300
  });
4301
4301
  }
4302
4302
  componentOnReady() {
4303
- var _a3;
4304
- return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
4303
+ var _a4;
4304
+ return (_a4 = getHostRef(this)) == null ? void 0 : _a4.$onReadyPromise$;
4305
4305
  }
4306
4306
  };
4307
4307
  if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && cmpMeta.$flags$ & 256 /* hasSlot */) {
@@ -4351,7 +4351,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
4351
4351
  }
4352
4352
  if (dataStyles.innerHTML.length) {
4353
4353
  dataStyles.setAttribute("data-styles", "");
4354
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
4354
+ const nonce = (_a2 = plt.$nonce$) != null ? _a2 : queryNonceMetaTagContent(win.document);
4355
4355
  if (nonce != null) {
4356
4356
  dataStyles.setAttribute("nonce", nonce);
4357
4357
  }
@@ -4395,11 +4395,11 @@ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) =>
4395
4395
  }
4396
4396
  };
4397
4397
  var hostListenerProxy = (hostRef, methodName) => (ev) => {
4398
- var _a;
4398
+ var _a2;
4399
4399
  try {
4400
4400
  if (BUILD23.lazyLoad) {
4401
4401
  if (hostRef.$flags$ & 256 /* isListenReady */) {
4402
- (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
4402
+ (_a2 = hostRef.$lazyInstance$) == null ? void 0 : _a2[methodName](ev);
4403
4403
  } else {
4404
4404
  (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
4405
4405
  }
@@ -4515,7 +4515,7 @@ var insertVdomAnnotations = (doc, staticComponents) => {
4515
4515
  const orgLocationNodes = [];
4516
4516
  parseVNodeAnnotations(doc, doc.body, docData, orgLocationNodes);
4517
4517
  orgLocationNodes.forEach((orgLocationNode) => {
4518
- var _a;
4518
+ var _a2;
4519
4519
  if (orgLocationNode != null && orgLocationNode["s-nr"]) {
4520
4520
  const nodeRef = orgLocationNode["s-nr"];
4521
4521
  let hostId = nodeRef["s-host-id"];
@@ -4533,7 +4533,7 @@ var insertVdomAnnotations = (doc, staticComponents) => {
4533
4533
  }
4534
4534
  } else if (nodeRef.nodeType === 3 /* TextNode */) {
4535
4535
  if (hostId === 0) {
4536
- const textContent = (_a = nodeRef.nodeValue) == null ? void 0 : _a.trim();
4536
+ const textContent = (_a2 = nodeRef.nodeValue) == null ? void 0 : _a2.trim();
4537
4537
  if (textContent === "") {
4538
4538
  orgLocationNode.remove();
4539
4539
  return;
@@ -4563,7 +4563,7 @@ var insertVdomAnnotations = (doc, staticComponents) => {
4563
4563
  }
4564
4564
  };
4565
4565
  var parseVNodeAnnotations = (doc, node, docData, orgLocationNodes) => {
4566
- var _a;
4566
+ var _a2;
4567
4567
  if (node == null) {
4568
4568
  return;
4569
4569
  }
@@ -4571,7 +4571,7 @@ var parseVNodeAnnotations = (doc, node, docData, orgLocationNodes) => {
4571
4571
  orgLocationNodes.push(node);
4572
4572
  }
4573
4573
  if (node.nodeType === 1 /* ElementNode */) {
4574
- const childNodes = [...Array.from(node.childNodes), ...Array.from(((_a = node.shadowRoot) == null ? void 0 : _a.childNodes) || [])];
4574
+ const childNodes = [...Array.from(node.childNodes), ...Array.from(((_a2 = node.shadowRoot) == null ? void 0 : _a2.childNodes) || [])];
4575
4575
  childNodes.forEach((childNode) => {
4576
4576
  const hostRef = getHostRef(childNode);
4577
4577
  if (hostRef != null && !docData.staticComponents.has(childNode.nodeName.toLowerCase())) {
@@ -4801,8 +4801,35 @@ var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
4801
4801
  };
4802
4802
 
4803
4803
  // node_modules/minimatch/dist/esm/ast.js
4804
+ var _a;
4804
4805
  var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
4805
4806
  var isExtglobType = (c) => types.has(c);
4807
+ var isExtglobAST = (c) => isExtglobType(c.type);
4808
+ var adoptionMap = /* @__PURE__ */ new Map([
4809
+ ["!", ["@"]],
4810
+ ["?", ["?", "@"]],
4811
+ ["@", ["@"]],
4812
+ ["*", ["*", "+", "?", "@"]],
4813
+ ["+", ["+", "@"]]
4814
+ ]);
4815
+ var adoptionWithSpaceMap = /* @__PURE__ */ new Map([
4816
+ ["!", ["?"]],
4817
+ ["@", ["?"]],
4818
+ ["+", ["?", "*"]]
4819
+ ]);
4820
+ var adoptionAnyMap = /* @__PURE__ */ new Map([
4821
+ ["!", ["?", "@"]],
4822
+ ["?", ["?", "@"]],
4823
+ ["@", ["?", "@"]],
4824
+ ["*", ["*", "+", "?", "@"]],
4825
+ ["+", ["+", "@", "?", "*"]]
4826
+ ]);
4827
+ var usurpMap = /* @__PURE__ */ new Map([
4828
+ ["!", /* @__PURE__ */ new Map([["!", "@"]])],
4829
+ ["?", /* @__PURE__ */ new Map([["*", "*"], ["+", "*"]])],
4830
+ ["@", /* @__PURE__ */ new Map([["!", "!"], ["?", "?"], ["@", "@"], ["*", "*"], ["+", "+"]])],
4831
+ ["+", /* @__PURE__ */ new Map([["?", "*"], ["*", "*"]])]
4832
+ ]);
4806
4833
  var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
4807
4834
  var startNoDot = "(?!\\.)";
4808
4835
  var addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
@@ -4812,8 +4839,8 @@ var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
4812
4839
  var qmark = "[^/]";
4813
4840
  var star = qmark + "*?";
4814
4841
  var starNoEmpty = qmark + "+?";
4815
- var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn;
4816
- var _AST = class _AST {
4842
+ 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;
4843
+ var AST = class {
4817
4844
  constructor(type, parent, options = {}) {
4818
4845
  __privateAdd(this, _AST_instances);
4819
4846
  __publicField(this, "type");
@@ -4866,44 +4893,44 @@ var _AST = class _AST {
4866
4893
  for (const p of parts) {
4867
4894
  if (p === "")
4868
4895
  continue;
4869
- if (typeof p !== "string" && !(p instanceof _AST && __privateGet(p, _parent) === this)) {
4896
+ if (typeof p !== "string" && !(p instanceof _a && __privateGet(p, _parent) === this)) {
4870
4897
  throw new Error("invalid part: " + p);
4871
4898
  }
4872
4899
  __privateGet(this, _parts).push(p);
4873
4900
  }
4874
4901
  }
4875
4902
  toJSON() {
4876
- var _a;
4903
+ var _a2;
4877
4904
  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())];
4878
4905
  if (this.isStart() && !this.type)
4879
4906
  ret.unshift([]);
4880
- if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")) {
4907
+ if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!")) {
4881
4908
  ret.push({});
4882
4909
  }
4883
4910
  return ret;
4884
4911
  }
4885
4912
  isStart() {
4886
- var _a;
4913
+ var _a2;
4887
4914
  if (__privateGet(this, _root) === this)
4888
4915
  return true;
4889
- if (!((_a = __privateGet(this, _parent)) == null ? void 0 : _a.isStart()))
4916
+ if (!((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.isStart()))
4890
4917
  return false;
4891
4918
  if (__privateGet(this, _parentIndex) === 0)
4892
4919
  return true;
4893
4920
  const p = __privateGet(this, _parent);
4894
4921
  for (let i2 = 0; i2 < __privateGet(this, _parentIndex); i2++) {
4895
4922
  const pp = __privateGet(p, _parts)[i2];
4896
- if (!(pp instanceof _AST && pp.type === "!")) {
4923
+ if (!(pp instanceof _a && pp.type === "!")) {
4897
4924
  return false;
4898
4925
  }
4899
4926
  }
4900
4927
  return true;
4901
4928
  }
4902
4929
  isEnd() {
4903
- var _a, _b, _c;
4930
+ var _a2, _b, _c;
4904
4931
  if (__privateGet(this, _root) === this)
4905
4932
  return true;
4906
- if (((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")
4933
+ if (((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!")
4907
4934
  return true;
4908
4935
  if (!((_b = __privateGet(this, _parent)) == null ? void 0 : _b.isEnd()))
4909
4936
  return false;
@@ -4919,16 +4946,16 @@ var _AST = class _AST {
4919
4946
  this.push(part.clone(this));
4920
4947
  }
4921
4948
  clone(parent) {
4922
- const c = new _AST(this.type, parent);
4949
+ const c = new _a(this.type, parent);
4923
4950
  for (const p of __privateGet(this, _parts)) {
4924
4951
  c.copyIn(p);
4925
4952
  }
4926
4953
  return c;
4927
4954
  }
4928
4955
  static fromGlob(pattern, options = {}) {
4929
- var _a;
4930
- const ast = new _AST(null, void 0, options);
4931
- __privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, pattern, ast, 0, options);
4956
+ var _a2;
4957
+ const ast = new _a(null, void 0, options);
4958
+ __privateMethod(_a2 = _a, _AST_static, parseAST_fn).call(_a2, pattern, ast, 0, options, 0);
4932
4959
  return ast;
4933
4960
  }
4934
4961
  // returns the regular expression if there's magic, or the unescaped
@@ -5021,15 +5048,17 @@ var _AST = class _AST {
5021
5048
  // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
5022
5049
  // or start or whatever) and prepend ^ or / at the Regexp construction.
5023
5050
  toRegExpSource(allowDot) {
5024
- var _a;
5051
+ var _a2;
5025
5052
  const dot = allowDot != null ? allowDot : !!__privateGet(this, _options).dot;
5026
- if (__privateGet(this, _root) === this)
5053
+ if (__privateGet(this, _root) === this) {
5054
+ __privateMethod(this, _AST_instances, flatten_fn).call(this);
5027
5055
  __privateMethod(this, _AST_instances, fillNegs_fn).call(this);
5028
- if (!this.type) {
5056
+ }
5057
+ if (!isExtglobAST(this)) {
5029
5058
  const noEmpty = this.isStart() && this.isEnd();
5030
5059
  const src = __privateGet(this, _parts).map((p) => {
5031
- var _a2;
5032
- const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a2 = _AST, _AST_static, parseGlob_fn).call(_a2, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
5060
+ var _a3;
5061
+ const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a3 = _a, _AST_static, parseGlob_fn).call(_a3, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
5033
5062
  __privateSet(this, _hasMagic, __privateGet(this, _hasMagic) || hasMagic);
5034
5063
  __privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
5035
5064
  return re;
@@ -5052,7 +5081,7 @@ var _AST = class _AST {
5052
5081
  }
5053
5082
  }
5054
5083
  let end = "";
5055
- if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!") {
5084
+ if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!") {
5056
5085
  end = "(?:$|\\/)";
5057
5086
  }
5058
5087
  const final2 = start2 + src + end;
@@ -5068,9 +5097,10 @@ var _AST = class _AST {
5068
5097
  let body = __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, dot);
5069
5098
  if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
5070
5099
  const s = this.toString();
5071
- __privateSet(this, _parts, [s]);
5072
- this.type = null;
5073
- __privateSet(this, _hasMagic, void 0);
5100
+ const me = this;
5101
+ __privateSet(me, _parts, [s]);
5102
+ me.type = null;
5103
+ __privateSet(me, _hasMagic, void 0);
5074
5104
  return [s, unescape(this.toString()), false, false];
5075
5105
  }
5076
5106
  let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ? "" : __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, true);
@@ -5139,8 +5169,9 @@ fillNegs_fn = function() {
5139
5169
  return this;
5140
5170
  };
5141
5171
  _AST_static = new WeakSet();
5142
- parseAST_fn = function(str, ast, pos, opt) {
5143
- var _a, _b;
5172
+ parseAST_fn = function(str, ast, pos, opt, extDepth) {
5173
+ var _a2, _b, _c, _d, _e;
5174
+ const maxDepth = (_a2 = opt.maxExtglobRecursion) != null ? _a2 : 2;
5144
5175
  let escaping = false;
5145
5176
  let inBrace = false;
5146
5177
  let braceStart = -1;
@@ -5172,11 +5203,12 @@ parseAST_fn = function(str, ast, pos, opt) {
5172
5203
  acc2 += c;
5173
5204
  continue;
5174
5205
  }
5175
- if (!opt.noext && isExtglobType(c) && str.charAt(i3) === "(") {
5206
+ const doRecurse = !opt.noext && isExtglobType(c) && str.charAt(i3) === "(" && extDepth <= maxDepth;
5207
+ if (doRecurse) {
5176
5208
  ast.push(acc2);
5177
5209
  acc2 = "";
5178
- const ext2 = new _AST(c, ast);
5179
- i3 = __privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, str, ext2, i3, opt);
5210
+ const ext2 = new _a(c, ast);
5211
+ i3 = __privateMethod(_b = _a, _AST_static, parseAST_fn).call(_b, str, ext2, i3, opt, extDepth + 1);
5180
5212
  ast.push(ext2);
5181
5213
  continue;
5182
5214
  }
@@ -5186,7 +5218,7 @@ parseAST_fn = function(str, ast, pos, opt) {
5186
5218
  return i3;
5187
5219
  }
5188
5220
  let i2 = pos + 1;
5189
- let part = new _AST(null, ast);
5221
+ let part = new _a(null, ast);
5190
5222
  const parts = [];
5191
5223
  let acc = "";
5192
5224
  while (i2 < str.length) {
@@ -5213,19 +5245,22 @@ parseAST_fn = function(str, ast, pos, opt) {
5213
5245
  acc += c;
5214
5246
  continue;
5215
5247
  }
5216
- if (isExtglobType(c) && str.charAt(i2) === "(") {
5248
+ const doRecurse = isExtglobType(c) && str.charAt(i2) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
5249
+ (extDepth <= maxDepth || ast && __privateMethod(_c = ast, _AST_instances, canAdoptType_fn).call(_c, c));
5250
+ if (doRecurse) {
5251
+ const depthAdd = ast && __privateMethod(_d = ast, _AST_instances, canAdoptType_fn).call(_d, c) ? 0 : 1;
5217
5252
  part.push(acc);
5218
5253
  acc = "";
5219
- const ext2 = new _AST(c, part);
5254
+ const ext2 = new _a(c, part);
5220
5255
  part.push(ext2);
5221
- i2 = __privateMethod(_b = _AST, _AST_static, parseAST_fn).call(_b, str, ext2, i2, opt);
5256
+ i2 = __privateMethod(_e = _a, _AST_static, parseAST_fn).call(_e, str, ext2, i2, opt, extDepth + depthAdd);
5222
5257
  continue;
5223
5258
  }
5224
5259
  if (c === "|") {
5225
5260
  part.push(acc);
5226
5261
  acc = "";
5227
5262
  parts.push(part);
5228
- part = new _AST(null, ast);
5263
+ part = new _a(null, ast);
5229
5264
  continue;
5230
5265
  }
5231
5266
  if (c === ")") {
@@ -5244,6 +5279,100 @@ parseAST_fn = function(str, ast, pos, opt) {
5244
5279
  __privateSet(ast, _parts, [str.substring(pos - 1)]);
5245
5280
  return i2;
5246
5281
  };
5282
+ canAdoptWithSpace_fn = function(child) {
5283
+ return __privateMethod(this, _AST_instances, canAdopt_fn).call(this, child, adoptionWithSpaceMap);
5284
+ };
5285
+ canAdopt_fn = function(child, map2 = adoptionMap) {
5286
+ if (!child || typeof child !== "object" || child.type !== null || __privateGet(child, _parts).length !== 1 || this.type === null) {
5287
+ return false;
5288
+ }
5289
+ const gc = __privateGet(child, _parts)[0];
5290
+ if (!gc || typeof gc !== "object" || gc.type === null) {
5291
+ return false;
5292
+ }
5293
+ return __privateMethod(this, _AST_instances, canAdoptType_fn).call(this, gc.type, map2);
5294
+ };
5295
+ canAdoptType_fn = function(c, map2 = adoptionAnyMap) {
5296
+ var _a2;
5297
+ return !!((_a2 = map2.get(this.type)) == null ? void 0 : _a2.includes(c));
5298
+ };
5299
+ adoptWithSpace_fn = function(child, index) {
5300
+ const gc = __privateGet(child, _parts)[0];
5301
+ const blank = new _a(null, gc, this.options);
5302
+ __privateGet(blank, _parts).push("");
5303
+ gc.push(blank);
5304
+ __privateMethod(this, _AST_instances, adopt_fn).call(this, child, index);
5305
+ };
5306
+ adopt_fn = function(child, index) {
5307
+ const gc = __privateGet(child, _parts)[0];
5308
+ __privateGet(this, _parts).splice(index, 1, ...__privateGet(gc, _parts));
5309
+ for (const p of __privateGet(gc, _parts)) {
5310
+ if (typeof p === "object")
5311
+ __privateSet(p, _parent, this);
5312
+ }
5313
+ __privateSet(this, _toString, void 0);
5314
+ };
5315
+ canUsurpType_fn = function(c) {
5316
+ const m = usurpMap.get(this.type);
5317
+ return !!(m == null ? void 0 : m.has(c));
5318
+ };
5319
+ canUsurp_fn = function(child) {
5320
+ if (!child || typeof child !== "object" || child.type !== null || __privateGet(child, _parts).length !== 1 || this.type === null || __privateGet(this, _parts).length !== 1) {
5321
+ return false;
5322
+ }
5323
+ const gc = __privateGet(child, _parts)[0];
5324
+ if (!gc || typeof gc !== "object" || gc.type === null) {
5325
+ return false;
5326
+ }
5327
+ return __privateMethod(this, _AST_instances, canUsurpType_fn).call(this, gc.type);
5328
+ };
5329
+ usurp_fn = function(child) {
5330
+ const m = usurpMap.get(this.type);
5331
+ const gc = __privateGet(child, _parts)[0];
5332
+ const nt = m == null ? void 0 : m.get(gc.type);
5333
+ if (!nt)
5334
+ return false;
5335
+ __privateSet(this, _parts, __privateGet(gc, _parts));
5336
+ for (const p of __privateGet(this, _parts)) {
5337
+ if (typeof p === "object")
5338
+ __privateSet(p, _parent, this);
5339
+ }
5340
+ this.type = nt;
5341
+ __privateSet(this, _toString, void 0);
5342
+ __privateSet(this, _emptyExt, false);
5343
+ };
5344
+ flatten_fn = function() {
5345
+ var _a2, _b;
5346
+ if (!isExtglobAST(this)) {
5347
+ for (const p of __privateGet(this, _parts)) {
5348
+ if (typeof p === "object")
5349
+ __privateMethod(_a2 = p, _AST_instances, flatten_fn).call(_a2);
5350
+ }
5351
+ } else {
5352
+ let iterations = 0;
5353
+ let done = false;
5354
+ do {
5355
+ done = true;
5356
+ for (let i2 = 0; i2 < __privateGet(this, _parts).length; i2++) {
5357
+ const c = __privateGet(this, _parts)[i2];
5358
+ if (typeof c === "object") {
5359
+ __privateMethod(_b = c, _AST_instances, flatten_fn).call(_b);
5360
+ if (__privateMethod(this, _AST_instances, canAdopt_fn).call(this, c)) {
5361
+ done = false;
5362
+ __privateMethod(this, _AST_instances, adopt_fn).call(this, c, i2);
5363
+ } else if (__privateMethod(this, _AST_instances, canAdoptWithSpace_fn).call(this, c)) {
5364
+ done = false;
5365
+ __privateMethod(this, _AST_instances, adoptWithSpace_fn).call(this, c, i2);
5366
+ } else if (__privateMethod(this, _AST_instances, canUsurp_fn).call(this, c)) {
5367
+ done = false;
5368
+ __privateMethod(this, _AST_instances, usurp_fn).call(this, c);
5369
+ }
5370
+ }
5371
+ }
5372
+ } while (!done && ++iterations < 10);
5373
+ }
5374
+ __privateSet(this, _toString, void 0);
5375
+ };
5247
5376
  partsToRegExp_fn = function(dot) {
5248
5377
  return __privateGet(this, _parts).map((p) => {
5249
5378
  if (typeof p === "string") {
@@ -5258,11 +5387,13 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
5258
5387
  let escaping = false;
5259
5388
  let re = "";
5260
5389
  let uflag = false;
5390
+ let inStar = false;
5261
5391
  for (let i2 = 0; i2 < glob.length; i2++) {
5262
5392
  const c = glob.charAt(i2);
5263
5393
  if (escaping) {
5264
5394
  escaping = false;
5265
5395
  re += (reSpecials.has(c) ? "\\" : "") + c;
5396
+ inStar = false;
5266
5397
  continue;
5267
5398
  }
5268
5399
  if (c === "\\") {
@@ -5280,16 +5411,19 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
5280
5411
  uflag = uflag || needUflag;
5281
5412
  i2 += consumed - 1;
5282
5413
  hasMagic = hasMagic || magic;
5414
+ inStar = false;
5283
5415
  continue;
5284
5416
  }
5285
5417
  }
5286
5418
  if (c === "*") {
5287
- if (noEmpty && glob === "*")
5288
- re += starNoEmpty;
5289
- else
5290
- re += star;
5419
+ if (inStar)
5420
+ continue;
5421
+ inStar = true;
5422
+ re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star;
5291
5423
  hasMagic = true;
5292
5424
  continue;
5425
+ } else {
5426
+ inStar = false;
5293
5427
  }
5294
5428
  if (c === "?") {
5295
5429
  re += qmark;
@@ -5300,8 +5434,8 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
5300
5434
  }
5301
5435
  return [re, unescape(glob), !!hasMagic, uflag];
5302
5436
  };
5303
- __privateAdd(_AST, _AST_static);
5304
- var AST = _AST;
5437
+ __privateAdd(AST, _AST_static);
5438
+ _a = AST;
5305
5439
 
5306
5440
  // node_modules/minimatch/dist/esm/escape.js
5307
5441
  var escape = (s, { windowsPathsNoEscape = false } = {}) => {
@@ -5440,28 +5574,33 @@ var match = (list, pattern, options = {}) => {
5440
5574
  minimatch.match = match;
5441
5575
  var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
5442
5576
  var regExpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
5577
+ var _Minimatch_instances, matchGlobstar_fn, matchGlobStarBodySections_fn, matchOne_fn;
5443
5578
  var Minimatch = class {
5444
- options;
5445
- set;
5446
- pattern;
5447
- windowsPathsNoEscape;
5448
- nonegate;
5449
- negate;
5450
- comment;
5451
- empty;
5452
- preserveMultipleSlashes;
5453
- partial;
5454
- globSet;
5455
- globParts;
5456
- nocase;
5457
- isWindows;
5458
- platform;
5459
- windowsNoMagicRoot;
5460
- regexp;
5461
5579
  constructor(pattern, options = {}) {
5580
+ __privateAdd(this, _Minimatch_instances);
5581
+ __publicField(this, "options");
5582
+ __publicField(this, "set");
5583
+ __publicField(this, "pattern");
5584
+ __publicField(this, "windowsPathsNoEscape");
5585
+ __publicField(this, "nonegate");
5586
+ __publicField(this, "negate");
5587
+ __publicField(this, "comment");
5588
+ __publicField(this, "empty");
5589
+ __publicField(this, "preserveMultipleSlashes");
5590
+ __publicField(this, "partial");
5591
+ __publicField(this, "globSet");
5592
+ __publicField(this, "globParts");
5593
+ __publicField(this, "nocase");
5594
+ __publicField(this, "isWindows");
5595
+ __publicField(this, "platform");
5596
+ __publicField(this, "windowsNoMagicRoot");
5597
+ __publicField(this, "maxGlobstarRecursion");
5598
+ __publicField(this, "regexp");
5599
+ var _a2;
5462
5600
  assertValidPattern(pattern);
5463
5601
  options = options || {};
5464
5602
  this.options = options;
5603
+ this.maxGlobstarRecursion = (_a2 = options.maxGlobstarRecursion) != null ? _a2 : 200;
5465
5604
  this.pattern = pattern;
5466
5605
  this.platform = options.platform || defaultPlatform;
5467
5606
  this.isWindows = this.platform === "win32";
@@ -5729,10 +5868,11 @@ var Minimatch = class {
5729
5868
  for (let i2 = 0; i2 < globParts.length - 1; i2++) {
5730
5869
  for (let j = i2 + 1; j < globParts.length; j++) {
5731
5870
  const matched = this.partsMatch(globParts[i2], globParts[j], !this.preserveMultipleSlashes);
5732
- if (!matched)
5733
- continue;
5734
- globParts[i2] = matched;
5735
- globParts[j] = [];
5871
+ if (matched) {
5872
+ globParts[i2] = [];
5873
+ globParts[j] = matched;
5874
+ break;
5875
+ }
5736
5876
  }
5737
5877
  }
5738
5878
  return globParts.filter((gs) => gs.length);
@@ -5793,7 +5933,8 @@ var Minimatch = class {
5793
5933
  // out of pattern, then that's fine, as long as all
5794
5934
  // the parts match.
5795
5935
  matchOne(file, pattern, partial = false) {
5796
- const options = this.options;
5936
+ let fileStartIndex = 0;
5937
+ let patternStartIndex = 0;
5797
5938
  if (this.isWindows) {
5798
5939
  const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
5799
5940
  const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
@@ -5802,14 +5943,14 @@ var Minimatch = class {
5802
5943
  const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
5803
5944
  const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
5804
5945
  if (typeof fdi === "number" && typeof pdi === "number") {
5805
- const [fd, pd] = [file[fdi], pattern[pdi]];
5946
+ const [fd, pd] = [
5947
+ file[fdi],
5948
+ pattern[pdi]
5949
+ ];
5806
5950
  if (fd.toLowerCase() === pd.toLowerCase()) {
5807
5951
  pattern[pdi] = fd;
5808
- if (pdi > fdi) {
5809
- pattern = pattern.slice(pdi);
5810
- } else if (fdi > pdi) {
5811
- file = file.slice(fdi);
5812
- }
5952
+ patternStartIndex = pdi;
5953
+ fileStartIndex = fdi;
5813
5954
  }
5814
5955
  }
5815
5956
  }
@@ -5817,71 +5958,10 @@ var Minimatch = class {
5817
5958
  if (optimizationLevel >= 2) {
5818
5959
  file = this.levelTwoFileOptimize(file);
5819
5960
  }
5820
- this.debug("matchOne", this, { file, pattern });
5821
- this.debug("matchOne", file.length, pattern.length);
5822
- for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
5823
- this.debug("matchOne loop");
5824
- var p = pattern[pi];
5825
- var f = file[fi];
5826
- this.debug(pattern, p, f);
5827
- if (p === false) {
5828
- return false;
5829
- }
5830
- if (p === GLOBSTAR) {
5831
- this.debug("GLOBSTAR", [pattern, p, f]);
5832
- var fr = fi;
5833
- var pr = pi + 1;
5834
- if (pr === pl) {
5835
- this.debug("** at the end");
5836
- for (; fi < fl; fi++) {
5837
- if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
5838
- return false;
5839
- }
5840
- return true;
5841
- }
5842
- while (fr < fl) {
5843
- var swallowee = file[fr];
5844
- this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
5845
- if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
5846
- this.debug("globstar found match!", fr, fl, swallowee);
5847
- return true;
5848
- } else {
5849
- if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
5850
- this.debug("dot detected!", file, fr, pattern, pr);
5851
- break;
5852
- }
5853
- this.debug("globstar swallow a segment, and continue");
5854
- fr++;
5855
- }
5856
- }
5857
- if (partial) {
5858
- this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
5859
- if (fr === fl) {
5860
- return true;
5861
- }
5862
- }
5863
- return false;
5864
- }
5865
- let hit;
5866
- if (typeof p === "string") {
5867
- hit = f === p;
5868
- this.debug("string match", p, f, hit);
5869
- } else {
5870
- hit = p.test(f);
5871
- this.debug("pattern match", p, f, hit);
5872
- }
5873
- if (!hit)
5874
- return false;
5875
- }
5876
- if (fi === fl && pi === pl) {
5877
- return true;
5878
- } else if (fi === fl) {
5879
- return partial;
5880
- } else if (pi === pl) {
5881
- return fi === fl - 1 && file[fi] === "";
5882
- } else {
5883
- throw new Error("wtf?");
5961
+ if (pattern.includes(GLOBSTAR)) {
5962
+ return __privateMethod(this, _Minimatch_instances, matchGlobstar_fn).call(this, file, pattern, partial, fileStartIndex, patternStartIndex);
5884
5963
  }
5964
+ return __privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, pattern, partial, fileStartIndex, patternStartIndex);
5885
5965
  }
5886
5966
  braceExpand() {
5887
5967
  return braceExpand(this.pattern, this.options);
@@ -6020,6 +6100,135 @@ var Minimatch = class {
6020
6100
  return minimatch.defaults(def).Minimatch;
6021
6101
  }
6022
6102
  };
6103
+ _Minimatch_instances = new WeakSet();
6104
+ matchGlobstar_fn = function(file, pattern, partial, fileIndex, patternIndex) {
6105
+ const firstgs = pattern.indexOf(GLOBSTAR, patternIndex);
6106
+ const lastgs = pattern.lastIndexOf(GLOBSTAR);
6107
+ const [head, body, tail] = partial ? [
6108
+ pattern.slice(patternIndex, firstgs),
6109
+ pattern.slice(firstgs + 1),
6110
+ []
6111
+ ] : [
6112
+ pattern.slice(patternIndex, firstgs),
6113
+ pattern.slice(firstgs + 1, lastgs),
6114
+ pattern.slice(lastgs + 1)
6115
+ ];
6116
+ if (head.length) {
6117
+ const fileHead = file.slice(fileIndex, fileIndex + head.length);
6118
+ if (!__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, fileHead, head, partial, 0, 0))
6119
+ return false;
6120
+ fileIndex += head.length;
6121
+ }
6122
+ let fileTailMatch = 0;
6123
+ if (tail.length) {
6124
+ if (tail.length + fileIndex > file.length)
6125
+ return false;
6126
+ let tailStart = file.length - tail.length;
6127
+ if (__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, tail, partial, tailStart, 0)) {
6128
+ fileTailMatch = tail.length;
6129
+ } else {
6130
+ if (file[file.length - 1] !== "" || fileIndex + tail.length === file.length) {
6131
+ return false;
6132
+ }
6133
+ tailStart--;
6134
+ if (!__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, tail, partial, tailStart, 0))
6135
+ return false;
6136
+ fileTailMatch = tail.length + 1;
6137
+ }
6138
+ }
6139
+ if (!body.length) {
6140
+ let sawSome = !!fileTailMatch;
6141
+ for (let i3 = fileIndex; i3 < file.length - fileTailMatch; i3++) {
6142
+ const f = String(file[i3]);
6143
+ sawSome = true;
6144
+ if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
6145
+ return false;
6146
+ }
6147
+ }
6148
+ return partial || sawSome;
6149
+ }
6150
+ const bodySegments = [[[], 0]];
6151
+ let currentBody = bodySegments[0];
6152
+ let nonGsParts = 0;
6153
+ const nonGsPartsSums = [0];
6154
+ for (const b of body) {
6155
+ if (b === GLOBSTAR) {
6156
+ nonGsPartsSums.push(nonGsParts);
6157
+ currentBody = [[], 0];
6158
+ bodySegments.push(currentBody);
6159
+ } else {
6160
+ currentBody[0].push(b);
6161
+ nonGsParts++;
6162
+ }
6163
+ }
6164
+ let i2 = bodySegments.length - 1;
6165
+ const fileLength = file.length - fileTailMatch;
6166
+ for (const b of bodySegments) {
6167
+ b[1] = fileLength - (nonGsPartsSums[i2--] + b[0].length);
6168
+ }
6169
+ return !!__privateMethod(this, _Minimatch_instances, matchGlobStarBodySections_fn).call(this, file, bodySegments, fileIndex, 0, partial, 0, !!fileTailMatch);
6170
+ };
6171
+ matchGlobStarBodySections_fn = function(file, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) {
6172
+ const bs = bodySegments[bodyIndex];
6173
+ if (!bs) {
6174
+ for (let i2 = fileIndex; i2 < file.length; i2++) {
6175
+ sawTail = true;
6176
+ const f = file[i2];
6177
+ if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
6178
+ return false;
6179
+ }
6180
+ }
6181
+ return sawTail;
6182
+ }
6183
+ const [body, after] = bs;
6184
+ while (fileIndex <= after) {
6185
+ const m = __privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file.slice(0, fileIndex + body.length), body, partial, fileIndex, 0);
6186
+ if (m && globStarDepth < this.maxGlobstarRecursion) {
6187
+ const sub = __privateMethod(this, _Minimatch_instances, matchGlobStarBodySections_fn).call(this, file, bodySegments, fileIndex + body.length, bodyIndex + 1, partial, globStarDepth + 1, sawTail);
6188
+ if (sub !== false)
6189
+ return sub;
6190
+ }
6191
+ const f = file[fileIndex];
6192
+ if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
6193
+ return false;
6194
+ }
6195
+ fileIndex++;
6196
+ }
6197
+ return partial || null;
6198
+ };
6199
+ matchOne_fn = function(file, pattern, partial, fileIndex, patternIndex) {
6200
+ let fi;
6201
+ let pi;
6202
+ let pl;
6203
+ let fl;
6204
+ for (fi = fileIndex, pi = patternIndex, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
6205
+ this.debug("matchOne loop");
6206
+ let p = pattern[pi];
6207
+ let f = file[fi];
6208
+ this.debug(pattern, p, f);
6209
+ if (p === false || p === GLOBSTAR)
6210
+ return false;
6211
+ let hit;
6212
+ if (typeof p === "string") {
6213
+ hit = f === p;
6214
+ this.debug("string match", p, f, hit);
6215
+ } else {
6216
+ hit = p.test(f);
6217
+ this.debug("pattern match", p, f, hit);
6218
+ }
6219
+ if (!hit)
6220
+ return false;
6221
+ }
6222
+ if (fi === fl && pi === pl) {
6223
+ return true;
6224
+ } else if (fi === fl) {
6225
+ return partial;
6226
+ } else if (pi === pl) {
6227
+ return fi === fl - 1 && file[fi] === "";
6228
+ } else {
6229
+ throw new Error("wtf?");
6230
+ }
6231
+ };
6023
6232
  minimatch.AST = AST;
6024
6233
  minimatch.Minimatch = Minimatch;
6025
6234
  minimatch.escape = escape;
@@ -6107,7 +6316,7 @@ function proxyHostElement(elm, cstr) {
6107
6316
  const hostRef = getHostRef(elm);
6108
6317
  const members = Object.entries(cmpMeta.$members$);
6109
6318
  members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
6110
- var _a, _b;
6319
+ var _a2, _b;
6111
6320
  if (memberFlags & 31 /* Prop */) {
6112
6321
  const attributeName = metaAttributeName || memberName;
6113
6322
  const attrValue = elm.getAttribute(attributeName);
@@ -6115,7 +6324,7 @@ function proxyHostElement(elm, cstr) {
6115
6324
  let attrPropVal;
6116
6325
  const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(cstr.prototype, memberName) || {};
6117
6326
  if (attrValue != null) {
6118
- if ((_a = cmpMeta.$deserializers$) == null ? void 0 : _a[memberName]) {
6327
+ if ((_a2 = cmpMeta.$deserializers$) == null ? void 0 : _a2[memberName]) {
6119
6328
  for (const deserializer of cmpMeta.$deserializers$[memberName]) {
6120
6329
  const [[methodName]] = Object.entries(deserializer);
6121
6330
  attrPropVal = cstr.prototype[methodName](attrValue, memberName);
@@ -6148,8 +6357,8 @@ function proxyHostElement(elm, cstr) {
6148
6357
  Object.defineProperty(elm, memberName, getterSetterDescriptor);
6149
6358
  Object.defineProperty(elm, metaAttributeName, getterSetterDescriptor);
6150
6359
  hostRef.$fetchedCbList$.push(() => {
6151
- var _a2;
6152
- if (!((_a2 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _a2.has(memberName))) {
6360
+ var _a3;
6361
+ if (!((_a3 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _a3.has(memberName))) {
6153
6362
  setValue(
6154
6363
  elm,
6155
6364
  memberName,
@@ -6162,11 +6371,11 @@ function proxyHostElement(elm, cstr) {
6162
6371
  } else if (memberFlags & 64 /* Method */) {
6163
6372
  Object.defineProperty(elm, memberName, {
6164
6373
  value(...args) {
6165
- var _a2;
6374
+ var _a3;
6166
6375
  const ref = getHostRef(this);
6167
- return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
6168
- var _a3;
6169
- return (_a3 = ref == null ? void 0 : ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
6376
+ return (_a3 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a3.then(() => {
6377
+ var _a4;
6378
+ return (_a4 = ref == null ? void 0 : ref.$lazyInstance$) == null ? void 0 : _a4[memberName](...args);
6170
6379
  }).catch((e) => {
6171
6380
  consoleError(e, this);
6172
6381
  });
@@ -6177,8 +6386,8 @@ function proxyHostElement(elm, cstr) {
6177
6386
  }
6178
6387
  }
6179
6388
  function componentOnReady() {
6180
- var _a;
6181
- return (_a = getHostRef(this)) == null ? void 0 : _a.$onReadyPromise$;
6389
+ var _a2;
6390
+ return (_a2 = getHostRef(this)) == null ? void 0 : _a2.$onReadyPromise$;
6182
6391
  }
6183
6392
  function forceUpdate2() {
6184
6393
  }