lighthouse 8.5.1-dev.20211009 → 8.5.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 (164) hide show
  1. package/dist/report/flow.js +149 -0
  2. package/dist/report/standalone.js +228 -0
  3. package/flow-report/assets/styles.css +9 -272
  4. package/flow-report/jest.config.js +1 -1
  5. package/flow-report/src/app.tsx +9 -31
  6. package/flow-report/src/common.tsx +7 -86
  7. package/flow-report/src/icons.tsx +3 -20
  8. package/flow-report/src/sidebar/sidebar.tsx +16 -11
  9. package/flow-report/src/summary/category.tsx +24 -42
  10. package/flow-report/src/summary/summary.tsx +29 -32
  11. package/flow-report/src/topbar.tsx +4 -54
  12. package/flow-report/src/util.ts +1 -26
  13. package/flow-report/src/wrappers/report-renderer.tsx +1 -1
  14. package/flow-report/src/wrappers/report.tsx +20 -7
  15. package/flow-report/test/app-test.tsx +13 -17
  16. package/flow-report/test/setup/env-setup.ts +0 -1
  17. package/flow-report/test/sidebar/flow-test.tsx +12 -6
  18. package/flow-report/test/sidebar/sidebar-test.tsx +13 -7
  19. package/flow-report/test/summary/category-test.tsx +34 -79
  20. package/flow-report/test/summary/summary-test.tsx +17 -11
  21. package/flow-report/test/util-test.tsx +12 -1
  22. package/flow-report/tsconfig.json +0 -1
  23. package/flow-report/types/flow-report.d.ts +1 -2
  24. package/jest.config.js +15 -1
  25. package/lighthouse-cli/cli-flags.js +1 -3
  26. package/lighthouse-cli/run.js +2 -2
  27. package/lighthouse-cli/test/smokehouse/frontends/smokehouse-bin.js +0 -0
  28. package/lighthouse-cli/test/smokehouse/report-assert.js +4 -20
  29. package/lighthouse-core/audits/byte-efficiency/byte-efficiency-audit.js +1 -2
  30. package/lighthouse-core/audits/byte-efficiency/unused-javascript.js +1 -1
  31. package/lighthouse-core/computed/js-bundles.js +2 -1
  32. package/lighthouse-core/computed/unused-javascript-summary.js +3 -3
  33. package/lighthouse-core/config/config.js +2 -2
  34. package/lighthouse-core/config/default-config.js +0 -5
  35. package/lighthouse-core/fraggle-rock/api.js +0 -10
  36. package/lighthouse-core/fraggle-rock/config/filters.js +3 -22
  37. package/lighthouse-core/fraggle-rock/gather/driver.js +0 -4
  38. package/lighthouse-core/fraggle-rock/gather/navigation-runner.js +2 -2
  39. package/lighthouse-core/fraggle-rock/user-flow.js +6 -35
  40. package/lighthouse-core/gather/driver/navigation.js +0 -5
  41. package/lighthouse-core/gather/driver/prepare.js +0 -14
  42. package/lighthouse-core/gather/driver/storage.js +0 -5
  43. package/lighthouse-core/gather/gather-runner.js +2 -2
  44. package/lighthouse-core/gather/gatherers/dobetterweb/response-compression.js +1 -5
  45. package/lighthouse-core/gather/gatherers/full-page-screenshot.js +24 -30
  46. package/{shared/localization/i18n-module.js → lighthouse-core/lib/cdt/Common.js} +8 -3
  47. package/lighthouse-core/lib/cdt/SDK.js +123 -3
  48. package/lighthouse-core/lib/cdt/generated/SourceMap.js +312 -148
  49. package/lighthouse-core/lib/csp-evaluator.js +1 -2
  50. package/lighthouse-core/lib/i18n/README.md +6 -6
  51. package/lighthouse-core/lib/i18n/i18n.js +342 -9
  52. package/{shared/localization → lighthouse-core/lib/i18n}/locales/ar-XB.json +0 -0
  53. package/{shared/localization → lighthouse-core/lib/i18n}/locales/ar.json +0 -0
  54. package/{shared/localization → lighthouse-core/lib/i18n}/locales/bg.json +0 -0
  55. package/{shared/localization → lighthouse-core/lib/i18n}/locales/ca.json +0 -0
  56. package/{shared/localization → lighthouse-core/lib/i18n}/locales/cs.json +0 -0
  57. package/{shared/localization → lighthouse-core/lib/i18n}/locales/da.json +0 -0
  58. package/{shared/localization → lighthouse-core/lib/i18n}/locales/de.json +0 -0
  59. package/{shared/localization → lighthouse-core/lib/i18n}/locales/el.json +0 -0
  60. package/{shared/localization → lighthouse-core/lib/i18n}/locales/en-GB.json +0 -0
  61. package/{shared/localization → lighthouse-core/lib/i18n}/locales/en-US.json +0 -111
  62. package/{shared/localization → lighthouse-core/lib/i18n}/locales/en-XA.json +0 -0
  63. package/{shared/localization → lighthouse-core/lib/i18n}/locales/en-XL.json +0 -111
  64. package/{shared/localization → lighthouse-core/lib/i18n}/locales/es-419.json +0 -0
  65. package/{shared/localization → lighthouse-core/lib/i18n}/locales/es.json +0 -0
  66. package/{shared/localization → lighthouse-core/lib/i18n}/locales/fi.json +0 -0
  67. package/{shared/localization → lighthouse-core/lib/i18n}/locales/fil.json +0 -0
  68. package/{shared/localization → lighthouse-core/lib/i18n}/locales/fr.json +0 -0
  69. package/{shared/localization → lighthouse-core/lib/i18n}/locales/he.json +0 -0
  70. package/{shared/localization → lighthouse-core/lib/i18n}/locales/hi.json +0 -0
  71. package/{shared/localization → lighthouse-core/lib/i18n}/locales/hr.json +0 -0
  72. package/{shared/localization → lighthouse-core/lib/i18n}/locales/hu.json +0 -0
  73. package/{shared/localization → lighthouse-core/lib/i18n}/locales/id.json +0 -0
  74. package/{shared/localization → lighthouse-core/lib/i18n}/locales/it.json +0 -0
  75. package/{shared/localization → lighthouse-core/lib/i18n}/locales/ja.json +0 -0
  76. package/{shared/localization → lighthouse-core/lib/i18n}/locales/ko.json +0 -0
  77. package/{shared/localization → lighthouse-core/lib/i18n}/locales/lt.json +0 -0
  78. package/{shared/localization → lighthouse-core/lib/i18n}/locales/lv.json +0 -0
  79. package/{shared/localization → lighthouse-core/lib/i18n}/locales/nl.json +0 -0
  80. package/{shared/localization → lighthouse-core/lib/i18n}/locales/no.json +0 -0
  81. package/{shared/localization → lighthouse-core/lib/i18n}/locales/pl.json +0 -0
  82. package/{shared/localization → lighthouse-core/lib/i18n}/locales/pt-PT.json +0 -0
  83. package/{shared/localization → lighthouse-core/lib/i18n}/locales/pt.json +0 -0
  84. package/{shared/localization → lighthouse-core/lib/i18n}/locales/ro.json +0 -0
  85. package/{shared/localization → lighthouse-core/lib/i18n}/locales/ru.json +0 -0
  86. package/{shared/localization → lighthouse-core/lib/i18n}/locales/sk.json +0 -0
  87. package/{shared/localization → lighthouse-core/lib/i18n}/locales/sl.json +0 -0
  88. package/{shared/localization → lighthouse-core/lib/i18n}/locales/sr-Latn.json +0 -0
  89. package/{shared/localization → lighthouse-core/lib/i18n}/locales/sr.json +0 -0
  90. package/{shared/localization → lighthouse-core/lib/i18n}/locales/sv.json +0 -0
  91. package/{shared/localization → lighthouse-core/lib/i18n}/locales/ta.json +0 -0
  92. package/{shared/localization → lighthouse-core/lib/i18n}/locales/te.json +0 -0
  93. package/{shared/localization → lighthouse-core/lib/i18n}/locales/th.json +0 -0
  94. package/{shared/localization → lighthouse-core/lib/i18n}/locales/tr.json +0 -0
  95. package/{shared/localization → lighthouse-core/lib/i18n}/locales/uk.json +0 -0
  96. package/{shared/localization → lighthouse-core/lib/i18n}/locales/vi.json +0 -0
  97. package/{shared/localization → lighthouse-core/lib/i18n}/locales/zh-HK.json +0 -0
  98. package/{shared/localization → lighthouse-core/lib/i18n}/locales/zh-TW.json +0 -0
  99. package/{shared/localization → lighthouse-core/lib/i18n}/locales/zh.json +0 -0
  100. package/{shared/localization → lighthouse-core/lib/i18n}/locales.js +1 -2
  101. package/{shared/localization → lighthouse-core/lib/i18n}/swap-locale.js +7 -9
  102. package/lighthouse-core/lib/page-functions.js +4 -4
  103. package/lighthouse-core/lib/stack-packs.js +13 -1
  104. package/{shared → lighthouse-core/lib}/type-verifiers.js +0 -0
  105. package/lighthouse-core/runner.js +6 -6
  106. package/lighthouse-core/scripts/manual-chrome-launcher.js +1 -4
  107. package/lighthouse-core/util-commonjs.js +4 -20
  108. package/package.json +15 -18
  109. package/readme.md +1 -1
  110. package/report/assets/standalone-template.html +1 -0
  111. package/report/assets/styles.css +1 -8
  112. package/report/assets/templates.html +2 -40
  113. package/report/clients/psi.js +0 -1
  114. package/report/generator/file-namer.js +8 -17
  115. package/report/generator/report-generator.js +1 -0
  116. package/report/renderer/category-renderer.js +4 -3
  117. package/report/renderer/components.js +69 -106
  118. package/report/renderer/dom.js +0 -19
  119. package/report/renderer/performance-category-renderer.js +20 -22
  120. package/report/renderer/report-renderer.js +0 -7
  121. package/report/renderer/report-ui-features.js +19 -7
  122. package/report/renderer/util.js +4 -20
  123. package/report/test/clients/psi-test.js +3 -2
  124. package/report/test/generator/file-namer-test.js +2 -2
  125. package/report/test/renderer/category-renderer-test.js +1 -1
  126. package/report/test/renderer/performance-category-renderer-test.js +0 -12
  127. package/report/test/renderer/report-renderer-test.js +55 -0
  128. package/report/test/renderer/util-test.js +8 -68
  129. package/report/test-assets/faux-psi-template.html +1 -0
  130. package/report/tsconfig.json +1 -2
  131. package/report/types/html-renderer.d.ts +1 -2
  132. package/root.js +0 -18
  133. package/third-party/chromium-synchronization/inspector-issueAdded-types-test.js +3 -5
  134. package/third-party/chromium-synchronization/installability-errors-test.js +1 -2
  135. package/tsconfig-all.json +0 -1
  136. package/tsconfig-base.json +1 -1
  137. package/tsconfig.json +3 -2
  138. package/types/config.d.ts +0 -1
  139. package/types/lhr/flow.d.ts +0 -7
  140. package/types/lhr/i18n.d.ts +3 -0
  141. package/changelog.md +0 -5395
  142. package/flow-report/.eslintrc.cjs +0 -49
  143. package/flow-report/package.json +0 -4
  144. package/flow-report/src/header.tsx +0 -88
  145. package/flow-report/src/help-dialog.tsx +0 -120
  146. package/flow-report/src/i18n/i18n.tsx +0 -44
  147. package/flow-report/src/i18n/localized-strings.js +0 -11
  148. package/flow-report/src/i18n/ui-strings.js +0 -86
  149. package/flow-report/test/common-test.tsx +0 -89
  150. package/flow-report/test/header-test.tsx +0 -55
  151. package/flow-report/test/sample-flow.ts +0 -17
  152. package/flow-report/test/topbar-test.tsx +0 -68
  153. package/lighthouse-core/lib/cdt/Platform.js +0 -55
  154. package/lighthouse-core/scripts/package.json +0 -4
  155. package/report/renderer/swap-locale-feature.js +0 -82
  156. package/report/test/renderer/report-renderer-axe-test.js +0 -86
  157. package/shared/localization/format.js +0 -422
  158. package/shared/localization/swap-flow-locale.js +0 -20
  159. package/shared/test/localization/format-test.js +0 -377
  160. package/shared/test/localization/locales-test.js +0 -47
  161. package/shared/test/localization/swap-locale-test.js +0 -140
  162. package/shared/tsconfig.json +0 -22
  163. package/shared/types/shared.d.ts +0 -24
  164. package/types/es-main.d.ts +0 -18
@@ -263,15 +263,12 @@ limitations under the License.
263
263
  }
264
264
 
265
265
  .lh-tools {
266
- display: flex;
267
- align-items: center;
268
266
  margin-left: auto;
269
267
  will-change: transform;
270
268
  min-width: var(--report-icon-size);
271
269
  }
272
270
  .lh-tools__button {
273
271
  width: var(--report-icon-size);
274
- min-width: 24px;
275
272
  height: var(--report-icon-size);
276
273
  cursor: pointer;
277
274
  margin-right: 5px;
@@ -328,32 +325,6 @@ limitations under the License.
328
325
  display: none;
329
326
  }
330
327
 
331
- .lh-locale-selector {
332
- width: 100%;
333
- color: var(--report-text-color);
334
- background-color: var(--locale-selector-background-color);
335
- padding: 2px;
336
- }
337
- .lh-tools-locale {
338
- display: flex;
339
- align-items: center;
340
- flex-direction: row-reverse;
341
- }
342
- .lh-tools-locale__selector-wrapper {
343
- transition: opacity 0.15s;
344
- opacity: 0;
345
- max-width: 200px;
346
- }
347
- .lh-button.lh-tool-locale__button {
348
- height: unset;
349
- color: var(--tools-icon-color);
350
- }
351
- .lh-tool-locale__button.lh-active + .lh-tools-locale__selector-wrapper {
352
- opacity: 1;
353
- clip: rect(-1px, 194px, 242px, -3px);
354
- visibility: visible;
355
- }
356
-
357
328
  @media screen and (max-width: 964px) {
358
329
  .lh-tools__dropdown {
359
330
  right: 0;
@@ -407,15 +378,6 @@ limitations under the License.
407
378
  <a href="" class="lh-topbar__url" target="_blank" rel="noopener"></a>
408
379
 
409
380
  <div class="lh-tools">
410
- <div class="lh-tools-locale lh-hidden">
411
- <button id="lh-button__swap-locales" class="lh-button lh-tool-locale__button" title="Show Language Picker" aria-label="Toggle language picker" aria-haspopup="menu" aria-expanded="false" aria-controls="lh-tools-locale__selector-wrapper">
412
- <svg width="20px" height="20px" viewBox="0 0 24 24" fill="currentColor"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"/></svg>
413
- </button>
414
- <div id="lh-tools-locale__selector-wrapper" class="lh-tools-locale__selector-wrapper" role="menu" aria-labelledby="lh-button__swap-locales" aria-hidden="true">
415
- <!-- Select element created by ReportUIFeatures._enableSwapLocale: .lh-locale-selector -->
416
- </div>
417
- </div>
418
-
419
381
  <button id="lh-tools-button" class="lh-tools__button" title="Tools menu" aria-label="Toggle report tools menu" aria-haspopup="menu" aria-expanded="false" aria-controls="lh-tools-dropdown">
420
382
  <svg width="100%" height="100%" viewBox="0 0 24 24">
421
383
  <path d="M0 0h24v24H0z" fill="none"/>
@@ -587,7 +549,7 @@ limitations under the License.
587
549
 
588
550
  <!-- Lighthouse score gauge -->
589
551
  <template id="gauge">
590
- <a class="lh-gauge__wrapper">
552
+ <a href="#" class="lh-gauge__wrapper">
591
553
  <!-- Wrapper exists for the ::before plugin icon. Cannot create pseudo-elements on svgs. -->
592
554
  <div class="lh-gauge__svg-wrapper">
593
555
  <svg viewBox="0 0 120 120" class="lh-gauge">
@@ -603,7 +565,7 @@ limitations under the License.
603
565
 
604
566
  <!-- Lighthouse category fraction -->
605
567
  <template id="fraction">
606
- <a class="lh-fraction__wrapper">
568
+ <a href="#" class="lh-fraction__wrapper">
607
569
  <div class="lh-fraction__content-wrapper">
608
570
  <div class="lh-fraction__content">
609
571
  <div class="lh-fraction__background"></div>
@@ -77,7 +77,6 @@ export function prepareLabData(LHResult, document) {
77
77
  reportLHR.categoryGroups,
78
78
  {environment: 'PSI', gatherMode: lhResult.gatherMode}
79
79
  );
80
- perfCategoryEl.append(dom.createComponent('styles'));
81
80
 
82
81
  const scoreGaugeEl = dom.find('.lh-score__gauge', perfCategoryEl);
83
82
  scoreGaugeEl.remove();
@@ -11,14 +11,15 @@
11
11
  */
12
12
 
13
13
  /**
14
- * Generate a filenamePrefix of name_YYYY-MM-DD_HH-MM-SS
14
+ * Generate a filenamePrefix of hostname_YYYY-MM-DD_HH-MM-SS
15
15
  * Date/time uses the local timezone, however Node has unreliable ICU
16
16
  * support, so we must construct a YYYY-MM-DD date format manually. :/
17
- * @param {string} name
18
- * @param {string|undefined} fetchTime
17
+ * @param {{finalUrl: string, fetchTime: string}} lhr
18
+ * @return {string}
19
19
  */
20
- function getFilenamePrefix(name, fetchTime) {
21
- const date = fetchTime ? new Date(fetchTime) : new Date();
20
+ function getFilenamePrefix(lhr) {
21
+ const hostname = new URL(lhr.finalUrl).hostname;
22
+ const date = (lhr.fetchTime && new Date(lhr.fetchTime)) || new Date();
22
23
 
23
24
  const timeStr = date.toLocaleTimeString('en-US', {hour12: false});
24
25
  const dateParts = date.toLocaleDateString('en-US', {
@@ -28,19 +29,9 @@ function getFilenamePrefix(name, fetchTime) {
28
29
  dateParts.unshift(dateParts.pop());
29
30
  const dateStr = dateParts.join('-');
30
31
 
31
- const filenamePrefix = `${name}_${dateStr}_${timeStr}`;
32
+ const filenamePrefix = `${hostname}_${dateStr}_${timeStr}`;
32
33
  // replace characters that are unfriendly to filenames
33
34
  return filenamePrefix.replace(/[/?<>\\:*|"]/g, '-');
34
35
  }
35
36
 
36
- /**
37
- * Generate a filenamePrefix of hostname_YYYY-MM-DD_HH-MM-SS.
38
- * @param {{finalUrl: string, fetchTime: string}} lhr
39
- * @return {string}
40
- */
41
- function getLhrFilenamePrefix(lhr) {
42
- const hostname = new URL(lhr.finalUrl).hostname;
43
- return getFilenamePrefix(hostname, lhr.fetchTime);
44
- }
45
-
46
- module.exports = {getLhrFilenamePrefix, getFilenamePrefix};
37
+ module.exports = {getFilenamePrefix};
@@ -55,6 +55,7 @@ class ReportGenerator {
55
55
  return ReportGenerator.replaceStrings(htmlReportAssets.REPORT_TEMPLATE, [
56
56
  {search: '%%LIGHTHOUSE_JSON%%', replacement: sanitizedJson},
57
57
  {search: '%%LIGHTHOUSE_JAVASCRIPT%%', replacement: sanitizedJavascript},
58
+ {search: '/*%%LIGHTHOUSE_CSS%%*/', replacement: htmlReportAssets.REPORT_CSS},
58
59
  ]);
59
60
  }
60
61
 
@@ -333,6 +333,7 @@ export class CategoryRenderer {
333
333
  renderScoreGauge(category, groupDefinitions) { // eslint-disable-line no-unused-vars
334
334
  const tmpl = this.dom.createComponent('gauge');
335
335
  const wrapper = this.dom.find('a.lh-gauge__wrapper', tmpl);
336
+ this.dom.safelySetHref(wrapper, `#${category.id}`);
336
337
 
337
338
  if (Util.isPluginCategory(category.id)) {
338
339
  wrapper.classList.add('lh-gauge__wrapper--plugin');
@@ -375,12 +376,12 @@ export class CategoryRenderer {
375
376
  const wrapper = this.dom.find('a.lh-fraction__wrapper', tmpl);
376
377
  this.dom.safelySetHref(wrapper, `#${category.id}`);
377
378
 
378
- const {numPassed, numPassableAudits, totalWeight} = Util.calculateCategoryFraction(category);
379
+ const {numPassed, numAudits, totalWeight} = Util.calculateCategoryFraction(category);
379
380
 
380
- const fraction = numPassed / numPassableAudits;
381
+ const fraction = numPassed / numAudits;
381
382
  const content = this.dom.find('.lh-fraction__content', tmpl);
382
383
  const text = this.dom.createElement('span');
383
- text.textContent = `${numPassed}/${numPassableAudits}`;
384
+ text.textContent = `${numPassed}/${numAudits}`;
384
385
  content.appendChild(text);
385
386
 
386
387
  let rating = Util.calculateRating(fraction);
@@ -215,6 +215,7 @@ function createFooterComponent(dom) {
215
215
  function createFractionComponent(dom) {
216
216
  const el0 = dom.document().createDocumentFragment();
217
217
  const el1 = dom.createElement('a', 'lh-fraction__wrapper');
218
+ el1.setAttribute('href', '#');
218
219
  const el2 = dom.createElement('div', 'lh-fraction__content-wrapper');
219
220
  const el3 = dom.createElement('div', 'lh-fraction__content');
220
221
  const el4 = dom.createElement('div', 'lh-fraction__background');
@@ -232,6 +233,7 @@ function createFractionComponent(dom) {
232
233
  function createGaugeComponent(dom) {
233
234
  const el0 = dom.document().createDocumentFragment();
234
235
  const el1 = dom.createElement('a', 'lh-gauge__wrapper');
236
+ el1.setAttribute('href', '#');
235
237
  const el2 = dom.createElement('div', 'lh-gauge__svg-wrapper');
236
238
  const el3 = dom.createElementNS('http://www.w3.org/2000/svg', 'svg', 'lh-gauge');
237
239
  el3.setAttribute('viewBox', '0 0 120 120');
@@ -565,24 +567,13 @@ function createSnippetLineComponent(dom) {
565
567
  return el0;
566
568
  }
567
569
 
568
- /**
569
- * @param {DOM} dom
570
- */
571
- function createStylesComponent(dom) {
572
- const el0 = dom.document().createDocumentFragment();
573
- const el1 = dom.createElement('style');
574
- el1.append('/**\n * @license\n * Copyright 2017 The Lighthouse Authors. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS-IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n Naming convention:\n\n If a variable is used for a specific component: --{component}-{property name}-{modifier}\n\n Both {component} and {property name} should be kebab-case. If the target is the entire page,\n use \'report\' for the component. The property name should not be abbreviated. Use the\n property name the variable is intended for - if it\'s used for multiple, a common descriptor\n is fine (ex: \'size\' for a variable applied to \'width\' and \'height\'). If a variable is shared\n across multiple components, either create more variables or just drop the "{component}-"\n part of the name. Append any modifiers at the end (ex: \'big\', \'dark\').\n\n For colors: --color-{hue}-{intensity}\n\n {intensity} is the Material Design tag - 700, A700, etc.\n*/\n.lh-vars {\n /* Palette using Material Design Colors\n * https://www.materialui.co/colors */\n --color-amber-50: #FFF8E1;\n --color-blue-200: #90CAF9;\n --color-blue-900: #0D47A1;\n --color-blue-A700: #2962FF;\n --color-cyan-500: #00BCD4;\n --color-gray-100: #F5F5F5;\n --color-gray-300: #CFCFCF;\n --color-gray-200: #E0E0E0;\n --color-gray-400: #BDBDBD;\n --color-gray-50: #FAFAFA;\n --color-gray-500: #9E9E9E;\n --color-gray-600: #757575;\n --color-gray-700: #616161;\n --color-gray-800: #424242;\n --color-gray-900: #212121;\n --color-gray: #000000;\n --color-green-700: #018642;\n --color-green: #0CCE6B;\n --color-lime-400: #D3E156;\n --color-orange-50: #FFF3E0;\n --color-orange-700: #D04900;\n --color-orange: #FFA400;\n --color-red-700: #EB0F00;\n --color-red: #FF4E42;\n --color-teal-600: #00897B;\n --color-white: #FFFFFF;\n\n /* Context-specific colors */\n --color-average-secondary: var(--color-orange-700);\n --color-average: var(--color-orange);\n --color-fail-secondary: var(--color-red-700);\n --color-fail: var(--color-red);\n --color-hover: var(--color-gray-50);\n --color-informative: var(--color-blue-900);\n --color-pass-secondary: var(--color-green-700);\n --color-pass: var(--color-green);\n --color-not-applicable: var(--color-gray-600);\n\n /* Component variables */\n --audit-description-padding-left: calc(var(--score-icon-size) + var(--score-icon-margin-left) + var(--score-icon-margin-right));\n --audit-explanation-line-height: 16px;\n --audit-group-margin-bottom: 40px;\n --audit-group-padding-vertical: 8px;\n --audit-margin-horizontal: 5px;\n --audit-padding-vertical: 8px;\n --category-header-font-size: 20px;\n --category-padding: 40px;\n --chevron-line-stroke: var(--color-gray-600);\n --chevron-size: 12px;\n --default-padding: 12px;\n --env-item-background-color: var(--color-gray-100);\n --env-item-font-size: 28px;\n --env-item-line-height: 36px;\n --env-item-padding: 10px 0px;\n --env-name-min-width: 220px;\n --footer-padding-vertical: 16px;\n --gauge-circle-size-big: 112px;\n --gauge-circle-size: 80px;\n --gauge-label-font-size-big: 28px;\n --gauge-label-font-size: 20px;\n --gauge-label-line-height-big: 36px;\n --gauge-label-line-height: 26px;\n --gauge-percentage-font-size-big: 38px;\n --gauge-percentage-font-size: 28px;\n --gauge-wrapper-width: 148px;\n --header-line-height: 24px;\n --highlighter-background-color: var(--report-text-color);\n --icon-square-size: calc(var(--score-icon-size) * 0.88);\n --image-preview-size: 48px;\n --locale-selector-background-color: var(--color-white);\n --metric-toggle-lines-fill: #7F7F7F;\n --metric-value-font-size: 28px;\n --metrics-toggle-background-color: var(--color-gray-200);\n --plugin-badge-background-color: var(--color-white);\n --plugin-badge-size-big: calc(var(--gauge-circle-size-big) / 2.7);\n --plugin-badge-size: calc(var(--gauge-circle-size) / 2.7);\n --plugin-icon-size: 65%;\n --pwa-icon-margin: 0 6px 0 -2px;\n --pwa-icon-size: var(--topbar-logo-size);\n --report-background-color: #fff;\n --report-border-color-secondary: #ebebeb;\n --report-font-family-monospace: \'Roboto Mono\', \'Menlo\', \'dejavu sans mono\', \'Consolas\', \'Lucida Console\', monospace;\n --report-font-family: Roboto, Helvetica, Arial, sans-serif;\n --report-font-size: 16px;\n --report-icon-size: var(--score-icon-background-size);\n --report-line-height: 24px;\n --report-min-width: 400px;\n --report-monospace-font-size: calc(var(--report-font-size) * 0.85);\n --report-text-color-secondary: var(--color-gray-800);\n --report-text-color: var(--color-gray-900);\n --report-width: calc(60 * var(--report-font-size));\n --score-container-padding: 8px;\n --score-icon-background-size: 24px;\n --score-icon-margin-left: 4px;\n --score-icon-margin-right: 12px;\n --score-icon-margin: 0 var(--score-icon-margin-right) 0 var(--score-icon-margin-left);\n --score-icon-size: 12px;\n --score-icon-size-big: 16px;\n --scores-container-padding: 20px 0 20px 0;\n --scorescale-height: 6px;\n --scorescale-width: 18px;\n --screenshot-overlay-background: rgba(0, 0, 0, 0.3);\n --section-padding-vertical: 12px;\n --snippet-background-color: var(--color-gray-50);\n --snippet-color: #0938C2;\n --sparkline-height: 5px;\n --stackpack-padding-horizontal: 10px;\n --sticky-header-background-color: var(--report-background-color);\n --table-higlight-background-color: hsla(0, 0%, 75%, 0.1);\n --tools-icon-color: var(--color-gray-600);\n --topbar-background-color: var(--color-gray-100);\n --topbar-height: 32px;\n --topbar-logo-size: 24px;\n --topbar-padding: 0 8px;\n --toplevel-warning-background-color: var(--color-orange-50);\n --toplevel-warning-message-text-color: #BD4200;\n --toplevel-warning-padding: 18px;\n --toplevel-warning-text-color: var(--report-text-color);\n\n /* SVGs */\n --plugin-icon-url-dark: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24" fill="%23FFFFFF"><path d="M0 0h24v24H0z" fill="none"/><path d="M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11z"/></svg>\');\n --plugin-icon-url: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24" fill="%23757575"><path d="M0 0h24v24H0z" fill="none"/><path d="M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11z"/></svg>\');\n\n --pass-icon-url: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><title>check</title><path fill="%23178239" d="M24 4C12.95 4 4 12.95 4 24c0 11.04 8.95 20 20 20 11.04 0 20-8.96 20-20 0-11.05-8.96-20-20-20zm-4 30L10 24l2.83-2.83L20 28.34l15.17-15.17L38 16 20 34z"/></svg>\');\n --average-icon-url: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><title>info</title><path fill="%23E67700" d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm2 30h-4V22h4v12zm0-16h-4v-4h4v4z"/></svg>\');\n --fail-icon-url: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><title>warn</title><path fill="%23C7221F" d="M2 42h44L24 4 2 42zm24-6h-4v-4h4v4zm0-8h-4v-8h4v8z"/></svg>\');\n\n --pwa-installable-gray-url: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="nonzero"><circle fill="%23DAE0E3" cx="12" cy="12" r="12"/><path d="M12 5a7 7 0 1 0 0 14 7 7 0 0 0 0-14zm3.5 7.7h-2.8v2.8h-1.4v-2.8H8.5v-1.4h2.8V8.5h1.4v2.8h2.8v1.4z" fill="%23FFF"/></g></svg>\');\n --pwa-optimized-gray-url: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><rect fill="%23DAE0E3" width="24" height="24" rx="12"/><path fill="%23FFF" d="M12 15.07l3.6 2.18-.95-4.1 3.18-2.76-4.2-.36L12 6.17l-1.64 3.86-4.2.36 3.2 2.76-.96 4.1z"/><path d="M5 5h14v14H5z"/></g></svg>\');\n\n --pwa-installable-gray-url-dark: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="nonzero"><circle fill="%23424242" cx="12" cy="12" r="12"/><path d="M12 5a7 7 0 1 0 0 14 7 7 0 0 0 0-14zm3.5 7.7h-2.8v2.8h-1.4v-2.8H8.5v-1.4h2.8V8.5h1.4v2.8h2.8v1.4z" fill="%23FFF"/></g></svg>\');\n --pwa-optimized-gray-url-dark: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><rect fill="%23424242" width="24" height="24" rx="12"/><path fill="%23FFF" d="M12 15.07l3.6 2.18-.95-4.1 3.18-2.76-4.2-.36L12 6.17l-1.64 3.86-4.2.36 3.2 2.76-.96 4.1z"/><path d="M5 5h14v14H5z"/></g></svg>\');\n\n --pwa-installable-color-url: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"><g fill-rule="nonzero" fill="none"><circle fill="%230CCE6B" cx="12" cy="12" r="12"/><path d="M12 5a7 7 0 1 0 0 14 7 7 0 0 0 0-14zm3.5 7.7h-2.8v2.8h-1.4v-2.8H8.5v-1.4h2.8V8.5h1.4v2.8h2.8v1.4z" fill="%23FFF"/></g></svg>\');\n --pwa-optimized-color-url: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><rect fill="%230CCE6B" width="24" height="24" rx="12"/><path d="M5 5h14v14H5z"/><path fill="%23FFF" d="M12 15.07l3.6 2.18-.95-4.1 3.18-2.76-4.2-.36L12 6.17l-1.64 3.86-4.2.36 3.2 2.76-.96 4.1z"/></g></svg>\');\n\n --swap-locale-icon-url: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"/></svg>\');\n}\n\n@media not print {\n .lh-vars.lh-dark {\n /* Pallete */\n --color-gray-200: var(--color-gray-800);\n --color-gray-300: #616161;\n --color-gray-400: var(--color-gray-600);\n --color-gray-700: var(--color-gray-400);\n --color-gray-50: #757575;\n --color-gray-600: var(--color-gray-500);\n --color-green-700: var(--color-green);\n --color-orange-700: var(--color-orange);\n --color-red-700: var(--color-red);\n --color-teal-600: var(--color-cyan-500);\n\n /* Context-specific colors */\n --color-hover: rgba(0, 0, 0, 0.2);\n --color-informative: var(--color-blue-200);\n\n /* Component variables */\n --env-item-background-color: var(--color-gray);\n --locale-selector-background-color: var(--color-gray-200);\n --plugin-badge-background-color: var(--color-gray-800);\n --report-background-color: var(--color-gray-900);\n --report-border-color-secondary: var(--color-gray-200);\n --report-text-color-secondary: var(--color-gray-400);\n --report-text-color: var(--color-gray-100);\n --snippet-color: var(--color-cyan-500);\n --topbar-background-color: var(--color-gray);\n \t--toplevel-warning-background-color: #544B40;\n \t--toplevel-warning-message-text-color: var(--color-orange-700);\n\t--toplevel-warning-text-color: var(--color-gray-100);\n\n /* SVGs */\n --plugin-icon-url: var(--plugin-icon-url-dark);\n --pwa-installable-gray-url: var(--pwa-installable-gray-url-dark);\n --pwa-optimized-gray-url: var(--pwa-optimized-gray-url-dark);\n }\n}\n\n@media only screen and (max-width: 480px) {\n .lh-vars {\n --audit-group-margin-bottom: 20px;\n --category-padding: 24px;\n --env-name-min-width: 120px;\n --gauge-circle-size-big: 96px;\n --gauge-circle-size: 72px;\n --gauge-label-font-size-big: 22px;\n --gauge-label-font-size: 14px;\n --gauge-label-line-height-big: 26px;\n --gauge-label-line-height: 20px;\n --gauge-percentage-font-size-big: 34px;\n --gauge-percentage-font-size: 26px;\n --gauge-wrapper-width: 112px;\n --header-padding: 16px 0 16px 0;\n --image-preview-size: 24px;\n --plugin-icon-size: 75%;\n --pwa-icon-margin: 0 7px 0 -3px;\n --report-font-size: 14px;\n --report-line-height: 20px;\n --score-icon-margin-left: 2px;\n --score-icon-size: 10px;\n --topbar-height: 28px;\n --topbar-logo-size: 20px;\n }\n\n /* Not enough space to adequately show the relative savings bars. */\n .lh-sparkline {\n display: none;\n }\n}\n\n.lh-vars.lh-devtools {\n --audit-explanation-line-height: 14px;\n --audit-group-margin-bottom: 20px;\n --audit-group-padding-vertical: 12px;\n --audit-padding-vertical: 4px;\n --category-header-font-size: 16px;\n --category-padding: 12px;\n --default-padding: 12px;\n --env-name-min-width: 120px;\n --footer-padding-vertical: 8px;\n --gauge-circle-size-big: 72px;\n --gauge-circle-size: 64px;\n --gauge-label-font-size-big: 22px;\n --gauge-label-font-size: 14px;\n --gauge-label-line-height-big: 26px;\n --gauge-label-line-height: 20px;\n --gauge-percentage-font-size-big: 34px;\n --gauge-percentage-font-size: 26px;\n --gauge-wrapper-width: 97px;\n --header-line-height: 20px;\n --header-padding: 16px 0 16px 0;\n --screenshot-overlay-background: transparent;\n --plugin-icon-size: 75%;\n --pwa-icon-margin: 0 7px 0 -3px;\n --report-font-family-monospace: \'Menlo\', \'dejavu sans mono\', \'Consolas\', \'Lucida Console\', monospace;\n --report-font-family: \'.SFNSDisplay-Regular\', \'Helvetica Neue\', \'Lucida Grande\', sans-serif;\n --report-font-size: 12px;\n --report-line-height: 20px;\n --score-icon-margin-left: 2px;\n --score-icon-size: 10px;\n --section-padding-vertical: 8px;\n}\n\n.lh-devtools.lh-root {\n height: 100%;\n}\n.lh-devtools.lh-root img {\n /* Override devtools default \'min-width: 0\' so svg without size in a flexbox isn\'t collapsed. */\n min-width: auto;\n}\n.lh-devtools .lh-container {\n overflow-y: scroll;\n height: calc(100% - var(--topbar-height));\n}\n@media print {\n .lh-devtools .lh-container {\n overflow: unset;\n }\n}\n.lh-devtools .lh-sticky-header {\n /* This is normally the height of the topbar, but we want it to stick to the top of our scroll container .lh-container` */\n top: 0;\n}\n\n@keyframes fadeIn {\n 0% { opacity: 0;}\n 100% { opacity: 0.6;}\n}\n\n.lh-root *, .lh-root *::before, .lh-root *::after {\n box-sizing: border-box;\n -webkit-font-smoothing: antialiased;\n}\n\n.lh-root {\n font-family: var(--report-font-family);\n font-size: var(--report-font-size);\n margin: 0;\n line-height: var(--report-line-height);\n background: var(--report-background-color);\n color: var(--report-text-color);\n}\n\n.lh-root :focus {\n outline: -webkit-focus-ring-color auto 3px;\n}\n.lh-root summary:focus {\n outline: none;\n box-shadow: 0 0 0 1px hsl(217, 89%, 61%);\n}\n\n.lh-root [hidden] {\n display: none !important;\n}\n\n.lh-root pre {\n margin: 0;\n}\n\n.lh-root details > summary {\n cursor: pointer;\n}\n\n.lh-hidden {\n display: none !important;\n}\n\n.lh-container {\n /*\n Text wrapping in the report is so much FUN!\n We have a `word-break: break-word;` globally here to prevent a few common scenarios, namely\n long non-breakable text (usually URLs) found in:\n 1. The footer\n 2. .lh-node (outerHTML)\n 3. .lh-code\n\n With that sorted, the next challenge is appropriate column sizing and text wrapping inside our\n .lh-details tables. Even more fun.\n * We don\'t want table headers ("Potential Savings (ms)") to wrap or their column values, but\n we\'d be happy for the URL column to wrap if the URLs are particularly long.\n * We want the narrow columns to remain narrow, providing the most column width for URL\n * We don\'t want the table to extend past 100% width.\n * Long URLs in the URL column can wrap. Util.getURLDisplayName maxes them out at 64 characters,\n but they do not get any overflow:ellipsis treatment.\n */\n word-break: break-word;\n}\n\n.lh-audit-group a,\n.lh-category-header__description a,\n.lh-audit__description a,\n.lh-warnings a,\n.lh-footer a,\n.lh-table-column--link a {\n color: var(--color-informative);\n}\n\n.lh-audit__description, .lh-audit__stackpack {\n --inner-audit-padding-right: var(--stackpack-padding-horizontal);\n padding-left: var(--audit-description-padding-left);\n padding-right: var(--inner-audit-padding-right);\n padding-top: 8px;\n padding-bottom: 8px;\n}\n\n.lh-details {\n font-size: var(--report-font-size);\n margin-top: var(--default-padding);\n margin-bottom: var(--default-padding);\n margin-left: var(--audit-description-padding-left);\n /* whatever the .lh-details side margins are */\n width: 100%;\n}\n\n.lh-audit__stackpack {\n display: flex;\n align-items: center;\n}\n\n.lh-audit__stackpack__img {\n max-width: 50px;\n margin-right: var(--default-padding)\n}\n\n/* Report header */\n\n.lh-report-icon {\n display: flex;\n align-items: center;\n padding: 10px 12px;\n cursor: pointer;\n}\n.lh-report-icon[disabled] {\n opacity: 0.3;\n pointer-events: none;\n}\n\n.lh-report-icon::before {\n content: "";\n margin-right: 5px;\n background-repeat: no-repeat;\n width: var(--report-icon-size);\n height: var(--report-icon-size);\n opacity: 0.7;\n}\n.lh-report-icon:hover::before {\n opacity: 1;\n}\n.lh-dark .lh-report-icon::before {\n filter: invert(1);\n}\n.lh-report-icon--print::before {\n background-image: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"/><path fill="none" d="M0 0h24v24H0z"/></svg>\');\n}\n.lh-report-icon--copy::before {\n background-image: url(\'data:image/svg+xml;utf8,<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>\');\n}\n.lh-report-icon--open::before {\n background-image: url(\'data:image/svg+xml;utf8,<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm-7 6l-4 4h3v6h2v-6h3l-4-4z"/></svg>\');\n}\n.lh-report-icon--download::before {\n background-image: url(\'data:image/svg+xml;utf8,<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>\');\n}\n.lh-report-icon--dark::before {\n background-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 100 125"><path d="M50 23.587c-16.27 0-22.799 12.574-22.799 21.417 0 12.917 10.117 22.451 12.436 32.471h20.726c2.32-10.02 12.436-19.554 12.436-32.471 0-8.843-6.528-21.417-22.799-21.417zM39.637 87.161c0 3.001 1.18 4.181 4.181 4.181h.426l.41 1.231C45.278 94.449 46.042 95 48.019 95h3.963c1.978 0 2.74-.551 3.365-2.427l.409-1.231h.427c3.002 0 4.18-1.18 4.18-4.181V80.91H39.637v6.251zM50 18.265c1.26 0 2.072-.814 2.072-2.073v-9.12C52.072 5.813 51.26 5 50 5c-1.259 0-2.072.813-2.072 2.073v9.12c0 1.259.813 2.072 2.072 2.072zM68.313 23.727c.994.774 2.135.634 2.91-.357l5.614-7.187c.776-.992.636-2.135-.356-2.909-.992-.776-2.135-.636-2.91.357l-5.613 7.186c-.778.993-.636 2.135.355 2.91zM91.157 36.373c-.306-1.222-1.291-1.815-2.513-1.51l-8.85 2.207c-1.222.305-1.814 1.29-1.51 2.512.305 1.223 1.291 1.814 2.513 1.51l8.849-2.206c1.223-.305 1.816-1.291 1.511-2.513zM86.757 60.48l-8.331-3.709c-1.15-.512-2.225-.099-2.736 1.052-.512 1.151-.1 2.224 1.051 2.737l8.33 3.707c1.15.514 2.225.101 2.736-1.05.513-1.149.1-2.223-1.05-2.737zM28.779 23.37c.775.992 1.917 1.131 2.909.357.992-.776 1.132-1.917.357-2.91l-5.615-7.186c-.775-.992-1.917-1.132-2.909-.357s-1.131 1.917-.356 2.909l5.614 7.187zM21.715 39.583c.305-1.223-.288-2.208-1.51-2.513l-8.849-2.207c-1.222-.303-2.208.289-2.513 1.511-.303 1.222.288 2.207 1.511 2.512l8.848 2.206c1.222.304 2.208-.287 2.513-1.509zM21.575 56.771l-8.331 3.711c-1.151.511-1.563 1.586-1.05 2.735.511 1.151 1.586 1.563 2.736 1.052l8.331-3.711c1.151-.511 1.563-1.586 1.05-2.735-.512-1.15-1.585-1.562-2.736-1.052z"/></svg>\');\n}\n.lh-report-icon--treemap::before {\n background-image: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="black"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M3 5v14h19V5H3zm2 2h15v4H5V7zm0 10v-4h4v4H5zm6 0v-4h9v4h-9z"/></svg>\');\n}\n\n.lh-buttons {\n display: flex;\n flex-wrap: wrap;\n}\n.lh-button {\n margin: 10px;\n height: 30px;\n border: 1px solid var(--color-gray-600);\n border-radius: 4px;\n font-weight: bold;\n color: rgb(26, 115, 232);\n background-color: var(--report-background-color);\n}\n.lh-dark .lh-button {\n color: var(--color-blue-200);\n}\n\n/* Node */\n.lh-node__snippet {\n font-family: var(--report-font-family-monospace);\n color: var(--snippet-color);\n font-size: var(--report-monospace-font-size);\n line-height: 20px;\n}\n\n/* Score */\n\n.lh-audit__score-icon {\n width: var(--score-icon-size);\n height: var(--score-icon-size);\n margin: var(--score-icon-margin);\n}\n\n.lh-audit--pass .lh-audit__display-text {\n color: var(--color-pass-secondary);\n}\n.lh-audit--pass .lh-audit__score-icon,\n.lh-scorescale-range--pass::before {\n border-radius: 100%;\n background: var(--color-pass);\n}\n\n.lh-audit--average .lh-audit__display-text {\n color: var(--color-average-secondary);\n}\n.lh-audit--average .lh-audit__score-icon,\n.lh-scorescale-range--average::before {\n background: var(--color-average);\n width: var(--icon-square-size);\n height: var(--icon-square-size);\n}\n\n.lh-audit--fail .lh-audit__display-text {\n color: var(--color-fail-secondary);\n}\n.lh-audit--fail .lh-audit__score-icon,\n.lh-audit--error .lh-audit__score-icon,\n.lh-scorescale-range--fail::before {\n border-left: calc(var(--score-icon-size) / 2) solid transparent;\n border-right: calc(var(--score-icon-size) / 2) solid transparent;\n border-bottom: var(--score-icon-size) solid var(--color-fail);\n}\n\n.lh-audit--manual .lh-audit__display-text,\n.lh-audit--notapplicable .lh-audit__display-text {\n color: var(--color-gray-600);\n}\n.lh-audit--manual .lh-audit__score-icon,\n.lh-audit--notapplicable .lh-audit__score-icon {\n border: 2px solid var(--color-gray-400);\n border-radius: 100%;\n background: none;\n}\n\n.lh-audit--informative .lh-audit__display-text {\n color: var(--color-gray-600);\n}\n\n.lh-audit--informative .lh-audit__score-icon {\n border: 2px solid var(--color-gray-400);\n border-radius: 100%;\n}\n\n.lh-audit__description,\n.lh-audit__stackpack {\n color: var(--report-text-color-secondary);\n}\n.lh-audit__adorn {\n border: 1px solid slategray;\n border-radius: 3px;\n margin: 0 3px;\n padding: 0 2px;\n line-height: 1.1;\n display: inline-block;\n font-size: 90%;\n}\n\n.lh-category-header__description {\n font-size: var(--report-font-size);\n text-align: center;\n margin: 0px auto;\n max-width: 400px;\n}\n\n\n.lh-audit__display-text,\n.lh-load-opportunity__sparkline,\n.lh-chevron-container {\n margin: 0 var(--audit-margin-horizontal);\n}\n.lh-chevron-container {\n margin-right: 0;\n}\n\n.lh-audit__title-and-text {\n flex: 1;\n}\n\n.lh-audit__title-and-text code {\n color: var(--snippet-color);\n font-size: var(--report-monospace-font-size);\n}\n\n/* Prepend display text with em dash separator. But not in Opportunities. */\n.lh-audit__display-text:not(:empty):before {\n content: \'—\';\n margin-right: var(--audit-margin-horizontal);\n}\n.lh-audit-group.lh-audit-group--load-opportunities .lh-audit__display-text:not(:empty):before {\n display: none;\n}\n\n/* Expandable Details (Audit Groups, Audits) */\n.lh-audit__header {\n display: flex;\n align-items: center;\n font-weight: 500;\n padding: var(--audit-padding-vertical) 0;\n}\n\n.lh-audit--load-opportunity .lh-audit__header {\n display: block;\n}\n\n\n.lh-metricfilter {\n text-align: right;\n margin-top: var(--default-padding);\n}\n\n.lh-metricfilter__radio {\n position: absolute;\n left: -9999px;\n}\n.lh-metricfilter input[type=\'radio\']:focus-visible + label {\n outline: -webkit-focus-ring-color auto 1px;\n}\n\n.lh-metricfilter__label {\n border: solid 1px var(--color-gray-400);\n align-items: center;\n justify-content: center;\n padding: 2px 5px;\n width: 50%;\n height: 28px;\n cursor: pointer;\n font-size: 90%;\n}\n\n.lh-metricfilter__label:first-of-type {\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n margin-left: 5px;\n}\n.lh-metricfilter__label:last-of-type {\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n}\n\n.lh-metricfilter__label--active {\n background: var(--color-blue-A700);\n color: var(--color-white);\n}\n/* Give the \'All\' choice a more muted display */\n.lh-metricfilter__label--active[for="metric-All"] {\n background-color: var(--color-blue-200) !important;\n color: black !important;\n}\n\n/* If audits are filtered, hide the itemcount for Passed Audits… */\n.lh-category--filtered .lh-audit-group .lh-audit-group__itemcount {\n display: none;\n}\n\n\n.lh-audit__header:hover {\n background-color: var(--color-hover);\n}\n\n/* We want to hide the browser\'s default arrow marker on summary elements. Admittedly, it\'s complicated. */\n.lh-audit-group > summary,\n.lh-expandable-details > summary {\n /* Blink 89+ and Firefox will hide the arrow when display is changed from (new) default of `list-item` to block. https://chromestatus.com/feature/6730096436051968*/\n display: block;\n}\n/* Safari and Blink <=88 require using the -webkit-details-marker selector */\n.lh-audit-group > summary::-webkit-details-marker,\n.lh-expandable-details > summary::-webkit-details-marker {\n display: none;\n}\n\n/* Perf Metric */\n\n.lh-metrics-container {\n display: grid;\n grid-template-rows: 1fr 1fr 1fr;\n grid-auto-flow: column;\n grid-column-gap: 24px;\n}\n\n.lh-metric {\n border-top: 1px solid var(--report-border-color-secondary);\n}\n\n@media screen and (min-width: 640px) {\n .lh-metric:nth-child(3n+3) {\n border-bottom: 1px solid var(--report-border-color-secondary);\n }\n}\n\n@media screen and (max-width: 640px) {\n .lh-metrics-container {\n display: block;\n }\n\n .lh-metric:nth-last-child(-n+1) {\n border-bottom: 1px solid var(--report-border-color-secondary);\n }\n}\n\n.lh-metric__innerwrap {\n display: grid;\n /** \n * Icon -- Metric Name \n * -- Metric Value\n */\n grid-template-columns: calc(var(--score-icon-size) + var(--score-icon-margin-left) + var(--score-icon-margin-right)) 1fr;\n align-items: center;\n padding: 10px 0;\n}\n\n.lh-metric__details {\n order: -1;\n}\n\n.lh-metric__title {\n flex: 1;\n font-weight: 500;\n}\n\n.lh-metrics__disclaimer {\n color: var(--color-gray-600);\n margin: var(--section-padding-vertical) 0;\n}\n\n.lh-calclink {\n padding-left: calc(1ex / 3);\n}\n\n.lh-metric__description {\n display: none;\n grid-column-start: 2;\n grid-column-end: 4;\n color: var(--report-text-color-secondary);\n}\n\n.lh-metric__value {\n font-size: var(--metric-value-font-size);\n margin: calc(var(--default-padding) / 2) 0;\n white-space: nowrap; /* No wrapping between metric value and the icon */\n font-weight: 500;\n grid-column-start: 2;\n}\n\n/* Change the grid to 3 columns for narrow viewport. */\n@media screen and (max-width: 535px) {\n .lh-metric__innerwrap {\n /** \n * Icon -- Metric Name -- Metric Value\n */\n grid-template-columns: calc(var(--score-icon-size) + var(--score-icon-margin-left) + var(--score-icon-margin-right)) 2fr 1fr;\n }\n .lh-metric__value {\n justify-self: end;\n grid-column-start: unset;\n }\n}\n\n/* No-JS toggle switch */\n/* Keep this selector sync\'d w/ `magicSelector` in report-ui-features-test.js */\n .lh-metrics-toggle__input:checked ~ .lh-metrics-container .lh-metric__description {\n display: block;\n}\n\n.lh-metrics-toggle__input {\n cursor: pointer;\n opacity: 0;\n position: absolute;\n right: 0;\n width: 74px;\n height: 28px;\n top: -3px;\n}\n.lh-metrics-toggle__label {\n display: flex;\n background-color: #eee;\n border-radius: 20px;\n overflow: hidden;\n position: absolute;\n right: 0;\n top: -3px;\n pointer-events: none;\n}\n.lh-metrics-toggle__input:focus + label {\n outline: -webkit-focus-ring-color auto 3px;\n}\n.lh-metrics-toggle__icon {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 2px 5px;\n width: 50%;\n height: 28px;\n}\n.lh-metrics-toggle__input:not(:checked) + label .lh-metrics-toggle__icon--less,\n.lh-metrics-toggle__input:checked + label .lh-metrics-toggle__icon--more {\n background-color: var(--color-blue-A700);\n --metric-toggle-lines-fill: var(--color-white);\n}\n.lh-metrics-toggle__lines {\n fill: var(--metric-toggle-lines-fill);\n}\n\n.lh-metrics-toggle__label {\n background-color: var(--metrics-toggle-background-color);\n}\n\n.lh-metrics-toggle__label .lh-metrics-toggle__icon--less {\n padding-left: 8px;\n}\n.lh-metrics-toggle__label .lh-metrics-toggle__icon--more {\n padding-right: 8px;\n}\n\n/* Pushes the metric description toggle button to the right. */\n.lh-audit-group--metrics .lh-audit-group__header {\n display: flex;\n}\n.lh-audit-group--metrics .lh-audit-group__header span.lh-audit-group__title {\n flex: 1;\n}\n\n.lh-metric__icon,\n.lh-scorescale-range::before {\n content: \'\';\n width: var(--score-icon-size);\n height: var(--score-icon-size);\n display: inline-block;\n margin: var(--score-icon-margin);\n}\n\n.lh-metric--pass .lh-metric__value {\n color: var(--color-pass-secondary);\n}\n.lh-metric--pass .lh-metric__icon {\n border-radius: 100%;\n background: var(--color-pass);\n}\n\n.lh-metric--average .lh-metric__value {\n color: var(--color-average-secondary);\n}\n.lh-metric--average .lh-metric__icon {\n background: var(--color-average);\n width: var(--icon-square-size);\n height: var(--icon-square-size);\n}\n\n.lh-metric--fail .lh-metric__value {\n color: var(--color-fail-secondary);\n}\n.lh-metric--fail .lh-metric__icon,\n.lh-metric--error .lh-metric__icon {\n border-left: calc(var(--score-icon-size) / 2) solid transparent;\n border-right: calc(var(--score-icon-size) / 2) solid transparent;\n border-bottom: var(--score-icon-size) solid var(--color-fail);\n}\n\n.lh-metric--error .lh-metric__value,\n.lh-metric--error .lh-metric__description {\n color: var(--color-fail-secondary);\n}\n\n/* Perf load opportunity */\n\n.lh-load-opportunity__cols {\n display: flex;\n align-items: flex-start;\n}\n\n.lh-load-opportunity__header .lh-load-opportunity__col {\n color: var(--color-gray-600);\n display: unset;\n line-height: calc(2.3 * var(--report-font-size));\n}\n\n.lh-load-opportunity__col {\n display: flex;\n}\n\n.lh-load-opportunity__col--one {\n flex: 5;\n align-items: center;\n margin-right: 2px;\n}\n.lh-load-opportunity__col--two {\n flex: 4;\n text-align: right;\n}\n\n.lh-audit--load-opportunity .lh-audit__display-text {\n text-align: right;\n flex: 0 0 calc(3 * var(--report-font-size));\n}\n\n\n/* Sparkline */\n\n.lh-load-opportunity__sparkline {\n flex: 1;\n margin-top: calc((var(--report-line-height) - var(--sparkline-height)) / 2);\n}\n\n.lh-sparkline {\n height: var(--sparkline-height);\n width: 100%;\n}\n\n.lh-sparkline__bar {\n height: 100%;\n float: right;\n}\n\n.lh-audit--pass .lh-sparkline__bar {\n background: var(--color-pass);\n}\n\n.lh-audit--average .lh-sparkline__bar {\n background: var(--color-average);\n}\n\n.lh-audit--fail .lh-sparkline__bar {\n background: var(--color-fail);\n}\n\n/* Filmstrip */\n\n.lh-filmstrip-container {\n /* smaller gap between metrics and filmstrip */\n margin: -8px auto 0 auto;\n}\n\n.lh-filmstrip {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding-bottom: var(--default-padding);\n}\n\n.lh-filmstrip__frame {\n text-align: right;\n position: relative;\n}\n\n.lh-filmstrip__thumbnail {\n border: 1px solid var(--report-border-color-secondary);\n max-height: 100px;\n max-width: 60px;\n}\n\n@media screen and (max-width: 750px) {\n .lh-filmstrip {\n flex-wrap: wrap;\n }\n .lh-filmstrip__frame {\n width: 20%;\n margin-bottom: 5px;\n }\n .lh-filmstrip__thumbnail {\n display: block;\n margin: auto;\n }\n}\n\n/* Audit */\n\n.lh-audit {\n border-bottom: 1px solid var(--report-border-color-secondary);\n}\n\n/* Apply border-top to just the first audit. */\n.lh-audit {\n border-top: 1px solid var(--report-border-color-secondary);\n}\n.lh-audit ~ .lh-audit {\n border-top: none;\n}\n\n\n.lh-audit--error .lh-audit__display-text {\n color: var(--color-fail);\n}\n\n/* Audit Group */\n\n.lh-audit-group {\n margin-bottom: var(--audit-group-margin-bottom);\n position: relative;\n}\n\n.lh-audit-group__header::before {\n /* By default, groups don\'t get an icon */\n content: none;\n width: var(--pwa-icon-size);\n height: var(--pwa-icon-size);\n margin: var(--pwa-icon-margin);\n display: inline-block;\n vertical-align: middle;\n}\n\n/* Style the "over budget" columns red. */\n.lh-audit-group--budgets #performance-budget tbody tr td:nth-child(4),\n.lh-audit-group--budgets #performance-budget tbody tr td:nth-child(5),\n.lh-audit-group--budgets #timing-budget tbody tr td:nth-child(3) {\n color: var(--color-red-700);\n}\n\n/* Align the "over budget request count" text to be close to the "over budget bytes" column. */\n.lh-audit-group--budgets .lh-table tbody tr td:nth-child(4){\n text-align: right;\n}\n\n.lh-audit-group--budgets .lh-table {\n width: 100%;\n margin: 16px 0px 16px 0px;\n}\n\n.lh-audit-group--pwa-installable .lh-audit-group__header::before {\n content: \'\';\n background-image: var(--pwa-installable-gray-url);\n}\n.lh-audit-group--pwa-optimized .lh-audit-group__header::before {\n content: \'\';\n background-image: var(--pwa-optimized-gray-url);\n}\n.lh-audit-group--pwa-installable.lh-badged .lh-audit-group__header::before {\n background-image: var(--pwa-installable-color-url);\n}\n.lh-audit-group--pwa-optimized.lh-badged .lh-audit-group__header::before {\n background-image: var(--pwa-optimized-color-url);\n}\n\n.lh-audit-group--metrics .lh-audit-group__summary {\n margin-top: 0;\n margin-bottom: 0;\n}\n\n.lh-audit-group__summary {\n display: flex;\n justify-content: space-between;\n margin-top: calc(var(--category-padding) * 1.5);\n margin-bottom: var(--category-padding);\n}\n\n.lh-audit-group__itemcount {\n color: var(--color-gray-600);\n font-weight: bold;\n}\n.lh-audit-group__header .lh-chevron {\n margin-top: calc((var(--report-line-height) - 5px) / 2);\n}\n\n.lh-audit-group__header {\n font-size: var(--report-font-size);\n margin: 0 0 var(--audit-group-padding-vertical);\n /* When the header takes 100% width, the chevron becomes small. */\n max-width: calc(100% - var(--chevron-size));\n}\n/* max-width makes the metric toggle not flush. metrics doesn\'t have a chevron so unset. */\n.lh-audit-group--metrics .lh-audit-group__header {\n max-width: unset;\n}\n\n.lh-audit-group__header span.lh-audit-group__title {\n font-weight: bold;\n}\n\n.lh-audit-group__header span.lh-audit-group__itemcount {\n font-weight: bold;\n color: var(--color-gray-600);\n}\n\n.lh-audit-group__header span.lh-audit-group__description {\n font-weight: 500;\n color: var(--color-gray-600);\n}\n.lh-audit-group__header span.lh-audit-group__description::before {\n content: \'—\';\n margin: 0px var(--audit-margin-horizontal);\n}\n\n.lh-clump > .lh-audit-group__header,\n.lh-audit-group--diagnostics .lh-audit-group__header,\n.lh-audit-group--load-opportunities .lh-audit-group__header,\n.lh-audit-group--metrics .lh-audit-group__header,\n.lh-audit-group--pwa-installable .lh-audit-group__header,\n.lh-audit-group--pwa-optimized .lh-audit-group__header {\n margin-top: var(--audit-group-padding-vertical);\n}\n\n.lh-audit-explanation {\n margin: var(--audit-padding-vertical) 0 calc(var(--audit-padding-vertical) / 2) var(--audit-margin-horizontal);\n line-height: var(--audit-explanation-line-height);\n display: inline-block;\n}\n\n.lh-audit--fail .lh-audit-explanation {\n color: var(--color-fail);\n}\n\n/* Report */\n.lh-list > div:not(:last-child) {\n padding-bottom: 20px;\n}\n\n.lh-header-container {\n display: block;\n margin: 0 auto;\n position: relative;\n word-wrap: break-word;\n}\n\n.lh-report {\n min-width: var(--report-min-width);\n}\n\n.lh-exception {\n font-size: large;\n}\n\n.lh-code {\n white-space: normal;\n margin-top: 0;\n font-size: var(--report-monospace-font-size);\n}\n\n.lh-warnings {\n --item-margin: calc(var(--report-line-height) / 6);\n color: var(--color-average);\n margin: var(--audit-padding-vertical) 0;\n padding: calc(var(--audit-padding-vertical) / 2) calc(var(--audit-description-padding-left));\n}\n.lh-warnings span {\n font-weight: bold;\n}\n\n.lh-warnings--toplevel {\n --item-margin: calc(var(--header-line-height) / 4);\n color: var(--toplevel-warning-text-color);\n margin-left: auto;\n margin-right: auto;\n max-width: calc(var(--report-width) - var(--category-padding) * 2);\n background-color: var(--toplevel-warning-background-color);\n padding: var(--toplevel-warning-padding);\n border-radius: 8px;\n}\n\n.lh-warnings__msg {\n color: var(--toplevel-warning-message-text-color);\n margin: 0;\n}\n\n.lh-warnings ul {\n margin: 0;\n}\n.lh-warnings li {\n margin: var(--item-margin) 0;\n}\n.lh-warnings li:last-of-type {\n margin-bottom: 0;\n}\n\n.lh-scores-header {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n}\n.lh-scores-header__solo {\n padding: 0;\n border: 0;\n}\n\n/* Gauge */\n\n.lh-gauge__wrapper--pass {\n color: var(--color-pass);\n fill: var(--color-pass);\n stroke: var(--color-pass);\n}\n\n.lh-gauge__wrapper--average {\n color: var(--color-average);\n fill: var(--color-average);\n stroke: var(--color-average);\n}\n\n.lh-gauge__wrapper--fail {\n color: var(--color-fail);\n fill: var(--color-fail);\n stroke: var(--color-fail);\n}\n\n.lh-gauge__wrapper--not-applicable {\n color: var(--color-not-applicable);\n fill: var(--color-not-applicable);\n stroke: var(--color-not-applicable);\n}\n\n.lh-fraction__wrapper .lh-fraction__content::before {\n content: \'\';\n height: var(--score-icon-size);\n width: var(--score-icon-size);\n margin: var(--score-icon-margin);\n display: inline-block;\n}\n.lh-fraction__wrapper--pass .lh-fraction__content {\n color: var(--color-pass);\n}\n.lh-fraction__wrapper--pass .lh-fraction__background {\n background-color: var(--color-pass);\n}\n.lh-fraction__wrapper--pass .lh-fraction__content::before {\n background-color: var(--color-pass);\n border-radius: 50%;\n}\n.lh-fraction__wrapper--average .lh-fraction__content {\n color: var(--color-average);\n}\n.lh-fraction__wrapper--average .lh-fraction__background {\n background-color: var(--color-average);\n}\n.lh-fraction__wrapper--average .lh-fraction__content::before {\n background-color: var(--color-average);\n}\n.lh-fraction__wrapper--fail .lh-fraction__content {\n color: var(--color-fail);\n}\n.lh-fraction__wrapper--fail .lh-fraction__background {\n background-color: var(--color-fail);\n}\n.lh-fraction__wrapper--fail .lh-fraction__content::before {\n border-left: calc(var(--score-icon-size) / 2) solid transparent;\n border-right: calc(var(--score-icon-size) / 2) solid transparent;\n border-bottom: var(--score-icon-size) solid var(--color-fail);\n}\n.lh-fraction__wrapper--null .lh-fraction__content {\n color: var(--color-gray-700);\n}\n.lh-fraction__wrapper--null .lh-fraction__background {\n background-color: var(--color-gray-700);\n}\n.lh-fraction__wrapper--null .lh-fraction__content::before {\n border-radius: 50%;\n border: 2px solid var(--color-gray-700);\n}\n\n.lh-fraction__background {\n position: absolute;\n height: 100%;\n width: 100%;\n border-radius: calc(var(--gauge-circle-size) / 2);\n opacity: 0.1;\n z-index: -1;\n}\n\n.lh-fraction__content-wrapper {\n height: var(--gauge-circle-size);\n display: flex;\n align-items: center;\n}\n\n.lh-fraction__content {\n display: flex;\n position: relative;\n align-items: center;\n justify-content: center;\n font-size: var(--gauge-label-font-size);\n width: max-content;\n padding: 1em;\n min-width: 6em;\n}\n\n.lh-gauge {\n stroke-linecap: round;\n width: var(--gauge-circle-size);\n height: var(--gauge-circle-size);\n}\n\n.lh-category .lh-gauge {\n --gauge-circle-size: var(--gauge-circle-size-big);\n}\n\n.lh-gauge-base {\n opacity: 0.1;\n}\n\n.lh-gauge-arc {\n fill: none;\n transform-origin: 50% 50%;\n animation: load-gauge var(--transition-length) ease forwards;\n animation-delay: 250ms;\n}\n\n.lh-gauge__svg-wrapper {\n position: relative;\n height: var(--gauge-circle-size);\n}\n.lh-category .lh-gauge__svg-wrapper {\n --gauge-circle-size: var(--gauge-circle-size-big);\n}\n.lh-category .lh-fraction__wrapper {\n --gauge-circle-size: var(--gauge-circle-size-big);\n --score-icon-size: var(--score-icon-size-big)\n}\n\n/* The plugin badge overlay */\n.lh-gauge__wrapper--plugin .lh-gauge__svg-wrapper::before {\n width: var(--plugin-badge-size);\n height: var(--plugin-badge-size);\n background-color: var(--plugin-badge-background-color);\n background-image: var(--plugin-icon-url);\n background-repeat: no-repeat;\n background-size: var(--plugin-icon-size);\n background-position: 58% 50%;\n content: "";\n position: absolute;\n right: -6px;\n bottom: 0px;\n display: block;\n z-index: 100;\n box-shadow: 0 0 4px rgba(0,0,0,.2);\n border-radius: 25%;\n}\n.lh-category .lh-gauge__wrapper--plugin .lh-gauge__svg-wrapper::before {\n width: var(--plugin-badge-size-big);\n height: var(--plugin-badge-size-big);\n}\n\n@keyframes load-gauge {\n from { stroke-dasharray: 0 352; }\n}\n\n.lh-gauge__percentage {\n width: 100%;\n height: var(--gauge-circle-size);\n position: absolute;\n font-family: var(--report-font-family-monospace);\n font-size: calc(var(--gauge-circle-size) * 0.34 + 1.3px);\n line-height: 0;\n text-align: center;\n top: calc(var(--score-container-padding) + var(--gauge-circle-size) / 2);\n}\n\n.lh-category .lh-gauge__percentage {\n --gauge-circle-size: var(--gauge-circle-size-big);\n --gauge-percentage-font-size: var(--gauge-percentage-font-size-big);\n}\n\n.lh-gauge__wrapper,\n.lh-fraction__wrapper {\n position: relative;\n display: flex;\n align-items: center;\n flex-direction: column;\n text-decoration: none;\n padding: var(--score-container-padding);\n\n --transition-length: 1s;\n\n /* Contain the layout style paint & layers during animation*/\n contain: content;\n will-change: opacity; /* Only using for layer promotion */\n}\n\n.lh-gauge__label,\n.lh-fraction__label {\n font-size: var(--gauge-label-font-size);\n line-height: var(--gauge-label-line-height);\n margin-top: 10px;\n text-align: center;\n color: var(--report-text-color);\n}\n\n/* TODO(#8185) use more BEM (.lh-gauge__label--big) instead of relying on descendant selector */\n.lh-category .lh-gauge__label,\n.lh-category .lh-fraction__label {\n --gauge-label-font-size: var(--gauge-label-font-size-big);\n --gauge-label-line-height: var(--gauge-label-line-height-big);\n margin-top: 14px;\n}\n.lh-category .lh-fraction__content {\n --gauge-label-font-size: var(--gauge-label-font-size-big);\n}\n\n\n.lh-scores-header .lh-gauge__wrapper,\n.lh-scores-header .lh-fraction__wrapper,\n.lh-scores-header .lh-gauge--pwa__wrapper,\n.lh-sticky-header .lh-gauge__wrapper,\n.lh-sticky-header .lh-fraction__wrapper,\n.lh-sticky-header .lh-gauge--pwa__wrapper {\n width: var(--gauge-wrapper-width);\n}\n\n.lh-scorescale {\n display: inline-flex;\n margin: 12px auto 0 auto;\n border: 1px solid var(--color-gray-200);\n border-radius: 20px;\n padding: 8px 8px;\n}\n\n.lh-scorescale-range {\n display: flex;\n align-items: center;\n margin: 0 12px;\n font-family: var(--report-font-family-monospace);\n white-space: nowrap;\n}\n\n/* Hide category score gauages if it\'s a single category report */\n.lh-header--solo-category .lh-scores-wrapper {\n display: none;\n}\n\n\n.lh-categories {\n width: 100%;\n overflow: hidden;\n}\n\n.lh-category {\n padding: var(--category-padding);\n max-width: var(--report-width);\n margin: 0 auto;\n}\n\n.lh-category-wrapper {\n border-bottom: 1px solid var(--color-gray-200);\n}\n\n.lh-category-wrapper:first-of-type {\n border-top: 1px solid var(--color-gray-200);\n}\n\n/* section hash link jump should preserve fixed header\n https://css-tricks.com/hash-tag-links-padding/\n*/\n.lh-category > .lh-permalink {\n --sticky-header-height: calc(var(--gauge-circle-size) + var(--score-container-padding) * 2);\n --topbar-plus-header: calc(var(--topbar-height) + var(--sticky-header-height));\n margin-top: calc(var(--topbar-plus-header) * -1);\n padding-bottom: var(--topbar-plus-header);\n display: block;\n visibility: hidden;\n}\n\n.lh-category-header {\n font-size: var(--category-header-font-size);\n min-height: var(--gauge-circle-size);\n margin-bottom: var(--section-padding-vertical);\n}\n\n.lh-category-header .lh-score__gauge {\n max-width: 400px;\n width: auto;\n margin: 0px auto;\n}\n\n.lh-category-header .lh-audit__title {\n font-size: var(--category-header-font-size);\n line-height: var(--header-line-height);\n}\n\n#lh-log {\n position: fixed;\n background-color: #323232;\n color: #fff;\n min-height: 48px;\n min-width: 288px;\n padding: 16px 24px;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);\n border-radius: 2px;\n margin: 12px;\n font-size: 14px;\n cursor: default;\n transition: transform 0.3s, opacity 0.3s;\n transform: translateY(100px);\n opacity: 0;\n bottom: 0;\n left: 0;\n z-index: 3;\n}\n\n#lh-log.lh-show {\n opacity: 1;\n transform: translateY(0);\n}\n\n/* 964 fits the min-width of the filmstrip */\n@media screen and (max-width: 964px) {\n .lh-report {\n margin-left: 0;\n width: 100%;\n }\n}\n\n@media print {\n body {\n -webkit-print-color-adjust: exact; /* print background colors */\n }\n .lh-container {\n display: block;\n }\n .lh-report {\n margin-left: 0;\n padding-top: 0;\n }\n .lh-categories {\n margin-top: 0;\n }\n}\n\n.lh-table {\n border-collapse: collapse;\n /* Can\'t assign padding to table, so shorten the width instead. */\n width: calc(100% - var(--audit-description-padding-left));\n}\n\n.lh-table thead th {\n font-weight: normal;\n color: var(--color-gray-600);\n /* See text-wrapping comment on .lh-container. */\n word-break: normal;\n}\n\n.lh-row--odd {\n background-color: var(--table-higlight-background-color);\n}\n.lh-row--hidden {\n display: none;\n}\n\n.lh-table th,\n.lh-table td {\n padding: 8px 6px;\n}\n.lh-table th:first-child {\n padding-left: 0;\n}\n.lh-table th:last-child {\n padding-right: 0;\n}\n\n.lh-table tr {\n vertical-align: middle;\n}\n\n/* Looks unnecessary, but mostly for keeping the <th>s left-aligned */\n.lh-table-column--text,\n.lh-table-column--source-location,\n.lh-table-column--url,\n/* .lh-table-column--thumbnail, */\n/* .lh-table-column--empty,*/\n.lh-table-column--code,\n.lh-table-column--node {\n text-align: left;\n}\n\n.lh-table-column--code {\n min-width: 100px;\n}\n\n.lh-table-column--bytes,\n.lh-table-column--timespanMs,\n.lh-table-column--ms,\n.lh-table-column--numeric {\n text-align: right;\n word-break: normal;\n}\n\n\n\n.lh-table .lh-table-column--thumbnail {\n width: var(--image-preview-size);\n padding: 0;\n}\n\n.lh-table-column--url {\n min-width: 250px;\n}\n\n.lh-table-column--text {\n min-width: 80px;\n}\n\n/* Keep columns narrow if they follow the URL column */\n/* 12% was determined to be a decent narrow width, but wide enough for column headings */\n.lh-table-column--url + th.lh-table-column--bytes,\n.lh-table-column--url + .lh-table-column--bytes + th.lh-table-column--bytes,\n.lh-table-column--url + .lh-table-column--ms,\n.lh-table-column--url + .lh-table-column--ms + th.lh-table-column--bytes,\n.lh-table-column--url + .lh-table-column--bytes + th.lh-table-column--timespanMs {\n width: 12%;\n}\n\n.lh-text__url-host {\n display: inline;\n}\n\n.lh-text__url-host {\n margin-left: calc(var(--report-font-size) / 2);\n opacity: 0.6;\n font-size: 90%\n}\n\n.lh-thumbnail {\n object-fit: cover;\n width: var(--image-preview-size);\n height: var(--image-preview-size);\n display: block;\n}\n\n.lh-unknown pre {\n overflow: scroll;\n border: solid 1px var(--color-gray-200);\n}\n\n.lh-text__url > a {\n color: inherit;\n text-decoration: none;\n}\n\n.lh-text__url > a:hover {\n text-decoration: underline dotted #999;\n}\n\n.lh-sub-item-row {\n margin-left: 20px;\n margin-bottom: 0;\n color: var(--color-gray-700);\n}\n.lh-sub-item-row td {\n padding-top: 4px;\n padding-bottom: 4px;\n padding-left: 20px;\n}\n\n/* Chevron\n https://codepen.io/paulirish/pen/LmzEmK\n */\n.lh-chevron {\n --chevron-angle: 42deg;\n /* Edge doesn\'t support transform: rotate(calc(...)), so we define it here */\n --chevron-angle-right: -42deg;\n width: var(--chevron-size);\n height: var(--chevron-size);\n margin-top: calc((var(--report-line-height) - 12px) / 2);\n}\n\n.lh-chevron__lines {\n transition: transform 0.4s;\n transform: translateY(var(--report-line-height));\n}\n.lh-chevron__line {\n stroke: var(--chevron-line-stroke);\n stroke-width: var(--chevron-size);\n stroke-linecap: square;\n transform-origin: 50%;\n transform: rotate(var(--chevron-angle));\n transition: transform 300ms, stroke 300ms;\n}\n\n.lh-audit-group > summary > .lh-audit-group__summary > .lh-chevron .lh-chevron__line-right,\n.lh-audit-group[open] > summary > .lh-audit-group__summary > .lh-chevron .lh-chevron__line-left,\n.lh-audit > .lh-expandable-details .lh-chevron__line-right,\n.lh-audit > .lh-expandable-details[open] .lh-chevron__line-left {\n transform: rotate(var(--chevron-angle-right));\n}\n\n.lh-audit-group[open] > summary > .lh-audit-group__summary > .lh-chevron .lh-chevron__line-right,\n.lh-audit > .lh-expandable-details[open] .lh-chevron__line-right {\n transform: rotate(var(--chevron-angle));\n}\n\n.lh-audit-group[open] > summary > .lh-audit-group__summary > .lh-chevron .lh-chevron__lines,\n.lh-audit > .lh-expandable-details[open] .lh-chevron__lines {\n transform: translateY(calc(var(--chevron-size) * -1));\n}\n\n\n\n/* Tooltip */\n.lh-tooltip-boundary {\n position: relative;\n}\n\n.lh-tooltip {\n position: absolute;\n display: none; /* Don\'t retain these layers when not needed */\n opacity: 0;\n background: #ffffff;\n min-width: 246px;\n max-width: 275px;\n padding: 15px;\n border-radius: 5px;\n text-align: initial;\n}\n/* shrink tooltips to not be cutoff on left edge of narrow viewports\n 45vw is chosen to be ~= width of the left column of metrics\n*/\n@media screen and (max-width: 535px) {\n .lh-tooltip {\n min-width: 45vw;\n padding: 3vw;\n }\n}\n\n.lh-tooltip-boundary:hover {\n background-color: var(--color-hover);\n}\n\n.lh-tooltip-boundary:hover .lh-tooltip {\n display: block;\n animation: fadeInTooltip 250ms;\n animation-fill-mode: forwards;\n animation-delay: 850ms;\n bottom: 100%;\n z-index: 1;\n will-change: opacity;\n right: 0;\n pointer-events: none;\n}\n\n.lh-tooltip::before {\n content: "";\n border: solid transparent;\n border-bottom-color: #fff;\n border-width: 10px;\n position: absolute;\n bottom: -20px;\n right: 6px;\n transform: rotate(180deg);\n pointer-events: none;\n}\n\n@keyframes fadeInTooltip {\n 0% { opacity: 0; }\n 75% { opacity: 1; }\n 100% { opacity: 1; filter: drop-shadow(1px 0px 1px #aaa) drop-shadow(0px 2px 4px hsla(206, 6%, 25%, 0.15)); pointer-events: auto; }\n}\n\n/* Element screenshot */\n.lh-element-screenshot {\n position: relative;\n overflow: hidden;\n float: left;\n margin-right: 20px;\n}\n.lh-element-screenshot__content {\n overflow: hidden;\n}\n.lh-element-screenshot__image {\n /* Set by ElementScreenshotRenderer.installFullPageScreenshotCssVariable */\n background-image: var(--element-screenshot-url);\n outline: 2px solid #777;\n background-color: white;\n background-repeat: no-repeat;\n}\n.lh-element-screenshot__mask {\n position: absolute;\n background: #555;\n opacity: 0.8;\n}\n.lh-element-screenshot__element-marker {\n position: absolute;\n outline: 2px solid var(--color-lime-400);\n}\n.lh-element-screenshot__overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 2000; /* .lh-topbar is 1000 */\n background: var(--screenshot-overlay-background);\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: zoom-out;\n}\n\n.lh-element-screenshot__overlay .lh-element-screenshot {\n margin-right: 0; /* clearing margin used in thumbnail case */\n outline: 1px solid var(--color-gray-700);\n}\n\n.lh-screenshot-overlay--enabled .lh-element-screenshot {\n cursor: zoom-out;\n}\n.lh-screenshot-overlay--enabled .lh-node .lh-element-screenshot {\n cursor: zoom-in;\n}\n\n/*# sourceURL=report-styles.css */\n');
575
- el0.append(el1);
576
- return el0;
577
- }
578
-
579
570
  /**
580
571
  * @param {DOM} dom
581
572
  */
582
573
  function createTopbarComponent(dom) {
583
574
  const el0 = dom.document().createDocumentFragment();
584
575
  const el1 = dom.createElement('style');
585
- el1.append('\n .lh-topbar {\n position: sticky;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n display: flex;\n align-items: center;\n height: var(--topbar-height);\n background-color: var(--topbar-background-color);\n padding: var(--topbar-padding);\n }\n\n .lh-topbar__logo {\n width: var(--topbar-logo-size);\n height: var(--topbar-logo-size);\n user-select: none;\n flex: none;\n }\n\n .lh-topbar__url {\n margin: var(--topbar-padding);\n text-decoration: none;\n color: var(--report-text-color);\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n\n .lh-tools {\n display: flex;\n align-items: center;\n margin-left: auto;\n will-change: transform;\n min-width: var(--report-icon-size);\n }\n .lh-tools__button {\n width: var(--report-icon-size);\n min-width: 24px;\n height: var(--report-icon-size);\n cursor: pointer;\n margin-right: 5px;\n /* This is actually a button element, but we want to style it like a transparent div. */\n display: flex;\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n outline: inherit;\n }\n .lh-tools__button svg {\n fill: var(--tools-icon-color);\n }\n .lh-dark .lh-tools__button svg {\n filter: invert(1);\n }\n .lh-tools__button.lh-active + .lh-tools__dropdown {\n opacity: 1;\n clip: rect(-1px, 194px, 242px, -3px);\n visibility: visible;\n }\n .lh-tools__dropdown {\n position: absolute;\n background-color: var(--report-background-color);\n border: 1px solid var(--report-border-color);\n border-radius: 3px;\n padding: calc(var(--default-padding) / 2) 0;\n cursor: pointer;\n top: 36px;\n right: 0;\n box-shadow: 1px 1px 3px #ccc;\n min-width: 125px;\n clip: rect(0, 164px, 0, 0);\n visibility: hidden;\n opacity: 0;\n transition: all 200ms cubic-bezier(0,0,0.2,1);\n }\n .lh-tools__dropdown a {\n color: currentColor;\n text-decoration: none;\n white-space: nowrap;\n padding: 0 12px;\n line-height: 2;\n }\n .lh-tools__dropdown a:hover,\n .lh-tools__dropdown a:focus {\n background-color: var(--color-gray-200);\n outline: none;\n }\n /* save-gist option hidden in report. */\n .lh-tools__dropdown a[data-action=\'save-gist\'] {\n display: none;\n }\n\n .lh-locale-selector {\n width: 100%;\n color: var(--report-text-color);\n background-color: var(--locale-selector-background-color);\n padding: 2px;\n }\n .lh-tools-locale {\n display: flex;\n align-items: center;\n flex-direction: row-reverse;\n }\n .lh-tools-locale__selector-wrapper {\n transition: opacity 0.15s;\n opacity: 0;\n max-width: 200px;\n }\n .lh-button.lh-tool-locale__button {\n height: unset;\n color: var(--tools-icon-color);\n }\n .lh-tool-locale__button.lh-active + .lh-tools-locale__selector-wrapper {\n opacity: 1;\n clip: rect(-1px, 194px, 242px, -3px);\n visibility: visible;\n }\n\n @media screen and (max-width: 964px) {\n .lh-tools__dropdown {\n right: 0;\n left: initial;\n }\n }\n @media print {\n .lh-topbar {\n position: static;\n margin-left: 0;\n }\n\n .lh-tools__dropdown {\n display: none;\n }\n }\n ');
576
+ el1.append('\n .lh-topbar {\n position: sticky;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n display: flex;\n align-items: center;\n height: var(--topbar-height);\n background-color: var(--topbar-background-color);\n padding: var(--topbar-padding);\n }\n\n .lh-topbar__logo {\n width: var(--topbar-logo-size);\n height: var(--topbar-logo-size);\n user-select: none;\n flex: none;\n }\n\n .lh-topbar__url {\n margin: var(--topbar-padding);\n text-decoration: none;\n color: var(--report-text-color);\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n\n .lh-tools {\n margin-left: auto;\n will-change: transform;\n min-width: var(--report-icon-size);\n }\n .lh-tools__button {\n width: var(--report-icon-size);\n height: var(--report-icon-size);\n cursor: pointer;\n margin-right: 5px;\n /* This is actually a button element, but we want to style it like a transparent div. */\n display: flex;\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n outline: inherit;\n }\n .lh-tools__button svg {\n fill: var(--tools-icon-color);\n }\n .lh-dark .lh-tools__button svg {\n filter: invert(1);\n }\n .lh-tools__button.lh-active + .lh-tools__dropdown {\n opacity: 1;\n clip: rect(-1px, 194px, 242px, -3px);\n visibility: visible;\n }\n .lh-tools__dropdown {\n position: absolute;\n background-color: var(--report-background-color);\n border: 1px solid var(--report-border-color);\n border-radius: 3px;\n padding: calc(var(--default-padding) / 2) 0;\n cursor: pointer;\n top: 36px;\n right: 0;\n box-shadow: 1px 1px 3px #ccc;\n min-width: 125px;\n clip: rect(0, 164px, 0, 0);\n visibility: hidden;\n opacity: 0;\n transition: all 200ms cubic-bezier(0,0,0.2,1);\n }\n .lh-tools__dropdown a {\n color: currentColor;\n text-decoration: none;\n white-space: nowrap;\n padding: 0 12px;\n line-height: 2;\n }\n .lh-tools__dropdown a:hover,\n .lh-tools__dropdown a:focus {\n background-color: var(--color-gray-200);\n outline: none;\n }\n /* save-gist option hidden in report. */\n .lh-tools__dropdown a[data-action=\'save-gist\'] {\n display: none;\n }\n\n @media screen and (max-width: 964px) {\n .lh-tools__dropdown {\n right: 0;\n left: initial;\n }\n }\n @media print {\n .lh-topbar {\n position: static;\n margin-left: 0;\n }\n\n .lh-tools__dropdown {\n display: none;\n }\n }\n ');
586
577
  el0.append(el1);
587
578
  const el2 = dom.createElement('div', 'lh-topbar');
588
579
  const el3 = dom.createElementNS('http://www.w3.org/2000/svg', 'svg', 'lh-topbar__logo');
@@ -689,105 +680,78 @@ function createTopbarComponent(dom) {
689
680
  el25.setAttribute('target', '_blank');
690
681
  el25.setAttribute('rel', 'noopener');
691
682
  const el26 = dom.createElement('div', 'lh-tools');
692
- const el27 = dom.createElement('div', 'lh-tools-locale lh-hidden');
693
- const el28 = dom.createElement('button', 'lh-button lh-tool-locale__button');
694
- el28.setAttribute('id', 'lh-button__swap-locales');
695
- el28.setAttribute('title', 'Show Language Picker');
696
- el28.setAttribute('aria-label', 'Toggle language picker');
697
- el28.setAttribute('aria-haspopup', 'menu');
698
- el28.setAttribute('aria-expanded', 'false');
699
- el28.setAttribute('aria-controls', 'lh-tools-locale__selector-wrapper');
700
- const el29 = dom.createElementNS('http://www.w3.org/2000/svg', 'svg');
701
- el29.setAttribute('width', '20px');
702
- el29.setAttribute('height', '20px');
703
- el29.setAttribute('viewBox', '0 0 24 24');
704
- el29.setAttribute('fill', 'currentColor');
683
+ const el27 = dom.createElement('button', 'lh-tools__button');
684
+ el27.setAttribute('id', 'lh-tools-button');
685
+ el27.setAttribute('title', 'Tools menu');
686
+ el27.setAttribute('aria-label', 'Toggle report tools menu');
687
+ el27.setAttribute('aria-haspopup', 'menu');
688
+ el27.setAttribute('aria-expanded', 'false');
689
+ el27.setAttribute('aria-controls', 'lh-tools-dropdown');
690
+ const el28 = dom.createElementNS('http://www.w3.org/2000/svg', 'svg');
691
+ el28.setAttribute('width', '100%');
692
+ el28.setAttribute('height', '100%');
693
+ el28.setAttribute('viewBox', '0 0 24 24');
694
+ const el29 = dom.createElementNS('http://www.w3.org/2000/svg', 'path');
695
+ el29.setAttribute('d', 'M0 0h24v24H0z');
696
+ el29.setAttribute('fill', 'none');
705
697
  const el30 = dom.createElementNS('http://www.w3.org/2000/svg', 'path');
706
- el30.setAttribute('d', 'M0 0h24v24H0V0z');
707
- el30.setAttribute('fill', 'none');
708
- const el31 = dom.createElementNS('http://www.w3.org/2000/svg', 'path');
709
- el31.setAttribute('d', 'M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z');
710
- el29.append(el30, el31);
711
- el28.append(' ', el29, ' ');
712
- const el32 = dom.createElement('div', 'lh-tools-locale__selector-wrapper');
713
- el32.setAttribute('id', 'lh-tools-locale__selector-wrapper');
714
- el32.setAttribute('role', 'menu');
715
- el32.setAttribute('aria-labelledby', 'lh-button__swap-locales');
716
- el32.setAttribute('aria-hidden', 'true');
717
- el32.append(' ', ' ');
718
- el27.append(' ', el28, ' ', el32, ' ');
719
- const el33 = dom.createElement('button', 'lh-tools__button');
720
- el33.setAttribute('id', 'lh-tools-button');
721
- el33.setAttribute('title', 'Tools menu');
722
- el33.setAttribute('aria-label', 'Toggle report tools menu');
723
- el33.setAttribute('aria-haspopup', 'menu');
724
- el33.setAttribute('aria-expanded', 'false');
725
- el33.setAttribute('aria-controls', 'lh-tools-dropdown');
726
- const el34 = dom.createElementNS('http://www.w3.org/2000/svg', 'svg');
727
- el34.setAttribute('width', '100%');
728
- el34.setAttribute('height', '100%');
729
- el34.setAttribute('viewBox', '0 0 24 24');
730
- const el35 = dom.createElementNS('http://www.w3.org/2000/svg', 'path');
731
- el35.setAttribute('d', 'M0 0h24v24H0z');
732
- el35.setAttribute('fill', 'none');
733
- const el36 = dom.createElementNS('http://www.w3.org/2000/svg', 'path');
734
- el36.setAttribute('d', 'M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z');
735
- el34.append(' ', el35, ' ', el36, ' ');
736
- el33.append(' ', el34, ' ');
737
- const el37 = dom.createElement('div', 'lh-tools__dropdown');
738
- el37.setAttribute('id', 'lh-tools-dropdown');
739
- el37.setAttribute('role', 'menu');
740
- el37.setAttribute('aria-labelledby', 'lh-tools-button');
741
- const el38 = dom.createElement('a', 'lh-report-icon lh-report-icon--print');
698
+ el30.setAttribute('d', 'M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z');
699
+ el28.append(' ', el29, ' ', el30, ' ');
700
+ el27.append(' ', el28, ' ');
701
+ const el31 = dom.createElement('div', 'lh-tools__dropdown');
702
+ el31.setAttribute('id', 'lh-tools-dropdown');
703
+ el31.setAttribute('role', 'menu');
704
+ el31.setAttribute('aria-labelledby', 'lh-tools-button');
705
+ const el32 = dom.createElement('a', 'lh-report-icon lh-report-icon--print');
706
+ el32.setAttribute('role', 'menuitem');
707
+ el32.setAttribute('tabindex', '-1');
708
+ el32.setAttribute('href', '#');
709
+ el32.setAttribute('data-i18n', 'dropdownPrintSummary');
710
+ el32.setAttribute('data-action', 'print-summary');
711
+ const el33 = dom.createElement('a', 'lh-report-icon lh-report-icon--print');
712
+ el33.setAttribute('role', 'menuitem');
713
+ el33.setAttribute('tabindex', '-1');
714
+ el33.setAttribute('href', '#');
715
+ el33.setAttribute('data-i18n', 'dropdownPrintExpanded');
716
+ el33.setAttribute('data-action', 'print-expanded');
717
+ const el34 = dom.createElement('a', 'lh-report-icon lh-report-icon--copy');
718
+ el34.setAttribute('role', 'menuitem');
719
+ el34.setAttribute('tabindex', '-1');
720
+ el34.setAttribute('href', '#');
721
+ el34.setAttribute('data-i18n', 'dropdownCopyJSON');
722
+ el34.setAttribute('data-action', 'copy');
723
+ const el35 = dom.createElement('a', 'lh-report-icon lh-report-icon--download');
724
+ el35.setAttribute('role', 'menuitem');
725
+ el35.setAttribute('tabindex', '-1');
726
+ el35.setAttribute('href', '#');
727
+ el35.setAttribute('data-i18n', 'dropdownSaveHTML');
728
+ el35.setAttribute('data-action', 'save-html');
729
+ const el36 = dom.createElement('a', 'lh-report-icon lh-report-icon--download');
730
+ el36.setAttribute('role', 'menuitem');
731
+ el36.setAttribute('tabindex', '-1');
732
+ el36.setAttribute('href', '#');
733
+ el36.setAttribute('data-i18n', 'dropdownSaveJSON');
734
+ el36.setAttribute('data-action', 'save-json');
735
+ const el37 = dom.createElement('a', 'lh-report-icon lh-report-icon--open');
736
+ el37.setAttribute('role', 'menuitem');
737
+ el37.setAttribute('tabindex', '-1');
738
+ el37.setAttribute('href', '#');
739
+ el37.setAttribute('data-i18n', 'dropdownViewer');
740
+ el37.setAttribute('data-action', 'open-viewer');
741
+ const el38 = dom.createElement('a', 'lh-report-icon lh-report-icon--open');
742
742
  el38.setAttribute('role', 'menuitem');
743
743
  el38.setAttribute('tabindex', '-1');
744
744
  el38.setAttribute('href', '#');
745
- el38.setAttribute('data-i18n', 'dropdownPrintSummary');
746
- el38.setAttribute('data-action', 'print-summary');
747
- const el39 = dom.createElement('a', 'lh-report-icon lh-report-icon--print');
745
+ el38.setAttribute('data-i18n', 'dropdownSaveGist');
746
+ el38.setAttribute('data-action', 'save-gist');
747
+ const el39 = dom.createElement('a', 'lh-report-icon lh-report-icon--dark');
748
748
  el39.setAttribute('role', 'menuitem');
749
749
  el39.setAttribute('tabindex', '-1');
750
750
  el39.setAttribute('href', '#');
751
- el39.setAttribute('data-i18n', 'dropdownPrintExpanded');
752
- el39.setAttribute('data-action', 'print-expanded');
753
- const el40 = dom.createElement('a', 'lh-report-icon lh-report-icon--copy');
754
- el40.setAttribute('role', 'menuitem');
755
- el40.setAttribute('tabindex', '-1');
756
- el40.setAttribute('href', '#');
757
- el40.setAttribute('data-i18n', 'dropdownCopyJSON');
758
- el40.setAttribute('data-action', 'copy');
759
- const el41 = dom.createElement('a', 'lh-report-icon lh-report-icon--download');
760
- el41.setAttribute('role', 'menuitem');
761
- el41.setAttribute('tabindex', '-1');
762
- el41.setAttribute('href', '#');
763
- el41.setAttribute('data-i18n', 'dropdownSaveHTML');
764
- el41.setAttribute('data-action', 'save-html');
765
- const el42 = dom.createElement('a', 'lh-report-icon lh-report-icon--download');
766
- el42.setAttribute('role', 'menuitem');
767
- el42.setAttribute('tabindex', '-1');
768
- el42.setAttribute('href', '#');
769
- el42.setAttribute('data-i18n', 'dropdownSaveJSON');
770
- el42.setAttribute('data-action', 'save-json');
771
- const el43 = dom.createElement('a', 'lh-report-icon lh-report-icon--open');
772
- el43.setAttribute('role', 'menuitem');
773
- el43.setAttribute('tabindex', '-1');
774
- el43.setAttribute('href', '#');
775
- el43.setAttribute('data-i18n', 'dropdownViewer');
776
- el43.setAttribute('data-action', 'open-viewer');
777
- const el44 = dom.createElement('a', 'lh-report-icon lh-report-icon--open');
778
- el44.setAttribute('role', 'menuitem');
779
- el44.setAttribute('tabindex', '-1');
780
- el44.setAttribute('href', '#');
781
- el44.setAttribute('data-i18n', 'dropdownSaveGist');
782
- el44.setAttribute('data-action', 'save-gist');
783
- const el45 = dom.createElement('a', 'lh-report-icon lh-report-icon--dark');
784
- el45.setAttribute('role', 'menuitem');
785
- el45.setAttribute('tabindex', '-1');
786
- el45.setAttribute('href', '#');
787
- el45.setAttribute('data-i18n', 'dropdownDarkTheme');
788
- el45.setAttribute('data-action', 'toggle-dark');
789
- el37.append(' ', el38, ' ', el39, ' ', el40, ' ', el41, ' ', el42, ' ', el43, ' ', el44, ' ', el45, ' ');
790
- el26.append(' ', el27, ' ', el33, ' ', el37, ' ');
751
+ el39.setAttribute('data-i18n', 'dropdownDarkTheme');
752
+ el39.setAttribute('data-action', 'toggle-dark');
753
+ el31.append(' ', el32, ' ', el33, ' ', el34, ' ', el35, ' ', el36, ' ', el37, ' ', el38, ' ', el39, ' ');
754
+ el26.append(' ', el27, ' ', el31, ' ');
791
755
  el2.append(' ', ' ', el3, ' ', el25, ' ', el26, ' ');
792
756
  el0.append(el2);
793
757
  return el0;
@@ -807,7 +771,7 @@ function createWarningsToplevelComponent(dom) {
807
771
  }
808
772
 
809
773
 
810
- /** @typedef {'3pFilter'|'audit'|'categoryHeader'|'chevron'|'clump'|'crc'|'crcChain'|'elementScreenshot'|'envItem'|'footer'|'fraction'|'gauge'|'gaugePwa'|'heading'|'metric'|'metricsToggle'|'opportunity'|'opportunityHeader'|'scorescale'|'scoresWrapper'|'snippet'|'snippetContent'|'snippetHeader'|'snippetLine'|'styles'|'topbar'|'warningsToplevel'} ComponentName */
774
+ /** @typedef {'3pFilter'|'audit'|'categoryHeader'|'chevron'|'clump'|'crc'|'crcChain'|'elementScreenshot'|'envItem'|'footer'|'fraction'|'gauge'|'gaugePwa'|'heading'|'metric'|'metricsToggle'|'opportunity'|'opportunityHeader'|'scorescale'|'scoresWrapper'|'snippet'|'snippetContent'|'snippetHeader'|'snippetLine'|'topbar'|'warningsToplevel'} ComponentName */
811
775
  /**
812
776
  * @param {DOM} dom
813
777
  * @param {ComponentName} componentName
@@ -839,7 +803,6 @@ export function createComponent(dom, componentName) {
839
803
  case 'snippetContent': return createSnippetContentComponent(dom);
840
804
  case 'snippetHeader': return createSnippetHeaderComponent(dom);
841
805
  case 'snippetLine': return createSnippetLineComponent(dom);
842
- case 'styles': return createStylesComponent(dom);
843
806
  case 'topbar': return createTopbarComponent(dom);
844
807
  case 'warningsToplevel': return createWarningsToplevelComponent(dom);
845
808
  }
@@ -271,23 +271,4 @@ export class DOM {
271
271
  const event = new CustomEvent(name, detail ? {detail} : undefined);
272
272
  target.dispatchEvent(event);
273
273
  }
274
-
275
- /**
276
- * Downloads a file (blob) using a[download].
277
- * @param {Blob|File} blob The file to save.
278
- * @param {string} filename
279
- */
280
- saveFile(blob, filename) {
281
- const ext = blob.type.match('json') ? '.json' : '.html';
282
-
283
- const a = this.createElement('a');
284
- a.download = `${filename}${ext}`;
285
- this.safelySetBlobHref(a, blob);
286
- this._document.body.appendChild(a); // Firefox requires anchor to be in the DOM.
287
- a.click();
288
-
289
- // cleanup.
290
- this._document.body.removeChild(a);
291
- setTimeout(() => URL.revokeObjectURL(a.href), 500);
292
- }
293
274
  }