@live-codes/browser-compilers 0.5.2 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +1 -3
- package/dist/@testing-library/dom.js +62 -0
- package/dist/@testing-library/jest-dom.js +43 -0
- package/dist/@testing-library/react.js +99 -0
- package/dist/eslint/eslint.js +143 -0
- package/package.json +13 -10
- package/scripts/types.js +7 -0
- package/scripts/utils.js +45 -0
- package/scripts/vendors.js +38 -37
- package/vendor_modules/imports/@testing-library/dom.js +1 -0
- package/vendor_modules/imports/@testing-library/jest-dom.js +1 -0
- package/vendor_modules/imports/@testing-library/preact.js +1 -0
- package/vendor_modules/imports/@testing-library/react.js +1 -0
- package/vendor_modules/imports/@testing-library/svelte.js +1 -0
- package/vendor_modules/imports/@testing-library/vue.js +1 -0
- package/vendor_modules/imports/eslint.js +1 -0
- package/vendor_modules/src/lua-fmt/lua-fmt.js +51 -0
- package/vendor_modules/src/lua-fmt/readme.md +1 -0
- package/dist/monaco-editor/codicon-2HT6E3BE.ttf +0 -0
- package/dist/monaco-editor/css.worker.js +0 -65
- package/dist/monaco-editor/editor.worker.js +0 -6
- package/dist/monaco-editor/html.worker.js +0 -455
- package/dist/monaco-editor/json.worker.js +0 -38
- package/dist/monaco-editor/languages/astro.js +0 -1
- package/dist/monaco-editor/languages/clio.js +0 -1
- package/dist/monaco-editor/languages/imba.js +0 -1
- package/dist/monaco-editor/languages/wat.js +0 -1
- package/dist/monaco-editor/monaco-editor.css +0 -1
- package/dist/monaco-editor/monaco-editor.js +0 -800
- package/dist/monaco-editor/ts.worker.js +0 -35324
- package/scripts/patch.js +0 -25
- package/vendor_modules/imports/monaco-editor.ts +0 -1
- package/vendor_modules/modules/monaco-languages/astro.ts +0 -222
- package/vendor_modules/modules/monaco-languages/clio.ts +0 -120
- package/vendor_modules/modules/monaco-languages/imba.ts +0 -1520
- package/vendor_modules/modules/monaco-languages/wat.ts +0 -710
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
var eslint=(()=>{var B3=Object.create,Ua=Object.defineProperty,O3=Object.getPrototypeOf,R3=Object.prototype.hasOwnProperty,L3=Object.getOwnPropertyNames,N3=Object.getOwnPropertyDescriptor;var M3=t=>Ua(t,"__esModule",{value:!0});var as=(t,e)=>()=>(t&&(e=t(t=0)),e),M=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),$a=(t,e)=>{for(var r in e)Ua(t,r,{get:e[r],enumerable:!0})},j3=(t,e,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of L3(e))!R3.call(t,n)&&n!=="default"&&Ua(t,n,{get:()=>e[n],enumerable:!(r=N3(e,n))||r.enumerable});return t},q3=t=>j3(M3(Ua(t!=null?B3(O3(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);function wh(){throw new Error("setTimeout has not been defined")}function kh(){throw new Error("clearTimeout has not been defined")}function Dh(t){if(ks===setTimeout)return setTimeout(t,0);if((ks===wh||!ks)&&setTimeout)return ks=setTimeout,setTimeout(t,0);try{return ks(t,0)}catch(e){try{return ks.call(null,t,0)}catch(r){return ks.call(this,t,0)}}}function V3(t){if(Ds===clearTimeout)return clearTimeout(t);if((Ds===kh||!Ds)&&clearTimeout)return Ds=clearTimeout,clearTimeout(t);try{return Ds(t)}catch(e){try{return Ds.call(null,t)}catch(r){return Ds.call(this,t)}}}function U3(){!Nn||!Xs||(Nn=!1,Xs.length?os=Xs.concat(os):Wa=-1,os.length&&Th())}function Th(){if(!Nn){var t=Dh(U3);Nn=!0;for(var e=os.length;e;){for(Xs=os,os=[];++Wa<e;)Xs&&Xs[Wa].run();Wa=-1,e=os.length}Xs=null,Nn=!1,V3(t)}}function $3(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];os.push(new Fh(t,e)),os.length===1&&!Nn&&Dh(Th)}function Fh(t,e){this.fun=t,this.array=e}function Zs(){}function aN(t){throw new Error("process.binding is not supported")}function oN(){return"/"}function lN(t){throw new Error("process.chdir is not supported")}function uN(){return 0}function fN(t){var e=cN.call(Mn)*.001,r=Math.floor(e),n=Math.floor(e%1*1e9);return t&&(r=r-t[0],n=n-t[1],n<0&&(r--,n+=1e9)),[r,n]}function hN(){var t=new Date,e=t-pN;return e/1e3}var ks,Ds,os,Nn,Xs,Wa,W3,G3,z3,H3,K3,Y3,J3,Q3,X3,Z3,eN,tN,rN,sN,nN,iN,Mn,cN,pN,L,Ph,b=as(()=>{ks=wh,Ds=kh;typeof window.setTimeout=="function"&&(ks=setTimeout);typeof window.clearTimeout=="function"&&(Ds=clearTimeout);os=[],Nn=!1,Wa=-1;Fh.prototype.run=function(){this.fun.apply(null,this.array)};W3="browser",G3="browser",z3=!0,H3={},K3=[],Y3="",J3={},Q3={},X3={};Z3=Zs,eN=Zs,tN=Zs,rN=Zs,sN=Zs,nN=Zs,iN=Zs;Mn=window.performance||{},cN=Mn.now||Mn.mozNow||Mn.msNow||Mn.oNow||Mn.webkitNow||function(){return new Date().getTime()};pN=new Date;L={nextTick:$3,title:W3,browser:z3,env:H3,argv:K3,version:Y3,versions:J3,on:Z3,addListener:eN,once:tN,off:rN,removeListener:sN,removeAllListeners:nN,emit:iN,binding:aN,cwd:oN,chdir:lN,umask:uN,hrtime:fN,platform:G3,release:Q3,config:X3,uptime:hN},Ph={"env.NODE_ENV":"production"};Object.keys(Ph).forEach(t=>{let e=t.split("."),r=L;for(let n=0;n<e.length;n++){let s=e[n];n===e.length-1?r[s]=Ph[t]:r=r[s]||(r[s]={})}})});function Ih(){yu=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e<r;++e)zr[e]=t[e],Ar[t.charCodeAt(e)]=e;Ar["-".charCodeAt(0)]=62,Ar["_".charCodeAt(0)]=63}function dN(t){yu||Ih();var e,r,n,s,i,a,o=t.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i=t[o-2]==="="?2:t[o-1]==="="?1:0,a=new mN(o*3/4-i),n=i>0?o-4:o;var l=0;for(e=0,r=0;e<n;e+=4,r+=3)s=Ar[t.charCodeAt(e)]<<18|Ar[t.charCodeAt(e+1)]<<12|Ar[t.charCodeAt(e+2)]<<6|Ar[t.charCodeAt(e+3)],a[l++]=s>>16&255,a[l++]=s>>8&255,a[l++]=s&255;return i===2?(s=Ar[t.charCodeAt(e)]<<2|Ar[t.charCodeAt(e+1)]>>4,a[l++]=s&255):i===1&&(s=Ar[t.charCodeAt(e)]<<10|Ar[t.charCodeAt(e+1)]<<4|Ar[t.charCodeAt(e+2)]>>2,a[l++]=s>>8&255,a[l++]=s&255),a}function gN(t){return zr[t>>18&63]+zr[t>>12&63]+zr[t>>6&63]+zr[t&63]}function yN(t,e,r){for(var n,s=[],i=e;i<r;i+=3)n=(t[i]<<16)+(t[i+1]<<8)+t[i+2],s.push(gN(n));return s.join("")}function _h(t){yu||Ih();for(var e,r=t.length,n=r%3,s="",i=[],a=16383,o=0,l=r-n;o<l;o+=a)i.push(yN(t,o,o+a>l?l:o+a));return n===1?(e=t[r-1],s+=zr[e>>2],s+=zr[e<<4&63],s+="=="):n===2&&(e=(t[r-2]<<8)+t[r-1],s+=zr[e>>10],s+=zr[e>>4&63],s+=zr[e<<2&63],s+="="),i.push(s),i.join("")}function Ga(){return P.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ls(t,e){if(Ga()<e)throw new RangeError("Invalid typed array length");return P.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=P.prototype):(t===null&&(t=new P(e)),t.length=e),t}function P(t,e,r){if(!P.TYPED_ARRAY_SUPPORT&&!(this instanceof P))return new P(t,e,r);if(typeof t=="number"){if(typeof e=="string")throw new Error("If encoding is specified then the first argument must be a string");return xu(this,t)}return Bh(this,t,e,r)}function Bh(t,e,r,n){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&e instanceof ArrayBuffer?EN(t,e,r,n):typeof e=="string"?xN(t,e,r):bN(t,e)}function Oh(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function vN(t,e,r,n){return Oh(e),e<=0?ls(t,e):r!==void 0?typeof n=="string"?ls(t,e).fill(r,n):ls(t,e).fill(r):ls(t,e)}function xu(t,e){if(Oh(e),t=ls(t,e<0?0:Eu(e)|0),!P.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function xN(t,e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!P.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=Rh(e,r)|0;t=ls(t,n);var s=t.write(e,r);return s!==n&&(t=t.slice(0,s)),t}function bu(t,e){var r=e.length<0?0:Eu(e.length)|0;t=ls(t,r);for(var n=0;n<r;n+=1)t[n]=e[n]&255;return t}function EN(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return r===void 0&&n===void 0?e=new Uint8Array(e):n===void 0?e=new Uint8Array(e,r):e=new Uint8Array(e,r,n),P.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=P.prototype):t=bu(t,e),t}function bN(t,e){if(Hr(e)){var r=Eu(e.length)|0;return t=ls(t,r),t.length===0||e.copy(t,0,0,r),t}if(e){if(typeof ArrayBuffer!="undefined"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||CN(e.length)?ls(t,0):bu(t,e);if(e.type==="Buffer"&&Array.isArray(e.data))return bu(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Eu(t){if(t>=Ga())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ga().toString(16)+" bytes");return t|0}function Hr(t){return!!(t!=null&&t._isBuffer)}function Rh(t,e){if(Hr(t))return t.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var r=t.length;if(r===0)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return za(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Lh(t).length;default:if(n)return za(t).length;e=(""+e).toLowerCase(),n=!0}}function FN(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return DN(this,e,r);case"utf8":case"utf-8":return Nh(this,e,r);case"ascii":return wN(this,e,r);case"latin1":case"binary":return kN(this,e,r);case"base64":return AN(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return TN(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function en(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function jh(t,e,r,n,s){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=s?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(s)return-1;r=t.length-1}else if(r<0)if(s)r=0;else return-1;if(typeof e=="string"&&(e=P.from(e,n)),Hr(e))return e.length===0?-1:Mh(t,e,r,n,s);if(typeof e=="number")return e=e&255,P.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?s?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Mh(t,[e],r,n,s);throw new TypeError("val must be string, number or Buffer")}function Mh(t,e,r,n,s){var i=1,a=t.length,o=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;i=2,a/=2,o/=2,r/=2}function l(f,m){return i===1?f[m]:f.readUInt16BE(m*i)}var u;if(s){var c=-1;for(u=r;u<a;u++)if(l(t,u)===l(e,c===-1?0:u-c)){if(c===-1&&(c=u),u-c+1===o)return c*i}else c!==-1&&(u-=u-c),c=-1}else for(r+o>a&&(r=a-o),u=r;u>=0;u--){for(var p=!0,h=0;h<o;h++)if(l(t,u+h)!==l(e,h)){p=!1;break}if(p)return u}return-1}function PN(t,e,r,n){r=Number(r)||0;var s=t.length-r;n?(n=Number(n),n>s&&(n=s)):n=s;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var o=parseInt(e.substr(a*2,2),16);if(isNaN(o))return a;t[r+a]=o}return a}function IN(t,e,r,n){return Ha(za(e,t.length-r),t,r,n)}function qh(t,e,r,n){return Ha(_N(e),t,r,n)}function BN(t,e,r,n){return qh(t,e,r,n)}function ON(t,e,r,n){return Ha(Lh(e),t,r,n)}function LN(t,e,r,n){return Ha(RN(e,t.length-r),t,r,n)}function AN(t,e,r){return e===0&&r===t.length?_h(t):_h(t.slice(e,r))}function Nh(t,e,r){r=Math.min(t.length,r);for(var n=[],s=e;s<r;){var i=t[s],a=null,o=i>239?4:i>223?3:i>191?2:1;if(s+o<=r){var l,u,c,p;switch(o){case 1:i<128&&(a=i);break;case 2:l=t[s+1],(l&192)==128&&(p=(i&31)<<6|l&63,p>127&&(a=p));break;case 3:l=t[s+1],u=t[s+2],(l&192)==128&&(u&192)==128&&(p=(i&15)<<12|(l&63)<<6|u&63,p>2047&&(p<55296||p>57343)&&(a=p));break;case 4:l=t[s+1],u=t[s+2],c=t[s+3],(l&192)==128&&(u&192)==128&&(c&192)==128&&(p=(i&15)<<18|(l&63)<<12|(u&63)<<6|c&63,p>65535&&p<1114112&&(a=p))}}a===null?(a=65533,o=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),s+=o}return NN(n)}function NN(t){var e=t.length;if(e<=Vh)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Vh));return r}function wN(t,e,r){var n="";r=Math.min(t.length,r);for(var s=e;s<r;++s)n+=String.fromCharCode(t[s]&127);return n}function kN(t,e,r){var n="";r=Math.min(t.length,r);for(var s=e;s<r;++s)n+=String.fromCharCode(t[s]);return n}function DN(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var s="",i=e;i<r;++i)s+=MN(t[i]);return s}function TN(t,e,r){for(var n=t.slice(e,r),s="",i=0;i<n.length;i+=2)s+=String.fromCharCode(n[i]+n[i+1]*256);return s}function Ut(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function ur(t,e,r,n,s,i){if(!Hr(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>s||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function Ya(t,e,r,n){e<0&&(e=65535+e+1);for(var s=0,i=Math.min(t.length-r,2);s<i;++s)t[r+s]=(e&255<<8*(n?s:1-s))>>>(n?s:1-s)*8}function Ja(t,e,r,n){e<0&&(e=4294967295+e+1);for(var s=0,i=Math.min(t.length-r,4);s<i;++s)t[r+s]=e>>>(n?s:3-s)*8&255}function Uh(t,e,r,n,s,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Wh(t,e,r,n,s){return s||Uh(t,e,r,4,34028234663852886e22,-34028234663852886e22),$h(t,e,r,n,23,4),r+4}function Gh(t,e,r,n,s){return s||Uh(t,e,r,8,17976931348623157e292,-17976931348623157e292),$h(t,e,r,n,52,8),r+8}function VN(t){if(t=qN(t).replace(jN,""),t.length<2)return"";for(;t.length%4!=0;)t=t+"=";return t}function qN(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function MN(t){return t<16?"0"+t.toString(16):t.toString(16)}function za(t,e){e=e||Infinity;for(var r,n=t.length,s=null,i=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!s){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}s=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),s=r;continue}r=(s-55296<<10|r-56320)+65536}else s&&(e-=3)>-1&&i.push(239,191,189);if(s=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return i}function _N(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function RN(t,e){for(var r,n,s,i=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,s=r%256,i.push(s),i.push(n);return i}function Lh(t){return dN(VN(t))}function Ha(t,e,r,n){for(var s=0;s<n&&!(s+r>=e.length||s>=t.length);++s)e[s+r]=t[s];return s}function CN(t){return t!==t}function SN(t){return t!=null&&(!!t._isBuffer||zh(t)||UN(t))}function zh(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function UN(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&zh(t.slice(0,0))}function Ka(t,e,r,n,s){var i,a,o=s*8-n-1,l=(1<<o)-1,u=l>>1,c=-7,p=r?s-1:0,h=r?-1:1,f=t[e+p];for(p+=h,i=f&(1<<-c)-1,f>>=-c,c+=o;c>0;i=i*256+t[e+p],p+=h,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=a*256+t[e+p],p+=h,c-=8);if(i===0)i=1-u;else{if(i===l)return a?NaN:(f?-1:1)*Infinity;a=a+Math.pow(2,n),i=i-u}return(f?-1:1)*a*Math.pow(2,i-n)}function $h(t,e,r,n,s,i){var a,o,l,u=i*8-s-1,c=(1<<u)-1,p=c>>1,h=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:i-1,m=n?1:-1,x=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===Infinity?(o=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+p>=1?e+=h/l:e+=h*Math.pow(2,1-p),e*l>=2&&(a++,l/=2),a+p>=c?(o=0,a=c):a+p>=1?(o=(e*l-1)*Math.pow(2,s),a=a+p):(o=e*Math.pow(2,p-1)*Math.pow(2,s),a=0));s>=8;t[r+f]=o&255,f+=m,o/=256,s-=8);for(a=a<<s|o,u+=s;u>0;t[r+f]=a&255,f+=m,a/=256,u-=8);t[r+f-m]|=x*128}var zr,Ar,mN,yu,Vh,jN,Hh=as(()=>{b();v();zr=[],Ar=[],mN=typeof Uint8Array!="undefined"?Uint8Array:Array,yu=!1;P.TYPED_ARRAY_SUPPORT=window.TYPED_ARRAY_SUPPORT!==void 0?window.TYPED_ARRAY_SUPPORT:!0;P.poolSize=8192;P._augment=function(t){return t.__proto__=P.prototype,t};P.from=function(t,e,r){return Bh(null,t,e,r)};P.kMaxLength=Ga();P.TYPED_ARRAY_SUPPORT&&(P.prototype.__proto__=Uint8Array.prototype,P.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&P[Symbol.species]===P);P.alloc=function(t,e,r){return vN(null,t,e,r)};P.allocUnsafe=function(t){return xu(null,t)};P.allocUnsafeSlow=function(t){return xu(null,t)};P.isBuffer=SN;P.compare=function(e,r){if(!Hr(e)||!Hr(r))throw new TypeError("Arguments must be Buffers");if(e===r)return 0;for(var n=e.length,s=r.length,i=0,a=Math.min(n,s);i<a;++i)if(e[i]!==r[i]){n=e[i],s=r[i];break}return n<s?-1:s<n?1:0};P.isEncoding=function(e){switch(String(e).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}};P.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return P.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var s=P.allocUnsafe(r),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!Hr(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(s,i),i+=a.length}return s};P.byteLength=Rh;P.prototype._isBuffer=!0;P.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)en(this,r,r+1);return this};P.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)en(this,r,r+3),en(this,r+1,r+2);return this};P.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)en(this,r,r+7),en(this,r+1,r+6),en(this,r+2,r+5),en(this,r+3,r+4);return this};P.prototype.toString=function(){var e=this.length|0;return e===0?"":arguments.length===0?Nh(this,0,e):FN.apply(this,arguments)};P.prototype.equals=function(e){if(!Hr(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:P.compare(this,e)===0};P.prototype.compare=function(e,r,n,s,i){if(!Hr(e))throw new TypeError("Argument must be a Buffer");if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),s===void 0&&(s=0),i===void 0&&(i=this.length),r<0||n>e.length||s<0||i>this.length)throw new RangeError("out of range index");if(s>=i&&r>=n)return 0;if(s>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,s>>>=0,i>>>=0,this===e)return 0;for(var a=i-s,o=n-r,l=Math.min(a,o),u=this.slice(s,i),c=e.slice(r,n),p=0;p<l;++p)if(u[p]!==c[p]){a=u[p],o=c[p];break}return a<o?-1:o<a?1:0};P.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};P.prototype.indexOf=function(e,r,n){return jh(this,e,r,n,!0)};P.prototype.lastIndexOf=function(e,r,n){return jh(this,e,r,n,!1)};P.prototype.write=function(e,r,n,s){if(r===void 0)s="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")s=r,n=this.length,r=0;else if(isFinite(r))r=r|0,isFinite(n)?(n=n|0,s===void 0&&(s="utf8")):(s=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-r;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");for(var a=!1;;)switch(s){case"hex":return PN(this,e,r,n);case"utf8":case"utf-8":return IN(this,e,r,n);case"ascii":return qh(this,e,r,n);case"latin1":case"binary":return BN(this,e,r,n);case"base64":return ON(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return LN(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),a=!0}};P.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};Vh=4096;P.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var s;if(P.TYPED_ARRAY_SUPPORT)s=this.subarray(e,r),s.__proto__=P.prototype;else{var i=r-e;s=new P(i,void 0);for(var a=0;a<i;++a)s[a]=this[a+e]}return s};P.prototype.readUIntLE=function(e,r,n){e=e|0,r=r|0,n||Ut(e,r,this.length);for(var s=this[e],i=1,a=0;++a<r&&(i*=256);)s+=this[e+a]*i;return s};P.prototype.readUIntBE=function(e,r,n){e=e|0,r=r|0,n||Ut(e,r,this.length);for(var s=this[e+--r],i=1;r>0&&(i*=256);)s+=this[e+--r]*i;return s};P.prototype.readUInt8=function(e,r){return r||Ut(e,1,this.length),this[e]};P.prototype.readUInt16LE=function(e,r){return r||Ut(e,2,this.length),this[e]|this[e+1]<<8};P.prototype.readUInt16BE=function(e,r){return r||Ut(e,2,this.length),this[e]<<8|this[e+1]};P.prototype.readUInt32LE=function(e,r){return r||Ut(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};P.prototype.readUInt32BE=function(e,r){return r||Ut(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};P.prototype.readIntLE=function(e,r,n){e=e|0,r=r|0,n||Ut(e,r,this.length);for(var s=this[e],i=1,a=0;++a<r&&(i*=256);)s+=this[e+a]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*r)),s};P.prototype.readIntBE=function(e,r,n){e=e|0,r=r|0,n||Ut(e,r,this.length);for(var s=r,i=1,a=this[e+--s];s>0&&(i*=256);)a+=this[e+--s]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*r)),a};P.prototype.readInt8=function(e,r){return r||Ut(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};P.prototype.readInt16LE=function(e,r){r||Ut(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};P.prototype.readInt16BE=function(e,r){r||Ut(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};P.prototype.readInt32LE=function(e,r){return r||Ut(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};P.prototype.readInt32BE=function(e,r){return r||Ut(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};P.prototype.readFloatLE=function(e,r){return r||Ut(e,4,this.length),Ka(this,e,!0,23,4)};P.prototype.readFloatBE=function(e,r){return r||Ut(e,4,this.length),Ka(this,e,!1,23,4)};P.prototype.readDoubleLE=function(e,r){return r||Ut(e,8,this.length),Ka(this,e,!0,52,8)};P.prototype.readDoubleBE=function(e,r){return r||Ut(e,8,this.length),Ka(this,e,!1,52,8)};P.prototype.writeUIntLE=function(e,r,n,s){if(e=+e,r=r|0,n=n|0,!s){var i=Math.pow(2,8*n)-1;ur(this,e,r,n,i,0)}var a=1,o=0;for(this[r]=e&255;++o<n&&(a*=256);)this[r+o]=e/a&255;return r+n};P.prototype.writeUIntBE=function(e,r,n,s){if(e=+e,r=r|0,n=n|0,!s){var i=Math.pow(2,8*n)-1;ur(this,e,r,n,i,0)}var a=n-1,o=1;for(this[r+a]=e&255;--a>=0&&(o*=256);)this[r+a]=e/o&255;return r+n};P.prototype.writeUInt8=function(e,r,n){return e=+e,r=r|0,n||ur(this,e,r,1,255,0),P.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[r]=e&255,r+1};P.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r|0,n||ur(this,e,r,2,65535,0),P.TYPED_ARRAY_SUPPORT?(this[r]=e&255,this[r+1]=e>>>8):Ya(this,e,r,!0),r+2};P.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r|0,n||ur(this,e,r,2,65535,0),P.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=e&255):Ya(this,e,r,!1),r+2};P.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r|0,n||ur(this,e,r,4,4294967295,0),P.TYPED_ARRAY_SUPPORT?(this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255):Ja(this,e,r,!0),r+4};P.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r|0,n||ur(this,e,r,4,4294967295,0),P.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255):Ja(this,e,r,!1),r+4};P.prototype.writeIntLE=function(e,r,n,s){if(e=+e,r=r|0,!s){var i=Math.pow(2,8*n-1);ur(this,e,r,n,i-1,-i)}var a=0,o=1,l=0;for(this[r]=e&255;++a<n&&(o*=256);)e<0&&l===0&&this[r+a-1]!==0&&(l=1),this[r+a]=(e/o>>0)-l&255;return r+n};P.prototype.writeIntBE=function(e,r,n,s){if(e=+e,r=r|0,!s){var i=Math.pow(2,8*n-1);ur(this,e,r,n,i-1,-i)}var a=n-1,o=1,l=0;for(this[r+a]=e&255;--a>=0&&(o*=256);)e<0&&l===0&&this[r+a+1]!==0&&(l=1),this[r+a]=(e/o>>0)-l&255;return r+n};P.prototype.writeInt8=function(e,r,n){return e=+e,r=r|0,n||ur(this,e,r,1,127,-128),P.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[r]=e&255,r+1};P.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r|0,n||ur(this,e,r,2,32767,-32768),P.TYPED_ARRAY_SUPPORT?(this[r]=e&255,this[r+1]=e>>>8):Ya(this,e,r,!0),r+2};P.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r|0,n||ur(this,e,r,2,32767,-32768),P.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=e&255):Ya(this,e,r,!1),r+2};P.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r|0,n||ur(this,e,r,4,2147483647,-2147483648),P.TYPED_ARRAY_SUPPORT?(this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24):Ja(this,e,r,!0),r+4};P.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r|0,n||ur(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),P.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255):Ja(this,e,r,!1),r+4};P.prototype.writeFloatLE=function(e,r,n){return Wh(this,e,r,!0,n)};P.prototype.writeFloatBE=function(e,r,n){return Wh(this,e,r,!1,n)};P.prototype.writeDoubleLE=function(e,r,n){return Gh(this,e,r,!0,n)};P.prototype.writeDoubleBE=function(e,r,n){return Gh(this,e,r,!1,n)};P.prototype.copy=function(e,r,n,s){if(n||(n=0),!s&&s!==0&&(s=this.length),r>=e.length&&(r=e.length),r||(r=0),s>0&&s<n&&(s=n),s===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-r<s-n&&(s=e.length-r+n);var i=s-n,a;if(this===e&&n<r&&r<s)for(a=i-1;a>=0;--a)e[a+r]=this[a+n];else if(i<1e3||!P.TYPED_ARRAY_SUPPORT)for(a=0;a<i;++a)e[a+r]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),r);return i};P.prototype.fill=function(e,r,n,s){if(typeof e=="string"){if(typeof r=="string"?(s=r,r=0,n=this.length):typeof n=="string"&&(s=n,n=this.length),e.length===1){var i=e.charCodeAt(0);i<256&&(e=i)}if(s!==void 0&&typeof s!="string")throw new TypeError("encoding must be a string");if(typeof s=="string"&&!P.isEncoding(s))throw new TypeError("Unknown encoding: "+s)}else typeof e=="number"&&(e=e&255);if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var o=Hr(e)?e:za(new P(e,s).toString()),l=o.length;for(a=0;a<n-r;++a)this[a+r]=o[a%l]}return this};jN=/[^+\/0-9A-Za-z-_]/g});var v=as(()=>{Hh()});var Kh={};$a(Kh,{basename:()=>tm,default:()=>GN,delimiter:()=>Zh,dirname:()=>em,extname:()=>rm,isAbsolute:()=>Su,join:()=>Jh,normalize:()=>Au,relative:()=>Qh,resolve:()=>Qa,sep:()=>Xh});function Yh(t,e){for(var r=0,n=t.length-1;n>=0;n--){var s=t[n];s==="."?t.splice(n,1):s===".."?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function Qa(){for(var t="",e=!1,r=arguments.length-1;r>=-1&&!e;r--){var n=r>=0?arguments[r]:"/";if(typeof n!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!n)continue;t=n+"/"+t,e=n.charAt(0)==="/"}return t=Yh(Cu(t.split("/"),function(s){return!!s}),!e).join("/"),(e?"/":"")+t||"."}function Au(t){var e=Su(t),r=WN(t,-1)==="/";return t=Yh(Cu(t.split("/"),function(n){return!!n}),!e).join("/"),!t&&!e&&(t="."),t&&r&&(t+="/"),(e?"/":"")+t}function Su(t){return t.charAt(0)==="/"}function Jh(){var t=Array.prototype.slice.call(arguments,0);return Au(Cu(t,function(e,r){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))}function Qh(t,e){t=Qa(t).substr(1),e=Qa(e).substr(1);function r(u){for(var c=0;c<u.length&&u[c]==="";c++);for(var p=u.length-1;p>=0&&u[p]==="";p--);return c>p?[]:u.slice(c,p-c+1)}for(var n=r(t.split("/")),s=r(e.split("/")),i=Math.min(n.length,s.length),a=i,o=0;o<i;o++)if(n[o]!==s[o]){a=o;break}for(var l=[],o=a;o<n.length;o++)l.push("..");return l=l.concat(s.slice(a)),l.join("/")}function em(t){var e=vu(t),r=e[0],n=e[1];return!r&&!n?".":(n&&(n=n.substr(0,n.length-1)),r+n)}function tm(t,e){var r=vu(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r}function rm(t){return vu(t)[3]}function Cu(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}var $N,vu,Xh,Zh,GN,WN,sm=as(()=>{b();v();$N=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,vu=function(t){return $N.exec(t).slice(1)};Xh="/",Zh=":";GN={extname:rm,basename:tm,dirname:em,sep:Xh,delimiter:Zh,relative:Qh,join:Jh,isAbsolute:Su,normalize:Au,resolve:Qa};WN="ab".substr(-1)==="b"?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}});var Ii=M((vQ,Xa)=>{b();v();var tn=(sm(),Kh);if(tn&&tn.default){Xa.exports=tn.default;for(let t in tn)Xa.exports[t]=tn[t]}else tn&&(Xa.exports=tn)});function nm(){wu=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e<r;++e)Kr[e]=t[e],wr[t.charCodeAt(e)]=e;wr["-".charCodeAt(0)]=62,wr["_".charCodeAt(0)]=63}function HN(t){wu||nm();var e,r,n,s,i,a,o=t.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i=t[o-2]==="="?2:t[o-1]==="="?1:0,a=new zN(o*3/4-i),n=i>0?o-4:o;var l=0;for(e=0,r=0;e<n;e+=4,r+=3)s=wr[t.charCodeAt(e)]<<18|wr[t.charCodeAt(e+1)]<<12|wr[t.charCodeAt(e+2)]<<6|wr[t.charCodeAt(e+3)],a[l++]=s>>16&255,a[l++]=s>>8&255,a[l++]=s&255;return i===2?(s=wr[t.charCodeAt(e)]<<2|wr[t.charCodeAt(e+1)]>>4,a[l++]=s&255):i===1&&(s=wr[t.charCodeAt(e)]<<10|wr[t.charCodeAt(e+1)]<<4|wr[t.charCodeAt(e+2)]>>2,a[l++]=s>>8&255,a[l++]=s&255),a}function KN(t){return Kr[t>>18&63]+Kr[t>>12&63]+Kr[t>>6&63]+Kr[t&63]}function YN(t,e,r){for(var n,s=[],i=e;i<r;i+=3)n=(t[i]<<16)+(t[i+1]<<8)+t[i+2],s.push(KN(n));return s.join("")}function im(t){wu||nm();for(var e,r=t.length,n=r%3,s="",i=[],a=16383,o=0,l=r-n;o<l;o+=a)i.push(YN(t,o,o+a>l?l:o+a));return n===1?(e=t[r-1],s+=Kr[e>>2],s+=Kr[e<<4&63],s+="=="):n===2&&(e=(t[r-2]<<8)+t[r-1],s+=Kr[e>>10],s+=Kr[e>>4&63],s+=Kr[e<<2&63],s+="="),i.push(s),i.join("")}function Za(t,e,r,n,s){var i,a,o=s*8-n-1,l=(1<<o)-1,u=l>>1,c=-7,p=r?s-1:0,h=r?-1:1,f=t[e+p];for(p+=h,i=f&(1<<-c)-1,f>>=-c,c+=o;c>0;i=i*256+t[e+p],p+=h,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=a*256+t[e+p],p+=h,c-=8);if(i===0)i=1-u;else{if(i===l)return a?NaN:(f?-1:1)*Infinity;a=a+Math.pow(2,n),i=i-u}return(f?-1:1)*a*Math.pow(2,i-n)}function am(t,e,r,n,s,i){var a,o,l,u=i*8-s-1,c=(1<<u)-1,p=c>>1,h=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:i-1,m=n?1:-1,x=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===Infinity?(o=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+p>=1?e+=h/l:e+=h*Math.pow(2,1-p),e*l>=2&&(a++,l/=2),a+p>=c?(o=0,a=c):a+p>=1?(o=(e*l-1)*Math.pow(2,s),a=a+p):(o=e*Math.pow(2,p-1)*Math.pow(2,s),a=0));s>=8;t[r+f]=o&255,f+=m,o/=256,s-=8);for(a=a<<s|o,u+=s;u>0;t[r+f]=a&255,f+=m,a/=256,u-=8);t[r+f-m]|=x*128}function eo(){return Ie.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function us(t,e){if(eo()<e)throw new RangeError("Invalid typed array length");return Ie.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=Ie.prototype):(t===null&&(t=new Ie(e)),t.length=e),t}function Ie(t,e,r){if(!Ie.TYPED_ARRAY_SUPPORT&&!(this instanceof Ie))return new Ie(t,e,r);if(typeof t=="number"){if(typeof e=="string")throw new Error("If encoding is specified then the first argument must be a string");return ku(this,t)}return lm(this,t,e,r)}function lm(t,e,r,n){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&e instanceof ArrayBuffer?ZN(t,e,r,n):typeof e=="string"?XN(t,e,r):e6(t,e)}function um(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function t6(t,e,r,n){return um(e),e<=0?us(t,e):r!==void 0?typeof n=="string"?us(t,e).fill(r,n):us(t,e).fill(r):us(t,e)}function ku(t,e){if(um(e),t=us(t,e<0?0:Du(e)|0),!Ie.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function XN(t,e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!Ie.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=cm(e,r)|0;t=us(t,n);var s=t.write(e,r);return s!==n&&(t=t.slice(0,s)),t}function Tu(t,e){var r=e.length<0?0:Du(e.length)|0;t=us(t,r);for(var n=0;n<r;n+=1)t[n]=e[n]&255;return t}function ZN(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return r===void 0&&n===void 0?e=new Uint8Array(e):n===void 0?e=new Uint8Array(e,r):e=new Uint8Array(e,r,n),Ie.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=Ie.prototype):t=Tu(t,e),t}function e6(t,e){if(Yr(e)){var r=Du(e.length)|0;return t=us(t,r),t.length===0||e.copy(t,0,0,r),t}if(e){if(typeof ArrayBuffer!="undefined"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||r6(e.length)?us(t,0):Tu(t,e);if(e.type==="Buffer"&&om(e.data))return Tu(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Du(t){if(t>=eo())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+eo().toString(16)+" bytes");return t|0}function Yr(t){return!!(t!=null&&t._isBuffer)}function cm(t,e){if(Yr(t))return t.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var r=t.length;if(r===0)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return to(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return fm(t).length;default:if(n)return to(t).length;e=(""+e).toLowerCase(),n=!0}}function l6(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return a6(this,e,r);case"utf8":case"utf-8":return pm(this,e,r);case"ascii":return n6(this,e,r);case"latin1":case"binary":return i6(this,e,r);case"base64":return s6(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o6(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function sn(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function mm(t,e,r,n,s){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=s?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(s)return-1;r=t.length-1}else if(r<0)if(s)r=0;else return-1;if(typeof e=="string"&&(e=Ie.from(e,n)),Yr(e))return e.length===0?-1:hm(t,e,r,n,s);if(typeof e=="number")return e=e&255,Ie.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?s?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):hm(t,[e],r,n,s);throw new TypeError("val must be string, number or Buffer")}function hm(t,e,r,n,s){var i=1,a=t.length,o=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;i=2,a/=2,o/=2,r/=2}function l(f,m){return i===1?f[m]:f.readUInt16BE(m*i)}var u;if(s){var c=-1;for(u=r;u<a;u++)if(l(t,u)===l(e,c===-1?0:u-c)){if(c===-1&&(c=u),u-c+1===o)return c*i}else c!==-1&&(u-=u-c),c=-1}else for(r+o>a&&(r=a-o),u=r;u>=0;u--){for(var p=!0,h=0;h<o;h++)if(l(t,u+h)!==l(e,h)){p=!1;break}if(p)return u}return-1}function u6(t,e,r,n){r=Number(r)||0;var s=t.length-r;n?(n=Number(n),n>s&&(n=s)):n=s;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var o=parseInt(e.substr(a*2,2),16);if(isNaN(o))return a;t[r+a]=o}return a}function c6(t,e,r,n){return ro(to(e,t.length-r),t,r,n)}function dm(t,e,r,n){return ro(f6(e),t,r,n)}function p6(t,e,r,n){return dm(t,e,r,n)}function h6(t,e,r,n){return ro(fm(e),t,r,n)}function d6(t,e,r,n){return ro(m6(e,t.length-r),t,r,n)}function s6(t,e,r){return e===0&&r===t.length?im(t):im(t.slice(e,r))}function pm(t,e,r){r=Math.min(t.length,r);for(var n=[],s=e;s<r;){var i=t[s],a=null,o=i>239?4:i>223?3:i>191?2:1;if(s+o<=r){var l,u,c,p;switch(o){case 1:i<128&&(a=i);break;case 2:l=t[s+1],(l&192)==128&&(p=(i&31)<<6|l&63,p>127&&(a=p));break;case 3:l=t[s+1],u=t[s+2],(l&192)==128&&(u&192)==128&&(p=(i&15)<<12|(l&63)<<6|u&63,p>2047&&(p<55296||p>57343)&&(a=p));break;case 4:l=t[s+1],u=t[s+2],c=t[s+3],(l&192)==128&&(u&192)==128&&(c&192)==128&&(p=(i&15)<<18|(l&63)<<12|(u&63)<<6|c&63,p>65535&&p<1114112&&(a=p))}}a===null?(a=65533,o=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),s+=o}return g6(n)}function g6(t){var e=t.length;if(e<=gm)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=gm));return r}function n6(t,e,r){var n="";r=Math.min(t.length,r);for(var s=e;s<r;++s)n+=String.fromCharCode(t[s]&127);return n}function i6(t,e,r){var n="";r=Math.min(t.length,r);for(var s=e;s<r;++s)n+=String.fromCharCode(t[s]);return n}function a6(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var s="",i=e;i<r;++i)s+=y6(t[i]);return s}function o6(t,e,r){for(var n=t.slice(e,r),s="",i=0;i<n.length;i+=2)s+=String.fromCharCode(n[i]+n[i+1]*256);return s}function $t(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function cr(t,e,r,n,s,i){if(!Yr(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>s||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function so(t,e,r,n){e<0&&(e=65535+e+1);for(var s=0,i=Math.min(t.length-r,2);s<i;++s)t[r+s]=(e&255<<8*(n?s:1-s))>>>(n?s:1-s)*8}function no(t,e,r,n){e<0&&(e=4294967295+e+1);for(var s=0,i=Math.min(t.length-r,4);s<i;++s)t[r+s]=e>>>(n?s:3-s)*8&255}function ym(t,e,r,n,s,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function xm(t,e,r,n,s){return s||ym(t,e,r,4),am(t,e,r,n,23,4),r+4}function Em(t,e,r,n,s){return s||ym(t,e,r,8),am(t,e,r,n,52,8),r+8}function b6(t){if(t=E6(t).replace(x6,""),t.length<2)return"";for(;t.length%4!=0;)t=t+"=";return t}function E6(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function y6(t){return t<16?"0"+t.toString(16):t.toString(16)}function to(t,e){e=e||Infinity;for(var r,n=t.length,s=null,i=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!s){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}s=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),s=r;continue}r=(s-55296<<10|r-56320)+65536}else s&&(e-=3)>-1&&i.push(239,191,189);if(s=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return i}function f6(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function m6(t,e){for(var r,n,s,i=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,s=r%256,i.push(s),i.push(n);return i}function fm(t){return HN(b6(t))}function ro(t,e,r,n){for(var s=0;s<n&&!(s+r>=e.length||s>=t.length);++s)e[s+r]=t[s];return s}function r6(t){return t!==t}function rn(t){return t!=null&&(!!t._isBuffer||bm(t)||v6(t))}function bm(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function v6(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&bm(t.slice(0,0))}var Kr,wr,zN,wu,JN,om,QN,SQ,gm,x6,vm=as(()=>{b();v();Kr=[],wr=[],zN=typeof Uint8Array!="undefined"?Uint8Array:Array,wu=!1;JN={}.toString,om=Array.isArray||function(t){return JN.call(t)=="[object Array]"};QN=50;Ie.TYPED_ARRAY_SUPPORT=window.TYPED_ARRAY_SUPPORT!==void 0?window.TYPED_ARRAY_SUPPORT:!0;SQ=eo();Ie.poolSize=8192;Ie._augment=function(t){return t.__proto__=Ie.prototype,t};Ie.from=function(t,e,r){return lm(null,t,e,r)};Ie.TYPED_ARRAY_SUPPORT&&(Ie.prototype.__proto__=Uint8Array.prototype,Ie.__proto__=Uint8Array);Ie.alloc=function(t,e,r){return t6(null,t,e,r)};Ie.allocUnsafe=function(t){return ku(null,t)};Ie.allocUnsafeSlow=function(t){return ku(null,t)};Ie.isBuffer=rn;Ie.compare=function(e,r){if(!Yr(e)||!Yr(r))throw new TypeError("Arguments must be Buffers");if(e===r)return 0;for(var n=e.length,s=r.length,i=0,a=Math.min(n,s);i<a;++i)if(e[i]!==r[i]){n=e[i],s=r[i];break}return n<s?-1:s<n?1:0};Ie.isEncoding=function(e){switch(String(e).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}};Ie.concat=function(e,r){if(!om(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return Ie.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var s=Ie.allocUnsafe(r),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!Yr(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(s,i),i+=a.length}return s};Ie.byteLength=cm;Ie.prototype._isBuffer=!0;Ie.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)sn(this,r,r+1);return this};Ie.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)sn(this,r,r+3),sn(this,r+1,r+2);return this};Ie.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)sn(this,r,r+7),sn(this,r+1,r+6),sn(this,r+2,r+5),sn(this,r+3,r+4);return this};Ie.prototype.toString=function(){var e=this.length|0;return e===0?"":arguments.length===0?pm(this,0,e):l6.apply(this,arguments)};Ie.prototype.equals=function(e){if(!Yr(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:Ie.compare(this,e)===0};Ie.prototype.inspect=function(){var e="",r=QN;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"};Ie.prototype.compare=function(e,r,n,s,i){if(!Yr(e))throw new TypeError("Argument must be a Buffer");if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),s===void 0&&(s=0),i===void 0&&(i=this.length),r<0||n>e.length||s<0||i>this.length)throw new RangeError("out of range index");if(s>=i&&r>=n)return 0;if(s>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,s>>>=0,i>>>=0,this===e)return 0;for(var a=i-s,o=n-r,l=Math.min(a,o),u=this.slice(s,i),c=e.slice(r,n),p=0;p<l;++p)if(u[p]!==c[p]){a=u[p],o=c[p];break}return a<o?-1:o<a?1:0};Ie.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};Ie.prototype.indexOf=function(e,r,n){return mm(this,e,r,n,!0)};Ie.prototype.lastIndexOf=function(e,r,n){return mm(this,e,r,n,!1)};Ie.prototype.write=function(e,r,n,s){if(r===void 0)s="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")s=r,n=this.length,r=0;else if(isFinite(r))r=r|0,isFinite(n)?(n=n|0,s===void 0&&(s="utf8")):(s=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-r;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");for(var a=!1;;)switch(s){case"hex":return u6(this,e,r,n);case"utf8":case"utf-8":return c6(this,e,r,n);case"ascii":return dm(this,e,r,n);case"latin1":case"binary":return p6(this,e,r,n);case"base64":return h6(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d6(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),a=!0}};Ie.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};gm=4096;Ie.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var s;if(Ie.TYPED_ARRAY_SUPPORT)s=this.subarray(e,r),s.__proto__=Ie.prototype;else{var i=r-e;s=new Ie(i,void 0);for(var a=0;a<i;++a)s[a]=this[a+e]}return s};Ie.prototype.readUIntLE=function(e,r,n){e=e|0,r=r|0,n||$t(e,r,this.length);for(var s=this[e],i=1,a=0;++a<r&&(i*=256);)s+=this[e+a]*i;return s};Ie.prototype.readUIntBE=function(e,r,n){e=e|0,r=r|0,n||$t(e,r,this.length);for(var s=this[e+--r],i=1;r>0&&(i*=256);)s+=this[e+--r]*i;return s};Ie.prototype.readUInt8=function(e,r){return r||$t(e,1,this.length),this[e]};Ie.prototype.readUInt16LE=function(e,r){return r||$t(e,2,this.length),this[e]|this[e+1]<<8};Ie.prototype.readUInt16BE=function(e,r){return r||$t(e,2,this.length),this[e]<<8|this[e+1]};Ie.prototype.readUInt32LE=function(e,r){return r||$t(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};Ie.prototype.readUInt32BE=function(e,r){return r||$t(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};Ie.prototype.readIntLE=function(e,r,n){e=e|0,r=r|0,n||$t(e,r,this.length);for(var s=this[e],i=1,a=0;++a<r&&(i*=256);)s+=this[e+a]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*r)),s};Ie.prototype.readIntBE=function(e,r,n){e=e|0,r=r|0,n||$t(e,r,this.length);for(var s=r,i=1,a=this[e+--s];s>0&&(i*=256);)a+=this[e+--s]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*r)),a};Ie.prototype.readInt8=function(e,r){return r||$t(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};Ie.prototype.readInt16LE=function(e,r){r||$t(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};Ie.prototype.readInt16BE=function(e,r){r||$t(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};Ie.prototype.readInt32LE=function(e,r){return r||$t(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};Ie.prototype.readInt32BE=function(e,r){return r||$t(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};Ie.prototype.readFloatLE=function(e,r){return r||$t(e,4,this.length),Za(this,e,!0,23,4)};Ie.prototype.readFloatBE=function(e,r){return r||$t(e,4,this.length),Za(this,e,!1,23,4)};Ie.prototype.readDoubleLE=function(e,r){return r||$t(e,8,this.length),Za(this,e,!0,52,8)};Ie.prototype.readDoubleBE=function(e,r){return r||$t(e,8,this.length),Za(this,e,!1,52,8)};Ie.prototype.writeUIntLE=function(e,r,n,s){if(e=+e,r=r|0,n=n|0,!s){var i=Math.pow(2,8*n)-1;cr(this,e,r,n,i,0)}var a=1,o=0;for(this[r]=e&255;++o<n&&(a*=256);)this[r+o]=e/a&255;return r+n};Ie.prototype.writeUIntBE=function(e,r,n,s){if(e=+e,r=r|0,n=n|0,!s){var i=Math.pow(2,8*n)-1;cr(this,e,r,n,i,0)}var a=n-1,o=1;for(this[r+a]=e&255;--a>=0&&(o*=256);)this[r+a]=e/o&255;return r+n};Ie.prototype.writeUInt8=function(e,r,n){return e=+e,r=r|0,n||cr(this,e,r,1,255,0),Ie.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[r]=e&255,r+1};Ie.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r|0,n||cr(this,e,r,2,65535,0),Ie.TYPED_ARRAY_SUPPORT?(this[r]=e&255,this[r+1]=e>>>8):so(this,e,r,!0),r+2};Ie.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r|0,n||cr(this,e,r,2,65535,0),Ie.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=e&255):so(this,e,r,!1),r+2};Ie.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r|0,n||cr(this,e,r,4,4294967295,0),Ie.TYPED_ARRAY_SUPPORT?(this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255):no(this,e,r,!0),r+4};Ie.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r|0,n||cr(this,e,r,4,4294967295,0),Ie.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255):no(this,e,r,!1),r+4};Ie.prototype.writeIntLE=function(e,r,n,s){if(e=+e,r=r|0,!s){var i=Math.pow(2,8*n-1);cr(this,e,r,n,i-1,-i)}var a=0,o=1,l=0;for(this[r]=e&255;++a<n&&(o*=256);)e<0&&l===0&&this[r+a-1]!==0&&(l=1),this[r+a]=(e/o>>0)-l&255;return r+n};Ie.prototype.writeIntBE=function(e,r,n,s){if(e=+e,r=r|0,!s){var i=Math.pow(2,8*n-1);cr(this,e,r,n,i-1,-i)}var a=n-1,o=1,l=0;for(this[r+a]=e&255;--a>=0&&(o*=256);)e<0&&l===0&&this[r+a+1]!==0&&(l=1),this[r+a]=(e/o>>0)-l&255;return r+n};Ie.prototype.writeInt8=function(e,r,n){return e=+e,r=r|0,n||cr(this,e,r,1,127,-128),Ie.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[r]=e&255,r+1};Ie.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r|0,n||cr(this,e,r,2,32767,-32768),Ie.TYPED_ARRAY_SUPPORT?(this[r]=e&255,this[r+1]=e>>>8):so(this,e,r,!0),r+2};Ie.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r|0,n||cr(this,e,r,2,32767,-32768),Ie.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=e&255):so(this,e,r,!1),r+2};Ie.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r|0,n||cr(this,e,r,4,2147483647,-2147483648),Ie.TYPED_ARRAY_SUPPORT?(this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24):no(this,e,r,!0),r+4};Ie.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r|0,n||cr(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Ie.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255):no(this,e,r,!1),r+4};Ie.prototype.writeFloatLE=function(e,r,n){return xm(this,e,r,!0,n)};Ie.prototype.writeFloatBE=function(e,r,n){return xm(this,e,r,!1,n)};Ie.prototype.writeDoubleLE=function(e,r,n){return Em(this,e,r,!0,n)};Ie.prototype.writeDoubleBE=function(e,r,n){return Em(this,e,r,!1,n)};Ie.prototype.copy=function(e,r,n,s){if(n||(n=0),!s&&s!==0&&(s=this.length),r>=e.length&&(r=e.length),r||(r=0),s>0&&s<n&&(s=n),s===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-r<s-n&&(s=e.length-r+n);var i=s-n,a;if(this===e&&n<r&&r<s)for(a=i-1;a>=0;--a)e[a+r]=this[a+n];else if(i<1e3||!Ie.TYPED_ARRAY_SUPPORT)for(a=0;a<i;++a)e[a+r]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),r);return i};Ie.prototype.fill=function(e,r,n,s){if(typeof e=="string"){if(typeof r=="string"?(s=r,r=0,n=this.length):typeof n=="string"&&(s=n,n=this.length),e.length===1){var i=e.charCodeAt(0);i<256&&(e=i)}if(s!==void 0&&typeof s!="string")throw new TypeError("encoding must be a string");if(typeof s=="string"&&!Ie.isEncoding(s))throw new TypeError("Unknown encoding: "+s)}else typeof e=="number"&&(e=e&255);if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var o=Yr(e)?e:to(new Ie(e,s).toString()),l=o.length;for(a=0;a<n-r;++a)this[a+r]=o[a%l]}return this};x6=/[^+\/0-9A-Za-z-_]/g});function Cm(){throw new Error("setTimeout has not been defined")}function Sm(){throw new Error("clearTimeout has not been defined")}function Am(t){if(Ts===setTimeout)return setTimeout(t,0);if((Ts===Cm||!Ts)&&setTimeout)return Ts=setTimeout,setTimeout(t,0);try{return Ts(t,0)}catch(e){try{return Ts.call(null,t,0)}catch(r){return Ts.call(this,t,0)}}}function C6(t){if(Fs===clearTimeout)return clearTimeout(t);if((Fs===Sm||!Fs)&&clearTimeout)return Fs=clearTimeout,clearTimeout(t);try{return Fs(t)}catch(e){try{return Fs.call(null,t)}catch(r){return Fs.call(this,t)}}}function S6(){!jn||!nn||(jn=!1,nn.length?cs=nn.concat(cs):io=-1,cs.length&&wm())}function wm(){if(!jn){var t=Am(S6);jn=!0;for(var e=cs.length;e;){for(nn=cs,cs=[];++io<e;)nn&&nn[io].run();io=-1,e=cs.length}nn=null,jn=!1,C6(t)}}function A6(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];cs.push(new km(t,e)),cs.length===1&&!jn&&Am(wm)}function km(t,e){this.fun=t,this.array=e}function an(){}function V6(t){throw new Error("process.binding is not supported")}function U6(){return"/"}function $6(t){throw new Error("process.chdir is not supported")}function W6(){return 0}function z6(t){var e=G6.call(qn)*.001,r=Math.floor(e),n=Math.floor(e%1*1e9);return t&&(r=r-t[0],n=n-t[1],n<0&&(r--,n+=1e9)),[r,n]}function K6(){var t=new Date,e=t-H6;return e/1e3}var Ts,Fs,cs,jn,nn,io,w6,k6,D6,T6,F6,P6,I6,_6,B6,O6,R6,L6,N6,M6,j6,q6,qn,G6,H6,Y6,_i,Dm=as(()=>{b();v();Ts=Cm,Fs=Sm;typeof window.setTimeout=="function"&&(Ts=setTimeout);typeof window.clearTimeout=="function"&&(Fs=clearTimeout);cs=[],jn=!1,io=-1;km.prototype.run=function(){this.fun.apply(null,this.array)};w6="browser",k6="browser",D6=!0,T6={},F6=[],P6="",I6={},_6={},B6={};O6=an,R6=an,L6=an,N6=an,M6=an,j6=an,q6=an;qn=window.performance||{},G6=qn.now||qn.mozNow||qn.msNow||qn.oNow||qn.webkitNow||function(){return new Date().getTime()};H6=new Date;Y6={nextTick:A6,title:w6,browser:D6,env:T6,argv:F6,version:P6,versions:I6,on:O6,addListener:R6,once:L6,off:N6,removeListener:M6,removeAllListeners:j6,emit:q6,binding:V6,cwd:U6,chdir:$6,umask:W6,hrtime:z6,platform:k6,release:_6,config:B6,uptime:K6},_i=Y6});var Fu,Bi,Tm=as(()=>{b();v();typeof Object.create=="function"?Fu=function(e,r){e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Fu=function(e,r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e};Bi=Fu});var Fm={};$a(Fm,{_extend:()=>_u,debuglog:()=>Pm,default:()=>i8,deprecate:()=>Pu,format:()=>ao,inherits:()=>Bi,inspect:()=>kr,isArray:()=>Ru,isBoolean:()=>uo,isBuffer:()=>Om,isDate:()=>ln,isError:()=>un,isFunction:()=>Is,isNull:()=>Oi,isNullOrUndefined:()=>_m,isNumber:()=>Lu,isObject:()=>on,isPrimitive:()=>Li,isRegExp:()=>Ps,isString:()=>Ri,isSymbol:()=>Bm,isUndefined:()=>Jr,log:()=>Rm});function ao(t){if(!Ri(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(kr(arguments[r]));return e.join(" ")}for(var r=1,n=arguments,s=n.length,i=String(t).replace(J6,function(o){if(o==="%%")return"%";if(r>=s)return o;switch(o){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(l){return"[Circular]"}default:return o}}),a=n[r];r<s;a=n[++r])Oi(a)||!on(a)?i+=" "+a:i+=" "+kr(a);return i}function Pu(t,e){if(Jr(window.process))return function(){return Pu(t,e).apply(this,arguments)};if(_i.noDeprecation===!0)return t;var r=!1;function n(){if(!r){if(_i.throwDeprecation)throw new Error(e);_i.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,arguments)}return n}function Pm(t){if(Jr(Iu)&&(Iu=_i.env.NODE_DEBUG||""),t=t.toUpperCase(),!oo[t])if(new RegExp("\\b"+t+"\\b","i").test(Iu)){var e=0;oo[t]=function(){var r=ao.apply(null,arguments);console.error("%s %d: %s",t,e,r)}}else oo[t]=function(){};return oo[t]}function kr(t,e){var r={seen:[],stylize:X6};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),uo(e)?r.showHidden=e:e&&_u(r,e),Jr(r.showHidden)&&(r.showHidden=!1),Jr(r.depth)&&(r.depth=2),Jr(r.colors)&&(r.colors=!1),Jr(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=Q6),lo(r,t,r.depth)}function Q6(t,e){var r=kr.styles[e];return r?"["+kr.colors[r][0]+"m"+t+"["+kr.colors[r][1]+"m":t}function X6(t,e){return t}function Z6(t){var e={};return t.forEach(function(r,n){e[r]=!0}),e}function lo(t,e,r){if(t.customInspect&&e&&Is(e.inspect)&&e.inspect!==kr&&!(e.constructor&&e.constructor.prototype===e)){var n=e.inspect(r,t);return Ri(n)||(n=lo(t,n,r)),n}var s=e8(t,e);if(s)return s;var i=Object.keys(e),a=Z6(i);if(t.showHidden&&(i=Object.getOwnPropertyNames(e)),un(e)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return Bu(e);if(i.length===0){if(Is(e)){var o=e.name?": "+e.name:"";return t.stylize("[Function"+o+"]","special")}if(Ps(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(ln(e))return t.stylize(Date.prototype.toString.call(e),"date");if(un(e))return Bu(e)}var l="",u=!1,c=["{","}"];if(Ru(e)&&(u=!0,c=["[","]"]),Is(e)){var p=e.name?": "+e.name:"";l=" [Function"+p+"]"}if(Ps(e)&&(l=" "+RegExp.prototype.toString.call(e)),ln(e)&&(l=" "+Date.prototype.toUTCString.call(e)),un(e)&&(l=" "+Bu(e)),i.length===0&&(!u||e.length==0))return c[0]+l+c[1];if(r<0)return Ps(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var h;return u?h=t8(t,e,r,a,i):h=i.map(function(f){return Ou(t,e,r,a,f,u)}),t.seen.pop(),r8(h,l,c)}function e8(t,e){if(Jr(e))return t.stylize("undefined","undefined");if(Ri(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(Lu(e))return t.stylize(""+e,"number");if(uo(e))return t.stylize(""+e,"boolean");if(Oi(e))return t.stylize("null","null")}function Bu(t){return"["+Error.prototype.toString.call(t)+"]"}function t8(t,e,r,n,s){for(var i=[],a=0,o=e.length;a<o;++a)Im(e,String(a))?i.push(Ou(t,e,r,n,String(a),!0)):i.push("");return s.forEach(function(l){l.match(/^\d+$/)||i.push(Ou(t,e,r,n,l,!0))}),i}function Ou(t,e,r,n,s,i){var a,o,l;if(l=Object.getOwnPropertyDescriptor(e,s)||{value:e[s]},l.get?l.set?o=t.stylize("[Getter/Setter]","special"):o=t.stylize("[Getter]","special"):l.set&&(o=t.stylize("[Setter]","special")),Im(n,s)||(a="["+s+"]"),o||(t.seen.indexOf(l.value)<0?(Oi(r)?o=lo(t,l.value,null):o=lo(t,l.value,r-1),o.indexOf(`
|
|
2
|
+
`)>-1&&(i?o=o.split(`
|
|
3
|
+
`).map(function(u){return" "+u}).join(`
|
|
4
|
+
`).substr(2):o=`
|
|
5
|
+
`+o.split(`
|
|
6
|
+
`).map(function(u){return" "+u}).join(`
|
|
7
|
+
`))):o=t.stylize("[Circular]","special")),Jr(a)){if(i&&s.match(/^\d+$/))return o;a=JSON.stringify(""+s),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+o}function r8(t,e,r){var n=0,s=t.reduce(function(i,a){return n++,a.indexOf(`
|
|
8
|
+
`)>=0&&n++,i+a.replace(/\u001b\[\d\d?m/g,"").length+1},0);return s>60?r[0]+(e===""?"":e+`
|
|
9
|
+
`)+" "+t.join(`,
|
|
10
|
+
`)+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}function Ru(t){return Array.isArray(t)}function uo(t){return typeof t=="boolean"}function Oi(t){return t===null}function _m(t){return t==null}function Lu(t){return typeof t=="number"}function Ri(t){return typeof t=="string"}function Bm(t){return typeof t=="symbol"}function Jr(t){return t===void 0}function Ps(t){return on(t)&&Nu(t)==="[object RegExp]"}function on(t){return typeof t=="object"&&t!==null}function ln(t){return on(t)&&Nu(t)==="[object Date]"}function un(t){return on(t)&&(Nu(t)==="[object Error]"||t instanceof Error)}function Is(t){return typeof t=="function"}function Li(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t=="undefined"}function Om(t){return P.isBuffer(t)}function Nu(t){return Object.prototype.toString.call(t)}function Mu(t){return t<10?"0"+t.toString(10):t.toString(10)}function n8(){var t=new Date,e=[Mu(t.getHours()),Mu(t.getMinutes()),Mu(t.getSeconds())].join(":");return[t.getDate(),s8[t.getMonth()],e].join(" ")}function Rm(){console.log("%s - %s",n8(),ao.apply(null,arguments))}function _u(t,e){if(!e||!on(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}function Im(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var J6,oo,Iu,s8,i8,ju=as(()=>{b();v();Dm();Tm();J6=/%[sdj%]/g;oo={};kr.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};kr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};s8=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i8={inherits:Bi,_extend:_u,log:Rm,isBuffer:Om,isPrimitive:Li,isFunction:Is,isError:un,isDate:ln,isObject:on,isRegExp:Ps,isUndefined:Jr,isSymbol:Bm,isString:Ri,isNumber:Lu,isNullOrUndefined:_m,isNull:Oi,isBoolean:uo,isArray:Ru,inspect:kr,deprecate:Pu,format:ao,debuglog:Pm}});var Lm={};$a(Lm,{AssertionError:()=>fo,assert:()=>co,deepEqual:()=>$u,deepStrictEqual:()=>Wu,default:()=>o8,doesNotThrow:()=>Jm,equal:()=>Vu,fail:()=>rr,ifError:()=>Qm,notDeepEqual:()=>Gu,notDeepStrictEqual:()=>zu,notEqual:()=>Uu,notStrictEqual:()=>Ku,ok:()=>co,strictEqual:()=>Hu,throws:()=>Ym});function Nm(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,s=0,i=Math.min(r,n);s<i;++s)if(t[s]!==e[s]){r=t[s],n=e[s];break}return r<n?-1:n<r?1:0}function qm(){return typeof qu!="undefined"?qu:qu=function(){return function(){}.name==="foo"}()}function Vm(t){return Object.prototype.toString.call(t)}function Um(t){return rn(t)||typeof window.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t?!!(t instanceof DataView||t.buffer&&t.buffer instanceof ArrayBuffer):!1}function sr(t,e){t||rr(t,!0,e,"==",co)}function $m(t){if(!!Is(t)){if(qm())return t.name;var e=t.toString(),r=e.match(l8);return r&&r[1]}}function fo(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=u8(this),this.generatedMessage=!0);var e=t.stackStartFunction||rr;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,s=$m(e),i=n.indexOf(`
|
|
11
|
+
`+s);if(i>=0){var a=n.indexOf(`
|
|
12
|
+
`,i+1);n=n.substring(a+1)}this.stack=n}}}function Wm(t,e){return typeof t=="string"?t.length<e?t:t.slice(0,e):t}function Gm(t){if(qm()||!Is(t))return kr(t);var e=$m(t),r=e?": "+e:"";return"[Function"+r+"]"}function u8(t){return Wm(Gm(t.actual),128)+" "+t.operator+" "+Wm(Gm(t.expected),128)}function rr(t,e,r,n,s){throw new fo({message:r,actual:t,expected:e,operator:n,stackStartFunction:s})}function co(t,e){t||rr(t,!0,e,"==",co)}function Vu(t,e,r){t!=e&&rr(t,e,r,"==",Vu)}function Uu(t,e,r){t==e&&rr(t,e,r,"!=",Uu)}function $u(t,e,r){Vn(t,e,!1)||rr(t,e,r,"deepEqual",$u)}function Wu(t,e,r){Vn(t,e,!0)||rr(t,e,r,"deepStrictEqual",Wu)}function Vn(t,e,r,n){if(t===e)return!0;if(rn(t)&&rn(e))return Nm(t,e)===0;if(ln(t)&&ln(e))return t.getTime()===e.getTime();if(Ps(t)&&Ps(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if((t===null||typeof t!="object")&&(e===null||typeof e!="object"))return r?t===e:t==e;if(Um(t)&&Um(e)&&Vm(t)===Vm(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return Nm(new Uint8Array(t.buffer),new Uint8Array(e.buffer))===0;if(rn(t)!==rn(e))return!1;n=n||{actual:[],expected:[]};var s=n.actual.indexOf(t);return s!==-1&&s===n.expected.indexOf(e)?!0:(n.actual.push(t),n.expected.push(e),c8(t,e,r,n))}function zm(t){return Object.prototype.toString.call(t)=="[object Arguments]"}function c8(t,e,r,n){if(t==null||e===null||e===void 0)return!1;if(Li(t)||Li(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var s=zm(t),i=zm(e);if(s&&!i||!s&&i)return!1;if(s)return t=jm.call(t),e=jm.call(e),Vn(t,e,r);var a=Mm(t),o=Mm(e),l,u;if(a.length!==o.length)return!1;for(a.sort(),o.sort(),u=a.length-1;u>=0;u--)if(a[u]!==o[u])return!1;for(u=a.length-1;u>=0;u--)if(l=a[u],!Vn(t[l],e[l],r,n))return!1;return!0}function Gu(t,e,r){Vn(t,e,!1)&&rr(t,e,r,"notDeepEqual",Gu)}function zu(t,e,r){Vn(t,e,!0)&&rr(t,e,r,"notDeepStrictEqual",zu)}function Hu(t,e,r){t!==e&&rr(t,e,r,"===",Hu)}function Ku(t,e,r){t===e&&rr(t,e,r,"!==",Ku)}function Hm(t,e){if(!t||!e)return!1;if(Object.prototype.toString.call(e)=="[object RegExp]")return e.test(t);try{if(t instanceof e)return!0}catch(r){}return Error.isPrototypeOf(e)?!1:e.call({},t)===!0}function f8(t){var e;try{t()}catch(r){e=r}return e}function Km(t,e,r,n){var s;if(typeof e!="function")throw new TypeError('"block" argument must be a function');typeof r=="string"&&(n=r,r=null),s=f8(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!s&&rr(s,r,"Missing expected exception"+n);var i=typeof n=="string",a=!t&&un(s),o=!t&&s&&!r;if((a&&i&&Hm(s,r)||o)&&rr(s,r,"Got unwanted exception"+n),t&&s&&r&&!Hm(s,r)||!t&&s)throw s}function Ym(t,e,r){Km(!0,t,e,r)}function Jm(t,e,r){Km(!1,t,e,r)}function Qm(t){if(t)throw t}var a8,Mm,jm,qu,o8,l8,Xm=as(()=>{b();v();vm();ju();a8=Object.prototype.hasOwnProperty,Mm=Object.keys||function(t){var e=[];for(var r in t)a8.call(t,r)&&e.push(r);return e},jm=Array.prototype.slice;o8=sr,l8=/\s*function\s+([^\(\s]*)\s*/;sr.AssertionError=fo;Bi(fo,Error);sr.fail=rr;sr.ok=co;sr.equal=Vu;sr.notEqual=Uu;sr.deepEqual=$u;sr.deepStrictEqual=Wu;sr.notDeepEqual=Gu;sr.notDeepStrictEqual=zu;sr.strictEqual=Hu;sr.notStrictEqual=Ku;sr.throws=Ym;sr.doesNotThrow=Jm;sr.ifError=Qm});var fn=M((PQ,po)=>{b();v();var cn=(Xm(),Lm);if(cn&&cn.default){po.exports=cn.default;for(let t in cn)po.exports[t]=cn[t]}else cn&&(po.exports=cn)});var ed=M(Zm=>{b();v();(function t(e){"use strict";var r,n,s,i,a,o;function l(y){var w={},D,R;for(D in y)y.hasOwnProperty(D)&&(R=y[D],typeof R=="object"&&R!==null?w[D]=l(R):w[D]=R);return w}function u(y,w){var D,R,z,q;for(R=y.length,z=0;R;)D=R>>>1,q=z+D,w(y[q])?R=D:(z=q+1,R-=D+1);return z}r={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},s={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},i={},a={},o={},n={Break:i,Skip:a,Remove:o};function c(y,w){this.parent=y,this.key=w}c.prototype.replace=function(w){this.parent[this.key]=w},c.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function p(y,w,D,R){this.node=y,this.path=w,this.wrap=D,this.ref=R}function h(){}h.prototype.path=function(){var w,D,R,z,q,W;function _(C,$){if(Array.isArray($))for(R=0,z=$.length;R<z;++R)C.push($[R]);else C.push($)}if(!this.__current.path)return null;for(q=[],w=2,D=this.__leavelist.length;w<D;++w)W=this.__leavelist[w],_(q,W.path);return _(q,this.__current.path),q},h.prototype.type=function(){var y=this.current();return y.type||this.__current.wrap},h.prototype.parents=function(){var w,D,R;for(R=[],w=1,D=this.__leavelist.length;w<D;++w)R.push(this.__leavelist[w].node);return R},h.prototype.current=function(){return this.__current.node},h.prototype.__execute=function(w,D){var R,z;return z=void 0,R=this.__current,this.__current=D,this.__state=null,w&&(z=w.call(this,D.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=R,z},h.prototype.notify=function(w){this.__state=w},h.prototype.skip=function(){this.notify(a)},h.prototype.break=function(){this.notify(i)},h.prototype.remove=function(){this.notify(o)},h.prototype.__initialize=function(y,w){this.visitor=w,this.root=y,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,w.fallback==="iteration"?this.__fallback=Object.keys:typeof w.fallback=="function"&&(this.__fallback=w.fallback),this.__keys=s,w.keys&&(this.__keys=Object.assign(Object.create(this.__keys),w.keys))};function f(y){return y==null?!1:typeof y=="object"&&typeof y.type=="string"}function m(y,w){return(y===r.ObjectExpression||y===r.ObjectPattern)&&w==="properties"}function x(y,w){for(var D=y.length-1;D>=0;--D)if(y[D].node===w)return!0;return!1}h.prototype.traverse=function(w,D){var R,z,q,W,_,C,$,F,U,Q,B,K;for(this.__initialize(w,D),K={},R=this.__worklist,z=this.__leavelist,R.push(new p(w,null,null,null)),z.push(new p(null,null,null,null));R.length;){if(q=R.pop(),q===K){if(q=z.pop(),C=this.__execute(D.leave,q),this.__state===i||C===i)return;continue}if(q.node){if(C=this.__execute(D.enter,q),this.__state===i||C===i)return;if(R.push(K),z.push(q),this.__state===a||C===a)continue;if(W=q.node,_=W.type||q.wrap,Q=this.__keys[_],!Q)if(this.__fallback)Q=this.__fallback(W);else throw new Error("Unknown node type "+_+".");for(F=Q.length;(F-=1)>=0;)if($=Q[F],B=W[$],!!B){if(Array.isArray(B)){for(U=B.length;(U-=1)>=0;)if(!!B[U]&&!x(z,B[U])){if(m(_,Q[F]))q=new p(B[U],[$,U],"Property",null);else if(f(B[U]))q=new p(B[U],[$,U],null,null);else continue;R.push(q)}}else if(f(B)){if(x(z,B))continue;R.push(new p(B,$,null,null))}}}}},h.prototype.replace=function(w,D){var R,z,q,W,_,C,$,F,U,Q,B,K,X;function ie(ve){var Ae,me,ce,Fe;if(ve.ref.remove()){for(me=ve.ref.key,Fe=ve.ref.parent,Ae=R.length;Ae--;)if(ce=R[Ae],ce.ref&&ce.ref.parent===Fe){if(ce.ref.key<me)break;--ce.ref.key}}}for(this.__initialize(w,D),B={},R=this.__worklist,z=this.__leavelist,K={root:w},C=new p(w,null,null,new c(K,"root")),R.push(C),z.push(C);R.length;){if(C=R.pop(),C===B){if(C=z.pop(),_=this.__execute(D.leave,C),_!==void 0&&_!==i&&_!==a&&_!==o&&C.ref.replace(_),(this.__state===o||_===o)&&ie(C),this.__state===i||_===i)return K.root;continue}if(_=this.__execute(D.enter,C),_!==void 0&&_!==i&&_!==a&&_!==o&&(C.ref.replace(_),C.node=_),(this.__state===o||_===o)&&(ie(C),C.node=null),this.__state===i||_===i)return K.root;if(q=C.node,!!q&&(R.push(B),z.push(C),!(this.__state===a||_===a))){if(W=q.type||C.wrap,U=this.__keys[W],!U)if(this.__fallback)U=this.__fallback(q);else throw new Error("Unknown node type "+W+".");for($=U.length;($-=1)>=0;)if(X=U[$],Q=q[X],!!Q)if(Array.isArray(Q)){for(F=Q.length;(F-=1)>=0;)if(!!Q[F]){if(m(W,U[$]))C=new p(Q[F],[X,F],"Property",new c(Q,F));else if(f(Q[F]))C=new p(Q[F],[X,F],null,new c(Q,F));else continue;R.push(C)}}else f(Q)&&R.push(new p(Q,X,null,new c(q,X)))}}return K.root};function E(y,w){var D=new h;return D.traverse(y,w)}function S(y,w){var D=new h;return D.replace(y,w)}function T(y,w){var D;return D=u(w,function(z){return z.range[0]>y.range[0]}),y.extendedRange=[y.range[0],y.range[1]],D!==w.length&&(y.extendedRange[1]=w[D].range[0]),D-=1,D>=0&&(y.extendedRange[0]=w[D].range[1]),y}function I(y,w,D){var R=[],z,q,W,_;if(!y.range)throw new Error("attachComments needs range information");if(!D.length){if(w.length){for(W=0,q=w.length;W<q;W+=1)z=l(w[W]),z.extendedRange=[0,y.range[0]],R.push(z);y.leadingComments=R}return y}for(W=0,q=w.length;W<q;W+=1)R.push(T(l(w[W]),D));return _=0,E(y,{enter:function(C){for(var $;_<R.length&&($=R[_],!($.extendedRange[1]>C.range[0]));)$.extendedRange[1]===C.range[0]?(C.leadingComments||(C.leadingComments=[]),C.leadingComments.push($),R.splice(_,1)):_+=1;if(_===R.length)return n.Break;if(R[_].extendedRange[0]>C.range[1])return n.Skip}}),_=0,E(y,{leave:function(C){for(var $;_<R.length&&($=R[_],!(C.range[1]<$.extendedRange[0]));)C.range[1]===$.extendedRange[0]?(C.trailingComments||(C.trailingComments=[]),C.trailingComments.push($),R.splice(_,1)):_+=1;if(_===R.length)return n.Break;if(R[_].extendedRange[0]>C.range[1])return n.Skip}}),y}return e.Syntax=r,e.traverse=E,e.replace=S,e.attachComments=I,e.VisitorKeys=s,e.VisitorOption=n,e.Controller=h,e.cloneEnvironment=function(){return t({})},e})(Zm)});var rd=M(td=>{b();v();(function t(e){"use strict";var r,n,s,i,a,o;function l(y){var w={},D,R;for(D in y)y.hasOwnProperty(D)&&(R=y[D],typeof R=="object"&&R!==null?w[D]=l(R):w[D]=R);return w}function u(y,w){var D,R,z,q;for(R=y.length,z=0;R;)D=R>>>1,q=z+D,w(y[q])?R=D:(z=q+1,R-=D+1);return z}r={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},s={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],Program:["body"],Property:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},i={},a={},o={},n={Break:i,Skip:a,Remove:o};function c(y,w){this.parent=y,this.key=w}c.prototype.replace=function(w){this.parent[this.key]=w},c.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function p(y,w,D,R){this.node=y,this.path=w,this.wrap=D,this.ref=R}function h(){}h.prototype.path=function(){var w,D,R,z,q,W;function _(C,$){if(Array.isArray($))for(R=0,z=$.length;R<z;++R)C.push($[R]);else C.push($)}if(!this.__current.path)return null;for(q=[],w=2,D=this.__leavelist.length;w<D;++w)W=this.__leavelist[w],_(q,W.path);return _(q,this.__current.path),q},h.prototype.type=function(){var y=this.current();return y.type||this.__current.wrap},h.prototype.parents=function(){var w,D,R;for(R=[],w=1,D=this.__leavelist.length;w<D;++w)R.push(this.__leavelist[w].node);return R},h.prototype.current=function(){return this.__current.node},h.prototype.__execute=function(w,D){var R,z;return z=void 0,R=this.__current,this.__current=D,this.__state=null,w&&(z=w.call(this,D.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=R,z},h.prototype.notify=function(w){this.__state=w},h.prototype.skip=function(){this.notify(a)},h.prototype.break=function(){this.notify(i)},h.prototype.remove=function(){this.notify(o)},h.prototype.__initialize=function(y,w){this.visitor=w,this.root=y,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,w.fallback==="iteration"?this.__fallback=Object.keys:typeof w.fallback=="function"&&(this.__fallback=w.fallback),this.__keys=s,w.keys&&(this.__keys=Object.assign(Object.create(this.__keys),w.keys))};function f(y){return y==null?!1:typeof y=="object"&&typeof y.type=="string"}function m(y,w){return(y===r.ObjectExpression||y===r.ObjectPattern)&&w==="properties"}function x(y,w){for(var D=y.length-1;D>=0;--D)if(y[D].node===w)return!0;return!1}h.prototype.traverse=function(w,D){var R,z,q,W,_,C,$,F,U,Q,B,K;for(this.__initialize(w,D),K={},R=this.__worklist,z=this.__leavelist,R.push(new p(w,null,null,null)),z.push(new p(null,null,null,null));R.length;){if(q=R.pop(),q===K){if(q=z.pop(),C=this.__execute(D.leave,q),this.__state===i||C===i)return;continue}if(q.node){if(C=this.__execute(D.enter,q),this.__state===i||C===i)return;if(R.push(K),z.push(q),this.__state===a||C===a)continue;if(W=q.node,_=W.type||q.wrap,Q=this.__keys[_],!Q)if(this.__fallback)Q=this.__fallback(W);else throw new Error("Unknown node type "+_+".");for(F=Q.length;(F-=1)>=0;)if($=Q[F],B=W[$],!!B){if(Array.isArray(B)){for(U=B.length;(U-=1)>=0;)if(!!B[U]&&!x(z,B[U])){if(m(_,Q[F]))q=new p(B[U],[$,U],"Property",null);else if(f(B[U]))q=new p(B[U],[$,U],null,null);else continue;R.push(q)}}else if(f(B)){if(x(z,B))continue;R.push(new p(B,$,null,null))}}}}},h.prototype.replace=function(w,D){var R,z,q,W,_,C,$,F,U,Q,B,K,X;function ie(ve){var Ae,me,ce,Fe;if(ve.ref.remove()){for(me=ve.ref.key,Fe=ve.ref.parent,Ae=R.length;Ae--;)if(ce=R[Ae],ce.ref&&ce.ref.parent===Fe){if(ce.ref.key<me)break;--ce.ref.key}}}for(this.__initialize(w,D),B={},R=this.__worklist,z=this.__leavelist,K={root:w},C=new p(w,null,null,new c(K,"root")),R.push(C),z.push(C);R.length;){if(C=R.pop(),C===B){if(C=z.pop(),_=this.__execute(D.leave,C),_!==void 0&&_!==i&&_!==a&&_!==o&&C.ref.replace(_),(this.__state===o||_===o)&&ie(C),this.__state===i||_===i)return K.root;continue}if(_=this.__execute(D.enter,C),_!==void 0&&_!==i&&_!==a&&_!==o&&(C.ref.replace(_),C.node=_),(this.__state===o||_===o)&&(ie(C),C.node=null),this.__state===i||_===i)return K.root;if(q=C.node,!!q&&(R.push(B),z.push(C),!(this.__state===a||_===a))){if(W=q.type||C.wrap,U=this.__keys[W],!U)if(this.__fallback)U=this.__fallback(q);else throw new Error("Unknown node type "+W+".");for($=U.length;($-=1)>=0;)if(X=U[$],Q=q[X],!!Q)if(Array.isArray(Q)){for(F=Q.length;(F-=1)>=0;)if(!!Q[F]){if(m(W,U[$]))C=new p(Q[F],[X,F],"Property",new c(Q,F));else if(f(Q[F]))C=new p(Q[F],[X,F],null,new c(Q,F));else continue;R.push(C)}}else f(Q)&&R.push(new p(Q,X,null,new c(q,X)))}}return K.root};function E(y,w){var D=new h;return D.traverse(y,w)}function S(y,w){var D=new h;return D.replace(y,w)}function T(y,w){var D;return D=u(w,function(z){return z.range[0]>y.range[0]}),y.extendedRange=[y.range[0],y.range[1]],D!==w.length&&(y.extendedRange[1]=w[D].range[0]),D-=1,D>=0&&(y.extendedRange[0]=w[D].range[1]),y}function I(y,w,D){var R=[],z,q,W,_;if(!y.range)throw new Error("attachComments needs range information");if(!D.length){if(w.length){for(W=0,q=w.length;W<q;W+=1)z=l(w[W]),z.extendedRange=[0,y.range[0]],R.push(z);y.leadingComments=R}return y}for(W=0,q=w.length;W<q;W+=1)R.push(T(l(w[W]),D));return _=0,E(y,{enter:function(C){for(var $;_<R.length&&($=R[_],!($.extendedRange[1]>C.range[0]));)$.extendedRange[1]===C.range[0]?(C.leadingComments||(C.leadingComments=[]),C.leadingComments.push($),R.splice(_,1)):_+=1;if(_===R.length)return n.Break;if(R[_].extendedRange[0]>C.range[1])return n.Skip}}),_=0,E(y,{leave:function(C){for(var $;_<R.length&&($=R[_],!(C.range[1]<$.extendedRange[0]));)C.range[1]===$.extendedRange[0]?(C.trailingComments||(C.trailingComments=[]),C.trailingComments.push($),R.splice(_,1)):_+=1;if(_===R.length)return n.Break;if(R[_].extendedRange[0]>C.range[1])return n.Skip}}),y}return e.Syntax=r,e.traverse=E,e.replace=S,e.attachComments=I,e.VisitorKeys=s,e.VisitorOption=n,e.Controller=h,e.cloneEnvironment=function(){return t({})},e})(td)});var nd=M((BQ,sd)=>{sd.exports={_from:"esrecurse@^4.3.0",_id:"esrecurse@4.3.0",_inBundle:!1,_integrity:"sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",_location:"/esrecurse",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"esrecurse@^4.3.0",name:"esrecurse",escapedName:"esrecurse",rawSpec:"^4.3.0",saveSpec:null,fetchSpec:"^4.3.0"},_requiredBy:["/eslint-scope"],_resolved:"https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",_shasum:"7ad7964d679abb28bee72cec63758b1c5d2c9921",_spec:"esrecurse@^4.3.0",_where:"D:\\DevWork\\localpen\\node_modules\\eslint-scope",babel:{presets:["es2015"]},bugs:{url:"https://github.com/estools/esrecurse/issues"},bundleDependencies:!1,dependencies:{estraverse:"^5.2.0"},deprecated:!1,description:"ECMAScript AST recursive visitor",devDependencies:{"babel-cli":"^6.24.1","babel-eslint":"^7.2.3","babel-preset-es2015":"^6.24.1","babel-register":"^6.24.1",chai:"^4.0.2",esprima:"^4.0.0",gulp:"^3.9.0","gulp-bump":"^2.7.0","gulp-eslint":"^4.0.0","gulp-filter":"^5.0.0","gulp-git":"^2.4.1","gulp-mocha":"^4.3.1","gulp-tag-version":"^1.2.1",jsdoc:"^3.3.0-alpha10",minimist:"^1.1.0"},engines:{node:">=4.0"},homepage:"https://github.com/estools/esrecurse",license:"BSD-2-Clause",main:"esrecurse.js",maintainers:[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",url:"https://github.com/Constellation"}],name:"esrecurse",repository:{type:"git",url:"git+https://github.com/estools/esrecurse.git"},scripts:{lint:"gulp lint",test:"gulp travis","unit-test":"gulp test"},version:"4.3.0"}});var id=M(ho=>{b();v();(function(){"use strict";var t=rd();function e(s){return s==null?!1:typeof s=="object"&&typeof s.type=="string"}function r(s,i){return(s===t.Syntax.ObjectExpression||s===t.Syntax.ObjectPattern)&&i==="properties"}function n(s,i){i=i||{},this.__visitor=s||this,this.__childVisitorKeys=i.childVisitorKeys?Object.assign({},t.VisitorKeys,i.childVisitorKeys):t.VisitorKeys,i.fallback==="iteration"?this.__fallback=Object.keys:typeof i.fallback=="function"&&(this.__fallback=i.fallback)}n.prototype.visitChildren=function(s){var i,a,o,l,u,c,p;if(s!=null){if(i=s.type||t.Syntax.Property,a=this.__childVisitorKeys[i],!a)if(this.__fallback)a=this.__fallback(s);else throw new Error("Unknown node type "+i+".");for(o=0,l=a.length;o<l;++o)if(p=s[a[o]],p)if(Array.isArray(p))for(u=0,c=p.length;u<c;++u)p[u]&&(e(p[u])||r(i,a[o]))&&this.visit(p[u]);else e(p)&&this.visit(p)}},n.prototype.visit=function(s){var i;if(s!=null){if(i=s.type||t.Syntax.Property,this.__visitor[i]){this.__visitor[i].call(this,s);return}this.visitChildren(s)}},ho.version=nd().version,ho.Visitor=n,ho.visit=function(s,i,a){var o=new n(i,a);o.visit(s)}})()});var bd=M(Rr=>{b();v();"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});var p8=fn(),h8=ed(),m8=id();function Yu(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var Un=Yu(p8),Ju=Yu(h8),Qu=Yu(m8),ad=1,od=2,d8=ad|od,Mt=class{constructor(e,r,n,s,i,a,o){this.identifier=e,this.from=r,this.tainted=!1,this.resolved=null,this.flag=n,this.isWrite()&&(this.writeExpr=s,this.partial=a,this.init=o),this.__maybeImplicitGlobal=i}isStatic(){return!this.tainted&&this.resolved&&this.resolved.scope.isStatic()}isWrite(){return!!(this.flag&Mt.WRITE)}isRead(){return!!(this.flag&Mt.READ)}isReadOnly(){return this.flag===Mt.READ}isWriteOnly(){return this.flag===Mt.WRITE}isReadWrite(){return this.flag===Mt.RW}};Mt.READ=ad;Mt.WRITE=od;Mt.RW=d8;var Lt=class{constructor(e,r){this.name=e,this.identifiers=[],this.references=[],this.defs=[],this.tainted=!1,this.stack=!0,this.scope=r}};Lt.CatchClause="CatchClause";Lt.Parameter="Parameter";Lt.FunctionName="FunctionName";Lt.ClassName="ClassName";Lt.Variable="Variable";Lt.ImportBinding="ImportBinding";Lt.ImplicitGlobalVariable="ImplicitGlobalVariable";var Lr=class{constructor(e,r,n,s,i,a){this.type=e,this.name=r,this.node=n,this.parent=s,this.index=i,this.kind=a}},Xu=class extends Lr{constructor(e,r,n,s){super(Lt.Parameter,e,r,null,n,null);this.rest=s}},{Syntax:Dr}=Ju.default;function g8(t,e,r,n){let s;if(t.upper&&t.upper.isStrict||r||t.type==="class"||t.type==="module")return!0;if(t.type==="block"||t.type==="switch")return!1;if(t.type==="function"){if(e.type===Dr.ArrowFunctionExpression&&e.body.type!==Dr.BlockStatement||(e.type===Dr.Program?s=e:s=e.body,!s))return!1}else if(t.type==="global")s=e;else return!1;if(n)for(let i=0,a=s.body.length;i<a;++i){let o=s.body[i];if(o.type!==Dr.DirectiveStatement)break;if(o.raw==='"use strict"'||o.raw==="'use strict'")return!0}else for(let i=0,a=s.body.length;i<a;++i){let o=s.body[i];if(o.type!==Dr.ExpressionStatement)break;let l=o.expression;if(l.type!==Dr.Literal||typeof l.value!="string")break;if(l.raw!==null&&l.raw!==void 0){if(l.raw==='"use strict"'||l.raw==="'use strict'")return!0}else if(l.value==="use strict")return!0}return!1}function y8(t,e){t.scopes.push(e);let r=t.__nodeToScope.get(e.block);r?r.push(e):t.__nodeToScope.set(e.block,[e])}function x8(t){return t.type===Lt.ClassName||t.type===Lt.Variable&&t.parent.kind!=="var"}var fr=class{constructor(e,r,n,s,i){this.type=r,this.set=new Map,this.taints=new Map,this.dynamic=this.type==="global"||this.type==="with",this.block=s,this.through=[],this.variables=[],this.references=[],this.variableScope=this.type==="global"||this.type==="module"||this.type==="function"||this.type==="class-field-initializer"||this.type==="class-static-block"?this:n.variableScope,this.functionExpressionScope=!1,this.directCallToEvalScope=!1,this.thisFound=!1,this.__left=[],this.upper=n,this.isStrict=e.isStrictModeSupported()?g8(this,s,i,e.__useDirective()):!1,this.childScopes=[],this.upper&&this.upper.childScopes.push(this),this.__declaredVariables=e.__declaredVariables,y8(e,this)}__shouldStaticallyClose(e){return!this.dynamic||e.__isOptimistic()}__shouldStaticallyCloseForGlobal(e){let r=e.identifier.name;if(!this.set.has(r))return!1;let s=this.set.get(r).defs;return s.length>0&&s.every(x8)}__staticCloseRef(e){this.__resolve(e)||this.__delegateToUpperScope(e)}__dynamicCloseRef(e){let r=this;do r.through.push(e),r=r.upper;while(r)}__globalCloseRef(e){this.__shouldStaticallyCloseForGlobal(e)?this.__staticCloseRef(e):this.__dynamicCloseRef(e)}__close(e){let r;this.__shouldStaticallyClose(e)?r=this.__staticCloseRef:this.type!=="global"?r=this.__dynamicCloseRef:r=this.__globalCloseRef;for(let n=0,s=this.__left.length;n<s;++n){let i=this.__left[n];r.call(this,i)}return this.__left=null,this.upper}__isValidResolution(e,r){return!0}__resolve(e){let r=e.identifier.name;if(!this.set.has(r))return!1;let n=this.set.get(r);return this.__isValidResolution(e,n)?(n.references.push(e),n.stack=n.stack&&e.from.variableScope===this.variableScope,e.tainted&&(n.tainted=!0,this.taints.set(n.name,!0)),e.resolved=n,!0):!1}__delegateToUpperScope(e){this.upper&&this.upper.__left.push(e),this.through.push(e)}__addDeclaredVariablesOfNode(e,r){if(r==null)return;let n=this.__declaredVariables.get(r);n==null&&(n=[],this.__declaredVariables.set(r,n)),n.indexOf(e)===-1&&n.push(e)}__defineGeneric(e,r,n,s,i){let a;a=r.get(e),a||(a=new Lt(e,this),r.set(e,a),n.push(a)),i&&(a.defs.push(i),this.__addDeclaredVariablesOfNode(a,i.node),this.__addDeclaredVariablesOfNode(a,i.parent)),s&&a.identifiers.push(s)}__define(e,r){e&&e.type===Dr.Identifier&&this.__defineGeneric(e.name,this.set,this.variables,e,r)}__referencing(e,r,n,s,i,a){if(!e||e.type!==Dr.Identifier||e.name==="super")return;let o=new Mt(e,this,r||Mt.READ,n,s,!!i,!!a);this.references.push(o),this.__left.push(o)}__detectEval(){let e=this;this.directCallToEvalScope=!0;do e.dynamic=!0,e=e.upper;while(e)}__detectThis(){this.thisFound=!0}__isClosed(){return this.__left===null}resolve(e){let r,n,s;for(Un.default(this.__isClosed(),"Scope should be closed."),Un.default(e.type===Dr.Identifier,"Target should be identifier."),n=0,s=this.references.length;n<s;++n)if(r=this.references[n],r.identifier===e)return r;return null}isStatic(){return!this.dynamic}isArgumentsMaterialized(){return!0}isThisMaterialized(){return!0}isUsedName(e){if(this.set.has(e))return!0;for(let r=0,n=this.through.length;r<n;++r)if(this.through[r].identifier.name===e)return!0;return!1}},Zu=class extends fr{constructor(e,r){super(e,"global",null,r,!1);this.implicit={set:new Map,variables:[],left:[]}}__close(e){let r=[];for(let n=0,s=this.__left.length;n<s;++n){let i=this.__left[n];i.__maybeImplicitGlobal&&!this.set.has(i.identifier.name)&&r.push(i.__maybeImplicitGlobal)}for(let n=0,s=r.length;n<s;++n){let i=r[n];this.__defineImplicit(i.pattern,new Lr(Lt.ImplicitGlobalVariable,i.pattern,i.node,null,null,null))}return this.implicit.left=this.__left,super.__close(e)}__defineImplicit(e,r){e&&e.type===Dr.Identifier&&this.__defineGeneric(e.name,this.implicit.set,this.implicit.variables,e,r)}},ld=class extends fr{constructor(e,r,n){super(e,"module",r,n,!1)}},ud=class extends fr{constructor(e,r,n){super(e,"function-expression-name",r,n,!1);this.__define(n.id,new Lr(Lt.FunctionName,n.id,n,null,null,null)),this.functionExpressionScope=!0}},cd=class extends fr{constructor(e,r,n){super(e,"catch",r,n,!1)}},fd=class extends fr{constructor(e,r,n){super(e,"with",r,n,!1)}__close(e){if(this.__shouldStaticallyClose(e))return super.__close(e);for(let r=0,n=this.__left.length;r<n;++r){let s=this.__left[r];s.tainted=!0,this.__delegateToUpperScope(s)}return this.__left=null,this.upper}},pd=class extends fr{constructor(e,r,n){super(e,"block",r,n,!1)}},hd=class extends fr{constructor(e,r,n){super(e,"switch",r,n,!1)}},md=class extends fr{constructor(e,r,n,s){super(e,"function",r,n,s);this.block.type!==Dr.ArrowFunctionExpression&&this.__defineArguments()}isArgumentsMaterialized(){if(this.block.type===Dr.ArrowFunctionExpression)return!1;if(!this.isStatic())return!0;let e=this.set.get("arguments");return Un.default(e,"Always have arguments variable."),e.tainted||e.references.length!==0}isThisMaterialized(){return this.isStatic()?this.thisFound:!0}__defineArguments(){this.__defineGeneric("arguments",this.set,this.variables,null,null),this.taints.set("arguments",!0)}__isValidResolution(e,r){if(this.block.type==="Program")return!0;let n=this.block.body.range[0];return!(r.scope===this&&e.identifier.range[0]<n&&r.defs.every(s=>s.name.range[0]>=n))}},dd=class extends fr{constructor(e,r,n){super(e,"for",r,n,!1)}},gd=class extends fr{constructor(e,r,n){super(e,"class",r,n,!1)}},yd=class extends fr{constructor(e,r,n){super(e,"class-field-initializer",r,n,!0)}},xd=class extends fr{constructor(e,r,n){super(e,"class-static-block",r,n,!0)}},ec=class{constructor(e){this.scopes=[],this.globalScope=null,this.__nodeToScope=new WeakMap,this.__currentScope=null,this.__options=e,this.__declaredVariables=new WeakMap}__useDirective(){return this.__options.directive}__isOptimistic(){return this.__options.optimistic}__ignoreEval(){return this.__options.ignoreEval}__isNodejsScope(){return this.__options.nodejsScope||this.__options.sourceType==="commonjs"}isModule(){return this.__options.sourceType==="module"}isImpliedStrict(){return this.__options.impliedStrict}isStrictModeSupported(){return this.__options.ecmaVersion>=5}__get(e){return this.__nodeToScope.get(e)}getDeclaredVariables(e){return this.__declaredVariables.get(e)||[]}acquire(e,r){function n(i){return!(i.type==="function"&&i.functionExpressionScope)}let s=this.__get(e);if(!s||s.length===0)return null;if(s.length===1)return s[0];if(r)for(let i=s.length-1;i>=0;--i){let a=s[i];if(n(a))return a}else for(let i=0,a=s.length;i<a;++i){let o=s[i];if(n(o))return o}return null}acquireAll(e){return this.__get(e)}release(e,r){let n=this.__get(e);if(n&&n.length){let s=n[0].upper;return s?this.acquire(s.block,r):null}return null}attach(){}detach(){}__nestScope(e){return e instanceof Zu&&(Un.default(this.__currentScope===null),this.globalScope=e),this.__currentScope=e,e}__nestGlobalScope(e){return this.__nestScope(new Zu(this,e))}__nestBlockScope(e){return this.__nestScope(new pd(this,this.__currentScope,e))}__nestFunctionScope(e,r){return this.__nestScope(new md(this,this.__currentScope,e,r))}__nestForScope(e){return this.__nestScope(new dd(this,this.__currentScope,e))}__nestCatchScope(e){return this.__nestScope(new cd(this,this.__currentScope,e))}__nestWithScope(e){return this.__nestScope(new fd(this,this.__currentScope,e))}__nestClassScope(e){return this.__nestScope(new gd(this,this.__currentScope,e))}__nestClassFieldInitializerScope(e){return this.__nestScope(new yd(this,this.__currentScope,e))}__nestClassStaticBlockScope(e){return this.__nestScope(new xd(this,this.__currentScope,e))}__nestSwitchScope(e){return this.__nestScope(new hd(this,this.__currentScope,e))}__nestModuleScope(e){return this.__nestScope(new ld(this,this.__currentScope,e))}__nestFunctionExpressionNameScope(e){return this.__nestScope(new ud(this,this.__currentScope,e))}__isES6(){return this.__options.ecmaVersion>=6}},{Syntax:$n}=Ju.default;function E8(t){return t[t.length-1]||null}var Ni=class extends Qu.default.Visitor{static isPattern(e){let r=e.type;return r===$n.Identifier||r===$n.ObjectPattern||r===$n.ArrayPattern||r===$n.SpreadElement||r===$n.RestElement||r===$n.AssignmentPattern}constructor(e,r,n){super(null,e);this.rootPattern=r,this.callback=n,this.assignments=[],this.rightHandNodes=[],this.restElements=[]}Identifier(e){let r=E8(this.restElements);this.callback(e,{topLevel:e===this.rootPattern,rest:r!=null&&r.argument===e,assignments:this.assignments})}Property(e){e.computed&&this.rightHandNodes.push(e.key),this.visit(e.value)}ArrayPattern(e){for(let r=0,n=e.elements.length;r<n;++r){let s=e.elements[r];this.visit(s)}}AssignmentPattern(e){this.assignments.push(e),this.visit(e.left),this.rightHandNodes.push(e.right),this.assignments.pop()}RestElement(e){this.restElements.push(e),this.visit(e.argument),this.restElements.pop()}MemberExpression(e){e.computed&&this.rightHandNodes.push(e.property),this.rightHandNodes.push(e.object)}SpreadElement(e){this.visit(e.argument)}ArrayExpression(e){e.elements.forEach(this.visit,this)}AssignmentExpression(e){this.assignments.push(e),this.visit(e.left),this.rightHandNodes.push(e.right),this.assignments.pop()}CallExpression(e){e.arguments.forEach(r=>{this.rightHandNodes.push(r)}),this.visit(e.callee)}},{Syntax:fs}=Ju.default;function b8(t,e,r,n){let s=new Ni(t,e,n);s.visit(e),r!=null&&s.rightHandNodes.forEach(r.visit,r)}var Ed=class extends Qu.default.Visitor{constructor(e,r){super(null,r.options);this.declaration=e,this.referencer=r}visitImport(e,r){this.referencer.visitPattern(e,n=>{this.referencer.currentScope().__define(n,new Lr(Lt.ImportBinding,n,r,this.declaration,null,null))})}ImportNamespaceSpecifier(e){let r=e.local||e.id;r&&this.visitImport(r,e)}ImportDefaultSpecifier(e){let r=e.local||e.id;this.visitImport(r,e)}ImportSpecifier(e){let r=e.local||e.id;e.name?this.visitImport(e.name,e):this.visitImport(r,e)}},tc=class extends Qu.default.Visitor{constructor(e,r){super(null,e);this.options=e,this.scopeManager=r,this.parent=null,this.isInnerMethodDefinition=!1}currentScope(){return this.scopeManager.__currentScope}close(e){for(;this.currentScope()&&e===this.currentScope().block;)this.scopeManager.__currentScope=this.currentScope().__close(this.scopeManager)}pushInnerMethodDefinition(e){let r=this.isInnerMethodDefinition;return this.isInnerMethodDefinition=e,r}popInnerMethodDefinition(e){this.isInnerMethodDefinition=e}referencingDefaultValue(e,r,n,s){let i=this.currentScope();r.forEach(a=>{i.__referencing(e,Mt.WRITE,a.right,n,e!==a.left,s)})}visitPattern(e,r,n){let s=r,i=n;typeof r=="function"&&(i=r,s={processRightHandNodes:!1}),b8(this.options,e,s.processRightHandNodes?this:null,i)}visitFunction(e){let r,n;e.type===fs.FunctionDeclaration&&this.currentScope().__define(e.id,new Lr(Lt.FunctionName,e.id,e,null,null,null)),e.type===fs.FunctionExpression&&e.id&&this.scopeManager.__nestFunctionExpressionNameScope(e),this.scopeManager.__nestFunctionScope(e,this.isInnerMethodDefinition);let s=this;function i(a,o){s.currentScope().__define(a,new Xu(a,e,r,o.rest)),s.referencingDefaultValue(a,o.assignments,null,!0)}for(r=0,n=e.params.length;r<n;++r)this.visitPattern(e.params[r],{processRightHandNodes:!0},i);e.rest&&this.visitPattern({type:"RestElement",argument:e.rest},a=>{this.currentScope().__define(a,new Xu(a,e,e.params.length,!0))}),e.body&&(e.body.type===fs.BlockStatement?this.visitChildren(e.body):this.visit(e.body)),this.close(e)}visitClass(e){e.type===fs.ClassDeclaration&&this.currentScope().__define(e.id,new Lr(Lt.ClassName,e.id,e,null,null,null)),this.visit(e.superClass),this.scopeManager.__nestClassScope(e),e.id&&this.currentScope().__define(e.id,new Lr(Lt.ClassName,e.id,e)),this.visit(e.body),this.close(e)}visitProperty(e){let r;e.computed&&this.visit(e.key);let n=e.type===fs.MethodDefinition;n&&(r=this.pushInnerMethodDefinition(!0)),this.visit(e.value),n&&this.popInnerMethodDefinition(r)}visitForIn(e){e.left.type===fs.VariableDeclaration&&e.left.kind!=="var"&&this.scopeManager.__nestForScope(e),e.left.type===fs.VariableDeclaration?(this.visit(e.left),this.visitPattern(e.left.declarations[0].id,r=>{this.currentScope().__referencing(r,Mt.WRITE,e.right,null,!0,!0)})):this.visitPattern(e.left,{processRightHandNodes:!0},(r,n)=>{let s=null;this.currentScope().isStrict||(s={pattern:r,node:e}),this.referencingDefaultValue(r,n.assignments,s,!1),this.currentScope().__referencing(r,Mt.WRITE,e.right,s,!0,!1)}),this.visit(e.right),this.visit(e.body),this.close(e)}visitVariableDeclaration(e,r,n,s){let i=n.declarations[s],a=i.init;this.visitPattern(i.id,{processRightHandNodes:!0},(o,l)=>{e.__define(o,new Lr(r,o,i,n,s,n.kind)),this.referencingDefaultValue(o,l.assignments,null,!0),a&&this.currentScope().__referencing(o,Mt.WRITE,a,null,!l.topLevel,!0)})}AssignmentExpression(e){Ni.isPattern(e.left)?e.operator==="="?this.visitPattern(e.left,{processRightHandNodes:!0},(r,n)=>{let s=null;this.currentScope().isStrict||(s={pattern:r,node:e}),this.referencingDefaultValue(r,n.assignments,s,!1),this.currentScope().__referencing(r,Mt.WRITE,e.right,s,!n.topLevel,!1)}):this.currentScope().__referencing(e.left,Mt.RW,e.right):this.visit(e.left),this.visit(e.right)}CatchClause(e){this.scopeManager.__nestCatchScope(e),this.visitPattern(e.param,{processRightHandNodes:!0},(r,n)=>{this.currentScope().__define(r,new Lr(Lt.CatchClause,e.param,e,null,null,null)),this.referencingDefaultValue(r,n.assignments,null,!0)}),this.visit(e.body),this.close(e)}Program(e){this.scopeManager.__nestGlobalScope(e),this.scopeManager.__isNodejsScope()&&(this.currentScope().isStrict=!1,this.scopeManager.__nestFunctionScope(e,!1)),this.scopeManager.__isES6()&&this.scopeManager.isModule()&&this.scopeManager.__nestModuleScope(e),this.scopeManager.isStrictModeSupported()&&this.scopeManager.isImpliedStrict()&&(this.currentScope().isStrict=!0),this.visitChildren(e),this.close(e)}Identifier(e){this.currentScope().__referencing(e)}PrivateIdentifier(){}UpdateExpression(e){Ni.isPattern(e.argument)?this.currentScope().__referencing(e.argument,Mt.RW,null):this.visitChildren(e)}MemberExpression(e){this.visit(e.object),e.computed&&this.visit(e.property)}Property(e){this.visitProperty(e)}PropertyDefinition(e){let{computed:r,key:n,value:s}=e;r&&this.visit(n),s&&(this.scopeManager.__nestClassFieldInitializerScope(s),this.visit(s),this.close(s))}StaticBlock(e){this.scopeManager.__nestClassStaticBlockScope(e),this.visitChildren(e),this.close(e)}MethodDefinition(e){this.visitProperty(e)}BreakStatement(){}ContinueStatement(){}LabeledStatement(e){this.visit(e.body)}ForStatement(e){e.init&&e.init.type===fs.VariableDeclaration&&e.init.kind!=="var"&&this.scopeManager.__nestForScope(e),this.visitChildren(e),this.close(e)}ClassExpression(e){this.visitClass(e)}ClassDeclaration(e){this.visitClass(e)}CallExpression(e){!this.scopeManager.__ignoreEval()&&e.callee.type===fs.Identifier&&e.callee.name==="eval"&&this.currentScope().variableScope.__detectEval(),this.visitChildren(e)}BlockStatement(e){this.scopeManager.__isES6()&&this.scopeManager.__nestBlockScope(e),this.visitChildren(e),this.close(e)}ThisExpression(){this.currentScope().variableScope.__detectThis()}WithStatement(e){this.visit(e.object),this.scopeManager.__nestWithScope(e),this.visit(e.body),this.close(e)}VariableDeclaration(e){let r=e.kind==="var"?this.currentScope().variableScope:this.currentScope();for(let n=0,s=e.declarations.length;n<s;++n){let i=e.declarations[n];this.visitVariableDeclaration(r,Lt.Variable,e,n),i.init&&this.visit(i.init)}}SwitchStatement(e){this.visit(e.discriminant),this.scopeManager.__isES6()&&this.scopeManager.__nestSwitchScope(e);for(let r=0,n=e.cases.length;r<n;++r)this.visit(e.cases[r]);this.close(e)}FunctionDeclaration(e){this.visitFunction(e)}FunctionExpression(e){this.visitFunction(e)}ForOfStatement(e){this.visitForIn(e)}ForInStatement(e){this.visitForIn(e)}ArrowFunctionExpression(e){this.visitFunction(e)}ImportDeclaration(e){Un.default(this.scopeManager.__isES6()&&this.scopeManager.isModule(),"ImportDeclaration should appear when the mode is ES6 and in the module context."),new Ed(e,this).visit(e)}visitExportDeclaration(e){if(!e.source){if(e.declaration){this.visit(e.declaration);return}this.visitChildren(e)}}ExportDeclaration(e){this.visitExportDeclaration(e)}ExportAllDeclaration(e){this.visitExportDeclaration(e)}ExportDefaultDeclaration(e){this.visitExportDeclaration(e)}ExportNamedDeclaration(e){this.visitExportDeclaration(e)}ExportSpecifier(e){let r=e.id||e.local;this.visit(r)}MetaProperty(){}},v8="7.1.1";function C8(){return{optimistic:!1,directive:!1,nodejsScope:!1,impliedStrict:!1,sourceType:"script",ecmaVersion:5,childVisitorKeys:null,fallback:"iteration"}}function rc(t,e){function r(n){return typeof n=="object"&&n instanceof Object&&!(n instanceof Array)&&!(n instanceof RegExp)}for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let s=e[n];r(s)?r(t[n])?rc(t[n],s):t[n]=rc({},s):t[n]=s}return t}function S8(t,e){let r=rc(C8(),e),n=new ec(r);return new tc(r,n).visit(t),Un.default(n.__currentScope===null,"currentScope should be null."),n}Rr.Definition=Lr;Rr.PatternVisitor=Ni;Rr.Reference=Mt;Rr.Referencer=tc;Rr.Scope=fr;Rr.ScopeManager=ec;Rr.Variable=Lt;Rr.analyze=S8;Rr.version=v8});var sc=M(Mi=>{b();v();"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});var ji={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["exported","source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportExpression:["source"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXClosingFragment:[],JSXOpeningFragment:[],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},A8=Object.keys(ji);for(let t of A8)Object.freeze(ji[t]);Object.freeze(ji);var w8=new Set(["parent","leadingComments","trailingComments"]);function k8(t){return!w8.has(t)&&t[0]!=="_"}function D8(t){return Object.keys(t).filter(k8)}function T8(t){let e=Object.assign({},ji);for(let r of Object.keys(t))if(Object.prototype.hasOwnProperty.call(e,r)){let n=new Set(t[r]);for(let s of e[r])n.add(s);e[r]=Object.freeze(Array.from(n))}else e[r]=Object.freeze(Array.from(t[r]));return Object.freeze(e)}Mi.KEYS=ji;Mi.getKeys=D8;Mi.unionWith=T8});var Cd=M((mo,vd)=>{b();v();(function(t,e){typeof mo=="object"&&typeof vd!="undefined"?e(mo):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis!="undefined"?globalThis:t||self,e(t.acorn={}))})(mo,function(t){"use strict";var e={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},r="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",n={5:r,"5module":r+" export import",6:r+" const class extends export import super"},s=/^in(stanceof)?$/,i="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",a="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F",o=new RegExp("["+i+"]"),l=new RegExp("["+i+a+"]");i=a=null;var u=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,46,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,482,44,11,6,17,0,322,29,19,43,1269,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4152,8,221,3,5761,15,7472,3104,541,1507,4938],c=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239];function p(d,A){for(var O=65536,G=0;G<A.length;G+=2){if(O+=A[G],O>d)return!1;if(O+=A[G+1],O>=d)return!0}}function h(d,A){return d<65?d===36:d<91?!0:d<97?d===95:d<123?!0:d<=65535?d>=170&&o.test(String.fromCharCode(d)):A===!1?!1:p(d,u)}function f(d,A){return d<48?d===36:d<58?!0:d<65?!1:d<91?!0:d<97?d===95:d<123?!0:d<=65535?d>=170&&l.test(String.fromCharCode(d)):A===!1?!1:p(d,u)||p(d,c)}var m=function(A,O){O===void 0&&(O={}),this.label=A,this.keyword=O.keyword,this.beforeExpr=!!O.beforeExpr,this.startsExpr=!!O.startsExpr,this.isLoop=!!O.isLoop,this.isAssign=!!O.isAssign,this.prefix=!!O.prefix,this.postfix=!!O.postfix,this.binop=O.binop||null,this.updateContext=null};function x(d,A){return new m(d,{beforeExpr:!0,binop:A})}var E={beforeExpr:!0},S={startsExpr:!0},T={};function I(d,A){return A===void 0&&(A={}),A.keyword=d,T[d]=new m(d,A)}var y={num:new m("num",S),regexp:new m("regexp",S),string:new m("string",S),name:new m("name",S),privateId:new m("privateId",S),eof:new m("eof"),bracketL:new m("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new m("]"),braceL:new m("{",{beforeExpr:!0,startsExpr:!0}),braceR:new m("}"),parenL:new m("(",{beforeExpr:!0,startsExpr:!0}),parenR:new m(")"),comma:new m(",",E),semi:new m(";",E),colon:new m(":",E),dot:new m("."),question:new m("?",E),questionDot:new m("?."),arrow:new m("=>",E),template:new m("template"),invalidTemplate:new m("invalidTemplate"),ellipsis:new m("...",E),backQuote:new m("`",S),dollarBraceL:new m("${",{beforeExpr:!0,startsExpr:!0}),eq:new m("=",{beforeExpr:!0,isAssign:!0}),assign:new m("_=",{beforeExpr:!0,isAssign:!0}),incDec:new m("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new m("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:x("||",1),logicalAND:x("&&",2),bitwiseOR:x("|",3),bitwiseXOR:x("^",4),bitwiseAND:x("&",5),equality:x("==/!=/===/!==",6),relational:x("</>/<=/>=",7),bitShift:x("<</>>/>>>",8),plusMin:new m("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:x("%",10),star:x("*",10),slash:x("/",10),starstar:new m("**",{beforeExpr:!0}),coalesce:x("??",1),_break:I("break"),_case:I("case",E),_catch:I("catch"),_continue:I("continue"),_debugger:I("debugger"),_default:I("default",E),_do:I("do",{isLoop:!0,beforeExpr:!0}),_else:I("else",E),_finally:I("finally"),_for:I("for",{isLoop:!0}),_function:I("function",S),_if:I("if"),_return:I("return",E),_switch:I("switch"),_throw:I("throw",E),_try:I("try"),_var:I("var"),_const:I("const"),_while:I("while",{isLoop:!0}),_with:I("with"),_new:I("new",{beforeExpr:!0,startsExpr:!0}),_this:I("this",S),_super:I("super",S),_class:I("class",S),_extends:I("extends",E),_export:I("export"),_import:I("import",S),_null:I("null",S),_true:I("true",S),_false:I("false",S),_in:I("in",{beforeExpr:!0,binop:7}),_instanceof:I("instanceof",{beforeExpr:!0,binop:7}),_typeof:I("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:I("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:I("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},w=/\r\n?|\n|\u2028|\u2029/,D=new RegExp(w.source,"g");function R(d){return d===10||d===13||d===8232||d===8233}function z(d,A,O){O===void 0&&(O=d.length);for(var G=A;G<O;G++){var ee=d.charCodeAt(G);if(R(ee))return G<O-1&&ee===13&&d.charCodeAt(G+1)===10?G+2:G+1}return-1}var q=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,W=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,_=Object.prototype,C=_.hasOwnProperty,$=_.toString,F=Object.hasOwn||function(d,A){return C.call(d,A)},U=Array.isArray||function(d){return $.call(d)==="[object Array]"};function Q(d){return new RegExp("^(?:"+d.replace(/ /g,"|")+")$")}var B=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,K=function(A,O){this.line=A,this.column=O};K.prototype.offset=function(A){return new K(this.line,this.column+A)};var X=function(A,O,G){this.start=O,this.end=G,A.sourceFile!==null&&(this.source=A.sourceFile)};function ie(d,A){for(var O=1,G=0;;){var ee=z(d,G,A);if(ee<0)return new K(O,A-G);++O,G=ee}}var ve={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Ae=!1;function me(d){var A={};for(var O in ve)A[O]=d&&F(d,O)?d[O]:ve[O];if(A.ecmaVersion==="latest"?A.ecmaVersion=1e8:A.ecmaVersion==null?(!Ae&&typeof console=="object"&&console.warn&&(Ae=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
13
|
+
Defaulting to 2020, but this will stop working in the future.`)),A.ecmaVersion=11):A.ecmaVersion>=2015&&(A.ecmaVersion-=2009),A.allowReserved==null&&(A.allowReserved=A.ecmaVersion<5),U(A.onToken)){var G=A.onToken;A.onToken=function(ee){return G.push(ee)}}return U(A.onComment)&&(A.onComment=ce(A,A.onComment)),A}function ce(d,A){return function(O,G,ee,de,Ee,Be){var je={type:O?"Block":"Line",value:G,start:ee,end:de};d.locations&&(je.loc=new X(this,Ee,Be)),d.ranges&&(je.range=[ee,de]),A.push(je)}}var Fe=1,te=2,ne=4,ue=8,re=16,fe=32,Ce=64,Ge=128,V=256,se=Fe|te|V;function Pe(d,A){return te|(d?ne:0)|(A?ue:0)}var Je=0,nt=1,Ye=2,it=3,lt=4,Dt=5,Xe=function(A,O,G){this.options=A=me(A),this.sourceFile=A.sourceFile,this.keywords=Q(n[A.ecmaVersion>=6?6:A.sourceType==="module"?"5module":5]);var ee="";A.allowReserved!==!0&&(ee=e[A.ecmaVersion>=6?6:A.ecmaVersion===5?5:3],A.sourceType==="module"&&(ee+=" await")),this.reservedWords=Q(ee);var de=(ee?ee+" ":"")+e.strict;this.reservedWordsStrict=Q(de),this.reservedWordsStrictBind=Q(de+" "+e.strictBind),this.input=String(O),this.containsEsc=!1,G?(this.pos=G,this.lineStart=this.input.lastIndexOf(`
|
|
14
|
+
`,G-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(w).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=y.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=A.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&A.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Fe),this.regexpState=null,this.privateNameStack=[]},Ue={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};Xe.prototype.parse=function(){var A=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(A)},Ue.inFunction.get=function(){return(this.currentVarScope().flags&te)>0},Ue.inGenerator.get=function(){return(this.currentVarScope().flags&ue)>0&&!this.currentVarScope().inClassFieldInit},Ue.inAsync.get=function(){return(this.currentVarScope().flags&ne)>0&&!this.currentVarScope().inClassFieldInit},Ue.canAwait.get=function(){for(var d=this.scopeStack.length-1;d>=0;d--){var A=this.scopeStack[d];if(A.inClassFieldInit||A.flags&V)return!1;if(A.flags&te)return(A.flags&ne)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Ue.allowSuper.get=function(){var d=this.currentThisScope(),A=d.flags,O=d.inClassFieldInit;return(A&Ce)>0||O||this.options.allowSuperOutsideMethod},Ue.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Ge)>0},Ue.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ue.allowNewDotTarget.get=function(){var d=this.currentThisScope(),A=d.flags,O=d.inClassFieldInit;return(A&(te|V))>0||O},Ue.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&V)>0},Xe.extend=function(){for(var A=[],O=arguments.length;O--;)A[O]=arguments[O];for(var G=this,ee=0;ee<A.length;ee++)G=A[ee](G);return G},Xe.parse=function(A,O){return new this(O,A).parse()},Xe.parseExpressionAt=function(A,O,G){var ee=new this(G,A,O);return ee.nextToken(),ee.parseExpression()},Xe.tokenizer=function(A,O){return new this(O,A)},Object.defineProperties(Xe.prototype,Ue);var pt=Xe.prototype,Kt=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;pt.strictDirective=function(d){for(;;){W.lastIndex=d,d+=W.exec(this.input)[0].length;var A=Kt.exec(this.input.slice(d));if(!A)return!1;if((A[1]||A[2])==="use strict"){W.lastIndex=d+A[0].length;var O=W.exec(this.input),G=O.index+O[0].length,ee=this.input.charAt(G);return ee===";"||ee==="}"||w.test(O[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(ee)||ee==="!"&&this.input.charAt(G+1)==="=")}d+=A[0].length,W.lastIndex=d,d+=W.exec(this.input)[0].length,this.input[d]===";"&&d++}},pt.eat=function(d){return this.type===d?(this.next(),!0):!1},pt.isContextual=function(d){return this.type===y.name&&this.value===d&&!this.containsEsc},pt.eatContextual=function(d){return this.isContextual(d)?(this.next(),!0):!1},pt.expectContextual=function(d){this.eatContextual(d)||this.unexpected()},pt.canInsertSemicolon=function(){return this.type===y.eof||this.type===y.braceR||w.test(this.input.slice(this.lastTokEnd,this.start))},pt.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},pt.semicolon=function(){!this.eat(y.semi)&&!this.insertSemicolon()&&this.unexpected()},pt.afterTrailingComma=function(d,A){if(this.type===d)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),A||this.next(),!0},pt.expect=function(d){this.eat(d)||this.unexpected()},pt.unexpected=function(d){this.raise(d??this.start,"Unexpected token")};function qt(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}pt.checkPatternErrors=function(d,A){if(!!d){d.trailingComma>-1&&this.raiseRecoverable(d.trailingComma,"Comma is not permitted after the rest element");var O=A?d.parenthesizedAssign:d.parenthesizedBind;O>-1&&this.raiseRecoverable(O,"Parenthesized pattern")}},pt.checkExpressionErrors=function(d,A){if(!d)return!1;var O=d.shorthandAssign,G=d.doubleProto;if(!A)return O>=0||G>=0;O>=0&&this.raise(O,"Shorthand property assignments are valid only in destructuring patterns"),G>=0&&this.raiseRecoverable(G,"Redefinition of __proto__ property")},pt.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},pt.isSimpleAssignTarget=function(d){return d.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(d.expression):d.type==="Identifier"||d.type==="MemberExpression"};var We=Xe.prototype;We.parseTopLevel=function(d){var A=Object.create(null);for(d.body||(d.body=[]);this.type!==y.eof;){var O=this.parseStatement(null,!0,A);d.body.push(O)}if(this.inModule)for(var G=0,ee=Object.keys(this.undefinedExports);G<ee.length;G+=1){var de=ee[G];this.raiseRecoverable(this.undefinedExports[de].start,"Export '"+de+"' is not defined")}return this.adaptDirectivePrologue(d.body),this.next(),d.sourceType=this.options.sourceType,this.finishNode(d,"Program")};var Qt={kind:"loop"},Wr={kind:"switch"};We.isLet=function(d){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;W.lastIndex=this.pos;var A=W.exec(this.input),O=this.pos+A[0].length,G=this.input.charCodeAt(O);if(G===91||G===92||G>55295&&G<56320)return!0;if(d)return!1;if(G===123)return!0;if(h(G,!0)){for(var ee=O+1;f(G=this.input.charCodeAt(ee),!0);)++ee;if(G===92||G>55295&&G<56320)return!0;var de=this.input.slice(O,ee);if(!s.test(de))return!0}return!1},We.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;W.lastIndex=this.pos;var d=W.exec(this.input),A=this.pos+d[0].length,O;return!w.test(this.input.slice(this.pos,A))&&this.input.slice(A,A+8)==="function"&&(A+8===this.input.length||!(f(O=this.input.charCodeAt(A+8))||O>55295&&O<56320))},We.parseStatement=function(d,A,O){var G=this.type,ee=this.startNode(),de;switch(this.isLet(d)&&(G=y._var,de="let"),G){case y._break:case y._continue:return this.parseBreakContinueStatement(ee,G.keyword);case y._debugger:return this.parseDebuggerStatement(ee);case y._do:return this.parseDoStatement(ee);case y._for:return this.parseForStatement(ee);case y._function:return d&&(this.strict||d!=="if"&&d!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(ee,!1,!d);case y._class:return d&&this.unexpected(),this.parseClass(ee,!0);case y._if:return this.parseIfStatement(ee);case y._return:return this.parseReturnStatement(ee);case y._switch:return this.parseSwitchStatement(ee);case y._throw:return this.parseThrowStatement(ee);case y._try:return this.parseTryStatement(ee);case y._const:case y._var:return de=de||this.value,d&&de!=="var"&&this.unexpected(),this.parseVarStatement(ee,de);case y._while:return this.parseWhileStatement(ee);case y._with:return this.parseWithStatement(ee);case y.braceL:return this.parseBlock(!0,ee);case y.semi:return this.parseEmptyStatement(ee);case y._export:case y._import:if(this.options.ecmaVersion>10&&G===y._import){W.lastIndex=this.pos;var Ee=W.exec(this.input),Be=this.pos+Ee[0].length,je=this.input.charCodeAt(Be);if(je===40||je===46)return this.parseExpressionStatement(ee,this.parseExpression())}return this.options.allowImportExportEverywhere||(A||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),G===y._import?this.parseImport(ee):this.parseExport(ee,O);default:if(this.isAsyncFunction())return d&&this.unexpected(),this.next(),this.parseFunctionStatement(ee,!0,!d);var et=this.value,tt=this.parseExpression();return G===y.name&&tt.type==="Identifier"&&this.eat(y.colon)?this.parseLabeledStatement(ee,et,tt,d):this.parseExpressionStatement(ee,tt)}},We.parseBreakContinueStatement=function(d,A){var O=A==="break";this.next(),this.eat(y.semi)||this.insertSemicolon()?d.label=null:this.type!==y.name?this.unexpected():(d.label=this.parseIdent(),this.semicolon());for(var G=0;G<this.labels.length;++G){var ee=this.labels[G];if((d.label==null||ee.name===d.label.name)&&(ee.kind!=null&&(O||ee.kind==="loop")||d.label&&O))break}return G===this.labels.length&&this.raise(d.start,"Unsyntactic "+A),this.finishNode(d,O?"BreakStatement":"ContinueStatement")},We.parseDebuggerStatement=function(d){return this.next(),this.semicolon(),this.finishNode(d,"DebuggerStatement")},We.parseDoStatement=function(d){return this.next(),this.labels.push(Qt),d.body=this.parseStatement("do"),this.labels.pop(),this.expect(y._while),d.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(y.semi):this.semicolon(),this.finishNode(d,"DoWhileStatement")},We.parseForStatement=function(d){this.next();var A=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Qt),this.enterScope(0),this.expect(y.parenL),this.type===y.semi)return A>-1&&this.unexpected(A),this.parseFor(d,null);var O=this.isLet();if(this.type===y._var||this.type===y._const||O){var G=this.startNode(),ee=O?"let":this.value;return this.next(),this.parseVar(G,!0,ee),this.finishNode(G,"VariableDeclaration"),(this.type===y._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&G.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===y._in?A>-1&&this.unexpected(A):d.await=A>-1),this.parseForIn(d,G)):(A>-1&&this.unexpected(A),this.parseFor(d,G))}var de=this.isContextual("let"),Ee=!1,Be=new qt,je=this.parseExpression(A>-1?"await":!0,Be);return this.type===y._in||(Ee=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===y._in?A>-1&&this.unexpected(A):d.await=A>-1),de&&Ee&&this.raise(je.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(je,!1,Be),this.checkLValPattern(je),this.parseForIn(d,je)):(this.checkExpressionErrors(Be,!0),A>-1&&this.unexpected(A),this.parseFor(d,je))},We.parseFunctionStatement=function(d,A,O){return this.next(),this.parseFunction(d,Qe|(O?0:_r),!1,A)},We.parseIfStatement=function(d){return this.next(),d.test=this.parseParenExpression(),d.consequent=this.parseStatement("if"),d.alternate=this.eat(y._else)?this.parseStatement("if"):null,this.finishNode(d,"IfStatement")},We.parseReturnStatement=function(d){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(y.semi)||this.insertSemicolon()?d.argument=null:(d.argument=this.parseExpression(),this.semicolon()),this.finishNode(d,"ReturnStatement")},We.parseSwitchStatement=function(d){this.next(),d.discriminant=this.parseParenExpression(),d.cases=[],this.expect(y.braceL),this.labels.push(Wr),this.enterScope(0);for(var A,O=!1;this.type!==y.braceR;)if(this.type===y._case||this.type===y._default){var G=this.type===y._case;A&&this.finishNode(A,"SwitchCase"),d.cases.push(A=this.startNode()),A.consequent=[],this.next(),G?A.test=this.parseExpression():(O&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),O=!0,A.test=null),this.expect(y.colon)}else A||this.unexpected(),A.consequent.push(this.parseStatement(null));return this.exitScope(),A&&this.finishNode(A,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(d,"SwitchStatement")},We.parseThrowStatement=function(d){return this.next(),w.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),d.argument=this.parseExpression(),this.semicolon(),this.finishNode(d,"ThrowStatement")};var Ot=[];We.parseTryStatement=function(d){if(this.next(),d.block=this.parseBlock(),d.handler=null,this.type===y._catch){var A=this.startNode();if(this.next(),this.eat(y.parenL)){A.param=this.parseBindingAtom();var O=A.param.type==="Identifier";this.enterScope(O?fe:0),this.checkLValPattern(A.param,O?lt:Ye),this.expect(y.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),A.param=null,this.enterScope(0);A.body=this.parseBlock(!1),this.exitScope(),d.handler=this.finishNode(A,"CatchClause")}return d.finalizer=this.eat(y._finally)?this.parseBlock():null,!d.handler&&!d.finalizer&&this.raise(d.start,"Missing catch or finally clause"),this.finishNode(d,"TryStatement")},We.parseVarStatement=function(d,A){return this.next(),this.parseVar(d,!1,A),this.semicolon(),this.finishNode(d,"VariableDeclaration")},We.parseWhileStatement=function(d){return this.next(),d.test=this.parseParenExpression(),this.labels.push(Qt),d.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(d,"WhileStatement")},We.parseWithStatement=function(d){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),d.object=this.parseParenExpression(),d.body=this.parseStatement("with"),this.finishNode(d,"WithStatement")},We.parseEmptyStatement=function(d){return this.next(),this.finishNode(d,"EmptyStatement")},We.parseLabeledStatement=function(d,A,O,G){for(var ee=0,de=this.labels;ee<de.length;ee+=1){var Ee=de[ee];Ee.name===A&&this.raise(O.start,"Label '"+A+"' is already declared")}for(var Be=this.type.isLoop?"loop":this.type===y._switch?"switch":null,je=this.labels.length-1;je>=0;je--){var et=this.labels[je];if(et.statementStart===d.start)et.statementStart=this.start,et.kind=Be;else break}return this.labels.push({name:A,kind:Be,statementStart:this.start}),d.body=this.parseStatement(G?G.indexOf("label")===-1?G+"label":G:"label"),this.labels.pop(),d.label=O,this.finishNode(d,"LabeledStatement")},We.parseExpressionStatement=function(d,A){return d.expression=A,this.semicolon(),this.finishNode(d,"ExpressionStatement")},We.parseBlock=function(d,A,O){for(d===void 0&&(d=!0),A===void 0&&(A=this.startNode()),A.body=[],this.expect(y.braceL),d&&this.enterScope(0);this.type!==y.braceR;){var G=this.parseStatement(null);A.body.push(G)}return O&&(this.strict=!1),this.next(),d&&this.exitScope(),this.finishNode(A,"BlockStatement")},We.parseFor=function(d,A){return d.init=A,this.expect(y.semi),d.test=this.type===y.semi?null:this.parseExpression(),this.expect(y.semi),d.update=this.type===y.parenR?null:this.parseExpression(),this.expect(y.parenR),d.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(d,"ForStatement")},We.parseForIn=function(d,A){var O=this.type===y._in;return this.next(),A.type==="VariableDeclaration"&&A.declarations[0].init!=null&&(!O||this.options.ecmaVersion<8||this.strict||A.kind!=="var"||A.declarations[0].id.type!=="Identifier")&&this.raise(A.start,(O?"for-in":"for-of")+" loop variable declaration may not have an initializer"),d.left=A,d.right=O?this.parseExpression():this.parseMaybeAssign(),this.expect(y.parenR),d.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(d,O?"ForInStatement":"ForOfStatement")},We.parseVar=function(d,A,O){for(d.declarations=[],d.kind=O;;){var G=this.startNode();if(this.parseVarId(G,O),this.eat(y.eq)?G.init=this.parseMaybeAssign(A):O==="const"&&!(this.type===y._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():G.id.type!=="Identifier"&&!(A&&(this.type===y._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):G.init=null,d.declarations.push(this.finishNode(G,"VariableDeclarator")),!this.eat(y.comma))break}return d},We.parseVarId=function(d,A){d.id=this.parseBindingAtom(),this.checkLValPattern(d.id,A==="var"?nt:Ye,!1)};var Qe=1,_r=2,br=4;We.parseFunction=function(d,A,O,G,ee){this.initFunction(d),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!G)&&(this.type===y.star&&A&_r&&this.unexpected(),d.generator=this.eat(y.star)),this.options.ecmaVersion>=8&&(d.async=!!G),A&Qe&&(d.id=A&br&&this.type!==y.name?null:this.parseIdent(),d.id&&!(A&_r)&&this.checkLValSimple(d.id,this.strict||d.generator||d.async?this.treatFunctionsAsVar?nt:Ye:it));var de=this.yieldPos,Ee=this.awaitPos,Be=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Pe(d.async,d.generator)),A&Qe||(d.id=this.type===y.name?this.parseIdent():null),this.parseFunctionParams(d),this.parseFunctionBody(d,O,!1,ee),this.yieldPos=de,this.awaitPos=Ee,this.awaitIdentPos=Be,this.finishNode(d,A&Qe?"FunctionDeclaration":"FunctionExpression")},We.parseFunctionParams=function(d){this.expect(y.parenL),d.params=this.parseBindingList(y.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},We.parseClass=function(d,A){this.next();var O=this.strict;this.strict=!0,this.parseClassId(d,A),this.parseClassSuper(d);var G=this.enterClassBody(),ee=this.startNode(),de=!1;for(ee.body=[],this.expect(y.braceL);this.type!==y.braceR;){var Ee=this.parseClassElement(d.superClass!==null);Ee&&(ee.body.push(Ee),Ee.type==="MethodDefinition"&&Ee.kind==="constructor"?(de&&this.raise(Ee.start,"Duplicate constructor in the same class"),de=!0):Ee.key&&Ee.key.type==="PrivateIdentifier"&&tr(G,Ee)&&this.raiseRecoverable(Ee.key.start,"Identifier '#"+Ee.key.name+"' has already been declared"))}return this.strict=O,this.next(),d.body=this.finishNode(ee,"ClassBody"),this.exitClassBody(),this.finishNode(d,A?"ClassDeclaration":"ClassExpression")},We.parseClassElement=function(d){if(this.eat(y.semi))return null;var A=this.options.ecmaVersion,O=this.startNode(),G="",ee=!1,de=!1,Ee="method",Be=!1;if(this.eatContextual("static")){if(A>=13&&this.eat(y.braceL))return this.parseClassStaticBlock(O),O;this.isClassElementNameStart()||this.type===y.star?Be=!0:G="static"}if(O.static=Be,!G&&A>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===y.star)&&!this.canInsertSemicolon()?de=!0:G="async"),!G&&(A>=9||!de)&&this.eat(y.star)&&(ee=!0),!G&&!de&&!ee){var je=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?Ee=je:G=je)}if(G?(O.computed=!1,O.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),O.key.name=G,this.finishNode(O.key,"Identifier")):this.parseClassElementName(O),A<13||this.type===y.parenL||Ee!=="method"||ee||de){var et=!O.static&&vr(O,"constructor"),tt=et&&d;et&&Ee!=="method"&&this.raise(O.key.start,"Constructor can't have get/set modifier"),O.kind=et?"constructor":Ee,this.parseClassMethod(O,ee,de,tt)}else this.parseClassField(O);return O},We.isClassElementNameStart=function(){return this.type===y.name||this.type===y.privateId||this.type===y.num||this.type===y.string||this.type===y.bracketL||this.type.keyword},We.parseClassElementName=function(d){this.type===y.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),d.computed=!1,d.key=this.parsePrivateIdent()):this.parsePropertyName(d)},We.parseClassMethod=function(d,A,O,G){var ee=d.key;d.kind==="constructor"?(A&&this.raise(ee.start,"Constructor can't be a generator"),O&&this.raise(ee.start,"Constructor can't be an async method")):d.static&&vr(d,"prototype")&&this.raise(ee.start,"Classes may not have a static property named prototype");var de=d.value=this.parseMethod(A,O,G);return d.kind==="get"&&de.params.length!==0&&this.raiseRecoverable(de.start,"getter should have no params"),d.kind==="set"&&de.params.length!==1&&this.raiseRecoverable(de.start,"setter should have exactly one param"),d.kind==="set"&&de.params[0].type==="RestElement"&&this.raiseRecoverable(de.params[0].start,"Setter cannot use rest params"),this.finishNode(d,"MethodDefinition")},We.parseClassField=function(d){if(vr(d,"constructor")?this.raise(d.key.start,"Classes can't have a field named 'constructor'"):d.static&&vr(d,"prototype")&&this.raise(d.key.start,"Classes can't have a static field named 'prototype'"),this.eat(y.eq)){var A=this.currentThisScope(),O=A.inClassFieldInit;A.inClassFieldInit=!0,d.value=this.parseMaybeAssign(),A.inClassFieldInit=O}else d.value=null;return this.semicolon(),this.finishNode(d,"PropertyDefinition")},We.parseClassStaticBlock=function(d){d.body=[];var A=this.labels;for(this.labels=[],this.enterScope(V|Ce);this.type!==y.braceR;){var O=this.parseStatement(null);d.body.push(O)}return this.next(),this.exitScope(),this.labels=A,this.finishNode(d,"StaticBlock")},We.parseClassId=function(d,A){this.type===y.name?(d.id=this.parseIdent(),A&&this.checkLValSimple(d.id,Ye,!1)):(A===!0&&this.unexpected(),d.id=null)},We.parseClassSuper=function(d){d.superClass=this.eat(y._extends)?this.parseExprSubscripts(!1):null},We.enterClassBody=function(){var d={declared:Object.create(null),used:[]};return this.privateNameStack.push(d),d.declared},We.exitClassBody=function(){for(var d=this.privateNameStack.pop(),A=d.declared,O=d.used,G=this.privateNameStack.length,ee=G===0?null:this.privateNameStack[G-1],de=0;de<O.length;++de){var Ee=O[de];F(A,Ee.name)||(ee?ee.used.push(Ee):this.raiseRecoverable(Ee.start,"Private field '#"+Ee.name+"' must be declared in an enclosing class"))}};function tr(d,A){var O=A.key.name,G=d[O],ee="true";return A.type==="MethodDefinition"&&(A.kind==="get"||A.kind==="set")&&(ee=(A.static?"s":"i")+A.kind),G==="iget"&&ee==="iset"||G==="iset"&&ee==="iget"||G==="sget"&&ee==="sset"||G==="sset"&&ee==="sget"?(d[O]="true",!1):G?!0:(d[O]=ee,!1)}function vr(d,A){var O=d.computed,G=d.key;return!O&&(G.type==="Identifier"&&G.name===A||G.type==="Literal"&&G.value===A)}We.parseExport=function(d,A){if(this.next(),this.eat(y.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(d.exported=this.parseModuleExportName(),this.checkExport(A,d.exported.name,this.lastTokStart)):d.exported=null),this.expectContextual("from"),this.type!==y.string&&this.unexpected(),d.source=this.parseExprAtom(),this.semicolon(),this.finishNode(d,"ExportAllDeclaration");if(this.eat(y._default)){this.checkExport(A,"default",this.lastTokStart);var O;if(this.type===y._function||(O=this.isAsyncFunction())){var G=this.startNode();this.next(),O&&this.next(),d.declaration=this.parseFunction(G,Qe|br,!1,O)}else if(this.type===y._class){var ee=this.startNode();d.declaration=this.parseClass(ee,"nullableID")}else d.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(d,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())d.declaration=this.parseStatement(null),d.declaration.type==="VariableDeclaration"?this.checkVariableExport(A,d.declaration.declarations):this.checkExport(A,d.declaration.id.name,d.declaration.id.start),d.specifiers=[],d.source=null;else{if(d.declaration=null,d.specifiers=this.parseExportSpecifiers(A),this.eatContextual("from"))this.type!==y.string&&this.unexpected(),d.source=this.parseExprAtom();else{for(var de=0,Ee=d.specifiers;de<Ee.length;de+=1){var Be=Ee[de];this.checkUnreserved(Be.local),this.checkLocalExport(Be.local),Be.local.type==="Literal"&&this.raise(Be.local.start,"A string literal cannot be used as an exported binding without `from`.")}d.source=null}this.semicolon()}return this.finishNode(d,"ExportNamedDeclaration")},We.checkExport=function(d,A,O){!d||(F(d,A)&&this.raiseRecoverable(O,"Duplicate export '"+A+"'"),d[A]=!0)},We.checkPatternExport=function(d,A){var O=A.type;if(O==="Identifier")this.checkExport(d,A.name,A.start);else if(O==="ObjectPattern")for(var G=0,ee=A.properties;G<ee.length;G+=1){var de=ee[G];this.checkPatternExport(d,de)}else if(O==="ArrayPattern")for(var Ee=0,Be=A.elements;Ee<Be.length;Ee+=1){var je=Be[Ee];je&&this.checkPatternExport(d,je)}else O==="Property"?this.checkPatternExport(d,A.value):O==="AssignmentPattern"?this.checkPatternExport(d,A.left):O==="RestElement"?this.checkPatternExport(d,A.argument):O==="ParenthesizedExpression"&&this.checkPatternExport(d,A.expression)},We.checkVariableExport=function(d,A){if(!!d)for(var O=0,G=A;O<G.length;O+=1){var ee=G[O];this.checkPatternExport(d,ee.id)}},We.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},We.parseExportSpecifiers=function(d){var A=[],O=!0;for(this.expect(y.braceL);!this.eat(y.braceR);){if(O)O=!1;else if(this.expect(y.comma),this.afterTrailingComma(y.braceR))break;var G=this.startNode();G.local=this.parseModuleExportName(),G.exported=this.eatContextual("as")?this.parseModuleExportName():G.local,this.checkExport(d,G.exported[G.exported.type==="Identifier"?"name":"value"],G.exported.start),A.push(this.finishNode(G,"ExportSpecifier"))}return A},We.parseImport=function(d){return this.next(),this.type===y.string?(d.specifiers=Ot,d.source=this.parseExprAtom()):(d.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),d.source=this.type===y.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(d,"ImportDeclaration")},We.parseImportSpecifiers=function(){var d=[],A=!0;if(this.type===y.name){var O=this.startNode();if(O.local=this.parseIdent(),this.checkLValSimple(O.local,Ye),d.push(this.finishNode(O,"ImportDefaultSpecifier")),!this.eat(y.comma))return d}if(this.type===y.star){var G=this.startNode();return this.next(),this.expectContextual("as"),G.local=this.parseIdent(),this.checkLValSimple(G.local,Ye),d.push(this.finishNode(G,"ImportNamespaceSpecifier")),d}for(this.expect(y.braceL);!this.eat(y.braceR);){if(A)A=!1;else if(this.expect(y.comma),this.afterTrailingComma(y.braceR))break;var ee=this.startNode();ee.imported=this.parseModuleExportName(),this.eatContextual("as")?ee.local=this.parseIdent():(this.checkUnreserved(ee.imported),ee.local=ee.imported),this.checkLValSimple(ee.local,Ye),d.push(this.finishNode(ee,"ImportSpecifier"))}return d},We.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===y.string){var d=this.parseLiteral(this.value);return B.test(d.value)&&this.raise(d.start,"An export name cannot include a lone surrogate."),d}return this.parseIdent(!0)},We.adaptDirectivePrologue=function(d){for(var A=0;A<d.length&&this.isDirectiveCandidate(d[A]);++A)d[A].directive=d[A].expression.raw.slice(1,-1)},We.isDirectiveCandidate=function(d){return d.type==="ExpressionStatement"&&d.expression.type==="Literal"&&typeof d.expression.value=="string"&&(this.input[d.start]==='"'||this.input[d.start]==="'")};var Et=Xe.prototype;Et.toAssignable=function(d,A,O){if(this.options.ecmaVersion>=6&&d)switch(d.type){case"Identifier":this.inAsync&&d.name==="await"&&this.raise(d.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":d.type="ObjectPattern",O&&this.checkPatternErrors(O,!0);for(var G=0,ee=d.properties;G<ee.length;G+=1){var de=ee[G];this.toAssignable(de,A),de.type==="RestElement"&&(de.argument.type==="ArrayPattern"||de.argument.type==="ObjectPattern")&&this.raise(de.argument.start,"Unexpected token")}break;case"Property":d.kind!=="init"&&this.raise(d.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(d.value,A);break;case"ArrayExpression":d.type="ArrayPattern",O&&this.checkPatternErrors(O,!0),this.toAssignableList(d.elements,A);break;case"SpreadElement":d.type="RestElement",this.toAssignable(d.argument,A),d.argument.type==="AssignmentPattern"&&this.raise(d.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":d.operator!=="="&&this.raise(d.left.end,"Only '=' operator can be used for specifying default value."),d.type="AssignmentPattern",delete d.operator,this.toAssignable(d.left,A);break;case"ParenthesizedExpression":this.toAssignable(d.expression,A,O);break;case"ChainExpression":this.raiseRecoverable(d.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!A)break;default:this.raise(d.start,"Assigning to rvalue")}else O&&this.checkPatternErrors(O,!0);return d},Et.toAssignableList=function(d,A){for(var O=d.length,G=0;G<O;G++){var ee=d[G];ee&&this.toAssignable(ee,A)}if(O){var de=d[O-1];this.options.ecmaVersion===6&&A&&de&&de.type==="RestElement"&&de.argument.type!=="Identifier"&&this.unexpected(de.argument.start)}return d},Et.parseSpread=function(d){var A=this.startNode();return this.next(),A.argument=this.parseMaybeAssign(!1,d),this.finishNode(A,"SpreadElement")},Et.parseRestBinding=function(){var d=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==y.name&&this.unexpected(),d.argument=this.parseBindingAtom(),this.finishNode(d,"RestElement")},Et.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case y.bracketL:var d=this.startNode();return this.next(),d.elements=this.parseBindingList(y.bracketR,!0,!0),this.finishNode(d,"ArrayPattern");case y.braceL:return this.parseObj(!0)}return this.parseIdent()},Et.parseBindingList=function(d,A,O){for(var G=[],ee=!0;!this.eat(d);)if(ee?ee=!1:this.expect(y.comma),A&&this.type===y.comma)G.push(null);else{if(O&&this.afterTrailingComma(d))break;if(this.type===y.ellipsis){var de=this.parseRestBinding();this.parseBindingListItem(de),G.push(de),this.type===y.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(d);break}else{var Ee=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(Ee),G.push(Ee)}}return G},Et.parseBindingListItem=function(d){return d},Et.parseMaybeDefault=function(d,A,O){if(O=O||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(y.eq))return O;var G=this.startNodeAt(d,A);return G.left=O,G.right=this.parseMaybeAssign(),this.finishNode(G,"AssignmentPattern")},Et.checkLValSimple=function(d,A,O){A===void 0&&(A=Je);var G=A!==Je;switch(d.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(d.name)&&this.raiseRecoverable(d.start,(G?"Binding ":"Assigning to ")+d.name+" in strict mode"),G&&(A===Ye&&d.name==="let"&&this.raiseRecoverable(d.start,"let is disallowed as a lexically bound name"),O&&(F(O,d.name)&&this.raiseRecoverable(d.start,"Argument name clash"),O[d.name]=!0),A!==Dt&&this.declareName(d.name,A,d.start));break;case"ChainExpression":this.raiseRecoverable(d.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":G&&this.raiseRecoverable(d.start,"Binding member expression");break;case"ParenthesizedExpression":return G&&this.raiseRecoverable(d.start,"Binding parenthesized expression"),this.checkLValSimple(d.expression,A,O);default:this.raise(d.start,(G?"Binding":"Assigning to")+" rvalue")}},Et.checkLValPattern=function(d,A,O){switch(A===void 0&&(A=Je),d.type){case"ObjectPattern":for(var G=0,ee=d.properties;G<ee.length;G+=1){var de=ee[G];this.checkLValInnerPattern(de,A,O)}break;case"ArrayPattern":for(var Ee=0,Be=d.elements;Ee<Be.length;Ee+=1){var je=Be[Ee];je&&this.checkLValInnerPattern(je,A,O)}break;default:this.checkLValSimple(d,A,O)}},Et.checkLValInnerPattern=function(d,A,O){switch(A===void 0&&(A=Je),d.type){case"Property":this.checkLValInnerPattern(d.value,A,O);break;case"AssignmentPattern":this.checkLValPattern(d.left,A,O);break;case"RestElement":this.checkLValPattern(d.argument,A,O);break;default:this.checkLValPattern(d,A,O)}};var Rt=function(A,O,G,ee,de){this.token=A,this.isExpr=!!O,this.preserveSpace=!!G,this.override=ee,this.generator=!!de},gt={b_stat:new Rt("{",!1),b_expr:new Rt("{",!0),b_tmpl:new Rt("${",!1),p_stat:new Rt("(",!1),p_expr:new Rt("(",!0),q_tmpl:new Rt("`",!0,!0,function(d){return d.tryReadTemplateToken()}),f_stat:new Rt("function",!1),f_expr:new Rt("function",!0),f_expr_gen:new Rt("function",!0,!1,null,!0),f_gen:new Rt("function",!1,!1,null,!0)},It=Xe.prototype;It.initialContext=function(){return[gt.b_stat]},It.curContext=function(){return this.context[this.context.length-1]},It.braceIsBlock=function(d){var A=this.curContext();return A===gt.f_expr||A===gt.f_stat?!0:d===y.colon&&(A===gt.b_stat||A===gt.b_expr)?!A.isExpr:d===y._return||d===y.name&&this.exprAllowed?w.test(this.input.slice(this.lastTokEnd,this.start)):d===y._else||d===y.semi||d===y.eof||d===y.parenR||d===y.arrow?!0:d===y.braceL?A===gt.b_stat:d===y._var||d===y._const||d===y.name?!1:!this.exprAllowed},It.inGeneratorContext=function(){for(var d=this.context.length-1;d>=1;d--){var A=this.context[d];if(A.token==="function")return A.generator}return!1},It.updateContext=function(d){var A,O=this.type;O.keyword&&d===y.dot?this.exprAllowed=!1:(A=O.updateContext)?A.call(this,d):this.exprAllowed=O.beforeExpr},It.overrideContext=function(d){this.curContext()!==d&&(this.context[this.context.length-1]=d)},y.parenR.updateContext=y.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var d=this.context.pop();d===gt.b_stat&&this.curContext().token==="function"&&(d=this.context.pop()),this.exprAllowed=!d.isExpr},y.braceL.updateContext=function(d){this.context.push(this.braceIsBlock(d)?gt.b_stat:gt.b_expr),this.exprAllowed=!0},y.dollarBraceL.updateContext=function(){this.context.push(gt.b_tmpl),this.exprAllowed=!0},y.parenL.updateContext=function(d){var A=d===y._if||d===y._for||d===y._with||d===y._while;this.context.push(A?gt.p_stat:gt.p_expr),this.exprAllowed=!0},y.incDec.updateContext=function(){},y._function.updateContext=y._class.updateContext=function(d){d.beforeExpr&&d!==y._else&&!(d===y.semi&&this.curContext()!==gt.p_stat)&&!(d===y._return&&w.test(this.input.slice(this.lastTokEnd,this.start)))&&!((d===y.colon||d===y.braceL)&&this.curContext()===gt.b_stat)?this.context.push(gt.f_expr):this.context.push(gt.f_stat),this.exprAllowed=!1},y.backQuote.updateContext=function(){this.curContext()===gt.q_tmpl?this.context.pop():this.context.push(gt.q_tmpl),this.exprAllowed=!1},y.star.updateContext=function(d){if(d===y._function){var A=this.context.length-1;this.context[A]===gt.f_expr?this.context[A]=gt.f_expr_gen:this.context[A]=gt.f_gen}this.exprAllowed=!0},y.name.updateContext=function(d){var A=!1;this.options.ecmaVersion>=6&&d!==y.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(A=!0),this.exprAllowed=A};var ze=Xe.prototype;ze.checkPropClash=function(d,A,O){if(!(this.options.ecmaVersion>=9&&d.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(d.computed||d.method||d.shorthand))){var G=d.key,ee;switch(G.type){case"Identifier":ee=G.name;break;case"Literal":ee=String(G.value);break;default:return}var de=d.kind;if(this.options.ecmaVersion>=6){ee==="__proto__"&&de==="init"&&(A.proto&&(O?O.doubleProto<0&&(O.doubleProto=G.start):this.raiseRecoverable(G.start,"Redefinition of __proto__ property")),A.proto=!0);return}ee="$"+ee;var Ee=A[ee];if(Ee){var Be;de==="init"?Be=this.strict&&Ee.init||Ee.get||Ee.set:Be=Ee.init||Ee[de],Be&&this.raiseRecoverable(G.start,"Redefinition of property")}else Ee=A[ee]={init:!1,get:!1,set:!1};Ee[de]=!0}},ze.parseExpression=function(d,A){var O=this.start,G=this.startLoc,ee=this.parseMaybeAssign(d,A);if(this.type===y.comma){var de=this.startNodeAt(O,G);for(de.expressions=[ee];this.eat(y.comma);)de.expressions.push(this.parseMaybeAssign(d,A));return this.finishNode(de,"SequenceExpression")}return ee},ze.parseMaybeAssign=function(d,A,O){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(d);this.exprAllowed=!1}var G=!1,ee=-1,de=-1,Ee=-1;A?(ee=A.parenthesizedAssign,de=A.trailingComma,Ee=A.doubleProto,A.parenthesizedAssign=A.trailingComma=-1):(A=new qt,G=!0);var Be=this.start,je=this.startLoc;(this.type===y.parenL||this.type===y.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=d==="await");var et=this.parseMaybeConditional(d,A);if(O&&(et=O.call(this,et,Be,je)),this.type.isAssign){var tt=this.startNodeAt(Be,je);return tt.operator=this.value,this.type===y.eq&&(et=this.toAssignable(et,!1,A)),G||(A.parenthesizedAssign=A.trailingComma=A.doubleProto=-1),A.shorthandAssign>=et.start&&(A.shorthandAssign=-1),this.type===y.eq?this.checkLValPattern(et):this.checkLValSimple(et),tt.left=et,this.next(),tt.right=this.parseMaybeAssign(d),Ee>-1&&(A.doubleProto=Ee),this.finishNode(tt,"AssignmentExpression")}else G&&this.checkExpressionErrors(A,!0);return ee>-1&&(A.parenthesizedAssign=ee),de>-1&&(A.trailingComma=de),et},ze.parseMaybeConditional=function(d,A){var O=this.start,G=this.startLoc,ee=this.parseExprOps(d,A);if(this.checkExpressionErrors(A))return ee;if(this.eat(y.question)){var de=this.startNodeAt(O,G);return de.test=ee,de.consequent=this.parseMaybeAssign(),this.expect(y.colon),de.alternate=this.parseMaybeAssign(d),this.finishNode(de,"ConditionalExpression")}return ee},ze.parseExprOps=function(d,A){var O=this.start,G=this.startLoc,ee=this.parseMaybeUnary(A,!1,!1,d);return this.checkExpressionErrors(A)||ee.start===O&&ee.type==="ArrowFunctionExpression"?ee:this.parseExprOp(ee,O,G,-1,d)},ze.parseExprOp=function(d,A,O,G,ee){var de=this.type.binop;if(de!=null&&(!ee||this.type!==y._in)&&de>G){var Ee=this.type===y.logicalOR||this.type===y.logicalAND,Be=this.type===y.coalesce;Be&&(de=y.logicalAND.binop);var je=this.value;this.next();var et=this.start,tt=this.startLoc,Yt=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,ee),et,tt,de,ee),lr=this.buildBinary(A,O,d,Yt,je,Ee||Be);return(Ee&&this.type===y.coalesce||Be&&(this.type===y.logicalOR||this.type===y.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(lr,A,O,G,ee)}return d},ze.buildBinary=function(d,A,O,G,ee,de){G.type==="PrivateIdentifier"&&this.raise(G.start,"Private identifier can only be left side of binary expression");var Ee=this.startNodeAt(d,A);return Ee.left=O,Ee.operator=ee,Ee.right=G,this.finishNode(Ee,de?"LogicalExpression":"BinaryExpression")},ze.parseMaybeUnary=function(d,A,O,G){var ee=this.start,de=this.startLoc,Ee;if(this.isContextual("await")&&this.canAwait)Ee=this.parseAwait(G),A=!0;else if(this.type.prefix){var Be=this.startNode(),je=this.type===y.incDec;Be.operator=this.value,Be.prefix=!0,this.next(),Be.argument=this.parseMaybeUnary(null,!0,je,G),this.checkExpressionErrors(d,!0),je?this.checkLValSimple(Be.argument):this.strict&&Be.operator==="delete"&&Be.argument.type==="Identifier"?this.raiseRecoverable(Be.start,"Deleting local variable in strict mode"):Be.operator==="delete"&&Br(Be.argument)?this.raiseRecoverable(Be.start,"Private fields can not be deleted"):A=!0,Ee=this.finishNode(Be,je?"UpdateExpression":"UnaryExpression")}else if(!A&&this.type===y.privateId)(G||this.privateNameStack.length===0)&&this.unexpected(),Ee=this.parsePrivateIdent(),this.type!==y._in&&this.unexpected();else{if(Ee=this.parseExprSubscripts(d,G),this.checkExpressionErrors(d))return Ee;for(;this.type.postfix&&!this.canInsertSemicolon();){var et=this.startNodeAt(ee,de);et.operator=this.value,et.prefix=!1,et.argument=Ee,this.checkLValSimple(Ee),this.next(),Ee=this.finishNode(et,"UpdateExpression")}}if(!O&&this.eat(y.starstar))if(A)this.unexpected(this.lastTokStart);else return this.buildBinary(ee,de,Ee,this.parseMaybeUnary(null,!1,!1,G),"**",!1);else return Ee};function Br(d){return d.type==="MemberExpression"&&d.property.type==="PrivateIdentifier"||d.type==="ChainExpression"&&Br(d.expression)}ze.parseExprSubscripts=function(d,A){var O=this.start,G=this.startLoc,ee=this.parseExprAtom(d,A);if(ee.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return ee;var de=this.parseSubscripts(ee,O,G,!1,A);return d&&de.type==="MemberExpression"&&(d.parenthesizedAssign>=de.start&&(d.parenthesizedAssign=-1),d.parenthesizedBind>=de.start&&(d.parenthesizedBind=-1),d.trailingComma>=de.start&&(d.trailingComma=-1)),de},ze.parseSubscripts=function(d,A,O,G,ee){for(var de=this.options.ecmaVersion>=8&&d.type==="Identifier"&&d.name==="async"&&this.lastTokEnd===d.end&&!this.canInsertSemicolon()&&d.end-d.start==5&&this.potentialArrowAt===d.start,Ee=!1;;){var Be=this.parseSubscript(d,A,O,G,de,Ee,ee);if(Be.optional&&(Ee=!0),Be===d||Be.type==="ArrowFunctionExpression"){if(Ee){var je=this.startNodeAt(A,O);je.expression=Be,Be=this.finishNode(je,"ChainExpression")}return Be}d=Be}},ze.parseSubscript=function(d,A,O,G,ee,de,Ee){var Be=this.options.ecmaVersion>=11,je=Be&&this.eat(y.questionDot);G&&je&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var et=this.eat(y.bracketL);if(et||je&&this.type!==y.parenL&&this.type!==y.backQuote||this.eat(y.dot)){var tt=this.startNodeAt(A,O);tt.object=d,et?(tt.property=this.parseExpression(),this.expect(y.bracketR)):this.type===y.privateId&&d.type!=="Super"?tt.property=this.parsePrivateIdent():tt.property=this.parseIdent(this.options.allowReserved!=="never"),tt.computed=!!et,Be&&(tt.optional=je),d=this.finishNode(tt,"MemberExpression")}else if(!G&&this.eat(y.parenL)){var Yt=new qt,lr=this.yieldPos,Or=this.awaitPos,is=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Ln=this.parseExprList(y.parenR,this.options.ecmaVersion>=8,!1,Yt);if(ee&&!je&&!this.canInsertSemicolon()&&this.eat(y.arrow))return this.checkPatternErrors(Yt,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=lr,this.awaitPos=Or,this.awaitIdentPos=is,this.parseArrowExpression(this.startNodeAt(A,O),Ln,!0,Ee);this.checkExpressionErrors(Yt,!0),this.yieldPos=lr||this.yieldPos,this.awaitPos=Or||this.awaitPos,this.awaitIdentPos=is||this.awaitIdentPos;var As=this.startNodeAt(A,O);As.callee=d,As.arguments=Ln,Be&&(As.optional=je),d=this.finishNode(As,"CallExpression")}else if(this.type===y.backQuote){(je||de)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var ws=this.startNodeAt(A,O);ws.tag=d,ws.quasi=this.parseTemplate({isTagged:!0}),d=this.finishNode(ws,"TaggedTemplateExpression")}return d},ze.parseExprAtom=function(d,A){this.type===y.slash&&this.readRegexp();var O,G=this.potentialArrowAt===this.start;switch(this.type){case y._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),O=this.startNode(),this.next(),this.type===y.parenL&&!this.allowDirectSuper&&this.raise(O.start,"super() call outside constructor of a subclass"),this.type!==y.dot&&this.type!==y.bracketL&&this.type!==y.parenL&&this.unexpected(),this.finishNode(O,"Super");case y._this:return O=this.startNode(),this.next(),this.finishNode(O,"ThisExpression");case y.name:var ee=this.start,de=this.startLoc,Ee=this.containsEsc,Be=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!Ee&&Be.name==="async"&&!this.canInsertSemicolon()&&this.eat(y._function))return this.overrideContext(gt.f_expr),this.parseFunction(this.startNodeAt(ee,de),0,!1,!0,A);if(G&&!this.canInsertSemicolon()){if(this.eat(y.arrow))return this.parseArrowExpression(this.startNodeAt(ee,de),[Be],!1,A);if(this.options.ecmaVersion>=8&&Be.name==="async"&&this.type===y.name&&!Ee&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return Be=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(y.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(ee,de),[Be],!0,A)}return Be;case y.regexp:var je=this.value;return O=this.parseLiteral(je.value),O.regex={pattern:je.pattern,flags:je.flags},O;case y.num:case y.string:return this.parseLiteral(this.value);case y._null:case y._true:case y._false:return O=this.startNode(),O.value=this.type===y._null?null:this.type===y._true,O.raw=this.type.keyword,this.next(),this.finishNode(O,"Literal");case y.parenL:var et=this.start,tt=this.parseParenAndDistinguishExpression(G,A);return d&&(d.parenthesizedAssign<0&&!this.isSimpleAssignTarget(tt)&&(d.parenthesizedAssign=et),d.parenthesizedBind<0&&(d.parenthesizedBind=et)),tt;case y.bracketL:return O=this.startNode(),this.next(),O.elements=this.parseExprList(y.bracketR,!0,!0,d),this.finishNode(O,"ArrayExpression");case y.braceL:return this.overrideContext(gt.b_expr),this.parseObj(!1,d);case y._function:return O=this.startNode(),this.next(),this.parseFunction(O,0);case y._class:return this.parseClass(this.startNode(),!1);case y._new:return this.parseNew();case y.backQuote:return this.parseTemplate();case y._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},ze.parseExprImport=function(){var d=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var A=this.parseIdent(!0);switch(this.type){case y.parenL:return this.parseDynamicImport(d);case y.dot:return d.meta=A,this.parseImportMeta(d);default:this.unexpected()}},ze.parseDynamicImport=function(d){if(this.next(),d.source=this.parseMaybeAssign(),!this.eat(y.parenR)){var A=this.start;this.eat(y.comma)&&this.eat(y.parenR)?this.raiseRecoverable(A,"Trailing comma is not allowed in import()"):this.unexpected(A)}return this.finishNode(d,"ImportExpression")},ze.parseImportMeta=function(d){this.next();var A=this.containsEsc;return d.property=this.parseIdent(!0),d.property.name!=="meta"&&this.raiseRecoverable(d.property.start,"The only valid meta property for import is 'import.meta'"),A&&this.raiseRecoverable(d.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(d.start,"Cannot use 'import.meta' outside a module"),this.finishNode(d,"MetaProperty")},ze.parseLiteral=function(d){var A=this.startNode();return A.value=d,A.raw=this.input.slice(this.start,this.end),A.raw.charCodeAt(A.raw.length-1)===110&&(A.bigint=A.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(A,"Literal")},ze.parseParenExpression=function(){this.expect(y.parenL);var d=this.parseExpression();return this.expect(y.parenR),d},ze.parseParenAndDistinguishExpression=function(d,A){var O=this.start,G=this.startLoc,ee,de=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var Ee=this.start,Be=this.startLoc,je=[],et=!0,tt=!1,Yt=new qt,lr=this.yieldPos,Or=this.awaitPos,is;for(this.yieldPos=0,this.awaitPos=0;this.type!==y.parenR;)if(et?et=!1:this.expect(y.comma),de&&this.afterTrailingComma(y.parenR,!0)){tt=!0;break}else if(this.type===y.ellipsis){is=this.start,je.push(this.parseParenItem(this.parseRestBinding())),this.type===y.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else je.push(this.parseMaybeAssign(!1,Yt,this.parseParenItem));var Ln=this.lastTokEnd,As=this.lastTokEndLoc;if(this.expect(y.parenR),d&&!this.canInsertSemicolon()&&this.eat(y.arrow))return this.checkPatternErrors(Yt,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=lr,this.awaitPos=Or,this.parseParenArrowList(O,G,je,A);(!je.length||tt)&&this.unexpected(this.lastTokStart),is&&this.unexpected(is),this.checkExpressionErrors(Yt,!0),this.yieldPos=lr||this.yieldPos,this.awaitPos=Or||this.awaitPos,je.length>1?(ee=this.startNodeAt(Ee,Be),ee.expressions=je,this.finishNodeAt(ee,"SequenceExpression",Ln,As)):ee=je[0]}else ee=this.parseParenExpression();if(this.options.preserveParens){var ws=this.startNodeAt(O,G);return ws.expression=ee,this.finishNode(ws,"ParenthesizedExpression")}else return ee},ze.parseParenItem=function(d){return d},ze.parseParenArrowList=function(d,A,O,G){return this.parseArrowExpression(this.startNodeAt(d,A),O,!1,G)};var Cs=[];ze.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var d=this.startNode(),A=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(y.dot)){d.meta=A;var O=this.containsEsc;return d.property=this.parseIdent(!0),d.property.name!=="target"&&this.raiseRecoverable(d.property.start,"The only valid meta property for new is 'new.target'"),O&&this.raiseRecoverable(d.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(d.start,"'new.target' can only be used in functions and class static block"),this.finishNode(d,"MetaProperty")}var G=this.start,ee=this.startLoc,de=this.type===y._import;return d.callee=this.parseSubscripts(this.parseExprAtom(),G,ee,!0,!1),de&&d.callee.type==="ImportExpression"&&this.raise(G,"Cannot use new with import()"),this.eat(y.parenL)?d.arguments=this.parseExprList(y.parenR,this.options.ecmaVersion>=8,!1):d.arguments=Cs,this.finishNode(d,"NewExpression")},ze.parseTemplateElement=function(d){var A=d.isTagged,O=this.startNode();return this.type===y.invalidTemplate?(A||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),O.value={raw:this.value,cooked:null}):O.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
15
|
+
`),cooked:this.value},this.next(),O.tail=this.type===y.backQuote,this.finishNode(O,"TemplateElement")},ze.parseTemplate=function(d){d===void 0&&(d={});var A=d.isTagged;A===void 0&&(A=!1);var O=this.startNode();this.next(),O.expressions=[];var G=this.parseTemplateElement({isTagged:A});for(O.quasis=[G];!G.tail;)this.type===y.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(y.dollarBraceL),O.expressions.push(this.parseExpression()),this.expect(y.braceR),O.quasis.push(G=this.parseTemplateElement({isTagged:A}));return this.next(),this.finishNode(O,"TemplateLiteral")},ze.isAsyncProp=function(d){return!d.computed&&d.key.type==="Identifier"&&d.key.name==="async"&&(this.type===y.name||this.type===y.num||this.type===y.string||this.type===y.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===y.star)&&!w.test(this.input.slice(this.lastTokEnd,this.start))},ze.parseObj=function(d,A){var O=this.startNode(),G=!0,ee={};for(O.properties=[],this.next();!this.eat(y.braceR);){if(G)G=!1;else if(this.expect(y.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(y.braceR))break;var de=this.parseProperty(d,A);d||this.checkPropClash(de,ee,A),O.properties.push(de)}return this.finishNode(O,d?"ObjectPattern":"ObjectExpression")},ze.parseProperty=function(d,A){var O=this.startNode(),G,ee,de,Ee;if(this.options.ecmaVersion>=9&&this.eat(y.ellipsis))return d?(O.argument=this.parseIdent(!1),this.type===y.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(O,"RestElement")):(this.type===y.parenL&&A&&(A.parenthesizedAssign<0&&(A.parenthesizedAssign=this.start),A.parenthesizedBind<0&&(A.parenthesizedBind=this.start)),O.argument=this.parseMaybeAssign(!1,A),this.type===y.comma&&A&&A.trailingComma<0&&(A.trailingComma=this.start),this.finishNode(O,"SpreadElement"));this.options.ecmaVersion>=6&&(O.method=!1,O.shorthand=!1,(d||A)&&(de=this.start,Ee=this.startLoc),d||(G=this.eat(y.star)));var Be=this.containsEsc;return this.parsePropertyName(O),!d&&!Be&&this.options.ecmaVersion>=8&&!G&&this.isAsyncProp(O)?(ee=!0,G=this.options.ecmaVersion>=9&&this.eat(y.star),this.parsePropertyName(O,A)):ee=!1,this.parsePropertyValue(O,d,G,ee,de,Ee,A,Be),this.finishNode(O,"Property")},ze.parsePropertyValue=function(d,A,O,G,ee,de,Ee,Be){if((O||G)&&this.type===y.colon&&this.unexpected(),this.eat(y.colon))d.value=A?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,Ee),d.kind="init";else if(this.options.ecmaVersion>=6&&this.type===y.parenL)A&&this.unexpected(),d.kind="init",d.method=!0,d.value=this.parseMethod(O,G);else if(!A&&!Be&&this.options.ecmaVersion>=5&&!d.computed&&d.key.type==="Identifier"&&(d.key.name==="get"||d.key.name==="set")&&this.type!==y.comma&&this.type!==y.braceR&&this.type!==y.eq){(O||G)&&this.unexpected(),d.kind=d.key.name,this.parsePropertyName(d),d.value=this.parseMethod(!1);var je=d.kind==="get"?0:1;if(d.value.params.length!==je){var et=d.value.start;d.kind==="get"?this.raiseRecoverable(et,"getter should have no params"):this.raiseRecoverable(et,"setter should have exactly one param")}else d.kind==="set"&&d.value.params[0].type==="RestElement"&&this.raiseRecoverable(d.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!d.computed&&d.key.type==="Identifier"?((O||G)&&this.unexpected(),this.checkUnreserved(d.key),d.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=ee),d.kind="init",A?d.value=this.parseMaybeDefault(ee,de,this.copyNode(d.key)):this.type===y.eq&&Ee?(Ee.shorthandAssign<0&&(Ee.shorthandAssign=this.start),d.value=this.parseMaybeDefault(ee,de,this.copyNode(d.key))):d.value=this.copyNode(d.key),d.shorthand=!0):this.unexpected()},ze.parsePropertyName=function(d){if(this.options.ecmaVersion>=6){if(this.eat(y.bracketL))return d.computed=!0,d.key=this.parseMaybeAssign(),this.expect(y.bracketR),d.key;d.computed=!1}return d.key=this.type===y.num||this.type===y.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},ze.initFunction=function(d){d.id=null,this.options.ecmaVersion>=6&&(d.generator=d.expression=!1),this.options.ecmaVersion>=8&&(d.async=!1)},ze.parseMethod=function(d,A,O){var G=this.startNode(),ee=this.yieldPos,de=this.awaitPos,Ee=this.awaitIdentPos;return this.initFunction(G),this.options.ecmaVersion>=6&&(G.generator=d),this.options.ecmaVersion>=8&&(G.async=!!A),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Pe(A,G.generator)|Ce|(O?Ge:0)),this.expect(y.parenL),G.params=this.parseBindingList(y.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(G,!1,!0,!1),this.yieldPos=ee,this.awaitPos=de,this.awaitIdentPos=Ee,this.finishNode(G,"FunctionExpression")},ze.parseArrowExpression=function(d,A,O,G){var ee=this.yieldPos,de=this.awaitPos,Ee=this.awaitIdentPos;return this.enterScope(Pe(O,!1)|re),this.initFunction(d),this.options.ecmaVersion>=8&&(d.async=!!O),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,d.params=this.toAssignableList(A,!0),this.parseFunctionBody(d,!0,!1,G),this.yieldPos=ee,this.awaitPos=de,this.awaitIdentPos=Ee,this.finishNode(d,"ArrowFunctionExpression")},ze.parseFunctionBody=function(d,A,O,G){var ee=A&&this.type!==y.braceL,de=this.strict,Ee=!1;if(ee)d.body=this.parseMaybeAssign(G),d.expression=!0,this.checkParams(d,!1);else{var Be=this.options.ecmaVersion>=7&&!this.isSimpleParamList(d.params);(!de||Be)&&(Ee=this.strictDirective(this.end),Ee&&Be&&this.raiseRecoverable(d.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var je=this.labels;this.labels=[],Ee&&(this.strict=!0),this.checkParams(d,!de&&!Ee&&!A&&!O&&this.isSimpleParamList(d.params)),this.strict&&d.id&&this.checkLValSimple(d.id,Dt),d.body=this.parseBlock(!1,void 0,Ee&&!de),d.expression=!1,this.adaptDirectivePrologue(d.body.body),this.labels=je}this.exitScope()},ze.isSimpleParamList=function(d){for(var A=0,O=d;A<O.length;A+=1){var G=O[A];if(G.type!=="Identifier")return!1}return!0},ze.checkParams=function(d,A){for(var O=Object.create(null),G=0,ee=d.params;G<ee.length;G+=1){var de=ee[G];this.checkLValInnerPattern(de,nt,A?null:O)}},ze.parseExprList=function(d,A,O,G){for(var ee=[],de=!0;!this.eat(d);){if(de)de=!1;else if(this.expect(y.comma),A&&this.afterTrailingComma(d))break;var Ee=void 0;O&&this.type===y.comma?Ee=null:this.type===y.ellipsis?(Ee=this.parseSpread(G),G&&this.type===y.comma&&G.trailingComma<0&&(G.trailingComma=this.start)):Ee=this.parseMaybeAssign(!1,G),ee.push(Ee)}return ee},ze.checkUnreserved=function(d){var A=d.start,O=d.end,G=d.name;if(this.inGenerator&&G==="yield"&&this.raiseRecoverable(A,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&G==="await"&&this.raiseRecoverable(A,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&G==="arguments"&&this.raiseRecoverable(A,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(G==="arguments"||G==="await")&&this.raise(A,"Cannot use "+G+" in class static initialization block"),this.keywords.test(G)&&this.raise(A,"Unexpected keyword '"+G+"'"),!(this.options.ecmaVersion<6&&this.input.slice(A,O).indexOf("\\")!==-1)){var ee=this.strict?this.reservedWordsStrict:this.reservedWords;ee.test(G)&&(!this.inAsync&&G==="await"&&this.raiseRecoverable(A,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(A,"The keyword '"+G+"' is reserved"))}},ze.parseIdent=function(d,A){var O=this.startNode();return this.type===y.name?O.name=this.value:this.type.keyword?(O.name=this.type.keyword,(O.name==="class"||O.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!d),this.finishNode(O,"Identifier"),d||(this.checkUnreserved(O),O.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=O.start)),O},ze.parsePrivateIdent=function(){var d=this.startNode();return this.type===y.privateId?d.name=this.value:this.unexpected(),this.next(),this.finishNode(d,"PrivateIdentifier"),this.privateNameStack.length===0?this.raise(d.start,"Private field '#"+d.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(d),d},ze.parseYield=function(d){this.yieldPos||(this.yieldPos=this.start);var A=this.startNode();return this.next(),this.type===y.semi||this.canInsertSemicolon()||this.type!==y.star&&!this.type.startsExpr?(A.delegate=!1,A.argument=null):(A.delegate=this.eat(y.star),A.argument=this.parseMaybeAssign(d)),this.finishNode(A,"YieldExpression")},ze.parseAwait=function(d){this.awaitPos||(this.awaitPos=this.start);var A=this.startNode();return this.next(),A.argument=this.parseMaybeUnary(null,!0,!1,d),this.finishNode(A,"AwaitExpression")};var Xt=Xe.prototype;Xt.raise=function(d,A){var O=ie(this.input,d);A+=" ("+O.line+":"+O.column+")";var G=new SyntaxError(A);throw G.pos=d,G.loc=O,G.raisedAt=this.pos,G},Xt.raiseRecoverable=Xt.raise,Xt.curPosition=function(){if(this.options.locations)return new K(this.curLine,this.pos-this.lineStart)};var ar=Xe.prototype,Ss=function(A){this.flags=A,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};ar.enterScope=function(d){this.scopeStack.push(new Ss(d))},ar.exitScope=function(){this.scopeStack.pop()},ar.treatFunctionsAsVarInScope=function(d){return d.flags&te||!this.inModule&&d.flags&Fe},ar.declareName=function(d,A,O){var G=!1;if(A===Ye){var ee=this.currentScope();G=ee.lexical.indexOf(d)>-1||ee.functions.indexOf(d)>-1||ee.var.indexOf(d)>-1,ee.lexical.push(d),this.inModule&&ee.flags&Fe&&delete this.undefinedExports[d]}else if(A===lt){var de=this.currentScope();de.lexical.push(d)}else if(A===it){var Ee=this.currentScope();this.treatFunctionsAsVar?G=Ee.lexical.indexOf(d)>-1:G=Ee.lexical.indexOf(d)>-1||Ee.var.indexOf(d)>-1,Ee.functions.push(d)}else for(var Be=this.scopeStack.length-1;Be>=0;--Be){var je=this.scopeStack[Be];if(je.lexical.indexOf(d)>-1&&!(je.flags&fe&&je.lexical[0]===d)||!this.treatFunctionsAsVarInScope(je)&&je.functions.indexOf(d)>-1){G=!0;break}if(je.var.push(d),this.inModule&&je.flags&Fe&&delete this.undefinedExports[d],je.flags&se)break}G&&this.raiseRecoverable(O,"Identifier '"+d+"' has already been declared")},ar.checkLocalExport=function(d){this.scopeStack[0].lexical.indexOf(d.name)===-1&&this.scopeStack[0].var.indexOf(d.name)===-1&&(this.undefinedExports[d.name]=d)},ar.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ar.currentVarScope=function(){for(var d=this.scopeStack.length-1;;d--){var A=this.scopeStack[d];if(A.flags&se)return A}},ar.currentThisScope=function(){for(var d=this.scopeStack.length-1;;d--){var A=this.scopeStack[d];if(A.flags&se&&!(A.flags&re))return A}};var Cr=function(A,O,G){this.type="",this.start=O,this.end=0,A.options.locations&&(this.loc=new X(A,G)),A.options.directSourceFile&&(this.sourceFile=A.options.directSourceFile),A.options.ranges&&(this.range=[O,0])},or=Xe.prototype;or.startNode=function(){return new Cr(this,this.start,this.startLoc)},or.startNodeAt=function(d,A){return new Cr(this,d,A)};function Gr(d,A,O,G){return d.type=A,d.end=O,this.options.locations&&(d.loc.end=G),this.options.ranges&&(d.range[1]=O),d}or.finishNode=function(d,A){return Gr.call(this,d,A,this.lastTokEnd,this.lastTokEndLoc)},or.finishNodeAt=function(d,A,O,G){return Gr.call(this,d,A,O,G)},or.copyNode=function(d){var A=new Cr(this,d.start,this.startLoc);for(var O in d)A[O]=d[O];return A};var j="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Sr=j+" Extended_Pictographic",Vt=Sr,hr=Vt+" EBase EComp EMod EPres ExtPict",Y=hr,J={9:j,10:Sr,11:Vt,12:hr,13:Y},ae="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",ye="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",be=ye+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ge=be+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Ze=ge+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",$e=Ze+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",rt={9:ye,10:be,11:ge,12:Ze,13:$e},bt={};function st(d){var A=bt[d]={binary:Q(J[d]+" "+ae),nonBinary:{General_Category:Q(ae),Script:Q(rt[d])}};A.nonBinary.Script_Extensions=A.nonBinary.Script,A.nonBinary.gc=A.nonBinary.General_Category,A.nonBinary.sc=A.nonBinary.Script,A.nonBinary.scx=A.nonBinary.Script_Extensions}for(var ht=0,xt=[9,10,11,12,13];ht<xt.length;ht+=1){var yt=xt[ht];st(yt)}var Re=Xe.prototype,at=function(A){this.parser=A,this.validFlags="gim"+(A.options.ecmaVersion>=6?"uy":"")+(A.options.ecmaVersion>=9?"s":"")+(A.options.ecmaVersion>=13?"d":""),this.unicodeProperties=bt[A.options.ecmaVersion>=13?13:A.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};at.prototype.reset=function(A,O,G){var ee=G.indexOf("u")!==-1;this.start=A|0,this.source=O+"",this.flags=G,this.switchU=ee&&this.parser.options.ecmaVersion>=6,this.switchN=ee&&this.parser.options.ecmaVersion>=9},at.prototype.raise=function(A){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+A)},at.prototype.at=function(A,O){O===void 0&&(O=!1);var G=this.source,ee=G.length;if(A>=ee)return-1;var de=G.charCodeAt(A);if(!(O||this.switchU)||de<=55295||de>=57344||A+1>=ee)return de;var Ee=G.charCodeAt(A+1);return Ee>=56320&&Ee<=57343?(de<<10)+Ee-56613888:de},at.prototype.nextIndex=function(A,O){O===void 0&&(O=!1);var G=this.source,ee=G.length;if(A>=ee)return ee;var de=G.charCodeAt(A),Ee;return!(O||this.switchU)||de<=55295||de>=57344||A+1>=ee||(Ee=G.charCodeAt(A+1))<56320||Ee>57343?A+1:A+2},at.prototype.current=function(A){return A===void 0&&(A=!1),this.at(this.pos,A)},at.prototype.lookahead=function(A){return A===void 0&&(A=!1),this.at(this.nextIndex(this.pos,A),A)},at.prototype.advance=function(A){A===void 0&&(A=!1),this.pos=this.nextIndex(this.pos,A)},at.prototype.eat=function(A,O){return O===void 0&&(O=!1),this.current(O)===A?(this.advance(O),!0):!1};function Ve(d){return d<=65535?String.fromCharCode(d):(d-=65536,String.fromCharCode((d>>10)+55296,(d&1023)+56320))}Re.validateRegExpFlags=function(d){for(var A=d.validFlags,O=d.flags,G=0;G<O.length;G++){var ee=O.charAt(G);A.indexOf(ee)===-1&&this.raise(d.start,"Invalid regular expression flag"),O.indexOf(ee,G+1)>-1&&this.raise(d.start,"Duplicate regular expression flag")}},Re.validateRegExpPattern=function(d){this.regexp_pattern(d),!d.switchN&&this.options.ecmaVersion>=9&&d.groupNames.length>0&&(d.switchN=!0,this.regexp_pattern(d))},Re.regexp_pattern=function(d){d.pos=0,d.lastIntValue=0,d.lastStringValue="",d.lastAssertionIsQuantifiable=!1,d.numCapturingParens=0,d.maxBackReference=0,d.groupNames.length=0,d.backReferenceNames.length=0,this.regexp_disjunction(d),d.pos!==d.source.length&&(d.eat(41)&&d.raise("Unmatched ')'"),(d.eat(93)||d.eat(125))&&d.raise("Lone quantifier brackets")),d.maxBackReference>d.numCapturingParens&&d.raise("Invalid escape");for(var A=0,O=d.backReferenceNames;A<O.length;A+=1){var G=O[A];d.groupNames.indexOf(G)===-1&&d.raise("Invalid named capture referenced")}},Re.regexp_disjunction=function(d){for(this.regexp_alternative(d);d.eat(124);)this.regexp_alternative(d);this.regexp_eatQuantifier(d,!0)&&d.raise("Nothing to repeat"),d.eat(123)&&d.raise("Lone quantifier brackets")},Re.regexp_alternative=function(d){for(;d.pos<d.source.length&&this.regexp_eatTerm(d););},Re.regexp_eatTerm=function(d){return this.regexp_eatAssertion(d)?(d.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(d)&&d.switchU&&d.raise("Invalid quantifier"),!0):(d.switchU?this.regexp_eatAtom(d):this.regexp_eatExtendedAtom(d))?(this.regexp_eatQuantifier(d),!0):!1},Re.regexp_eatAssertion=function(d){var A=d.pos;if(d.lastAssertionIsQuantifiable=!1,d.eat(94)||d.eat(36))return!0;if(d.eat(92)){if(d.eat(66)||d.eat(98))return!0;d.pos=A}if(d.eat(40)&&d.eat(63)){var O=!1;if(this.options.ecmaVersion>=9&&(O=d.eat(60)),d.eat(61)||d.eat(33))return this.regexp_disjunction(d),d.eat(41)||d.raise("Unterminated group"),d.lastAssertionIsQuantifiable=!O,!0}return d.pos=A,!1},Re.regexp_eatQuantifier=function(d,A){return A===void 0&&(A=!1),this.regexp_eatQuantifierPrefix(d,A)?(d.eat(63),!0):!1},Re.regexp_eatQuantifierPrefix=function(d,A){return d.eat(42)||d.eat(43)||d.eat(63)||this.regexp_eatBracedQuantifier(d,A)},Re.regexp_eatBracedQuantifier=function(d,A){var O=d.pos;if(d.eat(123)){var G=0,ee=-1;if(this.regexp_eatDecimalDigits(d)&&(G=d.lastIntValue,d.eat(44)&&this.regexp_eatDecimalDigits(d)&&(ee=d.lastIntValue),d.eat(125)))return ee!==-1&&ee<G&&!A&&d.raise("numbers out of order in {} quantifier"),!0;d.switchU&&!A&&d.raise("Incomplete quantifier"),d.pos=O}return!1},Re.regexp_eatAtom=function(d){return this.regexp_eatPatternCharacters(d)||d.eat(46)||this.regexp_eatReverseSolidusAtomEscape(d)||this.regexp_eatCharacterClass(d)||this.regexp_eatUncapturingGroup(d)||this.regexp_eatCapturingGroup(d)},Re.regexp_eatReverseSolidusAtomEscape=function(d){var A=d.pos;if(d.eat(92)){if(this.regexp_eatAtomEscape(d))return!0;d.pos=A}return!1},Re.regexp_eatUncapturingGroup=function(d){var A=d.pos;if(d.eat(40)){if(d.eat(63)&&d.eat(58)){if(this.regexp_disjunction(d),d.eat(41))return!0;d.raise("Unterminated group")}d.pos=A}return!1},Re.regexp_eatCapturingGroup=function(d){if(d.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(d):d.current()===63&&d.raise("Invalid group"),this.regexp_disjunction(d),d.eat(41))return d.numCapturingParens+=1,!0;d.raise("Unterminated group")}return!1},Re.regexp_eatExtendedAtom=function(d){return d.eat(46)||this.regexp_eatReverseSolidusAtomEscape(d)||this.regexp_eatCharacterClass(d)||this.regexp_eatUncapturingGroup(d)||this.regexp_eatCapturingGroup(d)||this.regexp_eatInvalidBracedQuantifier(d)||this.regexp_eatExtendedPatternCharacter(d)},Re.regexp_eatInvalidBracedQuantifier=function(d){return this.regexp_eatBracedQuantifier(d,!0)&&d.raise("Nothing to repeat"),!1},Re.regexp_eatSyntaxCharacter=function(d){var A=d.current();return Se(A)?(d.lastIntValue=A,d.advance(),!0):!1};function Se(d){return d===36||d>=40&&d<=43||d===46||d===63||d>=91&&d<=94||d>=123&&d<=125}Re.regexp_eatPatternCharacters=function(d){for(var A=d.pos,O=0;(O=d.current())!==-1&&!Se(O);)d.advance();return d.pos!==A},Re.regexp_eatExtendedPatternCharacter=function(d){var A=d.current();return A!==-1&&A!==36&&!(A>=40&&A<=43)&&A!==46&&A!==63&&A!==91&&A!==94&&A!==124?(d.advance(),!0):!1},Re.regexp_groupSpecifier=function(d){if(d.eat(63)){if(this.regexp_eatGroupName(d)){d.groupNames.indexOf(d.lastStringValue)!==-1&&d.raise("Duplicate capture group name"),d.groupNames.push(d.lastStringValue);return}d.raise("Invalid group")}},Re.regexp_eatGroupName=function(d){if(d.lastStringValue="",d.eat(60)){if(this.regexp_eatRegExpIdentifierName(d)&&d.eat(62))return!0;d.raise("Invalid capture group name")}return!1},Re.regexp_eatRegExpIdentifierName=function(d){if(d.lastStringValue="",this.regexp_eatRegExpIdentifierStart(d)){for(d.lastStringValue+=Ve(d.lastIntValue);this.regexp_eatRegExpIdentifierPart(d);)d.lastStringValue+=Ve(d.lastIntValue);return!0}return!1},Re.regexp_eatRegExpIdentifierStart=function(d){var A=d.pos,O=this.options.ecmaVersion>=11,G=d.current(O);return d.advance(O),G===92&&this.regexp_eatRegExpUnicodeEscapeSequence(d,O)&&(G=d.lastIntValue),Oe(G)?(d.lastIntValue=G,!0):(d.pos=A,!1)};function Oe(d){return h(d,!0)||d===36||d===95}Re.regexp_eatRegExpIdentifierPart=function(d){var A=d.pos,O=this.options.ecmaVersion>=11,G=d.current(O);return d.advance(O),G===92&&this.regexp_eatRegExpUnicodeEscapeSequence(d,O)&&(G=d.lastIntValue),Ne(G)?(d.lastIntValue=G,!0):(d.pos=A,!1)};function Ne(d){return f(d,!0)||d===36||d===95||d===8204||d===8205}Re.regexp_eatAtomEscape=function(d){return this.regexp_eatBackReference(d)||this.regexp_eatCharacterClassEscape(d)||this.regexp_eatCharacterEscape(d)||d.switchN&&this.regexp_eatKGroupName(d)?!0:(d.switchU&&(d.current()===99&&d.raise("Invalid unicode escape"),d.raise("Invalid escape")),!1)},Re.regexp_eatBackReference=function(d){var A=d.pos;if(this.regexp_eatDecimalEscape(d)){var O=d.lastIntValue;if(d.switchU)return O>d.maxBackReference&&(d.maxBackReference=O),!0;if(O<=d.numCapturingParens)return!0;d.pos=A}return!1},Re.regexp_eatKGroupName=function(d){if(d.eat(107)){if(this.regexp_eatGroupName(d))return d.backReferenceNames.push(d.lastStringValue),!0;d.raise("Invalid named reference")}return!1},Re.regexp_eatCharacterEscape=function(d){return this.regexp_eatControlEscape(d)||this.regexp_eatCControlLetter(d)||this.regexp_eatZero(d)||this.regexp_eatHexEscapeSequence(d)||this.regexp_eatRegExpUnicodeEscapeSequence(d,!1)||!d.switchU&&this.regexp_eatLegacyOctalEscapeSequence(d)||this.regexp_eatIdentityEscape(d)},Re.regexp_eatCControlLetter=function(d){var A=d.pos;if(d.eat(99)){if(this.regexp_eatControlLetter(d))return!0;d.pos=A}return!1},Re.regexp_eatZero=function(d){return d.current()===48&&!g(d.lookahead())?(d.lastIntValue=0,d.advance(),!0):!1},Re.regexp_eatControlEscape=function(d){var A=d.current();return A===116?(d.lastIntValue=9,d.advance(),!0):A===110?(d.lastIntValue=10,d.advance(),!0):A===118?(d.lastIntValue=11,d.advance(),!0):A===102?(d.lastIntValue=12,d.advance(),!0):A===114?(d.lastIntValue=13,d.advance(),!0):!1},Re.regexp_eatControlLetter=function(d){var A=d.current();return le(A)?(d.lastIntValue=A%32,d.advance(),!0):!1};function le(d){return d>=65&&d<=90||d>=97&&d<=122}Re.regexp_eatRegExpUnicodeEscapeSequence=function(d,A){A===void 0&&(A=!1);var O=d.pos,G=A||d.switchU;if(d.eat(117)){if(this.regexp_eatFixedHexDigits(d,4)){var ee=d.lastIntValue;if(G&&ee>=55296&&ee<=56319){var de=d.pos;if(d.eat(92)&&d.eat(117)&&this.regexp_eatFixedHexDigits(d,4)){var Ee=d.lastIntValue;if(Ee>=56320&&Ee<=57343)return d.lastIntValue=(ee-55296)*1024+(Ee-56320)+65536,!0}d.pos=de,d.lastIntValue=ee}return!0}if(G&&d.eat(123)&&this.regexp_eatHexDigits(d)&&d.eat(125)&&ke(d.lastIntValue))return!0;G&&d.raise("Invalid unicode escape"),d.pos=O}return!1};function ke(d){return d>=0&&d<=1114111}Re.regexp_eatIdentityEscape=function(d){if(d.switchU)return this.regexp_eatSyntaxCharacter(d)?!0:d.eat(47)?(d.lastIntValue=47,!0):!1;var A=d.current();return A!==99&&(!d.switchN||A!==107)?(d.lastIntValue=A,d.advance(),!0):!1},Re.regexp_eatDecimalEscape=function(d){d.lastIntValue=0;var A=d.current();if(A>=49&&A<=57){do d.lastIntValue=10*d.lastIntValue+(A-48),d.advance();while((A=d.current())>=48&&A<=57);return!0}return!1},Re.regexp_eatCharacterClassEscape=function(d){var A=d.current();if(_e(A))return d.lastIntValue=-1,d.advance(),!0;if(d.switchU&&this.options.ecmaVersion>=9&&(A===80||A===112)){if(d.lastIntValue=-1,d.advance(),d.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(d)&&d.eat(125))return!0;d.raise("Invalid property name")}return!1};function _e(d){return d===100||d===68||d===115||d===83||d===119||d===87}Re.regexp_eatUnicodePropertyValueExpression=function(d){var A=d.pos;if(this.regexp_eatUnicodePropertyName(d)&&d.eat(61)){var O=d.lastStringValue;if(this.regexp_eatUnicodePropertyValue(d)){var G=d.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(d,O,G),!0}}if(d.pos=A,this.regexp_eatLoneUnicodePropertyNameOrValue(d)){var ee=d.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(d,ee),!0}return!1},Re.regexp_validateUnicodePropertyNameAndValue=function(d,A,O){F(d.unicodeProperties.nonBinary,A)||d.raise("Invalid property name"),d.unicodeProperties.nonBinary[A].test(O)||d.raise("Invalid property value")},Re.regexp_validateUnicodePropertyNameOrValue=function(d,A){d.unicodeProperties.binary.test(A)||d.raise("Invalid property name")},Re.regexp_eatUnicodePropertyName=function(d){var A=0;for(d.lastStringValue="";Me(A=d.current());)d.lastStringValue+=Ve(A),d.advance();return d.lastStringValue!==""};function Me(d){return le(d)||d===95}Re.regexp_eatUnicodePropertyValue=function(d){var A=0;for(d.lastStringValue="";Ke(A=d.current());)d.lastStringValue+=Ve(A),d.advance();return d.lastStringValue!==""};function Ke(d){return Me(d)||g(d)}Re.regexp_eatLoneUnicodePropertyNameOrValue=function(d){return this.regexp_eatUnicodePropertyValue(d)},Re.regexp_eatCharacterClass=function(d){if(d.eat(91)){if(d.eat(94),this.regexp_classRanges(d),d.eat(93))return!0;d.raise("Unterminated character class")}return!1},Re.regexp_classRanges=function(d){for(;this.regexp_eatClassAtom(d);){var A=d.lastIntValue;if(d.eat(45)&&this.regexp_eatClassAtom(d)){var O=d.lastIntValue;d.switchU&&(A===-1||O===-1)&&d.raise("Invalid character class"),A!==-1&&O!==-1&&A>O&&d.raise("Range out of order in character class")}}},Re.regexp_eatClassAtom=function(d){var A=d.pos;if(d.eat(92)){if(this.regexp_eatClassEscape(d))return!0;if(d.switchU){var O=d.current();(O===99||H(O))&&d.raise("Invalid class escape"),d.raise("Invalid escape")}d.pos=A}var G=d.current();return G!==93?(d.lastIntValue=G,d.advance(),!0):!1},Re.regexp_eatClassEscape=function(d){var A=d.pos;if(d.eat(98))return d.lastIntValue=8,!0;if(d.switchU&&d.eat(45))return d.lastIntValue=45,!0;if(!d.switchU&&d.eat(99)){if(this.regexp_eatClassControlLetter(d))return!0;d.pos=A}return this.regexp_eatCharacterClassEscape(d)||this.regexp_eatCharacterEscape(d)},Re.regexp_eatClassControlLetter=function(d){var A=d.current();return g(A)||A===95?(d.lastIntValue=A%32,d.advance(),!0):!1},Re.regexp_eatHexEscapeSequence=function(d){var A=d.pos;if(d.eat(120)){if(this.regexp_eatFixedHexDigits(d,2))return!0;d.switchU&&d.raise("Invalid escape"),d.pos=A}return!1},Re.regexp_eatDecimalDigits=function(d){var A=d.pos,O=0;for(d.lastIntValue=0;g(O=d.current());)d.lastIntValue=10*d.lastIntValue+(O-48),d.advance();return d.pos!==A};function g(d){return d>=48&&d<=57}Re.regexp_eatHexDigits=function(d){var A=d.pos,O=0;for(d.lastIntValue=0;k(O=d.current());)d.lastIntValue=16*d.lastIntValue+N(O),d.advance();return d.pos!==A};function k(d){return d>=48&&d<=57||d>=65&&d<=70||d>=97&&d<=102}function N(d){return d>=65&&d<=70?10+(d-65):d>=97&&d<=102?10+(d-97):d-48}Re.regexp_eatLegacyOctalEscapeSequence=function(d){if(this.regexp_eatOctalDigit(d)){var A=d.lastIntValue;if(this.regexp_eatOctalDigit(d)){var O=d.lastIntValue;A<=3&&this.regexp_eatOctalDigit(d)?d.lastIntValue=A*64+O*8+d.lastIntValue:d.lastIntValue=A*8+O}else d.lastIntValue=A;return!0}return!1},Re.regexp_eatOctalDigit=function(d){var A=d.current();return H(A)?(d.lastIntValue=A-48,d.advance(),!0):(d.lastIntValue=0,!1)};function H(d){return d>=48&&d<=55}Re.regexp_eatFixedHexDigits=function(d,A){var O=d.pos;d.lastIntValue=0;for(var G=0;G<A;++G){var ee=d.current();if(!k(ee))return d.pos=O,!1;d.lastIntValue=16*d.lastIntValue+N(ee),d.advance()}return!0};var Z=function(A){this.type=A.type,this.value=A.value,this.start=A.start,this.end=A.end,A.options.locations&&(this.loc=new X(A,A.startLoc,A.endLoc)),A.options.ranges&&(this.range=[A.start,A.end])},oe=Xe.prototype;oe.next=function(d){!d&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Z(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},oe.getToken=function(){return this.next(),new Z(this)},typeof Symbol!="undefined"&&(oe[Symbol.iterator]=function(){var d=this;return{next:function(){var A=d.getToken();return{done:A.type===y.eof,value:A}}}}),oe.nextToken=function(){var d=this.curContext();if((!d||!d.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(y.eof);if(d.override)return d.override(this);this.readToken(this.fullCharCodeAtPos())},oe.readToken=function(d){return h(d,this.options.ecmaVersion>=6)||d===92?this.readWord():this.getTokenFromCode(d)},oe.fullCharCodeAtPos=function(){var d=this.input.charCodeAt(this.pos);if(d<=55295||d>=56320)return d;var A=this.input.charCodeAt(this.pos+1);return A<=56319||A>=57344?d:(d<<10)+A-56613888},oe.skipBlockComment=function(){var d=this.options.onComment&&this.curPosition(),A=this.pos,O=this.input.indexOf("*/",this.pos+=2);if(O===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=O+2,this.options.locations)for(var G=void 0,ee=A;(G=z(this.input,ee,this.pos))>-1;)++this.curLine,ee=this.lineStart=G;this.options.onComment&&this.options.onComment(!0,this.input.slice(A+2,O),A,this.pos,d,this.curPosition())},oe.skipLineComment=function(d){for(var A=this.pos,O=this.options.onComment&&this.curPosition(),G=this.input.charCodeAt(this.pos+=d);this.pos<this.input.length&&!R(G);)G=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(A+d,this.pos),A,this.pos,O,this.curPosition())},oe.skipSpace=function(){e:for(;this.pos<this.input.length;){var d=this.input.charCodeAt(this.pos);switch(d){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(d>8&&d<14||d>=5760&&q.test(String.fromCharCode(d)))++this.pos;else break e}}},oe.finishToken=function(d,A){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var O=this.type;this.type=d,this.value=A,this.updateContext(O)},oe.readToken_dot=function(){var d=this.input.charCodeAt(this.pos+1);if(d>=48&&d<=57)return this.readNumber(!0);var A=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&d===46&&A===46?(this.pos+=3,this.finishToken(y.ellipsis)):(++this.pos,this.finishToken(y.dot))},oe.readToken_slash=function(){var d=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):d===61?this.finishOp(y.assign,2):this.finishOp(y.slash,1)},oe.readToken_mult_modulo_exp=function(d){var A=this.input.charCodeAt(this.pos+1),O=1,G=d===42?y.star:y.modulo;return this.options.ecmaVersion>=7&&d===42&&A===42&&(++O,G=y.starstar,A=this.input.charCodeAt(this.pos+2)),A===61?this.finishOp(y.assign,O+1):this.finishOp(G,O)},oe.readToken_pipe_amp=function(d){var A=this.input.charCodeAt(this.pos+1);if(A===d){if(this.options.ecmaVersion>=12){var O=this.input.charCodeAt(this.pos+2);if(O===61)return this.finishOp(y.assign,3)}return this.finishOp(d===124?y.logicalOR:y.logicalAND,2)}return A===61?this.finishOp(y.assign,2):this.finishOp(d===124?y.bitwiseOR:y.bitwiseAND,1)},oe.readToken_caret=function(){var d=this.input.charCodeAt(this.pos+1);return d===61?this.finishOp(y.assign,2):this.finishOp(y.bitwiseXOR,1)},oe.readToken_plus_min=function(d){var A=this.input.charCodeAt(this.pos+1);return A===d?A===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||w.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(y.incDec,2):A===61?this.finishOp(y.assign,2):this.finishOp(y.plusMin,1)},oe.readToken_lt_gt=function(d){var A=this.input.charCodeAt(this.pos+1),O=1;return A===d?(O=d===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+O)===61?this.finishOp(y.assign,O+1):this.finishOp(y.bitShift,O)):A===33&&d===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(A===61&&(O=2),this.finishOp(y.relational,O))},oe.readToken_eq_excl=function(d){var A=this.input.charCodeAt(this.pos+1);return A===61?this.finishOp(y.equality,this.input.charCodeAt(this.pos+2)===61?3:2):d===61&&A===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(y.arrow)):this.finishOp(d===61?y.eq:y.prefix,1)},oe.readToken_question=function(){var d=this.options.ecmaVersion;if(d>=11){var A=this.input.charCodeAt(this.pos+1);if(A===46){var O=this.input.charCodeAt(this.pos+2);if(O<48||O>57)return this.finishOp(y.questionDot,2)}if(A===63){if(d>=12){var G=this.input.charCodeAt(this.pos+2);if(G===61)return this.finishOp(y.assign,3)}return this.finishOp(y.coalesce,2)}}return this.finishOp(y.question,1)},oe.readToken_numberSign=function(){var d=this.options.ecmaVersion,A=35;if(d>=13&&(++this.pos,A=this.fullCharCodeAtPos(),h(A,!0)||A===92))return this.finishToken(y.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Te(A)+"'")},oe.getTokenFromCode=function(d){switch(d){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(y.parenL);case 41:return++this.pos,this.finishToken(y.parenR);case 59:return++this.pos,this.finishToken(y.semi);case 44:return++this.pos,this.finishToken(y.comma);case 91:return++this.pos,this.finishToken(y.bracketL);case 93:return++this.pos,this.finishToken(y.bracketR);case 123:return++this.pos,this.finishToken(y.braceL);case 125:return++this.pos,this.finishToken(y.braceR);case 58:return++this.pos,this.finishToken(y.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(y.backQuote);case 48:var A=this.input.charCodeAt(this.pos+1);if(A===120||A===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(A===111||A===79)return this.readRadixNumber(8);if(A===98||A===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(d);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(d);case 124:case 38:return this.readToken_pipe_amp(d);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(d);case 60:case 62:return this.readToken_lt_gt(d);case 61:case 33:return this.readToken_eq_excl(d);case 63:return this.readToken_question();case 126:return this.finishOp(y.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Te(d)+"'")},oe.finishOp=function(d,A){var O=this.input.slice(this.pos,this.pos+A);return this.pos+=A,this.finishToken(d,O)},oe.readRegexp=function(){for(var d,A,O=this.pos;;){this.pos>=this.input.length&&this.raise(O,"Unterminated regular expression");var G=this.input.charAt(this.pos);if(w.test(G)&&this.raise(O,"Unterminated regular expression"),d)d=!1;else{if(G==="[")A=!0;else if(G==="]"&&A)A=!1;else if(G==="/"&&!A)break;d=G==="\\"}++this.pos}var ee=this.input.slice(O,this.pos);++this.pos;var de=this.pos,Ee=this.readWord1();this.containsEsc&&this.unexpected(de);var Be=this.regexpState||(this.regexpState=new at(this));Be.reset(O,ee,Ee),this.validateRegExpFlags(Be),this.validateRegExpPattern(Be);var je=null;try{je=new RegExp(ee,Ee)}catch(et){}return this.finishToken(y.regexp,{pattern:ee,flags:Ee,value:je})},oe.readInt=function(d,A,O){for(var G=this.options.ecmaVersion>=12&&A===void 0,ee=O&&this.input.charCodeAt(this.pos)===48,de=this.pos,Ee=0,Be=0,je=0,et=A??Infinity;je<et;++je,++this.pos){var tt=this.input.charCodeAt(this.pos),Yt=void 0;if(G&&tt===95){ee&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),Be===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),je===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),Be=tt;continue}if(tt>=97?Yt=tt-97+10:tt>=65?Yt=tt-65+10:tt>=48&&tt<=57?Yt=tt-48:Yt=Infinity,Yt>=d)break;Be=tt,Ee=Ee*d+Yt}return G&&Be===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===de||A!=null&&this.pos-de!==A?null:Ee};function xe(d,A){return A?parseInt(d,8):parseFloat(d.replace(/_/g,""))}function he(d){return typeof BigInt!="function"?null:BigInt(d.replace(/_/g,""))}oe.readRadixNumber=function(d){var A=this.pos;this.pos+=2;var O=this.readInt(d);return O==null&&this.raise(this.start+2,"Expected number in radix "+d),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(O=he(this.input.slice(A,this.pos)),++this.pos):h(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(y.num,O)},oe.readNumber=function(d){var A=this.pos;!d&&this.readInt(10,void 0,!0)===null&&this.raise(A,"Invalid number");var O=this.pos-A>=2&&this.input.charCodeAt(A)===48;O&&this.strict&&this.raise(A,"Invalid number");var G=this.input.charCodeAt(this.pos);if(!O&&!d&&this.options.ecmaVersion>=11&&G===110){var ee=he(this.input.slice(A,this.pos));return++this.pos,h(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(y.num,ee)}O&&/[89]/.test(this.input.slice(A,this.pos))&&(O=!1),G===46&&!O&&(++this.pos,this.readInt(10),G=this.input.charCodeAt(this.pos)),(G===69||G===101)&&!O&&(G=this.input.charCodeAt(++this.pos),(G===43||G===45)&&++this.pos,this.readInt(10)===null&&this.raise(A,"Invalid number")),h(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var de=xe(this.input.slice(A,this.pos),O);return this.finishToken(y.num,de)},oe.readCodePoint=function(){var d=this.input.charCodeAt(this.pos),A;if(d===123){this.options.ecmaVersion<6&&this.unexpected();var O=++this.pos;A=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,A>1114111&&this.invalidStringToken(O,"Code point out of bounds")}else A=this.readHexChar(4);return A};function Te(d){return d<=65535?String.fromCharCode(d):(d-=65536,String.fromCharCode((d>>10)+55296,(d&1023)+56320))}oe.readString=function(d){for(var A="",O=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var G=this.input.charCodeAt(this.pos);if(G===d)break;G===92?(A+=this.input.slice(O,this.pos),A+=this.readEscapedChar(!1),O=this.pos):G===8232||G===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(R(G)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return A+=this.input.slice(O,this.pos++),this.finishToken(y.string,A)};var Le={};oe.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(d){if(d===Le)this.readInvalidTemplateToken();else throw d}this.inTemplateElement=!1},oe.invalidStringToken=function(d,A){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Le;this.raise(d,A)},oe.readTmplToken=function(){for(var d="",A=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var O=this.input.charCodeAt(this.pos);if(O===96||O===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===y.template||this.type===y.invalidTemplate)?O===36?(this.pos+=2,this.finishToken(y.dollarBraceL)):(++this.pos,this.finishToken(y.backQuote)):(d+=this.input.slice(A,this.pos),this.finishToken(y.template,d));if(O===92)d+=this.input.slice(A,this.pos),d+=this.readEscapedChar(!0),A=this.pos;else if(R(O)){switch(d+=this.input.slice(A,this.pos),++this.pos,O){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:d+=`
|
|
16
|
+
`;break;default:d+=String.fromCharCode(O);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),A=this.pos}else++this.pos}},oe.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(y.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},oe.readEscapedChar=function(d){var A=this.input.charCodeAt(++this.pos);switch(++this.pos,A){case 110:return`
|
|
17
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Te(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),d){var O=this.pos-1;return this.invalidStringToken(O,"Invalid escape sequence in template string"),null}default:if(A>=48&&A<=55){var G=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],ee=parseInt(G,8);return ee>255&&(G=G.slice(0,-1),ee=parseInt(G,8)),this.pos+=G.length-1,A=this.input.charCodeAt(this.pos),(G!=="0"||A===56||A===57)&&(this.strict||d)&&this.invalidStringToken(this.pos-1-G.length,d?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(ee)}return R(A)?"":String.fromCharCode(A)}},oe.readHexChar=function(d){var A=this.pos,O=this.readInt(16,d);return O===null&&this.invalidStringToken(A,"Bad character escape sequence"),O},oe.readWord1=function(){this.containsEsc=!1;for(var d="",A=!0,O=this.pos,G=this.options.ecmaVersion>=6;this.pos<this.input.length;){var ee=this.fullCharCodeAtPos();if(f(ee,G))this.pos+=ee<=65535?1:2;else if(ee===92){this.containsEsc=!0,d+=this.input.slice(O,this.pos);var de=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var Ee=this.readCodePoint();(A?h:f)(Ee,G)||this.invalidStringToken(de,"Invalid Unicode escape"),d+=Te(Ee),O=this.pos}else break;A=!1}return d+this.input.slice(O,this.pos)},oe.readWord=function(){var d=this.readWord1(),A=y.name;return this.keywords.test(d)&&(A=T[d]),this.finishToken(A,d)};var De="8.7.0";Xe.acorn={Parser:Xe,version:De,defaultOptions:ve,Position:K,SourceLocation:X,getLineInfo:ie,Node:Cr,TokenType:m,tokTypes:y,keywordTypes:T,TokContext:Rt,tokContexts:gt,isIdentifierChar:f,isIdentifierStart:h,Token:Z,isNewLine:R,lineBreak:w,lineBreakG:D,nonASCIIwhitespace:q};function He(d,A){return Xe.parse(d,A)}function ct(d,A,O){return Xe.parseExpressionAt(d,A,O)}function St(d,A){return Xe.tokenizer(d,A)}t.Node=Cr,t.Parser=Xe,t.Position=K,t.SourceLocation=X,t.TokContext=Rt,t.Token=Z,t.TokenType=m,t.defaultOptions=ve,t.getLineInfo=ie,t.isIdentifierChar=f,t.isIdentifierStart=h,t.isNewLine=R,t.keywordTypes=T,t.lineBreak=w,t.lineBreakG=D,t.nonASCIIwhitespace=q,t.parse=He,t.parseExpressionAt=ct,t.tokContexts=gt,t.tokTypes=y,t.tokenizer=St,t.version=De,Object.defineProperty(t,"__esModule",{value:!0})})});var Ad=M((NQ,Sd)=>{b();v();Sd.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}});var nc=M((go,wd)=>{b();v();(function(t,e){typeof go=="object"&&typeof wd!="undefined"?e(go):typeof define=="function"&&define.amd?define(["exports"],e):(t=t||self,e(t.acorn={}))})(go,function(t){"use strict";var e={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},r="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",n={5:r,"5module":r+" export import",6:r+" const class extends export import super"},s=/^in(stanceof)?$/,i="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",a="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF\u1AC0\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F",o=new RegExp("["+i+"]"),l=new RegExp("["+i+a+"]");i=a=null;var u=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],c=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function p(g,k){for(var N=65536,H=0;H<k.length;H+=2){if(N+=k[H],N>g)return!1;if(N+=k[H+1],N>=g)return!0}}function h(g,k){return g<65?g===36:g<91?!0:g<97?g===95:g<123?!0:g<=65535?g>=170&&o.test(String.fromCharCode(g)):k===!1?!1:p(g,u)}function f(g,k){return g<48?g===36:g<58?!0:g<65?!1:g<91?!0:g<97?g===95:g<123?!0:g<=65535?g>=170&&l.test(String.fromCharCode(g)):k===!1?!1:p(g,u)||p(g,c)}var m=function(k,N){N===void 0&&(N={}),this.label=k,this.keyword=N.keyword,this.beforeExpr=!!N.beforeExpr,this.startsExpr=!!N.startsExpr,this.isLoop=!!N.isLoop,this.isAssign=!!N.isAssign,this.prefix=!!N.prefix,this.postfix=!!N.postfix,this.binop=N.binop||null,this.updateContext=null};function x(g,k){return new m(g,{beforeExpr:!0,binop:k})}var E={beforeExpr:!0},S={startsExpr:!0},T={};function I(g,k){return k===void 0&&(k={}),k.keyword=g,T[g]=new m(g,k)}var y={num:new m("num",S),regexp:new m("regexp",S),string:new m("string",S),name:new m("name",S),eof:new m("eof"),bracketL:new m("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new m("]"),braceL:new m("{",{beforeExpr:!0,startsExpr:!0}),braceR:new m("}"),parenL:new m("(",{beforeExpr:!0,startsExpr:!0}),parenR:new m(")"),comma:new m(",",E),semi:new m(";",E),colon:new m(":",E),dot:new m("."),question:new m("?",E),questionDot:new m("?."),arrow:new m("=>",E),template:new m("template"),invalidTemplate:new m("invalidTemplate"),ellipsis:new m("...",E),backQuote:new m("`",S),dollarBraceL:new m("${",{beforeExpr:!0,startsExpr:!0}),eq:new m("=",{beforeExpr:!0,isAssign:!0}),assign:new m("_=",{beforeExpr:!0,isAssign:!0}),incDec:new m("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new m("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:x("||",1),logicalAND:x("&&",2),bitwiseOR:x("|",3),bitwiseXOR:x("^",4),bitwiseAND:x("&",5),equality:x("==/!=/===/!==",6),relational:x("</>/<=/>=",7),bitShift:x("<</>>/>>>",8),plusMin:new m("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:x("%",10),star:x("*",10),slash:x("/",10),starstar:new m("**",{beforeExpr:!0}),coalesce:x("??",1),_break:I("break"),_case:I("case",E),_catch:I("catch"),_continue:I("continue"),_debugger:I("debugger"),_default:I("default",E),_do:I("do",{isLoop:!0,beforeExpr:!0}),_else:I("else",E),_finally:I("finally"),_for:I("for",{isLoop:!0}),_function:I("function",S),_if:I("if"),_return:I("return",E),_switch:I("switch"),_throw:I("throw",E),_try:I("try"),_var:I("var"),_const:I("const"),_while:I("while",{isLoop:!0}),_with:I("with"),_new:I("new",{beforeExpr:!0,startsExpr:!0}),_this:I("this",S),_super:I("super",S),_class:I("class",S),_extends:I("extends",E),_export:I("export"),_import:I("import",S),_null:I("null",S),_true:I("true",S),_false:I("false",S),_in:I("in",{beforeExpr:!0,binop:7}),_instanceof:I("instanceof",{beforeExpr:!0,binop:7}),_typeof:I("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:I("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:I("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},w=/\r\n?|\n|\u2028|\u2029/,D=new RegExp(w.source,"g");function R(g,k){return g===10||g===13||!k&&(g===8232||g===8233)}var z=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,q=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,W=Object.prototype,_=W.hasOwnProperty,C=W.toString;function $(g,k){return _.call(g,k)}var F=Array.isArray||function(g){return C.call(g)==="[object Array]"};function U(g){return new RegExp("^(?:"+g.replace(/ /g,"|")+")$")}var Q=function(k,N){this.line=k,this.column=N};Q.prototype.offset=function(k){return new Q(this.line,this.column+k)};var B=function(k,N,H){this.start=N,this.end=H,k.sourceFile!==null&&(this.source=k.sourceFile)};function K(g,k){for(var N=1,H=0;;){D.lastIndex=H;var Z=D.exec(g);if(Z&&Z.index<k)++N,H=Z.index+Z[0].length;else return new Q(N,k-H)}}var X={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function ie(g){var k={};for(var N in X)k[N]=g&&$(g,N)?g[N]:X[N];if(k.ecmaVersion>=2015&&(k.ecmaVersion-=2009),k.allowReserved==null&&(k.allowReserved=k.ecmaVersion<5),F(k.onToken)){var H=k.onToken;k.onToken=function(Z){return H.push(Z)}}return F(k.onComment)&&(k.onComment=ve(k,k.onComment)),k}function ve(g,k){return function(N,H,Z,oe,xe,he){var Te={type:N?"Block":"Line",value:H,start:Z,end:oe};g.locations&&(Te.loc=new B(this,xe,he)),g.ranges&&(Te.range=[Z,oe]),k.push(Te)}}var Ae=1,me=2,ce=Ae|me,Fe=4,te=8,ne=16,ue=32,re=64,fe=128;function Ce(g,k){return me|(g?Fe:0)|(k?te:0)}var Ge=0,V=1,se=2,Pe=3,Je=4,nt=5,Ye=function(k,N,H){this.options=k=ie(k),this.sourceFile=k.sourceFile,this.keywords=U(n[k.ecmaVersion>=6?6:k.sourceType==="module"?"5module":5]);var Z="";if(k.allowReserved!==!0){for(var oe=k.ecmaVersion;!(Z=e[oe]);oe--);k.sourceType==="module"&&(Z+=" await")}this.reservedWords=U(Z);var xe=(Z?Z+" ":"")+e.strict;this.reservedWordsStrict=U(xe),this.reservedWordsStrictBind=U(xe+" "+e.strictBind),this.input=String(N),this.containsEsc=!1,H?(this.pos=H,this.lineStart=this.input.lastIndexOf(`
|
|
18
|
+
`,H-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(w).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=y.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=k.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},this.pos===0&&k.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Ae),this.regexpState=null},it={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};Ye.prototype.parse=function(){var k=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(k)},it.inFunction.get=function(){return(this.currentVarScope().flags&me)>0},it.inGenerator.get=function(){return(this.currentVarScope().flags&te)>0},it.inAsync.get=function(){return(this.currentVarScope().flags&Fe)>0},it.allowSuper.get=function(){return(this.currentThisScope().flags&re)>0},it.allowDirectSuper.get=function(){return(this.currentThisScope().flags&fe)>0},it.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ye.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&me)>0},Ye.extend=function(){for(var k=[],N=arguments.length;N--;)k[N]=arguments[N];for(var H=this,Z=0;Z<k.length;Z++)H=k[Z](H);return H},Ye.parse=function(k,N){return new this(N,k).parse()},Ye.parseExpressionAt=function(k,N,H){var Z=new this(H,k,N);return Z.nextToken(),Z.parseExpression()},Ye.tokenizer=function(k,N){return new this(N,k)},Object.defineProperties(Ye.prototype,it);var lt=Ye.prototype,Dt=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;lt.strictDirective=function(g){for(;;){q.lastIndex=g,g+=q.exec(this.input)[0].length;var k=Dt.exec(this.input.slice(g));if(!k)return!1;if((k[1]||k[2])==="use strict"){q.lastIndex=g+k[0].length;var N=q.exec(this.input),H=N.index+N[0].length,Z=this.input.charAt(H);return Z===";"||Z==="}"||w.test(N[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(Z)||Z==="!"&&this.input.charAt(H+1)==="=")}g+=k[0].length,q.lastIndex=g,g+=q.exec(this.input)[0].length,this.input[g]===";"&&g++}},lt.eat=function(g){return this.type===g?(this.next(),!0):!1},lt.isContextual=function(g){return this.type===y.name&&this.value===g&&!this.containsEsc},lt.eatContextual=function(g){return this.isContextual(g)?(this.next(),!0):!1},lt.expectContextual=function(g){this.eatContextual(g)||this.unexpected()},lt.canInsertSemicolon=function(){return this.type===y.eof||this.type===y.braceR||w.test(this.input.slice(this.lastTokEnd,this.start))},lt.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},lt.semicolon=function(){!this.eat(y.semi)&&!this.insertSemicolon()&&this.unexpected()},lt.afterTrailingComma=function(g,k){if(this.type===g)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),k||this.next(),!0},lt.expect=function(g){this.eat(g)||this.unexpected()},lt.unexpected=function(g){this.raise(g??this.start,"Unexpected token")};function Xe(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}lt.checkPatternErrors=function(g,k){if(!!g){g.trailingComma>-1&&this.raiseRecoverable(g.trailingComma,"Comma is not permitted after the rest element");var N=k?g.parenthesizedAssign:g.parenthesizedBind;N>-1&&this.raiseRecoverable(N,"Parenthesized pattern")}},lt.checkExpressionErrors=function(g,k){if(!g)return!1;var N=g.shorthandAssign,H=g.doubleProto;if(!k)return N>=0||H>=0;N>=0&&this.raise(N,"Shorthand property assignments are valid only in destructuring patterns"),H>=0&&this.raiseRecoverable(H,"Redefinition of __proto__ property")},lt.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},lt.isSimpleAssignTarget=function(g){return g.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(g.expression):g.type==="Identifier"||g.type==="MemberExpression"};var Ue=Ye.prototype;Ue.parseTopLevel=function(g){var k={};for(g.body||(g.body=[]);this.type!==y.eof;){var N=this.parseStatement(null,!0,k);g.body.push(N)}if(this.inModule)for(var H=0,Z=Object.keys(this.undefinedExports);H<Z.length;H+=1){var oe=Z[H];this.raiseRecoverable(this.undefinedExports[oe].start,"Export '"+oe+"' is not defined")}return this.adaptDirectivePrologue(g.body),this.next(),g.sourceType=this.options.sourceType,this.finishNode(g,"Program")};var pt={kind:"loop"},Kt={kind:"switch"};Ue.isLet=function(g){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;q.lastIndex=this.pos;var k=q.exec(this.input),N=this.pos+k[0].length,H=this.input.charCodeAt(N);if(H===91)return!0;if(g)return!1;if(H===123)return!0;if(h(H,!0)){for(var Z=N+1;f(this.input.charCodeAt(Z),!0);)++Z;var oe=this.input.slice(N,Z);if(!s.test(oe))return!0}return!1},Ue.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;q.lastIndex=this.pos;var g=q.exec(this.input),k=this.pos+g[0].length;return!w.test(this.input.slice(this.pos,k))&&this.input.slice(k,k+8)==="function"&&(k+8===this.input.length||!f(this.input.charAt(k+8)))},Ue.parseStatement=function(g,k,N){var H=this.type,Z=this.startNode(),oe;switch(this.isLet(g)&&(H=y._var,oe="let"),H){case y._break:case y._continue:return this.parseBreakContinueStatement(Z,H.keyword);case y._debugger:return this.parseDebuggerStatement(Z);case y._do:return this.parseDoStatement(Z);case y._for:return this.parseForStatement(Z);case y._function:return g&&(this.strict||g!=="if"&&g!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(Z,!1,!g);case y._class:return g&&this.unexpected(),this.parseClass(Z,!0);case y._if:return this.parseIfStatement(Z);case y._return:return this.parseReturnStatement(Z);case y._switch:return this.parseSwitchStatement(Z);case y._throw:return this.parseThrowStatement(Z);case y._try:return this.parseTryStatement(Z);case y._const:case y._var:return oe=oe||this.value,g&&oe!=="var"&&this.unexpected(),this.parseVarStatement(Z,oe);case y._while:return this.parseWhileStatement(Z);case y._with:return this.parseWithStatement(Z);case y.braceL:return this.parseBlock(!0,Z);case y.semi:return this.parseEmptyStatement(Z);case y._export:case y._import:if(this.options.ecmaVersion>10&&H===y._import){q.lastIndex=this.pos;var xe=q.exec(this.input),he=this.pos+xe[0].length,Te=this.input.charCodeAt(he);if(Te===40||Te===46)return this.parseExpressionStatement(Z,this.parseExpression())}return this.options.allowImportExportEverywhere||(k||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),H===y._import?this.parseImport(Z):this.parseExport(Z,N);default:if(this.isAsyncFunction())return g&&this.unexpected(),this.next(),this.parseFunctionStatement(Z,!0,!g);var Le=this.value,De=this.parseExpression();return H===y.name&&De.type==="Identifier"&&this.eat(y.colon)?this.parseLabeledStatement(Z,Le,De,g):this.parseExpressionStatement(Z,De)}},Ue.parseBreakContinueStatement=function(g,k){var N=k==="break";this.next(),this.eat(y.semi)||this.insertSemicolon()?g.label=null:this.type!==y.name?this.unexpected():(g.label=this.parseIdent(),this.semicolon());for(var H=0;H<this.labels.length;++H){var Z=this.labels[H];if((g.label==null||Z.name===g.label.name)&&(Z.kind!=null&&(N||Z.kind==="loop")||g.label&&N))break}return H===this.labels.length&&this.raise(g.start,"Unsyntactic "+k),this.finishNode(g,N?"BreakStatement":"ContinueStatement")},Ue.parseDebuggerStatement=function(g){return this.next(),this.semicolon(),this.finishNode(g,"DebuggerStatement")},Ue.parseDoStatement=function(g){return this.next(),this.labels.push(pt),g.body=this.parseStatement("do"),this.labels.pop(),this.expect(y._while),g.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(y.semi):this.semicolon(),this.finishNode(g,"DoWhileStatement")},Ue.parseForStatement=function(g){this.next();var k=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(pt),this.enterScope(0),this.expect(y.parenL),this.type===y.semi)return k>-1&&this.unexpected(k),this.parseFor(g,null);var N=this.isLet();if(this.type===y._var||this.type===y._const||N){var H=this.startNode(),Z=N?"let":this.value;return this.next(),this.parseVar(H,!0,Z),this.finishNode(H,"VariableDeclaration"),(this.type===y._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&H.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===y._in?k>-1&&this.unexpected(k):g.await=k>-1),this.parseForIn(g,H)):(k>-1&&this.unexpected(k),this.parseFor(g,H))}var oe=new Xe,xe=this.parseExpression(!0,oe);return this.type===y._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===y._in?k>-1&&this.unexpected(k):g.await=k>-1),this.toAssignable(xe,!1,oe),this.checkLVal(xe),this.parseForIn(g,xe)):(this.checkExpressionErrors(oe,!0),k>-1&&this.unexpected(k),this.parseFor(g,xe))},Ue.parseFunctionStatement=function(g,k,N){return this.next(),this.parseFunction(g,We|(N?0:Qt),!1,k)},Ue.parseIfStatement=function(g){return this.next(),g.test=this.parseParenExpression(),g.consequent=this.parseStatement("if"),g.alternate=this.eat(y._else)?this.parseStatement("if"):null,this.finishNode(g,"IfStatement")},Ue.parseReturnStatement=function(g){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(y.semi)||this.insertSemicolon()?g.argument=null:(g.argument=this.parseExpression(),this.semicolon()),this.finishNode(g,"ReturnStatement")},Ue.parseSwitchStatement=function(g){this.next(),g.discriminant=this.parseParenExpression(),g.cases=[],this.expect(y.braceL),this.labels.push(Kt),this.enterScope(0);for(var k,N=!1;this.type!==y.braceR;)if(this.type===y._case||this.type===y._default){var H=this.type===y._case;k&&this.finishNode(k,"SwitchCase"),g.cases.push(k=this.startNode()),k.consequent=[],this.next(),H?k.test=this.parseExpression():(N&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),N=!0,k.test=null),this.expect(y.colon)}else k||this.unexpected(),k.consequent.push(this.parseStatement(null));return this.exitScope(),k&&this.finishNode(k,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(g,"SwitchStatement")},Ue.parseThrowStatement=function(g){return this.next(),w.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),g.argument=this.parseExpression(),this.semicolon(),this.finishNode(g,"ThrowStatement")};var qt=[];Ue.parseTryStatement=function(g){if(this.next(),g.block=this.parseBlock(),g.handler=null,this.type===y._catch){var k=this.startNode();if(this.next(),this.eat(y.parenL)){k.param=this.parseBindingAtom();var N=k.param.type==="Identifier";this.enterScope(N?ue:0),this.checkLVal(k.param,N?Je:se),this.expect(y.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),k.param=null,this.enterScope(0);k.body=this.parseBlock(!1),this.exitScope(),g.handler=this.finishNode(k,"CatchClause")}return g.finalizer=this.eat(y._finally)?this.parseBlock():null,!g.handler&&!g.finalizer&&this.raise(g.start,"Missing catch or finally clause"),this.finishNode(g,"TryStatement")},Ue.parseVarStatement=function(g,k){return this.next(),this.parseVar(g,!1,k),this.semicolon(),this.finishNode(g,"VariableDeclaration")},Ue.parseWhileStatement=function(g){return this.next(),g.test=this.parseParenExpression(),this.labels.push(pt),g.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(g,"WhileStatement")},Ue.parseWithStatement=function(g){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),g.object=this.parseParenExpression(),g.body=this.parseStatement("with"),this.finishNode(g,"WithStatement")},Ue.parseEmptyStatement=function(g){return this.next(),this.finishNode(g,"EmptyStatement")},Ue.parseLabeledStatement=function(g,k,N,H){for(var Z=0,oe=this.labels;Z<oe.length;Z+=1){var xe=oe[Z];xe.name===k&&this.raise(N.start,"Label '"+k+"' is already declared")}for(var he=this.type.isLoop?"loop":this.type===y._switch?"switch":null,Te=this.labels.length-1;Te>=0;Te--){var Le=this.labels[Te];if(Le.statementStart===g.start)Le.statementStart=this.start,Le.kind=he;else break}return this.labels.push({name:k,kind:he,statementStart:this.start}),g.body=this.parseStatement(H?H.indexOf("label")===-1?H+"label":H:"label"),this.labels.pop(),g.label=N,this.finishNode(g,"LabeledStatement")},Ue.parseExpressionStatement=function(g,k){return g.expression=k,this.semicolon(),this.finishNode(g,"ExpressionStatement")},Ue.parseBlock=function(g,k,N){for(g===void 0&&(g=!0),k===void 0&&(k=this.startNode()),k.body=[],this.expect(y.braceL),g&&this.enterScope(0);this.type!==y.braceR;){var H=this.parseStatement(null);k.body.push(H)}return N&&(this.strict=!1),this.next(),g&&this.exitScope(),this.finishNode(k,"BlockStatement")},Ue.parseFor=function(g,k){return g.init=k,this.expect(y.semi),g.test=this.type===y.semi?null:this.parseExpression(),this.expect(y.semi),g.update=this.type===y.parenR?null:this.parseExpression(),this.expect(y.parenR),g.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(g,"ForStatement")},Ue.parseForIn=function(g,k){var N=this.type===y._in;return this.next(),k.type==="VariableDeclaration"&&k.declarations[0].init!=null&&(!N||this.options.ecmaVersion<8||this.strict||k.kind!=="var"||k.declarations[0].id.type!=="Identifier")?this.raise(k.start,(N?"for-in":"for-of")+" loop variable declaration may not have an initializer"):k.type==="AssignmentPattern"&&this.raise(k.start,"Invalid left-hand side in for-loop"),g.left=k,g.right=N?this.parseExpression():this.parseMaybeAssign(),this.expect(y.parenR),g.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(g,N?"ForInStatement":"ForOfStatement")},Ue.parseVar=function(g,k,N){for(g.declarations=[],g.kind=N;;){var H=this.startNode();if(this.parseVarId(H,N),this.eat(y.eq)?H.init=this.parseMaybeAssign(k):N==="const"&&!(this.type===y._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():H.id.type!=="Identifier"&&!(k&&(this.type===y._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):H.init=null,g.declarations.push(this.finishNode(H,"VariableDeclarator")),!this.eat(y.comma))break}return g},Ue.parseVarId=function(g,k){g.id=this.parseBindingAtom(),this.checkLVal(g.id,k==="var"?V:se,!1)};var We=1,Qt=2,Wr=4;Ue.parseFunction=function(g,k,N,H){this.initFunction(g),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!H)&&(this.type===y.star&&k&Qt&&this.unexpected(),g.generator=this.eat(y.star)),this.options.ecmaVersion>=8&&(g.async=!!H),k&We&&(g.id=k&Wr&&this.type!==y.name?null:this.parseIdent(),g.id&&!(k&Qt)&&this.checkLVal(g.id,this.strict||g.generator||g.async?this.treatFunctionsAsVar?V:se:Pe));var Z=this.yieldPos,oe=this.awaitPos,xe=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ce(g.async,g.generator)),k&We||(g.id=this.type===y.name?this.parseIdent():null),this.parseFunctionParams(g),this.parseFunctionBody(g,N,!1),this.yieldPos=Z,this.awaitPos=oe,this.awaitIdentPos=xe,this.finishNode(g,k&We?"FunctionDeclaration":"FunctionExpression")},Ue.parseFunctionParams=function(g){this.expect(y.parenL),g.params=this.parseBindingList(y.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Ue.parseClass=function(g,k){this.next();var N=this.strict;this.strict=!0,this.parseClassId(g,k),this.parseClassSuper(g);var H=this.startNode(),Z=!1;for(H.body=[],this.expect(y.braceL);this.type!==y.braceR;){var oe=this.parseClassElement(g.superClass!==null);oe&&(H.body.push(oe),oe.type==="MethodDefinition"&&oe.kind==="constructor"&&(Z&&this.raise(oe.start,"Duplicate constructor in the same class"),Z=!0))}return this.strict=N,this.next(),g.body=this.finishNode(H,"ClassBody"),this.finishNode(g,k?"ClassDeclaration":"ClassExpression")},Ue.parseClassElement=function(g){var k=this;if(this.eat(y.semi))return null;var N=this.startNode(),H=function(Te,Le){Le===void 0&&(Le=!1);var De=k.start,He=k.startLoc;return k.eatContextual(Te)?k.type!==y.parenL&&(!Le||!k.canInsertSemicolon())?!0:(N.key&&k.unexpected(),N.computed=!1,N.key=k.startNodeAt(De,He),N.key.name=Te,k.finishNode(N.key,"Identifier"),!1):!1};N.kind="method",N.static=H("static");var Z=this.eat(y.star),oe=!1;Z||(this.options.ecmaVersion>=8&&H("async",!0)?(oe=!0,Z=this.options.ecmaVersion>=9&&this.eat(y.star)):H("get")?N.kind="get":H("set")&&(N.kind="set")),N.key||this.parsePropertyName(N);var xe=N.key,he=!1;return!N.computed&&!N.static&&(xe.type==="Identifier"&&xe.name==="constructor"||xe.type==="Literal"&&xe.value==="constructor")?(N.kind!=="method"&&this.raise(xe.start,"Constructor can't have get/set modifier"),Z&&this.raise(xe.start,"Constructor can't be a generator"),oe&&this.raise(xe.start,"Constructor can't be an async method"),N.kind="constructor",he=g):N.static&&xe.type==="Identifier"&&xe.name==="prototype"&&this.raise(xe.start,"Classes may not have a static property named prototype"),this.parseClassMethod(N,Z,oe,he),N.kind==="get"&&N.value.params.length!==0&&this.raiseRecoverable(N.value.start,"getter should have no params"),N.kind==="set"&&N.value.params.length!==1&&this.raiseRecoverable(N.value.start,"setter should have exactly one param"),N.kind==="set"&&N.value.params[0].type==="RestElement"&&this.raiseRecoverable(N.value.params[0].start,"Setter cannot use rest params"),N},Ue.parseClassMethod=function(g,k,N,H){return g.value=this.parseMethod(k,N,H),this.finishNode(g,"MethodDefinition")},Ue.parseClassId=function(g,k){this.type===y.name?(g.id=this.parseIdent(),k&&this.checkLVal(g.id,se,!1)):(k===!0&&this.unexpected(),g.id=null)},Ue.parseClassSuper=function(g){g.superClass=this.eat(y._extends)?this.parseExprSubscripts():null},Ue.parseExport=function(g,k){if(this.next(),this.eat(y.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(g.exported=this.parseIdent(!0),this.checkExport(k,g.exported.name,this.lastTokStart)):g.exported=null),this.expectContextual("from"),this.type!==y.string&&this.unexpected(),g.source=this.parseExprAtom(),this.semicolon(),this.finishNode(g,"ExportAllDeclaration");if(this.eat(y._default)){this.checkExport(k,"default",this.lastTokStart);var N;if(this.type===y._function||(N=this.isAsyncFunction())){var H=this.startNode();this.next(),N&&this.next(),g.declaration=this.parseFunction(H,We|Wr,!1,N)}else if(this.type===y._class){var Z=this.startNode();g.declaration=this.parseClass(Z,"nullableID")}else g.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(g,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())g.declaration=this.parseStatement(null),g.declaration.type==="VariableDeclaration"?this.checkVariableExport(k,g.declaration.declarations):this.checkExport(k,g.declaration.id.name,g.declaration.id.start),g.specifiers=[],g.source=null;else{if(g.declaration=null,g.specifiers=this.parseExportSpecifiers(k),this.eatContextual("from"))this.type!==y.string&&this.unexpected(),g.source=this.parseExprAtom();else{for(var oe=0,xe=g.specifiers;oe<xe.length;oe+=1){var he=xe[oe];this.checkUnreserved(he.local),this.checkLocalExport(he.local)}g.source=null}this.semicolon()}return this.finishNode(g,"ExportNamedDeclaration")},Ue.checkExport=function(g,k,N){!g||($(g,k)&&this.raiseRecoverable(N,"Duplicate export '"+k+"'"),g[k]=!0)},Ue.checkPatternExport=function(g,k){var N=k.type;if(N==="Identifier")this.checkExport(g,k.name,k.start);else if(N==="ObjectPattern")for(var H=0,Z=k.properties;H<Z.length;H+=1){var oe=Z[H];this.checkPatternExport(g,oe)}else if(N==="ArrayPattern")for(var xe=0,he=k.elements;xe<he.length;xe+=1){var Te=he[xe];Te&&this.checkPatternExport(g,Te)}else N==="Property"?this.checkPatternExport(g,k.value):N==="AssignmentPattern"?this.checkPatternExport(g,k.left):N==="RestElement"?this.checkPatternExport(g,k.argument):N==="ParenthesizedExpression"&&this.checkPatternExport(g,k.expression)},Ue.checkVariableExport=function(g,k){if(!!g)for(var N=0,H=k;N<H.length;N+=1){var Z=H[N];this.checkPatternExport(g,Z.id)}},Ue.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},Ue.parseExportSpecifiers=function(g){var k=[],N=!0;for(this.expect(y.braceL);!this.eat(y.braceR);){if(N)N=!1;else if(this.expect(y.comma),this.afterTrailingComma(y.braceR))break;var H=this.startNode();H.local=this.parseIdent(!0),H.exported=this.eatContextual("as")?this.parseIdent(!0):H.local,this.checkExport(g,H.exported.name,H.exported.start),k.push(this.finishNode(H,"ExportSpecifier"))}return k},Ue.parseImport=function(g){return this.next(),this.type===y.string?(g.specifiers=qt,g.source=this.parseExprAtom()):(g.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),g.source=this.type===y.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(g,"ImportDeclaration")},Ue.parseImportSpecifiers=function(){var g=[],k=!0;if(this.type===y.name){var N=this.startNode();if(N.local=this.parseIdent(),this.checkLVal(N.local,se),g.push(this.finishNode(N,"ImportDefaultSpecifier")),!this.eat(y.comma))return g}if(this.type===y.star){var H=this.startNode();return this.next(),this.expectContextual("as"),H.local=this.parseIdent(),this.checkLVal(H.local,se),g.push(this.finishNode(H,"ImportNamespaceSpecifier")),g}for(this.expect(y.braceL);!this.eat(y.braceR);){if(k)k=!1;else if(this.expect(y.comma),this.afterTrailingComma(y.braceR))break;var Z=this.startNode();Z.imported=this.parseIdent(!0),this.eatContextual("as")?Z.local=this.parseIdent():(this.checkUnreserved(Z.imported),Z.local=Z.imported),this.checkLVal(Z.local,se),g.push(this.finishNode(Z,"ImportSpecifier"))}return g},Ue.adaptDirectivePrologue=function(g){for(var k=0;k<g.length&&this.isDirectiveCandidate(g[k]);++k)g[k].directive=g[k].expression.raw.slice(1,-1)},Ue.isDirectiveCandidate=function(g){return g.type==="ExpressionStatement"&&g.expression.type==="Literal"&&typeof g.expression.value=="string"&&(this.input[g.start]==='"'||this.input[g.start]==="'")};var Ot=Ye.prototype;Ot.toAssignable=function(g,k,N){if(this.options.ecmaVersion>=6&&g)switch(g.type){case"Identifier":this.inAsync&&g.name==="await"&&this.raise(g.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":g.type="ObjectPattern",N&&this.checkPatternErrors(N,!0);for(var H=0,Z=g.properties;H<Z.length;H+=1){var oe=Z[H];this.toAssignable(oe,k),oe.type==="RestElement"&&(oe.argument.type==="ArrayPattern"||oe.argument.type==="ObjectPattern")&&this.raise(oe.argument.start,"Unexpected token")}break;case"Property":g.kind!=="init"&&this.raise(g.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(g.value,k);break;case"ArrayExpression":g.type="ArrayPattern",N&&this.checkPatternErrors(N,!0),this.toAssignableList(g.elements,k);break;case"SpreadElement":g.type="RestElement",this.toAssignable(g.argument,k),g.argument.type==="AssignmentPattern"&&this.raise(g.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":g.operator!=="="&&this.raise(g.left.end,"Only '=' operator can be used for specifying default value."),g.type="AssignmentPattern",delete g.operator,this.toAssignable(g.left,k);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(g.expression,k,N);break;case"ChainExpression":this.raiseRecoverable(g.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!k)break;default:this.raise(g.start,"Assigning to rvalue")}else N&&this.checkPatternErrors(N,!0);return g},Ot.toAssignableList=function(g,k){for(var N=g.length,H=0;H<N;H++){var Z=g[H];Z&&this.toAssignable(Z,k)}if(N){var oe=g[N-1];this.options.ecmaVersion===6&&k&&oe&&oe.type==="RestElement"&&oe.argument.type!=="Identifier"&&this.unexpected(oe.argument.start)}return g},Ot.parseSpread=function(g){var k=this.startNode();return this.next(),k.argument=this.parseMaybeAssign(!1,g),this.finishNode(k,"SpreadElement")},Ot.parseRestBinding=function(){var g=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==y.name&&this.unexpected(),g.argument=this.parseBindingAtom(),this.finishNode(g,"RestElement")},Ot.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case y.bracketL:var g=this.startNode();return this.next(),g.elements=this.parseBindingList(y.bracketR,!0,!0),this.finishNode(g,"ArrayPattern");case y.braceL:return this.parseObj(!0)}return this.parseIdent()},Ot.parseBindingList=function(g,k,N){for(var H=[],Z=!0;!this.eat(g);)if(Z?Z=!1:this.expect(y.comma),k&&this.type===y.comma)H.push(null);else{if(N&&this.afterTrailingComma(g))break;if(this.type===y.ellipsis){var oe=this.parseRestBinding();this.parseBindingListItem(oe),H.push(oe),this.type===y.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(g);break}else{var xe=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(xe),H.push(xe)}}return H},Ot.parseBindingListItem=function(g){return g},Ot.parseMaybeDefault=function(g,k,N){if(N=N||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(y.eq))return N;var H=this.startNodeAt(g,k);return H.left=N,H.right=this.parseMaybeAssign(),this.finishNode(H,"AssignmentPattern")},Ot.checkLVal=function(g,k,N){switch(k===void 0&&(k=Ge),g.type){case"Identifier":k===se&&g.name==="let"&&this.raiseRecoverable(g.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(g.name)&&this.raiseRecoverable(g.start,(k?"Binding ":"Assigning to ")+g.name+" in strict mode"),N&&($(N,g.name)&&this.raiseRecoverable(g.start,"Argument name clash"),N[g.name]=!0),k!==Ge&&k!==nt&&this.declareName(g.name,k,g.start);break;case"ChainExpression":this.raiseRecoverable(g.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":k&&this.raiseRecoverable(g.start,"Binding member expression");break;case"ObjectPattern":for(var H=0,Z=g.properties;H<Z.length;H+=1){var oe=Z[H];this.checkLVal(oe,k,N)}break;case"Property":this.checkLVal(g.value,k,N);break;case"ArrayPattern":for(var xe=0,he=g.elements;xe<he.length;xe+=1){var Te=he[xe];Te&&this.checkLVal(Te,k,N)}break;case"AssignmentPattern":this.checkLVal(g.left,k,N);break;case"RestElement":this.checkLVal(g.argument,k,N);break;case"ParenthesizedExpression":this.checkLVal(g.expression,k,N);break;default:this.raise(g.start,(k?"Binding":"Assigning to")+" rvalue")}};var Qe=Ye.prototype;Qe.checkPropClash=function(g,k,N){if(!(this.options.ecmaVersion>=9&&g.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(g.computed||g.method||g.shorthand))){var H=g.key,Z;switch(H.type){case"Identifier":Z=H.name;break;case"Literal":Z=String(H.value);break;default:return}var oe=g.kind;if(this.options.ecmaVersion>=6){Z==="__proto__"&&oe==="init"&&(k.proto&&(N?N.doubleProto<0&&(N.doubleProto=H.start):this.raiseRecoverable(H.start,"Redefinition of __proto__ property")),k.proto=!0);return}Z="$"+Z;var xe=k[Z];if(xe){var he;oe==="init"?he=this.strict&&xe.init||xe.get||xe.set:he=xe.init||xe[oe],he&&this.raiseRecoverable(H.start,"Redefinition of property")}else xe=k[Z]={init:!1,get:!1,set:!1};xe[oe]=!0}},Qe.parseExpression=function(g,k){var N=this.start,H=this.startLoc,Z=this.parseMaybeAssign(g,k);if(this.type===y.comma){var oe=this.startNodeAt(N,H);for(oe.expressions=[Z];this.eat(y.comma);)oe.expressions.push(this.parseMaybeAssign(g,k));return this.finishNode(oe,"SequenceExpression")}return Z},Qe.parseMaybeAssign=function(g,k,N){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(g);this.exprAllowed=!1}var H=!1,Z=-1,oe=-1;k?(Z=k.parenthesizedAssign,oe=k.trailingComma,k.parenthesizedAssign=k.trailingComma=-1):(k=new Xe,H=!0);var xe=this.start,he=this.startLoc;(this.type===y.parenL||this.type===y.name)&&(this.potentialArrowAt=this.start);var Te=this.parseMaybeConditional(g,k);if(N&&(Te=N.call(this,Te,xe,he)),this.type.isAssign){var Le=this.startNodeAt(xe,he);return Le.operator=this.value,Le.left=this.type===y.eq?this.toAssignable(Te,!1,k):Te,H||(k.parenthesizedAssign=k.trailingComma=k.doubleProto=-1),k.shorthandAssign>=Le.left.start&&(k.shorthandAssign=-1),this.checkLVal(Te),this.next(),Le.right=this.parseMaybeAssign(g),this.finishNode(Le,"AssignmentExpression")}else H&&this.checkExpressionErrors(k,!0);return Z>-1&&(k.parenthesizedAssign=Z),oe>-1&&(k.trailingComma=oe),Te},Qe.parseMaybeConditional=function(g,k){var N=this.start,H=this.startLoc,Z=this.parseExprOps(g,k);if(this.checkExpressionErrors(k))return Z;if(this.eat(y.question)){var oe=this.startNodeAt(N,H);return oe.test=Z,oe.consequent=this.parseMaybeAssign(),this.expect(y.colon),oe.alternate=this.parseMaybeAssign(g),this.finishNode(oe,"ConditionalExpression")}return Z},Qe.parseExprOps=function(g,k){var N=this.start,H=this.startLoc,Z=this.parseMaybeUnary(k,!1);return this.checkExpressionErrors(k)||Z.start===N&&Z.type==="ArrowFunctionExpression"?Z:this.parseExprOp(Z,N,H,-1,g)},Qe.parseExprOp=function(g,k,N,H,Z){var oe=this.type.binop;if(oe!=null&&(!Z||this.type!==y._in)&&oe>H){var xe=this.type===y.logicalOR||this.type===y.logicalAND,he=this.type===y.coalesce;he&&(oe=y.logicalAND.binop);var Te=this.value;this.next();var Le=this.start,De=this.startLoc,He=this.parseExprOp(this.parseMaybeUnary(null,!1),Le,De,oe,Z),ct=this.buildBinary(k,N,g,He,Te,xe||he);return(xe&&this.type===y.coalesce||he&&(this.type===y.logicalOR||this.type===y.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(ct,k,N,H,Z)}return g},Qe.buildBinary=function(g,k,N,H,Z,oe){var xe=this.startNodeAt(g,k);return xe.left=N,xe.operator=Z,xe.right=H,this.finishNode(xe,oe?"LogicalExpression":"BinaryExpression")},Qe.parseMaybeUnary=function(g,k){var N=this.start,H=this.startLoc,Z;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))Z=this.parseAwait(),k=!0;else if(this.type.prefix){var oe=this.startNode(),xe=this.type===y.incDec;oe.operator=this.value,oe.prefix=!0,this.next(),oe.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(g,!0),xe?this.checkLVal(oe.argument):this.strict&&oe.operator==="delete"&&oe.argument.type==="Identifier"?this.raiseRecoverable(oe.start,"Deleting local variable in strict mode"):k=!0,Z=this.finishNode(oe,xe?"UpdateExpression":"UnaryExpression")}else{if(Z=this.parseExprSubscripts(g),this.checkExpressionErrors(g))return Z;for(;this.type.postfix&&!this.canInsertSemicolon();){var he=this.startNodeAt(N,H);he.operator=this.value,he.prefix=!1,he.argument=Z,this.checkLVal(Z),this.next(),Z=this.finishNode(he,"UpdateExpression")}}return!k&&this.eat(y.starstar)?this.buildBinary(N,H,Z,this.parseMaybeUnary(null,!1),"**",!1):Z},Qe.parseExprSubscripts=function(g){var k=this.start,N=this.startLoc,H=this.parseExprAtom(g);if(H.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return H;var Z=this.parseSubscripts(H,k,N);return g&&Z.type==="MemberExpression"&&(g.parenthesizedAssign>=Z.start&&(g.parenthesizedAssign=-1),g.parenthesizedBind>=Z.start&&(g.parenthesizedBind=-1)),Z},Qe.parseSubscripts=function(g,k,N,H){for(var Z=this.options.ecmaVersion>=8&&g.type==="Identifier"&&g.name==="async"&&this.lastTokEnd===g.end&&!this.canInsertSemicolon()&&g.end-g.start==5&&this.potentialArrowAt===g.start,oe=!1;;){var xe=this.parseSubscript(g,k,N,H,Z,oe);if(xe.optional&&(oe=!0),xe===g||xe.type==="ArrowFunctionExpression"){if(oe){var he=this.startNodeAt(k,N);he.expression=xe,xe=this.finishNode(he,"ChainExpression")}return xe}g=xe}},Qe.parseSubscript=function(g,k,N,H,Z,oe){var xe=this.options.ecmaVersion>=11,he=xe&&this.eat(y.questionDot);H&&he&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var Te=this.eat(y.bracketL);if(Te||he&&this.type!==y.parenL&&this.type!==y.backQuote||this.eat(y.dot)){var Le=this.startNodeAt(k,N);Le.object=g,Le.property=Te?this.parseExpression():this.parseIdent(this.options.allowReserved!=="never"),Le.computed=!!Te,Te&&this.expect(y.bracketR),xe&&(Le.optional=he),g=this.finishNode(Le,"MemberExpression")}else if(!H&&this.eat(y.parenL)){var De=new Xe,He=this.yieldPos,ct=this.awaitPos,St=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var d=this.parseExprList(y.parenR,this.options.ecmaVersion>=8,!1,De);if(Z&&!he&&!this.canInsertSemicolon()&&this.eat(y.arrow))return this.checkPatternErrors(De,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=He,this.awaitPos=ct,this.awaitIdentPos=St,this.parseArrowExpression(this.startNodeAt(k,N),d,!0);this.checkExpressionErrors(De,!0),this.yieldPos=He||this.yieldPos,this.awaitPos=ct||this.awaitPos,this.awaitIdentPos=St||this.awaitIdentPos;var A=this.startNodeAt(k,N);A.callee=g,A.arguments=d,xe&&(A.optional=he),g=this.finishNode(A,"CallExpression")}else if(this.type===y.backQuote){(he||oe)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var O=this.startNodeAt(k,N);O.tag=g,O.quasi=this.parseTemplate({isTagged:!0}),g=this.finishNode(O,"TaggedTemplateExpression")}return g},Qe.parseExprAtom=function(g){this.type===y.slash&&this.readRegexp();var k,N=this.potentialArrowAt===this.start;switch(this.type){case y._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),k=this.startNode(),this.next(),this.type===y.parenL&&!this.allowDirectSuper&&this.raise(k.start,"super() call outside constructor of a subclass"),this.type!==y.dot&&this.type!==y.bracketL&&this.type!==y.parenL&&this.unexpected(),this.finishNode(k,"Super");case y._this:return k=this.startNode(),this.next(),this.finishNode(k,"ThisExpression");case y.name:var H=this.start,Z=this.startLoc,oe=this.containsEsc,xe=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!oe&&xe.name==="async"&&!this.canInsertSemicolon()&&this.eat(y._function))return this.parseFunction(this.startNodeAt(H,Z),0,!1,!0);if(N&&!this.canInsertSemicolon()){if(this.eat(y.arrow))return this.parseArrowExpression(this.startNodeAt(H,Z),[xe],!1);if(this.options.ecmaVersion>=8&&xe.name==="async"&&this.type===y.name&&!oe)return xe=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(y.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(H,Z),[xe],!0)}return xe;case y.regexp:var he=this.value;return k=this.parseLiteral(he.value),k.regex={pattern:he.pattern,flags:he.flags},k;case y.num:case y.string:return this.parseLiteral(this.value);case y._null:case y._true:case y._false:return k=this.startNode(),k.value=this.type===y._null?null:this.type===y._true,k.raw=this.type.keyword,this.next(),this.finishNode(k,"Literal");case y.parenL:var Te=this.start,Le=this.parseParenAndDistinguishExpression(N);return g&&(g.parenthesizedAssign<0&&!this.isSimpleAssignTarget(Le)&&(g.parenthesizedAssign=Te),g.parenthesizedBind<0&&(g.parenthesizedBind=Te)),Le;case y.bracketL:return k=this.startNode(),this.next(),k.elements=this.parseExprList(y.bracketR,!0,!0,g),this.finishNode(k,"ArrayExpression");case y.braceL:return this.parseObj(!1,g);case y._function:return k=this.startNode(),this.next(),this.parseFunction(k,0);case y._class:return this.parseClass(this.startNode(),!1);case y._new:return this.parseNew();case y.backQuote:return this.parseTemplate();case y._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},Qe.parseExprImport=function(){var g=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var k=this.parseIdent(!0);switch(this.type){case y.parenL:return this.parseDynamicImport(g);case y.dot:return g.meta=k,this.parseImportMeta(g);default:this.unexpected()}},Qe.parseDynamicImport=function(g){if(this.next(),g.source=this.parseMaybeAssign(),!this.eat(y.parenR)){var k=this.start;this.eat(y.comma)&&this.eat(y.parenR)?this.raiseRecoverable(k,"Trailing comma is not allowed in import()"):this.unexpected(k)}return this.finishNode(g,"ImportExpression")},Qe.parseImportMeta=function(g){this.next();var k=this.containsEsc;return g.property=this.parseIdent(!0),g.property.name!=="meta"&&this.raiseRecoverable(g.property.start,"The only valid meta property for import is 'import.meta'"),k&&this.raiseRecoverable(g.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&this.raiseRecoverable(g.start,"Cannot use 'import.meta' outside a module"),this.finishNode(g,"MetaProperty")},Qe.parseLiteral=function(g){var k=this.startNode();return k.value=g,k.raw=this.input.slice(this.start,this.end),k.raw.charCodeAt(k.raw.length-1)===110&&(k.bigint=k.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(k,"Literal")},Qe.parseParenExpression=function(){this.expect(y.parenL);var g=this.parseExpression();return this.expect(y.parenR),g},Qe.parseParenAndDistinguishExpression=function(g){var k=this.start,N=this.startLoc,H,Z=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var oe=this.start,xe=this.startLoc,he=[],Te=!0,Le=!1,De=new Xe,He=this.yieldPos,ct=this.awaitPos,St;for(this.yieldPos=0,this.awaitPos=0;this.type!==y.parenR;)if(Te?Te=!1:this.expect(y.comma),Z&&this.afterTrailingComma(y.parenR,!0)){Le=!0;break}else if(this.type===y.ellipsis){St=this.start,he.push(this.parseParenItem(this.parseRestBinding())),this.type===y.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else he.push(this.parseMaybeAssign(!1,De,this.parseParenItem));var d=this.start,A=this.startLoc;if(this.expect(y.parenR),g&&!this.canInsertSemicolon()&&this.eat(y.arrow))return this.checkPatternErrors(De,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=He,this.awaitPos=ct,this.parseParenArrowList(k,N,he);(!he.length||Le)&&this.unexpected(this.lastTokStart),St&&this.unexpected(St),this.checkExpressionErrors(De,!0),this.yieldPos=He||this.yieldPos,this.awaitPos=ct||this.awaitPos,he.length>1?(H=this.startNodeAt(oe,xe),H.expressions=he,this.finishNodeAt(H,"SequenceExpression",d,A)):H=he[0]}else H=this.parseParenExpression();if(this.options.preserveParens){var O=this.startNodeAt(k,N);return O.expression=H,this.finishNode(O,"ParenthesizedExpression")}else return H},Qe.parseParenItem=function(g){return g},Qe.parseParenArrowList=function(g,k,N){return this.parseArrowExpression(this.startNodeAt(g,k),N)};var _r=[];Qe.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var g=this.startNode(),k=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(y.dot)){g.meta=k;var N=this.containsEsc;return g.property=this.parseIdent(!0),g.property.name!=="target"&&this.raiseRecoverable(g.property.start,"The only valid meta property for new is 'new.target'"),N&&this.raiseRecoverable(g.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(g.start,"'new.target' can only be used in functions"),this.finishNode(g,"MetaProperty")}var H=this.start,Z=this.startLoc,oe=this.type===y._import;return g.callee=this.parseSubscripts(this.parseExprAtom(),H,Z,!0),oe&&g.callee.type==="ImportExpression"&&this.raise(H,"Cannot use new with import()"),this.eat(y.parenL)?g.arguments=this.parseExprList(y.parenR,this.options.ecmaVersion>=8,!1):g.arguments=_r,this.finishNode(g,"NewExpression")},Qe.parseTemplateElement=function(g){var k=g.isTagged,N=this.startNode();return this.type===y.invalidTemplate?(k||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),N.value={raw:this.value,cooked:null}):N.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
19
|
+
`),cooked:this.value},this.next(),N.tail=this.type===y.backQuote,this.finishNode(N,"TemplateElement")},Qe.parseTemplate=function(g){g===void 0&&(g={});var k=g.isTagged;k===void 0&&(k=!1);var N=this.startNode();this.next(),N.expressions=[];var H=this.parseTemplateElement({isTagged:k});for(N.quasis=[H];!H.tail;)this.type===y.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(y.dollarBraceL),N.expressions.push(this.parseExpression()),this.expect(y.braceR),N.quasis.push(H=this.parseTemplateElement({isTagged:k}));return this.next(),this.finishNode(N,"TemplateLiteral")},Qe.isAsyncProp=function(g){return!g.computed&&g.key.type==="Identifier"&&g.key.name==="async"&&(this.type===y.name||this.type===y.num||this.type===y.string||this.type===y.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===y.star)&&!w.test(this.input.slice(this.lastTokEnd,this.start))},Qe.parseObj=function(g,k){var N=this.startNode(),H=!0,Z={};for(N.properties=[],this.next();!this.eat(y.braceR);){if(H)H=!1;else if(this.expect(y.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(y.braceR))break;var oe=this.parseProperty(g,k);g||this.checkPropClash(oe,Z,k),N.properties.push(oe)}return this.finishNode(N,g?"ObjectPattern":"ObjectExpression")},Qe.parseProperty=function(g,k){var N=this.startNode(),H,Z,oe,xe;if(this.options.ecmaVersion>=9&&this.eat(y.ellipsis))return g?(N.argument=this.parseIdent(!1),this.type===y.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(N,"RestElement")):(this.type===y.parenL&&k&&(k.parenthesizedAssign<0&&(k.parenthesizedAssign=this.start),k.parenthesizedBind<0&&(k.parenthesizedBind=this.start)),N.argument=this.parseMaybeAssign(!1,k),this.type===y.comma&&k&&k.trailingComma<0&&(k.trailingComma=this.start),this.finishNode(N,"SpreadElement"));this.options.ecmaVersion>=6&&(N.method=!1,N.shorthand=!1,(g||k)&&(oe=this.start,xe=this.startLoc),g||(H=this.eat(y.star)));var he=this.containsEsc;return this.parsePropertyName(N),!g&&!he&&this.options.ecmaVersion>=8&&!H&&this.isAsyncProp(N)?(Z=!0,H=this.options.ecmaVersion>=9&&this.eat(y.star),this.parsePropertyName(N,k)):Z=!1,this.parsePropertyValue(N,g,H,Z,oe,xe,k,he),this.finishNode(N,"Property")},Qe.parsePropertyValue=function(g,k,N,H,Z,oe,xe,he){if((N||H)&&this.type===y.colon&&this.unexpected(),this.eat(y.colon))g.value=k?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,xe),g.kind="init";else if(this.options.ecmaVersion>=6&&this.type===y.parenL)k&&this.unexpected(),g.kind="init",g.method=!0,g.value=this.parseMethod(N,H);else if(!k&&!he&&this.options.ecmaVersion>=5&&!g.computed&&g.key.type==="Identifier"&&(g.key.name==="get"||g.key.name==="set")&&this.type!==y.comma&&this.type!==y.braceR&&this.type!==y.eq){(N||H)&&this.unexpected(),g.kind=g.key.name,this.parsePropertyName(g),g.value=this.parseMethod(!1);var Te=g.kind==="get"?0:1;if(g.value.params.length!==Te){var Le=g.value.start;g.kind==="get"?this.raiseRecoverable(Le,"getter should have no params"):this.raiseRecoverable(Le,"setter should have exactly one param")}else g.kind==="set"&&g.value.params[0].type==="RestElement"&&this.raiseRecoverable(g.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!g.computed&&g.key.type==="Identifier"?((N||H)&&this.unexpected(),this.checkUnreserved(g.key),g.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=Z),g.kind="init",k?g.value=this.parseMaybeDefault(Z,oe,g.key):this.type===y.eq&&xe?(xe.shorthandAssign<0&&(xe.shorthandAssign=this.start),g.value=this.parseMaybeDefault(Z,oe,g.key)):g.value=g.key,g.shorthand=!0):this.unexpected()},Qe.parsePropertyName=function(g){if(this.options.ecmaVersion>=6){if(this.eat(y.bracketL))return g.computed=!0,g.key=this.parseMaybeAssign(),this.expect(y.bracketR),g.key;g.computed=!1}return g.key=this.type===y.num||this.type===y.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},Qe.initFunction=function(g){g.id=null,this.options.ecmaVersion>=6&&(g.generator=g.expression=!1),this.options.ecmaVersion>=8&&(g.async=!1)},Qe.parseMethod=function(g,k,N){var H=this.startNode(),Z=this.yieldPos,oe=this.awaitPos,xe=this.awaitIdentPos;return this.initFunction(H),this.options.ecmaVersion>=6&&(H.generator=g),this.options.ecmaVersion>=8&&(H.async=!!k),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ce(k,H.generator)|re|(N?fe:0)),this.expect(y.parenL),H.params=this.parseBindingList(y.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(H,!1,!0),this.yieldPos=Z,this.awaitPos=oe,this.awaitIdentPos=xe,this.finishNode(H,"FunctionExpression")},Qe.parseArrowExpression=function(g,k,N){var H=this.yieldPos,Z=this.awaitPos,oe=this.awaitIdentPos;return this.enterScope(Ce(N,!1)|ne),this.initFunction(g),this.options.ecmaVersion>=8&&(g.async=!!N),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,g.params=this.toAssignableList(k,!0),this.parseFunctionBody(g,!0,!1),this.yieldPos=H,this.awaitPos=Z,this.awaitIdentPos=oe,this.finishNode(g,"ArrowFunctionExpression")},Qe.parseFunctionBody=function(g,k,N){var H=k&&this.type!==y.braceL,Z=this.strict,oe=!1;if(H)g.body=this.parseMaybeAssign(),g.expression=!0,this.checkParams(g,!1);else{var xe=this.options.ecmaVersion>=7&&!this.isSimpleParamList(g.params);(!Z||xe)&&(oe=this.strictDirective(this.end),oe&&xe&&this.raiseRecoverable(g.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var he=this.labels;this.labels=[],oe&&(this.strict=!0),this.checkParams(g,!Z&&!oe&&!k&&!N&&this.isSimpleParamList(g.params)),this.strict&&g.id&&this.checkLVal(g.id,nt),g.body=this.parseBlock(!1,void 0,oe&&!Z),g.expression=!1,this.adaptDirectivePrologue(g.body.body),this.labels=he}this.exitScope()},Qe.isSimpleParamList=function(g){for(var k=0,N=g;k<N.length;k+=1){var H=N[k];if(H.type!=="Identifier")return!1}return!0},Qe.checkParams=function(g,k){for(var N={},H=0,Z=g.params;H<Z.length;H+=1){var oe=Z[H];this.checkLVal(oe,V,k?null:N)}},Qe.parseExprList=function(g,k,N,H){for(var Z=[],oe=!0;!this.eat(g);){if(oe)oe=!1;else if(this.expect(y.comma),k&&this.afterTrailingComma(g))break;var xe=void 0;N&&this.type===y.comma?xe=null:this.type===y.ellipsis?(xe=this.parseSpread(H),H&&this.type===y.comma&&H.trailingComma<0&&(H.trailingComma=this.start)):xe=this.parseMaybeAssign(!1,H),Z.push(xe)}return Z},Qe.checkUnreserved=function(g){var k=g.start,N=g.end,H=g.name;if(this.inGenerator&&H==="yield"&&this.raiseRecoverable(k,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&H==="await"&&this.raiseRecoverable(k,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(H)&&this.raise(k,"Unexpected keyword '"+H+"'"),!(this.options.ecmaVersion<6&&this.input.slice(k,N).indexOf("\\")!==-1)){var Z=this.strict?this.reservedWordsStrict:this.reservedWords;Z.test(H)&&(!this.inAsync&&H==="await"&&this.raiseRecoverable(k,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(k,"The keyword '"+H+"' is reserved"))}},Qe.parseIdent=function(g,k){var N=this.startNode();return this.type===y.name?N.name=this.value:this.type.keyword?(N.name=this.type.keyword,(N.name==="class"||N.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!g),this.finishNode(N,"Identifier"),g||(this.checkUnreserved(N),N.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=N.start)),N},Qe.parseYield=function(g){this.yieldPos||(this.yieldPos=this.start);var k=this.startNode();return this.next(),this.type===y.semi||this.canInsertSemicolon()||this.type!==y.star&&!this.type.startsExpr?(k.delegate=!1,k.argument=null):(k.delegate=this.eat(y.star),k.argument=this.parseMaybeAssign(g)),this.finishNode(k,"YieldExpression")},Qe.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var g=this.startNode();return this.next(),g.argument=this.parseMaybeUnary(null,!1),this.finishNode(g,"AwaitExpression")};var br=Ye.prototype;br.raise=function(g,k){var N=K(this.input,g);k+=" ("+N.line+":"+N.column+")";var H=new SyntaxError(k);throw H.pos=g,H.loc=N,H.raisedAt=this.pos,H},br.raiseRecoverable=br.raise,br.curPosition=function(){if(this.options.locations)return new Q(this.curLine,this.pos-this.lineStart)};var tr=Ye.prototype,vr=function(k){this.flags=k,this.var=[],this.lexical=[],this.functions=[]};tr.enterScope=function(g){this.scopeStack.push(new vr(g))},tr.exitScope=function(){this.scopeStack.pop()},tr.treatFunctionsAsVarInScope=function(g){return g.flags&me||!this.inModule&&g.flags&Ae},tr.declareName=function(g,k,N){var H=!1;if(k===se){var Z=this.currentScope();H=Z.lexical.indexOf(g)>-1||Z.functions.indexOf(g)>-1||Z.var.indexOf(g)>-1,Z.lexical.push(g),this.inModule&&Z.flags&Ae&&delete this.undefinedExports[g]}else if(k===Je){var oe=this.currentScope();oe.lexical.push(g)}else if(k===Pe){var xe=this.currentScope();this.treatFunctionsAsVar?H=xe.lexical.indexOf(g)>-1:H=xe.lexical.indexOf(g)>-1||xe.var.indexOf(g)>-1,xe.functions.push(g)}else for(var he=this.scopeStack.length-1;he>=0;--he){var Te=this.scopeStack[he];if(Te.lexical.indexOf(g)>-1&&!(Te.flags&ue&&Te.lexical[0]===g)||!this.treatFunctionsAsVarInScope(Te)&&Te.functions.indexOf(g)>-1){H=!0;break}if(Te.var.push(g),this.inModule&&Te.flags&Ae&&delete this.undefinedExports[g],Te.flags&ce)break}H&&this.raiseRecoverable(N,"Identifier '"+g+"' has already been declared")},tr.checkLocalExport=function(g){this.scopeStack[0].lexical.indexOf(g.name)===-1&&this.scopeStack[0].var.indexOf(g.name)===-1&&(this.undefinedExports[g.name]=g)},tr.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},tr.currentVarScope=function(){for(var g=this.scopeStack.length-1;;g--){var k=this.scopeStack[g];if(k.flags&ce)return k}},tr.currentThisScope=function(){for(var g=this.scopeStack.length-1;;g--){var k=this.scopeStack[g];if(k.flags&ce&&!(k.flags&ne))return k}};var Et=function(k,N,H){this.type="",this.start=N,this.end=0,k.options.locations&&(this.loc=new B(k,H)),k.options.directSourceFile&&(this.sourceFile=k.options.directSourceFile),k.options.ranges&&(this.range=[N,0])},Rt=Ye.prototype;Rt.startNode=function(){return new Et(this,this.start,this.startLoc)},Rt.startNodeAt=function(g,k){return new Et(this,g,k)};function gt(g,k,N,H){return g.type=k,g.end=N,this.options.locations&&(g.loc.end=H),this.options.ranges&&(g.range[1]=N),g}Rt.finishNode=function(g,k){return gt.call(this,g,k,this.lastTokEnd,this.lastTokEndLoc)},Rt.finishNodeAt=function(g,k,N,H){return gt.call(this,g,k,N,H)};var It=function(k,N,H,Z,oe){this.token=k,this.isExpr=!!N,this.preserveSpace=!!H,this.override=Z,this.generator=!!oe},ze={b_stat:new It("{",!1),b_expr:new It("{",!0),b_tmpl:new It("${",!1),p_stat:new It("(",!1),p_expr:new It("(",!0),q_tmpl:new It("`",!0,!0,function(g){return g.tryReadTemplateToken()}),f_stat:new It("function",!1),f_expr:new It("function",!0),f_expr_gen:new It("function",!0,!1,null,!0),f_gen:new It("function",!1,!1,null,!0)},Br=Ye.prototype;Br.initialContext=function(){return[ze.b_stat]},Br.braceIsBlock=function(g){var k=this.curContext();return k===ze.f_expr||k===ze.f_stat?!0:g===y.colon&&(k===ze.b_stat||k===ze.b_expr)?!k.isExpr:g===y._return||g===y.name&&this.exprAllowed?w.test(this.input.slice(this.lastTokEnd,this.start)):g===y._else||g===y.semi||g===y.eof||g===y.parenR||g===y.arrow?!0:g===y.braceL?k===ze.b_stat:g===y._var||g===y._const||g===y.name?!1:!this.exprAllowed},Br.inGeneratorContext=function(){for(var g=this.context.length-1;g>=1;g--){var k=this.context[g];if(k.token==="function")return k.generator}return!1},Br.updateContext=function(g){var k,N=this.type;N.keyword&&g===y.dot?this.exprAllowed=!1:(k=N.updateContext)?k.call(this,g):this.exprAllowed=N.beforeExpr},y.parenR.updateContext=y.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var g=this.context.pop();g===ze.b_stat&&this.curContext().token==="function"&&(g=this.context.pop()),this.exprAllowed=!g.isExpr},y.braceL.updateContext=function(g){this.context.push(this.braceIsBlock(g)?ze.b_stat:ze.b_expr),this.exprAllowed=!0},y.dollarBraceL.updateContext=function(){this.context.push(ze.b_tmpl),this.exprAllowed=!0},y.parenL.updateContext=function(g){var k=g===y._if||g===y._for||g===y._with||g===y._while;this.context.push(k?ze.p_stat:ze.p_expr),this.exprAllowed=!0},y.incDec.updateContext=function(){},y._function.updateContext=y._class.updateContext=function(g){g.beforeExpr&&g!==y.semi&&g!==y._else&&!(g===y._return&&w.test(this.input.slice(this.lastTokEnd,this.start)))&&!((g===y.colon||g===y.braceL)&&this.curContext()===ze.b_stat)?this.context.push(ze.f_expr):this.context.push(ze.f_stat),this.exprAllowed=!1},y.backQuote.updateContext=function(){this.curContext()===ze.q_tmpl?this.context.pop():this.context.push(ze.q_tmpl),this.exprAllowed=!1},y.star.updateContext=function(g){if(g===y._function){var k=this.context.length-1;this.context[k]===ze.f_expr?this.context[k]=ze.f_expr_gen:this.context[k]=ze.f_gen}this.exprAllowed=!0},y.name.updateContext=function(g){var k=!1;this.options.ecmaVersion>=6&&g!==y.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(k=!0),this.exprAllowed=k};var Cs="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Xt=Cs+" Extended_Pictographic",ar=Xt,Ss={9:Cs,10:Xt,11:ar},Cr="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",or="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Gr=or+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",j=Gr+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Sr={9:or,10:Gr,11:j},Vt={};function hr(g){var k=Vt[g]={binary:U(Ss[g]+" "+Cr),nonBinary:{General_Category:U(Cr),Script:U(Sr[g])}};k.nonBinary.Script_Extensions=k.nonBinary.Script,k.nonBinary.gc=k.nonBinary.General_Category,k.nonBinary.sc=k.nonBinary.Script,k.nonBinary.scx=k.nonBinary.Script_Extensions}hr(9),hr(10),hr(11);var Y=Ye.prototype,J=function(k){this.parser=k,this.validFlags="gim"+(k.options.ecmaVersion>=6?"uy":"")+(k.options.ecmaVersion>=9?"s":""),this.unicodeProperties=Vt[k.options.ecmaVersion>=11?11:k.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};J.prototype.reset=function(k,N,H){var Z=H.indexOf("u")!==-1;this.start=k|0,this.source=N+"",this.flags=H,this.switchU=Z&&this.parser.options.ecmaVersion>=6,this.switchN=Z&&this.parser.options.ecmaVersion>=9},J.prototype.raise=function(k){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+k)},J.prototype.at=function(k,N){N===void 0&&(N=!1);var H=this.source,Z=H.length;if(k>=Z)return-1;var oe=H.charCodeAt(k);if(!(N||this.switchU)||oe<=55295||oe>=57344||k+1>=Z)return oe;var xe=H.charCodeAt(k+1);return xe>=56320&&xe<=57343?(oe<<10)+xe-56613888:oe},J.prototype.nextIndex=function(k,N){N===void 0&&(N=!1);var H=this.source,Z=H.length;if(k>=Z)return Z;var oe=H.charCodeAt(k),xe;return!(N||this.switchU)||oe<=55295||oe>=57344||k+1>=Z||(xe=H.charCodeAt(k+1))<56320||xe>57343?k+1:k+2},J.prototype.current=function(k){return k===void 0&&(k=!1),this.at(this.pos,k)},J.prototype.lookahead=function(k){return k===void 0&&(k=!1),this.at(this.nextIndex(this.pos,k),k)},J.prototype.advance=function(k){k===void 0&&(k=!1),this.pos=this.nextIndex(this.pos,k)},J.prototype.eat=function(k,N){return N===void 0&&(N=!1),this.current(N)===k?(this.advance(N),!0):!1};function ae(g){return g<=65535?String.fromCharCode(g):(g-=65536,String.fromCharCode((g>>10)+55296,(g&1023)+56320))}Y.validateRegExpFlags=function(g){for(var k=g.validFlags,N=g.flags,H=0;H<N.length;H++){var Z=N.charAt(H);k.indexOf(Z)===-1&&this.raise(g.start,"Invalid regular expression flag"),N.indexOf(Z,H+1)>-1&&this.raise(g.start,"Duplicate regular expression flag")}},Y.validateRegExpPattern=function(g){this.regexp_pattern(g),!g.switchN&&this.options.ecmaVersion>=9&&g.groupNames.length>0&&(g.switchN=!0,this.regexp_pattern(g))},Y.regexp_pattern=function(g){g.pos=0,g.lastIntValue=0,g.lastStringValue="",g.lastAssertionIsQuantifiable=!1,g.numCapturingParens=0,g.maxBackReference=0,g.groupNames.length=0,g.backReferenceNames.length=0,this.regexp_disjunction(g),g.pos!==g.source.length&&(g.eat(41)&&g.raise("Unmatched ')'"),(g.eat(93)||g.eat(125))&&g.raise("Lone quantifier brackets")),g.maxBackReference>g.numCapturingParens&&g.raise("Invalid escape");for(var k=0,N=g.backReferenceNames;k<N.length;k+=1){var H=N[k];g.groupNames.indexOf(H)===-1&&g.raise("Invalid named capture referenced")}},Y.regexp_disjunction=function(g){for(this.regexp_alternative(g);g.eat(124);)this.regexp_alternative(g);this.regexp_eatQuantifier(g,!0)&&g.raise("Nothing to repeat"),g.eat(123)&&g.raise("Lone quantifier brackets")},Y.regexp_alternative=function(g){for(;g.pos<g.source.length&&this.regexp_eatTerm(g););},Y.regexp_eatTerm=function(g){return this.regexp_eatAssertion(g)?(g.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(g)&&g.switchU&&g.raise("Invalid quantifier"),!0):(g.switchU?this.regexp_eatAtom(g):this.regexp_eatExtendedAtom(g))?(this.regexp_eatQuantifier(g),!0):!1},Y.regexp_eatAssertion=function(g){var k=g.pos;if(g.lastAssertionIsQuantifiable=!1,g.eat(94)||g.eat(36))return!0;if(g.eat(92)){if(g.eat(66)||g.eat(98))return!0;g.pos=k}if(g.eat(40)&&g.eat(63)){var N=!1;if(this.options.ecmaVersion>=9&&(N=g.eat(60)),g.eat(61)||g.eat(33))return this.regexp_disjunction(g),g.eat(41)||g.raise("Unterminated group"),g.lastAssertionIsQuantifiable=!N,!0}return g.pos=k,!1},Y.regexp_eatQuantifier=function(g,k){return k===void 0&&(k=!1),this.regexp_eatQuantifierPrefix(g,k)?(g.eat(63),!0):!1},Y.regexp_eatQuantifierPrefix=function(g,k){return g.eat(42)||g.eat(43)||g.eat(63)||this.regexp_eatBracedQuantifier(g,k)},Y.regexp_eatBracedQuantifier=function(g,k){var N=g.pos;if(g.eat(123)){var H=0,Z=-1;if(this.regexp_eatDecimalDigits(g)&&(H=g.lastIntValue,g.eat(44)&&this.regexp_eatDecimalDigits(g)&&(Z=g.lastIntValue),g.eat(125)))return Z!==-1&&Z<H&&!k&&g.raise("numbers out of order in {} quantifier"),!0;g.switchU&&!k&&g.raise("Incomplete quantifier"),g.pos=N}return!1},Y.regexp_eatAtom=function(g){return this.regexp_eatPatternCharacters(g)||g.eat(46)||this.regexp_eatReverseSolidusAtomEscape(g)||this.regexp_eatCharacterClass(g)||this.regexp_eatUncapturingGroup(g)||this.regexp_eatCapturingGroup(g)},Y.regexp_eatReverseSolidusAtomEscape=function(g){var k=g.pos;if(g.eat(92)){if(this.regexp_eatAtomEscape(g))return!0;g.pos=k}return!1},Y.regexp_eatUncapturingGroup=function(g){var k=g.pos;if(g.eat(40)){if(g.eat(63)&&g.eat(58)){if(this.regexp_disjunction(g),g.eat(41))return!0;g.raise("Unterminated group")}g.pos=k}return!1},Y.regexp_eatCapturingGroup=function(g){if(g.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(g):g.current()===63&&g.raise("Invalid group"),this.regexp_disjunction(g),g.eat(41))return g.numCapturingParens+=1,!0;g.raise("Unterminated group")}return!1},Y.regexp_eatExtendedAtom=function(g){return g.eat(46)||this.regexp_eatReverseSolidusAtomEscape(g)||this.regexp_eatCharacterClass(g)||this.regexp_eatUncapturingGroup(g)||this.regexp_eatCapturingGroup(g)||this.regexp_eatInvalidBracedQuantifier(g)||this.regexp_eatExtendedPatternCharacter(g)},Y.regexp_eatInvalidBracedQuantifier=function(g){return this.regexp_eatBracedQuantifier(g,!0)&&g.raise("Nothing to repeat"),!1},Y.regexp_eatSyntaxCharacter=function(g){var k=g.current();return ye(k)?(g.lastIntValue=k,g.advance(),!0):!1};function ye(g){return g===36||g>=40&&g<=43||g===46||g===63||g>=91&&g<=94||g>=123&&g<=125}Y.regexp_eatPatternCharacters=function(g){for(var k=g.pos,N=0;(N=g.current())!==-1&&!ye(N);)g.advance();return g.pos!==k},Y.regexp_eatExtendedPatternCharacter=function(g){var k=g.current();return k!==-1&&k!==36&&!(k>=40&&k<=43)&&k!==46&&k!==63&&k!==91&&k!==94&&k!==124?(g.advance(),!0):!1},Y.regexp_groupSpecifier=function(g){if(g.eat(63)){if(this.regexp_eatGroupName(g)){g.groupNames.indexOf(g.lastStringValue)!==-1&&g.raise("Duplicate capture group name"),g.groupNames.push(g.lastStringValue);return}g.raise("Invalid group")}},Y.regexp_eatGroupName=function(g){if(g.lastStringValue="",g.eat(60)){if(this.regexp_eatRegExpIdentifierName(g)&&g.eat(62))return!0;g.raise("Invalid capture group name")}return!1},Y.regexp_eatRegExpIdentifierName=function(g){if(g.lastStringValue="",this.regexp_eatRegExpIdentifierStart(g)){for(g.lastStringValue+=ae(g.lastIntValue);this.regexp_eatRegExpIdentifierPart(g);)g.lastStringValue+=ae(g.lastIntValue);return!0}return!1},Y.regexp_eatRegExpIdentifierStart=function(g){var k=g.pos,N=this.options.ecmaVersion>=11,H=g.current(N);return g.advance(N),H===92&&this.regexp_eatRegExpUnicodeEscapeSequence(g,N)&&(H=g.lastIntValue),be(H)?(g.lastIntValue=H,!0):(g.pos=k,!1)};function be(g){return h(g,!0)||g===36||g===95}Y.regexp_eatRegExpIdentifierPart=function(g){var k=g.pos,N=this.options.ecmaVersion>=11,H=g.current(N);return g.advance(N),H===92&&this.regexp_eatRegExpUnicodeEscapeSequence(g,N)&&(H=g.lastIntValue),ge(H)?(g.lastIntValue=H,!0):(g.pos=k,!1)};function ge(g){return f(g,!0)||g===36||g===95||g===8204||g===8205}Y.regexp_eatAtomEscape=function(g){return this.regexp_eatBackReference(g)||this.regexp_eatCharacterClassEscape(g)||this.regexp_eatCharacterEscape(g)||g.switchN&&this.regexp_eatKGroupName(g)?!0:(g.switchU&&(g.current()===99&&g.raise("Invalid unicode escape"),g.raise("Invalid escape")),!1)},Y.regexp_eatBackReference=function(g){var k=g.pos;if(this.regexp_eatDecimalEscape(g)){var N=g.lastIntValue;if(g.switchU)return N>g.maxBackReference&&(g.maxBackReference=N),!0;if(N<=g.numCapturingParens)return!0;g.pos=k}return!1},Y.regexp_eatKGroupName=function(g){if(g.eat(107)){if(this.regexp_eatGroupName(g))return g.backReferenceNames.push(g.lastStringValue),!0;g.raise("Invalid named reference")}return!1},Y.regexp_eatCharacterEscape=function(g){return this.regexp_eatControlEscape(g)||this.regexp_eatCControlLetter(g)||this.regexp_eatZero(g)||this.regexp_eatHexEscapeSequence(g)||this.regexp_eatRegExpUnicodeEscapeSequence(g,!1)||!g.switchU&&this.regexp_eatLegacyOctalEscapeSequence(g)||this.regexp_eatIdentityEscape(g)},Y.regexp_eatCControlLetter=function(g){var k=g.pos;if(g.eat(99)){if(this.regexp_eatControlLetter(g))return!0;g.pos=k}return!1},Y.regexp_eatZero=function(g){return g.current()===48&&!ht(g.lookahead())?(g.lastIntValue=0,g.advance(),!0):!1},Y.regexp_eatControlEscape=function(g){var k=g.current();return k===116?(g.lastIntValue=9,g.advance(),!0):k===110?(g.lastIntValue=10,g.advance(),!0):k===118?(g.lastIntValue=11,g.advance(),!0):k===102?(g.lastIntValue=12,g.advance(),!0):k===114?(g.lastIntValue=13,g.advance(),!0):!1},Y.regexp_eatControlLetter=function(g){var k=g.current();return Ze(k)?(g.lastIntValue=k%32,g.advance(),!0):!1};function Ze(g){return g>=65&&g<=90||g>=97&&g<=122}Y.regexp_eatRegExpUnicodeEscapeSequence=function(g,k){k===void 0&&(k=!1);var N=g.pos,H=k||g.switchU;if(g.eat(117)){if(this.regexp_eatFixedHexDigits(g,4)){var Z=g.lastIntValue;if(H&&Z>=55296&&Z<=56319){var oe=g.pos;if(g.eat(92)&&g.eat(117)&&this.regexp_eatFixedHexDigits(g,4)){var xe=g.lastIntValue;if(xe>=56320&&xe<=57343)return g.lastIntValue=(Z-55296)*1024+(xe-56320)+65536,!0}g.pos=oe,g.lastIntValue=Z}return!0}if(H&&g.eat(123)&&this.regexp_eatHexDigits(g)&&g.eat(125)&&$e(g.lastIntValue))return!0;H&&g.raise("Invalid unicode escape"),g.pos=N}return!1};function $e(g){return g>=0&&g<=1114111}Y.regexp_eatIdentityEscape=function(g){if(g.switchU)return this.regexp_eatSyntaxCharacter(g)?!0:g.eat(47)?(g.lastIntValue=47,!0):!1;var k=g.current();return k!==99&&(!g.switchN||k!==107)?(g.lastIntValue=k,g.advance(),!0):!1},Y.regexp_eatDecimalEscape=function(g){g.lastIntValue=0;var k=g.current();if(k>=49&&k<=57){do g.lastIntValue=10*g.lastIntValue+(k-48),g.advance();while((k=g.current())>=48&&k<=57);return!0}return!1},Y.regexp_eatCharacterClassEscape=function(g){var k=g.current();if(rt(k))return g.lastIntValue=-1,g.advance(),!0;if(g.switchU&&this.options.ecmaVersion>=9&&(k===80||k===112)){if(g.lastIntValue=-1,g.advance(),g.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(g)&&g.eat(125))return!0;g.raise("Invalid property name")}return!1};function rt(g){return g===100||g===68||g===115||g===83||g===119||g===87}Y.regexp_eatUnicodePropertyValueExpression=function(g){var k=g.pos;if(this.regexp_eatUnicodePropertyName(g)&&g.eat(61)){var N=g.lastStringValue;if(this.regexp_eatUnicodePropertyValue(g)){var H=g.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(g,N,H),!0}}if(g.pos=k,this.regexp_eatLoneUnicodePropertyNameOrValue(g)){var Z=g.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(g,Z),!0}return!1},Y.regexp_validateUnicodePropertyNameAndValue=function(g,k,N){$(g.unicodeProperties.nonBinary,k)||g.raise("Invalid property name"),g.unicodeProperties.nonBinary[k].test(N)||g.raise("Invalid property value")},Y.regexp_validateUnicodePropertyNameOrValue=function(g,k){g.unicodeProperties.binary.test(k)||g.raise("Invalid property name")},Y.regexp_eatUnicodePropertyName=function(g){var k=0;for(g.lastStringValue="";bt(k=g.current());)g.lastStringValue+=ae(k),g.advance();return g.lastStringValue!==""};function bt(g){return Ze(g)||g===95}Y.regexp_eatUnicodePropertyValue=function(g){var k=0;for(g.lastStringValue="";st(k=g.current());)g.lastStringValue+=ae(k),g.advance();return g.lastStringValue!==""};function st(g){return bt(g)||ht(g)}Y.regexp_eatLoneUnicodePropertyNameOrValue=function(g){return this.regexp_eatUnicodePropertyValue(g)},Y.regexp_eatCharacterClass=function(g){if(g.eat(91)){if(g.eat(94),this.regexp_classRanges(g),g.eat(93))return!0;g.raise("Unterminated character class")}return!1},Y.regexp_classRanges=function(g){for(;this.regexp_eatClassAtom(g);){var k=g.lastIntValue;if(g.eat(45)&&this.regexp_eatClassAtom(g)){var N=g.lastIntValue;g.switchU&&(k===-1||N===-1)&&g.raise("Invalid character class"),k!==-1&&N!==-1&&k>N&&g.raise("Range out of order in character class")}}},Y.regexp_eatClassAtom=function(g){var k=g.pos;if(g.eat(92)){if(this.regexp_eatClassEscape(g))return!0;if(g.switchU){var N=g.current();(N===99||Re(N))&&g.raise("Invalid class escape"),g.raise("Invalid escape")}g.pos=k}var H=g.current();return H!==93?(g.lastIntValue=H,g.advance(),!0):!1},Y.regexp_eatClassEscape=function(g){var k=g.pos;if(g.eat(98))return g.lastIntValue=8,!0;if(g.switchU&&g.eat(45))return g.lastIntValue=45,!0;if(!g.switchU&&g.eat(99)){if(this.regexp_eatClassControlLetter(g))return!0;g.pos=k}return this.regexp_eatCharacterClassEscape(g)||this.regexp_eatCharacterEscape(g)},Y.regexp_eatClassControlLetter=function(g){var k=g.current();return ht(k)||k===95?(g.lastIntValue=k%32,g.advance(),!0):!1},Y.regexp_eatHexEscapeSequence=function(g){var k=g.pos;if(g.eat(120)){if(this.regexp_eatFixedHexDigits(g,2))return!0;g.switchU&&g.raise("Invalid escape"),g.pos=k}return!1},Y.regexp_eatDecimalDigits=function(g){var k=g.pos,N=0;for(g.lastIntValue=0;ht(N=g.current());)g.lastIntValue=10*g.lastIntValue+(N-48),g.advance();return g.pos!==k};function ht(g){return g>=48&&g<=57}Y.regexp_eatHexDigits=function(g){var k=g.pos,N=0;for(g.lastIntValue=0;xt(N=g.current());)g.lastIntValue=16*g.lastIntValue+yt(N),g.advance();return g.pos!==k};function xt(g){return g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102}function yt(g){return g>=65&&g<=70?10+(g-65):g>=97&&g<=102?10+(g-97):g-48}Y.regexp_eatLegacyOctalEscapeSequence=function(g){if(this.regexp_eatOctalDigit(g)){var k=g.lastIntValue;if(this.regexp_eatOctalDigit(g)){var N=g.lastIntValue;k<=3&&this.regexp_eatOctalDigit(g)?g.lastIntValue=k*64+N*8+g.lastIntValue:g.lastIntValue=k*8+N}else g.lastIntValue=k;return!0}return!1},Y.regexp_eatOctalDigit=function(g){var k=g.current();return Re(k)?(g.lastIntValue=k-48,g.advance(),!0):(g.lastIntValue=0,!1)};function Re(g){return g>=48&&g<=55}Y.regexp_eatFixedHexDigits=function(g,k){var N=g.pos;g.lastIntValue=0;for(var H=0;H<k;++H){var Z=g.current();if(!xt(Z))return g.pos=N,!1;g.lastIntValue=16*g.lastIntValue+yt(Z),g.advance()}return!0};var at=function(k){this.type=k.type,this.value=k.value,this.start=k.start,this.end=k.end,k.options.locations&&(this.loc=new B(k,k.startLoc,k.endLoc)),k.options.ranges&&(this.range=[k.start,k.end])},Ve=Ye.prototype;Ve.next=function(g){!g&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new at(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Ve.getToken=function(){return this.next(),new at(this)},typeof Symbol!="undefined"&&(Ve[Symbol.iterator]=function(){var g=this;return{next:function(){var k=g.getToken();return{done:k.type===y.eof,value:k}}}}),Ve.curContext=function(){return this.context[this.context.length-1]},Ve.nextToken=function(){var g=this.curContext();if((!g||!g.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(y.eof);if(g.override)return g.override(this);this.readToken(this.fullCharCodeAtPos())},Ve.readToken=function(g){return h(g,this.options.ecmaVersion>=6)||g===92?this.readWord():this.getTokenFromCode(g)},Ve.fullCharCodeAtPos=function(){var g=this.input.charCodeAt(this.pos);if(g<=55295||g>=57344)return g;var k=this.input.charCodeAt(this.pos+1);return(g<<10)+k-56613888},Ve.skipBlockComment=function(){var g=this.options.onComment&&this.curPosition(),k=this.pos,N=this.input.indexOf("*/",this.pos+=2);if(N===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=N+2,this.options.locations){D.lastIndex=k;for(var H;(H=D.exec(this.input))&&H.index<this.pos;)++this.curLine,this.lineStart=H.index+H[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(k+2,N),k,this.pos,g,this.curPosition())},Ve.skipLineComment=function(g){for(var k=this.pos,N=this.options.onComment&&this.curPosition(),H=this.input.charCodeAt(this.pos+=g);this.pos<this.input.length&&!R(H);)H=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(k+g,this.pos),k,this.pos,N,this.curPosition())},Ve.skipSpace=function(){e:for(;this.pos<this.input.length;){var g=this.input.charCodeAt(this.pos);switch(g){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(g>8&&g<14||g>=5760&&z.test(String.fromCharCode(g)))++this.pos;else break e}}},Ve.finishToken=function(g,k){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var N=this.type;this.type=g,this.value=k,this.updateContext(N)},Ve.readToken_dot=function(){var g=this.input.charCodeAt(this.pos+1);if(g>=48&&g<=57)return this.readNumber(!0);var k=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&g===46&&k===46?(this.pos+=3,this.finishToken(y.ellipsis)):(++this.pos,this.finishToken(y.dot))},Ve.readToken_slash=function(){var g=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):g===61?this.finishOp(y.assign,2):this.finishOp(y.slash,1)},Ve.readToken_mult_modulo_exp=function(g){var k=this.input.charCodeAt(this.pos+1),N=1,H=g===42?y.star:y.modulo;return this.options.ecmaVersion>=7&&g===42&&k===42&&(++N,H=y.starstar,k=this.input.charCodeAt(this.pos+2)),k===61?this.finishOp(y.assign,N+1):this.finishOp(H,N)},Ve.readToken_pipe_amp=function(g){var k=this.input.charCodeAt(this.pos+1);if(k===g){if(this.options.ecmaVersion>=12){var N=this.input.charCodeAt(this.pos+2);if(N===61)return this.finishOp(y.assign,3)}return this.finishOp(g===124?y.logicalOR:y.logicalAND,2)}return k===61?this.finishOp(y.assign,2):this.finishOp(g===124?y.bitwiseOR:y.bitwiseAND,1)},Ve.readToken_caret=function(){var g=this.input.charCodeAt(this.pos+1);return g===61?this.finishOp(y.assign,2):this.finishOp(y.bitwiseXOR,1)},Ve.readToken_plus_min=function(g){var k=this.input.charCodeAt(this.pos+1);return k===g?k===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||w.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(y.incDec,2):k===61?this.finishOp(y.assign,2):this.finishOp(y.plusMin,1)},Ve.readToken_lt_gt=function(g){var k=this.input.charCodeAt(this.pos+1),N=1;return k===g?(N=g===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+N)===61?this.finishOp(y.assign,N+1):this.finishOp(y.bitShift,N)):k===33&&g===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(k===61&&(N=2),this.finishOp(y.relational,N))},Ve.readToken_eq_excl=function(g){var k=this.input.charCodeAt(this.pos+1);return k===61?this.finishOp(y.equality,this.input.charCodeAt(this.pos+2)===61?3:2):g===61&&k===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(y.arrow)):this.finishOp(g===61?y.eq:y.prefix,1)},Ve.readToken_question=function(){var g=this.options.ecmaVersion;if(g>=11){var k=this.input.charCodeAt(this.pos+1);if(k===46){var N=this.input.charCodeAt(this.pos+2);if(N<48||N>57)return this.finishOp(y.questionDot,2)}if(k===63){if(g>=12){var H=this.input.charCodeAt(this.pos+2);if(H===61)return this.finishOp(y.assign,3)}return this.finishOp(y.coalesce,2)}}return this.finishOp(y.question,1)},Ve.getTokenFromCode=function(g){switch(g){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(y.parenL);case 41:return++this.pos,this.finishToken(y.parenR);case 59:return++this.pos,this.finishToken(y.semi);case 44:return++this.pos,this.finishToken(y.comma);case 91:return++this.pos,this.finishToken(y.bracketL);case 93:return++this.pos,this.finishToken(y.bracketR);case 123:return++this.pos,this.finishToken(y.braceL);case 125:return++this.pos,this.finishToken(y.braceR);case 58:return++this.pos,this.finishToken(y.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(y.backQuote);case 48:var k=this.input.charCodeAt(this.pos+1);if(k===120||k===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(k===111||k===79)return this.readRadixNumber(8);if(k===98||k===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(g);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(g);case 124:case 38:return this.readToken_pipe_amp(g);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(g);case 60:case 62:return this.readToken_lt_gt(g);case 61:case 33:return this.readToken_eq_excl(g);case 63:return this.readToken_question();case 126:return this.finishOp(y.prefix,1)}this.raise(this.pos,"Unexpected character '"+Ne(g)+"'")},Ve.finishOp=function(g,k){var N=this.input.slice(this.pos,this.pos+k);return this.pos+=k,this.finishToken(g,N)},Ve.readRegexp=function(){for(var g,k,N=this.pos;;){this.pos>=this.input.length&&this.raise(N,"Unterminated regular expression");var H=this.input.charAt(this.pos);if(w.test(H)&&this.raise(N,"Unterminated regular expression"),g)g=!1;else{if(H==="[")k=!0;else if(H==="]"&&k)k=!1;else if(H==="/"&&!k)break;g=H==="\\"}++this.pos}var Z=this.input.slice(N,this.pos);++this.pos;var oe=this.pos,xe=this.readWord1();this.containsEsc&&this.unexpected(oe);var he=this.regexpState||(this.regexpState=new J(this));he.reset(N,Z,xe),this.validateRegExpFlags(he),this.validateRegExpPattern(he);var Te=null;try{Te=new RegExp(Z,xe)}catch(Le){}return this.finishToken(y.regexp,{pattern:Z,flags:xe,value:Te})},Ve.readInt=function(g,k,N){for(var H=this.options.ecmaVersion>=12&&k===void 0,Z=N&&this.input.charCodeAt(this.pos)===48,oe=this.pos,xe=0,he=0,Te=0,Le=k??Infinity;Te<Le;++Te,++this.pos){var De=this.input.charCodeAt(this.pos),He=void 0;if(H&&De===95){Z&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),he===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),Te===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),he=De;continue}if(De>=97?He=De-97+10:De>=65?He=De-65+10:De>=48&&De<=57?He=De-48:He=Infinity,He>=g)break;he=De,xe=xe*g+He}return H&&he===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===oe||k!=null&&this.pos-oe!==k?null:xe};function Se(g,k){return k?parseInt(g,8):parseFloat(g.replace(/_/g,""))}function Oe(g){return typeof BigInt!="function"?null:BigInt(g.replace(/_/g,""))}Ve.readRadixNumber=function(g){var k=this.pos;this.pos+=2;var N=this.readInt(g);return N==null&&this.raise(this.start+2,"Expected number in radix "+g),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(N=Oe(this.input.slice(k,this.pos)),++this.pos):h(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(y.num,N)},Ve.readNumber=function(g){var k=this.pos;!g&&this.readInt(10,void 0,!0)===null&&this.raise(k,"Invalid number");var N=this.pos-k>=2&&this.input.charCodeAt(k)===48;N&&this.strict&&this.raise(k,"Invalid number");var H=this.input.charCodeAt(this.pos);if(!N&&!g&&this.options.ecmaVersion>=11&&H===110){var Z=Oe(this.input.slice(k,this.pos));return++this.pos,h(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(y.num,Z)}N&&/[89]/.test(this.input.slice(k,this.pos))&&(N=!1),H===46&&!N&&(++this.pos,this.readInt(10),H=this.input.charCodeAt(this.pos)),(H===69||H===101)&&!N&&(H=this.input.charCodeAt(++this.pos),(H===43||H===45)&&++this.pos,this.readInt(10)===null&&this.raise(k,"Invalid number")),h(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var oe=Se(this.input.slice(k,this.pos),N);return this.finishToken(y.num,oe)},Ve.readCodePoint=function(){var g=this.input.charCodeAt(this.pos),k;if(g===123){this.options.ecmaVersion<6&&this.unexpected();var N=++this.pos;k=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,k>1114111&&this.invalidStringToken(N,"Code point out of bounds")}else k=this.readHexChar(4);return k};function Ne(g){return g<=65535?String.fromCharCode(g):(g-=65536,String.fromCharCode((g>>10)+55296,(g&1023)+56320))}Ve.readString=function(g){for(var k="",N=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var H=this.input.charCodeAt(this.pos);if(H===g)break;H===92?(k+=this.input.slice(N,this.pos),k+=this.readEscapedChar(!1),N=this.pos):(R(H,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return k+=this.input.slice(N,this.pos++),this.finishToken(y.string,k)};var le={};Ve.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(g){if(g===le)this.readInvalidTemplateToken();else throw g}this.inTemplateElement=!1},Ve.invalidStringToken=function(g,k){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw le;this.raise(g,k)},Ve.readTmplToken=function(){for(var g="",k=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var N=this.input.charCodeAt(this.pos);if(N===96||N===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===y.template||this.type===y.invalidTemplate)?N===36?(this.pos+=2,this.finishToken(y.dollarBraceL)):(++this.pos,this.finishToken(y.backQuote)):(g+=this.input.slice(k,this.pos),this.finishToken(y.template,g));if(N===92)g+=this.input.slice(k,this.pos),g+=this.readEscapedChar(!0),k=this.pos;else if(R(N)){switch(g+=this.input.slice(k,this.pos),++this.pos,N){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:g+=`
|
|
20
|
+
`;break;default:g+=String.fromCharCode(N);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),k=this.pos}else++this.pos}},Ve.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(y.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},Ve.readEscapedChar=function(g){var k=this.input.charCodeAt(++this.pos);switch(++this.pos,k){case 110:return`
|
|
21
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Ne(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(g){var N=this.pos-1;return this.invalidStringToken(N,"Invalid escape sequence in template string"),null}default:if(k>=48&&k<=55){var H=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],Z=parseInt(H,8);return Z>255&&(H=H.slice(0,-1),Z=parseInt(H,8)),this.pos+=H.length-1,k=this.input.charCodeAt(this.pos),(H!=="0"||k===56||k===57)&&(this.strict||g)&&this.invalidStringToken(this.pos-1-H.length,g?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(Z)}return R(k)?"":String.fromCharCode(k)}},Ve.readHexChar=function(g){var k=this.pos,N=this.readInt(16,g);return N===null&&this.invalidStringToken(k,"Bad character escape sequence"),N},Ve.readWord1=function(){this.containsEsc=!1;for(var g="",k=!0,N=this.pos,H=this.options.ecmaVersion>=6;this.pos<this.input.length;){var Z=this.fullCharCodeAtPos();if(f(Z,H))this.pos+=Z<=65535?1:2;else if(Z===92){this.containsEsc=!0,g+=this.input.slice(N,this.pos);var oe=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var xe=this.readCodePoint();(k?h:f)(xe,H)||this.invalidStringToken(oe,"Invalid Unicode escape"),g+=Ne(xe),N=this.pos}else break;k=!1}return g+this.input.slice(N,this.pos)},Ve.readWord=function(){var g=this.readWord1(),k=y.name;return this.keywords.test(g)&&(k=T[g]),this.finishToken(k,g)};var ke="7.4.1";Ye.acorn={Parser:Ye,version:ke,defaultOptions:X,Position:Q,SourceLocation:B,getLineInfo:K,Node:Et,TokenType:m,tokTypes:y,keywordTypes:T,TokContext:It,tokContexts:ze,isIdentifierChar:f,isIdentifierStart:h,Token:at,isNewLine:R,lineBreak:w,lineBreakG:D,nonASCIIwhitespace:z};function _e(g,k){return Ye.parse(g,k)}function Me(g,k,N){return Ye.parseExpressionAt(g,k,N)}function Ke(g,k){return Ye.tokenizer(g,k)}t.Node=Et,t.Parser=Ye,t.Position=Q,t.SourceLocation=B,t.TokContext=It,t.Token=at,t.TokenType=m,t.defaultOptions=X,t.getLineInfo=K,t.isIdentifierChar=f,t.isIdentifierStart=h,t.isNewLine=R,t.keywordTypes=T,t.lineBreak=w,t.lineBreakG=D,t.nonASCIIwhitespace=z,t.parse=_e,t.parseExpressionAt=Me,t.tokContexts=ze,t.tokTypes=y,t.tokenizer=Ke,t.version=ke,Object.defineProperty(t,"__esModule",{value:!0})})});var Td=M((MQ,ic)=>{b();v();"use strict";var F8=Ad(),P8=/^[\da-fA-F]+$/,I8=/^\d+$/,kd=new WeakMap;function Dd(t){t=t.Parser.acorn||t;let e=kd.get(t);if(!e){let r=t.tokTypes,n=t.TokContext,s=t.TokenType,i=new n("<tag",!1),a=new n("</tag",!1),o=new n("<tag>...</tag>",!0,!0),l={tc_oTag:i,tc_cTag:a,tc_expr:o},u={jsxName:new s("jsxName"),jsxText:new s("jsxText",{beforeExpr:!0}),jsxTagStart:new s("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new s("jsxTagEnd")};u.jsxTagStart.updateContext=function(){this.context.push(o),this.context.push(i),this.exprAllowed=!1},u.jsxTagEnd.updateContext=function(c){let p=this.context.pop();p===i&&c===r.slash||p===a?(this.context.pop(),this.exprAllowed=this.curContext()===o):this.exprAllowed=!0},e={tokContexts:l,tokTypes:u},kd.set(t,e)}return e}function qi(t){if(!t)return t;if(t.type==="JSXIdentifier")return t.name;if(t.type==="JSXNamespacedName")return t.namespace.name+":"+t.name.name;if(t.type==="JSXMemberExpression")return qi(t.object)+"."+qi(t.property)}ic.exports=function(t){return t=t||{},function(e){return _8({allowNamespaces:t.allowNamespaces!==!1,allowNamespacedObjects:!!t.allowNamespacedObjects},e)}};Object.defineProperty(ic.exports,"tokTypes",{get:function(){return Dd(nc()).tokTypes},configurable:!0,enumerable:!0});function _8(t,e){let r=e.acorn||nc(),n=Dd(r),s=r.tokTypes,i=n.tokTypes,a=r.tokContexts,o=n.tokContexts.tc_oTag,l=n.tokContexts.tc_cTag,u=n.tokContexts.tc_expr,c=r.isNewLine,p=r.isIdentifierStart,h=r.isIdentifierChar;return class extends e{static get acornJsx(){return n}jsx_readToken(){let f="",m=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let x=this.input.charCodeAt(this.pos);switch(x){case 60:case 123:return this.pos===this.start?x===60&&this.exprAllowed?(++this.pos,this.finishToken(i.jsxTagStart)):this.getTokenFromCode(x):(f+=this.input.slice(m,this.pos),this.finishToken(i.jsxText,f));case 38:f+=this.input.slice(m,this.pos),f+=this.jsx_readEntity(),m=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(x===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:c(x)?(f+=this.input.slice(m,this.pos),f+=this.jsx_readNewLine(!0),m=this.pos):++this.pos}}}jsx_readNewLine(f){let m=this.input.charCodeAt(this.pos),x;return++this.pos,m===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,x=f?`
|
|
22
|
+
`:`\r
|
|
23
|
+
`):x=String.fromCharCode(m),this.options.locations&&(++this.curLine,this.lineStart=this.pos),x}jsx_readString(f){let m="",x=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let E=this.input.charCodeAt(this.pos);if(E===f)break;E===38?(m+=this.input.slice(x,this.pos),m+=this.jsx_readEntity(),x=this.pos):c(E)?(m+=this.input.slice(x,this.pos),m+=this.jsx_readNewLine(!1),x=this.pos):++this.pos}return m+=this.input.slice(x,this.pos++),this.finishToken(s.string,m)}jsx_readEntity(){let f="",m=0,x,E=this.input[this.pos];E!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let S=++this.pos;for(;this.pos<this.input.length&&m++<10;){if(E=this.input[this.pos++],E===";"){f[0]==="#"?f[1]==="x"?(f=f.substr(2),P8.test(f)&&(x=String.fromCharCode(parseInt(f,16)))):(f=f.substr(1),I8.test(f)&&(x=String.fromCharCode(parseInt(f,10)))):x=F8[f];break}f+=E}return x||(this.pos=S,"&")}jsx_readWord(){let f,m=this.pos;do f=this.input.charCodeAt(++this.pos);while(h(f)||f===45);return this.finishToken(i.jsxName,this.input.slice(m,this.pos))}jsx_parseIdentifier(){let f=this.startNode();return this.type===i.jsxName?f.name=this.value:this.type.keyword?f.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(f,"JSXIdentifier")}jsx_parseNamespacedName(){let f=this.start,m=this.startLoc,x=this.jsx_parseIdentifier();if(!t.allowNamespaces||!this.eat(s.colon))return x;var E=this.startNodeAt(f,m);return E.namespace=x,E.name=this.jsx_parseIdentifier(),this.finishNode(E,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===i.jsxTagEnd)return"";let f=this.start,m=this.startLoc,x=this.jsx_parseNamespacedName();for(this.type===s.dot&&x.type==="JSXNamespacedName"&&!t.allowNamespacedObjects&&this.unexpected();this.eat(s.dot);){let E=this.startNodeAt(f,m);E.object=x,E.property=this.jsx_parseIdentifier(),x=this.finishNode(E,"JSXMemberExpression")}return x}jsx_parseAttributeValue(){switch(this.type){case s.braceL:let f=this.jsx_parseExpressionContainer();return f.expression.type==="JSXEmptyExpression"&&this.raise(f.start,"JSX attributes must only be assigned a non-empty expression"),f;case i.jsxTagStart:case s.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let f=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(f,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let f=this.startNode();return this.next(),f.expression=this.type===s.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(s.braceR),this.finishNode(f,"JSXExpressionContainer")}jsx_parseAttribute(){let f=this.startNode();return this.eat(s.braceL)?(this.expect(s.ellipsis),f.argument=this.parseMaybeAssign(),this.expect(s.braceR),this.finishNode(f,"JSXSpreadAttribute")):(f.name=this.jsx_parseNamespacedName(),f.value=this.eat(s.eq)?this.jsx_parseAttributeValue():null,this.finishNode(f,"JSXAttribute"))}jsx_parseOpeningElementAt(f,m){let x=this.startNodeAt(f,m);x.attributes=[];let E=this.jsx_parseElementName();for(E&&(x.name=E);this.type!==s.slash&&this.type!==i.jsxTagEnd;)x.attributes.push(this.jsx_parseAttribute());return x.selfClosing=this.eat(s.slash),this.expect(i.jsxTagEnd),this.finishNode(x,E?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(f,m){let x=this.startNodeAt(f,m),E=this.jsx_parseElementName();return E&&(x.name=E),this.expect(i.jsxTagEnd),this.finishNode(x,E?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(f,m){let x=this.startNodeAt(f,m),E=[],S=this.jsx_parseOpeningElementAt(f,m),T=null;if(!S.selfClosing){e:for(;;)switch(this.type){case i.jsxTagStart:if(f=this.start,m=this.startLoc,this.next(),this.eat(s.slash)){T=this.jsx_parseClosingElementAt(f,m);break e}E.push(this.jsx_parseElementAt(f,m));break;case i.jsxText:E.push(this.parseExprAtom());break;case s.braceL:E.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}qi(T.name)!==qi(S.name)&&this.raise(T.start,"Expected corresponding JSX closing tag for <"+qi(S.name)+">")}let I=S.name?"Element":"Fragment";return x["opening"+I]=S,x["closing"+I]=T,x.children=E,this.type===s.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(x,"JSX"+I)}jsx_parseText(){let f=this.parseLiteral(this.value);return f.type="JSXText",f}jsx_parseElement(){let f=this.start,m=this.startLoc;return this.next(),this.jsx_parseElementAt(f,m)}parseExprAtom(f){return this.type===i.jsxText?this.jsx_parseText():this.type===i.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(f)}readToken(f){let m=this.curContext();if(m===u)return this.jsx_readToken();if(m===o||m===l){if(p(f))return this.jsx_readWord();if(f==62)return++this.pos,this.finishToken(i.jsxTagEnd);if((f===34||f===39)&&m==o)return this.jsx_readString(f)}return f===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(i.jsxTagStart)):super.readToken(f)}updateContext(f){if(this.type==s.braceL){var m=this.curContext();m==o?this.context.push(a.b_expr):m==u?this.context.push(a.b_tmpl):super.updateContext(f),this.exprAllowed=!0}else if(this.type===s.slash&&f===i.jsxTagStart)this.context.length-=2,this.context.push(l),this.exprAllowed=!1;else return super.updateContext(f)}}}});var Fd=M(Vi=>{b();v();"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});var Ui={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["exported","source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportExpression:["source"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXClosingFragment:[],JSXOpeningFragment:[],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},B8=Object.keys(Ui);for(let t of B8)Object.freeze(Ui[t]);Object.freeze(Ui);var O8=new Set(["parent","leadingComments","trailingComments"]);function R8(t){return!O8.has(t)&&t[0]!=="_"}function L8(t){return Object.keys(t).filter(R8)}function N8(t){let e=Object.assign({},Ui);for(let r of Object.keys(t))if(Object.prototype.hasOwnProperty.call(e,r)){let n=new Set(t[r]);for(let s of e[r])n.add(s);e[r]=Object.freeze(Array.from(n))}else e[r]=Object.freeze(Array.from(t[r]));return Object.freeze(e)}Vi.KEYS=Ui;Vi.getKeys=L8;Vi.unionWith=N8});var $i=M(ps=>{b();v();"use strict";Object.defineProperty(ps,"__esModule",{value:!0});var M8=Cd(),j8=Td(),q8=Fd();function V8(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}function Pd(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}),e.default=t,Object.freeze(e)}var Id=Pd(M8),U8=V8(j8),$8=Pd(q8),nr={Boolean:"Boolean",EOF:"<end>",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function W8(t,e){let r=t[0],n=t[t.length-1],s={type:nr.Template,value:e.slice(r.start,n.end)};return r.loc&&(s.loc={start:r.loc.start,end:n.loc.end}),r.range&&(s.start=r.range[0],s.end=n.range[1],s.range=[s.start,s.end]),s}function ac(t,e){this._acornTokTypes=t,this._tokens=[],this._curlyBrace=null,this._code=e}ac.prototype={constructor:ac,translate(t,e){let r=t.type,n=this._acornTokTypes;if(r===n.name)t.type=nr.Identifier,t.value==="static"&&(t.type=nr.Keyword),e.ecmaVersion>5&&(t.value==="yield"||t.value==="let")&&(t.type=nr.Keyword);else if(r===n.privateId)t.type=nr.PrivateIdentifier;else if(r===n.semi||r===n.comma||r===n.parenL||r===n.parenR||r===n.braceL||r===n.braceR||r===n.dot||r===n.bracketL||r===n.colon||r===n.question||r===n.bracketR||r===n.ellipsis||r===n.arrow||r===n.jsxTagStart||r===n.incDec||r===n.starstar||r===n.jsxTagEnd||r===n.prefix||r===n.questionDot||r.binop&&!r.keyword||r.isAssign)t.type=nr.Punctuator,t.value=this._code.slice(t.start,t.end);else if(r===n.jsxName)t.type=nr.JSXIdentifier;else if(r.label==="jsxText"||r===n.jsxAttrValueToken)t.type=nr.JSXText;else if(r.keyword)r.keyword==="true"||r.keyword==="false"?t.type=nr.Boolean:r.keyword==="null"?t.type=nr.Null:t.type=nr.Keyword;else if(r===n.num)t.type=nr.Numeric,t.value=this._code.slice(t.start,t.end);else if(r===n.string)e.jsxAttrValueToken?(e.jsxAttrValueToken=!1,t.type=nr.JSXText):t.type=nr.String,t.value=this._code.slice(t.start,t.end);else if(r===n.regexp){t.type=nr.RegularExpression;let s=t.value;t.regex={flags:s.flags,pattern:s.pattern},t.value=`/${s.pattern}/${s.flags}`}return t},onToken(t,e){let r=this,n=this._acornTokTypes,s=e.tokens,i=this._tokens;function a(){s.push(W8(r._tokens,r._code)),r._tokens=[]}if(t.type===n.eof){this._curlyBrace&&s.push(this.translate(this._curlyBrace,e));return}if(t.type===n.backQuote){this._curlyBrace&&(s.push(this.translate(this._curlyBrace,e)),this._curlyBrace=null),i.push(t),i.length>1&&a();return}if(t.type===n.dollarBraceL){i.push(t),a();return}if(t.type===n.braceR){this._curlyBrace&&s.push(this.translate(this._curlyBrace,e)),this._curlyBrace=t;return}if(t.type===n.template||t.type===n.invalidTemplate){this._curlyBrace&&(i.push(this._curlyBrace),this._curlyBrace=null),i.push(t);return}this._curlyBrace&&(s.push(this.translate(this._curlyBrace,e)),this._curlyBrace=null),s.push(this.translate(t,e))}};var yo=[3,5,6,7,8,9,10,11,12,13];function _d(){return yo[yo.length-1]}function G8(){return[...yo]}function z8(t=5){let e=t==="latest"?_d():t;if(typeof e!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof t} instead.`);if(e>=2015&&(e-=2009),!yo.includes(e))throw new Error("Invalid ecmaVersion.");return e}function H8(t="script"){if(t==="script"||t==="module")return t;if(t==="commonjs")return"script";throw new Error("Invalid sourceType.")}function K8(t){let e=z8(t.ecmaVersion),r=H8(t.sourceType),n=t.range===!0,s=t.loc===!0;if(e!==3&&t.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof t.allowReserved!="undefined"&&typeof t.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");let i=e===3?t.allowReserved||"never":!1,a=t.ecmaFeatures||{},o=t.sourceType==="commonjs"||Boolean(a.globalReturn);if(r==="module"&&e<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},t,{ecmaVersion:e,sourceType:r,ranges:n,locations:s,allowReserved:i,allowReturnOutsideFunction:o})}var Nr=Symbol("espree's internal state"),oc=Symbol("espree's esprimaFinishNode");function Y8(t,e,r,n,s,i){let a={type:t?"Block":"Line",value:e};return typeof r=="number"&&(a.start=r,a.end=n,a.range=[r,n]),typeof s=="object"&&(a.loc={start:s,end:i}),a}var Bd=()=>t=>{let e=Object.assign({},t.acorn.tokTypes);return t.acornJsx&&Object.assign(e,t.acornJsx.tokTypes),class extends t{constructor(n,s){(typeof n!="object"||n===null)&&(n={}),typeof s!="string"&&!(s instanceof String)&&(s=String(s));let i=n.sourceType,a=K8(n),o=a.ecmaFeatures||{},l=a.tokens===!0?new ac(e,s):null;super({ecmaVersion:a.ecmaVersion,sourceType:a.sourceType,ranges:a.ranges,locations:a.locations,allowReserved:a.allowReserved,allowReturnOutsideFunction:a.allowReturnOutsideFunction,onToken:u=>{l&&l.onToken(u,this[Nr]),u.type!==e.eof&&(this[Nr].lastToken=u)},onComment:(u,c,p,h,f,m)=>{if(this[Nr].comments){let x=Y8(u,c,p,h,f,m);this[Nr].comments.push(x)}}},s);this[Nr]={originalSourceType:i||a.sourceType,tokens:l?[]:null,comments:a.comment===!0?[]:null,impliedStrict:o.impliedStrict===!0&&this.options.ecmaVersion>=5,ecmaVersion:this.options.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]}}tokenize(){do this.next();while(this.type!==e.eof);this.next();let n=this[Nr],s=n.tokens;return n.comments&&(s.comments=n.comments),s}finishNode(...n){let s=super.finishNode(...n);return this[oc](s)}finishNodeAt(...n){let s=super.finishNodeAt(...n);return this[oc](s)}parse(){let n=this[Nr],s=super.parse();if(s.sourceType=n.originalSourceType,n.comments&&(s.comments=n.comments),n.tokens&&(s.tokens=n.tokens),s.body.length){let[i]=s.body;s.range&&(s.range[0]=i.range[0]),s.loc&&(s.loc.start=i.loc.start),s.start=i.start}return n.lastToken&&(s.range&&(s.range[1]=n.lastToken.range[1]),s.loc&&(s.loc.end=n.lastToken.loc.end),s.end=n.lastToken.end),this[Nr].templateElements.forEach(i=>{let a=-1,o=i.tail?1:2;i.start+=a,i.end+=o,i.range&&(i.range[0]+=a,i.range[1]+=o),i.loc&&(i.loc.start.column+=a,i.loc.end.column+=o)}),s}parseTopLevel(n){return this[Nr].impliedStrict&&(this.strict=!0),super.parseTopLevel(n)}raise(n,s){let i=t.acorn.getLineInfo(this.input,n),a=new SyntaxError(s);throw a.index=n,a.lineNumber=i.line,a.column=i.column+1,a}raiseRecoverable(n,s){this.raise(n,s)}unexpected(n){let s="Unexpected token";if(n!=null){if(this.pos=n,this.options.locations)for(;this.pos<this.lineStart;)this.lineStart=this.input.lastIndexOf(`
|
|
24
|
+
`,this.lineStart-2)+1,--this.curLine;this.nextToken()}this.end>this.start&&(s+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,s)}jsx_readString(n){let s=super.jsx_readString(n);return this.type===e.string&&(this[Nr].jsxAttrValueToken=!0),s}[oc](n){return n.type==="TemplateElement"&&this[Nr].templateElements.push(n),n.type.includes("Function")&&!n.generator&&(n.generator=!1),n}}},J8="9.3.1",Od={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=Id.Parser.extend(Bd())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=Id.Parser.extend(U8.default(),Bd())),this._jsx},get(t){return Boolean(t&&t.ecmaFeatures&&t.ecmaFeatures.jsx)?this.jsx:this.regular}};function Q8(t,e){let r=Od.get(e);return(!e||e.tokens!==!0)&&(e=Object.assign({},e,{tokens:!0})),new r(e,t).tokenize()}function X8(t,e){let r=Od.get(e);return new r(e,t).parse()}var Z8=J8,lc=function(){return $8.KEYS}(),eM=function(){let t,e={};typeof Object.create=="function"&&(e=Object.create(null));for(t in lc)Object.hasOwnProperty.call(lc,t)&&(e[t]=t);return typeof Object.freeze=="function"&&Object.freeze(e),e}(),tM=_d(),rM=G8();ps.Syntax=eM;ps.VisitorKeys=lc;ps.latestEcmaVersion=tM;ps.parse=X8;ps.supportedEcmaVersions=rM;ps.tokenize=Q8;ps.version=Z8});var ug=M((Wi,Wn)=>{b();v();var sM=200,Rd="__lodash_hash_undefined__",nM=800,iM=16,Ld=9007199254740991,Nd="[object Arguments]",aM="[object Array]",oM="[object AsyncFunction]",lM="[object Boolean]",uM="[object Date]",cM="[object Error]",Md="[object Function]",fM="[object GeneratorFunction]",pM="[object Map]",hM="[object Number]",mM="[object Null]",jd="[object Object]",dM="[object Proxy]",gM="[object RegExp]",yM="[object Set]",xM="[object String]",EM="[object Undefined]",bM="[object WeakMap]",vM="[object ArrayBuffer]",CM="[object DataView]",SM="[object Float32Array]",AM="[object Float64Array]",wM="[object Int8Array]",kM="[object Int16Array]",DM="[object Int32Array]",TM="[object Uint8Array]",FM="[object Uint8ClampedArray]",PM="[object Uint16Array]",IM="[object Uint32Array]",_M=/[\\^$.*+?()[\]{}|]/g,BM=/^\[object .+?Constructor\]$/,OM=/^(?:0|[1-9]\d*)$/,Tt={};Tt[SM]=Tt[AM]=Tt[wM]=Tt[kM]=Tt[DM]=Tt[TM]=Tt[FM]=Tt[PM]=Tt[IM]=!0;Tt[Nd]=Tt[aM]=Tt[vM]=Tt[lM]=Tt[CM]=Tt[uM]=Tt[cM]=Tt[Md]=Tt[pM]=Tt[hM]=Tt[jd]=Tt[gM]=Tt[yM]=Tt[xM]=Tt[bM]=!1;var qd=typeof window=="object"&&window&&window.Object===Object&&window,RM=typeof self=="object"&&self&&self.Object===Object&&self,Gi=qd||RM||Function("return this")(),Vd=typeof Wi=="object"&&Wi&&!Wi.nodeType&&Wi,zi=Vd&&typeof Wn=="object"&&Wn&&!Wn.nodeType&&Wn,Ud=zi&&zi.exports===Vd,uc=Ud&&qd.process,$d=function(){try{var t=zi&&zi.require&&zi.require("util").types;return t||uc&&uc.binding&&uc.binding("util")}catch(e){}}(),Wd=$d&&$d.isTypedArray;function LM(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function NM(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function MM(t){return function(e){return t(e)}}function jM(t,e){return t==null?void 0:t[e]}function qM(t,e){return function(r){return t(e(r))}}var VM=Array.prototype,UM=Function.prototype,xo=Object.prototype,cc=Gi["__core-js_shared__"],Eo=UM.toString,hs=xo.hasOwnProperty,Gd=function(){var t=/[^.]+$/.exec(cc&&cc.keys&&cc.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),zd=xo.toString,$M=Eo.call(Object),WM=RegExp("^"+Eo.call(hs).replace(_M,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bo=Ud?Gi.Buffer:void 0,Hd=Gi.Symbol,Kd=Gi.Uint8Array,Yd=bo?bo.allocUnsafe:void 0,Jd=qM(Object.getPrototypeOf,Object),Qd=Object.create,GM=xo.propertyIsEnumerable,zM=VM.splice,pn=Hd?Hd.toStringTag:void 0,vo=function(){try{var t=fc(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),HM=bo?bo.isBuffer:void 0,Xd=Math.max,KM=Date.now,Zd=fc(Gi,"Map"),Hi=fc(Object,"create"),YM=function(){function t(){}return function(e){if(!hn(e))return{};if(Qd)return Qd(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function mn(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function JM(){this.__data__=Hi?Hi(null):{},this.size=0}function QM(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function XM(t){var e=this.__data__;if(Hi){var r=e[t];return r===Rd?void 0:r}return hs.call(e,t)?e[t]:void 0}function ZM(t){var e=this.__data__;return Hi?e[t]!==void 0:hs.call(e,t)}function e9(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Hi&&e===void 0?Rd:e,this}mn.prototype.clear=JM;mn.prototype.delete=QM;mn.prototype.get=XM;mn.prototype.has=ZM;mn.prototype.set=e9;function ms(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function t9(){this.__data__=[],this.size=0}function r9(t){var e=this.__data__,r=Co(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():zM.call(e,r,1),--this.size,!0}function s9(t){var e=this.__data__,r=Co(e,t);return r<0?void 0:e[r][1]}function n9(t){return Co(this.__data__,t)>-1}function i9(t,e){var r=this.__data__,n=Co(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}ms.prototype.clear=t9;ms.prototype.delete=r9;ms.prototype.get=s9;ms.prototype.has=n9;ms.prototype.set=i9;function Gn(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function a9(){this.size=0,this.__data__={hash:new mn,map:new(Zd||ms),string:new mn}}function o9(t){var e=So(this,t).delete(t);return this.size-=e?1:0,e}function l9(t){return So(this,t).get(t)}function u9(t){return So(this,t).has(t)}function c9(t,e){var r=So(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}Gn.prototype.clear=a9;Gn.prototype.delete=o9;Gn.prototype.get=l9;Gn.prototype.has=u9;Gn.prototype.set=c9;function zn(t){var e=this.__data__=new ms(t);this.size=e.size}function f9(){this.__data__=new ms,this.size=0}function p9(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function h9(t){return this.__data__.get(t)}function m9(t){return this.__data__.has(t)}function d9(t,e){var r=this.__data__;if(r instanceof ms){var n=r.__data__;if(!Zd||n.length<sM-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Gn(n)}return r.set(t,e),this.size=r.size,this}zn.prototype.clear=f9;zn.prototype.delete=p9;zn.prototype.get=h9;zn.prototype.has=m9;zn.prototype.set=d9;function g9(t,e){var r=hc(t),n=!r&&pc(t),s=!r&&!n&&tg(t),i=!r&&!n&&!s&&rg(t),a=r||n||s||i,o=a?NM(t.length,String):[],l=o.length;for(var u in t)(e||hs.call(t,u))&&!(a&&(u=="length"||s&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||eg(u,l)))&&o.push(u);return o}function dc(t,e,r){(r!==void 0&&!Ao(t[e],r)||r===void 0&&!(e in t))&&mc(t,e,r)}function y9(t,e,r){var n=t[e];(!(hs.call(t,e)&&Ao(n,r))||r===void 0&&!(e in t))&&mc(t,e,r)}function Co(t,e){for(var r=t.length;r--;)if(Ao(t[r][0],e))return r;return-1}function mc(t,e,r){e=="__proto__"&&vo?vo(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var E9=x9();function wo(t){return t==null?t===void 0?EM:mM:pn&&pn in Object(t)?b9(t):v9(t)}function sg(t){return Ki(t)&&wo(t)==Nd}function A9(t){if(!hn(t)||C9(t))return!1;var e=gc(t)?WM:BM;return e.test(S9(t))}function w9(t){return Ki(t)&&ng(t.length)&&!!Tt[wo(t)]}function D9(t){if(!hn(t))return k9(t);var e=ig(t),r=[];for(var n in t)n=="constructor"&&(e||!hs.call(t,n))||r.push(n);return r}function ag(t,e,r,n,s){t!==e&&E9(e,function(i,a){if(s||(s=new zn),hn(i))T9(t,e,a,r,ag,n,s);else{var o=n?n(yc(t,a),i,a+"",t,e,s):void 0;o===void 0&&(o=i),dc(t,a,o)}},og)}function T9(t,e,r,n,s,i,a){var o=yc(t,r),l=yc(e,r),u=a.get(l);if(u){dc(t,r,u);return}var c=i?i(o,l,r+"",t,e,a):void 0,p=c===void 0;if(p){var h=hc(l),f=!h&&tg(l),m=!h&&!f&&rg(l);c=l,h||f||m?hc(o)?c=o:B9(o)?c=I9(o):f?(p=!1,c=F9(l,!0)):m?(p=!1,c=P9(l,!0)):c=[]:O9(l)||pc(l)?(c=o,pc(o)?c=R9(o):(!hn(o)||gc(o))&&(c=_9(l))):p=!1}p&&(a.set(l,c),s(c,l,n,i,a),a.delete(l)),dc(t,r,c)}function M9(t,e){return N9(L9(t,e,lg),t+"")}var q9=vo?function(t,e){return vo(t,"toString",{configurable:!0,enumerable:!1,value:j9(e),writable:!0})}:lg;function F9(t,e){if(e)return t.slice();var r=t.length,n=Yd?Yd(r):new t.constructor(r);return t.copy(n),n}function V9(t){var e=new t.constructor(t.byteLength);return new Kd(e).set(new Kd(t)),e}function P9(t,e){var r=e?V9(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function I9(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}function U9(t,e,r,n){var s=!r;r||(r={});for(var i=-1,a=e.length;++i<a;){var o=e[i],l=n?n(r[o],t[o],o,r,t):void 0;l===void 0&&(l=t[o]),s?mc(r,o,l):y9(r,o,l)}return r}function W9(t){return M9(function(e,r){var n=-1,s=r.length,i=s>1?r[s-1]:void 0,a=s>2?r[2]:void 0;for(i=t.length>3&&typeof i=="function"?(s--,i):void 0,a&&$9(r[0],r[1],a)&&(i=s<3?void 0:i,s=1),e=Object(e);++n<s;){var o=r[n];o&&t(e,o,n,i)}return e})}function x9(t){return function(e,r,n){for(var s=-1,i=Object(e),a=n(e),o=a.length;o--;){var l=a[t?o:++s];if(r(i[l],l,i)===!1)break}return e}}function So(t,e){var r=t.__data__;return G9(e)?r[typeof e=="string"?"string":"hash"]:r.map}function fc(t,e){var r=jM(t,e);return A9(r)?r:void 0}function b9(t){var e=hs.call(t,pn),r=t[pn];try{t[pn]=void 0;var n=!0}catch(i){}var s=zd.call(t);return n&&(e?t[pn]=r:delete t[pn]),s}function _9(t){return typeof t.constructor=="function"&&!ig(t)?YM(Jd(t)):{}}function eg(t,e){var r=typeof t;return e=e??Ld,!!e&&(r=="number"||r!="symbol"&&OM.test(t))&&t>-1&&t%1==0&&t<e}function $9(t,e,r){if(!hn(r))return!1;var n=typeof e;return(n=="number"?xc(r)&&eg(e,r.length):n=="string"&&e in r)?Ao(r[e],t):!1}function G9(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function C9(t){return!!Gd&&Gd in t}function ig(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||xo;return t===r}function k9(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}function v9(t){return zd.call(t)}function L9(t,e,r){return e=Xd(e===void 0?t.length-1:e,0),function(){for(var n=arguments,s=-1,i=Xd(n.length-e,0),a=Array(i);++s<i;)a[s]=n[e+s];s=-1;for(var o=Array(e+1);++s<e;)o[s]=n[s];return o[e]=r(a),LM(t,this,o)}}function yc(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var N9=z9(q9);function z9(t){var e=0,r=0;return function(){var n=KM(),s=iM-(n-r);if(r=n,s>0){if(++e>=nM)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function S9(t){if(t!=null){try{return Eo.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Ao(t,e){return t===e||t!==t&&e!==e}var pc=sg(function(){return arguments}())?sg:function(t){return Ki(t)&&hs.call(t,"callee")&&!GM.call(t,"callee")},hc=Array.isArray;function xc(t){return t!=null&&ng(t.length)&&!gc(t)}function B9(t){return Ki(t)&&xc(t)}var tg=HM||H9;function gc(t){if(!hn(t))return!1;var e=wo(t);return e==Md||e==fM||e==oM||e==dM}function ng(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Ld}function hn(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function Ki(t){return t!=null&&typeof t=="object"}function O9(t){if(!Ki(t)||wo(t)!=jd)return!1;var e=Jd(t);if(e===null)return!0;var r=hs.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Eo.call(r)==$M}var rg=Wd?MM(Wd):w9;function R9(t){return U9(t,og(t))}function og(t){return xc(t)?g9(t,!0):D9(t)}var K9=W9(function(t,e,r){ag(t,e,r)});function j9(t){return function(){return t}}function lg(t){return t}function H9(){return!1}Wn.exports=K9});var fg=M((UQ,cg)=>{cg.exports={_from:"eslint@8.11.0",_id:"eslint@8.11.0",_inBundle:!1,_integrity:"sha512-/KRpd9mIRg2raGxHRGwW9ZywYNAClZrHjdueHcrVDuO3a6bj83eoTirCCk0M0yPwOjWYKHwRVRid+xK4F/GHgA==",_location:"/eslint",_phantomChildren:{"deep-is":"0.1.3",esrecurse:"4.3.0","fast-levenshtein":"2.0.6","is-extglob":"2.1.1",isexe:"2.0.0",ms:"2.1.2","parent-module":"1.0.1","type-fest":"0.20.2","word-wrap":"1.2.3"},_requested:{type:"version",registry:!0,raw:"eslint@8.11.0",name:"eslint",escapedName:"eslint",rawSpec:"8.11.0",saveSpec:null,fetchSpec:"8.11.0"},_requiredBy:["#DEV:/"],_resolved:"https://registry.npmjs.org/eslint/-/eslint-8.11.0.tgz",_shasum:"88b91cfba1356fc10bb9eb592958457dfe09fb37",_spec:"eslint@8.11.0",_where:"D:\\DevWork\\live-codes\\browser-compilers",author:{name:"Nicholas C. Zakas",email:"nicholas+npm@nczconsulting.com"},bin:{eslint:"bin/eslint.js"},bugs:{url:"https://github.com/eslint/eslint/issues/"},bundleDependencies:!1,dependencies:{"@eslint/eslintrc":"^1.2.1","@humanwhocodes/config-array":"^0.9.2",ajv:"^6.10.0",chalk:"^4.0.0","cross-spawn":"^7.0.2",debug:"^4.3.2",doctrine:"^3.0.0","escape-string-regexp":"^4.0.0","eslint-scope":"^7.1.1","eslint-utils":"^3.0.0","eslint-visitor-keys":"^3.3.0",espree:"^9.3.1",esquery:"^1.4.0",esutils:"^2.0.2","fast-deep-equal":"^3.1.3","file-entry-cache":"^6.0.1","functional-red-black-tree":"^1.0.1","glob-parent":"^6.0.1",globals:"^13.6.0",ignore:"^5.2.0","import-fresh":"^3.0.0",imurmurhash:"^0.1.4","is-glob":"^4.0.0","js-yaml":"^4.1.0","json-stable-stringify-without-jsonify":"^1.0.1",levn:"^0.4.1","lodash.merge":"^4.6.2",minimatch:"^3.0.4","natural-compare":"^1.4.0",optionator:"^0.9.1",regexpp:"^3.2.0","strip-ansi":"^6.0.1","strip-json-comments":"^3.1.0","text-table":"^0.2.0","v8-compile-cache":"^2.0.3"},deprecated:!1,description:"An AST-based pattern checker for JavaScript.",devDependencies:{"@babel/core":"^7.4.3","@babel/preset-env":"^7.4.3","babel-loader":"^8.0.5",chai:"^4.0.1",cheerio:"^0.22.0","common-tags":"^1.8.0","core-js":"^3.1.3",dateformat:"^4.5.1",ejs:"^3.0.2",eslint:"file:.","eslint-config-eslint":"file:packages/eslint-config-eslint","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-eslint-plugin":"^4.0.1","eslint-plugin-internal-rules":"file:tools/internal-rules","eslint-plugin-jsdoc":"^37.0.0","eslint-plugin-node":"^11.1.0","eslint-release":"^3.2.0",eslump:"^3.0.0",esprima:"^4.0.1","fs-teardown":"^0.1.3",glob:"^7.1.6",jsdoc:"^3.5.5",karma:"^6.1.1","karma-chrome-launcher":"^3.1.0","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-webpack":"^5.0.0","lint-staged":"^11.0.0","load-perf":"^0.2.0",markdownlint:"^0.24.0","markdownlint-cli":"^0.30.0",marked:"^4.0.8",memfs:"^3.0.1",mocha:"^8.3.2","mocha-junit-reporter":"^2.0.0","node-polyfill-webpack-plugin":"^1.0.3","npm-license":"^0.3.3",nyc:"^15.0.1",pirates:"^4.0.5",progress:"^2.0.3",proxyquire:"^2.0.1",puppeteer:"^9.1.1",recast:"^0.20.4","regenerator-runtime":"^0.13.2",semver:"^7.3.5",shelljs:"^0.8.2",sinon:"^11.0.0",temp:"^0.9.0",webpack:"^5.23.0","webpack-cli":"^4.5.0",yorkie:"^2.0.0"},engines:{node:"^12.22.0 || ^14.17.0 || >=16.0.0"},exports:{"./package.json":"./package.json",".":"./lib/api.js","./use-at-your-own-risk":"./lib/unsupported-api.js"},files:["LICENSE","README.md","bin","conf","lib","messages"],funding:"https://opencollective.com/eslint",gitHooks:{"pre-commit":"lint-staged"},homepage:"https://eslint.org",keywords:["ast","lint","javascript","ecmascript","espree"],license:"MIT","lint-staged":{"*.js":"eslint --fix","*.md":"markdownlint"},main:"./lib/api.js",name:"eslint",repository:{type:"git",url:"git+https://github.com/eslint/eslint.git"},scripts:{fix:"node Makefile.js lint -- fix",fuzz:"node Makefile.js fuzz","generate-alpharelease":"node Makefile.js generatePrerelease -- alpha","generate-betarelease":"node Makefile.js generatePrerelease -- beta","generate-rcrelease":"node Makefile.js generatePrerelease -- rc","generate-release":"node Makefile.js generateRelease",gensite:"node Makefile.js gensite",lint:"node Makefile.js lint",perf:"node Makefile.js perf","publish-release":"node Makefile.js publishRelease",test:"node Makefile.js test","test:cli":"mocha",webpack:"node Makefile.js webpack"},version:"8.11.0"}});var Yi=M(($Q,pg)=>{b();v();"use strict";var Y9=/^(?:(?:Do)?While|For(?:In|Of)?|Switch)Statement$/u,hg=/\r\n|[\r\n\u2028\u2029]/u,J9=/^#!([^\r\n]+)/u;function Q9(){return new RegExp(hg.source,"gu")}pg.exports={breakableTypePattern:Y9,lineBreakPattern:hg,createGlobalLinebreakMatcher:Q9,shebangPattern:J9}});var mg=M((WQ,ko)=>{b();v();var dn=(ju(),Fm);if(dn&&dn.default){ko.exports=dn.default;for(let t in dn)ko.exports[t]=dn[t]}else dn&&(ko.exports=dn)});var gg=M((Do,dg)=>{b();v();(function(t,e){typeof Do=="object"&&typeof dg!="undefined"?e(Do):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(Do,function(t){"use strict";function e(){for(var Y=arguments.length,J=Array(Y),ae=0;ae<Y;ae++)J[ae]=arguments[ae];if(J.length>1){J[0]=J[0].slice(0,-1);for(var ye=J.length-1,be=1;be<ye;++be)J[be]=J[be].slice(1,-1);return J[ye]=J[ye].slice(1),J.join("")}else return J[0]}function r(Y){return"(?:"+Y+")"}function n(Y){return Y===void 0?"undefined":Y===null?"null":Object.prototype.toString.call(Y).split(" ").pop().split("]").shift().toLowerCase()}function s(Y){return Y.toUpperCase()}function i(Y){return Y!=null?Y instanceof Array?Y:typeof Y.length!="number"||Y.split||Y.setInterval||Y.call?[Y]:Array.prototype.slice.call(Y):[]}function a(Y,J){var ae=Y;if(J)for(var ye in J)ae[ye]=J[ye];return ae}function o(Y){var J="[A-Za-z]",ae="[\\x0D]",ye="[0-9]",be="[\\x22]",ge=e(ye,"[A-Fa-f]"),Ze="[\\x0A]",$e="[\\x20]",rt=r(r("%[EFef]"+ge+"%"+ge+ge+"%"+ge+ge)+"|"+r("%[89A-Fa-f]"+ge+"%"+ge+ge)+"|"+r("%"+ge+ge)),bt="[\\:\\/\\?\\#\\[\\]\\@]",st="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",ht=e(bt,st),xt=Y?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",yt=Y?"[\\uE000-\\uF8FF]":"[]",Re=e(J,ye,"[\\-\\.\\_\\~]",xt),at=r(J+e(J,ye,"[\\+\\-\\.]")+"*"),Ve=r(r(rt+"|"+e(Re,st,"[\\:]"))+"*"),Se=r(r("25[0-5]")+"|"+r("2[0-4]"+ye)+"|"+r("1"+ye+ye)+"|"+r("[1-9]"+ye)+"|"+ye),Oe=r(r("25[0-5]")+"|"+r("2[0-4]"+ye)+"|"+r("1"+ye+ye)+"|"+r("0?[1-9]"+ye)+"|0?0?"+ye),Ne=r(Oe+"\\."+Oe+"\\."+Oe+"\\."+Oe),le=r(ge+"{1,4}"),ke=r(r(le+"\\:"+le)+"|"+Ne),_e=r(r(le+"\\:")+"{6}"+ke),Me=r("\\:\\:"+r(le+"\\:")+"{5}"+ke),Ke=r(r(le)+"?\\:\\:"+r(le+"\\:")+"{4}"+ke),g=r(r(r(le+"\\:")+"{0,1}"+le)+"?\\:\\:"+r(le+"\\:")+"{3}"+ke),k=r(r(r(le+"\\:")+"{0,2}"+le)+"?\\:\\:"+r(le+"\\:")+"{2}"+ke),N=r(r(r(le+"\\:")+"{0,3}"+le)+"?\\:\\:"+le+"\\:"+ke),H=r(r(r(le+"\\:")+"{0,4}"+le)+"?\\:\\:"+ke),Z=r(r(r(le+"\\:")+"{0,5}"+le)+"?\\:\\:"+le),oe=r(r(r(le+"\\:")+"{0,6}"+le)+"?\\:\\:"),xe=r([_e,Me,Ke,g,k,N,H,Z,oe].join("|")),he=r(r(Re+"|"+rt)+"+"),Te=r(xe+"\\%25"+he),Le=r(xe+r("\\%25|\\%(?!"+ge+"{2})")+he),De=r("[vV]"+ge+"+\\."+e(Re,st,"[\\:]")+"+"),He=r("\\["+r(Le+"|"+xe+"|"+De)+"\\]"),ct=r(r(rt+"|"+e(Re,st))+"*"),St=r(He+"|"+Ne+"(?!"+ct+")|"+ct),d=r(ye+"*"),A=r(r(Ve+"@")+"?"+St+r("\\:"+d)+"?"),O=r(rt+"|"+e(Re,st,"[\\:\\@]")),G=r(O+"*"),ee=r(O+"+"),de=r(r(rt+"|"+e(Re,st,"[\\@]"))+"+"),Ee=r(r("\\/"+G)+"*"),Be=r("\\/"+r(ee+Ee)+"?"),je=r(de+Ee),et=r(ee+Ee),tt="(?!"+O+")",Yt=r(Ee+"|"+Be+"|"+je+"|"+et+"|"+tt),lr=r(r(O+"|"+e("[\\/\\?]",yt))+"*"),Or=r(r(O+"|[\\/\\?]")+"*"),is=r(r("\\/\\/"+A+Ee)+"|"+Be+"|"+et+"|"+tt),Ln=r(at+"\\:"+is+r("\\?"+lr)+"?"+r("\\#"+Or)+"?"),As=r(r("\\/\\/"+A+Ee)+"|"+Be+"|"+je+"|"+tt),ws=r(As+r("\\?"+lr)+"?"+r("\\#"+Or)+"?"),uQ=r(Ln+"|"+ws),cQ=r(at+"\\:"+is+r("\\?"+lr)+"?"),fQ="^("+at+")\\:"+r(r("\\/\\/("+r("("+Ve+")@")+"?("+St+")"+r("\\:("+d+")")+"?)")+"?("+Ee+"|"+Be+"|"+et+"|"+tt+")")+r("\\?("+lr+")")+"?"+r("\\#("+Or+")")+"?$",pQ="^(){0}"+r(r("\\/\\/("+r("("+Ve+")@")+"?("+St+")"+r("\\:("+d+")")+"?)")+"?("+Ee+"|"+Be+"|"+je+"|"+tt+")")+r("\\?("+lr+")")+"?"+r("\\#("+Or+")")+"?$",hQ="^("+at+")\\:"+r(r("\\/\\/("+r("("+Ve+")@")+"?("+St+")"+r("\\:("+d+")")+"?)")+"?("+Ee+"|"+Be+"|"+et+"|"+tt+")")+r("\\?("+lr+")")+"?$",mQ="^"+r("\\#("+Or+")")+"?$",dQ="^"+r("("+Ve+")@")+"?("+St+")"+r("\\:("+d+")")+"?$";return{NOT_SCHEME:new RegExp(e("[^]",J,ye,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",Re,st),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",Re,st),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",Re,st),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",Re,st),"g"),NOT_QUERY:new RegExp(e("[^\\%]",Re,st,"[\\:\\@\\/\\?]",yt),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",Re,st,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",Re,st),"g"),UNRESERVED:new RegExp(Re,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",Re,ht),"g"),PCT_ENCODED:new RegExp(rt,"g"),IPV4ADDRESS:new RegExp("^("+Ne+")$"),IPV6ADDRESS:new RegExp("^\\[?("+xe+")"+r(r("\\%25|\\%(?!"+ge+"{2})")+"("+he+")")+"?\\]?$")}}var l=o(!1),u=o(!0),c=function(){function Y(J,ae){var ye=[],be=!0,ge=!1,Ze=void 0;try{for(var $e=J[Symbol.iterator](),rt;!(be=(rt=$e.next()).done)&&(ye.push(rt.value),!(ae&&ye.length===ae));be=!0);}catch(bt){ge=!0,Ze=bt}finally{try{!be&&$e.return&&$e.return()}finally{if(ge)throw Ze}}return ye}return function(J,ae){if(Array.isArray(J))return J;if(Symbol.iterator in Object(J))return Y(J,ae);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(Y){if(Array.isArray(Y)){for(var J=0,ae=Array(Y.length);J<Y.length;J++)ae[J]=Y[J];return ae}else return Array.from(Y)},h=2147483647,f=36,m=1,x=26,E=38,S=700,T=72,I=128,y="-",w=/^xn--/,D=/[^\0-\x7E]/,R=/[\x2E\u3002\uFF0E\uFF61]/g,z={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},q=f-m,W=Math.floor,_=String.fromCharCode;function C(Y){throw new RangeError(z[Y])}function $(Y,J){for(var ae=[],ye=Y.length;ye--;)ae[ye]=J(Y[ye]);return ae}function F(Y,J){var ae=Y.split("@"),ye="";ae.length>1&&(ye=ae[0]+"@",Y=ae[1]),Y=Y.replace(R,".");var be=Y.split("."),ge=$(be,J).join(".");return ye+ge}function U(Y){for(var J=[],ae=0,ye=Y.length;ae<ye;){var be=Y.charCodeAt(ae++);if(be>=55296&&be<=56319&&ae<ye){var ge=Y.charCodeAt(ae++);(ge&64512)==56320?J.push(((be&1023)<<10)+(ge&1023)+65536):(J.push(be),ae--)}else J.push(be)}return J}var Q=function(J){return String.fromCodePoint.apply(String,p(J))},B=function(J){return J-48<10?J-22:J-65<26?J-65:J-97<26?J-97:f},K=function(J,ae){return J+22+75*(J<26)-((ae!=0)<<5)},X=function(J,ae,ye){var be=0;for(J=ye?W(J/S):J>>1,J+=W(J/ae);J>q*x>>1;be+=f)J=W(J/q);return W(be+(q+1)*J/(J+E))},ie=function(J){var ae=[],ye=J.length,be=0,ge=I,Ze=T,$e=J.lastIndexOf(y);$e<0&&($e=0);for(var rt=0;rt<$e;++rt)J.charCodeAt(rt)>=128&&C("not-basic"),ae.push(J.charCodeAt(rt));for(var bt=$e>0?$e+1:0;bt<ye;){for(var st=be,ht=1,xt=f;;xt+=f){bt>=ye&&C("invalid-input");var yt=B(J.charCodeAt(bt++));(yt>=f||yt>W((h-be)/ht))&&C("overflow"),be+=yt*ht;var Re=xt<=Ze?m:xt>=Ze+x?x:xt-Ze;if(yt<Re)break;var at=f-Re;ht>W(h/at)&&C("overflow"),ht*=at}var Ve=ae.length+1;Ze=X(be-st,Ve,st==0),W(be/Ve)>h-ge&&C("overflow"),ge+=W(be/Ve),be%=Ve,ae.splice(be++,0,ge)}return String.fromCodePoint.apply(String,ae)},ve=function(J){var ae=[];J=U(J);var ye=J.length,be=I,ge=0,Ze=T,$e=!0,rt=!1,bt=void 0;try{for(var st=J[Symbol.iterator](),ht;!($e=(ht=st.next()).done);$e=!0){var xt=ht.value;xt<128&&ae.push(_(xt))}}catch(Le){rt=!0,bt=Le}finally{try{!$e&&st.return&&st.return()}finally{if(rt)throw bt}}var yt=ae.length,Re=yt;for(yt&&ae.push(y);Re<ye;){var at=h,Ve=!0,Se=!1,Oe=void 0;try{for(var Ne=J[Symbol.iterator](),le;!(Ve=(le=Ne.next()).done);Ve=!0){var ke=le.value;ke>=be&&ke<at&&(at=ke)}}catch(Le){Se=!0,Oe=Le}finally{try{!Ve&&Ne.return&&Ne.return()}finally{if(Se)throw Oe}}var _e=Re+1;at-be>W((h-ge)/_e)&&C("overflow"),ge+=(at-be)*_e,be=at;var Me=!0,Ke=!1,g=void 0;try{for(var k=J[Symbol.iterator](),N;!(Me=(N=k.next()).done);Me=!0){var H=N.value;if(H<be&&++ge>h&&C("overflow"),H==be){for(var Z=ge,oe=f;;oe+=f){var xe=oe<=Ze?m:oe>=Ze+x?x:oe-Ze;if(Z<xe)break;var he=Z-xe,Te=f-xe;ae.push(_(K(xe+he%Te,0))),Z=W(he/Te)}ae.push(_(K(Z,0))),Ze=X(ge,_e,Re==yt),ge=0,++Re}}}catch(Le){Ke=!0,g=Le}finally{try{!Me&&k.return&&k.return()}finally{if(Ke)throw g}}++ge,++be}return ae.join("")},Ae=function(J){return F(J,function(ae){return w.test(ae)?ie(ae.slice(4).toLowerCase()):ae})},me=function(J){return F(J,function(ae){return D.test(ae)?"xn--"+ve(ae):ae})},ce={version:"2.1.0",ucs2:{decode:U,encode:Q},decode:ie,encode:ve,toASCII:me,toUnicode:Ae},Fe={};function te(Y){var J=Y.charCodeAt(0),ae=void 0;return J<16?ae="%0"+J.toString(16).toUpperCase():J<128?ae="%"+J.toString(16).toUpperCase():J<2048?ae="%"+(J>>6|192).toString(16).toUpperCase()+"%"+(J&63|128).toString(16).toUpperCase():ae="%"+(J>>12|224).toString(16).toUpperCase()+"%"+(J>>6&63|128).toString(16).toUpperCase()+"%"+(J&63|128).toString(16).toUpperCase(),ae}function ne(Y){for(var J="",ae=0,ye=Y.length;ae<ye;){var be=parseInt(Y.substr(ae+1,2),16);if(be<128)J+=String.fromCharCode(be),ae+=3;else if(be>=194&&be<224){if(ye-ae>=6){var ge=parseInt(Y.substr(ae+4,2),16);J+=String.fromCharCode((be&31)<<6|ge&63)}else J+=Y.substr(ae,6);ae+=6}else if(be>=224){if(ye-ae>=9){var Ze=parseInt(Y.substr(ae+4,2),16),$e=parseInt(Y.substr(ae+7,2),16);J+=String.fromCharCode((be&15)<<12|(Ze&63)<<6|$e&63)}else J+=Y.substr(ae,9);ae+=9}else J+=Y.substr(ae,3),ae+=3}return J}function ue(Y,J){function ae(ye){var be=ne(ye);return be.match(J.UNRESERVED)?be:ye}return Y.scheme&&(Y.scheme=String(Y.scheme).replace(J.PCT_ENCODED,ae).toLowerCase().replace(J.NOT_SCHEME,"")),Y.userinfo!==void 0&&(Y.userinfo=String(Y.userinfo).replace(J.PCT_ENCODED,ae).replace(J.NOT_USERINFO,te).replace(J.PCT_ENCODED,s)),Y.host!==void 0&&(Y.host=String(Y.host).replace(J.PCT_ENCODED,ae).toLowerCase().replace(J.NOT_HOST,te).replace(J.PCT_ENCODED,s)),Y.path!==void 0&&(Y.path=String(Y.path).replace(J.PCT_ENCODED,ae).replace(Y.scheme?J.NOT_PATH:J.NOT_PATH_NOSCHEME,te).replace(J.PCT_ENCODED,s)),Y.query!==void 0&&(Y.query=String(Y.query).replace(J.PCT_ENCODED,ae).replace(J.NOT_QUERY,te).replace(J.PCT_ENCODED,s)),Y.fragment!==void 0&&(Y.fragment=String(Y.fragment).replace(J.PCT_ENCODED,ae).replace(J.NOT_FRAGMENT,te).replace(J.PCT_ENCODED,s)),Y}function re(Y){return Y.replace(/^0*(.*)/,"$1")||"0"}function fe(Y,J){var ae=Y.match(J.IPV4ADDRESS)||[],ye=c(ae,2),be=ye[1];return be?be.split(".").map(re).join("."):Y}function Ce(Y,J){var ae=Y.match(J.IPV6ADDRESS)||[],ye=c(ae,3),be=ye[1],ge=ye[2];if(be){for(var Ze=be.toLowerCase().split("::").reverse(),$e=c(Ze,2),rt=$e[0],bt=$e[1],st=bt?bt.split(":").map(re):[],ht=rt.split(":").map(re),xt=J.IPV4ADDRESS.test(ht[ht.length-1]),yt=xt?7:8,Re=ht.length-yt,at=Array(yt),Ve=0;Ve<yt;++Ve)at[Ve]=st[Ve]||ht[Re+Ve]||"";xt&&(at[yt-1]=fe(at[yt-1],J));var Se=at.reduce(function(_e,Me,Ke){if(!Me||Me==="0"){var g=_e[_e.length-1];g&&g.index+g.length===Ke?g.length++:_e.push({index:Ke,length:1})}return _e},[]),Oe=Se.sort(function(_e,Me){return Me.length-_e.length})[0],Ne=void 0;if(Oe&&Oe.length>1){var le=at.slice(0,Oe.index),ke=at.slice(Oe.index+Oe.length);Ne=le.join(":")+"::"+ke.join(":")}else Ne=at.join(":");return ge&&(Ne+="%"+ge),Ne}else return Y}var Ge=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,V="".match(/(){0}/)[1]===void 0;function se(Y){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ae={},ye=J.iri!==!1?u:l;J.reference==="suffix"&&(Y=(J.scheme?J.scheme+":":"")+"//"+Y);var be=Y.match(Ge);if(be){V?(ae.scheme=be[1],ae.userinfo=be[3],ae.host=be[4],ae.port=parseInt(be[5],10),ae.path=be[6]||"",ae.query=be[7],ae.fragment=be[8],isNaN(ae.port)&&(ae.port=be[5])):(ae.scheme=be[1]||void 0,ae.userinfo=Y.indexOf("@")!==-1?be[3]:void 0,ae.host=Y.indexOf("//")!==-1?be[4]:void 0,ae.port=parseInt(be[5],10),ae.path=be[6]||"",ae.query=Y.indexOf("?")!==-1?be[7]:void 0,ae.fragment=Y.indexOf("#")!==-1?be[8]:void 0,isNaN(ae.port)&&(ae.port=Y.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?be[4]:void 0)),ae.host&&(ae.host=Ce(fe(ae.host,ye),ye)),ae.scheme===void 0&&ae.userinfo===void 0&&ae.host===void 0&&ae.port===void 0&&!ae.path&&ae.query===void 0?ae.reference="same-document":ae.scheme===void 0?ae.reference="relative":ae.fragment===void 0?ae.reference="absolute":ae.reference="uri",J.reference&&J.reference!=="suffix"&&J.reference!==ae.reference&&(ae.error=ae.error||"URI is not a "+J.reference+" reference.");var ge=Fe[(J.scheme||ae.scheme||"").toLowerCase()];if(!J.unicodeSupport&&(!ge||!ge.unicodeSupport)){if(ae.host&&(J.domainHost||ge&&ge.domainHost))try{ae.host=ce.toASCII(ae.host.replace(ye.PCT_ENCODED,ne).toLowerCase())}catch(Ze){ae.error=ae.error||"Host's domain name can not be converted to ASCII via punycode: "+Ze}ue(ae,l)}else ue(ae,ye);ge&&ge.parse&&ge.parse(ae,J)}else ae.error=ae.error||"URI can not be parsed.";return ae}function Pe(Y,J){var ae=J.iri!==!1?u:l,ye=[];return Y.userinfo!==void 0&&(ye.push(Y.userinfo),ye.push("@")),Y.host!==void 0&&ye.push(Ce(fe(String(Y.host),ae),ae).replace(ae.IPV6ADDRESS,function(be,ge,Ze){return"["+ge+(Ze?"%25"+Ze:"")+"]"})),(typeof Y.port=="number"||typeof Y.port=="string")&&(ye.push(":"),ye.push(String(Y.port))),ye.length?ye.join(""):void 0}var Je=/^\.\.?\//,nt=/^\/\.(\/|$)/,Ye=/^\/\.\.(\/|$)/,it=/^\/?(?:.|\n)*?(?=\/|$)/;function lt(Y){for(var J=[];Y.length;)if(Y.match(Je))Y=Y.replace(Je,"");else if(Y.match(nt))Y=Y.replace(nt,"/");else if(Y.match(Ye))Y=Y.replace(Ye,"/"),J.pop();else if(Y==="."||Y==="..")Y="";else{var ae=Y.match(it);if(ae){var ye=ae[0];Y=Y.slice(ye.length),J.push(ye)}else throw new Error("Unexpected dot segment condition")}return J.join("")}function Dt(Y){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ae=J.iri?u:l,ye=[],be=Fe[(J.scheme||Y.scheme||"").toLowerCase()];if(be&&be.serialize&&be.serialize(Y,J),Y.host&&!ae.IPV6ADDRESS.test(Y.host)){if(J.domainHost||be&&be.domainHost)try{Y.host=J.iri?ce.toUnicode(Y.host):ce.toASCII(Y.host.replace(ae.PCT_ENCODED,ne).toLowerCase())}catch($e){Y.error=Y.error||"Host's domain name can not be converted to "+(J.iri?"Unicode":"ASCII")+" via punycode: "+$e}}ue(Y,ae),J.reference!=="suffix"&&Y.scheme&&(ye.push(Y.scheme),ye.push(":"));var ge=Pe(Y,J);if(ge!==void 0&&(J.reference!=="suffix"&&ye.push("//"),ye.push(ge),Y.path&&Y.path.charAt(0)!=="/"&&ye.push("/")),Y.path!==void 0){var Ze=Y.path;!J.absolutePath&&(!be||!be.absolutePath)&&(Ze=lt(Ze)),ge===void 0&&(Ze=Ze.replace(/^\/\//,"/%2F")),ye.push(Ze)}return Y.query!==void 0&&(ye.push("?"),ye.push(Y.query)),Y.fragment!==void 0&&(ye.push("#"),ye.push(Y.fragment)),ye.join("")}function Xe(Y,J){var ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ye=arguments[3],be={};return ye||(Y=se(Dt(Y,ae),ae),J=se(Dt(J,ae),ae)),ae=ae||{},!ae.tolerant&&J.scheme?(be.scheme=J.scheme,be.userinfo=J.userinfo,be.host=J.host,be.port=J.port,be.path=lt(J.path||""),be.query=J.query):(J.userinfo!==void 0||J.host!==void 0||J.port!==void 0?(be.userinfo=J.userinfo,be.host=J.host,be.port=J.port,be.path=lt(J.path||""),be.query=J.query):(J.path?(J.path.charAt(0)==="/"?be.path=lt(J.path):((Y.userinfo!==void 0||Y.host!==void 0||Y.port!==void 0)&&!Y.path?be.path="/"+J.path:Y.path?be.path=Y.path.slice(0,Y.path.lastIndexOf("/")+1)+J.path:be.path=J.path,be.path=lt(be.path)),be.query=J.query):(be.path=Y.path,J.query!==void 0?be.query=J.query:be.query=Y.query),be.userinfo=Y.userinfo,be.host=Y.host,be.port=Y.port),be.scheme=Y.scheme),be.fragment=J.fragment,be}function Ue(Y,J,ae){var ye=a({scheme:"null"},ae);return Dt(Xe(se(Y,ye),se(J,ye),ye,!0),ye)}function pt(Y,J){return typeof Y=="string"?Y=Dt(se(Y,J),J):n(Y)==="object"&&(Y=se(Dt(Y,J),J)),Y}function Kt(Y,J,ae){return typeof Y=="string"?Y=Dt(se(Y,ae),ae):n(Y)==="object"&&(Y=Dt(Y,ae)),typeof J=="string"?J=Dt(se(J,ae),ae):n(J)==="object"&&(J=Dt(J,ae)),Y===J}function qt(Y,J){return Y&&Y.toString().replace(!J||!J.iri?l.ESCAPE:u.ESCAPE,te)}function We(Y,J){return Y&&Y.toString().replace(!J||!J.iri?l.PCT_ENCODED:u.PCT_ENCODED,ne)}var Qt={scheme:"http",domainHost:!0,parse:function(J,ae){return J.host||(J.error=J.error||"HTTP URIs must have a host."),J},serialize:function(J,ae){var ye=String(J.scheme).toLowerCase()==="https";return(J.port===(ye?443:80)||J.port==="")&&(J.port=void 0),J.path||(J.path="/"),J}},Wr={scheme:"https",domainHost:Qt.domainHost,parse:Qt.parse,serialize:Qt.serialize};function Ot(Y){return typeof Y.secure=="boolean"?Y.secure:String(Y.scheme).toLowerCase()==="wss"}var Qe={scheme:"ws",domainHost:!0,parse:function(J,ae){var ye=J;return ye.secure=Ot(ye),ye.resourceName=(ye.path||"/")+(ye.query?"?"+ye.query:""),ye.path=void 0,ye.query=void 0,ye},serialize:function(J,ae){if((J.port===(Ot(J)?443:80)||J.port==="")&&(J.port=void 0),typeof J.secure=="boolean"&&(J.scheme=J.secure?"wss":"ws",J.secure=void 0),J.resourceName){var ye=J.resourceName.split("?"),be=c(ye,2),ge=be[0],Ze=be[1];J.path=ge&&ge!=="/"?ge:void 0,J.query=Ze,J.resourceName=void 0}return J.fragment=void 0,J}},_r={scheme:"wss",domainHost:Qe.domainHost,parse:Qe.parse,serialize:Qe.serialize},br={},tr=!0,vr="[A-Za-z0-9\\-\\.\\_\\~"+(tr?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Et="[0-9A-Fa-f]",Rt=r(r("%[EFef]"+Et+"%"+Et+Et+"%"+Et+Et)+"|"+r("%[89A-Fa-f]"+Et+"%"+Et+Et)+"|"+r("%"+Et+Et)),gt="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",It="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",ze=e(It,'[\\"\\\\]'),Br="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Cs=new RegExp(vr,"g"),Xt=new RegExp(Rt,"g"),ar=new RegExp(e("[^]",gt,"[\\.]",'[\\"]',ze),"g"),Ss=new RegExp(e("[^]",vr,Br),"g"),Cr=Ss;function or(Y){var J=ne(Y);return J.match(Cs)?J:Y}var Gr={scheme:"mailto",parse:function(J,ae){var ye=J,be=ye.to=ye.path?ye.path.split(","):[];if(ye.path=void 0,ye.query){for(var ge=!1,Ze={},$e=ye.query.split("&"),rt=0,bt=$e.length;rt<bt;++rt){var st=$e[rt].split("=");switch(st[0]){case"to":for(var ht=st[1].split(","),xt=0,yt=ht.length;xt<yt;++xt)be.push(ht[xt]);break;case"subject":ye.subject=We(st[1],ae);break;case"body":ye.body=We(st[1],ae);break;default:ge=!0,Ze[We(st[0],ae)]=We(st[1],ae);break}}ge&&(ye.headers=Ze)}ye.query=void 0;for(var Re=0,at=be.length;Re<at;++Re){var Ve=be[Re].split("@");if(Ve[0]=We(Ve[0]),ae.unicodeSupport)Ve[1]=We(Ve[1],ae).toLowerCase();else try{Ve[1]=ce.toASCII(We(Ve[1],ae).toLowerCase())}catch(Se){ye.error=ye.error||"Email address's domain name can not be converted to ASCII via punycode: "+Se}be[Re]=Ve.join("@")}return ye},serialize:function(J,ae){var ye=J,be=i(J.to);if(be){for(var ge=0,Ze=be.length;ge<Ze;++ge){var $e=String(be[ge]),rt=$e.lastIndexOf("@"),bt=$e.slice(0,rt).replace(Xt,or).replace(Xt,s).replace(ar,te),st=$e.slice(rt+1);try{st=ae.iri?ce.toUnicode(st):ce.toASCII(We(st,ae).toLowerCase())}catch(Re){ye.error=ye.error||"Email address's domain name can not be converted to "+(ae.iri?"Unicode":"ASCII")+" via punycode: "+Re}be[ge]=bt+"@"+st}ye.path=be.join(",")}var ht=J.headers=J.headers||{};J.subject&&(ht.subject=J.subject),J.body&&(ht.body=J.body);var xt=[];for(var yt in ht)ht[yt]!==br[yt]&&xt.push(yt.replace(Xt,or).replace(Xt,s).replace(Ss,te)+"="+ht[yt].replace(Xt,or).replace(Xt,s).replace(Cr,te));return xt.length&&(ye.query=xt.join("&")),ye}},j=/^([^\:]+)\:(.*)/,Sr={scheme:"urn",parse:function(J,ae){var ye=J.path&&J.path.match(j),be=J;if(ye){var ge=ae.scheme||be.scheme||"urn",Ze=ye[1].toLowerCase(),$e=ye[2],rt=ge+":"+(ae.nid||Ze),bt=Fe[rt];be.nid=Ze,be.nss=$e,be.path=void 0,bt&&(be=bt.parse(be,ae))}else be.error=be.error||"URN can not be parsed.";return be},serialize:function(J,ae){var ye=ae.scheme||J.scheme||"urn",be=J.nid,ge=ye+":"+(ae.nid||be),Ze=Fe[ge];Ze&&(J=Ze.serialize(J,ae));var $e=J,rt=J.nss;return $e.path=(be||ae.nid)+":"+rt,$e}},Vt=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,hr={scheme:"urn:uuid",parse:function(J,ae){var ye=J;return ye.uuid=ye.nss,ye.nss=void 0,!ae.tolerant&&(!ye.uuid||!ye.uuid.match(Vt))&&(ye.error=ye.error||"UUID is not valid."),ye},serialize:function(J,ae){var ye=J;return ye.nss=(J.uuid||"").toLowerCase(),ye}};Fe[Qt.scheme]=Qt,Fe[Wr.scheme]=Wr,Fe[Qe.scheme]=Qe,Fe[_r.scheme]=_r,Fe[Gr.scheme]=Gr,Fe[Sr.scheme]=Sr,Fe[hr.scheme]=hr,t.SCHEMES=Fe,t.pctEncChar=te,t.pctDecChars=ne,t.parse=se,t.removeDotSegments=lt,t.serialize=Dt,t.resolveComponents=Xe,t.resolve=Ue,t.normalize=pt,t.equal=Kt,t.escapeComponent=qt,t.unescapeComponent=We,Object.defineProperty(t,"__esModule",{value:!0})})});var To=M((GQ,yg)=>{b();v();"use strict";yg.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,s,i;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(s=n;s--!=0;)if(!t(e[s],r[s]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(r).length)return!1;for(s=n;s--!=0;)if(!Object.prototype.hasOwnProperty.call(r,i[s]))return!1;for(s=n;s--!=0;){var a=i[s];if(!t(e[a],r[a]))return!1}return!0}return e!==e&&r!==r}});var Eg=M((zQ,xg)=>{b();v();"use strict";xg.exports=function(e){for(var r=0,n=e.length,s=0,i;s<n;)r++,i=e.charCodeAt(s++),i>=55296&&i<=56319&&s<n&&(i=e.charCodeAt(s),(i&64512)==56320&&s++);return r}});var gn=M((HQ,bg)=>{b();v();"use strict";bg.exports={copy:X9,checkDataType:Ec,checkDataTypes:Z9,coerceToTypes:ej,toHash:bc,getProperty:vc,escapeQuotes:Cc,equal:To(),ucs2length:Eg(),varOccurences:tj,varReplace:rj,schemaHasRules:sj,schemaHasRulesExcept:nj,schemaUnknownRules:ij,toQuotedString:Sc,getPathExpr:aj,getPath:oj,getData:lj,unescapeFragment:uj,unescapeJsonPointer:wc,escapeFragment:cj,escapeJsonPointer:Ac};function X9(t,e){e=e||{};for(var r in t)e[r]=t[r];return e}function Ec(t,e,r,n){var s=n?" !== ":" === ",i=n?" || ":" && ",a=n?"!":"",o=n?"":"!";switch(t){case"null":return e+s+"null";case"array":return a+"Array.isArray("+e+")";case"object":return"("+a+e+i+"typeof "+e+s+'"object"'+i+o+"Array.isArray("+e+"))";case"integer":return"(typeof "+e+s+'"number"'+i+o+"("+e+" % 1)"+i+e+s+e+(r?i+a+"isFinite("+e+")":"")+")";case"number":return"(typeof "+e+s+'"'+t+'"'+(r?i+a+"isFinite("+e+")":"")+")";default:return"typeof "+e+s+'"'+t+'"'}}function Z9(t,e,r){switch(t.length){case 1:return Ec(t[0],e,r,!0);default:var n="",s=bc(t);s.array&&s.object&&(n=s.null?"(":"(!"+e+" || ",n+="typeof "+e+' !== "object")',delete s.null,delete s.array,delete s.object),s.number&&delete s.integer;for(var i in s)n+=(n?" && ":"")+Ec(i,e,r,!0);return n}}var vg=bc(["string","number","integer","boolean","null"]);function ej(t,e){if(Array.isArray(e)){for(var r=[],n=0;n<e.length;n++){var s=e[n];(vg[s]||t==="array"&&s==="array")&&(r[r.length]=s)}if(r.length)return r}else{if(vg[e])return[e];if(t==="array"&&e==="array")return["array"]}}function bc(t){for(var e={},r=0;r<t.length;r++)e[t[r]]=!0;return e}var fj=/^[a-z$_][a-z$_0-9]*$/i,pj=/'|\\/g;function vc(t){return typeof t=="number"?"["+t+"]":fj.test(t)?"."+t:"['"+Cc(t)+"']"}function Cc(t){return t.replace(pj,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function tj(t,e){e+="[^0-9]";var r=t.match(new RegExp(e,"g"));return r?r.length:0}function rj(t,e,r){return e+="([^0-9])",r=r.replace(/\$/g,"$$$$"),t.replace(new RegExp(e,"g"),r+"$1")}function sj(t,e){if(typeof t=="boolean")return!t;for(var r in t)if(e[r])return!0}function nj(t,e,r){if(typeof t=="boolean")return!t&&r!="not";for(var n in t)if(n!=r&&e[n])return!0}function ij(t,e){if(typeof t!="boolean"){for(var r in t)if(!e[r])return r}}function Sc(t){return"'"+Cc(t)+"'"}function aj(t,e,r,n){var s=r?"'/' + "+e+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+e+" + ']'":"'[\\'' + "+e+" + '\\']'";return Cg(t,s)}function oj(t,e,r){var n=Sc(r?"/"+Ac(e):vc(e));return Cg(t,n)}var hj=/^\/(?:[^~]|~0|~1)*$/,mj=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function lj(t,e,r){var n,s,i,a;if(t==="")return"rootData";if(t[0]=="/"){if(!hj.test(t))throw new Error("Invalid JSON-pointer: "+t);s=t,i="rootData"}else{if(a=t.match(mj),!a)throw new Error("Invalid JSON-pointer: "+t);if(n=+a[1],s=a[2],s=="#"){if(n>=e)throw new Error("Cannot access property/index "+n+" levels up, current level is "+e);return r[e-n]}if(n>e)throw new Error("Cannot access data "+n+" levels up, current level is "+e);if(i="data"+(e-n||""),!s)return i}for(var o=i,l=s.split("/"),u=0;u<l.length;u++){var c=l[u];c&&(i+=vc(wc(c)),o+=" && "+i)}return o}function Cg(t,e){return t=='""'?e:(t+" + "+e).replace(/([^\\])' \+ '/g,"$1")}function uj(t){return wc(decodeURIComponent(t))}function cj(t){return encodeURIComponent(Ac(t))}function Ac(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function wc(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}});var kc=M((KQ,Sg)=>{b();v();"use strict";var dj=gn();Sg.exports=gj;function gj(t){dj.copy(t,this)}});var wg=M((YQ,Ag)=>{b();v();"use strict";var _s=Ag.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var n=typeof r=="function"?r:r.pre||function(){},s=r.post||function(){};Fo(e,n,s,t,"",t)};_s.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};_s.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};_s.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};_s.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Fo(t,e,r,n,s,i,a,o,l,u){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,s,i,a,o,l,u);for(var c in n){var p=n[c];if(Array.isArray(p)){if(c in _s.arrayKeywords)for(var h=0;h<p.length;h++)Fo(t,e,r,p[h],s+"/"+c+"/"+h,i,s,c,n,h)}else if(c in _s.propsKeywords){if(p&&typeof p=="object")for(var f in p)Fo(t,e,r,p[f],s+"/"+c+"/"+yj(f),i,s,c,n,f)}else(c in _s.keywords||t.allKeys&&!(c in _s.skipKeywords))&&Fo(t,e,r,p,s+"/"+c,i,s,c,n)}r(n,s,i,a,o,l,u)}}function yj(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var Ro=M((JQ,kg)=>{b();v();"use strict";var Ji=gg(),Dg=To(),Po=gn(),Io=kc(),xj=wg();kg.exports=Bs;Bs.normalizeId=Os;Bs.fullPath=_o;Bs.url=Bo;Bs.ids=Ej;Bs.inlineRef=Dc;Bs.schema=Oo;function Bs(t,e,r){var n=this._refs[r];if(typeof n=="string")if(this._refs[n])n=this._refs[n];else return Bs.call(this,t,e,n);if(n=n||this._schemas[r],n instanceof Io)return Dc(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var s=Oo.call(this,e,r),i,a,o;return s&&(i=s.schema,e=s.root,o=s.baseId),i instanceof Io?a=i.validate||t.call(this,i.schema,e,void 0,o):i!==void 0&&(a=Dc(i,this._opts.inlineRefs)?i:t.call(this,i,e,void 0,o)),a}function Oo(t,e){var r=Ji.parse(e),n=Fg(r),s=_o(this._getId(t.schema));if(Object.keys(t.schema).length===0||n!==s){var i=Os(n),a=this._refs[i];if(typeof a=="string")return bj.call(this,t,a,r);if(a instanceof Io)a.validate||this._compile(a),t=a;else if(a=this._schemas[i],a instanceof Io){if(a.validate||this._compile(a),i==Os(e))return{schema:a,root:t,baseId:s};t=a}else return;if(!t.schema)return;s=_o(this._getId(t.schema))}return Tg.call(this,r,s,t.schema,t)}function bj(t,e,r){var n=Oo.call(this,t,e);if(n){var s=n.schema,i=n.baseId;t=n.root;var a=this._getId(s);return a&&(i=Bo(i,a)),Tg.call(this,r,i,s,t)}}var vj=Po.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function Tg(t,e,r,n){if(t.fragment=t.fragment||"",t.fragment.slice(0,1)=="/"){for(var s=t.fragment.split("/"),i=1;i<s.length;i++){var a=s[i];if(a){if(a=Po.unescapeFragment(a),r=r[a],r===void 0)break;var o;if(!vj[a]&&(o=this._getId(r),o&&(e=Bo(e,o)),r.$ref)){var l=Bo(e,r.$ref),u=Oo.call(this,n,l);u&&(r=u.schema,n=u.root,e=u.baseId)}}}if(r!==void 0&&r!==n.schema)return{schema:r,root:n,baseId:e}}}var Cj=Po.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function Dc(t,e){if(e===!1)return!1;if(e===void 0||e===!0)return Tc(t);if(e)return Fc(t)<=e}function Tc(t){var e;if(Array.isArray(t)){for(var r=0;r<t.length;r++)if(e=t[r],typeof e=="object"&&!Tc(e))return!1}else for(var n in t)if(n=="$ref"||(e=t[n],typeof e=="object"&&!Tc(e)))return!1;return!0}function Fc(t){var e=0,r;if(Array.isArray(t)){for(var n=0;n<t.length;n++)if(r=t[n],typeof r=="object"&&(e+=Fc(r)),e==Infinity)return Infinity}else for(var s in t){if(s=="$ref")return Infinity;if(Cj[s])e++;else if(r=t[s],typeof r=="object"&&(e+=Fc(r)+1),e==Infinity)return Infinity}return e}function _o(t,e){e!==!1&&(t=Os(t));var r=Ji.parse(t);return Fg(r)}function Fg(t){return Ji.serialize(t).split("#")[0]+"#"}var Sj=/#\/?$/;function Os(t){return t?t.replace(Sj,""):""}function Bo(t,e){return e=Os(e),Ji.resolve(t,e)}function Ej(t){var e=Os(this._getId(t)),r={"":e},n={"":_o(e,!1)},s={},i=this;return xj(t,{allKeys:!0},function(a,o,l,u,c,p,h){if(o!==""){var f=i._getId(a),m=r[u],x=n[u]+"/"+c;if(h!==void 0&&(x+="/"+(typeof h=="number"?h:Po.escapeFragment(h))),typeof f=="string"){f=m=Os(m?Ji.resolve(m,f):f);var E=i._refs[f];if(typeof E=="string"&&(E=i._refs[E]),E&&E.schema){if(!Dg(a,E.schema))throw new Error('id "'+f+'" resolves to more than one schema')}else if(f!=Os(x))if(f[0]=="#"){if(s[f]&&!Dg(a,s[f]))throw new Error('id "'+f+'" resolves to more than one schema');s[f]=a}else i._refs[f]=x}r[o]=m,n[o]=x}}),s}});var Lo=M((QQ,Pg)=>{b();v();"use strict";var Pc=Ro();Pg.exports={Validation:Ig(Aj),MissingRef:Ig(Ic)};function Aj(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0}Ic.message=function(t,e){return"can't resolve reference "+e+" from id "+t};function Ic(t,e,r){this.message=r||Ic.message(t,e),this.missingRef=Pc.url(t,e),this.missingSchema=Pc.normalizeId(Pc.fullPath(this.missingRef))}function Ig(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}});var _c=M((XQ,_g)=>{b();v();"use strict";_g.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var r=typeof e.cycles=="boolean"?e.cycles:!1,n=e.cmp&&function(i){return function(a){return function(o,l){var u={key:o,value:a[o]},c={key:l,value:a[l]};return i(u,c)}}}(e.cmp),s=[];return function i(a){if(a&&a.toJSON&&typeof a.toJSON=="function"&&(a=a.toJSON()),a!==void 0){if(typeof a=="number")return isFinite(a)?""+a:"null";if(typeof a!="object")return JSON.stringify(a);var o,l;if(Array.isArray(a)){for(l="[",o=0;o<a.length;o++)o&&(l+=","),l+=i(a[o])||"null";return l+"]"}if(a===null)return"null";if(s.indexOf(a)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=s.push(a)-1,c=Object.keys(a).sort(n&&n(a));for(l="",o=0;o<c.length;o++){var p=c[o],h=i(a[p]);!h||(l&&(l+=","),l+=JSON.stringify(p)+":"+h)}return s.splice(u,1),"{"+l+"}"}}(t)}});var Bc=M((ZQ,Bg)=>{b();v();"use strict";Bg.exports=function(e,r,n){var s="",i=e.schema.$async===!0,a=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),o=e.self._getId(e.schema);if(e.opts.strictKeywords){var l=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(l){var u="unknown keyword: "+l;if(e.opts.strictKeywords==="log")e.logger.warn(u);else throw new Error(u)}}if(e.isTop&&(s+=" var validate = ",i&&(e.async=!0,s+="async "),s+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",o&&(e.opts.sourceCode||e.opts.processCode)&&(s+=" "+("/*# sourceURL="+o+" */")+" ")),typeof e.schema=="boolean"||!(a||e.schema.$ref)){var r="false schema",c=e.level,p=e.dataLevel,h=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,w=!e.opts.allErrors,z,x="data"+(p||""),y="valid"+c;if(e.schema===!1){e.isTop?w=!0:s+=" var "+y+" = false; ";var E=E||[];E.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(z||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: 'boolean schema is false' "),e.opts.verbose&&(s+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+x+" "),s+=" } "):s+=" {} ";var S=s;s=E.pop(),!e.compositeRule&&w?e.async?s+=" throw new ValidationError(["+S+"]); ":s+=" validate.errors = ["+S+"]; return false; ":s+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?i?s+=" return data; ":s+=" validate.errors = null; return true; ":s+=" var "+y+" = true; ";return e.isTop&&(s+=" }; return validate; "),s}if(e.isTop){var T=e.isTop,c=e.level=0,p=e.dataLevel=0,x="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var I="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(I);else throw new Error(I)}s+=" var vErrors = null; ",s+=" var errors = 0; ",s+=" if (rootData === undefined) rootData = data; "}else{var c=e.level,p=e.dataLevel,x="data"+(p||"");if(o&&(e.baseId=e.resolve.url(e.baseId,o)),i&&!e.async)throw new Error("async schema in sync schema");s+=" var errs_"+c+" = errors;"}var y="valid"+c,w=!e.opts.allErrors,D="",R="",z,q=e.schema.type,W=Array.isArray(q);if(q&&e.opts.nullable&&e.schema.nullable===!0&&(W?q.indexOf("null")==-1&&(q=q.concat("null")):q!="null"&&(q=[q,"null"],W=!0)),W&&q.length==1&&(q=q[0],W=!1),e.schema.$ref&&a){if(e.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');e.opts.extendRefs!==!0&&(a=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(s+=" "+e.RULES.all.$comment.code(e,"$comment")),q){if(e.opts.coerceTypes)var _=e.util.coerceToTypes(e.opts.coerceTypes,q);var C=e.RULES.types[q];if(_||W||C===!0||C&&!it(C)){var f=e.schemaPath+".type",m=e.errSchemaPath+"/type",f=e.schemaPath+".type",m=e.errSchemaPath+"/type",$=W?"checkDataTypes":"checkDataType";if(s+=" if ("+e.util[$](q,x,e.opts.strictNumbers,!0)+") { ",_){var F="dataType"+c,U="coerced"+c;s+=" var "+F+" = typeof "+x+"; var "+U+" = undefined; ",e.opts.coerceTypes=="array"&&(s+=" if ("+F+" == 'object' && Array.isArray("+x+") && "+x+".length == 1) { "+x+" = "+x+"[0]; "+F+" = typeof "+x+"; if ("+e.util.checkDataType(e.schema.type,x,e.opts.strictNumbers)+") "+U+" = "+x+"; } "),s+=" if ("+U+" !== undefined) ; ";var Q=_;if(Q)for(var B,K=-1,X=Q.length-1;K<X;)B=Q[K+=1],B=="string"?s+=" else if ("+F+" == 'number' || "+F+" == 'boolean') "+U+" = '' + "+x+"; else if ("+x+" === null) "+U+" = ''; ":B=="number"||B=="integer"?(s+=" else if ("+F+" == 'boolean' || "+x+" === null || ("+F+" == 'string' && "+x+" && "+x+" == +"+x+" ",B=="integer"&&(s+=" && !("+x+" % 1)"),s+=")) "+U+" = +"+x+"; "):B=="boolean"?s+=" else if ("+x+" === 'false' || "+x+" === 0 || "+x+" === null) "+U+" = false; else if ("+x+" === 'true' || "+x+" === 1) "+U+" = true; ":B=="null"?s+=" else if ("+x+" === '' || "+x+" === 0 || "+x+" === false) "+U+" = null; ":e.opts.coerceTypes=="array"&&B=="array"&&(s+=" else if ("+F+" == 'string' || "+F+" == 'number' || "+F+" == 'boolean' || "+x+" == null) "+U+" = ["+x+"]; ");s+=" else { ";var E=E||[];E.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(z||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { type: '",W?s+=""+q.join(","):s+=""+q,s+="' } ",e.opts.messages!==!1&&(s+=" , message: 'should be ",W?s+=""+q.join(","):s+=""+q,s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+x+" "),s+=" } "):s+=" {} ";var S=s;s=E.pop(),!e.compositeRule&&w?e.async?s+=" throw new ValidationError(["+S+"]); ":s+=" validate.errors = ["+S+"]; return false; ":s+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } if ("+U+" !== undefined) { ";var ie=p?"data"+(p-1||""):"parentData",ve=p?e.dataPathArr[p]:"parentDataProperty";s+=" "+x+" = "+U+"; ",p||(s+="if ("+ie+" !== undefined)"),s+=" "+ie+"["+ve+"] = "+U+"; } "}else{var E=E||[];E.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(z||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { type: '",W?s+=""+q.join(","):s+=""+q,s+="' } ",e.opts.messages!==!1&&(s+=" , message: 'should be ",W?s+=""+q.join(","):s+=""+q,s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+x+" "),s+=" } "):s+=" {} ";var S=s;s=E.pop(),!e.compositeRule&&w?e.async?s+=" throw new ValidationError(["+S+"]); ":s+=" validate.errors = ["+S+"]; return false; ":s+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } "}}if(e.schema.$ref&&!a)s+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",w&&(s+=" } if (errors === ",T?s+="0":s+="errs_"+c,s+=") { ",R+="}");else{var Ae=e.RULES;if(Ae){for(var C,me=-1,ce=Ae.length-1;me<ce;)if(C=Ae[me+=1],it(C)){if(C.type&&(s+=" if ("+e.util.checkDataType(C.type,x,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(C.type=="object"&&e.schema.properties){var h=e.schema.properties,Fe=Object.keys(h),te=Fe;if(te)for(var ne,ue=-1,re=te.length-1;ue<re;){ne=te[ue+=1];var fe=h[ne];if(fe.default!==void 0){var Ce=x+e.util.getProperty(ne);if(e.compositeRule){if(e.opts.strictDefaults){var I="default is ignored for: "+Ce;if(e.opts.strictDefaults==="log")e.logger.warn(I);else throw new Error(I)}}else s+=" if ("+Ce+" === undefined ",e.opts.useDefaults=="empty"&&(s+=" || "+Ce+" === null || "+Ce+" === '' "),s+=" ) "+Ce+" = ",e.opts.useDefaults=="shared"?s+=" "+e.useDefault(fe.default)+" ":s+=" "+JSON.stringify(fe.default)+" ",s+="; "}}}else if(C.type=="array"&&Array.isArray(e.schema.items)){var Ge=e.schema.items;if(Ge){for(var fe,K=-1,V=Ge.length-1;K<V;)if(fe=Ge[K+=1],fe.default!==void 0){var Ce=x+"["+K+"]";if(e.compositeRule){if(e.opts.strictDefaults){var I="default is ignored for: "+Ce;if(e.opts.strictDefaults==="log")e.logger.warn(I);else throw new Error(I)}}else s+=" if ("+Ce+" === undefined ",e.opts.useDefaults=="empty"&&(s+=" || "+Ce+" === null || "+Ce+" === '' "),s+=" ) "+Ce+" = ",e.opts.useDefaults=="shared"?s+=" "+e.useDefault(fe.default)+" ":s+=" "+JSON.stringify(fe.default)+" ",s+="; "}}}}var se=C.rules;if(se){for(var Pe,Je=-1,nt=se.length-1;Je<nt;)if(Pe=se[Je+=1],lt(Pe)){var Ye=Pe.code(e,Pe.keyword,C.type);Ye&&(s+=" "+Ye+" ",w&&(D+="}"))}}if(w&&(s+=" "+D+" ",D=""),C.type&&(s+=" } ",q&&q===C.type&&!_)){s+=" else { ";var f=e.schemaPath+".type",m=e.errSchemaPath+"/type",E=E||[];E.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(z||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { type: '",W?s+=""+q.join(","):s+=""+q,s+="' } ",e.opts.messages!==!1&&(s+=" , message: 'should be ",W?s+=""+q.join(","):s+=""+q,s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+x+" "),s+=" } "):s+=" {} ";var S=s;s=E.pop(),!e.compositeRule&&w?e.async?s+=" throw new ValidationError(["+S+"]); ":s+=" validate.errors = ["+S+"]; return false; ":s+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } "}w&&(s+=" if (errors === ",T?s+="0":s+="errs_"+c,s+=") { ",R+="}")}}}w&&(s+=" "+R+" "),T?(i?(s+=" if (errors === 0) return data; ",s+=" else throw new ValidationError(vErrors); "):(s+=" validate.errors = vErrors; ",s+=" return errors === 0; "),s+=" }; return validate;"):s+=" var "+y+" = errors === errs_"+c+";";function it(Xe){for(var Ue=Xe.rules,pt=0;pt<Ue.length;pt++)if(lt(Ue[pt]))return!0}function lt(Xe){return e.schema[Xe.keyword]!==void 0||Xe.implements&&Dt(Xe)}function Dt(Xe){for(var Ue=Xe.implements,pt=0;pt<Ue.length;pt++)if(e.schema[Ue[pt]]!==void 0)return!0}return s}});var Mg=M((eX,Og)=>{b();v();"use strict";var No=Ro(),Mo=gn(),Rg=Lo(),wj=_c(),Lg=Bc(),kj=Mo.ucs2length,Dj=To(),Tj=Rg.Validation;Og.exports=Oc;function Oc(t,e,r,n){var s=this,i=this._opts,a=[void 0],o={},l=[],u={},c=[],p={},h=[];e=e||{schema:t,refVal:a,refs:o};var f=Fj.call(this,t,e,n),m=this._compilations[f.index];if(f.compiling)return m.callValidate=I;var x=this._formats,E=this.RULES;try{var S=y(t,e,r,n);m.validate=S;var T=m.callValidate;return T&&(T.schema=S.schema,T.errors=null,T.refs=S.refs,T.refVal=S.refVal,T.root=S.root,T.$async=S.$async,i.sourceCode&&(T.source=S.source)),S}finally{Pj.call(this,t,e,n)}function I(){var $=m.validate,F=$.apply(this,arguments);return I.errors=$.errors,F}function y($,F,U,Q){var B=!F||F&&F.schema==$;if(F.schema!=e.schema)return Oc.call(s,$,F,U,Q);var K=$.$async===!0,X=Lg({isTop:!0,schema:$,isRoot:B,baseId:Q,root:F,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:Rg.MissingRef,RULES:E,validate:Lg,util:Mo,resolve:No,resolveRef:w,usePattern:W,useDefault:_,useCustomRule:C,opts:i,formats:x,logger:s.logger,self:s});X=jo(a,Bj)+jo(l,Ij)+jo(c,_j)+jo(h,Oj)+X,i.processCode&&(X=i.processCode(X,$));var ie;try{var ve=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",X);ie=ve(s,E,x,e,a,c,h,Dj,kj,Tj),a[0]=ie}catch(Ae){throw s.logger.error("Error compiling schema, function code:",X),Ae}return ie.schema=$,ie.errors=null,ie.refs=o,ie.refVal=a,ie.root=B?ie:F,K&&(ie.$async=!0),i.sourceCode===!0&&(ie.source={code:X,patterns:l,defaults:c}),ie}function w($,F,U){F=No.url($,F);var Q=o[F],B,K;if(Q!==void 0)return B=a[Q],K="refVal["+Q+"]",q(B,K);if(!U&&e.refs){var X=e.refs[F];if(X!==void 0)return B=e.refVal[X],K=D(F,B),q(B,K)}K=D(F);var ie=No.call(s,y,e,F);if(ie===void 0){var ve=r&&r[F];ve&&(ie=No.inlineRef(ve,i.inlineRefs)?ve:Oc.call(s,ve,e,r,$))}if(ie===void 0)R(F);else return z(F,ie),q(ie,K)}function D($,F){var U=a.length;return a[U]=F,o[$]=U,"refVal"+U}function R($){delete o[$]}function z($,F){var U=o[$];a[U]=F}function q($,F){return typeof $=="object"||typeof $=="boolean"?{code:F,schema:$,inline:!0}:{code:F,$async:$&&!!$.$async}}function W($){var F=u[$];return F===void 0&&(F=u[$]=l.length,l[F]=$),"pattern"+F}function _($){switch(typeof $){case"boolean":case"number":return""+$;case"string":return Mo.toQuotedString($);case"object":if($===null)return"null";var F=wj($),U=p[F];return U===void 0&&(U=p[F]=c.length,c[U]=$),"default"+U}}function C($,F,U,Q){if(s._opts.validateSchema!==!1){var B=$.definition.dependencies;if(B&&!B.every(function(te){return Object.prototype.hasOwnProperty.call(U,te)}))throw new Error("parent schema must have all required keywords: "+B.join(","));var K=$.definition.validateSchema;if(K){var X=K(F);if(!X){var ie="keyword schema is invalid: "+s.errorsText(K.errors);if(s._opts.validateSchema=="log")s.logger.error(ie);else throw new Error(ie)}}}var ve=$.definition.compile,Ae=$.definition.inline,me=$.definition.macro,ce;if(ve)ce=ve.call(s,F,U,Q);else if(me)ce=me.call(s,F,U,Q),i.validateSchema!==!1&&s.validateSchema(ce,!0);else if(Ae)ce=Ae.call(s,Q,$.keyword,F,U);else if(ce=$.definition.validate,!ce)return;if(ce===void 0)throw new Error('custom keyword "'+$.keyword+'"failed to compile');var Fe=h.length;return h[Fe]=ce,{code:"customRule"+Fe,validate:ce}}}function Fj(t,e,r){var n=Ng.call(this,t,e,r);return n>=0?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:t,root:e,baseId:r},{index:n,compiling:!1})}function Pj(t,e,r){var n=Ng.call(this,t,e,r);n>=0&&this._compilations.splice(n,1)}function Ng(t,e,r){for(var n=0;n<this._compilations.length;n++){var s=this._compilations[n];if(s.schema==t&&s.root==e&&s.baseId==r)return n}return-1}function Ij(t,e){return"var pattern"+t+" = new RegExp("+Mo.toQuotedString(e[t])+");"}function _j(t){return"var default"+t+" = defaults["+t+"];"}function Bj(t,e){return e[t]===void 0?"":"var refVal"+t+" = refVal["+t+"];"}function Oj(t){return"var customRule"+t+" = customRules["+t+"];"}function jo(t,e){if(!t.length)return"";for(var r="",n=0;n<t.length;n++)r+=e(n,t);return r}});var qg=M((tX,jg)=>{b();v();"use strict";var qo=jg.exports=function(){this._cache={}};qo.prototype.put=function(e,r){this._cache[e]=r};qo.prototype.get=function(e){return this._cache[e]};qo.prototype.del=function(e){delete this._cache[e]};qo.prototype.clear=function(){this._cache={}}});var Xg=M((rX,Vg)=>{b();v();"use strict";var Rj=gn(),Lj=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Nj=[0,31,28,31,30,31,30,31,31,30,31,30,31],Mj=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Ug=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,jj=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,qj=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,$g=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,Wg=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,Gg=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,zg=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Hg=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Kg=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;Vg.exports=Vo;function Vo(t){return t=t=="full"?"full":"fast",Rj.copy(Vo[t])}Vo.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":$g,url:Wg,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:Ug,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:Yg,uuid:Gg,"json-pointer":zg,"json-pointer-uri-fragment":Hg,"relative-json-pointer":Kg};Vo.full={date:Jg,time:Qg,"date-time":Vj,uri:Uj,"uri-reference":qj,"uri-template":$g,url:Wg,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:Ug,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:Yg,uuid:Gg,"json-pointer":zg,"json-pointer-uri-fragment":Hg,"relative-json-pointer":Kg};function $j(t){return t%4==0&&(t%100!=0||t%400==0)}function Jg(t){var e=t.match(Lj);if(!e)return!1;var r=+e[1],n=+e[2],s=+e[3];return n>=1&&n<=12&&s>=1&&s<=(n==2&&$j(r)?29:Nj[n])}function Qg(t,e){var r=t.match(Mj);if(!r)return!1;var n=r[1],s=r[2],i=r[3],a=r[5];return(n<=23&&s<=59&&i<=59||n==23&&s==59&&i==60)&&(!e||a)}var Wj=/t|\s/i;function Vj(t){var e=t.split(Wj);return e.length==2&&Jg(e[0])&&Qg(e[1],!0)}var Gj=/\/|:/;function Uj(t){return Gj.test(t)&&jj.test(t)}var zj=/[^\\]\\Z/;function Yg(t){if(zj.test(t))return!1;try{return new RegExp(t),!0}catch(e){return!1}}});var e0=M((sX,Zg)=>{b();v();"use strict";Zg.exports=function(e,r,n){var s=" ",i=e.level,a=e.dataLevel,o=e.schema[r],l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(a||""),p="valid"+i,h,f;if(o=="#"||o=="#/")e.isRoot?(h=e.async,f="validate"):(h=e.root.schema.$async===!0,f="root.refVal[0]");else{var m=e.resolveRef(e.baseId,o,e.isRoot);if(m===void 0){var x=e.MissingRefError.message(e.baseId,o);if(e.opts.missingRefs=="fail"){e.logger.error(x);var E=E||[];E.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { ref: '"+e.util.escapeQuotes(o)+"' } ",e.opts.messages!==!1&&(s+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(o)+"' "),e.opts.verbose&&(s+=" , schema: "+e.util.toQuotedString(o)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),s+=" } "):s+=" {} ";var S=s;s=E.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+S+"]); ":s+=" validate.errors = ["+S+"]; return false; ":s+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(s+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(x),u&&(s+=" if (true) { ");else throw new e.MissingRefError(e.baseId,o,x)}else if(m.inline){var T=e.util.copy(e);T.level++;var I="valid"+T.level;T.schema=m.schema,T.schemaPath="",T.errSchemaPath=o;var y=e.validate(T).replace(/validate\.schema/g,m.code);s+=" "+y+" ",u&&(s+=" if ("+I+") { ")}else h=m.$async===!0||e.async&&m.$async!==!1,f=m.code}if(f){var E=E||[];E.push(s),s="",e.opts.passContext?s+=" "+f+".call(this, ":s+=" "+f+"( ",s+=" "+c+", (dataPath || '')",e.errorPath!='""'&&(s+=" + "+e.errorPath);var w=a?"data"+(a-1||""):"parentData",D=a?e.dataPathArr[a]:"parentDataProperty";s+=" , "+w+" , "+D+", rootData) ";var R=s;if(s=E.pop(),h){if(!e.async)throw new Error("async schema referenced by sync schema");u&&(s+=" var "+p+"; "),s+=" try { await "+R+"; ",u&&(s+=" "+p+" = true; "),s+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(s+=" "+p+" = false; "),s+=" } ",u&&(s+=" if ("+p+") { ")}else s+=" if (!"+R+") { if (vErrors === null) vErrors = "+f+".errors; else vErrors = vErrors.concat("+f+".errors); errors = vErrors.length; } ",u&&(s+=" else { ")}return s}});var r0=M((nX,t0)=>{b();v();"use strict";t0.exports=function(e,r,n){var s=" ",i=e.schema[r],a=e.schemaPath+e.util.getProperty(r),o=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,u=e.util.copy(e),c="";u.level++;var p="valid"+u.level,h=u.baseId,f=!0,m=i;if(m)for(var x,E=-1,S=m.length-1;E<S;)x=m[E+=1],(e.opts.strictKeywords?typeof x=="object"&&Object.keys(x).length>0||x===!1:e.util.schemaHasRules(x,e.RULES.all))&&(f=!1,u.schema=x,u.schemaPath=a+"["+E+"]",u.errSchemaPath=o+"/"+E,s+=" "+e.validate(u)+" ",u.baseId=h,l&&(s+=" if ("+p+") { ",c+="}"));return l&&(f?s+=" if (true) { ":s+=" "+c.slice(0,-1)+" "),s}});var n0=M((iX,s0)=>{b();v();"use strict";s0.exports=function(e,r,n){var s=" ",i=e.level,a=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f="errs__"+i,m=e.util.copy(e),x="";m.level++;var E="valid"+m.level,S=o.every(function(z){return e.opts.strictKeywords?typeof z=="object"&&Object.keys(z).length>0||z===!1:e.util.schemaHasRules(z,e.RULES.all)});if(S){var T=m.baseId;s+=" var "+f+" = errors; var "+h+" = false; ";var I=e.compositeRule;e.compositeRule=m.compositeRule=!0;var y=o;if(y)for(var w,D=-1,R=y.length-1;D<R;)w=y[D+=1],m.schema=w,m.schemaPath=l+"["+D+"]",m.errSchemaPath=u+"/"+D,s+=" "+e.validate(m)+" ",m.baseId=T,s+=" "+h+" = "+h+" || "+E+"; if (!"+h+") { ",x+="}";e.compositeRule=m.compositeRule=I,s+=" "+x+" if (!"+h+") { var err = ",e.createErrors!==!1?(s+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; "),s+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.opts.allErrors&&(s+=" } ")}else c&&(s+=" if (true) { ");return s}});var a0=M((aX,i0)=>{b();v();"use strict";i0.exports=function(e,r,n){var s=" ",i=e.schema[r],a=e.errSchemaPath+"/"+r,o=!e.opts.allErrors,l=e.util.toQuotedString(i);return e.opts.$comment===!0?s+=" console.log("+l+");":typeof e.opts.$comment=="function"&&(s+=" self._opts.$comment("+l+", "+e.util.toQuotedString(a)+", validate.root.schema);"),s}});var l0=M((oX,o0)=>{b();v();"use strict";o0.exports=function(e,r,n){var s=" ",i=e.level,a=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f=e.opts.$data&&o&&o.$data,m;f?(s+=" var schema"+i+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ",m="schema"+i):m=o,f||(s+=" var schema"+i+" = validate.schema"+l+";"),s+="var "+h+" = equal("+p+", schema"+i+"); if (!"+h+") { ";var x=x||[];x.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValue: schema"+i+" } ",e.opts.messages!==!1&&(s+=" , message: 'should be equal to constant' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var E=s;return s=x.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+E+"]); ":s+=" validate.errors = ["+E+"]; return false; ":s+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" }",c&&(s+=" else { "),s}});var c0=M((lX,u0)=>{b();v();"use strict";u0.exports=function(e,r,n){var s=" ",i=e.level,a=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f="errs__"+i,m=e.util.copy(e),x="";m.level++;var E="valid"+m.level,S="i"+i,T=m.dataLevel=e.dataLevel+1,I="data"+T,y=e.baseId,w=e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all);if(s+="var "+f+" = errors;var "+h+";",w){var D=e.compositeRule;e.compositeRule=m.compositeRule=!0,m.schema=o,m.schemaPath=l,m.errSchemaPath=u,s+=" var "+E+" = false; for (var "+S+" = 0; "+S+" < "+p+".length; "+S+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,S,e.opts.jsonPointers,!0);var R=p+"["+S+"]";m.dataPathArr[T]=S;var z=e.validate(m);m.baseId=y,e.util.varOccurences(z,I)<2?s+=" "+e.util.varReplace(z,I,R)+" ":s+=" var "+I+" = "+R+"; "+z+" ",s+=" if ("+E+") break; } ",e.compositeRule=m.compositeRule=D,s+=" "+x+" if (!"+E+") {"}else s+=" if ("+p+".length == 0) {";var q=q||[];q.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: 'should contain a valid item' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var W=s;return s=q.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+W+"]); ":s+=" validate.errors = ["+W+"]; return false; ":s+=" var err = "+W+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else { ",w&&(s+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } "),e.opts.allErrors&&(s+=" } "),s}});var p0=M((uX,f0)=>{b();v();"use strict";f0.exports=function(e,r,n){var s=" ",i=e.level,a=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(a||""),h="errs__"+i,f=e.util.copy(e),m="";f.level++;var x="valid"+f.level,E={},S={},T=e.opts.ownProperties;for(D in o)if(D!="__proto__"){var I=o[D],y=Array.isArray(I)?S:E;y[D]=I}s+="var "+h+" = errors;";var w=e.errorPath;s+="var missing"+i+";";for(var D in S)if(y=S[D],y.length){if(s+=" if ( "+p+e.util.getProperty(D)+" !== undefined ",T&&(s+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(D)+"') "),c){s+=" && ( ";var R=y;if(R)for(var z,q=-1,W=R.length-1;q<W;){z=R[q+=1],q&&(s+=" || ");var _=e.util.getProperty(z),C=p+_;s+=" ( ( "+C+" === undefined ",T&&(s+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(z)+"') "),s+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?z:_)+") ) "}s+=")) { ";var $="missing"+i,F="' + "+$+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(w,$,!0):w+" + "+$);var U=U||[];U.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { property: '"+e.util.escapeQuotes(D)+"', missingProperty: '"+F+"', depsCount: "+y.length+", deps: '"+e.util.escapeQuotes(y.length==1?y[0]:y.join(", "))+"' } ",e.opts.messages!==!1&&(s+=" , message: 'should have ",y.length==1?s+="property "+e.util.escapeQuotes(y[0]):s+="properties "+e.util.escapeQuotes(y.join(", ")),s+=" when property "+e.util.escapeQuotes(D)+" is present' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var Q=s;s=U.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+Q+"]); ":s+=" validate.errors = ["+Q+"]; return false; ":s+=" var err = "+Q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{s+=" ) { ";var B=y;if(B)for(var z,K=-1,X=B.length-1;K<X;){z=B[K+=1];var _=e.util.getProperty(z),F=e.util.escapeQuotes(z),C=p+_;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(w,z,e.opts.jsonPointers)),s+=" if ( "+C+" === undefined ",T&&(s+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(z)+"') "),s+=") { var err = ",e.createErrors!==!1?(s+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { property: '"+e.util.escapeQuotes(D)+"', missingProperty: '"+F+"', depsCount: "+y.length+", deps: '"+e.util.escapeQuotes(y.length==1?y[0]:y.join(", "))+"' } ",e.opts.messages!==!1&&(s+=" , message: 'should have ",y.length==1?s+="property "+e.util.escapeQuotes(y[0]):s+="properties "+e.util.escapeQuotes(y.join(", ")),s+=" when property "+e.util.escapeQuotes(D)+" is present' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}s+=" } ",c&&(m+="}",s+=" else { ")}e.errorPath=w;var ie=f.baseId;for(var D in E){var I=E[D];(e.opts.strictKeywords?typeof I=="object"&&Object.keys(I).length>0||I===!1:e.util.schemaHasRules(I,e.RULES.all))&&(s+=" "+x+" = true; if ( "+p+e.util.getProperty(D)+" !== undefined ",T&&(s+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(D)+"') "),s+=") { ",f.schema=I,f.schemaPath=l+e.util.getProperty(D),f.errSchemaPath=u+"/"+e.util.escapeFragment(D),s+=" "+e.validate(f)+" ",f.baseId=ie,s+=" } ",c&&(s+=" if ("+x+") { ",m+="}"))}return c&&(s+=" "+m+" if ("+h+" == errors) {"),s}});var m0=M((cX,h0)=>{b();v();"use strict";h0.exports=function(e,r,n){var s=" ",i=e.level,a=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f=e.opts.$data&&o&&o.$data,m;f?(s+=" var schema"+i+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ",m="schema"+i):m=o;var x="i"+i,E="schema"+i;f||(s+=" var "+E+" = validate.schema"+l+";"),s+="var "+h+";",f&&(s+=" if (schema"+i+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+i+")) "+h+" = false; else {"),s+=""+h+" = false;for (var "+x+"=0; "+x+"<"+E+".length; "+x+"++) if (equal("+p+", "+E+"["+x+"])) { "+h+" = true; break; }",f&&(s+=" } "),s+=" if (!"+h+") { ";var S=S||[];S.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValues: schema"+i+" } ",e.opts.messages!==!1&&(s+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var T=s;return s=S.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+T+"]); ":s+=" validate.errors = ["+T+"]; return false; ":s+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" }",c&&(s+=" else { "),s}});var g0=M((fX,d0)=>{b();v();"use strict";d0.exports=function(e,r,n){var s=" ",i=e.level,a=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(a||"");if(e.opts.format===!1)return c&&(s+=" if (true) { "),s;var h=e.opts.$data&&o&&o.$data,f;h?(s+=" var schema"+i+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=o;var m=e.opts.unknownFormats,x=Array.isArray(m);if(h){var E="format"+i,S="isObject"+i,T="formatType"+i;s+=" var "+E+" = formats["+f+"]; var "+S+" = typeof "+E+" == 'object' && !("+E+" instanceof RegExp) && "+E+".validate; var "+T+" = "+S+" && "+E+".type || 'string'; if ("+S+") { ",e.async&&(s+=" var async"+i+" = "+E+".async; "),s+=" "+E+" = "+E+".validate; } if ( ",h&&(s+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),s+=" (",m!="ignore"&&(s+=" ("+f+" && !"+E+" ",x&&(s+=" && self._opts.unknownFormats.indexOf("+f+") == -1 "),s+=") || "),s+=" ("+E+" && "+T+" == '"+n+"' && !(typeof "+E+" == 'function' ? ",e.async?s+=" (async"+i+" ? await "+E+"("+p+") : "+E+"("+p+")) ":s+=" "+E+"("+p+") ",s+=" : "+E+".test("+p+"))))) {"}else{var E=e.formats[o];if(!E){if(m=="ignore")return e.logger.warn('unknown format "'+o+'" ignored in schema at path "'+e.errSchemaPath+'"'),c&&(s+=" if (true) { "),s;if(x&&m.indexOf(o)>=0)return c&&(s+=" if (true) { "),s;throw new Error('unknown format "'+o+'" is used in schema at path "'+e.errSchemaPath+'"')}var S=typeof E=="object"&&!(E instanceof RegExp)&&E.validate,T=S&&E.type||"string";if(S){var I=E.async===!0;E=E.validate}if(T!=n)return c&&(s+=" if (true) { "),s;if(I){if(!e.async)throw new Error("async format in sync schema");var y="formats"+e.util.getProperty(o)+".validate";s+=" if (!(await "+y+"("+p+"))) { "}else{s+=" if (! ";var y="formats"+e.util.getProperty(o);S&&(y+=".validate"),typeof E=="function"?s+=" "+y+"("+p+") ":s+=" "+y+".test("+p+") ",s+=") { "}}var w=w||[];w.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { format: ",h?s+=""+f:s+=""+e.util.toQuotedString(o),s+=" } ",e.opts.messages!==!1&&(s+=` , message: 'should match format "`,h?s+="' + "+f+" + '":s+=""+e.util.escapeQuotes(o),s+=`"' `),e.opts.verbose&&(s+=" , schema: ",h?s+="validate.schema"+l:s+=""+e.util.toQuotedString(o),s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var D=s;return s=w.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+D+"]); ":s+=" validate.errors = ["+D+"]; return false; ":s+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",c&&(s+=" else { "),s}});var x0=M((pX,y0)=>{b();v();"use strict";y0.exports=function(e,r,n){var s=" ",i=e.level,a=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f="errs__"+i,m=e.util.copy(e);m.level++;var x="valid"+m.level,E=e.schema.then,S=e.schema.else,T=E!==void 0&&(e.opts.strictKeywords?typeof E=="object"&&Object.keys(E).length>0||E===!1:e.util.schemaHasRules(E,e.RULES.all)),I=S!==void 0&&(e.opts.strictKeywords?typeof S=="object"&&Object.keys(S).length>0||S===!1:e.util.schemaHasRules(S,e.RULES.all)),y=m.baseId;if(T||I){var w;m.createErrors=!1,m.schema=o,m.schemaPath=l,m.errSchemaPath=u,s+=" var "+f+" = errors; var "+h+" = true; ";var D=e.compositeRule;e.compositeRule=m.compositeRule=!0,s+=" "+e.validate(m)+" ",m.baseId=y,m.createErrors=!0,s+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.compositeRule=m.compositeRule=D,T?(s+=" if ("+x+") { ",m.schema=e.schema.then,m.schemaPath=e.schemaPath+".then",m.errSchemaPath=e.errSchemaPath+"/then",s+=" "+e.validate(m)+" ",m.baseId=y,s+=" "+h+" = "+x+"; ",T&&I?(w="ifClause"+i,s+=" var "+w+" = 'then'; "):w="'then'",s+=" } ",I&&(s+=" else { ")):s+=" if (!"+x+") { ",I&&(m.schema=e.schema.else,m.schemaPath=e.schemaPath+".else",m.errSchemaPath=e.errSchemaPath+"/else",s+=" "+e.validate(m)+" ",m.baseId=y,s+=" "+h+" = "+x+"; ",T&&I?(w="ifClause"+i,s+=" var "+w+" = 'else'; "):w="'else'",s+=" } "),s+=" if (!"+h+") { var err = ",e.createErrors!==!1?(s+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { failingKeyword: "+w+" } ",e.opts.messages!==!1&&(s+=` , message: 'should match "' + `+w+` + '" schema' `),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; "),s+=" } ",c&&(s+=" else { ")}else c&&(s+=" if (true) { ");return s}});var b0=M((hX,E0)=>{b();v();"use strict";E0.exports=function(e,r,n){var s=" ",i=e.level,a=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f="errs__"+i,m=e.util.copy(e),x="";m.level++;var E="valid"+m.level,S="i"+i,T=m.dataLevel=e.dataLevel+1,I="data"+T,y=e.baseId;if(s+="var "+f+" = errors;var "+h+";",Array.isArray(o)){var w=e.schema.additionalItems;if(w===!1){s+=" "+h+" = "+p+".length <= "+o.length+"; ";var D=u;u=e.errSchemaPath+"/additionalItems",s+=" if (!"+h+") { ";var R=R||[];R.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+o.length+" } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT have more than "+o.length+" items' "),e.opts.verbose&&(s+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var z=s;s=R.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+z+"]); ":s+=" validate.errors = ["+z+"]; return false; ":s+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",u=D,c&&(x+="}",s+=" else { ")}var q=o;if(q){for(var W,_=-1,C=q.length-1;_<C;)if(W=q[_+=1],e.opts.strictKeywords?typeof W=="object"&&Object.keys(W).length>0||W===!1:e.util.schemaHasRules(W,e.RULES.all)){s+=" "+E+" = true; if ("+p+".length > "+_+") { ";var $=p+"["+_+"]";m.schema=W,m.schemaPath=l+"["+_+"]",m.errSchemaPath=u+"/"+_,m.errorPath=e.util.getPathExpr(e.errorPath,_,e.opts.jsonPointers,!0),m.dataPathArr[T]=_;var F=e.validate(m);m.baseId=y,e.util.varOccurences(F,I)<2?s+=" "+e.util.varReplace(F,I,$)+" ":s+=" var "+I+" = "+$+"; "+F+" ",s+=" } ",c&&(s+=" if ("+E+") { ",x+="}")}}if(typeof w=="object"&&(e.opts.strictKeywords?typeof w=="object"&&Object.keys(w).length>0||w===!1:e.util.schemaHasRules(w,e.RULES.all))){m.schema=w,m.schemaPath=e.schemaPath+".additionalItems",m.errSchemaPath=e.errSchemaPath+"/additionalItems",s+=" "+E+" = true; if ("+p+".length > "+o.length+") { for (var "+S+" = "+o.length+"; "+S+" < "+p+".length; "+S+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,S,e.opts.jsonPointers,!0);var $=p+"["+S+"]";m.dataPathArr[T]=S;var F=e.validate(m);m.baseId=y,e.util.varOccurences(F,I)<2?s+=" "+e.util.varReplace(F,I,$)+" ":s+=" var "+I+" = "+$+"; "+F+" ",c&&(s+=" if (!"+E+") break; "),s+=" } } ",c&&(s+=" if ("+E+") { ",x+="}")}}else if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){m.schema=o,m.schemaPath=l,m.errSchemaPath=u,s+=" for (var "+S+" = "+0+"; "+S+" < "+p+".length; "+S+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,S,e.opts.jsonPointers,!0);var $=p+"["+S+"]";m.dataPathArr[T]=S;var F=e.validate(m);m.baseId=y,e.util.varOccurences(F,I)<2?s+=" "+e.util.varReplace(F,I,$)+" ":s+=" var "+I+" = "+$+"; "+F+" ",c&&(s+=" if (!"+E+") break; "),s+=" }"}return c&&(s+=" "+x+" if ("+f+" == errors) {"),s}});var Rc=M((mX,v0)=>{b();v();"use strict";v0.exports=function(e,r,n){var s=" ",i=e.level,a=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p,h="data"+(a||""),f=e.opts.$data&&o&&o.$data,m;f?(s+=" var schema"+i+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ",m="schema"+i):m=o;var x=r=="maximum",E=x?"exclusiveMaximum":"exclusiveMinimum",S=e.schema[E],T=e.opts.$data&&S&&S.$data,I=x?"<":">",y=x?">":"<",p=void 0;if(!(f||typeof o=="number"||o===void 0))throw new Error(r+" must be number");if(!(T||S===void 0||typeof S=="number"||typeof S=="boolean"))throw new Error(E+" must be number or boolean");if(T){var w=e.util.getData(S.$data,a,e.dataPathArr),D="exclusive"+i,R="exclType"+i,z="exclIsNumber"+i,q="op"+i,W="' + "+q+" + '";s+=" var schemaExcl"+i+" = "+w+"; ",w="schemaExcl"+i,s+=" var "+D+"; var "+R+" = typeof "+w+"; if ("+R+" != 'boolean' && "+R+" != 'undefined' && "+R+" != 'number') { ";var p=E,_=_||[];_.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(p||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: '"+E+" should be boolean' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var C=s;s=_.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+C+"]); ":s+=" validate.errors = ["+C+"]; return false; ":s+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else if ( ",f&&(s+=" ("+m+" !== undefined && typeof "+m+" != 'number') || "),s+=" "+R+" == 'number' ? ( ("+D+" = "+m+" === undefined || "+w+" "+I+"= "+m+") ? "+h+" "+y+"= "+w+" : "+h+" "+y+" "+m+" ) : ( ("+D+" = "+w+" === true) ? "+h+" "+y+"= "+m+" : "+h+" "+y+" "+m+" ) || "+h+" !== "+h+") { var op"+i+" = "+D+" ? '"+I+"' : '"+I+"='; ",o===void 0&&(p=E,u=e.errSchemaPath+"/"+E,m=w,f=T)}else{var z=typeof S=="number",W=I;if(z&&f){var q="'"+W+"'";s+=" if ( ",f&&(s+=" ("+m+" !== undefined && typeof "+m+" != 'number') || "),s+=" ( "+m+" === undefined || "+S+" "+I+"= "+m+" ? "+h+" "+y+"= "+S+" : "+h+" "+y+" "+m+" ) || "+h+" !== "+h+") { "}else{z&&o===void 0?(D=!0,p=E,u=e.errSchemaPath+"/"+E,m=S,y+="="):(z&&(m=Math[x?"min":"max"](S,o)),S===(z?m:!0)?(D=!0,p=E,u=e.errSchemaPath+"/"+E,y+="="):(D=!1,W+="="));var q="'"+W+"'";s+=" if ( ",f&&(s+=" ("+m+" !== undefined && typeof "+m+" != 'number') || "),s+=" "+h+" "+y+" "+m+" || "+h+" !== "+h+") { "}}p=p||r;var _=_||[];_.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(p||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+q+", limit: "+m+", exclusive: "+D+" } ",e.opts.messages!==!1&&(s+=" , message: 'should be "+W+" ",f?s+="' + "+m:s+=""+m+"'"),e.opts.verbose&&(s+=" , schema: ",f?s+="validate.schema"+l:s+=""+o,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var C=s;return s=_.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+C+"]); ":s+=" validate.errors = ["+C+"]; return false; ":s+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",c&&(s+=" else { "),s}});var Lc=M((dX,C0)=>{b();v();"use strict";C0.exports=function(e,r,n){var s=" ",i=e.level,a=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p,h="data"+(a||""),f=e.opts.$data&&o&&o.$data,m;if(f?(s+=" var schema"+i+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ",m="schema"+i):m=o,!(f||typeof o=="number"))throw new Error(r+" must be number");var x=r=="maxItems"?">":"<";s+="if ( ",f&&(s+=" ("+m+" !== undefined && typeof "+m+" != 'number') || "),s+=" "+h+".length "+x+" "+m+") { ";var p=r,E=E||[];E.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(p||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+m+" } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT have ",r=="maxItems"?s+="more":s+="fewer",s+=" than ",f?s+="' + "+m+" + '":s+=""+o,s+=" items' "),e.opts.verbose&&(s+=" , schema: ",f?s+="validate.schema"+l:s+=""+o,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var S=s;return s=E.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+S+"]); ":s+=" validate.errors = ["+S+"]; return false; ":s+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",c&&(s+=" else { "),s}});var Nc=M((gX,S0)=>{b();v();"use strict";S0.exports=function(e,r,n){var s=" ",i=e.level,a=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p,h="data"+(a||""),f=e.opts.$data&&o&&o.$data,m;if(f?(s+=" var schema"+i+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ",m="schema"+i):m=o,!(f||typeof o=="number"))throw new Error(r+" must be number");var x=r=="maxLength"?">":"<";s+="if ( ",f&&(s+=" ("+m+" !== undefined && typeof "+m+" != 'number') || "),e.opts.unicode===!1?s+=" "+h+".length ":s+=" ucs2length("+h+") ",s+=" "+x+" "+m+") { ";var p=r,E=E||[];E.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(p||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+m+" } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT be ",r=="maxLength"?s+="longer":s+="shorter",s+=" than ",f?s+="' + "+m+" + '":s+=""+o,s+=" characters' "),e.opts.verbose&&(s+=" , schema: ",f?s+="validate.schema"+l:s+=""+o,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var S=s;return s=E.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+S+"]); ":s+=" validate.errors = ["+S+"]; return false; ":s+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",c&&(s+=" else { "),s}});var Mc=M((yX,A0)=>{b();v();"use strict";A0.exports=function(e,r,n){var s=" ",i=e.level,a=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p,h="data"+(a||""),f=e.opts.$data&&o&&o.$data,m;if(f?(s+=" var schema"+i+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ",m="schema"+i):m=o,!(f||typeof o=="number"))throw new Error(r+" must be number");var x=r=="maxProperties"?">":"<";s+="if ( ",f&&(s+=" ("+m+" !== undefined && typeof "+m+" != 'number') || "),s+=" Object.keys("+h+").length "+x+" "+m+") { ";var p=r,E=E||[];E.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(p||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+m+" } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT have ",r=="maxProperties"?s+="more":s+="fewer",s+=" than ",f?s+="' + "+m+" + '":s+=""+o,s+=" properties' "),e.opts.verbose&&(s+=" , schema: ",f?s+="validate.schema"+l:s+=""+o,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var S=s;return s=E.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+S+"]); ":s+=" validate.errors = ["+S+"]; return false; ":s+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",c&&(s+=" else { "),s}});var k0=M((xX,w0)=>{b();v();"use strict";w0.exports=function(e,r,n){var s=" ",i=e.level,a=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(a||""),h=e.opts.$data&&o&&o.$data,f;if(h?(s+=" var schema"+i+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=o,!(h||typeof o=="number"))throw new Error(r+" must be number");s+="var division"+i+";if (",h&&(s+=" "+f+" !== undefined && ( typeof "+f+" != 'number' || "),s+=" (division"+i+" = "+p+" / "+f+", ",e.opts.multipleOfPrecision?s+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" ":s+=" division"+i+" !== parseInt(division"+i+") ",s+=" ) ",h&&(s+=" ) "),s+=" ) { ";var m=m||[];m.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+f+" } ",e.opts.messages!==!1&&(s+=" , message: 'should be multiple of ",h?s+="' + "+f:s+=""+f+"'"),e.opts.verbose&&(s+=" , schema: ",h?s+="validate.schema"+l:s+=""+o,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var x=s;return s=m.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+x+"]); ":s+=" validate.errors = ["+x+"]; return false; ":s+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",c&&(s+=" else { "),s}});var T0=M((EX,D0)=>{b();v();"use strict";D0.exports=function(e,r,n){var s=" ",i=e.level,a=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(a||""),h="errs__"+i,f=e.util.copy(e);f.level++;var m="valid"+f.level;if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){f.schema=o,f.schemaPath=l,f.errSchemaPath=u,s+=" var "+h+" = errors; ";var x=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.createErrors=!1;var E;f.opts.allErrors&&(E=f.opts.allErrors,f.opts.allErrors=!1),s+=" "+e.validate(f)+" ",f.createErrors=!0,E&&(f.opts.allErrors=E),e.compositeRule=f.compositeRule=x,s+=" if ("+m+") { ";var S=S||[];S.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: 'should NOT be valid' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var T=s;s=S.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+T+"]); ":s+=" validate.errors = ["+T+"]; return false; ":s+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(s+=" } ")}else s+=" var err = ",e.createErrors!==!1?(s+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: 'should NOT be valid' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(s+=" if (false) { ");return s}});var P0=M((bX,F0)=>{b();v();"use strict";F0.exports=function(e,r,n){var s=" ",i=e.level,a=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f="errs__"+i,m=e.util.copy(e),x="";m.level++;var E="valid"+m.level,S=m.baseId,T="prevValid"+i,I="passingSchemas"+i;s+="var "+f+" = errors , "+T+" = false , "+h+" = false , "+I+" = null; ";var y=e.compositeRule;e.compositeRule=m.compositeRule=!0;var w=o;if(w)for(var D,R=-1,z=w.length-1;R<z;)D=w[R+=1],(e.opts.strictKeywords?typeof D=="object"&&Object.keys(D).length>0||D===!1:e.util.schemaHasRules(D,e.RULES.all))?(m.schema=D,m.schemaPath=l+"["+R+"]",m.errSchemaPath=u+"/"+R,s+=" "+e.validate(m)+" ",m.baseId=S):s+=" var "+E+" = true; ",R&&(s+=" if ("+E+" && "+T+") { "+h+" = false; "+I+" = ["+I+", "+R+"]; } else { ",x+="}"),s+=" if ("+E+") { "+h+" = "+T+" = true; "+I+" = "+R+"; }";return e.compositeRule=m.compositeRule=y,s+=""+x+"if (!"+h+") { var err = ",e.createErrors!==!1?(s+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { passingSchemas: "+I+" } ",e.opts.messages!==!1&&(s+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; "),s+="} else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; }",e.opts.allErrors&&(s+=" } "),s}});var _0=M((vX,I0)=>{b();v();"use strict";I0.exports=function(e,r,n){var s=" ",i=e.level,a=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(a||""),h=e.opts.$data&&o&&o.$data,f;h?(s+=" var schema"+i+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=o;var m=h?"(new RegExp("+f+"))":e.usePattern(o);s+="if ( ",h&&(s+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),s+=" !"+m+".test("+p+") ) { ";var x=x||[];x.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ",h?s+=""+f:s+=""+e.util.toQuotedString(o),s+=" } ",e.opts.messages!==!1&&(s+=` , message: 'should match pattern "`,h?s+="' + "+f+" + '":s+=""+e.util.escapeQuotes(o),s+=`"' `),e.opts.verbose&&(s+=" , schema: ",h?s+="validate.schema"+l:s+=""+e.util.toQuotedString(o),s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var E=s;return s=x.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+E+"]); ":s+=" validate.errors = ["+E+"]; return false; ":s+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",c&&(s+=" else { "),s}});var O0=M((CX,B0)=>{b();v();"use strict";B0.exports=function(e,r,n){var s=" ",i=e.level,a=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(a||""),h="errs__"+i,f=e.util.copy(e),m="";f.level++;var x="valid"+f.level,E="key"+i,S="idx"+i,T=f.dataLevel=e.dataLevel+1,I="data"+T,y="dataProperties"+i,w=Object.keys(o||{}).filter(K),D=e.schema.patternProperties||{},R=Object.keys(D).filter(K),z=e.schema.additionalProperties,q=w.length||R.length,W=z===!1,_=typeof z=="object"&&Object.keys(z).length,C=e.opts.removeAdditional,$=W||_||C,F=e.opts.ownProperties,U=e.baseId,Q=e.schema.required;if(Q&&!(e.opts.$data&&Q.$data)&&Q.length<e.opts.loopRequired)var B=e.util.toHash(Q);function K(We){return We!=="__proto__"}if(s+="var "+h+" = errors;var "+x+" = true;",F&&(s+=" var "+y+" = undefined;"),$){if(F?s+=" "+y+" = "+y+" || Object.keys("+p+"); for (var "+S+"=0; "+S+"<"+y+".length; "+S+"++) { var "+E+" = "+y+"["+S+"]; ":s+=" for (var "+E+" in "+p+") { ",q){if(s+=" var isAdditional"+i+" = !(false ",w.length)if(w.length>8)s+=" || validate.schema"+l+".hasOwnProperty("+E+") ";else{var X=w;if(X)for(var ie,ve=-1,Ae=X.length-1;ve<Ae;)ie=X[ve+=1],s+=" || "+E+" == "+e.util.toQuotedString(ie)+" "}if(R.length){var me=R;if(me)for(var ce,Fe=-1,te=me.length-1;Fe<te;)ce=me[Fe+=1],s+=" || "+e.usePattern(ce)+".test("+E+") "}s+=" ); if (isAdditional"+i+") { "}if(C=="all")s+=" delete "+p+"["+E+"]; ";else{var ne=e.errorPath,ue="' + "+E+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,E,e.opts.jsonPointers)),W)if(C)s+=" delete "+p+"["+E+"]; ";else{s+=" "+x+" = false; ";var re=u;u=e.errSchemaPath+"/additionalProperties";var fe=fe||[];fe.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { additionalProperty: '"+ue+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is an invalid additional property":s+="should NOT have additional properties",s+="' "),e.opts.verbose&&(s+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var Ce=s;s=fe.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+Ce+"]); ":s+=" validate.errors = ["+Ce+"]; return false; ":s+=" var err = "+Ce+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=re,c&&(s+=" break; ")}else if(_)if(C=="failing"){s+=" var "+h+" = errors; ";var Ge=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.schema=z,f.schemaPath=e.schemaPath+".additionalProperties",f.errSchemaPath=e.errSchemaPath+"/additionalProperties",f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,E,e.opts.jsonPointers);var V=p+"["+E+"]";f.dataPathArr[T]=E;var se=e.validate(f);f.baseId=U,e.util.varOccurences(se,I)<2?s+=" "+e.util.varReplace(se,I,V)+" ":s+=" var "+I+" = "+V+"; "+se+" ",s+=" if (!"+x+") { errors = "+h+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+p+"["+E+"]; } ",e.compositeRule=f.compositeRule=Ge}else{f.schema=z,f.schemaPath=e.schemaPath+".additionalProperties",f.errSchemaPath=e.errSchemaPath+"/additionalProperties",f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,E,e.opts.jsonPointers);var V=p+"["+E+"]";f.dataPathArr[T]=E;var se=e.validate(f);f.baseId=U,e.util.varOccurences(se,I)<2?s+=" "+e.util.varReplace(se,I,V)+" ":s+=" var "+I+" = "+V+"; "+se+" ",c&&(s+=" if (!"+x+") break; ")}e.errorPath=ne}q&&(s+=" } "),s+=" } ",c&&(s+=" if ("+x+") { ",m+="}")}var Pe=e.opts.useDefaults&&!e.compositeRule;if(w.length){var Je=w;if(Je)for(var ie,nt=-1,Ye=Je.length-1;nt<Ye;){ie=Je[nt+=1];var it=o[ie];if(e.opts.strictKeywords?typeof it=="object"&&Object.keys(it).length>0||it===!1:e.util.schemaHasRules(it,e.RULES.all)){var lt=e.util.getProperty(ie),V=p+lt,Dt=Pe&&it.default!==void 0;f.schema=it,f.schemaPath=l+lt,f.errSchemaPath=u+"/"+e.util.escapeFragment(ie),f.errorPath=e.util.getPath(e.errorPath,ie,e.opts.jsonPointers),f.dataPathArr[T]=e.util.toQuotedString(ie);var se=e.validate(f);if(f.baseId=U,e.util.varOccurences(se,I)<2){se=e.util.varReplace(se,I,V);var Xe=V}else{var Xe=I;s+=" var "+I+" = "+V+"; "}if(Dt)s+=" "+se+" ";else{if(B&&B[ie]){s+=" if ( "+Xe+" === undefined ",F&&(s+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(ie)+"') "),s+=") { "+x+" = false; ";var ne=e.errorPath,re=u,Ue=e.util.escapeQuotes(ie);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(ne,ie,e.opts.jsonPointers)),u=e.errSchemaPath+"/required";var fe=fe||[];fe.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+Ue+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+Ue+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var Ce=s;s=fe.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+Ce+"]); ":s+=" validate.errors = ["+Ce+"]; return false; ":s+=" var err = "+Ce+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=re,e.errorPath=ne,s+=" } else { "}else c?(s+=" if ( "+Xe+" === undefined ",F&&(s+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(ie)+"') "),s+=") { "+x+" = true; } else { "):(s+=" if ("+Xe+" !== undefined ",F&&(s+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(ie)+"') "),s+=" ) { ");s+=" "+se+" } "}}c&&(s+=" if ("+x+") { ",m+="}")}}if(R.length){var pt=R;if(pt)for(var ce,Kt=-1,qt=pt.length-1;Kt<qt;){ce=pt[Kt+=1];var it=D[ce];if(e.opts.strictKeywords?typeof it=="object"&&Object.keys(it).length>0||it===!1:e.util.schemaHasRules(it,e.RULES.all)){f.schema=it,f.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(ce),f.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(ce),F?s+=" "+y+" = "+y+" || Object.keys("+p+"); for (var "+S+"=0; "+S+"<"+y+".length; "+S+"++) { var "+E+" = "+y+"["+S+"]; ":s+=" for (var "+E+" in "+p+") { ",s+=" if ("+e.usePattern(ce)+".test("+E+")) { ",f.errorPath=e.util.getPathExpr(e.errorPath,E,e.opts.jsonPointers);var V=p+"["+E+"]";f.dataPathArr[T]=E;var se=e.validate(f);f.baseId=U,e.util.varOccurences(se,I)<2?s+=" "+e.util.varReplace(se,I,V)+" ":s+=" var "+I+" = "+V+"; "+se+" ",c&&(s+=" if (!"+x+") break; "),s+=" } ",c&&(s+=" else "+x+" = true; "),s+=" } ",c&&(s+=" if ("+x+") { ",m+="}")}}}return c&&(s+=" "+m+" if ("+h+" == errors) {"),s}});var L0=M((SX,R0)=>{b();v();"use strict";R0.exports=function(e,r,n){var s=" ",i=e.level,a=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(a||""),h="errs__"+i,f=e.util.copy(e),m="";f.level++;var x="valid"+f.level;if(s+="var "+h+" = errors;",e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){f.schema=o,f.schemaPath=l,f.errSchemaPath=u;var E="key"+i,S="idx"+i,T="i"+i,I="' + "+E+" + '",y=f.dataLevel=e.dataLevel+1,w="data"+y,D="dataProperties"+i,R=e.opts.ownProperties,z=e.baseId;R&&(s+=" var "+D+" = undefined; "),R?s+=" "+D+" = "+D+" || Object.keys("+p+"); for (var "+S+"=0; "+S+"<"+D+".length; "+S+"++) { var "+E+" = "+D+"["+S+"]; ":s+=" for (var "+E+" in "+p+") { ",s+=" var startErrs"+i+" = errors; ";var q=E,W=e.compositeRule;e.compositeRule=f.compositeRule=!0;var _=e.validate(f);f.baseId=z,e.util.varOccurences(_,w)<2?s+=" "+e.util.varReplace(_,w,q)+" ":s+=" var "+w+" = "+q+"; "+_+" ",e.compositeRule=f.compositeRule=W,s+=" if (!"+x+") { for (var "+T+"=startErrs"+i+"; "+T+"<errors; "+T+"++) { vErrors["+T+"].propertyName = "+E+"; } var err = ",e.createErrors!==!1?(s+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { propertyName: '"+I+"' } ",e.opts.messages!==!1&&(s+=" , message: 'property name \\'"+I+"\\' is invalid' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; "),c&&(s+=" break; "),s+=" } }"}return c&&(s+=" "+m+" if ("+h+" == errors) {"),s}});var M0=M((AX,N0)=>{b();v();"use strict";N0.exports=function(e,r,n){var s=" ",i=e.level,a=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f=e.opts.$data&&o&&o.$data,m;f?(s+=" var schema"+i+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ",m="schema"+i):m=o;var x="schema"+i;if(!f)if(o.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var E=[],S=o;if(S)for(var T,I=-1,y=S.length-1;I<y;){T=S[I+=1];var w=e.schema.properties[T];w&&(e.opts.strictKeywords?typeof w=="object"&&Object.keys(w).length>0||w===!1:e.util.schemaHasRules(w,e.RULES.all))||(E[E.length]=T)}}else var E=o;if(f||E.length){var D=e.errorPath,R=f||E.length>=e.opts.loopRequired,z=e.opts.ownProperties;if(c)if(s+=" var missing"+i+"; ",R){f||(s+=" var "+x+" = validate.schema"+l+"; ");var q="i"+i,W="schema"+i+"["+q+"]",_="' + "+W+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(D,W,e.opts.jsonPointers)),s+=" var "+h+" = true; ",f&&(s+=" if (schema"+i+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+i+")) "+h+" = false; else {"),s+=" for (var "+q+" = 0; "+q+" < "+x+".length; "+q+"++) { "+h+" = "+p+"["+x+"["+q+"]] !== undefined ",z&&(s+=" && Object.prototype.hasOwnProperty.call("+p+", "+x+"["+q+"]) "),s+="; if (!"+h+") break; } ",f&&(s+=" } "),s+=" if (!"+h+") { ";var C=C||[];C.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+_+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+_+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var $=s;s=C.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+$+"]); ":s+=" validate.errors = ["+$+"]; return false; ":s+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else { "}else{s+=" if ( ";var F=E;if(F)for(var U,q=-1,Q=F.length-1;q<Q;){U=F[q+=1],q&&(s+=" || ");var B=e.util.getProperty(U),K=p+B;s+=" ( ( "+K+" === undefined ",z&&(s+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(U)+"') "),s+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?U:B)+") ) "}s+=") { ";var W="missing"+i,_="' + "+W+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(D,W,!0):D+" + "+W);var C=C||[];C.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+_+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+_+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var $=s;s=C.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+$+"]); ":s+=" validate.errors = ["+$+"]; return false; ":s+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else { "}else if(R){f||(s+=" var "+x+" = validate.schema"+l+"; ");var q="i"+i,W="schema"+i+"["+q+"]",_="' + "+W+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(D,W,e.opts.jsonPointers)),f&&(s+=" if ("+x+" && !Array.isArray("+x+")) { var err = ",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+_+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+_+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+x+" !== undefined) { "),s+=" for (var "+q+" = 0; "+q+" < "+x+".length; "+q+"++) { if ("+p+"["+x+"["+q+"]] === undefined ",z&&(s+=" || ! Object.prototype.hasOwnProperty.call("+p+", "+x+"["+q+"]) "),s+=") { var err = ",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+_+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+_+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",f&&(s+=" } ")}else{var X=E;if(X)for(var U,ie=-1,ve=X.length-1;ie<ve;){U=X[ie+=1];var B=e.util.getProperty(U),_=e.util.escapeQuotes(U),K=p+B;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(D,U,e.opts.jsonPointers)),s+=" if ( "+K+" === undefined ",z&&(s+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(U)+"') "),s+=") { var err = ",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+_+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+_+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=D}else c&&(s+=" if (true) {");return s}});var q0=M((wX,j0)=>{b();v();"use strict";j0.exports=function(e,r,n){var s=" ",i=e.level,a=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f=e.opts.$data&&o&&o.$data,m;if(f?(s+=" var schema"+i+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ",m="schema"+i):m=o,(o||f)&&e.opts.uniqueItems!==!1){f&&(s+=" var "+h+"; if ("+m+" === false || "+m+" === undefined) "+h+" = true; else if (typeof "+m+" != 'boolean') "+h+" = false; else { "),s+=" var i = "+p+".length , "+h+" = true , j; if (i > 1) { ";var x=e.schema.items&&e.schema.items.type,E=Array.isArray(x);if(!x||x=="object"||x=="array"||E&&(x.indexOf("object")>=0||x.indexOf("array")>=0))s+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+p+"[i], "+p+"[j])) { "+h+" = false; break outer; } } } ";else{s+=" var itemIndices = {}, item; for (;i--;) { var item = "+p+"[i]; ";var S="checkDataType"+(E?"s":"");s+=" if ("+e.util[S](x,"item",e.opts.strictNumbers,!0)+") continue; ",E&&(s+=` if (typeof item == 'string') item = '"' + item; `),s+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}s+=" } ",f&&(s+=" } "),s+=" if (!"+h+") { ";var T=T||[];T.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(s+=" , schema: ",f?s+="validate.schema"+l:s+=""+o,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var I=s;s=T.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+I+"]); ":s+=" validate.errors = ["+I+"]; return false; ":s+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",c&&(s+=" else { ")}else c&&(s+=" if (true) { ");return s}});var U0=M((kX,V0)=>{b();v();"use strict";V0.exports={$ref:e0(),allOf:r0(),anyOf:n0(),$comment:a0(),const:l0(),contains:c0(),dependencies:p0(),enum:m0(),format:g0(),if:x0(),items:b0(),maximum:Rc(),minimum:Rc(),maxItems:Lc(),minItems:Lc(),maxLength:Nc(),minLength:Nc(),maxProperties:Mc(),minProperties:Mc(),multipleOf:k0(),not:T0(),oneOf:P0(),pattern:_0(),properties:O0(),propertyNames:L0(),required:M0(),uniqueItems:q0(),validate:Bc()}});var G0=M((DX,$0)=>{b();v();"use strict";var W0=U0(),jc=gn().toHash;$0.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],r=["type","$comment"],n=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],s=["number","integer","string","array","object","boolean","null"];return e.all=jc(r),e.types=jc(s),e.forEach(function(i){i.rules=i.rules.map(function(a){var o;if(typeof a=="object"){var l=Object.keys(a)[0];o=a[l],a=l,o.forEach(function(c){r.push(c),e.all[c]=!0})}r.push(a);var u=e.all[a]={keyword:a,code:W0[a],implements:o};return u}),e.all.$comment={keyword:"$comment",code:W0.$comment},i.type&&(e.types[i.type]=i)}),e.keywords=jc(r.concat(n)),e.custom={},e}});var K0=M((TX,z0)=>{b();v();"use strict";var H0=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];z0.exports=function(t,e){for(var r=0;r<e.length;r++){t=JSON.parse(JSON.stringify(t));var n=e[r].split("/"),s=t,i;for(i=1;i<n.length;i++)s=s[n[i]];for(i=0;i<H0.length;i++){var a=H0[i],o=s[a];o&&(s[a]={anyOf:[o,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return t}});var Q0=M((FX,Y0)=>{b();v();"use strict";var Hj=Lo().MissingRef;Y0.exports=J0;function J0(t,e,r){var n=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof e=="function"&&(r=e,e=void 0);var s=i(t).then(function(){var o=n._addSchema(t,void 0,e);return o.validate||a(o)});return r&&s.then(function(o){r(null,o)},r),s;function i(o){var l=o.$schema;return l&&!n.getSchema(l)?J0.call(n,{$ref:l},!0):Promise.resolve()}function a(o){try{return n._compile(o)}catch(u){if(u instanceof Hj)return l(u);throw u}function l(u){var c=u.missingSchema;if(f(c))throw new Error("Schema "+c+" is loaded but "+u.missingRef+" cannot be resolved");var p=n._loadingSchemas[c];return p||(p=n._loadingSchemas[c]=n._opts.loadSchema(c),p.then(h,h)),p.then(function(m){if(!f(c))return i(m).then(function(){f(c)||n.addSchema(m,c,void 0,e)})}).then(function(){return a(o)});function h(){delete n._loadingSchemas[c]}function f(m){return n._refs[m]||n._schemas[m]}}}}});var Z0=M((PX,X0)=>{b();v();"use strict";X0.exports=function(e,r,n){var s=" ",i=e.level,a=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p,h="data"+(a||""),f="valid"+i,m="errs__"+i,x=e.opts.$data&&o&&o.$data,E;x?(s+=" var schema"+i+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ",E="schema"+i):E=o;var S=this,T="definition"+i,I=S.definition,y="",w,D,R,z,q;if(x&&I.$data){q="keywordValidate"+i;var W=I.validateSchema;s+=" var "+T+" = RULES.custom['"+r+"'].definition; var "+q+" = "+T+".validate;"}else{if(z=e.useCustomRule(S,o,e.schema,e),!z)return;E="validate.schema"+l,q=z.code,w=I.compile,D=I.inline,R=I.macro}var _=q+".errors",C="i"+i,$="ruleErr"+i,F=I.async;if(F&&!e.async)throw new Error("async keyword in sync schema");if(D||R||(s+=""+_+" = null;"),s+="var "+m+" = errors;var "+f+";",x&&I.$data&&(y+="}",s+=" if ("+E+" === undefined) { "+f+" = true; } else { ",W&&(y+="}",s+=" "+f+" = "+T+".validateSchema("+E+"); if ("+f+") { ")),D)I.statements?s+=" "+z.validate+" ":s+=" "+f+" = "+z.validate+"; ";else if(R){var U=e.util.copy(e),y="";U.level++;var Q="valid"+U.level;U.schema=z.validate,U.schemaPath="";var B=e.compositeRule;e.compositeRule=U.compositeRule=!0;var K=e.validate(U).replace(/validate\.schema/g,q);e.compositeRule=U.compositeRule=B,s+=" "+K}else{var X=X||[];X.push(s),s="",s+=" "+q+".call( ",e.opts.passContext?s+="this":s+="self",w||I.schema===!1?s+=" , "+h+" ":s+=" , "+E+" , "+h+" , validate.schema"+e.schemaPath+" ",s+=" , (dataPath || '')",e.errorPath!='""'&&(s+=" + "+e.errorPath);var ie=a?"data"+(a-1||""):"parentData",ve=a?e.dataPathArr[a]:"parentDataProperty";s+=" , "+ie+" , "+ve+" , rootData ) ";var Ae=s;s=X.pop(),I.errors===!1?(s+=" "+f+" = ",F&&(s+="await "),s+=""+Ae+"; "):F?(_="customErrors"+i,s+=" var "+_+" = null; try { "+f+" = await "+Ae+"; } catch (e) { "+f+" = false; if (e instanceof ValidationError) "+_+" = e.errors; else throw e; } "):s+=" "+_+" = null; "+f+" = "+Ae+"; "}if(I.modifying&&(s+=" if ("+ie+") "+h+" = "+ie+"["+ve+"];"),s+=""+y,I.valid)c&&(s+=" if (true) { ");else{s+=" if ( ",I.valid===void 0?(s+=" !",R?s+=""+Q:s+=""+f):s+=" "+!I.valid+" ",s+=") { ",p=S.keyword;var X=X||[];X.push(s),s="";var X=X||[];X.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(p||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+S.keyword+"' } ",e.opts.messages!==!1&&(s+=` , message: 'should pass "`+S.keyword+`" keyword validation' `),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var me=s;s=X.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+me+"]); ":s+=" validate.errors = ["+me+"]; return false; ":s+=" var err = "+me+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var ce=s;s=X.pop(),D?I.errors?I.errors!="full"&&(s+=" for (var "+C+"="+m+"; "+C+"<errors; "+C+"++) { var "+$+" = vErrors["+C+"]; if ("+$+".dataPath === undefined) "+$+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+$+".schemaPath === undefined) { "+$+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(s+=" "+$+".schema = "+E+"; "+$+".data = "+h+"; "),s+=" } "):I.errors===!1?s+=" "+ce+" ":(s+=" if ("+m+" == errors) { "+ce+" } else { for (var "+C+"="+m+"; "+C+"<errors; "+C+"++) { var "+$+" = vErrors["+C+"]; if ("+$+".dataPath === undefined) "+$+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+$+".schemaPath === undefined) { "+$+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(s+=" "+$+".schema = "+E+"; "+$+".data = "+h+"; "),s+=" } } "):R?(s+=" var err = ",e.createErrors!==!1?(s+=" { keyword: '"+(p||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+S.keyword+"' } ",e.opts.messages!==!1&&(s+=` , message: 'should pass "`+S.keyword+`" keyword validation' `),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; ")):I.errors===!1?s+=" "+ce+" ":(s+=" if (Array.isArray("+_+")) { if (vErrors === null) vErrors = "+_+"; else vErrors = vErrors.concat("+_+"); errors = vErrors.length; for (var "+C+"="+m+"; "+C+"<errors; "+C+"++) { var "+$+" = vErrors["+C+"]; if ("+$+".dataPath === undefined) "+$+".dataPath = (dataPath || '') + "+e.errorPath+"; "+$+'.schemaPath = "'+u+'"; ',e.opts.verbose&&(s+=" "+$+".schema = "+E+"; "+$+".data = "+h+"; "),s+=" } } else { "+ce+" } "),s+=" } ",c&&(s+=" else { ")}return s}});var qc=M((IX,ey)=>{ey.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var sy=M((_X,ty)=>{b();v();"use strict";var ry=qc();ty.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:ry.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:ry.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}});var iy=M((BX,ny)=>{b();v();"use strict";var Kj=/^[a-z_$][a-z0-9_$-]*$/i,Yj=Z0(),Jj=sy();ny.exports={add:Qj,get:Xj,remove:Zj,validate:Vc};function Qj(t,e){var r=this.RULES;if(r.keywords[t])throw new Error("Keyword "+t+" is already defined");if(!Kj.test(t))throw new Error("Keyword "+t+" is not a valid identifier");if(e){this.validateKeyword(e,!0);var n=e.type;if(Array.isArray(n))for(var s=0;s<n.length;s++)a(t,n[s],e);else a(t,n,e);var i=e.metaSchema;i&&(e.$data&&this._opts.$data&&(i={anyOf:[i,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),e.validateSchema=this.compile(i,!0))}r.keywords[t]=r.all[t]=!0;function a(o,l,u){for(var c,p=0;p<r.length;p++){var h=r[p];if(h.type==l){c=h;break}}c||(c={type:l,rules:[]},r.push(c));var f={keyword:o,definition:u,custom:!0,code:Yj,implements:u.implements};c.rules.push(f),r.custom[o]=f}return this}function Xj(t){var e=this.RULES.custom[t];return e?e.definition:this.RULES.keywords[t]||!1}function Zj(t){var e=this.RULES;delete e.keywords[t],delete e.all[t],delete e.custom[t];for(var r=0;r<e.length;r++)for(var n=e[r].rules,s=0;s<n.length;s++)if(n[s].keyword==t){n.splice(s,1);break}return this}function Vc(t,e){Vc.errors=null;var r=this._validateKeyword=this._validateKeyword||this.compile(Jj,!0);if(r(t))return!0;if(Vc.errors=r.errors,e)throw new Error("custom keyword definition is invalid: "+this.errorsText(r.errors));return!1}});var oy=M((OX,ay)=>{ay.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var $c=M((RX,ly)=>{b();v();"use strict";var uy=Mg(),yn=Ro(),e4=qg(),cy=kc(),t4=_c(),r4=Xg(),s4=G0(),fy=K0(),py=gn();ly.exports=Bt;Bt.prototype.validate=n4;Bt.prototype.compile=i4;Bt.prototype.addSchema=a4;Bt.prototype.addMetaSchema=o4;Bt.prototype.validateSchema=l4;Bt.prototype.getSchema=u4;Bt.prototype.removeSchema=c4;Bt.prototype.addFormat=f4;Bt.prototype.errorsText=p4;Bt.prototype._addSchema=h4;Bt.prototype._compile=m4;Bt.prototype.compileAsync=Q0();var Uo=iy();Bt.prototype.addKeyword=Uo.add;Bt.prototype.getKeyword=Uo.get;Bt.prototype.removeKeyword=Uo.remove;Bt.prototype.validateKeyword=Uo.validate;var hy=Lo();Bt.ValidationError=hy.Validation;Bt.MissingRefError=hy.MissingRef;Bt.$dataMetaSchema=fy;var $o="http://json-schema.org/draft-07/schema",my=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],d4=["/properties"];function Bt(t){if(!(this instanceof Bt))return new Bt(t);t=this._opts=py.copy(t)||{},C4(this),this._schemas={},this._refs={},this._fragments={},this._formats=r4(t.format),this._cache=t.cache||new e4,this._loadingSchemas={},this._compilations=[],this.RULES=s4(),this._getId=g4(t),t.loopRequired=t.loopRequired||Infinity,t.errorDataPath=="property"&&(t._errorDataPathProperty=!0),t.serialize===void 0&&(t.serialize=t4),this._metaOpts=v4(this),t.formats&&E4(this),t.keywords&&b4(this),y4(this),typeof t.meta=="object"&&this.addMetaSchema(t.meta),t.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),x4(this)}function n4(t,e){var r;if(typeof t=="string"){if(r=this.getSchema(t),!r)throw new Error('no schema with key or ref "'+t+'"')}else{var n=this._addSchema(t);r=n.validate||this._compile(n)}var s=r(e);return r.$async!==!0&&(this.errors=r.errors),s}function i4(t,e){var r=this._addSchema(t,void 0,e);return r.validate||this._compile(r)}function a4(t,e,r,n){if(Array.isArray(t)){for(var s=0;s<t.length;s++)this.addSchema(t[s],void 0,r,n);return this}var i=this._getId(t);if(i!==void 0&&typeof i!="string")throw new Error("schema id must be string");return e=yn.normalizeId(e||i),dy(this,e),this._schemas[e]=this._addSchema(t,r,n,!0),this}function o4(t,e,r){return this.addSchema(t,e,r,!0),this}function l4(t,e){var r=t.$schema;if(r!==void 0&&typeof r!="string")throw new Error("$schema must be a string");if(r=r||this._opts.defaultMeta||S4(this),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var n=this.validate(r,t);if(!n&&e){var s="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(s);else throw new Error(s)}return n}function S4(t){var e=t._opts.meta;return t._opts.defaultMeta=typeof e=="object"?t._getId(e)||e:t.getSchema($o)?$o:void 0,t._opts.defaultMeta}function u4(t){var e=gy(this,t);switch(typeof e){case"object":return e.validate||this._compile(e);case"string":return this.getSchema(e);case"undefined":return A4(this,t)}}function A4(t,e){var r=yn.schema.call(t,{schema:{}},e);if(r){var n=r.schema,s=r.root,i=r.baseId,a=uy.call(t,n,s,void 0,i);return t._fragments[e]=new cy({ref:e,fragment:!0,schema:n,root:s,baseId:i,validate:a}),a}}function gy(t,e){return e=yn.normalizeId(e),t._schemas[e]||t._refs[e]||t._fragments[e]}function c4(t){if(t instanceof RegExp)return Wo(this,this._schemas,t),Wo(this,this._refs,t),this;switch(typeof t){case"undefined":return Wo(this,this._schemas),Wo(this,this._refs),this._cache.clear(),this;case"string":var e=gy(this,t);return e&&this._cache.del(e.cacheKey),delete this._schemas[t],delete this._refs[t],this;case"object":var r=this._opts.serialize,n=r?r(t):t;this._cache.del(n);var s=this._getId(t);s&&(s=yn.normalizeId(s),delete this._schemas[s],delete this._refs[s])}return this}function Wo(t,e,r){for(var n in e){var s=e[n];!s.meta&&(!r||r.test(n))&&(t._cache.del(s.cacheKey),delete e[n])}}function h4(t,e,r,n){if(typeof t!="object"&&typeof t!="boolean")throw new Error("schema should be object or boolean");var s=this._opts.serialize,i=s?s(t):t,a=this._cache.get(i);if(a)return a;n=n||this._opts.addUsedSchema!==!1;var o=yn.normalizeId(this._getId(t));o&&n&&dy(this,o);var l=this._opts.validateSchema!==!1&&!e,u;l&&!(u=o&&o==yn.normalizeId(t.$schema))&&this.validateSchema(t,!0);var c=yn.ids.call(this,t),p=new cy({id:o,schema:t,localRefs:c,cacheKey:i,meta:r});return o[0]!="#"&&n&&(this._refs[o]=p),this._cache.put(i,p),l&&u&&this.validateSchema(t,!0),p}function m4(t,e){if(t.compiling)return t.validate=s,s.schema=t.schema,s.errors=null,s.root=e||s,t.schema.$async===!0&&(s.$async=!0),s;t.compiling=!0;var r;t.meta&&(r=this._opts,this._opts=this._metaOpts);var n;try{n=uy.call(this,t.schema,e,t.localRefs)}catch(i){throw delete t.validate,i}finally{t.compiling=!1,t.meta&&(this._opts=r)}return t.validate=n,t.refs=n.refs,t.refVal=n.refVal,t.root=n.root,n;function s(){var i=t.validate,a=i.apply(this,arguments);return s.errors=i.errors,a}}function g4(t){switch(t.schemaId){case"auto":return D4;case"id":return w4;default:return k4}}function w4(t){return t.$id&&this.logger.warn("schema $id ignored",t.$id),t.id}function k4(t){return t.id&&this.logger.warn("schema id ignored",t.id),t.$id}function D4(t){if(t.$id&&t.id&&t.$id!=t.id)throw new Error("schema $id is different from id");return t.$id||t.id}function p4(t,e){if(t=t||this.errors,!t)return"No errors";e=e||{};for(var r=e.separator===void 0?", ":e.separator,n=e.dataVar===void 0?"data":e.dataVar,s="",i=0;i<t.length;i++){var a=t[i];a&&(s+=n+a.dataPath+" "+a.message+r)}return s.slice(0,-r.length)}function f4(t,e){return typeof e=="string"&&(e=new RegExp(e)),this._formats[t]=e,this}function y4(t){var e;if(t._opts.$data&&(e=oy(),t.addMetaSchema(e,e.$id,!0)),t._opts.meta!==!1){var r=qc();t._opts.$data&&(r=fy(r,d4)),t.addMetaSchema(r,$o,!0),t._refs["http://json-schema.org/schema"]=$o}}function x4(t){var e=t._opts.schemas;if(!!e)if(Array.isArray(e))t.addSchema(e);else for(var r in e)t.addSchema(e[r],r)}function E4(t){for(var e in t._opts.formats){var r=t._opts.formats[e];t.addFormat(e,r)}}function b4(t){for(var e in t._opts.keywords){var r=t._opts.keywords[e];t.addKeyword(e,r)}}function dy(t,e){if(t._schemas[e]||t._refs[e])throw new Error('schema with key or id "'+e+'" already exists')}function v4(t){for(var e=py.copy(t._opts),r=0;r<my.length;r++)delete e[my[r]];return e}function C4(t){var e=t._opts.logger;if(e===!1)t.logger={log:Uc,warn:Uc,error:Uc};else{if(e===void 0&&(e=console),!(typeof e=="object"&&e.log&&e.warn&&e.error))throw new Error("logger must implement log, warn and error methods");t.logger=e}}function Uc(){}});var xy=M((LX,yy)=>{yy.exports={builtin:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es5:{Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},es2015:{Array:!1,ArrayBuffer:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2017:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2020:{Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2021:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},browser:{AbortController:!1,AbortSignal:!1,addEventListener:!1,alert:!1,AnalyserNode:!1,Animation:!1,AnimationEffectReadOnly:!1,AnimationEffectTiming:!1,AnimationEffectTimingReadOnly:!1,AnimationEvent:!1,AnimationPlaybackEvent:!1,AnimationTimeline:!1,applicationCache:!1,ApplicationCache:!1,ApplicationCacheErrorEvent:!1,atob:!1,Attr:!1,Audio:!1,AudioBuffer:!1,AudioBufferSourceNode:!1,AudioContext:!1,AudioDestinationNode:!1,AudioListener:!1,AudioNode:!1,AudioParam:!1,AudioProcessingEvent:!1,AudioScheduledSourceNode:!1,AudioWorkletGlobalScope:!1,AudioWorkletNode:!1,AudioWorkletProcessor:!1,BarProp:!1,BaseAudioContext:!1,BatteryManager:!1,BeforeUnloadEvent:!1,BiquadFilterNode:!1,Blob:!1,BlobEvent:!1,blur:!1,BroadcastChannel:!1,btoa:!1,BudgetService:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,cancelIdleCallback:!1,CanvasCaptureMediaStreamTrack:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,ChannelMergerNode:!1,ChannelSplitterNode:!1,CharacterData:!1,clearInterval:!1,clearTimeout:!1,clientInformation:!1,ClipboardEvent:!1,close:!1,closed:!1,CloseEvent:!1,Comment:!1,CompositionEvent:!1,confirm:!1,console:!1,ConstantSourceNode:!1,ConvolverNode:!1,CountQueuingStrategy:!1,createImageBitmap:!1,Credential:!1,CredentialsContainer:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSConditionRule:!1,CSSFontFaceRule:!1,CSSGroupingRule:!1,CSSImportRule:!1,CSSKeyframeRule:!1,CSSKeyframesRule:!1,CSSMatrixComponent:!1,CSSMediaRule:!1,CSSNamespaceRule:!1,CSSPageRule:!1,CSSPerspective:!1,CSSRotate:!1,CSSRule:!1,CSSRuleList:!1,CSSScale:!1,CSSSkew:!1,CSSSkewX:!1,CSSSkewY:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,CSSSupportsRule:!1,CSSTransformValue:!1,CSSTranslate:!1,CustomElementRegistry:!1,customElements:!1,CustomEvent:!1,DataTransfer:!1,DataTransferItem:!1,DataTransferItemList:!1,defaultstatus:!1,defaultStatus:!1,DelayNode:!1,DeviceMotionEvent:!1,DeviceOrientationEvent:!1,devicePixelRatio:!1,dispatchEvent:!1,document:!1,Document:!1,DocumentFragment:!1,DocumentType:!1,DOMError:!1,DOMException:!1,DOMImplementation:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMParser:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectList:!1,DOMRectReadOnly:!1,DOMStringList:!1,DOMStringMap:!1,DOMTokenList:!1,DragEvent:!1,DynamicsCompressorNode:!1,Element:!1,ErrorEvent:!1,event:!1,Event:!1,EventSource:!1,EventTarget:!1,external:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,find:!1,focus:!1,FocusEvent:!1,FontFace:!1,FontFaceSetLoadEvent:!1,FormData:!1,frameElement:!1,frames:!1,GainNode:!1,Gamepad:!1,GamepadButton:!1,GamepadEvent:!1,getComputedStyle:!1,getSelection:!1,HashChangeEvent:!1,Headers:!1,history:!1,History:!1,HTMLAllCollection:!1,HTMLAnchorElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLContentElement:!1,HTMLDataElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLDocument:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormControlsCollection:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLLabelElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLOptionsCollection:!1,HTMLOutputElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLShadowElement:!1,HTMLSlotElement:!1,HTMLSourceElement:!1,HTMLSpanElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTimeElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLUnknownElement:!1,HTMLVideoElement:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdleDeadline:!1,IIRFilterNode:!1,Image:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageCapture:!1,ImageData:!1,indexedDB:!1,innerHeight:!1,innerWidth:!1,InputEvent:!1,IntersectionObserver:!1,IntersectionObserverEntry:!1,Intl:!1,isSecureContext:!1,KeyboardEvent:!1,KeyframeEffect:!1,KeyframeEffectReadOnly:!1,length:!1,localStorage:!1,location:!0,Location:!1,locationbar:!1,matchMedia:!1,MediaDeviceInfo:!1,MediaDevices:!1,MediaElementAudioSourceNode:!1,MediaEncryptedEvent:!1,MediaError:!1,MediaKeyMessageEvent:!1,MediaKeySession:!1,MediaKeyStatusMap:!1,MediaKeySystemAccess:!1,MediaList:!1,MediaMetadata:!1,MediaQueryList:!1,MediaQueryListEvent:!1,MediaRecorder:!1,MediaSettingsRange:!1,MediaSource:!1,MediaStream:!1,MediaStreamAudioDestinationNode:!1,MediaStreamAudioSourceNode:!1,MediaStreamEvent:!1,MediaStreamTrack:!1,MediaStreamTrackEvent:!1,menubar:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MIDIAccess:!1,MIDIConnectionEvent:!1,MIDIInput:!1,MIDIInputMap:!1,MIDIMessageEvent:!1,MIDIOutput:!1,MIDIOutputMap:!1,MIDIPort:!1,MimeType:!1,MimeTypeArray:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationEvent:!1,MutationObserver:!1,MutationRecord:!1,name:!1,NamedNodeMap:!1,NavigationPreloadManager:!1,navigator:!1,Navigator:!1,NetworkInformation:!1,Node:!1,NodeFilter:!1,NodeIterator:!1,NodeList:!1,Notification:!1,OfflineAudioCompletionEvent:!1,OfflineAudioContext:!1,offscreenBuffering:!1,OffscreenCanvas:!0,OffscreenCanvasRenderingContext2D:!1,onabort:!0,onafterprint:!0,onanimationend:!0,onanimationiteration:!0,onanimationstart:!0,onappinstalled:!0,onauxclick:!0,onbeforeinstallprompt:!0,onbeforeprint:!0,onbeforeunload:!0,onblur:!0,oncancel:!0,oncanplay:!0,oncanplaythrough:!0,onchange:!0,onclick:!0,onclose:!0,oncontextmenu:!0,oncuechange:!0,ondblclick:!0,ondevicemotion:!0,ondeviceorientation:!0,ondeviceorientationabsolute:!0,ondrag:!0,ondragend:!0,ondragenter:!0,ondragleave:!0,ondragover:!0,ondragstart:!0,ondrop:!0,ondurationchange:!0,onemptied:!0,onended:!0,onerror:!0,onfocus:!0,ongotpointercapture:!0,onhashchange:!0,oninput:!0,oninvalid:!0,onkeydown:!0,onkeypress:!0,onkeyup:!0,onlanguagechange:!0,onload:!0,onloadeddata:!0,onloadedmetadata:!0,onloadstart:!0,onlostpointercapture:!0,onmessage:!0,onmessageerror:!0,onmousedown:!0,onmouseenter:!0,onmouseleave:!0,onmousemove:!0,onmouseout:!0,onmouseover:!0,onmouseup:!0,onmousewheel:!0,onoffline:!0,ononline:!0,onpagehide:!0,onpageshow:!0,onpause:!0,onplay:!0,onplaying:!0,onpointercancel:!0,onpointerdown:!0,onpointerenter:!0,onpointerleave:!0,onpointermove:!0,onpointerout:!0,onpointerover:!0,onpointerup:!0,onpopstate:!0,onprogress:!0,onratechange:!0,onrejectionhandled:!0,onreset:!0,onresize:!0,onscroll:!0,onsearch:!0,onseeked:!0,onseeking:!0,onselect:!0,onstalled:!0,onstorage:!0,onsubmit:!0,onsuspend:!0,ontimeupdate:!0,ontoggle:!0,ontransitionend:!0,onunhandledrejection:!0,onunload:!0,onvolumechange:!0,onwaiting:!0,onwheel:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,origin:!1,OscillatorNode:!1,outerHeight:!1,outerWidth:!1,OverconstrainedError:!1,PageTransitionEvent:!1,pageXOffset:!1,pageYOffset:!1,PannerNode:!1,parent:!1,Path2D:!1,PaymentAddress:!1,PaymentRequest:!1,PaymentRequestUpdateEvent:!1,PaymentResponse:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceLongTaskTiming:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceNavigationTiming:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformancePaintTiming:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,PeriodicWave:!1,Permissions:!1,PermissionStatus:!1,personalbar:!1,PhotoCapabilities:!1,Plugin:!1,PluginArray:!1,PointerEvent:!1,PopStateEvent:!1,postMessage:!1,Presentation:!1,PresentationAvailability:!1,PresentationConnection:!1,PresentationConnectionAvailableEvent:!1,PresentationConnectionCloseEvent:!1,PresentationConnectionList:!1,PresentationReceiver:!1,PresentationRequest:!1,print:!1,ProcessingInstruction:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,prompt:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,RadioNodeList:!1,Range:!1,ReadableStream:!1,registerProcessor:!1,RemotePlayback:!1,removeEventListener:!1,Request:!1,requestAnimationFrame:!1,requestIdleCallback:!1,resizeBy:!1,ResizeObserver:!1,ResizeObserverEntry:!1,resizeTo:!1,Response:!1,RTCCertificate:!1,RTCDataChannel:!1,RTCDataChannelEvent:!1,RTCDtlsTransport:!1,RTCIceCandidate:!1,RTCIceGatherer:!1,RTCIceTransport:!1,RTCPeerConnection:!1,RTCPeerConnectionIceEvent:!1,RTCRtpContributingSource:!1,RTCRtpReceiver:!1,RTCRtpSender:!1,RTCSctpTransport:!1,RTCSessionDescription:!1,RTCStatsReport:!1,RTCTrackEvent:!1,screen:!1,Screen:!1,screenLeft:!1,ScreenOrientation:!1,screenTop:!1,screenX:!1,screenY:!1,ScriptProcessorNode:!1,scroll:!1,scrollbars:!1,scrollBy:!1,scrollTo:!1,scrollX:!1,scrollY:!1,SecurityPolicyViolationEvent:!1,Selection:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,ShadowRoot:!1,SharedWorker:!1,SourceBuffer:!1,SourceBufferList:!1,speechSynthesis:!1,SpeechSynthesisEvent:!1,SpeechSynthesisUtterance:!1,StaticRange:!1,status:!1,statusbar:!1,StereoPannerNode:!1,stop:!1,Storage:!1,StorageEvent:!1,StorageManager:!1,styleMedia:!1,StyleSheet:!1,StyleSheetList:!1,SubtleCrypto:!1,SVGAElement:!1,SVGAngle:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimationElement:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGComponentTransferFunctionElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDiscardElement:!1,SVGElement:!1,SVGEllipseElement:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEDropShadowElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGeometryElement:!1,SVGGradientElement:!1,SVGGraphicsElement:!1,SVGImageElement:!1,SVGLength:!1,SVGLengthList:!1,SVGLinearGradientElement:!1,SVGLineElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMPathElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPathElement:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStyleElement:!1,SVGSVGElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTSpanElement:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGViewElement:!1,TaskAttributionTiming:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TextEvent:!1,TextMetrics:!1,TextTrack:!1,TextTrackCue:!1,TextTrackCueList:!1,TextTrackList:!1,TimeRanges:!1,toolbar:!1,top:!1,Touch:!1,TouchEvent:!1,TouchList:!1,TrackEvent:!1,TransitionEvent:!1,TreeWalker:!1,UIEvent:!1,URL:!1,URLSearchParams:!1,ValidityState:!1,visualViewport:!1,VisualViewport:!1,VTTCue:!1,WaveShaperNode:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,WebSocket:!1,WheelEvent:!1,window:!1,Window:!1,Worker:!1,WritableStream:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathExpression:!1,XPathResult:!1,XSLTProcessor:!1},worker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,clearInterval:!1,clearTimeout:!1,close:!0,console:!1,fetch:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!0,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onlanguagechange:!0,onmessage:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,removeEventListener:!1,Request:!1,Response:!1,self:!0,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},node:{__dirname:!1,__filename:!1,AbortController:!1,AbortSignal:!1,atob:!1,btoa:!1,Buffer:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,console:!1,DOMException:!1,Event:!1,EventTarget:!1,exports:!0,global:!1,Intl:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,module:!1,performance:!1,process:!1,queueMicrotask:!1,require:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1},nodeBuiltin:{AbortController:!1,AbortSignal:!1,atob:!1,btoa:!1,Buffer:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,console:!1,DOMException:!1,Event:!1,EventTarget:!1,global:!1,Intl:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,performance:!1,process:!1,queueMicrotask:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1},commonjs:{exports:!0,global:!1,module:!1,require:!1},amd:{define:!1,require:!1},mocha:{after:!1,afterEach:!1,before:!1,beforeEach:!1,context:!1,describe:!1,it:!1,mocha:!1,run:!1,setup:!1,specify:!1,suite:!1,suiteSetup:!1,suiteTeardown:!1,teardown:!1,test:!1,xcontext:!1,xdescribe:!1,xit:!1,xspecify:!1},jasmine:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,expectAsync:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,spyOnAllFunctions:!1,spyOnProperty:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},jest:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fdescribe:!1,fit:!1,it:!1,jest:!1,pit:!1,require:!1,test:!1,xdescribe:!1,xit:!1,xtest:!1},qunit:{asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},phantomjs:{console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},couch:{emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},rhino:{defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},nashorn:{__DIR__:!1,__FILE__:!1,__LINE__:!1,com:!1,edu:!1,exit:!1,java:!1,Java:!1,javafx:!1,JavaImporter:!1,javax:!1,JSAdapter:!1,load:!1,loadWithNewGlobal:!1,org:!1,Packages:!1,print:!1,quit:!1},wsh:{ActiveXObject:!1,CollectGarbage:!1,Debug:!1,Enumerator:!1,GetObject:!1,RuntimeObject:!1,ScriptEngine:!1,ScriptEngineBuildVersion:!1,ScriptEngineMajorVersion:!1,ScriptEngineMinorVersion:!1,VBArray:!1,WScript:!1,WSH:!1},jquery:{$:!1,jQuery:!1},yui:{YAHOO:!1,YAHOO_config:!1,YUI:!1,YUI_config:!1},shelljs:{cat:!1,cd:!1,chmod:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,exec:!1,exit:!1,find:!1,grep:!1,ln:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,target:!1,tempdir:!1,test:!1,touch:!1,which:!1},prototypejs:{$:!1,$$:!1,$A:!1,$break:!1,$continue:!1,$F:!1,$H:!1,$R:!1,$w:!1,Abstract:!1,Ajax:!1,Autocompleter:!1,Builder:!1,Class:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Element:!1,Enumerable:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Scriptaculous:!1,Selector:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Template:!1,Toggle:!1,Try:!1},meteor:{$:!1,Accounts:!1,AccountsClient:!1,AccountsCommon:!1,AccountsServer:!1,App:!1,Assets:!1,Blaze:!1,check:!1,Cordova:!1,DDP:!1,DDPRateLimiter:!1,DDPServer:!1,Deps:!1,EJSON:!1,Email:!1,HTTP:!1,Log:!1,Match:!1,Meteor:!1,Mongo:!1,MongoInternals:!1,Npm:!1,Package:!1,Plugin:!1,process:!1,Random:!1,ReactiveDict:!1,ReactiveVar:!1,Router:!1,ServiceConfiguration:!1,Session:!1,share:!1,Spacebars:!1,Template:!1,Tinytest:!1,Tracker:!1,UI:!1,Utils:!1,WebApp:!1,WebAppInternals:!1},mongo:{_isWindows:!1,_rand:!1,BulkWriteResult:!1,cat:!1,cd:!1,connect:!1,db:!1,getHostName:!1,getMemInfo:!1,hostname:!1,ISODate:!1,listFiles:!1,load:!1,ls:!1,md5sumFile:!1,mkdir:!1,Mongo:!1,NumberInt:!1,NumberLong:!1,ObjectId:!1,PlanCache:!1,print:!1,printjson:!1,pwd:!1,quit:!1,removeFile:!1,rs:!1,sh:!1,UUID:!1,version:!1,WriteResult:!1},applescript:{$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},serviceworker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,CacheStorage:!1,clearInterval:!1,clearTimeout:!1,Client:!1,clients:!1,Clients:!1,close:!0,console:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,fetch:!1,FetchEvent:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!1,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onfetch:!0,oninstall:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onnotificationclick:!0,onnotificationclose:!0,onoffline:!0,ononline:!0,onpush:!0,onpushsubscriptionchange:!0,onrejectionhandled:!0,onsync:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,registration:!1,removeEventListener:!1,Request:!1,Response:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerMessageEvent:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,skipWaiting:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,WindowClient:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},atomtest:{advanceClock:!1,atom:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},embertest:{andThen:!1,click:!1,currentPath:!1,currentRouteName:!1,currentURL:!1,fillIn:!1,find:!1,findAll:!1,findWithAssert:!1,keyEvent:!1,pauseTest:!1,resumeTest:!1,triggerEvent:!1,visit:!1,wait:!1},protractor:{$:!1,$$:!1,browser:!1,by:!1,By:!1,DartObject:!1,element:!1,protractor:!1},"shared-node-browser":{AbortController:!1,AbortSignal:!1,atob:!1,btoa:!1,clearInterval:!1,clearTimeout:!1,console:!1,DOMException:!1,Event:!1,EventTarget:!1,Intl:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,performance:!1,queueMicrotask:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1},webextensions:{browser:!1,chrome:!1,opr:!1},greasemonkey:{cloneInto:!1,createObjectIn:!1,exportFunction:!1,GM:!1,GM_addElement:!1,GM_addStyle:!1,GM_addValueChangeListener:!1,GM_deleteValue:!1,GM_download:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getTab:!1,GM_getTabs:!1,GM_getValue:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_notification:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_removeValueChangeListener:!1,GM_saveTab:!1,GM_setClipboard:!1,GM_setValue:!1,GM_unregisterMenuCommand:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1},devtools:{$:!1,$_:!1,$$:!1,$0:!1,$1:!1,$2:!1,$3:!1,$4:!1,$x:!1,chrome:!1,clear:!1,copy:!1,debug:!1,dir:!1,dirxml:!1,getEventListeners:!1,inspect:!1,keys:!1,monitor:!1,monitorEvents:!1,profile:!1,profileEnd:!1,queryObjects:!1,table:!1,undebug:!1,unmonitor:!1,unmonitorEvents:!1,values:!1}}});var by=M((NX,Ey)=>{b();v();"use strict";Ey.exports=xy()});var Hc=M(Wc=>{b();v();"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});var T4=mg(),F4=Ii(),P4=$c(),I4=by();function Go(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var _4=Go(T4),B4=Go(F4),O4=Go(P4),At=Go(I4),Qi=["off","warn","error"],R4=Qi.reduce((t,e,r)=>(t[e]=r,t),{}),L4=[0,1,2,"off","warn","error"];function vy(t){let e=Array.isArray(t)?t[0]:t;return e===0||e===1||e===2?e:typeof e=="string"&&R4[e.toLowerCase()]||0}function N4(t){t.rules&&Object.keys(t.rules).forEach(e=>{let r=t.rules[e];typeof r=="number"?t.rules[e]=Qi[r]||Qi[0]:Array.isArray(r)&&typeof r[0]=="number"&&(r[0]=Qi[r[0]]||Qi[0])})}function M4(t){return vy(t)===2}function Cy(t){let e=Array.isArray(t)?t[0]:t;return typeof e=="string"&&(e=e.toLowerCase()),L4.indexOf(e)!==-1}function j4(t){return Object.keys(t).every(e=>Cy(t[e]))}function Sy(t){switch(t){case"off":return"off";case!0:case"true":case"writeable":case"writable":return"writable";case null:case!1:case"false":case"readable":case"readonly":return"readonly";default:throw new Error(`'${t}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`)}}var q4={__proto__:null,getRuleSeverity:vy,normalizeToStrings:N4,isErrorSeverity:M4,isValidSeverity:Cy,isEverySeverityValid:j4,normalizeConfigGlobal:Sy},V4={ESLINT_LEGACY_ECMAFEATURES:"The 'ecmaFeatures' config file property is deprecated and has no effect.",ESLINT_PERSONAL_CONFIG_LOAD:"'~/.eslintrc.*' config files have been deprecated. Please use a config file per project or the '--config' option.",ESLINT_PERSONAL_CONFIG_SUPPRESS:"'~/.eslintrc.*' config files have been deprecated. Please remove it or add 'root:true' to the config files in your projects in order to avoid loading '~/.eslintrc.*' accidentally."},Ay=new Set;function U4(t,e){let r=JSON.stringify({source:t,errorCode:e});if(Ay.has(r))return;Ay.add(r);let n=B4.default.relative(L.cwd(),t),s=V4[e];L.emitWarning(`${s} (found in "${n}")`,"DeprecationWarning",e)}var wy={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string"},$schema:{type:"string"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}},$4=(t={})=>{let e=new O4.default({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:"ignore",verbose:!0,schemaId:"auto",...t});return e.addMetaSchema(wy),e._opts.defaultMeta=wy.id,e},ky={$schema:{type:"string"},env:{type:"object"},extends:{$ref:"#/definitions/stringOrStrings"},globals:{type:"object"},overrides:{type:"array",items:{$ref:"#/definitions/overrideConfig"},additionalItems:!1},parser:{type:["string","null"]},parserOptions:{type:"object"},plugins:{type:"array"},processor:{type:"string"},rules:{type:"object"},settings:{type:"object"},noInlineConfig:{type:"boolean"},reportUnusedDisableDirectives:{type:"boolean"},ecmaFeatures:{type:"object"}},W4={definitions:{stringOrStrings:{oneOf:[{type:"string"},{type:"array",items:{type:"string"},additionalItems:!1}]},stringOrStringsRequired:{oneOf:[{type:"string"},{type:"array",items:{type:"string"},additionalItems:!1,minItems:1}]},objectConfig:{type:"object",properties:{root:{type:"boolean"},ignorePatterns:{$ref:"#/definitions/stringOrStrings"},...ky},additionalProperties:!1},overrideConfig:{type:"object",properties:{excludedFiles:{$ref:"#/definitions/stringOrStrings"},files:{$ref:"#/definitions/stringOrStringsRequired"},...ky},required:["files"],additionalProperties:!1}},$ref:"#/definitions/objectConfig"};function G4(t,e){let r={};for(let[n,s]of Object.entries(t))Object.hasOwnProperty.call(e,n)||(r[n]=s);return r}var ds=G4(At.default.es2015,At.default.es5),Hn={Atomics:!1,SharedArrayBuffer:!1},Gc={BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,globalThis:!1},Dy={AggregateError:!1,FinalizationRegistry:!1,WeakRef:!1},Ty=new Map(Object.entries({builtin:{globals:At.default.es5},es6:{globals:ds,parserOptions:{ecmaVersion:6}},es2015:{globals:ds,parserOptions:{ecmaVersion:6}},es2016:{globals:ds,parserOptions:{ecmaVersion:7}},es2017:{globals:{...ds,...Hn},parserOptions:{ecmaVersion:8}},es2018:{globals:{...ds,...Hn},parserOptions:{ecmaVersion:9}},es2019:{globals:{...ds,...Hn},parserOptions:{ecmaVersion:10}},es2020:{globals:{...ds,...Hn,...Gc},parserOptions:{ecmaVersion:11}},es2021:{globals:{...ds,...Hn,...Gc,...Dy},parserOptions:{ecmaVersion:12}},es2022:{globals:{...ds,...Hn,...Gc,...Dy},parserOptions:{ecmaVersion:13}},browser:{globals:At.default.browser},node:{globals:At.default.node,parserOptions:{ecmaFeatures:{globalReturn:!0}}},"shared-node-browser":{globals:At.default["shared-node-browser"]},worker:{globals:At.default.worker},serviceworker:{globals:At.default.serviceworker},commonjs:{globals:At.default.commonjs,parserOptions:{ecmaFeatures:{globalReturn:!0}}},amd:{globals:At.default.amd},mocha:{globals:At.default.mocha},jasmine:{globals:At.default.jasmine},jest:{globals:At.default.jest},phantomjs:{globals:At.default.phantomjs},jquery:{globals:At.default.jquery},qunit:{globals:At.default.qunit},prototypejs:{globals:At.default.prototypejs},shelljs:{globals:At.default.shelljs},meteor:{globals:At.default.meteor},mongo:{globals:At.default.mongo},protractor:{globals:At.default.protractor},applescript:{globals:At.default.applescript},nashorn:{globals:At.default.nashorn},atomtest:{globals:At.default.atomtest},embertest:{globals:At.default.embertest},webextensions:{globals:At.default.webextensions},greasemonkey:{globals:At.default.greasemonkey}})),Fy=$4(),zc=new WeakMap,Py=Function.prototype,zo,z4={error:2,warn:1,off:0},Iy=new WeakSet,_y=class{constructor({builtInRules:e=new Map}={}){this.builtInRules=e}getRuleOptionsSchema(e){if(!e)return null;let r=e.schema||e.meta&&e.meta.schema;return Array.isArray(r)?r.length?{type:"array",items:r,minItems:0,maxItems:r.length}:{type:"array",minItems:0,maxItems:0}:r||null}validateRuleSeverity(e){let r=Array.isArray(e)?e[0]:e,n=typeof r=="string"?z4[r.toLowerCase()]:r;if(n===0||n===1||n===2)return n;throw new Error(` Severity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${_4.default.inspect(r).replace(/'/gu,'"').replace(/\n/gu,"")}').
|
|
25
|
+
`)}validateRuleSchema(e,r){if(!zc.has(e)){let s=this.getRuleOptionsSchema(e);s&&zc.set(e,Fy.compile(s))}let n=zc.get(e);if(n&&(n(r),n.errors))throw new Error(n.errors.map(s=>` Value ${JSON.stringify(s.data)} ${s.message}.
|
|
26
|
+
`).join(""))}validateRuleOptions(e,r,n,s=null){try{this.validateRuleSeverity(n)!==0&&this.validateRuleSchema(e,Array.isArray(n)?n.slice(1):[])}catch(i){let a=`Configuration for rule "${r}" is invalid:
|
|
27
|
+
${i.message}`;throw typeof s=="string"?new Error(`${s}:
|
|
28
|
+
${a}`):new Error(a)}}validateEnvironment(e,r,n=Py){!e||Object.keys(e).forEach(s=>{if(!(n(s)||Ty.get(s)||null)){let a=`${r}:
|
|
29
|
+
Environment key "${s}" is unknown
|
|
30
|
+
`;throw new Error(a)}})}validateRules(e,r,n=Py){!e||Object.keys(e).forEach(s=>{let i=n(s)||this.builtInRules.get(s)||null;this.validateRuleOptions(i,s,e[s],r)})}validateGlobals(e,r=null){!e||Object.entries(e).forEach(([n,s])=>{try{Sy(s)}catch(i){throw new Error(`ESLint configuration of global '${n}' in ${r} is invalid:
|
|
31
|
+
${i.message}`)}})}validateProcessor(e,r,n){if(e&&!n(e))throw new Error(`ESLint configuration of processor in '${r}' is invalid: '${e}' was not found.`)}formatErrors(e){return e.map(r=>{if(r.keyword==="additionalProperties")return`Unexpected top-level property "${r.dataPath.length?`${r.dataPath.slice(1)}.${r.params.additionalProperty}`:r.params.additionalProperty}"`;if(r.keyword==="type"){let s=r.dataPath.slice(1),i=Array.isArray(r.schema)?r.schema.join("/"):r.schema,a=JSON.stringify(r.data);return`Property "${s}" is the wrong type (expected ${i} but got \`${a}\`)`}return`"${r.dataPath[0]==="."?r.dataPath.slice(1):r.dataPath}" ${r.message}. Value: ${JSON.stringify(r.data)}`}).map(r=>` - ${r}.
|
|
32
|
+
`).join("")}validateConfigSchema(e,r=null){if(zo=zo||Fy.compile(W4),!zo(e))throw new Error(`ESLint configuration in ${r} is invalid:
|
|
33
|
+
${this.formatErrors(zo.errors)}`);Object.hasOwnProperty.call(e,"ecmaFeatures")&&U4(r,"ESLINT_LEGACY_ECMAFEATURES")}validate(e,r,n,s){this.validateConfigSchema(e,r),this.validateRules(e.rules,r,n),this.validateEnvironment(e.env,r,s),this.validateGlobals(e.globals,r);for(let i of e.overrides||[])this.validateRules(i.rules,r,n),this.validateEnvironment(i.env,r,s),this.validateGlobals(e.globals,r)}validateConfigArray(e){let r=Map.prototype.get.bind(e.pluginEnvironments),n=Map.prototype.get.bind(e.pluginProcessors),s=Map.prototype.get.bind(e.pluginRules);for(let i of e)Iy.has(i)||(Iy.add(i),this.validateEnvironment(i.env,i.name,r),this.validateGlobals(i.globals,i.name),this.validateProcessor(i.processor,i.name,n),this.validateRules(i.rules,i.name,s))}},H4=/^@.*\//iu;function K4(t,e){let r=t;if(r.includes("\\")&&(r=r.replace(/\\/gu,"/")),r.charAt(0)==="@"){let n=new RegExp(`^(@[^/]+)(?:/(?:${e})?)?$`,"u"),s=new RegExp(`^${e}(-|$)`,"u");n.test(r)?r=r.replace(n,`$1/${e}`):s.test(r.split("/")[1])||(r=r.replace(/^@([^/]+)\/(.*)$/u,`@$1/${e}-$2`))}else r.startsWith(`${e}-`)||(r=`${e}-${r}`);return r}function Y4(t,e){if(t[0]==="@"){let r=new RegExp(`^(@[^/]+)/${e}$`,"u").exec(t);if(r)return r[1];if(r=new RegExp(`^(@[^/]+)/${e}-(.+)$`,"u").exec(t),r)return`${r[1]}/${r[2]}`}else if(t.startsWith(`${e}-`))return t.slice(e.length+1);return t}function J4(t){let e=t.match(H4);return e?e[0]:""}var Q4={__proto__:null,normalizePackageName:K4,getShorthandName:Y4,getNamespaceFromTerm:J4},X4={environments:Ty,ConfigOps:q4,ConfigValidator:_y,naming:Q4};Wc.Legacy=X4});var Kc=M((jX,By)=>{b();v();var Kn=1e3,Yn=Kn*60,Jn=Yn*60,xn=Jn*24,Z4=xn*7,e5=xn*365.25;By.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return t5(t);if(r==="number"&&isFinite(t))return e.long?s5(t):r5(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function t5(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!!e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*e5;case"weeks":case"week":case"w":return r*Z4;case"days":case"day":case"d":return r*xn;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Jn;case"minutes":case"minute":case"mins":case"min":case"m":return r*Yn;case"seconds":case"second":case"secs":case"sec":case"s":return r*Kn;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function r5(t){var e=Math.abs(t);return e>=xn?Math.round(t/xn)+"d":e>=Jn?Math.round(t/Jn)+"h":e>=Yn?Math.round(t/Yn)+"m":e>=Kn?Math.round(t/Kn)+"s":t+"ms"}function s5(t){var e=Math.abs(t);return e>=xn?Ho(t,e,xn,"day"):e>=Jn?Ho(t,e,Jn,"hour"):e>=Yn?Ho(t,e,Yn,"minute"):e>=Kn?Ho(t,e,Kn,"second"):t+" ms"}function Ho(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}});var Ry=M((qX,Oy)=>{b();v();function n5(t){r.debug=r,r.default=r,r.coerce=l,r.disable=i,r.enable=s,r.enabled=a,r.humanize=Kc(),r.destroy=u,Object.keys(t).forEach(c=>{r[c]=t[c]}),r.names=[],r.skips=[],r.formatters={};function e(c){let p=0;for(let h=0;h<c.length;h++)p=(p<<5)-p+c.charCodeAt(h),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=e;function r(c){let p,h=null,f,m;function x(...E){if(!x.enabled)return;let S=x,T=Number(new Date),I=T-(p||T);S.diff=I,S.prev=p,S.curr=T,p=T,E[0]=r.coerce(E[0]),typeof E[0]!="string"&&E.unshift("%O");let y=0;E[0]=E[0].replace(/%([a-zA-Z%])/g,(D,R)=>{if(D==="%%")return"%";y++;let z=r.formatters[R];if(typeof z=="function"){let q=E[y];D=z.call(S,q),E.splice(y,1),y--}return D}),r.formatArgs.call(S,E),(S.log||r.log).apply(S,E)}return x.namespace=c,x.useColors=r.useColors(),x.color=r.selectColor(c),x.extend=n,x.destroy=r.destroy,Object.defineProperty(x,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(f!==r.namespaces&&(f=r.namespaces,m=r.enabled(c)),m),set:E=>{h=E}}),typeof r.init=="function"&&r.init(x),x}function n(c,p){let h=r(this.namespace+(typeof p=="undefined"?":":p)+c);return h.log=this.log,h}function s(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let p,h=(typeof c=="string"?c:"").split(/[\s,]+/),f=h.length;for(p=0;p<f;p++)!h[p]||(c=h[p].replace(/\*/g,".*?"),c[0]==="-"?r.skips.push(new RegExp("^"+c.slice(1)+"$")):r.names.push(new RegExp("^"+c+"$")))}function i(){let c=[...r.names.map(o),...r.skips.map(o).map(p=>"-"+p)].join(",");return r.enable(""),c}function a(c){if(c[c.length-1]==="*")return!0;let p,h;for(p=0,h=r.skips.length;p<h;p++)if(r.skips[p].test(c))return!1;for(p=0,h=r.names.length;p<h;p++)if(r.names[p].test(c))return!0;return!1}function o(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function l(c){return c instanceof Error?c.stack||c.message:c}function u(){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 r.enable(r.load()),r}Oy.exports=n5});var En=M((mr,Ko)=>{b();v();mr.formatArgs=i5;mr.save=a5;mr.load=o5;mr.useColors=l5;mr.storage=u5();mr.destroy=(()=>{let t=!1;return()=>{t||(t=!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`."))}})();mr.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 l5(){return typeof window!="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i5(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Ko.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(n=r))}),t.splice(n,0,e)}mr.log=console.debug||console.log||(()=>{});function a5(t){try{t?mr.storage.setItem("debug",t):mr.storage.removeItem("debug")}catch(e){}}function o5(){let t;try{t=mr.storage.getItem("debug")}catch(e){}return!t&&typeof L!="undefined"&&"env"in L&&(t=L.env.DEBUG),t}function u5(){try{return localStorage}catch(t){}}Ko.exports=Ry()(mr);var{formatters:c5}=Ko.exports;c5.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Qo=M((VX,Ly)=>{b();v();"use strict";var Yo=sc(),f5=En()("eslint:traverser");function Ny(){}function p5(t){return t!==null&&typeof t=="object"&&typeof t.type=="string"}function h5(t,e){let r=t[e.type];return r||(r=Yo.getKeys(e),f5('Unknown node type "%s": Estimated visitor keys %j',e.type,r)),r}var Jo=class{constructor(){this._current=null,this._parents=[],this._skipped=!1,this._broken=!1,this._visitorKeys=null,this._enter=null,this._leave=null}current(){return this._current}parents(){return this._parents.slice(0)}break(){this._broken=!0}skip(){this._skipped=!0}traverse(e,r){this._current=null,this._parents=[],this._skipped=!1,this._broken=!1,this._visitorKeys=r.visitorKeys||Yo.KEYS,this._enter=r.enter||Ny,this._leave=r.leave||Ny,this._traverse(e,null)}_traverse(e,r){if(!!p5(e)){if(this._current=e,this._skipped=!1,this._enter(e,r),!this._skipped&&!this._broken){let n=h5(this._visitorKeys,e);if(n.length>=1){this._parents.push(e);for(let s=0;s<n.length&&!this._broken;++s){let i=e[n[s]];if(Array.isArray(i))for(let a=0;a<i.length&&!this._broken;++a)this._traverse(i[a],e);else this._traverse(i,e)}this._parents.pop()}}this._broken||this._leave(e,r),this._current=r}}static getKeys(e){return Yo.getKeys(e)}static traverse(e,r){new Jo().traverse(e,r)}static get DEFAULT_VISITOR_KEYS(){return Yo.KEYS}};Ly.exports=Jo});var jy=M((UX,My)=>{My.exports={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["exported","source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportExpression:["source"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]}});var Vy=M(($X,qy)=>{b();v();"use strict";var Xi=jy(),m5=Object.freeze(Object.keys(Xi));for(let t of m5)Object.freeze(Xi[t]);Object.freeze(Xi);var d5=new Set(["parent","leadingComments","trailingComments"]);function g5(t){return!d5.has(t)&&t[0]!=="_"}qy.exports=Object.freeze({KEYS:Xi,getKeys(t){return Object.keys(t).filter(g5)},unionWith(t){let e=Object.assign({},Xi);for(let r of Object.keys(t))if(e.hasOwnProperty(r)){let n=new Set(t[r]);for(let s of e[r])n.add(s);e[r]=Object.freeze(Array.from(n))}else e[r]=Object.freeze(Array.from(t[r]));return Object.freeze(e)}})});var Wt=M(ut=>{b();v();"use strict";Object.defineProperty(ut,"__esModule",{value:!0});function y5(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var Uy=y5(Vy());function Yc(t,e){let r=e.range[0],n=t,s=!1;do{s=!1;for(let i of n.childScopes){let a=i.block.range;if(a[0]<=r&&r<a[1]){n=i,s=!0;break}}}while(s);return n}function Qn(t,e){let r="",n=t;for(typeof e=="string"?r=e:(r=e.name,n=Yc(n,e));n!=null;){let s=n.set.get(r);if(s!=null)return s;n=n.upper}return null}function x5(t){return!this(t)}function Mr(t){return x5.bind(t)}function Qr(t,e){return t.type==="Punctuator"&&t.value===e}function Xo(t){return Qr(t,"=>")}function Jc(t){return Qr(t,",")}function Qc(t){return Qr(t,";")}function Xc(t){return Qr(t,":")}function Rs(t){return Qr(t,"(")}function Zo(t){return Qr(t,")")}function Zc(t){return Qr(t,"[")}function ef(t){return Qr(t,"]")}function tf(t){return Qr(t,"{")}function rf(t){return Qr(t,"}")}function sf(t){return["Block","Line","Shebang"].includes(t.type)}var $y=Mr(Xo),Wy=Mr(Jc),Gy=Mr(Qc),zy=Mr(Xc),Hy=Mr(Rs),Ky=Mr(Zo),Yy=Mr(Zc),Jy=Mr(ef),Qy=Mr(tf),Xy=Mr(rf),Zy=Mr(sf);function ex(t,e){return t.id?e.getTokenAfter(t.id,Rs):e.getFirstToken(t,Rs)}function tx(t,e){let r=t.parent,n=null,s=null;if(t.type==="ArrowFunctionExpression"){let i=e.getTokenBefore(t.body,Xo);n=i.loc.start,s=i.loc.end}else r.type==="Property"||r.type==="MethodDefinition"||r.type==="PropertyDefinition"?(n=r.loc.start,s=ex(t,e).loc.start):(n=t.loc.start,s=ex(t,e).loc.start);return{start:{...n},end:{...s}}}var rx=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"||typeof window!="undefined"?window:{},E5=Object.freeze(new Set(["Array","ArrayBuffer","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","isFinite","isNaN","isPrototypeOf","JSON","Map","Math","NaN","Number","Object","parseFloat","parseInt","Promise","Proxy","Reflect","RegExp","Set","String","Symbol","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","undefined","unescape","WeakMap","WeakSet"])),nf=new Set([Array.isArray,typeof BigInt=="function"?BigInt:void 0,Boolean,Date,Date.parse,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,escape,isFinite,isNaN,isPrototypeOf,...Object.getOwnPropertyNames(Math).map(t=>Math[t]).filter(t=>typeof t=="function"),Number,Number.isFinite,Number.isNaN,Number.parseFloat,Number.parseInt,Object,Object.entries,Object.is,Object.isExtensible,Object.isFrozen,Object.isSealed,Object.keys,Object.values,parseFloat,parseInt,RegExp,String,String.fromCharCode,String.fromCodePoint,String.raw,Symbol.for,Symbol.keyFor,unescape].filter(t=>typeof t=="function")),sx=new Set([Object.freeze,Object.preventExtensions,Object.seal]);function b5(t,e){let r=t;for(;(typeof r=="object"||typeof r=="function")&&r!==null;){let n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}return null}function v5(t,e){let r=b5(t,e);return r!=null&&r.get!=null}function Zi(t,e){let r=[];for(let n=0;n<t.length;++n){let s=t[n];if(s==null)r.length=n+1;else if(s.type==="SpreadElement"){let i=Ft(s.argument,e);if(i==null)return null;r.push(...i.value)}else{let i=Ft(s,e);if(i==null)return null;r.push(i.value)}}return r}var nx=Object.freeze({ArrayExpression(t,e){let r=Zi(t.elements,e);return r!=null?{value:r}:null},AssignmentExpression(t,e){return t.operator==="="?Ft(t.right,e):null},BinaryExpression(t,e){if(t.operator==="in"||t.operator==="instanceof")return null;let r=Ft(t.left,e),n=Ft(t.right,e);if(r!=null&&n!=null)switch(t.operator){case"==":return{value:r.value==n.value};case"!=":return{value:r.value!=n.value};case"===":return{value:r.value===n.value};case"!==":return{value:r.value!==n.value};case"<":return{value:r.value<n.value};case"<=":return{value:r.value<=n.value};case">":return{value:r.value>n.value};case">=":return{value:r.value>=n.value};case"<<":return{value:r.value<<n.value};case">>":return{value:r.value>>n.value};case">>>":return{value:r.value>>>n.value};case"+":return{value:r.value+n.value};case"-":return{value:r.value-n.value};case"*":return{value:r.value*n.value};case"/":return{value:r.value/n.value};case"%":return{value:r.value%n.value};case"**":return{value:Math.pow(r.value,n.value)};case"|":return{value:r.value|n.value};case"^":return{value:r.value^n.value};case"&":return{value:r.value&n.value}}return null},CallExpression(t,e){let r=t.callee,n=Zi(t.arguments,e);if(n!=null)if(r.type==="MemberExpression"){if(r.property.type==="PrivateIdentifier")return null;let s=Ft(r.object,e);if(s!=null){if(s.value==null&&(s.optional||t.optional))return{value:void 0,optional:!0};let i=af(r,e);if(i!=null){let a=s.value,o=i.value;if(nf.has(a[o]))return{value:a[o](...n)};if(sx.has(a[o]))return{value:n[0]}}}}else{let s=Ft(r,e);if(s!=null){if(s.value==null&&t.optional)return{value:void 0,optional:!0};let i=s.value;if(nf.has(i))return{value:i(...n)};if(sx.has(i))return{value:n[0]}}}return null},ConditionalExpression(t,e){let r=Ft(t.test,e);return r!=null?r.value?Ft(t.consequent,e):Ft(t.alternate,e):null},ExpressionStatement(t,e){return Ft(t.expression,e)},Identifier(t,e){if(e!=null){let r=Qn(e,t);if(r!=null&&r.defs.length===0&&E5.has(r.name)&&r.name in rx)return{value:rx[r.name]};if(r!=null&&r.defs.length===1){let n=r.defs[0];if(n.parent&&n.parent.kind==="const"&&n.node.id.type==="Identifier")return Ft(n.node.init,e)}}return null},Literal(t){return(t.regex!=null||t.bigint!=null)&&t.value==null?null:{value:t.value}},LogicalExpression(t,e){let r=Ft(t.left,e);if(r!=null){if(t.operator==="||"&&Boolean(r.value)===!0||t.operator==="&&"&&Boolean(r.value)===!1||t.operator==="??"&&r.value!=null)return r;let n=Ft(t.right,e);if(n!=null)return n}return null},MemberExpression(t,e){if(t.property.type==="PrivateIdentifier")return null;let r=Ft(t.object,e);if(r!=null){if(r.value==null&&(r.optional||t.optional))return{value:void 0,optional:!0};let n=af(t,e);if(n!=null&&!v5(r.value,n.value))return{value:r.value[n.value]}}return null},ChainExpression(t,e){let r=Ft(t.expression,e);return r!=null?{value:r.value}:null},NewExpression(t,e){let r=Ft(t.callee,e),n=Zi(t.arguments,e);if(r!=null&&n!=null){let s=r.value;if(nf.has(s))return{value:new s(...n)}}return null},ObjectExpression(t,e){let r={};for(let n of t.properties)if(n.type==="Property"){if(n.kind!=="init")return null;let s=af(n,e),i=Ft(n.value,e);if(s==null||i==null)return null;r[s.value]=i.value}else if(n.type==="SpreadElement"||n.type==="ExperimentalSpreadProperty"){let s=Ft(n.argument,e);if(s==null)return null;Object.assign(r,s.value)}else return null;return{value:r}},SequenceExpression(t,e){let r=t.expressions[t.expressions.length-1];return Ft(r,e)},TaggedTemplateExpression(t,e){let r=Ft(t.tag,e),n=Zi(t.quasi.expressions,e);if(r!=null&&n!=null){let s=r.value,i=t.quasi.quasis.map(a=>a.value.cooked);if(i.raw=t.quasi.quasis.map(a=>a.value.raw),s===String.raw)return{value:s(i,...n)}}return null},TemplateLiteral(t,e){let r=Zi(t.expressions,e);if(r!=null){let n=t.quasis[0].value.cooked;for(let s=0;s<r.length;++s)n+=r[s],n+=t.quasis[s+1].value.cooked;return{value:n}}return null},UnaryExpression(t,e){if(t.operator==="delete")return null;if(t.operator==="void")return{value:void 0};let r=Ft(t.argument,e);if(r!=null)switch(t.operator){case"-":return{value:-r.value};case"+":return{value:+r.value};case"!":return{value:!r.value};case"~":return{value:~r.value};case"typeof":return{value:typeof r.value}}return null}});function Ft(t,e){return t!=null&&Object.hasOwnProperty.call(nx,t.type)?nx[t.type](t,e):null}function af(t,e){let r=t.type==="Property"?t.key:t.property;return t.computed?Ft(r,e):r.type==="Identifier"?{value:r.name}:r.type==="Literal"?r.bigint?{value:r.bigint}:{value:String(r.value)}:null}function of(t,e=null){try{return Ft(t,e)}catch(r){return null}}function ea(t,e=null){if(t&&t.type==="Literal"&&t.value===null){if(t.regex)return`/${t.regex.pattern}/${t.regex.flags}`;if(t.bigint)return t.bigint}let r=of(t,e);return r&&String(r.value)}function ta(t,e){switch(t.type){case"MemberExpression":return t.computed?ea(t.property,e):t.property.type==="PrivateIdentifier"?null:t.property.name;case"Property":case"MethodDefinition":case"PropertyDefinition":return t.computed?ea(t.key,e):t.key.type==="Literal"?String(t.key.value):t.key.type==="PrivateIdentifier"?null:t.key.name}return null}function ix(t,e){let r=t.parent,n=[],s=r.type==="Property"&&r.value===t,i=r.type==="MethodDefinition"&&r.value===t,a=r.type==="PropertyDefinition"&&r.value===t;if((i||a)&&(r.static&&n.push("static"),r.key.type==="PrivateIdentifier"&&n.push("private")),t.async&&n.push("async"),t.generator&&n.push("generator"),s||i){if(r.kind==="constructor")return"constructor";r.kind==="get"?n.push("getter"):r.kind==="set"?n.push("setter"):n.push("method")}else a?n.push("method"):(t.type==="ArrowFunctionExpression"&&n.push("arrow"),n.push("function"));if(s||i||a)if(r.key.type==="PrivateIdentifier")n.push(`#${r.key.name}`);else{let o=ta(r);if(o)n.push(`'${o}'`);else if(e){let l=e.getText(r.key);l.includes(`
|
|
34
|
+
`)||n.push(`[${l}]`)}}else t.id?n.push(`'${t.id.name}'`):r.type==="VariableDeclarator"&&r.id&&r.id.type==="Identifier"?n.push(`'${r.id.name}'`):(r.type==="AssignmentExpression"||r.type==="AssignmentPattern")&&r.left&&r.left.type==="Identifier"&&n.push(`'${r.left.name}'`);return n.join(" ")}var C5=Object.freeze(new Set(["==","!=","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),S5=Object.freeze(new Set(["-","+","!","~"]));function ax(t){return t!==null&&typeof t=="object"&&typeof t.type=="string"}var A5=Object.freeze(Object.assign(Object.create(null),{$visit(t,e,r){let{type:n}=t;return typeof this[n]=="function"?this[n](t,e,r):this.$visitChildren(t,e,r)},$visitChildren(t,e,r){let{type:n}=t;for(let s of r[n]||Uy.getKeys(t)){let i=t[s];if(Array.isArray(i)){for(let a of i)if(ax(a)&&this.$visit(a,e,r))return!0}else if(ax(i)&&this.$visit(i,e,r))return!0}return!1},ArrowFunctionExpression(){return!1},AssignmentExpression(){return!0},AwaitExpression(){return!0},BinaryExpression(t,e,r){return e.considerImplicitTypeConversion&&C5.has(t.operator)&&(t.left.type!=="Literal"||t.right.type!=="Literal")?!0:this.$visitChildren(t,e,r)},CallExpression(){return!0},FunctionExpression(){return!1},ImportExpression(){return!0},MemberExpression(t,e,r){return e.considerGetters||e.considerImplicitTypeConversion&&t.computed&&t.property.type!=="Literal"?!0:this.$visitChildren(t,e,r)},MethodDefinition(t,e,r){return e.considerImplicitTypeConversion&&t.computed&&t.key.type!=="Literal"?!0:this.$visitChildren(t,e,r)},NewExpression(){return!0},Property(t,e,r){return e.considerImplicitTypeConversion&&t.computed&&t.key.type!=="Literal"?!0:this.$visitChildren(t,e,r)},PropertyDefinition(t,e,r){return e.considerImplicitTypeConversion&&t.computed&&t.key.type!=="Literal"?!0:this.$visitChildren(t,e,r)},UnaryExpression(t,e,r){return t.operator==="delete"||e.considerImplicitTypeConversion&&S5.has(t.operator)&&t.argument.type!=="Literal"?!0:this.$visitChildren(t,e,r)},UpdateExpression(){return!0},YieldExpression(){return!0}}));function ox(t,e,{considerGetters:r=!1,considerImplicitTypeConversion:n=!1}={}){return A5.$visit(t,{considerGetters:r,considerImplicitTypeConversion:n},e.visitorKeys||Uy.KEYS)}function w5(t,e){let r=t.parent;switch(r.type){case"CallExpression":case"NewExpression":return r.arguments.length===1&&r.arguments[0]===t?e.getTokenAfter(r.callee,Rs):null;case"DoWhileStatement":return r.test===t?e.getTokenAfter(r.body,Rs):null;case"IfStatement":case"WhileStatement":return r.test===t?e.getFirstToken(r,1):null;case"ImportExpression":return r.source===t?e.getFirstToken(r,1):null;case"SwitchStatement":return r.discriminant===t?e.getFirstToken(r,1):null;case"WithStatement":return r.object===t?e.getFirstToken(r,1):null;default:return null}}function lx(t,e,r){let n,s,i,a,o;if(typeof t=="number"){if(n=t|0,s=e,i=r,!(n>=1))throw new TypeError("'times' should be a positive integer.")}else n=1,s=t,i=e;if(s==null||s.parent.type==="CatchClause"&&s.parent.param===s)return!1;a=o=s;do a=i.getTokenBefore(a),o=i.getTokenAfter(o);while(a!=null&&o!=null&&Rs(a)&&Zo(o)&&a!==w5(s,i)&&--n>0);return n===0}var k5=/\$(?:[$&`']|[1-9][0-9]?)/gu,ux=new WeakMap;function D5(t,e){let r=!1;for(let n=e-1;n>=0&&t.charCodeAt(n)===92;--n)r=!r;return r}function T5(t,e,r){let n=[],s=0,i=null;function a(o){switch(o){case"$$":return"$";case"$&":return i[0];case"$`":return e.slice(0,i.index);case"$'":return e.slice(i.index+i[0].length);default:{let l=o.slice(1);return l in i?i[l]:o}}}for(i of t.execAll(e))n.push(e.slice(s,i.index)),n.push(r.replace(k5,a)),s=i.index+i[0].length;return n.push(e.slice(s)),n.join("")}function F5(t,e,r){let n=[],s=0;for(let i of t.execAll(e))n.push(e.slice(s,i.index)),n.push(String(r(...i,i.index,i.input))),s=i.index+i[0].length;return n.push(e.slice(s)),n.join("")}var lf=class{constructor(e,{escaped:r=!1}={}){if(!(e instanceof RegExp))throw new TypeError("'pattern' should be a RegExp instance.");if(!e.flags.includes("g"))throw new Error("'pattern' should contains 'g' flag.");ux.set(this,{pattern:new RegExp(e.source,e.flags),escaped:Boolean(r)})}*execAll(e){let{pattern:r,escaped:n}=ux.get(this),s=null,i=0;for(r.lastIndex=0;(s=r.exec(e))!=null;)(n||!D5(e,s.index))&&(i=r.lastIndex,yield s,r.lastIndex=i)}test(e){return!this.execAll(e).next().done}[Symbol.replace](e,r){return typeof r=="function"?F5(this,String(e),r):T5(this,String(e),String(r))}},P5=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,bn=Function.call.bind(Object.hasOwnProperty),Ct=Symbol("read"),vn=Symbol("call"),Xn=Symbol("construct"),el=Symbol("esm"),I5={require:{[vn]:!0}};function cx(t){return t==null||t.defs.length!==0||t.references.some(e=>e.isWrite())}function _5(t){let e=t.parent;switch(e&&e.type){case"ConditionalExpression":return e.consequent===t||e.alternate===t;case"LogicalExpression":return!0;case"SequenceExpression":return e.expressions[e.expressions.length-1]===t;case"ChainExpression":return!0;default:return!1}}var Cn=class{constructor(e,{mode:r="strict",globalObjectNames:n=["global","globalThis","self","window"]}={}){this.variableStack=[],this.globalScope=e,this.mode=r,this.globalObjectNames=n.slice(0)}*iterateGlobalReferences(e){for(let r of Object.keys(e)){let n=e[r],s=[r],i=this.globalScope.set.get(r);cx(i)||(yield*this._iterateVariableReferences(i,s,n,!0))}for(let r of this.globalObjectNames){let n=[],s=this.globalScope.set.get(r);cx(s)||(yield*this._iterateVariableReferences(s,n,e,!1))}}*iterateCjsReferences(e){for(let{node:r}of this.iterateGlobalReferences(I5)){let n=ea(r.arguments[0]);if(n==null||!bn(e,n))continue;let s=e[n],i=[n];s[Ct]&&(yield{node:r,path:i,type:Ct,info:s[Ct]}),yield*this._iteratePropertyReferences(r,i,s)}}*iterateEsmReferences(e){let r=this.globalScope.block;for(let n of r.body){if(!P5.test(n.type)||n.source==null)continue;let s=n.source.value;if(!bn(e,s))continue;let i=e[s],a=[s];if(i[Ct]&&(yield{node:n,path:a,type:Ct,info:i[Ct]}),n.type==="ExportAllDeclaration")for(let o of Object.keys(i)){let l=i[o];l[Ct]&&(yield{node:n,path:a.concat(o),type:Ct,info:l[Ct]})}else for(let o of n.specifiers){let l=bn(i,el),u=this._iterateImportReferences(o,a,l?i:this.mode==="legacy"?{default:i,...i}:{default:i});if(l)yield*u;else for(let c of u)c.path=c.path.filter(B5),(c.path.length>=2||c.type!==Ct)&&(yield c)}}}*_iterateVariableReferences(e,r,n,s){if(!this.variableStack.includes(e)){this.variableStack.push(e);try{for(let i of e.references){if(!i.isRead())continue;let a=i.identifier;s&&n[Ct]&&(yield{node:a,path:r,type:Ct,info:n[Ct]}),yield*this._iteratePropertyReferences(a,r,n)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(e,r,n){let s=e;for(;_5(s);)s=s.parent;let i=s.parent;if(i.type==="MemberExpression"){if(i.object===s){let a=ta(i);if(a==null||!bn(n,a))return;r=r.concat(a);let o=n[a];o[Ct]&&(yield{node:i,path:r,type:Ct,info:o[Ct]}),yield*this._iteratePropertyReferences(i,r,o)}return}if(i.type==="CallExpression"){i.callee===s&&n[vn]&&(yield{node:i,path:r,type:vn,info:n[vn]});return}if(i.type==="NewExpression"){i.callee===s&&n[Xn]&&(yield{node:i,path:r,type:Xn,info:n[Xn]});return}if(i.type==="AssignmentExpression"){i.right===s&&(yield*this._iterateLhsReferences(i.left,r,n),yield*this._iteratePropertyReferences(i,r,n));return}if(i.type==="AssignmentPattern"){i.right===s&&(yield*this._iterateLhsReferences(i.left,r,n));return}i.type==="VariableDeclarator"&&i.init===s&&(yield*this._iterateLhsReferences(i.id,r,n))}*_iterateLhsReferences(e,r,n){if(e.type==="Identifier"){let s=Qn(this.globalScope,e);s!=null&&(yield*this._iterateVariableReferences(s,r,n,!1));return}if(e.type==="ObjectPattern"){for(let s of e.properties){let i=ta(s);if(i==null||!bn(n,i))continue;let a=r.concat(i),o=n[i];o[Ct]&&(yield{node:s,path:a,type:Ct,info:o[Ct]}),yield*this._iterateLhsReferences(s.value,a,o)}return}e.type==="AssignmentPattern"&&(yield*this._iterateLhsReferences(e.left,r,n))}*_iterateImportReferences(e,r,n){let s=e.type;if(s==="ImportSpecifier"||s==="ImportDefaultSpecifier"){let i=s==="ImportDefaultSpecifier"?"default":e.imported.name;if(!bn(n,i))return;r=r.concat(i);let a=n[i];a[Ct]&&(yield{node:e,path:r,type:Ct,info:a[Ct]}),yield*this._iterateVariableReferences(Qn(this.globalScope,e.local),r,a,!1);return}if(s==="ImportNamespaceSpecifier"){yield*this._iterateVariableReferences(Qn(this.globalScope,e.local),r,n,!1);return}if(s==="ExportSpecifier"){let i=e.local.name;if(!bn(n,i))return;r=r.concat(i);let a=n[i];a[Ct]&&(yield{node:e,path:r,type:Ct,info:a[Ct]})}}};Cn.READ=Ct;Cn.CALL=vn;Cn.CONSTRUCT=Xn;Cn.ESM=el;function B5(t,e){return!(e===1&&t==="default")}var O5={CALL:vn,CONSTRUCT:Xn,ESM:el,findVariable:Qn,getFunctionHeadLocation:tx,getFunctionNameWithKind:ix,getInnermostScope:Yc,getPropertyName:ta,getStaticValue:of,getStringIfConstant:ea,hasSideEffect:ox,isArrowToken:Xo,isClosingBraceToken:rf,isClosingBracketToken:ef,isClosingParenToken:Zo,isColonToken:Xc,isCommaToken:Jc,isCommentToken:sf,isNotArrowToken:$y,isNotClosingBraceToken:Xy,isNotClosingBracketToken:Jy,isNotClosingParenToken:Ky,isNotColonToken:zy,isNotCommaToken:Wy,isNotCommentToken:Zy,isNotOpeningBraceToken:Qy,isNotOpeningBracketToken:Yy,isNotOpeningParenToken:Hy,isNotSemicolonToken:Gy,isOpeningBraceToken:tf,isOpeningBracketToken:Zc,isOpeningParenToken:Rs,isParenthesized:lx,isSemicolonToken:Qc,PatternMatcher:lf,READ:Ct,ReferenceTracker:Cn};ut.CALL=vn;ut.CONSTRUCT=Xn;ut.ESM=el;ut.PatternMatcher=lf;ut.READ=Ct;ut.ReferenceTracker=Cn;ut.default=O5;ut.findVariable=Qn;ut.getFunctionHeadLocation=tx;ut.getFunctionNameWithKind=ix;ut.getInnermostScope=Yc;ut.getPropertyName=ta;ut.getStaticValue=of;ut.getStringIfConstant=ea;ut.hasSideEffect=ox;ut.isArrowToken=Xo;ut.isClosingBraceToken=rf;ut.isClosingBracketToken=ef;ut.isClosingParenToken=Zo;ut.isColonToken=Xc;ut.isCommaToken=Jc;ut.isCommentToken=sf;ut.isNotArrowToken=$y;ut.isNotClosingBraceToken=Xy;ut.isNotClosingBracketToken=Jy;ut.isNotClosingParenToken=Ky;ut.isNotColonToken=zy;ut.isNotCommaToken=Wy;ut.isNotCommentToken=Zy;ut.isNotOpeningBraceToken=Qy;ut.isNotOpeningBracketToken=Yy;ut.isNotOpeningParenToken=Hy;ut.isNotSemicolonToken=Gy;ut.isOpeningBraceToken=tf;ut.isOpeningBracketToken=Zc;ut.isOpeningParenToken=Rs;ut.isParenthesized=lx;ut.isSemicolonToken=Qc});var Zn=M((zX,fx)=>{b();v();"use strict";fx.exports=class{constructor(){this.current=null}getOneToken(){return this.moveNext()?this.current:null}getAllTokens(){let e=[];for(;this.moveNext();)e.push(this.current);return e}moveNext(){throw new Error("Not implemented.")}}});var ei=M(tl=>{b();v();"use strict";function R5(t){return t.range[0]}tl.search=function(e,r){let n=e.findIndex(s=>r<=R5(s));return n===-1?e.length:n};tl.getFirstIndex=function(e,r,n){if(n in r)return r[n];if(n-1 in r){let s=r[n-1],i=s>=0&&s<e.length?e[s]:null;return i&&i.range[0]>=n?s:s+1}return 0};tl.getLastIndex=function(e,r,n){if(n in r)return r[n]-1;if(n-1 in r){let s=r[n-1],i=s>=0&&s<e.length?e[s]:null;return i&&i.range[1]>n?s-1:s}return e.length-1}});var mx=M((YX,px)=>{b();v();"use strict";var L5=Zn(),hx=ei();px.exports=class extends L5{constructor(e,r,n,s,i){super();this.tokens=e,this.comments=r,this.tokenIndex=hx.getLastIndex(e,n,i),this.commentIndex=hx.search(r,i)-1,this.border=s}moveNext(){let e=this.tokenIndex>=0?this.tokens[this.tokenIndex]:null,r=this.commentIndex>=0?this.comments[this.commentIndex]:null;return e&&(!r||e.range[1]>r.range[1])?(this.current=e,this.tokenIndex-=1):r?(this.current=r,this.commentIndex-=1):this.current=null,Boolean(this.current)&&(this.border===-1||this.current.range[0]>=this.border)}}});var yx=M((QX,dx)=>{b();v();"use strict";var N5=Zn(),gx=ei();dx.exports=class extends N5{constructor(e,r,n,s,i){super();this.tokens=e,this.index=gx.getLastIndex(e,n,i),this.indexEnd=gx.getFirstIndex(e,n,s)}moveNext(){return this.index>=this.indexEnd?(this.current=this.tokens[this.index],this.index-=1,!0):!1}getOneToken(){return this.index>=this.indexEnd?this.tokens[this.index]:null}}});var rl=M((ZX,xx)=>{b();v();"use strict";var M5=Zn();xx.exports=class extends M5{constructor(e){super();this.cursor=e}moveNext(){let e=this.cursor.moveNext();return this.current=this.cursor.current,e}}});var bx=M((tZ,Ex)=>{b();v();"use strict";var j5=rl();Ex.exports=class extends j5{constructor(e,r){super(e);this.predicate=r}moveNext(){let e=this.predicate;for(;super.moveNext();)if(e(this.current))return!0;return!1}}});var Sx=M((sZ,vx)=>{b();v();"use strict";var q5=Zn(),Cx=ei();vx.exports=class extends q5{constructor(e,r,n,s,i){super();this.tokens=e,this.comments=r,this.tokenIndex=Cx.getFirstIndex(e,n,s),this.commentIndex=Cx.search(r,s),this.border=i}moveNext(){let e=this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex]:null,r=this.commentIndex<this.comments.length?this.comments[this.commentIndex]:null;return e&&(!r||e.range[0]<r.range[0])?(this.current=e,this.tokenIndex+=1):r?(this.current=r,this.commentIndex+=1):this.current=null,Boolean(this.current)&&(this.border===-1||this.current.range[1]<=this.border)}}});var sl=M((iZ,Ax)=>{b();v();"use strict";var V5=Zn(),wx=ei();Ax.exports=class extends V5{constructor(e,r,n,s,i){super();this.tokens=e,this.index=wx.getFirstIndex(e,n,s),this.indexEnd=wx.getLastIndex(e,n,i)}moveNext(){return this.index<=this.indexEnd?(this.current=this.tokens[this.index],this.index+=1,!0):!1}getOneToken(){return this.index<=this.indexEnd?this.tokens[this.index]:null}getAllTokens(){return this.tokens.slice(this.index,this.indexEnd+1)}}});var Dx=M((oZ,kx)=>{b();v();"use strict";var U5=rl();kx.exports=class extends U5{constructor(e,r){super(e);this.count=r}moveNext(){return this.count>0?(this.count-=1,super.moveNext()):!1}}});var Fx=M((uZ,Tx)=>{b();v();"use strict";var $5=rl();Tx.exports=class extends $5{constructor(e,r){super(e);this.count=r}moveNext(){for(;this.count>0;)if(this.count-=1,!super.moveNext())return!1;return super.moveNext()}}});var Px=M(uf=>{b();v();"use strict";var W5=mx(),G5=yx(),z5=bx(),H5=Sx(),K5=sl(),Y5=Dx(),J5=Fx(),cf=class{constructor(e,r){this.TokenCursor=e,this.TokenCommentCursor=r}createBaseCursor(e,r,n,s,i,a){let o=a?this.TokenCommentCursor:this.TokenCursor;return new o(e,r,n,s,i)}createCursor(e,r,n,s,i,a,o,l,u){let c=this.createBaseCursor(e,r,n,s,i,a);return o&&(c=new z5(c,o)),l>=1&&(c=new J5(c,l)),u>=0&&(c=new Y5(c,u)),c}};uf.forward=new cf(K5,H5);uf.backward=new cf(G5,W5)});var _x=M((pZ,Ix)=>{b();v();"use strict";var Q5=sl();Ix.exports=class extends Q5{constructor(e,r,n,s,i,a,o){super(e,r,n,s,i);this.index=Math.max(0,this.index-a),this.indexEnd=Math.min(e.length-1,this.indexEnd+o)}}});var Nx=M((mZ,Bx)=>{b();v();"use strict";var nl=fn(),{isCommentToken:Ox}=Wt(),Zt=Px(),X5=sl(),Z5=_x(),eq=ei(),Gt=Symbol("tokens"),Nt=Symbol("comments"),zt=Symbol("indexMap");function tq(t,e){let r=Object.create(null),n=0,s=0,i=0,a=null;for(;n<t.length||s<e.length;){for(i=s<e.length?e[s].range[0]:Number.MAX_SAFE_INTEGER;n<t.length&&(a=t[n].range)[0]<i;)r[a[0]]=n,r[a[1]-1]=n,n+=1;for(i=n<t.length?t[n].range[0]:Number.MAX_SAFE_INTEGER;s<e.length&&(a=e[s].range)[0]<i;)r[a[0]]=n,r[a[1]-1]=n,s+=1}return r}function ti(t,e,r,n,s,i,a){let o=!1,l=0,u=null;return typeof a=="number"?l=a|0:typeof a=="function"?u=a:a&&(o=!!a.includeComments,l=a.skip|0,u=a.filter||null),nl(l>=0,"options.skip should be zero or a positive integer."),nl(!u||typeof u=="function","options.filter should be a function."),t.createCursor(e,r,n,s,i,o,u,l,-1)}function gs(t,e,r,n,s,i,a){let o=!1,l=0,u=!1,c=null;return typeof a=="number"?(l=a|0,u=!0):typeof a=="function"?c=a:a&&(o=!!a.includeComments,l=a.count|0,u=typeof a.count=="number",c=a.filter||null),nl(l>=0,"options.count should be zero or a positive integer."),nl(!c||typeof c=="function","options.filter should be a function."),t.createCursor(e,r,n,s,i,o,c,0,u?l:-1)}function Rx(t,e,r,n,s,i,a){return typeof i=="undefined"&&typeof a=="undefined"?new X5(t,e,r,n,s):typeof i=="number"||typeof i=="undefined"?new Z5(t,e,r,n,s,i|0,a|0):gs(Zt.forward,t,e,r,n,s,i)}function Lx(t){let e=[],r=t.getOneToken();for(;r&&Ox(r);)e.push(r),r=t.getOneToken();return e}Bx.exports=class{constructor(e,r){this[Gt]=e,this[Nt]=r,this[zt]=tq(e,r)}getTokenByRangeStart(e,r){let n=r&&r.includeComments,s=Zt.forward.createBaseCursor(this[Gt],this[Nt],this[zt],e,-1,n).getOneToken();return s&&s.range[0]===e?s:null}getFirstToken(e,r){return ti(Zt.forward,this[Gt],this[Nt],this[zt],e.range[0],e.range[1],r).getOneToken()}getLastToken(e,r){return ti(Zt.backward,this[Gt],this[Nt],this[zt],e.range[0],e.range[1],r).getOneToken()}getTokenBefore(e,r){return ti(Zt.backward,this[Gt],this[Nt],this[zt],-1,e.range[0],r).getOneToken()}getTokenAfter(e,r){return ti(Zt.forward,this[Gt],this[Nt],this[zt],e.range[1],-1,r).getOneToken()}getFirstTokenBetween(e,r,n){return ti(Zt.forward,this[Gt],this[Nt],this[zt],e.range[1],r.range[0],n).getOneToken()}getLastTokenBetween(e,r,n){return ti(Zt.backward,this[Gt],this[Nt],this[zt],e.range[1],r.range[0],n).getOneToken()}getTokenOrCommentBefore(e,r){return this.getTokenBefore(e,{includeComments:!0,skip:r})}getTokenOrCommentAfter(e,r){return this.getTokenAfter(e,{includeComments:!0,skip:r})}getFirstTokens(e,r){return gs(Zt.forward,this[Gt],this[Nt],this[zt],e.range[0],e.range[1],r).getAllTokens()}getLastTokens(e,r){return gs(Zt.backward,this[Gt],this[Nt],this[zt],e.range[0],e.range[1],r).getAllTokens().reverse()}getTokensBefore(e,r){return gs(Zt.backward,this[Gt],this[Nt],this[zt],-1,e.range[0],r).getAllTokens().reverse()}getTokensAfter(e,r){return gs(Zt.forward,this[Gt],this[Nt],this[zt],e.range[1],-1,r).getAllTokens()}getFirstTokensBetween(e,r,n){return gs(Zt.forward,this[Gt],this[Nt],this[zt],e.range[1],r.range[0],n).getAllTokens()}getLastTokensBetween(e,r,n){return gs(Zt.backward,this[Gt],this[Nt],this[zt],e.range[1],r.range[0],n).getAllTokens().reverse()}getTokens(e,r,n){return Rx(this[Gt],this[Nt],this[zt],e.range[0],e.range[1],r,n).getAllTokens()}getTokensBetween(e,r,n){return Rx(this[Gt],this[Nt],this[zt],e.range[1],r.range[0],n,n).getAllTokens()}commentsExistBetween(e,r){let n=eq.search(this[Nt],e.range[1]);return n<this[Nt].length&&this[Nt][n].range[1]<=r.range[0]}getCommentsBefore(e){let r=gs(Zt.backward,this[Gt],this[Nt],this[zt],-1,e.range[0],{includeComments:!0});return Lx(r).reverse()}getCommentsAfter(e){let r=gs(Zt.forward,this[Gt],this[Nt],this[zt],e.range[1],-1,{includeComments:!0});return Lx(r)}getCommentsInside(e){return this.getTokens(e,{includeComments:!0,filter:Ox})}}});var Ux=M((dZ,Mx)=>{b();v();"use strict";var{isCommentToken:il}=Wt(),rq=Nx(),ff=Yi(),jx=Qo();function sq(t){if(!t.tokens)throw new Error("AST is missing the tokens array.");if(!t.comments)throw new Error("AST is missing the comments array.");if(!t.loc)throw new Error("AST is missing location information.");if(!t.range)throw new Error("AST is missing range information")}function nq(t){return t.type==="ExportDefaultDeclaration"||t.type==="ExportNamedDeclaration"||t.type==="ExportAllDeclaration"||t.type==="ExportSpecifier"}function iq(t,e){let r=[],n=0,s=0;for(;n<t.length||s<e.length;)s>=e.length||n<t.length&&t[n].range[0]<e[s].range[0]?r.push(t[n++]):r.push(e[s++]);return r}function aq(t,e){return t.range[0]<=e.range[0]&&t.range[1]>=e.range[0]||e.range[0]<=t.range[0]&&e.range[1]>=t.range[0]}function qx(t,e,r,n){if(aq(e,r))return!1;let[s,i]=e.range[1]<=r.range[0]?[e,r]:[r,e],a=t.getLastToken(s)||s,o=t.getFirstToken(i)||i,l=a;for(;l!==o;){let u=t.getTokenAfter(l,{includeComments:!0});if(l.range[1]!==u.range[0]||n&&u!==o&&u.type==="JSXText"&&/\s/u.test(u.value))return!0;l=u}return!1}var Vx=class extends rq{constructor(e,r){let n,s,i,a,o;typeof e=="string"?(n=e,s=r):typeof e=="object"&&e!==null&&(n=e.text,s=e.ast,i=e.parserServices,a=e.scopeManager,o=e.visitorKeys),sq(s),super(s.tokens,s.comments),this.hasBOM=n.charCodeAt(0)===65279,this.text=this.hasBOM?n.slice(1):n,this.ast=s,this.parserServices=i||{},this.scopeManager=a||null,this.visitorKeys=o||jx.DEFAULT_VISITOR_KEYS;let l=this.text.match(ff.shebangPattern);l&&s.comments.length&&s.comments[0].value===l[1]&&(s.comments[0].type="Shebang"),this.tokensAndComments=iq(s.tokens,s.comments),this.lines=[],this.lineStartIndices=[0];let c=ff.createGlobalLinebreakMatcher(),p;for(;p=c.exec(this.text);)this.lines.push(this.text.slice(this.lineStartIndices[this.lineStartIndices.length-1],p.index)),this.lineStartIndices.push(p.index+p[0].length);this.lines.push(this.text.slice(this.lineStartIndices[this.lineStartIndices.length-1])),this._commentCache=new WeakMap,Object.freeze(this),Object.freeze(this.lines)}static splitLines(e){return e.split(ff.createGlobalLinebreakMatcher())}getText(e,r,n){return e?this.text.slice(Math.max(e.range[0]-(r||0),0),e.range[1]+(n||0)):this.text}getLines(){return this.lines}getAllComments(){return this.ast.comments}getComments(e){if(this._commentCache.has(e))return this._commentCache.get(e);let r={leading:[],trailing:[]};if(e.type==="Program")e.body.length===0&&(r.leading=e.comments);else{((e.type==="BlockStatement"||e.type==="ClassBody")&&e.body.length===0||e.type==="ObjectExpression"&&e.properties.length===0||e.type==="ArrayExpression"&&e.elements.length===0||e.type==="SwitchStatement"&&e.cases.length===0)&&(r.trailing=this.getTokens(e,{includeComments:!0,filter:il}));let n=this.getTokenBefore(e,{includeComments:!0});for(;n&&il(n)&&!(e.parent&&e.parent.type!=="Program"&&n.start<e.parent.start);)r.leading.push(n),n=this.getTokenBefore(n,{includeComments:!0});for(r.leading.reverse(),n=this.getTokenAfter(e,{includeComments:!0});n&&il(n)&&!(e.parent&&e.parent.type!=="Program"&&n.end>e.parent.end);)r.trailing.push(n),n=this.getTokenAfter(n,{includeComments:!0})}return this._commentCache.set(e,r),r}getJSDocComment(e){let r=s=>{let i=this.getTokenBefore(s,{includeComments:!0});return i&&il(i)&&i.type==="Block"&&i.value.charAt(0)==="*"&&s.loc.start.line-i.loc.end.line<=1?i:null},n=e.parent;switch(e.type){case"ClassDeclaration":case"FunctionDeclaration":return r(nq(n)?n:e);case"ClassExpression":return r(n.parent);case"ArrowFunctionExpression":case"FunctionExpression":if(n.type!=="CallExpression"&&n.type!=="NewExpression"){for(;!this.getCommentsBefore(n).length&&!/Function/u.test(n.type)&&n.type!=="MethodDefinition"&&n.type!=="Property"&&(n=n.parent,!!n););if(n&&n.type!=="FunctionDeclaration"&&n.type!=="Program")return r(n)}return r(e);default:return null}}getNodeByRangeIndex(e){let r=null;return jx.traverse(this.ast,{visitorKeys:this.visitorKeys,enter(n){n.range[0]<=e&&e<n.range[1]?r=n:this.skip()},leave(n){n===r&&this.break()}}),r}isSpaceBetween(e,r){return qx(this,e,r,!1)}isSpaceBetweenTokens(e,r){return qx(this,e,r,!0)}getLocFromIndex(e){if(typeof e!="number")throw new TypeError("Expected `index` to be a number.");if(e<0||e>this.text.length)throw new RangeError(`Index out of range (requested index ${e}, but source text has length ${this.text.length}).`);if(e===this.text.length)return{line:this.lines.length,column:this.lines[this.lines.length-1].length};let r=e>=this.lineStartIndices[this.lineStartIndices.length-1]?this.lineStartIndices.length:this.lineStartIndices.findIndex(n=>e<n);return{line:r,column:e-this.lineStartIndices[r-1]}}getIndexFromLoc(e){if(typeof e!="object"||typeof e.line!="number"||typeof e.column!="number")throw new TypeError("Expected `loc` to be an object with numeric `line` and `column` properties.");if(e.line<=0)throw new RangeError(`Line number out of range (line ${e.line} requested). Line numbers should be 1-based.`);if(e.line>this.lineStartIndices.length)throw new RangeError(`Line number out of range (line ${e.line} requested, but only ${this.lineStartIndices.length} lines present).`);let r=this.lineStartIndices[e.line-1],n=e.line===this.lineStartIndices.length?this.text.length:this.lineStartIndices[e.line],s=r+e.column;if(e.line===this.lineStartIndices.length&&s>n||e.line<this.lineStartIndices.length&&s>=n)throw new RangeError(`Column number out of range (column ${e.column} requested, but the length of line ${e.line} is ${n-r}).`);return s}};Mx.exports=Vx});var Wx=M((gZ,$x)=>{b();v();"use strict";$x.exports={SourceCode:Ux()}});var pf=M((yZ,Gx)=>{b();v();"use strict";var Ls=En()("eslint:code-path");function oq(t){return t.id+(t.reachable?"":"!")}function al(t,e){let r=e?`:${e}`:"";switch(t.type){case"Identifier":return`${t.type}${r} (${t.name})`;case"Literal":return`${t.type}${r} (${t.value})`;default:return`${t.type}${r}`}}Gx.exports={enabled:Ls.enabled,dump:Ls,dumpState:Ls.enabled?function(t,e,r){for(let n=0;n<e.currentSegments.length;++n){let s=e.currentSegments[n].internal;if(r){let i=s.nodes.length-1;i>=0&&s.nodes[i]===al(t,"enter")?s.nodes[i]=al(t,void 0):s.nodes.push(al(t,"exit"))}else s.nodes.push(al(t,"enter"))}Ls([`${e.currentSegments.map(oq).join(",")})`,`${t.type}${r?":exit":""}`].join(" "))}:Ls,dumpDot:Ls.enabled?function(t){let e=`
|
|
35
|
+
digraph {
|
|
36
|
+
node[shape=box,style="rounded,filled",fillcolor=white];
|
|
37
|
+
initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25];
|
|
38
|
+
`;t.returnedSegments.length>0&&(e+=`final[label="",shape=doublecircle,style=filled,fillcolor=black,width=0.25,height=0.25];
|
|
39
|
+
`),t.thrownSegments.length>0&&(e+=`thrown[label="\u2718",shape=circle,width=0.3,height=0.3,fixedsize];
|
|
40
|
+
`);let r=Object.create(null),n=this.makeDotArrows(t,r);for(let s in r){let i=r[s];e+=`${s}[`,i.reachable?e+='label="':e+='style="rounded,dashed,filled",fillcolor="#FF9800",label="<<unreachable>>\\n',i.internal.nodes.length>0?e+=i.internal.nodes.join("\\n"):e+="????",e+=`"];
|
|
41
|
+
`}e+=`${n}
|
|
42
|
+
`,e+="}",Ls("DOT",e)}:Ls,makeDotArrows(t,e){let r=[[t.initialSegment,0]],n=e||Object.create(null),s=t.initialSegment.id,i=`initial->${t.initialSegment.id}`;for(;r.length>0;){let a=r.pop(),o=a[0],l=a[1];if(n[o.id]&&l===0)continue;n[o.id]=o;let u=o.allNextSegments[l];!u||(s===o.id?i+=`->${u.id}`:i+=`;
|
|
43
|
+
${o.id}->${u.id}`,s=u.id,r.unshift([o,1+l]),r.push([u,0]))}return t.returnedSegments.forEach(a=>{s===a.id?i+="->final":i+=`;
|
|
44
|
+
${a.id}->final`,s=null}),t.thrownSegments.forEach(a=>{s===a.id?i+="->thrown":i+=`;
|
|
45
|
+
${a.id}->thrown`,s=null}),`${i};`}}});var ol=M((xZ,zx)=>{b();v();"use strict";var lq=pf();function hf(t){return t.reachable}var Xr=class{constructor(e,r,n){this.id=e,this.nextSegments=[],this.prevSegments=r.filter(hf),this.allNextSegments=[],this.allPrevSegments=r,this.reachable=n,Object.defineProperty(this,"internal",{value:{used:!1,loopedPrevSegments:[]}}),lq.enabled&&(this.internal.nodes=[])}isLoopedPrevSegment(e){return this.internal.loopedPrevSegments.indexOf(e)!==-1}static newRoot(e){return new Xr(e,[],!0)}static newNext(e,r){return new Xr(e,Xr.flattenUnusedSegments(r),r.some(hf))}static newUnreachable(e,r){let n=new Xr(e,Xr.flattenUnusedSegments(r),!1);return Xr.markUsed(n),n}static newDisconnected(e,r){return new Xr(e,[],r.some(hf))}static markUsed(e){if(e.internal.used)return;e.internal.used=!0;let r;if(e.reachable)for(r=0;r<e.allPrevSegments.length;++r){let n=e.allPrevSegments[r];n.allNextSegments.push(e),n.nextSegments.push(e)}else for(r=0;r<e.allPrevSegments.length;++r)e.allPrevSegments[r].allNextSegments.push(e)}static markPrevSegmentAsLooped(e,r){e.internal.loopedPrevSegments.push(r)}static flattenUnusedSegments(e){let r=Object.create(null),n=[];for(let s=0;s<e.length;++s){let i=e[s];if(!r[i.id])if(i.internal.used)r[i.id]=!0,n.push(i);else for(let a=0;a<i.allPrevSegments.length;++a){let o=i.allPrevSegments[a];r[o.id]||(r[o.id]=!0,n.push(o))}}return n}};zx.exports=Xr});var Yx=M((EZ,Hx)=>{b();v();"use strict";var mf=fn(),ra=ol();function uq(t){return t.reachable}function df(t,e,r,n){let s=t.segmentsList,i=e>=0?e:s.length+e,a=r>=0?r:s.length+r,o=[];for(let l=0;l<t.count;++l){let u=[];for(let c=i;c<=a;++c)u.push(s[c][l]);o.push(n(t.idGenerator.next(),u))}return o}function Kx(t,e){let r=e;for(;r.length>t.count;){let n=[];for(let s=0,i=r.length/2|0;s<i;++s)n.push(ra.newNext(t.idGenerator.next(),[r[s],r[s+i]]));r=n}return r}var sa=class{constructor(e,r,n){this.idGenerator=e,this.upper=r,this.count=n,this.segmentsList=[]}get head(){let e=this.segmentsList;return e.length===0?[]:e[e.length-1]}get empty(){return this.segmentsList.length===0}get reachable(){let e=this.head;return e.length>0&&e.some(uq)}makeNext(e,r){return df(this,e,r,ra.newNext)}makeUnreachable(e,r){return df(this,e,r,ra.newUnreachable)}makeDisconnected(e,r){return df(this,e,r,ra.newDisconnected)}add(e){mf(e.length>=this.count,`${e.length} >= ${this.count}`),this.segmentsList.push(Kx(this,e))}replaceHead(e){mf(e.length>=this.count,`${e.length} >= ${this.count}`),this.segmentsList.splice(-1,1,Kx(this,e))}addAll(e){mf(e.count===this.count);let r=e.segmentsList;for(let n=0;n<r.length;++n)this.segmentsList.push(r[n])}clear(){this.segmentsList=[]}static newRoot(e){let r=new sa(e,null,1);return r.add([ra.newRoot(e.next())]),r}static newEmpty(e,r){return new sa(e.idGenerator,e,(r?2:1)*e.count)}};Hx.exports=sa});var tE=M((bZ,Jx)=>{b();v();"use strict";var ll=ol(),dr=Yx();function Qx(t,e,r,n){for(let s=0;s<n.length;++s){let i=n[s];t.push(i),e.indexOf(i)===-1&&r.push(i)}}function cq(t,e){if(!e)return t.loopContext;let r=t.loopContext;for(;r;){if(r.label===e)return r;r=r.upper}return null}function fq(t,e){let r=t.breakContext;for(;r;){if(e?r.label===e:r.breakable)return r;r=r.upper}return null}function Xx(t){let e=t.tryContext;for(;e;){if(e.hasFinalizer&&e.position!=="finally")return e;e=e.upper}return t}function gf(t){let e=t.tryContext;for(;e;){if(e.position==="try"||e.hasFinalizer&&e.position==="catch")return e;e=e.upper}return t}function ul(t,e){t.splice(t.indexOf(e),1)}function pq(t,e){for(let r=0;r<t.length;++r){let n=t[r],s=e[r];ul(n.nextSegments,s),ul(n.allNextSegments,s),ul(s.prevSegments,n),ul(s.allPrevSegments,n)}}function Sn(t,e,r){let n=ll.flattenUnusedSegments(e),s=ll.flattenUnusedSegments(r),i=Math.min(n.length,s.length);for(let a=0;a<i;++a){let o=n[a],l=s[a];l.reachable&&o.nextSegments.push(l),o.reachable&&l.prevSegments.push(o),o.allNextSegments.push(l),l.allPrevSegments.push(o),l.allPrevSegments.length>=2&&ll.markPrevSegmentAsLooped(l,o),t.notifyLooped(o,l)}}function Zx(t,e,r){e.processed||(e.trueForkContext.add(r),e.falseForkContext.add(r),e.qqForkContext.add(r)),t.test!==!0&&t.brokenForkContext.addAll(e.falseForkContext),t.endOfTestSegments=e.trueForkContext.makeNext(0,-1)}var eE=class{constructor(e,r){this.idGenerator=e,this.notifyLooped=r,this.forkContext=dr.newRoot(e),this.choiceContext=null,this.switchContext=null,this.tryContext=null,this.loopContext=null,this.breakContext=null,this.chainContext=null,this.currentSegments=[],this.initialSegment=this.forkContext.head[0];let n=this.finalSegments=[],s=this.returnedForkContext=[],i=this.thrownForkContext=[];s.add=Qx.bind(null,s,i,n),i.add=Qx.bind(null,i,s,n)}get headSegments(){return this.forkContext.head}get parentForkContext(){let e=this.forkContext;return e&&e.upper}pushForkContext(e){return this.forkContext=dr.newEmpty(this.forkContext,e),this.forkContext}popForkContext(){let e=this.forkContext;return this.forkContext=e.upper,this.forkContext.replaceHead(e.makeNext(0,-1)),e}forkPath(){this.forkContext.add(this.parentForkContext.makeNext(-1,-1))}forkBypassPath(){this.forkContext.add(this.parentForkContext.head)}pushChoiceContext(e,r){this.choiceContext={upper:this.choiceContext,kind:e,isForkingAsResult:r,trueForkContext:dr.newEmpty(this.forkContext),falseForkContext:dr.newEmpty(this.forkContext),qqForkContext:dr.newEmpty(this.forkContext),processed:!1}}popChoiceContext(){let e=this.choiceContext;this.choiceContext=e.upper;let r=this.forkContext,n=r.head;switch(e.kind){case"&&":case"||":case"??":if(e.processed||(e.trueForkContext.add(n),e.falseForkContext.add(n),e.qqForkContext.add(n)),e.isForkingAsResult){let i=this.choiceContext;return i.trueForkContext.addAll(e.trueForkContext),i.falseForkContext.addAll(e.falseForkContext),i.qqForkContext.addAll(e.qqForkContext),i.processed=!0,e}break;case"test":e.processed?(e.falseForkContext.clear(),e.falseForkContext.add(n)):(e.trueForkContext.clear(),e.trueForkContext.add(n));break;case"loop":return e;default:throw new Error("unreachable")}let s=e.trueForkContext;return s.addAll(e.falseForkContext),r.replaceHead(s.makeNext(0,-1)),e}makeLogicalRight(){let e=this.choiceContext,r=this.forkContext;if(e.processed){let n;switch(e.kind){case"&&":n=e.trueForkContext;break;case"||":n=e.falseForkContext;break;case"??":n=e.qqForkContext;break;default:throw new Error("unreachable")}r.replaceHead(n.makeNext(0,-1)),n.clear(),e.processed=!1}else{switch(e.kind){case"&&":e.falseForkContext.add(r.head);break;case"||":e.trueForkContext.add(r.head);break;case"??":e.trueForkContext.add(r.head),e.falseForkContext.add(r.head);break;default:throw new Error("unreachable")}r.replaceHead(r.makeNext(-1,-1))}}makeIfConsequent(){let e=this.choiceContext,r=this.forkContext;e.processed||(e.trueForkContext.add(r.head),e.falseForkContext.add(r.head),e.qqForkContext.add(r.head)),e.processed=!1,r.replaceHead(e.trueForkContext.makeNext(0,-1))}makeIfAlternate(){let e=this.choiceContext,r=this.forkContext;e.trueForkContext.clear(),e.trueForkContext.add(r.head),e.processed=!0,r.replaceHead(e.falseForkContext.makeNext(0,-1))}pushChainContext(){this.chainContext={upper:this.chainContext,countChoiceContexts:0}}popChainContext(){let e=this.chainContext;this.chainContext=e.upper;for(let r=e.countChoiceContexts;r>0;--r)this.popChoiceContext()}makeOptionalNode(){this.chainContext&&(this.chainContext.countChoiceContexts+=1,this.pushChoiceContext("??",!1))}makeOptionalRight(){this.chainContext&&this.makeLogicalRight()}pushSwitchContext(e,r){this.switchContext={upper:this.switchContext,hasCase:e,defaultSegments:null,defaultBodySegments:null,foundDefault:!1,lastIsDefault:!1,countForks:0},this.pushBreakContext(!0,r)}popSwitchContext(){let e=this.switchContext;this.switchContext=e.upper;let r=this.forkContext,n=this.popBreakContext().brokenForkContext;if(e.countForks===0){n.empty||(n.add(r.makeNext(-1,-1)),r.replaceHead(n.makeNext(0,-1)));return}let s=r.head;this.forkBypassPath();let i=r.head;n.add(s),e.lastIsDefault||(e.defaultBodySegments?(pq(e.defaultSegments,e.defaultBodySegments),Sn(this,i,e.defaultBodySegments)):n.add(i));for(let a=0;a<e.countForks;++a)this.forkContext=this.forkContext.upper;this.forkContext.replaceHead(n.makeNext(0,-1))}makeSwitchCaseBody(e,r){let n=this.switchContext;if(!n.hasCase)return;let s=this.forkContext,i=this.pushForkContext();i.add(s.makeNext(0,-1)),r?(n.defaultSegments=s.head,e?n.foundDefault=!0:n.defaultBodySegments=i.head):!e&&n.foundDefault&&(n.foundDefault=!1,n.defaultBodySegments=i.head),n.lastIsDefault=r,n.countForks+=1}pushTryContext(e){this.tryContext={upper:this.tryContext,position:"try",hasFinalizer:e,returnedForkContext:e?dr.newEmpty(this.forkContext):null,thrownForkContext:dr.newEmpty(this.forkContext),lastOfTryIsReachable:!1,lastOfCatchIsReachable:!1}}popTryContext(){let e=this.tryContext;if(this.tryContext=e.upper,e.position==="catch"){this.popForkContext();return}let r=e.returnedForkContext,n=e.thrownForkContext;if(r.empty&&n.empty)return;let s=this.forkContext.head;this.forkContext=this.forkContext.upper;let i=s.slice(0,s.length/2|0),a=s.slice(s.length/2|0);r.empty||Xx(this).returnedForkContext.add(a),n.empty||gf(this).thrownForkContext.add(a),this.forkContext.replaceHead(i),!e.lastOfTryIsReachable&&!e.lastOfCatchIsReachable&&this.forkContext.makeUnreachable()}makeCatchBlock(){let e=this.tryContext,r=this.forkContext,n=e.thrownForkContext;e.position="catch",e.thrownForkContext=dr.newEmpty(r),e.lastOfTryIsReachable=r.reachable,n.add(r.head);let s=n.makeNext(0,-1);this.pushForkContext(),this.forkBypassPath(),this.forkContext.add(s)}makeFinallyBlock(){let e=this.tryContext,r=this.forkContext,n=e.returnedForkContext,s=e.thrownForkContext,i=r.head;if(e.position==="catch"?(this.popForkContext(),r=this.forkContext,e.lastOfCatchIsReachable=r.reachable):e.lastOfTryIsReachable=r.reachable,e.position="finally",n.empty&&s.empty)return;let a=r.makeNext(-1,-1);for(let o=0;o<r.count;++o){let l=[i[o]];for(let u=0;u<n.segmentsList.length;++u)l.push(n.segmentsList[u][o]);for(let u=0;u<s.segmentsList.length;++u)l.push(s.segmentsList[u][o]);a.push(ll.newNext(this.idGenerator.next(),l))}this.pushForkContext(!0),this.forkContext.add(a)}makeFirstThrowablePathInTryBlock(){let e=this.forkContext;if(!e.reachable)return;let r=gf(this);r===this||r.position!=="try"||!r.thrownForkContext.empty||(r.thrownForkContext.add(e.head),e.replaceHead(e.makeNext(-1,-1)))}pushLoopContext(e,r){let n=this.forkContext,s=this.pushBreakContext(!0,r);switch(e){case"WhileStatement":this.pushChoiceContext("loop",!1),this.loopContext={upper:this.loopContext,type:e,label:r,test:void 0,continueDestSegments:null,brokenForkContext:s.brokenForkContext};break;case"DoWhileStatement":this.pushChoiceContext("loop",!1),this.loopContext={upper:this.loopContext,type:e,label:r,test:void 0,entrySegments:null,continueForkContext:dr.newEmpty(n),brokenForkContext:s.brokenForkContext};break;case"ForStatement":this.pushChoiceContext("loop",!1),this.loopContext={upper:this.loopContext,type:e,label:r,test:void 0,endOfInitSegments:null,testSegments:null,endOfTestSegments:null,updateSegments:null,endOfUpdateSegments:null,continueDestSegments:null,brokenForkContext:s.brokenForkContext};break;case"ForInStatement":case"ForOfStatement":this.loopContext={upper:this.loopContext,type:e,label:r,prevSegments:null,leftSegments:null,endOfLeftSegments:null,continueDestSegments:null,brokenForkContext:s.brokenForkContext};break;default:throw new Error(`unknown type: "${e}"`)}}popLoopContext(){let e=this.loopContext;this.loopContext=e.upper;let r=this.forkContext,n=this.popBreakContext().brokenForkContext;switch(e.type){case"WhileStatement":case"ForStatement":this.popChoiceContext(),Sn(this,r.head,e.continueDestSegments);break;case"DoWhileStatement":{let s=this.popChoiceContext();s.processed||(s.trueForkContext.add(r.head),s.falseForkContext.add(r.head)),e.test!==!0&&n.addAll(s.falseForkContext);let i=s.trueForkContext.segmentsList;for(let a=0;a<i.length;++a)Sn(this,i[a],e.entrySegments);break}case"ForInStatement":case"ForOfStatement":n.add(r.head),Sn(this,r.head,e.leftSegments);break;default:throw new Error("unreachable")}n.empty?r.replaceHead(r.makeUnreachable(-1,-1)):r.replaceHead(n.makeNext(0,-1))}makeWhileTest(e){let r=this.loopContext,n=this.forkContext,s=n.makeNext(0,-1);r.test=e,r.continueDestSegments=s,n.replaceHead(s)}makeWhileBody(){let e=this.loopContext,r=this.choiceContext,n=this.forkContext;r.processed||(r.trueForkContext.add(n.head),r.falseForkContext.add(n.head)),e.test!==!0&&e.brokenForkContext.addAll(r.falseForkContext),n.replaceHead(r.trueForkContext.makeNext(0,-1))}makeDoWhileBody(){let e=this.loopContext,r=this.forkContext,n=r.makeNext(-1,-1);e.entrySegments=n,r.replaceHead(n)}makeDoWhileTest(e){let r=this.loopContext,n=this.forkContext;if(r.test=e,!r.continueForkContext.empty){r.continueForkContext.add(n.head);let s=r.continueForkContext.makeNext(0,-1);n.replaceHead(s)}}makeForTest(e){let r=this.loopContext,n=this.forkContext,s=n.head,i=n.makeNext(-1,-1);r.test=e,r.endOfInitSegments=s,r.continueDestSegments=r.testSegments=i,n.replaceHead(i)}makeForUpdate(){let e=this.loopContext,r=this.choiceContext,n=this.forkContext;e.testSegments?Zx(e,r,n.head):e.endOfInitSegments=n.head;let s=n.makeDisconnected(-1,-1);e.continueDestSegments=e.updateSegments=s,n.replaceHead(s)}makeForBody(){let e=this.loopContext,r=this.choiceContext,n=this.forkContext;e.updateSegments?(e.endOfUpdateSegments=n.head,e.testSegments&&Sn(this,e.endOfUpdateSegments,e.testSegments)):e.testSegments?Zx(e,r,n.head):e.endOfInitSegments=n.head;let s=e.endOfTestSegments;if(!s){let i=dr.newEmpty(n);i.add(e.endOfInitSegments),e.endOfUpdateSegments&&i.add(e.endOfUpdateSegments),s=i.makeNext(0,-1)}e.continueDestSegments=e.continueDestSegments||s,n.replaceHead(s)}makeForInOfLeft(){let e=this.loopContext,r=this.forkContext,n=r.makeDisconnected(-1,-1);e.prevSegments=r.head,e.leftSegments=e.continueDestSegments=n,r.replaceHead(n)}makeForInOfRight(){let e=this.loopContext,r=this.forkContext,n=dr.newEmpty(r);n.add(e.prevSegments);let s=n.makeNext(-1,-1);e.endOfLeftSegments=r.head,r.replaceHead(s)}makeForInOfBody(){let e=this.loopContext,r=this.forkContext,n=dr.newEmpty(r);n.add(e.endOfLeftSegments);let s=n.makeNext(-1,-1);Sn(this,r.head,e.leftSegments),e.brokenForkContext.add(r.head),r.replaceHead(s)}pushBreakContext(e,r){return this.breakContext={upper:this.breakContext,breakable:e,label:r,brokenForkContext:dr.newEmpty(this.forkContext)},this.breakContext}popBreakContext(){let e=this.breakContext,r=this.forkContext;if(this.breakContext=e.upper,!e.breakable){let n=e.brokenForkContext;n.empty||(n.add(r.head),r.replaceHead(n.makeNext(0,-1)))}return e}makeBreak(e){let r=this.forkContext;if(!r.reachable)return;let n=fq(this,e);n&&n.brokenForkContext.add(r.head),r.replaceHead(r.makeUnreachable(-1,-1))}makeContinue(e){let r=this.forkContext;if(!r.reachable)return;let n=cq(this,e);n&&(n.continueDestSegments?(Sn(this,r.head,n.continueDestSegments),(n.type==="ForInStatement"||n.type==="ForOfStatement")&&n.brokenForkContext.add(r.head)):n.continueForkContext.add(r.head)),r.replaceHead(r.makeUnreachable(-1,-1))}makeReturn(){let e=this.forkContext;e.reachable&&(Xx(this).returnedForkContext.add(e.head),e.replaceHead(e.makeUnreachable(-1,-1)))}makeThrow(){let e=this.forkContext;e.reachable&&(gf(this).thrownForkContext.add(e.head),e.replaceHead(e.makeUnreachable(-1,-1)))}makeFinal(){let e=this.currentSegments;e.length>0&&e[0].reachable&&this.returnedForkContext.add(e)}};Jx.exports=eE});var yf=M((vZ,rE)=>{b();v();"use strict";var sE=class{constructor(e){this.prefix=String(e),this.n=0}next(){return this.n=1+this.n|0,this.n<0&&(this.n=1),this.prefix+this.n}};rE.exports=sE});var aE=M((CZ,nE)=>{b();v();"use strict";var hq=tE(),mq=yf(),iE=class{constructor({id:e,origin:r,upper:n,onLooped:s}){this.id=e,this.origin=r,this.upper=n,this.childCodePaths=[],Object.defineProperty(this,"internal",{value:new hq(new mq(`${e}_`),s)}),n&&n.childCodePaths.push(this)}static getState(e){return e.internal}get initialSegment(){return this.internal.initialSegment}get finalSegments(){return this.internal.finalSegments}get returnedSegments(){return this.internal.returnedForkContext}get thrownSegments(){return this.internal.thrownForkContext}get currentSegments(){return this.internal.currentSegments}traverseSegments(e,r){let n,s;typeof e=="function"?(s=e,n={}):(n=e||{},s=r);let i=n.first||this.internal.initialSegment,a=n.last,o=null,l=0,u=0,c=null,p=Object.create(null),h=[[i,0]],f=null,m=!1,x={skip(){h.length<=1?m=!0:f=h[h.length-2][0]},break(){m=!0}};function E(S){return p[S.id]||c.isLoopedPrevSegment(S)}for(;h.length>0;){if(o=h[h.length-1],c=o[0],l=o[1],l===0){if(p[c.id]){h.pop();continue}if(c!==i&&c.prevSegments.length>0&&!c.prevSegments.every(E)){h.pop();continue}if(f&&c.prevSegments.indexOf(f)!==-1&&(f=null),p[c.id]=!0,!f&&(s.call(this,c,x),c===a&&x.skip(),m))break}u=c.nextSegments.length-1,l<u?(o[1]+=1,h.push([c.nextSegments[l],0])):l===u?(o[0]=c.nextSegments[l],o[1]=0):h.pop()}}};nE.exports=iE});var hE=M((SZ,oE)=>{b();v();"use strict";var xf=fn(),{breakableTypePattern:lE}=Yi(),Zr=aE(),dq=ol(),gq=yf(),jr=pf();function yq(t){return Boolean(t.test)}function uE(t){let e=t.parent;return e&&e.type==="PropertyDefinition"&&e.value===t}function cl(t){return t==="&&"||t==="||"||t==="??"}function fl(t){return t==="&&="||t==="||="||t==="??="}function cE(t){return t.parent.type==="LabeledStatement"?t.parent.label.name:null}function fE(t){let e=t.parent;switch(e.type){case"ConditionalExpression":case"IfStatement":case"WhileStatement":case"DoWhileStatement":case"ForStatement":return e.test===t;case"LogicalExpression":return cl(e.operator);case"AssignmentExpression":return fl(e.operator);default:return!1}}function Ef(t){if(t.type==="Literal")return Boolean(t.value)}function xq(t){let e=t.parent;switch(e.type){case"LabeledStatement":case"BreakStatement":case"ContinueStatement":case"ArrayPattern":case"RestElement":case"ImportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"CatchClause":return!1;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ClassDeclaration":case"ClassExpression":case"VariableDeclarator":return e.id!==t;case"Property":case"PropertyDefinition":case"MethodDefinition":return e.key!==t||e.computed||e.shorthand;case"AssignmentPattern":return e.key!==t;default:return!0}}function An(t,e){let r=t.codePath,n=Zr.getState(r),s=n.currentSegments,i=n.headSegments,a=Math.max(s.length,i.length),o,l,u;for(o=0;o<a;++o)l=s[o],u=i[o],l!==u&&l&&(jr.dump(`onCodePathSegmentEnd ${l.id}`),l.reachable&&t.emitter.emit("onCodePathSegmentEnd",l,e));for(n.currentSegments=i,o=0;o<a;++o)l=s[o],u=i[o],l!==u&&u&&(jr.dump(`onCodePathSegmentStart ${u.id}`),dq.markUsed(u),u.reachable&&t.emitter.emit("onCodePathSegmentStart",u,e))}function Eq(t,e){let r=Zr.getState(t.codePath),n=r.currentSegments;for(let s=0;s<n.length;++s){let i=n[s];jr.dump(`onCodePathSegmentEnd ${i.id}`),i.reachable&&t.emitter.emit("onCodePathSegmentEnd",i,e)}r.currentSegments=[]}function bq(t,e){let r=t.codePath,n=Zr.getState(r),s=e.parent;switch(s.type){case"CallExpression":s.optional===!0&&s.arguments.length>=1&&s.arguments[0]===e&&n.makeOptionalRight();break;case"MemberExpression":s.optional===!0&&s.property===e&&n.makeOptionalRight();break;case"LogicalExpression":s.right===e&&cl(s.operator)&&n.makeLogicalRight();break;case"AssignmentExpression":s.right===e&&fl(s.operator)&&n.makeLogicalRight();break;case"ConditionalExpression":case"IfStatement":s.consequent===e?n.makeIfConsequent():s.alternate===e&&n.makeIfAlternate();break;case"SwitchCase":s.consequent[0]===e&&n.makeSwitchCaseBody(!1,!s.test);break;case"TryStatement":s.handler===e?n.makeCatchBlock():s.finalizer===e&&n.makeFinallyBlock();break;case"WhileStatement":s.test===e?n.makeWhileTest(Ef(e)):(xf(s.body===e),n.makeWhileBody());break;case"DoWhileStatement":s.body===e?n.makeDoWhileBody():(xf(s.test===e),n.makeDoWhileTest(Ef(e)));break;case"ForStatement":s.test===e?n.makeForTest(Ef(e)):s.update===e?n.makeForUpdate():s.body===e&&n.makeForBody();break;case"ForInStatement":case"ForOfStatement":s.left===e?n.makeForInOfLeft():s.right===e?n.makeForInOfRight():(xf(s.body===e),n.makeForInOfBody());break;case"AssignmentPattern":s.right===e&&(n.pushForkContext(),n.forkBypassPath(),n.forkPath());break;default:break}}function vq(t,e){let r=t.codePath,n=r&&Zr.getState(r),s=e.parent;function i(a){r&&(An(t,e),jr.dumpState(e,n,!1)),r=t.codePath=new Zr({id:t.idGenerator.next(),origin:a,upper:r,onLooped:t.onLooped}),n=Zr.getState(r),jr.dump(`onCodePathStart ${r.id}`),t.emitter.emit("onCodePathStart",r,e)}switch(uE(e)&&i("class-field-initializer"),e.type){case"Program":i("program");break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":i("function");break;case"StaticBlock":i("class-static-block");break;case"ChainExpression":n.pushChainContext();break;case"CallExpression":e.optional===!0&&n.makeOptionalNode();break;case"MemberExpression":e.optional===!0&&n.makeOptionalNode();break;case"LogicalExpression":cl(e.operator)&&n.pushChoiceContext(e.operator,fE(e));break;case"AssignmentExpression":fl(e.operator)&&n.pushChoiceContext(e.operator.slice(0,-1),fE(e));break;case"ConditionalExpression":case"IfStatement":n.pushChoiceContext("test",!1);break;case"SwitchStatement":n.pushSwitchContext(e.cases.some(yq),cE(e));break;case"TryStatement":n.pushTryContext(Boolean(e.finalizer));break;case"SwitchCase":s.discriminant!==e&&s.cases[0]!==e&&n.forkPath();break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":n.pushLoopContext(e.type,cE(e));break;case"LabeledStatement":lE.test(e.body.type)||n.pushBreakContext(!1,e.label.name);break;default:break}An(t,e),jr.dumpState(e,n,!1)}function Cq(t,e){let r=t.codePath,n=Zr.getState(r),s=!1;switch(e.type){case"ChainExpression":n.popChainContext();break;case"IfStatement":case"ConditionalExpression":n.popChoiceContext();break;case"LogicalExpression":cl(e.operator)&&n.popChoiceContext();break;case"AssignmentExpression":fl(e.operator)&&n.popChoiceContext();break;case"SwitchStatement":n.popSwitchContext();break;case"SwitchCase":e.consequent.length===0&&n.makeSwitchCaseBody(!0,!e.test),n.forkContext.reachable&&(s=!0);break;case"TryStatement":n.popTryContext();break;case"BreakStatement":An(t,e),n.makeBreak(e.label&&e.label.name),s=!0;break;case"ContinueStatement":An(t,e),n.makeContinue(e.label&&e.label.name),s=!0;break;case"ReturnStatement":An(t,e),n.makeReturn(),s=!0;break;case"ThrowStatement":An(t,e),n.makeThrow(),s=!0;break;case"Identifier":xq(e)&&(n.makeFirstThrowablePathInTryBlock(),s=!0);break;case"CallExpression":case"ImportExpression":case"MemberExpression":case"NewExpression":case"YieldExpression":n.makeFirstThrowablePathInTryBlock();break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":n.popLoopContext();break;case"AssignmentPattern":n.popForkContext();break;case"LabeledStatement":lE.test(e.body.type)||n.popBreakContext();break;default:break}s||An(t,e),jr.dumpState(e,n,!0)}function Sq(t,e){function r(){let n=t.codePath;Zr.getState(n).makeFinal(),Eq(t,e),jr.dump(`onCodePathEnd ${n.id}`),t.emitter.emit("onCodePathEnd",n,e),jr.dumpDot(n),n=t.codePath=t.codePath.upper,n&&jr.dumpState(e,Zr.getState(n),!0)}switch(e.type){case"Program":case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"StaticBlock":{r();break}case"CallExpression":e.optional===!0&&e.arguments.length===0&&Zr.getState(t.codePath).makeOptionalRight();break;default:break}uE(e)&&r()}var pE=class{constructor(e){this.original=e,this.emitter=e.emitter,this.codePath=null,this.idGenerator=new gq("s"),this.currentNode=null,this.onLooped=this.onLooped.bind(this)}enterNode(e){this.currentNode=e,e.parent&&bq(this,e),vq(this,e),this.original.enterNode(e),this.currentNode=null}leaveNode(e){this.currentNode=e,Cq(this,e),this.original.leaveNode(e),Sq(this,e),this.currentNode=null}onLooped(e,r){e.reachable&&r.reachable&&(jr.dump(`onCodePathSegmentLoop ${e.id} -> ${r.id}`),this.emitter.emit("onCodePathSegmentLoop",e,r,this.currentNode))}};oE.exports=pE});var na=M((AZ,mE)=>{b();v();"use strict";mE.exports=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}});var yE=M((wZ,dE)=>{b();v();"use strict";var Aq=na();function pl(t,e){return t.line-e.line||t.column-e.column}function wq(t){let e=new Map;for(let r of t){let{unprocessedDirective:{parentComment:n}}=r;e.has(n)?e.get(n).push(r):e.set(n,[r])}return[...e.values()]}function kq(t,e){let r=e.range[0]+"//".length,n=/^\s*\S+\s+/u.exec(e.value)[0].length,s=e.value.slice(n).split(/\s-{2,}\s/u)[0].trimRight();return t.map(i=>{let{ruleId:a}=i,l=new RegExp(String.raw`(?:^|\s*,\s*)${Aq(a)}(?:\s*,\s*|$)`,"u").exec(s),u=l[0],c=n+l.index,p=c+u.length,h=u.indexOf(","),f=u.lastIndexOf(","),m,x;return h!==f?(m=c+h,x=c+f):(m=c,x=p),{description:`'${a}'`,fix:{range:[r+m,r+x],text:""},unprocessedDirective:i.unprocessedDirective}})}function Dq(t,e){let{range:r}=e,n=t.filter(s=>s.ruleId).map(s=>`'${s.ruleId}'`);return{description:n.length<=2?n.join(" or "):`${n.slice(0,n.length-1).join(", ")}, or ${n[n.length-1]}`,fix:{range:r,text:" "},unprocessedDirective:t[0].unprocessedDirective}}function Tq(t){return wq(t).flatMap(r=>{let{parentComment:n}=r[0].unprocessedDirective,s=new Set(n.ruleIds);for(let i of r)s.delete(i.ruleId);return s.size?kq(r,n.commentToken):[Dq(r,n.commentToken)]})}function gE(t){let e=[],r=new Set;for(let a of t.problems){let o=[],l=0;for(;l<t.directives.length&&pl(t.directives[l],a)<=0;){let u=t.directives[l++];if(u.ruleId===null||u.ruleId===a.ruleId)switch(u.type){case"disable":o.push(u);break;case"enable":o=[];break}}if(o.length>0){let u=o.map(c=>({kind:"directive",justification:c.unprocessedDirective.justification}));a.suppressions?a.suppressions=a.suppressions.concat(u):(a.suppressions=u,r.add(o[o.length-1]))}e.push(a)}let n=t.directives.filter(a=>a.type==="disable"&&!r.has(a)),i=Tq(n).map(({description:a,fix:o,unprocessedDirective:l})=>{let{parentComment:u,type:c,line:p,column:h}=l;return{ruleId:null,message:a?`Unused eslint-disable directive (no problems were reported from ${a}).`:"Unused eslint-disable directive (no problems were reported).",line:c==="disable-next-line"?u.commentToken.loc.start.line:p,column:c==="disable-next-line"?u.commentToken.loc.start.column+1:h,severity:t.reportUnusedDisableDirectives==="warn"?1:2,nodeType:null,...t.disableFixes?{}:{fix:o}}});return{problems:e,unusedDisableDirectives:i}}dE.exports=({directives:t,disableFixes:e,problems:r,reportUnusedDisableDirectives:n="off"})=>{let s=t.filter(l=>l.type==="disable"||l.type==="enable").map(l=>Object.assign({},l,{unprocessedDirective:l})).sort(pl),i=t.flatMap(l=>{switch(l.type){case"disable":case"enable":return[];case"disable-line":return[{type:"disable",line:l.line,column:1,ruleId:l.ruleId,unprocessedDirective:l},{type:"enable",line:l.line+1,column:0,ruleId:l.ruleId,unprocessedDirective:l}];case"disable-next-line":return[{type:"disable",line:l.line+1,column:1,ruleId:l.ruleId,unprocessedDirective:l},{type:"enable",line:l.line+2,column:0,ruleId:l.ruleId,unprocessedDirective:l}];default:throw new TypeError(`Unrecognized directive type '${l.type}'`)}}).sort(pl),a=gE({problems:r,directives:s,disableFixes:e,reportUnusedDisableDirectives:n}),o=gE({problems:a.problems,directives:i,disableFixes:e,reportUnusedDisableDirectives:n});return n!=="off"?o.problems.concat(a.unusedDisableDirectives).concat(o.unusedDisableDirectives).sort(pl):o.problems}});var wE=M((kZ,xE)=>{b();v();var EE,bE,vE,CE,SE,AE,Fq={}.toString;EE=hl(function(t,e){return t.apply(null,e)});bE=function(t){return hl(t)};vE=hl(function(t,e,r){return t(r,e)});CE=function(t){return function(e){return function(){return t(e(e)).apply(null,arguments)}}(function(e){return function(){return t(e(e)).apply(null,arguments)}})};SE=hl(function(t,e,r,n){return t(e(r),e(n))});AE=function(t){var e;return e={},function(){var r,n,s,i,a,o;for(n=[],s=0,i=arguments.length;s<i;++s)n.push(arguments[s]);return r=n,a=function(){var l,u,c,p=[];for(l=0,c=(u=r).length;l<c;++l)o=u[l],p.push(o+Fq.call(o).slice(8,-1));return p}().join(""),e[a]=a in e?e[a]:t.apply(null,r)}};xE.exports={curry:bE,flip:vE,fix:CE,apply:EE,over:SE,memoize:AE};function hl(t,e){var r,n=function(s){return t.length>1?function(){var i=s?s.concat():[];return r=e?r||this:this,i.push.apply(i,arguments)<t.length&&arguments.length?n.call(r,i):t.apply(r,i)}:t};return n()}});var Bb=M((DZ,kE)=>{b();v();var DE,TE,FE,PE,IE,_E,BE,OE,RE,LE,NE,ME,jE,qE,VE,UE,$E,bf,WE,GE,zE,vf,HE,KE,YE,JE,Cf,QE,XE,ZE,eb,tb,rb,sb,nb,ib,ab,ob,lb,ub,cb,fb,pb,hb,mb,db,gb,ia,yb,xb,Eb,bb,vb,Cb,Sf,Af,Sb,wf,kf,Df,Ab,wb,kb,Db,Tb,Fb,Tf,Pb,Ib,_b,Pq={}.toString;DE=ot(function(t,e){var r,n,s;for(r=0,n=e.length;r<n;++r)s=e[r],t(s);return e});TE=ot(function(t,e){var r,n,s,i=[];for(r=0,n=e.length;r<n;++r)s=e[r],i.push(t(s));return i});FE=function(t){var e,r,n,s=[];for(e=0,r=t.length;e<r;++e)n=t[e],n&&s.push(n);return s};PE=ot(function(t,e){var r,n,s,i=[];for(r=0,n=e.length;r<n;++r)s=e[r],t(s)&&i.push(s);return i});IE=ot(function(t,e){var r,n,s,i=[];for(r=0,n=e.length;r<n;++r)s=e[r],t(s)||i.push(s);return i});_E=ot(function(t,e){var r,n;return r=Tf(t,e),n=e.slice(),r!=null&&n.splice(r,1),n});BE=ot(function(t,e){var r,n,s,i,a;for(r=[],n=[],s=0,i=e.length;s<i;++s)a=e[s],(t(a)?r:n).push(a);return[r,n]});OE=ot(function(t,e){var r,n,s;for(r=0,n=e.length;r<n;++r)if(s=e[r],t(s))return s});RE=LE=function(t){return t[0]};NE=function(t){if(!!t.length)return t.slice(1)};ME=function(t){return t[t.length-1]};jE=function(t){if(!!t.length)return t.slice(0,-1)};qE=function(t){return!t.length};VE=function(t){return t.concat().reverse()};UE=function(t){var e,r,n,s;for(e=[],r=0,n=t.length;r<n;++r)s=t[r],aa(s,e)||e.push(s);return e};$E=ot(function(t,e){var r,n,s,i,a,o=[];for(r=[],n=0,s=e.length;n<s;++n)i=e[n],a=t(i),!aa(a,r)&&(r.push(a),o.push(i));return o});bf=WE=ot(function(t,e,r){var n,s,i;for(n=0,s=r.length;n<s;++n)i=r[n],e=t(e,i);return e});GE=zE=ot(function(t,e){return bf(t,e[0],e.slice(1))});vf=ot(function(t,e,r){var n,s;for(n=r.length-1;n>=0;--n)s=r[n],e=t(s,e);return e});HE=ot(function(t,e){return vf(t,e[e.length-1],e.slice(0,-1))});KE=ot(function(t,e){var r,n,s;for(r=[],n=e;(s=t(n))!=null;)r.push(s[0]),n=s[1];return r});YE=function(t){return[].concat.apply([],t)};JE=ot(function(t,e){var r;return[].concat.apply([],function(){var n,s,i,a=[];for(n=0,i=(s=e).length;n<i;++n)r=s[n],a.push(t(r));return a}())});Cf=function(t){var e;return[].concat.apply([],function(){var r,n,s,i=[];for(r=0,s=(n=t).length;r<s;++r)e=n[r],Pq.call(e).slice(8,-1)==="Array"?i.push(Cf(e)):i.push(e);return i}())};QE=function(t){var e,r,n,s,i,a,o,l,u,c;for(r=[],n=1,s=arguments.length;n<s;++n)r.push(arguments[n]);e=r,i=[];e:for(n=0,a=t.length;n<a;++n){for(o=t[n],l=0,u=e.length;l<u;++l)if(c=e[l],aa(o,c))continue e;i.push(o)}return i};XE=function(t){var e,r,n,s,i,a,o,l,u,c;for(r=[],n=1,s=arguments.length;n<s;++n)r.push(arguments[n]);e=r,i=[];e:for(n=0,a=t.length;n<a;++n){for(o=t[n],l=0,u=e.length;l<u;++l)if(c=e[l],!aa(o,c))continue e;i.push(o)}return i};ZE=function(){var t,e,r,n,s,i,a,o,l,u;for(e=[],r=0,n=arguments.length;r<n;++r)e.push(arguments[r]);for(t=e,s=[],r=0,i=t.length;r<i;++r)for(a=t[r],o=0,l=a.length;o<l;++o)u=a[o],aa(u,s)||s.push(u);return s};eb=ot(function(t,e){var r,n,s,i,a;for(r={},n=0,s=e.length;n<s;++n)i=e[n],a=t(i),a in r?r[a]+=1:r[a]=1;return r});tb=ot(function(t,e){var r,n,s,i,a;for(r={},n=0,s=e.length;n<s;++n)i=e[n],a=t(i),a in r?r[a].push(i):r[a]=[i];return r});rb=function(t){var e,r,n;for(e=0,r=t.length;e<r;++e)if(n=t[e],!n)return!1;return!0};sb=function(t){var e,r,n;for(e=0,r=t.length;e<r;++e)if(n=t[e],n)return!0;return!1};nb=ot(function(t,e){var r,n,s;for(r=0,n=e.length;r<n;++r)if(s=e[r],t(s))return!0;return!1});ib=ot(function(t,e){var r,n,s;for(r=0,n=e.length;r<n;++r)if(s=e[r],!t(s))return!1;return!0});ab=function(t){return t.concat().sort(function(e,r){return e>r?1:e<r?-1:0})};ob=ot(function(t,e){return e.concat().sort(t)});lb=ot(function(t,e){return e.concat().sort(function(r,n){return t(r)>t(n)?1:t(r)<t(n)?-1:0})});ub=function(t){var e,r,n,s;for(e=0,r=0,n=t.length;r<n;++r)s=t[r],e+=s;return e};cb=function(t){var e,r,n,s;for(e=1,r=0,n=t.length;r<n;++r)s=t[r],e*=s;return e};fb=pb=function(t){var e,r,n,s;for(e=0,r=0,n=t.length;r<n;++r)s=t[r],e+=s;return e/t.length};hb=function(t){var e,r,n,s,i;for(e=t[0],r=0,s=(n=t.slice(1)).length;r<s;++r)i=n[r],i>e&&(e=i);return e};mb=function(t){var e,r,n,s,i;for(e=t[0],r=0,s=(n=t.slice(1)).length;r<s;++r)i=n[r],i<e&&(e=i);return e};db=ot(function(t,e){var r,n,s,i,a;for(r=e[0],n=0,i=(s=e.slice(1)).length;n<i;++n)a=s[n],t(a)>t(r)&&(r=a);return r});gb=ot(function(t,e){var r,n,s,i,a;for(r=e[0],n=0,i=(s=e.slice(1)).length;n<i;++n)a=s[n],t(a)<t(r)&&(r=a);return r});ia=yb=ot(function(t,e,r){var n,s;return n=e,[e].concat(function(){var i,a,o,l=[];for(i=0,o=(a=r).length;i<o;++i)s=a[i],l.push(n=t(n,s));return l}())});xb=Eb=ot(function(t,e){if(!!e.length)return ia(t,e[0],e.slice(1))});bb=ot(function(t,e,r){return r=r.concat().reverse(),ia(t,e,r).reverse()});vb=ot(function(t,e){if(!!e.length)return e=e.concat().reverse(),ia(t,e[0],e.slice(1)).reverse()});Cb=ot(function(t,e,r){return r.slice(t,e)});Sf=ot(function(t,e){return t<=0?e.slice(0,0):e.slice(0,t)});Af=ot(function(t,e){return t<=0?e:e.slice(t)});Sb=ot(function(t,e){return[Sf(t,e),Af(t,e)]});wf=ot(function(t,e){var r,n;if(r=e.length,!r)return e;for(n=0;n<r&&t(e[n]);)n+=1;return e.slice(0,n)});kf=ot(function(t,e){var r,n;if(r=e.length,!r)return e;for(n=0;n<r&&t(e[n]);)n+=1;return e.slice(n)});Df=ot(function(t,e){return[wf(t,e),kf(t,e)]});Ab=ot(function(t,e){return Df(Iq(t,_q),e)});wb=ot(function(t,e){var r,n,s,i,a,o;for(r=[],n=e.length,s=0,i=t.length;s<i&&(a=s,o=t[s],a!==n);++s)r.push([o,e[a]]);return r});kb=ot(function(t,e,r){var n,s,i,a,o,l;for(n=[],s=r.length,i=0,a=e.length;i<a&&(o=i,l=e[i],o!==s);++i)n.push(t(l,r[o]));return n});Db=function(){var t,e,r,n,s,i,a,o,l,u,c,p=[];for(e=[],r=0,n=arguments.length;r<n;++r)e.push(arguments[r]);for(t=e,s=void 0,r=0,i=t.length;r<i;++r)a=t[r],s<=(o=a.length)||(s=o);for(r=0;r<s;++r){for(l=r,u=[],c=0,i=t.length;c<i;++c)a=t[c],u.push(a[l]);p.push(u)}return p};Tb=function(t){var e,r,n,s,i,a,o,l,u,c=[];for(r=[],n=1,s=arguments.length;n<s;++n)r.push(arguments[n]);for(e=r,i=void 0,n=0,a=e.length;n<a;++n)o=e[n],i<=(l=o.length)||(i=l);for(n=0;n<i;++n)u=n,c.push(t.apply(null,p()));return c;function p(){var h,f,m,x=[];for(h=0,m=(f=e).length;h<m;++h)o=f[h],x.push(o[u]);return x}};Fb=ot(function(t,e){return t<0?e[e.length+t]:e[t]});Tf=ot(function(t,e){var r,n,s,i;for(r=0,n=e.length;r<n;++r)if(s=r,i=e[r],i===t)return s});Pb=ot(function(t,e){var r,n,s,i,a=[];for(r=0,n=e.length;r<n;++r)s=r,i=e[r],i===t&&a.push(s);return a});Ib=ot(function(t,e){var r,n,s,i;for(r=0,n=e.length;r<n;++r)if(s=r,i=e[r],t(i))return s});_b=ot(function(t,e){var r,n,s,i,a=[];for(r=0,n=e.length;r<n;++r)s=r,i=e[r],t(i)&&a.push(s);return a});kE.exports={each:DE,map:TE,filter:PE,compact:FE,reject:IE,remove:_E,partition:BE,find:OE,head:RE,first:LE,tail:NE,last:ME,initial:jE,empty:qE,reverse:VE,difference:QE,intersection:XE,union:ZE,countBy:eb,groupBy:tb,fold:bf,fold1:GE,foldl:WE,foldl1:zE,foldr:vf,foldr1:HE,unfoldr:KE,andList:rb,orList:sb,any:nb,all:ib,unique:UE,uniqueBy:$E,sort:ab,sortWith:ob,sortBy:lb,sum:ub,product:cb,mean:fb,average:pb,concat:YE,concatMap:JE,flatten:Cf,maximum:hb,minimum:mb,maximumBy:db,minimumBy:gb,scan:ia,scan1:xb,scanl:yb,scanl1:Eb,scanr:bb,scanr1:vb,slice:Cb,take:Sf,drop:Af,splitAt:Sb,takeWhile:wf,dropWhile:kf,span:Df,breakList:Ab,zip:wb,zipWith:kb,zipAll:Db,zipAllWith:Tb,at:Fb,elemIndex:Tf,elemIndices:Pb,findIndex:Ib,findIndices:_b};function ot(t,e){var r,n=function(s){return t.length>1?function(){var i=s?s.concat():[];return r=e?r||this:this,i.push.apply(i,arguments)<t.length&&arguments.length?n.call(r,i):t.apply(r,i)}:t};return n()}function aa(t,e){for(var r=-1,n=e.length>>>0;++r<n;)if(t===e[r])return!0;return!1}function Iq(){var t=arguments;return function(){var e,r;for(r=t[0].apply(this,arguments),e=1;e<t.length;++e)r=t[e](r);return r}}function _q(t){return!t}});var Yb=M((TZ,Ob)=>{b();v();var Rb,Lb,Nb,Mb,jb,qb,Vb,Ub,$b,Wb,Gb,zb,Hb,Kb;Rb=function(t){var e,r,n=[];for(e in t)r=t[e],n.push(r);return n};Lb=function(t){var e,r=[];for(e in t)r.push(e);return r};Nb=function(t){var e,r,n,s={};for(e=0,r=t.length;e<r;++e)n=t[e],s[n[0]]=n[1];return s};Mb=function(t){var e,r,n=[];for(e in t)r=t[e],n.push([e,r]);return n};jb=wn(function(t,e){var r,n,s,i,a={};for(r=0,n=t.length;r<n;++r)s=r,i=t[r],a[i]=e[s];return a});qb=function(t){var e,r,n,s;e=[],r=[];for(n in t)s=t[n],e.push(n),r.push(s);return[e,r]};Vb=function(t){var e;for(e in t)return!1;return!0};Ub=wn(function(t,e){var r,n;for(r in e)n=e[r],t(n);return e});$b=wn(function(t,e){var r,n,s={};for(r in e)n=e[r],s[r]=t(n);return s});Wb=function(t){var e,r,n={};for(e in t)r=t[e],r&&(n[e]=r);return n};Gb=wn(function(t,e){var r,n,s={};for(r in e)n=e[r],t(n)&&(s[r]=n);return s});zb=wn(function(t,e){var r,n,s={};for(r in e)n=e[r],t(n)||(s[r]=n);return s});Hb=wn(function(t,e){var r,n,s,i;r={},n={};for(s in e)i=e[s],(t(i)?r:n)[s]=i;return[r,n]});Kb=wn(function(t,e){var r,n;for(r in e)if(n=e[r],t(n))return n});Ob.exports={values:Rb,keys:Lb,pairsToObj:Nb,objToPairs:Mb,listsToObj:jb,objToLists:qb,empty:Vb,each:Ub,map:$b,filter:Gb,compact:Wb,reject:zb,partition:Hb,find:Kb};function wn(t,e){var r,n=function(s){return t.length>1?function(){var i=s?s.concat():[];return r=e?r||this:this,i.push.apply(i,arguments)<t.length&&arguments.length?n.call(r,i):t.apply(r,i)}:t};return n()}});var cv=M((FZ,Jb)=>{b();v();var Qb,Xb,Zb,ev,tv,rv,sv,nv,iv,av,ov,lv,uv;Qb=Ff(function(t,e){return e.split(t)});Xb=Ff(function(t,e){return e.join(t)});Zb=function(t){return t.length?t.split(`
|
|
46
|
+
`):[]};ev=function(t){return t.join(`
|
|
47
|
+
`)};tv=function(t){return t.length?t.split(/[ ]+/):[]};rv=function(t){return t.join(" ")};sv=function(t){return t.split("")};nv=function(t){return t.join("")};iv=function(t){return t.split("").reverse().join("")};av=Ff(function(t,e){var r,n;for(r="",n=0;n<t;++n)r+=e;return r});ov=function(t){return t.charAt(0).toUpperCase()+t.slice(1)};lv=function(t){return t.replace(/[-_]+(.)?/g,function(e,r){return(r??"").toUpperCase()})};uv=function(t){return t.replace(/([^-A-Z])([A-Z]+)/g,function(e,r,n){return r+"-"+(n.length>1?n:n.toLowerCase())}).replace(/^([A-Z]+)/,function(e,r){return r.length>1?r+"-":r.toLowerCase()})};Jb.exports={split:Qb,join:Xb,lines:Zb,unlines:ev,words:tv,unwords:rv,chars:sv,unchars:nv,reverse:iv,repeat:av,capitalize:ov,camelize:lv,dasherize:uv};function Ff(t,e){var r,n=function(s){return t.length>1?function(){var i=s?s.concat():[];return r=e?r||this:this,i.push.apply(i,arguments)<t.length&&arguments.length?n.call(r,i):t.apply(r,i)}:t};return n()}});var Uv=M((PZ,fv)=>{b();v();var pv,hv,mv,dv,gv,yv,xv,Ev,bv,vv,Pf,Cv,Sv,Av,wv,kv,Dv,Tv,Fv,Pv,Iv,_v,Bv,Ov,Rv,Lv,Nv,Mv,jv,qv,If,Vv;pv=es(function(t,e){return t>e?t:e});hv=es(function(t,e){return t<e?t:e});mv=function(t){return-t};dv=Math.abs;gv=function(t){return t<0?-1:t>0?1:0};yv=es(function(t,e){return~~(t/e)});xv=es(function(t,e){return t%e});Ev=es(function(t,e){return Math.floor(t/e)});bv=es(function(t,e){var r;return(t%(r=e)+r)%r});vv=function(t){return 1/t};Pf=Math.PI;Cv=Pf*2;Sv=Math.exp;Av=Math.sqrt;wv=Math.log;kv=es(function(t,e){return Math.pow(t,e)});Dv=Math.sin;Tv=Math.tan;Fv=Math.cos;Pv=Math.asin;Iv=Math.acos;_v=Math.atan;Bv=es(function(t,e){return Math.atan2(t,e)});Ov=function(t){return~~t};Rv=Math.round;Lv=Math.ceil;Nv=Math.floor;Mv=function(t){return t!==t};jv=function(t){return t%2==0};qv=function(t){return t%2!=0};If=es(function(t,e){var r;for(t=Math.abs(t),e=Math.abs(e);e!==0;)r=t%e,t=e,e=r;return t});Vv=es(function(t,e){return Math.abs(Math.floor(t/If(t,e)*e))});fv.exports={max:pv,min:hv,negate:mv,abs:dv,signum:gv,quot:yv,rem:xv,div:Ev,mod:bv,recip:vv,pi:Pf,tau:Cv,exp:Sv,sqrt:Av,ln:wv,pow:kv,sin:Dv,tan:Tv,cos:Fv,acos:Iv,asin:Pv,atan:_v,atan2:Bv,truncate:Ov,round:Rv,ceiling:Lv,floor:Nv,isItNaN:Mv,even:jv,odd:qv,gcd:If,lcm:Vv};function es(t,e){var r,n=function(s){return t.length>1?function(){var i=s?s.concat():[];return r=e?r||this:this,i.push.apply(i,arguments)<t.length&&arguments.length?n.call(r,i):t.apply(r,i)}:t};return n()}});var _f=M((IZ,$v)=>{b();v();var kn,qe,Ns,_t,mt,Wv,Gv,zv,we,Bq={}.toString;kn=wE();qe=Bb();Ns=Yb();_t=cv();mt=Uv();Wv=function(t){return t};Gv=Hv(function(t,e){return Bq.call(e).slice(8,-1)===t});zv=Hv(function(t,e){var r,n=[];for(r=0;r<t;++r)n.push(e);return n});_t.empty=qe.empty;_t.slice=qe.slice;_t.take=qe.take;_t.drop=qe.drop;_t.splitAt=qe.splitAt;_t.takeWhile=qe.takeWhile;_t.dropWhile=qe.dropWhile;_t.span=qe.span;_t.breakStr=qe.breakList;we={Func:kn,List:qe,Obj:Ns,Str:_t,Num:mt,id:Wv,isType:Gv,replicate:zv};we.each=qe.each;we.map=qe.map;we.filter=qe.filter;we.compact=qe.compact;we.reject=qe.reject;we.partition=qe.partition;we.find=qe.find;we.head=qe.head;we.first=qe.first;we.tail=qe.tail;we.last=qe.last;we.initial=qe.initial;we.empty=qe.empty;we.reverse=qe.reverse;we.difference=qe.difference;we.intersection=qe.intersection;we.union=qe.union;we.countBy=qe.countBy;we.groupBy=qe.groupBy;we.fold=qe.fold;we.foldl=qe.foldl;we.fold1=qe.fold1;we.foldl1=qe.foldl1;we.foldr=qe.foldr;we.foldr1=qe.foldr1;we.unfoldr=qe.unfoldr;we.andList=qe.andList;we.orList=qe.orList;we.any=qe.any;we.all=qe.all;we.unique=qe.unique;we.uniqueBy=qe.uniqueBy;we.sort=qe.sort;we.sortWith=qe.sortWith;we.sortBy=qe.sortBy;we.sum=qe.sum;we.product=qe.product;we.mean=qe.mean;we.average=qe.average;we.concat=qe.concat;we.concatMap=qe.concatMap;we.flatten=qe.flatten;we.maximum=qe.maximum;we.minimum=qe.minimum;we.maximumBy=qe.maximumBy;we.minimumBy=qe.minimumBy;we.scan=qe.scan;we.scanl=qe.scanl;we.scan1=qe.scan1;we.scanl1=qe.scanl1;we.scanr=qe.scanr;we.scanr1=qe.scanr1;we.slice=qe.slice;we.take=qe.take;we.drop=qe.drop;we.splitAt=qe.splitAt;we.takeWhile=qe.takeWhile;we.dropWhile=qe.dropWhile;we.span=qe.span;we.breakList=qe.breakList;we.zip=qe.zip;we.zipWith=qe.zipWith;we.zipAll=qe.zipAll;we.zipAllWith=qe.zipAllWith;we.at=qe.at;we.elemIndex=qe.elemIndex;we.elemIndices=qe.elemIndices;we.findIndex=qe.findIndex;we.findIndices=qe.findIndices;we.apply=kn.apply;we.curry=kn.curry;we.flip=kn.flip;we.fix=kn.fix;we.over=kn.over;we.split=_t.split;we.join=_t.join;we.lines=_t.lines;we.unlines=_t.unlines;we.words=_t.words;we.unwords=_t.unwords;we.chars=_t.chars;we.unchars=_t.unchars;we.repeat=_t.repeat;we.capitalize=_t.capitalize;we.camelize=_t.camelize;we.dasherize=_t.dasherize;we.values=Ns.values;we.keys=Ns.keys;we.pairsToObj=Ns.pairsToObj;we.objToPairs=Ns.objToPairs;we.listsToObj=Ns.listsToObj;we.objToLists=Ns.objToLists;we.max=mt.max;we.min=mt.min;we.negate=mt.negate;we.abs=mt.abs;we.signum=mt.signum;we.quot=mt.quot;we.rem=mt.rem;we.div=mt.div;we.mod=mt.mod;we.recip=mt.recip;we.pi=mt.pi;we.tau=mt.tau;we.exp=mt.exp;we.sqrt=mt.sqrt;we.ln=mt.ln;we.pow=mt.pow;we.sin=mt.sin;we.tan=mt.tan;we.cos=mt.cos;we.acos=mt.acos;we.asin=mt.asin;we.atan=mt.atan;we.atan2=mt.atan2;we.truncate=mt.truncate;we.round=mt.round;we.ceiling=mt.ceiling;we.floor=mt.floor;we.isItNaN=mt.isItNaN;we.even=mt.even;we.odd=mt.odd;we.gcd=mt.gcd;we.lcm=mt.lcm;we.VERSION="1.2.1";$v.exports=we;function Hv(t,e){var r,n=function(s){return t.length>1?function(){var i=s?s.concat():[];return r=e?r||this:this,i.push.apply(i,arguments)<t.length&&arguments.length?n.call(r,i):t.apply(r,i)}:t};return n()}});var Jv=M((Kv,Yv)=>{b();v();(function(){var t,e,r;t=_f().reject;function n(f,m){if(f[0]===m)return f.shift();throw new Error("Expected '"+m+"', but got '"+f[0]+"' instead in "+JSON.stringify(f)+".")}function s(f,m){if(f[0]===m)return f.shift()}function i(f,m,x){var E,S,T,I;for(E=m[0],S=m[1],x&&n(f,E),T=[],I=","+(x?S:"");f.length&&x&&f[0]!==S;)T.push(c(f,I)),s(f,",");return x&&n(f,S),T}function a(f,m){return i(f,["[","]"],m)}function o(f,m){return i(f,["(",")"],m)}function l(f,m){var x,E,S;for(m&&n(f,"{"),x={},E=","+(m?"}":"");f.length&&(!m||f[0]!=="}");)S=u(f,":"),n(f,":"),x[S]=c(f,E),s(f,",");return m&&n(f,"}"),x}function u(f,m){var x;for(m==null&&(m=""),x="";f.length&&m.indexOf(f[0])===-1;)x+=f.shift();return x}function c(f,m){switch(f[0]){case"[":return a(f,!0);case"(":return o(f,!0);case"{":return l(f,!0);default:return u(f,m)}}function p(f,m,x){var E,S,T,I,y,w,D,R;return E=m[0],S=E.type,T=E.structure,I=f.concat(),!x.explicit&&m.length===1&&(!S&&T||S==="Array"||S==="Object")?(y=T==="array"||S==="Array"?a(f,f[0]==="["):T==="tuple"?o(f,f[0]==="("):l(f,f[0]==="{"),w=f.length?c(T==="array"||S==="Array"?(D=I,D.unshift("["),D.push("]"),D):(R=I,R.unshift("("),R.push(")"),R)):y):w=c(f),w}e=/\[\]\(\)}{:,/.source,r=RegExp(`("(?:\\\\"|[^"])*")|('(?:\\\\'|[^'])*')|(/(?:\\\\/|[^/])*/[a-zA-Z]*)|(#.*#)|([`+e+"])|([^\\s"+e+"](?:\\s*[^\\s"+e+"]+)*)|\\s*"),Yv.exports=function(f,m,x){var E,S;if(x==null&&(x={}),!x.explicit&&f.length===1&&f[0].type==="String")return m;if(E=t(h,m.split(r)),S=p(E,f,x),!S)throw new Error("Error parsing '"+m+"'.");return S};function h(f){return!f}}).call(Kv)});var Zv=M((Qv,Xv)=>{b();v();(function(){var t,e;t=/[\$\w]+/;function r(m){var x;if(x=m[0],x==null)throw new Error("Unexpected end of input.");return x}function n(m){var x;if(x=r(m),!t.test(x))throw new Error("Expected text, got '"+x+"' instead.");return m.shift()}function s(m,x){var E;if(E=r(m),E!==x)throw new Error("Expected '"+x+"', got '"+E+"' instead.");return m.shift()}function i(m,x){var E;return E=m[0],E===x?m.shift():null}function a(m){var x;if(s(m,"["),r(m)==="]")throw new Error("Must specify type of Array - eg. [Type], got [] instead.");return x=h(m),s(m,"]"),{structure:"array",of:x}}function o(m){var x;if(x=[],s(m,"("),r(m)===")")throw new Error("Tuple must be of at least length 1 - eg. (Type), got () instead.");for(;x.push(h(m)),i(m,","),r(m)!==")";);return s(m,")"),{structure:"tuple",of:x}}function l(m){var x,E,S,T,I;for(x={},s(m,"{"),E=!1;;){if(i(m,"...")){E=!0;break}if(S=u(m),T=S[0],I=S[1],x[T]=I,i(m,","),r(m)==="}")break}return s(m,"}"),{structure:"fields",of:x,subset:E}}function u(m){var x,E;return x=n(m),s(m,":"),E=h(m),[x,E]}function c(m){switch(m[0]){case"[":return a(m);case"(":return o(m);case"{":return l(m)}}function p(m){var x,E,S,T;if(x=r(m),E=x==="*",E||t.test(x))return S=E?s(m,"*"):n(m),T=c(m),T?(T.type=S,T):{type:S};if(T=c(m),!T)throw new Error("Unexpected character: "+x);return T}function h(m){var x,E,S,T,I,y;if(r(m)==="::")throw new Error("No comment before comment separator '::' found.");for(x=m[1],x!=null&&x==="::"&&(m.shift(),m.shift()),E=[],S={},r(m)==="Maybe"&&(m.shift(),E=[{type:"Undefined"},{type:"Null"}],S={Undefined:!0,Null:!0});T=p(m),I=T.type,y=T.structure,S[I]||E.push(T),y==null&&(S[I]=!0),!!i(m,"|"););return E}e=RegExp("\\.\\.\\.|::|->|"+t.source+"|\\S","g"),Xv.exports=function(m){var x,E;if(!m.length)throw new Error("No type specified.");if(x=m.match(e)||[],f("->",x))throw new Error("Function types are not supported. To validate that something is a function, you may use 'Function'.");try{return h(x)}catch(S){throw E=S,new Error(E.message+" - Remaining tokens: "+JSON.stringify(x)+" - Initial input: '"+m+"'")}};function f(m,x){for(var E=-1,S=x.length>>>0;++E<S;)if(m===x[E])return!0;return!1}}).call(Qv)});var r1=M((e1,t1)=>{b();v();(function(){var t,e,r,n,s,i,a={}.toString;t=_f(),e=t.any,r=t.all,n=t.isItNaN,s={Number:{typeOf:"Number",validate:function(f){return!n(f)}},NaN:{typeOf:"Number",validate:n},Int:{typeOf:"Number",validate:function(f){return!n(f)&&f%1==0}},Float:{typeOf:"Number",validate:function(f){return!n(f)}},Date:{typeOf:"Date",validate:function(f){return!n(f.getTime())}}},i={array:"Array",tuple:"Array"};function o(f,m,x){return r(function(E){return h(E,m.of,x)},f)}function l(f,m,x){var E,S,T,I,y;for(E=0,S=0,I=(T=m.of).length;S<I;++S){if(y=T[S],!h(f[E],y,x))return!1;E++}return f.length<=E}function u(f,m,x){var E,S,T,I,y,w,D;E={},S=0;for(T in f)E[T]=!0,S++;I=0;for(y in w=m.of){if(D=w[y],!h(f[y],D,x))return!1;E[y]&&I++}return m.subset||S===I}function c(f,m,x){if(!(f instanceof Object))return!1;switch(m.structure){case"fields":return u(f,m,x);case"array":return o(f,m,x);case"tuple":return l(f,m,x)}}function p(f,m,x){var E,S,T,I;if(E=m.type,S=m.structure,E)return E==="*"?!0:(T=x.customTypes[E]||s[E],T?(T.typeOf===void 0||T.typeOf===a.call(f).slice(8,-1))&&T.validate(f):E===a.call(f).slice(8,-1)&&(!S||c(f,m,x)));if(S)return(I=i[S])&&I!==a.call(f).slice(8,-1)?!1:c(f,m,x);throw new Error("No type defined. Input: "+f+".")}function h(f,m,x){if(a.call(m).slice(8,-1)!=="Array")throw new Error("Types must be in an array. Input: "+f+".");return e(function(E){return p(f,E,x)},m)}t1.exports=function(f,m,x){return x==null&&(x={}),x.customTypes==null&&(x.customTypes={}),h(m,f,x)}}).call(e1)});var Bf=M((s1,n1)=>{b();v();(function(){var t,e,r,n;t="0.4.0",e=Zv(),r=r1(),n=function(s,i,a){return r(e(s),i,a)},n1.exports={VERSION:t,typeCheck:n,parsedTypeCheck:r,parseType:e}}).call(s1)});var o1=M((i1,a1)=>{b();v();(function(){var t,e,r={}.toString;t=Bf().parsedTypeCheck,e={"*":function(l,u){switch(r.call(l).slice(8,-1)){case"Array":return a(l,{type:"Array"},u);case"Object":return a(l,{type:"Object"},u);default:return{type:"Just",value:o(l,[{type:"Undefined"},{type:"Null"},{type:"NaN"},{type:"Boolean"},{type:"Number"},{type:"Date"},{type:"RegExp"},{type:"Array"},{type:"Object"},{type:"String"}],(u.explicit=!0,u))}}},Undefined:function(l){return l==="undefined"||l===void 0?{type:"Just",value:void 0}:{type:"Nothing"}},Null:function(l){return l==="null"?{type:"Just",value:null}:{type:"Nothing"}},NaN:function(l){return l==="NaN"?{type:"Just",value:NaN}:{type:"Nothing"}},Boolean:function(l){return l==="true"?{type:"Just",value:!0}:l==="false"?{type:"Just",value:!1}:{type:"Nothing"}},Number:function(l){return{type:"Just",value:+l}},Int:function(l){return{type:"Just",value:+l}},Float:function(l){return{type:"Just",value:+l}},Date:function(l,u){var c;return(c=/^\#([\s\S]*)\#$/.exec(l))?{type:"Just",value:new Date(+c[1]||c[1])}:u.explicit?{type:"Nothing"}:{type:"Just",value:new Date(+l||l)}},RegExp:function(l,u){var c;return(c=/^\/([\s\S]*)\/([gimy]*)$/.exec(l))?{type:"Just",value:new RegExp(c[1],c[2])}:u.explicit?{type:"Nothing"}:{type:"Just",value:new RegExp(l)}},Array:function(l,u){return n(l,{of:[{type:"*"}]},u)},Object:function(l,u){return i(l,{of:{}},u)},String:function(l){var u,c;return r.call(l).slice(8,-1)!=="String"?{type:"Nothing"}:(u=function(p,h){return p.replace(/\\([^u]|u[0-9a-fA-F]{4})/g,function(f,m){switch(m[0]){case h:return h;case"\\":return"\\";case"b":return"\b";case"f":return"\f";case"n":return`
|
|
48
|
+
`;case"r":return"\r";case"t":return" ";case"u":return JSON.parse('"'+f+'"');default:return m}})},(c=l.match(/^'([\s\S]*)'$/))?{type:"Just",value:u(c[1],"'")}:(c=l.match(/^"([\s\S]*)"$/))?{type:"Just",value:u(c[1],'"')}:{type:"Just",value:l})}};function n(l,u,c){var p,h;return r.call(l).slice(8,-1)!=="Array"?{type:"Nothing"}:(p=u.of,{type:"Just",value:function(){var f,m,x,E=[];for(f=0,x=(m=l).length;f<x;++f)h=m[f],E.push(o(h,p,c));return E}()})}function s(l,u,c){var p,h,f,m,x,E,S;if(r.call(l).slice(8,-1)!=="Array")return{type:"Nothing"};for(p=[],h=0,f=0,x=(m=u.of).length;f<x;++f)E=m[f],S=o(l[h],E,c),r.call(S).slice(8,-1)!=="Undefined"&&p.push(S),h++;return l.length<=h?{type:"Just",value:p}:{type:"Nothing"}}function i(l,u,c){var p,h,f;return r.call(l).slice(8,-1)!=="Object"?{type:"Nothing"}:(p=u.of,{type:"Just",value:function(){var m,x={};for(h in m=l)f=m[h],x[o(h,[{type:"String"}],c)]=o(f,p[h]||[{type:"*"}],c);return x}()})}function a(l,u,c){var p,h,f,m;if(p=u.type,h=u.structure,p){if(f=((m=c.customTypes[p])!=null?m.cast:void 0)||e[p],!f)throw new Error("Type not defined: "+p+".");return f(l,c,o)}else switch(h){case"array":return n(l,u,c);case"tuple":return s(l,u,c);case"fields":return i(l,u,c)}}function o(l,u,c){var p,h,f,m,x,E;for(p=0,h=u.length;p<h;++p)if(f=u[p],m=a(l,f,c),x=m.type,E=m.value,x!=="Nothing"&&t([f],E,{customTypes:c.customTypes}))return E;throw new Error("Value "+JSON.stringify(l)+" does not type check against "+JSON.stringify(u)+".")}a1.exports=function(l,u,c){return!c.explicit&&u.length===1&&u[0].type==="String"?l:o(l,u,c)}}).call(i1)});var c1=M((l1,u1)=>{b();v();(function(){var t,e,r,n,s,i;t=Jv(),e=o1(),r=Bf().parseType,n="0.4.1",s=function(a,o,l){return l==null&&(l={}),l.explicit==null&&(l.explicit=!1),l.customTypes==null&&(l.customTypes={}),e(t(a,o,l),a,l)},i=function(a,o,l){return s(r(a),o,l)},u1.exports={VERSION:n,parse:i,parsedTypeParse:s}}).call(l1)});var p1=M((BZ,f1)=>{b();v();"use strict";var Oq=c1(),{Legacy:{ConfigOps:Rq}}=Hc(),oa=En()("eslint:config-comment-parser");f1.exports=class{parseStringConfig(e,r){oa("Parsing String config");let n={};return e.replace(/\s*([:,])\s*/gu,"$1").split(/\s|,+/u).forEach(i=>{if(!i)return;let[a,o=null]=i.split(":");n[a]={value:o,comment:r}}),n}parseJsonConfig(e,r){oa("Parsing JSON config");let n={};try{if(n=Oq.parse("Object",e)||{},Rq.isEverySeverityValid(n))return{success:!0,config:n}}catch{oa("Levn parsing failed; falling back to manual parsing.")}n={};let s=e.replace(/([-a-zA-Z0-9/]+):/gu,'"$1":').replace(/(\]|[0-9])\s+(?=")/u,"$1,");try{n=JSON.parse(`{${s}}`)}catch(i){return oa("Manual parsing failed."),{success:!1,error:{ruleId:null,fatal:!0,severity:2,message:`Failed to parse JSON from '${s}': ${i.message}`,line:r.start.line,column:r.start.column+1}}}return{success:!0,config:n}}parseListConfig(e){oa("Parsing list config");let r={};return e.replace(/\s*,\s*/gu,",").split(/,+/u).forEach(n=>{let s=n.trim();s&&(r[s]=!0)}),r}}});var h1=M((Of,Rf)=>{b();v();(function(t,e){typeof Of=="object"&&typeof Rf!="undefined"?Rf.exports=e():typeof define=="function"&&define.amd?define(e):(t=t||self).esquery=e()})(Of,function(){"use strict";function t(y){return(t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(y)}function e(y,w){return function(D){if(Array.isArray(D))return D}(y)||function(D,R){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(D)))){var z=[],q=!0,W=!1,_=void 0;try{for(var C,$=D[Symbol.iterator]();!(q=(C=$.next()).done)&&(z.push(C.value),!R||z.length!==R);q=!0);}catch(F){W=!0,_=F}finally{try{q||$.return==null||$.return()}finally{if(W)throw _}}return z}}(y,w)||n(y,w)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
49
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function r(y){return function(w){if(Array.isArray(w))return s(w)}(y)||function(w){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(w))return Array.from(w)}(y)||n(y)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
50
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function n(y,w){if(y){if(typeof y=="string")return s(y,w);var D=Object.prototype.toString.call(y).slice(8,-1);return D==="Object"&&y.constructor&&(D=y.constructor.name),D==="Map"||D==="Set"?Array.from(y):D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D)?s(y,w):void 0}}function s(y,w){(w==null||w>y.length)&&(w=y.length);for(var D=0,R=new Array(w);D<w;D++)R[D]=y[D];return R}function i(y,w){var D;if(typeof Symbol=="undefined"||y[Symbol.iterator]==null){if(Array.isArray(y)||(D=n(y))||w&&y&&typeof y.length=="number"){D&&(y=D);var R=0,z=function(){};return{s:z,n:function(){return R>=y.length?{done:!0}:{done:!1,value:y[R++]}},e:function(C){throw C},f:z}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
51
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var q,W=!0,_=!1;return{s:function(){D=y[Symbol.iterator]()},n:function(){var C=D.next();return W=C.done,C},e:function(C){_=!0,q=C},f:function(){try{W||D.return==null||D.return()}finally{if(_)throw q}}}}function a(y,w){return y(w={exports:{}},w.exports),w.exports}var o=a(function(y,w){(function D(R){var z,q,W,_,C,$;function F(me){var ce,Fe,te={};for(ce in me)me.hasOwnProperty(ce)&&(Fe=me[ce],te[ce]=typeof Fe=="object"&&Fe!==null?F(Fe):Fe);return te}function U(me,ce){this.parent=me,this.key=ce}function Q(me,ce,Fe,te){this.node=me,this.path=ce,this.wrap=Fe,this.ref=te}function B(){}function K(me){return me!=null&&typeof me=="object"&&typeof me.type=="string"}function X(me,ce){return(me===z.ObjectExpression||me===z.ObjectPattern)&&ce==="properties"}function ie(me,ce){for(var Fe=me.length-1;Fe>=0;--Fe)if(me[Fe].node===ce)return!0;return!1}function ve(me,ce){return new B().traverse(me,ce)}function Ae(me,ce){var Fe;return Fe=function(te,ne){var ue,re,fe,Ce;for(re=te.length,fe=0;re;)ne(te[Ce=fe+(ue=re>>>1)])?re=ue:(fe=Ce+1,re-=ue+1);return fe}(ce,function(te){return te.range[0]>me.range[0]}),me.extendedRange=[me.range[0],me.range[1]],Fe!==ce.length&&(me.extendedRange[1]=ce[Fe].range[0]),(Fe-=1)>=0&&(me.extendedRange[0]=ce[Fe].range[1]),me}return z={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},W={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],Program:["body"],Property:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},q={Break:_={},Skip:C={},Remove:$={}},U.prototype.replace=function(me){this.parent[this.key]=me},U.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},B.prototype.path=function(){var me,ce,Fe,te,ne;function ue(re,fe){if(Array.isArray(fe))for(Fe=0,te=fe.length;Fe<te;++Fe)re.push(fe[Fe]);else re.push(fe)}if(!this.__current.path)return null;for(ne=[],me=2,ce=this.__leavelist.length;me<ce;++me)ue(ne,this.__leavelist[me].path);return ue(ne,this.__current.path),ne},B.prototype.type=function(){return this.current().type||this.__current.wrap},B.prototype.parents=function(){var me,ce,Fe;for(Fe=[],me=1,ce=this.__leavelist.length;me<ce;++me)Fe.push(this.__leavelist[me].node);return Fe},B.prototype.current=function(){return this.__current.node},B.prototype.__execute=function(me,ce){var Fe,te;return te=void 0,Fe=this.__current,this.__current=ce,this.__state=null,me&&(te=me.call(this,ce.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=Fe,te},B.prototype.notify=function(me){this.__state=me},B.prototype.skip=function(){this.notify(C)},B.prototype.break=function(){this.notify(_)},B.prototype.remove=function(){this.notify($)},B.prototype.__initialize=function(me,ce){this.visitor=ce,this.root=me,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,ce.fallback==="iteration"?this.__fallback=Object.keys:typeof ce.fallback=="function"&&(this.__fallback=ce.fallback),this.__keys=W,ce.keys&&(this.__keys=Object.assign(Object.create(this.__keys),ce.keys))},B.prototype.traverse=function(me,ce){var Fe,te,ne,ue,re,fe,Ce,Ge,V,se,Pe,Je;for(this.__initialize(me,ce),Je={},Fe=this.__worklist,te=this.__leavelist,Fe.push(new Q(me,null,null,null)),te.push(new Q(null,null,null,null));Fe.length;)if((ne=Fe.pop())!==Je){if(ne.node){if(fe=this.__execute(ce.enter,ne),this.__state===_||fe===_)return;if(Fe.push(Je),te.push(ne),this.__state===C||fe===C)continue;if(re=(ue=ne.node).type||ne.wrap,!(se=this.__keys[re])){if(!this.__fallback)throw new Error("Unknown node type "+re+".");se=this.__fallback(ue)}for(Ge=se.length;(Ge-=1)>=0;)if(Pe=ue[Ce=se[Ge]]){if(Array.isArray(Pe)){for(V=Pe.length;(V-=1)>=0;)if(Pe[V]&&!ie(te,Pe[V])){if(X(re,se[Ge]))ne=new Q(Pe[V],[Ce,V],"Property",null);else{if(!K(Pe[V]))continue;ne=new Q(Pe[V],[Ce,V],null,null)}Fe.push(ne)}}else if(K(Pe)){if(ie(te,Pe))continue;Fe.push(new Q(Pe,Ce,null,null))}}}}else if(ne=te.pop(),fe=this.__execute(ce.leave,ne),this.__state===_||fe===_)return},B.prototype.replace=function(me,ce){var Fe,te,ne,ue,re,fe,Ce,Ge,V,se,Pe,Je,nt;function Ye(it){var lt,Dt,Xe,Ue;if(it.ref.remove()){for(Dt=it.ref.key,Ue=it.ref.parent,lt=Fe.length;lt--;)if((Xe=Fe[lt]).ref&&Xe.ref.parent===Ue){if(Xe.ref.key<Dt)break;--Xe.ref.key}}}for(this.__initialize(me,ce),Pe={},Fe=this.__worklist,te=this.__leavelist,fe=new Q(me,null,null,new U(Je={root:me},"root")),Fe.push(fe),te.push(fe);Fe.length;)if((fe=Fe.pop())!==Pe){if((re=this.__execute(ce.enter,fe))!==void 0&&re!==_&&re!==C&&re!==$&&(fe.ref.replace(re),fe.node=re),this.__state!==$&&re!==$||(Ye(fe),fe.node=null),this.__state===_||re===_)return Je.root;if((ne=fe.node)&&(Fe.push(Pe),te.push(fe),this.__state!==C&&re!==C)){if(ue=ne.type||fe.wrap,!(V=this.__keys[ue])){if(!this.__fallback)throw new Error("Unknown node type "+ue+".");V=this.__fallback(ne)}for(Ce=V.length;(Ce-=1)>=0;)if(se=ne[nt=V[Ce]])if(Array.isArray(se)){for(Ge=se.length;(Ge-=1)>=0;)if(se[Ge]){if(X(ue,V[Ce]))fe=new Q(se[Ge],[nt,Ge],"Property",new U(se,Ge));else{if(!K(se[Ge]))continue;fe=new Q(se[Ge],[nt,Ge],null,new U(se,Ge))}Fe.push(fe)}}else K(se)&&Fe.push(new Q(se,nt,null,new U(ne,nt)))}}else if(fe=te.pop(),(re=this.__execute(ce.leave,fe))!==void 0&&re!==_&&re!==C&&re!==$&&fe.ref.replace(re),this.__state!==$&&re!==$||Ye(fe),this.__state===_||re===_)return Je.root;return Je.root},R.Syntax=z,R.traverse=ve,R.replace=function(me,ce){return new B().replace(me,ce)},R.attachComments=function(me,ce,Fe){var te,ne,ue,re,fe=[];if(!me.range)throw new Error("attachComments needs range information");if(!Fe.length){if(ce.length){for(ue=0,ne=ce.length;ue<ne;ue+=1)(te=F(ce[ue])).extendedRange=[0,me.range[0]],fe.push(te);me.leadingComments=fe}return me}for(ue=0,ne=ce.length;ue<ne;ue+=1)fe.push(Ae(F(ce[ue]),Fe));return re=0,ve(me,{enter:function(Ce){for(var Ge;re<fe.length&&!((Ge=fe[re]).extendedRange[1]>Ce.range[0]);)Ge.extendedRange[1]===Ce.range[0]?(Ce.leadingComments||(Ce.leadingComments=[]),Ce.leadingComments.push(Ge),fe.splice(re,1)):re+=1;return re===fe.length?q.Break:fe[re].extendedRange[0]>Ce.range[1]?q.Skip:void 0}}),re=0,ve(me,{leave:function(Ce){for(var Ge;re<fe.length&&(Ge=fe[re],!(Ce.range[1]<Ge.extendedRange[0]));)Ce.range[1]===Ge.extendedRange[0]?(Ce.trailingComments||(Ce.trailingComments=[]),Ce.trailingComments.push(Ge),fe.splice(re,1)):re+=1;return re===fe.length?q.Break:fe[re].extendedRange[0]>Ce.range[1]?q.Skip:void 0}}),me},R.VisitorKeys=W,R.VisitorOption=q,R.Controller=B,R.cloneEnvironment=function(){return D({})},R})(w)}),l=a(function(y){y.exports&&(y.exports=function(){function w(D,R,z,q){this.message=D,this.expected=R,this.found=z,this.location=q,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,w)}return function(D,R){function z(){this.constructor=D}z.prototype=R.prototype,D.prototype=new z}(w,Error),w.buildMessage=function(D,R){var z={literal:function(C){return'"'+W(C.text)+'"'},class:function(C){var $,F="";for($=0;$<C.parts.length;$++)F+=C.parts[$]instanceof Array?_(C.parts[$][0])+"-"+_(C.parts[$][1]):_(C.parts[$]);return"["+(C.inverted?"^":"")+F+"]"},any:function(C){return"any character"},end:function(C){return"end of input"},other:function(C){return C.description}};function q(C){return C.charCodeAt(0).toString(16).toUpperCase()}function W(C){return C.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function($){return"\\x0"+q($)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function($){return"\\x"+q($)})}function _(C){return C.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function($){return"\\x0"+q($)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function($){return"\\x"+q($)})}return"Expected "+function(C){var $,F,U,Q=new Array(C.length);for($=0;$<C.length;$++)Q[$]=(U=C[$],z[U.type](U));if(Q.sort(),Q.length>0){for($=1,F=1;$<Q.length;$++)Q[$-1]!==Q[$]&&(Q[F]=Q[$],F++);Q.length=F}switch(Q.length){case 1:return Q[0];case 2:return Q[0]+" or "+Q[1];default:return Q.slice(0,-1).join(", ")+", or "+Q[Q.length-1]}}(D)+" but "+function(C){return C?'"'+W(C)+'"':"end of input"}(R)+" found."},{SyntaxError:w,parse:function(D,R){R=R!==void 0?R:{};var z,q,W,_,C={},$={start:Ze},F=Ze,U=J(" ",!1),Q=/^[^ [\],():#!=><~+.]/,B=ae([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),K=J(">",!1),X=J("~",!1),ie=J("+",!1),ve=J(",",!1),Ae=J("!",!1),me=J("*",!1),ce=J("#",!1),Fe=J("[",!1),te=J("]",!1),ne=/^[><!]/,ue=ae([">","<","!"],!1,!1),re=J("=",!1),fe=function(Se){return(Se||"")+"="},Ce=/^[><]/,Ge=ae([">","<"],!1,!1),V=J(".",!1),se=function(Se,Oe,Ne){return{type:"attribute",name:Se,operator:Oe,value:Ne}},Pe=J('"',!1),Je=/^[^\\"]/,nt=ae(["\\",'"'],!0,!1),Ye=J("\\",!1),it={type:"any"},lt=function(Se,Oe){return Se+Oe},Dt=function(Se){return{type:"literal",value:(Oe=Se.join(""),Oe.replace(/\\(.)/g,function(Ne,le){switch(le){case"b":return"\b";case"f":return"\f";case"n":return`
|
|
52
|
+
`;case"r":return"\r";case"t":return" ";case"v":return"\v";default:return le}}))};var Oe},Xe=J("'",!1),Ue=/^[^\\']/,pt=ae(["\\","'"],!0,!1),Kt=/^[0-9]/,qt=ae([["0","9"]],!1,!1),We=J("type(",!1),Qt=/^[^ )]/,Wr=ae([" ",")"],!0,!1),Ot=J(")",!1),Qe=/^[imsu]/,_r=ae(["i","m","s","u"],!1,!1),br=J("/",!1),tr=/^[^\/]/,vr=ae(["/"],!0,!1),Et=J(":not(",!1),Rt=J(":matches(",!1),gt=J(":has(",!1),It=J(":first-child",!1),ze=J(":last-child",!1),Br=J(":nth-child(",!1),Cs=J(":nth-last-child(",!1),Xt=J(":",!1),ar=J("statement",!0),Ss=J("expression",!0),Cr=J("declaration",!0),or=J("function",!0),Gr=J("pattern",!0),j=0,Sr=[{line:1,column:1}],Vt=0,hr=[],Y={};if("startRule"in R){if(!(R.startRule in $))throw new Error(`Can't start parsing from rule "`+R.startRule+'".');F=$[R.startRule]}function J(Se,Oe){return{type:"literal",text:Se,ignoreCase:Oe}}function ae(Se,Oe,Ne){return{type:"class",parts:Se,inverted:Oe,ignoreCase:Ne}}function ye(Se){var Oe,Ne=Sr[Se];if(Ne)return Ne;for(Oe=Se-1;!Sr[Oe];)Oe--;for(Ne={line:(Ne=Sr[Oe]).line,column:Ne.column};Oe<Se;)D.charCodeAt(Oe)===10?(Ne.line++,Ne.column=1):Ne.column++,Oe++;return Sr[Se]=Ne,Ne}function be(Se,Oe){var Ne=ye(Se),le=ye(Oe);return{start:{offset:Se,line:Ne.line,column:Ne.column},end:{offset:Oe,line:le.line,column:le.column}}}function ge(Se){j<Vt||(j>Vt&&(Vt=j,hr=[]),hr.push(Se))}function Ze(){var Se,Oe,Ne,le,ke=30*j+0,_e=Y[ke];return _e?(j=_e.nextPos,_e.result):(Se=j,(Oe=$e())!==C&&(Ne=st())!==C&&$e()!==C?Se=Oe=(le=Ne).length===1?le[0]:{type:"matches",selectors:le}:(j=Se,Se=C),Se===C&&(Se=j,(Oe=$e())!==C&&(Oe=void 0),Se=Oe),Y[ke]={nextPos:j,result:Se},Se)}function $e(){var Se,Oe,Ne=30*j+1,le=Y[Ne];if(le)return j=le.nextPos,le.result;for(Se=[],D.charCodeAt(j)===32?(Oe=" ",j++):(Oe=C,ge(U));Oe!==C;)Se.push(Oe),D.charCodeAt(j)===32?(Oe=" ",j++):(Oe=C,ge(U));return Y[Ne]={nextPos:j,result:Se},Se}function rt(){var Se,Oe,Ne,le=30*j+2,ke=Y[le];if(ke)return j=ke.nextPos,ke.result;if(Oe=[],Q.test(D.charAt(j))?(Ne=D.charAt(j),j++):(Ne=C,ge(B)),Ne!==C)for(;Ne!==C;)Oe.push(Ne),Q.test(D.charAt(j))?(Ne=D.charAt(j),j++):(Ne=C,ge(B));else Oe=C;return Oe!==C&&(Oe=Oe.join("")),Se=Oe,Y[le]={nextPos:j,result:Se},Se}function bt(){var Se,Oe,Ne,le=30*j+3,ke=Y[le];return ke?(j=ke.nextPos,ke.result):(Se=j,(Oe=$e())!==C?(D.charCodeAt(j)===62?(Ne=">",j++):(Ne=C,ge(K)),Ne!==C&&$e()!==C?Se=Oe="child":(j=Se,Se=C)):(j=Se,Se=C),Se===C&&(Se=j,(Oe=$e())!==C?(D.charCodeAt(j)===126?(Ne="~",j++):(Ne=C,ge(X)),Ne!==C&&$e()!==C?Se=Oe="sibling":(j=Se,Se=C)):(j=Se,Se=C),Se===C&&(Se=j,(Oe=$e())!==C?(D.charCodeAt(j)===43?(Ne="+",j++):(Ne=C,ge(ie)),Ne!==C&&$e()!==C?Se=Oe="adjacent":(j=Se,Se=C)):(j=Se,Se=C),Se===C&&(Se=j,D.charCodeAt(j)===32?(Oe=" ",j++):(Oe=C,ge(U)),Oe!==C&&(Ne=$e())!==C?Se=Oe="descendant":(j=Se,Se=C)))),Y[le]={nextPos:j,result:Se},Se)}function st(){var Se,Oe,Ne,le,ke,_e,Me,Ke,g=30*j+4,k=Y[g];if(k)return j=k.nextPos,k.result;if(Se=j,(Oe=ht())!==C){for(Ne=[],le=j,(ke=$e())!==C?(D.charCodeAt(j)===44?(_e=",",j++):(_e=C,ge(ve)),_e!==C&&(Me=$e())!==C&&(Ke=ht())!==C?le=ke=[ke,_e,Me,Ke]:(j=le,le=C)):(j=le,le=C);le!==C;)Ne.push(le),le=j,(ke=$e())!==C?(D.charCodeAt(j)===44?(_e=",",j++):(_e=C,ge(ve)),_e!==C&&(Me=$e())!==C&&(Ke=ht())!==C?le=ke=[ke,_e,Me,Ke]:(j=le,le=C)):(j=le,le=C);Ne!==C?Se=Oe=[Oe].concat(Ne.map(function(N){return N[3]})):(j=Se,Se=C)}else j=Se,Se=C;return Y[g]={nextPos:j,result:Se},Se}function ht(){var Se,Oe,Ne,le,ke,_e,Me,Ke=30*j+5,g=Y[Ke];if(g)return j=g.nextPos,g.result;if(Se=j,(Oe=xt())!==C){for(Ne=[],le=j,(ke=bt())!==C&&(_e=xt())!==C?le=ke=[ke,_e]:(j=le,le=C);le!==C;)Ne.push(le),le=j,(ke=bt())!==C&&(_e=xt())!==C?le=ke=[ke,_e]:(j=le,le=C);Ne!==C?(Me=Oe,Se=Oe=Ne.reduce(function(k,N){return{type:N[0],left:k,right:N[1]}},Me)):(j=Se,Se=C)}else j=Se,Se=C;return Y[Ke]={nextPos:j,result:Se},Se}function xt(){var Se,Oe,Ne,le,ke,_e,Me,Ke=30*j+6,g=Y[Ke];if(g)return j=g.nextPos,g.result;if(Se=j,D.charCodeAt(j)===33?(Oe="!",j++):(Oe=C,ge(Ae)),Oe===C&&(Oe=null),Oe!==C){if(Ne=[],(le=yt())!==C)for(;le!==C;)Ne.push(le),le=yt();else Ne=C;Ne!==C?(ke=Oe,Me=(_e=Ne).length===1?_e[0]:{type:"compound",selectors:_e},ke&&(Me.subject=!0),Se=Oe=Me):(j=Se,Se=C)}else j=Se,Se=C;return Y[Ke]={nextPos:j,result:Se},Se}function yt(){var Se,Oe=30*j+7,Ne=Y[Oe];return Ne?(j=Ne.nextPos,Ne.result):((Se=function(){var le,ke,_e=30*j+8,Me=Y[_e];return Me?(j=Me.nextPos,Me.result):(D.charCodeAt(j)===42?(ke="*",j++):(ke=C,ge(me)),ke!==C&&(ke={type:"wildcard",value:ke}),le=ke,Y[_e]={nextPos:j,result:le},le)}())===C&&(Se=function(){var le,ke,_e,Me=30*j+9,Ke=Y[Me];return Ke?(j=Ke.nextPos,Ke.result):(le=j,D.charCodeAt(j)===35?(ke="#",j++):(ke=C,ge(ce)),ke===C&&(ke=null),ke!==C&&(_e=rt())!==C?le=ke={type:"identifier",value:_e}:(j=le,le=C),Y[Me]={nextPos:j,result:le},le)}())===C&&(Se=function(){var le,ke,_e,Me,Ke=30*j+10,g=Y[Ke];return g?(j=g.nextPos,g.result):(le=j,D.charCodeAt(j)===91?(ke="[",j++):(ke=C,ge(Fe)),ke!==C&&$e()!==C&&(_e=function(){var k,N,H,Z,oe=30*j+14,xe=Y[oe];return xe?(j=xe.nextPos,xe.result):(k=j,(N=Re())!==C&&$e()!==C&&(H=function(){var he,Te,Le,De=30*j+12,He=Y[De];return He?(j=He.nextPos,He.result):(he=j,D.charCodeAt(j)===33?(Te="!",j++):(Te=C,ge(Ae)),Te===C&&(Te=null),Te!==C?(D.charCodeAt(j)===61?(Le="=",j++):(Le=C,ge(re)),Le!==C?(Te=fe(Te),he=Te):(j=he,he=C)):(j=he,he=C),Y[De]={nextPos:j,result:he},he)}())!==C&&$e()!==C?((Z=function(){var he,Te,Le,De,He,ct=30*j+18,St=Y[ct];if(St)return j=St.nextPos,St.result;if(he=j,D.substr(j,5)==="type("?(Te="type(",j+=5):(Te=C,ge(We)),Te!==C)if($e()!==C){if(Le=[],Qt.test(D.charAt(j))?(De=D.charAt(j),j++):(De=C,ge(Wr)),De!==C)for(;De!==C;)Le.push(De),Qt.test(D.charAt(j))?(De=D.charAt(j),j++):(De=C,ge(Wr));else Le=C;Le!==C&&(De=$e())!==C?(D.charCodeAt(j)===41?(He=")",j++):(He=C,ge(Ot)),He!==C?(Te={type:"type",value:Le.join("")},he=Te):(j=he,he=C)):(j=he,he=C)}else j=he,he=C;else j=he,he=C;return Y[ct]={nextPos:j,result:he},he}())===C&&(Z=function(){var he,Te,Le,De,He,ct,St=30*j+20,d=Y[St];if(d)return j=d.nextPos,d.result;if(he=j,D.charCodeAt(j)===47?(Te="/",j++):(Te=C,ge(br)),Te!==C){if(Le=[],tr.test(D.charAt(j))?(De=D.charAt(j),j++):(De=C,ge(vr)),De!==C)for(;De!==C;)Le.push(De),tr.test(D.charAt(j))?(De=D.charAt(j),j++):(De=C,ge(vr));else Le=C;Le!==C?(D.charCodeAt(j)===47?(De="/",j++):(De=C,ge(br)),De!==C?((He=function(){var A,O,G=30*j+19,ee=Y[G];if(ee)return j=ee.nextPos,ee.result;if(A=[],Qe.test(D.charAt(j))?(O=D.charAt(j),j++):(O=C,ge(_r)),O!==C)for(;O!==C;)A.push(O),Qe.test(D.charAt(j))?(O=D.charAt(j),j++):(O=C,ge(_r));else A=C;return Y[G]={nextPos:j,result:A},A}())===C&&(He=null),He!==C?(ct=He,Te={type:"regexp",value:new RegExp(Le.join(""),ct?ct.join(""):"")},he=Te):(j=he,he=C)):(j=he,he=C)):(j=he,he=C)}else j=he,he=C;return Y[St]={nextPos:j,result:he},he}()),Z!==C?(N=se(N,H,Z),k=N):(j=k,k=C)):(j=k,k=C),k===C&&(k=j,(N=Re())!==C&&$e()!==C&&(H=function(){var he,Te,Le,De=30*j+11,He=Y[De];return He?(j=He.nextPos,He.result):(he=j,ne.test(D.charAt(j))?(Te=D.charAt(j),j++):(Te=C,ge(ue)),Te===C&&(Te=null),Te!==C?(D.charCodeAt(j)===61?(Le="=",j++):(Le=C,ge(re)),Le!==C?(Te=fe(Te),he=Te):(j=he,he=C)):(j=he,he=C),he===C&&(Ce.test(D.charAt(j))?(he=D.charAt(j),j++):(he=C,ge(Ge))),Y[De]={nextPos:j,result:he},he)}())!==C&&$e()!==C?((Z=function(){var he,Te,Le,De,He,ct,St=30*j+15,d=Y[St];if(d)return j=d.nextPos,d.result;if(he=j,D.charCodeAt(j)===34?(Te='"',j++):(Te=C,ge(Pe)),Te!==C){for(Le=[],Je.test(D.charAt(j))?(De=D.charAt(j),j++):(De=C,ge(nt)),De===C&&(De=j,D.charCodeAt(j)===92?(He="\\",j++):(He=C,ge(Ye)),He!==C?(D.length>j?(ct=D.charAt(j),j++):(ct=C,ge(it)),ct!==C?(He=lt(He,ct),De=He):(j=De,De=C)):(j=De,De=C));De!==C;)Le.push(De),Je.test(D.charAt(j))?(De=D.charAt(j),j++):(De=C,ge(nt)),De===C&&(De=j,D.charCodeAt(j)===92?(He="\\",j++):(He=C,ge(Ye)),He!==C?(D.length>j?(ct=D.charAt(j),j++):(ct=C,ge(it)),ct!==C?(He=lt(He,ct),De=He):(j=De,De=C)):(j=De,De=C));Le!==C?(D.charCodeAt(j)===34?(De='"',j++):(De=C,ge(Pe)),De!==C?(Te=Dt(Le),he=Te):(j=he,he=C)):(j=he,he=C)}else j=he,he=C;if(he===C)if(he=j,D.charCodeAt(j)===39?(Te="'",j++):(Te=C,ge(Xe)),Te!==C){for(Le=[],Ue.test(D.charAt(j))?(De=D.charAt(j),j++):(De=C,ge(pt)),De===C&&(De=j,D.charCodeAt(j)===92?(He="\\",j++):(He=C,ge(Ye)),He!==C?(D.length>j?(ct=D.charAt(j),j++):(ct=C,ge(it)),ct!==C?(He=lt(He,ct),De=He):(j=De,De=C)):(j=De,De=C));De!==C;)Le.push(De),Ue.test(D.charAt(j))?(De=D.charAt(j),j++):(De=C,ge(pt)),De===C&&(De=j,D.charCodeAt(j)===92?(He="\\",j++):(He=C,ge(Ye)),He!==C?(D.length>j?(ct=D.charAt(j),j++):(ct=C,ge(it)),ct!==C?(He=lt(He,ct),De=He):(j=De,De=C)):(j=De,De=C));Le!==C?(D.charCodeAt(j)===39?(De="'",j++):(De=C,ge(Xe)),De!==C?(Te=Dt(Le),he=Te):(j=he,he=C)):(j=he,he=C)}else j=he,he=C;return Y[St]={nextPos:j,result:he},he}())===C&&(Z=function(){var he,Te,Le,De,He,ct,St,d=30*j+16,A=Y[d];if(A)return j=A.nextPos,A.result;for(he=j,Te=j,Le=[],Kt.test(D.charAt(j))?(De=D.charAt(j),j++):(De=C,ge(qt));De!==C;)Le.push(De),Kt.test(D.charAt(j))?(De=D.charAt(j),j++):(De=C,ge(qt));if(Le!==C?(D.charCodeAt(j)===46?(De=".",j++):(De=C,ge(V)),De!==C?Te=Le=[Le,De]:(j=Te,Te=C)):(j=Te,Te=C),Te===C&&(Te=null),Te!==C){if(Le=[],Kt.test(D.charAt(j))?(De=D.charAt(j),j++):(De=C,ge(qt)),De!==C)for(;De!==C;)Le.push(De),Kt.test(D.charAt(j))?(De=D.charAt(j),j++):(De=C,ge(qt));else Le=C;Le!==C?(ct=Le,St=(He=Te)?[].concat.apply([],He).join(""):"",Te={type:"literal",value:parseFloat(St+ct.join(""))},he=Te):(j=he,he=C)}else j=he,he=C;return Y[d]={nextPos:j,result:he},he}())===C&&(Z=function(){var he,Te,Le=30*j+17,De=Y[Le];return De?(j=De.nextPos,De.result):((Te=rt())!==C&&(Te={type:"literal",value:Te}),he=Te,Y[Le]={nextPos:j,result:he},he)}()),Z!==C?(N=se(N,H,Z),k=N):(j=k,k=C)):(j=k,k=C),k===C&&(k=j,(N=Re())!==C&&(N={type:"attribute",name:N}),k=N)),Y[oe]={nextPos:j,result:k},k)}())!==C&&$e()!==C?(D.charCodeAt(j)===93?(Me="]",j++):(Me=C,ge(te)),Me!==C?le=ke=_e:(j=le,le=C)):(j=le,le=C),Y[Ke]={nextPos:j,result:le},le)}())===C&&(Se=function(){var le,ke,_e,Me,Ke,g,k,N,H=30*j+21,Z=Y[H];if(Z)return j=Z.nextPos,Z.result;if(le=j,D.charCodeAt(j)===46?(ke=".",j++):(ke=C,ge(V)),ke!==C)if((_e=rt())!==C){for(Me=[],Ke=j,D.charCodeAt(j)===46?(g=".",j++):(g=C,ge(V)),g!==C&&(k=rt())!==C?Ke=g=[g,k]:(j=Ke,Ke=C);Ke!==C;)Me.push(Ke),Ke=j,D.charCodeAt(j)===46?(g=".",j++):(g=C,ge(V)),g!==C&&(k=rt())!==C?Ke=g=[g,k]:(j=Ke,Ke=C);Me!==C?(N=_e,ke={type:"field",name:Me.reduce(function(oe,xe){return oe+xe[0]+xe[1]},N)},le=ke):(j=le,le=C)}else j=le,le=C;else j=le,le=C;return Y[H]={nextPos:j,result:le},le}())===C&&(Se=function(){var le,ke,_e,Me,Ke=30*j+22,g=Y[Ke];return g?(j=g.nextPos,g.result):(le=j,D.substr(j,5)===":not("?(ke=":not(",j+=5):(ke=C,ge(Et)),ke!==C&&$e()!==C&&(_e=st())!==C&&$e()!==C?(D.charCodeAt(j)===41?(Me=")",j++):(Me=C,ge(Ot)),Me!==C?le=ke={type:"not",selectors:_e}:(j=le,le=C)):(j=le,le=C),Y[Ke]={nextPos:j,result:le},le)}())===C&&(Se=function(){var le,ke,_e,Me,Ke=30*j+23,g=Y[Ke];return g?(j=g.nextPos,g.result):(le=j,D.substr(j,9)===":matches("?(ke=":matches(",j+=9):(ke=C,ge(Rt)),ke!==C&&$e()!==C&&(_e=st())!==C&&$e()!==C?(D.charCodeAt(j)===41?(Me=")",j++):(Me=C,ge(Ot)),Me!==C?le=ke={type:"matches",selectors:_e}:(j=le,le=C)):(j=le,le=C),Y[Ke]={nextPos:j,result:le},le)}())===C&&(Se=function(){var le,ke,_e,Me,Ke=30*j+24,g=Y[Ke];return g?(j=g.nextPos,g.result):(le=j,D.substr(j,5)===":has("?(ke=":has(",j+=5):(ke=C,ge(gt)),ke!==C&&$e()!==C&&(_e=st())!==C&&$e()!==C?(D.charCodeAt(j)===41?(Me=")",j++):(Me=C,ge(Ot)),Me!==C?le=ke={type:"has",selectors:_e}:(j=le,le=C)):(j=le,le=C),Y[Ke]={nextPos:j,result:le},le)}())===C&&(Se=function(){var le,ke,_e=30*j+25,Me=Y[_e];return Me?(j=Me.nextPos,Me.result):(D.substr(j,12)===":first-child"?(ke=":first-child",j+=12):(ke=C,ge(It)),ke!==C&&(ke=at(1)),le=ke,Y[_e]={nextPos:j,result:le},le)}())===C&&(Se=function(){var le,ke,_e=30*j+26,Me=Y[_e];return Me?(j=Me.nextPos,Me.result):(D.substr(j,11)===":last-child"?(ke=":last-child",j+=11):(ke=C,ge(ze)),ke!==C&&(ke=Ve(1)),le=ke,Y[_e]={nextPos:j,result:le},le)}())===C&&(Se=function(){var le,ke,_e,Me,Ke,g=30*j+27,k=Y[g];if(k)return j=k.nextPos,k.result;if(le=j,D.substr(j,11)===":nth-child("?(ke=":nth-child(",j+=11):(ke=C,ge(Br)),ke!==C)if($e()!==C){if(_e=[],Kt.test(D.charAt(j))?(Me=D.charAt(j),j++):(Me=C,ge(qt)),Me!==C)for(;Me!==C;)_e.push(Me),Kt.test(D.charAt(j))?(Me=D.charAt(j),j++):(Me=C,ge(qt));else _e=C;_e!==C&&(Me=$e())!==C?(D.charCodeAt(j)===41?(Ke=")",j++):(Ke=C,ge(Ot)),Ke!==C?(ke=at(parseInt(_e.join(""),10)),le=ke):(j=le,le=C)):(j=le,le=C)}else j=le,le=C;else j=le,le=C;return Y[g]={nextPos:j,result:le},le}())===C&&(Se=function(){var le,ke,_e,Me,Ke,g=30*j+28,k=Y[g];if(k)return j=k.nextPos,k.result;if(le=j,D.substr(j,16)===":nth-last-child("?(ke=":nth-last-child(",j+=16):(ke=C,ge(Cs)),ke!==C)if($e()!==C){if(_e=[],Kt.test(D.charAt(j))?(Me=D.charAt(j),j++):(Me=C,ge(qt)),Me!==C)for(;Me!==C;)_e.push(Me),Kt.test(D.charAt(j))?(Me=D.charAt(j),j++):(Me=C,ge(qt));else _e=C;_e!==C&&(Me=$e())!==C?(D.charCodeAt(j)===41?(Ke=")",j++):(Ke=C,ge(Ot)),Ke!==C?(ke=Ve(parseInt(_e.join(""),10)),le=ke):(j=le,le=C)):(j=le,le=C)}else j=le,le=C;else j=le,le=C;return Y[g]={nextPos:j,result:le},le}())===C&&(Se=function(){var le,ke,_e,Me=30*j+29,Ke=Y[Me];return Ke?(j=Ke.nextPos,Ke.result):(le=j,D.charCodeAt(j)===58?(ke=":",j++):(ke=C,ge(Xt)),ke!==C?(D.substr(j,9).toLowerCase()==="statement"?(_e=D.substr(j,9),j+=9):(_e=C,ge(ar)),_e===C&&(D.substr(j,10).toLowerCase()==="expression"?(_e=D.substr(j,10),j+=10):(_e=C,ge(Ss)),_e===C&&(D.substr(j,11).toLowerCase()==="declaration"?(_e=D.substr(j,11),j+=11):(_e=C,ge(Cr)),_e===C&&(D.substr(j,8).toLowerCase()==="function"?(_e=D.substr(j,8),j+=8):(_e=C,ge(or)),_e===C&&(D.substr(j,7).toLowerCase()==="pattern"?(_e=D.substr(j,7),j+=7):(_e=C,ge(Gr)))))),_e!==C?le=ke={type:"class",name:_e}:(j=le,le=C)):(j=le,le=C),Y[Me]={nextPos:j,result:le},le)}()),Y[Oe]={nextPos:j,result:Se},Se)}function Re(){var Se,Oe,Ne,le,ke,_e,Me,Ke,g=30*j+13,k=Y[g];if(k)return j=k.nextPos,k.result;if(Se=j,(Oe=rt())!==C){for(Ne=[],le=j,D.charCodeAt(j)===46?(ke=".",j++):(ke=C,ge(V)),ke!==C&&(_e=rt())!==C?le=ke=[ke,_e]:(j=le,le=C);le!==C;)Ne.push(le),le=j,D.charCodeAt(j)===46?(ke=".",j++):(ke=C,ge(V)),ke!==C&&(_e=rt())!==C?le=ke=[ke,_e]:(j=le,le=C);Ne!==C?(Me=Oe,Ke=Ne,Se=Oe=[].concat.apply([Me],Ke).join("")):(j=Se,Se=C)}else j=Se,Se=C;return Y[g]={nextPos:j,result:Se},Se}function at(Se){return{type:"nth-child",index:{type:"literal",value:Se}}}function Ve(Se){return{type:"nth-last-child",index:{type:"literal",value:Se}}}if((z=F())!==C&&j===D.length)return z;throw z!==C&&j<D.length&&ge({type:"end"}),q=hr,W=Vt<D.length?D.charAt(Vt):null,_=Vt<D.length?be(Vt,Vt+1):be(Vt,Vt),new w(w.buildMessage(q,W),q,W,_)}}}())});function u(y,w,D,R){if(!w)return!0;if(!y)return!1;switch(D||(D=[]),w.type){case"wildcard":return!0;case"identifier":return w.value.toLowerCase()===y.type.toLowerCase();case"field":var z=w.name.split("."),q=D[z.length-1];return function me(ce,Fe,te){if(te.length===0)return ce===Fe;if(Fe==null)return!1;var ne=Fe[te[0]],ue=te.slice(1);if(Array.isArray(ne)){var re,fe=i(ne);try{for(fe.s();!(re=fe.n()).done;)if(me(ce,re.value,ue))return!0}catch(Ce){fe.e(Ce)}finally{fe.f()}return!1}return me(ce,ne,ue)}(y,q,z);case"matches":var W,_=i(w.selectors);try{for(_.s();!(W=_.n()).done;){var C=W.value;if(u(y,C,D,R))return!0}}catch(me){_.e(me)}finally{_.f()}return!1;case"compound":var $,F=i(w.selectors);try{for(F.s();!($=F.n()).done;){var U=$.value;if(!u(y,U,D,R))return!1}}catch(me){F.e(me)}finally{F.f()}return!0;case"not":var Q,B=i(w.selectors);try{for(B.s();!(Q=B.n()).done;){var K=Q.value;if(u(y,K,D,R))return!1}}catch(me){B.e(me)}finally{B.f()}return!0;case"has":var X=function(){var me,ce=[],Fe=i(w.selectors);try{var te=function(){var ne=me.value,ue=[];o.traverse(y,{enter:function(re,fe){fe!=null&&ue.unshift(fe),u(re,ne,ue,R)&&ce.push(re)},leave:function(){ue.shift()},keys:R&&R.visitorKeys,fallback:R&&R.fallback||"iteration"})};for(Fe.s();!(me=Fe.n()).done;)te()}catch(ne){Fe.e(ne)}finally{Fe.f()}return{v:ce.length!==0}}();if(t(X)==="object")return X.v;case"child":return!!u(y,w.right,D,R)&&u(D[0],w.left,D.slice(1),R);case"descendant":if(u(y,w.right,D,R)){for(var ie=0,ve=D.length;ie<ve;++ie)if(u(D[ie],w.left,D.slice(ie+1),R))return!0}return!1;case"attribute":var Ae=function(me,ce){var Fe,te=i(ce.split("."));try{for(te.s();!(Fe=te.n()).done;){var ne=Fe.value;if(me==null)return me;me=me[ne]}}catch(ue){te.e(ue)}finally{te.f()}return me}(y,w.name);switch(w.operator){case void 0:return Ae!=null;case"=":switch(w.value.type){case"regexp":return typeof Ae=="string"&&w.value.value.test(Ae);case"literal":return"".concat(w.value.value)==="".concat(Ae);case"type":return w.value.value===t(Ae)}throw new Error("Unknown selector value type: ".concat(w.value.type));case"!=":switch(w.value.type){case"regexp":return!w.value.value.test(Ae);case"literal":return"".concat(w.value.value)!=="".concat(Ae);case"type":return w.value.value!==t(Ae)}throw new Error("Unknown selector value type: ".concat(w.value.type));case"<=":return Ae<=w.value.value;case"<":return Ae<w.value.value;case">":return Ae>w.value.value;case">=":return Ae>=w.value.value}throw new Error("Unknown operator: ".concat(w.operator));case"sibling":return u(y,w.right,D,R)&&h(y,w.left,D,"LEFT_SIDE",R)||w.left.subject&&u(y,w.left,D,R)&&h(y,w.right,D,"RIGHT_SIDE",R);case"adjacent":return u(y,w.right,D,R)&&f(y,w.left,D,"LEFT_SIDE",R)||w.right.subject&&u(y,w.left,D,R)&&f(y,w.right,D,"RIGHT_SIDE",R);case"nth-child":return u(y,w.right,D,R)&&m(y,D,function(){return w.index.value-1},R);case"nth-last-child":return u(y,w.right,D,R)&&m(y,D,function(me){return me-w.index.value},R);case"class":switch(w.name.toLowerCase()){case"statement":if(y.type.slice(-9)==="Statement")return!0;case"declaration":return y.type.slice(-11)==="Declaration";case"pattern":if(y.type.slice(-7)==="Pattern")return!0;case"expression":return y.type.slice(-10)==="Expression"||y.type.slice(-7)==="Literal"||y.type==="Identifier"&&(D.length===0||D[0].type!=="MetaProperty")||y.type==="MetaProperty";case"function":return y.type==="FunctionDeclaration"||y.type==="FunctionExpression"||y.type==="ArrowFunctionExpression"}throw new Error("Unknown class name: ".concat(w.name))}throw new Error("Unknown selector type: ".concat(w.type))}function c(y,w){var D=y.type;return w&&w.visitorKeys&&w.visitorKeys[D]?w.visitorKeys[D]:o.VisitorKeys[D]?o.VisitorKeys[D]:w&&typeof w.fallback=="function"?w.fallback(y):Object.keys(y).filter(function(R){return R!=="type"})}function p(y){return y!==null&&t(y)==="object"&&typeof y.type=="string"}function h(y,w,D,R,z){var q=e(D,1)[0];if(!q)return!1;var W,_=i(c(q,z));try{for(_.s();!(W=_.n()).done;){var C=q[W.value];if(Array.isArray(C)){var $=C.indexOf(y);if($<0)continue;var F=void 0,U=void 0;R==="LEFT_SIDE"?(F=0,U=$):(F=$+1,U=C.length);for(var Q=F;Q<U;++Q)if(p(C[Q])&&u(C[Q],w,D,z))return!0}}}catch(B){_.e(B)}finally{_.f()}return!1}function f(y,w,D,R,z){var q=e(D,1)[0];if(!q)return!1;var W,_=i(c(q,z));try{for(_.s();!(W=_.n()).done;){var C=q[W.value];if(Array.isArray(C)){var $=C.indexOf(y);if($<0)continue;if(R==="LEFT_SIDE"&&$>0&&p(C[$-1])&&u(C[$-1],w,D,z)||R==="RIGHT_SIDE"&&$<C.length-1&&p(C[$+1])&&u(C[$+1],w,D,z))return!0}}}catch(F){_.e(F)}finally{_.f()}return!1}function m(y,w,D,R){var z=e(w,1)[0];if(!z)return!1;var q,W=i(c(z,R));try{for(W.s();!(q=W.n()).done;){var _=z[q.value];if(Array.isArray(_)){var C=_.indexOf(y);if(C>=0&&C===D(_.length))return!0}}}catch($){W.e($)}finally{W.f()}return!1}function x(y,w){if(y==null||t(y)!="object")return[];w==null&&(w=y);for(var D=y.subject?[w]:[],R=0,z=function(C){for(var $=[],F=Object.keys(C),U=0;U<F.length;U++)$.push([F[U],C[F[U]]]);return $}(y);R<z.length;R++){var q=e(z[R],2),W=q[0],_=q[1];D.push.apply(D,r(x(_,W==="left"?_:w)))}return D}function E(y,w,D,R){if(w){var z=[],q=x(w);o.traverse(y,{enter:function(W,_){if(_!=null&&z.unshift(_),u(W,w,z,R))if(q.length)for(var C=0,$=q.length;C<$;++C){u(W,q[C],z,R)&&D(W,_,z);for(var F=0,U=z.length;F<U;++F){var Q=z.slice(F+1);u(z[F],q[C],Q,R)&&D(z[F],_,Q)}}else D(W,_,z)},leave:function(){z.shift()},keys:R&&R.visitorKeys,fallback:R&&R.fallback||"iteration"})}}function S(y,w,D){var R=[];return E(y,w,function(z){R.push(z)},D),R}function T(y){return l.parse(y)}function I(y,w,D){return S(y,T(w),D)}return I.parse=T,I.match=S,I.traverse=E,I.matches=u,I.query=I,I})});var y1=M((OZ,m1)=>{b();v();"use strict";var d1=h1();function Lq(...t){return[...new Set(t.flat())]}function Nq(...t){if(t.length===0)return[];let e=[...new Set(t[0])];for(let r of t.slice(1))e=e.filter(n=>r.includes(n));return e}function ml(t){switch(t.type){case"identifier":return[t.value];case"matches":{let e=t.selectors.map(ml);return e.every(Boolean)?Lq(...e):null}case"compound":{let e=t.selectors.map(ml).filter(r=>r);return e.length?Nq(...e):null}case"child":case"descendant":case"sibling":case"adjacent":return ml(t.right);case"class":return t.name==="function"?["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]:null;default:return null}}function dl(t){switch(t.type){case"child":case"descendant":case"sibling":case"adjacent":return dl(t.left)+dl(t.right);case"compound":case"not":case"matches":return t.selectors.reduce((e,r)=>e+dl(r),0);case"attribute":case"field":case"nth-child":case"nth-last-child":return 1;default:return 0}}function gl(t){switch(t.type){case"child":case"descendant":case"sibling":case"adjacent":return gl(t.left)+gl(t.right);case"compound":case"not":case"matches":return t.selectors.reduce((e,r)=>e+gl(r),0);case"identifier":return 1;default:return 0}}function la(t,e){return t.attributeCount-e.attributeCount||t.identifierCount-e.identifierCount||(t.rawSelector<=e.rawSelector?-1:1)}function Mq(t){try{return d1.parse(t.replace(/:exit$/u,""))}catch(e){throw e.location&&e.location.start&&typeof e.location.start.offset=="number"?new SyntaxError(`Syntax error in selector "${t}" at position ${e.location.start.offset}: ${e.message}`):e}}var Lf=new Map;function jq(t){if(Lf.has(t))return Lf.get(t);let e=Mq(t),r={rawSelector:t,isExit:t.endsWith(":exit"),parsedSelector:e,listenerTypes:ml(e),attributeCount:dl(e),identifierCount:gl(e)};return Lf.set(t,r),r}var g1=class{constructor(e,r){this.emitter=e,this.esqueryOptions=r,this.currentAncestry=[],this.enterSelectorsByNodeType=new Map,this.exitSelectorsByNodeType=new Map,this.anyTypeEnterSelectors=[],this.anyTypeExitSelectors=[],e.eventNames().forEach(n=>{let s=jq(n);if(s.listenerTypes){let a=s.isExit?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType;s.listenerTypes.forEach(o=>{a.has(o)||a.set(o,[]),a.get(o).push(s)});return}(s.isExit?this.anyTypeExitSelectors:this.anyTypeEnterSelectors).push(s)}),this.anyTypeEnterSelectors.sort(la),this.anyTypeExitSelectors.sort(la),this.enterSelectorsByNodeType.forEach(n=>n.sort(la)),this.exitSelectorsByNodeType.forEach(n=>n.sort(la))}applySelector(e,r){d1.matches(e,r.parsedSelector,this.currentAncestry,this.esqueryOptions)&&this.emitter.emit(r.rawSelector,e)}applySelectors(e,r){let n=(r?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType).get(e.type)||[],s=r?this.anyTypeExitSelectors:this.anyTypeEnterSelectors,i=0,a=0;for(;i<n.length||a<s.length;)i>=n.length||a<s.length&&la(s[a],n[i])<0?this.applySelector(e,s[a++]):this.applySelector(e,n[i++])}enterNode(e){e.parent&&this.currentAncestry.unshift(e.parent),this.applySelectors(e,!1)}leaveNode(e){this.applySelectors(e,!0),this.currentAncestry.shift()}};m1.exports=g1});var b1=M((RZ,x1)=>{b();v();"use strict";function E1(t,e){return{range:[t,t],text:e}}var qq=Object.freeze({insertTextAfter(t,e){return this.insertTextAfterRange(t.range,e)},insertTextAfterRange(t,e){return E1(t[1],e)},insertTextBefore(t,e){return this.insertTextBeforeRange(t.range,e)},insertTextBeforeRange(t,e){return E1(t[0],e)},replaceText(t,e){return this.replaceTextRange(t.range,e)},replaceTextRange(t,e){return{range:t,text:e}},remove(t){return this.removeRange(t.range)},removeRange(t){return{range:t,text:""}}});x1.exports=qq});var C1=M((LZ,v1)=>{b();v();"use strict";v1.exports=(t,e)=>e?t.replace(/\{\{([^{}]+?)\}\}/gu,(r,n)=>{let s=n.trim();return s in e?e[s]:r}):t});var D1=M((NZ,S1)=>{b();v();"use strict";var yl=fn(),Vq=b1(),A1=C1();function Uq(...t){return t.length===1?Object.assign({},t[0]):typeof t[1]=="string"?{node:t[0],message:t[1],data:t[2],fix:t[3]}:{node:t[0],loc:t[1],message:t[2],data:t[3],fix:t[4]}}function $q(t){t.node?yl(typeof t.node=="object","Node must be an object"):yl(t.loc,"Node must be provided when reporting error if location is not provided")}function Wq(t){return t.loc?t.loc.start?t.loc:{start:t.loc,end:null}:t.node.loc}function w1(t){t&&yl(t.range&&typeof t.range[0]=="number"&&typeof t.range[1]=="number",`Fix has invalid range: ${JSON.stringify(t,null,2)}`)}function Gq(t,e){return t.range[0]-e.range[0]||t.range[1]-e.range[1]}function zq(t,e){for(let o of t)w1(o);if(t.length===0)return null;if(t.length===1)return t[0];t.sort(Gq);let r=e.text,n=t[0].range[0],s=t[t.length-1].range[1],i="",a=Number.MIN_SAFE_INTEGER;for(let o of t)yl(o.range[0]>=a,"Fix objects must not be overlapped in a report."),o.range[0]>=0&&(i+=r.slice(Math.max(0,n,a),o.range[0])),i+=o.text,a=o.range[1];return i+=r.slice(Math.max(0,n,a),s),{range:[n,s],text:i}}function k1(t,e){if(typeof t.fix!="function")return null;let r=t.fix(Vq);return r&&Symbol.iterator in r?zq(Array.from(r),e):(w1(r),r)}function Hq(t,e,r){return!t.suggest||!Array.isArray(t.suggest)?[]:t.suggest.map(n=>{let s=n.desc||r[n.messageId];return{...n,desc:A1(s,n.data),fix:k1(n,e)}}).filter(({fix:n})=>n)}function Kq(t){let e={ruleId:t.ruleId,severity:t.severity,message:t.message,line:t.loc.start.line,column:t.loc.start.column+1,nodeType:t.node&&t.node.type||null};return t.messageId&&(e.messageId=t.messageId),t.loc.end&&(e.endLine=t.loc.end.line,e.endColumn=t.loc.end.column+1),t.fix&&(e.fix=t.fix),t.suggestions&&t.suggestions.length>0&&(e.suggestions=t.suggestions),e}function Yq(t,e){t&&Array.isArray(t)&&t.forEach(r=>{if(r.messageId){let{messageId:n}=r;if(!e)throw new TypeError(`context.report() called with a suggest option with a messageId '${n}', but no messages were present in the rule metadata.`);if(!e[n])throw new TypeError(`context.report() called with a suggest option with a messageId '${n}' which is not present in the 'messages' config: ${JSON.stringify(e,null,2)}`);if(r.desc)throw new TypeError("context.report() called with a suggest option that defines both a 'messageId' and an 'desc'. Please only pass one.")}else if(!r.desc)throw new TypeError("context.report() called with a suggest option that doesn't have either a `desc` or `messageId`");if(typeof r.fix!="function")throw new TypeError(`context.report() called with a suggest option without a fix function. See: ${r}`)})}S1.exports=function(e){return(...r)=>{let n=Uq(...r),s=e.messageIds;$q(n);let i;if(n.messageId){if(!s)throw new TypeError("context.report() called with a messageId, but no messages were present in the rule metadata.");let a=n.messageId;if(n.message)throw new TypeError("context.report() called with a message and a messageId. Please only pass one.");if(!s||!Object.prototype.hasOwnProperty.call(s,a))throw new TypeError(`context.report() called with a messageId of '${a}' which is not present in the 'messages' config: ${JSON.stringify(s,null,2)}`);i=s[a]}else if(n.message)i=n.message;else throw new TypeError("Missing `message` property in report() call; add a message that describes the linting problem.");return Yq(n.suggest,s),Kq({ruleId:e.ruleId,severity:e.severity,node:n.node,message:A1(i,n.data),messageId:n.messageId,loc:Wq(n),fix:e.disableFixes?null:k1(n,e.sourceCode),suggestions:e.disableFixes?[]:Hq(n,e.sourceCode,s)})}}});var P1=M((MZ,T1)=>{b();v();"use strict";var F1=En()("eslint:rules"),ri=class extends Map{constructor(e){let r=e.length;super(F1.enabled?e.map(([n,s])=>{let i=null;return[n,()=>(i||(F1("Loading rule %o (remaining=%d)",n,--r),i=s()),i)]}):e);Object.defineProperty(ri.prototype,"set",{configurable:!0,value:void 0})}get(e){let r=super.get(e);return r&&r()}*values(){for(let e of super.values())yield e()}*entries(){for(let[e,r]of super.entries())yield[e,r()]}forEach(e,r){for(let[n,s]of super.entries())e.call(r,s(),n,this)}};Object.defineProperties(ri.prototype,{clear:{configurable:!0,value:void 0},delete:{configurable:!0,value:void 0},[Symbol.iterator]:{configurable:!0,writable:!0,value:ri.prototype.entries}});T1.exports={LazyLoadingRuleMap:ri}});var _1=M((jZ,I1)=>{b();v();(function(){"use strict";function t(a){if(a==null)return!1;switch(a.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function e(a){if(a==null)return!1;switch(a.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function r(a){if(a==null)return!1;switch(a.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function n(a){return r(a)||a!=null&&a.type==="FunctionDeclaration"}function s(a){switch(a.type){case"IfStatement":return a.alternate!=null?a.alternate:a.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return a.body}return null}function i(a){var o;if(a.type!=="IfStatement"||a.alternate==null)return!1;o=a.consequent;do{if(o.type==="IfStatement"&&o.alternate==null)return!0;o=s(o)}while(o);return!1}I1.exports={isExpression:t,isStatement:r,isIterationStatement:e,isSourceElement:n,isProblematicIfStatement:i,trailingStatement:s}})()});var Nf=M((qZ,B1)=>{b();v();(function(){"use strict";var t,e,r,n,s,i;e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function a(E){return 48<=E&&E<=57}function o(E){return 48<=E&&E<=57||97<=E&&E<=102||65<=E&&E<=70}function l(E){return E>=48&&E<=55}r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function u(E){return E===32||E===9||E===11||E===12||E===160||E>=5760&&r.indexOf(E)>=0}function c(E){return E===10||E===13||E===8232||E===8233}function p(E){if(E<=65535)return String.fromCharCode(E);var S=String.fromCharCode(Math.floor((E-65536)/1024)+55296),T=String.fromCharCode((E-65536)%1024+56320);return S+T}for(n=new Array(128),i=0;i<128;++i)n[i]=i>=97&&i<=122||i>=65&&i<=90||i===36||i===95;for(s=new Array(128),i=0;i<128;++i)s[i]=i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||i===36||i===95;function h(E){return E<128?n[E]:e.NonAsciiIdentifierStart.test(p(E))}function f(E){return E<128?s[E]:e.NonAsciiIdentifierPart.test(p(E))}function m(E){return E<128?n[E]:t.NonAsciiIdentifierStart.test(p(E))}function x(E){return E<128?s[E]:t.NonAsciiIdentifierPart.test(p(E))}B1.exports={isDecimalDigit:a,isHexDigit:o,isOctalDigit:l,isWhiteSpace:u,isLineTerminator:c,isIdentifierStartES5:h,isIdentifierPartES5:f,isIdentifierStartES6:m,isIdentifierPartES6:x}})()});var R1=M((VZ,O1)=>{b();v();(function(){"use strict";var t=Nf();function e(h){switch(h){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function r(h,f){return!f&&h==="yield"?!1:n(h,f)}function n(h,f){if(f&&e(h))return!0;switch(h.length){case 2:return h==="if"||h==="in"||h==="do";case 3:return h==="var"||h==="for"||h==="new"||h==="try";case 4:return h==="this"||h==="else"||h==="case"||h==="void"||h==="with"||h==="enum";case 5:return h==="while"||h==="break"||h==="catch"||h==="throw"||h==="const"||h==="yield"||h==="class"||h==="super";case 6:return h==="return"||h==="typeof"||h==="delete"||h==="switch"||h==="export"||h==="import";case 7:return h==="default"||h==="finally"||h==="extends";case 8:return h==="function"||h==="continue"||h==="debugger";case 10:return h==="instanceof";default:return!1}}function s(h,f){return h==="null"||h==="true"||h==="false"||r(h,f)}function i(h,f){return h==="null"||h==="true"||h==="false"||n(h,f)}function a(h){return h==="eval"||h==="arguments"}function o(h){var f,m,x;if(h.length===0||(x=h.charCodeAt(0),!t.isIdentifierStartES5(x)))return!1;for(f=1,m=h.length;f<m;++f)if(x=h.charCodeAt(f),!t.isIdentifierPartES5(x))return!1;return!0}function l(h,f){return(h-55296)*1024+(f-56320)+65536}function u(h){var f,m,x,E,S;if(h.length===0)return!1;for(S=t.isIdentifierStartES6,f=0,m=h.length;f<m;++f){if(x=h.charCodeAt(f),55296<=x&&x<=56319){if(++f,f>=m||(E=h.charCodeAt(f),!(56320<=E&&E<=57343)))return!1;x=l(x,E)}if(!S(x))return!1;S=t.isIdentifierPartES6}return!0}function c(h,f){return o(h)&&!s(h,f)}function p(h,f){return u(h)&&!i(h,f)}O1.exports={isKeywordES5:r,isKeywordES6:n,isReservedWordES5:s,isReservedWordES6:i,isRestrictedWord:a,isIdentifierNameES5:o,isIdentifierNameES6:u,isIdentifierES5:c,isIdentifierES6:p}})()});var ua=M(xl=>{b();v();(function(){"use strict";xl.ast=_1(),xl.code=Nf(),xl.keyword=R1()})()});var pe=M(($Z,Tr)=>{b();v();"use strict";var Jq=ua(),Mf=$i(),Qq=na(),{breakableTypePattern:Xq,createGlobalLinebreakMatcher:Zq,lineBreakPattern:eV,shebangPattern:tV}=Yi(),L1=/^(?:Function(?:Declaration|Expression)|ArrowFunctionExpression)$/u,rV=/^(?:DoWhile|For|ForIn|ForOf|While)Statement$/u,sV=/Array$/u,nV=/^(?:every|filter|find|findIndex|forEach|map|some)$/u,iV=/^(?:bind|call|apply)$/u,N1=/^[\s*]*@this/mu,aV=/^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u,oV=new Set([`\r
|
|
53
|
+
`,"\r",`
|
|
54
|
+
`,"\u2028","\u2029"]),lV=new Set(["Program","BlockStatement","StaticBlock","SwitchCase"]),M1=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,uV=/^(?:[^\\]|\\.)*\\(?:[1-9]|0[0-9])/su,cV=new Set(["&&=","||=","??="]);function fV(t,e,r){let n=t.identifier,s=e===0||r[e-1].identifier!==n;return n&&t.init===!1&&t.isWrite()&&s}function jf(t){return t[0]!==t[0].toLocaleLowerCase()}function j1(t){return t.id&&jf(t.id.name)}function q1(t){for(let e=t;e;e=e.parent)if(L1.test(e.type))return e;return null}function qf(t){return Boolean(t&&L1.test(t.type))}function V1(t){return Boolean(t&&rV.test(t.type))}function pV(t){for(let e=t;e&&!qf(e);e=e.parent)if(V1(e))return!0;return!1}function Vf(t){return t.type==="Literal"&&t.value===null&&!t.regex&&!t.bigint}function ca(t){return Vf(t)||t.type==="Identifier"&&t.name==="undefined"||t.type==="UnaryExpression"&&t.operator==="void"}function El(t){return t.parent.type==="CallExpression"&&t.parent.callee===t}function U1(t){switch(t.type){case"Literal":if(t.value===null){if(Vf(t))return String(t.value);if(t.regex)return`/${t.regex.pattern}/${t.regex.flags}`;if(t.bigint)return t.bigint}else return String(t.value);break;case"TemplateLiteral":if(t.expressions.length===0&&t.quasis.length===1)return t.quasis[0].value.cooked;break}return null}function si(t){let e;switch(t&&t.type){case"ChainExpression":return si(t.expression);case"Property":case"PropertyDefinition":case"MethodDefinition":e=t.key;break;case"MemberExpression":e=t.property;break}return e?e.type==="Identifier"&&!t.computed?e.name:U1(e):null}function $1(t){return t&&t.type==="ChainExpression"?t.expression:t}function W1(t,e){return typeof e=="string"?t===e:e.test(t)}function G1(t,e){return t.type==="Identifier"&&W1(t.name,e)}function fa(t,e,r){let n=$1(t);if(n.type!=="MemberExpression"||e&&!G1(n.object,e))return!1;if(r){let s=si(n);if(typeof s!="string"||!W1(s,r))return!1}return!0}function z1(t,e){return t.regex||e.regex?Boolean(t.regex&&e.regex&&t.regex.pattern===e.regex.pattern&&t.regex.flags===e.regex.flags):t.bigint||e.bigint?t.bigint===e.bigint:t.value===e.value}function Dn(t,e,r=!1){if(t.type!==e.type)return t.type==="ChainExpression"?Dn(t.expression,e,r):e.type==="ChainExpression"?Dn(t,e.expression,r):!1;switch(t.type){case"Super":case"ThisExpression":return!0;case"Identifier":case"PrivateIdentifier":return t.name===e.name;case"Literal":return z1(t,e);case"ChainExpression":return Dn(t.expression,e.expression,r);case"MemberExpression":{if(!r){let n=si(t);if(n!==null)return Dn(t.object,e.object,r)&&n===si(e)}return t.computed===e.computed&&Dn(t.object,e.object,r)&&Dn(t.property,e.property,r)}default:return!1}}function hV(t){return fa(t,"Reflect","apply")}function H1(t){return fa(t,sV,"from")}function mV(t){return fa(t,null,nV)}function qr(t){return e=>!t(e)}function dV(t,e){let r=e.getJSDocComment(t);return r&&N1.test(r.value)?!0:e.getCommentsBefore(t).some(n=>N1.test(n.value))}function gV(t,e){let r=t.getTokenBefore(e),n=t.getTokenAfter(e);return Boolean(r&&n)&&r.value==="("&&r.range[1]<=e.range[0]&&n.value===")"&&n.range[0]>=e.range[1]}function yV(t){return t.value==="="&&t.type==="Punctuator"}function K1(t){return t.value==="=>"&&t.type==="Punctuator"}function Y1(t){return t.value===","&&t.type==="Punctuator"}function J1(t){return t.value==="."&&t.type==="Punctuator"}function Q1(t){return t.value==="?."&&t.type==="Punctuator"}function X1(t){return t.value===";"&&t.type==="Punctuator"}function Uf(t){return t.value===":"&&t.type==="Punctuator"}function pa(t){return t.value==="("&&t.type==="Punctuator"}function Z1(t){return t.value===")"&&t.type==="Punctuator"}function eC(t){return t.value==="["&&t.type==="Punctuator"}function tC(t){return t.value==="]"&&t.type==="Punctuator"}function rC(t){return t.value==="{"&&t.type==="Punctuator"}function sC(t){return t.value==="}"&&t.type==="Punctuator"}function xV(t){return t.type==="Line"||t.type==="Block"||t.type==="Shebang"}function EV(t){return t.type==="Keyword"}function nC(t,e){if(t.type==="ArrowFunctionExpression"&&t.params.length===1){let r=e.getFirstToken(t.params[0]),n=e.getTokenBefore(r);return pa(n)?n:r}return t.id?e.getTokenAfter(t.id,pa):e.getFirstToken(t,pa)}function bV(t,e,r){let n=r.getTokens(t),s=r.getTokens(e);if(n.length!==s.length)return!1;for(let i=0;i<n.length;++i)if(n[i].type!==s[i].type||n[i].value!==s[i].value)return!1;return!0}function $f(t){return t.type==="LogicalExpression"&&(t.operator==="&&"||t.operator==="||")}function Wf(t){return t.type==="LogicalExpression"&&t.operator==="??"}function vV(t,e){return $f(t)&&Wf(e)||Wf(t)&&$f(e)}function CV(t){return cV.has(t)}function SV(t,e){return t.test?e.getTokenAfter(t.test,Uf):e.getFirstToken(t,1)}function AV(t){return t.type==="Identifier"?t.name:t.value}Tr.exports={COMMENTS_IGNORE_PATTERN:aV,LINEBREAKS:oV,LINEBREAK_MATCHER:eV,SHEBANG_MATCHER:tV,STATEMENT_LIST_PARENTS:lV,isTokenOnSameLine(t,e){return t.loc.end.line===e.loc.start.line},isNullOrUndefined:ca,isCallee:El,isES5Constructor:j1,getUpperFunction:q1,isFunction:qf,isLoop:V1,isInLoop:pV,isArrayFromMethod:H1,isParenthesised:gV,createGlobalLinebreakMatcher:Zq,equalTokens:bV,isArrowToken:K1,isClosingBraceToken:sC,isClosingBracketToken:tC,isClosingParenToken:Z1,isColonToken:Uf,isCommaToken:Y1,isCommentToken:xV,isDotToken:J1,isQuestionDotToken:Q1,isKeywordToken:EV,isNotClosingBraceToken:qr(sC),isNotClosingBracketToken:qr(tC),isNotClosingParenToken:qr(Z1),isNotColonToken:qr(Uf),isNotCommaToken:qr(Y1),isNotDotToken:qr(J1),isNotQuestionDotToken:qr(Q1),isNotOpeningBraceToken:qr(rC),isNotOpeningBracketToken:qr(eC),isNotOpeningParenToken:qr(pa),isNotSemicolonToken:qr(X1),isOpeningBraceToken:rC,isOpeningBracketToken:eC,isOpeningParenToken:pa,isSemicolonToken:X1,isEqToken:yV,isStringLiteral(t){return t.type==="Literal"&&typeof t.value=="string"||t.type==="TemplateLiteral"},isBreakableStatement(t){return Xq.test(t.type)},getModifyingReferences(t){return t.filter(fV)},isSurroundedBy(t,e){return t[0]===e&&t[t.length-1]===e},isDirectiveComment(t){let e=t.value.trim();return t.type==="Line"&&e.indexOf("eslint-")===0||t.type==="Block"&&(e.indexOf("global ")===0||e.indexOf("eslint ")===0||e.indexOf("eslint-")===0)},getTrailingStatement:Jq.ast.trailingStatement,getVariableByName(t,e){let r=t;for(;r;){let n=r.set.get(e);if(n)return n;r=r.upper}return null},isDefaultThisBinding(t,e,{capIsConstructor:r=!0}={}){if(t.parent.type==="PropertyDefinition"&&t.parent.value===t||t.type==="StaticBlock"||r&&j1(t)||dV(t,e))return!1;let n=t.id===null,s=t;for(;s;){let i=s.parent;switch(i.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":s=i;break;case"ReturnStatement":{let a=q1(i);if(a===null||!El(a))return!0;s=a.parent;break}case"ArrowFunctionExpression":if(s!==i.body||!El(i))return!0;s=i.parent;break;case"Property":case"PropertyDefinition":case"MethodDefinition":return i.value!==s;case"AssignmentExpression":case"AssignmentPattern":return!(i.left.type==="MemberExpression"||r&&n&&i.left.type==="Identifier"&&jf(i.left.name));case"VariableDeclarator":return!(r&&n&&i.init===s&&i.id.type==="Identifier"&&jf(i.id.name));case"MemberExpression":if(i.object===s&&fa(i,null,iV)){let a=i.parent.type==="ChainExpression"?i.parent:i;return!(El(a)&&a.parent.arguments.length>=1&&!ca(a.parent.arguments[0]))}return!0;case"CallExpression":return hV(i.callee)?i.arguments.length!==3||i.arguments[0]!==s||ca(i.arguments[1]):H1(i.callee)?i.arguments.length!==3||i.arguments[1]!==s||ca(i.arguments[2]):mV(i.callee)?i.arguments.length!==2||i.arguments[0]!==s||ca(i.arguments[1]):!0;default:return!0}}return!0},getPrecedence(t){switch(t.type){case"SequenceExpression":return 0;case"AssignmentExpression":case"ArrowFunctionExpression":case"YieldExpression":return 1;case"ConditionalExpression":return 3;case"LogicalExpression":switch(t.operator){case"||":case"??":return 4;case"&&":return 5}case"BinaryExpression":switch(t.operator){case"|":return 6;case"^":return 7;case"&":return 8;case"==":case"!=":case"===":case"!==":return 9;case"<":case"<=":case">":case">=":case"in":case"instanceof":return 10;case"<<":case">>":case">>>":return 11;case"+":case"-":return 12;case"*":case"/":case"%":return 13;case"**":return 15}case"UnaryExpression":case"AwaitExpression":return 16;case"UpdateExpression":return 17;case"CallExpression":case"ChainExpression":case"ImportExpression":return 18;case"NewExpression":return 19;default:return 20}},isEmptyBlock(t){return Boolean(t&&t.type==="BlockStatement"&&t.body.length===0)},isEmptyFunction(t){return qf(t)&&Tr.exports.isEmptyBlock(t.body)},getDirectivePrologue(t){let e=[];if(t.type==="Program"||t.type==="FunctionDeclaration"||t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement"){let r=t.type==="Program"?t.body:t.body.body;for(let n of r)if(n.type==="ExpressionStatement"&&n.expression.type==="Literal")e.push(n);else break}return e},isDecimalInteger(t){return t.type==="Literal"&&typeof t.value=="number"&&M1.test(t.raw)},isDecimalIntegerNumericToken(t){return t.type==="Numeric"&&M1.test(t.value)},getFunctionNameWithKind(t){let e=t.parent,r=[];if((e.type==="MethodDefinition"||e.type==="PropertyDefinition")&&(e.static&&r.push("static"),!e.computed&&e.key.type==="PrivateIdentifier"&&r.push("private")),t.async&&r.push("async"),t.generator&&r.push("generator"),e.type==="Property"||e.type==="MethodDefinition"){if(e.kind==="constructor")return"constructor";e.kind==="get"?r.push("getter"):e.kind==="set"?r.push("setter"):r.push("method")}else e.type==="PropertyDefinition"?r.push("method"):(t.type==="ArrowFunctionExpression"&&r.push("arrow"),r.push("function"));if(e.type==="Property"||e.type==="MethodDefinition"||e.type==="PropertyDefinition")if(!e.computed&&e.key.type==="PrivateIdentifier")r.push(`#${e.key.name}`);else{let n=si(e);n!==null?r.push(`'${n}'`):t.id&&r.push(`'${t.id.name}'`)}else t.id&&r.push(`'${t.id.name}'`);return r.join(" ")},getFunctionHeadLoc(t,e){let r=t.parent,n=null,s=null;if(r.type==="Property"||r.type==="MethodDefinition"||r.type==="PropertyDefinition")n=r.loc.start,s=nC(t,e).loc.start;else if(t.type==="ArrowFunctionExpression"){let i=e.getTokenBefore(t.body,K1);n=i.loc.start,s=i.loc.end}else n=t.loc.start,s=nC(t,e).loc.start;return{start:Object.assign({},n),end:Object.assign({},s)}},getNextLocation(t,{line:e,column:r}){return r<t.lines[e-1].length?{line:e,column:r+1}:e<t.lines.length?{line:e+1,column:0}:null},getParenthesisedText(t,e){let r=t.getFirstToken(e),n=t.getLastToken(e);for(;t.getTokenBefore(r)&&t.getTokenBefore(r).type==="Punctuator"&&t.getTokenBefore(r).value==="("&&t.getTokenAfter(n)&&t.getTokenAfter(n).type==="Punctuator"&&t.getTokenAfter(n).value===")";)r=t.getTokenBefore(r),n=t.getTokenAfter(n);return t.getText().slice(r.range[0],n.range[1])},couldBeError(t){switch(t.type){case"Identifier":case"CallExpression":case"NewExpression":case"MemberExpression":case"TaggedTemplateExpression":case"YieldExpression":case"AwaitExpression":case"ChainExpression":return!0;case"AssignmentExpression":return["=","&&="].includes(t.operator)?Tr.exports.couldBeError(t.right):["||=","??="].includes(t.operator)?Tr.exports.couldBeError(t.left)||Tr.exports.couldBeError(t.right):!1;case"SequenceExpression":{let e=t.expressions;return e.length!==0&&Tr.exports.couldBeError(e[e.length-1])}case"LogicalExpression":return t.operator==="&&"?Tr.exports.couldBeError(t.right):Tr.exports.couldBeError(t.left)||Tr.exports.couldBeError(t.right);case"ConditionalExpression":return Tr.exports.couldBeError(t.consequent)||Tr.exports.couldBeError(t.alternate);default:return!1}},isNumericLiteral(t){return t.type==="Literal"&&(typeof t.value=="number"||Boolean(t.bigint))},canTokensBeAdjacent(t,e){let r={ecmaVersion:Mf.latestEcmaVersion,comment:!0,range:!0},n;if(typeof t=="string"){let i;try{i=Mf.tokenize(t,r)}catch{return!1}let a=i.comments;if(n=i[i.length-1],a.length){let o=a[a.length-1];o.range[0]>n.range[0]&&(n=o)}}else n=t;if(n.type==="Shebang")return!1;let s;if(typeof e=="string"){let i;try{i=Mf.tokenize(e,r)}catch{return!1}let a=i.comments;if(s=i[0],a.length){let o=a[0];o.range[0]<s.range[0]&&(s=o)}}else s=e;if(n.type==="Punctuator"||s.type==="Punctuator"){if(n.type==="Punctuator"&&s.type==="Punctuator"){let i=new Set(["+","++"]),a=new Set(["-","--"]);return!(i.has(n.value)&&i.has(s.value)||a.has(n.value)&&a.has(s.value))}return n.type==="Punctuator"&&n.value==="/"?!["Block","Line","RegularExpression"].includes(s.type):!0}return!!(n.type==="String"||s.type==="String"||n.type==="Template"||s.type==="Template"||n.type!=="Numeric"&&s.type==="Numeric"&&s.value.startsWith(".")||n.type==="Block"||s.type==="Block"||s.type==="Line"||s.type==="PrivateIdentifier")},getNameLocationInGlobalDirectiveComment(t,e,r){let n=new RegExp(`[\\s,]${Qq(r)}(?:$|[\\s,:])`,"gu");n.lastIndex=e.value.indexOf("global")+6;let s=n.exec(e.value),i=t.getLocFromIndex(e.range[0]+"/*".length+(s?s.index+1:0)),a={line:i.line,column:i.column+(s?r.length:1)};return{start:i,end:a}},hasOctalOrNonOctalDecimalEscapeSequence(t){return uV.test(t)},isLogicalExpression:$f,isCoalesceExpression:Wf,isMixedLogicalAndCoalesceExpressions:vV,isNullLiteral:Vf,getStaticStringValue:U1,getStaticPropertyName:si,skipChainExpression:$1,isSpecificId:G1,isSpecificMemberAccess:fa,equalLiteralValue:z1,isSameReference:Dn,isLogicalAssignmentOperator:CV,getSwitchCaseColonToken:SV,getModuleExportName:AV}});var aC=M((WZ,iC)=>{b();v();"use strict";var ni=pe();function wV(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let n=t[r],s=e[r];if(n.type!==s.type||n.value!==s.value)return!1}return!0}function kV(t,e){return typeof t=="string"&&typeof e=="string"?t===e:Array.isArray(t)&&Array.isArray(e)?wV(t,e):!1}function DV(t){return t.kind==="get"||t.kind==="set"}function bl(t,e,r,n){let s=t.parent;return s.type==="CallExpression"&&ni.isSpecificMemberAccess(s.callee,r,n)&&s.arguments[e]===t}function TV(t){if(bl(t,2,"Object","defineProperty")||bl(t,2,"Reflect","defineProperty"))return!0;let e=t.parent.parent;return e.type==="ObjectExpression"&&(bl(e,1,"Object","create")||bl(e,1,"Object","defineProperties"))}iC.exports={meta:{type:"suggestion",docs:{description:"enforce getter and setter pairs in objects and classes",recommended:!1,url:"https://eslint.org/docs/rules/accessor-pairs"},schema:[{type:"object",properties:{getWithoutSet:{type:"boolean",default:!1},setWithoutGet:{type:"boolean",default:!0},enforceForClassMembers:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{missingGetterInPropertyDescriptor:"Getter is not present in property descriptor.",missingSetterInPropertyDescriptor:"Setter is not present in property descriptor.",missingGetterInObjectLiteral:"Getter is not present for {{ name }}.",missingSetterInObjectLiteral:"Setter is not present for {{ name }}.",missingGetterInClass:"Getter is not present for class {{ name }}.",missingSetterInClass:"Setter is not present for class {{ name }}."}},create(t){let e=t.options[0]||{},r=e.getWithoutSet===!0,n=e.setWithoutGet!==!1,s=e.enforceForClassMembers!==!1,i=t.getSourceCode();function a(E,S){E.type==="Property"?t.report({node:E,messageId:`${S}InObjectLiteral`,loc:ni.getFunctionHeadLoc(E.value,i),data:{name:ni.getFunctionNameWithKind(E.value)}}):E.type==="MethodDefinition"?t.report({node:E,messageId:`${S}InClass`,loc:ni.getFunctionHeadLoc(E.value,i),data:{name:ni.getFunctionNameWithKind(E.value)}}):t.report({node:E,messageId:`${S}InPropertyDescriptor`})}function o(E,S){for(let T of E)a(T,S)}function l(E){let S=ni.getStaticPropertyName(E);return{key:S!==null?S:i.getTokens(E.key),getters:E.kind==="get"?[E]:[],setters:E.kind==="set"?[E]:[]}}function u(E,S){let T=E.find(I=>kV(I.key,S.key));return T?(T.getters.push(...S.getters),T.setters.push(...S.setters)):E.push(S),E}function c(E){let S=E.filter(DV).map(l).reduce(u,[]);for(let{getters:T,setters:I}of S)n&&I.length&&!T.length&&o(I,"missingGetter"),r&&T.length&&!I.length&&o(T,"missingSetter")}function p(E){c(E.properties.filter(S=>S.type==="Property"))}function h(E){let S=E.properties.filter(y=>y.type==="Property"&&y.kind==="init"&&!y.computed).map(({key:y})=>y.name),T=S.includes("get"),I=S.includes("set");n&&I&&!T&&a(E,"missingGetter"),r&&T&&!I&&a(E,"missingSetter")}function f(E){p(E),TV(E)&&h(E)}function m(E){let S=E.body.filter(T=>T.type==="MethodDefinition");c(S.filter(T=>T.static)),c(S.filter(T=>!T.static))}let x={};return(n||r)&&(x.ObjectExpression=f,s&&(x.ClassBody=m)),x}}});var lC=M((GZ,oC)=>{b();v();"use strict";var ii=pe();oC.exports={meta:{type:"layout",docs:{description:"enforce linebreaks after opening and before closing array brackets",recommended:!1,url:"https://eslint.org/docs/rules/array-bracket-newline"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never","consistent"]},{type:"object",properties:{multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}],messages:{unexpectedOpeningLinebreak:"There should be no linebreak after '['.",unexpectedClosingLinebreak:"There should be no linebreak before ']'.",missingOpeningLinebreak:"A linebreak is required after '['.",missingClosingLinebreak:"A linebreak is required before ']'."}},create(t){let e=t.getSourceCode();function r(u){let c=!1,p=!1,h=0;return u?u==="consistent"?(c=!0,h=Number.POSITIVE_INFINITY):u==="always"||u.minItems===0?h=0:u==="never"?h=Number.POSITIVE_INFINITY:(p=Boolean(u.multiline),h=u.minItems||Number.POSITIVE_INFINITY):(c=!1,p=!0,h=Number.POSITIVE_INFINITY),{consistent:c,multiline:p,minItems:h}}function n(u){let c=r(u);return{ArrayExpression:c,ArrayPattern:c}}function s(u,c){t.report({node:u,loc:c.loc,messageId:"unexpectedOpeningLinebreak",fix(p){let h=e.getTokenAfter(c,{includeComments:!0});return ii.isCommentToken(h)?null:p.removeRange([c.range[1],h.range[0]])}})}function i(u,c){t.report({node:u,loc:c.loc,messageId:"unexpectedClosingLinebreak",fix(p){let h=e.getTokenBefore(c,{includeComments:!0});return ii.isCommentToken(h)?null:p.removeRange([h.range[1],c.range[0]])}})}function a(u,c){t.report({node:u,loc:c.loc,messageId:"missingOpeningLinebreak",fix(p){return p.insertTextAfter(c,`
|
|
55
|
+
`)}})}function o(u,c){t.report({node:u,loc:c.loc,messageId:"missingClosingLinebreak",fix(p){return p.insertTextBefore(c,`
|
|
56
|
+
`)}})}function l(u){let c=u.elements,h=n(t.options[0])[u.type],f=e.getFirstToken(u),m=e.getLastToken(u),x=e.getTokenAfter(f,{includeComments:!0}),E=e.getTokenBefore(m,{includeComments:!0}),S=e.getTokenAfter(f),T=e.getTokenBefore(m);c.length>=h.minItems||h.multiline&&c.length>0&&x.loc.start.line!==E.loc.end.line||c.length===0&&x.type==="Block"&&x.loc.start.line!==E.loc.end.line&&x===E||h.consistent&&f.loc.end.line!==S.loc.start.line?(ii.isTokenOnSameLine(f,S)&&a(u,f),ii.isTokenOnSameLine(T,m)&&o(u,m)):(ii.isTokenOnSameLine(f,S)||s(u,f),ii.isTokenOnSameLine(T,m)||i(u,m))}return{ArrayPattern:l,ArrayExpression:l}}}});var fC=M((zZ,uC)=>{b();v();"use strict";var cC=pe();uC.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing inside array brackets",recommended:!1,url:"https://eslint.org/docs/rules/array-bracket-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{singleValue:{type:"boolean"},objectsInArrays:{type:"boolean"},arraysInArrays:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'."}},create(t){let e=t.options[0]==="always",r=t.getSourceCode();function n(h){return t.options[1]?t.options[1][h]===!e:!1}let s={spaced:e,singleElementException:n("singleValue"),objectsInArraysException:n("objectsInArrays"),arraysInArraysException:n("arraysInArrays")};function i(h,f){let m=r.getTokenAfter(f);t.report({node:h,loc:{start:f.loc.end,end:m.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:f.value},fix(x){return x.removeRange([f.range[1],m.range[0]])}})}function a(h,f){let m=r.getTokenBefore(f);t.report({node:h,loc:{start:m.loc.end,end:f.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:f.value},fix(x){return x.removeRange([m.range[1],f.range[0]])}})}function o(h,f){t.report({node:h,loc:f.loc,messageId:"missingSpaceAfter",data:{tokenValue:f.value},fix(m){return m.insertTextAfter(f," ")}})}function l(h,f){t.report({node:h,loc:f.loc,messageId:"missingSpaceBefore",data:{tokenValue:f.value},fix(m){return m.insertTextBefore(f," ")}})}function u(h){return h&&(h.type==="ObjectExpression"||h.type==="ObjectPattern")}function c(h){return h&&(h.type==="ArrayExpression"||h.type==="ArrayPattern")}function p(h){if(s.spaced&&h.elements.length===0)return;let f=r.getFirstToken(h),m=r.getFirstToken(h,1),x=h.typeAnnotation?r.getTokenBefore(h.typeAnnotation):r.getLastToken(h),E=r.getTokenBefore(x),S=h.elements[0],T=h.elements[h.elements.length-1],I=s.objectsInArraysException&&u(S)||s.arraysInArraysException&&c(S)||s.singleElementException&&h.elements.length===1?!s.spaced:s.spaced,y=s.objectsInArraysException&&u(T)||s.arraysInArraysException&&c(T)||s.singleElementException&&h.elements.length===1?!s.spaced:s.spaced;cC.isTokenOnSameLine(f,m)&&(I&&!r.isSpaceBetweenTokens(f,m)&&o(h,f),!I&&r.isSpaceBetweenTokens(f,m)&&i(h,f)),f!==E&&cC.isTokenOnSameLine(E,x)&&(y&&!r.isSpaceBetweenTokens(E,x)&&l(h,x),!y&&r.isSpaceBetweenTokens(E,x)&&a(h,x))}return{ArrayPattern:p,ArrayExpression:p}}}});var mC=M((HZ,pC)=>{b();v();"use strict";var Ms=pe(),FV=/^(?:Arrow)?FunctionExpression$/u,PV=/^(?:every|filter|find(?:Index)?|flatMap|forEach|map|reduce(?:Right)?|some|sort)$/u;function IV(t){return t.reachable}function _V(t){return Ms.isSpecificMemberAccess(t,null,PV)}function hC(t){return["from","of","isArray"].includes(t)?"Array.".concat(t):"Array.prototype.".concat(t)}function BV(t){let e=t;for(;e;){let r=e.parent;switch(r.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":e=r;break;case"ReturnStatement":{let n=Ms.getUpperFunction(r);if(n===null||!Ms.isCallee(n))return null;e=n.parent;break}case"CallExpression":return Ms.isArrayFromMethod(r.callee)&&r.arguments.length>=2&&r.arguments[1]===e?"from":_V(r.callee)&&r.arguments.length>=1&&r.arguments[0]===e?Ms.getStaticPropertyName(r.callee):null;default:return null}}return null}pC.exports={meta:{type:"problem",docs:{description:"enforce `return` statements in callbacks of array methods",recommended:!1,url:"https://eslint.org/docs/rules/array-callback-return"},schema:[{type:"object",properties:{allowImplicit:{type:"boolean",default:!1},checkForEach:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{expectedAtEnd:"{{arrayMethodName}}() expects a value to be returned at the end of {{name}}.",expectedInside:"{{arrayMethodName}}() expects a return value from {{name}}.",expectedReturnValue:"{{arrayMethodName}}() expects a return value from {{name}}.",expectedNoReturnValue:"{{arrayMethodName}}() expects no useless return value from {{name}}."}},create(t){let e=t.options[0]||{allowImplicit:!1,checkForEach:!1},r=t.getSourceCode(),n={arrayMethodName:null,upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null};function s(i){if(!n.shouldCheck)return;let a=null;if(n.arrayMethodName==="forEach"?e.checkForEach&&i.type==="ArrowFunctionExpression"&&i.expression&&(a="expectedNoReturnValue"):i.body.type==="BlockStatement"&&n.codePath.currentSegments.some(IV)&&(a=n.hasReturn?"expectedAtEnd":"expectedInside"),a){let o=Ms.getFunctionNameWithKind(i);t.report({node:i,loc:Ms.getFunctionHeadLoc(i,r),messageId:a,data:{name:o,arrayMethodName:hC(n.arrayMethodName)}})}}return{onCodePathStart(i,a){let o=null;FV.test(a.type)&&(o=BV(a)),n={arrayMethodName:o,upper:n,codePath:i,hasReturn:!1,shouldCheck:o&&!a.async&&!a.generator,node:a}},onCodePathEnd(){n=n.upper},ReturnStatement(i){if(!n.shouldCheck)return;n.hasReturn=!0;let a=null;n.arrayMethodName==="forEach"?e.checkForEach&&i.argument&&(a="expectedNoReturnValue"):!e.allowImplicit&&!i.argument&&(a="expectedReturnValue"),a&&t.report({node:i,messageId:a,data:{name:Ms.getFunctionNameWithKind(n.node),arrayMethodName:hC(n.arrayMethodName)}})},"FunctionExpression:exit":s,"ArrowFunctionExpression:exit":s}}}});var gC=M((KZ,dC)=>{b();v();"use strict";var js=pe();dC.exports={meta:{type:"layout",docs:{description:"enforce line breaks after each array element",recommended:!1,url:"https://eslint.org/docs/rules/array-element-newline"},fixable:"whitespace",schema:{definitions:{basicConfig:{oneOf:[{enum:["always","never","consistent"]},{type:"object",properties:{multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}},items:[{oneOf:[{$ref:"#/definitions/basicConfig"},{type:"object",properties:{ArrayExpression:{$ref:"#/definitions/basicConfig"},ArrayPattern:{$ref:"#/definitions/basicConfig"}},additionalProperties:!1,minProperties:1}]}]},messages:{unexpectedLineBreak:"There should be no linebreak here.",missingLineBreak:"There should be a linebreak after this element."}},create(t){let e=t.getSourceCode();function r(o){let l=!1,u=!1,c,p=o||"always";return!p||p==="always"||p.minItems===0?c=0:p==="never"?c=Number.POSITIVE_INFINITY:p==="consistent"?(l=!0,c=Number.POSITIVE_INFINITY):(u=Boolean(p.multiline),c=p.minItems||Number.POSITIVE_INFINITY),{consistent:l,multiline:u,minItems:c}}function n(o){if(o&&(o.ArrayExpression||o.ArrayPattern)){let u,c;return o.ArrayExpression&&(u=r(o.ArrayExpression)),o.ArrayPattern&&(c=r(o.ArrayPattern)),{ArrayExpression:u,ArrayPattern:c}}let l=r(o);return{ArrayExpression:l,ArrayPattern:l}}function s(o){let l=e.getTokenBefore(o,{includeComments:!0});t.report({loc:{start:l.loc.end,end:o.loc.start},messageId:"unexpectedLineBreak",fix(u){if(js.isCommentToken(l))return null;if(!js.isTokenOnSameLine(l,o))return u.replaceTextRange([l.range[1],o.range[0]]," ");let c=e.getTokenBefore(l,{includeComments:!0});return js.isCommentToken(c)?null:u.replaceTextRange([c.range[1],l.range[0]],"")}})}function i(o){let l=e.getTokenBefore(o,{includeComments:!0});t.report({loc:{start:l.loc.end,end:o.loc.start},messageId:"missingLineBreak",fix(u){return u.replaceTextRange([l.range[1],o.range[0]],`
|
|
57
|
+
`)}})}function a(o){let l=o.elements,c=n(t.options[0])[o.type];if(!c)return;let p=!1;c.multiline&&(p=l.filter(m=>m!==null).some(m=>m.loc.start.line!==m.loc.end.line));let h=o.elements.map((m,x)=>{let E=l[x-1];if(x===0||m===null||E===null)return!1;let S=e.getFirstTokenBetween(E,m,js.isCommaToken),T=e.getTokenBefore(S),I=e.getTokenAfter(S);return!js.isTokenOnSameLine(T,I)}).filter(m=>m===!0).length,f=l.length>=c.minItems||c.multiline&&p||c.consistent&&h>0&&h<o.elements.length;l.forEach((m,x)=>{let E=l[x-1];if(x===0||m===null||E===null)return;let S=e.getFirstTokenBetween(E,m,js.isCommaToken),T=e.getTokenBefore(S),I=e.getTokenAfter(S);f?js.isTokenOnSameLine(T,I)&&i(I):js.isTokenOnSameLine(T,I)||s(I)})}return{ArrayPattern:a,ArrayExpression:a}}}});var xC=M((YZ,yC)=>{b();v();"use strict";var ys=pe();yC.exports={meta:{type:"suggestion",docs:{description:"require braces around arrow function bodies",recommended:!1,url:"https://eslint.org/docs/rules/arrow-body-style"},schema:{anyOf:[{type:"array",items:[{enum:["always","never"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["as-needed"]},{type:"object",properties:{requireReturnForObjectLiteral:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},fixable:"code",messages:{unexpectedOtherBlock:"Unexpected block statement surrounding arrow body.",unexpectedEmptyBlock:"Unexpected block statement surrounding arrow body; put a value of `undefined` immediately after the `=>`.",unexpectedObjectBlock:"Unexpected block statement surrounding arrow body; parenthesize the returned value and move it immediately after the `=>`.",unexpectedSingleBlock:"Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>`.",expectedBlock:"Expected block statement surrounding arrow body."}},create(t){let e=t.options,r=e[0]==="always",n=!e[0]||e[0]==="as-needed",s=e[0]==="never",i=e[1]&&e[1].requireReturnForObjectLiteral,a=t.getSourceCode(),o=null;function l(h){return h&&h.type==="Punctuator"&&/^[([/`+-]/u.test(h.value)}function u(h){let f=h;for(;!ys.isParenthesised(a,f);)f=f.parent;return a.getTokenAfter(f)}function c(h){return h&&h.parent?h.parent.type==="ForStatement"&&h.parent.init===h?!0:c(h.parent):!1}function p(h){let f=h.body;if(f.type==="BlockStatement"){let m=f.body;if(m.length!==1&&!s||n&&i&&m[0].type==="ReturnStatement"&&m[0].argument&&m[0].argument.type==="ObjectExpression")return;if(s||n&&m[0].type==="ReturnStatement"){let x;m.length===0?x="unexpectedEmptyBlock":m.length>1?x="unexpectedOtherBlock":m[0].argument===null?x="unexpectedSingleBlock":ys.isOpeningBraceToken(a.getFirstToken(m[0],{skip:1}))?x="unexpectedObjectBlock":x="unexpectedSingleBlock",t.report({node:h,loc:f.loc,messageId:x,fix(E){let S=[];if(m.length!==1||m[0].type!=="ReturnStatement"||!m[0].argument||l(a.getTokenAfter(f)))return S;let T=a.getFirstToken(f),I=a.getLastToken(f),y=a.getFirstToken(m[0],1),w=a.getLastToken(m[0]);return a.commentsExistBetween(T,y)||a.commentsExistBetween(w,I)?S.push(E.remove(T),E.remove(I),E.remove(a.getTokenAfter(T))):S.push(E.removeRange([T.range[0],y.range[0]]),E.removeRange([w.range[1],I.range[1]])),(ys.isOpeningBraceToken(y)||m[0].argument.type==="SequenceExpression"||o.hasInOperator&&c(h))&&(ys.isParenthesised(a,m[0].argument)||S.push(E.insertTextBefore(y,"("),E.insertTextAfter(w,")"))),ys.isSemicolonToken(w)&&S.push(E.remove(w)),S}})}}else(r||n&&i&&f.type==="ObjectExpression")&&t.report({node:h,loc:f.loc,messageId:"expectedBlock",fix(m){let x=[],E=a.getTokenBefore(f,ys.isArrowToken),[S,T]=a.getTokensAfter(E,{count:2}),I=a.getLastToken(h),y=null;if(ys.isOpeningParenToken(S)&&ys.isOpeningBraceToken(T)){let w=a.getNodeByRangeIndex(T.range[0]);w.type==="ObjectExpression"&&(y=w)}if(y){let w=S,D=T;ys.isTokenOnSameLine(w,D)?x.push(m.replaceText(w,"{return ")):x.push(m.replaceText(w,"{"),m.insertTextBefore(D,"return ")),x.push(m.remove(u(y))),x.push(m.insertTextAfter(I,"}"))}else x.push(m.insertTextBefore(S,"{return ")),x.push(m.insertTextAfter(I,"}"));return x}})}return{"BinaryExpression[operator='in']"(){let h=o;for(;h;)h.hasInOperator=!0,h=h.upper},ArrowFunctionExpression(){o={upper:o,hasInOperator:!1}},"ArrowFunctionExpression:exit"(h){p(h),o=o.upper}}}}});var bC=M((JZ,EC)=>{b();v();"use strict";var Gf=pe();function OV(t){return t.body.type==="BlockStatement"}EC.exports={meta:{type:"layout",docs:{description:"require parentheses around arrow function arguments",recommended:!1,url:"https://eslint.org/docs/rules/arrow-parens"},fixable:"code",schema:[{enum:["always","as-needed"]},{type:"object",properties:{requireForBlockBody:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedParens:"Unexpected parentheses around single function argument.",expectedParens:"Expected parentheses around arrow function argument.",unexpectedParensInline:"Unexpected parentheses around single function argument having a body with no curly braces.",expectedParensBlock:"Expected parentheses around arrow function argument having a body with curly braces."}},create(t){let e=t.options[0]==="as-needed",r=e&&t.options[1]&&t.options[1].requireForBlockBody===!0,n=t.getSourceCode();function s(l){let u=n.getTokenBefore(l.params[0]);return u&&Gf.isOpeningParenToken(u)&&l.range[0]<=u.range[0]?u:null}function i(l){return n.getTokenAfter(l.params[0],Gf.isClosingParenToken)}function a(l,u){return n.commentsExistBetween(u,i(l))}function o(l,u){let c=l.async?1:0;return n.getFirstToken(l,{skip:c})!==u}return{"ArrowFunctionExpression[params.length=1]"(l){let u=!e||r&&OV(l),c=s(l),p=c!==null,[h]=l.params;u&&!p&&t.report({node:l,messageId:r?"expectedParensBlock":"expectedParens",loc:h.loc,*fix(f){yield f.insertTextBefore(h,"("),yield f.insertTextAfter(h,")")}}),!u&&p&&h.type==="Identifier"&&!h.typeAnnotation&&!l.returnType&&!a(l,c)&&!o(l,c)&&t.report({node:l,messageId:r?"unexpectedParensInline":"unexpectedParens",loc:h.loc,*fix(f){let m=n.getTokenBefore(c),x=i(l);m&&m.range[1]===c.range[0]&&!Gf.canTokensBeAdjacent(m,n.getFirstToken(h))&&(yield f.insertTextBefore(c," ")),yield f.removeRange([c.range[0],h.range[0]]),yield f.removeRange([h.range[1],x.range[1]])}})}}}}});var CC=M((QZ,vC)=>{b();v();"use strict";var RV=pe();vC.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing before and after the arrow in arrow functions",recommended:!1,url:"https://eslint.org/docs/rules/arrow-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!0},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{expectedBefore:"Missing space before =>.",unexpectedBefore:"Unexpected space before =>.",expectedAfter:"Missing space after =>.",unexpectedAfter:"Unexpected space after =>."}},create(t){let e=Object.assign({},t.options[0]);e.before=e.before!==!1,e.after=e.after!==!1;let r=t.getSourceCode();function n(a){let o=r.getTokenBefore(a.body,RV.isArrowToken);return{before:r.getTokenBefore(o),arrow:o,after:r.getTokenAfter(o)}}function s(a){let o=a.arrow.range[0]-a.before.range[1],l=a.after.range[0]-a.arrow.range[1];return{before:o,after:l}}function i(a){let o=n(a),l=s(o);e.before?l.before===0&&t.report({node:o.before,messageId:"expectedBefore",fix(u){return u.insertTextBefore(o.arrow," ")}}):l.before>0&&t.report({node:o.before,messageId:"unexpectedBefore",fix(u){return u.removeRange([o.before.range[1],o.arrow.range[0]])}}),e.after?l.after===0&&t.report({node:o.after,messageId:"expectedAfter",fix(u){return u.insertTextAfter(o.arrow," ")}}):l.after>0&&t.report({node:o.after,messageId:"unexpectedAfter",fix(u){return u.removeRange([o.arrow.range[1],o.after.range[0]])}})}return{ArrowFunctionExpression:i}}}});var AC=M((XZ,SC)=>{b();v();"use strict";SC.exports={meta:{type:"suggestion",docs:{description:"enforce the use of variables within the scope they are defined",recommended:!1,url:"https://eslint.org/docs/rules/block-scoped-var"},schema:[],messages:{outOfScope:"'{{name}}' used outside of binding context."}},create(t){let e=[];function r(a){e.push(a.range)}function n(){e.pop()}function s(a){let o=a.identifier;t.report({node:o,messageId:"outOfScope",data:{name:o.name}})}function i(a){if(a.kind!=="var")return;let o=e[e.length-1];function l(c){let p=c.identifier.range;return p[0]<o[0]||p[1]>o[1]}let u=t.getDeclaredVariables(a);for(let c=0;c<u.length;++c)u[c].references.filter(l).forEach(s)}return{Program(a){e=[a.range]},BlockStatement:r,"BlockStatement:exit":n,ForStatement:r,"ForStatement:exit":n,ForInStatement:r,"ForInStatement:exit":n,ForOfStatement:r,"ForOfStatement:exit":n,SwitchStatement:r,"SwitchStatement:exit":n,CatchClause:r,"CatchClause:exit":n,StaticBlock:r,"StaticBlock:exit":n,VariableDeclaration:i}}}});var kC=M((ZZ,wC)=>{b();v();"use strict";var LV=pe();wC.exports={meta:{type:"layout",docs:{description:"disallow or enforce spaces inside of blocks after opening block and before closing block",recommended:!1,url:"https://eslint.org/docs/rules/block-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{missing:"Requires a space {{location}} '{{token}}'.",extra:"Unexpected space(s) {{location}} '{{token}}'."}},create(t){let e=t.options[0]!=="never",r=e?"missing":"extra",n=t.getSourceCode();function s(o){return o.type==="SwitchStatement"?o.cases.length>0?n.getTokenBefore(o.cases[0]):n.getLastToken(o,1):o.type==="StaticBlock"?n.getFirstToken(o,{skip:1}):n.getFirstToken(o)}function i(o,l){return!LV.isTokenOnSameLine(o,l)||n.isSpaceBetweenTokens(o,l)===e}function a(o){let l=s(o),u=n.getLastToken(o),c=n.getTokenAfter(l,{includeComments:!0}),p=n.getTokenBefore(u,{includeComments:!0});if(!(l.type!=="Punctuator"||l.value!=="{"||u.type!=="Punctuator"||u.value!=="}"||c===u)&&!(!e&&c.type==="Line")){if(!i(l,c)){let h=l.loc;r==="extra"&&(h={start:l.loc.end,end:c.loc.start}),t.report({node:o,loc:h,messageId:r,data:{location:"after",token:l.value},fix(f){return e?f.insertTextBefore(c," "):f.removeRange([l.range[1],c.range[0]])}})}if(!i(p,u)){let h=u.loc;r==="extra"&&(h={start:p.loc.end,end:u.loc.start}),t.report({node:o,loc:h,messageId:r,data:{location:"before",token:u.value},fix(f){return e?f.insertTextAfter(p," "):f.removeRange([p.range[1],u.range[0]])}})}}}return{BlockStatement:a,StaticBlock:a,SwitchStatement:a}}}});var TC=M((eee,DC)=>{b();v();"use strict";var qs=pe();DC.exports={meta:{type:"layout",docs:{description:"enforce consistent brace style for blocks",recommended:!1,url:"https://eslint.org/docs/rules/brace-style"},schema:[{enum:["1tbs","stroustrup","allman"]},{type:"object",properties:{allowSingleLine:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"whitespace",messages:{nextLineOpen:"Opening curly brace does not appear on the same line as controlling statement.",sameLineOpen:"Opening curly brace appears on the same line as controlling statement.",blockSameLine:"Statement inside of curly braces should be on next line.",nextLineClose:"Closing curly brace does not appear on the same line as the subsequent block.",singleLineClose:"Closing curly brace should be on the same line as opening curly brace or on the line after the previous block.",sameLineClose:"Closing curly brace appears on the same line as the subsequent block."}},create(t){let e=t.options[0]||"1tbs",r=t.options[1]||{},n=t.getSourceCode();function s(o,l){let u=[o.range[1],l.range[0]];return n.text.slice(u[0],u[1]).trim()?null:p=>p.replaceTextRange(u," ")}function i(o,l){let u=n.getTokenBefore(o),c=n.getTokenAfter(o),p=n.getTokenBefore(l),h=r.allowSingleLine&&qs.isTokenOnSameLine(o,l);e!=="allman"&&!qs.isTokenOnSameLine(u,o)&&t.report({node:o,messageId:"nextLineOpen",fix:s(u,o)}),e==="allman"&&qs.isTokenOnSameLine(u,o)&&!h&&t.report({node:o,messageId:"sameLineOpen",fix:f=>f.insertTextBefore(o,`
|
|
58
|
+
`)}),qs.isTokenOnSameLine(o,c)&&c!==l&&!h&&t.report({node:o,messageId:"blockSameLine",fix:f=>f.insertTextAfter(o,`
|
|
59
|
+
`)}),p!==o&&!h&&qs.isTokenOnSameLine(p,l)&&t.report({node:l,messageId:"singleLineClose",fix:f=>f.insertTextBefore(l,`
|
|
60
|
+
`)})}function a(o){let l=n.getTokenAfter(o);e==="1tbs"&&!qs.isTokenOnSameLine(o,l)&&t.report({node:o,messageId:"nextLineClose",fix:s(o,l)}),e!=="1tbs"&&qs.isTokenOnSameLine(o,l)&&t.report({node:o,messageId:"sameLineClose",fix:u=>u.insertTextAfter(o,`
|
|
61
|
+
`)})}return{BlockStatement(o){qs.STATEMENT_LIST_PARENTS.has(o.parent.type)||i(n.getFirstToken(o),n.getLastToken(o))},StaticBlock(o){i(n.getFirstToken(o,{skip:1}),n.getLastToken(o))},ClassBody(o){i(n.getFirstToken(o),n.getLastToken(o))},SwitchStatement(o){let l=n.getLastToken(o),u=n.getTokenBefore(o.cases.length?o.cases[0]:l);i(u,l)},IfStatement(o){o.consequent.type==="BlockStatement"&&o.alternate&&a(n.getLastToken(o.consequent))},TryStatement(o){a(n.getLastToken(o.block)),o.handler&&o.finalizer&&a(n.getLastToken(o.handler.body))}}}}});var PC=M((tee,FC)=>{b();v();"use strict";FC.exports={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"require `return` statements after callbacks",recommended:!1,url:"https://eslint.org/docs/rules/callback-return"},schema:[{type:"array",items:{type:"string"}}],messages:{missingReturn:"Expected return with your callback function."}},create(t){let e=t.options[0]||["callback","cb","next"],r=t.getSourceCode();function n(o,l){return o.parent?l.indexOf(o.parent.type)===-1?n(o.parent,l):o.parent:null}function s(o){if(o.type==="Identifier")return!0;if(o.type==="MemberExpression"){if(o.object.type==="Identifier")return!0;if(o.object.type==="MemberExpression")return s(o.object)}return!1}function i(o){return s(o.callee)&&e.indexOf(r.getText(o.callee))>-1}function a(o,l){return!l||l.type!=="ExpressionStatement"?!1:l.expression===o||(l.expression.type==="BinaryExpression"||l.expression.type==="LogicalExpression")&&l.expression.right===o}return{CallExpression(o){if(!i(o))return;let l=n(o,["BlockStatement","ReturnStatement","ArrowFunctionExpression"])||{};if(l.type!=="ReturnStatement"&&l.type!=="ArrowFunctionExpression"){if(l.type==="BlockStatement"){let u=l.body[l.body.length-1];if(a(o,u)){let c=l.parent.type;if(c==="FunctionExpression"||c==="FunctionDeclaration"||c==="ArrowFunctionExpression")return}if(u.type==="ReturnStatement"&&a(o,l.body[l.body.length-2]))return}n(o,["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"])&&t.report({node:o,messageId:"missingReturn"})}}}}}});var _C=M((ree,IC)=>{b();v();"use strict";var NV=pe();IC.exports={meta:{type:"suggestion",docs:{description:"enforce camelcase naming convention",recommended:!1,url:"https://eslint.org/docs/rules/camelcase"},schema:[{type:"object",properties:{ignoreDestructuring:{type:"boolean",default:!1},ignoreImports:{type:"boolean",default:!1},ignoreGlobals:{type:"boolean",default:!1},properties:{enum:["always","never"]},allow:{type:"array",items:[{type:"string"}],minItems:0,uniqueItems:!0}},additionalProperties:!1}],messages:{notCamelCase:"Identifier '{{name}}' is not in camel case.",notCamelCasePrivate:"#{{name}} is not in camel case."}},create(t){let e=t.options[0]||{},r=e.properties==="never"?"never":"always",n=e.ignoreDestructuring,s=e.ignoreImports,i=e.ignoreGlobals,a=e.allow||[],o=new Set;function l(x){let E=x.replace(/^_+|_+$/gu,"");return E.includes("_")&&E!==E.toUpperCase()}function u(x){return a.some(E=>x===E||x.match(new RegExp(E,"u")))}function c(x){return!l(x)||u(x)}function p(x){let E=x.parent;switch(E.type){case"AssignmentExpression":case"AssignmentPattern":return E.left===x;case"Property":return E.parent.type==="ObjectPattern"&&E.value===x;case"ArrayPattern":case"RestElement":return!0;default:return!1}}function h(x){let E=x.name,S=x.parent.type==="AssignmentPattern"?x.parent:x,T=S.parent;switch(T.type){case"Property":return(T.parent.type==="ObjectPattern"||T.parent.type==="ObjectExpression")&&T.value===S&&!T.computed&&T.key.type==="Identifier"&&T.key.name===E;case"ImportSpecifier":return T.local===x&&NV.getModuleExportName(T.imported)===E;default:return!1}}function f(x){o.has(x.range[0])||(o.add(x.range[0]),t.report({node:x,messageId:x.type==="PrivateIdentifier"?"notCamelCasePrivate":"notCamelCase",data:{name:x.name}}))}function m(x){x.parent.type==="CallExpression"||x.parent.type==="NewExpression"||x.parent.type==="AssignmentPattern"&&x.parent.right===x||n&&h(x)||f(x)}return{Program(){let x=t.getScope();if(!i){for(let E of x.variables)if(!(E.identifiers.length>0||c(E.name)))for(let S of E.references)m(S.identifier)}for(let E of x.through){let S=E.identifier;c(S.name)||m(S)}},[["VariableDeclaration","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression","ClassDeclaration","ClassExpression","CatchClause"]](x){for(let E of t.getDeclaredVariables(x)){if(c(E.name))continue;let S=E.identifiers[0];n&&h(S)||f(S);for(let T of E.references)T.init||m(T.identifier)}},[["ObjectExpression > Property[computed!=true] > Identifier.key","MethodDefinition[computed!=true] > Identifier.key","PropertyDefinition[computed!=true] > Identifier.key","MethodDefinition > PrivateIdentifier.key","PropertyDefinition > PrivateIdentifier.key"]](x){r==="never"||c(x.name)||f(x)},"MemberExpression[computed!=true] > Identifier.property"(x){r==="never"||!p(x.parent)||c(x.name)||f(x)},ImportDeclaration(x){for(let E of t.getDeclaredVariables(x)){if(c(E.name))continue;let S=E.identifiers[0];s&&h(S)||f(S);for(let T of E.references)m(T.identifier)}},[["ExportAllDeclaration > Identifier.exported","ExportSpecifier > Identifier.exported"]](x){c(x.name)||f(x)},[["LabeledStatement > Identifier.label","BreakStatement > Identifier.label","ContinueStatement > Identifier.label"]](x){c(x.name)||f(x)}}}}});var OC=M((see,BC)=>{b();v();"use strict";BC.exports=/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDE00-\uDE11\uDE13-\uDE2B\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDE00-\uDE2F\uDE44\uDE80-\uDEAA]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]/u});var MC=M((nee,RC)=>{b();v();"use strict";var LC=OC(),MV=pe(),jV=MV.COMMENTS_IGNORE_PATTERN,qV=/\s/gu,VV=/^\s*[^:/?#\s]+:\/\/[^?#]/u,zf={type:"object",properties:{ignorePattern:{type:"string"},ignoreInlineComments:{type:"boolean"},ignoreConsecutiveComments:{type:"boolean"}},additionalProperties:!1},UV={ignorePattern:"",ignoreInlineComments:!1,ignoreConsecutiveComments:!1};function NC(t,e){return Object.assign({},UV,t[e]||t)}function $V(t={}){return{Line:NC(t,"line"),Block:NC(t,"block")}}function WV(t){Object.keys(t).forEach(e=>{let r=t[e].ignorePattern;if(r){let n=RegExp(`^\\s*(?:${r})`,"u");t[e].ignorePatternRegExp=n}})}RC.exports={meta:{type:"suggestion",docs:{description:"enforce or disallow capitalization of the first letter of a comment",recommended:!1,url:"https://eslint.org/docs/rules/capitalized-comments"},fixable:"code",schema:[{enum:["always","never"]},{oneOf:[zf,{type:"object",properties:{line:zf,block:zf},additionalProperties:!1}]}],messages:{unexpectedLowercaseComment:"Comments should not begin with a lowercase character.",unexpectedUppercaseComment:"Comments should not begin with an uppercase character."}},create(t){let e=t.options[0]||"always",r=$V(t.options[1]),n=t.getSourceCode();WV(r);function s(l){let u=n.getTokenBefore(l,{includeComments:!0}),c=n.getTokenAfter(l,{includeComments:!0});return Boolean(u&&c&&l.loc.start.line===u.loc.end.line&&l.loc.end.line===c.loc.start.line)}function i(l){let u=n.getTokenBefore(l,{includeComments:!0});return Boolean(u&&["Block","Line"].indexOf(u.type)!==-1)}function a(l,u){if(jV.test(l.value))return!0;let c=l.value.replace(/\*/gu,"");if(u.ignorePatternRegExp&&u.ignorePatternRegExp.test(c)||u.ignoreInlineComments&&s(l)||u.ignoreConsecutiveComments&&i(l)||VV.test(c))return!0;let p=c.replace(qV,"");if(p.length===0)return!0;let h=p[0];if(!LC.test(h))return!0;let f=h!==h.toLocaleLowerCase(),m=h!==h.toLocaleUpperCase();return!(e==="always"&&m||e==="never"&&f)}function o(l){let u=r[l.type];if(!a(l,u)){let p=e==="always"?"unexpectedLowercaseComment":"unexpectedUppercaseComment";t.report({node:null,loc:l.loc,messageId:p,fix(h){let f=l.value.match(LC);return h.replaceTextRange([l.range[0]+f.index+2,l.range[0]+f.index+3],e==="always"?f[0].toLocaleUpperCase():f[0].toLocaleLowerCase())}})}}return{Program(){n.getAllComments().filter(u=>u.type!=="Shebang").forEach(o)}}}}});var qC=M((iee,jC)=>{b();v();"use strict";var Hf=pe();jC.exports={meta:{type:"suggestion",docs:{description:"enforce that class methods utilize `this`",recommended:!1,url:"https://eslint.org/docs/rules/class-methods-use-this"},schema:[{type:"object",properties:{exceptMethods:{type:"array",items:{type:"string"}},enforceForClassFields:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{missingThis:"Expected 'this' to be used by class {{name}}."}},create(t){let e=Object.assign({},t.options[0]),r=e.enforceForClassFields!==!1,n=new Set(e.exceptMethods||[]),s=[];function i(){s.push(!1)}function a(){return s.pop()}function o(){i()}function l(h){switch(h.type){case"MethodDefinition":return!h.static&&h.kind!=="constructor";case"PropertyDefinition":return!h.static&&r;default:return!1}}function u(h){if(l(h)){if(h.computed)return!0;let f=h.key.type==="PrivateIdentifier"?"#":"",m=h.key.type==="Literal"?Hf.getStaticStringValue(h.key):h.key.name||"";return!n.has(f+m)}return!1}function c(h){let f=a();u(h.parent)&&!f&&t.report({node:h,loc:Hf.getFunctionHeadLoc(h,t.getSourceCode()),messageId:"missingThis",data:{name:Hf.getFunctionNameWithKind(h)}})}function p(){s.length&&(s[s.length-1]=!0)}return{FunctionDeclaration:o,"FunctionDeclaration:exit":c,FunctionExpression:o,"FunctionExpression:exit":c,"PropertyDefinition > *.key:exit":i,"PropertyDefinition:exit":a,StaticBlock:i,"StaticBlock:exit":a,ThisExpression:p,Super:p,...r&&{"PropertyDefinition > ArrowFunctionExpression.value":o,"PropertyDefinition > ArrowFunctionExpression.value:exit":c}}}}});var UC=M((aee,VC)=>{b();v();"use strict";var Kf=pe(),ai=Object.freeze({arrays:"never",objects:"never",imports:"never",exports:"never",functions:"never"});function GV(t){return!(t.type==="RestElement"||t.type==="RestProperty"||t.type==="ExperimentalRestProperty")}function zV(t,e){return typeof t=="string"?{arrays:t,objects:t,imports:t,exports:t,functions:!e||e<8?"ignore":t}:typeof t=="object"&&t!==null?{arrays:t.arrays||ai.arrays,objects:t.objects||ai.objects,imports:t.imports||ai.imports,exports:t.exports||ai.exports,functions:t.functions||ai.functions}:ai}VC.exports={meta:{type:"layout",docs:{description:"require or disallow trailing commas",recommended:!1,url:"https://eslint.org/docs/rules/comma-dangle"},fixable:"code",schema:{definitions:{value:{enum:["always-multiline","always","never","only-multiline"]},valueWithIgnore:{enum:["always-multiline","always","ignore","never","only-multiline"]}},type:"array",items:[{oneOf:[{$ref:"#/definitions/value"},{type:"object",properties:{arrays:{$ref:"#/definitions/valueWithIgnore"},objects:{$ref:"#/definitions/valueWithIgnore"},imports:{$ref:"#/definitions/valueWithIgnore"},exports:{$ref:"#/definitions/valueWithIgnore"},functions:{$ref:"#/definitions/valueWithIgnore"}},additionalProperties:!1}]}],additionalItems:!1},messages:{unexpected:"Unexpected trailing comma.",missing:"Missing trailing comma."}},create(t){let e=zV(t.options[0],t.parserOptions.ecmaVersion),r=t.getSourceCode();function n(p){function h(f){return f[f.length-1]}switch(p.type){case"ObjectExpression":case"ObjectPattern":return h(p.properties);case"ArrayExpression":case"ArrayPattern":return h(p.elements);case"ImportDeclaration":case"ExportNamedDeclaration":return h(p.specifiers);case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":return h(p.params);case"CallExpression":case"NewExpression":return h(p.arguments);default:return null}}function s(p,h){switch(p.type){case"ObjectExpression":case"ArrayExpression":case"CallExpression":case"NewExpression":return r.getLastToken(p,1);default:{let f=r.getTokenAfter(h);return Kf.isCommaToken(f)?f:r.getLastToken(h)}}}function i(p){let h=n(p);if(!h)return!1;let f=s(p,h);return r.getTokenAfter(f).loc.end.line!==f.loc.end.line}function a(p){let h=n(p);if(!h||p.type==="ImportDeclaration"&&h.type!=="ImportSpecifier")return;let f=s(p,h);Kf.isCommaToken(f)&&t.report({node:h,loc:f.loc,messageId:"unexpected",*fix(m){yield m.remove(f),yield m.insertTextBefore(r.getTokenBefore(f),""),yield m.insertTextAfter(r.getTokenAfter(f),"")}})}function o(p){let h=n(p);if(!h||p.type==="ImportDeclaration"&&h.type!=="ImportSpecifier")return;if(!GV(h)){a(p);return}let f=s(p,h);f.value!==","&&t.report({node:h,loc:{start:f.loc.end,end:Kf.getNextLocation(r,f.loc.end)},messageId:"missing",*fix(m){yield m.insertTextAfter(f,","),yield m.insertTextBefore(f,""),yield m.insertTextAfter(r.getTokenAfter(f),"")}})}function l(p){i(p)?o(p):a(p)}function u(p){i(p)||a(p)}let c={always:o,"always-multiline":l,"only-multiline":u,never:a,ignore:()=>{}};return{ObjectExpression:c[e.objects],ObjectPattern:c[e.objects],ArrayExpression:c[e.arrays],ArrayPattern:c[e.arrays],ImportDeclaration:c[e.imports],ExportNamedDeclaration:c[e.exports],FunctionDeclaration:c[e.functions],FunctionExpression:c[e.functions],ArrowFunctionExpression:c[e.functions],CallExpression:c[e.functions],NewExpression:c[e.functions]}}}});var WC=M((oee,$C)=>{b();v();"use strict";var Tn=pe();$C.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing before and after commas",recommended:!1,url:"https://eslint.org/docs/rules/comma-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{missing:"A space is required {{loc}} ','.",unexpected:"There should be no space {{loc}} ','."}},create(t){let e=t.getSourceCode(),r=e.tokensAndComments,n={before:t.options[0]?t.options[0].before:!1,after:t.options[0]?t.options[0].after:!0},s=[];function i(l,u,c){t.report({node:l,fix(p){if(n[u])return u==="before"?p.insertTextBefore(l," "):p.insertTextAfter(l," ");let h,f,m="";return u==="before"?(h=c.range[1],f=l.range[0]):(h=l.range[1],f=c.range[0]),p.replaceTextRange([h,f],m)},messageId:n[u]?"missing":"unexpected",data:{loc:u}})}function a(l,u){l.left&&Tn.isTokenOnSameLine(l.left,l.comma)&&n.before!==e.isSpaceBetweenTokens(l.left,l.comma)&&i(u,"before",l.left),!(l.right&&Tn.isClosingParenToken(l.right))&&(l.right&&!n.after&&l.right.type==="Line"||l.right&&Tn.isTokenOnSameLine(l.comma,l.right)&&n.after!==e.isSpaceBetweenTokens(l.comma,l.right)&&i(u,"after",l.right))}function o(l){let u=e.getFirstToken(l);l.elements.forEach(c=>{let p;c===null?(p=e.getTokenAfter(u),Tn.isCommaToken(p)&&s.push(p)):p=e.getTokenAfter(c),u=p})}return{"Program:exit"(){r.forEach((l,u)=>{if(!Tn.isCommaToken(l)||l&&l.type==="JSXText")return;let c=r[u-1],p=r[u+1];a({comma:l,left:Tn.isCommaToken(c)||s.includes(l)?null:c,right:Tn.isCommaToken(p)?null:p},l)})},ArrayExpression:o,ArrayPattern:o}}}});var zC=M((lee,GC)=>{b();v();"use strict";var Vr=pe();GC.exports={meta:{type:"layout",docs:{description:"enforce consistent comma style",recommended:!1,url:"https://eslint.org/docs/rules/comma-style"},fixable:"code",schema:[{enum:["first","last"]},{type:"object",properties:{exceptions:{type:"object",additionalProperties:{type:"boolean"}}},additionalProperties:!1}],messages:{unexpectedLineBeforeAndAfterComma:"Bad line breaking before and after ','.",expectedCommaFirst:"',' should be placed first.",expectedCommaLast:"',' should be placed last."}},create(t){let e=t.options[0]||"last",r=t.getSourceCode(),n={ArrayPattern:!0,ArrowFunctionExpression:!0,CallExpression:!0,FunctionDeclaration:!0,FunctionExpression:!0,ImportDeclaration:!0,ObjectPattern:!0,NewExpression:!0};if(t.options.length===2&&Object.prototype.hasOwnProperty.call(t.options[1],"exceptions")){let u=Object.keys(t.options[1].exceptions);for(let c=0;c<u.length;c++)n[u[c]]=t.options[1].exceptions[u[c]]}function s(u,c){switch(u){case"between":return`,${c.replace(Vr.LINEBREAK_MATCHER,"")}`;case"first":return`${c},`;case"last":return`,${c}`;default:return""}}function i(u,c,p,h){let f=r.text.slice(c.range[1],p.range[0])+r.text.slice(p.range[1],h.range[0]),m=[c.range[1],h.range[0]];return function(x){return x.replaceTextRange(m,s(u,f))}}function a(u,c,p,h){if(!(Vr.isTokenOnSameLine(c,p)&&Vr.isTokenOnSameLine(u,c)))if(!Vr.isTokenOnSameLine(c,p)&&!Vr.isTokenOnSameLine(u,c)){let f=r.getCommentsAfter(c)[0],m=f&&f.type==="Block"&&Vr.isTokenOnSameLine(c,f)?e:"between";t.report({node:h,loc:c.loc,messageId:"unexpectedLineBeforeAndAfterComma",fix:i(m,u,c,p)})}else e==="first"&&!Vr.isTokenOnSameLine(c,p)?t.report({node:h,loc:c.loc,messageId:"expectedCommaFirst",fix:i(e,u,c,p)}):e==="last"&&Vr.isTokenOnSameLine(c,p)&&t.report({node:h,loc:c.loc,messageId:"expectedCommaLast",fix:i(e,u,c,p)})}function o(u,c){let p=u[c],h=u.type==="ArrayExpression"||u.type==="ArrayPattern";if(p.length>1||h){let f=r.getFirstToken(u);if(p.forEach(m=>{let x=m?r.getTokenBefore(m):f,E=m?r.getFirstToken(m):r.getTokenAfter(x),S=m||E;if(Vr.isCommaToken(x)&&a(f,x,E,S),m){let T=r.getTokenAfter(m,Vr.isNotClosingParenToken);f=T?r.getTokenBefore(T):r.ast.tokens[r.ast.tokens.length-1]}else f=E}),h){let m=r.getLastToken(u),x=r.getTokenBefore(m);Vr.isCommaToken(x)&&a(r.getTokenBefore(x),x,m,m)}}}let l={};return n.VariableDeclaration||(l.VariableDeclaration=function(u){o(u,"declarations")}),n.ObjectExpression||(l.ObjectExpression=function(u){o(u,"properties")}),n.ObjectPattern||(l.ObjectPattern=function(u){o(u,"properties")}),n.ArrayExpression||(l.ArrayExpression=function(u){o(u,"elements")}),n.ArrayPattern||(l.ArrayPattern=function(u){o(u,"elements")}),n.FunctionDeclaration||(l.FunctionDeclaration=function(u){o(u,"params")}),n.FunctionExpression||(l.FunctionExpression=function(u){o(u,"params")}),n.ArrowFunctionExpression||(l.ArrowFunctionExpression=function(u){o(u,"params")}),n.CallExpression||(l.CallExpression=function(u){o(u,"arguments")}),n.ImportDeclaration||(l.ImportDeclaration=function(u){o(u,"specifiers")}),n.NewExpression||(l.NewExpression=function(u){o(u,"arguments")}),l}}});var oi=M((uee,HC)=>{b();v();"use strict";function HV(t){return t.length<=1?t.toUpperCase():t[0].toUpperCase()+t.slice(1)}HC.exports={upperCaseFirst:HV}});var JC=M((cee,KC)=>{b();v();"use strict";var YC=pe(),{upperCaseFirst:KV}=oi();KC.exports={meta:{type:"suggestion",docs:{description:"enforce a maximum cyclomatic complexity allowed in a program",recommended:!1,url:"https://eslint.org/docs/rules/complexity"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{complex:"{{name}} has a complexity of {{complexity}}. Maximum allowed is {{max}}."}},create(t){let e=t.options[0],r=20;typeof e=="object"&&(Object.prototype.hasOwnProperty.call(e,"maximum")||Object.prototype.hasOwnProperty.call(e,"max"))?r=e.maximum||e.max:typeof e=="number"&&(r=e);let n=[];function s(){n[n.length-1]++}return{onCodePathStart(){n.push(1)},CatchClause:s,ConditionalExpression:s,LogicalExpression:s,ForStatement:s,ForInStatement:s,ForOfStatement:s,IfStatement:s,WhileStatement:s,DoWhileStatement:s,"SwitchCase[test]":s,AssignmentExpression(i){YC.isLogicalAssignmentOperator(i.operator)&&s()},onCodePathEnd(i,a){let o=n.pop();if(!(i.origin!=="function"&&i.origin!=="class-field-initializer"&&i.origin!=="class-static-block")&&o>r){let l;i.origin==="class-field-initializer"?l="class field initializer":i.origin==="class-static-block"?l="class static block":l=YC.getFunctionNameWithKind(a),t.report({node:a,messageId:"complex",data:{name:KV(l),complexity:o,max:r}})}}}}}});var XC=M((fee,QC)=>{b();v();"use strict";var li=pe();QC.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing inside computed property brackets",recommended:!1,url:"https://eslint.org/docs/rules/computed-property-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{enforceForClassMembers:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'."}},create(t){let e=t.getSourceCode(),r=t.options[0]==="always",n=!t.options[1]||t.options[1].enforceForClassMembers;function s(c,p,h){t.report({node:c,loc:{start:p.loc.end,end:h.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:p.value},fix(f){return f.removeRange([p.range[1],h.range[0]])}})}function i(c,p,h){t.report({node:c,loc:{start:h.loc.end,end:p.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:p.value},fix(f){return f.removeRange([h.range[1],p.range[0]])}})}function a(c,p){t.report({node:c,loc:p.loc,messageId:"missingSpaceAfter",data:{tokenValue:p.value},fix(h){return h.insertTextAfter(p," ")}})}function o(c,p){t.report({node:c,loc:p.loc,messageId:"missingSpaceBefore",data:{tokenValue:p.value},fix(h){return h.insertTextBefore(p," ")}})}function l(c){return function(p){if(!p.computed)return;let h=p[c],f=e.getTokenBefore(h,li.isOpeningBracketToken),m=e.getTokenAfter(f,{includeComments:!0}),x=e.getTokenAfter(h,li.isClosingBracketToken),E=e.getTokenBefore(x,{includeComments:!0});li.isTokenOnSameLine(f,m)&&(r?!e.isSpaceBetweenTokens(f,m)&&li.isTokenOnSameLine(f,m)&&a(p,f):e.isSpaceBetweenTokens(f,m)&&s(p,f,m)),li.isTokenOnSameLine(E,x)&&(r?!e.isSpaceBetweenTokens(E,x)&&li.isTokenOnSameLine(E,x)&&o(p,x):e.isSpaceBetweenTokens(E,x)&&i(p,x,E))}}let u={Property:l("key"),MemberExpression:l("property")};return n&&(u.MethodDefinition=u.PropertyDefinition=u.Property),u}}});var eS=M((pee,ZC)=>{b();v();"use strict";var ha=pe(),{upperCaseFirst:YV}=oi();function JV(t){return!t.reachable}function QV(t){return t.type==="FunctionExpression"&&t.parent&&t.parent.type==="MethodDefinition"&&t.parent.kind==="constructor"}ZC.exports={meta:{type:"suggestion",docs:{description:"require `return` statements to either always or never specify values",recommended:!1,url:"https://eslint.org/docs/rules/consistent-return"},schema:[{type:"object",properties:{treatUndefinedAsUnspecified:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{missingReturn:"Expected to return a value at the end of {{name}}.",missingReturnValue:"{{name}} expected a return value.",unexpectedReturnValue:"{{name}} expected no return value."}},create(t){let r=(t.options[0]||{}).treatUndefinedAsUnspecified===!0,n=null;function s(i){let a,o;!n.hasReturnValue||n.codePath.currentSegments.every(JV)||ha.isES5Constructor(i)||QV(i)||(i.type==="Program"?(a={line:1,column:0},o="program"):i.type==="ArrowFunctionExpression"?a=t.getSourceCode().getTokenBefore(i.body,ha.isArrowToken).loc:i.parent.type==="MethodDefinition"||i.parent.type==="Property"&&i.parent.method?a=i.parent.key.loc:a=(i.id||t.getSourceCode().getFirstToken(i)).loc,o||(o=ha.getFunctionNameWithKind(i)),t.report({node:i,loc:a,messageId:"missingReturn",data:{name:o}}))}return{onCodePathStart(i,a){n={upper:n,codePath:i,hasReturn:!1,hasReturnValue:!1,messageId:"",node:a}},onCodePathEnd(){n=n.upper},ReturnStatement(i){let a=i.argument,o=Boolean(a);r&&o&&(o=!ha.isSpecificId(a,"undefined")&&a.operator!=="void"),n.hasReturn?n.hasReturnValue!==o&&t.report({node:i,messageId:n.messageId,data:n.data}):(n.hasReturn=!0,n.hasReturnValue=o,n.messageId=o?"missingReturnValue":"unexpectedReturnValue",n.data={name:n.node.type==="Program"?"Program":YV(ha.getFunctionNameWithKind(n.node))})},"Program:exit":s,"FunctionDeclaration:exit":s,"FunctionExpression:exit":s,"ArrowFunctionExpression:exit":s}}}});var rS=M((hee,tS)=>{b();v();"use strict";tS.exports={meta:{type:"suggestion",docs:{description:"enforce consistent naming when capturing the current execution context",recommended:!1,url:"https://eslint.org/docs/rules/consistent-this"},schema:{type:"array",items:{type:"string",minLength:1},uniqueItems:!0},messages:{aliasNotAssignedToThis:"Designated alias '{{name}}' is not assigned to 'this'.",unexpectedAlias:"Unexpected alias '{{name}}' for 'this'."}},create(t){let e=[];t.options.length===0?e.push("that"):e=t.options;function r(a,o){t.report({node:a,messageId:"aliasNotAssignedToThis",data:{name:o}})}function n(a,o,l){let u=l.type==="ThisExpression";e.indexOf(o)!==-1?(!u||a.operator&&a.operator!=="=")&&r(a,o):u&&t.report({node:a,messageId:"unexpectedAlias",data:{name:o}})}function s(a,o){let l=o.set.get(a);!l||l.defs.some(u=>u.node.type==="VariableDeclarator"&&u.node.init!==null)||l.references.some(u=>{let c=u.writeExpr;return u.from===o&&c&&c.type==="ThisExpression"&&c.parent.operator==="="})||l.defs.map(u=>u.node).forEach(u=>{r(u,a)})}function i(){let a=t.getScope();e.forEach(o=>{s(o,a)})}return{"Program:exit":i,"FunctionExpression:exit":i,"FunctionDeclaration:exit":i,VariableDeclarator(a){let o=a.id,l=o.type==="ArrayPattern"||o.type==="ObjectPattern";a.init!==null&&!l&&n(a,o.name,a.init)},AssignmentExpression(a){a.left.type==="Identifier"&&n(a,a.left.name,a.right)}}}}});var nS=M((mee,sS)=>{b();v();"use strict";function XV(t){return t.reachable}function ZV(t){return t.type==="FunctionExpression"&&t.parent.type==="MethodDefinition"&&t.parent.kind==="constructor"}function ts(t){if(!t)return!1;switch(t.type){case"ClassExpression":case"FunctionExpression":case"ThisExpression":case"MemberExpression":case"CallExpression":case"NewExpression":case"ChainExpression":case"YieldExpression":case"TaggedTemplateExpression":case"MetaProperty":return!0;case"Identifier":return t.name!=="undefined";case"AssignmentExpression":return["=","&&="].includes(t.operator)?ts(t.right):["||=","??="].includes(t.operator)?ts(t.left)||ts(t.right):!1;case"LogicalExpression":return t.operator==="&&"?ts(t.right):ts(t.left)||ts(t.right);case"ConditionalExpression":return ts(t.alternate)||ts(t.consequent);case"SequenceExpression":{let e=t.expressions[t.expressions.length-1];return ts(e)}default:return!1}}sS.exports={meta:{type:"problem",docs:{description:"require `super()` calls in constructors",recommended:!0,url:"https://eslint.org/docs/rules/constructor-super"},schema:[],messages:{missingSome:"Lacked a call of 'super()' in some code paths.",missingAll:"Expected to call 'super()'.",duplicate:"Unexpected duplicate 'super()'.",badSuper:"Unexpected 'super()' because 'super' is not a constructor.",unexpected:"Unexpected 'super()'."}},create(t){let e=null,r=Object.create(null);function n(i){return i.reachable&&r[i.id].calledInSomePaths}function s(i){return i.nextSegments.length===1&&i.nextSegments[0].isLoopedPrevSegment(i)?!0:i.reachable&&r[i.id].calledInEveryPaths}return{onCodePathStart(i,a){if(ZV(a)){let l=a.parent.parent.parent.superClass;e={upper:e,isConstructor:!0,hasExtends:Boolean(l),superIsConstructor:ts(l),codePath:i}}else e={upper:e,isConstructor:!1,hasExtends:!1,superIsConstructor:!1,codePath:i}},onCodePathEnd(i,a){let o=e.hasExtends;if(e=e.upper,!o)return;let l=i.returnedSegments,u=l.every(s),c=l.some(n);u||t.report({messageId:c?"missingSome":"missingAll",node:a.parent})},onCodePathSegmentStart(i){if(!(e&&e.isConstructor&&e.hasExtends))return;let a=r[i.id]={calledInSomePaths:!1,calledInEveryPaths:!1,validNodes:[]},o=i.prevSegments;o.length>0&&(a.calledInSomePaths=o.some(n),a.calledInEveryPaths=o.every(s))},onCodePathSegmentLoop(i,a){if(!(e&&e.isConstructor&&e.hasExtends))return;let o=a.prevSegments.length>=2;e.codePath.traverseSegments({first:a,last:i},l=>{let u=r[l.id],c=l.prevSegments;if(u.calledInSomePaths=c.some(n),u.calledInEveryPaths=c.every(s),u.calledInSomePaths||o){let p=u.validNodes;u.validNodes=[];for(let h=0;h<p.length;++h){let f=p[h];t.report({messageId:"duplicate",node:f})}}})},"CallExpression:exit"(i){if(!!(e&&e.isConstructor)&&i.callee.type==="Super")if(e.hasExtends){let a=e.codePath.currentSegments,o=!1,l=null;for(let u=0;u<a.length;++u){let c=a[u];c.reachable&&(l=r[c.id],o=o||l.calledInSomePaths,l.calledInSomePaths=l.calledInEveryPaths=!0)}l&&(o?t.report({messageId:"duplicate",node:i}):e.superIsConstructor?l.validNodes.push(i):t.report({messageId:"badSuper",node:i}))}else e.codePath.currentSegments.some(XV)&&t.report({messageId:"unexpected",node:i})},ReturnStatement(i){if(!(e&&e.isConstructor&&e.hasExtends)||!i.argument)return;let a=e.codePath.currentSegments;for(let o=0;o<a.length;++o){let l=a[o];if(l.reachable){let u=r[l.id];u.calledInSomePaths=u.calledInEveryPaths=!0}}},"Program:exit"(){r=Object.create(null)}}}}});var aS=M((dee,iS)=>{b();v();"use strict";var vl=pe();iS.exports={meta:{type:"suggestion",docs:{description:"enforce consistent brace style for all control statements",recommended:!1,url:"https://eslint.org/docs/rules/curly"},schema:{anyOf:[{type:"array",items:[{enum:["all"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["multi","multi-line","multi-or-nest"]},{enum:["consistent"]}],minItems:0,maxItems:2}]},fixable:"code",messages:{missingCurlyAfter:"Expected { after '{{name}}'.",missingCurlyAfterCondition:"Expected { after '{{name}}' condition.",unexpectedCurlyAfter:"Unnecessary { after '{{name}}'.",unexpectedCurlyAfterCondition:"Unnecessary { after '{{name}}' condition."}},create(t){let e=t.options[0]==="multi",r=t.options[0]==="multi-line",n=t.options[0]==="multi-or-nest",s=t.options[1]==="consistent",i=t.getSourceCode();function a(E){let S=i.getTokenBefore(E),T=i.getLastToken(E),I=vl.isSemicolonToken(T)?i.getTokenBefore(T):T;return S.loc.start.line===I.loc.end.line}function o(E){if(E.type==="EmptyStatement")return!0;let S=i.getFirstToken(E),T=i.getLastToken(E),I=vl.isSemicolonToken(T)?i.getTokenBefore(T):T;return S.loc.start.line===I.loc.end.line}function l(E){return E.type==="VariableDeclaration"?E.kind==="const"||E.kind==="let":E.type==="FunctionDeclaration"||E.type==="ClassDeclaration"}function u(E){return E.value==="else"&&E.type==="Keyword"}function c(E){let S=i.getTokenAfter(E);return Boolean(S)&&u(S)}function p(E){let S=i.getTokenBefore(E),T=i.getTokenAfter(E),I=i.getNodeByRangeIndex(S.range[0]);return vl.isSemicolonToken(S)||!T||I.type==="BlockStatement"&&I.parent.type!=="FunctionExpression"&&I.parent.type!=="ArrowFunctionExpression"?!1:!!(S.loc.end.line===T.loc.start.line||/^[([/`+-]/u.test(T.value)||S.type==="Punctuator"&&(S.value==="++"||S.value==="--"))}function h(E){switch(E.type){case"IfStatement":return E.alternate?h(E.alternate):!0;case"ForStatement":case"ForInStatement":case"ForOfStatement":case"LabeledStatement":case"WithStatement":case"WhileStatement":return h(E.body);default:return!1}}function f(E){let S=E.body[0];return l(S)||h(S)&&c(E)}function m(E,S,T,I){let y=S.type==="BlockStatement",w=null;if(y&&(S.body.length!==1||f(S)))w=!0;else if(e)w=!1;else if(r)a(S)||(w=!0);else if(n)if(y){let D=S.body[0],R=i.getCommentsBefore(D);w=!o(D)||R.length>0}else w=!o(S);else w=!0;return{actual:y,expected:w,check(){this.expected!==null&&this.expected!==this.actual&&(this.expected?t.report({node:E,loc:S.loc,messageId:I&&I.condition?"missingCurlyAfterCondition":"missingCurlyAfter",data:{name:T},fix:D=>D.replaceText(S,`{${i.getText(S)}}`)}):t.report({node:E,loc:S.loc,messageId:I&&I.condition?"unexpectedCurlyAfterCondition":"unexpectedCurlyAfter",data:{name:T},fix(D){let R=E.type==="DoWhileStatement"&&i.getTokenBefore(S).range[1]===S.range[0]&&!vl.canTokensBeAdjacent("do",i.getFirstToken(S,{skip:1})),z=i.getFirstToken(S),q=i.getLastToken(S),W=i.getTokenBefore(q);if(p(q))return null;let _=i.getText().slice(z.range[1],W.range[0])+i.getText(W)+i.getText().slice(W.range[1],q.range[0]);return D.replaceText(S,(R?" ":"")+_)}}))}}}function x(E){let S=[];for(let T=E;T;T=T.alternate)if(S.push(m(T,T.consequent,"if",{condition:!0})),T.alternate&&T.alternate.type!=="IfStatement"){S.push(m(T,T.alternate,"else"));break}if(s){let T=S.some(I=>I.expected!==null?I.expected:I.actual);S.forEach(I=>{I.expected=T})}return S}return{IfStatement(E){let S=E.parent;S.type==="IfStatement"&&S.alternate===E||x(E).forEach(I=>{I.check()})},WhileStatement(E){m(E,E.body,"while",{condition:!0}).check()},DoWhileStatement(E){m(E,E.body,"do").check()},ForStatement(E){m(E,E.body,"for",{condition:!0}).check()},ForInStatement(E){m(E,E.body,"for-in").check()},ForOfStatement(E){m(E,E.body,"for-of").check()}}}}});var lS=M((gee,oS)=>{b();v();"use strict";var e7=/^no default$/iu;oS.exports={meta:{type:"suggestion",docs:{description:"require `default` cases in `switch` statements",recommended:!1,url:"https://eslint.org/docs/rules/default-case"},schema:[{type:"object",properties:{commentPattern:{type:"string"}},additionalProperties:!1}],messages:{missingDefaultCase:"Expected a default case."}},create(t){let e=t.options[0]||{},r=e.commentPattern?new RegExp(e.commentPattern,"u"):e7,n=t.getSourceCode();function s(i){return i[i.length-1]}return{SwitchStatement(i){if(!i.cases.length)return;if(!i.cases.some(o=>o.test===null)){let o,l=s(i.cases),u=n.getCommentsAfter(l);u.length&&(o=s(u)),(!o||!r.test(o.value.trim()))&&t.report({node:i,messageId:"missingDefaultCase"})}}}}}});var cS=M((yee,uS)=>{b();v();"use strict";uS.exports={meta:{type:"suggestion",docs:{description:"enforce default clauses in switch statements to be last",recommended:!1,url:"https://eslint.org/docs/rules/default-case-last"},schema:[],messages:{notLast:"Default clause should be the last clause."}},create(t){return{SwitchStatement(e){let r=e.cases,n=r.findIndex(s=>s.test===null);if(n!==-1&&n!==r.length-1){let s=r[n];t.report({node:s,messageId:"notLast"})}}}}}});var pS=M((xee,fS)=>{b();v();"use strict";fS.exports={meta:{type:"suggestion",docs:{description:"enforce default parameters to be last",recommended:!1,url:"https://eslint.org/docs/rules/default-param-last"},schema:[],messages:{shouldBeLast:"Default parameters should be last."}},create(t){function e(r){let n=!1;for(let s=r.params.length-1;s>=0;s-=1){let i=r.params[s];if(i.type!=="AssignmentPattern"&&i.type!=="RestElement"){n=!0;continue}n&&i.type==="AssignmentPattern"&&t.report({node:i,messageId:"shouldBeLast"})}}return{FunctionDeclaration:e,FunctionExpression:e,ArrowFunctionExpression:e}}}});var mS=M((Eee,hS)=>{b();v();"use strict";var Yf=pe();hS.exports={meta:{type:"layout",docs:{description:"enforce consistent newlines before and after dots",recommended:!1,url:"https://eslint.org/docs/rules/dot-location"},schema:[{enum:["object","property"]}],fixable:"code",messages:{expectedDotAfterObject:"Expected dot to be on same line as object.",expectedDotBeforeProperty:"Expected dot to be on same line as property."}},create(t){let e=t.options[0],r=e==="object"||!e,n=t.getSourceCode();function s(a){let o=a.property,l=n.getTokenBefore(o);if(r){let u=n.getTokenBefore(l);Yf.isTokenOnSameLine(u,l)||t.report({node:a,loc:l.loc,messageId:"expectedDotAfterObject",*fix(c){l.value.startsWith(".")&&Yf.isDecimalIntegerNumericToken(u)?yield c.insertTextAfter(u,` ${l.value}`):yield c.insertTextAfter(u,l.value),yield c.remove(l)}})}else Yf.isTokenOnSameLine(l,o)||t.report({node:a,loc:l.loc,messageId:"expectedDotBeforeProperty",*fix(u){yield u.remove(l),yield u.insertTextBefore(o,l.value)}})}function i(a){a.computed||s(a)}return{MemberExpression:i}}}});var Cl=M((bee,dS)=>{b();v();"use strict";dS.exports=["abstract","boolean","break","byte","case","catch","char","class","const","continue","debugger","default","delete","do","double","else","enum","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","long","native","new","null","package","private","protected","public","return","short","static","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","volatile","while","with"]});var xS=M((vee,gS)=>{b();v();"use strict";var Sl=pe(),yS=Cl(),t7=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/u,r7=new Set(["string","boolean"]);gS.exports={meta:{type:"suggestion",docs:{description:"enforce dot notation whenever possible",recommended:!1,url:"https://eslint.org/docs/rules/dot-notation"},schema:[{type:"object",properties:{allowKeywords:{type:"boolean",default:!0},allowPattern:{type:"string",default:""}},additionalProperties:!1}],fixable:"code",messages:{useDot:"[{{key}}] is better written in dot notation.",useBrackets:".{{key}} is a syntax error."}},create(t){let e=t.options[0]||{},r=e.allowKeywords===void 0||e.allowKeywords,n=t.getSourceCode(),s;e.allowPattern&&(s=new RegExp(e.allowPattern,"u"));function i(a,o){if(t7.test(o)&&(r||yS.indexOf(String(o))===-1)&&!(s&&s.test(o))){let l=a.property.type==="Literal"?JSON.stringify(o):`\`${o}\``;t.report({node:a.property,messageId:"useDot",data:{key:l},*fix(u){let c=n.getTokenAfter(a.object,Sl.isOpeningBracketToken),p=n.getLastToken(a),h=n.getTokenAfter(a);n.commentsExistBetween(c,p)||(a.optional||(yield u.insertTextBefore(c,Sl.isDecimalInteger(a.object)?" .":".")),yield u.replaceTextRange([c.range[0],p.range[1]],o),h&&p.range[1]===h.range[0]&&!Sl.canTokensBeAdjacent(String(o),h)&&(yield u.insertTextAfter(a," ")))}})}}return{MemberExpression(a){a.computed&&a.property.type==="Literal"&&(r7.has(typeof a.property.value)||Sl.isNullLiteral(a.property))&&i(a,a.property.value),a.computed&&a.property.type==="TemplateLiteral"&&a.property.expressions.length===0&&i(a,a.property.quasis[0].value.cooked),!r&&!a.computed&&a.property.type==="Identifier"&&yS.indexOf(String(a.property.name))!==-1&&t.report({node:a.property,messageId:"useBrackets",data:{key:a.property.name},*fix(o){let l=n.getTokenBefore(a.property);a.object.type==="Identifier"&&a.object.name==="let"&&!a.optional||n.commentsExistBetween(l,a.property)||(a.optional||(yield o.remove(l)),yield o.replaceText(a.property,`["${a.property.name}"]`))}})}}}}});var bS=M((Cee,ES)=>{b();v();"use strict";ES.exports={meta:{type:"layout",docs:{description:"require or disallow newline at the end of files",recommended:!1,url:"https://eslint.org/docs/rules/eol-last"},fixable:"whitespace",schema:[{enum:["always","never","unix","windows"]}],messages:{missing:"Newline required at end of file but not found.",unexpected:"Newline not allowed at end of file."}},create(t){return{Program:function(r){let n=t.getSourceCode(),s=n.getText(),i=n.lines[n.lines.length-1],a={column:i.length,line:n.lines.length},o=`
|
|
62
|
+
`,l=`\r${o}`,u=s.endsWith(o);if(!s.length)return;let c=t.options[0]||"always",p=!1;if(c==="unix"&&(c="always"),c==="windows"&&(c="always",p=!0),c==="always"&&!u)t.report({node:r,loc:a,messageId:"missing",fix(h){return h.insertTextAfterRange([0,s.length],p?l:o)}});else if(c==="never"&&u){let h=n.lines[n.lines.length-2];t.report({node:r,loc:{start:{line:n.lines.length-1,column:h.length},end:{line:n.lines.length,column:0}},messageId:"unexpected",fix(f){let m=/(?:\r?\n)+$/u,x=m.exec(n.text),E=x.index,S=n.text.length;return f.replaceTextRange([E,S],"")}})}}}}}});var SS=M((See,vS)=>{b();v();"use strict";var CS=pe();vS.exports={meta:{type:"suggestion",docs:{description:"require the use of `===` and `!==`",recommended:!1,url:"https://eslint.org/docs/rules/eqeqeq"},schema:{anyOf:[{type:"array",items:[{enum:["always"]},{type:"object",properties:{null:{enum:["always","never","ignore"]}},additionalProperties:!1}],additionalItems:!1},{type:"array",items:[{enum:["smart","allow-null"]}],additionalItems:!1}]},fixable:"code",messages:{unexpected:"Expected '{{expectedOperator}}' and instead saw '{{actualOperator}}'."}},create(t){let e=t.options[0]||"always",r=t.options[1]||{},n=t.getSourceCode(),s=e==="always"?r.null||"always":"ignore",i=s==="always",a=s==="never";function o(h){return h.type==="UnaryExpression"&&h.operator==="typeof"}function l(h){return o(h.left)||o(h.right)}function u(h){return h.left.type==="Literal"&&h.right.type==="Literal"&&typeof h.left.value==typeof h.right.value}function c(h){return CS.isNullLiteral(h.right)||CS.isNullLiteral(h.left)}function p(h,f){let m=n.getFirstTokenBetween(h.left,h.right,x=>x.value===h.operator);t.report({node:h,loc:m.loc,messageId:"unexpected",data:{expectedOperator:f,actualOperator:h.operator},fix(x){return l(h)||u(h)?x.replaceText(m,f):null}})}return{BinaryExpression(h){let f=c(h);if(h.operator!=="=="&&h.operator!=="!="){a&&f&&p(h,h.operator.slice(0,-1));return}e==="smart"&&(l(h)||u(h)||f)||!i&&f||p(h,`${h.operator}=`)}}}}});var wS=M((Aee,AS)=>{b();v();"use strict";AS.exports={meta:{type:"problem",docs:{description:'enforce "for" loop update clause moving the counter in the right direction.',recommended:!0,url:"https://eslint.org/docs/rules/for-direction"},fixable:null,schema:[],messages:{incorrectDirection:"The update clause in this loop moves the variable in the wrong direction."}},create(t){function e(i){t.report({node:i,messageId:"incorrectDirection"})}function r(i,a){if(i.right.type==="UnaryExpression"){if(i.right.operator==="-")return-a}else if(i.right.type==="Identifier")return 0;return a}function n(i,a){if(i.argument.type==="Identifier"&&i.argument.name===a){if(i.operator==="++")return 1;if(i.operator==="--")return-1}return 0}function s(i,a){if(i.left.name===a){if(i.operator==="+=")return r(i,1);if(i.operator==="-=")return r(i,-1)}return 0}return{ForStatement(i){if(i.test&&i.test.type==="BinaryExpression"&&i.test.left.type==="Identifier"&&i.update){let a=i.test.left.name,o=i.test.operator,l=i.update,u;if(o==="<"||o==="<=")u=-1;else if(o===">"||o===">=")u=1;else return;l.type==="UpdateExpression"?n(l,a)===u&&e(i):l.type==="AssignmentExpression"&&s(l,a)===u&&e(i)}}}}}});var DS=M((wee,kS)=>{b();v();"use strict";var Jf=pe();kS.exports={meta:{type:"layout",docs:{description:"require or disallow spacing between function identifiers and their invocations",recommended:!1,url:"https://eslint.org/docs/rules/func-call-spacing"},fixable:"whitespace",schema:{anyOf:[{type:"array",items:[{enum:["never"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["always"]},{type:"object",properties:{allowNewlines:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{unexpectedWhitespace:"Unexpected whitespace between function name and paren.",unexpectedNewline:"Unexpected newline between function name and paren.",missing:"Missing space between function name and paren."}},create(t){let e=t.options[0]!=="always",r=!e&&t.options[1]&&t.options[1].allowNewlines,n=t.getSourceCode(),s=n.getText();function i(a,o,l){let u=s.slice(o.range[1],l.range[0]).replace(/\/\*.*?\*\//gu,""),c=/\s/u.test(u),p=c&&Jf.LINEBREAK_MATCHER.test(u);e&&c?t.report({node:a,loc:{start:o.loc.end,end:{line:l.loc.start.line,column:l.loc.start.column-1}},messageId:"unexpectedWhitespace",fix(h){return n.commentsExistBetween(o,l)?null:a.optional?h.replaceTextRange([o.range[1],l.range[0]],"?."):p?null:h.removeRange([o.range[1],l.range[0]])}}):!e&&!c?t.report({node:a,loc:{start:{line:o.loc.end.line,column:o.loc.end.column-1},end:l.loc.start},messageId:"missing",fix(h){return a.optional?null:h.insertTextBefore(l," ")}}):!e&&!r&&p&&t.report({node:a,loc:{start:o.loc.end,end:l.loc.start},messageId:"unexpectedNewline",fix(h){if(!a.optional||n.commentsExistBetween(o,l))return null;let f=[o.range[1],l.range[0]],m=n.getTokenAfter(o);return m.range[0]===o.range[1]?h.replaceTextRange(f,"?. "):m.range[1]===l.range[0]?h.replaceTextRange(f," ?."):h.replaceTextRange(f," ?. ")}})}return{"CallExpression, NewExpression"(a){let o=n.getLastToken(a),l=n.getLastToken(a.callee),u=n.getFirstTokenBetween(l,o,Jf.isOpeningParenToken),c=u&&n.getTokenBefore(u,Jf.isNotQuestionDotToken);!(u&&u.range[1]<a.range[1])||i(a,c,u)},ImportExpression(a){let o=n.getFirstToken(a),l=n.getTokenAfter(o);i(a,o,l)}}}}});var BS=M((kee,TS)=>{b();v();"use strict";var FS=pe(),PS=ua();function s7(t){return t.type==="MemberExpression"&&t.object.type==="Identifier"&&t.object.name==="module"&&(t.property.type==="Identifier"&&t.property.name==="exports"||t.property.type==="Literal"&&t.property.value==="exports")}function IS(t,e){return e>=6?PS.keyword.isIdentifierES6(t):PS.keyword.isIdentifierES5(t)}var n7={enum:["always","never"]},_S={type:"object",properties:{considerPropertyDescriptor:{type:"boolean"},includeCommonJSModuleExports:{type:"boolean"}},additionalProperties:!1};TS.exports={meta:{type:"suggestion",docs:{description:"require function names to match the name of the variable or property to which they are assigned",recommended:!1,url:"https://eslint.org/docs/rules/func-name-matching"},schema:{anyOf:[{type:"array",additionalItems:!1,items:[n7,_S]},{type:"array",additionalItems:!1,items:[_S]}]},messages:{matchProperty:"Function name `{{funcName}}` should match property name `{{name}}`.",matchVariable:"Function name `{{funcName}}` should match variable name `{{name}}`.",notMatchProperty:"Function name `{{funcName}}` should not match property name `{{name}}`.",notMatchVariable:"Function name `{{funcName}}` should not match variable name `{{name}}`."}},create(t){let e=(typeof t.options[0]=="object"?t.options[0]:t.options[1])||{},r=typeof t.options[0]=="string"?t.options[0]:"always",n=e.considerPropertyDescriptor,s=e.includeCommonJSModuleExports,i=t.parserOptions&&t.parserOptions.ecmaVersion?t.parserOptions.ecmaVersion:5;function a(c,p,h){return h?h.type==="CallExpression"&&FS.isSpecificMemberAccess(h.callee,c,p):!1}function o(c,p){return r==="always"&&c!==p||r==="never"&&c===p}function l(c,p,h,f){let m;r==="always"&&f?m="matchProperty":r==="always"?m="matchVariable":f?m="notMatchProperty":m="notMatchVariable",t.report({node:c,messageId:m,data:{name:p,funcName:h}})}function u(c){return c.type==="Literal"&&typeof c.value=="string"}return{VariableDeclarator(c){!c.init||c.init.type!=="FunctionExpression"||c.id.type!=="Identifier"||c.init.id&&o(c.id.name,c.init.id.name)&&l(c,c.id.name,c.init.id.name,!1)},AssignmentExpression(c){if(c.right.type!=="FunctionExpression"||c.left.computed&&c.left.property.type!=="Literal"||!s&&s7(c.left)||c.left.type!=="Identifier"&&c.left.type!=="MemberExpression")return;let p=c.left.type==="MemberExpression",h=p?FS.getStaticPropertyName(c.left):c.left.name;c.right.id&&h&&IS(h)&&o(h,c.right.id.name)&&l(c,h,c.right.id.name,p)},"Property, PropertyDefinition[value]"(c){if(!!(c.value.type==="FunctionExpression"&&c.value.id)){if(c.key.type==="Identifier"&&!c.computed){let p=c.value.id.name,h=c.key.name;if(n&&h==="value"&&c.parent.type==="ObjectExpression")if(a("Object","defineProperty",c.parent.parent)||a("Reflect","defineProperty",c.parent.parent)){let f=c.parent.parent.arguments[1];u(f)&&o(f.value,p)&&l(c,f.value,p,!0)}else a("Object","defineProperties",c.parent.parent.parent.parent)||a("Object","create",c.parent.parent.parent.parent)?(h=c.parent.parent.key.name,!c.parent.parent.computed&&o(h,p)&&l(c,h,p,!0)):o(h,p)&&l(c,h,p,!0);else o(h,p)&&l(c,h,p,!0);return}u(c.key)&&IS(c.key.value,i)&&o(c.key.value,c.value.id.name)&&l(c,c.key.value,c.value.id.name,!0)}}}}}});var RS=M((Dee,OS)=>{b();v();"use strict";var Al=pe();function i7(t){return t&&t.defs[0].type==="FunctionName"}OS.exports={meta:{type:"suggestion",docs:{description:"require or disallow named `function` expressions",recommended:!1,url:"https://eslint.org/docs/rules/func-names"},schema:{definitions:{value:{enum:["always","as-needed","never"]}},items:[{$ref:"#/definitions/value"},{type:"object",properties:{generators:{$ref:"#/definitions/value"}},additionalProperties:!1}]},messages:{unnamed:"Unexpected unnamed {{name}}.",named:"Unexpected named {{name}}."}},create(t){let e=t.getSourceCode();function r(l){return l.generator&&t.options.length>1&&t.options[1].generators?t.options[1].generators:t.options[0]||"always"}function n(l){let u=l.parent;return u.type==="MethodDefinition"||u.type==="Property"&&(u.method||u.kind==="get"||u.kind==="set")}function s(l){let u=l.parent;return n(l)||u.type==="VariableDeclarator"&&u.id.type==="Identifier"&&u.init===l||u.type==="Property"&&u.value===l||u.type==="PropertyDefinition"&&u.value===l||u.type==="AssignmentExpression"&&u.left.type==="Identifier"&&u.right===l||u.type==="AssignmentPattern"&&u.left.type==="Identifier"&&u.right===l}function i(l){t.report({node:l,messageId:"unnamed",loc:Al.getFunctionHeadLoc(l,e),data:{name:Al.getFunctionNameWithKind(l)}})}function a(l){t.report({node:l,messageId:"named",loc:Al.getFunctionHeadLoc(l,e),data:{name:Al.getFunctionNameWithKind(l)}})}function o(l){let u=t.getDeclaredVariables(l)[0];if(i7(u)&&u.references.length>0)return;let c=Boolean(l.id&&l.id.name),p=r(l);p==="never"?c&&l.type!=="FunctionDeclaration"&&a(l):p==="as-needed"?!c&&!s(l)&&i(l):!c&&!n(l)&&i(l)}return{"FunctionExpression:exit":o,"ExportDefaultDeclaration > FunctionDeclaration":o}}}});var NS=M((Tee,LS)=>{b();v();"use strict";LS.exports={meta:{type:"suggestion",docs:{description:"enforce the consistent use of either `function` declarations or expressions",recommended:!1,url:"https://eslint.org/docs/rules/func-style"},schema:[{enum:["declaration","expression"]},{type:"object",properties:{allowArrowFunctions:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{expression:"Expected a function expression.",declaration:"Expected a function declaration."}},create(t){let e=t.options[0],r=t.options[1]&&t.options[1].allowArrowFunctions,n=e==="declaration",s=[],i={FunctionDeclaration(a){s.push(!1),!n&&a.parent.type!=="ExportDefaultDeclaration"&&t.report({node:a,messageId:"expression"})},"FunctionDeclaration:exit"(){s.pop()},FunctionExpression(a){s.push(!1),n&&a.parent.type==="VariableDeclarator"&&t.report({node:a.parent,messageId:"declaration"})},"FunctionExpression:exit"(){s.pop()},ThisExpression(){s.length>0&&(s[s.length-1]=!0)}};return r||(i.ArrowFunctionExpression=function(){s.push(!1)},i["ArrowFunctionExpression:exit"]=function(a){let o=s.pop();n&&!o&&a.parent.type==="VariableDeclarator"&&t.report({node:a.parent,messageId:"declaration"})}),i}}});var jS=M((Fee,MS)=>{b();v();"use strict";MS.exports={meta:{type:"layout",docs:{description:"enforce line breaks between arguments of a function call",recommended:!1,url:"https://eslint.org/docs/rules/function-call-argument-newline"},fixable:"whitespace",schema:[{enum:["always","never","consistent"]}],messages:{unexpectedLineBreak:"There should be no line break here.",missingLineBreak:"There should be a line break after this argument."}},create(t){let e=t.getSourceCode(),r={unexpected:{messageId:"unexpectedLineBreak",check:(i,a)=>i.loc.end.line!==a.loc.start.line,createFix:(i,a)=>o=>o.replaceTextRange([a.range[1],i.range[0]]," ")},missing:{messageId:"missingLineBreak",check:(i,a)=>i.loc.end.line===a.loc.start.line,createFix:(i,a)=>o=>o.replaceTextRange([a.range[1],i.range[0]],`
|
|
63
|
+
`)}};function n(i,a){for(let o=1;o<i.arguments.length;o++){let l=e.getLastToken(i.arguments[o-1]),u=e.getFirstToken(i.arguments[o]);if(a.check(l,u)){let c=e.getTokenBefore(u,{includeComments:!0}),p=c.type==="Line";t.report({node:i,loc:{start:c.loc.end,end:u.loc.start},messageId:a.messageId,fix:p?null:a.createFix(u,c)})}}}function s(i){if(i.arguments.length<2)return;let a=t.options[0]||"always";if(a==="never")n(i,r.unexpected);else if(a==="always")n(i,r.missing);else if(a==="consistent"){let o=e.getLastToken(i.arguments[0]),l=e.getFirstToken(i.arguments[1]);o.loc.end.line===l.loc.start.line?n(i,r.unexpected):n(i,r.missing)}}return{CallExpression:s,NewExpression:s}}}});var VS=M((Pee,qS)=>{b();v();"use strict";var Ur=pe();qS.exports={meta:{type:"layout",docs:{description:"enforce consistent line breaks inside function parentheses",recommended:!1,url:"https://eslint.org/docs/rules/function-paren-newline"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never","consistent","multiline","multiline-arguments"]},{type:"object",properties:{minItems:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{expectedBefore:"Expected newline before ')'.",expectedAfter:"Expected newline after '('.",expectedBetween:"Expected newline between arguments/params.",unexpectedBefore:"Unexpected newline before ')'.",unexpectedAfter:"Unexpected newline after '('."}},create(t){let e=t.getSourceCode(),r=t.options[0]||"multiline",n=r==="multiline",s=r==="multiline-arguments",i=r==="consistent",a;typeof r=="object"?a=r.minItems:r==="always"?a=0:r==="never"?a=Infinity:a=null;function o(p,h){return s&&p.length===1?h:n||s?p.some((f,m)=>m!==p.length-1&&f.loc.end.line!==p[m+1].loc.start.line):i?h:p.length>=a}function l(p,h){let f=p.leftParen,m=p.rightParen,x=e.getTokenAfter(f),E=e.getTokenBefore(m),S=!Ur.isTokenOnSameLine(f,x),T=!Ur.isTokenOnSameLine(E,m),I=o(h,S);S&&!I?t.report({node:f,messageId:"unexpectedAfter",fix(y){return e.getText().slice(f.range[1],x.range[0]).trim()?null:y.removeRange([f.range[1],x.range[0]])}}):!S&&I&&t.report({node:f,messageId:"expectedAfter",fix:y=>y.insertTextAfter(f,`
|
|
64
|
+
`)}),T&&!I?t.report({node:m,messageId:"unexpectedBefore",fix(y){return e.getText().slice(E.range[1],m.range[0]).trim()?null:y.removeRange([E.range[1],m.range[0]])}}):!T&&I&&t.report({node:m,messageId:"expectedBefore",fix:y=>y.insertTextBefore(m,`
|
|
65
|
+
`)})}function u(p,h){let f=p.leftParen,m=e.getTokenAfter(f),x=!Ur.isTokenOnSameLine(f,m),E=o(h,x);for(let S=0;S<=h.length-2;S++){let T=h[S],I=h[S+1];!(T.loc.end.line!==I.loc.start.line)&&E&&t.report({node:T,messageId:"expectedBetween",fix:w=>w.insertTextBefore(I,`
|
|
66
|
+
`)})}}function c(p){switch(p.type){case"NewExpression":if(!p.arguments.length&&!(Ur.isOpeningParenToken(e.getLastToken(p,{skip:1}))&&Ur.isClosingParenToken(e.getLastToken(p))))return null;case"CallExpression":return{leftParen:e.getTokenAfter(p.callee,Ur.isOpeningParenToken),rightParen:e.getLastToken(p)};case"FunctionDeclaration":case"FunctionExpression":{let h=e.getFirstToken(p,Ur.isOpeningParenToken),f=p.params.length?e.getTokenAfter(p.params[p.params.length-1],Ur.isClosingParenToken):e.getTokenAfter(h);return{leftParen:h,rightParen:f}}case"ArrowFunctionExpression":{let h=e.getFirstToken(p,{skip:p.async?1:0});if(!Ur.isOpeningParenToken(h))return null;let f=p.params.length?e.getTokenAfter(p.params[p.params.length-1],Ur.isClosingParenToken):e.getTokenAfter(h);return{leftParen:h,rightParen:f}}case"ImportExpression":{let h=e.getFirstToken(p,1),f=e.getLastToken(p);return{leftParen:h,rightParen:f}}default:throw new TypeError(`unexpected node with type ${p.type}`)}}return{[["ArrowFunctionExpression","CallExpression","FunctionDeclaration","FunctionExpression","ImportExpression","NewExpression"]](p){let h=c(p),f;p.type==="ImportExpression"?f=[p.source]:Ur.isFunction(p)?f=p.params:f=p.arguments,h&&(l(h,f),s&&u(h,f))}}}}});var $S=M((Iee,US)=>{b();v();"use strict";var Qf={oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}]};US.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing around `*` operators in generator functions",recommended:!1,url:"https://eslint.org/docs/rules/generator-star-spacing"},fixable:"whitespace",schema:[{oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"},named:Qf,anonymous:Qf,method:Qf},additionalProperties:!1}]}],messages:{missingBefore:"Missing space before *.",missingAfter:"Missing space after *.",unexpectedBefore:"Unexpected space before *.",unexpectedAfter:"Unexpected space after *."}},create(t){let e={before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}};function r(c,p){return c?typeof c=="string"?e[c]:Object.assign({},p,c):p}let n=function(c){let p=r(c,e.before);return{named:r(c.named,p),anonymous:r(c.anonymous,p),method:r(c.method,p)}}(t.options[0]||{}),s=t.getSourceCode();function i(c){return c.value==="*"&&c.type==="Punctuator"}function a(c){return s.getFirstToken(c.parent.method||c.parent.type==="MethodDefinition"?c.parent:c,i)}function o(c){return c[0].toUpperCase()+c.slice(1)}function l(c,p,h,f){if(!!(f.range[0]-h.range[1])!==n[c][p]){let m=h.value==="*",x=n[c][p],E=m?h:f,S=`${x?"missing":"unexpected"}${o(p)}`;t.report({node:E,messageId:S,fix(T){return x?m?T.insertTextAfter(E," "):T.insertTextBefore(E," "):T.removeRange([h.range[1],f.range[0]])}})}}function u(c){if(!c.generator)return;let p=a(c),h=s.getTokenBefore(p),f=s.getTokenAfter(p),m="named";c.parent.type==="MethodDefinition"||c.parent.type==="Property"&&c.parent.method?m="method":c.id||(m="anonymous"),m==="method"&&p===s.getFirstToken(c.parent)||l(m,"before",h,p),l(m,"after",p,f)}return{FunctionDeclaration:u,FunctionExpression:u}}}});var GS=M((_ee,WS)=>{b();v();"use strict";var ui=pe(),a7=/^(?:Arrow)?FunctionExpression$/u;function o7(t){return t.reachable}WS.exports={meta:{type:"problem",docs:{description:"enforce `return` statements in getters",recommended:!0,url:"https://eslint.org/docs/rules/getter-return"},fixable:null,schema:[{type:"object",properties:{allowImplicit:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{expected:"Expected to return a value in {{name}}.",expectedAlways:"Expected {{name}} to always return a value."}},create(t){let e=t.options[0]||{allowImplicit:!1},r=t.getSourceCode(),n={upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null};function s(a){n.shouldCheck&&n.codePath.currentSegments.some(o7)&&t.report({node:a,loc:ui.getFunctionHeadLoc(a,r),messageId:n.hasReturn?"expectedAlways":"expected",data:{name:ui.getFunctionNameWithKind(n.node)}})}function i(a){let o=a.parent;return!!(a7.test(a.type)&&a.body.type==="BlockStatement"&&(o.kind==="get"||o.type==="Property"&&ui.getStaticPropertyName(o)==="get"&&o.parent.type==="ObjectExpression"&&(o.parent.parent.type==="CallExpression"&&ui.getStaticPropertyName(o.parent.parent.callee)==="defineProperty"||o.parent.parent.type==="Property"&&o.parent.parent.parent.type==="ObjectExpression"&&o.parent.parent.parent.parent.type==="CallExpression"&&ui.getStaticPropertyName(o.parent.parent.parent.parent.callee)==="defineProperties")))}return{onCodePathStart(a,o){n={upper:n,codePath:a,hasReturn:!1,shouldCheck:i(o),node:o}},onCodePathEnd(){n=n.upper},ReturnStatement(a){n.shouldCheck&&(n.hasReturn=!0,!e.allowImplicit&&!a.argument&&t.report({node:a,messageId:"expected",data:{name:ui.getFunctionNameWithKind(n.node)}}))},"FunctionExpression:exit":s,"ArrowFunctionExpression:exit":s}}}});var HS=M((Bee,zS)=>{b();v();"use strict";var l7=["AssignmentExpression","VariableDeclarator","MemberExpression","ExpressionStatement","CallExpression","ConditionalExpression","Program","VariableDeclaration","ChainExpression"];function u7(t,e){let r=t.references.filter(n=>n.identifier.range[0]===e.range[0]&&n.identifier.range[1]===e.range[1]);return r.length===1?r[0]:null}function c7(t,e){let r=u7(t,e);return r&&r.resolved&&r.resolved.defs.length>0}zS.exports={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"require `require()` calls to be placed at top-level module scope",recommended:!1,url:"https://eslint.org/docs/rules/global-require"},schema:[],messages:{unexpected:"Unexpected require()."}},create(t){return{CallExpression(e){let r=t.getScope();e.callee.name==="require"&&!c7(r,e.callee)&&(t.getAncestors().every(s=>l7.indexOf(s.type)>-1)||t.report({node:e,messageId:"unexpected"}))}}}}});var YS=M((Oee,KS)=>{b();v();"use strict";var wl=pe();function f7(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let n=t[r],s=e[r];if(n.type!==s.type||n.value!==s.value)return!1}return!0}function p7(t,e){return typeof t=="string"&&typeof e=="string"?t===e:Array.isArray(t)&&Array.isArray(e)?f7(t,e):!1}function h7(t){return t.kind==="get"||t.kind==="set"}KS.exports={meta:{type:"suggestion",docs:{description:"require grouped accessor pairs in object literals and classes",recommended:!1,url:"https://eslint.org/docs/rules/grouped-accessor-pairs"},schema:[{enum:["anyOrder","getBeforeSet","setBeforeGet"]}],messages:{notGrouped:"Accessor pair {{ formerName }} and {{ latterName }} should be grouped.",invalidOrder:"Expected {{ latterName }} to be before {{ formerName }}."}},create(t){let e=t.options[0]||"anyOrder",r=t.getSourceCode();function n(o,l,u){t.report({node:u,messageId:o,loc:wl.getFunctionHeadLoc(u.value,r),data:{formerName:wl.getFunctionNameWithKind(l.value),latterName:wl.getFunctionNameWithKind(u.value)}})}function s(o){let l=wl.getStaticPropertyName(o);return{key:l!==null?l:r.getTokens(o.key),getters:o.kind==="get"?[o]:[],setters:o.kind==="set"?[o]:[]}}function i(o,l){let u=o.find(c=>p7(c.key,l.key));return u?(u.getters.push(...l.getters),u.setters.push(...l.setters)):o.push(l),o}function a(o,l){let u=o.filter(l).filter(h7).map(s).reduce(i,[]);for(let{getters:c,setters:p}of u)if(c.length===1&&p.length===1){let[h]=c,[f]=p,m=o.indexOf(h),x=o.indexOf(f),E=m<x?h:f,S=m<x?f:h;Math.abs(m-x)>1?n("notGrouped",E,S):(e==="getBeforeSet"&&m>x||e==="setBeforeGet"&&m<x)&&n("invalidOrder",E,S)}}return{ObjectExpression(o){a(o.properties,l=>l.type==="Property")},ClassBody(o){a(o.body,l=>l.type==="MethodDefinition"&&!l.static),a(o.body,l=>l.type==="MethodDefinition"&&l.static)}}}}});var QS=M((Ree,JS)=>{b();v();"use strict";JS.exports={meta:{type:"suggestion",docs:{description:"require `for-in` loops to include an `if` statement",recommended:!1,url:"https://eslint.org/docs/rules/guard-for-in"},schema:[],messages:{wrap:"The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype."}},create(t){return{ForInStatement(e){let r=e.body;if(r.type!=="EmptyStatement"&&r.type!=="IfStatement"&&!(r.type==="BlockStatement"&&r.body.length===0)&&!(r.type==="BlockStatement"&&r.body.length===1&&r.body[0].type==="IfStatement")){if(r.type==="BlockStatement"&&r.body.length>=1&&r.body[0].type==="IfStatement"){let n=r.body[0];if(n.consequent.type==="ContinueStatement"||n.consequent.type==="BlockStatement"&&n.consequent.body.length===1&&n.consequent.body[0].type==="ContinueStatement")return}t.report({node:e,messageId:"wrap"})}}}}}});var ZS=M((Lee,XS)=>{b();v();"use strict";XS.exports={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"require error handling in callbacks",recommended:!1,url:"https://eslint.org/docs/rules/handle-callback-err"},schema:[{type:"string"}],messages:{expected:"Expected error to be handled."}},create(t){let e=t.options[0]||"err";function r(a){return a[0]==="^"}function n(a){return r(e)?new RegExp(e,"u").test(a):a===e}function s(a){return a.variables.filter(o=>o.defs[0]&&o.defs[0].type==="Parameter")}function i(a){let o=t.getScope(),l=s(o),u=l[0];u&&n(u.name)&&u.references.length===0&&t.report({node:a,messageId:"expected"})}return{FunctionDeclaration:i,FunctionExpression:i,ArrowFunctionExpression:i}}}});var tA=M((Nee,eA)=>{b();v();"use strict";function m7(t){let e=t.parent;return e.type==="AssignmentExpression"&&e.left===t||e.type==="ArrayPattern"||e.type==="RestElement"||e.type==="Property"&&e.value===t&&e.parent.type==="ObjectPattern"||e.type==="AssignmentPattern"&&e.left===t}function d7(t){let e=t.parent;return e.type==="ImportSpecifier"&&e.imported!==e.local&&e.imported===t||e.type==="ExportSpecifier"&&e.parent.source&&e.local!==e.exported&&e.local===t}function g7(t){let e=t.parent;return!e.computed&&e.type==="Property"&&e.parent.type==="ObjectPattern"&&e.value!==t&&e.key===t}function y7(t){let e=t.parent;return e.type==="Property"&&e.parent.type==="ObjectExpression"&&e.shorthand}eA.exports={meta:{deprecated:!0,replacedBy:["id-denylist"],type:"suggestion",docs:{description:"disallow specified identifiers",recommended:!1,url:"https://eslint.org/docs/rules/id-blacklist"},schema:{type:"array",items:{type:"string"},uniqueItems:!0},messages:{restricted:"Identifier '{{name}}' is restricted."}},create(t){let e=new Set(t.options),r=new Set,n;function s(l){return e.has(l)}function i(l){let u=n.set.get(l.name);return u&&u.defs.length===0&&u.references.some(c=>c.identifier===l)}function a(l){let u=l.parent;return u.type==="MemberExpression"&&u.property===l&&!u.computed?m7(u):u.type!=="CallExpression"&&u.type!=="NewExpression"&&!d7(l)&&!g7(l)&&!(i(l)&&!y7(l))}function o(l){r.has(l.range.toString())||(t.report({node:l,messageId:"restricted",data:{name:l.name}}),r.add(l.range.toString()))}return{Program(){n=t.getScope()},Identifier(l){s(l.name)&&a(l)&&o(l)}}}}});var sA=M((Mee,rA)=>{b();v();"use strict";function x7(t){let e=t.parent;return e.type==="AssignmentExpression"&&e.left===t||e.type==="ArrayPattern"||e.type==="RestElement"||e.type==="Property"&&e.value===t&&e.parent.type==="ObjectPattern"||e.type==="AssignmentPattern"&&e.left===t}function E7(t){let e=t.parent;return e.type==="ImportSpecifier"&&e.imported!==e.local&&e.imported===t||e.type==="ExportSpecifier"&&e.parent.source&&e.local!==e.exported&&e.local===t}function b7(t){let e=t.parent;return!e.computed&&e.type==="Property"&&e.parent.type==="ObjectPattern"&&e.key===t}rA.exports={meta:{type:"suggestion",docs:{description:"disallow specified identifiers",recommended:!1,url:"https://eslint.org/docs/rules/id-denylist"},schema:{type:"array",items:{type:"string"},uniqueItems:!0},messages:{restricted:"Identifier '{{name}}' is restricted.",restrictedPrivate:"Identifier '#{{name}}' is restricted."}},create(t){let e=new Set(t.options),r=new Set,n;function s(l){return e.has(l)}function i(l){let u=n.set.get(l.name);return u&&u.defs.length===0&&u.references.some(c=>c.identifier===l)}function a(l){let u=l.parent;return u.type==="MemberExpression"&&u.property===l&&!u.computed?x7(u):u.type!=="CallExpression"&&u.type!=="NewExpression"&&!E7(l)&&!b7(l)&&!i(l)}function o(l){if(!r.has(l.range.toString())){let u=l.type==="PrivateIdentifier";t.report({node:l,messageId:u?"restrictedPrivate":"restricted",data:{name:l.name}}),r.add(l.range.toString())}}return{Program(){n=t.getScope()},[["Identifier","PrivateIdentifier"]](l){s(l.name)&&a(l)&&o(l)}}}}});var iA=M((jee,nA)=>{b();v();"use strict";nA.exports={meta:{type:"suggestion",docs:{description:"enforce minimum and maximum identifier lengths",recommended:!1,url:"https://eslint.org/docs/rules/id-length"},schema:[{type:"object",properties:{min:{type:"integer",default:2},max:{type:"integer"},exceptions:{type:"array",uniqueItems:!0,items:{type:"string"}},exceptionPatterns:{type:"array",uniqueItems:!0,items:{type:"string"}},properties:{enum:["always","never"]}},additionalProperties:!1}],messages:{tooShort:"Identifier name '{{name}}' is too short (< {{min}}).",tooShortPrivate:"Identifier name '#{{name}}' is too short (< {{min}}).",tooLong:"Identifier name '{{name}}' is too long (> {{max}}).",tooLongPrivate:"Identifier name #'{{name}}' is too long (> {{max}})."}},create(t){let e=t.options[0]||{},r=typeof e.min!="undefined"?e.min:2,n=typeof e.max!="undefined"?e.max:Infinity,s=e.properties!=="never",i=new Set(e.exceptions),a=(e.exceptionPatterns||[]).map(c=>new RegExp(c,"u")),o=new Set;function l(c){return a.some(p=>p.test(c))}let u={MemberExpression:s&&function(c){return!c.computed&&(c.parent.left===c&&c.parent.type==="AssignmentExpression"||c.parent.type==="Property"&&c.parent.value===c&&c.parent.parent.type==="ObjectPattern"&&c.parent.parent.parent.left===c.parent.parent)},AssignmentPattern(c,p){return c.left===p},VariableDeclarator(c,p){return c.id===p},Property(c,p){if(c.parent.type==="ObjectPattern"){let h=c.value.name===c.key.name;return!h&&c.value===p||h&&c.key===p&&s}return s&&!c.computed&&c.key.name===p.name},ImportDefaultSpecifier:!0,RestElement:!0,FunctionExpression:!0,ArrowFunctionExpression:!0,ClassDeclaration:!0,FunctionDeclaration:!0,MethodDefinition:!0,PropertyDefinition:!0,CatchClause:!0,ArrayPattern:!0};return{[["Identifier","PrivateIdentifier"]](c){let p=c.name,h=c.parent,f=p.length<r,m=p.length>n;if(!(f||m)||i.has(p)||l(p))return;let x=u[h.type];if(x&&!o.has(c.range.toString())&&(x===!0||x(h,c))){o.add(c.range.toString());let E=f?"tooShort":"tooLong";c.type==="PrivateIdentifier"&&(E+="Private"),t.report({node:c,messageId:E,data:{name:p,min:r,max:n}})}}}}}});var oA=M((qee,aA)=>{b();v();"use strict";aA.exports={meta:{type:"suggestion",docs:{description:"require identifiers to match a specified regular expression",recommended:!1,url:"https://eslint.org/docs/rules/id-match"},schema:[{type:"string"},{type:"object",properties:{properties:{type:"boolean",default:!1},classFields:{type:"boolean",default:!1},onlyDeclarations:{type:"boolean",default:!1},ignoreDestructuring:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{notMatch:"Identifier '{{name}}' does not match the pattern '{{pattern}}'.",notMatchPrivate:"Identifier '#{{name}}' does not match the pattern '{{pattern}}'."}},create(t){let e=t.options[0]||"^.+$",r=new RegExp(e,"u"),n=t.options[1]||{},s=!!n.properties,i=!!n.classFields,a=!!n.onlyDeclarations,o=!!n.ignoreDestructuring,l,u=new Set,c=new Set(["CallExpression","NewExpression"]),p=new Set(["FunctionDeclaration","VariableDeclarator"]),h=new Set(["ImportSpecifier","ImportNamespaceSpecifier","ImportDefaultSpecifier"]);function f(T){let I=l.set.get(T.name);return I&&I.defs.length===0&&I.references.some(y=>y.identifier===T)}function m(T){return!r.test(T)}function x(T){let{parent:I}=T;for(;I;){if(I.type==="ObjectPattern")return!0;I=I.parent}return!1}function E(T,I){return(!a||p.has(T.type))&&!c.has(T.type)&&m(I)}function S(T){if(!u.has(T.range.toString())){let I=T.type==="PrivateIdentifier"?"notMatchPrivate":"notMatch";t.report({node:T,messageId:I,data:{name:T.name,pattern:e}}),u.add(T.range.toString())}}return{Program(){l=t.getScope()},Identifier(T){let I=T.name,y=T.parent,w=y.type==="MemberExpression"?y.parent:y;if(!f(T))if(y.type==="MemberExpression"){if(!s)return;y.object.type==="Identifier"&&y.object.name===I||w.type==="AssignmentExpression"&&w.left.type==="MemberExpression"&&w.left.property.name===T.name?m(I)&&S(T):w.type==="AssignmentExpression"&&w.right.type!=="MemberExpression"&&m(I)&&S(T)}else if(y.type==="Property"&&y.parent.type==="ObjectExpression"&&y.key===T&&!y.computed)s&&m(I)&&S(T);else if(y.type==="Property"||y.type==="AssignmentPattern"){if(y.parent&&y.parent.type==="ObjectPattern"){!o&&y.shorthand&&y.value.left&&m(I)&&S(T);let D=y.key.name===y.value.name;if(!D&&y.key===T)return;y.value.name&&m(I)&&!(D&&o)&&S(T)}if(!s&&!y.computed||o&&x(T))return;y.right!==T&&E(w,I)&&S(T)}else h.has(y.type)?y.local&&y.local.name===T.name&&m(I)&&S(T):y.type==="PropertyDefinition"?i&&m(I)&&S(T):E(w,I)&&S(T)},PrivateIdentifier(T){T.parent.type==="PropertyDefinition"&&!i||m(T.name)&&S(T)}}}}});var uA=M((Vee,lA)=>{b();v();"use strict";var{isCommentToken:v7,isNotOpeningParenToken:C7}=pe();lA.exports={meta:{type:"layout",docs:{description:"enforce the location of arrow function bodies",recommended:!1,url:"https://eslint.org/docs/rules/implicit-arrow-linebreak"},fixable:"whitespace",schema:[{enum:["beside","below"]}],messages:{expected:"Expected a linebreak before this expression.",unexpected:"Expected no linebreak before this expression."}},create(t){let e=t.getSourceCode(),r=t.options[0]||"beside";function n(s){if(s.body.type==="BlockStatement")return;let i=e.getTokenBefore(s.body,C7),a=e.getTokenAfter(i);i.loc.end.line===a.loc.start.line&&r==="below"?t.report({node:a,messageId:"expected",fix:o=>o.insertTextBefore(a,`
|
|
67
|
+
`)}):i.loc.end.line!==a.loc.start.line&&r==="beside"&&t.report({node:a,messageId:"unexpected",fix(o){return e.getFirstTokenBetween(i,a,{includeComments:!0,filter:v7})?null:o.replaceTextRange([i.range[1],a.range[0]]," ")}})}return{ArrowFunctionExpression:s=>n(s)}}}});var pA=M((Uee,cA)=>{b();v();"use strict";cA.exports=S7;var kt=0,dt=1;function gr(t,e,r,n,s,i){this._color=t,this.key=e,this.value=r,this.left=n,this.right=s,this._count=i}function rs(t){return new gr(t._color,t.key,t.value,t.left,t.right,t._count)}function Vs(t,e){return new gr(t,e.key,e.value,e.left,e.right,e._count)}function Pt(t){t._count=1+(t.left?t.left._count:0)+(t.right?t.right._count:0)}function Us(t,e){this._compare=t,this.root=e}var ir=Us.prototype;Object.defineProperty(ir,"keys",{get:function(){var t=[];return this.forEach(function(e,r){t.push(e)}),t}});Object.defineProperty(ir,"values",{get:function(){var t=[];return this.forEach(function(e,r){t.push(r)}),t}});Object.defineProperty(ir,"length",{get:function(){return this.root?this.root._count:0}});ir.insert=function(t,e){for(var r=this._compare,n=this.root,s=[],i=[];n;){var a=r(t,n.key);s.push(n),i.push(a),a<=0?n=n.left:n=n.right}s.push(new gr(kt,t,e,null,null,1));for(var o=s.length-2;o>=0;--o){var n=s[o];i[o]<=0?s[o]=new gr(n._color,n.key,n.value,s[o+1],n.right,n._count+1):s[o]=new gr(n._color,n.key,n.value,n.left,s[o+1],n._count+1)}for(var o=s.length-1;o>1;--o){var l=s[o-1],n=s[o];if(l._color===dt||n._color===dt)break;var u=s[o-2];if(u.left===l)if(l.left===n){var c=u.right;if(c&&c._color===kt)l._color=dt,u.right=Vs(dt,c),u._color=kt,o-=1;else{if(u._color=kt,u.left=l.right,l._color=dt,l.right=u,s[o-2]=l,s[o-1]=n,Pt(u),Pt(l),o>=3){var p=s[o-3];p.left===u?p.left=l:p.right=l}break}}else{var c=u.right;if(c&&c._color===kt)l._color=dt,u.right=Vs(dt,c),u._color=kt,o-=1;else{if(l.right=n.left,u._color=kt,u.left=n.right,n._color=dt,n.left=l,n.right=u,s[o-2]=n,s[o-1]=l,Pt(u),Pt(l),Pt(n),o>=3){var p=s[o-3];p.left===u?p.left=n:p.right=n}break}}else if(l.right===n){var c=u.left;if(c&&c._color===kt)l._color=dt,u.left=Vs(dt,c),u._color=kt,o-=1;else{if(u._color=kt,u.right=l.left,l._color=dt,l.left=u,s[o-2]=l,s[o-1]=n,Pt(u),Pt(l),o>=3){var p=s[o-3];p.right===u?p.right=l:p.left=l}break}}else{var c=u.left;if(c&&c._color===kt)l._color=dt,u.left=Vs(dt,c),u._color=kt,o-=1;else{if(l.left=n.right,u._color=kt,u.right=n.left,n._color=dt,n.right=l,n.left=u,s[o-2]=n,s[o-1]=l,Pt(u),Pt(l),Pt(n),o>=3){var p=s[o-3];p.right===u?p.right=n:p.left=n}break}}}return s[0]._color=dt,new Us(r,s[0])};function Xf(t,e){if(e.left){var r=Xf(t,e.left);if(r)return r}var r=t(e.key,e.value);if(r)return r;if(e.right)return Xf(t,e.right)}function Zf(t,e,r,n){var s=e(t,n.key);if(s<=0){if(n.left){var i=Zf(t,e,r,n.left);if(i)return i}var i=r(n.key,n.value);if(i)return i}if(n.right)return Zf(t,e,r,n.right)}function ep(t,e,r,n,s){var i=r(t,s.key),a=r(e,s.key),o;if(i<=0&&(s.left&&(o=ep(t,e,r,n,s.left),o)||a>0&&(o=n(s.key,s.value),o)))return o;if(a>0&&s.right)return ep(t,e,r,n,s.right)}ir.forEach=function(e,r,n){if(!!this.root)switch(arguments.length){case 1:return Xf(e,this.root);case 2:return Zf(r,this._compare,e,this.root);case 3:return this._compare(r,n)>=0?void 0:ep(r,n,this._compare,e,this.root)}};Object.defineProperty(ir,"begin",{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.left;return new yr(this,t)}});Object.defineProperty(ir,"end",{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.right;return new yr(this,t)}});ir.at=function(t){if(t<0)return new yr(this,[]);for(var e=this.root,r=[];;){if(r.push(e),e.left){if(t<e.left._count){e=e.left;continue}t-=e.left._count}if(!t)return new yr(this,r);if(t-=1,e.right){if(t>=e.right._count)break;e=e.right}else break}return new yr(this,[])};ir.ge=function(t){for(var e=this._compare,r=this.root,n=[],s=0;r;){var i=e(t,r.key);n.push(r),i<=0&&(s=n.length),i<=0?r=r.left:r=r.right}return n.length=s,new yr(this,n)};ir.gt=function(t){for(var e=this._compare,r=this.root,n=[],s=0;r;){var i=e(t,r.key);n.push(r),i<0&&(s=n.length),i<0?r=r.left:r=r.right}return n.length=s,new yr(this,n)};ir.lt=function(t){for(var e=this._compare,r=this.root,n=[],s=0;r;){var i=e(t,r.key);n.push(r),i>0&&(s=n.length),i<=0?r=r.left:r=r.right}return n.length=s,new yr(this,n)};ir.le=function(t){for(var e=this._compare,r=this.root,n=[],s=0;r;){var i=e(t,r.key);n.push(r),i>=0&&(s=n.length),i<0?r=r.left:r=r.right}return n.length=s,new yr(this,n)};ir.find=function(t){for(var e=this._compare,r=this.root,n=[];r;){var s=e(t,r.key);if(n.push(r),s===0)return new yr(this,n);s<=0?r=r.left:r=r.right}return new yr(this,[])};ir.remove=function(t){var e=this.find(t);return e?e.remove():this};ir.get=function(t){for(var e=this._compare,r=this.root;r;){var n=e(t,r.key);if(n===0)return r.value;n<=0?r=r.left:r=r.right}};function yr(t,e){this.tree=t,this._stack=e}var Fr=yr.prototype;Object.defineProperty(Fr,"valid",{get:function(){return this._stack.length>0}});Object.defineProperty(Fr,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0});Fr.clone=function(){return new yr(this.tree,this._stack.slice())};function fA(t,e){t.key=e.key,t.value=e.value,t.left=e.left,t.right=e.right,t._color=e._color,t._count=e._count}function A7(t){for(var e,r,n,s,i=t.length-1;i>=0;--i){if(e=t[i],i===0){e._color=dt;return}if(r=t[i-1],r.left===e){if(n=r.right,n.right&&n.right._color===kt){if(n=r.right=rs(n),s=n.right=rs(n.right),r.right=n.left,n.left=r,n.right=s,n._color=r._color,e._color=dt,r._color=dt,s._color=dt,Pt(r),Pt(n),i>1){var a=t[i-2];a.left===r?a.left=n:a.right=n}t[i-1]=n;return}else if(n.left&&n.left._color===kt){if(n=r.right=rs(n),s=n.left=rs(n.left),r.right=s.left,n.left=s.right,s.left=r,s.right=n,s._color=r._color,r._color=dt,n._color=dt,e._color=dt,Pt(r),Pt(n),Pt(s),i>1){var a=t[i-2];a.left===r?a.left=s:a.right=s}t[i-1]=s;return}if(n._color===dt)if(r._color===kt){r._color=dt,r.right=Vs(kt,n);return}else{r.right=Vs(kt,n);continue}else{if(n=rs(n),r.right=n.left,n.left=r,n._color=r._color,r._color=kt,Pt(r),Pt(n),i>1){var a=t[i-2];a.left===r?a.left=n:a.right=n}t[i-1]=n,t[i]=r,i+1<t.length?t[i+1]=e:t.push(e),i=i+2}}else{if(n=r.left,n.left&&n.left._color===kt){if(n=r.left=rs(n),s=n.left=rs(n.left),r.left=n.right,n.right=r,n.left=s,n._color=r._color,e._color=dt,r._color=dt,s._color=dt,Pt(r),Pt(n),i>1){var a=t[i-2];a.right===r?a.right=n:a.left=n}t[i-1]=n;return}else if(n.right&&n.right._color===kt){if(n=r.left=rs(n),s=n.right=rs(n.right),r.left=s.right,n.right=s.left,s.right=r,s.left=n,s._color=r._color,r._color=dt,n._color=dt,e._color=dt,Pt(r),Pt(n),Pt(s),i>1){var a=t[i-2];a.right===r?a.right=s:a.left=s}t[i-1]=s;return}if(n._color===dt)if(r._color===kt){r._color=dt,r.left=Vs(kt,n);return}else{r.left=Vs(kt,n);continue}else{if(n=rs(n),r.left=n.right,n.right=r,n._color=r._color,r._color=kt,Pt(r),Pt(n),i>1){var a=t[i-2];a.right===r?a.right=n:a.left=n}t[i-1]=n,t[i]=r,i+1<t.length?t[i+1]=e:t.push(e),i=i+2}}}}Fr.remove=function(){var t=this._stack;if(t.length===0)return this.tree;var e=new Array(t.length),r=t[t.length-1];e[e.length-1]=new gr(r._color,r.key,r.value,r.left,r.right,r._count);for(var n=t.length-2;n>=0;--n){var r=t[n];r.left===t[n+1]?e[n]=new gr(r._color,r.key,r.value,e[n+1],r.right,r._count):e[n]=new gr(r._color,r.key,r.value,r.left,e[n+1],r._count)}if(r=e[e.length-1],r.left&&r.right){var s=e.length;for(r=r.left;r.right;)e.push(r),r=r.right;var i=e[s-1];e.push(new gr(r._color,i.key,i.value,r.left,r.right,r._count)),e[s-1].key=r.key,e[s-1].value=r.value;for(var n=e.length-2;n>=s;--n)r=e[n],e[n]=new gr(r._color,r.key,r.value,r.left,e[n+1],r._count);e[s-1].left=e[s]}if(r=e[e.length-1],r._color===kt){var a=e[e.length-2];a.left===r?a.left=null:a.right===r&&(a.right=null),e.pop();for(var n=0;n<e.length;++n)e[n]._count--;return new Us(this.tree._compare,e[0])}else if(r.left||r.right){r.left?fA(r,r.left):r.right&&fA(r,r.right),r._color=dt;for(var n=0;n<e.length-1;++n)e[n]._count--;return new Us(this.tree._compare,e[0])}else{if(e.length===1)return new Us(this.tree._compare,null);for(var n=0;n<e.length;++n)e[n]._count--;var o=e[e.length-2];A7(e),o.left===r?o.left=null:o.right=null}return new Us(this.tree._compare,e[0])};Object.defineProperty(Fr,"key",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].key},enumerable:!0});Object.defineProperty(Fr,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0});Object.defineProperty(Fr,"index",{get:function(){var t=0,e=this._stack;if(e.length===0){var r=this.tree.root;return r?r._count:0}else e[e.length-1].left&&(t=e[e.length-1].left._count);for(var n=e.length-2;n>=0;--n)e[n+1]===e[n].right&&(++t,e[n].left&&(t+=e[n].left._count));return t},enumerable:!0});Fr.next=function(){var t=this._stack;if(t.length!==0){var e=t[t.length-1];if(e.right)for(e=e.right;e;)t.push(e),e=e.left;else for(t.pop();t.length>0&&t[t.length-1].right===e;)e=t[t.length-1],t.pop()}};Object.defineProperty(Fr,"hasNext",{get:function(){var t=this._stack;if(t.length===0)return!1;if(t[t.length-1].right)return!0;for(var e=t.length-1;e>0;--e)if(t[e-1].left===t[e])return!0;return!1}});Fr.update=function(t){var e=this._stack;if(e.length===0)throw new Error("Can't update empty node!");var r=new Array(e.length),n=e[e.length-1];r[r.length-1]=new gr(n._color,n.key,t,n.left,n.right,n._count);for(var s=e.length-2;s>=0;--s)n=e[s],n.left===e[s+1]?r[s]=new gr(n._color,n.key,n.value,r[s+1],n.right,n._count):r[s]=new gr(n._color,n.key,n.value,n.left,r[s+1],n._count);return new Us(this.tree._compare,r[0])};Fr.prev=function(){var t=this._stack;if(t.length!==0){var e=t[t.length-1];if(e.left)for(e=e.left;e;)t.push(e),e=e.right;else for(t.pop();t.length>0&&t[t.length-1].left===e;)e=t[t.length-1],t.pop()}};Object.defineProperty(Fr,"hasPrev",{get:function(){var t=this._stack;if(t.length===0)return!1;if(t[t.length-1].left)return!0;for(var e=t.length-1;e>0;--e)if(t[e-1].right===t[e])return!0;return!1}});function w7(t,e){return t<e?-1:t>e?1:0}function S7(t){return new Us(t||w7,null)}});var yA=M(($ee,hA)=>{b();v();"use strict";var k7=pA(),ft=pe(),D7=new Set(["AssignmentExpression","AssignmentPattern","ArrayExpression","ArrayPattern","ArrowFunctionExpression","AwaitExpression","BlockStatement","BinaryExpression","BreakStatement","CallExpression","CatchClause","ChainExpression","ClassBody","ClassDeclaration","ClassExpression","ConditionalExpression","ContinueStatement","DoWhileStatement","DebuggerStatement","EmptyStatement","ExperimentalRestProperty","ExperimentalSpreadProperty","ExpressionStatement","ForStatement","ForInStatement","ForOfStatement","FunctionDeclaration","FunctionExpression","Identifier","IfStatement","Literal","LabeledStatement","LogicalExpression","MemberExpression","MetaProperty","MethodDefinition","NewExpression","ObjectExpression","ObjectPattern","PrivateIdentifier","Program","Property","PropertyDefinition","RestElement","ReturnStatement","SequenceExpression","SpreadElement","StaticBlock","Super","SwitchCase","SwitchStatement","TaggedTemplateExpression","TemplateElement","TemplateLiteral","ThisExpression","ThrowStatement","TryStatement","UnaryExpression","UpdateExpression","VariableDeclaration","VariableDeclarator","WhileStatement","WithStatement","YieldExpression","JSXFragment","JSXOpeningFragment","JSXClosingFragment","JSXIdentifier","JSXNamespacedName","JSXMemberExpression","JSXEmptyExpression","JSXExpressionContainer","JSXElement","JSXClosingElement","JSXOpeningElement","JSXAttribute","JSXSpreadAttribute","JSXText","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","ExportSpecifier","ImportDeclaration","ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier","ImportExpression"]),mA=class{constructor(){this._rbTree=k7()}insert(e,r){let n=this._rbTree.find(e);n.valid?this._rbTree=n.update(r):this._rbTree=this._rbTree.insert(e,r)}findLe(e){let r=this._rbTree.le(e);return r&&{key:r.key,value:r.value}}deleteRange(e,r){if(e===r)return;let n=this._rbTree.ge(e);for(;n.valid&&n.key<r;)this._rbTree=this._rbTree.remove(n.key),n.next()}},dA=class{constructor(e){this.sourceCode=e,this.firstTokensByLineNumber=e.tokensAndComments.reduce((r,n)=>(r.has(n.loc.start.line)||r.set(n.loc.start.line,n),!r.has(n.loc.end.line)&&e.text.slice(n.range[1]-n.loc.end.column,n.range[1]).trim()&&r.set(n.loc.end.line,n),r),new Map)}getFirstTokenOfLine(e){return this.firstTokensByLineNumber.get(e.loc.start.line)}isFirstTokenOfLine(e){return this.getFirstTokenOfLine(e)===e}getTokenIndent(e){return this.sourceCode.text.slice(e.range[0]-e.loc.start.column,e.range[0])}},gA=class{constructor(e,r,n){this._tokenInfo=e,this._indentSize=r,this._indentType=n,this._tree=new mA,this._tree.insert(0,{offset:0,from:null,force:!1}),this._lockedFirstTokens=new WeakMap,this._desiredIndentCache=new WeakMap,this._ignoredTokens=new WeakSet}_getOffsetDescriptor(e){return this._tree.findLe(e.range[0]).value}matchOffsetOf(e,r){this._lockedFirstTokens.set(r,e)}setDesiredOffset(e,r,n){return this.setDesiredOffsets(e.range,r,n)}setDesiredOffsets(e,r,n,s){let i={offset:n,from:r,force:s},a=this._tree.findLe(e[1]).value,o=r&&r.range[0]>=e[0]&&r.range[1]<=e[1],l=o&&this._getOffsetDescriptor(r);this._tree.deleteRange(e[0]+1,e[1]),this._tree.insert(e[0],i),o&&(this._tree.insert(r.range[0],l),this._tree.insert(r.range[1],i)),this._tree.insert(e[1],a)}getDesiredIndent(e){if(!this._desiredIndentCache.has(e))if(this._ignoredTokens.has(e))this._desiredIndentCache.set(e,this._tokenInfo.getTokenIndent(e));else if(this._lockedFirstTokens.has(e)){let r=this._lockedFirstTokens.get(e);this._desiredIndentCache.set(e,this.getDesiredIndent(this._tokenInfo.getFirstTokenOfLine(r))+this._indentType.repeat(r.loc.start.column-this._tokenInfo.getFirstTokenOfLine(r).loc.start.column))}else{let r=this._getOffsetDescriptor(e),n=r.from&&r.from.loc.start.line===e.loc.start.line&&!/^\s*?\n/u.test(e.value)&&!r.force?0:r.offset*this._indentSize;this._desiredIndentCache.set(e,(r.from?this.getDesiredIndent(r.from):"")+this._indentType.repeat(n))}return this._desiredIndentCache.get(e)}ignoreToken(e){this._tokenInfo.isFirstTokenOfLine(e)&&this._ignoredTokens.add(e)}getFirstDependency(e){return this._getOffsetDescriptor(e).from}},ss={oneOf:[{type:"integer",minimum:0},{enum:["first","off"]}]};hA.exports={meta:{type:"layout",docs:{description:"enforce consistent indentation",recommended:!1,url:"https://eslint.org/docs/rules/indent"},fixable:"whitespace",schema:[{oneOf:[{enum:["tab"]},{type:"integer",minimum:0}]},{type:"object",properties:{SwitchCase:{type:"integer",minimum:0,default:0},VariableDeclarator:{oneOf:[ss,{type:"object",properties:{var:ss,let:ss,const:ss},additionalProperties:!1}]},outerIIFEBody:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},MemberExpression:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},FunctionDeclaration:{type:"object",properties:{parameters:ss,body:{type:"integer",minimum:0}},additionalProperties:!1},FunctionExpression:{type:"object",properties:{parameters:ss,body:{type:"integer",minimum:0}},additionalProperties:!1},StaticBlock:{type:"object",properties:{body:{type:"integer",minimum:0}},additionalProperties:!1},CallExpression:{type:"object",properties:{arguments:ss},additionalProperties:!1},ArrayExpression:ss,ObjectExpression:ss,ImportDeclaration:ss,flatTernaryExpressions:{type:"boolean",default:!1},offsetTernaryExpressions:{type:"boolean",default:!1},ignoredNodes:{type:"array",items:{type:"string",not:{pattern:":exit$"}}},ignoreComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{wrongIndentation:"Expected indentation of {{expected}} but found {{actual}}."}},create(t){let e=1,r=1,n=1,s="space",i=4,a={SwitchCase:0,VariableDeclarator:{var:e,let:e,const:e},outerIIFEBody:1,FunctionDeclaration:{parameters:r,body:n},FunctionExpression:{parameters:r,body:n},StaticBlock:{body:n},CallExpression:{arguments:r},MemberExpression:1,ArrayExpression:1,ObjectExpression:1,ImportDeclaration:1,flatTernaryExpressions:!1,ignoredNodes:[],ignoreComments:!1};t.options.length&&(t.options[0]==="tab"?(i=1,s="tab"):(i=t.options[0],s="space"),t.options[1]&&(Object.assign(a,t.options[1]),(typeof a.VariableDeclarator=="number"||a.VariableDeclarator==="first")&&(a.VariableDeclarator={var:a.VariableDeclarator,let:a.VariableDeclarator,const:a.VariableDeclarator})));let o=t.getSourceCode(),l=new dA(o),u=new gA(l,i,s==="space"?" ":" "),c=new WeakSet;function p(F,U,Q){let B=`${F} ${s}${F===1?"":"s"}`,K=`space${U===1?"":"s"}`,X=`tab${Q===1?"":"s"}`,ie;return U>0?ie=s==="space"?U:`${U} ${K}`:Q>0?ie=s==="tab"?Q:`${Q} ${X}`:ie="0",{expected:B,actual:ie}}function h(F,U){let Q=Array.from(l.getTokenIndent(F)),B=Q.filter(X=>X===" ").length,K=Q.filter(X=>X===" ").length;t.report({node:F,messageId:"wrongIndentation",data:p(U.length,B,K),loc:{start:{line:F.loc.start.line,column:0},end:{line:F.loc.start.line,column:F.loc.start.column}},fix(X){let ie=[F.range[0]-F.loc.start.column,F.range[0]],ve=U;return X.replaceTextRange(ie,ve)}})}function f(F,U){let Q=l.getTokenIndent(F);return Q===U||Q.includes(" ")&&Q.includes(" ")}function m(F){if(!F.parent||F.parent.type!=="CallExpression"||F.parent.callee!==F)return!1;let U=F.parent&&F.parent.parent;for(;U.type==="UnaryExpression"&&["!","~","+","-"].indexOf(U.operator)>-1||U.type==="AssignmentExpression"||U.type==="LogicalExpression"||U.type==="SequenceExpression"||U.type==="VariableDeclarator";)U=U.parent;return(U.type==="ExpressionStatement"||U.type==="VariableDeclaration")&&U.parent.type==="Program"}function x(F){let Q=F.match(/\s*$/u)[0].match(ft.createGlobalLinebreakMatcher());return Q===null?0:Q.length}function E(F,U,Q,B){function K(X){let ie=o.getTokenBefore(X);for(;ft.isOpeningParenToken(ie)&&ie!==U;)ie=o.getTokenBefore(ie);return o.getTokenAfter(ie)}u.setDesiredOffsets([U.range[1],Q.range[0]],U,typeof B=="number"?B:1),u.setDesiredOffset(Q,U,0),!(B==="first"&&F.length&&!F[0])&&F.forEach((X,ie)=>{if(!!X&&(B==="off"&&u.ignoreToken(K(X)),ie!==0))if(B==="first"&&l.isFirstTokenOfLine(K(X)))u.matchOffsetOf(K(F[0]),K(X));else{let ve=F[ie-1],Ae=ve&&K(ve),me=ve&&o.getLastToken(ve);ve&&me.loc.end.line-x(me.value)>U.loc.end.line&&u.setDesiredOffsets([ve.range[1],X.range[1]],Ae,0)}})}function S(F){if(F.type!=="BlockStatement"){let U=o.getTokenBefore(F,ft.isNotOpeningParenToken),Q=o.getFirstToken(F),B=o.getLastToken(F);for(;ft.isOpeningParenToken(o.getTokenBefore(Q))&&ft.isClosingParenToken(o.getTokenAfter(B));)Q=o.getTokenBefore(Q),B=o.getTokenAfter(B);u.setDesiredOffsets([Q.range[0],B.range[1]],U,1);let K=o.getLastToken(F);F.type!=="EmptyStatement"&&ft.isSemicolonToken(K)&&u.setDesiredOffset(K,U,0)}}function T(F){let U;F.arguments.length?U=o.getFirstTokenBetween(F.callee,F.arguments[0],ft.isOpeningParenToken):U=o.getLastToken(F,1);let Q=o.getLastToken(F);if(c.add(U),c.add(Q),F.optional){let X=o.getTokenAfter(F.callee,ft.isQuestionDotToken),ie=o.getTokensBetween(F.callee,X,{filter:ft.isClosingParenToken}).length,ve=ie?o.getTokenBefore(F.callee,{skip:ie-1}):o.getFirstToken(F.callee),Ae=o.getTokenBefore(X),me=Ae.loc.end.line===U.loc.start.line?Ae:ve;u.setDesiredOffset(X,me,1)}let B=F.callee.type==="TaggedTemplateExpression"?o.getFirstToken(F.callee.quasi):U,K=o.getTokenBefore(B);u.setDesiredOffset(U,K,0),E(F.arguments,U,Q,a.CallExpression.arguments)}function I(F){let U=[],Q=[];F.forEach(B=>{ft.isOpeningParenToken(B)?U.push(B):ft.isClosingParenToken(B)&&Q.unshift({left:U.pop(),right:B})}),Q.forEach(B=>{let K=B.left,X=B.right;if(!c.has(K)&&!c.has(X)){let ie=new Set(o.getTokensBetween(K,X));ie.forEach(ve=>{ie.has(u.getFirstDependency(ve))||u.setDesiredOffset(ve,K,1)})}u.setDesiredOffset(X,K,0)})}function y(F){let U=new Set(o.getTokens(F,{includeComments:!0}));U.forEach(Q=>{if(!U.has(u.getFirstDependency(Q))){let B=l.getFirstTokenOfLine(Q);Q===B?u.ignoreToken(Q):u.setDesiredOffset(Q,B,0)}})}function w(F,U){let Q=U;for(;Q.parent&&!Q.parent.type.endsWith("Statement")&&!Q.parent.type.endsWith("Declaration");)Q=Q.parent;return Q=Q.parent,!Q||Q.loc.start.line===F.loc.start.line}function D(F,U){let Q=F.loc.end.line,B=U.loc.start.line;if(Q===B||Q===B-1)return!1;for(let K=Q+1;K<B;++K)if(!l.firstTokensByLineNumber.has(K))return!0;return!1}let R=new Set,z={"ArrayExpression, ArrayPattern"(F){let U=o.getFirstToken(F),Q=o.getTokenAfter([...F.elements].reverse().find(B=>B)||U,ft.isClosingBracketToken);E(F.elements,U,Q,a.ArrayExpression)},"ObjectExpression, ObjectPattern"(F){let U=o.getFirstToken(F),Q=o.getTokenAfter(F.properties.length?F.properties[F.properties.length-1]:U,ft.isClosingBraceToken);E(F.properties,U,Q,a.ObjectExpression)},ArrowFunctionExpression(F){let U=o.getFirstToken(F,{skip:F.async?1:0});if(ft.isOpeningParenToken(U)){let Q=U,B=o.getTokenBefore(F.body,ft.isClosingParenToken);c.add(Q),c.add(B),E(F.params,Q,B,a.FunctionExpression.parameters)}S(F.body)},AssignmentExpression(F){let U=o.getFirstTokenBetween(F.left,F.right,Q=>Q.value===F.operator);u.setDesiredOffsets([U.range[0],F.range[1]],o.getLastToken(F.left),1),u.ignoreToken(U),u.ignoreToken(o.getTokenAfter(U))},"BinaryExpression, LogicalExpression"(F){let U=o.getFirstTokenBetween(F.left,F.right,B=>B.value===F.operator),Q=o.getTokenAfter(U);u.ignoreToken(U),u.ignoreToken(Q),u.setDesiredOffset(Q,U,0)},"BlockStatement, ClassBody"(F){let U;F.parent&&m(F.parent)?U=a.outerIIFEBody:F.parent&&(F.parent.type==="FunctionExpression"||F.parent.type==="ArrowFunctionExpression")?U=a.FunctionExpression.body:F.parent&&F.parent.type==="FunctionDeclaration"?U=a.FunctionDeclaration.body:U=1,ft.STATEMENT_LIST_PARENTS.has(F.parent.type)||u.setDesiredOffset(o.getFirstToken(F),o.getFirstToken(F.parent),0),E(F.body,o.getFirstToken(F),o.getLastToken(F),U)},CallExpression:T,"ClassDeclaration[superClass], ClassExpression[superClass]"(F){let U=o.getFirstToken(F),Q=o.getTokenBefore(F.superClass,ft.isNotOpeningParenToken);u.setDesiredOffsets([Q.range[0],F.body.range[0]],U,1)},ConditionalExpression(F){let U=o.getFirstToken(F);if(!a.flatTernaryExpressions||!ft.isTokenOnSameLine(F.test,F.consequent)||w(U,F)){let Q=o.getFirstTokenBetween(F.test,F.consequent,ve=>ve.type==="Punctuator"&&ve.value==="?"),B=o.getFirstTokenBetween(F.consequent,F.alternate,ve=>ve.type==="Punctuator"&&ve.value===":"),K=o.getTokenAfter(Q),X=o.getTokenBefore(B),ie=o.getTokenAfter(B);u.setDesiredOffset(Q,U,1),u.setDesiredOffset(B,U,1),u.setDesiredOffset(K,U,K.type==="Punctuator"&&a.offsetTernaryExpressions?2:1),X.loc.end.line===ie.loc.start.line?u.setDesiredOffset(ie,K,0):u.setDesiredOffset(ie,U,ie.type==="Punctuator"&&a.offsetTernaryExpressions?2:1)}},"DoWhileStatement, WhileStatement, ForInStatement, ForOfStatement":F=>S(F.body),ExportNamedDeclaration(F){if(F.declaration===null){let U=o.getLastToken(F,ft.isClosingBraceToken);E(F.specifiers,o.getFirstToken(F,{skip:1}),U,1),F.source&&u.setDesiredOffsets([U.range[1],F.range[1]],o.getFirstToken(F),1)}},ForStatement(F){let U=o.getFirstToken(F,1);F.init&&u.setDesiredOffsets(F.init.range,U,1),F.test&&u.setDesiredOffsets(F.test.range,U,1),F.update&&u.setDesiredOffsets(F.update.range,U,1),S(F.body)},"FunctionDeclaration, FunctionExpression"(F){let U=o.getTokenBefore(F.body),Q=o.getTokenBefore(F.params.length?F.params[0]:U);c.add(Q),c.add(U),E(F.params,Q,U,a[F.type].parameters)},IfStatement(F){S(F.consequent),F.alternate&&F.alternate.type!=="IfStatement"&&S(F.alternate)},ImportDeclaration(F){if(F.specifiers.some(K=>K.type==="ImportSpecifier")){let K=o.getFirstToken(F,ft.isOpeningBraceToken),X=o.getLastToken(F,ft.isClosingBraceToken);E(F.specifiers.filter(ie=>ie.type==="ImportSpecifier"),K,X,a.ImportDeclaration)}let U=o.getLastToken(F,K=>K.type==="Identifier"&&K.value==="from"),Q=o.getLastToken(F,K=>K.type==="String"),B=o.getLastToken(F,K=>K.type==="Punctuator"&&K.value===";");if(U){let K=B&&B.range[1]===Q.range[1]?F.range[1]:Q.range[1];u.setDesiredOffsets([U.range[0],K],o.getFirstToken(F),1)}},ImportExpression(F){let U=o.getFirstToken(F,1),Q=o.getLastToken(F);c.add(U),c.add(Q),u.setDesiredOffset(U,o.getTokenBefore(U),0),E([F.source],U,Q,a.CallExpression.arguments)},"MemberExpression, JSXMemberExpression, MetaProperty"(F){let U=F.type==="MetaProperty"?F.meta:F.object,Q=o.getFirstTokenBetween(U,F.property,ft.isNotClosingParenToken),B=o.getTokenAfter(Q),K=o.getTokensBetween(U,F.property,{filter:ft.isClosingParenToken}).length,X=K?o.getTokenBefore(U,{skip:K-1}):o.getFirstToken(U),ie=o.getTokenBefore(Q),ve=F.computed?Q:B;F.computed&&(u.setDesiredOffset(o.getLastToken(F),Q,0),u.setDesiredOffsets(F.property.range,Q,1));let Ae=ie.loc.end.line===ve.loc.start.line?ie:X;typeof a.MemberExpression=="number"?(u.setDesiredOffset(Q,Ae,a.MemberExpression),u.setDesiredOffset(B,F.computed?Q:Ae,a.MemberExpression)):(u.ignoreToken(Q),u.ignoreToken(B),u.setDesiredOffset(Q,Ae,0),u.setDesiredOffset(B,Q,0))},NewExpression(F){(F.arguments.length>0||ft.isClosingParenToken(o.getLastToken(F))&&ft.isOpeningParenToken(o.getLastToken(F,1)))&&T(F)},Property(F){if(!F.shorthand&&!F.method&&F.kind==="init"){let U=o.getFirstTokenBetween(F.key,F.value,ft.isColonToken);u.ignoreToken(o.getTokenAfter(U))}},PropertyDefinition(F){let U=o.getFirstToken(F),Q=o.getLastToken(F),B=null;if(F.computed){let K=o.getTokenBefore(F.key,ft.isOpeningBracketToken),X=B=o.getTokenAfter(F.key,ft.isClosingBracketToken),ie=[K.range[1],X.range[0]];K!==U&&u.setDesiredOffset(K,U,0),u.setDesiredOffsets(ie,K,1),u.setDesiredOffset(X,K,0)}else{let K=B=o.getFirstToken(F.key);K!==U&&u.setDesiredOffset(K,U,1)}if(F.value){let K=o.getTokenBefore(F.value,ft.isEqToken),X=o.getTokenAfter(K);u.setDesiredOffset(K,B,1),u.setDesiredOffset(X,K,1),ft.isSemicolonToken(Q)&&u.setDesiredOffset(Q,K,1)}else ft.isSemicolonToken(Q)&&u.setDesiredOffset(Q,B,1)},StaticBlock(F){let U=o.getFirstToken(F,{skip:1}),Q=o.getLastToken(F);E(F.body,U,Q,a.StaticBlock.body)},SwitchStatement(F){let U=o.getTokenAfter(F.discriminant,ft.isOpeningBraceToken),Q=o.getLastToken(F);u.setDesiredOffsets([U.range[1],Q.range[0]],U,a.SwitchCase),F.cases.length&&o.getTokensBetween(F.cases[F.cases.length-1],Q,{includeComments:!0,filter:ft.isCommentToken}).forEach(B=>u.ignoreToken(B))},SwitchCase(F){if(!(F.consequent.length===1&&F.consequent[0].type==="BlockStatement")){let U=o.getFirstToken(F),Q=o.getTokenAfter(F);u.setDesiredOffsets([U.range[1],Q.range[0]],U,1)}},TemplateLiteral(F){F.expressions.forEach((U,Q)=>{let B=F.quasis[Q],K=F.quasis[Q+1],X=B.loc.start.line===B.loc.end.line?o.getFirstToken(B):null;u.setDesiredOffsets([B.range[1],K.range[0]],X,1),u.setDesiredOffset(o.getFirstToken(K),X,0)})},VariableDeclaration(F){let U=Object.prototype.hasOwnProperty.call(a.VariableDeclarator,F.kind)?a.VariableDeclarator[F.kind]:e,Q=o.getFirstToken(F),B=o.getLastToken(F);if(a.VariableDeclarator[F.kind]==="first"){if(F.declarations.length>1){E(F.declarations,Q,B,"first");return}U=e}F.declarations[F.declarations.length-1].loc.start.line>F.loc.start.line?u.setDesiredOffsets(F.range,Q,U,!0):u.setDesiredOffsets(F.range,Q,U),ft.isSemicolonToken(B)&&u.ignoreToken(B)},VariableDeclarator(F){if(F.init){let U=o.getTokenBefore(F.init,ft.isNotOpeningParenToken),Q=o.getTokenAfter(U);u.ignoreToken(U),u.ignoreToken(Q),u.setDesiredOffsets([Q.range[0],F.range[1]],U,1),u.setDesiredOffset(U,o.getLastToken(F.id),0)}},"JSXAttribute[value]"(F){let U=o.getFirstTokenBetween(F.name,F.value,Q=>Q.type==="Punctuator"&&Q.value==="=");u.setDesiredOffsets([U.range[0],F.value.range[1]],o.getFirstToken(F.name),1)},JSXElement(F){F.closingElement&&E(F.children,o.getFirstToken(F.openingElement),o.getFirstToken(F.closingElement),1)},JSXOpeningElement(F){let U=o.getFirstToken(F),Q;F.selfClosing?(Q=o.getLastToken(F,{skip:1}),u.setDesiredOffset(o.getLastToken(F),Q,0)):Q=o.getLastToken(F),u.setDesiredOffsets(F.name.range,o.getFirstToken(F)),E(F.attributes,U,Q,1)},JSXClosingElement(F){let U=o.getFirstToken(F);u.setDesiredOffsets(F.name.range,U,1)},JSXFragment(F){let U=o.getFirstToken(F.openingFragment),Q=o.getFirstToken(F.closingFragment);E(F.children,U,Q,1)},JSXOpeningFragment(F){let U=o.getFirstToken(F),Q=o.getLastToken(F);u.setDesiredOffsets(F.range,U,1),u.matchOffsetOf(U,Q)},JSXClosingFragment(F){let U=o.getFirstToken(F),Q=o.getLastToken(F,{skip:1}),B=o.getLastToken(F),K=ft.isTokenOnSameLine(Q,B)?Q:B;u.setDesiredOffsets(F.range,U,1),u.matchOffsetOf(U,K)},JSXExpressionContainer(F){let U=o.getFirstToken(F),Q=o.getLastToken(F);u.setDesiredOffsets([U.range[1],Q.range[0]],U,1)},JSXSpreadAttribute(F){let U=o.getFirstToken(F),Q=o.getLastToken(F);u.setDesiredOffsets([U.range[1],Q.range[0]],U,1)},"*"(F){let U=o.getFirstToken(F);U&&!R.has(U)&&u.setDesiredOffsets(F.range,U,0)}},q=[],W={};for(let[F,U]of Object.entries(z))W[F]=Q=>q.push({listener:U,node:Q});let _=new Set;function C(F){_.add(F),R.add(o.getFirstToken(F))}let $=a.ignoredNodes.reduce((F,U)=>Object.assign(F,{[U]:C}),{});return Object.assign(W,$,{"*:exit"(F){D7.has(F.type)||C(F)},"Program:exit"(){a.ignoreComments&&o.getAllComments().forEach(U=>u.ignoreToken(U)),q.filter(U=>!_.has(U.node)).forEach(U=>U.listener(U.node)),_.forEach(y),I(o.ast.tokens);let F=o.ast.comments.reduce((U,Q)=>{let B=o.getTokenBefore(Q,{includeComments:!0});return U.set(Q,U.has(B)?U.get(B):B)},new WeakMap);o.lines.forEach((U,Q)=>{let B=Q+1;if(!l.firstTokensByLineNumber.has(B))return;let K=l.firstTokensByLineNumber.get(B);if(K.loc.start.line===B){if(ft.isCommentToken(K)){let X=F.get(K),ie=X?o.getTokenAfter(X):o.ast.tokens[0],ve=X&&!D(X,K),Ae=ie&&!D(K,ie);if(ie&&ft.isSemicolonToken(ie)&&!ft.isTokenOnSameLine(K,ie)&&u.setDesiredOffset(K,ie,0),ve&&f(K,u.getDesiredIndent(X))||Ae&&f(K,u.getDesiredIndent(ie)))return}f(K,u.getDesiredIndent(K))||h(K,u.getDesiredIndent(K))}})}})}}});var EA=M((Wee,xA)=>{b();v();"use strict";var T7=pe();xA.exports={meta:{type:"layout",docs:{description:"enforce consistent indentation",recommended:!1,url:"https://eslint.org/docs/rules/indent-legacy"},deprecated:!0,replacedBy:["indent"],fixable:"whitespace",schema:[{oneOf:[{enum:["tab"]},{type:"integer",minimum:0}]},{type:"object",properties:{SwitchCase:{type:"integer",minimum:0},VariableDeclarator:{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{var:{type:"integer",minimum:0},let:{type:"integer",minimum:0},const:{type:"integer",minimum:0}}}]},outerIIFEBody:{type:"integer",minimum:0},MemberExpression:{type:"integer",minimum:0},FunctionDeclaration:{type:"object",properties:{parameters:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]},body:{type:"integer",minimum:0}}},FunctionExpression:{type:"object",properties:{parameters:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]},body:{type:"integer",minimum:0}}},CallExpression:{type:"object",properties:{parameters:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]}}},ArrayExpression:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]},ObjectExpression:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]}},additionalProperties:!1}],messages:{expected:"Expected indentation of {{expected}} but found {{actual}}."}},create(t){let e=1,r=null,n=1,s="space",i=4,a={SwitchCase:0,VariableDeclarator:{var:e,let:e,const:e},outerIIFEBody:null,FunctionDeclaration:{parameters:r,body:n},FunctionExpression:{parameters:r,body:n},CallExpression:{arguments:r},ArrayExpression:1,ObjectExpression:1},o=t.getSourceCode();if(t.options.length&&(t.options[0]==="tab"?(i=1,s="tab"):typeof t.options[0]=="number"&&(i=t.options[0],s="space"),t.options[1])){let B=t.options[1];a.SwitchCase=B.SwitchCase||0;let K=B.VariableDeclarator;typeof K=="number"?a.VariableDeclarator={var:K,let:K,const:K}:typeof K=="object"&&Object.assign(a.VariableDeclarator,K),typeof B.outerIIFEBody=="number"&&(a.outerIIFEBody=B.outerIIFEBody),typeof B.MemberExpression=="number"&&(a.MemberExpression=B.MemberExpression),typeof B.FunctionDeclaration=="object"&&Object.assign(a.FunctionDeclaration,B.FunctionDeclaration),typeof B.FunctionExpression=="object"&&Object.assign(a.FunctionExpression,B.FunctionExpression),typeof B.CallExpression=="object"&&Object.assign(a.CallExpression,B.CallExpression),(typeof B.ArrayExpression=="number"||typeof B.ArrayExpression=="string")&&(a.ArrayExpression=B.ArrayExpression),(typeof B.ObjectExpression=="number"||typeof B.ObjectExpression=="string")&&(a.ObjectExpression=B.ObjectExpression)}let l={};function u(B,K,X){let ie=`${B} ${s}${B===1?"":"s"}`,ve=`space${K===1?"":"s"}`,Ae=`tab${X===1?"":"s"}`,me;return K>0&&X>0?me=`${K} ${ve} and ${X} ${Ae}`:K>0?me=s==="space"?K:`${K} ${ve}`:X>0?me=s==="tab"?X:`${X} ${Ae}`:me="0",{expected:ie,actual:me}}function c(B,K,X,ie,ve,Ae){if(X&&ie)return;let me=(s==="space"?" ":" ").repeat(K),ce=Ae?[B.range[1]-B.loc.end.column,B.range[1]-B.loc.end.column+X+ie]:[B.range[0]-B.loc.start.column,B.range[0]-B.loc.start.column+X+ie];t.report({node:B,loc:ve,messageId:"expected",data:u(K,X,ie),fix:Fe=>Fe.replaceTextRange(ce,me)})}function p(B,K){let X=K?o.getLastToken(B):o.getFirstToken(B),ie=o.getText(X,X.loc.start.column).split(""),ve=ie.slice(0,ie.findIndex(ce=>ce!==" "&&ce!==" ")),Ae=ve.filter(ce=>ce===" ").length,me=ve.filter(ce=>ce===" ").length;return{space:Ae,tab:me,goodChar:s==="space"?Ae:me,badChar:s==="space"?me:Ae}}function h(B,K){let X=K===!0?o.getLastToken(B,1):o.getTokenBefore(B),ie=K===!0?B.loc.end.line:B.loc.start.line,ve=X?X.loc.end.line:-1;return ie!==ve}function f(B,K){let X=p(B,!1);if(B.type!=="ArrayExpression"&&B.type!=="ObjectExpression"&&(X.goodChar!==K||X.badChar!==0)&&h(B)&&c(B,K,X.space,X.tab),B.type==="IfStatement"&&B.alternate){let ie=o.getTokenBefore(B.alternate);f(ie,K),h(B.alternate)||f(B.alternate,K)}if(B.type==="TryStatement"&&B.handler){let ie=o.getFirstToken(B.handler);f(ie,K)}if(B.type==="TryStatement"&&B.finalizer){let ie=o.getTokenBefore(B.finalizer);f(ie,K)}if(B.type==="DoWhileStatement"){let ie=o.getTokenAfter(B.body);f(ie,K)}}function m(B,K){B.forEach(X=>f(X,K))}function x(B,K){let X=o.getLastToken(B),ie=p(X,!0);(ie.goodChar!==K||ie.badChar!==0)&&h(B,!0)&&c(B,K,ie.space,ie.tab,{line:X.loc.start.line,column:X.loc.start.column},!0)}function E(B,K){let X=o.getLastToken(B,T7.isClosingParenToken);if(o.getText(X,X.loc.start.column).slice(0,-1).trim())return;let ve=p(X,!0);ve.goodChar!==K&&c(B,K,ve.space,ve.tab,{line:X.loc.start.line,column:X.loc.start.column},!0)}function S(B,K){let X=p(B,!1);(X.goodChar!==K||X.badChar!==0)&&h(B)&&c(B,K,X.space,X.tab,{line:B.loc.start.line,column:B.loc.start.column})}function T(B,K,X){let ie=B.parent,ve=new Set(X||["Program"]);for(;ie.type!==K&&!ve.has(ie.type)&&ie.type!=="Program";)ie=ie.parent;return ie.type===K?ie:null}function I(B){return T(B,"VariableDeclarator")}function y(B,K){return K&&K.parent.loc.start.line===B.loc.start.line&&K.parent.declarations.length>1}function w(B){let K=B.parent;return K.arguments.length>=2&&K.arguments[1]===B?K.arguments[0].loc.end.line>K.arguments[0].loc.start.line:!1}function D(B){let K=B.parent,X=K.parent;if(K.type!=="CallExpression"||K.callee!==B)return!1;for(;X.type==="UnaryExpression"&&(X.operator==="!"||X.operator==="~"||X.operator==="+"||X.operator==="-")||X.type==="AssignmentExpression"||X.type==="LogicalExpression"||X.type==="SequenceExpression"||X.type==="VariableDeclarator";)X=X.parent;return(X.type==="ExpressionStatement"||X.type==="VariableDeclaration")&&X.parent&&X.parent.type==="Program"}function R(B){let K=B.parent,X;if(K.parent&&(K.parent.type==="Property"||K.parent.type==="ArrayExpression")?X=p(K,!1).goodChar:X=p(K).goodChar,K.parent.type==="CallExpression"){let Ae=K.parent;K.type!=="FunctionExpression"&&K.type!=="ArrowFunctionExpression"?Ae&&Ae.loc.start.line<B.loc.start.line&&(X=p(Ae).goodChar):w(K)&&Ae.callee.loc.start.line===Ae.callee.loc.end.line&&!h(K)&&(X=p(Ae).goodChar)}let ie=i;a.outerIIFEBody!==null&&D(K)?ie=a.outerIIFEBody*i:K.type==="FunctionExpression"?ie=a.FunctionExpression.body*i:K.type==="FunctionDeclaration"&&(ie=a.FunctionDeclaration.body*i),X+=ie;let ve=I(B);ve&&y(B,ve)&&(X+=i*a.VariableDeclarator[ve.parent.kind]),B.body.length>0&&m(B.body,X),x(B,X-ie)}function z(B){let K=o.getLastToken(B),X=B.loc.start.line,ie=K.loc.end.line;return X===ie}function q(B){if(z(B))return;let K=B.type==="ArrayExpression"?B.elements:B.properties;K=K.filter(Ae=>Ae!==null);let X,ie,ve=I(B);if(h(B)){let Ae=B.parent;if(X=p(Ae).goodChar,(!ve||ve.loc.start.line!==B.loc.start.line)&&(Ae.type!=="VariableDeclarator"||ve===ve.parent.declarations[0]))if(Ae.type==="VariableDeclarator"&&ve.loc.start.line===Ae.loc.start.line)X+=i*a.VariableDeclarator[ve.parent.kind];else if(Ae.type==="ObjectExpression"||Ae.type==="ArrayExpression"){let me=B.parent.type==="ObjectExpression"?B.parent.properties:B.parent.elements;me[0]&&me[0].loc.start.line===Ae.loc.start.line&&me[0].loc.end.line!==Ae.loc.start.line||(typeof a[Ae.type]=="number"?X+=a[Ae.type]*i:X=me[0].loc.start.column)}else Ae.type==="CallExpression"||Ae.type==="NewExpression"?typeof a.CallExpression.arguments=="number"?X+=a.CallExpression.arguments*i:a.CallExpression.arguments==="first"?Ae.arguments.indexOf(B)!==-1&&(X=Ae.arguments[0].loc.start.column):X+=i:(Ae.type==="LogicalExpression"||Ae.type==="ArrowFunctionExpression")&&(X+=i);S(B,X)}else X=p(B).goodChar;a[B.type]==="first"?ie=K.length?K[0].loc.start.column:0:ie=X+i*a[B.type],y(B,ve)&&(ie+=i*a.VariableDeclarator[ve.parent.kind]),m(K,ie),!(K.length>0&&K[K.length-1].loc.end.line===B.loc.end.line)&&x(B,X+(y(B,ve)?a.VariableDeclarator[ve.parent.kind]*i:0))}function W(B){return B.type==="BlockStatement"||B.type==="ClassBody"||B.body&&B.body.type==="BlockStatement"||B.consequent&&B.consequent.type==="BlockStatement"}function _(B){if(z(B))return;if(B.parent&&(B.parent.type==="FunctionExpression"||B.parent.type==="FunctionDeclaration"||B.parent.type==="ArrowFunctionExpression")){R(B);return}let K,X=[],ie=["IfStatement","WhileStatement","ForStatement","ForInStatement","ForOfStatement","DoWhileStatement","ClassDeclaration","TryStatement"];B.parent&&ie.indexOf(B.parent.type)!==-1&&W(B)?K=p(B.parent).goodChar:B.parent&&B.parent.type==="CatchClause"?K=p(B.parent.parent).goodChar:K=p(B).goodChar,B.type==="IfStatement"&&B.consequent.type!=="BlockStatement"?X=[B.consequent]:Array.isArray(B.body)?X=B.body:X=[B.body],X.length>0&&m(X,K+i),B.type==="BlockStatement"&&x(B,K)}function C(B){return B.declarations.reduce((K,X)=>{let ie=K[K.length-1];return(X.loc.start.line!==B.loc.start.line&&!ie||ie&&ie.loc.start.line!==X.loc.start.line)&&K.push(X),K},[])}function $(B){let K=C(B),X=p(B).goodChar,ie=K[K.length-1],ve=X+i*a.VariableDeclarator[B.kind];if(m(K,ve),o.getLastToken(B).loc.end.line<=ie.loc.end.line)return;let Ae=o.getTokenBefore(ie);Ae.value===","?x(B,p(Ae).goodChar):x(B,ve-i)}function F(B){B.body.type!=="BlockStatement"&&_(B)}function U(B,K){let X=B.type==="SwitchStatement"?B:B.parent,ie=typeof K=="undefined"?p(X).goodChar:K,ve;return l[X.loc.start.line]?l[X.loc.start.line]:(X.cases.length>0&&a.SwitchCase===0?ve=ie:ve=ie+i*a.SwitchCase,l[X.loc.start.line]=ve,ve)}function Q(B){let K=/^return\s*?\(\s*?\);*?/u,X=o.getText(B).replace(o.getText(B.argument),"");return K.test(X)}return{Program(B){B.body.length>0&&m(B.body,p(B).goodChar)},ClassBody:_,BlockStatement:_,WhileStatement:F,ForStatement:F,ForInStatement:F,ForOfStatement:F,DoWhileStatement:F,IfStatement(B){B.consequent.type!=="BlockStatement"&&B.consequent.loc.start.line>B.loc.start.line&&_(B)},VariableDeclaration(B){B.declarations[B.declarations.length-1].loc.start.line>B.declarations[0].loc.start.line&&$(B)},ObjectExpression(B){q(B)},ArrayExpression(B){q(B)},MemberExpression(B){if(typeof a.MemberExpression=="undefined"||z(B)||T(B,"VariableDeclarator",["FunctionExpression","ArrowFunctionExpression"])||T(B,"AssignmentExpression",["FunctionExpression"]))return;let K=p(B).goodChar+i*a.MemberExpression,X=[B.property],ie=o.getTokenBefore(B.property);ie.type==="Punctuator"&&ie.value==="."&&X.push(ie),m(X,K)},SwitchStatement(B){let K=p(B).goodChar,X=U(B,K);m(B.cases,X),x(B,K)},SwitchCase(B){if(z(B))return;let K=U(B);m(B.consequent,K+i)},FunctionDeclaration(B){z(B)||(a.FunctionDeclaration.parameters==="first"&&B.params.length?m(B.params.slice(1),B.params[0].loc.start.column):a.FunctionDeclaration.parameters!==null&&m(B.params,p(B).goodChar+i*a.FunctionDeclaration.parameters))},FunctionExpression(B){z(B)||(a.FunctionExpression.parameters==="first"&&B.params.length?m(B.params.slice(1),B.params[0].loc.start.column):a.FunctionExpression.parameters!==null&&m(B.params,p(B).goodChar+i*a.FunctionExpression.parameters))},ReturnStatement(B){if(z(B))return;let K=p(B).goodChar;Q(B)?E(B,K):f(B,K)},CallExpression(B){z(B)||(a.CallExpression.arguments==="first"&&B.arguments.length?m(B.arguments.slice(1),B.arguments[0].loc.start.column):a.CallExpression.arguments!==null&&m(B.arguments,p(B).goodChar+i*a.CallExpression.arguments))}}}}});var CA=M((Gee,bA)=>{b();v();"use strict";function vA(t){return t.type==="ForInStatement"||t.type==="ForOfStatement"||t.type==="ForStatement"}function F7(t){let e=t.parent,r=e.parent;return vA(r)?r.type==="ForStatement"?r.init===e:r.left===e:Boolean(t.init)}bA.exports={meta:{type:"suggestion",docs:{description:"require or disallow initialization in variable declarations",recommended:!1,url:"https://eslint.org/docs/rules/init-declarations"},schema:{anyOf:[{type:"array",items:[{enum:["always"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["never"]},{type:"object",properties:{ignoreForLoopInit:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{initialized:"Variable '{{idName}}' should be initialized on declaration.",notInitialized:"Variable '{{idName}}' should not be initialized on declaration."}},create(t){let e="always",r="never",n=t.options[0]||e,s=t.options[1]||{};return{"VariableDeclaration:exit"(i){let a=i.kind,o=i.declarations;for(let l=0;l<o.length;++l){let u=o[l],c=u.id,p=F7(u),h=s.ignoreForLoopInit&&vA(i.parent),f="";n===e&&!p?f="initialized":n===r&&a!=="const"&&p&&!h&&(f="notInitialized"),c.type==="Identifier"&&f&&t.report({node:u,messageId:f,data:{idName:c.name}})}}}}}});var wA=M((zee,SA)=>{b();v();"use strict";var AA=pe(),P7={"prefer-double":{quote:'"',description:"singlequote",convert(t){return t.replace(/'/gu,'"')}},"prefer-single":{quote:"'",description:"doublequote",convert(t){return t.replace(/"/gu,"'")}}};SA.exports={meta:{type:"layout",docs:{description:"enforce the consistent use of either double or single quotes in JSX attributes",recommended:!1,url:"https://eslint.org/docs/rules/jsx-quotes"},fixable:"whitespace",schema:[{enum:["prefer-single","prefer-double"]}],messages:{unexpected:"Unexpected usage of {{description}}."}},create(t){let e=t.options[0]||"prefer-double",r=P7[e];function n(s){return s.value.indexOf(r.quote)!==-1||AA.isSurroundedBy(s.raw,r.quote)}return{JSXAttribute(s){let i=s.value;i&&AA.isStringLiteral(i)&&!n(i)&&t.report({node:i,messageId:"unexpected",data:{description:r.description},fix(a){return a.replaceText(i,r.convert(i.raw))}})}}}}});var TA=M((Hee,kA)=>{b();v();"use strict";var kl=pe();function I7(t){return kl.LINEBREAK_MATCHER.test(t)}function Dl(t){return t[t.length-1]}function DA(t){return t.loc.end.line===t.loc.start.line}function _7(t){let[e]=t,r=Dl(t);return e.loc.start.line===r.loc.end.line}function ma(t,e){return t.mode=e.mode||"strict",typeof e.beforeColon!="undefined"?t.beforeColon=+e.beforeColon:t.beforeColon=0,typeof e.afterColon!="undefined"?t.afterColon=+e.afterColon:t.afterColon=1,typeof e.align!="undefined"&&(typeof e.align=="object"?t.align=e.align:t.align={on:e.align,mode:t.mode,beforeColon:t.beforeColon,afterColon:t.afterColon}),t}function B7(t,e){return typeof e.align=="object"?(t.align=ma({},e.align),t.align.on=e.align.on||"colon",t.align.mode=e.align.mode||"strict",t.multiLine=ma({},e.multiLine||e),t.singleLine=ma({},e.singleLine||e)):(t.multiLine=ma({},e.multiLine||e),t.singleLine=ma({},e.singleLine||e),t.multiLine.align&&(t.align={on:t.multiLine.align.on,mode:t.multiLine.align.mode||t.multiLine.mode,beforeColon:t.multiLine.align.beforeColon,afterColon:t.multiLine.align.afterColon})),t}kA.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing between keys and values in object literal properties",recommended:!1,url:"https://eslint.org/docs/rules/key-spacing"},fixable:"whitespace",schema:[{anyOf:[{type:"object",properties:{align:{anyOf:[{enum:["colon","value"]},{type:"object",properties:{mode:{enum:["strict","minimum"]},on:{enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}]},mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},{type:"object",properties:{singleLine:{type:"object",properties:{mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},multiLine:{type:"object",properties:{align:{anyOf:[{enum:["colon","value"]},{type:"object",properties:{mode:{enum:["strict","minimum"]},on:{enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}]},mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},{type:"object",properties:{singleLine:{type:"object",properties:{mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},multiLine:{type:"object",properties:{mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},align:{type:"object",properties:{mode:{enum:["strict","minimum"]},on:{enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1}]}],messages:{extraKey:"Extra space after {{computed}}key '{{key}}'.",extraValue:"Extra space before value for {{computed}}key '{{key}}'.",missingKey:"Missing space after {{computed}}key '{{key}}'.",missingValue:"Missing space before value for {{computed}}key '{{key}}'."}},create(t){let e=t.options[0]||{},r=B7({},e),n=r.multiLine,s=r.singleLine,i=r.align||null,a=t.getSourceCode();function o(y,w){let D=y.loc.start.line,R=w.loc.start.line;if(R-D<=1)return!0;let z=a.getCommentsBefore(w);if(z.length&&z[0].loc.start.line-D<=1&&R-Dl(z).loc.end.line<=1){for(let q=1;q<z.length;q++)if(z[q].loc.start.line-z[q-1].loc.end.line>1)return!1;return!0}return!1}function l(y){return!(y.method||y.shorthand||y.kind!=="init"||y.type!=="Property")}function u(y){let w=a.getTokenAfter(y,kl.isColonToken);return a.getTokenBefore(w)}function c(y){return a.getTokenAfter(y,kl.isColonToken)}function p(y){let w=y.key;return y.computed?a.getText().slice(w.range[0],w.range[1]):kl.getStaticPropertyName(y)}function h(y,w,D,R,z){let q=D.length-R;if((q&&z==="strict"||q<0&&z==="minimum"||q>0&&!R&&z==="minimum")&&!(R&&I7(D))){let W=c(y.key),_=a.getTokenBefore(W,{includeComments:!0}),C=a.getTokenAfter(W,{includeComments:!0}),$=w==="key",F=q>0,U=Math.abs(q),Q=Array(U+1).join(" "),B=$?_.loc.end:W.loc.start,K=$?W.loc.start:C.loc.start,X=$?_.loc:C.loc,ie=F?{start:B,end:K}:X,ve;if(F){let me;$?me=[_.range[1],_.range[1]+U]:me=[C.range[0]-U,C.range[0]],ve=function(ce){return ce.removeRange(me)}}else $?ve=function(me){return me.insertTextAfter(_,Q)}:ve=function(me){return me.insertTextBefore(C,Q)};let Ae="";F?Ae=w==="key"?"extraKey":"extraValue":Ae=w==="key"?"missingKey":"missingValue",t.report({node:y[w],loc:ie,messageId:Ae,data:{computed:y.computed?"computed ":"",key:p(y)},fix:ve})}}function f(y){let w=a.getFirstToken(y);return u(y.key).range[1]-w.range[0]}function m(y){let w=/(\s*):(\s*)/u.exec(a.getText().slice(y.key.range[1],y.value.range[0]));return w?{beforeColon:w[1],afterColon:w[2]}:null}function x(y){return y.properties.length===1?[y.properties]:y.properties.reduce((w,D)=>{let R=Dl(w),z=Dl(R);return!z||o(z,D)?R.push(D):w.push([D]),w},[[]])}function E(y){let w=y.length,D=y.map(f),R=i.on,z=Math.max(...D),q,W,_;i&&w>1?(q=i.beforeColon,W=i.afterColon,_=i.mode):(q=n.beforeColon,W=n.afterColon,_=i.mode),z+=R==="colon"?q:W;for(let C=0;C<w;C++){let $=y[C],F=m($);if(F){let U=D[C];R==="value"?(h($,"key",F.beforeColon,q,_),h($,"value",F.afterColon,z-U,_)):(h($,"key",F.beforeColon,z-U,_),h($,"value",F.afterColon,W,_))}}}function S(y,w){let D=m(y);D&&(h(y,"key",D.beforeColon,w.beforeColon,w.mode),h(y,"value",D.afterColon,w.afterColon,w.mode))}function T(y,w){let D=y.length;for(let R=0;R<D;R++)S(y[R],w)}function I(y){x(y).forEach(w=>{let D=w.filter(l);D.length>0&&_7(D)?T(D,n):E(D)})}return i?{ObjectExpression(y){DA(y)?T(y.properties.filter(l),s):I(y)}}:{Property(y){S(y,DA(y.parent)?s:n)}}}}});var _A=M((Kee,FA)=>{b();v();"use strict";var $s=pe(),O7=Cl(),R7=/^[)\]}>]$/u,L7=/^(?:[([{<~!]|\+\+?|--?)$/u,ci=/^[)\]}>*]$/u,Tl=/^[{*]$/u,N7=/\$\{$/u,M7=/^\}/u,Fl=/^(?:JSXElement|RegularExpression|String|Template|PrivateIdentifier)$/u,Ws=O7.concat(["as","async","await","from","get","let","of","set","yield"]);(function(){Ws.sort();for(let t=1;t<Ws.length;++t)if(Ws[t]===Ws[t-1])throw new Error(`Duplication was found in the keyword list: ${Ws[t]}`)})();function PA(t){return t.type==="Template"&&N7.test(t.value)}function IA(t){return t.type==="Template"&&M7.test(t.value)}FA.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing before and after keywords",recommended:!1,url:"https://eslint.org/docs/rules/keyword-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!0},after:{type:"boolean",default:!0},overrides:{type:"object",properties:Ws.reduce((t,e)=>(t[e]={type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1},t),{}),additionalProperties:!1}},additionalProperties:!1}],messages:{expectedBefore:'Expected space(s) before "{{value}}".',expectedAfter:'Expected space(s) after "{{value}}".',unexpectedBefore:'Unexpected space(s) before "{{value}}".',unexpectedAfter:'Unexpected space(s) after "{{value}}".'}},create(t){let e=t.getSourceCode(),r=new WeakSet;function n(C,$){let F=e.getTokenBefore(C);F&&(Fl.test(F.type)||$.test(F.value))&&!PA(F)&&!r.has(F)&&$s.isTokenOnSameLine(F,C)&&!e.isSpaceBetweenTokens(F,C)&&t.report({loc:C.loc,messageId:"expectedBefore",data:C,fix(U){return U.insertTextBefore(C," ")}})}function s(C,$){let F=e.getTokenBefore(C);F&&(Fl.test(F.type)||$.test(F.value))&&!PA(F)&&!r.has(F)&&$s.isTokenOnSameLine(F,C)&&e.isSpaceBetweenTokens(F,C)&&t.report({loc:{start:F.loc.end,end:C.loc.start},messageId:"unexpectedBefore",data:C,fix(U){return U.removeRange([F.range[1],C.range[0]])}})}function i(C,$){let F=e.getTokenAfter(C);F&&(Fl.test(F.type)||$.test(F.value))&&!IA(F)&&!r.has(F)&&$s.isTokenOnSameLine(C,F)&&!e.isSpaceBetweenTokens(C,F)&&t.report({loc:C.loc,messageId:"expectedAfter",data:C,fix(U){return U.insertTextAfter(C," ")}})}function a(C,$){let F=e.getTokenAfter(C);F&&(Fl.test(F.type)||$.test(F.value))&&!IA(F)&&!r.has(F)&&$s.isTokenOnSameLine(C,F)&&e.isSpaceBetweenTokens(C,F)&&t.report({loc:{start:C.loc.end,end:F.loc.start},messageId:"unexpectedAfter",data:C,fix(U){return U.removeRange([C.range[1],F.range[0]])}})}function o(C={}){let $=C.before!==!1,F=C.after!==!1,U={before:$?n:s,after:F?i:a},Q=C&&C.overrides||{},B=Object.create(null);for(let K=0;K<Ws.length;++K){let X=Ws[K],ie=Q[X];if(ie){let ve="before"in ie?ie.before:$,Ae="after"in ie?ie.after:F;B[X]={before:ve?n:s,after:Ae?i:a}}else B[X]=U}return B}let l=o(t.options[0]);function u(C,$){l[C.value].before(C,$||R7)}function c(C,$){l[C.value].after(C,$||L7)}function p(C){u(C),c(C)}function h(C){let $=C&&e.getFirstToken(C);$&&$.type==="Keyword"&&p($)}function f(C){let $=C&&e.getFirstToken(C);$&&$.type==="Keyword"&&u($)}function m(C){if(C){let $=e.getTokenBefore(C,$s.isKeywordToken);p($)}}function x(C){let $=C&&e.getFirstToken(C);$&&($.type==="Keyword"&&$.value==="function"||$.value==="async")&&u($)}function E(C){h(C),m(C.superClass)}function S(C){h(C),m(C.alternate)}function T(C){h(C),h(C.handler),m(C.finalizer)}function I(C){h(C),m(C.test)}function y(C){h(C);let $=e.getTokenBefore(C.right,$s.isNotOpeningParenToken);e.getTokenBefore($).type!=="PrivateIdentifier"&&u($),c($)}function w(C){C.await?(u(e.getFirstToken(C,0)),c(e.getFirstToken(C,1))):h(C);let $=e.getTokenBefore(C.right,$s.isNotOpeningParenToken);e.getTokenBefore($).type!=="PrivateIdentifier"&&u($),c($)}function D(C){let $=e.getFirstToken(C);if(u($,ci),c($,Tl),C.type==="ExportDefaultDeclaration"&&p(e.getTokenAfter($)),C.type==="ExportAllDeclaration"&&C.exported){let F=e.getTokenBefore(C.exported);u(F,ci),c(F,Tl)}if(C.source){let F=e.getTokenBefore(C.source);u(F,ci),c(F,Tl)}}function R(C){if(C.imported.range[0]!==C.local.range[0]){let $=e.getTokenBefore(C.local);u($,ci)}}function z(C){if(C.local.range[0]!==C.exported.range[0]){let $=e.getTokenBefore(C.exported);u($,ci),c($,Tl)}}function q(C){let $=e.getFirstToken(C,1);u($,ci)}function W(C){if(C.static&&h(C),C.kind==="get"||C.kind==="set"||(C.method||C.type==="MethodDefinition")&&C.value.async){let $=e.getTokenBefore(C.key,F=>{switch(F.value){case"get":case"set":case"async":return!0;default:return!1}});if(!$)throw new Error("Failed to find token get, set, or async beside method name");p($)}}function _(C){u(e.getFirstToken(C))}return{DebuggerStatement:h,WithStatement:h,BreakStatement:h,ContinueStatement:h,ReturnStatement:h,ThrowStatement:h,TryStatement:T,IfStatement:S,SwitchStatement:h,SwitchCase:h,DoWhileStatement:I,ForInStatement:y,ForOfStatement:w,ForStatement:h,WhileStatement:h,ClassDeclaration:E,ExportNamedDeclaration:D,ExportDefaultDeclaration:D,ExportAllDeclaration:D,FunctionDeclaration:x,ImportDeclaration:D,VariableDeclaration:h,ArrowFunctionExpression:x,AwaitExpression:_,ClassExpression:E,FunctionExpression:x,NewExpression:f,Super:f,ThisExpression:f,UnaryExpression:f,YieldExpression:f,ImportSpecifier:R,ExportSpecifier:z,ImportNamespaceSpecifier:q,MethodDefinition:W,PropertyDefinition:W,StaticBlock:h,Property:W,"BinaryExpression[operator='>']"(C){let $=e.getTokenBefore(C.right,$s.isNotOpeningParenToken);r.add($)}}}}});var OA=M((Yee,BA)=>{b();v();"use strict";var j7=pe();BA.exports={meta:{type:"layout",docs:{description:"enforce position of line comments",recommended:!1,url:"https://eslint.org/docs/rules/line-comment-position"},schema:[{oneOf:[{enum:["above","beside"]},{type:"object",properties:{position:{enum:["above","beside"]},ignorePattern:{type:"string"},applyDefaultPatterns:{type:"boolean"},applyDefaultIgnorePatterns:{type:"boolean"}},additionalProperties:!1}]}],messages:{above:"Expected comment to be above code.",beside:"Expected comment to be beside code."}},create(t){let e=t.options[0],r,n,s=!0;!e||typeof e=="string"?r=!e||e==="above":(r=!e.position||e.position==="above",n=e.ignorePattern,Object.prototype.hasOwnProperty.call(e,"applyDefaultIgnorePatterns")?s=e.applyDefaultIgnorePatterns:s=e.applyDefaultPatterns!==!1);let i=j7.COMMENTS_IGNORE_PATTERN,a=/^\s*falls?\s?through/u,o=new RegExp(n,"u"),l=t.getSourceCode();return{Program(){l.getAllComments().filter(c=>c.type==="Line").forEach(c=>{if(s&&(i.test(c.value)||a.test(c.value))||n&&o.test(c.value))return;let p=l.getTokenBefore(c,{includeComments:!0}),h=p&&p.loc.end.line===c.loc.start.line;r?h&&t.report({node:c,messageId:"above"}):h||t.report({node:c,messageId:"beside"})})}}}}});var LA=M((Jee,RA)=>{b();v();"use strict";var q7=pe();RA.exports={meta:{type:"layout",docs:{description:"enforce consistent linebreak style",recommended:!1,url:"https://eslint.org/docs/rules/linebreak-style"},fixable:"whitespace",schema:[{enum:["unix","windows"]}],messages:{expectedLF:"Expected linebreaks to be 'LF' but found 'CRLF'.",expectedCRLF:"Expected linebreaks to be 'CRLF' but found 'LF'."}},create(t){let e=t.getSourceCode();function r(n,s){return function(i){return i.replaceTextRange(n,s)}}return{Program:function(s){let i=t.options[0]||"unix",a=i==="unix",o=a?`
|
|
68
|
+
`:`\r
|
|
69
|
+
`,l=e.getText(),u=q7.createGlobalLinebreakMatcher(),c,p=0;for(;(c=u.exec(l))!==null;){if(p++,c[0]===o)continue;let h=c.index,f=[h,h+c[0].length];t.report({node:s,loc:{start:{line:p,column:e.lines[p-1].length},end:{line:p+1,column:0}},messageId:a?"expectedLF":"expectedCRLF",fix:r(f,o)})}}}}}});var MA=M((Qee,NA)=>{b();v();"use strict";var xs=pe();function V7(t){return t.map((r,n)=>({code:r.trim(),num:n+1})).filter(r=>!r.code).map(r=>r.num)}function U7(t){let e=[];return t.forEach(r=>{let n=r.loc.start.line,s=r.loc.end.line;e.push(n,s)}),e}NA.exports={meta:{type:"layout",docs:{description:"require empty lines around comments",recommended:!1,url:"https://eslint.org/docs/rules/lines-around-comment"},fixable:"whitespace",schema:[{type:"object",properties:{beforeBlockComment:{type:"boolean",default:!0},afterBlockComment:{type:"boolean",default:!1},beforeLineComment:{type:"boolean",default:!1},afterLineComment:{type:"boolean",default:!1},allowBlockStart:{type:"boolean",default:!1},allowBlockEnd:{type:"boolean",default:!1},allowClassStart:{type:"boolean"},allowClassEnd:{type:"boolean"},allowObjectStart:{type:"boolean"},allowObjectEnd:{type:"boolean"},allowArrayStart:{type:"boolean"},allowArrayEnd:{type:"boolean"},ignorePattern:{type:"string"},applyDefaultIgnorePatterns:{type:"boolean"}},additionalProperties:!1}],messages:{after:"Expected line after comment.",before:"Expected line before comment."}},create(t){let e=Object.assign({},t.options[0]),r=e.ignorePattern,n=xs.COMMENTS_IGNORE_PATTERN,s=new RegExp(r,"u"),i=e.applyDefaultIgnorePatterns!==!1;e.beforeBlockComment=typeof e.beforeBlockComment!="undefined"?e.beforeBlockComment:!0;let a=t.getSourceCode(),o=a.lines,l=o.length+1,u=a.getAllComments(),c=U7(u),p=V7(o),h=c.concat(p);function f(_){let C=_;do C=a.getTokenBefore(C,{includeComments:!0});while(C&&xs.isCommentToken(C));if(C&&xs.isTokenOnSameLine(C,_))return!0;C=_;do C=a.getTokenAfter(C,{includeComments:!0});while(C&&xs.isCommentToken(C));return!!(C&&xs.isTokenOnSameLine(_,C))}function m(_,C){return _.type===C||_.body&&_.body.type===C||_.consequent&&_.consequent.type===C}function x(_){let C=a.getNodeByRangeIndex(_.range[0]);if(C&&C.type==="StaticBlock"){let $=a.getFirstToken(C,{skip:1});return _.range[0]>=$.range[0]?C:null}return C}function E(_,C){let $=x(_);if($&&m($,C)){let F=$.type==="StaticBlock"?a.getFirstToken($,{skip:1}):$;return _.loc.start.line-F.loc.start.line==1}return!1}function S(_,C){let $=x(_);return!!$&&m($,C)&&$.loc.end.line-_.loc.end.line==1}function T(_){return E(_,"ClassBody")||E(_,"BlockStatement")||E(_,"StaticBlock")||E(_,"SwitchCase")}function I(_){return S(_,"ClassBody")||S(_,"BlockStatement")||S(_,"StaticBlock")||S(_,"SwitchCase")||S(_,"SwitchStatement")}function y(_){return E(_,"ClassBody")}function w(_){return S(_,"ClassBody")}function D(_){return E(_,"ObjectExpression")||E(_,"ObjectPattern")}function R(_){return S(_,"ObjectExpression")||S(_,"ObjectPattern")}function z(_){return E(_,"ArrayExpression")||E(_,"ArrayPattern")}function q(_){return S(_,"ArrayExpression")||S(_,"ArrayPattern")}function W(_,C){if(i&&n.test(_.value)||r&&s.test(_.value))return;let $=C.after,F=C.before,U=_.loc.start.line-1,Q=_.loc.end.line+1,B=f(_),K=e.allowBlockStart&&T(_)&&!(e.allowClassStart===!1&&y(_)),X=e.allowBlockEnd&&I(_)&&!(e.allowClassEnd===!1&&w(_)),ie=e.allowClassStart&&y(_),ve=e.allowClassEnd&&w(_),Ae=e.allowObjectStart&&D(_),me=e.allowObjectEnd&&R(_),ce=e.allowArrayStart&&z(_),Fe=e.allowArrayEnd&&q(_),te=K||ie||Ae||ce,ne=X||ve||me||Fe;if(U<1&&(F=!1),Q>=l&&($=!1),B)return;let ue=a.getTokenBefore(_,{includeComments:!0}),re=a.getTokenAfter(_,{includeComments:!0});if(!te&&F&&!h.includes(U)&&!(xs.isCommentToken(ue)&&xs.isTokenOnSameLine(ue,_))){let fe=_.range[0]-_.loc.start.column,Ce=[fe,fe];t.report({node:_,messageId:"before",fix(Ge){return Ge.insertTextBeforeRange(Ce,`
|
|
70
|
+
`)}})}!ne&&$&&!h.includes(Q)&&!(xs.isCommentToken(re)&&xs.isTokenOnSameLine(_,re))&&t.report({node:_,messageId:"after",fix(fe){return fe.insertTextAfter(_,`
|
|
71
|
+
`)}})}return{Program(){u.forEach(_=>{_.type==="Line"?(e.beforeLineComment||e.afterLineComment)&&W(_,{after:e.afterLineComment,before:e.beforeLineComment}):_.type==="Block"&&(e.beforeBlockComment||e.afterBlockComment)&&W(_,{after:e.afterBlockComment,before:e.beforeBlockComment})})}}}}});var VA=M((Xee,jA)=>{b();v();"use strict";var qA=pe();jA.exports={meta:{type:"layout",docs:{description:"require or disallow newlines around directives",recommended:!1,url:"https://eslint.org/docs/rules/lines-around-directive"},schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{before:{enum:["always","never"]},after:{enum:["always","never"]}},additionalProperties:!1,minProperties:2}]}],fixable:"whitespace",messages:{expected:'Expected newline {{location}} "{{value}}" directive.',unexpected:'Unexpected newline {{location}} "{{value}}" directive.'},deprecated:!0,replacedBy:["padding-line-between-statements"]},create(t){let e=t.getSourceCode(),r=t.options[0]||"always",n=typeof r=="string"?r:r.before,s=typeof r=="string"?r:r.after;function i(c){let p=e.getTokenBefore(c,{includeComments:!0}),h=p?p.loc.end.line:0;return c.loc.start.line-h>=2}function a(c){let p=e.getLastToken(c),h=e.getTokenBefore(p);return qA.isSemicolonToken(p)&&p.loc.start.line>h.loc.end.line?h:p}function o(c){let p=a(c);return e.getTokenAfter(p,{includeComments:!0}).loc.start.line-p.loc.end.line>=2}function l(c,p,h){t.report({node:c,messageId:h?"expected":"unexpected",data:{value:c.expression.value,location:p},fix(f){let m=a(c);return h?p==="before"?f.insertTextBefore(c,`
|
|
72
|
+
`):f.insertTextAfter(m,`
|
|
73
|
+
`):f.removeRange(p==="before"?[c.range[0]-1,c.range[0]]:[m.range[1],m.range[1]+1])}})}function u(c){let p=qA.getDirectivePrologue(c);if(!p.length)return;let h=p[0],f=e.getCommentsBefore(h);f.length?(n==="always"&&!i(h)&&l(h,"before",!0),n==="never"&&i(h)&&l(h,"before",!1)):c.type==="Program"&&n==="never"&&!f.length&&i(h)&&l(h,"before",!1);let m=p[p.length-1],x=c.type==="Program"?c.body:c.body.body;m===x[x.length-1]&&!m.trailingComments||(s==="always"&&!o(m)&&l(m,"after",!0),s==="never"&&o(m)&&l(m,"after",!1))}return{Program:u,FunctionDeclaration:u,FunctionExpression:u,ArrowFunctionExpression:u}}}});var $A=M((Zee,UA)=>{b();v();"use strict";var Pl=pe();UA.exports={meta:{type:"layout",docs:{description:"require or disallow an empty line between class members",recommended:!1,url:"https://eslint.org/docs/rules/lines-between-class-members"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{exceptAfterSingleLine:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{never:"Unexpected blank line between class members.",always:"Expected blank line between class members."}},create(t){let e=[];e[0]=t.options[0]||"always",e[1]=t.options[1]||{exceptAfterSingleLine:!1};let r=t.getSourceCode();function n(o,l){let u=r.getLastToken(o),c=r.getTokenBefore(u),p=r.getFirstToken(l);return Pl.isSemicolonToken(u)&&!Pl.isTokenOnSameLine(c,u)&&Pl.isTokenOnSameLine(u,p)?{curLast:c,nextFirst:u}:{curLast:u,nextFirst:p}}function s(o,l,u){let c=r.getTokenAfter(o,{includeComments:!0});return c!==l&&c.loc.start.line-o.loc.end.line<=u?s(c,l,u):o}function i(o,l,u){let c=r.getTokenBefore(o,{includeComments:!0});return c!==l&&o.loc.start.line-c.loc.end.line<=u?i(c,l,u):o}function a(o,l){return r.getTokensBetween(o,l,{includeComments:!0}).length!==0}return{ClassBody(o){let l=o.body;for(let u=0;u<l.length-1;u++){let c=r.getFirstToken(l[u]),{curLast:p,nextFirst:h}=n(l[u],l[u+1]),m=!!Pl.isTokenOnSameLine(c,p)&&e[1].exceptAfterSingleLine,x=s(p,h,1),E=i(h,p,1),S=E.loc.start.line-x.loc.end.line>1,T=a(x,E),I=s(p,h,0);(e[0]==="always"&&!m&&!S||e[0]==="never"&&S)&&t.report({node:l[u+1],messageId:S?"never":"always",fix(y){return T?null:S?y.replaceTextRange([x.range[1],E.range[0]],`
|
|
74
|
+
`):y.insertTextAfter(I,`
|
|
75
|
+
`)}})}}}}}});var GA=M((ete,WA)=>{b();v();"use strict";WA.exports={meta:{type:"suggestion",docs:{description:"enforce a maximum number of classes per file",recommended:!1,url:"https://eslint.org/docs/rules/max-classes-per-file"},schema:[{oneOf:[{type:"integer",minimum:1},{type:"object",properties:{ignoreExpressions:{type:"boolean"},max:{type:"integer",minimum:1}},additionalProperties:!1}]}],messages:{maximumExceeded:"File has too many classes ({{ classCount }}). Maximum allowed is {{ max }}."}},create(t){let[e={}]=t.options,[r,n]=typeof e=="number"?[!1,e||1]:[e.ignoreExpressions,e.max||1],s=0;return{Program(){s=0},"Program:exit"(i){s>n&&t.report({node:i,messageId:"maximumExceeded",data:{classCount:s,max:n}})},ClassDeclaration(){s++},ClassExpression(){r||s++}}}}});var HA=M((tte,zA)=>{b();v();"use strict";zA.exports={meta:{type:"suggestion",docs:{description:"enforce a maximum depth that blocks can be nested",recommended:!1,url:"https://eslint.org/docs/rules/max-depth"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{tooDeeply:"Blocks are nested too deeply ({{depth}}). Maximum allowed is {{maxDepth}}."}},create(t){let e=[],r=t.options[0],n=4;typeof r=="object"&&(Object.prototype.hasOwnProperty.call(r,"maximum")||Object.prototype.hasOwnProperty.call(r,"max"))&&(n=r.maximum||r.max),typeof r=="number"&&(n=r);function s(){e.push(0)}function i(){e.pop()}function a(l){let u=++e[e.length-1];u>n&&t.report({node:l,messageId:"tooDeeply",data:{depth:u,maxDepth:n}})}function o(){e[e.length-1]--}return{Program:s,FunctionDeclaration:s,FunctionExpression:s,ArrowFunctionExpression:s,StaticBlock:s,IfStatement(l){l.parent.type!=="IfStatement"&&a(l)},SwitchStatement:a,TryStatement:a,DoWhileStatement:a,WhileStatement:a,WithStatement:a,ForStatement:a,ForInStatement:a,ForOfStatement:a,"IfStatement:exit":o,"SwitchStatement:exit":o,"TryStatement:exit":o,"DoWhileStatement:exit":o,"WhileStatement:exit":o,"WithStatement:exit":o,"ForStatement:exit":o,"ForInStatement:exit":o,"ForOfStatement:exit":o,"FunctionDeclaration:exit":i,"FunctionExpression:exit":i,"ArrowFunctionExpression:exit":i,"StaticBlock:exit":i,"Program:exit":i}}}});var QA=M((rte,KA)=>{b();v();"use strict";var YA={type:"object",properties:{code:{type:"integer",minimum:0},comments:{type:"integer",minimum:0},tabWidth:{type:"integer",minimum:0},ignorePattern:{type:"string"},ignoreComments:{type:"boolean"},ignoreStrings:{type:"boolean"},ignoreUrls:{type:"boolean"},ignoreTemplateLiterals:{type:"boolean"},ignoreRegExpLiterals:{type:"boolean"},ignoreTrailingComments:{type:"boolean"}},additionalProperties:!1},JA={anyOf:[YA,{type:"integer",minimum:0}]};KA.exports={meta:{type:"layout",docs:{description:"enforce a maximum line length",recommended:!1,url:"https://eslint.org/docs/rules/max-len"},schema:[JA,JA,YA],messages:{max:"This line has a length of {{lineLength}}. Maximum allowed is {{maxLength}}.",maxComment:"This line has a comment length of {{lineLength}}. Maximum allowed is {{maxCommentLength}}."}},create(t){let e=/[^:/?#]:\/\/[^?#]/u,r=t.getSourceCode();function n(W,_){let C=0;return W.replace(/\t/gu,($,F)=>{let U=F+C,Q=_?U%_:0;C+=_-Q-1}),Array.from(W).length+C}let s=Object.assign({},t.options[t.options.length-1]);typeof t.options[0]=="number"&&(s.code=t.options[0]),typeof t.options[1]=="number"&&(s.tabWidth=t.options[1]);let i=typeof s.code=="number"?s.code:80,a=typeof s.tabWidth=="number"?s.tabWidth:4,o=!!s.ignoreComments,l=!!s.ignoreStrings,u=!!s.ignoreTemplateLiterals,c=!!s.ignoreRegExpLiterals,p=!!s.ignoreTrailingComments||!!s.ignoreComments,h=!!s.ignoreUrls,f=s.comments,m=s.ignorePattern||null;m&&(m=new RegExp(m,"u"));function x(W,_,C){return C&&C.loc.start.line===_&&_<=C.loc.end.line&&(C.loc.end.line>_||C.loc.end.column===W.length)}function E(W,_,C){let $=C.loc.start,F=C.loc.end,U=!W.slice(0,C.loc.start.column).trim();return C&&($.line<_||$.line===_&&U)&&(F.line>_||F.line===_&&F.column===W.length)}function S(W){if(!W||!W.parent||W.type!=="JSXEmptyExpression"||W.parent.type!=="JSXExpressionContainer")return!1;let _=W.parent;return _.loc.start.line===_.loc.end.line}function T(W,_){return W.slice(0,_.loc.start.column).replace(/\s+$/u,"")}function I(W,_,C){Array.isArray(W[_])||(W[_]=[]),W[_].push(C)}function y(){return r.ast.tokens.filter(W=>W.type==="String"||W.type==="JSXText"&&r.getNodeByRangeIndex(W.range[0]-1).type==="JSXAttribute")}function w(){return r.ast.tokens.filter(W=>W.type==="Template")}function D(){return r.ast.tokens.filter(W=>W.type==="RegularExpression")}function R(W,_){for(let C=_.loc.start.line;C<=_.loc.end.line;++C)I(W,C,_);return W}function z(){let W=[];return r.getAllComments().forEach(_=>{let C=r.getNodeByRangeIndex(_.range[0]);S(C)?W[W.length-1]!==C.parent&&W.push(C.parent):W.push(_)}),W}function q(W){let _=r.lines,C=o||f||p?z():[],$=0,U=y().reduce(R,{}),B=w().reduce(R,{}),X=D().reduce(R,{});_.forEach((ie,ve)=>{let Ae=ve+1,me=!1,ce;if($<C.length){let ue=null;do ue=C[++$];while(ue&&ue.loc.start.line<=Ae);if(ue=C[--$],E(ie,Ae,ue))me=!0,ce=ie;else if(p&&x(ie,Ae,ue)){ce=T(ie,ue);let re=$;for(;x(ce,Ae,C[--re]);)ce=T(ce,C[re])}else ce=ie}else ce=ie;if(m&&m.test(ce)||h&&e.test(ce)||l&&U[Ae]||u&&B[Ae]||c&&X[Ae])return;let Fe=n(ce,a),te=me&&f;if(me&&o)return;let ne={start:{line:Ae,column:0},end:{line:Ae,column:ce.length}};te?Fe>f&&t.report({node:W,loc:ne,messageId:"maxComment",data:{lineLength:Fe,maxCommentLength:f}}):Fe>i&&t.report({node:W,loc:ne,messageId:"max",data:{lineLength:Fe,maxLength:i}})})}return{Program:q}}}});var ew=M((ste,XA)=>{b();v();"use strict";var ZA=pe();function $7(t,e){return[...Array(e-t).keys()].map(r=>r+t)}XA.exports={meta:{type:"suggestion",docs:{description:"enforce a maximum number of lines per file",recommended:!1,url:"https://eslint.org/docs/rules/max-lines"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{max:{type:"integer",minimum:0},skipComments:{type:"boolean"},skipBlankLines:{type:"boolean"}},additionalProperties:!1}]}],messages:{exceed:"File has too many lines ({{actual}}). Maximum allowed is {{max}}."}},create(t){let e=t.options[0],r=300;typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"max")?r=e.max:typeof e=="number"&&(r=e);let n=e&&e.skipComments,s=e&&e.skipBlankLines,i=t.getSourceCode();function a(l){return l&&(l.type==="Block"||l.type==="Line")}function o(l){let u=l.loc.start.line,c=l.loc.end.line,p;p=l;do p=i.getTokenBefore(p,{includeComments:!0});while(a(p));p&&ZA.isTokenOnSameLine(p,l)&&(u+=1),p=l;do p=i.getTokenAfter(p,{includeComments:!0});while(a(p));return p&&ZA.isTokenOnSameLine(l,p)&&(c-=1),u<=c?$7(u,c+1):[]}return{"Program:exit"(){let l=i.lines.map((u,c)=>({lineNumber:c+1,text:u}));if(l.length>1&&l[l.length-1].text===""&&l.pop(),s&&(l=l.filter(u=>u.text.trim()!=="")),n){let c=i.getAllComments().flatMap(o);l=l.filter(p=>!c.includes(p.lineNumber))}if(l.length>r){let u={start:{line:l[r].lineNumber,column:0},end:{line:i.lines.length,column:i.lines[i.lines.length-1].length}};t.report({loc:u,messageId:"exceed",data:{max:r,actual:l.length}})}}}}}});var rw=M((nte,tw)=>{b();v();"use strict";var W7=pe(),{upperCaseFirst:G7}=oi(),z7={type:"object",properties:{max:{type:"integer",minimum:0},skipComments:{type:"boolean"},skipBlankLines:{type:"boolean"},IIFEs:{type:"boolean"}},additionalProperties:!1},H7={oneOf:[z7,{type:"integer",minimum:1}]};function K7(t){let e=new Map;return t.forEach(r=>{for(let n=r.loc.start.line;n<=r.loc.end.line;n++)e.set(n,r)}),e}tw.exports={meta:{type:"suggestion",docs:{description:"enforce a maximum number of lines of code in a function",recommended:!1,url:"https://eslint.org/docs/rules/max-lines-per-function"},schema:[H7],messages:{exceed:"{{name}} has too many lines ({{lineCount}}). Maximum allowed is {{maxLines}}."}},create(t){let e=t.getSourceCode(),r=e.lines,n=t.options[0],s=50,i=!1,a=!1,o=!1;typeof n=="object"?(s=typeof n.max=="number"?n.max:50,i=!!n.skipComments,a=!!n.skipBlankLines,o=!!n.IIFEs):typeof n=="number"&&(s=n);let l=K7(e.getAllComments());function u(f,m,x){let E=x.loc.start,S=x.loc.end,T=E.line===m&&!f.slice(0,E.column).trim(),I=S.line===m&&!f.slice(S.column).trim();return x&&(E.line<m||T)&&(S.line>m||I)}function c(f){return(f.type==="FunctionExpression"||f.type==="ArrowFunctionExpression")&&f.parent&&f.parent.type==="CallExpression"&&f.parent.callee===f}function p(f){return!f.parent||f!==f.parent.value?!1:f.parent.type==="MethodDefinition"?!0:f.parent.type==="Property"?f.parent.method===!0||f.parent.kind==="get"||f.parent.kind==="set":!1}function h(f){let m=p(f)?f.parent:f;if(!o&&c(m))return;let x=0;for(let E=m.loc.start.line-1;E<m.loc.end.line;++E){let S=r[E];i&&l.has(E+1)&&u(S,E+1,l.get(E+1))||a&&S.match(/^\s*$/u)||x++}if(x>s){let E=G7(W7.getFunctionNameWithKind(f));t.report({node:m,messageId:"exceed",data:{name:E,lineCount:x,maxLines:s}})}}return{FunctionDeclaration:h,FunctionExpression:h,ArrowFunctionExpression:h}}}});var nw=M((ite,sw)=>{b();v();"use strict";sw.exports={meta:{type:"suggestion",docs:{description:"enforce a maximum depth that callbacks can be nested",recommended:!1,url:"https://eslint.org/docs/rules/max-nested-callbacks"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{exceed:"Too many nested callbacks ({{num}}). Maximum allowed is {{max}}."}},create(t){let e=t.options[0],r=10;typeof e=="object"&&(Object.prototype.hasOwnProperty.call(e,"maximum")||Object.prototype.hasOwnProperty.call(e,"max"))?r=e.maximum||e.max:typeof e=="number"&&(r=e);let n=[];function s(a){if(a.parent.type==="CallExpression"&&n.push(a),n.length>r){let l={num:n.length,max:r};t.report({node:a,messageId:"exceed",data:l})}}function i(){n.pop()}return{ArrowFunctionExpression:s,"ArrowFunctionExpression:exit":i,FunctionExpression:s,"FunctionExpression:exit":i}}}});var ow=M((ate,iw)=>{b();v();"use strict";var aw=pe(),{upperCaseFirst:Y7}=oi();iw.exports={meta:{type:"suggestion",docs:{description:"enforce a maximum number of parameters in function definitions",recommended:!1,url:"https://eslint.org/docs/rules/max-params"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{exceed:"{{name}} has too many parameters ({{count}}). Maximum allowed is {{max}}."}},create(t){let e=t.getSourceCode(),r=t.options[0],n=3;typeof r=="object"&&(Object.prototype.hasOwnProperty.call(r,"maximum")||Object.prototype.hasOwnProperty.call(r,"max"))&&(n=r.maximum||r.max),typeof r=="number"&&(n=r);function s(i){i.params.length>n&&t.report({loc:aw.getFunctionHeadLoc(i,e),node:i,messageId:"exceed",data:{name:Y7(aw.getFunctionNameWithKind(i)),count:i.params.length,max:n}})}return{FunctionDeclaration:s,ArrowFunctionExpression:s,FunctionExpression:s}}}});var uw=M((ote,lw)=>{b();v();"use strict";var J7=pe(),{upperCaseFirst:Q7}=oi();lw.exports={meta:{type:"suggestion",docs:{description:"enforce a maximum number of statements allowed in function blocks",recommended:!1,url:"https://eslint.org/docs/rules/max-statements"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]},{type:"object",properties:{ignoreTopLevelFunctions:{type:"boolean"}},additionalProperties:!1}],messages:{exceed:"{{name}} has too many statements ({{count}}). Maximum allowed is {{max}}."}},create(t){let e=[],r=t.options[0],n=t.options[1]&&t.options[1].ignoreTopLevelFunctions||!1,s=[],i=10;typeof r=="object"&&(Object.prototype.hasOwnProperty.call(r,"maximum")||Object.prototype.hasOwnProperty.call(r,"max"))?i=r.maximum||r.max:typeof r=="number"&&(i=r);function a(c,p,h){if(p>h){let f=Q7(J7.getFunctionNameWithKind(c));t.report({node:c,messageId:"exceed",data:{name:f,count:p,max:h}})}}function o(){e.push(0)}function l(c){let p=e.pop();c.type!=="StaticBlock"&&(n&&e.length===0?s.push({node:c,count:p}):a(c,p,i))}function u(c){e[e.length-1]+=c.body.length}return{FunctionDeclaration:o,FunctionExpression:o,ArrowFunctionExpression:o,StaticBlock:o,BlockStatement:u,"FunctionDeclaration:exit":l,"FunctionExpression:exit":l,"ArrowFunctionExpression:exit":l,"StaticBlock:exit":l,"Program:exit"(){s.length!==1&&s.forEach(c=>{let p=c.count,h=c.node;a(h,p,i)})}}}}});var fw=M((lte,cw)=>{b();v();"use strict";var X7=pe();cw.exports={meta:{type:"layout",docs:{description:"enforce a maximum number of statements allowed per line",recommended:!1,url:"https://eslint.org/docs/rules/max-statements-per-line"},schema:[{type:"object",properties:{max:{type:"integer",minimum:1,default:1}},additionalProperties:!1}],messages:{exceed:"This line has {{numberOfStatementsOnThisLine}} {{statements}}. Maximum allowed is {{maxStatementsPerLine}}."}},create(t){let e=t.getSourceCode(),r=t.options[0]||{},n=typeof r.max!="undefined"?r.max:1,s=0,i=0,a,o=/^(?:(?:DoWhile|For|ForIn|ForOf|If|Labeled|While)Statement|Export(?:Default|Named)Declaration)$/u;function l(){a&&t.report({node:a,messageId:"exceed",data:{numberOfStatementsOnThisLine:i,maxStatementsPerLine:n,statements:i===1?"statement":"statements"}}),a=null}function u(h){return e.getLastToken(h,X7.isNotSemicolonToken)}function c(h){let f=h.loc.start.line;o.test(h.parent.type)&&h.parent.alternate!==h||(f===s?i+=1:(l(),i=1,s=f),i===n+1&&(a=a||h))}function p(h){let f=u(h).loc.end.line;f!==s&&(l(),i=1,s=f)}return{BreakStatement:c,ClassDeclaration:c,ContinueStatement:c,DebuggerStatement:c,DoWhileStatement:c,ExpressionStatement:c,ForInStatement:c,ForOfStatement:c,ForStatement:c,FunctionDeclaration:c,IfStatement:c,ImportDeclaration:c,LabeledStatement:c,ReturnStatement:c,SwitchStatement:c,ThrowStatement:c,TryStatement:c,VariableDeclaration:c,WhileStatement:c,WithStatement:c,ExportNamedDeclaration:c,ExportDefaultDeclaration:c,ExportAllDeclaration:c,"BreakStatement:exit":p,"ClassDeclaration:exit":p,"ContinueStatement:exit":p,"DebuggerStatement:exit":p,"DoWhileStatement:exit":p,"ExpressionStatement:exit":p,"ForInStatement:exit":p,"ForOfStatement:exit":p,"ForStatement:exit":p,"FunctionDeclaration:exit":p,"IfStatement:exit":p,"ImportDeclaration:exit":p,"LabeledStatement:exit":p,"ReturnStatement:exit":p,"SwitchStatement:exit":p,"ThrowStatement:exit":p,"TryStatement:exit":p,"VariableDeclaration:exit":p,"WhileStatement:exit":p,"WithStatement:exit":p,"ExportNamedDeclaration:exit":p,"ExportDefaultDeclaration:exit":p,"ExportAllDeclaration:exit":p,"Program:exit":l}}}});var hw=M((ute,pw)=>{b();v();"use strict";var fi=pe();pw.exports={meta:{type:"suggestion",docs:{description:"enforce a particular style for multiline comments",recommended:!1,url:"https://eslint.org/docs/rules/multiline-comment-style"},fixable:"whitespace",schema:[{enum:["starred-block","separate-lines","bare-block"]}],messages:{expectedBlock:"Expected a block comment instead of consecutive line comments.",expectedBareBlock:"Expected a block comment without padding stars.",startNewline:"Expected a linebreak after '/*'.",endNewline:"Expected a linebreak before '*/'.",missingStar:"Expected a '*' at the start of this line.",alignment:"Expected this line to be aligned with the start of the comment.",expectedLines:"Expected multiple line comments instead of a block comment."}},create(t){let e=t.getSourceCode(),r=t.options[0]||"starred-block";function n(x){return/^\s*\*/u.test(x)}function s([x]){if(x.type!=="Block")return!1;let E=x.value.split(fi.LINEBREAK_MATCHER);return E.length>0&&E.every((S,T)=>(T===0||T===E.length-1?/^\s*$/u:/^\s*\*/u).test(S))}function i([x]){if(x.type!=="Block")return!1;let E=x.value.split(fi.LINEBREAK_MATCHER);return/^\*\s*$/u.test(E[0])&&E.slice(1,-1).every(S=>/^\s* /u.test(S))&&/^\s*$/u.test(E[E.length-1])}function a(x){let E=x.map(({value:S})=>S).filter(S=>S.trim().length).every(S=>S.startsWith(" "));return x.map(({value:S})=>E?S.replace(/^ /u,""):S)}function o(x){let E=x.value.split(fi.LINEBREAK_MATCHER).filter((T,I,y)=>!(I===0||I===y.length-1)).map(T=>T.replace(/^\s*$/u,"")),S=E.map(T=>T.replace(/\s*\*/u,"")).filter(T=>T.trim().length).every(T=>T.startsWith(" "));return E.map(T=>T.replace(S?/\s*\* ?/u:/\s*\*/u,""))}function l(x){let E=x.value.split(fi.LINEBREAK_MATCHER).map(I=>I.replace(/^\s*$/u,"")),S=`${e.text.slice(x.range[0]-x.loc.start.column,x.range[0])} `,T="";for(let[I,y]of E.entries()){if(!y.trim().length||I===0)continue;let[,w]=y.match(/^(\s*\*?\s*)/u);if(w.length<S.length){let D=S.slice(w.length-S.length);D.length>T.length&&(T=D)}}return E.map(I=>{let y=I.match(/^(\s*\*?\s*)(.*)/u),[,w,D]=y;return w.length>S.length?`${w.slice(S.length-(T.length+w.length))}${D}`:w.length<S.length?`${w.slice(S.length)}${D}`:D})}function u(x){let[E]=x;return E.type==="Line"?a(x):s(x)?o(E):l(E)}function c(x){return e.text.slice(x.range[0]-x.loc.start.column,x.range[0])}function p(x,E){let S=c(x);return`/*
|
|
76
|
+
${E.map(T=>`${S} * ${T}`).join(`
|
|
77
|
+
`)}
|
|
78
|
+
${S} */`}function h(x,E){return E.map(S=>`// ${S}`).join(`
|
|
79
|
+
${c(x)}`)}function f(x,E){return`/* ${E.join(`
|
|
80
|
+
${c(x)} `)} */`}let m={"starred-block"(x){let[E]=x,S=u(x);if(!S.some(T=>T.includes("*/")))if(x.length>1)t.report({loc:{start:E.loc.start,end:x[x.length-1].loc.end},messageId:"expectedBlock",fix(T){let I=[E.range[0],x[x.length-1].range[1]];return S.some(y=>y.startsWith("/"))?null:T.replaceTextRange(I,p(E,S))}});else{let T=E.value.split(fi.LINEBREAK_MATCHER),y=`${c(E)} *`;if(!/^\*?\s*$/u.test(T[0])){let w=E.value.startsWith("*")?E.range[0]+1:E.range[0];t.report({loc:{start:E.loc.start,end:{line:E.loc.start.line,column:E.loc.start.column+2}},messageId:"startNewline",fix:D=>D.insertTextAfterRange([w,w+2],`
|
|
81
|
+
${y}`)})}/^\s*$/u.test(T[T.length-1])||t.report({loc:{start:{line:E.loc.end.line,column:E.loc.end.column-2},end:E.loc.end},messageId:"endNewline",fix:w=>w.replaceTextRange([E.range[1]-2,E.range[1]],`
|
|
82
|
+
${y}/`)});for(let w=E.loc.start.line+1;w<=E.loc.end.line;w++){let D=e.lines[w-1],R=n(D)?"alignment":"missingStar";D.startsWith(y)||t.report({loc:{start:{line:w,column:0},end:{line:w,column:D.length}},messageId:R,fix(z){let q=e.getIndexFromLoc({line:w,column:0});if(R==="alignment"){let[,$=""]=D.match(/^(\s*\*)/u)||[],F=q+$.length;return z.replaceTextRange([q,F],y)}let[,W=""]=D.match(/^(\s*)/u)||[],_=q+W.length,C;for(let[$,F]of T.entries()){if(!/\S+/u.test(F))continue;let U=e.lines[E.loc.start.line-1+$],[,Q="",B=""]=U.match(/^(\s*(?:\/?\*)?(\s*))/u)||[];C=`${W.slice(Q.length)}${B}`,/^\s*\//u.test(D)&&C.length===0&&(C+=" ");break}return z.replaceTextRange([q,_],`${y}${C}`)}})}}},"separate-lines"(x){let[E]=x;if(E.type!=="Block"||i(x))return;let S=u(x),T=e.getTokenAfter(E,{includeComments:!0});T&&E.loc.end.line===T.loc.start.line||t.report({loc:{start:E.loc.start,end:{line:E.loc.start.line,column:E.loc.start.column+2}},messageId:"expectedLines",fix(I){return I.replaceText(E,h(E,S))}})},"bare-block"(x){if(i(x))return;let[E]=x,S=u(x);E.type==="Line"&&S.length>1&&!S.some(T=>T.includes("*/"))&&t.report({loc:{start:E.loc.start,end:x[x.length-1].loc.end},messageId:"expectedBlock",fix(T){return T.replaceTextRange([E.range[0],x[x.length-1].range[1]],f(E,S))}}),s(x)&&t.report({loc:{start:E.loc.start,end:{line:E.loc.start.line,column:E.loc.start.column+2}},messageId:"expectedBareBlock",fix(T){return T.replaceText(E,f(E,S))}})}};return{Program(){return e.getAllComments().filter(x=>x.type!=="Shebang").filter(x=>!fi.COMMENTS_IGNORE_PATTERN.test(x.value)).filter(x=>{let E=e.getTokenBefore(x,{includeComments:!0});return!E||E.loc.end.line<x.loc.start.line}).reduce((x,E,S,T)=>{let I=e.getTokenBefore(E,{includeComments:!0});return E.type==="Line"&&S&&T[S-1].type==="Line"&&I&&I.loc.end.line===E.loc.start.line-1&&I===T[S-1]?x[x.length-1].push(E):x.push([E]),x},[]).filter(x=>!(x.length===1&&x[0].loc.start.line===x[0].loc.end.line)).forEach(m[r])}}}}});var dw=M((cte,mw)=>{b();v();"use strict";var Gs=pe();mw.exports={meta:{type:"layout",docs:{description:"enforce newlines between operands of ternary expressions",recommended:!1,url:"https://eslint.org/docs/rules/multiline-ternary"},schema:[{enum:["always","always-multiline","never"]}],messages:{expectedTestCons:"Expected newline between test and consequent of ternary expression.",expectedConsAlt:"Expected newline between consequent and alternate of ternary expression.",unexpectedTestCons:"Unexpected newline between test and consequent of ternary expression.",unexpectedConsAlt:"Unexpected newline between consequent and alternate of ternary expression."},fixable:"whitespace"},create(t){let e=t.getSourceCode(),r=t.options[0],n=r!=="never",s=r==="always-multiline";return{ConditionalExpression(i){let a=e.getTokenAfter(i.test,Gs.isNotClosingParenToken),o=e.getTokenAfter(i.consequent,Gs.isNotClosingParenToken),l=e.getFirstToken(i),u=e.getTokenBefore(a),c=e.getTokenAfter(a),p=e.getTokenBefore(o),h=e.getTokenAfter(o),f=Gs.isTokenOnSameLine(u,c),m=Gs.isTokenOnSameLine(p,h),x=!!e.getCommentsInside(i).length;if(!n)f||t.report({node:i.test,loc:{start:l.loc.start,end:u.loc.end},messageId:"unexpectedTestCons",fix:E=>{if(x)return null;let S=[],T=Gs.isTokenOnSameLine(u,a),I=Gs.isTokenOnSameLine(a,c);return T||S.push(E.removeRange([u.range[1],a.range[0]])),I||S.push(E.removeRange([a.range[1],c.range[0]])),S}}),m||t.report({node:i.consequent,loc:{start:c.loc.start,end:p.loc.end},messageId:"unexpectedConsAlt",fix:E=>{if(x)return null;let S=[],T=Gs.isTokenOnSameLine(p,o),I=Gs.isTokenOnSameLine(o,h);return T||S.push(E.removeRange([p.range[1],o.range[0]])),I||S.push(E.removeRange([o.range[1],h.range[0]])),S}});else{if(s&&i.loc.start.line===i.loc.end.line)return;f&&t.report({node:i.test,loc:{start:l.loc.start,end:u.loc.end},messageId:"expectedTestCons",fix:E=>x?null:E.replaceTextRange([u.range[1],a.range[0]],`
|
|
83
|
+
`)}),m&&t.report({node:i.consequent,loc:{start:c.loc.start,end:p.loc.end},messageId:"expectedConsAlt",fix:E=>x?null:E.replaceTextRange([p.range[1],o.range[0]],`
|
|
84
|
+
`)})}}}}}});var Ew=M((fte,gw)=>{b();v();"use strict";var tp=pe(),rp=["Array","Boolean","Date","Error","Function","Number","Object","RegExp","String","Symbol","BigInt"];function yw(t,e,r){if(Object.prototype.hasOwnProperty.call(t,e)&&!Array.isArray(t[e]))throw new TypeError(`${e}, if provided, must be an Array`);return t[e]||r}function xw(t,e){return t[e]=!0,t}function Z7(t){let e=yw(t,"capIsNewExceptions",rp);return e!==rp&&(e=e.concat(rp)),e.reduce(xw,{})}gw.exports={meta:{type:"suggestion",docs:{description:"require constructor names to begin with a capital letter",recommended:!1,url:"https://eslint.org/docs/rules/new-cap"},schema:[{type:"object",properties:{newIsCap:{type:"boolean",default:!0},capIsNew:{type:"boolean",default:!0},newIsCapExceptions:{type:"array",items:{type:"string"}},newIsCapExceptionPattern:{type:"string"},capIsNewExceptions:{type:"array",items:{type:"string"}},capIsNewExceptionPattern:{type:"string"},properties:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{upper:"A function with a name starting with an uppercase letter should only be used as a constructor.",lower:"A constructor name should not start with a lowercase letter."}},create(t){let e=Object.assign({},t.options[0]);e.newIsCap=e.newIsCap!==!1,e.capIsNew=e.capIsNew!==!1;let r=e.properties===!1,n=yw(e,"newIsCapExceptions",[]).reduce(xw,{}),s=e.newIsCapExceptionPattern?new RegExp(e.newIsCapExceptionPattern,"u"):null,i=Z7(e),a=e.capIsNewExceptionPattern?new RegExp(e.capIsNewExceptionPattern,"u"):null,o={},l=t.getSourceCode();function u(f){return f.callee.type==="Identifier"?f.callee.name:tp.getStaticPropertyName(f.callee)||""}function c(f){let m=f.charAt(0),x=m.toLowerCase(),E=m.toUpperCase();return x===E?"non-alpha":m===x?"lower":"upper"}function p(f,m,x,E){let S=l.getText(m.callee);if(f[x]||f[S]||E&&E.test(S))return!0;let T=tp.skipChainExpression(m.callee);return x==="UTC"&&T.type==="MemberExpression"?T.object.type==="Identifier"&&T.object.name==="Date":r&&T.type==="MemberExpression"}function h(f,m){let x=tp.skipChainExpression(f.callee);x.type==="MemberExpression"&&(x=x.property),t.report({node:f,loc:x.loc,messageId:m})}return e.newIsCap&&(o.NewExpression=function(f){let m=u(f);m&&(c(m)!=="lower"||p(n,f,m,s)||h(f,"lower"))}),e.capIsNew&&(o.CallExpression=function(f){let m=u(f);m&&(c(m)!=="upper"||p(i,f,m,a)||h(f,"upper"))}),o}}});var Cw=M((pte,bw)=>{b();v();"use strict";var vw=pe();bw.exports={meta:{type:"layout",docs:{description:"enforce or disallow parentheses when invoking a constructor with no arguments",recommended:!1,url:"https://eslint.org/docs/rules/new-parens"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["always","never"]}],minItems:0,maxItems:1}]},messages:{missing:"Missing '()' invoking a constructor.",unnecessary:"Unnecessary '()' invoking a constructor with no arguments."}},create(t){let r=t.options[0]!=="never",n=t.getSourceCode();return{NewExpression(s){if(s.arguments.length!==0)return;let i=n.getLastToken(s),o=i&&vw.isClosingParenToken(i)&&vw.isOpeningParenToken(n.getTokenBefore(i))&&s.callee.range[1]<s.range[1];r?o||t.report({node:s,messageId:"missing",fix:l=>l.insertTextAfter(s,"()")}):o&&t.report({node:s,messageId:"unnecessary",fix:l=>[l.remove(n.getTokenBefore(i)),l.remove(i),l.insertTextBefore(s,"("),l.insertTextAfter(s,")")]})}}}}});var Aw=M((hte,Sw)=>{b();v();"use strict";var eU=pe();Sw.exports={meta:{type:"layout",docs:{description:"require or disallow an empty line after variable declarations",recommended:!1,url:"https://eslint.org/docs/rules/newline-after-var"},schema:[{enum:["never","always"]}],fixable:"whitespace",messages:{expected:"Expected blank line after variable declarations.",unexpected:"Unexpected blank line after variable declarations."},deprecated:!0,replacedBy:["padding-line-between-statements"]},create(t){let e=t.getSourceCode(),r=t.options[0]==="never"?"never":"always",n=e.getAllComments().reduce((h,f)=>(h[f.loc.start.line]=f.loc.end.line,h),{});function s(h){let f=e.getLastToken(h);if(f.type==="Punctuator"&&f.value===";"){let m=e.getTokenBefore(f);if(m.loc.end.line!==f.loc.start.line)return m}return f}function i(h){return h==="var"||h==="let"||h==="const"}function a(h){return h==="ForStatement"||h==="ForInStatement"||h==="ForOfStatement"}function o(h){return h==="ExportNamedDeclaration"||h==="ExportSpecifier"||h==="ExportDefaultDeclaration"||h==="ExportAllDeclaration"}function l(h){let f=e.getTokenAfter(h);return!f||f.type==="Punctuator"&&f.value==="}"}function u(h){let f=n[h];return n[f+1]?u(f+1):f}function c(h,f){return h.loc.start.line>u(f)+1}function p(h){let f=s(h),m=f===e.getLastToken(h)?e.getTokenAfter(h):e.getLastToken(h),x=f.loc.end.line+1;if(!m||a(h.parent.type)||o(h.parent.type)||m.type==="Keyword"&&i(m.value)||l(h))return;let E=m.loc.start.line>x,S=typeof n[x]!="undefined";r==="never"&&E&&!S&&t.report({node:h,messageId:"unexpected",data:{identifier:h.name},fix(T){let I=e.getText().slice(f.range[1],m.range[0]).split(eU.LINEBREAK_MATCHER);return T.replaceTextRange([f.range[1],m.range[0]],`${I.slice(0,-1).join("")}
|
|
85
|
+
${I[I.length-1]}`)}}),r==="always"&&(!E||S&&!c(m,x))&&t.report({node:h,messageId:"expected",data:{identifier:h.name},fix(T){return(E?u(x):f.loc.end.line)===m.loc.start.line?T.insertTextBefore(m,`
|
|
86
|
+
|
|
87
|
+
`):T.insertTextBeforeRange([m.range[0]-m.loc.start.column,m.range[1]],`
|
|
88
|
+
`)}})}return{VariableDeclaration:p}}}});var kw=M((mte,ww)=>{b();v();"use strict";ww.exports={meta:{type:"layout",docs:{description:"require an empty line before `return` statements",recommended:!1,url:"https://eslint.org/docs/rules/newline-before-return"},fixable:"whitespace",schema:[],messages:{expected:"Expected newline before return statement."},deprecated:!0,replacedBy:["padding-line-between-statements"]},create(t){let e=t.getSourceCode();function r(l,u){let c=e.getTokenBefore(l);return u.some(p=>c.value===p)}function n(l){let u=l.parent.type;return l.parent.body?Array.isArray(l.parent.body)?l.parent.body[0]===l:l.parent.body===l:u==="IfStatement"?r(l,["else",")"]):u==="DoWhileStatement"?r(l,["do"]):u==="SwitchCase"?r(l,[":"]):r(l,[")"])}function s(l,u){let c=e.getCommentsBefore(l),p=0;return c.length&&c.forEach(h=>{p++,h.type==="Block"&&(p+=h.loc.end.line-h.loc.start.line),h.loc.start.line===u&&p--,h.loc.end.line===l.loc.start.line&&p--}),p}function i(l){let u=e.getTokenBefore(l),c;return u?c=u.loc.end.line:c=0,c}function a(l){let u=l.loc.start.line,c=i(l),p=s(l,c);return u-c-p>1}function o(l){let u=e.getCommentsBefore(l),c=u[u.length-1],p=e.getTokenBefore(l);return u.length===0||c.loc.end.line===p.loc.end.line&&c.loc.end.line!==l.loc.start.line}return{ReturnStatement(l){!n(l)&&!a(l)&&t.report({node:l,messageId:"expected",fix(u){if(o(l)){let c=e.getTokenBefore(l),p=l.loc.start.line===c.loc.end.line?`
|
|
89
|
+
|
|
90
|
+
`:`
|
|
91
|
+
`;return u.insertTextBefore(l,p)}return null}})}}}}});var Tw=M((dte,Dw)=>{b();v();"use strict";var Fn=pe();Dw.exports={meta:{type:"layout",docs:{description:"require a newline after each call in a method chain",recommended:!1,url:"https://eslint.org/docs/rules/newline-per-chained-call"},fixable:"whitespace",schema:[{type:"object",properties:{ignoreChainWithDepth:{type:"integer",minimum:1,maximum:10,default:2}},additionalProperties:!1}],messages:{expected:"Expected line break before `{{callee}}`."}},create(t){let e=t.options[0]||{},r=e.ignoreChainWithDepth||2,n=t.getSourceCode();function s(a){return a.computed?a.optional?"?.[":"[":a.optional?"?.":"."}function i(a){let o=s(a),l=n.getText(a.property).split(Fn.LINEBREAK_MATCHER),u=a.computed&&l.length===1?"]":"";return o+l[0]+u}return{"CallExpression:exit"(a){let o=Fn.skipChainExpression(a.callee);if(o.type!=="MemberExpression")return;let l=Fn.skipChainExpression(o.object),u=1;for(;l&&l.callee;)u+=1,l=Fn.skipChainExpression(Fn.skipChainExpression(l.callee).object);if(u>r&&Fn.isTokenOnSameLine(o.object,o.property)){let c=n.getTokenAfter(o.object,Fn.isNotClosingParenToken);t.report({node:o.property,loc:{start:c.loc.start,end:o.loc.end},messageId:"expected",data:{callee:i(o)},fix(p){return p.insertTextBefore(c,`
|
|
92
|
+
`)}})}}}}}});var _w=M((gte,Fw)=>{b();v();"use strict";var{getStaticPropertyName:tU,getVariableByName:rU,skipChainExpression:sU}=pe();function Pw(t){return/^(alert|confirm|prompt)$/u.test(t)}function nU(t,e){let r=t.references.filter(n=>n.identifier.range[0]===e.range[0]&&n.identifier.range[1]===e.range[1]);return r.length===1?r[0]:null}function Iw(t,e){let r=nU(t,e);return r&&r.resolved&&r.resolved.defs.length>0}function iU(t,e){return t.type==="global"&&e.type==="ThisExpression"?!0:e.type==="Identifier"&&(e.name==="window"||e.name==="globalThis"&&rU(t,"globalThis"))?!Iw(t,e):!1}Fw.exports={meta:{type:"suggestion",docs:{description:"disallow the use of `alert`, `confirm`, and `prompt`",recommended:!1,url:"https://eslint.org/docs/rules/no-alert"},schema:[],messages:{unexpected:"Unexpected {{name}}."}},create(t){return{CallExpression(e){let r=sU(e.callee),n=t.getScope();if(r.type==="Identifier"){let s=r.name;!Iw(n,r)&&Pw(r.name)&&t.report({node:e,messageId:"unexpected",data:{name:s}})}else if(r.type==="MemberExpression"&&iU(n,r.object)){let s=tU(r);Pw(s)&&t.report({node:e,messageId:"unexpected",data:{name:s}})}}}}}});var Ow=M((yte,Bw)=>{b();v();"use strict";Bw.exports={meta:{type:"suggestion",docs:{description:"disallow `Array` constructors",recommended:!1,url:"https://eslint.org/docs/rules/no-array-constructor"},schema:[],messages:{preferLiteral:"The array literal notation [] is preferable."}},create(t){function e(r){r.arguments.length!==1&&r.callee.type==="Identifier"&&r.callee.name==="Array"&&t.report({node:r,messageId:"preferLiteral"})}return{CallExpression:e,NewExpression:e}}}});var Lw=M((xte,Rw)=>{b();v();"use strict";Rw.exports={meta:{type:"problem",docs:{description:"disallow using an async function as a Promise executor",recommended:!0,url:"https://eslint.org/docs/rules/no-async-promise-executor"},fixable:null,schema:[],messages:{async:"Promise executor functions should not be async."}},create(t){return{"NewExpression[callee.name='Promise'][arguments.0.async=true]"(e){t.report({node:t.getSourceCode().getFirstToken(e.arguments[0],r=>r.value==="async"),messageId:"async"})}}}}});var Mw=M((Ete,Nw)=>{b();v();"use strict";function aU(t){let e=t.type;return e==="FunctionDeclaration"||e==="FunctionExpression"||e==="ArrowFunctionExpression"||e==="ForOfStatement"&&t.await===!0}function oU(t,e){switch(e.type){case"ForStatement":return t===e.test||t===e.update||t===e.body;case"ForOfStatement":case"ForInStatement":return t===e.body;case"WhileStatement":case"DoWhileStatement":return t===e.test||t===e.body;default:return!1}}Nw.exports={meta:{type:"problem",docs:{description:"disallow `await` inside of loops",recommended:!1,url:"https://eslint.org/docs/rules/no-await-in-loop"},schema:[],messages:{unexpectedAwait:"Unexpected `await` inside a loop."}},create(t){function e(r){if(r.type==="ForOfStatement"&&!r.await)return;let n=r,s=n.parent;for(;s&&!aU(s);){if(oU(n,s)){t.report({node:r,messageId:"unexpectedAwait"});return}n=s,s=s.parent}}return{AwaitExpression:e,ForOfStatement:e}}}});var Vw=M((bte,jw)=>{b();v();"use strict";var qw=["^","|","&","<<",">>",">>>","^=","|=","&=","<<=",">>=",">>>=","~"];jw.exports={meta:{type:"suggestion",docs:{description:"disallow bitwise operators",recommended:!1,url:"https://eslint.org/docs/rules/no-bitwise"},schema:[{type:"object",properties:{allow:{type:"array",items:{enum:qw},uniqueItems:!0},int32Hint:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"Unexpected use of '{{operator}}'."}},create(t){let e=t.options[0]||{},r=e.allow||[],n=e.int32Hint===!0;function s(u){t.report({node:u,messageId:"unexpected",data:{operator:u.operator}})}function i(u){return qw.indexOf(u.operator)!==-1}function a(u){return r.indexOf(u.operator)!==-1}function o(u){return n&&u.operator==="|"&&u.right&&u.right.type==="Literal"&&u.right.value===0}function l(u){i(u)&&!a(u)&&!o(u)&&s(u)}return{AssignmentExpression:l,BinaryExpression:l,UnaryExpression:l}}}});var $w=M((vte,Uw)=>{b();v();"use strict";Uw.exports={meta:{deprecated:!0,replacedBy:[],type:"problem",docs:{description:"disallow use of the `Buffer()` constructor",recommended:!1,url:"https://eslint.org/docs/rules/no-buffer-constructor"},schema:[],messages:{deprecated:"{{expr}} is deprecated. Use Buffer.from(), Buffer.alloc(), or Buffer.allocUnsafe() instead."}},create(t){return{"CallExpression[callee.name='Buffer'], NewExpression[callee.name='Buffer']"(e){t.report({node:e,messageId:"deprecated",data:{expr:e.type==="CallExpression"?"Buffer()":"new Buffer()"}})}}}}});var Gw=M((Cte,Ww)=>{b();v();"use strict";Ww.exports={meta:{type:"suggestion",docs:{description:"disallow the use of `arguments.caller` or `arguments.callee`",recommended:!1,url:"https://eslint.org/docs/rules/no-caller"},schema:[],messages:{unexpected:"Avoid arguments.{{prop}}."}},create(t){return{MemberExpression(e){let r=e.object.name,n=e.property.name;r==="arguments"&&!e.computed&&n&&n.match(/^calle[er]$/u)&&t.report({node:e,messageId:"unexpected",data:{prop:n}})}}}}});var Hw=M((Ste,zw)=>{b();v();"use strict";zw.exports={meta:{type:"suggestion",docs:{description:"disallow lexical declarations in case clauses",recommended:!0,url:"https://eslint.org/docs/rules/no-case-declarations"},schema:[],messages:{unexpected:"Unexpected lexical declaration in case block."}},create(t){function e(r){switch(r.type){case"FunctionDeclaration":case"ClassDeclaration":return!0;case"VariableDeclaration":return r.kind!=="var";default:return!1}}return{SwitchCase(r){for(let n=0;n<r.consequent.length;n++){let s=r.consequent[n];e(s)&&t.report({node:s,messageId:"unexpected"})}}}}}});var Yw=M((Ate,Kw)=>{b();v();"use strict";var lU=pe();Kw.exports={meta:{type:"suggestion",docs:{description:"disallow `catch` clause parameters from shadowing variables in the outer scope",recommended:!1,url:"https://eslint.org/docs/rules/no-catch-shadow"},replacedBy:["no-shadow"],deprecated:!0,schema:[],messages:{mutable:"Value of '{{name}}' may be overwritten in IE 8 and earlier."}},create(t){function e(r,n){return lU.getVariableByName(r,n)!==null}return{"CatchClause[param!=null]"(r){let n=t.getScope();n.block===r&&(n=n.upper),e(n,r.param.name)&&t.report({node:r,messageId:"mutable",data:{name:r.param.name}})}}}}});var Qw=M((wte,Jw)=>{b();v();"use strict";var uU=pe();Jw.exports={meta:{type:"problem",docs:{description:"disallow reassigning class members",recommended:!0,url:"https://eslint.org/docs/rules/no-class-assign"},schema:[],messages:{class:"'{{name}}' is a class."}},create(t){function e(n){uU.getModifyingReferences(n.references).forEach(s=>{t.report({node:s.identifier,messageId:"class",data:{name:s.identifier.name}})})}function r(n){t.getDeclaredVariables(n).forEach(e)}return{ClassDeclaration:r,ClassExpression:r}}}});var Zw=M((kte,Xw)=>{b();v();"use strict";Xw.exports={meta:{type:"problem",docs:{description:"disallow comparing against -0",recommended:!0,url:"https://eslint.org/docs/rules/no-compare-neg-zero"},fixable:null,schema:[],messages:{unexpected:"Do not use the '{{operator}}' operator to compare against -0."}},create(t){function e(n){return n.type==="UnaryExpression"&&n.operator==="-"&&n.argument.type==="Literal"&&n.argument.value===0}let r=new Set([">",">=","<","<=","==","===","!=","!=="]);return{BinaryExpression(n){r.has(n.operator)&&(e(n.left)||e(n.right))&&t.report({node:n,messageId:"unexpected",data:{operator:n.operator}})}}}}});var tk=M((Dte,ek)=>{b();v();"use strict";var da=pe(),cU=new Set(["IfStatement","WhileStatement","DoWhileStatement","ForStatement","ConditionalExpression"]),fU={DoWhileStatement:"a 'do...while' statement",ForStatement:"a 'for' statement",IfStatement:"an 'if' statement",WhileStatement:"a 'while' statement"};ek.exports={meta:{type:"problem",docs:{description:"disallow assignment operators in conditional expressions",recommended:!0,url:"https://eslint.org/docs/rules/no-cond-assign"},schema:[{enum:["except-parens","always"]}],messages:{unexpected:"Unexpected assignment within {{type}}.",missing:"Expected a conditional expression and instead saw an assignment."}},create(t){let e=t.options[0]||"except-parens",r=t.getSourceCode();function n(l){return l.parent&&cU.has(l.parent.type)&&l===l.parent.test}function s(l){let u=l;do if(n(u))return u.parent;while((u=u.parent)&&!da.isFunction(u));return null}function i(l){let u=r.getTokenBefore(l,1),c=r.getTokenAfter(l,1);return da.isParenthesised(r,l)&&u&&da.isOpeningParenToken(u)&&u.range[1]<=l.range[0]&&da.isClosingParenToken(c)&&c.range[0]>=l.range[1]}function a(l){l.test&&l.test.type==="AssignmentExpression"&&(l.type==="ForStatement"?!da.isParenthesised(r,l.test):!i(l.test))&&t.report({node:l.test,messageId:"missing"})}function o(l){let u=s(l);u&&t.report({node:l,messageId:"unexpected",data:{type:fU[u.type]||u.type}})}return e==="always"?{AssignmentExpression:o}:{DoWhileStatement:a,ForStatement:a,IfStatement:a,WhileStatement:a,ConditionalExpression:a}}}});var sk=M((Tte,rk)=>{b();v();"use strict";var pU=pe();function hU(t){return t&&t.type==="ConditionalExpression"}rk.exports={meta:{type:"suggestion",docs:{description:"disallow arrow functions where they could be confused with comparisons",recommended:!1,url:"https://eslint.org/docs/rules/no-confusing-arrow"},fixable:"code",schema:[{type:"object",properties:{allowParens:{type:"boolean",default:!0},onlyOneSimpleParam:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{confusing:"Arrow function used ambiguously with a conditional expression."}},create(t){let e=t.options[0]||{},r=e.allowParens||e.allowParens===void 0,n=e.onlyOneSimpleParam,s=t.getSourceCode();function i(a){let o=a.body;hU(o)&&!(r&&pU.isParenthesised(s,o))&&!(n&&!(a.params.length===1&&a.params[0].type==="Identifier"))&&t.report({node:a,messageId:"confusing",fix(l){return r&&l.replaceText(a.body,`(${s.getText(a.body)})`)}})}return{ArrowFunctionExpression:i}}}});var ak=M((Fte,nk)=>{b();v();"use strict";var ik=pe();nk.exports={meta:{type:"suggestion",docs:{description:"disallow the use of `console`",recommended:!1,url:"https://eslint.org/docs/rules/no-console"},schema:[{type:"object",properties:{allow:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"Unexpected console statement."}},create(t){let r=(t.options[0]||{}).allow||[];function n(o){let l=o.identifier;return l&&l.name==="console"}function s(o){let l=ik.getStaticPropertyName(o);return l&&r.indexOf(l)!==-1}function i(o){let l=o.identifier,u=l.parent;return u.type==="MemberExpression"&&u.object===l&&!s(u)}function a(o){let l=o.identifier.parent;t.report({node:l,loc:l.loc,messageId:"unexpected"})}return{"Program:exit"(){let o=t.getScope(),l=ik.getVariableByName(o,"console"),u=l&&l.defs.length>0,c=l?l.references:o.through.filter(n);u||c.filter(i).forEach(a)}}}}});var lk=M((Pte,ok)=>{b();v();"use strict";var mU=pe();ok.exports={meta:{type:"problem",docs:{description:"disallow reassigning `const` variables",recommended:!0,url:"https://eslint.org/docs/rules/no-const-assign"},schema:[],messages:{const:"'{{name}}' is constant."}},create(t){function e(r){mU.getModifyingReferences(r.references).forEach(n=>{t.report({node:n.identifier,messageId:"const",data:{name:n.identifier.name}})})}return{VariableDeclaration(r){r.kind==="const"&&t.getDeclaredVariables(r).forEach(e)}}}}});var ck=M((Ite,uk)=>{b();v();"use strict";uk.exports={meta:{type:"problem",docs:{description:"disallow constant expressions in conditions",recommended:!0,url:"https://eslint.org/docs/rules/no-constant-condition"},schema:[{type:"object",properties:{checkLoops:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpected:"Unexpected constant condition."}},create(t){let e=t.options[0]||{},r=e.checkLoops!==!1,n=[],s=new Set;function i(x){return x.value===null?x.raw==="null"?!1:typeof x.regex=="object"?!0:null:!!x.value}function a(x,E){switch(x.type){case"Literal":return E==="||"&&i(x)===!0||E==="&&"&&i(x)===!1;case"UnaryExpression":return E==="&&"&&x.operator==="void";case"LogicalExpression":return E===x.operator&&(a(x.left,E)||a(x.right,E));case"AssignmentExpression":return["||=","&&="].includes(x.operator)&&E===x.operator.slice(0,-1)&&a(x.right,E)}return!1}function o(x){let S=t.getScope().references.find(T=>T.identifier===x);return Boolean(S&&S.resolved&&S.resolved.scope.type==="global"&&S.resolved.defs.length===0)}function l(x,E){if(!x)return!0;switch(x.type){case"Literal":case"ArrowFunctionExpression":case"FunctionExpression":return!0;case"ClassExpression":case"ObjectExpression":return!0;case"TemplateLiteral":return E&&x.quasis.some(S=>S.value.cooked.length)||x.expressions.every(S=>l(S,!1));case"ArrayExpression":return E?!0:x.elements.every(S=>l(S,!1));case"UnaryExpression":return x.operator==="void"||x.operator==="typeof"&&E?!0:x.operator==="!"?l(x.argument,!0):l(x.argument,!1);case"BinaryExpression":return l(x.left,!1)&&l(x.right,!1)&&x.operator!=="in";case"LogicalExpression":{let S=l(x.left,E),T=l(x.right,E),I=S&&a(x.left,x.operator),y=E&&T&&a(x.right,x.operator);return S&&T||I||y}case"NewExpression":return E;case"AssignmentExpression":return x.operator==="="?l(x.right,E):["||=","&&="].includes(x.operator)&&E?a(x.right,x.operator.slice(0,-1)):!1;case"SequenceExpression":return l(x.expressions[x.expressions.length-1],E);case"SpreadElement":return l(x.argument,E);case"CallExpression":return x.callee.type==="Identifier"&&x.callee.name==="Boolean"&&(x.arguments.length===0||l(x.arguments[0],!0))?o(x.callee):!1;case"Identifier":return x.name==="undefined"&&o(x)}return!1}function u(x){x.test&&l(x.test,!0)&&s.add(x)}function c(x){s.has(x)&&(s.delete(x),t.report({node:x.test,messageId:"unexpected"}))}function p(x){x.test&&l(x.test,!0)&&t.report({node:x.test,messageId:"unexpected"})}function h(){n.push(s),s=new Set}function f(){s=n.pop()}function m(x){r&&u(x)}return{ConditionalExpression:p,IfStatement:p,WhileStatement:m,"WhileStatement:exit":c,DoWhileStatement:m,"DoWhileStatement:exit":c,ForStatement:m,"ForStatement > .test":x=>m(x.parent),"ForStatement:exit":c,FunctionDeclaration:h,"FunctionDeclaration:exit":f,FunctionExpression:h,"FunctionExpression:exit":f,YieldExpression:()=>s.clear()}}}});var pk=M((_te,fk)=>{b();v();"use strict";fk.exports={meta:{type:"problem",docs:{description:"disallow returning value from constructor",recommended:!1,url:"https://eslint.org/docs/rules/no-constructor-return"},schema:{},fixable:null,messages:{unexpected:"Unexpected return statement in constructor."}},create(t){let e=[];return{onCodePathStart(r,n){e.push(n)},onCodePathEnd(){e.pop()},ReturnStatement(r){let n=e[e.length-1];!n.parent||n.parent.type==="MethodDefinition"&&n.parent.kind==="constructor"&&(r.parent.parent===n||r.argument)&&t.report({node:r,messageId:"unexpected"})}}}}});var mk=M((Bte,hk)=>{b();v();"use strict";hk.exports={meta:{type:"suggestion",docs:{description:"disallow `continue` statements",recommended:!1,url:"https://eslint.org/docs/rules/no-continue"},schema:[],messages:{unexpected:"Unexpected use of continue statement."}},create(t){return{ContinueStatement(e){t.report({node:e,messageId:"unexpected"})}}}}});var Ks=M(zs=>{b();v();"use strict";Object.defineProperty(zs,"__esModule",{value:!0});var dU=Object.freeze({}),dk,gk;function gU(t){return t<65?!1:t<91?!0:t<97?!1:t<123?!0:yk(t)}function xk(t){return t<48?!1:t<58?!0:t<65?!1:t<91||t===95?!0:t<97?!1:t<123?!0:yk(t)||yU(t)}function yk(t){return Ek(t,dk||(dk=xU()))}function yU(t){return Ek(t,gk||(gk=EU()))}function xU(){return bk("4q 0 b 0 5 0 6 m 2 u 2 cp 5 b f 4 8 0 2 0 3m 4 2 1 3 3 2 0 7 0 2 2 2 0 2 j 2 2a 2 3u 9 4l 2 11 3 0 7 14 20 q 5 3 1a 16 10 1 2 2q 2 0 g 1 8 1 b 2 3 0 h 0 2 t u 2g c 0 p w a 1 5 0 6 l 5 0 a 0 4 0 o o 8 a 1i k 2 h 1p 1h 4 0 j 0 8 9 g f 5 7 3 1 3 l 2 6 2 0 4 3 4 0 h 0 e 1 2 2 f 1 b 0 9 5 5 1 3 l 2 6 2 1 2 1 2 1 w 3 2 0 k 2 h 8 2 2 2 l 2 6 2 1 2 4 4 0 j 0 g 1 o 0 c 7 3 1 3 l 2 6 2 1 2 4 4 0 v 1 2 2 g 0 i 0 2 5 4 2 2 3 4 1 2 0 2 1 4 1 4 2 4 b n 0 1h 7 2 2 2 m 2 f 4 0 r 2 6 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 x 0 2 1 g 1 i 8 2 2 2 14 3 0 h 0 6 2 9 2 p 5 6 h 4 n 2 8 2 0 3 6 1n 1b 2 1 d 6 1n 1 2 0 2 4 2 n 2 0 2 9 2 1 a 0 3 4 2 0 m 3 x 0 1s 7 2 z s 4 38 16 l 0 h 5 5 3 4 0 4 1 8 2 5 c d 0 i 11 2 0 6 0 3 16 2 98 2 3 3 6 2 0 2 3 3 14 2 3 3 w 2 3 3 6 2 0 2 3 3 e 2 1k 2 3 3 1u 12 f h 2d 3 5 4 h7 3 g 2 p 6 22 4 a 8 c 2 3 f h f h f c 2 2 g 1f 10 0 5 0 1w 2g 8 14 2 0 6 1x b u 1e t 3 4 c 17 5 p 1j m a 1g 2b 0 2m 1a i 6 1k t e 1 b 17 r z 16 2 b z 3 8 8 16 3 2 16 3 2 5 2 1 4 0 6 5b 1t 7p 3 5 3 11 3 5 3 7 2 0 2 0 2 0 2 u 3 1g 2 6 2 0 4 2 2 6 4 3 3 5 5 c 6 2 2 6 39 0 e 0 h c 2u 0 5 0 3 9 2 0 3 5 7 0 2 0 2 0 2 f 3 3 6 4 5 0 i 14 22g 1a 2 1a 2 3o 7 3 4 1 d 11 2 0 6 0 3 1j 8 0 h m a 6 2 6 2 6 2 6 2 6 2 6 2 6 2 6 fb 2 q 8 8 4 3 4 5 2d 5 4 2 2h 2 3 6 16 2 2l i v 1d f e9 533 1t g70 4 wc 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 1g 3 8 17 c 2 2 2 3 2 m u 1f f 1d 1r 5 4 0 2 1 c r b m q s 8 1a t 0 h 4 2 9 b 4 2 14 o 2 2 7 l m 4 0 4 1d 2 0 4 1 3 4 3 0 2 0 p 2 3 a 8 2 d 5 3 5 3 5 a 6 2 6 2 16 2 d 7 36 u 8mb d m 5 1c 6it a5 3 2x 13 6 d 4 6 0 2 9 2 c 2 4 2 0 2 1 2 1 2 2z y a2 j 1r 3 1h 15 b 39 4 2 3q 11 p 7 p c 2g 4 5 3 5 3 5 3 2 10 b 2 p 2 i 2 1 2 e 3 d z 3e 1y 1g 7g s 4 1c 1c v e t 6 11 b t 3 z 5 7 2 4 17 4d j z 5 z 5 13 9 1f 4d 8m a l b 7 49 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 1z 1j 7 1 1t 0 g 3 2 2 2 s 17 s 4 s 10 7 2 r s 1h b l b i e h 33 20 1k 1e e 1e e z 9p 15 7 1 27 s b 0 9 l 2z k s m d 1g 24 18 x o r z u 0 3 0 9 y 4 0 d 1b f 3 m 0 2 0 10 h 2 o 2d 6 2 0 2 3 2 e 2 9 8 1a 13 7 3 1 3 l 2 6 2 1 2 4 4 0 j 0 d 4 4f 1g j 3 l 2 v 1b l 1 2 0 55 1a 16 3 11 1b l 0 1o 16 e 0 20 q 6e 17 39 1r w 7 3 0 3 7 2 1 2 n g 0 2 0 2n 7 3 12 h 0 2 0 t 0 b 13 8 0 m 0 c 19 k 0 z 1k 7c 8 2 10 i 0 1e t 35 6 2 1 2 11 m 0 q 5 2 1 2 v f 0 94 i 5a 0 28 pl 2v 32 i 5f 24d tq 34i g6 6nu fs 8 u 36 t j 1b h 3 w k 6 i j5 1r 3l 22 6 0 1v c 1t 1 2 0 t 4qf 9 yd 17 8 6wo 7y 1e 2 i 3 9 az 1s5 2y 6 c 4 8 8 9 4mf 2c 2 1y 2 1 3 0 3 1 3 3 2 b 2 0 2 6 2 1s 2 3 3 7 2 6 2 r 2 3 2 4 2 0 4 6 2 9f 3 o 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 7 1th 18 b 6 h 0 aa 17 105 5g 1o 1v 8 0 xh 3 2 q 2 1 2 0 3 0 2 9 2 3 2 0 2 0 7 0 5 0 2 0 2 0 2 2 2 1 2 0 3 0 2 0 2 0 2 0 2 0 2 1 2 0 3 3 2 6 2 3 2 3 2 0 2 9 2 g 6 2 2 4 2 g 3et wyl z 378 c 65 3 4g1 f 5rk 2e8 f1 15v 3t6")}function EU(){return bk("53 0 g9 33 o 0 70 4 7e 18 2 0 2 1 2 1 2 0 21 a 1d u 7 0 2u 6 3 5 3 1 2 3 3 9 o 0 v q 2k a g 9 y 8 a 0 p 3 2 8 2 2 2 4 18 2 3c e 2 w 1j 2 2 h 2 6 b 1 3 9 i 2 1l 0 2 6 3 1 3 2 a 0 b 1 3 9 f 0 3 2 1l 0 2 4 5 1 3 2 4 0 l b 4 0 c 2 1l 0 2 7 2 2 2 2 l 1 3 9 b 5 2 2 1l 0 2 6 3 1 3 2 8 2 b 1 3 9 j 0 1o 4 4 2 2 3 a 0 f 9 h 4 1m 6 2 2 2 3 8 1 c 1 3 9 i 2 1l 0 2 6 2 2 2 3 8 1 c 1 3 9 h 3 1k 1 2 6 2 2 2 3 a 0 b 1 3 9 i 2 1z 0 5 5 2 0 2 7 7 9 3 1 1q 0 3 6 d 7 2 9 2g 0 3 8 c 5 3 9 1r 1 7 9 c 0 2 0 2 0 5 1 1e j 2 1 6 a 2 z a 0 2t j 2 9 d 3 5 2 2 2 3 6 4 3 e b 2 e jk 2 a 8 pt 2 u 2 u 1 v 1 1t v a 0 3 9 y 2 3 9 40 0 3b b 5 b b 9 3l a 1p 4 1m 9 2 s 3 a 7 9 n d 2 1 1s 4 1c g c 9 i 8 d 2 v c 3 9 19 d 1d j 9 9 7 9 3b 2 2 k 5 0 7 0 3 2 5j 1l 2 4 g0 1 k 0 3g c 5 0 4 b 2db 2 3y 0 2p v ff 5 2y 1 n7q 9 1y 0 5 9 x 1 29 1 7l 0 4 0 5 0 o 4 5 0 2c 1 1f h b 9 7 h e a t 7 q c 19 3 1c d g 9 c 0 b 9 1c d d 0 9 1 3 9 y 2 1f 0 2 2 3 1 6 1 2 0 16 4 6 1 6l 7 2 1 3 9 fmt 0 ki f h f 4 1 p 2 5d 9 12 0 ji 0 6b 0 46 4 86 9 120 2 2 1 6 3 15 2 5 0 4m 1 fy 3 9 9 aa 1 4a a 4w 2 1i e w 9 g 3 1a a 1i 9 7 2 11 d 2 9 6 1 19 0 d 2 1d d 9 3 2 b 2b b 7 0 4h b 6 9 7 3 1k 1 2 6 3 1 3 2 a 0 b 1 3 6 4 4 5d h a 9 5 0 2a j d 9 5y 6 3 8 s 1 2b g g 9 2a c 9 9 2c e 5 9 6r e 4m 9 1z 5 2 1 3 3 2 0 2 1 d 9 3c 6 3 6 4 0 t 9 15 6 2 3 9 0 a a 1b f ba 7 2 7 h 9 1l l 2 d 3f 5 4 0 2 1 2 6 2 0 9 9 1d 4 2 1 2 4 9 9 96 3 ewa 9 3r 4 1o 6 q 9 s6 0 2 1i 8 3 2a 0 c 1 f58 1 43r 4 4 5 9 7 3 6 v 3 45 2 13e 1d e9 1i 5 1d 9 0 f 0 n 4 2 e 11t 6 2 g 3 6 2 1 2 4 7a 6 a 9 bn d 15j 6 32 6 6 9 3o7 9 gvt3 6n")}function Ek(t,e){let r=0,n=e.length/2|0,s=0,i=0,a=0;for(;r<n;)if(s=(r+n)/2|0,i=e[2*s],a=e[2*s+1],t<i)n=s;else if(t>a)r=s+1;else return!0;return!1}function bk(t){let e=0;return t.split(" ").map(r=>e+=parseInt(r,36)|0)}var Il=class{constructor(e,r,n,s){this._raw2018=e,this._raw2019=r,this._raw2020=n,this._raw2021=s}get es2018(){return this._set2018||(this._set2018=new Set(this._raw2018.split(" ")))}get es2019(){return this._set2019||(this._set2019=new Set(this._raw2019.split(" ")))}get es2020(){return this._set2020||(this._set2020=new Set(this._raw2020.split(" ")))}get es2021(){return this._set2021||(this._set2021=new Set(this._raw2021.split(" ")))}},bU=new Set(["General_Category","gc"]),vU=new Set(["Script","Script_Extensions","sc","scx"]),CU=new Il("C Cased_Letter Cc Cf Close_Punctuation Cn Co Combining_Mark Connector_Punctuation Control Cs Currency_Symbol Dash_Punctuation Decimal_Number Enclosing_Mark Final_Punctuation Format Initial_Punctuation L LC Letter Letter_Number Line_Separator Ll Lm Lo Lowercase_Letter Lt Lu M Mark Math_Symbol Mc Me Mn Modifier_Letter Modifier_Symbol N Nd Nl No Nonspacing_Mark Number Open_Punctuation Other Other_Letter Other_Number Other_Punctuation Other_Symbol P Paragraph_Separator Pc Pd Pe Pf Pi Po Private_Use Ps Punctuation S Sc Separator Sk Sm So Space_Separator Spacing_Mark Surrogate Symbol Titlecase_Letter Unassigned Uppercase_Letter Z Zl Zp Zs cntrl digit punct","","",""),_l=new Il("Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy","Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo","Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho","Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi"),sp=new Il("AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space","Extended_Pictographic","","EBase EComp EMod EPres ExtPict");function vk(t,e,r){return bU.has(e)?t>=2018&&CU.es2018.has(r):vU.has(e)?t>=2018&&_l.es2018.has(r)||t>=2019&&_l.es2019.has(r)||t>=2020&&_l.es2020.has(r)||t>=2021&&_l.es2021.has(r):!1}function SU(t,e){return t>=2018&&sp.es2018.has(e)||t>=2019&&sp.es2019.has(e)||t>=2021&&sp.es2021.has(e)}var AU=8,wU=9,Ck=10,kU=11,DU=12,Sk=13,Ak=33,ga=36,pi=40,hi=41,Bl=42,np=43,TU=44,ya=45,ip=46,Ol=47,Hs=48,FU=49,PU=55,Rl=57,IU=58,ap=60,op=61,_U=62,Es=63,Ll=65,BU=66,OU=68,wk=70,RU=80,LU=83,NU=87,MU=90,Nl=95,Ml=97,kk=98,mi=99,Dk=100,lp=102,jU=103,qU=105,Tk=107,VU=109,UU=110,$U=112,WU=114,Fk=115,GU=116,up=117,zU=118,HU=119,KU=120,YU=121,JU=122,xa=91,er=92,di=93,jl=94,Ea=123,cp=124,ba=125,QU=8204,XU=8205,ZU=8232,e$=8233,t$=0,r$=1114111;function Pk(t){return t>=Ll&&t<=MU||t>=Ml&&t<=JU}function ql(t){return t>=Hs&&t<=Rl}function s$(t){return t>=Hs&&t<=PU}function Ik(t){return t>=Hs&&t<=Rl||t>=Ll&&t<=wk||t>=Ml&&t<=lp}function n$(t){return t===Ck||t===Sk||t===ZU||t===e$}function i$(t){return t>=t$&&t<=r$}function fp(t){return t>=Ml&&t<=lp?t-Ml+10:t>=Ll&&t<=wk?t-Ll+10:t-Hs}function pp(t){return t>=55296&&t<=56319}function hp(t){return t>=56320&&t<=57343}function mp(t,e){return(t-55296)*1024+(e-56320)+65536}var _k={at(t,e,r){return r<e?t.charCodeAt(r):-1},width(t){return 1}},a$={at(t,e,r){return r<e?t.codePointAt(r):-1},width(t){return t>65535?2:1}},Bk=class{constructor(){this._impl=_k,this._s="",this._i=0,this._end=0,this._cp1=-1,this._w1=1,this._cp2=-1,this._w2=1,this._cp3=-1,this._w3=1,this._cp4=-1}get source(){return this._s}get index(){return this._i}get currentCodePoint(){return this._cp1}get nextCodePoint(){return this._cp2}get nextCodePoint2(){return this._cp3}get nextCodePoint3(){return this._cp4}reset(e,r,n,s){this._impl=s?a$:_k,this._s=e,this._end=n,this.rewind(r)}rewind(e){let r=this._impl;this._i=e,this._cp1=r.at(this._s,this._end,e),this._w1=r.width(this._cp1),this._cp2=r.at(this._s,this._end,e+this._w1),this._w2=r.width(this._cp2),this._cp3=r.at(this._s,this._end,e+this._w1+this._w2),this._w3=r.width(this._cp3),this._cp4=r.at(this._s,this._end,e+this._w1+this._w2+this._w3)}advance(){if(this._cp1!==-1){let e=this._impl;this._i+=this._w1,this._cp1=this._cp2,this._w1=this._w2,this._cp2=this._cp3,this._w2=e.width(this._cp2),this._cp3=this._cp4,this._w3=e.width(this._cp3),this._cp4=e.at(this._s,this._end,this._i+this._w1+this._w2+this._w3)}}eat(e){return this._cp1===e?(this.advance(),!0):!1}eat2(e,r){return this._cp1===e&&this._cp2===r?(this.advance(),this.advance(),!0):!1}eat3(e,r,n){return this._cp1===e&&this._cp2===r&&this._cp3===n?(this.advance(),this.advance(),this.advance(),!0):!1}},Ok=class extends SyntaxError{constructor(e,r,n,s){e&&(e.startsWith("/")||(e=`/${e}/${r?"u":""}`),e=`: ${e}`),super(`Invalid regular expression${e}: ${s}`),this.index=n}};function Rk(t){return t===jl||t===ga||t===er||t===ip||t===Bl||t===np||t===Es||t===pi||t===hi||t===xa||t===di||t===Ea||t===ba||t===cp}function o$(t){return gU(t)||t===ga||t===Nl}function l$(t){return xk(t)||t===ga||t===Nl||t===QU||t===XU}function Lk(t){return Pk(t)||t===Nl}function u$(t){return Lk(t)||ql(t)}var Vl=class{constructor(e){this._reader=new Bk,this._uFlag=!1,this._nFlag=!1,this._lastIntValue=0,this._lastMinValue=0,this._lastMaxValue=0,this._lastStrValue="",this._lastKeyValue="",this._lastValValue="",this._lastAssertionIsQuantifiable=!1,this._numCapturingParens=0,this._groupNames=new Set,this._backreferenceNames=new Set,this._options=e||{}}validateLiteral(e,r=0,n=e.length){if(this._uFlag=this._nFlag=!1,this.reset(e,r,n),this.onLiteralEnter(r),this.eat(Ol)&&this.eatRegExpBody()&&this.eat(Ol)){let s=this.index,i=e.includes("u",s);this.validateFlags(e,s,n),this.validatePattern(e,r+1,s-1,i)}else if(r>=n)this.raise("Empty");else{let s=String.fromCodePoint(this.currentCodePoint);this.raise(`Unexpected character '${s}'`)}this.onLiteralLeave(r,n)}validateFlags(e,r=0,n=e.length){let s=new Set,i=!1,a=!1,o=!1,l=!1,u=!1,c=!1,p=!1;for(let h=r;h<n;++h){let f=e.charCodeAt(h);s.has(f)&&this.raise(`Duplicated flag '${e[h]}'`),s.add(f),f===jU?i=!0:f===qU?a=!0:f===VU?o=!0:f===up&&this.ecmaVersion>=2015?u=!0:f===YU&&this.ecmaVersion>=2015?l=!0:f===Fk&&this.ecmaVersion>=2018?c=!0:f===Dk&&this.ecmaVersion>=2022?p=!0:this.raise(`Invalid flag '${e[h]}'`)}this.onFlags(r,n,i,a,o,u,l,c,p)}validatePattern(e,r=0,n=e.length,s=!1){this._uFlag=s&&this.ecmaVersion>=2015,this._nFlag=s&&this.ecmaVersion>=2018,this.reset(e,r,n),this.consumePattern(),!this._nFlag&&this.ecmaVersion>=2018&&this._groupNames.size>0&&(this._nFlag=!0,this.rewind(r),this.consumePattern())}get strict(){return Boolean(this._options.strict||this._uFlag)}get ecmaVersion(){return this._options.ecmaVersion||2022}onLiteralEnter(e){this._options.onLiteralEnter&&this._options.onLiteralEnter(e)}onLiteralLeave(e,r){this._options.onLiteralLeave&&this._options.onLiteralLeave(e,r)}onFlags(e,r,n,s,i,a,o,l,u){this._options.onFlags&&this._options.onFlags(e,r,n,s,i,a,o,l,u)}onPatternEnter(e){this._options.onPatternEnter&&this._options.onPatternEnter(e)}onPatternLeave(e,r){this._options.onPatternLeave&&this._options.onPatternLeave(e,r)}onDisjunctionEnter(e){this._options.onDisjunctionEnter&&this._options.onDisjunctionEnter(e)}onDisjunctionLeave(e,r){this._options.onDisjunctionLeave&&this._options.onDisjunctionLeave(e,r)}onAlternativeEnter(e,r){this._options.onAlternativeEnter&&this._options.onAlternativeEnter(e,r)}onAlternativeLeave(e,r,n){this._options.onAlternativeLeave&&this._options.onAlternativeLeave(e,r,n)}onGroupEnter(e){this._options.onGroupEnter&&this._options.onGroupEnter(e)}onGroupLeave(e,r){this._options.onGroupLeave&&this._options.onGroupLeave(e,r)}onCapturingGroupEnter(e,r){this._options.onCapturingGroupEnter&&this._options.onCapturingGroupEnter(e,r)}onCapturingGroupLeave(e,r,n){this._options.onCapturingGroupLeave&&this._options.onCapturingGroupLeave(e,r,n)}onQuantifier(e,r,n,s,i){this._options.onQuantifier&&this._options.onQuantifier(e,r,n,s,i)}onLookaroundAssertionEnter(e,r,n){this._options.onLookaroundAssertionEnter&&this._options.onLookaroundAssertionEnter(e,r,n)}onLookaroundAssertionLeave(e,r,n,s){this._options.onLookaroundAssertionLeave&&this._options.onLookaroundAssertionLeave(e,r,n,s)}onEdgeAssertion(e,r,n){this._options.onEdgeAssertion&&this._options.onEdgeAssertion(e,r,n)}onWordBoundaryAssertion(e,r,n,s){this._options.onWordBoundaryAssertion&&this._options.onWordBoundaryAssertion(e,r,n,s)}onAnyCharacterSet(e,r,n){this._options.onAnyCharacterSet&&this._options.onAnyCharacterSet(e,r,n)}onEscapeCharacterSet(e,r,n,s){this._options.onEscapeCharacterSet&&this._options.onEscapeCharacterSet(e,r,n,s)}onUnicodePropertyCharacterSet(e,r,n,s,i,a){this._options.onUnicodePropertyCharacterSet&&this._options.onUnicodePropertyCharacterSet(e,r,n,s,i,a)}onCharacter(e,r,n){this._options.onCharacter&&this._options.onCharacter(e,r,n)}onBackreference(e,r,n){this._options.onBackreference&&this._options.onBackreference(e,r,n)}onCharacterClassEnter(e,r){this._options.onCharacterClassEnter&&this._options.onCharacterClassEnter(e,r)}onCharacterClassLeave(e,r,n){this._options.onCharacterClassLeave&&this._options.onCharacterClassLeave(e,r,n)}onCharacterClassRange(e,r,n,s){this._options.onCharacterClassRange&&this._options.onCharacterClassRange(e,r,n,s)}get source(){return this._reader.source}get index(){return this._reader.index}get currentCodePoint(){return this._reader.currentCodePoint}get nextCodePoint(){return this._reader.nextCodePoint}get nextCodePoint2(){return this._reader.nextCodePoint2}get nextCodePoint3(){return this._reader.nextCodePoint3}reset(e,r,n){this._reader.reset(e,r,n,this._uFlag)}rewind(e){this._reader.rewind(e)}advance(){this._reader.advance()}eat(e){return this._reader.eat(e)}eat2(e,r){return this._reader.eat2(e,r)}eat3(e,r,n){return this._reader.eat3(e,r,n)}raise(e){throw new Ok(this.source,this._uFlag,this.index,e)}eatRegExpBody(){let e=this.index,r=!1,n=!1;for(;;){let s=this.currentCodePoint;if(s===-1||n$(s)){let i=r?"character class":"regular expression";this.raise(`Unterminated ${i}`)}if(n)n=!1;else if(s===er)n=!0;else if(s===xa)r=!0;else if(s===di)r=!1;else if(s===Ol&&!r||s===Bl&&this.index===e)break;this.advance()}return this.index!==e}consumePattern(){let e=this.index;this._numCapturingParens=this.countCapturingParens(),this._groupNames.clear(),this._backreferenceNames.clear(),this.onPatternEnter(e),this.consumeDisjunction();let r=this.currentCodePoint;if(this.currentCodePoint!==-1){r===hi&&this.raise("Unmatched ')'"),r===er&&this.raise("\\ at end of pattern"),(r===di||r===ba)&&this.raise("Lone quantifier brackets");let n=String.fromCodePoint(r);this.raise(`Unexpected character '${n}'`)}for(let n of this._backreferenceNames)this._groupNames.has(n)||this.raise("Invalid named capture referenced");this.onPatternLeave(e,this.index)}countCapturingParens(){let e=this.index,r=!1,n=!1,s=0,i=0;for(;(i=this.currentCodePoint)!==-1;)n?n=!1:i===er?n=!0:i===xa?r=!0:i===di?r=!1:i===pi&&!r&&(this.nextCodePoint!==Es||this.nextCodePoint2===ap&&this.nextCodePoint3!==op&&this.nextCodePoint3!==Ak)&&(s+=1),this.advance();return this.rewind(e),s}consumeDisjunction(){let e=this.index,r=0;this.onDisjunctionEnter(e);do this.consumeAlternative(r++);while(this.eat(cp));this.consumeQuantifier(!0)&&this.raise("Nothing to repeat"),this.eat(Ea)&&this.raise("Lone quantifier brackets"),this.onDisjunctionLeave(e,this.index)}consumeAlternative(e){let r=this.index;for(this.onAlternativeEnter(r,e);this.currentCodePoint!==-1&&this.consumeTerm(););this.onAlternativeLeave(r,this.index,e)}consumeTerm(){return this._uFlag||this.strict?this.consumeAssertion()||this.consumeAtom()&&this.consumeOptionalQuantifier():this.consumeAssertion()&&(!this._lastAssertionIsQuantifiable||this.consumeOptionalQuantifier())||this.consumeExtendedAtom()&&this.consumeOptionalQuantifier()}consumeOptionalQuantifier(){return this.consumeQuantifier(),!0}consumeAssertion(){let e=this.index;if(this._lastAssertionIsQuantifiable=!1,this.eat(jl))return this.onEdgeAssertion(e,this.index,"start"),!0;if(this.eat(ga))return this.onEdgeAssertion(e,this.index,"end"),!0;if(this.eat2(er,BU))return this.onWordBoundaryAssertion(e,this.index,"word",!0),!0;if(this.eat2(er,kk))return this.onWordBoundaryAssertion(e,this.index,"word",!1),!0;if(this.eat2(pi,Es)){let r=this.ecmaVersion>=2018&&this.eat(ap),n=!1;if(this.eat(op)||(n=this.eat(Ak))){let s=r?"lookbehind":"lookahead";return this.onLookaroundAssertionEnter(e,s,n),this.consumeDisjunction(),this.eat(hi)||this.raise("Unterminated group"),this._lastAssertionIsQuantifiable=!r&&!this.strict,this.onLookaroundAssertionLeave(e,this.index,s,n),!0}this.rewind(e)}return!1}consumeQuantifier(e=!1){let r=this.index,n=0,s=0,i=!1;if(this.eat(Bl))n=0,s=Number.POSITIVE_INFINITY;else if(this.eat(np))n=1,s=Number.POSITIVE_INFINITY;else if(this.eat(Es))n=0,s=1;else if(this.eatBracedQuantifier(e))n=this._lastMinValue,s=this._lastMaxValue;else return!1;return i=!this.eat(Es),e||this.onQuantifier(r,this.index,n,s,i),!0}eatBracedQuantifier(e){let r=this.index;if(this.eat(Ea)){if(this._lastMinValue=0,this._lastMaxValue=Number.POSITIVE_INFINITY,this.eatDecimalDigits()&&(this._lastMinValue=this._lastMaxValue=this._lastIntValue,this.eat(TU)&&(this._lastMaxValue=this.eatDecimalDigits()?this._lastIntValue:Number.POSITIVE_INFINITY),this.eat(ba)))return!e&&this._lastMaxValue<this._lastMinValue&&this.raise("numbers out of order in {} quantifier"),!0;!e&&(this._uFlag||this.strict)&&this.raise("Incomplete quantifier"),this.rewind(r)}return!1}consumeAtom(){return this.consumePatternCharacter()||this.consumeDot()||this.consumeReverseSolidusAtomEscape()||this.consumeCharacterClass()||this.consumeUncapturingGroup()||this.consumeCapturingGroup()}consumeDot(){return this.eat(ip)?(this.onAnyCharacterSet(this.index-1,this.index,"any"),!0):!1}consumeReverseSolidusAtomEscape(){let e=this.index;if(this.eat(er)){if(this.consumeAtomEscape())return!0;this.rewind(e)}return!1}consumeUncapturingGroup(){let e=this.index;return this.eat3(pi,Es,IU)?(this.onGroupEnter(e),this.consumeDisjunction(),this.eat(hi)||this.raise("Unterminated group"),this.onGroupLeave(e,this.index),!0):!1}consumeCapturingGroup(){let e=this.index;if(this.eat(pi)){let r=null;return this.ecmaVersion>=2018?this.consumeGroupSpecifier()&&(r=this._lastStrValue):this.currentCodePoint===Es&&this.raise("Invalid group"),this.onCapturingGroupEnter(e,r),this.consumeDisjunction(),this.eat(hi)||this.raise("Unterminated group"),this.onCapturingGroupLeave(e,this.index,r),!0}return!1}consumeExtendedAtom(){return this.consumeDot()||this.consumeReverseSolidusAtomEscape()||this.consumeReverseSolidusFollowedByC()||this.consumeCharacterClass()||this.consumeUncapturingGroup()||this.consumeCapturingGroup()||this.consumeInvalidBracedQuantifier()||this.consumeExtendedPatternCharacter()}consumeReverseSolidusFollowedByC(){let e=this.index;return this.currentCodePoint===er&&this.nextCodePoint===mi?(this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(e,this.index,er),!0):!1}consumeInvalidBracedQuantifier(){return this.eatBracedQuantifier(!0)&&this.raise("Nothing to repeat"),!1}consumePatternCharacter(){let e=this.index,r=this.currentCodePoint;return r!==-1&&!Rk(r)?(this.advance(),this.onCharacter(e,this.index,r),!0):!1}consumeExtendedPatternCharacter(){let e=this.index,r=this.currentCodePoint;return r!==-1&&r!==jl&&r!==ga&&r!==er&&r!==ip&&r!==Bl&&r!==np&&r!==Es&&r!==pi&&r!==hi&&r!==xa&&r!==cp?(this.advance(),this.onCharacter(e,this.index,r),!0):!1}consumeGroupSpecifier(){if(this.eat(Es)){if(this.eatGroupName()){if(!this._groupNames.has(this._lastStrValue))return this._groupNames.add(this._lastStrValue),!0;this.raise("Duplicate capture group name")}this.raise("Invalid group")}return!1}consumeAtomEscape(){return this.consumeBackreference()||this.consumeCharacterClassEscape()||this.consumeCharacterEscape()||this._nFlag&&this.consumeKGroupName()?!0:((this.strict||this._uFlag)&&this.raise("Invalid escape"),!1)}consumeBackreference(){let e=this.index;if(this.eatDecimalEscape()){let r=this._lastIntValue;if(r<=this._numCapturingParens)return this.onBackreference(e-1,this.index,r),!0;(this.strict||this._uFlag)&&this.raise("Invalid escape"),this.rewind(e)}return!1}consumeCharacterClassEscape(){let e=this.index;if(this.eat(Dk))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,"digit",!1),!0;if(this.eat(OU))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,"digit",!0),!0;if(this.eat(Fk))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,"space",!1),!0;if(this.eat(LU))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,"space",!0),!0;if(this.eat(HU))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,"word",!1),!0;if(this.eat(NU))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,"word",!0),!0;let r=!1;if(this._uFlag&&this.ecmaVersion>=2018&&(this.eat($U)||(r=this.eat(RU)))){if(this._lastIntValue=-1,this.eat(Ea)&&this.eatUnicodePropertyValueExpression()&&this.eat(ba))return this.onUnicodePropertyCharacterSet(e-1,this.index,"property",this._lastKeyValue,this._lastValValue||null,r),!0;this.raise("Invalid property name")}return!1}consumeCharacterEscape(){let e=this.index;return this.eatControlEscape()||this.eatCControlLetter()||this.eatZero()||this.eatHexEscapeSequence()||this.eatRegExpUnicodeEscapeSequence()||!this.strict&&!this._uFlag&&this.eatLegacyOctalEscapeSequence()||this.eatIdentityEscape()?(this.onCharacter(e-1,this.index,this._lastIntValue),!0):!1}consumeKGroupName(){let e=this.index;if(this.eat(Tk)){if(this.eatGroupName()){let r=this._lastStrValue;return this._backreferenceNames.add(r),this.onBackreference(e-1,this.index,r),!0}this.raise("Invalid named reference")}return!1}consumeCharacterClass(){let e=this.index;if(this.eat(xa)){let r=this.eat(jl);return this.onCharacterClassEnter(e,r),this.consumeClassRanges(),this.eat(di)||this.raise("Unterminated character class"),this.onCharacterClassLeave(e,this.index,r),!0}return!1}consumeClassRanges(){let e=this.strict||this._uFlag;for(;;){let r=this.index;if(!this.consumeClassAtom())break;let n=this._lastIntValue;if(!this.eat(ya))continue;if(this.onCharacter(this.index-1,this.index,ya),!this.consumeClassAtom())break;let s=this._lastIntValue;if(n===-1||s===-1){e&&this.raise("Invalid character class");continue}n>s&&this.raise("Range out of order in character class"),this.onCharacterClassRange(r,this.index,n,s)}}consumeClassAtom(){let e=this.index,r=this.currentCodePoint;if(r!==-1&&r!==er&&r!==di)return this.advance(),this._lastIntValue=r,this.onCharacter(e,this.index,this._lastIntValue),!0;if(this.eat(er)){if(this.consumeClassEscape())return!0;if(!this.strict&&this.currentCodePoint===mi)return this._lastIntValue=er,this.onCharacter(e,this.index,this._lastIntValue),!0;(this.strict||this._uFlag)&&this.raise("Invalid escape"),this.rewind(e)}return!1}consumeClassEscape(){let e=this.index;if(this.eat(kk))return this._lastIntValue=AU,this.onCharacter(e-1,this.index,this._lastIntValue),!0;if(this._uFlag&&this.eat(ya))return this._lastIntValue=ya,this.onCharacter(e-1,this.index,this._lastIntValue),!0;let r=0;return!this.strict&&!this._uFlag&&this.currentCodePoint===mi&&(ql(r=this.nextCodePoint)||r===Nl)?(this.advance(),this.advance(),this._lastIntValue=r%32,this.onCharacter(e-1,this.index,this._lastIntValue),!0):this.consumeCharacterClassEscape()||this.consumeCharacterEscape()}eatGroupName(){if(this.eat(ap)){if(this.eatRegExpIdentifierName()&&this.eat(_U))return!0;this.raise("Invalid capture group name")}return!1}eatRegExpIdentifierName(){if(this.eatRegExpIdentifierStart()){for(this._lastStrValue=String.fromCodePoint(this._lastIntValue);this.eatRegExpIdentifierPart();)this._lastStrValue+=String.fromCodePoint(this._lastIntValue);return!0}return!1}eatRegExpIdentifierStart(){let e=this.index,r=!this._uFlag&&this.ecmaVersion>=2020,n=this.currentCodePoint;return this.advance(),n===er&&this.eatRegExpUnicodeEscapeSequence(r)?n=this._lastIntValue:r&&pp(n)&&hp(this.currentCodePoint)&&(n=mp(n,this.currentCodePoint),this.advance()),o$(n)?(this._lastIntValue=n,!0):(this.index!==e&&this.rewind(e),!1)}eatRegExpIdentifierPart(){let e=this.index,r=!this._uFlag&&this.ecmaVersion>=2020,n=this.currentCodePoint;return this.advance(),n===er&&this.eatRegExpUnicodeEscapeSequence(r)?n=this._lastIntValue:r&&pp(n)&&hp(this.currentCodePoint)&&(n=mp(n,this.currentCodePoint),this.advance()),l$(n)?(this._lastIntValue=n,!0):(this.index!==e&&this.rewind(e),!1)}eatCControlLetter(){let e=this.index;if(this.eat(mi)){if(this.eatControlLetter())return!0;this.rewind(e)}return!1}eatZero(){return this.currentCodePoint===Hs&&!ql(this.nextCodePoint)?(this._lastIntValue=0,this.advance(),!0):!1}eatControlEscape(){return this.eat(lp)?(this._lastIntValue=DU,!0):this.eat(UU)?(this._lastIntValue=Ck,!0):this.eat(WU)?(this._lastIntValue=Sk,!0):this.eat(GU)?(this._lastIntValue=wU,!0):this.eat(zU)?(this._lastIntValue=kU,!0):!1}eatControlLetter(){let e=this.currentCodePoint;return Pk(e)?(this.advance(),this._lastIntValue=e%32,!0):!1}eatRegExpUnicodeEscapeSequence(e=!1){let r=this.index,n=e||this._uFlag;if(this.eat(up)){if(n&&this.eatRegExpUnicodeSurrogatePairEscape()||this.eatFixedHexDigits(4)||n&&this.eatRegExpUnicodeCodePointEscape())return!0;(this.strict||n)&&this.raise("Invalid unicode escape"),this.rewind(r)}return!1}eatRegExpUnicodeSurrogatePairEscape(){let e=this.index;if(this.eatFixedHexDigits(4)){let r=this._lastIntValue;if(pp(r)&&this.eat(er)&&this.eat(up)&&this.eatFixedHexDigits(4)){let n=this._lastIntValue;if(hp(n))return this._lastIntValue=mp(r,n),!0}this.rewind(e)}return!1}eatRegExpUnicodeCodePointEscape(){let e=this.index;return this.eat(Ea)&&this.eatHexDigits()&&this.eat(ba)&&i$(this._lastIntValue)?!0:(this.rewind(e),!1)}eatIdentityEscape(){let e=this.currentCodePoint;return this.isValidIdentityEscape(e)?(this._lastIntValue=e,this.advance(),!0):!1}isValidIdentityEscape(e){return e===-1?!1:this._uFlag?Rk(e)||e===Ol:this.strict?!xk(e):this._nFlag?!(e===mi||e===Tk):e!==mi}eatDecimalEscape(){this._lastIntValue=0;let e=this.currentCodePoint;if(e>=FU&&e<=Rl){do this._lastIntValue=10*this._lastIntValue+(e-Hs),this.advance();while((e=this.currentCodePoint)>=Hs&&e<=Rl);return!0}return!1}eatUnicodePropertyValueExpression(){let e=this.index;if(this.eatUnicodePropertyName()&&this.eat(op)&&(this._lastKeyValue=this._lastStrValue,this.eatUnicodePropertyValue())){if(this._lastValValue=this._lastStrValue,vk(this.ecmaVersion,this._lastKeyValue,this._lastValValue))return!0;this.raise("Invalid property name")}if(this.rewind(e),this.eatLoneUnicodePropertyNameOrValue()){let r=this._lastStrValue;if(vk(this.ecmaVersion,"General_Category",r))return this._lastKeyValue="General_Category",this._lastValValue=r,!0;if(SU(this.ecmaVersion,r))return this._lastKeyValue=r,this._lastValValue="",!0;this.raise("Invalid property name")}return!1}eatUnicodePropertyName(){for(this._lastStrValue="";Lk(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return this._lastStrValue!==""}eatUnicodePropertyValue(){for(this._lastStrValue="";u$(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return this._lastStrValue!==""}eatLoneUnicodePropertyNameOrValue(){return this.eatUnicodePropertyValue()}eatHexEscapeSequence(){let e=this.index;if(this.eat(KU)){if(this.eatFixedHexDigits(2))return!0;(this._uFlag||this.strict)&&this.raise("Invalid escape"),this.rewind(e)}return!1}eatDecimalDigits(){let e=this.index;for(this._lastIntValue=0;ql(this.currentCodePoint);)this._lastIntValue=10*this._lastIntValue+fp(this.currentCodePoint),this.advance();return this.index!==e}eatHexDigits(){let e=this.index;for(this._lastIntValue=0;Ik(this.currentCodePoint);)this._lastIntValue=16*this._lastIntValue+fp(this.currentCodePoint),this.advance();return this.index!==e}eatLegacyOctalEscapeSequence(){if(this.eatOctalDigit()){let e=this._lastIntValue;if(this.eatOctalDigit()){let r=this._lastIntValue;e<=3&&this.eatOctalDigit()?this._lastIntValue=e*64+r*8+this._lastIntValue:this._lastIntValue=e*8+r}else this._lastIntValue=e;return!0}return!1}eatOctalDigit(){let e=this.currentCodePoint;return s$(e)?(this.advance(),this._lastIntValue=e-Hs,!0):(this._lastIntValue=0,!1)}eatFixedHexDigits(e){let r=this.index;this._lastIntValue=0;for(let n=0;n<e;++n){let s=this.currentCodePoint;if(!Ik(s))return this.rewind(r),!1;this._lastIntValue=16*this._lastIntValue+fp(s),this.advance()}return!0}},c$={},f$={},p$={},Nk=class{constructor(e){this._node=c$,this._flags=f$,this._backreferences=[],this._capturingGroups=[],this.source="",this.strict=Boolean(e&&e.strict),this.ecmaVersion=e&&e.ecmaVersion||2022}get pattern(){if(this._node.type!=="Pattern")throw new Error("UnknownError");return this._node}get flags(){if(this._flags.type!=="Flags")throw new Error("UnknownError");return this._flags}onFlags(e,r,n,s,i,a,o,l,u){this._flags={type:"Flags",parent:null,start:e,end:r,raw:this.source.slice(e,r),global:n,ignoreCase:s,multiline:i,unicode:a,sticky:o,dotAll:l,hasIndices:u}}onPatternEnter(e){this._node={type:"Pattern",parent:null,start:e,end:e,raw:"",alternatives:[]},this._backreferences.length=0,this._capturingGroups.length=0}onPatternLeave(e,r){this._node.end=r,this._node.raw=this.source.slice(e,r);for(let n of this._backreferences){let s=n.ref,i=typeof s=="number"?this._capturingGroups[s-1]:this._capturingGroups.find(a=>a.name===s);n.resolved=i,i.references.push(n)}}onAlternativeEnter(e){let r=this._node;if(r.type!=="Assertion"&&r.type!=="CapturingGroup"&&r.type!=="Group"&&r.type!=="Pattern")throw new Error("UnknownError");this._node={type:"Alternative",parent:r,start:e,end:e,raw:"",elements:[]},r.alternatives.push(this._node)}onAlternativeLeave(e,r){let n=this._node;if(n.type!=="Alternative")throw new Error("UnknownError");n.end=r,n.raw=this.source.slice(e,r),this._node=n.parent}onGroupEnter(e){let r=this._node;if(r.type!=="Alternative")throw new Error("UnknownError");this._node={type:"Group",parent:r,start:e,end:e,raw:"",alternatives:[]},r.elements.push(this._node)}onGroupLeave(e,r){let n=this._node;if(n.type!=="Group"||n.parent.type!=="Alternative")throw new Error("UnknownError");n.end=r,n.raw=this.source.slice(e,r),this._node=n.parent}onCapturingGroupEnter(e,r){let n=this._node;if(n.type!=="Alternative")throw new Error("UnknownError");this._node={type:"CapturingGroup",parent:n,start:e,end:e,raw:"",name:r,alternatives:[],references:[]},n.elements.push(this._node),this._capturingGroups.push(this._node)}onCapturingGroupLeave(e,r){let n=this._node;if(n.type!=="CapturingGroup"||n.parent.type!=="Alternative")throw new Error("UnknownError");n.end=r,n.raw=this.source.slice(e,r),this._node=n.parent}onQuantifier(e,r,n,s,i){let a=this._node;if(a.type!=="Alternative")throw new Error("UnknownError");let o=a.elements.pop();if(o==null||o.type==="Quantifier"||o.type==="Assertion"&&o.kind!=="lookahead")throw new Error("UnknownError");let l={type:"Quantifier",parent:a,start:o.start,end:r,raw:this.source.slice(o.start,r),min:n,max:s,greedy:i,element:o};a.elements.push(l),o.parent=l}onLookaroundAssertionEnter(e,r,n){let s=this._node;if(s.type!=="Alternative")throw new Error("UnknownError");let i=this._node={type:"Assertion",parent:s,start:e,end:e,raw:"",kind:r,negate:n,alternatives:[]};s.elements.push(i)}onLookaroundAssertionLeave(e,r){let n=this._node;if(n.type!=="Assertion"||n.parent.type!=="Alternative")throw new Error("UnknownError");n.end=r,n.raw=this.source.slice(e,r),this._node=n.parent}onEdgeAssertion(e,r,n){let s=this._node;if(s.type!=="Alternative")throw new Error("UnknownError");s.elements.push({type:"Assertion",parent:s,start:e,end:r,raw:this.source.slice(e,r),kind:n})}onWordBoundaryAssertion(e,r,n,s){let i=this._node;if(i.type!=="Alternative")throw new Error("UnknownError");i.elements.push({type:"Assertion",parent:i,start:e,end:r,raw:this.source.slice(e,r),kind:n,negate:s})}onAnyCharacterSet(e,r,n){let s=this._node;if(s.type!=="Alternative")throw new Error("UnknownError");s.elements.push({type:"CharacterSet",parent:s,start:e,end:r,raw:this.source.slice(e,r),kind:n})}onEscapeCharacterSet(e,r,n,s){let i=this._node;if(i.type!=="Alternative"&&i.type!=="CharacterClass")throw new Error("UnknownError");i.elements.push({type:"CharacterSet",parent:i,start:e,end:r,raw:this.source.slice(e,r),kind:n,negate:s})}onUnicodePropertyCharacterSet(e,r,n,s,i,a){let o=this._node;if(o.type!=="Alternative"&&o.type!=="CharacterClass")throw new Error("UnknownError");o.elements.push({type:"CharacterSet",parent:o,start:e,end:r,raw:this.source.slice(e,r),kind:n,key:s,value:i,negate:a})}onCharacter(e,r,n){let s=this._node;if(s.type!=="Alternative"&&s.type!=="CharacterClass")throw new Error("UnknownError");s.elements.push({type:"Character",parent:s,start:e,end:r,raw:this.source.slice(e,r),value:n})}onBackreference(e,r,n){let s=this._node;if(s.type!=="Alternative")throw new Error("UnknownError");let i={type:"Backreference",parent:s,start:e,end:r,raw:this.source.slice(e,r),ref:n,resolved:p$};s.elements.push(i),this._backreferences.push(i)}onCharacterClassEnter(e,r){let n=this._node;if(n.type!=="Alternative")throw new Error("UnknownError");this._node={type:"CharacterClass",parent:n,start:e,end:e,raw:"",negate:r,elements:[]},n.elements.push(this._node)}onCharacterClassLeave(e,r){let n=this._node;if(n.type!=="CharacterClass"||n.parent.type!=="Alternative")throw new Error("UnknownError");n.end=r,n.raw=this.source.slice(e,r),this._node=n.parent}onCharacterClassRange(e,r){let n=this._node;if(n.type!=="CharacterClass")throw new Error("UnknownError");let s=n.elements,i=s.pop(),a=s.pop(),o=s.pop();if(!o||!i||!a||o.type!=="Character"||i.type!=="Character"||a.type!=="Character"||a.value!==ya)throw new Error("UnknownError");let l={type:"CharacterClassRange",parent:n,start:e,end:r,raw:this.source.slice(e,r),min:o,max:i};o.parent=l,i.parent=l,s.push(l)}},dp=class{constructor(e){this._state=new Nk(e),this._validator=new Vl(this._state)}parseLiteral(e,r=0,n=e.length){this._state.source=e,this._validator.validateLiteral(e,r,n);let s=this._state.pattern,i=this._state.flags,a={type:"RegExpLiteral",parent:null,start:r,end:n,raw:e,pattern:s,flags:i};return s.parent=a,i.parent=a,a}parseFlags(e,r=0,n=e.length){return this._state.source=e,this._validator.validateFlags(e,r,n),this._state.flags}parsePattern(e,r=0,n=e.length,s=!1){return this._state.source=e,this._validator.validatePattern(e,r,n,s),this._state.pattern}},Mk=class{constructor(e){this._handlers=e}visit(e){switch(e.type){case"Alternative":this.visitAlternative(e);break;case"Assertion":this.visitAssertion(e);break;case"Backreference":this.visitBackreference(e);break;case"CapturingGroup":this.visitCapturingGroup(e);break;case"Character":this.visitCharacter(e);break;case"CharacterClass":this.visitCharacterClass(e);break;case"CharacterClassRange":this.visitCharacterClassRange(e);break;case"CharacterSet":this.visitCharacterSet(e);break;case"Flags":this.visitFlags(e);break;case"Group":this.visitGroup(e);break;case"Pattern":this.visitPattern(e);break;case"Quantifier":this.visitQuantifier(e);break;case"RegExpLiteral":this.visitRegExpLiteral(e);break;default:throw new Error(`Unknown type: ${e.type}`)}}visitAlternative(e){this._handlers.onAlternativeEnter&&this._handlers.onAlternativeEnter(e),e.elements.forEach(this.visit,this),this._handlers.onAlternativeLeave&&this._handlers.onAlternativeLeave(e)}visitAssertion(e){this._handlers.onAssertionEnter&&this._handlers.onAssertionEnter(e),(e.kind==="lookahead"||e.kind==="lookbehind")&&e.alternatives.forEach(this.visit,this),this._handlers.onAssertionLeave&&this._handlers.onAssertionLeave(e)}visitBackreference(e){this._handlers.onBackreferenceEnter&&this._handlers.onBackreferenceEnter(e),this._handlers.onBackreferenceLeave&&this._handlers.onBackreferenceLeave(e)}visitCapturingGroup(e){this._handlers.onCapturingGroupEnter&&this._handlers.onCapturingGroupEnter(e),e.alternatives.forEach(this.visit,this),this._handlers.onCapturingGroupLeave&&this._handlers.onCapturingGroupLeave(e)}visitCharacter(e){this._handlers.onCharacterEnter&&this._handlers.onCharacterEnter(e),this._handlers.onCharacterLeave&&this._handlers.onCharacterLeave(e)}visitCharacterClass(e){this._handlers.onCharacterClassEnter&&this._handlers.onCharacterClassEnter(e),e.elements.forEach(this.visit,this),this._handlers.onCharacterClassLeave&&this._handlers.onCharacterClassLeave(e)}visitCharacterClassRange(e){this._handlers.onCharacterClassRangeEnter&&this._handlers.onCharacterClassRangeEnter(e),this.visitCharacter(e.min),this.visitCharacter(e.max),this._handlers.onCharacterClassRangeLeave&&this._handlers.onCharacterClassRangeLeave(e)}visitCharacterSet(e){this._handlers.onCharacterSetEnter&&this._handlers.onCharacterSetEnter(e),this._handlers.onCharacterSetLeave&&this._handlers.onCharacterSetLeave(e)}visitFlags(e){this._handlers.onFlagsEnter&&this._handlers.onFlagsEnter(e),this._handlers.onFlagsLeave&&this._handlers.onFlagsLeave(e)}visitGroup(e){this._handlers.onGroupEnter&&this._handlers.onGroupEnter(e),e.alternatives.forEach(this.visit,this),this._handlers.onGroupLeave&&this._handlers.onGroupLeave(e)}visitPattern(e){this._handlers.onPatternEnter&&this._handlers.onPatternEnter(e),e.alternatives.forEach(this.visit,this),this._handlers.onPatternLeave&&this._handlers.onPatternLeave(e)}visitQuantifier(e){this._handlers.onQuantifierEnter&&this._handlers.onQuantifierEnter(e),this.visit(e.element),this._handlers.onQuantifierLeave&&this._handlers.onQuantifierLeave(e)}visitRegExpLiteral(e){this._handlers.onRegExpLiteralEnter&&this._handlers.onRegExpLiteralEnter(e),this.visitPattern(e.pattern),this.visitFlags(e.flags),this._handlers.onRegExpLiteralLeave&&this._handlers.onRegExpLiteralLeave(e)}};function h$(t,e){return new dp(e).parseLiteral(String(t))}function m$(t,e){return new Vl(e).validateLiteral(t)}function d$(t,e){new Mk(e).visit(t)}zs.AST=dU;zs.RegExpParser=dp;zs.RegExpValidator=Vl;zs.parseRegExpLiteral=h$;zs.validateRegExpLiteral=m$;zs.visitRegExpAST=d$});var qk=M((Rte,jk)=>{b();v();"use strict";var g$=Ks().RegExpValidator,y$=new class{constructor(){this._source="",this._controlChars=[],this._validator=new g$(this)}onPatternEnter(){this._controlChars=[]}onCharacter(t,e,r){r>=0&&r<=31&&(this._source.codePointAt(t)===r||this._source.slice(t,e).startsWith("\\x")||this._source.slice(t,e).startsWith("\\u"))&&this._controlChars.push(`\\x${`0${r.toString(16)}`.slice(-2)}`)}collectControlChars(t){try{this._source=t,this._validator.validatePattern(t)}catch{}return this._controlChars}};jk.exports={meta:{type:"problem",docs:{description:"disallow control characters in regular expressions",recommended:!0,url:"https://eslint.org/docs/rules/no-control-regex"},schema:[],messages:{unexpected:"Unexpected control character(s) in regular expression: {{controlChars}}."}},create(t){function e(r){return r.regex?r.regex.pattern:typeof r.value=="string"&&(r.parent.type==="NewExpression"||r.parent.type==="CallExpression")&&r.parent.callee.type==="Identifier"&&r.parent.callee.name==="RegExp"&&r.parent.arguments[0]===r?r.value:null}return{Literal(r){let n=e(r);if(n){let s=y$.collectControlChars(n);s.length>0&&t.report({node:r,messageId:"unexpected",data:{controlChars:s.join(", ")}})}}}}}});var Uk=M((Lte,Vk)=>{b();v();"use strict";Vk.exports={meta:{type:"problem",docs:{description:"disallow the use of `debugger`",recommended:!0,url:"https://eslint.org/docs/rules/no-debugger"},fixable:null,schema:[],messages:{unexpected:"Unexpected 'debugger' statement."}},create(t){return{DebuggerStatement(e){t.report({node:e,messageId:"unexpected"})}}}}});var Wk=M((Nte,$k)=>{b();v();"use strict";$k.exports={meta:{type:"suggestion",docs:{description:"disallow deleting variables",recommended:!0,url:"https://eslint.org/docs/rules/no-delete-var"},schema:[],messages:{unexpected:"Variables should not be deleted."}},create(t){return{UnaryExpression(e){e.operator==="delete"&&e.argument.type==="Identifier"&&t.report({node:e,messageId:"unexpected"})}}}}});var zk=M((Mte,Gk)=>{b();v();"use strict";Gk.exports={meta:{type:"suggestion",docs:{description:"disallow division operators explicitly at the beginning of regular expressions",recommended:!1,url:"https://eslint.org/docs/rules/no-div-regex"},fixable:"code",schema:[],messages:{unexpected:"A regular expression literal can be confused with '/='."}},create(t){let e=t.getSourceCode();return{Literal(r){let n=e.getFirstToken(r);n.type==="RegularExpression"&&n.value[1]==="="&&t.report({node:r,messageId:"unexpected",fix(s){return s.replaceTextRange([n.range[0]+1,n.range[0]+2],"[=]")}})}}}}});var Kk=M((jte,Hk)=>{b();v();"use strict";Hk.exports={meta:{type:"problem",docs:{description:"disallow duplicate arguments in `function` definitions",recommended:!0,url:"https://eslint.org/docs/rules/no-dupe-args"},schema:[],messages:{unexpected:"Duplicate param '{{name}}'."}},create(t){function e(n){return n.type==="Parameter"}function r(n){let s=t.getDeclaredVariables(n);for(let i=0;i<s.length;++i){let a=s[i];a.defs.filter(e).length>=2&&t.report({node:n,messageId:"unexpected",data:{name:a.name}})}}return{FunctionDeclaration:r,FunctionExpression:r}}}});var Jk=M((qte,Yk)=>{b();v();"use strict";var x$=pe();Yk.exports={meta:{type:"problem",docs:{description:"disallow duplicate class members",recommended:!0,url:"https://eslint.org/docs/rules/no-dupe-class-members"},schema:[],messages:{unexpected:"Duplicate name '{{name}}'."}},create(t){let e=[];function r(n,s){let i=e[e.length-1],a=`$${n}`;return i[a]||(i[a]={nonStatic:{init:!1,get:!1,set:!1},static:{init:!1,get:!1,set:!1}}),i[a][s?"static":"nonStatic"]}return{Program(){e=[]},ClassBody(){e.push(Object.create(null))},"ClassBody:exit"(){e.pop()},"MethodDefinition, PropertyDefinition"(n){let s=x$.getStaticPropertyName(n),i=n.type==="MethodDefinition"?n.kind:"field";if(s===null||i==="constructor")return;let a=r(s,n.static),o=!1;i==="get"?(o=a.init||a.get,a.get=!0):i==="set"?(o=a.init||a.set,a.set=!0):(o=a.init||a.get||a.set,a.init=!0),o&&t.report({node:n,messageId:"unexpected",data:{name:s}})}}}}});var Zk=M((Vte,Qk)=>{b();v();"use strict";var E$=pe();function b$(t,e,r){return e.every(n=>r.some(s=>t(n,s)))}function Ul(t,e){return e.type==="LogicalExpression"&&e.operator===t?[...Ul(t,e.left),...Ul(t,e.right)]:[e]}var Xk=Ul.bind(null,"||"),gp=Ul.bind(null,"&&");Qk.exports={meta:{type:"problem",docs:{description:"disallow duplicate conditions in if-else-if chains",recommended:!0,url:"https://eslint.org/docs/rules/no-dupe-else-if"},schema:[],messages:{unexpected:"This branch can never execute. Its condition is a duplicate or covered by previous conditions in the if-else-if chain."}},create(t){let e=t.getSourceCode();function r(s,i){return s.type!==i.type?!1:s.type==="LogicalExpression"&&(s.operator==="||"||s.operator==="&&")&&s.operator===i.operator?r(s.left,i.left)&&r(s.right,i.right)||r(s.left,i.right)&&r(s.right,i.left):E$.equalTokens(s,i,e)}let n=b$.bind(null,r);return{IfStatement(s){let i=s.test,a=i.type==="LogicalExpression"&&i.operator==="&&"?[i,...gp(i)]:[i],o=s,l=a.map(u=>Xk(u).map(gp));for(;o.parent&&o.parent.type==="IfStatement"&&o.parent.alternate===o;){o=o.parent;let u=Xk(o.test).map(gp);if(l=l.map(c=>c.filter(p=>!u.some(h=>n(h,p)))),l.some(c=>c.length===0)){t.report({node:i,messageId:"unexpected"});break}}}}}}});var iD=M((Ute,eD)=>{b();v();"use strict";var tD=pe(),rD=/^(?:init|get)$/u,sD=/^(?:init|set)$/u,nD=class{constructor(e,r){this.upper=e,this.node=r,this.properties=new Map}getPropertyInfo(e){let r=tD.getStaticPropertyName(e);return this.properties.has(r)||this.properties.set(r,{get:!1,set:!1}),this.properties.get(r)}isPropertyDefined(e){let r=this.getPropertyInfo(e);return rD.test(e.kind)&&r.get||sD.test(e.kind)&&r.set}defineProperty(e){let r=this.getPropertyInfo(e);rD.test(e.kind)&&(r.get=!0),sD.test(e.kind)&&(r.set=!0)}};eD.exports={meta:{type:"problem",docs:{description:"disallow duplicate keys in object literals",recommended:!0,url:"https://eslint.org/docs/rules/no-dupe-keys"},schema:[],messages:{unexpected:"Duplicate key '{{name}}'."}},create(t){let e=null;return{ObjectExpression(r){e=new nD(e,r)},"ObjectExpression:exit"(){e=e.upper},Property(r){let n=tD.getStaticPropertyName(r);r.parent.type==="ObjectExpression"&&n!==null&&(e.isPropertyDefined(r)&&t.report({node:e.node,loc:r.key.loc,messageId:"unexpected",data:{name:n}}),e.defineProperty(r))}}}}});var oD=M(($te,aD)=>{b();v();"use strict";var v$=pe();aD.exports={meta:{type:"problem",docs:{description:"disallow duplicate case labels",recommended:!0,url:"https://eslint.org/docs/rules/no-duplicate-case"},schema:[],messages:{unexpected:"Duplicate case label."}},create(t){let e=t.getSourceCode();function r(n,s){return n.type!==s.type?!1:v$.equalTokens(n,s,e)}return{SwitchStatement(n){let s=[];for(let i of n.cases)if(i.test){let a=i.test;s.some(o=>r(o,a))?t.report({node:i,messageId:"unexpected"}):s.push(a)}}}}}});var pD=M((Wte,lD)=>{b();v();"use strict";var C$=["ImportSpecifier","ExportSpecifier"],S$=["ImportNamespaceSpecifier","ExportNamespaceSpecifier"];function gi(t,e){return(e==="named"?C$:S$).includes(t)}function uD(t){if(t.specifiers&&t.specifiers.length>0){let e=t.specifiers,r=e.findIndex(({type:s})=>gi(s,"named")||gi(s,"namespace")),n=r>-1?r:0;return e[n].type}return t.type==="ExportAllDeclaration"?t.exported?"ExportNamespaceSpecifier":"ExportAll":"SideEffectImport"}function A$(t,e){let r=uD(t),n=uD(e);return!(r==="ExportAll"&&n!=="ExportAll"&&n!=="SideEffectImport"||r!=="ExportAll"&&r!=="SideEffectImport"&&n==="ExportAll"||gi(r,"namespace")&&gi(n,"named")||gi(n,"namespace")&&gi(r,"named"))}function $l(t,e){let r=0;for(;r<e.length;){if(A$(t,e[r]))return!0;r++}return!1}function cD(t,e){return t.filter(({declarationType:r})=>r===e).map(({node:r})=>r)}function fD(t){return t&&t.source&&t.source.value?t.source.value.trim():""}function w$(t,e,r,n,s){let i=fD(e);if(r.has(i)){let a=r.get(i),o=[],l=cD(a,"import"),u;s&&(u=cD(a,"export")),n==="import"?($l(e,l)&&o.push("import"),s&&$l(e,u)&&o.push("importAs")):n==="export"&&($l(e,u)&&o.push("export"),$l(e,l)&&o.push("exportAs")),o.forEach(c=>t.report({node:e,messageId:c,data:{module:i}}))}}function yp(t,e,r,n){return function(s){let i=fD(s);if(i){w$(t,s,e,r,n);let a={node:s,declarationType:r},o=[a];e.has(i)&&(o=[...e.get(i),a]),e.set(i,o)}}}lD.exports={meta:{type:"problem",docs:{description:"disallow duplicate module imports",recommended:!1,url:"https://eslint.org/docs/rules/no-duplicate-imports"},schema:[{type:"object",properties:{includeExports:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{import:"'{{module}}' import is duplicated.",importAs:"'{{module}}' import is duplicated as export.",export:"'{{module}}' export is duplicated.",exportAs:"'{{module}}' export is duplicated as import."}},create(t){let e=(t.options[0]||{}).includeExports,r=new Map,n={ImportDeclaration:yp(t,r,"import",e)};return e&&(n.ExportNamedDeclaration=yp(t,r,"export",e),n.ExportAllDeclaration=yp(t,r,"export",e)),n}}});var yi=M((Gte,hD)=>{b();v();"use strict";var k$=pe(),mD=class{constructor(e,r){this.fixer=e,this.sourceCode=r,this.retainedRange=null}retainRange(e){return this.retainedRange=e,this}retainEnclosingFunction(e){let r=k$.getUpperFunction(e);return this.retainRange(r?r.range:this.sourceCode.ast.range)}retainSurroundingTokens(e){let r=this.sourceCode.getTokenBefore(e)||e,n=this.sourceCode.getTokenAfter(e)||e;return this.retainRange([r.range[0],n.range[1]])}replaceTextRange(e,r){let n;return this.retainedRange?n=[Math.min(this.retainedRange[0],e[0]),Math.max(this.retainedRange[1],e[1])]:n=e,this.fixer.replaceTextRange(n,this.sourceCode.text.slice(n[0],e[0])+r+this.sourceCode.text.slice(e[1],n[1]))}remove(e){return this.replaceTextRange(e.range,"")}};hD.exports=mD});var yD=M((zte,dD)=>{b();v();"use strict";var gD=pe(),D$=yi();dD.exports={meta:{type:"suggestion",docs:{description:"disallow `else` blocks after `return` statements in `if` statements",recommended:!1,url:"https://eslint.org/docs/rules/no-else-return"},schema:[{type:"object",properties:{allowElseIf:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"code",messages:{unexpected:"Unnecessary 'else' after 'return'."}},create(t){function e(f,m){if(f.length===0)return!0;let x=m.variableScope;if(m.variables.filter(({defs:T})=>T.length>0).some(({name:T})=>f.includes(T))||m!==x&&m.upper.type==="catch"&&m.upper.variables.some(({name:T})=>f.includes(T))||m.variables.filter(({defs:T,references:I})=>T.length===0&&I.length>0).some(({name:T})=>f.includes(T))||m.through.some(T=>f.includes(T.identifier.name)))return!1;if(m!==x){let T=m.block.range;if(x.variables.filter(({name:y})=>f.includes(y)).some(y=>y.defs.some(({node:{range:w}})=>T[0]<=w[0]&&w[1]<=T[1])))return!1}return!0}function r(f,m){if(f.type==="FunctionDeclaration")return!1;if(f.type!=="BlockStatement")return!0;let x=m.childScopes.find(({block:S})=>S===f);if(!x)return!0;let E=x.variables.map(({name:S})=>S);return e(E,m)}function n(f){let m=t.getScope();t.report({node:f,messageId:"unexpected",fix:x=>{if(!r(f,m))return null;let E=t.getSourceCode(),S=E.getFirstToken(f),T=E.getTokenBefore(S),I=E.getText(f),y=E.getTokenBefore(T),w,D;S.type==="Punctuator"&&S.value==="{"?D=E.getTokenAfter(S):D=S;let R=f.parent.consequent.type!=="BlockStatement"&&y.value!==";",z=/^[([/+`-]/u.test(D.value);if(R&&z)return null;let q=E.getLastToken(f),W=E.getTokenBefore(q);if(W.value!==";"){let _=E.getTokenAfter(q),C=_&&/^[([/+`-]/u.test(_.value),$=_&&_.loc.start.line===W.loc.start.line;if(C||$&&_.value!=="}")return null}return S.type==="Punctuator"&&S.value==="{"?w=I.slice(1,-1):w=I,new D$(x,E).retainEnclosingFunction(f).replaceTextRange([T.range[0],f.range[1]],w)}})}function s(f){return f.type==="ReturnStatement"}function i(f){if(f.type==="BlockStatement"){let m=f.body,x=m[m.length-1];return x&&s(x)}return s(f)}function a(f){return f.alternate&&f.consequent}function o(f){return f.type==="IfStatement"&&a(f)&&i(f.alternate)&&i(f.consequent)}function l(f){return s(f)||o(f)}function u(f){return f.type==="BlockStatement"?f.body.some(l):l(f)}function c(f){let m=f.parent;if(!gD.STATEMENT_LIST_PARENTS.has(m.type))return;let x=[],E;for(let S=f;S.type==="IfStatement";S=S.alternate){if(!S.alternate)return;x.push(S.consequent),E=S.alternate}x.every(u)&&n(E)}function p(f){let m=f.parent;if(!gD.STATEMENT_LIST_PARENTS.has(m.type))return;let x=f.alternate;x&&u(f.consequent)&&n(x)}return{"IfStatement:exit":!(t.options[0]&&t.options[0].allowElseIf===!1)?c:p}}}});var ED=M((Hte,xD)=>{b();v();"use strict";var T$=pe();xD.exports={meta:{type:"suggestion",docs:{description:"disallow empty block statements",recommended:!0,url:"https://eslint.org/docs/rules/no-empty"},schema:[{type:"object",properties:{allowEmptyCatch:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"Empty {{type}} statement."}},create(t){let e=t.options[0]||{},r=e.allowEmptyCatch||!1,n=t.getSourceCode();return{BlockStatement(s){s.body.length===0&&(T$.isFunction(s.parent)||r&&s.parent.type==="CatchClause"||n.getCommentsInside(s).length>0||t.report({node:s,messageId:"unexpected",data:{type:"block"}}))},SwitchStatement(s){(typeof s.cases=="undefined"||s.cases.length===0)&&t.report({node:s,messageId:"unexpected",data:{type:"switch"}})}}}}});var vD=M((Kte,bD)=>{b();v();"use strict";var F$=/^([^\\[]|\\.|\[([^\\\]]|\\.)+\])*$/u;bD.exports={meta:{type:"problem",docs:{description:"disallow empty character classes in regular expressions",recommended:!0,url:"https://eslint.org/docs/rules/no-empty-character-class"},schema:[],messages:{unexpected:"Empty class."}},create(t){return{"Literal[regex]"(e){F$.test(e.regex.pattern)||t.report({node:e,messageId:"unexpected"})}}}}});var AD=M((Yte,CD)=>{b();v();"use strict";var SD=pe(),P$=Object.freeze(["functions","arrowFunctions","generatorFunctions","methods","generatorMethods","getters","setters","constructors","asyncFunctions","asyncMethods"]);function I$(t){let e=t.parent,r="";if(t.type==="ArrowFunctionExpression")return"arrowFunctions";if(e.type==="Property"){if(e.kind==="get")return"getters";if(e.kind==="set")return"setters";r=e.method?"methods":"functions"}else if(e.type==="MethodDefinition"){if(e.kind==="get")return"getters";if(e.kind==="set")return"setters";if(e.kind==="constructor")return"constructors";r="methods"}else r="functions";let n="";if(t.generator)n="generator";else if(t.async)n="async";else return r;return n+r[0].toUpperCase()+r.slice(1)}CD.exports={meta:{type:"suggestion",docs:{description:"disallow empty functions",recommended:!1,url:"https://eslint.org/docs/rules/no-empty-function"},schema:[{type:"object",properties:{allow:{type:"array",items:{enum:P$},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"Unexpected empty {{name}}."}},create(t){let r=(t.options[0]||{}).allow||[],n=t.getSourceCode();function s(i){let a=I$(i),o=SD.getFunctionNameWithKind(i),l=n.getTokens(i.body,{includeComments:!0,filter:SD.isCommentToken});r.indexOf(a)===-1&&i.body.type==="BlockStatement"&&i.body.body.length===0&&l.length===0&&t.report({node:i,loc:i.body.loc,messageId:"unexpected",data:{name:o}})}return{ArrowFunctionExpression:s,FunctionDeclaration:s,FunctionExpression:s}}}});var kD=M((Jte,wD)=>{b();v();"use strict";wD.exports={meta:{type:"problem",docs:{description:"disallow empty destructuring patterns",recommended:!0,url:"https://eslint.org/docs/rules/no-empty-pattern"},schema:[],messages:{unexpected:"Unexpected empty {{type}} pattern."}},create(t){return{ObjectPattern(e){e.properties.length===0&&t.report({node:e,messageId:"unexpected",data:{type:"object"}})},ArrayPattern(e){e.elements.length===0&&t.report({node:e,messageId:"unexpected",data:{type:"array"}})}}}}});var TD=M((Qte,DD)=>{b();v();"use strict";DD.exports={meta:{type:"suggestion",docs:{description:"disallow `null` comparisons without type-checking operators",recommended:!1,url:"https://eslint.org/docs/rules/no-eq-null"},schema:[],messages:{unexpected:"Use '===' to compare with null."}},create(t){return{BinaryExpression(e){let r=e.operator==="=="||e.operator==="!=";(e.right.type==="Literal"&&e.right.raw==="null"&&r||e.left.type==="Literal"&&e.left.raw==="null"&&r)&&t.report({node:e,messageId:"unexpected"})}}}}});var ID=M((Xte,FD)=>{b();v();"use strict";var Pn=pe(),PD=Object.freeze(["global","window","globalThis"]);function xp(t,e){return Pn.isSpecificMemberAccess(t,null,e)}FD.exports={meta:{type:"suggestion",docs:{description:"disallow the use of `eval()`",recommended:!1,url:"https://eslint.org/docs/rules/no-eval"},schema:[{type:"object",properties:{allowIndirect:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"eval can be harmful."}},create(t){let e=Boolean(t.options[0]&&t.options[0].allowIndirect),r=t.getSourceCode(),n=null;function s(u){let c=t.getScope().isStrict;n={upper:n,node:u,strict:c,defaultThis:!1,initialized:c}}function i(){n=n.upper}function a(u){let c=u.parent,p=u.type==="MemberExpression"?u.property:u,h=c.type==="CallExpression"&&c.callee===u?c:u;t.report({node:h,loc:p.loc,messageId:"unexpected"})}function o(u){for(let c=0;c<PD.length;++c){let p=PD[c],h=Pn.getVariableByName(u,p);if(!h)continue;let f=h.references;for(let m=0;m<f.length;++m){let E=f[m].identifier.parent;for(;xp(E,p);)E=E.parent;xp(E,"eval")&&a(E)}}}function l(u){let c=Pn.getVariableByName(u,"eval");if(!c)return;let p=c.references;for(let h=0;h<p.length;++h){let m=p[h].identifier;m.name==="eval"&&!Pn.isCallee(m)&&a(m)}}return e?{"CallExpression:exit"(u){let c=u.callee;!u.optional&&Pn.isSpecificId(c,"eval")&&a(c)}}:{"CallExpression:exit"(u){let c=u.callee;Pn.isSpecificId(c,"eval")&&a(c)},Program(u){let c=t.getScope(),p=t.parserOptions.ecmaFeatures||{},h=c.isStrict||u.sourceType==="module"||p.globalReturn&&c.childScopes[0].isStrict;n={upper:null,node:u,strict:h,defaultThis:!0,initialized:!0}},"Program:exit"(){let u=t.getScope();i(),l(u),o(u)},FunctionDeclaration:s,"FunctionDeclaration:exit":i,FunctionExpression:s,"FunctionExpression:exit":i,ArrowFunctionExpression:s,"ArrowFunctionExpression:exit":i,"PropertyDefinition > *.value":s,"PropertyDefinition > *.value:exit":i,StaticBlock:s,"StaticBlock:exit":i,ThisExpression(u){!xp(u.parent,"eval")||(n.initialized||(n.initialized=!0,n.defaultThis=Pn.isDefaultThisBinding(n.node,r)),!n.strict&&n.defaultThis&&a(u.parent))}}}}});var BD=M((Zte,_D)=>{b();v();"use strict";var _$=pe();_D.exports={meta:{type:"problem",docs:{description:"disallow reassigning exceptions in `catch` clauses",recommended:!0,url:"https://eslint.org/docs/rules/no-ex-assign"},schema:[],messages:{unexpected:"Do not assign to the exception parameter."}},create(t){function e(r){_$.getModifyingReferences(r.references).forEach(n=>{t.report({node:n.identifier,messageId:"unexpected"})})}return{CatchClause(r){t.getDeclaredVariables(r).forEach(e)}}}}});var RD=M((ere,OD)=>{OD.exports={builtin:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es5:{Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},es2015:{Array:!1,ArrayBuffer:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2017:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2020:{Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2021:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},browser:{AbortController:!1,AbortSignal:!1,addEventListener:!1,alert:!1,AnalyserNode:!1,Animation:!1,AnimationEffectReadOnly:!1,AnimationEffectTiming:!1,AnimationEffectTimingReadOnly:!1,AnimationEvent:!1,AnimationPlaybackEvent:!1,AnimationTimeline:!1,applicationCache:!1,ApplicationCache:!1,ApplicationCacheErrorEvent:!1,atob:!1,Attr:!1,Audio:!1,AudioBuffer:!1,AudioBufferSourceNode:!1,AudioContext:!1,AudioDestinationNode:!1,AudioListener:!1,AudioNode:!1,AudioParam:!1,AudioProcessingEvent:!1,AudioScheduledSourceNode:!1,AudioWorkletGlobalScope:!1,AudioWorkletNode:!1,AudioWorkletProcessor:!1,BarProp:!1,BaseAudioContext:!1,BatteryManager:!1,BeforeUnloadEvent:!1,BiquadFilterNode:!1,Blob:!1,BlobEvent:!1,blur:!1,BroadcastChannel:!1,btoa:!1,BudgetService:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,cancelIdleCallback:!1,CanvasCaptureMediaStreamTrack:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,ChannelMergerNode:!1,ChannelSplitterNode:!1,CharacterData:!1,clearInterval:!1,clearTimeout:!1,clientInformation:!1,ClipboardEvent:!1,close:!1,closed:!1,CloseEvent:!1,Comment:!1,CompositionEvent:!1,confirm:!1,console:!1,ConstantSourceNode:!1,ConvolverNode:!1,CountQueuingStrategy:!1,createImageBitmap:!1,Credential:!1,CredentialsContainer:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSConditionRule:!1,CSSFontFaceRule:!1,CSSGroupingRule:!1,CSSImportRule:!1,CSSKeyframeRule:!1,CSSKeyframesRule:!1,CSSMatrixComponent:!1,CSSMediaRule:!1,CSSNamespaceRule:!1,CSSPageRule:!1,CSSPerspective:!1,CSSRotate:!1,CSSRule:!1,CSSRuleList:!1,CSSScale:!1,CSSSkew:!1,CSSSkewX:!1,CSSSkewY:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,CSSSupportsRule:!1,CSSTransformValue:!1,CSSTranslate:!1,CustomElementRegistry:!1,customElements:!1,CustomEvent:!1,DataTransfer:!1,DataTransferItem:!1,DataTransferItemList:!1,defaultstatus:!1,defaultStatus:!1,DelayNode:!1,DeviceMotionEvent:!1,DeviceOrientationEvent:!1,devicePixelRatio:!1,dispatchEvent:!1,document:!1,Document:!1,DocumentFragment:!1,DocumentType:!1,DOMError:!1,DOMException:!1,DOMImplementation:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMParser:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectList:!1,DOMRectReadOnly:!1,DOMStringList:!1,DOMStringMap:!1,DOMTokenList:!1,DragEvent:!1,DynamicsCompressorNode:!1,Element:!1,ErrorEvent:!1,event:!1,Event:!1,EventSource:!1,EventTarget:!1,external:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,find:!1,focus:!1,FocusEvent:!1,FontFace:!1,FontFaceSetLoadEvent:!1,FormData:!1,frameElement:!1,frames:!1,GainNode:!1,Gamepad:!1,GamepadButton:!1,GamepadEvent:!1,getComputedStyle:!1,getSelection:!1,HashChangeEvent:!1,Headers:!1,history:!1,History:!1,HTMLAllCollection:!1,HTMLAnchorElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLContentElement:!1,HTMLDataElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLDocument:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormControlsCollection:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLLabelElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLOptionsCollection:!1,HTMLOutputElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLShadowElement:!1,HTMLSlotElement:!1,HTMLSourceElement:!1,HTMLSpanElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTimeElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLUnknownElement:!1,HTMLVideoElement:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdleDeadline:!1,IIRFilterNode:!1,Image:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageCapture:!1,ImageData:!1,indexedDB:!1,innerHeight:!1,innerWidth:!1,InputEvent:!1,IntersectionObserver:!1,IntersectionObserverEntry:!1,Intl:!1,isSecureContext:!1,KeyboardEvent:!1,KeyframeEffect:!1,KeyframeEffectReadOnly:!1,length:!1,localStorage:!1,location:!0,Location:!1,locationbar:!1,matchMedia:!1,MediaDeviceInfo:!1,MediaDevices:!1,MediaElementAudioSourceNode:!1,MediaEncryptedEvent:!1,MediaError:!1,MediaKeyMessageEvent:!1,MediaKeySession:!1,MediaKeyStatusMap:!1,MediaKeySystemAccess:!1,MediaList:!1,MediaMetadata:!1,MediaQueryList:!1,MediaQueryListEvent:!1,MediaRecorder:!1,MediaSettingsRange:!1,MediaSource:!1,MediaStream:!1,MediaStreamAudioDestinationNode:!1,MediaStreamAudioSourceNode:!1,MediaStreamEvent:!1,MediaStreamTrack:!1,MediaStreamTrackEvent:!1,menubar:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MIDIAccess:!1,MIDIConnectionEvent:!1,MIDIInput:!1,MIDIInputMap:!1,MIDIMessageEvent:!1,MIDIOutput:!1,MIDIOutputMap:!1,MIDIPort:!1,MimeType:!1,MimeTypeArray:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationEvent:!1,MutationObserver:!1,MutationRecord:!1,name:!1,NamedNodeMap:!1,NavigationPreloadManager:!1,navigator:!1,Navigator:!1,NetworkInformation:!1,Node:!1,NodeFilter:!1,NodeIterator:!1,NodeList:!1,Notification:!1,OfflineAudioCompletionEvent:!1,OfflineAudioContext:!1,offscreenBuffering:!1,OffscreenCanvas:!0,OffscreenCanvasRenderingContext2D:!1,onabort:!0,onafterprint:!0,onanimationend:!0,onanimationiteration:!0,onanimationstart:!0,onappinstalled:!0,onauxclick:!0,onbeforeinstallprompt:!0,onbeforeprint:!0,onbeforeunload:!0,onblur:!0,oncancel:!0,oncanplay:!0,oncanplaythrough:!0,onchange:!0,onclick:!0,onclose:!0,oncontextmenu:!0,oncuechange:!0,ondblclick:!0,ondevicemotion:!0,ondeviceorientation:!0,ondeviceorientationabsolute:!0,ondrag:!0,ondragend:!0,ondragenter:!0,ondragleave:!0,ondragover:!0,ondragstart:!0,ondrop:!0,ondurationchange:!0,onemptied:!0,onended:!0,onerror:!0,onfocus:!0,ongotpointercapture:!0,onhashchange:!0,oninput:!0,oninvalid:!0,onkeydown:!0,onkeypress:!0,onkeyup:!0,onlanguagechange:!0,onload:!0,onloadeddata:!0,onloadedmetadata:!0,onloadstart:!0,onlostpointercapture:!0,onmessage:!0,onmessageerror:!0,onmousedown:!0,onmouseenter:!0,onmouseleave:!0,onmousemove:!0,onmouseout:!0,onmouseover:!0,onmouseup:!0,onmousewheel:!0,onoffline:!0,ononline:!0,onpagehide:!0,onpageshow:!0,onpause:!0,onplay:!0,onplaying:!0,onpointercancel:!0,onpointerdown:!0,onpointerenter:!0,onpointerleave:!0,onpointermove:!0,onpointerout:!0,onpointerover:!0,onpointerup:!0,onpopstate:!0,onprogress:!0,onratechange:!0,onrejectionhandled:!0,onreset:!0,onresize:!0,onscroll:!0,onsearch:!0,onseeked:!0,onseeking:!0,onselect:!0,onstalled:!0,onstorage:!0,onsubmit:!0,onsuspend:!0,ontimeupdate:!0,ontoggle:!0,ontransitionend:!0,onunhandledrejection:!0,onunload:!0,onvolumechange:!0,onwaiting:!0,onwheel:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,origin:!1,OscillatorNode:!1,outerHeight:!1,outerWidth:!1,OverconstrainedError:!1,PageTransitionEvent:!1,pageXOffset:!1,pageYOffset:!1,PannerNode:!1,parent:!1,Path2D:!1,PaymentAddress:!1,PaymentRequest:!1,PaymentRequestUpdateEvent:!1,PaymentResponse:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceLongTaskTiming:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceNavigationTiming:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformancePaintTiming:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,PeriodicWave:!1,Permissions:!1,PermissionStatus:!1,personalbar:!1,PhotoCapabilities:!1,Plugin:!1,PluginArray:!1,PointerEvent:!1,PopStateEvent:!1,postMessage:!1,Presentation:!1,PresentationAvailability:!1,PresentationConnection:!1,PresentationConnectionAvailableEvent:!1,PresentationConnectionCloseEvent:!1,PresentationConnectionList:!1,PresentationReceiver:!1,PresentationRequest:!1,print:!1,ProcessingInstruction:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,prompt:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,RadioNodeList:!1,Range:!1,ReadableStream:!1,registerProcessor:!1,RemotePlayback:!1,removeEventListener:!1,Request:!1,requestAnimationFrame:!1,requestIdleCallback:!1,resizeBy:!1,ResizeObserver:!1,ResizeObserverEntry:!1,resizeTo:!1,Response:!1,RTCCertificate:!1,RTCDataChannel:!1,RTCDataChannelEvent:!1,RTCDtlsTransport:!1,RTCIceCandidate:!1,RTCIceGatherer:!1,RTCIceTransport:!1,RTCPeerConnection:!1,RTCPeerConnectionIceEvent:!1,RTCRtpContributingSource:!1,RTCRtpReceiver:!1,RTCRtpSender:!1,RTCSctpTransport:!1,RTCSessionDescription:!1,RTCStatsReport:!1,RTCTrackEvent:!1,screen:!1,Screen:!1,screenLeft:!1,ScreenOrientation:!1,screenTop:!1,screenX:!1,screenY:!1,ScriptProcessorNode:!1,scroll:!1,scrollbars:!1,scrollBy:!1,scrollTo:!1,scrollX:!1,scrollY:!1,SecurityPolicyViolationEvent:!1,Selection:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,ShadowRoot:!1,SharedWorker:!1,SourceBuffer:!1,SourceBufferList:!1,speechSynthesis:!1,SpeechSynthesisEvent:!1,SpeechSynthesisUtterance:!1,StaticRange:!1,status:!1,statusbar:!1,StereoPannerNode:!1,stop:!1,Storage:!1,StorageEvent:!1,StorageManager:!1,styleMedia:!1,StyleSheet:!1,StyleSheetList:!1,SubtleCrypto:!1,SVGAElement:!1,SVGAngle:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimationElement:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGComponentTransferFunctionElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDiscardElement:!1,SVGElement:!1,SVGEllipseElement:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEDropShadowElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGeometryElement:!1,SVGGradientElement:!1,SVGGraphicsElement:!1,SVGImageElement:!1,SVGLength:!1,SVGLengthList:!1,SVGLinearGradientElement:!1,SVGLineElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMPathElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPathElement:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStyleElement:!1,SVGSVGElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTSpanElement:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGViewElement:!1,TaskAttributionTiming:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TextEvent:!1,TextMetrics:!1,TextTrack:!1,TextTrackCue:!1,TextTrackCueList:!1,TextTrackList:!1,TimeRanges:!1,toolbar:!1,top:!1,Touch:!1,TouchEvent:!1,TouchList:!1,TrackEvent:!1,TransitionEvent:!1,TreeWalker:!1,UIEvent:!1,URL:!1,URLSearchParams:!1,ValidityState:!1,visualViewport:!1,VisualViewport:!1,VTTCue:!1,WaveShaperNode:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,WebSocket:!1,WheelEvent:!1,window:!1,Window:!1,Worker:!1,WritableStream:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathExpression:!1,XPathResult:!1,XSLTProcessor:!1},worker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,clearInterval:!1,clearTimeout:!1,close:!0,console:!1,fetch:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!0,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onlanguagechange:!0,onmessage:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,removeEventListener:!1,Request:!1,Response:!1,self:!0,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},node:{__dirname:!1,__filename:!1,AbortController:!1,AbortSignal:!1,atob:!1,btoa:!1,Buffer:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,console:!1,DOMException:!1,Event:!1,EventTarget:!1,exports:!0,global:!1,Intl:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,module:!1,performance:!1,process:!1,queueMicrotask:!1,require:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1},nodeBuiltin:{AbortController:!1,AbortSignal:!1,atob:!1,btoa:!1,Buffer:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,console:!1,DOMException:!1,Event:!1,EventTarget:!1,global:!1,Intl:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,performance:!1,process:!1,queueMicrotask:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1},commonjs:{exports:!0,global:!1,module:!1,require:!1},amd:{define:!1,require:!1},mocha:{after:!1,afterEach:!1,before:!1,beforeEach:!1,context:!1,describe:!1,it:!1,mocha:!1,run:!1,setup:!1,specify:!1,suite:!1,suiteSetup:!1,suiteTeardown:!1,teardown:!1,test:!1,xcontext:!1,xdescribe:!1,xit:!1,xspecify:!1},jasmine:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,expectAsync:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,spyOnAllFunctions:!1,spyOnProperty:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},jest:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fdescribe:!1,fit:!1,it:!1,jest:!1,pit:!1,require:!1,test:!1,xdescribe:!1,xit:!1,xtest:!1},qunit:{asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},phantomjs:{console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},couch:{emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},rhino:{defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},nashorn:{__DIR__:!1,__FILE__:!1,__LINE__:!1,com:!1,edu:!1,exit:!1,java:!1,Java:!1,javafx:!1,JavaImporter:!1,javax:!1,JSAdapter:!1,load:!1,loadWithNewGlobal:!1,org:!1,Packages:!1,print:!1,quit:!1},wsh:{ActiveXObject:!1,CollectGarbage:!1,Debug:!1,Enumerator:!1,GetObject:!1,RuntimeObject:!1,ScriptEngine:!1,ScriptEngineBuildVersion:!1,ScriptEngineMajorVersion:!1,ScriptEngineMinorVersion:!1,VBArray:!1,WScript:!1,WSH:!1},jquery:{$:!1,jQuery:!1},yui:{YAHOO:!1,YAHOO_config:!1,YUI:!1,YUI_config:!1},shelljs:{cat:!1,cd:!1,chmod:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,exec:!1,exit:!1,find:!1,grep:!1,ln:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,target:!1,tempdir:!1,test:!1,touch:!1,which:!1},prototypejs:{$:!1,$$:!1,$A:!1,$break:!1,$continue:!1,$F:!1,$H:!1,$R:!1,$w:!1,Abstract:!1,Ajax:!1,Autocompleter:!1,Builder:!1,Class:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Element:!1,Enumerable:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Scriptaculous:!1,Selector:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Template:!1,Toggle:!1,Try:!1},meteor:{$:!1,Accounts:!1,AccountsClient:!1,AccountsCommon:!1,AccountsServer:!1,App:!1,Assets:!1,Blaze:!1,check:!1,Cordova:!1,DDP:!1,DDPRateLimiter:!1,DDPServer:!1,Deps:!1,EJSON:!1,Email:!1,HTTP:!1,Log:!1,Match:!1,Meteor:!1,Mongo:!1,MongoInternals:!1,Npm:!1,Package:!1,Plugin:!1,process:!1,Random:!1,ReactiveDict:!1,ReactiveVar:!1,Router:!1,ServiceConfiguration:!1,Session:!1,share:!1,Spacebars:!1,Template:!1,Tinytest:!1,Tracker:!1,UI:!1,Utils:!1,WebApp:!1,WebAppInternals:!1},mongo:{_isWindows:!1,_rand:!1,BulkWriteResult:!1,cat:!1,cd:!1,connect:!1,db:!1,getHostName:!1,getMemInfo:!1,hostname:!1,ISODate:!1,listFiles:!1,load:!1,ls:!1,md5sumFile:!1,mkdir:!1,Mongo:!1,NumberInt:!1,NumberLong:!1,ObjectId:!1,PlanCache:!1,print:!1,printjson:!1,pwd:!1,quit:!1,removeFile:!1,rs:!1,sh:!1,UUID:!1,version:!1,WriteResult:!1},applescript:{$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},serviceworker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,CacheStorage:!1,clearInterval:!1,clearTimeout:!1,Client:!1,clients:!1,Clients:!1,close:!0,console:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,fetch:!1,FetchEvent:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!1,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onfetch:!0,oninstall:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onnotificationclick:!0,onnotificationclose:!0,onoffline:!0,ononline:!0,onpush:!0,onpushsubscriptionchange:!0,onrejectionhandled:!0,onsync:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,registration:!1,removeEventListener:!1,Request:!1,Response:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerMessageEvent:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,skipWaiting:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,WindowClient:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},atomtest:{advanceClock:!1,atom:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},embertest:{andThen:!1,click:!1,currentPath:!1,currentRouteName:!1,currentURL:!1,fillIn:!1,find:!1,findAll:!1,findWithAssert:!1,keyEvent:!1,pauseTest:!1,resumeTest:!1,triggerEvent:!1,visit:!1,wait:!1},protractor:{$:!1,$$:!1,browser:!1,by:!1,By:!1,DartObject:!1,element:!1,protractor:!1},"shared-node-browser":{AbortController:!1,AbortSignal:!1,atob:!1,btoa:!1,clearInterval:!1,clearTimeout:!1,console:!1,DOMException:!1,Event:!1,EventTarget:!1,Intl:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,performance:!1,queueMicrotask:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1},webextensions:{browser:!1,chrome:!1,opr:!1},greasemonkey:{cloneInto:!1,createObjectIn:!1,exportFunction:!1,GM:!1,GM_addElement:!1,GM_addStyle:!1,GM_addValueChangeListener:!1,GM_deleteValue:!1,GM_download:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getTab:!1,GM_getTabs:!1,GM_getValue:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_notification:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_removeValueChangeListener:!1,GM_saveTab:!1,GM_setClipboard:!1,GM_setValue:!1,GM_unregisterMenuCommand:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1},devtools:{$:!1,$_:!1,$$:!1,$0:!1,$1:!1,$2:!1,$3:!1,$4:!1,$x:!1,chrome:!1,clear:!1,copy:!1,debug:!1,dir:!1,dirxml:!1,getEventListeners:!1,inspect:!1,keys:!1,monitor:!1,monitorEvents:!1,profile:!1,profileEnd:!1,queryObjects:!1,table:!1,undebug:!1,unmonitor:!1,unmonitorEvents:!1,values:!1}}});var ND=M((tre,LD)=>{b();v();"use strict";LD.exports=RD()});var qD=M((rre,MD)=>{b();v();"use strict";var jD=pe(),B$=ND();MD.exports={meta:{type:"suggestion",docs:{description:"disallow extending native types",recommended:!1,url:"https://eslint.org/docs/rules/no-extend-native"},schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"{{builtin}} prototype is read only, properties should not be added."}},create(t){let e=t.options[0]||{},r=new Set(e.exceptions||[]),n=new Set(Object.keys(B$.builtin).filter(u=>u[0].toUpperCase()===u[0]).filter(u=>!r.has(u)));function s(u,c){t.report({node:u,messageId:"unexpected",data:{builtin:c}})}function i(u){return Boolean(u&&u.parent&&u.parent.type==="MemberExpression"&&u.parent.object===u&&jD.getStaticPropertyName(u.parent)==="prototype")}function a(u){return u.parent.type==="MemberExpression"&&u.parent.object===u&&u.parent.parent.type==="AssignmentExpression"&&u.parent.parent.left===u.parent}function o(u){return u.parent.type==="CallExpression"&&u.parent.arguments[0]===u&&jD.isSpecificMemberAccess(u.parent.callee,"Object",/^definePropert(?:y|ies)$/u)}function l(u){if(!i(u))return;let c=u.parent.parent.type==="ChainExpression"?u.parent.parent:u.parent;a(c)?s(c.parent.parent,u.name):o(c)&&s(c.parent,u.name)}return{"Program:exit"(){let u=t.getScope();n.forEach(c=>{let p=u.set.get(c);p&&p.references&&p.references.map(h=>h.identifier).forEach(l)})}}}}});var UD=M((sre,VD)=>{b();v();"use strict";var Ep=pe(),O$=new Set(["Literal","Identifier","ThisExpression","FunctionExpression"]);VD.exports={meta:{type:"suggestion",docs:{description:"disallow unnecessary calls to `.bind()`",recommended:!1,url:"https://eslint.org/docs/rules/no-extra-bind"},schema:[],fixable:"code",messages:{unexpected:"The function binding is unnecessary."}},create(t){let e=t.getSourceCode(),r=null;function n(c){return O$.has(c.type)}function s(c){let p=c.parent,h=p.parent.type==="ChainExpression"?p.parent.parent:p.parent;t.report({node:h,messageId:"unexpected",loc:p.property.loc,fix(f){if(!n(h.arguments[0]))return null;let m=[[e.getTokenAfter(p.object,Ep.isNotClosingParenToken),e.getLastToken(p)],[e.getTokenAfter(p,Ep.isNotClosingParenToken),e.getLastToken(h)]],x=m[0][0],E=m[1][1];return e.commentsExistBetween(x,E)?null:m.map(([S,T])=>f.removeRange([S.range[0],T.range[1]]))}})}function i(c){if(!Ep.isSpecificMemberAccess(c.parent,null,"bind"))return!1;let p=c.parent.parent.type==="ChainExpression"?c.parent.parent:c.parent;return p.parent.type==="CallExpression"&&p.parent.callee===p&&p.parent.arguments.length===1&&p.parent.arguments[0].type!=="SpreadElement"}function a(c){r={isBound:i(c),thisFound:!1,upper:r}}function o(c){r.isBound&&!r.thisFound&&s(c),r=r.upper}function l(c){i(c)&&s(c)}function u(){r&&(r.thisFound=!0)}return{"ArrowFunctionExpression:exit":l,FunctionDeclaration:a,"FunctionDeclaration:exit":o,FunctionExpression:a,"FunctionExpression:exit":o,ThisExpression:u}}}});var WD=M((nre,$D)=>{b();v();"use strict";var Wl=pe(),R$=Wt(),Ys=Wl.getPrecedence;$D.exports={meta:{type:"suggestion",docs:{description:"disallow unnecessary boolean casts",recommended:!0,url:"https://eslint.org/docs/rules/no-extra-boolean-cast"},schema:[{type:"object",properties:{enforceForLogicalOperands:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{unexpectedCall:"Redundant Boolean call.",unexpectedNegation:"Redundant double negation."}},create(t){let e=t.getSourceCode(),r=["IfStatement","DoWhileStatement","WhileStatement","ConditionalExpression","ForStatement"];function n(c){return(c.type==="CallExpression"||c.type==="NewExpression")&&c.callee.type==="Identifier"&&c.callee.name==="Boolean"}function s(c){return c.type==="LogicalExpression"&&(c.operator==="||"||c.operator==="&&")&&t.options.length&&t.options[0].enforceForLogicalOperands===!0}function i(c){return n(c.parent)&&c===c.parent.arguments[0]||r.indexOf(c.parent.type)!==-1&&c===c.parent.test||c.parent.type==="UnaryExpression"&&c.parent.operator==="!"}function a(c){return c.parent.type==="ChainExpression"?a(c.parent):i(c)||s(c.parent)&&a(c.parent)}function o(c){return Boolean(e.getCommentsInside(c).length)}function l(c){return R$.isParenthesized(1,c,e)}function u(c,p){if(c.parent.type==="ChainExpression")return u(c.parent,p);if(l(c))return!1;let h=c.parent;switch(h.type){case"CallExpression":case"NewExpression":return p.type==="SequenceExpression";case"IfStatement":case"DoWhileStatement":case"WhileStatement":case"ForStatement":return!1;case"ConditionalExpression":return Ys(p)<=Ys(h);case"UnaryExpression":return Ys(p)<Ys(h);case"LogicalExpression":return Wl.isMixedLogicalAndCoalesceExpressions(p,h)?!0:c===h.left?Ys(p)<Ys(h):Ys(p)<=Ys(h);default:throw new Error(`Unexpected parent type: ${h.type}`)}}return{UnaryExpression(c){let p=c.parent;c.operator!=="!"||p.type!=="UnaryExpression"||p.operator!=="!"||a(p)&&t.report({node:p,messageId:"unexpectedNegation",fix(h){if(o(p))return null;if(u(p,c.argument))return h.replaceText(p,`(${e.getText(c.argument)})`);let f="",m=e.getTokenBefore(p),x=e.getFirstToken(c.argument);return m&&m.range[1]===p.range[0]&&!Wl.canTokensBeAdjacent(m,x)&&(f=" "),h.replaceText(p,f+e.getText(c.argument))}})},CallExpression(c){c.callee.type!=="Identifier"||c.callee.name!=="Boolean"||a(c)&&t.report({node:c,messageId:"unexpectedCall",fix(p){let h=c.parent;if(c.arguments.length===0){if(h.type==="UnaryExpression"&&h.operator==="!"){if(o(h))return null;let f="true",m="",x=e.getTokenBefore(h);return x&&x.range[1]===h.range[0]&&!Wl.canTokensBeAdjacent(x,f)&&(m=" "),p.replaceText(h,m+f)}return o(c)?null:p.replaceText(c,"false")}if(c.arguments.length===1){let f=c.arguments[0];return f.type==="SpreadElement"||o(c)?null:u(c,f)?p.replaceText(c,`(${e.getText(f)})`):p.replaceText(c,e.getText(f))}return null}})}}}}});var HD=M((ire,GD)=>{b();v();"use strict";var zD=pe();GD.exports={meta:{type:"suggestion",docs:{description:"disallow unnecessary labels",recommended:!1,url:"https://eslint.org/docs/rules/no-extra-label"},schema:[],fixable:"code",messages:{unexpected:"This label '{{name}}' is unnecessary."}},create(t){let e=t.getSourceCode(),r=null;function n(l){r={label:l.parent.type==="LabeledStatement"?l.parent.label:null,breakable:!0,upper:r}}function s(){r=r.upper}function i(l){zD.isBreakableStatement(l.body)||(r={label:l.label,breakable:!1,upper:r})}function a(l){zD.isBreakableStatement(l.body)||(r=r.upper)}function o(l){if(!l.label)return;let u=l.label;for(let c=r;c!==null;c=c.upper)if(c.breakable||c.label&&c.label.name===u.name){c.breakable&&c.label&&c.label.name===u.name&&t.report({node:u,messageId:"unexpected",data:u,fix(p){let h=e.getFirstToken(l);return e.commentsExistBetween(h,u)?null:p.removeRange([h.range[1],u.range[1]])}});return}}return{WhileStatement:n,"WhileStatement:exit":s,DoWhileStatement:n,"DoWhileStatement:exit":s,ForStatement:n,"ForStatement:exit":s,ForInStatement:n,"ForInStatement:exit":s,ForOfStatement:n,"ForOfStatement:exit":s,SwitchStatement:n,"SwitchStatement:exit":s,LabeledStatement:i,"LabeledStatement:exit":a,BreakStatement:o,ContinueStatement:o}}}});var JD=M((are,KD)=>{b();v();"use strict";var{isParenthesized:YD}=Wt(),wt=pe();KD.exports={meta:{type:"layout",docs:{description:"disallow unnecessary parentheses",recommended:!1,url:"https://eslint.org/docs/rules/no-extra-parens"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["functions"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["all"]},{type:"object",properties:{conditionalAssign:{type:"boolean"},nestedBinaryExpressions:{type:"boolean"},returnAssign:{type:"boolean"},ignoreJSX:{enum:["none","all","single-line","multi-line"]},enforceForArrowConditionals:{type:"boolean"},enforceForSequenceExpressions:{type:"boolean"},enforceForNewInMemberExpressions:{type:"boolean"},enforceForFunctionPrototypeMethods:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{unexpected:"Unnecessary parentheses around expression."}},create(t){let e=t.getSourceCode(),r=new WeakSet,n=wt.getPrecedence,s=t.options[0]!=="functions",i=s&&t.options[1]&&t.options[1].conditionalAssign===!1,a=s&&t.options[1]&&t.options[1].nestedBinaryExpressions===!1,o=s&&t.options[1]&&t.options[1].returnAssign===!1,l=s&&t.options[1]&&t.options[1].ignoreJSX,u=s&&t.options[1]&&t.options[1].enforceForArrowConditionals===!1,c=s&&t.options[1]&&t.options[1].enforceForSequenceExpressions===!1,p=s&&t.options[1]&&t.options[1].enforceForNewInMemberExpressions===!1,h=s&&t.options[1]&&t.options[1].enforceForFunctionPrototypeMethods===!1,f=n({type:"AssignmentExpression"}),m=n({type:"UpdateExpression"}),x;function E(V){let se=wt.skipChainExpression(V);if(se.type!=="CallExpression")return!1;let Pe=wt.skipChainExpression(se.callee);return Pe.type==="MemberExpression"&&Pe.object.type==="FunctionExpression"&&["call","apply"].includes(wt.getStaticPropertyName(Pe))}function S(V){if(V.type==="JSXElement"||V.type==="JSXFragment"){let se=V.loc.start.line===V.loc.end.line;switch(l){case"all":return!1;case"multi-line":return se;case"single-line":return!se;case"none":break}}return V.type==="SequenceExpression"&&c||E(V)&&h?!1:s||V.type==="FunctionExpression"||V.type==="ArrowFunctionExpression"}function T(V){return YD(1,V,e)}function I(V){return YD(2,V,e)}function y(V){return S(V)&&T(V)}function w(V){return S(V)&&I(V)}function D(V,se){return!!(S(V)&&T(V)&&(n(V)>=se||I(V)))}function R(V){return i&&V.test.type==="AssignmentExpression"}function z(V){for(let se=V;se;se=se.parent)if(se.type==="ReturnStatement"||se.type==="ArrowFunctionExpression"&&se.body.type!=="BlockStatement")return!0;return!1}function q(V){let se=e.getLastToken(V),Pe=e.getTokenBefore(se);return V.arguments.length>0||wt.isOpeningParenToken(Pe)&&wt.isClosingParenToken(se)&&V.callee.range[1]<V.range[1]}function W(V){return!!(V.type==="AssignmentExpression"||V.type==="ConditionalExpression"&&(V.consequent.type==="AssignmentExpression"||V.alternate.type==="AssignmentExpression")||V.left&&V.left.type==="AssignmentExpression"||V.right&&V.right.type==="AssignmentExpression")}function _(V){return!o||!z(V)?!1:V.type==="ReturnStatement"?V.argument&&W(V.argument):V.type==="ArrowFunctionExpression"&&V.body.type!=="BlockStatement"?W(V.body):W(V)}function C(V,se){return V.loc.end.line===se.loc.start.line?y(se):w(se)}function $(V){let se=e.getTokenBefore(V),Pe=e.getTokenBefore(se,{includeComments:!0}),Je=e.getTokenAfter(se,{includeComments:!0});return Pe&&Pe.range[1]===se.range[0]&&se.range[1]===Je.range[0]&&!wt.canTokensBeAdjacent(Pe,Je)}function F(V){let se=e.getTokensAfter(V,{count:2}),Pe=se[0],Je=se[1],nt=e.getLastToken(V);return Pe&&Je&&!e.isSpaceBetweenTokens(Pe,Je)&&!wt.canTokensBeAdjacent(nt,Je)}function U(V){let se=wt.skipChainExpression(V);return se.type==="CallExpression"&&se.callee.type==="FunctionExpression"}function Q(V){return V&&(V.type==="Identifier"||V.type==="MemberExpression")}function B(V){let se=e.getTokenBefore(V),Pe=e.getTokenAfter(V);if(!I(V)&&(r.has(e.getFirstToken(V))||U(V)&&!T(V.callee)))return;function Je(){t.report({node:V,loc:se.loc,messageId:"unexpected",fix(nt){let Ye=e.text.slice(se.range[1],Pe.range[0]);return nt.replaceTextRange([se.range[0],Pe.range[1]],($(V)?" ":"")+Ye+(F(V)?" ":""))}})}if(x){x.reports.push({node:V,finishReport:Je});return}Je()}function K(V){D(V.argument,n(V))&&B(V.argument)}function X(V){let se=V.object,Pe=V.object.type;for(;Pe==="MemberExpression";)se=se.object,Pe=se.type;return Pe==="CallExpression"}function ie(V){let se=V.callee;D(se,n(V))&&(w(se)||!(U(V)||se.type==="NewExpression"&&!q(se)&&!(V.type==="NewExpression"&&!q(V))||V.type==="NewExpression"&&se.type==="MemberExpression"&&X(se)||!V.optional&&se.type==="ChainExpression"))&&B(V.callee),V.arguments.filter(Pe=>D(Pe,f)).forEach(B)}function ve(V){let se=n(V),Pe=n(V.left),Je=n(V.right),nt=V.operator==="**",Ye=a&&(V.left.type==="BinaryExpression"||V.left.type==="LogicalExpression"),it=a&&(V.right.type==="BinaryExpression"||V.right.type==="LogicalExpression");!Ye&&y(V.left)&&(!(["AwaitExpression","UnaryExpression"].includes(V.left.type)&&nt)&&!wt.isMixedLogicalAndCoalesceExpressions(V.left,V)&&(Pe>se||Pe===se&&!nt)||I(V.left))&&B(V.left),!it&&y(V.right)&&(!wt.isMixedLogicalAndCoalesceExpressions(V.right,V)&&(Je>se||Je===se&&nt)||I(V.right))&&B(V.right)}function Ae(V){if(!V.superClass)return;(n(V.superClass)>m?y(V.superClass):w(V.superClass))&&B(V.superClass)}function me(V){D(V.argument,f)&&B(V.argument)}function ce(V){let se=T(V)?e.getTokenBefore(V):e.getFirstToken(V),Pe=e.getTokenAfter(se,wt.isNotOpeningParenToken),Je=Pe?e.getTokenAfter(Pe):null,nt=Pe?e.getTokenAfter(Pe,wt.isNotClosingParenToken):null;wt.isOpeningParenToken(se)&&(wt.isOpeningBraceToken(Pe)||Pe.type==="Keyword"&&(Pe.value==="function"||Pe.value==="class"||Pe.value==="let"&&nt&&(wt.isOpeningBracketToken(nt)||nt.type==="Identifier"))||Pe&&Pe.type==="Identifier"&&Pe.value==="async"&&Je&&Je.type==="Keyword"&&Je.value==="function")&&r.add(Pe),(V.parent.type==="ExportDefaultDeclaration"?D(V,f):y(V))&&B(V)}function Fe(V,se){let Pe=[V],Je=V;for(;Je!==se;){if(Je=Je.parent,Je===null)throw new Error("Nodes are not in the ancestor-descendant relationship.");Pe.push(Je)}return Pe}function te(V,se){return Fe(se,V).reverse()}function ne(V,se){switch(V.type){case"ArrayExpression":case"ArrayPattern":case"BlockStatement":case"ObjectExpression":case"ObjectPattern":case"TemplateLiteral":return!0;case"ArrowFunctionExpression":case"FunctionExpression":return V.params.includes(se);case"CallExpression":case"NewExpression":return V.arguments.includes(se);case"MemberExpression":return V.computed&&V.property===se;case"ConditionalExpression":return V.consequent===se;default:return!1}}function ue(){x={upper:x,inExpressionNodes:[],reports:[]}}function re(){let{upper:V,inExpressionNodes:se,reports:Pe}=x;V?(V.inExpressionNodes.push(...se),V.reports.push(...Pe)):Pe.forEach(({finishReport:Je})=>Je()),x=V}function fe(V){return x.reports.some(se=>se.node===V)}function Ce(V){x.reports=x.reports.filter(se=>se.node!==V)}function Ge(V){return V.type==="MemberExpression"?V.parent.type==="NewExpression"&&V.parent.callee===V?!0:V.parent.object===V&&Ge(V.parent):!1}return{ArrayExpression(V){V.elements.filter(se=>se&&D(se,f)).forEach(B)},ArrayPattern(V){V.elements.filter(se=>Q(se)&&y(se)).forEach(B)},ArrowFunctionExpression(V){if(!_(V)&&!(V.body.type==="ConditionalExpression"&&u)&&V.body.type!=="BlockStatement"){let se=e.getFirstToken(V.body,wt.isNotOpeningParenToken),Pe=e.getTokenBefore(se);wt.isOpeningParenToken(Pe)&&wt.isOpeningBraceToken(se)&&r.add(se),D(V.body,f)&&B(V.body)}},AssignmentExpression(V){Q(V.left)&&y(V.left)&&B(V.left),!_(V)&&D(V.right,n(V))&&B(V.right)},BinaryExpression(V){x&&V.operator==="in"&&x.inExpressionNodes.push(V),ve(V)},CallExpression:ie,ConditionalExpression(V){_(V)||(!R(V)&&D(V.test,n({type:"LogicalExpression",operator:"||"}))&&B(V.test),D(V.consequent,f)&&B(V.consequent),D(V.alternate,f)&&B(V.alternate))},DoWhileStatement(V){y(V.test)&&!R(V)&&B(V.test)},ExportDefaultDeclaration:V=>ce(V.declaration),ExpressionStatement:V=>ce(V.expression),ForInStatement(V){if(V.left.type!=="VariableDeclaration"){let se=e.getFirstToken(V.left,wt.isNotOpeningParenToken);se.value==="let"&&wt.isOpeningBracketToken(e.getTokenAfter(se,wt.isNotClosingParenToken))&&r.add(se)}y(V.left)&&B(V.left),y(V.right)&&B(V.right)},ForOfStatement(V){if(V.left.type!=="VariableDeclaration"){let se=e.getFirstToken(V.left,wt.isNotOpeningParenToken);se.value==="let"&&r.add(se)}y(V.left)&&B(V.left),D(V.right,f)&&B(V.right)},ForStatement(V){if(V.test&&y(V.test)&&!R(V)&&B(V.test),V.update&&y(V.update)&&B(V.update),V.init){if(V.init.type!=="VariableDeclaration"){let se=e.getFirstToken(V.init,wt.isNotOpeningParenToken);se.value==="let"&&wt.isOpeningBracketToken(e.getTokenAfter(se,wt.isNotClosingParenToken))&&r.add(se)}ue(),y(V.init)&&B(V.init)}},"ForStatement > *.init:exit"(V){x.reports.length&&x.inExpressionNodes.forEach(se=>{let Pe=te(V,se),Je;for(let nt=0;nt<Pe.length;nt++){let Ye=Pe[nt];if(nt<Pe.length-1){let it=Pe[nt+1];if(ne(Ye,it))return}if(T(Ye))if(fe(Ye)){if(I(Ye))return;Je||(Je=Ye)}else return}Ce(Je)}),re()},IfStatement(V){y(V.test)&&!R(V)&&B(V.test)},ImportExpression(V){let{source:se}=V;se.type==="SequenceExpression"?w(se)&&B(se):y(se)&&B(se)},LogicalExpression:ve,MemberExpression(V){let Pe=Ge(V)&&X(V)?w(V.object):y(V.object)&&!(E(V.parent)&&V.parent.callee===V&&h);Pe&&n(V.object)>=n(V)&&(V.computed||!(wt.isDecimalInteger(V.object)||V.object.type==="Literal"&&V.object.regex))&&B(V.object),Pe&&V.object.type==="CallExpression"&&B(V.object),Pe&&!p&&V.object.type==="NewExpression"&&q(V.object)&&B(V.object),Pe&&V.optional&&V.object.type==="ChainExpression"&&B(V.object),V.computed&&y(V.property)&&B(V.property)},"MethodDefinition[computed=true]"(V){D(V.key,f)&&B(V.key)},NewExpression:ie,ObjectExpression(V){V.properties.filter(se=>se.value&&D(se.value,f)).forEach(se=>B(se.value))},ObjectPattern(V){V.properties.filter(se=>{let Pe=se.value;return Q(Pe)&&y(Pe)}).forEach(se=>B(se.value))},Property(V){if(V.computed){let{key:se}=V;se&&D(se,f)&&B(se)}},PropertyDefinition(V){V.computed&&D(V.key,f)&&B(V.key),V.value&&D(V.value,f)&&B(V.value)},RestElement(V){let se=V.argument;Q(se)&&y(se)&&B(se)},ReturnStatement(V){let se=e.getFirstToken(V);_(V)||V.argument&&C(se,V.argument)&&!(V.argument.type==="Literal"&&V.argument.regex)&&B(V.argument)},SequenceExpression(V){let se=n(V);V.expressions.filter(Pe=>D(Pe,se)).forEach(B)},SwitchCase(V){V.test&&y(V.test)&&B(V.test)},SwitchStatement(V){y(V.discriminant)&&B(V.discriminant)},ThrowStatement(V){let se=e.getFirstToken(V);C(se,V.argument)&&B(V.argument)},UnaryExpression:K,UpdateExpression(V){if(V.prefix)K(V);else{let{argument:se}=V,Pe=e.getLastToken(V);se.loc.end.line===Pe.loc.start.line?K(V):w(se)&&B(se)}},AwaitExpression:K,VariableDeclarator(V){V.init&&D(V.init,f)&&!(V.init.type==="Literal"&&V.init.regex)&&B(V.init)},WhileStatement(V){y(V.test)&&!R(V)&&B(V.test)},WithStatement(V){y(V.object)&&B(V.object)},YieldExpression(V){if(V.argument){let se=e.getFirstToken(V);(n(V.argument)>=n(V)&&C(se,V.argument)||w(V.argument))&&B(V.argument)}},ClassDeclaration:Ae,ClassExpression:Ae,SpreadElement:me,SpreadProperty:me,ExperimentalSpreadProperty:me,TemplateLiteral(V){V.expressions.filter(se=>se&&y(se)).forEach(B)},AssignmentPattern(V){let{left:se,right:Pe}=V;Q(se)&&y(se)&&B(se),Pe&&D(Pe,f)&&B(Pe)}}}}});var ZD=M((ore,QD)=>{b();v();"use strict";var L$=yi(),XD=pe();QD.exports={meta:{type:"suggestion",docs:{description:"disallow unnecessary semicolons",recommended:!0,url:"https://eslint.org/docs/rules/no-extra-semi"},fixable:"code",schema:[],messages:{unexpected:"Unnecessary semicolon."}},create(t){let e=t.getSourceCode();function r(s){t.report({node:s,messageId:"unexpected",fix(i){return new L$(i,t.getSourceCode()).retainSurroundingTokens(s).remove(s)}})}function n(s){for(let i=s;i.type==="Punctuator"&&!XD.isClosingBraceToken(i);i=e.getTokenAfter(i))XD.isSemicolonToken(i)&&r(i)}return{EmptyStatement(s){let i=s.parent;["ForStatement","ForInStatement","ForOfStatement","WhileStatement","DoWhileStatement","IfStatement","LabeledStatement","WithStatement"].indexOf(i.type)===-1&&r(s)},ClassBody(s){n(e.getFirstToken(s,1))},"MethodDefinition, PropertyDefinition, StaticBlock"(s){n(e.getTokenAfter(s))}}}}});var tT=M((lre,eT)=>{b();v();"use strict";var N$=/falls?\s?through/iu;function M$(t,e,r,n){let s=r.getSourceCode();if(t.consequent.length===1&&t.consequent[0].type==="BlockStatement"){let a=s.getLastToken(t.consequent[0]),o=s.getCommentsBefore(a).pop();if(o&&n.test(o.value))return!0}let i=s.getCommentsBefore(e).pop();return Boolean(i&&n.test(i.value))}function j$(t){return t.reachable}function q$(t,e){return e.loc.start.line>t.loc.end.line+1}eT.exports={meta:{type:"problem",docs:{description:"disallow fallthrough of `case` statements",recommended:!0,url:"https://eslint.org/docs/rules/no-fallthrough"},schema:[{type:"object",properties:{commentPattern:{type:"string",default:""}},additionalProperties:!1}],messages:{case:"Expected a 'break' statement before 'case'.",default:"Expected a 'break' statement before 'default'."}},create(t){let e=t.options[0]||{},r=null,n=t.getSourceCode(),s=null,i=null;return e.commentPattern?i=new RegExp(e.commentPattern,"u"):i=N$,{onCodePathStart(a){r=a},onCodePathEnd(){r=r.upper},SwitchCase(a){s&&!M$(s,a,t,i)&&t.report({messageId:a.test?"case":"default",node:a}),s=null},"SwitchCase:exit"(a){let o=n.getTokenAfter(a);r.currentSegments.some(j$)&&(a.consequent.length>0||q$(a,o))&&a.parent.cases[a.parent.cases.length-1]!==a&&(s=a)}}}}});var sT=M((ure,rT)=>{b();v();"use strict";var V$=pe();rT.exports={meta:{type:"suggestion",docs:{description:"disallow leading or trailing decimal points in numeric literals",recommended:!1,url:"https://eslint.org/docs/rules/no-floating-decimal"},schema:[],fixable:"code",messages:{leading:"A leading decimal point can be confused with a dot.",trailing:"A trailing decimal point can be confused with a dot."}},create(t){let e=t.getSourceCode();return{Literal(r){typeof r.value=="number"&&(r.raw.startsWith(".")&&t.report({node:r,messageId:"leading",fix(n){let s=e.getTokenBefore(r),i=s&&s.range[1]===r.range[0]&&!V$.canTokensBeAdjacent(s,`0${r.raw}`);return n.insertTextBefore(r,i?" 0":"0")}}),r.raw.indexOf(".")===r.raw.length-1&&t.report({node:r,messageId:"trailing",fix:n=>n.insertTextAfter(r,"0")}))}}}}});var iT=M((cre,nT)=>{b();v();"use strict";var U$=pe();nT.exports={meta:{type:"problem",docs:{description:"disallow reassigning `function` declarations",recommended:!0,url:"https://eslint.org/docs/rules/no-func-assign"},schema:[],messages:{isAFunction:"'{{name}}' is a function."}},create(t){function e(s){U$.getModifyingReferences(s).forEach(i=>{t.report({node:i.identifier,messageId:"isAFunction",data:{name:i.identifier.name}})})}function r(s){s.defs[0].type==="FunctionName"&&e(s.references)}function n(s){t.getDeclaredVariables(s).forEach(r)}return{FunctionDeclaration:n,FunctionExpression:n}}}});var oT=M((fre,aT)=>{b();v();"use strict";aT.exports={meta:{type:"suggestion",docs:{description:"disallow assignments to native objects or read-only global variables",recommended:!0,url:"https://eslint.org/docs/rules/no-global-assign"},schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{globalShouldNotBeModified:"Read-only global '{{name}}' should not be modified."}},create(t){let e=t.options[0],r=e&&e.exceptions||[];function n(i,a,o){let l=i.identifier;i.init===!1&&i.isWrite()&&(a===0||o[a-1].identifier!==l)&&t.report({node:l,messageId:"globalShouldNotBeModified",data:{name:l.name}})}function s(i){i.writeable===!1&&r.indexOf(i.name)===-1&&i.references.forEach(n)}return{Program(){t.getScope().variables.forEach(s)}}}}});var cT=M((pre,lT)=>{b();v();"use strict";var va=pe(),$$=/^(?:i|lastI)ndexOf$/u,W$=["~","!!","+","*"];function G$(t){return{boolean:"boolean"in t?t.boolean:!0,number:"number"in t?t.number:!0,string:"string"in t?t.string:!0,disallowTemplateShorthand:"disallowTemplateShorthand"in t?t.disallowTemplateShorthand:!1,allow:t.allow||[]}}function z$(t){return t.operator==="!"&&t.argument.type==="UnaryExpression"&&t.argument.operator==="!"}function H$(t){if(t.operator!=="~")return!1;let e=va.skipChainExpression(t.argument);return e.type==="CallExpression"&&va.isSpecificMemberAccess(e.callee,null,$$)}function K$(t){return t.operator==="*"&&(t.left.type==="Literal"&&t.left.value===1||t.right.type==="Literal"&&t.right.value===1)}function bp(t){return t.type==="Literal"&&typeof t.value=="number"||t.type==="CallExpression"&&(t.callee.name==="Number"||t.callee.name==="parseInt"||t.callee.name==="parseFloat")}function Y$(t){let e=t.left,r=t.right;return r.type!=="BinaryExpression"&&!bp(r)?r:e.type!=="BinaryExpression"&&!bp(e)?e:null}function vp(t){return va.isStringLiteral(t)||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="String"}function Gl(t){return va.isStringLiteral(t)&&(t.value===""||t.type==="TemplateLiteral"&&t.quasis.length===1&&t.quasis[0].value.cooked==="")}function J$(t){return t.operator==="+"&&(Gl(t.left)&&!vp(t.right)||Gl(t.right)&&!vp(t.left))}function Q$(t){return t.operator==="+="&&Gl(t.right)}function uT(t){return Gl(t.left)?t.right:t.left}lT.exports={meta:{type:"suggestion",docs:{description:"disallow shorthand type conversions",recommended:!1,url:"https://eslint.org/docs/rules/no-implicit-coercion"},fixable:"code",schema:[{type:"object",properties:{boolean:{type:"boolean",default:!0},number:{type:"boolean",default:!0},string:{type:"boolean",default:!0},disallowTemplateShorthand:{type:"boolean",default:!1},allow:{type:"array",items:{enum:W$},uniqueItems:!0}},additionalProperties:!1}],messages:{useRecommendation:"use `{{recommendation}}` instead."}},create(t){let e=G$(t.options[0]||{}),r=t.getSourceCode();function n(s,i,a){t.report({node:s,messageId:"useRecommendation",data:{recommendation:i},fix(o){if(!a)return null;let l=r.getTokenBefore(s);return l&&l.range[1]===s.range[0]&&!va.canTokensBeAdjacent(l,i)?o.replaceText(s,` ${i}`):o.replaceText(s,i)}})}return{UnaryExpression(s){let i;if(i=e.allow.indexOf("!!")>=0,!i&&e.boolean&&z$(s)){let a=`Boolean(${r.getText(s.argument.argument)})`;n(s,a,!0)}if(i=e.allow.indexOf("~")>=0,!i&&e.boolean&&H$(s)){let a=s.argument.type==="ChainExpression"?">= 0":"!== -1",o=`${r.getText(s.argument)} ${a}`;n(s,o,!1)}if(i=e.allow.indexOf("+")>=0,!i&&e.number&&s.operator==="+"&&!bp(s.argument)){let a=`Number(${r.getText(s.argument)})`;n(s,a,!0)}},"BinaryExpression:exit"(s){let i;i=e.allow.indexOf("*")>=0;let a=!i&&e.number&&K$(s)&&Y$(s);if(a){let o=`Number(${r.getText(a)})`;n(s,o,!0)}if(i=e.allow.indexOf("+")>=0,!i&&e.string&&J$(s)){let o=`String(${r.getText(uT(s))})`;n(s,o,!0)}},AssignmentExpression(s){if(!(e.allow.indexOf("+")>=0)&&e.string&&Q$(s)){let a=r.getText(uT(s)),o=`${a} = String(${a})`;n(s,o,!0)}},TemplateLiteral(s){if(!e.disallowTemplateShorthand||s.parent.type==="TaggedTemplateExpression"||s.expressions.length!==1||s.quasis[0].value.cooked!==""||s.quasis[1].value.cooked!==""||vp(s.expressions[0]))return;let a=`String(${r.getText(s.expressions[0])})`;n(s,a,!0)}}}}});var pT=M((hre,fT)=>{b();v();"use strict";fT.exports={meta:{type:"suggestion",docs:{description:"disallow declarations in the global scope",recommended:!1,url:"https://eslint.org/docs/rules/no-implicit-globals"},schema:[{type:"object",properties:{lexicalBindings:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{globalNonLexicalBinding:"Unexpected {{kind}} declaration in the global scope, wrap in an IIFE for a local variable, assign as global property for a global variable.",globalLexicalBinding:"Unexpected {{kind}} declaration in the global scope, wrap in a block or in an IIFE.",globalVariableLeak:"Global variable leak, declare the variable if it is intended to be local.",assignmentToReadonlyGlobal:"Unexpected assignment to read-only global variable.",redeclarationOfReadonlyGlobal:"Unexpected redeclaration of read-only global variable."}},create(t){let e=t.options[0]&&t.options[0].lexicalBindings===!0;function r(n,s,i){t.report({node:n,messageId:s,data:{kind:i}})}return{Program(){let n=t.getScope();n.variables.forEach(s=>{let i=s.writeable===!1;s.writeable!==!0&&s.defs.forEach(o=>{let l=o.node;(o.type==="FunctionName"||o.type==="Variable"&&o.parent.kind==="var")&&(i?r(l,"redeclarationOfReadonlyGlobal"):r(l,"globalNonLexicalBinding",o.type==="FunctionName"?"function":`'${o.parent.kind}'`)),e&&(o.type==="ClassName"||o.type==="Variable"&&(o.parent.kind==="let"||o.parent.kind==="const"))&&(i?r(l,"redeclarationOfReadonlyGlobal"):r(l,"globalLexicalBinding",o.type==="ClassName"?"class":`'${o.parent.kind}'`))})}),n.implicit.variables.forEach(s=>{let i=n.set.get(s.name),a;if(i){if(i.writeable)return;a="assignmentToReadonlyGlobal"}else a="globalVariableLeak";s.defs.forEach(o=>{r(o.node,a)})})}}}}});var mT=M((mre,hT)=>{b();v();"use strict";var zl=pe(),{getStaticValue:X$}=Wt();hT.exports={meta:{type:"suggestion",docs:{description:"disallow the use of `eval()`-like methods",recommended:!1,url:"https://eslint.org/docs/rules/no-implied-eval"},schema:[],messages:{impliedEval:"Implied eval. Consider passing a function instead of a string."}},create(t){let e=Object.freeze(["global","window","globalThis"]),r=/^(?:set(?:Interval|Timeout)|execScript)$/u;function n(a){return a.type==="Literal"&&typeof a.value=="string"||a.type==="TemplateLiteral"?!0:a.type==="BinaryExpression"&&a.operator==="+"?n(a.left)||n(a.right):!1}function s(a){let[o]=a.arguments;if(o){let l=X$(o,t.getScope());(l&&typeof l.value=="string"||n(o))&&t.report({node:a,messageId:"impliedEval"})}}function i(a){let{references:o,name:l}=a;o.forEach(u=>{let p=u.identifier.parent;for(;zl.isSpecificMemberAccess(p,null,l);)p=p.parent;if(zl.isSpecificMemberAccess(p,null,r)){let h=p.parent.type==="ChainExpression"?p.parent:p,f=h.parent;f.type==="CallExpression"&&f.callee===h&&s(f)}})}return{CallExpression(a){zl.isSpecificId(a.callee,r)&&s(a)},"Program:exit"(){let a=t.getScope();e.map(o=>zl.getVariableByName(a,o)).filter(o=>!!o&&o.defs.length===0).forEach(i)}}}}});var xT=M((dre,dT)=>{b();v();"use strict";var{findVariable:Z$}=Wt(),Cp=pe(),gT={Object:/^(?:assign|definePropert(?:y|ies)|freeze|setPrototypeOf)$/u,Reflect:/^(?:(?:define|delete)Property|set(?:PrototypeOf)?)$/u};function eW(t){let{parent:e}=t;return e.type==="AssignmentExpression"&&e.left===t||e.type==="ArrayPattern"||e.type==="Property"&&e.value===t&&e.parent.type==="ObjectPattern"||e.type==="RestElement"||e.type==="AssignmentPattern"&&e.left===t}function tW(t){let e=t.parent.type==="ChainExpression"?t.parent:t,{parent:r}=e;return r.type==="UpdateExpression"&&r.argument===e||r.type==="UnaryExpression"&&r.operator==="delete"&&r.argument===e}function rW(t){let{parent:e}=t;return e.type==="ForInStatement"&&e.left===t||e.type==="ForOfStatement"&&e.left===t}function sW(t,e){let{parent:r}=t;if(r.type!=="CallExpression"||r.arguments[0]!==t)return!1;let n=Cp.skipChainExpression(r.callee);if(!Cp.isSpecificMemberAccess(n,"Object",gT.Object)&&!Cp.isSpecificMemberAccess(n,"Reflect",gT.Reflect))return!1;let s=Z$(e,n.object);return s!==null&&s.scope.type==="global"}function nW(t,e){let{parent:r}=t;return r.type==="MemberExpression"&&r.object===t&&(eW(r)||tW(r)||rW(r))||sW(t,e)}function yT(t){let e=t.parent;for(;e&&e.type!=="AssignmentExpression"&&e.type!=="UpdateExpression"&&e.type!=="UnaryExpression"&&e.type!=="CallExpression"&&e.type!=="ForInStatement"&&e.type!=="ForOfStatement";)e=e.parent;return e||t}dT.exports={meta:{type:"problem",docs:{description:"disallow assigning to imported bindings",recommended:!0,url:"https://eslint.org/docs/rules/no-import-assign"},schema:[],messages:{readonly:"'{{name}}' is read-only.",readonlyMember:"The members of '{{name}}' are read-only."}},create(t){return{ImportDeclaration(e){let r=t.getScope();for(let n of t.getDeclaredVariables(e)){let s=n.defs.some(a=>a.node.type==="ImportNamespaceSpecifier"),i=null;for(let a of n.references){let o=a.identifier;o!==i&&(i=o,a.isWrite()?t.report({node:yT(o),messageId:"readonly",data:{name:o.name}}):s&&nW(o,r)&&t.report({node:yT(o),messageId:"readonlyMember",data:{name:o.name}}))}}}}}}});var bT=M((gre,ET)=>{b();v();"use strict";var iW=pe();ET.exports={meta:{type:"suggestion",docs:{description:"disallow inline comments after code",recommended:!1,url:"https://eslint.org/docs/rules/no-inline-comments"},schema:[{type:"object",properties:{ignorePattern:{type:"string"}},additionalProperties:!1}],messages:{unexpectedInlineComment:"Unexpected comment inline with code."}},create(t){let e=t.getSourceCode(),r=t.options[0],n;r&&r.ignorePattern&&(n=new RegExp(r.ignorePattern,"u"));function s(i){let a=String(e.lines[i.loc.start.line-1]),o=String(e.lines[i.loc.end.line-1]),l=a.slice(0,i.loc.start.column).trim(),u=o.slice(i.loc.end.column).trim(),c=!l,p=!u;if(!(c&&p)&&!(n&&n.test(i.value))){if((c||l==="{")&&(p||u==="}")){let h=e.getNodeByRangeIndex(i.range[0]);if(h&&h.type==="JSXEmptyExpression")return}iW.isDirectiveComment(i)||t.report({node:i,messageId:"unexpectedInlineComment"})}}return{Program(){e.getAllComments().filter(i=>i.type!=="Shebang").forEach(s)}}}}});var CT=M((yre,vT)=>{b();v();"use strict";var aW=pe(),oW=new Set(["Program","StaticBlock","ExportNamedDeclaration","ExportDefaultDeclaration"]),lW=new Set(["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]);function uW(t){let{parent:e}=t;for(;e;){if(e.type==="StaticBlock")return"class static block body";if(aW.isFunction(e))return"function body";({parent:e}=e)}return"program"}vT.exports={meta:{type:"problem",docs:{description:"disallow variable or `function` declarations in nested blocks",recommended:!0,url:"https://eslint.org/docs/rules/no-inner-declarations"},schema:[{enum:["functions","both"]}],messages:{moveDeclToRoot:"Move {{type}} declaration to {{body}} root."}},create(t){function e(r){let n=r.parent;n.type==="BlockStatement"&&lW.has(n.parent.type)||oW.has(n.type)||t.report({node:r,messageId:"moveDeclToRoot",data:{type:r.type==="FunctionDeclaration"?"function":"variable",body:uW(r)}})}return{FunctionDeclaration:e,VariableDeclaration(r){t.options[0]==="both"&&r.kind==="var"&&e(r)}}}}});var kT=M((xre,ST)=>{b();v();"use strict";var cW=Ks().RegExpValidator,AT=new cW,fW=/[dgimsuy]/gu,wT=void 0;ST.exports={meta:{type:"problem",docs:{description:"disallow invalid regular expression strings in `RegExp` constructors",recommended:!0,url:"https://eslint.org/docs/rules/no-invalid-regexp"},schema:[{type:"object",properties:{allowConstructorFlags:{type:"array",items:{type:"string"}}},additionalProperties:!1}],messages:{regexMessage:"{{message}}."}},create(t){let e=t.options[0],r=null;if(e&&e.allowConstructorFlags){let o=e.allowConstructorFlags.join("").replace(fW,"");o&&(r=new RegExp(`[${o}]`,"giu"))}function n(o){return o&&o.type==="Literal"&&typeof o.value=="string"}function s(o){return o.arguments.length<2?"":n(o.arguments[1])?o.arguments[1].value:null}function i(o,l){try{return AT.validatePattern(o,wT,wT,l),null}catch(u){return u.message}}function a(o){try{return AT.validateFlags(o),null}catch{return`Invalid flags supplied to RegExp constructor '${o}'`}}return{"CallExpression, NewExpression"(o){if(o.callee.type!=="Identifier"||o.callee.name!=="RegExp"||!n(o.arguments[0]))return;let l=o.arguments[0].value,u=s(o);u&&r&&(u=u.replace(r,""));let c=u&&a(u)||(u===null?i(l,!0)&&i(l,!1):i(l,u.includes("u")));c&&t.report({node:o,messageId:"regexMessage",data:{message:c}})}}}}});var FT=M((Ere,DT)=>{b();v();"use strict";var pW=pe();function TT(t,e){return t.origin==="function"&&e.type==="ArrowFunctionExpression"}DT.exports={meta:{type:"suggestion",docs:{description:"disallow `this` keywords outside of classes or class-like objects",recommended:!1,url:"https://eslint.org/docs/rules/no-invalid-this"},schema:[{type:"object",properties:{capIsConstructor:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedThis:"Unexpected 'this'."}},create(t){let r=(t.options[0]||{}).capIsConstructor!==!1,n=[],s=t.getSourceCode();return n.getCurrent=function(){let i=this[this.length-1];return i.init||(i.init=!0,i.valid=!pW.isDefaultThisBinding(i.node,s,{capIsConstructor:r})),i},{onCodePathStart(i,a){if(!TT(i,a)){if(i.origin==="program"){let o=t.getScope(),l=t.parserOptions.ecmaFeatures||{};n.push({init:!0,node:a,valid:!(o.isStrict||a.sourceType==="module"||l.globalReturn&&o.childScopes[0].isStrict)});return}n.push({init:!t.getScope().isStrict,node:a,valid:!0})}},onCodePathEnd(i,a){TT(i,a)||n.pop()},ThisExpression(i){let a=n.getCurrent();a&&!a.valid&&t.report({node:i,messageId:"unexpectedThis"})}}}}});var IT=M((bre,PT)=>{b();v();"use strict";var hW=pe(),Hl=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000\u2028\u2029]/u,mW=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000]+/mgu,dW=/[\u2028\u2029]/mgu,gW=hW.createGlobalLinebreakMatcher();PT.exports={meta:{type:"problem",docs:{description:"disallow irregular whitespace",recommended:!0,url:"https://eslint.org/docs/rules/no-irregular-whitespace"},schema:[{type:"object",properties:{skipComments:{type:"boolean",default:!1},skipStrings:{type:"boolean",default:!0},skipTemplates:{type:"boolean",default:!1},skipRegExps:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{noIrregularWhitespace:"Irregular whitespace not allowed."}},create(t){let e=[],r=t.options[0]||{},n=!!r.skipComments,s=r.skipStrings!==!1,i=!!r.skipRegExps,a=!!r.skipTemplates,o=t.getSourceCode(),l=o.getAllComments();function u(S){let T=S.loc.start,I=S.loc.end;e=e.filter(({loc:{start:y}})=>y.line<T.line||y.line===T.line&&y.column<T.column||y.line===I.line&&y.column>=I.column||y.line>I.line)}function c(S){let T=s&&typeof S.value=="string",I=i&&Boolean(S.regex);(T||I)&&Hl.test(S.raw)&&u(S)}function p(S){typeof S.value.raw=="string"&&Hl.test(S.value.raw)&&u(S)}function h(S){Hl.test(S.value)&&u(S)}function f(S){o.lines.forEach((I,y)=>{let w=y+1,D;for(;(D=mW.exec(I))!==null;)e.push({node:S,messageId:"noIrregularWhitespace",loc:{start:{line:w,column:D.index},end:{line:w,column:D.index+D[0].length}}})})}function m(S){let T=o.getText(),I=o.lines,y=T.match(gW),w=-1,D;for(;(D=dW.exec(T))!==null;){let R=y.indexOf(D[0],w+1)||0;e.push({node:S,messageId:"noIrregularWhitespace",loc:{start:{line:R+1,column:I[R].length},end:{line:R+2,column:0}}}),w=R}}function x(){}let E={};return Hl.test(o.getText())?(E.Program=function(S){f(S),m(S)},E.Identifier=c,E.Literal=c,E.TemplateElement=a?p:x,E["Program:exit"]=function(){n&&l.forEach(h),e.forEach(S=>t.report(S))}):E.Program=x,E}}});var BT=M((vre,_T)=>{b();v();"use strict";var{getStaticPropertyName:yW}=pe();_T.exports={meta:{type:"suggestion",docs:{description:"disallow the use of the `__iterator__` property",recommended:!1,url:"https://eslint.org/docs/rules/no-iterator"},schema:[],messages:{noIterator:"Reserved name '__iterator__'."}},create(t){return{MemberExpression(e){yW(e)==="__iterator__"&&t.report({node:e,messageId:"noIterator"})}}}}});var RT=M((Cre,OT)=>{b();v();"use strict";var xW=pe();OT.exports={meta:{type:"suggestion",docs:{description:"disallow labels that share a name with a variable",recommended:!1,url:"https://eslint.org/docs/rules/no-label-var"},schema:[],messages:{identifierClashWithLabel:"Found identifier with same name as label."}},create(t){function e(r,n){return xW.getVariableByName(r,n)!==null}return{LabeledStatement(r){let n=t.getScope();e(n,r.label.name)&&t.report({node:r,messageId:"identifierClashWithLabel"})}}}}});var NT=M((Sre,LT)=>{b();v();"use strict";var EW=pe();LT.exports={meta:{type:"suggestion",docs:{description:"disallow labeled statements",recommended:!1,url:"https://eslint.org/docs/rules/no-labels"},schema:[{type:"object",properties:{allowLoop:{type:"boolean",default:!1},allowSwitch:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedLabel:"Unexpected labeled statement.",unexpectedLabelInBreak:"Unexpected label in break statement.",unexpectedLabelInContinue:"Unexpected label in continue statement."}},create(t){let e=t.options[0],r=e&&e.allowLoop,n=e&&e.allowSwitch,s=null;function i(l){return EW.isLoop(l)?"loop":l.type==="SwitchStatement"?"switch":"other"}function a(l){switch(l){case"loop":return r;case"switch":return n;default:return!1}}function o(l){let u=s;for(;u;){if(u.label===l)return u.kind;u=u.upper}return"other"}return{LabeledStatement(l){s={label:l.label.name,kind:i(l.body),upper:s}},"LabeledStatement:exit"(l){a(s.kind)||t.report({node:l,messageId:"unexpectedLabel"}),s=s.upper},BreakStatement(l){l.label&&!a(o(l.label.name))&&t.report({node:l,messageId:"unexpectedLabelInBreak"})},ContinueStatement(l){l.label&&!a(o(l.label.name))&&t.report({node:l,messageId:"unexpectedLabelInContinue"})}}}}});var jT=M((Are,MT)=>{b();v();"use strict";MT.exports={meta:{type:"suggestion",docs:{description:"disallow unnecessary nested blocks",recommended:!1,url:"https://eslint.org/docs/rules/no-lone-blocks"},schema:[],messages:{redundantBlock:"Block is redundant.",redundantNestedBlock:"Nested block is redundant."}},create(t){let e=[],r;function n(a){let o=a.parent.type==="BlockStatement"||a.parent.type==="StaticBlock"?"redundantNestedBlock":"redundantBlock";t.report({node:a,messageId:o})}function s(a){return a.parent.type==="BlockStatement"||a.parent.type==="StaticBlock"||a.parent.type==="Program"||a.parent.type==="SwitchCase"&&!(a.parent.consequent[0]===a&&a.parent.consequent.length===1)}function i(){if(e.length===0)return;let a=t.getAncestors().pop();e[e.length-1]===a&&e.pop()}return r={BlockStatement(a){s(a)&&n(a)}},t.parserOptions.ecmaVersion>=6&&(r={BlockStatement(a){s(a)&&e.push(a)},"BlockStatement:exit"(a){e.length>0&&e[e.length-1]===a?(e.pop(),n(a)):(a.parent.type==="BlockStatement"||a.parent.type==="StaticBlock")&&a.parent.body.length===1&&n(a)}},r.VariableDeclaration=function(a){(a.kind==="let"||a.kind==="const")&&i()},r.FunctionDeclaration=function(){t.getScope().isStrict&&i()},r.ClassDeclaration=i),r}}});var VT=M((wre,qT)=>{b();v();"use strict";qT.exports={meta:{type:"suggestion",docs:{description:"disallow `if` statements as the only statement in `else` blocks",recommended:!1,url:"https://eslint.org/docs/rules/no-lonely-if"},schema:[],fixable:"code",messages:{unexpectedLonelyIf:"Unexpected if as the only statement in an else block."}},create(t){let e=t.getSourceCode();return{IfStatement(r){let n=t.getAncestors(),s=n.pop(),i=n.pop();s&&s.type==="BlockStatement"&&s.body.length===1&&i&&i.type==="IfStatement"&&s===i.alternate&&t.report({node:r,messageId:"unexpectedLonelyIf",fix(a){let o=e.getFirstToken(s),l=e.getLastToken(s),u=e.getTokenBefore(o),c=e.getTokenAfter(l),p=e.getLastToken(r.consequent),h=e.getText();return h.slice(o.range[1],r.range[0]).trim()||h.slice(r.range[1],l.range[0]).trim()||r.consequent.type!=="BlockStatement"&&p.value!==";"&&c&&(r.consequent.loc.end.line===c.loc.start.line||/^[([/+`-]/u.test(c.value)||p.value==="++"||p.value==="--")?null:a.replaceTextRange([o.range[0],l.range[1]],(u.range[1]===o.range[0]?" ":"")+e.getText(r))}})}}}}});var WT=M((kre,UT)=>{b();v();"use strict";function $T(t){for(let e=t;e.parent;e=e.parent){let r=e.parent;switch(r.type){case"WhileStatement":case"DoWhileStatement":return r;case"ForStatement":if(r.init!==e)return r;break;case"ForInStatement":case"ForOfStatement":if(r.right!==e)return r;break;case"ArrowFunctionExpression":case"FunctionExpression":case"FunctionDeclaration":return null;default:break}}return null}function bW(t,e){let r=e?e.range[1]:0,n=t,s=t;for(;s&&s.range[0]>=r;)n=s,s=$T(s);return n}function vW(t,e){let r=e.resolved,n=r&&r.defs[0],s=n&&n.parent,i=s&&s.type==="VariableDeclaration"?s.kind:"";if(i==="const"||i==="let"&&s.range[0]>t.range[0]&&s.range[1]<t.range[1])return!0;let a=bW(t,i==="let"?s:null).range[0];function o(l){let u=l.identifier;return!l.isWrite()||r.scope.variableScope===l.from.variableScope&&u.range[0]<a}return Boolean(r)&&r.references.every(o)}UT.exports={meta:{type:"suggestion",docs:{description:"disallow function declarations that contain unsafe references inside loop statements",recommended:!1,url:"https://eslint.org/docs/rules/no-loop-func"},schema:[],messages:{unsafeRefs:"Function declared in a loop contains unsafe references to variable(s) {{ varNames }}."}},create(t){function e(r){let n=$T(r);if(!n)return;let i=t.getScope().through.filter(a=>!vW(n,a)).map(a=>a.identifier.name);i.length>0&&t.report({node:r,messageId:"unsafeRefs",data:{varNames:`'${i.join("', '")}'`}})}return{ArrowFunctionExpression:e,FunctionExpression:e,FunctionDeclaration:e}}}});var zT=M((Dre,GT)=>{b();v();"use strict";GT.exports={meta:{type:"problem",docs:{description:"disallow literal numbers that lose precision",recommended:!0,url:"https://eslint.org/docs/rules/no-loss-of-precision"},schema:[],messages:{noLossOfPrecision:"This number literal will lose precision at runtime."}},create(t){function e(f){return typeof f.value=="number"}function r(f){return f.raw.replace(/_/gu,"")}function n(f){return["0x","0X","0b","0B","0o","0O"].every(x=>!f.raw.startsWith(x))&&!/^0[0-7]+$/u.test(f.raw)}function s(f){let m=r(f).toUpperCase(),x=0;return m.startsWith("0B")?x=2:m.startsWith("0X")?x=16:x=8,!m.endsWith(f.value.toString(x).toUpperCase())}function i(f){return`${f.slice(0,1)}.${f.slice(1)}`}function a(f){return f.replace(/^0*/u,"")}function o(f){return f.replace(/0*$/u,"")}function l(f){let m=o(a(f));return{magnitude:f.startsWith("0")?f.length-2:f.length-1,coefficient:i(m)}}function u(f){let m=a(f);if(m.startsWith(".")){let x=m.split(".").pop(),E=a(x);return{magnitude:E.length-x.length-1,coefficient:i(E)}}return{magnitude:m.indexOf(".")-1,coefficient:i(m.replace(".",""))}}function c(f){let m=f.replace("E","e").split("e"),x=m[0],E=f.includes(".")?u(x):l(x),S=E.coefficient,T=m.length>1?parseInt(m[1],10)+E.magnitude:E.magnitude;return`${S}e${T}`}function p(f){let m=c(r(f)),x=m.split("e")[0].replace(".","").length;if(x>100)return!0;let E=f.value.toPrecision(x),S=c(E);return m!==S}function h(f){return n(f)?p(f):s(f)}return{Literal(f){f.value&&e(f)&&h(f)&&t.report({messageId:"noLossOfPrecision",node:f})}}}}});var KT=M((Tre,HT)=>{b();v();"use strict";var Sp=pe(),CW=2**32-1;function SW(t){return typeof t=="string"?BigInt(t.slice(0,-1)):t}HT.exports={meta:{type:"suggestion",docs:{description:"disallow magic numbers",recommended:!1,url:"https://eslint.org/docs/rules/no-magic-numbers"},schema:[{type:"object",properties:{detectObjects:{type:"boolean",default:!1},enforceConst:{type:"boolean",default:!1},ignore:{type:"array",items:{anyOf:[{type:"number"},{type:"string",pattern:"^[+-]?(?:0|[1-9][0-9]*)n$"}]},uniqueItems:!0},ignoreArrayIndexes:{type:"boolean",default:!1},ignoreDefaultValues:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{useConst:"Number constants declarations must use 'const'.",noMagic:"No magic number: {{raw}}."}},create(t){let e=t.options[0]||{},r=!!e.detectObjects,n=!!e.enforceConst,s=(e.ignore||[]).map(SW),i=!!e.ignoreArrayIndexes,a=!!e.ignoreDefaultValues,o=r?[]:["ObjectExpression","Property","AssignmentExpression"];function l(f){return s.indexOf(f)!==-1}function u(f){let m=f.parent;return m.type==="AssignmentPattern"&&m.right===f}function c(f){let m=f.parent;return m.type==="CallExpression"&&f===m.arguments[1]&&(Sp.isSpecificId(m.callee,"parseInt")||Sp.isSpecificMemberAccess(m.callee,"Number","parseInt"))}function p(f){return f.parent.type.indexOf("JSX")===0}function h(f,m){let x=f.parent;return x.type==="MemberExpression"&&x.property===f&&(Number.isInteger(m)||typeof m=="bigint")&&m>=0&&m<CW}return{Literal(f){if(!Sp.isNumericLiteral(f))return;let m,x,E;f.parent.type==="UnaryExpression"&&f.parent.operator==="-"?(m=f.parent,x=-f.value,E=`-${f.raw}`):(m=f,x=f.value,E=f.raw);let S=m.parent;l(x)||a&&u(m)||c(m)||p(m)||i&&h(m,x)||(S.type==="VariableDeclarator"?n&&S.parent.kind!=="const"&&t.report({node:m,messageId:"useConst"}):(o.indexOf(S.type)===-1||S.type==="AssignmentExpression"&&S.left.type==="Identifier")&&t.report({node:m,messageId:"noMagic",data:{raw:E}}))}}}}});var JT=M((Fre,YT)=>{b();v();"use strict";YT.exports=function(e){return/^[\p{Mc}\p{Me}\p{Mn}]$/u.test(String.fromCodePoint(e))}});var XT=M((Pre,QT)=>{b();v();"use strict";QT.exports=function(e){return e>=127995&&e<=127999}});var eF=M((Ire,ZT)=>{b();v();"use strict";ZT.exports=function(e){return e>=127462&&e<=127487}});var rF=M((_re,tF)=>{b();v();"use strict";tF.exports=function(e,r){return e>=55296&&e<56320&&r>=56320&&r<57344}});var nF=M((Bre,sF)=>{b();v();"use strict";sF.exports={isCombiningCharacter:JT(),isEmojiModifier:XT(),isRegionalIndicatorSymbol:eF(),isSurrogatePair:rF()}});var pF=M((Ore,iF)=>{b();v();"use strict";var{CALL:AW,CONSTRUCT:wW,ReferenceTracker:kW,getStringIfConstant:aF}=Wt(),{RegExpParser:DW,visitRegExpAST:TW}=Ks(),{isCombiningCharacter:oF,isEmojiModifier:lF,isRegionalIndicatorSymbol:uF,isSurrogatePair:FW}=nF();function*PW(t){let e=[];for(let r of t)switch(r.type){case"Character":e.push(r.value);break;case"CharacterClassRange":e.push(r.min.value),yield e,e=[r.max.value];break;case"CharacterSet":e.length>0&&(yield e,e=[]);break}e.length>0&&(yield e)}var cF={surrogatePairWithoutUFlag(t){return t.some((e,r)=>r!==0&&FW(t[r-1],e))},combiningClass(t){return t.some((e,r)=>r!==0&&oF(e)&&!oF(t[r-1]))},emojiModifier(t){return t.some((e,r)=>r!==0&&lF(e)&&!lF(t[r-1]))},regionalIndicatorSymbol(t){return t.some((e,r)=>r!==0&&uF(e)&&uF(t[r-1]))},zwj(t){let e=t.length-1;return t.some((r,n)=>n!==0&&n!==e&&r===8205&&t[n-1]!==8205&&t[n+1]!==8205)}},fF=Object.keys(cF);iF.exports={meta:{type:"problem",docs:{description:"disallow characters which are made with multiple code points in character class syntax",recommended:!0,url:"https://eslint.org/docs/rules/no-misleading-character-class"},schema:[],messages:{surrogatePairWithoutUFlag:"Unexpected surrogate pair in character class. Use 'u' flag.",combiningClass:"Unexpected combined character in character class.",emojiModifier:"Unexpected modified Emoji in character class.",regionalIndicatorSymbol:"Unexpected national flag in character class.",zwj:"Unexpected joined character sequence in character class."}},create(t){let e=new DW;function r(n,s,i){let a={surrogatePairWithoutUFlag:!1,combiningClass:!1,variationSelector:!1,emojiModifier:!1,regionalIndicatorSymbol:!1,zwj:!1},o;try{o=e.parsePattern(s,0,s.length,i.includes("u"))}catch{return}TW(o,{onCharacterClassEnter(l){for(let u of PW(l.elements))for(let c of fF)a[c]=a[c]||cF[c](u)}});for(let l of fF)a[l]&&t.report({node:n,messageId:l})}return{"Literal[regex]"(n){r(n,n.regex.pattern,n.regex.flags)},Program(){let n=t.getScope(),s=new kW(n);for(let{node:i}of s.iterateGlobalReferences({RegExp:{[AW]:!0,[wW]:!0}})){let[a,o]=i.arguments,l=aF(a,n),u=aF(o,n);typeof l=="string"&&r(i,l,u||"")}}}}}});var EF=M((Rre,hF)=>{b();v();"use strict";var Kl=pe(),mF=["+","-","*","/","%","**"],dF=["&","|","^","~","<<",">>",">>>"],gF=["==","!=","===","!==",">",">=","<","<="],yF=["&&","||"],xF=["in","instanceof"],IW=["?:"],_W=["??"],BW=[].concat(mF,dF,gF,yF,xF,IW,_W),OW=[mF,dF,gF,yF,xF],RW=/^(?:Binary|Logical|Conditional)Expression$/u;function LW(t={}){let r=t.groups&&t.groups.length>0?t.groups:OW,n=t.allowSamePrecedence!==!1;return{groups:r,allowSamePrecedence:n}}function NW(t,e,r){return t.some(n=>n.indexOf(e)!==-1&&n.indexOf(r)!==-1)}function Ap(t){return t.type==="ConditionalExpression"?t.test:t.left}hF.exports={meta:{type:"suggestion",docs:{description:"disallow mixed binary operators",recommended:!1,url:"https://eslint.org/docs/rules/no-mixed-operators"},schema:[{type:"object",properties:{groups:{type:"array",items:{type:"array",items:{enum:BW},minItems:2,uniqueItems:!0},uniqueItems:!0},allowSamePrecedence:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedMixedOperator:"Unexpected mix of '{{leftOperator}}' and '{{rightOperator}}'. Use parentheses to clarify the intended order of operations."}},create(t){let e=t.getSourceCode(),r=LW(t.options[0]);function n(l){let u=l,c=l.parent;return!NW(r.groups,u.operator,c.type==="ConditionalExpression"?"?:":c.operator)||r.allowSamePrecedence&&Kl.getPrecedence(u)===Kl.getPrecedence(c)}function s(l){return l.operator!==l.parent.operator&&!Kl.isParenthesised(e,l)}function i(l){return e.getTokenAfter(Ap(l),Kl.isNotClosingParenToken)}function a(l){let u=l.parent,c=Ap(u)===l?l:u,p=Ap(u)!==l?l:u,h={leftOperator:c.operator||"?:",rightOperator:p.operator||"?:"};t.report({node:c,loc:i(c).loc,messageId:"unexpectedMixedOperator",data:h}),t.report({node:p,loc:i(p).loc,messageId:"unexpectedMixedOperator",data:h})}function o(l){RW.test(l.parent.type)&&s(l)&&!n(l)&&a(l)}return{BinaryExpression:o,LogicalExpression:o}}}});var vF=M((Lre,bF)=>{b();v();"use strict";bF.exports={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"disallow `require` calls to be mixed with regular variable declarations",recommended:!1,url:"https://eslint.org/docs/rules/no-mixed-requires"},schema:[{oneOf:[{type:"boolean"},{type:"object",properties:{grouping:{type:"boolean"},allowCall:{type:"boolean"}},additionalProperties:!1}]}],messages:{noMixRequire:"Do not mix 'require' and other declarations.",noMixCoreModuleFileComputed:"Do not mix core, module, file and computed requires."}},create(t){let e=t.options[0],r=!1,n=!1;typeof e=="object"?(r=e.grouping,n=e.allowCall):r=!!e;function s(){return["assert","buffer","child_process","cluster","crypto","dgram","dns","domain","events","fs","http","https","net","os","path","punycode","querystring","readline","repl","smalloc","stream","string_decoder","tls","tty","url","util","v8","vm","zlib"]}let i=s(),a="require",o="uninitialized",l="other",u="core",c="file",p="module",h="computed";function f(S){return S?S.type==="CallExpression"&&S.callee.type==="Identifier"&&S.callee.name==="require"?a:n&&S.type==="CallExpression"&&S.callee.type==="CallExpression"?f(S.callee):S.type==="MemberExpression"?f(S.object):l:o}function m(S){if(S.type==="MemberExpression")return m(S.object);if(S.arguments.length===0)return h;let T=S.arguments[0];return T.type!=="Literal"||typeof T.value!="string"?h:i.indexOf(T.value)!==-1?u:/^\.{0,2}\//u.test(T.value)?c:p}function x(S){let T={};return S.forEach(I=>{let y=f(I.init);T[y]=!0}),!!(T[a]&&(T[o]||T[l]))}function E(S){let T={};return S.forEach(I=>{f(I.init)===a&&(T[m(I.init)]=!0)}),Object.keys(T).length<=1}return{VariableDeclaration(S){x(S.declarations)?t.report({node:S,messageId:"noMixRequire"}):r&&!E(S.declarations)&&t.report({node:S,messageId:"noMixCoreModuleFileComputed"})}}}}});var SF=M((Nre,CF)=>{b();v();"use strict";CF.exports={meta:{type:"layout",docs:{description:"disallow mixed spaces and tabs for indentation",recommended:!0,url:"https://eslint.org/docs/rules/no-mixed-spaces-and-tabs"},schema:[{enum:["smart-tabs",!0,!1]}],messages:{mixedSpacesAndTabs:"Mixed spaces and tabs."}},create(t){let e=t.getSourceCode(),r;switch(t.options[0]){case!0:case"smart-tabs":r=!0;break;default:r=!1}return{"Program:exit"(n){let s=e.lines,i=e.getAllComments(),a=new Set;i.forEach(l=>{for(let u=l.loc.start.line+1;u<=l.loc.end.line;u++)a.add(u)});let o=/^(?=( +|\t+))\1(?:\t| )/u;r&&(o=/^(?=(\t*))\1(?=( +))\2\t/u),s.forEach((l,u)=>{let c=o.exec(l);if(c){let p=u+1,h={start:{line:p,column:c[0].length-2},end:{line:p,column:c[0].length}};if(!a.has(p)){let f=e.getNodeByRangeIndex(e.getIndexFromLoc(h.start));f&&["Literal","TemplateElement"].includes(f.type)||t.report({node:n,loc:h,messageId:"mixedSpacesAndTabs"})}}})}}}}});var wF=M((Mre,AF)=>{b();v();"use strict";AF.exports={meta:{type:"suggestion",docs:{description:"disallow use of chained assignment expressions",recommended:!1,url:"https://eslint.org/docs/rules/no-multi-assign"},schema:[{type:"object",properties:{ignoreNonDeclaration:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedChain:"Unexpected chained assignment."}},create(t){let e=t.options[0]||{ignoreNonDeclaration:!1},r=["VariableDeclarator > AssignmentExpression.init","PropertyDefinition > AssignmentExpression.value"];return e.ignoreNonDeclaration||r.push("AssignmentExpression > AssignmentExpression.right"),{[r](n){t.report({node:n,messageId:"unexpectedChain"})}}}}});var DF=M((jre,kF)=>{b();v();"use strict";var MW=pe();kF.exports={meta:{type:"layout",docs:{description:"disallow multiple spaces",recommended:!1,url:"https://eslint.org/docs/rules/no-multi-spaces"},fixable:"whitespace",schema:[{type:"object",properties:{exceptions:{type:"object",patternProperties:{"^([A-Z][a-z]*)+$":{type:"boolean"}},additionalProperties:!1},ignoreEOLComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{multipleSpaces:"Multiple spaces found before '{{displayValue}}'."}},create(t){let e=t.getSourceCode(),r=t.options[0]||{},n=r.ignoreEOLComments,s=Object.assign({Property:!0},r.exceptions),i=Object.keys(s).filter(o=>s[o]).length>0;function a(o){let l=o.value.split(`
|
|
93
|
+
`),u=l[0],c=`${u.slice(0,12)}...`;return l.length===1&&u.length<=12?u:c}return{Program(){e.tokensAndComments.forEach((o,l,u)=>{if(l===u.length-1)return;let c=u[l+1];if(!e.text.slice(o.range[1],c.range[0]).includes(" ")||o.loc.end.line<c.loc.start.line||n&&MW.isCommentToken(c)&&(l===u.length-2||c.loc.end.line<u[l+2].loc.start.line))return;if(i){let h=e.getNodeByRangeIndex(c.range[0]-1);if(h&&s[h.type])return}let p;c.type==="Block"?p=`/*${a(c)}*/`:c.type==="Line"?p=`//${a(c)}`:p=c.value,t.report({node:c,loc:{start:o.loc.end,end:c.loc.start},messageId:"multipleSpaces",data:{displayValue:p},fix:h=>h.replaceTextRange([o.range[1],c.range[0]]," ")})})}}}}});var FF=M((qre,TF)=>{b();v();"use strict";var jW=pe();TF.exports={meta:{type:"suggestion",docs:{description:"disallow multiline strings",recommended:!1,url:"https://eslint.org/docs/rules/no-multi-str"},schema:[],messages:{multilineString:"Multiline support is limited to browsers supporting ES5 only."}},create(t){function e(r){return r.type.indexOf("JSX")===0}return{Literal(r){jW.LINEBREAK_MATCHER.test(r.raw)&&!e(r.parent)&&t.report({node:r,messageId:"multilineString"})}}}}});var IF=M((Vre,PF)=>{b();v();"use strict";PF.exports={meta:{type:"layout",docs:{description:"disallow multiple empty lines",recommended:!1,url:"https://eslint.org/docs/rules/no-multiple-empty-lines"},fixable:"whitespace",schema:[{type:"object",properties:{max:{type:"integer",minimum:0},maxEOF:{type:"integer",minimum:0},maxBOF:{type:"integer",minimum:0}},required:["max"],additionalProperties:!1}],messages:{blankBeginningOfFile:"Too many blank lines at the beginning of file. Max of {{max}} allowed.",blankEndOfFile:"Too many blank lines at the end of file. Max of {{max}} allowed.",consecutiveBlank:"More than {{max}} blank {{pluralizedLines}} not allowed."}},create(t){let e=2,r=e,n=e;t.options.length&&(e=t.options[0].max,r=typeof t.options[0].maxEOF!="undefined"?t.options[0].maxEOF:e,n=typeof t.options[0].maxBOF!="undefined"?t.options[0].maxBOF:e);let s=t.getSourceCode(),i=s.lines[s.lines.length-1]===""?s.lines.slice(0,-1):s.lines,a=new Set;return{TemplateLiteral(o){o.quasis.forEach(l=>{for(let u=l.loc.start.line;u<l.loc.end.line;u++)a.add(u)})},"Program:exit"(o){return i.reduce((l,u,c)=>((u.trim()||a.has(c+1))&&l.push(c+1),l),[]).concat(i.length+1).reduce((l,u)=>{let c,p;return l===0?(c="blankBeginningOfFile",p=n):u===i.length+1?(c="blankEndOfFile",p=r):(c="consecutiveBlank",p=e),u-l-1>p&&t.report({node:o,loc:{start:{line:l+p+1,column:0},end:{line:u,column:0}},messageId:c,data:{max:p,pluralizedLines:p===1?"line":"lines"},fix(h){let f=s.getIndexFromLoc({line:l+1,column:0}),m=u-p,x=m<=i.length?s.getIndexFromLoc({line:m,column:0}):s.text.length;return h.removeRange([f,x])}}),u},0)}}}}});var BF=M((Ure,_F)=>{b();v();"use strict";_F.exports={meta:{type:"suggestion",docs:{description:"disallow assignments to native objects or read-only global variables",recommended:!1,url:"https://eslint.org/docs/rules/no-native-reassign"},deprecated:!0,replacedBy:["no-global-assign"],schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{nativeReassign:"Read-only global '{{name}}' should not be modified."}},create(t){let e=t.options[0],r=e&&e.exceptions||[];function n(i,a,o){let l=i.identifier;i.init===!1&&i.isWrite()&&(a===0||o[a-1].identifier!==l)&&t.report({node:l,messageId:"nativeReassign",data:l})}function s(i){i.writeable===!1&&r.indexOf(i.name)===-1&&i.references.forEach(n)}return{Program(){t.getScope().variables.forEach(s)}}}}});var RF=M(($re,OF)=>{b();v();"use strict";OF.exports={meta:{type:"suggestion",docs:{description:"disallow negated conditions",recommended:!1,url:"https://eslint.org/docs/rules/no-negated-condition"},schema:[],messages:{unexpectedNegated:"Unexpected negated condition."}},create(t){function e(i){return i.alternate&&i.alternate.type!=="IfStatement"}function r(i){return i.type==="UnaryExpression"&&i.operator==="!"}function n(i){return i.type==="BinaryExpression"&&(i.operator==="!="||i.operator==="!==")}function s(i){return r(i.test)||n(i.test)}return{IfStatement(i){!e(i)||s(i)&&t.report({node:i,messageId:"unexpectedNegated"})},ConditionalExpression(i){s(i)&&t.report({node:i,messageId:"unexpectedNegated"})}}}}});var NF=M((Wre,LF)=>{b();v();"use strict";LF.exports={meta:{type:"problem",docs:{description:"disallow negating the left operand in `in` expressions",recommended:!1,url:"https://eslint.org/docs/rules/no-negated-in-lhs"},replacedBy:["no-unsafe-negation"],deprecated:!0,schema:[],messages:{negatedLHS:"The 'in' expression's left operand is negated."}},create(t){return{BinaryExpression(e){e.operator==="in"&&e.left.type==="UnaryExpression"&&e.left.operator==="!"&&t.report({node:e,messageId:"negatedLHS"})}}}}});var jF=M((Gre,MF)=>{b();v();"use strict";MF.exports={meta:{type:"suggestion",docs:{description:"disallow nested ternary expressions",recommended:!1,url:"https://eslint.org/docs/rules/no-nested-ternary"},schema:[],messages:{noNestedTernary:"Do not nest ternary expressions."}},create(t){return{ConditionalExpression(e){(e.alternate.type==="ConditionalExpression"||e.consequent.type==="ConditionalExpression")&&t.report({node:e,messageId:"noNestedTernary"})}}}}});var VF=M((zre,qF)=>{b();v();"use strict";qF.exports={meta:{type:"suggestion",docs:{description:"disallow `new` operators outside of assignments or comparisons",recommended:!1,url:"https://eslint.org/docs/rules/no-new"},schema:[],messages:{noNewStatement:"Do not use 'new' for side effects."}},create(t){return{"ExpressionStatement > NewExpression"(e){t.report({node:e.parent,messageId:"noNewStatement"})}}}}});var $F=M((Hre,UF)=>{b();v();"use strict";var qW=pe(),VW=new Set(["apply","bind","call"]);UF.exports={meta:{type:"suggestion",docs:{description:"disallow `new` operators with the `Function` object",recommended:!1,url:"https://eslint.org/docs/rules/no-new-func"},schema:[],messages:{noFunctionConstructor:"The Function constructor is eval."}},create(t){return{"Program:exit"(){let r=t.getScope().set.get("Function");r&&r.defs.length===0&&r.references.forEach(n=>{let s=n.identifier,{parent:i}=s,a;if(i){if(s===i.callee&&(i.type==="NewExpression"||i.type==="CallExpression"))a=i;else if(i.type==="MemberExpression"&&s===i.object&&VW.has(qW.getStaticPropertyName(i))){let o=i.parent.type==="ChainExpression"?i.parent:i;o.parent.type==="CallExpression"&&o.parent.callee===o&&(a=o.parent)}}a&&t.report({node:a,messageId:"noFunctionConstructor"})})}}}}});var GF=M((Kre,WF)=>{b();v();"use strict";var UW=pe();WF.exports={meta:{type:"suggestion",docs:{description:"disallow `Object` constructors",recommended:!1,url:"https://eslint.org/docs/rules/no-new-object"},schema:[],messages:{preferLiteral:"The object literal notation {} is preferrable."}},create(t){return{NewExpression(e){let r=UW.getVariableByName(t.getScope(),e.callee.name);r&&r.identifiers.length>0||e.callee.name==="Object"&&t.report({node:e,messageId:"preferLiteral"})}}}}});var HF=M((Yre,zF)=>{b();v();"use strict";zF.exports={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"disallow `new` operators with calls to `require`",recommended:!1,url:"https://eslint.org/docs/rules/no-new-require"},schema:[],messages:{noNewRequire:"Unexpected use of new with require."}},create(t){return{NewExpression(e){e.callee.type==="Identifier"&&e.callee.name==="require"&&t.report({node:e,messageId:"noNewRequire"})}}}}});var YF=M((Jre,KF)=>{b();v();"use strict";KF.exports={meta:{type:"problem",docs:{description:"disallow `new` operators with the `Symbol` object",recommended:!0,url:"https://eslint.org/docs/rules/no-new-symbol"},schema:[],messages:{noNewSymbol:"`Symbol` cannot be called as a constructor."}},create(t){return{"Program:exit"(){let r=t.getScope().set.get("Symbol");r&&r.defs.length===0&&r.references.forEach(n=>{let s=n.identifier,i=s.parent;i&&i.type==="NewExpression"&&i.callee===s&&t.report({node:s,messageId:"noNewSymbol"})})}}}}});var QF=M((Qre,JF)=>{b();v();"use strict";JF.exports={meta:{type:"suggestion",docs:{description:"disallow `new` operators with the `String`, `Number`, and `Boolean` objects",recommended:!1,url:"https://eslint.org/docs/rules/no-new-wrappers"},schema:[],messages:{noConstructor:"Do not use {{fn}} as a constructor."}},create(t){return{NewExpression(e){["String","Number","Boolean"].indexOf(e.callee.name)>-1&&t.report({node:e,messageId:"noConstructor",data:{fn:e.callee.name}})}}}}});var eP=M((Xre,XF)=>{b();v();"use strict";var $W=/\\[89]/u;function ZF(t){return`\\u${t.charCodeAt(0).toString(16).padStart(4,"0")}`}XF.exports={meta:{type:"suggestion",docs:{description:"disallow `\\8` and `\\9` escape sequences in string literals",recommended:!0,url:"https://eslint.org/docs/rules/no-nonoctal-decimal-escape"},hasSuggestions:!0,schema:[],messages:{decimalEscape:"Don't use '{{decimalEscape}}' escape sequence.",refactor:"Replace '{{original}}' with '{{replacement}}'. This maintains the current functionality.",escapeBackslash:"Replace '{{original}}' with '{{replacement}}' to include the actual backslash character."}},create(t){let e=t.getSourceCode();function r(n,s,i){return{messageId:n,data:{original:e.getText().slice(...s),replacement:i},fix(a){return a.replaceTextRange(s,i)}}}return{Literal(n){if(typeof n.value!="string"||!$W.test(n.raw))return;let s=/(?:[^\\]|(?<previousEscape>\\.))*?(?<decimalEscape>\\[89])/suy,i;for(;i=s.exec(n.raw);){let{previousEscape:a,decimalEscape:o}=i.groups,l=n.range[0]+i.index+i[0].length,u=l-o.length,c=[u,l],p=[];a==="\\0"?p.push(r("refactor",[u-a.length,l],`${ZF("\0")}${o[1]}`),r("refactor",c,ZF(o[1]))):p.push(r("refactor",c,o[1])),p.push(r("escapeBackslash",c,`\\${o}`)),t.report({node:n,loc:{start:e.getLocFromIndex(u),end:e.getLocFromIndex(l)},messageId:"decimalEscape",data:{decimalEscape:o},suggest:p})}}}}}});var sP=M((Zre,tP)=>{b();v();"use strict";var{CALL:WW,CONSTRUCT:GW,ReferenceTracker:zW}=Wt(),HW=pe().getStaticPropertyName,KW=["Atomics","JSON","Math","Reflect"];function rP(t){return t.type==="ChainExpression"?rP(t.expression):t.type==="MemberExpression"?HW(t):t.name}tP.exports={meta:{type:"problem",docs:{description:"disallow calling global object properties as functions",recommended:!0,url:"https://eslint.org/docs/rules/no-obj-calls"},schema:[],messages:{unexpectedCall:"'{{name}}' is not a function.",unexpectedRefCall:"'{{name}}' is reference to '{{ref}}', which is not a function."}},create(t){return{Program(){let e=t.getScope(),r=new zW(e),n={};for(let s of KW)n[s]={[WW]:!0,[GW]:!0};for(let{node:s,path:i}of r.iterateGlobalReferences(n)){let a=rP(s.callee),o=i[0],l=a===o?"unexpectedCall":"unexpectedRefCall";t.report({node:s,messageId:l,data:{name:a,ref:o}})}}}}}});var iP=M((ese,nP)=>{b();v();"use strict";nP.exports={meta:{type:"suggestion",docs:{description:"disallow octal literals",recommended:!0,url:"https://eslint.org/docs/rules/no-octal"},schema:[],messages:{noOcatal:"Octal literals should not be used."}},create(t){return{Literal(e){typeof e.value=="number"&&/^0[0-9]/u.test(e.raw)&&t.report({node:e,messageId:"noOcatal"})}}}}});var oP=M((tse,aP)=>{b();v();"use strict";aP.exports={meta:{type:"suggestion",docs:{description:"disallow octal escape sequences in string literals",recommended:!1,url:"https://eslint.org/docs/rules/no-octal-escape"},schema:[],messages:{octalEscapeSequence:"Don't use octal: '\\{{sequence}}'. Use '\\u....' instead."}},create(t){return{Literal(e){if(typeof e.value!="string")return;let r=e.raw.match(/^(?:[^\\]|\\.)*?\\([0-3][0-7]{1,2}|[4-7][0-7]|0(?=[89])|[1-7])/su);r&&t.report({node:e,messageId:"octalEscapeSequence",data:{sequence:r[1]}})}}}}});var uP=M((rse,lP)=>{b();v();"use strict";var YW=/(?:Statement|Declaration|Function(?:Expression)?|Program)$/u;lP.exports={meta:{type:"suggestion",docs:{description:"disallow reassigning `function` parameters",recommended:!1,url:"https://eslint.org/docs/rules/no-param-reassign"},schema:[{oneOf:[{type:"object",properties:{props:{enum:[!1]}},additionalProperties:!1},{type:"object",properties:{props:{enum:[!0]},ignorePropertyModificationsFor:{type:"array",items:{type:"string"},uniqueItems:!0},ignorePropertyModificationsForRegex:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}]}],messages:{assignmentToFunctionParam:"Assignment to function parameter '{{name}}'.",assignmentToFunctionParamProp:"Assignment to property of function parameter '{{name}}'."}},create(t){let e=t.options[0]&&t.options[0].props,r=t.options[0]&&t.options[0].ignorePropertyModificationsFor||[],n=t.options[0]&&t.options[0].ignorePropertyModificationsForRegex||[];function s(u){let c=u.identifier,p=c.parent;for(;p&&(!YW.test(p.type)||p.type==="ForInStatement"||p.type==="ForOfStatement");){switch(p.type){case"AssignmentExpression":return p.left===c;case"UpdateExpression":return!0;case"UnaryExpression":if(p.operator==="delete")return!0;break;case"ForInStatement":case"ForOfStatement":return p.left===c;case"CallExpression":if(p.callee!==c)return!1;break;case"MemberExpression":if(p.property===c)return!1;break;case"Property":if(p.key===c)return!1;break;case"ConditionalExpression":if(p.test===c)return!1;break}c=p,p=c.parent}return!1}function i(u){return r.includes(u)||n.some(c=>new RegExp(c,"u").test(u))}function a(u,c,p){let h=u.identifier;h&&!u.init&&(c===0||p[c-1].identifier!==h)&&(u.isWrite()?t.report({node:h,messageId:"assignmentToFunctionParam",data:{name:h.name}}):e&&s(u)&&!i(h.name)&&t.report({node:h,messageId:"assignmentToFunctionParamProp",data:{name:h.name}}))}function o(u){u.defs[0].type==="Parameter"&&u.references.forEach(a)}function l(u){t.getDeclaredVariables(u).forEach(o)}return{"FunctionDeclaration:exit":l,"FunctionExpression:exit":l,"ArrowFunctionExpression:exit":l}}}});var fP=M((sse,cP)=>{b();v();"use strict";cP.exports={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"disallow string concatenation with `__dirname` and `__filename`",recommended:!1,url:"https://eslint.org/docs/rules/no-path-concat"},schema:[],messages:{usePathFunctions:"Use path.join() or path.resolve() instead of + to create paths."}},create(t){let e=/^__(?:dir|file)name$/u;return{BinaryExpression(r){let n=r.left,s=r.right;r.operator==="+"&&(n.type==="Identifier"&&e.test(n.name)||s.type==="Identifier"&&e.test(s.name))&&t.report({node:r,messageId:"usePathFunctions"})}}}}});var mP=M((nse,pP)=>{b();v();"use strict";function JW(t){let e=t.parent;return e.type==="ForStatement"&&e.update===t}function hP(t){let e=t.parent;return e.type==="SequenceExpression"?hP(e):JW(t)}pP.exports={meta:{type:"suggestion",docs:{description:"disallow the unary operators `++` and `--`",recommended:!1,url:"https://eslint.org/docs/rules/no-plusplus"},schema:[{type:"object",properties:{allowForLoopAfterthoughts:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedUnaryOp:"Unary operator '{{operator}}' used."}},create(t){let e=t.options[0],r=!1;return typeof e=="object"&&(r=e.allowForLoopAfterthoughts===!0),{UpdateExpression(n){r&&hP(n)||t.report({node:n,messageId:"unexpectedUnaryOp",data:{operator:n.operator}})}}}}});var gP=M((ise,dP)=>{b();v();"use strict";dP.exports={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"disallow the use of `process.env`",recommended:!1,url:"https://eslint.org/docs/rules/no-process-env"},schema:[],messages:{unexpectedProcessEnv:"Unexpected use of process.env."}},create(t){return{MemberExpression(e){let r=e.object.name,n=e.property.name;r==="process"&&!e.computed&&n&&n==="env"&&t.report({node:e,messageId:"unexpectedProcessEnv"})}}}}});var xP=M((ase,yP)=>{b();v();"use strict";yP.exports={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"disallow the use of `process.exit()`",recommended:!1,url:"https://eslint.org/docs/rules/no-process-exit"},schema:[],messages:{noProcessExit:"Don't use process.exit(); throw an error instead."}},create(t){return{"CallExpression > MemberExpression.callee[object.name = 'process'][property.name = 'exit']"(e){t.report({node:e.parent,messageId:"noProcessExit"})}}}}});var bP=M((ose,EP)=>{b();v();"use strict";var{findVariable:QW}=Wt(),XW=new Set(["ArrowFunctionExpression","FunctionExpression"]);function ZW(t,e){let r=QW(e,t);return r!==null&&r.scope.type==="global"&&r.defs.length===0}function eG(t){let e=t.upper;return e.type==="function-expression-name"?e.upper:e}function tG(t,e){let r=t.parent;return r.type==="NewExpression"&&r.arguments[0]===t&&r.callee.type==="Identifier"&&r.callee.name==="Promise"&&ZW(r.callee,eG(e))}EP.exports={meta:{type:"problem",docs:{description:"disallow returning values from Promise executor functions",recommended:!1,url:"https://eslint.org/docs/rules/no-promise-executor-return"},schema:[],messages:{returnsValue:"Return values from promise executor functions cannot be read."}},create(t){let e=null;function r(n){t.report({node:n,messageId:"returnsValue"})}return{onCodePathStart(n,s){e={upper:e,shouldCheck:XW.has(s.type)&&tG(s,t.getScope())},e.shouldCheck&&s.type==="ArrowFunctionExpression"&&s.expression&&r(s.body)},onCodePathEnd(){e=e.upper},ReturnStatement(n){e.shouldCheck&&n.argument&&r(n)}}}}});var CP=M((lse,vP)=>{b();v();"use strict";var{getStaticPropertyName:rG}=pe();vP.exports={meta:{type:"suggestion",docs:{description:"disallow the use of the `__proto__` property",recommended:!1,url:"https://eslint.org/docs/rules/no-proto"},schema:[],messages:{unexpectedProto:"The '__proto__' property is deprecated."}},create(t){return{MemberExpression(e){rG(e)==="__proto__"&&t.report({node:e,messageId:"unexpectedProto"})}}}}});var wP=M((use,SP)=>{b();v();"use strict";var AP=pe();SP.exports={meta:{type:"problem",docs:{description:"disallow calling some `Object.prototype` methods directly on objects",recommended:!0,url:"https://eslint.org/docs/rules/no-prototype-builtins"},schema:[],messages:{prototypeBuildIn:"Do not access Object.prototype method '{{prop}}' from target object."}},create(t){let e=["hasOwnProperty","isPrototypeOf","propertyIsEnumerable"];function r(n){let s=AP.skipChainExpression(n.callee);if(s.type!=="MemberExpression")return;let i=AP.getStaticPropertyName(s);i!==null&&e.indexOf(i)>-1&&t.report({messageId:"prototypeBuildIn",loc:s.property.loc,data:{prop:i},node:n})}return{CallExpression:r}}}});var DP=M((cse,kP)=>{b();v();"use strict";var sG=pe();kP.exports={meta:{type:"suggestion",docs:{description:"disallow variable redeclaration",recommended:!0,url:"https://eslint.org/docs/rules/no-redeclare"},messages:{redeclared:"'{{id}}' is already defined.",redeclaredAsBuiltin:"'{{id}}' is already defined as a built-in global variable.",redeclaredBySyntax:"'{{id}}' is already defined by a variable declaration."},schema:[{type:"object",properties:{builtinGlobals:{type:"boolean",default:!0}},additionalProperties:!1}]},create(t){let e={builtinGlobals:Boolean(t.options.length===0||t.options[0].builtinGlobals)},r=t.getSourceCode();function*n(a){e.builtinGlobals&&(a.eslintImplicitGlobalSetting==="readonly"||a.eslintImplicitGlobalSetting==="writable")&&(yield{type:"builtin"});for(let o of a.identifiers)yield{type:"syntax",node:o,loc:o.loc};if(a.eslintExplicitGlobalComments)for(let o of a.eslintExplicitGlobalComments)yield{type:"comment",node:o,loc:sG.getNameLocationInGlobalDirectiveComment(r,o,a.name)}}function s(a){for(let o of a.variables){let[l,...u]=n(o);if(u.length===0)continue;let c=l.type==="builtin"?"redeclaredAsBuiltin":"redeclaredBySyntax",p={id:o.name};for(let{type:h,node:f,loc:m}of u){let x=h===l.type?"redeclared":c;t.report({node:f,loc:m,messageId:x,data:p})}}}function i(a){let o=t.getScope();o.block===a&&s(o)}return{Program(){let a=t.getScope();s(a),a.type==="global"&&a.childScopes[0]&&a.block===a.childScopes[0].block&&s(a.childScopes[0])},FunctionDeclaration:i,FunctionExpression:i,ArrowFunctionExpression:i,StaticBlock:i,BlockStatement:i,ForStatement:i,ForInStatement:i,ForOfStatement:i,SwitchStatement:i}}}});var IP=M((fse,TP)=>{b();v();"use strict";var nG=pe(),FP=Ks(),iG=new FP.RegExpParser,aG=/ {2}/u;function PP(t){return t&&t.type==="Literal"&&typeof t.value=="string"}TP.exports={meta:{type:"suggestion",docs:{description:"disallow multiple spaces in regular expressions",recommended:!0,url:"https://eslint.org/docs/rules/no-regex-spaces"},schema:[],fixable:"code",messages:{multipleSpaces:"Spaces are hard to count. Use {{{length}}}."}},create(t){function e(s,i,a,o,l){if(!aG.test(a))return;let u=[],c;try{c=iG.parsePattern(i,0,i.length,l.includes("u"))}catch{return}FP.visitRegExpAST(c,{onCharacterClassEnter(f){u.push(f)}});let p=/( {2,})(?: [+*{?]|[^+*{?]|$)/gu,h;for(;h=p.exec(i);){let{1:{length:f},index:m}=h;if(u.every(({start:x,end:E})=>m<x||E<=m)){t.report({node:s,messageId:"multipleSpaces",data:{length:f},fix(x){return i!==a?null:x.replaceTextRange([o+m,o+m+f],` {${f}}`)}});return}}}function r(s){if(s.regex){let i=s.regex.pattern,a=s.raw.slice(1,s.raw.lastIndexOf("/")),o=s.range[0]+1,l=s.regex.flags;e(s,i,a,o,l)}}function n(s){let i=t.getScope(),a=nG.getVariableByName(i,"RegExp"),o=a&&a.defs.length>0,l=s.arguments[0],u=s.arguments[1];if(s.callee.type==="Identifier"&&s.callee.name==="RegExp"&&PP(l)&&!o){let c=l.value,p=l.raw.slice(1,-1),h=l.range[0]+1,f=PP(u)?u.value:"";e(s,c,p,h,f)}}return{Literal:r,CallExpression:n,NewExpression:n}}}});var BP=M((pse,_P)=>{b();v();"use strict";var oG=pe();_P.exports={meta:{type:"suggestion",docs:{description:"disallow specified names in exports",recommended:!1,url:"https://eslint.org/docs/rules/no-restricted-exports"},schema:[{type:"object",properties:{restrictedNamedExports:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{restrictedNamed:"'{{name}}' is restricted from being used as an exported name."}},create(t){let e=new Set(t.options[0]&&t.options[0].restrictedNamedExports);function r(n){let s=oG.getModuleExportName(n);e.has(s)&&t.report({node:n,messageId:"restrictedNamed",data:{name:s}})}return{ExportAllDeclaration(n){n.exported&&r(n.exported)},ExportNamedDeclaration(n){let s=n.declaration;s?s.type==="FunctionDeclaration"||s.type==="ClassDeclaration"?r(s.id):s.type==="VariableDeclaration"&&t.getDeclaredVariables(s).map(i=>i.defs.find(a=>a.parent===s)).map(i=>i.name).forEach(r):n.specifiers.map(i=>i.exported).forEach(r)}}}}});var RP=M((hse,OP)=>{b();v();"use strict";OP.exports={meta:{type:"suggestion",docs:{description:"disallow specified global variables",recommended:!1,url:"https://eslint.org/docs/rules/no-restricted-globals"},schema:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string"}},required:["name"],additionalProperties:!1}]},uniqueItems:!0,minItems:0},messages:{defaultMessage:"Unexpected use of '{{name}}'.",customMessage:"Unexpected use of '{{name}}'. {{customMessage}}"}},create(t){if(t.options.length===0)return{};let e=t.options.reduce((s,i)=>(typeof i=="string"?s[i]=null:s[i.name]=i.message,s),{});function r(s){let i=s.identifier.name,a=e[i],o=a?"customMessage":"defaultMessage";t.report({node:s.identifier,messageId:o,data:{name:i,customMessage:a}})}function n(s){return Object.prototype.hasOwnProperty.call(e,s)}return{Program(){let s=t.getScope();s.variables.forEach(i=>{!i.defs.length&&n(i.name)&&i.references.forEach(r)}),s.through.forEach(i=>{n(i.identifier.name)&&r(i)})}}}}});var Tp=M((mse,LP)=>{b();v();function NP(t){return Array.isArray(t)?t:[t]}var MP="",jP=" ",wp="\\",lG=/^\s+$/,uG=/^\\!/,cG=/^\\#/,fG=/\r?\n/g,pG=/^\.*\/|^\.+$/,kp="/",qP=typeof Symbol!="undefined"?Symbol.for("node-ignore"):"node-ignore",hG=(t,e,r)=>Object.defineProperty(t,e,{value:r}),mG=/([0-z])-([0-z])/g,VP=()=>!1,dG=t=>t.replace(mG,(e,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?e:MP),gG=t=>{let{length:e}=t;return t.slice(0,e-e%2)},yG=[[/\\?\s+$/,t=>t.indexOf("\\")===0?jP:MP],[/\\\s/g,()=>jP],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)\\\*(?=.+)/g,(t,e)=>`${e}[^\\/]*`],[/\\\\\\(?=[$.|*+(){^])/g,()=>wp],[/\\\\/g,()=>wp],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,n,s)=>e===wp?`\\[${r}${gG(n)}${s}`:s==="]"&&n.length%2==0?`[${dG(r)}${n}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,e)=>`${e?`${e}[^/]+`:"[^/]*"}(?=$|\\/$)`]],UP=Object.create(null),xG=(t,e)=>{let r=UP[t];return r||(r=yG.reduce((n,s)=>n.replace(s[0],s[1].bind(t)),t),UP[t]=r),e?new RegExp(r,"i"):new RegExp(r)},Dp=t=>typeof t=="string",EG=t=>t&&Dp(t)&&!lG.test(t)&&t.indexOf("#")!==0,bG=t=>t.split(fG),$P=class{constructor(e,r,n,s){this.origin=e,this.pattern=r,this.negative=n,this.regex=s}},vG=(t,e)=>{let r=t,n=!1;t.indexOf("!")===0&&(n=!0,t=t.substr(1)),t=t.replace(uG,"!").replace(cG,"#");let s=xG(t,e);return new $P(r,t,n,s)},CG=(t,e)=>{throw new e(t)},bs=(t,e,r)=>Dp(t)?t?bs.isNotRelative(t)?r(`path should be a \`path.relative()\`d string, but got "${e}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${e}\``,TypeError),WP=t=>pG.test(t);bs.isNotRelative=WP;bs.convert=t=>t;var GP=class{constructor({ignorecase:e=!0,ignoreCase:r=e,allowRelativePaths:n=!1}={}){hG(this,qP,!0),this._rules=[],this._ignoreCase=r,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[qP]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(EG(e)){let r=vG(e,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(e){return this._added=!1,NP(Dp(e)?bG(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,r){let n=!1,s=!1;return this._rules.forEach(i=>{let{negative:a}=i;if(s===a&&n!==s||a&&!n&&!s&&!r)return;i.regex.test(e)&&(n=!a,s=a)}),{ignored:n,unignored:s}}_test(e,r,n,s){let i=e&&bs.convert(e);return bs(i,e,this._allowRelativePaths?VP:CG),this._t(i,r,n,s)}_t(e,r,n,s){if(e in r)return r[e];if(s||(s=e.split(kp)),s.pop(),!s.length)return r[e]=this._testOne(e,n);let i=this._t(s.join(kp)+kp,r,n,s);return r[e]=i.ignored?i:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return NP(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}},Yl=t=>new GP(t),SG=t=>bs(t&&bs.convert(t),t,VP);Yl.isPathValid=SG;Yl.default=Yl;LP.exports=Yl;if(typeof L!="undefined"&&(L.env&&L.env.IGNORE_TEST_WIN32||L.platform==="win32")){let t=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");bs.convert=t;let e=/^[a-z]:\//i;bs.isNotRelative=r=>e.test(r)||WP(r)}});var YP=M((dse,zP)=>{b();v();"use strict";var HP=pe(),AG=Tp(),KP={type:"array",items:{anyOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string",minLength:1},importNames:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["name"]}]},uniqueItems:!0},wG={anyOf:[{type:"array",items:{type:"string"},uniqueItems:!0},{type:"array",items:{type:"object",properties:{group:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},message:{type:"string",minLength:1},caseSensitive:{type:"boolean"}},additionalProperties:!1,required:["group"]},uniqueItems:!0}]};zP.exports={meta:{type:"suggestion",docs:{description:"disallow specified modules when loaded by `import`",recommended:!1,url:"https://eslint.org/docs/rules/no-restricted-imports"},messages:{path:"'{{importSource}}' import is restricted from being used.",pathWithCustomMessage:"'{{importSource}}' import is restricted from being used. {{customMessage}}",patterns:"'{{importSource}}' import is restricted from being used by a pattern.",patternWithCustomMessage:"'{{importSource}}' import is restricted from being used by a pattern. {{customMessage}}",everything:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted.",everythingWithCustomMessage:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted. {{customMessage}}",importName:"'{{importName}}' import from '{{importSource}}' is restricted.",importNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted. {{customMessage}}"},schema:{anyOf:[KP,{type:"array",items:[{type:"object",properties:{paths:KP,patterns:wG},additionalProperties:!1}],additionalItems:!1}]}},create(t){let e=t.getSourceCode(),r=Array.isArray(t.options)?t.options:[],n=typeof r[0]=="object"&&(Object.prototype.hasOwnProperty.call(r[0],"paths")||Object.prototype.hasOwnProperty.call(r[0],"patterns")),s=(n?r[0].paths:t.options)||[],i=s.reduce((h,f)=>(typeof f=="string"?h[f]={message:null}:h[f.name]={message:f.message,importNames:f.importNames},h),{}),a=(n?r[0].patterns:[])||[];a.length>0&&typeof a[0]=="string"&&(a=[{group:a}]);let o=a.map(({group:h,message:f,caseSensitive:m})=>({matcher:AG({allowRelativePaths:!0,ignorecase:!m}).add(h),customMessage:f}));if(Object.keys(s).length===0&&o.length===0)return{};function l(h,f,m){if(!Object.prototype.hasOwnProperty.call(i,h))return;let x=i[h].message,E=i[h].importNames;if(E){if(f.has("*")){let S=f.get("*")[0];t.report({node:m,messageId:x?"everythingWithCustomMessage":"everything",loc:S.loc,data:{importSource:h,importNames:E,customMessage:x}})}E.forEach(S=>{f.has(S)&&f.get(S).forEach(I=>{t.report({node:m,messageId:x?"importNameWithCustomMessage":"importName",loc:I.loc,data:{importSource:h,customMessage:x,importName:S}})})})}else t.report({node:m,messageId:x?"pathWithCustomMessage":"path",data:{importSource:h,customMessage:x}})}function u(h,f){let m=h.source.value.trim();t.report({node:h,messageId:f.customMessage?"patternWithCustomMessage":"patterns",data:{importSource:m,customMessage:f.customMessage}})}function c(h,f){return f.matcher.ignores(h)}function p(h){let f=h.source.value.trim(),m=new Map;if(h.type==="ExportAllDeclaration"){let x=e.getFirstToken(h,1);m.set("*",[{loc:x.loc}])}else if(h.specifiers)for(let x of h.specifiers){let E,S={loc:x.loc};x.type==="ImportDefaultSpecifier"?E="default":x.type==="ImportNamespaceSpecifier"?E="*":x.imported?E=HP.getModuleExportName(x.imported):x.local&&(E=HP.getModuleExportName(x.local)),typeof E=="string"&&(m.has(E)?m.get(E).push(S):m.set(E,[S]))}l(f,m,h),o.forEach(x=>{c(f,x)&&u(h,x)})}return{ImportDeclaration:p,ExportNamedDeclaration(h){h.source&&p(h)},ExportAllDeclaration:p}}}});var XP=M((gse,JP)=>{b();v();"use strict";var kG=Tp(),DG={type:"array",items:{type:"string"},uniqueItems:!0},QP={type:"array",items:{anyOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string",minLength:1}},additionalProperties:!1,required:["name"]}]},uniqueItems:!0};JP.exports={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"disallow specified modules when loaded by `require`",recommended:!1,url:"https://eslint.org/docs/rules/no-restricted-modules"},schema:{anyOf:[QP,{type:"array",items:{type:"object",properties:{paths:QP,patterns:DG},additionalProperties:!1},additionalItems:!1}]},messages:{defaultMessage:"'{{name}}' module is restricted from being used.",customMessage:"'{{name}}' module is restricted from being used. {{customMessage}}",patternMessage:"'{{name}}' module is restricted from being used by a pattern."}},create(t){let e=Array.isArray(t.options)?t.options:[],r=typeof e[0]=="object"&&(Object.prototype.hasOwnProperty.call(e[0],"paths")||Object.prototype.hasOwnProperty.call(e[0],"patterns")),n=(r?e[0].paths:t.options)||[],s=(r?e[0].patterns:[])||[],i=n.reduce((f,m)=>(typeof m=="string"?f[m]=null:f[m.name]=m.message,f),{});if(Object.keys(n).length===0&&s.length===0)return{};let a=kG({allowRelativePaths:!0}).add(s);function o(f){return f&&f.type==="Literal"&&typeof f.value=="string"}function l(f){return f&&f.type==="TemplateLiteral"&&f.expressions.length===0}function u(f){return f.callee.type==="Identifier"&&f.callee.name==="require"}function c(f){return o(f)?f.value.trim():l(f)?f.quasis[0].value.cooked.trim():null}function p(f,m){let x=i[m],E=x?"customMessage":"defaultMessage";t.report({node:f,messageId:E,data:{name:m,customMessage:x}})}function h(f){return Object.prototype.hasOwnProperty.call(i,f)}return{CallExpression(f){if(u(f)&&f.arguments.length){let m=c(f.arguments[0]);m&&(h(m)&&p(f,m),s.length>0&&a.ignores(m)&&t.report({node:f,messageId:"patternMessage",data:{name:m}}))}}}}}});var eI=M((yse,ZP)=>{b();v();"use strict";var Fp=pe();ZP.exports={meta:{type:"suggestion",docs:{description:"disallow certain properties on certain objects",recommended:!1,url:"https://eslint.org/docs/rules/no-restricted-properties"},schema:{type:"array",items:{anyOf:[{type:"object",properties:{object:{type:"string"},property:{type:"string"},message:{type:"string"}},additionalProperties:!1,required:["object"]},{type:"object",properties:{object:{type:"string"},property:{type:"string"},message:{type:"string"}},additionalProperties:!1,required:["property"]}]},uniqueItems:!0},messages:{restrictedObjectProperty:"'{{objectName}}.{{propertyName}}' is restricted from being used.{{message}}",restrictedProperty:"'{{propertyName}}' is restricted from being used.{{message}}"}},create(t){let e=t.options;if(e.length===0)return{};let r=new Map,n=new Map,s=new Map;e.forEach(o=>{let l=o.object,u=o.property;typeof l=="undefined"?s.set(u,{message:o.message}):typeof u=="undefined"?n.set(l,{message:o.message}):(r.has(l)||r.set(l,new Map),r.get(l).set(u,{message:o.message}))});function i(o,l,u){if(u===null)return;let c=r.get(l),p=c?c.get(u):n.get(l),h=s.get(u);if(p){let f=p.message?` ${p.message}`:"";t.report({node:o,messageId:"restrictedObjectProperty",data:{objectName:l,propertyName:u,message:f}})}else if(h){let f=h.message?` ${h.message}`:"";t.report({node:o,messageId:"restrictedProperty",data:{propertyName:u,message:f}})}}function a(o){if(o.right.type==="Identifier"){let l=o.right.name;o.left.type==="ObjectPattern"&&o.left.properties.forEach(u=>{i(o.left,l,Fp.getStaticPropertyName(u))})}}return{MemberExpression(o){i(o,o.object&&o.object.name,Fp.getStaticPropertyName(o))},VariableDeclarator(o){if(o.init&&o.init.type==="Identifier"){let l=o.init.name;o.id.type==="ObjectPattern"&&o.id.properties.forEach(u=>{i(o.id,l,Fp.getStaticPropertyName(u))})}},AssignmentExpression:a,AssignmentPattern:a}}}});var rI=M((xse,tI)=>{b();v();"use strict";tI.exports={meta:{type:"suggestion",docs:{description:"disallow specified syntax",recommended:!1,url:"https://eslint.org/docs/rules/no-restricted-syntax"},schema:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{selector:{type:"string"},message:{type:"string"}},required:["selector"],additionalProperties:!1}]},uniqueItems:!0,minItems:0},messages:{restrictedSyntax:"{{message}}"}},create(t){return t.options.reduce((e,r)=>{let n=typeof r=="string",s=!n&&Boolean(r.message),i=n?r:r.selector,a=s?r.message:`Using '${i}' is not allowed.`;return Object.assign(e,{[i](o){t.report({node:o,messageId:"restrictedSyntax",data:{message:a}})}})},{})}}});var nI=M((Ese,sI)=>{b();v();"use strict";var TG=pe(),FG=/^(?:[a-zA-Z]+?Statement|ArrowFunctionExpression|FunctionExpression|ClassExpression)$/u;sI.exports={meta:{type:"suggestion",docs:{description:"disallow assignment operators in `return` statements",recommended:!1,url:"https://eslint.org/docs/rules/no-return-assign"},schema:[{enum:["except-parens","always"]}],messages:{returnAssignment:"Return statement should not contain assignment.",arrowAssignment:"Arrow function should not return assignment."}},create(t){let e=(t.options[0]||"except-parens")!=="except-parens",r=t.getSourceCode();return{AssignmentExpression(n){if(!e&&TG.isParenthesised(r,n))return;let s=n,i=s.parent;for(;i&&!FG.test(i.type);)s=i,i=i.parent;i&&i.type==="ReturnStatement"?t.report({node:i,messageId:"returnAssignment"}):i&&i.type==="ArrowFunctionExpression"&&i.body===s&&t.report({node:i,messageId:"arrowAssignment"})}}}}});var aI=M((bse,iI)=>{b();v();"use strict";var PG=pe();iI.exports={meta:{type:"suggestion",docs:{description:"disallow unnecessary `return await`",recommended:!1,url:"https://eslint.org/docs/rules/no-return-await"},fixable:null,schema:[],messages:{redundantUseOfAwait:"Redundant use of `await` on a return value."}},create(t){function e(s){t.report({node:t.getSourceCode().getFirstToken(s),loc:s.loc,messageId:"redundantUseOfAwait"})}function r(s){let i=s;for(;!PG.isFunction(i)&&i.type!=="Program";){if(i.parent.type==="TryStatement"&&(i===i.parent.block||i===i.parent.handler&&i.parent.finalizer))return!0;i=i.parent}return!1}function n(s){return s.parent.type==="ArrowFunctionExpression"?!0:s.parent.type==="ReturnStatement"?!r(s.parent):s.parent.type==="ConditionalExpression"&&(s===s.parent.consequent||s===s.parent.alternate)||s.parent.type==="LogicalExpression"&&s===s.parent.right||s.parent.type==="SequenceExpression"&&s===s.parent.expressions[s.parent.expressions.length-1]?n(s.parent):!1}return{AwaitExpression(s){n(s)&&!r(s)&&e(s)}}}}});var lI=M((vse,oI)=>{b();v();"use strict";var IG=pe();oI.exports={meta:{type:"suggestion",docs:{description:"disallow `javascript:` urls",recommended:!1,url:"https://eslint.org/docs/rules/no-script-url"},schema:[],messages:{unexpectedScriptURL:"Script URL is a form of eval."}},create(t){function e(r){let n=IG.getStaticStringValue(r);typeof n=="string"&&n.toLowerCase().indexOf("javascript:")===0&&t.report({node:r,messageId:"unexpectedScriptURL"})}return{Literal(r){r.value&&typeof r.value=="string"&&e(r)},TemplateLiteral(r){r.parent&&r.parent.type==="TaggedTemplateExpression"||e(r)}}}}});var cI=M((Cse,uI)=>{b();v();"use strict";var Ca=pe(),_G=/\s+/gu;function Sa(t,e,r,n){if(!(!t||!e))if(t.type==="Identifier"&&e.type==="Identifier"&&t.name===e.name)n(e);else if(t.type==="ArrayPattern"&&e.type==="ArrayExpression"){let s=Math.min(t.elements.length,e.elements.length);for(let i=0;i<s;++i){let a=t.elements[i],o=e.elements[i];if(a&&a.type==="RestElement"&&i<e.elements.length-1||(Sa(a,o,r,n),o&&o.type==="SpreadElement"))break}}else if(t.type==="RestElement"&&e.type==="SpreadElement")Sa(t.argument,e.argument,r,n);else if(t.type==="ObjectPattern"&&e.type==="ObjectExpression"&&e.properties.length>=1){let s=0;for(let i=e.properties.length-1;i>=0;--i){let a=e.properties[i].type;if(a==="SpreadElement"||a==="ExperimentalSpreadProperty"){s=i+1;break}}for(let i=0;i<t.properties.length;++i)for(let a=s;a<e.properties.length;++a)Sa(t.properties[i],e.properties[a],r,n)}else if(t.type==="Property"&&e.type==="Property"&&e.kind==="init"&&!e.method){let s=Ca.getStaticPropertyName(t);s!==null&&s===Ca.getStaticPropertyName(e)&&Sa(t.value,e.value,r,n)}else r&&Ca.skipChainExpression(t).type==="MemberExpression"&&Ca.skipChainExpression(e).type==="MemberExpression"&&Ca.isSameReference(t,e)&&n(e)}uI.exports={meta:{type:"problem",docs:{description:"disallow assignments where both sides are exactly the same",recommended:!0,url:"https://eslint.org/docs/rules/no-self-assign"},schema:[{type:"object",properties:{props:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{selfAssignment:"'{{name}}' is assigned to itself."}},create(t){let e=t.getSourceCode(),[{props:r=!0}={}]=t.options;function n(s){t.report({node:s,messageId:"selfAssignment",data:{name:e.getText(s).replace(_G,"")}})}return{AssignmentExpression(s){["=","&&=","||=","??="].includes(s.operator)&&Sa(s.left,s.right,r,n)}}}}});var pI=M((Sse,fI)=>{b();v();"use strict";fI.exports={meta:{type:"problem",docs:{description:"disallow comparisons where both sides are exactly the same",recommended:!1,url:"https://eslint.org/docs/rules/no-self-compare"},schema:[],messages:{comparingToSelf:"Comparing to itself is potentially pointless."}},create(t){let e=t.getSourceCode();function r(n,s){let i=e.getTokens(n),a=e.getTokens(s);return i.length===a.length&&i.every((o,l)=>o.type===a[l].type&&o.value===a[l].value)}return{BinaryExpression(n){new Set(["===","==","!==","!=",">","<",">=","<="]).has(n.operator)&&r(n.left,n.right)&&t.report({node:n,messageId:"comparingToSelf"})}}}}});var mI=M((Ase,hI)=>{b();v();"use strict";var Jl=pe(),BG={allowInParentheses:!0};hI.exports={meta:{type:"suggestion",docs:{description:"disallow comma operators",recommended:!1,url:"https://eslint.org/docs/rules/no-sequences"},schema:[{properties:{allowInParentheses:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedCommaExpression:"Unexpected use of comma operator."}},create(t){let e=Object.assign({},BG,t.options[0]),r=t.getSourceCode(),n={DoWhileStatement:"test",IfStatement:"test",SwitchStatement:"discriminant",WhileStatement:"test",WithStatement:"object",ArrowFunctionExpression:"body"};function s(o){return o.parent&&n[o.parent.type]&&o===o.parent[n[o.parent.type]]}function i(o){return Jl.isParenthesised(r,o)}function a(o){let l=r.getTokenBefore(o,1),u=r.getTokenAfter(o,1);return i(o)&&l&&u&&Jl.isOpeningParenToken(l)&&l.range[1]<=o.range[0]&&Jl.isClosingParenToken(u)&&u.range[0]>=o.range[1]}return{SequenceExpression(o){if(o.parent.type==="ForStatement"&&(o===o.parent.init||o===o.parent.update))return;if(e.allowInParentheses){if(s(o)){if(a(o))return}else if(i(o))return}let l=r.getTokenAfter(o.expressions[0],Jl.isCommaToken);t.report({node:o,loc:l.loc,messageId:"unexpectedCommaExpression"})}}}}});var gI=M((wse,dI)=>{b();v();"use strict";var Pp=pe(),{findVariable:OG}=Wt();function RG(t,e){let r=OG(e,t);return r!==null&&r.scope.type==="global"&&r.defs.length===0}function Ql(t,e,r,n,s){let i=t.parent;return i.type==="CallExpression"&&i.arguments[s]===t&&Pp.isSpecificMemberAccess(i.callee,r,n)&&RG(Pp.skipChainExpression(i.callee).object,e)}function LG(t,e){if(Ql(t,e,"Object","defineProperty",2)||Ql(t,e,"Reflect","defineProperty",2))return!0;let r=t.parent;if(r.type==="Property"&&r.value===t){let n=r.parent;if(n.type==="ObjectExpression"&&(Ql(n,e,"Object","create",1)||Ql(n,e,"Object","defineProperties",1)))return!0}return!1}function NG(t,e){let r=t.parent;return!!((r.type==="Property"||r.type==="MethodDefinition")&&r.kind==="set"&&r.value===t||r.type==="Property"&&r.value===t&&Pp.getStaticPropertyName(r)==="set"&&r.parent.type==="ObjectExpression"&&LG(r.parent,e))}function MG(t){let e=t.upper;return e.type==="function-expression-name"?e.upper:e}dI.exports={meta:{type:"problem",docs:{description:"disallow returning values from setters",recommended:!0,url:"https://eslint.org/docs/rules/no-setter-return"},schema:[],messages:{returnsValue:"Setter cannot return a value."}},create(t){let e=null;function r(i){let a=MG(t.getScope());e={upper:e,isSetter:NG(i,a)}}function n(){e=e.upper}function s(i){t.report({node:i,messageId:"returnsValue"})}return{FunctionDeclaration:r,FunctionExpression:r,ArrowFunctionExpression(i){r(i),e.isSetter&&i.expression&&s(i.body)},"FunctionDeclaration:exit":n,"FunctionExpression:exit":n,"ArrowFunctionExpression:exit":n,ReturnStatement(i){e&&e.isSetter&&i.argument&&s(i)}}}}});var xI=M((kse,yI)=>{b();v();"use strict";var jG=pe(),qG=["ArrowFunctionExpression","FunctionExpression"],VG=["CallExpression"],UG=/^For(?:In|Of)Statement$/u,$G=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u;yI.exports={meta:{type:"suggestion",docs:{description:"disallow variable declarations from shadowing variables declared in the outer scope",recommended:!1,url:"https://eslint.org/docs/rules/no-shadow"},schema:[{type:"object",properties:{builtinGlobals:{type:"boolean",default:!1},hoist:{enum:["all","functions","never"],default:"functions"},allow:{type:"array",items:{type:"string"}},ignoreOnInitialization:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{noShadow:"'{{name}}' is already declared in the upper scope on line {{shadowedLine}} column {{shadowedColumn}}.",noShadowGlobal:"'{{name}}' is already a global variable."}},create(t){let e={builtinGlobals:t.options[0]&&t.options[0].builtinGlobals,hoist:t.options[0]&&t.options[0].hoist||"functions",allow:t.options[0]&&t.options[0].allow||[],ignoreOnInitialization:t.options[0]&&t.options[0].ignoreOnInitialization};function r(f,m){return f&&f.range[0]<=m&&m<=f.range[1]}function n(f,m){let x=f;for(;x&&!m(x);)x=x.parent;return x}function s(f){let m=f.upper;return m.type==="function-expression-name"?m.upper:m}function i(f,m){let x=m.defs[0];if(!x)return!1;let{variableScope:E}=f.scope;if(!(qG.includes(E.block.type)&&s(E)===m.scope))return!1;let S=E.block,{parent:T}=S,I=n(T,D=>VG.includes(D.type));if(!I)return!1;let y=x.name,w=I.range[1];for(;y;){if(y.type==="VariableDeclarator"){if(r(y.init,w)||UG.test(y.parent.parent.type)&&r(y.parent.parent.right,w))return!0;break}else if(y.type==="AssignmentPattern"){if(r(y.right,w))return!0}else if($G.test(y.type))break;y=y.parent}return!1}function a(f){return e.allow.indexOf(f.name)!==-1}function o(f){let m=f.scope.block;return m.type==="ClassDeclaration"&&m.id===f.identifiers[0]}function l(f,m){let x=m.scope,E=m.defs[0],S=E&&E.parent&&E.parent.range,T=f.scope,I=f.defs[0],y=I&&I.name.range;return S&&y&&S[0]<y[0]&&y[1]<S[1]&&(I.type==="FunctionName"&&I.node.type==="FunctionExpression"||I.node.type==="ClassExpression")&&x===T.upper}function u(f){let m=f.defs[0];return m&&m.name.range}function c(f){let m=f.identifiers[0],x;return m?x={global:!1,line:m.loc.start.line,column:m.loc.start.column+1}:x={global:!0},x}function p(f,m){let x=m.defs[0],E=u(f),S=u(m);return E&&S&&E[1]<S[0]&&(e.hoist!=="functions"||!x||x.node.type!=="FunctionDeclaration")}function h(f){let m=f.variables;for(let x=0;x<m.length;++x){let E=m[x];if(E.identifiers.length===0||o(E)||a(E))continue;let S=jG.getVariableByName(f.upper,E.name);if(S&&(S.identifiers.length>0||e.builtinGlobals&&"writeable"in S)&&!l(E,S)&&!(e.ignoreOnInitialization&&i(E,S))&&!(e.hoist!=="all"&&p(E,S))){let T=c(S),I=T.global?"noShadowGlobal":"noShadow",y={name:E.name};T.global||(y.shadowedLine=T.line,y.shadowedColumn=T.column),t.report({node:E.identifiers[0],messageId:I,data:y})}}}return{"Program:exit"(){let m=t.getScope().childScopes.slice();for(;m.length;){let x=m.pop();m.push(...x.childScopes),h(x)}}}}}});var bI=M((Dse,EI)=>{b();v();"use strict";function WG(t){return t.name==="undefined"&&t.references.every(e=>!e.isWrite())&&t.defs.every(e=>e.node.type==="VariableDeclarator"&&e.node.init===null)}EI.exports={meta:{type:"suggestion",docs:{description:"disallow identifiers from shadowing restricted names",recommended:!0,url:"https://eslint.org/docs/rules/no-shadow-restricted-names"},schema:[],messages:{shadowingRestrictedName:"Shadowing of global property '{{name}}'."}},create(t){let e=new Set(["undefined","NaN","Infinity","arguments","eval"]);return{"VariableDeclaration, :function, CatchClause"(r){for(let n of t.getDeclaredVariables(r))n.defs.length>0&&e.has(n.name)&&!WG(n)&&t.report({node:n.defs[0].name,messageId:"shadowingRestrictedName",data:{name:n.name}})}}}}});var CI=M((Tse,vI)=>{b();v();"use strict";vI.exports={meta:{type:"layout",docs:{description:"disallow spacing between function identifiers and their applications (deprecated)",recommended:!1,url:"https://eslint.org/docs/rules/no-spaced-func"},deprecated:!0,replacedBy:["func-call-spacing"],fixable:"whitespace",schema:[],messages:{noSpacedFunction:"Unexpected space between function name and paren."}},create(t){let e=t.getSourceCode();function r(n){let s=e.getLastToken(n.callee),i=s,a=e.getTokenAfter(s);for(;a&&a.range[1]<n.range[1]&&a.value!=="(";)i=a,a=e.getTokenAfter(a);a&&a.range[1]<n.range[1]&&e.isSpaceBetweenTokens(i,a)&&t.report({node:n,loc:s.loc.start,messageId:"noSpacedFunction",fix(o){return o.removeRange([i.range[1],a.range[0]])}})}return{CallExpression:r,NewExpression:r}}}});var AI=M((Fse,SI)=>{b();v();"use strict";SI.exports={meta:{type:"problem",docs:{description:"disallow sparse arrays",recommended:!0,url:"https://eslint.org/docs/rules/no-sparse-arrays"},schema:[],messages:{unexpectedSparseArray:"Unexpected comma in middle of array."}},create(t){return{ArrayExpression(e){e.elements.indexOf(null)>-1&&t.report({node:e,messageId:"unexpectedSparseArray"})}}}}});var kI=M((Pse,wI)=>{b();v();"use strict";wI.exports={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"disallow synchronous methods",recommended:!1,url:"https://eslint.org/docs/rules/no-sync"},schema:[{type:"object",properties:{allowAtRootLevel:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{noSync:"Unexpected sync method: '{{propertyName}}'."}},create(t){return{[t.options[0]&&t.options[0].allowAtRootLevel?":function MemberExpression[property.name=/.*Sync$/]":"MemberExpression[property.name=/.*Sync$/]"](r){t.report({node:r,messageId:"noSync",data:{propertyName:r.property.name}})}}}}});var TI=M((Ise,DI)=>{b();v();"use strict";var GG=/\t+/gu,zG=/\S/u;DI.exports={meta:{type:"layout",docs:{description:"disallow all tabs",recommended:!1,url:"https://eslint.org/docs/rules/no-tabs"},schema:[{type:"object",properties:{allowIndentationTabs:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedTab:"Unexpected tab character."}},create(t){let e=t.getSourceCode(),r=t.options&&t.options[0]&&t.options[0].allowIndentationTabs;return{Program(n){e.getLines().forEach((s,i)=>{let a;for(;(a=GG.exec(s))!==null;)r&&!zG.test(s.slice(0,a.index))||t.report({node:n,loc:{start:{line:i+1,column:a.index},end:{line:i+1,column:a.index+a[0].length}},messageId:"unexpectedTab"})})}}}}});var PI=M((_se,FI)=>{b();v();"use strict";FI.exports={meta:{type:"problem",docs:{description:"disallow template literal placeholder syntax in regular strings",recommended:!1,url:"https://eslint.org/docs/rules/no-template-curly-in-string"},schema:[],messages:{unexpectedTemplateExpression:"Unexpected template string expression."}},create(t){let e=/\$\{[^}]+\}/u;return{Literal(r){typeof r.value=="string"&&e.test(r.value)&&t.report({node:r,messageId:"unexpectedTemplateExpression"})}}}}});var _I=M((Bse,II)=>{b();v();"use strict";II.exports={meta:{type:"suggestion",docs:{description:"disallow ternary operators",recommended:!1,url:"https://eslint.org/docs/rules/no-ternary"},schema:[],messages:{noTernaryOperator:"Ternary operator used."}},create(t){return{ConditionalExpression(e){t.report({node:e,messageId:"noTernaryOperator"})}}}}});var RI=M((Ose,BI)=>{b();v();"use strict";var OI=pe();function HG(t){return t.type==="FunctionExpression"&&t.parent.type==="MethodDefinition"&&t.parent.kind==="constructor"}BI.exports={meta:{type:"problem",docs:{description:"disallow `this`/`super` before calling `super()` in constructors",recommended:!0,url:"https://eslint.org/docs/rules/no-this-before-super"},schema:[],messages:{noBeforeSuper:"'{{kind}}' is not allowed before 'super()'."}},create(t){let e=null,r=Object.create(null);function n(l){return!l.reachable||r[l.id].superCalled}function s(){return Boolean(e&&e.isConstructor&&e.hasExtends)}function i(){return s()&&!e.codePath.currentSegments.every(n)}function a(l){let u=e.codePath.currentSegments;for(let c=0;c<u.length;++c){let p=u[c];p.reachable&&r[p.id].invalidNodes.push(l)}}function o(){let l=e.codePath.currentSegments;for(let u=0;u<l.length;++u){let c=l[u];c.reachable&&(r[c.id].superCalled=!0)}}return{onCodePathStart(l,u){if(HG(u)){let c=u.parent.parent.parent;e={upper:e,isConstructor:!0,hasExtends:Boolean(c.superClass&&!OI.isNullOrUndefined(c.superClass)),codePath:l}}else e={upper:e,isConstructor:!1,hasExtends:!1,codePath:l}},onCodePathEnd(l){let u=e.hasExtends;e=e.upper,!!u&&l.traverseSegments((c,p)=>{let h=r[c.id];for(let f=0;f<h.invalidNodes.length;++f){let m=h.invalidNodes[f];t.report({messageId:"noBeforeSuper",node:m,data:{kind:m.type==="Super"?"super":"this"}})}h.superCalled&&p.skip()})},onCodePathSegmentStart(l){!s()||(r[l.id]={superCalled:l.prevSegments.length>0&&l.prevSegments.every(n),invalidNodes:[]})},onCodePathSegmentLoop(l,u){!s()||e.codePath.traverseSegments({first:u,last:l},(c,p)=>{let h=r[c.id];h.superCalled?(h.invalidNodes=[],p.skip()):c.prevSegments.length>0&&c.prevSegments.every(n)&&(h.superCalled=!0,h.invalidNodes=[])})},ThisExpression(l){i()&&a(l)},Super(l){!OI.isCallee(l)&&i()&&a(l)},"CallExpression:exit"(l){l.callee.type==="Super"&&i()&&o()},"Program:exit"(){r=Object.create(null)}}}}});var NI=M((Rse,LI)=>{b();v();"use strict";var KG=pe();LI.exports={meta:{type:"suggestion",docs:{description:"disallow throwing literals as exceptions",recommended:!1,url:"https://eslint.org/docs/rules/no-throw-literal"},schema:[],messages:{object:"Expected an error object to be thrown.",undef:"Do not throw undefined."}},create(t){return{ThrowStatement(e){KG.couldBeError(e.argument)?e.argument.type==="Identifier"&&e.argument.name==="undefined"&&t.report({node:e,messageId:"undef"}):t.report({node:e,messageId:"object"})}}}}});var jI=M((Lse,MI)=>{b();v();"use strict";var YG=pe();MI.exports={meta:{type:"layout",docs:{description:"disallow trailing whitespace at the end of lines",recommended:!1,url:"https://eslint.org/docs/rules/no-trailing-spaces"},fixable:"whitespace",schema:[{type:"object",properties:{skipBlankLines:{type:"boolean",default:!1},ignoreComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{trailingSpace:"Trailing spaces not allowed."}},create(t){let e=t.getSourceCode(),r="[ \xA0\u2000-\u200B\u3000]",n=`^${r}*$`,s=`${r}+$`,i=t.options[0]||{},a=i.skipBlankLines||!1,o=i.ignoreComments||!1;function l(c,p,h){t.report({node:c,loc:p,messageId:"trailingSpace",fix(f){return f.removeRange(h)}})}function u(c){let p=new Set;return c.forEach(h=>{let f=h.type==="Block"?h.loc.end.line-1:h.loc.end.line;for(let m=h.loc.start.line;m<=f;m++)p.add(m)}),p}return{Program:function(p){let h=new RegExp(s,"u"),f=new RegExp(n,"u"),m=e.lines,x=e.getText().match(YG.createGlobalLinebreakMatcher()),E=e.getAllComments(),S=u(E),T=0,I=[];for(let y=0,w=m.length;y<w;y++){let D=y+1,R=x&&x[y]?x[y].length:1,z=m[y].length+R,q=h.exec(m[y]);if(q){let W={start:{line:D,column:q.index},end:{line:D,column:z-R}},_=T+W.start.column,C=T+W.end.column,$=e.getNodeByRangeIndex(_);if($&&$.type==="TemplateElement"&&_>$.parent.range[0]&&C<$.parent.range[1]){T+=z;continue}if(a&&f.test(m[y])){T+=z;continue}I=[_,C],(!o||!S.has(D))&&l(p,W,I)}T+=z}}}}}});var VI=M((Nse,qI)=>{b();v();"use strict";function JG(t){let e=t.parent;return e.type==="UnaryExpression"&&e.operator==="typeof"}qI.exports={meta:{type:"problem",docs:{description:"disallow the use of undeclared variables unless mentioned in `/*global */` comments",recommended:!0,url:"https://eslint.org/docs/rules/no-undef"},schema:[{type:"object",properties:{typeof:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{undef:"'{{name}}' is not defined."}},create(t){let e=t.options[0],r=e&&e.typeof===!0||!1;return{"Program:exit"(){t.getScope().through.forEach(s=>{let i=s.identifier;!r&&JG(i)||t.report({node:i,messageId:"undef",data:i})})}}}}});var $I=M((Mse,UI)=>{b();v();"use strict";var QG=pe();UI.exports={meta:{type:"suggestion",docs:{description:"disallow initializing variables to `undefined`",recommended:!1,url:"https://eslint.org/docs/rules/no-undef-init"},schema:[],fixable:"code",messages:{unnecessaryUndefinedInit:"It's not necessary to initialize '{{name}}' to undefined."}},create(t){let e=t.getSourceCode();return{VariableDeclarator(r){let n=e.getText(r.id),s=r.init&&r.init.name,i=t.getScope(),a=QG.getVariableByName(i,"undefined"),o=a&&a.defs.length>0,l=e.getLastToken(r);s==="undefined"&&r.parent.kind!=="const"&&!o&&t.report({node:r,messageId:"unnecessaryUndefinedInit",data:{name:n},fix(u){return r.parent.kind==="var"||r.id.type==="ArrayPattern"||r.id.type==="ObjectPattern"||e.commentsExistBetween(r.id,l)?null:u.removeRange([r.id.range[1],r.range[1]])}})}}}}});var GI=M((jse,WI)=>{b();v();"use strict";WI.exports={meta:{type:"suggestion",docs:{description:"disallow the use of `undefined` as an identifier",recommended:!1,url:"https://eslint.org/docs/rules/no-undefined"},schema:[],messages:{unexpectedUndefined:"Unexpected use of undefined."}},create(t){function e(n){t.report({node:n,messageId:"unexpectedUndefined"})}function r(n){let s=n.set.get("undefined");if(!s)return;let i=s.references,a=s.defs;i.filter(o=>!o.init).forEach(o=>e(o.identifier)),a.forEach(o=>e(o.name))}return{"Program:exit"(){let s=[t.getScope()];for(;s.length;){let i=s.pop();s.push(...i.childScopes),r(i)}}}}}});var HI=M((qse,zI)=>{b();v();"use strict";zI.exports={meta:{type:"suggestion",docs:{description:"disallow dangling underscores in identifiers",recommended:!1,url:"https://eslint.org/docs/rules/no-underscore-dangle"},schema:[{type:"object",properties:{allow:{type:"array",items:{type:"string"}},allowAfterThis:{type:"boolean",default:!1},allowAfterSuper:{type:"boolean",default:!1},allowAfterThisConstructor:{type:"boolean",default:!1},enforceInMethodNames:{type:"boolean",default:!1},allowFunctionParams:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedUnderscore:"Unexpected dangling '_' in '{{identifier}}'."}},create(t){let e=t.options[0]||{},r=e.allow?e.allow:[],n=typeof e.allowAfterThis!="undefined"?e.allowAfterThis:!1,s=typeof e.allowAfterSuper!="undefined"?e.allowAfterSuper:!1,i=typeof e.allowAfterThisConstructor!="undefined"?e.allowAfterThisConstructor:!1,a=typeof e.enforceInMethodNames!="undefined"?e.enforceInMethodNames:!1,o=typeof e.allowFunctionParams!="undefined"?e.allowFunctionParams:!0;function l(T){return r.some(I=>I===T)}function u(T){let I=T.length;return T!=="_"&&(T[0]==="_"||T[I-1]==="_")}function c(T){return T==="__proto__"}function p(T){return T==="_"}function h(T){return T.object.type==="MemberExpression"&&T.object.property.name==="constructor"&&T.object.object.type==="ThisExpression"}function f(T){o||T.params.forEach(I=>{let{type:y}=I,w;if(y==="RestElement"?w=I.argument:y==="AssignmentPattern"?w=I.left:w=I,w.type==="Identifier"){let D=w.name;u(D)&&!l(D)&&t.report({node:I,messageId:"unexpectedUnderscore",data:{identifier:D}})}})}function m(T){if(T.type==="FunctionDeclaration"&&T.id){let I=T.id.name;typeof I!="undefined"&&u(I)&&!l(I)&&t.report({node:T,messageId:"unexpectedUnderscore",data:{identifier:I}})}f(T)}function x(T){let I=T.id.name;typeof I!="undefined"&&u(I)&&!p(I)&&!l(I)&&t.report({node:T,messageId:"unexpectedUnderscore",data:{identifier:I}})}function E(T){let I=T.property.name,y=T.object.type==="ThisExpression",w=T.object.type==="Super",D=h(T);typeof I!="undefined"&&u(I)&&!(y&&n)&&!(w&&s)&&!(D&&i)&&!c(I)&&!l(I)&&t.report({node:T,messageId:"unexpectedUnderscore",data:{identifier:I}})}function S(T){let I=T.key.name,y=T.type==="MethodDefinition"||T.type==="Property"&&T.method;typeof I!="undefined"&&a&&y&&u(I)&&!l(I)&&t.report({node:T,messageId:"unexpectedUnderscore",data:{identifier:T.key.type==="PrivateIdentifier"?`#${I}`:I}})}return{FunctionDeclaration:m,VariableDeclarator:x,MemberExpression:E,MethodDefinition:S,PropertyDefinition:S,Property:S,FunctionExpression:m,ArrowFunctionExpression:m}}}});var YI=M((Vse,KI)=>{b();v();"use strict";var XG=pe();KI.exports={meta:{type:"problem",docs:{description:"disallow confusing multiline expressions",recommended:!0,url:"https://eslint.org/docs/rules/no-unexpected-multiline"},schema:[],messages:{function:"Unexpected newline between function and ( of function call.",property:"Unexpected newline between object and [ of property access.",taggedTemplate:"Unexpected newline between template tag and template literal.",division:"Unexpected newline between numerator and division operator."}},create(t){let e=/^[gimsuy]+$/u,r=t.getSourceCode();function n(s,i){let a=r.getTokenAfter(s,XG.isNotClosingParenToken),o=r.getTokenBefore(a);a.loc.start.line!==o.loc.end.line&&t.report({node:s,loc:a.loc,messageId:i})}return{MemberExpression(s){!s.computed||s.optional||n(s.object,"property")},TaggedTemplateExpression(s){let{quasi:i}=s;r.getTokenBefore(i).loc.end.line!==i.loc.start.line&&t.report({node:s,loc:{start:i.loc.start,end:{line:i.loc.start.line,column:i.loc.start.column+1}},messageId:"taggedTemplate"})},CallExpression(s){s.arguments.length===0||s.optional||n(s.callee,"function")},"BinaryExpression[operator='/'] > BinaryExpression[operator='/'].left"(s){let i=r.getTokenAfter(s,o=>o.value==="/"),a=r.getTokenAfter(i);a.type==="Identifier"&&e.test(a.value)&&i.range[1]===a.range[0]&&n(s.left,"division")}}}}});var QI=M((Use,JI)=>{b();v();"use strict";var ZG=Qo(),ez=pe(),tz=/(?:(?:Call|Class|Function|Member|New|Yield)Expression|Statement|Declaration)$/u,rz=/^(?:DoWhile|For|While)Statement$/u,sz=/^(?:BinaryExpression|ConditionalExpression)$/u,nz=/^(?:ArrowFunction|Class|Function)Expression$/u,iz=/^(?:Call|Member|New|TaggedTemplate|Yield)Expression$/u;function az(t){if(t.init){let e=t.resolved&&t.resolved.defs[0];if(!e||e.type!=="Variable"||e.parent.kind!=="var")return!1}return t.isWrite()}function oz(t){return!t.modified}function lz(t){return!(t.modified||t.group)}function Xl(t,e){let r=t.range,n=e.identifier.range;return r[0]<=n[0]&&n[1]<=r[1]}var uz={WhileStatement:Xl,DoWhileStatement:Xl,ForStatement(t,e){return Xl(t,e)&&!(t.init&&Xl(t.init,e))}};function cz(t){let e=t.identifier;for(;e;){if(e.type==="FunctionDeclaration")return e.id?e:null;e=e.parent}return null}function fz(t,e){for(let r=0;r<t.length;++r){let n=t[r];for(let s=0;!n.modified&&s<e.length;++s){let i=e[s],a,o,l=n.isInLoop(i)||Boolean((a=cz(i))&&(o=ez.getVariableByName(i.from.upper,a.id.name))&&o.references.some(n.isInLoop));n.modified=l}}}JI.exports={meta:{type:"problem",docs:{description:"disallow unmodified loop conditions",recommended:!1,url:"https://eslint.org/docs/rules/no-unmodified-loop-condition"},schema:[],messages:{loopConditionNotModified:"'{{name}}' is not modified in this loop."}},create(t){let e=t.getSourceCode(),r=null;function n(u){let c=u.reference.identifier;t.report({node:c,messageId:"loopConditionNotModified",data:c})}function s(u){for(let c=0;c<u.length;++c){let p=u[c];if(p.group){let h=r.get(p.group);h||(h=[],r.set(p.group,h)),h.push(p)}}}function i(u){u.every(oz)&&u.forEach(n)}function a(u){let c=!1;return ZG.traverse(u,{visitorKeys:e.visitorKeys,enter(p){iz.test(p.type)?(c=!0,this.break()):nz.test(p.type)&&this.skip()}}),c}function o(u){if(u.init)return null;let c=null,p=u.identifier,h=p.parent;for(;h;){if(tz.test(h.type)){if(rz.test(h.type)&&h.test===p)return{reference:u,group:c,isInLoop:uz[h.type].bind(null,h),modified:!1};break}if(sz.test(h.type)){if(a(h))break;c=h}p=h,h=h.parent}return null}function l(u){let c=u.references.map(o).filter(Boolean);if(c.length===0)return;s(c);let p=u.references.filter(az);p.length>0&&fz(c,p),c.filter(lz).forEach(n)}return{"Program:exit"(){let u=[t.getScope()];r=new Map;let c;for(;c=u.pop();)u.push(...c.childScopes),c.variables.forEach(l);r.forEach(i),r=null}}}}});var e_=M(($se,XI)=>{b();v();"use strict";var $r=pe(),pz=new Set(["==","===","!=","!==",">",">=","<","<=","in","instanceof"]),ZI={"==":"!=","!=":"==","===":"!==","!==":"==="},hz=$r.getPrecedence({type:"LogicalExpression",operator:"||"});XI.exports={meta:{type:"suggestion",docs:{description:"disallow ternary operators when simpler alternatives exist",recommended:!1,url:"https://eslint.org/docs/rules/no-unneeded-ternary"},schema:[{type:"object",properties:{defaultAssignment:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"code",messages:{unnecessaryConditionalExpression:"Unnecessary use of boolean literals in conditional expression.",unnecessaryConditionalAssignment:"Unnecessary use of conditional expression for default assignment."}},create(t){let r=(t.options[0]||{}).defaultAssignment!==!1,n=t.getSourceCode();function s(l){return l.type==="Literal"&&typeof l.value=="boolean"}function i(l){if(l.type==="BinaryExpression"&&Object.prototype.hasOwnProperty.call(ZI,l.operator)){let u=n.getFirstTokenBetween(l.left,l.right,p=>p.value===l.operator),c=n.getText();return c.slice(l.range[0],u.range[0])+ZI[l.operator]+c.slice(u.range[1],l.range[1])}return $r.getPrecedence(l)<$r.getPrecedence({type:"UnaryExpression"})?`!(${$r.getParenthesisedText(n,l)})`:`!${$r.getParenthesisedText(n,l)}`}function a(l){return l.type==="BinaryExpression"&&pz.has(l.operator)||l.type==="UnaryExpression"&&l.operator==="!"}function o(l){return l.test.type==="Identifier"&&l.consequent.type==="Identifier"&&l.test.name===l.consequent.name}return{ConditionalExpression(l){s(l.alternate)&&s(l.consequent)?t.report({node:l,messageId:"unnecessaryConditionalExpression",fix(u){return l.consequent.value===l.alternate.value?l.test.type==="Identifier"?u.replaceText(l,l.consequent.value.toString()):null:l.alternate.value?u.replaceText(l,i(l.test)):u.replaceText(l,a(l.test)?$r.getParenthesisedText(n,l.test):`!${i(l.test)}`)}}):!r&&o(l)&&t.report({node:l,messageId:"unnecessaryConditionalAssignment",fix:u=>{let p=($r.getPrecedence(l.alternate)<hz||$r.isCoalesceExpression(l.alternate))&&!$r.isParenthesised(n,l.alternate)?`(${n.getText(l.alternate)})`:$r.getParenthesisedText(n,l.alternate),h=$r.getParenthesisedText(n,l.test);return u.replaceText(l,`${h} || ${p}`)}})}}}}});var s_=M((Wse,t_)=>{b();v();"use strict";function mz(t){return Boolean(t.init)}function dz(t){return!t.reachable}var r_=class{constructor(e){this.sourceCode=e,this.startNode=null,this.endNode=null}get location(){return{start:this.startNode.loc.start,end:this.endNode.loc.end}}get isEmpty(){return!(this.startNode&&this.endNode)}contains(e){return e.range[0]>=this.startNode.range[0]&&e.range[1]<=this.endNode.range[1]}isConsecutive(e){return this.contains(this.sourceCode.getTokenBefore(e))}merge(e){this.endNode=e}reset(e){this.startNode=this.endNode=e}};t_.exports={meta:{type:"problem",docs:{description:"disallow unreachable code after `return`, `throw`, `continue`, and `break` statements",recommended:!0,url:"https://eslint.org/docs/rules/no-unreachable"},schema:[],messages:{unreachableCode:"Unreachable code."}},create(t){let e=null,r=null,n=new r_(t.getSourceCode());function s(i){let a=null;if(i&&(i.type==="PropertyDefinition"||e.currentSegments.every(dz))){if(n.isEmpty){n.reset(i);return}if(n.contains(i))return;if(n.isConsecutive(i)){n.merge(i);return}a=i}n.isEmpty||t.report({messageId:"unreachableCode",loc:n.location,node:n.startNode}),n.reset(a)}return{onCodePathStart(i){e=i},onCodePathEnd(){e=e.upper},BlockStatement:s,BreakStatement:s,ClassDeclaration:s,ContinueStatement:s,DebuggerStatement:s,DoWhileStatement:s,ExpressionStatement:s,ForInStatement:s,ForOfStatement:s,ForStatement:s,IfStatement:s,ImportDeclaration:s,LabeledStatement:s,ReturnStatement:s,SwitchStatement:s,ThrowStatement:s,TryStatement:s,VariableDeclaration(i){(i.kind!=="var"||i.declarations.some(mz))&&s(i)},WhileStatement:s,WithStatement:s,ExportNamedDeclaration:s,ExportDefaultDeclaration:s,ExportAllDeclaration:s,"Program:exit"(){s()},"MethodDefinition[kind='constructor']"(){r={upper:r,hasSuperCall:!1}},"MethodDefinition[kind='constructor']:exit"(i){let{hasSuperCall:a}=r;if(r=r.upper,!i.value.body)return;let o=i.parent.parent;if(o.superClass&&!a)for(let l of o.body.body)l.type==="PropertyDefinition"&&!l.static&&s(l)},"CallExpression > Super.callee"(){r&&(r.hasSuperCall=!0)}}}}});var a_=M((Gse,n_)=>{b();v();"use strict";var i_=["WhileStatement","DoWhileStatement","ForStatement","ForInStatement","ForOfStatement"];function gz(t){let e=t.parent;if(e)switch(e.type){case"WhileStatement":return t===e.test;case"DoWhileStatement":return t===e.body;case"ForStatement":return t===(e.update||e.test||e.body);case"ForInStatement":case"ForOfStatement":return t===e.left}return!1}function yz(t,e){return t.filter(r=>!e.includes(r))}n_.exports={meta:{type:"problem",docs:{description:"disallow loops with a body that allows only one iteration",recommended:!1,url:"https://eslint.org/docs/rules/no-unreachable-loop"},schema:[{type:"object",properties:{ignore:{type:"array",items:{enum:i_},uniqueItems:!0}},additionalProperties:!1}],messages:{invalid:"Invalid loop. Its body allows only one iteration."}},create(t){let e=t.options[0]&&t.options[0].ignore||[],r=yz(i_,e),n=r.join(","),s=new Map,i=new Set,a=null;return{onCodePathStart(o){a=o},onCodePathEnd(){a=a.upper},[n](o){a.currentSegments.some(l=>l.reachable)&&i.add(o)},onCodePathSegmentStart(o,l){if(gz(l)){let u=l.parent;s.set(o,u)}},onCodePathSegmentLoop(o,l,u){let c=s.get(l);(u===c||u.type==="ContinueStatement")&&i.delete(c)},"Program:exit"(){i.forEach(o=>t.report({node:o,messageId:"invalid"}))}}}}});var l_=M((zse,o_)=>{b();v();"use strict";var xz=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression)$/u,Ez=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement|SwitchStatement)$/u,bz=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement)$/u;o_.exports={meta:{type:"problem",docs:{description:"disallow control flow statements in `finally` blocks",recommended:!0,url:"https://eslint.org/docs/rules/no-unsafe-finally"},schema:[],messages:{unsafeUsage:"Unsafe usage of {{nodeType}}."}},create(t){function e(s){return s.parent.type==="TryStatement"&&s.parent.finalizer===s}function r(s,i){let a=!1,o;s.type==="BreakStatement"&&!s.label?o=Ez:s.type==="ContinueStatement"?o=bz:o=xz;for(let l=s;l&&!o.test(l.type);l=l.parent)if(l.parent.label&&i&&l.parent.label.name===i.name&&(a=!0),e(l))return!(i&&a);return!1}function n(s){r(s,s.label)&&t.report({messageId:"unsafeUsage",data:{nodeType:s.type},node:s,line:s.loc.line,column:s.loc.column})}return{ReturnStatement:n,ThrowStatement:n,BreakStatement:n,ContinueStatement:n}}}});var c_=M((Hse,u_)=>{b();v();"use strict";var vz=pe();function Cz(t){return t==="in"||t==="instanceof"}function Sz(t){return t==="<"||t===">"||t===">="||t==="<="}function Az(t){return t.type==="UnaryExpression"&&t.operator==="!"}u_.exports={meta:{type:"problem",docs:{description:"disallow negating the left operand of relational operators",recommended:!0,url:"https://eslint.org/docs/rules/no-unsafe-negation"},hasSuggestions:!0,schema:[{type:"object",properties:{enforceForOrderingRelations:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:null,messages:{unexpected:"Unexpected negating the left operand of '{{operator}}' operator.",suggestNegatedExpression:"Negate '{{operator}}' expression instead of its left operand. This changes the current behavior.",suggestParenthesisedNegation:"Wrap negation in '()' to make the intention explicit. This preserves the current behavior."}},create(t){let e=t.getSourceCode(),n=(t.options[0]||{}).enforceForOrderingRelations===!0;return{BinaryExpression(s){let i=s.operator,a=n&&Sz(i);(Cz(i)||a)&&Az(s.left)&&!vz.isParenthesised(e,s.left)&&t.report({node:s,loc:s.left.loc,messageId:"unexpected",data:{operator:i},suggest:[{messageId:"suggestNegatedExpression",data:{operator:i},fix(o){let u=[e.getFirstToken(s.left).range[1],s.range[1]],c=e.text.slice(u[0],u[1]);return o.replaceTextRange(u,`(${c})`)}},{messageId:"suggestParenthesisedNegation",fix(o){return o.replaceText(s.left,`(${e.getText(s.left)})`)}}]})}}}}});var m_=M((Kse,f_)=>{b();v();"use strict";var p_=new Set(["+","-","/","*","%","**"]),wz=new Set(["+=","-=","/=","*=","%=","**="]),kz=new Set(["in","instanceof"]);function h_(t){return t.type==="ObjectPattern"||t.type==="ArrayPattern"}f_.exports={meta:{type:"problem",docs:{description:"disallow use of optional chaining in contexts where the `undefined` value is not allowed",recommended:!0,url:"https://eslint.org/docs/rules/no-unsafe-optional-chaining"},schema:[{type:"object",properties:{disallowArithmeticOperators:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:null,messages:{unsafeOptionalChain:"Unsafe usage of optional chaining. If it short-circuits with 'undefined' the evaluation will throw TypeError.",unsafeArithmetic:"Unsafe arithmetic operation on optional chaining. It can result in NaN."}},create(t){let r=(t.options[0]||{}).disallowArithmeticOperators||!1;function n(l){t.report({messageId:"unsafeOptionalChain",node:l})}function s(l){t.report({messageId:"unsafeArithmetic",node:l})}function i(l,u){if(!!l)switch(l.type){case"LogicalExpression":l.operator==="||"||l.operator==="??"?i(l.right,u):l.operator==="&&"&&(i(l.left,u),i(l.right,u));break;case"SequenceExpression":i(l.expressions[l.expressions.length-1],u);break;case"ConditionalExpression":i(l.consequent,u),i(l.alternate,u);break;case"AwaitExpression":i(l.argument,u);break;case"ChainExpression":u(l);break;default:break}}function a(l){i(l,n)}function o(l){i(l,s)}return{"AssignmentExpression, AssignmentPattern"(l){h_(l.left)&&a(l.right)},"ClassDeclaration, ClassExpression"(l){a(l.superClass)},CallExpression(l){l.optional||a(l.callee)},NewExpression(l){a(l.callee)},VariableDeclarator(l){h_(l.id)&&a(l.init)},MemberExpression(l){l.optional||a(l.object)},TaggedTemplateExpression(l){a(l.tag)},ForOfStatement(l){a(l.right)},SpreadElement(l){l.parent&&l.parent.type!=="ObjectExpression"&&a(l.argument)},BinaryExpression(l){kz.has(l.operator)&&a(l.right),r&&p_.has(l.operator)&&(o(l.right),o(l.left))},WithStatement(l){a(l.object)},UnaryExpression(l){r&&p_.has(l.operator)&&o(l.argument)},AssignmentExpression(l){r&&wz.has(l.operator)&&o(l.right)}}}}});var g_=M((Yse,d_)=>{b();v();"use strict";function xr(){return!0}function Dz(){return!1}d_.exports={meta:{type:"suggestion",docs:{description:"disallow unused expressions",recommended:!1,url:"https://eslint.org/docs/rules/no-unused-expressions"},schema:[{type:"object",properties:{allowShortCircuit:{type:"boolean",default:!1},allowTernary:{type:"boolean",default:!1},allowTaggedTemplates:{type:"boolean",default:!1},enforceForJSX:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unusedExpression:"Expected an assignment or function call and instead saw an expression."}},create(t){let e=t.options[0]||{},r=e.allowShortCircuit||!1,n=e.allowTernary||!1,s=e.allowTaggedTemplates||!1,i=e.enforceForJSX||!1;function a(p){return p.type==="ExpressionStatement"&&p.expression.type==="Literal"&&typeof p.expression.value=="string"}function o(p,h){for(let f=0;f<h.length;++f)if(!p(h[f]))return h.slice(0,f);return h.slice()}function l(p){return o(a,p.body)}function u(p,h){let f=h[h.length-1],m=h[h.length-2];return(f.type==="Program"||f.type==="BlockStatement"&&/Function/u.test(m.type))&&l(f).indexOf(p)>=0}let c=Object.assign(Object.create(null),{isDisallowed(p){return(c[p.type]||Dz)(p)},ArrayExpression:xr,ArrowFunctionExpression:xr,BinaryExpression:xr,ChainExpression(p){return c.isDisallowed(p.expression)},ClassExpression:xr,ConditionalExpression(p){return n?c.isDisallowed(p.consequent)||c.isDisallowed(p.alternate):!0},FunctionExpression:xr,Identifier:xr,JSXElement(){return i},JSXFragment(){return i},Literal:xr,LogicalExpression(p){return r?c.isDisallowed(p.right):!0},MemberExpression:xr,MetaProperty:xr,ObjectExpression:xr,SequenceExpression:xr,TaggedTemplateExpression(){return!s},TemplateLiteral:xr,ThisExpression:xr,UnaryExpression(p){return p.operator!=="void"&&p.operator!=="delete"}});return{ExpressionStatement(p){c.isDisallowed(p.expression)&&!u(p,t.getAncestors())&&t.report({node:p,messageId:"unusedExpression"})}}}}});var x_=M((Jse,y_)=>{b();v();"use strict";y_.exports={meta:{type:"suggestion",docs:{description:"disallow unused labels",recommended:!0,url:"https://eslint.org/docs/rules/no-unused-labels"},schema:[],fixable:"code",messages:{unused:"'{{name}}:' is defined but never used."}},create(t){let e=t.getSourceCode(),r=null;function n(a){r={label:a.label.name,used:!1,upper:r}}function s(a){r.used||t.report({node:a.label,messageId:"unused",data:a.label,fix(o){return e.getTokenAfter(a.label,{includeComments:!0})===e.getTokenBefore(a.body,{includeComments:!0})?o.removeRange([a.range[0],a.body.range[0]]):null}}),r=r.upper}function i(a){if(!a.label)return;let o=a.label.name,l=r;for(;l;){if(l.label===o){l.used=!0;break}l=l.upper}}return{LabeledStatement:n,"LabeledStatement:exit":s,BreakStatement:i,ContinueStatement:i}}}});var b_=M((Qse,E_)=>{b();v();"use strict";E_.exports={meta:{type:"problem",docs:{description:"disallow unused private class members",recommended:!1,url:"https://eslint.org/docs/rules/no-unused-private-class-members"},schema:[],messages:{unusedPrivateClassMember:"'{{classMemberName}}' is defined but never used."}},create(t){let e=[];function r(n){let s=n.parent.parent,i=s.type==="AssignmentExpression";return!i&&s.type!=="ForInStatement"&&s.type!=="ForOfStatement"&&s.type!=="AssignmentPattern"||s.left!==n.parent?!1:i&&s.operator!=="="?s.parent.type==="ExpressionStatement":!0}return{ClassBody(n){let s=new Map;e.unshift(s);for(let i of n.body)(i.type==="PropertyDefinition"||i.type==="MethodDefinition")&&i.key.type==="PrivateIdentifier"&&s.set(i.key.name,{declaredNode:i,isAccessor:i.type==="MethodDefinition"&&(i.kind==="set"||i.kind==="get")})},PrivateIdentifier(n){let s=e.find(l=>l.has(n.name));if(!s)return;let i=s.get(n.name);if(i.isUsed||n.parent.type==="PropertyDefinition"||n.parent.type==="MethodDefinition")return;if(i.isAccessor){i.isUsed=!0;return}if(r(n))return;let a=n.parent.parent.type,o=n.parent.parent.parent.type;a==="UpdateExpression"&&o==="ExpressionStatement"||a==="Property"&&o==="ObjectPattern"&&n.parent.parent.value===n.parent||a!=="RestElement"&&a!=="ArrayPattern"&&(i.isUsed=!0)},"ClassBody:exit"(){let n=e.shift();for(let[s,{declaredNode:i,isUsed:a}]of n.entries())a||t.report({node:i,loc:i.key.loc,messageId:"unusedPrivateClassMember",data:{classMemberName:`#${s}`}})}}}}});var C_=M((Xse,v_)=>{b();v();"use strict";var Zl=pe();v_.exports={meta:{type:"problem",docs:{description:"disallow unused variables",recommended:!0,url:"https://eslint.org/docs/rules/no-unused-vars"},schema:[{oneOf:[{enum:["all","local"]},{type:"object",properties:{vars:{enum:["all","local"]},varsIgnorePattern:{type:"string"},args:{enum:["all","after-used","none"]},ignoreRestSiblings:{type:"boolean"},argsIgnorePattern:{type:"string"},caughtErrors:{enum:["all","none"]},caughtErrorsIgnorePattern:{type:"string"},destructuredArrayIgnorePattern:{type:"string"}},additionalProperties:!1}]}],messages:{unusedVar:"'{{varName}}' is {{action}} but never used{{additional}}."}},create(t){let e=t.getSourceCode(),r=/^(?:RestElement|(?:Experimental)?RestProperty)$/u,n={vars:"all",args:"after-used",ignoreRestSiblings:!1,caughtErrors:"none"},s=t.options[0];s&&(typeof s=="string"?n.vars=s:(n.vars=s.vars||n.vars,n.args=s.args||n.args,n.ignoreRestSiblings=s.ignoreRestSiblings||n.ignoreRestSiblings,n.caughtErrors=s.caughtErrors||n.caughtErrors,s.varsIgnorePattern&&(n.varsIgnorePattern=new RegExp(s.varsIgnorePattern,"u")),s.argsIgnorePattern&&(n.argsIgnorePattern=new RegExp(s.argsIgnorePattern,"u")),s.caughtErrorsIgnorePattern&&(n.caughtErrorsIgnorePattern=new RegExp(s.caughtErrorsIgnorePattern,"u")),s.destructuredArrayIgnorePattern&&(n.destructuredArrayIgnorePattern=new RegExp(s.destructuredArrayIgnorePattern,"u"))));function i(z){let q=z.defs&&z.defs[0]&&z.defs[0].type,W,_;q==="CatchClause"&&n.caughtErrorsIgnorePattern?(W="args",_=n.caughtErrorsIgnorePattern.toString()):q==="Parameter"&&n.argsIgnorePattern?(W="args",_=n.argsIgnorePattern.toString()):q!=="Parameter"&&n.varsIgnorePattern&&(W="vars",_=n.varsIgnorePattern.toString());let C=W?`. Allowed unused ${W} must match ${_}`:"";return{varName:z.name,action:"defined",additional:C}}function a(z){let q=z.defs[0],W="";return n.destructuredArrayIgnorePattern&&q&&q.name.parent.type==="ArrayPattern"?W=`. Allowed unused elements of array destructuring patterns must match ${n.destructuredArrayIgnorePattern.toString()}`:n.varsIgnorePattern&&(W=`. Allowed unused vars must match ${n.varsIgnorePattern.toString()}`),{varName:z.name,action:"assigned a value",additional:W}}let o=/(?:Statement|Declaration)$/u;function l(z){let q=z.defs[0];if(q){let W=q.node;if(W.type==="VariableDeclarator")W=W.parent;else if(q.type==="Parameter")return!1;return W.parent.type.indexOf("Export")===0}return!1}function u(z){return z.type==="Property"&&z.parent.type==="ObjectPattern"&&r.test(z.parent.properties[z.parent.properties.length-1].type)}function c(z){if(n.ignoreRestSiblings){let q=z.defs.some(_=>u(_.name.parent)),W=z.references.some(_=>u(_.identifier.parent));return q||W}return!1}function p(z){return z.isRead()}function h(z,q){let W=z.from;for(;W;){if(q.indexOf(W.block)>=0)return!0;W=W.upper}return!1}function f(z){let q=[];return z.defs.forEach(W=>{let{type:_,node:C}=W;_==="FunctionName"&&q.push(C),_==="Variable"&&C.init&&(C.init.type==="FunctionExpression"||C.init.type==="ArrowFunctionExpression")&&q.push(C.init)}),q}function m(z,q){return z.range[0]>=q.range[0]&&z.range[1]<=q.range[1]}function x(z){let q=z.parent;return q.type==="ExpressionStatement"?!0:q.type==="SequenceExpression"?q.expressions[q.expressions.length-1]===z?x(q):!0:!1}function E(z,q){let W=z.identifier,_=W.parent,C=z.from.variableScope,$=z.resolved.scope.variableScope,F=C!==$||Zl.isInLoop(W);return q&&m(W,q)?q:_.type==="AssignmentExpression"&&x(_)&&W===_.left&&!F?_.right:null}function S(z,q){let W=z,_=z.parent;for(;_&&m(_,q);){switch(_.type){case"SequenceExpression":if(_.expressions[_.expressions.length-1]!==W)return!1;break;case"CallExpression":case"NewExpression":return _.callee!==W;case"AssignmentExpression":case"TaggedTemplateExpression":case"YieldExpression":return!0;default:if(o.test(_.type))return!0}W=_,_=_.parent}return!1}function T(z,q){let W=Zl.getUpperFunction(z);return W&&m(W,q)&&S(W,q)}function I(z,q){let W=z.identifier,_=W.parent;return z.isRead()&&(_.type==="AssignmentExpression"&&_.left===W&&x(_)||_.type==="UpdateExpression"&&x(_)||q&&m(W,q)&&!T(W,q))}function y(z){let q=z.identifier.parent;return q.type==="VariableDeclarator"&&(q=q.parent.parent),q.type!=="ForInStatement"||(q.body.type==="BlockStatement"?q=q.body.body[0]:q=q.body,!q)?!1:q.type==="ReturnStatement"}function w(z){let q=f(z),W=q.length>0,_=null;return z.references.some(C=>{if(y(C))return!0;let $=I(C,_);return _=E(C,_),p(C)&&!$&&!(W&&h(C,q))})}function D(z){let q=z.defs[0],W=t.getDeclaredVariables(q.node);return!W.slice(W.indexOf(z)+1).some(C=>C.references.length>0||C.eslintUsed)}function R(z,q){let W=z.variables,_=z.childScopes,C,$;if(z.type!=="global"||n.vars==="all")for(C=0,$=W.length;C<$;++C){let F=W[C];if(z.type==="class"&&z.block.id===F.identifiers[0]||z.functionExpressionScope||F.eslintUsed||z.type==="function"&&F.name==="arguments"&&F.identifiers.length===0)continue;let U=F.defs[0];if(U){let Q=U.type,B=F.references.some(K=>K.identifier.parent.type==="ArrayPattern");if((U.name.parent.type==="ArrayPattern"||B)&&n.destructuredArrayIgnorePattern&&n.destructuredArrayIgnorePattern.test(U.name.name)||Q==="CatchClause"&&(n.caughtErrors==="none"||n.caughtErrorsIgnorePattern&&n.caughtErrorsIgnorePattern.test(U.name.name)))continue;if(Q==="Parameter"){if((U.node.parent.type==="Property"||U.node.parent.type==="MethodDefinition")&&U.node.parent.kind==="set"||n.args==="none"||n.argsIgnorePattern&&n.argsIgnorePattern.test(U.name.name)||n.args==="after-used"&&Zl.isFunction(U.name.parent)&&!D(F))continue}else if(n.varsIgnorePattern&&n.varsIgnorePattern.test(U.name.name))continue}!w(F)&&!l(F)&&!c(F)&&q.push(F)}for(C=0,$=_.length;C<$;++C)R(_[C],q);return q}return{"Program:exit"(z){let q=R(t.getScope(),[]);for(let W=0,_=q.length;W<_;++W){let C=q[W];if(C.defs.length>0){let $=C.references.filter(U=>U.isWrite()&&U.from.variableScope===C.scope.variableScope),F;$.length>0&&(F=$[$.length-1]),t.report({node:F?F.identifier:C.identifiers[0],messageId:"unusedVar",data:C.references.some(U=>U.isWrite())?a(C):i(C)})}else if(C.eslintExplicitGlobalComments){let $=C.eslintExplicitGlobalComments[0];t.report({node:z,loc:Zl.getNameLocationInGlobalDirectiveComment(e,$,C.name),messageId:"unusedVar",data:i(C)})}}}}}}});var w_=M((Zse,S_)=>{b();v();"use strict";var Tz=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u,Fz=/^For(?:In|Of)Statement$/u;function Pz(t){let e=!0,r=!0,n=!0;return typeof t=="string"?e=t!=="nofunc":typeof t=="object"&&t!==null&&(e=t.functions!==!1,r=t.classes!==!1,n=t.variables!==!1),{functions:e,classes:r,variables:n}}function xi(t,e){return t&&t.range[0]<=e&&e<=t.range[1]}function Iz(t,e){return t.body.some(r=>r.type==="StaticBlock"&&xi(r,e)||r.type==="PropertyDefinition"&&r.static&&r.value&&xi(r.value,e))}function _z(t){return t.type==="class-static-block"?!0:t.type==="class-field-initializer"?t.block.parent.static:!1}function A_(t){let e=t.resolved,r=t.from;for(;e.scope.variableScope!==r.variableScope;)if(_z(r.variableScope))r=r.variableScope.upper;else return!0;return!1}function Bz(t){if(A_(t))return!1;let e=t.identifier.range[1],r=t.resolved.defs[0];if(r.type==="ClassName"){let s=r.node;return xi(s,e)&&!Iz(s.body,e)}let n=r.name.parent;for(;n;){if(n.type==="VariableDeclarator"){if(xi(n.init,e)||Fz.test(n.parent.parent.type)&&xi(n.parent.parent.right,e))return!0;break}else if(n.type==="AssignmentPattern"){if(xi(n.right,e))return!0}else if(Tz.test(n.type))break;n=n.parent}return!1}S_.exports={meta:{type:"problem",docs:{description:"disallow the use of variables before they are defined",recommended:!1,url:"https://eslint.org/docs/rules/no-use-before-define"},schema:[{oneOf:[{enum:["nofunc"]},{type:"object",properties:{functions:{type:"boolean"},classes:{type:"boolean"},variables:{type:"boolean"}},additionalProperties:!1}]}],messages:{usedBeforeDefined:"'{{name}}' was used before it was defined."}},create(t){let e=Pz(t.options[0]);function r(s){if(s.init)return!1;let i=s.resolved;if(!i||i.defs.length===0)return!1;let a=i.defs[0].type;return!(!e.functions&&a==="FunctionName"||(!e.variables&&a==="Variable"||!e.classes&&a==="ClassName")&&A_(s))}function n(s){s.references.filter(r).forEach(i=>{let o=i.resolved.defs[0].name;(i.identifier.range[1]<o.range[1]||Bz(i))&&t.report({node:i.identifier,messageId:"usedBeforeDefined",data:i.identifier})}),s.childScopes.forEach(n)}return{Program(){n(t.getScope())}}}}});var P_=M((ene,k_)=>{b();v();"use strict";var{CALL:Oz,CONSTRUCT:Rz,ReferenceTracker:Lz,getStringIfConstant:D_}=Wt(),{RegExpParser:Nz,visitRegExpAST:Mz}=Ks(),jz=new Nz;function T_(t){let e=[],r=t;do e.push(r),r=r.parent;while(r);return e}function F_(t){return t.type==="Assertion"&&(t.kind==="lookahead"||t.kind==="lookbehind")}function qz(t){return F_(t)&&t.negate}k_.exports={meta:{type:"problem",docs:{description:"disallow useless backreferences in regular expressions",recommended:!0,url:"https://eslint.org/docs/rules/no-useless-backreference"},schema:[],messages:{nested:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' from within that group.",forward:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' which appears later in the pattern.",backward:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' which appears before in the same lookbehind.",disjunctive:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' which is in another alternative.",intoNegativeLookaround:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' which is in a negative lookaround."}},create(t){function e(r,n,s){let i;try{i=jz.parsePattern(n,0,n.length,s.includes("u"))}catch{return}Mz(i,{onBackreferenceEnter(a){let o=a.resolved,l=T_(a),u=T_(o),c=null;if(l.includes(o))c="nested";else{let p=l.length-1,h=u.length-1;do p--,h--;while(l[p]===u[h]);let f=h+1,m=u.slice(0,f),x=u.slice(f),E=x.find(F_),S=E&&E.kind==="lookbehind";!S&&a.end<=o.start?c="forward":S&&o.end<=a.start?c="backward":m[m.length-1].type==="Alternative"?c="disjunctive":m.some(qz)&&(c="intoNegativeLookaround")}c&&t.report({node:r,messageId:c,data:{bref:a.raw,group:o.raw}})}})}return{"Literal[regex]"(r){let{pattern:n,flags:s}=r.regex;e(r,n,s)},Program(){let r=t.getScope(),n=new Lz(r),s={RegExp:{[Oz]:!0,[Rz]:!0}};for(let{node:i}of n.iterateGlobalReferences(s)){let[a,o]=i.arguments,l=D_(a,r),u=D_(o,r);typeof l=="string"&&e(i,l,u||"")}}}}}});var __=M((tne,I_)=>{b();v();"use strict";var Aa=pe();function Vz(t){let e=Aa.skipChainExpression(t.callee);return e.type==="MemberExpression"&&e.property.type==="Identifier"&&e.computed===!1&&(e.property.name==="call"&&t.arguments.length>=1||e.property.name==="apply"&&t.arguments.length===2&&t.arguments[1].type==="ArrayExpression")}function Uz(t,e,r){return t?Aa.equalTokens(t,e,r):Aa.isNullOrUndefined(e)}I_.exports={meta:{type:"suggestion",docs:{description:"disallow unnecessary calls to `.call()` and `.apply()`",recommended:!1,url:"https://eslint.org/docs/rules/no-useless-call"},schema:[],messages:{unnecessaryCall:"Unnecessary '.{{name}}()'."}},create(t){let e=t.getSourceCode();return{CallExpression(r){if(!Vz(r))return;let n=Aa.skipChainExpression(r.callee),s=Aa.skipChainExpression(n.object),i=s.type==="MemberExpression"?s.object:null,a=r.arguments[0];Uz(i,a,e)&&t.report({node:r,messageId:"unnecessaryCall",data:{name:n.property.name}})}}}}});var O_=M((rne,B_)=>{b();v();"use strict";B_.exports={meta:{type:"suggestion",docs:{description:"disallow unnecessary `catch` clauses",recommended:!0,url:"https://eslint.org/docs/rules/no-useless-catch"},schema:[],messages:{unnecessaryCatchClause:"Unnecessary catch clause.",unnecessaryCatch:"Unnecessary try/catch wrapper."}},create(t){return{CatchClause(e){e.param&&e.param.type==="Identifier"&&e.body.body.length&&e.body.body[0].type==="ThrowStatement"&&e.body.body[0].argument.type==="Identifier"&&e.body.body[0].argument.name===e.param.name&&(e.parent.finalizer?t.report({node:e,messageId:"unnecessaryCatchClause"}):t.report({node:e.parent,messageId:"unnecessaryCatch"}))}}}}});var L_=M((sne,R_)=>{b();v();"use strict";var Ip=pe();function $z(t){if(!t.computed)return!1;let{key:e}=t;if(e.type!=="Literal")return!1;let{value:r}=e;if(typeof r!="number"&&typeof r!="string")return!1;switch(t.type){case"Property":return r!=="__proto__";case"PropertyDefinition":return t.static?r!=="constructor"&&r!=="prototype":r!=="constructor";case"MethodDefinition":return t.static?r!=="prototype":r!=="constructor";default:throw new Error(`Unexpected node type: ${t.type}`)}}R_.exports={meta:{type:"suggestion",docs:{description:"disallow unnecessary computed property keys in objects and classes",recommended:!1,url:"https://eslint.org/docs/rules/no-useless-computed-key"},schema:[{type:"object",properties:{enforceForClassMembers:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{unnecessarilyComputedProperty:"Unnecessarily computed property [{{property}}] found."}},create(t){let e=t.getSourceCode(),r=t.options[0]&&t.options[0].enforceForClassMembers;function n(i){if($z(i)){let{key:a}=i;t.report({node:i,messageId:"unnecessarilyComputedProperty",data:{property:e.getText(a)},fix(o){let l=e.getTokenBefore(a,Ip.isOpeningBracketToken),u=e.getTokenAfter(a,Ip.isClosingBracketToken);if(e.commentsExistBetween(l,u))return null;let c=e.getTokenBefore(l),h=(c.range[1]===l.range[0]&&!Ip.canTokensBeAdjacent(c,e.getFirstToken(a))?" ":"")+a.raw;return o.replaceTextRange([l.range[0],u.range[1]],h)}})}}function s(){}return{Property:n,MethodDefinition:r?n:s,PropertyDefinition:r?n:s}}}});var j_=M((nne,N_)=>{b();v();"use strict";var _p=pe();function M_(t){return t.type==="BinaryExpression"&&t.operator==="+"}function Wz(t){return t.value==="+"&&t.type==="Punctuator"}function Gz(t){let e=t.left;for(;M_(e);)e=e.right;return e}function zz(t){let e=t.right;for(;M_(e);)e=e.left;return e}N_.exports={meta:{type:"suggestion",docs:{description:"disallow unnecessary concatenation of literals or template literals",recommended:!1,url:"https://eslint.org/docs/rules/no-useless-concat"},schema:[],messages:{unexpectedConcat:"Unexpected string concatenation of literals."}},create(t){let e=t.getSourceCode();return{BinaryExpression(r){if(r.operator!=="+")return;let n=Gz(r),s=zz(r);if(_p.isStringLiteral(n)&&_p.isStringLiteral(s)&&_p.isTokenOnSameLine(n,s)){let i=e.getFirstTokenBetween(n,s,Wz);t.report({node:r,loc:i.loc,messageId:"unexpectedConcat"})}}}}}});var U_=M((ine,q_)=>{b();v();"use strict";function Hz(t){return t.length===1&&t[0].type==="ExpressionStatement"&&t[0].expression.type==="CallExpression"&&t[0].expression.callee.type==="Super"}function Kz(t){return t.type==="Identifier"||t.type==="RestElement"}function Yz(t){return t.length===1&&t[0].type==="SpreadElement"&&t[0].argument.type==="Identifier"&&t[0].argument.name==="arguments"}function V_(t,e){return t.type==="Identifier"&&e.type==="Identifier"&&t.name===e.name}function Jz(t,e){return t.type==="RestElement"&&e.type==="SpreadElement"&&V_(t.argument,e.argument)}function Qz(t,e){return V_(t,e)||Jz(t,e)}function Xz(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(!Qz(t[r],e[r]))return!1;return!0}function Zz(t,e){return Hz(t)&&e.every(Kz)&&(Yz(t[0].expression.arguments)||Xz(e,t[0].expression.arguments))}q_.exports={meta:{type:"suggestion",docs:{description:"disallow unnecessary constructors",recommended:!1,url:"https://eslint.org/docs/rules/no-useless-constructor"},schema:[],messages:{noUselessConstructor:"Useless constructor."}},create(t){function e(r){if(r.kind!=="constructor"||!r.value.body)return;let n=r.value.body.body,s=r.value.params;(r.parent.parent.superClass?Zz(n,s):n.length===0)&&t.report({node:r,messageId:"noUselessConstructor"})}return{MethodDefinition:e}}}});var z_=M((ane,$_)=>{b();v();"use strict";var eH=pe();function W_(t,e){return new Set(function*(){yield*t,yield*e}())}var tH=W_(new Set("\\nrvtbfux"),eH.LINEBREAKS),G_=new Set("\\bcdDfnpPrsStvwWxu0123456789]"),rH=W_(G_,new Set("^/.$*+?[{}|()Bk"));function sH(t){let e=[];return t.split("").reduce((r,n,s)=>{if(!r.escapeNextChar){if(n==="\\")return Object.assign(r,{escapeNextChar:!0});if(n==="["&&!r.inCharClass)return Object.assign(r,{inCharClass:!0,startingCharClass:!0});if(n==="]"&&r.inCharClass)return e.length&&e[e.length-1].inCharClass&&(e[e.length-1].endsCharClass=!0),Object.assign(r,{inCharClass:!1,startingCharClass:!1})}return e.push({text:n,index:s,escaped:r.escapeNextChar,inCharClass:r.inCharClass,startsCharClass:r.startingCharClass,endsCharClass:!1}),Object.assign(r,{escapeNextChar:!1,startingCharClass:!1})},{escapeNextChar:!1,inCharClass:!1,startingCharClass:!1}),e}$_.exports={meta:{type:"suggestion",docs:{description:"disallow unnecessary escape characters",recommended:!0,url:"https://eslint.org/docs/rules/no-useless-escape"},hasSuggestions:!0,messages:{unnecessaryEscape:"Unnecessary escape character: \\{{character}}.",removeEscape:"Remove the `\\`. This maintains the current functionality.",escapeBackslash:"Replace the `\\` with `\\\\` to include the actual backslash character."},schema:[]},create(t){let e=t.getSourceCode();function r(i,a,o){let l=i.range[0]+a,u=[l,l+1],c=e.getLocFromIndex(l);t.report({node:i,loc:{start:c,end:{line:c.line,column:c.column+1}},messageId:"unnecessaryEscape",data:{character:o},suggest:[{messageId:"removeEscape",fix(p){return p.removeRange(u)}},{messageId:"escapeBackslash",fix(p){return p.insertTextBeforeRange(u,"\\")}}]})}function n(i,a){let o=i.type==="TemplateElement",l=a[0][1],u=!tH.has(l),c;o?(c=l==="`",l==="$"?u=a.input[a.index+2]!=="{":l==="{"&&(u=a.input[a.index-1]!=="$")):c=l===i.raw[0],u&&!c&&r(i,a.index,a[0].slice(1))}function s(i){let a=i.type==="TemplateElement";if(!(a&&i.parent&&i.parent.parent&&i.parent.parent.type==="TaggedTemplateExpression"&&i.parent===i.parent.parent.quasi))if(typeof i.value=="string"||a){if(i.parent.type==="JSXAttribute"||i.parent.type==="JSXElement"||i.parent.type==="JSXFragment")return;let o=a?e.getText(i):i.raw,l=/\\[^\d]/gu,u;for(;u=l.exec(o);)n(i,u)}else i.regex&&sH(i.regex.pattern).filter(o=>!(o.text==="-"&&o.inCharClass&&!o.startsCharClass&&!o.endsCharClass)).filter(o=>!(o.text==="^"&&o.startsCharClass)).filter(o=>o.escaped).filter(o=>!(o.inCharClass?G_:rH).has(o.text)).forEach(o=>r(i,o.index,o.text))}return{Literal:s,TemplateElement:s}}}});var K_=M((one,H_)=>{b();v();"use strict";var eu=pe();H_.exports={meta:{type:"suggestion",docs:{description:"disallow renaming import, export, and destructured assignments to the same name",recommended:!1,url:"https://eslint.org/docs/rules/no-useless-rename"},fixable:"code",schema:[{type:"object",properties:{ignoreDestructuring:{type:"boolean",default:!1},ignoreImport:{type:"boolean",default:!1},ignoreExport:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unnecessarilyRenamed:"{{type}} {{name}} unnecessarily renamed."}},create(t){let e=t.getSourceCode(),r=t.options[0]||{},n=r.ignoreDestructuring===!0,s=r.ignoreImport===!0,i=r.ignoreExport===!0;function a(c,p,h){let f=p.type==="Identifier"?p.name:p.value;return t.report({node:c,messageId:"unnecessarilyRenamed",data:{name:f,type:h},fix(m){let x=c.type==="Property"?c.value:c.local;return e.getCommentsInside(c).length>e.getCommentsInside(x).length||x.type==="AssignmentPattern"&&eu.isParenthesised(e,x.left)?null:m.replaceText(c,e.getText(x))}})}function o(c){if(!n)for(let p of c.properties){if(p.type!=="Property"||p.shorthand||p.computed)continue;let h=p.key.type==="Identifier"&&p.key.name||p.key.type==="Literal"&&p.key.value,f=p.value.type==="AssignmentPattern"?p.value.left.name:p.value.name;h===f&&a(p,p.key,"Destructuring assignment")}}function l(c){s||c.imported.range[0]!==c.local.range[0]&&eu.getModuleExportName(c.imported)===c.local.name&&a(c,c.imported,"Import")}function u(c){i||c.local.range[0]!==c.exported.range[0]&&eu.getModuleExportName(c.local)===eu.getModuleExportName(c.exported)&&a(c,c.local,"Export")}return{ObjectPattern:o,ImportSpecifier:l,ExportSpecifier:u}}}});var J_=M((lne,Y_)=>{b();v();"use strict";var Bp=pe(),nH=yi();function iH(t,e){let r=t.indexOf(e);r!==-1&&t.splice(r,1)}function aH(t){return Bp.STATEMENT_LIST_PARENTS.has(t.parent.type)}function oH(t){for(let e=t;e&&e.parent&&!Bp.isFunction(e);e=e.parent)if(e.parent.type==="TryStatement"&&e.parent.finalizer===e)return!0;return!1}Y_.exports={meta:{type:"suggestion",docs:{description:"disallow redundant return statements",recommended:!1,url:"https://eslint.org/docs/rules/no-useless-return"},fixable:"code",schema:[],messages:{unnecessaryReturn:"Unnecessary return statement."}},create(t){let e=new WeakMap,r=new WeakSet,n=t.getSourceCode(),s=null;function i(u){let c=e.get(u);return!c||c.returned}function a(u,c,p){let h=p||new WeakSet;for(let f of c){if(!f.reachable){h.has(f)||(h.add(f),a(u,f.allPrevSegments.filter(i),h));continue}u.push(...e.get(f).uselessReturns)}return u}function o(u){if(!u.reachable){r.add(u),u.allPrevSegments.filter(i).filter(p=>!r.has(p)).forEach(o);return}let c=e.get(u);for(let p of c.uselessReturns)iH(s.uselessReturns,p);c.uselessReturns=[]}function l(){s.codePath.currentSegments.forEach(o)}return{onCodePathStart(u){s={upper:s,uselessReturns:[],codePath:u}},onCodePathEnd(){for(let u of s.uselessReturns)t.report({node:u,loc:u.loc,messageId:"unnecessaryReturn",fix(c){return aH(u)&&!n.getCommentsInside(u).length?new nH(c,n).retainEnclosingFunction(u).remove(u):null}});s=s.upper},onCodePathSegmentStart(u){let c={uselessReturns:a([],u.allPrevSegments),returned:!1};e.set(u,c)},ReturnStatement(u){if(u.argument&&l(),!(u.argument||Bp.isInLoop(u)||oH(u)||!s.codePath.currentSegments.some(c=>c.reachable))){for(let c of s.codePath.currentSegments){let p=e.get(c);p&&(p.uselessReturns.push(u),p.returned=!0)}s.uselessReturns.push(u)}},ClassDeclaration:l,ContinueStatement:l,DebuggerStatement:l,DoWhileStatement:l,EmptyStatement:l,ExpressionStatement:l,ForInStatement:l,ForOfStatement:l,ForStatement:l,IfStatement:l,ImportDeclaration:l,LabeledStatement:l,SwitchStatement:l,ThrowStatement:l,TryStatement:l,VariableDeclaration:l,WhileStatement:l,WithStatement:l,ExportNamedDeclaration:l,ExportDefaultDeclaration:l,ExportAllDeclaration:l}}}});var t2=M((une,Q_)=>{b();v();"use strict";var X_=pe();function lH(t){return Boolean(t.scope)&&t.scope.type==="global"}function Z_(t){let e=t;for(;e.type!=="function"&&e.type!=="global";)e=e.upper;return e}function uH(t){let e=Z_(t.scope);return t.references.some(r=>Z_(r.from)!==e)}function e2(t){return(t.parent.type==="ForOfStatement"||t.parent.type==="ForInStatement")&&t===t.parent.left}function cH(t){return t.declarations.every(e=>e.init!==null)}var fH=/^(?:Program|BlockStatement|SwitchStatement|ForStatement|ForInStatement|ForOfStatement)$/u;function pH(t){for(let e=t;e;e=e.parent)if(fH.test(e.type))return e;return null}function hH(t){return t.defs.length>=2}function mH(t){function e(r){let n=t.range,s=r.identifier.range;return s[0]<n[0]||s[1]>n[1]}return function(r){return r.references.some(e)}}function dH(t){let e=t.range[0],r=t.range[1];return n=>{let s=n.defs[0].name,i=s.range[0],a=s.parent.type==="AssignmentPattern"?s.parent.right:null,o=a&&a.range[0],l=a&&a.range[1];return n.references.some(u=>{let c=u.identifier.range[0],p=u.identifier.range[1];return!u.init&&(c<i||a!==null&&c>=o&&p<=l||c>=e&&p<=r)})}}function gH(t){return t.name==="let"}Q_.exports={meta:{type:"suggestion",docs:{description:"require `let` or `const` instead of `var`",recommended:!1,url:"https://eslint.org/docs/rules/no-var"},schema:[],fixable:"code",messages:{unexpectedVar:"Unexpected var, use let or const instead."}},create(t){let e=t.getSourceCode();function r(i){return i.init?t.getDeclaredVariables(i).some(dH(i.init)):!1}function n(i){let a=t.getDeclaredVariables(i),o=pH(i);return!(i.parent.type==="SwitchCase"||i.declarations.some(r)||a.some(lH)||a.some(hH)||a.some(mH(o))||a.some(gH)||X_.isInLoop(i)&&(a.some(uH)||!e2(i)&&!cH(i))||!e2(i)&&!(i.parent.type==="ForStatement"&&i.parent.init===i)&&!X_.STATEMENT_LIST_PARENTS.has(i.parent.type))}function s(i){t.report({node:i,messageId:"unexpectedVar",fix(a){let o=e.getFirstToken(i,{filter:l=>l.value==="var"});return n(i)?a.replaceText(o,"let"):null}})}return{"VariableDeclaration:exit"(i){i.kind==="var"&&s(i)}}}}});var s2=M((cne,r2)=>{b();v();"use strict";r2.exports={meta:{type:"suggestion",docs:{description:"disallow `void` operators",recommended:!1,url:"https://eslint.org/docs/rules/no-void"},messages:{noVoid:"Expected 'undefined' and instead saw 'void'."},schema:[{type:"object",properties:{allowAsStatement:{type:"boolean",default:!1}},additionalProperties:!1}]},create(t){let e=t.options[0]&&t.options[0].allowAsStatement;return{'UnaryExpression[operator="void"]'(r){e&&r.parent&&r.parent.type==="ExpressionStatement"||t.report({node:r,messageId:"noVoid"})}}}}});var i2=M((fne,n2)=>{b();v();"use strict";var yH=na(),xH=pe(),EH=40;n2.exports={meta:{type:"suggestion",docs:{description:"disallow specified warning terms in comments",recommended:!1,url:"https://eslint.org/docs/rules/no-warning-comments"},schema:[{type:"object",properties:{terms:{type:"array",items:{type:"string"}},location:{enum:["start","anywhere"]}},additionalProperties:!1}],messages:{unexpectedComment:"Unexpected '{{matchedTerm}}' comment: '{{comment}}'."}},create(t){let e=t.getSourceCode(),r=t.options[0]||{},n=r.terms||["todo","fixme","xxx"],s=r.location||"start",i=/\bno-warning-comments\b/u;function a(c){let p=yH(c),h="\\b",f=`|${h}`,m,x=/\w$/u.test(c)?"\\b":"";return s==="start"?m="^\\s*":/^\w/u.test(c)?m=h:m="",s==="start"?new RegExp(m+p+x,"iu"):new RegExp(m+p+x+f+c+h,"iu")}let o=n.map(a);function l(c){let p=[];return o.forEach((h,f)=>{h.test(c)&&p.push(n[f])}),p}function u(c){let p=c.value;if(xH.isDirectiveComment(c)&&i.test(p))return;l(p).forEach(f=>{let m="",x=!1;for(let E of p.trim().split(/\s+/u)){let S=m?`${m} ${E}`:E;if(S.length<=EH)m=S;else{x=!0;break}}t.report({node:c,messageId:"unexpectedComment",data:{matchedTerm:f,comment:`${m}${x?"...":""}`}})})}return{Program(){e.getAllComments().filter(p=>p.type!=="Shebang").forEach(u)}}}}});var o2=M((pne,a2)=>{b();v();"use strict";var Op=pe();a2.exports={meta:{type:"layout",docs:{description:"disallow whitespace before properties",recommended:!1,url:"https://eslint.org/docs/rules/no-whitespace-before-property"},fixable:"whitespace",schema:[],messages:{unexpectedWhitespace:"Unexpected whitespace before property {{propName}}."}},create(t){let e=t.getSourceCode();function r(n,s,i){t.report({node:n,messageId:"unexpectedWhitespace",data:{propName:e.getText(n.property)},fix(a){let o="";return!n.computed&&!n.optional&&Op.isDecimalInteger(n.object)||e.commentsExistBetween(s,i)?null:(n.optional?o="?.":n.computed||(o="."),a.replaceTextRange([s.range[1],i.range[0]],o))}})}return{MemberExpression(n){let s,i;!Op.isTokenOnSameLine(n.object,n.property)||(n.computed?(s=e.getTokenBefore(n.property,Op.isOpeningBracketToken),i=e.getTokenBefore(s,n.optional?1:0)):(s=e.getFirstToken(n.property),i=e.getTokenBefore(s,1)),e.isSpaceBetweenTokens(i,s)&&r(n,i,s))}}}}});var u2=M((hne,l2)=>{b();v();"use strict";l2.exports={meta:{type:"suggestion",docs:{description:"disallow `with` statements",recommended:!0,url:"https://eslint.org/docs/rules/no-with"},schema:[],messages:{unexpectedWith:"Unexpected use of 'with' statement."}},create(t){return{WithStatement(e){t.report({node:e,messageId:"unexpectedWith"})}}}}});var f2=M((mne,c2)=>{b();v();"use strict";var Ei={enum:["beside","below","any"]};c2.exports={meta:{type:"layout",docs:{description:"enforce the location of single-line statements",recommended:!1,url:"https://eslint.org/docs/rules/nonblock-statement-body-position"},fixable:"whitespace",schema:[Ei,{properties:{overrides:{properties:{if:Ei,else:Ei,while:Ei,do:Ei,for:Ei},additionalProperties:!1}},additionalProperties:!1}],messages:{expectNoLinebreak:"Expected no linebreak before this statement.",expectLinebreak:"Expected a linebreak before this statement."}},create(t){let e=t.getSourceCode();function r(s){return t.options[1]&&t.options[1].overrides&&t.options[1].overrides[s]||t.options[0]||"beside"}function n(s,i){let a=r(i);if(s.type==="BlockStatement"||a==="any")return;let o=e.getTokenBefore(s);o.loc.end.line===s.loc.start.line&&a==="below"?t.report({node:s,messageId:"expectLinebreak",fix:l=>l.insertTextBefore(s,`
|
|
94
|
+
`)}):o.loc.end.line!==s.loc.start.line&&a==="beside"&&t.report({node:s,messageId:"expectNoLinebreak",fix(l){return e.getText().slice(o.range[1],s.range[0]).trim()?null:l.replaceTextRange([o.range[1],s.range[0]]," ")}})}return{IfStatement(s){n(s.consequent,"if"),s.alternate&&s.alternate.type!=="IfStatement"&&n(s.alternate,"else")},WhileStatement:s=>n(s.body,"while"),DoWhileStatement:s=>n(s.body,"do"),ForStatement:s=>n(s.body,"for"),ForInStatement:s=>n(s.body,"for"),ForOfStatement:s=>n(s.body,"for")}}}});var m2=M((dne,p2)=>{b();v();"use strict";var bi=pe(),wa={oneOf:[{enum:["always","never"]},{type:"object",properties:{multiline:{type:"boolean"},minProperties:{type:"integer",minimum:0},consistent:{type:"boolean"}},additionalProperties:!1,minProperties:1}]};function ka(t){let e=!1,r=Number.POSITIVE_INFINITY,n=!1;return t?t==="always"?r=0:t==="never"?r=Number.POSITIVE_INFINITY:(e=Boolean(t.multiline),r=t.minProperties||Number.POSITIVE_INFINITY,n=Boolean(t.consistent)):n=!0,{multiline:e,minProperties:r,consistent:n}}function h2(t){return typeof t=="object"&&t!==null}function bH(t){return h2(t)||typeof t=="string"}function vH(t){if(h2(t)&&Object.values(t).some(bH))return{ObjectExpression:ka(t.ObjectExpression),ObjectPattern:ka(t.ObjectPattern),ImportDeclaration:ka(t.ImportDeclaration),ExportNamedDeclaration:ka(t.ExportDeclaration)};let e=ka(t);return{ObjectExpression:e,ObjectPattern:e,ImportDeclaration:e,ExportNamedDeclaration:e}}function CH(t,e,r,n){let s;return t.type==="ObjectExpression"||t.type==="ObjectPattern"?s=t.properties:s=t.specifiers.filter(i=>i.type==="ImportSpecifier"||i.type==="ExportSpecifier"),s.length>=e.minProperties||e.multiline&&s.length>0&&r.loc.start.line!==n.loc.end.line}p2.exports={meta:{type:"layout",docs:{description:"enforce consistent line breaks after opening and before closing braces",recommended:!1,url:"https://eslint.org/docs/rules/object-curly-newline"},fixable:"whitespace",schema:[{oneOf:[wa,{type:"object",properties:{ObjectExpression:wa,ObjectPattern:wa,ImportDeclaration:wa,ExportDeclaration:wa},additionalProperties:!1,minProperties:1}]}],messages:{unexpectedLinebreakBeforeClosingBrace:"Unexpected line break before this closing brace.",unexpectedLinebreakAfterOpeningBrace:"Unexpected line break after this opening brace.",expectedLinebreakBeforeClosingBrace:"Expected a line break before this closing brace.",expectedLinebreakAfterOpeningBrace:"Expected a line break after this opening brace."}},create(t){let e=t.getSourceCode(),r=vH(t.options[0]);function n(s){let i=r[s.type];if(s.type==="ImportDeclaration"&&!s.specifiers.some(f=>f.type==="ImportSpecifier")||s.type==="ExportNamedDeclaration"&&!s.specifiers.some(f=>f.type==="ExportSpecifier"))return;let a=e.getFirstToken(s,f=>f.value==="{"),o;s.typeAnnotation?o=e.getTokenBefore(s.typeAnnotation):o=e.getLastToken(s,f=>f.value==="}");let l=e.getTokenAfter(a,{includeComments:!0}),u=e.getTokenBefore(o,{includeComments:!0}),c=CH(s,i,l,u),p=bi.isCommentToken(l),h=bi.isCommentToken(u);if(l=e.getTokenAfter(a),u=e.getTokenBefore(o),c)bi.isTokenOnSameLine(a,l)&&t.report({messageId:"expectedLinebreakAfterOpeningBrace",node:s,loc:a.loc,fix(f){return p?null:f.insertTextAfter(a,`
|
|
95
|
+
`)}}),bi.isTokenOnSameLine(u,o)&&t.report({messageId:"expectedLinebreakBeforeClosingBrace",node:s,loc:o.loc,fix(f){return h?null:f.insertTextBefore(o,`
|
|
96
|
+
`)}});else{let f=i.consistent,m=!bi.isTokenOnSameLine(a,l),x=!bi.isTokenOnSameLine(u,o);(!f&&m||f&&m&&!x)&&t.report({messageId:"unexpectedLinebreakAfterOpeningBrace",node:s,loc:a.loc,fix(E){return p?null:E.removeRange([a.range[1],l.range[0]])}}),(!f&&x||f&&!m&&x)&&t.report({messageId:"unexpectedLinebreakBeforeClosingBrace",node:s,loc:o.loc,fix(E){return h?null:E.removeRange([u.range[1],o.range[0]])}})}}return{ObjectExpression:n,ObjectPattern:n,ImportDeclaration:n,ExportNamedDeclaration:n}}}});var g2=M((gne,d2)=>{b();v();"use strict";var In=pe();d2.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing inside braces",recommended:!1,url:"https://eslint.org/docs/rules/object-curly-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{arraysInObjects:{type:"boolean"},objectsInObjects:{type:"boolean"}},additionalProperties:!1}],messages:{requireSpaceBefore:"A space is required before '{{token}}'.",requireSpaceAfter:"A space is required after '{{token}}'.",unexpectedSpaceBefore:"There should be no space before '{{token}}'.",unexpectedSpaceAfter:"There should be no space after '{{token}}'."}},create(t){let e=t.options[0]==="always",r=t.getSourceCode();function n(m){return t.options[1]?t.options[1][m]===!e:!1}let s={spaced:e,arraysInObjectsException:n("arraysInObjects"),objectsInObjectsException:n("objectsInObjects")};function i(m,x){let E=t.getSourceCode().getTokenAfter(x,{includeComments:!0});t.report({node:m,loc:{start:x.loc.end,end:E.loc.start},messageId:"unexpectedSpaceAfter",data:{token:x.value},fix(S){return S.removeRange([x.range[1],E.range[0]])}})}function a(m,x){let E=t.getSourceCode().getTokenBefore(x,{includeComments:!0});t.report({node:m,loc:{start:E.loc.end,end:x.loc.start},messageId:"unexpectedSpaceBefore",data:{token:x.value},fix(S){return S.removeRange([E.range[1],x.range[0]])}})}function o(m,x){t.report({node:m,loc:x.loc,messageId:"requireSpaceAfter",data:{token:x.value},fix(E){return E.insertTextAfter(x," ")}})}function l(m,x){t.report({node:m,loc:x.loc,messageId:"requireSpaceBefore",data:{token:x.value},fix(E){return E.insertTextBefore(x," ")}})}function u(m,x,E,S,T){if(In.isTokenOnSameLine(x,E)){let I=r.isSpaceBetweenTokens(x,E);s.spaced&&!I&&o(m,x),!s.spaced&&I&&E.type!=="Line"&&i(m,x)}if(In.isTokenOnSameLine(S,T)){let y=(s.arraysInObjectsException&&In.isClosingBracketToken(S)||s.objectsInObjectsException&&In.isClosingBraceToken(S))&&r.getNodeByRangeIndex(S.range[0]).type,w=s.arraysInObjectsException&&y==="ArrayExpression"||s.objectsInObjectsException&&(y==="ObjectExpression"||y==="ObjectPattern")?!s.spaced:s.spaced,D=r.isSpaceBetweenTokens(S,T);w&&!D&&l(m,T),!w&&D&&a(m,T)}}function c(m){let x=m.properties[m.properties.length-1];return r.getTokenAfter(x,In.isClosingBraceToken)}function p(m){if(m.properties.length===0)return;let x=r.getFirstToken(m),E=c(m),S=r.getTokenAfter(x,{includeComments:!0}),T=r.getTokenBefore(E,{includeComments:!0});u(m,x,S,T,E)}function h(m){if(m.specifiers.length===0)return;let x=m.specifiers[0],E=m.specifiers[m.specifiers.length-1];if(E.type!=="ImportSpecifier")return;x.type!=="ImportSpecifier"&&(x=m.specifiers[1]);let S=r.getTokenBefore(x),T=r.getTokenAfter(E,In.isNotCommaToken),I=r.getTokenAfter(S,{includeComments:!0}),y=r.getTokenBefore(T,{includeComments:!0});u(m,S,I,y,T)}function f(m){if(m.specifiers.length===0)return;let x=m.specifiers[0],E=m.specifiers[m.specifiers.length-1],S=r.getTokenBefore(x),T=r.getTokenAfter(E,In.isNotCommaToken),I=r.getTokenAfter(S,{includeComments:!0}),y=r.getTokenBefore(T,{includeComments:!0});u(m,S,I,y,T)}return{ObjectPattern:p,ObjectExpression:p,ImportDeclaration:h,ExportNamedDeclaration:f}}}});var x2=M((yne,y2)=>{b();v();"use strict";y2.exports={meta:{type:"layout",docs:{description:"enforce placing object properties on separate lines",recommended:!1,url:"https://eslint.org/docs/rules/object-property-newline"},schema:[{type:"object",properties:{allowAllPropertiesOnSameLine:{type:"boolean",default:!1},allowMultiplePropertiesPerLine:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"whitespace",messages:{propertiesOnNewlineAll:"Object properties must go on a new line if they aren't all on the same line.",propertiesOnNewline:"Object properties must go on a new line."}},create(t){let e=t.options[0]&&(t.options[0].allowAllPropertiesOnSameLine||t.options[0].allowMultiplePropertiesPerLine),r=e?"propertiesOnNewlineAll":"propertiesOnNewline",n=t.getSourceCode();return{ObjectExpression(s){if(e&&s.properties.length>1){let i=n.getFirstToken(s.properties[0]),a=n.getLastToken(s.properties[s.properties.length-1]);if(i.loc.end.line===a.loc.start.line)return}for(let i=1;i<s.properties.length;i++){let a=n.getLastToken(s.properties[i-1]),o=n.getFirstToken(s.properties[i]);a.loc.end.line===o.loc.start.line&&t.report({node:s,loc:o.loc,messageId:r,fix(l){let c=[n.getTokenBefore(o).range[1],o.range[0]];return n.text.slice(c[0],c[1]).trim()?null:l.replaceTextRange(c,`
|
|
97
|
+
`)}})}}}}}});var b2=M((xne,E2)=>{b();v();"use strict";var Js={always:"always",never:"never",methods:"methods",properties:"properties",consistent:"consistent",consistentAsNeeded:"consistent-as-needed"},vi=pe();E2.exports={meta:{type:"suggestion",docs:{description:"require or disallow method and property shorthand syntax for object literals",recommended:!1,url:"https://eslint.org/docs/rules/object-shorthand"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["always","methods","properties","never","consistent","consistent-as-needed"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["always","methods","properties"]},{type:"object",properties:{avoidQuotes:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2},{type:"array",items:[{enum:["always","methods"]},{type:"object",properties:{ignoreConstructors:{type:"boolean"},avoidQuotes:{type:"boolean"},avoidExplicitReturnArrows:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{expectedAllPropertiesShorthanded:"Expected shorthand for all properties.",expectedLiteralMethodLongform:"Expected longform method syntax for string literal keys.",expectedPropertyShorthand:"Expected property shorthand.",expectedPropertyLongform:"Expected longform property syntax.",expectedMethodShorthand:"Expected method shorthand.",expectedMethodLongform:"Expected longform method syntax.",unexpectedMix:"Unexpected mix of shorthand and non-shorthand properties."}},create(t){let e=t.options[0]||Js.always,r=e===Js.methods||e===Js.always,n=e===Js.properties||e===Js.always,s=e===Js.never,i=e===Js.consistent,a=e===Js.consistentAsNeeded,o=t.options[1]||{},l=o.ignoreConstructors,u=o.avoidQuotes,c=!!o.avoidExplicitReturnArrows,p=t.getSourceCode(),h=/[^_$0-9]/u;function f(_){let C=h.exec(_);if(!C)return!1;let $=_.charAt(C.index);return $===$.toUpperCase()}function m(_){return _.kind!=="set"&&_.kind!=="get"&&_.type!=="SpreadElement"&&_.type!=="SpreadProperty"&&_.type!=="ExperimentalSpreadProperty"}function x(_){return _.type==="Literal"&&typeof _.value=="string"}function E(_){return _.shorthand||_.method}function S(_){let C=_.value;return C.type==="FunctionExpression"?!C.id:C.type==="Identifier"?vi.getStaticPropertyName(_)===C.name:!1}function T(_,C){let $=_.properties.filter(m);if($.length>0){let F=$.filter(E);F.length!==$.length&&(F.length>0?t.report({node:_,messageId:"unexpectedMix"}):C&&$.every(S)&&t.report({node:_,messageId:"expectedAllPropertiesShorthanded"}))}}function I(_,C){let $=C.computed?p.getFirstToken(C,vi.isOpeningBracketToken):p.getFirstToken(C.key),F=C.computed?p.getFirstTokenBetween(C.key,C.value,vi.isClosingBracketToken):p.getLastToken(C.key),U=p.text.slice($.range[0],F.range[1]),Q="";if(p.commentsExistBetween(F,C.value))return null;C.value.async&&(Q+="async "),C.value.generator&&(Q+="*");let B=[$.range[0],C.range[1]],K=Q+U;if(C.value.type==="FunctionExpression"){let ne=p.getTokens(C.value).find(re=>re.type==="Keyword"&&re.value==="function"),ue=C.value.generator?p.getTokenAfter(ne):ne;return _.replaceTextRange(B,K+p.text.slice(ue.range[1],C.value.range[1]))}let X=p.getTokenBefore(C.value.body,vi.isArrowToken),ie=p.text.slice(X.range[1],C.value.range[1]),ve=!1,Ae;if(C.value.params.length===0?Ae=p.getFirstToken(C.value,vi.isOpeningParenToken):Ae=p.getTokenBefore(C.value.params[0]),C.value.params.length===1){let ne=vi.isOpeningParenToken(Ae),ue=Ae.range[0]<C.range[0];ve=!ne||ue}let me=ve?C.value.params[0].range[0]:Ae.range[0],ce=p.getTokenBefore(X).range[1],Fe=p.text.slice(me,ce),te=ve?`(${Fe})`:Fe;return _.replaceTextRange(B,K+te+ie)}function y(_,C){let $=C.computed?p.getTokens(C).find(B=>B.value==="["):p.getFirstToken(C.key),F=C.computed?p.getTokensBetween(C.key,C.value).find(B=>B.value==="]"):p.getLastToken(C.key),U=p.text.slice($.range[0],F.range[1]),Q="function";return C.value.async&&(Q=`async ${Q}`),C.value.generator&&(Q=`${Q}*`),_.replaceTextRange([C.range[0],F.range[1]],`${U}: ${Q}`)}let w=[],D=new WeakSet,R=new WeakSet;function z(){w.unshift(new Set),t.getScope().variables.filter(_=>_.name==="arguments").forEach(_=>{_.references.map(C=>C.identifier).forEach(C=>R.add(C))})}function q(){w.shift()}function W(){w[0].forEach(_=>D.add(_))}return{Program:z,FunctionDeclaration:z,FunctionExpression:z,"Program:exit":q,"FunctionDeclaration:exit":q,"FunctionExpression:exit":q,ArrowFunctionExpression(_){w[0].add(_)},"ArrowFunctionExpression:exit"(_){w[0].delete(_)},ThisExpression:W,Super:W,MetaProperty(_){_.meta.name==="new"&&_.property.name==="target"&&W()},Identifier(_){R.has(_)&&W()},ObjectExpression(_){i?T(_,!1):a&&T(_,!0)},"Property:exit"(_){let C=_.method||_.shorthand;if(_.parent.type!=="ObjectPattern"&&!(_.kind==="get"||_.kind==="set")&&!(_.computed&&_.value.type!=="FunctionExpression"&&_.value.type!=="ArrowFunctionExpression")){if(C)if(_.method&&(s||u&&x(_.key))){let $=s?"expectedMethodLongform":"expectedLiteralMethodLongform";t.report({node:_,messageId:$,fix:F=>y(F,_)})}else s&&t.report({node:_,messageId:"expectedPropertyLongform",fix:$=>$.insertTextAfter(_.key,`: ${_.key.name}`)});else if(r&&!_.value.id&&(_.value.type==="FunctionExpression"||_.value.type==="ArrowFunctionExpression")){if(l&&_.key.type==="Identifier"&&f(_.key.name)||u&&x(_.key))return;(_.value.type==="FunctionExpression"||_.value.type==="ArrowFunctionExpression"&&_.value.body.type==="BlockStatement"&&c&&!D.has(_.value))&&t.report({node:_,messageId:"expectedMethodShorthand",fix:$=>I($,_)})}else if(_.value.type==="Identifier"&&_.key.name===_.value.name&&n)t.report({node:_,messageId:"expectedPropertyShorthand",fix($){return $.replaceText(_,_.value.name)}});else if(_.value.type==="Identifier"&&_.key.type==="Literal"&&_.key.value===_.value.name&&n){if(u)return;t.report({node:_,messageId:"expectedPropertyShorthand",fix($){return $.replaceText(_,_.value.name)}})}}}}}}});var C2=M((Ene,v2)=>{b();v();"use strict";var SH=pe();function AH(t){return SH.STATEMENT_LIST_PARENTS.has(t.parent.type)}v2.exports={meta:{type:"suggestion",docs:{description:"enforce variables to be declared either together or separately in functions",recommended:!1,url:"https://eslint.org/docs/rules/one-var"},fixable:"code",schema:[{oneOf:[{enum:["always","never","consecutive"]},{type:"object",properties:{separateRequires:{type:"boolean"},var:{enum:["always","never","consecutive"]},let:{enum:["always","never","consecutive"]},const:{enum:["always","never","consecutive"]}},additionalProperties:!1},{type:"object",properties:{initialized:{enum:["always","never","consecutive"]},uninitialized:{enum:["always","never","consecutive"]}},additionalProperties:!1}]}],messages:{combineUninitialized:"Combine this with the previous '{{type}}' statement with uninitialized variables.",combineInitialized:"Combine this with the previous '{{type}}' statement with initialized variables.",splitUninitialized:"Split uninitialized '{{type}}' declarations into multiple statements.",splitInitialized:"Split initialized '{{type}}' declarations into multiple statements.",splitRequires:"Split requires to be separated into a single block.",combine:"Combine this with the previous '{{type}}' statement.",split:"Split '{{type}}' declarations into multiple statements."}},create(t){let e="always",r="never",n="consecutive",s=t.options[0]||e,i={};typeof s=="string"?(i.var={uninitialized:s,initialized:s},i.let={uninitialized:s,initialized:s},i.const={uninitialized:s,initialized:s}):typeof s=="object"&&(i.separateRequires=!!s.separateRequires,i.var={uninitialized:s.var,initialized:s.var},i.let={uninitialized:s.let,initialized:s.let},i.const={uninitialized:s.const,initialized:s.const},Object.prototype.hasOwnProperty.call(s,"uninitialized")&&(i.var.uninitialized=s.uninitialized,i.let.uninitialized=s.uninitialized,i.const.uninitialized=s.uninitialized),Object.prototype.hasOwnProperty.call(s,"initialized")&&(i.var.initialized=s.initialized,i.let.initialized=s.initialized,i.const.initialized=s.initialized));let a=t.getSourceCode(),o=[],l=[];function u(){l.push({let:{initialized:!1,uninitialized:!1},const:{initialized:!1,uninitialized:!1}})}function c(){o.push({initialized:!1,uninitialized:!1}),u()}function p(){l.pop()}function h(){o.pop(),p()}function f(w){return w.init&&w.init.type==="CallExpression"&&w.init.callee.name==="require"}function m(w,D,R){for(let z=0;z<D.length;z++)D[z].init===null?i[w]&&i[w].uninitialized===e&&(R.uninitialized=!0):i[w]&&i[w].initialized===e&&(i.separateRequires&&f(D[z])?R.required=!0:R.initialized=!0)}function x(w){let D;return w==="var"?D=o[o.length-1]:w==="let"?D=l[l.length-1].let:w==="const"&&(D=l[l.length-1].const),D}function E(w){let D={uninitialized:0,initialized:0};for(let R=0;R<w.length;R++)w[R].init===null?D.uninitialized++:D.initialized++;return D}function S(w,D){let R=E(D),z=i[w]||{},q=x(w),W=D.some(f);return z.uninitialized===e&&z.initialized===e&&(q.uninitialized||q.initialized)&&!W||R.uninitialized>0&&z.uninitialized===e&&q.uninitialized||R.initialized>0&&z.initialized===e&&q.initialized&&!W||q.required&&W?!1:(m(w,D,q),!0)}function T(w){let D=w[0],R=Array.isArray(D.parent.parent.body)?D.parent.parent.body:[],z=R.findIndex(W=>W.range[0]===D.parent.range[0]),q=R[z-1];return W=>{let _=a.getTokenBefore(D),C=a.getTokenBefore(_),$=[];return q&&q.kind===a.getText(_)&&(C.value===";"?$.push(W.replaceText(C,",")):$.push(W.insertTextAfter(C,",")),$.push(W.replaceText(_,""))),$}}function I(w){let{parent:D}=w;return AH(D.type==="ExportNamedDeclaration"?D:w)?R=>w.declarations.map(z=>{let q=a.getTokenAfter(z);if(q===null)return null;let W=a.getTokenAfter(q,{includeComments:!0});if(q.value!==",")return null;let _=w.parent.type==="ExportNamedDeclaration"?"export ":"";if(W.range[0]===q.range[1])return R.replaceText(q,`; ${_}${w.kind} `);if(W.loc.start.line>q.loc.end.line||W.type==="Line"||W.type==="Block"){let C=W;for(;C.type==="Line"||C.type==="Block";)C=a.getTokenAfter(C,{includeComments:!0});return R.replaceTextRange([q.range[0],C.range[0]],`;${a.text.slice(q.range[1],C.range[0])}${_}${w.kind} `)}return R.replaceText(q,`; ${_}${w.kind}`)}).filter(z=>z):null}function y(w){let D=w.parent,R=w.kind;if(!i[R])return;let z=w.declarations,q=E(z),W=z.some(f)&&!z.every(f);i[R].initialized===e&&i.separateRequires&&W&&t.report({node:w,messageId:"splitRequires"});let _=D.body&&D.body.length>0&&D.body.indexOf(w)||0;if(_>0){let C=D.body[_-1],$=C.type==="VariableDeclaration",F=z.concat(C.declarations||[]);if($&&C.kind===R&&!(F.some(f)&&!F.every(f))){let U=E(C.declarations);i[R].initialized===n&&i[R].uninitialized===n?t.report({node:w,messageId:"combine",data:{type:R},fix:T(z)}):i[R].initialized===n&&q.initialized>0&&U.initialized>0?t.report({node:w,messageId:"combineInitialized",data:{type:R},fix:T(z)}):i[R].uninitialized===n&&q.uninitialized>0&&U.uninitialized>0&&t.report({node:w,messageId:"combineUninitialized",data:{type:R},fix:T(z)})}}if(!S(R,z)){if(i[R].initialized===e&&i[R].uninitialized===e)t.report({node:w,messageId:"combine",data:{type:R},fix:T(z)});else if(i[R].initialized===e&&q.initialized>0&&t.report({node:w,messageId:"combineInitialized",data:{type:R},fix:T(z)}),i[R].uninitialized===e&&q.uninitialized>0){if(w.parent.left===w&&(w.parent.type==="ForInStatement"||w.parent.type==="ForOfStatement"))return;t.report({node:w,messageId:"combineUninitialized",data:{type:R},fix:T(z)})}}(D.type!=="ForStatement"||D.init!==w)&&q.uninitialized+q.initialized>1&&(i[R].initialized===r&&i[R].uninitialized===r?t.report({node:w,messageId:"split",data:{type:R},fix:I(w)}):i[R].initialized===r&&q.initialized>0?t.report({node:w,messageId:"splitInitialized",data:{type:R},fix:I(w)}):i[R].uninitialized===r&&q.uninitialized>0&&t.report({node:w,messageId:"splitUninitialized",data:{type:R},fix:I(w)}))}return{Program:c,FunctionDeclaration:c,FunctionExpression:c,ArrowFunctionExpression:c,StaticBlock:c,BlockStatement:u,ForStatement:u,ForInStatement:u,ForOfStatement:u,SwitchStatement:u,VariableDeclaration:y,"ForStatement:exit":p,"ForOfStatement:exit":p,"ForInStatement:exit":p,"SwitchStatement:exit":p,"BlockStatement:exit":p,"Program:exit":h,"FunctionDeclaration:exit":h,"FunctionExpression:exit":h,"ArrowFunctionExpression:exit":h,"StaticBlock:exit":h}}}});var A2=M((bne,S2)=>{b();v();"use strict";S2.exports={meta:{type:"suggestion",docs:{description:"require or disallow newlines around variable declarations",recommended:!1,url:"https://eslint.org/docs/rules/one-var-declaration-per-line"},schema:[{enum:["always","initializations"]}],fixable:"whitespace",messages:{expectVarOnNewline:"Expected variable declaration to be on a new line."}},create(t){let e=t.options[0]==="always";function r(s){return s==="ForStatement"||s==="ForInStatement"||s==="ForOfStatement"}function n(s){if(r(s.parent.type))return;let i=s.declarations,a;i.forEach(o=>{a&&a.loc.end.line===o.loc.start.line&&(e||a.init||o.init)&&t.report({node:s,messageId:"expectVarOnNewline",loc:o.loc,fix:l=>l.insertTextBefore(o,`
|
|
98
|
+
`)}),a=o})}return{VariableDeclaration:n}}}});var D2=M((vne,w2)=>{b();v();"use strict";var _n=pe();function k2(t){return["*","&","^","|"].indexOf(t)>=0}function wH(t){return["+","-","/","%","<<",">>",">>>","**"].indexOf(t)>=0}function Rp(t){return t.type==="Identifier"||t.type==="MemberExpression"&&(t.object.type==="Identifier"||t.object.type==="ThisExpression")&&(!t.computed||t.property.type==="Literal")}w2.exports={meta:{type:"suggestion",docs:{description:"require or disallow assignment operator shorthand where possible",recommended:!1,url:"https://eslint.org/docs/rules/operator-assignment"},schema:[{enum:["always","never"]}],fixable:"code",messages:{replaced:"Assignment (=) can be replaced with operator assignment ({{operator}}=).",unexpected:"Unexpected operator assignment ({{operator}}=) shorthand."}},create(t){let e=t.getSourceCode();function r(i){return e.getFirstTokenBetween(i.left,i.right,a=>a.value===i.operator)}function n(i){if(i.operator!=="="||i.right.type!=="BinaryExpression")return;let a=i.left,o=i.right,l=o.operator;(k2(l)||wH(l))&&(_n.isSameReference(a,o.left,!0)?t.report({node:i,messageId:"replaced",data:{operator:l},fix(u){if(Rp(a)&&Rp(o.left)){let c=r(i),p=r(o),h=e.getText().slice(i.range[0],c.range[0]),f=e.getText().slice(p.range[1],i.right.range[1]);return e.commentsExistBetween(c,p)?null:u.replaceText(i,`${h}${o.operator}=${f}`)}return null}}):_n.isSameReference(a,o.right,!0)&&k2(l)&&t.report({node:i,messageId:"replaced",data:{operator:l}}))}function s(i){i.operator!=="="&&!_n.isLogicalAssignmentOperator(i.operator)&&t.report({node:i,messageId:"unexpected",data:{operator:i.operator},fix(a){if(Rp(i.left)){let o=e.getFirstToken(i),l=r(i),u=e.getText().slice(i.range[0],l.range[0]),c=i.operator.slice(0,-1),p;if(e.commentsExistBetween(o,l))return null;if(_n.getPrecedence(i.right)<=_n.getPrecedence({type:"BinaryExpression",operator:c})&&!_n.isParenthesised(e,i.right))p=`${e.text.slice(l.range[1],i.right.range[0])}(${e.getText(i.right)})`;else{let h=e.getTokenAfter(l,{includeComments:!0}),f="";l.range[1]===h.range[0]&&!_n.canTokensBeAdjacent({type:"Punctuator",value:c},h)&&(f=" "),p=`${f}${e.text.slice(l.range[1],i.range[1])}`}return a.replaceText(i,`${u}= ${u}${c}${p}`)}return null}})}return{AssignmentExpression:t.options[0]!=="never"?n:s}}}});var F2=M((Cne,T2)=>{b();v();"use strict";var vs=pe();T2.exports={meta:{type:"layout",docs:{description:"enforce consistent linebreak style for operators",recommended:!1,url:"https://eslint.org/docs/rules/operator-linebreak"},schema:[{enum:["after","before","none",null]},{type:"object",properties:{overrides:{type:"object",additionalProperties:{enum:["after","before","none","ignore"]}}},additionalProperties:!1}],fixable:"code",messages:{operatorAtBeginning:"'{{operator}}' should be placed at the beginning of the line.",operatorAtEnd:"'{{operator}}' should be placed at the end of the line.",badLinebreak:"Bad line breaking before and after '{{operator}}'.",noLinebreak:"There should be no line break before or after '{{operator}}'."}},create(t){let e=!t.options[0],r=t.options[0]||"after",n=t.options[1]||{},s=n.overrides?Object.assign({},n.overrides):{};e&&!s["?"]&&(s["?"]="before"),e&&!s[":"]&&(s[":"]="before");let i=t.getSourceCode();function a(u,c){return p=>{let h=i.getTokenBefore(u),f=i.getTokenAfter(u),m=i.text.slice(h.range[1],u.range[0]),x=i.text.slice(u.range[1],f.range[0]),E=!vs.isTokenOnSameLine(h,u),S=!vs.isTokenOnSameLine(u,f),T,I;if(E!==S&&c!=="none"){if(i.getTokenBefore(u,{includeComments:!0})!==h&&i.getTokenAfter(u,{includeComments:!0})!==f)return null;T=x,I=m}else{let y=vs.createGlobalLinebreakMatcher();if(T=c==="before"||m.trim()?m:m.replace(y,""),I=c==="after"||x.trim()?x:x.replace(y,""),T===m&&I===x)return null}return I===""&&f.type==="Punctuator"&&"+-".includes(u.value)&&f.value===u.value&&(I+=" "),p.replaceTextRange([h.range[1],f.range[0]],T+u.value+I)}}function o(u,c,p){let h=i.getTokenBefore(c,T=>T.value===p),f=i.getTokenBefore(h),m=i.getTokenAfter(h),x=s[p],E=x||r,S=a(h,E);vs.isTokenOnSameLine(f,h)&&vs.isTokenOnSameLine(h,m)||(x!=="ignore"&&!vs.isTokenOnSameLine(f,h)&&!vs.isTokenOnSameLine(h,m)?t.report({node:u,loc:h.loc,messageId:"badLinebreak",data:{operator:p},fix:S}):E==="before"&&vs.isTokenOnSameLine(f,h)?t.report({node:u,loc:h.loc,messageId:"operatorAtBeginning",data:{operator:p},fix:S}):E==="after"&&vs.isTokenOnSameLine(h,m)?t.report({node:u,loc:h.loc,messageId:"operatorAtEnd",data:{operator:p},fix:S}):E==="none"&&t.report({node:u,loc:h.loc,messageId:"noLinebreak",data:{operator:p},fix:S}))}function l(u){o(u,u.right,u.operator)}return{BinaryExpression:l,LogicalExpression:l,AssignmentExpression:l,VariableDeclarator(u){u.init&&o(u,u.init,"=")},PropertyDefinition(u){u.value&&o(u,u.value,"=")},ConditionalExpression(u){o(u,u.consequent,"?"),o(u,u.alternate,":")}}}}});var I2=M((Sne,P2)=>{b();v();"use strict";var kH=pe();P2.exports={meta:{type:"layout",docs:{description:"require or disallow padding within blocks",recommended:!1,url:"https://eslint.org/docs/rules/padded-blocks"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{blocks:{enum:["always","never"]},switches:{enum:["always","never"]},classes:{enum:["always","never"]}},additionalProperties:!1,minProperties:1}]},{type:"object",properties:{allowSingleLineBlocks:{type:"boolean"}},additionalProperties:!1}],messages:{alwaysPadBlock:"Block must be padded by blank lines.",neverPadBlock:"Block must not be padded by blank lines."}},create(t){let e={},r=t.options[0]||"always",n=t.options[1]||{};if(typeof r=="string"){let f=r==="always";e.blocks=f,e.switches=f,e.classes=f}else Object.prototype.hasOwnProperty.call(r,"blocks")&&(e.blocks=r.blocks==="always"),Object.prototype.hasOwnProperty.call(r,"switches")&&(e.switches=r.switches==="always"),Object.prototype.hasOwnProperty.call(r,"classes")&&(e.classes=r.classes==="always");Object.prototype.hasOwnProperty.call(n,"allowSingleLineBlocks")&&(e.allowSingleLineBlocks=n.allowSingleLineBlocks===!0);let s=t.getSourceCode();function i(f){return f.type==="SwitchStatement"?s.getTokenBefore(f.cases[0]):f.type==="StaticBlock"?s.getFirstToken(f,{skip:1}):s.getFirstToken(f)}function a(f){return f.type==="Line"||f.type==="Block"}function o(f,m){return m.loc.start.line-f.loc.end.line>=2}function l(f){let m,x=f;do m=x,x=s.getTokenAfter(x,{includeComments:!0});while(a(x)&&x.loc.start.line===m.loc.end.line);return x}function u(f){let m=f,x;do x=m,m=s.getTokenBefore(m,{includeComments:!0});while(a(m)&&m.loc.end.line===x.loc.start.line);return m}function c(f){switch(f.type){case"BlockStatement":case"StaticBlock":return e.blocks;case"SwitchStatement":return e.switches;case"ClassBody":return e.classes;default:throw new Error("unreachable")}}function p(f){let m=i(f),x=l(m),E=s.getTokenBefore(x,{includeComments:!0}),S=s.getLastToken(f),T=u(S),I=s.getTokenAfter(T,{includeComments:!0}),y=o(E,x),w=o(T,I);e.allowSingleLineBlocks&&kH.isTokenOnSameLine(E,I)||(c(f)?(y||t.report({node:f,loc:{start:E.loc.start,end:x.loc.start},fix(D){return D.insertTextAfter(E,`
|
|
99
|
+
`)},messageId:"alwaysPadBlock"}),w||t.report({node:f,loc:{end:I.loc.start,start:T.loc.end},fix(D){return D.insertTextBefore(I,`
|
|
100
|
+
`)},messageId:"alwaysPadBlock"})):(y&&t.report({node:f,loc:{start:E.loc.start,end:x.loc.start},fix(D){return D.replaceTextRange([E.range[1],x.range[0]-x.loc.start.column],`
|
|
101
|
+
`)},messageId:"neverPadBlock"}),w&&t.report({node:f,loc:{end:I.loc.start,start:T.loc.end},messageId:"neverPadBlock",fix(D){return D.replaceTextRange([T.range[1],I.range[0]-I.loc.start.column],`
|
|
102
|
+
`)}})))}let h={};return Object.prototype.hasOwnProperty.call(e,"switches")&&(h.SwitchStatement=function(f){f.cases.length!==0&&p(f)}),Object.prototype.hasOwnProperty.call(e,"blocks")&&(h.BlockStatement=function(f){f.body.length!==0&&p(f)},h.StaticBlock=h.BlockStatement),Object.prototype.hasOwnProperty.call(e,"classes")&&(h.ClassBody=function(f){f.body.length!==0&&p(f)}),h}}});var M2=M((Ane,_2)=>{b();v();"use strict";var Pr=pe(),B2=`[${Array.from(Pr.LINEBREAKS).join("")}]`,DH=new RegExp(String.raw`^(\s*?${B2})\s*${B2}(\s*;?)$`,"u"),TH=/^(?:module\s*\.\s*)?exports(?:\s*\.|\s*\[|$)/u,FH=/^require\(/u;function jt(t){return{test:(e,r)=>r.getFirstToken(e).value===t}}function Lp(t){return{test:(e,r)=>e.loc.start.line===e.loc.end.line&&r.getFirstToken(e).value===t}}function Np(t){return{test:(e,r)=>e.loc.start.line!==e.loc.end.line&&r.getFirstToken(e).value===t}}function Mp(t){return{test:e=>e.type===t}}function O2(t){if(t.type==="ExpressionStatement"){let e=Pr.skipChainExpression(t.expression);return e.type==="UnaryExpression"&&(e=Pr.skipChainExpression(e.argument)),e.type==="CallExpression"&&Pr.isFunction(e.callee)}return!1}function R2(t,e){if(e.type==="DoWhileStatement"&&e.body.type==="BlockStatement"||O2(e))return!0;let r=t.getLastToken(e,Pr.isNotSemicolonToken),n=r&&Pr.isClosingBraceToken(r)?t.getNodeByRangeIndex(r.range[0]):null;return Boolean(n)&&(n.type==="BlockStatement"||n.type==="SwitchStatement")}function L2(t,e){return t.type==="ExpressionStatement"&&(t.parent.type==="Program"||t.parent.type==="BlockStatement"&&Pr.isFunction(t.parent.parent))&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&!Pr.isParenthesised(e,t.expression)}function jp(t,e){if(L2(t,e)){for(let r of t.parent.body){if(r===t)break;if(!L2(r,e))return!1}return!0}return!1}function N2(t,e){let r=t.getLastToken(e),n=t.getTokenBefore(r),s=t.getTokenAfter(r);return Boolean(n&&s&&n.range[0]>=e.range[0]&&Pr.isSemicolonToken(r)&&r.loc.start.line!==n.loc.end.line&&r.loc.end.line===s.loc.start.line)?n:r}function PH(t,e,r){return e+r}function IH(){}function _H(t,e,r,n){n.length!==0&&t.report({node:r,messageId:"unexpectedBlankLine",fix(s){if(n.length>=2)return null;let i=n[0][0],a=n[0][1],o=i.range[1],l=a.range[0],u=t.getSourceCode().text.slice(o,l).replace(DH,PH);return s.replaceTextRange([o,l],u)}})}function BH(t,e,r,n){n.length>0||t.report({node:r,messageId:"expectedBlankLine",fix(s){let i=t.getSourceCode(),a=N2(i,e),o=i.getFirstTokenBetween(a,r,{includeComments:!0,filter(u){return Pr.isTokenOnSameLine(a,u)?(a=u,!1):!0}})||r,l=Pr.isTokenOnSameLine(a,o)?`
|
|
103
|
+
|
|
104
|
+
`:`
|
|
105
|
+
`;return s.insertTextAfter(a,l)}})}var qp={any:{verify:IH},never:{verify:_H},always:{verify:BH}},Vp={"*":{test:()=>!0},"block-like":{test:(t,e)=>R2(e,t)},"cjs-export":{test:(t,e)=>t.type==="ExpressionStatement"&&t.expression.type==="AssignmentExpression"&&TH.test(e.getText(t.expression.left))},"cjs-import":{test:(t,e)=>t.type==="VariableDeclaration"&&t.declarations.length>0&&Boolean(t.declarations[0].init)&&FH.test(e.getText(t.declarations[0].init))},directive:{test:jp},expression:{test:(t,e)=>t.type==="ExpressionStatement"&&!jp(t,e)},iife:{test:O2},"multiline-block-like":{test:(t,e)=>t.loc.start.line!==t.loc.end.line&&R2(e,t)},"multiline-expression":{test:(t,e)=>t.loc.start.line!==t.loc.end.line&&t.type==="ExpressionStatement"&&!jp(t,e)},"multiline-const":Np("const"),"multiline-let":Np("let"),"multiline-var":Np("var"),"singleline-const":Lp("const"),"singleline-let":Lp("let"),"singleline-var":Lp("var"),block:Mp("BlockStatement"),empty:Mp("EmptyStatement"),function:Mp("FunctionDeclaration"),break:jt("break"),case:jt("case"),class:jt("class"),const:jt("const"),continue:jt("continue"),debugger:jt("debugger"),default:jt("default"),do:jt("do"),export:jt("export"),for:jt("for"),if:jt("if"),import:jt("import"),let:jt("let"),return:jt("return"),switch:jt("switch"),throw:jt("throw"),try:jt("try"),var:jt("var"),while:jt("while"),with:jt("with")};_2.exports={meta:{type:"layout",docs:{description:"require or disallow padding lines between statements",recommended:!1,url:"https://eslint.org/docs/rules/padding-line-between-statements"},fixable:"whitespace",schema:{definitions:{paddingType:{enum:Object.keys(qp)},statementType:{anyOf:[{enum:Object.keys(Vp)},{type:"array",items:{enum:Object.keys(Vp)},minItems:1,uniqueItems:!0,additionalItems:!1}]}},type:"array",items:{type:"object",properties:{blankLine:{$ref:"#/definitions/paddingType"},prev:{$ref:"#/definitions/statementType"},next:{$ref:"#/definitions/statementType"}},additionalProperties:!1,required:["blankLine","prev","next"]},additionalItems:!1},messages:{unexpectedBlankLine:"Unexpected blank line before this statement.",expectedBlankLine:"Expected blank line before this statement."}},create(t){let e=t.getSourceCode(),r=t.options||[],n=null;function s(){n={upper:n,prevNode:null}}function i(){n=n.upper}function a(p,h){let f=p;for(;f.type==="LabeledStatement";)f=f.body;return Array.isArray(h)?h.some(a.bind(null,f)):Vp[h].test(f,e)}function o(p,h){for(let f=r.length-1;f>=0;--f){let m=r[f];if(a(p,m.prev)&&a(h,m.next))return qp[m.blankLine]}return qp.any}function l(p,h){let f=[],m=N2(e,p);if(h.loc.start.line-m.loc.end.line>=2)do{let x=e.getTokenAfter(m,{includeComments:!0});x.loc.start.line-m.loc.end.line>=2&&f.push([m,x]),m=x}while(m.range[0]<h.range[0]);return f}function u(p){let h=p.parent.type;if(!(Pr.STATEMENT_LIST_PARENTS.has(h)||h==="SwitchStatement"))return;let m=n.prevNode;if(m){let x=o(m,p),E=l(m,p);x.verify(t,m,p,E)}n.prevNode=p}function c(p){u(p),s()}return{Program:s,BlockStatement:s,SwitchStatement:s,StaticBlock:s,"Program:exit":i,"BlockStatement:exit":i,"SwitchStatement:exit":i,"StaticBlock:exit":i,":statement":u,SwitchCase:c,"SwitchCase:exit":i}}}});var q2=M((wne,j2)=>{b();v();"use strict";var Ci=pe();function OH(t){return t&&t.defs[0].type==="FunctionName"}function RH(t,e,r){return t.meta.name===e&&t.property.name===r}function LH(t){let e=t.variables;for(let r=0;r<e.length;++r){let n=e[r];if(n.name==="arguments")return n.identifiers.length===0?n:null}return null}function NH(t){let e={isCallback:!1,isLexicalThis:!1},r=t,n=t.parent,s=!1;for(;r;){switch(n.type){case"LogicalExpression":case"ChainExpression":case"ConditionalExpression":break;case"MemberExpression":if(n.object===r&&!n.property.computed&&n.property.type==="Identifier"&&n.property.name==="bind"){let i=n.parent.type==="ChainExpression"?n.parent:n;if(Ci.isCallee(i))s||(s=!0,e.isLexicalThis=i.parent.arguments.length===1&&i.parent.arguments[0].type==="ThisExpression"),n=i.parent;else return e}else return e;break;case"CallExpression":case"NewExpression":return n.callee!==r&&(e.isCallback=!0),e;default:return e}r=n,n=n.parent}throw new Error("unreachable")}function MH(t){return t.every(e=>e.type==="Identifier")&&t.length!==new Set(t.map(e=>e.name)).size}j2.exports={meta:{type:"suggestion",docs:{description:"require using arrow functions for callbacks",recommended:!1,url:"https://eslint.org/docs/rules/prefer-arrow-callback"},schema:[{type:"object",properties:{allowNamedFunctions:{type:"boolean",default:!1},allowUnboundThis:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"code",messages:{preferArrowCallback:"Unexpected function expression."}},create(t){let e=t.options[0]||{},r=e.allowUnboundThis!==!1,n=e.allowNamedFunctions,s=t.getSourceCode(),i=[];function a(){i.push({this:!1,super:!1,meta:!1})}function o(){return i.pop()}return{Program(){i=[]},ThisExpression(){let l=i[i.length-1];l&&(l.this=!0)},Super(){let l=i[i.length-1];l&&(l.super=!0)},MetaProperty(l){let u=i[i.length-1];u&&RH(l,"new","target")&&(u.meta=!0)},FunctionDeclaration:a,"FunctionDeclaration:exit":o,FunctionExpression:a,"FunctionExpression:exit"(l){let u=o();if(n&&l.id&&l.id.name||l.generator)return;let c=t.getDeclaredVariables(l)[0];if(OH(c)&&c.references.length>0)return;let p=LH(t.getScope());if(p&&p.references.length>0)return;let h=NH(l);h.isCallback&&(!r||!u.this||h.isLexicalThis)&&!u.super&&!u.meta&&t.report({node:l,messageId:"preferArrowCallback",*fix(f){if(!h.isLexicalThis&&u.this||MH(l.params))return;if(h.isLexicalThis){let S=l.parent;if(S.type!=="MemberExpression")return;let T=S.parent,I=s.getTokenAfter(S.object,Ci.isNotClosingParenToken),y=s.getLastToken(T);if(Ci.isParenthesised(s,S)||s.commentsExistBetween(I,y))return;yield f.removeRange([I.range[0],y.range[1]])}let m=s.getFirstToken(l,l.async?1:0),x=s.getTokenAfter(m,Ci.isOpeningParenToken);s.commentsExistBetween(m,x)?(yield f.remove(m),l.id&&(yield f.remove(l.id))):yield f.removeRange([m.range[0],x.range[0]]),yield f.insertTextBefore(l.body,"=> ");let E=h.isLexicalThis?l.parent.parent:l;E.type==="ChainExpression"&&(E=E.parent),E.parent.type!=="CallExpression"&&E.parent.type!=="ConditionalExpression"&&!Ci.isParenthesised(s,E)&&!Ci.isParenthesised(s,l)&&(yield f.insertTextBefore(E,"("),yield f.insertTextAfter(E,")"))}})}}}}});var z2=M((kne,V2)=>{b();v();"use strict";var jH=yi(),qH=pe(),U2=/^(?:.+?Pattern|RestElement|SpreadProperty|ExperimentalRestProperty|Property)$/u,VH=/^(?:Program|BlockStatement|StaticBlock|SwitchCase)$/u,UH=/^(?:VariableDeclarator|AssignmentExpression)$/u;function $H(t){return t.parent.type==="ForStatement"&&t.parent.init===t}function WH(t){let e=t.parent;for(;U2.test(e.type);)e=e.parent;return e.type==="VariableDeclarator"||e.type==="AssignmentExpression"&&e.parent.type==="ExpressionStatement"&&VH.test(e.parent.parent.type)}function $2(t,e){if(e.through.find(n=>n.resolved&&n.resolved.name===t))return!0;let r=qH.getVariableByName(e,t);return r!==null?r.defs.some(n=>n.type==="Parameter"):!1}function W2(t){if(!t.isWrite())return null;let e=t.identifier.parent;for(;U2.test(e.type);)e=e.parent;return UH.test(e.type)?e:null}function Da(t){switch(t.type){case"ObjectPattern":return t.properties.some(e=>e?Da(e.argument||e.value):!1);case"ArrayPattern":return t.elements.some(e=>e?Da(e):!1);case"AssignmentPattern":return Da(t.left);case"MemberExpression":return!0}return!1}function GH(t,e){if(t.eslintUsed&&t.scope.type==="global")return null;let r=null,n=!1,s=t.references;for(let a=0;a<s.length;++a){let o=s[a];if(o.isWrite()){if(r!==null&&r.identifier!==o.identifier)return null;let u=W2(o);if(u!==null&&u.left!==void 0){let c=u.left,p=!1,h=!1;if(c.type==="ObjectPattern"?(p=c.properties.filter(m=>m.value).map(m=>m.value.name).some(m=>$2(m,t.scope)),h=Da(c)):c.type==="ArrayPattern"&&(p=c.elements.map(m=>m&&m.name).some(m=>$2(m,t.scope)),h=Da(c)),p||h)return null}r=o}else if(o.isRead()&&r===null){if(e)return null;n=!0}}return r!==null&&r.from===t.scope&&WH(r.identifier)?n?t.defs[0].name:r.identifier:null}function zH(t,e){let r=new Map;for(let n=0;n<t.length;++n){let s=t[n],i=s.references,a=GH(s,e),o=null;for(let l=0;l<i.length;++l){let u=i[l],c=u.identifier;if(c===o)continue;o=c;let p=W2(u);p&&(r.has(p)?r.get(p).push(a):r.set(p,[a]))}}return r}function G2(t,e,r){return!t||r(t)?null:t.type===e?t:G2(t.parent,e,r)}V2.exports={meta:{type:"suggestion",docs:{description:"require `const` declarations for variables that are never reassigned after declared",recommended:!1,url:"https://eslint.org/docs/rules/prefer-const"},fixable:"code",schema:[{type:"object",properties:{destructuring:{enum:["any","all"],default:"any"},ignoreReadBeforeAssign:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{useConst:"'{{name}}' is never reassigned. Use 'const' instead."}},create(t){let e=t.options[0]||{},r=t.getSourceCode(),n=e.destructuring!=="all",s=e.ignoreReadBeforeAssign===!0,i=[],a=0,o=null,l="";function u(c){let p=c.filter(Boolean);if(c.length&&(n||p.length===c.length)){let h=G2(c[0],"VariableDeclaration",x=>x.type.endsWith("Statement")),f=h===null;if(!f&&h.declarations.length>0){let x=h.declarations[0];if(x.init){let E=x.init.parent;E.type==="VariableDeclarator"&&(E.id.name!==l&&(l=E.id.name,a=0),E.id.type==="ObjectPattern"&&E.init.name!==l&&(l=E.init.name,a=0),E.id!==o&&(o=E.id,a=0))}}let m=h&&(h.parent.type==="ForInStatement"||h.parent.type==="ForOfStatement"||h.declarations.every(x=>x.init))&&p.length===c.length;!f&&h.declarations&&h.declarations.length!==1&&h&&h.declarations&&h.declarations.length>=1&&(a+=p.length,m=m&&a===h.declarations.length),p.forEach(x=>{t.report({node:x,messageId:"useConst",data:x,fix:m?E=>{let S=r.getFirstToken(h,T=>T.value===h.kind);return new jH(E,r).retainRange(h.range).replaceTextRange(S.range,"const")}:null})})}}return{"Program:exit"(){zH(i,s).forEach(u)},VariableDeclaration(c){c.kind==="let"&&!$H(c)&&i.push(...t.getDeclaredVariables(c))}}}}});var Y2=M((Dne,H2)=>{b();v();"use strict";var K2=pe(),HH=K2.getPrecedence({type:"AssignmentExpression"});H2.exports={meta:{type:"suggestion",docs:{description:"require destructuring from arrays and/or objects",recommended:!1,url:"https://eslint.org/docs/rules/prefer-destructuring"},fixable:"code",schema:[{oneOf:[{type:"object",properties:{VariableDeclarator:{type:"object",properties:{array:{type:"boolean"},object:{type:"boolean"}},additionalProperties:!1},AssignmentExpression:{type:"object",properties:{array:{type:"boolean"},object:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},{type:"object",properties:{array:{type:"boolean"},object:{type:"boolean"}},additionalProperties:!1}]},{type:"object",properties:{enforceForRenamedProperties:{type:"boolean"}},additionalProperties:!1}],messages:{preferDestructuring:"Use {{type}} destructuring."}},create(t){let e=t.options[0],r=t.options[1]&&t.options[1].enforceForRenamedProperties,n={VariableDeclarator:{array:!0,object:!0},AssignmentExpression:{array:!0,object:!0}};e&&(n=typeof e.array!="undefined"||typeof e.object!="undefined"?{VariableDeclarator:e,AssignmentExpression:e}:e);function s(h,f){return n&&n[h]&&n[h][f]}function i(h){return Number.isInteger(h.property.value)}function a(h,f,m){t.report({node:h,messageId:"preferDestructuring",data:{type:f},fix:m})}function o(h){return h.type==="VariableDeclarator"&&h.id.type==="Identifier"&&h.init.type==="MemberExpression"&&!h.init.computed&&h.init.property.type==="Identifier"&&h.id.name===h.init.property.name}function l(h,f){let m=f.init,x=t.getSourceCode();if(x.getCommentsInside(f).length>x.getCommentsInside(m.object).length)return null;let E=x.getText(m.object);return K2.getPrecedence(m.object)<HH&&(E=`(${E})`),h.replaceText(f,`{${m.property.name}} = ${E}`)}function u(h,f,m){if(f.type!=="MemberExpression"||f.object.type==="Super"||f.property.type==="PrivateIdentifier")return;if(i(f)){s(m.type,"array")&&a(m,"array",null);return}let x=o(m)?E=>l(E,m):null;if(s(m.type,"object")&&r){a(m,"object",x);return}if(s(m.type,"object")){let E=f.property;(E.type==="Literal"&&h.name===E.value||E.type==="Identifier"&&h.name===E.name&&!f.computed)&&a(m,"object",x)}}function c(h){!h.init||h.init.type==="MemberExpression"&&u(h.id,h.init,h)}function p(h){h.operator==="="&&u(h.left,h.right,h)}return{VariableDeclarator:c,AssignmentExpression:p}}}});var Q2=M((Tne,J2)=>{b();v();"use strict";var Bn=pe(),{CALL:KH,ReferenceTracker:YH}=Wt(),Up=Bn.getPrecedence({type:"BinaryExpression",operator:"**"});function JH(t){return Bn.getPrecedence(t)<=Up||t.type==="AwaitExpression"||t.type==="UnaryExpression"}function QH(t){return Bn.getPrecedence(t)<Up}function XH(t,e){let r=t.parent.type==="ChainExpression"?t.parent.parent:t.parent;return(r.type==="ClassDeclaration"||r.type.endsWith("Expression")&&Bn.getPrecedence(r)>=Up&&!(r.type==="BinaryExpression"&&r.operator==="**"&&r.right===t)&&!((r.type==="CallExpression"||r.type==="NewExpression")&&r.arguments.includes(t))&&!(r.type==="MemberExpression"&&r.computed&&r.property===t)&&r.type!=="ArrayExpression")&&!Bn.isParenthesised(e,t)}function $p(t,e){return e?`(${t})`:t}J2.exports={meta:{type:"suggestion",docs:{description:"disallow the use of `Math.pow` in favor of the `**` operator",recommended:!1,url:"https://eslint.org/docs/rules/prefer-exponentiation-operator"},schema:[],fixable:"code",messages:{useExponentiation:"Use the '**' operator instead of 'Math.pow'."}},create(t){let e=t.getSourceCode();function r(n){t.report({node:n,messageId:"useExponentiation",fix(s){if(n.arguments.length!==2||n.arguments.some(S=>S.type==="SpreadElement")||e.getCommentsInside(n).length>0)return null;let i=n.arguments[0],a=n.arguments[1],o=e.getText(i),l=e.getText(a),u=JH(i),c=QH(a),p=XH(n,e),h="",f="";if(!p){if(!u){let S=e.getFirstToken(i),T=e.getTokenBefore(n);T&&T.range[1]===n.range[0]&&!Bn.canTokensBeAdjacent(T,S)&&(h=" ")}if(!c){let S=e.getLastToken(a),T=e.getTokenAfter(n);T&&n.range[1]===T.range[0]&&!Bn.canTokensBeAdjacent(S,T)&&(f=" ")}}let m=$p(o,u),x=$p(l,c),E=$p(`${m}**${x}`,p);return s.replaceText(n,`${h}${E}${f}`)}})}return{Program(){let n=t.getScope(),s=new YH(n),i={Math:{pow:{[KH]:!0}}};for(let{node:a}of s.iterateGlobalReferences(i))r(a)}}}}});var tB=M((Fne,X2)=>{b();v();"use strict";var{CALL:ZH,CONSTRUCT:eK,ReferenceTracker:tK,getStringIfConstant:Z2}=Wt(),eB=Ks(),rK=new eB.RegExpParser;X2.exports={meta:{type:"suggestion",docs:{description:"enforce using named capture group in regular expression",recommended:!1,url:"https://eslint.org/docs/rules/prefer-named-capture-group"},schema:[],messages:{required:"Capture group '{{group}}' should be converted to a named or non-capturing group."}},create(t){function e(r,n,s){let i;try{i=rK.parsePattern(r,0,r.length,s)}catch{return}eB.visitRegExpAST(i,{onCapturingGroupEnter(a){a.name||t.report({node:n,messageId:"required",data:{group:a.raw}})}})}return{Literal(r){r.regex&&e(r.regex.pattern,r,r.regex.flags.includes("u"))},Program(){let r=t.getScope(),n=new tK(r),s={RegExp:{[ZH]:!0,[eK]:!0}};for(let{node:i}of n.iterateGlobalReferences(s)){let a=Z2(i.arguments[0]),o=Z2(i.arguments[1]);a&&e(a,i,o&&o.includes("u"))}}}}}});var nB=M((Pne,rB)=>{b();v();"use strict";var Si=pe(),sB=new Map([[2,{system:"binary",literalPrefix:"0b"}],[8,{system:"octal",literalPrefix:"0o"}],[16,{system:"hexadecimal",literalPrefix:"0x"}]]);function sK(t){return Si.isSpecificId(t,"parseInt")||Si.isSpecificMemberAccess(t,"Number","parseInt")}rB.exports={meta:{type:"suggestion",docs:{description:"disallow `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals",recommended:!1,url:"https://eslint.org/docs/rules/prefer-numeric-literals"},schema:[],messages:{useLiteral:"Use {{system}} literals instead of {{functionName}}()."},fixable:"code"},create(t){let e=t.getSourceCode();return{"CallExpression[arguments.length=2]"(r){let[n,s]=r.arguments,i=Si.getStaticStringValue(n),a=s.value;if(i!==null&&Si.isStringLiteral(n)&&s.type==="Literal"&&typeof a=="number"&&sB.has(a)&&sK(r.callee)){let{system:o,literalPrefix:l}=sB.get(a);t.report({node:r,messageId:"useLiteral",data:{system:o,functionName:e.getText(r.callee)},fix(u){if(e.getCommentsInside(r).length)return null;let c=`${l}${i}`;if(+c!==parseInt(i,a))return null;let p=e.getTokenBefore(r),h=e.getTokenAfter(r),f="",m="";return p&&p.range[1]===r.range[0]&&!Si.canTokensBeAdjacent(p,c)&&(f=" "),h&&r.range[1]===h.range[0]&&!Si.canTokensBeAdjacent(c,h)&&(m=" "),u.replaceText(r,`${f}${c}${m}`)}})}}}}}});var aB=M((Ine,iB)=>{b();v();"use strict";var Ta=pe();function nK(t){if(t.object.type==="ObjectExpression"&&t.object.properties.length===0)return!0;let e=t.object.type==="MemberExpression"&&Ta.getStaticPropertyName(t.object)==="prototype"?t.object.object:t.object;return e.type==="Identifier"&&e.name==="Object"}iB.exports={meta:{type:"suggestion",docs:{description:"disallow use of `Object.prototype.hasOwnProperty.call()` and prefer use of `Object.hasOwn()`",recommended:!1,url:"https://eslint.org/docs/rules/prefer-object-has-own"},schema:[],messages:{useHasOwn:"Use 'Object.hasOwn()' instead of 'Object.prototype.hasOwnProperty.call()'."},fixable:"code"},create(t){return{CallExpression(e){if(!(e.callee.type==="MemberExpression"&&e.callee.object.type==="MemberExpression"))return;let r=Ta.getStaticPropertyName(e.callee),n=Ta.getStaticPropertyName(e.callee.object),s=nK(e.callee.object),i=t.getScope(),a=Ta.getVariableByName(i,"Object");r==="call"&&n==="hasOwnProperty"&&s&&a&&a.scope.type==="global"&&t.report({node:e,messageId:"useHasOwn",fix(o){let l=t.getSourceCode();if(l.getCommentsInside(e.callee).length>0)return null;let u=l.getTokenBefore(e.callee,{includeComments:!0});return u&&u.range[1]===e.callee.range[0]&&!Ta.canTokensBeAdjacent(u,"Object.hasOwn")?o.replaceText(e.callee," Object.hasOwn"):o.replaceText(e.callee,"Object.hasOwn")}})}}}}});var fB=M((_ne,oB)=>{b();v();"use strict";var{CALL:iK,ReferenceTracker:aK}=Wt(),{isCommaToken:lB,isOpeningParenToken:uB,isClosingParenToken:oK,isParenthesised:Wp}=pe(),cB=/\s/u;function lK(t){return t.arguments.some(e=>e.type==="SpreadElement")}function uK(t){return t.type==="Property"&&(t.kind==="get"||t.kind==="set")}function cK(t){return t.properties.some(uK)}function fK(t){return t.arguments.filter(e=>e.type==="ObjectExpression").some(cK)}function pK(t,e){let r=t.parent;switch(r.type){case"VariableDeclarator":case"ArrayExpression":case"ReturnStatement":case"CallExpression":case"Property":return!1;case"AssignmentExpression":return r.left===t&&!Wp(e,t);default:return!Wp(e,t)}}function hK(t,e){switch(t.type){case"AssignmentExpression":case"ArrowFunctionExpression":case"ConditionalExpression":return!Wp(e,t);default:return!1}}function mK(t,e,r){let n=[r.getFirstToken(t),r.getLastToken(t)],s=r.getTokenBefore(t),i=r.getTokenAfter(t);for(;s&&i&&s.range[0]>e.range[0]&&uB(s)&&oK(i);)n.push(s,i),s=r.getTokenBefore(s),i=r.getTokenAfter(i);return n.sort((a,o)=>a.range[0]-o.range[0])}function dK(t,e){let r=e.text,n=t.range[0];{let s=e.getTokenBefore(t,{includeComments:!0});if(s&&s.type==="Line")return n}for(;cB.test(r[n-1]||"");)n-=1;return n}function gK(t,e){let r=e.text,n=t.range[1];for(;cB.test(r[n]||"");)n+=1;return n}function yK(t,e){return function*(r){let n=e.getTokenAfter(t.callee,uB),s=e.getLastToken(t);yield r.removeRange([t.range[0],n.range[0]]),pK(t,e)?(yield r.replaceText(n,"({"),yield r.replaceText(s,"})")):(yield r.replaceText(n,"{"),yield r.replaceText(s,"}"));for(let i of t.arguments){let a=mK(i,n,e),o=a.shift(),l=a.pop();if(i.type==="ObjectExpression"){let u=e.getLastToken(i,1),c=e.getTokenAfter(l);for(let f of a)yield r.remove(f);let p=[o.range[0],gK(o,e)],h=[Math.max(dK(l,e),p[1]),l.range[1]];yield r.removeRange(p),yield r.removeRange(h),(i.properties.length===0||lB(u))&&lB(c)&&(yield r.remove(c))}else hK(i,e)?(yield r.insertTextBefore(o,"...("),yield r.insertTextAfter(l,")")):yield r.insertTextBefore(o,"...")}}}oB.exports={meta:{type:"suggestion",docs:{description:"disallow using Object.assign with an object literal as the first argument and prefer the use of object spread instead.",recommended:!1,url:"https://eslint.org/docs/rules/prefer-object-spread"},schema:[],fixable:"code",messages:{useSpreadMessage:"Use an object spread instead of `Object.assign` eg: `{ ...foo }`.",useLiteralMessage:"Use an object literal instead of `Object.assign`. eg: `{ foo: bar }`."}},create(t){let e=t.getSourceCode();return{Program(){let r=t.getScope(),n=new aK(r),s={Object:{assign:{[iK]:!0}}};for(let{node:i}of n.iterateGlobalReferences(s))if(i.arguments.length>=1&&i.arguments[0].type==="ObjectExpression"&&!lK(i)&&!(i.arguments.length>1&&fK(i))){let a=i.arguments.length===1?"useLiteralMessage":"useSpreadMessage",o=yK(i,e);t.report({node:i,messageId:a,fix:o})}}}}}});var hB=M((Bne,pB)=>{b();v();"use strict";var Gp=pe();pB.exports={meta:{type:"suggestion",docs:{description:"require using Error objects as Promise rejection reasons",recommended:!1,url:"https://eslint.org/docs/rules/prefer-promise-reject-errors"},fixable:null,schema:[{type:"object",properties:{allowEmptyReject:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{rejectAnError:"Expected the Promise rejection reason to be an Error."}},create(t){let e=t.options.length&&t.options[0].allowEmptyReject;function r(s){!s.arguments.length&&e||(!s.arguments.length||!Gp.couldBeError(s.arguments[0])||s.arguments[0].type==="Identifier"&&s.arguments[0].name==="undefined")&&t.report({node:s,messageId:"rejectAnError"})}function n(s){return Gp.isSpecificMemberAccess(s.callee,"Promise","reject")}return{CallExpression(s){n(s)&&r(s)},"NewExpression:exit"(s){s.callee.type==="Identifier"&&s.callee.name==="Promise"&&s.arguments.length&&Gp.isFunction(s.arguments[0])&&s.arguments[0].params.length>1&&s.arguments[0].params[1].type==="Identifier"&&t.getDeclaredVariables(s.arguments[0]).find(i=>i.name===s.arguments[0].params[1].name).references.filter(i=>i.isRead()).filter(i=>i.identifier.parent.type==="CallExpression"&&i.identifier===i.identifier.parent.callee).forEach(i=>r(i.identifier.parent))}}}}});var dB=M((One,mB)=>{b();v();"use strict";mB.exports={meta:{type:"suggestion",docs:{description:"require `Reflect` methods where applicable",recommended:!1,url:"https://eslint.org/docs/rules/prefer-reflect"},deprecated:!0,replacedBy:[],schema:[{type:"object",properties:{exceptions:{type:"array",items:{enum:["apply","call","delete","defineProperty","getOwnPropertyDescriptor","getPrototypeOf","setPrototypeOf","isExtensible","getOwnPropertyNames","preventExtensions"]},uniqueItems:!0}},additionalProperties:!1}],messages:{preferReflect:"Avoid using {{existing}}, instead use {{substitute}}."}},create(t){let e={apply:"Function.prototype.apply",call:"Function.prototype.call",defineProperty:"Object.defineProperty",getOwnPropertyDescriptor:"Object.getOwnPropertyDescriptor",getPrototypeOf:"Object.getPrototypeOf",setPrototypeOf:"Object.setPrototypeOf",isExtensible:"Object.isExtensible",getOwnPropertyNames:"Object.getOwnPropertyNames",preventExtensions:"Object.preventExtensions"},r={apply:"Reflect.apply",call:"Reflect.apply",defineProperty:"Reflect.defineProperty",getOwnPropertyDescriptor:"Reflect.getOwnPropertyDescriptor",getPrototypeOf:"Reflect.getPrototypeOf",setPrototypeOf:"Reflect.setPrototypeOf",isExtensible:"Reflect.isExtensible",getOwnPropertyNames:"Reflect.getOwnPropertyNames",preventExtensions:"Reflect.preventExtensions"},n=(t.options[0]||{}).exceptions||[];function s(i,a,o){t.report({node:i,messageId:"preferReflect",data:{existing:a,substitute:o}})}return{CallExpression(i){let a=(i.callee.property||{}).name,o=(i.callee.object||{}).name==="Reflect",l=Object.prototype.hasOwnProperty.call(r,a),u=n.indexOf(a)!==-1;l&&!o&&!u&&s(i,e[a],r[a])},UnaryExpression(i){let a=i.operator==="delete",o=i.argument.type==="Identifier",l=n.indexOf("delete")!==-1;a&&!o&&!l&&s(i,"the delete keyword","Reflect.deleteProperty")}}}}});var vB=M((Rne,gB)=>{b();v();"use strict";var yB=pe(),{CALL:xK,CONSTRUCT:EK,ReferenceTracker:bK,findVariable:vK}=Wt(),{RegExpValidator:CK,visitRegExpAST:SK,RegExpParser:AK}=Ks(),{canTokensBeAdjacent:xB}=pe(),wK=2022;function EB(t){return t.type==="Literal"&&typeof t.value=="string"}function bB(t){return t.type==="Literal"&&Object.prototype.hasOwnProperty.call(t,"regex")}function zp(t){return t.type==="TemplateLiteral"&&t.expressions.length===0}var kK=["(",";","[",",","=","+","*","-","?","~","%","**","!","typeof","instanceof","&&","||","??","return","...","delete","void","in","<",">","<=",">=","==","===","!=","!==","<<",">>",">>>","&","|","^",":","{","=>","*=","<<=",">>=",">>>=","^=","|=","&=","??=","||=","&&=","**=","+=","-=","/=","%=","/","do","break","continue","debugger","case","throw"];gB.exports={meta:{type:"suggestion",docs:{description:"disallow use of the `RegExp` constructor in favor of regular expression literals",recommended:!1,url:"https://eslint.org/docs/rules/prefer-regex-literals"},hasSuggestions:!0,schema:[{type:"object",properties:{disallowRedundantWrapping:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedRegExp:"Use a regular expression literal instead of the 'RegExp' constructor.",replaceWithLiteral:"Replace with an equivalent regular expression literal.",unexpectedRedundantRegExp:"Regular expression literal is unnecessarily wrapped within a 'RegExp' constructor.",unexpectedRedundantRegExpWithFlags:"Use regular expression literal with flags instead of the 'RegExp' constructor."}},create(t){let[{disallowRedundantWrapping:e=!1}={}]=t.options,r=t.getSourceCode();function n(p){let h=t.getScope(),f=vK(h,p);return f!==null&&f.scope.type==="global"&&f.defs.length===0}function s(p){return p.type==="TaggedTemplateExpression"&&yB.isSpecificMemberAccess(p.tag,"String","raw")&&n(yB.skipChainExpression(p.tag).object)&&zp(p.quasi)}function i(p){return EB(p)?p.value:zp(p)?p.quasis[0].value.cooked:s(p)?p.quasi.quasis[0].value.raw:null}function a(p){return EB(p)||zp(p)||s(p)}function o(p){let h=p.arguments;return!!((h.length===1||h.length===2)&&h.every(a))}function l(p){let h=p.arguments;return!!(h.length===1&&bB(h[0])||h.length===2&&bB(h[0])&&a(h[1]))}function u(p){return typeof p!="number"||p<=5?5:Math.min(p+2009,wK)}function c(p){switch(p){case`
|
|
106
|
+
`:case`\\
|
|
107
|
+
`:return"\\n";case"\r":case"\\\r":return"\\r";case" ":case"\\ ":return"\\t";case"\v":case"\\\v":return"\\v";case"\f":case"\\\f":return"\\f";case"/":return"\\/";default:return null}}return{Program(){let p=t.getScope(),h=new bK(p),f={RegExp:{[xK]:!0,[EK]:!0}};for(let{node:m}of h.iterateGlobalReferences(f))if(e&&l(m))m.arguments.length===2?t.report({node:m,messageId:"unexpectedRedundantRegExpWithFlags"}):t.report({node:m,messageId:"unexpectedRedundantRegExp"});else if(o(m)){let x=i(m.arguments[0]),E=!1,S;m.arguments[1]&&(S=i(m.arguments[1]));let T=u(t.parserOptions.ecmaVersion),I=new CK({ecmaVersion:T});try{I.validatePattern(x,0,x.length,S?S.includes("u"):!1),S&&I.validateFlags(S)}catch{E=!0}let y=r.getTokenBefore(m);if(y&&!kK.includes(y.value)&&(E=!0),/^[-a-zA-Z0-9\\[\](){} \t\r\n\v\f!@#$%^&*+^_=/~`.><?,'"|:;]*$/u.test(x)||(E=!0),r.getCommentsInside(m).length>0&&(E=!0),x&&!E){let D=0,R=new AK({ecmaVersion:T}).parsePattern(x,0,x.length,S?S.includes("u"):!1);SK(R,{onCharacterEnter(z){let q=c(z.raw);q&&(x=x.slice(0,z.start+D)+q+x.slice(z.end+D),z.raw.length===1&&(D+=1))}})}let w=`/${x||"(?:)"}/${S||""}`;t.report({node:m,messageId:"unexpectedRegExp",suggest:E?[]:[{messageId:"replaceWithLiteral",fix(D){let R=r.getTokenAfter(m);return D.replaceText(m,(y&&!xB(y,w)&&y.range[1]===m.range[0]?" ":"")+w+(R&&!xB(w,R)&&m.range[1]===R.range[0]?" ":""))}}]})}}}}}});var SB=M((Lne,CB)=>{b();v();"use strict";function DK(t){let e=t.variables;for(let r=0;r<e.length;++r){let n=e[r];if(n.name==="arguments")return n.identifiers.length===0?n:null}return null}function TK(t){let e=t.identifier,r=e.parent;return!(r.type==="MemberExpression"&&r.object===e&&!r.computed)}CB.exports={meta:{type:"suggestion",docs:{description:"require rest parameters instead of `arguments`",recommended:!1,url:"https://eslint.org/docs/rules/prefer-rest-params"},schema:[],messages:{preferRestParams:"Use the rest parameters instead of 'arguments'."}},create(t){function e(n){t.report({node:n.identifier,loc:n.identifier.loc,messageId:"preferRestParams"})}function r(){let n=DK(t.getScope());n&&n.references.filter(TK).forEach(e)}return{"FunctionDeclaration:exit":r,"FunctionExpression:exit":r}}}});var wB=M((Nne,AB)=>{b();v();"use strict";var Fa=pe();function FK(t){return Fa.isSpecificMemberAccess(t.callee,null,"apply")&&t.arguments.length===2&&t.arguments[1].type!=="ArrayExpression"&&t.arguments[1].type!=="SpreadElement"}function PK(t,e,r){return t?Fa.equalTokens(t,e,r):Fa.isNullOrUndefined(e)}AB.exports={meta:{type:"suggestion",docs:{description:"require spread operators instead of `.apply()`",recommended:!1,url:"https://eslint.org/docs/rules/prefer-spread"},schema:[],fixable:null,messages:{preferSpread:"Use the spread operator instead of '.apply()'."}},create(t){let e=t.getSourceCode();return{CallExpression(r){if(!FK(r))return;let n=Fa.skipChainExpression(Fa.skipChainExpression(r.callee).object),s=n.type==="MemberExpression"?n.object:null,i=r.arguments[0];PK(s,i,e)&&t.report({node:r,messageId:"preferSpread"})}}}}});var TB=M((Mne,kB)=>{b();v();"use strict";var tu=pe();function Ai(t){return t.type==="BinaryExpression"&&t.operator==="+"}function DB(t){let e=t;for(;Ai(e.parent);)e=e.parent;return e}function Hp(t){return Ai(t)?Hp(t.left)||Hp(t.right):t.type==="Literal"&&typeof t.value=="string"?tu.hasOctalOrNonOctalDecimalEscapeSequence(t.raw):!1}function Kp(t){return Ai(t)?Kp(t.right)||Kp(t.left):tu.isStringLiteral(t)}function Yp(t){return Ai(t)?Yp(t.right)||Yp(t.left):!tu.isStringLiteral(t)}function Jp(t){return t.type==="BinaryExpression"?Jp(t.left):t.type==="TemplateLiteral"?t.expressions.length&&t.quasis.length&&t.quasis[0].range[0]===t.quasis[0].range[1]:t.type!=="Literal"||typeof t.value!="string"}function IK(t){return t.type==="BinaryExpression"?Jp(t.right):t.type==="TemplateLiteral"?t.expressions.length&&t.quasis.length&&t.quasis[t.quasis.length-1].range[0]===t.quasis[t.quasis.length-1].range[1]:t.type!=="Literal"||typeof t.value!="string"}kB.exports={meta:{type:"suggestion",docs:{description:"require template literals instead of string concatenation",recommended:!1,url:"https://eslint.org/docs/rules/prefer-template"},schema:[],fixable:"code",messages:{unexpectedStringConcatenation:"Unexpected string concatenation."}},create(t){let e=t.getSourceCode(),r=Object.create(null);function n(o,l){let u=[o].concat(e.getTokensBetween(o,l)).concat(l),c=e.getText();return u.slice(0,-1).reduce((p,h,f)=>p+c.slice(h.range[1],u[f+1].range[0]),"")}function s(o,l,u){if(o.type==="Literal"&&typeof o.value=="string")return`\`${o.raw.slice(1,-1).replace(/\\*(\$\{|`)/gu,c=>c.lastIndexOf("\\")%2?`\\${c}`:c).replace(new RegExp(`\\\\${o.raw[0]}`,"gu"),o.raw[0])}\``;if(o.type==="TemplateLiteral")return e.getText(o);if(Ai(o)&&Kp(o)){let c=e.getFirstTokenBetween(o.left,o.right,x=>x.value==="+"),p=n(o.left,c),h=n(c,o.right),f=IK(o.left),m=Jp(o.right);return f?s(o.left,l,p+h).slice(0,-1)+s(o.right,null,u).slice(1):m?s(o.left,l,null).slice(0,-1)+s(o.right,p+h,u).slice(1):`${s(o.left,l,null)}${p}+${h}${s(o.right,u,null)}`}return`\`\${${l||""}${e.getText(o)}${u||""}}\``}function i(o,l){let u=DB(l.parent);return Hp(u)?null:o.replaceText(u,s(u,null,null))}function a(o){if(!tu.isStringLiteral(o)||!Ai(o.parent))return;let l=DB(o.parent);r[l.range[0]]||(r[l.range[0]]=!0,Yp(l)&&t.report({node:l,messageId:"unexpectedStringConcatenation",fix:u=>i(u,o)}))}return{Program(){r=Object.create(null)},Literal:a,TemplateLiteral:a}}}});var IB=M((jne,FB)=>{b();v();"use strict";var PB=$i(),_K=pe(),BK=Cl();FB.exports={meta:{type:"suggestion",docs:{description:"require quotes around object literal property names",recommended:!1,url:"https://eslint.org/docs/rules/quote-props"},schema:{anyOf:[{type:"array",items:[{enum:["always","as-needed","consistent","consistent-as-needed"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["always","as-needed","consistent","consistent-as-needed"]},{type:"object",properties:{keywords:{type:"boolean"},unnecessary:{type:"boolean"},numbers:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},fixable:"code",messages:{requireQuotesDueToReservedWord:"Properties should be quoted as '{{property}}' is a reserved word.",inconsistentlyQuotedProperty:"Inconsistently quoted property '{{key}}' found.",unnecessarilyQuotedProperty:"Unnecessarily quoted property '{{property}}' found.",unquotedReservedProperty:"Unquoted reserved word '{{property}}' used as key.",unquotedNumericProperty:"Unquoted number literal '{{property}}' used as key.",unquotedPropertyFound:"Unquoted property '{{property}}' found.",redundantQuoting:"Properties shouldn't be quoted as all quotes are redundant."}},create(t){let e=t.options[0],r=t.options[1]&&t.options[1].keywords,n=!t.options[1]||t.options[1].unnecessary!==!1,s=t.options[1]&&t.options[1].numbers,i=t.getSourceCode();function a(f){return BK.indexOf(f)>=0}function o(f,m,x){return m.length===1&&m[0].start===0&&m[0].end===f.length&&(["Identifier","Keyword","Null","Boolean"].indexOf(m[0].type)>=0||m[0].type==="Numeric"&&!x&&String(+m[0].value)===m[0].value)}function l(f){return f.type==="Identifier"?f.name:f.value}function u(f){return f.type==="Literal"&&typeof f.value=="string"?i.getText(f):`"${f.type==="Identifier"?f.name:f.value}"`}function c(f){let m=f.key;if(!(f.method||f.computed||f.shorthand))if(m.type==="Literal"&&typeof m.value=="string"){let x;try{x=PB.tokenize(m.value)}catch{return}if(x.length!==1||a(x[0].value)&&r)return;n&&o(m.value,x,s)&&t.report({node:f,messageId:"unnecessarilyQuotedProperty",data:{property:m.value},fix:S=>S.replaceText(m,l(m))})}else r&&m.type==="Identifier"&&a(m.name)?t.report({node:f,messageId:"unquotedReservedProperty",data:{property:m.name},fix:x=>x.replaceText(m,u(m))}):s&&m.type==="Literal"&&_K.isNumericLiteral(m)&&t.report({node:f,messageId:"unquotedNumericProperty",data:{property:m.value},fix:x=>x.replaceText(m,u(m))})}function p(f){let m=f.key;!f.method&&!f.computed&&!f.shorthand&&!(m.type==="Literal"&&typeof m.value=="string")&&t.report({node:f,messageId:"unquotedPropertyFound",data:{property:m.name||m.value},fix:x=>x.replaceText(m,u(m))})}function h(f,m){let x=[],E=[],S=null,T=!1;f.properties.forEach(I=>{let y=I.key;if(!(!y||I.method||I.computed||I.shorthand))if(y.type==="Literal"&&typeof y.value=="string"){if(x.push(I),m){let w;try{w=PB.tokenize(y.value)}catch{T=!0;return}T=T||!o(y.value,w)||r&&a(w[0].value)}}else r&&m&&y.type==="Identifier"&&a(y.name)?(E.push(I),T=!0,S=y.name):E.push(I)}),m&&x.length&&!T?x.forEach(I=>{t.report({node:I,messageId:"redundantQuoting",fix:y=>y.replaceText(I.key,l(I.key))})}):E.length&&S?E.forEach(I=>{t.report({node:I,messageId:"requireQuotesDueToReservedWord",data:{property:S},fix:y=>y.replaceText(I.key,u(I.key))})}):x.length&&E.length&&E.forEach(I=>{t.report({node:I,messageId:"inconsistentlyQuotedProperty",data:{key:I.key.name||I.key.value},fix:y=>y.replaceText(I.key,u(I.key))})})}return{Property(f){(e==="always"||!e)&&p(f),e==="as-needed"&&c(f)},ObjectExpression(f){e==="consistent"&&h(f,!1),e==="consistent-as-needed"&&h(f,!0)}}}}});var BB=M((qne,_B)=>{b();v();"use strict";var Pa=pe(),ru={double:{quote:'"',alternateQuote:"'",description:"doublequote"},single:{quote:"'",alternateQuote:'"',description:"singlequote"},backtick:{quote:"`",alternateQuote:'"',description:"backtick"}},OK=new RegExp(String.raw`(^|[^\\])(\\\\)*[${Array.from(Pa.LINEBREAKS).join("")}]`,"u");ru.double.convert=ru.single.convert=ru.backtick.convert=function(t){let e=this.quote,r=t[0];return e===r?t:e+t.slice(1,-1).replace(/\\(\$\{|\r\n?|\n|.)|["'`]|\$\{|(\r\n?|\n)/gu,(n,s,i)=>s===r||r==="`"&&s==="${"?s:n===e||e==="`"&&n==="${"?`\\${n}`:i&&r==="`"?"\\n":n)+e};var RK="avoid-escape";_B.exports={meta:{type:"layout",docs:{description:"enforce the consistent use of either backticks, double, or single quotes",recommended:!1,url:"https://eslint.org/docs/rules/quotes"},fixable:"code",schema:[{enum:["single","double","backtick"]},{anyOf:[{enum:["avoid-escape"]},{type:"object",properties:{avoidEscape:{type:"boolean"},allowTemplateLiterals:{type:"boolean"}},additionalProperties:!1}]}],messages:{wrongQuotes:"Strings must use {{description}}."}},create(t){let e=t.options[0],r=ru[e||"double"],n=t.options[1],s=n&&n.allowTemplateLiterals===!0,i=t.getSourceCode(),a=n&&n.avoidEscape===!0;n===RK&&(a=!0);function o(h){return h.parent.type==="JSXAttribute"||h.parent.type==="JSXElement"||h.parent.type==="JSXFragment"}function l(h){return h.type==="ExpressionStatement"&&h.expression.type==="Literal"&&typeof h.expression.value=="string"}function u(h){let f=h.parent.parent;if(f.type!=="Program"&&(f.type!=="BlockStatement"||!Pa.isFunction(f.parent)))return!1;for(let m=0;m<f.body.length;++m){let x=f.body[m];if(x===h.parent)return!0;if(!l(x))break}return!1}function c(h){let f=h.parent;switch(f.type){case"ExpressionStatement":return u(h);case"Property":case"PropertyDefinition":case"MethodDefinition":return f.key===h&&!f.computed;case"ImportDeclaration":case"ExportNamedDeclaration":return f.source===h;case"ExportAllDeclaration":return f.exported===h||f.source===h;case"ImportSpecifier":return f.imported===h;case"ExportSpecifier":return f.local===h||f.exported===h;default:return!1}}function p(h){return!!(h.parent.type==="TaggedTemplateExpression"&&h===h.parent.quasi||h.expressions.length>0||h.quasis.length>=1&&OK.test(h.quasis[0].value.raw))}return{Literal(h){let f=h.value,m=h.raw;if(r&&typeof f=="string"){let x=e==="backtick"&&c(h)||o(h)||Pa.isSurroundedBy(m,r.quote);!x&&a&&(x=Pa.isSurroundedBy(m,r.alternateQuote)&&m.indexOf(r.quote)>=0),x||t.report({node:h,messageId:"wrongQuotes",data:{description:r.description},fix(E){return e==="backtick"&&Pa.hasOctalOrNonOctalDecimalEscapeSequence(m)?null:E.replaceText(h,r.convert(h.raw))}})}},TemplateLiteral(h){s||e==="backtick"||p(h)||t.report({node:h,messageId:"wrongQuotes",data:{description:r.description},fix(f){return u(h)?null:f.replaceText(h,r.convert(i.getText(h)))}})}}}}});var NB=M((Vne,OB)=>{b();v();"use strict";var su=pe(),RB="always",LK="as-needed",NK=new Set(Array.from({length:37-2},(t,e)=>e+2));function LB(t){return t.defs.length>=1}function MK(t){return t.type==="MemberExpression"&&!t.computed&&t.property.type==="Identifier"&&t.property.name==="parseInt"}function jK(t){return!(t.type==="Literal"&&!NK.has(t.value)||t.type==="Identifier"&&t.name==="undefined")}function qK(t){return t.type==="Literal"&&t.value===10}OB.exports={meta:{type:"suggestion",docs:{description:"enforce the consistent use of the radix argument when using `parseInt()`",recommended:!1,url:"https://eslint.org/docs/rules/radix"},hasSuggestions:!0,schema:[{enum:["always","as-needed"]}],messages:{missingParameters:"Missing parameters.",redundantRadix:"Redundant radix parameter.",missingRadix:"Missing radix parameter.",invalidRadix:"Invalid radix parameter, must be an integer between 2 and 36.",addRadixParameter10:"Add radix parameter `10` for parsing decimal numbers."}},create(t){let e=t.options[0]||RB;function r(n){let s=n.arguments;switch(s.length){case 0:t.report({node:n,messageId:"missingParameters"});break;case 1:e===RB&&t.report({node:n,messageId:"missingRadix",suggest:[{messageId:"addRadixParameter10",fix(i){let o=t.getSourceCode().getTokens(n),l=o[o.length-1],u=o[o.length-2],c=u.type==="Punctuator"&&u.value===",";return i.insertTextBefore(l,c?" 10,":", 10")}}]});break;default:e===LK&&qK(s[1])?t.report({node:n,messageId:"redundantRadix"}):jK(s[1])||t.report({node:n,messageId:"invalidRadix"});break}}return{"Program:exit"(){let n=t.getScope(),s;s=su.getVariableByName(n,"parseInt"),s&&!LB(s)&&s.references.forEach(i=>{let a=i.identifier;su.isCallee(a)&&r(a.parent)}),s=su.getVariableByName(n,"Number"),s&&!LB(s)&&s.references.forEach(i=>{let a=i.identifier.parent,o=a.parent.type==="ChainExpression"?a.parent:a;MK(a)&&su.isCallee(o)&&r(o.parent)})}}}}});var VB=M((Une,MB)=>{b();v();"use strict";function jB(t,e=new Map){for(let r of t.references)r.resolved!==null&&e.set(r.identifier,r);for(let r of t.childScopes)r.type!=="function"&&jB(r,e);return e}function VK(t){if(t.writeExpr)return t.writeExpr;let e=t.identifier;for(;e;){let r=e.parent.type;if(r==="AssignmentExpression"&&e.parent.left===e)return e.parent.right;if(r==="MemberExpression"&&e.parent.object===e){e=e.parent;continue}break}return null}function UK(t,e){if(!t||e&&t.defs.some(n=>n.type==="Parameter"))return!1;let r=t.scope.variableScope;return t.references.every(n=>n.from.variableScope===r)}var qB=class{constructor(){this.info=new WeakMap}initialize(e){let r=new Set,n=new Set;for(let s of e.prevSegments){let i=this.info.get(s);i&&(i.outdatedReadVariables.forEach(Set.prototype.add,r),i.freshReadVariables.forEach(Set.prototype.add,n))}this.info.set(e,{outdatedReadVariables:r,freshReadVariables:n})}markAsRead(e,r){for(let n of e){let s=this.info.get(n);s&&(s.freshReadVariables.add(r),s.outdatedReadVariables.delete(r))}}makeOutdated(e){for(let r of e){let n=this.info.get(r);n&&(n.freshReadVariables.forEach(Set.prototype.add,n.outdatedReadVariables),n.freshReadVariables.clear())}}isOutdated(e,r){for(let n of e){let s=this.info.get(n);if(s&&s.outdatedReadVariables.has(r))return!0}return!1}};MB.exports={meta:{type:"problem",docs:{description:"disallow assignments that can lead to race conditions due to usage of `await` or `yield`",recommended:!1,url:"https://eslint.org/docs/rules/require-atomic-updates"},fixable:null,schema:[{type:"object",properties:{allowProperties:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{nonAtomicUpdate:"Possible race condition: `{{value}}` might be reassigned based on an outdated value of `{{value}}`.",nonAtomicObjectUpdate:"Possible race condition: `{{value}}` might be assigned based on an outdated state of `{{object}}`."}},create(t){let e=!!t.options[0]&&t.options[0].allowProperties,r=t.getSourceCode(),n=new Map,s=new qB,i=null;return{onCodePathStart(a){let o=t.getScope(),l=o.type==="function"&&(o.block.async||o.block.generator);i={upper:i,codePath:a,referenceMap:l?jB(o):null}},onCodePathEnd(){i=i.upper},onCodePathSegmentStart(a){s.initialize(a)},Identifier(a){let{codePath:o,referenceMap:l}=i,u=l&&l.get(a);if(!u)return;let c=u.resolved,p=VK(u),h=u.identifier.parent.type==="MemberExpression";if(u.isRead()&&!(p&&p.parent.operator==="=")&&s.markAsRead(o.currentSegments,c),p&&p.parent.right===p&&!UK(c,h)){let f=n.get(p);f||(f=[],n.set(p,f)),f.push(u)}},":expression:exit"(a){let{codePath:o,referenceMap:l}=i;if(!l)return;(a.type==="AwaitExpression"||a.type==="YieldExpression")&&s.makeOutdated(o.currentSegments);let u=n.get(a);if(u){n.delete(a);for(let c of u){let p=c.resolved;s.isOutdated(o.currentSegments,p)&&(a.parent.left===c.identifier?t.report({node:a.parent,messageId:"nonAtomicUpdate",data:{value:p.name}}):e||t.report({node:a.parent,messageId:"nonAtomicObjectUpdate",data:{value:r.getText(a.parent.left),object:p.name}}))}}}}}}});var $B=M(($ne,UB)=>{b();v();"use strict";var Qp=pe();function $K(t){return t[0].toUpperCase()+t.slice(1)}UB.exports={meta:{type:"suggestion",docs:{description:"disallow async functions which have no `await` expression",recommended:!1,url:"https://eslint.org/docs/rules/require-await"},schema:[],messages:{missingAwait:"{{name}} has no 'await' expression."}},create(t){let e=t.getSourceCode(),r=null;function n(){r={upper:r,hasAwait:!1}}function s(i){!i.generator&&i.async&&!r.hasAwait&&!Qp.isEmptyFunction(i)&&t.report({node:i,loc:Qp.getFunctionHeadLoc(i,e),messageId:"missingAwait",data:{name:$K(Qp.getFunctionNameWithKind(i))}}),r=r.upper}return{FunctionDeclaration:n,FunctionExpression:n,ArrowFunctionExpression:n,"FunctionDeclaration:exit":s,"FunctionExpression:exit":s,"ArrowFunctionExpression:exit":s,AwaitExpression(){!r||(r.hasAwait=!0)},ForOfStatement(i){!r||i.await&&(r.hasAwait=!0)}}}}});var GB=M((Wne,WB)=>{b();v();"use strict";WB.exports={meta:{type:"suggestion",docs:{description:"require JSDoc comments",recommended:!1,url:"https://eslint.org/docs/rules/require-jsdoc"},schema:[{type:"object",properties:{require:{type:"object",properties:{ClassDeclaration:{type:"boolean",default:!1},MethodDefinition:{type:"boolean",default:!1},FunctionDeclaration:{type:"boolean",default:!0},ArrowFunctionExpression:{type:"boolean",default:!1},FunctionExpression:{type:"boolean",default:!1}},additionalProperties:!1,default:{}}},additionalProperties:!1}],deprecated:!0,replacedBy:[],messages:{missingJSDocComment:"Missing JSDoc comment."}},create(t){let e=t.getSourceCode(),n=Object.assign({FunctionDeclaration:!0,MethodDefinition:!1,ClassDeclaration:!1,ArrowFunctionExpression:!1,FunctionExpression:!1},t.options[0]&&t.options[0].require);function s(a){t.report({node:a,messageId:"missingJSDocComment"})}function i(a){e.getJSDocComment(a)||s(a)}return{FunctionDeclaration(a){n.FunctionDeclaration&&i(a)},FunctionExpression(a){(n.MethodDefinition&&a.parent.type==="MethodDefinition"||n.FunctionExpression&&(a.parent.type==="VariableDeclarator"||a.parent.type==="Property"&&a===a.parent.value))&&i(a)},ClassDeclaration(a){n.ClassDeclaration&&i(a)},ArrowFunctionExpression(a){n.ArrowFunctionExpression&&a.parent.type==="VariableDeclarator"&&i(a)}}}}});var HB=M((Gne,zB)=>{b();v();"use strict";var{CALL:WK,CONSTRUCT:GK,ReferenceTracker:zK,getStringIfConstant:HK}=Wt();zB.exports={meta:{type:"suggestion",docs:{description:"enforce the use of `u` flag on RegExp",recommended:!1,url:"https://eslint.org/docs/rules/require-unicode-regexp"},messages:{requireUFlag:"Use the 'u' flag."},schema:[]},create(t){return{"Literal[regex]"(e){(e.regex.flags||"").includes("u")||t.report({node:e,messageId:"requireUFlag"})},Program(){let e=t.getScope(),r=new zK(e),n={RegExp:{[WK]:!0,[GK]:!0}};for(let{node:s}of r.iterateGlobalReferences(n)){let i=s.arguments[1],a=HK(i,e);(!i||typeof a=="string"&&!a.includes("u"))&&t.report({node:s,messageId:"requireUFlag"})}}}}}});var YB=M((zne,KB)=>{b();v();"use strict";KB.exports={meta:{type:"suggestion",docs:{description:"require generator functions to contain `yield`",recommended:!0,url:"https://eslint.org/docs/rules/require-yield"},schema:[],messages:{missingYield:"This generator function does not have 'yield'."}},create(t){let e=[];function r(s){s.generator&&e.push(0)}function n(s){if(!s.generator)return;e.pop()===0&&s.body.body.length>0&&t.report({node:s,messageId:"missingYield"})}return{FunctionDeclaration:r,"FunctionDeclaration:exit":n,FunctionExpression:r,"FunctionExpression:exit":n,YieldExpression(){e.length>0&&(e[e.length-1]+=1)}}}}});var QB=M((Hne,JB)=>{b();v();"use strict";JB.exports={meta:{type:"layout",docs:{description:"enforce spacing between rest and spread operators and their expressions",recommended:!1,url:"https://eslint.org/docs/rules/rest-spread-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{unexpectedWhitespace:"Unexpected whitespace after {{type}} operator.",expectedWhitespace:"Expected whitespace after {{type}} operator."}},create(t){let e=t.getSourceCode(),r=t.options[0]==="always";function n(s){let i=e.getFirstToken(s),a=e.getTokenAfter(i),o=e.isSpaceBetweenTokens(i,a),l;switch(s.type){case"SpreadElement":l="spread",s.parent.type==="ObjectExpression"&&(l+=" property");break;case"RestElement":l="rest",s.parent.type==="ObjectPattern"&&(l+=" property");break;case"ExperimentalSpreadProperty":l="spread property";break;case"ExperimentalRestProperty":l="rest property";break;default:return}r&&!o?t.report({node:s,loc:i.loc,messageId:"expectedWhitespace",data:{type:l},fix(u){return u.replaceTextRange([i.range[1],a.range[0]]," ")}}):!r&&o&&t.report({node:s,loc:{start:i.loc.end,end:a.loc.start},messageId:"unexpectedWhitespace",data:{type:l},fix(u){return u.removeRange([i.range[1],a.range[0]])}})}return{SpreadElement:n,RestElement:n,ExperimentalSpreadProperty:n,ExperimentalRestProperty:n}}}});var ZB=M((Kne,XB)=>{b();v();"use strict";var KK=yi(),wi=pe();XB.exports={meta:{type:"layout",docs:{description:"require or disallow semicolons instead of ASI",recommended:!1,url:"https://eslint.org/docs/rules/semi"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["never"]},{type:"object",properties:{beforeStatementContinuationChars:{enum:["always","any","never"]}},additionalProperties:!1}],minItems:0,maxItems:2},{type:"array",items:[{enum:["always"]},{type:"object",properties:{omitLastInOneLineBlock:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{missingSemi:"Missing semicolon.",extraSemi:"Extra semicolon."}},create(t){let e=/^[-[(/+`]/u,r=new Set(["get","set","static"]),n=new Set(["*","in","instanceof"]),s=t.options[1],i=t.options[0]==="never",a=Boolean(s&&s.omitLastInOneLineBlock),o=s&&s.beforeStatementContinuationChars||"any",l=t.getSourceCode();function u(y,w){let D=l.getLastToken(y),R,z,q;w?(R="extraSemi",q=D.loc,z=function(W){return new KK(W,l).retainSurroundingTokens(D).remove(D)}):(R="missingSemi",q={start:D.loc.end,end:wi.getNextLocation(l,D.loc.end)},z=function(W){return W.insertTextAfter(D,";")}),t.report({node:y,loc:q,messageId:R,fix:z})}function c(y){let w=l.getTokenAfter(y);return!w||wi.isClosingBraceToken(w)||wi.isSemicolonToken(w)}function p(y){if(!wi.isClosingBraceToken(y))return!1;let w=l.getNodeByRangeIndex(y.range[0]);return w.type==="BlockStatement"&&w.parent.type==="ArrowFunctionExpression"}function h(y){if(y.type!=="PropertyDefinition")return!1;if(!y.computed&&y.key.type==="Identifier"&&r.has(y.key.name)&&!(y.static&&y.key.name==="static")&&!y.value)return!0;let D=l.getTokenAfter(y);return n.has(D.value)}function f(y){let w=l.getLastToken(y,1),D=l.getTokenAfter(y);return!!D&&wi.isTokenOnSameLine(w,D)}function m(y){let w=y.type;return w==="DoWhileStatement"||w==="BreakStatement"||w==="ContinueStatement"||w==="DebuggerStatement"||w==="ImportDeclaration"||w==="ExportAllDeclaration"?!1:w==="ReturnStatement"?Boolean(y.argument):w==="ExportNamedDeclaration"?Boolean(y.declaration):!p(l.getLastToken(y,1))}function x(y){return Boolean(y)&&e.test(y.value)&&y.value!=="++"&&y.value!=="--"}function E(y){return c(l.getLastToken(y))?!0:h(y)||f(y)?!1:y.type!=="PropertyDefinition"&&o==="never"&&!m(y)||!x(l.getTokenAfter(y))}function S(y){let w=y.parent,D=l.getTokenAfter(y);return!D||D.value!=="}"?!1:w.type==="BlockStatement"?w.loc.start.line===w.loc.end.line:w.type==="StaticBlock"?l.getFirstToken(w,{skip:1}).loc.start.line===w.loc.end.line:!1}function T(y){let w=wi.isSemicolonToken(l.getLastToken(y));if(i)w&&E(y)?u(y,!0):!w&&o==="always"&&y.type!=="PropertyDefinition"&&x(l.getTokenAfter(y))&&u(y);else{let D=a&&S(y);w&&D?u(y,!0):!w&&!D&&u(y)}}function I(y){let w=y.parent;(w.type!=="ForStatement"||w.init!==y)&&(!/^For(?:In|Of)Statement/u.test(w.type)||w.left!==y)&&T(y)}return{VariableDeclaration:I,ExpressionStatement:T,ReturnStatement:T,ThrowStatement:T,DoWhileStatement:T,DebuggerStatement:T,BreakStatement:T,ContinueStatement:T,ImportDeclaration:T,ExportAllDeclaration:T,ExportNamedDeclaration(y){y.declaration||T(y)},ExportDefaultDeclaration(y){/(?:Class|Function)Declaration/u.test(y.declaration.type)||T(y)},PropertyDefinition:T}}}});var tO=M((Yne,eO)=>{b();v();"use strict";var On=pe();eO.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing before and after semicolons",recommended:!1,url:"https://eslint.org/docs/rules/semi-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedWhitespaceBefore:"Unexpected whitespace before semicolon.",unexpectedWhitespaceAfter:"Unexpected whitespace after semicolon.",missingWhitespaceBefore:"Missing whitespace before semicolon.",missingWhitespaceAfter:"Missing whitespace after semicolon."}},create(t){let e=t.options[0],r=t.getSourceCode(),n=!1,s=!0;typeof e=="object"&&(n=e.before,s=e.after);function i(h){let f=r.getTokenBefore(h);return f&&On.isTokenOnSameLine(f,h)&&r.isSpaceBetweenTokens(f,h)}function a(h){let f=r.getTokenAfter(h);return f&&On.isTokenOnSameLine(h,f)&&r.isSpaceBetweenTokens(h,f)}function o(h){let f=r.getTokenAfter(h);return!(f&&On.isTokenOnSameLine(h,f))}function l(h){let f=r.getTokenBefore(h);return!(f&&On.isTokenOnSameLine(h,f))}function u(h){let f=r.getTokenAfter(h);return f&&On.isClosingBraceToken(f)||On.isClosingParenToken(f)}function c(h,f){if(On.isSemicolonToken(h)){if(i(h)){if(!n){let m=r.getTokenBefore(h),x={start:m.loc.end,end:h.loc.start};t.report({node:f,loc:x,messageId:"unexpectedWhitespaceBefore",fix(E){return E.removeRange([m.range[1],h.range[0]])}})}}else if(n){let m=h.loc;t.report({node:f,loc:m,messageId:"missingWhitespaceBefore",fix(x){return x.insertTextBefore(h," ")}})}if(!l(h)&&!o(h)&&!u(h)){if(a(h)){if(!s){let m=r.getTokenAfter(h),x={start:h.loc.end,end:m.loc.start};t.report({node:f,loc:x,messageId:"unexpectedWhitespaceAfter",fix(E){return E.removeRange([h.range[1],m.range[0]])}})}}else if(s){let m=h.loc;t.report({node:f,loc:m,messageId:"missingWhitespaceAfter",fix(x){return x.insertTextAfter(h," ")}})}}}}function p(h){let f=r.getLastToken(h);c(f,h)}return{VariableDeclaration:p,ExpressionStatement:p,BreakStatement:p,ContinueStatement:p,DebuggerStatement:p,DoWhileStatement:p,ReturnStatement:p,ThrowStatement:p,ImportDeclaration:p,ExportNamedDeclaration:p,ExportAllDeclaration:p,ExportDefaultDeclaration:p,ForStatement(h){h.init&&c(r.getTokenAfter(h.init),h),h.test&&c(r.getTokenAfter(h.test),h)},PropertyDefinition:p}}}});var sO=M((Jne,rO)=>{b();v();"use strict";var Ia=pe(),YK=["BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ImportDeclaration","ReturnStatement","ThrowStatement","VariableDeclaration","PropertyDefinition"].join(",");function JK(t){let e=t.type;return e==="BlockStatement"||e==="StaticBlock"||e==="Program"||e==="ClassBody"?t.body:e==="SwitchCase"?t.consequent:null}function QK(t){let e=t.parent.type;if(e==="IfStatement"&&t.parent.consequent===t&&t.parent.alternate||e==="DoWhileStatement")return!0;let r=JK(t.parent);return r!==null&&r[r.length-1]===t}rO.exports={meta:{type:"layout",docs:{description:"enforce location of semicolons",recommended:!1,url:"https://eslint.org/docs/rules/semi-style"},schema:[{enum:["last","first"]}],fixable:"whitespace",messages:{expectedSemiColon:"Expected this semicolon to be at {{pos}}."}},create(t){let e=t.getSourceCode(),r=t.options[0]||"last";function n(s,i){let a=e.getTokenBefore(s),o=e.getTokenAfter(s),l=!a||Ia.isTokenOnSameLine(a,s),u=!o||Ia.isTokenOnSameLine(s,o);(i==="last"&&!l||i==="first"&&!u)&&t.report({loc:s.loc,messageId:"expectedSemiColon",data:{pos:i==="last"?"the end of the previous line":"the beginning of the next line"},fix(c){if(a&&o&&e.commentsExistBetween(a,o))return null;let p=a?a.range[1]:s.range[0],h=o?o.range[0]:s.range[1],f=i==="last"?`;
|
|
108
|
+
`:`
|
|
109
|
+
;`;return c.replaceTextRange([p,h],f)}})}return{[YK](s){if(r==="first"&&QK(s))return;let i=e.getLastToken(s);Ia.isSemicolonToken(i)&&n(i,r)},ForStatement(s){let i=s.init&&e.getTokenAfter(s.init,Ia.isSemicolonToken),a=s.test&&e.getTokenAfter(s.test,Ia.isSemicolonToken);i&&n(i,"last"),a&&n(a,"last")}}}}});var iO=M((Qne,nO)=>{b();v();"use strict";nO.exports={meta:{type:"suggestion",docs:{description:"enforce sorted import declarations within modules",recommended:!1,url:"https://eslint.org/docs/rules/sort-imports"},schema:[{type:"object",properties:{ignoreCase:{type:"boolean",default:!1},memberSyntaxSortOrder:{type:"array",items:{enum:["none","all","multiple","single"]},uniqueItems:!0,minItems:4,maxItems:4},ignoreDeclarationSort:{type:"boolean",default:!1},ignoreMemberSort:{type:"boolean",default:!1},allowSeparatedGroups:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{sortImportsAlphabetically:"Imports should be sorted alphabetically.",sortMembersAlphabetically:"Member '{{memberName}}' of the import declaration should be sorted alphabetically.",unexpectedSyntaxOrder:"Expected '{{syntaxA}}' syntax before '{{syntaxB}}' syntax."}},create(t){let e=t.options[0]||{},r=e.ignoreCase||!1,n=e.ignoreDeclarationSort||!1,s=e.ignoreMemberSort||!1,i=e.memberSyntaxSortOrder||["none","all","multiple","single"],a=e.allowSeparatedGroups||!1,o=t.getSourceCode(),l=null;function u(f){return f.specifiers.length===0?"none":f.specifiers[0].type==="ImportNamespaceSpecifier"?"all":f.specifiers.length===1?"single":"multiple"}function c(f){return i.indexOf(u(f))}function p(f){return f.specifiers[0]?f.specifiers[0].local.name:null}function h(f,m){return Math.max(m.loc.start.line-f.loc.end.line-1,0)}return{ImportDeclaration(f){if(!n){if(l&&a&&h(l,f)>0&&(l=null),l){let m=c(f),x=c(l),E=p(f),S=p(l);r&&(S=S&&S.toLowerCase(),E=E&&E.toLowerCase()),m!==x?m<x&&t.report({node:f,messageId:"unexpectedSyntaxOrder",data:{syntaxA:i[m],syntaxB:i[x]}}):S&&E&&E<S&&t.report({node:f,messageId:"sortImportsAlphabetically"})}l=f}if(!s){let m=f.specifiers.filter(S=>S.type==="ImportSpecifier"),x=r?S=>S.local.name.toLowerCase():S=>S.local.name,E=m.map(x).findIndex((S,T,I)=>I[T-1]>S);E!==-1&&t.report({node:m[E],messageId:"sortMembersAlphabetically",data:{memberName:m[E].local.name},fix(S){return m.some(T=>o.getCommentsBefore(T).length||o.getCommentsAfter(T).length)?null:S.replaceTextRange([m[0].range[0],m[m.length-1].range[1]],m.slice().sort((T,I)=>{let y=x(T),w=x(I);return y>w?1:-1}).reduce((T,I,y)=>{let w=y===m.length-1?"":o.getText().slice(m[y].range[1],m[y+1].range[0]);return T+o.getText(I)+w},""))}})}}}}}});var lO=M((Xne,aO)=>{b();v();var oO=function(t,e){var r,n,s=1,i=0,a=0,o=String.alphabet;function l(u,c,p){if(p){for(r=c;p=l(u,r),p<76&&p>65;)++r;return+u.slice(c-1,r)}return p=o&&o.indexOf(u.charAt(c)),p>-1?p+76:(p=u.charCodeAt(c)||0,p<45||p>127?p:p<46?65:p<48?p-1:p<58?p+18:p<65?p-11:p<91?p+11:p<97?p-37:p<123?p+5:p-63)}if((t+="")!=(e+="")){for(;s;)if(n=l(t,i++),s=l(e,a++),n<76&&s<76&&n>66&&s>66&&(n=l(t,i,i),s=l(e,a,i=r),a=r),n!=s)return n<s?-1:1}return 0};try{aO.exports=oO}catch(t){String.naturalCompare=oO}});var fO=M((Zne,uO)=>{b();v();"use strict";var XK=pe(),cO=lO();function ZK(t){let e=XK.getStaticPropertyName(t);return e!==null?e:t.key.name||null}var _a={asc(t,e){return t<=e},ascI(t,e){return t.toLowerCase()<=e.toLowerCase()},ascN(t,e){return cO(t,e)<=0},ascIN(t,e){return cO(t.toLowerCase(),e.toLowerCase())<=0},desc(t,e){return _a.asc(e,t)},descI(t,e){return _a.ascI(e,t)},descN(t,e){return _a.ascN(e,t)},descIN(t,e){return _a.ascIN(e,t)}};uO.exports={meta:{type:"suggestion",docs:{description:"require object keys to be sorted",recommended:!1,url:"https://eslint.org/docs/rules/sort-keys"},schema:[{enum:["asc","desc"]},{type:"object",properties:{caseSensitive:{type:"boolean",default:!0},natural:{type:"boolean",default:!1},minKeys:{type:"integer",minimum:2,default:2}},additionalProperties:!1}],messages:{sortKeys:"Expected object keys to be in {{natural}}{{insensitive}}{{order}}ending order. '{{thisName}}' should be before '{{prevName}}'."}},create(t){let e=t.options[0]||"asc",r=t.options[1],n=r&&r.caseSensitive===!1,s=r&&r.natural,i=r&&r.minKeys,a=_a[e+(n?"I":"")+(s?"N":"")],o=null;return{ObjectExpression(l){o={upper:o,prevName:null,numKeys:l.properties.length}},"ObjectExpression:exit"(){o=o.upper},SpreadElement(l){l.parent.type==="ObjectExpression"&&(o.prevName=null)},Property(l){if(l.parent.type==="ObjectPattern")return;let u=o.prevName,c=o.numKeys,p=ZK(l);p!==null&&(o.prevName=p),!(u===null||p===null||c<i)&&(a(u,p)||t.report({node:l,loc:l.key.loc,messageId:"sortKeys",data:{thisName:p,prevName:u,order:e,insensitive:n?"insensitive ":"",natural:s?"natural ":""}}))}}}}});var hO=M((eie,pO)=>{b();v();"use strict";pO.exports={meta:{type:"suggestion",docs:{description:"require variables within the same declaration block to be sorted",recommended:!1,url:"https://eslint.org/docs/rules/sort-vars"},schema:[{type:"object",properties:{ignoreCase:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{sortVars:"Variables within the same declaration block should be sorted alphabetically."}},create(t){let e=t.options[0]||{},r=e.ignoreCase||!1,n=t.getSourceCode();return{VariableDeclaration(s){let i=s.declarations.filter(u=>u.id.type==="Identifier"),a=r?u=>u.id.name.toLowerCase():u=>u.id.name,o=i.some(u=>u.init!==null&&u.init.type!=="Literal"),l=!1;i.slice(1).reduce((u,c)=>{let p=a(u);return a(c)<p?(t.report({node:c,messageId:"sortVars",fix(f){return o||l?null:f.replaceTextRange([i[0].range[0],i[i.length-1].range[1]],i.slice().sort((m,x)=>{let E=a(m),S=a(x);return E>S?1:-1}).reduce((m,x,E)=>{let S=E===i.length-1?"":n.getText().slice(i[E].range[1],i[E+1].range[0]);return m+n.getText(x)+S},""))}}),l=!0,u):c},i[0])}}}}});var gO=M((tie,mO)=>{b();v();"use strict";var ki=pe();function dO(t){let e=t.parent;return t.type==="BlockStatement"&&ki.isFunction(e)&&e.body===t}mO.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing before blocks",recommended:!1,url:"https://eslint.org/docs/rules/space-before-blocks"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{keywords:{enum:["always","never","off"]},functions:{enum:["always","never","off"]},classes:{enum:["always","never","off"]}},additionalProperties:!1}]}],messages:{unexpectedSpace:"Unexpected space before opening brace.",missingSpace:"Missing space before opening brace."}},create(t){let e=t.options[0],r=t.getSourceCode(),n=!0,s=!0,i=!0,a=!1,o=!1,l=!1;typeof e=="object"?(n=e.functions==="always",s=e.keywords==="always",i=e.classes==="always",a=e.functions==="never",o=e.keywords==="never",l=e.classes==="never"):e==="never"&&(n=!1,s=!1,i=!1,a=!0,o=!0,l=!0);function u(h,f){return ki.isArrowToken(h)||ki.isKeywordToken(h)&&!dO(f)||ki.isColonToken(h)&&f.parent&&f.parent.type==="SwitchCase"&&h===ki.getSwitchCaseColonToken(f.parent,r)}function c(h){let f=r.getTokenBefore(h);if(f&&!u(f,h)&&ki.isTokenOnSameLine(f,h)){let m=r.isSpaceBetweenTokens(f,h),x,E;dO(h)?(x=n,E=a):h.type==="ClassBody"?(x=i,E=l):(x=s,E=o),x&&!m?t.report({node:h,messageId:"missingSpace",fix(S){return S.insertTextBefore(h," ")}}):E&&m&&t.report({node:h,messageId:"unexpectedSpace",fix(S){return S.removeRange([f.range[1],h.range[0]])}})}}function p(h){let f=h.cases,m;f.length>0?m=r.getTokenBefore(f[0]):m=r.getLastToken(h,1),c(m)}return{BlockStatement:c,ClassBody:c,SwitchStatement:p}}}});var EO=M((rie,yO)=>{b();v();"use strict";var xO=pe();yO.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing before `function` definition opening parenthesis",recommended:!1,url:"https://eslint.org/docs/rules/space-before-function-paren"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{anonymous:{enum:["always","never","ignore"]},named:{enum:["always","never","ignore"]},asyncArrow:{enum:["always","never","ignore"]}},additionalProperties:!1}]}],messages:{unexpectedSpace:"Unexpected space before function parentheses.",missingSpace:"Missing space before function parentheses."}},create(t){let e=t.getSourceCode(),r=typeof t.options[0]=="string"?t.options[0]:"always",n=typeof t.options[0]=="object"?t.options[0]:{};function s(o){if(o.id)return!0;let l=o.parent;return l.type==="MethodDefinition"||l.type==="Property"&&(l.kind==="get"||l.kind==="set"||l.method)}function i(o){if(o.type==="ArrowFunctionExpression"){if(o.async&&xO.isOpeningParenToken(e.getFirstToken(o,{skip:1})))return n.asyncArrow||r}else{if(s(o))return n.named||r;if(!o.generator)return n.anonymous||r}return"ignore"}function a(o){let l=i(o);if(l==="ignore")return;let u=e.getFirstToken(o,xO.isOpeningParenToken),c=e.getTokenBefore(u),p=e.isSpaceBetweenTokens(c,u);p&&l==="never"?t.report({node:o,loc:{start:c.loc.end,end:u.loc.start},messageId:"unexpectedSpace",fix(h){let f=e.getCommentsBefore(u);return f.some(m=>m.type==="Line")?null:h.replaceTextRange([c.range[1],u.range[0]],f.reduce((m,x)=>m+e.getText(x),""))}}):!p&&l==="always"&&t.report({node:o,loc:u.loc,messageId:"missingSpace",fix:h=>h.insertTextAfter(c," ")})}return{ArrowFunctionExpression:a,FunctionDeclaration:a,FunctionExpression:a}}}});var vO=M((sie,bO)=>{b();v();"use strict";var Di=pe();bO.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing inside parentheses",recommended:!1,url:"https://eslint.org/docs/rules/space-in-parens"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{exceptions:{type:"array",items:{enum:["{}","[]","()","empty"]},uniqueItems:!0}},additionalProperties:!1}],messages:{missingOpeningSpace:"There must be a space after this paren.",missingClosingSpace:"There must be a space before this paren.",rejectedOpeningSpace:"There should be no space after this paren.",rejectedClosingSpace:"There should be no space before this paren."}},create(t){let e=t.options[0]==="always",r=t.options[1]&&t.options[1].exceptions||[],n={},s;r.length&&(n.braceException=r.includes("{}"),n.bracketException=r.includes("[]"),n.parenException=r.includes("()"),n.empty=r.includes("empty"));function i(){let f=[],m=[];return n.braceException&&(f.push("{"),m.push("}")),n.bracketException&&(f.push("["),m.push("]")),n.parenException&&(f.push("("),m.push(")")),n.empty&&(f.push(")"),m.push("(")),{openers:f,closers:m}}let a=t.getSourceCode();function o(f){return s.openers.includes(f.value)}function l(f){return s.closers.includes(f.value)}function u(f,m){return a.isSpaceBetweenTokens(f,m)||!n.empty&&Di.isClosingParenToken(m)?!1:e?!o(m):o(m)}function c(f,m){return!Di.isTokenOnSameLine(f,m)||m.type==="Line"||!a.isSpaceBetweenTokens(f,m)?!1:e?o(m):!o(m)}function p(f,m){return a.isSpaceBetweenTokens(f,m)||!n.empty&&Di.isOpeningParenToken(f)?!1:e?!l(f):l(f)}function h(f,m){return!Di.isTokenOnSameLine(f,m)||!a.isSpaceBetweenTokens(f,m)?!1:e?l(f):!l(f)}return{Program:function(m){s=i();let x=a.tokensAndComments;x.forEach((E,S)=>{let T=x[S-1],I=x[S+1];!Di.isOpeningParenToken(E)&&!Di.isClosingParenToken(E)||(E.value==="("&&u(E,I)&&t.report({node:m,loc:E.loc,messageId:"missingOpeningSpace",fix(y){return y.insertTextAfter(E," ")}}),E.value==="("&&c(E,I)&&t.report({node:m,loc:{start:E.loc.end,end:I.loc.start},messageId:"rejectedOpeningSpace",fix(y){return y.removeRange([E.range[1],I.range[0]])}}),E.value===")"&&p(T,E)&&t.report({node:m,loc:E.loc,messageId:"missingClosingSpace",fix(y){return y.insertTextBefore(E," ")}}),E.value===")"&&h(T,E)&&t.report({node:m,loc:{start:T.loc.end,end:E.loc.start},messageId:"rejectedClosingSpace",fix(y){return y.removeRange([T.range[1],E.range[0]])}}))})}}}}});var SO=M((nie,CO)=>{b();v();"use strict";var{isEqToken:eY}=pe();CO.exports={meta:{type:"layout",docs:{description:"require spacing around infix operators",recommended:!1,url:"https://eslint.org/docs/rules/space-infix-ops"},fixable:"whitespace",schema:[{type:"object",properties:{int32Hint:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{missingSpace:"Operator '{{operator}}' must be spaced."}},create(t){let e=t.options[0]?t.options[0].int32Hint===!0:!1,r=t.getSourceCode();function n(l,u,c){let p=r.getFirstTokenBetween(l,u,m=>m.value===c),h=r.getTokenBefore(p),f=r.getTokenAfter(p);return!r.isSpaceBetweenTokens(h,p)||!r.isSpaceBetweenTokens(p,f)?p:null}function s(l,u){t.report({node:l,loc:u.loc,messageId:"missingSpace",data:{operator:u.value},fix(c){let p=r.getTokenBefore(u),h=r.getTokenAfter(u),f="";return u.range[0]-p.range[1]==0&&(f=" "),f+=u.value,h.range[0]-u.range[1]==0&&(f+=" "),c.replaceText(u,f)}})}function i(l){let u=l.left.typeAnnotation?l.left.typeAnnotation:l.left,c=l.right,p=l.operator||"=",h=n(u,c,p);h&&(e&&r.getText(l).endsWith("|0")||s(l,h))}function a(l){let u=n(l.test,l.consequent,"?"),c=n(l.consequent,l.alternate,":");u&&s(l,u),c&&s(l,c)}function o(l){let u=l.id.typeAnnotation?l.id.typeAnnotation:l.id,c=l.init;if(c){let p=n(u,c,"=");p&&s(l,p)}}return{AssignmentExpression:i,AssignmentPattern:i,BinaryExpression:i,LogicalExpression:i,ConditionalExpression:a,VariableDeclarator:o,PropertyDefinition(l){if(!l.value)return;let u=r.getTokenBefore(l.value,eY),c=r.getTokenBefore(u),p=r.getTokenAfter(u);(!r.isSpaceBetweenTokens(c,u)||!r.isSpaceBetweenTokens(u,p))&&s(l,u)}}}}});var kO=M((iie,AO)=>{b();v();"use strict";var wO=pe();AO.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing before or after unary operators",recommended:!1,url:"https://eslint.org/docs/rules/space-unary-ops"},fixable:"whitespace",schema:[{type:"object",properties:{words:{type:"boolean",default:!0},nonwords:{type:"boolean",default:!1},overrides:{type:"object",additionalProperties:{type:"boolean"}}},additionalProperties:!1}],messages:{unexpectedBefore:"Unexpected space before unary operator '{{operator}}'.",unexpectedAfter:"Unexpected space after unary operator '{{operator}}'.",unexpectedAfterWord:"Unexpected space after unary word operator '{{word}}'.",wordOperator:"Unary word operator '{{word}}' must be followed by whitespace.",operator:"Unary operator '{{operator}}' must be followed by whitespace.",beforeUnaryExpressions:"Space is required before unary expressions '{{token}}'."}},create(t){let e=t.options[0]||{words:!0,nonwords:!1},r=t.getSourceCode();function n(m){return m&&m.type==="UnaryExpression"&&m.argument.operator==="!"&&m.argument&&m.argument.type==="UnaryExpression"&&m.argument.operator==="!"}function s(m){return e.overrides&&Object.prototype.hasOwnProperty.call(e.overrides,m)}function i(m){return e.overrides[m]}function a(m,x,E,S){E.range[0]===x.range[1]&&t.report({node:m,messageId:"wordOperator",data:{word:S},fix(T){return T.insertTextAfter(x," ")}})}function o(m,x,E,S){wO.canTokensBeAdjacent(x,E)&&E.range[0]>x.range[1]&&t.report({node:m,messageId:"unexpectedAfterWord",data:{word:S},fix(T){return T.removeRange([x.range[1],E.range[0]])}})}function l(m,x,E,S){s(S)?i(S)?a(m,x,E,S):o(m,x,E,S):e.words?a(m,x,E,S):o(m,x,E,S)}function u(m){let x=r.getFirstTokens(m,3),E="yield";!m.argument||m.delegate||l(m,x[0],x[1],E)}function c(m){let x=r.getFirstTokens(m,3);l(m,x[0],x[1],"await")}function p(m,x,E){if(m.prefix){if(n(m))return;x.range[1]===E.range[0]&&t.report({node:m,messageId:"operator",data:{operator:x.value},fix(S){return S.insertTextAfter(x," ")}})}else x.range[1]===E.range[0]&&t.report({node:m,messageId:"beforeUnaryExpressions",data:{token:E.value},fix(S){return S.insertTextBefore(E," ")}})}function h(m,x,E){m.prefix?E.range[0]>x.range[1]&&t.report({node:m,messageId:"unexpectedAfter",data:{operator:x.value},fix(S){return wO.canTokensBeAdjacent(x,E)?S.removeRange([x.range[1],E.range[0]]):null}}):E.range[0]>x.range[1]&&t.report({node:m,messageId:"unexpectedBefore",data:{operator:E.value},fix(S){return S.removeRange([x.range[1],E.range[0]])}})}function f(m){let x=m.type==="UpdateExpression"&&!m.prefix?r.getLastTokens(m,2):r.getFirstTokens(m,2),E=x[0],S=x[1];if((m.type==="NewExpression"||m.prefix)&&E.type==="Keyword"){l(m,E,S,E.value);return}let T=m.prefix?x[0].value:x[1].value;s(T)?i(T)?p(m,E,S):h(m,E,S):e.nonwords?p(m,E,S):h(m,E,S)}return{UnaryExpression:f,UpdateExpression:f,NewExpression:f,YieldExpression:u,AwaitExpression:c}}}});var PO=M((aie,DO)=>{b();v();"use strict";var tY=na(),rY=pe();function Ba(t){return`(?:${tY(t)})`}function TO(t){return`${Ba(t)}+`}function sY(t){return t.indexOf("*")===-1?t.concat("*"):t}function FO(t){let e="";return t.length===0?e+="\\s":(e+="(?:\\s|",t.length===1?e+=TO(t[0]):(e+="(?:",e+=t.map(TO).join("|"),e+=")"),e+=`(?:$|[${Array.from(rY.LINEBREAKS).join("")}]))`),e}function nY(t,e){let r="^";return t.length===1?r+=Ba(t[0]):(r+="(?:",r+=t.map(Ba).join("|"),r+=")"),r+="?",r+=FO(e),new RegExp(r,"u")}function iY(t){let e=`^(${t.map(Ba).join("|")})?[ ]+`;return new RegExp(e,"u")}DO.exports={meta:{type:"suggestion",docs:{description:"enforce consistent spacing after the `//` or `/*` in a comment",recommended:!1,url:"https://eslint.org/docs/rules/spaced-comment"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}},line:{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}}},additionalProperties:!1},block:{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}},balanced:{type:"boolean",default:!1}},additionalProperties:!1}},additionalProperties:!1}],messages:{unexpectedSpaceAfterMarker:"Unexpected space or tab after marker ({{refChar}}) in comment.",expectedExceptionAfter:"Expected exception block, space or tab after '{{refChar}}' in comment.",unexpectedSpaceBefore:"Unexpected space or tab before '*/' in comment.",unexpectedSpaceAfter:"Unexpected space or tab after '{{refChar}}' in comment.",expectedSpaceBefore:"Expected space or tab before '*/' in comment.",expectedSpaceAfter:"Expected space or tab after '{{refChar}}' in comment."}},create(t){let e=t.getSourceCode(),r=t.options[0]!=="never",n=t.options[1]||{},s=n.block&&n.block.balanced,i=["block","line"].reduce((u,c)=>{let p=sY(n[c]&&n[c].markers||n.markers||[]),h=n[c]&&n[c].exceptions||n.exceptions||[],f="[ ]+$";return u[c]={beginRegex:r?nY(p,h):iY(p),endRegex:s&&r?new RegExp(`${FO(h)}$`,"u"):new RegExp(f,"u"),hasExceptions:h.length>0,captureMarker:new RegExp(`^(${p.map(Ba).join("|")})`,"u"),markers:new Set(p)},u},{});function a(u,c,p,h){let f=u.type.toLowerCase(),m=f==="block"?"/*":"//";t.report({node:u,fix(x){let E=u.range[0],S=E+2;return r?(p&&(S+=p[0].length),x.insertTextAfterRange([E,S]," ")):(S+=p[0].length,x.replaceTextRange([E,S],m+(p[1]?p[1]:"")))},messageId:c,data:{refChar:h}})}function o(u,c,p){t.report({node:u,fix(h){if(r)return h.insertTextAfterRange([u.range[0],u.range[1]-2]," ");let f=u.range[1]-2,m=f-p[0].length;return h.replaceTextRange([m,f],"")},messageId:c})}function l(u){let c=u.type.toLowerCase(),p=i[c],h=c==="block"?"/*":"//";if(u.value.length===0||p.markers.has(u.value))return;let f=p.beginRegex.exec(u.value),m=p.endRegex.exec(u.value);if(r){if(!f){let x=p.captureMarker.exec(u.value),E=x?h+x[0]:h;p.hasExceptions?a(u,"expectedExceptionAfter",x,E):a(u,"expectedSpaceAfter",x,E)}s&&c==="block"&&!m&&o(u,"expectedSpaceBefore")}else f&&(f[1]?a(u,"unexpectedSpaceAfterMarker",f,f[1]):a(u,"unexpectedSpaceAfter",f,h)),s&&c==="block"&&m&&o(u,"unexpectedSpaceBefore",m)}return{Program(){e.getAllComments().filter(c=>c.type!=="Shebang").forEach(l)}}}}});var BO=M((oie,IO)=>{b();v();"use strict";var aY=pe();function _O(t){let e=[];for(let r=0;r<t.length;r++){let n=t[r];if(n.type==="ExpressionStatement"&&n.expression.type==="Literal"&&n.expression.value==="use strict")e[r]=n;else break}return e}function oY(t){return t.type==="Identifier"}function Xp(t){return t.every(oY)}IO.exports={meta:{type:"suggestion",docs:{description:"require or disallow strict mode directives",recommended:!1,url:"https://eslint.org/docs/rules/strict"},schema:[{enum:["never","global","function","safe"]}],fixable:"code",messages:{function:"Use the function form of 'use strict'.",global:"Use the global form of 'use strict'.",multiple:"Multiple 'use strict' directives.",never:"Strict mode is not permitted.",unnecessary:"Unnecessary 'use strict' directive.",module:"'use strict' is unnecessary inside of modules.",implied:"'use strict' is unnecessary when implied strict mode is enabled.",unnecessaryInClasses:"'use strict' is unnecessary inside of classes.",nonSimpleParameterList:"'use strict' directive inside a function with non-simple parameter list throws a syntax error since ES2016.",wrap:"Wrap {{name}} in a function with 'use strict' directive."}},create(t){let e=t.parserOptions.ecmaFeatures||{},r=[],n=[],s=t.options[0]||"safe";e.impliedStrict?s="implied":s==="safe"&&(s=e.globalReturn?"global":"function");function i(m){return m==="multiple"||m==="unnecessary"||m==="module"||m==="implied"||m==="unnecessaryInClasses"}function a(m){return x=>x.remove(m)}function o(m,x,E,S,T){m.slice(x,E).forEach(I=>{t.report({node:I,messageId:S,fix:T?a(I):null})})}function l(m,x,E){o(m,0,m.length,x,E)}function u(m,x,E){o(m,1,m.length,x,E)}function c(m,x){let E=n.length>0,S=r.length===0&&n.length===0,T=r.length>0&&r[r.length-1],I=x.length>0;I?(Xp(m.params)?T?t.report({node:x[0],messageId:"unnecessary",fix:a(x[0])}):E&&t.report({node:x[0],messageId:"unnecessaryInClasses",fix:a(x[0])}):t.report({node:x[0],messageId:"nonSimpleParameterList"}),u(x,"multiple",!0)):S&&(Xp(m.params)?t.report({node:m,messageId:"function"}):t.report({node:m,messageId:"wrap",data:{name:aY.getFunctionNameWithKind(m)}})),r.push(T||I)}function p(){r.pop()}function h(m){let x=m.body.type==="BlockStatement",E=x?_O(m.body.body):[];s==="function"?c(m,E):E.length>0&&(Xp(m.params)?l(E,s,i(s)):(t.report({node:E[0],messageId:"nonSimpleParameterList"}),u(E,"multiple",!0)))}let f={Program(m){let x=_O(m.body);m.sourceType==="module"&&(s="module"),s==="global"?(m.body.length>0&&x.length===0&&t.report({node:m,messageId:"global"}),u(x,"multiple",!0)):l(x,s,i(s))},FunctionDeclaration:h,FunctionExpression:h,ArrowFunctionExpression:h};return s==="function"&&Object.assign(f,{ClassBody(){n.push(!0)},"ClassBody:exit"(){n.pop()},"FunctionDeclaration:exit":p,"FunctionExpression:exit":p,"ArrowFunctionExpression:exit":p}),f}}});var RO=M((lie,OO)=>{b();v();"use strict";var nu=pe();OO.exports={meta:{type:"layout",docs:{description:"enforce spacing around colons of switch statements",recommended:!1,url:"https://eslint.org/docs/rules/switch-colon-spacing"},schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"whitespace",messages:{expectedBefore:"Expected space(s) before this colon.",expectedAfter:"Expected space(s) after this colon.",unexpectedBefore:"Unexpected space(s) before this colon.",unexpectedAfter:"Unexpected space(s) after this colon."}},create(t){let e=t.getSourceCode(),r=t.options[0]||{},n=r.before===!0,s=r.after!==!1;function i(l,u,c){return nu.isClosingBraceToken(u)||!nu.isTokenOnSameLine(l,u)||e.isSpaceBetweenTokens(l,u)===c}function a(l,u){return e.getFirstTokenBetween(l,u,{includeComments:!0,filter:nu.isCommentToken})!==null}function o(l,u,c,p){return a(u,c)?null:p?l.insertTextAfter(u," "):l.removeRange([u.range[1],c.range[0]])}return{SwitchCase(l){let u=nu.getSwitchCaseColonToken(l,e),c=e.getTokenBefore(u),p=e.getTokenAfter(u);i(c,u,n)||t.report({node:l,loc:u.loc,messageId:n?"expectedBefore":"unexpectedBefore",fix:h=>o(h,c,u,n)}),i(u,p,s)||t.report({node:l,loc:u.loc,messageId:s?"expectedAfter":"unexpectedAfter",fix:h=>o(h,u,p,s)})}}}}});var MO=M((uie,LO)=>{b();v();"use strict";var NO=pe();LO.exports={meta:{type:"suggestion",docs:{description:"require symbol descriptions",recommended:!1,url:"https://eslint.org/docs/rules/symbol-description"},fixable:null,schema:[],messages:{expected:"Expected Symbol to have a description."}},create(t){function e(r){r.arguments.length===0&&t.report({node:r,messageId:"expected"})}return{"Program:exit"(){let r=t.getScope(),n=NO.getVariableByName(r,"Symbol");n&&n.defs.length===0&&n.references.forEach(s=>{let i=s.identifier;NO.isCallee(i)&&e(i.parent)})}}}}});var VO=M((cie,jO)=>{b();v();"use strict";var qO=pe();jO.exports={meta:{type:"layout",docs:{description:"require or disallow spacing around embedded expressions of template strings",recommended:!1,url:"https://eslint.org/docs/rules/template-curly-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{expectedBefore:"Expected space(s) before '}'.",expectedAfter:"Expected space(s) after '${'.",unexpectedBefore:"Unexpected space(s) before '}'.",unexpectedAfter:"Unexpected space(s) after '${'."}},create(t){let e=t.getSourceCode(),r=t.options[0]==="always";function n(i){if(!i.value.startsWith("}"))return;let a=e.getTokenBefore(i,{includeComments:!0}),o=e.isSpaceBetween(a,i);!qO.isTokenOnSameLine(a,i)||(r&&!o&&t.report({loc:{start:i.loc.start,end:{line:i.loc.start.line,column:i.loc.start.column+1}},messageId:"expectedBefore",fix:l=>l.insertTextBefore(i," ")}),!r&&o&&t.report({loc:{start:a.loc.end,end:i.loc.start},messageId:"unexpectedBefore",fix:l=>l.removeRange([a.range[1],i.range[0]])}))}function s(i){if(!i.value.endsWith("${"))return;let a=e.getTokenAfter(i,{includeComments:!0}),o=e.isSpaceBetween(i,a);!qO.isTokenOnSameLine(i,a)||(r&&!o&&t.report({loc:{start:{line:i.loc.end.line,column:i.loc.end.column-2},end:i.loc.end},messageId:"expectedAfter",fix:l=>l.insertTextAfter(i," ")}),!r&&o&&t.report({loc:{start:i.loc.end,end:a.loc.start},messageId:"unexpectedAfter",fix:l=>l.removeRange([i.range[1],a.range[0]])}))}return{TemplateElement(i){let a=e.getFirstToken(i);n(a),s(a)}}}}});var $O=M((fie,UO)=>{b();v();"use strict";UO.exports={meta:{type:"layout",docs:{description:"require or disallow spacing between template tags and their literals",recommended:!1,url:"https://eslint.org/docs/rules/template-tag-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{unexpected:"Unexpected space between template tag and template literal.",missing:"Missing space between template tag and template literal."}},create(t){let e=t.options[0]!=="always",r=t.getSourceCode();function n(s){let i=r.getTokenBefore(s.quasi),a=r.getFirstToken(s.quasi),o=r.isSpaceBetweenTokens(i,a);e&&o?t.report({node:s,loc:{start:i.loc.end,end:a.loc.start},messageId:"unexpected",fix(l){let u=r.getCommentsBefore(s.quasi);return u.some(c=>c.type==="Line")?null:l.replaceTextRange([i.range[1],a.range[0]],u.reduce((c,p)=>c+r.getText(p),""))}}):!e&&!o&&t.report({node:s,loc:{start:s.loc.start,end:a.loc.start},messageId:"missing",fix(l){return l.insertTextAfter(i," ")}})}return{TaggedTemplateExpression:n}}}});var GO=M((pie,WO)=>{b();v();"use strict";WO.exports={meta:{type:"layout",docs:{description:"require or disallow Unicode byte order mark (BOM)",recommended:!1,url:"https://eslint.org/docs/rules/unicode-bom"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{expected:"Expected Unicode BOM (Byte Order Mark).",unexpected:"Unexpected Unicode BOM (Byte Order Mark)."}},create(t){return{Program:function(r){let n=t.getSourceCode(),s={column:0,line:1},i=t.options[0]||"never";!n.hasBOM&&i==="always"?t.report({node:r,loc:s,messageId:"expected",fix(a){return a.insertTextBeforeRange([0,1],"\uFEFF")}}):n.hasBOM&&i==="never"&&t.report({node:r,loc:s,messageId:"unexpected",fix(a){return a.removeRange([-1,0])}})}}}}});var HO=M((hie,zO)=>{b();v();"use strict";var iu=pe();function Oa(t){return Boolean(t)&&(iu.isSpecificId(t,"NaN")||iu.isSpecificMemberAccess(t,"Number","NaN"))}zO.exports={meta:{type:"problem",docs:{description:"require calls to `isNaN()` when checking for `NaN`",recommended:!0,url:"https://eslint.org/docs/rules/use-isnan"},schema:[{type:"object",properties:{enforceForSwitchCase:{type:"boolean",default:!0},enforceForIndexOf:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{comparisonWithNaN:"Use the isNaN function to compare with NaN.",switchNaN:"'switch(NaN)' can never match a case clause. Use Number.isNaN instead of the switch.",caseNaN:"'case NaN' can never match. Use Number.isNaN before the switch.",indexOfNaN:"Array prototype method '{{ methodName }}' cannot find NaN."}},create(t){let e=!t.options[0]||t.options[0].enforceForSwitchCase,r=t.options[0]&&t.options[0].enforceForIndexOf;function n(o){/^(?:[<>]|[!=]=)=?$/u.test(o.operator)&&(Oa(o.left)||Oa(o.right))&&t.report({node:o,messageId:"comparisonWithNaN"})}function s(o){Oa(o.discriminant)&&t.report({node:o,messageId:"switchNaN"});for(let l of o.cases)Oa(l.test)&&t.report({node:l,messageId:"caseNaN"})}function i(o){let l=iu.skipChainExpression(o.callee);if(l.type==="MemberExpression"){let u=iu.getStaticPropertyName(l);(u==="indexOf"||u==="lastIndexOf")&&o.arguments.length===1&&Oa(o.arguments[0])&&t.report({node:o,messageId:"indexOfNaN",data:{methodName:u}})}}let a={BinaryExpression:n};return e&&(a.SwitchStatement=s),r&&(a.CallExpression=i),a}}});var YO=M((mie,KO)=>{KO.exports={_from:"doctrine@^3.0.0",_id:"doctrine@3.0.0",_inBundle:!1,_integrity:"sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",_location:"/doctrine",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"doctrine@^3.0.0",name:"doctrine",escapedName:"doctrine",rawSpec:"^3.0.0",saveSpec:null,fetchSpec:"^3.0.0"},_requiredBy:["/eslint"],_resolved:"https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",_shasum:"addebead72a6574db783639dc87a121773973961",_spec:"doctrine@^3.0.0",_where:"D:\\DevWork\\localpen\\node_modules\\eslint",bugs:{url:"https://github.com/eslint/doctrine/issues"},bundleDependencies:!1,dependencies:{esutils:"^2.0.2"},deprecated:!1,description:"JSDoc parser",devDependencies:{coveralls:"^3.0.1",dateformat:"^1.0.11",eslint:"^1.10.3","eslint-release":"^1.0.0",linefix:"^0.1.1",mocha:"^3.4.2","npm-license":"^0.3.1",nyc:"^10.3.2",semver:"^5.0.3",shelljs:"^0.5.3","shelljs-nodecli":"^0.1.1",should:"^5.0.1"},directories:{lib:"./lib"},engines:{node:">=6.0.0"},files:["lib"],homepage:"https://github.com/eslint/doctrine",license:"Apache-2.0",main:"lib/doctrine.js",maintainers:[{name:"Nicholas C. Zakas",email:"nicholas+npm@nczconsulting.com",url:"https://www.nczonline.net"},{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",url:"https://github.com/Constellation"}],name:"doctrine",repository:{type:"git",url:"git+https://github.com/eslint/doctrine.git"},scripts:{coveralls:"nyc report --reporter=text-lcov | coveralls","generate-alpharelease":"eslint-generate-prerelease alpha","generate-betarelease":"eslint-generate-prerelease beta","generate-rcrelease":"eslint-generate-prerelease rc","generate-release":"eslint-generate-release",lint:"eslint lib/",pretest:"npm run lint","publish-release":"eslint-publish-release",test:"nyc mocha"},version:"3.0.0"}});var Zp=M(Ra=>{b();v();(function(){"use strict";var t;t=YO().version,Ra.VERSION=t;function e(n){this.name="DoctrineError",this.message=n}e.prototype=function(){var n=function(){};return n.prototype=Error.prototype,new n}(),e.prototype.constructor=e,Ra.DoctrineError=e;function r(n){throw new e(n)}Ra.throwError=r,Ra.assert=fn()})()});var JO=M(La=>{b();v();(function(){"use strict";var t,e,r,n,s,i,a,o,l,u,c,p;l=ua(),u=Zp(),t={NullableLiteral:"NullableLiteral",AllLiteral:"AllLiteral",NullLiteral:"NullLiteral",UndefinedLiteral:"UndefinedLiteral",VoidLiteral:"VoidLiteral",UnionType:"UnionType",ArrayType:"ArrayType",RecordType:"RecordType",FieldType:"FieldType",FunctionType:"FunctionType",ParameterType:"ParameterType",RestType:"RestType",NonNullableType:"NonNullableType",OptionalType:"OptionalType",NullableType:"NullableType",NameExpression:"NameExpression",TypeApplication:"TypeApplication",StringLiteralType:"StringLiteralType",NumericLiteralType:"NumericLiteralType",BooleanLiteralType:"BooleanLiteralType"},e={ILLEGAL:0,DOT_LT:1,REST:2,LT:3,GT:4,LPAREN:5,RPAREN:6,LBRACE:7,RBRACE:8,LBRACK:9,RBRACK:10,COMMA:11,COLON:12,STAR:13,PIPE:14,QUESTION:15,BANG:16,EQUAL:17,NAME:18,STRING:19,NUMBER:20,EOF:21};function h(te){return"><(){}[],:*|?!=".indexOf(String.fromCharCode(te))===-1&&!l.code.isWhiteSpace(te)&&!l.code.isLineTerminator(te)}function f(te,ne,ue,re){this._previous=te,this._index=ne,this._token=ue,this._value=re}f.prototype.restore=function(){i=this._previous,s=this._index,a=this._token,o=this._value},f.save=function(){return new f(i,s,a,o)};function m(te,ne){return p&&(te.range=[ne[0]+c,ne[1]+c]),te}function x(){var te=r.charAt(s);return s+=1,te}function E(te){var ne,ue,re,fe=0;for(ue=te==="u"?4:2,ne=0;ne<ue;++ne)if(s<n&&l.code.isHexDigit(r.charCodeAt(s)))re=x(),fe=fe*16+"0123456789abcdef".indexOf(re.toLowerCase());else return"";return String.fromCharCode(fe)}function S(){var te="",ne,ue,re,fe,Ce;for(ne=r.charAt(s),++s;s<n;)if(ue=x(),ue===ne){ne="";break}else if(ue==="\\")if(ue=x(),l.code.isLineTerminator(ue.charCodeAt(0)))ue==="\r"&&r.charCodeAt(s)===10&&++s;else switch(ue){case"n":te+=`
|
|
110
|
+
`;break;case"r":te+="\r";break;case"t":te+=" ";break;case"u":case"x":Ce=s,fe=E(ue),fe?te+=fe:(s=Ce,te+=ue);break;case"b":te+="\b";break;case"f":te+="\f";break;case"v":te+="\v";break;default:l.code.isOctalDigit(ue.charCodeAt(0))?(re="01234567".indexOf(ue),s<n&&l.code.isOctalDigit(r.charCodeAt(s))&&(re=re*8+"01234567".indexOf(x()),"0123".indexOf(ue)>=0&&s<n&&l.code.isOctalDigit(r.charCodeAt(s))&&(re=re*8+"01234567".indexOf(x()))),te+=String.fromCharCode(re)):te+=ue;break}else{if(l.code.isLineTerminator(ue.charCodeAt(0)))break;te+=ue}return ne!==""&&u.throwError("unexpected quote"),o=te,e.STRING}function T(){var te,ne;if(te="",ne=r.charCodeAt(s),ne!==46){if(te=x(),ne=r.charCodeAt(s),te==="0"){if(ne===120||ne===88){for(te+=x();s<n&&(ne=r.charCodeAt(s),!!l.code.isHexDigit(ne));)te+=x();return te.length<=2&&u.throwError("unexpected token"),s<n&&(ne=r.charCodeAt(s),l.code.isIdentifierStartES5(ne)&&u.throwError("unexpected token")),o=parseInt(te,16),e.NUMBER}if(l.code.isOctalDigit(ne)){for(te+=x();s<n&&(ne=r.charCodeAt(s),!!l.code.isOctalDigit(ne));)te+=x();return s<n&&(ne=r.charCodeAt(s),(l.code.isIdentifierStartES5(ne)||l.code.isDecimalDigit(ne))&&u.throwError("unexpected token")),o=parseInt(te,8),e.NUMBER}l.code.isDecimalDigit(ne)&&u.throwError("unexpected token")}for(;s<n&&(ne=r.charCodeAt(s),!!l.code.isDecimalDigit(ne));)te+=x()}if(ne===46)for(te+=x();s<n&&(ne=r.charCodeAt(s),!!l.code.isDecimalDigit(ne));)te+=x();if(ne===101||ne===69)if(te+=x(),ne=r.charCodeAt(s),(ne===43||ne===45)&&(te+=x()),ne=r.charCodeAt(s),l.code.isDecimalDigit(ne))for(te+=x();s<n&&(ne=r.charCodeAt(s),!!l.code.isDecimalDigit(ne));)te+=x();else u.throwError("unexpected token");return s<n&&(ne=r.charCodeAt(s),l.code.isIdentifierStartES5(ne)&&u.throwError("unexpected token")),o=parseFloat(te),e.NUMBER}function I(){var te,ne;for(o=x();s<n&&h(r.charCodeAt(s));){if(te=r.charCodeAt(s),te===46){if(s+1>=n)return e.ILLEGAL;if(ne=r.charCodeAt(s+1),ne===60)break}o+=x()}return e.NAME}function y(){var te;for(i=s;s<n&&l.code.isWhiteSpace(r.charCodeAt(s));)x();if(s>=n)return a=e.EOF,a;switch(te=r.charCodeAt(s),te){case 39:case 34:return a=S(),a;case 58:return x(),a=e.COLON,a;case 44:return x(),a=e.COMMA,a;case 40:return x(),a=e.LPAREN,a;case 41:return x(),a=e.RPAREN,a;case 91:return x(),a=e.LBRACK,a;case 93:return x(),a=e.RBRACK,a;case 123:return x(),a=e.LBRACE,a;case 125:return x(),a=e.RBRACE,a;case 46:if(s+1<n){if(te=r.charCodeAt(s+1),te===60)return x(),x(),a=e.DOT_LT,a;if(te===46&&s+2<n&&r.charCodeAt(s+2)===46)return x(),x(),x(),a=e.REST,a;if(l.code.isDecimalDigit(te))return a=T(),a}return a=e.ILLEGAL,a;case 60:return x(),a=e.LT,a;case 62:return x(),a=e.GT,a;case 42:return x(),a=e.STAR,a;case 124:return x(),a=e.PIPE,a;case 63:return x(),a=e.QUESTION,a;case 33:return x(),a=e.BANG,a;case 61:return x(),a=e.EQUAL,a;case 45:return a=T(),a;default:return l.code.isDecimalDigit(te)?(a=T(),a):(u.assert(h(te)),a=I(),a)}}function w(te,ne){u.assert(a===te,ne||"consumed token not matched"),y()}function D(te,ne){a!==te&&u.throwError(ne||"unexpected token"),y()}function R(){var te,ne=s-1;if(w(e.LPAREN,"UnionType should start with ("),te=[],a!==e.RPAREN)for(;te.push(X()),a!==e.RPAREN;)D(e.PIPE);return w(e.RPAREN,"UnionType should end with )"),m({type:t.UnionType,elements:te},[ne,i])}function z(){var te,ne=s-1,ue;for(w(e.LBRACK,"ArrayType should start with ["),te=[];a!==e.RBRACK;){if(a===e.REST){ue=s-3,w(e.REST),te.push(m({type:t.RestType,expression:X()},[ue,i]));break}else te.push(X());a!==e.RBRACK&&D(e.COMMA)}return D(e.RBRACK),m({type:t.ArrayType,elements:te},[ne,i])}function q(){var te=o;if(a===e.NAME||a===e.STRING)return y(),te;if(a===e.NUMBER)return w(e.NUMBER),String(te);u.throwError("unexpected token")}function W(){var te,ne=i;return te=q(),a===e.COLON?(w(e.COLON),m({type:t.FieldType,key:te,value:X()},[ne,i])):m({type:t.FieldType,key:te,value:null},[ne,i])}function _(){var te,ne=s-1,ue;if(w(e.LBRACE,"RecordType should start with {"),te=[],a===e.COMMA)w(e.COMMA);else for(;a!==e.RBRACE;)te.push(W()),a!==e.RBRACE&&D(e.COMMA);return ue=s,D(e.RBRACE),m({type:t.RecordType,fields:te},[ne,ue])}function C(){var te=o,ne=s-te.length;return D(e.NAME),a===e.COLON&&(te==="module"||te==="external"||te==="event")&&(w(e.COLON),te+=":"+o,D(e.NAME)),m({type:t.NameExpression,name:te},[ne,i])}function $(){var te=[];for(te.push(ie());a===e.COMMA;)w(e.COMMA),te.push(ie());return te}function F(){var te,ne,ue=s-o.length;return te=C(),a===e.DOT_LT||a===e.LT?(y(),ne=$(),D(e.GT),m({type:t.TypeApplication,expression:te,applications:ne},[ue,i])):te}function U(){return w(e.COLON,"ResultType should start with :"),a===e.NAME&&o==="void"?(w(e.NAME),{type:t.VoidLiteral}):X()}function Q(){for(var te=[],ne=!1,ue,re=!1,fe,Ce=s-3,Ge;a!==e.RPAREN;)a===e.REST&&(w(e.REST),re=!0),fe=i,ue=X(),ue.type===t.NameExpression&&a===e.COLON&&(Ge=i-ue.name.length,w(e.COLON),ue=m({type:t.ParameterType,name:ue.name,expression:X()},[Ge,i])),a===e.EQUAL?(w(e.EQUAL),ue=m({type:t.OptionalType,expression:ue},[fe,i]),ne=!0):ne&&u.throwError("unexpected token"),re&&(ue=m({type:t.RestType,expression:ue},[Ce,i])),te.push(ue),a!==e.RPAREN&&D(e.COMMA);return te}function B(){var te,ne,ue,re,fe,Ce=s-o.length;return u.assert(a===e.NAME&&o==="function","FunctionType should start with 'function'"),w(e.NAME),D(e.LPAREN),te=!1,ue=[],ne=null,a!==e.RPAREN&&(a===e.NAME&&(o==="this"||o==="new")?(te=o==="new",w(e.NAME),D(e.COLON),ne=F(),a===e.COMMA&&(w(e.COMMA),ue=Q())):ue=Q()),D(e.RPAREN),re=null,a===e.COLON&&(re=U()),fe=m({type:t.FunctionType,params:ue,result:re},[Ce,i]),ne&&(fe.this=ne,te&&(fe.new=!0)),fe}function K(){var te,ne;switch(a){case e.STAR:return w(e.STAR),m({type:t.AllLiteral},[i-1,i]);case e.LPAREN:return R();case e.LBRACK:return z();case e.LBRACE:return _();case e.NAME:if(ne=s-o.length,o==="null")return w(e.NAME),m({type:t.NullLiteral},[ne,i]);if(o==="undefined")return w(e.NAME),m({type:t.UndefinedLiteral},[ne,i]);if(o==="true"||o==="false")return w(e.NAME),m({type:t.BooleanLiteralType,value:o==="true"},[ne,i]);if(te=f.save(),o==="function")try{return B()}catch(ue){te.restore()}return F();case e.STRING:return y(),m({type:t.StringLiteralType,value:o},[i-o.length-2,i]);case e.NUMBER:return y(),m({type:t.NumericLiteralType,value:o},[i-String(o).length,i]);default:u.throwError("unexpected token")}}function X(){var te,ne;return a===e.QUESTION?(ne=s-1,w(e.QUESTION),a===e.COMMA||a===e.EQUAL||a===e.RBRACE||a===e.RPAREN||a===e.PIPE||a===e.EOF||a===e.RBRACK||a===e.GT?m({type:t.NullableLiteral},[ne,i]):m({type:t.NullableType,expression:K(),prefix:!0},[ne,i])):a===e.BANG?(ne=s-1,w(e.BANG),m({type:t.NonNullableType,expression:K(),prefix:!0},[ne,i])):(ne=i,te=K(),a===e.BANG?(w(e.BANG),m({type:t.NonNullableType,expression:te,prefix:!1},[ne,i])):a===e.QUESTION?(w(e.QUESTION),m({type:t.NullableType,expression:te,prefix:!1},[ne,i])):a===e.LBRACK?(w(e.LBRACK),D(e.RBRACK,"expected an array-style type declaration ("+o+"[])"),m({type:t.TypeApplication,expression:m({type:t.NameExpression,name:"Array"},[ne,i]),applications:[te]},[ne,i])):te)}function ie(){var te,ne;if(te=X(),a!==e.PIPE)return te;for(ne=[te],w(e.PIPE);ne.push(X()),a===e.PIPE;)w(e.PIPE);return m({type:t.UnionType,elements:ne},[0,s])}function ve(){var te;return a===e.REST?(w(e.REST),m({type:t.RestType,expression:ie()},[0,s])):(te=ie(),a===e.EQUAL?(w(e.EQUAL),m({type:t.OptionalType,expression:te},[0,s])):te)}function Ae(te,ne){var ue;return r=te,n=r.length,s=0,i=0,p=ne&&ne.range,c=ne&&ne.startIndex||0,y(),ue=ie(),ne&&ne.midstream?{expression:ue,index:i}:(a!==e.EOF&&u.throwError("not reach to EOF"),ue)}function me(te,ne){var ue;return r=te,n=r.length,s=0,i=0,p=ne&&ne.range,c=ne&&ne.startIndex||0,y(),ue=ve(),ne&&ne.midstream?{expression:ue,index:i}:(a!==e.EOF&&u.throwError("not reach to EOF"),ue)}function ce(te,ne,ue){var re,fe,Ce;switch(te.type){case t.NullableLiteral:re="?";break;case t.AllLiteral:re="*";break;case t.NullLiteral:re="null";break;case t.UndefinedLiteral:re="undefined";break;case t.VoidLiteral:re="void";break;case t.UnionType:for(ue?re="":re="(",fe=0,Ce=te.elements.length;fe<Ce;++fe)re+=ce(te.elements[fe],ne),fe+1!==Ce&&(re+=ne?"|":" | ");ue||(re+=")");break;case t.ArrayType:for(re="[",fe=0,Ce=te.elements.length;fe<Ce;++fe)re+=ce(te.elements[fe],ne),fe+1!==Ce&&(re+=ne?",":", ");re+="]";break;case t.RecordType:for(re="{",fe=0,Ce=te.fields.length;fe<Ce;++fe)re+=ce(te.fields[fe],ne),fe+1!==Ce&&(re+=ne?",":", ");re+="}";break;case t.FieldType:te.value?re=te.key+(ne?":":": ")+ce(te.value,ne):re=te.key;break;case t.FunctionType:for(re=ne?"function(":"function (",te.this&&(te.new?re+=ne?"new:":"new: ":re+=ne?"this:":"this: ",re+=ce(te.this,ne),te.params.length!==0&&(re+=ne?",":", ")),fe=0,Ce=te.params.length;fe<Ce;++fe)re+=ce(te.params[fe],ne),fe+1!==Ce&&(re+=ne?",":", ");re+=")",te.result&&(re+=(ne?":":": ")+ce(te.result,ne));break;case t.ParameterType:re=te.name+(ne?":":": ")+ce(te.expression,ne);break;case t.RestType:re="...",te.expression&&(re+=ce(te.expression,ne));break;case t.NonNullableType:te.prefix?re="!"+ce(te.expression,ne):re=ce(te.expression,ne)+"!";break;case t.OptionalType:re=ce(te.expression,ne)+"=";break;case t.NullableType:te.prefix?re="?"+ce(te.expression,ne):re=ce(te.expression,ne)+"?";break;case t.NameExpression:re=te.name;break;case t.TypeApplication:for(re=ce(te.expression,ne)+".<",fe=0,Ce=te.applications.length;fe<Ce;++fe)re+=ce(te.applications[fe],ne),fe+1!==Ce&&(re+=ne?",":", ");re+=">";break;case t.StringLiteralType:re='"'+te.value+'"';break;case t.NumericLiteralType:re=String(te.value);break;case t.BooleanLiteralType:re=String(te.value);break;default:u.throwError("Unknown type "+te.type)}return re}function Fe(te,ne){return ne==null&&(ne={}),ce(te,ne.compact,ne.topLevel)}La.parseType=Ae,La.parseParamType=me,La.stringify=Fe,La.Syntax=t})()});var QO=M(ns=>{b();v();(function(){"use strict";var t,e,r,n,s;n=ua(),t=JO(),e=Zp();function i(w,D,R){return w.slice(D,R)}s=function(){var w=Object.prototype.hasOwnProperty;return function(R,z){return w.call(R,z)}}();function a(w){var D={},R;for(R in w)w.hasOwnProperty(R)&&(D[R]=w[R]);return D}function o(w){return w>=97&&w<=122||w>=65&&w<=90||w>=48&&w<=57}function l(w){return w==="param"||w==="argument"||w==="arg"}function u(w){return w==="return"||w==="returns"}function c(w){return w==="property"||w==="prop"}function p(w){return l(w)||c(w)||w==="alias"||w==="this"||w==="mixes"||w==="requires"}function h(w){return p(w)||w==="const"||w==="constant"}function f(w){return c(w)||l(w)}function m(w){return c(w)||l(w)}function x(w){return l(w)||u(w)||w==="define"||w==="enum"||w==="implements"||w==="this"||w==="type"||w==="typedef"||c(w)}function E(w){return x(w)||w==="throws"||w==="const"||w==="constant"||w==="namespace"||w==="member"||w==="var"||w==="module"||w==="constructor"||w==="class"||w==="extends"||w==="augments"||w==="public"||w==="private"||w==="protected"}var S="[ \\f\\t\\v\\u00a0\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]",T="("+S+"*(?:\\*"+S+`?)?)(.+|[\r
|
|
111
|
+
\u2028\u2029])`;function I(w){return w.replace(/^\/\*\*?/,"").replace(/\*\/$/,"").replace(new RegExp(T,"g"),"$2").replace(/\s*$/,"")}function y(w,D){for(var R=w.replace(/^\/\*\*?/,""),z=0,q=new RegExp(T,"g"),W;W=q.exec(R);)if(z+=W[1].length,W.index+W[0].length>D+z)return D+z+w.length-R.length;return w.replace(/\*\/$/,"").replace(/\s*$/,"").length}(function(w){var D,R,z,q,W,_,C,$,F;function U(){var ue=W.charCodeAt(R);return R+=1,n.code.isLineTerminator(ue)&&!(ue===13&&W.charCodeAt(R)===10)&&(z+=1),String.fromCharCode(ue)}function Q(){var ue="";for(U();R<q&&o(W.charCodeAt(R));)ue+=U();return ue}function B(){var ue,re,fe=R;for(re=!1;fe<q;){if(ue=W.charCodeAt(fe),n.code.isLineTerminator(ue)&&!(ue===13&&W.charCodeAt(fe+1)===10))re=!0;else if(re){if(ue===64)break;n.code.isWhiteSpace(ue)||(re=!1)}fe+=1}return fe}function K(ue,re,fe){for(var Ce,Ge,V,se,Pe=!1;R<re;)if(Ce=W.charCodeAt(R),n.code.isWhiteSpace(Ce))U();else if(Ce===123){U();break}else{Pe=!0;break}if(Pe)return null;for(Ge=1,V="";R<re;)if(Ce=W.charCodeAt(R),n.code.isLineTerminator(Ce))U();else{if(Ce===125){if(Ge-=1,Ge===0){U();break}}else Ce===123&&(Ge+=1);V===""&&(se=R),V+=U()}return Ge!==0?e.throwError("Braces are not balanced"):m(ue)?t.parseParamType(V,{startIndex:me(se),range:fe}):t.parseType(V,{startIndex:me(se),range:fe})}function X(ue){var re;if(!n.code.isIdentifierStartES5(W.charCodeAt(R))&&!W[R].match(/[0-9]/))return null;for(re=U();R<ue&&n.code.isIdentifierPartES5(W.charCodeAt(R));)re+=U();return re}function ie(ue){for(;R<ue&&(n.code.isWhiteSpace(W.charCodeAt(R))||n.code.isLineTerminator(W.charCodeAt(R)));)U()}function ve(ue,re,fe){var Ce="",Ge,V;if(ie(ue),R>=ue)return null;if(W.charCodeAt(R)===91)if(re)Ge=!0,Ce=U();else return null;if(Ce+=X(ue),fe)for(W.charCodeAt(R)===58&&(Ce==="module"||Ce==="external"||Ce==="event")&&(Ce+=U(),Ce+=X(ue)),W.charCodeAt(R)===91&&W.charCodeAt(R+1)===93&&(Ce+=U(),Ce+=U());W.charCodeAt(R)===46||W.charCodeAt(R)===47||W.charCodeAt(R)===35||W.charCodeAt(R)===45||W.charCodeAt(R)===126;)Ce+=U(),Ce+=X(ue);if(Ge){if(ie(ue),W.charCodeAt(R)===61){Ce+=U(),ie(ue);for(var se,Pe=1;R<ue;){if(se=W.charCodeAt(R),n.code.isWhiteSpace(se)&&(V||(ie(ue),se=W.charCodeAt(R))),se===39&&(V?V==="'"&&(V=""):V="'"),se===34&&(V?V==='"'&&(V=""):V='"'),se===91)Pe++;else if(se===93&&--Pe==0)break;Ce+=U()}}if(ie(ue),R>=ue||W.charCodeAt(R)!==93)return null;Ce+=U()}return Ce}function Ae(){for(;R<q&&W.charCodeAt(R)!==64;)U();return R>=q?!1:(e.assert(W.charCodeAt(R)===64),!0)}function me(ue){return W===_?ue:y(_,ue)}function ce(ue,re){this._options=ue,this._title=re.toLowerCase(),this._tag={title:re,description:null},this._options.lineNumbers&&(this._tag.lineNumber=z),this._first=R-re.length-1,this._last=0,this._extra={}}ce.prototype.addError=function(re){var fe=Array.prototype.slice.call(arguments,1),Ce=re.replace(/%(\d)/g,function(Ge,V){return e.assert(V<fe.length,"Message reference must be in range"),fe[V]});return this._tag.errors||(this._tag.errors=[]),F&&e.throwError(Ce),this._tag.errors.push(Ce),C},ce.prototype.parseType=function(){if(x(this._title))try{if(this._tag.type=K(this._title,this._last,this._options.range),!this._tag.type&&!l(this._title)&&!u(this._title)&&!this.addError("Missing or invalid tag type"))return!1}catch(ue){if(this._tag.type=null,!this.addError(ue.message))return!1}else if(E(this._title))try{this._tag.type=K(this._title,this._last,this._options.range)}catch(ue){}return!0},ce.prototype._parseNamePath=function(ue){var re;return re=ve(this._last,$&&m(this._title),!0),!re&&!ue&&!this.addError("Missing or invalid tag name")?!1:(this._tag.name=re,!0)},ce.prototype.parseNamePath=function(){return this._parseNamePath(!1)},ce.prototype.parseNamePathOptional=function(){return this._parseNamePath(!0)},ce.prototype.parseName=function(){var ue,re;if(h(this._title))if(this._tag.name=ve(this._last,$&&m(this._title),f(this._title)),this._tag.name)re=this._tag.name,re.charAt(0)==="["&&re.charAt(re.length-1)==="]"&&(ue=re.substring(1,re.length-1).split("="),ue.length>1&&(this._tag.default=ue.slice(1).join("=")),this._tag.name=ue[0],this._tag.type&&this._tag.type.type!=="OptionalType"&&(this._tag.type={type:"OptionalType",expression:this._tag.type}));else{if(!p(this._title))return!0;if(l(this._title)&&this._tag.type&&this._tag.type.name)this._extra.name=this._tag.type,this._tag.name=this._tag.type.name,this._tag.type=null;else if(!this.addError("Missing or invalid tag name"))return!1}return!0},ce.prototype.parseDescription=function(){var re=i(W,R,this._last).trim();return re&&(/^-\s+/.test(re)&&(re=re.substring(2)),this._tag.description=re),!0},ce.prototype.parseCaption=function(){var re=i(W,R,this._last).trim(),fe="<caption>",Ce="</caption>",Ge=re.indexOf(fe),V=re.indexOf(Ce);return Ge>=0&&V>=0?(this._tag.caption=re.substring(Ge+fe.length,V).trim(),this._tag.description=re.substring(V+Ce.length).trim()):this._tag.description=re,!0},ce.prototype.parseKind=function(){var re,fe;return fe={class:!0,constant:!0,event:!0,external:!0,file:!0,function:!0,member:!0,mixin:!0,module:!0,namespace:!0,typedef:!0},re=i(W,R,this._last).trim(),this._tag.kind=re,!(!s(fe,re)&&!this.addError("Invalid kind name '%0'",re))},ce.prototype.parseAccess=function(){var re;return re=i(W,R,this._last).trim(),this._tag.access=re,!(re!=="private"&&re!=="protected"&&re!=="public"&&!this.addError("Invalid access name '%0'",re))},ce.prototype.parseThis=function(){var re=i(W,R,this._last).trim();if(re&&re.charAt(0)==="{"){var fe=this.parseType();return fe&&this._tag.type.type==="NameExpression"||this._tag.type.type==="UnionType"?(this._tag.name=this._tag.type.name,!0):this.addError("Invalid name for this")}else return this.parseNamePath()},ce.prototype.parseVariation=function(){var re,fe;return fe=i(W,R,this._last).trim(),re=parseFloat(fe,10),this._tag.variation=re,!(isNaN(re)&&!this.addError("Invalid variation '%0'",fe))},ce.prototype.ensureEnd=function(){var ue=i(W,R,this._last).trim();return!(ue&&!this.addError("Unknown content '%0'",ue))},ce.prototype.epilogue=function(){var re;return re=this._tag.description,!(m(this._title)&&!this._tag.type&&re&&re.charAt(0)==="["&&(this._tag.type=this._extra.name,this._tag.name||(this._tag.name=void 0),!$&&!this.addError("Missing or invalid tag name")))},D={access:["parseAccess"],alias:["parseNamePath","ensureEnd"],augments:["parseType","parseNamePathOptional","ensureEnd"],constructor:["parseType","parseNamePathOptional","ensureEnd"],class:["parseType","parseNamePathOptional","ensureEnd"],extends:["parseType","parseNamePathOptional","ensureEnd"],example:["parseCaption"],deprecated:["parseDescription"],global:["ensureEnd"],inner:["ensureEnd"],instance:["ensureEnd"],kind:["parseKind"],mixes:["parseNamePath","ensureEnd"],mixin:["parseNamePathOptional","ensureEnd"],member:["parseType","parseNamePathOptional","ensureEnd"],method:["parseNamePathOptional","ensureEnd"],module:["parseType","parseNamePathOptional","ensureEnd"],func:["parseNamePathOptional","ensureEnd"],function:["parseNamePathOptional","ensureEnd"],var:["parseType","parseNamePathOptional","ensureEnd"],name:["parseNamePath","ensureEnd"],namespace:["parseType","parseNamePathOptional","ensureEnd"],private:["parseType","parseDescription"],protected:["parseType","parseDescription"],public:["parseType","parseDescription"],readonly:["ensureEnd"],requires:["parseNamePath","ensureEnd"],since:["parseDescription"],static:["ensureEnd"],summary:["parseDescription"],this:["parseThis","ensureEnd"],todo:["parseDescription"],typedef:["parseType","parseNamePathOptional"],variation:["parseVariation"],version:["parseDescription"]},ce.prototype.parse=function(){var re,fe,Ce,Ge;if(!this._title&&!this.addError("Missing or invalid title"))return null;for(this._last=B(this._title),this._options.range&&(this._tag.range=[this._first,W.slice(0,this._last).replace(/\s*$/,"").length].map(me)),s(D,this._title)?Ce=D[this._title]:Ce=["parseType","parseName","parseDescription","epilogue"],re=0,fe=Ce.length;re<fe;++re)if(Ge=Ce[re],!this[Ge]())return null;return this._tag};function Fe(ue){var re,fe,Ce;if(!Ae())return null;for(re=Q(),fe=new ce(ue,re),Ce=fe.parse();R<fe._last;)U();return Ce}function te(ue){var re="",fe,Ce;for(Ce=!0;R<q&&(fe=W.charCodeAt(R),!(Ce&&fe===64));)n.code.isLineTerminator(fe)?Ce=!0:Ce&&!n.code.isWhiteSpace(fe)&&(Ce=!1),re+=U();return ue?re:re.trim()}function ne(ue,re){var fe=[],Ce,Ge,V,se,Pe;if(re===void 0&&(re={}),typeof re.unwrap=="boolean"&&re.unwrap?W=I(ue):W=ue,_=ue,re.tags)if(Array.isArray(re.tags))for(V={},se=0,Pe=re.tags.length;se<Pe;se++)typeof re.tags[se]=="string"?V[re.tags[se]]=!0:e.throwError('Invalid "tags" parameter: '+re.tags);else e.throwError('Invalid "tags" parameter: '+re.tags);for(q=W.length,R=0,z=0,C=re.recoverable,$=re.sloppy,F=re.strict,Ge=te(re.preserveWhitespace);Ce=Fe(re),!!Ce;)(!V||V.hasOwnProperty(Ce.title))&&fe.push(Ce);return{description:Ge,tags:fe}}w.parse=ne})(r={}),ns.version=e.VERSION,ns.parse=r.parse,ns.parseType=t.parseType,ns.parseParamType=t.parseParamType,ns.unwrapComment=I,ns.Syntax=a(t.Syntax),ns.Error=e.DoctrineError,ns.type={Syntax:ns.Syntax,parseType:t.parseType,parseParamType:t.parseParamType,stringify:t.stringify}})()});var ZO=M((xie,XO)=>{b();v();"use strict";var lY=QO();XO.exports={meta:{type:"suggestion",docs:{description:"enforce valid JSDoc comments",recommended:!1,url:"https://eslint.org/docs/rules/valid-jsdoc"},schema:[{type:"object",properties:{prefer:{type:"object",additionalProperties:{type:"string"}},preferType:{type:"object",additionalProperties:{type:"string"}},requireReturn:{type:"boolean",default:!0},requireParamDescription:{type:"boolean",default:!0},requireReturnDescription:{type:"boolean",default:!0},matchDescription:{type:"string"},requireReturnType:{type:"boolean",default:!0},requireParamType:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"code",messages:{unexpectedTag:"Unexpected @{{title}} tag; function has no return statement.",expected:"Expected JSDoc for '{{name}}' but found '{{jsdocName}}'.",use:"Use @{{name}} instead.",useType:"Use '{{expectedTypeName}}' instead of '{{currentTypeName}}'.",syntaxError:"JSDoc syntax error.",missingBrace:"JSDoc type missing brace.",missingParamDesc:"Missing JSDoc parameter description for '{{name}}'.",missingParamType:"Missing JSDoc parameter type for '{{name}}'.",missingReturnType:"Missing JSDoc return type.",missingReturnDesc:"Missing JSDoc return description.",missingReturn:"Missing JSDoc @{{returns}} for function.",missingParam:"Missing JSDoc for parameter '{{name}}'.",duplicateParam:"Duplicate JSDoc parameter '{{name}}'.",unsatisfiedDesc:"JSDoc description does not satisfy the regex pattern."},deprecated:!0,replacedBy:[]},create(t){let e=t.options[0]||{},r=e.prefer||{},n=t.getSourceCode(),s=e.requireReturn!==!1,i=e.requireParamDescription!==!1,a=e.requireReturnDescription!==!1,o=e.requireReturnType!==!1,l=e.requireParamType!==!1,u=e.preferType||{},c=Object.keys(u).length!==0,p=[];function h(w){return w.type==="ClassExpression"||w.type==="ClassDeclaration"}function f(w){p.push({returnPresent:w.type==="ArrowFunctionExpression"&&w.body.type!=="BlockStatement"||h(w)||w.async})}function m(w){let D=p[p.length-1];D&&w.argument!==null&&(D.returnPresent=!0)}function x(w){return w.type===null||w.type.name==="void"||w.type.type==="UndefinedLiteral"}function E(w){return w!=="UndefinedLiteral"&&w!=="NullLiteral"&&w!=="NullableLiteral"&&w!=="FunctionType"&&w!=="AllLiteral"}function S(w){let D;return w.name?D=w:w.expression&&(D=w.expression),{currentType:D,expectedTypeName:D&&u[D.name]}}function T(w,D){return{start:n.getLocFromIndex(w.range[0]+2+D.range[0]),end:n.getLocFromIndex(w.range[0]+2+D.range[1])}}function I(w,D){if(!D||!E(D.type))return;let R=[],z=[];switch(D.type){case"TypeApplication":z=D.applications[0].type==="UnionType"?D.applications[0].elements:D.applications,R.push(S(D));break;case"RecordType":z=D.fields;break;case"UnionType":case"ArrayType":z=D.elements;break;case"FieldType":D.value&&R.push(S(D.value));break;default:R.push(S(D))}z.forEach(I.bind(null,w)),R.forEach(q=>{q.expectedTypeName&&q.expectedTypeName!==q.currentType.name&&t.report({node:w,messageId:"useType",loc:T(w,q.currentType),data:{currentTypeName:q.currentType.name,expectedTypeName:q.expectedTypeName},fix(W){return W.replaceTextRange(q.currentType.range.map(_=>w.range[0]+2+_),q.expectedTypeName)}})})}function y(w){let D=n.getJSDocComment(w),R=p.pop(),z=Object.create(null),q=[],W=!1,_,C=!1,$=!1,F=!1,U=!1;if(D){let Q;try{Q=lY.parse(D.value,{strict:!0,unwrap:!0,sloppy:!0,range:!0})}catch(K){/braces/iu.test(K.message)?t.report({node:D,messageId:"missingBrace"}):t.report({node:D,messageId:"syntaxError"});return}Q.tags.forEach(K=>{switch(K.title.toLowerCase()){case"param":case"arg":case"argument":q.push(K);break;case"return":case"returns":W=!0,_=K;break;case"constructor":case"class":C=!0;break;case"override":case"inheritdoc":F=!0;break;case"abstract":case"virtual":U=!0;break;case"interface":$=!0;break}if(Object.prototype.hasOwnProperty.call(r,K.title)&&K.title!==r[K.title]){let X=T(D,K);t.report({node:D,messageId:"use",loc:{start:X.start,end:{line:X.start.line,column:X.start.column+`@${K.title}`.length}},data:{name:r[K.title]},fix(ie){return ie.replaceTextRange([D.range[0]+K.range[0]+3,D.range[0]+K.range[0]+K.title.length+3],r[K.title])}})}c&&K.type&&I(D,K.type)}),q.forEach(K=>{l&&!K.type&&t.report({node:D,messageId:"missingParamType",loc:T(D,K),data:{name:K.name}}),!K.description&&i&&t.report({node:D,messageId:"missingParamDesc",loc:T(D,K),data:{name:K.name}}),z[K.name]?t.report({node:D,messageId:"duplicateParam",loc:T(D,K),data:{name:K.name}}):K.name.indexOf(".")===-1&&(z[K.name]=K)}),W&&(!s&&!R.returnPresent&&(_.type===null||!x(_))&&!U?t.report({node:D,messageId:"unexpectedTag",loc:T(D,_),data:{title:_.title}}):(o&&!_.type&&t.report({node:D,messageId:"missingReturnType"}),!x(_)&&!_.description&&a&&t.report({node:D,messageId:"missingReturnDesc"}))),!F&&!W&&!C&&!$&&w.parent.kind!=="get"&&w.parent.kind!=="constructor"&&w.parent.kind!=="set"&&!h(w)&&(s||R.returnPresent&&!w.async)&&t.report({node:D,messageId:"missingReturn",data:{returns:r.returns||"returns"}});let B=Object.keys(z);w.params&&w.params.forEach((K,X)=>{let ie=K.type==="AssignmentPattern"?K.left:K;if(ie.type==="Identifier"){let ve=ie.name;B[X]&&ve!==B[X]?t.report({node:D,messageId:"expected",loc:T(D,z[B[X]]),data:{name:ve,jsdocName:B[X]}}):!z[ve]&&!F&&t.report({node:D,messageId:"missingParam",data:{name:ve}})}}),e.matchDescription&&(new RegExp(e.matchDescription,"u").test(Q.description)||t.report({node:D,messageId:"unsatisfiedDesc"}))}}return{ArrowFunctionExpression:f,FunctionExpression:f,FunctionDeclaration:f,ClassExpression:f,ClassDeclaration:f,"ArrowFunctionExpression:exit":y,"FunctionExpression:exit":y,"FunctionDeclaration:exit":y,"ClassExpression:exit":y,"ClassDeclaration:exit":y,ReturnStatement:m}}}});var tR=M((Eie,eR)=>{b();v();"use strict";eR.exports={meta:{type:"problem",docs:{description:"enforce comparing `typeof` expressions against valid strings",recommended:!0,url:"https://eslint.org/docs/rules/valid-typeof"},hasSuggestions:!0,schema:[{type:"object",properties:{requireStringLiterals:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{invalidValue:"Invalid typeof comparison value.",notString:"Typeof comparisons should be to string literals.",suggestString:'Use `"{{type}}"` instead of `{{type}}`.'}},create(t){let e=["symbol","undefined","object","boolean","number","string","function","bigint"],r=["==","===","!=","!=="],n=t.options[0]&&t.options[0].requireStringLiterals,s;function i(o){let l=s.set.get(o.name);return l&&l.defs.length===0&&l.references.some(u=>u.identifier===o)}function a(o){return o.type==="UnaryExpression"&&o.operator==="typeof"}return{Program(){s=t.getScope()},UnaryExpression(o){if(a(o)){let l=t.getAncestors().pop();if(l.type==="BinaryExpression"&&r.indexOf(l.operator)!==-1){let u=l.left===o?l.right:l.left;if(u.type==="Literal"||u.type==="TemplateLiteral"&&!u.expressions.length){let c=u.type==="Literal"?u.value:u.quasis[0].value.cooked;e.indexOf(c)===-1&&t.report({node:u,messageId:"invalidValue"})}else u.type==="Identifier"&&u.name==="undefined"&&i(u)?t.report({node:u,messageId:n?"notString":"invalidValue",suggest:[{messageId:"suggestString",data:{type:"undefined"},fix(c){return c.replaceText(u,'"undefined"')}}]}):n&&!a(u)&&t.report({node:u,messageId:"notString"})}}}}}}});var sR=M((bie,rR)=>{b();v();"use strict";rR.exports={meta:{type:"suggestion",docs:{description:"require `var` declarations be placed at the top of their containing scope",recommended:!1,url:"https://eslint.org/docs/rules/vars-on-top"},schema:[],messages:{top:"All 'var' declarations must be at the top of the function scope."}},create(t){function e(o){return o.type==="ExpressionStatement"&&o.expression.type==="Literal"&&typeof o.expression.value=="string"}function r(o){return o.type==="ImportDeclaration"||o.type==="ImportSpecifier"||o.type==="ImportDefaultSpecifier"||o.type==="ImportNamespaceSpecifier"}function n(o){return o.type==="VariableDeclaration"||o.type==="ExportNamedDeclaration"&&o.declaration&&o.declaration.type==="VariableDeclaration"}function s(o,l){let u=l.length,c=0;if(o.parent.type!=="StaticBlock")for(;c<u&&!(!e(l[c])&&!r(l[c]));++c);for(;c<u;++c){if(!n(l[c]))return!1;if(l[c]===o)return!0}return!1}function i(o,l){s(o,l.body)||t.report({node:o,messageId:"top"})}function a(o){let{parent:l}=o;l.type==="BlockStatement"&&/Function/u.test(l.parent.type)&&s(o,l.body)||l.type==="StaticBlock"&&s(o,l.body)||t.report({node:o,messageId:"top"})}return{"VariableDeclaration[kind='var']"(o){o.parent.type==="ExportNamedDeclaration"?i(o.parent,o.parent.parent):o.parent.type==="Program"?i(o,o.parent):a(o)}}}}});var iR=M((vie,nR)=>{b();v();"use strict";var au=pe(),uY=Wt();function cY(t){let e=t.parent.type==="ChainExpression"?t.parent:t;return e.parent.type==="NewExpression"&&e.parent.callee===e}nR.exports={meta:{type:"layout",docs:{description:"require parentheses around immediate `function` invocations",recommended:!1,url:"https://eslint.org/docs/rules/wrap-iife"},schema:[{enum:["outside","inside","any"]},{type:"object",properties:{functionPrototypeMethods:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{wrapInvocation:"Wrap an immediate function invocation in parentheses.",wrapExpression:"Wrap only the function expression in parens.",moveInvocation:"Move the invocation into the parens that contain the function."}},create(t){let e=t.options[0]||"outside",r=t.options[1]&&t.options[1].functionPrototypeMethods,n=t.getSourceCode();function s(o){return au.isParenthesised(n,o)}function i(o){return uY.isParenthesized(1,o,n)}function a(o){let l=au.skipChainExpression(o.callee);return l.type==="FunctionExpression"?l:r&&l.type==="MemberExpression"&&l.object.type==="FunctionExpression"&&(au.getStaticPropertyName(l)==="call"||au.getStaticPropertyName(l)==="apply")?l.object:null}return{CallExpression(o){let l=a(o);if(!l)return;let u=s(o),c=s(l);!u&&!c?t.report({node:o,messageId:"wrapInvocation",fix(p){let h=e==="inside"?l:o;return p.replaceText(h,`(${n.getText(h)})`)}}):e==="inside"&&!c?t.report({node:o,messageId:"wrapExpression",fix(p){if(i(o)&&!cY(o)){let h=n.getTokenAfter(o);return p.replaceTextRange([l.range[1],h.range[1]],`)${n.getText().slice(l.range[1],h.range[0])}`)}return p.replaceText(l,`(${n.getText(l)})`)}}):e==="outside"&&!u&&t.report({node:o,messageId:"moveInvocation",fix(p){let h=n.getTokenAfter(l);return p.replaceTextRange([h.range[0],o.range[1]],`${n.getText().slice(h.range[1],o.range[1])})`)}})}}}}});var oR=M((Cie,aR)=>{b();v();"use strict";aR.exports={meta:{type:"layout",docs:{description:"require parenthesis around regex literals",recommended:!1,url:"https://eslint.org/docs/rules/wrap-regex"},schema:[],fixable:"code",messages:{requireParens:"Wrap the regexp literal in parens to disambiguate the slash."}},create(t){let e=t.getSourceCode();return{Literal(r){if(e.getFirstToken(r).type==="RegularExpression"){let i=e.getTokenBefore(r),a=e.getTokenAfter(r),o=t.getAncestors(),l=o[o.length-1];l.type==="MemberExpression"&&l.object===r&&!(i&&i.value==="("&&a&&a.value===")")&&t.report({node:r,messageId:"requireParens",fix:u=>u.replaceText(r,`(${e.getText(r)})`)})}}}}}});var uR=M((Sie,lR)=>{b();v();"use strict";lR.exports={meta:{type:"layout",docs:{description:"require or disallow spacing around the `*` in `yield*` expressions",recommended:!1,url:"https://eslint.org/docs/rules/yield-star-spacing"},fixable:"whitespace",schema:[{oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}]}],messages:{missingBefore:"Missing space before *.",missingAfter:"Missing space after *.",unexpectedBefore:"Unexpected space before *.",unexpectedAfter:"Unexpected space after *."}},create(t){let e=t.getSourceCode(),r=function(i){return!i||typeof i=="string"?{before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}}[i||"after"]:i}(t.options[0]);function n(i,a,o){if(e.isSpaceBetweenTokens(a,o)!==r[i]){let l=a.value==="*",u=r[i],c=l?a:o,p="";u?p=i==="before"?"missingBefore":"missingAfter":p=i==="before"?"unexpectedBefore":"unexpectedAfter",t.report({node:c,messageId:p,fix(h){return u?l?h.insertTextAfter(c," "):h.insertTextBefore(c," "):h.removeRange([a.range[1],o.range[0]])}})}}function s(i){if(!i.delegate)return;let a=e.getFirstTokens(i,3),o=a[0],l=a[1],u=a[2];n("before",o,l),n("after",l,u)}return{YieldExpression:s}}}});var dR=M((Aie,cR)=>{b();v();"use strict";var Ti=pe();function fY(t){return/^(==|===|!=|!==|<|>|<=|>=)$/u.test(t)}function pY(t){return/^(==|===)$/u.test(t)}function fR(t){return["<","<="].indexOf(t)>=0}function pR(t){return t.type==="UnaryExpression"&&t.operator==="-"&&t.prefix&&Ti.isNumericLiteral(t.argument)}function hR(t){return t.type==="TemplateLiteral"&&t.expressions.length===0}function mR(t){return pR(t)||hR(t)}function ou(t){return t.type==="Literal"?t:pR(t)?{type:"Literal",value:-t.argument.value,raw:`-${t.argument.value}`}:hR(t)?{type:"Literal",value:t.quasis[0].value.cooked,raw:t.quasis[0].value.raw}:null}cR.exports={meta:{type:"suggestion",docs:{description:'require or disallow "Yoda" conditions',recommended:!1,url:"https://eslint.org/docs/rules/yoda"},schema:[{enum:["always","never"]},{type:"object",properties:{exceptRange:{type:"boolean",default:!1},onlyEquality:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{expected:"Expected literal to be on the {{expectedSide}} side of {{operator}}."}},create(t){let e=t.options[0]==="always",r=t.options[1]&&t.options[1].exceptRange,n=t.options[1]&&t.options[1].onlyEquality,s=t.getSourceCode();function i(l){let u=l.left,c=l.right;function p(){if(l.operator==="&&"&&Ti.isSameReference(u.right,c.left)){let m=ou(u.left),x=ou(c.right);if(m===null&&x===null)return!1;if(x===null||m===null||m.value<=x.value)return!0}return!1}function h(){if(l.operator==="||"&&Ti.isSameReference(u.left,c.right)){let m=ou(u.right),x=ou(c.left);if(m===null&&x===null)return!1;if(x===null||m===null||m.value<=x.value)return!0}return!1}function f(){return Ti.isParenthesised(s,l)}return l.type==="LogicalExpression"&&u.type==="BinaryExpression"&&c.type==="BinaryExpression"&&fR(u.operator)&&fR(c.operator)&&(p()||h())&&f()}let a={"===":"===","!==":"!==","==":"==","!=":"!=","<":">",">":"<","<=":">=",">=":"<="};function o(l){let u=s.getFirstTokenBetween(l.left,l.right,w=>w.value===l.operator),c=s.getTokenBefore(u),p=s.getTokenAfter(u),h=s.getText(),f=h.slice(l.range[0],c.range[1]),m=h.slice(c.range[1],u.range[0]),x=h.slice(u.range[1],p.range[0]),E=h.slice(p.range[0],l.range[1]),S=s.getTokenBefore(l),T=s.getTokenAfter(l),I="",y="";return S&&S.range[1]===l.range[0]&&!Ti.canTokensBeAdjacent(S,p)&&(I=" "),T&&l.range[1]===T.range[0]&&!Ti.canTokensBeAdjacent(c,T)&&(y=" "),I+E+m+a[u.value]+x+f+y}return{BinaryExpression(l){let u=e?l.left:l.right,c=e?l.right:l.left;(c.type==="Literal"||mR(c))&&!(u.type==="Literal"||mR(u))&&!(!pY(l.operator)&&n)&&fY(l.operator)&&!(r&&i(t.getAncestors().pop()))&&t.report({node:l,messageId:"expected",data:{operator:l.operator,expectedSide:e?"left":"right"},fix:p=>p.replaceText(l,o(l))})}}}}});var lu=M((wie,gR)=>{b();v();"use strict";var{LazyLoadingRuleMap:hY}=P1();gR.exports=new hY(Object.entries({"accessor-pairs":()=>aC(),"array-bracket-newline":()=>lC(),"array-bracket-spacing":()=>fC(),"array-callback-return":()=>mC(),"array-element-newline":()=>gC(),"arrow-body-style":()=>xC(),"arrow-parens":()=>bC(),"arrow-spacing":()=>CC(),"block-scoped-var":()=>AC(),"block-spacing":()=>kC(),"brace-style":()=>TC(),"callback-return":()=>PC(),camelcase:()=>_C(),"capitalized-comments":()=>MC(),"class-methods-use-this":()=>qC(),"comma-dangle":()=>UC(),"comma-spacing":()=>WC(),"comma-style":()=>zC(),complexity:()=>JC(),"computed-property-spacing":()=>XC(),"consistent-return":()=>eS(),"consistent-this":()=>rS(),"constructor-super":()=>nS(),curly:()=>aS(),"default-case":()=>lS(),"default-case-last":()=>cS(),"default-param-last":()=>pS(),"dot-location":()=>mS(),"dot-notation":()=>xS(),"eol-last":()=>bS(),eqeqeq:()=>SS(),"for-direction":()=>wS(),"func-call-spacing":()=>DS(),"func-name-matching":()=>BS(),"func-names":()=>RS(),"func-style":()=>NS(),"function-call-argument-newline":()=>jS(),"function-paren-newline":()=>VS(),"generator-star-spacing":()=>$S(),"getter-return":()=>GS(),"global-require":()=>HS(),"grouped-accessor-pairs":()=>YS(),"guard-for-in":()=>QS(),"handle-callback-err":()=>ZS(),"id-blacklist":()=>tA(),"id-denylist":()=>sA(),"id-length":()=>iA(),"id-match":()=>oA(),"implicit-arrow-linebreak":()=>uA(),indent:()=>yA(),"indent-legacy":()=>EA(),"init-declarations":()=>CA(),"jsx-quotes":()=>wA(),"key-spacing":()=>TA(),"keyword-spacing":()=>_A(),"line-comment-position":()=>OA(),"linebreak-style":()=>LA(),"lines-around-comment":()=>MA(),"lines-around-directive":()=>VA(),"lines-between-class-members":()=>$A(),"max-classes-per-file":()=>GA(),"max-depth":()=>HA(),"max-len":()=>QA(),"max-lines":()=>ew(),"max-lines-per-function":()=>rw(),"max-nested-callbacks":()=>nw(),"max-params":()=>ow(),"max-statements":()=>uw(),"max-statements-per-line":()=>fw(),"multiline-comment-style":()=>hw(),"multiline-ternary":()=>dw(),"new-cap":()=>Ew(),"new-parens":()=>Cw(),"newline-after-var":()=>Aw(),"newline-before-return":()=>kw(),"newline-per-chained-call":()=>Tw(),"no-alert":()=>_w(),"no-array-constructor":()=>Ow(),"no-async-promise-executor":()=>Lw(),"no-await-in-loop":()=>Mw(),"no-bitwise":()=>Vw(),"no-buffer-constructor":()=>$w(),"no-caller":()=>Gw(),"no-case-declarations":()=>Hw(),"no-catch-shadow":()=>Yw(),"no-class-assign":()=>Qw(),"no-compare-neg-zero":()=>Zw(),"no-cond-assign":()=>tk(),"no-confusing-arrow":()=>sk(),"no-console":()=>ak(),"no-const-assign":()=>lk(),"no-constant-condition":()=>ck(),"no-constructor-return":()=>pk(),"no-continue":()=>mk(),"no-control-regex":()=>qk(),"no-debugger":()=>Uk(),"no-delete-var":()=>Wk(),"no-div-regex":()=>zk(),"no-dupe-args":()=>Kk(),"no-dupe-class-members":()=>Jk(),"no-dupe-else-if":()=>Zk(),"no-dupe-keys":()=>iD(),"no-duplicate-case":()=>oD(),"no-duplicate-imports":()=>pD(),"no-else-return":()=>yD(),"no-empty":()=>ED(),"no-empty-character-class":()=>vD(),"no-empty-function":()=>AD(),"no-empty-pattern":()=>kD(),"no-eq-null":()=>TD(),"no-eval":()=>ID(),"no-ex-assign":()=>BD(),"no-extend-native":()=>qD(),"no-extra-bind":()=>UD(),"no-extra-boolean-cast":()=>WD(),"no-extra-label":()=>HD(),"no-extra-parens":()=>JD(),"no-extra-semi":()=>ZD(),"no-fallthrough":()=>tT(),"no-floating-decimal":()=>sT(),"no-func-assign":()=>iT(),"no-global-assign":()=>oT(),"no-implicit-coercion":()=>cT(),"no-implicit-globals":()=>pT(),"no-implied-eval":()=>mT(),"no-import-assign":()=>xT(),"no-inline-comments":()=>bT(),"no-inner-declarations":()=>CT(),"no-invalid-regexp":()=>kT(),"no-invalid-this":()=>FT(),"no-irregular-whitespace":()=>IT(),"no-iterator":()=>BT(),"no-label-var":()=>RT(),"no-labels":()=>NT(),"no-lone-blocks":()=>jT(),"no-lonely-if":()=>VT(),"no-loop-func":()=>WT(),"no-loss-of-precision":()=>zT(),"no-magic-numbers":()=>KT(),"no-misleading-character-class":()=>pF(),"no-mixed-operators":()=>EF(),"no-mixed-requires":()=>vF(),"no-mixed-spaces-and-tabs":()=>SF(),"no-multi-assign":()=>wF(),"no-multi-spaces":()=>DF(),"no-multi-str":()=>FF(),"no-multiple-empty-lines":()=>IF(),"no-native-reassign":()=>BF(),"no-negated-condition":()=>RF(),"no-negated-in-lhs":()=>NF(),"no-nested-ternary":()=>jF(),"no-new":()=>VF(),"no-new-func":()=>$F(),"no-new-object":()=>GF(),"no-new-require":()=>HF(),"no-new-symbol":()=>YF(),"no-new-wrappers":()=>QF(),"no-nonoctal-decimal-escape":()=>eP(),"no-obj-calls":()=>sP(),"no-octal":()=>iP(),"no-octal-escape":()=>oP(),"no-param-reassign":()=>uP(),"no-path-concat":()=>fP(),"no-plusplus":()=>mP(),"no-process-env":()=>gP(),"no-process-exit":()=>xP(),"no-promise-executor-return":()=>bP(),"no-proto":()=>CP(),"no-prototype-builtins":()=>wP(),"no-redeclare":()=>DP(),"no-regex-spaces":()=>IP(),"no-restricted-exports":()=>BP(),"no-restricted-globals":()=>RP(),"no-restricted-imports":()=>YP(),"no-restricted-modules":()=>XP(),"no-restricted-properties":()=>eI(),"no-restricted-syntax":()=>rI(),"no-return-assign":()=>nI(),"no-return-await":()=>aI(),"no-script-url":()=>lI(),"no-self-assign":()=>cI(),"no-self-compare":()=>pI(),"no-sequences":()=>mI(),"no-setter-return":()=>gI(),"no-shadow":()=>xI(),"no-shadow-restricted-names":()=>bI(),"no-spaced-func":()=>CI(),"no-sparse-arrays":()=>AI(),"no-sync":()=>kI(),"no-tabs":()=>TI(),"no-template-curly-in-string":()=>PI(),"no-ternary":()=>_I(),"no-this-before-super":()=>RI(),"no-throw-literal":()=>NI(),"no-trailing-spaces":()=>jI(),"no-undef":()=>VI(),"no-undef-init":()=>$I(),"no-undefined":()=>GI(),"no-underscore-dangle":()=>HI(),"no-unexpected-multiline":()=>YI(),"no-unmodified-loop-condition":()=>QI(),"no-unneeded-ternary":()=>e_(),"no-unreachable":()=>s_(),"no-unreachable-loop":()=>a_(),"no-unsafe-finally":()=>l_(),"no-unsafe-negation":()=>c_(),"no-unsafe-optional-chaining":()=>m_(),"no-unused-expressions":()=>g_(),"no-unused-labels":()=>x_(),"no-unused-private-class-members":()=>b_(),"no-unused-vars":()=>C_(),"no-use-before-define":()=>w_(),"no-useless-backreference":()=>P_(),"no-useless-call":()=>__(),"no-useless-catch":()=>O_(),"no-useless-computed-key":()=>L_(),"no-useless-concat":()=>j_(),"no-useless-constructor":()=>U_(),"no-useless-escape":()=>z_(),"no-useless-rename":()=>K_(),"no-useless-return":()=>J_(),"no-var":()=>t2(),"no-void":()=>s2(),"no-warning-comments":()=>i2(),"no-whitespace-before-property":()=>o2(),"no-with":()=>u2(),"nonblock-statement-body-position":()=>f2(),"object-curly-newline":()=>m2(),"object-curly-spacing":()=>g2(),"object-property-newline":()=>x2(),"object-shorthand":()=>b2(),"one-var":()=>C2(),"one-var-declaration-per-line":()=>A2(),"operator-assignment":()=>D2(),"operator-linebreak":()=>F2(),"padded-blocks":()=>I2(),"padding-line-between-statements":()=>M2(),"prefer-arrow-callback":()=>q2(),"prefer-const":()=>z2(),"prefer-destructuring":()=>Y2(),"prefer-exponentiation-operator":()=>Q2(),"prefer-named-capture-group":()=>tB(),"prefer-numeric-literals":()=>nB(),"prefer-object-has-own":()=>aB(),"prefer-object-spread":()=>fB(),"prefer-promise-reject-errors":()=>hB(),"prefer-reflect":()=>dB(),"prefer-regex-literals":()=>vB(),"prefer-rest-params":()=>SB(),"prefer-spread":()=>wB(),"prefer-template":()=>TB(),"quote-props":()=>IB(),quotes:()=>BB(),radix:()=>NB(),"require-atomic-updates":()=>VB(),"require-await":()=>$B(),"require-jsdoc":()=>GB(),"require-unicode-regexp":()=>HB(),"require-yield":()=>YB(),"rest-spread-spacing":()=>QB(),semi:()=>ZB(),"semi-spacing":()=>tO(),"semi-style":()=>sO(),"sort-imports":()=>iO(),"sort-keys":()=>fO(),"sort-vars":()=>hO(),"space-before-blocks":()=>gO(),"space-before-function-paren":()=>EO(),"space-in-parens":()=>vO(),"space-infix-ops":()=>SO(),"space-unary-ops":()=>kO(),"spaced-comment":()=>PO(),strict:()=>BO(),"switch-colon-spacing":()=>RO(),"symbol-description":()=>MO(),"template-curly-spacing":()=>VO(),"template-tag-spacing":()=>$O(),"unicode-bom":()=>GO(),"use-isnan":()=>HO(),"valid-jsdoc":()=>ZO(),"valid-typeof":()=>tR(),"vars-on-top":()=>sR(),"wrap-iife":()=>iR(),"wrap-regex":()=>oR(),"yield-star-spacing":()=>uR(),yoda:()=>dR()}))});var ER=M((kie,yR)=>{b();v();"use strict";var eh=lu();function mY(t){return typeof t=="function"?Object.assign({create:t},t):t}var xR=class{constructor(){this._rules=Object.create(null)}define(e,r){this._rules[e]=mY(r)}get(e){return typeof this._rules[e]=="string"&&this.define(e,require(this._rules[e])),this._rules[e]?this._rules[e]:eh.has(e)?eh.get(e):null}*[Symbol.iterator](){yield*eh;for(let e of Object.keys(this._rules))yield[e,this.get(e)]}};yR.exports=xR});var vR=M((Die,bR)=>{b();v();"use strict";bR.exports=()=>{let t=Object.create(null);return Object.freeze({on(e,r){e in t?t[e].push(r):t[e]=[r]},emit(e,...r){e in t&&t[e].forEach(n=>n(...r))},eventNames(){return Object.keys(t)}})}});var AR=M((Tie,CR)=>{b();v();"use strict";var uu=En()("eslint:source-code-fixer"),th="\uFEFF";function dY(t,e){return t.fix.range[0]-e.fix.range[0]||t.fix.range[1]-e.fix.range[1]}function gY(t,e){return t.line-e.line||t.column-e.column}function SR(){Object.freeze(this)}SR.applyFixes=function(t,e,r){if(uu("Applying fixes"),r===!1)return uu("shouldFix parameter was false, not attempting fixes"),{fixed:!1,messages:e,output:t};let n=[],s=[],i=t.startsWith(th)?th:"",a=i?t.slice(1):t,o=Number.NEGATIVE_INFINITY,l=i;function u(c){let p=c.fix,h=p.range[0],f=p.range[1];return o>=h||h>f?(n.push(c),!1):((h<0&&f>=0||h===0&&p.text.startsWith(th))&&(l=""),l+=a.slice(Math.max(0,o),Math.max(0,h)),l+=p.text,o=f,!0)}if(e.forEach(c=>{Object.prototype.hasOwnProperty.call(c,"fix")?s.push(c):n.push(c)}),s.length){uu("Found fixes to apply");let c=!1;for(let p of s.sort(dY))typeof r!="function"||r(p)?(u(p),c=!0):n.push(p);return l+=a.slice(Math.max(0,o)),{fixed:c,messages:n.sort(gY),output:l}}return uu("No fixes to apply"),{fixed:!1,messages:e,output:i+a}};CR.exports=SR});var PR=M((Fie,wR)=>{b();v();"use strict";function yY(t,e,r){return t+new Array(e-t.length+1).join(r||" ")}function kR(t,e,r){return new Array(e-t.length+1).join(r||" ")+t}var DR=!!L.env.TIMING,xY=["Rule","Time (ms)","Relative"],TR=[yY,kR,kR];function FR(){let t=10;if(typeof L.env.TIMING!="string")return t;if(L.env.TIMING.toLowerCase()==="all")return Number.POSITIVE_INFINITY;let e=Number.parseInt(L.env.TIMING,10);return e>10?e:t}function EY(t){let e=0,r=Object.keys(t).map(i=>{let a=t[i];return e+=a,[i,a]}).sort((i,a)=>a[1]-i[1]).slice(0,FR());r.forEach(i=>{i.push(`${(i[1]*100/e).toFixed(1)}%`),i[1]=i[1].toFixed(3)}),r.unshift(xY);let n=[];r.forEach(i=>{let a=i.length;for(let o=0;o<a;o++){let l=i[o].length;(!n[o]||l>n[o])&&(n[o]=l)}});let s=r.map(i=>i.map((a,o)=>TR[o](a,n[o])).join(" | "));s.splice(1,0,n.map((i,a)=>{let o=a!==0&&a!==n.length-1?2:1;return TR[a](":",i+o,"-")}).join("|")),console.log(s.join(`
|
|
112
|
+
`))}wR.exports=function(){let t=Object.create(null);function e(r,n){return typeof t[r]=="undefined"&&(t[r]=0),function(...s){let i=L.hrtime();n(...s),i=L.hrtime(i),t[r]+=i[0]*1e3+i[1]/1e6}}return DR&&L.on("exit",()=>{EY(t)}),{time:e,enabled:DR,getListSize:FR}}()});var rh=M((Pie,IR)=>{IR.exports={rules:{"generator-star":["generator-star-spacing"],"global-strict":["strict"],"no-arrow-condition":["no-confusing-arrow","no-constant-condition"],"no-comma-dangle":["comma-dangle"],"no-empty-class":["no-empty-character-class"],"no-empty-label":["no-labels"],"no-extra-strict":["strict"],"no-reserved-keys":["quote-props"],"no-space-before-semi":["semi-spacing"],"no-wrap-func":["no-extra-parens"],"space-after-function-name":["space-before-function-paren"],"space-after-keywords":["keyword-spacing"],"space-before-function-parentheses":["space-before-function-paren"],"space-before-keywords":["keyword-spacing"],"space-in-brackets":["object-curly-spacing","array-bracket-spacing","computed-property-spacing"],"space-return-throw-case":["keyword-spacing"],"space-unary-word-ops":["space-unary-ops"],"spaced-line-comment":["spaced-comment"]}}});var sh=M((Iie,_R)=>{b();v();"use strict";function BR(t){let e,r;return t.includes("/")?(e=t.slice(0,t.lastIndexOf("/")),r=t.slice(e.length+1)):(e="@",r=t),{pluginName:e,ruleName:r}}function bY(t,e){let{pluginName:r,ruleName:n}=BR(t),s=e.plugins&&e.plugins[r],i=s&&s.rules&&s.rules[n];return i&&typeof i=="function"&&(i={create:i}),i}function vY(t){if(!t)return null;let e=t.schema||t.meta&&t.meta.schema;return Array.isArray(e)?e.length?{type:"array",items:e,minItems:0,maxItems:e.length}:{type:"array",minItems:0,maxItems:0}:e||null}_R.exports={parseRuleId:BR,getRuleFromConfig:bY,getRuleOptionsSchema:vY}});var RR=M((_ie,OR)=>{b();v();OR.exports=function(t,e){for(var r=[],n=0;n<t.length;n++){var s=e(t[n],n);CY(s)?r.push.apply(r,s):r.push(s)}return r};var CY=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"}});var qR=M((Bie,LR)=>{b();v();"use strict";LR.exports=NR;function NR(t,e,r){t instanceof RegExp&&(t=MR(t,r)),e instanceof RegExp&&(e=MR(e,r));var n=jR(t,e,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+t.length,n[1]),post:r.slice(n[1]+e.length)}}function MR(t,e){var r=e.match(t);return r?r[0]:null}NR.range=jR;function jR(t,e,r){var n,s,i,a,o,l=r.indexOf(t),u=r.indexOf(e,l+1),c=l;if(l>=0&&u>0){for(n=[],i=r.length;c>=0&&!o;)c==l?(n.push(c),l=r.indexOf(t,c+1)):n.length==1?o=[n.pop(),u]:(s=n.pop(),s<i&&(i=s,a=u),u=r.indexOf(e,c+1)),c=l<u&&l>=0?l:u;n.length&&(o=[i,a])}return o}});var KR=M((Oie,VR)=>{b();v();var SY=RR(),UR=qR();VR.exports=AY;var $R="\0SLASH"+Math.random()+"\0",WR="\0OPEN"+Math.random()+"\0",nh="\0CLOSE"+Math.random()+"\0",GR="\0COMMA"+Math.random()+"\0",zR="\0PERIOD"+Math.random()+"\0";function ih(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function wY(t){return t.split("\\\\").join($R).split("\\{").join(WR).split("\\}").join(nh).split("\\,").join(GR).split("\\.").join(zR)}function kY(t){return t.split($R).join("\\").split(WR).join("{").split(nh).join("}").split(GR).join(",").split(zR).join(".")}function HR(t){if(!t)return[""];var e=[],r=UR("{","}",t);if(!r)return t.split(",");var n=r.pre,s=r.body,i=r.post,a=n.split(",");a[a.length-1]+="{"+s+"}";var o=HR(i);return i.length&&(a[a.length-1]+=o.shift(),a.push.apply(a,o)),e.push.apply(e,a),e}function AY(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),Fi(wY(t),!0).map(kY)):[]}function DY(t){return"{"+t+"}"}function TY(t){return/^-?0\d/.test(t)}function FY(t,e){return t<=e}function PY(t,e){return t>=e}function Fi(t,e){var r=[],n=UR("{","}",t);if(!n||/\$$/.test(n.pre))return[t];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),i=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),a=s||i,o=n.body.indexOf(",")>=0;if(!a&&!o)return n.post.match(/,.*\}/)?(t=n.pre+"{"+n.body+nh+n.post,Fi(t)):[t];var l;if(a)l=n.body.split(/\.\./);else if(l=HR(n.body),l.length===1&&(l=Fi(l[0],!1).map(DY),l.length===1)){var c=n.post.length?Fi(n.post,!1):[""];return c.map(function(_){return n.pre+l[0]+_})}var u=n.pre,c=n.post.length?Fi(n.post,!1):[""],p;if(a){var h=ih(l[0]),f=ih(l[1]),m=Math.max(l[0].length,l[1].length),x=l.length==3?Math.abs(ih(l[2])):1,E=FY,S=f<h;S&&(x*=-1,E=PY);var T=l.some(TY);p=[];for(var I=h;E(I,f);I+=x){var y;if(i)y=String.fromCharCode(I),y==="\\"&&(y="");else if(y=String(I),T){var w=m-y.length;if(w>0){var D=new Array(w+1).join("0");I<0?y="-"+D+y.slice(1):y=D+y}}p.push(y)}}else p=SY(l,function(W){return Fi(W,!1)});for(var R=0;R<p.length;R++)for(var z=0;z<c.length;z++){var q=u+p[R]+c[z];(!e||a||q)&&r.push(q)}return r}});var tL=M((Rie,YR)=>{b();v();YR.exports=Ir;Ir.Minimatch=Ht;var Na={sep:"/"};try{Na=Ii()}catch(t){}var ah=Ir.GLOBSTAR=Ht.GLOBSTAR={},IY=KR(),JR={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},oh="[^/]",lh=oh+"*?",_Y="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",BY="(?:(?!(?:\\/|^)\\.).)*?",QR=OY("().*{}+?[]^$\\!");function OY(t){return t.split("").reduce(function(e,r){return e[r]=!0,e},{})}var XR=/\/+/;Ir.filter=RY;function RY(t,e){return e=e||{},function(r,n,s){return Ir(r,t,e)}}function ZR(t,e){t=t||{},e=e||{};var r={};return Object.keys(e).forEach(function(n){r[n]=e[n]}),Object.keys(t).forEach(function(n){r[n]=t[n]}),r}Ir.defaults=function(t){if(!t||!Object.keys(t).length)return Ir;var e=Ir,r=function(s,i,a){return e.minimatch(s,i,ZR(t,a))};return r.Minimatch=function(s,i){return new e.Minimatch(s,ZR(t,i))},r};Ht.defaults=function(t){return!t||!Object.keys(t).length?Ht:Ir.defaults(t).Minimatch};function Ir(t,e,r){if(typeof e!="string")throw new TypeError("glob pattern string required");return r||(r={}),!r.nocomment&&e.charAt(0)==="#"?!1:e.trim()===""?t==="":new Ht(e,r).match(t)}function Ht(t,e){if(!(this instanceof Ht))return new Ht(t,e);if(typeof t!="string")throw new TypeError("glob pattern string required");e||(e={}),t=t.trim(),Na.sep!=="/"&&(t=t.split(Na.sep).join("/")),this.options=e,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}Ht.prototype.debug=function(){};Ht.prototype.make=LY;function LY(){if(!this._made){var t=this.pattern,e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();var r=this.globSet=this.braceExpand();e.debug&&(this.debug=console.error),this.debug(this.pattern,r),r=this.globParts=r.map(function(n){return n.split(XR)}),this.debug(this.pattern,r),r=r.map(function(n,s,i){return n.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(n){return n.indexOf(!1)===-1}),this.debug(this.pattern,r),this.set=r}}Ht.prototype.parseNegate=NY;function NY(){var t=this.pattern,e=!1,r=this.options,n=0;if(!r.nonegate){for(var s=0,i=t.length;s<i&&t.charAt(s)==="!";s++)e=!e,n++;n&&(this.pattern=t.substr(n)),this.negate=e}}Ir.braceExpand=function(t,e){return eL(t,e)};Ht.prototype.braceExpand=eL;function eL(t,e){if(e||(this instanceof Ht?e=this.options:e={}),t=typeof t=="undefined"?this.pattern:t,typeof t=="undefined")throw new TypeError("undefined pattern");return e.nobrace||!t.match(/\{.*\}/)?[t]:IY(t)}Ht.prototype.parse=MY;var cu={};function MY(t,e){if(t.length>1024*64)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&t==="**")return ah;if(t==="")return"";var n="",s=!!r.nocase,i=!1,a=[],o=[],l,u=!1,c=-1,p=-1,h=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",f=this;function m(){if(l){switch(l){case"*":n+=lh,s=!0;break;case"?":n+=oh,s=!0;break;default:n+="\\"+l;break}f.debug("clearStateChar %j %j",l,n),l=!1}}for(var x=0,E=t.length,S;x<E&&(S=t.charAt(x));x++){if(this.debug("%s %s %s %j",t,x,n,S),i&&QR[S]){n+="\\"+S,i=!1;continue}switch(S){case"/":return!1;case"\\":m(),i=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",t,x,n,S),u){this.debug(" in class"),S==="!"&&x===p+1&&(S="^"),n+=S;continue}f.debug("call clearStateChar %j",l),m(),l=S,r.noext&&m();continue;case"(":if(u){n+="(";continue}if(!l){n+="\\(";continue}a.push({type:l,start:x-1,reStart:n.length,open:JR[l].open,close:JR[l].close}),n+=l==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",l,n),l=!1;continue;case")":if(u||!a.length){n+="\\)";continue}m(),s=!0;var T=a.pop();n+=T.close,T.type==="!"&&o.push(T),T.reEnd=n.length;continue;case"|":if(u||!a.length||i){n+="\\|",i=!1;continue}m(),n+="|";continue;case"[":if(m(),u){n+="\\"+S;continue}u=!0,p=x,c=n.length,n+=S;continue;case"]":if(x===p+1||!u){n+="\\"+S,i=!1;continue}if(u){var I=t.substring(p+1,x);try{RegExp("["+I+"]")}catch(ie){var y=this.parse(I,cu);n=n.substr(0,c)+"\\["+y[0]+"\\]",s=s||y[1],u=!1;continue}}s=!0,u=!1,n+=S;continue;default:m(),i?i=!1:QR[S]&&!(S==="^"&&u)&&(n+="\\"),n+=S}}for(u&&(I=t.substr(p+1),y=this.parse(I,cu),n=n.substr(0,c)+"\\["+y[0],s=s||y[1]),T=a.pop();T;T=a.pop()){var w=n.slice(T.reStart+T.open.length);this.debug("setting tail",n,T),w=w.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(ie,ve,Ae){return Ae||(Ae="\\"),ve+ve+Ae+"|"}),this.debug(`tail=%j
|
|
113
|
+
%s`,w,w,T,n);var D=T.type==="*"?lh:T.type==="?"?oh:"\\"+T.type;s=!0,n=n.slice(0,T.reStart)+D+"\\("+w}m(),i&&(n+="\\\\");var R=!1;switch(n.charAt(0)){case".":case"[":case"(":R=!0}for(var z=o.length-1;z>-1;z--){var q=o[z],W=n.slice(0,q.reStart),_=n.slice(q.reStart,q.reEnd-8),C=n.slice(q.reEnd-8,q.reEnd),$=n.slice(q.reEnd);C+=$;var F=W.split("(").length-1,U=$;for(x=0;x<F;x++)U=U.replace(/\)[+*?]?/,"");$=U;var Q="";$===""&&e!==cu&&(Q="$");var B=W+_+$+Q+C;n=B}if(n!==""&&s&&(n="(?=.)"+n),R&&(n=h+n),e===cu)return[n,s];if(!s)return jY(t);var K=r.nocase?"i":"";try{var X=new RegExp("^"+n+"$",K)}catch(ie){return new RegExp("$.")}return X._glob=t,X._src=n,X}Ir.makeRe=function(t,e){return new Ht(t,e||{}).makeRe()};Ht.prototype.makeRe=qY;function qY(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?lh:e.dot?_Y:BY,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(a){return a===ah?r:typeof a=="string"?VY(a):a._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch(i){this.regexp=!1}return this.regexp}Ir.match=function(t,e,r){r=r||{};var n=new Ht(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};Ht.prototype.match=UY;function UY(t,e){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&e)return!0;var r=this.options;Na.sep!=="/"&&(t=t.split(Na.sep).join("/")),t=t.split(XR),this.debug(this.pattern,"split",t);var n=this.set;this.debug(this.pattern,"set",n);var s,i;for(i=t.length-1;i>=0&&(s=t[i],!s);i--);for(i=0;i<n.length;i++){var a=n[i],o=t;r.matchBase&&a.length===1&&(o=[s]);var l=this.matchOne(o,a,e);if(l)return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate}Ht.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,i=0,a=t.length,o=e.length;s<a&&i<o;s++,i++){this.debug("matchOne loop");var l=e[i],u=t[s];if(this.debug(e,l,u),l===!1)return!1;if(l===ah){this.debug("GLOBSTAR",[e,l,u]);var c=s,p=i+1;if(p===o){for(this.debug("** at the end");s<a;s++)if(t[s]==="."||t[s]===".."||!n.dot&&t[s].charAt(0)===".")return!1;return!0}for(;c<a;){var h=t[c];if(this.debug(`
|
|
114
|
+
globstar while`,t,c,e,p,h),this.matchOne(t.slice(c),e.slice(p),r))return this.debug("globstar found match!",c,a,h),!0;if(h==="."||h===".."||!n.dot&&h.charAt(0)==="."){this.debug("dot detected!",t,c,e,p);break}this.debug("globstar swallow a segment, and continue"),c++}return!!(r&&(this.debug(`
|
|
115
|
+
>>> no match, partial?`,t,c,e,p),c===a))}var f;if(typeof l=="string"?(n.nocase?f=u.toLowerCase()===l.toLowerCase():f=u===l,this.debug("string match",l,u,f)):(f=u.match(l),this.debug("pattern match",l,u,f)),!f)return!1}if(s===a&&i===o)return!0;if(s===a)return r;if(i===o){var m=s===a-1&&t[s]==="";return m}throw new Error("wtf?")};function jY(t){return t.replace(/\\(.)/g,"$1")}function VY(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var sL=M((Lie,rL)=>{b();v();function $Y(t){r.debug=r,r.default=r,r.coerce=l,r.disable=i,r.enable=s,r.enabled=a,r.humanize=Kc(),r.destroy=u,Object.keys(t).forEach(c=>{r[c]=t[c]}),r.names=[],r.skips=[],r.formatters={};function e(c){let p=0;for(let h=0;h<c.length;h++)p=(p<<5)-p+c.charCodeAt(h),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=e;function r(c){let p,h=null;function f(...m){if(!f.enabled)return;let x=f,E=Number(new Date),S=E-(p||E);x.diff=S,x.prev=p,x.curr=E,p=E,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let T=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(y,w)=>{if(y==="%%")return"%";T++;let D=r.formatters[w];if(typeof D=="function"){let R=m[T];y=D.call(x,R),m.splice(T,1),T--}return y}),r.formatArgs.call(x,m),(x.log||r.log).apply(x,m)}return f.namespace=c,f.useColors=r.useColors(),f.color=r.selectColor(c),f.extend=n,f.destroy=r.destroy,Object.defineProperty(f,"enabled",{enumerable:!0,configurable:!1,get:()=>h===null?r.enabled(c):h,set:m=>{h=m}}),typeof r.init=="function"&&r.init(f),f}function n(c,p){let h=r(this.namespace+(typeof p=="undefined"?":":p)+c);return h.log=this.log,h}function s(c){r.save(c),r.names=[],r.skips=[];let p,h=(typeof c=="string"?c:"").split(/[\s,]+/),f=h.length;for(p=0;p<f;p++)!h[p]||(c=h[p].replace(/\*/g,".*?"),c[0]==="-"?r.skips.push(new RegExp("^"+c.substr(1)+"$")):r.names.push(new RegExp("^"+c+"$")))}function i(){let c=[...r.names.map(o),...r.skips.map(o).map(p=>"-"+p)].join(",");return r.enable(""),c}function a(c){if(c[c.length-1]==="*")return!0;let p,h;for(p=0,h=r.skips.length;p<h;p++)if(r.skips[p].test(c))return!1;for(p=0,h=r.names.length;p<h;p++)if(r.names[p].test(c))return!0;return!1}function o(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function l(c){return c instanceof Error?c.stack||c.message:c}function u(){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 r.enable(r.load()),r}rL.exports=$Y});var nL=M((Er,fu)=>{b();v();Er.formatArgs=WY;Er.save=GY;Er.load=zY;Er.useColors=HY;Er.storage=KY();Er.destroy=(()=>{let t=!1;return()=>{t||(t=!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`."))}})();Er.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 HY(){return typeof window!="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function WY(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+fu.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(n=r))}),t.splice(n,0,e)}Er.log=console.debug||console.log||(()=>{});function GY(t){try{t?Er.storage.setItem("debug",t):Er.storage.removeItem("debug")}catch(e){}}function zY(){let t;try{t=Er.storage.getItem("debug")}catch(e){}return!t&&typeof L!="undefined"&&"env"in L&&(t=L.env.DEBUG),t}function KY(){try{return localStorage}catch(t){}}fu.exports=sL()(Er);var{formatters:YY}=fu.exports;YY.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var uh=M(iL=>{b();v();"use strict";var aL=class{static overwrite(e,r){return r}static replace(e,r){return typeof r!="undefined"?r:e}static assign(e,r){return Object.assign({},e,r)}};iL.MergeStrategy=aL});var ch=M(oL=>{b();v();"use strict";var lL=class{static array(e){if(!Array.isArray(e))throw new TypeError("Expected an array.")}static boolean(e){if(typeof e!="boolean")throw new TypeError("Expected a Boolean.")}static number(e){if(typeof e!="number")throw new TypeError("Expected a number.")}static object(e){if(!e||typeof e!="object")throw new TypeError("Expected an object.")}static"object?"(e){if(typeof e!="object")throw new TypeError("Expected an object or null.")}static string(e){if(typeof e!="string")throw new TypeError("Expected a string.")}static"string!"(e){if(typeof e!="string"||e.length===0)throw new TypeError("Expected a non-empty string.")}};oL.ValidationStrategy=lL});var fL=M(uL=>{b();v();"use strict";var{MergeStrategy:cL}=uh(),{ValidationStrategy:fh}=ch(),Ma=Symbol("strategies"),ph=Symbol("requiredKeys");function JY(t,e){let r=!1;if(e.schema)if(typeof e.schema=="object")r=!0;else throw new TypeError("Schema must be an object.");if(typeof e.merge=="string"){if(!(e.merge in cL))throw new TypeError(`Definition for key "${t}" missing valid merge strategy.`)}else if(!r&&typeof e.merge!="function")throw new TypeError(`Definition for key "${t}" must have a merge property.`);if(typeof e.validate=="string"){if(!(e.validate in fh))throw new TypeError(`Definition for key "${t}" missing valid validation strategy.`)}else if(!r&&typeof e.validate!="function")throw new TypeError(`Definition for key "${t}" must have a validate() method.`)}var pu=class{constructor(e){if(!e)throw new Error("Schema definitions missing.");this[Ma]=new Map,this[ph]=new Map;for(let r of Object.keys(e)){if(JY(r,e[r]),typeof e[r].schema=="object"){let n=new pu(e[r].schema);e[r]={...e[r],merge(s={},i={}){return n.merge(s,i)},validate(s){fh.object(s),n.validate(s)}}}typeof e[r].merge=="string"&&(e[r]={...e[r],merge:cL[e[r].merge]}),typeof e[r].validate=="string"&&(e[r]={...e[r],validate:fh[e[r].validate]}),this[Ma].set(r,e[r]),e[r].required&&this[ph].set(r,e[r])}}hasKey(e){return this[Ma].has(e)}merge(...e){if(e.length<2)throw new Error("merge() requires at least two arguments.");if(e.some(r=>r==null||typeof r!="object"))throw new Error("All arguments must be objects.");return e.reduce((r,n)=>{this.validate(n);for(let[s,i]of this[Ma])try{if(s in r||s in n){let a=i.merge.call(this,r[s],n[s]);a!==void 0&&(r[s]=a)}}catch(a){throw a.message=`Key "${s}": `+a.message,a}return r},{})}validate(e){for(let r of Object.keys(e)){if(!this.hasKey(r))throw new Error(`Unexpected key "${r}" found.`);let n=this[Ma].get(r);if(Array.isArray(n.requires)&&!n.requires.every(s=>s in e))throw new Error(`Key "${r}" requires keys "${n.requires.join('", "')}".`);try{n.validate.call(n,e[r])}catch(s){throw s.message=`Key "${r}": `+s.message,s}}for(let[r]of this[ph])if(!(r in e))throw new Error(`Missing required key "${r}".`)}};uL.ObjectSchema=pu});var pL=M(hu=>{b();v();hu.ObjectSchema=fL().ObjectSchema;hu.MergeStrategy=uh().MergeStrategy;hu.ValidationStrategy=ch().ValidationStrategy});var EL=M(mu=>{b();v();"use strict";Object.defineProperty(mu,"__esModule",{value:!0});function hh(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var hL=hh(Ii()),mh=hh(tL()),QY=hh(nL()),XY=pL();function mL(t){if(!Array.isArray(t))throw new TypeError("Expected value to be an array.")}function dL(t,e){if(mL(t),t.some(r=>typeof r!="string"&&typeof r!="function"))throw new TypeError("Expected array to only contain strings.")}var ZY=Object.freeze({name:{required:!1,merge(){},validate(t){if(typeof t!="string")throw new TypeError("Property must be a string.")}},files:{required:!1,merge(){},validate(t){mL(t),t.forEach(e=>{if(Array.isArray(e))dL(e);else if(typeof e!="string"&&typeof e!="function")throw new TypeError("Items must be a string, a function, or an array of strings and functions.")})}},ignores:{required:!1,merge(){},validate:dL}}),gL=QY("@hwc/config-array"),dh={matchBase:!0,dot:!0},eJ=new Set(["array","function"]);function tJ(t){return typeof t=="string"}async function rJ(t,e,r){let n=r.includes("function"),s=r.includes("array");async function*i(l){for(let u of l){if(typeof u=="function"){if(!n)throw new TypeError("Unexpected function.");u=u(e),u.then&&(u=await u)}if(Array.isArray(u)){if(!s)throw new TypeError("Unexpected array.");yield*i(u)}else{if(typeof u=="function")throw new TypeError("A config function can only return an object or array.");yield u}}}let a=await i(t),o=[];for await(let l of a)o.push(l);return o}function sJ(t,e,r){let n=r.includes("function"),s=r.includes("array");function*i(a){for(let o of a){if(typeof o=="function"){if(!n)throw new TypeError("Unexpected function.");if(o=o(e),o.then)throw new TypeError("Async config functions are not supported.")}if(Array.isArray(o)){if(!s)throw new TypeError("Unexpected array.");yield*i(o)}else{if(typeof o=="function")throw new TypeError("A config function can only return an object or array.");yield o}}}return[...i(t)]}function yL(t,e,r){let n=!1;for(let s of t){if(typeof s=="function"){n=n||s(e);continue}if(s.startsWith("!")){if(n&&mh(r,s,{...dh,flipNegate:!0}))return!1}else n=n||mh(r,s,dh)}return n}function nJ(t,e,r){if(!r.files)return!0;let n=hL.relative(e,t);if(!Array.isArray(r.files)||r.files.length===0)throw new TypeError("The files key must be a non-empty array.");let s=a=>{if(tJ(a))return mh(n,a,dh);if(typeof a=="function")return a(t);throw new TypeError(`Unexpected matcher type ${a}.`)},i=r.files.some(a=>Array.isArray(a)?a.every(s):s(a));return i&&r.ignores&&(i=!yL(r.ignores,t,n)),i}function gh(t){if(!t.isNormalized())throw new Error("ConfigArray must be normalized to perform this operation.")}function iJ(t){if(t.length>2)throw new TypeError("configTypes must be an array with at most two items.");for(let e of t)if(!eJ.has(e))throw new TypeError(`Unexpected config type "${e}" found. Expected one of: "object", "array", "function".`)}var Jt={isNormalized:Symbol("isNormalized"),configCache:Symbol("configCache"),schema:Symbol("schema"),finalizeConfig:Symbol("finalizeConfig"),preprocessConfig:Symbol("preprocessConfig")},ja=new WeakMap,xL=class extends Array{constructor(e,{basePath:r="",normalized:n=!1,schema:s,extraConfigTypes:i=[]}={}){super();this[Jt.isNormalized]=n,this[Jt.schema]=new XY.ObjectSchema({...s,...ZY}),this.basePath=r,iJ(i),this.extraConfigTypes=Object.freeze([...i]),this[Jt.configCache]=new Map,ja.set(this,{}),Array.isArray(e)?this.push(...e):this.push(e)}static get[Symbol.species](){return Array}get files(){gh(this);let e=ja.get(this);if(e.files)return e.files;let r=[];for(let n of this)n.files&&n.files.forEach(s=>{r.push(s)});return e.files=r,ja.set(this,e),r}get ignores(){gh(this);let e=ja.get(this);if(e.ignores)return e.ignores;let r=[];for(let n of this)n.ignores&&!n.files&&r.push(...n.ignores);return e.ignores=r,ja.set(this,e),r}isNormalized(){return this[Jt.isNormalized]}async normalize(e={}){if(!this.isNormalized()){let r=await rJ(this,e,this.extraConfigTypes);this.length=0,this.push(...r.map(this[Jt.preprocessConfig].bind(this))),this[Jt.isNormalized]=!0,Object.freeze(this)}return this}normalizeSync(e={}){if(!this.isNormalized()){let r=sJ(this,e,this.extraConfigTypes);this.length=0,this.push(...r.map(this[Jt.preprocessConfig])),this[Jt.isNormalized]=!0,Object.freeze(this)}return this}[Jt.finalizeConfig](e){return e}[Jt.preprocessConfig](e){return e}getConfig(e){gh(this);let r=this[Jt.configCache].get(e);if(r)return r;let n=hL.relative(this.basePath,e);if(yL(this.ignores,e,n))return this[Jt.configCache].set(e,r),r;let s=[];for(let i of this)nJ(e,this.basePath,i)?(gL(`Matching config found for ${e}`),s.push(i)):gL(`No matching config found for ${e}`);return s.length===0?(this[Jt.configCache].set(e,r),r):(r=s.reduce((i,a)=>this[Jt.schema].merge(i,a),{},this),r=this[Jt.finalizeConfig](r),this[Jt.configCache].set(e,r),r)}isIgnored(e){return this.getConfig(e)===void 0}};mu.ConfigArray=xL;mu.ConfigArraySymbol=Jt});var DL=M(bL=>{b();v();"use strict";var yh=new Map([[0,0],["off",0],[1,1],["warn",1],[2,2],["error",2]]),aJ=new Set([!0,"true","writable","writeable",!1,"false","readonly","readable",null,"off"]);function xh(t){return typeof t=="object"&&t!==null}function vL(t){return typeof t=="undefined"}function Eh(t={},e={}){if(Array.isArray(e))return e;let r={...t,...e};for(let n of Object.keys(e)){if(n==="__proto__")continue;let s=t[n],i=e[n];xh(s)?r[n]=Eh(s,i):vL(s)&&(xh(i)?r[n]=Eh(Array.isArray(i)?[]:{},i):vL(i)||(r[n]=i))}return r}function bh(t){let e=Array.isArray(t)?t.slice(0):[t];return e[0]=yh.get(e[0]),e}function oJ(t){if(typeof t!="string"&&typeof t!="number"&&!Array.isArray(t))throw new TypeError("Expected a string, number, or array.")}function CL(t){if(typeof(typeof t=="string"?yh.get(t.toLowerCase()):yh.get(t))=="undefined")throw new TypeError('Expected severity of "off", 0, "warn", 1, "error", or 2.')}function SL(t){if(!/[@a-z0-9-_$]+(?:\/(?:[a-z0-9-_$]+))+$/iu.test(t))throw new TypeError(`Expected string in the form "pluginName/objectName" but found "${t}".`)}function AL(t){if(!xh(t))throw new TypeError("Expected an object.")}function lJ(t){if((!t||typeof t!="object")&&typeof t!="string")throw new TypeError("Expected an object or string.")}var wL={merge:"replace",validate:"boolean"},kL={merge(t={},e={}){return Eh(t,e)},validate:"object"},uJ={merge:"assign",validate(t){AL(t);for(let e of Object.keys(t))if(e!=="__proto__"){if(e!==e.trim())throw new TypeError(`Global "${e}" has leading or trailing whitespace.`);if(!aJ.has(t[e]))throw new TypeError(`Key "${e}": Expected "readonly", "writable", or "off".`)}}},cJ={merge:"replace",validate(t){if(lJ(t),typeof t=="object"&&typeof t.parse!="function"&&typeof t.parseForESLint!="function")throw new TypeError("Expected object to have a parse() or parseForESLint() method.");typeof t=="string"&&SL(t)}},fJ={merge(t={},e={}){let r=new Set([...Object.keys(t),...Object.keys(e)]),n={};for(let s of r)if(s!=="__proto__"){if(s in t&&s in e&&t[s]!==e[s])throw new TypeError(`Cannot redefine plugin "${s}".`);n[s]=e[s]||t[s]}return n},validate(t){if(t===null||typeof t!="object")throw new TypeError("Expected an object.");for(let e of Object.keys(t))if(e!=="__proto__"&&(t[e]===null||typeof t[e]!="object"))throw new TypeError(`Key "${e}": Expected an object.`)}},pJ={merge:"replace",validate(t){if(typeof t=="string")SL(t);else if(t&&typeof t=="object"){if(typeof t.preprocess!="function"||typeof t.postprocess!="function")throw new TypeError("Object must have a preprocess() and a postprocess() method.")}else throw new TypeError("Expected an object or a string.")}},hJ={merge(t={},e={}){let r={...t,...e};for(let n of Object.keys(r)){if(n==="__proto__"){delete r.__proto__;continue}if(r[n]=bh(r[n]),!(n in t)||!(n in e))continue;let s=bh(t[n]),i=bh(e[n]);if(i.length===1){r[n]=[i[0],...s.slice(1)];continue}}return r},validate(t){AL(t);let e;try{for(let r of Object.keys(t)){if(r==="__proto__")continue;e=r;let n=t[r];oJ(n),Array.isArray(n)?CL(n[0]):CL(n)}}catch(r){throw r.message=`Key "${e}": ${r.message}`,r}}},mJ={merge:"replace",validate(t){if(!(typeof t=="number"||t==="latest"))throw new TypeError('Expected a number or "latest".')}},dJ={merge:"replace",validate(t){if(typeof t!="string"||!/^(?:script|module|commonjs)$/u.test(t))throw new TypeError('Expected "script", "module", or "commonjs".')}};bL.flatConfigSchema={settings:kL,linterOptions:{schema:{noInlineConfig:wL,reportUnusedDisableDirectives:wL}},languageOptions:{schema:{ecmaVersion:mJ,sourceType:dJ,globals:uJ,parser:cJ,parserOptions:kL}},processor:pJ,plugins:fJ,rules:hJ}});var FL=M(($ie,TL)=>{TL.exports={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string"},$schema:{type:"string"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}}});var _L=M((Wie,PL)=>{b();v();"use strict";var gJ=$c(),IL=FL();PL.exports=(t={})=>{let e=new gJ({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:"ignore",verbose:!0,schemaId:"auto",...t});return e.addMetaSchema(IL),e._opts.defaultMeta=IL.id,e}});var RL=M(BL=>{b();v();"use strict";var yJ=_L()(),{parseRuleId:xJ,getRuleFromConfig:EJ,getRuleOptionsSchema:bJ}=sh(),vJ=rh();function CJ({pluginName:t,ruleName:e},r){let s=`Key "rules": Key "${t==="@"?e:`${t}/${e}`}"`,i=`${s}: Could not find plugin "${t}".`;if(r.plugins&&r.plugins[t]){let a=vJ.rules[e];if(t==="@"&&a)i=`${s}: Rule "${e}" was removed and replaced by "${a}".`;else{i=`${s}: Could not find "${e}" in plugin "${t}".`;for(let[o,l]of Object.entries(r.plugins))if(l.rules&&l.rules[e]){i+=` Did you mean "${o}/${e}"?`;break}}}throw new TypeError(i)}var OL=class{constructor(){this.validators=new WeakMap}validate(e){if(!!e.rules)for(let[r,n]of Object.entries(e.rules)){if(r==="__proto__"||n[0]===0)continue;let s=EJ(r,e);if(s||CJ(xJ(r),e),!this.validators.has(s)){let a=bJ(s);a&&this.validators.set(s,yJ.compile(a))}let i=this.validators.get(s);if(i&&(i(n.slice(1)),i.errors))throw new Error(`Key "rules": Key "${r}": ${i.errors.map(a=>` Value ${JSON.stringify(a.data)} ${a.message}.
|
|
116
|
+
`).join("")}`)}}};BL.RuleValidator=OL});var ML=M(LL=>{b();v();"use strict";var NL=lu();LL.defaultConfig=[{plugins:{"@":{parsers:{espree:$i()},rules:new Proxy({},{get(t,e){return NL.get(e)},has(t,e){return NL.has(e)}})}},ignores:["**/node_modules/**",".git/**"],languageOptions:{ecmaVersion:"latest",sourceType:"module",parser:"@/espree",parserOptions:{}}},{files:["**/*.cjs"],languageOptions:{sourceType:"commonjs"}}]});var qL=M((Hie,jL)=>{b();v();"use strict";jL.exports={rules:{"constructor-super":"error","for-direction":"error","getter-return":"error","no-async-promise-executor":"error","no-case-declarations":"error","no-class-assign":"error","no-compare-neg-zero":"error","no-cond-assign":"error","no-const-assign":"error","no-constant-condition":"error","no-control-regex":"error","no-debugger":"error","no-delete-var":"error","no-dupe-args":"error","no-dupe-class-members":"error","no-dupe-else-if":"error","no-dupe-keys":"error","no-duplicate-case":"error","no-empty":"error","no-empty-character-class":"error","no-empty-pattern":"error","no-ex-assign":"error","no-extra-boolean-cast":"error","no-extra-semi":"error","no-fallthrough":"error","no-func-assign":"error","no-global-assign":"error","no-import-assign":"error","no-inner-declarations":"error","no-invalid-regexp":"error","no-irregular-whitespace":"error","no-loss-of-precision":"error","no-misleading-character-class":"error","no-mixed-spaces-and-tabs":"error","no-new-symbol":"error","no-nonoctal-decimal-escape":"error","no-obj-calls":"error","no-octal":"error","no-prototype-builtins":"error","no-redeclare":"error","no-regex-spaces":"error","no-self-assign":"error","no-setter-return":"error","no-shadow-restricted-names":"error","no-sparse-arrays":"error","no-this-before-super":"error","no-undef":"error","no-unexpected-multiline":"error","no-unreachable":"error","no-unsafe-finally":"error","no-unsafe-negation":"error","no-unsafe-optional-chaining":"error","no-unused-labels":"error","no-unused-vars":"error","no-useless-backreference":"error","no-useless-catch":"error","no-useless-escape":"error","no-with":"error","require-yield":"error","use-isnan":"error","valid-typeof":"error"}}});var $L=M((Kie,VL)=>{b();v();"use strict";var SJ=lu(),UL={};for(let[t,e]of SJ)e.meta.deprecated||(UL[t]="error");VL.exports={rules:UL}});var KL=M(WL=>{b();v();"use strict";var{ConfigArray:AJ,ConfigArraySymbol:GL}=EL(),{flatConfigSchema:wJ}=DL(),{RuleValidator:kJ}=RL(),{defaultConfig:DJ}=ML(),TJ=qL(),FJ=new kJ;function zL(t){let e=t.split("/");return{objectName:e.pop(),pluginName:e.join("/")}}var HL=class extends AJ{constructor(e,{basePath:r,baseConfig:n=DJ}={}){super(e,{basePath:r,schema:wJ});n[Symbol.iterator]?this.unshift(...n):this.unshift(n)}[GL.preprocessConfig](e){return e==="eslint:recommended"?TJ:e==="eslint:all"?$L():e}[GL.finalizeConfig](e){let{plugins:r,languageOptions:n,processor:s}=e;if(n&&n.parser&&typeof n.parser=="string"){let{pluginName:i,objectName:a}=zL(n.parser);if(!r||!r[i]||!r[i].parsers||!r[i].parsers[a])throw new TypeError(`Key "parser": Could not find "${a}" in plugin "${i}".`);n.parser=r[i].parsers[a]}if(s&&typeof s=="string"){let{pluginName:i,objectName:a}=zL(s);if(!r||!r[i]||!r[i].processors||!r[i].processors[a])throw new TypeError(`Key "processor": Could not find "${a}" in plugin "${i}".`);e.processor=r[i].processors[a]}return FJ.validate(e),e}};WL.FlatConfigArray=HL});var i3=M((Jie,YL)=>{b();v();"use strict";var PJ={exports:!0,global:!1,module:!1,require:!1},JL={Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},QL={...JL,JSON:!1},XL={...QL,ArrayBuffer:!1,DataView:!1,Float32Array:!1,Float64Array:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Map:!1,Promise:!1,Proxy:!1,Reflect:!1,Set:!1,Symbol:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,WeakMap:!1,WeakSet:!1},ZL={...XL},e3={...ZL,Atomics:!1,SharedArrayBuffer:!1},t3={...e3},r3={...t3},s3={...r3,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,globalThis:!1},n3={...s3,AggregateError:!1,FinalizationRegistry:!1,WeakRef:!1},IJ={...n3};YL.exports={commonjs:PJ,es3:JL,es5:QL,es2015:XL,es2016:ZL,es2017:e3,es2018:t3,es2019:r3,es2020:s3,es2021:n3,es2022:IJ}});var I3=M((Qie,a3)=>{b();v();"use strict";var Qs=Ii(),o3=bd(),l3=sc(),Pi=$i(),u3=ug(),c3=fg(),_J=Yi(),{Legacy:{ConfigOps:vh,ConfigValidator:BJ,environments:OJ}}=Hc(),du=Qo(),{SourceCode:Ch}=Wx(),RJ=hE(),f3=yE(),LJ=p1(),p3=y1(),NJ=D1(),h3=ER(),MJ=vR(),jJ=AR(),m3=PR(),d3=rh(),{getRuleFromConfig:g3}=sh(),{FlatConfigArray:qJ}=KL(),vt=En()("eslint:linter"),VJ=10,UJ="espree",$J=5,qa=new LJ,WJ={start:{line:1,column:0},end:{line:1,column:1}},GJ=Symbol.for("eslint.RuleTester.parser"),Va=i3();function y3(t){return t===Pi||t[GJ]===Pi}function zJ(t){switch(t){case 3:return Va.es3;case 5:return Va.es5;default:return t<2015?Va[`es${t+2009}`]:Va[`es${t}`]}}function x3(t,e,{exportedVariables:r,enabledGlobals:n}){for(let s of new Set([...Object.keys(e),...Object.keys(n)])){let i=e[s]===void 0?void 0:vh.normalizeConfigGlobal(e[s]),o=n[s]&&n[s].value||i,l=n[s]&&n[s].comments;if(o==="off")continue;let u=t.set.get(s);u||(u=new o3.Variable(s,t),t.variables.push(u),t.set.set(s,u)),u.eslintImplicitGlobalSetting=i,u.eslintExplicitGlobal=l!==void 0,u.eslintExplicitGlobalComments=l,u.writeable=o==="writable"}Object.keys(r).forEach(s=>{let i=t.set.get(s);i&&(i.eslintUsed=!0)}),t.through=t.through.filter(s=>{let i=s.identifier.name,a=t.set.get(i);return a?(s.resolved=a,a.references.push(s),!1):!0})}function HJ(t){return Object.prototype.hasOwnProperty.call(d3.rules,t)?`Rule '${t}' was removed and replaced by: ${d3.rules[t].join(", ")}`:`Definition for rule '${t}' was not found.`}function Rn(t){let{ruleId:e=null,loc:r=WJ,message:n=HJ(t.ruleId),severity:s=2}=t;return{ruleId:e,message:n,line:r.start.line,column:r.start.column+1,endLine:r.end.line,endColumn:r.end.column+1,severity:s,nodeType:null}}function KJ(t){let{commentToken:e,type:r,value:n,justification:s,ruleMapper:i}=t,a=Object.keys(qa.parseListConfig(n)),o=a.length?a:[null],l={directives:[],directiveProblems:[]},u={commentToken:e,ruleIds:a};for(let c of o)c===null||!!i(c)?r==="disable-next-line"?l.directives.push({parentComment:u,type:r,line:e.loc.end.line,column:e.loc.end.column+1,ruleId:c,justification:s}):l.directives.push({parentComment:u,type:r,line:e.loc.start.line,column:e.loc.start.column+1,ruleId:c,justification:s}):l.directiveProblems.push(Rn({ruleId:c,loc:e.loc}));return l}function E3(t){let e=/\s-{2,}\s/u.exec(t);if(!e)return{directivePart:t.trim(),justificationPart:""};let r=t.slice(0,e.index).trim(),n=t.slice(e.index+e[0].length).trim();return{directivePart:r,justificationPart:n}}function b3(t,e,r){let n={},s=Object.create(null),i={},a=[],o=[],l=new BJ({builtInRules:h3});return t.comments.filter(u=>u.type!=="Shebang").forEach(u=>{let{directivePart:c,justificationPart:p}=E3(u.value),h=/^(eslint(?:-env|-enable|-disable(?:(?:-next)?-line)?)?|exported|globals?)(?:\s|$)/u.exec(c);if(!h)return;let f=h[1],m=/^eslint-disable-(next-)?line$/u.test(f);if(u.type==="Line"&&!m)return;if(r){let E=u.type==="Block"?`/*${f}*/`:`//${f}`;a.push(Rn({ruleId:null,message:`'${E}' has no effect because you have 'noInlineConfig' setting in ${r}.`,loc:u.loc,severity:1}));return}if(f==="eslint-disable-line"&&u.loc.start.line!==u.loc.end.line){let E=`${f} comment should not span multiple lines.`;a.push(Rn({ruleId:null,message:E,loc:u.loc}));return}let x=c.slice(h.index+f.length);switch(f){case"eslint-disable":case"eslint-enable":case"eslint-disable-next-line":case"eslint-disable-line":{let E=f.slice("eslint-".length),S={commentToken:u,type:E,value:x,justification:p,ruleMapper:e},{directives:T,directiveProblems:I}=KJ(S);o.push(...T),a.push(...I);break}case"exported":Object.assign(i,qa.parseStringConfig(x,u));break;case"globals":case"global":for(let[E,{value:S}]of Object.entries(qa.parseStringConfig(x,u))){let T;try{T=vh.normalizeConfigGlobal(S)}catch(I){a.push(Rn({ruleId:null,loc:u.loc,message:I.message}));continue}s[E]?(s[E].comments.push(u),s[E].value=T):s[E]={comments:[u],value:T}}break;case"eslint":{let E=qa.parseJsonConfig(x,u.loc);E.success?Object.keys(E.config).forEach(S=>{let T=e(S),I=E.config[S];if(!T){a.push(Rn({ruleId:S,loc:u.loc}));return}try{l.validateRuleOptions(T,S,I)}catch(y){a.push(Rn({ruleId:S,message:y.message,loc:u.loc}));return}n[S]=I}):a.push(E.error);break}}}),{configuredRules:n,enabledGlobals:s,exportedVariables:i,problems:a,disableDirectives:o}}function YJ(t,e){return y3(t)&&e==="latest"?Pi.latestEcmaVersion:e>=2015?e-2009:e}function v3(t){switch(t){case 3:return 3;case 5:case void 0:return 5;default:if(typeof t=="number")return t>=2015?t:t+2009}return Pi.latestEcmaVersion+2009}var C3=/\/\*\s*eslint-env\s(.+?)(?:\*\/|$)/gsu;function JJ(t){let e,r;for(C3.lastIndex=0;(e=C3.exec(t))!==null;)e[0].endsWith("*/")&&(r=Object.assign(r||{},qa.parseListConfig(E3(e[1]).directivePart)));return r}function Sh(t){let e=t.split(Qs.sep),r=e.lastIndexOf("<text>");return r===-1?t:e.slice(r).join(Qs.sep)}function S3(t,e){let r=e.linterOptions||e,n=r.noInlineConfig===!0,s=t.allowInlineConfig===!1,i=e.configNameOfNoInlineConfig?` (${e.configNameOfNoInlineConfig})`:"",a=t.reportUnusedDisableDirectives;return typeof a=="boolean"&&(a=a?"error":"off"),typeof a!="string"&&(a=r.reportUnusedDisableDirectives?"warn":"off"),{filename:Sh(t.filename||"<input>"),allowInlineConfig:!s,warnInlineConfig:n&&!s?`your config${i}`:null,reportUnusedDisableDirectives:a,disableFixes:Boolean(t.disableFixes)}}function QJ(t,e,r){let n=r.filter(a=>a.parserOptions).reduce((a,o)=>u3(a,o.parserOptions),{}),s=u3(n,e||{});return s.sourceType==="module"&&(s.ecmaFeatures=Object.assign({},s.ecmaFeatures,{globalReturn:!1})),s.ecmaVersion=YJ(t,s.ecmaVersion),s}function XJ({globals:t,parser:e,parserOptions:r}){let{ecmaVersion:n,sourceType:s}=r;return{globals:t,ecmaVersion:v3(n),sourceType:s,parser:e,parserOptions:r}}function ZJ(t,e){return Object.assign({},...e.filter(r=>r.globals).map(r=>r.globals),t)}function eQ(t){return t.charCodeAt(0)===65279?t.slice(1):t}function tQ(t){return Array.isArray(t)?t.slice(1):[]}function Ah(t,e,r){let s=e.parserOptions.ecmaFeatures||{},i=e.ecmaVersion||$J;return o3.analyze(t,{ignoreEval:!0,nodejsScope:s.globalReturn,impliedStrict:s.impliedStrict,ecmaVersion:typeof i=="number"?i:6,sourceType:e.sourceType||"script",childVisitorKeys:r||l3.KEYS,fallback:du.getKeys})}function A3(t,e,r){let n=eQ(t).replace(_J.shebangPattern,(l,u)=>`//${u}`),{ecmaVersion:s,sourceType:i,parser:a}=e,o=Object.assign({ecmaVersion:s,sourceType:i},e.parserOptions,{loc:!0,range:!0,raw:!0,tokens:!0,comment:!0,eslintVisitorKeys:!0,eslintScopeManager:!0,filePath:r});try{vt("Parsing:",r);let l=typeof a.parseForESLint=="function"?a.parseForESLint(n,o):{ast:a.parse(n,o)};vt("Parsing successful:",r);let u=l.ast,c=l.services||{},p=l.visitorKeys||l3.KEYS;vt("Scope analysis:",r);let h=l.scopeManager||Ah(u,e,p);return vt("Scope analysis successful:",r),{success:!0,sourceCode:new Ch({text:t,ast:u,parserServices:c,scopeManager:h,visitorKeys:p})}}catch(l){let u=`Parsing error: ${l.message.replace(/^line \d+:/iu,"").trim()}`;return vt(`%s
|
|
117
|
+
%s`,u,l.stack),{success:!1,error:{ruleId:null,fatal:!0,severity:2,message:u,line:l.lineNumber,column:l.column}}}}function w3(t,e){let r=e.type!=="Program";for(let n=e;n;n=n.parent){let s=t.acquire(n,r);if(s)return s.type==="function-expression-name"?s.childScopes[0]:s}return t.scopes[0]}function rQ(t,e,r,n){let s=r.parserOptions,i=r.sourceType,o=s.ecmaFeatures&&s.ecmaFeatures.globalReturn||i==="commonjs"||i==="module",l=w3(t,e),u=l.type==="global"&&o?l.childScopes[0]:l;for(let c=u;c;c=c.upper){let p=c.variables.find(h=>h.name===n);if(p)return p.eslintUsed=!0,!0}return!1}function sQ(t,e){try{return t.create(e)}catch(r){throw r.message=`Error while loading rule '${e.id}': ${r.message}`,r}}function nQ(t){let e=[];for(let r=t.parent;r;r=r.parent)e.push(r);return e.reverse()}var k3={getSource:"getText",getSourceLines:"getLines",getAllComments:"getAllComments",getNodeByRangeIndex:"getNodeByRangeIndex",getComments:"getComments",getCommentsBefore:"getCommentsBefore",getCommentsAfter:"getCommentsAfter",getCommentsInside:"getCommentsInside",getJSDocComment:"getJSDocComment",getFirstToken:"getFirstToken",getFirstTokens:"getFirstTokens",getLastToken:"getLastToken",getLastTokens:"getLastTokens",getTokenAfter:"getTokenAfter",getTokenBefore:"getTokenBefore",getTokenByRangeStart:"getTokenByRangeStart",getTokens:"getTokens",getTokensAfter:"getTokensAfter",getTokensBefore:"getTokensBefore",getTokensBetween:"getTokensBetween"},iQ=Object.freeze(Object.keys(k3).reduce((t,e)=>Object.assign(t,{[e](...r){return this.getSourceCode()[k3[e]](...r)}}),{}));function D3(t,e,r,n,s,i,a,o,l,u){let c=MJ(),p=[],h=t.ast;du.traverse(t.ast,{enter(E,S){E.parent=S,p.push({isEntering:!0,node:E})},leave(E){p.push({isEntering:!1,node:E})},visitorKeys:t.visitorKeys});let f=Object.freeze(Object.assign(Object.create(iQ),{getAncestors:()=>nQ(h),getDeclaredVariables:t.scopeManager.getDeclaredVariables.bind(t.scopeManager),getCwd:()=>l,getFilename:()=>a,getPhysicalFilename:()=>u||a,getScope:()=>w3(t.scopeManager,h),getSourceCode:()=>t,markVariableAsUsed:E=>rQ(t.scopeManager,h,s,E),parserOptions:{...s.parserOptions},parserPath:n,languageOptions:s,parserServices:t.parserServices,settings:i})),m=[];Object.keys(e).forEach(E=>{let S=vh.getRuleSeverity(e[E]);if(S===0)return;let T=r(E);if(!T){m.push(Rn({ruleId:E}));return}let I=T.meta&&T.meta.messages,y=null,w=Object.freeze(Object.assign(Object.create(f),{id:E,options:tQ(e[E]),report(...z){y===null&&(y=NJ({ruleId:E,severity:S,sourceCode:t,messageIds:I,disableFixes:o}));let q=y(...z);if(q.fix&&!(T.meta&&T.meta.fixable))throw new Error('Fixable rules must set the `meta.fixable` property to "code" or "whitespace".');if(q.suggestions&&!(T.meta&&T.meta.hasSuggestions===!0))throw T.meta&&T.meta.docs&&typeof T.meta.docs.suggestion!="undefined"?new Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`. `meta.docs.suggestion` is ignored by ESLint."):new Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`.");m.push(q)}})),D=sQ(T,w);function R(z){return function(...W){try{return z(...W)}catch(_){throw _.ruleId=E,_}}}Object.keys(D).forEach(z=>{let q=m3.enabled?m3.time(E,D[z]):D[z];c.on(z,R(q))})});let x=p[0].node.type==="Program"?new RJ(new p3(c,{visitorKeys:t.visitorKeys,fallback:du.getKeys})):new p3(c,{visitorKeys:t.visitorKeys,fallback:du.getKeys});return p.forEach(E=>{h=E.node;try{E.isEntering?x.enterNode(h):x.leaveNode(h)}catch(S){throw S.currentNode=h,S}}),m}function T3(t){if(typeof t=="object"){let{hasBOM:e,text:r}=t;return(e?"\uFEFF":"")+r}return String(t)}function aQ(t,e){return t.lastConfigArray&&t.lastConfigArray.pluginEnvironments.get(e)||OJ.get(e)||null}function F3(t,e){return t.lastConfigArray&&t.lastConfigArray.pluginRules.get(e)||t.ruleMap.get(e)}function oQ(t){if(t)return t;if(typeof L=="object")return L.cwd()}var pr=new WeakMap;function gu(t){let{configType:e}=pr.get(t);if(e==="flat")throw new Error("This method cannot be used with flat config. Add your entries directly into the config array.")}var P3=class{constructor({cwd:e,configType:r}={}){pr.set(this,{cwd:oQ(e),lastConfigArray:null,lastSourceCode:null,lastSuppressedMessages:[],configType:r,parserMap:new Map([["espree",Pi]]),ruleMap:new h3}),this.version=c3.version}static get version(){return c3.version}_verifyWithoutProcessors(e,r,n){let s=pr.get(this),i=r||{},a=S3(n,i),o;typeof e=="string"?(s.lastSourceCode=null,o=e):(s.lastSourceCode=e,o=e.text);let l=UJ,u=Pi;if(typeof i.parser=="object"&&i.parser!==null)l=i.parser.filePath,u=i.parser.definition;else if(typeof i.parser=="string"){if(!s.parserMap.has(i.parser))return[{ruleId:null,fatal:!0,severity:2,message:`Configured parser '${i.parser}' was not found.`,line:0,column:0}];l=i.parser,u=s.parserMap.get(i.parser)}let c=a.allowInlineConfig&&!a.warnInlineConfig?JJ(o):{},p=Object.assign({builtin:!0},i.env,c),h=Object.keys(p).filter(w=>p[w]).map(w=>aQ(s,w)).filter(w=>w),f=QJ(u,i.parserOptions||{},h),m=ZJ(i.globals||{},h),x=i.settings||{},E=XJ({globals:i.globals,parser:u,parserOptions:f});if(s.lastSourceCode)s.lastSourceCode.scopeManager||(s.lastSourceCode=new Ch({text:s.lastSourceCode.text,ast:s.lastSourceCode.ast,parserServices:s.lastSourceCode.parserServices,visitorKeys:s.lastSourceCode.visitorKeys,scopeManager:Ah(s.lastSourceCode.ast,E)}));else{let w=A3(o,E,a.filename);if(!w.success)return[w.error];s.lastSourceCode=w.sourceCode}let S=s.lastSourceCode,T=a.allowInlineConfig?b3(S.ast,w=>F3(s,w),a.warnInlineConfig):{configuredRules:{},enabledGlobals:{},exportedVariables:{},problems:[],disableDirectives:[]};x3(S.scopeManager.scopes[0],m,{exportedVariables:T.exportedVariables,enabledGlobals:T.enabledGlobals});let I=Object.assign({},i.rules,T.configuredRules),y;try{y=D3(S,I,w=>F3(s,w),l,E,x,a.filename,a.disableFixes,s.cwd,n.physicalFilename)}catch(w){if(w.message+=`
|
|
118
|
+
Occurred while linting ${a.filename}`,vt("An error occurred while traversing"),vt("Filename:",a.filename),w.currentNode){let{line:D}=w.currentNode.loc.start;vt("Line:",D),w.message+=`:${D}`}throw vt("Parser Options:",f),vt("Parser Path:",l),vt("Settings:",x),w.ruleId&&(w.message+=`
|
|
119
|
+
Rule: "${w.ruleId}"`),w}return f3({directives:T.disableDirectives,disableFixes:a.disableFixes,problems:y.concat(T.problems).sort((w,D)=>w.line-D.line||w.column-D.column),reportUnusedDisableDirectives:a.reportUnusedDisableDirectives})}verify(e,r,n){vt("Verify");let{configType:s}=pr.get(this),i=typeof n=="string"?{filename:n}:n||{};if(r){if(s==="flat"){let a=r;return(!Array.isArray(r)||typeof r.getConfig!="function")&&(a=new qJ(r),a.normalizeSync()),this._distinguishSuppressedMessages(this._verifyWithFlatConfigArray(e,a,i,!0))}if(typeof r.extractConfig=="function")return this._distinguishSuppressedMessages(this._verifyWithConfigArray(e,r,i))}return i.preprocess||i.postprocess?this._distinguishSuppressedMessages(this._verifyWithProcessor(e,r,i)):this._distinguishSuppressedMessages(this._verifyWithoutProcessors(e,r,i))}_verifyWithFlatConfigArrayAndProcessor(e,r,n,s){let i=n.filename||"<input>",a=Sh(i),o=n.physicalFilename||a,l=T3(e),u=n.preprocess||(m=>[m]),c=n.postprocess||(m=>m.flat()),p=n.filterCodeBlock||(m=>m.endsWith(".js")),h=Qs.extname(i),f=u(l,a).map((m,x)=>{if(vt("A code block was found: %o",m.filename||"(unnamed)"),typeof m=="string")return this._verifyWithFlatConfigArrayAndWithoutProcessors(m,r,n);let E=m.text,S=Qs.join(i,`${x}_${m.filename}`);return p(S,E)?s&&(l!==E||Qs.extname(S)!==h)?(vt("Resolving configuration again because the file content or extension was changed."),this._verifyWithFlatConfigArray(E,s,{...n,filename:S,physicalFilename:o})):this._verifyWithFlatConfigArrayAndWithoutProcessors(E,r,{...n,filename:S,physicalFilename:o}):(vt("This code block was skipped."),[])});return c(f,a)}_verifyWithFlatConfigArrayAndWithoutProcessors(e,r,n){let s=pr.get(this),i=r||{},a=S3(n,i),o;typeof e=="string"?(s.lastSourceCode=null,o=e):(s.lastSourceCode=e,o=e.text);let l=i.languageOptions;l.ecmaVersion=v3(l.ecmaVersion);let u={...zJ(l.ecmaVersion),...l.sourceType==="commonjs"?Va.commonjs:void 0,...l.globals};if(y3(l.parser)){let x=l.parserOptions;l.sourceType&&(x.sourceType=l.sourceType,x.sourceType==="module"&&x.ecmaFeatures&&x.ecmaFeatures.globalReturn&&(x.ecmaFeatures.globalReturn=!1))}let c=i.settings||{};if(s.lastSourceCode)s.lastSourceCode.scopeManager||(s.lastSourceCode=new Ch({text:s.lastSourceCode.text,ast:s.lastSourceCode.ast,parserServices:s.lastSourceCode.parserServices,visitorKeys:s.lastSourceCode.visitorKeys,scopeManager:Ah(s.lastSourceCode.ast,l)}));else{let x=A3(o,l,a.filename);if(!x.success)return[x.error];s.lastSourceCode=x.sourceCode}let p=s.lastSourceCode,h=a.allowInlineConfig?b3(p.ast,x=>g3(x,i),a.warnInlineConfig):{configuredRules:{},enabledGlobals:{},exportedVariables:{},problems:[],disableDirectives:[]};x3(p.scopeManager.scopes[0],u,{exportedVariables:h.exportedVariables,enabledGlobals:h.enabledGlobals});let f=Object.assign({},i.rules,h.configuredRules),m;try{m=D3(p,f,x=>g3(x,i),void 0,l,c,a.filename,a.disableFixes,s.cwd,n.physicalFilename)}catch(x){if(x.message+=`
|
|
120
|
+
Occurred while linting ${a.filename}`,vt("An error occurred while traversing"),vt("Filename:",a.filename),x.currentNode){let{line:E}=x.currentNode.loc.start;vt("Line:",E),x.message+=`:${E}`}throw vt("Parser Options:",l.parserOptions),vt("Settings:",c),x.ruleId&&(x.message+=`
|
|
121
|
+
Rule: "${x.ruleId}"`),x}return f3({directives:h.disableDirectives,disableFixes:a.disableFixes,problems:m.concat(h.problems).sort((x,E)=>x.line-E.line||x.column-E.column),reportUnusedDisableDirectives:a.reportUnusedDisableDirectives})}_verifyWithConfigArray(e,r,n){vt("With ConfigArray: %s",n.filename),pr.get(this).lastConfigArray=r;let s=r.extractConfig(n.filename),i=s.processor&&r.pluginProcessors.get(s.processor);if(i){vt("Apply the processor: %o",s.processor);let{preprocess:a,postprocess:o,supportsAutofix:l}=i,u=n.disableFixes||!l;return this._verifyWithProcessor(e,s,{...n,disableFixes:u,postprocess:o,preprocess:a},r)}return this._verifyWithoutProcessors(e,s,n)}_verifyWithFlatConfigArray(e,r,n,s=!1){vt("With flat config: %s",n.filename);let i=n.filename||"<input>";pr.get(this).lastConfigArray=r;let a=r.getConfig(i);if(a.processor){vt("Apply the processor: %o",a.processor);let{preprocess:o,postprocess:l,supportsAutofix:u}=a.processor,c=n.disableFixes||!u;return this._verifyWithFlatConfigArrayAndProcessor(e,a,{...n,filename:i,disableFixes:c,postprocess:l,preprocess:o},r)}return s&&(n.preprocess||n.postprocess)?this._verifyWithFlatConfigArrayAndProcessor(e,a,n):this._verifyWithFlatConfigArrayAndWithoutProcessors(e,a,n)}_verifyWithProcessor(e,r,n,s){let i=n.filename||"<input>",a=Sh(i),o=n.physicalFilename||a,l=T3(e),u=n.preprocess||(m=>[m]),c=n.postprocess||(m=>m.flat()),p=n.filterCodeBlock||(m=>m.endsWith(".js")),h=Qs.extname(i),f=u(l,a).map((m,x)=>{if(vt("A code block was found: %o",m.filename||"(unnamed)"),typeof m=="string")return this._verifyWithoutProcessors(m,r,n);let E=m.text,S=Qs.join(i,`${x}_${m.filename}`);return p(S,E)?s&&(l!==E||Qs.extname(S)!==h)?(vt("Resolving configuration again because the file content or extension was changed."),this._verifyWithConfigArray(E,s,{...n,filename:S,physicalFilename:o})):this._verifyWithoutProcessors(E,r,{...n,filename:S,physicalFilename:o}):(vt("This code block was skipped."),[])});return c(f,a)}_distinguishSuppressedMessages(e){let r=[],n=[],s=pr.get(this);for(let i of e)i.suppressions?n.push(i):r.push(i);return s.lastSuppressedMessages=n,r}getSourceCode(){return pr.get(this).lastSourceCode}getSuppressedMessages(){return pr.get(this).lastSuppressedMessages}defineRule(e,r){gu(this),pr.get(this).ruleMap.define(e,r)}defineRules(e){gu(this),Object.getOwnPropertyNames(e).forEach(r=>{this.defineRule(r,e[r])})}getRules(){gu(this);let{lastConfigArray:e,ruleMap:r}=pr.get(this);return new Map(function*(){yield*r,e&&(yield*e.pluginRules)}())}defineParser(e,r){gu(this),pr.get(this).parserMap.set(e,r)}verifyAndFix(e,r,n){let s=[],i,a=!1,o=0,l=e,u=n&&n.filename||`${e.slice(0,10)}...`,c=n&&typeof n.fix!="undefined"?n.fix:!0;do{if(o++,vt(`Linting code for ${u} (pass ${o})`),s=this.verify(l,r,n),vt(`Generating fixed text for ${u} (pass ${o})`),i=jJ.applyFixes(l,s,c),s.length===1&&s[0].fatal)break;a=a||i.fixed,l=i.output}while(i.fixed&&o<VJ);return i.fixed&&(i.messages=this.verify(l,r,n)),i.fixed=a,i.output=l,i}};a3.exports={Linter:P3,getLinterInternalSlots(t){return pr.get(t)}}});var lQ={};$a(lQ,{Linter:()=>_3.Linter});b();v();var _3=q3(I3());return lQ;})();
|
|
122
|
+
/*
|
|
123
|
+
* @version 1.4.0
|
|
124
|
+
* @date 2015-10-26
|
|
125
|
+
* @stability 3 - Stable
|
|
126
|
+
* @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
|
|
127
|
+
* @license MIT License
|
|
128
|
+
*/
|
|
129
|
+
/*!
|
|
130
|
+
* The buffer module from node.js, for the browser.
|
|
131
|
+
*
|
|
132
|
+
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
133
|
+
* @license MIT
|
|
134
|
+
*/
|
|
135
|
+
/*! @author Toru Nagashima <https://github.com/mysticatea> */
|
|
136
|
+
/**
|
|
137
|
+
* @fileoverview Pattern for detecting any letter (even letters outside of ASCII).
|
|
138
|
+
* NOTE: This file was generated using this script in JSCS based on the Unicode 7.0.0 standard: https://github.com/jscs-dev/node-jscs/blob/f5ed14427deb7e7aac84f3056a5aab2d9f3e563e/publish/helpers/generate-patterns.js
|
|
139
|
+
* Do not edit this file by hand-- please use https://github.com/mathiasbynens/regenerate to regenerate the regular expression exported from this file.
|
|
140
|
+
* @author Kevin Partington
|
|
141
|
+
* @license MIT License (from JSCS). See below.
|
|
142
|
+
*/
|
|
143
|
+
/** @license URI.js v4.4.0 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
|