UNPKG

@react-native/debugger-frontend

Version:
57 lines 1.99 MB
/** * Lighthouse v12.1.0 (Jun 18 2024) * * Automated auditing, performance metrics, and best practices for the web. * * @homepage https://github.com/GoogleChrome/lighthouse#readme * @author Copyright 2023 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 Mq=Object.create;var Rc=Object.defineProperty;var Pq=Object.getOwnPropertyDescriptor;var Lq=Object.getOwnPropertyNames;var Oq=Object.getPrototypeOf,Bq=Object.prototype.hasOwnProperty;var s=(e,t)=>Rc(e,"name",{value:t,configurable:!0});var y=(e,t)=>()=>(e&&(t=e(e=0)),t);var P=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),x=(e,t)=>{for(var n in t)Rc(e,n,{get:t[n],enumerable:!0})},_C=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Lq(t))!Bq.call(e,a)&&a!==n&&Rc(e,a,{get:()=>t[a],enumerable:!(r=Pq(t,a))||r.enumerable});return e};var Bt=(e,t,n)=>(n=e!=null?Mq(Oq(e)):{},_C(t||!e||!e.__esModule?Rc(n,"default",{value:e,enumerable:!0}):n,e)),Uq=e=>_C(Rc({},"__esModule",{value:!0}),e);function IC(){throw new Error("setTimeout has not been defined")}function NC(){throw new Error("clearTimeout has not been defined")}function MC(e){if(Sa===setTimeout)return setTimeout(e,0);if((Sa===IC||!Sa)&&setTimeout)return Sa=setTimeout,setTimeout(e,0);try{return Sa(e,0)}catch{try{return Sa.call(null,e,0)}catch{return Sa.call(this,e,0)}}}function jq(e){if(Ca===clearTimeout)return clearTimeout(e);if((Ca===NC||!Ca)&&clearTimeout)return Ca=clearTimeout,clearTimeout(e);try{return Ca(e)}catch{try{return Ca.call(null,e)}catch{return Ca.call(this,e)}}}function qq(){!Ri||!xo||(Ri=!1,xo.length?Kr=xo.concat(Kr):nm=-1,Kr.length&&PC())}function PC(){if(!Ri){var e=MC(qq);Ri=!0;for(var t=Kr.length;t;){for(xo=Kr,Kr=[];++nm<t;)xo&&xo[nm].run();nm=-1,t=Kr.length}xo=null,Ri=!1,jq(e)}}function rn(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Kr.push(new LC(e,t)),Kr.length===1&&!Ri&&MC(PC)}function LC(e,t){this.fun=e,this.array=t}function So(){} function az(e){throw new Error("process.binding is not supported")}function oz(){return"/"}function iz(e){throw new Error("process.chdir is not supported")}function sz(){return 0}function uz(e){var t=cz.call(Fi)*.001,n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n=n-e[0],r=r-e[1],r<0&&(n--,r+=1e9)),[n,r]}function dz(){var e=new Date,t=e-lz;return t/1e3}var Sa,Ca,Kr,Ri,xo,nm,zq,Hq,Wq,Gq,Vq,$q,Yq,Kq,Xq,Zq,Jq,Qq,ez,tz,nz,rz,Fi,cz,lz,an,ka=y(()=>{l();s(IC,"defaultSetTimout");s(NC,"defaultClearTimeout");Sa=IC,Ca=NC;typeof globalThis.setTimeout=="function"&&(Sa=setTimeout);typeof globalThis.clearTimeout=="function"&&(Ca=clearTimeout);s(MC,"runTimeout");s(jq,"runClearTimeout");Kr=[],Ri=!1,nm=-1;s(qq,"cleanUpNextTick");s(PC,"drainQueue");s(rn,"nextTick");s(LC,"Item");LC.prototype.run=function(){this.fun.apply(null,this.array)};zq="browser",Hq="browser",Wq=!0,Gq={},Vq=[],$q="",Yq={},Kq={},Xq={};s(So,"noop");Zq=So,Jq=So,Qq=So,ez=So,tz=So,nz=So,rz=So;s(az,"binding");s(oz,"cwd");s(iz,"chdir");s( sz,"umask");Fi=globalThis.performance||{},cz=Fi.now||Fi.mozNow||Fi.msNow||Fi.oNow||Fi.webkitNow||function(){return new Date().getTime()};s(uz,"hrtime");lz=new Date;s(dz,"uptime");an={nextTick:rn,title:zq,browser:Wq,env:Gq,argv:Vq,version:$q,versions:Yq,on:Zq,addListener:Jq,once:Qq,off:ez,removeListener:tz,removeAllListeners:nz,emit:rz,binding:az,cwd:oz,chdir:iz,umask:sz,hrtime:uz,platform:Hq,release:Kq,config:Xq,uptime:dz}});var l=y(()=>{"use strict";ka();globalThis.process=an});function jC(){s1=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)wr[t]=e[t],Un[e.charCodeAt(t)]=t;Un[45]=62,Un[95]=63}function pz(e){s1||jC();var t,n,r,a,o,i,c=e.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o=e[c-2]==="="?2:e[c-1]==="="?1:0,i=new mz(c*3/4-o),r=o>0?c-4:c;var u=0;for(t=0,n=0;t<r;t+=4,n+=3)a=Un[e.charCodeAt(t)]<<18|Un[e.charCodeAt(t+1)]<<12|Un[e.charCodeAt(t+2)]<<6|Un[e.charCodeAt(t+3)],i[u++]=a>>16&255,i[u++]=a>>8&255,i[u++]=a&255;return o===2?(a=Un[e.charCodeAt(t)]<<2|Un[e.charCodeAt(t+1)]>>4,i[u++]=a&255):o===1&&(a=Un[e.charCodeAt(t)]<<10|Un[e.charCodeAt(t+1)]<<4|Un[e.charCodeAt(t+2)]>>2,i[u++]=a>>8&255,i[u++]=a&255),i}function fz(e){return wr[e>>18&63]+wr[e>>12&63]+wr[e>>6&63]+wr[e&63]}function hz(e,t,n){for(var r,a=[],o=t;o<n;o+=3)r=(e[o]<<16)+(e[o+1]<<8)+e[o+2],a.push(fz(r));return a.join("")}function OC(e){s1||jC();for(var t,n=e.length,r=n%3,a="",o=[],i=16383,c=0,u=n-r;c<u;c+= i)o.push(hz(e,c,c+i>u?u:c+i));return r===1?(t=e[n-1],a+=wr[t>>2],a+=wr[t<<4&63],a+="=="):r===2&&(t=(e[n-2]<<8)+e[n-1],a+=wr[t>>10],a+=wr[t>>4&63],a+=wr[t<<2&63],a+="="),o.push(a),o.join("")}function om(e,t,n,r,a){var o,i,c=a*8-r-1,u=(1<<c)-1,d=u>>1,m=-7,p=n?a-1:0,h=n?-1:1,f=e[t+p];for(p+=h,o=f&(1<<-m)-1,f>>=-m,m+=c;m>0;o=o*256+e[t+p],p+=h,m-=8);for(i=o&(1<<-m)-1,o>>=-m,m+=r;m>0;i=i*256+e[t+p],p+=h,m-=8);if(o===0)o=1-d;else{if(o===u)return i?NaN:(f?-1:1)*(1/0);i=i+Math.pow(2,r),o=o-d}return(f?-1:1)*i*Math.pow(2,o-r)}function qC(e,t,n,r,a,o){var i,c,u,d=o*8-a-1,m=(1<<d)-1,p=m>>1,h=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,g=r?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,i=m):(i=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-i))<1&&(i--,u*=2),i+p>=1?t+=h/u:t+=h*Math.pow(2,1-p),t*u>=2&&(i++,u/=2),i+p>=m?(c=0,i=m):i+p>=1?(c=(t*u-1)*Math.pow(2,a),i=i+p):(c=t*Math.pow(2,p-1)*Math.pow(2,a),i=0));a>=8;e[n+f]=c&255,f+=g,c/=256,a-=8);for(i=i<<a|c,d+= a;d>0;e[n+f]=i&255,f+=g,i/=256,d-=8);e[n+f-g]|=v*128}function rm(){return z.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Xr(e,t){if(rm()<t)throw new RangeError("Invalid typed array length");return z.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=z.prototype):(e===null&&(e=new z(t)),e.length=t),e}function z(e,t,n){if(!z.TYPED_ARRAY_SUPPORT&&!(this instanceof z))return new z(e,t,n);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return c1(this,e)}return HC(this,e,t,n)}function HC(e,t,n,r){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer?wz(e,t,n,r):typeof t=="string"?bz(e,t,n):Dz(e,t)}function WC(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 vz(e,t,n,r){return WC(t),t<=0?Xr(e,t):n!==void 0?typeof r== "string"?Xr(e,t).fill(n,r):Xr(e,t).fill(n):Xr(e,t)}function c1(e,t){if(WC(t),e=Xr(e,t<0?0:u1(t)|0),!z.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function bz(e,t,n){if((typeof n!="string"||n==="")&&(n="utf8"),!z.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=GC(t,n)|0;e=Xr(e,r);var a=e.write(t,n);return a!==r&&(e=e.slice(0,a)),e}function i1(e,t){var n=t.length<0?0:u1(t.length)|0;e=Xr(e,n);for(var r=0;r<n;r+=1)e[r]=t[r]&255;return e}function wz(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return n===void 0&&r===void 0?t=new Uint8Array(t):r===void 0?t=new Uint8Array(t,n):t=new Uint8Array(t,n,r),z.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=z.prototype):e=i1(e,t),e}function Dz(e,t){if(Dr(t)){var n=u1(t.length)|0;return e=Xr(e,n),e.length===0||t.copy(e,0,0,n),e}if(t){if(typeof ArrayBuffer<"u"&&t.buffer instanceof ArrayBuffer|| "length"in t)return typeof t.length!="number"||jz(t.length)?Xr(e,0):i1(e,t);if(t.type==="Buffer"&&zC(t.data))return i1(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function u1(e){if(e>=rm())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+rm().toString(16)+" bytes");return e|0}function Dr(e){return!!(e!=null&&e._isBuffer)}function GC(e,t){if(Dr(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 n=e.length;if(n===0)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return am(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return JC(e).length;default:if(r)return am(e).length;t=(""+t).toLowerCase(),r=!0}}function Ez(e,t,n){var r=!1; if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Iz(this,t,n);case"utf8":case"utf-8":return YC(this,t,n);case"ascii":return Az(this,t,n);case"latin1":case"binary":return _z(this,t,n);case"base64":return Fz(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Nz(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Co(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function VC(e,t,n,r,a){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0)if(a)n=0;else return-1;if(typeof t=="string"&&(t=z.from(t,r)),Dr(t))return t.length===0?-1:BC(e,t,n,r,a);if(typeof t=="number")return t=t&255,z.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"? a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):BC(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function BC(e,t,n,r,a){var o=1,i=e.length,c=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,i/=2,c/=2,n/=2}function u(f,g){return o===1?f[g]:f.readUInt16BE(g*o)}s(u,"read");var d;if(a){var m=-1;for(d=n;d<i;d++)if(u(e,d)===u(t,m===-1?0:d-m)){if(m===-1&&(m=d),d-m+1===c)return m*o}else m!==-1&&(d-=d-m),m=-1}else for(n+c>i&&(n=i-c),d=n;d>=0;d--){for(var p=!0,h=0;h<c;h++)if(u(e,d+h)!==u(t,h)){p=!1;break}if(p)return d}return-1}function Tz(e,t,n,r){n=Number(n)||0;var a=e.length-n;r?(r=Number(r),r>a&&(r=a)):r=a;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var i=0;i<r;++i){var c=parseInt(t.substr(i*2,2),16);if(isNaN(c))return i;e[n+i]=c}return i}function xz(e,t,n,r){return cm(am(t,e.length-n),e, n,r)}function $C(e,t,n,r){return cm(Bz(t),e,n,r)}function Sz(e,t,n,r){return $C(e,t,n,r)}function Cz(e,t,n,r){return cm(JC(t),e,n,r)}function kz(e,t,n,r){return cm(Uz(t,e.length-n),e,n,r)}function Fz(e,t,n){return t===0&&n===e.length?OC(e):OC(e.slice(t,n))}function YC(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a<n;){var o=e[a],i=null,c=o>239?4:o>223?3:o>191?2:1;if(a+c<=n){var u,d,m,p;switch(c){case 1:o<128&&(i=o);break;case 2:u=e[a+1],(u&192)===128&&(p=(o&31)<<6|u&63,p>127&&(i=p));break;case 3:u=e[a+1],d=e[a+2],(u&192)===128&&(d&192)===128&&(p=(o&15)<<12|(u&63)<<6|d&63,p>2047&&(p<55296||p>57343)&&(i=p));break;case 4:u=e[a+1],d=e[a+2],m=e[a+3],(u&192)===128&&(d&192)===128&&(m&192)===128&&(p=(o&15)<<18|(u&63)<<12|(d&63)<<6|m&63,p>65535&&p<1114112&&(i=p))}}i===null?(i=65533,c=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|i&1023),r.push(i),a+=c}return Rz(r)}function Rz(e){var t=e.length;if(t<=UC)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode. apply(String,e.slice(r,r+=UC));return n}function Az(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(e[a]&127);return r}function _z(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(e[a]);return r}function Iz(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var a="",o=t;o<n;++o)a+=Oz(e[o]);return a}function Nz(e,t,n){for(var r=e.slice(t,n),a="",o=0;o<r.length;o+=2)a+=String.fromCharCode(r[o]+r[o+1]*256);return a}function Gt(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function Cn(e,t,n,r,a,o){if(!Dr(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function im(e,t,n,r){t<0&&(t=65535+t+1);for(var a=0,o=Math.min(e.length-n,2);a<o;++a)e[n+a]=(t&255<<8*(r?a:1-a))>>>(r?a:1-a)* 8}function sm(e,t,n,r){t<0&&(t=4294967295+t+1);for(var a=0,o=Math.min(e.length-n,4);a<o;++a)e[n+a]=t>>>(r?a:3-a)*8&255}function KC(e,t,n,r,a,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function XC(e,t,n,r,a){return a||KC(e,t,n,4),qC(e,t,n,r,23,4),n+4}function ZC(e,t,n,r,a){return a||KC(e,t,n,8),qC(e,t,n,r,52,8),n+8}function Pz(e){if(e=Lz(e).replace(Mz,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Lz(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Oz(e){return e<16?"0"+e.toString(16):e.toString(16)}function am(e,t){t=t||1/0;for(var n,r=e.length,a=null,o=[],i=0;i<r;++i){if(n=e.charCodeAt(i),n>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(i+1===r){(t-=3)>-1&&o.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),a=n;continue}n=(a-55296<<10|n-56320)+65536}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,n<128){if((t-=1)< 0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return o}function Bz(e){for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function Uz(e,t){for(var n,r,a,o=[],i=0;i<e.length&&!((t-=2)<0);++i)n=e.charCodeAt(i),r=n>>8,a=n%256,o.push(a),o.push(r);return o}function JC(e){return pz(Pz(e))}function cm(e,t,n,r){for(var a=0;a<r&&!(a+n>=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function jz(e){return e!==e}function qz(e){return e!=null&&(!!e._isBuffer||QC(e)||zz(e))}function QC(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function zz(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&QC(e.slice(0,0))}var wr,Un,mz,s1,gz,zC,yz,l1e,UC,Mz,Ai=y(()=>{l();wr=[],Un=[],mz=typeof Uint8Array< "u"?Uint8Array:Array,s1=!1;s(jC,"init");s(pz,"toByteArray");s(fz,"tripletToBase64");s(hz,"encodeChunk");s(OC,"fromByteArray");s(om,"read");s(qC,"write");gz={}.toString,zC=Array.isArray||function(e){return gz.call(e)=="[object Array]"};yz=50;z.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;l1e=rm();s(rm,"kMaxLength");s(Xr,"createBuffer");s(z,"Buffer");z.poolSize=8192;z._augment=function(e){return e.__proto__=z.prototype,e};s(HC,"from");z.from=function(e,t,n){return HC(null,e,t,n)};z.TYPED_ARRAY_SUPPORT&&(z.prototype.__proto__=Uint8Array.prototype,z.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&z[Symbol.species]);s(WC,"assertSize");s(vz,"alloc");z.alloc=function(e,t,n){return vz(null,e,t,n)};s(c1,"allocUnsafe");z.allocUnsafe=function(e){return c1(null,e)};z.allocUnsafeSlow=function(e){return c1(null,e)};s(bz,"fromString");s(i1,"fromArrayLike");s(wz,"fromArrayBuffer");s(Dz,"fromObject");s(u1,"checked");z.isBuffer=qz;s(Dr,"internalIs\ Buffer");z.compare=s(function(t,n){if(!Dr(t)||!Dr(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;for(var r=t.length,a=n.length,o=0,i=Math.min(r,a);o<i;++o)if(t[o]!==n[o]){r=t[o],a=n[o];break}return r<a?-1:a<r?1:0},"compare");z.isEncoding=s(function(t){switch(String(t).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");z.concat=s(function(t,n){if(!zC(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return z.alloc(0);var r;if(n===void 0)for(n=0,r=0;r<t.length;++r)n+=t[r].length;var a=z.allocUnsafe(n),o=0;for(r=0;r<t.length;++r){var i=t[r];if(!Dr(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(a,o),o+=i.length}return a},"concat");s(GC,"byteLength");z.byteLength=GC;s(Ez,"slowToString");z.prototype._isBuffer=!0;s(Co,"swap");z.prototype.swap16=s(function(){var t=this. length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<t;n+=2)Co(this,n,n+1);return this},"swap16");z.prototype.swap32=s(function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<t;n+=4)Co(this,n,n+3),Co(this,n+1,n+2);return this},"swap32");z.prototype.swap64=s(function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<t;n+=8)Co(this,n,n+7),Co(this,n+1,n+6),Co(this,n+2,n+5),Co(this,n+3,n+4);return this},"swap64");z.prototype.toString=s(function(){var t=this.length|0;return t===0?"":arguments.length===0?YC(this,0,t):Ez.apply(this,arguments)},"toString");z.prototype.equals=s(function(t){if(!Dr(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:z.compare(this,t)===0},"equals");z.prototype.inspect=s(function(){var t="",n=yz;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length> n&&(t+=" ... ")),"<Buffer "+t+">"},"inspect");z.prototype.compare=s(function(t,n,r,a,o){if(!Dr(t))throw new TypeError("Argument must be a Buffer");if(n===void 0&&(n=0),r===void 0&&(r=t?t.length:0),a===void 0&&(a=0),o===void 0&&(o=this.length),n<0||r>t.length||a<0||o>this.length)throw new RangeError("out of range index");if(a>=o&&n>=r)return 0;if(a>=o)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,a>>>=0,o>>>=0,this===t)return 0;for(var i=o-a,c=r-n,u=Math.min(i,c),d=this.slice(a,o),m=t.slice(n,r),p=0;p<u;++p)if(d[p]!==m[p]){i=d[p],c=m[p];break}return i<c?-1:c<i?1:0},"compare");s(VC,"bidirectionalIndexOf");s(BC,"arrayIndexOf");z.prototype.includes=s(function(t,n,r){return this.indexOf(t,n,r)!==-1},"includes");z.prototype.indexOf=s(function(t,n,r){return VC(this,t,n,r,!0)},"indexOf");z.prototype.lastIndexOf=s(function(t,n,r){return VC(this,t,n,r,!1)},"lastIndexOf");s(Tz,"hexWrite");s(xz,"utf8Write");s($C,"asciiWrite");s(Sz,"latin1Write");s(Cz,"base64Write");s(kz,"ucs2Write");z.prototype.write= s(function(t,n,r,a){if(n===void 0)a="utf8",r=this.length,n=0;else if(r===void 0&&typeof n=="string")a=n,r=this.length,n=0;else if(isFinite(n))n=n|0,isFinite(r)?(r=r|0,a===void 0&&(a="utf8")):(a=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-n;if((r===void 0||r>o)&&(r=o),t.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var i=!1;;)switch(a){case"hex":return Tz(this,t,n,r);case"utf8":case"utf-8":return xz(this,t,n,r);case"ascii":return $C(this,t,n,r);case"latin1":case"binary":return Sz(this,t,n,r);case"base64":return Cz(this,t,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kz(this,t,n,r);default:if(i)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),i=!0}},"write");z.prototype.toJSON=s(function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},"toJSON");s(Fz,"base64Slice");s(YC,"utf8\ Slice");UC=4096;s(Rz,"decodeCodePointsArray");s(Az,"asciiSlice");s(_z,"latin1Slice");s(Iz,"hexSlice");s(Nz,"utf16leSlice");z.prototype.slice=s(function(t,n){var r=this.length;t=~~t,n=n===void 0?r:~~n,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n<t&&(n=t);var a;if(z.TYPED_ARRAY_SUPPORT)a=this.subarray(t,n),a.__proto__=z.prototype;else{var o=n-t;a=new z(o,void 0);for(var i=0;i<o;++i)a[i]=this[i+t]}return a},"slice");s(Gt,"checkOffset");z.prototype.readUIntLE=s(function(t,n,r){t=t|0,n=n|0,r||Gt(t,n,this.length);for(var a=this[t],o=1,i=0;++i<n&&(o*=256);)a+=this[t+i]*o;return a},"readUIntLE");z.prototype.readUIntBE=s(function(t,n,r){t=t|0,n=n|0,r||Gt(t,n,this.length);for(var a=this[t+--n],o=1;n>0&&(o*=256);)a+=this[t+--n]*o;return a},"readUIntBE");z.prototype.readUInt8=s(function(t,n){return n||Gt(t,1,this.length),this[t]},"readUInt8");z.prototype.readUInt16LE=s(function(t,n){return n||Gt(t,2,this.length),this[t]|this[t+1]<<8},"readUInt16LE");z.prototype.readUInt16BE= s(function(t,n){return n||Gt(t,2,this.length),this[t]<<8|this[t+1]},"readUInt16BE");z.prototype.readUInt32LE=s(function(t,n){return n||Gt(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},"readUInt32LE");z.prototype.readUInt32BE=s(function(t,n){return n||Gt(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},"readUInt32BE");z.prototype.readIntLE=s(function(t,n,r){t=t|0,n=n|0,r||Gt(t,n,this.length);for(var a=this[t],o=1,i=0;++i<n&&(o*=256);)a+=this[t+i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*n)),a},"readIntLE");z.prototype.readIntBE=s(function(t,n,r){t=t|0,n=n|0,r||Gt(t,n,this.length);for(var a=n,o=1,i=this[t+--a];a>0&&(o*=256);)i+=this[t+--a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*n)),i},"readIntBE");z.prototype.readInt8=s(function(t,n){return n||Gt(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},"readInt8");z.prototype.readInt16LE=s(function(t,n){n||Gt(t,2,this.length);var r=this[t]|this[t+1]<<8;return r&32768?r|4294901760:r},"rea\ dInt16LE");z.prototype.readInt16BE=s(function(t,n){n||Gt(t,2,this.length);var r=this[t+1]|this[t]<<8;return r&32768?r|4294901760:r},"readInt16BE");z.prototype.readInt32LE=s(function(t,n){return n||Gt(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},"readInt32LE");z.prototype.readInt32BE=s(function(t,n){return n||Gt(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},"readInt32BE");z.prototype.readFloatLE=s(function(t,n){return n||Gt(t,4,this.length),om(this,t,!0,23,4)},"readFloatLE");z.prototype.readFloatBE=s(function(t,n){return n||Gt(t,4,this.length),om(this,t,!1,23,4)},"readFloatBE");z.prototype.readDoubleLE=s(function(t,n){return n||Gt(t,8,this.length),om(this,t,!0,52,8)},"readDoubleLE");z.prototype.readDoubleBE=s(function(t,n){return n||Gt(t,8,this.length),om(this,t,!1,52,8)},"readDoubleBE");s(Cn,"checkInt");z.prototype.writeUIntLE=s(function(t,n,r,a){if(t=+t,n=n|0,r=r|0,!a){var o=Math.pow(2,8*r)-1;Cn(this,t,n,r,o,0)}var i=1,c=0;for(this[n]=t&255;++c< r&&(i*=256);)this[n+c]=t/i&255;return n+r},"writeUIntLE");z.prototype.writeUIntBE=s(function(t,n,r,a){if(t=+t,n=n|0,r=r|0,!a){var o=Math.pow(2,8*r)-1;Cn(this,t,n,r,o,0)}var i=r-1,c=1;for(this[n+i]=t&255;--i>=0&&(c*=256);)this[n+i]=t/c&255;return n+r},"writeUIntBE");z.prototype.writeUInt8=s(function(t,n,r){return t=+t,n=n|0,r||Cn(this,t,n,1,255,0),z.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=t&255,n+1},"writeUInt8");s(im,"objectWriteUInt16");z.prototype.writeUInt16LE=s(function(t,n,r){return t=+t,n=n|0,r||Cn(this,t,n,2,65535,0),z.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8):im(this,t,n,!0),n+2},"writeUInt16LE");z.prototype.writeUInt16BE=s(function(t,n,r){return t=+t,n=n|0,r||Cn(this,t,n,2,65535,0),z.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=t&255):im(this,t,n,!1),n+2},"writeUInt16BE");s(sm,"objectWriteUInt32");z.prototype.writeUInt32LE=s(function(t,n,r){return t=+t,n=n|0,r||Cn(this,t,n,4,4294967295,0),z.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8, this[n]=t&255):sm(this,t,n,!0),n+4},"writeUInt32LE");z.prototype.writeUInt32BE=s(function(t,n,r){return t=+t,n=n|0,r||Cn(this,t,n,4,4294967295,0),z.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255):sm(this,t,n,!1),n+4},"writeUInt32BE");z.prototype.writeIntLE=s(function(t,n,r,a){if(t=+t,n=n|0,!a){var o=Math.pow(2,8*r-1);Cn(this,t,n,r,o-1,-o)}var i=0,c=1,u=0;for(this[n]=t&255;++i<r&&(c*=256);)t<0&&u===0&&this[n+i-1]!==0&&(u=1),this[n+i]=(t/c>>0)-u&255;return n+r},"writeIntLE");z.prototype.writeIntBE=s(function(t,n,r,a){if(t=+t,n=n|0,!a){var o=Math.pow(2,8*r-1);Cn(this,t,n,r,o-1,-o)}var i=r-1,c=1,u=0;for(this[n+i]=t&255;--i>=0&&(c*=256);)t<0&&u===0&&this[n+i+1]!==0&&(u=1),this[n+i]=(t/c>>0)-u&255;return n+r},"writeIntBE");z.prototype.writeInt8=s(function(t,n,r){return t=+t,n=n|0,r||Cn(this,t,n,1,127,-128),z.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[n]=t&255,n+1},"writeInt8");z.prototype.writeInt16LE=s(function(t,n,r){return t=+t,n=n|0, r||Cn(this,t,n,2,32767,-32768),z.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8):im(this,t,n,!0),n+2},"writeInt16LE");z.prototype.writeInt16BE=s(function(t,n,r){return t=+t,n=n|0,r||Cn(this,t,n,2,32767,-32768),z.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=t&255):im(this,t,n,!1),n+2},"writeInt16BE");z.prototype.writeInt32LE=s(function(t,n,r){return t=+t,n=n|0,r||Cn(this,t,n,4,2147483647,-2147483648),z.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):sm(this,t,n,!0),n+4},"writeInt32LE");z.prototype.writeInt32BE=s(function(t,n,r){return t=+t,n=n|0,r||Cn(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),z.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255):sm(this,t,n,!1),n+4},"writeInt32BE");s(KC,"checkIEEE754");s(XC,"writeFloat");z.prototype.writeFloatLE=s(function(t,n,r){return XC(this,t,n,!0,r)},"writeFloatLE");z.prototype.writeFloatBE=s(function(t,n,r){return XC(this,t,n,!1,r)},"writeFloatBE");s(ZC,"w\ riteDouble");z.prototype.writeDoubleLE=s(function(t,n,r){return ZC(this,t,n,!0,r)},"writeDoubleLE");z.prototype.writeDoubleBE=s(function(t,n,r){return ZC(this,t,n,!1,r)},"writeDoubleBE");z.prototype.copy=s(function(t,n,r,a){if(r||(r=0),!a&&a!==0&&(a=this.length),n>=t.length&&(n=t.length),n||(n=0),a>0&&a<r&&(a=r),a===r||t.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),t.length-n<a-r&&(a=t.length-n+r);var o=a-r,i;if(this===t&&r<n&&n<a)for(i=o-1;i>=0;--i)t[i+n]=this[i+r];else if(o<1e3||!z.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+n]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),n);return o},"copy");z.prototype.fill=s(function(t,n,r,a){if(typeof t=="string"){if(typeof n=="string"?(a=n,n=0,r=this.length):typeof r=="string"&&(a=r,r=this.length),t.length===1){var o=t.charCodeAt( 0);o<256&&(t=o)}if(a!==void 0&&typeof a!="string")throw new TypeError("encoding must be a string");if(typeof a=="string"&&!z.isEncoding(a))throw new TypeError("Unknown encoding: "+a)}else typeof t=="number"&&(t=t&255);if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;n=n>>>0,r=r===void 0?this.length:r>>>0,t||(t=0);var i;if(typeof t=="number")for(i=n;i<r;++i)this[i]=t;else{var c=Dr(t)?t:am(new z(t,a).toString()),u=c.length;for(i=0;i<r-n;++i)this[i+n]=c[i%u]}return this},"fill");Mz=/[^+\/0-9A-Za-z-_]/g;s(Pz,"base64clean");s(Lz,"stringtrim");s(Oz,"toHex");s(am,"utf8ToBytes");s(Bz,"asciiToBytes");s(Uz,"utf16leToBytes");s(JC,"base64ToBytes");s(cm,"blitBuffer");s(jz,"isnan");s(qz,"isBuffer");s(QC,"isFastBuffer");s(zz,"isSlowBuffer")});function Fa(){}function We(){We.init.call(this)}function ek(e){return e._maxListeners===void 0?We.defaultMaxListeners:e._maxListeners}function Hz(e,t,n){if(t)e.call(n);else for(var r=e.length,a=Ac(e,r),o=0;o<r;++o)a[o].call(n)}function Wz(e,t,n,r){if(t)e.call(n,r);else for(var a=e.length,o=Ac(e,a),i=0;i<a;++i)o[i].call(n,r)}function Gz(e,t,n,r,a){if(t)e.call(n,r,a);else for(var o=e.length,i=Ac(e,o),c=0;c<o;++c)i[c].call(n,r,a)}function Vz(e,t,n,r,a,o){if(t)e.call(n,r,a,o);else for(var i=e.length,c=Ac(e,i),u=0;u<i;++u)c[u].call(n,r,a,o)}function $z(e,t,n,r){if(t)e.apply(n,r);else for(var a=e.length,o=Ac(e,a),i=0;i<a;++i)o[i].apply(n,r)}function tk(e,t,n,r){var a,o,i;if(typeof n!="function")throw new TypeError('"listener" argument must be a function');if(o=e._events,o?(o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),i=o[t]):(o=e._events=new Fa,e._eventsCount=0),!i)i=o[t]=n,++e._eventsCount;else if(typeof i=="function"?i=o[t]=r?[n,i]:[i,n]:r?i.unshift(n):i.push( n),!i.warned&&(a=ek(e),a&&a>0&&i.length>a)){i.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=i.length,Yz(c)}return e}function Yz(e){typeof console.warn=="function"?console.warn(e):console.log(e)}function nk(e,t,n){var r=!1;function a(){e.removeListener(t,a),r||(r=!0,n.apply(e,arguments))}return s(a,"g"),a.listener=n,a}function rk(e){var t=this._events;if(t){var n=t[e];if(typeof n=="function")return 1;if(n)return n.length}return 0}function Kz(e,t){for(var n=t,r=n+1,a=e.length;r<a;n+=1,r+=1)e[n]=e[r];e.pop()}function Ac(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}function Xz(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}var l1,jn,Zr=y(()=>{"use strict";l();s(Fa,"EventHandlers");Fa.prototype=Object.create(null);s(We,"EventEmitter");jn=We;We.EventEmitter=We;We.usingDomains= !1;We.prototype.domain=void 0;We.prototype._events=void 0;We.prototype._maxListeners=void 0;We.defaultMaxListeners=10;We.init=function(){this.domain=null,We.usingDomains&&l1.active&&!(this instanceof l1.Domain)&&(this.domain=l1.active),(!this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=new Fa,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};We.prototype.setMaxListeners=s(function(t){if(typeof t!="number"||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},"setMaxListeners");s(ek,"$getMaxListeners");We.prototype.getMaxListeners=s(function(){return ek(this)},"getMaxListeners");s(Hz,"emitNone");s(Wz,"emitOne");s(Gz,"emitTwo");s(Vz,"emitThree");s($z,"emitMany");We.prototype.emit=s(function(t){var n,r,a,o,i,c,u,d=!1,m=t==="error";if(c=this._events,c)m=m&&c.error==null;else if(!m)return!1;if(u=this.domain,m){if(n=arguments[1],u)n||(n=new Error('Uncaught, unspecified "error" event')), n.domainEmitter=this,n.domain=u,n.domainThrown=!1,u.emit("error",n);else{if(n instanceof Error)throw n;var p=new Error('Uncaught, unspecified "error" event. ('+n+")");throw p.context=n,p}return!1}if(r=c[t],!r)return!1;var h=typeof r=="function";switch(a=arguments.length,a){case 1:Hz(r,h,this);break;case 2:Wz(r,h,this,arguments[1]);break;case 3:Gz(r,h,this,arguments[1],arguments[2]);break;case 4:Vz(r,h,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(a-1),i=1;i<a;i++)o[i-1]=arguments[i];$z(r,h,this,o)}return d&&u.exit(),!0},"emit");s(tk,"_addListener");s(Yz,"emitWarning");We.prototype.addListener=s(function(t,n){return tk(this,t,n,!1)},"addListener");We.prototype.on=We.prototype.addListener;We.prototype.prependListener=s(function(t,n){return tk(this,t,n,!0)},"prependListener");s(nk,"_onceWrap");We.prototype.once=s(function(t,n){if(typeof n!="function")throw new TypeError('"listener" argument must be a function');return this.on(t,nk(this,t,n)),this},"once");We.prototype. prependOnceListener=s(function(t,n){if(typeof n!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(t,nk(this,t,n)),this},"prependOnceListener");We.prototype.removeListener=s(function(t,n){var r,a,o,i,c;if(typeof n!="function")throw new TypeError('"listener" argument must be a function');if(a=this._events,!a)return this;if(r=a[t],!r)return this;if(r===n||r.listener&&r.listener===n)--this._eventsCount===0?this._events=new Fa:(delete a[t],a.removeListener&&this.emit("removeListener",t,r.listener||n));else if(typeof r!="function"){for(o=-1,i=r.length;i-- >0;)if(r[i]===n||r[i].listener&&r[i].listener===n){c=r[i].listener,o=i;break}if(o<0)return this;if(r.length===1){if(r[0]=void 0,--this._eventsCount===0)return this._events=new Fa,this;delete a[t]}else Kz(r,o);a.removeListener&&this.emit("removeListener",t,c||n)}return this},"removeListener");We.prototype.off=function(e,t){return this.removeListener(e,t)};We.prototype.removeAllListeners=s(function(t){ var n,r;if(r=this._events,!r)return this;if(!r.removeListener)return arguments.length===0?(this._events=new Fa,this._eventsCount=0):r[t]&&(--this._eventsCount===0?this._events=new Fa:delete r[t]),this;if(arguments.length===0){for(var a=Object.keys(r),o=0,i;o<a.length;++o)i=a[o],i!=="removeListener"&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=new Fa,this._eventsCount=0,this}if(n=r[t],typeof n=="function")this.removeListener(t,n);else if(n)do this.removeListener(t,n[n.length-1]);while(n[0]);return this},"removeAllListeners");We.prototype.listeners=s(function(t){var n,r,a=this._events;return a?(n=a[t],n?typeof n=="function"?r=[n.listener||n]:r=Xz(n):r=[]):r=[],r},"listeners");We.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):rk.call(e,t)};We.prototype.listenerCount=rk;s(rk,"listenerCount");We.prototype.eventNames=s(function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]},"eventNames");s( Kz,"spliceOne");s(Ac,"arrayClone");s(Xz,"unwrapListeners")});var ok=P((y1e,ak)=>{l();var _i=1e3,Ii=_i*60,Ni=Ii*60,ko=Ni*24,Zz=ko*7,Jz=ko*365.25;ak.exports=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0)return Qz(e);if(n==="number"&&isFinite(e))return t.long?tH(e):eH(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Qz(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\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(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*Jz;case"weeks":case"week":case"w":return n*Zz;case"days":case"day":case"d":return n*ko;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Ni;case"minutes":case"minute":case"mins":case"min":case"m":return n*Ii;case"seconds":case"second":case"secs":case"sec":case"s":return n*_i;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default: return}}}}s(Qz,"parse");function eH(e){var t=Math.abs(e);return t>=ko?Math.round(e/ko)+"d":t>=Ni?Math.round(e/Ni)+"h":t>=Ii?Math.round(e/Ii)+"m":t>=_i?Math.round(e/_i)+"s":e+"ms"}s(eH,"fmtShort");function tH(e){var t=Math.abs(e);return t>=ko?um(e,t,ko,"day"):t>=Ni?um(e,t,Ni,"hour"):t>=Ii?um(e,t,Ii,"minute"):t>=_i?um(e,t,_i,"second"):e+" ms"}s(tH,"fmtLong");function um(e,t,n,r){var a=t>=n*1.5;return Math.round(e/n)+" "+r+(a?"s":"")}s(um,"plural")});var sk=P((w1e,ik)=>{l();function nH(e){n.debug=n,n.default=n,n.coerce=u,n.disable=o,n.enable=a,n.enabled=i,n.humanize=ok(),n.destroy=d,Object.keys(e).forEach(m=>{n[m]=e[m]}),n.names=[],n.skips=[],n.formatters={};function t(m){let p=0;for(let h=0;h<m.length;h++)p=(p<<5)-p+m.charCodeAt(h),p|=0;return n.colors[Math.abs(p)%n.colors.length]}s(t,"selectColor"),n.selectColor=t;function n(m){let p,h=null,f,g;function v(...w){if(!v.enabled)return;let E=v,T=Number(new Date),S=T-(p||T);E.diff=S,E.prev=p,E.curr=T,p=T,w[0]=n.coerce(w[0]),typeof w[0]!="string"&&w.unshift("%O");let C=0;w[0]=w[0].replace(/%([a-zA-Z%])/g,(L,M)=>{if(L==="%%")return"%";C++;let W=n.formatters[M];if(typeof W=="function"){let te=w[C];L=W.call(E,te),w.splice(C,1),C--}return L}),n.formatArgs.call(E,w),(E.log||n.log).apply(E,w)}return s(v,"debug"),v.namespace=m,v.useColors=n.useColors(),v.color=n.selectColor(m),v.extend=r,v.destroy=n.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(f!== n.namespaces&&(f=n.namespaces,g=n.enabled(m)),g),set:w=>{h=w}}),typeof n.init=="function"&&n.init(v),v}s(n,"createDebug");function r(m,p){let h=n(this.namespace+(typeof p>"u"?":":p)+m);return h.log=this.log,h}s(r,"extend");function a(m){n.save(m),n.namespaces=m,n.names=[],n.skips=[];let p,h=(typeof m=="string"?m:"").split(/[\s,]+/),f=h.length;for(p=0;p<f;p++)h[p]&&(m=h[p].replace(/\*/g,".*?"),m[0]==="-"?n.skips.push(new RegExp("^"+m.slice(1)+"$")):n.names.push(new RegExp("^"+m+"$")))}s(a,"enable");function o(){let m=[...n.names.map(c),...n.skips.map(c).map(p=>"-"+p)].join(",");return n.enable(""),m}s(o,"disable");function i(m){if(m[m.length-1]==="*")return!0;let p,h;for(p=0,h=n.skips.length;p<h;p++)if(n.skips[p].test(m))return!1;for(p=0,h=n.names.length;p<h;p++)if(n.names[p].test(m))return!0;return!1}s(i,"enabled");function c(m){return m.toString().substring(2,m.toString().length-2).replace(/\.\*\?$/,"*")}s(c,"toNamespace");function u(m){return m instanceof Error?m.stack||m.message:m}s( u,"coerce");function d(){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(d,"destroy"),n.enable(n.load()),n}s(nH,"setup");ik.exports=nH});var ck=P((Mn,lm)=>{l();Mn.formatArgs=aH;Mn.save=oH;Mn.load=iH;Mn.useColors=rH;Mn.storage=sH();Mn.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`."))}})();Mn.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","#F\ F33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function rH(){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(rH,"useColors");function aH(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+lm.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice( 1,0,t,"color: inherit");let n=0,r=0;e[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(n++,a==="%c"&&(r=n))}),e.splice(r,0,t)}s(aH,"formatArgs");Mn.log=console.debug||console.log||(()=>{});function oH(e){try{e?Mn.storage.setItem("debug",e):Mn.storage.removeItem("debug")}catch{}}s(oH,"save");function iH(){let e;try{e=Mn.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}s(iH,"load");function sH(){try{return localStorage}catch{}}s(sH,"localstorage");lm.exports=sk()(Mn);var{formatters:cH}=lm.exports;cH.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});function dm(e){if(!e)throw new Error("name must be non-empty")}function uH(e,t){for(var n=0,r=e.length,a;n<r;)a=n+r>>>1,e[a].startTime<t.startTime?n=a+1:r=a;e.splice(n,0,t)}var vn,uk,fm,hm,_c,gm,mm,pm,lk=y(()=>{l();vn=typeof performance<"u"&&performance,uk=vn&&vn.now?function(){return vn.now()}:function(){return Date.now()};s(dm,"throwIfEmpty");s(uH,"insertSorted");vn&&vn.mark&&vn.getEntriesByName&&vn.getEntriesByType&&vn.clearMeasures?(fm=s(function(e){dm(e),vn.mark("start "+e)},"mark"),hm=s(function(e){dm(e),vn.mark("end "+e),vn.measure(e,"start "+e,"end "+e);var t=vn.getEntriesByName(e);return t[t.length-1]},"stop"),_c=s(function(){return vn.getEntriesByType("measure")},"getEntries"),gm=s(function(){vn.clearMarks(),vn.clearMeasures()},"clear")):(mm={},pm=[],fm=s(function(e){dm(e);var t=uk();mm["$"+e]=t},"mark"),hm=s(function(e){dm(e);var t=uk(),n=mm["$"+e];if(!n)throw new Error("no known mark: "+e);var r={startTime:n,name:e,duration:t-n,entryType:"measure"};return uH(pm,r),r},"stop"), _c=s(function(){return pm},"getEntries"),gm=s(function(){mm={},pm=[]},"clear"))});var Aa,Ra,Mi,Pi,d1,dk,dH,mk,Li,N,Ae=y(()=>{l();ka();Zr();Aa=Bt(ck());lk();Ra=an.platform==="win32",Mi=an.browser,Pi={red:Mi?"crimson":1,yellow:Mi?"gold":3,cyan:Mi?"darkturquoise":6,green:Mi?"forestgreen":2,blue:Mi?"steelblue":4,magenta:Mi?"palevioletred":5};Aa.default.colors=[Pi.cyan,Pi.green,Pi.blue,Pi.magenta];d1=class extends We{static{s(this,"Emitter")}issueStatus(t,n){(t==="status"||t==="statusEnd")&&this.emit(t,[t,...n])}issueWarning(t,n){this.emit("warning",[t,...n])}},dk={},dH=25,Li=class e{static{s(this,"Log")}static _logToStdErr(t,n){e.loggerfn(t)(...n)}static loggerfn(t){t=`LH:${t}`;let n=dk[t];return n||(n=(0,Aa.default)(t),dk[t]=n,t.endsWith("error")?n.color=Pi.red:t.endsWith("warn")&&(n.color=Pi.yellow)),n}static setLevel(t){switch(mk=t,t){case"silent":Aa.default.enable("-LH:*");break;case"verbose":Aa.default.enable("LH:*");break;case"warn":Aa.default.enable("-LH:*, LH:*:warn, LH:*:error");break;case"error":Aa.default.enable("-LH:*, LH:*:error");break;default:Aa.default.enable( "LH:*, -LH:*:verbose")}}static formatProtocol(t,n,r){let a=!an||an.browser?1/0:an.stdout.columns,o=n.method||"?????",i=a-o.length-t.length-dH,c=n.params&&o!=="IO.read"?JSON.stringify(n.params).substr(0,i):"";e._logToStdErr(`${t}:${r||""}`,[o,c])}static isVerbose(){return mk==="verbose"}static time({msg:t,id:n,args:r=[]},a="log"){fm(n),e[a]("status",t,...r)}static timeEnd({msg:t,id:n,args:r=[]},a="verbose"){e[a]("statusEnd",t,...r),hm(n)}static log(t,...n){return e.events.issueStatus(t,n),e._logToStdErr(t,n)}static warn(t,...n){return e.events.issueWarning(t,n),e._logToStdErr(`${t}:warn`,n)}static error(t,...n){return e._logToStdErr(`${t}:error`,n)}static verbose(t,...n){return e.events.issueStatus(t,n),e._logToStdErr(`${t}:verbose`,n)}static greenify(t){return`${e.green}${t}${e.reset}`}static redify(t){return`${e.red}${t}${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 Ra?"√":"✓"}static get cross(){return Ra?"×":"✘"}static get whiteSmallSquare(){return Ra?"·":"▫"}static get heavyHorizontal(){return Ra?"─":"━"}static get heavyVertical(){return Ra?"│ ":"┃ "}static get heavyUpAndRight(){return Ra?"└":"┗"}static get heavyVerticalAndRight(){return Ra?"├":"┣"}static get heavyDownAndHorizontal(){return Ra?"┬":"┳"}static get doubleLightHorizontal(){return"──"}};Li.events=new d1;Li.takeTimeEntries=()=>{let e=_c();return gm(),e};Li.getTimeEntries=()=>_c();N=Li});var on=y(()=>{"use strict";l();});var m1,J,Ye=y(()=>{"use strict";l();on();m1=class{static{s(this,"BaseGatherer")}meta={supportedModes:[]};startInstrumentation(t){}startSensitiveInstrumentation(t){}stopSensitiveInstrumentation(t){}stopInstrumentation(t){}getArtifact(t){}},J=m1});var mH,pH,fH,hH,gH,yH,Jt,Jr=y(()=>{"use strict";l();Ae();mH=/^(chrome|https?):/,pH=16,fH="RunTask",hH="ThreadControllerImpl::RunTask",gH="ThreadControllerImpl::DoWork",yH="TaskQueueManager::ProcessTaskFromWorkQueue",Jt=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(t){return t.name!=="navigationStart"?!1:t.args.data?.documentLoaderURL===void 0?!0:t.args.data?.documentLoaderURL?mH.test(t.args.data.documentLoaderURL):!1}static _sortTimestampEventGroup(t,n,r,a){ let o=s(p=>n[p],"lookupArrayIndexByTsIndex"),i=s(p=>a[o(p)],"lookupEventByTsIndex"),c=[],u=[],d=[];for(let p of t){let h=o(p),f=i(p);f.ph==="E"?c.push(h):f.ph==="X"||f.ph==="B"?u.push(h):d.push(h)}let m=new Map;for(let p of u){let h=a[p];if(h.ph==="X")m.set(p,h.dur);else{let f=Number.MAX_SAFE_INTEGER,g=0,v=r+t.length;for(let w=v;w<n.length;w++){let E=i(w);if(E.name===h.name&&E.pid===h.pid&&E.tid===h.tid)if(E.ph==="E"&&g===0){f=E.ts-h.ts;break}else E.ph==="E"?g--:E.ph==="B"&&g++}m.set(p,f)}}return u.sort((p,h)=>(m.get(h)||0)-(m.get(p)||0)||p-h),d.sort((p,h)=>p-h),[...c,...u,...d]}static filteredTraceSort(t,n){let r=[];for(let o=0;o<t.length;o++)n(t[o])&&r.push(o);r.sort((o,i)=>t[o].ts-t[i].ts);for(let o=0;o<r.length-1;o++){let i=t[r[o]].ts,c=[o];for(let d=o+1;d<r.length&&t[r[d]].ts===i;d++)c.push(d);if(c.length===1)continue;let u=e._sortTimestampEventGroup(c,r,o,t);r.splice(o,u.length,...u),o+=c.length-1}let a=[];for(let o=0;o<r.length;o++)a.push(t[r[o]]);return a}static assertHasToplevelEvents(t){ if(!t.some(this.isScheduleableTask))throw new Error("Could not find any top level events")}static _riskPercentiles(t,n,r,a=0){let o=0;for(let h=0;h<t.length;h++)o+=t[h];o-=a;let i=n-o,c=0,u=i,d=[],m=-1,p=t.length+1;a>0&&p--;for(let h of r){let f=h*n;for(;u<f&&m<t.length-1;)i+=c,p-=c<0?-1:1,a>0&&a<t[m+1]?(c=-a,a=0):(m++,c=t[m]),u=i+Math.abs(c)*p;d.push({percentile:h,time:Math.max(0,(f-i)/p)+pH})}return d}static getRiskToResponsiveness(t,n,r,a=[.5,.75,.9,.99,1]){let o=r-n;a.sort((c,u)=>c-u);let i=this.getMainThreadTopLevelEventDurations(t,n,r);return this._riskPercentiles(i.durations,o,a,i.clippedLength)}static getMainThreadTopLevelEventDurations(t,n=0,r=1/0){let a=[],o=0;for(let i of t){if(i.end<n||i.start>r)continue;let c=i.duration,u=i.start;u<n&&(u=n,c=i.end-n),i.end>r&&(o=c-(r-u)),a.push(c)}return a.sort((i,c)=>i-c),{durations:a,clippedLength:o}}static getMainThreadTopLevelEvents(t,n=0,r=1/0){let a=[],o;for(let i of t.mainThreadEvents){if(!this.isScheduleableTask(i)||!i.dur)continue; let c=(i.ts-t.timeOriginEvt.ts)/1e3,u=(i.ts+i.dur-t.timeOriginEvt.ts)/1e3;c>r||u<n||(o&&c<o.end&&(o.end=c-.001),o={start:c,end:u,duration:i.dur/1e3},a.push(o))}return a}static findMainFrameIds(t){let n=t.find(i=>i.name==="TracingStartedInBrowser");if(n?.args.data?.frames){let i=n.args.data.frames.find(d=>!d.parent),c=i?.frame,u=i?.processId;if(u&&c)return{startingPid:u,frameId:c}}let r=t.find(i=>i.name==="TracingStartedInPage");if(r?.args?.data){let i=r.args.data.page;if(i)return{startingPid:r.pid,frameId:i}}let a=t.find(i=>this._isNavigationStartOfInterest(i)&&i.args.data?.isLoadingMainFrame),o=t.find(i=>i.name==="ResourceSendRequest");if(a?.args?.data&&o&&o.pid===a.pid&&o.tid===a.tid){let i=a.args.frame;if(i)return{startingPid:a.pid,frameId:i}}throw this.createNoTracingStartedError()}static findMainFramePidTids(t,n){let r=n.filter(i=>(i.name==="FrameCommittedInBrowser"||i.name==="ProcessReadyInBrowser")&&i.args?.data?.frame===t.frameId&&i?.args?.data?.processId),a=r.length?r.map(i=>i?. args?.data?.processId):[t.startingPid],o=new Map;for(let i of new Set(a)){let c=n.filter(m=>m.cat==="__metadata"&&m.pid===i&&m.ph==="M"&&m.name==="thread_name"),u=c.find(m=>m.args.name==="CrRendererMain");u||(u=c.find(m=>m.args.name==="CrBrowserMain"));let d=u?.tid;if(!d)throw new Error("Unable to determine tid for renderer process");o.set(i,d)}return o}static isScheduleableTask(t){return t.name===fH||t.name===hH||t.name===gH||t.name===yH}static isLCPEvent(t){return t.name!=="largestContentfulPaint::Invalidate"&&t.name!=="largestContentfulPaint::Candidate"?!1:!!t.args?.frame}static isLCPCandidateEvent(t){return!!(t.name==="largestContentfulPaint::Candidate"&&t.args?.frame&&t.args.data&&t.args.data.size!==void 0)}static getFrameId(t){return t.args?.data?.frame||t.args.data?.frameID||t.args.frame}static computeValidLCPAllFrames(t,n){let r=t.filter(this.isLCPEvent).reverse(),a=new Map;for(let i of r){if(i.ts<=n.ts)break;let c=i.args.frame;a.has(c)||a.set(c,i)}let o;for(let i of a.values()) this.isLCPCandidateEvent(i)&&(!o||i.args.data.size>o.args.data.size)&&(o=i);return{lcp:o,invalidated:!!(!o&&a.size)}}static resolveRootFrames(t){let n=new Map;for(let a of t)a.parent&&n.set(a.id,a.parent);let r=new Map;for(let a of t){let o=a.id;for(;n.has(o);)o=n.get(o);if(o===void 0)throw new Error("Unexpected undefined frameId");r.set(a.id,o)}return r}static processTrace(t,n){let{timeOriginDeterminationMethod:r="auto"}=n||{},a=this.filteredTraceSort(t.traceEvents,C=>C.cat.includes("blink.user_timing")||C.cat.includes("loading")||C.cat.includes("devtools.timeline")||C.cat==="__metadata"),o=this.findM