@rindo/core 3.0.1 → 3.1.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 (111) hide show
  1. package/cli/config-flags.d.ts +122 -122
  2. package/cli/index.cjs +2301 -2432
  3. package/cli/index.d.ts +19 -19
  4. package/cli/index.js +2302 -2433
  5. package/cli/package.json +1 -1
  6. package/compiler/package.json +1 -1
  7. package/compiler/rindo.d.ts +73 -73
  8. package/compiler/rindo.js +66137 -62907
  9. package/compiler/rindo.min.js +2 -2
  10. package/compiler/sys/in-memory-fs.d.ts +218 -218
  11. package/compiler/transpile.d.ts +32 -32
  12. package/dev-server/client/app-error.d.ts +18 -18
  13. package/dev-server/client/events.d.ts +6 -6
  14. package/dev-server/client/hmr-components.d.ts +1 -1
  15. package/dev-server/client/hmr-external-styles.d.ts +1 -1
  16. package/dev-server/client/hmr-images.d.ts +1 -1
  17. package/dev-server/client/hmr-inline-styles.d.ts +1 -1
  18. package/dev-server/client/hmr-util.d.ts +9 -9
  19. package/dev-server/client/hmr-window.d.ts +10 -10
  20. package/dev-server/client/index.d.ts +6 -6
  21. package/dev-server/client/index.js +781 -781
  22. package/dev-server/client/logger.d.ts +5 -5
  23. package/dev-server/client/package.json +1 -1
  24. package/dev-server/client/progress.d.ts +3 -3
  25. package/dev-server/client/status.d.ts +4 -4
  26. package/dev-server/connector.html +2 -2
  27. package/dev-server/index.d.ts +3 -3
  28. package/dev-server/index.js +228 -228
  29. package/dev-server/open-in-editor-api.js +1 -1
  30. package/dev-server/package.json +1 -1
  31. package/dev-server/server-process.js +1300 -1281
  32. package/dev-server/ws.js +1 -1
  33. package/dev-server/xdg-open +0 -0
  34. package/internal/app-data/index.cjs +88 -88
  35. package/internal/app-data/index.d.ts +4 -4
  36. package/internal/app-data/index.js +88 -88
  37. package/internal/app-data/package.json +1 -1
  38. package/internal/client/css-shim.js +1 -1
  39. package/internal/client/dom.js +1 -1
  40. package/internal/client/index.js +3380 -3380
  41. package/internal/client/package.json +1 -1
  42. package/internal/client/patch-browser.js +155 -155
  43. package/internal/client/patch-esm.js +25 -25
  44. package/internal/client/shadow-css.js +382 -382
  45. package/internal/hydrate/package.json +1 -1
  46. package/internal/index.d.ts +2 -2
  47. package/internal/index.js +1 -1
  48. package/internal/package.json +1 -1
  49. package/internal/rindo-private.d.ts +2272 -2268
  50. package/internal/rindo-public-compiler.d.ts +2377 -2356
  51. package/internal/rindo-public-docs.d.ts +139 -139
  52. package/internal/rindo-public-runtime.d.ts +1636 -1636
  53. package/internal/testing/package.json +1 -1
  54. package/mock-doc/index.cjs +4766 -4766
  55. package/mock-doc/index.d.ts +1006 -1006
  56. package/mock-doc/index.js +4766 -4766
  57. package/mock-doc/package.json +1 -1
  58. package/package.json +9 -9
  59. package/screenshot/connector-base.d.ts +42 -42
  60. package/screenshot/connector-local.d.ts +7 -7
  61. package/screenshot/index.d.ts +3 -3
  62. package/screenshot/index.js +615 -615
  63. package/screenshot/package.json +1 -1
  64. package/screenshot/pixel-match.d.ts +1 -1
  65. package/screenshot/pixel-match.js +14 -14
  66. package/screenshot/screenshot-compare.d.ts +3 -3
  67. package/screenshot/screenshot-fs.d.ts +15 -15
  68. package/sys/node/autoprefixer.js +2 -2
  69. package/sys/node/glob.js +1 -1
  70. package/sys/node/graceful-fs.js +1 -1
  71. package/sys/node/index.d.ts +22 -22
  72. package/sys/node/index.js +6 -3
  73. package/sys/node/node-fetch.js +1 -1
  74. package/sys/node/package.json +1 -1
  75. package/sys/node/prompts.js +1 -1
  76. package/sys/node/worker.js +1 -1
  77. package/testing/index.d.ts +12 -12
  78. package/testing/index.js +7 -3
  79. package/testing/jest/jest-config.d.ts +16 -16
  80. package/testing/jest/jest-environment.d.ts +15 -15
  81. package/testing/jest/jest-preprocessor.d.ts +59 -59
  82. package/testing/jest/jest-runner.d.ts +10 -10
  83. package/testing/jest/jest-screenshot.d.ts +2 -2
  84. package/testing/jest/jest-serializer.d.ts +4 -4
  85. package/testing/jest/jest-setup-test-framework.d.ts +1 -1
  86. package/testing/matchers/attributes.d.ts +14 -14
  87. package/testing/matchers/class-list.d.ts +12 -12
  88. package/testing/matchers/events.d.ts +21 -21
  89. package/testing/matchers/html.d.ts +12 -12
  90. package/testing/matchers/index.d.ts +23 -23
  91. package/testing/matchers/screenshot.d.ts +5 -5
  92. package/testing/matchers/text.d.ts +4 -4
  93. package/testing/mock-fetch.d.ts +11 -11
  94. package/testing/mocks.d.ts +56 -56
  95. package/testing/package.json +1 -1
  96. package/testing/puppeteer/index.d.ts +2 -2
  97. package/testing/puppeteer/puppeteer-browser.d.ts +6 -6
  98. package/testing/puppeteer/puppeteer-declarations.d.ts +403 -403
  99. package/testing/puppeteer/puppeteer-element.d.ts +67 -67
  100. package/testing/puppeteer/puppeteer-emulate.d.ts +2 -2
  101. package/testing/puppeteer/puppeteer-events.d.ts +21 -21
  102. package/testing/puppeteer/puppeteer-page.d.ts +2 -2
  103. package/testing/puppeteer/puppeteer-screenshot.d.ts +4 -4
  104. package/testing/reset-build-conditionals.d.ts +2 -2
  105. package/testing/spec-page.d.ts +2 -2
  106. package/testing/test-transpile.d.ts +2 -2
  107. package/testing/testing-logger.d.ts +25 -25
  108. package/testing/testing-sys.d.ts +6 -6
  109. package/testing/testing-utils.d.ts +79 -79
  110. package/testing/testing.d.ts +2 -2
  111. package/dependencies.json +0 -120
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core/internal/client",
3
- "version": "3.0.1",
3
+ "version": "3.1.0",
4
4
  "description": "Rindo internal client platform to be imported by the Rindo Compiler and internal runtime. Breaking changes can and will happen at any time.",
5
5
  "main": "./index.js",
6
6
  "private": true,
@@ -1,155 +1,155 @@
1
- /*
2
- Rindo Client Patch Browser v3.0.1 | MIT Licensed | https://rindojs.web.app
3
- */
4
- import { BUILD, NAMESPACE } from '@rindo/core/internal/app-data';
5
- import { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@rindo/core';
6
- /**
7
- * Helper method for querying a `meta` tag that contains a nonce value
8
- * out of a DOM's head.
9
- *
10
- * @param doc The DOM containing the `head` to query against
11
- * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
12
- * exists or the tag has no content.
13
- */
14
- function queryNonceMetaTagContent(doc) {
15
- var _a, _b, _c;
16
- return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
17
- }
18
- // TODO: Remove code related to the dynamic import shim
19
- const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
20
- const patchBrowser = () => {
21
- // NOTE!! This fn cannot use async/await!
22
- if (BUILD.isDev && !BUILD.isTesting) {
23
- consoleDevInfo('Running in development mode.');
24
- }
25
- // TODO: Remove code implementing the CSS variable shim
26
- if (BUILD.cssVarShim) {
27
- // shim css vars
28
- // TODO: Remove code implementing the CSS variable shim
29
- plt.$cssShim$ = win.__cssshim;
30
- }
31
- if (BUILD.cloneNodeFix) {
32
- // opted-in to polyfill cloneNode() for slot polyfilled components
33
- patchCloneNodeFix(H.prototype);
34
- }
35
- if (BUILD.profile && !performance.mark) {
36
- // not all browsers support performance.mark/measure (Safari 10)
37
- // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,
38
- // simply stub the implementations out.
39
- // TODO: Remove this patch when support for older browsers is removed (breaking)
40
- // @ts-ignore
41
- performance.mark = performance.measure = () => {
42
- /*noop*/
43
- };
44
- performance.getEntriesByName = () => [];
45
- }
46
- // @ts-ignore
47
- const scriptElm =
48
- // TODO: Remove code related to the dynamic import shim
49
- // TODO: Remove code related to deprecated `safari10` field.
50
- BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim
51
- ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) ||
52
- s.getAttribute('data-rindo-namespace') === NAMESPACE)
53
- : null;
54
- const importMeta = import.meta.url;
55
- const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};
56
- // TODO: Remove code related to deprecated `safari10` field.
57
- if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {
58
- // Safari < v11 support: This IF is true if it's Safari below v11.
59
- // This fn cannot use async/await since Safari didn't support it until v11,
60
- // however, Safari 10 did support modules. Safari 10 also didn't support "nomodule",
61
- // so both the ESM file and nomodule file would get downloaded. Only Safari
62
- // has 'onbeforeload' in the script, and "history.scrollRestoration" was added
63
- // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.
64
- // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.
65
- return {
66
- then() {
67
- /* promise noop */
68
- },
69
- };
70
- }
71
- // TODO: Remove code related to deprecated `safari10` field.
72
- if (!BUILD.safari10 && importMeta !== '') {
73
- opts.resourcesUrl = new URL('.', importMeta).href;
74
- // TODO: Remove code related to the dynamic import shim
75
- // TODO: Remove code related to deprecated `safari10` field.
76
- }
77
- else if (BUILD.dynamicImportShim || BUILD.safari10) {
78
- opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;
79
- // TODO: Remove code related to the dynamic import shim
80
- if (BUILD.dynamicImportShim) {
81
- patchDynamicImport(opts.resourcesUrl, scriptElm);
82
- }
83
- // TODO: Remove code related to the dynamic import shim
84
- if (BUILD.dynamicImportShim && !win.customElements) {
85
- // module support, but no custom elements support (Old Edge)
86
- // @ts-ignore
87
- return import(/* webpackChunkName: "polyfills-dom" */ './dom.js').then(() => opts);
88
- }
89
- }
90
- return promiseResolve(opts);
91
- };
92
- // TODO: Remove code related to the dynamic import shim
93
- const patchDynamicImport = (base, orgScriptElm) => {
94
- const importFunctionName = getDynamicImportFunction(NAMESPACE);
95
- try {
96
- // test if this browser supports dynamic imports
97
- // There is a caching issue in V8, that breaks using import() in Function
98
- // By generating a random string, we can workaround it
99
- // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info
100
- win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);
101
- }
102
- catch (e) {
103
- // this shim is specifically for browsers that do support "esm" imports
104
- // however, they do NOT support "dynamic" imports
105
- // basically this code is for old Edge, v18 and below
106
- const moduleMap = new Map();
107
- win[importFunctionName] = (src) => {
108
- var _a;
109
- const url = new URL(src, base).href;
110
- let mod = moduleMap.get(url);
111
- if (!mod) {
112
- const script = doc.createElement('script');
113
- script.type = 'module';
114
- script.crossOrigin = orgScriptElm.crossOrigin;
115
- script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {
116
- type: 'application/javascript',
117
- }));
118
- // Apply CSP nonce to the script tag if it exists
119
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
120
- if (nonce != null) {
121
- script.setAttribute('nonce', nonce);
122
- }
123
- mod = new Promise((resolve) => {
124
- script.onload = () => {
125
- resolve(win[importFunctionName].m);
126
- script.remove();
127
- };
128
- });
129
- moduleMap.set(url, mod);
130
- doc.head.appendChild(script);
131
- }
132
- return mod;
133
- };
134
- }
135
- };
136
- const patchCloneNodeFix = (HTMLElementPrototype) => {
137
- const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
138
- HTMLElementPrototype.cloneNode = function (deep) {
139
- if (this.nodeName === 'TEMPLATE') {
140
- return nativeCloneNodeFn.call(this, deep);
141
- }
142
- const clonedNode = nativeCloneNodeFn.call(this, false);
143
- const srcChildNodes = this.childNodes;
144
- if (deep) {
145
- for (let i = 0; i < srcChildNodes.length; i++) {
146
- // Node.ATTRIBUTE_NODE === 2, and checking because IE11
147
- if (srcChildNodes[i].nodeType !== 2) {
148
- clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
149
- }
150
- }
151
- }
152
- return clonedNode;
153
- };
154
- };
155
- export { patchBrowser };
1
+ /*
2
+ Rindo Client Patch Browser v3.1.0 | MIT Licensed | https://rindojs.web.app
3
+ */
4
+ import { BUILD, NAMESPACE } from '@rindo/core/internal/app-data';
5
+ import { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@rindo/core';
6
+ /**
7
+ * Helper method for querying a `meta` tag that contains a nonce value
8
+ * out of a DOM's head.
9
+ *
10
+ * @param doc The DOM containing the `head` to query against
11
+ * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
12
+ * exists or the tag has no content.
13
+ */
14
+ function queryNonceMetaTagContent(doc) {
15
+ var _a, _b, _c;
16
+ return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
17
+ }
18
+ // TODO: Remove code related to the dynamic import shim
19
+ const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
20
+ const patchBrowser = () => {
21
+ // NOTE!! This fn cannot use async/await!
22
+ if (BUILD.isDev && !BUILD.isTesting) {
23
+ consoleDevInfo('Running in development mode.');
24
+ }
25
+ // TODO: Remove code implementing the CSS variable shim
26
+ if (BUILD.cssVarShim) {
27
+ // shim css vars
28
+ // TODO: Remove code implementing the CSS variable shim
29
+ plt.$cssShim$ = win.__cssshim;
30
+ }
31
+ if (BUILD.cloneNodeFix) {
32
+ // opted-in to polyfill cloneNode() for slot polyfilled components
33
+ patchCloneNodeFix(H.prototype);
34
+ }
35
+ if (BUILD.profile && !performance.mark) {
36
+ // not all browsers support performance.mark/measure (Safari 10)
37
+ // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,
38
+ // simply stub the implementations out.
39
+ // TODO: Remove this patch when support for older browsers is removed (breaking)
40
+ // @ts-ignore
41
+ performance.mark = performance.measure = () => {
42
+ /*noop*/
43
+ };
44
+ performance.getEntriesByName = () => [];
45
+ }
46
+ // @ts-ignore
47
+ const scriptElm =
48
+ // TODO: Remove code related to the dynamic import shim
49
+ // TODO: Remove code related to deprecated `safari10` field.
50
+ BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim
51
+ ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) ||
52
+ s.getAttribute('data-rindo-namespace') === NAMESPACE)
53
+ : null;
54
+ const importMeta = import.meta.url;
55
+ const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};
56
+ // TODO: Remove code related to deprecated `safari10` field.
57
+ if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {
58
+ // Safari < v11 support: This IF is true if it's Safari below v11.
59
+ // This fn cannot use async/await since Safari didn't support it until v11,
60
+ // however, Safari 10 did support modules. Safari 10 also didn't support "nomodule",
61
+ // so both the ESM file and nomodule file would get downloaded. Only Safari
62
+ // has 'onbeforeload' in the script, and "history.scrollRestoration" was added
63
+ // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.
64
+ // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.
65
+ return {
66
+ then() {
67
+ /* promise noop */
68
+ },
69
+ };
70
+ }
71
+ // TODO: Remove code related to deprecated `safari10` field.
72
+ if (!BUILD.safari10 && importMeta !== '') {
73
+ opts.resourcesUrl = new URL('.', importMeta).href;
74
+ // TODO: Remove code related to the dynamic import shim
75
+ // TODO: Remove code related to deprecated `safari10` field.
76
+ }
77
+ else if (BUILD.dynamicImportShim || BUILD.safari10) {
78
+ opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;
79
+ // TODO: Remove code related to the dynamic import shim
80
+ if (BUILD.dynamicImportShim) {
81
+ patchDynamicImport(opts.resourcesUrl, scriptElm);
82
+ }
83
+ // TODO: Remove code related to the dynamic import shim
84
+ if (BUILD.dynamicImportShim && !win.customElements) {
85
+ // module support, but no custom elements support (Old Edge)
86
+ // @ts-ignore
87
+ return import(/* webpackChunkName: "polyfills-dom" */ './dom.js').then(() => opts);
88
+ }
89
+ }
90
+ return promiseResolve(opts);
91
+ };
92
+ // TODO: Remove code related to the dynamic import shim
93
+ const patchDynamicImport = (base, orgScriptElm) => {
94
+ const importFunctionName = getDynamicImportFunction(NAMESPACE);
95
+ try {
96
+ // test if this browser supports dynamic imports
97
+ // There is a caching issue in V8, that breaks using import() in Function
98
+ // By generating a random string, we can workaround it
99
+ // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info
100
+ win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);
101
+ }
102
+ catch (e) {
103
+ // this shim is specifically for browsers that do support "esm" imports
104
+ // however, they do NOT support "dynamic" imports
105
+ // basically this code is for old Edge, v18 and below
106
+ const moduleMap = new Map();
107
+ win[importFunctionName] = (src) => {
108
+ var _a;
109
+ const url = new URL(src, base).href;
110
+ let mod = moduleMap.get(url);
111
+ if (!mod) {
112
+ const script = doc.createElement('script');
113
+ script.type = 'module';
114
+ script.crossOrigin = orgScriptElm.crossOrigin;
115
+ script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {
116
+ type: 'application/javascript',
117
+ }));
118
+ // Apply CSP nonce to the script tag if it exists
119
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
120
+ if (nonce != null) {
121
+ script.setAttribute('nonce', nonce);
122
+ }
123
+ mod = new Promise((resolve) => {
124
+ script.onload = () => {
125
+ resolve(win[importFunctionName].m);
126
+ script.remove();
127
+ };
128
+ });
129
+ moduleMap.set(url, mod);
130
+ doc.head.appendChild(script);
131
+ }
132
+ return mod;
133
+ };
134
+ }
135
+ };
136
+ const patchCloneNodeFix = (HTMLElementPrototype) => {
137
+ const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
138
+ HTMLElementPrototype.cloneNode = function (deep) {
139
+ if (this.nodeName === 'TEMPLATE') {
140
+ return nativeCloneNodeFn.call(this, deep);
141
+ }
142
+ const clonedNode = nativeCloneNodeFn.call(this, false);
143
+ const srcChildNodes = this.childNodes;
144
+ if (deep) {
145
+ for (let i = 0; i < srcChildNodes.length; i++) {
146
+ // Node.ATTRIBUTE_NODE === 2, and checking because IE11
147
+ if (srcChildNodes[i].nodeType !== 2) {
148
+ clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
149
+ }
150
+ }
151
+ }
152
+ return clonedNode;
153
+ };
154
+ };
155
+ export { patchBrowser };
@@ -1,25 +1,25 @@
1
- /*
2
- Rindo Client Patch Esm v3.0.1 | MIT Licensed | https://rindojs.web.app
3
- */
4
- import { BUILD } from '@rindo/core/internal/app-data';
5
- import { CSS, plt, win, promiseResolve } from '@rindo/core';
6
- const patchEsm = () => {
7
- // NOTE!! This fn cannot use async/await!
8
- // TODO: Remove code implementing the CSS variable shim
9
- // @ts-ignore
10
- if (BUILD.cssVarShim && !(CSS && CSS.supports && CSS.supports('color', 'var(--c)'))) {
11
- // @ts-ignore
12
- return import(/* webpackChunkName: "polyfills-css-shim" */ './css-shim.js').then(() => {
13
- if ((plt.$cssShim$ = win.__cssshim)) {
14
- // TODO: Remove code implementing the CSS variable shim
15
- return plt.$cssShim$.i();
16
- }
17
- else {
18
- // for better minification
19
- return 0;
20
- }
21
- });
22
- }
23
- return promiseResolve();
24
- };
25
- export { patchEsm };
1
+ /*
2
+ Rindo Client Patch Esm v3.1.0 | MIT Licensed | https://rindojs.web.app
3
+ */
4
+ import { BUILD } from '@rindo/core/internal/app-data';
5
+ import { CSS, plt, win, promiseResolve } from '@rindo/core';
6
+ const patchEsm = () => {
7
+ // NOTE!! This fn cannot use async/await!
8
+ // TODO: Remove code implementing the CSS variable shim
9
+ // @ts-ignore
10
+ if (BUILD.cssVarShim && !(CSS && CSS.supports && CSS.supports('color', 'var(--c)'))) {
11
+ // @ts-ignore
12
+ return import(/* webpackChunkName: "polyfills-css-shim" */ './css-shim.js').then(() => {
13
+ if ((plt.$cssShim$ = win.__cssshim)) {
14
+ // TODO: Remove code implementing the CSS variable shim
15
+ return plt.$cssShim$.i();
16
+ }
17
+ else {
18
+ // for better minification
19
+ return 0;
20
+ }
21
+ });
22
+ }
23
+ return promiseResolve();
24
+ };
25
+ export { patchEsm };