lighthouse 13.5.0-dev.20261023 → 13.6.0-dev.20261027

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 (99) hide show
  1. package/.agents/skills/update-ard-port/SKILL.md +4 -3
  2. package/cli/printer.js +5 -8
  3. package/core/audits/accessibility/accesskeys.js +1 -1
  4. package/core/audits/accessibility/aria-allowed-attr.js +1 -1
  5. package/core/audits/accessibility/aria-allowed-role.js +1 -1
  6. package/core/audits/accessibility/aria-command-name.js +1 -1
  7. package/core/audits/accessibility/aria-conditional-attr.js +1 -1
  8. package/core/audits/accessibility/aria-deprecated-role.js +1 -1
  9. package/core/audits/accessibility/aria-dialog-name.js +1 -1
  10. package/core/audits/accessibility/aria-hidden-body.js +1 -1
  11. package/core/audits/accessibility/aria-hidden-focus.js +1 -1
  12. package/core/audits/accessibility/aria-input-field-name.js +1 -1
  13. package/core/audits/accessibility/aria-meter-name.js +1 -1
  14. package/core/audits/accessibility/aria-progressbar-name.js +1 -1
  15. package/core/audits/accessibility/aria-prohibited-attr.js +1 -1
  16. package/core/audits/accessibility/aria-required-attr.js +1 -1
  17. package/core/audits/accessibility/aria-required-children.js +1 -1
  18. package/core/audits/accessibility/aria-required-parent.js +1 -1
  19. package/core/audits/accessibility/aria-roles.js +1 -1
  20. package/core/audits/accessibility/aria-text.js +1 -1
  21. package/core/audits/accessibility/aria-toggle-field-name.js +1 -1
  22. package/core/audits/accessibility/aria-tooltip-name.js +1 -1
  23. package/core/audits/accessibility/aria-treeitem-name.js +1 -1
  24. package/core/audits/accessibility/aria-valid-attr-value.js +1 -1
  25. package/core/audits/accessibility/aria-valid-attr.js +1 -1
  26. package/core/audits/accessibility/autocomplete-valid.js +1 -1
  27. package/core/audits/accessibility/button-name.js +1 -1
  28. package/core/audits/accessibility/bypass.js +1 -1
  29. package/core/audits/accessibility/color-contrast.js +1 -1
  30. package/core/audits/accessibility/definition-list.js +1 -1
  31. package/core/audits/accessibility/dlitem.js +1 -1
  32. package/core/audits/accessibility/document-title.js +1 -1
  33. package/core/audits/accessibility/duplicate-id-aria.js +1 -1
  34. package/core/audits/accessibility/empty-heading.js +1 -1
  35. package/core/audits/accessibility/form-field-multiple-labels.js +1 -1
  36. package/core/audits/accessibility/frame-title.js +1 -1
  37. package/core/audits/accessibility/heading-order.js +1 -1
  38. package/core/audits/accessibility/html-has-lang.js +1 -1
  39. package/core/audits/accessibility/html-lang-valid.js +1 -1
  40. package/core/audits/accessibility/html-xml-lang-mismatch.js +1 -1
  41. package/core/audits/accessibility/identical-links-same-purpose.js +1 -1
  42. package/core/audits/accessibility/image-alt.js +1 -1
  43. package/core/audits/accessibility/image-redundant-alt.js +1 -1
  44. package/core/audits/accessibility/input-button-name.js +1 -1
  45. package/core/audits/accessibility/input-image-alt.js +1 -1
  46. package/core/audits/accessibility/label-content-name-mismatch.js +1 -1
  47. package/core/audits/accessibility/label.js +1 -1
  48. package/core/audits/accessibility/landmark-one-main.js +1 -1
  49. package/core/audits/accessibility/link-in-text-block.js +1 -1
  50. package/core/audits/accessibility/link-name.js +1 -1
  51. package/core/audits/accessibility/list.js +1 -1
  52. package/core/audits/accessibility/listitem.js +1 -1
  53. package/core/audits/accessibility/meta-refresh.js +1 -1
  54. package/core/audits/accessibility/meta-viewport.js +1 -1
  55. package/core/audits/accessibility/object-alt.js +1 -1
  56. package/core/audits/accessibility/presentation-role-conflict.js +1 -1
  57. package/core/audits/accessibility/select-name.js +1 -1
  58. package/core/audits/accessibility/skip-link.js +1 -1
  59. package/core/audits/accessibility/svg-img-alt.js +1 -1
  60. package/core/audits/accessibility/tabindex.js +1 -1
  61. package/core/audits/accessibility/table-duplicate-name.js +1 -1
  62. package/core/audits/accessibility/table-fake-caption.js +1 -1
  63. package/core/audits/accessibility/target-size.js +1 -1
  64. package/core/audits/accessibility/td-has-header.js +1 -1
  65. package/core/audits/accessibility/td-headers-attr.js +1 -1
  66. package/core/audits/accessibility/th-has-data-cells.js +1 -1
  67. package/core/audits/accessibility/valid-lang.js +1 -1
  68. package/core/audits/accessibility/video-caption.js +1 -1
  69. package/core/audits/baseline.d.ts +5 -4
  70. package/core/lib/baseline/web-features-data.json +6 -4
  71. package/core/lib/baseline/web-features-metadata.json +1 -1
  72. package/core/lib/bf-cache-strings.js +188 -204
  73. package/core/lib/deprecations-strings.d.ts +43 -46
  74. package/core/lib/deprecations-strings.js +12 -14
  75. package/core/runner.js +6 -0
  76. package/dist/report/bundle.esm.js +10 -10
  77. package/dist/report/flow.js +4 -4
  78. package/dist/report/standalone.js +5 -5
  79. package/flow-report/src/common.tsx +5 -2
  80. package/flow-report/src/i18n/i18n.d.ts +2 -0
  81. package/flow-report/src/summary/summary.tsx +9 -1
  82. package/package.json +9 -9
  83. package/report/renderer/category-renderer.js +2 -2
  84. package/report/renderer/details-renderer.js +3 -2
  85. package/report/renderer/dom.d.ts +8 -2
  86. package/report/renderer/dom.js +29 -1
  87. package/report/renderer/element-screenshot-renderer.js +3 -0
  88. package/report/renderer/performance-category-renderer.js +1 -0
  89. package/report/renderer/report-renderer.js +4 -0
  90. package/report/renderer/report-utils.d.ts +1 -0
  91. package/report/renderer/report-utils.js +2 -0
  92. package/shared/localization/locales/en-US.json +69 -66
  93. package/shared/localization/locales/en-XL.json +69 -66
  94. package/third-party/ard/README.md +3 -3
  95. package/third-party/ard/ard-test.js +8 -2
  96. package/third-party/ard/ard.d.ts +1 -0
  97. package/third-party/ard/ard.js +8 -2
  98. package/third-party/ard/schema-validator.js +1 -1
  99. package/third-party/ard/spec/schemas/ard-entry.schema.json +1 -1
@@ -1,6 +1,6 @@
1
- "use strict";(()=>{var Ke,E,dn,pi,ie,un,hn,gn,Ct,Ve,ke,fn,kt,wt,xt,vn,We={},Je=[],ui=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Xe=Array.isArray;function ee(t,e){for(var n in e)t[n]=e[n];return t}function Pt(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function At(t,e,n){var a,i,o,r={};for(o in e)o=="key"?a=e[o]:o=="ref"?i=e[o]:r[o]=e[o];if(arguments.length>2&&(r.children=arguments.length>3?Ke.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(o in t.defaultProps)r[o]===void 0&&(r[o]=t.defaultProps[o]);return $e(t,r,a,i,null)}function $e(t,e,n,a,i){var o={type:t,props:e,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++dn,__i:-1,__u:0};return i==null&&E.vnode!=null&&E.vnode(o),o}function M(t){return t.children}function qe(t,e){this.props=t,this.context=e}function ce(t,e){if(e==null)return t.__?ce(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?ce(t):null}function ci(t){if(t.__P&&t.__d){var e=t.__v,n=e.__e,a=[],i=[],o=ee({},e);o.__v=e.__v+1,E.vnode&&E.vnode(o),Lt(t.__P,o,e,t.__n,t.__P.namespaceURI,32&e.__u?[n]:null,a,n??ce(e),!!(32&e.__u),i),o.__v=e.__v,o.__.__k[o.__i]=o,wn(a,o,i),e.__e=e.__=null,o.__e!=n&&bn(o)}}function bn(t){if((t=t.__)!=null&&t.__c!=null)return t.__e=t.__c.base=null,t.__k.some(function(e){if(e!=null&&e.__e!=null)return t.__e=t.__c.base=e.__e}),bn(t)}function St(t){(!t.__d&&(t.__d=!0)&&ie.push(t)&&!Ze.__r++||un!=E.debounceRendering)&&((un=E.debounceRendering)||hn)(Ze)}function Ze(){try{for(var t,e=1;ie.length;)ie.length>e&&ie.sort(gn),t=ie.shift(),e=ie.length,ci(t)}finally{ie.length=Ze.__r=0}}function yn(t,e,n,a,i,o,r,s,p,l,m){var d,u,h,b,C,v,g=a&&a.__k||Je,f=e.length;for(p=mi(n,e,g,p,f),d=0;d<f;d++)(h=n.__k[d])!=null&&(u=h.__i!=-1&&g[h.__i]||We,h.__i=d,v=Lt(t,h,u,i,o,r,s,p,l,m),b=h.__e,h.ref&&u.ref!=h.ref&&(u.ref&&Et(u.ref,null,h),m.push(h.ref,h.__c||b,h)),C==null&&b!=null&&(C=b),4&h.__u?(p=_n(h,p,t),u.__e&&(u.__e=null)):typeof h.type=="function"&&v!==void 0?p=v:b&&(p=b.nextSibling),h.__u&=-7);return n.__e=C,p}function mi(t,e,n,a,i){var o,r,s,p,l,m=n.length,d=m,u=0;for(t.__k=new Array(i),o=0;o<i;o++)(r=e[o])!=null&&typeof r!="boolean"&&typeof r!="function"?(typeof r=="string"||typeof r=="number"||typeof r=="bigint"||r.constructor==String?r=t.__k[o]=$e(null,r,null,null,null):Xe(r)?r=t.__k[o]=$e(M,{children:r},null,null,null):r.constructor===void 0&&r.__b>0?r=t.__k[o]=$e(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):t.__k[o]=r,p=o+u,r.__=t,r.__b=t.__b+1,s=null,(l=r.__i=di(r,n,p,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>m?u--:i<m&&u++),typeof r.type!="function"&&(r.__u|=4)):l!=p&&(l==p-1?u--:l==p+1?u++:(l>p?u--:u++,r.__u|=4))):t.__k[o]=null;if(d)for(o=0;o<m;o++)(s=n[o])!=null&&(2&s.__u)==0&&(s.__e==a&&(a=ce(s)),Sn(s,s));return a}function _n(t,e,n){var a,i;if(typeof t.type=="function"){for(a=t.__k,i=0;a&&i<a.length;i++)a[i]&&(a[i].__=t,e=_n(a[i],e,n));return e}t.__e!=e&&(e&&t.type&&!e.parentNode&&(e=ce(t)),e=n.insertBefore(t.__e,e||null));do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function di(t,e,n,a){var i,o,r,s=t.key,p=t.type,l=e[n],m=l!=null&&(2&l.__u)==0;if(l===null&&s==null||m&&s==l.key&&p==l.type)return n;if(a>(m?1:0)){for(i=n-1,o=n+1;i>=0||o<e.length;)if((l=e[r=i>=0?i--:o++])!=null&&(2&l.__u)==0&&s==l.key&&p==l.type)return r}return-1}function cn(t,e,n){e[0]=="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||ui.test(e)?n:n+"px"}function Ge(t,e,n,a,i){var o,r;e:if(e=="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof a=="string"&&(t.style.cssText=a=""),a)for(e in a)n&&e in n||cn(t.style,e,"");if(n)for(e in n)a&&n[e]==a[e]||cn(t.style,e,n[e])}else if(e[0]=="o"&&e[1]=="n")o=e!=(e=e.replace(fn,"$1")),r=e.toLowerCase(),e=r in t||e=="onFocusOut"||e=="onFocusIn"?r.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?a?n[ke]=a[ke]:(n[ke]=kt,t.addEventListener(e,o?xt:wt,o)):t.removeEventListener(e,o?xt:wt,o);else{if(i=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&n==1?"":n))}}function mn(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e[Ve]==null)e[Ve]=kt++;else if(e[Ve]<n[ke])return;return n(E.event?E.event(e):e)}}}function Lt(t,e,n,a,i,o,r,s,p,l){var m,d,u,h,b,C,v,g,f,_,w,k,I,D,j,W,z=e.type;if(e.constructor!==void 0)return null;128&n.__u&&(p=!!(32&n.__u),o=[s=e.__e=n.__e]),(m=E.__b)&&m(e);e:if(typeof z=="function"){d=r.length;try{if(f=e.props,_=z.prototype&&z.prototype.render,w=(m=z.contextType)&&a[m.__c],k=m?w?w.props.value:m.__:a,n.__c?g=(u=e.__c=n.__c).__=u.__E:(_?e.__c=u=new z(f,k):(e.__c=u=new qe(f,k),u.constructor=z,u.render=gi),w&&w.sub(u),u.state||(u.state={}),u.__n=a,h=u.__d=!0,u.__h=[],u._sb=[]),_&&u.__s==null&&(u.__s=u.state),_&&z.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=ee({},u.__s)),ee(u.__s,z.getDerivedStateFromProps(f,u.__s))),b=u.props,C=u.state,u.__v=e,h)_&&z.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),_&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(_&&z.getDerivedStateFromProps==null&&f!==b&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(f,k),e.__v==n.__v||!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(f,u.__s,k)===!1){e.__v!=n.__v&&(u.props=f,u.state=u.__s,u.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(B){B&&(B.__=e)}),Je.push.apply(u.__h,u._sb),u._sb=[],u.__h.length&&r.push(u),s=ce(n);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(f,u.__s,k),_&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(b,C,v)})}if(u.context=k,u.props=f,u.__P=t,u.__e=!1,I=E.__r,D=0,_)u.state=u.__s,u.__d=!1,I&&I(e),m=u.render(u.props,u.state,u.context),Je.push.apply(u.__h,u._sb),u._sb=[];else do u.__d=!1,I&&I(e),m=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++D<25);u.state=u.__s,u.getChildContext!=null&&(a=ee(ee({},a),u.getChildContext())),_&&!h&&u.getSnapshotBeforeUpdate!=null&&(v=u.getSnapshotBeforeUpdate(b,C)),j=m!=null&&m.type===M&&m.key==null?xn(m.props.children):m,s=yn(t,Xe(j)?j:[j],e,n,a,i,o,r,s,p,l),u.base=e.__e,e.__u&=-161,u.__h.length&&r.push(u),g&&(u.__E=u.__=null)}catch(B){if(r.length=d,e.__v=null,p||o!=null){if(B.then){for(e.__u|=p?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o!=null&&(o[o.indexOf(s)]=null),e.__e=s}else if(o!=null)for(W=o.length;W--;)Pt(o[W])}else e.__e=n.__e;e.__k==null&&(e.__k=n.__k||[]),B.then||Cn(e),E.__e(B,e,n)}}else o==null&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):s=e.__e=hi(n.__e,e,n,a,i,o,r,p,l);return(m=E.diffed)&&m(e),128&e.__u?void 0:s}function Cn(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(Cn))}function wn(t,e,n){for(var a=0;a<n.length;a++)Et(n[a],n[++a],n[++a]);E.__c&&E.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(o){o.call(i)})}catch(o){E.__e(o,i.__v)}})}function xn(t){return typeof t!="object"||t==null||t.__b>0?t:Xe(t)?t.map(xn):t.constructor!==void 0?null:ee({},t)}function hi(t,e,n,a,i,o,r,s,p){var l,m,d,u,h,b,C,v=n.props||We,g=e.props,f=e.type;if(f=="svg"?i="http://www.w3.org/2000/svg":f=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(l=0;l<o.length;l++)if((h=o[l])&&"setAttribute"in h==!!f&&(f?h.localName==f:h.nodeType==3)){t=h,o[l]=null;break}}if(t==null){if(f==null)return document.createTextNode(g);t=document.createElementNS(i,f,g.is&&g),s&&(E.__m&&E.__m(e,o),s=!1),o=null}if(f==null)v===g||s&&t.data==g||(t.data=g);else{if(o=f=="textarea"&&g.defaultValue!=null?null:o&&Ke.call(t.childNodes),!s&&o!=null)for(v={},l=0;l<t.attributes.length;l++)v[(h=t.attributes[l]).name]=h.value;for(l in v)h=v[l],l=="dangerouslySetInnerHTML"?d=h:l=="children"||l in g||l=="value"&&"defaultValue"in g||l=="checked"&&"defaultChecked"in g||Ge(t,l,null,h,i);for(l in g)h=g[l],l=="children"?u=h:l=="dangerouslySetInnerHTML"?m=h:l=="value"?b=h:l=="checked"?C=h:s&&typeof h!="function"||v[l]===h||Ge(t,l,h,v[l],i);if(m)s||d&&(m.__html==d.__html||m.__html==t.innerHTML)||(t.innerHTML=m.__html),e.__k=[];else if(d&&(t.innerHTML=""),yn(e.type=="template"?t.content:t,Xe(u)?u:[u],e,n,a,f=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,r,o?o[0]:n.__k&&ce(n,0),s,p),o!=null)for(l=o.length;l--;)Pt(o[l]);s&&f!="textarea"||(l="value",f=="progress"&&b==null?t.removeAttribute("value"):b!=null&&(b!==t[l]||f=="progress"&&!b||f=="option"&&b!=v[l])&&Ge(t,l,b,v[l],i),l="checked",C!=null&&C!=t[l]&&Ge(t,l,C,v[l],i))}return t}function Et(t,e,n){try{if(typeof t=="function"){var a=typeof t.__u=="function";a&&t.__u(),a&&e==null||(t.__u=t(e))}else t.current=e}catch(i){E.__e(i,n)}}function Sn(t,e,n){var a,i;if(E.unmount&&E.unmount(t),(a=t.ref)&&(a.current&&a.current!=t.__e||Et(a,null,e)),(a=t.__c)!=null){if(a.componentWillUnmount)try{a.componentWillUnmount()}catch(o){E.__e(o,e)}a.base=a.__P=a.__n=null}if(a=t.__k)for(i=0;i<a.length;i++)a[i]&&Sn(a[i],e,n||typeof t.type!="function");n||Pt(t.__e),t.__c=t.__=t.__e=void 0}function gi(t,e,n){return this.constructor(t,n)}function kn(t,e,n){var a,i,o,r;e==document&&(e=document.documentElement),E.__&&E.__(t,e),i=(a=typeof n=="function")?null:n&&n.__k||e.__k,o=[],r=[],Lt(e,t=(!a&&n||e).__k=At(M,null,[t]),i||We,We,e.namespaceURI,!a&&n?[n]:i?null:e.firstChild?Ke.call(e.childNodes):null,o,!a&&n?n:i?i.__e:e.firstChild,a,r),wn(o,t,r),t.props.children=null}function Pe(t){function e(n){var a,i;return this.getChildContext||(a=new Set,(i={})[e.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){a=null},this.shouldComponentUpdate=function(o){this.props.value!=o.value&&a.forEach(function(r){r.__e=!0,St(r)})},this.sub=function(o){a.add(o);var r=o.componentWillUnmount;o.componentWillUnmount=function(){a&&a.delete(o),r&&r.call(o)}}),n.children}return e.__c="__cC"+vn++,e.__=t,e.Provider=e.__l=(e.Consumer=function(n,a){return n.children(a)}).contextType=e,e}Ke=Je.slice,E={__e:function(t,e,n,a){for(var i,o,r;e=e.__;)if((i=e.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(t)),r=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,a||{}),r=i.__d),r)return i.__E=i}catch(s){t=s}throw t}},dn=0,pi=function(t){return t!=null&&t.constructor===void 0},qe.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=ee({},this.state),typeof t=="function"&&(t=t(ee({},n),this.props)),t&&ee(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),St(this))},qe.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),St(this))},qe.prototype.render=M,ie=[],hn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,gn=function(t,e){return t.__v.__b-e.__v.__b},Ze.__r=0,Ct=Math.random().toString(8),Ve="__d"+Ct,ke="__a"+Ct,fn=/(PointerCapture)$|Capture$/i,kt=0,wt=mn(!1),xt=mn(!0),vn=0;var me,T,It,Pn,Qe=0,Rn=[],R=E,An=R.__b,Ln=R.__r,En=R.diffed,In=R.__c,Un=R.unmount,Tn=R.__;function Ae(t,e){R.__h&&R.__h(T,t,Qe||e),Qe=0;var n=T.__H||(T.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function oe(t){return Qe=1,fi(Dn,t)}function fi(t,e,n){var a=Ae(me++,2);if(a.t=t,!a.__c&&(a.__=[n?n(e):Dn(void 0,e),function(s){var p=a.__N?a.__N[0]:a.__[0],l=a.t(p,s);p!==l&&(a.__N=[l,a.__[1]],a.__c.setState({}))}],a.__c=T,!T.__f)){var i=function(s,p,l){if(!a.__c.__H)return!0;var m=!1,d=a.__c.props!==s;if(a.__c.__H.__.some(function(h){if(h.__N){m=!0;var b=h.__[0];h.__=h.__N,h.__N=void 0,b!==h.__[0]&&(d=!0)}}),o){var u=o.call(this,s,p,l);return m?u||d:u}return!m||d};T.__f=!0;var o=T.shouldComponentUpdate,r=T.componentWillUpdate;T.componentWillUpdate=function(s,p,l){if(this.__e){var m=o;o=void 0,i(s,p,l),o=m}r&&r.call(this,s,p,l)},T.shouldComponentUpdate=i}return a.__N||a.__}function et(t,e){var n=Ae(me++,3);!R.__s&&Tt(n.__H,e)&&(n.__=t,n.u=e,T.__H.__h.push(n))}function tt(t,e){var n=Ae(me++,4);!R.__s&&Tt(n.__H,e)&&(n.__=t,n.u=e,T.__h.push(n))}function nt(t){return Qe=5,te(function(){return{current:t}},[])}function te(t,e){var n=Ae(me++,7);return Tt(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function Le(t){var e=T.context[t.__c],n=Ae(me++,9);return n.c=t,e?(n.__==null&&(n.__=!0,e.sub(T)),e.props.value):t.__}function vi(){for(var t;t=Rn.shift();){var e=t.__H;if(t.__P&&e)try{e.__h.some(Ye),e.__h.some(Ut),e.__h=[]}catch(n){e.__h=[],R.__e(n,t.__v)}}}R.__b=function(t){T=null,An&&An(t)},R.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Tn&&Tn(t,e)},R.__r=function(t){Ln&&Ln(t),me=0;var e=(T=t.__c).__H;e&&(It===T?(e.__h=[],T.__h=[],e.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(e.__h.some(Ye),e.__h.some(Ut),e.__h=[],me=0)),It=T},R.diffed=function(t){En&&En(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Rn.push(e)!==1&&Pn===R.requestAnimationFrame||((Pn=R.requestAnimationFrame)||bi)(vi)),e.__H.__.some(function(n){n.u&&(n.__H=n.u,n.u=void 0)})),It=T=null},R.__c=function(t,e){e.some(function(n){try{n.__h.some(Ye),n.__h=n.__h.filter(function(a){return!a.__||Ut(a)})}catch(a){e.some(function(i){i.__h&&(i.__h=[])}),e=[],R.__e(a,n.__v)}}),In&&In(t,e)},R.unmount=function(t){Un&&Un(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.some(function(a){try{Ye(a)}catch(i){e=i}}),n.__H=void 0,e&&R.__e(e,n.__v))};var Nn=typeof requestAnimationFrame=="function";function bi(t){var e,n=function(){clearTimeout(a),Nn&&cancelAnimationFrame(e),setTimeout(t)},a=setTimeout(n,35);Nn&&(e=requestAnimationFrame(n))}function Ye(t){var e=T,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),T=e}function Ut(t){var e=T;t.__c=t.__(),T=e}function Tt(t,e){return!t||t.length!==e.length||e.some(function(n,a){return n!==t[a]})}function Dn(t,e){return typeof e=="function"?e(t):e}var yi=.8999999999999999,_i=.5,Ci=.49999999999999994;function wi(t){let e=Math.sign(t);t=Math.abs(t);let n=.254829592,a=-.284496736,i=1.421413741,o=-1.453152027,r=1.061405429,p=1/(1+.3275911*t),l=p*(n+p*(a+p*(i+p*(o+p*r))));return e*(1-l*Math.exp(-t*t))}function zn({median:t,p10:e},n){if(t<=0)throw new Error("median must be greater than zero");if(e<=0)throw new Error("p10 must be greater than zero");if(e>=t)throw new Error("p10 must be less than the median");if(n<=0)return 1;let a=.9061938024368232,i=Math.max(Number.MIN_VALUE,n/t),o=Math.log(i),r=Math.max(Number.MIN_VALUE,e/t),s=-Math.log(r),p=o*a/s,l=(1-wi(p))/2,m;return n<=e?m=Math.max(.9,Math.min(1,l)):n<=t?m=Math.max(_i,Math.min(yi,l)):m=Math.max(0,Math.min(Ci,l)),m}var ne="…",Si=" ",jn=.9,ki={PASS:{label:"pass",minScore:jn},AVERAGE:{label:"average",minScore:.5},FAIL:{label:"fail"},ERROR:{label:"error"}},Pi=["com","co","gov","edu","ac","org","go","gob","or","net","in","ne","nic","gouv","web","spb","blog","jus","kiev","mil","wi","qc","ca","bel","on"],N=class t{static get RATINGS(){return ki}static get PASS_THRESHOLD(){return jn}static get MS_DISPLAY_VALUE(){return`%10d${Si}ms`}static isPluginCategory(e){return/^(@[a-z0-9-~][a-z0-9-._~]*\/)?lighthouse-plugin-[a-z0-9-._~]*$/.test(e)}static getFinalDisplayedUrl(e){if(e.finalDisplayedUrl)return e.finalDisplayedUrl;if(e.finalUrl)return e.finalUrl;throw new Error("Could not determine final displayed URL")}static getMainDocumentUrl(e){return e.mainDocumentUrl||e.finalUrl}static getFullPageScreenshot(e){return e.fullPageScreenshot?e.fullPageScreenshot:e.audits["full-page-screenshot"]?.details}static getEntityFromUrl(e,n){return n&&n.find(i=>i.origins.find(o=>e.startsWith(o)))||t.getPseudoRootDomain(e)}static splitMarkdownCodeSpans(e){let n=[],a=e.split(/`(.*?)`/g);for(let i=0;i<a.length;i++){let o=a[i];if(!o)continue;let r=i%2!==0;n.push({isCode:r,text:o})}return n}static splitMarkdownLink(e){let n=[],a=e.split(/\[([^\]]+?)\]\((https?:\/\/.*?)\)/g);for(;a.length;){let[i,o,r]=a.splice(0,3);i&&n.push({isLink:!1,text:i}),o&&r&&n.push({isLink:!0,text:o,linkHref:r})}return n}static truncate(e,n,a="…"){if(e.length<=n)return e;let o=new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(e)[Symbol.iterator](),r=0;for(let s=0;s<=n-a.length;s++){let p=o.next();if(p.done)return e;r=p.value.index}for(let s=0;s<a.length;s++)if(o.next().done)return e;return e.slice(0,r)+a}static getURLDisplayName(e,n){n=n||{numPathParts:void 0,preserveQuery:void 0,preserveHost:void 0};let a=n.numPathParts!==void 0?n.numPathParts:2,i=n.preserveQuery!==void 0?n.preserveQuery:!0,o=n.preserveHost||!1,r;if(e.protocol==="about:"||e.protocol==="data:")r=e.href;else{r=e.pathname;let p=r.split("/").filter(l=>l.length);a&&p.length>a&&(r=ne+p.slice(-1*a).join("/")),o&&(r=`${e.host}/${r.replace(/^\//,"")}`),i&&(r=`${r}${e.search}`)}let s=64;if(e.protocol!=="data:"&&(r=r.slice(0,200),r=r.replace(/([a-f0-9]{7})[a-f0-9]{13}[a-f0-9]*/g,`$1${ne}`),r=r.replace(/([a-zA-Z0-9-_]{9})(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])[a-zA-Z0-9-_]{10,}/g,`$1${ne}`),r=r.replace(/(\d{3})\d{6,}/g,`$1${ne}`),r=r.replace(/\u2026+/g,ne),r.length>s&&r.includes("?")&&(r=r.replace(/\?([^=]*)(=)?.*/,`?$1$2${ne}`),r.length>s&&(r=r.replace(/\?.*/,`?${ne}`)))),r.length>s){let p=r.lastIndexOf(".");p>=0?r=r.slice(0,s-1-(r.length-p))+`${ne}${r.slice(p)}`:r=r.slice(0,s-1)+ne}return r}static getChromeExtensionOrigin(e){let n=new URL(e);return n.protocol+"//"+n.host}static parseURL(e){let n=new URL(e);return{file:t.getURLDisplayName(n),hostname:n.hostname,origin:n.protocol==="chrome-extension:"?t.getChromeExtensionOrigin(e):n.origin}}static createOrReturnURL(e){return e instanceof URL?e:new URL(e)}static getPseudoTld(e){let n=e.split(".").slice(-2);return Pi.includes(n[0])?`.${n.join(".")}`:`.${n[n.length-1]}`}static getPseudoRootDomain(e){let n=t.createOrReturnURL(e).hostname,i=t.getPseudoTld(n).split(".");return n.split(".").slice(-i.length).join(".")}static filterRelevantLines(e,n,a){if(n.length===0)return e.slice(0,a*2+1);let i=3,o=new Set;return n=n.sort((r,s)=>(r.lineNumber||0)-(s.lineNumber||0)),n.forEach(({lineNumber:r})=>{let s=r-a,p=r+a;for(;s<1;)s++,p++;o.has(s-i-1)&&(s-=i);for(let l=s;l<=p;l++){let m=l;o.add(m)}}),e.filter(r=>o.has(r.lineNumber))}static computeLogNormalScore(e,n){let a=zn(e,n);return a>.9&&(a+=.05*(a-.9)),Math.floor(a*100)/100}};var Mn=0,y=class t{static i18n=null;static strings={};static reportJson=null;static apply(e){t.strings={...at,...e.providedStrings},t.i18n=e.i18n,t.reportJson=e.reportJson}static getUniqueSuffix(){return Mn++}static resetUniqueSuffix(){Mn=0}};var Hn="data:image/jpeg;base64,";function Fn(t){t.configSettings.locale||(t.configSettings.locale="en"),t.configSettings.formFactor||(t.configSettings.formFactor=t.configSettings.emulatedFormFactor),t.finalDisplayedUrl=N.getFinalDisplayedUrl(t),t.mainDocumentUrl=N.getMainDocumentUrl(t);for(let a of Object.values(t.audits))if((a.scoreDisplayMode==="not_applicable"||a.scoreDisplayMode==="not-applicable")&&(a.scoreDisplayMode="notApplicable"),a.scoreDisplayMode==="informative"&&(a.score=1),a.details){if((a.details.type===void 0||a.details.type==="diagnostic")&&(a.details.type="debugdata"),a.details.type==="filmstrip")for(let i of a.details.items)i.data.startsWith(Hn)||(i.data=Hn+i.data);if(a.details.type==="table")for(let i of a.details.headings){let{itemType:o,text:r}=i;o!==void 0&&(i.valueType=o,delete i.itemType),r!==void 0&&(i.label=r,delete i.text);let s=i.subItemsHeading?.itemType;i.subItemsHeading&&s!==void 0&&(i.subItemsHeading.valueType=s,delete i.subItemsHeading.itemType)}if(a.id==="third-party-summary"&&(a.details.type==="opportunity"||a.details.type==="table")){let{headings:i,items:o}=a.details;if(i[0].valueType==="link"){i[0].valueType="text";for(let r of o)typeof r.entity=="object"&&r.entity.type==="link"&&(r.entity=r.entity.text);a.details.isEntityGrouped=!0}}}let[e]=t.lighthouseVersion.split(".").map(Number),n=t.categories.performance;if(n){if(e<9){t.categoryGroups||(t.categoryGroups={}),t.categoryGroups.hidden={title:""};for(let a of n.auditRefs)a.group?a.group==="load-opportunities"&&(a.group="diagnostics"):a.group="hidden"}else if(e<12)for(let a of n.auditRefs)a.group||(a.group="diagnostics")}if(e<12&&n){let a=new Map;for(let i of n.auditRefs){let o=i.relevantAudits;if(!(!o||!i.acronym))for(let r of o){let s=a.get(r)||[];s.push(i.acronym),a.set(r,s)}}for(let[i,o]of a){if(!o.length)continue;let r=t.audits[i];if(r&&!r.metricSavings){r.metricSavings={};for(let s of o)r.metricSavings[s]=0}}}if(t.environment||(t.environment={benchmarkIndex:0,networkUserAgent:t.userAgent,hostUserAgent:t.userAgent}),t.configSettings.screenEmulation||(t.configSettings.screenEmulation={width:-1,height:-1,deviceScaleFactor:-1,mobile:/mobile/i.test(t.environment.hostUserAgent),disabled:!1}),t.i18n||(t.i18n={}),t.audits["full-page-screenshot"]){let a=t.audits["full-page-screenshot"].details;a?t.fullPageScreenshot={screenshot:a.screenshot,nodes:a.nodes}:t.fullPageScreenshot=null,delete t.audits["full-page-screenshot"]}}var ae=N.RATINGS,P=class t{static prepareReportResult(e){let n=JSON.parse(JSON.stringify(e));Fn(n);for(let i of Object.values(n.audits))i.details&&(i.details.type==="opportunity"||i.details.type==="table")&&!i.details.isEntityGrouped&&n.entities&&t.classifyEntities(n.entities,i.details);if(typeof n.categories!="object")throw new Error("No categories provided.");let a=new Map;for(let i of Object.values(n.categories))i.auditRefs.forEach(o=>{o.acronym&&a.set(o.acronym,o)}),i.auditRefs.forEach(o=>{let r=n.audits[o.id];o.result=r;let s=Object.keys(o.result.metricSavings||{});if(s.length){o.relevantMetrics=[];for(let p of s){let l=a.get(p);l&&o.relevantMetrics.push(l)}}if(n.stackPacks){let p=[o.id,...o.result.replacesAudits??[]];n.stackPacks.forEach(l=>{let m=p.find(d=>l.descriptions[d]);m&&l.descriptions[m]&&(o.stackPacks=o.stackPacks||[],o.stackPacks.push({title:l.title,iconDataURL:l.iconDataURL,description:l.descriptions[m]}))})}});return n}static getUrlLocatorFn(e){let n=e.find(i=>i.valueType==="url")?.key;if(n&&typeof n=="string")return i=>{let o=i[n];if(typeof o=="string")return o};let a=e.find(i=>i.valueType==="source-location")?.key;if(a)return i=>{let o=i[a];if(typeof o=="object"&&o.type==="source-location")return o.url}}static classifyEntities(e,n){let{items:a,headings:i}=n;if(!a.length||a.some(r=>r.entity))return;let o=t.getUrlLocatorFn(i);if(o)for(let r of a){let s=o(r);if(!s)continue;let p="";try{p=N.parseURL(s).origin}catch{}if(!p)continue;let l=e.find(m=>m.origins.includes(p));l&&(r.entity=l.name)}}static getTableItemSortComparator(e){return(n,a)=>{for(let i of e){let o=n[i],r=a[i];if((typeof o!=typeof r||!["number","string"].includes(typeof o))&&console.warn(`Warning: Attempting to sort unsupported value type: ${i}.`),typeof o=="number"&&typeof r=="number"&&o!==r)return r-o;if(typeof o=="string"&&typeof r=="string"&&o!==r)return o.localeCompare(r)}return 0}}static getEmulationDescriptions(e){let n,a,i,o=e.throttling,r=y.i18n,s=y.strings;switch(e.throttlingMethod){case"provided":i=a=n=s.throttlingProvided;break;case"devtools":{let{cpuSlowdownMultiplier:u,requestLatencyMs:h}=o;n=`${r.formatNumber(u)}x slowdown (DevTools)`,a=`${r.formatMilliseconds(h)} HTTP RTT, ${r.formatKbps(o.downloadThroughputKbps)} down, ${r.formatKbps(o.uploadThroughputKbps)} up (DevTools)`,i=h===150*3.75&&o.downloadThroughputKbps===1.6*1024*.9&&o.uploadThroughputKbps===750*.9?s.runtimeSlow4g:s.runtimeCustom;break}case"simulate":{let{cpuSlowdownMultiplier:u,rttMs:h,throughputKbps:b}=o;n=`${r.formatNumber(u)}x slowdown (Simulated)`,a=`${r.formatMilliseconds(h)} TCP RTT, ${r.formatKbps(b)} throughput (Simulated)`,i=h===150&&b===1.6*1024?s.runtimeSlow4g:s.runtimeCustom;break}default:i=n=a=s.runtimeUnknown}let p=e.channel==="devtools"?!1:e.screenEmulation.disabled,l=e.channel==="devtools"?e.formFactor==="mobile":e.screenEmulation.mobile,m=s.runtimeMobileEmulation;p?m=s.runtimeNoEmulation:l||(m=s.runtimeDesktopEmulation);let d=p?void 0:`${e.screenEmulation.width}x${e.screenEmulation.height}, DPR ${e.screenEmulation.deviceScaleFactor}`;return{deviceEmulation:m,screenEmulation:d,cpuThrottling:n,networkThrottling:a,summary:i}}static showAsPassed(e){switch(e.scoreDisplayMode){case"manual":case"notApplicable":return!0;case"error":case"informative":return!1;default:return Number(e.score)>=ae.PASS.minScore}}static calculateRating(e,n){if(n==="manual"||n==="notApplicable")return ae.PASS.label;if(n==="error")return ae.ERROR.label;if(e===null)return ae.FAIL.label;let a=ae.FAIL.label;return e>=ae.PASS.minScore?a=ae.PASS.label:e>=ae.AVERAGE.minScore&&(a=ae.AVERAGE.label),a}static calculateCategoryFraction(e){let n=0,a=0,i=0,o=0;for(let r of e.auditRefs){let s=t.showAsPassed(r.result);if(!(r.group==="hidden"||r.result.scoreDisplayMode==="manual"||r.result.scoreDisplayMode==="notApplicable")){if(r.result.scoreDisplayMode==="informative"){s||++i;continue}++n,o+=r.weight,s&&a++}}return{numPassed:a,numPassableAudits:n,numInformative:i,totalWeight:o}}static isPluginCategory(e){return N.isPluginCategory(e)}static shouldDisplayAsFraction(e,n){return e==="timespan"||e==="snapshot"||n?.categoryScoreDisplayMode==="fraction"}},at={varianceDisclaimer:"Values are estimated and may vary. The [performance score is calculated](https://developer.chrome.com/docs/lighthouse/performance/performance-scoring/) directly from these metrics.",calculatorLink:"See calculator.",showRelevantAudits:"Show audits relevant to:",opportunityResourceColumnLabel:"Opportunity",opportunitySavingsColumnLabel:"Estimated Savings",errorMissingAuditInfo:"Report error: no audit information",errorLabel:"Error!",warningHeader:"Warnings: ",warningAuditsGroupTitle:"Passed audits but with warnings",passedAuditsGroupTitle:"Passed audits",notApplicableAuditsGroupTitle:"Not applicable",manualAuditsGroupTitle:"Additional items to manually check",toplevelWarningsMessage:"There were issues affecting this run of Lighthouse:",crcInitialNavigation:"Initial Navigation",crcLongestDurationLabel:"Maximum critical path latency:",snippetExpandButtonLabel:"Expand snippet",snippetCollapseButtonLabel:"Collapse snippet",lsPerformanceCategoryDescription:"[Lighthouse](https://developers.google.com/web/tools/lighthouse/) analysis of the current page on an emulated mobile network. Values are estimated and may vary.",labDataTitle:"Lab Data",thirdPartyResourcesLabel:"Show 3rd-party resources",viewTreemapLabel:"View Treemap",viewTraceLabel:"View Trace",dropdownPrintSummary:"Print Summary",dropdownPrintExpanded:"Print Expanded",dropdownCopyJSON:"Copy JSON",dropdownSaveHTML:"Save as HTML",dropdownSaveJSON:"Save as JSON",dropdownViewer:"Open in Viewer",dropdownSaveGist:"Save as Gist",dropdownDarkTheme:"Toggle Dark Theme",dropdownViewUnthrottledTrace:"View Unthrottled Trace",runtimeSettingsDevice:"Device",runtimeSettingsNetworkThrottling:"Network throttling",runtimeSettingsCPUThrottling:"CPU throttling",runtimeSettingsUANetwork:"User agent (network)",runtimeSettingsBenchmark:"Unthrottled CPU/Memory Power",runtimeSettingsAxeVersion:"Axe version",runtimeSettingsScreenEmulation:"Screen emulation",footerIssue:"File an issue",runtimeNoEmulation:"No emulation",runtimeMobileEmulation:"Emulated Moto G Power",runtimeDesktopEmulation:"Emulated Desktop",runtimeUnknown:"Unknown",runtimeSingleLoad:"Single page session",runtimeAnalysisWindow:"Initial page load",runtimeAnalysisWindowTimespan:"User interactions timespan",runtimeAnalysisWindowSnapshot:"Point-in-time snapshot",runtimeSingleLoadTooltip:"This data is taken from a single page session, as opposed to field data summarizing many sessions.",throttlingProvided:"Provided by environment",show:"Show",hide:"Hide",expandView:"Expand view",collapseView:"Collapse view",runtimeSlow4g:"Slow 4G throttling",runtimeCustom:"Custom throttling",firstPartyChipLabel:"1st party",openInANewTabTooltip:"Open in a new tab",unattributable:"Unattributable",unscoredLabel:"Unscored",unscoredTitle:"This audit does not contribute to the overall category score."};var Ai=0;function c(t,e,n,a,i,o){e||(e={});var r,s,p=e;if("ref"in p)for(s in p={},e)s=="ref"?r=e[s]:p[s]=e[s];var l={type:t,props:p,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ai,__i:-1,__u:0,__source:i,__self:o};if(typeof t=="function"&&(r=t.defaultProps))for(s in r)p[s]===void 0&&(p[s]=r[s]);return E.vnode&&E.vnode(l),l}var Bn=()=>c("svg",{width:"14",viewBox:"0 0 18 16",fill:"none",role:"img",children:c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 2C0 1.17 0.67 0.5 1.5 0.5C2.33 0.5 3 1.17 3 2C3 2.83 2.33 3.5 1.5 3.5C0.67 3.5 0 2.83 0 2ZM0 8C0 7.17 0.67 6.5 1.5 6.5C2.33 6.5 3 7.17 3 8C3 8.83 2.33 9.5 1.5 9.5C0.67 9.5 0 8.83 0 8ZM1.5 12.5C0.67 12.5 0 13.18 0 14C0 14.82 0.68 15.5 1.5 15.5C2.32 15.5 3 14.82 3 14C3 13.18 2.33 12.5 1.5 12.5ZM18 15H5V13H18V15ZM5 9H18V7H5V9ZM5 3V1H18V3H5Z",fill:"currentColor"})}),it=()=>c("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",role:"img","aria-label":"Icon representing a navigation report",children:c("circle",{cx:"8",cy:"8",r:"7",fill:"none",stroke:"currentColor","stroke-width":"2"})}),ot=()=>c("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",role:"img","aria-label":"Icon representing a timespan report",children:[c("circle",{cx:"8",cy:"8",r:"7",fill:"none",stroke:"currentColor","stroke-width":"2"}),c("path",{d:"m 8,4 v 4 l 4,1.9999998",stroke:"currentColor","stroke-width":"1.5"})]}),rt=()=>c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",role:"img","aria-label":"Icon representing a snapshot report",children:c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M 12.2038,12.2812 C 11.1212,13.3443 9.6372,14 8,14 7.81038,14 7.62281,13.9912 7.43768,13.974 L 10.3094,9 Z M 12.8925,11.4741 10.0207,6.5 H 13.811 C 13.9344,6.97943 14,7.48205 14,8 c 0,1.2947 -0.4101,2.4937 -1.1075,3.4741 z M 13.456,5.5 H 7.71135 L 9.6065,2.21749 C 11.3203,2.69259 12.7258,3.90911 13.456,5.5 Z M 8.5624,2.02601 C 8.3772,2.0088 8.1896,2 8,2 6.36282,2 4.8788,2.65572 3.79622,3.71885 L 5.69061,7.00002 Z M 3.10749,4.52594 C 2.4101,5.5063 2,6.70526 2,8 2,8.5179 2.06563,9.0206 2.18903,9.5 H 5.97927 Z M 2.54404,10.5 c 0.73017,1.5909 2.1357,2.8074 3.84949,3.2825 L 8.2887,10.5 Z M 16,8 c 0,4.4183 -3.5817,8 -8,8 C 3.58172,16 0,12.4183 0,8 0,3.58172 3.58172,0 8,0 c 4.4183,0 8,3.58172 8,8 z",fill:"currentColor"})}),On=()=>c("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",role:"img","aria-label":"Icon representing a close action",children:[c("path",{d:"M0 0h24v24H0V0z",fill:"none"}),c("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"})]}),Gn=()=>c("svg",{width:"15",height:"12",viewBox:"0 0 15 12",fill:"none",role:"img",children:c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.33317 2.00008H13.9998V0.666748H3.33317C2.59984 0.666748 1.99984 1.26675 1.99984 2.00008V9.33341H0.666504V11.3334H7.99984V9.33341H3.33317V2.00008ZM13.9998 3.33341H9.99984C9.63317 3.33341 9.33317 3.63341 9.33317 4.00008V10.6667C9.33317 11.0334 9.63317 11.3334 9.99984 11.3334H13.9998C14.3665 11.3334 14.6665 11.0334 14.6665 10.6667V4.00008C14.6665 3.63341 14.3665 3.33341 13.9998 3.33341ZM10.6665 9.33341H13.3332V4.66675H10.6665V9.33341Z",fill:"currentColor"})}),Vn=()=>c("svg",{width:"16",height:"11",viewBox:"0 0 16 11",fill:"none",role:"img",children:c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.666687 3.26663L2.00002 4.59997C3.92002 2.67997 6.52669 1.87997 9.02002 2.18663L9.81335 0.399966C6.59335 -0.173367 3.16002 0.779966 0.666687 3.26663ZM10.6 0.599966C10.4867 0.599966 10.3867 0.659966 10.3267 0.753299L10.28 0.853299L6.82669 8.61996C6.72002 8.8133 6.65335 9.02663 6.65335 9.25996C6.65335 9.99996 7.25335 10.6 7.99335 10.6C8.63335 10.6 9.17335 10.1466 9.30002 9.53996L9.30669 9.51997L10.9334 0.933299C10.9334 0.746633 10.7867 0.599966 10.6 0.599966ZM15.3334 3.26663L14 4.59997C13.1867 3.78663 12.2534 3.17997 11.2534 2.76663L11.6067 0.886633C12.9667 1.38663 14.24 2.1733 15.3334 3.26663ZM11.3334 7.26663L12.6667 5.9333C12.1334 5.39997 11.5334 4.98663 10.8934 4.6733L10.5267 6.61997C10.8067 6.79997 11.08 7.0133 11.3334 7.26663ZM4.66669 7.26663L3.33335 5.9333C4.67335 4.5933 6.45335 3.95997 8.20669 4.0133L7.35335 5.9333C6.37335 6.0733 5.42002 6.5133 4.66669 7.26663Z",fill:"currentColor"})}),$n=()=>c("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",role:"img",children:c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.5 7.16667V5.5H13.8333V3.83333C13.8333 2.91667 13.0833 2.16667 12.1667 2.16667H10.5V0.5H8.83333V2.16667H7.16667V0.5H5.5V2.16667H3.83333C2.91667 2.16667 2.16667 2.91667 2.16667 3.83333V5.5H0.5V7.16667H2.16667V8.83333H0.5V10.5H2.16667V12.1667C2.16667 13.0833 2.91667 13.8333 3.83333 13.8333H5.5V15.5H7.16667V13.8333H8.83333V15.5H10.5V13.8333H12.1667C13.0833 13.8333 13.8333 13.0833 13.8333 12.1667V10.5H15.5V8.83333H13.8333V7.16667H15.5ZM10.5 5.5H5.5V10.5H10.5V5.5ZM3.83333 12.1667H12.1667V3.83333H3.83333V12.1667Z",fill:"currentColor"})}),qn=()=>c("svg",{viewBox:"0 0 18 12",width:"18",height:"12",role:"img",children:[c("rect",{width:"18",height:"2",fill:"currentColor"}),c("rect",{y:"5",width:"18",height:"2",fill:"currentColor"}),c("rect",{y:"10",width:"18",height:"2",fill:"currentColor"})]}),Wn=()=>c("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 7C13 10.3137 10.3137 13 7 13C3.68629 13 1 10.3137 1 7C1 3.68629 3.68629 1 7 1C10.3137 1 13 3.68629 13 7ZM14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7C0 3.13401 3.13401 0 7 0C10.866 0 14 3.13401 14 7ZM7.66658 11H6.33325V9.66667H7.66658V11ZM4.33325 5.66667C4.33325 4.19333 5.52659 3 6.99992 3C8.47325 3 9.66658 4.19333 9.66658 5.66667C9.66658 6.52194 9.1399 6.98221 8.62709 7.43036C8.1406 7.85551 7.66658 8.26975 7.66658 9H6.33325C6.33325 7.78582 6.96133 7.30439 7.51355 6.88112C7.94674 6.54907 8.33325 6.25281 8.33325 5.66667C8.33325 4.93333 7.73325 4.33333 6.99992 4.33333C6.26658 4.33333 5.66658 4.93333 5.66658 5.66667H4.33325Z",fill:"currentColor"})});var Nt=Pe(void 0),Rt=Pe({});function Jn(t){return new URLSearchParams(location.hash.replace("#","?")).get(t)}function be(...t){let e=[];for(let n of t){if(!n)continue;if(typeof n=="string"){e.push(n);continue}let a=Object.entries(n).filter(([i,o])=>o).map(([i])=>i);e.push(...a)}return e.join(" ")}function Zn(t){let{width:e,height:n}=t.configSettings.screenEmulation;return{width:e,height:n}}function Kn(t){let e=t.audits["screenshot-thumbnails"];return e&&e.details&&e.details.type==="filmstrip"&&e.details.items||void 0}function st(t,e){switch(t){case"navigation":return e.navigationDescription;case"timespan":return e.timespanDescription;case"snapshot":return e.snapshotDescription}}function $(){let t=Le(Nt);if(!t)throw Error("useFlowResult must be called in the FlowResultContext");return t}function Li(...t){let[e,n]=oe(t.map(Jn));return et(()=>{function a(){let i=t.map(Jn);i.every((o,r)=>o===e[r])||n(i)}return window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[e]),e}function ye(){let t=$(),[e,n]=Li("index","anchor");return te(()=>{if(!e)return null;let a=Number(e);if(!Number.isFinite(a))return console.warn(`Invalid hash index: ${e}`),null;let i=t.steps[a];return i?{currentLhr:i.lhr,index:a,anchor:n}:(console.warn(`No flow step at index ${a}`),null)},[e,t,n])}function re(t,e){let n=nt(null);return tt(()=>{if(!n.current)return;let a=t();return n.current.append(a),()=>{n.current?.contains(a)&&n.current.removeChild(a)}},e),n}function Xn(){return Le(Rt)}var Ei=500,Z=()=>c("div",{className:"Separator",role:"separator"}),Dt=({mode:t})=>c(M,{children:[t==="navigation"&&c(it,{}),t==="timespan"&&c(ot,{}),t==="snapshot"&&c(rt,{})]}),se=({mode:t})=>c("div",{className:"FlowSegment",children:[c("div",{className:"FlowSegment__top-line"}),t&&c(Dt,{mode:t}),c("div",{className:"FlowSegment__bottom-line"})]}),Ii=({frames:t,width:e,height:n})=>{let[a,i]=oe(0),o=a%t.length;return et(()=>{let r=setInterval(()=>i(s=>(s+1)%t.length),Ei);return()=>clearInterval(r)},[t.length]),c("img",{className:"FlowStepThumbnail","data-testid":"FlowStepAnimatedThumbnail",src:t[o].data,style:{width:e,height:n},alt:"Animated screenshots of a page tested by Lighthouse"})},lt=({lhr:t,width:e,height:n})=>{let a=Kn(t),i=Zn(t);if(e&&n===void 0?n=i.height*e/i.width:n&&e===void 0&&(e=i.width*n/i.height),!e||!n)return console.warn(new Error("FlowStepThumbnail requested without any dimensions").stack),c(M,{});let o;if(a?.length){if(o=a[a.length-1].data,t.gatherMode==="timespan")return c(Ii,{frames:a,width:e,height:n})}else o=N.getFullPageScreenshot(t)?.screenshot.data;return c(M,{children:o&&c("img",{className:"FlowStepThumbnail",src:o,style:{width:e,height:n},alt:"Screenshot of a page tested by Lighthouse"})})};var zt=function(t,e){return zt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},zt(t,e)};function Ee(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");zt(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var S=function(){return S=Object.assign||function(e){for(var n,a=1,i=arguments.length;a<i;a++){n=arguments[a];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},S.apply(this,arguments)};function Yn(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(t);i<a.length;i++)e.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(t,a[i])&&(n[a[i]]=t[a[i]]);return n}function pt(t,e,n){if(n||arguments.length===2)for(var a=0,i=e.length,o;a<i;a++)(o||!(a in e))&&(o||(o=Array.prototype.slice.call(e,0,a)),o[a]=e[a]);return t.concat(o||Array.prototype.slice.call(e))}function ut(t,e){var n=e&&e.cache?e.cache:ji,a=e&&e.serializer?e.serializer:Di,i=e&&e.strategy?e.strategy:Ti;return i(t,{cache:n,serializer:a})}function Ui(t){return t==null||typeof t=="number"||typeof t=="boolean"}function Qn(t,e,n,a){var i=Ui(a)?a:n(a),o=e.get(i);return typeof o>"u"&&(o=t.call(this,a),e.set(i,o)),o}function ea(t,e,n){var a=Array.prototype.slice.call(arguments,3),i=n(a),o=e.get(i);return typeof o>"u"&&(o=t.apply(this,a),e.set(i,o)),o}function jt(t,e,n,a,i){return n.bind(e,t,a,i)}function Ti(t,e){var n=t.length===1?Qn:ea;return jt(t,this,n,e.cache.create(),e.serializer)}function Ni(t,e){return jt(t,this,ea,e.cache.create(),e.serializer)}function Ri(t,e){return jt(t,this,Qn,e.cache.create(),e.serializer)}var Di=function(){return JSON.stringify(arguments)},zi=(function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(e){return this.cache[e]},t.prototype.set=function(e,n){this.cache[e]=n},t})(),ji={create:function(){return new zi}},ct={variadic:Ni,monadic:Ri};var x;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(x||(x={}));var U;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(U||(U={}));var de;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(de||(de={}));function Mt(t){return t.type===U.literal}function Ht(t){return t.type===U.argument}function Ie(t){return t.type===U.number}function Ue(t){return t.type===U.date}function Te(t){return t.type===U.time}function Ne(t){return t.type===U.select}function Re(t){return t.type===U.plural}function ta(t){return t.type===U.pound}function De(t){return t.type===U.tag}function mt(t){return!!(t&&typeof t=="object"&&t.type===de.number)}function ze(t){return!!(t&&typeof t=="object"&&t.type===de.dateTime)}var Ft=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;var Mi=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function na(t){var e={};return t.replace(Mi,function(n){var a=n.length;switch(n[0]){case"G":e.era=a===4?"long":a===5?"narrow":"short";break;case"y":e.year=a===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][a-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][a-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=a===4?"long":a===5?"narrow":"short";break;case"e":if(a<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][a-4];break;case"c":if(a<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][a-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][a-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][a-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][a-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][a-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][a-1];break;case"s":e.second=["numeric","2-digit"][a-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=a<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),e}var aa=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function sa(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var e=t.split(aa).filter(function(u){return u.length>0}),n=[],a=0,i=e;a<i.length;a++){var o=i[a],r=o.split("/");if(r.length===0)throw new Error("Invalid number skeleton");for(var s=r[0],p=r.slice(1),l=0,m=p;l<m.length;l++){var d=m[l];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:s,options:p})}return n}function Hi(t){return t.replace(/^(.*?)-/,"")}var ia=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,la=/^(@+)?(\+|#+)?[rs]?$/g,Fi=/(\*)(0+)|(#+)(0+)|(0+)/g,pa=/^(0+)$/;function oa(t){var e={};return t[t.length-1]==="r"?e.roundingPriority="morePrecision":t[t.length-1]==="s"&&(e.roundingPriority="lessPrecision"),t.replace(la,function(n,a,i){return typeof i!="string"?(e.minimumSignificantDigits=a.length,e.maximumSignificantDigits=a.length):i==="+"?e.minimumSignificantDigits=a.length:a[0]==="#"?e.maximumSignificantDigits=a.length:(e.minimumSignificantDigits=a.length,e.maximumSignificantDigits=a.length+(typeof i=="string"?i.length:0)),""}),e}function ua(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Bi(t){var e;if(t[0]==="E"&&t[1]==="E"?(e={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if(n==="+!"?(e.signDisplay="always",t=t.slice(2)):n==="+?"&&(e.signDisplay="exceptZero",t=t.slice(2)),!pa.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function ra(t){var e={},n=ua(t);return n||e}function ca(t){for(var e={},n=0,a=t;n<a.length;n++){var i=a[n];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=Hi(i.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=S(S(S({},e),{notation:"scientific"}),i.options.reduce(function(p,l){return S(S({},p),ra(l))},{}));continue;case"engineering":e=S(S(S({},e),{notation:"engineering"}),i.options.reduce(function(p,l){return S(S({},p),ra(l))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Fi,function(p,l,m,d,u,h){if(l)e.minimumIntegerDigits=m.length;else{if(d&&u)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(pa.test(i.stem)){e.minimumIntegerDigits=i.stem.length;continue}if(ia.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ia,function(p,l,m,d,u,h){return m==="*"?e.minimumFractionDigits=l.length:d&&d[0]==="#"?e.maximumFractionDigits=d.length:u&&h?(e.minimumFractionDigits=u.length,e.maximumFractionDigits=u.length+h.length):(e.minimumFractionDigits=l.length,e.maximumFractionDigits=l.length),""});var o=i.options[0];o==="w"?e=S(S({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=S(S({},e),oa(o)));continue}if(la.test(i.stem)){e=S(S({},e),oa(i.stem));continue}var r=ua(i.stem);r&&(e=S(S({},e),r));var s=Bi(i.stem);s&&(e=S(S({},e),s))}return e}var je={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function ma(t,e){for(var n="",a=0;a<t.length;a++){var i=t.charAt(a);if(i==="j"){for(var o=0;a+1<t.length&&t.charAt(a+1)===i;)o++,a++;var r=1+(o&1),s=o<2?1:3+(o>>1),p="a",l=Oi(e);for((l=="H"||l=="k")&&(s=0);s-- >0;)n+=p;for(;r-- >0;)n=l+n}else i==="J"?n+="H":n+=i}return n}function Oi(t){var e=t.hourCycle;if(e===void 0&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=t.language,a;n!=="root"&&(a=t.maximize().region);var i=je[a||""]||je[n||""]||je["".concat(n,"-001")]||je["001"];return i[0]}var Bt,Gi=new RegExp("^".concat(Ft.source,"*")),Vi=new RegExp("".concat(Ft.source,"*$"));function A(t,e){return{start:t,end:e}}var $i=!!String.prototype.startsWith&&"_a".startsWith("a",1),qi=!!String.fromCodePoint,Wi=!!Object.fromEntries,Ji=!!String.prototype.codePointAt,Zi=!!String.prototype.trimStart,Ki=!!String.prototype.trimEnd,Xi=!!Number.isSafeInteger,Yi=Xi?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Gt=!0;try{da=va("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Gt=((Bt=da.exec("a"))===null||Bt===void 0?void 0:Bt[0])==="a"}catch{Gt=!1}var da,ha=$i?function(e,n,a){return e.startsWith(n,a)}:function(e,n,a){return e.slice(a,a+n.length)===n},Vt=qi?String.fromCodePoint:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var a="",i=e.length,o=0,r;i>o;){if(r=e[o++],r>1114111)throw RangeError(r+" is not a valid code point");a+=r<65536?String.fromCharCode(r):String.fromCharCode(((r-=65536)>>10)+55296,r%1024+56320)}return a},ga=Wi?Object.fromEntries:function(e){for(var n={},a=0,i=e;a<i.length;a++){var o=i[a],r=o[0],s=o[1];n[r]=s}return n},fa=Ji?function(e,n){return e.codePointAt(n)}:function(e,n){var a=e.length;if(!(n<0||n>=a)){var i=e.charCodeAt(n),o;return i<55296||i>56319||n+1===a||(o=e.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},Qi=Zi?function(e){return e.trimStart()}:function(e){return e.replace(Gi,"")},eo=Ki?function(e){return e.trimEnd()}:function(e){return e.replace(Vi,"")};function va(t,e){return new RegExp(t,e)}var $t;Gt?(Ot=va("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),$t=function(e,n){var a;Ot.lastIndex=n;var i=Ot.exec(e);return(a=i[1])!==null&&a!==void 0?a:""}):$t=function(e,n){for(var a=[];;){var i=fa(e,n);if(i===void 0||ya(i)||ao(i))break;a.push(i),n+=i>=65536?2:1}return Vt.apply(void 0,a)};var Ot,ba=(function(){function t(e,n){n===void 0&&(n={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(e,n,a){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var r=this.parseArgument(e,a);if(r.err)return r;i.push(r.val)}else{if(o===125&&e>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:U.pound,location:A(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(a)break;return this.error(x.UNMATCHED_CLOSING_TAG,A(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&qt(this.peek()||0)){var r=this.parseTag(e,n);if(r.err)return r;i.push(r.val)}else{var r=this.parseLiteral(e,n);if(r.err)return r;i.push(r.val)}}}return{val:i,err:null}},t.prototype.parseTag=function(e,n){var a=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:U.literal,value:"<".concat(i,"/>"),location:A(a,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,n,!0);if(o.err)return o;var r=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!qt(this.char()))return this.error(x.INVALID_TAG,A(s,this.clonePosition()));var p=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(x.UNMATCHED_CLOSING_TAG,A(p,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:U.tag,value:i,children:r,location:A(a,this.clonePosition())},err:null}:this.error(x.INVALID_TAG,A(s,this.clonePosition())))}else return this.error(x.UNCLOSED_TAG,A(a,this.clonePosition()))}else return this.error(x.INVALID_TAG,A(a,this.clonePosition()))},t.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&no(this.char());)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(e,n){for(var a=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var r=this.tryParseUnquoted(e,n);if(r){i+=r;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var p=A(a,this.clonePosition());return{val:{type:U.literal,value:i,location:p},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!to(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var a=this.char();if(a===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(a);this.bump()}return Vt.apply(void 0,n)},t.prototype.tryParseUnquoted=function(e,n){if(this.isEOF())return null;var a=this.char();return a===60||a===123||a===35&&(n==="plural"||n==="selectordinal")||a===125&&e>0?null:(this.bump(),Vt(a))},t.prototype.parseArgument=function(e,n){var a=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,A(a,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(x.EMPTY_ARGUMENT,A(a,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(x.MALFORMED_ARGUMENT,A(a,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,A(a,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:U.argument,value:i,location:A(a,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,A(a,this.clonePosition())):this.parseArgumentOptions(e,n,i,a);default:return this.error(x.MALFORMED_ARGUMENT,A(a,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),n=this.offset(),a=$t(this.message,n),i=n+a.length;this.bumpTo(i);var o=this.clonePosition(),r=A(e,o);return{value:a,location:r}},t.prototype.parseArgumentOptions=function(e,n,a,i){var o,r=this.clonePosition(),s=this.parseIdentifierIfPossible().value,p=this.clonePosition();switch(s){case"":return this.error(x.EXPECT_ARGUMENT_TYPE,A(r,p));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var m=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var u=eo(d.val);if(u.length===0)return this.error(x.EXPECT_ARGUMENT_STYLE,A(this.clonePosition(),this.clonePosition()));var h=A(m,this.clonePosition());l={style:u,styleLocation:h}}var b=this.tryParseArgumentClose(i);if(b.err)return b;var C=A(i,this.clonePosition());if(l&&ha(l?.style,"::",0)){var v=Qi(l.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(v,l.styleLocation);return d.err?d:{val:{type:U.number,value:a,location:C,style:d.val},err:null}}else{if(v.length===0)return this.error(x.EXPECT_DATE_TIME_SKELETON,C);var g=v;this.locale&&(g=ma(v,this.locale));var u={type:de.dateTime,pattern:g,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?na(g):{}},f=s==="date"?U.date:U.time;return{val:{type:f,value:a,location:C,style:u},err:null}}}return{val:{type:s==="number"?U.number:s==="date"?U.date:U.time,value:a,location:C,style:(o=l?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var _=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS,A(_,S({},_)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),k=0;if(s!=="select"&&w.value==="offset"){if(!this.bumpIf(":"))return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,A(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),w=this.parseIdentifierIfPossible(),k=d.val}var I=this.tryParsePluralOrSelectOptions(e,s,n,w);if(I.err)return I;var b=this.tryParseArgumentClose(i);if(b.err)return b;var D=A(i,this.clonePosition());return s==="select"?{val:{type:U.select,value:a,options:ga(I.val),location:D},err:null}:{val:{type:U.plural,value:a,options:ga(I.val),offset:k,pluralType:s==="plural"?"cardinal":"ordinal",location:D},err:null}}default:return this.error(x.INVALID_ARGUMENT_TYPE,A(r,p))}},t.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,A(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,n=this.clonePosition();!this.isEOF();){var a=this.char();switch(a){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,A(i,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(e,n){var a=[];try{a=sa(e)}catch{return this.error(x.INVALID_NUMBER_SKELETON,n)}return{val:{type:de.number,tokens:a,location:n,parsedOptions:this.shouldParseSkeletons?ca(a):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(e,n,a,i){for(var o,r=!1,s=[],p=new Set,l=i.value,m=i.location;;){if(l.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var u=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR,x.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;m=A(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(p.has(l))return this.error(n==="select"?x.DUPLICATE_SELECT_ARGUMENT_SELECTOR:x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,m);l==="other"&&(r=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,A(this.clonePosition(),this.clonePosition()));var b=this.parseMessage(e+1,n,a);if(b.err)return b;var C=this.tryParseArgumentClose(h);if(C.err)return C;s.push([l,{value:b.val,location:A(h,this.clonePosition())}]),p.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,m=o.location}return s.length===0?this.error(n==="select"?x.EXPECT_SELECT_ARGUMENT_SELECTOR:x.EXPECT_PLURAL_ARGUMENT_SELECTOR,A(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!r?this.error(x.MISSING_OTHER_CLAUSE,A(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(e,n){var a=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(a=-1);for(var o=!1,r=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,r=r*10+(s-48),this.bump();else break}var p=A(i,this.clonePosition());return o?(r*=a,Yi(r)?{val:r,err:null}:this.error(n,p)):this.error(e,p)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var n=fa(this.message,e);if(n===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return n},t.prototype.error=function(e,n){return{val:null,err:{kind:e,message:this.message,location:n}}},t.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},t.prototype.bumpIf=function(e){if(ha(this.message,e,this.offset())){for(var n=0;n<e.length;n++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(e){var n=this.offset(),a=this.message.indexOf(e,n);return a>=0?(this.bumpTo(a),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var n=this.offset();if(n===e)break;if(n>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&ya(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),n=this.offset(),a=this.message.charCodeAt(n+(e>=65536?2:1));return a??null},t})();function qt(t){return t>=97&&t<=122||t>=65&&t<=90}function to(t){return qt(t)||t===47}function no(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function ya(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function ao(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function Wt(t){t.forEach(function(e){if(delete e.location,Ne(e)||Re(e))for(var n in e.options)delete e.options[n].location,Wt(e.options[n].value);else Ie(e)&&mt(e.style)||(Ue(e)||Te(e))&&ze(e.style)?delete e.style.location:De(e)&&Wt(e.children)})}function _a(t,e){e===void 0&&(e={}),e=S({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var n=new ba(t,e).parse();if(n.err){var a=SyntaxError(x[n.err.kind]);throw a.location=n.err.location,a.originalMessage=n.err.message,a}return e?.captureLocation||Wt(n.val),n.val}var he;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(he||(he={}));var Me=(function(t){Ee(e,t);function e(n,a,i){var o=t.call(this,n)||this;return o.code=a,o.originalMessage=i,o}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e})(Error);var Jt=(function(t){Ee(e,t);function e(n,a,i,o){return t.call(this,'Invalid values for "'.concat(n,'": "').concat(a,'". Options are "').concat(Object.keys(i).join('", "'),'"'),he.INVALID_VALUE,o)||this}return e})(Me);var Ca=(function(t){Ee(e,t);function e(n,a,i){return t.call(this,'Value for "'.concat(n,'" must be of type ').concat(a),he.INVALID_VALUE,i)||this}return e})(Me);var wa=(function(t){Ee(e,t);function e(n,a){return t.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(a,'"'),he.MISSING_VALUE,a)||this}return e})(Me);var O;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(O||(O={}));function io(t){return t.length<2?t:t.reduce(function(e,n){var a=e[e.length-1];return!a||a.type!==O.literal||n.type!==O.literal?e.push(n):a.value+=n.value,e},[])}function oo(t){return typeof t=="function"}function He(t,e,n,a,i,o,r){if(t.length===1&&Mt(t[0]))return[{type:O.literal,value:t[0].value}];for(var s=[],p=0,l=t;p<l.length;p++){var m=l[p];if(Mt(m)){s.push({type:O.literal,value:m.value});continue}if(ta(m)){typeof o=="number"&&s.push({type:O.literal,value:n.getNumberFormat(e).format(o)});continue}var d=m.value;if(!(i&&d in i))throw new wa(d,r);var u=i[d];if(Ht(m)){(!u||typeof u=="string"||typeof u=="number")&&(u=typeof u=="string"||typeof u=="number"?String(u):""),s.push({type:typeof u=="string"?O.literal:O.object,value:u});continue}if(Ue(m)){var h=typeof m.style=="string"?a.date[m.style]:ze(m.style)?m.style.parsedOptions:void 0;s.push({type:O.literal,value:n.getDateTimeFormat(e,h).format(u)});continue}if(Te(m)){var h=typeof m.style=="string"?a.time[m.style]:ze(m.style)?m.style.parsedOptions:a.time.medium;s.push({type:O.literal,value:n.getDateTimeFormat(e,h).format(u)});continue}if(Ie(m)){var h=typeof m.style=="string"?a.number[m.style]:mt(m.style)?m.style.parsedOptions:void 0;h&&h.scale&&(u=u*(h.scale||1)),s.push({type:O.literal,value:n.getNumberFormat(e,h).format(u)});continue}if(De(m)){var b=m.children,C=m.value,v=i[C];if(!oo(v))throw new Ca(C,"function",r);var g=He(b,e,n,a,i,o),f=v(g.map(function(k){return k.value}));Array.isArray(f)||(f=[f]),s.push.apply(s,f.map(function(k){return{type:typeof k=="string"?O.literal:O.object,value:k}}))}if(Ne(m)){var _=m.options[u]||m.options.other;if(!_)throw new Jt(m.value,u,Object.keys(m.options),r);s.push.apply(s,He(_.value,e,n,a,i));continue}if(Re(m)){var _=m.options["=".concat(u)];if(!_){if(!Intl.PluralRules)throw new Me(`Intl.PluralRules is not available in this environment.
1
+ "use strict";(()=>{var Ke,E,dn,pi,ie,un,hn,gn,Ct,Ve,ke,fn,kt,wt,xt,vn,We={},Je=[],ui=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Xe=Array.isArray;function ee(t,e){for(var n in e)t[n]=e[n];return t}function Pt(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function At(t,e,n){var a,i,o,r={};for(o in e)o=="key"?a=e[o]:o=="ref"?i=e[o]:r[o]=e[o];if(arguments.length>2&&(r.children=arguments.length>3?Ke.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(o in t.defaultProps)r[o]===void 0&&(r[o]=t.defaultProps[o]);return $e(t,r,a,i,null)}function $e(t,e,n,a,i){var o={type:t,props:e,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++dn,__i:-1,__u:0};return i==null&&E.vnode!=null&&E.vnode(o),o}function M(t){return t.children}function qe(t,e){this.props=t,this.context=e}function ce(t,e){if(e==null)return t.__?ce(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?ce(t):null}function ci(t){if(t.__P&&t.__d){var e=t.__v,n=e.__e,a=[],i=[],o=ee({},e);o.__v=e.__v+1,E.vnode&&E.vnode(o),Lt(t.__P,o,e,t.__n,t.__P.namespaceURI,32&e.__u?[n]:null,a,n??ce(e),!!(32&e.__u),i),o.__v=e.__v,o.__.__k[o.__i]=o,wn(a,o,i),e.__e=e.__=null,o.__e!=n&&bn(o)}}function bn(t){if((t=t.__)!=null&&t.__c!=null)return t.__e=t.__c.base=null,t.__k.some(function(e){if(e!=null&&e.__e!=null)return t.__e=t.__c.base=e.__e}),bn(t)}function St(t){(!t.__d&&(t.__d=!0)&&ie.push(t)&&!Ze.__r++||un!=E.debounceRendering)&&((un=E.debounceRendering)||hn)(Ze)}function Ze(){try{for(var t,e=1;ie.length;)ie.length>e&&ie.sort(gn),t=ie.shift(),e=ie.length,ci(t)}finally{ie.length=Ze.__r=0}}function yn(t,e,n,a,i,o,r,s,p,l,m){var d,u,h,b,_,f,g=a&&a.__k||Je,v=e.length;for(p=mi(n,e,g,p,v),d=0;d<v;d++)(h=n.__k[d])!=null&&(u=h.__i!=-1&&g[h.__i]||We,h.__i=d,f=Lt(t,h,u,i,o,r,s,p,l,m),b=h.__e,h.ref&&u.ref!=h.ref&&(u.ref&&Et(u.ref,null,h),m.push(h.ref,h.__c||b,h)),_==null&&b!=null&&(_=b),4&h.__u?(p=_n(h,p,t),u.__e&&(u.__e=null)):typeof h.type=="function"&&f!==void 0?p=f:b&&(p=b.nextSibling),h.__u&=-7);return n.__e=_,p}function mi(t,e,n,a,i){var o,r,s,p,l,m=n.length,d=m,u=0;for(t.__k=new Array(i),o=0;o<i;o++)(r=e[o])!=null&&typeof r!="boolean"&&typeof r!="function"?(typeof r=="string"||typeof r=="number"||typeof r=="bigint"||r.constructor==String?r=t.__k[o]=$e(null,r,null,null,null):Xe(r)?r=t.__k[o]=$e(M,{children:r},null,null,null):r.constructor===void 0&&r.__b>0?r=t.__k[o]=$e(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):t.__k[o]=r,p=o+u,r.__=t,r.__b=t.__b+1,s=null,(l=r.__i=di(r,n,p,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>m?u--:i<m&&u++),typeof r.type!="function"&&(r.__u|=4)):l!=p&&(l==p-1?u--:l==p+1?u++:(l>p?u--:u++,r.__u|=4))):t.__k[o]=null;if(d)for(o=0;o<m;o++)(s=n[o])!=null&&(2&s.__u)==0&&(s.__e==a&&(a=ce(s)),Sn(s,s));return a}function _n(t,e,n){var a,i;if(typeof t.type=="function"){for(a=t.__k,i=0;a&&i<a.length;i++)a[i]&&(a[i].__=t,e=_n(a[i],e,n));return e}t.__e!=e&&(e&&t.type&&!e.parentNode&&(e=ce(t)),e=n.insertBefore(t.__e,e||null));do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function di(t,e,n,a){var i,o,r,s=t.key,p=t.type,l=e[n],m=l!=null&&(2&l.__u)==0;if(l===null&&s==null||m&&s==l.key&&p==l.type)return n;if(a>(m?1:0)){for(i=n-1,o=n+1;i>=0||o<e.length;)if((l=e[r=i>=0?i--:o++])!=null&&(2&l.__u)==0&&s==l.key&&p==l.type)return r}return-1}function cn(t,e,n){e[0]=="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||ui.test(e)?n:n+"px"}function Ge(t,e,n,a,i){var o,r;e:if(e=="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof a=="string"&&(t.style.cssText=a=""),a)for(e in a)n&&e in n||cn(t.style,e,"");if(n)for(e in n)a&&n[e]==a[e]||cn(t.style,e,n[e])}else if(e[0]=="o"&&e[1]=="n")o=e!=(e=e.replace(fn,"$1")),r=e.toLowerCase(),e=r in t||e=="onFocusOut"||e=="onFocusIn"?r.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?a?n[ke]=a[ke]:(n[ke]=kt,t.addEventListener(e,o?xt:wt,o)):t.removeEventListener(e,o?xt:wt,o);else{if(i=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&n==1?"":n))}}function mn(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e[Ve]==null)e[Ve]=kt++;else if(e[Ve]<n[ke])return;return n(E.event?E.event(e):e)}}}function Lt(t,e,n,a,i,o,r,s,p,l){var m,d,u,h,b,_,f,g,v,C,w,k,I,D,z,W,j=e.type;if(e.constructor!==void 0)return null;128&n.__u&&(p=!!(32&n.__u),o=[s=e.__e=n.__e]),(m=E.__b)&&m(e);e:if(typeof j=="function"){d=r.length;try{if(v=e.props,C=j.prototype&&j.prototype.render,w=(m=j.contextType)&&a[m.__c],k=m?w?w.props.value:m.__:a,n.__c?g=(u=e.__c=n.__c).__=u.__E:(C?e.__c=u=new j(v,k):(e.__c=u=new qe(v,k),u.constructor=j,u.render=gi),w&&w.sub(u),u.state||(u.state={}),u.__n=a,h=u.__d=!0,u.__h=[],u._sb=[]),C&&u.__s==null&&(u.__s=u.state),C&&j.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=ee({},u.__s)),ee(u.__s,j.getDerivedStateFromProps(v,u.__s))),b=u.props,_=u.state,u.__v=e,h)C&&j.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),C&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(C&&j.getDerivedStateFromProps==null&&v!==b&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,k),e.__v==n.__v||!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,k)===!1){e.__v!=n.__v&&(u.props=v,u.state=u.__s,u.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(B){B&&(B.__=e)}),Je.push.apply(u.__h,u._sb),u._sb=[],u.__h.length&&r.push(u),s=ce(n);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,k),C&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(b,_,f)})}if(u.context=k,u.props=v,u.__P=t,u.__e=!1,I=E.__r,D=0,C)u.state=u.__s,u.__d=!1,I&&I(e),m=u.render(u.props,u.state,u.context),Je.push.apply(u.__h,u._sb),u._sb=[];else do u.__d=!1,I&&I(e),m=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++D<25);u.state=u.__s,u.getChildContext!=null&&(a=ee(ee({},a),u.getChildContext())),C&&!h&&u.getSnapshotBeforeUpdate!=null&&(f=u.getSnapshotBeforeUpdate(b,_)),z=m!=null&&m.type===M&&m.key==null?xn(m.props.children):m,s=yn(t,Xe(z)?z:[z],e,n,a,i,o,r,s,p,l),u.base=e.__e,e.__u&=-161,u.__h.length&&r.push(u),g&&(u.__E=u.__=null)}catch(B){if(r.length=d,e.__v=null,p||o!=null){if(B.then){for(e.__u|=p?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o!=null&&(o[o.indexOf(s)]=null),e.__e=s}else if(o!=null)for(W=o.length;W--;)Pt(o[W])}else e.__e=n.__e;e.__k==null&&(e.__k=n.__k||[]),B.then||Cn(e),E.__e(B,e,n)}}else o==null&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):s=e.__e=hi(n.__e,e,n,a,i,o,r,p,l);return(m=E.diffed)&&m(e),128&e.__u?void 0:s}function Cn(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(Cn))}function wn(t,e,n){for(var a=0;a<n.length;a++)Et(n[a],n[++a],n[++a]);E.__c&&E.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(o){o.call(i)})}catch(o){E.__e(o,i.__v)}})}function xn(t){return typeof t!="object"||t==null||t.__b>0?t:Xe(t)?t.map(xn):t.constructor!==void 0?null:ee({},t)}function hi(t,e,n,a,i,o,r,s,p){var l,m,d,u,h,b,_,f=n.props||We,g=e.props,v=e.type;if(v=="svg"?i="http://www.w3.org/2000/svg":v=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(l=0;l<o.length;l++)if((h=o[l])&&"setAttribute"in h==!!v&&(v?h.localName==v:h.nodeType==3)){t=h,o[l]=null;break}}if(t==null){if(v==null)return document.createTextNode(g);t=document.createElementNS(i,v,g.is&&g),s&&(E.__m&&E.__m(e,o),s=!1),o=null}if(v==null)f===g||s&&t.data==g||(t.data=g);else{if(o=v=="textarea"&&g.defaultValue!=null?null:o&&Ke.call(t.childNodes),!s&&o!=null)for(f={},l=0;l<t.attributes.length;l++)f[(h=t.attributes[l]).name]=h.value;for(l in f)h=f[l],l=="dangerouslySetInnerHTML"?d=h:l=="children"||l in g||l=="value"&&"defaultValue"in g||l=="checked"&&"defaultChecked"in g||Ge(t,l,null,h,i);for(l in g)h=g[l],l=="children"?u=h:l=="dangerouslySetInnerHTML"?m=h:l=="value"?b=h:l=="checked"?_=h:s&&typeof h!="function"||f[l]===h||Ge(t,l,h,f[l],i);if(m)s||d&&(m.__html==d.__html||m.__html==t.innerHTML)||(t.innerHTML=m.__html),e.__k=[];else if(d&&(t.innerHTML=""),yn(e.type=="template"?t.content:t,Xe(u)?u:[u],e,n,a,v=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,r,o?o[0]:n.__k&&ce(n,0),s,p),o!=null)for(l=o.length;l--;)Pt(o[l]);s&&v!="textarea"||(l="value",v=="progress"&&b==null?t.removeAttribute("value"):b!=null&&(b!==t[l]||v=="progress"&&!b||v=="option"&&b!=f[l])&&Ge(t,l,b,f[l],i),l="checked",_!=null&&_!=t[l]&&Ge(t,l,_,f[l],i))}return t}function Et(t,e,n){try{if(typeof t=="function"){var a=typeof t.__u=="function";a&&t.__u(),a&&e==null||(t.__u=t(e))}else t.current=e}catch(i){E.__e(i,n)}}function Sn(t,e,n){var a,i;if(E.unmount&&E.unmount(t),(a=t.ref)&&(a.current&&a.current!=t.__e||Et(a,null,e)),(a=t.__c)!=null){if(a.componentWillUnmount)try{a.componentWillUnmount()}catch(o){E.__e(o,e)}a.base=a.__P=a.__n=null}if(a=t.__k)for(i=0;i<a.length;i++)a[i]&&Sn(a[i],e,n||typeof t.type!="function");n||Pt(t.__e),t.__c=t.__=t.__e=void 0}function gi(t,e,n){return this.constructor(t,n)}function kn(t,e,n){var a,i,o,r;e==document&&(e=document.documentElement),E.__&&E.__(t,e),i=(a=typeof n=="function")?null:n&&n.__k||e.__k,o=[],r=[],Lt(e,t=(!a&&n||e).__k=At(M,null,[t]),i||We,We,e.namespaceURI,!a&&n?[n]:i?null:e.firstChild?Ke.call(e.childNodes):null,o,!a&&n?n:i?i.__e:e.firstChild,a,r),wn(o,t,r),t.props.children=null}function Pe(t){function e(n){var a,i;return this.getChildContext||(a=new Set,(i={})[e.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){a=null},this.shouldComponentUpdate=function(o){this.props.value!=o.value&&a.forEach(function(r){r.__e=!0,St(r)})},this.sub=function(o){a.add(o);var r=o.componentWillUnmount;o.componentWillUnmount=function(){a&&a.delete(o),r&&r.call(o)}}),n.children}return e.__c="__cC"+vn++,e.__=t,e.Provider=e.__l=(e.Consumer=function(n,a){return n.children(a)}).contextType=e,e}Ke=Je.slice,E={__e:function(t,e,n,a){for(var i,o,r;e=e.__;)if((i=e.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(t)),r=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,a||{}),r=i.__d),r)return i.__E=i}catch(s){t=s}throw t}},dn=0,pi=function(t){return t!=null&&t.constructor===void 0},qe.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=ee({},this.state),typeof t=="function"&&(t=t(ee({},n),this.props)),t&&ee(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),St(this))},qe.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),St(this))},qe.prototype.render=M,ie=[],hn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,gn=function(t,e){return t.__v.__b-e.__v.__b},Ze.__r=0,Ct=Math.random().toString(8),Ve="__d"+Ct,ke="__a"+Ct,fn=/(PointerCapture)$|Capture$/i,kt=0,wt=mn(!1),xt=mn(!0),vn=0;var me,T,It,Pn,Qe=0,Rn=[],R=E,An=R.__b,Ln=R.__r,En=R.diffed,In=R.__c,Un=R.unmount,Tn=R.__;function Ae(t,e){R.__h&&R.__h(T,t,Qe||e),Qe=0;var n=T.__H||(T.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function oe(t){return Qe=1,fi(Dn,t)}function fi(t,e,n){var a=Ae(me++,2);if(a.t=t,!a.__c&&(a.__=[n?n(e):Dn(void 0,e),function(s){var p=a.__N?a.__N[0]:a.__[0],l=a.t(p,s);p!==l&&(a.__N=[l,a.__[1]],a.__c.setState({}))}],a.__c=T,!T.__f)){var i=function(s,p,l){if(!a.__c.__H)return!0;var m=!1,d=a.__c.props!==s;if(a.__c.__H.__.some(function(h){if(h.__N){m=!0;var b=h.__[0];h.__=h.__N,h.__N=void 0,b!==h.__[0]&&(d=!0)}}),o){var u=o.call(this,s,p,l);return m?u||d:u}return!m||d};T.__f=!0;var o=T.shouldComponentUpdate,r=T.componentWillUpdate;T.componentWillUpdate=function(s,p,l){if(this.__e){var m=o;o=void 0,i(s,p,l),o=m}r&&r.call(this,s,p,l)},T.shouldComponentUpdate=i}return a.__N||a.__}function et(t,e){var n=Ae(me++,3);!R.__s&&Tt(n.__H,e)&&(n.__=t,n.u=e,T.__H.__h.push(n))}function tt(t,e){var n=Ae(me++,4);!R.__s&&Tt(n.__H,e)&&(n.__=t,n.u=e,T.__h.push(n))}function nt(t){return Qe=5,te(function(){return{current:t}},[])}function te(t,e){var n=Ae(me++,7);return Tt(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function Le(t){var e=T.context[t.__c],n=Ae(me++,9);return n.c=t,e?(n.__==null&&(n.__=!0,e.sub(T)),e.props.value):t.__}function vi(){for(var t;t=Rn.shift();){var e=t.__H;if(t.__P&&e)try{e.__h.some(Ye),e.__h.some(Ut),e.__h=[]}catch(n){e.__h=[],R.__e(n,t.__v)}}}R.__b=function(t){T=null,An&&An(t)},R.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Tn&&Tn(t,e)},R.__r=function(t){Ln&&Ln(t),me=0;var e=(T=t.__c).__H;e&&(It===T?(e.__h=[],T.__h=[],e.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(e.__h.some(Ye),e.__h.some(Ut),e.__h=[],me=0)),It=T},R.diffed=function(t){En&&En(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Rn.push(e)!==1&&Pn===R.requestAnimationFrame||((Pn=R.requestAnimationFrame)||bi)(vi)),e.__H.__.some(function(n){n.u&&(n.__H=n.u,n.u=void 0)})),It=T=null},R.__c=function(t,e){e.some(function(n){try{n.__h.some(Ye),n.__h=n.__h.filter(function(a){return!a.__||Ut(a)})}catch(a){e.some(function(i){i.__h&&(i.__h=[])}),e=[],R.__e(a,n.__v)}}),In&&In(t,e)},R.unmount=function(t){Un&&Un(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.some(function(a){try{Ye(a)}catch(i){e=i}}),n.__H=void 0,e&&R.__e(e,n.__v))};var Nn=typeof requestAnimationFrame=="function";function bi(t){var e,n=function(){clearTimeout(a),Nn&&cancelAnimationFrame(e),setTimeout(t)},a=setTimeout(n,35);Nn&&(e=requestAnimationFrame(n))}function Ye(t){var e=T,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),T=e}function Ut(t){var e=T;t.__c=t.__(),T=e}function Tt(t,e){return!t||t.length!==e.length||e.some(function(n,a){return n!==t[a]})}function Dn(t,e){return typeof e=="function"?e(t):e}var yi=.8999999999999999,_i=.5,Ci=.49999999999999994;function wi(t){let e=Math.sign(t);t=Math.abs(t);let n=.254829592,a=-.284496736,i=1.421413741,o=-1.453152027,r=1.061405429,p=1/(1+.3275911*t),l=p*(n+p*(a+p*(i+p*(o+p*r))));return e*(1-l*Math.exp(-t*t))}function zn({median:t,p10:e},n){if(t<=0)throw new Error("median must be greater than zero");if(e<=0)throw new Error("p10 must be greater than zero");if(e>=t)throw new Error("p10 must be less than the median");if(n<=0)return 1;let a=.9061938024368232,i=Math.max(Number.MIN_VALUE,n/t),o=Math.log(i),r=Math.max(Number.MIN_VALUE,e/t),s=-Math.log(r),p=o*a/s,l=(1-wi(p))/2,m;return n<=e?m=Math.max(.9,Math.min(1,l)):n<=t?m=Math.max(_i,Math.min(yi,l)):m=Math.max(0,Math.min(Ci,l)),m}var ne="…",Si=" ",jn=.9,ki={PASS:{label:"pass",minScore:jn},AVERAGE:{label:"average",minScore:.5},FAIL:{label:"fail"},ERROR:{label:"error"}},Pi=["com","co","gov","edu","ac","org","go","gob","or","net","in","ne","nic","gouv","web","spb","blog","jus","kiev","mil","wi","qc","ca","bel","on"],N=class t{static get RATINGS(){return ki}static get PASS_THRESHOLD(){return jn}static get MS_DISPLAY_VALUE(){return`%10d${Si}ms`}static isPluginCategory(e){return/^(@[a-z0-9-~][a-z0-9-._~]*\/)?lighthouse-plugin-[a-z0-9-._~]*$/.test(e)}static getFinalDisplayedUrl(e){if(e.finalDisplayedUrl)return e.finalDisplayedUrl;if(e.finalUrl)return e.finalUrl;throw new Error("Could not determine final displayed URL")}static getMainDocumentUrl(e){return e.mainDocumentUrl||e.finalUrl}static getFullPageScreenshot(e){return e.fullPageScreenshot?e.fullPageScreenshot:e.audits["full-page-screenshot"]?.details}static getEntityFromUrl(e,n){return n&&n.find(i=>i.origins.find(o=>e.startsWith(o)))||t.getPseudoRootDomain(e)}static splitMarkdownCodeSpans(e){let n=[],a=e.split(/`(.*?)`/g);for(let i=0;i<a.length;i++){let o=a[i];if(!o)continue;let r=i%2!==0;n.push({isCode:r,text:o})}return n}static splitMarkdownLink(e){let n=[],a=e.split(/\[([^\]]+?)\]\((https?:\/\/.*?)\)/g);for(;a.length;){let[i,o,r]=a.splice(0,3);i&&n.push({isLink:!1,text:i}),o&&r&&n.push({isLink:!0,text:o,linkHref:r})}return n}static truncate(e,n,a="…"){if(e.length<=n)return e;let o=new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(e)[Symbol.iterator](),r=0;for(let s=0;s<=n-a.length;s++){let p=o.next();if(p.done)return e;r=p.value.index}for(let s=0;s<a.length;s++)if(o.next().done)return e;return e.slice(0,r)+a}static getURLDisplayName(e,n){n=n||{numPathParts:void 0,preserveQuery:void 0,preserveHost:void 0};let a=n.numPathParts!==void 0?n.numPathParts:2,i=n.preserveQuery!==void 0?n.preserveQuery:!0,o=n.preserveHost||!1,r;if(e.protocol==="about:"||e.protocol==="data:")r=e.href;else{r=e.pathname;let p=r.split("/").filter(l=>l.length);a&&p.length>a&&(r=ne+p.slice(-1*a).join("/")),o&&(r=`${e.host}/${r.replace(/^\//,"")}`),i&&(r=`${r}${e.search}`)}let s=64;if(e.protocol!=="data:"&&(r=r.slice(0,200),r=r.replace(/([a-f0-9]{7})[a-f0-9]{13}[a-f0-9]*/g,`$1${ne}`),r=r.replace(/([a-zA-Z0-9-_]{9})(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])[a-zA-Z0-9-_]{10,}/g,`$1${ne}`),r=r.replace(/(\d{3})\d{6,}/g,`$1${ne}`),r=r.replace(/\u2026+/g,ne),r.length>s&&r.includes("?")&&(r=r.replace(/\?([^=]*)(=)?.*/,`?$1$2${ne}`),r.length>s&&(r=r.replace(/\?.*/,`?${ne}`)))),r.length>s){let p=r.lastIndexOf(".");p>=0?r=r.slice(0,s-1-(r.length-p))+`${ne}${r.slice(p)}`:r=r.slice(0,s-1)+ne}return r}static getChromeExtensionOrigin(e){let n=new URL(e);return n.protocol+"//"+n.host}static parseURL(e){let n=new URL(e);return{file:t.getURLDisplayName(n),hostname:n.hostname,origin:n.protocol==="chrome-extension:"?t.getChromeExtensionOrigin(e):n.origin}}static createOrReturnURL(e){return e instanceof URL?e:new URL(e)}static getPseudoTld(e){let n=e.split(".").slice(-2);return Pi.includes(n[0])?`.${n.join(".")}`:`.${n[n.length-1]}`}static getPseudoRootDomain(e){let n=t.createOrReturnURL(e).hostname,i=t.getPseudoTld(n).split(".");return n.split(".").slice(-i.length).join(".")}static filterRelevantLines(e,n,a){if(n.length===0)return e.slice(0,a*2+1);let i=3,o=new Set;return n=n.sort((r,s)=>(r.lineNumber||0)-(s.lineNumber||0)),n.forEach(({lineNumber:r})=>{let s=r-a,p=r+a;for(;s<1;)s++,p++;o.has(s-i-1)&&(s-=i);for(let l=s;l<=p;l++){let m=l;o.add(m)}}),e.filter(r=>o.has(r.lineNumber))}static computeLogNormalScore(e,n){let a=zn(e,n);return a>.9&&(a+=.05*(a-.9)),Math.floor(a*100)/100}};var Mn=0,y=class t{static i18n=null;static strings={};static reportJson=null;static apply(e){t.strings={...at,...e.providedStrings},t.i18n=e.i18n,t.reportJson=e.reportJson}static getUniqueSuffix(){return Mn++}static resetUniqueSuffix(){Mn=0}};var Hn="data:image/jpeg;base64,";function Fn(t){t.configSettings.locale||(t.configSettings.locale="en"),t.configSettings.formFactor||(t.configSettings.formFactor=t.configSettings.emulatedFormFactor),t.finalDisplayedUrl=N.getFinalDisplayedUrl(t),t.mainDocumentUrl=N.getMainDocumentUrl(t);for(let a of Object.values(t.audits))if((a.scoreDisplayMode==="not_applicable"||a.scoreDisplayMode==="not-applicable")&&(a.scoreDisplayMode="notApplicable"),a.scoreDisplayMode==="informative"&&(a.score=1),a.details){if((a.details.type===void 0||a.details.type==="diagnostic")&&(a.details.type="debugdata"),a.details.type==="filmstrip")for(let i of a.details.items)i.data.startsWith(Hn)||(i.data=Hn+i.data);if(a.details.type==="table")for(let i of a.details.headings){let{itemType:o,text:r}=i;o!==void 0&&(i.valueType=o,delete i.itemType),r!==void 0&&(i.label=r,delete i.text);let s=i.subItemsHeading?.itemType;i.subItemsHeading&&s!==void 0&&(i.subItemsHeading.valueType=s,delete i.subItemsHeading.itemType)}if(a.id==="third-party-summary"&&(a.details.type==="opportunity"||a.details.type==="table")){let{headings:i,items:o}=a.details;if(i[0].valueType==="link"){i[0].valueType="text";for(let r of o)typeof r.entity=="object"&&r.entity.type==="link"&&(r.entity=r.entity.text);a.details.isEntityGrouped=!0}}}let[e]=t.lighthouseVersion.split(".").map(Number),n=t.categories.performance;if(n){if(e<9){t.categoryGroups||(t.categoryGroups={}),t.categoryGroups.hidden={title:""};for(let a of n.auditRefs)a.group?a.group==="load-opportunities"&&(a.group="diagnostics"):a.group="hidden"}else if(e<12)for(let a of n.auditRefs)a.group||(a.group="diagnostics")}if(e<12&&n){let a=new Map;for(let i of n.auditRefs){let o=i.relevantAudits;if(!(!o||!i.acronym))for(let r of o){let s=a.get(r)||[];s.push(i.acronym),a.set(r,s)}}for(let[i,o]of a){if(!o.length)continue;let r=t.audits[i];if(r&&!r.metricSavings){r.metricSavings={};for(let s of o)r.metricSavings[s]=0}}}if(t.environment||(t.environment={benchmarkIndex:0,networkUserAgent:t.userAgent,hostUserAgent:t.userAgent}),t.configSettings.screenEmulation||(t.configSettings.screenEmulation={width:-1,height:-1,deviceScaleFactor:-1,mobile:/mobile/i.test(t.environment.hostUserAgent),disabled:!1}),t.i18n||(t.i18n={}),t.audits["full-page-screenshot"]){let a=t.audits["full-page-screenshot"].details;a?t.fullPageScreenshot={screenshot:a.screenshot,nodes:a.nodes}:t.fullPageScreenshot=null,delete t.audits["full-page-screenshot"]}}var ae=N.RATINGS,P=class t{static prepareReportResult(e){let n=JSON.parse(JSON.stringify(e));Fn(n);for(let i of Object.values(n.audits))i.details&&(i.details.type==="opportunity"||i.details.type==="table")&&!i.details.isEntityGrouped&&n.entities&&t.classifyEntities(n.entities,i.details);if(typeof n.categories!="object")throw new Error("No categories provided.");let a=new Map;for(let i of Object.values(n.categories))i.auditRefs.forEach(o=>{o.acronym&&a.set(o.acronym,o)}),i.auditRefs.forEach(o=>{let r=n.audits[o.id];o.result=r;let s=Object.keys(o.result.metricSavings||{});if(s.length){o.relevantMetrics=[];for(let p of s){let l=a.get(p);l&&o.relevantMetrics.push(l)}}if(n.stackPacks){let p=[o.id,...o.result.replacesAudits??[]];n.stackPacks.forEach(l=>{let m=p.find(d=>l.descriptions[d]);m&&l.descriptions[m]&&(o.stackPacks=o.stackPacks||[],o.stackPacks.push({title:l.title,iconDataURL:l.iconDataURL,description:l.descriptions[m]}))})}});return n}static getUrlLocatorFn(e){let n=e.find(i=>i.valueType==="url")?.key;if(n&&typeof n=="string")return i=>{let o=i[n];if(typeof o=="string")return o};let a=e.find(i=>i.valueType==="source-location")?.key;if(a)return i=>{let o=i[a];if(typeof o=="object"&&o.type==="source-location")return o.url}}static classifyEntities(e,n){let{items:a,headings:i}=n;if(!a.length||a.some(r=>r.entity))return;let o=t.getUrlLocatorFn(i);if(o)for(let r of a){let s=o(r);if(!s)continue;let p="";try{p=N.parseURL(s).origin}catch{}if(!p)continue;let l=e.find(m=>m.origins.includes(p));l&&(r.entity=l.name)}}static getTableItemSortComparator(e){return(n,a)=>{for(let i of e){let o=n[i],r=a[i];if((typeof o!=typeof r||!["number","string"].includes(typeof o))&&console.warn(`Warning: Attempting to sort unsupported value type: ${i}.`),typeof o=="number"&&typeof r=="number"&&o!==r)return r-o;if(typeof o=="string"&&typeof r=="string"&&o!==r)return o.localeCompare(r)}return 0}}static getEmulationDescriptions(e){let n,a,i,o=e.throttling,r=y.i18n,s=y.strings;switch(e.throttlingMethod){case"provided":i=a=n=s.throttlingProvided;break;case"devtools":{let{cpuSlowdownMultiplier:u,requestLatencyMs:h}=o;n=`${r.formatNumber(u)}x slowdown (DevTools)`,a=`${r.formatMilliseconds(h)} HTTP RTT, ${r.formatKbps(o.downloadThroughputKbps)} down, ${r.formatKbps(o.uploadThroughputKbps)} up (DevTools)`,i=h===150*3.75&&o.downloadThroughputKbps===1.6*1024*.9&&o.uploadThroughputKbps===750*.9?s.runtimeSlow4g:s.runtimeCustom;break}case"simulate":{let{cpuSlowdownMultiplier:u,rttMs:h,throughputKbps:b}=o;n=`${r.formatNumber(u)}x slowdown (Simulated)`,a=`${r.formatMilliseconds(h)} TCP RTT, ${r.formatKbps(b)} throughput (Simulated)`,i=h===150&&b===1.6*1024?s.runtimeSlow4g:s.runtimeCustom;break}default:i=n=a=s.runtimeUnknown}let p=e.channel==="devtools"?!1:e.screenEmulation.disabled,l=e.channel==="devtools"?e.formFactor==="mobile":e.screenEmulation.mobile,m=s.runtimeMobileEmulation;p?m=s.runtimeNoEmulation:l||(m=s.runtimeDesktopEmulation);let d=p?void 0:`${e.screenEmulation.width}x${e.screenEmulation.height}, DPR ${e.screenEmulation.deviceScaleFactor}`;return{deviceEmulation:m,screenEmulation:d,cpuThrottling:n,networkThrottling:a,summary:i}}static showAsPassed(e){switch(e.scoreDisplayMode){case"manual":case"notApplicable":return!0;case"error":case"informative":return!1;default:return Number(e.score)>=ae.PASS.minScore}}static calculateRating(e,n){if(n==="manual"||n==="notApplicable")return ae.PASS.label;if(n==="error")return ae.ERROR.label;if(e===null)return ae.FAIL.label;let a=ae.FAIL.label;return e>=ae.PASS.minScore?a=ae.PASS.label:e>=ae.AVERAGE.minScore&&(a=ae.AVERAGE.label),a}static calculateCategoryFraction(e){let n=0,a=0,i=0,o=0;for(let r of e.auditRefs){let s=t.showAsPassed(r.result);if(!(r.group==="hidden"||r.result.scoreDisplayMode==="manual"||r.result.scoreDisplayMode==="notApplicable")){if(r.result.scoreDisplayMode==="informative"){s||++i;continue}++n,o+=r.weight,s&&a++}}return{numPassed:a,numPassableAudits:n,numInformative:i,totalWeight:o}}static isPluginCategory(e){return N.isPluginCategory(e)}static shouldDisplayAsFraction(e,n){return e==="timespan"||e==="snapshot"||n?.categoryScoreDisplayMode==="fraction"}},at={varianceDisclaimer:"Values are estimated and may vary. The [performance score is calculated](https://developer.chrome.com/docs/lighthouse/performance/performance-scoring/) directly from these metrics.",calculatorLink:"See calculator.",showRelevantAudits:"Show audits relevant to:",opportunityResourceColumnLabel:"Opportunity",opportunitySavingsColumnLabel:"Estimated Savings",errorMissingAuditInfo:"Report error: no audit information",errorLabel:"Error!",warningHeader:"Warnings: ",warningAuditsGroupTitle:"Passed audits but with warnings",passedAuditsGroupTitle:"Passed audits",notApplicableAuditsGroupTitle:"Not applicable",manualAuditsGroupTitle:"Additional items to manually check",toplevelWarningsMessage:"There were issues affecting this run of Lighthouse:",crcInitialNavigation:"Initial Navigation",crcLongestDurationLabel:"Maximum critical path latency:",snippetExpandButtonLabel:"Expand snippet",snippetCollapseButtonLabel:"Collapse snippet",lsPerformanceCategoryDescription:"[Lighthouse](https://developers.google.com/web/tools/lighthouse/) analysis of the current page on an emulated mobile network. Values are estimated and may vary.",labDataTitle:"Lab Data",thirdPartyResourcesLabel:"Show 3rd-party resources",viewTreemapLabel:"View Treemap",viewTraceLabel:"View Trace",dropdownPrintSummary:"Print Summary",dropdownPrintExpanded:"Print Expanded",dropdownCopyJSON:"Copy JSON",dropdownSaveHTML:"Save as HTML",dropdownSaveJSON:"Save as JSON",dropdownViewer:"Open in Viewer",dropdownSaveGist:"Save as Gist",dropdownDarkTheme:"Toggle Dark Theme",dropdownViewUnthrottledTrace:"View Unthrottled Trace",runtimeSettingsDevice:"Device",runtimeSettingsNetworkThrottling:"Network throttling",runtimeSettingsCPUThrottling:"CPU throttling",runtimeSettingsUANetwork:"User agent (network)",runtimeSettingsBenchmark:"Unthrottled CPU/Memory Power",runtimeSettingsAxeVersion:"Axe version",runtimeSettingsArdVersion:"ARD version",runtimeSettingsScreenEmulation:"Screen emulation",footerIssue:"File an issue",runtimeNoEmulation:"No emulation",runtimeMobileEmulation:"Emulated Moto G Power",runtimeDesktopEmulation:"Emulated Desktop",runtimeUnknown:"Unknown",runtimeSingleLoad:"Single page session",runtimeAnalysisWindow:"Initial page load",runtimeAnalysisWindowTimespan:"User interactions timespan",runtimeAnalysisWindowSnapshot:"Point-in-time snapshot",runtimeSingleLoadTooltip:"This data is taken from a single page session, as opposed to field data summarizing many sessions.",throttlingProvided:"Provided by environment",show:"Show",hide:"Hide",expandView:"Expand view",collapseView:"Collapse view",runtimeSlow4g:"Slow 4G throttling",runtimeCustom:"Custom throttling",firstPartyChipLabel:"1st party",openInANewTabTooltip:"Open in a new tab",unattributable:"Unattributable",unscoredLabel:"Unscored",unscoredTitle:"This audit does not contribute to the overall category score."};var Ai=0;function c(t,e,n,a,i,o){e||(e={});var r,s,p=e;if("ref"in p)for(s in p={},e)s=="ref"?r=e[s]:p[s]=e[s];var l={type:t,props:p,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ai,__i:-1,__u:0,__source:i,__self:o};if(typeof t=="function"&&(r=t.defaultProps))for(s in r)p[s]===void 0&&(p[s]=r[s]);return E.vnode&&E.vnode(l),l}var Bn=()=>c("svg",{width:"14",viewBox:"0 0 18 16",fill:"none",role:"img",children:c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 2C0 1.17 0.67 0.5 1.5 0.5C2.33 0.5 3 1.17 3 2C3 2.83 2.33 3.5 1.5 3.5C0.67 3.5 0 2.83 0 2ZM0 8C0 7.17 0.67 6.5 1.5 6.5C2.33 6.5 3 7.17 3 8C3 8.83 2.33 9.5 1.5 9.5C0.67 9.5 0 8.83 0 8ZM1.5 12.5C0.67 12.5 0 13.18 0 14C0 14.82 0.68 15.5 1.5 15.5C2.32 15.5 3 14.82 3 14C3 13.18 2.33 12.5 1.5 12.5ZM18 15H5V13H18V15ZM5 9H18V7H5V9ZM5 3V1H18V3H5Z",fill:"currentColor"})}),it=()=>c("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",role:"img","aria-label":"Icon representing a navigation report",children:c("circle",{cx:"8",cy:"8",r:"7",fill:"none",stroke:"currentColor","stroke-width":"2"})}),ot=()=>c("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",role:"img","aria-label":"Icon representing a timespan report",children:[c("circle",{cx:"8",cy:"8",r:"7",fill:"none",stroke:"currentColor","stroke-width":"2"}),c("path",{d:"m 8,4 v 4 l 4,1.9999998",stroke:"currentColor","stroke-width":"1.5"})]}),rt=()=>c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",role:"img","aria-label":"Icon representing a snapshot report",children:c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M 12.2038,12.2812 C 11.1212,13.3443 9.6372,14 8,14 7.81038,14 7.62281,13.9912 7.43768,13.974 L 10.3094,9 Z M 12.8925,11.4741 10.0207,6.5 H 13.811 C 13.9344,6.97943 14,7.48205 14,8 c 0,1.2947 -0.4101,2.4937 -1.1075,3.4741 z M 13.456,5.5 H 7.71135 L 9.6065,2.21749 C 11.3203,2.69259 12.7258,3.90911 13.456,5.5 Z M 8.5624,2.02601 C 8.3772,2.0088 8.1896,2 8,2 6.36282,2 4.8788,2.65572 3.79622,3.71885 L 5.69061,7.00002 Z M 3.10749,4.52594 C 2.4101,5.5063 2,6.70526 2,8 2,8.5179 2.06563,9.0206 2.18903,9.5 H 5.97927 Z M 2.54404,10.5 c 0.73017,1.5909 2.1357,2.8074 3.84949,3.2825 L 8.2887,10.5 Z M 16,8 c 0,4.4183 -3.5817,8 -8,8 C 3.58172,16 0,12.4183 0,8 0,3.58172 3.58172,0 8,0 c 4.4183,0 8,3.58172 8,8 z",fill:"currentColor"})}),On=()=>c("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",role:"img","aria-label":"Icon representing a close action",children:[c("path",{d:"M0 0h24v24H0V0z",fill:"none"}),c("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"})]}),Gn=()=>c("svg",{width:"15",height:"12",viewBox:"0 0 15 12",fill:"none",role:"img",children:c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.33317 2.00008H13.9998V0.666748H3.33317C2.59984 0.666748 1.99984 1.26675 1.99984 2.00008V9.33341H0.666504V11.3334H7.99984V9.33341H3.33317V2.00008ZM13.9998 3.33341H9.99984C9.63317 3.33341 9.33317 3.63341 9.33317 4.00008V10.6667C9.33317 11.0334 9.63317 11.3334 9.99984 11.3334H13.9998C14.3665 11.3334 14.6665 11.0334 14.6665 10.6667V4.00008C14.6665 3.63341 14.3665 3.33341 13.9998 3.33341ZM10.6665 9.33341H13.3332V4.66675H10.6665V9.33341Z",fill:"currentColor"})}),Vn=()=>c("svg",{width:"16",height:"11",viewBox:"0 0 16 11",fill:"none",role:"img",children:c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.666687 3.26663L2.00002 4.59997C3.92002 2.67997 6.52669 1.87997 9.02002 2.18663L9.81335 0.399966C6.59335 -0.173367 3.16002 0.779966 0.666687 3.26663ZM10.6 0.599966C10.4867 0.599966 10.3867 0.659966 10.3267 0.753299L10.28 0.853299L6.82669 8.61996C6.72002 8.8133 6.65335 9.02663 6.65335 9.25996C6.65335 9.99996 7.25335 10.6 7.99335 10.6C8.63335 10.6 9.17335 10.1466 9.30002 9.53996L9.30669 9.51997L10.9334 0.933299C10.9334 0.746633 10.7867 0.599966 10.6 0.599966ZM15.3334 3.26663L14 4.59997C13.1867 3.78663 12.2534 3.17997 11.2534 2.76663L11.6067 0.886633C12.9667 1.38663 14.24 2.1733 15.3334 3.26663ZM11.3334 7.26663L12.6667 5.9333C12.1334 5.39997 11.5334 4.98663 10.8934 4.6733L10.5267 6.61997C10.8067 6.79997 11.08 7.0133 11.3334 7.26663ZM4.66669 7.26663L3.33335 5.9333C4.67335 4.5933 6.45335 3.95997 8.20669 4.0133L7.35335 5.9333C6.37335 6.0733 5.42002 6.5133 4.66669 7.26663Z",fill:"currentColor"})}),$n=()=>c("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",role:"img",children:c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.5 7.16667V5.5H13.8333V3.83333C13.8333 2.91667 13.0833 2.16667 12.1667 2.16667H10.5V0.5H8.83333V2.16667H7.16667V0.5H5.5V2.16667H3.83333C2.91667 2.16667 2.16667 2.91667 2.16667 3.83333V5.5H0.5V7.16667H2.16667V8.83333H0.5V10.5H2.16667V12.1667C2.16667 13.0833 2.91667 13.8333 3.83333 13.8333H5.5V15.5H7.16667V13.8333H8.83333V15.5H10.5V13.8333H12.1667C13.0833 13.8333 13.8333 13.0833 13.8333 12.1667V10.5H15.5V8.83333H13.8333V7.16667H15.5ZM10.5 5.5H5.5V10.5H10.5V5.5ZM3.83333 12.1667H12.1667V3.83333H3.83333V12.1667Z",fill:"currentColor"})}),qn=()=>c("svg",{viewBox:"0 0 18 12",width:"18",height:"12",role:"img",children:[c("rect",{width:"18",height:"2",fill:"currentColor"}),c("rect",{y:"5",width:"18",height:"2",fill:"currentColor"}),c("rect",{y:"10",width:"18",height:"2",fill:"currentColor"})]}),Wn=()=>c("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 7C13 10.3137 10.3137 13 7 13C3.68629 13 1 10.3137 1 7C1 3.68629 3.68629 1 7 1C10.3137 1 13 3.68629 13 7ZM14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7C0 3.13401 3.13401 0 7 0C10.866 0 14 3.13401 14 7ZM7.66658 11H6.33325V9.66667H7.66658V11ZM4.33325 5.66667C4.33325 4.19333 5.52659 3 6.99992 3C8.47325 3 9.66658 4.19333 9.66658 5.66667C9.66658 6.52194 9.1399 6.98221 8.62709 7.43036C8.1406 7.85551 7.66658 8.26975 7.66658 9H6.33325C6.33325 7.78582 6.96133 7.30439 7.51355 6.88112C7.94674 6.54907 8.33325 6.25281 8.33325 5.66667C8.33325 4.93333 7.73325 4.33333 6.99992 4.33333C6.26658 4.33333 5.66658 4.93333 5.66658 5.66667H4.33325Z",fill:"currentColor"})});var Nt=Pe(void 0),Rt=Pe({});function Jn(t){return new URLSearchParams(location.hash.replace("#","?")).get(t)}function be(...t){let e=[];for(let n of t){if(!n)continue;if(typeof n=="string"){e.push(n);continue}let a=Object.entries(n).filter(([i,o])=>o).map(([i])=>i);e.push(...a)}return e.join(" ")}function Zn(t){let{width:e,height:n}=t.configSettings.screenEmulation;return{width:e,height:n}}function Kn(t){let e=t.audits["screenshot-thumbnails"];return e&&e.details&&e.details.type==="filmstrip"&&e.details.items||void 0}function st(t,e){switch(t){case"navigation":return e.navigationDescription;case"timespan":return e.timespanDescription;case"snapshot":return e.snapshotDescription}}function $(){let t=Le(Nt);if(!t)throw Error("useFlowResult must be called in the FlowResultContext");return t}function Li(...t){let[e,n]=oe(t.map(Jn));return et(()=>{function a(){let i=t.map(Jn);i.every((o,r)=>o===e[r])||n(i)}return window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[e]),e}function ye(){let t=$(),[e,n]=Li("index","anchor");return te(()=>{if(!e)return null;let a=Number(e);if(!Number.isFinite(a))return console.warn(`Invalid hash index: ${e}`),null;let i=t.steps[a];return i?{currentLhr:i.lhr,index:a,anchor:n}:(console.warn(`No flow step at index ${a}`),null)},[e,t,n])}function re(t,e){let n=nt(null);return tt(()=>{if(!n.current)return;let a=t();return n.current.append(a),()=>{n.current?.contains(a)&&n.current.removeChild(a)}},e),n}function Xn(){return Le(Rt)}var Ei=500,Z=()=>c("div",{className:"Separator",role:"separator"}),Dt=({mode:t})=>c(M,{children:[t==="navigation"&&c(it,{}),t==="timespan"&&c(ot,{}),t==="snapshot"&&c(rt,{})]}),se=({mode:t})=>c("div",{className:"FlowSegment",children:[c("div",{className:"FlowSegment__top-line"}),t&&c(Dt,{mode:t}),c("div",{className:"FlowSegment__bottom-line"})]}),Ii=({frames:t,width:e,height:n})=>{let[a,i]=oe(0),o=a%t.length;et(()=>{let p=setInterval(()=>i(l=>(l+1)%t.length),Ei);return()=>clearInterval(p)},[t.length]);let r=t[o].data,s=r.startsWith("data:image/")?r:void 0;return c("img",{className:"FlowStepThumbnail","data-testid":"FlowStepAnimatedThumbnail",src:s,style:{width:e,height:n},alt:"Animated screenshots of a page tested by Lighthouse"})},lt=({lhr:t,width:e,height:n})=>{let a=Kn(t),i=Zn(t);if(e&&n===void 0?n=i.height*e/i.width:n&&e===void 0&&(e=i.width*n/i.height),!e||!n)return console.warn(new Error("FlowStepThumbnail requested without any dimensions").stack),c(M,{});let o;if(a?.length){if(o=a[a.length-1].data,t.gatherMode==="timespan")return c(Ii,{frames:a,width:e,height:n})}else o=N.getFullPageScreenshot(t)?.screenshot.data;return c(M,{children:o&&o.startsWith("data:image/")&&c("img",{className:"FlowStepThumbnail",src:o,style:{width:e,height:n},alt:"Screenshot of a page tested by Lighthouse"})})};var zt=function(t,e){return zt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},zt(t,e)};function Ee(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");zt(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var S=function(){return S=Object.assign||function(e){for(var n,a=1,i=arguments.length;a<i;a++){n=arguments[a];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},S.apply(this,arguments)};function Yn(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(t);i<a.length;i++)e.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(t,a[i])&&(n[a[i]]=t[a[i]]);return n}function pt(t,e,n){if(n||arguments.length===2)for(var a=0,i=e.length,o;a<i;a++)(o||!(a in e))&&(o||(o=Array.prototype.slice.call(e,0,a)),o[a]=e[a]);return t.concat(o||Array.prototype.slice.call(e))}function ut(t,e){var n=e&&e.cache?e.cache:ji,a=e&&e.serializer?e.serializer:Di,i=e&&e.strategy?e.strategy:Ti;return i(t,{cache:n,serializer:a})}function Ui(t){return t==null||typeof t=="number"||typeof t=="boolean"}function Qn(t,e,n,a){var i=Ui(a)?a:n(a),o=e.get(i);return typeof o>"u"&&(o=t.call(this,a),e.set(i,o)),o}function ea(t,e,n){var a=Array.prototype.slice.call(arguments,3),i=n(a),o=e.get(i);return typeof o>"u"&&(o=t.apply(this,a),e.set(i,o)),o}function jt(t,e,n,a,i){return n.bind(e,t,a,i)}function Ti(t,e){var n=t.length===1?Qn:ea;return jt(t,this,n,e.cache.create(),e.serializer)}function Ni(t,e){return jt(t,this,ea,e.cache.create(),e.serializer)}function Ri(t,e){return jt(t,this,Qn,e.cache.create(),e.serializer)}var Di=function(){return JSON.stringify(arguments)},zi=(function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(e){return this.cache[e]},t.prototype.set=function(e,n){this.cache[e]=n},t})(),ji={create:function(){return new zi}},ct={variadic:Ni,monadic:Ri};var x;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(x||(x={}));var U;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(U||(U={}));var de;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(de||(de={}));function Mt(t){return t.type===U.literal}function Ht(t){return t.type===U.argument}function Ie(t){return t.type===U.number}function Ue(t){return t.type===U.date}function Te(t){return t.type===U.time}function Ne(t){return t.type===U.select}function Re(t){return t.type===U.plural}function ta(t){return t.type===U.pound}function De(t){return t.type===U.tag}function mt(t){return!!(t&&typeof t=="object"&&t.type===de.number)}function ze(t){return!!(t&&typeof t=="object"&&t.type===de.dateTime)}var Ft=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;var Mi=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function na(t){var e={};return t.replace(Mi,function(n){var a=n.length;switch(n[0]){case"G":e.era=a===4?"long":a===5?"narrow":"short";break;case"y":e.year=a===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][a-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][a-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=a===4?"long":a===5?"narrow":"short";break;case"e":if(a<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][a-4];break;case"c":if(a<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][a-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][a-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][a-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][a-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][a-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][a-1];break;case"s":e.second=["numeric","2-digit"][a-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=a<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),e}var aa=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function sa(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var e=t.split(aa).filter(function(u){return u.length>0}),n=[],a=0,i=e;a<i.length;a++){var o=i[a],r=o.split("/");if(r.length===0)throw new Error("Invalid number skeleton");for(var s=r[0],p=r.slice(1),l=0,m=p;l<m.length;l++){var d=m[l];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:s,options:p})}return n}function Hi(t){return t.replace(/^(.*?)-/,"")}var ia=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,la=/^(@+)?(\+|#+)?[rs]?$/g,Fi=/(\*)(0+)|(#+)(0+)|(0+)/g,pa=/^(0+)$/;function oa(t){var e={};return t[t.length-1]==="r"?e.roundingPriority="morePrecision":t[t.length-1]==="s"&&(e.roundingPriority="lessPrecision"),t.replace(la,function(n,a,i){return typeof i!="string"?(e.minimumSignificantDigits=a.length,e.maximumSignificantDigits=a.length):i==="+"?e.minimumSignificantDigits=a.length:a[0]==="#"?e.maximumSignificantDigits=a.length:(e.minimumSignificantDigits=a.length,e.maximumSignificantDigits=a.length+(typeof i=="string"?i.length:0)),""}),e}function ua(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Bi(t){var e;if(t[0]==="E"&&t[1]==="E"?(e={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if(n==="+!"?(e.signDisplay="always",t=t.slice(2)):n==="+?"&&(e.signDisplay="exceptZero",t=t.slice(2)),!pa.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function ra(t){var e={},n=ua(t);return n||e}function ca(t){for(var e={},n=0,a=t;n<a.length;n++){var i=a[n];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=Hi(i.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=S(S(S({},e),{notation:"scientific"}),i.options.reduce(function(p,l){return S(S({},p),ra(l))},{}));continue;case"engineering":e=S(S(S({},e),{notation:"engineering"}),i.options.reduce(function(p,l){return S(S({},p),ra(l))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Fi,function(p,l,m,d,u,h){if(l)e.minimumIntegerDigits=m.length;else{if(d&&u)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(pa.test(i.stem)){e.minimumIntegerDigits=i.stem.length;continue}if(ia.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ia,function(p,l,m,d,u,h){return m==="*"?e.minimumFractionDigits=l.length:d&&d[0]==="#"?e.maximumFractionDigits=d.length:u&&h?(e.minimumFractionDigits=u.length,e.maximumFractionDigits=u.length+h.length):(e.minimumFractionDigits=l.length,e.maximumFractionDigits=l.length),""});var o=i.options[0];o==="w"?e=S(S({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=S(S({},e),oa(o)));continue}if(la.test(i.stem)){e=S(S({},e),oa(i.stem));continue}var r=ua(i.stem);r&&(e=S(S({},e),r));var s=Bi(i.stem);s&&(e=S(S({},e),s))}return e}var je={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function ma(t,e){for(var n="",a=0;a<t.length;a++){var i=t.charAt(a);if(i==="j"){for(var o=0;a+1<t.length&&t.charAt(a+1)===i;)o++,a++;var r=1+(o&1),s=o<2?1:3+(o>>1),p="a",l=Oi(e);for((l=="H"||l=="k")&&(s=0);s-- >0;)n+=p;for(;r-- >0;)n=l+n}else i==="J"?n+="H":n+=i}return n}function Oi(t){var e=t.hourCycle;if(e===void 0&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=t.language,a;n!=="root"&&(a=t.maximize().region);var i=je[a||""]||je[n||""]||je["".concat(n,"-001")]||je["001"];return i[0]}var Bt,Gi=new RegExp("^".concat(Ft.source,"*")),Vi=new RegExp("".concat(Ft.source,"*$"));function A(t,e){return{start:t,end:e}}var $i=!!String.prototype.startsWith&&"_a".startsWith("a",1),qi=!!String.fromCodePoint,Wi=!!Object.fromEntries,Ji=!!String.prototype.codePointAt,Zi=!!String.prototype.trimStart,Ki=!!String.prototype.trimEnd,Xi=!!Number.isSafeInteger,Yi=Xi?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Gt=!0;try{da=va("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Gt=((Bt=da.exec("a"))===null||Bt===void 0?void 0:Bt[0])==="a"}catch{Gt=!1}var da,ha=$i?function(e,n,a){return e.startsWith(n,a)}:function(e,n,a){return e.slice(a,a+n.length)===n},Vt=qi?String.fromCodePoint:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var a="",i=e.length,o=0,r;i>o;){if(r=e[o++],r>1114111)throw RangeError(r+" is not a valid code point");a+=r<65536?String.fromCharCode(r):String.fromCharCode(((r-=65536)>>10)+55296,r%1024+56320)}return a},ga=Wi?Object.fromEntries:function(e){for(var n={},a=0,i=e;a<i.length;a++){var o=i[a],r=o[0],s=o[1];n[r]=s}return n},fa=Ji?function(e,n){return e.codePointAt(n)}:function(e,n){var a=e.length;if(!(n<0||n>=a)){var i=e.charCodeAt(n),o;return i<55296||i>56319||n+1===a||(o=e.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},Qi=Zi?function(e){return e.trimStart()}:function(e){return e.replace(Gi,"")},eo=Ki?function(e){return e.trimEnd()}:function(e){return e.replace(Vi,"")};function va(t,e){return new RegExp(t,e)}var $t;Gt?(Ot=va("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),$t=function(e,n){var a;Ot.lastIndex=n;var i=Ot.exec(e);return(a=i[1])!==null&&a!==void 0?a:""}):$t=function(e,n){for(var a=[];;){var i=fa(e,n);if(i===void 0||ya(i)||ao(i))break;a.push(i),n+=i>=65536?2:1}return Vt.apply(void 0,a)};var Ot,ba=(function(){function t(e,n){n===void 0&&(n={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(e,n,a){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var r=this.parseArgument(e,a);if(r.err)return r;i.push(r.val)}else{if(o===125&&e>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:U.pound,location:A(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(a)break;return this.error(x.UNMATCHED_CLOSING_TAG,A(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&qt(this.peek()||0)){var r=this.parseTag(e,n);if(r.err)return r;i.push(r.val)}else{var r=this.parseLiteral(e,n);if(r.err)return r;i.push(r.val)}}}return{val:i,err:null}},t.prototype.parseTag=function(e,n){var a=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:U.literal,value:"<".concat(i,"/>"),location:A(a,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,n,!0);if(o.err)return o;var r=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!qt(this.char()))return this.error(x.INVALID_TAG,A(s,this.clonePosition()));var p=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(x.UNMATCHED_CLOSING_TAG,A(p,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:U.tag,value:i,children:r,location:A(a,this.clonePosition())},err:null}:this.error(x.INVALID_TAG,A(s,this.clonePosition())))}else return this.error(x.UNCLOSED_TAG,A(a,this.clonePosition()))}else return this.error(x.INVALID_TAG,A(a,this.clonePosition()))},t.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&no(this.char());)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(e,n){for(var a=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var r=this.tryParseUnquoted(e,n);if(r){i+=r;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var p=A(a,this.clonePosition());return{val:{type:U.literal,value:i,location:p},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!to(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var a=this.char();if(a===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(a);this.bump()}return Vt.apply(void 0,n)},t.prototype.tryParseUnquoted=function(e,n){if(this.isEOF())return null;var a=this.char();return a===60||a===123||a===35&&(n==="plural"||n==="selectordinal")||a===125&&e>0?null:(this.bump(),Vt(a))},t.prototype.parseArgument=function(e,n){var a=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,A(a,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(x.EMPTY_ARGUMENT,A(a,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(x.MALFORMED_ARGUMENT,A(a,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,A(a,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:U.argument,value:i,location:A(a,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,A(a,this.clonePosition())):this.parseArgumentOptions(e,n,i,a);default:return this.error(x.MALFORMED_ARGUMENT,A(a,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),n=this.offset(),a=$t(this.message,n),i=n+a.length;this.bumpTo(i);var o=this.clonePosition(),r=A(e,o);return{value:a,location:r}},t.prototype.parseArgumentOptions=function(e,n,a,i){var o,r=this.clonePosition(),s=this.parseIdentifierIfPossible().value,p=this.clonePosition();switch(s){case"":return this.error(x.EXPECT_ARGUMENT_TYPE,A(r,p));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var m=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var u=eo(d.val);if(u.length===0)return this.error(x.EXPECT_ARGUMENT_STYLE,A(this.clonePosition(),this.clonePosition()));var h=A(m,this.clonePosition());l={style:u,styleLocation:h}}var b=this.tryParseArgumentClose(i);if(b.err)return b;var _=A(i,this.clonePosition());if(l&&ha(l?.style,"::",0)){var f=Qi(l.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(f,l.styleLocation);return d.err?d:{val:{type:U.number,value:a,location:_,style:d.val},err:null}}else{if(f.length===0)return this.error(x.EXPECT_DATE_TIME_SKELETON,_);var g=f;this.locale&&(g=ma(f,this.locale));var u={type:de.dateTime,pattern:g,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?na(g):{}},v=s==="date"?U.date:U.time;return{val:{type:v,value:a,location:_,style:u},err:null}}}return{val:{type:s==="number"?U.number:s==="date"?U.date:U.time,value:a,location:_,style:(o=l?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS,A(C,S({},C)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),k=0;if(s!=="select"&&w.value==="offset"){if(!this.bumpIf(":"))return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,A(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),w=this.parseIdentifierIfPossible(),k=d.val}var I=this.tryParsePluralOrSelectOptions(e,s,n,w);if(I.err)return I;var b=this.tryParseArgumentClose(i);if(b.err)return b;var D=A(i,this.clonePosition());return s==="select"?{val:{type:U.select,value:a,options:ga(I.val),location:D},err:null}:{val:{type:U.plural,value:a,options:ga(I.val),offset:k,pluralType:s==="plural"?"cardinal":"ordinal",location:D},err:null}}default:return this.error(x.INVALID_ARGUMENT_TYPE,A(r,p))}},t.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,A(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,n=this.clonePosition();!this.isEOF();){var a=this.char();switch(a){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,A(i,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(e,n){var a=[];try{a=sa(e)}catch{return this.error(x.INVALID_NUMBER_SKELETON,n)}return{val:{type:de.number,tokens:a,location:n,parsedOptions:this.shouldParseSkeletons?ca(a):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(e,n,a,i){for(var o,r=!1,s=[],p=new Set,l=i.value,m=i.location;;){if(l.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var u=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR,x.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;m=A(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(p.has(l))return this.error(n==="select"?x.DUPLICATE_SELECT_ARGUMENT_SELECTOR:x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,m);l==="other"&&(r=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,A(this.clonePosition(),this.clonePosition()));var b=this.parseMessage(e+1,n,a);if(b.err)return b;var _=this.tryParseArgumentClose(h);if(_.err)return _;s.push([l,{value:b.val,location:A(h,this.clonePosition())}]),p.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,m=o.location}return s.length===0?this.error(n==="select"?x.EXPECT_SELECT_ARGUMENT_SELECTOR:x.EXPECT_PLURAL_ARGUMENT_SELECTOR,A(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!r?this.error(x.MISSING_OTHER_CLAUSE,A(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(e,n){var a=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(a=-1);for(var o=!1,r=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,r=r*10+(s-48),this.bump();else break}var p=A(i,this.clonePosition());return o?(r*=a,Yi(r)?{val:r,err:null}:this.error(n,p)):this.error(e,p)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var n=fa(this.message,e);if(n===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return n},t.prototype.error=function(e,n){return{val:null,err:{kind:e,message:this.message,location:n}}},t.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},t.prototype.bumpIf=function(e){if(ha(this.message,e,this.offset())){for(var n=0;n<e.length;n++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(e){var n=this.offset(),a=this.message.indexOf(e,n);return a>=0?(this.bumpTo(a),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var n=this.offset();if(n===e)break;if(n>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&ya(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),n=this.offset(),a=this.message.charCodeAt(n+(e>=65536?2:1));return a??null},t})();function qt(t){return t>=97&&t<=122||t>=65&&t<=90}function to(t){return qt(t)||t===47}function no(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function ya(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function ao(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function Wt(t){t.forEach(function(e){if(delete e.location,Ne(e)||Re(e))for(var n in e.options)delete e.options[n].location,Wt(e.options[n].value);else Ie(e)&&mt(e.style)||(Ue(e)||Te(e))&&ze(e.style)?delete e.style.location:De(e)&&Wt(e.children)})}function _a(t,e){e===void 0&&(e={}),e=S({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var n=new ba(t,e).parse();if(n.err){var a=SyntaxError(x[n.err.kind]);throw a.location=n.err.location,a.originalMessage=n.err.message,a}return e?.captureLocation||Wt(n.val),n.val}var he;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(he||(he={}));var Me=(function(t){Ee(e,t);function e(n,a,i){var o=t.call(this,n)||this;return o.code=a,o.originalMessage=i,o}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e})(Error);var Jt=(function(t){Ee(e,t);function e(n,a,i,o){return t.call(this,'Invalid values for "'.concat(n,'": "').concat(a,'". Options are "').concat(Object.keys(i).join('", "'),'"'),he.INVALID_VALUE,o)||this}return e})(Me);var Ca=(function(t){Ee(e,t);function e(n,a,i){return t.call(this,'Value for "'.concat(n,'" must be of type ').concat(a),he.INVALID_VALUE,i)||this}return e})(Me);var wa=(function(t){Ee(e,t);function e(n,a){return t.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(a,'"'),he.MISSING_VALUE,a)||this}return e})(Me);var O;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(O||(O={}));function io(t){return t.length<2?t:t.reduce(function(e,n){var a=e[e.length-1];return!a||a.type!==O.literal||n.type!==O.literal?e.push(n):a.value+=n.value,e},[])}function oo(t){return typeof t=="function"}function He(t,e,n,a,i,o,r){if(t.length===1&&Mt(t[0]))return[{type:O.literal,value:t[0].value}];for(var s=[],p=0,l=t;p<l.length;p++){var m=l[p];if(Mt(m)){s.push({type:O.literal,value:m.value});continue}if(ta(m)){typeof o=="number"&&s.push({type:O.literal,value:n.getNumberFormat(e).format(o)});continue}var d=m.value;if(!(i&&d in i))throw new wa(d,r);var u=i[d];if(Ht(m)){(!u||typeof u=="string"||typeof u=="number")&&(u=typeof u=="string"||typeof u=="number"?String(u):""),s.push({type:typeof u=="string"?O.literal:O.object,value:u});continue}if(Ue(m)){var h=typeof m.style=="string"?a.date[m.style]:ze(m.style)?m.style.parsedOptions:void 0;s.push({type:O.literal,value:n.getDateTimeFormat(e,h).format(u)});continue}if(Te(m)){var h=typeof m.style=="string"?a.time[m.style]:ze(m.style)?m.style.parsedOptions:a.time.medium;s.push({type:O.literal,value:n.getDateTimeFormat(e,h).format(u)});continue}if(Ie(m)){var h=typeof m.style=="string"?a.number[m.style]:mt(m.style)?m.style.parsedOptions:void 0;h&&h.scale&&(u=u*(h.scale||1)),s.push({type:O.literal,value:n.getNumberFormat(e,h).format(u)});continue}if(De(m)){var b=m.children,_=m.value,f=i[_];if(!oo(f))throw new Ca(_,"function",r);var g=He(b,e,n,a,i,o),v=f(g.map(function(k){return k.value}));Array.isArray(v)||(v=[v]),s.push.apply(s,v.map(function(k){return{type:typeof k=="string"?O.literal:O.object,value:k}}))}if(Ne(m)){var C=m.options[u]||m.options.other;if(!C)throw new Jt(m.value,u,Object.keys(m.options),r);s.push.apply(s,He(C.value,e,n,a,i));continue}if(Re(m)){var C=m.options["=".concat(u)];if(!C){if(!Intl.PluralRules)throw new Me(`Intl.PluralRules is not available in this environment.
2
2
  Try polyfilling it using "@formatjs/intl-pluralrules"
3
- `,he.MISSING_INTL_API,r);var w=n.getPluralRules(e,{type:m.pluralType}).select(u-(m.offset||0));_=m.options[w]||m.options.other}if(!_)throw new Jt(m.value,u,Object.keys(m.options),r);s.push.apply(s,He(_.value,e,n,a,i,u-(m.offset||0)));continue}}return io(s)}function ro(t,e){return e?S(S(S({},t||{}),e||{}),Object.keys(t).reduce(function(n,a){return n[a]=S(S({},t[a]),e[a]||{}),n},{})):t}function so(t,e){return e?Object.keys(t).reduce(function(n,a){return n[a]=ro(t[a],e[a]),n},S({},t)):t}function Zt(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,n){t[e]=n}}}}}function lo(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ut(function(){for(var e,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return new((e=Intl.NumberFormat).bind.apply(e,pt([void 0],n,!1)))},{cache:Zt(t.number),strategy:ct.variadic}),getDateTimeFormat:ut(function(){for(var e,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return new((e=Intl.DateTimeFormat).bind.apply(e,pt([void 0],n,!1)))},{cache:Zt(t.dateTime),strategy:ct.variadic}),getPluralRules:ut(function(){for(var e,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return new((e=Intl.PluralRules).bind.apply(e,pt([void 0],n,!1)))},{cache:Zt(t.pluralRules),strategy:ct.variadic})}}var xa=(function(){function t(e,n,a,i){n===void 0&&(n=t.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var m=o.formatToParts(l);if(m.length===1)return m[0].value;var d=m.reduce(function(u,h){return!u.length||h.type!==O.literal||typeof u[u.length-1]!="string"?u.push(h.value):u[u.length-1]+=h.value,u},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(l){return He(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=t.resolveLocale(n),typeof e=="string"){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var r=i||{},s=r.formatters,p=Yn(r,["formatters"]);this.ast=t.__parse(e,S(S({},p),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=so(t.formats,a),this.formatters=i&&i.formatters||lo(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(e){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(e);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},t.__parse=_a,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t})();var Kt=xa;var dt={literal:0,argument:1,number:2,date:3,time:4,select:5,plural:6,pound:7,tag:8};var Ws=["ar-XB.json","ar.json","bg.json","ca.json","cs.json","da.json","de.json","el.json","en-GB.json","en-US.json","en-XA.json","en-XL.json","es-419.json","es.json","fi.json","fil.json","fr.json","he.json","hi.json","hr.json","hu.json","id.json","it.json","ja.json","ko.json","lt.json","lv.json","nl.json","no.json","pl.json","pt-PT.json","pt.json","ro.json","ru.json","sk.json","sl.json","sr-Latn.json","sr.json","sv.json","ta.json","te.json","th.json","tr.json","uk.json","vi.json","zh-HK.json","zh-TW.json","zh.json"].filter(t=>t.endsWith(".json")&&!t.endsWith(".ctc.json")).map(t=>t.replace(".json","")).sort();var po={number:{bytes:{maximumFractionDigits:0},milliseconds:{maximumFractionDigits:0},seconds:{minimumFractionDigits:1,maximumFractionDigits:1},extendedPercent:{maximumFractionDigits:2,style:"percent"}}};function Sa(t,e=new Map){for(let n of t)if(!(n.type===dt.literal||n.type===dt.pound)&&(e.set(n.value,n),n.type===dt.plural))for(let a of Object.values(n.options))Sa(a.value,e);return e}function uo(t,e={},n){let a=Sa(t.getAst()),i={};for(let[o,r]of a){if(!(o in e))throw new Error(`ICU Message "${n}" contains a value reference ("${o}") that wasn't provided`);let s=e[o];if(r.type!==dt.number){i[o]=s;continue}if(typeof s!="number")throw new Error(`ICU Message "${n}" contains a numeric reference ("${o}") but provided value was not a number`);r.style==="milliseconds"?i[o]=Math.round(s/10)*10:r.style==="seconds"&&o==="timeInMs"?i[o]=Math.round(s/100)/10:r.style==="bytes"?i[o]=s/1024:i[o]=s}for(let o of Object.keys(e))if(!(o in i)){if(o==="errorCode"){i.errorCode=e.errorCode;continue}throw new Error(`Provided value "${o}" does not match any placeholder in ICU message "${n}"`)}return i}function co(t){return t.replace(/'/g,"''").replace(/\\{/g,"'{").replace(/\\}/g,"'}")}function ka(t,e,n){t=co(t);let a=n==="en-XA"||n==="en-XL"?"de-DE":n,i=Kt.IntlMessageFormat||Kt,o=new i(t,a,po,{ignoreTag:!0}),r=uo(o,e,t),s=o.format(r);if(typeof s!="string")throw new Error("unexpected formatted result");return s}var ge=class{constructor(e){e==="en-XA"&&(e="de"),this._locale=e,this._cachedNumberFormatters=new Map}_formatNumberWithGranularity(e,n,a={}){if(n!==void 0){let r=-Math.log10(n);Number.isInteger(r)||(console.warn(`granularity of ${n} is invalid. Using 1 instead`),n=1),n<1&&(a={...a},a.minimumFractionDigits=a.maximumFractionDigits=Math.ceil(r)),e=Math.round(e/n)*n,Object.is(e,-0)&&(e=0)}else Math.abs(e)<5e-4&&(e=0);let i,o=[a.minimumFractionDigits,a.maximumFractionDigits,a.style,a.unit,a.unitDisplay,this._locale].join("");return i=this._cachedNumberFormatters.get(o),i||(i=new Intl.NumberFormat(this._locale,a),this._cachedNumberFormatters.set(o,i)),i.format(e).replace(" "," ")}formatNumber(e,n){return this._formatNumberWithGranularity(e,n)}formatInteger(e){return this._formatNumberWithGranularity(e,1)}formatPercent(e){return new Intl.NumberFormat(this._locale,{style:"percent"}).format(e)}formatBytesToKiB(e,n=void 0){return this._formatNumberWithGranularity(e/1024,n)+" KiB"}formatBytesToMiB(e,n=void 0){return this._formatNumberWithGranularity(e/1048576,n)+" MiB"}formatBytes(e,n=1){return this._formatNumberWithGranularity(e,n,{style:"unit",unit:"byte",unitDisplay:"long"})}formatBytesWithBestUnit(e,n=.1){return e>=1048576?this.formatBytesToMiB(e,n):e>=1024?this.formatBytesToKiB(e,n):this._formatNumberWithGranularity(e,n,{style:"unit",unit:"byte",unitDisplay:"narrow"})}formatKbps(e,n=void 0){return this._formatNumberWithGranularity(e,n,{style:"unit",unit:"kilobit-per-second",unitDisplay:"short"})}formatMilliseconds(e,n=void 0){return this._formatNumberWithGranularity(e,n,{style:"unit",unit:"millisecond",unitDisplay:"short"})}formatSeconds(e,n=void 0){return this._formatNumberWithGranularity(e/1e3,n,{style:"unit",unit:"second",unitDisplay:"narrow"})}formatDateTime(e){let n={month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",timeZoneName:"short"},a;try{a=new Intl.DateTimeFormat(this._locale,n)}catch{n.timeZone="UTC",a=new Intl.DateTimeFormat(this._locale,n)}return a.format(new Date(e))}formatDuration(e){let n=e/1e3;if(Math.round(n)===0)return"None";let a=[],i={day:3600*24,hour:3600,minute:60,second:1};return Object.keys(i).forEach(o=>{let r=i[o],s=Math.floor(n/r);if(s>0){n-=s*r;let p=this._formatNumberWithGranularity(s,1,{style:"unit",unit:o,unitDisplay:"narrow"});a.push(p)}}),a.join(" ")}};var Xt={navigationDescription:"Page load",timespanDescription:"User interactions",snapshotDescription:"Captured state of page",navigationLongDescription:"Navigation reports analyze a single page load, exactly like the original Lighthouse reports.",timespanLongDescription:"Timespan reports analyze an arbitrary period of time, typically containing user interactions.",snapshotLongDescription:"Snapshot reports analyze the page in a particular state, typically after user interactions.",navigationReport:"Navigation report",timespanReport:"Timespan report",snapshotReport:"Snapshot report",summary:"Summary",allReports:"All Reports",title:"Lighthouse User Flow Report",categories:"Categories",categoryPerformance:"Performance",categoryAccessibility:"Accessibility",categoryBestPractices:"Best Practices",categorySeo:"SEO",desktop:"Desktop",mobile:"Mobile",ratingPass:"Good",ratingAverage:"Average",ratingFail:"Poor",ratingError:"Error",navigationReportCount:`{numNavigation, plural,
3
+ `,he.MISSING_INTL_API,r);var w=n.getPluralRules(e,{type:m.pluralType}).select(u-(m.offset||0));C=m.options[w]||m.options.other}if(!C)throw new Jt(m.value,u,Object.keys(m.options),r);s.push.apply(s,He(C.value,e,n,a,i,u-(m.offset||0)));continue}}return io(s)}function ro(t,e){return e?S(S(S({},t||{}),e||{}),Object.keys(t).reduce(function(n,a){return n[a]=S(S({},t[a]),e[a]||{}),n},{})):t}function so(t,e){return e?Object.keys(t).reduce(function(n,a){return n[a]=ro(t[a],e[a]),n},S({},t)):t}function Zt(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,n){t[e]=n}}}}}function lo(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ut(function(){for(var e,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return new((e=Intl.NumberFormat).bind.apply(e,pt([void 0],n,!1)))},{cache:Zt(t.number),strategy:ct.variadic}),getDateTimeFormat:ut(function(){for(var e,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return new((e=Intl.DateTimeFormat).bind.apply(e,pt([void 0],n,!1)))},{cache:Zt(t.dateTime),strategy:ct.variadic}),getPluralRules:ut(function(){for(var e,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return new((e=Intl.PluralRules).bind.apply(e,pt([void 0],n,!1)))},{cache:Zt(t.pluralRules),strategy:ct.variadic})}}var xa=(function(){function t(e,n,a,i){n===void 0&&(n=t.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var m=o.formatToParts(l);if(m.length===1)return m[0].value;var d=m.reduce(function(u,h){return!u.length||h.type!==O.literal||typeof u[u.length-1]!="string"?u.push(h.value):u[u.length-1]+=h.value,u},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(l){return He(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=t.resolveLocale(n),typeof e=="string"){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var r=i||{},s=r.formatters,p=Yn(r,["formatters"]);this.ast=t.__parse(e,S(S({},p),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=so(t.formats,a),this.formatters=i&&i.formatters||lo(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(e){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(e);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},t.__parse=_a,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t})();var Kt=xa;var dt={literal:0,argument:1,number:2,date:3,time:4,select:5,plural:6,pound:7,tag:8};var Ws=["ar-XB.json","ar.json","bg.json","ca.json","cs.json","da.json","de.json","el.json","en-GB.json","en-US.json","en-XA.json","en-XL.json","es-419.json","es.json","fi.json","fil.json","fr.json","he.json","hi.json","hr.json","hu.json","id.json","it.json","ja.json","ko.json","lt.json","lv.json","nl.json","no.json","pl.json","pt-PT.json","pt.json","ro.json","ru.json","sk.json","sl.json","sr-Latn.json","sr.json","sv.json","ta.json","te.json","th.json","tr.json","uk.json","vi.json","zh-HK.json","zh-TW.json","zh.json"].filter(t=>t.endsWith(".json")&&!t.endsWith(".ctc.json")).map(t=>t.replace(".json","")).sort();var po={number:{bytes:{maximumFractionDigits:0},milliseconds:{maximumFractionDigits:0},seconds:{minimumFractionDigits:1,maximumFractionDigits:1},extendedPercent:{maximumFractionDigits:2,style:"percent"}}};function Sa(t,e=new Map){for(let n of t)if(!(n.type===dt.literal||n.type===dt.pound)&&(e.set(n.value,n),n.type===dt.plural))for(let a of Object.values(n.options))Sa(a.value,e);return e}function uo(t,e={},n){let a=Sa(t.getAst()),i={};for(let[o,r]of a){if(!(o in e))throw new Error(`ICU Message "${n}" contains a value reference ("${o}") that wasn't provided`);let s=e[o];if(r.type!==dt.number){i[o]=s;continue}if(typeof s!="number")throw new Error(`ICU Message "${n}" contains a numeric reference ("${o}") but provided value was not a number`);r.style==="milliseconds"?i[o]=Math.round(s/10)*10:r.style==="seconds"&&o==="timeInMs"?i[o]=Math.round(s/100)/10:r.style==="bytes"?i[o]=s/1024:i[o]=s}for(let o of Object.keys(e))if(!(o in i)){if(o==="errorCode"){i.errorCode=e.errorCode;continue}throw new Error(`Provided value "${o}" does not match any placeholder in ICU message "${n}"`)}return i}function co(t){return t.replace(/'/g,"''").replace(/\\{/g,"'{").replace(/\\}/g,"'}")}function ka(t,e,n){t=co(t);let a=n==="en-XA"||n==="en-XL"?"de-DE":n,i=Kt.IntlMessageFormat||Kt,o=new i(t,a,po,{ignoreTag:!0}),r=uo(o,e,t),s=o.format(r);if(typeof s!="string")throw new Error("unexpected formatted result");return s}var ge=class{constructor(e){e==="en-XA"&&(e="de"),this._locale=e,this._cachedNumberFormatters=new Map}_formatNumberWithGranularity(e,n,a={}){if(n!==void 0){let r=-Math.log10(n);Number.isInteger(r)||(console.warn(`granularity of ${n} is invalid. Using 1 instead`),n=1),n<1&&(a={...a},a.minimumFractionDigits=a.maximumFractionDigits=Math.ceil(r)),e=Math.round(e/n)*n,Object.is(e,-0)&&(e=0)}else Math.abs(e)<5e-4&&(e=0);let i,o=[a.minimumFractionDigits,a.maximumFractionDigits,a.style,a.unit,a.unitDisplay,this._locale].join("");return i=this._cachedNumberFormatters.get(o),i||(i=new Intl.NumberFormat(this._locale,a),this._cachedNumberFormatters.set(o,i)),i.format(e).replace(" "," ")}formatNumber(e,n){return this._formatNumberWithGranularity(e,n)}formatInteger(e){return this._formatNumberWithGranularity(e,1)}formatPercent(e){return new Intl.NumberFormat(this._locale,{style:"percent"}).format(e)}formatBytesToKiB(e,n=void 0){return this._formatNumberWithGranularity(e/1024,n)+" KiB"}formatBytesToMiB(e,n=void 0){return this._formatNumberWithGranularity(e/1048576,n)+" MiB"}formatBytes(e,n=1){return this._formatNumberWithGranularity(e,n,{style:"unit",unit:"byte",unitDisplay:"long"})}formatBytesWithBestUnit(e,n=.1){return e>=1048576?this.formatBytesToMiB(e,n):e>=1024?this.formatBytesToKiB(e,n):this._formatNumberWithGranularity(e,n,{style:"unit",unit:"byte",unitDisplay:"narrow"})}formatKbps(e,n=void 0){return this._formatNumberWithGranularity(e,n,{style:"unit",unit:"kilobit-per-second",unitDisplay:"short"})}formatMilliseconds(e,n=void 0){return this._formatNumberWithGranularity(e,n,{style:"unit",unit:"millisecond",unitDisplay:"short"})}formatSeconds(e,n=void 0){return this._formatNumberWithGranularity(e/1e3,n,{style:"unit",unit:"second",unitDisplay:"narrow"})}formatDateTime(e){let n={month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",timeZoneName:"short"},a;try{a=new Intl.DateTimeFormat(this._locale,n)}catch{n.timeZone="UTC",a=new Intl.DateTimeFormat(this._locale,n)}return a.format(new Date(e))}formatDuration(e){let n=e/1e3;if(Math.round(n)===0)return"None";let a=[],i={day:3600*24,hour:3600,minute:60,second:1};return Object.keys(i).forEach(o=>{let r=i[o],s=Math.floor(n/r);if(s>0){n-=s*r;let p=this._formatNumberWithGranularity(s,1,{style:"unit",unit:o,unitDisplay:"narrow"});a.push(p)}}),a.join(" ")}};var Xt={navigationDescription:"Page load",timespanDescription:"User interactions",snapshotDescription:"Captured state of page",navigationLongDescription:"Navigation reports analyze a single page load, exactly like the original Lighthouse reports.",timespanLongDescription:"Timespan reports analyze an arbitrary period of time, typically containing user interactions.",snapshotLongDescription:"Snapshot reports analyze the page in a particular state, typically after user interactions.",navigationReport:"Navigation report",timespanReport:"Timespan report",snapshotReport:"Snapshot report",summary:"Summary",allReports:"All Reports",title:"Lighthouse User Flow Report",categories:"Categories",categoryPerformance:"Performance",categoryAccessibility:"Accessibility",categoryBestPractices:"Best Practices",categorySeo:"SEO",desktop:"Desktop",mobile:"Mobile",ratingPass:"Good",ratingAverage:"Average",ratingFail:"Poor",ratingError:"Error",navigationReportCount:`{numNavigation, plural,
4
4
  =1 {{numNavigation} navigation report}
5
5
  other {{numNavigation} navigation reports}
6
6
  }`,timespanReportCount:`{numTimespan, plural,
@@ -2873,8 +2873,8 @@ details[open] .lh-clump-toggletext--hide { display: block;}
2873
2873
  display: none;
2874
2874
  }
2875
2875
  }
2876
- `),e.append(n);let a=t.createElement("div","lh-topbar"),i=t.createElementNS("http://www.w3.org/2000/svg","svg","lh-topbar__logo");i.setAttribute("role","img"),i.setAttribute("title","Lighthouse logo"),i.setAttribute("fill","none"),i.setAttribute("xmlns","http://www.w3.org/2000/svg"),i.setAttribute("viewBox","0 0 48 48");let o=t.createElementNS("http://www.w3.org/2000/svg","path");o.setAttribute("d","m14 7 10-7 10 7v10h5v7h-5l5 24H9l5-24H9v-7h5V7Z"),o.setAttribute("fill","#F63");let r=t.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d","M31.561 24H14l-1.689 8.105L31.561 24ZM18.983 48H9l1.022-4.907L35.723 32.27l1.663 7.98L18.983 48Z"),r.setAttribute("fill","#FFA385");let s=t.createElementNS("http://www.w3.org/2000/svg","path");s.setAttribute("fill","#FF3"),s.setAttribute("d","M20.5 10h7v7h-7z"),i.append(" ",o," ",r," ",s," ");let p=t.createElement("a","lh-topbar__url");p.setAttribute("href",""),p.setAttribute("target","_blank"),p.setAttribute("rel","noopener");let l=t.createElement("div","lh-tools"),m=t.createElement("div","lh-tools-locale lh-hidden"),d=t.createElement("button","lh-button lh-tool-locale__button");d.setAttribute("id","lh-button__swap-locales"),d.setAttribute("title","Show Language Picker"),d.setAttribute("aria-label","Toggle language picker"),d.setAttribute("aria-haspopup","menu"),d.setAttribute("aria-expanded","false"),d.setAttribute("aria-controls","lh-tools-locale__selector-wrapper");let u=t.createElementNS("http://www.w3.org/2000/svg","svg");u.setAttribute("width","20px"),u.setAttribute("height","20px"),u.setAttribute("viewBox","0 0 24 24"),u.setAttribute("fill","currentColor");let h=t.createElementNS("http://www.w3.org/2000/svg","path");h.setAttribute("d","M0 0h24v24H0V0z"),h.setAttribute("fill","none");let b=t.createElementNS("http://www.w3.org/2000/svg","path");b.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"),u.append(h,b),d.append(" ",u," ");let C=t.createElement("div","lh-tools-locale__selector-wrapper");C.setAttribute("id","lh-tools-locale__selector-wrapper"),C.setAttribute("role","menu"),C.setAttribute("aria-labelledby","lh-button__swap-locales"),C.setAttribute("aria-hidden","true"),C.append(" "," "),m.append(" ",d," ",C," ");let v=t.createElement("button","lh-tools__button");v.setAttribute("id","lh-tools-button"),v.setAttribute("title","Tools menu"),v.setAttribute("aria-label","Toggle report tools menu"),v.setAttribute("aria-haspopup","menu"),v.setAttribute("aria-expanded","false"),v.setAttribute("aria-controls","lh-tools-dropdown");let g=t.createElementNS("http://www.w3.org/2000/svg","svg");g.setAttribute("width","100%"),g.setAttribute("height","100%"),g.setAttribute("viewBox","0 0 24 24");let f=t.createElementNS("http://www.w3.org/2000/svg","path");f.setAttribute("d","M0 0h24v24H0z"),f.setAttribute("fill","none");let _=t.createElementNS("http://www.w3.org/2000/svg","path");_.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"),g.append(" ",f," ",_," "),v.append(" ",g," ");let w=t.createElement("div","lh-tools__dropdown");w.setAttribute("id","lh-tools-dropdown"),w.setAttribute("role","menu"),w.setAttribute("aria-labelledby","lh-tools-button");let k=t.createElement("a","lh-report-icon lh-report-icon--print");k.setAttribute("role","menuitem"),k.setAttribute("tabindex","-1"),k.setAttribute("href","#"),k.setAttribute("data-i18n","dropdownPrintSummary"),k.setAttribute("data-action","print-summary");let I=t.createElement("a","lh-report-icon lh-report-icon--print");I.setAttribute("role","menuitem"),I.setAttribute("tabindex","-1"),I.setAttribute("href","#"),I.setAttribute("data-i18n","dropdownPrintExpanded"),I.setAttribute("data-action","print-expanded");let D=t.createElement("a","lh-report-icon lh-report-icon--copy");D.setAttribute("role","menuitem"),D.setAttribute("tabindex","-1"),D.setAttribute("href","#"),D.setAttribute("data-i18n","dropdownCopyJSON"),D.setAttribute("data-action","copy");let j=t.createElement("a","lh-report-icon lh-report-icon--download lh-hidden");j.setAttribute("role","menuitem"),j.setAttribute("tabindex","-1"),j.setAttribute("href","#"),j.setAttribute("data-i18n","dropdownSaveHTML"),j.setAttribute("data-action","save-html");let W=t.createElement("a","lh-report-icon lh-report-icon--download");W.setAttribute("role","menuitem"),W.setAttribute("tabindex","-1"),W.setAttribute("href","#"),W.setAttribute("data-i18n","dropdownSaveJSON"),W.setAttribute("data-action","save-json");let z=t.createElement("a","lh-report-icon lh-report-icon--open");z.setAttribute("role","menuitem"),z.setAttribute("tabindex","-1"),z.setAttribute("href","#"),z.setAttribute("data-i18n","dropdownViewer"),z.setAttribute("data-action","open-viewer");let B=t.createElement("a","lh-report-icon lh-report-icon--open");B.setAttribute("role","menuitem"),B.setAttribute("tabindex","-1"),B.setAttribute("href","#"),B.setAttribute("data-i18n","dropdownSaveGist"),B.setAttribute("data-action","save-gist");let K=t.createElement("a","lh-report-icon lh-report-icon--open lh-hidden");K.setAttribute("role","menuitem"),K.setAttribute("tabindex","-1"),K.setAttribute("href","#"),K.setAttribute("data-i18n","dropdownViewUnthrottledTrace"),K.setAttribute("data-action","view-unthrottled-trace");let Y=t.createElement("a","lh-report-icon lh-report-icon--dark");return Y.setAttribute("role","menuitem"),Y.setAttribute("tabindex","-1"),Y.setAttribute("href","#"),Y.setAttribute("data-i18n","dropdownDarkTheme"),Y.setAttribute("data-action","toggle-dark"),w.append(" ",k," ",I," ",D," "," ",j," ",W," ",z," ",B," "," ",K," ",Y," "),l.append(" ",m," ",v," ",w," "),a.append(" "," ",i," ",p," ",l," "),e.append(a),e}function Fo(t){let e=t.createFragment(),n=t.createElement("div","lh-warnings lh-warnings--toplevel"),a=t.createElement("p","lh-warnings__msg"),i=t.createElement("ul");return n.append(" ",a," ",i," "),e.append(n),e}function Ta(t,e){switch(e){case"3pFilter":return bo(t);case"audit":return yo(t);case"categoryHeader":return _o(t);case"chevron":return Co(t);case"clump":return wo(t);case"crc":return xo(t);case"crcChain":return So(t);case"elementScreenshot":return ko(t);case"explodeyGauge":return Po(t);case"footer":return Ao(t);case"fraction":return Lo(t);case"gauge":return Eo(t);case"heading":return Io(t);case"metric":return Uo(t);case"scorescale":return To(t);case"scoresWrapper":return No(t);case"snippet":return Ro(t);case"snippetContent":return Do(t);case"snippetHeader":return zo(t);case"snippetLine":return jo(t);case"styles":return Mo(t);case"topbar":return Ho(t);case"warningsToplevel":return Fo(t)}throw new Error("unexpected component: "+e)}var le=class{constructor(e,n){this._document=e,this._lighthouseChannel="unknown",this._componentCache=new Map,this.rootEl=n}createElement(e,n){let a=this._document.createElement(e);if(n)for(let i of n.split(/\s+/))i&&a.classList.add(i);return a}createElementNS(e,n,a){let i=this._document.createElementNS(e,n);if(a)for(let o of a.split(/\s+/))o&&i.classList.add(o);return i}createSVGElement(e,n){return this._document.createElementNS("http://www.w3.org/2000/svg",e,n)}createFragment(){return this._document.createDocumentFragment()}createTextNode(e){return this._document.createTextNode(e)}createChildOf(e,n,a){let i=this.createElement(n,a);return e.append(i),i}createComponent(e){let n=this._componentCache.get(e);if(n){let i=n.cloneNode(!0);return this.findAll("style",i).forEach(o=>o.remove()),i}return n=Ta(this,e),this._componentCache.set(e,n),n.cloneNode(!0)}clearComponentCache(){this._componentCache.clear()}convertMarkdownLinkSnippets(e,n={}){let a=this.createElement("span");for(let i of N.splitMarkdownLink(e)){let o=i.text.includes("`")?this.convertMarkdownCodeSnippets(i.text):i.text;if(!i.isLink){a.append(o);continue}let r=new URL(i.linkHref);(["https://developers.google.com","https://web.dev","https://developer.chrome.com"].includes(r.origin)||n.alwaysAppendUtmSource)&&(r.searchParams.set("utm_source","lighthouse"),r.searchParams.set("utm_medium",this._lighthouseChannel));let p=this.createElement("a");p.rel="noopener",p.target="_blank",p.append(o),this.safelySetHref(p,r.href),a.append(p)}return a}safelySetHref(e,n){if(n=n||"",n.startsWith("#")){e.href=n;return}let a=["https:","http:"],i;try{i=new URL(n)}catch{}i&&a.includes(i.protocol)&&(e.href=i.href)}safelySetBlobHref(e,n){if(n.type!=="text/html"&&n.type!=="application/json")throw new Error("Unsupported blob type");let a=URL.createObjectURL(n);e.href=a}convertMarkdownCodeSnippets(e){let n=this.createElement("span");for(let a of N.splitMarkdownCodeSpans(e))if(a.isCode){let i=this.createElement("code");i.textContent=a.text,n.append(i)}else n.append(this._document.createTextNode(a.text));return n}setLighthouseChannel(e){this._lighthouseChannel=e}document(){return this._document}isDevTools(){return!!this._document.querySelector(".lh-devtools")}find(e,n=this.rootEl??this._document){let a=this.maybeFind(e,n);if(a===null)throw new Error(`query ${e} not found`);return a}maybeFind(e,n=this.rootEl??this._document){return n.querySelector(e)}findAll(e,n){return Array.from(n.querySelectorAll(e))}fireEventOn(e,n=this._document,a){let i=new CustomEvent(e,a?{detail:a}:void 0);n.dispatchEvent(i)}saveFile(e,n){let a=this.createElement("a");a.download=n,this.safelySetBlobHref(a,e),this._document.body.append(a),a.click(),this._document.body.removeChild(a),setTimeout(()=>URL.revokeObjectURL(a.href),500)}};var pe=class{constructor(e,n){this.dom=e,this.detailsRenderer=n}get _clumpTitles(){return{warning:y.strings.warningAuditsGroupTitle,manual:y.strings.manualAuditsGroupTitle,passed:y.strings.passedAuditsGroupTitle,notApplicable:y.strings.notApplicableAuditsGroupTitle}}renderAudit(e){let n=y.strings,a=this.dom.createComponent("audit"),i=this.dom.find("div.lh-audit",a);i.id=e.result.id;let o=e.result.scoreDisplayMode;e.result.displayValue&&(this.dom.find(".lh-audit__display-text",i).textContent=e.result.displayValue);let r=this.dom.find(".lh-audit__title",i);r.append(this.dom.convertMarkdownCodeSnippets(e.result.title));let s=this.dom.find(".lh-audit__description",i);s.append(this.dom.convertMarkdownLinkSnippets(e.result.description));for(let u of e.relevantMetrics||[]){let h=this.dom.createChildOf(s,"span","lh-audit__adorn");h.title=`Relevant to ${u.result.title}`,h.textContent=u.acronym||u.id}if(e.weight===0){let u=this.dom.createChildOf(s,"span","lh-audit__adorn");u.title=y.strings.unscoredTitle,u.textContent=y.strings.unscoredLabel}e.stackPacks&&e.stackPacks.forEach(u=>{let h=this.dom.createElement("img","lh-audit__stackpack__img");h.src=u.iconDataURL,h.alt=u.title;let b=this.dom.convertMarkdownLinkSnippets(u.description,{alwaysAppendUtmSource:!0}),C=this.dom.createElement("div","lh-audit__stackpack");C.append(h,b),this.dom.find(".lh-audit__stackpacks",i).append(C)});let p=this.dom.find("details",i);if(e.result.details){let u=this.detailsRenderer.render(e.result.details);u&&(u.classList.add("lh-details"),p.append(u))}if(this.dom.find(".lh-chevron-container",i).append(this._createChevron()),this._setRatingClass(i,e.result.score,o),e.result.scoreDisplayMode==="error"){i.classList.add("lh-audit--error");let u=this.dom.find(".lh-audit__display-text",i);u.textContent=n.errorLabel,u.classList.add("lh-tooltip-boundary");let h=this.dom.createChildOf(u,"div","lh-tooltip lh-tooltip--error");h.textContent=e.result.errorMessage||n.errorMissingAuditInfo}else if(e.result.explanation){let u=this.dom.createChildOf(r,"div","lh-audit-explanation");u.textContent=e.result.explanation}let l=e.result.warnings;if(!l||l.length===0)return i;let m=this.dom.find("summary",p),d=this.dom.createChildOf(m,"div","lh-warnings");if(this.dom.createChildOf(d,"span").textContent=n.warningHeader,l.length===1)d.append(this.dom.createTextNode(l.join("")));else{let u=this.dom.createChildOf(d,"ul");for(let h of l){let b=this.dom.createChildOf(u,"li");b.textContent=h}}return i}injectFinalScreenshot(e,n,a){let i=n["final-screenshot"];if(!i||i.scoreDisplayMode==="error"||!i.details||i.details.type!=="screenshot")return null;let o=this.dom.createElement("img","lh-final-ss-image"),r=i.details.data;o.src=r,o.alt=i.title;let s=this.dom.find(".lh-category .lh-category-header",e),p=this.dom.createElement("div","lh-category-headercol"),l=this.dom.createElement("div","lh-category-headercol lh-category-headercol--separator"),m=this.dom.createElement("div","lh-category-headercol");p.append(...s.childNodes),p.append(a),m.append(o),s.append(p,l,m),s.classList.add("lh-category-header__finalscreenshot")}_createChevron(){let e=this.dom.createComponent("chevron");return this.dom.find("svg.lh-chevron",e)}_setRatingClass(e,n,a){let i=P.calculateRating(n,a);return e.classList.add(`lh-audit--${a.toLowerCase()}`),a!=="informative"&&e.classList.add(`lh-audit--${i}`),e}renderCategoryHeader(e,n,a){let i=this.dom.createComponent("categoryHeader"),o=this.dom.find(".lh-score__gauge",i),r=this.renderCategoryScore(e,n,a);if(o.append(r),e.description){let s=this.dom.convertMarkdownLinkSnippets(e.description);this.dom.find(".lh-category-header__description",i).append(s)}return i}renderAuditGroup(e){let n=this.dom.createElement("div","lh-audit-group"),a=this.dom.createElement("div","lh-audit-group__header");this.dom.createChildOf(a,"span","lh-audit-group__title").textContent=e.title,n.append(a);let i=null;return e.description&&(i=this.dom.convertMarkdownLinkSnippets(e.description),i.classList.add("lh-audit-group__description","lh-audit-group__footer"),n.append(i)),[n,i]}_renderGroupedAudits(e,n){let a=new Map,i="NotAGroup";a.set(i,[]);for(let r of e){let s=r.group||i,p=a.get(s)||[];p.push(r),a.set(s,p)}let o=[];for(let[r,s]of a){if(r===i){for(let d of s)o.push(this.renderAudit(d));continue}let p=n[r],[l,m]=this.renderAuditGroup(p);for(let d of s)l.insertBefore(this.renderAudit(d),m);l.classList.add(`lh-audit-group--${r}`),o.push(l)}return o}renderUnexpandableClump(e,n){let a=this.dom.createElement("div");return this._renderGroupedAudits(e,n).forEach(o=>a.append(o)),a}renderClump(e,{auditRefsOrEls:n,description:a,openByDefault:i}){let o=this.dom.createComponent("clump"),r=this.dom.find(".lh-clump",o);i&&r.setAttribute("open","");let s=this.dom.find(".lh-audit-group__header",r),p=this._clumpTitles[e];this.dom.find(".lh-audit-group__title",s).textContent=p;let l=this.dom.find(".lh-audit-group__itemcount",r);l.textContent=`(${n.length})`;let m=n.map(u=>u instanceof HTMLElement?u:this.renderAudit(u));r.append(...m);let d=this.dom.find(".lh-audit-group",o);if(a){let u=this.dom.convertMarkdownLinkSnippets(a);u.classList.add("lh-audit-group__description","lh-audit-group__footer"),d.append(u)}return this.dom.find(".lh-clump-toggletext--show",d).textContent=y.strings.show,this.dom.find(".lh-clump-toggletext--hide",d).textContent=y.strings.hide,r.classList.add(`lh-clump--${e.toLowerCase()}`),d}renderCategoryScore(e,n,a){let i;if(a&&P.shouldDisplayAsFraction(a.gatherMode,e)?i=this.renderCategoryFraction(e):i=this.renderScoreGauge(e,n),a?.omitLabel&&this.dom.find(".lh-gauge__label,.lh-fraction__label",i).remove(),a?.onPageAnchorRendered){let o=this.dom.find("a",i);a.onPageAnchorRendered(o)}return i}renderScoreGauge(e,n){let a=this.dom.createComponent("gauge"),i=this.dom.find("a.lh-gauge__wrapper",a);P.isPluginCategory(e.id)&&i.classList.add("lh-gauge__wrapper--plugin");let o=Number(e.score),r=this.dom.find(".lh-gauge",a),s=this.dom.find("circle.lh-gauge-arc",r);s&&this._setGaugeArc(s,o);let p=Math.round(o*100),l=this.dom.find("div.lh-gauge__percentage",a);return l.textContent=p.toString(),e.score===null&&(l.classList.add("lh-gauge--error"),l.textContent="",l.title=y.strings.errorLabel),e.auditRefs.length===0||this.hasApplicableAudits(e)?i.classList.add(`lh-gauge__wrapper--${P.calculateRating(e.score)}`):(i.classList.add("lh-gauge__wrapper--not-applicable"),l.textContent="-",l.title=y.strings.notApplicableAuditsGroupTitle),this.dom.find(".lh-gauge__label",a).textContent=e.title,a}renderCategoryFraction(e){let n=this.dom.createComponent("fraction"),a=this.dom.find("a.lh-fraction__wrapper",n),{numPassed:i,numPassableAudits:o,totalWeight:r}=P.calculateCategoryFraction(e),s=i/o,p=this.dom.find(".lh-fraction__content",n),l=this.dom.createElement("span");l.textContent=`${i}/${o}`,p.append(l);let m=P.calculateRating(s);return r===0&&(m="null"),a.classList.add(`lh-fraction__wrapper--${m}`),this.dom.find(".lh-fraction__label",n).textContent=e.title,n}hasApplicableAudits(e){return e.auditRefs.some(n=>n.result.scoreDisplayMode!=="notApplicable")}_setGaugeArc(e,n){let a=2*Math.PI*Number(e.getAttribute("r")),i=Number(e.getAttribute("stroke-width")),o=.25*i/a;e.style.transform=`rotate(${-90+o*360}deg)`;let r=n*a-i/2;n===0&&(e.style.opacity="0"),n===1&&(r=a),e.style.strokeDasharray=`${Math.max(r,0)} ${a}`}_auditHasWarning(e){return!!e.result.warnings?.length}_getClumpIdForAuditRef(e){let n=e.result.scoreDisplayMode;return n==="manual"||n==="notApplicable"?n:P.showAsPassed(e.result)?this._auditHasWarning(e)?"warning":"passed":"failed"}render(e,n={},a){let i=this.dom.createElement("div","lh-category");i.id=e.id,i.append(this.renderCategoryHeader(e,n,a));let o=new Map;o.set("failed",[]),o.set("warning",[]),o.set("manual",[]),o.set("passed",[]),o.set("notApplicable",[]);for(let s of e.auditRefs){if(s.group==="hidden")continue;let p=this._getClumpIdForAuditRef(s),l=o.get(p);l.push(s),o.set(p,l)}for(let s of o.values())s.sort((p,l)=>l.weight-p.weight);let r=o.get("failed")?.length;for(let[s,p]of o){if(p.length===0)continue;if(s==="failed"){let u=this.renderUnexpandableClump(p,n);u.classList.add("lh-clump--failed"),i.append(u);continue}let l=s==="manual"?e.manualDescription:void 0,m=s==="warning"||s==="manual"&&r===0,d=this.renderClump(s,{auditRefsOrEls:p,description:l,openByDefault:m});i.append(d)}return i}};var Oe=class{static createSegment(e,n,a,i){let o=e[n],r=Object.keys(e),s=r.indexOf(n)===r.length-1,p=!!o.children&&Object.keys(o.children).length>0,l=Array.isArray(a)?a.slice(0):[];return typeof i<"u"&&l.push(!i),{node:o,isLastChild:s,hasChildren:p,treeMarkers:l}}static createChainNode(e,n,a){let i=e.createComponent("crcChain"),o,r,s,p,l;"request"in n.node?(r=n.node.request.transferSize,s=n.node.request.url,o=(n.node.request.endTime-n.node.request.startTime)*1e3,p=!1):(r=n.node.transferSize,s=n.node.url,o=n.node.navStartToEndTime,p=!0,l=n.node.isLongest);let m=e.find(".lh-crc-node",i);m.setAttribute("title",s),l&&m.classList.add("lh-crc-node__longest");let d=e.find(".lh-crc-node__tree-marker",i);n.treeMarkers.forEach(v=>{let g=v?"lh-tree-marker lh-vert":"lh-tree-marker";d.append(e.createElement("span",g),e.createElement("span","lh-tree-marker"))});let u=n.isLastChild?"lh-tree-marker lh-up-right":"lh-tree-marker lh-vert-right",h=n.hasChildren?"lh-tree-marker lh-horiz-down":"lh-tree-marker lh-right";d.append(e.createElement("span",u),e.createElement("span","lh-tree-marker lh-right"),e.createElement("span",h));let b=a.renderTextURL(s),C=e.find(".lh-crc-node__tree-value",i);if(C.append(b),!n.hasChildren||p){let v=e.createElement("span","lh-crc-node__chain-duration");v.textContent=" - "+y.i18n.formatMilliseconds(o)+", ";let g=e.createElement("span","lh-crc-node__chain-size");g.textContent=y.i18n.formatBytesToKiB(r,.01),C.append(v,g)}return i}static buildTree(e,n,a,i){if(a.append(Be.createChainNode(e,n,i)),n.node.children)for(let o of Object.keys(n.node.children)){let r=Be.createSegment(n.node.children,o,n.treeMarkers,n.isLastChild);Be.buildTree(e,r,a,i)}}static render(e,n,a){let i=e.createComponent("crc"),o=e.find(".lh-crc",i);e.find(".lh-crc-initial-nav",i).textContent=y.strings.crcInitialNavigation,e.find(".lh-crc__longest_duration_label",i).textContent=y.strings.crcLongestDurationLabel,e.find(".lh-crc__longest_duration",i).textContent=y.i18n.formatMilliseconds(n.longestChain.duration);let r=n.chains;for(let s of Object.keys(r)){let p=Be.createSegment(r,s);Be.buildTree(e,p,o,a)}return e.find(".lh-crc-container",i)}},Be=Oe;function Bo(t,e){return e.left<=t.width&&0<=e.right&&e.top<=t.height&&0<=e.bottom}function Na(t,e,n){return t<e?e:t>n?n:t}function Oo(t){return{x:t.left+t.width/2,y:t.top+t.height/2}}var ue=class t{static getScreenshotPositions(e,n,a){let i=Oo(e),o=Na(i.x-n.width/2,0,a.width-n.width),r=Na(i.y-n.height/2,0,a.height-n.height);return{screenshot:{left:o,top:r},clip:{left:e.left-o,top:e.top-r}}}static renderClipPathInScreenshot(e,n,a,i,o){let r=e.find("clipPath",n),s=`clip-${y.getUniqueSuffix()}`;r.id=s,n.style.clipPath=`url(#${s})`;let p=a.top/o.height,l=p+i.height/o.height,m=a.left/o.width,d=m+i.width/o.width,u=[`0,0 1,0 1,${p} 0,${p}`,`0,${l} 1,${l} 1,1 0,1`,`0,${p} ${m},${p} ${m},${l} 0,${l}`,`${d},${p} 1,${p} 1,${l} ${d},${l}`];for(let h of u){let b=e.createElementNS("http://www.w3.org/2000/svg","polygon");b.setAttribute("points",h),r.append(b)}}static installFullPageScreenshot(e,n){e.style.setProperty("--element-screenshot-url",`url('${n.data}')`)}static installOverlayFeature(e){let{dom:n,rootEl:a,overlayContainerEl:i,fullPageScreenshot:o}=e,r="lh-screenshot-overlay--enabled";a.classList.contains(r)||(a.classList.add(r),a.addEventListener("click",s=>{let p=s.target;if(!p)return;let l=p.closest(".lh-node > .lh-element-screenshot");if(!l)return;let m=n.createElement("div","lh-element-screenshot__overlay");i.append(m);let d={width:m.clientWidth*.95,height:m.clientHeight*.8},u={width:Number(l.dataset.rectWidth),height:Number(l.dataset.rectHeight),left:Number(l.dataset.rectLeft),right:Number(l.dataset.rectLeft)+Number(l.dataset.rectWidth),top:Number(l.dataset.rectTop),bottom:Number(l.dataset.rectTop)+Number(l.dataset.rectHeight)},h=t.render(n,o.screenshot,u,d);if(!h){m.remove();return}m.append(h),m.addEventListener("click",()=>m.remove())}))}static _computeZoomFactor(e,n){let i={x:n.width/e.width,y:n.height/e.height},o=.75*Math.min(i.x,i.y);return Math.min(1,o)}static render(e,n,a,i){if(!Bo(n,a))return null;let o=e.createComponent("elementScreenshot"),r=e.find("div.lh-element-screenshot",o);r.dataset.rectWidth=a.width.toString(),r.dataset.rectHeight=a.height.toString(),r.dataset.rectLeft=a.left.toString(),r.dataset.rectTop=a.top.toString();let s=this._computeZoomFactor(a,i),p={width:i.width/s,height:i.height/s};p.width=Math.min(n.width,p.width),p.height=Math.min(n.height,p.height);let l={width:p.width*s,height:p.height*s},m=t.getScreenshotPositions(a,p,{width:n.width,height:n.height}),d=e.find("div.lh-element-screenshot__image",r);d.style.width=l.width+"px",d.style.height=l.height+"px",d.style.backgroundPositionY=-(m.screenshot.top*s)+"px",d.style.backgroundPositionX=-(m.screenshot.left*s)+"px",d.style.backgroundSize=`${n.width*s}px ${n.height*s}px`;let u=e.find("div.lh-element-screenshot__element-marker",r);u.style.width=a.width*s+"px",u.style.height=a.height*s+"px",u.style.left=m.clip.left*s+"px",u.style.top=m.clip.top*s+"px";let h=e.find("div.lh-element-screenshot__mask",r);return h.style.width=l.width+"px",h.style.height=l.height+"px",t.renderClipPathInScreenshot(e,h,m.clip,a,p),r}};var Go=["http://","https://","data:"],Vo=["bytes","numeric","ms","timespanMs"],_e=class{constructor(e,n={}){this._dom=e,this._fullPageScreenshot=n.fullPageScreenshot,this._entities=n.entities}render(e){switch(e.type){case"filmstrip":return this._renderFilmstrip(e);case"list":return this._renderList(e);case"checklist":return this._renderChecklist(e);case"table":case"opportunity":return this._renderTable(e);case"network-tree":case"criticalrequestchain":return Oe.render(this._dom,e,this);case"screenshot":case"debugdata":case"treemap-data":return null;default:return this._renderUnknown(e.type,e)}}_renderBytes(e){let n=y.i18n.formatBytesToKiB(e.value,e.granularity||.1),a=this._renderText(n);return a.title=y.i18n.formatBytes(e.value),a}_renderMilliseconds(e){let n;return e.displayUnit==="duration"?n=y.i18n.formatDuration(e.value):n=y.i18n.formatMilliseconds(e.value,e.granularity||10),this._renderText(n)}renderTextURL(e){let n=e,a,i,o;try{let s=N.parseURL(n);a=s.file==="/"?s.origin:s.file,i=s.file==="/"||s.hostname===""?"":`(${s.hostname})`,o=n}catch{a=n}let r=this._dom.createElement("div","lh-text__url");if(r.append(this._createLink({text:a,url:n})),i){let s=this._renderText(i);s.classList.add("lh-text__url-host"),r.append(s)}return o&&(r.title=n,r.dataset.url=n),r}_renderLink(e){return this._createLink(e)}_createLink(e){let n=this._dom.createElement("a");if(this._dom.safelySetHref(n,e.url),!n.href){let a=this._renderText(e.text);return a.classList.add("lh-link"),a}return n.rel="noopener",n.target="_blank",n.textContent=e.text,n.classList.add("lh-link"),n}_renderText(e){let n=this._dom.createElement("div","lh-text");return n.textContent=e,n}_renderBaselineStatus(e){let n=this._dom.createElement("div","lh-baseline-status"),a=e.status;return n.classList.add(`lh-baseline-status--${a}`),n.textContent=String(e.displayString),n}_renderNumeric(e){let n=y.i18n.formatNumber(e.value,e.granularity||.1),a=this._dom.createElement("div","lh-numeric");return a.textContent=n,a}_renderThumbnail(e){let n=this._dom.createElement("img","lh-thumbnail"),a=e;return n.src=a,n.title=a,n.alt="",n}_renderUnknown(e,n){console.error(`Unknown details type: ${e}`,n);let a=this._dom.createElement("details","lh-unknown");return this._dom.createChildOf(a,"summary").textContent=`We don't know how to render audit details of type \`${e}\`. The Lighthouse version that collected this data is likely newer than the Lighthouse version of the report renderer. Expand for the raw JSON.`,this._dom.createChildOf(a,"pre").textContent=JSON.stringify(n,null,2),a}_renderTableValue(e,n){if(e==null)return null;if(typeof e=="object")switch(e.type){case"code":return this._renderCode(e.value);case"link":return this._renderLink(e);case"node":return this.renderNode(e);case"numeric":return this._renderNumeric(e);case"text":return this._renderText(e.value);case"source-location":return this.renderSourceLocation(e);case"url":return this.renderTextURL(e.value);case"baseline-status":return this._renderBaselineStatus(e);default:return this._renderUnknown(e.type,e)}switch(n.valueType){case"bytes":{let a=Number(e);return this._renderBytes({value:a,granularity:n.granularity})}case"code":{let a=String(e);return this._renderCode(a)}case"ms":{let a={value:Number(e),granularity:n.granularity,displayUnit:n.displayUnit};return this._renderMilliseconds(a)}case"numeric":{let a=Number(e);return this._renderNumeric({value:a,granularity:n.granularity})}case"text":{let a=String(e);return this._renderText(a)}case"thumbnail":{let a=String(e);return this._renderThumbnail(a)}case"timespanMs":{let a=Number(e);return this._renderMilliseconds({value:a})}case"url":{let a=String(e);return Go.some(i=>a.startsWith(i))?this.renderTextURL(a):this._renderCode(a)}default:return this._renderUnknown(n.valueType,e)}}_getDerivedSubItemsHeading(e){return e.subItemsHeading?{key:e.subItemsHeading.key||"",valueType:e.subItemsHeading.valueType||e.valueType,granularity:e.subItemsHeading.granularity||e.granularity,displayUnit:e.subItemsHeading.displayUnit||e.displayUnit,label:""}:null}_renderTableRow(e,n){let a=this._dom.createElement("tr");for(let i of n){if(!i||!i.key){this._dom.createChildOf(a,"td","lh-table-column--empty");continue}let o=e[i.key],r;if(o!=null&&(r=this._renderTableValue(o,i)),r){let s=`lh-table-column--${i.valueType}`;this._dom.createChildOf(a,"td",s).append(r)}else this._dom.createChildOf(a,"td","lh-table-column--empty")}return a}_renderTableRowsFromItem(e,n){let a=this._dom.createFragment();if(a.append(this._renderTableRow(e,n)),!e.subItems)return a;let i=n.map(this._getDerivedSubItemsHeading);if(!i.some(Boolean))return a;for(let o of e.subItems.items){let r=this._renderTableRow(o,i);r.classList.add("lh-sub-item-row"),a.append(r)}return a}_adornEntityGroupRow(e){let n=e.dataset.entity;if(!n)return;let a=this._entities?.find(o=>o.name===n);if(!a)return;let i=this._dom.find("td",e);if(a.category){let o=this._dom.createElement("span");o.classList.add("lh-audit__adorn"),o.textContent=a.category,i.append(" ",o)}if(a.isFirstParty){let o=this._dom.createElement("span");o.classList.add("lh-audit__adorn","lh-audit__adorn1p"),o.textContent=y.strings.firstPartyChipLabel,i.append(" ",o)}if(a.homepage){let o=this._dom.createElement("a");this._dom.safelySetHref(o,a.homepage),o.href&&(o.target="_blank",o.title=y.strings.openInANewTabTooltip,o.classList.add("lh-report-icon--external"),i.append(" ",o))}}_renderEntityGroupRow(e,n){let a={...n[0]};a.valueType="text";let i=[a,...n.slice(1)],o=this._dom.createFragment();return o.append(this._renderTableRow(e,i)),this._dom.find("tr",o).classList.add("lh-row--group"),o}_getEntityGroupItems(e){let{items:n,headings:a,sortedBy:i}=e;if(!n.length||e.isEntityGrouped||!n.some(m=>m.entity))return[];let o=new Set(e.skipSumming||[]),r=[];for(let m of a)!m.key||o.has(m.key)||Vo.includes(m.valueType)&&r.push(m.key);let s=a[0].key;if(!s)return[];let p=new Map;for(let m of n){let d=typeof m.entity=="string"?m.entity:void 0,u=p.get(d)||{[s]:d||y.strings.unattributable,entity:d};for(let h of r)u[h]=Number(u[h]||0)+Number(m[h]||0);p.set(d,u)}let l=[...p.values()];return i&&l.sort(P.getTableItemSortComparator(i)),l}_renderTable(e){if(!e.items.length)return this._dom.createElement("span");let n=this._dom.createElement("table","lh-table"),a=this._dom.createChildOf(n,"thead"),i=this._dom.createChildOf(a,"tr");for(let s of e.headings){let l=`lh-table-column--${s.valueType||"text"}`,m=this._dom.createElement("div","lh-text");m.textContent=s.label,this._dom.createChildOf(i,"th",l).append(m)}let o=this._getEntityGroupItems(e),r=this._dom.createChildOf(n,"tbody");if(o.length)for(let s of o){let p=typeof s.entity=="string"?s.entity:void 0,l=this._renderEntityGroupRow(s,e.headings);for(let d of e.items.filter(u=>u.entity===p))l.append(this._renderTableRowsFromItem(d,e.headings));let m=this._dom.findAll("tr",l);p&&m.length&&(m.forEach(d=>d.dataset.entity=p),this._adornEntityGroupRow(m[0])),r.append(l)}else{let s=!0;for(let p of e.items){let l=this._renderTableRowsFromItem(p,e.headings),m=this._dom.findAll("tr",l),d=m[0];if(typeof p.entity=="string"&&(d.dataset.entity=p.entity),e.isEntityGrouped&&p.entity)d.classList.add("lh-row--group"),this._adornEntityGroupRow(d);else for(let u of m)u.classList.add(s?"lh-row--even":"lh-row--odd");s=!s,r.append(l)}}return n}_renderListValue(e){return e.type==="node"?this.renderNode(e):e.type==="text"?this._renderText(e.value):this.render(e)}_renderList(e){let n=this._dom.createElement("div","lh-list");return e.items.forEach(a=>{if(a.type==="list-section"){let o=this._dom.createElement("div","lh-list-section");a.title&&this._dom.createChildOf(o,"div","lh-list-section__title").append(this._dom.convertMarkdownLinkSnippets(a.title)),a.description&&this._dom.createChildOf(o,"div","lh-list-section__description").append(this._dom.convertMarkdownLinkSnippets(a.description));let r=this._renderListValue(a.value);r&&o.append(r),n.append(o);return}let i=this._renderListValue(a);i&&n.append(i)}),n}_renderChecklist(e){let n=this._dom.createElement("ul","lh-checklist");return Object.values(e.items).forEach(a=>{let i=this._dom.createChildOf(n,"li","lh-checklist-item"),o=a.value?"lh-report-plain-icon--checklist-pass":"lh-report-plain-icon--checklist-fail";this._dom.createChildOf(i,"span",`lh-report-plain-icon ${o}`).textContent=a.label}),n}renderNode(e){let n=this._dom.createElement("span","lh-node");if(e.nodeLabel){let r=this._dom.createElement("div");r.textContent=e.nodeLabel,n.append(r)}if(e.snippet){let r=this._dom.createElement("div");r.classList.add("lh-node__snippet"),r.textContent=e.snippet,n.append(r)}if(e.selector&&(n.title=e.selector),e.path&&n.setAttribute("data-path",e.path),e.selector&&n.setAttribute("data-selector",e.selector),e.snippet&&n.setAttribute("data-snippet",e.snippet),!this._fullPageScreenshot)return n;let a=e.lhId&&this._fullPageScreenshot.nodes[e.lhId];if(!a||a.width===0||a.height===0)return n;let i={width:147,height:100},o=ue.render(this._dom,this._fullPageScreenshot.screenshot,a,i);return o&&n.prepend(o),n}renderSourceLocation(e){if(!e.url)return null;let n=`${e.url}:${e.line+1}:${e.column}`,a;e.original&&(a=`${e.original.file||"<unmapped>"}:${e.original.line+1}:${e.original.column}`);let i;if(e.urlProvider==="network"&&a)i=this._createLink({url:e.url,text:a}),i.title=`maps to generated location ${n}`;else if(e.urlProvider==="network"&&!a)i=this.renderTextURL(e.url),this._dom.find(".lh-link",i).textContent+=`:${e.line+1}:${e.column}`;else if(e.urlProvider==="comment"&&a)i=this._renderText(`${a} (from source map)`),i.title=`${n} (from sourceURL)`;else if(e.urlProvider==="comment"&&!a)i=this._renderText(`${n} (from sourceURL)`);else return null;return i.classList.add("lh-source-location"),i.setAttribute("data-source-url",e.url),i.setAttribute("data-source-line",String(e.line)),i.setAttribute("data-source-column",String(e.column)),i}_renderFilmstrip(e){let n=this._dom.createElement("div","lh-filmstrip");for(let a of e.items){let i=this._dom.createChildOf(n,"div","lh-filmstrip__frame"),o=this._dom.createChildOf(i,"img","lh-filmstrip__thumbnail");o.src=a.data,o.alt="Screenshot"}return n}_renderCode(e){let n=this._dom.createElement("pre","lh-code");return n.textContent=e,n}};function Ra(t){let e=t.createComponent("explodeyGauge");return t.find(".lh-exp-gauge-component",e)}function Da(t,e,n){let a=t.find("div.lh-exp-gauge__wrapper",e);a.className="",a.classList.add("lh-exp-gauge__wrapper",`lh-exp-gauge__wrapper--${P.calculateRating(n.score)}`),qo(t,a,n)}function $o(t,e,n){n=n||t/32;let a=t/n,i=.5*n,o=a+i+n,r=2*Math.PI*a,s=Math.acos(1-.5*Math.pow(.5*n/a,2))*a,p=2*Math.PI*o,l=Math.acos(1-.5*Math.pow(.5*n/o,2))*o;return{radiusInner:a,radiusOuter:o,circumferenceInner:r,circumferenceOuter:p,getArcLength:()=>Math.max(0,Number(e*r)),getMetricArcLength:(m,d=!1)=>{let u=d?0:2*l;return Math.max(0,Number(m*p-i-u))},endDiffInner:s,endDiffOuter:l,strokeWidth:n,strokeGap:i}}function qo(t,e,n){let o=Number(n.score),{radiusInner:r,radiusOuter:s,circumferenceInner:p,circumferenceOuter:l,getArcLength:m,getMetricArcLength:d,endDiffInner:u,endDiffOuter:h,strokeWidth:b,strokeGap:C}=$o(128,o),v=t.find("svg.lh-exp-gauge",e);t.find(".lh-exp-gauge__label",v).textContent=n.title,v.setAttribute("viewBox",[-64,-64/2,128,128/2].join(" ")),v.style.setProperty("--stroke-width",`${b}px`),v.style.setProperty("--circle-meas",(2*Math.PI).toFixed(4));let g=t.find("g.lh-exp-gauge__outer",e),f=t.find("g.lh-exp-gauge__inner",e),_=t.find("circle.lh-cover",g),w=t.find("circle.lh-exp-gauge__arc",f),k=t.find("text.lh-exp-gauge__percentage",f);g.style.setProperty("--scale-initial",String(r/s)),g.style.setProperty("--radius",`${s}px`),_.style.setProperty("--radius",`${.5*(r+s)}px`),_.setAttribute("stroke-width",String(C)),v.style.setProperty("--radius",`${r}px`),w.setAttribute("stroke-dasharray",`${m()} ${(p-m()).toFixed(4)}`),w.setAttribute("stroke-dashoffset",String(.25*p-u)),k.textContent=Math.round(o*100).toString();let I=s+b,D=s-b,j=n.auditRefs.filter(L=>L.group==="metrics"&&L.weight),W=j.reduce((L,F)=>L+=F.weight,0),z=.25*l-h-.5*C,B=-.5*Math.PI;g.querySelectorAll(".metric").forEach(L=>{j.map(X=>`metric--${X.id}`).find(X=>L.classList.contains(X))||L.remove()}),j.forEach((L,F)=>{let G=L.acronym??L.id,X=!g.querySelector(`.metric--${G}`),V=t.maybeFind(`g.metric--${G}`,g)||t.createSVGElement("g"),we=t.maybeFind(`.metric--${G} circle.lh-exp-gauge--faded`,g)||t.createSVGElement("circle"),fe=t.maybeFind(`.metric--${G} circle.lh-exp-gauge--miniarc`,g)||t.createSVGElement("circle"),Q=t.maybeFind(`.metric--${G} circle.lh-exp-gauge-hovertarget`,g)||t.createSVGElement("circle"),J=t.maybeFind(`.metric--${G} text.metric__label`,g)||t.createSVGElement("text"),q=t.maybeFind(`.metric--${G} text.metric__value`,g)||t.createSVGElement("text");V.classList.add("metric",`metric--${G}`),we.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge--faded"),fe.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge--miniarc"),Q.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge-hovertarget");let ve=L.weight/W,an=d(ve),on=L.result.score?L.result.score*ve:0,rn=d(on),li=ve*l,sn=d(ve,!0),ln=P.calculateRating(L.result.score,L.result.scoreDisplayMode);V.style.setProperty("--metric-rating",ln),V.style.setProperty("--metric-color",`var(--color-${ln})`),V.style.setProperty("--metric-offset",`${z}`),V.style.setProperty("--i",F.toString()),we.setAttribute("stroke-dasharray",`${an} ${l-an}`),fe.style.setProperty("--metric-array",`${rn} ${l-rn}`),Q.setAttribute("stroke-dasharray",`${sn} ${l-sn-h}`),J.classList.add("metric__label"),q.classList.add("metric__value"),J.textContent=G,q.textContent=`+${Math.round(on*100)}`;let pn=B+ve*Math.PI,xe=Math.cos(pn),Se=Math.sin(pn);switch(!0){case xe>0:q.setAttribute("text-anchor","end");break;case xe<0:J.setAttribute("text-anchor","end");break;case xe===0:J.setAttribute("text-anchor","middle"),q.setAttribute("text-anchor","middle");break}switch(!0){case Se>0:J.setAttribute("dominant-baseline","hanging");break;case Se<0:q.setAttribute("dominant-baseline","hanging");break;case Se===0:J.setAttribute("dominant-baseline","middle"),q.setAttribute("dominant-baseline","middle");break}J.setAttribute("x",(I*xe).toFixed(2)),J.setAttribute("y",(I*Se).toFixed(2)),q.setAttribute("x",(D*xe).toFixed(2)),q.setAttribute("y",(D*Se).toFixed(2)),X&&(V.appendChild(we),V.appendChild(fe),V.appendChild(Q),V.appendChild(J),V.appendChild(q),g.appendChild(V)),z-=li,B+=ve*2*Math.PI});let K=g.querySelector(".lh-exp-gauge-underhovertarget")||t.createSVGElement("circle");K.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge-hovertarget","lh-exp-gauge-underhovertarget");let Y=d(1,!0);if(K.setAttribute("stroke-dasharray",`${Y} ${l-Y-h}`),K.isConnected||g.prepend(K),v.dataset.listenersSetup)return;v.dataset.listenersSetup=!0,si(v),v.addEventListener("pointerover",L=>{if(L.target===v&&v.classList.contains("state--expanded")){v.classList.remove("state--expanded"),v.classList.contains("state--highlight")&&(v.classList.remove("state--highlight"),t.find(".metric--highlight",v).classList.remove("metric--highlight"));return}if(!(L.target instanceof Element))return;let F=L.target.parentNode;if(F instanceof SVGElement){if(F&&F===f){v.classList.contains("state--expanded")?v.classList.contains("state--highlight")&&(v.classList.remove("state--highlight"),t.find(".metric--highlight",v).classList.remove("metric--highlight")):v.classList.add("state--expanded");return}if(F&&F.classList&&F.classList.contains("metric")){let G=F.style.getPropertyValue("--metric-rating");if(e.style.setProperty("--color-highlight",`var(--color-${G}-secondary)`),!v.classList.contains("state--highlight"))v.classList.add("state--highlight"),F.classList.add("metric--highlight");else{let X=t.find(".metric--highlight",v);F!==X&&(X.classList.remove("metric--highlight"),F.classList.add("metric--highlight"))}}}}),v.addEventListener("mouseleave",()=>{v.classList.remove("state--highlight"),v.querySelector(".metric--highlight")?.classList.remove("metric--highlight")});async function si(L){if(await new Promise(Q=>setTimeout(Q,1e3)),L.classList.contains("state--expanded"))return;let F=t.find(".lh-exp-gauge__inner",L),G=Array.from(F.querySelectorAll("circle")).map(Q=>{let J=`uniq-${Math.random()}`;Q.setAttribute("id",J);let q=t.createSVGElement("use");return q.setAttribute("href",`#${J}`),L.appendChild(q),q}),X=2.5;L.style.setProperty("--peek-dur",`${X}s`),L.classList.add("state--peek","state--expanded");let V=()=>{L.classList.remove("state--peek","state--expanded"),G.forEach(Q=>Q.remove())},we=setTimeout(()=>{L.removeEventListener("mouseenter",fe),V()},X*1e3*1.5);function fe(){clearTimeout(we),V()}L.addEventListener("mouseenter",fe,{once:!0})}}var gt=class extends pe{_renderMetric(e){let n=this.dom.createComponent("metric"),a=this.dom.find(".lh-metric",n);a.id=e.result.id;let i=P.calculateRating(e.result.score,e.result.scoreDisplayMode);a.classList.add(`lh-metric--${i}`);let o=this.dom.find(".lh-metric__title",n);o.textContent=e.result.title;let r=this.dom.find(".lh-metric__value",n);r.textContent=e.result.displayValue||"";let s=this.dom.find(".lh-metric__description",n);if(s.append(this.dom.convertMarkdownLinkSnippets(e.result.description)),e.result.scoreDisplayMode==="error"){s.textContent="",r.textContent="Error!";let p=this.dom.createChildOf(s,"span");p.textContent=e.result.errorMessage||"Report error: no metric information"}else e.result.scoreDisplayMode==="notApplicable"&&(r.textContent="--");return a}_getScoringCalculatorHref(e){let n=e.filter(d=>d.group==="metrics"),a=e.find(d=>d.id==="interactive"),i=e.find(d=>d.id==="first-cpu-idle"),o=e.find(d=>d.id==="first-meaningful-paint");a&&n.push(a),i&&n.push(i),o&&typeof o.result.score=="number"&&n.push(o);let r=d=>Math.round(d*100)/100,p=[...n.map(d=>{let u;return typeof d.result.numericValue=="number"?(u=d.id==="cumulative-layout-shift"?r(d.result.numericValue):Math.round(d.result.numericValue),u=u.toString()):u="null",[d.acronym||d.id,u]})];y.reportJson&&(p.push(["device",y.reportJson.configSettings.formFactor]),p.push(["version",y.reportJson.lighthouseVersion]));let l=new URLSearchParams(p),m=new URL("https://googlechrome.github.io/lighthouse/scorecalc/");return m.hash=l.toString(),m.href}overallImpact(e,n){if(!e.result.metricSavings)return{overallImpact:0,overallLinearImpact:0};let a=0,i=0;for(let[o,r]of Object.entries(e.result.metricSavings)){if(r===void 0)continue;let s=n.find(h=>h.acronym===o);if(!s||s.result.score===null)continue;let p=s.result.numericValue;if(!p)continue;let l=r/p*s.weight;i+=l;let m=s.result.scoringOptions;if(!m)continue;let u=(N.computeLogNormalScore(m,p-r)-s.result.score)*s.weight;a+=u}return{overallImpact:a,overallLinearImpact:i}}render(e,n,a){let i=y.strings,o=this.dom.createElement("div","lh-category");o.id=e.id,o.append(this.renderCategoryHeader(e,n,a));let r=e.auditRefs.filter(u=>u.group==="metrics");if(r.length){let[u,h]=this.renderAuditGroup(n.metrics),b=this.dom.createElement("input","lh-metrics-toggle__input"),C=`lh-metrics-toggle${y.getUniqueSuffix()}`;b.setAttribute("aria-label","Toggle the display of metric descriptions"),b.type="checkbox",b.id=C,u.prepend(b);let v=this.dom.find(".lh-audit-group__header",u),g=this.dom.createChildOf(v,"label","lh-metrics-toggle__label");g.htmlFor=C;let f=this.dom.createChildOf(g,"span","lh-metrics-toggle__labeltext--show"),_=this.dom.createChildOf(g,"span","lh-metrics-toggle__labeltext--hide");f.textContent=y.strings.expandView,_.textContent=y.strings.collapseView;let w=this.dom.createElement("div","lh-metrics-container");if(u.insertBefore(w,h),r.forEach(k=>{w.append(this._renderMetric(k))}),o.querySelector(".lh-gauge__wrapper")){let k=this.dom.find(".lh-category-header__description",o),I=this.dom.createChildOf(k,"div","lh-metrics__disclaimer"),D=this.dom.convertMarkdownLinkSnippets(i.varianceDisclaimer);I.append(D);let j=this.dom.createChildOf(I,"a","lh-calclink");j.target="_blank",j.textContent=i.calculatorLink,this.dom.safelySetHref(j,this._getScoringCalculatorHref(e.auditRefs))}u.classList.add("lh-audit-group--metrics"),o.append(u)}let s=this.dom.createChildOf(o,"div","lh-filmstrip-container"),l=e.auditRefs.find(u=>u.id==="screenshot-thumbnails")?.result;if(l?.details){s.id=l.id;let u=this.detailsRenderer.render(l.details);u&&s.append(u)}let m=this.renderFilterableSection(e,n,["insights","diagnostics"],r);if(m&&(m.classList.add("lh-perf-audits"),o.append(m)),(!a||a?.gatherMode==="navigation")&&e.score!==null){let u=Ra(this.dom);Da(this.dom,u,e),this.dom.find(".lh-score__gauge",o).replaceWith(u)}return o}renderFilterableSection(e,n,a,i){if(a=a.filter(g=>!!n[g]),!a.length)return null;let o=this.dom.createElement("div"),r=g=>g.group??"",p=e.auditRefs.filter(g=>a.includes(r(g))).map(g=>{let{overallImpact:f,overallLinearImpact:_}=this.overallImpact(g,i),w=g.result.guidanceLevel||1,k=this.renderAudit(g);return{auditRef:g,auditEl:k,overallImpact:f,overallLinearImpact:_,guidanceLevel:w}}),l=p.filter(g=>!P.showAsPassed(g.auditRef.result)),m=p.filter(g=>P.showAsPassed(g.auditRef.result)),d={};for(let g of a){let f=this.renderAuditGroup(n[g]);f[0].classList.add(`lh-audit-group--${g}`),d[g]=f}function u(g){for(let f of p)if(g==="All")f.auditEl.hidden=!1;else{let _=f.auditRef.result.metricSavings?.[g]===void 0;f.auditEl.hidden=_}l.sort((f,_)=>{let w=f.auditRef.result.score||0,k=_.auditRef.result.score||0;if(w!==k)return w-k;if(g!=="All"){let I=f.auditRef.result.metricSavings?.[g]??-1,D=_.auditRef.result.metricSavings?.[g]??-1;if(I!==D)return D-I}return f.overallImpact!==_.overallImpact?_.overallImpact*_.guidanceLevel-f.overallImpact*f.guidanceLevel:f.overallImpact===0&&_.overallImpact===0&&f.overallLinearImpact!==_.overallLinearImpact?_.overallLinearImpact*_.guidanceLevel-f.overallLinearImpact*f.guidanceLevel:_.guidanceLevel-f.guidanceLevel});for(let f of l){if(!f.auditRef.group)continue;let _=d[r(f.auditRef)];if(!_)continue;let[w,k]=_;w.insertBefore(f.auditEl,k)}}let h=new Set;for(let g of l){let f=g.auditRef.result.metricSavings||{};for(let[_,w]of Object.entries(f))typeof w=="number"&&h.add(_)}let b=i.filter(g=>g.acronym&&h.has(g.acronym));b.length&&this.renderMetricAuditFilter(b,o,u),u("All");for(let g of a)if(l.some(f=>r(f.auditRef)===g)){let f=d[g];if(!f)continue;o.append(f[0])}if(!m.length)return o;let C={auditRefsOrEls:m.map(g=>g.auditEl),groupDefinitions:n},v=this.renderClump("passed",C);return o.append(v),o}renderMetricAuditFilter(e,n,a){let i=this.dom.createElement("div","lh-metricfilter"),o=this.dom.createChildOf(i,"span","lh-metricfilter__text");o.textContent=y.strings.showRelevantAudits;let r=[{acronym:"All",id:"All"},...e],s=y.getUniqueSuffix();for(let p of r){let l=`metric-${p.acronym}-${s}`,m=this.dom.createChildOf(i,"input","lh-metricfilter__radio");m.type="radio",m.name=`metricsfilter-${s}`,m.id=l;let d=this.dom.createChildOf(i,"label","lh-metricfilter__label");d.htmlFor=l,d.title="result"in p?p.result.title:"",d.textContent=p.acronym||p.id,p.acronym==="All"&&(m.checked=!0,d.classList.add("lh-metricfilter__label--active")),n.append(i),m.addEventListener("input",u=>{for(let b of n.querySelectorAll("label.lh-metricfilter__label"))b.classList.toggle("lh-metricfilter__label--active",b.htmlFor===l);n.classList.toggle("lh-category--filtered",p.acronym!=="All"),a(p.acronym||"All");let h=n.querySelectorAll("div.lh-audit-group, details.lh-audit-group");for(let b of h){b.hidden=!1;let C=Array.from(b.querySelectorAll("div.lh-audit")),v=!!C.length&&C.every(g=>g.hidden);b.hidden=v}})}}};var ft=class{constructor(e){this._dom=e,this._opts={}}renderReport(e,n,a){if(!this._dom.rootEl&&n){console.warn("Please adopt the new report API in renderer/api.js.");let o=n.closest(".lh-root");o?this._dom.rootEl=o:(n.classList.add("lh-root","lh-vars"),this._dom.rootEl=n)}else this._dom.rootEl&&n&&(this._dom.rootEl=n);a&&(this._opts=a),this._dom.setLighthouseChannel(e.configSettings.channel||"unknown");let i=P.prepareReportResult(e);return this._dom.rootEl.textContent="",this._dom.rootEl.append(this._renderReport(i)),this._opts.occupyEntireViewport&&this._dom.rootEl.classList.add("lh-max-viewport"),this._dom.rootEl}_renderReportTopbar(e){let n=this._dom.createComponent("topbar"),a=this._dom.find("a.lh-topbar__url",n);return a.textContent=e.finalDisplayedUrl,a.title=e.finalDisplayedUrl,this._dom.safelySetHref(a,e.finalDisplayedUrl),n}_renderReportHeader(){let e=this._dom.createComponent("heading"),n=this._dom.createComponent("scoresWrapper");return this._dom.find(".lh-scores-wrapper-placeholder",e).replaceWith(n),e}_renderReportFooter(e){let n=this._dom.createComponent("footer");return this._renderMetaBlock(e,n),this._dom.find(".lh-footer__version_issue",n).textContent=y.strings.footerIssue,this._dom.find(".lh-footer__version",n).textContent=e.lighthouseVersion,n}_renderMetaBlock(e,n){let a=P.getEmulationDescriptions(e.configSettings||{}),i=e.userAgent.match(/(\w*Chrome\/[\d.]+)/),o=Array.isArray(i)?i[1].replace("/"," ").replace("Chrome","Chromium"):"Chromium",r=e.configSettings.channel,s=e.environment.benchmarkIndex.toFixed(0),p=e.environment.credits?.["axe-core"],l=[`${y.strings.runtimeSettingsBenchmark}: ${s}`,`${y.strings.runtimeSettingsCPUThrottling}: ${a.cpuThrottling}`];a.screenEmulation&&l.push(`${y.strings.runtimeSettingsScreenEmulation}: ${a.screenEmulation}`),p&&l.push(`${y.strings.runtimeSettingsAxeVersion}: ${p}`);let m=y.strings.runtimeAnalysisWindow;e.gatherMode==="timespan"?m=y.strings.runtimeAnalysisWindowTimespan:e.gatherMode==="snapshot"&&(m=y.strings.runtimeAnalysisWindowSnapshot);let d=[["date",`Captured at ${y.i18n.formatDateTime(e.fetchTime)}`],["devices",`${a.deviceEmulation} with Lighthouse ${e.lighthouseVersion}`,l.join(`
2877
- `)],["samples-one",y.strings.runtimeSingleLoad,y.strings.runtimeSingleLoadTooltip],["stopwatch",m],["networkspeed",`${a.summary}`,`${y.strings.runtimeSettingsNetworkThrottling}: ${a.networkThrottling}`],["chrome",`Using ${o}`+(r?` with ${r}`:""),`${y.strings.runtimeSettingsUANetwork}: "${e.environment.networkUserAgent}"`]],u=Object.keys(e.categories).filter(b=>P.isPluginCategory(b));for(let b of u){let C=e.environment.credits?.[b];d.push(["plugin",C?`${b} ${C}`:b,void 0,`https://www.npmjs.com/package/${b}`])}let h=this._dom.find(".lh-meta__items",n);for(let[b,C,v,g]of d){let f=this._dom.createChildOf(h,"li","lh-meta__item");if(g){let _=this._dom.createChildOf(f,"a");_.rel="noopener",_.target="_blank",_.textContent=C,this._dom.safelySetHref(_,g)}else f.textContent=C;if(v){f.classList.add("lh-tooltip-boundary");let _=this._dom.createChildOf(f,"div","lh-tooltip");_.textContent=v}f.classList.add("lh-report-icon",`lh-report-icon--${b}`)}}_renderReportWarnings(e){if(!e.runWarnings||e.runWarnings.length===0)return this._dom.createElement("div");let n=this._dom.createComponent("warningsToplevel"),a=this._dom.find(".lh-warnings__msg",n);a.textContent=y.strings.toplevelWarningsMessage;let i=[];for(let o of e.runWarnings){let r=this._dom.createElement("li");r.append(this._dom.convertMarkdownLinkSnippets(o)),i.push(r)}return this._dom.find("ul",n).append(...i),n}_renderScoreGauges(e,n,a){let i=[],o=[];for(let r of Object.values(e.categories)){let p=(a[r.id]||n).renderCategoryScore(r,e.categoryGroups||{},{gatherMode:e.gatherMode}),l=this._dom.find("a.lh-gauge__wrapper, a.lh-fraction__wrapper",p);l&&(this._dom.safelySetHref(l,`#${r.id}`),l.addEventListener("click",m=>{if(!l.matches('[href^="#"]'))return;let d=l.getAttribute("href"),u=this._dom.rootEl;if(!d||!u)return;let h=this._dom.find(d,u);m.preventDefault(),h.scrollIntoView()}),this._opts.onPageAnchorRendered?.(l)),P.isPluginCategory(r.id)?o.push(p):i.push(p)}return[...i,...o]}_renderReport(e){y.apply({providedStrings:e.i18n.rendererFormattedStrings,i18n:new ge(e.configSettings.locale),reportJson:e});let n=new _e(this._dom,{fullPageScreenshot:e.fullPageScreenshot??void 0,entities:e.entities}),a=new pe(this._dom,n),i={performance:new gt(this._dom,n)},o=this._dom.createElement("div");o.append(this._renderReportHeader());let r=this._dom.createElement("div","lh-container"),s=this._dom.createElement("div","lh-report");s.append(this._renderReportWarnings(e));let p;Object.keys(e.categories).length===1?o.classList.add("lh-header--solo-category"):p=this._dom.createElement("div","lh-scores-header");let m=this._dom.createElement("div");if(m.classList.add("lh-scorescale-wrap"),m.append(this._dom.createComponent("scorescale")),p){let b=this._dom.find(".lh-scores-container",o);p.append(...this._renderScoreGauges(e,a,i)),b.append(p,m);let C=this._dom.createElement("div","lh-sticky-header");C.append(...this._renderScoreGauges(e,a,i)),r.append(C)}let d=this._dom.createElement("div","lh-categories");s.append(d);let u={gatherMode:e.gatherMode};for(let b of Object.values(e.categories)){let C=i[b.id]||a;C.dom.createChildOf(d,"div","lh-category-wrapper").append(C.render(b,e.categoryGroups,u))}a.injectFinalScreenshot(d,e.audits,m);let h=this._dom.createFragment();return this._opts.omitGlobalStyles||h.append(this._dom.createComponent("styles")),this._opts.omitTopbar||h.append(this._renderReportTopbar(e)),h.append(r),s.append(this._renderReportFooter(e)),r.append(o,s),e.fullPageScreenshot&&ue.installFullPageScreenshot(this._dom.rootEl,e.fullPageScreenshot.screenshot),h}};function Ce(t,e){let n=t.rootEl;typeof e>"u"?n.classList.toggle("lh-dark"):n.classList.toggle("lh-dark",e)}var Wo=typeof btoa<"u"?btoa:t=>Buffer.from(t).toString("base64"),Jo=typeof atob<"u"?atob:t=>Buffer.from(t,"base64").toString();async function Zo(t,e){let n=new TextEncoder().encode(t);if(e.gzip)if(typeof CompressionStream<"u"){let o=new CompressionStream("gzip"),r=o.writable.getWriter();r.write(n),r.close();let s=await new Response(o.readable).arrayBuffer();n=new Uint8Array(s)}else n=window.pako.gzip(t);let a="",i=5e3;for(let o=0;o<n.length;o+=i)a+=String.fromCharCode(...n.subarray(o,o+i));return Wo(a)}function Ko(t,e){let n=Jo(t),a=Uint8Array.from(n,i=>i.charCodeAt(0));return e.gzip?window.pako.ungzip(a,{toText:!0}):new TextDecoder().decode(a)}var za={toBase64:Zo,fromBase64:Ko};function Yt(){let t=window.location.host.endsWith(".vercel.app"),e=new URLSearchParams(window.location.search).has("dev");return t?`https://${window.location.host}/gh-pages`:e?"http://localhost:7333":"https://googlechrome.github.io/lighthouse"}function Qt(t){let e=t.generatedTime,n=t.fetchTime||e;return`${t.lighthouseVersion}-${t.finalDisplayedUrl}-${n}`}function Xo(t,e,n){let a=new URL(e).origin;window.addEventListener("message",function o(r){r.origin===a&&i&&r.data.opened&&(i.postMessage(t,a),window.removeEventListener("message",o))});let i=window.open(e,n)}async function ja(t,e,n){let a=new URL(e),i=!!window.CompressionStream;a.hash=await za.toBase64(JSON.stringify(t),{gzip:i}),i&&a.searchParams.set("gzip","1"),window.open(a.toString(),n)}async function Ma(t){let e="viewer-"+Qt(t),n=Yt()+"/viewer/";await ja({lhr:t},n,e)}async function Ha(t){let e="viewer-"+Qt(t),n=Yt()+"/viewer/";Xo({lhr:t},n,e)}function Fa(t){if(!t.audits["script-treemap-data"].details)throw new Error("no script treemap data found");let n={lhr:{mainDocumentUrl:t.mainDocumentUrl,finalUrl:t.finalUrl,finalDisplayedUrl:t.finalDisplayedUrl,audits:{"script-treemap-data":t.audits["script-treemap-data"]},configSettings:{locale:t.configSettings.locale}}},a=Yt()+"/treemap/",i="treemap-"+Qt(t);ja(n,a,i)}var vt=class{constructor(e){this._dom=e,this._toggleEl,this._menuEl,this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this),this.onToggleClick=this.onToggleClick.bind(this),this.onToggleKeydown=this.onToggleKeydown.bind(this),this.onMenuFocusOut=this.onMenuFocusOut.bind(this),this.onMenuKeydown=this.onMenuKeydown.bind(this),this._getNextMenuItem=this._getNextMenuItem.bind(this),this._getNextSelectableNode=this._getNextSelectableNode.bind(this),this._getPreviousMenuItem=this._getPreviousMenuItem.bind(this)}setup(e){this._toggleEl=this._dom.find(".lh-topbar button.lh-tools__button",this._dom.rootEl),this._toggleEl.addEventListener("click",this.onToggleClick),this._toggleEl.addEventListener("keydown",this.onToggleKeydown),this._menuEl=this._dom.find(".lh-topbar div.lh-tools__dropdown",this._dom.rootEl),this._menuEl.addEventListener("keydown",this.onMenuKeydown),this._menuEl.addEventListener("click",e)}close(){this._toggleEl.classList.remove("lh-active"),this._toggleEl.setAttribute("aria-expanded","false"),this._menuEl.contains(this._dom.document().activeElement)&&this._toggleEl.focus(),this._menuEl.removeEventListener("focusout",this.onMenuFocusOut),this._dom.document().removeEventListener("keydown",this.onDocumentKeyDown)}open(e){this._toggleEl.classList.contains("lh-active")?e.focus():this._menuEl.addEventListener("transitionend",()=>{e.focus()},{once:!0}),this._toggleEl.classList.add("lh-active"),this._toggleEl.setAttribute("aria-expanded","true"),this._menuEl.addEventListener("focusout",this.onMenuFocusOut),this._dom.document().addEventListener("keydown",this.onDocumentKeyDown)}onToggleClick(e){e.preventDefault(),e.stopImmediatePropagation(),this._toggleEl.classList.contains("lh-active")?this.close():this.open(this._getNextMenuItem())}onToggleKeydown(e){switch(e.code){case"ArrowUp":e.preventDefault(),this.open(this._getPreviousMenuItem());break;case"ArrowDown":case"Enter":case" ":e.preventDefault(),this.open(this._getNextMenuItem());break;default:}}onMenuKeydown(e){let n=e.target;switch(e.code){case"ArrowUp":e.preventDefault(),this._getPreviousMenuItem(n).focus();break;case"ArrowDown":e.preventDefault(),this._getNextMenuItem(n).focus();break;case"Home":e.preventDefault(),this._getNextMenuItem().focus();break;case"End":e.preventDefault(),this._getPreviousMenuItem().focus();break;default:}}onDocumentKeyDown(e){e.keyCode===27&&this.close()}onMenuFocusOut(e){let n=e.relatedTarget;this._menuEl.contains(n)||this.close()}_getNextSelectableNode(e,n){let a=e.filter(o=>o instanceof HTMLElement).filter(o=>!(o.hasAttribute("disabled")||window.getComputedStyle(o).display==="none")),i=n?a.indexOf(n)+1:0;return i>=a.length&&(i=0),a[i]}_getNextMenuItem(e){let n=Array.from(this._menuEl.childNodes);return this._getNextSelectableNode(n,e)}_getPreviousMenuItem(e){let n=Array.from(this._menuEl.childNodes).reverse();return this._getNextSelectableNode(n,e)}};var bt=class{constructor(e,n){this.lhr,this._reportUIFeatures=e,this._dom=n,this._dropDownMenu=new vt(this._dom),this._copyAttempt=!1,this.topbarEl,this.categoriesEl,this.stickyHeaderEl,this.highlightEl,this.onDropDownMenuClick=this.onDropDownMenuClick.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onCopy=this.onCopy.bind(this),this.collapseAllDetails=this.collapseAllDetails.bind(this)}enable(e){this.lhr=e,this._dom.rootEl.addEventListener("keyup",this.onKeyUp),this._dom.document().addEventListener("copy",this.onCopy),this._dropDownMenu.setup(this.onDropDownMenuClick),this._setUpCollapseDetailsAfterPrinting(),this._dom.find(".lh-topbar__logo",this._dom.rootEl).addEventListener("click",()=>Ce(this._dom)),this._setupStickyHeader()}onDropDownMenuClick(e){e.preventDefault();let n=e.target;if(!(!n||!n.hasAttribute("data-action"))){switch(n.getAttribute("data-action")){case"copy":this.onCopyButtonClick();break;case"print-summary":this.collapseAllDetails(),this._print();break;case"print-expanded":this.expandAllDetails(),this._print();break;case"save-json":{let a=JSON.stringify(this.lhr,null,2);this._reportUIFeatures._saveFile(new Blob([a],{type:"application/json"}));break}case"save-html":{let a=this._reportUIFeatures.getReportHtml();try{this._reportUIFeatures._saveFile(new Blob([a],{type:"text/html"}))}catch(i){this._dom.fireEventOn("lh-log",this._dom.document(),{cmd:"error",msg:"Could not export as HTML. "+i.message})}break}case"open-viewer":{this._dom.isDevTools()?Ma(this.lhr):Ha(this.lhr);break}case"save-gist":{this._reportUIFeatures.saveAsGist();break}case"toggle-dark":{Ce(this._dom);break}case"view-unthrottled-trace":this._reportUIFeatures._opts.onViewTrace?.()}this._dropDownMenu.close()}}onCopy(e){this._copyAttempt&&e.clipboardData&&(e.preventDefault(),e.clipboardData.setData("text/plain",JSON.stringify(this.lhr,null,2)),this._dom.fireEventOn("lh-log",this._dom.document(),{cmd:"log",msg:"Report JSON copied to clipboard"})),this._copyAttempt=!1}onCopyButtonClick(){this._dom.fireEventOn("lh-analytics",this._dom.document(),{name:"copy"});try{this._dom.document().queryCommandSupported("copy")&&(this._copyAttempt=!0,this._dom.document().execCommand("copy")||(this._copyAttempt=!1,this._dom.fireEventOn("lh-log",this._dom.document(),{cmd:"warn",msg:"Your browser does not support copy to clipboard."})))}catch(e){this._copyAttempt=!1,this._dom.fireEventOn("lh-log",this._dom.document(),{cmd:"log",msg:e.message})}}onKeyUp(e){(e.ctrlKey||e.metaKey)&&e.keyCode===80&&this._dropDownMenu.close()}expandAllDetails(){this._dom.findAll(".lh-categories details",this._dom.rootEl).map(n=>n.open=!0)}collapseAllDetails(){this._dom.findAll(".lh-categories details",this._dom.rootEl).map(n=>n.open=!1)}_print(){this._reportUIFeatures._opts.onPrintOverride?this._reportUIFeatures._opts.onPrintOverride(this._dom.rootEl):self.print()}resetUIState(){this._dropDownMenu.close()}_getScrollParent(e){let{overflowY:n}=window.getComputedStyle(e);return n!=="visible"&&n!=="hidden"?e:e.parentElement?this._getScrollParent(e.parentElement):document}_setUpCollapseDetailsAfterPrinting(){"onbeforeprint"in self?self.addEventListener("afterprint",this.collapseAllDetails):self.matchMedia("print").addListener(n=>{n.matches?this.expandAllDetails():this.collapseAllDetails()})}_setupStickyHeader(){this.topbarEl=this._dom.find("div.lh-topbar",this._dom.rootEl),this.categoriesEl=this._dom.find("div.lh-categories",this._dom.rootEl),requestAnimationFrame(()=>requestAnimationFrame(()=>{try{this.stickyHeaderEl=this._dom.find("div.lh-sticky-header",this._dom.rootEl)}catch{return}this.highlightEl=this._dom.createChildOf(this.stickyHeaderEl,"div","lh-highlighter");let e=this._getScrollParent(this._dom.find(".lh-container",this._dom.rootEl));e.addEventListener("scroll",()=>this._updateStickyHeader());let n=e instanceof window.Document?document.documentElement:e;new window.ResizeObserver(()=>this._updateStickyHeader()).observe(n)}))}_updateStickyHeader(){if(!this.stickyHeaderEl)return;let e=this.topbarEl.getBoundingClientRect().bottom,n=this.categoriesEl.getBoundingClientRect().top,a=e>=n,o=Array.from(this._dom.rootEl.querySelectorAll(".lh-category")).filter(d=>d.getBoundingClientRect().top-window.innerHeight/2<0),r=o.length>0?o.length-1:0,s=this.stickyHeaderEl.querySelectorAll(".lh-gauge__wrapper, .lh-fraction__wrapper"),p=s[r],l=s[0].getBoundingClientRect().left,m=p.getBoundingClientRect().left-l;this.highlightEl.style.transform=`translate(${m}px)`,this.stickyHeaderEl.classList.toggle("lh-sticky-header--visible",a)}};function Ba(t,e){let n=e?new Date(e):new Date,a=n.toLocaleTimeString("en-US",{hour12:!1}),i=n.toLocaleDateString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"}).split("/");i.unshift(i.pop());let o=i.join("-");return`${t.slice(0,200)}_${o}_${a}`.replace(/[/?<>\\:*|"]/g,"-")}function Oa(t){let{hostname:e,pathname:n}=new URL(t.finalDisplayedUrl),a=e+n.replace(/\/$/,"");return Ba(a,t.fetchTime)}function Ga(t){let e=t.steps[0].lhr,n=t.name.replace(/\s/g,"-");return Ba(n,e.fetchTime)}function Yo(t){return Array.from(t.tBodies[0].rows)}var yt=class{constructor(e,n={}){this.json,this._dom=e,this._opts=n,this._topbar=n.omitTopbar?null:new bt(this,e),this.onMediaQueryChange=this.onMediaQueryChange.bind(this)}initFeatures(e){this.json=e,this._fullPageScreenshot=N.getFullPageScreenshot(e),this._topbar&&(this._topbar.enable(e),this._topbar.resetUIState()),this._setupMediaQueryListeners(),this._setupThirdPartyFilter(),this._setupElementScreenshotOverlay(this._dom.rootEl);let n=this._dom.isDevTools()||this._opts.disableDarkMode||this._opts.disableAutoDarkModeAndFireworks;!n&&window.matchMedia("(prefers-color-scheme: dark)").matches&&Ce(this._dom,!0);let i=["performance","accessibility","best-practices","seo"].every(p=>{let l=e.categories[p];return l&&l.score===1}),o=this._opts.disableFireworks||this._opts.disableAutoDarkModeAndFireworks;if(i&&!o&&(this._enableFireworks(),n||Ce(this._dom,!0)),e.categories.performance&&e.categories.performance.auditRefs.some(p=>!!(p.group==="metrics"&&e.audits[p.id].errorMessage))){let p=this._dom.find("input.lh-metrics-toggle__input",this._dom.rootEl);p.checked=!0}this.json.audits["script-treemap-data"]&&this.json.audits["script-treemap-data"].details&&this.addButton({text:y.strings.viewTreemapLabel,icon:"treemap",onClick:()=>Fa(this.json)}),this._opts.onViewTrace&&(e.configSettings.throttlingMethod==="simulate"?this._dom.find('a[data-action="view-unthrottled-trace"]',this._dom.rootEl).classList.remove("lh-hidden"):this.addButton({text:y.strings.viewTraceLabel,onClick:()=>this._opts.onViewTrace?.()})),this._opts.getStandaloneReportHTML&&this._dom.find('a[data-action="save-html"]',this._dom.rootEl).classList.remove("lh-hidden");for(let p of this._dom.findAll("[data-i18n]",this._dom.rootEl)){let m=p.getAttribute("data-i18n");p.textContent=y.strings[m]}}addButton(e){let n=this._dom.rootEl.querySelector(".lh-audit-group--metrics");if(!n)return;let a=n.querySelector(".lh-buttons");a||(a=this._dom.createChildOf(n,"div","lh-buttons"));let i=["lh-button"];e.icon&&(i.push("lh-report-icon"),i.push(`lh-report-icon--${e.icon}`));let o=this._dom.createChildOf(a,"button",i.join(" "));return o.textContent=e.text,o.addEventListener("click",e.onClick),o}resetUIState(){this._topbar&&this._topbar.resetUIState()}getReportHtml(){if(!this._opts.getStandaloneReportHTML)throw new Error("`getStandaloneReportHTML` is not set");return this.resetUIState(),this._opts.getStandaloneReportHTML()}saveAsGist(){throw new Error("Cannot save as gist from base report")}_enableFireworks(){this._dom.find(".lh-scores-container",this._dom.rootEl).classList.add("lh-score100")}_setupMediaQueryListeners(){let e=self.matchMedia("(max-width: 500px)");e.addListener(this.onMediaQueryChange),this.onMediaQueryChange(e)}_resetUIState(){this._topbar&&this._topbar.resetUIState()}onMediaQueryChange(e){this._dom.rootEl.classList.toggle("lh-narrow",e.matches)}_setupThirdPartyFilter(){let e=["uses-rel-preconnect","third-party-facades","network-dependency-tree-insight"],n=["legacy-javascript","legacy-javascript-insight"];Array.from(this._dom.rootEl.querySelectorAll("table.lh-table")).filter(o=>o.querySelector("td.lh-table-column--url, td.lh-table-column--source-location")).filter(o=>{let r=o.closest(".lh-audit");if(!r)throw new Error(".lh-table not within audit");return!e.includes(r.id)}).forEach(o=>{let r=Yo(o),s=r.filter(v=>!v.classList.contains("lh-sub-item-row")),p=this._getThirdPartyRows(s,N.getFinalDisplayedUrl(this.json)),l=r.some(v=>v.classList.contains("lh-row--even")),m=this._dom.createComponent("3pFilter"),d=this._dom.find("input",m);d.addEventListener("change",v=>{let g=v.target instanceof HTMLInputElement&&!v.target.checked,f=!0,_=s[0];for(;_;){let w=g&&p.includes(_);do _.classList.toggle("lh-row--hidden",w),l&&(_.classList.toggle("lh-row--even",!w&&f),_.classList.toggle("lh-row--odd",!w&&!f)),_=_.nextElementSibling;while(_&&_.classList.contains("lh-sub-item-row"));w||(f=!f)}});let u=p.filter(v=>!v.classList.contains("lh-row--group")).length;this._dom.find(".lh-3p-filter-count",m).textContent=`${u}`,this._dom.find(".lh-3p-ui-string",m).textContent=y.strings.thirdPartyResourcesLabel;let h=p.length===s.length,b=!p.length;if((h||b)&&(this._dom.find("div.lh-3p-filter",m).hidden=!0),!o.parentNode)return;o.parentNode.insertBefore(m,o);let C=o.closest(".lh-audit");if(!C)throw new Error(".lh-table not within audit");n.includes(C.id)&&!h&&d.click()})}_setupElementScreenshotOverlay(e){this._fullPageScreenshot&&ue.installOverlayFeature({dom:this._dom,rootEl:e,overlayContainerEl:e,fullPageScreenshot:this._fullPageScreenshot})}_getThirdPartyRows(e,n){let a=N.getEntityFromUrl(n,this.json.entities),i=this.json.entities?.find(r=>r.isFirstParty===!0)?.name,o=[];for(let r of e){if(i){if(!r.dataset.entity||r.dataset.entity===i)continue}else{let s=r.querySelector("div.lh-text__url");if(!s)continue;let p=s.dataset.url;if(!p||!(N.getEntityFromUrl(p,this.json.entities)!==a))continue}o.push(r)}return o}_saveFile(e){let n=e.type.match("json")?".json":".html",a=Oa({finalDisplayedUrl:N.getFinalDisplayedUrl(this.json),fetchTime:this.json.fetchTime})+n;this._opts.onSaveFileOverride?this._opts.onSaveFileOverride(e,a):this._dom.saveFile(e,a)}};function Va(t,e={}){let n=document.createElement("article");n.classList.add("lh-root","lh-vars");let a=new le(n.ownerDocument,n);return new ft(a).renderReport(t,n,e),new yt(a,e).initFeatures(t),n}function $a(t,e){let n=new le(document,document.documentElement),a=new _e(n);return new pe(n,a).renderCategoryScore(t,{},e)}function qa(t,e){new le(document,document.documentElement).saveFile(t,e)}function Wa(t){return new le(document,document.documentElement).convertMarkdownCodeSnippets(t)}function Ja(){return new le(document,document.documentElement).createComponent("styles")}var Za=({category:t,href:e,gatherMode:n})=>{let a=re(()=>$a(t,{gatherMode:n,omitLabel:!0,onPageAnchorRendered:i=>i.href=e}),[t,e]);return c("div",{ref:a,"data-testid":"CategoryScore"})};var Ka=({text:t})=>{let e=re(()=>Wa(t),[t]);return c("span",{ref:e})};var Qo=2;function er(t,e){switch(t){case"navigation":return e.navigationReport;case"timespan":return e.timespanReport;case"snapshot":return e.snapshotReport}}function tr(t,e){switch(t){case"pass":return e.ratingPass;case"average":return e.ratingAverage;case"fail":return e.ratingFail;case"error":return e.ratingError}}function Xa(t){return t.weight*(1-t.result.score)}var nr=({audit:t})=>{let e=P.calculateRating(t.result.score,t.result.scoreDisplayMode);return c("div",{className:`SummaryTooltipAudit SummaryTooltipAudit--${e}`,children:c(Ka,{text:t.result.title})})},ar=({category:t})=>{let e=H();function n(i){return i.result.score!==null&&i.group!=="metrics"&&i.group!=="hidden"&&(i.weight>0||i.group==="diagnostics")&&!P.showAsPassed(i.result)}let a=t.auditRefs.filter(n).sort((i,o)=>{let r=Xa(i),s=Xa(o);if(r!==s)return s-r;if(i.result.score!==o.result.score)return i.result.score-o.result.score;let p=i.result.metricSavings?.LCP||0;return(o.result.metricSavings?.LCP||0)-p}).splice(0,Qo);return a.length?c("div",{className:"SummaryTooltipAudits",children:[c("div",{className:"SummaryTooltipAudits__title",children:e.highestImpact}),a.map(i=>c(nr,{audit:i},i.id))]}):null},ir=({category:t,gatherMode:e,url:n})=>{let a=H(),i=ht(),{numPassed:o,numPassableAudits:r,numInformative:s,totalWeight:p}=P.calculateCategoryFraction(t),l=Fe(),m=P.shouldDisplayAsFraction(e,t),d=m?o/r:t.score,u=d===null?"error":P.calculateRating(d);return c("div",{className:"SummaryTooltip",children:[c("div",{className:"SummaryTooltip__title",children:er(e,a)}),c("div",{className:"SummaryTooltip__url",children:n}),c(Z,{}),c("div",{className:"SummaryTooltip__category",children:[c("div",{className:"SummaryTooltip__category-title",children:t.title}),p!==0&&c("div",{className:`SummaryTooltip__rating SummaryTooltip__rating--${u}`,children:[c("span",{children:tr(u,a)}),!m&&t.score!==null&&c(M,{children:[c("span",{children:" · "}),c("span",{children:l.formatter.formatInteger(t.score*100)})]})]})]}),c("div",{className:"SummaryTooltip__fraction",children:[c("span",{children:i(a.passedAuditCount,{numPassed:o})}),c("span",{children:" / "}),c("span",{children:i(a.passableAuditCount,{numPassableAudits:r})})]}),s!==0&&c("div",{className:"SummaryTooltip__informative",children:i(a.informativeAuditCount,{numInformative:s})}),c(ar,{category:t})]})},Ya=({category:t,href:e,gatherMode:n,finalDisplayedUrl:a})=>c("div",{className:"SummaryCategory",children:t?c("div",{className:"SummaryCategory__content",children:[c(Za,{category:t,href:e,gatherMode:n}),c(ir,{category:t,gatherMode:n,url:a})]}):c("div",{className:"SummaryCategory__null","data-testid":"SummaryCategory__null"})});var or=["performance","accessibility","best-practices","seo"],rr=40,sr=({lhr:t})=>{let e=H();return c("div",{className:"SummaryNavigationHeader","data-testid":"SummaryNavigationHeader",children:[c(se,{}),c("div",{className:"SummaryNavigationHeader__url",children:c("a",{rel:"noopener",target:"_blank",href:t.finalDisplayedUrl,children:t.finalDisplayedUrl})}),c("div",{className:"SummaryNavigationHeader__category",children:e.categoryPerformance}),c("div",{className:"SummaryNavigationHeader__category",children:e.categoryAccessibility}),c("div",{className:"SummaryNavigationHeader__category",children:e.categoryBestPractices}),c("div",{className:"SummaryNavigationHeader__category",children:e.categorySeo})]})},lr=({lhr:t,label:e,hashIndex:n})=>{let a=te(()=>P.prepareReportResult(t),[t]),i=H(),o=st(t.gatherMode,i);return c("div",{className:"SummaryFlowStep",children:[t.gatherMode==="navigation"||n===0?c(sr,{lhr:t}):c("div",{className:"SummaryFlowStep__separator",children:[c(se,{}),c(Z,{})]}),c(lt,{lhr:t,width:rr}),c(se,{mode:t.gatherMode}),c("div",{className:"SummaryFlowStep__label",children:[c("div",{className:"SummaryFlowStep__mode",children:o}),c("a",{className:"SummaryFlowStep__link",href:`#index=${n}`,children:e})]}),or.map(r=>c(Ya,{category:a.categories[r],href:`#index=${n}&anchor=${r}`,gatherMode:t.gatherMode,finalDisplayedUrl:t.finalDisplayedUrl},r))]})},pr=()=>{let t=$();return c("div",{className:"SummaryFlow",children:t.steps.map((e,n)=>c(lr,{lhr:e.lhr,label:e.name,hashIndex:n},e.lhr.fetchTime))})},ur=()=>{let t=$(),e=H(),n=ht(),a=0,i=0,o=0;for(let p of t.steps)switch(p.lhr.gatherMode){case"navigation":a++;break;case"timespan":i++;break;case"snapshot":o++;break}let r=[];a&&r.push(n(e.navigationReportCount,{numNavigation:a})),i&&r.push(n(e.timespanReportCount,{numTimespan:i})),o&&r.push(n(e.snapshotReportCount,{numSnapshot:o}));let s=r.join(" · ");return c("div",{className:"SummaryHeader",children:[c("div",{className:"SummaryHeader__title",children:e.summary}),c("div",{className:"SummaryHeader__subtitle",children:s})]})},cr=({children:t})=>c("div",{className:"SummarySectionHeader",children:[c("div",{className:"SummarySectionHeader__content",children:t}),c(Z,{})]}),Qa=()=>{let t=H();return c("div",{className:"Summary","data-testid":"Summary",children:[c(ur,{}),c(Z,{}),c(cr,{children:t.allReports}),c(pr,{})]})};function mr(t,e){let n=t.cloneNode(!0);if(!n.hash)return n;let a=t.hash.substr(1);n.hash=`#index=${e}&anchor=${a}`,n.onclick=i=>{i.preventDefault();let o=document.getElementById(a);o&&o.scrollIntoView()},t.replaceWith(n)}var ei=({hashState:t})=>{let e=re(()=>Va(t.currentLhr,{disableFireworks:!0,disableDarkMode:!0,omitTopbar:!0,omitGlobalStyles:!0,onPageAnchorRendered:n=>mr(n,t.index)}),[t]);return c("div",{ref:e,"data-testid":"Report"})};var en=t=>{let e=H();return c("div",{className:"HelpDialogColumn",children:[c("div",{className:"HelpDialogColumn__legend",children:[c("div",{className:"HelpDialogColumnTimeline",children:[t.icon,c("div",{className:"HelpDialogColumnTimeline__line"})]}),c("div",{className:"HelpDialogColumn__legend-label",children:t.userFriendlyModeLabel})]}),c("div",{className:"HelpDialogColumn__header",children:[c("div",{className:"HelpDialogColumn__header-title",children:t.lighthouseOfficialModeLabel}),c("p",{children:t.modeDescription})]}),c("div",{className:"HelpDialogColumn__use-cases",children:[c("p",{children:t.useCaseInstruction}),c("ul",{children:t.useCases.map((n,a)=>c("li",{children:n},a))})]}),c("div",{className:"HelpDialogColumn__categories",children:[c("p",{children:e.categories}),c("ul",{children:t.availableCategories.map((n,a)=>c("li",{children:n},a))})]})]})},ti=({onClose:t})=>{let e=H();return c("div",{className:"HelpDialog",children:[c("div",{className:"HelpDialog__title",children:[c("div",{children:e.helpDialogTitle}),c("div",{style:{flexGrow:1}}),c("button",{className:"HelpDialog__close",onClick:t,children:c(On,{})})]}),c("div",{className:"HelpDialog__columns",children:[c(en,{icon:c(it,{}),userFriendlyModeLabel:e.navigationDescription,lighthouseOfficialModeLabel:e.navigationReport,modeDescription:e.navigationLongDescription,useCaseInstruction:e.helpUseCaseInstructionNavigation,useCases:[e.helpUseCaseNavigation1,e.helpUseCaseNavigation2,e.helpUseCaseNavigation3],availableCategories:[e.categoryPerformance,e.categoryAccessibility,e.categoryBestPractices,e.categorySeo]}),c(en,{icon:c(ot,{}),userFriendlyModeLabel:e.timespanDescription,lighthouseOfficialModeLabel:e.timespanReport,modeDescription:e.timespanLongDescription,useCaseInstruction:e.helpUseCaseInstructionTimespan,useCases:[e.helpUseCaseTimespan1,e.helpUseCaseTimespan2],availableCategories:[e.categoryPerformance,e.categoryBestPractices]}),c(en,{icon:c(rt,{}),userFriendlyModeLabel:e.snapshotDescription,lighthouseOfficialModeLabel:e.snapshotReport,modeDescription:e.snapshotLongDescription,useCaseInstruction:e.helpUseCaseInstructionSnapshot,useCases:[e.helpUseCaseSnapshot1,e.helpUseCaseSnapshot2],availableCategories:[e.categoryPerformance,e.categoryAccessibility,e.categoryBestPractices,e.categorySeo]})]})]})};function tn(t,e){let n=new Blob([e],{type:"text/html"}),a=Ga(t)+".html";tn.saveFile(n,a)}tn.saveFile=qa;var dr=()=>c("svg",{role:"img",class:"lh-topbar__logo",title:"Lighthouse logo",width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:[c("path",{d:"m14 7 10-7 10 7v10h5v7h-5l5 24H9l5-24H9v-7h5V7Z",fill:"#F63"}),c("path",{d:"M31.561 24H14l-1.689 8.105L31.561 24ZM18.983 48H9l1.022-4.907L35.723 32.27l1.663 7.98L18.983 48Z",fill:"#FFA385"}),c("path",{fill:"#FF3",d:"M20.5 10h7v7h-7z"})]}),_t=({onClick:t,label:e,children:n})=>c("button",{className:"TopbarButton",onClick:t,"aria-label":e,children:n}),ni=({onMenuClick:t})=>{let e=$(),n=H(),[a,i]=oe(!1),{getReportHtml:o,saveAsGist:r}=Xn();return c("div",{className:"Topbar",children:[c(_t,{onClick:t,label:"Button that opens and closes the sidebar",children:c(qn,{})}),c("div",{className:"Topbar__logo",children:c(dr,{})}),c("div",{className:"Topbar__title",children:n.title}),o&&c(_t,{onClick:()=>{let s=o(e);tn(e,s)},label:"Button that saves the report as HTML",children:n.save}),r&&c(_t,{onClick:()=>r(e),label:"Button that saves the report to a gist",children:n.dropdownSaveGist}),c("div",{style:{flexGrow:1}}),c(_t,{onClick:()=>i(s=>!s),label:"Button that toggles the help dialog",children:c("div",{className:"Topbar__help-label",children:[c(Wn,{}),n.helpLabel]})}),a?c(ti,{onClose:()=>i(!1)}):null]})};var hr=80,gr=120,nn=({lhr:t,position:e})=>{let n=e==="main"?gr:hr;return c("div",{className:`HeaderThumbnail HeaderThumbnail--${e}`,children:[c(lt,{lhr:t,height:n}),c("div",{className:"HeaderThumbnail__icon",children:c(Dt,{mode:t.gatherMode})})]})},ai=({hashState:t})=>{let e=$(),{index:n}=t,a=e.steps[n],i=e.steps[n-1],o=e.steps[n+1],r=H(),s=st(a.lhr.gatherMode,r);return c("div",{className:"Header",children:[i&&c(M,{children:[e.steps[n-2]&&c("div",{className:"Header__segment"}),c("div",{className:"Header__prev-thumbnail",children:[c(nn,{lhr:i.lhr,position:"prev"}),c("div",{className:"Header__segment"})]}),c("a",{className:"Header__prev-title",href:`#index=${n-1}`,children:i.name})]}),c("div",{className:"Header__current-thumbnail",children:c(nn,{lhr:a.lhr,position:"main"})}),c("div",{className:"Header__current-title",children:[a.name,c("div",{className:"Header__current-description",children:s})]}),o&&c(M,{children:[c("div",{className:"Header__next-thumbnail",children:[c("div",{className:"Header__segment"}),c(nn,{lhr:o.lhr,position:"next"})]}),c("a",{className:"Header__next-title",href:`#index=${n+1}`,children:o.name}),e.steps[n+2]&&c("div",{className:"Header__segment"})]})]})};var ii=()=>{let t=re(Ja);return c("div",{ref:t})};function fr(t){return!t||!t.anchor?null:document.getElementById(t.anchor)}var vr=()=>{let t=ye(),e=nt(null);return tt(()=>{let n=fr(t);n?n.scrollIntoView():e.current&&(e.current.scrollTop=0)},[t]),c("div",{ref:e,className:"Content",children:t?c(M,{children:[c(ai,{hashState:t}),c(ei,{hashState:t})]}):c(Qa,{})})},oi=({flowResult:t,options:e})=>{let[n,a]=oe(!1),i=te(()=>e||{},[e]);return c(Rt.Provider,{value:i,children:c(Nt.Provider,{value:t,children:c(Ea,{children:[c(ii,{}),c("div",{className:be("App",{"App--collapsed":n}),"data-testid":"App",children:[c(ni,{onMenuClick:()=>a(o=>!o)}),c(Ua,{}),c(vr,{})]})]})})})};function ri(t,e,n){e.classList.add("flow-vars","lh-vars","lh-root"),kn(At(oi,{flowResult:t,options:n}),e)}function br(){let t=document.body.querySelector("main");if(!t)throw Error("Container element not found");ri(window.__LIGHTHOUSE_FLOW_JSON__,t,{getReportHtml:()=>document.documentElement.outerHTML})}window.__initLighthouseFlowReport__=br;window.__initLighthouseFlowReport__();})();
2876
+ `),e.append(n);let a=t.createElement("div","lh-topbar"),i=t.createElementNS("http://www.w3.org/2000/svg","svg","lh-topbar__logo");i.setAttribute("role","img"),i.setAttribute("title","Lighthouse logo"),i.setAttribute("fill","none"),i.setAttribute("xmlns","http://www.w3.org/2000/svg"),i.setAttribute("viewBox","0 0 48 48");let o=t.createElementNS("http://www.w3.org/2000/svg","path");o.setAttribute("d","m14 7 10-7 10 7v10h5v7h-5l5 24H9l5-24H9v-7h5V7Z"),o.setAttribute("fill","#F63");let r=t.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d","M31.561 24H14l-1.689 8.105L31.561 24ZM18.983 48H9l1.022-4.907L35.723 32.27l1.663 7.98L18.983 48Z"),r.setAttribute("fill","#FFA385");let s=t.createElementNS("http://www.w3.org/2000/svg","path");s.setAttribute("fill","#FF3"),s.setAttribute("d","M20.5 10h7v7h-7z"),i.append(" ",o," ",r," ",s," ");let p=t.createElement("a","lh-topbar__url");p.setAttribute("href",""),p.setAttribute("target","_blank"),p.setAttribute("rel","noopener");let l=t.createElement("div","lh-tools"),m=t.createElement("div","lh-tools-locale lh-hidden"),d=t.createElement("button","lh-button lh-tool-locale__button");d.setAttribute("id","lh-button__swap-locales"),d.setAttribute("title","Show Language Picker"),d.setAttribute("aria-label","Toggle language picker"),d.setAttribute("aria-haspopup","menu"),d.setAttribute("aria-expanded","false"),d.setAttribute("aria-controls","lh-tools-locale__selector-wrapper");let u=t.createElementNS("http://www.w3.org/2000/svg","svg");u.setAttribute("width","20px"),u.setAttribute("height","20px"),u.setAttribute("viewBox","0 0 24 24"),u.setAttribute("fill","currentColor");let h=t.createElementNS("http://www.w3.org/2000/svg","path");h.setAttribute("d","M0 0h24v24H0V0z"),h.setAttribute("fill","none");let b=t.createElementNS("http://www.w3.org/2000/svg","path");b.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"),u.append(h,b),d.append(" ",u," ");let _=t.createElement("div","lh-tools-locale__selector-wrapper");_.setAttribute("id","lh-tools-locale__selector-wrapper"),_.setAttribute("role","menu"),_.setAttribute("aria-labelledby","lh-button__swap-locales"),_.setAttribute("aria-hidden","true"),_.append(" "," "),m.append(" ",d," ",_," ");let f=t.createElement("button","lh-tools__button");f.setAttribute("id","lh-tools-button"),f.setAttribute("title","Tools menu"),f.setAttribute("aria-label","Toggle report tools menu"),f.setAttribute("aria-haspopup","menu"),f.setAttribute("aria-expanded","false"),f.setAttribute("aria-controls","lh-tools-dropdown");let g=t.createElementNS("http://www.w3.org/2000/svg","svg");g.setAttribute("width","100%"),g.setAttribute("height","100%"),g.setAttribute("viewBox","0 0 24 24");let v=t.createElementNS("http://www.w3.org/2000/svg","path");v.setAttribute("d","M0 0h24v24H0z"),v.setAttribute("fill","none");let C=t.createElementNS("http://www.w3.org/2000/svg","path");C.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"),g.append(" ",v," ",C," "),f.append(" ",g," ");let w=t.createElement("div","lh-tools__dropdown");w.setAttribute("id","lh-tools-dropdown"),w.setAttribute("role","menu"),w.setAttribute("aria-labelledby","lh-tools-button");let k=t.createElement("a","lh-report-icon lh-report-icon--print");k.setAttribute("role","menuitem"),k.setAttribute("tabindex","-1"),k.setAttribute("href","#"),k.setAttribute("data-i18n","dropdownPrintSummary"),k.setAttribute("data-action","print-summary");let I=t.createElement("a","lh-report-icon lh-report-icon--print");I.setAttribute("role","menuitem"),I.setAttribute("tabindex","-1"),I.setAttribute("href","#"),I.setAttribute("data-i18n","dropdownPrintExpanded"),I.setAttribute("data-action","print-expanded");let D=t.createElement("a","lh-report-icon lh-report-icon--copy");D.setAttribute("role","menuitem"),D.setAttribute("tabindex","-1"),D.setAttribute("href","#"),D.setAttribute("data-i18n","dropdownCopyJSON"),D.setAttribute("data-action","copy");let z=t.createElement("a","lh-report-icon lh-report-icon--download lh-hidden");z.setAttribute("role","menuitem"),z.setAttribute("tabindex","-1"),z.setAttribute("href","#"),z.setAttribute("data-i18n","dropdownSaveHTML"),z.setAttribute("data-action","save-html");let W=t.createElement("a","lh-report-icon lh-report-icon--download");W.setAttribute("role","menuitem"),W.setAttribute("tabindex","-1"),W.setAttribute("href","#"),W.setAttribute("data-i18n","dropdownSaveJSON"),W.setAttribute("data-action","save-json");let j=t.createElement("a","lh-report-icon lh-report-icon--open");j.setAttribute("role","menuitem"),j.setAttribute("tabindex","-1"),j.setAttribute("href","#"),j.setAttribute("data-i18n","dropdownViewer"),j.setAttribute("data-action","open-viewer");let B=t.createElement("a","lh-report-icon lh-report-icon--open");B.setAttribute("role","menuitem"),B.setAttribute("tabindex","-1"),B.setAttribute("href","#"),B.setAttribute("data-i18n","dropdownSaveGist"),B.setAttribute("data-action","save-gist");let K=t.createElement("a","lh-report-icon lh-report-icon--open lh-hidden");K.setAttribute("role","menuitem"),K.setAttribute("tabindex","-1"),K.setAttribute("href","#"),K.setAttribute("data-i18n","dropdownViewUnthrottledTrace"),K.setAttribute("data-action","view-unthrottled-trace");let Y=t.createElement("a","lh-report-icon lh-report-icon--dark");return Y.setAttribute("role","menuitem"),Y.setAttribute("tabindex","-1"),Y.setAttribute("href","#"),Y.setAttribute("data-i18n","dropdownDarkTheme"),Y.setAttribute("data-action","toggle-dark"),w.append(" ",k," ",I," ",D," "," ",z," ",W," ",j," ",B," "," ",K," ",Y," "),l.append(" ",m," ",f," ",w," "),a.append(" "," ",i," ",p," ",l," "),e.append(a),e}function Fo(t){let e=t.createFragment(),n=t.createElement("div","lh-warnings lh-warnings--toplevel"),a=t.createElement("p","lh-warnings__msg"),i=t.createElement("ul");return n.append(" ",a," ",i," "),e.append(n),e}function Ta(t,e){switch(e){case"3pFilter":return bo(t);case"audit":return yo(t);case"categoryHeader":return _o(t);case"chevron":return Co(t);case"clump":return wo(t);case"crc":return xo(t);case"crcChain":return So(t);case"elementScreenshot":return ko(t);case"explodeyGauge":return Po(t);case"footer":return Ao(t);case"fraction":return Lo(t);case"gauge":return Eo(t);case"heading":return Io(t);case"metric":return Uo(t);case"scorescale":return To(t);case"scoresWrapper":return No(t);case"snippet":return Ro(t);case"snippetContent":return Do(t);case"snippetHeader":return zo(t);case"snippetLine":return jo(t);case"styles":return Mo(t);case"topbar":return Ho(t);case"warningsToplevel":return Fo(t)}throw new Error("unexpected component: "+e)}var le=class{constructor(e,n){this._document=e,this._lighthouseChannel="unknown",this._componentCache=new Map,this.rootEl=n}createElement(e,n){let a=this._document.createElement(e);if(n)for(let i of n.split(/\s+/))i&&a.classList.add(i);return a}createElementNS(e,n,a){let i=this._document.createElementNS(e,n);if(a)for(let o of a.split(/\s+/))o&&i.classList.add(o);return i}createSVGElement(e,n){return this._document.createElementNS("http://www.w3.org/2000/svg",e,n)}createFragment(){return this._document.createDocumentFragment()}createTextNode(e){return this._document.createTextNode(e)}createChildOf(e,n,a){let i=this.createElement(n,a);return e.append(i),i}createComponent(e){let n=this._componentCache.get(e);if(n){let i=n.cloneNode(!0);return this.findAll("style",i).forEach(o=>o.remove()),i}return n=Ta(this,e),this._componentCache.set(e,n),n.cloneNode(!0)}clearComponentCache(){this._componentCache.clear()}convertMarkdownLinkSnippets(e,n={}){let a=this.createElement("span");for(let i of N.splitMarkdownLink(e)){let o=i.text.includes("`")?this.convertMarkdownCodeSnippets(i.text):i.text;if(!i.isLink){a.append(o);continue}let r=new URL(i.linkHref);(["https://developers.google.com","https://web.dev","https://developer.chrome.com"].includes(r.origin)||n.alwaysAppendUtmSource)&&(r.searchParams.set("utm_source","lighthouse"),r.searchParams.set("utm_medium",this._lighthouseChannel));let p=this.createElement("a");p.rel="noopener",p.target="_blank",p.append(o),this.safelySetHref(p,r.href),a.append(p)}return a}safelySetHref(e,n){if(n=n||"",n.startsWith("#")){e.href=n;return}let a=["https:","http:"],i;try{i=new URL(n)}catch{}i&&a.includes(i.protocol)?e.href=i.href:e.removeAttribute("href")}safelySetBlobHref(e,n){if(n.type!=="text/html"&&n.type!=="application/json")throw new Error("Unsupported blob type");let a=URL.createObjectURL(n);e.href=a}safelySetImageSrc(e,n){if(n=n||"",n.startsWith("data:image/")){e.src=n;return}let a=["https:","http:"],i;try{i=new URL(n)}catch{}i&&a.includes(i.protocol)?e.src=i.href:e.removeAttribute("src")}convertMarkdownCodeSnippets(e){let n=this.createElement("span");for(let a of N.splitMarkdownCodeSpans(e))if(a.isCode){let i=this.createElement("code");i.textContent=a.text,n.append(i)}else n.append(this._document.createTextNode(a.text));return n}setLighthouseChannel(e){this._lighthouseChannel=e}document(){return this._document}isDevTools(){return!!this._document.querySelector(".lh-devtools")}find(e,n=this.rootEl??this._document){let a=this.maybeFind(e,n);if(a===null)throw new Error(`query ${e} not found`);return a}maybeFind(e,n=this.rootEl??this._document){return n.querySelector(e)}findAll(e,n){return Array.from(n.querySelectorAll(e))}fireEventOn(e,n=this._document,a){let i=new CustomEvent(e,a?{detail:a}:void 0);n.dispatchEvent(i)}saveFile(e,n){let a=this.createElement("a");a.download=n,this.safelySetBlobHref(a,e),this._document.body.append(a),a.click(),this._document.body.removeChild(a),setTimeout(()=>URL.revokeObjectURL(a.href),500)}};var pe=class{constructor(e,n){this.dom=e,this.detailsRenderer=n}get _clumpTitles(){return{warning:y.strings.warningAuditsGroupTitle,manual:y.strings.manualAuditsGroupTitle,passed:y.strings.passedAuditsGroupTitle,notApplicable:y.strings.notApplicableAuditsGroupTitle}}renderAudit(e){let n=y.strings,a=this.dom.createComponent("audit"),i=this.dom.find("div.lh-audit",a);i.id=e.result.id;let o=e.result.scoreDisplayMode;e.result.displayValue&&(this.dom.find(".lh-audit__display-text",i).textContent=e.result.displayValue);let r=this.dom.find(".lh-audit__title",i);r.append(this.dom.convertMarkdownCodeSnippets(e.result.title));let s=this.dom.find(".lh-audit__description",i);s.append(this.dom.convertMarkdownLinkSnippets(e.result.description));for(let u of e.relevantMetrics||[]){let h=this.dom.createChildOf(s,"span","lh-audit__adorn");h.title=`Relevant to ${u.result.title}`,h.textContent=u.acronym||u.id}if(e.weight===0){let u=this.dom.createChildOf(s,"span","lh-audit__adorn");u.title=y.strings.unscoredTitle,u.textContent=y.strings.unscoredLabel}e.stackPacks&&e.stackPacks.forEach(u=>{let h=this.dom.createElement("img","lh-audit__stackpack__img");this.dom.safelySetImageSrc(h,u.iconDataURL),h.alt=u.title;let b=this.dom.convertMarkdownLinkSnippets(u.description,{alwaysAppendUtmSource:!0}),_=this.dom.createElement("div","lh-audit__stackpack");_.append(h,b),this.dom.find(".lh-audit__stackpacks",i).append(_)});let p=this.dom.find("details",i);if(e.result.details){let u=this.detailsRenderer.render(e.result.details);u&&(u.classList.add("lh-details"),p.append(u))}if(this.dom.find(".lh-chevron-container",i).append(this._createChevron()),this._setRatingClass(i,e.result.score,o),e.result.scoreDisplayMode==="error"){i.classList.add("lh-audit--error");let u=this.dom.find(".lh-audit__display-text",i);u.textContent=n.errorLabel,u.classList.add("lh-tooltip-boundary");let h=this.dom.createChildOf(u,"div","lh-tooltip lh-tooltip--error");h.textContent=e.result.errorMessage||n.errorMissingAuditInfo}else if(e.result.explanation){let u=this.dom.createChildOf(r,"div","lh-audit-explanation");u.textContent=e.result.explanation}let l=e.result.warnings;if(!l||l.length===0)return i;let m=this.dom.find("summary",p),d=this.dom.createChildOf(m,"div","lh-warnings");if(this.dom.createChildOf(d,"span").textContent=n.warningHeader,l.length===1)d.append(this.dom.createTextNode(l.join("")));else{let u=this.dom.createChildOf(d,"ul");for(let h of l){let b=this.dom.createChildOf(u,"li");b.textContent=h}}return i}injectFinalScreenshot(e,n,a){let i=n["final-screenshot"];if(!i||i.scoreDisplayMode==="error"||!i.details||i.details.type!=="screenshot")return null;let o=this.dom.createElement("img","lh-final-ss-image"),r=i.details.data;this.dom.safelySetImageSrc(o,r),o.alt=i.title;let s=this.dom.find(".lh-category .lh-category-header",e),p=this.dom.createElement("div","lh-category-headercol"),l=this.dom.createElement("div","lh-category-headercol lh-category-headercol--separator"),m=this.dom.createElement("div","lh-category-headercol");p.append(...s.childNodes),p.append(a),m.append(o),s.append(p,l,m),s.classList.add("lh-category-header__finalscreenshot")}_createChevron(){let e=this.dom.createComponent("chevron");return this.dom.find("svg.lh-chevron",e)}_setRatingClass(e,n,a){let i=P.calculateRating(n,a);return e.classList.add(`lh-audit--${a.toLowerCase()}`),a!=="informative"&&e.classList.add(`lh-audit--${i}`),e}renderCategoryHeader(e,n,a){let i=this.dom.createComponent("categoryHeader"),o=this.dom.find(".lh-score__gauge",i),r=this.renderCategoryScore(e,n,a);if(o.append(r),e.description){let s=this.dom.convertMarkdownLinkSnippets(e.description);this.dom.find(".lh-category-header__description",i).append(s)}return i}renderAuditGroup(e){let n=this.dom.createElement("div","lh-audit-group"),a=this.dom.createElement("div","lh-audit-group__header");this.dom.createChildOf(a,"span","lh-audit-group__title").textContent=e.title,n.append(a);let i=null;return e.description&&(i=this.dom.convertMarkdownLinkSnippets(e.description),i.classList.add("lh-audit-group__description","lh-audit-group__footer"),n.append(i)),[n,i]}_renderGroupedAudits(e,n){let a=new Map,i="NotAGroup";a.set(i,[]);for(let r of e){let s=r.group||i,p=a.get(s)||[];p.push(r),a.set(s,p)}let o=[];for(let[r,s]of a){if(r===i){for(let d of s)o.push(this.renderAudit(d));continue}let p=n[r],[l,m]=this.renderAuditGroup(p);for(let d of s)l.insertBefore(this.renderAudit(d),m);l.classList.add(`lh-audit-group--${r}`),o.push(l)}return o}renderUnexpandableClump(e,n){let a=this.dom.createElement("div");return this._renderGroupedAudits(e,n).forEach(o=>a.append(o)),a}renderClump(e,{auditRefsOrEls:n,description:a,openByDefault:i}){let o=this.dom.createComponent("clump"),r=this.dom.find(".lh-clump",o);i&&r.setAttribute("open","");let s=this.dom.find(".lh-audit-group__header",r),p=this._clumpTitles[e];this.dom.find(".lh-audit-group__title",s).textContent=p;let l=this.dom.find(".lh-audit-group__itemcount",r);l.textContent=`(${n.length})`;let m=n.map(u=>u instanceof HTMLElement?u:this.renderAudit(u));r.append(...m);let d=this.dom.find(".lh-audit-group",o);if(a){let u=this.dom.convertMarkdownLinkSnippets(a);u.classList.add("lh-audit-group__description","lh-audit-group__footer"),d.append(u)}return this.dom.find(".lh-clump-toggletext--show",d).textContent=y.strings.show,this.dom.find(".lh-clump-toggletext--hide",d).textContent=y.strings.hide,r.classList.add(`lh-clump--${e.toLowerCase()}`),d}renderCategoryScore(e,n,a){let i;if(a&&P.shouldDisplayAsFraction(a.gatherMode,e)?i=this.renderCategoryFraction(e):i=this.renderScoreGauge(e,n),a?.omitLabel&&this.dom.find(".lh-gauge__label,.lh-fraction__label",i).remove(),a?.onPageAnchorRendered){let o=this.dom.find("a",i);a.onPageAnchorRendered(o)}return i}renderScoreGauge(e,n){let a=this.dom.createComponent("gauge"),i=this.dom.find("a.lh-gauge__wrapper",a);P.isPluginCategory(e.id)&&i.classList.add("lh-gauge__wrapper--plugin");let o=Number(e.score),r=this.dom.find(".lh-gauge",a),s=this.dom.find("circle.lh-gauge-arc",r);s&&this._setGaugeArc(s,o);let p=Math.round(o*100),l=this.dom.find("div.lh-gauge__percentage",a);return l.textContent=p.toString(),e.score===null&&(l.classList.add("lh-gauge--error"),l.textContent="",l.title=y.strings.errorLabel),e.auditRefs.length===0||this.hasApplicableAudits(e)?i.classList.add(`lh-gauge__wrapper--${P.calculateRating(e.score)}`):(i.classList.add("lh-gauge__wrapper--not-applicable"),l.textContent="-",l.title=y.strings.notApplicableAuditsGroupTitle),this.dom.find(".lh-gauge__label",a).textContent=e.title,a}renderCategoryFraction(e){let n=this.dom.createComponent("fraction"),a=this.dom.find("a.lh-fraction__wrapper",n),{numPassed:i,numPassableAudits:o,totalWeight:r}=P.calculateCategoryFraction(e),s=i/o,p=this.dom.find(".lh-fraction__content",n),l=this.dom.createElement("span");l.textContent=`${i}/${o}`,p.append(l);let m=P.calculateRating(s);return r===0&&(m="null"),a.classList.add(`lh-fraction__wrapper--${m}`),this.dom.find(".lh-fraction__label",n).textContent=e.title,n}hasApplicableAudits(e){return e.auditRefs.some(n=>n.result.scoreDisplayMode!=="notApplicable")}_setGaugeArc(e,n){let a=2*Math.PI*Number(e.getAttribute("r")),i=Number(e.getAttribute("stroke-width")),o=.25*i/a;e.style.transform=`rotate(${-90+o*360}deg)`;let r=n*a-i/2;n===0&&(e.style.opacity="0"),n===1&&(r=a),e.style.strokeDasharray=`${Math.max(r,0)} ${a}`}_auditHasWarning(e){return!!e.result.warnings?.length}_getClumpIdForAuditRef(e){let n=e.result.scoreDisplayMode;return n==="manual"||n==="notApplicable"?n:P.showAsPassed(e.result)?this._auditHasWarning(e)?"warning":"passed":"failed"}render(e,n={},a){let i=this.dom.createElement("div","lh-category");i.id=e.id,i.append(this.renderCategoryHeader(e,n,a));let o=new Map;o.set("failed",[]),o.set("warning",[]),o.set("manual",[]),o.set("passed",[]),o.set("notApplicable",[]);for(let s of e.auditRefs){if(s.group==="hidden")continue;let p=this._getClumpIdForAuditRef(s),l=o.get(p);l.push(s),o.set(p,l)}for(let s of o.values())s.sort((p,l)=>l.weight-p.weight);let r=o.get("failed")?.length;for(let[s,p]of o){if(p.length===0)continue;if(s==="failed"){let u=this.renderUnexpandableClump(p,n);u.classList.add("lh-clump--failed"),i.append(u);continue}let l=s==="manual"?e.manualDescription:void 0,m=s==="warning"||s==="manual"&&r===0,d=this.renderClump(s,{auditRefsOrEls:p,description:l,openByDefault:m});i.append(d)}return i}};var Oe=class{static createSegment(e,n,a,i){let o=e[n],r=Object.keys(e),s=r.indexOf(n)===r.length-1,p=!!o.children&&Object.keys(o.children).length>0,l=Array.isArray(a)?a.slice(0):[];return typeof i<"u"&&l.push(!i),{node:o,isLastChild:s,hasChildren:p,treeMarkers:l}}static createChainNode(e,n,a){let i=e.createComponent("crcChain"),o,r,s,p,l;"request"in n.node?(r=n.node.request.transferSize,s=n.node.request.url,o=(n.node.request.endTime-n.node.request.startTime)*1e3,p=!1):(r=n.node.transferSize,s=n.node.url,o=n.node.navStartToEndTime,p=!0,l=n.node.isLongest);let m=e.find(".lh-crc-node",i);m.setAttribute("title",s),l&&m.classList.add("lh-crc-node__longest");let d=e.find(".lh-crc-node__tree-marker",i);n.treeMarkers.forEach(f=>{let g=f?"lh-tree-marker lh-vert":"lh-tree-marker";d.append(e.createElement("span",g),e.createElement("span","lh-tree-marker"))});let u=n.isLastChild?"lh-tree-marker lh-up-right":"lh-tree-marker lh-vert-right",h=n.hasChildren?"lh-tree-marker lh-horiz-down":"lh-tree-marker lh-right";d.append(e.createElement("span",u),e.createElement("span","lh-tree-marker lh-right"),e.createElement("span",h));let b=a.renderTextURL(s),_=e.find(".lh-crc-node__tree-value",i);if(_.append(b),!n.hasChildren||p){let f=e.createElement("span","lh-crc-node__chain-duration");f.textContent=" - "+y.i18n.formatMilliseconds(o)+", ";let g=e.createElement("span","lh-crc-node__chain-size");g.textContent=y.i18n.formatBytesToKiB(r,.01),_.append(f,g)}return i}static buildTree(e,n,a,i){if(a.append(Be.createChainNode(e,n,i)),n.node.children)for(let o of Object.keys(n.node.children)){let r=Be.createSegment(n.node.children,o,n.treeMarkers,n.isLastChild);Be.buildTree(e,r,a,i)}}static render(e,n,a){let i=e.createComponent("crc"),o=e.find(".lh-crc",i);e.find(".lh-crc-initial-nav",i).textContent=y.strings.crcInitialNavigation,e.find(".lh-crc__longest_duration_label",i).textContent=y.strings.crcLongestDurationLabel,e.find(".lh-crc__longest_duration",i).textContent=y.i18n.formatMilliseconds(n.longestChain.duration);let r=n.chains;for(let s of Object.keys(r)){let p=Be.createSegment(r,s);Be.buildTree(e,p,o,a)}return e.find(".lh-crc-container",i)}},Be=Oe;function Bo(t,e){return e.left<=t.width&&0<=e.right&&e.top<=t.height&&0<=e.bottom}function Na(t,e,n){return t<e?e:t>n?n:t}function Oo(t){return{x:t.left+t.width/2,y:t.top+t.height/2}}var ue=class t{static getScreenshotPositions(e,n,a){let i=Oo(e),o=Na(i.x-n.width/2,0,a.width-n.width),r=Na(i.y-n.height/2,0,a.height-n.height);return{screenshot:{left:o,top:r},clip:{left:e.left-o,top:e.top-r}}}static renderClipPathInScreenshot(e,n,a,i,o){let r=e.find("clipPath",n),s=`clip-${y.getUniqueSuffix()}`;r.id=s,n.style.clipPath=`url(#${s})`;let p=a.top/o.height,l=p+i.height/o.height,m=a.left/o.width,d=m+i.width/o.width,u=[`0,0 1,0 1,${p} 0,${p}`,`0,${l} 1,${l} 1,1 0,1`,`0,${p} ${m},${p} ${m},${l} 0,${l}`,`${d},${p} 1,${p} 1,${l} ${d},${l}`];for(let h of u){let b=e.createElementNS("http://www.w3.org/2000/svg","polygon");b.setAttribute("points",h),r.append(b)}}static installFullPageScreenshot(e,n){!n.data.startsWith("data:image/")||/['"()\\\r\n]/.test(n.data)||e.style.setProperty("--element-screenshot-url",`url('${n.data}')`)}static installOverlayFeature(e){let{dom:n,rootEl:a,overlayContainerEl:i,fullPageScreenshot:o}=e,r="lh-screenshot-overlay--enabled";a.classList.contains(r)||(a.classList.add(r),a.addEventListener("click",s=>{let p=s.target;if(!p)return;let l=p.closest(".lh-node > .lh-element-screenshot");if(!l)return;let m=n.createElement("div","lh-element-screenshot__overlay");i.append(m);let d={width:m.clientWidth*.95,height:m.clientHeight*.8},u={width:Number(l.dataset.rectWidth),height:Number(l.dataset.rectHeight),left:Number(l.dataset.rectLeft),right:Number(l.dataset.rectLeft)+Number(l.dataset.rectWidth),top:Number(l.dataset.rectTop),bottom:Number(l.dataset.rectTop)+Number(l.dataset.rectHeight)},h=t.render(n,o.screenshot,u,d);if(!h){m.remove();return}m.append(h),m.addEventListener("click",()=>m.remove())}))}static _computeZoomFactor(e,n){let i={x:n.width/e.width,y:n.height/e.height},o=.75*Math.min(i.x,i.y);return Math.min(1,o)}static render(e,n,a,i){if(!Bo(n,a))return null;let o=e.createComponent("elementScreenshot"),r=e.find("div.lh-element-screenshot",o);r.dataset.rectWidth=a.width.toString(),r.dataset.rectHeight=a.height.toString(),r.dataset.rectLeft=a.left.toString(),r.dataset.rectTop=a.top.toString();let s=this._computeZoomFactor(a,i),p={width:i.width/s,height:i.height/s};p.width=Math.min(n.width,p.width),p.height=Math.min(n.height,p.height);let l={width:p.width*s,height:p.height*s},m=t.getScreenshotPositions(a,p,{width:n.width,height:n.height}),d=e.find("div.lh-element-screenshot__image",r);d.style.width=l.width+"px",d.style.height=l.height+"px",d.style.backgroundPositionY=-(m.screenshot.top*s)+"px",d.style.backgroundPositionX=-(m.screenshot.left*s)+"px",d.style.backgroundSize=`${n.width*s}px ${n.height*s}px`;let u=e.find("div.lh-element-screenshot__element-marker",r);u.style.width=a.width*s+"px",u.style.height=a.height*s+"px",u.style.left=m.clip.left*s+"px",u.style.top=m.clip.top*s+"px";let h=e.find("div.lh-element-screenshot__mask",r);return h.style.width=l.width+"px",h.style.height=l.height+"px",t.renderClipPathInScreenshot(e,h,m.clip,a,p),r}};var Go=["http://","https://","data:"],Vo=["bytes","numeric","ms","timespanMs"],_e=class{constructor(e,n={}){this._dom=e,this._fullPageScreenshot=n.fullPageScreenshot,this._entities=n.entities}render(e){switch(e.type){case"filmstrip":return this._renderFilmstrip(e);case"list":return this._renderList(e);case"checklist":return this._renderChecklist(e);case"table":case"opportunity":return this._renderTable(e);case"network-tree":case"criticalrequestchain":return Oe.render(this._dom,e,this);case"screenshot":case"debugdata":case"treemap-data":return null;default:return this._renderUnknown(e.type,e)}}_renderBytes(e){let n=y.i18n.formatBytesToKiB(e.value,e.granularity||.1),a=this._renderText(n);return a.title=y.i18n.formatBytes(e.value),a}_renderMilliseconds(e){let n;return e.displayUnit==="duration"?n=y.i18n.formatDuration(e.value):n=y.i18n.formatMilliseconds(e.value,e.granularity||10),this._renderText(n)}renderTextURL(e){let n=e,a,i,o;try{let s=N.parseURL(n);a=s.file==="/"?s.origin:s.file,i=s.file==="/"||s.hostname===""?"":`(${s.hostname})`,o=n}catch{a=n}let r=this._dom.createElement("div","lh-text__url");if(r.append(this._createLink({text:a,url:n})),i){let s=this._renderText(i);s.classList.add("lh-text__url-host"),r.append(s)}return o&&(r.title=n,r.dataset.url=n),r}_renderLink(e){return this._createLink(e)}_createLink(e){let n=this._dom.createElement("a");if(this._dom.safelySetHref(n,e.url),!n.href){let a=this._renderText(e.text);return a.classList.add("lh-link"),a}return n.rel="noopener",n.target="_blank",n.textContent=e.text,n.classList.add("lh-link"),n}_renderText(e){let n=this._dom.createElement("div","lh-text");return n.textContent=e,n}_renderBaselineStatus(e){let n=this._dom.createElement("div","lh-baseline-status"),a=e.status;return n.classList.add(`lh-baseline-status--${a}`),n.textContent=String(e.displayString),n}_renderNumeric(e){let n=y.i18n.formatNumber(e.value,e.granularity||.1),a=this._dom.createElement("div","lh-numeric");return a.textContent=n,a}_renderThumbnail(e){let n=this._dom.createElement("img","lh-thumbnail"),a=e;return this._dom.safelySetImageSrc(n,a),n.title=a,n.alt="",n}_renderUnknown(e,n){console.error(`Unknown details type: ${e}`,n);let a=this._dom.createElement("details","lh-unknown");return this._dom.createChildOf(a,"summary").textContent=`We don't know how to render audit details of type \`${e}\`. The Lighthouse version that collected this data is likely newer than the Lighthouse version of the report renderer. Expand for the raw JSON.`,this._dom.createChildOf(a,"pre").textContent=JSON.stringify(n,null,2),a}_renderTableValue(e,n){if(e==null)return null;if(typeof e=="object")switch(e.type){case"code":return this._renderCode(e.value);case"link":return this._renderLink(e);case"node":return this.renderNode(e);case"numeric":return this._renderNumeric(e);case"text":return this._renderText(e.value);case"source-location":return this.renderSourceLocation(e);case"url":return this.renderTextURL(e.value);case"baseline-status":return this._renderBaselineStatus(e);default:return this._renderUnknown(e.type,e)}switch(n.valueType){case"bytes":{let a=Number(e);return this._renderBytes({value:a,granularity:n.granularity})}case"code":{let a=String(e);return this._renderCode(a)}case"ms":{let a={value:Number(e),granularity:n.granularity,displayUnit:n.displayUnit};return this._renderMilliseconds(a)}case"numeric":{let a=Number(e);return this._renderNumeric({value:a,granularity:n.granularity})}case"text":{let a=String(e);return this._renderText(a)}case"thumbnail":{let a=String(e);return this._renderThumbnail(a)}case"timespanMs":{let a=Number(e);return this._renderMilliseconds({value:a})}case"url":{let a=String(e);return Go.some(i=>a.startsWith(i))?this.renderTextURL(a):this._renderCode(a)}default:return this._renderUnknown(n.valueType,e)}}_getDerivedSubItemsHeading(e){return e.subItemsHeading?{key:e.subItemsHeading.key||"",valueType:e.subItemsHeading.valueType||e.valueType,granularity:e.subItemsHeading.granularity||e.granularity,displayUnit:e.subItemsHeading.displayUnit||e.displayUnit,label:""}:null}_renderTableRow(e,n){let a=this._dom.createElement("tr");for(let i of n){if(!i||!i.key){this._dom.createChildOf(a,"td","lh-table-column--empty");continue}let o=e[i.key],r;if(o!=null&&(r=this._renderTableValue(o,i)),r){let s=`lh-table-column--${i.valueType}`;this._dom.createChildOf(a,"td",s).append(r)}else this._dom.createChildOf(a,"td","lh-table-column--empty")}return a}_renderTableRowsFromItem(e,n){let a=this._dom.createFragment();if(a.append(this._renderTableRow(e,n)),!e.subItems)return a;let i=n.map(this._getDerivedSubItemsHeading);if(!i.some(Boolean))return a;for(let o of e.subItems.items){let r=this._renderTableRow(o,i);r.classList.add("lh-sub-item-row"),a.append(r)}return a}_adornEntityGroupRow(e){let n=e.dataset.entity;if(!n)return;let a=this._entities?.find(o=>o.name===n);if(!a)return;let i=this._dom.find("td",e);if(a.category){let o=this._dom.createElement("span");o.classList.add("lh-audit__adorn"),o.textContent=a.category,i.append(" ",o)}if(a.isFirstParty){let o=this._dom.createElement("span");o.classList.add("lh-audit__adorn","lh-audit__adorn1p"),o.textContent=y.strings.firstPartyChipLabel,i.append(" ",o)}if(a.homepage){let o=this._dom.createElement("a");this._dom.safelySetHref(o,a.homepage),o.href&&(o.target="_blank",o.rel="noopener",o.title=y.strings.openInANewTabTooltip,o.classList.add("lh-report-icon--external"),i.append(" ",o))}}_renderEntityGroupRow(e,n){let a={...n[0]};a.valueType="text";let i=[a,...n.slice(1)],o=this._dom.createFragment();return o.append(this._renderTableRow(e,i)),this._dom.find("tr",o).classList.add("lh-row--group"),o}_getEntityGroupItems(e){let{items:n,headings:a,sortedBy:i}=e;if(!n.length||e.isEntityGrouped||!n.some(m=>m.entity))return[];let o=new Set(e.skipSumming||[]),r=[];for(let m of a)!m.key||o.has(m.key)||Vo.includes(m.valueType)&&r.push(m.key);let s=a[0].key;if(!s)return[];let p=new Map;for(let m of n){let d=typeof m.entity=="string"?m.entity:void 0,u=p.get(d)||{[s]:d||y.strings.unattributable,entity:d};for(let h of r)u[h]=Number(u[h]||0)+Number(m[h]||0);p.set(d,u)}let l=[...p.values()];return i&&l.sort(P.getTableItemSortComparator(i)),l}_renderTable(e){if(!e.items.length)return this._dom.createElement("span");let n=this._dom.createElement("table","lh-table"),a=this._dom.createChildOf(n,"thead"),i=this._dom.createChildOf(a,"tr");for(let s of e.headings){let l=`lh-table-column--${s.valueType||"text"}`,m=this._dom.createElement("div","lh-text");m.textContent=s.label,this._dom.createChildOf(i,"th",l).append(m)}let o=this._getEntityGroupItems(e),r=this._dom.createChildOf(n,"tbody");if(o.length)for(let s of o){let p=typeof s.entity=="string"?s.entity:void 0,l=this._renderEntityGroupRow(s,e.headings);for(let d of e.items.filter(u=>u.entity===p))l.append(this._renderTableRowsFromItem(d,e.headings));let m=this._dom.findAll("tr",l);p&&m.length&&(m.forEach(d=>d.dataset.entity=p),this._adornEntityGroupRow(m[0])),r.append(l)}else{let s=!0;for(let p of e.items){let l=this._renderTableRowsFromItem(p,e.headings),m=this._dom.findAll("tr",l),d=m[0];if(typeof p.entity=="string"&&(d.dataset.entity=p.entity),e.isEntityGrouped&&p.entity)d.classList.add("lh-row--group"),this._adornEntityGroupRow(d);else for(let u of m)u.classList.add(s?"lh-row--even":"lh-row--odd");s=!s,r.append(l)}}return n}_renderListValue(e){return e.type==="node"?this.renderNode(e):e.type==="text"?this._renderText(e.value):this.render(e)}_renderList(e){let n=this._dom.createElement("div","lh-list");return e.items.forEach(a=>{if(a.type==="list-section"){let o=this._dom.createElement("div","lh-list-section");a.title&&this._dom.createChildOf(o,"div","lh-list-section__title").append(this._dom.convertMarkdownLinkSnippets(a.title)),a.description&&this._dom.createChildOf(o,"div","lh-list-section__description").append(this._dom.convertMarkdownLinkSnippets(a.description));let r=this._renderListValue(a.value);r&&o.append(r),n.append(o);return}let i=this._renderListValue(a);i&&n.append(i)}),n}_renderChecklist(e){let n=this._dom.createElement("ul","lh-checklist");return Object.values(e.items).forEach(a=>{let i=this._dom.createChildOf(n,"li","lh-checklist-item"),o=a.value?"lh-report-plain-icon--checklist-pass":"lh-report-plain-icon--checklist-fail";this._dom.createChildOf(i,"span",`lh-report-plain-icon ${o}`).textContent=a.label}),n}renderNode(e){let n=this._dom.createElement("span","lh-node");if(e.nodeLabel){let r=this._dom.createElement("div");r.textContent=e.nodeLabel,n.append(r)}if(e.snippet){let r=this._dom.createElement("div");r.classList.add("lh-node__snippet"),r.textContent=e.snippet,n.append(r)}if(e.selector&&(n.title=e.selector),e.path&&n.setAttribute("data-path",e.path),e.selector&&n.setAttribute("data-selector",e.selector),e.snippet&&n.setAttribute("data-snippet",e.snippet),!this._fullPageScreenshot)return n;let a=e.lhId&&this._fullPageScreenshot.nodes[e.lhId];if(!a||a.width===0||a.height===0)return n;let i={width:147,height:100},o=ue.render(this._dom,this._fullPageScreenshot.screenshot,a,i);return o&&n.prepend(o),n}renderSourceLocation(e){if(!e.url)return null;let n=`${e.url}:${e.line+1}:${e.column}`,a;e.original&&(a=`${e.original.file||"<unmapped>"}:${e.original.line+1}:${e.original.column}`);let i;if(e.urlProvider==="network"&&a)i=this._createLink({url:e.url,text:a}),i.title=`maps to generated location ${n}`;else if(e.urlProvider==="network"&&!a)i=this.renderTextURL(e.url),this._dom.find(".lh-link",i).textContent+=`:${e.line+1}:${e.column}`;else if(e.urlProvider==="comment"&&a)i=this._renderText(`${a} (from source map)`),i.title=`${n} (from sourceURL)`;else if(e.urlProvider==="comment"&&!a)i=this._renderText(`${n} (from sourceURL)`);else return null;return i.classList.add("lh-source-location"),i.setAttribute("data-source-url",e.url),i.setAttribute("data-source-line",String(e.line)),i.setAttribute("data-source-column",String(e.column)),i}_renderFilmstrip(e){let n=this._dom.createElement("div","lh-filmstrip");for(let a of e.items){let i=this._dom.createChildOf(n,"div","lh-filmstrip__frame"),o=this._dom.createChildOf(i,"img","lh-filmstrip__thumbnail");this._dom.safelySetImageSrc(o,a.data),o.alt="Screenshot"}return n}_renderCode(e){let n=this._dom.createElement("pre","lh-code");return n.textContent=e,n}};function Ra(t){let e=t.createComponent("explodeyGauge");return t.find(".lh-exp-gauge-component",e)}function Da(t,e,n){let a=t.find("div.lh-exp-gauge__wrapper",e);a.className="",a.classList.add("lh-exp-gauge__wrapper",`lh-exp-gauge__wrapper--${P.calculateRating(n.score)}`),qo(t,a,n)}function $o(t,e,n){n=n||t/32;let a=t/n,i=.5*n,o=a+i+n,r=2*Math.PI*a,s=Math.acos(1-.5*Math.pow(.5*n/a,2))*a,p=2*Math.PI*o,l=Math.acos(1-.5*Math.pow(.5*n/o,2))*o;return{radiusInner:a,radiusOuter:o,circumferenceInner:r,circumferenceOuter:p,getArcLength:()=>Math.max(0,Number(e*r)),getMetricArcLength:(m,d=!1)=>{let u=d?0:2*l;return Math.max(0,Number(m*p-i-u))},endDiffInner:s,endDiffOuter:l,strokeWidth:n,strokeGap:i}}function qo(t,e,n){let o=Number(n.score),{radiusInner:r,radiusOuter:s,circumferenceInner:p,circumferenceOuter:l,getArcLength:m,getMetricArcLength:d,endDiffInner:u,endDiffOuter:h,strokeWidth:b,strokeGap:_}=$o(128,o),f=t.find("svg.lh-exp-gauge",e);t.find(".lh-exp-gauge__label",f).textContent=n.title,f.setAttribute("viewBox",[-64,-64/2,128,128/2].join(" ")),f.style.setProperty("--stroke-width",`${b}px`),f.style.setProperty("--circle-meas",(2*Math.PI).toFixed(4));let g=t.find("g.lh-exp-gauge__outer",e),v=t.find("g.lh-exp-gauge__inner",e),C=t.find("circle.lh-cover",g),w=t.find("circle.lh-exp-gauge__arc",v),k=t.find("text.lh-exp-gauge__percentage",v);g.style.setProperty("--scale-initial",String(r/s)),g.style.setProperty("--radius",`${s}px`),C.style.setProperty("--radius",`${.5*(r+s)}px`),C.setAttribute("stroke-width",String(_)),f.style.setProperty("--radius",`${r}px`),w.setAttribute("stroke-dasharray",`${m()} ${(p-m()).toFixed(4)}`),w.setAttribute("stroke-dashoffset",String(.25*p-u)),k.textContent=Math.round(o*100).toString();let I=s+b,D=s-b,z=n.auditRefs.filter(L=>L.group==="metrics"&&L.weight),W=z.reduce((L,F)=>L+=F.weight,0),j=.25*l-h-.5*_,B=-.5*Math.PI;g.querySelectorAll(".metric").forEach(L=>{z.map(X=>`metric--${X.id}`).find(X=>L.classList.contains(X))||L.remove()}),z.forEach((L,F)=>{let G=L.acronym??L.id,X=!g.querySelector(`.metric--${G}`),V=t.maybeFind(`g.metric--${G}`,g)||t.createSVGElement("g"),we=t.maybeFind(`.metric--${G} circle.lh-exp-gauge--faded`,g)||t.createSVGElement("circle"),fe=t.maybeFind(`.metric--${G} circle.lh-exp-gauge--miniarc`,g)||t.createSVGElement("circle"),Q=t.maybeFind(`.metric--${G} circle.lh-exp-gauge-hovertarget`,g)||t.createSVGElement("circle"),J=t.maybeFind(`.metric--${G} text.metric__label`,g)||t.createSVGElement("text"),q=t.maybeFind(`.metric--${G} text.metric__value`,g)||t.createSVGElement("text");V.classList.add("metric",`metric--${G}`),we.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge--faded"),fe.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge--miniarc"),Q.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge-hovertarget");let ve=L.weight/W,an=d(ve),on=L.result.score?L.result.score*ve:0,rn=d(on),li=ve*l,sn=d(ve,!0),ln=P.calculateRating(L.result.score,L.result.scoreDisplayMode);V.style.setProperty("--metric-rating",ln),V.style.setProperty("--metric-color",`var(--color-${ln})`),V.style.setProperty("--metric-offset",`${j}`),V.style.setProperty("--i",F.toString()),we.setAttribute("stroke-dasharray",`${an} ${l-an}`),fe.style.setProperty("--metric-array",`${rn} ${l-rn}`),Q.setAttribute("stroke-dasharray",`${sn} ${l-sn-h}`),J.classList.add("metric__label"),q.classList.add("metric__value"),J.textContent=G,q.textContent=`+${Math.round(on*100)}`;let pn=B+ve*Math.PI,xe=Math.cos(pn),Se=Math.sin(pn);switch(!0){case xe>0:q.setAttribute("text-anchor","end");break;case xe<0:J.setAttribute("text-anchor","end");break;case xe===0:J.setAttribute("text-anchor","middle"),q.setAttribute("text-anchor","middle");break}switch(!0){case Se>0:J.setAttribute("dominant-baseline","hanging");break;case Se<0:q.setAttribute("dominant-baseline","hanging");break;case Se===0:J.setAttribute("dominant-baseline","middle"),q.setAttribute("dominant-baseline","middle");break}J.setAttribute("x",(I*xe).toFixed(2)),J.setAttribute("y",(I*Se).toFixed(2)),q.setAttribute("x",(D*xe).toFixed(2)),q.setAttribute("y",(D*Se).toFixed(2)),X&&(V.appendChild(we),V.appendChild(fe),V.appendChild(Q),V.appendChild(J),V.appendChild(q),g.appendChild(V)),j-=li,B+=ve*2*Math.PI});let K=g.querySelector(".lh-exp-gauge-underhovertarget")||t.createSVGElement("circle");K.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge-hovertarget","lh-exp-gauge-underhovertarget");let Y=d(1,!0);if(K.setAttribute("stroke-dasharray",`${Y} ${l-Y-h}`),K.isConnected||g.prepend(K),f.dataset.listenersSetup)return;f.dataset.listenersSetup=!0,si(f),f.addEventListener("pointerover",L=>{if(L.target===f&&f.classList.contains("state--expanded")){f.classList.remove("state--expanded"),f.classList.contains("state--highlight")&&(f.classList.remove("state--highlight"),t.find(".metric--highlight",f).classList.remove("metric--highlight"));return}if(!(L.target instanceof Element))return;let F=L.target.parentNode;if(F instanceof SVGElement){if(F&&F===v){f.classList.contains("state--expanded")?f.classList.contains("state--highlight")&&(f.classList.remove("state--highlight"),t.find(".metric--highlight",f).classList.remove("metric--highlight")):f.classList.add("state--expanded");return}if(F&&F.classList&&F.classList.contains("metric")){let G=F.style.getPropertyValue("--metric-rating");if(e.style.setProperty("--color-highlight",`var(--color-${G}-secondary)`),!f.classList.contains("state--highlight"))f.classList.add("state--highlight"),F.classList.add("metric--highlight");else{let X=t.find(".metric--highlight",f);F!==X&&(X.classList.remove("metric--highlight"),F.classList.add("metric--highlight"))}}}}),f.addEventListener("mouseleave",()=>{f.classList.remove("state--highlight"),f.querySelector(".metric--highlight")?.classList.remove("metric--highlight")});async function si(L){if(await new Promise(Q=>setTimeout(Q,1e3)),L.classList.contains("state--expanded"))return;let F=t.find(".lh-exp-gauge__inner",L),G=Array.from(F.querySelectorAll("circle")).map(Q=>{let J=`uniq-${Math.random()}`;Q.setAttribute("id",J);let q=t.createSVGElement("use");return q.setAttribute("href",`#${J}`),L.appendChild(q),q}),X=2.5;L.style.setProperty("--peek-dur",`${X}s`),L.classList.add("state--peek","state--expanded");let V=()=>{L.classList.remove("state--peek","state--expanded"),G.forEach(Q=>Q.remove())},we=setTimeout(()=>{L.removeEventListener("mouseenter",fe),V()},X*1e3*1.5);function fe(){clearTimeout(we),V()}L.addEventListener("mouseenter",fe,{once:!0})}}var gt=class extends pe{_renderMetric(e){let n=this.dom.createComponent("metric"),a=this.dom.find(".lh-metric",n);a.id=e.result.id;let i=P.calculateRating(e.result.score,e.result.scoreDisplayMode);a.classList.add(`lh-metric--${i}`);let o=this.dom.find(".lh-metric__title",n);o.textContent=e.result.title;let r=this.dom.find(".lh-metric__value",n);r.textContent=e.result.displayValue||"";let s=this.dom.find(".lh-metric__description",n);if(s.append(this.dom.convertMarkdownLinkSnippets(e.result.description)),e.result.scoreDisplayMode==="error"){s.textContent="",r.textContent="Error!";let p=this.dom.createChildOf(s,"span");p.textContent=e.result.errorMessage||"Report error: no metric information"}else e.result.scoreDisplayMode==="notApplicable"&&(r.textContent="--");return a}_getScoringCalculatorHref(e){let n=e.filter(d=>d.group==="metrics"),a=e.find(d=>d.id==="interactive"),i=e.find(d=>d.id==="first-cpu-idle"),o=e.find(d=>d.id==="first-meaningful-paint");a&&n.push(a),i&&n.push(i),o&&typeof o.result.score=="number"&&n.push(o);let r=d=>Math.round(d*100)/100,p=[...n.map(d=>{let u;return typeof d.result.numericValue=="number"?(u=d.id==="cumulative-layout-shift"?r(d.result.numericValue):Math.round(d.result.numericValue),u=u.toString()):u="null",[d.acronym||d.id,u]})];y.reportJson&&(p.push(["device",y.reportJson.configSettings.formFactor]),p.push(["version",y.reportJson.lighthouseVersion]));let l=new URLSearchParams(p),m=new URL("https://googlechrome.github.io/lighthouse/scorecalc/");return m.hash=l.toString(),m.href}overallImpact(e,n){if(!e.result.metricSavings)return{overallImpact:0,overallLinearImpact:0};let a=0,i=0;for(let[o,r]of Object.entries(e.result.metricSavings)){if(r===void 0)continue;let s=n.find(h=>h.acronym===o);if(!s||s.result.score===null)continue;let p=s.result.numericValue;if(!p)continue;let l=r/p*s.weight;i+=l;let m=s.result.scoringOptions;if(!m)continue;let u=(N.computeLogNormalScore(m,p-r)-s.result.score)*s.weight;a+=u}return{overallImpact:a,overallLinearImpact:i}}render(e,n,a){let i=y.strings,o=this.dom.createElement("div","lh-category");o.id=e.id,o.append(this.renderCategoryHeader(e,n,a));let r=e.auditRefs.filter(u=>u.group==="metrics");if(r.length){let[u,h]=this.renderAuditGroup(n.metrics),b=this.dom.createElement("input","lh-metrics-toggle__input"),_=`lh-metrics-toggle${y.getUniqueSuffix()}`;b.setAttribute("aria-label","Toggle the display of metric descriptions"),b.type="checkbox",b.id=_,u.prepend(b);let f=this.dom.find(".lh-audit-group__header",u),g=this.dom.createChildOf(f,"label","lh-metrics-toggle__label");g.htmlFor=_;let v=this.dom.createChildOf(g,"span","lh-metrics-toggle__labeltext--show"),C=this.dom.createChildOf(g,"span","lh-metrics-toggle__labeltext--hide");v.textContent=y.strings.expandView,C.textContent=y.strings.collapseView;let w=this.dom.createElement("div","lh-metrics-container");if(u.insertBefore(w,h),r.forEach(k=>{w.append(this._renderMetric(k))}),o.querySelector(".lh-gauge__wrapper")){let k=this.dom.find(".lh-category-header__description",o),I=this.dom.createChildOf(k,"div","lh-metrics__disclaimer"),D=this.dom.convertMarkdownLinkSnippets(i.varianceDisclaimer);I.append(D);let z=this.dom.createChildOf(I,"a","lh-calclink");z.target="_blank",z.rel="noopener",z.textContent=i.calculatorLink,this.dom.safelySetHref(z,this._getScoringCalculatorHref(e.auditRefs))}u.classList.add("lh-audit-group--metrics"),o.append(u)}let s=this.dom.createChildOf(o,"div","lh-filmstrip-container"),l=e.auditRefs.find(u=>u.id==="screenshot-thumbnails")?.result;if(l?.details){s.id=l.id;let u=this.detailsRenderer.render(l.details);u&&s.append(u)}let m=this.renderFilterableSection(e,n,["insights","diagnostics"],r);if(m&&(m.classList.add("lh-perf-audits"),o.append(m)),(!a||a?.gatherMode==="navigation")&&e.score!==null){let u=Ra(this.dom);Da(this.dom,u,e),this.dom.find(".lh-score__gauge",o).replaceWith(u)}return o}renderFilterableSection(e,n,a,i){if(a=a.filter(g=>!!n[g]),!a.length)return null;let o=this.dom.createElement("div"),r=g=>g.group??"",p=e.auditRefs.filter(g=>a.includes(r(g))).map(g=>{let{overallImpact:v,overallLinearImpact:C}=this.overallImpact(g,i),w=g.result.guidanceLevel||1,k=this.renderAudit(g);return{auditRef:g,auditEl:k,overallImpact:v,overallLinearImpact:C,guidanceLevel:w}}),l=p.filter(g=>!P.showAsPassed(g.auditRef.result)),m=p.filter(g=>P.showAsPassed(g.auditRef.result)),d={};for(let g of a){let v=this.renderAuditGroup(n[g]);v[0].classList.add(`lh-audit-group--${g}`),d[g]=v}function u(g){for(let v of p)if(g==="All")v.auditEl.hidden=!1;else{let C=v.auditRef.result.metricSavings?.[g]===void 0;v.auditEl.hidden=C}l.sort((v,C)=>{let w=v.auditRef.result.score||0,k=C.auditRef.result.score||0;if(w!==k)return w-k;if(g!=="All"){let I=v.auditRef.result.metricSavings?.[g]??-1,D=C.auditRef.result.metricSavings?.[g]??-1;if(I!==D)return D-I}return v.overallImpact!==C.overallImpact?C.overallImpact*C.guidanceLevel-v.overallImpact*v.guidanceLevel:v.overallImpact===0&&C.overallImpact===0&&v.overallLinearImpact!==C.overallLinearImpact?C.overallLinearImpact*C.guidanceLevel-v.overallLinearImpact*v.guidanceLevel:C.guidanceLevel-v.guidanceLevel});for(let v of l){if(!v.auditRef.group)continue;let C=d[r(v.auditRef)];if(!C)continue;let[w,k]=C;w.insertBefore(v.auditEl,k)}}let h=new Set;for(let g of l){let v=g.auditRef.result.metricSavings||{};for(let[C,w]of Object.entries(v))typeof w=="number"&&h.add(C)}let b=i.filter(g=>g.acronym&&h.has(g.acronym));b.length&&this.renderMetricAuditFilter(b,o,u),u("All");for(let g of a)if(l.some(v=>r(v.auditRef)===g)){let v=d[g];if(!v)continue;o.append(v[0])}if(!m.length)return o;let _={auditRefsOrEls:m.map(g=>g.auditEl),groupDefinitions:n},f=this.renderClump("passed",_);return o.append(f),o}renderMetricAuditFilter(e,n,a){let i=this.dom.createElement("div","lh-metricfilter"),o=this.dom.createChildOf(i,"span","lh-metricfilter__text");o.textContent=y.strings.showRelevantAudits;let r=[{acronym:"All",id:"All"},...e],s=y.getUniqueSuffix();for(let p of r){let l=`metric-${p.acronym}-${s}`,m=this.dom.createChildOf(i,"input","lh-metricfilter__radio");m.type="radio",m.name=`metricsfilter-${s}`,m.id=l;let d=this.dom.createChildOf(i,"label","lh-metricfilter__label");d.htmlFor=l,d.title="result"in p?p.result.title:"",d.textContent=p.acronym||p.id,p.acronym==="All"&&(m.checked=!0,d.classList.add("lh-metricfilter__label--active")),n.append(i),m.addEventListener("input",u=>{for(let b of n.querySelectorAll("label.lh-metricfilter__label"))b.classList.toggle("lh-metricfilter__label--active",b.htmlFor===l);n.classList.toggle("lh-category--filtered",p.acronym!=="All"),a(p.acronym||"All");let h=n.querySelectorAll("div.lh-audit-group, details.lh-audit-group");for(let b of h){b.hidden=!1;let _=Array.from(b.querySelectorAll("div.lh-audit")),f=!!_.length&&_.every(g=>g.hidden);b.hidden=f}})}}};var ft=class{constructor(e){this._dom=e,this._opts={}}renderReport(e,n,a){if(!this._dom.rootEl&&n){console.warn("Please adopt the new report API in renderer/api.js.");let o=n.closest(".lh-root");o?this._dom.rootEl=o:(n.classList.add("lh-root","lh-vars"),this._dom.rootEl=n)}else this._dom.rootEl&&n&&(this._dom.rootEl=n);a&&(this._opts=a),this._dom.setLighthouseChannel(e.configSettings.channel||"unknown");let i=P.prepareReportResult(e);return this._dom.rootEl.textContent="",this._dom.rootEl.append(this._renderReport(i)),this._opts.occupyEntireViewport&&this._dom.rootEl.classList.add("lh-max-viewport"),this._dom.rootEl}_renderReportTopbar(e){let n=this._dom.createComponent("topbar"),a=this._dom.find("a.lh-topbar__url",n);return a.textContent=e.finalDisplayedUrl,a.title=e.finalDisplayedUrl,this._dom.safelySetHref(a,e.finalDisplayedUrl),n}_renderReportHeader(){let e=this._dom.createComponent("heading"),n=this._dom.createComponent("scoresWrapper");return this._dom.find(".lh-scores-wrapper-placeholder",e).replaceWith(n),e}_renderReportFooter(e){let n=this._dom.createComponent("footer");return this._renderMetaBlock(e,n),this._dom.find(".lh-footer__version_issue",n).textContent=y.strings.footerIssue,this._dom.find(".lh-footer__version",n).textContent=e.lighthouseVersion,n}_renderMetaBlock(e,n){let a=P.getEmulationDescriptions(e.configSettings||{}),i=e.userAgent.match(/(\w*Chrome\/[\d.]+)/),o=Array.isArray(i)?i[1].replace("/"," ").replace("Chrome","Chromium"):"Chromium",r=e.configSettings.channel,s=e.environment.benchmarkIndex.toFixed(0),p=e.environment.credits?.["axe-core"],l=e.environment.credits?.ard,m=[`${y.strings.runtimeSettingsBenchmark}: ${s}`,`${y.strings.runtimeSettingsCPUThrottling}: ${a.cpuThrottling}`];a.screenEmulation&&m.push(`${y.strings.runtimeSettingsScreenEmulation}: ${a.screenEmulation}`),p&&m.push(`${y.strings.runtimeSettingsAxeVersion}: ${p}`),l&&m.push(`${y.strings.runtimeSettingsArdVersion}: ${l}`);let d=y.strings.runtimeAnalysisWindow;e.gatherMode==="timespan"?d=y.strings.runtimeAnalysisWindowTimespan:e.gatherMode==="snapshot"&&(d=y.strings.runtimeAnalysisWindowSnapshot);let u=[["date",`Captured at ${y.i18n.formatDateTime(e.fetchTime)}`],["devices",`${a.deviceEmulation} with Lighthouse ${e.lighthouseVersion}`,m.join(`
2877
+ `)],["samples-one",y.strings.runtimeSingleLoad,y.strings.runtimeSingleLoadTooltip],["stopwatch",d],["networkspeed",`${a.summary}`,`${y.strings.runtimeSettingsNetworkThrottling}: ${a.networkThrottling}`],["chrome",`Using ${o}`+(r?` with ${r}`:""),`${y.strings.runtimeSettingsUANetwork}: "${e.environment.networkUserAgent}"`]],h=Object.keys(e.categories).filter(_=>P.isPluginCategory(_));for(let _ of h){let f=e.environment.credits?.[_];u.push(["plugin",f?`${_} ${f}`:_,void 0,`https://www.npmjs.com/package/${_}`])}let b=this._dom.find(".lh-meta__items",n);for(let[_,f,g,v]of u){let C=this._dom.createChildOf(b,"li","lh-meta__item");if(v){let w=this._dom.createChildOf(C,"a");w.rel="noopener",w.target="_blank",w.textContent=f,this._dom.safelySetHref(w,v)}else C.textContent=f;if(g){C.classList.add("lh-tooltip-boundary");let w=this._dom.createChildOf(C,"div","lh-tooltip");w.textContent=g}C.classList.add("lh-report-icon",`lh-report-icon--${_}`)}}_renderReportWarnings(e){if(!e.runWarnings||e.runWarnings.length===0)return this._dom.createElement("div");let n=this._dom.createComponent("warningsToplevel"),a=this._dom.find(".lh-warnings__msg",n);a.textContent=y.strings.toplevelWarningsMessage;let i=[];for(let o of e.runWarnings){let r=this._dom.createElement("li");r.append(this._dom.convertMarkdownLinkSnippets(o)),i.push(r)}return this._dom.find("ul",n).append(...i),n}_renderScoreGauges(e,n,a){let i=[],o=[];for(let r of Object.values(e.categories)){let p=(a[r.id]||n).renderCategoryScore(r,e.categoryGroups||{},{gatherMode:e.gatherMode}),l=this._dom.find("a.lh-gauge__wrapper, a.lh-fraction__wrapper",p);l&&(this._dom.safelySetHref(l,`#${r.id}`),l.addEventListener("click",m=>{if(!l.matches('[href^="#"]'))return;let d=l.getAttribute("href"),u=this._dom.rootEl;if(!d||!u)return;let h=this._dom.find(d,u);m.preventDefault(),h.scrollIntoView()}),this._opts.onPageAnchorRendered?.(l)),P.isPluginCategory(r.id)?o.push(p):i.push(p)}return[...i,...o]}_renderReport(e){y.apply({providedStrings:e.i18n.rendererFormattedStrings,i18n:new ge(e.configSettings.locale),reportJson:e});let n=new _e(this._dom,{fullPageScreenshot:e.fullPageScreenshot??void 0,entities:e.entities}),a=new pe(this._dom,n),i={performance:new gt(this._dom,n)},o=this._dom.createElement("div");o.append(this._renderReportHeader());let r=this._dom.createElement("div","lh-container"),s=this._dom.createElement("div","lh-report");s.append(this._renderReportWarnings(e));let p;Object.keys(e.categories).length===1?o.classList.add("lh-header--solo-category"):p=this._dom.createElement("div","lh-scores-header");let m=this._dom.createElement("div");if(m.classList.add("lh-scorescale-wrap"),m.append(this._dom.createComponent("scorescale")),p){let b=this._dom.find(".lh-scores-container",o);p.append(...this._renderScoreGauges(e,a,i)),b.append(p,m);let _=this._dom.createElement("div","lh-sticky-header");_.append(...this._renderScoreGauges(e,a,i)),r.append(_)}let d=this._dom.createElement("div","lh-categories");s.append(d);let u={gatherMode:e.gatherMode};for(let b of Object.values(e.categories)){let _=i[b.id]||a;_.dom.createChildOf(d,"div","lh-category-wrapper").append(_.render(b,e.categoryGroups,u))}a.injectFinalScreenshot(d,e.audits,m);let h=this._dom.createFragment();return this._opts.omitGlobalStyles||h.append(this._dom.createComponent("styles")),this._opts.omitTopbar||h.append(this._renderReportTopbar(e)),h.append(r),s.append(this._renderReportFooter(e)),r.append(o,s),e.fullPageScreenshot&&ue.installFullPageScreenshot(this._dom.rootEl,e.fullPageScreenshot.screenshot),h}};function Ce(t,e){let n=t.rootEl;typeof e>"u"?n.classList.toggle("lh-dark"):n.classList.toggle("lh-dark",e)}var Wo=typeof btoa<"u"?btoa:t=>Buffer.from(t).toString("base64"),Jo=typeof atob<"u"?atob:t=>Buffer.from(t,"base64").toString();async function Zo(t,e){let n=new TextEncoder().encode(t);if(e.gzip)if(typeof CompressionStream<"u"){let o=new CompressionStream("gzip"),r=o.writable.getWriter();r.write(n),r.close();let s=await new Response(o.readable).arrayBuffer();n=new Uint8Array(s)}else n=window.pako.gzip(t);let a="",i=5e3;for(let o=0;o<n.length;o+=i)a+=String.fromCharCode(...n.subarray(o,o+i));return Wo(a)}function Ko(t,e){let n=Jo(t),a=Uint8Array.from(n,i=>i.charCodeAt(0));return e.gzip?window.pako.ungzip(a,{toText:!0}):new TextDecoder().decode(a)}var za={toBase64:Zo,fromBase64:Ko};function Yt(){let t=window.location.host.endsWith(".vercel.app"),e=new URLSearchParams(window.location.search).has("dev");return t?`https://${window.location.host}/gh-pages`:e?"http://localhost:7333":"https://googlechrome.github.io/lighthouse"}function Qt(t){let e=t.generatedTime,n=t.fetchTime||e;return`${t.lighthouseVersion}-${t.finalDisplayedUrl}-${n}`}function Xo(t,e,n){let a=new URL(e).origin;window.addEventListener("message",function o(r){r.origin===a&&i&&r.data.opened&&(i.postMessage(t,a),window.removeEventListener("message",o))});let i=window.open(e,n)}async function ja(t,e,n){let a=new URL(e),i=!!window.CompressionStream;a.hash=await za.toBase64(JSON.stringify(t),{gzip:i}),i&&a.searchParams.set("gzip","1"),window.open(a.toString(),n)}async function Ma(t){let e="viewer-"+Qt(t),n=Yt()+"/viewer/";await ja({lhr:t},n,e)}async function Ha(t){let e="viewer-"+Qt(t),n=Yt()+"/viewer/";Xo({lhr:t},n,e)}function Fa(t){if(!t.audits["script-treemap-data"].details)throw new Error("no script treemap data found");let n={lhr:{mainDocumentUrl:t.mainDocumentUrl,finalUrl:t.finalUrl,finalDisplayedUrl:t.finalDisplayedUrl,audits:{"script-treemap-data":t.audits["script-treemap-data"]},configSettings:{locale:t.configSettings.locale}}},a=Yt()+"/treemap/",i="treemap-"+Qt(t);ja(n,a,i)}var vt=class{constructor(e){this._dom=e,this._toggleEl,this._menuEl,this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this),this.onToggleClick=this.onToggleClick.bind(this),this.onToggleKeydown=this.onToggleKeydown.bind(this),this.onMenuFocusOut=this.onMenuFocusOut.bind(this),this.onMenuKeydown=this.onMenuKeydown.bind(this),this._getNextMenuItem=this._getNextMenuItem.bind(this),this._getNextSelectableNode=this._getNextSelectableNode.bind(this),this._getPreviousMenuItem=this._getPreviousMenuItem.bind(this)}setup(e){this._toggleEl=this._dom.find(".lh-topbar button.lh-tools__button",this._dom.rootEl),this._toggleEl.addEventListener("click",this.onToggleClick),this._toggleEl.addEventListener("keydown",this.onToggleKeydown),this._menuEl=this._dom.find(".lh-topbar div.lh-tools__dropdown",this._dom.rootEl),this._menuEl.addEventListener("keydown",this.onMenuKeydown),this._menuEl.addEventListener("click",e)}close(){this._toggleEl.classList.remove("lh-active"),this._toggleEl.setAttribute("aria-expanded","false"),this._menuEl.contains(this._dom.document().activeElement)&&this._toggleEl.focus(),this._menuEl.removeEventListener("focusout",this.onMenuFocusOut),this._dom.document().removeEventListener("keydown",this.onDocumentKeyDown)}open(e){this._toggleEl.classList.contains("lh-active")?e.focus():this._menuEl.addEventListener("transitionend",()=>{e.focus()},{once:!0}),this._toggleEl.classList.add("lh-active"),this._toggleEl.setAttribute("aria-expanded","true"),this._menuEl.addEventListener("focusout",this.onMenuFocusOut),this._dom.document().addEventListener("keydown",this.onDocumentKeyDown)}onToggleClick(e){e.preventDefault(),e.stopImmediatePropagation(),this._toggleEl.classList.contains("lh-active")?this.close():this.open(this._getNextMenuItem())}onToggleKeydown(e){switch(e.code){case"ArrowUp":e.preventDefault(),this.open(this._getPreviousMenuItem());break;case"ArrowDown":case"Enter":case" ":e.preventDefault(),this.open(this._getNextMenuItem());break;default:}}onMenuKeydown(e){let n=e.target;switch(e.code){case"ArrowUp":e.preventDefault(),this._getPreviousMenuItem(n).focus();break;case"ArrowDown":e.preventDefault(),this._getNextMenuItem(n).focus();break;case"Home":e.preventDefault(),this._getNextMenuItem().focus();break;case"End":e.preventDefault(),this._getPreviousMenuItem().focus();break;default:}}onDocumentKeyDown(e){e.keyCode===27&&this.close()}onMenuFocusOut(e){let n=e.relatedTarget;this._menuEl.contains(n)||this.close()}_getNextSelectableNode(e,n){let a=e.filter(o=>o instanceof HTMLElement).filter(o=>!(o.hasAttribute("disabled")||window.getComputedStyle(o).display==="none")),i=n?a.indexOf(n)+1:0;return i>=a.length&&(i=0),a[i]}_getNextMenuItem(e){let n=Array.from(this._menuEl.childNodes);return this._getNextSelectableNode(n,e)}_getPreviousMenuItem(e){let n=Array.from(this._menuEl.childNodes).reverse();return this._getNextSelectableNode(n,e)}};var bt=class{constructor(e,n){this.lhr,this._reportUIFeatures=e,this._dom=n,this._dropDownMenu=new vt(this._dom),this._copyAttempt=!1,this.topbarEl,this.categoriesEl,this.stickyHeaderEl,this.highlightEl,this.onDropDownMenuClick=this.onDropDownMenuClick.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onCopy=this.onCopy.bind(this),this.collapseAllDetails=this.collapseAllDetails.bind(this)}enable(e){this.lhr=e,this._dom.rootEl.addEventListener("keyup",this.onKeyUp),this._dom.document().addEventListener("copy",this.onCopy),this._dropDownMenu.setup(this.onDropDownMenuClick),this._setUpCollapseDetailsAfterPrinting(),this._dom.find(".lh-topbar__logo",this._dom.rootEl).addEventListener("click",()=>Ce(this._dom)),this._setupStickyHeader()}onDropDownMenuClick(e){e.preventDefault();let n=e.target;if(!(!n||!n.hasAttribute("data-action"))){switch(n.getAttribute("data-action")){case"copy":this.onCopyButtonClick();break;case"print-summary":this.collapseAllDetails(),this._print();break;case"print-expanded":this.expandAllDetails(),this._print();break;case"save-json":{let a=JSON.stringify(this.lhr,null,2);this._reportUIFeatures._saveFile(new Blob([a],{type:"application/json"}));break}case"save-html":{let a=this._reportUIFeatures.getReportHtml();try{this._reportUIFeatures._saveFile(new Blob([a],{type:"text/html"}))}catch(i){this._dom.fireEventOn("lh-log",this._dom.document(),{cmd:"error",msg:"Could not export as HTML. "+i.message})}break}case"open-viewer":{this._dom.isDevTools()?Ma(this.lhr):Ha(this.lhr);break}case"save-gist":{this._reportUIFeatures.saveAsGist();break}case"toggle-dark":{Ce(this._dom);break}case"view-unthrottled-trace":this._reportUIFeatures._opts.onViewTrace?.()}this._dropDownMenu.close()}}onCopy(e){this._copyAttempt&&e.clipboardData&&(e.preventDefault(),e.clipboardData.setData("text/plain",JSON.stringify(this.lhr,null,2)),this._dom.fireEventOn("lh-log",this._dom.document(),{cmd:"log",msg:"Report JSON copied to clipboard"})),this._copyAttempt=!1}onCopyButtonClick(){this._dom.fireEventOn("lh-analytics",this._dom.document(),{name:"copy"});try{this._dom.document().queryCommandSupported("copy")&&(this._copyAttempt=!0,this._dom.document().execCommand("copy")||(this._copyAttempt=!1,this._dom.fireEventOn("lh-log",this._dom.document(),{cmd:"warn",msg:"Your browser does not support copy to clipboard."})))}catch(e){this._copyAttempt=!1,this._dom.fireEventOn("lh-log",this._dom.document(),{cmd:"log",msg:e.message})}}onKeyUp(e){(e.ctrlKey||e.metaKey)&&e.keyCode===80&&this._dropDownMenu.close()}expandAllDetails(){this._dom.findAll(".lh-categories details",this._dom.rootEl).map(n=>n.open=!0)}collapseAllDetails(){this._dom.findAll(".lh-categories details",this._dom.rootEl).map(n=>n.open=!1)}_print(){this._reportUIFeatures._opts.onPrintOverride?this._reportUIFeatures._opts.onPrintOverride(this._dom.rootEl):self.print()}resetUIState(){this._dropDownMenu.close()}_getScrollParent(e){let{overflowY:n}=window.getComputedStyle(e);return n!=="visible"&&n!=="hidden"?e:e.parentElement?this._getScrollParent(e.parentElement):document}_setUpCollapseDetailsAfterPrinting(){"onbeforeprint"in self?self.addEventListener("afterprint",this.collapseAllDetails):self.matchMedia("print").addListener(n=>{n.matches?this.expandAllDetails():this.collapseAllDetails()})}_setupStickyHeader(){this.topbarEl=this._dom.find("div.lh-topbar",this._dom.rootEl),this.categoriesEl=this._dom.find("div.lh-categories",this._dom.rootEl),requestAnimationFrame(()=>requestAnimationFrame(()=>{try{this.stickyHeaderEl=this._dom.find("div.lh-sticky-header",this._dom.rootEl)}catch{return}this.highlightEl=this._dom.createChildOf(this.stickyHeaderEl,"div","lh-highlighter");let e=this._getScrollParent(this._dom.find(".lh-container",this._dom.rootEl));e.addEventListener("scroll",()=>this._updateStickyHeader());let n=e instanceof window.Document?document.documentElement:e;new window.ResizeObserver(()=>this._updateStickyHeader()).observe(n)}))}_updateStickyHeader(){if(!this.stickyHeaderEl)return;let e=this.topbarEl.getBoundingClientRect().bottom,n=this.categoriesEl.getBoundingClientRect().top,a=e>=n,o=Array.from(this._dom.rootEl.querySelectorAll(".lh-category")).filter(d=>d.getBoundingClientRect().top-window.innerHeight/2<0),r=o.length>0?o.length-1:0,s=this.stickyHeaderEl.querySelectorAll(".lh-gauge__wrapper, .lh-fraction__wrapper"),p=s[r],l=s[0].getBoundingClientRect().left,m=p.getBoundingClientRect().left-l;this.highlightEl.style.transform=`translate(${m}px)`,this.stickyHeaderEl.classList.toggle("lh-sticky-header--visible",a)}};function Ba(t,e){let n=e?new Date(e):new Date,a=n.toLocaleTimeString("en-US",{hour12:!1}),i=n.toLocaleDateString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"}).split("/");i.unshift(i.pop());let o=i.join("-");return`${t.slice(0,200)}_${o}_${a}`.replace(/[/?<>\\:*|"]/g,"-")}function Oa(t){let{hostname:e,pathname:n}=new URL(t.finalDisplayedUrl),a=e+n.replace(/\/$/,"");return Ba(a,t.fetchTime)}function Ga(t){let e=t.steps[0].lhr,n=t.name.replace(/\s/g,"-");return Ba(n,e.fetchTime)}function Yo(t){return Array.from(t.tBodies[0].rows)}var yt=class{constructor(e,n={}){this.json,this._dom=e,this._opts=n,this._topbar=n.omitTopbar?null:new bt(this,e),this.onMediaQueryChange=this.onMediaQueryChange.bind(this)}initFeatures(e){this.json=e,this._fullPageScreenshot=N.getFullPageScreenshot(e),this._topbar&&(this._topbar.enable(e),this._topbar.resetUIState()),this._setupMediaQueryListeners(),this._setupThirdPartyFilter(),this._setupElementScreenshotOverlay(this._dom.rootEl);let n=this._dom.isDevTools()||this._opts.disableDarkMode||this._opts.disableAutoDarkModeAndFireworks;!n&&window.matchMedia("(prefers-color-scheme: dark)").matches&&Ce(this._dom,!0);let i=["performance","accessibility","best-practices","seo"].every(p=>{let l=e.categories[p];return l&&l.score===1}),o=this._opts.disableFireworks||this._opts.disableAutoDarkModeAndFireworks;if(i&&!o&&(this._enableFireworks(),n||Ce(this._dom,!0)),e.categories.performance&&e.categories.performance.auditRefs.some(p=>!!(p.group==="metrics"&&e.audits[p.id].errorMessage))){let p=this._dom.find("input.lh-metrics-toggle__input",this._dom.rootEl);p.checked=!0}this.json.audits["script-treemap-data"]&&this.json.audits["script-treemap-data"].details&&this.addButton({text:y.strings.viewTreemapLabel,icon:"treemap",onClick:()=>Fa(this.json)}),this._opts.onViewTrace&&(e.configSettings.throttlingMethod==="simulate"?this._dom.find('a[data-action="view-unthrottled-trace"]',this._dom.rootEl).classList.remove("lh-hidden"):this.addButton({text:y.strings.viewTraceLabel,onClick:()=>this._opts.onViewTrace?.()})),this._opts.getStandaloneReportHTML&&this._dom.find('a[data-action="save-html"]',this._dom.rootEl).classList.remove("lh-hidden");for(let p of this._dom.findAll("[data-i18n]",this._dom.rootEl)){let m=p.getAttribute("data-i18n");p.textContent=y.strings[m]}}addButton(e){let n=this._dom.rootEl.querySelector(".lh-audit-group--metrics");if(!n)return;let a=n.querySelector(".lh-buttons");a||(a=this._dom.createChildOf(n,"div","lh-buttons"));let i=["lh-button"];e.icon&&(i.push("lh-report-icon"),i.push(`lh-report-icon--${e.icon}`));let o=this._dom.createChildOf(a,"button",i.join(" "));return o.textContent=e.text,o.addEventListener("click",e.onClick),o}resetUIState(){this._topbar&&this._topbar.resetUIState()}getReportHtml(){if(!this._opts.getStandaloneReportHTML)throw new Error("`getStandaloneReportHTML` is not set");return this.resetUIState(),this._opts.getStandaloneReportHTML()}saveAsGist(){throw new Error("Cannot save as gist from base report")}_enableFireworks(){this._dom.find(".lh-scores-container",this._dom.rootEl).classList.add("lh-score100")}_setupMediaQueryListeners(){let e=self.matchMedia("(max-width: 500px)");e.addListener(this.onMediaQueryChange),this.onMediaQueryChange(e)}_resetUIState(){this._topbar&&this._topbar.resetUIState()}onMediaQueryChange(e){this._dom.rootEl.classList.toggle("lh-narrow",e.matches)}_setupThirdPartyFilter(){let e=["uses-rel-preconnect","third-party-facades","network-dependency-tree-insight"],n=["legacy-javascript","legacy-javascript-insight"];Array.from(this._dom.rootEl.querySelectorAll("table.lh-table")).filter(o=>o.querySelector("td.lh-table-column--url, td.lh-table-column--source-location")).filter(o=>{let r=o.closest(".lh-audit");if(!r)throw new Error(".lh-table not within audit");return!e.includes(r.id)}).forEach(o=>{let r=Yo(o),s=r.filter(f=>!f.classList.contains("lh-sub-item-row")),p=this._getThirdPartyRows(s,N.getFinalDisplayedUrl(this.json)),l=r.some(f=>f.classList.contains("lh-row--even")),m=this._dom.createComponent("3pFilter"),d=this._dom.find("input",m);d.addEventListener("change",f=>{let g=f.target instanceof HTMLInputElement&&!f.target.checked,v=!0,C=s[0];for(;C;){let w=g&&p.includes(C);do C.classList.toggle("lh-row--hidden",w),l&&(C.classList.toggle("lh-row--even",!w&&v),C.classList.toggle("lh-row--odd",!w&&!v)),C=C.nextElementSibling;while(C&&C.classList.contains("lh-sub-item-row"));w||(v=!v)}});let u=p.filter(f=>!f.classList.contains("lh-row--group")).length;this._dom.find(".lh-3p-filter-count",m).textContent=`${u}`,this._dom.find(".lh-3p-ui-string",m).textContent=y.strings.thirdPartyResourcesLabel;let h=p.length===s.length,b=!p.length;if((h||b)&&(this._dom.find("div.lh-3p-filter",m).hidden=!0),!o.parentNode)return;o.parentNode.insertBefore(m,o);let _=o.closest(".lh-audit");if(!_)throw new Error(".lh-table not within audit");n.includes(_.id)&&!h&&d.click()})}_setupElementScreenshotOverlay(e){this._fullPageScreenshot&&ue.installOverlayFeature({dom:this._dom,rootEl:e,overlayContainerEl:e,fullPageScreenshot:this._fullPageScreenshot})}_getThirdPartyRows(e,n){let a=N.getEntityFromUrl(n,this.json.entities),i=this.json.entities?.find(r=>r.isFirstParty===!0)?.name,o=[];for(let r of e){if(i){if(!r.dataset.entity||r.dataset.entity===i)continue}else{let s=r.querySelector("div.lh-text__url");if(!s)continue;let p=s.dataset.url;if(!p||!(N.getEntityFromUrl(p,this.json.entities)!==a))continue}o.push(r)}return o}_saveFile(e){let n=e.type.match("json")?".json":".html",a=Oa({finalDisplayedUrl:N.getFinalDisplayedUrl(this.json),fetchTime:this.json.fetchTime})+n;this._opts.onSaveFileOverride?this._opts.onSaveFileOverride(e,a):this._dom.saveFile(e,a)}};function Va(t,e={}){let n=document.createElement("article");n.classList.add("lh-root","lh-vars");let a=new le(n.ownerDocument,n);return new ft(a).renderReport(t,n,e),new yt(a,e).initFeatures(t),n}function $a(t,e){let n=new le(document,document.documentElement),a=new _e(n);return new pe(n,a).renderCategoryScore(t,{},e)}function qa(t,e){new le(document,document.documentElement).saveFile(t,e)}function Wa(t){return new le(document,document.documentElement).convertMarkdownCodeSnippets(t)}function Ja(){return new le(document,document.documentElement).createComponent("styles")}var Za=({category:t,href:e,gatherMode:n})=>{let a=re(()=>$a(t,{gatherMode:n,omitLabel:!0,onPageAnchorRendered:i=>i.href=e}),[t,e]);return c("div",{ref:a,"data-testid":"CategoryScore"})};var Ka=({text:t})=>{let e=re(()=>Wa(t),[t]);return c("span",{ref:e})};var Qo=2;function er(t,e){switch(t){case"navigation":return e.navigationReport;case"timespan":return e.timespanReport;case"snapshot":return e.snapshotReport}}function tr(t,e){switch(t){case"pass":return e.ratingPass;case"average":return e.ratingAverage;case"fail":return e.ratingFail;case"error":return e.ratingError}}function Xa(t){return t.weight*(1-t.result.score)}var nr=({audit:t})=>{let e=P.calculateRating(t.result.score,t.result.scoreDisplayMode);return c("div",{className:`SummaryTooltipAudit SummaryTooltipAudit--${e}`,children:c(Ka,{text:t.result.title})})},ar=({category:t})=>{let e=H();function n(i){return i.result.score!==null&&i.group!=="metrics"&&i.group!=="hidden"&&(i.weight>0||i.group==="diagnostics")&&!P.showAsPassed(i.result)}let a=t.auditRefs.filter(n).sort((i,o)=>{let r=Xa(i),s=Xa(o);if(r!==s)return s-r;if(i.result.score!==o.result.score)return i.result.score-o.result.score;let p=i.result.metricSavings?.LCP||0;return(o.result.metricSavings?.LCP||0)-p}).splice(0,Qo);return a.length?c("div",{className:"SummaryTooltipAudits",children:[c("div",{className:"SummaryTooltipAudits__title",children:e.highestImpact}),a.map(i=>c(nr,{audit:i},i.id))]}):null},ir=({category:t,gatherMode:e,url:n})=>{let a=H(),i=ht(),{numPassed:o,numPassableAudits:r,numInformative:s,totalWeight:p}=P.calculateCategoryFraction(t),l=Fe(),m=P.shouldDisplayAsFraction(e,t),d=m?o/r:t.score,u=d===null?"error":P.calculateRating(d);return c("div",{className:"SummaryTooltip",children:[c("div",{className:"SummaryTooltip__title",children:er(e,a)}),c("div",{className:"SummaryTooltip__url",children:n}),c(Z,{}),c("div",{className:"SummaryTooltip__category",children:[c("div",{className:"SummaryTooltip__category-title",children:t.title}),p!==0&&c("div",{className:`SummaryTooltip__rating SummaryTooltip__rating--${u}`,children:[c("span",{children:tr(u,a)}),!m&&t.score!==null&&c(M,{children:[c("span",{children:" · "}),c("span",{children:l.formatter.formatInteger(t.score*100)})]})]})]}),c("div",{className:"SummaryTooltip__fraction",children:[c("span",{children:i(a.passedAuditCount,{numPassed:o})}),c("span",{children:" / "}),c("span",{children:i(a.passableAuditCount,{numPassableAudits:r})})]}),s!==0&&c("div",{className:"SummaryTooltip__informative",children:i(a.informativeAuditCount,{numInformative:s})}),c(ar,{category:t})]})},Ya=({category:t,href:e,gatherMode:n,finalDisplayedUrl:a})=>c("div",{className:"SummaryCategory",children:t?c("div",{className:"SummaryCategory__content",children:[c(Za,{category:t,href:e,gatherMode:n}),c(ir,{category:t,gatherMode:n,url:a})]}):c("div",{className:"SummaryCategory__null","data-testid":"SummaryCategory__null"})});var or=["performance","accessibility","best-practices","seo"],rr=40,sr=({lhr:t})=>{let e=H(),n;try{let a=new URL(t.finalDisplayedUrl);["https:","http:"].includes(a.protocol)&&(n=a.href)}catch{}return c("div",{className:"SummaryNavigationHeader","data-testid":"SummaryNavigationHeader",children:[c(se,{}),c("div",{className:"SummaryNavigationHeader__url",children:c("a",{rel:"noopener",target:"_blank",href:n,children:t.finalDisplayedUrl})}),c("div",{className:"SummaryNavigationHeader__category",children:e.categoryPerformance}),c("div",{className:"SummaryNavigationHeader__category",children:e.categoryAccessibility}),c("div",{className:"SummaryNavigationHeader__category",children:e.categoryBestPractices}),c("div",{className:"SummaryNavigationHeader__category",children:e.categorySeo})]})},lr=({lhr:t,label:e,hashIndex:n})=>{let a=te(()=>P.prepareReportResult(t),[t]),i=H(),o=st(t.gatherMode,i);return c("div",{className:"SummaryFlowStep",children:[t.gatherMode==="navigation"||n===0?c(sr,{lhr:t}):c("div",{className:"SummaryFlowStep__separator",children:[c(se,{}),c(Z,{})]}),c(lt,{lhr:t,width:rr}),c(se,{mode:t.gatherMode}),c("div",{className:"SummaryFlowStep__label",children:[c("div",{className:"SummaryFlowStep__mode",children:o}),c("a",{className:"SummaryFlowStep__link",href:`#index=${n}`,children:e})]}),or.map(r=>c(Ya,{category:a.categories[r],href:`#index=${n}&anchor=${r}`,gatherMode:t.gatherMode,finalDisplayedUrl:t.finalDisplayedUrl},r))]})},pr=()=>{let t=$();return c("div",{className:"SummaryFlow",children:t.steps.map((e,n)=>c(lr,{lhr:e.lhr,label:e.name,hashIndex:n},e.lhr.fetchTime))})},ur=()=>{let t=$(),e=H(),n=ht(),a=0,i=0,o=0;for(let p of t.steps)switch(p.lhr.gatherMode){case"navigation":a++;break;case"timespan":i++;break;case"snapshot":o++;break}let r=[];a&&r.push(n(e.navigationReportCount,{numNavigation:a})),i&&r.push(n(e.timespanReportCount,{numTimespan:i})),o&&r.push(n(e.snapshotReportCount,{numSnapshot:o}));let s=r.join(" · ");return c("div",{className:"SummaryHeader",children:[c("div",{className:"SummaryHeader__title",children:e.summary}),c("div",{className:"SummaryHeader__subtitle",children:s})]})},cr=({children:t})=>c("div",{className:"SummarySectionHeader",children:[c("div",{className:"SummarySectionHeader__content",children:t}),c(Z,{})]}),Qa=()=>{let t=H();return c("div",{className:"Summary","data-testid":"Summary",children:[c(ur,{}),c(Z,{}),c(cr,{children:t.allReports}),c(pr,{})]})};function mr(t,e){let n=t.cloneNode(!0);if(!n.hash)return n;let a=t.hash.substr(1);n.hash=`#index=${e}&anchor=${a}`,n.onclick=i=>{i.preventDefault();let o=document.getElementById(a);o&&o.scrollIntoView()},t.replaceWith(n)}var ei=({hashState:t})=>{let e=re(()=>Va(t.currentLhr,{disableFireworks:!0,disableDarkMode:!0,omitTopbar:!0,omitGlobalStyles:!0,onPageAnchorRendered:n=>mr(n,t.index)}),[t]);return c("div",{ref:e,"data-testid":"Report"})};var en=t=>{let e=H();return c("div",{className:"HelpDialogColumn",children:[c("div",{className:"HelpDialogColumn__legend",children:[c("div",{className:"HelpDialogColumnTimeline",children:[t.icon,c("div",{className:"HelpDialogColumnTimeline__line"})]}),c("div",{className:"HelpDialogColumn__legend-label",children:t.userFriendlyModeLabel})]}),c("div",{className:"HelpDialogColumn__header",children:[c("div",{className:"HelpDialogColumn__header-title",children:t.lighthouseOfficialModeLabel}),c("p",{children:t.modeDescription})]}),c("div",{className:"HelpDialogColumn__use-cases",children:[c("p",{children:t.useCaseInstruction}),c("ul",{children:t.useCases.map((n,a)=>c("li",{children:n},a))})]}),c("div",{className:"HelpDialogColumn__categories",children:[c("p",{children:e.categories}),c("ul",{children:t.availableCategories.map((n,a)=>c("li",{children:n},a))})]})]})},ti=({onClose:t})=>{let e=H();return c("div",{className:"HelpDialog",children:[c("div",{className:"HelpDialog__title",children:[c("div",{children:e.helpDialogTitle}),c("div",{style:{flexGrow:1}}),c("button",{className:"HelpDialog__close",onClick:t,children:c(On,{})})]}),c("div",{className:"HelpDialog__columns",children:[c(en,{icon:c(it,{}),userFriendlyModeLabel:e.navigationDescription,lighthouseOfficialModeLabel:e.navigationReport,modeDescription:e.navigationLongDescription,useCaseInstruction:e.helpUseCaseInstructionNavigation,useCases:[e.helpUseCaseNavigation1,e.helpUseCaseNavigation2,e.helpUseCaseNavigation3],availableCategories:[e.categoryPerformance,e.categoryAccessibility,e.categoryBestPractices,e.categorySeo]}),c(en,{icon:c(ot,{}),userFriendlyModeLabel:e.timespanDescription,lighthouseOfficialModeLabel:e.timespanReport,modeDescription:e.timespanLongDescription,useCaseInstruction:e.helpUseCaseInstructionTimespan,useCases:[e.helpUseCaseTimespan1,e.helpUseCaseTimespan2],availableCategories:[e.categoryPerformance,e.categoryBestPractices]}),c(en,{icon:c(rt,{}),userFriendlyModeLabel:e.snapshotDescription,lighthouseOfficialModeLabel:e.snapshotReport,modeDescription:e.snapshotLongDescription,useCaseInstruction:e.helpUseCaseInstructionSnapshot,useCases:[e.helpUseCaseSnapshot1,e.helpUseCaseSnapshot2],availableCategories:[e.categoryPerformance,e.categoryAccessibility,e.categoryBestPractices,e.categorySeo]})]})]})};function tn(t,e){let n=new Blob([e],{type:"text/html"}),a=Ga(t)+".html";tn.saveFile(n,a)}tn.saveFile=qa;var dr=()=>c("svg",{role:"img",class:"lh-topbar__logo",title:"Lighthouse logo",width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:[c("path",{d:"m14 7 10-7 10 7v10h5v7h-5l5 24H9l5-24H9v-7h5V7Z",fill:"#F63"}),c("path",{d:"M31.561 24H14l-1.689 8.105L31.561 24ZM18.983 48H9l1.022-4.907L35.723 32.27l1.663 7.98L18.983 48Z",fill:"#FFA385"}),c("path",{fill:"#FF3",d:"M20.5 10h7v7h-7z"})]}),_t=({onClick:t,label:e,children:n})=>c("button",{className:"TopbarButton",onClick:t,"aria-label":e,children:n}),ni=({onMenuClick:t})=>{let e=$(),n=H(),[a,i]=oe(!1),{getReportHtml:o,saveAsGist:r}=Xn();return c("div",{className:"Topbar",children:[c(_t,{onClick:t,label:"Button that opens and closes the sidebar",children:c(qn,{})}),c("div",{className:"Topbar__logo",children:c(dr,{})}),c("div",{className:"Topbar__title",children:n.title}),o&&c(_t,{onClick:()=>{let s=o(e);tn(e,s)},label:"Button that saves the report as HTML",children:n.save}),r&&c(_t,{onClick:()=>r(e),label:"Button that saves the report to a gist",children:n.dropdownSaveGist}),c("div",{style:{flexGrow:1}}),c(_t,{onClick:()=>i(s=>!s),label:"Button that toggles the help dialog",children:c("div",{className:"Topbar__help-label",children:[c(Wn,{}),n.helpLabel]})}),a?c(ti,{onClose:()=>i(!1)}):null]})};var hr=80,gr=120,nn=({lhr:t,position:e})=>{let n=e==="main"?gr:hr;return c("div",{className:`HeaderThumbnail HeaderThumbnail--${e}`,children:[c(lt,{lhr:t,height:n}),c("div",{className:"HeaderThumbnail__icon",children:c(Dt,{mode:t.gatherMode})})]})},ai=({hashState:t})=>{let e=$(),{index:n}=t,a=e.steps[n],i=e.steps[n-1],o=e.steps[n+1],r=H(),s=st(a.lhr.gatherMode,r);return c("div",{className:"Header",children:[i&&c(M,{children:[e.steps[n-2]&&c("div",{className:"Header__segment"}),c("div",{className:"Header__prev-thumbnail",children:[c(nn,{lhr:i.lhr,position:"prev"}),c("div",{className:"Header__segment"})]}),c("a",{className:"Header__prev-title",href:`#index=${n-1}`,children:i.name})]}),c("div",{className:"Header__current-thumbnail",children:c(nn,{lhr:a.lhr,position:"main"})}),c("div",{className:"Header__current-title",children:[a.name,c("div",{className:"Header__current-description",children:s})]}),o&&c(M,{children:[c("div",{className:"Header__next-thumbnail",children:[c("div",{className:"Header__segment"}),c(nn,{lhr:o.lhr,position:"next"})]}),c("a",{className:"Header__next-title",href:`#index=${n+1}`,children:o.name}),e.steps[n+2]&&c("div",{className:"Header__segment"})]})]})};var ii=()=>{let t=re(Ja);return c("div",{ref:t})};function fr(t){return!t||!t.anchor?null:document.getElementById(t.anchor)}var vr=()=>{let t=ye(),e=nt(null);return tt(()=>{let n=fr(t);n?n.scrollIntoView():e.current&&(e.current.scrollTop=0)},[t]),c("div",{ref:e,className:"Content",children:t?c(M,{children:[c(ai,{hashState:t}),c(ei,{hashState:t})]}):c(Qa,{})})},oi=({flowResult:t,options:e})=>{let[n,a]=oe(!1),i=te(()=>e||{},[e]);return c(Rt.Provider,{value:i,children:c(Nt.Provider,{value:t,children:c(Ea,{children:[c(ii,{}),c("div",{className:be("App",{"App--collapsed":n}),"data-testid":"App",children:[c(ni,{onMenuClick:()=>a(o=>!o)}),c(Ua,{}),c(vr,{})]})]})})})};function ri(t,e,n){e.classList.add("flow-vars","lh-vars","lh-root"),kn(At(oi,{flowResult:t,options:n}),e)}function br(){let t=document.body.querySelector("main");if(!t)throw Error("Container element not found");ri(window.__LIGHTHOUSE_FLOW_JSON__,t,{getReportHtml:()=>document.documentElement.outerHTML})}window.__initLighthouseFlowReport__=br;window.__initLighthouseFlowReport__();})();
2878
2878
  /**
2879
2879
  * @license
2880
2880
  * Copyright 2017 Google LLC