@stencil/core 2.9.0 → 2.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/cli/index.cjs +16 -5
  2. package/cli/index.js +16 -5
  3. package/cli/package.json +1 -1
  4. package/compiler/lib.dom.d.ts +263 -648
  5. package/compiler/lib.dom.iterable.d.ts +1 -5
  6. package/compiler/lib.es2015.core.d.ts +2 -2
  7. package/compiler/lib.es2015.iterable.d.ts +1 -1
  8. package/compiler/lib.es2015.symbol.wellknown.d.ts +10 -10
  9. package/compiler/lib.es2018.asynciterable.d.ts +1 -1
  10. package/compiler/lib.es2020.bigint.d.ts +1 -1
  11. package/compiler/lib.es2020.intl.d.ts +6 -7
  12. package/compiler/lib.es2020.symbol.wellknown.d.ts +1 -1
  13. package/compiler/lib.es2021.d.ts +24 -0
  14. package/compiler/lib.es2021.full.d.ts +25 -0
  15. package/compiler/lib.es2021.promise.d.ts +43 -0
  16. package/compiler/lib.es2021.string.d.ts +35 -0
  17. package/compiler/lib.es2021.weakref.d.ts +75 -0
  18. package/compiler/lib.es5.d.ts +9 -9
  19. package/compiler/lib.esnext.d.ts +1 -4
  20. package/compiler/lib.esnext.promise.d.ts +26 -26
  21. package/compiler/lib.esnext.string.d.ts +18 -18
  22. package/compiler/lib.esnext.weakref.d.ts +58 -58
  23. package/compiler/lib.webworker.d.ts +98 -153
  24. package/compiler/lib.webworker.iterable.d.ts +1 -1
  25. package/compiler/package.json +1 -1
  26. package/compiler/stencil.js +497 -725
  27. package/compiler/stencil.min.js +2 -2
  28. package/dependencies.json +6 -1
  29. package/dev-server/client/index.js +1 -1
  30. package/dev-server/client/package.json +1 -1
  31. package/dev-server/connector.html +2 -2
  32. package/dev-server/index.js +1 -1
  33. package/dev-server/package.json +1 -1
  34. package/dev-server/server-process.js +2 -2
  35. package/internal/app-data/package.json +1 -1
  36. package/internal/client/css-shim.js +1 -1
  37. package/internal/client/dom.js +1 -1
  38. package/internal/client/index.js +119 -102
  39. package/internal/client/package.json +1 -1
  40. package/internal/client/patch-browser.js +1 -1
  41. package/internal/client/patch-esm.js +1 -1
  42. package/internal/client/shadow-css.js +9 -10
  43. package/internal/hydrate/index.js +44 -40
  44. package/internal/hydrate/package.json +1 -1
  45. package/internal/hydrate/shadow-css.js +59 -62
  46. package/internal/index.js +1 -0
  47. package/internal/package.json +1 -1
  48. package/internal/stencil-public-compiler.d.ts +1 -1
  49. package/internal/testing/index.js +54 -47
  50. package/internal/testing/package.json +1 -1
  51. package/internal/testing/shadow-css.js +54 -57
  52. package/mock-doc/index.cjs +5 -2
  53. package/mock-doc/index.d.ts +6 -6
  54. package/mock-doc/index.js +5 -2
  55. package/mock-doc/package.json +1 -1
  56. package/package.json +17 -9
  57. package/screenshot/index.js +1 -1
  58. package/screenshot/package.json +1 -1
  59. package/sys/node/autoprefixer.js +2 -2
  60. package/sys/node/index.js +1 -1
  61. package/sys/node/package.json +1 -1
  62. package/sys/node/worker.js +1 -1
  63. package/testing/index.js +84 -73
  64. package/testing/jest/jest-environment.d.ts +1 -0
  65. package/testing/jest/jest-preprocessor.d.ts +56 -8
  66. package/testing/jest-preset.js +5 -0
  67. package/testing/mocks.d.ts +1 -5
  68. package/testing/package.json +1 -1
  69. package/testing/testing-sys.d.ts +6 -1
  70. package/screenshot/index.js.map +0 -1
package/sys/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Node System v2.9.0 | MIT Licensed | https://stenciljs.com
2
+ Stencil Node System v2.12.0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  function _interopDefaultLegacy(e) {
5
5
  return e && "object" == typeof e && "default" in e ? e : {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/sys/node",
3
- "version": "2.9.0",
3
+ "version": "2.12.0",
4
4
  "description": "Stencil Node System.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Node System Worker v2.9.0 | MIT Licensed | https://stenciljs.com
2
+ Stencil Node System Worker v2.12.0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  function _interopNamespace(e) {
5
5
  if (e && e.__esModule) return e;
package/testing/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Testing v2.9.0 | MIT Licensed | https://stenciljs.com
2
+ Stencil Testing v2.12.0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  function _lazyRequire(e) {
5
5
  return new Proxy({}, {
@@ -205,6 +205,64 @@ function formatDiagnostic(e) {
205
205
  t;
206
206
  }
207
207
 
208
+ function getCompilerOptions(e) {
209
+ if (_tsCompilerOptions) return _tsCompilerOptions;
210
+ if ("string" != typeof e) return null;
211
+ e = normalizePath(e);
212
+ const t = stencil_js.ts.findConfigFile(e, stencil_js.ts.sys.fileExists);
213
+ if (!t) return null;
214
+ const r = stencil_js.ts.readConfigFile(t, stencil_js.ts.sys.readFile);
215
+ if (r.error) throw new Error(formatDiagnostic((e => {
216
+ const t = {
217
+ level: "warn",
218
+ type: "typescript",
219
+ language: "typescript",
220
+ header: "TypeScript",
221
+ code: e.code.toString(),
222
+ messageText: flattenDiagnosticMessageText(e, e.messageText),
223
+ relFilePath: null,
224
+ absFilePath: null,
225
+ lines: []
226
+ };
227
+ if (1 === e.category && (t.level = "error"), e.file) {
228
+ t.absFilePath = e.file.fileName;
229
+ const s = "string" != typeof (r = e.file.text) ? [] : (r = r.replace(/\\r/g, "\n")).split("\n"), n = e.file.getLineAndCharacterOfPosition(e.start), i = {
230
+ lineIndex: n.line,
231
+ lineNumber: n.line + 1,
232
+ text: s[n.line],
233
+ errorCharStart: n.character,
234
+ errorLength: Math.max(e.length, 1)
235
+ };
236
+ if (t.lineNumber = i.lineNumber, t.columnNumber = i.errorCharStart + 1, t.lines.push(i),
237
+ 0 === i.errorLength && i.errorCharStart > 0 && (i.errorLength = 1, i.errorCharStart--),
238
+ i.lineIndex > 0) {
239
+ const e = {
240
+ lineIndex: i.lineIndex - 1,
241
+ lineNumber: i.lineNumber - 1,
242
+ text: s[i.lineIndex - 1],
243
+ errorCharStart: -1,
244
+ errorLength: -1
245
+ };
246
+ t.lines.unshift(e);
247
+ }
248
+ if (i.lineIndex + 1 < s.length) {
249
+ const e = {
250
+ lineIndex: i.lineIndex + 1,
251
+ lineNumber: i.lineNumber + 1,
252
+ text: s[i.lineIndex + 1],
253
+ errorCharStart: -1,
254
+ errorLength: -1
255
+ };
256
+ t.lines.push(e);
257
+ }
258
+ }
259
+ var r;
260
+ return t;
261
+ })(r.error)));
262
+ const s = stencil_js.ts.parseJsonConfigFileContent(r.config, stencil_js.ts.sys, e, void 0, t);
263
+ return _tsCompilerOptions = s.options, _tsCompilerOptions;
264
+ }
265
+
208
266
  function compareHtml(e, t, r) {
209
267
  if (null == e) throw new Error(`expect toEqualHtml() value is "${e}"`);
210
268
  if ("function" == typeof e.then) throw new Error("element must be a resolved value, not a promise, before it can be tested");
@@ -1235,9 +1293,13 @@ const path$2 = require("path"), index_js = _lazyRequire("../dev-server/index.js"
1235
1293
  if (!r.includes(t.code) && (n = t.messageText, isIterable(t.next))) for (const r of t.next) n += flattenDiagnosticMessageText(e, r);
1236
1294
  return s && (n = n.replace("type 'StencilConfig'", "Stencil Config"), n = n.replace("Object literal may only specify known properties, but ", ""),
1237
1295
  n = n.replace("Object literal may only specify known properties, and ", "")), n.trim();
1238
- }, isOutputTargetDistLazy = e => e.type === DIST_LAZY, isOutputTargetWww = e => e.type === WWW, DIST_LAZY = "dist-lazy", WWW = "www", jestPreprocessor = {
1239
- process(e, t, r) {
1240
- if (function s(e, t) {
1296
+ }, isOutputTargetDistLazy = e => e.type === DIST_LAZY, isOutputTargetWww = e => e.type === WWW, DIST_LAZY = "dist-lazy", WWW = "www", isJest27TransformOptions = e => "object" == typeof e && e.hasOwnProperty("config");
1297
+
1298
+ let _tsCompilerOptions = null, _tsCompilerOptionsKey = null;
1299
+
1300
+ const jestPreprocessor = {
1301
+ process(e, t, r, s) {
1302
+ if (isJest27TransformOptions(r) && (s = r.config), function n(e, t) {
1241
1303
  const r = e.split(".").pop().toLowerCase().split("?")[0];
1242
1304
  if ("ts" === r || "tsx" === r || "jsx" === r) return !0;
1243
1305
  if ("mjs" === r) return !0;
@@ -1247,12 +1309,12 @@ const path$2 = require("path"), index_js = _lazyRequire("../dev-server/index.js"
1247
1309
  }
1248
1310
  return "css" === r;
1249
1311
  }(t, e)) {
1250
- const s = {
1312
+ const r = {
1251
1313
  file: t,
1252
- currentDirectory: r.rootDir
1253
- }, n = this.getCompilerOptions(r.rootDir);
1254
- n && (n.baseUrl && (s.baseUrl = n.baseUrl), n.paths && (s.paths = n.paths));
1255
- const i = transpile(e, s), o = i.diagnostics.some((e => "error" === e.level));
1314
+ currentDirectory: s.rootDir
1315
+ }, n = getCompilerOptions(s.rootDir);
1316
+ n && (n.baseUrl && (r.baseUrl = n.baseUrl), n.paths && (r.paths = n.paths));
1317
+ const i = transpile(e, r), o = i.diagnostics.some((e => "error" === e.level));
1256
1318
  if (i.diagnostics && o) {
1257
1319
  const e = i.diagnostics.map(formatDiagnostic).join("\n\n");
1258
1320
  throw new Error(e);
@@ -1261,69 +1323,12 @@ const path$2 = require("path"), index_js = _lazyRequire("../dev-server/index.js"
1261
1323
  }
1262
1324
  return e;
1263
1325
  },
1264
- getCompilerOptions(e) {
1265
- return this._tsCompilerOptions || (this._tsCompilerOptions = function t(e) {
1266
- if ("string" != typeof e) return null;
1267
- e = normalizePath(e);
1268
- const t = stencil_js.ts.findConfigFile(e, stencil_js.ts.sys.fileExists);
1269
- if (!t) return null;
1270
- const r = stencil_js.ts.readConfigFile(t, stencil_js.ts.sys.readFile);
1271
- if (r.error) throw new Error(formatDiagnostic((e => {
1272
- const t = {
1273
- level: "warn",
1274
- type: "typescript",
1275
- language: "typescript",
1276
- header: "TypeScript",
1277
- code: e.code.toString(),
1278
- messageText: flattenDiagnosticMessageText(e, e.messageText),
1279
- relFilePath: null,
1280
- absFilePath: null,
1281
- lines: []
1282
- };
1283
- if (1 === e.category && (t.level = "error"), e.file) {
1284
- t.absFilePath = e.file.fileName;
1285
- const s = "string" != typeof (r = e.file.text) ? [] : (r = r.replace(/\\r/g, "\n")).split("\n"), n = e.file.getLineAndCharacterOfPosition(e.start), i = {
1286
- lineIndex: n.line,
1287
- lineNumber: n.line + 1,
1288
- text: s[n.line],
1289
- errorCharStart: n.character,
1290
- errorLength: Math.max(e.length, 1)
1291
- };
1292
- if (t.lineNumber = i.lineNumber, t.columnNumber = i.errorCharStart + 1, t.lines.push(i),
1293
- 0 === i.errorLength && i.errorCharStart > 0 && (i.errorLength = 1, i.errorCharStart--),
1294
- i.lineIndex > 0) {
1295
- const e = {
1296
- lineIndex: i.lineIndex - 1,
1297
- lineNumber: i.lineNumber - 1,
1298
- text: s[i.lineIndex - 1],
1299
- errorCharStart: -1,
1300
- errorLength: -1
1301
- };
1302
- t.lines.unshift(e);
1303
- }
1304
- if (i.lineIndex + 1 < s.length) {
1305
- const e = {
1306
- lineIndex: i.lineIndex + 1,
1307
- lineNumber: i.lineNumber + 1,
1308
- text: s[i.lineIndex + 1],
1309
- errorCharStart: -1,
1310
- errorLength: -1
1311
- };
1312
- t.lines.push(e);
1313
- }
1314
- }
1315
- var r;
1316
- return t;
1317
- })(r.error)));
1318
- return stencil_js.ts.parseJsonConfigFileContent(r.config, stencil_js.ts.sys, e, void 0, t).options;
1319
- }(e)), this._tsCompilerOptions;
1320
- },
1321
1326
  getCacheKey(e, t, r, s) {
1322
- if (!this._tsCompilerOptionsKey) {
1323
- const e = this.getCompilerOptions(s.rootDir);
1324
- this._tsCompilerOptionsKey = JSON.stringify(e);
1327
+ if (isJest27TransformOptions(r) && (s = r.config), !_tsCompilerOptionsKey) {
1328
+ const e = getCompilerOptions(s.rootDir);
1329
+ _tsCompilerOptionsKey = JSON.stringify(e);
1325
1330
  }
1326
- return [ process.version, this._tsCompilerOptionsKey, e, t, r, !!s.instrument, 6 ].join(":");
1331
+ return [ process.version, _tsCompilerOptionsKey, e, t, r, !!s.instrument, 7 ].join(":");
1327
1332
  }
1328
1333
  }, deepEqual = function e(t, r) {
1329
1334
  var s, n, i, o, a, l, c, u, d, h;
@@ -2858,7 +2863,7 @@ const createSystem = e => {
2858
2863
  u("/");
2859
2864
  const S = {
2860
2865
  name: "in-memory",
2861
- version: "2.9.0",
2866
+ version: "2.12.0",
2862
2867
  events: o,
2863
2868
  access: async e => c(e),
2864
2869
  accessSync: c,
@@ -3141,7 +3146,7 @@ const createSystem = e => {
3141
3146
  const r = e;
3142
3147
  return (...e) => (t++, r.apply(r, e));
3143
3148
  };
3144
- return r.access = s(r.access), r.accessSync = s(r.accessSync), r.homeDir = s(r.homeDir),
3149
+ if (r.access = s(r.access), r.accessSync = s(r.accessSync), r.homeDir = s(r.homeDir),
3145
3150
  r.readFile = s(r.readFile), r.readFileSync = s(r.readFileSync), r.readDir = s(r.readDir),
3146
3151
  r.readDirSync = s(r.readDirSync), r.stat = s(r.stat), r.statSync = s(r.statSync),
3147
3152
  r.copyFile = n(r.copyFile), r.createDir = n(r.createDir), r.createDirSync = n(r.createDirSync),
@@ -3159,7 +3164,10 @@ const createSystem = e => {
3159
3164
  t = e;
3160
3165
  }
3161
3166
  }
3162
- });
3167
+ }), !function i(e) {
3168
+ return "diskReads" in e && "diskWrites" in e;
3169
+ }(r)) throw new Error("could not generate TestingSystem");
3170
+ return r;
3163
3171
  };
3164
3172
 
3165
3173
  class TestingLogger {
@@ -3589,6 +3597,9 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3589
3597
  } catch (e) {}
3590
3598
  }(this.browser), this.browser = null;
3591
3599
  }
3600
+ getVmContext() {
3601
+ return super.getVmContext();
3602
+ }
3592
3603
  };
3593
3604
  }, exports.createTestRunner = function createTestRunner() {
3594
3605
  const e = require("jest-runner");
@@ -9,6 +9,7 @@ export declare function createJestPuppeteerEnvironment(): {
9
9
  newPuppeteerPage(): Promise<import("puppeteer").Page>;
10
10
  closeOpenPages(): Promise<void>;
11
11
  teardown(): Promise<void>;
12
+ getVmContext(): any;
12
13
  };
13
14
  [x: string]: any;
14
15
  };
@@ -1,11 +1,59 @@
1
+ declare type Jest26CacheKeyOptions = {
2
+ instrument: boolean;
3
+ rootDir: string;
4
+ };
5
+ declare type Jest26Config = {
6
+ instrument: boolean;
7
+ rootDir: string;
8
+ };
9
+ declare type Jest27TransformOptions = {
10
+ config: Jest26Config;
11
+ };
1
12
  export declare const jestPreprocessor: {
2
- process(sourceText: string, filePath: string, jestConfig: {
3
- rootDir: string;
4
- }): string;
5
- getCompilerOptions(rootDir: string): any;
6
- getCacheKey(code: string, filePath: string, jestConfigStr: string, transformOptions: {
7
- instrument: boolean;
8
- rootDir: string;
9
- }): string;
13
+ /**
14
+ * Transforms a file to CommonJS to be used by Jest. The API for `process` is described in the
15
+ * ["Writing custom transformers"](https://jestjs.io/docs/code-transformation#writing-custom-transformers)
16
+ * documentation on the jest site. Unfortunately, the URL is not versioned at the time of this writing. For
17
+ * reference, the v27.2 docs were referenced (the most recent available).
18
+ *
19
+ * This function attempts to support several versions of Jest (v23 through v27). Support for earlier versions of Jest
20
+ * will be removed in a future major version of Stencil.
21
+ *
22
+ * @param sourceText the contents of the source file
23
+ * @param sourcePath the path to the source file
24
+ * @param jestConfig the jest configuration when called by Jest 26 and lower. This parameter is folded into
25
+ * `transformOptions` when called by Jest 27+ as a top level `config` property. Calls to this function from Jest 27+
26
+ * will have a `Jest27TransformOptions` shape
27
+ * @param transformOptions an object containing the various transformation options. In Jest 27+ this parameter occurs
28
+ * third in this function signature (and no fourth parameter is formally accepted)
29
+ * @returns the transformed file contents if the file should be transformed. returns the original source otherwise
30
+ */
31
+ process(sourceText: string, sourcePath: string, jestConfig: Jest26Config | Jest27TransformOptions, transformOptions?: Jest26Config): string;
32
+ /**
33
+ * Generates a key used to cache the results of transforming a file. This helps avoid re-processing a file via the
34
+ * `transform` function unnecessarily (when no changes have occurred). The API for `getCacheKey` is described in the
35
+ * ["Writing custom transformers"](https://jestjs.io/docs/code-transformation#writing-custom-transformers)
36
+ * documentation on the jest site. Unfortunately, the URL is not versioned at the time of this writing. For
37
+ * reference, the v27.2 docs were referenced (the most recent available).
38
+ *
39
+ * This function attempts to support several versions of Jest (v23 through v27). Support for earlier versions of Jest
40
+ * will be removed in a future major version of Stencil.
41
+ *
42
+ * @param sourceText the contents of the source file
43
+ * @param sourcePath the path to the source file
44
+ * @param jestConfigStr a stringified version of the jest configuration when called by Jest 26 and lower. This
45
+ * parameter takes the shape of `transformOptions` when called by Jest 27+.
46
+ * @param transformOptions an object containing the various transformation options. In Jest 27+ this parameter occurs
47
+ * third in this function signature (and no fourth parameter is formally accepted)
48
+ * @returns the key to cache a file with
49
+ */
50
+ getCacheKey(sourceText: string, sourcePath: string, jestConfigStr: string | Jest27TransformOptions, transformOptions?: Jest26CacheKeyOptions): string;
10
51
  };
52
+ /**
53
+ * Determines if a file should be transformed prior to being consumed by Jest, based on the file name and its contents
54
+ * @param filePath the path of the file
55
+ * @param sourceText the contents of the file
56
+ * @returns `true` if the file should be transformed, `false` otherwise
57
+ */
11
58
  export declare function shouldTransform(filePath: string, sourceText: string): boolean;
59
+ export {};
@@ -1,3 +1,8 @@
1
+ /**
2
+ * The path's declared below are relative. Specifically, they are relative to the location of this file after
3
+ * compilation of the Stencil compiler has completed. See `scripts/bundles/testing` for the location of this file
4
+ * following compilation.
5
+ */
1
6
  const path = require('path');
2
7
  const testingDir = __dirname;
3
8
  const rootDir = path.join(testingDir, '..');
@@ -5,10 +5,6 @@ export declare function mockCompilerCtx(config?: Config): CompilerCtx;
5
5
  export declare function mockBuildCtx(config?: Config, compilerCtx?: CompilerCtx): BuildCtx;
6
6
  export declare function mockCache(config?: Config, compilerCtx?: CompilerCtx): Cache;
7
7
  export declare function mockLogger(): TestingLogger;
8
- export interface TestingSystem extends CompilerSystem {
9
- diskReads: number;
10
- diskWrites: number;
11
- }
12
- export declare function mockStencilSystem(): TestingSystem;
8
+ export declare function mockStencilSystem(): CompilerSystem;
13
9
  export declare function mockDocument(html?: string): Document;
14
10
  export declare function mockWindow(html?: string): Window;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/testing",
3
- "version": "2.9.0",
3
+ "version": "2.12.0",
4
4
  "description": "Stencil testing suite.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1 +1,6 @@
1
- export declare const createTestingSystem: () => any;
1
+ import type { CompilerSystem } from '@stencil/core/internal';
2
+ export interface TestingSystem extends CompilerSystem {
3
+ diskReads: number;
4
+ diskWrites: number;
5
+ }
6
+ export declare const createTestingSystem: () => TestingSystem;
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../build/screenshot/screenshot-fs.js","../build/screenshot/connector-base.js","../build/utils/normalize-path.js","../build/screenshot/connector-local.js"],"sourcesContent":["import fs from 'fs';\nimport path from 'path';\nexport async function writeScreenshotImage(imagePath, screenshotBuf) {\n const imageExists = await fileExists(imagePath);\n if (!imageExists) {\n await writeFile(imagePath, screenshotBuf);\n }\n}\nexport async function writeScreenshotData(dataDir, screenshotData) {\n const filePath = getDataFilePath(dataDir, screenshotData.id);\n const content = JSON.stringify(screenshotData, null, 2);\n await writeFile(filePath, content);\n}\nexport async function readScreenshotData(dataDir, screenshotId) {\n let rtn = null;\n try {\n const dataFilePath = getDataFilePath(dataDir, screenshotId);\n const dataContent = await readFile(dataFilePath);\n rtn = JSON.parse(dataContent);\n }\n catch (e) { }\n return rtn;\n}\nfunction getDataFilePath(dataDir, screenshotId) {\n const fileName = `${screenshotId}.json`;\n return path.join(dataDir, fileName);\n}\nexport function fileExists(filePath) {\n return new Promise((resolve) => {\n fs.access(filePath, (err) => resolve(!err));\n });\n}\nexport function readFile(filePath) {\n return new Promise((resolve, reject) => {\n fs.readFile(filePath, 'utf-8', (err, data) => {\n if (err) {\n reject(err);\n }\n else {\n resolve(data);\n }\n });\n });\n}\nexport function readFileBuffer(filePath) {\n return new Promise((resolve, reject) => {\n fs.readFile(filePath, (err, data) => {\n if (err) {\n reject(err);\n }\n else {\n resolve(data);\n }\n });\n });\n}\nexport function writeFile(filePath, data) {\n return new Promise((resolve, reject) => {\n fs.writeFile(filePath, data, (err) => {\n if (err) {\n reject(err);\n }\n else {\n resolve();\n }\n });\n });\n}\nexport function mkDir(filePath) {\n return new Promise((resolve) => {\n fs.mkdir(filePath, () => {\n resolve();\n });\n });\n}\nexport function rmDir(filePath) {\n return new Promise((resolve) => {\n fs.rmdir(filePath, () => {\n resolve();\n });\n });\n}\nexport async function emptyDir(dir) {\n const files = await readDir(dir);\n const promises = files.map(async (fileName) => {\n const filePath = path.join(dir, fileName);\n const isDirFile = await isFile(filePath);\n if (isDirFile) {\n await unlink(filePath);\n }\n });\n await Promise.all(promises);\n}\nexport async function readDir(dir) {\n return new Promise((resolve) => {\n fs.readdir(dir, (err, files) => {\n if (err) {\n resolve([]);\n }\n else {\n resolve(files);\n }\n });\n });\n}\nexport async function isFile(itemPath) {\n return new Promise((resolve) => {\n fs.stat(itemPath, (err, stat) => {\n if (err) {\n resolve(false);\n }\n else {\n resolve(stat.isFile());\n }\n });\n });\n}\nexport async function unlink(filePath) {\n return new Promise((resolve) => {\n fs.unlink(filePath, () => {\n resolve();\n });\n });\n}\n","import { emptyDir, fileExists, mkDir, readDir, readFile, readFileBuffer, rmDir, writeFile } from './screenshot-fs';\nimport { join } from 'path';\nimport { tmpdir } from 'os';\nexport class ScreenshotConnector {\n constructor() {\n this.screenshotDirName = 'screenshot';\n this.imagesDirName = 'images';\n this.buildsDirName = 'builds';\n this.masterBuildFileName = 'master.json';\n this.screenshotCacheFileName = 'screenshot-cache.json';\n }\n async initBuild(opts) {\n this.logger = opts.logger;\n this.buildId = opts.buildId;\n this.buildMessage = opts.buildMessage || '';\n this.buildAuthor = opts.buildAuthor;\n this.buildUrl = opts.buildUrl;\n this.previewUrl = opts.previewUrl;\n (this.buildTimestamp = typeof opts.buildTimestamp === 'number' ? opts.buildTimestamp : Date.now()),\n (this.cacheDir = opts.cacheDir);\n this.packageDir = opts.packageDir;\n this.rootDir = opts.rootDir;\n this.appNamespace = opts.appNamespace;\n this.waitBeforeScreenshot = opts.waitBeforeScreenshot;\n this.pixelmatchModulePath = opts.pixelmatchModulePath;\n if (!opts.logger) {\n throw new Error(`logger option required`);\n }\n if (typeof opts.buildId !== 'string') {\n throw new Error(`buildId option required`);\n }\n if (typeof opts.cacheDir !== 'string') {\n throw new Error(`cacheDir option required`);\n }\n if (typeof opts.packageDir !== 'string') {\n throw new Error(`packageDir option required`);\n }\n if (typeof opts.rootDir !== 'string') {\n throw new Error(`rootDir option required`);\n }\n this.updateMaster = !!opts.updateMaster;\n this.allowableMismatchedPixels = opts.allowableMismatchedPixels;\n this.allowableMismatchedRatio = opts.allowableMismatchedRatio;\n this.pixelmatchThreshold = opts.pixelmatchThreshold;\n this.logger.debug(`screenshot build: ${this.buildId}, ${this.buildMessage}, updateMaster: ${this.updateMaster}`);\n this.logger.debug(`screenshot, allowableMismatchedPixels: ${this.allowableMismatchedPixels}, allowableMismatchedRatio: ${this.allowableMismatchedRatio}, pixelmatchThreshold: ${this.pixelmatchThreshold}`);\n if (typeof opts.screenshotDirName === 'string') {\n this.screenshotDirName = opts.screenshotDirName;\n }\n if (typeof opts.imagesDirName === 'string') {\n this.imagesDirName = opts.imagesDirName;\n }\n if (typeof opts.buildsDirName === 'string') {\n this.buildsDirName = opts.buildsDirName;\n }\n this.screenshotDir = join(this.rootDir, this.screenshotDirName);\n this.imagesDir = join(this.screenshotDir, this.imagesDirName);\n this.buildsDir = join(this.screenshotDir, this.buildsDirName);\n this.masterBuildFilePath = join(this.buildsDir, this.masterBuildFileName);\n this.screenshotCacheFilePath = join(this.cacheDir, this.screenshotCacheFileName);\n this.currentBuildDir = join(tmpdir(), 'screenshot-build-' + this.buildId);\n this.logger.debug(`screenshotDirPath: ${this.screenshotDir}`);\n this.logger.debug(`imagesDirPath: ${this.imagesDir}`);\n this.logger.debug(`buildsDirPath: ${this.buildsDir}`);\n this.logger.debug(`currentBuildDir: ${this.currentBuildDir}`);\n this.logger.debug(`cacheDir: ${this.cacheDir}`);\n await mkDir(this.screenshotDir);\n await Promise.all([\n mkDir(this.imagesDir),\n mkDir(this.buildsDir),\n mkDir(this.currentBuildDir),\n mkDir(this.cacheDir),\n ]);\n }\n async pullMasterBuild() {\n /**/\n }\n async getMasterBuild() {\n let masterBuild = null;\n try {\n masterBuild = JSON.parse(await readFile(this.masterBuildFilePath));\n }\n catch (e) { }\n return masterBuild;\n }\n async completeBuild(masterBuild) {\n const filePaths = (await readDir(this.currentBuildDir))\n .map((f) => join(this.currentBuildDir, f))\n .filter((f) => f.endsWith('.json'));\n const screenshots = await Promise.all(filePaths.map(async (f) => JSON.parse(await readFile(f))));\n this.sortScreenshots(screenshots);\n if (!masterBuild) {\n masterBuild = {\n id: this.buildId,\n message: this.buildMessage,\n author: this.buildAuthor,\n url: this.buildUrl,\n previewUrl: this.previewUrl,\n appNamespace: this.appNamespace,\n timestamp: this.buildTimestamp,\n screenshots: screenshots,\n };\n }\n const results = {\n appNamespace: this.appNamespace,\n masterBuild: masterBuild,\n currentBuild: {\n id: this.buildId,\n message: this.buildMessage,\n author: this.buildAuthor,\n url: this.buildUrl,\n previewUrl: this.previewUrl,\n appNamespace: this.appNamespace,\n timestamp: this.buildTimestamp,\n screenshots: screenshots,\n },\n compare: {\n id: `${masterBuild.id}-${this.buildId}`,\n a: {\n id: masterBuild.id,\n message: masterBuild.message,\n author: masterBuild.author,\n url: masterBuild.url,\n previewUrl: masterBuild.previewUrl,\n },\n b: {\n id: this.buildId,\n message: this.buildMessage,\n author: this.buildAuthor,\n url: this.buildUrl,\n previewUrl: this.previewUrl,\n },\n url: null,\n appNamespace: this.appNamespace,\n timestamp: this.buildTimestamp,\n diffs: [],\n },\n };\n results.currentBuild.screenshots.forEach((screenshot) => {\n screenshot.diff.device = screenshot.diff.device || screenshot.diff.userAgent;\n results.compare.diffs.push(screenshot.diff);\n delete screenshot.diff;\n });\n this.sortCompares(results.compare.diffs);\n await emptyDir(this.currentBuildDir);\n await rmDir(this.currentBuildDir);\n return results;\n }\n async publishBuild(results) {\n return results;\n }\n async generateJsonpDataUris(build) {\n if (build && Array.isArray(build.screenshots)) {\n for (let i = 0; i < build.screenshots.length; i++) {\n const screenshot = build.screenshots[i];\n const jsonpFileName = `screenshot_${screenshot.image}.js`;\n const jsonFilePath = join(this.cacheDir, jsonpFileName);\n const jsonpExists = await fileExists(jsonFilePath);\n if (!jsonpExists) {\n const imageFilePath = join(this.imagesDir, screenshot.image);\n const imageBuf = await readFileBuffer(imageFilePath);\n const jsonpContent = `loadScreenshot(\"${screenshot.image}\",\"data:image/png;base64,${imageBuf.toString('base64')}\");`;\n await writeFile(jsonFilePath, jsonpContent);\n }\n }\n }\n }\n async getScreenshotCache() {\n return null;\n }\n async updateScreenshotCache(screenshotCache, buildResults) {\n screenshotCache = screenshotCache || {};\n screenshotCache.timestamp = this.buildTimestamp;\n screenshotCache.lastBuildId = this.buildId;\n screenshotCache.size = 0;\n screenshotCache.items = screenshotCache.items || [];\n if (buildResults && buildResults.compare && Array.isArray(buildResults.compare.diffs)) {\n buildResults.compare.diffs.forEach((diff) => {\n if (typeof diff.cacheKey !== 'string') {\n return;\n }\n if (diff.imageA === diff.imageB) {\n // no need to cache identical matches\n return;\n }\n const existingItem = screenshotCache.items.find((i) => i.key === diff.cacheKey);\n if (existingItem) {\n // already have this cached, but update its timestamp\n existingItem.ts = this.buildTimestamp;\n }\n else {\n // add this item to the cache\n screenshotCache.items.push({\n key: diff.cacheKey,\n ts: this.buildTimestamp,\n mp: diff.mismatchedPixels,\n });\n }\n });\n }\n // sort so the newest items are on top\n screenshotCache.items.sort((a, b) => {\n if (a.ts > b.ts)\n return -1;\n if (a.ts < b.ts)\n return 1;\n if (a.mp > b.mp)\n return -1;\n if (a.mp < b.mp)\n return 1;\n return 0;\n });\n // keep only the most recent items\n screenshotCache.items = screenshotCache.items.slice(0, 1000);\n screenshotCache.size = screenshotCache.items.length;\n return screenshotCache;\n }\n toJson(masterBuild, screenshotCache) {\n const masterScreenshots = {};\n if (masterBuild && Array.isArray(masterBuild.screenshots)) {\n masterBuild.screenshots.forEach((masterScreenshot) => {\n masterScreenshots[masterScreenshot.id] = masterScreenshot.image;\n });\n }\n const mismatchCache = {};\n if (screenshotCache && Array.isArray(screenshotCache.items)) {\n screenshotCache.items.forEach((cacheItem) => {\n mismatchCache[cacheItem.key] = cacheItem.mp;\n });\n }\n const screenshotBuild = {\n buildId: this.buildId,\n rootDir: this.rootDir,\n screenshotDir: this.screenshotDir,\n imagesDir: this.imagesDir,\n buildsDir: this.buildsDir,\n masterScreenshots: masterScreenshots,\n cache: mismatchCache,\n currentBuildDir: this.currentBuildDir,\n updateMaster: this.updateMaster,\n allowableMismatchedPixels: this.allowableMismatchedPixels,\n allowableMismatchedRatio: this.allowableMismatchedRatio,\n pixelmatchThreshold: this.pixelmatchThreshold,\n timeoutBeforeScreenshot: this.waitBeforeScreenshot,\n pixelmatchModulePath: this.pixelmatchModulePath,\n };\n return JSON.stringify(screenshotBuild);\n }\n sortScreenshots(screenshots) {\n return screenshots.sort((a, b) => {\n if (a.desc && b.desc) {\n if (a.desc.toLowerCase() < b.desc.toLowerCase())\n return -1;\n if (a.desc.toLowerCase() > b.desc.toLowerCase())\n return 1;\n }\n if (a.device && b.device) {\n if (a.device.toLowerCase() < b.device.toLowerCase())\n return -1;\n if (a.device.toLowerCase() > b.device.toLowerCase())\n return 1;\n }\n if (a.userAgent && b.userAgent) {\n if (a.userAgent.toLowerCase() < b.userAgent.toLowerCase())\n return -1;\n if (a.userAgent.toLowerCase() > b.userAgent.toLowerCase())\n return 1;\n }\n if (a.width < b.width)\n return -1;\n if (a.width > b.width)\n return 1;\n if (a.height < b.height)\n return -1;\n if (a.height > b.height)\n return 1;\n if (a.id < b.id)\n return -1;\n if (a.id > b.id)\n return 1;\n return 0;\n });\n }\n sortCompares(compares) {\n return compares.sort((a, b) => {\n if (a.allowableMismatchedPixels > b.allowableMismatchedPixels)\n return -1;\n if (a.allowableMismatchedPixels < b.allowableMismatchedPixels)\n return 1;\n if (a.allowableMismatchedRatio > b.allowableMismatchedRatio)\n return -1;\n if (a.allowableMismatchedRatio < b.allowableMismatchedRatio)\n return 1;\n if (a.desc && b.desc) {\n if (a.desc.toLowerCase() < b.desc.toLowerCase())\n return -1;\n if (a.desc.toLowerCase() > b.desc.toLowerCase())\n return 1;\n }\n if (a.device && b.device) {\n if (a.device.toLowerCase() < b.device.toLowerCase())\n return -1;\n if (a.device.toLowerCase() > b.device.toLowerCase())\n return 1;\n }\n if (a.userAgent && b.userAgent) {\n if (a.userAgent.toLowerCase() < b.userAgent.toLowerCase())\n return -1;\n if (a.userAgent.toLowerCase() > b.userAgent.toLowerCase())\n return 1;\n }\n if (a.width < b.width)\n return -1;\n if (a.width > b.width)\n return 1;\n if (a.height < b.height)\n return -1;\n if (a.height > b.height)\n return 1;\n if (a.id < b.id)\n return -1;\n if (a.id > b.id)\n return 1;\n return 0;\n });\n }\n}\n","/**\n * Convert Windows backslash paths to slash paths: foo\\\\bar ➔ foo/bar\n * Forward-slash paths can be used in Windows as long as they're not\n * extended-length paths and don't contain any non-ascii characters.\n * This was created since the path methods in Node.js outputs \\\\ paths on Windows.\n */\nexport const normalizePath = (path) => {\n if (typeof path !== 'string') {\n throw new Error(`invalid path to normalize`);\n }\n path = normalizeSlashes(path.trim());\n const components = pathComponents(path, getRootLength(path));\n const reducedComponents = reducePathComponents(components);\n const rootPart = reducedComponents[0];\n const secondPart = reducedComponents[1];\n const normalized = rootPart + reducedComponents.slice(1).join('/');\n if (normalized === '') {\n return '.';\n }\n if (rootPart === '' &&\n secondPart &&\n path.includes('/') &&\n !secondPart.startsWith('.') &&\n !secondPart.startsWith('@')) {\n return './' + normalized;\n }\n return normalized;\n};\nconst normalizeSlashes = (path) => path.replace(backslashRegExp, '/');\nconst altDirectorySeparator = '\\\\';\nconst urlSchemeSeparator = '://';\nconst backslashRegExp = /\\\\/g;\nconst reducePathComponents = (components) => {\n if (!Array.isArray(components) || components.length === 0) {\n return [];\n }\n const reduced = [components[0]];\n for (let i = 1; i < components.length; i++) {\n const component = components[i];\n if (!component)\n continue;\n if (component === '.')\n continue;\n if (component === '..') {\n if (reduced.length > 1) {\n if (reduced[reduced.length - 1] !== '..') {\n reduced.pop();\n continue;\n }\n }\n else if (reduced[0])\n continue;\n }\n reduced.push(component);\n }\n return reduced;\n};\nconst getRootLength = (path) => {\n const rootLength = getEncodedRootLength(path);\n return rootLength < 0 ? ~rootLength : rootLength;\n};\nconst getEncodedRootLength = (path) => {\n if (!path)\n return 0;\n const ch0 = path.charCodeAt(0);\n // POSIX or UNC\n if (ch0 === 47 /* slash */ || ch0 === 92 /* backslash */) {\n if (path.charCodeAt(1) !== ch0)\n return 1; // POSIX: \"/\" (or non-normalized \"\\\")\n const p1 = path.indexOf(ch0 === 47 /* slash */ ? '/' : altDirectorySeparator, 2);\n if (p1 < 0)\n return path.length; // UNC: \"//server\" or \"\\\\server\"\n return p1 + 1; // UNC: \"//server/\" or \"\\\\server\\\"\n }\n // DOS\n if (isVolumeCharacter(ch0) && path.charCodeAt(1) === 58 /* colon */) {\n const ch2 = path.charCodeAt(2);\n if (ch2 === 47 /* slash */ || ch2 === 92 /* backslash */)\n return 3; // DOS: \"c:/\" or \"c:\\\"\n if (path.length === 2)\n return 2; // DOS: \"c:\" (but not \"c:d\")\n }\n // URL\n const schemeEnd = path.indexOf(urlSchemeSeparator);\n if (schemeEnd !== -1) {\n const authorityStart = schemeEnd + urlSchemeSeparator.length;\n const authorityEnd = path.indexOf('/', authorityStart);\n if (authorityEnd !== -1) {\n // URL: \"file:///\", \"file://server/\", \"file://server/path\"\n // For local \"file\" URLs, include the leading DOS volume (if present).\n // Per https://www.ietf.org/rfc/rfc1738.txt, a host of \"\" or \"localhost\" is a\n // special case interpreted as \"the machine from which the URL is being interpreted\".\n const scheme = path.slice(0, schemeEnd);\n const authority = path.slice(authorityStart, authorityEnd);\n if (scheme === 'file' &&\n (authority === '' || authority === 'localhost') &&\n isVolumeCharacter(path.charCodeAt(authorityEnd + 1))) {\n const volumeSeparatorEnd = getFileUrlVolumeSeparatorEnd(path, authorityEnd + 2);\n if (volumeSeparatorEnd !== -1) {\n if (path.charCodeAt(volumeSeparatorEnd) === 47 /* slash */) {\n // URL: \"file:///c:/\", \"file://localhost/c:/\", \"file:///c%3a/\", \"file://localhost/c%3a/\"\n return ~(volumeSeparatorEnd + 1);\n }\n if (volumeSeparatorEnd === path.length) {\n // URL: \"file:///c:\", \"file://localhost/c:\", \"file:///c$3a\", \"file://localhost/c%3a\"\n // but not \"file:///c:d\" or \"file:///c%3ad\"\n return ~volumeSeparatorEnd;\n }\n }\n }\n return ~(authorityEnd + 1); // URL: \"file://server/\", \"http://server/\"\n }\n return ~path.length; // URL: \"file://server\", \"http://server\"\n }\n // relative\n return 0;\n};\nconst isVolumeCharacter = (charCode) => (charCode >= 97 /* a */ && charCode <= 122 /* z */) ||\n (charCode >= 65 /* A */ && charCode <= 90 /* Z */);\nconst getFileUrlVolumeSeparatorEnd = (url, start) => {\n const ch0 = url.charCodeAt(start);\n if (ch0 === 58 /* colon */)\n return start + 1;\n if (ch0 === 37 /* percent */ && url.charCodeAt(start + 1) === 51 /* _3 */) {\n const ch2 = url.charCodeAt(start + 2);\n if (ch2 === 97 /* a */ || ch2 === 65 /* A */)\n return start + 3;\n }\n return -1;\n};\nconst pathComponents = (path, rootLength) => {\n const root = path.substring(0, rootLength);\n const rest = path.substring(rootLength).split('/');\n const restLen = rest.length;\n if (restLen > 0 && !rest[restLen - 1]) {\n rest.pop();\n }\n return [root, ...rest];\n};\n/**\n * Same as normalizePath(), expect it'll also strip any querystrings\n * from the path name. So /dir/file.css?tag=cmp-a becomes /dir/file.css\n */\nexport const normalizeFsPath = (p) => normalizePath(p.split('?')[0].replace(/\\0/g, ''));\nexport const normalizeFsPathQuery = (importPath) => {\n const pathParts = importPath.split('?');\n const filePath = normalizePath(pathParts[0]);\n const ext = filePath.split('.').pop().toLowerCase();\n const params = pathParts.length > 1 ? new URLSearchParams(pathParts[1]) : null;\n const format = params ? params.get('format') : null;\n return {\n filePath,\n ext,\n params,\n format,\n };\n};\n","import { fileExists, readFile, writeFile } from './screenshot-fs';\nimport { join, relative } from 'path';\nimport { normalizePath } from '@utils';\nimport { ScreenshotConnector } from './connector-base';\nexport class ScreenshotLocalConnector extends ScreenshotConnector {\n async publishBuild(results) {\n if (this.updateMaster || !results.masterBuild) {\n results.masterBuild = {\n id: 'master',\n message: 'Master',\n appNamespace: this.appNamespace,\n timestamp: Date.now(),\n screenshots: [],\n };\n }\n results.currentBuild.screenshots.forEach((currentScreenshot) => {\n const masterHasScreenshot = results.masterBuild.screenshots.some((masterScreenshot) => {\n return currentScreenshot.id === masterScreenshot.id;\n });\n if (!masterHasScreenshot) {\n results.masterBuild.screenshots.push(Object.assign({}, currentScreenshot));\n }\n });\n this.sortScreenshots(results.masterBuild.screenshots);\n await writeFile(this.masterBuildFilePath, JSON.stringify(results.masterBuild, null, 2));\n await this.generateJsonpDataUris(results.currentBuild);\n const compareAppSourceDir = join(this.packageDir, 'screenshot', 'compare');\n const appSrcUrl = normalizePath(relative(this.screenshotDir, compareAppSourceDir));\n const imagesUrl = normalizePath(relative(this.screenshotDir, this.imagesDir));\n const jsonpUrl = normalizePath(relative(this.screenshotDir, this.cacheDir));\n const compareAppHtml = createLocalCompareApp(this.appNamespace, appSrcUrl, imagesUrl, jsonpUrl, results.masterBuild, results.currentBuild);\n const compareAppFileName = 'compare.html';\n const compareAppFilePath = join(this.screenshotDir, compareAppFileName);\n await writeFile(compareAppFilePath, compareAppHtml);\n const gitIgnorePath = join(this.screenshotDir, '.gitignore');\n const gitIgnoreExists = await fileExists(gitIgnorePath);\n if (!gitIgnoreExists) {\n const content = [this.imagesDirName, this.buildsDirName, compareAppFileName];\n await writeFile(gitIgnorePath, content.join('\\n'));\n }\n const url = new URL(`file://${compareAppFilePath}`);\n results.compare.url = url.href;\n return results;\n }\n async getScreenshotCache() {\n let screenshotCache = null;\n try {\n screenshotCache = JSON.parse(await readFile(this.screenshotCacheFilePath));\n }\n catch (e) { }\n return screenshotCache;\n }\n async updateScreenshotCache(cache, buildResults) {\n cache = await super.updateScreenshotCache(cache, buildResults);\n await writeFile(this.screenshotCacheFilePath, JSON.stringify(cache, null, 2));\n return cache;\n }\n}\nfunction createLocalCompareApp(namespace, appSrcUrl, imagesUrl, jsonpUrl, a, b) {\n return `<!doctype html>\n<html dir=\"ltr\" lang=\"en\">\n<head>\n <meta charset=\"utf-8\">\n <title>Local ${namespace || ''} - Stencil Screenshot Visual Diff</title>\n <meta name=\"viewport\" content=\"viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no\">\n <meta http-equiv=\"x-ua-compatible\" content=\"IE=Edge\">\n <link href=\"${appSrcUrl}/build/app.css\" rel=\"stylesheet\">\n <script type=\"module\" src=\"${appSrcUrl}/build/app.esm.js\"></script>\n <script nomodule src=\"${appSrcUrl}/build/app.js\"></script> \n <link rel=\"icon\" type=\"image/x-icon\" href=\"${appSrcUrl}/assets/favicon.ico\">\n</head>\n<body>\n <script>\n (function() {\n var app = document.createElement('screenshot-compare');\n app.appSrcUrl = '${appSrcUrl}';\n app.imagesUrl = '${imagesUrl}/';\n app.jsonpUrl = '${jsonpUrl}/';\n app.a = ${JSON.stringify(a)};\n app.b = ${JSON.stringify(b)};\n document.body.appendChild(app);\n })();\n </script>\n</body>\n</html>`;\n}\n"],"names":["fs","path","join","tmpdir","relative"],"mappings":";;;;;;;;;;;AA2BO,SAAS,UAAU,CAAC,QAAQ,EAAE;AACrC,IAAI,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,KAAK;AACpC,QAAQA,sBAAE,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,GAAG,KAAK,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CA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