chrome-devtools-frontend
Version:
Chrome DevTools UI
57 lines • 6.35 MB
JavaScript
/**
* Lighthouse v13.3.0 (May 07 2026)
*
* Automated auditing, performance metrics, and best practices for the web.
*
* @homepage https://github.com/GoogleChrome/lighthouse#readme
* @author Copyright 2026 Google LLC
* @license Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/
"use strict";(()=>{var Wq=Object.create;var Fl=Object.defineProperty;var Vq=Object.getOwnPropertyDescriptor;var qq=Object.getOwnPropertyNames;var zq=Object.getPrototypeOf,Xq=Object.prototype.hasOwnProperty;var s=(e,a)=>Fl(e,"name",{value:a,configurable:!0});var _=(e,a)=>()=>(e&&(a=e(e=0)),a);var be=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports),S=(e,a)=>{for(var i in a)Fl(e,i,{get:a[i],enumerable:!0})},x7=(e,a,i,r)=>{if(a&&typeof a=="object"||typeof a=="function")for(let t of qq(a))!Xq.call(e,t)&&t!==i&&Fl(e,t,{get:()=>a[t],enumerable:!(r=Vq(a,t))||r.enumerable});return e};var vi=(e,a,i)=>(i=e!=null?Wq(zq(e)):{},x7(a||!e||!e.__esModule?Fl(i,"default",{value:e,enumerable:!0}):i,e)),Kq=e=>x7(Fl({},"__esModule",{value:!0}),e);function y7(){throw new Error("setTimeout has not been defined")}function w7(){throw new Error("clearTimeout has not been defined")}function v7(e){if(ho===setTimeout)return setTimeout(e,0);if((ho===y7||!ho)&&setTimeout)return ho=setTimeout,setTimeout(e,0);try{return ho(e,0)}catch{try{return ho.call(null,e,0)}catch{return ho.call(this,e,0)}}}function Yq(e){if(mo===clearTimeout)return clearTimeout(e);if((mo===w7||!mo)&&clearTimeout)return mo=clearTimeout,clearTimeout(e);try{return mo(e)}catch{try{return mo.call(null,e)}catch{return mo.call(this,e)}}}function $q(){!In||!Es||(In=!1,Es.length?Ct=Es.concat(Ct):Rh=-1,Ct.length&&S7())}function S7(){if(!In){var e=v7($q);In=!0;for(var a=Ct.length;a;){for(Es=Ct,Ct=[];++Rh<a;)Es&&Es[Rh].run();Rh=-1,a=Ct.length}Es=null,In=!1,Yq(e)}}function Si(e){var a=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)a[i-1]=arguments[i];Ct.push(new T7(e,a)),Ct.length===1&&!In&&v7(S7)}function T7(e,a){this.fun=e,this.array=a}function Cs(){}
function hz(e){throw new Error("process.binding is not supported")}function mz(){return"/"}function uz(e){throw new Error("process.chdir is not supported")}function _z(){return 0}function bz(e){var a=gz.call(An)*.001,i=Math.floor(a),r=Math.floor(a%1*1e9);return e&&(i=i-e[0],r=r-e[1],r<0&&(i--,r+=1e9)),[i,r]}function yz(){var e=new Date,a=e-xz;return a/1e3}var ho,mo,Ct,In,Es,Rh,Jq,Zq,Qq,ez,az,iz,rz,tz,oz,sz,nz,dz,lz,cz,pz,fz,An,gz,xz,Ti,uo=_(()=>{p();s(y7,"defaultSetTimout");s(w7,"defaultClearTimeout");ho=y7,mo=w7;typeof globalThis.setTimeout=="function"&&(ho=setTimeout);typeof globalThis.clearTimeout=="function"&&(mo=clearTimeout);s(v7,"runTimeout");s(Yq,"runClearTimeout");Ct=[],In=!1,Rh=-1;s($q,"cleanUpNextTick");s(S7,"drainQueue");s(Si,"nextTick");s(T7,"Item");T7.prototype.run=function(){this.fun.apply(null,this.array)};Jq="browser",Zq="browser",Qq=!0,ez={},az=[],iz="",rz={},tz={},oz={};s(Cs,"noop");sz=Cs,nz=Cs,dz=Cs,lz=Cs,cz=Cs,pz=Cs,fz=Cs;s(hz,"binding");s(mz,"cwd");s(uz,"chdir");s(
_z,"umask");An=globalThis.performance||{},gz=An.now||An.mozNow||An.msNow||An.oNow||An.webkitNow||function(){return new Date().getTime()};s(bz,"hrtime");xz=new Date;s(yz,"uptime");Ti={nextTick:Si,title:Jq,browser:Qq,env:ez,argv:az,version:iz,versions:rz,on:sz,addListener:nz,once:dz,off:lz,removeListener:cz,removeAllListeners:pz,emit:fz,binding:hz,cwd:mz,chdir:uz,umask:_z,hrtime:bz,platform:Zq,release:tz,config:oz,uptime:yz}});var p=_(()=>{"use strict";uo();globalThis.process=Ti});function R7(){rg=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,i=e.length;a<i;++a)Jr[a]=e[a],mr[e.charCodeAt(a)]=a;mr[45]=62,mr[95]=63}function vz(e){rg||R7();var a,i,r,t,o,n,d=e.length;if(d%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o=e[d-2]==="="?2:e[d-1]==="="?1:0,n=new wz(d*3/4-o),r=o>0?d-4:d;var l=0;for(a=0,i=0;a<r;a+=4,i+=3)t=mr[e.charCodeAt(a)]<<18|mr[e.charCodeAt(a+1)]<<12|mr[e.charCodeAt(a+2)]<<6|mr[e.charCodeAt(a+3)],n[l++]=t>>16&255,n[l++]=t>>8&255,n[l++]=t&255;return o===2?(t=mr[e.charCodeAt(a)]<<2|mr[e.charCodeAt(a+1)]>>4,n[l++]=t&255):o===1&&(t=mr[e.charCodeAt(a)]<<10|mr[e.charCodeAt(a+1)]<<4|mr[e.charCodeAt(a+2)]>>2,n[l++]=t>>8&255,n[l++]=t&255),n}function Sz(e){return Jr[e>>18&63]+Jr[e>>12&63]+Jr[e>>6&63]+Jr[e&63]}function Tz(e,a,i){for(var r,t=[],o=a;o<i;o+=3)r=(e[o]<<16)+(e[o+1]<<8)+e[o+2],t.push(Sz(r));return t.join("")}function E7(e){rg||R7();for(var a,i=e.length,r=i%3,t="",o=[],n=16383,d=0,l=i-r;d<l;d+=
n)o.push(Tz(e,d,d+n>l?l:d+n));return r===1?(a=e[i-1],t+=Jr[a>>2],t+=Jr[a<<4&63],t+="=="):r===2&&(a=(e[i-2]<<8)+e[i-1],t+=Jr[a>>10],t+=Jr[a>>4&63],t+=Jr[a<<2&63],t+="="),o.push(t),o.join("")}function Ah(e,a,i,r,t){var o,n,d=t*8-r-1,l=(1<<d)-1,c=l>>1,f=-7,h=i?t-1:0,m=i?-1:1,u=e[a+h];for(h+=m,o=u&(1<<-f)-1,u>>=-f,f+=d;f>0;o=o*256+e[a+h],h+=m,f-=8);for(n=o&(1<<-f)-1,o>>=-f,f+=r;f>0;n=n*256+e[a+h],h+=m,f-=8);if(o===0)o=1-c;else{if(o===l)return n?NaN:(u?-1:1)*(1/0);n=n+Math.pow(2,r),o=o-c}return(u?-1:1)*n*Math.pow(2,o-r)}function D7(e,a,i,r,t,o){var n,d,l,c=o*8-t-1,f=(1<<c)-1,h=f>>1,m=t===23?Math.pow(2,-24)-Math.pow(2,-77):0,u=r?0:o-1,g=r?1:-1,x=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(d=isNaN(a)?1:0,n=f):(n=Math.floor(Math.log(a)/Math.LN2),a*(l=Math.pow(2,-n))<1&&(n--,l*=2),n+h>=1?a+=m/l:a+=m*Math.pow(2,1-h),a*l>=2&&(n++,l/=2),n+h>=f?(d=0,n=f):n+h>=1?(d=(a*l-1)*Math.pow(2,t),n=n+h):(d=a*Math.pow(2,h-1)*Math.pow(2,t),n=0));t>=8;e[i+u]=d&255,u+=g,d/=256,t-=8);for(n=n<<t|d,c+=
t;c>0;e[i+u]=n&255,u+=g,n/=256,c-=8);e[i+u-g]|=x*128}function Dh(){return H.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function kt(e,a){if(Dh()<a)throw new RangeError("Invalid typed array length");return H.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(a),e.__proto__=H.prototype):(e===null&&(e=new H(a)),e.length=a),e}function H(e,a,i){if(!H.TYPED_ARRAY_SUPPORT&&!(this instanceof H))return new H(e,a,i);if(typeof e=="number"){if(typeof a=="string")throw new Error("If encoding is specified then the first argument must be a string");return tg(this,e)}return A7(this,e,a,i)}function A7(e,a,i,r){if(typeof a=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&a instanceof ArrayBuffer?Dz(e,a,i,r):typeof a=="string"?Rz(e,a,i):Mz(e,a)}function I7(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function kz(e,a,i,r){return I7(a),a<=0?kt(e,a):i!==void 0?typeof r==
"string"?kt(e,a).fill(i,r):kt(e,a).fill(i):kt(e,a)}function tg(e,a){if(I7(a),e=kt(e,a<0?0:og(a)|0),!H.TYPED_ARRAY_SUPPORT)for(var i=0;i<a;++i)e[i]=0;return e}function Rz(e,a,i){if((typeof i!="string"||i==="")&&(i="utf8"),!H.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var r=P7(a,i)|0;e=kt(e,r);var t=e.write(a,i);return t!==r&&(e=e.slice(0,t)),e}function ig(e,a){var i=a.length<0?0:og(a.length)|0;e=kt(e,i);for(var r=0;r<i;r+=1)e[r]=a[r]&255;return e}function Dz(e,a,i,r){if(a.byteLength,i<0||a.byteLength<i)throw new RangeError("'offset' is out of bounds");if(a.byteLength<i+(r||0))throw new RangeError("'length' is out of bounds");return i===void 0&&r===void 0?a=new Uint8Array(a):r===void 0?a=new Uint8Array(a,i):a=new Uint8Array(a,i,r),H.TYPED_ARRAY_SUPPORT?(e=a,e.__proto__=H.prototype):e=ig(e,a),e}function Mz(e,a){if(Zr(a)){var i=og(a.length)|0;return e=kt(e,i),e.length===0||a.copy(e,0,0,i),e}if(a){if(typeof ArrayBuffer<"u"&&a.buffer instanceof ArrayBuffer||
"length"in a)return typeof a.length!="number"||Yz(a.length)?kt(e,0):ig(e,a);if(a.type==="Buffer"&&M7(a.data))return ig(e,a.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function og(e){if(e>=Dh())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Dh().toString(16)+" bytes");return e|0}function Zr(e){return!!(e!=null&&e._isBuffer)}function P7(e,a){if(Zr(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var i=e.length;if(i===0)return 0;for(var r=!1;;)switch(a){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return Mh(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return B7(e).length;default:if(r)return Mh(e).length;a=(""+a).toLowerCase(),r=!0}}function Az(e,a,i){var r=!1;
if((a===void 0||a<0)&&(a=0),a>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,a>>>=0,i<=a))return"";for(e||(e="utf8");;)switch(e){case"hex":return Hz(this,a,i);case"utf8":case"utf-8":return N7(this,a,i);case"ascii":return Gz(this,a,i);case"latin1":case"binary":return Bz(this,a,i);case"base64":return Fz(this,a,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Uz(this,a,i);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function ks(e,a,i){var r=e[a];e[a]=e[i],e[i]=r}function L7(e,a,i,r,t){if(e.length===0)return-1;if(typeof i=="string"?(r=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=t?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(t)return-1;i=e.length-1}else if(i<0)if(t)i=0;else return-1;if(typeof a=="string"&&(a=H.from(a,r)),Zr(a))return a.length===0?-1:C7(e,a,i,r,t);if(typeof a=="number")return a=a&255,H.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?
t?Uint8Array.prototype.indexOf.call(e,a,i):Uint8Array.prototype.lastIndexOf.call(e,a,i):C7(e,[a],i,r,t);throw new TypeError("val must be string, number or Buffer")}function C7(e,a,i,r,t){var o=1,n=e.length,d=a.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||a.length<2)return-1;o=2,n/=2,d/=2,i/=2}function l(u,g){return o===1?u[g]:u.readUInt16BE(g*o)}s(l,"read");var c;if(t){var f=-1;for(c=i;c<n;c++)if(l(e,c)===l(a,f===-1?0:c-f)){if(f===-1&&(f=c),c-f+1===d)return f*o}else f!==-1&&(c-=c-f),f=-1}else for(i+d>n&&(i=n-d),c=i;c>=0;c--){for(var h=!0,m=0;m<d;m++)if(l(e,c+m)!==l(a,m)){h=!1;break}if(h)return c}return-1}function Iz(e,a,i,r){i=Number(i)||0;var t=e.length-i;r?(r=Number(r),r>t&&(r=t)):r=t;var o=a.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var n=0;n<r;++n){var d=parseInt(a.substr(n*2,2),16);if(isNaN(d))return n;e[i+n]=d}return n}function Pz(e,a,i,r){return Lh(Mh(a,e.length-i),e,
i,r)}function O7(e,a,i,r){return Lh(Xz(a),e,i,r)}function Lz(e,a,i,r){return O7(e,a,i,r)}function Oz(e,a,i,r){return Lh(B7(a),e,i,r)}function Nz(e,a,i,r){return Lh(Kz(a,e.length-i),e,i,r)}function Fz(e,a,i){return a===0&&i===e.length?E7(e):E7(e.slice(a,i))}function N7(e,a,i){i=Math.min(e.length,i);for(var r=[],t=a;t<i;){var o=e[t],n=null,d=o>239?4:o>223?3:o>191?2:1;if(t+d<=i){var l,c,f,h;switch(d){case 1:o<128&&(n=o);break;case 2:l=e[t+1],(l&192)===128&&(h=(o&31)<<6|l&63,h>127&&(n=h));break;case 3:l=e[t+1],c=e[t+2],(l&192)===128&&(c&192)===128&&(h=(o&15)<<12|(l&63)<<6|c&63,h>2047&&(h<55296||h>57343)&&(n=h));break;case 4:l=e[t+1],c=e[t+2],f=e[t+3],(l&192)===128&&(c&192)===128&&(f&192)===128&&(h=(o&15)<<18|(l&63)<<12|(c&63)<<6|f&63,h>65535&&h<1114112&&(n=h))}}n===null?(n=65533,d=1):n>65535&&(n-=65536,r.push(n>>>10&1023|55296),n=56320|n&1023),r.push(n),t+=d}return jz(r)}function jz(e){var a=e.length;if(a<=k7)return String.fromCharCode.apply(String,e);for(var i="",r=0;r<a;)i+=String.fromCharCode.
apply(String,e.slice(r,r+=k7));return i}function Gz(e,a,i){var r="";i=Math.min(e.length,i);for(var t=a;t<i;++t)r+=String.fromCharCode(e[t]&127);return r}function Bz(e,a,i){var r="";i=Math.min(e.length,i);for(var t=a;t<i;++t)r+=String.fromCharCode(e[t]);return r}function Hz(e,a,i){var r=e.length;(!a||a<0)&&(a=0),(!i||i<0||i>r)&&(i=r);for(var t="",o=a;o<i;++o)t+=zz(e[o]);return t}function Uz(e,a,i){for(var r=e.slice(a,i),t="",o=0;o<r.length;o+=2)t+=String.fromCharCode(r[o]+r[o+1]*256);return t}function si(e,a,i){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+a>i)throw new RangeError("Trying to access beyond buffer length")}function Xi(e,a,i,r,t,o){if(!Zr(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(a>t||a<o)throw new RangeError('"value" argument is out of bounds');if(i+r>e.length)throw new RangeError("Index out of range")}function Ih(e,a,i,r){a<0&&(a=65535+a+1);for(var t=0,o=Math.min(e.length-i,2);t<o;++t)e[i+t]=(a&255<<8*(r?t:1-t))>>>(r?t:1-t)*
8}function Ph(e,a,i,r){a<0&&(a=4294967295+a+1);for(var t=0,o=Math.min(e.length-i,4);t<o;++t)e[i+t]=a>>>(r?t:3-t)*8&255}function F7(e,a,i,r,t,o){if(i+r>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function j7(e,a,i,r,t){return t||F7(e,a,i,4),D7(e,a,i,r,23,4),i+4}function G7(e,a,i,r,t){return t||F7(e,a,i,8),D7(e,a,i,r,52,8),i+8}function Vz(e){if(e=qz(e).replace(Wz,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function qz(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function zz(e){return e<16?"0"+e.toString(16):e.toString(16)}function Mh(e,a){a=a||1/0;for(var i,r=e.length,t=null,o=[],n=0;n<r;++n){if(i=e.charCodeAt(n),i>55295&&i<57344){if(!t){if(i>56319){(a-=3)>-1&&o.push(239,191,189);continue}else if(n+1===r){(a-=3)>-1&&o.push(239,191,189);continue}t=i;continue}if(i<56320){(a-=3)>-1&&o.push(239,191,189),t=i;continue}i=(t-55296<<10|i-56320)+65536}else t&&(a-=3)>-1&&o.push(239,191,189);if(t=null,i<128){if((a-=1)<
0)break;o.push(i)}else if(i<2048){if((a-=2)<0)break;o.push(i>>6|192,i&63|128)}else if(i<65536){if((a-=3)<0)break;o.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((a-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return o}function Xz(e){for(var a=[],i=0;i<e.length;++i)a.push(e.charCodeAt(i)&255);return a}function Kz(e,a){for(var i,r,t,o=[],n=0;n<e.length&&!((a-=2)<0);++n)i=e.charCodeAt(n),r=i>>8,t=i%256,o.push(t),o.push(r);return o}function B7(e){return vz(Vz(e))}function Lh(e,a,i,r){for(var t=0;t<r&&!(t+i>=a.length||t>=e.length);++t)a[t+i]=e[t];return t}function Yz(e){return e!==e}function $z(e){return e!=null&&(!!e._isBuffer||H7(e)||Jz(e))}function H7(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Jz(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&H7(e.slice(0,0))}var Jr,mr,wz,rg,Ez,M7,Cz,D0e,k7,Wz,jl=_(()=>{p();Jr=[],mr=[],wz=typeof Uint8Array<
"u"?Uint8Array:Array,rg=!1;s(R7,"init");s(vz,"toByteArray");s(Sz,"tripletToBase64");s(Tz,"encodeChunk");s(E7,"fromByteArray");s(Ah,"read");s(D7,"write");Ez={}.toString,M7=Array.isArray||function(e){return Ez.call(e)=="[object Array]"};Cz=50;H.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;D0e=Dh();s(Dh,"kMaxLength");s(kt,"createBuffer");s(H,"Buffer");H.poolSize=8192;H._augment=function(e){return e.__proto__=H.prototype,e};s(A7,"from");H.from=function(e,a,i){return A7(null,e,a,i)};H.TYPED_ARRAY_SUPPORT&&(H.prototype.__proto__=Uint8Array.prototype,H.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&H[Symbol.species]);s(I7,"assertSize");s(kz,"alloc");H.alloc=function(e,a,i){return kz(null,e,a,i)};s(tg,"allocUnsafe");H.allocUnsafe=function(e){return tg(null,e)};H.allocUnsafeSlow=function(e){return tg(null,e)};s(Rz,"fromString");s(ig,"fromArrayLike");s(Dz,"fromArrayBuffer");s(Mz,"fromObject");s(og,"checked");H.isBuffer=$z;s(Zr,"internalIs\
Buffer");H.compare=s(function(a,i){if(!Zr(a)||!Zr(i))throw new TypeError("Arguments must be Buffers");if(a===i)return 0;for(var r=a.length,t=i.length,o=0,n=Math.min(r,t);o<n;++o)if(a[o]!==i[o]){r=a[o],t=i[o];break}return r<t?-1:t<r?1:0},"compare");H.isEncoding=s(function(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},"isEncoding");H.concat=s(function(a,i){if(!M7(a))throw new TypeError('"list" argument must be an Array of Buffers');if(a.length===0)return H.alloc(0);var r;if(i===void 0)for(i=0,r=0;r<a.length;++r)i+=a[r].length;var t=H.allocUnsafe(i),o=0;for(r=0;r<a.length;++r){var n=a[r];if(!Zr(n))throw new TypeError('"list" argument must be an Array of Buffers');n.copy(t,o),o+=n.length}return t},"concat");s(P7,"byteLength");H.byteLength=P7;s(Az,"slowToString");H.prototype._isBuffer=!0;s(ks,"swap");H.prototype.swap16=s(function(){var a=this.
length;if(a%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<a;i+=2)ks(this,i,i+1);return this},"swap16");H.prototype.swap32=s(function(){var a=this.length;if(a%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<a;i+=4)ks(this,i,i+3),ks(this,i+1,i+2);return this},"swap32");H.prototype.swap64=s(function(){var a=this.length;if(a%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<a;i+=8)ks(this,i,i+7),ks(this,i+1,i+6),ks(this,i+2,i+5),ks(this,i+3,i+4);return this},"swap64");H.prototype.toString=s(function(){var a=this.length|0;return a===0?"":arguments.length===0?N7(this,0,a):Az.apply(this,arguments)},"toString");H.prototype.equals=s(function(a){if(!Zr(a))throw new TypeError("Argument must be a Buffer");return this===a?!0:H.compare(this,a)===0},"equals");H.prototype.inspect=s(function(){var a="",i=Cz;return this.length>0&&(a=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>
i&&(a+=" ... ")),"<Buffer "+a+">"},"inspect");H.prototype.compare=s(function(a,i,r,t,o){if(!Zr(a))throw new TypeError("Argument must be a Buffer");if(i===void 0&&(i=0),r===void 0&&(r=a?a.length:0),t===void 0&&(t=0),o===void 0&&(o=this.length),i<0||r>a.length||t<0||o>this.length)throw new RangeError("out of range index");if(t>=o&&i>=r)return 0;if(t>=o)return-1;if(i>=r)return 1;if(i>>>=0,r>>>=0,t>>>=0,o>>>=0,this===a)return 0;for(var n=o-t,d=r-i,l=Math.min(n,d),c=this.slice(t,o),f=a.slice(i,r),h=0;h<l;++h)if(c[h]!==f[h]){n=c[h],d=f[h];break}return n<d?-1:d<n?1:0},"compare");s(L7,"bidirectionalIndexOf");s(C7,"arrayIndexOf");H.prototype.includes=s(function(a,i,r){return this.indexOf(a,i,r)!==-1},"includes");H.prototype.indexOf=s(function(a,i,r){return L7(this,a,i,r,!0)},"indexOf");H.prototype.lastIndexOf=s(function(a,i,r){return L7(this,a,i,r,!1)},"lastIndexOf");s(Iz,"hexWrite");s(Pz,"utf8Write");s(O7,"asciiWrite");s(Lz,"latin1Write");s(Oz,"base64Write");s(Nz,"ucs2Write");H.prototype.write=
s(function(a,i,r,t){if(i===void 0)t="utf8",r=this.length,i=0;else if(r===void 0&&typeof i=="string")t=i,r=this.length,i=0;else if(isFinite(i))i=i|0,isFinite(r)?(r=r|0,t===void 0&&(t="utf8")):(t=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-i;if((r===void 0||r>o)&&(r=o),a.length>0&&(r<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");t||(t="utf8");for(var n=!1;;)switch(t){case"hex":return Iz(this,a,i,r);case"utf8":case"utf-8":return Pz(this,a,i,r);case"ascii":return O7(this,a,i,r);case"latin1":case"binary":return Lz(this,a,i,r);case"base64":return Oz(this,a,i,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Nz(this,a,i,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(""+t).toLowerCase(),n=!0}},"write");H.prototype.toJSON=s(function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},"toJSON");s(Fz,"base64Slice");s(N7,"utf8\
Slice");k7=4096;s(jz,"decodeCodePointsArray");s(Gz,"asciiSlice");s(Bz,"latin1Slice");s(Hz,"hexSlice");s(Uz,"utf16leSlice");H.prototype.slice=s(function(a,i){var r=this.length;a=~~a,i=i===void 0?r:~~i,a<0?(a+=r,a<0&&(a=0)):a>r&&(a=r),i<0?(i+=r,i<0&&(i=0)):i>r&&(i=r),i<a&&(i=a);var t;if(H.TYPED_ARRAY_SUPPORT)t=this.subarray(a,i),t.__proto__=H.prototype;else{var o=i-a;t=new H(o,void 0);for(var n=0;n<o;++n)t[n]=this[n+a]}return t},"slice");s(si,"checkOffset");H.prototype.readUIntLE=s(function(a,i,r){a=a|0,i=i|0,r||si(a,i,this.length);for(var t=this[a],o=1,n=0;++n<i&&(o*=256);)t+=this[a+n]*o;return t},"readUIntLE");H.prototype.readUIntBE=s(function(a,i,r){a=a|0,i=i|0,r||si(a,i,this.length);for(var t=this[a+--i],o=1;i>0&&(o*=256);)t+=this[a+--i]*o;return t},"readUIntBE");H.prototype.readUInt8=s(function(a,i){return i||si(a,1,this.length),this[a]},"readUInt8");H.prototype.readUInt16LE=s(function(a,i){return i||si(a,2,this.length),this[a]|this[a+1]<<8},"readUInt16LE");H.prototype.readUInt16BE=
s(function(a,i){return i||si(a,2,this.length),this[a]<<8|this[a+1]},"readUInt16BE");H.prototype.readUInt32LE=s(function(a,i){return i||si(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+this[a+3]*16777216},"readUInt32LE");H.prototype.readUInt32BE=s(function(a,i){return i||si(a,4,this.length),this[a]*16777216+(this[a+1]<<16|this[a+2]<<8|this[a+3])},"readUInt32BE");H.prototype.readIntLE=s(function(a,i,r){a=a|0,i=i|0,r||si(a,i,this.length);for(var t=this[a],o=1,n=0;++n<i&&(o*=256);)t+=this[a+n]*o;return o*=128,t>=o&&(t-=Math.pow(2,8*i)),t},"readIntLE");H.prototype.readIntBE=s(function(a,i,r){a=a|0,i=i|0,r||si(a,i,this.length);for(var t=i,o=1,n=this[a+--t];t>0&&(o*=256);)n+=this[a+--t]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*i)),n},"readIntBE");H.prototype.readInt8=s(function(a,i){return i||si(a,1,this.length),this[a]&128?(255-this[a]+1)*-1:this[a]},"readInt8");H.prototype.readInt16LE=s(function(a,i){i||si(a,2,this.length);var r=this[a]|this[a+1]<<8;return r&32768?r|4294901760:r},"rea\
dInt16LE");H.prototype.readInt16BE=s(function(a,i){i||si(a,2,this.length);var r=this[a+1]|this[a]<<8;return r&32768?r|4294901760:r},"readInt16BE");H.prototype.readInt32LE=s(function(a,i){return i||si(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},"readInt32LE");H.prototype.readInt32BE=s(function(a,i){return i||si(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},"readInt32BE");H.prototype.readFloatLE=s(function(a,i){return i||si(a,4,this.length),Ah(this,a,!0,23,4)},"readFloatLE");H.prototype.readFloatBE=s(function(a,i){return i||si(a,4,this.length),Ah(this,a,!1,23,4)},"readFloatBE");H.prototype.readDoubleLE=s(function(a,i){return i||si(a,8,this.length),Ah(this,a,!0,52,8)},"readDoubleLE");H.prototype.readDoubleBE=s(function(a,i){return i||si(a,8,this.length),Ah(this,a,!1,52,8)},"readDoubleBE");s(Xi,"checkInt");H.prototype.writeUIntLE=s(function(a,i,r,t){if(a=+a,i=i|0,r=r|0,!t){var o=Math.pow(2,8*r)-1;Xi(this,a,i,r,o,0)}var n=1,d=0;for(this[i]=a&255;++d<
r&&(n*=256);)this[i+d]=a/n&255;return i+r},"writeUIntLE");H.prototype.writeUIntBE=s(function(a,i,r,t){if(a=+a,i=i|0,r=r|0,!t){var o=Math.pow(2,8*r)-1;Xi(this,a,i,r,o,0)}var n=r-1,d=1;for(this[i+n]=a&255;--n>=0&&(d*=256);)this[i+n]=a/d&255;return i+r},"writeUIntBE");H.prototype.writeUInt8=s(function(a,i,r){return a=+a,i=i|0,r||Xi(this,a,i,1,255,0),H.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),this[i]=a&255,i+1},"writeUInt8");s(Ih,"objectWriteUInt16");H.prototype.writeUInt16LE=s(function(a,i,r){return a=+a,i=i|0,r||Xi(this,a,i,2,65535,0),H.TYPED_ARRAY_SUPPORT?(this[i]=a&255,this[i+1]=a>>>8):Ih(this,a,i,!0),i+2},"writeUInt16LE");H.prototype.writeUInt16BE=s(function(a,i,r){return a=+a,i=i|0,r||Xi(this,a,i,2,65535,0),H.TYPED_ARRAY_SUPPORT?(this[i]=a>>>8,this[i+1]=a&255):Ih(this,a,i,!1),i+2},"writeUInt16BE");s(Ph,"objectWriteUInt32");H.prototype.writeUInt32LE=s(function(a,i,r){return a=+a,i=i|0,r||Xi(this,a,i,4,4294967295,0),H.TYPED_ARRAY_SUPPORT?(this[i+3]=a>>>24,this[i+2]=a>>>16,this[i+1]=a>>>8,
this[i]=a&255):Ph(this,a,i,!0),i+4},"writeUInt32LE");H.prototype.writeUInt32BE=s(function(a,i,r){return a=+a,i=i|0,r||Xi(this,a,i,4,4294967295,0),H.TYPED_ARRAY_SUPPORT?(this[i]=a>>>24,this[i+1]=a>>>16,this[i+2]=a>>>8,this[i+3]=a&255):Ph(this,a,i,!1),i+4},"writeUInt32BE");H.prototype.writeIntLE=s(function(a,i,r,t){if(a=+a,i=i|0,!t){var o=Math.pow(2,8*r-1);Xi(this,a,i,r,o-1,-o)}var n=0,d=1,l=0;for(this[i]=a&255;++n<r&&(d*=256);)a<0&&l===0&&this[i+n-1]!==0&&(l=1),this[i+n]=(a/d>>0)-l&255;return i+r},"writeIntLE");H.prototype.writeIntBE=s(function(a,i,r,t){if(a=+a,i=i|0,!t){var o=Math.pow(2,8*r-1);Xi(this,a,i,r,o-1,-o)}var n=r-1,d=1,l=0;for(this[i+n]=a&255;--n>=0&&(d*=256);)a<0&&l===0&&this[i+n+1]!==0&&(l=1),this[i+n]=(a/d>>0)-l&255;return i+r},"writeIntBE");H.prototype.writeInt8=s(function(a,i,r){return a=+a,i=i|0,r||Xi(this,a,i,1,127,-128),H.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),a<0&&(a=255+a+1),this[i]=a&255,i+1},"writeInt8");H.prototype.writeInt16LE=s(function(a,i,r){return a=+a,i=i|0,
r||Xi(this,a,i,2,32767,-32768),H.TYPED_ARRAY_SUPPORT?(this[i]=a&255,this[i+1]=a>>>8):Ih(this,a,i,!0),i+2},"writeInt16LE");H.prototype.writeInt16BE=s(function(a,i,r){return a=+a,i=i|0,r||Xi(this,a,i,2,32767,-32768),H.TYPED_ARRAY_SUPPORT?(this[i]=a>>>8,this[i+1]=a&255):Ih(this,a,i,!1),i+2},"writeInt16BE");H.prototype.writeInt32LE=s(function(a,i,r){return a=+a,i=i|0,r||Xi(this,a,i,4,2147483647,-2147483648),H.TYPED_ARRAY_SUPPORT?(this[i]=a&255,this[i+1]=a>>>8,this[i+2]=a>>>16,this[i+3]=a>>>24):Ph(this,a,i,!0),i+4},"writeInt32LE");H.prototype.writeInt32BE=s(function(a,i,r){return a=+a,i=i|0,r||Xi(this,a,i,4,2147483647,-2147483648),a<0&&(a=4294967295+a+1),H.TYPED_ARRAY_SUPPORT?(this[i]=a>>>24,this[i+1]=a>>>16,this[i+2]=a>>>8,this[i+3]=a&255):Ph(this,a,i,!1),i+4},"writeInt32BE");s(F7,"checkIEEE754");s(j7,"writeFloat");H.prototype.writeFloatLE=s(function(a,i,r){return j7(this,a,i,!0,r)},"writeFloatLE");H.prototype.writeFloatBE=s(function(a,i,r){return j7(this,a,i,!1,r)},"writeFloatBE");s(G7,"w\
riteDouble");H.prototype.writeDoubleLE=s(function(a,i,r){return G7(this,a,i,!0,r)},"writeDoubleLE");H.prototype.writeDoubleBE=s(function(a,i,r){return G7(this,a,i,!1,r)},"writeDoubleBE");H.prototype.copy=s(function(a,i,r,t){if(r||(r=0),!t&&t!==0&&(t=this.length),i>=a.length&&(i=a.length),i||(i=0),t>0&&t<r&&(t=r),t===r||a.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(t<0)throw new RangeError("sourceEnd out of bounds");t>this.length&&(t=this.length),a.length-i<t-r&&(t=a.length-i+r);var o=t-r,n;if(this===a&&r<i&&i<t)for(n=o-1;n>=0;--n)a[n+i]=this[n+r];else if(o<1e3||!H.TYPED_ARRAY_SUPPORT)for(n=0;n<o;++n)a[n+i]=this[n+r];else Uint8Array.prototype.set.call(a,this.subarray(r,r+o),i);return o},"copy");H.prototype.fill=s(function(a,i,r,t){if(typeof a=="string"){if(typeof i=="string"?(t=i,i=0,r=this.length):typeof r=="string"&&(t=r,r=this.length),a.length===1){var o=a.charCodeAt(
0);o<256&&(a=o)}if(t!==void 0&&typeof t!="string")throw new TypeError("encoding must be a string");if(typeof t=="string"&&!H.isEncoding(t))throw new TypeError("Unknown encoding: "+t)}else typeof a=="number"&&(a=a&255);if(i<0||this.length<i||this.length<r)throw new RangeError("Out of range index");if(r<=i)return this;i=i>>>0,r=r===void 0?this.length:r>>>0,a||(a=0);var n;if(typeof a=="number")for(n=i;n<r;++n)this[n]=a;else{var d=Zr(a)?a:Mh(new H(a,t).toString()),l=d.length;for(n=0;n<r-i;++n)this[n+i]=d[n%l]}return this},"fill");Wz=/[^+\/0-9A-Za-z-_]/g;s(Vz,"base64clean");s(qz,"stringtrim");s(zz,"toHex");s(Mh,"utf8ToBytes");s(Xz,"asciiToBytes");s(Kz,"utf16leToBytes");s(B7,"base64ToBytes");s(Lh,"blitBuffer");s(Yz,"isnan");s($z,"isBuffer");s(H7,"isFastBuffer");s(Jz,"isSlowBuffer")});function _o(){}function Ye(){Ye.init.call(this)}function U7(e){return e._maxListeners===void 0?Ye.defaultMaxListeners:e._maxListeners}function Zz(e,a,i){if(a)e.call(i);else for(var r=e.length,t=Gl(e,r),o=0;o<r;++o)t[o].call(i)}function Qz(e,a,i,r){if(a)e.call(i,r);else for(var t=e.length,o=Gl(e,t),n=0;n<t;++n)o[n].call(i,r)}function eX(e,a,i,r,t){if(a)e.call(i,r,t);else for(var o=e.length,n=Gl(e,o),d=0;d<o;++d)n[d].call(i,r,t)}function aX(e,a,i,r,t,o){if(a)e.call(i,r,t,o);else for(var n=e.length,d=Gl(e,n),l=0;l<n;++l)d[l].call(i,r,t,o)}function iX(e,a,i,r){if(a)e.apply(i,r);else for(var t=e.length,o=Gl(e,t),n=0;n<t;++n)o[n].apply(i,r)}function W7(e,a,i,r){var t,o,n;if(typeof i!="function")throw new TypeError('"listener" argument must be a function');if(o=e._events,o?(o.newListener&&(e.emit("newListener",a,i.listener?i.listener:i),o=e._events),n=o[a]):(o=e._events=new _o,e._eventsCount=0),!n)n=o[a]=i,++e._eventsCount;else if(typeof n=="function"?n=o[a]=r?[i,n]:[n,i]:r?n.unshift(i):n.push(
i),!n.warned&&(t=U7(e),t&&t>0&&n.length>t)){n.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+n.length+" "+a+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=e,d.type=a,d.count=n.length,rX(d)}return e}function rX(e){typeof console.warn=="function"?console.warn(e):console.log(e)}function V7(e,a,i){var r=!1;function t(){e.removeListener(a,t),r||(r=!0,i.apply(e,arguments))}return s(t,"g"),t.listener=i,t}function q7(e){var a=this._events;if(a){var i=a[e];if(typeof i=="function")return 1;if(i)return i.length}return 0}function tX(e,a){for(var i=a,r=i+1,t=e.length;r<t;i+=1,r+=1)e[i]=e[r];e.pop()}function Gl(e,a){for(var i=new Array(a);a--;)i[a]=e[a];return i}function oX(e){for(var a=new Array(e.length),i=0;i<a.length;++i)a[i]=e[i].listener||e[i];return a}var sg,ur,Rt=_(()=>{"use strict";p();s(_o,"EventHandlers");_o.prototype=Object.create(null);s(Ye,"EventEmitter");ur=Ye;Ye.EventEmitter=Ye;Ye.usingDomains=
!1;Ye.prototype.domain=void 0;Ye.prototype._events=void 0;Ye.prototype._maxListeners=void 0;Ye.defaultMaxListeners=10;Ye.init=function(){this.domain=null,Ye.usingDomains&&sg.active&&!(this instanceof sg.Domain)&&(this.domain=sg.active),(!this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=new _o,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ye.prototype.setMaxListeners=s(function(a){if(typeof a!="number"||a<0||isNaN(a))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=a,this},"setMaxListeners");s(U7,"$getMaxListeners");Ye.prototype.getMaxListeners=s(function(){return U7(this)},"getMaxListeners");s(Zz,"emitNone");s(Qz,"emitOne");s(eX,"emitTwo");s(aX,"emitThree");s(iX,"emitMany");Ye.prototype.emit=s(function(a){var i,r,t,o,n,d,l,c=!1,f=a==="error";if(d=this._events,d)f=f&&d.error==null;else if(!f)return!1;if(l=this.domain,f){if(i=arguments[1],l)i||(i=new Error('Uncaught, unspecified "error" event')),
i.domainEmitter=this,i.domain=l,i.domainThrown=!1,l.emit("error",i);else{if(i instanceof Error)throw i;var h=new Error('Uncaught, unspecified "error" event. ('+i+")");throw h.context=i,h}return!1}if(r=d[a],!r)return!1;var m=typeof r=="function";switch(t=arguments.length,t){case 1:Zz(r,m,this);break;case 2:Qz(r,m,this,arguments[1]);break;case 3:eX(r,m,this,arguments[1],arguments[2]);break;case 4:aX(r,m,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(t-1),n=1;n<t;n++)o[n-1]=arguments[n];iX(r,m,this,o)}return c&&l.exit(),!0},"emit");s(W7,"_addListener");s(rX,"emitWarning");Ye.prototype.addListener=s(function(a,i){return W7(this,a,i,!1)},"addListener");Ye.prototype.on=Ye.prototype.addListener;Ye.prototype.prependListener=s(function(a,i){return W7(this,a,i,!0)},"prependListener");s(V7,"_onceWrap");Ye.prototype.once=s(function(a,i){if(typeof i!="function")throw new TypeError('"listener" argument must be a function');return this.on(a,V7(this,a,i)),this},"once");Ye.prototype.
prependOnceListener=s(function(a,i){if(typeof i!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(a,V7(this,a,i)),this},"prependOnceListener");Ye.prototype.removeListener=s(function(a,i){var r,t,o,n,d;if(typeof i!="function")throw new TypeError('"listener" argument must be a function');if(t=this._events,!t)return this;if(r=t[a],!r)return this;if(r===i||r.listener&&r.listener===i)--this._eventsCount===0?this._events=new _o:(delete t[a],t.removeListener&&this.emit("removeListener",a,r.listener||i));else if(typeof r!="function"){for(o=-1,n=r.length;n-- >0;)if(r[n]===i||r[n].listener&&r[n].listener===i){d=r[n].listener,o=n;break}if(o<0)return this;if(r.length===1){if(r[0]=void 0,--this._eventsCount===0)return this._events=new _o,this;delete t[a]}else tX(r,o);t.removeListener&&this.emit("removeListener",a,d||i)}return this},"removeListener");Ye.prototype.off=function(e,a){return this.removeListener(e,a)};Ye.prototype.removeAllListeners=s(function(a){
var i,r;if(r=this._events,!r)return this;if(!r.removeListener)return arguments.length===0?(this._events=new _o,this._eventsCount=0):r[a]&&(--this._eventsCount===0?this._events=new _o:delete r[a]),this;if(arguments.length===0){for(var t=Object.keys(r),o=0,n;o<t.length;++o)n=t[o],n!=="removeListener"&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=new _o,this._eventsCount=0,this}if(i=r[a],typeof i=="function")this.removeListener(a,i);else if(i)do this.removeListener(a,i[i.length-1]);while(i[0]);return this},"removeAllListeners");Ye.prototype.listeners=s(function(a){var i,r,t=this._events;return t?(i=t[a],i?typeof i=="function"?r=[i.listener||i]:r=oX(i):r=[]):r=[],r},"listeners");Ye.listenerCount=function(e,a){return typeof e.listenerCount=="function"?e.listenerCount(a):q7.call(e,a)};Ye.prototype.listenerCount=q7;s(q7,"listenerCount");Ye.prototype.eventNames=s(function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]},"eventNames");s(
tX,"spliceOne");s(Gl,"arrayClone");s(oX,"unwrapListeners")});var X7=be((N0e,z7)=>{p();var Pn=1e3,Ln=Pn*60,On=Ln*60,Rs=On*24,sX=Rs*7,nX=Rs*365.25;z7.exports=function(e,a){a=a||{};var i=typeof e;if(i==="string"&&e.length>0)return dX(e);if(i==="number"&&isFinite(e))return a.long?cX(e):lX(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function dX(e){if(e=String(e),!(e.length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(a){var i=parseFloat(a[1]),r=(a[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return i*nX;case"weeks":case"week":case"w":return i*sX;case"days":case"day":case"d":return i*Rs;case"hours":case"hour":case"hrs":case"hr":case"h":return i*On;case"minutes":case"minute":case"mins":case"min":case"m":return i*Ln;case"seconds":case"second":case"secs":case"sec":case"s":return i*Pn;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:
return}}}}s(dX,"parse");function lX(e){var a=Math.abs(e);return a>=Rs?Math.round(e/Rs)+"d":a>=On?Math.round(e/On)+"h":a>=Ln?Math.round(e/Ln)+"m":a>=Pn?Math.round(e/Pn)+"s":e+"ms"}s(lX,"fmtShort");function cX(e){var a=Math.abs(e);return a>=Rs?Oh(e,a,Rs,"day"):a>=On?Oh(e,a,On,"hour"):a>=Ln?Oh(e,a,Ln,"minute"):a>=Pn?Oh(e,a,Pn,"second"):e+" ms"}s(cX,"fmtLong");function Oh(e,a,i,r){var t=a>=i*1.5;return Math.round(e/i)+" "+r+(t?"s":"")}s(Oh,"plural")});var Y7=be((G0e,K7)=>{p();function pX(e){i.debug=i,i.default=i,i.coerce=l,i.disable=o,i.enable=t,i.enabled=n,i.humanize=X7(),i.destroy=c,Object.keys(e).forEach(f=>{i[f]=e[f]}),i.names=[],i.skips=[],i.formatters={};function a(f){let h=0;for(let m=0;m<f.length;m++)h=(h<<5)-h+f.charCodeAt(m),h|=0;return i.colors[Math.abs(h)%i.colors.length]}s(a,"selectColor"),i.selectColor=a;function i(f){let h,m=null,u,g;function x(...y){if(!x.enabled)return;let E=x,C=Number(new Date),k=C-(h||C);E.diff=k,E.prev=h,E.curr=C,h=C,y[0]=i.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let T=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(U,F)=>{if(U==="%%")return"%";T++;let q=i.formatters[F];if(typeof q=="function"){let X=y[T];U=q.call(E,X),y.splice(T,1),T--}return U}),i.formatArgs.call(E,y),(E.log||i.log).apply(E,y)}return s(x,"debug"),x.namespace=f,x.useColors=i.useColors(),x.color=i.selectColor(f),x.extend=r,x.destroy=i.destroy,Object.defineProperty(x,"enabled",{enumerable:!0,configurable:!1,get:s(()=>m!==null?m:(u!==
i.namespaces&&(u=i.namespaces,g=i.enabled(f)),g),"get"),set:s(y=>{m=y},"set")}),typeof i.init=="function"&&i.init(x),x}s(i,"createDebug");function r(f,h){let m=i(this.namespace+(typeof h>"u"?":":h)+f);return m.log=this.log,m}s(r,"extend");function t(f){i.save(f),i.namespaces=f,i.names=[],i.skips=[];let h,m=(typeof f=="string"?f:"").split(/[\s,]+/),u=m.length;for(h=0;h<u;h++)m[h]&&(f=m[h].replace(/\*/g,".*?"),f[0]==="-"?i.skips.push(new RegExp("^"+f.slice(1)+"$")):i.names.push(new RegExp("^"+f+"$")))}s(t,"enable");function o(){let f=[...i.names.map(d),...i.skips.map(d).map(h=>"-"+h)].join(",");return i.enable(""),f}s(o,"disable");function n(f){if(f[f.length-1]==="*")return!0;let h,m;for(h=0,m=i.skips.length;h<m;h++)if(i.skips[h].test(f))return!1;for(h=0,m=i.names.length;h<m;h++)if(i.names[h].test(f))return!0;return!1}s(n,"enabled");function d(f){return f.toString().substring(2,f.toString().length-2).replace(/\.\*\?$/,"*")}s(d,"toNamespace");function l(f){return f instanceof Error?f.stack||
f.message:f}s(l,"coerce");function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return s(c,"destroy"),i.enable(i.load()),i}s(pX,"setup");K7.exports=pX});var $7=be((nr,Nh)=>{p();nr.formatArgs=hX;nr.save=mX;nr.load=uX;nr.useColors=fX;nr.storage=_X();nr.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();nr.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#\
FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function fX(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}s(fX,"useColors");function hX(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Nh.exports.humanize(this.diff),!this.useColors)return;let a="color: "+this.color;e.splice(
1,0,a,"color: inherit");let i=0,r=0;e[0].replace(/%[a-zA-Z%]/g,t=>{t!=="%%"&&(i++,t==="%c"&&(r=i))}),e.splice(r,0,a)}s(hX,"formatArgs");nr.log=console.debug||console.log||(()=>{});function mX(e){try{e?nr.storage.setItem("debug",e):nr.storage.removeItem("debug")}catch{}}s(mX,"save");function uX(){let e;try{e=nr.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}s(uX,"load");function _X(){try{return localStorage}catch{}}s(_X,"localstorage");Nh.exports=Y7()(nr);var{formatters:gX}=Nh.exports;gX.j=function(e){try{return JSON.stringify(e)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}}});function Fh(e){if(!e)throw new Error("name must be non-empty")}function bX(e,a){for(var i=0,r=e.length,t;i<r;)t=i+r>>>1,e[t].startTime<a.startTime?i=t+1:r=t;e.splice(i,0,a)}var Ni,J7,Bh,Hh,Bl,Uh,jh,Gh,Z7=_(()=>{p();Ni=typeof performance<"u"&&performance,J7=Ni&&Ni.now?function(){return Ni.now()}:function(){return Date.now()};s(Fh,"throwIfEmpty");s(bX,"insertSorted");Ni&&Ni.mark&&Ni.getEntriesByName&&Ni.getEntriesByType&&Ni.clearMeasures?(Bh=s(function(e){Fh(e),Ni.mark("start "+e)},"mark"),Hh=s(function(e){Fh(e),Ni.mark("end "+e),Ni.measure(e,"start "+e,"end "+e);var a=Ni.getEntriesByName(e);return a[a.length-1]},"stop"),Bl=s(function(){return Ni.getEntriesByType("measure")},"getEntries"),Uh=s(function(){Ni.clearMarks(),Ni.clearMeasures()},"clear")):(jh={},Gh=[],Bh=s(function(e){Fh(e);var a=J7();jh["$"+e]=a},"mark"),Hh=s(function(e){Fh(e);var a=J7(),i=jh["$"+e];if(!i)throw new Error("no known mark: "+e);var r={startTime:i,name:e,duration:a-i,entryType:"measure"};return bX(Gh,r),r},"stop"),
Bl=s(function(){return Gh},"getEntries"),Uh=s(function(){jh={},Gh=[]},"clear"))});var bo,go,Nn,Fn,ng,Q7,yX,e6,jn,P,ze=_(()=>{"use strict";p();uo();Rt();bo=vi($7(),1);Z7();go=Ti.platform==="win32",Nn=Ti.browser,Fn={red:Nn?"crimson":1,yellow:Nn?"gold":3,cyan:Nn?"darkturquoise":6,green:Nn?"forestgreen":2,blue:Nn?"steelblue":4,magenta:Nn?"palevioletred":5};bo.default.colors=[Fn.cyan,Fn.green,Fn.blue,Fn.magenta];ng=class extends Ye{static{s(this,"Emitter")}constructor(a){super(a)}issueStatus(a,i){(a==="status"||a==="statusEnd")&&this.emit(a,[a,...i])}issueWarning(a,i){this.emit("warning",[a,...i])}},Q7={},yX=25,jn=class e{static{s(this,"Log")}static _logToStdErr(a,i){e.loggerfn(a)(...i)}static loggerfn(a){a=`LH:${a}`;let i=Q7[a];return i||(i=(0,bo.default)(a),Q7[a]=i,a.endsWith("error")?i.color=Fn.red:a.endsWith("warn")&&(i.color=Fn.yellow)),i}static setLevel(a){switch(e6=a,a){case"silent":bo.default.enable("-LH:*");break;case"verbose":bo.default.enable("LH:*");break;case"warn":bo.default.enable("-LH:*, LH:*:warn, LH:*:error");break;case"error":bo.default.enable("-LH:*, \
LH:*:error");break;default:bo.default.enable("LH:*, -LH:*:verbose")}}static formatProtocol(a,i,r){let t=!Ti||Ti.browser?1/0:Ti.stdout.columns,o=i.method||"?????",n=t-o.length-a.length-yX,d=i.params&&o!=="IO.read"?JSON.stringify(i.params).substr(0,n):"";e._logToStdErr(`${a}:${r||""}`,[o,d])}static isVerbose(){return e6==="verbose"}static time({msg:a,id:i,args:r=[]},t="log"){Bh(i),e[t]("status",a,...r)}static timeEnd({msg:a,id:i,args:r=[]},t="verbose"){e[t]("statusEnd",a,...r),Hh(i)}static log(a,...i){return e.events.issueStatus(a,i),e._logToStdErr(a,i)}static warn(a,...i){return e.events.issueWarning(a,i),e._logToStdErr(`${a}:warn`,i)}static error(a,...i){return e._logToStdErr(`${a}:error`,i)}static verbose(a,...i){return e.events.issueStatus(a,i),e._logToStdErr(`${a}:verbose`,i)}static greenify(a){return`${e.green}${a}${e.reset}`}static redify(a){return`${e.red}${a}${e.reset}`}static get green(){return"\x1B[32m"}static get red(){return"\x1B[31m"}static get yellow(){return"\x1B[33m"}static get purple(){
return"\x1B[95m"}static get reset(){return"\x1B[0m"}static get bold(){return"\x1B[1m"}static get dim(){return"\x1B[2m"}static get tick(){return go?"√":"✓"}static get cross(){return go?"×":"✘"}static get whiteSmallSquare(){return go?"·":"▫"}static get heavyHorizontal(){return go?"─":"━"}static get heavyVertical(){return go?"│ ":"┃ "}static get heavyUpAndRight(){return go?"└":"┗"}static get heavyVerticalAndRight(){return go?"├":"┣"}static get heavyDownAndHorizontal(){return go?"┬":"┳"}static get doubleLightHorizontal(){return"──"}};jn.events=new ng;jn.takeTimeEntries=()=>{let e=Bl();return Uh(),e};jn.getTimeEntries=()=>Bl();P=jn});var Ei=_(()=>{"use strict";p();});var dg,se,ha=_(()=>{"use strict";p();Ei();dg=class{static{s(this,"BaseGatherer")}meta={supportedModes:[]};startInstrumentation(a){}startSensitiveInstrumentation(a){}stopSensitiveInstrumentation(a){}stopInstrumentation(a){}getArtifact(a){}},se=dg});var wX,vX,SX,TX,EX,CX,Fi,xo=_(()=>{"use strict";p();ze();wX=/^(chrome|https?):/,vX=16,SX="RunTask",TX="ThreadControllerImpl::RunTask",EX="ThreadControllerImpl::DoWork",CX="TaskQueueManager::ProcessTaskFromWorkQueue",Fi=class e{static{s(this,"TraceProcessor")}static get TIMESPAN_MARKER_ID(){return"__lighthouseTimespanStart__"}static createNoNavstartError(){return new Error("No navigationStart event found")}static createNoResourceSendRequestError(){return new Error("No ResourceSendRequest event found")}static createNoTracingStartedError(){return new Error("No tracingStartedInBrowser event found")}static createNoFirstContentfulPaintError(){return new Error("No FirstContentfulPaint event found")}static createNoLighthouseMarkerError(){return new Error("No Lighthouse timespan marker event found")}static _isNavigationStartOfInterest(a){return a.name!=="navigationStart"?!1:a.args.data?.documentLoaderURL===void 0?!0:a.args.data?.documentLoaderURL?wX.test(a.args.data.documentLoaderURL):!1}static _sortTimestampEventGroup(a,i,r,t){
let o=s(h=>i[h],"lookupArrayIndexByTsIndex"),n=s(h=>t[o(h)],"lookupEventByTsIndex"),d=[],l=[],c=[];for(let h of a){let m=o(h),u=n(h);u.ph==="E"?d.push(m):u.ph==="X"||u.ph==="B"?l.push(m):c.push(m)}let f=new Map;for(let h of l){let m=t[h];if(m.ph==="X")f.set(h,m.dur);else{let u=Number.MAX_SAFE_INTEGER,g=0,x=r+a.length;for(let y=x;y<i.length;y++){let E=n(y);if(E.name===m.name&&E.pid===m.pid&&E.tid===m.tid)if(E.ph==="E"&&g===0){u=E.ts-m.ts;break}else E.ph==="E"?g--:E.ph==="B"&&g++}f.set(h,u)}}return l.sort((h,m)=>(f.get(m)||0)-(f.get(h)||0)||h-m),c.sort((h,m)=>h-m),[...d,...l,...c]}static filteredTraceSort(a,i){let r=[];for(let o=0;o<a.length;o++)i(a[o])&&r.push(o);r.sort((o,n)=>a[o].ts-a[n].ts);for(let o=0;o<r.length-1;o++){let n=a[r[o]].ts,d=[o];for(let c=o+1;c<r.length&&a[r[c]].ts===n;c++)d.push(c);if(d.length===1)continue;let l=e._sortTimestampEventGroup(d,r,o,a);r.splice(o,l.length,...l),o+=d.length-1}let t=[];for(let o=0;o<r.length;o++)t.push(a[r[o]]);return t}static assertHasToplevelEvents(a){
if(!a.some(this.isScheduleableTask))throw new Error("Could not find any top level events")}static _riskPercentiles(a,i,r,t=0){let o=0;for(let m=0;m<a.length;m++)o+=a[m];o-=t;let n=i-o,d=0,l=n,c=[],f=-1,h=a.length+1;t>0&&h--;for(let m of r){let u=m*i;for(;l<u&&f<a.length-1;)n+=d,h-=d<0?-1:1,t>0&&t<a[f+1]?(d=-t,t=0):(f++,d=a[f]),l=n+Math.abs(d)*h;c.push({percentile:m,time:Math.max(0,(u-n)/h)+vX})}return c}static getRiskToResponsiveness(a,i,r,t=[.5,.75,.9,.99,1]){let o=r-i;t.sort((d,l)=>d-l);let n=this.getMainThreadTopLevelEventDurations(a,i,r);return this._riskPercentiles(n.durations,o,t,n.clippedLength)}static getMainThreadTopLevelEventDurations(a,i=0,r=1/0){let t=[],o=0;for(let n of a){if(n.end<i||n.start>r)continue;let d=n.duration,l=n.start;l<i&&(l=i,d=n.end-i),n.end>r&&(o=d-(r-l)),t.push(d)}return t.sort((n,d)=>n-d),{durations:t,clippedLength:o}}static getMainThreadTopLevelEvents(a,i=0,r=1/0){let t=[],o;for(let n of a.mainThreadEvents){if(!this.isScheduleableTask(n)||!n.dur)continue;
let d=(n.ts-a.timeOriginEvt.ts)/1e3,l=(n.ts+n.dur-a.timeOriginEvt.ts)/1e3;d>r||l<i||(o&&d<o.end&&(o.end=d-.001),o={start:d,end:l,duration:n.dur/1e3},t.push(o))}return t}static findMainFrameIds(a){let i=a.find(n=>n.name==="TracingStartedInBrowser");if(i?.args.data?.frames){let n=i.args.data.frames.find(c=>!c.parent),d=n?.frame,l=n?.processId;if(l&&d)return{startingPid:l,frameId:d}}let r=a.find(n=>n.name==="TracingStartedInPage");if(r?.args?.data){let n=r.args.data.page;if(n)return{startingPid:r.pid,frameId:n}}let t=a.find(n=>this._isNavigationStartOfInterest(n)&&n.args.data?.isLoadingMainFrame),o=a.find(n=>n.name==="ResourceSendRequest");if(t?.args?.data&&o&&o.pid===t.pid&&o.tid===t.tid){let n=t.args.frame;if(n)return{startingPid:t.pid,frameId:n}}throw this.createNoTracingStartedError()}static findMainFramePidTids(a,i){let r=i.filter(n=>(n.name==="FrameCommittedInBrowser"||n.name==="ProcessReadyInBrowser")&&n.args?.data?.frame===a.frameId&&n?.args?.data?.processId),t=r.length?r.map(n=>n?.
args?.data?.processId):[a.startingPid],o=new Map;for(let n of new Set(t)){let d=i.filter(f=>f.cat==="__metadata"&&f.pid===n&&f.ph==="M"&&f.name==="thread_name"),l=d.find(f=>f.args.name==="CrRendererMain");l||(l=d.find(f=>f.args.name==="CrBrowserMain"));let c=l?.tid;if(!c)throw new Error("Unable to determine tid for renderer process");o.set(n,c)}return o}static isScheduleableTask(a){return a.name===SX||a.name===TX||a.name===EX||a.name===CX}static isLCPEvent(a){return a.name!=="largestContentfulPaint::Invalidate"&&a.name!=="largestContentfulPaint::Candidate"?!1:!!a.args?.frame}static isLCPCandidateEvent(a){return!!(a.name==="largestContentfulPaint::Candidate"&&a.args?.frame&&a.args.data&&a.args.data.size!==void 0)}static getFrameId(a){return a.args?.data?.frame||a.args.data?.frameID||a.args.frame}static computeValidLCPAllFrames(a,i,r){let t=a.filter(this.isLCPEvent).reverse(),o=new Map;for(let d of t){if(d.ts<=i.ts)break;let l=d.args.frame;o.has(l)||o.set(l,d)}let n;for(let d of o.values())
this.isLCPCandidateEvent(d)&&(!n||d.args.data.size>n.args.data.size)&&(n=d);if(!n){let d=a.filter(f=>f.name.includes("LargestContentfulPaint")&&f.name.includes("UKM")),l="NavStartToLargestContentfulPaint::Invalidate::AllFrames::UKM",c=d.filter(f=>f.name===l);if(c.length>0){c.sort((h,m)=>h.ts-m.ts);let f=c[c.length-1];P.warn("TraceProcessor","LCP candidate missing, falling back to UKM Invalidate event."),n={name:"largestContentfulPaint::Candidate",cat:"loading",ph:f.ph,ts:f.ts,pid:f.pid,tid:f.tid,args:{frame:r||"main_frame",data:{size:1,isM