@stencil/core 3.0.0-alpha.0 → 3.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/cli/index.cjs +4 -3
  2. package/cli/index.js +4 -3
  3. package/cli/package.json +1 -1
  4. package/compiler/lib.dom.d.ts +130 -185
  5. package/compiler/lib.dom.iterable.d.ts +1 -11
  6. package/compiler/lib.es2015.collection.d.ts +62 -1
  7. package/compiler/lib.es2015.proxy.d.ts +91 -2
  8. package/compiler/lib.es2017.intl.d.ts +16 -1
  9. package/compiler/lib.es2020.intl.d.ts +30 -5
  10. package/compiler/lib.es2021.intl.d.ts +11 -3
  11. package/compiler/lib.es2022.d.ts +1 -0
  12. package/compiler/lib.es2022.error.d.ts +2 -2
  13. package/compiler/lib.es2022.sharedmemory.d.ts +27 -0
  14. package/compiler/lib.es5.d.ts +13 -1
  15. package/compiler/lib.esnext.intl.d.ts +5 -1
  16. package/compiler/lib.webworker.d.ts +56 -29
  17. package/compiler/lib.webworker.iterable.d.ts +1 -1
  18. package/compiler/package.json +1 -1
  19. package/compiler/stencil.js +22807 -22740
  20. package/compiler/stencil.min.js +2 -2
  21. package/dependencies.json +2 -1
  22. package/dev-server/client/index.js +1 -1
  23. package/dev-server/client/package.json +1 -1
  24. package/dev-server/connector.html +2 -2
  25. package/dev-server/index.js +1 -1
  26. package/dev-server/package.json +1 -1
  27. package/dev-server/server-process.js +2 -2
  28. package/internal/app-data/package.json +1 -1
  29. package/internal/client/css-shim.js +1 -1
  30. package/internal/client/dom.js +1 -1
  31. package/internal/client/index.js +1 -1
  32. package/internal/client/package.json +1 -1
  33. package/internal/client/patch-browser.js +1 -1
  34. package/internal/client/patch-esm.js +1 -1
  35. package/internal/client/shadow-css.js +1 -1
  36. package/internal/hydrate/package.json +1 -1
  37. package/internal/package.json +1 -1
  38. package/internal/stencil-private.d.ts +1 -0
  39. package/internal/testing/package.json +1 -1
  40. package/mock-doc/index.cjs +1 -1
  41. package/mock-doc/index.js +1 -1
  42. package/mock-doc/package.json +1 -1
  43. package/package.json +4 -4
  44. package/screenshot/package.json +1 -1
  45. package/sys/node/index.js +3 -3
  46. package/sys/node/package.json +1 -1
  47. package/sys/node/worker.js +1 -1
  48. package/testing/index.js +597 -410
  49. package/testing/package.json +1 -1
  50. package/testing/puppeteer/puppeteer-element.d.ts +3 -3
package/testing/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Testing v3.0.0-alpha.0 | MIT Licensed | https://stenciljs.com
2
+ Stencil Testing v3.0.0-alpha.1 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  function _lazyRequire(e) {
5
5
  return new Proxy({}, {
@@ -36,21 +36,40 @@ function _interopNamespace(e) {
36
36
  })), t.default = e, Object.freeze(t);
37
37
  }
38
38
 
39
+ function createCommonjsModule(e, t, r) {
40
+ return e(r = {
41
+ path: t,
42
+ exports: {},
43
+ require: function(e, t) {
44
+ return function s() {
45
+ throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
46
+ }(null == t && r.path);
47
+ }
48
+ }, r.exports), r.exports;
49
+ }
50
+
39
51
  async function startPuppeteerBrowser(e) {
40
52
  if (!e.flags.e2e) return null;
41
- const t = process.env, r = e.testing.browserExecutablePath ? "puppeteer-core" : "puppeteer", s = e.sys.lazyRequire.getModulePath(e.rootDir, r), n = e.sys.lazyRequire.require(e.rootDir, s);
42
- t.__STENCIL_PUPPETEER_MODULE__ = s, t.__STENCIL_BROWSER_WAIT_UNTIL = e.testing.browserWaitUntil,
43
- e.flags.devtools && (e.testing.browserDevtools = !0, e.testing.browserHeadless = !1,
44
- t.__STENCIL_E2E_DEVTOOLS__ = "true"), e.logger.debug(`puppeteer: ${s}`), e.logger.debug(`puppeteer headless: ${e.testing.browserHeadless}`),
45
- Array.isArray(e.testing.browserArgs) && e.logger.debug(`puppeteer args: ${e.testing.browserArgs.join(" ")}`),
53
+ const t = process.env, r = e.testing.browserExecutablePath ? "puppeteer-core" : "puppeteer", s = e.sys.lazyRequire.getModulePath(e.rootDir, r), n = e.sys.platformPath.join(s, "package.json"), i = e.sys.lazyRequire.require(e.rootDir, s);
54
+ t.__STENCIL_PUPPETEER_MODULE__ = s;
55
+ try {
56
+ const r = e.sys.readFileSync(n, "utf8"), s = JSON.parse(r);
57
+ t.__STENCIL_PUPPETEER_VERSION__ = major_1(s.version);
58
+ } catch (e) {
59
+ console.error(`An error occurred determining the version of Puppeteer installed:\n${e}`),
60
+ t.__STENCIL_PUPPETEER_VERSION__ = void 0;
61
+ }
62
+ t.__STENCIL_BROWSER_WAIT_UNTIL = e.testing.browserWaitUntil, e.flags.devtools && (e.testing.browserDevtools = !0,
63
+ e.testing.browserHeadless = !1, t.__STENCIL_E2E_DEVTOOLS__ = "true"), e.logger.debug(`puppeteer: ${s}`),
64
+ e.logger.debug(`puppeteer headless: ${e.testing.browserHeadless}`), Array.isArray(e.testing.browserArgs) && e.logger.debug(`puppeteer args: ${e.testing.browserArgs.join(" ")}`),
46
65
  "boolean" == typeof e.testing.browserDevtools && e.logger.debug(`puppeteer devtools: ${e.testing.browserDevtools}`),
47
66
  "number" == typeof e.testing.browserSlowMo && e.logger.debug(`puppeteer slowMo: ${e.testing.browserSlowMo}`);
48
67
  const o = {
49
68
  ignoreHTTPSErrors: !0,
50
69
  slowMo: e.testing.browserSlowMo
51
70
  };
52
- let i;
53
- if (e.testing.browserWSEndpoint) i = await n.connect({
71
+ let a;
72
+ if (e.testing.browserWSEndpoint) a = await i.connect({
54
73
  browserWSEndpoint: e.testing.browserWSEndpoint,
55
74
  ...o
56
75
  }); else {
@@ -61,12 +80,12 @@ async function startPuppeteerBrowser(e) {
61
80
  ...o
62
81
  };
63
82
  e.testing.browserExecutablePath && (t.executablePath = e.testing.browserExecutablePath),
64
- i = await n.launch({
83
+ a = await i.launch({
65
84
  ...t
66
85
  });
67
86
  }
68
- return t.__STENCIL_BROWSER_WS_ENDPOINT__ = i.wsEndpoint(), e.logger.debug(`puppeteer browser wsEndpoint: ${t.__STENCIL_BROWSER_WS_ENDPOINT__}`),
69
- i;
87
+ return t.__STENCIL_BROWSER_WS_ENDPOINT__ = a.wsEndpoint(), e.logger.debug(`puppeteer browser wsEndpoint: ${t.__STENCIL_BROWSER_WS_ENDPOINT__}`),
88
+ a;
70
89
  }
71
90
 
72
91
  function transpile(e, t = {}) {
@@ -118,30 +137,30 @@ function getCompilerOptions(e) {
118
137
  };
119
138
  if (1 === e.category && (t.level = "error"), e.file) {
120
139
  t.absFilePath = e.file.fileName;
121
- const s = "string" != typeof (r = e.file.text) ? [] : (r = r.replace(/\\r/g, "\n")).split("\n"), n = e.file.getLineAndCharacterOfPosition(e.start), o = {
140
+ const s = "string" != typeof (r = e.file.text) ? [] : (r = r.replace(/\\r/g, "\n")).split("\n"), n = e.file.getLineAndCharacterOfPosition(e.start), i = {
122
141
  lineIndex: n.line,
123
142
  lineNumber: n.line + 1,
124
143
  text: s[n.line],
125
144
  errorCharStart: n.character,
126
145
  errorLength: Math.max(e.length, 1)
127
146
  };
128
- if (t.lineNumber = o.lineNumber, t.columnNumber = o.errorCharStart + 1, t.lines.push(o),
129
- 0 === o.errorLength && o.errorCharStart > 0 && (o.errorLength = 1, o.errorCharStart--),
130
- o.lineIndex > 0) {
147
+ if (t.lineNumber = i.lineNumber, t.columnNumber = i.errorCharStart + 1, t.lines.push(i),
148
+ 0 === i.errorLength && i.errorCharStart > 0 && (i.errorLength = 1, i.errorCharStart--),
149
+ i.lineIndex > 0) {
131
150
  const e = {
132
- lineIndex: o.lineIndex - 1,
133
- lineNumber: o.lineNumber - 1,
134
- text: s[o.lineIndex - 1],
151
+ lineIndex: i.lineIndex - 1,
152
+ lineNumber: i.lineNumber - 1,
153
+ text: s[i.lineIndex - 1],
135
154
  errorCharStart: -1,
136
155
  errorLength: -1
137
156
  };
138
157
  t.lines.unshift(e);
139
158
  }
140
- if (o.lineIndex + 1 < s.length) {
159
+ if (i.lineIndex + 1 < s.length) {
141
160
  const e = {
142
- lineIndex: o.lineIndex + 1,
143
- lineNumber: o.lineNumber + 1,
144
- text: s[o.lineIndex + 1],
161
+ lineIndex: i.lineIndex + 1,
162
+ lineNumber: i.lineNumber + 1,
163
+ text: s[i.lineIndex + 1],
145
164
  errorCharStart: -1,
146
165
  errorLength: -1
147
166
  };
@@ -224,7 +243,7 @@ async function runJest(e, t) {
224
243
  testLocationInResults: !1,
225
244
  "test-location-in-results": !1,
226
245
  ...n
227
- }, n.config = function o(e) {
246
+ }, n.config = function i(e) {
228
247
  const t = e.testing, r = require("jest-config").defaults, s = Object.keys(r), n = {};
229
248
  return Object.keys(t).forEach((e => {
230
249
  s.includes(e) && (n[e] = t[e]);
@@ -240,11 +259,11 @@ async function runJest(e, t) {
240
259
  n.maxWorkers = parseInt(n.maxWorkers, 10);
241
260
  } catch (e) {}
242
261
  return "string" == typeof n.ci && (n.ci = "true" === n.ci || "" === n.ci), n;
243
- }(e), o = function o(e, t) {
262
+ }(e), i = function i(e, t) {
244
263
  const r = t.projects ? t.projects : [];
245
264
  return r.push(e.rootDir), r;
246
- }(e, n), {runCLI: i} = require("@jest/core");
247
- r = !!(await i(n, o)).results.success;
265
+ }(e, n), {runCLI: o} = require("@jest/core");
266
+ r = !!(await o(n, i)).results.success;
248
267
  } catch (t) {
249
268
  e.logger.error(`runJest: ${t}`);
250
269
  }
@@ -292,11 +311,11 @@ function compareHtml(e, t, r) {
292
311
  });
293
312
  }
294
313
  }
295
- const o = index_cjs.parseHtmlToFragment(t), i = index_cjs.serializeNodeToHtml(o, {
314
+ const i = index_cjs.parseHtmlToFragment(t), o = index_cjs.serializeNodeToHtml(i, {
296
315
  prettyHtml: !0,
297
316
  excludeTags: [ "body" ]
298
317
  });
299
- return s !== i ? (expect(s).toBe(i), {
318
+ return s !== o ? (expect(s).toBe(o), {
300
319
  message: () => "HTML does not match",
301
320
  pass: !1
302
321
  }) : {
@@ -356,7 +375,7 @@ function assertPath(e) {
356
375
  }
357
376
 
358
377
  function normalizeStringPosix(e, t) {
359
- var r, s, n, o = "", i = 0, a = -1, l = 0;
378
+ var r, s, n, i = "", o = 0, a = -1, l = 0;
360
379
  for (s = 0; s <= e.length; ++s) {
361
380
  if (s < e.length) r = e.charCodeAt(s); else {
362
381
  if (47 === r) break;
@@ -364,27 +383,27 @@ function normalizeStringPosix(e, t) {
364
383
  }
365
384
  if (47 === r) {
366
385
  if (a === s - 1 || 1 === l) ; else if (a !== s - 1 && 2 === l) {
367
- if (o.length < 2 || 2 !== i || 46 !== o.charCodeAt(o.length - 1) || 46 !== o.charCodeAt(o.length - 2)) if (o.length > 2) {
368
- if ((n = o.lastIndexOf("/")) !== o.length - 1) {
369
- -1 === n ? (o = "", i = 0) : i = (o = o.slice(0, n)).length - 1 - o.lastIndexOf("/"),
386
+ if (i.length < 2 || 2 !== o || 46 !== i.charCodeAt(i.length - 1) || 46 !== i.charCodeAt(i.length - 2)) if (i.length > 2) {
387
+ if ((n = i.lastIndexOf("/")) !== i.length - 1) {
388
+ -1 === n ? (i = "", o = 0) : o = (i = i.slice(0, n)).length - 1 - i.lastIndexOf("/"),
370
389
  a = s, l = 0;
371
390
  continue;
372
391
  }
373
- } else if (2 === o.length || 1 === o.length) {
374
- o = "", i = 0, a = s, l = 0;
392
+ } else if (2 === i.length || 1 === i.length) {
393
+ i = "", o = 0, a = s, l = 0;
375
394
  continue;
376
395
  }
377
- t && (o.length > 0 ? o += "/.." : o = "..", i = 2);
378
- } else o.length > 0 ? o += "/" + e.slice(a + 1, s) : o = e.slice(a + 1, s), i = s - a - 1;
396
+ t && (i.length > 0 ? i += "/.." : i = "..", o = 2);
397
+ } else i.length > 0 ? i += "/" + e.slice(a + 1, s) : i = e.slice(a + 1, s), o = s - a - 1;
379
398
  a = s, l = 0;
380
399
  } else 46 === r && -1 !== l ? ++l : l = -1;
381
400
  }
382
- return o;
401
+ return i;
383
402
  }
384
403
 
385
404
  function specifierIncluded$1(e, t) {
386
- var r, s, n, o = e.split("."), i = t.split(" "), a = i.length > 1 ? i[0] : "=", l = (i.length > 1 ? i[1] : i[0]).split(".");
387
- for (r = 0; r < 3; ++r) if ((s = parseInt(o[r] || 0, 10)) !== (n = parseInt(l[r] || 0, 10))) return "<" === a ? s < n : ">=" === a && s >= n;
405
+ var r, s, n, i = e.split("."), o = t.split(" "), a = o.length > 1 ? o[0] : "=", l = (o.length > 1 ? o[1] : o[0]).split(".");
406
+ for (r = 0; r < 3; ++r) if ((s = parseInt(i[r] || 0, 10)) !== (n = parseInt(l[r] || 0, 10))) return "<" === a ? s < n : ">=" === a && s >= n;
388
407
  return ">=" === a;
389
408
  }
390
409
 
@@ -396,9 +415,9 @@ function matchesRange$1(e, t) {
396
415
  }
397
416
 
398
417
  function specifierIncluded(e) {
399
- var t, r, s, n = e.split(" "), o = n.length > 1 ? n[0] : "=", i = (n.length > 1 ? n[1] : n[0]).split(".");
400
- for (t = 0; t < 3; ++t) if ((r = parseInt(current[t] || 0, 10)) !== (s = parseInt(i[t] || 0, 10))) return "<" === o ? r < s : ">=" === o && r >= s;
401
- return ">=" === o;
418
+ var t, r, s, n = e.split(" "), i = n.length > 1 ? n[0] : "=", o = (n.length > 1 ? n[1] : n[0]).split(".");
419
+ for (t = 0; t < 3; ++t) if ((r = parseInt(current[t] || 0, 10)) !== (s = parseInt(o[t] || 0, 10))) return "<" === i ? r < s : ">=" === i && r >= s;
420
+ return ">=" === i;
402
421
  }
403
422
 
404
423
  function matchesRange(e) {
@@ -498,26 +517,26 @@ function mockCompilerCtx(e) {
498
517
  if (!0 === r.inMemoryOnly) {
499
518
  let n = e;
500
519
  n.endsWith("/") || (n += "/");
501
- const i = e.split("/");
520
+ const o = e.split("/");
502
521
  t.forEach(((t, n) => {
503
522
  if (!n.startsWith(e)) return;
504
523
  const a = n.split("/");
505
- if ((a.length === i.length + 1 || r.recursive && a.length > i.length) && t.exists) {
524
+ if ((a.length === o.length + 1 || r.recursive && a.length > o.length) && t.exists) {
506
525
  const e = {
507
526
  absPath: n,
508
- relPath: a[i.length],
527
+ relPath: a[o.length],
509
528
  isDirectory: t.isDirectory,
510
529
  isFile: t.isFile
511
530
  };
512
- o(r, e) || s.push(e);
531
+ i(r, e) || s.push(e);
513
532
  }
514
533
  }));
515
534
  } else await n(e, e, r, s);
516
535
  return s.sort(((e, t) => e.absPath < t.absPath ? -1 : e.absPath > t.absPath ? 1 : 0));
517
- }, n = async (t, r, s, i) => {
536
+ }, n = async (t, r, s, o) => {
518
537
  const a = await e.readDir(r);
519
538
  if (a.length > 0) {
520
- const e = v(r);
539
+ const e = _(r);
521
540
  e.exists = !0, e.isFile = !1, e.isDirectory = !0, await Promise.all(a.map((async e => {
522
541
  const r = normalizePath(e), a = normalizePath(path$2.relative(t, r)), c = await l(r), u = {
523
542
  absPath: r,
@@ -525,10 +544,10 @@ function mockCompilerCtx(e) {
525
544
  isDirectory: c.isDirectory,
526
545
  isFile: c.isFile
527
546
  };
528
- o(s, u) || (i.push(u), !0 === s.recursive && !0 === c.isDirectory && await n(t, r, s, i));
547
+ i(s, u) || (o.push(u), !0 === s.recursive && !0 === c.isDirectory && await n(t, r, s, o));
529
548
  })));
530
549
  }
531
- }, o = (e, t) => {
550
+ }, i = (e, t) => {
532
551
  if (t.isDirectory) {
533
552
  if (Array.isArray(e.excludeDirNames)) {
534
553
  const r = path$2.basename(t.absPath);
@@ -539,8 +558,8 @@ function mockCompilerCtx(e) {
539
558
  if (e.excludeExtensions.some((e => r.endsWith(e)))) return !0;
540
559
  }
541
560
  return !1;
542
- }, i = async e => {
543
- const t = v(e);
561
+ }, o = async e => {
562
+ const t = _(e);
544
563
  t.isFile = !1, t.isDirectory = !0, t.queueWriteToDisk || (t.queueDeleteFromDisk = !0);
545
564
  try {
546
565
  const t = await s(e, {
@@ -549,10 +568,10 @@ function mockCompilerCtx(e) {
549
568
  await Promise.all(t.map((e => e.relPath.endsWith(".gitkeep") ? null : a(e.absPath))));
550
569
  } catch (e) {}
551
570
  }, a = async e => {
552
- const t = v(e);
571
+ const t = _(e);
553
572
  t.queueWriteToDisk || (t.queueDeleteFromDisk = !0);
554
573
  }, l = async t => {
555
- const r = v(t);
574
+ const r = _(t);
556
575
  if ("boolean" != typeof r.isDirectory || "boolean" != typeof r.isFile) {
557
576
  const s = await e.stat(t);
558
577
  s.error ? r.exists = !1 : (r.exists = !0, s.isFile ? (r.isFile = !0, r.isDirectory = !1,
@@ -566,7 +585,7 @@ function mockCompilerCtx(e) {
566
585
  size: "number" == typeof r.size ? r.size : 0
567
586
  };
568
587
  }, c = t => {
569
- const r = v(t);
588
+ const r = _(t);
570
589
  if ("boolean" != typeof r.isDirectory || "boolean" != typeof r.isFile) {
571
590
  const s = e.statSync(t);
572
591
  s.error ? r.exists = !1 : (r.exists = !0, s.isFile ? (r.isFile = !0, r.isDirectory = !1,
@@ -582,26 +601,26 @@ function mockCompilerCtx(e) {
582
601
  }, u = async (t, s, n) => {
583
602
  if ("string" != typeof t) throw new Error(`writeFile, invalid filePath: ${t}`);
584
603
  if ("string" != typeof s) throw new Error(`writeFile, invalid content: ${t}`);
585
- const o = {
604
+ const i = {
586
605
  ignored: !1,
587
606
  changedContent: !1,
588
607
  queuedWrite: !1
589
608
  };
590
- if (!0 === shouldIgnore(t)) return o.ignored = !0, o;
591
- const i = v(t);
592
- if (i.exists = !0, i.isFile = !0, i.isDirectory = !1, i.queueDeleteFromDisk = !1,
593
- "string" == typeof i.fileText ? o.changedContent = i.fileText.replace(/\r/g, "") !== s.replace(/\r/g, "") : o.changedContent = !0,
594
- i.fileText = s, o.queuedWrite = !1, null != n && ("string" == typeof n.outputTargetType && r.set(t, n.outputTargetType),
595
- !1 === n.useCache && (i.useCache = !1)), null != n && !0 === n.inMemoryOnly) i.queueWriteToDisk ? o.queuedWrite = !0 : i.queueWriteToDisk = !1,
609
+ if (!0 === shouldIgnore(t)) return i.ignored = !0, i;
610
+ const o = _(t);
611
+ if (o.exists = !0, o.isFile = !0, o.isDirectory = !1, o.queueDeleteFromDisk = !1,
612
+ "string" == typeof o.fileText ? i.changedContent = o.fileText.replace(/\r/g, "") !== s.replace(/\r/g, "") : i.changedContent = !0,
613
+ o.fileText = s, i.queuedWrite = !1, null != n && ("string" == typeof n.outputTargetType && r.set(t, n.outputTargetType),
614
+ !1 === n.useCache && (o.useCache = !1)), null != n && !0 === n.inMemoryOnly) o.queueWriteToDisk ? i.queuedWrite = !0 : o.queueWriteToDisk = !1,
596
615
  await d(t, !0); else if (null != n && !0 === n.immediateWrite) {
597
- if (o.changedContent || !0 !== n.useCache) {
616
+ if (i.changedContent || !0 !== n.useCache) {
598
617
  const r = await e.readFile(t);
599
- "string" == typeof r && (o.changedContent = i.fileText.replace(/\r/g, "") !== r.replace(/\r/g, "")),
600
- o.changedContent && (await d(t, !1), await e.writeFile(t, i.fileText));
618
+ "string" == typeof r && (i.changedContent = o.fileText.replace(/\r/g, "") !== r.replace(/\r/g, "")),
619
+ i.changedContent && (await d(t, !1), await e.writeFile(t, o.fileText));
601
620
  }
602
- } else i.queueWriteToDisk || !0 !== o.changedContent || (i.queueWriteToDisk = !0,
603
- o.queuedWrite = !0);
604
- return o;
621
+ } else o.queueWriteToDisk || !0 !== i.changedContent || (o.queueWriteToDisk = !0,
622
+ i.queuedWrite = !0);
623
+ return i;
605
624
  }, d = async (e, t) => {
606
625
  const r = [];
607
626
  for (;"string" == typeof (e = path$2.dirname(e)) && e.length > 0 && "/" !== e && !1 === e.endsWith(":/") && !1 === e.endsWith(":\\"); ) r.push(e);
@@ -609,7 +628,7 @@ function mockCompilerCtx(e) {
609
628
  }, h = async (t, r) => {
610
629
  const s = [];
611
630
  for (const n of t) {
612
- const t = v(n);
631
+ const t = _(n);
613
632
  if (!0 !== t.exists || !0 !== t.isDirectory) try {
614
633
  t.exists = !0, t.isDirectory = !0, t.isFile = !1, r || await e.createDir(n), s.push(n);
615
634
  } catch (e) {}
@@ -622,9 +641,9 @@ function mockCompilerCtx(e) {
622
641
  if ("string" != typeof e) throw new Error("unable to writeFile without filePath");
623
642
  return m(e);
624
643
  }))), m = async t => {
625
- const r = v(t);
644
+ const r = _(t);
626
645
  if (null == r.fileText) throw new Error(`unable to find item fileText to write: ${t}`);
627
- return await e.writeFile(t, r.fileText), !1 === r.useCache && _(t), t;
646
+ return await e.writeFile(t, r.fileText), !1 === r.useCache && E(t), t;
628
647
  }, g = async t => await Promise.all(t.map((async t => {
629
648
  if ("string" != typeof t) throw new Error("unable to unlink without filePath");
630
649
  return await e.removeFile(t), t;
@@ -635,13 +654,13 @@ function mockCompilerCtx(e) {
635
654
  }, w = e => {
636
655
  e = normalizePath(e), t.forEach(((t, r) => {
637
656
  const s = path$2.relative(e, r).split("/")[0];
638
- s.startsWith(".") || s.startsWith("/") || _(r);
657
+ s.startsWith(".") || s.startsWith("/") || E(r);
639
658
  }));
640
- }, _ = e => {
659
+ }, E = e => {
641
660
  e = normalizePath(e);
642
661
  const r = t.get(e);
643
662
  null == r || r.queueWriteToDisk || t.delete(e);
644
- }, v = e => {
663
+ }, _ = e => {
645
664
  e = normalizePath(e);
646
665
  let r = t.get(e);
647
666
  return null != r || t.set(e, r = {
@@ -656,25 +675,25 @@ function mockCompilerCtx(e) {
656
675
  queueWriteToDisk: null,
657
676
  useCache: null
658
677
  }), r;
659
- }, b = 5242880;
678
+ }, v = 5242880;
660
679
  return {
661
680
  access: async e => {
662
- const t = v(e);
681
+ const t = _(e);
663
682
  return "boolean" != typeof t.exists ? (await l(e)).exists : t.exists;
664
683
  },
665
684
  accessSync: e => {
666
- const t = v(e);
685
+ const t = _(e);
667
686
  return "boolean" != typeof t.exists ? c(e).exists : t.exists;
668
687
  },
669
688
  cancelDeleteDirectoriesFromDisk: e => {
670
689
  for (const t of e) {
671
- const e = v(t);
690
+ const e = _(t);
672
691
  !0 === e.queueDeleteFromDisk && (e.queueDeleteFromDisk = !1);
673
692
  }
674
693
  },
675
694
  cancelDeleteFilesFromDisk: e => {
676
695
  for (const t of e) {
677
- const e = v(t);
696
+ const e = _(t);
678
697
  !0 === e.isFile && !0 === e.queueDeleteFromDisk && (e.queueDeleteFromDisk = !1);
679
698
  }
680
699
  },
@@ -682,19 +701,19 @@ function mockCompilerCtx(e) {
682
701
  t.clear();
683
702
  },
684
703
  clearDirCache: w,
685
- clearFileCache: _,
704
+ clearFileCache: E,
686
705
  commit: async () => {
687
- const e = getCommitInstructions(t), r = await h(e.dirsToEnsure, !1), s = await f(e.filesToWrite), n = await p(e.filesToCopy), o = await g(e.filesToDelete), i = await y(e.dirsToDelete);
688
- return e.filesToDelete.forEach(_), e.dirsToDelete.forEach(w), {
706
+ const e = getCommitInstructions(t), r = await h(e.dirsToEnsure, !1), s = await f(e.filesToWrite), n = await p(e.filesToCopy), i = await g(e.filesToDelete), o = await y(e.dirsToDelete);
707
+ return e.filesToDelete.forEach(E), e.dirsToDelete.forEach(w), {
689
708
  filesCopied: n,
690
709
  filesWritten: s,
691
- filesDeleted: o,
692
- dirsDeleted: i,
710
+ filesDeleted: i,
711
+ dirsDeleted: o,
693
712
  dirsAdded: r
694
713
  };
695
714
  },
696
715
  copyFile: async (e, t) => {
697
- v(e).queueCopyFileToDest = t;
716
+ _(e).queueCopyFileToDest = t;
698
717
  },
699
718
  emptyDirs: async e => {
700
719
  e = e.filter(isString).map(normalizePath).reduce(((e, t) => (e.includes(t) || e.push(t),
@@ -707,7 +726,7 @@ function mockCompilerCtx(e) {
707
726
  const r = e.split("/").length, s = t.split("/").length;
708
727
  return r < s ? 1 : r > s ? -1 : 0;
709
728
  })), await Promise.all(r.map(a)), e.forEach((e => {
710
- const t = v(e);
729
+ const t = _(e);
711
730
  t.isFile = !1, t.isDirectory = !0, t.queueWriteToDisk = !0, t.queueDeleteFromDisk = !1;
712
731
  }));
713
732
  },
@@ -721,30 +740,30 @@ function mockCompilerCtx(e) {
721
740
  });
722
741
  })), e.forEach((e => e.files.sort())), e.sort(((e, t) => e.type < t.type ? -1 : e.type > t.type ? 1 : 0));
723
742
  },
724
- getItem: v,
743
+ getItem: _,
725
744
  getMemoryStats: () => `data length: ${t.size}`,
726
745
  readFile: async (t, r) => {
727
746
  if (null == r || !0 === r.useCache || void 0 === r.useCache) {
728
- const e = v(t);
747
+ const e = _(t);
729
748
  if (e.exists && "string" == typeof e.fileText) return e.fileText;
730
749
  }
731
- const s = await e.readFile(t), n = v(t);
732
- return "string" == typeof s ? s.length < b && (n.exists = !0, n.isFile = !0, n.isDirectory = !1,
750
+ const s = await e.readFile(t), n = _(t);
751
+ return "string" == typeof s ? s.length < v && (n.exists = !0, n.isFile = !0, n.isDirectory = !1,
733
752
  n.fileText = s) : n.exists = !1, s;
734
753
  },
735
754
  readFileSync: (t, r) => {
736
755
  if (null == r || !0 === r.useCache || void 0 === r.useCache) {
737
- const e = v(t);
756
+ const e = _(t);
738
757
  if (e.exists && "string" == typeof e.fileText) return e.fileText;
739
758
  }
740
- const s = e.readFileSync(t), n = v(t);
741
- return "string" == typeof s ? s.length < b && (n.exists = !0, n.isFile = !0, n.isDirectory = !1,
759
+ const s = e.readFileSync(t), n = _(t);
760
+ return "string" == typeof s ? s.length < v && (n.exists = !0, n.isFile = !0, n.isDirectory = !1,
742
761
  n.fileText = s) : n.exists = !1, s;
743
762
  },
744
763
  readdir: s,
745
764
  remove: async e => {
746
765
  const t = await l(e);
747
- !0 === t.isDirectory ? await i(e) : !0 === t.isFile && await a(e);
766
+ !0 === t.isDirectory ? await o(e) : !0 === t.isFile && await a(e);
748
767
  },
749
768
  stat: l,
750
769
  statSync: c,
@@ -787,19 +806,19 @@ async function initPageEvents(e) {
787
806
  }
788
807
 
789
808
  async function pageSpyOnEvent(e, t, r) {
790
- const s = new EventSpy(t), n = "document" !== r ? () => window : () => document, o = await e.evaluateHandle(n);
791
- return await addE2EListener(e, o, t, (e => {
809
+ const s = new EventSpy(t), n = "document" !== r ? () => window : () => document, i = await e.evaluateHandle(n);
810
+ return await addE2EListener(e, i, t, (e => {
792
811
  s.push(e);
793
812
  })), s;
794
813
  }
795
814
 
796
815
  async function waitForEvent(e, t, r) {
797
816
  const s = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, n = await e.evaluate(((e, t, r) => new Promise(((s, n) => {
798
- const o = setTimeout((() => {
817
+ const i = setTimeout((() => {
799
818
  n(new Error(`waitForEvent() timeout, eventName: ${t}`));
800
819
  }), r);
801
820
  e.addEventListener(t, (e => {
802
- clearTimeout(o), s(window.stencilSerializeEvent(e));
821
+ clearTimeout(i), s(window.stencilSerializeEvent(e));
803
822
  }), {
804
823
  once: !0
805
824
  });
@@ -812,13 +831,11 @@ async function addE2EListener(e, t, r, s) {
812
831
  e._e2eEvents.set(n, {
813
832
  eventName: r,
814
833
  callback: s
815
- });
816
- const o = t.executionContext();
817
- await o.evaluate(((e, t, r) => {
834
+ }), await t.evaluate(((e, t, r) => {
818
835
  e.addEventListener(r, (e => {
819
836
  window.stencilOnEvent(t, window.stencilSerializeEvent(e));
820
837
  }));
821
- }), t, n, r);
838
+ }), n, r);
822
839
  }
823
840
 
824
841
  function browserContextEvents() {
@@ -870,7 +887,7 @@ function browserContextEvents() {
870
887
  }
871
888
 
872
889
  async function find(e, t, r) {
873
- const {lightSelector: s, shadowSelector: n, text: o, contains: i} = getSelector(r);
890
+ const {lightSelector: s, shadowSelector: n, text: i, contains: o} = getSelector(r);
874
891
  let a;
875
892
  if (a = "string" == typeof s ? await async function l(e, t, r, s) {
876
893
  let n = await t.$(r);
@@ -898,20 +915,20 @@ async function find(e, t, r) {
898
915
  }(e), s;
899
916
  }), t, r, s);
900
917
  return n ? n.asElement() : null;
901
- }(e, t, o, i), !a) return null;
918
+ }(e, t, i, o), !a) return null;
902
919
  const u = new E2EElement(e, a);
903
920
  return await u.e2eSync(), u;
904
921
  }
905
922
 
906
923
  async function findAll(e, t, r) {
907
- const s = [], {lightSelector: n, shadowSelector: o} = getSelector(r), i = await t.$$(n);
908
- if (0 === i.length) return s;
909
- if (o) for (let t = 0; t < i.length; t++) {
910
- const r = i[t].executionContext(), n = await r.evaluateHandle(((e, t) => {
924
+ const s = [], {lightSelector: n, shadowSelector: i} = getSelector(r), o = await t.$$(n);
925
+ if (0 === o.length) return s;
926
+ if (i) for (let t = 0; t < o.length; t++) {
927
+ const r = getPuppeteerExecution(o[t]), n = await r.evaluateHandle(((e, t) => {
911
928
  if (!e.shadowRoot) throw new Error(`shadow root does not exist for element: ${e.tagName.toLowerCase()}`);
912
929
  return e.shadowRoot.querySelectorAll(t);
913
- }), i[t], o);
914
- await i[t].dispose();
930
+ }), o[t], i);
931
+ await o[t].dispose();
915
932
  const a = await n.getProperties();
916
933
  await n.dispose();
917
934
  for (const t of a.values()) {
@@ -921,8 +938,8 @@ async function findAll(e, t, r) {
921
938
  await t.e2eSync(), s.push(t);
922
939
  }
923
940
  }
924
- } else for (let t = 0; t < i.length; t++) {
925
- const r = new E2EElement(e, i[t]);
941
+ } else for (let t = 0; t < o.length; t++) {
942
+ const r = new E2EElement(e, o[t]);
926
943
  await r.e2eSync(), s.push(r);
927
944
  }
928
945
  return s;
@@ -945,6 +962,10 @@ function getSelector(e) {
945
962
  return t;
946
963
  }
947
964
 
965
+ function getPuppeteerExecution(e) {
966
+ return parseInt(process.env.__STENCIL_PUPPETEER_VERSION__, 10) >= 17 ? e.frame : e.executionContext();
967
+ }
968
+
948
969
  async function writeScreenshotData(e, t) {
949
970
  const r = function s(e, t) {
950
971
  const r = `${t}.json`;
@@ -961,7 +982,7 @@ function writeFile(e, t) {
961
982
  }));
962
983
  }
963
984
 
964
- async function compareScreenshot(e, t, r, s, n, o, i, a) {
985
+ async function compareScreenshot(e, t, r, s, n, i, o, a) {
965
986
  const l = `${crypto$3.createHash("md5").update(r).digest("hex")}.png`, c = path$2.join(t.imagesDir, l);
966
987
  await async function u(e, t) {
967
988
  await function r(e) {
@@ -969,7 +990,7 @@ async function compareScreenshot(e, t, r, s, n, o, i, a) {
969
990
  fs__default.default.access(e, (e => t(!e)));
970
991
  }));
971
992
  }(e) || await writeFile(e, t);
972
- }(c, r), r = null, i && (i = normalizePath(path$2.relative(t.rootDir, i)));
993
+ }(c, r), r = null, o && (o = normalizePath(path$2.relative(t.rootDir, o)));
973
994
  const d = function h(e, t) {
974
995
  if ("string" != typeof t || 0 === t.trim().length) throw new Error("invalid test description");
975
996
  const r = crypto$3.createHash("md5");
@@ -982,9 +1003,9 @@ async function compareScreenshot(e, t, r, s, n, o, i, a) {
982
1003
  device: e.device,
983
1004
  userAgent: e.userAgent,
984
1005
  desc: s,
985
- testPath: i,
1006
+ testPath: o,
986
1007
  width: n,
987
- height: o,
1008
+ height: i,
988
1009
  deviceScaleFactor: e.viewport.deviceScaleFactor,
989
1010
  hasTouch: e.viewport.hasTouch,
990
1011
  isLandscape: e.viewport.isLandscape,
@@ -998,14 +1019,14 @@ async function compareScreenshot(e, t, r, s, n, o, i, a) {
998
1019
  device: e.device,
999
1020
  userAgent: e.userAgent,
1000
1021
  width: n,
1001
- height: o,
1022
+ height: i,
1002
1023
  deviceScaleFactor: e.viewport.deviceScaleFactor,
1003
1024
  hasTouch: e.viewport.hasTouch,
1004
1025
  isLandscape: e.viewport.isLandscape,
1005
1026
  isMobile: e.viewport.isMobile,
1006
1027
  allowableMismatchedPixels: t.allowableMismatchedPixels,
1007
1028
  allowableMismatchedRatio: t.allowableMismatchedRatio,
1008
- testPath: i
1029
+ testPath: o
1009
1030
  }
1010
1031
  };
1011
1032
  if (t.updateMaster) return await writeScreenshotData(t.currentBuildDir, p), p.diff;
@@ -1027,7 +1048,7 @@ async function compareScreenshot(e, t, r, s, n, o, i, a) {
1027
1048
  };
1028
1049
  p.diff.mismatchedPixels = await async function g(e, t) {
1029
1050
  return new Promise(((r, s) => {
1030
- const n = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, o = setTimeout((() => {
1051
+ const n = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, i = setTimeout((() => {
1031
1052
  s(`getMismatchedPixels timeout: ${n}ms`);
1032
1053
  }), n);
1033
1054
  try {
@@ -1036,14 +1057,14 @@ async function compareScreenshot(e, t, r, s, n, o, i, a) {
1036
1057
  env: process.env,
1037
1058
  cwd: process.cwd(),
1038
1059
  stdio: [ "pipe", "pipe", "pipe", "ipc" ]
1039
- }, i = child_process$2.fork(e, [], n);
1040
- i.on("message", (e => {
1041
- i.kill(), clearTimeout(o), r(e);
1042
- })), i.on("error", (e => {
1043
- clearTimeout(o), s(e);
1044
- })), i.send(t);
1060
+ }, o = child_process$2.fork(e, [], n);
1061
+ o.on("message", (e => {
1062
+ o.kill(), clearTimeout(i), r(e);
1063
+ })), o.on("error", (e => {
1064
+ clearTimeout(i), s(e);
1065
+ })), o.send(t);
1045
1066
  } catch (e) {
1046
- clearTimeout(o), s(`getMismatchedPixels error: ${e}`);
1067
+ clearTimeout(i), s(`getMismatchedPixels error: ${e}`);
1047
1068
  }
1048
1069
  }));
1049
1070
  }(t.pixelmatchModulePath, n);
@@ -1060,9 +1081,9 @@ async function e2eGoTo(e, t, r = {}) {
1060
1081
  if ("string" != typeof s) throw new Error("invalid gotoTest() browser url");
1061
1082
  const n = s + t.substring(1);
1062
1083
  r.waitUntil || (r.waitUntil = env.__STENCIL_BROWSER_WAIT_UNTIL);
1063
- const o = await e._e2eGoto(n, r);
1064
- if (!o.ok()) throw new Error(`Testing unable to load ${t}, HTTP status: ${o.status()}`);
1065
- return await waitForStencil(e, r), o;
1084
+ const i = await e._e2eGoto(n, r);
1085
+ if (!i.ok()) throw new Error(`Testing unable to load ${t}, HTTP status: ${i.status()}`);
1086
+ return await waitForStencil(e, r), i;
1066
1087
  }
1067
1088
 
1068
1089
  async function e2eSetContent(e, t, r = {}) {
@@ -1071,18 +1092,18 @@ async function e2eSetContent(e, t, r = {}) {
1071
1092
  const s = [], n = env.__STENCIL_APP_SCRIPT_URL__;
1072
1093
  if ("string" != typeof n) throw new Error("invalid e2eSetContent() app script url");
1073
1094
  s.push("<!doctype html>"), s.push("<html>"), s.push("<head>");
1074
- const o = env.__STENCIL_APP_STYLE_URL__;
1075
- "string" == typeof o && s.push(`<link rel="stylesheet" href="${o}">`), s.push(`<script type="module" src="${n}"><\/script>`),
1095
+ const i = env.__STENCIL_APP_STYLE_URL__;
1096
+ "string" == typeof i && s.push(`<link rel="stylesheet" href="${i}">`), s.push(`<script type="module" src="${n}"><\/script>`),
1076
1097
  s.push("</head>"), s.push("<body>"), s.push(t), s.push("</body>"), s.push("</html>");
1077
- const i = env.__STENCIL_BROWSER_URL__;
1098
+ const o = env.__STENCIL_BROWSER_URL__;
1078
1099
  await e.setRequestInterception(!0), e.on("request", (e => {
1079
- i === e.url() ? e.respond({
1100
+ o === e.url() ? e.respond({
1080
1101
  status: 200,
1081
1102
  contentType: "text/html",
1082
1103
  body: s.join("\n")
1083
1104
  }) : e.continue();
1084
1105
  })), r.waitUntil || (r.waitUntil = env.__STENCIL_BROWSER_WAIT_UNTIL);
1085
- const a = await e._e2eGoto(i, r);
1106
+ const a = await e._e2eGoto(o, r);
1086
1107
  if (!a.ok()) throw new Error("Testing unable to load content");
1087
1108
  return await waitForStencil(e, r), a;
1088
1109
  }
@@ -1173,20 +1194,196 @@ function getAppStyleUrl(e, t) {
1173
1194
  function getAppUrl(e, t, r) {
1174
1195
  const s = e.outputTargets.find(isOutputTargetWww);
1175
1196
  if (s) {
1176
- const e = s.buildDir, n = path$2.join(e, r), o = path$2.relative(s.dir, n);
1177
- return new URL(o, t).href;
1197
+ const e = s.buildDir, n = path$2.join(e, r), i = path$2.relative(s.dir, n);
1198
+ return new URL(i, t).href;
1178
1199
  }
1179
1200
  const n = e.outputTargets.find(isOutputTargetDistLazy);
1180
1201
  if (n) {
1181
- const s = n.esmDir, o = path$2.join(s, r), i = path$2.relative(e.rootDir, o);
1182
- return new URL(i, t).href;
1202
+ const s = n.esmDir, i = path$2.join(s, r), o = path$2.relative(e.rootDir, i);
1203
+ return new URL(o, t).href;
1183
1204
  }
1184
1205
  return t;
1185
1206
  }
1186
1207
 
1187
- var posix, pathBrowserify, caller, pathParse, parse, getNodeModulesDirs, nodeModulesPaths, normalizeOptions, ERROR_MESSAGE, slice, toStr, implementation, functionBind, src, isCoreModule, realpathFS$1, defaultIsFile$1, defaultIsDir$1, defaultRealpath, maybeRealpath, defaultReadPackage, getPackageCandidates$1, async, current, core, mod, core_1, isCore, realpathFS, defaultIsFile, defaultIsDir, defaultRealpathSync, maybeRealpathSync, defaultReadPackageSync, getPackageCandidates, sync, resolve;
1208
+ var debug_1, constants$2, re_1, parseOptions_1, identifiers, semver, major_1, posix, pathBrowserify, caller, pathParse, parse, getNodeModulesDirs, nodeModulesPaths, normalizeOptions, ERROR_MESSAGE, slice, toStr, implementation, functionBind, src, isCoreModule, realpathFS$1, defaultIsFile$1, defaultIsDir$1, defaultRealpath, maybeRealpath, defaultReadPackage, getPackageCandidates$1, async, current, core, mod, core_1, isCore, realpathFS, defaultIsFile, defaultIsDir, defaultRealpathSync, maybeRealpathSync, defaultReadPackageSync, getPackageCandidates, sync, resolve;
1209
+
1210
+ const stencil_js = require("../compiler/stencil.js"), appData = _lazyRequire("@stencil/core/internal/app-data"), testing = _lazyRequire("@stencil/core/internal/testing"), index_cjs = _lazyRequire("../mock-doc/index.cjs"), path$2 = require("path"), crypto$3 = require("crypto"), os$2 = require("os"), process$3 = require("process"), fs$2 = require("fs"), index_js = _lazyRequire("../dev-server/index.js"), child_process$2 = require("child_process"), path__default = _interopDefaultLegacy(path$2), os__namespace = _interopNamespace(os$2), process__namespace = _interopNamespace(process$3), fs__default = _interopDefaultLegacy(fs$2), debug = ("object" == typeof process && process.env,
1211
+ () => {});
1212
+
1213
+ debug_1 = debug;
1214
+
1215
+ const MAX_SAFE_INTEGER$1 = Number.MAX_SAFE_INTEGER || 9007199254740991;
1216
+
1217
+ constants$2 = {
1218
+ SEMVER_SPEC_VERSION: "2.0.0",
1219
+ MAX_LENGTH: 256,
1220
+ MAX_SAFE_INTEGER: MAX_SAFE_INTEGER$1,
1221
+ MAX_SAFE_COMPONENT_LENGTH: 16
1222
+ }, re_1 = createCommonjsModule((function(e, t) {
1223
+ const {MAX_SAFE_COMPONENT_LENGTH: r} = constants$2, s = (t = e.exports = {}).re = [], n = t.src = [], i = t.t = {};
1224
+ let o = 0;
1225
+ const a = (e, t, r) => {
1226
+ const a = o++;
1227
+ debug_1(e, a, t), i[e] = a, n[a] = t, s[a] = new RegExp(t, r ? "g" : void 0);
1228
+ };
1229
+ a("NUMERICIDENTIFIER", "0|[1-9]\\d*"), a("NUMERICIDENTIFIERLOOSE", "[0-9]+"), a("NONNUMERICIDENTIFIER", "\\d*[a-zA-Z-][a-zA-Z0-9-]*"),
1230
+ a("MAINVERSION", `(${n[i.NUMERICIDENTIFIER]})\\.(${n[i.NUMERICIDENTIFIER]})\\.(${n[i.NUMERICIDENTIFIER]})`),
1231
+ a("MAINVERSIONLOOSE", `(${n[i.NUMERICIDENTIFIERLOOSE]})\\.(${n[i.NUMERICIDENTIFIERLOOSE]})\\.(${n[i.NUMERICIDENTIFIERLOOSE]})`),
1232
+ a("PRERELEASEIDENTIFIER", `(?:${n[i.NUMERICIDENTIFIER]}|${n[i.NONNUMERICIDENTIFIER]})`),
1233
+ a("PRERELEASEIDENTIFIERLOOSE", `(?:${n[i.NUMERICIDENTIFIERLOOSE]}|${n[i.NONNUMERICIDENTIFIER]})`),
1234
+ a("PRERELEASE", `(?:-(${n[i.PRERELEASEIDENTIFIER]}(?:\\.${n[i.PRERELEASEIDENTIFIER]})*))`),
1235
+ a("PRERELEASELOOSE", `(?:-?(${n[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${n[i.PRERELEASEIDENTIFIERLOOSE]})*))`),
1236
+ a("BUILDIDENTIFIER", "[0-9A-Za-z-]+"), a("BUILD", `(?:\\+(${n[i.BUILDIDENTIFIER]}(?:\\.${n[i.BUILDIDENTIFIER]})*))`),
1237
+ a("FULLPLAIN", `v?${n[i.MAINVERSION]}${n[i.PRERELEASE]}?${n[i.BUILD]}?`), a("FULL", `^${n[i.FULLPLAIN]}$`),
1238
+ a("LOOSEPLAIN", `[v=\\s]*${n[i.MAINVERSIONLOOSE]}${n[i.PRERELEASELOOSE]}?${n[i.BUILD]}?`),
1239
+ a("LOOSE", `^${n[i.LOOSEPLAIN]}$`), a("GTLT", "((?:<|>)?=?)"), a("XRANGEIDENTIFIERLOOSE", `${n[i.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),
1240
+ a("XRANGEIDENTIFIER", `${n[i.NUMERICIDENTIFIER]}|x|X|\\*`), a("XRANGEPLAIN", `[v=\\s]*(${n[i.XRANGEIDENTIFIER]})(?:\\.(${n[i.XRANGEIDENTIFIER]})(?:\\.(${n[i.XRANGEIDENTIFIER]})(?:${n[i.PRERELEASE]})?${n[i.BUILD]}?)?)?`),
1241
+ a("XRANGEPLAINLOOSE", `[v=\\s]*(${n[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[i.XRANGEIDENTIFIERLOOSE]})(?:${n[i.PRERELEASELOOSE]})?${n[i.BUILD]}?)?)?`),
1242
+ a("XRANGE", `^${n[i.GTLT]}\\s*${n[i.XRANGEPLAIN]}$`), a("XRANGELOOSE", `^${n[i.GTLT]}\\s*${n[i.XRANGEPLAINLOOSE]}$`),
1243
+ a("COERCE", `(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),
1244
+ a("COERCERTL", n[i.COERCE], !0), a("LONETILDE", "(?:~>?)"), a("TILDETRIM", `(\\s*)${n[i.LONETILDE]}\\s+`, !0),
1245
+ t.tildeTrimReplace = "$1~", a("TILDE", `^${n[i.LONETILDE]}${n[i.XRANGEPLAIN]}$`),
1246
+ a("TILDELOOSE", `^${n[i.LONETILDE]}${n[i.XRANGEPLAINLOOSE]}$`), a("LONECARET", "(?:\\^)"),
1247
+ a("CARETTRIM", `(\\s*)${n[i.LONECARET]}\\s+`, !0), t.caretTrimReplace = "$1^", a("CARET", `^${n[i.LONECARET]}${n[i.XRANGEPLAIN]}$`),
1248
+ a("CARETLOOSE", `^${n[i.LONECARET]}${n[i.XRANGEPLAINLOOSE]}$`), a("COMPARATORLOOSE", `^${n[i.GTLT]}\\s*(${n[i.LOOSEPLAIN]})$|^$`),
1249
+ a("COMPARATOR", `^${n[i.GTLT]}\\s*(${n[i.FULLPLAIN]})$|^$`), a("COMPARATORTRIM", `(\\s*)${n[i.GTLT]}\\s*(${n[i.LOOSEPLAIN]}|${n[i.XRANGEPLAIN]})`, !0),
1250
+ t.comparatorTrimReplace = "$1$2$3", a("HYPHENRANGE", `^\\s*(${n[i.XRANGEPLAIN]})\\s+-\\s+(${n[i.XRANGEPLAIN]})\\s*$`),
1251
+ a("HYPHENRANGELOOSE", `^\\s*(${n[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${n[i.XRANGEPLAINLOOSE]})\\s*$`),
1252
+ a("STAR", "(<|>)?=?\\s*\\*"), a("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), a("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
1253
+ }));
1254
+
1255
+ const opts = [ "includePrerelease", "loose", "rtl" ];
1256
+
1257
+ parseOptions_1 = e => e ? "object" != typeof e ? {
1258
+ loose: !0
1259
+ } : opts.filter((t => e[t])).reduce(((e, t) => (e[t] = !0, e)), {}) : {};
1260
+
1261
+ const numeric = /^[0-9]+$/, compareIdentifiers$1 = (e, t) => {
1262
+ const r = numeric.test(e), s = numeric.test(t);
1263
+ return r && s && (e = +e, t = +t), e === t ? 0 : r && !s ? -1 : s && !r ? 1 : e < t ? -1 : 1;
1264
+ };
1265
+
1266
+ identifiers = {
1267
+ compareIdentifiers: compareIdentifiers$1,
1268
+ rcompareIdentifiers: (e, t) => compareIdentifiers$1(t, e)
1269
+ };
1270
+
1271
+ const {MAX_LENGTH, MAX_SAFE_INTEGER} = constants$2, {re, t} = re_1, {compareIdentifiers} = identifiers;
1272
+
1273
+ class SemVer {
1274
+ constructor(e, r) {
1275
+ if (r = parseOptions_1(r), e instanceof SemVer) {
1276
+ if (e.loose === !!r.loose && e.includePrerelease === !!r.includePrerelease) return e;
1277
+ e = e.version;
1278
+ } else if ("string" != typeof e) throw new TypeError(`Invalid Version: ${e}`);
1279
+ if (e.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
1280
+ debug_1("SemVer", e, r), this.options = r, this.loose = !!r.loose, this.includePrerelease = !!r.includePrerelease;
1281
+ const s = e.trim().match(r.loose ? re[t.LOOSE] : re[t.FULL]);
1282
+ if (!s) throw new TypeError(`Invalid Version: ${e}`);
1283
+ if (this.raw = e, this.major = +s[1], this.minor = +s[2], this.patch = +s[3], this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
1284
+ if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
1285
+ if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
1286
+ s[4] ? this.prerelease = s[4].split(".").map((e => {
1287
+ if (/^[0-9]+$/.test(e)) {
1288
+ const t = +e;
1289
+ if (t >= 0 && t < MAX_SAFE_INTEGER) return t;
1290
+ }
1291
+ return e;
1292
+ })) : this.prerelease = [], this.build = s[5] ? s[5].split(".") : [], this.format();
1293
+ }
1294
+ format() {
1295
+ return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`),
1296
+ this.version;
1297
+ }
1298
+ toString() {
1299
+ return this.version;
1300
+ }
1301
+ compare(e) {
1302
+ if (debug_1("SemVer.compare", this.version, this.options, e), !(e instanceof SemVer)) {
1303
+ if ("string" == typeof e && e === this.version) return 0;
1304
+ e = new SemVer(e, this.options);
1305
+ }
1306
+ return e.version === this.version ? 0 : this.compareMain(e) || this.comparePre(e);
1307
+ }
1308
+ compareMain(e) {
1309
+ return e instanceof SemVer || (e = new SemVer(e, this.options)), compareIdentifiers(this.major, e.major) || compareIdentifiers(this.minor, e.minor) || compareIdentifiers(this.patch, e.patch);
1310
+ }
1311
+ comparePre(e) {
1312
+ if (e instanceof SemVer || (e = new SemVer(e, this.options)), this.prerelease.length && !e.prerelease.length) return -1;
1313
+ if (!this.prerelease.length && e.prerelease.length) return 1;
1314
+ if (!this.prerelease.length && !e.prerelease.length) return 0;
1315
+ let t = 0;
1316
+ do {
1317
+ const r = this.prerelease[t], s = e.prerelease[t];
1318
+ if (debug_1("prerelease compare", t, r, s), void 0 === r && void 0 === s) return 0;
1319
+ if (void 0 === s) return 1;
1320
+ if (void 0 === r) return -1;
1321
+ if (r !== s) return compareIdentifiers(r, s);
1322
+ } while (++t);
1323
+ }
1324
+ compareBuild(e) {
1325
+ e instanceof SemVer || (e = new SemVer(e, this.options));
1326
+ let t = 0;
1327
+ do {
1328
+ const r = this.build[t], s = e.build[t];
1329
+ if (debug_1("prerelease compare", t, r, s), void 0 === r && void 0 === s) return 0;
1330
+ if (void 0 === s) return 1;
1331
+ if (void 0 === r) return -1;
1332
+ if (r !== s) return compareIdentifiers(r, s);
1333
+ } while (++t);
1334
+ }
1335
+ inc(e, t) {
1336
+ switch (e) {
1337
+ case "premajor":
1338
+ this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", t);
1339
+ break;
1340
+
1341
+ case "preminor":
1342
+ this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", t);
1343
+ break;
1344
+
1345
+ case "prepatch":
1346
+ this.prerelease.length = 0, this.inc("patch", t), this.inc("pre", t);
1347
+ break;
1348
+
1349
+ case "prerelease":
1350
+ 0 === this.prerelease.length && this.inc("patch", t), this.inc("pre", t);
1351
+ break;
1352
+
1353
+ case "major":
1354
+ 0 === this.minor && 0 === this.patch && 0 !== this.prerelease.length || this.major++,
1355
+ this.minor = 0, this.patch = 0, this.prerelease = [];
1356
+ break;
1357
+
1358
+ case "minor":
1359
+ 0 === this.patch && 0 !== this.prerelease.length || this.minor++, this.patch = 0,
1360
+ this.prerelease = [];
1361
+ break;
1362
+
1363
+ case "patch":
1364
+ 0 === this.prerelease.length && this.patch++, this.prerelease = [];
1365
+ break;
1366
+
1367
+ case "pre":
1368
+ if (0 === this.prerelease.length) this.prerelease = [ 0 ]; else {
1369
+ let e = this.prerelease.length;
1370
+ for (;--e >= 0; ) "number" == typeof this.prerelease[e] && (this.prerelease[e]++,
1371
+ e = -2);
1372
+ -1 === e && this.prerelease.push(0);
1373
+ }
1374
+ t && (0 === compareIdentifiers(this.prerelease[0], t) ? isNaN(this.prerelease[1]) && (this.prerelease = [ t, 0 ]) : this.prerelease = [ t, 0 ]);
1375
+ break;
1376
+
1377
+ default:
1378
+ throw new Error(`invalid increment argument: ${e}`);
1379
+ }
1380
+ return this.format(), this.raw = this.version, this;
1381
+ }
1382
+ }
1383
+
1384
+ semver = SemVer, major_1 = (e, t) => new semver(e, t).major;
1188
1385
 
1189
- const stencil_js = require("../compiler/stencil.js"), appData = _lazyRequire("@stencil/core/internal/app-data"), testing = _lazyRequire("@stencil/core/internal/testing"), index_cjs = _lazyRequire("../mock-doc/index.cjs"), path$2 = require("path"), crypto$3 = require("crypto"), os$2 = require("os"), process$3 = require("process"), fs$2 = require("fs"), index_js = _lazyRequire("../dev-server/index.js"), child_process$2 = require("child_process"), path__default = _interopDefaultLegacy(path$2), os__namespace = _interopNamespace(os$2), process__namespace = _interopNamespace(process$3), fs__default = _interopDefaultLegacy(fs$2), formatComponentRuntimeMembers = (e, t = !0) => ({
1386
+ const formatComponentRuntimeMembers = (e, t = !0) => ({
1190
1387
  ...formatPropertiesRuntimeMember(e.properties),
1191
1388
  ...formatStatesRuntimeMember(e.states),
1192
1389
  ...t ? formatMethodsRuntimeMember(e.methods) : {}
@@ -1239,8 +1436,8 @@ const stencil_js = require("../compiler/stencil.js"), appData = _lazyRequire("@s
1239
1436
  }, noop = () => {}, isFunction = e => "function" == typeof e, isString = e => "string" == typeof e, isIterable = e => (e => null != e)(e) && isFunction(e[Symbol.iterator]), windowsPathRegex = /^(?:[a-zA-Z]:|[\\/]{2}[^\\/]+[\\/]+[^\\/]+)?[\\/]$/, hasError = e => null != e && 0 !== e.length && e.some((e => "error" === e.level && "runtime" !== e.type)), normalizePath = e => {
1240
1437
  if ("string" != typeof e) throw new Error("invalid path to normalize");
1241
1438
  e = normalizeSlashes(e.trim());
1242
- const t = pathComponents(e, getRootLength(e)), r = reducePathComponents(t), s = r[0], n = r[1], o = s + r.slice(1).join("/");
1243
- return "" === o ? "." : "" === s && n && e.includes("/") && !n.startsWith(".") && !n.startsWith("@") ? "./" + o : o;
1439
+ const t = pathComponents(e, getRootLength(e)), r = reducePathComponents(t), s = r[0], n = r[1], i = s + r.slice(1).join("/");
1440
+ return "" === i ? "." : "" === s && n && e.includes("/") && !n.startsWith(".") && !n.startsWith("@") ? "./" + i : i;
1244
1441
  }, normalizeSlashes = e => e.replace(backslashRegExp, "/"), backslashRegExp = /\\/g, reducePathComponents = e => {
1245
1442
  if (!Array.isArray(e) || 0 === e.length) return [];
1246
1443
  const t = [ e[0] ];
@@ -1277,8 +1474,8 @@ const stencil_js = require("../compiler/stencil.js"), appData = _lazyRequire("@s
1277
1474
  if (-1 !== r) {
1278
1475
  const t = r + "://".length, s = e.indexOf("/", t);
1279
1476
  if (-1 !== s) {
1280
- const n = e.slice(0, r), o = e.slice(t, s);
1281
- if ("file" === n && ("" === o || "localhost" === o) && isVolumeCharacter(e.charCodeAt(s + 1))) {
1477
+ const n = e.slice(0, r), i = e.slice(t, s);
1478
+ if ("file" === n && ("" === i || "localhost" === i) && isVolumeCharacter(e.charCodeAt(s + 1))) {
1282
1479
  const t = getFileUrlVolumeSeparatorEnd(e, s + 2);
1283
1480
  if (-1 !== t) {
1284
1481
  if (47 === e.charCodeAt(t)) return ~(t + 1);
@@ -1305,12 +1502,12 @@ const stencil_js = require("../compiler/stencil.js"), appData = _lazyRequire("@s
1305
1502
  var r, s;
1306
1503
  if ("string" == typeof t) return t;
1307
1504
  if (void 0 === t) return "";
1308
- const n = [], o = (null !== (s = null === (r = e.file) || void 0 === r ? void 0 : r.fileName) && void 0 !== s ? s : "").includes("stencil.config");
1309
- o && n.push(2322);
1310
- let i = "";
1311
- if (!n.includes(t.code) && (i = t.messageText, isIterable(t.next))) for (const r of t.next) i += flattenDiagnosticMessageText(e, r);
1312
- return o && (i = i.replace("type 'StencilConfig'", "Stencil Config"), i = i.replace("Object literal may only specify known properties, but ", ""),
1313
- i = i.replace("Object literal may only specify known properties, and ", "")), i.trim();
1505
+ const n = [], i = (null !== (s = null === (r = e.file) || void 0 === r ? void 0 : r.fileName) && void 0 !== s ? s : "").includes("stencil.config");
1506
+ i && n.push(2322);
1507
+ let o = "";
1508
+ if (!n.includes(t.code) && (o = t.messageText, isIterable(t.next))) for (const r of t.next) o += flattenDiagnosticMessageText(e, r);
1509
+ return i && (o = o.replace("type 'StencilConfig'", "Stencil Config"), o = o.replace("Object literal may only specify known properties, but ", ""),
1510
+ o = o.replace("Object literal may only specify known properties, and ", "")), o.trim();
1314
1511
  }, isJest27TransformOptions = e => null != e && "object" == typeof e && e.hasOwnProperty("config");
1315
1512
 
1316
1513
  let _tsCompilerOptions = null, _tsCompilerOptionsKey = null;
@@ -1334,12 +1531,12 @@ const jestPreprocessor = {
1334
1531
  currentDirectory: s.rootDir
1335
1532
  }, n = getCompilerOptions(s.rootDir);
1336
1533
  n && (n.baseUrl && (r.baseUrl = n.baseUrl), n.paths && (r.paths = n.paths));
1337
- const o = transpile(e, r), i = o.diagnostics.some((e => "error" === e.level));
1338
- if (o.diagnostics && i) {
1339
- const e = o.diagnostics.map(formatDiagnostic).join("\n\n");
1534
+ const i = transpile(e, r), o = i.diagnostics.some((e => "error" === e.level));
1535
+ if (i.diagnostics && o) {
1536
+ const e = i.diagnostics.map(formatDiagnostic).join("\n\n");
1340
1537
  throw new Error(e);
1341
1538
  }
1342
- return o.code;
1539
+ return i.code;
1343
1540
  }
1344
1541
  return e;
1345
1542
  },
@@ -1355,10 +1552,10 @@ const jestPreprocessor = {
1355
1552
  if (t === r) return !0;
1356
1553
  if (t && r && "object" == typeof t && "object" == typeof r) {
1357
1554
  const s = Array.isArray(t), n = Array.isArray(r);
1358
- let o, i, a;
1555
+ let i, o, a;
1359
1556
  if (s && n) {
1360
- if (i = t.length, i != r.length) return !1;
1361
- for (o = i; 0 != o--; ) if (!e(t[o], r[o])) return !1;
1557
+ if (o = t.length, o != r.length) return !1;
1558
+ for (i = o; 0 != i--; ) if (!e(t[i], r[i])) return !1;
1362
1559
  return !0;
1363
1560
  }
1364
1561
  if (s != n) return !1;
@@ -1369,9 +1566,9 @@ const jestPreprocessor = {
1369
1566
  if (u != d) return !1;
1370
1567
  if (u && d) return t.toString() == r.toString();
1371
1568
  const h = Object.keys(t);
1372
- if (i = h.length, i !== Object.keys(r).length) return !1;
1373
- for (o = i; 0 != o--; ) if (!Object.prototype.hasOwnProperty.call(r, h[o])) return !1;
1374
- for (o = i; 0 != o--; ) if (a = h[o], !e(t[a], r[a])) return !1;
1569
+ if (o = h.length, o !== Object.keys(r).length) return !1;
1570
+ for (i = o; 0 != i--; ) if (!Object.prototype.hasOwnProperty.call(r, h[i])) return !1;
1571
+ for (i = o; 0 != i--; ) if (a = h[i], !e(t[a], r[a])) return !1;
1375
1572
  return !0;
1376
1573
  }
1377
1574
  return t != t && r != r;
@@ -1775,9 +1972,9 @@ class BuildContext {
1775
1972
  }
1776
1973
  return {
1777
1974
  duration: () => r.duration(),
1778
- finish: (e, s, n, o) => {
1975
+ finish: (e, s, n, i) => {
1779
1976
  if ((!this.hasFinished || t) && (t && this.config.watch && (e = `${this.config.logger.cyan("[" + this.buildId + "]")} ${e}`),
1780
- r.finish(e, s, n, o), !t)) {
1977
+ r.finish(e, s, n, i), !t)) {
1781
1978
  const e = {
1782
1979
  buildId: this.buildId,
1783
1980
  messages: this.buildMessages.slice(),
@@ -1893,12 +2090,12 @@ class Cache {
1893
2090
  if (null != t) {
1894
2091
  if (e - t < ONE_DAY) return;
1895
2092
  const r = this.cacheFs.sys, s = await r.readDir(this.config.cacheDir), n = s.map((e => path$2.join(this.config.cacheDir, e)));
1896
- let o = 0;
1897
- const i = n.map((async t => {
2093
+ let i = 0;
2094
+ const o = n.map((async t => {
1898
2095
  const s = (await r.stat(t)).mtimeMs;
1899
- e - s > ONE_WEEK && (await r.removeFile(t), o++);
2096
+ e - s > ONE_WEEK && (await r.removeFile(t), i++);
1900
2097
  }));
1901
- await Promise.all(i), this.logger.debug(`clearExpiredCache, cachedFileNames: ${s.length}, totalCleared: ${o}`);
2098
+ await Promise.all(o), this.logger.debug(`clearExpiredCache, cachedFileNames: ${s.length}, totalCleared: ${i}`);
1902
2099
  }
1903
2100
  this.logger.debug("clearExpiredCache, set last clear"), await this.sys.cacheStorage.set(EXP_STORAGE_KEY, e);
1904
2101
  }
@@ -1941,11 +2138,11 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
1941
2138
  }), () => t(n);
1942
2139
  }
1943
2140
  if ("string" == typeof r && "function" == typeof s) {
1944
- const n = r.toLowerCase().trim(), o = s;
2141
+ const n = r.toLowerCase().trim(), i = s;
1945
2142
  return e.push({
1946
2143
  eventName: n,
1947
- callback: o
1948
- }), () => t(o);
2144
+ callback: i
2145
+ }), () => t(i);
1949
2146
  }
1950
2147
  return () => !1;
1951
2148
  },
@@ -1979,10 +2176,10 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
1979
2176
  } else if (!0 === e.queueDeleteFromDisk) e.isDirectory && !t.dirsToEnsure.includes(r) ? t.dirsToDelete.push(r) : e.isFile && !t.filesToWrite.includes(r) && t.filesToDelete.push(r); else if ("string" == typeof e.queueCopyFileToDest) {
1980
2177
  const s = r, n = e.queueCopyFileToDest;
1981
2178
  t.filesToCopy.push([ s, n ]);
1982
- const o = normalizePath(path$2.dirname(n));
1983
- t.dirsToEnsure.includes(o) || t.dirsToEnsure.push(o);
1984
- const i = t.dirsToDelete.indexOf(o);
1985
- i > -1 && t.dirsToDelete.splice(i, 1);
2179
+ const i = normalizePath(path$2.dirname(n));
2180
+ t.dirsToEnsure.includes(i) || t.dirsToEnsure.push(i);
2181
+ const o = t.dirsToDelete.indexOf(i);
2182
+ o > -1 && t.dirsToDelete.splice(o, 1);
1986
2183
  const a = t.filesToDelete.indexOf(n);
1987
2184
  a > -1 && t.filesToDelete.splice(a, 1);
1988
2185
  }
@@ -2079,10 +2276,10 @@ class TestingLogger {
2079
2276
 
2080
2277
  (posix = {
2081
2278
  resolve: function e() {
2082
- var t, r, s, n = "", o = !1;
2083
- for (r = arguments.length - 1; r >= -1 && !o; r--) r >= 0 ? s = arguments[r] : (void 0 === t && (t = process.cwd()),
2084
- s = t), assertPath(s), 0 !== s.length && (n = s + "/" + n, o = 47 === s.charCodeAt(0));
2085
- return n = normalizeStringPosix(n, !o), o ? n.length > 0 ? "/" + n : "/" : n.length > 0 ? n : ".";
2279
+ var t, r, s, n = "", i = !1;
2280
+ for (r = arguments.length - 1; r >= -1 && !i; r--) r >= 0 ? s = arguments[r] : (void 0 === t && (t = process.cwd()),
2281
+ s = t), assertPath(s), 0 !== s.length && (n = s + "/" + n, i = 47 === s.charCodeAt(0));
2282
+ return n = normalizeStringPosix(n, !i), i ? n.length > 0 ? "/" + n : "/" : n.length > 0 ? n : ".";
2086
2283
  },
2087
2284
  normalize: function e(t) {
2088
2285
  var r, s;
@@ -2100,70 +2297,70 @@ class TestingLogger {
2100
2297
  return void 0 === t ? "." : posix.normalize(t);
2101
2298
  },
2102
2299
  relative: function e(t, r) {
2103
- var s, n, o, i, a, l, c, u, d, h;
2300
+ var s, n, i, o, a, l, c, u, d, h;
2104
2301
  if (assertPath(t), assertPath(r), t === r) return "";
2105
2302
  if ((t = posix.resolve(t)) === (r = posix.resolve(r))) return "";
2106
2303
  for (s = 1; s < t.length && 47 === t.charCodeAt(s); ++s) ;
2107
- for (o = (n = t.length) - s, i = 1; i < r.length && 47 === r.charCodeAt(i); ++i) ;
2108
- for (l = o < (a = r.length - i) ? o : a, c = -1, u = 0; u <= l; ++u) {
2304
+ for (i = (n = t.length) - s, o = 1; o < r.length && 47 === r.charCodeAt(o); ++o) ;
2305
+ for (l = i < (a = r.length - o) ? i : a, c = -1, u = 0; u <= l; ++u) {
2109
2306
  if (u === l) {
2110
2307
  if (a > l) {
2111
- if (47 === r.charCodeAt(i + u)) return r.slice(i + u + 1);
2112
- if (0 === u) return r.slice(i + u);
2113
- } else o > l && (47 === t.charCodeAt(s + u) ? c = u : 0 === u && (c = 0));
2308
+ if (47 === r.charCodeAt(o + u)) return r.slice(o + u + 1);
2309
+ if (0 === u) return r.slice(o + u);
2310
+ } else i > l && (47 === t.charCodeAt(s + u) ? c = u : 0 === u && (c = 0));
2114
2311
  break;
2115
2312
  }
2116
- if ((d = t.charCodeAt(s + u)) !== r.charCodeAt(i + u)) break;
2313
+ if ((d = t.charCodeAt(s + u)) !== r.charCodeAt(o + u)) break;
2117
2314
  47 === d && (c = u);
2118
2315
  }
2119
2316
  for (h = "", u = s + c + 1; u <= n; ++u) u !== n && 47 !== t.charCodeAt(u) || (0 === h.length ? h += ".." : h += "/..");
2120
- return h.length > 0 ? h + r.slice(i + c) : (i += c, 47 === r.charCodeAt(i) && ++i,
2121
- r.slice(i));
2317
+ return h.length > 0 ? h + r.slice(o + c) : (o += c, 47 === r.charCodeAt(o) && ++o,
2318
+ r.slice(o));
2122
2319
  },
2123
2320
  _makeLong: function e(t) {
2124
2321
  return t;
2125
2322
  },
2126
2323
  dirname: function e(t) {
2127
- var r, s, n, o;
2324
+ var r, s, n, i;
2128
2325
  if (assertPath(t), 0 === t.length) return ".";
2129
- for (r = 47 === t.charCodeAt(0), s = -1, n = !0, o = t.length - 1; o >= 1; --o) if (47 === t.charCodeAt(o)) {
2326
+ for (r = 47 === t.charCodeAt(0), s = -1, n = !0, i = t.length - 1; i >= 1; --i) if (47 === t.charCodeAt(i)) {
2130
2327
  if (!n) {
2131
- s = o;
2328
+ s = i;
2132
2329
  break;
2133
2330
  }
2134
2331
  } else n = !1;
2135
2332
  return -1 === s ? r ? "/" : "." : r && 1 === s ? "//" : t.slice(0, s);
2136
2333
  },
2137
2334
  basename: function e(t, r) {
2138
- var s, n, o, i, a, l, c;
2335
+ var s, n, i, o, a, l, c;
2139
2336
  if (void 0 !== r && "string" != typeof r) throw new TypeError('"ext" argument must be a string');
2140
- if (assertPath(t), s = 0, n = -1, o = !0, void 0 !== r && r.length > 0 && r.length <= t.length) {
2337
+ if (assertPath(t), s = 0, n = -1, i = !0, void 0 !== r && r.length > 0 && r.length <= t.length) {
2141
2338
  if (r.length === t.length && r === t) return "";
2142
- for (a = r.length - 1, l = -1, i = t.length - 1; i >= 0; --i) if (47 === (c = t.charCodeAt(i))) {
2143
- if (!o) {
2144
- s = i + 1;
2339
+ for (a = r.length - 1, l = -1, o = t.length - 1; o >= 0; --o) if (47 === (c = t.charCodeAt(o))) {
2340
+ if (!i) {
2341
+ s = o + 1;
2145
2342
  break;
2146
2343
  }
2147
- } else -1 === l && (o = !1, l = i + 1), a >= 0 && (c === r.charCodeAt(a) ? -1 == --a && (n = i) : (a = -1,
2344
+ } else -1 === l && (i = !1, l = o + 1), a >= 0 && (c === r.charCodeAt(a) ? -1 == --a && (n = o) : (a = -1,
2148
2345
  n = l));
2149
2346
  return s === n ? n = l : -1 === n && (n = t.length), t.slice(s, n);
2150
2347
  }
2151
- for (i = t.length - 1; i >= 0; --i) if (47 === t.charCodeAt(i)) {
2152
- if (!o) {
2153
- s = i + 1;
2348
+ for (o = t.length - 1; o >= 0; --o) if (47 === t.charCodeAt(o)) {
2349
+ if (!i) {
2350
+ s = o + 1;
2154
2351
  break;
2155
2352
  }
2156
- } else -1 === n && (o = !1, n = i + 1);
2353
+ } else -1 === n && (i = !1, n = o + 1);
2157
2354
  return -1 === n ? "" : t.slice(s, n);
2158
2355
  },
2159
2356
  extname: function e(t) {
2160
- var r, s, n, o, i, a, l;
2161
- for (assertPath(t), r = -1, s = 0, n = -1, o = !0, i = 0, a = t.length - 1; a >= 0; --a) if (47 !== (l = t.charCodeAt(a))) -1 === n && (o = !1,
2162
- n = a + 1), 46 === l ? -1 === r ? r = a : 1 !== i && (i = 1) : -1 !== r && (i = -1); else if (!o) {
2357
+ var r, s, n, i, o, a, l;
2358
+ for (assertPath(t), r = -1, s = 0, n = -1, i = !0, o = 0, a = t.length - 1; a >= 0; --a) if (47 !== (l = t.charCodeAt(a))) -1 === n && (i = !1,
2359
+ n = a + 1), 46 === l ? -1 === r ? r = a : 1 !== o && (o = 1) : -1 !== r && (o = -1); else if (!i) {
2163
2360
  s = a + 1;
2164
2361
  break;
2165
2362
  }
2166
- return -1 === r || -1 === n || 0 === i || 1 === i && r === n - 1 && r === s + 1 ? "" : t.slice(r, n);
2363
+ return -1 === r || -1 === n || 0 === o || 1 === o && r === n - 1 && r === s + 1 ? "" : t.slice(r, n);
2167
2364
  },
2168
2365
  format: function e(t) {
2169
2366
  if (null === t || "object" != typeof t) throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof t);
@@ -2173,7 +2370,7 @@ class TestingLogger {
2173
2370
  }("/", t);
2174
2371
  },
2175
2372
  parse: function e(t) {
2176
- var r, s, n, o, i, a, l, c, u, d;
2373
+ var r, s, n, i, o, a, l, c, u, d;
2177
2374
  if (assertPath(t), r = {
2178
2375
  root: "",
2179
2376
  dir: "",
@@ -2181,14 +2378,14 @@ class TestingLogger {
2181
2378
  ext: "",
2182
2379
  name: ""
2183
2380
  }, 0 === t.length) return r;
2184
- for ((n = 47 === (s = t.charCodeAt(0))) ? (r.root = "/", o = 1) : o = 0, i = -1,
2185
- a = 0, l = -1, c = !0, u = t.length - 1, d = 0; u >= o; --u) if (47 !== (s = t.charCodeAt(u))) -1 === l && (c = !1,
2186
- l = u + 1), 46 === s ? -1 === i ? i = u : 1 !== d && (d = 1) : -1 !== i && (d = -1); else if (!c) {
2381
+ for ((n = 47 === (s = t.charCodeAt(0))) ? (r.root = "/", i = 1) : i = 0, o = -1,
2382
+ a = 0, l = -1, c = !0, u = t.length - 1, d = 0; u >= i; --u) if (47 !== (s = t.charCodeAt(u))) -1 === l && (c = !1,
2383
+ l = u + 1), 46 === s ? -1 === o ? o = u : 1 !== d && (d = 1) : -1 !== o && (d = -1); else if (!c) {
2187
2384
  a = u + 1;
2188
2385
  break;
2189
2386
  }
2190
- return -1 === i || -1 === l || 0 === d || 1 === d && i === l - 1 && i === a + 1 ? -1 !== l && (r.base = r.name = 0 === a && n ? t.slice(1, l) : t.slice(a, l)) : (0 === a && n ? (r.name = t.slice(1, i),
2191
- r.base = t.slice(1, l)) : (r.name = t.slice(a, i), r.base = t.slice(a, l)), r.ext = t.slice(i, l)),
2387
+ return -1 === o || -1 === l || 0 === d || 1 === d && o === l - 1 && o === a + 1 ? -1 !== l && (r.base = r.name = 0 === a && n ? t.slice(1, l) : t.slice(a, l)) : (0 === a && n ? (r.name = t.slice(1, o),
2388
+ r.base = t.slice(1, l)) : (r.name = t.slice(a, o), r.base = t.slice(a, l)), r.ext = t.slice(o, l)),
2192
2389
  a > 0 ? r.dir = t.slice(0, a - 1) : n && (r.dir = "/"), r;
2193
2390
  },
2194
2391
  sep: "/",
@@ -2212,18 +2409,8 @@ caller = function() {
2212
2409
  return Error.prepareStackTrace = function(e, t) {
2213
2410
  return t;
2214
2411
  }, e = (new Error).stack, Error.prepareStackTrace = t, e[2].getFileName();
2215
- }, pathParse = function createCommonjsModule(e, t, r) {
2216
- return e(r = {
2217
- path: t,
2218
- exports: {},
2219
- require: function(e, t) {
2220
- return function s() {
2221
- throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
2222
- }(null == t && r.path);
2223
- }
2224
- }, r.exports), r.exports;
2225
- }((function(e) {
2226
- var t, r, s = "win32" === process.platform, n = /^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/, o = {
2412
+ }, pathParse = createCommonjsModule((function(e) {
2413
+ var t, r, s = "win32" === process.platform, n = /^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/, i = {
2227
2414
  parse: function(e) {
2228
2415
  if ("string" != typeof e) throw new TypeError("Parameter 'pathString' must be a string, not " + typeof e);
2229
2416
  var t = function r(e) {
@@ -2252,26 +2439,26 @@ caller = function() {
2252
2439
  ext: r[4],
2253
2440
  name: r[3]
2254
2441
  };
2255
- }, e.exports = s ? o.parse : r.parse, e.exports.posix = r.parse, e.exports.win32 = o.parse;
2442
+ }, e.exports = s ? i.parse : r.parse, e.exports.posix = r.parse, e.exports.win32 = i.parse;
2256
2443
  })), parse = path__default.default.parse || pathParse, getNodeModulesDirs = function e(t, r) {
2257
- var s, n, o = "/";
2258
- for (/^([A-Za-z]:)/.test(t) ? o = "" : /^\\\\/.test(t) && (o = "\\\\"), s = [ t ],
2444
+ var s, n, i = "/";
2445
+ for (/^([A-Za-z]:)/.test(t) ? i = "" : /^\\\\/.test(t) && (i = "\\\\"), s = [ t ],
2259
2446
  n = parse(t); n.dir !== s[s.length - 1]; ) s.push(n.dir), n = parse(n.dir);
2260
2447
  return s.reduce((function(e, t) {
2261
2448
  return e.concat(r.map((function(e) {
2262
- return path__default.default.resolve(o, t, e);
2449
+ return path__default.default.resolve(i, t, e);
2263
2450
  })));
2264
2451
  }), []);
2265
2452
  }, nodeModulesPaths = function e(t, r, s) {
2266
- var n, o = r && r.moduleDirectory ? [].concat(r.moduleDirectory) : [ "node_modules" ];
2453
+ var n, i = r && r.moduleDirectory ? [].concat(r.moduleDirectory) : [ "node_modules" ];
2267
2454
  return r && "function" == typeof r.paths ? r.paths(s, t, (function() {
2268
- return getNodeModulesDirs(t, o);
2269
- }), r) : (n = getNodeModulesDirs(t, o), r && r.paths ? n.concat(r.paths) : n);
2455
+ return getNodeModulesDirs(t, i);
2456
+ }), r) : (n = getNodeModulesDirs(t, i), r && r.paths ? n.concat(r.paths) : n);
2270
2457
  }, normalizeOptions = function(e, t) {
2271
2458
  return t || {};
2272
2459
  }, ERROR_MESSAGE = "Function.prototype.bind called on incompatible ", slice = Array.prototype.slice,
2273
2460
  toStr = Object.prototype.toString, implementation = function e(t) {
2274
- var r, s, n, o, i, a, l, c = this;
2461
+ var r, s, n, i, o, a, l, c = this;
2275
2462
  if ("function" != typeof c || "[object Function]" !== toStr.call(c)) throw new TypeError(ERROR_MESSAGE + c);
2276
2463
  for (r = slice.call(arguments, 1), n = function() {
2277
2464
  if (this instanceof s) {
@@ -2279,8 +2466,8 @@ toStr = Object.prototype.toString, implementation = function e(t) {
2279
2466
  return Object(e) === e ? e : this;
2280
2467
  }
2281
2468
  return c.apply(t, r.concat(slice.call(arguments)));
2282
- }, o = Math.max(0, c.length - r.length), i = [], a = 0; a < o; a++) i.push("$" + a);
2283
- return s = Function("binder", "return function (" + i.join(",") + "){ return binder.apply(this,arguments); }")(n),
2469
+ }, i = Math.max(0, c.length - r.length), o = [], a = 0; a < i; a++) o.push("$" + a);
2470
+ return s = Function("binder", "return function (" + o.join(",") + "){ return binder.apply(this,arguments); }")(n),
2284
2471
  c.prototype && ((l = function e() {}).prototype = c.prototype, s.prototype = new l,
2285
2472
  l.prototype = null), s;
2286
2473
  }, functionBind = Function.prototype.bind || implementation, src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
@@ -2405,14 +2592,14 @@ defaultIsFile$1 = function e(t, r) {
2405
2592
  }
2406
2593
  }));
2407
2594
  }, getPackageCandidates$1 = function e(t, r, s) {
2408
- var n, o = nodeModulesPaths(r, s, t);
2409
- for (n = 0; n < o.length; n++) o[n] = path__default.default.join(o[n], t);
2410
- return o;
2595
+ var n, i = nodeModulesPaths(r, s, t);
2596
+ for (n = 0; n < i.length; n++) i[n] = path__default.default.join(i[n], t);
2597
+ return i;
2411
2598
  }, async = function e(t, r, s) {
2412
2599
  function n(e) {
2413
2600
  if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)) T = path__default.default.resolve(e, t),
2414
- "." !== t && ".." !== t && "/" !== t.slice(-1) || (T += "/"), /\/$/.test(t) && T === e ? l(T, C.package, o) : i(T, C.package, o); else {
2415
- if (_ && isCoreModule(t)) return S(null, t);
2601
+ "." !== t && ".." !== t && "/" !== t.slice(-1) || (T += "/"), /\/$/.test(t) && T === e ? l(T, C.package, i) : o(T, C.package, i); else {
2602
+ if (E && isCoreModule(t)) return S(null, t);
2416
2603
  !function r(e, t, s) {
2417
2604
  var n = function() {
2418
2605
  return getPackageCandidates$1(e, t, C);
@@ -2423,36 +2610,36 @@ defaultIsFile$1 = function e(t, r) {
2423
2610
  if (r) return maybeRealpath(f, r, C, (function(e, t) {
2424
2611
  e ? S(e) : S(null, t, s);
2425
2612
  }));
2426
- var n = new Error("Cannot find module '" + t + "' from '" + b + "'");
2613
+ var n = new Error("Cannot find module '" + t + "' from '" + v + "'");
2427
2614
  n.code = "MODULE_NOT_FOUND", S(n);
2428
2615
  }
2429
2616
  }));
2430
2617
  }
2431
2618
  }
2432
- function o(e, r, s) {
2619
+ function i(e, r, s) {
2433
2620
  e ? S(e) : r ? S(null, r, s) : l(T, (function(e, r, s) {
2434
2621
  if (e) S(e); else if (r) maybeRealpath(f, r, C, (function(e, t) {
2435
2622
  e ? S(e) : S(null, t, s);
2436
2623
  })); else {
2437
- var n = new Error("Cannot find module '" + t + "' from '" + b + "'");
2624
+ var n = new Error("Cannot find module '" + t + "' from '" + v + "'");
2438
2625
  n.code = "MODULE_NOT_FOUND", S(n);
2439
2626
  }
2440
2627
  }));
2441
2628
  }
2442
- function i(e, t, r) {
2629
+ function o(e, t, r) {
2443
2630
  var s = t, n = r;
2444
2631
  "function" == typeof s && (n = s, s = void 0), function e(t, r, s) {
2445
- function o(s, o, a) {
2632
+ function i(s, i, a) {
2446
2633
  var u, h, p;
2447
- return c = o, s ? n(s) : a && c && C.pathFilter && (h = (u = path__default.default.relative(a, l)).slice(0, u.length - t[0].length),
2448
- p = C.pathFilter(c, r, h)) ? e([ "" ].concat(w.slice()), path__default.default.resolve(a, p), c) : void d(l, i);
2634
+ return c = i, s ? n(s) : a && c && C.pathFilter && (h = (u = path__default.default.relative(a, l)).slice(0, u.length - t[0].length),
2635
+ p = C.pathFilter(c, r, h)) ? e([ "" ].concat(w.slice()), path__default.default.resolve(a, p), c) : void d(l, o);
2449
2636
  }
2450
- function i(s, o) {
2451
- return s ? n(s) : o ? n(null, l, c) : void e(t.slice(1), r, c);
2637
+ function o(s, i) {
2638
+ return s ? n(s) : i ? n(null, l, c) : void e(t.slice(1), r, c);
2452
2639
  }
2453
2640
  var l, c;
2454
2641
  if (0 === t.length) return n(null, void 0, s);
2455
- l = r + t[0], (c = s) ? o(null, c) : a(path__default.default.dirname(l), o);
2642
+ l = r + t[0], (c = s) ? i(null, c) : a(path__default.default.dirname(l), i);
2456
2643
  }([ "" ].concat(w), e, s);
2457
2644
  }
2458
2645
  function a(e, t) {
@@ -2463,8 +2650,8 @@ defaultIsFile$1 = function e(t, r) {
2463
2650
  if (!s) return a(path__default.default.dirname(e), t);
2464
2651
  m(p, n, (function(r, s) {
2465
2652
  r && t(r);
2466
- var o = s;
2467
- o && C.packageFilter && (o = C.packageFilter(o, n)), t(null, o, e);
2653
+ var i = s;
2654
+ i && C.packageFilter && (i = C.packageFilter(i, n)), t(null, i, e);
2468
2655
  }));
2469
2656
  }));
2470
2657
  }));
@@ -2473,34 +2660,34 @@ defaultIsFile$1 = function e(t, r) {
2473
2660
  var s = r, n = t;
2474
2661
  "function" == typeof n && (s = n, n = C.package), maybeRealpath(f, e, C, (function(t, r) {
2475
2662
  if (t) return s(t);
2476
- var o = path__default.default.join(r, "package.json");
2477
- d(o, (function(t, r) {
2478
- return t ? s(t) : r ? void m(p, o, (function(t, r) {
2663
+ var i = path__default.default.join(r, "package.json");
2664
+ d(i, (function(t, r) {
2665
+ return t ? s(t) : r ? void m(p, i, (function(t, r) {
2479
2666
  var n, a;
2480
- return t ? s(t) : ((n = r) && C.packageFilter && (n = C.packageFilter(n, o)), n && n.main ? "string" != typeof n.main ? ((a = new TypeError("package “" + n.name + "” `main` must be a string")).code = "INVALID_PACKAGE_MAIN",
2481
- s(a)) : ("." !== n.main && "./" !== n.main || (n.main = "index"), void i(path__default.default.resolve(e, n.main), n, (function(t, r, n) {
2667
+ return t ? s(t) : ((n = r) && C.packageFilter && (n = C.packageFilter(n, i)), n && n.main ? "string" != typeof n.main ? ((a = new TypeError("package “" + n.name + "” `main` must be a string")).code = "INVALID_PACKAGE_MAIN",
2668
+ s(a)) : ("." !== n.main && "./" !== n.main || (n.main = "index"), void o(path__default.default.resolve(e, n.main), n, (function(t, r, n) {
2482
2669
  return t ? s(t) : r ? s(null, r, n) : n ? void l(path__default.default.resolve(e, n.main), n, (function(t, r, n) {
2483
- return t ? s(t) : r ? s(null, r, n) : void i(path__default.default.join(e, "index"), n, s);
2484
- })) : i(path__default.default.join(e, "index"), n, s);
2485
- }))) : void i(path__default.default.join(e, "/index"), n, s));
2486
- })) : i(path__default.default.join(e, "index"), n, s);
2670
+ return t ? s(t) : r ? s(null, r, n) : void o(path__default.default.join(e, "index"), n, s);
2671
+ })) : o(path__default.default.join(e, "index"), n, s);
2672
+ }))) : void o(path__default.default.join(e, "/index"), n, s));
2673
+ })) : o(path__default.default.join(e, "index"), n, s);
2487
2674
  }));
2488
2675
  }));
2489
2676
  }
2490
2677
  function c(e, t) {
2491
- function r(t, r, o) {
2492
- return t ? e(t) : r ? e(null, r, o) : void l(n, C.package, s);
2678
+ function r(t, r, i) {
2679
+ return t ? e(t) : r ? e(null, r, i) : void l(n, C.package, s);
2493
2680
  }
2494
2681
  function s(r, s, n) {
2495
2682
  return r ? e(r) : s ? e(null, s, n) : void c(e, t.slice(1));
2496
2683
  }
2497
2684
  if (0 === t.length) return e(null, void 0);
2498
2685
  var n = t[0];
2499
- h(path__default.default.dirname(n), (function o(s, a) {
2500
- return s ? e(s) : a ? void i(n, C.package, r) : c(e, t.slice(1));
2686
+ h(path__default.default.dirname(n), (function i(s, a) {
2687
+ return s ? e(s) : a ? void o(n, C.package, r) : c(e, t.slice(1));
2501
2688
  }));
2502
2689
  }
2503
- var u, d, h, p, f, m, g, y, w, _, v, b, E, T, S = s, C = r;
2690
+ var u, d, h, p, f, m, g, y, w, E, _, v, b, T, S = s, C = r;
2504
2691
  return "function" == typeof r && (S = C, C = {}), "string" != typeof t ? (u = new TypeError("Path must be a string."),
2505
2692
  process.nextTick((function() {
2506
2693
  S(u);
@@ -2509,9 +2696,9 @@ defaultIsFile$1 = function e(t, r) {
2509
2696
  m = C.readPackage || defaultReadPackage, C.readFile && C.readPackage ? (g = new TypeError("`readFile` and `readPackage` are mutually exclusive."),
2510
2697
  process.nextTick((function() {
2511
2698
  S(g);
2512
- }))) : (y = C.packageIterator, w = C.extensions || [ ".js" ], _ = !1 !== C.includeCoreModules,
2513
- v = C.basedir || path__default.default.dirname(caller()), b = C.filename || v, C.paths = C.paths || [],
2514
- E = path__default.default.resolve(v), void maybeRealpath(f, E, C, (function(e, t) {
2699
+ }))) : (y = C.packageIterator, w = C.extensions || [ ".js" ], E = !1 !== C.includeCoreModules,
2700
+ _ = C.basedir || path__default.default.dirname(caller()), v = C.filename || _, C.paths = C.paths || [],
2701
+ b = path__default.default.resolve(_), void maybeRealpath(f, b, C, (function(e, t) {
2515
2702
  e ? S(e) : n(t);
2516
2703
  }))));
2517
2704
  };
@@ -2637,67 +2824,67 @@ defaultIsFile = function e(t) {
2637
2824
  return JSON.parse(s);
2638
2825
  } catch (e) {}
2639
2826
  }, getPackageCandidates = function e(t, r, s) {
2640
- var n, o = nodeModulesPaths(r, s, t);
2641
- for (n = 0; n < o.length; n++) o[n] = path__default.default.join(o[n], t);
2642
- return o;
2827
+ var n, i = nodeModulesPaths(r, s, t);
2828
+ for (n = 0; n < i.length; n++) i[n] = path__default.default.join(i[n], t);
2829
+ return i;
2643
2830
  }, sync = function e(t, r) {
2644
2831
  function s(e) {
2645
- var t, r, s, o, l = n(path__default.default.dirname(e));
2646
- if (l && l.dir && l.pkg && i.pathFilter && (t = path__default.default.relative(l.dir, e),
2647
- (r = i.pathFilter(l.pkg, e, t)) && (e = path__default.default.resolve(l.dir, r))),
2832
+ var t, r, s, i, l = n(path__default.default.dirname(e));
2833
+ if (l && l.dir && l.pkg && o.pathFilter && (t = path__default.default.relative(l.dir, e),
2834
+ (r = o.pathFilter(l.pkg, e, t)) && (e = path__default.default.resolve(l.dir, r))),
2648
2835
  a(e)) return e;
2649
- for (s = 0; s < p.length; s++) if (o = e + p[s], a(o)) return o;
2836
+ for (s = 0; s < p.length; s++) if (i = e + p[s], a(i)) return i;
2650
2837
  }
2651
2838
  function n(e) {
2652
2839
  var t, r;
2653
- if ("" !== e && "/" !== e && !("win32" === process.platform && /^\w:[/\\]*$/.test(e) || /[/\\]node_modules[/\\]*$/.test(e))) return t = path__default.default.join(maybeRealpathSync(u, e, i), "package.json"),
2654
- a(t) ? ((r = d(l, t)) && i.packageFilter && (r = i.packageFilter(r, e)), {
2840
+ if ("" !== e && "/" !== e && !("win32" === process.platform && /^\w:[/\\]*$/.test(e) || /[/\\]node_modules[/\\]*$/.test(e))) return t = path__default.default.join(maybeRealpathSync(u, e, o), "package.json"),
2841
+ a(t) ? ((r = d(l, t)) && o.packageFilter && (r = o.packageFilter(r, e)), {
2655
2842
  pkg: r,
2656
2843
  dir: e
2657
2844
  }) : n(path__default.default.dirname(e));
2658
2845
  }
2659
- function o(e) {
2660
- var t, r, n, c, h = path__default.default.join(maybeRealpathSync(u, e, i), "/package.json");
2846
+ function i(e) {
2847
+ var t, r, n, c, h = path__default.default.join(maybeRealpathSync(u, e, o), "/package.json");
2661
2848
  if (a(h)) {
2662
2849
  try {
2663
2850
  t = d(l, h);
2664
2851
  } catch (e) {}
2665
- if (t && i.packageFilter && (t = i.packageFilter(t, e)), t && t.main) {
2852
+ if (t && o.packageFilter && (t = o.packageFilter(t, e)), t && t.main) {
2666
2853
  if ("string" != typeof t.main) throw (r = new TypeError("package “" + t.name + "” `main` must be a string")).code = "INVALID_PACKAGE_MAIN",
2667
2854
  r;
2668
2855
  "." !== t.main && "./" !== t.main || (t.main = "index");
2669
2856
  try {
2670
2857
  if (n = s(path__default.default.resolve(e, t.main))) return n;
2671
- if (c = o(path__default.default.resolve(e, t.main))) return c;
2858
+ if (c = i(path__default.default.resolve(e, t.main))) return c;
2672
2859
  } catch (e) {}
2673
2860
  }
2674
2861
  }
2675
2862
  return s(path__default.default.join(e, "/index"));
2676
2863
  }
2677
- var i, a, l, c, u, d, h, p, f, m, g, y, w, _, v, b;
2864
+ var o, a, l, c, u, d, h, p, f, m, g, y, w, E, _, v;
2678
2865
  if ("string" != typeof t) throw new TypeError("Path must be a string.");
2679
- if (i = normalizeOptions(0, r), a = i.isFile || defaultIsFile, l = i.readFileSync || fs__default.default.readFileSync,
2680
- c = i.isDirectory || defaultIsDir, u = i.realpathSync || defaultRealpathSync, d = i.readPackageSync || defaultReadPackageSync,
2681
- i.readFileSync && i.readPackageSync) throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");
2682
- if (h = i.packageIterator, p = i.extensions || [ ".js" ], f = !1 !== i.includeCoreModules,
2683
- m = i.basedir || path__default.default.dirname(caller()), g = i.filename || m, i.paths = i.paths || [],
2684
- y = maybeRealpathSync(u, path__default.default.resolve(m), i), /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)) {
2866
+ if (o = normalizeOptions(0, r), a = o.isFile || defaultIsFile, l = o.readFileSync || fs__default.default.readFileSync,
2867
+ c = o.isDirectory || defaultIsDir, u = o.realpathSync || defaultRealpathSync, d = o.readPackageSync || defaultReadPackageSync,
2868
+ o.readFileSync && o.readPackageSync) throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");
2869
+ if (h = o.packageIterator, p = o.extensions || [ ".js" ], f = !1 !== o.includeCoreModules,
2870
+ m = o.basedir || path__default.default.dirname(caller()), g = o.filename || m, o.paths = o.paths || [],
2871
+ y = maybeRealpathSync(u, path__default.default.resolve(m), o), /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)) {
2685
2872
  if (w = path__default.default.resolve(y, t), "." !== t && ".." !== t && "/" !== t.slice(-1) || (w += "/"),
2686
- _ = s(w) || o(w)) return maybeRealpathSync(u, _, i);
2873
+ E = s(w) || i(w)) return maybeRealpathSync(u, E, o);
2687
2874
  } else {
2688
2875
  if (f && isCoreModule(t)) return t;
2689
- if (v = function E(e, t) {
2876
+ if (_ = function b(e, t) {
2690
2877
  var r, n, a, l, u = function() {
2691
- return getPackageCandidates(e, t, i);
2692
- }, d = h ? h(e, t, u, i) : u();
2878
+ return getPackageCandidates(e, t, o);
2879
+ }, d = h ? h(e, t, u, o) : u();
2693
2880
  for (r = 0; r < d.length; r++) if (n = d[r], c(path__default.default.dirname(n))) {
2694
2881
  if (a = s(n)) return a;
2695
- if (l = o(n)) return l;
2882
+ if (l = i(n)) return l;
2696
2883
  }
2697
- }(t, y)) return maybeRealpathSync(u, v, i);
2884
+ }(t, y)) return maybeRealpathSync(u, _, o);
2698
2885
  }
2699
- throw (b = new Error("Cannot find module '" + t + "' from '" + g + "'")).code = "MODULE_NOT_FOUND",
2700
- b;
2886
+ throw (v = new Error("Cannot find module '" + t + "' from '" + g + "'")).code = "MODULE_NOT_FOUND",
2887
+ v;
2701
2888
  }, async.core = core_1, async.isCore = isCore, async.sync = sync, resolve = async;
2702
2889
 
2703
2890
  const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json", ".md" ], COMMON_DIR_FILENAMES = [ "package.json", "index.js", "index.mjs" ], getCommonDirName = (e, t) => e + "/" + t, isCommonDirModuleFile = e => COMMON_DIR_MODULE_EXTS.some((t => e.endsWith(t))), shouldFetchModule = e => IS_FETCH_ENV && IS_BROWSER_ENV && isNodeModulePath(e), isNodeModulePath = e => normalizePath(e).split("/").includes("node_modules"), getPackageDirPath = (e, t) => {
@@ -2721,20 +2908,20 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
2721
2908
  let s = (r = normalizePath(r)).split("/").filter((e => e.length));
2722
2909
  const n = s.lastIndexOf("node_modules");
2723
2910
  n > -1 && n < s.length - 1 && (s = s.slice(n + 1));
2724
- let o = s.shift();
2725
- o.startsWith("@") && (o += "/" + s.shift());
2726
- const i = s.join("/");
2727
- return "@stencil/core" === o ? ((e, t) => {
2911
+ let i = s.shift();
2912
+ i.startsWith("@") && (i += "/" + s.shift());
2913
+ const o = s.join("/");
2914
+ return "@stencil/core" === i ? ((e, t) => {
2728
2915
  let r = (t = normalizePath(t)).split("/");
2729
2916
  const s = r.lastIndexOf("node_modules");
2730
2917
  s > -1 && s < r.length - 1 && (r = r.slice(s + 1), r = r[0].startsWith("@") ? r.slice(2) : r.slice(1),
2731
2918
  t = r.join("/"));
2732
2919
  const n = new URL("../", e).href;
2733
2920
  return new URL("./" + t, n).href;
2734
- })(e.getCompilerExecutingPath(), i) : e.getRemoteModuleUrl({
2735
- moduleId: o,
2736
- version: t.get(o),
2737
- path: i
2921
+ })(e.getCompilerExecutingPath(), o) : e.getRemoteModuleUrl({
2922
+ moduleId: i,
2923
+ version: t.get(i),
2924
+ path: o
2738
2925
  });
2739
2926
  }, knownUrlSkips = [ "/@stencil/core/internal.js", "/@stencil/core/internal.json", "/@stencil/core/internal.mjs", "/@stencil/core/internal/stencil-core.js/index.json", "/@stencil/core/internal/stencil-core.js.json", "/@stencil/core/internal/stencil-core.js/package.json", "/@stencil/core.js", "/@stencil/core.json", "/@stencil/core.mjs", "/@stencil/core.css", "/@stencil/core/index.js", "/@stencil/core/index.json", "/@stencil/core/index.mjs", "/@stencil/core/index.css", "/@stencil/package.json" ], fetchModuleAsync = async (e, t, r, s, n) => {
2740
2927
  if (!((e => {
@@ -2743,11 +2930,11 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
2743
2930
  const r = e.split("/"), s = r[r.length - 2], n = r[r.length - 1];
2744
2931
  return !("node_modules" !== s || !isCommonDirModuleFile(n));
2745
2932
  })(n) || known404Urls.has(s) || (e => knownUrlSkips.some((t => e.endsWith(t))))(s))) try {
2746
- const o = await ((e, t, r) => e && isFunction(e.fetch) ? e.fetch(t, r) : fetch(t, r))(e, s);
2747
- if (o) {
2748
- if (o.ok) {
2749
- const i = await o.clone().text();
2750
- return await (async (e, t, r, s, n, o) => {
2933
+ const i = await ((e, t, r) => e && isFunction(e.fetch) ? e.fetch(t, r) : fetch(t, r))(e, s);
2934
+ if (i) {
2935
+ if (i.ok) {
2936
+ const o = await i.clone().text();
2937
+ return await (async (e, t, r, s, n, i) => {
2751
2938
  r.endsWith("package.json") && ((e, t) => {
2752
2939
  try {
2753
2940
  const r = JSON.parse(t);
@@ -2755,14 +2942,14 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
2755
2942
  e.set(t, r);
2756
2943
  })(e, r.name, r.version);
2757
2944
  } catch (e) {}
2758
- })(o, n);
2759
- let i = path$2.dirname(s);
2760
- for (;"/" !== i && "" !== i; ) t ? (t.clearFileCache(i), await t.sys.createDir(i)) : await e.createDir(i),
2761
- i = path$2.dirname(i);
2945
+ })(i, n);
2946
+ let o = path$2.dirname(s);
2947
+ for (;"/" !== o && "" !== o; ) t ? (t.clearFileCache(o), await t.sys.createDir(o)) : await e.createDir(o),
2948
+ o = path$2.dirname(o);
2762
2949
  t ? (t.clearFileCache(s), await t.sys.writeFile(s, n)) : await e.writeFile(s, n);
2763
- })(e, t, s, n, i, r), i;
2950
+ })(e, t, s, n, o, r), o;
2764
2951
  }
2765
- 404 === o.status && known404Urls.add(s);
2952
+ 404 === i.status && known404Urls.add(s);
2766
2953
  }
2767
2954
  } catch (e) {
2768
2955
  console.error(e);
@@ -2799,8 +2986,8 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
2799
2986
  let r = BLUE, s = "Build", n = "";
2800
2987
  "error" === e.level ? (r = RED, s = "Error") : "warn" === e.level && (r = YELLOW,
2801
2988
  s = "Warning"), e.header && (s = e.header);
2802
- const o = e.relFilePath || e.absFilePath;
2803
- if (o && (n += o, "number" == typeof e.lineNumber && e.lineNumber > 0 && (n += ", line " + e.lineNumber,
2989
+ const i = e.relFilePath || e.absFilePath;
2990
+ if (i && (n += i, "number" == typeof e.lineNumber && e.lineNumber > 0 && (n += ", line " + e.lineNumber,
2804
2991
  "number" == typeof e.columnNumber && e.columnNumber > 0 && (n += ", column " + e.columnNumber)),
2805
2992
  n += "\n"), n += e.messageText, e.lines && e.lines.length > 0 && (e.lines.forEach((e => {
2806
2993
  n += "\n" + e.lineNumber + ": " + e.text;
@@ -2811,7 +2998,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
2811
2998
  })(t, e)));
2812
2999
  }
2813
3000
  };
2814
- })(), s = new Map, n = new Set, o = e => n.add(e), i = e => n.delete(e), a = buildEvents(), l = IS_BROWSER_ENV && navigator.hardwareConcurrency || 1, c = e => {
3001
+ })(), s = new Map, n = new Set, i = e => n.add(e), o = e => n.delete(e), a = buildEvents(), l = IS_BROWSER_ENV && navigator.hardwareConcurrency || 1, c = e => {
2815
3002
  if ("/" === e || "" === e) return "/";
2816
3003
  const t = path$2.dirname(e), r = path$2.basename(e);
2817
3004
  return t.endsWith("/") ? normalizePath(`${t}${r}`) : normalizePath(`${t}/${r}`);
@@ -2831,15 +3018,15 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
2831
3018
  }, h = (e, t, r) => {
2832
3019
  const n = path$2.dirname(e);
2833
3020
  t && t.recursive && !(e => "/" === e || windowsPathRegex.test(e))(n) && h(n, t, r);
2834
- const o = s.get(e);
2835
- o ? (o.isDirectory = !0, o.isFile = !1) : (s.set(e, {
3021
+ const i = s.get(e);
3022
+ i ? (i.isDirectory = !0, i.isFile = !1) : (s.set(e, {
2836
3023
  basename: path$2.basename(e),
2837
3024
  dirname: n,
2838
3025
  isDirectory: !0,
2839
3026
  isFile: !1,
2840
3027
  watcherCallbacks: null,
2841
3028
  data: void 0
2842
- }), r.newDirs.push(e), b(e, new Set));
3029
+ }), r.newDirs.push(e), v(e, new Set));
2843
3030
  }, p = e => {
2844
3031
  e = c(e);
2845
3032
  const t = [], r = s.get(e);
@@ -2854,12 +3041,12 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
2854
3041
  path: c(e),
2855
3042
  error: null
2856
3043
  }), g = (e, t, r) => {
2857
- const n = _(e);
3044
+ const n = E(e);
2858
3045
  if (!n.error && !r.error) if (n.isFile) {
2859
- const n = path$2.dirname(t), o = d(n, {
3046
+ const n = path$2.dirname(t), i = d(n, {
2860
3047
  recursive: !0
2861
- }), i = s.get(e).data, a = E(t, i);
2862
- r.newDirs.push(...o.newDirs), r.renamed.push({
3048
+ }), o = s.get(e).data, a = b(t, o);
3049
+ r.newDirs.push(...i.newDirs), r.renamed.push({
2863
3050
  oldPath: e,
2864
3051
  newPath: t,
2865
3052
  isDirectory: !1,
@@ -2897,13 +3084,13 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
2897
3084
  if (t && t.recursive) for (const e of n) {
2898
3085
  const n = s.get(e);
2899
3086
  if (n) if (n.isDirectory) w(e, t, r); else if (n.isFile) {
2900
- const t = v(e);
3087
+ const t = _(e);
2901
3088
  t.error ? r.error = t.error : r.removedFiles.push(e);
2902
3089
  }
2903
3090
  } else if (n.length > 0) return void (r.error = "cannot delete directory that contains files/subdirectories");
2904
- s.delete(e), b(e, new Set), r.removedDirs.push(e);
3091
+ s.delete(e), v(e, new Set), r.removedDirs.push(e);
2905
3092
  }
2906
- }, _ = e => {
3093
+ }, E = e => {
2907
3094
  e = c(e);
2908
3095
  const t = s.get(e);
2909
3096
  return t && (t.isDirectory || t.isFile && "string" == typeof t.data) ? {
@@ -2919,7 +3106,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
2919
3106
  size: 0,
2920
3107
  error: `ENOENT: no such file or directory, statSync '${e}'`
2921
3108
  };
2922
- }, v = e => {
3109
+ }, _ = e => {
2923
3110
  e = c(e);
2924
3111
  const t = {
2925
3112
  basename: path$2.basename(e),
@@ -2929,14 +3116,14 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
2929
3116
  }, r = s.get(e);
2930
3117
  if (r) {
2931
3118
  if (r.watcherCallbacks) for (const t of r.watcherCallbacks) t(e, "fileDelete");
2932
- s.delete(e), b(e, new Set);
3119
+ s.delete(e), v(e, new Set);
2933
3120
  }
2934
3121
  return t;
2935
- }, b = (e, t) => {
3122
+ }, v = (e, t) => {
2936
3123
  const r = c(path$2.dirname(e)), n = s.get(r);
2937
3124
  if (n && n.isDirectory && n.watcherCallbacks) for (const t of n.watcherCallbacks) t(e, null);
2938
- t.has(r) || (t.add(r), b(r, t));
2939
- }, E = (e, t) => {
3125
+ t.has(r) || (t.add(r), v(r, t));
3126
+ }, b = (e, t) => {
2940
3127
  const r = {
2941
3128
  path: e = c(e),
2942
3129
  error: null
@@ -2951,18 +3138,18 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
2951
3138
  isFile: !0,
2952
3139
  watcherCallbacks: null,
2953
3140
  data: t
2954
- }), b(e, new Set);
3141
+ }), v(e, new Set);
2955
3142
  return r;
2956
3143
  }, T = "undefined" != typeof self ? null === self || void 0 === self ? void 0 : self.fetch : "undefined" != typeof window ? null === window || void 0 === window ? void 0 : window.fetch : "undefined" != typeof global ? null === global || void 0 === global ? void 0 : global.fetch : void 0, S = Promise.resolve();
2957
3144
  d("/");
2958
3145
  const C = {
2959
3146
  name: "in-memory",
2960
- version: "3.0.0-alpha.0",
3147
+ version: "3.0.0-alpha.1",
2961
3148
  events: a,
2962
3149
  access: async e => u(e),
2963
3150
  accessSync: u,
2964
- addDestroy: o,
2965
- copyFile: async (e, t) => (E(t, f(e)), !0),
3151
+ addDestroy: i,
3152
+ copyFile: async (e, t) => (b(t, f(e)), !0),
2966
3153
  createDir: async (e, t) => d(e, t),
2967
3154
  createDirSync: d,
2968
3155
  homeDir: () => os__namespace.homedir(),
@@ -3005,7 +3192,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3005
3192
  readFileSync: f,
3006
3193
  realpath: async e => m(e),
3007
3194
  realpathSync: m,
3008
- removeDestroy: i,
3195
+ removeDestroy: o,
3009
3196
  rename: async (e, t) => {
3010
3197
  const r = {
3011
3198
  oldPath: e = normalizePath(e),
@@ -3018,7 +3205,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3018
3205
  isFile: !1,
3019
3206
  isDirectory: !1,
3020
3207
  error: null
3021
- }, s = _(e);
3208
+ }, s = E(e);
3022
3209
  if (s.error) r.error = `${e} does not exist`; else if (s.isFile ? r.isFile = !0 : s.isDirectory && (r.isDirectory = !0),
3023
3210
  g(e, t, r), !r.error) if (r.isDirectory) {
3024
3211
  const t = y(e, {
@@ -3026,7 +3213,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3026
3213
  });
3027
3214
  t.error ? r.error = t.error : (r.oldDirs.push(...t.removedDirs), r.oldFiles.push(...t.removedFiles));
3028
3215
  } else if (r.isFile) {
3029
- const t = v(e);
3216
+ const t = _(e);
3030
3217
  t.error ? r.error = t.error : r.oldFiles.push(e);
3031
3218
  }
3032
3219
  return r;
@@ -3035,11 +3222,11 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3035
3222
  resolvePath: e => c(e),
3036
3223
  removeDir: async (e, t = {}) => y(e, t),
3037
3224
  removeDirSync: y,
3038
- stat: async e => _(e),
3039
- statSync: _,
3225
+ stat: async e => E(e),
3226
+ statSync: E,
3040
3227
  tmpDirSync: () => "/.tmp",
3041
- removeFile: async e => v(e),
3042
- removeFileSync: v,
3228
+ removeFile: async e => _(e),
3229
+ removeFileSync: _,
3043
3230
  watchDirectory: (e, t) => {
3044
3231
  e = c(e);
3045
3232
  const r = s.get(e), n = () => {
@@ -3049,7 +3236,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3049
3236
  e > -1 && r.watcherCallbacks.splice(e, 1);
3050
3237
  }
3051
3238
  };
3052
- return o(n), r ? (r.isDirectory = !0, r.isFile = !1, r.watcherCallbacks = r.watcherCallbacks || [],
3239
+ return i(n), r ? (r.isDirectory = !0, r.isFile = !1, r.watcherCallbacks = r.watcherCallbacks || [],
3053
3240
  r.watcherCallbacks.push(t)) : s.set(e, {
3054
3241
  basename: path$2.basename(e),
3055
3242
  dirname: path$2.dirname(e),
@@ -3059,7 +3246,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3059
3246
  data: void 0
3060
3247
  }), {
3061
3248
  close() {
3062
- i(n), n();
3249
+ o(n), n();
3063
3250
  }
3064
3251
  };
3065
3252
  },
@@ -3072,7 +3259,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3072
3259
  e > -1 && r.watcherCallbacks.splice(e, 1);
3073
3260
  }
3074
3261
  };
3075
- return o(n), r ? (r.isDirectory = !1, r.isFile = !0, r.watcherCallbacks = r.watcherCallbacks || [],
3262
+ return i(n), r ? (r.isDirectory = !1, r.isFile = !0, r.watcherCallbacks = r.watcherCallbacks || [],
3076
3263
  r.watcherCallbacks.push(t)) : s.set(e, {
3077
3264
  basename: path$2.basename(e),
3078
3265
  dirname: path$2.dirname(e),
@@ -3082,31 +3269,31 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3082
3269
  data: void 0
3083
3270
  }), {
3084
3271
  close() {
3085
- i(n), n();
3272
+ o(n), n();
3086
3273
  }
3087
3274
  };
3088
3275
  },
3089
3276
  watchTimeout: 32,
3090
- writeFile: async (e, t) => E(e, t),
3091
- writeFileSync: E,
3277
+ writeFile: async (e, t) => b(e, t),
3278
+ writeFileSync: b,
3092
3279
  generateContentHash: async (e, t) => {
3093
3280
  const r = await crypto.subtle.digest("SHA-256", (new TextEncoder).encode(e));
3094
3281
  let s = Array.from(new Uint8Array(r)).map((e => e.toString(16).padStart(2, "0"))).join("");
3095
3282
  return "number" == typeof t && (s = s.slice(0, t)), s;
3096
3283
  },
3097
3284
  createWorkerController: HAS_WEB_WORKER ? e => ((e, t) => {
3098
- let r, s = 0, n = !1, o = !1, i = 0;
3285
+ let r, s = 0, n = !1, i = !1, o = 0;
3099
3286
  const a = new Map, l = [], c = [], u = Math.max(Math.min(t, e.hardwareConcurrency), 2) - 1, d = Promise.resolve(), h = e => console.error(e), p = () => {
3100
3287
  let t = null;
3101
- const s = e.getCompilerExecutingPath(), o = {
3102
- name: "stencil.worker." + i++
3288
+ const s = e.getCompilerExecutingPath(), i = {
3289
+ name: "stencil.worker." + o++
3103
3290
  };
3104
3291
  try {
3105
- t = new Worker(s, o);
3292
+ t = new Worker(s, i);
3106
3293
  } catch (e) {
3107
3294
  null == r && (r = new Blob([ `importScripts('${s}');` ], {
3108
3295
  type: "application/javascript"
3109
- })), t = new Worker(URL.createObjectURL(r), o);
3296
+ })), t = new Worker(URL.createObjectURL(r), i);
3110
3297
  }
3111
3298
  const l = {
3112
3299
  worker: t,
@@ -3135,7 +3322,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3135
3322
  } else t = p(), c.push(t);
3136
3323
  t.activeTasks++, t.sendQueue.push(e);
3137
3324
  }, g = () => {
3138
- o = !1, l.forEach(m), l.length = 0, c.forEach(f);
3325
+ i = !1, l.forEach(m), l.length = 0, c.forEach(f);
3139
3326
  }, y = (...e) => new Promise(((t, r) => {
3140
3327
  if (n) r("task canceled"); else {
3141
3328
  const n = {
@@ -3145,7 +3332,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3145
3332
  l.push(n), a.set(n.stencilId, {
3146
3333
  resolve: t,
3147
3334
  reject: r
3148
- }), o || (o = !0, d.then(g));
3335
+ }), i || (i = !0, d.then(g));
3149
3336
  }
3150
3337
  }));
3151
3338
  return {
@@ -3176,11 +3363,11 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3176
3363
  return C.resolveModuleId = e => ((e, t, r) => {
3177
3364
  const s = ((e, t, r) => ({
3178
3365
  async isFile(s, n) {
3179
- const o = normalizeFsPath(s);
3180
- if ((await t.stat(o)).isFile) n(null, !0); else {
3181
- if (shouldFetchModule(o) && r.some((e => o.endsWith(e)))) {
3182
- const r = getNodeModuleFetchUrl(e, packageVersions, o);
3183
- return void n(null, "string" == typeof await fetchModuleAsync(e, t, packageVersions, r, o));
3366
+ const i = normalizeFsPath(s);
3367
+ if ((await t.stat(i)).isFile) n(null, !0); else {
3368
+ if (shouldFetchModule(i) && r.some((e => i.endsWith(e)))) {
3369
+ const r = getNodeModuleFetchUrl(e, packageVersions, i);
3370
+ return void n(null, "string" == typeof await fetchModuleAsync(e, t, packageVersions, r, i));
3184
3371
  }
3185
3372
  n(null, !1);
3186
3373
  }
@@ -3193,7 +3380,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3193
3380
  void s(null, !0);
3194
3381
  if (isCommonDirModuleFile(n)) return void s(null, !1);
3195
3382
  for (const r of COMMON_DIR_FILENAMES) {
3196
- const o = getCommonDirUrl(e, packageVersions, n, r), i = getCommonDirName(n, r), a = await fetchModuleAsync(e, t, packageVersions, o, i);
3383
+ const i = getCommonDirUrl(e, packageVersions, n, r), o = getCommonDirName(n, r), a = await fetchModuleAsync(e, t, packageVersions, i, o);
3197
3384
  if (isString(a)) return void s(null, !0);
3198
3385
  }
3199
3386
  }
@@ -3212,13 +3399,13 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3212
3399
  }))(e, null, r.exts);
3213
3400
  return s.basedir = path$2.dirname(normalizeFsPath(r.containingFile)), r.packageFilter ? s.packageFilter = r.packageFilter : null !== r.packageFilter && (s.packageFilter = e => (isString(e.main) && "" !== e.main || (e.main = "package.json"),
3214
3401
  e)), new Promise(((e, t) => {
3215
- resolve(r.moduleId, s, ((s, n, o) => {
3402
+ resolve(r.moduleId, s, ((s, n, i) => {
3216
3403
  if (s) t(s); else {
3217
3404
  n = normalizePath(n);
3218
3405
  const t = {
3219
3406
  moduleId: r.moduleId,
3220
3407
  resolveId: n,
3221
- pkgData: o,
3408
+ pkgData: i,
3222
3409
  pkgDirPath: getPackageDirPath(n, r.moduleId)
3223
3410
  };
3224
3411
  e(t);
@@ -3259,7 +3446,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3259
3446
  t = e;
3260
3447
  }
3261
3448
  }
3262
- }), !function o(e) {
3449
+ }), !function i(e) {
3263
3450
  return "diskReads" in e && "diskWrites" in e;
3264
3451
  }(r)) throw new Error("could not generate TestingSystem");
3265
3452
  return r;
@@ -3347,7 +3534,7 @@ class E2EElement extends index_cjs.MockHTMLElement {
3347
3534
  this._validate();
3348
3535
  let e = !1;
3349
3536
  try {
3350
- const t = this._elmHandle.executionContext();
3537
+ const t = getPuppeteerExecution(this._elmHandle);
3351
3538
  e = await t.evaluate((e => new Promise((t => {
3352
3539
  window.requestAnimationFrame((() => {
3353
3540
  if (e.isConnected) {
@@ -3367,8 +3554,8 @@ class E2EElement extends index_cjs.MockHTMLElement {
3367
3554
  waitForVisible() {
3368
3555
  return new Promise(((e, t) => {
3369
3556
  const r = setInterval((async () => {
3370
- await this.isVisible() && (clearInterval(r), clearTimeout(o), e());
3371
- }), 10), s = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, n = new Error(`waitForVisible timed out: ${s}ms`), o = setTimeout((() => {
3557
+ await this.isVisible() && (clearInterval(r), clearTimeout(i), e());
3558
+ }), 10), s = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, n = new Error(`waitForVisible timed out: ${s}ms`), i = setTimeout((() => {
3372
3559
  clearTimeout(r), t(n);
3373
3560
  }), s);
3374
3561
  }));
@@ -3376,8 +3563,8 @@ class E2EElement extends index_cjs.MockHTMLElement {
3376
3563
  waitForNotVisible() {
3377
3564
  return new Promise(((e, t) => {
3378
3565
  const r = setInterval((async () => {
3379
- await this.isVisible() || (clearInterval(r), clearTimeout(o), e());
3380
- }), 10), s = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, n = new Error(`waitForNotVisible timed out: ${s}ms`), o = setTimeout((() => {
3566
+ await this.isVisible() || (clearInterval(r), clearTimeout(i), e());
3567
+ }), 10), s = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, n = new Error(`waitForNotVisible timed out: ${s}ms`), i = setTimeout((() => {
3381
3568
  clearTimeout(r), t(n);
3382
3569
  }), s);
3383
3570
  }));
@@ -3396,7 +3583,7 @@ class E2EElement extends index_cjs.MockHTMLElement {
3396
3583
  }
3397
3584
  async getProperty(e) {
3398
3585
  this._validate();
3399
- const t = this._elmHandle.executionContext();
3586
+ const t = getPuppeteerExecution(this._elmHandle);
3400
3587
  return await t.evaluate(((e, t) => e[t]), this._elmHandle, e);
3401
3588
  }
3402
3589
  setProperty(e, t) {
@@ -3553,7 +3740,7 @@ class E2EElement extends index_cjs.MockHTMLElement {
3553
3740
  }
3554
3741
  async e2eRunActions() {
3555
3742
  if (0 === this._queuedActions.length) return;
3556
- const e = this._elmHandle.executionContext(), t = await e.evaluate(((e, t) => e.componentOnReady().then((() => {
3743
+ const e = getPuppeteerExecution(this._elmHandle), t = await e.evaluate(((e, t) => e.componentOnReady().then((() => {
3557
3744
  let r = null;
3558
3745
  return t.forEach((t => {
3559
3746
  if (t.methodName) r = e[t.methodName].apply(e, t.methodArgs); else if (t.setPropertyName) e[t.setPropertyName] = t.setPropertyValue; else if (t.setAttributeName) e.setAttribute(t.setAttributeName, t.setAttributeValue); else if (t.removeAttribute) e.removeAttribute(t.removeAttribute); else if (t.toggleAttributeName) "boolean" == typeof t.toggleAttributeForce ? e.toggleAttribute(t.toggleAttributeName, t.toggleAttributeForce) : e.toggleAttribute(t.toggleAttributeName); else if (t.classAdd) e.classList.add(t.classAdd); else if (t.classRemove) e.classList.remove(t.classRemove); else if (t.classToggle) e.classList.toggle(t.classToggle); else if (t.eventName) {
@@ -3568,7 +3755,7 @@ class E2EElement extends index_cjs.MockHTMLElement {
3568
3755
  return this._queuedActions.length = 0, t;
3569
3756
  }
3570
3757
  async e2eSync() {
3571
- const e = this._elmHandle.executionContext(), {outerHTML: t, shadowRootHTML: r} = await e.evaluate((e => ({
3758
+ const e = getPuppeteerExecution(this._elmHandle), {outerHTML: t, shadowRootHTML: r} = await e.evaluate((e => ({
3572
3759
  outerHTML: e.outerHTML,
3573
3760
  shadowRootHTML: e.shadowRoot ? e.shadowRoot.innerHTML : null
3574
3761
  })), this._elmHandle);
@@ -3636,15 +3823,15 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3636
3823
  var e;
3637
3824
  const t = null !== (e = require("jest-runner").default) && void 0 !== e ? e : require("jest-runner");
3638
3825
  return class r extends t {
3639
- async runTests(e, t, r, s, n, o) {
3640
- const i = process.env;
3826
+ async runTests(e, t, r, s, n, i) {
3827
+ const o = process.env;
3641
3828
  if (e = e.filter((e => function t(e, r) {
3642
3829
  const s = (e = e.toLowerCase().replace(/\\/g, "/")).includes(".e2e.") || e.includes("/e2e.");
3643
3830
  return !("true" !== r.__STENCIL_E2E_TESTS__ || !s) || "true" === r.__STENCIL_SPEC_TESTS__ && !s;
3644
- }(e.path, i))), "true" === i.__STENCIL_SCREENSHOT__) {
3645
- const a = JSON.parse(i.__STENCIL_EMULATE_CONFIGS__);
3646
- for (let l = 0; l < a.length; l++) setScreenshotEmulateData(a[l], i), await super.runTests(e, t, r, s, n, o);
3647
- } else await super.runTests(e, t, r, s, n, o);
3831
+ }(e.path, o))), "true" === o.__STENCIL_SCREENSHOT__) {
3832
+ const a = JSON.parse(o.__STENCIL_EMULATE_CONFIGS__);
3833
+ for (let l = 0; l < a.length; l++) setScreenshotEmulateData(a[l], o), await super.runTests(e, t, r, s, n, i);
3834
+ } else await super.runTests(e, t, r, s, n, i);
3648
3835
  }
3649
3836
  };
3650
3837
  }, exports.createTesting = async e => {
@@ -3656,14 +3843,14 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3656
3843
  })), e.flags.args.includes("--watchAll") && (e.watch = !0), e;
3657
3844
  }(e);
3658
3845
  const {createCompiler: r} = require("../compiler/stencil.js"), s = await r(e);
3659
- let n, o;
3660
- const i = async () => {
3846
+ let n, i;
3847
+ const o = async () => {
3661
3848
  const t = [];
3662
3849
  e && (e.sys && e.sys.destroy && t.push(e.sys.destroy()), e = null), n && (n.close && t.push(n.close()),
3663
- n = null), o && (o.close && t.push(o.close()), o = null), await Promise.all(t);
3850
+ n = null), i && (i.close && t.push(i.close()), i = null), await Promise.all(t);
3664
3851
  };
3665
3852
  return {
3666
- destroy: i,
3853
+ destroy: o,
3667
3854
  run: async (t = {}) => {
3668
3855
  let r, a = !1, l = !1, c = null;
3669
3856
  const u = [];
@@ -3686,9 +3873,9 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3686
3873
  })), c.start()) : t = s.build()), e.devServer.openBrowser = !1, e.devServer.gzip = !1,
3687
3874
  e.devServer.reloadStrategy = null;
3688
3875
  const l = await Promise.all([ index_js.start(e.devServer, e.logger), startPuppeteerBrowser(e) ]);
3689
- if (n = l[0], o = l[1], t) {
3876
+ if (n = l[0], i = l[1], t) {
3690
3877
  const r = await t;
3691
- if (!r || !e.watch && hasError(r && r.diagnostics)) return await i(), !1;
3878
+ if (!r || !e.watch && hasError(r && r.diagnostics)) return await o(), !1;
3692
3879
  }
3693
3880
  n && (r.__STENCIL_BROWSER_URL__ = n.browserUrl, e.logger.debug(`e2e dev server url: ${r.__STENCIL_BROWSER_URL__}`),
3694
3881
  r.__STENCIL_APP_SCRIPT_URL__ = function d(e, t) {
@@ -3722,13 +3909,13 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3722
3909
  waitBeforeScreenshot: e.testing.waitBeforeScreenshot,
3723
3910
  pixelmatchModulePath: s
3724
3911
  }), e.flags.updateScreenshot || await r.pullMasterBuild(), n.finish("screenshot, initBuild finished");
3725
- const o = await Promise.all([ await r.getMasterBuild(), await r.getScreenshotCache() ]), i = o[0], a = o[1];
3726
- t.__STENCIL_SCREENSHOT_BUILD__ = r.toJson(i, a);
3912
+ const i = await Promise.all([ await r.getMasterBuild(), await r.getScreenshotCache() ]), o = i[0], a = i[1];
3913
+ t.__STENCIL_SCREENSHOT_BUILD__ = r.toJson(o, a);
3727
3914
  const l = e.logger.createTimeSpan("screenshot, tests started", !0), c = await runJest(e, t);
3728
3915
  l.finish(`screenshot, tests finished, passed: ${c}`);
3729
3916
  try {
3730
3917
  const t = e.logger.createTimeSpan("screenshot, completeTimespan started", !0);
3731
- let s = await r.completeBuild(i);
3918
+ let s = await r.completeBuild(o);
3732
3919
  if (t.finish("screenshot, completeTimespan finished"), s) {
3733
3920
  const t = e.logger.createTimeSpan("screenshot, publishBuild started", !0);
3734
3921
  if (s = await r.publishBuild(s), t.finish("screenshot, publishBuild finished"),
@@ -3862,19 +4049,19 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3862
4049
  const t = process.env;
3863
4050
  "true" === t.__STENCIL_SCREENSHOT__ ? e.compareScreenshot = (r, s) => {
3864
4051
  const n = global;
3865
- let o, i = "", a = "";
3866
- if (n.currentSpec && ("string" == typeof n.currentSpec.fullName && (i = n.currentSpec.fullName),
3867
- "string" == typeof n.currentSpec.testPath && (a = n.currentSpec.testPath)), "string" == typeof r ? (i.length > 0 ? i += ", " + r : i = r,
3868
- "object" == typeof s && (o = s)) : "object" == typeof r && (o = r), i = i.trim(),
3869
- o = o || {}, !i) throw new Error(`Invalid screenshot description in "${a}"`);
3870
- if (n.screenshotDescriptions.has(i)) throw new Error(`Screenshot description "${i}" found in "${a}" cannot be used for multiple screenshots and must be unique. To make screenshot descriptions unique within the same test, use the first argument to "compareScreenshot", such as "compareScreenshot('more to the description')".`);
3871
- return n.screenshotDescriptions.add(i), async function l(e, t, r, s, n) {
4052
+ let i, o = "", a = "";
4053
+ if (n.currentSpec && ("string" == typeof n.currentSpec.fullName && (o = n.currentSpec.fullName),
4054
+ "string" == typeof n.currentSpec.testPath && (a = n.currentSpec.testPath)), "string" == typeof r ? (o.length > 0 ? o += ", " + r : o = r,
4055
+ "object" == typeof s && (i = s)) : "object" == typeof r && (i = r), o = o.trim(),
4056
+ i = i || {}, !o) throw new Error(`Invalid screenshot description in "${a}"`);
4057
+ if (n.screenshotDescriptions.has(o)) throw new Error(`Screenshot description "${o}" found in "${a}" cannot be used for multiple screenshots and must be unique. To make screenshot descriptions unique within the same test, use the first argument to "compareScreenshot", such as "compareScreenshot('more to the description')".`);
4058
+ return n.screenshotDescriptions.add(o), async function l(e, t, r, s, n) {
3872
4059
  if ("string" != typeof t.__STENCIL_EMULATE__) throw new Error("compareScreenshot, missing screenshot emulate env var");
3873
4060
  if ("string" != typeof t.__STENCIL_SCREENSHOT_BUILD__) throw new Error("compareScreenshot, missing screen build env var");
3874
- const o = JSON.parse(t.__STENCIL_EMULATE__), i = JSON.parse(t.__STENCIL_SCREENSHOT_BUILD__);
4061
+ const i = JSON.parse(t.__STENCIL_EMULATE__), o = JSON.parse(t.__STENCIL_SCREENSHOT_BUILD__);
3875
4062
  await function a(e) {
3876
4063
  return new Promise((t => setTimeout(t, e)));
3877
- }(i.timeoutBeforeScreenshot), await e.evaluate((() => new Promise((e => {
4064
+ }(o.timeoutBeforeScreenshot), await e.evaluate((() => new Promise((e => {
3878
4065
  window.requestAnimationFrame((() => {
3879
4066
  e();
3880
4067
  }));
@@ -3892,11 +4079,11 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3892
4079
  width: e.clip.width,
3893
4080
  height: e.clip.height
3894
4081
  }), t;
3895
- }(n), u = await e.screenshot(l), d = "number" == typeof n.pixelmatchThreshold ? n.pixelmatchThreshold : i.pixelmatchThreshold;
3896
- let h = o.viewport.width, p = o.viewport.height;
4082
+ }(n), u = await e.screenshot(l), d = "number" == typeof n.pixelmatchThreshold ? n.pixelmatchThreshold : o.pixelmatchThreshold;
4083
+ let h = i.viewport.width, p = i.viewport.height;
3897
4084
  return n && n.clip && ("number" == typeof n.clip.width && (h = n.clip.width), "number" == typeof n.clip.height && (p = n.clip.height)),
3898
- await compareScreenshot(o, i, u, r, h, p, s, d);
3899
- }(e, t, i, a, o);
4085
+ await compareScreenshot(i, o, u, r, h, p, s, d);
4086
+ }(e, t, o, a, i);
3900
4087
  } : e.compareScreenshot = async () => ({
3901
4088
  mismatchedPixels: 0,
3902
4089
  allowableMismatchedPixels: 1,
@@ -3944,13 +4131,13 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3944
4131
  e();
3945
4132
  }))));
3946
4133
  };
3947
- const o = !0 === e.failOnConsoleError, i = !0 === e.failOnNetworkError;
4134
+ const i = !0 === e.failOnConsoleError, o = !0 === e.failOnNetworkError;
3948
4135
  t.on("console", (e => {
3949
4136
  if ("error" === e.type() && (r.push({
3950
4137
  type: "error",
3951
4138
  message: e.text(),
3952
4139
  location: e.location().url
3953
- }), o)) throw new Error(serializeConsoleMessage(e));
4140
+ }), i)) throw new Error(serializeConsoleMessage(e));
3954
4141
  !function t(e) {
3955
4142
  const t = serializeConsoleMessage(e), r = e.type(), s = "warning" === r ? "warn" : r;
3956
4143
  "debug" !== s && ("function" == typeof console[s] ? console[s](t) : console.log(r, t));
@@ -3966,7 +4153,7 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3966
4153
  type: "requestfailed",
3967
4154
  message: e.failure().errorText,
3968
4155
  location: e.url()
3969
- }), i) throw new Error(e.failure().errorText);
4156
+ }), o) throw new Error(e.failure().errorText);
3970
4157
  console.error("requestfailed", e.url());
3971
4158
  })), "string" == typeof e.html ? await e2eSetContent(t, e.html, {
3972
4159
  waitUntil: e.waitUntil
@@ -3999,7 +4186,7 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3999
4186
  }, n = e.components.map((e => {
4000
4187
  if (null == e.COMPILER_META) throw new Error('Invalid component class: Missing static "COMPILER_META" property.');
4001
4188
  t.add(e.COMPILER_META.tagName), e.isProxied = !1, function r(e) {
4002
- var t, r, s, n, o, i;
4189
+ var t, r, s, n, i, o;
4003
4190
  "function" == typeof (null === (t = e.prototype) || void 0 === t ? void 0 : t.__componentWillLoad) && (e.prototype.componentWillLoad = e.prototype.__componentWillLoad,
4004
4191
  e.prototype.__componentWillLoad = null), "function" == typeof (null === (r = e.prototype) || void 0 === r ? void 0 : r.__componentWillUpdate) && (e.prototype.componentWillUpdate = e.prototype.__componentWillUpdate,
4005
4192
  e.prototype.__componentWillUpdate = null), "function" == typeof (null === (s = e.prototype) || void 0 === s ? void 0 : s.__componentWillRender) && (e.prototype.componentWillRender = e.prototype.__componentWillRender,
@@ -4008,12 +4195,12 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4008
4195
  const e = this.__componentWillLoad();
4009
4196
  return null != e && "function" == typeof e.then ? testing.writeTask((() => e)) : testing.writeTask((() => Promise.resolve())),
4010
4197
  e;
4011
- }), "function" == typeof (null === (o = e.prototype) || void 0 === o ? void 0 : o.componentWillUpdate) && (e.prototype.__componentWillUpdate = e.prototype.componentWillUpdate,
4198
+ }), "function" == typeof (null === (i = e.prototype) || void 0 === i ? void 0 : i.componentWillUpdate) && (e.prototype.__componentWillUpdate = e.prototype.componentWillUpdate,
4012
4199
  e.prototype.componentWillUpdate = function() {
4013
4200
  const e = this.__componentWillUpdate();
4014
4201
  return null != e && "function" == typeof e.then ? testing.writeTask((() => e)) : testing.writeTask((() => Promise.resolve())),
4015
4202
  e;
4016
- }), "function" == typeof (null === (i = e.prototype) || void 0 === i ? void 0 : i.componentWillRender) && (e.prototype.__componentWillRender = e.prototype.componentWillRender,
4203
+ }), "function" == typeof (null === (o = e.prototype) || void 0 === o ? void 0 : o.componentWillRender) && (e.prototype.__componentWillRender = e.prototype.componentWillRender,
4017
4204
  e.prototype.componentWillRender = function() {
4018
4205
  const e = this.__componentWillRender();
4019
4206
  return null != e && "function" == typeof e.then ? testing.writeTask((() => e)) : testing.writeTask((() => Promise.resolve())),
@@ -4034,7 +4221,7 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4034
4221
  const s = formatComponentRuntimeMembers(e, t), n = formatHostListeners(e);
4035
4222
  return trimFalsy([ r, e.tagName, Object.keys(s).length > 0 ? s : void 0, n.length > 0 ? n : void 0 ]);
4036
4223
  })(e, !0))) ])(s, [ e.COMPILER_META ]);
4037
- })), o = (e => {
4224
+ })), i = (e => {
4038
4225
  const t = e.some((e => e.htmlTagNames.includes("slot"))), r = e.some((e => "shadow" === e.encapsulation)), s = e.some((e => "shadow" !== e.encapsulation && e.htmlTagNames.includes("slot"))), n = {
4039
4226
  allRenderFn: e.every((e => e.hasRenderFn)),
4040
4227
  cmpDidLoad: e.some((e => e.hasComponentDidLoadFn)),
@@ -4094,8 +4281,8 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4094
4281
  return n.asyncLoading = n.cmpWillUpdate || n.cmpWillLoad || n.cmpWillRender, n.vdomAttribute = n.vdomAttribute || n.reflect,
4095
4282
  n.vdomPropOrAttr = n.vdomPropOrAttr || n.reflect, n;
4096
4283
  })(e.components.map((e => e.COMPILER_META)));
4097
- if (e.strictBuild ? Object.assign(appData.BUILD, o) : Object.keys(o).forEach((e => {
4098
- !0 === o[e] && (appData.BUILD[e] = !0);
4284
+ if (e.strictBuild ? Object.assign(appData.BUILD, i) : Object.keys(i).forEach((e => {
4285
+ !0 === i[e] && (appData.BUILD[e] = !0);
4099
4286
  })), appData.BUILD.asyncLoading = !0, e.hydrateClientSide ? (appData.BUILD.hydrateClientSide = !0,
4100
4287
  appData.BUILD.hydrateServerSide = !1) : e.hydrateServerSide && (appData.BUILD.hydrateServerSide = !0,
4101
4288
  appData.BUILD.hydrateClientSide = !1), appData.BUILD.cloneNodeFix = !1, appData.BUILD.shadowDomShim = !1,
@@ -4125,10 +4312,10 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4125
4312
  testing.renderVdom(t, e.template());
4126
4313
  } else "string" == typeof e.html && (s.body.innerHTML = e.html);
4127
4314
  !1 !== e.flushQueue && await s.waitForChanges();
4128
- let i = null;
4315
+ let o = null;
4129
4316
  return Object.defineProperty(s, "root", {
4130
4317
  get() {
4131
- if (null == i && (i = findRootComponent(t, s.body)), null != i) return i;
4318
+ if (null == o && (o = findRootComponent(t, s.body)), null != o) return o;
4132
4319
  const e = s.body.firstElementChild;
4133
4320
  return null != e ? e : null;
4134
4321
  }